@alpaca-editor/core 1.0.3939 → 1.0.3941
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ActionButton.d.ts +1 -0
- package/dist/components/ActionButton.js +2 -2
- package/dist/components/ActionButton.js.map +1 -1
- package/dist/editor/FieldActionsOverlay.d.ts +1 -0
- package/dist/editor/FieldActionsOverlay.js +2 -11
- package/dist/editor/FieldActionsOverlay.js.map +1 -1
- package/dist/editor/PictureCropper.js +65 -23
- package/dist/editor/PictureCropper.js.map +1 -1
- package/dist/editor/PictureEditor.js +16 -2
- package/dist/editor/PictureEditor.js.map +1 -1
- package/dist/editor/Titlebar.js +1 -1
- package/dist/editor/Titlebar.js.map +1 -1
- package/dist/editor/ai/GhostWriter.js +21 -2
- package/dist/editor/ai/GhostWriter.js.map +1 -1
- package/dist/editor/commands/componentCommands.js +7 -3
- package/dist/editor/commands/componentCommands.js.map +1 -1
- package/dist/editor/media-selector/MediaFolderBrowser.d.ts +5 -0
- package/dist/editor/media-selector/MediaFolderBrowser.js +77 -0
- package/dist/editor/media-selector/MediaFolderBrowser.js.map +1 -0
- package/dist/editor/media-selector/MediaSelector.js +1 -1
- package/dist/editor/media-selector/MediaSelector.js.map +1 -1
- package/dist/editor/media-selector/Thumbnails.js +2 -2
- package/dist/editor/media-selector/index.d.ts +8 -0
- package/dist/editor/media-selector/index.js +9 -0
- package/dist/editor/media-selector/index.js.map +1 -0
- package/dist/editor/menubar/BrowseHistory.js +1 -1
- package/dist/editor/menubar/PageSelector.js +39 -15
- package/dist/editor/menubar/PageSelector.js.map +1 -1
- package/dist/editor/page-editor-chrome/useInlineAICompletion.js +37 -11
- package/dist/editor/page-editor-chrome/useInlineAICompletion.js.map +1 -1
- package/dist/editor/reviews/Comment.js +1 -1
- package/dist/editor/reviews/Comment.js.map +1 -1
- package/dist/editor/services/aiService.js +0 -1
- package/dist/editor/services/aiService.js.map +1 -1
- package/dist/editor/sidebar/ComponentTree.js +3 -4
- package/dist/editor/sidebar/ComponentTree.js.map +1 -1
- package/dist/editor/ui/SimpleTabs.d.ts +1 -0
- package/dist/editor/ui/SimpleTabs.js +3 -3
- package/dist/editor/ui/SimpleTabs.js.map +1 -1
- package/dist/editor/ui/Splitter.js +61 -6
- package/dist/editor/ui/Splitter.js.map +1 -1
- package/dist/editor/views/MediaFolderEditView.d.ts +4 -0
- package/dist/editor/views/MediaFolderEditView.js +40 -0
- package/dist/editor/views/MediaFolderEditView.js.map +1 -0
- package/dist/editor/views/SingleEditView.js +9 -1
- package/dist/editor/views/SingleEditView.js.map +1 -1
- package/dist/revision.d.ts +2 -2
- package/dist/revision.js +2 -2
- package/dist/styles.css +61 -5
- package/package.json +8 -2
- package/.prettierrc +0 -3
- package/build.css +0 -3
- package/components.json +0 -21
- package/eslint.config.mjs +0 -4
- package/images/bg-shape-black.webp +0 -0
- package/images/wizard-bg.png +0 -0
- package/images/wizard-tour.png +0 -0
- package/images/wizard.png +0 -0
- package/src/client-components/api.ts +0 -6
- package/src/client-components/index.ts +0 -19
- package/src/components/ActionButton.tsx +0 -41
- package/src/components/Error.tsx +0 -57
- package/src/components/ui/CardConnector.tsx +0 -56
- package/src/components/ui/button.tsx +0 -62
- package/src/components/ui/card.tsx +0 -372
- package/src/components/ui/context-menu.tsx +0 -250
- package/src/config/config.tsx +0 -917
- package/src/config/types.ts +0 -286
- package/src/editor/ComponentInfo.tsx +0 -90
- package/src/editor/ConfirmationDialog.tsx +0 -103
- package/src/editor/ContentTree.tsx +0 -730
- package/src/editor/ContextMenu.tsx +0 -230
- package/src/editor/Editor.tsx +0 -90
- package/src/editor/EditorWarning.tsx +0 -34
- package/src/editor/EditorWarnings.tsx +0 -33
- package/src/editor/FieldActionsOverlay.tsx +0 -307
- package/src/editor/FieldEditorPopup.tsx +0 -65
- package/src/editor/FieldHistory.tsx +0 -75
- package/src/editor/FieldList.tsx +0 -190
- package/src/editor/FieldListField.tsx +0 -391
- package/src/editor/FieldListFieldWithFallbacks.tsx +0 -217
- package/src/editor/FloatingToolbar.tsx +0 -163
- package/src/editor/ImageEditor.tsx +0 -128
- package/src/editor/ItemInfo.tsx +0 -90
- package/src/editor/LinkEditorDialog.tsx +0 -196
- package/src/editor/MainLayout.tsx +0 -95
- package/src/editor/MobileLayout.tsx +0 -68
- package/src/editor/NewEditorClient.tsx +0 -11
- package/src/editor/PictureCropper.tsx +0 -503
- package/src/editor/PictureEditor.tsx +0 -277
- package/src/editor/PictureEditorDialog.tsx +0 -381
- package/src/editor/PublishDialog.ignore +0 -74
- package/src/editor/ScrollingContentTree.tsx +0 -67
- package/src/editor/Terminal.tsx +0 -227
- package/src/editor/Titlebar.tsx +0 -104
- package/src/editor/ai/AiPopup.tsx +0 -59
- package/src/editor/ai/AiResponseMessage.tsx +0 -106
- package/src/editor/ai/AiTerminal.tsx +0 -503
- package/src/editor/ai/AiToolCall.tsx +0 -61
- package/src/editor/ai/EditorAiTerminal.tsx +0 -20
- package/src/editor/ai/GhostWriter.tsx +0 -432
- package/src/editor/ai/aiPageModel.ts +0 -108
- package/src/editor/ai/editorAiContext.ts +0 -18
- package/src/editor/client/AboutDialog.tsx +0 -44
- package/src/editor/client/EditorClient.tsx +0 -2241
- package/src/editor/client/GenericDialog.tsx +0 -50
- package/src/editor/client/editContext.ts +0 -416
- package/src/editor/client/helpers.ts +0 -44
- package/src/editor/client/itemsRepository.ts +0 -574
- package/src/editor/client/operations.ts +0 -768
- package/src/editor/client/pageModelBuilder.ts +0 -219
- package/src/editor/commands/commands.ts +0 -22
- package/src/editor/commands/componentCommands.tsx +0 -424
- package/src/editor/commands/createVersionCommand.ts +0 -33
- package/src/editor/commands/deleteVersionCommand.ts +0 -71
- package/src/editor/commands/itemCommands.tsx +0 -351
- package/src/editor/commands/localizeItem/LocalizeItemDialog.tsx +0 -201
- package/src/editor/commands/localizeItem/LocalizeItemUtils.ts +0 -27
- package/src/editor/commands/undo.ts +0 -39
- package/src/editor/component-designer/ComponentDesigner.tsx +0 -70
- package/src/editor/component-designer/ComponentDesignerAiTerminal.tsx +0 -11
- package/src/editor/component-designer/ComponentDesignerMenu.tsx +0 -91
- package/src/editor/component-designer/ComponentEditor.tsx +0 -97
- package/src/editor/component-designer/ComponentRenderingCodeEditor.tsx +0 -31
- package/src/editor/component-designer/ComponentRenderingEditor.tsx +0 -104
- package/src/editor/component-designer/ComponentsDropdown.tsx +0 -39
- package/src/editor/component-designer/PlaceholdersEditor.tsx +0 -179
- package/src/editor/component-designer/RenderingsDropdown.tsx +0 -36
- package/src/editor/component-designer/TemplateEditor.tsx +0 -236
- package/src/editor/component-designer/aiContext.ts +0 -23
- package/src/editor/componentTreeHelper.tsx +0 -116
- package/src/editor/context-menu/CopyMoveMenu.tsx +0 -103
- package/src/editor/context-menu/InsertMenu.tsx +0 -347
- package/src/editor/control-center/About.tsx +0 -342
- package/src/editor/control-center/ControlCenterMenu.tsx +0 -76
- package/src/editor/control-center/IndexOverview.tsx +0 -50
- package/src/editor/control-center/IndexSettings.tsx +0 -266
- package/src/editor/control-center/Info.tsx +0 -104
- package/src/editor/control-center/QuotaInfo.tsx +0 -301
- package/src/editor/control-center/Status.tsx +0 -113
- package/src/editor/control-center/WebSocketMessages.tsx +0 -155
- package/src/editor/editor-warnings/ItemLocked.tsx +0 -63
- package/src/editor/editor-warnings/NoLanguageWriteAccess.tsx +0 -22
- package/src/editor/editor-warnings/NoWorkflowWriteAccess.tsx +0 -23
- package/src/editor/editor-warnings/NoWriteAccess.tsx +0 -16
- package/src/editor/editor-warnings/ValidationErrors.tsx +0 -54
- package/src/editor/field-types/AttachmentEditor.tsx +0 -9
- package/src/editor/field-types/CheckboxEditor.tsx +0 -47
- package/src/editor/field-types/DropLinkEditor.tsx +0 -80
- package/src/editor/field-types/DropListEditor.tsx +0 -84
- package/src/editor/field-types/ImageFieldEditor.tsx +0 -65
- package/src/editor/field-types/InternalLinkFieldEditor.tsx +0 -117
- package/src/editor/field-types/LinkFieldEditor.tsx +0 -85
- package/src/editor/field-types/MultiLineText.tsx +0 -82
- package/src/editor/field-types/PictureFieldEditor.tsx +0 -121
- package/src/editor/field-types/RawEditor.tsx +0 -53
- package/src/editor/field-types/ReactQuill.tsx +0 -580
- package/src/editor/field-types/RichTextEditor.tsx +0 -22
- package/src/editor/field-types/RichTextEditorComponent.tsx +0 -127
- package/src/editor/field-types/SingleLineText.tsx +0 -174
- package/src/editor/field-types/TreeListEditor.tsx +0 -261
- package/src/editor/fieldTypes.ts +0 -140
- package/src/editor/media-selector/AiImageSearch.tsx +0 -185
- package/src/editor/media-selector/AiImageSearchPrompt.tsx +0 -94
- package/src/editor/media-selector/MediaSelector.tsx +0 -42
- package/src/editor/media-selector/Preview.tsx +0 -14
- package/src/editor/media-selector/Thumbnails.tsx +0 -48
- package/src/editor/media-selector/TreeSelector.tsx +0 -292
- package/src/editor/media-selector/UploadZone.tsx +0 -137
- package/src/editor/menubar/ActionsMenu.tsx +0 -94
- package/src/editor/menubar/ActiveUsers.tsx +0 -17
- package/src/editor/menubar/ApproveAndPublish.tsx +0 -18
- package/src/editor/menubar/BrowseHistory.tsx +0 -28
- package/src/editor/menubar/ItemLanguageVersion.tsx +0 -76
- package/src/editor/menubar/LanguageSelector.tsx +0 -226
- package/src/editor/menubar/Menu.tsx +0 -83
- package/src/editor/menubar/NavButtons.tsx +0 -74
- package/src/editor/menubar/PageSelector.tsx +0 -166
- package/src/editor/menubar/PageViewerControls.tsx +0 -120
- package/src/editor/menubar/PreviewSecondaryControls.tsx +0 -18
- package/src/editor/menubar/SecondaryControls.tsx +0 -45
- package/src/editor/menubar/Separator.tsx +0 -12
- package/src/editor/menubar/SiteInfo.tsx +0 -53
- package/src/editor/menubar/User.tsx +0 -27
- package/src/editor/menubar/VersionSelector.tsx +0 -142
- package/src/editor/page-editor-chrome/CommentHighlighting.tsx +0 -307
- package/src/editor/page-editor-chrome/CommentHighlightings.tsx +0 -35
- package/src/editor/page-editor-chrome/FieldActionIndicator.tsx +0 -59
- package/src/editor/page-editor-chrome/FieldActionIndicators.tsx +0 -23
- package/src/editor/page-editor-chrome/FieldEditedIndicator.tsx +0 -64
- package/src/editor/page-editor-chrome/FieldEditedIndicators.tsx +0 -35
- package/src/editor/page-editor-chrome/FrameMenu.tsx +0 -338
- package/src/editor/page-editor-chrome/FrameMenus.tsx +0 -48
- package/src/editor/page-editor-chrome/InlineEditor.tsx +0 -765
- package/src/editor/page-editor-chrome/LockedFieldIndicator.tsx +0 -61
- package/src/editor/page-editor-chrome/NoLayout.tsx +0 -36
- package/src/editor/page-editor-chrome/PageEditorChrome.tsx +0 -122
- package/src/editor/page-editor-chrome/PictureEditorOverlay.tsx +0 -161
- package/src/editor/page-editor-chrome/PlaceholderDropZone.tsx +0 -169
- package/src/editor/page-editor-chrome/PlaceholderDropZones.tsx +0 -315
- package/src/editor/page-editor-chrome/SuggestionHighlighting.tsx +0 -300
- package/src/editor/page-editor-chrome/SuggestionHighlightings.tsx +0 -40
- package/src/editor/page-editor-chrome/useInlineAICompletion.tsx +0 -791
- package/src/editor/page-viewer/DeviceToolbar.tsx +0 -70
- package/src/editor/page-viewer/EditorForm.tsx +0 -258
- package/src/editor/page-viewer/MiniMap.tsx +0 -362
- package/src/editor/page-viewer/PageViewer.tsx +0 -169
- package/src/editor/page-viewer/PageViewerFrame.tsx +0 -1022
- package/src/editor/page-viewer/pageModelSkeletonBuilder.ts +0 -412
- package/src/editor/page-viewer/pageViewContext.ts +0 -186
- package/src/editor/pageModel.ts +0 -220
- package/src/editor/picture-shared.tsx +0 -53
- package/src/editor/reviews/Comment.tsx +0 -307
- package/src/editor/reviews/Comments.tsx +0 -125
- package/src/editor/reviews/DiffView.tsx +0 -109
- package/src/editor/reviews/PreviewInfo.tsx +0 -35
- package/src/editor/reviews/Reviews.tsx +0 -280
- package/src/editor/reviews/SuggestedEdit.tsx +0 -316
- package/src/editor/reviews/reviewCommands.tsx +0 -47
- package/src/editor/reviews/useReviews.tsx +0 -70
- package/src/editor/services/aiService.ts +0 -174
- package/src/editor/services/componentDesignerService.ts +0 -151
- package/src/editor/services/contentService.ts +0 -180
- package/src/editor/services/editService.ts +0 -488
- package/src/editor/services/indexService.ts +0 -24
- package/src/editor/services/reviewsService.ts +0 -53
- package/src/editor/services/serviceHelper.ts +0 -95
- package/src/editor/services/suggestedEditsService.ts +0 -39
- package/src/editor/services/systemService.ts +0 -5
- package/src/editor/services/translationService.ts +0 -21
- package/src/editor/services-server/api.ts +0 -150
- package/src/editor/services-server/graphQL.ts +0 -106
- package/src/editor/sidebar/ComponentPalette.tsx +0 -161
- package/src/editor/sidebar/ComponentTree.tsx +0 -548
- package/src/editor/sidebar/ComponentTree2.tsxx +0 -490
- package/src/editor/sidebar/Debug.tsx +0 -111
- package/src/editor/sidebar/DictionaryEditor.tsx +0 -261
- package/src/editor/sidebar/EditHistory.tsx +0 -134
- package/src/editor/sidebar/GraphQL.tsx +0 -164
- package/src/editor/sidebar/Insert.tsx +0 -35
- package/src/editor/sidebar/MainContentTree.tsx +0 -102
- package/src/editor/sidebar/Performance.tsx +0 -53
- package/src/editor/sidebar/Sessions.tsx +0 -35
- package/src/editor/sidebar/Sidebar.tsx +0 -20
- package/src/editor/sidebar/SidebarView.tsx +0 -152
- package/src/editor/sidebar/Translations.tsx +0 -295
- package/src/editor/sidebar/Validation.tsx +0 -102
- package/src/editor/sidebar/ViewSelector.tsx +0 -60
- package/src/editor/sidebar/Workbox.tsx +0 -209
- package/src/editor/ui/CenteredMessage.tsx +0 -7
- package/src/editor/ui/CopyMoveTargetSelectorDialog.tsx +0 -81
- package/src/editor/ui/CopyToClipboardButton.tsx +0 -24
- package/src/editor/ui/DialogButtons.tsx +0 -11
- package/src/editor/ui/Icons.tsx +0 -709
- package/src/editor/ui/ItemList.tsx +0 -76
- package/src/editor/ui/ItemNameDialogNew.tsx +0 -118
- package/src/editor/ui/ItemSearch.tsx +0 -153
- package/src/editor/ui/PerfectTree.tsx +0 -571
- package/src/editor/ui/Section.tsx +0 -35
- package/src/editor/ui/SimpleIconButton.tsx +0 -54
- package/src/editor/ui/SimpleMenu.tsx +0 -40
- package/src/editor/ui/SimpleTable.tsx +0 -60
- package/src/editor/ui/SimpleTabs.tsx +0 -55
- package/src/editor/ui/SimpleToolbar.tsx +0 -7
- package/src/editor/ui/Spinner.tsx +0 -9
- package/src/editor/ui/Splitter.tsx +0 -314
- package/src/editor/ui/StackedPanels.tsx +0 -134
- package/src/editor/ui/Toolbar.tsx +0 -7
- package/src/editor/utils/id-helper.ts +0 -3
- package/src/editor/utils/insertOptions.ts +0 -69
- package/src/editor/utils/itemutils.ts +0 -29
- package/src/editor/utils/useMemoDebug.ts +0 -28
- package/src/editor/utils.ts +0 -486
- package/src/editor/views/CompareView.tsx +0 -245
- package/src/editor/views/EditView.tsx +0 -27
- package/src/editor/views/ItemEditor.tsx +0 -58
- package/src/editor/views/SingleEditView.tsx +0 -46
- package/src/fonts/Geist-Black.woff2 +0 -0
- package/src/fonts/Geist-Bold.woff2 +0 -0
- package/src/fonts/Geist-ExtraBold.woff2 +0 -0
- package/src/fonts/Geist-ExtraLight.woff2 +0 -0
- package/src/fonts/Geist-Light.woff2 +0 -0
- package/src/fonts/Geist-Medium.woff2 +0 -0
- package/src/fonts/Geist-Regular.woff2 +0 -0
- package/src/fonts/Geist-SemiBold.woff2 +0 -0
- package/src/fonts/Geist-Thin.woff2 +0 -0
- package/src/fonts/Geist[wght].woff2 +0 -0
- package/src/fonts/index.ts +0 -10
- package/src/index.ts +0 -23
- package/src/lib/safelist.tsx +0 -16
- package/src/lib/utils.ts +0 -6
- package/src/page-wizard/PageWizard.tsx +0 -139
- package/src/page-wizard/WizardBox.tsx +0 -4
- package/src/page-wizard/WizardBoxConnector.tsx +0 -56
- package/src/page-wizard/WizardSteps.tsx +0 -458
- package/src/page-wizard/service.ts +0 -35
- package/src/page-wizard/startPageWizardCommand.ts +0 -26
- package/src/page-wizard/steps/BuildPageStep.tsx +0 -259
- package/src/page-wizard/steps/CollectStep.tsx +0 -296
- package/src/page-wizard/steps/ComponentTypesSelector.tsx +0 -454
- package/src/page-wizard/steps/Components.tsx +0 -193
- package/src/page-wizard/steps/ContentStep.tsx +0 -890
- package/src/page-wizard/steps/EditButton.tsx +0 -34
- package/src/page-wizard/steps/FieldEditor.tsx +0 -102
- package/src/page-wizard/steps/Generate.tsx +0 -60
- package/src/page-wizard/steps/ImagesStep.tsx +0 -382
- package/src/page-wizard/steps/LayoutStep.tsx +0 -227
- package/src/page-wizard/steps/MetaDataStep.tsx +0 -173
- package/src/page-wizard/steps/SelectStep.tsx +0 -281
- package/src/page-wizard/steps/schema.ts +0 -180
- package/src/page-wizard/steps/usePageCreator.ts +0 -325
- package/src/page-wizard/usePageWizard.ts +0 -79
- package/src/revision.ts +0 -2
- package/src/splash-screen/NewPage.tsx +0 -294
- package/src/splash-screen/OpenPage.tsx +0 -113
- package/src/splash-screen/RecentPages.tsx +0 -123
- package/src/splash-screen/SectionHeadline.tsx +0 -21
- package/src/splash-screen/SplashScreen.tsx +0 -195
- package/src/tour/Tour.tsx +0 -566
- package/src/tour/default-tour.tsx +0 -301
- package/src/tour/preview-tour.tsx +0 -128
- package/src/types.ts +0 -335
- package/styles.css +0 -765
- package/tsconfig.build.json +0 -31
- package/tsconfig.json +0 -14
package/src/tour/Tour.tsx
DELETED
|
@@ -1,566 +0,0 @@
|
|
|
1
|
-
import { useState, useEffect } from "react";
|
|
2
|
-
import { useEditContext } from "../client-components";
|
|
3
|
-
import { classNames } from "primereact/utils";
|
|
4
|
-
import { EditContextType } from "../editor/client/editContext";
|
|
5
|
-
import { Logo } from "../editor/ui/Icons";
|
|
6
|
-
import { X } from "lucide-react";
|
|
7
|
-
import { ActionButton } from "../components/ActionButton";
|
|
8
|
-
|
|
9
|
-
export function Tour({ tourStopCallback }: { tourStopCallback: () => void }) {
|
|
10
|
-
const [currentStep, setCurrentStep] = useState<string>("start-tour");
|
|
11
|
-
const [show, setShow] = useState(true);
|
|
12
|
-
const editContext = useEditContext();
|
|
13
|
-
const [focusRect, setFocusRect] = useState<DOMRect | null>(null);
|
|
14
|
-
const [pointToRect, setPointToRect] = useState<DOMRect | null>(null);
|
|
15
|
-
const delay = (ms: number) =>
|
|
16
|
-
new Promise((resolve) => setTimeout(resolve, ms)) as Promise<void>;
|
|
17
|
-
|
|
18
|
-
const waitForElement = (
|
|
19
|
-
selector: string,
|
|
20
|
-
timeout: number = 0,
|
|
21
|
-
): Promise<DOMRect | undefined> => {
|
|
22
|
-
if (selector.startsWith("iframe:")) {
|
|
23
|
-
return waitForElementInIframe(selector.substring(7), timeout);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
return new Promise<DOMRect | undefined>((resolve) => {
|
|
27
|
-
const startTime = Date.now();
|
|
28
|
-
const checkForElement = () => {
|
|
29
|
-
const element = document.querySelector(selector);
|
|
30
|
-
if (element) {
|
|
31
|
-
let rect = element.getBoundingClientRect();
|
|
32
|
-
const extendFocus = step?.extendFocus || 10;
|
|
33
|
-
rect = new DOMRect(
|
|
34
|
-
rect.left - extendFocus / 2,
|
|
35
|
-
rect.top - extendFocus / 2,
|
|
36
|
-
rect.width + extendFocus,
|
|
37
|
-
rect.height + extendFocus,
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
resolve(rect);
|
|
41
|
-
} else if (timeout > 0 && Date.now() - startTime >= timeout) {
|
|
42
|
-
resolve(undefined);
|
|
43
|
-
} else {
|
|
44
|
-
requestAnimationFrame(checkForElement);
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
checkForElement();
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
const waitForElementInIframe = (
|
|
52
|
-
selector: string,
|
|
53
|
-
timeout: number = 0,
|
|
54
|
-
): Promise<DOMRect | undefined> => {
|
|
55
|
-
return new Promise<DOMRect | undefined>((resolve, reject) => {
|
|
56
|
-
const startTime = Date.now();
|
|
57
|
-
const checkForElement = () => {
|
|
58
|
-
const iframe = document.querySelector(
|
|
59
|
-
"iframe.page-iframe",
|
|
60
|
-
) as HTMLIFrameElement;
|
|
61
|
-
if (iframe && iframe.contentDocument) {
|
|
62
|
-
const element = iframe.contentDocument.querySelector(selector);
|
|
63
|
-
if (element) {
|
|
64
|
-
const elementRect = element.getBoundingClientRect();
|
|
65
|
-
const iframeRect = iframe.getBoundingClientRect();
|
|
66
|
-
let rect = new DOMRect(
|
|
67
|
-
elementRect.left + iframeRect.left,
|
|
68
|
-
elementRect.top + iframeRect.top,
|
|
69
|
-
elementRect.width,
|
|
70
|
-
elementRect.height,
|
|
71
|
-
);
|
|
72
|
-
const extendFocus = step?.extendFocus || 10;
|
|
73
|
-
rect = new DOMRect(
|
|
74
|
-
rect.left - extendFocus / 2,
|
|
75
|
-
rect.top - extendFocus / 2,
|
|
76
|
-
rect.width + extendFocus,
|
|
77
|
-
rect.height + extendFocus,
|
|
78
|
-
);
|
|
79
|
-
|
|
80
|
-
resolve(rect);
|
|
81
|
-
} else if (timeout > 0 && Date.now() - startTime >= timeout) {
|
|
82
|
-
resolve(undefined);
|
|
83
|
-
} else {
|
|
84
|
-
requestAnimationFrame(checkForElement);
|
|
85
|
-
}
|
|
86
|
-
} else if (Date.now() - startTime >= timeout) {
|
|
87
|
-
reject(new Error(`Timeout waiting for iframe: ${selector}`));
|
|
88
|
-
} else {
|
|
89
|
-
requestAnimationFrame(checkForElement);
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
checkForElement();
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
const waitForElementToDisappear = (selector: string): Promise<void> => {
|
|
97
|
-
return new Promise((resolve) => {
|
|
98
|
-
const checkForElement = () => {
|
|
99
|
-
const element = document.querySelector(selector);
|
|
100
|
-
if (!element) {
|
|
101
|
-
resolve();
|
|
102
|
-
} else {
|
|
103
|
-
requestAnimationFrame(checkForElement);
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
checkForElement();
|
|
107
|
-
});
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
const waitForInput = (
|
|
111
|
-
selector: string,
|
|
112
|
-
minNumberOfCharacters: number = 1,
|
|
113
|
-
): Promise<void> => {
|
|
114
|
-
return new Promise((resolve) => {
|
|
115
|
-
const checkForInput = () => {
|
|
116
|
-
const input = document.querySelector(selector);
|
|
117
|
-
|
|
118
|
-
let inputValue = "";
|
|
119
|
-
|
|
120
|
-
if (input?.getAttribute("contenteditable")) {
|
|
121
|
-
console.log("contenteditable", (input as HTMLElement).innerText);
|
|
122
|
-
inputValue = (input as HTMLElement).innerText;
|
|
123
|
-
} else if (
|
|
124
|
-
input &&
|
|
125
|
-
(input as HTMLInputElement).value.length >= minNumberOfCharacters
|
|
126
|
-
) {
|
|
127
|
-
inputValue = (input as HTMLInputElement).value;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
if (inputValue.length >= minNumberOfCharacters) {
|
|
131
|
-
console.log("input found", inputValue);
|
|
132
|
-
resolve();
|
|
133
|
-
} else {
|
|
134
|
-
requestAnimationFrame(checkForInput);
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
checkForInput();
|
|
138
|
-
});
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
function setNativeValue(
|
|
142
|
-
element: HTMLInputElement | HTMLTextAreaElement,
|
|
143
|
-
value: string,
|
|
144
|
-
) {
|
|
145
|
-
const valueSetter = Object.getOwnPropertyDescriptor(
|
|
146
|
-
element.constructor.prototype,
|
|
147
|
-
"value",
|
|
148
|
-
)?.set;
|
|
149
|
-
const prototype = Object.getPrototypeOf(element);
|
|
150
|
-
const prototypeValueSetter = Object.getOwnPropertyDescriptor(
|
|
151
|
-
prototype,
|
|
152
|
-
"value",
|
|
153
|
-
)?.set;
|
|
154
|
-
|
|
155
|
-
if (valueSetter && valueSetter !== prototypeValueSetter) {
|
|
156
|
-
prototypeValueSetter?.call(element, value);
|
|
157
|
-
} else {
|
|
158
|
-
valueSetter?.call(element, value);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
const event = new Event("input", { bubbles: true });
|
|
162
|
-
element.dispatchEvent(event);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
async function simulateTyping(
|
|
166
|
-
element: HTMLInputElement | HTMLTextAreaElement,
|
|
167
|
-
text: string,
|
|
168
|
-
interval = 35,
|
|
169
|
-
) {
|
|
170
|
-
let i = 0;
|
|
171
|
-
|
|
172
|
-
while (i <= text.length) {
|
|
173
|
-
const currentText = text.substring(0, i);
|
|
174
|
-
setNativeValue(element, currentText);
|
|
175
|
-
i++;
|
|
176
|
-
|
|
177
|
-
const randomDelay = interval * (0.5 + Math.random());
|
|
178
|
-
await delay(randomDelay);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Stops the tour and resets the state.
|
|
184
|
-
*/
|
|
185
|
-
const stopTour = () => {
|
|
186
|
-
setCurrentStep("start-tour");
|
|
187
|
-
setFocusRect(null);
|
|
188
|
-
tourStopCallback();
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
const tours = editContext!.configuration.tours;
|
|
192
|
-
const tour =
|
|
193
|
-
tours[editContext!.configuration.activeTour as keyof typeof tours];
|
|
194
|
-
|
|
195
|
-
const tourSteps = tour.getSteps({
|
|
196
|
-
editContext: editContext as EditContextType,
|
|
197
|
-
nextStep: (stepId) => setCurrentStep(stepId),
|
|
198
|
-
stopTour: () => tourStopCallback(),
|
|
199
|
-
waitForElement,
|
|
200
|
-
waitForElementToDisappear,
|
|
201
|
-
setFocusRect,
|
|
202
|
-
delay,
|
|
203
|
-
waitForInput: waitForInput,
|
|
204
|
-
simulateTyping,
|
|
205
|
-
});
|
|
206
|
-
|
|
207
|
-
const step = tourSteps[currentStep];
|
|
208
|
-
if (!step) return null;
|
|
209
|
-
|
|
210
|
-
useEffect(() => {
|
|
211
|
-
const runStep = async () => {
|
|
212
|
-
setShow(false);
|
|
213
|
-
setFocusRect(null);
|
|
214
|
-
|
|
215
|
-
await delay(500);
|
|
216
|
-
|
|
217
|
-
const step = tourSteps[currentStep];
|
|
218
|
-
if (!step) return;
|
|
219
|
-
|
|
220
|
-
console.log("step", currentStep, step);
|
|
221
|
-
if (step.prepareAction) {
|
|
222
|
-
await step.prepareAction();
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
if (step.focusElement) {
|
|
226
|
-
const rect = await waitForElement(step.focusElement, 5000);
|
|
227
|
-
if (!rect) setCurrentStep("error");
|
|
228
|
-
else setFocusRect(rect);
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
setShow(true);
|
|
232
|
-
|
|
233
|
-
if (step.waitForUserInput) {
|
|
234
|
-
const nextStep = (await step.waitForUserInput()) || step.nextStep;
|
|
235
|
-
if (nextStep) {
|
|
236
|
-
setCurrentStep(nextStep);
|
|
237
|
-
} else console.log("no next step defined for step", currentStep);
|
|
238
|
-
} else {
|
|
239
|
-
if (step.waitForElement) {
|
|
240
|
-
await waitForElement(step.waitForElement);
|
|
241
|
-
if (step.nextStep) {
|
|
242
|
-
setCurrentStep(step.nextStep);
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
};
|
|
247
|
-
runStep();
|
|
248
|
-
}, [currentStep]);
|
|
249
|
-
|
|
250
|
-
useEffect(() => {
|
|
251
|
-
const getPointTo = async () => {
|
|
252
|
-
let pointToRect = focusRect;
|
|
253
|
-
|
|
254
|
-
if (step.getPointTo) {
|
|
255
|
-
const pointTo = step.getPointTo();
|
|
256
|
-
if (pointTo) {
|
|
257
|
-
pointToRect = pointTo;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
if (step.pointToElement) {
|
|
262
|
-
const rect = await waitForElement(step.pointToElement, 5000);
|
|
263
|
-
if (rect) {
|
|
264
|
-
pointToRect = rect;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
setPointToRect(pointToRect);
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
getPointTo();
|
|
272
|
-
}, [focusRect, currentStep]);
|
|
273
|
-
|
|
274
|
-
if (!step) {
|
|
275
|
-
throw new Error(`Tour step ${currentStep} not found`);
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
const bubblePosition = step.bubblePosition || "right";
|
|
279
|
-
const bubbleStyle: React.CSSProperties = {};
|
|
280
|
-
|
|
281
|
-
let boxStyle: React.CSSProperties = {
|
|
282
|
-
position: "fixed",
|
|
283
|
-
left: "50%",
|
|
284
|
-
top: "50%",
|
|
285
|
-
transform: "translate(-50%, -50%)",
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
let arrowStyle: React.CSSProperties = {};
|
|
289
|
-
|
|
290
|
-
if (pointToRect) {
|
|
291
|
-
if (bubblePosition === "right") {
|
|
292
|
-
boxStyle = {
|
|
293
|
-
position: "absolute",
|
|
294
|
-
left: pointToRect.left + pointToRect.width,
|
|
295
|
-
top: pointToRect.top - 10,
|
|
296
|
-
alignItems: "flex-start",
|
|
297
|
-
};
|
|
298
|
-
arrowStyle = {
|
|
299
|
-
marginLeft: "-20px",
|
|
300
|
-
};
|
|
301
|
-
bubbleStyle.marginLeft = "80px";
|
|
302
|
-
bubbleStyle.marginTop = "-20px";
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
if (bubblePosition === "left") {
|
|
306
|
-
boxStyle = {
|
|
307
|
-
position: "absolute",
|
|
308
|
-
right: window.innerWidth - pointToRect.left,
|
|
309
|
-
top: pointToRect.top + pointToRect.height / 2,
|
|
310
|
-
alignItems: "flex-end",
|
|
311
|
-
};
|
|
312
|
-
arrowStyle = {
|
|
313
|
-
marginRight: "-20px",
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
if (bubblePosition === "bottom") {
|
|
318
|
-
boxStyle = {
|
|
319
|
-
position: "absolute",
|
|
320
|
-
left: pointToRect.left + pointToRect.width / 2,
|
|
321
|
-
top: pointToRect.top + pointToRect.height,
|
|
322
|
-
transform: "translate(-50%, 0)",
|
|
323
|
-
};
|
|
324
|
-
if (step.flipArrow) {
|
|
325
|
-
arrowStyle = {
|
|
326
|
-
transform: "scaleX(-1)",
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
if (bubblePosition === "top-right") {
|
|
332
|
-
boxStyle = {
|
|
333
|
-
position: "absolute",
|
|
334
|
-
left: pointToRect.left + pointToRect.width,
|
|
335
|
-
bottom: window.innerHeight - pointToRect.top,
|
|
336
|
-
transform: "translate(-50%, 0)",
|
|
337
|
-
flexDirection: "column-reverse",
|
|
338
|
-
};
|
|
339
|
-
arrowStyle = {
|
|
340
|
-
transform: "rotate(180deg)",
|
|
341
|
-
};
|
|
342
|
-
|
|
343
|
-
if (step.flipArrow) {
|
|
344
|
-
arrowStyle = {
|
|
345
|
-
transform: "scaleX(-1)",
|
|
346
|
-
};
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
const arrowRotation = bubblePosition === "right" ? "-a-rotate-90" : "";
|
|
352
|
-
|
|
353
|
-
const overlayStyle: React.CSSProperties = {
|
|
354
|
-
position: "fixed",
|
|
355
|
-
top: 0,
|
|
356
|
-
left: 0,
|
|
357
|
-
width: "100%",
|
|
358
|
-
height: "100%",
|
|
359
|
-
backgroundColor: "rgba(0, 0, 0, 0.3)",
|
|
360
|
-
pointerEvents: "auto",
|
|
361
|
-
clipPath: focusRect
|
|
362
|
-
? `polygon(0% 0%, 0% 100%, ${focusRect.left}px 100%, ${
|
|
363
|
-
focusRect.left
|
|
364
|
-
}px ${focusRect.top}px, ${focusRect.left + focusRect.width}px ${
|
|
365
|
-
focusRect.top
|
|
366
|
-
}px, ${focusRect.left + focusRect.width}px ${
|
|
367
|
-
focusRect.top + focusRect.height
|
|
368
|
-
}px, ${focusRect.left}px ${focusRect.top + focusRect.height}px, ${
|
|
369
|
-
focusRect.left
|
|
370
|
-
}px 100%, 100% 100%, 100% 0%)`
|
|
371
|
-
: "none",
|
|
372
|
-
// clipPath: focusPosition
|
|
373
|
-
// ? `path('M 0 0 H 100% V 100% H 0 Z M ${focusPosition.left}px ${focusPosition.top}px H ${focusPosition.left + focusPosition.width}px V ${focusPosition.top + focusPosition.height}px H ${focusPosition.left}px Z')`
|
|
374
|
-
// : 'none',
|
|
375
|
-
};
|
|
376
|
-
|
|
377
|
-
if (!show) {
|
|
378
|
-
return <div className="overlay" style={overlayStyle}></div>;
|
|
379
|
-
}
|
|
380
|
-
return (
|
|
381
|
-
<>
|
|
382
|
-
<div className="overlay" style={overlayStyle}></div>
|
|
383
|
-
|
|
384
|
-
<div
|
|
385
|
-
style={boxStyle}
|
|
386
|
-
className="fade-in flex flex-col items-center text-gray-800"
|
|
387
|
-
>
|
|
388
|
-
{focusRect && (
|
|
389
|
-
<svg
|
|
390
|
-
width="100px"
|
|
391
|
-
height="100px"
|
|
392
|
-
viewBox="0 -7.89 113.08 113.08"
|
|
393
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
394
|
-
className={classNames("pointer-events-none", arrowRotation)}
|
|
395
|
-
style={arrowStyle}
|
|
396
|
-
>
|
|
397
|
-
<path
|
|
398
|
-
style={{ stroke: "#0000ff", fill: "#0000ff" }}
|
|
399
|
-
d="M20.1871 175C15.7485 172.891 13.0008 172.469 12.1553 170.992C8.98489 165.508 5.39173 160.024 3.70083 153.908C-1.37187 137.666 -0.737781 121.214 2.64402 104.762C8.35081 76.7092 21.0325 51.8201 36.8847 28.1966C38.5756 25.6655 40.0552 23.1344 41.7461 20.3924C41.7461 20.1814 41.5347 19.7596 41.112 19.1268C36.462 20.3923 31.6007 21.6579 26.9507 22.7125C24.4144 23.1344 21.4552 23.1344 18.9189 22.2907C17.4394 21.8688 15.3258 19.5486 15.3258 18.0722C15.3258 16.1739 16.8053 13.8537 18.0735 12.1663C19.1303 11.1117 21.0326 10.9008 22.7235 10.4789C35.4052 7.31508 48.087 3.72935 60.9801 0.776411C71.9709 -1.75468 75.564 1.83105 74.9299 12.5882C74.2959 23.7672 74.0845 34.9462 73.6618 45.9142C73.4505 49.289 72.8164 52.8747 72.3936 56.6714C63.5164 52.6638 63.5164 52.6638 60.346 18.494C47.0301 33.2588 38.1529 49.289 29.9098 65.7411C21.6666 82.1932 16.1712 99.489 13.2121 117.839C10.2531 136.823 13.8462 154.751 20.1871 175Z"
|
|
400
|
-
fill="#0D1927"
|
|
401
|
-
/>
|
|
402
|
-
</svg>
|
|
403
|
-
)}
|
|
404
|
-
|
|
405
|
-
<style>
|
|
406
|
-
{`
|
|
407
|
-
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap');
|
|
408
|
-
.handwritten {
|
|
409
|
-
font-family: 'Caveat', cursive;
|
|
410
|
-
}
|
|
411
|
-
.fade-background {
|
|
412
|
-
background: radial-gradient(circle, rgba(255,255,255,0.8) 60%, rgba(255,255,255,0) 90%);
|
|
413
|
-
}
|
|
414
|
-
.fade-in {
|
|
415
|
-
animation: fadeIn 0.5s ease-in-out;
|
|
416
|
-
}
|
|
417
|
-
@keyframes fadeIn {
|
|
418
|
-
from { opacity: 0; }
|
|
419
|
-
to { opacity: 1; }
|
|
420
|
-
}
|
|
421
|
-
`}
|
|
422
|
-
</style>
|
|
423
|
-
<div
|
|
424
|
-
className={`border-theme-secondary relative flex items-stretch justify-center gap-6 rounded-lg border bg-gray-50 shadow-2xl`}
|
|
425
|
-
style={bubbleStyle}
|
|
426
|
-
>
|
|
427
|
-
<div className="flex flex-col items-end justify-end gap-2 pt-5">
|
|
428
|
-
<div className="bg-wizard-tour aspect-square w-40"></div>
|
|
429
|
-
</div>
|
|
430
|
-
<div className="flex flex-col items-end justify-between gap-3 p-6">
|
|
431
|
-
{/* Step Content */}
|
|
432
|
-
<div className="flex items-start">
|
|
433
|
-
<div className="flex max-w-[450px] flex-col gap-2 text-center text-2xl text-gray-800">
|
|
434
|
-
<div className="flex items-center gap-3">
|
|
435
|
-
<Logo className="w-8" />
|
|
436
|
-
<div className="text-xl font-bold">{step.title}</div>
|
|
437
|
-
</div>
|
|
438
|
-
<div className="text-xs text-gray-500">{step.description}</div>
|
|
439
|
-
</div>
|
|
440
|
-
<button
|
|
441
|
-
className="text-2xs flex cursor-pointer items-center gap-2 font-bold"
|
|
442
|
-
onClick={stopTour}
|
|
443
|
-
>
|
|
444
|
-
<X className="h-4 w-4" />
|
|
445
|
-
</button>
|
|
446
|
-
</div>
|
|
447
|
-
{/* Render Buttons Defined in Step Data */}
|
|
448
|
-
<div className="flex gap-2">
|
|
449
|
-
{step.buttons &&
|
|
450
|
-
step.buttons.map((button, index) => (
|
|
451
|
-
<ActionButton
|
|
452
|
-
key={index}
|
|
453
|
-
onClick={button.onClick}
|
|
454
|
-
className={button.className}
|
|
455
|
-
>
|
|
456
|
-
{button.label}
|
|
457
|
-
</ActionButton>
|
|
458
|
-
))}
|
|
459
|
-
</div>
|
|
460
|
-
</div>
|
|
461
|
-
</div>
|
|
462
|
-
</div>
|
|
463
|
-
|
|
464
|
-
{/* Optional: Overlay to highlight elements */}
|
|
465
|
-
{/* {<div className="fade-background fixed inset-0 z-40"></div>} */}
|
|
466
|
-
</>
|
|
467
|
-
);
|
|
468
|
-
}
|
|
469
|
-
// function AlpacaIcon() {
|
|
470
|
-
// return (
|
|
471
|
-
// <svg
|
|
472
|
-
// height="80px"
|
|
473
|
-
// width="80px"
|
|
474
|
-
// version="1.1"
|
|
475
|
-
// id="Layer_1"
|
|
476
|
-
// xmlns="http://www.w3.org/2000/svg"
|
|
477
|
-
// viewBox="0 0 512 512"
|
|
478
|
-
// >
|
|
479
|
-
// <path
|
|
480
|
-
// style={{ fill: "#EBE4DD" }}
|
|
481
|
-
// d="M102.989,153.011v153.011C119.613,428.825,184.332,506.115,256,506.115
|
|
482
|
-
// s136.387-77.29,153.012-200.092V153.011H102.989z"
|
|
483
|
-
// />
|
|
484
|
-
// <path
|
|
485
|
-
// style={{ fill: "#D8CCBC" }}
|
|
486
|
-
// d="M255.999,153.011v353.103H256c71.668,0,136.387-77.29,153.012-200.092V153.011H255.999z"
|
|
487
|
-
// />
|
|
488
|
-
// <path
|
|
489
|
-
// style={{ fill: "#A58868" }}
|
|
490
|
-
// d="M273.655,435.494h-35.31c0,41.195-17.007,41.195-29.425,41.195V512
|
|
491
|
-
// c16.246,0,34.206-4.021,47.08-18.162C268.873,507.979,286.834,512,303.08,512v-35.31C290.662,476.69,273.655,476.69,273.655,435.494
|
|
492
|
-
// z"
|
|
493
|
-
// />
|
|
494
|
-
// <path
|
|
495
|
-
// style={{ fill: "#947859" }}
|
|
496
|
-
// d="M273.655,435.494H256v58.343C268.873,507.979,286.834,512,303.08,512v-35.31
|
|
497
|
-
// C290.662,476.69,273.655,476.69,273.655,435.494z"
|
|
498
|
-
// />
|
|
499
|
-
// <path
|
|
500
|
-
// style={{ fill: "#EBE4DD" }}
|
|
501
|
-
// d="M126.529,0C81.025,0,44.138,36.888,44.138,82.391s36.888,82.391,82.391,82.391V0z"
|
|
502
|
-
// />
|
|
503
|
-
// <path
|
|
504
|
-
// style={{ fill: "#D8CCBC" }}
|
|
505
|
-
// d="M385.471,164.782c45.503,0,82.391-36.888,82.391-82.391S430.975,0,385.471,0V164.782z"
|
|
506
|
-
// />
|
|
507
|
-
// <path
|
|
508
|
-
// style={{ fill: "#BFA993" }}
|
|
509
|
-
// d="M490.407,247.172c0.643-3.83,0.996-7.758,0.996-11.77c0-39.003-31.618-70.621-70.621-70.621
|
|
510
|
-
// s-70.621,31.618-70.621,70.621c0,4.012,0.352,7.94,0.995,11.77H490.407z"
|
|
511
|
-
// />
|
|
512
|
-
// <path
|
|
513
|
-
// style={{ fill: "#EDEDED" }}
|
|
514
|
-
// d="M420.782,306.023c39.003,0,70.621-31.618,70.621-70.621H350.161
|
|
515
|
-
// C350.161,274.405,381.779,306.023,420.782,306.023z"
|
|
516
|
-
// />
|
|
517
|
-
// <path
|
|
518
|
-
// style={{ fill: "#454449" }}
|
|
519
|
-
// d="M397.241,235.401c0,12.981,10.559,23.54,23.538,23.54h0.002c12.981,0.001,23.54-10.559,23.54-23.54
|
|
520
|
-
// H397.241z"
|
|
521
|
-
// />
|
|
522
|
-
// <path
|
|
523
|
-
// style={{ fill: "#BFA993" }}
|
|
524
|
-
// d="M160.844,247.172c0.643-3.83,0.995-7.758,0.995-11.77c0-39.003-31.618-70.621-70.621-70.621
|
|
525
|
-
// S20.598,196.4,20.598,235.402c0,4.012,0.352,7.94,0.995,11.77H160.844z"
|
|
526
|
-
// />
|
|
527
|
-
// <path
|
|
528
|
-
// style={{ fill: "#EDEDED" }}
|
|
529
|
-
// d="M91.218,306.023c39.003,0,70.621-31.618,70.621-70.621H20.598
|
|
530
|
-
// C20.598,274.405,52.216,306.023,91.218,306.023z"
|
|
531
|
-
// />
|
|
532
|
-
// <path
|
|
533
|
-
// style={{ fill: "#454449" }}
|
|
534
|
-
// d="M67.678,235.401c0,12.981,10.559,23.54,23.538,23.54h0.002c12.981,0.001,23.54-10.559,23.54-23.54
|
|
535
|
-
// H67.678z"
|
|
536
|
-
// />
|
|
537
|
-
// <path
|
|
538
|
-
// style={{ fill: "#D8CCBC" }}
|
|
539
|
-
// d="M391.356,107.187c0-15.527,4.902-33.778-5.082-46.69c-8.818-11.403-28.519-12.694-43.229-20.793
|
|
540
|
-
// c-12.822-7.059-23.38-23.527-39.415-27.235c-14.505-3.356-31.411,6.442-47.63,6.442c-16.218,0-33.125-9.796-47.631-6.442
|
|
541
|
-
// c-16.036,3.708-26.595,20.178-39.415,27.237c-14.71,8.099-34.41,9.391-43.227,20.792c-9.985,12.912-5.082,31.161-5.082,46.689
|
|
542
|
-
// s-4.902,33.778,5.082,46.69c8.818,11.403,28.519,12.693,43.229,20.793c12.821,7.059,23.379,23.527,39.413,27.235
|
|
543
|
-
// c14.505,3.356,31.412-6.442,47.63-6.442s33.125,9.796,47.632,6.442c16.034-3.708,26.592-20.176,39.413-27.237
|
|
544
|
-
// c14.709-8.099,34.411-9.391,43.228-20.792C396.259,140.965,391.356,122.715,391.356,107.187z"
|
|
545
|
-
// />
|
|
546
|
-
// <path
|
|
547
|
-
// style={{ fill: "#BFA993" }}
|
|
548
|
-
// d="M386.274,60.497c-8.818-11.403-28.519-12.694-43.229-20.793
|
|
549
|
-
// c-12.822-7.059-23.38-23.527-39.415-27.235c-14.505-3.356-31.411,6.442-47.63,6.442v176.552c16.218,0,33.125,9.796,47.632,6.442
|
|
550
|
-
// c16.034-3.708,26.592-20.176,39.413-27.237c14.709-8.099,34.411-9.391,43.228-20.792c9.985-12.912,5.082-31.161,5.082-46.689
|
|
551
|
-
// S396.259,73.409,386.274,60.497z"
|
|
552
|
-
// />
|
|
553
|
-
// <path
|
|
554
|
-
// style={{ fill: "#58575D" }}
|
|
555
|
-
// d="M293.664,406.069c-6.186,18.772-22.763,39.469-37.664,39.784
|
|
556
|
-
// c-14.901-0.315-31.478-21.012-37.664-39.784c-2.858-9.591,4.529-17.529,16.478-17.655c14.124,0,28.248,0,42.372,0
|
|
557
|
-
// C289.136,388.54,296.522,396.476,293.664,406.069z"
|
|
558
|
-
// />
|
|
559
|
-
// <path
|
|
560
|
-
// style={{ fill: "#454449" }}
|
|
561
|
-
// d="M277.186,388.414c-7.062,0-14.124,0-21.186,0v57.439c14.901-0.315,31.478-21.012,37.664-39.784
|
|
562
|
-
// C296.522,396.476,289.136,388.54,277.186,388.414z"
|
|
563
|
-
// />
|
|
564
|
-
// </svg>
|
|
565
|
-
// );
|
|
566
|
-
// }
|