Files
pole-book/server/node_modules/.strapi/vite/deps/chunk-7XW66K7Y.js

232 lines
7.3 KiB
JavaScript

import {
Box,
Flex,
Typography
} from "./chunk-7XB6XSWQ.js";
import {
ForwardRef$4F
} from "./chunk-WRD5KPDH.js";
import {
require_jsx_runtime
} from "./chunk-NIAJZ5MX.js";
import {
__toESM
} from "./chunk-PLDDJCW6.js";
// node_modules/@strapi/admin/dist/admin/admin/src/components/GuidedTour/constants.mjs
var LAYOUT_DATA = {
contentTypeBuilder: {
home: {
title: {
id: "app.components.GuidedTour.home.CTB.title",
defaultMessage: "🧠 Build the content structure"
},
cta: {
title: {
id: "app.components.GuidedTour.home.CTB.cta.title",
defaultMessage: "Go to the Content type Builder"
},
type: "REDIRECT",
target: "/plugins/content-type-builder"
},
trackingEvent: "didClickGuidedTourHomepageContentTypeBuilder"
},
create: {
title: {
id: "app.components.GuidedTour.CTB.create.title",
defaultMessage: "🧠 Create a first Collection type"
},
content: {
id: "app.components.GuidedTour.CTB.create.content",
defaultMessage: "<p>Collection types help you manage several entries, Single types are suitable to manage only one entry.</p> <p>Ex: For a Blog website, Articles would be a Collection type whereas a Homepage would be a Single type.</p>"
},
cta: {
title: {
id: "app.components.GuidedTour.CTB.create.cta.title",
defaultMessage: "Build a Collection type"
},
type: "CLOSE"
},
trackingEvent: "didClickGuidedTourStep1CollectionType"
},
success: {
title: {
id: "app.components.GuidedTour.CTB.success.title",
defaultMessage: "Step 1: Completed ✅"
},
content: {
id: "app.components.GuidedTour.CTB.success.content",
defaultMessage: "<p>Good going!</p><b>⚡️ What would you like to share with the world?</b>"
},
cta: {
title: {
id: "app.components.GuidedTour.create-content",
defaultMessage: "Create content"
},
type: "REDIRECT",
target: "/content-manager"
},
trackingEvent: "didCreateGuidedTourCollectionType"
}
},
contentManager: {
home: {
title: {
id: "app.components.GuidedTour.home.CM.title",
defaultMessage: "⚡️ What would you like to share with the world?"
},
cta: {
title: {
id: "app.components.GuidedTour.create-content",
defaultMessage: "Create content"
},
type: "REDIRECT",
target: "/content-manager"
},
trackingEvent: "didClickGuidedTourHomepageContentManager"
},
create: {
title: {
id: "app.components.GuidedTour.CM.create.title",
defaultMessage: "⚡️ Create content"
},
content: {
id: "app.components.GuidedTour.CM.create.content",
defaultMessage: "<p>Create and manage all the content here in the Content Manager.</p><p>Ex: Taking the Blog website example further, one can write an Article, save and publish it as they like.</p><p>💡 Quick tip - Don't forget to hit publish on the content you create.</p>"
},
cta: {
title: {
id: "app.components.GuidedTour.create-content",
defaultMessage: "Create content"
},
type: "CLOSE"
},
trackingEvent: "didClickGuidedTourStep2ContentManager"
},
success: {
title: {
id: "app.components.GuidedTour.CM.success.title",
defaultMessage: "Step 2: Completed ✅"
},
content: {
id: "app.components.GuidedTour.CM.success.content",
defaultMessage: "<p>Awesome, one last step to go!</p><b>🚀 See content in action</b>"
},
cta: {
title: {
id: "app.components.GuidedTour.CM.success.cta.title",
defaultMessage: "Test the API"
},
type: "REDIRECT",
target: "/settings/api-tokens"
},
trackingEvent: "didCreateGuidedTourEntry"
}
},
apiTokens: {
home: {
title: {
id: "app.components.GuidedTour.apiTokens.create.title",
defaultMessage: "🚀 See content in action"
},
cta: {
title: {
id: "app.components.GuidedTour.home.apiTokens.cta.title",
defaultMessage: "Test the API"
},
type: "REDIRECT",
target: "/settings/api-tokens"
},
trackingEvent: "didClickGuidedTourHomepageApiTokens"
},
create: {
title: {
id: "app.components.GuidedTour.apiTokens.create.title",
defaultMessage: "🚀 See content in action"
},
content: {
id: "app.components.GuidedTour.apiTokens.create.content",
defaultMessage: "<p>Generate an authentication token here and retrieve the content you just created.</p>"
},
cta: {
title: {
id: "app.components.GuidedTour.apiTokens.create.cta.title",
defaultMessage: "Generate an API Token"
},
type: "CLOSE"
},
trackingEvent: "didClickGuidedTourStep3ApiTokens"
},
success: {
title: {
id: "app.components.GuidedTour.apiTokens.success.title",
defaultMessage: "Step 3: Completed ✅"
},
content: {
id: "app.components.GuidedTour.apiTokens.success.content",
defaultMessage: "<p>See content in action by making an HTTP request:</p><ul><li><p>To this URL: <light>https://'<'YOUR_DOMAIN'>'/api/'<'YOUR_CT'>'</light></p></li><li><p>With the header: <light>Authorization: bearer '<'YOUR_API_TOKEN'>'</light></p></li></ul><p>For more ways to interact with content, see the <documentationLink>documentation</documentationLink>.</p>"
},
trackingEvent: "didGenerateGuidedTourApiTokens"
}
}
};
var STATES = {
IS_DONE: "IS_DONE",
IS_ACTIVE: "IS_ACTIVE",
IS_NOT_DONE: "IS_NOT_DONE"
};
// node_modules/@strapi/admin/dist/admin/admin/src/components/GuidedTour/Ornaments.mjs
var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
var Number = ({ children, state, ...props }) => {
return state === STATES.IS_DONE || state === STATES.IS_ACTIVE ? (0, import_jsx_runtime.jsx)(Flex, {
background: "primary600",
padding: 2,
borderRadius: "50%",
width: `3rem`,
height: `3rem`,
justifyContent: "center",
...props,
children: state === STATES.IS_DONE ? (0, import_jsx_runtime.jsx)(ForwardRef$4F, {
"aria-hidden": true,
width: `1.6rem`,
fill: "neutral0"
}) : (0, import_jsx_runtime.jsx)(Typography, {
fontWeight: "semiBold",
textColor: "neutral0",
children
})
}) : (0, import_jsx_runtime.jsx)(Flex, {
borderColor: "neutral500",
borderWidth: "1px",
borderStyle: "solid",
padding: 2,
borderRadius: "50%",
width: `3rem`,
height: `3rem`,
justifyContent: "center",
...props,
children: (0, import_jsx_runtime.jsx)(Typography, {
fontWeight: "semiBold",
textColor: "neutral600",
children
})
});
};
var VerticalDivider = ({ state, ...props }) => (0, import_jsx_runtime.jsx)(Box, {
width: `0.2rem`,
height: "100%",
background: state === STATES.IS_NOT_DONE ? "neutral300" : "primary500",
hasRadius: true,
minHeight: state === STATES.IS_ACTIVE ? `8.5rem` : `6.5rem`,
...props
});
export {
LAYOUT_DATA,
STATES,
Number,
VerticalDivider
};
//# sourceMappingURL=chunk-7XW66K7Y.js.map