{"version":3,"file":"20016.2e78371c.js","sources":["webpack://app/./src/components/markdown/code.module.scss?feba","webpack://app/./src/components/markdown/markdown.module.scss?4fc9","webpack://app/./src/components/markdown/CurieMarkdown.tsx","webpack://app/./src/components/markdown/HightlightedCode.tsx","webpack://app/./src/components/markdown/a.tsx","webpack://app/./src/components/markdown/code.tsx","webpack://app/./src/components/markdown/header.tsx","webpack://app/./src/components/markdown/img.tsx","webpack://app/./src/components/markdown/strong.tsx","webpack://app/./src/components/markdown/table.tsx","webpack://app/./src/hooks/utils/useThrottledState.tsx","webpack://app/./src/services/analyticsService.ts","webpack://app/./src/store/index.ts","webpack://app/./src/utils/storage.tsx"],"sourcesContent":["// extracted by css-extract-rspack-plugin\nexport default {\"codeblock\":\"codeblock-YL9nD7\",\"header\":\"header-bFI4cM\",\"copyButton\":\"copyButton-DZJ8tW\"};","// extracted by css-extract-rspack-plugin\nexport default {\"markdown\":\"markdown-z_gJ0J\"};","import { memo } from 'react'\nimport Markdown, { defaultUrlTransform } from 'react-markdown'\nimport rehypeRaw from 'rehype-raw'\nimport remarkGfm from 'remark-gfm'\nimport {\n a,\n Code as code,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n img,\n Pre as pre,\n strong,\n table,\n td,\n th,\n tr\n} from '~/components/markdown'\nimport { cm } from '~/utils/utils'\nimport styles from './markdown.module.scss'\n\ninterface Props {\n text: string\n fontSize?: 'sm' | 'base'\n className?: string\n}\n\nconst CurieMarkdown = ({ text, fontSize = 'base', className }: Props) => {\n return (\n {\n if (url.startsWith('data:')) {\n return url\n }\n return defaultUrlTransform(url)\n }}\n >\n {text}\n \n )\n}\n\nexport default memo(CurieMarkdown, (prev, next) => prev.text === next.text)\n","import { transformerNotationErrorLevel } from '@shikijs/transformers'\nimport { memo, useState } from 'react'\nimport { useAsync } from 'react-use'\nimport { createHighlighter, ShikiTransformer } from 'shiki'\n\ninterface HighlightedCodeProps {\n code: string\n language: string\n}\n\nconst SUPPORTED_LANGUAGES = ['xml', 'markdown', 'yaml', 'toml', 'json', 'java']\n\nexport const highlighter = await createHighlighter({\n langs: SUPPORTED_LANGUAGES,\n themes: ['github-light']\n})\n\nfunction _HighlightedCode({ code, language }: HighlightedCodeProps) {\n const [html, setHtml] = useState('')\n\n useAsync(async () => {\n let lang = language\n if (!SUPPORTED_LANGUAGES.includes(language)) {\n lang = 'yaml'\n }\n\n const __html = await highlighter.codeToHtml(code, {\n lang,\n theme: 'github-light',\n transformers: [\n transformerNotationErrorLevel() as ShikiTransformer,\n {\n pre(node) {\n node.properties.style = 'background-color: transparent;padding:8px;'\n return node\n }\n }\n ]\n })\n setHtml(__html)\n }, [code, language])\n\n return
\n}\n\nexport const HighlightedCode = memo(_HighlightedCode, (prev, next) => prev.code === next.code)\n","import { Link } from '@curie/react'\nimport { AnchorHTMLAttributes, ClassAttributes } from 'react'\nimport { ExtraProps } from 'react-markdown'\n\ntype Props = ClassAttributes &\n AnchorHTMLAttributes &\n ExtraProps\n\nexport function a({ children, href }: Props) {\n return (\n \n {children}\n \n )\n}\n","import { FC, memo, ReactNode, useState } from 'react'\nimport { ExtraProps } from 'react-markdown'\nimport { PrismAsyncLight as SyntaxHighlighter } from 'react-syntax-highlighter'\nimport css from 'react-syntax-highlighter/dist/esm/languages/prism/css'\nimport js from 'react-syntax-highlighter/dist/esm/languages/prism/javascript'\nimport yaml from 'react-syntax-highlighter/dist/esm/languages/prism/yaml'\nimport { CheckIcon, CopyIcon } from '~/constants/icon'\nimport { useThrottledState } from '~/hooks'\nimport { trace } from '~/services/analyticsService'\nimport { cm } from '~/utils/utils'\nimport styles from './code.module.scss'\nimport { HighlightedCode } from './HightlightedCode'\n\nSyntaxHighlighter.registerLanguage('markdown', yaml)\nSyntaxHighlighter.registerLanguage('yaml', yaml)\nSyntaxHighlighter.registerLanguage('raml', yaml)\nSyntaxHighlighter.registerLanguage('yml', yaml)\nSyntaxHighlighter.registerLanguage('javascript', js)\nSyntaxHighlighter.registerLanguage('dataweave', js)\nSyntaxHighlighter.registerLanguage('dwl', js)\nSyntaxHighlighter.registerLanguage('css', css)\n\ninterface Props {\n children: string\n className?: string\n}\n\ntype CodeProps = Props & ExtraProps\n\nexport const Code: FC = memo(({ children, className = '' }) => {\n return (\n \n {children}\n \n )\n})\n\ninterface PreProps {\n children: ReactNode\n}\n\nexport const Pre: FC = ({ children }) => {\n const [isCopied, setIsCopied] = useState(false)\n\n const child = Array.isArray(children) ? children[0] : children\n const className = child?.props?.className || ''\n const languageMatch = /language-(\\w+)/.exec(className)\n const code = useThrottledState(child.props.children, 250)\n const language = languageMatch ? languageMatch[1] : 'task'\n\n const copyToClipboard = () => {\n if (!navigator.clipboard || !navigator.clipboard.writeText) return\n const text = child.props.children.trim()\n navigator.clipboard.writeText(text).then(() => {\n setIsCopied(true)\n setTimeout(() => setIsCopied(false), 2000)\n })\n trace({\n event: 'copy_to_clipboard',\n labels: { text, type: 'click' }\n })\n }\n\n return (\n \n \n {isCopied ? (\n \n ) : (\n \n )}\n \n \n
\n )\n}\n","import { DetailedHTMLProps, HTMLAttributes } from 'react'\nimport { ExtraProps } from 'react-markdown'\n\ntype HeaderProps = DetailedHTMLProps, HTMLHeadingElement> &\n ExtraProps\n\nexport function h1({ children, ...props }: HeaderProps) {\n const childrenStr =\n typeof children === 'string' ? children : Array.isArray(children) ? children.join('') : ''\n\n const id = childrenStr.toLowerCase().replace(/\\s+/g, '-')\n\n return (\n

\n {children}\n

\n )\n}\n\nexport function h2({ children, ...props }: HeaderProps) {\n return (\n

\n {children}\n

\n )\n}\n\nexport function h3({ children, ...props }: HeaderProps) {\n return (\n

\n {children}\n

\n )\n}\n\nexport function h4({ children, ...props }: HeaderProps) {\n return (\n

\n {children}\n

\n )\n}\n\nexport function h5({ children, ...props }: HeaderProps) {\n return (\n
\n {children}\n
\n )\n}\n\nexport function h6({ children, ...props }: HeaderProps) {\n return (\n
\n {children}\n
\n )\n}\n","import { ClassAttributes, ImgHTMLAttributes, useState } from 'react'\nimport { ExtraProps } from 'react-markdown'\nimport { PhotoProvider, PhotoView } from 'react-photo-view'\nimport 'react-photo-view/dist/react-photo-view.css'\nimport { IoMdDownload } from '@react-icons/all-files/io/IoMdDownload'\n\ntype Props = ClassAttributes & ImgHTMLAttributes & ExtraProps\n\nexport function img({ src, alt, ...props }: Props) {\n const downloadFileName = \"diagram.png\"\n const [isHovered, setIsHovered] = useState(false); \n return (\n \n
setIsHovered(true)} \n onMouseLeave={() => setIsHovered(false)} \n >\n \n \n \n {isHovered ? \n \n : null}\n
\n
\n )\n}\n","import {\n ClassAttributes,\n HTMLAttributes\n} from 'react'\n\ntype StrongProps = ClassAttributes & HTMLAttributes\n\nexport function strong({ children, ...props }: StrongProps) {\n return (\n \n {children}\n \n )\n}\n","import {\n ClassAttributes,\n HTMLAttributes,\n TableHTMLAttributes,\n TdHTMLAttributes,\n ThHTMLAttributes\n} from 'react'\n\ntype TableProps = ClassAttributes & TableHTMLAttributes\ntype TrProps = ClassAttributes & HTMLAttributes\ntype ThProps = ClassAttributes & ThHTMLAttributes\ntype TdProps = ClassAttributes & TdHTMLAttributes\n\nexport function table({ children, ...props }: TableProps) {\n return (\n \n {children}\n
\n )\n}\n\nexport function tr({ children, ...props }: TrProps) {\n return (\n \n {children}\n \n )\n}\n\nexport function th({ children, ...props }: ThProps) {\n return (\n \n {children}\n \n )\n}\n\nexport function td({ children, ...props }: TdProps) {\n return (\n \n {children}\n \n )\n}\n","import { throttle } from 'lodash'\nimport { useCallback, useEffect, useState } from 'react'\n\nexport function useThrottledState(initialState: T, delay: number = 250) {\n const [state, setState] = useState(initialState)\n\n const throttledSetState = useCallback(\n throttle(state => setState(state), delay, { trailing: true }),\n []\n )\n\n useEffect(() => {\n throttledSetState(initialState)\n }, [initialState])\n\n return state\n}\n","import { TraceEvent } from '~/protos/agents'\nimport { getDeviceId } from '~/utils/storage'\nimport { Socket } from './socket'\n\nexport interface DataPoint {\n event: keyof typeof TraceEvent\n url?: string\n source?: string\n client_id?: string\n labels?: Record\n}\n\nconst TRACE_URL = 'https://trace.curietech.workers.dev/api/analytics/trace'\n\nexport function trace(event: keyof typeof TraceEvent): Promise\nexport function trace(event: Omit): Promise\nexport function trace(point: Omit | string) {\n const dataPoint = (typeof point === 'string' ? { event: point } : point) as DataPoint\n const labels = dataPoint.labels || {}\n const dataPointToBeUsed = Object.assign(dataPoint, {\n url: window.location.href,\n source: dataPoint.source || localStorage.getItem('source'),\n client_id: getDeviceId(),\n client_version: __GIT_REV__.trim(),\n labels: Object.assign(labels, {\n is_ws_connected: Socket.isConnected()\n })\n })\n return fetch(TRACE_URL, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify(dataPointToBeUsed)\n })\n}\n","import { combineReducers, configureStore } from '@reduxjs/toolkit'\nimport appReducer from './appSlice'\nimport campaignLimitReducer from './campaignLimitSlice'\nimport chatReducer from './chatSlice'\nimport codeReducer from './codeSlice'\nimport connectionReducer from './connectionSlice'\nimport containerReducer from './containerSlice'\nimport conversationReducer from './conversationSlice'\nimport dirHandleReducer from './dirHandleSlice'\nimport editorReducer from './editorSlice'\nimport errorsReducer from './errorsSlice'\nimport fileExplorerReducer from './fileExplorerSlice'\nimport flowReducer from './flowSlice'\nimport galleryScreenReducer from './galleryScreenSlice'\nimport inlineChatReducer from './inlineChatSlice'\nimport modalsReducer from './modalSlice'\nimport pageReducer from './pageSlice'\nimport settingReducer from './settingsSlice'\nimport taskFormReducer from './taskFormSlice'\nimport tutorialReducer from './tutorialSlice'\nimport { loadStateFromLocalStorage, localStorageMiddleware } from './utils'\n\nexport const rootReducer = combineReducers({\n app: appReducer,\n conversation: conversationReducer,\n chat: chatReducer,\n code: codeReducer,\n errors: errorsReducer,\n container: containerReducer,\n settings: settingReducer,\n flow: flowReducer,\n fileExplorer: fileExplorerReducer,\n editor: editorReducer,\n inlineChat: inlineChatReducer,\n modals: modalsReducer,\n connection: connectionReducer,\n tutorial: tutorialReducer,\n page: pageReducer,\n taskForm: taskFormReducer,\n galleryScreen: galleryScreenReducer,\n campaignLimit: campaignLimitReducer,\n dirHandle: dirHandleReducer\n})\n\nconst store = configureStore({\n reducer: rootReducer,\n preloadedState: {\n container: loadStateFromLocalStorage('container'),\n settings: loadStateFromLocalStorage('settings'),\n connection: loadStateFromLocalStorage('connection'),\n tutorial: loadStateFromLocalStorage('tutorial'),\n campaignLimit: loadStateFromLocalStorage('campaignLimit'),\n dirHandle: loadStateFromLocalStorage('dirHandle')\n },\n middleware: getDefaultMiddleware =>\n getDefaultMiddleware().concat([\n localStorageMiddleware('container'),\n localStorageMiddleware('settings'),\n localStorageMiddleware('connection'),\n localStorageMiddleware('tutorial'),\n localStorageMiddleware('campaignLimit'),\n localStorageMiddleware('dirHandle')\n ])\n})\n\nexport type RootState = ReturnType\nexport type AppStore = typeof store\nexport type AppDispatch = typeof store.dispatch\n\nexport default store\n","const getCachedConfig = (): { [key: string]: string } => {\n const config = localStorage.getItem('ALL_SETTINGS')\n if (config === null || config === undefined) return {}\n try {\n return JSON.parse(config)\n } catch (e) {\n return {}\n }\n}\n\nexport { getCachedConfig }\n\nexport const getDeviceId = window.getDeviceId as () => string\n"],"names":["memo","text","fontSize","className","Markdown","cm","styles","code","pre","a","img","tr","td","th","table","strong","h1","h2","h3","h4","h5","h6","remarkGfm","rehypeRaw","url","defaultUrlTransform","prev","next","SUPPORTED_LANGUAGES","highlighter","createHighlighter","HighlightedCode","language","html","setHtml","useState","useAsync","lang","__html","transformerNotationErrorLevel","node","children","href","Link","SyntaxHighlighter","yaml","js","css","Code","Pre","isCopied","setIsCopied","child","Array","languageMatch","useThrottledState","navigator","setTimeout","trace","CheckIcon","CopyIcon","props","id","childrenStr","src","alt","isHovered","setIsHovered","PhotoProvider","PhotoView","IoMdDownload","initialState","delay","state","setState","throttledSetState","useCallback","throttle","useEffect","point","dataPoint","labels","fetch","JSON","Object","window","localStorage","getDeviceId","__GIT_REV__","Socket","rootReducer","combineReducers","appReducer","conversationReducer","chatReducer","codeReducer","errorsReducer","containerReducer","settingReducer","flowReducer","fileExplorerReducer","editorReducer","inlineChatReducer","modalsReducer","connectionReducer","tutorialReducer","pageReducer","taskFormReducer","galleryScreenReducer","campaignLimitReducer","dirHandleReducer","configureStore","loadStateFromLocalStorage","getDefaultMiddleware","localStorageMiddleware"],"mappings":"iIACA,MAAe,CAAC,UAAY,mBAAmB,OAAS,gBAAgB,WAAa,mBAAmB,C,yCCAxG,MAAe,CAAC,SAAW,iBAAiB,C,4fCsE5C,MAAeA,AAAAA,GAAAA,EAAAA,IAAAA,AAAAA,EAzCQ,CAAC,CAAEC,KAAAA,CAAI,CAAEC,SAAAA,EAAW,MAAM,CAAEC,UAAAA,CAAS,CAAS,GAEjE,UAACC,EAAAA,CAAQA,CAAAA,CACP,UAAWC,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EACTC,EAAAA,CAAAA,CAAAA,QAAe,CACf,6CACAJ,AAAa,OAAbA,EAAoB,UAAY,YAChCA,AAAa,OAAbA,EAAoB,kBAAoB,QACxCC,GAEF,WAAY,CACV,KAAMI,EAAAA,EAAIA,CACV,IAAKC,EAAAA,EAAGA,CACRC,EAACA,EAAAA,CAAAA,CACDC,IAAGA,EAAAA,EAAAA,CACHC,GAAEA,EAAAA,EAAAA,CACFC,GAAEA,EAAAA,EAAAA,CACFC,GAAEA,EAAAA,EAAAA,CACFC,MAAKA,EAAAA,EAAAA,CACLC,OAAMA,EAAAA,EAAAA,CACNC,GAAEA,EAAAA,EAAAA,CACFC,GAAEA,EAAAA,EAAAA,CACFC,GAAEA,EAAAA,EAAAA,CACFC,GAAEA,EAAAA,EAAAA,CACFC,GAAEA,EAAAA,EAAAA,CACFC,GAAEA,EAAAA,EAAAA,AACJ,EACA,cAAe,CAACC,EAAAA,CAASA,CAAC,CAC1B,cAAe,CAACC,EAAAA,CAASA,CAAC,CAC1B,aAAc,AAACC,GACb,AAAIA,EAAI,UAAU,CAAC,SACVA,EAEFC,AAAAA,GAAAA,EAAAA,CAAAA,AAAAA,EAAoBD,G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