mainstack-design-system 0.7.23 → 0.7.25
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/build/index.d.ts +1399 -0
- package/build/mainstack-design-system.js +811 -810
- package/package.json +3 -3
- package/build/src/app.d.ts +0 -1
- package/build/src/assets/themes/baseThemes.d.ts +0 -2
- package/build/src/components/AccordionItem/index.d.ts +0 -14
- package/build/src/components/Animations/Loader.d.ts +0 -8
- package/build/src/components/Avatars/index.d.ts +0 -15
- package/build/src/components/Button/IconButton.d.ts +0 -12
- package/build/src/components/Button/index.d.ts +0 -31
- package/build/src/components/InputFields/Input.d.ts +0 -23
- package/build/src/components/InputFields/MarkdownEditor.d.ts +0 -20
- package/build/src/components/InputFields/SearchInput.d.ts +0 -19
- package/build/src/components/InputFields/SelectInput/CountrySelect.d.ts +0 -14
- package/build/src/components/InputFields/SelectInput/PhoneNumberInput.d.ts +0 -13
- package/build/src/components/InputFields/SelectInput/SelectInput.d.ts +0 -33
- package/build/src/components/InputFields/SelectInput/index.d.ts +0 -8
- package/build/src/components/InputFields/TextArea.d.ts +0 -20
- package/build/src/components/InputFields/UrlInput.d.ts +0 -12
- package/build/src/components/InputFields/UsernameInput.d.ts +0 -21
- package/build/src/components/Tiles/index.d.ts +0 -17
- package/build/src/components/Typography/Display.d.ts +0 -18
- package/build/src/components/Typography/Heading.d.ts +0 -18
- package/build/src/components/Typography/Paragraph.d.ts +0 -18
- package/build/src/components/Typography/Subtitle.d.ts +0 -18
- package/build/src/components/Uploader/FileUploader.d.ts +0 -15
- package/build/src/components/Uploader/ImageUploader.d.ts +0 -16
- package/build/src/components/cards/MultipurposeCard.d.ts +0 -16
- package/build/src/components/cards/SimpleCard.d.ts +0 -11
- package/build/src/components/controls/Chip.d.ts +0 -9
- package/build/src/components/controls/DoubleTab.d.ts +0 -12
- package/build/src/components/controls/Pagination.d.ts +0 -11
- package/build/src/components/controls/RadioButton.d.ts +0 -8
- package/build/src/components/controls/RectangleCheckButton.d.ts +0 -8
- package/build/src/components/controls/RoundCheckButton.d.ts +0 -8
- package/build/src/components/controls/Slider.d.ts +0 -11
- package/build/src/components/controls/Stepper.d.ts +0 -15
- package/build/src/components/controls/TabMenu.d.ts +0 -12
- package/build/src/components/controls/ToggleButton.d.ts +0 -15
- package/build/src/components/index.d.ts +0 -44
- package/build/src/components/notifications/Banner.d.ts +0 -12
- package/build/src/components/notifications/ClickTooltip.d.ts +0 -22
- package/build/src/components/notifications/HoverTooltip.d.ts +0 -7
- package/build/src/components/notifications/Snackbar.d.ts +0 -12
- package/build/src/components/notifications/Tag.d.ts +0 -11
- package/build/src/components/styleGuide/Colors.d.ts +0 -166
- package/build/src/hooks/useImageUpload.d.ts +0 -17
- package/build/src/icons/AccountBalanceIcon.d.ts +0 -4
- package/build/src/icons/AccountBalanceWalletFilledIcon.d.ts +0 -4
- package/build/src/icons/AccountBalanceWalletIcon.d.ts +0 -4
- package/build/src/icons/AccountCircleFilledIcon.d.ts +0 -4
- package/build/src/icons/AccountCircleIcon.d.ts +0 -4
- package/build/src/icons/AddAPhotoIcon.d.ts +0 -4
- package/build/src/icons/AddBusinessFilledIcon.d.ts +0 -4
- package/build/src/icons/AddBusinessIcon.d.ts +0 -4
- package/build/src/icons/AddCircleFilledIcon.d.ts +0 -4
- package/build/src/icons/AddCircleIcon.d.ts +0 -4
- package/build/src/icons/AddIcon.d.ts +0 -4
- package/build/src/icons/AddPhotoAlternateIcon.d.ts +0 -4
- package/build/src/icons/AddShoppingCartIcon.d.ts +0 -4
- package/build/src/icons/AddToSocialsIcon.d.ts +0 -4
- package/build/src/icons/AddsClickIcon.d.ts +0 -4
- package/build/src/icons/AdminPanelSettingsIcon.d.ts +0 -4
- package/build/src/icons/AirplaneModeActiveIcon.d.ts +0 -4
- package/build/src/icons/AlarmIcon.d.ts +0 -4
- package/build/src/icons/AllInboxIcon.d.ts +0 -4
- package/build/src/icons/AnimationIcon.d.ts +0 -4
- package/build/src/icons/ApartmentIcon.d.ts +0 -4
- package/build/src/icons/AppsFilledIcon.d.ts +0 -4
- package/build/src/icons/AppsIcon.d.ts +0 -4
- package/build/src/icons/ArchiveIcon.d.ts +0 -4
- package/build/src/icons/ArrowBackIcon.d.ts +0 -4
- package/build/src/icons/ArrowCircleDownFilledIcon.d.ts +0 -4
- package/build/src/icons/ArrowCircleUpFilledIcon.d.ts +0 -4
- package/build/src/icons/ArrowDropDownIcon.d.ts +0 -4
- package/build/src/icons/ArrowDropUpIcon.d.ts +0 -4
- package/build/src/icons/ArrowForwardIcon.d.ts +0 -4
- package/build/src/icons/ArtTrackIcon.d.ts +0 -4
- package/build/src/icons/ArticleFilledIcon.d.ts +0 -4
- package/build/src/icons/ArticleIcon.d.ts +0 -4
- package/build/src/icons/AttachMoneyIcon.d.ts +0 -4
- package/build/src/icons/AttachmentIcon.d.ts +0 -4
- package/build/src/icons/AudioFileFilledIcon.d.ts +0 -4
- package/build/src/icons/AudioFileIcon.d.ts +0 -4
- package/build/src/icons/AutoAwesomeMosaicFilledIcon.d.ts +0 -4
- package/build/src/icons/AutoAwesomeMosaicIcon.d.ts +0 -4
- package/build/src/icons/AutoFixFilledIcon.d.ts +0 -4
- package/build/src/icons/AutoFixIcon.d.ts +0 -4
- package/build/src/icons/AutoGraphIcon.d.ts +0 -4
- package/build/src/icons/AwardStarFilledIcon.d.ts +0 -4
- package/build/src/icons/AwardStarIcon.d.ts +0 -4
- package/build/src/icons/BarChartFilledIcon.d.ts +0 -4
- package/build/src/icons/BlockIcon.d.ts +0 -4
- package/build/src/icons/BoltFilledIcon.d.ts +0 -4
- package/build/src/icons/BoltIcon.d.ts +0 -4
- package/build/src/icons/Book5FilledIcon.d.ts +0 -4
- package/build/src/icons/BookOnlineIcon.d.ts +0 -4
- package/build/src/icons/BugReportIcon.d.ts +0 -4
- package/build/src/icons/BusinessCenterFilledIcon.d.ts +0 -4
- package/build/src/icons/BusinessCenterIcon.d.ts +0 -4
- package/build/src/icons/CalendarMonthFilledIcon.d.ts +0 -4
- package/build/src/icons/CalendarMonthIcon.d.ts +0 -4
- package/build/src/icons/CalendarTodayIcon.d.ts +0 -4
- package/build/src/icons/CallMadeIcon.d.ts +0 -4
- package/build/src/icons/CallMissedIcon.d.ts +0 -4
- package/build/src/icons/CallMissedOutgoingIcon.d.ts +0 -4
- package/build/src/icons/CallRecievedIcon.d.ts +0 -4
- package/build/src/icons/CampaignFilledIcon.d.ts +0 -4
- package/build/src/icons/CampaignIcon.d.ts +0 -4
- package/build/src/icons/CancelFilledIcon.d.ts +0 -4
- package/build/src/icons/CancelIcon.d.ts +0 -4
- package/build/src/icons/CaptivePortalIcon.d.ts +0 -4
- package/build/src/icons/CardLayoutIcon.d.ts +0 -4
- package/build/src/icons/CasesFilledIcon.d.ts +0 -4
- package/build/src/icons/CasesIcon.d.ts +0 -4
- package/build/src/icons/CategoryIcon.d.ts +0 -4
- package/build/src/icons/ChairIcon.d.ts +0 -4
- package/build/src/icons/ChangeCircleIcon.d.ts +0 -4
- package/build/src/icons/ChatBubbleFilledIcon.d.ts +0 -4
- package/build/src/icons/ChatBubbleIcon.d.ts +0 -4
- package/build/src/icons/ChatFilledIcon.d.ts +0 -4
- package/build/src/icons/ChatIcon.d.ts +0 -4
- package/build/src/icons/CheckCircleFilledIcon.d.ts +0 -4
- package/build/src/icons/CheckCircleIcon.d.ts +0 -4
- package/build/src/icons/CheckIcon.d.ts +0 -4
- package/build/src/icons/ChevronLeftIcon.d.ts +0 -3
- package/build/src/icons/ChevronRightIcon.d.ts +0 -3
- package/build/src/icons/CloseIcon.d.ts +0 -4
- package/build/src/icons/CloudUploadIcon.d.ts +0 -4
- package/build/src/icons/CodeIcon.d.ts +0 -4
- package/build/src/icons/CoffeeIcon.d.ts +0 -4
- package/build/src/icons/CollectionsBookmarkIcon.d.ts +0 -4
- package/build/src/icons/ColorPickerIcon.d.ts +0 -4
- package/build/src/icons/CommentCircleAltChatMessageIcon.d.ts +0 -4
- package/build/src/icons/CompareArrowsIcon.d.ts +0 -4
- package/build/src/icons/ConfirmationNumberIcon.d.ts +0 -4
- package/build/src/icons/ContactMailFilledIcon.d.ts +0 -4
- package/build/src/icons/ContactMailIcon.d.ts +0 -3
- package/build/src/icons/ContactPageIcon.d.ts +0 -4
- package/build/src/icons/ContactPhoneFilledIcon.d.ts +0 -4
- package/build/src/icons/ContactPhoneIcon.d.ts +0 -4
- package/build/src/icons/ContactSupportIcon.d.ts +0 -4
- package/build/src/icons/ContactsIcon.d.ts +0 -4
- package/build/src/icons/ContentCopyIcon.d.ts +0 -4
- package/build/src/icons/CopyIcon.d.ts +0 -4
- package/build/src/icons/CourseFilledIcon.d.ts +0 -4
- package/build/src/icons/CourseIcon.d.ts +0 -4
- package/build/src/icons/CreditCardFilledIcon.d.ts +0 -4
- package/build/src/icons/CreditCardIcon.d.ts +0 -4
- package/build/src/icons/CurrencyExchangeIcon.d.ts +0 -4
- package/build/src/icons/DarkModeIcon.d.ts +0 -4
- package/build/src/icons/DashboardFilledIcon.d.ts +0 -4
- package/build/src/icons/DashboardIcon.d.ts +0 -4
- package/build/src/icons/DatabaseFilledIcon.d.ts +0 -4
- package/build/src/icons/DeleteIcon.d.ts +0 -4
- package/build/src/icons/DescriptionIcon.d.ts +0 -4
- package/build/src/icons/DesktopMacIcon.d.ts +0 -4
- package/build/src/icons/DevicesIcon.d.ts +0 -4
- package/build/src/icons/DiamondFilledIcon.d.ts +0 -4
- package/build/src/icons/DiamondIcon.d.ts +0 -4
- package/build/src/icons/DigitalProductsIcon.d.ts +0 -4
- package/build/src/icons/DiscountIcon.d.ts +0 -4
- package/build/src/icons/Diversity1Icon.d.ts +0 -4
- package/build/src/icons/Diversity2Icon.d.ts +0 -4
- package/build/src/icons/Diversity3Icon.d.ts +0 -4
- package/build/src/icons/DnsIcon.d.ts +0 -4
- package/build/src/icons/DoNotDisturbOnFilledIcon.d.ts +0 -4
- package/build/src/icons/DoNotDisturbOnIcon.d.ts +0 -4
- package/build/src/icons/DomainAddIcon.d.ts +0 -4
- package/build/src/icons/DomainIcon.d.ts +0 -4
- package/build/src/icons/DomainVerificationIcon.d.ts +0 -4
- package/build/src/icons/DownloadIcon.d.ts +0 -4
- package/build/src/icons/DraftsIcon.d.ts +0 -4
- package/build/src/icons/DragHandleIcon.d.ts +0 -4
- package/build/src/icons/DragIndicatorIcon.d.ts +0 -4
- package/build/src/icons/EditFilledIcon.d.ts +0 -4
- package/build/src/icons/EditIcon.d.ts +0 -4
- package/build/src/icons/EmojiEventsFilledIcon.d.ts +0 -4
- package/build/src/icons/EmojiEventsIcon.d.ts +0 -4
- package/build/src/icons/EmojiFoodBeverageIcon.d.ts +0 -4
- package/build/src/icons/EmojiIcon.d.ts +0 -4
- package/build/src/icons/EmptyIcon.d.ts +0 -4
- package/build/src/icons/EncryptedIcon.d.ts +0 -4
- package/build/src/icons/EnterpriseFilledIcon.d.ts +0 -4
- package/build/src/icons/EnterpriseIcon.d.ts +0 -4
- package/build/src/icons/EqualIcon.d.ts +0 -4
- package/build/src/icons/ErrorFilledIcon.d.ts +0 -4
- package/build/src/icons/ErrorIcon.d.ts +0 -4
- package/build/src/icons/EventFilledIcon.d.ts +0 -4
- package/build/src/icons/EventIcon.d.ts +0 -4
- package/build/src/icons/EventTicketIcon.d.ts +0 -4
- package/build/src/icons/ExpandLessIcon.d.ts +0 -4
- package/build/src/icons/ExpandMoreIcon.d.ts +0 -4
- package/build/src/icons/FastActionPricingIcon.d.ts +0 -4
- package/build/src/icons/FeedFilledIcon.d.ts +0 -4
- package/build/src/icons/FeedIcon.d.ts +0 -4
- package/build/src/icons/FilePresentIcon.d.ts +0 -4
- package/build/src/icons/FilterListIcon.d.ts +0 -4
- package/build/src/icons/FingerprintIcon.d.ts +0 -4
- package/build/src/icons/FitbitArrowDownIcon.d.ts +0 -4
- package/build/src/icons/FitbitArrowUpwardIcon.d.ts +0 -4
- package/build/src/icons/FlagIcon.d.ts +0 -4
- package/build/src/icons/FootPrintIcon.d.ts +0 -4
- package/build/src/icons/FormatAlignCenterIcon.d.ts +0 -4
- package/build/src/icons/FormatAlignJustifyIcon.d.ts +0 -4
- package/build/src/icons/FormatAlignLeftIcon.d.ts +0 -4
- package/build/src/icons/FormatAlignRightIcon.d.ts +0 -4
- package/build/src/icons/FormatBoldIcon.d.ts +0 -4
- package/build/src/icons/FormatItalicIcon.d.ts +0 -4
- package/build/src/icons/FormatListBulletedIcon.d.ts +0 -4
- package/build/src/icons/FormatListNumberedIcon.d.ts +0 -4
- package/build/src/icons/FormatSizeIcon.d.ts +0 -4
- package/build/src/icons/FormatUnderlineIcon.d.ts +0 -4
- package/build/src/icons/ForumIcon.d.ts +0 -4
- package/build/src/icons/ForwardToInboxIcon.d.ts +0 -4
- package/build/src/icons/GalleryThumbnailIcon.d.ts +0 -4
- package/build/src/icons/GooglePayIcon.d.ts +0 -4
- package/build/src/icons/GppBadFilledIcon.d.ts +0 -4
- package/build/src/icons/GppBadIcon.d.ts +0 -4
- package/build/src/icons/GppMaybeFilledIcon.d.ts +0 -4
- package/build/src/icons/GppMaybeIcon.d.ts +0 -4
- package/build/src/icons/GridViewIcon.d.ts +0 -4
- package/build/src/icons/GroupFilledIcon.d.ts +0 -4
- package/build/src/icons/GroupIcon.d.ts +0 -4
- package/build/src/icons/HeadphonesIcon.d.ts +0 -4
- package/build/src/icons/HomeFilledIcon.d.ts +0 -4
- package/build/src/icons/HomeIcon.d.ts +0 -4
- package/build/src/icons/HomePinIcon.d.ts +0 -4
- package/build/src/icons/HourGlassEmptyIcon.d.ts +0 -4
- package/build/src/icons/HourGlassTopIcon.d.ts +0 -4
- package/build/src/icons/HubIcon.d.ts +0 -4
- package/build/src/icons/IdCardIcon.d.ts +0 -4
- package/build/src/icons/InfoFilledIcon.d.ts +0 -4
- package/build/src/icons/InfoGradientFilledIcon.d.ts +0 -4
- package/build/src/icons/InfoIcon.d.ts +0 -4
- package/build/src/icons/InsertChartFilledIcon.d.ts +0 -4
- package/build/src/icons/InsertChartIcon.d.ts +0 -4
- package/build/src/icons/IntegrationsIcon.d.ts +0 -4
- package/build/src/icons/InventoryIcon.d.ts +0 -4
- package/build/src/icons/IosShareIcon.d.ts +0 -4
- package/build/src/icons/KeyIcon.d.ts +0 -4
- package/build/src/icons/KeyOffIcon.d.ts +0 -4
- package/build/src/icons/KeyboardBackspaceIcon.d.ts +0 -4
- package/build/src/icons/LabelIcon.d.ts +0 -4
- package/build/src/icons/LanguageIcon.d.ts +0 -4
- package/build/src/icons/LibraryMusicIcon.d.ts +0 -4
- package/build/src/icons/LinkIcon.d.ts +0 -4
- package/build/src/icons/LinkOffIcon.d.ts +0 -4
- package/build/src/icons/LocalActivityIcon.d.ts +0 -4
- package/build/src/icons/LocalFloristFilledIcon.d.ts +0 -4
- package/build/src/icons/LocalFloristIcon.d.ts +0 -4
- package/build/src/icons/LocationOnIcon.d.ts +0 -4
- package/build/src/icons/LockIcon.d.ts +0 -4
- package/build/src/icons/LoginIcon.d.ts +0 -4
- package/build/src/icons/LogoutIcon.d.ts +0 -4
- package/build/src/icons/MailIcon.d.ts +0 -4
- package/build/src/icons/MarkUnreadChatIcon.d.ts +0 -4
- package/build/src/icons/MasterClassIcon.d.ts +0 -4
- package/build/src/icons/MediaLinkFilledIcon.d.ts +0 -4
- package/build/src/icons/MediaLinkIcon.d.ts +0 -4
- package/build/src/icons/MenuIcon.d.ts +0 -4
- package/build/src/icons/MenuOpenIcon.d.ts +0 -4
- package/build/src/icons/MilitaryTechFilledIcon.d.ts +0 -4
- package/build/src/icons/MilitaryTechIcon.d.ts +0 -4
- package/build/src/icons/MonitoringIcon.d.ts +0 -4
- package/build/src/icons/MoreHorizontalIcon.d.ts +0 -4
- package/build/src/icons/MoreHorizontalSmallIcon.d.ts +0 -4
- package/build/src/icons/MoreVerticalIcon.d.ts +0 -4
- package/build/src/icons/NotificationsFilledIcon.d.ts +0 -4
- package/build/src/icons/NotificationsIcon.d.ts +0 -4
- package/build/src/icons/OpenInNewIcon.d.ts +0 -4
- package/build/src/icons/OthersIcon.d.ts +0 -4
- package/build/src/icons/PageViewIcon.d.ts +0 -4
- package/build/src/icons/PaidFilledIcon.d.ts +0 -4
- package/build/src/icons/PaidIcon.d.ts +0 -4
- package/build/src/icons/PaletteFilledIcon.d.ts +0 -4
- package/build/src/icons/PaletteIcon.d.ts +0 -4
- package/build/src/icons/PauseIcon.d.ts +0 -4
- package/build/src/icons/PayInTranchesIcon.d.ts +0 -4
- package/build/src/icons/PaymentsFilledIcon.d.ts +0 -4
- package/build/src/icons/PaymentsIcon.d.ts +0 -4
- package/build/src/icons/PendingActionsIcon.d.ts +0 -4
- package/build/src/icons/PercentIcon.d.ts +0 -4
- package/build/src/icons/PermMediaIcon.d.ts +0 -4
- package/build/src/icons/PersonAddIcon.d.ts +0 -4
- package/build/src/icons/PersonBookFilledIcon.d.ts +0 -4
- package/build/src/icons/PersonBookIcon.d.ts +0 -4
- package/build/src/icons/PersonFilledIcon.d.ts +0 -4
- package/build/src/icons/PersonIcon.d.ts +0 -4
- package/build/src/icons/PhotoCameraIcon.d.ts +0 -4
- package/build/src/icons/PhotoFilledIcon.d.ts +0 -4
- package/build/src/icons/PhotoIcon.d.ts +0 -4
- package/build/src/icons/PhotoLibraryFilledIcon.d.ts +0 -4
- package/build/src/icons/PhotoLibraryIcon.d.ts +0 -4
- package/build/src/icons/PictureAsPdfFilledIcon.d.ts +0 -4
- package/build/src/icons/PictureAsPdfIcon.d.ts +0 -4
- package/build/src/icons/PlayArrowIcon.d.ts +0 -4
- package/build/src/icons/PlayCircleFilledIcon.d.ts +0 -4
- package/build/src/icons/PlayCircleIcon.d.ts +0 -4
- package/build/src/icons/PowerRoundedIcon.d.ts +0 -4
- package/build/src/icons/PreviewIcon.d.ts +0 -4
- package/build/src/icons/PublicIcon.d.ts +0 -4
- package/build/src/icons/PublishIcon.d.ts +0 -4
- package/build/src/icons/PushPinFilledIcon.d.ts +0 -4
- package/build/src/icons/PushPinIcon.d.ts +0 -4
- package/build/src/icons/QrCode2Icon.d.ts +0 -4
- package/build/src/icons/QuestionMarkIcon.d.ts +0 -4
- package/build/src/icons/RadioButtonCheckedIcon.d.ts +0 -4
- package/build/src/icons/RadioButtonUncheckedIcon.d.ts +0 -4
- package/build/src/icons/RecieptLongFilledIcon.d.ts +0 -4
- package/build/src/icons/RecieptLongIcon.d.ts +0 -4
- package/build/src/icons/RecordVoiceOverIcon.d.ts +0 -4
- package/build/src/icons/RedeemIcon.d.ts +0 -4
- package/build/src/icons/RedoIcon.d.ts +0 -4
- package/build/src/icons/RemoveIcon.d.ts +0 -4
- package/build/src/icons/RemoveRoadIcon.d.ts +0 -4
- package/build/src/icons/ReportFilledIcon.d.ts +0 -4
- package/build/src/icons/ReportIcon.d.ts +0 -4
- package/build/src/icons/ReviewsIcon.d.ts +0 -4
- package/build/src/icons/SavingsFilledIcon.d.ts +0 -4
- package/build/src/icons/SavingsIcon.d.ts +0 -4
- package/build/src/icons/ScheduleIcon.d.ts +0 -4
- package/build/src/icons/ScheduleSendIcon.d.ts +0 -4
- package/build/src/icons/SearchNormalIcon.d.ts +0 -4
- package/build/src/icons/SellIcon.d.ts +0 -4
- package/build/src/icons/SendIcon.d.ts +0 -4
- package/build/src/icons/ServicesIcon.d.ts +0 -4
- package/build/src/icons/SettingsFilledIcon.d.ts +0 -4
- package/build/src/icons/SettingsIcon.d.ts +0 -4
- package/build/src/icons/ShareIcon.d.ts +0 -4
- package/build/src/icons/ShareWithContactsIcon.d.ts +0 -4
- package/build/src/icons/ShareWithSocialsIcon.d.ts +0 -4
- package/build/src/icons/ShoppingCartFilledIcon.d.ts +0 -4
- package/build/src/icons/ShoppingCartIcon.d.ts +0 -4
- package/build/src/icons/ShuffleIcon.d.ts +0 -4
- package/build/src/icons/SmartPhoneIcon.d.ts +0 -4
- package/build/src/icons/SocialLeaderboardIcon.d.ts +0 -4
- package/build/src/icons/StarFilledIcon.d.ts +0 -4
- package/build/src/icons/StarHalfIcon.d.ts +0 -4
- package/build/src/icons/StarIcon.d.ts +0 -4
- package/build/src/icons/StoreFrontFilledIcon.d.ts +0 -4
- package/build/src/icons/StoreFrontIcon.d.ts +0 -4
- package/build/src/icons/StrikeThroughSIcon.d.ts +0 -4
- package/build/src/icons/StyleIcon.d.ts +0 -4
- package/build/src/icons/SubscriptionIcon.d.ts +0 -4
- package/build/src/icons/SubscriptionsFilledIcon.d.ts +0 -4
- package/build/src/icons/SubscriptionsIcon.d.ts +0 -4
- package/build/src/icons/SupervisorAccountIcon.d.ts +0 -4
- package/build/src/icons/SwitchAccountFilledIcon.d.ts +0 -4
- package/build/src/icons/SwitchAccountIcon.d.ts +0 -4
- package/build/src/icons/SyncSavedLocallyIcon.d.ts +0 -4
- package/build/src/icons/TabletIcon.d.ts +0 -4
- package/build/src/icons/ThumbDownFilledIcon.d.ts +0 -4
- package/build/src/icons/ThumbDownIcon.d.ts +0 -4
- package/build/src/icons/ThumbUpFilledIcon.d.ts +0 -4
- package/build/src/icons/ThumbUpIcon.d.ts +0 -4
- package/build/src/icons/TocIcon.d.ts +0 -4
- package/build/src/icons/TrainingsIcon.d.ts +0 -4
- package/build/src/icons/TrashDeleteBinIcon.d.ts +0 -4
- package/build/src/icons/TrendingUpIcon.d.ts +0 -4
- package/build/src/icons/UndoIcon.d.ts +0 -4
- package/build/src/icons/UnfoldMoreIcon.d.ts +0 -4
- package/build/src/icons/UploadIcon.d.ts +0 -4
- package/build/src/icons/VerifiedIcon.d.ts +0 -4
- package/build/src/icons/VideoCamIcon.d.ts +0 -4
- package/build/src/icons/VideoFileIcon.d.ts +0 -4
- package/build/src/icons/ViewAgendaIcon.d.ts +0 -4
- package/build/src/icons/ViewArrayIcon.d.ts +0 -4
- package/build/src/icons/ViewCarouselIcon.d.ts +0 -4
- package/build/src/icons/ViewCozyIcon.d.ts +0 -4
- package/build/src/icons/ViewModuleIcon.d.ts +0 -4
- package/build/src/icons/VisibilityIcon.d.ts +0 -4
- package/build/src/icons/VisibilityOffIcon.d.ts +0 -4
- package/build/src/icons/VolunteerActivismFilledIcon.d.ts +0 -4
- package/build/src/icons/VolunteerActivismIcon.d.ts +0 -4
- package/build/src/icons/WBSunnyIcon.d.ts +0 -4
- package/build/src/icons/WarningFilledIcon.d.ts +0 -4
- package/build/src/icons/WarningIcon.d.ts +0 -4
- package/build/src/icons/WebinarsIcon.d.ts +0 -4
- package/build/src/icons/WidgetsFilledIcon.d.ts +0 -4
- package/build/src/icons/WidgetsIcon.d.ts +0 -4
- package/build/src/icons/WorkshopsIcon.d.ts +0 -4
- package/build/src/icons/index.d.ts +0 -334
- package/build/src/index.d.ts +0 -3
- package/build/src/pages/Home.d.ts +0 -2
- package/build/src/pages/Login.d.ts +0 -2
- package/build/src/pages/Page404.d.ts +0 -2
- package/build/src/pages/index.d.ts +0 -2
- package/build/src/routes/index.d.ts +0 -6
- package/build/src/stories/Accordion/Accordion.stories.d.ts +0 -13
- package/build/src/stories/Accordion/AccordionWrapper.d.ts +0 -4
- package/build/src/stories/Avatars/Avatar.stories.d.ts +0 -12
- package/build/src/stories/Buttons/Button.stories.d.ts +0 -17
- package/build/src/stories/Buttons/IconButton.stories.d.ts +0 -13
- package/build/src/stories/Buttons/IconButtonWrapper.d.ts +0 -4
- package/build/src/stories/InputFields/InputFields.stories.d.ts +0 -11
- package/build/src/stories/InputFields/MarkdownEditor.stories.d.ts +0 -8
- package/build/src/stories/InputFields/SearchInput.d.ts +0 -4
- package/build/src/stories/InputFields/SearchInput.stories.d.ts +0 -7
- package/build/src/stories/InputFields/Select/CountrySelect.stories.d.ts +0 -7
- package/build/src/stories/InputFields/Select/CountrySelectWrapper.d.ts +0 -4
- package/build/src/stories/InputFields/Select/CreatableSelect.stories.d.ts +0 -8
- package/build/src/stories/InputFields/Select/CreatableSelectWrapper.d.ts +0 -4
- package/build/src/stories/InputFields/Select/PhoneNumberInput.stories.d.ts +0 -9
- package/build/src/stories/InputFields/Select/PhoneNumberInputWrapper.d.ts +0 -4
- package/build/src/stories/InputFields/Select/Select.stories.d.ts +0 -8
- package/build/src/stories/InputFields/Select/SelectWrapper.d.ts +0 -4
- package/build/src/stories/InputFields/TextArea.stories.d.ts +0 -7
- package/build/src/stories/InputFields/UrlInput.stories.d.ts +0 -14
- package/build/src/stories/InputFields/UsernameInput.stories.d.ts +0 -7
- package/build/src/stories/Tiles/Tile.stories.d.ts +0 -16
- package/build/src/stories/Tiles/TileWrapper.d.ts +0 -4
- package/build/src/stories/Typography/DisplayText.stories.d.ts +0 -12
- package/build/src/stories/Typography/HeadingText.stories.d.ts +0 -18
- package/build/src/stories/Typography/ParagraphText.stories.d.ts +0 -14
- package/build/src/stories/Typography/SubtitleText.stories.d.ts +0 -19
- package/build/src/stories/Uploaders/FileUploadWrapper.d.ts +0 -4
- package/build/src/stories/Uploaders/FileUploader.stories.d.ts +0 -7
- package/build/src/stories/Uploaders/ImageUploadWrapper.d.ts +0 -4
- package/build/src/stories/Uploaders/ImageUploader.stories.d.ts +0 -7
- package/build/src/stories/cards/MultipurposeCard.stories.d.ts +0 -9
- package/build/src/stories/cards/SimpleCard.stories.d.ts +0 -8
- package/build/src/stories/colors/index.d.ts +0 -3
- package/build/src/stories/controls/Chip.stories.d.ts +0 -10
- package/build/src/stories/controls/DoubleTab.stories.d.ts +0 -7
- package/build/src/stories/controls/DoubleTabWrapper.d.ts +0 -4
- package/build/src/stories/controls/Pagination.stories.d.ts +0 -7
- package/build/src/stories/controls/PaginationWrapper.d.ts +0 -4
- package/build/src/stories/controls/RadioButton.stories.d.ts +0 -11
- package/build/src/stories/controls/RectangleCheckButton.stories.d.ts +0 -10
- package/build/src/stories/controls/RoundCheckButton.stories.d.ts +0 -10
- package/build/src/stories/controls/Slider.stories.d.ts +0 -7
- package/build/src/stories/controls/Stepper.stories.d.ts +0 -7
- package/build/src/stories/controls/StepperDemoCmp.d.ts +0 -4
- package/build/src/stories/controls/TabMenu.stories.d.ts +0 -7
- package/build/src/stories/controls/TabMenuWrapper.d.ts +0 -4
- package/build/src/stories/controls/ToggleButton.stories.d.ts +0 -10
- package/build/src/stories/icons/index.d.ts +0 -334
- package/build/src/stories/notifications/Banner.stories.d.ts +0 -14
- package/build/src/stories/notifications/ClickTooltip.stories.d.ts +0 -14
- package/build/src/stories/notifications/ClickTooltipWrapper.d.ts +0 -4
- package/build/src/stories/notifications/HoverTooltip.stories.d.ts +0 -9
- package/build/src/stories/notifications/HoverTooltipWrapper.d.ts +0 -4
- package/build/src/stories/notifications/Snackbar.stories.d.ts +0 -22
- package/build/src/stories/notifications/SnackbarWrapper.d.ts +0 -2
- package/build/src/stories/notifications/Tag.stories.d.ts +0 -9
- package/build/src/utils/countries-flag.json.d.ts +0 -1755
|
@@ -7804,7 +7804,7 @@ function c5(e, o) {
|
|
|
7804
7804
|
}
|
|
7805
7805
|
var X9 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
7806
7806
|
function ce(e) {
|
|
7807
|
-
var o = e.defaultInputValue, i = o === void 0 ? "" : o, r = e.defaultMenuIsOpen, n = r === void 0 ? !1 : r, d = e.defaultValue, p = d === void 0 ? null : d, b = e.inputValue, s = e.menuIsOpen, v = e.onChange, h = e.onInputChange, c = e.onMenuClose, l = e.onMenuOpen, a = e.value, y = c5(e, X9), m = S1(b !== void 0 ? b : i), u = J1(m, 2), f = u[0], g = u[1], x = S1(s !== void 0 ? s : n), C = J1(x, 2), w = C[0], A = C[1],
|
|
7807
|
+
var o = e.defaultInputValue, i = o === void 0 ? "" : o, r = e.defaultMenuIsOpen, n = r === void 0 ? !1 : r, d = e.defaultValue, p = d === void 0 ? null : d, b = e.inputValue, s = e.menuIsOpen, v = e.onChange, h = e.onInputChange, c = e.onMenuClose, l = e.onMenuOpen, a = e.value, y = c5(e, X9), m = S1(b !== void 0 ? b : i), u = J1(m, 2), f = u[0], g = u[1], x = S1(s !== void 0 ? s : n), C = J1(x, 2), w = C[0], A = C[1], V = S1(a !== void 0 ? a : p), I = J1(V, 2), Z = I[0], k = I[1], H = z1(function(Q, X) {
|
|
7808
7808
|
typeof v == "function" && v(Q, X), k(Q);
|
|
7809
7809
|
}, [v]), L = z1(function(Q, X) {
|
|
7810
7810
|
var P;
|
|
@@ -7817,7 +7817,7 @@ function ce(e) {
|
|
|
7817
7817
|
return v1(v1({}, y), {}, {
|
|
7818
7818
|
inputValue: F,
|
|
7819
7819
|
menuIsOpen: D,
|
|
7820
|
-
onChange:
|
|
7820
|
+
onChange: H,
|
|
7821
7821
|
onInputChange: L,
|
|
7822
7822
|
onMenuClose: E,
|
|
7823
7823
|
onMenuOpen: S,
|
|
@@ -8110,15 +8110,15 @@ function f6(e, o) {
|
|
|
8110
8110
|
};
|
|
8111
8111
|
let C = !0;
|
|
8112
8112
|
function w(A) {
|
|
8113
|
-
const
|
|
8114
|
-
if (
|
|
8113
|
+
const V = A[0].intersectionRatio;
|
|
8114
|
+
if (V !== s) {
|
|
8115
8115
|
if (!C)
|
|
8116
8116
|
return p();
|
|
8117
|
-
|
|
8117
|
+
V ? p(!1, V) : r = setTimeout(() => {
|
|
8118
8118
|
p(!1, 1e-7);
|
|
8119
8119
|
}, 1e3);
|
|
8120
8120
|
}
|
|
8121
|
-
|
|
8121
|
+
V === 1 && !it(v, e.getBoundingClientRect()) && p(), C = !1;
|
|
8122
8122
|
}
|
|
8123
8123
|
try {
|
|
8124
8124
|
i = new IntersectionObserver(w, {
|
|
@@ -8309,11 +8309,11 @@ function E6(e) {
|
|
|
8309
8309
|
};
|
|
8310
8310
|
if (!i || !i.offsetParent)
|
|
8311
8311
|
return v;
|
|
8312
|
-
var h = s.getBoundingClientRect(), c = h.height, l = i.getBoundingClientRect(), a = l.bottom, y = l.height, m = l.top, u = i.offsetParent.getBoundingClientRect(), f = u.top, g = p ? window.innerHeight : y6(s), x = lt(s), C = parseInt(getComputedStyle(i).marginBottom, 10), w = parseInt(getComputedStyle(i).marginTop, 10), A = f - w,
|
|
8312
|
+
var h = s.getBoundingClientRect(), c = h.height, l = i.getBoundingClientRect(), a = l.bottom, y = l.height, m = l.top, u = i.offsetParent.getBoundingClientRect(), f = u.top, g = p ? window.innerHeight : y6(s), x = lt(s), C = parseInt(getComputedStyle(i).marginBottom, 10), w = parseInt(getComputedStyle(i).marginTop, 10), A = f - w, V = g - m, I = A + x, Z = c - x - m, k = a - g + x + C, H = x + m - w, L = 160;
|
|
8313
8313
|
switch (n) {
|
|
8314
8314
|
case "auto":
|
|
8315
8315
|
case "bottom":
|
|
8316
|
-
if (
|
|
8316
|
+
if (V >= y)
|
|
8317
8317
|
return {
|
|
8318
8318
|
placement: "bottom",
|
|
8319
8319
|
maxHeight: o
|
|
@@ -8323,16 +8323,16 @@ function E6(e) {
|
|
|
8323
8323
|
placement: "bottom",
|
|
8324
8324
|
maxHeight: o
|
|
8325
8325
|
};
|
|
8326
|
-
if (!p && Z >= r || p &&
|
|
8326
|
+
if (!p && Z >= r || p && V >= r) {
|
|
8327
8327
|
d && V2(s, k, L);
|
|
8328
|
-
var S = p ?
|
|
8328
|
+
var S = p ? V - C : Z - C;
|
|
8329
8329
|
return {
|
|
8330
8330
|
placement: "bottom",
|
|
8331
8331
|
maxHeight: S
|
|
8332
8332
|
};
|
|
8333
8333
|
}
|
|
8334
8334
|
if (n === "auto" || p) {
|
|
8335
|
-
var E = o, F = p ? A :
|
|
8335
|
+
var E = o, F = p ? A : I;
|
|
8336
8336
|
return F >= r && (E = Math.min(F - C - b, o)), {
|
|
8337
8337
|
placement: "top",
|
|
8338
8338
|
maxHeight: E
|
|
@@ -8350,14 +8350,14 @@ function E6(e) {
|
|
|
8350
8350
|
placement: "top",
|
|
8351
8351
|
maxHeight: o
|
|
8352
8352
|
};
|
|
8353
|
-
if (
|
|
8354
|
-
return d && V2(s,
|
|
8353
|
+
if (I >= y && !p)
|
|
8354
|
+
return d && V2(s, H, L), {
|
|
8355
8355
|
placement: "top",
|
|
8356
8356
|
maxHeight: o
|
|
8357
8357
|
};
|
|
8358
|
-
if (!p &&
|
|
8358
|
+
if (!p && I >= r || p && A >= r) {
|
|
8359
8359
|
var D = o;
|
|
8360
|
-
return (!p &&
|
|
8360
|
+
return (!p && I >= r || p && A >= r) && (D = p ? A - w : I - w), d && V2(s, H, L), {
|
|
8361
8361
|
placement: "top",
|
|
8362
8362
|
maxHeight: D
|
|
8363
8363
|
};
|
|
@@ -8396,16 +8396,16 @@ var ut = function(o) {
|
|
|
8396
8396
|
return z3(function() {
|
|
8397
8397
|
var w = c.current;
|
|
8398
8398
|
if (w) {
|
|
8399
|
-
var A = p === "fixed",
|
|
8399
|
+
var A = p === "fixed", V = b && !A, I = E6({
|
|
8400
8400
|
maxHeight: n,
|
|
8401
8401
|
menuEl: w,
|
|
8402
8402
|
minHeight: r,
|
|
8403
8403
|
placement: d,
|
|
8404
|
-
shouldScroll:
|
|
8404
|
+
shouldScroll: V,
|
|
8405
8405
|
isFixedPosition: A,
|
|
8406
8406
|
controlHeight: C
|
|
8407
8407
|
});
|
|
8408
|
-
m(
|
|
8408
|
+
m(I.maxHeight), x(I.placement), h == null || h(I.placement);
|
|
8409
8409
|
}
|
|
8410
8410
|
}, [n, d, p, b, r, h, C]), i({
|
|
8411
8411
|
ref: c,
|
|
@@ -8483,10 +8483,10 @@ var ut = function(o) {
|
|
|
8483
8483
|
};
|
|
8484
8484
|
}, []), m = S1(null), u = J1(m, 2), f = u[0], g = u[1], x = z1(function() {
|
|
8485
8485
|
if (n) {
|
|
8486
|
-
var
|
|
8487
|
-
(Z !== (f == null ? void 0 : f.offset) ||
|
|
8486
|
+
var V = x6(n), I = b === "fixed" ? 0 : window.pageYOffset, Z = V[l] + I;
|
|
8487
|
+
(Z !== (f == null ? void 0 : f.offset) || V.left !== (f == null ? void 0 : f.rect.left) || V.width !== (f == null ? void 0 : f.rect.width)) && g({
|
|
8488
8488
|
offset: Z,
|
|
8489
|
-
rect:
|
|
8489
|
+
rect: V
|
|
8490
8490
|
});
|
|
8491
8491
|
}
|
|
8492
8492
|
}, [n, b, l, f == null ? void 0 : f.offset, f == null ? void 0 : f.rect.left, f == null ? void 0 : f.rect.width]);
|
|
@@ -8501,8 +8501,8 @@ var ut = function(o) {
|
|
|
8501
8501
|
z3(function() {
|
|
8502
8502
|
C();
|
|
8503
8503
|
}, [C]);
|
|
8504
|
-
var w = z1(function(
|
|
8505
|
-
s.current =
|
|
8504
|
+
var w = z1(function(V) {
|
|
8505
|
+
s.current = V, C();
|
|
8506
8506
|
}, [C]);
|
|
8507
8507
|
if (!i && b !== "fixed" || !f)
|
|
8508
8508
|
return null;
|
|
@@ -9084,11 +9084,11 @@ var Y0 = process.env.NODE_ENV === "production" ? {
|
|
|
9084
9084
|
return "".concat(r).concat(i ? " for search term " + i : "", ".");
|
|
9085
9085
|
}
|
|
9086
9086
|
}, U0 = function(o) {
|
|
9087
|
-
var i = o.ariaSelection, r = o.focusedOption, n = o.focusedValue, d = o.focusableOptions, p = o.isFocused, b = o.selectValue, s = o.selectProps, v = o.id, h = o.isAppleDevice, c = s.ariaLiveMessages, l = s.getOptionLabel, a = s.inputValue, y = s.isMulti, m = s.isOptionDisabled, u = s.isSearchable, f = s.menuIsOpen, g = s.options, x = s.screenReaderStatus, C = s.tabSelectsValue, w = s.isLoading, A = s["aria-label"],
|
|
9087
|
+
var i = o.ariaSelection, r = o.focusedOption, n = o.focusedValue, d = o.focusableOptions, p = o.isFocused, b = o.selectValue, s = o.selectProps, v = o.id, h = o.isAppleDevice, c = s.ariaLiveMessages, l = s.getOptionLabel, a = s.inputValue, y = s.isMulti, m = s.isOptionDisabled, u = s.isSearchable, f = s.menuIsOpen, g = s.options, x = s.screenReaderStatus, C = s.tabSelectsValue, w = s.isLoading, A = s["aria-label"], V = s["aria-live"], I = p5(function() {
|
|
9088
9088
|
return v1(v1({}, q0), c || {});
|
|
9089
9089
|
}, [c]), Z = p5(function() {
|
|
9090
9090
|
var F = "";
|
|
9091
|
-
if (i &&
|
|
9091
|
+
if (i && I.onChange) {
|
|
9092
9092
|
var D = i.option, z = i.options, Q = i.removedValue, X = i.removedValues, P = i.value, M = function(Y) {
|
|
9093
9093
|
return Array.isArray(Y) ? null : Y;
|
|
9094
9094
|
}, B = Q || D || M(P), R = B ? l(B) : "", j = z || X || void 0, _ = j ? j.map(l) : [], N = v1({
|
|
@@ -9098,12 +9098,12 @@ var Y0 = process.env.NODE_ENV === "production" ? {
|
|
|
9098
9098
|
label: R,
|
|
9099
9099
|
labels: _
|
|
9100
9100
|
}, i);
|
|
9101
|
-
F =
|
|
9101
|
+
F = I.onChange(N);
|
|
9102
9102
|
}
|
|
9103
9103
|
return F;
|
|
9104
|
-
}, [i,
|
|
9104
|
+
}, [i, I, m, b, l]), k = p5(function() {
|
|
9105
9105
|
var F = "", D = r || n, z = !!(r && b && b.includes(r));
|
|
9106
|
-
if (D &&
|
|
9106
|
+
if (D && I.onFocus) {
|
|
9107
9107
|
var Q = {
|
|
9108
9108
|
focused: D,
|
|
9109
9109
|
label: l(D),
|
|
@@ -9114,26 +9114,26 @@ var Y0 = process.env.NODE_ENV === "production" ? {
|
|
|
9114
9114
|
selectValue: b,
|
|
9115
9115
|
isAppleDevice: h
|
|
9116
9116
|
};
|
|
9117
|
-
F =
|
|
9117
|
+
F = I.onFocus(Q);
|
|
9118
9118
|
}
|
|
9119
9119
|
return F;
|
|
9120
|
-
}, [r, n, l, m,
|
|
9120
|
+
}, [r, n, l, m, I, d, b, h]), H = p5(function() {
|
|
9121
9121
|
var F = "";
|
|
9122
|
-
if (f && g.length && !w &&
|
|
9122
|
+
if (f && g.length && !w && I.onFilter) {
|
|
9123
9123
|
var D = x({
|
|
9124
9124
|
count: d.length
|
|
9125
9125
|
});
|
|
9126
|
-
F =
|
|
9126
|
+
F = I.onFilter({
|
|
9127
9127
|
inputValue: a,
|
|
9128
9128
|
resultsMessage: D
|
|
9129
9129
|
});
|
|
9130
9130
|
}
|
|
9131
9131
|
return F;
|
|
9132
|
-
}, [d, a, f,
|
|
9132
|
+
}, [d, a, f, I, g, x, w]), L = (i == null ? void 0 : i.action) === "initial-input-focus", S = p5(function() {
|
|
9133
9133
|
var F = "";
|
|
9134
|
-
if (
|
|
9134
|
+
if (I.guidance) {
|
|
9135
9135
|
var D = n ? "value" : f ? "menu" : "input";
|
|
9136
|
-
F =
|
|
9136
|
+
F = I.guidance({
|
|
9137
9137
|
"aria-label": A,
|
|
9138
9138
|
context: D,
|
|
9139
9139
|
isDisabled: r && m(r, b),
|
|
@@ -9144,19 +9144,19 @@ var Y0 = process.env.NODE_ENV === "production" ? {
|
|
|
9144
9144
|
});
|
|
9145
9145
|
}
|
|
9146
9146
|
return F;
|
|
9147
|
-
}, [A, r, n, y, m, u, f,
|
|
9147
|
+
}, [A, r, n, y, m, u, f, I, b, C, L]), E = x1(B3, null, x1("span", {
|
|
9148
9148
|
id: "aria-selection"
|
|
9149
9149
|
}, Z), x1("span", {
|
|
9150
9150
|
id: "aria-focused"
|
|
9151
9151
|
}, k), x1("span", {
|
|
9152
9152
|
id: "aria-results"
|
|
9153
|
-
},
|
|
9153
|
+
}, H), x1("span", {
|
|
9154
9154
|
id: "aria-guidance"
|
|
9155
9155
|
}, S));
|
|
9156
9156
|
return x1(B3, null, x1(De, {
|
|
9157
9157
|
id: v
|
|
9158
9158
|
}, L && E), x1(De, {
|
|
9159
|
-
"aria-live":
|
|
9159
|
+
"aria-live": V,
|
|
9160
9160
|
"aria-atomic": "false",
|
|
9161
9161
|
"aria-relevant": "additions text",
|
|
9162
9162
|
role: "log"
|
|
@@ -9475,8 +9475,8 @@ var o4 = function(o) {
|
|
|
9475
9475
|
function i4(e) {
|
|
9476
9476
|
var o = e.isEnabled, i = e.onBottomArrive, r = e.onBottomLeave, n = e.onTopArrive, d = e.onTopLeave, p = P1(!1), b = P1(!1), s = P1(0), v = P1(null), h = z1(function(u, f) {
|
|
9477
9477
|
if (v.current !== null) {
|
|
9478
|
-
var g = v.current, x = g.scrollTop, C = g.scrollHeight, w = g.clientHeight, A = v.current,
|
|
9479
|
-
|
|
9478
|
+
var g = v.current, x = g.scrollTop, C = g.scrollHeight, w = g.clientHeight, A = v.current, V = f > 0, I = C - w - x, Z = !1;
|
|
9479
|
+
I > f && p.current && (r && r(u), p.current = !1), V && b.current && (d && d(u), b.current = !1), V && f > I ? (i && !p.current && i(u), A.scrollTop = C, Z = !0, p.current = !0) : !V && -f > x && (n && !b.current && n(u), A.scrollTop = 0, Z = !0, b.current = !0), Z && o4(u);
|
|
9480
9480
|
}
|
|
9481
9481
|
}, [i, r, n, d]), c = z1(function(u) {
|
|
9482
9482
|
h(u, u.deltaY);
|
|
@@ -10057,7 +10057,7 @@ var Mt = function(o) {
|
|
|
10057
10057
|
}, n.onValueInputFocus = function(s) {
|
|
10058
10058
|
s.preventDefault(), s.stopPropagation(), n.focus();
|
|
10059
10059
|
}, n.onKeyDown = function(s) {
|
|
10060
|
-
var v = n.props, h = v.isMulti, c = v.backspaceRemovesValue, l = v.escapeClearsValue, a = v.inputValue, y = v.isClearable, m = v.isDisabled, u = v.menuIsOpen, f = v.onKeyDown, g = v.tabSelectsValue, x = v.openMenuOnFocus, C = n.state, w = C.focusedOption, A = C.focusedValue,
|
|
10060
|
+
var v = n.props, h = v.isMulti, c = v.backspaceRemovesValue, l = v.escapeClearsValue, a = v.inputValue, y = v.isClearable, m = v.isDisabled, u = v.menuIsOpen, f = v.onKeyDown, g = v.tabSelectsValue, x = v.openMenuOnFocus, C = n.state, w = C.focusedOption, A = C.focusedValue, V = C.selectValue;
|
|
10061
10061
|
if (!m && !(typeof f == "function" && (f(s), s.defaultPrevented))) {
|
|
10062
10062
|
switch (n.blockOptionHover = !0, s.key) {
|
|
10063
10063
|
case "ArrowLeft":
|
|
@@ -10085,7 +10085,7 @@ var Mt = function(o) {
|
|
|
10085
10085
|
case "Tab":
|
|
10086
10086
|
if (n.isComposing || s.shiftKey || !u || !g || !w || // don't capture the event if the menu opens on focus and the focused
|
|
10087
10087
|
// option is already selected; it breaks the flow of navigation
|
|
10088
|
-
x && n.isOptionSelected(w,
|
|
10088
|
+
x && n.isOptionSelected(w, V))
|
|
10089
10089
|
return;
|
|
10090
10090
|
n.selectOption(w);
|
|
10091
10091
|
break;
|
|
@@ -10453,8 +10453,8 @@ var Mt = function(o) {
|
|
|
10453
10453
|
}
|
|
10454
10454
|
}), g);
|
|
10455
10455
|
if (u)
|
|
10456
|
-
return C.map(function(
|
|
10457
|
-
var k =
|
|
10456
|
+
return C.map(function(I, Z) {
|
|
10457
|
+
var k = I === w, H = "".concat(n.getOptionLabel(I), "-").concat(n.getOptionValue(I));
|
|
10458
10458
|
return /* @__PURE__ */ M1.createElement(p, I1({}, l, {
|
|
10459
10459
|
components: {
|
|
10460
10460
|
Container: b,
|
|
@@ -10463,29 +10463,29 @@ var Mt = function(o) {
|
|
|
10463
10463
|
},
|
|
10464
10464
|
isFocused: k,
|
|
10465
10465
|
isDisabled: m,
|
|
10466
|
-
key:
|
|
10466
|
+
key: H,
|
|
10467
10467
|
index: Z,
|
|
10468
10468
|
removeProps: {
|
|
10469
10469
|
onClick: function() {
|
|
10470
|
-
return n.removeValue(
|
|
10470
|
+
return n.removeValue(I);
|
|
10471
10471
|
},
|
|
10472
10472
|
onTouchEnd: function() {
|
|
10473
|
-
return n.removeValue(
|
|
10473
|
+
return n.removeValue(I);
|
|
10474
10474
|
},
|
|
10475
10475
|
onMouseDown: function(S) {
|
|
10476
10476
|
S.preventDefault();
|
|
10477
10477
|
}
|
|
10478
10478
|
},
|
|
10479
|
-
data:
|
|
10480
|
-
}), n.formatOptionLabel(
|
|
10479
|
+
data: I
|
|
10480
|
+
}), n.formatOptionLabel(I, "value"));
|
|
10481
10481
|
});
|
|
10482
10482
|
if (f)
|
|
10483
10483
|
return null;
|
|
10484
|
-
var
|
|
10484
|
+
var V = C[0];
|
|
10485
10485
|
return /* @__PURE__ */ M1.createElement(h, I1({}, l, {
|
|
10486
|
-
data:
|
|
10486
|
+
data: V,
|
|
10487
10487
|
isDisabled: m
|
|
10488
|
-
}), this.formatOptionLabel(
|
|
10488
|
+
}), this.formatOptionLabel(V, "value"));
|
|
10489
10489
|
}
|
|
10490
10490
|
}, {
|
|
10491
10491
|
key: "renderClearIndicator",
|
|
@@ -10550,8 +10550,8 @@ var Mt = function(o) {
|
|
|
10550
10550
|
}, {
|
|
10551
10551
|
key: "renderMenu",
|
|
10552
10552
|
value: function() {
|
|
10553
|
-
var n = this, d = this.getComponents(), p = d.Group, b = d.GroupHeading, s = d.Menu, v = d.MenuList, h = d.MenuPortal, c = d.LoadingMessage, l = d.NoOptionsMessage, a = d.Option, y = this.commonProps, m = this.state.focusedOption, u = this.props, f = u.captureMenuScroll, g = u.inputValue, x = u.isLoading, C = u.loadingMessage, w = u.minMenuHeight, A = u.maxMenuHeight,
|
|
10554
|
-
if (!
|
|
10553
|
+
var n = this, d = this.getComponents(), p = d.Group, b = d.GroupHeading, s = d.Menu, v = d.MenuList, h = d.MenuPortal, c = d.LoadingMessage, l = d.NoOptionsMessage, a = d.Option, y = this.commonProps, m = this.state.focusedOption, u = this.props, f = u.captureMenuScroll, g = u.inputValue, x = u.isLoading, C = u.loadingMessage, w = u.minMenuHeight, A = u.maxMenuHeight, V = u.menuIsOpen, I = u.menuPlacement, Z = u.menuPosition, k = u.menuPortalTarget, H = u.menuShouldBlockScroll, L = u.menuShouldScrollIntoView, S = u.noOptionsMessage, E = u.onMenuScrollToTop, F = u.onMenuScrollToBottom;
|
|
10554
|
+
if (!V)
|
|
10555
10555
|
return null;
|
|
10556
10556
|
var D = function(R, j) {
|
|
10557
10557
|
var _ = R.type, N = R.data, W = R.isDisabled, Y = R.isSelected, J = R.label, e1 = R.value, s1 = m === N, f1 = W ? void 0 : function() {
|
|
@@ -10619,7 +10619,7 @@ var Mt = function(o) {
|
|
|
10619
10619
|
var P = {
|
|
10620
10620
|
minMenuHeight: w,
|
|
10621
10621
|
maxMenuHeight: A,
|
|
10622
|
-
menuPlacement:
|
|
10622
|
+
menuPlacement: I,
|
|
10623
10623
|
menuPosition: Z,
|
|
10624
10624
|
menuShouldScrollIntoView: L
|
|
10625
10625
|
}, M = /* @__PURE__ */ M1.createElement(T6, I1({}, y, P), function(B) {
|
|
@@ -10636,7 +10636,7 @@ var Mt = function(o) {
|
|
|
10636
10636
|
captureEnabled: f,
|
|
10637
10637
|
onTopArrive: E,
|
|
10638
10638
|
onBottomArrive: F,
|
|
10639
|
-
lockEnabled:
|
|
10639
|
+
lockEnabled: H
|
|
10640
10640
|
}, function(W) {
|
|
10641
10641
|
return /* @__PURE__ */ M1.createElement(v, I1({}, y, {
|
|
10642
10642
|
innerRef: function(J) {
|
|
@@ -10656,7 +10656,7 @@ var Mt = function(o) {
|
|
|
10656
10656
|
return k || Z === "fixed" ? /* @__PURE__ */ M1.createElement(h, I1({}, y, {
|
|
10657
10657
|
appendTo: k,
|
|
10658
10658
|
controlElement: this.controlRef,
|
|
10659
|
-
menuPlacement:
|
|
10659
|
+
menuPlacement: I,
|
|
10660
10660
|
menuPosition: Z
|
|
10661
10661
|
}), M) : M;
|
|
10662
10662
|
}
|
|
@@ -10751,11 +10751,11 @@ var Mt = function(o) {
|
|
|
10751
10751
|
value: function(n, d) {
|
|
10752
10752
|
var p = d.prevProps, b = d.clearFocusValueOnUpdate, s = d.inputIsHiddenAfterUpdate, v = d.ariaSelection, h = d.isFocused, c = d.prevWasFocused, l = d.instancePrefix, a = n.options, y = n.value, m = n.menuIsOpen, u = n.inputValue, f = n.isMulti, g = D2(y), x = {};
|
|
10753
10753
|
if (p && (y !== p.value || a !== p.options || m !== p.menuIsOpen || u !== p.inputValue)) {
|
|
10754
|
-
var C = m ? M4(n, g) : [], w = m ? $e(S2(n, g), "".concat(l, "-option")) : [], A = b ? _4(d, g) : null,
|
|
10754
|
+
var C = m ? M4(n, g) : [], w = m ? $e(S2(n, g), "".concat(l, "-option")) : [], A = b ? _4(d, g) : null, V = A4(d, C), I = V3(w, V);
|
|
10755
10755
|
x = {
|
|
10756
10756
|
selectValue: g,
|
|
10757
|
-
focusedOption:
|
|
10758
|
-
focusedOptionId:
|
|
10757
|
+
focusedOption: V,
|
|
10758
|
+
focusedOptionId: I,
|
|
10759
10759
|
focusableOptionsWithIds: w,
|
|
10760
10760
|
focusedValue: A,
|
|
10761
10761
|
clearFocusValueOnUpdate: !1
|
|
@@ -10764,15 +10764,15 @@ var Mt = function(o) {
|
|
|
10764
10764
|
var Z = s != null && n !== p ? {
|
|
10765
10765
|
inputIsHidden: s,
|
|
10766
10766
|
inputIsHiddenAfterUpdate: void 0
|
|
10767
|
-
} : {}, k = v,
|
|
10768
|
-
return h && !
|
|
10767
|
+
} : {}, k = v, H = h && c;
|
|
10768
|
+
return h && !H && (k = {
|
|
10769
10769
|
value: n2(f, g, g[0] || null),
|
|
10770
10770
|
options: g,
|
|
10771
10771
|
action: "initial-input-focus"
|
|
10772
|
-
},
|
|
10772
|
+
}, H = !c), (v == null ? void 0 : v.action) === "initial-input-focus" && (k = null), v1(v1(v1({}, x), Z), {}, {
|
|
10773
10773
|
prevProps: n,
|
|
10774
10774
|
ariaSelection: k,
|
|
10775
|
-
prevWasFocused:
|
|
10775
|
+
prevWasFocused: H
|
|
10776
10776
|
});
|
|
10777
10777
|
}
|
|
10778
10778
|
}]), i;
|
|
@@ -10806,14 +10806,14 @@ var S4 = /* @__PURE__ */ c2(function(e, o) {
|
|
|
10806
10806
|
}
|
|
10807
10807
|
};
|
|
10808
10808
|
function O4(e) {
|
|
10809
|
-
var o = e.allowCreateWhileLoading, i = o === void 0 ? !1 : o, r = e.createOptionPosition, n = r === void 0 ? "last" : r, d = e.formatCreateLabel, p = d === void 0 ? k3.formatCreateLabel : d, b = e.isValidNewOption, s = b === void 0 ? k3.isValidNewOption : b, v = e.getNewOptionData, h = v === void 0 ? k3.getNewOptionData : v, c = e.onCreateOption, l = e.options, a = l === void 0 ? [] : l, y = e.onChange, m = c5(e, T4), u = m.getOptionValue, f = u === void 0 ? wt : u, g = m.getOptionLabel, x = g === void 0 ? bt : g, C = m.inputValue, w = m.isLoading, A = m.isMulti,
|
|
10810
|
-
return s(C, D2(
|
|
10809
|
+
var o = e.allowCreateWhileLoading, i = o === void 0 ? !1 : o, r = e.createOptionPosition, n = r === void 0 ? "last" : r, d = e.formatCreateLabel, p = d === void 0 ? k3.formatCreateLabel : d, b = e.isValidNewOption, s = b === void 0 ? k3.isValidNewOption : b, v = e.getNewOptionData, h = v === void 0 ? k3.getNewOptionData : v, c = e.onCreateOption, l = e.options, a = l === void 0 ? [] : l, y = e.onChange, m = c5(e, T4), u = m.getOptionValue, f = u === void 0 ? wt : u, g = m.getOptionLabel, x = g === void 0 ? bt : g, C = m.inputValue, w = m.isLoading, A = m.isMulti, V = m.value, I = m.name, Z = p5(function() {
|
|
10810
|
+
return s(C, D2(V), a, {
|
|
10811
10811
|
getOptionValue: f,
|
|
10812
10812
|
getOptionLabel: x
|
|
10813
10813
|
}) ? h(C, p(C)) : void 0;
|
|
10814
|
-
}, [p, h, x, f, C, s, a,
|
|
10814
|
+
}, [p, h, x, f, C, s, a, V]), k = p5(function() {
|
|
10815
10815
|
return (i || !w) && Z ? n === "first" ? [Z].concat(F5(a)) : [].concat(F5(a), [Z]) : a;
|
|
10816
|
-
}, [i, n, w, Z, a]),
|
|
10816
|
+
}, [i, n, w, Z, a]), H = z1(function(L, S) {
|
|
10817
10817
|
if (S.action !== "select-option")
|
|
10818
10818
|
return y(L, S);
|
|
10819
10819
|
var E = Array.isArray(L) ? L : [L];
|
|
@@ -10823,18 +10823,18 @@ function O4(e) {
|
|
|
10823
10823
|
else {
|
|
10824
10824
|
var F = h(C, C), D = {
|
|
10825
10825
|
action: "create-option",
|
|
10826
|
-
name:
|
|
10826
|
+
name: I,
|
|
10827
10827
|
option: F
|
|
10828
10828
|
};
|
|
10829
|
-
y(n2(A, [].concat(F5(D2(
|
|
10829
|
+
y(n2(A, [].concat(F5(D2(V)), [F]), F), D);
|
|
10830
10830
|
}
|
|
10831
10831
|
return;
|
|
10832
10832
|
}
|
|
10833
10833
|
y(L, S);
|
|
10834
|
-
}, [h, C, A,
|
|
10834
|
+
}, [h, C, A, I, Z, c, y, V]);
|
|
10835
10835
|
return v1(v1({}, m), {}, {
|
|
10836
10836
|
options: k,
|
|
10837
|
-
onChange:
|
|
10837
|
+
onChange: H
|
|
10838
10838
|
});
|
|
10839
10839
|
}
|
|
10840
10840
|
var B4 = /* @__PURE__ */ c2(function(e, o) {
|
|
@@ -10974,13 +10974,14 @@ const ge = {
|
|
|
10974
10974
|
fontFamily: u,
|
|
10975
10975
|
openMenuOnFocus: f,
|
|
10976
10976
|
isSearchable: g = !0,
|
|
10977
|
-
formatOptionLabel: x
|
|
10977
|
+
formatOptionLabel: x,
|
|
10978
|
+
customComponent: C
|
|
10978
10979
|
}) => {
|
|
10979
|
-
const
|
|
10980
|
-
|
|
10980
|
+
const w = C ?? {}, A = l, V = a;
|
|
10981
|
+
A && (w.Option = A), V && (w.MultiValue = V);
|
|
10981
10982
|
const I = P1(
|
|
10982
10983
|
null
|
|
10983
|
-
), [
|
|
10984
|
+
), [Z, k] = S1(!1);
|
|
10984
10985
|
return /* @__PURE__ */ r1(
|
|
10985
10986
|
k1,
|
|
10986
10987
|
{
|
|
@@ -10988,8 +10989,8 @@ const ge = {
|
|
|
10988
10989
|
fontFamily: u ?? "Degular",
|
|
10989
10990
|
fontWeight: 500,
|
|
10990
10991
|
onClick: () => {
|
|
10991
|
-
var
|
|
10992
|
-
|
|
10992
|
+
var H;
|
|
10993
|
+
Z || (H = I.current) == null || H.focus();
|
|
10993
10994
|
},
|
|
10994
10995
|
children: [
|
|
10995
10996
|
e && /* @__PURE__ */ t(
|
|
@@ -11013,22 +11014,22 @@ const ge = {
|
|
|
11013
11014
|
isClearable: h,
|
|
11014
11015
|
defaultInputValue: s,
|
|
11015
11016
|
value: b,
|
|
11016
|
-
onChange: (
|
|
11017
|
-
var
|
|
11018
|
-
d && (d(
|
|
11017
|
+
onChange: (H) => {
|
|
11018
|
+
var L;
|
|
11019
|
+
d && (d(H), (L = I == null ? void 0 : I.current) == null || L.blur());
|
|
11019
11020
|
},
|
|
11020
|
-
onInputChange: (
|
|
11021
|
-
p && p(
|
|
11021
|
+
onInputChange: (H) => {
|
|
11022
|
+
p && p(H);
|
|
11022
11023
|
},
|
|
11023
11024
|
ref: I,
|
|
11024
|
-
onBlur: (
|
|
11025
|
+
onBlur: (H) => n && n(H),
|
|
11025
11026
|
components: {
|
|
11026
11027
|
ClearIndicator: _t,
|
|
11027
11028
|
DropdownIndicator: me,
|
|
11028
11029
|
IndicatorSeparator: At,
|
|
11029
11030
|
MultiValueRemove: Et,
|
|
11030
11031
|
// IndicatorsContainer,
|
|
11031
|
-
...
|
|
11032
|
+
...w
|
|
11032
11033
|
},
|
|
11033
11034
|
id: o,
|
|
11034
11035
|
options: v,
|
|
@@ -11041,10 +11042,10 @@ const ge = {
|
|
|
11041
11042
|
noOptionsMessage: () => m ?? "No options",
|
|
11042
11043
|
openMenuOnFocus: f,
|
|
11043
11044
|
onMenuOpen: () => {
|
|
11044
|
-
|
|
11045
|
+
k(!0);
|
|
11045
11046
|
},
|
|
11046
11047
|
onMenuClose: () => {
|
|
11047
|
-
|
|
11048
|
+
k(!1);
|
|
11048
11049
|
},
|
|
11049
11050
|
formatOptionLabel: x,
|
|
11050
11051
|
isSearchable: g
|
|
@@ -11074,17 +11075,17 @@ const ge = {
|
|
|
11074
11075
|
}) => {
|
|
11075
11076
|
const [f, g] = S1(v), x = {};
|
|
11076
11077
|
if (h) {
|
|
11077
|
-
const
|
|
11078
|
-
|
|
11078
|
+
const V = l, I = a;
|
|
11079
|
+
V && (x.Option = V), I && (x.MultiValue = I);
|
|
11079
11080
|
}
|
|
11080
|
-
const C = (
|
|
11081
|
-
const
|
|
11082
|
-
label:
|
|
11083
|
-
value:
|
|
11081
|
+
const C = (V) => {
|
|
11082
|
+
const I = {
|
|
11083
|
+
label: V,
|
|
11084
|
+
value: V.toLowerCase().replace(/\W/g, "")
|
|
11084
11085
|
};
|
|
11085
|
-
g((Z) => [...Z,
|
|
11086
|
-
}, w = (
|
|
11087
|
-
|
|
11086
|
+
g((Z) => [...Z, I]), d && d(h ? [...b, I] : I);
|
|
11087
|
+
}, w = (V) => {
|
|
11088
|
+
V.keyCode === 188 && (V.preventDefault(), C(V.target.value));
|
|
11088
11089
|
}, A = P1(
|
|
11089
11090
|
null
|
|
11090
11091
|
);
|
|
@@ -11108,15 +11109,15 @@ const ge = {
|
|
|
11108
11109
|
{
|
|
11109
11110
|
isMulti: h,
|
|
11110
11111
|
isClearable: !0,
|
|
11111
|
-
onChange: (
|
|
11112
|
-
var
|
|
11113
|
-
d && (h ? (d(
|
|
11112
|
+
onChange: (V) => {
|
|
11113
|
+
var I, Z;
|
|
11114
|
+
d && (h ? (d(V), (I = A == null ? void 0 : A.current) == null || I.blur()) : (d(V), (Z = A == null ? void 0 : A.current) == null || Z.blur()));
|
|
11114
11115
|
},
|
|
11115
|
-
onInputChange: (
|
|
11116
|
-
p && p(
|
|
11116
|
+
onInputChange: (V) => {
|
|
11117
|
+
p && p(V);
|
|
11117
11118
|
},
|
|
11118
11119
|
ref: A,
|
|
11119
|
-
onBlur: (
|
|
11120
|
+
onBlur: (V) => n && n(V),
|
|
11120
11121
|
onKeyDown: w,
|
|
11121
11122
|
onCreateOption: C,
|
|
11122
11123
|
options: v,
|
|
@@ -11154,7 +11155,7 @@ var N4 = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
|
|
|
11154
11155
|
function P4(e) {
|
|
11155
11156
|
var o = e.defaultOptions, i = o === void 0 ? !1 : o, r = e.cacheOptions, n = r === void 0 ? !1 : r, d = e.loadOptions;
|
|
11156
11157
|
e.options;
|
|
11157
|
-
var p = e.isLoading, b = p === void 0 ? !1 : p, s = e.onInputChange, v = e.filterOption, h = v === void 0 ? null : v, c = c5(e, N4), l = c.inputValue, a = P1(void 0), y = P1(!1), m = S1(Array.isArray(i) ? i : void 0), u = J1(m, 2), f = u[0], g = u[1], x = S1(typeof l < "u" ? l : ""), C = J1(x, 2), w = C[0], A = C[1],
|
|
11158
|
+
var p = e.isLoading, b = p === void 0 ? !1 : p, s = e.onInputChange, v = e.filterOption, h = v === void 0 ? null : v, c = c5(e, N4), l = c.inputValue, a = P1(void 0), y = P1(!1), m = S1(Array.isArray(i) ? i : void 0), u = J1(m, 2), f = u[0], g = u[1], x = S1(typeof l < "u" ? l : ""), C = J1(x, 2), w = C[0], A = C[1], V = S1(i === !0), I = J1(V, 2), Z = I[0], k = I[1], H = S1(void 0), L = J1(H, 2), S = L[0], E = L[1], F = S1([]), D = J1(F, 2), z = D[0], Q = D[1], X = S1(!1), P = J1(X, 2), M = P[0], B = P[1], R = S1({}), j = J1(R, 2), _ = j[0], N = j[1], W = S1(void 0), Y = J1(W, 2), J = Y[0], e1 = Y[1], s1 = S1(void 0), f1 = J1(s1, 2), p1 = f1[0], m1 = f1[1];
|
|
11158
11159
|
n !== p1 && (N({}), m1(n)), i !== J && (g(Array.isArray(i) ? i : void 0), e1(i)), Q1(function() {
|
|
11159
11160
|
return y.current = !0, function() {
|
|
11160
11161
|
y.current = !1;
|
|
@@ -13151,16 +13152,16 @@ var W4 = function(e) {
|
|
|
13151
13152
|
if (typeof w != "string")
|
|
13152
13153
|
return w === 0 ? w : +w;
|
|
13153
13154
|
w = w.replace(n, "");
|
|
13154
|
-
var
|
|
13155
|
-
return
|
|
13155
|
+
var V = p.test(w);
|
|
13156
|
+
return V || b.test(w) ? s(w.slice(2), V ? 2 : 8) : d.test(w) ? NaN : +w;
|
|
13156
13157
|
}(C)) === 1 / 0 || C === -1 / 0 ? 17976931348623157e292 * (C < 0 ? -1 : 1) : C == C ? C : 0 : C === 0 ? C : 0;
|
|
13157
13158
|
}
|
|
13158
13159
|
e.exports = function(C, w, A) {
|
|
13159
|
-
var
|
|
13160
|
-
return C = (
|
|
13161
|
-
var L = x(
|
|
13160
|
+
var V, I, Z, k;
|
|
13161
|
+
return C = (V = C) == null ? "" : u(V), I = function(H) {
|
|
13162
|
+
var L = x(H), S = L % 1;
|
|
13162
13163
|
return L == L ? S ? L - S : L : 0;
|
|
13163
|
-
}(A), Z = 0, k = C.length,
|
|
13164
|
+
}(A), Z = 0, k = C.length, I == I && (k !== void 0 && (I = I <= k ? I : k), Z !== void 0 && (I = I >= Z ? I : Z)), A = I, w = u(w), C.slice(A, A + w.length) == w;
|
|
13164
13165
|
};
|
|
13165
13166
|
}).call(this, i(3));
|
|
13166
13167
|
}, function(e, o) {
|
|
@@ -13176,7 +13177,7 @@ var W4 = function(e) {
|
|
|
13176
13177
|
e.exports = i;
|
|
13177
13178
|
}, function(e, o, i) {
|
|
13178
13179
|
(function(r) {
|
|
13179
|
-
var n = /^\[object .+?Constructor\]$/, d = typeof r == "object" && r && r.Object === Object && r, p = typeof self == "object" && self && self.Object === Object && self, b = d || p || Function("return this")(), s, v = Array.prototype, h = Function.prototype, c = Object.prototype, l = b["__core-js_shared__"], a = (s = /[^.]+$/.exec(l && l.keys && l.keys.IE_PROTO || "")) ? "Symbol(src)_1." + s : "", y = h.toString, m = c.hasOwnProperty, u = c.toString, f = RegExp("^" + y.call(m).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), g = v.splice, x =
|
|
13180
|
+
var n = /^\[object .+?Constructor\]$/, d = typeof r == "object" && r && r.Object === Object && r, p = typeof self == "object" && self && self.Object === Object && self, b = d || p || Function("return this")(), s, v = Array.prototype, h = Function.prototype, c = Object.prototype, l = b["__core-js_shared__"], a = (s = /[^.]+$/.exec(l && l.keys && l.keys.IE_PROTO || "")) ? "Symbol(src)_1." + s : "", y = h.toString, m = c.hasOwnProperty, u = c.toString, f = RegExp("^" + y.call(m).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), g = v.splice, x = H(b, "Map"), C = H(Object, "create");
|
|
13180
13181
|
function w(E) {
|
|
13181
13182
|
var F = -1, D = E ? E.length : 0;
|
|
13182
13183
|
for (this.clear(); ++F < D; ) {
|
|
@@ -13191,14 +13192,14 @@ var W4 = function(e) {
|
|
|
13191
13192
|
this.set(z[0], z[1]);
|
|
13192
13193
|
}
|
|
13193
13194
|
}
|
|
13194
|
-
function
|
|
13195
|
+
function V(E) {
|
|
13195
13196
|
var F = -1, D = E ? E.length : 0;
|
|
13196
13197
|
for (this.clear(); ++F < D; ) {
|
|
13197
13198
|
var z = E[F];
|
|
13198
13199
|
this.set(z[0], z[1]);
|
|
13199
13200
|
}
|
|
13200
13201
|
}
|
|
13201
|
-
function
|
|
13202
|
+
function I(E, F) {
|
|
13202
13203
|
for (var D, z, Q = E.length; Q--; )
|
|
13203
13204
|
if ((D = E[Q][0]) === (z = F) || D != D && z != z)
|
|
13204
13205
|
return Q;
|
|
@@ -13235,7 +13236,7 @@ var W4 = function(e) {
|
|
|
13235
13236
|
var D, z, Q = E.__data__;
|
|
13236
13237
|
return ((z = typeof (D = F)) == "string" || z == "number" || z == "symbol" || z == "boolean" ? D !== "__proto__" : D === null) ? Q[typeof F == "string" ? "string" : "hash"] : Q.map;
|
|
13237
13238
|
}
|
|
13238
|
-
function
|
|
13239
|
+
function H(E, F) {
|
|
13239
13240
|
var D = function(z, Q) {
|
|
13240
13241
|
return z == null ? void 0 : z[Q];
|
|
13241
13242
|
}(E, F);
|
|
@@ -13251,7 +13252,7 @@ var W4 = function(e) {
|
|
|
13251
13252
|
var P = E.apply(this, z);
|
|
13252
13253
|
return D.cache = X.set(Q, P), P;
|
|
13253
13254
|
};
|
|
13254
|
-
return D.cache = new (L.Cache ||
|
|
13255
|
+
return D.cache = new (L.Cache || V)(), D;
|
|
13255
13256
|
}
|
|
13256
13257
|
function S(E) {
|
|
13257
13258
|
var F = typeof E;
|
|
@@ -13276,27 +13277,27 @@ var W4 = function(e) {
|
|
|
13276
13277
|
}, A.prototype.clear = function() {
|
|
13277
13278
|
this.__data__ = [];
|
|
13278
13279
|
}, A.prototype.delete = function(E) {
|
|
13279
|
-
var F = this.__data__, D =
|
|
13280
|
+
var F = this.__data__, D = I(F, E);
|
|
13280
13281
|
return !(D < 0) && (D == F.length - 1 ? F.pop() : g.call(F, D, 1), !0);
|
|
13281
13282
|
}, A.prototype.get = function(E) {
|
|
13282
|
-
var F = this.__data__, D =
|
|
13283
|
+
var F = this.__data__, D = I(F, E);
|
|
13283
13284
|
return D < 0 ? void 0 : F[D][1];
|
|
13284
13285
|
}, A.prototype.has = function(E) {
|
|
13285
|
-
return
|
|
13286
|
+
return I(this.__data__, E) > -1;
|
|
13286
13287
|
}, A.prototype.set = function(E, F) {
|
|
13287
|
-
var D = this.__data__, z =
|
|
13288
|
+
var D = this.__data__, z = I(D, E);
|
|
13288
13289
|
return z < 0 ? D.push([E, F]) : D[z][1] = F, this;
|
|
13289
|
-
},
|
|
13290
|
+
}, V.prototype.clear = function() {
|
|
13290
13291
|
this.__data__ = { hash: new w(), map: new (x || A)(), string: new w() };
|
|
13291
|
-
},
|
|
13292
|
+
}, V.prototype.delete = function(E) {
|
|
13292
13293
|
return k(this, E).delete(E);
|
|
13293
|
-
},
|
|
13294
|
+
}, V.prototype.get = function(E) {
|
|
13294
13295
|
return k(this, E).get(E);
|
|
13295
|
-
},
|
|
13296
|
+
}, V.prototype.has = function(E) {
|
|
13296
13297
|
return k(this, E).has(E);
|
|
13297
|
-
},
|
|
13298
|
+
}, V.prototype.set = function(E, F) {
|
|
13298
13299
|
return k(this, E).set(E, F), this;
|
|
13299
|
-
}, L.Cache =
|
|
13300
|
+
}, L.Cache = V, e.exports = L;
|
|
13300
13301
|
}).call(this, i(3));
|
|
13301
13302
|
}, function(e, o, i) {
|
|
13302
13303
|
(function(r) {
|
|
@@ -13327,19 +13328,19 @@ var W4 = function(e) {
|
|
|
13327
13328
|
return C || b.test(g) ? s(g.slice(2), C ? 2 : 8) : d.test(g) ? NaN : +g;
|
|
13328
13329
|
}
|
|
13329
13330
|
e.exports = function(g, x, C) {
|
|
13330
|
-
var w, A,
|
|
13331
|
+
var w, A, V, I, Z, k, H = 0, L = !1, S = !1, E = !0;
|
|
13331
13332
|
if (typeof g != "function")
|
|
13332
13333
|
throw new TypeError("Expected a function");
|
|
13333
13334
|
function F(M) {
|
|
13334
13335
|
var B = w, R = A;
|
|
13335
|
-
return w = A = void 0,
|
|
13336
|
+
return w = A = void 0, H = M, I = g.apply(R, B);
|
|
13336
13337
|
}
|
|
13337
13338
|
function D(M) {
|
|
13338
|
-
return
|
|
13339
|
+
return H = M, Z = setTimeout(Q, x), L ? F(M) : I;
|
|
13339
13340
|
}
|
|
13340
13341
|
function z(M) {
|
|
13341
13342
|
var B = M - k;
|
|
13342
|
-
return k === void 0 || B >= x || B < 0 || S && M -
|
|
13343
|
+
return k === void 0 || B >= x || B < 0 || S && M - H >= V;
|
|
13343
13344
|
}
|
|
13344
13345
|
function Q() {
|
|
13345
13346
|
var M = m();
|
|
@@ -13347,11 +13348,11 @@ var W4 = function(e) {
|
|
|
13347
13348
|
return X(M);
|
|
13348
13349
|
Z = setTimeout(Q, function(B) {
|
|
13349
13350
|
var R = x - (B - k);
|
|
13350
|
-
return S ? y(R,
|
|
13351
|
+
return S ? y(R, V - (B - H)) : R;
|
|
13351
13352
|
}(M));
|
|
13352
13353
|
}
|
|
13353
13354
|
function X(M) {
|
|
13354
|
-
return Z = void 0, E && w ? F(M) : (w = A = void 0,
|
|
13355
|
+
return Z = void 0, E && w ? F(M) : (w = A = void 0, I);
|
|
13355
13356
|
}
|
|
13356
13357
|
function P() {
|
|
13357
13358
|
var M = m(), B = z(M);
|
|
@@ -13361,12 +13362,12 @@ var W4 = function(e) {
|
|
|
13361
13362
|
if (S)
|
|
13362
13363
|
return Z = setTimeout(Q, x), F(k);
|
|
13363
13364
|
}
|
|
13364
|
-
return Z === void 0 && (Z = setTimeout(Q, x)),
|
|
13365
|
+
return Z === void 0 && (Z = setTimeout(Q, x)), I;
|
|
13365
13366
|
}
|
|
13366
|
-
return x = f(x) || 0, u(C) && (L = !!C.leading,
|
|
13367
|
-
Z !== void 0 && clearTimeout(Z),
|
|
13367
|
+
return x = f(x) || 0, u(C) && (L = !!C.leading, V = (S = "maxWait" in C) ? a(f(C.maxWait) || 0, x) : V, E = "trailing" in C ? !!C.trailing : E), P.cancel = function() {
|
|
13368
|
+
Z !== void 0 && clearTimeout(Z), H = 0, w = k = A = Z = void 0;
|
|
13368
13369
|
}, P.flush = function() {
|
|
13369
|
-
return Z === void 0 ?
|
|
13370
|
+
return Z === void 0 ? I : X(m());
|
|
13370
13371
|
}, P;
|
|
13371
13372
|
};
|
|
13372
13373
|
}).call(this, i(3));
|
|
@@ -13374,12 +13375,12 @@ var W4 = function(e) {
|
|
|
13374
13375
|
(function(r, n) {
|
|
13375
13376
|
var d = "[object Arguments]", p = "[object Map]", b = "[object Object]", s = "[object Set]", v = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, h = /^\w*$/, c = /^\./, l = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, a = /\\(\\)?/g, y = /^\[object .+?Constructor\]$/, m = /^(?:0|[1-9]\d*)$/, u = {};
|
|
13376
13377
|
u["[object Float32Array]"] = u["[object Float64Array]"] = u["[object Int8Array]"] = u["[object Int16Array]"] = u["[object Int32Array]"] = u["[object Uint8Array]"] = u["[object Uint8ClampedArray]"] = u["[object Uint16Array]"] = u["[object Uint32Array]"] = !0, u[d] = u["[object Array]"] = u["[object ArrayBuffer]"] = u["[object Boolean]"] = u["[object DataView]"] = u["[object Date]"] = u["[object Error]"] = u["[object Function]"] = u[p] = u["[object Number]"] = u[b] = u["[object RegExp]"] = u[s] = u["[object String]"] = u["[object WeakMap]"] = !1;
|
|
13377
|
-
var f = typeof r == "object" && r && r.Object === Object && r, g = typeof self == "object" && self && self.Object === Object && self, x = f || g || Function("return this")(), C = o && !o.nodeType && o, w = C && typeof n == "object" && n && !n.nodeType && n, A = w && w.exports === C && f.process,
|
|
13378
|
+
var f = typeof r == "object" && r && r.Object === Object && r, g = typeof self == "object" && self && self.Object === Object && self, x = f || g || Function("return this")(), C = o && !o.nodeType && o, w = C && typeof n == "object" && n && !n.nodeType && n, A = w && w.exports === C && f.process, V = function() {
|
|
13378
13379
|
try {
|
|
13379
13380
|
return A && A.binding("util");
|
|
13380
13381
|
} catch {
|
|
13381
13382
|
}
|
|
13382
|
-
}(),
|
|
13383
|
+
}(), I = V && V.isTypedArray;
|
|
13383
13384
|
function Z(G, K, a1, c1) {
|
|
13384
13385
|
var b1 = -1, w1 = G ? G.length : 0;
|
|
13385
13386
|
for (c1 && w1 && (a1 = G[++b1]); ++b1 < w1; )
|
|
@@ -13392,7 +13393,7 @@ var W4 = function(e) {
|
|
|
13392
13393
|
return !0;
|
|
13393
13394
|
return !1;
|
|
13394
13395
|
}
|
|
13395
|
-
function
|
|
13396
|
+
function H(G, K, a1, c1, b1) {
|
|
13396
13397
|
return b1(G, function(w1, V1, Z1) {
|
|
13397
13398
|
a1 = c1 ? (c1 = !1, w1) : K(a1, w1, V1, Z1);
|
|
13398
13399
|
}), a1;
|
|
@@ -13871,11 +13872,11 @@ var W4 = function(e) {
|
|
|
13871
13872
|
function h3(G) {
|
|
13872
13873
|
return typeof G == "symbol" || p2(G) && _.call(G) == "[object Symbol]";
|
|
13873
13874
|
}
|
|
13874
|
-
var e9 =
|
|
13875
|
+
var e9 = I ? function(G) {
|
|
13875
13876
|
return function(K) {
|
|
13876
13877
|
return G(K);
|
|
13877
13878
|
};
|
|
13878
|
-
}(
|
|
13879
|
+
}(I) : function(G) {
|
|
13879
13880
|
return p2(G) && f3(G.length) && !!u[_.call(G)];
|
|
13880
13881
|
};
|
|
13881
13882
|
function g2(G) {
|
|
@@ -13885,7 +13886,7 @@ var W4 = function(e) {
|
|
|
13885
13886
|
return G;
|
|
13886
13887
|
}
|
|
13887
13888
|
n.exports = function(G, K, a1) {
|
|
13888
|
-
var c1 = v5(G) ? Z :
|
|
13889
|
+
var c1 = v5(G) ? Z : H, b1 = arguments.length < 3;
|
|
13889
13890
|
return c1(G, $t(K), a1, b1, W1);
|
|
13890
13891
|
};
|
|
13891
13892
|
}).call(this, i(3), i(7)(e));
|
|
@@ -13968,9 +13969,9 @@ var W4 = function(e) {
|
|
|
13968
13969
|
})(P, M);
|
|
13969
13970
|
}
|
|
13970
13971
|
i.r(o);
|
|
13971
|
-
var m = i(0), u = i.n(m), f = i(5), g = i.n(f), x = i(4), C = i.n(x), w = i(6), A = i.n(w),
|
|
13972
|
+
var m = i(0), u = i.n(m), f = i(5), g = i.n(f), x = i(4), C = i.n(x), w = i(6), A = i.n(w), V = i(2), I = i.n(V), Z = i(1), k = i.n(Z);
|
|
13972
13973
|
i(8);
|
|
13973
|
-
function
|
|
13974
|
+
function H(P, M) {
|
|
13974
13975
|
return p(P) || function(B, R) {
|
|
13975
13976
|
var j = [], _ = !0, N = !1, W = void 0;
|
|
13976
13977
|
try {
|
|
@@ -14099,9 +14100,9 @@ var W4 = function(e) {
|
|
|
14099
14100
|
var q = function(l1, u1, d1) {
|
|
14100
14101
|
var h1 = [];
|
|
14101
14102
|
return D(h1, 1, l1, !0), D(h1, 3, u1), D(h1, 2, d1), h1;
|
|
14102
|
-
}(Y, J, e1), o1 = z(JSON.parse(JSON.stringify(L)), q), C1 = z(JSON.parse(JSON.stringify(S)), q), U =
|
|
14103
|
+
}(Y, J, e1), o1 = z(JSON.parse(JSON.stringify(L)), q), C1 = z(JSON.parse(JSON.stringify(S)), q), U = H(F(o1, M, f1, p1, m1), 2), $ = U[0], t1 = U[1];
|
|
14103
14104
|
if (B) {
|
|
14104
|
-
var i1 =
|
|
14105
|
+
var i1 = H(F(C1, M, f1, p1, m1), 2), n1 = i1[0];
|
|
14105
14106
|
i1[1], $ = this.sortTerritories(n1, $);
|
|
14106
14107
|
}
|
|
14107
14108
|
R && ($ = this.filterRegions(R, $)), this.onlyCountries = this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(j, $, W.includes("onlyCountries")), N), s1, W.includes("onlyCountries")), this.preferredCountries = _.length === 0 ? [] : this.localizeCountries(this.getFilteredCountryList(_, $, W.includes("preferredCountries")), s1, W.includes("preferredCountries")), this.hiddenAreaCodes = this.excludeCountries(this.getFilteredCountryList(j, t1), N);
|
|
@@ -14112,12 +14113,12 @@ var W4 = function(e) {
|
|
|
14112
14113
|
return !o1 || c(o1) !== "object" && typeof o1 != "function" ? l(q) : o1;
|
|
14113
14114
|
}(this, a(M).call(this, j))).getProbableCandidate = C()(function(q) {
|
|
14114
14115
|
return q && q.length !== 0 ? _.state.onlyCountries.filter(function(o1) {
|
|
14115
|
-
return
|
|
14116
|
+
return I()(o1.name.toLowerCase(), q.toLowerCase());
|
|
14116
14117
|
}, l(l(_)))[0] : null;
|
|
14117
14118
|
}), _.guessSelectedCountry = C()(function(q, o1, C1, U) {
|
|
14118
14119
|
var $;
|
|
14119
14120
|
if (_.props.enableAreaCodes === !1 && (U.some(function(n1) {
|
|
14120
|
-
if (
|
|
14121
|
+
if (I()(q, n1.dialCode))
|
|
14121
14122
|
return C1.some(function(l1) {
|
|
14122
14123
|
if (n1.iso2 === l1.iso2 && l1.mainCode)
|
|
14123
14124
|
return $ = l1, !0;
|
|
@@ -14130,7 +14131,7 @@ var W4 = function(e) {
|
|
|
14130
14131
|
if (q.trim() === "")
|
|
14131
14132
|
return t1;
|
|
14132
14133
|
var i1 = C1.reduce(function(n1, l1) {
|
|
14133
|
-
return
|
|
14134
|
+
return I()(q, l1.dialCode) && (l1.dialCode.length > n1.dialCode.length || l1.dialCode.length === n1.dialCode.length && l1.priority < n1.priority) ? l1 : n1;
|
|
14134
14135
|
}, { dialCode: "", priority: 10001 }, l(l(_)));
|
|
14135
14136
|
return i1.name ? i1 : t1;
|
|
14136
14137
|
}), _.updateCountry = function(q) {
|
|
@@ -14345,7 +14346,7 @@ var W4 = function(e) {
|
|
|
14345
14346
|
N = j.disableInitialCountryGuess ? 0 : s1.length > 1 ? _.guessSelectedCountry(s1.substring(0, 6), j.country, Y, e1) || 0 : j.country && Y.find(function(q) {
|
|
14346
14347
|
return q.iso2 == j.country;
|
|
14347
14348
|
}) || 0;
|
|
14348
|
-
var f1, p1 = s1.length < 2 && N && !
|
|
14349
|
+
var f1, p1 = s1.length < 2 && N && !I()(s1, N.dialCode) ? N.dialCode : "";
|
|
14349
14350
|
f1 = s1 === "" && N === 0 ? "" : _.formatNumber((j.disableCountryCode ? "" : p1) + s1, N.name ? N : void 0);
|
|
14350
14351
|
var m1 = Y.findIndex(function(q) {
|
|
14351
14352
|
return q == N;
|
|
@@ -14370,10 +14371,10 @@ var W4 = function(e) {
|
|
|
14370
14371
|
if (j === "")
|
|
14371
14372
|
return this.setState({ selectedCountry: W, formattedNumber: "" });
|
|
14372
14373
|
var f1, p1, m1 = j.replace(/\D/g, "");
|
|
14373
|
-
if (W &&
|
|
14374
|
+
if (W && I()(j, s1 + W.dialCode))
|
|
14374
14375
|
p1 = this.formatNumber(m1, W), this.setState({ formattedNumber: p1 });
|
|
14375
14376
|
else {
|
|
14376
|
-
var q = (f1 = this.props.disableCountryGuess ? W : this.guessSelectedCountry(m1.substring(0, 6), e1, N, Y) || W) &&
|
|
14377
|
+
var q = (f1 = this.props.disableCountryGuess ? W : this.guessSelectedCountry(m1.substring(0, 6), e1, N, Y) || W) && I()(m1, s1 + f1.dialCode) ? f1.dialCode : "";
|
|
14377
14378
|
p1 = this.formatNumber((this.props.disableCountryCode ? "" : q) + m1, f1 || void 0), this.setState({ selectedCountry: f1, formattedNumber: p1 });
|
|
14378
14379
|
}
|
|
14379
14380
|
} }, { key: "render", value: function() {
|
|
@@ -14489,8 +14490,8 @@ const Qf = ({
|
|
|
14489
14490
|
const [g, x] = S1(!1), C = P1(null), [w, A] = S1(0);
|
|
14490
14491
|
return Q1(() => {
|
|
14491
14492
|
if (u && C.current) {
|
|
14492
|
-
const
|
|
14493
|
-
A(
|
|
14493
|
+
const V = C.current.offsetWidth;
|
|
14494
|
+
A(V);
|
|
14494
14495
|
}
|
|
14495
14496
|
}, [u, C]), /* @__PURE__ */ r1(k1, { w: a || "full", children: [
|
|
14496
14497
|
e && /* @__PURE__ */ t(
|
|
@@ -14508,7 +14509,7 @@ const Qf = ({
|
|
|
14508
14509
|
}
|
|
14509
14510
|
),
|
|
14510
14511
|
/* @__PURE__ */ r1(te, { children: [
|
|
14511
|
-
l === "password" && /* @__PURE__ */ t(ne, { py: "24px", children: /* @__PURE__ */ t(k1, { onClick: () => x((
|
|
14512
|
+
l === "password" && /* @__PURE__ */ t(ne, { py: "24px", children: /* @__PURE__ */ t(k1, { onClick: () => x((V) => !V), children: g ? /* @__PURE__ */ t(
|
|
14512
14513
|
T9,
|
|
14513
14514
|
{
|
|
14514
14515
|
style: {
|
|
@@ -15447,8 +15448,8 @@ var wl = bl, Yt = { exports: {} };
|
|
|
15447
15448
|
typeof x.retain == "number" ? w.retain = g : w.insert = x.insert;
|
|
15448
15449
|
var A = s.attributes.compose(x.attributes, C.attributes, typeof x.retain == "number");
|
|
15449
15450
|
if (A && (w.attributes = A), f.push(w), !a.hasNext() && p(f.ops[f.ops.length - 1], w)) {
|
|
15450
|
-
var
|
|
15451
|
-
return f.concat(
|
|
15451
|
+
var V = new h(l.rest());
|
|
15452
|
+
return f.concat(V).chop();
|
|
15452
15453
|
}
|
|
15453
15454
|
} else
|
|
15454
15455
|
typeof C.delete == "number" && typeof x.retain == "number" && f.push(C);
|
|
@@ -15581,21 +15582,21 @@ var wl = bl, Yt = { exports: {} };
|
|
|
15581
15582
|
value: !0
|
|
15582
15583
|
}), r.default = r.BlockEmbed = r.bubbleFormats = void 0;
|
|
15583
15584
|
var d = function() {
|
|
15584
|
-
function
|
|
15585
|
+
function H(L, S) {
|
|
15585
15586
|
for (var E = 0; E < S.length; E++) {
|
|
15586
15587
|
var F = S[E];
|
|
15587
15588
|
F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(L, F.key, F);
|
|
15588
15589
|
}
|
|
15589
15590
|
}
|
|
15590
15591
|
return function(L, S, E) {
|
|
15591
|
-
return S &&
|
|
15592
|
+
return S && H(L.prototype, S), E && H(L, E), L;
|
|
15592
15593
|
};
|
|
15593
|
-
}(), p = function
|
|
15594
|
+
}(), p = function H(L, S, E) {
|
|
15594
15595
|
L === null && (L = Function.prototype);
|
|
15595
15596
|
var F = Object.getOwnPropertyDescriptor(L, S);
|
|
15596
15597
|
if (F === void 0) {
|
|
15597
15598
|
var D = Object.getPrototypeOf(L);
|
|
15598
|
-
return D === null ? void 0 :
|
|
15599
|
+
return D === null ? void 0 : H(D, S, E);
|
|
15599
15600
|
} else {
|
|
15600
15601
|
if ("value" in F)
|
|
15601
15602
|
return F.value;
|
|
@@ -15603,25 +15604,25 @@ var wl = bl, Yt = { exports: {} };
|
|
|
15603
15604
|
return z === void 0 ? void 0 : z.call(E);
|
|
15604
15605
|
}
|
|
15605
15606
|
}, b = n(3), s = x(b), v = n(2), h = x(v), c = n(0), l = x(c), a = n(16), y = x(a), m = n(6), u = x(m), f = n(7), g = x(f);
|
|
15606
|
-
function x(
|
|
15607
|
-
return
|
|
15607
|
+
function x(H) {
|
|
15608
|
+
return H && H.__esModule ? H : { default: H };
|
|
15608
15609
|
}
|
|
15609
|
-
function C(
|
|
15610
|
-
if (!(
|
|
15610
|
+
function C(H, L) {
|
|
15611
|
+
if (!(H instanceof L))
|
|
15611
15612
|
throw new TypeError("Cannot call a class as a function");
|
|
15612
15613
|
}
|
|
15613
|
-
function w(
|
|
15614
|
-
if (!
|
|
15614
|
+
function w(H, L) {
|
|
15615
|
+
if (!H)
|
|
15615
15616
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15616
|
-
return L && (typeof L == "object" || typeof L == "function") ? L :
|
|
15617
|
+
return L && (typeof L == "object" || typeof L == "function") ? L : H;
|
|
15617
15618
|
}
|
|
15618
|
-
function A(
|
|
15619
|
+
function A(H, L) {
|
|
15619
15620
|
if (typeof L != "function" && L !== null)
|
|
15620
15621
|
throw new TypeError("Super expression must either be null or a function, not " + typeof L);
|
|
15621
|
-
|
|
15622
|
+
H.prototype = Object.create(L && L.prototype, { constructor: { value: H, enumerable: !1, writable: !0, configurable: !0 } }), L && (Object.setPrototypeOf ? Object.setPrototypeOf(H, L) : H.__proto__ = L);
|
|
15622
15623
|
}
|
|
15623
|
-
var
|
|
15624
|
-
A(L,
|
|
15624
|
+
var V = 1, I = function(H) {
|
|
15625
|
+
A(L, H);
|
|
15625
15626
|
function L() {
|
|
15626
15627
|
return C(this, L), w(this, (L.__proto__ || Object.getPrototypeOf(L)).apply(this, arguments));
|
|
15627
15628
|
}
|
|
@@ -15658,9 +15659,9 @@ var wl = bl, Yt = { exports: {} };
|
|
|
15658
15659
|
}
|
|
15659
15660
|
}]), L;
|
|
15660
15661
|
}(l.default.Embed);
|
|
15661
|
-
|
|
15662
|
-
var Z = function(
|
|
15663
|
-
A(L,
|
|
15662
|
+
I.scope = l.default.Scope.BLOCK_BLOT;
|
|
15663
|
+
var Z = function(H) {
|
|
15664
|
+
A(L, H);
|
|
15664
15665
|
function L(S) {
|
|
15665
15666
|
C(this, L);
|
|
15666
15667
|
var E = w(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, S));
|
|
@@ -15708,7 +15709,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
15708
15709
|
}, {
|
|
15709
15710
|
key: "length",
|
|
15710
15711
|
value: function() {
|
|
15711
|
-
return this.cache.length == null && (this.cache.length = p(L.prototype.__proto__ || Object.getPrototypeOf(L.prototype), "length", this).call(this) +
|
|
15712
|
+
return this.cache.length == null && (this.cache.length = p(L.prototype.__proto__ || Object.getPrototypeOf(L.prototype), "length", this).call(this) + V), this.cache.length;
|
|
15712
15713
|
}
|
|
15713
15714
|
}, {
|
|
15714
15715
|
key: "moveChildren",
|
|
@@ -15734,7 +15735,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
15734
15735
|
key: "split",
|
|
15735
15736
|
value: function(E) {
|
|
15736
15737
|
var F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
15737
|
-
if (F && (E === 0 || E >= this.length() -
|
|
15738
|
+
if (F && (E === 0 || E >= this.length() - V)) {
|
|
15738
15739
|
var D = this.clone();
|
|
15739
15740
|
return E === 0 ? (this.parent.insertBefore(D, this), this) : (this.parent.insertBefore(D, this.next), D);
|
|
15740
15741
|
} else {
|
|
@@ -15745,11 +15746,11 @@ var wl = bl, Yt = { exports: {} };
|
|
|
15745
15746
|
}]), L;
|
|
15746
15747
|
}(l.default.Block);
|
|
15747
15748
|
Z.blotName = "block", Z.tagName = "P", Z.defaultChild = "break", Z.allowedChildren = [u.default, l.default.Embed, g.default];
|
|
15748
|
-
function k(
|
|
15749
|
+
function k(H) {
|
|
15749
15750
|
var L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
15750
|
-
return
|
|
15751
|
+
return H == null || (typeof H.formats == "function" && (L = (0, s.default)(L, H.formats())), H.parent == null || H.parent.blotName == "scroll" || H.parent.statics.scope !== H.statics.scope) ? L : k(H.parent, L);
|
|
15751
15752
|
}
|
|
15752
|
-
r.bubbleFormats = k, r.BlockEmbed =
|
|
15753
|
+
r.bubbleFormats = k, r.BlockEmbed = I, r.default = Z;
|
|
15753
15754
|
},
|
|
15754
15755
|
/* 5 */
|
|
15755
15756
|
/***/
|
|
@@ -15798,22 +15799,22 @@ var wl = bl, Yt = { exports: {} };
|
|
|
15798
15799
|
};
|
|
15799
15800
|
}();
|
|
15800
15801
|
n(50);
|
|
15801
|
-
var s = n(2), v = k(s), h = n(14), c = k(h), l = n(8), a = k(l), y = n(9), m = k(y), u = n(0), f = k(u), g = n(15), x = k(g), C = n(3), w = k(C), A = n(10),
|
|
15802
|
+
var s = n(2), v = k(s), h = n(14), c = k(h), l = n(8), a = k(l), y = n(9), m = k(y), u = n(0), f = k(u), g = n(15), x = k(g), C = n(3), w = k(C), A = n(10), V = k(A), I = n(34), Z = k(I);
|
|
15802
15803
|
function k(X) {
|
|
15803
15804
|
return X && X.__esModule ? X : { default: X };
|
|
15804
15805
|
}
|
|
15805
|
-
function
|
|
15806
|
+
function H(X, P, M) {
|
|
15806
15807
|
return P in X ? Object.defineProperty(X, P, { value: M, enumerable: !0, configurable: !0, writable: !0 }) : X[P] = M, X;
|
|
15807
15808
|
}
|
|
15808
15809
|
function L(X, P) {
|
|
15809
15810
|
if (!(X instanceof P))
|
|
15810
15811
|
throw new TypeError("Cannot call a class as a function");
|
|
15811
15812
|
}
|
|
15812
|
-
var S = (0,
|
|
15813
|
+
var S = (0, V.default)("quill"), E = function() {
|
|
15813
15814
|
b(X, null, [{
|
|
15814
15815
|
key: "debug",
|
|
15815
15816
|
value: function(M) {
|
|
15816
|
-
M === !0 && (M = "log"),
|
|
15817
|
+
M === !0 && (M = "log"), V.default.level(M);
|
|
15817
15818
|
}
|
|
15818
15819
|
}, {
|
|
15819
15820
|
key: "find",
|
|
@@ -15907,11 +15908,11 @@ var wl = bl, Yt = { exports: {} };
|
|
|
15907
15908
|
if (_ == null)
|
|
15908
15909
|
return N;
|
|
15909
15910
|
if (f.default.query(M, f.default.Scope.BLOCK))
|
|
15910
|
-
N = R.editor.formatLine(_.index, _.length,
|
|
15911
|
+
N = R.editor.formatLine(_.index, _.length, H({}, M, B));
|
|
15911
15912
|
else {
|
|
15912
15913
|
if (_.length === 0)
|
|
15913
15914
|
return R.selection.format(M, B), N;
|
|
15914
|
-
N = R.editor.formatText(_.index, _.length,
|
|
15915
|
+
N = R.editor.formatText(_.index, _.length, H({}, M, B));
|
|
15915
15916
|
}
|
|
15916
15917
|
return R.setSelection(_, a.default.sources.SILENT), N;
|
|
15917
15918
|
}, j);
|
|
@@ -16242,8 +16243,8 @@ var wl = bl, Yt = { exports: {} };
|
|
|
16242
16243
|
key: "formatAt",
|
|
16243
16244
|
value: function(x, C, w, A) {
|
|
16244
16245
|
if (f.compare(this.statics.blotName, w) < 0 && h.default.query(w, h.default.Scope.BLOT)) {
|
|
16245
|
-
var
|
|
16246
|
-
A &&
|
|
16246
|
+
var V = this.isolate(x, C);
|
|
16247
|
+
A && V.wrap(w, A);
|
|
16247
16248
|
} else
|
|
16248
16249
|
p(f.prototype.__proto__ || Object.getPrototypeOf(f.prototype), "formatAt", this).call(this, x, C, w, A);
|
|
16249
16250
|
}
|
|
@@ -16330,13 +16331,13 @@ var wl = bl, Yt = { exports: {} };
|
|
|
16330
16331
|
x === null && (x = Function.prototype);
|
|
16331
16332
|
var A = Object.getOwnPropertyDescriptor(x, C);
|
|
16332
16333
|
if (A === void 0) {
|
|
16333
|
-
var
|
|
16334
|
-
return
|
|
16334
|
+
var V = Object.getPrototypeOf(x);
|
|
16335
|
+
return V === null ? void 0 : g(V, C, w);
|
|
16335
16336
|
} else {
|
|
16336
16337
|
if ("value" in A)
|
|
16337
16338
|
return A.value;
|
|
16338
|
-
var
|
|
16339
|
-
return
|
|
16339
|
+
var I = A.get;
|
|
16340
|
+
return I === void 0 ? void 0 : I.call(w);
|
|
16340
16341
|
}
|
|
16341
16342
|
}, b = n(54), s = c(b), v = n(10), h = c(v);
|
|
16342
16343
|
function c(g) {
|
|
@@ -16363,8 +16364,8 @@ var wl = bl, Yt = { exports: {} };
|
|
|
16363
16364
|
C[w] = arguments[w];
|
|
16364
16365
|
[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(A) {
|
|
16365
16366
|
if (A.__quill && A.__quill.emitter) {
|
|
16366
|
-
var
|
|
16367
|
-
(
|
|
16367
|
+
var V;
|
|
16368
|
+
(V = A.__quill.emitter).handleDOM.apply(V, C);
|
|
16368
16369
|
}
|
|
16369
16370
|
});
|
|
16370
16371
|
});
|
|
@@ -16384,17 +16385,17 @@ var wl = bl, Yt = { exports: {} };
|
|
|
16384
16385
|
}, {
|
|
16385
16386
|
key: "handleDOM",
|
|
16386
16387
|
value: function(w) {
|
|
16387
|
-
for (var A = arguments.length,
|
|
16388
|
-
I
|
|
16388
|
+
for (var A = arguments.length, V = Array(A > 1 ? A - 1 : 0), I = 1; I < A; I++)
|
|
16389
|
+
V[I - 1] = arguments[I];
|
|
16389
16390
|
(this.listeners[w.type] || []).forEach(function(Z) {
|
|
16390
|
-
var k = Z.node,
|
|
16391
|
-
(w.target === k || k.contains(w.target)) &&
|
|
16391
|
+
var k = Z.node, H = Z.handler;
|
|
16392
|
+
(w.target === k || k.contains(w.target)) && H.apply(void 0, [w].concat(V));
|
|
16392
16393
|
});
|
|
16393
16394
|
}
|
|
16394
16395
|
}, {
|
|
16395
16396
|
key: "listenDOM",
|
|
16396
|
-
value: function(w, A,
|
|
16397
|
-
this.listeners[w] || (this.listeners[w] = []), this.listeners[w].push({ node: A, handler:
|
|
16397
|
+
value: function(w, A, V) {
|
|
16398
|
+
this.listeners[w] || (this.listeners[w] = []), this.listeners[w].push({ node: A, handler: V });
|
|
16398
16399
|
}
|
|
16399
16400
|
}]), x;
|
|
16400
16401
|
}(s.default);
|
|
@@ -16530,10 +16531,10 @@ var wl = bl, Yt = { exports: {} };
|
|
|
16530
16531
|
value: !0
|
|
16531
16532
|
}), r.default = r.Code = void 0;
|
|
16532
16533
|
var d = function() {
|
|
16533
|
-
function
|
|
16534
|
-
var
|
|
16534
|
+
function I(Z, k) {
|
|
16535
|
+
var H = [], L = !0, S = !1, E = void 0;
|
|
16535
16536
|
try {
|
|
16536
|
-
for (var F = Z[Symbol.iterator](), D; !(L = (D = F.next()).done) && (
|
|
16537
|
+
for (var F = Z[Symbol.iterator](), D; !(L = (D = F.next()).done) && (H.push(D.value), !(k && H.length === k)); L = !0)
|
|
16537
16538
|
;
|
|
16538
16539
|
} catch (z) {
|
|
16539
16540
|
S = !0, E = z;
|
|
@@ -16545,145 +16546,145 @@ var wl = bl, Yt = { exports: {} };
|
|
|
16545
16546
|
throw E;
|
|
16546
16547
|
}
|
|
16547
16548
|
}
|
|
16548
|
-
return
|
|
16549
|
+
return H;
|
|
16549
16550
|
}
|
|
16550
16551
|
return function(Z, k) {
|
|
16551
16552
|
if (Array.isArray(Z))
|
|
16552
16553
|
return Z;
|
|
16553
16554
|
if (Symbol.iterator in Object(Z))
|
|
16554
|
-
return
|
|
16555
|
+
return I(Z, k);
|
|
16555
16556
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
16556
16557
|
};
|
|
16557
16558
|
}(), p = function() {
|
|
16558
|
-
function
|
|
16559
|
-
for (var
|
|
16560
|
-
var L = k[
|
|
16559
|
+
function I(Z, k) {
|
|
16560
|
+
for (var H = 0; H < k.length; H++) {
|
|
16561
|
+
var L = k[H];
|
|
16561
16562
|
L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(Z, L.key, L);
|
|
16562
16563
|
}
|
|
16563
16564
|
}
|
|
16564
|
-
return function(Z, k,
|
|
16565
|
-
return k &&
|
|
16565
|
+
return function(Z, k, H) {
|
|
16566
|
+
return k && I(Z.prototype, k), H && I(Z, H), Z;
|
|
16566
16567
|
};
|
|
16567
|
-
}(), b = function
|
|
16568
|
+
}(), b = function I(Z, k, H) {
|
|
16568
16569
|
Z === null && (Z = Function.prototype);
|
|
16569
16570
|
var L = Object.getOwnPropertyDescriptor(Z, k);
|
|
16570
16571
|
if (L === void 0) {
|
|
16571
16572
|
var S = Object.getPrototypeOf(Z);
|
|
16572
|
-
return S === null ? void 0 :
|
|
16573
|
+
return S === null ? void 0 : I(S, k, H);
|
|
16573
16574
|
} else {
|
|
16574
16575
|
if ("value" in L)
|
|
16575
16576
|
return L.value;
|
|
16576
16577
|
var E = L.get;
|
|
16577
|
-
return E === void 0 ? void 0 : E.call(
|
|
16578
|
+
return E === void 0 ? void 0 : E.call(H);
|
|
16578
16579
|
}
|
|
16579
16580
|
}, s = n(2), v = g(s), h = n(0), c = g(h), l = n(4), a = g(l), y = n(6), m = g(y), u = n(7), f = g(u);
|
|
16580
|
-
function g(
|
|
16581
|
-
return
|
|
16581
|
+
function g(I) {
|
|
16582
|
+
return I && I.__esModule ? I : { default: I };
|
|
16582
16583
|
}
|
|
16583
|
-
function x(
|
|
16584
|
-
if (!(
|
|
16584
|
+
function x(I, Z) {
|
|
16585
|
+
if (!(I instanceof Z))
|
|
16585
16586
|
throw new TypeError("Cannot call a class as a function");
|
|
16586
16587
|
}
|
|
16587
|
-
function C(
|
|
16588
|
-
if (!
|
|
16588
|
+
function C(I, Z) {
|
|
16589
|
+
if (!I)
|
|
16589
16590
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16590
|
-
return Z && (typeof Z == "object" || typeof Z == "function") ? Z :
|
|
16591
|
+
return Z && (typeof Z == "object" || typeof Z == "function") ? Z : I;
|
|
16591
16592
|
}
|
|
16592
|
-
function w(
|
|
16593
|
+
function w(I, Z) {
|
|
16593
16594
|
if (typeof Z != "function" && Z !== null)
|
|
16594
16595
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Z);
|
|
16595
|
-
|
|
16596
|
+
I.prototype = Object.create(Z && Z.prototype, { constructor: { value: I, enumerable: !1, writable: !0, configurable: !0 } }), Z && (Object.setPrototypeOf ? Object.setPrototypeOf(I, Z) : I.__proto__ = Z);
|
|
16596
16597
|
}
|
|
16597
|
-
var A = function(
|
|
16598
|
-
w(Z,
|
|
16598
|
+
var A = function(I) {
|
|
16599
|
+
w(Z, I);
|
|
16599
16600
|
function Z() {
|
|
16600
16601
|
return x(this, Z), C(this, (Z.__proto__ || Object.getPrototypeOf(Z)).apply(this, arguments));
|
|
16601
16602
|
}
|
|
16602
16603
|
return Z;
|
|
16603
16604
|
}(m.default);
|
|
16604
16605
|
A.blotName = "code", A.tagName = "CODE";
|
|
16605
|
-
var
|
|
16606
|
-
w(Z,
|
|
16606
|
+
var V = function(I) {
|
|
16607
|
+
w(Z, I);
|
|
16607
16608
|
function Z() {
|
|
16608
16609
|
return x(this, Z), C(this, (Z.__proto__ || Object.getPrototypeOf(Z)).apply(this, arguments));
|
|
16609
16610
|
}
|
|
16610
16611
|
return p(Z, [{
|
|
16611
16612
|
key: "delta",
|
|
16612
16613
|
value: function() {
|
|
16613
|
-
var
|
|
16614
|
+
var H = this, L = this.domNode.textContent;
|
|
16614
16615
|
return L.endsWith(`
|
|
16615
16616
|
`) && (L = L.slice(0, -1)), L.split(`
|
|
16616
16617
|
`).reduce(function(S, E) {
|
|
16617
16618
|
return S.insert(E).insert(`
|
|
16618
|
-
`,
|
|
16619
|
+
`, H.formats());
|
|
16619
16620
|
}, new v.default());
|
|
16620
16621
|
}
|
|
16621
16622
|
}, {
|
|
16622
16623
|
key: "format",
|
|
16623
|
-
value: function(
|
|
16624
|
-
if (!(
|
|
16624
|
+
value: function(H, L) {
|
|
16625
|
+
if (!(H === this.statics.blotName && L)) {
|
|
16625
16626
|
var S = this.descendant(f.default, this.length() - 1), E = d(S, 1), F = E[0];
|
|
16626
|
-
F != null && F.deleteAt(F.length() - 1, 1), b(Z.prototype.__proto__ || Object.getPrototypeOf(Z.prototype), "format", this).call(this,
|
|
16627
|
+
F != null && F.deleteAt(F.length() - 1, 1), b(Z.prototype.__proto__ || Object.getPrototypeOf(Z.prototype), "format", this).call(this, H, L);
|
|
16627
16628
|
}
|
|
16628
16629
|
}
|
|
16629
16630
|
}, {
|
|
16630
16631
|
key: "formatAt",
|
|
16631
|
-
value: function(
|
|
16632
|
+
value: function(H, L, S, E) {
|
|
16632
16633
|
if (L !== 0 && !(c.default.query(S, c.default.Scope.BLOCK) == null || S === this.statics.blotName && E === this.statics.formats(this.domNode))) {
|
|
16633
|
-
var F = this.newlineIndex(
|
|
16634
|
-
if (!(F < 0 || F >=
|
|
16635
|
-
var D = this.newlineIndex(
|
|
16636
|
-
Q.format(S, E), X instanceof Z && X.formatAt(0,
|
|
16634
|
+
var F = this.newlineIndex(H);
|
|
16635
|
+
if (!(F < 0 || F >= H + L)) {
|
|
16636
|
+
var D = this.newlineIndex(H, !0) + 1, z = F - D + 1, Q = this.isolate(D, z), X = Q.next;
|
|
16637
|
+
Q.format(S, E), X instanceof Z && X.formatAt(0, H - D + L - z, S, E);
|
|
16637
16638
|
}
|
|
16638
16639
|
}
|
|
16639
16640
|
}
|
|
16640
16641
|
}, {
|
|
16641
16642
|
key: "insertAt",
|
|
16642
|
-
value: function(
|
|
16643
|
+
value: function(H, L, S) {
|
|
16643
16644
|
if (S == null) {
|
|
16644
|
-
var E = this.descendant(f.default,
|
|
16645
|
+
var E = this.descendant(f.default, H), F = d(E, 2), D = F[0], z = F[1];
|
|
16645
16646
|
D.insertAt(z, L);
|
|
16646
16647
|
}
|
|
16647
16648
|
}
|
|
16648
16649
|
}, {
|
|
16649
16650
|
key: "length",
|
|
16650
16651
|
value: function() {
|
|
16651
|
-
var
|
|
16652
|
+
var H = this.domNode.textContent.length;
|
|
16652
16653
|
return this.domNode.textContent.endsWith(`
|
|
16653
|
-
`) ?
|
|
16654
|
+
`) ? H : H + 1;
|
|
16654
16655
|
}
|
|
16655
16656
|
}, {
|
|
16656
16657
|
key: "newlineIndex",
|
|
16657
|
-
value: function(
|
|
16658
|
+
value: function(H) {
|
|
16658
16659
|
var L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
16659
16660
|
if (L)
|
|
16660
|
-
return this.domNode.textContent.slice(0,
|
|
16661
|
+
return this.domNode.textContent.slice(0, H).lastIndexOf(`
|
|
16661
16662
|
`);
|
|
16662
|
-
var S = this.domNode.textContent.slice(
|
|
16663
|
+
var S = this.domNode.textContent.slice(H).indexOf(`
|
|
16663
16664
|
`);
|
|
16664
|
-
return S > -1 ?
|
|
16665
|
+
return S > -1 ? H + S : -1;
|
|
16665
16666
|
}
|
|
16666
16667
|
}, {
|
|
16667
16668
|
key: "optimize",
|
|
16668
|
-
value: function(
|
|
16669
|
+
value: function(H) {
|
|
16669
16670
|
this.domNode.textContent.endsWith(`
|
|
16670
16671
|
`) || this.appendChild(c.default.create("text", `
|
|
16671
|
-
`)), b(Z.prototype.__proto__ || Object.getPrototypeOf(Z.prototype), "optimize", this).call(this,
|
|
16672
|
+
`)), b(Z.prototype.__proto__ || Object.getPrototypeOf(Z.prototype), "optimize", this).call(this, H);
|
|
16672
16673
|
var L = this.next;
|
|
16673
|
-
L != null && L.prev === this && L.statics.blotName === this.statics.blotName && this.statics.formats(this.domNode) === L.statics.formats(L.domNode) && (L.optimize(
|
|
16674
|
+
L != null && L.prev === this && L.statics.blotName === this.statics.blotName && this.statics.formats(this.domNode) === L.statics.formats(L.domNode) && (L.optimize(H), L.moveChildren(this), L.remove());
|
|
16674
16675
|
}
|
|
16675
16676
|
}, {
|
|
16676
16677
|
key: "replace",
|
|
16677
|
-
value: function(
|
|
16678
|
-
b(Z.prototype.__proto__ || Object.getPrototypeOf(Z.prototype), "replace", this).call(this,
|
|
16678
|
+
value: function(H) {
|
|
16679
|
+
b(Z.prototype.__proto__ || Object.getPrototypeOf(Z.prototype), "replace", this).call(this, H), [].slice.call(this.domNode.querySelectorAll("*")).forEach(function(L) {
|
|
16679
16680
|
var S = c.default.find(L);
|
|
16680
16681
|
S == null ? L.parentNode.removeChild(L) : S instanceof c.default.Embed ? S.remove() : S.unwrap();
|
|
16681
16682
|
});
|
|
16682
16683
|
}
|
|
16683
16684
|
}], [{
|
|
16684
16685
|
key: "create",
|
|
16685
|
-
value: function(
|
|
16686
|
-
var L = b(Z.__proto__ || Object.getPrototypeOf(Z), "create", this).call(this,
|
|
16686
|
+
value: function(H) {
|
|
16687
|
+
var L = b(Z.__proto__ || Object.getPrototypeOf(Z), "create", this).call(this, H);
|
|
16687
16688
|
return L.setAttribute("spellcheck", !1), L;
|
|
16688
16689
|
}
|
|
16689
16690
|
}, {
|
|
@@ -16693,7 +16694,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
16693
16694
|
}
|
|
16694
16695
|
}]), Z;
|
|
16695
16696
|
}(a.default);
|
|
16696
|
-
|
|
16697
|
+
V.blotName = "code-block", V.tagName = "PRE", V.TAB = " ", r.Code = A, r.default = V;
|
|
16697
16698
|
},
|
|
16698
16699
|
/* 14 */
|
|
16699
16700
|
/***/
|
|
@@ -16740,7 +16741,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
16740
16741
|
return function(P, M, B) {
|
|
16741
16742
|
return M && X(P.prototype, M), B && X(P, B), P;
|
|
16742
16743
|
};
|
|
16743
|
-
}(), s = n(2), v = L(s), h = n(20), c = L(h), l = n(0), a = L(l), y = n(13), m = L(y), u = n(24), f = L(u), g = n(4), x = L(g), C = n(16), w = L(C), A = n(21),
|
|
16744
|
+
}(), s = n(2), v = L(s), h = n(20), c = L(h), l = n(0), a = L(l), y = n(13), m = L(y), u = n(24), f = L(u), g = n(4), x = L(g), C = n(16), w = L(C), A = n(21), V = L(A), I = n(11), Z = L(I), k = n(3), H = L(k);
|
|
16744
16745
|
function L(X) {
|
|
16745
16746
|
return X && X.__esModule ? X : { default: X };
|
|
16746
16747
|
}
|
|
@@ -16769,10 +16770,10 @@ var wl = bl, Yt = { exports: {} };
|
|
|
16769
16770
|
J.endsWith(`
|
|
16770
16771
|
`) && R && (R = !1, J = J.slice(0, -1)), _ >= j && !J.endsWith(`
|
|
16771
16772
|
`) && (R = !0), B.scroll.insertAt(_, J);
|
|
16772
|
-
var e1 = B.scroll.line(_), s1 = p(e1, 2), f1 = s1[0], p1 = s1[1], m1 = (0,
|
|
16773
|
+
var e1 = B.scroll.line(_), s1 = p(e1, 2), f1 = s1[0], p1 = s1[1], m1 = (0, H.default)({}, (0, g.bubbleFormats)(f1));
|
|
16773
16774
|
if (f1 instanceof x.default) {
|
|
16774
16775
|
var q = f1.descendant(a.default.Leaf, p1), o1 = p(q, 1), C1 = o1[0];
|
|
16775
|
-
m1 = (0,
|
|
16776
|
+
m1 = (0, H.default)(m1, (0, g.bubbleFormats)(C1));
|
|
16776
16777
|
}
|
|
16777
16778
|
Y = c.default.attributes.diff(m1, Y) || {};
|
|
16778
16779
|
} else if (d(N.insert) === "object") {
|
|
@@ -16813,7 +16814,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
16813
16814
|
W -= J;
|
|
16814
16815
|
});
|
|
16815
16816
|
}
|
|
16816
|
-
}), this.scroll.optimize(), this.update(new v.default().retain(M).retain(B, (0,
|
|
16817
|
+
}), this.scroll.optimize(), this.update(new v.default().retain(M).retain(B, (0, V.default)(j)));
|
|
16817
16818
|
}
|
|
16818
16819
|
}, {
|
|
16819
16820
|
key: "formatText",
|
|
@@ -16821,7 +16822,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
16821
16822
|
var R = this, j = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
16822
16823
|
return Object.keys(j).forEach(function(_) {
|
|
16823
16824
|
R.scroll.formatAt(M, B, _, j[_]);
|
|
16824
|
-
}), this.update(new v.default().retain(M).retain(B, (0,
|
|
16825
|
+
}), this.update(new v.default().retain(M).retain(B, (0, V.default)(j)));
|
|
16825
16826
|
}
|
|
16826
16827
|
}, {
|
|
16827
16828
|
key: "getContents",
|
|
@@ -16854,7 +16855,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
16854
16855
|
}
|
|
16855
16856
|
return W;
|
|
16856
16857
|
});
|
|
16857
|
-
return
|
|
16858
|
+
return H.default.apply(H.default, _);
|
|
16858
16859
|
}
|
|
16859
16860
|
}, {
|
|
16860
16861
|
key: "getText",
|
|
@@ -16878,7 +16879,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
16878
16879
|
`).replace(/\r/g, `
|
|
16879
16880
|
`), this.scroll.insertAt(M, B), Object.keys(j).forEach(function(_) {
|
|
16880
16881
|
R.scroll.formatAt(M, B.length, _, j[_]);
|
|
16881
|
-
}), this.update(new v.default().retain(M).insert(B, (0,
|
|
16882
|
+
}), this.update(new v.default().retain(M).insert(B, (0, V.default)(j)));
|
|
16882
16883
|
}
|
|
16883
16884
|
}, {
|
|
16884
16885
|
key: "isBlank",
|
|
@@ -16922,10 +16923,10 @@ var wl = bl, Yt = { exports: {} };
|
|
|
16922
16923
|
function Q(X) {
|
|
16923
16924
|
return X.reduce(function(P, M) {
|
|
16924
16925
|
if (M.insert === 1) {
|
|
16925
|
-
var B = (0,
|
|
16926
|
+
var B = (0, V.default)(M.attributes);
|
|
16926
16927
|
return delete B.image, P.insert({ image: M.attributes.image }, B);
|
|
16927
16928
|
}
|
|
16928
|
-
if (M.attributes != null && (M.attributes.list === !0 || M.attributes.bullet === !0) && (M = (0,
|
|
16929
|
+
if (M.attributes != null && (M.attributes.list === !0 || M.attributes.bullet === !0) && (M = (0, V.default)(M), M.attributes.list ? M.attributes.list = "ordered" : (M.attributes.list = "bullet", delete M.attributes.bullet)), typeof M.insert == "string") {
|
|
16929
16930
|
var R = M.insert.replace(/\r\n/g, `
|
|
16930
16931
|
`).replace(/\r/g, `
|
|
16931
16932
|
`);
|
|
@@ -16943,10 +16944,10 @@ var wl = bl, Yt = { exports: {} };
|
|
|
16943
16944
|
value: !0
|
|
16944
16945
|
}), r.default = r.Range = void 0;
|
|
16945
16946
|
var d = function() {
|
|
16946
|
-
function
|
|
16947
|
-
var
|
|
16947
|
+
function I(Z, k) {
|
|
16948
|
+
var H = [], L = !0, S = !1, E = void 0;
|
|
16948
16949
|
try {
|
|
16949
|
-
for (var F = Z[Symbol.iterator](), D; !(L = (D = F.next()).done) && (
|
|
16950
|
+
for (var F = Z[Symbol.iterator](), D; !(L = (D = F.next()).done) && (H.push(D.value), !(k && H.length === k)); L = !0)
|
|
16950
16951
|
;
|
|
16951
16952
|
} catch (z) {
|
|
16952
16953
|
S = !0, E = z;
|
|
@@ -16958,57 +16959,57 @@ var wl = bl, Yt = { exports: {} };
|
|
|
16958
16959
|
throw E;
|
|
16959
16960
|
}
|
|
16960
16961
|
}
|
|
16961
|
-
return
|
|
16962
|
+
return H;
|
|
16962
16963
|
}
|
|
16963
16964
|
return function(Z, k) {
|
|
16964
16965
|
if (Array.isArray(Z))
|
|
16965
16966
|
return Z;
|
|
16966
16967
|
if (Symbol.iterator in Object(Z))
|
|
16967
|
-
return
|
|
16968
|
+
return I(Z, k);
|
|
16968
16969
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
16969
16970
|
};
|
|
16970
16971
|
}(), p = function() {
|
|
16971
|
-
function
|
|
16972
|
-
for (var
|
|
16973
|
-
var L = k[
|
|
16972
|
+
function I(Z, k) {
|
|
16973
|
+
for (var H = 0; H < k.length; H++) {
|
|
16974
|
+
var L = k[H];
|
|
16974
16975
|
L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(Z, L.key, L);
|
|
16975
16976
|
}
|
|
16976
16977
|
}
|
|
16977
|
-
return function(Z, k,
|
|
16978
|
-
return k &&
|
|
16978
|
+
return function(Z, k, H) {
|
|
16979
|
+
return k && I(Z.prototype, k), H && I(Z, H), Z;
|
|
16979
16980
|
};
|
|
16980
16981
|
}(), b = n(0), s = f(b), v = n(21), h = f(v), c = n(11), l = f(c), a = n(8), y = f(a), m = n(10), u = f(m);
|
|
16981
|
-
function f(
|
|
16982
|
-
return
|
|
16982
|
+
function f(I) {
|
|
16983
|
+
return I && I.__esModule ? I : { default: I };
|
|
16983
16984
|
}
|
|
16984
|
-
function g(
|
|
16985
|
-
if (Array.isArray(
|
|
16986
|
-
for (var Z = 0, k = Array(
|
|
16987
|
-
k[Z] =
|
|
16985
|
+
function g(I) {
|
|
16986
|
+
if (Array.isArray(I)) {
|
|
16987
|
+
for (var Z = 0, k = Array(I.length); Z < I.length; Z++)
|
|
16988
|
+
k[Z] = I[Z];
|
|
16988
16989
|
return k;
|
|
16989
16990
|
} else
|
|
16990
|
-
return Array.from(
|
|
16991
|
+
return Array.from(I);
|
|
16991
16992
|
}
|
|
16992
|
-
function x(
|
|
16993
|
-
if (!(
|
|
16993
|
+
function x(I, Z) {
|
|
16994
|
+
if (!(I instanceof Z))
|
|
16994
16995
|
throw new TypeError("Cannot call a class as a function");
|
|
16995
16996
|
}
|
|
16996
|
-
var C = (0, u.default)("quill:selection"), w = function
|
|
16997
|
+
var C = (0, u.default)("quill:selection"), w = function I(Z) {
|
|
16997
16998
|
var k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
16998
|
-
x(this,
|
|
16999
|
+
x(this, I), this.index = Z, this.length = k;
|
|
16999
17000
|
}, A = function() {
|
|
17000
|
-
function
|
|
17001
|
-
var
|
|
17002
|
-
x(this,
|
|
17003
|
-
|
|
17001
|
+
function I(Z, k) {
|
|
17002
|
+
var H = this;
|
|
17003
|
+
x(this, I), this.emitter = k, this.scroll = Z, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.cursor = s.default.create("cursor", this), this.lastRange = this.savedRange = new w(0, 0), this.handleComposition(), this.handleDragging(), this.emitter.listenDOM("selectionchange", document, function() {
|
|
17004
|
+
H.mouseDown || setTimeout(H.update.bind(H, y.default.sources.USER), 1);
|
|
17004
17005
|
}), this.emitter.on(y.default.events.EDITOR_CHANGE, function(L, S) {
|
|
17005
|
-
L === y.default.events.TEXT_CHANGE && S.length() > 0 &&
|
|
17006
|
+
L === y.default.events.TEXT_CHANGE && S.length() > 0 && H.update(y.default.sources.SILENT);
|
|
17006
17007
|
}), this.emitter.on(y.default.events.SCROLL_BEFORE_UPDATE, function() {
|
|
17007
|
-
if (
|
|
17008
|
-
var L =
|
|
17009
|
-
L != null && L.start.node !==
|
|
17008
|
+
if (H.hasFocus()) {
|
|
17009
|
+
var L = H.getNativeRange();
|
|
17010
|
+
L != null && L.start.node !== H.cursor.textNode && H.emitter.once(y.default.events.SCROLL_UPDATE, function() {
|
|
17010
17011
|
try {
|
|
17011
|
-
|
|
17012
|
+
H.setNativeRange(L.start.node, L.start.offset, L.end.node, L.end.offset);
|
|
17012
17013
|
} catch {
|
|
17013
17014
|
}
|
|
17014
17015
|
});
|
|
@@ -17016,11 +17017,11 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17016
17017
|
}), this.emitter.on(y.default.events.SCROLL_OPTIMIZE, function(L, S) {
|
|
17017
17018
|
if (S.range) {
|
|
17018
17019
|
var E = S.range, F = E.startNode, D = E.startOffset, z = E.endNode, Q = E.endOffset;
|
|
17019
|
-
|
|
17020
|
+
H.setNativeRange(F, D, z, Q);
|
|
17020
17021
|
}
|
|
17021
17022
|
}), this.update(y.default.sources.SILENT);
|
|
17022
17023
|
}
|
|
17023
|
-
return p(
|
|
17024
|
+
return p(I, [{
|
|
17024
17025
|
key: "handleComposition",
|
|
17025
17026
|
value: function() {
|
|
17026
17027
|
var k = this;
|
|
@@ -17028,11 +17029,11 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17028
17029
|
k.composing = !0;
|
|
17029
17030
|
}), this.root.addEventListener("compositionend", function() {
|
|
17030
17031
|
if (k.composing = !1, k.cursor.parent) {
|
|
17031
|
-
var
|
|
17032
|
-
if (!
|
|
17032
|
+
var H = k.cursor.restore();
|
|
17033
|
+
if (!H)
|
|
17033
17034
|
return;
|
|
17034
17035
|
setTimeout(function() {
|
|
17035
|
-
k.setNativeRange(
|
|
17036
|
+
k.setNativeRange(H.startNode, H.startOffset, H.endNode, H.endOffset);
|
|
17036
17037
|
}, 1);
|
|
17037
17038
|
}
|
|
17038
17039
|
});
|
|
@@ -17054,7 +17055,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17054
17055
|
}
|
|
17055
17056
|
}, {
|
|
17056
17057
|
key: "format",
|
|
17057
|
-
value: function(k,
|
|
17058
|
+
value: function(k, H) {
|
|
17058
17059
|
if (!(this.scroll.whitelist != null && !this.scroll.whitelist[k])) {
|
|
17059
17060
|
this.scroll.update();
|
|
17060
17061
|
var L = this.getNativeRange();
|
|
@@ -17070,24 +17071,24 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17070
17071
|
S.insertBefore(this.cursor, L.start.node);
|
|
17071
17072
|
this.cursor.attach();
|
|
17072
17073
|
}
|
|
17073
|
-
this.cursor.format(k,
|
|
17074
|
+
this.cursor.format(k, H), this.scroll.optimize(), this.setNativeRange(this.cursor.textNode, this.cursor.textNode.data.length), this.update();
|
|
17074
17075
|
}
|
|
17075
17076
|
}
|
|
17076
17077
|
}
|
|
17077
17078
|
}, {
|
|
17078
17079
|
key: "getBounds",
|
|
17079
17080
|
value: function(k) {
|
|
17080
|
-
var
|
|
17081
|
-
k = Math.min(k, L - 1),
|
|
17081
|
+
var H = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, L = this.scroll.length();
|
|
17082
|
+
k = Math.min(k, L - 1), H = Math.min(k + H, L - 1) - k;
|
|
17082
17083
|
var S = void 0, E = this.scroll.leaf(k), F = d(E, 2), D = F[0], z = F[1];
|
|
17083
17084
|
if (D == null)
|
|
17084
17085
|
return null;
|
|
17085
17086
|
var Q = D.position(z, !0), X = d(Q, 2);
|
|
17086
17087
|
S = X[0], z = X[1];
|
|
17087
17088
|
var P = document.createRange();
|
|
17088
|
-
if (
|
|
17089
|
+
if (H > 0) {
|
|
17089
17090
|
P.setStart(S, z);
|
|
17090
|
-
var M = this.scroll.leaf(k +
|
|
17091
|
+
var M = this.scroll.leaf(k + H), B = d(M, 2);
|
|
17091
17092
|
if (D = B[0], z = B[1], D == null)
|
|
17092
17093
|
return null;
|
|
17093
17094
|
var R = D.position(z, !0), j = d(R, 2);
|
|
@@ -17110,10 +17111,10 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17110
17111
|
var k = document.getSelection();
|
|
17111
17112
|
if (k == null || k.rangeCount <= 0)
|
|
17112
17113
|
return null;
|
|
17113
|
-
var
|
|
17114
|
-
if (
|
|
17114
|
+
var H = k.getRangeAt(0);
|
|
17115
|
+
if (H == null)
|
|
17115
17116
|
return null;
|
|
17116
|
-
var L = this.normalizeNative(
|
|
17117
|
+
var L = this.normalizeNative(H);
|
|
17117
17118
|
return C.info("getNativeRange", L), L;
|
|
17118
17119
|
}
|
|
17119
17120
|
}, {
|
|
@@ -17122,8 +17123,8 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17122
17123
|
var k = this.getNativeRange();
|
|
17123
17124
|
if (k == null)
|
|
17124
17125
|
return [null, null];
|
|
17125
|
-
var
|
|
17126
|
-
return [
|
|
17126
|
+
var H = this.normalizedToRange(k);
|
|
17127
|
+
return [H, k];
|
|
17127
17128
|
}
|
|
17128
17129
|
}, {
|
|
17129
17130
|
key: "hasFocus",
|
|
@@ -17133,10 +17134,10 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17133
17134
|
}, {
|
|
17134
17135
|
key: "normalizedToRange",
|
|
17135
17136
|
value: function(k) {
|
|
17136
|
-
var
|
|
17137
|
+
var H = this, L = [[k.start.node, k.start.offset]];
|
|
17137
17138
|
k.native.collapsed || L.push([k.end.node, k.end.offset]);
|
|
17138
17139
|
var S = L.map(function(D) {
|
|
17139
|
-
var z = d(D, 2), Q = z[0], X = z[1], P = s.default.find(Q, !0), M = P.offset(
|
|
17140
|
+
var z = d(D, 2), Q = z[0], X = z[1], P = s.default.find(Q, !0), M = P.offset(H.scroll);
|
|
17140
17141
|
return X === 0 ? M : P instanceof s.default.Container ? M + P.length() : M + P.index(Q, X);
|
|
17141
17142
|
}), E = Math.min(Math.max.apply(Math, g(S)), this.scroll.length() - 1), F = Math.min.apply(Math, [E].concat(g(S)));
|
|
17142
17143
|
return new w(F, E - F);
|
|
@@ -17144,14 +17145,14 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17144
17145
|
}, {
|
|
17145
17146
|
key: "normalizeNative",
|
|
17146
17147
|
value: function(k) {
|
|
17147
|
-
if (!
|
|
17148
|
+
if (!V(this.root, k.startContainer) || !k.collapsed && !V(this.root, k.endContainer))
|
|
17148
17149
|
return null;
|
|
17149
|
-
var
|
|
17150
|
+
var H = {
|
|
17150
17151
|
start: { node: k.startContainer, offset: k.startOffset },
|
|
17151
17152
|
end: { node: k.endContainer, offset: k.endOffset },
|
|
17152
17153
|
native: k
|
|
17153
17154
|
};
|
|
17154
|
-
return [
|
|
17155
|
+
return [H.start, H.end].forEach(function(L) {
|
|
17155
17156
|
for (var S = L.node, E = L.offset; !(S instanceof Text) && S.childNodes.length > 0; )
|
|
17156
17157
|
if (S.childNodes.length > E)
|
|
17157
17158
|
S = S.childNodes[E], E = 0;
|
|
@@ -17160,28 +17161,28 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17160
17161
|
else
|
|
17161
17162
|
break;
|
|
17162
17163
|
L.node = S, L.offset = E;
|
|
17163
|
-
}),
|
|
17164
|
+
}), H;
|
|
17164
17165
|
}
|
|
17165
17166
|
}, {
|
|
17166
17167
|
key: "rangeToNative",
|
|
17167
17168
|
value: function(k) {
|
|
17168
|
-
var
|
|
17169
|
+
var H = this, L = k.collapsed ? [k.index] : [k.index, k.index + k.length], S = [], E = this.scroll.length();
|
|
17169
17170
|
return L.forEach(function(F, D) {
|
|
17170
17171
|
F = Math.min(E - 1, F);
|
|
17171
|
-
var z = void 0, Q =
|
|
17172
|
+
var z = void 0, Q = H.scroll.leaf(F), X = d(Q, 2), P = X[0], M = X[1], B = P.position(M, D !== 0), R = d(B, 2);
|
|
17172
17173
|
z = R[0], M = R[1], S.push(z, M);
|
|
17173
17174
|
}), S.length < 2 && (S = S.concat(S)), S;
|
|
17174
17175
|
}
|
|
17175
17176
|
}, {
|
|
17176
17177
|
key: "scrollIntoView",
|
|
17177
17178
|
value: function(k) {
|
|
17178
|
-
var
|
|
17179
|
-
if (
|
|
17180
|
-
var L = this.getBounds(
|
|
17179
|
+
var H = this.lastRange;
|
|
17180
|
+
if (H != null) {
|
|
17181
|
+
var L = this.getBounds(H.index, H.length);
|
|
17181
17182
|
if (L != null) {
|
|
17182
|
-
var S = this.scroll.length() - 1, E = this.scroll.line(Math.min(
|
|
17183
|
-
if (
|
|
17184
|
-
var Q = this.scroll.line(Math.min(
|
|
17183
|
+
var S = this.scroll.length() - 1, E = this.scroll.line(Math.min(H.index, S)), F = d(E, 1), D = F[0], z = D;
|
|
17184
|
+
if (H.length > 0) {
|
|
17185
|
+
var Q = this.scroll.line(Math.min(H.index + H.length, S)), X = d(Q, 1);
|
|
17185
17186
|
z = X[0];
|
|
17186
17187
|
}
|
|
17187
17188
|
if (!(D == null || z == null)) {
|
|
@@ -17193,18 +17194,18 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17193
17194
|
}
|
|
17194
17195
|
}, {
|
|
17195
17196
|
key: "setNativeRange",
|
|
17196
|
-
value: function(k,
|
|
17197
|
-
var L = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : k, S = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] :
|
|
17198
|
-
if (C.info("setNativeRange", k,
|
|
17197
|
+
value: function(k, H) {
|
|
17198
|
+
var L = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : k, S = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : H, E = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
|
|
17199
|
+
if (C.info("setNativeRange", k, H, L, S), !(k != null && (this.root.parentNode == null || k.parentNode == null || L.parentNode == null))) {
|
|
17199
17200
|
var F = document.getSelection();
|
|
17200
17201
|
if (F != null)
|
|
17201
17202
|
if (k != null) {
|
|
17202
17203
|
this.hasFocus() || this.root.focus();
|
|
17203
17204
|
var D = (this.getNativeRange() || {}).native;
|
|
17204
|
-
if (D == null || E || k !== D.startContainer ||
|
|
17205
|
-
k.tagName == "BR" && (
|
|
17205
|
+
if (D == null || E || k !== D.startContainer || H !== D.startOffset || L !== D.endContainer || S !== D.endOffset) {
|
|
17206
|
+
k.tagName == "BR" && (H = [].indexOf.call(k.parentNode.childNodes, k), k = k.parentNode), L.tagName == "BR" && (S = [].indexOf.call(L.parentNode.childNodes, L), L = L.parentNode);
|
|
17206
17207
|
var z = document.createRange();
|
|
17207
|
-
z.setStart(k,
|
|
17208
|
+
z.setStart(k, H), z.setEnd(L, S), F.removeAllRanges(), F.addRange(z);
|
|
17208
17209
|
}
|
|
17209
17210
|
} else
|
|
17210
17211
|
F.removeAllRanges(), this.root.blur(), document.body.focus();
|
|
@@ -17213,10 +17214,10 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17213
17214
|
}, {
|
|
17214
17215
|
key: "setRange",
|
|
17215
17216
|
value: function(k) {
|
|
17216
|
-
var
|
|
17217
|
-
if (typeof
|
|
17217
|
+
var H = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, L = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : y.default.sources.API;
|
|
17218
|
+
if (typeof H == "string" && (L = H, H = !1), C.info("setRange", k), k != null) {
|
|
17218
17219
|
var S = this.rangeToNative(k);
|
|
17219
|
-
this.setNativeRange.apply(this, g(S).concat([
|
|
17220
|
+
this.setNativeRange.apply(this, g(S).concat([H]));
|
|
17220
17221
|
} else
|
|
17221
17222
|
this.setNativeRange(null);
|
|
17222
17223
|
this.update(L);
|
|
@@ -17224,26 +17225,26 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17224
17225
|
}, {
|
|
17225
17226
|
key: "update",
|
|
17226
17227
|
value: function() {
|
|
17227
|
-
var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : y.default.sources.USER,
|
|
17228
|
-
if (this.lastRange = E, this.lastRange != null && (this.savedRange = this.lastRange), !(0, l.default)(
|
|
17228
|
+
var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : y.default.sources.USER, H = this.lastRange, L = this.getRange(), S = d(L, 2), E = S[0], F = S[1];
|
|
17229
|
+
if (this.lastRange = E, this.lastRange != null && (this.savedRange = this.lastRange), !(0, l.default)(H, this.lastRange)) {
|
|
17229
17230
|
var D;
|
|
17230
17231
|
!this.composing && F != null && F.native.collapsed && F.start.node !== this.cursor.textNode && this.cursor.restore();
|
|
17231
|
-
var z = [y.default.events.SELECTION_CHANGE, (0, h.default)(this.lastRange), (0, h.default)(
|
|
17232
|
+
var z = [y.default.events.SELECTION_CHANGE, (0, h.default)(this.lastRange), (0, h.default)(H), k];
|
|
17232
17233
|
if ((D = this.emitter).emit.apply(D, [y.default.events.EDITOR_CHANGE].concat(z)), k !== y.default.sources.SILENT) {
|
|
17233
17234
|
var Q;
|
|
17234
17235
|
(Q = this.emitter).emit.apply(Q, z);
|
|
17235
17236
|
}
|
|
17236
17237
|
}
|
|
17237
17238
|
}
|
|
17238
|
-
}]),
|
|
17239
|
+
}]), I;
|
|
17239
17240
|
}();
|
|
17240
|
-
function I
|
|
17241
|
+
function V(I, Z) {
|
|
17241
17242
|
try {
|
|
17242
17243
|
Z.parentNode;
|
|
17243
17244
|
} catch {
|
|
17244
17245
|
return !1;
|
|
17245
17246
|
}
|
|
17246
|
-
return Z instanceof Text && (Z = Z.parentNode),
|
|
17247
|
+
return Z instanceof Text && (Z = Z.parentNode), I.contains(Z);
|
|
17247
17248
|
}
|
|
17248
17249
|
r.Range = w, r.default = A;
|
|
17249
17250
|
},
|
|
@@ -17677,71 +17678,71 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17677
17678
|
typeof u == "object" && (f = u.depth, g = u.prototype, x = u.includeNonEnumerable, u = u.circular);
|
|
17678
17679
|
var C = [], w = [], A = typeof Buffer < "u";
|
|
17679
17680
|
typeof u > "u" && (u = !0), typeof f > "u" && (f = 1 / 0);
|
|
17680
|
-
function I
|
|
17681
|
-
if (
|
|
17681
|
+
function V(I, Z) {
|
|
17682
|
+
if (I === null)
|
|
17682
17683
|
return null;
|
|
17683
17684
|
if (Z === 0)
|
|
17684
|
-
return
|
|
17685
|
-
var k,
|
|
17686
|
-
if (typeof
|
|
17687
|
-
return
|
|
17688
|
-
if (d(
|
|
17685
|
+
return I;
|
|
17686
|
+
var k, H;
|
|
17687
|
+
if (typeof I != "object")
|
|
17688
|
+
return I;
|
|
17689
|
+
if (d(I, p))
|
|
17689
17690
|
k = new p();
|
|
17690
|
-
else if (d(
|
|
17691
|
+
else if (d(I, b))
|
|
17691
17692
|
k = new b();
|
|
17692
|
-
else if (d(
|
|
17693
|
+
else if (d(I, s))
|
|
17693
17694
|
k = new s(function(P, M) {
|
|
17694
|
-
|
|
17695
|
-
P(
|
|
17695
|
+
I.then(function(B) {
|
|
17696
|
+
P(V(B, Z - 1));
|
|
17696
17697
|
}, function(B) {
|
|
17697
|
-
M(
|
|
17698
|
+
M(V(B, Z - 1));
|
|
17698
17699
|
});
|
|
17699
17700
|
});
|
|
17700
|
-
else if (v.__isArray(
|
|
17701
|
+
else if (v.__isArray(I))
|
|
17701
17702
|
k = [];
|
|
17702
|
-
else if (v.__isRegExp(
|
|
17703
|
-
k = new RegExp(
|
|
17704
|
-
else if (v.__isDate(
|
|
17705
|
-
k = new Date(
|
|
17703
|
+
else if (v.__isRegExp(I))
|
|
17704
|
+
k = new RegExp(I.source, y(I)), I.lastIndex && (k.lastIndex = I.lastIndex);
|
|
17705
|
+
else if (v.__isDate(I))
|
|
17706
|
+
k = new Date(I.getTime());
|
|
17706
17707
|
else {
|
|
17707
|
-
if (A && Buffer.isBuffer(
|
|
17708
|
-
return Buffer.allocUnsafe ? k = Buffer.allocUnsafe(
|
|
17709
|
-
d(
|
|
17708
|
+
if (A && Buffer.isBuffer(I))
|
|
17709
|
+
return Buffer.allocUnsafe ? k = Buffer.allocUnsafe(I.length) : k = new Buffer(I.length), I.copy(k), k;
|
|
17710
|
+
d(I, Error) ? k = Object.create(I) : typeof g > "u" ? (H = Object.getPrototypeOf(I), k = Object.create(H)) : (k = Object.create(g), H = g);
|
|
17710
17711
|
}
|
|
17711
17712
|
if (u) {
|
|
17712
|
-
var L = C.indexOf(
|
|
17713
|
+
var L = C.indexOf(I);
|
|
17713
17714
|
if (L != -1)
|
|
17714
17715
|
return w[L];
|
|
17715
|
-
C.push(
|
|
17716
|
+
C.push(I), w.push(k);
|
|
17716
17717
|
}
|
|
17717
|
-
d(
|
|
17718
|
-
var B =
|
|
17718
|
+
d(I, p) && I.forEach(function(P, M) {
|
|
17719
|
+
var B = V(M, Z - 1), R = V(P, Z - 1);
|
|
17719
17720
|
k.set(B, R);
|
|
17720
|
-
}), d(
|
|
17721
|
-
var M =
|
|
17721
|
+
}), d(I, b) && I.forEach(function(P) {
|
|
17722
|
+
var M = V(P, Z - 1);
|
|
17722
17723
|
k.add(M);
|
|
17723
17724
|
});
|
|
17724
|
-
for (var S in
|
|
17725
|
+
for (var S in I) {
|
|
17725
17726
|
var E;
|
|
17726
|
-
|
|
17727
|
+
H && (E = Object.getOwnPropertyDescriptor(H, S)), !(E && E.set == null) && (k[S] = V(I[S], Z - 1));
|
|
17727
17728
|
}
|
|
17728
17729
|
if (Object.getOwnPropertySymbols)
|
|
17729
|
-
for (var F = Object.getOwnPropertySymbols(
|
|
17730
|
-
var D = F[S], z = Object.getOwnPropertyDescriptor(
|
|
17731
|
-
z && !z.enumerable && !x || (k[D] = I
|
|
17730
|
+
for (var F = Object.getOwnPropertySymbols(I), S = 0; S < F.length; S++) {
|
|
17731
|
+
var D = F[S], z = Object.getOwnPropertyDescriptor(I, D);
|
|
17732
|
+
z && !z.enumerable && !x || (k[D] = V(I[D], Z - 1), z.enumerable || Object.defineProperty(k, D, {
|
|
17732
17733
|
enumerable: !1
|
|
17733
17734
|
}));
|
|
17734
17735
|
}
|
|
17735
17736
|
if (x)
|
|
17736
|
-
for (var Q = Object.getOwnPropertyNames(
|
|
17737
|
-
var X = Q[S], z = Object.getOwnPropertyDescriptor(
|
|
17738
|
-
z && z.enumerable || (k[X] = I
|
|
17737
|
+
for (var Q = Object.getOwnPropertyNames(I), S = 0; S < Q.length; S++) {
|
|
17738
|
+
var X = Q[S], z = Object.getOwnPropertyDescriptor(I, X);
|
|
17739
|
+
z && z.enumerable || (k[X] = V(I[X], Z - 1), Object.defineProperty(k, X, {
|
|
17739
17740
|
enumerable: !1
|
|
17740
17741
|
}));
|
|
17741
17742
|
}
|
|
17742
17743
|
return k;
|
|
17743
17744
|
}
|
|
17744
|
-
return
|
|
17745
|
+
return V(m, f);
|
|
17745
17746
|
}
|
|
17746
17747
|
v.clonePrototype = function(u) {
|
|
17747
17748
|
if (u === null)
|
|
@@ -17781,10 +17782,10 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17781
17782
|
value: !0
|
|
17782
17783
|
});
|
|
17783
17784
|
var d = function() {
|
|
17784
|
-
function k(
|
|
17785
|
+
function k(H, L) {
|
|
17785
17786
|
var S = [], E = !0, F = !1, D = void 0;
|
|
17786
17787
|
try {
|
|
17787
|
-
for (var z =
|
|
17788
|
+
for (var z = H[Symbol.iterator](), Q; !(E = (Q = z.next()).done) && (S.push(Q.value), !(L && S.length === L)); E = !0)
|
|
17788
17789
|
;
|
|
17789
17790
|
} catch (X) {
|
|
17790
17791
|
F = !0, D = X;
|
|
@@ -17798,28 +17799,28 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17798
17799
|
}
|
|
17799
17800
|
return S;
|
|
17800
17801
|
}
|
|
17801
|
-
return function(
|
|
17802
|
-
if (Array.isArray(
|
|
17803
|
-
return
|
|
17804
|
-
if (Symbol.iterator in Object(
|
|
17805
|
-
return k(
|
|
17802
|
+
return function(H, L) {
|
|
17803
|
+
if (Array.isArray(H))
|
|
17804
|
+
return H;
|
|
17805
|
+
if (Symbol.iterator in Object(H))
|
|
17806
|
+
return k(H, L);
|
|
17806
17807
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
17807
17808
|
};
|
|
17808
17809
|
}(), p = function() {
|
|
17809
|
-
function k(
|
|
17810
|
+
function k(H, L) {
|
|
17810
17811
|
for (var S = 0; S < L.length; S++) {
|
|
17811
17812
|
var E = L[S];
|
|
17812
|
-
E.enumerable = E.enumerable || !1, E.configurable = !0, "value" in E && (E.writable = !0), Object.defineProperty(
|
|
17813
|
+
E.enumerable = E.enumerable || !1, E.configurable = !0, "value" in E && (E.writable = !0), Object.defineProperty(H, E.key, E);
|
|
17813
17814
|
}
|
|
17814
17815
|
}
|
|
17815
|
-
return function(
|
|
17816
|
-
return L && k(
|
|
17816
|
+
return function(H, L, S) {
|
|
17817
|
+
return L && k(H.prototype, L), S && k(H, S), H;
|
|
17817
17818
|
};
|
|
17818
|
-
}(), b = function k(
|
|
17819
|
-
|
|
17820
|
-
var E = Object.getOwnPropertyDescriptor(
|
|
17819
|
+
}(), b = function k(H, L, S) {
|
|
17820
|
+
H === null && (H = Function.prototype);
|
|
17821
|
+
var E = Object.getOwnPropertyDescriptor(H, L);
|
|
17821
17822
|
if (E === void 0) {
|
|
17822
|
-
var F = Object.getPrototypeOf(
|
|
17823
|
+
var F = Object.getPrototypeOf(H);
|
|
17823
17824
|
return F === null ? void 0 : k(F, L, S);
|
|
17824
17825
|
} else {
|
|
17825
17826
|
if ("value" in E)
|
|
@@ -17831,34 +17832,34 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17831
17832
|
function C(k) {
|
|
17832
17833
|
return k && k.__esModule ? k : { default: k };
|
|
17833
17834
|
}
|
|
17834
|
-
function w(k,
|
|
17835
|
-
if (!(k instanceof
|
|
17835
|
+
function w(k, H) {
|
|
17836
|
+
if (!(k instanceof H))
|
|
17836
17837
|
throw new TypeError("Cannot call a class as a function");
|
|
17837
17838
|
}
|
|
17838
|
-
function A(k,
|
|
17839
|
+
function A(k, H) {
|
|
17839
17840
|
if (!k)
|
|
17840
17841
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
17841
|
-
return
|
|
17842
|
+
return H && (typeof H == "object" || typeof H == "function") ? H : k;
|
|
17842
17843
|
}
|
|
17843
|
-
function
|
|
17844
|
-
if (typeof
|
|
17845
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
17846
|
-
k.prototype = Object.create(
|
|
17844
|
+
function V(k, H) {
|
|
17845
|
+
if (typeof H != "function" && H !== null)
|
|
17846
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof H);
|
|
17847
|
+
k.prototype = Object.create(H && H.prototype, { constructor: { value: k, enumerable: !1, writable: !0, configurable: !0 } }), H && (Object.setPrototypeOf ? Object.setPrototypeOf(k, H) : k.__proto__ = H);
|
|
17847
17848
|
}
|
|
17848
|
-
function
|
|
17849
|
+
function I(k) {
|
|
17849
17850
|
return k instanceof a.default || k instanceof l.BlockEmbed;
|
|
17850
17851
|
}
|
|
17851
17852
|
var Z = function(k) {
|
|
17852
|
-
|
|
17853
|
-
function
|
|
17854
|
-
w(this,
|
|
17855
|
-
var E = A(this, (
|
|
17853
|
+
V(H, k);
|
|
17854
|
+
function H(L, S) {
|
|
17855
|
+
w(this, H);
|
|
17856
|
+
var E = A(this, (H.__proto__ || Object.getPrototypeOf(H)).call(this, L));
|
|
17856
17857
|
return E.emitter = S.emitter, Array.isArray(S.whitelist) && (E.whitelist = S.whitelist.reduce(function(F, D) {
|
|
17857
17858
|
return F[D] = !0, F;
|
|
17858
17859
|
}, {})), E.domNode.addEventListener("DOMNodeInserted", function() {
|
|
17859
17860
|
}), E.optimize(), E.enable(), E;
|
|
17860
17861
|
}
|
|
17861
|
-
return p(
|
|
17862
|
+
return p(H, [{
|
|
17862
17863
|
key: "batchStart",
|
|
17863
17864
|
value: function() {
|
|
17864
17865
|
this.batch = !0;
|
|
@@ -17872,7 +17873,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17872
17873
|
key: "deleteAt",
|
|
17873
17874
|
value: function(S, E) {
|
|
17874
17875
|
var F = this.line(S), D = d(F, 2), z = D[0], Q = D[1], X = this.line(S + E), P = d(X, 1), M = P[0];
|
|
17875
|
-
if (b(
|
|
17876
|
+
if (b(H.prototype.__proto__ || Object.getPrototypeOf(H.prototype), "deleteAt", this).call(this, S, E), M != null && z !== M && Q > 0) {
|
|
17876
17877
|
if (z instanceof l.BlockEmbed || M instanceof l.BlockEmbed) {
|
|
17877
17878
|
this.optimize();
|
|
17878
17879
|
return;
|
|
@@ -17901,7 +17902,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17901
17902
|
}, {
|
|
17902
17903
|
key: "formatAt",
|
|
17903
17904
|
value: function(S, E, F, D) {
|
|
17904
|
-
this.whitelist != null && !this.whitelist[F] || (b(
|
|
17905
|
+
this.whitelist != null && !this.whitelist[F] || (b(H.prototype.__proto__ || Object.getPrototypeOf(H.prototype), "formatAt", this).call(this, S, E, F, D), this.optimize());
|
|
17905
17906
|
}
|
|
17906
17907
|
}, {
|
|
17907
17908
|
key: "insertAt",
|
|
@@ -17917,7 +17918,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17917
17918
|
this.appendChild(z);
|
|
17918
17919
|
}
|
|
17919
17920
|
else
|
|
17920
|
-
b(
|
|
17921
|
+
b(H.prototype.__proto__ || Object.getPrototypeOf(H.prototype), "insertAt", this).call(this, S, E, F);
|
|
17921
17922
|
this.optimize();
|
|
17922
17923
|
}
|
|
17923
17924
|
}
|
|
@@ -17928,7 +17929,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17928
17929
|
var F = v.default.create(this.statics.defaultChild);
|
|
17929
17930
|
F.appendChild(S), S = F;
|
|
17930
17931
|
}
|
|
17931
|
-
b(
|
|
17932
|
+
b(H.prototype.__proto__ || Object.getPrototypeOf(H.prototype), "insertBefore", this).call(this, S, E);
|
|
17932
17933
|
}
|
|
17933
17934
|
}, {
|
|
17934
17935
|
key: "leaf",
|
|
@@ -17938,7 +17939,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17938
17939
|
}, {
|
|
17939
17940
|
key: "line",
|
|
17940
17941
|
value: function(S) {
|
|
17941
|
-
return S === this.length() ? this.line(S - 1) : this.descendant(
|
|
17942
|
+
return S === this.length() ? this.line(S - 1) : this.descendant(I, S);
|
|
17942
17943
|
}
|
|
17943
17944
|
}, {
|
|
17944
17945
|
key: "lines",
|
|
@@ -17946,7 +17947,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17946
17947
|
var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, F = function D(z, Q, X) {
|
|
17947
17948
|
var P = [], M = X;
|
|
17948
17949
|
return z.children.forEachAt(Q, X, function(B, R, j) {
|
|
17949
|
-
|
|
17950
|
+
I(B) ? P.push(B) : B instanceof v.default.Container && (P = P.concat(D(B, R, M))), M -= j;
|
|
17950
17951
|
}), P;
|
|
17951
17952
|
};
|
|
17952
17953
|
return F(this, S, E);
|
|
@@ -17955,22 +17956,22 @@ var wl = bl, Yt = { exports: {} };
|
|
|
17955
17956
|
key: "optimize",
|
|
17956
17957
|
value: function() {
|
|
17957
17958
|
var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
17958
|
-
this.batch !== !0 && (b(
|
|
17959
|
+
this.batch !== !0 && (b(H.prototype.__proto__ || Object.getPrototypeOf(H.prototype), "optimize", this).call(this, S, E), S.length > 0 && this.emitter.emit(c.default.events.SCROLL_OPTIMIZE, S, E));
|
|
17959
17960
|
}
|
|
17960
17961
|
}, {
|
|
17961
17962
|
key: "path",
|
|
17962
17963
|
value: function(S) {
|
|
17963
|
-
return b(
|
|
17964
|
+
return b(H.prototype.__proto__ || Object.getPrototypeOf(H.prototype), "path", this).call(this, S).slice(1);
|
|
17964
17965
|
}
|
|
17965
17966
|
}, {
|
|
17966
17967
|
key: "update",
|
|
17967
17968
|
value: function(S) {
|
|
17968
17969
|
if (this.batch !== !0) {
|
|
17969
17970
|
var E = c.default.sources.USER;
|
|
17970
|
-
typeof S == "string" && (E = S), Array.isArray(S) || (S = this.observer.takeRecords()), S.length > 0 && this.emitter.emit(c.default.events.SCROLL_BEFORE_UPDATE, E, S), b(
|
|
17971
|
+
typeof S == "string" && (E = S), Array.isArray(S) || (S = this.observer.takeRecords()), S.length > 0 && this.emitter.emit(c.default.events.SCROLL_BEFORE_UPDATE, E, S), b(H.prototype.__proto__ || Object.getPrototypeOf(H.prototype), "update", this).call(this, S.concat([])), S.length > 0 && this.emitter.emit(c.default.events.SCROLL_UPDATE, E, S);
|
|
17971
17972
|
}
|
|
17972
17973
|
}
|
|
17973
|
-
}]),
|
|
17974
|
+
}]), H;
|
|
17974
17975
|
}(v.default.Scroll);
|
|
17975
17976
|
Z.blotName = "scroll", Z.className = "ql-editor", Z.tagName = "DIV", Z.defaultChild = "block", Z.allowedChildren = [a.default, l.BlockEmbed, x.default], r.default = Z;
|
|
17976
17977
|
},
|
|
@@ -18019,11 +18020,11 @@ var wl = bl, Yt = { exports: {} };
|
|
|
18019
18020
|
return function(W, Y, J) {
|
|
18020
18021
|
return Y && N(W.prototype, Y), J && N(W, J), W;
|
|
18021
18022
|
};
|
|
18022
|
-
}(), s = n(21), v = k(s), h = n(11), c = k(h), l = n(3), a = k(l), y = n(2), m = k(y), u = n(20), f = k(u), g = n(0), x = k(g), C = n(5), w = k(C), A = n(10),
|
|
18023
|
+
}(), s = n(21), v = k(s), h = n(11), c = k(h), l = n(3), a = k(l), y = n(2), m = k(y), u = n(20), f = k(u), g = n(0), x = k(g), C = n(5), w = k(C), A = n(10), V = k(A), I = n(9), Z = k(I);
|
|
18023
18024
|
function k(N) {
|
|
18024
18025
|
return N && N.__esModule ? N : { default: N };
|
|
18025
18026
|
}
|
|
18026
|
-
function
|
|
18027
|
+
function H(N, W, Y) {
|
|
18027
18028
|
return W in N ? Object.defineProperty(N, W, { value: Y, enumerable: !0, configurable: !0, writable: !0 }) : N[W] = Y, N;
|
|
18028
18029
|
}
|
|
18029
18030
|
function L(N, W) {
|
|
@@ -18040,7 +18041,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
18040
18041
|
throw new TypeError("Super expression must either be null or a function, not " + typeof W);
|
|
18041
18042
|
N.prototype = Object.create(W && W.prototype, { constructor: { value: N, enumerable: !1, writable: !0, configurable: !0 } }), W && (Object.setPrototypeOf ? Object.setPrototypeOf(N, W) : N.__proto__ = W);
|
|
18042
18043
|
}
|
|
18043
|
-
var F = (0,
|
|
18044
|
+
var F = (0, V.default)("quill:keyboard"), D = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", z = function(N) {
|
|
18044
18045
|
E(W, N), b(W, null, [{
|
|
18045
18046
|
key: "match",
|
|
18046
18047
|
value: function(J, e1) {
|
|
@@ -18257,7 +18258,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
18257
18258
|
key: N,
|
|
18258
18259
|
shiftKey: W,
|
|
18259
18260
|
altKey: null
|
|
18260
|
-
},
|
|
18261
|
+
}, H(Y, J, /^$/), H(Y, "handler", function(s1) {
|
|
18261
18262
|
var f1 = s1.index;
|
|
18262
18263
|
N === z.keys.RIGHT && (f1 += s1.length + 1);
|
|
18263
18264
|
var p1 = this.quill.getLeaf(f1), m1 = p(p1, 1), q = m1[0];
|
|
@@ -18359,18 +18360,18 @@ var wl = bl, Yt = { exports: {} };
|
|
|
18359
18360
|
});
|
|
18360
18361
|
var d = function() {
|
|
18361
18362
|
function f(g, x) {
|
|
18362
|
-
var C = [], w = !0, A = !1,
|
|
18363
|
+
var C = [], w = !0, A = !1, V = void 0;
|
|
18363
18364
|
try {
|
|
18364
|
-
for (var
|
|
18365
|
+
for (var I = g[Symbol.iterator](), Z; !(w = (Z = I.next()).done) && (C.push(Z.value), !(x && C.length === x)); w = !0)
|
|
18365
18366
|
;
|
|
18366
18367
|
} catch (k) {
|
|
18367
|
-
A = !0,
|
|
18368
|
+
A = !0, V = k;
|
|
18368
18369
|
} finally {
|
|
18369
18370
|
try {
|
|
18370
|
-
!w &&
|
|
18371
|
+
!w && I.return && I.return();
|
|
18371
18372
|
} finally {
|
|
18372
18373
|
if (A)
|
|
18373
|
-
throw
|
|
18374
|
+
throw V;
|
|
18374
18375
|
}
|
|
18375
18376
|
}
|
|
18376
18377
|
return C;
|
|
@@ -18391,8 +18392,8 @@ var wl = bl, Yt = { exports: {} };
|
|
|
18391
18392
|
} else {
|
|
18392
18393
|
if ("value" in w)
|
|
18393
18394
|
return w.value;
|
|
18394
|
-
var
|
|
18395
|
-
return
|
|
18395
|
+
var V = w.get;
|
|
18396
|
+
return V === void 0 ? void 0 : V.call(C);
|
|
18396
18397
|
}
|
|
18397
18398
|
}, b = function() {
|
|
18398
18399
|
function f(g, x) {
|
|
@@ -18443,9 +18444,9 @@ var wl = bl, Yt = { exports: {} };
|
|
|
18443
18444
|
value: function(C, w) {
|
|
18444
18445
|
if (this._length !== 0)
|
|
18445
18446
|
return p(g.prototype.__proto__ || Object.getPrototypeOf(g.prototype), "format", this).call(this, C, w);
|
|
18446
|
-
for (var A = this,
|
|
18447
|
-
|
|
18448
|
-
A != null && (this._length = g.CONTENTS.length, A.optimize(), A.formatAt(
|
|
18447
|
+
for (var A = this, V = 0; A != null && A.statics.scope !== v.default.Scope.BLOCK_BLOT; )
|
|
18448
|
+
V += A.offset(A.parent), A = A.parent;
|
|
18449
|
+
A != null && (this._length = g.CONTENTS.length, A.optimize(), A.formatAt(V, g.CONTENTS.length, C, w), this._length = 0);
|
|
18449
18450
|
}
|
|
18450
18451
|
}, {
|
|
18451
18452
|
key: "index",
|
|
@@ -18471,10 +18472,10 @@ var wl = bl, Yt = { exports: {} };
|
|
|
18471
18472
|
key: "restore",
|
|
18472
18473
|
value: function() {
|
|
18473
18474
|
if (!(this.selection.composing || this.parent == null)) {
|
|
18474
|
-
var C = this.textNode, w = this.selection.getNativeRange(), A = void 0,
|
|
18475
|
+
var C = this.textNode, w = this.selection.getNativeRange(), A = void 0, V = void 0, I = void 0;
|
|
18475
18476
|
if (w != null && w.start.node === C && w.end.node === C) {
|
|
18476
18477
|
var Z = [C, w.start.offset, w.end.offset];
|
|
18477
|
-
A = Z[0],
|
|
18478
|
+
A = Z[0], V = Z[1], I = Z[2];
|
|
18478
18479
|
}
|
|
18479
18480
|
for (; this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode; )
|
|
18480
18481
|
this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
|
|
@@ -18482,15 +18483,15 @@ var wl = bl, Yt = { exports: {} };
|
|
|
18482
18483
|
var k = this.textNode.data.split(g.CONTENTS).join("");
|
|
18483
18484
|
this.next instanceof c.default ? (A = this.next.domNode, this.next.insertAt(0, k), this.textNode.data = g.CONTENTS) : (this.textNode.data = k, this.parent.insertBefore(v.default.create(this.textNode), this), this.textNode = document.createTextNode(g.CONTENTS), this.domNode.appendChild(this.textNode));
|
|
18484
18485
|
}
|
|
18485
|
-
if (this.remove(),
|
|
18486
|
-
var
|
|
18486
|
+
if (this.remove(), V != null) {
|
|
18487
|
+
var H = [V, I].map(function(S) {
|
|
18487
18488
|
return Math.max(0, Math.min(A.data.length, S - 1));
|
|
18488
|
-
}), L = d(
|
|
18489
|
-
return
|
|
18489
|
+
}), L = d(H, 2);
|
|
18490
|
+
return V = L[0], I = L[1], {
|
|
18490
18491
|
startNode: A,
|
|
18491
|
-
startOffset:
|
|
18492
|
+
startOffset: V,
|
|
18492
18493
|
endNode: A,
|
|
18493
|
-
endOffset:
|
|
18494
|
+
endOffset: I
|
|
18494
18495
|
};
|
|
18495
18496
|
}
|
|
18496
18497
|
}
|
|
@@ -18499,11 +18500,11 @@ var wl = bl, Yt = { exports: {} };
|
|
|
18499
18500
|
key: "update",
|
|
18500
18501
|
value: function(C, w) {
|
|
18501
18502
|
var A = this;
|
|
18502
|
-
if (C.some(function(
|
|
18503
|
-
return
|
|
18503
|
+
if (C.some(function(I) {
|
|
18504
|
+
return I.type === "characterData" && I.target === A.textNode;
|
|
18504
18505
|
})) {
|
|
18505
|
-
var
|
|
18506
|
-
|
|
18506
|
+
var V = this.restore();
|
|
18507
|
+
V && (w.range = V);
|
|
18507
18508
|
}
|
|
18508
18509
|
}
|
|
18509
18510
|
}, {
|
|
@@ -18842,7 +18843,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
18842
18843
|
Object.defineProperty(r, "__esModule", {
|
|
18843
18844
|
value: !0
|
|
18844
18845
|
});
|
|
18845
|
-
var d = n(0), p = F(d), b = n(5), s = F(b), v = n(4), h = F(v), c = n(16), l = F(c), a = n(25), y = F(a), m = n(24), u = F(m), f = n(35), g = F(f), x = n(6), C = F(x), w = n(22), A = F(w),
|
|
18846
|
+
var d = n(0), p = F(d), b = n(5), s = F(b), v = n(4), h = F(v), c = n(16), l = F(c), a = n(25), y = F(a), m = n(24), u = F(m), f = n(35), g = F(f), x = n(6), C = F(x), w = n(22), A = F(w), V = n(7), I = F(V), Z = n(55), k = F(Z), H = n(42), L = F(H), S = n(23), E = F(S);
|
|
18846
18847
|
function F(D) {
|
|
18847
18848
|
return D && D.__esModule ? D : { default: D };
|
|
18848
18849
|
}
|
|
@@ -18855,11 +18856,11 @@ var wl = bl, Yt = { exports: {} };
|
|
|
18855
18856
|
"blots/embed": g.default,
|
|
18856
18857
|
"blots/inline": C.default,
|
|
18857
18858
|
"blots/scroll": A.default,
|
|
18858
|
-
"blots/text":
|
|
18859
|
+
"blots/text": I.default,
|
|
18859
18860
|
"modules/clipboard": k.default,
|
|
18860
18861
|
"modules/history": L.default,
|
|
18861
18862
|
"modules/keyboard": E.default
|
|
18862
|
-
}), p.default.register(h.default, l.default, u.default, C.default, A.default,
|
|
18863
|
+
}), p.default.register(h.default, l.default, u.default, C.default, A.default, I.default), r.default = s.default;
|
|
18863
18864
|
},
|
|
18864
18865
|
/* 30 */
|
|
18865
18866
|
/***/
|
|
@@ -19150,8 +19151,8 @@ var wl = bl, Yt = { exports: {} };
|
|
|
19150
19151
|
} else {
|
|
19151
19152
|
if ("value" in w)
|
|
19152
19153
|
return w.value;
|
|
19153
|
-
var
|
|
19154
|
-
return
|
|
19154
|
+
var V = w.get;
|
|
19155
|
+
return V === void 0 ? void 0 : V.call(C);
|
|
19155
19156
|
}
|
|
19156
19157
|
}, b = n(0), s = c(b), v = n(7), h = c(v);
|
|
19157
19158
|
function c(f) {
|
|
@@ -19188,26 +19189,26 @@ var wl = bl, Yt = { exports: {} };
|
|
|
19188
19189
|
}, {
|
|
19189
19190
|
key: "restore",
|
|
19190
19191
|
value: function(C) {
|
|
19191
|
-
var w = void 0, A = void 0,
|
|
19192
|
+
var w = void 0, A = void 0, V = C.data.split(m).join("");
|
|
19192
19193
|
if (C === this.leftGuard)
|
|
19193
19194
|
if (this.prev instanceof h.default) {
|
|
19194
|
-
var
|
|
19195
|
-
this.prev.insertAt(
|
|
19195
|
+
var I = this.prev.length();
|
|
19196
|
+
this.prev.insertAt(I, V), w = {
|
|
19196
19197
|
startNode: this.prev.domNode,
|
|
19197
|
-
startOffset:
|
|
19198
|
+
startOffset: I + V.length
|
|
19198
19199
|
};
|
|
19199
19200
|
} else
|
|
19200
|
-
A = document.createTextNode(
|
|
19201
|
+
A = document.createTextNode(V), this.parent.insertBefore(s.default.create(A), this), w = {
|
|
19201
19202
|
startNode: A,
|
|
19202
|
-
startOffset:
|
|
19203
|
+
startOffset: V.length
|
|
19203
19204
|
};
|
|
19204
19205
|
else
|
|
19205
|
-
C === this.rightGuard && (this.next instanceof h.default ? (this.next.insertAt(0,
|
|
19206
|
+
C === this.rightGuard && (this.next instanceof h.default ? (this.next.insertAt(0, V), w = {
|
|
19206
19207
|
startNode: this.next.domNode,
|
|
19207
|
-
startOffset:
|
|
19208
|
-
}) : (A = document.createTextNode(
|
|
19208
|
+
startOffset: V.length
|
|
19209
|
+
}) : (A = document.createTextNode(V), this.parent.insertBefore(s.default.create(A), this.next), w = {
|
|
19209
19210
|
startNode: A,
|
|
19210
|
-
startOffset:
|
|
19211
|
+
startOffset: V.length
|
|
19211
19212
|
}));
|
|
19212
19213
|
return C.data = m, w;
|
|
19213
19214
|
}
|
|
@@ -19215,10 +19216,10 @@ var wl = bl, Yt = { exports: {} };
|
|
|
19215
19216
|
key: "update",
|
|
19216
19217
|
value: function(C, w) {
|
|
19217
19218
|
var A = this;
|
|
19218
|
-
C.forEach(function(
|
|
19219
|
-
if (
|
|
19220
|
-
var
|
|
19221
|
-
|
|
19219
|
+
C.forEach(function(V) {
|
|
19220
|
+
if (V.type === "characterData" && (V.target === A.leftGuard || V.target === A.rightGuard)) {
|
|
19221
|
+
var I = A.restore(V.target);
|
|
19222
|
+
I && (w.range = I);
|
|
19222
19223
|
}
|
|
19223
19224
|
});
|
|
19224
19225
|
}
|
|
@@ -19300,8 +19301,8 @@ var wl = bl, Yt = { exports: {} };
|
|
|
19300
19301
|
} else {
|
|
19301
19302
|
if ("value" in w)
|
|
19302
19303
|
return w.value;
|
|
19303
|
-
var
|
|
19304
|
-
return
|
|
19304
|
+
var V = w.get;
|
|
19305
|
+
return V === void 0 ? void 0 : V.call(C);
|
|
19305
19306
|
}
|
|
19306
19307
|
}, b = n(0), s = v(b);
|
|
19307
19308
|
function v(f) {
|
|
@@ -19419,8 +19420,8 @@ var wl = bl, Yt = { exports: {} };
|
|
|
19419
19420
|
var d = function() {
|
|
19420
19421
|
function x(C, w) {
|
|
19421
19422
|
for (var A = 0; A < w.length; A++) {
|
|
19422
|
-
var
|
|
19423
|
-
|
|
19423
|
+
var V = w[A];
|
|
19424
|
+
V.enumerable = V.enumerable || !1, V.configurable = !0, "value" in V && (V.writable = !0), Object.defineProperty(C, V.key, V);
|
|
19424
19425
|
}
|
|
19425
19426
|
}
|
|
19426
19427
|
return function(C, w, A) {
|
|
@@ -19448,18 +19449,18 @@ var wl = bl, Yt = { exports: {} };
|
|
|
19448
19449
|
m(C, x);
|
|
19449
19450
|
function C(w, A) {
|
|
19450
19451
|
a(this, C);
|
|
19451
|
-
var
|
|
19452
|
-
return
|
|
19453
|
-
|
|
19454
|
-
}),
|
|
19452
|
+
var V = y(this, (C.__proto__ || Object.getPrototypeOf(C)).call(this, w, A));
|
|
19453
|
+
return V.lastRecorded = 0, V.ignoreChange = !1, V.clear(), V.quill.on(v.default.events.EDITOR_CHANGE, function(I, Z, k, H) {
|
|
19454
|
+
I !== v.default.events.TEXT_CHANGE || V.ignoreChange || (!V.options.userOnly || H === v.default.sources.USER ? V.record(Z, k) : V.transform(Z));
|
|
19455
|
+
}), V.quill.keyboard.addBinding({ key: "Z", shortKey: !0 }, V.undo.bind(V)), V.quill.keyboard.addBinding({ key: "Z", shortKey: !0, shiftKey: !0 }, V.redo.bind(V)), /Win/i.test(navigator.platform) && V.quill.keyboard.addBinding({ key: "Y", shortKey: !0 }, V.redo.bind(V)), V;
|
|
19455
19456
|
}
|
|
19456
19457
|
return d(C, [{
|
|
19457
19458
|
key: "change",
|
|
19458
|
-
value: function(A,
|
|
19459
|
+
value: function(A, V) {
|
|
19459
19460
|
if (this.stack[A].length !== 0) {
|
|
19460
|
-
var
|
|
19461
|
-
this.stack[
|
|
19462
|
-
var Z = g(
|
|
19461
|
+
var I = this.stack[A].pop();
|
|
19462
|
+
this.stack[V].push(I), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(I[A], v.default.sources.USER), this.ignoreChange = !1;
|
|
19463
|
+
var Z = g(I[A]);
|
|
19463
19464
|
this.quill.setSelection(Z);
|
|
19464
19465
|
}
|
|
19465
19466
|
}
|
|
@@ -19475,18 +19476,18 @@ var wl = bl, Yt = { exports: {} };
|
|
|
19475
19476
|
}
|
|
19476
19477
|
}, {
|
|
19477
19478
|
key: "record",
|
|
19478
|
-
value: function(A,
|
|
19479
|
+
value: function(A, V) {
|
|
19479
19480
|
if (A.ops.length !== 0) {
|
|
19480
19481
|
this.stack.redo = [];
|
|
19481
|
-
var
|
|
19482
|
+
var I = this.quill.getContents().diff(V), Z = Date.now();
|
|
19482
19483
|
if (this.lastRecorded + this.options.delay > Z && this.stack.undo.length > 0) {
|
|
19483
19484
|
var k = this.stack.undo.pop();
|
|
19484
|
-
|
|
19485
|
+
I = I.compose(k.undo), A = k.redo.compose(A);
|
|
19485
19486
|
} else
|
|
19486
19487
|
this.lastRecorded = Z;
|
|
19487
19488
|
this.stack.undo.push({
|
|
19488
19489
|
redo: A,
|
|
19489
|
-
undo:
|
|
19490
|
+
undo: I
|
|
19490
19491
|
}), this.stack.undo.length > this.options.maxStack && this.stack.undo.shift();
|
|
19491
19492
|
}
|
|
19492
19493
|
}
|
|
@@ -19498,10 +19499,10 @@ var wl = bl, Yt = { exports: {} };
|
|
|
19498
19499
|
}, {
|
|
19499
19500
|
key: "transform",
|
|
19500
19501
|
value: function(A) {
|
|
19501
|
-
this.stack.undo.forEach(function(
|
|
19502
|
-
|
|
19503
|
-
}), this.stack.redo.forEach(function(
|
|
19504
|
-
|
|
19502
|
+
this.stack.undo.forEach(function(V) {
|
|
19503
|
+
V.undo = A.transform(V.undo, !0), V.redo = A.transform(V.redo, !0);
|
|
19504
|
+
}), this.stack.redo.forEach(function(V) {
|
|
19505
|
+
V.undo = A.transform(V.undo, !0), V.redo = A.transform(V.redo, !0);
|
|
19505
19506
|
});
|
|
19506
19507
|
}
|
|
19507
19508
|
}, {
|
|
@@ -19524,8 +19525,8 @@ var wl = bl, Yt = { exports: {} };
|
|
|
19524
19525
|
}) : !1;
|
|
19525
19526
|
}
|
|
19526
19527
|
function g(x) {
|
|
19527
|
-
var C = x.reduce(function(A,
|
|
19528
|
-
return A +=
|
|
19528
|
+
var C = x.reduce(function(A, V) {
|
|
19529
|
+
return A += V.delete || 0, A;
|
|
19529
19530
|
}, 0), w = x.length() - C;
|
|
19530
19531
|
return f(x) && (w -= 1), w;
|
|
19531
19532
|
}
|
|
@@ -19559,7 +19560,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
19559
19560
|
var Y = N.get;
|
|
19560
19561
|
return Y === void 0 ? void 0 : Y.call(_);
|
|
19561
19562
|
}
|
|
19562
|
-
}, b = n(3), s = Z(b), v = n(2), h = Z(v), c = n(8), l = Z(c), a = n(23), y = Z(a), m = n(34), u = Z(m), f = n(59), g = Z(f), x = n(60), C = Z(x), w = n(28), A = Z(w),
|
|
19563
|
+
}, b = n(3), s = Z(b), v = n(2), h = Z(v), c = n(8), l = Z(c), a = n(23), y = Z(a), m = n(34), u = Z(m), f = n(59), g = Z(f), x = n(60), C = Z(x), w = n(28), A = Z(w), V = n(61), I = Z(V);
|
|
19563
19564
|
function Z(B) {
|
|
19564
19565
|
return B && B.__esModule ? B : { default: B };
|
|
19565
19566
|
}
|
|
@@ -19567,7 +19568,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
19567
19568
|
if (!(B instanceof R))
|
|
19568
19569
|
throw new TypeError("Cannot call a class as a function");
|
|
19569
19570
|
}
|
|
19570
|
-
function
|
|
19571
|
+
function H(B, R) {
|
|
19571
19572
|
if (!B)
|
|
19572
19573
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
19573
19574
|
return R && (typeof R == "object" || typeof R == "function") ? R : B;
|
|
@@ -19581,7 +19582,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
19581
19582
|
L(R, B);
|
|
19582
19583
|
function R(j, _) {
|
|
19583
19584
|
k(this, R);
|
|
19584
|
-
var N =
|
|
19585
|
+
var N = H(this, (R.__proto__ || Object.getPrototypeOf(R)).call(this, j, _)), W = function Y(J) {
|
|
19585
19586
|
if (!document.body.contains(j.root))
|
|
19586
19587
|
return document.body.removeEventListener("click", Y);
|
|
19587
19588
|
N.tooltip != null && !N.tooltip.root.contains(J.target) && document.activeElement !== N.tooltip.textbox && !N.quill.hasFocus() && N.tooltip.hide(), N.pickers != null && N.pickers.forEach(function(e1) {
|
|
@@ -19666,7 +19667,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
19666
19667
|
L(R, B);
|
|
19667
19668
|
function R(j, _) {
|
|
19668
19669
|
k(this, R);
|
|
19669
|
-
var N =
|
|
19670
|
+
var N = H(this, (R.__proto__ || Object.getPrototypeOf(R)).call(this, j, _));
|
|
19670
19671
|
return N.textbox = N.root.querySelector('input[type="text"]'), N.listen(), N;
|
|
19671
19672
|
}
|
|
19672
19673
|
return d(R, [{
|
|
@@ -19720,7 +19721,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
19720
19721
|
this.textbox.value = "", this.hide();
|
|
19721
19722
|
}
|
|
19722
19723
|
}]), R;
|
|
19723
|
-
}(
|
|
19724
|
+
}(I.default);
|
|
19724
19725
|
function P(B) {
|
|
19725
19726
|
var R = B.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || B.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
|
|
19726
19727
|
return R ? (R[1] || "https") + "://www.youtube.com/embed/" + R[2] + "?showinfo=0" : (R = B.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (R[1] || "https") + "://player.vimeo.com/video/" + R[2] + "/" : B;
|
|
@@ -19861,9 +19862,9 @@ var wl = bl, Yt = { exports: {} };
|
|
|
19861
19862
|
throw new Error("[Parchment] Maximum optimize iterations reached");
|
|
19862
19863
|
for (x.forEach(function(w) {
|
|
19863
19864
|
var A = b.find(w.target, !0);
|
|
19864
|
-
A != null && (A.domNode === w.target && (w.type === "childList" ? (f(b.find(w.previousSibling, !1)), [].forEach.call(w.addedNodes, function(
|
|
19865
|
-
var
|
|
19866
|
-
f(
|
|
19865
|
+
A != null && (A.domNode === w.target && (w.type === "childList" ? (f(b.find(w.previousSibling, !1)), [].forEach.call(w.addedNodes, function(V) {
|
|
19866
|
+
var I = b.find(V, !1);
|
|
19867
|
+
f(I, !1), I instanceof p.default && I.children.forEach(function(Z) {
|
|
19867
19868
|
f(Z, !1);
|
|
19868
19869
|
});
|
|
19869
19870
|
})) : w.type === "attributes" && f(A.prev)), f(A));
|
|
@@ -20135,12 +20136,12 @@ var wl = bl, Yt = { exports: {} };
|
|
|
20135
20136
|
if (C == w)
|
|
20136
20137
|
return C ? [[p, C]] : [];
|
|
20137
20138
|
(A < 0 || C.length < A) && (A = null);
|
|
20138
|
-
var
|
|
20139
|
-
C = C.substring(
|
|
20140
|
-
var Z = C.substring(C.length -
|
|
20141
|
-
C = C.substring(0, C.length -
|
|
20139
|
+
var V = c(C, w), I = C.substring(0, V);
|
|
20140
|
+
C = C.substring(V), w = w.substring(V), V = l(C, w);
|
|
20141
|
+
var Z = C.substring(C.length - V);
|
|
20142
|
+
C = C.substring(0, C.length - V), w = w.substring(0, w.length - V);
|
|
20142
20143
|
var k = s(C, w);
|
|
20143
|
-
return
|
|
20144
|
+
return I && k.unshift([p, I]), Z && k.push([p, Z]), y(k), A != null && (k = f(k, A)), k = g(k), k;
|
|
20144
20145
|
}
|
|
20145
20146
|
function s(C, w) {
|
|
20146
20147
|
var A;
|
|
@@ -20148,35 +20149,35 @@ var wl = bl, Yt = { exports: {} };
|
|
|
20148
20149
|
return [[d, w]];
|
|
20149
20150
|
if (!w)
|
|
20150
20151
|
return [[n, C]];
|
|
20151
|
-
var
|
|
20152
|
+
var V = C.length > w.length ? C : w, I = C.length > w.length ? w : C, Z = V.indexOf(I);
|
|
20152
20153
|
if (Z != -1)
|
|
20153
20154
|
return A = [
|
|
20154
|
-
[d,
|
|
20155
|
-
[p,
|
|
20156
|
-
[d,
|
|
20155
|
+
[d, V.substring(0, Z)],
|
|
20156
|
+
[p, I],
|
|
20157
|
+
[d, V.substring(Z + I.length)]
|
|
20157
20158
|
], C.length > w.length && (A[0][0] = A[2][0] = n), A;
|
|
20158
|
-
if (
|
|
20159
|
+
if (I.length == 1)
|
|
20159
20160
|
return [[n, C], [d, w]];
|
|
20160
20161
|
var k = a(C, w);
|
|
20161
20162
|
if (k) {
|
|
20162
|
-
var
|
|
20163
|
+
var H = k[0], L = k[1], S = k[2], E = k[3], F = k[4], D = b(H, S), z = b(L, E);
|
|
20163
20164
|
return D.concat([[p, F]], z);
|
|
20164
20165
|
}
|
|
20165
20166
|
return v(C, w);
|
|
20166
20167
|
}
|
|
20167
20168
|
function v(C, w) {
|
|
20168
|
-
for (var A = C.length,
|
|
20169
|
-
|
|
20170
|
-
|
|
20171
|
-
for (var E = A -
|
|
20169
|
+
for (var A = C.length, V = w.length, I = Math.ceil((A + V) / 2), Z = I, k = 2 * I, H = new Array(k), L = new Array(k), S = 0; S < k; S++)
|
|
20170
|
+
H[S] = -1, L[S] = -1;
|
|
20171
|
+
H[Z + 1] = 0, L[Z + 1] = 0;
|
|
20172
|
+
for (var E = A - V, F = E % 2 != 0, D = 0, z = 0, Q = 0, X = 0, P = 0; P < I; P++) {
|
|
20172
20173
|
for (var M = -P + D; M <= P - z; M += 2) {
|
|
20173
20174
|
var B = Z + M, R;
|
|
20174
|
-
M == -P || M != P &&
|
|
20175
|
-
for (var j = R - M; R < A && j <
|
|
20175
|
+
M == -P || M != P && H[B - 1] < H[B + 1] ? R = H[B + 1] : R = H[B - 1] + 1;
|
|
20176
|
+
for (var j = R - M; R < A && j < V && C.charAt(R) == w.charAt(j); )
|
|
20176
20177
|
R++, j++;
|
|
20177
|
-
if (
|
|
20178
|
+
if (H[B] = R, R > A)
|
|
20178
20179
|
z += 2;
|
|
20179
|
-
else if (j >
|
|
20180
|
+
else if (j > V)
|
|
20180
20181
|
D += 2;
|
|
20181
20182
|
else if (F) {
|
|
20182
20183
|
var _ = Z + E - M;
|
|
@@ -20190,16 +20191,16 @@ var wl = bl, Yt = { exports: {} };
|
|
|
20190
20191
|
for (var W = -P + Q; W <= P - X; W += 2) {
|
|
20191
20192
|
var _ = Z + W, N;
|
|
20192
20193
|
W == -P || W != P && L[_ - 1] < L[_ + 1] ? N = L[_ + 1] : N = L[_ - 1] + 1;
|
|
20193
|
-
for (var Y = N - W; N < A && Y <
|
|
20194
|
+
for (var Y = N - W; N < A && Y < V && C.charAt(A - N - 1) == w.charAt(V - Y - 1); )
|
|
20194
20195
|
N++, Y++;
|
|
20195
20196
|
if (L[_] = N, N > A)
|
|
20196
20197
|
X += 2;
|
|
20197
|
-
else if (Y >
|
|
20198
|
+
else if (Y > V)
|
|
20198
20199
|
Q += 2;
|
|
20199
20200
|
else if (!F) {
|
|
20200
20201
|
var B = Z + E - W;
|
|
20201
|
-
if (B >= 0 && B < k &&
|
|
20202
|
-
var R =
|
|
20202
|
+
if (B >= 0 && B < k && H[B] != -1) {
|
|
20203
|
+
var R = H[B], j = Z + R - B;
|
|
20203
20204
|
if (N = A - N, R >= N)
|
|
20204
20205
|
return h(C, w, R, j);
|
|
20205
20206
|
}
|
|
@@ -20208,29 +20209,29 @@ var wl = bl, Yt = { exports: {} };
|
|
|
20208
20209
|
}
|
|
20209
20210
|
return [[n, C], [d, w]];
|
|
20210
20211
|
}
|
|
20211
|
-
function h(C, w, A,
|
|
20212
|
-
var
|
|
20212
|
+
function h(C, w, A, V) {
|
|
20213
|
+
var I = C.substring(0, A), Z = w.substring(0, V), k = C.substring(A), H = w.substring(V), L = b(I, Z), S = b(k, H);
|
|
20213
20214
|
return L.concat(S);
|
|
20214
20215
|
}
|
|
20215
20216
|
function c(C, w) {
|
|
20216
20217
|
if (!C || !w || C.charAt(0) != w.charAt(0))
|
|
20217
20218
|
return 0;
|
|
20218
|
-
for (var A = 0,
|
|
20219
|
-
C.substring(Z,
|
|
20220
|
-
return
|
|
20219
|
+
for (var A = 0, V = Math.min(C.length, w.length), I = V, Z = 0; A < I; )
|
|
20220
|
+
C.substring(Z, I) == w.substring(Z, I) ? (A = I, Z = A) : V = I, I = Math.floor((V - A) / 2 + A);
|
|
20221
|
+
return I;
|
|
20221
20222
|
}
|
|
20222
20223
|
function l(C, w) {
|
|
20223
20224
|
if (!C || !w || C.charAt(C.length - 1) != w.charAt(w.length - 1))
|
|
20224
20225
|
return 0;
|
|
20225
|
-
for (var A = 0,
|
|
20226
|
-
C.substring(C.length -
|
|
20227
|
-
return
|
|
20226
|
+
for (var A = 0, V = Math.min(C.length, w.length), I = V, Z = 0; A < I; )
|
|
20227
|
+
C.substring(C.length - I, C.length - Z) == w.substring(w.length - I, w.length - Z) ? (A = I, Z = A) : V = I, I = Math.floor((V - A) / 2 + A);
|
|
20228
|
+
return I;
|
|
20228
20229
|
}
|
|
20229
20230
|
function a(C, w) {
|
|
20230
|
-
var A = C.length > w.length ? C : w,
|
|
20231
|
-
if (A.length < 4 ||
|
|
20231
|
+
var A = C.length > w.length ? C : w, V = C.length > w.length ? w : C;
|
|
20232
|
+
if (A.length < 4 || V.length * 2 < A.length)
|
|
20232
20233
|
return null;
|
|
20233
|
-
function
|
|
20234
|
+
function I(z, Q, X) {
|
|
20234
20235
|
for (var P = z.substring(X, X + Math.floor(z.length / 4)), M = -1, B = "", R, j, _, N; (M = Q.indexOf(P, M + 1)) != -1; ) {
|
|
20235
20236
|
var W = c(
|
|
20236
20237
|
z.substring(X),
|
|
@@ -20249,74 +20250,74 @@ var wl = bl, Yt = { exports: {} };
|
|
|
20249
20250
|
B
|
|
20250
20251
|
] : null;
|
|
20251
20252
|
}
|
|
20252
|
-
var Z =
|
|
20253
|
+
var Z = I(
|
|
20253
20254
|
A,
|
|
20254
|
-
|
|
20255
|
+
V,
|
|
20255
20256
|
Math.ceil(A.length / 4)
|
|
20256
|
-
), k =
|
|
20257
|
+
), k = I(
|
|
20257
20258
|
A,
|
|
20258
|
-
|
|
20259
|
+
V,
|
|
20259
20260
|
Math.ceil(A.length / 2)
|
|
20260
|
-
),
|
|
20261
|
+
), H;
|
|
20261
20262
|
if (!Z && !k)
|
|
20262
20263
|
return null;
|
|
20263
|
-
k ? Z ?
|
|
20264
|
+
k ? Z ? H = Z[4].length > k[4].length ? Z : k : H = k : H = Z;
|
|
20264
20265
|
var L, S, E, F;
|
|
20265
|
-
C.length > w.length ? (L =
|
|
20266
|
-
var D =
|
|
20266
|
+
C.length > w.length ? (L = H[0], S = H[1], E = H[2], F = H[3]) : (E = H[0], F = H[1], L = H[2], S = H[3]);
|
|
20267
|
+
var D = H[4];
|
|
20267
20268
|
return [L, S, E, F, D];
|
|
20268
20269
|
}
|
|
20269
20270
|
function y(C) {
|
|
20270
20271
|
C.push([p, ""]);
|
|
20271
|
-
for (var w = 0, A = 0,
|
|
20272
|
+
for (var w = 0, A = 0, V = 0, I = "", Z = "", k; w < C.length; )
|
|
20272
20273
|
switch (C[w][0]) {
|
|
20273
20274
|
case d:
|
|
20274
|
-
|
|
20275
|
+
V++, Z += C[w][1], w++;
|
|
20275
20276
|
break;
|
|
20276
20277
|
case n:
|
|
20277
|
-
A++,
|
|
20278
|
+
A++, I += C[w][1], w++;
|
|
20278
20279
|
break;
|
|
20279
20280
|
case p:
|
|
20280
|
-
A +
|
|
20281
|
+
A + V > 1 ? (A !== 0 && V !== 0 && (k = c(Z, I), k !== 0 && (w - A - V > 0 && C[w - A - V - 1][0] == p ? C[w - A - V - 1][1] += Z.substring(0, k) : (C.splice(0, 0, [
|
|
20281
20282
|
p,
|
|
20282
20283
|
Z.substring(0, k)
|
|
20283
|
-
]), w++), Z = Z.substring(k),
|
|
20284
|
-
w -
|
|
20285
|
-
A +
|
|
20284
|
+
]), w++), Z = Z.substring(k), I = I.substring(k)), k = l(Z, I), k !== 0 && (C[w][1] = Z.substring(Z.length - k) + C[w][1], Z = Z.substring(0, Z.length - k), I = I.substring(0, I.length - k))), A === 0 ? C.splice(
|
|
20285
|
+
w - V,
|
|
20286
|
+
A + V,
|
|
20286
20287
|
[d, Z]
|
|
20287
|
-
) :
|
|
20288
|
+
) : V === 0 ? C.splice(
|
|
20288
20289
|
w - A,
|
|
20289
|
-
A +
|
|
20290
|
-
[n,
|
|
20290
|
+
A + V,
|
|
20291
|
+
[n, I]
|
|
20291
20292
|
) : C.splice(
|
|
20292
|
-
w - A -
|
|
20293
|
-
A +
|
|
20294
|
-
[n,
|
|
20293
|
+
w - A - V,
|
|
20294
|
+
A + V,
|
|
20295
|
+
[n, I],
|
|
20295
20296
|
[d, Z]
|
|
20296
|
-
), w = w - A -
|
|
20297
|
+
), w = w - A - V + (A ? 1 : 0) + (V ? 1 : 0) + 1) : w !== 0 && C[w - 1][0] == p ? (C[w - 1][1] += C[w][1], C.splice(w, 1)) : w++, V = 0, A = 0, I = "", Z = "";
|
|
20297
20298
|
break;
|
|
20298
20299
|
}
|
|
20299
20300
|
C[C.length - 1][1] === "" && C.pop();
|
|
20300
|
-
var
|
|
20301
|
+
var H = !1;
|
|
20301
20302
|
for (w = 1; w < C.length - 1; )
|
|
20302
|
-
C[w - 1][0] == p && C[w + 1][0] == p && (C[w][1].substring(C[w][1].length - C[w - 1][1].length) == C[w - 1][1] ? (C[w][1] = C[w - 1][1] + C[w][1].substring(0, C[w][1].length - C[w - 1][1].length), C[w + 1][1] = C[w - 1][1] + C[w + 1][1], C.splice(w - 1, 1),
|
|
20303
|
-
|
|
20303
|
+
C[w - 1][0] == p && C[w + 1][0] == p && (C[w][1].substring(C[w][1].length - C[w - 1][1].length) == C[w - 1][1] ? (C[w][1] = C[w - 1][1] + C[w][1].substring(0, C[w][1].length - C[w - 1][1].length), C[w + 1][1] = C[w - 1][1] + C[w + 1][1], C.splice(w - 1, 1), H = !0) : C[w][1].substring(0, C[w + 1][1].length) == C[w + 1][1] && (C[w - 1][1] += C[w + 1][1], C[w][1] = C[w][1].substring(C[w + 1][1].length) + C[w + 1][1], C.splice(w + 1, 1), H = !0)), w++;
|
|
20304
|
+
H && y(C);
|
|
20304
20305
|
}
|
|
20305
20306
|
var m = b;
|
|
20306
20307
|
m.INSERT = d, m.DELETE = n, m.EQUAL = p, i.exports = m;
|
|
20307
20308
|
function u(C, w) {
|
|
20308
20309
|
if (w === 0)
|
|
20309
20310
|
return [p, C];
|
|
20310
|
-
for (var A = 0,
|
|
20311
|
-
var
|
|
20312
|
-
if (
|
|
20313
|
-
var Z = A +
|
|
20311
|
+
for (var A = 0, V = 0; V < C.length; V++) {
|
|
20312
|
+
var I = C[V];
|
|
20313
|
+
if (I[0] === n || I[0] === p) {
|
|
20314
|
+
var Z = A + I[1].length;
|
|
20314
20315
|
if (w === Z)
|
|
20315
|
-
return [
|
|
20316
|
+
return [V + 1, C];
|
|
20316
20317
|
if (w < Z) {
|
|
20317
20318
|
C = C.slice();
|
|
20318
|
-
var k = w - A,
|
|
20319
|
-
return C.splice(
|
|
20319
|
+
var k = w - A, H = [I[0], I[1].slice(0, k)], L = [I[0], I[1].slice(k)];
|
|
20320
|
+
return C.splice(V, 1, H, L), [V + 1, C];
|
|
20320
20321
|
} else
|
|
20321
20322
|
A = Z;
|
|
20322
20323
|
}
|
|
@@ -20324,38 +20325,38 @@ var wl = bl, Yt = { exports: {} };
|
|
|
20324
20325
|
throw new Error("cursor_pos is out of bounds!");
|
|
20325
20326
|
}
|
|
20326
20327
|
function f(C, w) {
|
|
20327
|
-
var A = u(C, w),
|
|
20328
|
+
var A = u(C, w), V = A[1], I = A[0], Z = V[I], k = V[I + 1];
|
|
20328
20329
|
if (Z == null)
|
|
20329
20330
|
return C;
|
|
20330
20331
|
if (Z[0] !== p)
|
|
20331
20332
|
return C;
|
|
20332
20333
|
if (k != null && Z[1] + k[1] === k[1] + Z[1])
|
|
20333
|
-
return
|
|
20334
|
+
return V.splice(I, 2, k, Z), x(V, I, 2);
|
|
20334
20335
|
if (k != null && k[1].indexOf(Z[1]) === 0) {
|
|
20335
|
-
|
|
20336
|
-
var
|
|
20337
|
-
return
|
|
20336
|
+
V.splice(I, 2, [k[0], Z[1]], [0, Z[1]]);
|
|
20337
|
+
var H = k[1].slice(Z[1].length);
|
|
20338
|
+
return H.length > 0 && V.splice(I + 2, 0, [k[0], H]), x(V, I, 3);
|
|
20338
20339
|
} else
|
|
20339
20340
|
return C;
|
|
20340
20341
|
}
|
|
20341
20342
|
function g(C) {
|
|
20342
20343
|
for (var w = !1, A = function(k) {
|
|
20343
20344
|
return k.charCodeAt(0) >= 56320 && k.charCodeAt(0) <= 57343;
|
|
20344
|
-
},
|
|
20345
|
+
}, V = function(k) {
|
|
20345
20346
|
return k.charCodeAt(k.length - 1) >= 55296 && k.charCodeAt(k.length - 1) <= 56319;
|
|
20346
|
-
},
|
|
20347
|
-
C[
|
|
20347
|
+
}, I = 2; I < C.length; I += 1)
|
|
20348
|
+
C[I - 2][0] === p && V(C[I - 2][1]) && C[I - 1][0] === n && A(C[I - 1][1]) && C[I][0] === d && A(C[I][1]) && (w = !0, C[I - 1][1] = C[I - 2][1].slice(-1) + C[I - 1][1], C[I][1] = C[I - 2][1].slice(-1) + C[I][1], C[I - 2][1] = C[I - 2][1].slice(0, -1));
|
|
20348
20349
|
if (!w)
|
|
20349
20350
|
return C;
|
|
20350
|
-
for (var Z = [],
|
|
20351
|
-
C[
|
|
20351
|
+
for (var Z = [], I = 0; I < C.length; I += 1)
|
|
20352
|
+
C[I][1].length > 0 && Z.push(C[I]);
|
|
20352
20353
|
return Z;
|
|
20353
20354
|
}
|
|
20354
20355
|
function x(C, w, A) {
|
|
20355
|
-
for (var
|
|
20356
|
-
if (
|
|
20357
|
-
var
|
|
20358
|
-
|
|
20356
|
+
for (var V = w + A - 1; V >= 0 && V >= w - 1; V--)
|
|
20357
|
+
if (V + 1 < C.length) {
|
|
20358
|
+
var I = C[V], Z = C[V + 1];
|
|
20359
|
+
I[0] === Z[1] && C.splice(V, 2, [I[0], I[1] + Z[1]]);
|
|
20359
20360
|
}
|
|
20360
20361
|
return C;
|
|
20361
20362
|
}
|
|
@@ -20537,7 +20538,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
20537
20538
|
return function($, t1, i1) {
|
|
20538
20539
|
return t1 && U($.prototype, t1), i1 && U($, i1), $;
|
|
20539
20540
|
};
|
|
20540
|
-
}(), s = n(3), v = L(s), h = n(2), c = L(h), l = n(0), a = L(l), y = n(5), m = L(y), u = n(10), f = L(u), g = n(9), x = L(g), C = n(36), w = n(37), A = n(13),
|
|
20541
|
+
}(), s = n(3), v = L(s), h = n(2), c = L(h), l = n(0), a = L(l), y = n(5), m = L(y), u = n(10), f = L(u), g = n(9), x = L(g), C = n(36), w = n(37), A = n(13), V = L(A), I = n(26), Z = n(38), k = n(39), H = n(40);
|
|
20541
20542
|
function L(U) {
|
|
20542
20543
|
return U && U.__esModule ? U : { default: U };
|
|
20543
20544
|
}
|
|
@@ -20560,7 +20561,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
20560
20561
|
}
|
|
20561
20562
|
var z = (0, f.default)("quill:clipboard"), Q = "__ql-matcher", X = [[Node.TEXT_NODE, C1], [Node.TEXT_NODE, m1], ["br", s1], [Node.ELEMENT_NODE, m1], [Node.ELEMENT_NODE, e1], [Node.ELEMENT_NODE, q], [Node.ELEMENT_NODE, J], [Node.ELEMENT_NODE, o1], ["li", p1], ["b", Y.bind(Y, "bold")], ["i", Y.bind(Y, "italic")], ["style", f1]], P = [C.AlignAttribute, Z.DirectionAttribute].reduce(function(U, $) {
|
|
20562
20563
|
return U[$.keyName] = $, U;
|
|
20563
|
-
}, {}), M = [C.AlignStyle, w.BackgroundStyle,
|
|
20564
|
+
}, {}), M = [C.AlignStyle, w.BackgroundStyle, I.ColorStyle, Z.DirectionStyle, k.FontStyle, H.SizeStyle].reduce(function(U, $) {
|
|
20564
20565
|
return U[$.keyName] = $, U;
|
|
20565
20566
|
}, {}), B = function(U) {
|
|
20566
20567
|
D($, U);
|
|
@@ -20583,9 +20584,9 @@ var wl = bl, Yt = { exports: {} };
|
|
|
20583
20584
|
if (typeof i1 == "string")
|
|
20584
20585
|
return this.container.innerHTML = i1.replace(/\>\r?\n +\</g, "><"), this.convert();
|
|
20585
20586
|
var n1 = this.quill.getFormat(this.quill.selection.savedRange.index);
|
|
20586
|
-
if (n1[
|
|
20587
|
+
if (n1[V.default.blotName]) {
|
|
20587
20588
|
var l1 = this.container.innerText;
|
|
20588
|
-
return this.container.innerHTML = "", new c.default().insert(l1, S({},
|
|
20589
|
+
return this.container.innerHTML = "", new c.default().insert(l1, S({}, V.default.blotName, n1[V.default.blotName]));
|
|
20589
20590
|
}
|
|
20590
20591
|
var u1 = this.prepareMatching(), d1 = p(u1, 2), h1 = d1[0], g1 = d1[1], H1 = W(this.container, h1, g1);
|
|
20591
20592
|
return _(H1, `
|
|
@@ -20830,7 +20831,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
20830
20831
|
value: !0
|
|
20831
20832
|
}), r.addControls = r.default = void 0;
|
|
20832
20833
|
var d = function() {
|
|
20833
|
-
function
|
|
20834
|
+
function H(L, S) {
|
|
20834
20835
|
var E = [], F = !0, D = !1, z = void 0;
|
|
20835
20836
|
try {
|
|
20836
20837
|
for (var Q = L[Symbol.iterator](), X; !(F = (X = Q.next()).done) && (E.push(X.value), !(S && E.length === S)); F = !0)
|
|
@@ -20851,42 +20852,42 @@ var wl = bl, Yt = { exports: {} };
|
|
|
20851
20852
|
if (Array.isArray(L))
|
|
20852
20853
|
return L;
|
|
20853
20854
|
if (Symbol.iterator in Object(L))
|
|
20854
|
-
return
|
|
20855
|
+
return H(L, S);
|
|
20855
20856
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
20856
20857
|
};
|
|
20857
20858
|
}(), p = function() {
|
|
20858
|
-
function
|
|
20859
|
+
function H(L, S) {
|
|
20859
20860
|
for (var E = 0; E < S.length; E++) {
|
|
20860
20861
|
var F = S[E];
|
|
20861
20862
|
F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(L, F.key, F);
|
|
20862
20863
|
}
|
|
20863
20864
|
}
|
|
20864
20865
|
return function(L, S, E) {
|
|
20865
|
-
return S &&
|
|
20866
|
+
return S && H(L.prototype, S), E && H(L, E), L;
|
|
20866
20867
|
};
|
|
20867
20868
|
}(), b = n(2), s = f(b), v = n(0), h = f(v), c = n(5), l = f(c), a = n(10), y = f(a), m = n(9), u = f(m);
|
|
20868
|
-
function f(
|
|
20869
|
-
return
|
|
20869
|
+
function f(H) {
|
|
20870
|
+
return H && H.__esModule ? H : { default: H };
|
|
20870
20871
|
}
|
|
20871
|
-
function g(
|
|
20872
|
-
return L in
|
|
20872
|
+
function g(H, L, S) {
|
|
20873
|
+
return L in H ? Object.defineProperty(H, L, { value: S, enumerable: !0, configurable: !0, writable: !0 }) : H[L] = S, H;
|
|
20873
20874
|
}
|
|
20874
|
-
function x(
|
|
20875
|
-
if (!(
|
|
20875
|
+
function x(H, L) {
|
|
20876
|
+
if (!(H instanceof L))
|
|
20876
20877
|
throw new TypeError("Cannot call a class as a function");
|
|
20877
20878
|
}
|
|
20878
|
-
function C(
|
|
20879
|
-
if (!
|
|
20879
|
+
function C(H, L) {
|
|
20880
|
+
if (!H)
|
|
20880
20881
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
20881
|
-
return L && (typeof L == "object" || typeof L == "function") ? L :
|
|
20882
|
+
return L && (typeof L == "object" || typeof L == "function") ? L : H;
|
|
20882
20883
|
}
|
|
20883
|
-
function w(
|
|
20884
|
+
function w(H, L) {
|
|
20884
20885
|
if (typeof L != "function" && L !== null)
|
|
20885
20886
|
throw new TypeError("Super expression must either be null or a function, not " + typeof L);
|
|
20886
|
-
|
|
20887
|
+
H.prototype = Object.create(L && L.prototype, { constructor: { value: H, enumerable: !1, writable: !0, configurable: !0 } }), L && (Object.setPrototypeOf ? Object.setPrototypeOf(H, L) : H.__proto__ = L);
|
|
20887
20888
|
}
|
|
20888
|
-
var A = (0, y.default)("quill:toolbar"),
|
|
20889
|
-
w(L,
|
|
20889
|
+
var A = (0, y.default)("quill:toolbar"), V = function(H) {
|
|
20890
|
+
w(L, H);
|
|
20890
20891
|
function L(S, E) {
|
|
20891
20892
|
x(this, L);
|
|
20892
20893
|
var F = C(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, S, E));
|
|
@@ -20984,32 +20985,32 @@ var wl = bl, Yt = { exports: {} };
|
|
|
20984
20985
|
}
|
|
20985
20986
|
}]), L;
|
|
20986
20987
|
}(u.default);
|
|
20987
|
-
|
|
20988
|
-
function H
|
|
20988
|
+
V.DEFAULTS = {};
|
|
20989
|
+
function I(H, L, S) {
|
|
20989
20990
|
var E = document.createElement("button");
|
|
20990
|
-
E.setAttribute("type", "button"), E.classList.add("ql-" + L), S != null && (E.value = S),
|
|
20991
|
+
E.setAttribute("type", "button"), E.classList.add("ql-" + L), S != null && (E.value = S), H.appendChild(E);
|
|
20991
20992
|
}
|
|
20992
|
-
function Z(
|
|
20993
|
+
function Z(H, L) {
|
|
20993
20994
|
Array.isArray(L[0]) || (L = [L]), L.forEach(function(S) {
|
|
20994
20995
|
var E = document.createElement("span");
|
|
20995
20996
|
E.classList.add("ql-formats"), S.forEach(function(F) {
|
|
20996
20997
|
if (typeof F == "string")
|
|
20997
|
-
|
|
20998
|
+
I(E, F);
|
|
20998
20999
|
else {
|
|
20999
21000
|
var D = Object.keys(F)[0], z = F[D];
|
|
21000
|
-
Array.isArray(z) ? k(E, D, z) :
|
|
21001
|
+
Array.isArray(z) ? k(E, D, z) : I(E, D, z);
|
|
21001
21002
|
}
|
|
21002
|
-
}),
|
|
21003
|
+
}), H.appendChild(E);
|
|
21003
21004
|
});
|
|
21004
21005
|
}
|
|
21005
|
-
function k(
|
|
21006
|
+
function k(H, L, S) {
|
|
21006
21007
|
var E = document.createElement("select");
|
|
21007
21008
|
E.classList.add("ql-" + L), S.forEach(function(F) {
|
|
21008
21009
|
var D = document.createElement("option");
|
|
21009
21010
|
F !== !1 ? D.setAttribute("value", F) : D.setAttribute("selected", "selected"), E.appendChild(D);
|
|
21010
|
-
}),
|
|
21011
|
+
}), H.appendChild(E);
|
|
21011
21012
|
}
|
|
21012
|
-
|
|
21013
|
+
V.DEFAULTS = {
|
|
21013
21014
|
container: null,
|
|
21014
21015
|
handlers: {
|
|
21015
21016
|
clean: function() {
|
|
@@ -21042,7 +21043,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
21042
21043
|
L === "check" ? E.list === "checked" || E.list === "unchecked" ? this.quill.format("list", !1, l.default.sources.USER) : this.quill.format("list", "unchecked", l.default.sources.USER) : this.quill.format("list", L, l.default.sources.USER);
|
|
21043
21044
|
}
|
|
21044
21045
|
}
|
|
21045
|
-
}, r.default =
|
|
21046
|
+
}, r.default = V, r.addControls = Z;
|
|
21046
21047
|
},
|
|
21047
21048
|
/* 58 */
|
|
21048
21049
|
/***/
|
|
@@ -21246,10 +21247,10 @@ var wl = bl, Yt = { exports: {} };
|
|
|
21246
21247
|
value: !0
|
|
21247
21248
|
});
|
|
21248
21249
|
var d = function() {
|
|
21249
|
-
function k(
|
|
21250
|
+
function k(H, L) {
|
|
21250
21251
|
var S = [], E = !0, F = !1, D = void 0;
|
|
21251
21252
|
try {
|
|
21252
|
-
for (var z =
|
|
21253
|
+
for (var z = H[Symbol.iterator](), Q; !(E = (Q = z.next()).done) && (S.push(Q.value), !(L && S.length === L)); E = !0)
|
|
21253
21254
|
;
|
|
21254
21255
|
} catch (X) {
|
|
21255
21256
|
F = !0, D = X;
|
|
@@ -21263,18 +21264,18 @@ var wl = bl, Yt = { exports: {} };
|
|
|
21263
21264
|
}
|
|
21264
21265
|
return S;
|
|
21265
21266
|
}
|
|
21266
|
-
return function(
|
|
21267
|
-
if (Array.isArray(
|
|
21268
|
-
return
|
|
21269
|
-
if (Symbol.iterator in Object(
|
|
21270
|
-
return k(
|
|
21267
|
+
return function(H, L) {
|
|
21268
|
+
if (Array.isArray(H))
|
|
21269
|
+
return H;
|
|
21270
|
+
if (Symbol.iterator in Object(H))
|
|
21271
|
+
return k(H, L);
|
|
21271
21272
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
21272
21273
|
};
|
|
21273
|
-
}(), p = function k(
|
|
21274
|
-
|
|
21275
|
-
var E = Object.getOwnPropertyDescriptor(
|
|
21274
|
+
}(), p = function k(H, L, S) {
|
|
21275
|
+
H === null && (H = Function.prototype);
|
|
21276
|
+
var E = Object.getOwnPropertyDescriptor(H, L);
|
|
21276
21277
|
if (E === void 0) {
|
|
21277
|
-
var F = Object.getPrototypeOf(
|
|
21278
|
+
var F = Object.getPrototypeOf(H);
|
|
21278
21279
|
return F === null ? void 0 : k(F, L, S);
|
|
21279
21280
|
} else {
|
|
21280
21281
|
if ("value" in E)
|
|
@@ -21283,55 +21284,55 @@ var wl = bl, Yt = { exports: {} };
|
|
|
21283
21284
|
return D === void 0 ? void 0 : D.call(S);
|
|
21284
21285
|
}
|
|
21285
21286
|
}, b = function() {
|
|
21286
|
-
function k(
|
|
21287
|
+
function k(H, L) {
|
|
21287
21288
|
for (var S = 0; S < L.length; S++) {
|
|
21288
21289
|
var E = L[S];
|
|
21289
|
-
E.enumerable = E.enumerable || !1, E.configurable = !0, "value" in E && (E.writable = !0), Object.defineProperty(
|
|
21290
|
+
E.enumerable = E.enumerable || !1, E.configurable = !0, "value" in E && (E.writable = !0), Object.defineProperty(H, E.key, E);
|
|
21290
21291
|
}
|
|
21291
21292
|
}
|
|
21292
|
-
return function(
|
|
21293
|
-
return L && k(
|
|
21293
|
+
return function(H, L, S) {
|
|
21294
|
+
return L && k(H.prototype, L), S && k(H, S), H;
|
|
21294
21295
|
};
|
|
21295
21296
|
}(), s = n(3), v = x(s), h = n(8), c = x(h), l = n(43), a = x(l), y = n(27), m = x(y), u = n(15), f = n(41), g = x(f);
|
|
21296
21297
|
function x(k) {
|
|
21297
21298
|
return k && k.__esModule ? k : { default: k };
|
|
21298
21299
|
}
|
|
21299
|
-
function C(k,
|
|
21300
|
-
if (!(k instanceof
|
|
21300
|
+
function C(k, H) {
|
|
21301
|
+
if (!(k instanceof H))
|
|
21301
21302
|
throw new TypeError("Cannot call a class as a function");
|
|
21302
21303
|
}
|
|
21303
|
-
function w(k,
|
|
21304
|
+
function w(k, H) {
|
|
21304
21305
|
if (!k)
|
|
21305
21306
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
21306
|
-
return
|
|
21307
|
+
return H && (typeof H == "object" || typeof H == "function") ? H : k;
|
|
21307
21308
|
}
|
|
21308
|
-
function A(k,
|
|
21309
|
-
if (typeof
|
|
21310
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
21311
|
-
k.prototype = Object.create(
|
|
21309
|
+
function A(k, H) {
|
|
21310
|
+
if (typeof H != "function" && H !== null)
|
|
21311
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof H);
|
|
21312
|
+
k.prototype = Object.create(H && H.prototype, { constructor: { value: k, enumerable: !1, writable: !0, configurable: !0 } }), H && (Object.setPrototypeOf ? Object.setPrototypeOf(k, H) : k.__proto__ = H);
|
|
21312
21313
|
}
|
|
21313
|
-
var
|
|
21314
|
-
A(
|
|
21315
|
-
function
|
|
21316
|
-
C(this,
|
|
21317
|
-
var E = w(this, (
|
|
21314
|
+
var V = [[{ header: ["1", "2", "3", !1] }], ["bold", "italic", "underline", "link"], [{ list: "ordered" }, { list: "bullet" }], ["clean"]], I = function(k) {
|
|
21315
|
+
A(H, k);
|
|
21316
|
+
function H(L, S) {
|
|
21317
|
+
C(this, H), S.modules.toolbar != null && S.modules.toolbar.container == null && (S.modules.toolbar.container = V);
|
|
21318
|
+
var E = w(this, (H.__proto__ || Object.getPrototypeOf(H)).call(this, L, S));
|
|
21318
21319
|
return E.quill.container.classList.add("ql-snow"), E;
|
|
21319
21320
|
}
|
|
21320
|
-
return b(
|
|
21321
|
+
return b(H, [{
|
|
21321
21322
|
key: "extendToolbar",
|
|
21322
21323
|
value: function(S) {
|
|
21323
21324
|
S.container.classList.add("ql-snow"), this.buildButtons([].slice.call(S.container.querySelectorAll("button")), g.default), this.buildPickers([].slice.call(S.container.querySelectorAll("select")), g.default), this.tooltip = new Z(this.quill, this.options.bounds), S.container.querySelector(".ql-link") && this.quill.keyboard.addBinding({ key: "K", shortKey: !0 }, function(E, F) {
|
|
21324
21325
|
S.handlers.link.call(S, !F.format.link);
|
|
21325
21326
|
});
|
|
21326
21327
|
}
|
|
21327
|
-
}]),
|
|
21328
|
+
}]), H;
|
|
21328
21329
|
}(a.default);
|
|
21329
|
-
|
|
21330
|
+
I.DEFAULTS = (0, v.default)(!0, {}, a.default.DEFAULTS, {
|
|
21330
21331
|
modules: {
|
|
21331
21332
|
toolbar: {
|
|
21332
21333
|
handlers: {
|
|
21333
|
-
link: function(
|
|
21334
|
-
if (
|
|
21334
|
+
link: function(H) {
|
|
21335
|
+
if (H) {
|
|
21335
21336
|
var L = this.quill.getSelection();
|
|
21336
21337
|
if (L == null || L.length == 0)
|
|
21337
21338
|
return;
|
|
@@ -21347,17 +21348,17 @@ var wl = bl, Yt = { exports: {} };
|
|
|
21347
21348
|
}
|
|
21348
21349
|
});
|
|
21349
21350
|
var Z = function(k) {
|
|
21350
|
-
A(
|
|
21351
|
-
function
|
|
21352
|
-
C(this,
|
|
21353
|
-
var E = w(this, (
|
|
21351
|
+
A(H, k);
|
|
21352
|
+
function H(L, S) {
|
|
21353
|
+
C(this, H);
|
|
21354
|
+
var E = w(this, (H.__proto__ || Object.getPrototypeOf(H)).call(this, L, S));
|
|
21354
21355
|
return E.preview = E.root.querySelector("a.ql-preview"), E;
|
|
21355
21356
|
}
|
|
21356
|
-
return b(
|
|
21357
|
+
return b(H, [{
|
|
21357
21358
|
key: "listen",
|
|
21358
21359
|
value: function() {
|
|
21359
21360
|
var S = this;
|
|
21360
|
-
p(
|
|
21361
|
+
p(H.prototype.__proto__ || Object.getPrototypeOf(H.prototype), "listen", this).call(this), this.root.querySelector("a.ql-action").addEventListener("click", function(E) {
|
|
21361
21362
|
S.root.classList.contains("ql-editing") ? S.save() : S.edit("link", S.preview.textContent), E.preventDefault();
|
|
21362
21363
|
}), this.root.querySelector("a.ql-remove").addEventListener("click", function(E) {
|
|
21363
21364
|
if (S.linkRange != null) {
|
|
@@ -21384,11 +21385,11 @@ var wl = bl, Yt = { exports: {} };
|
|
|
21384
21385
|
}, {
|
|
21385
21386
|
key: "show",
|
|
21386
21387
|
value: function() {
|
|
21387
|
-
p(
|
|
21388
|
+
p(H.prototype.__proto__ || Object.getPrototypeOf(H.prototype), "show", this).call(this), this.root.removeAttribute("data-mode");
|
|
21388
21389
|
}
|
|
21389
|
-
}]),
|
|
21390
|
+
}]), H;
|
|
21390
21391
|
}(l.BaseTooltip);
|
|
21391
|
-
Z.TEMPLATE = ['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""), r.default =
|
|
21392
|
+
Z.TEMPLATE = ['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""), r.default = I;
|
|
21392
21393
|
},
|
|
21393
21394
|
/* 63 */
|
|
21394
21395
|
/***/
|
|
@@ -21396,7 +21397,7 @@ var wl = bl, Yt = { exports: {} };
|
|
|
21396
21397
|
Object.defineProperty(r, "__esModule", {
|
|
21397
21398
|
value: !0
|
|
21398
21399
|
});
|
|
21399
|
-
var d = n(29), p = n1(d), b = n(36), s = n(38), v = n(64), h = n(65), c = n1(h), l = n(66), a = n1(l), y = n(67), m = n1(y), u = n(37), f = n(26), g = n(39), x = n(40), C = n(56), w = n1(C), A = n(68),
|
|
21400
|
+
var d = n(29), p = n1(d), b = n(36), s = n(38), v = n(64), h = n(65), c = n1(h), l = n(66), a = n1(l), y = n(67), m = n1(y), u = n(37), f = n(26), g = n(39), x = n(40), C = n(56), w = n1(C), A = n(68), V = n1(A), I = n(27), Z = n1(I), k = n(69), H = n1(k), L = n(70), S = n1(L), E = n(71), F = n1(E), D = n(72), z = n1(D), Q = n(73), X = n1(Q), P = n(13), M = n1(P), B = n(74), R = n1(B), j = n(75), _ = n1(j), N = n(57), W = n1(N), Y = n(41), J = n1(Y), e1 = n(28), s1 = n1(e1), f1 = n(59), p1 = n1(f1), m1 = n(60), q = n1(m1), o1 = n(61), C1 = n1(o1), U = n(108), $ = n1(U), t1 = n(62), i1 = n1(t1);
|
|
21400
21401
|
function n1(l1) {
|
|
21401
21402
|
return l1 && l1.__esModule ? l1 : { default: l1 };
|
|
21402
21403
|
}
|
|
@@ -21428,9 +21429,9 @@ var wl = bl, Yt = { exports: {} };
|
|
|
21428
21429
|
"formats/list": m.default,
|
|
21429
21430
|
"formats/bold": w.default,
|
|
21430
21431
|
"formats/code": P.Code,
|
|
21431
|
-
"formats/italic":
|
|
21432
|
+
"formats/italic": V.default,
|
|
21432
21433
|
"formats/link": Z.default,
|
|
21433
|
-
"formats/script":
|
|
21434
|
+
"formats/script": H.default,
|
|
21434
21435
|
"formats/strike": S.default,
|
|
21435
21436
|
"formats/underline": F.default,
|
|
21436
21437
|
"formats/image": z.default,
|
|
@@ -21614,25 +21615,25 @@ var wl = bl, Yt = { exports: {} };
|
|
|
21614
21615
|
}), r.default = r.ListItem = void 0;
|
|
21615
21616
|
var d = function() {
|
|
21616
21617
|
function C(w, A) {
|
|
21617
|
-
for (var
|
|
21618
|
-
var
|
|
21619
|
-
|
|
21618
|
+
for (var V = 0; V < A.length; V++) {
|
|
21619
|
+
var I = A[V];
|
|
21620
|
+
I.enumerable = I.enumerable || !1, I.configurable = !0, "value" in I && (I.writable = !0), Object.defineProperty(w, I.key, I);
|
|
21620
21621
|
}
|
|
21621
21622
|
}
|
|
21622
|
-
return function(w, A,
|
|
21623
|
-
return A && C(w.prototype, A),
|
|
21623
|
+
return function(w, A, V) {
|
|
21624
|
+
return A && C(w.prototype, A), V && C(w, V), w;
|
|
21624
21625
|
};
|
|
21625
|
-
}(), p = function C(w, A,
|
|
21626
|
+
}(), p = function C(w, A, V) {
|
|
21626
21627
|
w === null && (w = Function.prototype);
|
|
21627
|
-
var
|
|
21628
|
-
if (
|
|
21628
|
+
var I = Object.getOwnPropertyDescriptor(w, A);
|
|
21629
|
+
if (I === void 0) {
|
|
21629
21630
|
var Z = Object.getPrototypeOf(w);
|
|
21630
|
-
return Z === null ? void 0 : C(Z, A,
|
|
21631
|
+
return Z === null ? void 0 : C(Z, A, V);
|
|
21631
21632
|
} else {
|
|
21632
|
-
if ("value" in
|
|
21633
|
-
return
|
|
21634
|
-
var k =
|
|
21635
|
-
return k === void 0 ? void 0 : k.call(
|
|
21633
|
+
if ("value" in I)
|
|
21634
|
+
return I.value;
|
|
21635
|
+
var k = I.get;
|
|
21636
|
+
return k === void 0 ? void 0 : k.call(V);
|
|
21636
21637
|
}
|
|
21637
21638
|
}, b = n(0), s = a(b), v = n(4), h = a(v), c = n(25), l = a(c);
|
|
21638
21639
|
function a(C) {
|
|
@@ -21662,8 +21663,8 @@ var wl = bl, Yt = { exports: {} };
|
|
|
21662
21663
|
}
|
|
21663
21664
|
return d(w, [{
|
|
21664
21665
|
key: "format",
|
|
21665
|
-
value: function(
|
|
21666
|
-
|
|
21666
|
+
value: function(V, I) {
|
|
21667
|
+
V === x.blotName && !I ? this.replaceWith(s.default.create(this.statics.scope)) : p(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "format", this).call(this, V, I);
|
|
21667
21668
|
}
|
|
21668
21669
|
}, {
|
|
21669
21670
|
key: "remove",
|
|
@@ -21672,13 +21673,13 @@ var wl = bl, Yt = { exports: {} };
|
|
|
21672
21673
|
}
|
|
21673
21674
|
}, {
|
|
21674
21675
|
key: "replaceWith",
|
|
21675
|
-
value: function(
|
|
21676
|
-
return this.parent.isolate(this.offset(this.parent), this.length()),
|
|
21676
|
+
value: function(V, I) {
|
|
21677
|
+
return this.parent.isolate(this.offset(this.parent), this.length()), V === this.parent.statics.blotName ? (this.parent.replaceWith(V, I), this) : (this.parent.unwrap(), p(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "replaceWith", this).call(this, V, I));
|
|
21677
21678
|
}
|
|
21678
21679
|
}], [{
|
|
21679
21680
|
key: "formats",
|
|
21680
|
-
value: function(
|
|
21681
|
-
return
|
|
21681
|
+
value: function(V) {
|
|
21682
|
+
return V.tagName === this.tagName ? void 0 : p(w.__proto__ || Object.getPrototypeOf(w), "formats", this).call(this, V);
|
|
21682
21683
|
}
|
|
21683
21684
|
}]), w;
|
|
21684
21685
|
}(h.default);
|
|
@@ -21686,33 +21687,33 @@ var wl = bl, Yt = { exports: {} };
|
|
|
21686
21687
|
var x = function(C) {
|
|
21687
21688
|
f(w, C), d(w, null, [{
|
|
21688
21689
|
key: "create",
|
|
21689
|
-
value: function(
|
|
21690
|
-
var
|
|
21691
|
-
return (
|
|
21690
|
+
value: function(V) {
|
|
21691
|
+
var I = V === "ordered" ? "OL" : "UL", Z = p(w.__proto__ || Object.getPrototypeOf(w), "create", this).call(this, I);
|
|
21692
|
+
return (V === "checked" || V === "unchecked") && Z.setAttribute("data-checked", V === "checked"), Z;
|
|
21692
21693
|
}
|
|
21693
21694
|
}, {
|
|
21694
21695
|
key: "formats",
|
|
21695
|
-
value: function(
|
|
21696
|
-
if (
|
|
21696
|
+
value: function(V) {
|
|
21697
|
+
if (V.tagName === "OL")
|
|
21697
21698
|
return "ordered";
|
|
21698
|
-
if (
|
|
21699
|
-
return
|
|
21699
|
+
if (V.tagName === "UL")
|
|
21700
|
+
return V.hasAttribute("data-checked") ? V.getAttribute("data-checked") === "true" ? "checked" : "unchecked" : "bullet";
|
|
21700
21701
|
}
|
|
21701
21702
|
}]);
|
|
21702
21703
|
function w(A) {
|
|
21703
21704
|
m(this, w);
|
|
21704
|
-
var
|
|
21705
|
+
var V = u(this, (w.__proto__ || Object.getPrototypeOf(w)).call(this, A)), I = function(k) {
|
|
21705
21706
|
if (k.target.parentNode === A) {
|
|
21706
|
-
var
|
|
21707
|
-
|
|
21707
|
+
var H = V.statics.formats(A), L = s.default.find(k.target);
|
|
21708
|
+
H === "checked" ? L.format("list", "unchecked") : H === "unchecked" && L.format("list", "checked");
|
|
21708
21709
|
}
|
|
21709
21710
|
};
|
|
21710
|
-
return A.addEventListener("touchstart",
|
|
21711
|
+
return A.addEventListener("touchstart", I), A.addEventListener("mousedown", I), V;
|
|
21711
21712
|
}
|
|
21712
21713
|
return d(w, [{
|
|
21713
21714
|
key: "format",
|
|
21714
|
-
value: function(
|
|
21715
|
-
this.children.length > 0 && this.children.tail.format(
|
|
21715
|
+
value: function(V, I) {
|
|
21716
|
+
this.children.length > 0 && this.children.tail.format(V, I);
|
|
21716
21717
|
}
|
|
21717
21718
|
}, {
|
|
21718
21719
|
key: "formats",
|
|
@@ -21721,29 +21722,29 @@ var wl = bl, Yt = { exports: {} };
|
|
|
21721
21722
|
}
|
|
21722
21723
|
}, {
|
|
21723
21724
|
key: "insertBefore",
|
|
21724
|
-
value: function(
|
|
21725
|
-
if (
|
|
21726
|
-
p(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "insertBefore", this).call(this,
|
|
21725
|
+
value: function(V, I) {
|
|
21726
|
+
if (V instanceof g)
|
|
21727
|
+
p(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "insertBefore", this).call(this, V, I);
|
|
21727
21728
|
else {
|
|
21728
|
-
var Z =
|
|
21729
|
-
k.parent.insertBefore(
|
|
21729
|
+
var Z = I == null ? this.length() : I.offset(this), k = this.split(Z);
|
|
21730
|
+
k.parent.insertBefore(V, k);
|
|
21730
21731
|
}
|
|
21731
21732
|
}
|
|
21732
21733
|
}, {
|
|
21733
21734
|
key: "optimize",
|
|
21734
|
-
value: function(
|
|
21735
|
-
p(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "optimize", this).call(this,
|
|
21736
|
-
var
|
|
21737
|
-
|
|
21735
|
+
value: function(V) {
|
|
21736
|
+
p(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "optimize", this).call(this, V);
|
|
21737
|
+
var I = this.next;
|
|
21738
|
+
I != null && I.prev === this && I.statics.blotName === this.statics.blotName && I.domNode.tagName === this.domNode.tagName && I.domNode.getAttribute("data-checked") === this.domNode.getAttribute("data-checked") && (I.moveChildren(this), I.remove());
|
|
21738
21739
|
}
|
|
21739
21740
|
}, {
|
|
21740
21741
|
key: "replace",
|
|
21741
|
-
value: function(
|
|
21742
|
-
if (
|
|
21743
|
-
var
|
|
21744
|
-
|
|
21742
|
+
value: function(V) {
|
|
21743
|
+
if (V.statics.blotName !== this.statics.blotName) {
|
|
21744
|
+
var I = s.default.create(this.statics.defaultChild);
|
|
21745
|
+
V.moveChildren(I), this.appendChild(I);
|
|
21745
21746
|
}
|
|
21746
|
-
p(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "replace", this).call(this,
|
|
21747
|
+
p(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "replace", this).call(this, V);
|
|
21747
21748
|
}
|
|
21748
21749
|
}]), w;
|
|
21749
21750
|
}(l.default);
|
|
@@ -22096,8 +22097,8 @@ var wl = bl, Yt = { exports: {} };
|
|
|
22096
22097
|
var d = function() {
|
|
22097
22098
|
function x(C, w) {
|
|
22098
22099
|
for (var A = 0; A < w.length; A++) {
|
|
22099
|
-
var
|
|
22100
|
-
|
|
22100
|
+
var V = w[A];
|
|
22101
|
+
V.enumerable = V.enumerable || !1, V.configurable = !0, "value" in V && (V.writable = !0), Object.defineProperty(C, V.key, V);
|
|
22101
22102
|
}
|
|
22102
22103
|
}
|
|
22103
22104
|
return function(C, w, A) {
|
|
@@ -22105,14 +22106,14 @@ var wl = bl, Yt = { exports: {} };
|
|
|
22105
22106
|
};
|
|
22106
22107
|
}(), p = function x(C, w, A) {
|
|
22107
22108
|
C === null && (C = Function.prototype);
|
|
22108
|
-
var
|
|
22109
|
-
if (
|
|
22110
|
-
var
|
|
22111
|
-
return
|
|
22109
|
+
var V = Object.getOwnPropertyDescriptor(C, w);
|
|
22110
|
+
if (V === void 0) {
|
|
22111
|
+
var I = Object.getPrototypeOf(C);
|
|
22112
|
+
return I === null ? void 0 : x(I, w, A);
|
|
22112
22113
|
} else {
|
|
22113
|
-
if ("value" in
|
|
22114
|
-
return
|
|
22115
|
-
var Z =
|
|
22114
|
+
if ("value" in V)
|
|
22115
|
+
return V.value;
|
|
22116
|
+
var Z = V.get;
|
|
22116
22117
|
return Z === void 0 ? void 0 : Z.call(A);
|
|
22117
22118
|
}
|
|
22118
22119
|
}, b = n(35), s = a(b), v = n(5), h = a(v), c = n(9), l = a(c);
|
|
@@ -22141,11 +22142,11 @@ var wl = bl, Yt = { exports: {} };
|
|
|
22141
22142
|
return d(C, null, [{
|
|
22142
22143
|
key: "create",
|
|
22143
22144
|
value: function(A) {
|
|
22144
|
-
var
|
|
22145
|
-
return typeof A == "string" && (window.katex.render(A,
|
|
22145
|
+
var V = p(C.__proto__ || Object.getPrototypeOf(C), "create", this).call(this, A);
|
|
22146
|
+
return typeof A == "string" && (window.katex.render(A, V, {
|
|
22146
22147
|
throwOnError: !1,
|
|
22147
22148
|
errorColor: "#f00"
|
|
22148
|
-
}),
|
|
22149
|
+
}), V.setAttribute("data-value", A)), V;
|
|
22149
22150
|
}
|
|
22150
22151
|
}, {
|
|
22151
22152
|
key: "value",
|
|
@@ -22180,21 +22181,21 @@ var wl = bl, Yt = { exports: {} };
|
|
|
22180
22181
|
value: !0
|
|
22181
22182
|
}), r.default = r.CodeToken = r.CodeBlock = void 0;
|
|
22182
22183
|
var d = function() {
|
|
22183
|
-
function A(
|
|
22184
|
-
for (var Z = 0; Z <
|
|
22185
|
-
var k =
|
|
22186
|
-
k.enumerable = k.enumerable || !1, k.configurable = !0, "value" in k && (k.writable = !0), Object.defineProperty(
|
|
22184
|
+
function A(V, I) {
|
|
22185
|
+
for (var Z = 0; Z < I.length; Z++) {
|
|
22186
|
+
var k = I[Z];
|
|
22187
|
+
k.enumerable = k.enumerable || !1, k.configurable = !0, "value" in k && (k.writable = !0), Object.defineProperty(V, k.key, k);
|
|
22187
22188
|
}
|
|
22188
22189
|
}
|
|
22189
|
-
return function(
|
|
22190
|
-
return
|
|
22190
|
+
return function(V, I, Z) {
|
|
22191
|
+
return I && A(V.prototype, I), Z && A(V, Z), V;
|
|
22191
22192
|
};
|
|
22192
|
-
}(), p = function A(
|
|
22193
|
-
|
|
22194
|
-
var k = Object.getOwnPropertyDescriptor(
|
|
22193
|
+
}(), p = function A(V, I, Z) {
|
|
22194
|
+
V === null && (V = Function.prototype);
|
|
22195
|
+
var k = Object.getOwnPropertyDescriptor(V, I);
|
|
22195
22196
|
if (k === void 0) {
|
|
22196
|
-
var
|
|
22197
|
-
return
|
|
22197
|
+
var H = Object.getPrototypeOf(V);
|
|
22198
|
+
return H === null ? void 0 : A(H, I, Z);
|
|
22198
22199
|
} else {
|
|
22199
22200
|
if ("value" in k)
|
|
22200
22201
|
return k.value;
|
|
@@ -22205,29 +22206,29 @@ var wl = bl, Yt = { exports: {} };
|
|
|
22205
22206
|
function m(A) {
|
|
22206
22207
|
return A && A.__esModule ? A : { default: A };
|
|
22207
22208
|
}
|
|
22208
|
-
function u(A,
|
|
22209
|
-
if (!(A instanceof
|
|
22209
|
+
function u(A, V) {
|
|
22210
|
+
if (!(A instanceof V))
|
|
22210
22211
|
throw new TypeError("Cannot call a class as a function");
|
|
22211
22212
|
}
|
|
22212
|
-
function f(A,
|
|
22213
|
+
function f(A, V) {
|
|
22213
22214
|
if (!A)
|
|
22214
22215
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
22215
|
-
return
|
|
22216
|
+
return V && (typeof V == "object" || typeof V == "function") ? V : A;
|
|
22216
22217
|
}
|
|
22217
|
-
function g(A,
|
|
22218
|
-
if (typeof
|
|
22219
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
22220
|
-
A.prototype = Object.create(
|
|
22218
|
+
function g(A, V) {
|
|
22219
|
+
if (typeof V != "function" && V !== null)
|
|
22220
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof V);
|
|
22221
|
+
A.prototype = Object.create(V && V.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), V && (Object.setPrototypeOf ? Object.setPrototypeOf(A, V) : A.__proto__ = V);
|
|
22221
22222
|
}
|
|
22222
22223
|
var x = function(A) {
|
|
22223
|
-
g(
|
|
22224
|
-
function
|
|
22225
|
-
return u(this,
|
|
22224
|
+
g(V, A);
|
|
22225
|
+
function V() {
|
|
22226
|
+
return u(this, V), f(this, (V.__proto__ || Object.getPrototypeOf(V)).apply(this, arguments));
|
|
22226
22227
|
}
|
|
22227
|
-
return d(
|
|
22228
|
+
return d(V, [{
|
|
22228
22229
|
key: "replaceWith",
|
|
22229
22230
|
value: function(Z) {
|
|
22230
|
-
this.domNode.textContent = this.domNode.textContent, this.attach(), p(
|
|
22231
|
+
this.domNode.textContent = this.domNode.textContent, this.attach(), p(V.prototype.__proto__ || Object.getPrototypeOf(V.prototype), "replaceWith", this).call(this, Z);
|
|
22231
22232
|
}
|
|
22232
22233
|
}, {
|
|
22233
22234
|
key: "highlight",
|
|
@@ -22235,49 +22236,49 @@ var wl = bl, Yt = { exports: {} };
|
|
|
22235
22236
|
var k = this.domNode.textContent;
|
|
22236
22237
|
this.cachedText !== k && ((k.trim().length > 0 || this.cachedText == null) && (this.domNode.innerHTML = Z(k), this.domNode.normalize(), this.attach()), this.cachedText = k);
|
|
22237
22238
|
}
|
|
22238
|
-
}]),
|
|
22239
|
+
}]), V;
|
|
22239
22240
|
}(y.default);
|
|
22240
22241
|
x.className = "ql-syntax";
|
|
22241
22242
|
var C = new s.default.Attributor.Class("token", "hljs", {
|
|
22242
22243
|
scope: s.default.Scope.INLINE
|
|
22243
22244
|
}), w = function(A) {
|
|
22244
|
-
g(
|
|
22245
|
+
g(V, A), d(V, null, [{
|
|
22245
22246
|
key: "register",
|
|
22246
22247
|
value: function() {
|
|
22247
22248
|
h.default.register(C, !0), h.default.register(x, !0);
|
|
22248
22249
|
}
|
|
22249
22250
|
}]);
|
|
22250
|
-
function I
|
|
22251
|
-
u(this,
|
|
22252
|
-
var k = f(this, (
|
|
22251
|
+
function V(I, Z) {
|
|
22252
|
+
u(this, V);
|
|
22253
|
+
var k = f(this, (V.__proto__ || Object.getPrototypeOf(V)).call(this, I, Z));
|
|
22253
22254
|
if (typeof k.options.highlight != "function")
|
|
22254
22255
|
throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");
|
|
22255
|
-
var
|
|
22256
|
+
var H = null;
|
|
22256
22257
|
return k.quill.on(h.default.events.SCROLL_OPTIMIZE, function() {
|
|
22257
|
-
clearTimeout(
|
|
22258
|
-
k.highlight(),
|
|
22258
|
+
clearTimeout(H), H = setTimeout(function() {
|
|
22259
|
+
k.highlight(), H = null;
|
|
22259
22260
|
}, k.options.interval);
|
|
22260
22261
|
}), k.highlight(), k;
|
|
22261
22262
|
}
|
|
22262
|
-
return d(
|
|
22263
|
+
return d(V, [{
|
|
22263
22264
|
key: "highlight",
|
|
22264
22265
|
value: function() {
|
|
22265
22266
|
var Z = this;
|
|
22266
22267
|
if (!this.quill.selection.composing) {
|
|
22267
22268
|
this.quill.update(h.default.sources.USER);
|
|
22268
22269
|
var k = this.quill.getSelection();
|
|
22269
|
-
this.quill.scroll.descendants(x).forEach(function(
|
|
22270
|
-
|
|
22270
|
+
this.quill.scroll.descendants(x).forEach(function(H) {
|
|
22271
|
+
H.highlight(Z.options.highlight);
|
|
22271
22272
|
}), this.quill.update(h.default.sources.SILENT), k != null && this.quill.setSelection(k, h.default.sources.SILENT);
|
|
22272
22273
|
}
|
|
22273
22274
|
}
|
|
22274
|
-
}]),
|
|
22275
|
+
}]), V;
|
|
22275
22276
|
}(l.default);
|
|
22276
22277
|
w.DEFAULTS = {
|
|
22277
22278
|
highlight: function() {
|
|
22278
22279
|
return window.hljs == null ? null : function(A) {
|
|
22279
|
-
var
|
|
22280
|
-
return
|
|
22280
|
+
var V = window.hljs.highlightAuto(A);
|
|
22281
|
+
return V.value;
|
|
22281
22282
|
};
|
|
22282
22283
|
}(),
|
|
22283
22284
|
interval: 1e3
|
|
@@ -22449,102 +22450,102 @@ var wl = bl, Yt = { exports: {} };
|
|
|
22449
22450
|
Object.defineProperty(r, "__esModule", {
|
|
22450
22451
|
value: !0
|
|
22451
22452
|
}), r.default = r.BubbleTooltip = void 0;
|
|
22452
|
-
var d = function I
|
|
22453
|
-
|
|
22454
|
-
var
|
|
22455
|
-
if (
|
|
22456
|
-
var L = Object.getPrototypeOf(
|
|
22457
|
-
return L === null ? void 0 :
|
|
22453
|
+
var d = function V(I, Z, k) {
|
|
22454
|
+
I === null && (I = Function.prototype);
|
|
22455
|
+
var H = Object.getOwnPropertyDescriptor(I, Z);
|
|
22456
|
+
if (H === void 0) {
|
|
22457
|
+
var L = Object.getPrototypeOf(I);
|
|
22458
|
+
return L === null ? void 0 : V(L, Z, k);
|
|
22458
22459
|
} else {
|
|
22459
|
-
if ("value" in
|
|
22460
|
-
return
|
|
22461
|
-
var S =
|
|
22460
|
+
if ("value" in H)
|
|
22461
|
+
return H.value;
|
|
22462
|
+
var S = H.get;
|
|
22462
22463
|
return S === void 0 ? void 0 : S.call(k);
|
|
22463
22464
|
}
|
|
22464
22465
|
}, p = function() {
|
|
22465
|
-
function I
|
|
22466
|
+
function V(I, Z) {
|
|
22466
22467
|
for (var k = 0; k < Z.length; k++) {
|
|
22467
|
-
var
|
|
22468
|
-
|
|
22468
|
+
var H = Z[k];
|
|
22469
|
+
H.enumerable = H.enumerable || !1, H.configurable = !0, "value" in H && (H.writable = !0), Object.defineProperty(I, H.key, H);
|
|
22469
22470
|
}
|
|
22470
22471
|
}
|
|
22471
|
-
return function(
|
|
22472
|
-
return Z && I
|
|
22472
|
+
return function(I, Z, k) {
|
|
22473
|
+
return Z && V(I.prototype, Z), k && V(I, k), I;
|
|
22473
22474
|
};
|
|
22474
22475
|
}(), b = n(3), s = u(b), v = n(8), h = u(v), c = n(43), l = u(c), a = n(15), y = n(41), m = u(y);
|
|
22475
|
-
function u(
|
|
22476
|
-
return
|
|
22476
|
+
function u(V) {
|
|
22477
|
+
return V && V.__esModule ? V : { default: V };
|
|
22477
22478
|
}
|
|
22478
|
-
function f(
|
|
22479
|
-
if (!(
|
|
22479
|
+
function f(V, I) {
|
|
22480
|
+
if (!(V instanceof I))
|
|
22480
22481
|
throw new TypeError("Cannot call a class as a function");
|
|
22481
22482
|
}
|
|
22482
|
-
function g(
|
|
22483
|
-
if (!
|
|
22483
|
+
function g(V, I) {
|
|
22484
|
+
if (!V)
|
|
22484
22485
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
22485
|
-
return
|
|
22486
|
+
return I && (typeof I == "object" || typeof I == "function") ? I : V;
|
|
22486
22487
|
}
|
|
22487
|
-
function x(
|
|
22488
|
-
if (typeof
|
|
22489
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
22490
|
-
|
|
22491
|
-
}
|
|
22492
|
-
var C = [["bold", "italic", "link"], [{ header: 1 }, { header: 2 }, "blockquote"]], w = function(
|
|
22493
|
-
x(
|
|
22494
|
-
function
|
|
22495
|
-
f(this,
|
|
22496
|
-
var
|
|
22497
|
-
return
|
|
22488
|
+
function x(V, I) {
|
|
22489
|
+
if (typeof I != "function" && I !== null)
|
|
22490
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
22491
|
+
V.prototype = Object.create(I && I.prototype, { constructor: { value: V, enumerable: !1, writable: !0, configurable: !0 } }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(V, I) : V.__proto__ = I);
|
|
22492
|
+
}
|
|
22493
|
+
var C = [["bold", "italic", "link"], [{ header: 1 }, { header: 2 }, "blockquote"]], w = function(V) {
|
|
22494
|
+
x(I, V);
|
|
22495
|
+
function I(Z, k) {
|
|
22496
|
+
f(this, I), k.modules.toolbar != null && k.modules.toolbar.container == null && (k.modules.toolbar.container = C);
|
|
22497
|
+
var H = g(this, (I.__proto__ || Object.getPrototypeOf(I)).call(this, Z, k));
|
|
22498
|
+
return H.quill.container.classList.add("ql-bubble"), H;
|
|
22498
22499
|
}
|
|
22499
|
-
return p(
|
|
22500
|
+
return p(I, [{
|
|
22500
22501
|
key: "extendToolbar",
|
|
22501
22502
|
value: function(k) {
|
|
22502
22503
|
this.tooltip = new A(this.quill, this.options.bounds), this.tooltip.root.appendChild(k.container), this.buildButtons([].slice.call(k.container.querySelectorAll("button")), m.default), this.buildPickers([].slice.call(k.container.querySelectorAll("select")), m.default);
|
|
22503
22504
|
}
|
|
22504
|
-
}]),
|
|
22505
|
+
}]), I;
|
|
22505
22506
|
}(l.default);
|
|
22506
22507
|
w.DEFAULTS = (0, s.default)(!0, {}, l.default.DEFAULTS, {
|
|
22507
22508
|
modules: {
|
|
22508
22509
|
toolbar: {
|
|
22509
22510
|
handlers: {
|
|
22510
|
-
link: function(
|
|
22511
|
-
|
|
22511
|
+
link: function(I) {
|
|
22512
|
+
I ? this.quill.theme.tooltip.edit() : this.quill.format("link", !1);
|
|
22512
22513
|
}
|
|
22513
22514
|
}
|
|
22514
22515
|
}
|
|
22515
22516
|
}
|
|
22516
22517
|
});
|
|
22517
|
-
var A = function(
|
|
22518
|
-
x(
|
|
22519
|
-
function
|
|
22520
|
-
f(this,
|
|
22521
|
-
var
|
|
22522
|
-
return
|
|
22518
|
+
var A = function(V) {
|
|
22519
|
+
x(I, V);
|
|
22520
|
+
function I(Z, k) {
|
|
22521
|
+
f(this, I);
|
|
22522
|
+
var H = g(this, (I.__proto__ || Object.getPrototypeOf(I)).call(this, Z, k));
|
|
22523
|
+
return H.quill.on(h.default.events.EDITOR_CHANGE, function(L, S, E, F) {
|
|
22523
22524
|
if (L === h.default.events.SELECTION_CHANGE)
|
|
22524
22525
|
if (S != null && S.length > 0 && F === h.default.sources.USER) {
|
|
22525
|
-
|
|
22526
|
-
var D =
|
|
22526
|
+
H.show(), H.root.style.left = "0px", H.root.style.width = "", H.root.style.width = H.root.offsetWidth + "px";
|
|
22527
|
+
var D = H.quill.getLines(S.index, S.length);
|
|
22527
22528
|
if (D.length === 1)
|
|
22528
|
-
|
|
22529
|
+
H.position(H.quill.getBounds(S));
|
|
22529
22530
|
else {
|
|
22530
|
-
var z = D[D.length - 1], Q =
|
|
22531
|
-
|
|
22531
|
+
var z = D[D.length - 1], Q = H.quill.getIndex(z), X = Math.min(z.length() - 1, S.index + S.length - Q), P = H.quill.getBounds(new a.Range(Q, X));
|
|
22532
|
+
H.position(P);
|
|
22532
22533
|
}
|
|
22533
22534
|
} else
|
|
22534
|
-
document.activeElement !==
|
|
22535
|
-
}),
|
|
22535
|
+
document.activeElement !== H.textbox && H.quill.hasFocus() && H.hide();
|
|
22536
|
+
}), H;
|
|
22536
22537
|
}
|
|
22537
|
-
return p(
|
|
22538
|
+
return p(I, [{
|
|
22538
22539
|
key: "listen",
|
|
22539
22540
|
value: function() {
|
|
22540
22541
|
var k = this;
|
|
22541
|
-
d(
|
|
22542
|
+
d(I.prototype.__proto__ || Object.getPrototypeOf(I.prototype), "listen", this).call(this), this.root.querySelector(".ql-close").addEventListener("click", function() {
|
|
22542
22543
|
k.root.classList.remove("ql-editing");
|
|
22543
22544
|
}), this.quill.on(h.default.events.SCROLL_OPTIMIZE, function() {
|
|
22544
22545
|
setTimeout(function() {
|
|
22545
22546
|
if (!k.root.classList.contains("ql-hidden")) {
|
|
22546
|
-
var
|
|
22547
|
-
|
|
22547
|
+
var H = k.quill.getSelection();
|
|
22548
|
+
H != null && k.position(k.quill.getBounds(H));
|
|
22548
22549
|
}
|
|
22549
22550
|
}, 1);
|
|
22550
22551
|
});
|
|
@@ -22557,12 +22558,12 @@ var wl = bl, Yt = { exports: {} };
|
|
|
22557
22558
|
}, {
|
|
22558
22559
|
key: "position",
|
|
22559
22560
|
value: function(k) {
|
|
22560
|
-
var
|
|
22561
|
-
if (L.style.marginLeft = "",
|
|
22562
|
-
return
|
|
22563
|
-
L.style.marginLeft = -1 *
|
|
22561
|
+
var H = d(I.prototype.__proto__ || Object.getPrototypeOf(I.prototype), "position", this).call(this, k), L = this.root.querySelector(".ql-tooltip-arrow");
|
|
22562
|
+
if (L.style.marginLeft = "", H === 0)
|
|
22563
|
+
return H;
|
|
22564
|
+
L.style.marginLeft = -1 * H - L.offsetWidth / 2 + "px";
|
|
22564
22565
|
}
|
|
22565
|
-
}]),
|
|
22566
|
+
}]), I;
|
|
22566
22567
|
}(c.BaseTooltip);
|
|
22567
22568
|
A.TEMPLATE = ['<span class="ql-tooltip-arrow"></span>', '<div class="ql-tooltip-editor">', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-close"></a>', "</div>"].join(""), r.BubbleTooltip = A, r.default = w;
|
|
22568
22569
|
},
|
|
@@ -23551,15 +23552,15 @@ const Ol = ({
|
|
|
23551
23552
|
justifyContent: "space-between",
|
|
23552
23553
|
alignItems: "center",
|
|
23553
23554
|
children: [
|
|
23554
|
-
/* @__PURE__ */ t(y1, { flexWrap: "wrap", gap: "4px", children: new Array(v).fill(null).map((A,
|
|
23555
|
+
/* @__PURE__ */ t(y1, { flexWrap: "wrap", gap: "4px", children: new Array(v).fill(null).map((A, V) => /* @__PURE__ */ t(
|
|
23555
23556
|
x5.div,
|
|
23556
23557
|
{
|
|
23557
23558
|
w: "12px",
|
|
23558
23559
|
h: "6px",
|
|
23559
23560
|
borderRadius: "4px",
|
|
23560
|
-
bg:
|
|
23561
|
+
bg: V === h ? T.white100 : T.black50
|
|
23561
23562
|
},
|
|
23562
|
-
|
|
23563
|
+
V
|
|
23563
23564
|
)) }),
|
|
23564
23565
|
/* @__PURE__ */ t(
|
|
23565
23566
|
o2,
|
|
@@ -24622,9 +24623,9 @@ function Fl(e) {
|
|
|
24622
24623
|
return !n.current || b.props.enableMultiContainer && L.containerId !== b.props.containerId || d.has(L.toastId) && L.updateId == null;
|
|
24623
24624
|
}(f))
|
|
24624
24625
|
return;
|
|
24625
|
-
const { toastId: g, updateId: x, data: C } = f, { props: w } = b, A = () => v(g),
|
|
24626
|
-
|
|
24627
|
-
const
|
|
24626
|
+
const { toastId: g, updateId: x, data: C } = f, { props: w } = b, A = () => v(g), V = x == null;
|
|
24627
|
+
V && b.count++;
|
|
24628
|
+
const I = { ...w, style: w.toastStyle, key: b.toastKey++, ...Object.fromEntries(Object.entries(f).filter((L) => {
|
|
24628
24629
|
let [S, E] = L;
|
|
24629
24630
|
return E != null;
|
|
24630
24631
|
})), toastId: g, updateId: x, data: C, closeToast: A, isIn: !1, className: T2(f.className || w.toastClassName), bodyClassName: T2(f.bodyClassName || w.bodyClassName), progressClassName: T2(f.progressClassName || w.progressClassName), autoClose: !f.isLoading && (Z = f.autoClose, k = w.autoClose, Z === !1 || a2(Z) && Z > 0 ? Z : k), deleteToast() {
|
|
@@ -24645,15 +24646,15 @@ function Fl(e) {
|
|
|
24645
24646
|
o();
|
|
24646
24647
|
} };
|
|
24647
24648
|
var Z, k;
|
|
24648
|
-
|
|
24649
|
+
I.iconOut = function(L) {
|
|
24649
24650
|
let { theme: S, type: E, isLoading: F, icon: D } = L, z = null;
|
|
24650
24651
|
const Q = { theme: S, type: E };
|
|
24651
24652
|
return D === !1 || (K1(D) ? z = D(Q) : N5(D) ? z = F3(D, Q) : E5(D) || a2(D) ? z = D : F ? z = T3.spinner() : ((X) => X in T3)(E) && (z = T3[E](Q))), z;
|
|
24652
|
-
}(
|
|
24653
|
-
let
|
|
24654
|
-
N5(a) && !E5(a.type) ?
|
|
24655
|
-
l(
|
|
24656
|
-
}, m) : l(
|
|
24653
|
+
}(I), K1(f.onOpen) && (I.onOpen = f.onOpen), K1(f.onClose) && (I.onClose = f.onClose), I.closeButton = w.closeButton, f.closeButton === !1 || Z3(f.closeButton) ? I.closeButton = f.closeButton : f.closeButton === !0 && (I.closeButton = !Z3(w.closeButton) || w.closeButton);
|
|
24654
|
+
let H = a;
|
|
24655
|
+
N5(a) && !E5(a.type) ? H = F3(a, { closeToast: A, toastProps: I, data: C }) : K1(a) && (H = a({ closeToast: A, toastProps: I, data: C })), w.limit && w.limit > 0 && b.count > w.limit && V ? b.queue.push({ toastContent: H, toastProps: I, staleId: u }) : a2(m) ? setTimeout(() => {
|
|
24656
|
+
l(H, I, u);
|
|
24657
|
+
}, m) : l(H, I, u);
|
|
24657
24658
|
}
|
|
24658
24659
|
function l(a, y, m) {
|
|
24659
24660
|
const { toastId: u } = y;
|
|
@@ -24690,8 +24691,8 @@ function Nl(e) {
|
|
|
24690
24691
|
}
|
|
24691
24692
|
function y(C) {
|
|
24692
24693
|
if (p.boundingRect) {
|
|
24693
|
-
const { top: w, bottom: A, left:
|
|
24694
|
-
C.nativeEvent.type !== "touchend" && e.pauseOnHover && p.x >=
|
|
24694
|
+
const { top: w, bottom: A, left: V, right: I } = p.boundingRect;
|
|
24695
|
+
C.nativeEvent.type !== "touchend" && e.pauseOnHover && p.x >= V && p.x <= I && p.y >= w && p.y <= A ? u() : m();
|
|
24695
24696
|
}
|
|
24696
24697
|
}
|
|
24697
24698
|
function m() {
|
|
@@ -24742,9 +24743,9 @@ function Pl(e) {
|
|
|
24742
24743
|
} });
|
|
24743
24744
|
}
|
|
24744
24745
|
const Rl = (e) => {
|
|
24745
|
-
const { isRunning: o, preventExitTransition: i, toastRef: r, eventHandlers: n } = Nl(e), { closeButton: d, children: p, autoClose: b, onClick: s, type: v, hideProgressBar: h, closeToast: c, transition: l, position: a, className: y, style: m, bodyClassName: u, bodyStyle: f, progressClassName: g, progressStyle: x, updateId: C, role: w, progress: A, rtl:
|
|
24746
|
+
const { isRunning: o, preventExitTransition: i, toastRef: r, eventHandlers: n } = Nl(e), { closeButton: d, children: p, autoClose: b, onClick: s, type: v, hideProgressBar: h, closeToast: c, transition: l, position: a, className: y, style: m, bodyClassName: u, bodyStyle: f, progressClassName: g, progressStyle: x, updateId: C, role: w, progress: A, rtl: V, toastId: I, deleteToast: Z, isIn: k, isLoading: H, iconOut: L, closeOnClick: S, theme: E } = e, F = I5("Toastify__toast", `Toastify__toast-theme--${E}`, `Toastify__toast--${v}`, { "Toastify__toast--rtl": V }, { "Toastify__toast--close-on-click": S }), D = K1(y) ? y({ rtl: V, position: a, type: v, defaultClassName: F }) : I5(F, y), z = !!A || !b, Q = { closeToast: c, type: v, theme: E };
|
|
24746
24747
|
let X = null;
|
|
24747
|
-
return d === !1 || (X = K1(d) ? d(Q) : N5(d) ? F3(d, Q) : qt(Q)), O1.createElement(l, { isIn: k, done: Z, position: a, preventExitTransition: i, nodeRef: r }, O1.createElement("div", { id:
|
|
24748
|
+
return d === !1 || (X = K1(d) ? d(Q) : N5(d) ? F3(d, Q) : qt(Q)), O1.createElement(l, { isIn: k, done: Z, position: a, preventExitTransition: i, nodeRef: r }, O1.createElement("div", { id: I, onClick: s, className: D, ...n, style: m, ref: r }, O1.createElement("div", { ...k && { role: w }, className: K1(u) ? u({ type: v }) : I5("Toastify__toast-body", u), style: f }, L != null && O1.createElement("div", { className: I5("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !H }) }, L), O1.createElement("div", null, p)), X, O1.createElement(Pl, { ...C && !z ? { key: `pb-${C}` } : {}, rtl: V, theme: E, delay: b, isRunning: o, isIn: k, closeToast: c, hide: h, type: v, style: x, className: g, controlledProgress: z, progress: A || 0 })));
|
|
24748
24749
|
}, u3 = function(e, o) {
|
|
24749
24750
|
return o === void 0 && (o = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: o };
|
|
24750
24751
|
}, Dl = s3(u3("bounce", !0)), Gl = s3(u3("slide", !0));
|