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ack://Fyndeck/./src/blockService.ts","webpack://Fyndeck/./src/codes/_20.def/_modDataDict.ts","webpack://Fyndeck/./src/codes/_10.sys/A0Committee.ts","webpack://Fyndeck/./src/codes/_90.lang/langUtils.ts","webpack://Fyndeck/./src/codes/_10.sys/UICommittee.ts","webpack://Fyndeck/./src/codes/_10.sys/InitCommittee.ts","webpack://Fyndeck/./src/codes/_30.biz/monAIPromptProvider.ts","webpack://Fyndeck/./src/codes/_30.biz/monDefaultPageTemplate.ts","webpack://Fyndeck/./src/codes/_30.biz/monUserManager.ts","webpack://Fyndeck/./src/codes/_30.biz/monLicenseProvider.ts","webpack://Fyndeck/./src/codes/_30.biz/monAIManager.ts","webpack://Fyndeck/./src/codes/_30.biz/monSERPManager.ts","webpack://Fyndeck/./src/codes/_30.biz/monPageTemplateManager.ts","webpack://Fyndeck/./src/codes/_30.biz/monStorageManager.ts","webpack://Fyndeck/./src/codes/_30.biz/monSharingManager.ts","webpack://Fyndeck/./src/codes/_90.lang/i18n.ts","webpack://Fyndeck/./src/codes/_30.biz/monUserContentManager.ts","webpack://Fyndeck/./src/codes/_30.biz/monCommandManager.ts","webpack://Fyndeck/./src/codes/_40.view/menu/UserAccountMenu.vue?0573","webpack://Fyndeck/./src/codes/_40.view/menu/UserAccountMenu.vue","webpack://Fyndeck/./src/codes/_40.view/panel/panMain.vue?8d8c","webpack://Fyndeck/./src/codes/_40.view/panel/panMain.vue","webpack://Fyndeck/./src/codes/_40.view/divUserInputCenter.vue?dfaf","webpack://Fyndeck/./src/codes/_40.view/divUserInputCenter.vue","webpack://Fyndeck/./src/codes/_40.view/divNavButtonBar.vue?6332","webpack://Fyndeck/./src/codes/_40.view/divNavButtonBar.vue","webpack://Fyndeck/./src/codes/_40.view/menu/SysTutorialMenu.vue?0094","webpack://Fyndeck/./src/codes/_40.view/menu/SysTutorialMenu.vue","webpack://Fyndeck/./src/codes/_40.view/menu/InsertObjectMenu.vue?213f","webpack://Fyndeck/./src/codes/_40.view/menu/InsertObjectMenu.vue","webpack://Fyndeck/./src/codes/_40.view/menu/SysLanguageMenu.vue?1b50","webpack://Fyndeck/./src/codes/_40.view/menu/SysLanguageMenu.vue","webpack://Fyndeck/./src/codes/_40.view/compo/SysSlidePreviewDialog.vue?9e55","webpack://Fyndeck/./src/codes/_40.view/compo/SysSlidePreviewDialog.vue","webpack://Fyndeck/./src/codes/_40.view/panel/panSysFuncBar.vue?0402","webpack://Fyndeck/./src/codes/_40.view/panel/panSysFuncBar.vue","webpack://Fyndeck/./src/codes/_40.view/menu/PageOutputMenu.vue?52b5","webpack://Fyndeck/./src/codes/_40.view/menu/PageOutputMenu.vue","webpack://Fyndeck/./src/codes/_40.view/menu/PagePublishMenu.vue?6cc0","webpack://Fyndeck/./src/codes/_40.view/menu/PagePublishMenu.vue","webpack://Fyndeck/./src/codes/_40.view/menu/PagePlayMenu.vue?776f","webpack://Fyndeck/./src/codes/_40.view/menu/PagePlayMenu.vue","webpack://Fyndeck/./src/codes/_40.view/menu/PageThemeMenu.vue?2538","webpack://Fyndeck/./src/codes/_40.view/menu/PageThemeMenu.vue","webpack://Fyndeck/./src/codes/_40.view/menu/AddCustomMenu.vue?1016","webpack://Fyndeck/./src/codes/_40.view/menu/AddCustomMenu.vue","webpack://Fyndeck/./src/codes/_40.view/compo/SysPromptEditor.vue?3dff","webpack://Fyndeck/./src/codes/_40.view/compo/SysPromptEditor.vue","webpack://Fyndeck/./src/codes/_40.view/compo/PageMemoView.vue?ac3c","webpack://Fyndeck/./src/codes/_40.view/compo/PageMemoView.vue","webpack://Fyndeck/./src/codes/_40.view/panel/panSideBar.vue?3b48","webpack://Fyndeck/./src/codes/_40.view/panel/panSideBar.vue","webpack://Fyndeck/./src/codes/_40.view/panel/panDiveMenuBar.vue?0a55","webpack://Fyndeck/./src/codes/_40.view/panel/panDiveMenuBar.vue","webpack://Fyndeck/./src/codes/_40.view/compo/PageDiveIndex.vue?d92c","webpack://Fyndeck/./src/codes/_40.view/compo/PageDiveIndex.vue","webpack://Fyndeck/./src/codes/_40.view/compo/PageFilterIndex.vue?87e0","webpack://Fyndeck/./src/codes/_40.view/compo/PageFilterIndex.vue","webpack://Fyndeck/./src/codes/_40.view/panel/panLockingUI.vue?f689","webpack://Fyndeck/./src/codes/_40.view/panel/panLockingUI.vue","webpack://Fyndeck/./src/codes/_40.view/panel/panExceptionDialogs.vue?72cf","webpack://Fyndeck/./src/codes/_40.view/panel/panExceptionDialogs.vue","webpack://Fyndeck/./src/codes/_40.view/divResultPages.vue?29cf","webpack://Fyndeck/./src/codes/_40.view/divResultPages.vue","webpack://Fyndeck/./src/codes/_40.view/divEmptyPage.vue?6ab8","webpack://Fyndeck/./src/codes/_40.view/divEmptyPage.vue","webpack://Fyndeck/./src/codes/_40.view/menu/SectionContextMenu.vue?2d9a","webpack://Fyndeck/./src/codes/_40.view/menu/SectionContextMenu.vue","webpack://Fyndeck/./src/codes/_40.view/compo/PageSectionElement.vue?b804","webpack://Fyndeck/./src/codes/_40.view/compo/PageSectionElement.vue","webpack://Fyndeck/./src/codes/_40.view/compo/PageContentTable.vue?3d6c","webpack://Fyndeck/./src/codes/_40.view/compo/PageContentTable.vue","webpack://Fyndeck/./src/codes/_40.view/compo/PageFileIndex.vue?9fde","webpack://Fyndeck/./src/codes/_40.view/compo/PageFileIndex.vue","webpack://Fyndeck/./src/codes/_40.view/menu/HeaderSectionMenu.vue?88e0","webpack://Fyndeck/./src/codes/_40.view/menu/HeaderSectionMenu.vue","webpack://Fyndeck/./src/codes/_40.view/compo/PageSectionView.vue?9d46","webpack://Fyndeck/./src/codes/_40.view/compo/PageSectionView.vue","webpack://Fyndeck/./src/codes/_40.view/compo/PageSectionEditor.vue?a5a1","webpack://Fyndeck/./src/codes/_40.view/compo/PageSectionEditor.vue","webpack://Fyndeck/./src/codes/_40.view/compo/PagePlayOptionsEditor.vue?06d1","webpack://Fyndeck/./src/codes/_40.view/compo/PagePlayOptionsEditor.vue","webpack://Fyndeck/./src/codes/_40.view/panel/panRefInfoBar.vue?8cac","webpack://Fyndeck/./src/codes/_40.view/panel/panRefInfoBar.vue","webpack://Fyndeck/./src/codes/_40.view/compo/PageSectionRefItem.vue?db08","webpack://Fyndeck/./src/codes/_40.view/compo/PageSectionRefItem.vue","webpack://Fyndeck/./src/main.ts","webpack://Fyndeck/webpack/bootstrap","webpack://Fyndeck/webpack/runtime/amd options","webpack://Fyndeck/webpack/runtime/chunk loaded","webpack://Fyndeck/webpack/runtime/compat get default export","webpack://Fyndeck/webpack/runtime/define property getters","webpack://Fyndeck/webpack/runtime/global","webpack://Fyndeck/webpack/runtime/hasOwnProperty shorthand","webpack://Fyndeck/webpack/runtime/jsonp chunk loading","webpack://Fyndeck/webpack/startup"],"sourcesContent":["// *** check GeoLoc ***\r\n\r\nfunction checkGeoLoc(xGeoData: any) {\r\n // console.log(\"*xGeo\",xGeoData)\r\n if (xGeoData.country_code2 == \"CN\") {\r\n document.body.innerHTML = `\r\n
\r\n

404 Not Found

\r\n

The page you are looking for is not ready or available in your region or country.

\r\n
\r\n \r\n`;\r\n document.title = \"404 Not Found\";\r\n }\r\n}\r\n\r\n\r\nif (window.location.hostname != \"localhost\") {\r\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n// @ts-ignore\r\n _ipgeolocation.getGeolocation(checkGeoLoc, \"de7016aa31cf462087c6a138da27c6d4\");\r\n}\r\n\r\n// *** check Screen resolution ***\r\nif (window.innerWidth < 900) {\r\n document.body.innerHTML = `\r\n
\r\n

Screen Size Issue Found

\r\n

\r\n Oops! It looks like your screen resolution or browser window size is too small for optimal viewing of our app. \r\n
\r\n For the best experience, please adjust your browser size or switch to a device with a larger screen.

\r\n
\r\n Then refresh this page.

\r\n
\r\n \r\n`;\r\n document.title = \"Screen Size Issue Found\";\r\n}","//@TS-NOCHECK\r\n// module.exports=exports;\r\n\r\nexport enum TYPE_TEST_DATA {\r\n TEST_OK = \"TEST_OK\",\r\n}\r\n\r\nexport enum TYPE_SUBSCRIPTION_STATUS {\r\n UNKNOWN = \"\",\r\n VALID = \"VALID\",\r\n EXPIRED = \"EXPIRED\",\r\n NOT_FOUND = \"NOT_FOUND\",\r\n OUT_OF_CREDITS = \"OUT_OF_CREDITS\",\r\n BYO_FREE = \"BYO_FREE\",\r\n}\r\n\r\nexport enum TYPE_SUBSCRIPTION_PLAN {\r\n FREE = \"\",\r\n BYO = \"BYO\",\r\n Plus = \"Plus\",\r\n Pro = \"Pro\",\r\n Ultra = \"Ultra\",\r\n Lite = \"Lite\",\r\n Premium = \"Premium\",\r\n}\r\n\r\nexport enum TYPE_SESSION_STATUS {\r\n EMPTY = \"\",\r\n RUNNING = \"RUNNING\",\r\n CANCELED = \"CANCELED\",\r\n FINISHED = \"FINISHED\",\r\n}\r\n\r\nexport enum TYPE_EVENT {\r\n AI_TRNS_STRAT = \"AI_TRNS_START\",\r\n AI_TRNS_DONE = \"AI_TRNS_DONE\",\r\n\r\n AI_GEN_STRAT = \"AI_GEN_START\",\r\n AI_GENERATING = \"AI_GENERATING\",\r\n AI_GEN_ERROR = \"AI_GEN_ERROR\",\r\n AI_GEN_FOLLOWUP_DONE = \"AI_GEN_FOLLOWUP_DONE\",\r\n AI_GEN_POINTS_DONE = \"AI_GEN_POINTS_DONE\",\r\n AI_GEN_SUMMARY_DONE = \"AI_GEN_SUMMARY_DONE\",\r\n AI_GEN_BREAKDOWN_DONE = \"AI_GEN_BREAKDOWN_DONE\",\r\n AI_GEN_CONCLUSION_DONE = \"AI_GEN_CONCLUSION_DONE\",\r\n AI_GEN_OUTLINE_DONE = \"AI_GEN_OUTLINE_DONE\",\r\n AI_GEN_CANCELED = \"AI_GEN_CANCELED\",\r\n\r\n MAN_GEN_FOLLOWUP_DONE = \"MAN_GEN_FOLLOWUP_DONE\",\r\n\r\n SERP_START = \"SERP_START\",\r\n SERP_DONE = \"SERP_DONE\",\r\n\r\n SCRP_START = \"SCRP_START\",\r\n SCRP_DONE = \"SCRP_DONE\",\r\n\r\n\r\n OUT_OF_CREDITS = \"OUT_OF_CREDITS\",\r\n\r\n\r\n KEYPRESSED_ESC = \"KEYPRESSED_ESC\",\r\n\r\n PAGE_SAVED = \"PAGE_SAVED\",\r\n PAGE_STATE_CHANGED = \"PAGE_STATE_CHANGED\",\r\n PAGE_COLUMN_RESET = \"PAGE_COLUMN_RESET\",\r\n PAGE_COLUMN_NEW = \"PAGE_COLUMN_NEW\",\r\n PAGE_COLUMN_FILTER_CHANGED = \"PAGE_COLUMN_FILTER_CHANGED\",\r\n\r\n PAGE_SECTION_STAR_CHANGED = \"PAGE_SECTION_STAR_CHANGED\",\r\n PAGE_SECTION_STARRED_POS_CHANGED = \"PAGE_SECTION_STARRED_POS_CHANGED\",\r\n PAGE_SECTION_SELECTION_CHANGED = \"PAGE_SECTION_SELECTION_CHANGED\",\r\n\r\n PAGE_GO_BACK = \"PAGE_GO_BACK\",\r\n\r\n HEADER_OPEN_STATE_CHANGED = \"HEADER_OPEN_STATE_CHANGED\",\r\n\r\n CALL_USER_INPUT_CENTER = \"CALL_USER_INPUT_CENTER\",\r\n CALL_USER_INPUT_CENTER_BREAK_DOWN = \"CALL_USER_INPUT_CENTER_BREAK_DOWN\",\r\n CALL_USER_INPUT_CENTER_SUMMARIZE=\"CALL_USER_INPUT_CENTER_SUMMARIZE\",\r\n CALL_IMAGE_SEARCH_FOR_NOTE_CARD = \"CALL_IMAGE_SEARCH_FOR_NOTE_CARD\",\r\n\r\n USER_READY = \"USER_READY\",\r\n\r\n LANG_CHANGED = \"LANG_CHANGED\",\r\n\r\n}\r\n\r\nexport enum TYPE_INDEX_SIDEBAR {\r\n SIDEBAR_CLOSED = \"\",\r\n PAGE_COLUMN_INDEX = \"PAGE_COLUMN_INDEX\",\r\n PAGE_FILE_INDEX = \"PAGE_FILE_INDEX\",\r\n SYS_ROLE_INDEX = \"SYS_ROLE_INDEX\",\r\n PAGE_PLAY_OPTIONS_EDITOR = \"PAGE_PLAY_OPTIONS_EDITOR\",\r\n PAGE_SECTION_TEXT_EDITOR = \"PAGE_SECTION_TEXT_EDITOR\",\r\n PAGE_SECTION_IMAGE_EDITOR = \"PAGE_SECTION_IMAGE_EDITOR\",\r\n PAGE_SECTION_ORDER_EDITOR = \"PAGE_SECTION_ORDER_EDITOR\",\r\n SYS_PROMPT_SITE_EDITOR = \"SYS_PROMPT_SITE_EDITOR\",\r\n SYS_PROMPT_ROLE_EDITOR = \"SYS_PROMPT_ROLE_EDITOR\",\r\n SYS_SEARCHFLOW_EDITOR = \"SYS_SEARCHFLOW_EDITOR\",\r\n SYS_SLIDE_PREVIEW_DIALOG = \"SYS_SLIDE_PREVIEW_DIALOG\",\r\n MEMO_VIEW = \"MEMO_VIEW\",\r\n}\r\n\r\nexport enum TYPE_FILTER_CODE {\r\n NONE = \"\",\r\n STARRED = \"starred\",\r\n RED = \"red\",\r\n YELLOW = \"yellow\",\r\n ORANGE = \"orange\",\r\n GREEN = \"green\",\r\n BLUE = \"blue\",\r\n PURPLE = \"purple\",\r\n}\r\n\r\nexport enum TYPE_SECTION {\r\n COVER = \"COVER\",\r\n HEADER = \"HEADER\",\r\n NOTE_CARD = \"NOTE_CARD\",\r\n /*KEYWORDS = \"KEYWORDS\",\r\n LINKS = \"LINKS\",*/\r\n BACKGROUND = \"BACKGROUND\",\r\n\r\n // WEB_PAGE_CARD = \"WEB_PAGE_CARD\", //todo: web url ref links, Jumper(to another Page)?, Images? ...\r\n}\r\n\r\nexport enum TYPE_LAYOUT_CODE {\r\n DEFAULT = \"ListB\",\r\n COMPACT = \"FreeCol\",\r\n FOLDED = \"3ColA\",\r\n}\r\n\r\n\r\nexport enum TYPE_AI_ACTION {\r\n UserInputWithoutAI = \"UserInputWithoutAI\",\r\n ForFollowUps = \"ForFollowUps\",\r\n ForOutline = \"ForOutline\",\r\n ForPoints = \"ForPoints\", // Quick Reply (with translating)\r\n ForConclusion = \"ForConclusion\", // Conclude referencer text in a topic group\r\n ForSummary = \"ForSummary\", // Summarize long text\r\n\r\n ForBreakdown = \"ForBreakdown\", // X. Break down user input (page section)\r\n ForMoreLikeThis = \"ForMoreLikeThis\", // X\r\n ForOneSectionContentAppending = \"ForOneSectionContentAppending\", // Continue Writing\r\n ForTranslatingNote = \"ForTranslatingNote\",\r\n\r\n ForAINote = \"ForAINote\", // X\r\n ForAnalyzing = \"ForAnalyzing\", // X Think Deeper\r\n ForRelated = \"ForRelated\", // X Related Topics\r\n ForQuestions = \"ForQuestions\", // X\r\n ForTitle = \"ForTitle\", // X\r\n}\r\n\r\nexport enum TYPE_WEB_SEARCH_ACTION {\r\n Default = \"\", // SERPER\r\n EXA = \"EXA\", // EXA\r\n}\r\n\r\nexport enum TYPE_SYS_MOD_CODE {\r\n NONE = \"\",\r\n K12 = \"K12\", // for kids under12\r\n\r\n}\r\n\r\n\r\nexport enum TYPE_NOTE_SOURCE {\r\n WEB_DEFAULT = \"\",\r\n WEB_EXA = \"EXA\",\r\n WEB_IMAGE = \"IMG\",\r\n USER_MEMO = \"MEMO\",\r\n AI_DEFAULT = \"AI0\",\r\n}\r\n\r\n\r\nexport enum TYPE_INPUT_COMMAND {\r\n /*USER_HEADER = \"/Header\",\r\n USER_MEMO = \"/Memo\",*/\r\n\r\n AI_FOLLOWUPS = \"/AIFollowups\",\r\n AI_PLUS_SEARCH = \"/AIPlusSearch\",\r\n\r\n IMAGE_SEARCH = \"/ImageSearch\",\r\n NEWS_SEARCH = \"/NewsSearch\",\r\n\r\n AI_REPLY = \"/AIReply\",\r\n AI_SUMMARIZE = \"/AISummarize\",\r\n AI_OUTLINE = \"/AIOutline\",\r\n\r\n WEB_SEARCH = \"/WebSearch\",\r\n WEB_SCRAPE = \"/WebScrape\",\r\n\r\n BLANK_TOPIC = \"/BlankTopic\",\r\n NONE = \"\",\r\n\r\n /*AI_NOTE = \"/AINote\",\r\n AI_QUESTIONS = \"/AIQuestions\",\r\n AI_ANALYZING = \"/AIAnalyzing\",\r\n AI_RELATED = \"/AIRelated\",*/\r\n\r\n}\r\n\r\nexport enum TYPE_INPUT_STEP_NAME {\r\n START = \"START\", //\r\n INPUT = \"INPUT\", //\r\n CONFIRM = \"CONFIRM\", //\r\n}\r\n\r\nexport enum TYPE_INPUT_SPECIAL_MODE {\r\n NONE = \"\",\r\n ADD_HEADER = \"ADD_HEADER\",\r\n ADD_NOTE_CARD = \"ADD_NOTE_CARD\",\r\n ADD_BOOKMARKS = \"ADD_BOOKMARKS\",\r\n}\r\n\r\nexport enum TYPE_CHATTING_PREVIEW {\r\n NONE = \"\",\r\n NOTE_CARDS = \"NOTE_CARDS\",\r\n NOTE_MEMO = \"NOTE_MEMO\",\r\n NOTE_TEXT = \"NOTE_TEXT\",\r\n}\r\n\r\nexport enum TYPE_ID_LOCAL_APP_DB {\r\n LAST_PAGE_GUID = \"LAST_PAGE_GUID\",\r\n VAULT_DIR_HANDLE = \"VAULT_DIR_HANDLE\",\r\n ACTION_FLOW_GROUP_DATA = \"ACTION_FLOW_GROUP_DATA\",\r\n ROLES_DATA = \"ROLES_DATA\",\r\n PROMPT_SITES_DATA = \"PROMPT_SITES_DATA\",\r\n PREFIX_PAGE_DATA = \"PAGE_DATA_\",\r\n USER_NAME = \"username\",\r\n EMAIL = \"email\",\r\n SYS_MOD_CODE = \"SYS_MOD_CODE\",\r\n}\r\n\r\nexport enum TYPE_SUBSCRIPTION_REQ {\r\n NONE = \"\",\r\n INPUT_LICENSE = \"INPUT_LICENSE\",\r\n INPUT_API_KEY = \"INPUT_API_KEY\",\r\n SHOW_OPTIONS = \"SHOW_OPTIONS\",\r\n\r\n}\r\n\r\nexport enum TYPE_EXCEPTION_DIALOG_NAME {\r\n NONE = \"\",\r\n OUT_OF_CREDITS = \"OUT_OF_CREDITS\",\r\n REMOTE_ERROR = \"REMOTE_ERROR\",\r\n}\r\n\r\nexport enum TYPE_GUIDE_INPUT_TAB {\r\n NONE = \"\",\r\n NOTE = \"INPUT_TAB_NOTE\",\r\n AI_COPILOT = \"INPUT_TAB_AI_COPILOT\",\r\n EXTEND = \"INPUT_TAB_EXTEND\",\r\n}\r\n\r\nexport enum TYPE_INSERT_OBJECT {\r\n PAGE = \"PAGE\",\r\n MEMO = \"MEMO\",\r\n BOOKMARK = \"BOOKMARK\",\r\n GROUP = \"GROUP\",\r\n}\r\n\r\nexport enum TYPE_API_PATH {\r\n SERP = \"/spr1\",\r\n SERP2 = \"/spr2\",\r\n AI_PROXY = \"/aip1\",\r\n SCRAPE = \"/scp1\",\r\n}\r\n\r\n// #PROP NAMES\r\nexport enum TYPE_PROP {\r\n APP_NAME = \"Fyndeck\",\r\n APP_SUPPORT_EMAIL = \"fyndeck@divedeck.ai\",\r\n\r\n // X.AI_PROXY_SERVER_URL = \"https://dev.superusapp.com/api/aiproxy\",\r\n PAGE_SUM_FLAG_NAME = \"### Summary of This Page ...\",\r\n\r\n SUFFIX_FILE_NAME_EXPORT_SLIDES = \"_Fyndeck.HTML\",\r\n\r\n HOME_PAGE_URL = \"https://www.fyndeck.com\",\r\n HOME_PAGE_URL_POWERED_BY = \"https://fyndeck.com?ref=pwdby\",\r\n\r\n SUB_MANAGER_URL = \"https://billing.stripe.com/p/login/14k5ktf3r9dz0Yo8ww\", // Stripe\r\n SUB_PLAN_PRICING_URL = \"https://www.fyndeck.com/pricing?ref=inapp\", // pricing page\r\n\r\n // BUY_PLAN_PLUSM_URL = \"https://buy.stripe.com/3cs7sH4Zl4oUfW85km\", // Plus Payment Link Monthly (10.99)\r\n BUY_PLAN_PLUSM_URL = \"https://buy.stripe.com/bIY6oD1N98FaaBO6oo\", // Plus Payment Link Monthly (7.99/mo)\r\n BUY_PLAN_PLUSY_URL = \"https://buy.stripe.com/7sI6oD8bx5sY8tG147\", // Plus Link Annually (69/yr)\r\n\r\n BUY_PLAN_LTE20K_URL = \"https://buy.stripe.com/7sI28n77t5sY39m5kw\", // Lite 20K\r\n BUY_PLAN_PRM50K_URL = \"https://buy.stripe.com/00g3cr77t8FafW8bIS\", // Premium 50K\r\n BUY_PLAN_PRM100K_URL = \"https://buy.stripe.com/8wM3cr63p3kQcJW5kv\", // Premium 100K\r\n\r\n BLOG_HOW_TO_EXPORT = \"https://www.fyndeck.com/blog/export\", // BLOG: HOW TO EXPORT\r\n\r\n AI_OEPNAI_SERVER_URL = \"https://api.openai.com/v1/chat/completions\", //todo\r\n\r\n replyMarkdownSystemPrompt = \"replyMarkdownSystemPrompt\",\r\n replyTextOptionsSystemPrompt = \"replyTextOptionsSystemPrompt\",\r\n\r\n STR_IN_CONTEXT = \"context:\",\r\n\r\n}\r\n\r\n\r\n","// eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n//@ts-nocheck\r\nimport {IFC_SYSS} from \"@/codes/_20.def/dataTypes\";\r\n\r\ndeclare var nz:any;\r\n\r\nlet zVer = 1.5735;\r\ndocument.title += \" v\" + zVer;\r\n\r\n// ## appUserStorage\r\nvar appUserStorage: any = window.appUserStorage = {}; //todo\r\n// appUserStorage[\"OPENAI_API_KEY\"]\r\n\r\n// ## mitt /emitter\r\nimport mitt from 'mitt'\r\nimport {TYPE_ID_LOCAL_APP_DB, TYPE_PROP, TYPE_SYS_MOD_CODE} from \"@/codes/_20.def/_modDataDict\";\r\n\r\n\r\nconst emitter = mitt();\r\nwindow.emitter = emitter;\r\n\r\n// ## SYSS\r\nexport const SYSS: IFC_SYSS = window.sysSettings = {};\r\n\r\nSYSS.verNum = zVer;\r\n\r\n// * SYS_MODE_CODE\r\nlet zSysModeCode: TYPE_SYS_MOD_CODE = localStorage.getItem(TYPE_ID_LOCAL_APP_DB.SYS_MOD_CODE);\r\nif (zSysModeCode) {\r\n SYSS.MOD_CODE = zSysModeCode;\r\n}\r\n\r\nwindow.setSysModCode = function (xSysModCode: string) {\r\n if (xSysModCode) {\r\n SYSS.MOD_CODE = xSysModCode;\r\n localStorage.setItem(TYPE_ID_LOCAL_APP_DB.SYS_MOD_CODE, xSysModCode);\r\n }\r\n}\r\n\r\nwindow.clearSysModCode = function () {\r\n localStorage.removeItem(TYPE_ID_LOCAL_APP_DB.SYS_MOD_CODE);\r\n}\r\n\r\n// * isTestEnv\r\nSYSS.isTestEnv = true;\r\nif (nz(window.location.hostname, \"\").toLowerCase() != \"localhost\") {\r\n SYSS.isTestEnv = false;\r\n}\r\n\r\n// * Remote Call Settings\r\nSYSS.API_ADDR = \"https://monasax.top\";\r\n// SYSS.PROJECT_NAME = \"Morisot\"; // for DiveDeck / connected with _config.js in Server side\r\nSYSS.PROJECT_NAME = \"MorisotDaisy\"; //for Fyndeck / connected with _config.js in Server side\r\nSYSS.EALIC6_ADDR = \"https://fizailab.gumroad.com/l/divedeck_ea_3\"\r\n\r\nif (SYSS.isTestEnv) {\r\n SYSS.API_ADDR = \"http://localhost:3080\";\r\n SYSS.PROJECT_NAME = \"projectTest\";\r\n}\r\n\r\n\r\n// * URL Parameter\r\nlet Params = new URLSearchParams(window.location.search);\r\nlet baseUrl = window.location.protocol + \"//\" + window.location.host + window.location.pathname;\r\n\r\n// ** ?searcher=\r\nlet paramSearcher = Params.get('searcher');\r\nSYSS.paramSearcher = \"\";\r\nif (paramSearcher) {\r\n SYSS.paramSearcher = paramSearcher;\r\n}\r\n\r\n\r\n// ** ?code=\r\nlet paramCogCode = Params.get('code');\r\nif (paramCogCode) {\r\n SYSS.paramCogCode = paramCogCode;\r\n}\r\n\r\n// ** ?share=\r\nlet paramSharingID = Params.get('share');\r\nif (paramSharingID) {\r\n SYSS.sharingID4View = paramSharingID;\r\n}\r\n\r\n// ** ?my_lic_ea\r\nSYSS.showMyLicPage = false;\r\nif (Params.get('my_lic_ea')) {\r\n SYSS.showMyLicPage = true;\r\n}\r\n\r\n// ** ?my_byo_free\r\nSYSS.showBYOKeyPage = false;\r\nif (Params.get('my_byo_ak')) {\r\n SYSS.showBYOKeyPage = true;\r\n}\r\n\r\n// ** ?sub\r\nlet paramPreSubID = Params.get('sub');\r\nif (paramPreSubID) {\r\n localStorage[\"preSubID\"] = paramPreSubID;\r\n // Use the 'history.replaceState()' method to update the URL without reloading the page\r\n history.replaceState(null, null, baseUrl);\r\n /*setTimeout( function(){\r\n window.location.reload();\r\n },1000);*/\r\n}\r\n\r\n\r\n// ** ?pay\r\nlet zUserEmail = localStorage[\"email\"];\r\nlet zUserName = localStorage[TYPE_ID_LOCAL_APP_DB.USER_NAME];\r\nlet zPayURL = \"\";\r\n\r\nlet paramPay4PlusSub = Params.get('go');\r\n/*if (paramPay4PlusSub==\"PA6\") {\r\n zPayURL = TYPE_PROP.BUY_PLAN_PLUSY_URL;\r\n} else if (paramPay4PlusSub==\"PM7\") {\r\n zPayURL = TYPE_PROP.BUY_PLAN_PLUSM_URL;\r\n}*/\r\nif (paramPay4PlusSub == \"PM50\") {\r\n zPayURL = TYPE_PROP.BUY_PLAN_PRM50K_URL;\r\n} else if (paramPay4PlusSub == \"LT20\") {\r\n zPayURL = TYPE_PROP.BUY_PLAN_LTE20K_URL;\r\n} else if (paramPay4PlusSub == \"PM100\") {\r\n zPayURL = TYPE_PROP.BUY_PLAN_PRM100K_URL;\r\n}\r\n\r\nif (zPayURL) {\r\n if (zUserEmail) {\r\n zPayURL += \"?\";\r\n if (zUserEmail) {\r\n zPayURL += \"prefilled_email=\" + encodeURIComponent(zUserEmail) + \"&\";\r\n }\r\n if (zUserName) {\r\n zPayURL += \"client_reference_id\\t=\" + encodeURIComponent(zUserName) + \"&\";\r\n }\r\n // history.replaceState(null, null, zPayURL);\r\n window.location = zPayURL;\r\n } else {\r\n window.location = baseUrl;\r\n }\r\n}\r\n\r\n// * start\r\nclog(\"*AppCommittee's ready.\", SYSS.isTestEnv ? \"T-Mode\" : \"PROD\");\r\n\r\n\r\n\r\n","// ## LangSettings / LANGS\r\nimport {IFC_AIManager, IFC_LANG_UTILS} from \"@/codes/_20.def/managerIFs\";\r\n\r\nexport const LangSettings: IFC_LANG_UTILS = {\r\n DEFALUT_LANG_CODE: \"en\",\r\n KEY_USER_LANG_CODE: \"UserLangCode\",\r\n\r\n LangCodeNameMap: {\r\n \"en\": {text: \"English\", name: \"English\"},\r\n \"ja\": {text: \"日本語\", name: \"Japanese\"},\r\n \"fr\": {text: \"Français\", name: \"French\"},\r\n \"de\": {text: \"Deutsch\", name: \"German\"},\r\n // \"it\": {text: \"Italiano\", name: \"Italian\"},\r\n \"pt\": {text: \"Português\", name: \"Portuguese\"},\r\n \"es\": {text: \"Español\", name: \"Spanish\"},\r\n // \"ru\": {text: \"Русский\", name: \"Russian\"},\r\n \"zh\": {text: \"繁體中文\", name: \"Chinese-T\"},\r\n \"zh-cn\": {text: \"简体中文\", name: \"Chinese-S\"},\r\n // \"ko\": {text: \"한국어\", name: \"Korean\"},\r\n \"ar\": {text: \"العربية\", name: \"Arabic\"},\r\n \"hi\": {text: \"हिन्दी\", name: \"Hindi\"},\r\n // \"nl\": {text: \"Nederlands\", name: \"Dutch\"},\r\n // \"sv\": {text: \"Svenska\", name: \"Swedish\"},\r\n // \"pl\": {text: \"Polski\", name: \"Polish\"},\r\n // \"tr\": {text: \"Türkçe\", name: \"Turkish\"},\r\n // \"vi\": {text: \"Tiếng Việt\", name: \"Vietnamese\"},\r\n // \"th\": {text: \"ไทย\", name: \"Thai\"},\r\n // \"el\": {text: \"Ελληνικά\", name: \"Greek\"},\r\n // \"he\": {text: \"עברית\", name: \"Hebrew\"}\r\n },\r\n\r\n\r\n// Detect the user's browser language\r\n getBrowserLangCode: function () {\r\n\r\n let zLanguageCode = nz(navigator.language, LangSettings.DEFALUT_LANG_CODE);\r\n\r\n zLanguageCode = zLanguageCode.toLowerCase();\r\n if (LangSettings.LangCodeNameMap[zLanguageCode]) {\r\n return zLanguageCode;\r\n }\r\n\r\n zLanguageCode = (zLanguageCode.split('-')[0]).toLowerCase(); // Returns the language code (e.g., 'en' from 'en-US')\r\n if (LangSettings.LangCodeNameMap[zLanguageCode]) {\r\n return zLanguageCode;\r\n }\r\n return LangSettings.DEFALUT_LANG_CODE;\r\n },\r\n\r\n// Save the language code to local storage\r\n saveLangCode: function (xLangCode) {\r\n localStorage.setItem(LangSettings.KEY_USER_LANG_CODE, xLangCode);\r\n },\r\n\r\n// Get the saved language code from local storage\r\n getSavedLangCode: function () {\r\n let zLanguageCode = nz(localStorage.getItem(LangSettings.KEY_USER_LANG_CODE), \"\");\r\n\r\n if (LangSettings.LangCodeNameMap[zLanguageCode]) {\r\n return zLanguageCode;\r\n }\r\n\r\n zLanguageCode = (zLanguageCode.split('-')[0]).toLowerCase(); // Returns the language code (e.g., 'en' from 'en-US')\r\n if (LangSettings.LangCodeNameMap[zLanguageCode]) {\r\n return zLanguageCode;\r\n }\r\n return LangSettings.DEFALUT_LANG_CODE;\r\n },\r\n\r\n// Initialize: Detect language and save if not already saved\r\n\r\n getInitLangCode: function () {\r\n if (!LangSettings.getSavedLangCode()) {\r\n const detectedLangCode = LangSettings.getBrowserLangCode();\r\n cerr(\"*gtini brw lang\",detectedLangCode)\r\n LangSettings.saveLangCode(detectedLangCode);\r\n }\r\n return LangSettings.getSavedLangCode();\r\n },\r\n\r\n checkIfDefaultLangCode: function (xLangCode) {\r\n return nz(xLangCode, \"\").tolowerCase() == LangSettings.DEFALUT_LANG_CODE;\r\n },\r\n\r\n};\r\n\r\ndeclare var window:any;\r\nwindow.langSettings = LangSettings;\r\n\r\n\r\n","// UI Settings\r\n// ********************************\r\n\r\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n// @ts-nocheck\r\n\r\nimport {reactive} from 'vue';\r\nimport {SYSS} from \"@/codes/_10.sys/A0Committee\";\r\nimport {LangSettings} from \"@/codes/_90.lang/langUtils\"\r\n\r\n// #UIManager\r\nimport {IFC_Page_Column, IFC_UIP, IFC_UIS} from \"../_20.def/dataTypes\";\r\nimport {TYPE_EXCEPTION_DIALOG_NAME, TYPE_INDEX_SIDEBAR, TYPE_SUBSCRIPTION_REQ} from \"../_20.def/_modDataDict\";\r\nimport {IFC_AIManager, IFC_UserContentManager} from \"@/codes/_20.def/managerIFs\";\r\n\r\n// **** window.UIP\r\nconst UIP0: IFC_UIP = {}\r\nwindow.UIP = reactive(UIP0);\r\n\r\ndeclare var appUserContentManager: IFC_UserContentManager;\r\ndeclare var appAIManager: IFC_AIManager;\r\n\r\n// **** window.UISettings\r\nconst UIS0: IFC_UIS = {\r\n currentPageData: {},\r\n currentUserContentPageGUID: \"\",\r\n selectedGroupHeaderTitleInPageColumn0: \"\",\r\n currentUserContentPageColumnIndex: 0,\r\n currentIndexSideBarType: TYPE_INDEX_SIDEBAR.SIDEBAR_CLOSED,\r\n previewHTML: \"\",\r\n startSectionIndex4Rendering: -1,\r\n endSectionIndex4Rendering: -1,\r\n generatingTempLayoutCode: \"\",\r\n starredHeaderAndSubGUIDsMap: {},\r\n selectedStarredPageSectionGUIDs: [],\r\n\r\n ifLockingPageUI: false,\r\n ifHideResult4Refreshing: false,\r\n\r\n isAIGenerating: false,\r\n ifPageColumnScrollToBottom: false,\r\n ifChattingUI: false,\r\n ifCreatedTopicAutoAdd2Playlist:true,\r\n\r\n currentChattingMessage: \"\",\r\n currentReturnMessage: \"\",\r\n ifGoBackAnimation: false,\r\n\r\n isSharingViewMode: (SYSS.sharingID4View ? true : false),\r\n isFreePlan: false,\r\n\r\n subscriptionReqType: TYPE_SUBSCRIPTION_REQ.SHOW_OPTIONS,\r\n\r\n\r\n isMiniScreenMode: false,\r\n sideBarWidth: 600,\r\n resultPageWidth: 800,\r\n resultPageHeight: 800,\r\n rightMenuBarWidth: 200,\r\n leftMenuBarWidth: 200,\r\n\r\n filterCode: \"\",\r\n\r\n selectedTextContent: \"\",\r\n\r\n sectionDraggingImg:new Image(),\r\n\r\n};\r\n\r\nUIS0.sectionDraggingImg.src = \"./img/card-dummy.png\";\r\n\r\nif (SYSS.showBYOKeyPage) {\r\n UIS0.subscriptionReqType = TYPE_SUBSCRIPTION_REQ.INPUT_API_KEY;\r\n}\r\nif (SYSS.showMyLicPage) {\r\n UIS0.subscriptionReqType = TYPE_SUBSCRIPTION_REQ.INPUT_LICENSE;\r\n}\r\n\r\nexport const UIS: IFC_UIS = window.UISettings = reactive(UIS0);\r\n\r\n\r\n// **** window.PageColumns\r\nlet PageColumns0: [IFC_Page_Column] = [{\r\n parentPageSectionGUID: \"\",\r\n currentSelectedPageSectionGUID: \"\",\r\n followupSessionGUID: \"\",\r\n},];\r\nconst PageColumns = window.PageColumns = reactive(PageColumns0);\r\n\r\n// **** functions\r\nexport function lockResultPageUI(xIsAIGenerating?: boolean) {\r\n UIS.ifLockingPageUI = true;\r\n UIS.isAIGenerating = nz(xIsAIGenerating, false);\r\n UIS.isAIGeneratingPageContent = nz(xIsAIGenerating, false);\r\n}\r\n\r\nexport function unlockResultPageUI() {\r\n setTimeout(function () {\r\n UIS.isAIGenerating = false;\r\n UIS.isAIGeneratingPageContent = false;\r\n UIS.ifLockingPageUI = false;\r\n }, 120);\r\n}\r\n\r\nexport function refreshLayout() {\r\n $(\"#panResultPages\").css({\"right\": \"4px\", \"bottom\": \"4px\"});\r\n setTimeout(function () {\r\n $(\"#panResultPages\").css({\"right\": \"5px\", \"bottom\": \"5px\"});\r\n }, 150);\r\n}\r\n\r\n// * ifPageColumnScrollToBottom\r\nsetInterval(function () {\r\n let zColumnIndex = UIS.currentUserContentPageColumnIndex;\r\n let zScrollTop = nz($(\"#divPageColumnResult_\" + zColumnIndex).scrollTop(), 0);\r\n let zScrollHeight = nz($(\"#divPageColumnResult_\" + zColumnIndex).prop(\"scrollHeight\"), 0);\r\n // cerr(\"*scrl\",zScrollTop,zScrollHeight);\r\n if (zScrollTop > zScrollHeight - 900) {\r\n UIS.ifPageColumnScrollToBottom = true;\r\n } else {\r\n UIS.ifPageColumnScrollToBottom = false;\r\n }\r\n}, 1000)\r\n\r\n\r\nconst onWindowResize = function () {\r\n // console.log(\"*rsz pmn\");\r\n UIS.isMiniScreenMode = (window.innerWidth <= 1000);\r\n\r\n let zPanMainWidth = $(\"#panMain0\").width();\r\n let zPanMainHeight = $(\"#panMain0\").height();\r\n console.log(\"*rsz pmn h w\", zPanMainHeight, UIS.resultPageHeight, zPanMainWidth);\r\n\r\n let zNewResultPageWidth = zPanMainWidth * 0.45;\r\n if (UIS.isMiniScreenMode) {\r\n zNewResultPageWidth = zPanMainWidth - 100;\r\n }\r\n\r\n zNewResultPageWidth = Math.max(zNewResultPageWidth, 500);\r\n zNewResultPageWidth = Math.min(zNewResultPageWidth, 2200);\r\n\r\n if ((UIS.resultPageWidth != zNewResultPageWidth)) {\r\n UIS.resultPageWidth = zNewResultPageWidth;\r\n }\r\n\r\n if ((UIS.resultPageHeight != zPanMainHeight)) {\r\n UIS.resultPageHeight = zPanMainHeight;\r\n }\r\n\r\n if (UIS.isMiniScreenMode) {\r\n UIS.rightMenuBarWidth = 72;\r\n UIS.leftMenuBarWidth = 72;\r\n UIS.sideBarWidth = 300;\r\n } else {\r\n UIS.sideBarWidth = 720;\r\n UIS.rightMenuBarWidth = (zPanMainWidth - UIS.resultPageWidth) * 0.6;\r\n UIS.leftMenuBarWidth = (zPanMainWidth - UIS.resultPageWidth) * 0.4;\r\n }\r\n\r\n console.log(\"*rsPgW\", UIS.resultPageWidth);\r\n console.log(\"*rMnBrW\", UIS.rightMenuBarWidth);\r\n\r\n\r\n}\r\n\r\nwindow.onresize = onWindowResize;\r\nsetTimeout(onWindowResize, 1000);\r\n\r\n\r\n// * Language\r\nUIS.langCode = LangSettings.getInitLangCode();\r\nconsole.log(\"*lng\", UIS.langCode);\r\n\r\n\r\n","// eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n//@ts-nocheck\r\nimport {SYSS} from \"@/codes/_10.sys/A0Committee\";\r\nimport {LangSettings} from \"@/codes/_90.lang/langUtils\";\r\nimport {lockResultPageUI, UIS, unlockResultPageUI} from \"@/codes/_10.sys/UICommittee\"\r\nimport {apps} from \"@/codes/_10.sys/A0Committee\";\r\nimport {IFC_AIManager, IFC_SERPManager, IFC_SharingManager, IFC_UserContentManager} from \"@/codes/_20.def/managerIFs\";\r\nimport {TYPE_EVENT, TYPE_ID_LOCAL_APP_DB} from \"@/codes/_20.def/_modDataDict\";\r\nimport {IFC_Page_Data} from \"@/codes/_20.def/dataTypes\";\r\n\r\ndeclare var clearArray: any;\r\ndeclare var nz: any;\r\n\r\n// * init pages\r\nsetTimeout(function () {\r\n let zAppUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\n\r\n // ** init all pages from sharing view\r\n if (SYSS.sharingID4View) {\r\n lockResultPageUI();\r\n let zAppSharingManager: IFC_SharingManager = window.appSharingManager;\r\n zAppSharingManager.getSharedContentPage(SYSS.sharingID4View).then(data => {\r\n console.log(\"*shrd pg\", data);\r\n\r\n let zSharingPageInfo: IFC_Page_Data = nz(data.result, {});\r\n if (zSharingPageInfo._IsDeleted) {\r\n clearArray(zSharingPageInfo.pageSections);\r\n }\r\n\r\n UIS.currentUserContentPageGUID = zSharingPageInfo._GUID;\r\n\r\n zAppUserContentManager.allUserContentPages = {};\r\n zAppUserContentManager.allUserContentPages[zSharingPageInfo._GUID] = zSharingPageInfo;\r\n zAppUserContentManager.renderAllSectionsInPage(UIS.currentUserContentPageGUID);\r\n\r\n setTimeout(function () {\r\n unlockResultPageUI();\r\n }, 500);\r\n\r\n })\r\n }\r\n\r\n\r\n}, 1000);\r\n\r\n// * init Language settings\r\nwindow.emitter.on(TYPE_EVENT.LANG_CHANGED, function () {\r\n UIS.langCode=LangSettings.getInitLangCode();\r\n\r\n let zAppAIManager: IFC_AIManager = window.appAIManager;\r\n zAppAIManager.langCode=UIS.langCode;\r\n\r\n var zAppSERPManager: IFC_SERPManager = window.appSERPManager;\r\n zAppSERPManager.langCode=UIS.langCode;\r\n\r\n});\r\nsetTimeout(function () {\r\n\r\n window.emitter.emit(TYPE_EVENT.LANG_CHANGED)\r\n}, 1000);\r\n\r\n\r\n// ** init all pages from localDB\r\nwindow.emitter.on(TYPE_EVENT.USER_READY, function () {\r\n cwrn(\"*userdy\")\r\n lockResultPageUI();\r\n let zAppUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\n if (!SYSS.sharingID4View) {\r\n let zLocalLastPageGUID = nz(localStorage.getItem(TYPE_ID_LOCAL_APP_DB.LAST_PAGE_GUID), \"\");\r\n UIS.currentUserContentPageGUID = \"\";\r\n\r\n zAppUserContentManager.loadAllPageData(function (err, result) {\r\n if (err) return;\r\n\r\n if ((!result) || (!result.length)) {\r\n //\r\n // appUserContentManager.upsertPageByCopyingSourcePage()\r\n }\r\n\r\n let zPageGUID = result;\r\n // console.log(zPageGUID, \"loaded\");\r\n\r\n if (zPageGUID == zLocalLastPageGUID) {\r\n setTimeout(function () {\r\n zAppUserContentManager.gotoPage(zPageGUID);\r\n // UIS.currentUserContentPageGUID = zPageGUID;\r\n // zAppUserContentManager.renderAllSectionsInPage(zPageGUID);\r\n\r\n }, 100);\r\n\r\n }\r\n\r\n });\r\n\r\n setTimeout(function () {\r\n unlockResultPageUI();\r\n }, 500);\r\n }\r\n});\r\n\r\n\r\n// when focus body -> focus in command bar input\r\n$(\"body\").show(\r\n // $focusCommandBar\r\n);\r\n\r\n// * get selected text\r\n/*setInterval(function () {\r\n let zSelectedText = nz(getSelectedText(), \"\").trim();\r\n if (zSelectedText) {\r\n let focusedElement = document.activeElement;\r\n if (focusedElement && focusedElement.tagName === 'TEXTAREA') {\r\n //\r\n } else if (zSelectedText == UIS.selectedTextContent) {\r\n //\r\n } else {\r\n UIS.selectedTextContent = zSelectedText;\r\n }\r\n } else {\r\n UIS.selectedTextContent = \"\";\r\n }\r\n}, 1200);*/\r\n\r\n// global key pressed event\r\ndocument.onkeydown = function (evt) {\r\n if (evt.key == \"Escape\") {\r\n window.emitter.emit(TYPE_EVENT.KEYPRESSED_ESC);\r\n console.log(\"*esc\");\r\n }\r\n};\r\n","// @TS-NOCHECK\r\nimport {IFC_AI_ROLE, IFC_AIManager, IFC_AIPrompt_Provider, IFC_StorageManager} from \"../_20.def/managerIFs\";\r\nimport {ref, reactive} from 'vue';\r\nimport {TYPE_ID_LOCAL_APP_DB} from \"@/codes/_20.def/_modDataDict\";\r\nimport {GUID_TYPE, IFC_Page_Data} from \"@/codes/_20.def/dataTypes\";\r\nimport {defaultNewPageData} from \"@/codes/_30.biz/monDefaultPageTemplate\";\r\n\r\ndeclare var appStorageManager: IFC_StorageManager;\r\n\r\nvar DefaultRole001: IFC_AI_ROLE = {\r\n _GUID: \"DEFAULT_ROLE_001\",\r\n roleName: \"Default Role\",\r\n // roleInstruction: \"You're an explorer of knowledge, assisting users to find more knowledge and help them to understand.\",\r\n roleInstruction: \"\",\r\n};\r\n\r\nwindow.DefaultRole001 = DefaultRole001;\r\n\r\nvar appPromptProvider: IFC_AIPrompt_Provider = window.appPromptProvider = {\r\n\r\n excludeContentSystemPrompt: `\r\nTheMentionedContext=\r\n`,\r\n includeContextSystemPrompt: `\r\nTheStructureContext =\r\n`,\r\n nearestParentContentSystemPrompt: `\r\nTheParentSectionContext =\r\n`,\r\n includeExistingContentSystemPrompt: `\r\nContent Context Rules:\r\n* DO NOT repeat the existing content.\r\n* Especially DO NOT repeat the title in exiting content.\r\n* CONTINUE writing based on the given content, for example, if the topic is solar system, existing content is about Earth,Mars, you could write Venus,Jupiter,Pluto ... after them.\r\n* The return is appended on the existing content DO NOT write a new article.\r\n* The exising content =\r\n `,\r\n SERPContextSystemPrompt: `\r\nTheResultContext =\r\n`,\r\n moreLikeThisScopePrompt: `\r\nScope Context Rule:\r\n* Here's the scope, we're talking about :\r\n `,\r\n moreLikeThisTopicPrompt: `\r\nFind More Like This Rule: \r\n* Bring me more samples like the following one:\r\n `,\r\n userMessagePrompt: `\r\nTheUserInput = \r\n`,\r\n roleSystemPrompt: `\r\nTheAIRole=\r\n`,\r\n\r\n defaultRoles: [\r\n {\r\n \"_GUID\": \"DEFAULT_ROLE_101\",\r\n \"roleName\": \"Português\",\r\n \"roleInstruction\": \"Como um falante nativo de português, responda às perguntas do usuário em português.\"\r\n },\r\n {\r\n \"_GUID\": \"DEFAULT_ROLE_102\",\r\n \"roleName\": \"日本語 (Nihongo)\",\r\n \"roleInstruction\": \"日本語のネイティブスピーカーとして、ユーザーの質問に日本語で答えてください。\"\r\n },\r\n {\r\n \"_GUID\": \"DEFAULT_ROLE_103\",\r\n \"roleName\": \"Français\",\r\n \"roleInstruction\": \"En tant que locuteur natif français, répondez aux questions de l'utilisateur en français.\"\r\n },\r\n {\r\n \"_GUID\": \"DEFAULT_ROLE_104\",\r\n \"roleName\": \"Deutsch\",\r\n \"roleInstruction\": \"Als deutscher Muttersprachler, beantworten Sie die Fragen des Benutzers auf Deutsch.\"\r\n },\r\n {\r\n \"_GUID\": \"DEFAULT_ROLE_105\",\r\n \"roleName\": \"Español\",\r\n \"roleInstruction\": \"Como hablante nativo de español, responde a las preguntas del usuario en español.\"\r\n },\r\n\r\n {\r\n \"_GUID\": \"DEFAULT_ROLE_2010\",\r\n \"roleName\": \"BizCoach\",\r\n \"roleInstruction\": \"You are a business consultant with 20 years of experience in various industries. Provide strategic advice, analyze business challenges, and suggest actionable solutions to help companies grow and succeed.\"\r\n },\r\n {\r\n \"_GUID\": \"DEFAULT_ROLE_2030\",\r\n \"roleName\": \"Brainstorm\",\r\n \"roleInstruction\": \"You are helping us to brainstorm. Give us topic related KEYWORDS.\"\r\n },\r\n {\r\n \"_GUID\": \"DEFAULT_ROLE_2040\",\r\n \"roleName\": \"KidsTeacher\",\r\n \"roleInstruction\": \"You're a teacher of a 12-year-old child, all the responses you provide must be suitable for the child and comprehensible to them.\"\r\n },\r\n {\r\n \"_GUID\": \"DEFAULT_ROLE_2120\",\r\n \"roleName\": \"WikiSage\",\r\n \"roleInstruction\": \"You are a knowledgeable and resourceful Wiki Master. Provide detailed, accurate, and well-researched information on a wide range of topics, ensuring clarity and comprehensiveness in your explanations to help users understand complex subjects.\"\r\n },\r\n ],\r\n defaultSites: [\"wikipedia.org\", \"reddit.com\", \"quora.com\", \"medium.com\"],\r\n\r\n saveRoles() {\r\n appStorageManager.saveAnyDataToLocalDB(\r\n TYPE_ID_LOCAL_APP_DB.ROLES_DATA,\r\n nz(appPromptProvider.customizedRoles, [])\r\n );\r\n },\r\n\r\n saveSites() {\r\n appStorageManager.saveAnyDataToLocalDB(\r\n TYPE_ID_LOCAL_APP_DB.PROMPT_SITES_DATA,\r\n nz(appPromptProvider.customizedSites, [])\r\n );\r\n },\r\n\r\n resetRoles() {\r\n appStorageManager.saveAnyDataToLocalDB(\r\n TYPE_ID_LOCAL_APP_DB.ROLES_DATA, []\r\n );\r\n appPromptProvider.loadRoles(function (err, result) {\r\n if (result && result.length) {\r\n _.extend(appPromptProvider.currentRole, DefaultRole001);\r\n }\r\n });\r\n },\r\n\r\n loadRoles(xCallback) {\r\n let zCallback = nz(xCallback, function () {\r\n //\r\n });\r\n appStorageManager.loadAnyDataFromLocalDB(\r\n TYPE_ID_LOCAL_APP_DB.ROLES_DATA,\r\n function (err, xResult: [IFC_AI_ROLE]) {\r\n clearArray(appPromptProvider.customizedRoles);\r\n if (err) return zCallback(err);\r\n if (xResult && xResult.length) {\r\n assignArray(appPromptProvider.customizedRoles, xResult);\r\n } else {\r\n if (appPromptProvider.defaultRoles) {\r\n assignArray(appPromptProvider.customizedRoles, _.clone(appPromptProvider.defaultRoles));\r\n }\r\n\r\n }\r\n zCallback(null, appPromptProvider.customizedRoles);\r\n });\r\n },\r\n\r\n loadSites(xCallback) {\r\n let zCallback = nz(xCallback, function () {\r\n //\r\n });\r\n appStorageManager.loadAnyDataFromLocalDB(\r\n TYPE_ID_LOCAL_APP_DB.PROMPT_SITES_DATA,\r\n function (err, xResult: string[]) {\r\n clearArray(appPromptProvider.customizedSites);\r\n if (err) return zCallback(err);\r\n if (xResult && xResult.length) {\r\n assignArray(appPromptProvider.customizedSites, xResult);\r\n } else {\r\n if (appPromptProvider.defaultSites) {\r\n assignArray(appPromptProvider.customizedSites, _.clone(appPromptProvider.defaultSites));\r\n }\r\n\r\n }\r\n zCallback(null, appPromptProvider.customizedRoles);\r\n });\r\n }\r\n};\r\n\r\nappPromptProvider.customizedRoles = reactive([]);\r\nappPromptProvider.customizedSites = reactive([]);\r\n\r\nappPromptProvider.currentRole = reactive({});\r\n\r\nappPromptProvider.excludingContentArrayString = \"\";\r\nappPromptProvider.includingContextArrayString = \"\";\r\nappPromptProvider.existingContentTextString = \"\";\r\n\r\nsetTimeout(function () {\r\n\r\n appPromptProvider.loadRoles(function (err, result) {\r\n if (result && result.length) {\r\n _.extend(appPromptProvider.currentRole, DefaultRole001);\r\n }\r\n });\r\n\r\n appPromptProvider.loadSites(function (err, result) {\r\n //\r\n });\r\n\r\n\r\n}, 1600);\r\n","// @TS-NOCHECK\r\nimport {TYPE_SECTION} from \"../_20.def/_modDataDict\";\r\nimport {\r\n IFC_Page_Data,\r\n IFC_Page_Template,\r\n ACTION_FLOW_GROUP,\r\n ACTION_FLOW_GROUP_MAP,\r\n ACTION_FLOW_MAP\r\n} from \"@/codes/_20.def/dataTypes\";\r\n\r\nlet heightA = 72;\r\n// let headerHeightWithDesc = 120;\r\n// let headerHeightWithoutDesc = 120;\r\nlet heightA2 = 28;\r\nlet heightB = 180;\r\nlet heightB2 = 320;\r\n// * Default Page Template\r\nexport var defaultPageTemplate: IFC_Page_Template = {\r\n _verNum: 1,\r\n backgroundHTML: `\r\n
\r\n \r\n
\r\n`,\r\n layoutCommonStyle: `\r\n width:calc(100%);float:left;height:${heightA2}px; \r\n `,\r\n // height:${headerHeightWithDesc}px;\r\n layoutCommonTitleStyle: `\r\n width:calc(100%);float:left;\r\n `,\r\n // height:${headerHeightWithoutDesc}px;\r\n layoutBlankTitleStyle: `\r\n width:calc(100%);float:left;\r\n `,\r\n layoutOneByOneStyleArray: [\r\n `width:calc(50%);float:left;font-size:28px;height:${heightA2}px;`,\r\n `width:calc(50%);float:left;font-size:28px;height:${heightA2}px;`,\r\n `width:calc(33.3333%);float:left;font-size:22px;height:${heightA2}px;`\r\n ],\r\n // 'width:calc(100%);float:left;font-size:32px;',\r\n\r\n flagColorStyles: [\r\n {\r\n flagCode: \"Default\",\r\n flagName: \"Normal\",\r\n iconClass: \"ccc-icon-sphere\",\r\n titleStyle: \"color:Black;\",\r\n backStyle: \"\"\r\n },\r\n\r\n\r\n {\r\n flagCode: \"purple\",\r\n flagName: \"AI_Reply\",\r\n iconClass: \"ccc-icon-bubble-dots4 bold\",\r\n titleStyle: \"color:rgba(152, 52, 104,1);\",\r\n backStyle: \"background:linear-gradient(135deg,rgba(245, 234, 255,0.3),rgba(235, 224, 245,0.2));\"\r\n },\r\n\r\n {\r\n flagCode: \"orange\",\r\n flagName: \"Selected_Page\",\r\n iconClass: \"ccc-icon-bookmark2\",\r\n titleStyle: \"color:rgba(245, 130, 0,1);\",\r\n // backStyle: \"background:linear-gradient(135deg,rgba(224,255, 234,0.5),rgba(215, 245, 224,0.4));\"\r\n },\r\n\r\n {\r\n flagCode: \"blue\",\r\n flagName: \"Image\",\r\n iconClass: \"ccc-icon-image\",\r\n titleStyle: \"color:rgba(102, 152, 180,1);\",\r\n backStyle: \"background:linear-gradient(135deg,rgba(224,240, 254,0.3),rgba(215, 233, 244,0.2));\"\r\n },\r\n\r\n\r\n {\r\n flagCode: \"red\",\r\n flagName: \"Question\",\r\n iconClass: \"ccc-icon-question2\",\r\n titleStyle: \"color:rgba(202, 22, 20,1);\",\r\n backStyle: \"background: linear-gradient(135deg, rgba(254,225, 225,0.3), rgba(244,215, 215,0.2));\"\r\n },\r\n\r\n {\r\n flagCode: \"green\",\r\n flagName: \"Related_Topic\",\r\n iconClass: \"ccc-icon-bubble-forward\",\r\n titleStyle: \"color:rgba(102, 172, 60,1);\",\r\n backStyle: \"background:linear-gradient(135deg,rgba(224,255, 234,0.5),rgba(215, 245, 224,0.4));\"\r\n },\r\n\r\n\r\n {\r\n flagCode: \"yellow\",\r\n flagName: \"Custom_Slide\",\r\n iconClass: \"ccc-icon-pencil5\",\r\n titleStyle: \"color:rgba(192, 142, 50,1);\",\r\n backStyle: \"background:linear-gradient(135deg,rgba(255, 243, 214,0.5),rgba(245, 233, 204,0.4));\"\r\n },\r\n ],\r\n headerStyles: [\r\n {\r\n headerCode: \"Default\",\r\n // headerStyle: `font-size:32px;margin-left: 10px;margin-top: 16px;background: linear-gradient(40deg,#ff8c00 30%,#c721f9 80%),rgba(0,0,0,0); -webkit-text-fill-color: transparent;background-clip: text;-webkit-background-clip: text;`,\r\n headerStyle: `font-size:32px;margin-left: 12px;\r\n font-weight:bold;\r\n background: linear-gradient(40deg,#ff8c00 30%,#c721f9 80%),rgba(0,0,0,0); \r\n -webkit-text-fill-color: transparent;background-clip: text;\r\n -webkit-background-clip: text;`,\r\n backStyle: ``\r\n },\r\n /*{\r\n headerCode: \"H2\",\r\n headerStyle: `font-size:26px;margin-left: 12px;margin-top: 24px;`,\r\n backStyle: `color:rgba(25, 94, 128,0.8);`\r\n },*/\r\n {\r\n headerCode: \"Mini\",\r\n headerStyle: `font-size:20px;margin-left: 12px;margin-top: 32px; padding-bottom:4px; border-bottom:0px dashed grey; font-weight:bold;`,\r\n backStyle: `color:black;`\r\n },\r\n ],\r\n headerStyle_MiniScreenMode: {\r\n headerCode: \"MiniScreenMode\",\r\n // headerStyle: `font-size:32px;margin-left: 10px;margin-top: 16px;background: linear-gradient(40deg,#ff8c00 30%,#c721f9 80%),rgba(0,0,0,0); -webkit-text-fill-color: transparent;background-clip: text;-webkit-background-clip: text;`,\r\n headerStyle: `font-size:18px;margin-left: 8px;\r\n margin-top: 8px;font-weight:bold;\r\n background: linear-gradient(40deg,#ff8c00 30%,#c721f9 80%),rgba(0,0,0,0); \r\n -webkit-text-fill-color: transparent;background-clip: text;\r\n -webkit-background-clip: text;`,\r\n backStyle: ``\r\n },\r\n layoutStyleNames4Pickup: [\"ListB\"],\r\n layoutStyleObjects: [\r\n {\r\n layoutCode: \"ListB\", layoutName: \"L\", layoutOneByOneStyleArray: [\r\n `\r\n width:calc(100%);float:left;font-size:21px;font-weight:normal; \r\n font-weight:bold;\r\n overflow:hidden;\r\n `,/*max-height:1280px;*/\r\n ], isSideCoverImageView: true,\r\n },\r\n /* {\r\n layoutCode: \"Default\", layoutName: \"L\", layoutOneByOneStyleArray: [\r\n `width:calc(50%);float:left;font-size:25px;font-weight:normal;\r\n font-weight:bold;\r\n overflow:hidden;\r\n height:${heightB}px;\r\n `,\r\n ], isSideCoverImageView: true,\r\n },*/\r\n /*{\r\n layoutCode: \"3ColB\", layoutName: \"M\",layoutOneByOneStyleArray: [\r\n `width:calc(33.333%);float:left;font-size:25px;height:${heightB2}px;font-weight:bold;\r\n overflow:hidden;`,\r\n ], isTopCoverImageView: true,\r\n },*/\r\n /*{\r\n layoutCode: \"4ColB\", layoutOneByOneStyleArray: [\r\n `width:calc(25%);float:left;font-size:20px;height:${heightB2}px;`,\r\n ], isTopCoverImageView: true,\r\n },*/\r\n {\r\n layoutCode: \"ListA\", layoutName: \"M\", layoutOneByOneStyleArray: [\r\n `width:calc(100%);float:left;font-size:16px;height:${heightA2}px;`,\r\n ], isTitleOnly: false, isMiniSideImageView: true, isOneLineTitle: true,\r\n },\r\n // height:${heightA2}px;\r\n {\r\n layoutCode: \"FreeCol\", layoutName: \"S\", layoutOneByOneStyleArray: [\r\n `max-width:calc(90%);float:left;font-size:16px;height:${heightA2}px;overflow:hidden;line-height:normal;`,\r\n ], isTitleOnly: true, isOneLineTitle: true,\r\n },\r\n /*{\r\n layoutCode: \"2ColB\", layoutOneByOneStyleArray: [\r\n `width:calc(50%);float:left;font-size:28px;height:${heightB}px;`,\r\n ], isSideCoverImageView: true,\r\n },*/\r\n /*{\r\n layoutCode: \"3ColA\", layoutOneByOneStyleArray: [\r\n `width:calc(33.333%);float:left;font-size:18px;height:${heightA2}px;overflow:hidden;`,\r\n ], isTitleOnly: true, isMiniSideImageView: true,\r\n },*/\r\n /*{\r\n layoutCode: \"4ColA\", layoutOneByOneStyleArray: [\r\n `width:calc(25%);float:left;font-size:18px;height:${heightA2}px;`,\r\n ], isTitleOnly: true,\r\n },*/\r\n ],\r\n defaultFlagCodeMap4Commands: {\r\n \"/Memo\": \"\",\r\n \"/AINote\": \"\",\r\n \"/AIQuestions\": \"\",\r\n \"/AIPoints\": \"\",\r\n },\r\n\r\n dateOptions: {\r\n weekday: `short`, // `short`, `narrow` can also be used\r\n day: `numeric`,\r\n month: `long`, // Optional, if you want to display the month as well\r\n year: `numeric` // Optional, if you want to display the year as well\r\n },\r\n\r\n}\r\n\r\nexport var defaultActionFlows: ACTION_FLOW_MAP = {\r\n \"SysWebSearch\": {\r\n _GUID: \"SysWebSearch\",\r\n _isSysBuiltIn: true,\r\n _isLongButton: false,\r\n\r\n name: \"WebSearchPlusAI\",\r\n sites: [],\r\n ifSearch4WebPages: true,\r\n ifAIReply: true,\r\n ifUserTextInput: true,\r\n iconClass: \"ccc-icon-search3 text-white rc99 ca padding5 text12 back-orange\",\r\n iconClassLite: \"ccc-icon-search3\",\r\n },\r\n \"SysImageSearch\": {\r\n _GUID: \"SysImageSearch\",\r\n _isSysBuiltIn: true,\r\n\r\n name: \"FindImages\",\r\n sites: [],\r\n ifSearch4WebPages: false,\r\n ifSearch4Images: true,\r\n ifAIReply: false,\r\n ifUserTextInput: true,\r\n iconClass: \"ccc-icon-image2 text-white rc99 ca padding5 text12 back-blue\",\r\n iconClassLite: \"ccc-icon-image2\",\r\n },\r\n \"SysNewsSearch\": {\r\n _GUID: \"SysNewsSearch\",\r\n _isSysBuiltIn: true,\r\n\r\n name: \"FindNews\",\r\n sites: [],\r\n ifSearch4WebPages: false,\r\n ifSearch4News: true,\r\n ifAIReply: true,\r\n ifUserTextInput: true,\r\n iconClass: \"ccc-icon-newspaper text-white rc99 ca padding5 text12 back-blue\",\r\n iconClassLite: \"ccc-icon-newspaper\",\r\n },\r\n \"SysAIOutline\": {\r\n _GUID: \"SysAIOutline\",\r\n _isSysBuiltIn: true,\r\n _isBeta: true,\r\n _startButtonName: \"ask\",\r\n _isLongButton: false,\r\n\r\n name: \"AskAI4Outline\",\r\n sites: [],\r\n ifSearch4WebPages: false,\r\n ifAIReply: true,\r\n ifUserTextInput: true,\r\n iconClass: \"ccc-icon-bubble-dots text-white rc99 ca padding5 text12 \",\r\n iconClassLite: \"ccc-icon-bubble-dots4\",\r\n },\r\n\r\n \"SysAIAnswer\": {\r\n _GUID: \"SysAIAnswer\",\r\n _isSysBuiltIn: true,\r\n _isLongButton: true,\r\n _startButtonName: \"ask\",\r\n\r\n name: \"AskAI4Answer\",\r\n sites: [],\r\n ifSearch4WebPages: false,\r\n ifAIReply: true,\r\n ifUserTextInput: true,\r\n iconClass: \"ccc-icon-atom text-white rc99 ca padding5 text12 back-purple\",\r\n iconClassLite: \"ccc-icon-atom\",\r\n },\r\n\r\n \"SysLongTextSummary\": {\r\n _GUID: \"SysLongTextSummary\",\r\n _isSysBuiltIn: true,\r\n\r\n name: \"LongTextSummary\",\r\n sites: [],\r\n ifSearch4WebPages: false,\r\n ifAIReply: true,\r\n ifUserTextInput: true,\r\n iconClass: \"ccc-icon-stack-text text-white rc99 ca padding5 text12 back-green\",\r\n iconClassLite: \"ccc-icon-stack-text\",\r\n },\r\n\r\n \"SysWebPageSummary\": {\r\n _GUID: \"SysWebPageSummary\",\r\n _isSysBuiltIn: true,\r\n _isBeta: true,\r\n name: \"WebPageSummary\",\r\n sites: [],\r\n ifSearch4WebPages: false,\r\n ifWebPageScrape: true,\r\n ifAIReply: true,\r\n ifUserTextInput: true,\r\n iconClass: \"ccc-icon-sphere text-white rc99 ca padding5 text12 back-blue\",\r\n iconClassLite: \"ccc-icon-sphere\",\r\n },\r\n\r\n \"SysYouTubeSummary\": {\r\n _GUID: \"SysYouTubeSummary\",\r\n _isSysBuiltIn: true,\r\n _isBeta: true,\r\n name: \"YouTubeSummary\",\r\n sites: [],\r\n ifSearch4WebPages: false,\r\n ifWebPageScrape: true,\r\n ifAIReply: true,\r\n ifUserTextInput: true,\r\n iconClass: \"ccc-icon-play text-white rc99 ca padding5 text12 back-red\",\r\n iconClassLite: \"ccc-icon-play\",\r\n },\r\n\r\n \"SysPDFFileSummary\": {\r\n _GUID: \"SysPDFFileSummary\",\r\n _isSysBuiltIn: true,\r\n _isBeta: true,\r\n\r\n name: \"PDFFileSummary\",\r\n sites: [],\r\n ifSearch4WebPages: false,\r\n ifAIReply: true,\r\n ifUserTextInput: false,\r\n ifFileUploaderInput: true,\r\n acceptExt: \".pdf\",\r\n iconClass: \"text-white rc99 ca padding5 text12\",\r\n iconClassLite: \"ccc-icon-file-text2\",\r\n imgSrc: \"./img/icons/icon_PDF.svg\",\r\n\r\n },\r\n\r\n \"SysDOCXFileSummary\": {\r\n _GUID: \"SysDOCXFileSummary\",\r\n _isSysBuiltIn: true,\r\n _isBeta: true,\r\n\r\n name: \"DOCXFileSummary\",\r\n sites: [],\r\n ifSearch4WebPages: false,\r\n ifAIReply: true,\r\n ifUserTextInput: false,\r\n ifFileUploaderInput: true,\r\n acceptExt: \".docx\",\r\n iconClass: \"text-white rc99 ca padding5 text12\",\r\n iconClassLite: \"ccc-icon-file-text2\",\r\n imgSrc: \"./img/icons/icon_DOCX.svg\",\r\n\r\n },\r\n\r\n \"SysTextFileSummary\": {\r\n _GUID: \"SysTextFileSummary\",\r\n _isSysBuiltIn: true,\r\n\r\n name: \"TextFileSummary\",\r\n sites: [],\r\n ifSearch4WebPages: false,\r\n ifAIReply: true,\r\n ifUserTextInput: false,\r\n ifFileUploaderInput: true,\r\n acceptExt: \".txt, .md\",\r\n iconClass: \"text-white rc99 ca padding5 text12\",\r\n iconClassLite: \"ccc-icon-file-text2\",\r\n imgSrc: \"./img/icons/icon_TXT.svg\",\r\n\r\n },\r\n\r\n \"SysNewBlankTopic\": {\r\n _GUID: \"SysNewBlankTopic\",\r\n _isSysBuiltIn: true,\r\n _isLongButton: false,\r\n\r\n name: \"NewBlankTopic\",\r\n sites: [],\r\n ifSearch4WebPages: false,\r\n ifAIReply: false,\r\n ifUserTextInput: true,\r\n ifFileUploaderInput: false,\r\n iconClass: \"ccc-icon-lamp8 text-white rc99 ca padding5 text12\",\r\n iconClassLite: \"ccc-icon-lamp8\",\r\n\r\n },\r\n\r\n \"SysNewBlankSlide\": {\r\n _GUID: \"SysNewBlankSlide\",\r\n _isSysBuiltIn: true,\r\n _isLongButton: false,\r\n\r\n name: \"NewBlankSlide\",\r\n sites: [],\r\n isNotForTopic: true,\r\n ifSearch4WebPages: false,\r\n ifAIReply: false,\r\n ifUserTextInput: true,\r\n ifFileUploaderInput: false,\r\n iconClass: \"ccc-icon-file-plus text-white rc99 ca padding5 text12\",\r\n iconClassLite: \"ccc-icon-file-plus\",\r\n\r\n },\r\n\r\n \"SysNewBlankDeck\": {\r\n _GUID: \"SysNewBlankDeck\",\r\n _isSysBuiltIn: true,\r\n _isLongButton: false,\r\n\r\n name: \"NewBlankDeck\",\r\n sites: [],\r\n isNotForTopic: true,\r\n ifSearch4WebPages: false,\r\n ifAIReply: false,\r\n ifUserTextInput: true,\r\n ifFileUploaderInput: false,\r\n iconClass: \"ccc-icon-stack2 text-white rc99 ca padding5 text12\",\r\n iconClassLite: \"ccc-icon-stack2\",\r\n },\r\n\r\n\r\n}\r\n\r\nexport var defaultActionFlowGroup: ACTION_FLOW_GROUP_MAP = {\r\n\r\n \"ByAskingAI\": [\r\n defaultActionFlows[\"SysAIAnswer\"],\r\n // defaultActionFlows[\"SysAIOutline\"],\r\n ],\r\n\r\n \"ByFinding\": [\r\n defaultActionFlows[\"SysImageSearch\"],\r\n ],\r\n\r\n \"BySummarizing\": [\r\n defaultActionFlows[\"SysWebSearch\"],\r\n defaultActionFlows[\"SysYouTubeSummary\"],\r\n defaultActionFlows[\"SysWebPageSummary\"],\r\n defaultActionFlows[\"SysNewsSearch\"],\r\n\r\n\r\n defaultActionFlows[\"SysLongTextSummary\"],\r\n defaultActionFlows[\"SysTextFileSummary\"],\r\n defaultActionFlows[\"SysPDFFileSummary\"],\r\n defaultActionFlows[\"SysDOCXFileSummary\"],\r\n ],\r\n\r\n \"ByOthers\": [\r\n defaultActionFlows[\"SysNewBlankTopic\"],\r\n defaultActionFlows[\"SysNewBlankSlide\"],\r\n defaultActionFlows[\"SysNewBlankDeck\"],\r\n // defaultActionFlows[\"SysAIOutline\"],\r\n ],\r\n\r\n /*\"default\": [\r\n defaultActionFlows[\"Default\"],\r\n defaultActionFlows[\"AIReply\"],\r\n defaultActionFlows[\"Images\"],\r\n defaultActionFlows[\"News\"],\r\n ],\r\n \"scholar\": [\r\n defaultActionFlows[\"Scholar\"],\r\n defaultActionFlows[\"AIReply\"],\r\n defaultActionFlows[\"Default\"],\r\n ],*/\r\n\r\n \"myTemplate\": [\r\n // ## Images\r\n {\r\n name: \"🖼️ Free Stock Photos\",\r\n \"sites\": [\r\n \"unsplash.com\",\r\n \"pexels.com\",\r\n \"pixabay.com\",\r\n \"rawpixel.com\",\r\n \"stocksnap.io\",\r\n \"kaboompics.com\"\r\n ],\r\n category: \"Images\",\r\n\r\n },\r\n {\r\n _GUID: \"\",\r\n name: \"🖼️ Paid Stock Photos\",\r\n \"sites\": [\r\n \"shutterstock.com\",\r\n \"stock.adobe.com\",\r\n \"gettyimages.com\",\r\n \"istock.com\",\r\n \"depositphotos.com\",\r\n \"alamy.com\"\r\n ],\r\n category: \"Images\"\r\n },\r\n {\r\n _GUID: \"\",\r\n name: \"🖼️ Photography Community\",\r\n \"sites\": [\r\n \"500px.com\",\r\n \"flickr.com\",\r\n \"smugmug.com\",\r\n \"viewbug.com\",\r\n \"gurushots.com\",\r\n \"photocrowd.com\"\r\n ],\r\n category: \"Images\"\r\n },\r\n {\r\n\r\n name: \"🎨 Art & Design\",\r\n \"sites\": [\r\n \"500px.com\",\r\n \"flickr.com\",\r\n \"smugmug.com\",\r\n \"viewbug.com\",\r\n \"gurushots.com\",\r\n \"photocrowd.com\"\r\n ],\r\n category: \"Images\"\r\n },\r\n {\r\n \"name\": \"✏️ Vector & Illustration\",\r\n \"sites\": [\r\n \"freepik.com\",\r\n \"vecteezy.com\",\r\n \"vectorstock.com\",\r\n \"graphicriver.net\",\r\n \"flaticon.com\",\r\n \"icons8.com\"\r\n ],\r\n category: \"Images\"\r\n },\r\n\r\n // ## News\r\n {\r\n \"name\": \"🌍 General News\",\r\n \"sites\": [\r\n \"reuters.com\",\r\n \"apnews.com\",\r\n \"bloomberg.com\",\r\n \"bbc.com/news\",\r\n \"theguardian.com\",\r\n \"nytimes.com\"\r\n ],\r\n \"category\": \"News\"\r\n },\r\n {\r\n \"name\": \"💰 Business News\",\r\n \"sites\": [\r\n \"wsj.com\",\r\n \"ft.com\",\r\n \"cnbc.com\",\r\n \"forbes.com\",\r\n \"businessinsider.com\",\r\n \"marketwatch.com\"\r\n ],\r\n \"category\": \"News\"\r\n },\r\n {\r\n \"name\": \"🏃 Sports News\",\r\n \"sites\": [\r\n \"espn.com\",\r\n \"sports.yahoo.com\",\r\n \"sportingnews.com\",\r\n \"bleacherreport.com\",\r\n \"cbssports.com\",\r\n \"nbcsports.com\"\r\n ],\r\n \"category\": \"News\"\r\n },\r\n {\r\n \"name\": \"🌐 Tech News\",\r\n \"sites\": [\r\n \"theverge.com\",\r\n \"techcrunch.com\",\r\n \"wired.com\",\r\n \"cnet.com\",\r\n \"engadget.com\",\r\n \"mashable.com\"\r\n ],\r\n \"category\": \"News\"\r\n },\r\n {\r\n \"name\": \"🎬 Entertainment News\",\r\n \"sites\": [\r\n \"variety.com\",\r\n \"hollywoodreporter.com\",\r\n \"deadline.com\",\r\n \"ew.com\",\r\n \"billboard.com\",\r\n \"rollingstone.com\"\r\n ],\r\n \"category\": \"News\"\r\n },\r\n {\r\n \"name\": \"🔬 Science News\",\r\n \"sites\": [\r\n \"scientificamerican.com\",\r\n \"sciencedaily.com\",\r\n \"newscientist.com\",\r\n \"livescience.com\",\r\n \"nature.com/news\",\r\n \"science.org/news\"\r\n ],\r\n \"category\": \"News\"\r\n },\r\n\r\n // ## Tech\r\n {\r\n \"name\": \"💻 Tech Deep Dive\",\r\n \"sites\": [\r\n \"arstechnica.com\",\r\n \"zdnet.com\",\r\n \"tomshardware.com\",\r\n \"anandtech.com\",\r\n \"techradar.com\",\r\n \"digitaltrends.com\"\r\n ],\r\n \"category\": \"Tech\"\r\n },\r\n {\r\n \"name\": \"📱 Mobile & Gadgets\",\r\n \"sites\": [\r\n \"9to5mac.com\",\r\n \"androidpolice.com\",\r\n \"gsmarena.com\",\r\n \"phonearena.com\",\r\n \"macrumors.com\",\r\n \"androidcentral.com\"\r\n ],\r\n \"category\": \"Tech\"\r\n },\r\n {\r\n \"name\": \"💼 Business Tech\",\r\n \"sites\": [\r\n \"venturebeat.com\",\r\n \"fortune.com/tech\",\r\n \"bloomberg.com/technology\",\r\n \"reuters.com/technology\",\r\n \"forbes.com/technology\",\r\n \"businessinsider.com/tech\"\r\n ],\r\n \"category\": \"Tech\"\r\n },\r\n\r\n // ## Scholar\r\n {\r\n \"name\": \"📚 Academic Databases\",\r\n \"sites\": [\r\n \"scholar.google.com\",\r\n \"jstor.org\",\r\n \"sciencedirect.com\",\r\n \"researchgate.net\",\r\n \"academia.edu\",\r\n \"eric.ed.gov\"\r\n ],\r\n \"category\": \"Scholar\"\r\n },\r\n {\r\n \"name\": \"🔬 Scientific Publishers\",\r\n \"sites\": [\r\n \"nature.com\",\r\n \"science.org\",\r\n \"springer.com\",\r\n \"wiley.com\",\r\n \"tandfonline.com\",\r\n \"oxford.academic.com\"\r\n ],\r\n \"category\": \"Scholar\"\r\n },\r\n {\r\n \"name\": \"🎓 University Repositories\",\r\n \"sites\": [\r\n \"mit.edu/research\",\r\n \"harvard.edu/research\",\r\n \"stanford.edu/research\",\r\n \"cam.ac.uk/research\",\r\n \"ox.ac.uk/research\",\r\n \"berkeley.edu/research\"\r\n ],\r\n \"category\": \"Scholar\"\r\n },\r\n {\r\n \"name\": \"📖 Open Access Journals\",\r\n \"sites\": [\r\n \"plos.org\",\r\n \"frontiersin.org\",\r\n \"mdpi.com\",\r\n \"biomedcentral.com\",\r\n \"hindawi.com\",\r\n \"arxiv.org\"\r\n ],\r\n \"category\": \"Scholar\"\r\n },\r\n {\r\n \"name\": \"🗂️ Citation Resources\",\r\n \"sites\": [\r\n \"citeseerx.ist.psu.edu\",\r\n \"semanticscholar.org\",\r\n \"worldcat.org\",\r\n \"base-search.net\",\r\n \"core.ac.uk\",\r\n \"dimensions.ai\"\r\n ],\r\n \"category\": \"Scholar\"\r\n },\r\n\r\n // ## Developer\r\n {\r\n \"name\": \"💻 Code Repositories\",\r\n \"sites\": [\r\n \"github.com\",\r\n \"gitlab.com\",\r\n \"bitbucket.org\",\r\n \"sourceforge.net\",\r\n \"code.google.com\",\r\n \"npmjs.com\"\r\n ],\r\n \"category\": \"Developer\"\r\n },\r\n {\r\n \"name\": \"❓ Q&A Communities\",\r\n \"sites\": [\r\n \"stackoverflow.com\",\r\n \"stackexchange.com\",\r\n \"dev.to\",\r\n \"reddit.com/r/programming\",\r\n \"hashnode.com\",\r\n \"quora.com/programming\"\r\n ],\r\n \"category\": \"Developer\"\r\n },\r\n {\r\n \"name\": \"📚 Documentation\",\r\n \"sites\": [\r\n \"developer.mozilla.org\",\r\n \"docs.microsoft.com\",\r\n \"devdocs.io\",\r\n \"w3schools.com\",\r\n \"readthedocs.org\",\r\n \"docs.github.com\"\r\n ],\r\n \"category\": \"Developer\"\r\n },\r\n {\r\n \"name\": \"🎓 Learning Platforms\",\r\n \"sites\": [\r\n \"freecodecamp.org\",\r\n \"codecademy.com\",\r\n \"udemy.com\",\r\n \"pluralsight.com\",\r\n \"coursera.org\",\r\n \"egghead.io\"\r\n ],\r\n \"category\": \"Developer\"\r\n },\r\n {\r\n \"name\": \"🔧 Developer Tools\",\r\n \"sites\": [\r\n \"codepen.io\",\r\n \"jsfiddle.net\",\r\n \"replit.com\",\r\n \"codesandbox.io\",\r\n \"heroku.com\",\r\n \"digitalocean.com\"\r\n ],\r\n \"category\": \"Developer\"\r\n },\r\n\r\n // ## Entertainment\r\n {\r\n \"name\": \"🎮 Gaming\",\r\n \"sites\": [\r\n \"ign.com\",\r\n \"polygon.com\",\r\n \"kotaku.com\",\r\n \"gamespot.com\",\r\n \"eurogamer.net\",\r\n \"pcgamer.com\"\r\n ],\r\n \"category\": \"Entertainment\"\r\n },\r\n {\r\n \"name\": \"🎬 Movie & TV\",\r\n \"sites\": [\r\n \"imdb.com\",\r\n \"rottentomatoes.com\",\r\n \"netflix.com\",\r\n \"hulu.com\",\r\n \"primevideo.com\",\r\n \"disney.com\"\r\n ],\r\n \"category\": \"Entertainment\"\r\n },\r\n {\r\n \"name\": \"🎵 Music\",\r\n \"sites\": [\r\n \"spotify.com\",\r\n \"apple.com/music\",\r\n \"soundcloud.com\",\r\n \"pandora.com\",\r\n \"last.fm\",\r\n \"genius.com\"\r\n ],\r\n \"category\": \"Entertainment\"\r\n },\r\n {\r\n \"name\": \"📺 Videos\",\r\n \"sites\": [\r\n \"youtube.com\",\r\n \"vimeo.com\",\r\n \"dailymotion.com\",\r\n \"tiktok.com\",\r\n \"instagram.com\",\r\n \"snapchat.com\"\r\n ],\r\n \"category\": \"Entertainment\"\r\n },\r\n {\r\n \"name\": \"🎪 Celebrity & Pop Culture\",\r\n \"sites\": [\r\n \"eonline.com\",\r\n \"tmz.com\",\r\n \"buzzfeed.com\",\r\n \"popsugar.com\",\r\n \"people.com\",\r\n \"usmagazine.com\"\r\n ],\r\n \"category\": \"Entertainment\"\r\n },\r\n\r\n // ## Sports\r\n {\r\n \"name\": \"🏆 General Sports\",\r\n \"sites\": [\r\n \"espn.com\",\r\n \"sports.yahoo.com\",\r\n \"cbssports.com\",\r\n \"nbcsports.com\",\r\n \"foxsports.com\",\r\n \"sportingnews.com\"\r\n ],\r\n \"category\": \"Sports\"\r\n },\r\n {\r\n \"name\": \"⚽ Soccer/Football\",\r\n \"sites\": [\r\n \"goal.com\",\r\n \"skysports.com\",\r\n \"fifa.com\",\r\n \"uefa.com\",\r\n \"transfermarkt.com\",\r\n \"football365.com\"\r\n ],\r\n \"category\": \"Sports\"\r\n },\r\n {\r\n \"name\": \"🏀 Basketball\",\r\n \"sites\": [\r\n \"nba.com\",\r\n \"basketball-reference.com\",\r\n \"hoopshype.com\",\r\n \"euroleague.net\",\r\n \"fiba.basketball\",\r\n \"bleacherreport.com/nba\"\r\n ],\r\n \"category\": \"Sports\"\r\n },\r\n {\r\n \"name\": \"⚾ Baseball & American Football\",\r\n \"sites\": [\r\n \"mlb.com\",\r\n \"nfl.com\",\r\n \"baseball-reference.com\",\r\n \"profootballtalk.nbcsports.com\",\r\n \"footballdb.com\",\r\n \"pro-football-reference.com\"\r\n ],\r\n \"category\": \"Sports\"\r\n },\r\n {\r\n \"name\": \"🎾 Other Sports\",\r\n \"sites\": [\r\n \"formula1.com\",\r\n \"atptour.com\",\r\n \"ufc.com\",\r\n \"olympics.com\",\r\n \"pga.com\",\r\n \"tennis.com\"\r\n ],\r\n \"category\": \"Sports\"\r\n },\r\n\r\n // ## Wiki\r\n {\r\n \"name\": \"📚 General Knowledge\",\r\n \"sites\": [\r\n \"wikipedia.org\",\r\n \"britannica.com\",\r\n \"wikiwand.com\",\r\n \"scholarpedia.org\",\r\n \"citizendium.org\",\r\n \"everipedia.org\"\r\n ],\r\n \"category\": \"Wiki\"\r\n },\r\n {\r\n \"name\": \"🎮 Gaming Wikis\",\r\n \"sites\": [\r\n \"fandom.com\",\r\n \"gamepedia.com\",\r\n \"ign.com/wikis\",\r\n \"wikia.org\",\r\n \"giantbomb.com\",\r\n \"gamespot.com/wikis\"\r\n ],\r\n \"category\": \"Wiki\"\r\n },\r\n {\r\n \"name\": \"💻 Tech Documentation\",\r\n \"sites\": [\r\n \"wikibooks.org\",\r\n \"developer.mozilla.org\",\r\n \"docs.microsoft.com\",\r\n \"wiki.archlinux.org\",\r\n \"mediawiki.org\",\r\n \"wikiversity.org\"\r\n ],\r\n \"category\": \"Wiki\"\r\n },\r\n {\r\n \"name\": \"📖 Educational Wikis\",\r\n \"sites\": [\r\n \"wikieducator.org\",\r\n \"wikihow.com\",\r\n \"wiki.ubuntu.com\",\r\n \"instructionalwiki.org\",\r\n \"mathworld.wolfram.com\",\r\n \"wikiversity.org\"\r\n ],\r\n \"category\": \"Wiki\"\r\n },\r\n {\r\n \"name\": \"🔬 Scientific Wikis\",\r\n \"sites\": [\r\n \"scholarpedia.org\",\r\n \"proteopedia.org\",\r\n \"chemspider.com\",\r\n \"biowiki.org\",\r\n \"skybrary.aero\",\r\n \"conservapedia.com\"\r\n ],\r\n \"category\": \"Wiki\"\r\n },\r\n\r\n // ## Shopping\r\n {\r\n \"name\": \"🛍️ General Shopping\",\r\n \"sites\": [\r\n \"amazon.com\",\r\n \"walmart.com\",\r\n \"ebay.com\",\r\n \"target.com\",\r\n \"aliexpress.com\",\r\n \"overstock.com\"\r\n ],\r\n \"category\": \"Shopping\"\r\n },\r\n {\r\n \"name\": \"👔 Fashion & Apparel\",\r\n \"sites\": [\r\n \"nordstrom.com\",\r\n \"macys.com\",\r\n \"asos.com\",\r\n \"zara.com\",\r\n \"hm.com\",\r\n \"uniqlo.com\"\r\n ],\r\n \"category\": \"Shopping\"\r\n },\r\n {\r\n \"name\": \"💻 Electronics\",\r\n \"sites\": [\r\n \"bestbuy.com\",\r\n \"newegg.com\",\r\n \"bhphotovideo.com\",\r\n \"microcenter.com\",\r\n \"adorama.com\",\r\n \"apple.com/store\"\r\n ],\r\n \"category\": \"Shopping\"\r\n },\r\n {\r\n \"name\": \"🏠 Home & Furniture\",\r\n \"sites\": [\r\n \"wayfair.com\",\r\n \"ikea.com\",\r\n \"homedepot.com\",\r\n \"lowes.com\",\r\n \"crateandbarrel.com\",\r\n \"pier1.com\"\r\n ],\r\n \"category\": \"Shopping\"\r\n },\r\n {\r\n \"name\": \"🛒 Marketplaces\",\r\n \"sites\": [\r\n \"etsy.com\",\r\n \"wish.com\",\r\n \"rakuten.com\",\r\n \"jd.com\",\r\n \"shopify.com\",\r\n \"mercari.com\"\r\n ],\r\n \"category\": \"Shopping\"\r\n },\r\n\r\n // ## Blog\r\n {\r\n \"name\": \"✍️ Blogging Platforms\",\r\n \"sites\": [\r\n \"medium.com\",\r\n \"wordpress.com\",\r\n \"blogger.com\",\r\n \"substack.com\",\r\n \"tumblr.com\",\r\n \"ghost.org\"\r\n ],\r\n \"category\": \"Blog\"\r\n },\r\n {\r\n \"name\": \"💡 Tech Blogs\",\r\n \"sites\": [\r\n \"techcrunch.com\",\r\n \"mashable.com\",\r\n \"thenextweb.com\",\r\n \"readwrite.com\",\r\n \"venturebeat.com\",\r\n \"makeuseof.com\"\r\n ],\r\n \"category\": \"Blog\"\r\n },\r\n {\r\n \"name\": \"🎨 Lifestyle & Culture\",\r\n \"sites\": [\r\n \"huffpost.com\",\r\n \"buzzfeed.com\",\r\n \"boingboing.net\",\r\n \"lifehacker.com\",\r\n \"brainpickings.org\",\r\n \"goop.com\"\r\n ],\r\n \"category\": \"Blog\"\r\n },\r\n {\r\n \"name\": \"💼 Business & Marketing\",\r\n \"sites\": [\r\n \"searchenginejournal.com\",\r\n \"socialmediaexaminer.com\",\r\n \"copyblogger.com\",\r\n \"problogger.com\",\r\n \"smartblogger.com\",\r\n \"moz.com/blog\"\r\n ],\r\n \"category\": \"Blog\"\r\n },\r\n {\r\n \"name\": \"🌟 Personal Development\",\r\n \"sites\": [\r\n \"zenhabits.net\",\r\n \"tinybuddha.com\",\r\n \"jamesclear.com\",\r\n \"markmanson.net\",\r\n \"timferriss.com\",\r\n \"stevepavlina.com\"\r\n ],\r\n \"category\": \"Blog\"\r\n }\r\n\r\n\r\n ],\r\n\r\n myTemplateCategories: [\r\n \"News\",\r\n \"Tech\",\r\n \"Images\",\r\n \"Scholar\",\r\n \"Developer\",\r\n \"Entertainment\",\r\n \"Sports\",\r\n \"Wiki\",\r\n \"Shopping\",\r\n \"Blog\",\r\n ],\r\n\r\n}\r\n\r\n\r\nexport var defaultNewPageData: IFC_Page_Data =\r\n {\r\n \"pageTitle\": \"New Page\",\r\n \"pageSections\": [],\r\n \"_GUID\":\r\n \"adb9933e-28ff-5e26-bbd2-4d48fc414537\",\r\n };\r\n/*{\r\n \"pageTitle\": \"New Page\",\r\n \"pageSections\": [{\r\n \"_GUID\": \"e3c12d68-6751-5e44-a9e2-e8ef58941f9e\",\r\n \"sectionType\": \"NOTE_CARD\",\r\n \"sectionTitle\": \"Introduction to a Multi-Layer Note System\",\r\n \"sectionBodyText\": \"A multi-layer note system is a hierarchical system for organizing and managing notes. It allows you to categorize and structure your information in a way that makes it easy to navigate and find what you need. Here's how it works:\\n\",\r\n \"_parentSectionGUID\": \"095bdb08-fe44-545f-bba6-f03337558ef7\",\r\n \"_cacheBodyHTML\": \"

A multi-layer note system is a hierarchical system for organizing and managing notes. It allows you to categorize and structure your information in a way that makes it easy to navigate and find what you need. Here's how it works:

\\n\",\r\n \"_cacheLayoutStyle\": \"width:calc(100%);float:left;\",\r\n \"flagCode\": \"\"\r\n }, {\r\n \"_GUID\": \"61de02d4-5ec9-55e9-8600-5b9aa3b1d4aa\",\r\n \"sectionType\": \"NOTE_CARD\",\r\n \"sectionTitle\": \"Creating Layers of Organization\",\r\n \"sectionBodyText\": \"1. **Main Categories**: The first layer in a multi-layer note system consists of main categories or topics. These are broad areas that encompass different aspects of your information. For example, if you're using a note system for work, your main categories could be \\\" Projects,\\\" \\\"Meetings,\\\" \\\"Research,\\\" etc.\\n2. **Subcategories**: Within each main category, you can create subcategories to further organize your notes. These subcategories are more specific topics that fall under the main category. For example, under the \\\"Projects\\\" category, you could have subcategories like \\\"ProjectA,\\\" \\\"ProjectB,\\\" etc.\\n3. **Individual Notes**: The final layer is the individual notes themselves. Each note corresponds to a specific topic or piece of information. You can add text, images, links, and other relevant content to your notes.\\n\",\r\n \"_parentSectionGUID\": \"095bdb08-fe44-545f-bba6-f03337558ef7\",\r\n \"_cacheBodyHTML\":\r\n \"
    \\n
  1. Main Categories: The first layer in a multi-layer note system consists of main categories or topics. These are broad areas that encompass different aspects of your information. For example, if you're using a note system for work, your main categories could be "Projects," "Meetings," "Research," etc.
  2. \\n
  3. Subcategories: Within each main category, you can create subcategories to further organize your notes. These subcategories are more specific topics that fall under the main category. For example, under the "Projects" category, you could have subcategories like "Project A," "Project B," etc.
  4. \\n
  5. Individual Notes: The final layer is the individual notes themselves. Each note corresponds to a specific topic or piece of information. You can add text, images, links, and other relevant content to your notes.
  6. \\n
\\n\",\r\n \"_cacheLayoutStyle\":\r\n \"width:calc(50%);float:left;\",\r\n \"flagCode\":\r\n \"\"\r\n },\r\n {\r\n \"_GUID\":\r\n \"ef3ba8e3-1d54-53e3-9101-4cca5a011dd0\",\r\n \"sectionType\":\r\n \"NOTE_CARD\",\r\n \"sectionTitle\":\r\n \"Benefits of a Multi-Layer Note System\",\r\n \"sectionBodyText\":\r\n \"1. **Organization**: With a multi-layer note system, you can organize your information in a structured and logical manner. This makes it easier to find specific notes and retrieve information when you need it.\\n2. **Flexibility**: The hierarchical nature of a multi-layer note system allows you to adapt and modify your categories and subcategories as your needs change. You can easily add, remove, or rearrange categories based on your evolving requirements.\\n3. **Efficiency**: By organizing your notes into different layers, you can quickly drill down to the specific information you're looking for. This saves time and reduces the frustration of searching through numerous unrelated notes.\\n4. **Contextualization**: A multi-layer note system helps you see the relationship between different pieces of information. You can understand how specific notes fit into broader categories or topics, providing valuable context and enhancing your overall understanding.\\n5. **Cross-referencing**: With a well-structured note system, you can easily link and cross-reference related notes. This allows you to build connections between different pieces of information, promote knowledge discovery, and foster creativity.\\nIn summary, a multi-layer note system provides a systematic and efficient way to organize and manage your information. It helps you maintain clarity, find what you need quickly, and make connections between different topics or ideas.\\n\",\r\n \"_parentSectionGUID\":\r\n \"095bdb08-fe44-545f-bba6-f03337558ef7\",\r\n \"_cacheBodyHTML\":\r\n \"
    \\n
  1. Organization: With a multi-layer note system, you can organize your information in a structured and logical manner. This makes it easier to find specific notes and retrieve information when you need it.
  2. \\n
  3. Flexibility: The hierarchical nature of a multi-layer note system allows you to adapt and modify your categories and subcategories as your needs change. You can easily add, remove, or rearrange categories based on your evolving requirements.
  4. \\n
  5. Efficiency: By organizing your notes into different layers, you can quickly drill down to the specific information you're looking for. This saves time and reduces the frustration of searching through numerous unrelated notes.
  6. \\n
  7. Contextualization: A multi-layer note system helps you see the relationship between different pieces of information. You can understand how specific notes fit into broader categories or topics, providing valuable context and enhancing your overall understanding.
  8. \\n
  9. Cross-referencing: With a well-structured note system, you can easily link and cross-reference related notes. This allows you to build connections between different pieces of information, promote knowledge discovery, and foster creativity.\\nIn summary, a multi-layer note system provides a systematic and efficient way to organize and manage your information. It helps you maintain clarity, find what you need quickly, and make connections between different topics or ideas.
  10. \\n
\\n\",\r\n \"_cacheLayoutStyle\":\r\n \"width:calc(50%);float:left;\",\r\n \"flagCode\":\r\n \"\"\r\n }\r\n ,\r\n {\r\n \"_GUID\":\r\n \"095bdb08-fe44-545f-bba6-f03337558ef7\", \"sectionType\":\r\n \"NOTE_CARD\", \"sectionTitle\":\r\n \"How does a multi-layer note system work?\", \"sectionBodyText\":\r\n \"\", \"_parentSectionGUID\":\r\n \"595228a8-430f-5783-9fd0-e8ec60e4cbd9\", \"_cacheBodyHTML\":\r\n \"\", \"_cacheLayoutStyle\":\r\n \"width:calc(100%);float:left;\", \"flagCode\":\r\n \"\"\r\n }\r\n ,\r\n {\r\n \"_GUID\":\r\n \"edadd901-259e-50bb-ab69-fcae6921af36\", \"_parentSectionGUID\":\r\n \"\", \"sectionTitle\":\r\n \"Welcome to Project Morisot Alpha2\", \"sectionBodyText\":\r\n \"\", \"sectionType\":\r\n \"HEADER\", \"_cacheBodyHTML\":\r\n \"\", \"_cacheLayoutStyle\":\r\n \"\\n width:calc(100%);float:left; \\n \"\r\n }\r\n ,\r\n {\r\n \"_GUID\":\r\n \"04dd9c5e-cf31-5ed8-946a-ceacc2a315f6\", \"sectionType\":\r\n \"NOTE_CARD\", \"sectionTitle\":\r\n \"This Product is an AI-Ready Card Notes\", \"sectionBodyText\":\r\n \"\", \"_parentSectionGUID\":\r\n \"\", \"_cacheBodyHTML\":\r\n \"\", \"_cacheLayoutStyle\":\r\n \"width:calc(100%);float:left;\", \"flagCode\":\r\n \"\"\r\n }\r\n ,\r\n {\r\n \"_GUID\":\r\n \"61d909b8-1ed4-5102-b17d-f61f34398c58\", \"sectionType\":\r\n \"NOTE_CARD\", \"sectionTitle\":\r\n \"✨Exlploring with AI\", \"sectionBodyText\":\r\n \"\", \"_parentSectionGUID\":\r\n \"\", \"_cacheBodyHTML\":\r\n \"\", \"_cacheLayoutStyle\":\r\n \"width:calc(50%);float:left;\", \"flagCode\":\r\n \"purple\"\r\n }\r\n ,\r\n {\r\n \"_GUID\":\r\n \"595228a8-430f-5783-9fd0-e8ec60e4cbd9\", \"sectionType\":\r\n \"NOTE_CARD\", \"sectionTitle\":\r\n \"✏️Multi-Layer Note System\", \"sectionBodyText\":\r\n \"(double click this note to see more)\", \"_parentSectionGUID\":\r\n \"\", \"_cacheBodyHTML\":\r\n \"

(double click this note to see more)

\\n\", \"_cacheLayoutStyle\":\r\n \"width:calc(50%);float:left;\", \"flagCode\":\r\n \"green\"\r\n }\r\n ],\r\n \"_GUID\":\r\n \"adb9933e-28ff-5e26-bbd2-4d48fc414537\"\r\n};*/\r\n\r\n\r\nexport var defaultUserGuildTopics =\r\n {\r\n \"finance\": [\r\n \"famous banks in the world\",\r\n \"famous CEOs in the world\",\r\n \"famous startups\",\r\n ],\r\n \"culture\": [\r\n \"famous landmarks of Paris\",\r\n \"famous landmarks of Kyoto\",\r\n \"famous landmarks of New York\",\r\n ],\r\n \"space\": [\r\n \"introduce solar system\",\r\n \"introduce NASA\",\r\n \"introduce the moon\",\r\n ],\r\n \"history\": [\r\n \"significant history events and their global impacts\",\r\n \"historical figures who changed the world\",\r\n \"Napoleon Bonaparte\",\r\n ],\r\n \"productivity\": [\r\n \"What is GTD\",\r\n \"best to-do list Apps\",\r\n \"note-taking tech\",\r\n ]\r\n };\r\n","// @TS-NOCHECK\r\nimport {IFC_LicenseProviderManager, IFC_UserManager} from \"@/codes/_20.def/managerIFs\";\r\nimport {IFC_User_Info} from \"@/codes/_20.def/dataTypes\";\r\nimport {reactive} from \"vue\";\r\nimport {SYSS} from \"@/codes/_10.sys/A0Committee\"\r\nimport {\r\n TYPE_EVENT,\r\n TYPE_EXCEPTION_DIALOG_NAME,\r\n TYPE_ID_LOCAL_APP_DB,\r\n TYPE_PROP,\r\n TYPE_SUBSCRIPTION_PLAN,\r\n TYPE_SUBSCRIPTION_STATUS\r\n} from \"@/codes/_20.def/_modDataDict\";\r\nimport {lockResultPageUI, UIS} from \"@/codes/_10.sys/UICommittee\";\r\nimport {UserManager} from 'oidc-client-ts';\r\n\r\nvar appUserManager: IFC_UserManager = reactive({});\r\nwindow.appUserManager = appUserManager;\r\n\r\nappUserManager.currentUserInfo = reactive({});\r\n\r\n// Local Test Cognito Settings\r\nconst cognitoAuthConfigLocalTest = {\r\n authority: \"https://cognito-idp.us-west-1.amazonaws.com/us-west-1_6epBc8FGf\",\r\n client_id: \"5chirnb7dmderfj8q6gs94sh6p\",\r\n redirect_uri: \"http://localhost:8080\",\r\n response_type: \"code\",\r\n scope: \"email openid phone\"\r\n};\r\n\r\nconst signOutRedirectLocalTest = async function () {\r\n const clientId = \"5chirnb7dmderfj8q6gs94sh6p\";\r\n const logoutUri = \"http://localhost:8080\";\r\n const cognitoDomain = \"https://us-west-16epbc8fgf.auth.us-west-1.amazoncognito.com\";\r\n window.location.href = `${cognitoDomain}/logout?client_id=${clientId}&logout_uri=${encodeURIComponent(logoutUri)}`;\r\n}\r\n\r\n// Prod Cognito Settings\r\nconst cognitoAuthConfigProd = {\r\n authority: \"https://cognito-idp.us-west-1.amazonaws.com/us-west-1_sfoZwtxNd\",\r\n client_id: \"3eqv0u69gg2p8nd1r62i3od332\",\r\n redirect_uri: \"https://app.fyndeck.com\",\r\n response_type: \"code\",\r\n scope: \"email openid phone\"\r\n};\r\n\r\nconst signOutRedirectProd = async function () {\r\n const clientId = \"3eqv0u69gg2p8nd1r62i3od332\";\r\n const logoutUri = \"https://app.fyndeck.com\";\r\n const cognitoDomain = \"https://us-west-1sfozwtxnd.auth.us-west-1.amazoncognito.com\";\r\n window.location.href = `${cognitoDomain}/logout?client_id=${clientId}&logout_uri=${encodeURIComponent(logoutUri)}`;\r\n}\r\n\r\n// create a UserManager instance\r\nlet signOutRedirect = signOutRedirectProd;\r\nlet cognitoAuthConfig = cognitoAuthConfigProd;\r\nif (SYSS.isTestEnv) {\r\n signOutRedirect = signOutRedirectLocalTest;\r\n cognitoAuthConfig = cognitoAuthConfigLocalTest;\r\n}\r\nconst userManager = new UserManager({\r\n ...cognitoAuthConfig,\r\n});\r\n\r\n\r\nappUserManager.initializeUserSession = async function (xCallback) {\r\n\r\n function onUserAuthChecked() {\r\n if (xCallback) {\r\n xCallback(null);\r\n }\r\n }\r\n\r\n delete appUserManager.currentUserInfo[TYPE_ID_LOCAL_APP_DB.USER_NAME];\r\n appUserManager.currentSubscriptionStatus = TYPE_SUBSCRIPTION_STATUS.UNKNOWN;\r\n\r\n // * check UserInfo from local storage\r\n let zUserName = localStorage[TYPE_ID_LOCAL_APP_DB.USER_NAME];\r\n let zUserEmail = localStorage[\"email\"];\r\n if (zUserName) {\r\n console.log(\"*auth\", \"local-session\", zUserName, zUserEmail);\r\n\r\n appUserManager\r\n .letUserJumpIn({username: zUserName, email: zUserEmail})\r\n .then(data => {\r\n onUserAuthChecked();\r\n });\r\n } else {\r\n if (SYSS.paramCogCode) {\r\n userManager.signinCallback().then(function (user) {\r\n // alert(\"callbacked\");\r\n // eslint-disable-next-line no-undef\r\n cwrn(\"*usr v2\", user?.profile)\r\n let zCogUserProfile = user?.profile;\r\n if (!zCogUserProfile) return;\r\n\r\n localStorage[TYPE_ID_LOCAL_APP_DB.USER_NAME] = zCogUserProfile[\"cognito:username\"];\r\n localStorage[\"email\"] = zCogUserProfile[\"email\"];\r\n window.location.href = window.location.href.split('?')[0];\r\n /*document.getElementById(\"email\").textContent = user.profile?.email;\r\n document.getElementById(\"access-token\").textContent = user.access_token;\r\n document.getElementById(\"id-token\").textContent = user.id_token;\r\n document.getElementById(\"refresh-token\").textContent = user.refresh_token;*/\r\n })\r\n } else {\r\n // alert(\"sign in start\");\r\n try {\r\n await userManager.signinRedirect();\r\n } catch (e) {\r\n cerr(\"*sign failed\");\r\n }\r\n }\r\n }\r\n\r\n}\r\n/*appUserManager.initializeUserSession = async function (xCallback) {\r\n // delete appUserManager.currentUserInfo[TYPE_ID_LOCAL_APP_DB.USER_NAME];\r\n appUserManager.currentSubscriptionStatus = TYPE_SUBSCRIPTION_STATUS.UNKNOWN;\r\n\r\n function onUserAuthChecked() {\r\n if (xCallback) {\r\n xCallback(null);\r\n }\r\n }\r\n\r\n // * check UserInfo from Auth\r\n const listener = (xListenedResult: any) => {\r\n console.log(\"*auth\", xListenedResult, xListenedResult.payload);\r\n if (xListenedResult && xListenedResult.payload && xListenedResult.payload.data && xListenedResult.payload.event) {\r\n let zEventName = xListenedResult.payload.event;\r\n let zUserInfo: IFC_User_Info = nz(xListenedResult.payload.data.attributes, {});\r\n zUserInfo.username = xListenedResult.payload.data.username;\r\n\r\n console.log(\"*auth\", zEventName, zUserInfo);\r\n\r\n if (zEventName == \"signIn\") {\r\n if (!appUserManager.currentUserInfo.username) {\r\n appUserManager\r\n .letUserJumpIn(zUserInfo)\r\n .then(data => {\r\n onUserAuthChecked();\r\n });\r\n }\r\n } else if (zEventName == \"signInWithRedirect\") {\r\n console.log(\"*usr rdrct\", zUserInfo);\r\n if (!appUserManager.currentUserInfo.username) {\r\n appUserManager\r\n .letUserJumpIn(zUserInfo)\r\n .then(data => {\r\n onUserAuthChecked();\r\n });\r\n }\r\n } else if (zEventName == \"signOut\") {\r\n appUserManager.letUserSignOutSync();\r\n setTimeout(function(){\r\n window.location.reload();\r\n },200);\r\n }\r\n\r\n }\r\n };\r\n Hub.listen('auth', listener);\r\n\r\n // * check UserInfo from local storage\r\n let zUserName = localStorage[TYPE_ID_LOCAL_APP_DB.USER_NAME];\r\n let zUserEmail = localStorage[\"email\"];\r\n if (zUserName) {\r\n console.log(\"*auth\", \"local-session\", zUserName, zUserEmail);\r\n\r\n appUserManager\r\n .letUserJumpIn({username: zUserName, email: zUserEmail})\r\n .then(data => {\r\n onUserAuthChecked();\r\n });\r\n }\r\n\r\n}*/\r\n\r\n\r\nappUserManager.getUserInfo = function (xUserInfo) {\r\n // console.log(\"*get user\", xUserInfo);\r\n\r\n if (xUserInfo && xUserInfo.username) {\r\n //await // call remote matisse jumpin action\r\n\r\n let zEndPointURL = SYSS.API_ADDR + \"/getUserInfo\";\r\n let zUserInfo = _.clone(nz(xUserInfo, {}));\r\n zUserInfo.projectName = SYSS.PROJECT_NAME;\r\n\r\n return fetch(zEndPointURL, {\r\n method: 'POST', // or 'PUT' if you are updating data\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n },\r\n body: JSON.stringify(zUserInfo), // Convert the JavaScript object to a JSON string\r\n })\r\n .then(response => response.json()) // Parse the JSON response\r\n .then(data => {\r\n // console.log('*gtusr:', data); // Handle the response data\r\n // get userinfo from replied data\r\n if (data && data.userinfo && data.userinfo.username) {\r\n _.extend(appUserManager.currentUserInfo, data.userinfo);\r\n // console.log(\"*jumpin x2\",appUserManager.currentUserInfo,\"\");\r\n\r\n // * check subEndDT (TYPE_SUBSCRIPTION_STATUS)\r\n appUserManager.currentSubscriptionStatus = TYPE_SUBSCRIPTION_STATUS.UNKNOWN;\r\n if (!appUserManager.currentUserInfo.subEndDT) {\r\n appUserManager.currentSubscriptionStatus = TYPE_SUBSCRIPTION_STATUS.NOT_FOUND;\r\n } else {\r\n try {\r\n let zSubEndDate = new Date(appUserManager.currentUserInfo.subEndDT);\r\n let zNow = new Date();\r\n appUserManager.currentSubscriptionStatus = TYPE_SUBSCRIPTION_STATUS.EXPIRED;\r\n if (zSubEndDate >= zNow) {\r\n appUserManager.currentSubscriptionStatus = TYPE_SUBSCRIPTION_STATUS.VALID;\r\n }\r\n } catch (e) {\r\n cerr(e)\r\n }\r\n }\r\n\r\n }\r\n })\r\n .catch((error) => {\r\n // todo: error dialog\r\n console.error('Error:', error); // Handle any errors\r\n });\r\n\r\n }\r\n}\r\n\r\nappUserManager.letUserJumpIn = function (xUserInfo) {\r\n console.log(\"*auth jumpin\", xUserInfo);\r\n\r\n if (xUserInfo && xUserInfo.username) {\r\n //await // call remote matisse jumpin action\r\n\r\n\r\n let zEndPointURL = SYSS.API_ADDR + \"/jumpIn\";\r\n let zUserInfo: IFC_User_Info = _.clone(nz(xUserInfo, {}));\r\n zUserInfo.projectName = SYSS.PROJECT_NAME;\r\n\r\n let zPreSubID = nz(localStorage[\"preSubID\"], \"\");\r\n // console.log(\"*prsb\", zPreSubID, \"*\");\r\n delete localStorage[\"preSubID\"];\r\n if (zPreSubID) {\r\n zUserInfo.preSubID = zPreSubID;\r\n }\r\n\r\n return fetch(zEndPointURL, {\r\n method: 'POST', // or 'PUT' if you are updating data\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n },\r\n body: JSON.stringify(zUserInfo), // Convert the JavaScript object to a JSON string\r\n })\r\n .then(response => response.json()) // Parse the JSON response\r\n .then(data => {\r\n console.log('*jumpin success:', data); // Handle the response data\r\n localStorage[TYPE_ID_LOCAL_APP_DB.USER_NAME] = xUserInfo.username;\r\n if (xUserInfo.email) {\r\n localStorage[\"email\"] = xUserInfo.email;\r\n }\r\n // get userinfo from replied data\r\n if (data && data.userinfo) {\r\n _.extend(appUserManager.currentUserInfo, data.userinfo);\r\n // console.log(\"*jumpin x2\",appUserManager.currentUserInfo,\"\");\r\n\r\n // * check subEndDT (TYPE_SUBSCRIPTION_STATUS)\r\n appUserManager.currentSubscriptionStatus = TYPE_SUBSCRIPTION_STATUS.UNKNOWN;\r\n if (!appUserManager.currentUserInfo.subEndDT) {\r\n appUserManager.currentSubscriptionStatus = TYPE_SUBSCRIPTION_STATUS.NOT_FOUND;\r\n } else {\r\n try {\r\n let zSubEndDate = new Date(appUserManager.currentUserInfo.subEndDT);\r\n let zNow = new Date();\r\n appUserManager.currentSubscriptionStatus = TYPE_SUBSCRIPTION_STATUS.EXPIRED;\r\n if (zSubEndDate >= zNow) {\r\n appUserManager.currentSubscriptionStatus = TYPE_SUBSCRIPTION_STATUS.VALID;\r\n }\r\n } catch (e) {\r\n cerr(e)\r\n }\r\n }\r\n\r\n\r\n // * check if BYO Free Plan mode\r\n appUserManager.currentUserInfo.EAK = \"\";\r\n if (appUserManager.currentSubscriptionStatus != TYPE_SUBSCRIPTION_STATUS.VALID) {\r\n let zEAK = appUserManager.getEncryptedBYOAPIKey(appUserManager.currentUserInfo);\r\n if (zEAK) {\r\n appUserManager.currentUserInfo.EAK = zEAK;\r\n appUserManager.currentSubscriptionStatus = TYPE_SUBSCRIPTION_STATUS.BYO_FREE;\r\n }\r\n }\r\n\r\n // * emit USER READY message\r\n window.emitter.emit(TYPE_EVENT.USER_READY);\r\n\r\n }\r\n })\r\n .catch((error) => {\r\n // todo: error dialog\r\n console.error('Error:', error); // Handle any errors\r\n });\r\n\r\n }\r\n\r\n}\r\n\r\nappUserManager.letUserSignOutSync = function () {\r\n delete localStorage[TYPE_ID_LOCAL_APP_DB.USER_NAME];\r\n delete localStorage[\"email\"];\r\n let zLSKeys = _.keys(localStorage);\r\n\r\n _.each(zLSKeys, function (xLSKey: string) {\r\n if (xLSKey.endsWith(\"_ak\")) { // ** api key\r\n delete localStorage[xLSKey];\r\n }\r\n });\r\n\r\n clearObject(appUserManager.currentUserInfo);\r\n appUserManager.currentSubscriptionStatus = TYPE_SUBSCRIPTION_STATUS.UNKNOWN;\r\n\r\n lockResultPageUI();\r\n setTimeout(function () {\r\n if (signOutRedirect) signOutRedirect();\r\n }, 1000)\r\n}\r\n\r\n\r\nappUserManager.letUserActivateByLicCode = async function (xUserInfo, xLicCode) {\r\n console.log(\"*actv lic\", xUserInfo);\r\n\r\n if (xUserInfo && xUserInfo.username && xLicCode) {\r\n //await // call remote matisse jumpin action\r\n\r\n let zEndPointURL = SYSS.API_ADDR + \"/myLic\";\r\n let zUserInfo = _.clone(nz(xUserInfo, {}));\r\n zUserInfo.projectName = SYSS.PROJECT_NAME;\r\n zUserInfo.licCode = nz(xLicCode, \"\");\r\n let appLicenseProviderManager: IFC_LicenseProviderManager = window.appLicenseProviderManager;\r\n let zResObj = await appLicenseProviderManager.getFromLicRes_Gumroad(xLicCode);\r\n zUserInfo.licResData = zResObj;\r\n\r\n return fetch(zEndPointURL, {\r\n method: 'POST', // or 'PUT' if you are updating data\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n },\r\n body: JSON.stringify(zUserInfo), // Convert the JavaScript object to a JSON string\r\n })\r\n .then(response => response.json()) // Parse the JSON response\r\n .then(data => {\r\n if (data.isOK) {\r\n console.log('*actv lic success:', data); // Handle the response data\r\n alert(\"OK,Restart\");\r\n window.location.reload();\r\n } else {\r\n console.log('*actv lic failed:', data); // Handle the response data\r\n alert(\"Oops, the License Key is not valid. \\nfyndeck@divedeck.ai\");\r\n window.location.reload();\r\n }\r\n })\r\n .catch((error) => {\r\n // todo: error dialog\r\n console.error('Error:', error); // Handle any errors\r\n });\r\n\r\n }\r\n}\r\n\r\nappUserManager.saveBYOAPIKey = function (xUserInfo, xRawAPIKey) {\r\n let zPrefix = \"\";\r\n if (xUserInfo) {\r\n zPrefix = xUserInfo.username;\r\n }\r\n let zEncryptedAPIKey = miniEncrypt(xRawAPIKey, \"#$%sdjh_342\")\r\n localStorage[zPrefix + \"_ak\"] = nz(zEncryptedAPIKey, \"\");\r\n}\r\n\r\nappUserManager.getEncryptedBYOAPIKey = function (xUserInfo) {\r\n let zPrefix = \"\";\r\n if (xUserInfo) {\r\n zPrefix = xUserInfo.username;\r\n }\r\n return nz(localStorage[zPrefix + \"_ak\"], \"\");\r\n}\r\n\r\nappUserManager.checkIsPaidSubPlanUser = function () {\r\n if (appUserManager.currentUserInfo.subPlanType == TYPE_SUBSCRIPTION_PLAN.Plus) return true;\r\n if (appUserManager.currentUserInfo.subPlanType == TYPE_SUBSCRIPTION_PLAN.Pro) return true;\r\n if (appUserManager.currentUserInfo.subPlanType == TYPE_SUBSCRIPTION_PLAN.Ultra) return true;\r\n if (appUserManager.currentUserInfo.subPlanType == TYPE_SUBSCRIPTION_PLAN.Premium) return true;\r\n if (appUserManager.currentUserInfo.subPlanType == TYPE_SUBSCRIPTION_PLAN.Lite) return true;\r\n return false;\r\n}\r\n\r\nappUserManager.checkIsApprovedSubPlanUser = function () {\r\n if (appUserManager.currentUserInfo.isApprovedSubPlan) return true;\r\n return false;\r\n}\r\n\r\nappUserManager.checkIsOutOfCredits = function () {\r\n let zCredits = nz(appUserManager.currentUserInfo.credits, 0);\r\n if (zCredits <= 0) {\r\n window.emitter.emit(TYPE_EVENT.OUT_OF_CREDITS);\r\n return true;\r\n } else {\r\n // credits ok\r\n }\r\n return false;\r\n}\r\n\r\nappUserManager.gotoUpgradeSubscription = function () {\r\n let zSubPlanURL = TYPE_PROP.SUB_PLAN_PRICING_URL as string;\r\n window.location = zSubPlanURL;\r\n}\r\n","var LicProviderInfo = {\r\n \"Gumroad\": {\r\n // productID_A: \"WRVKTnrUCmlHRDLMyTTFfQ==\", // Gumroad Product ID TEST\r\n productID_A: \"5dmLj5lFOiZdyWJ8pwI8Dg==\", // Gumroad Product ID EA_A\r\n endPointURL: \"https://api.gumroad.com/v2/licenses/verify\",\r\n }\r\n}\r\n\r\nimport {IFC_LicenseProviderManager} from \"@/codes/_20.def/managerIFs\";\r\n\r\ndeclare var window: any;\r\n\r\nvar appLicenseProviderManager: IFC_LicenseProviderManager;\r\nwindow.appLicenseProviderManager = appLicenseProviderManager = {} as IFC_LicenseProviderManager;\r\n\r\nappLicenseProviderManager.getFromLicRes_Gumroad = async function (xLicCode) {\r\n let zProvider = LicProviderInfo.Gumroad;\r\n if (!xLicCode) return console.error(\"*mis lc\");\r\n if (!zProvider) return console.error(\"*mis lc prvd\");\r\n let zProductCode = zProvider.productID_A;\r\n\r\n let zEndPointURL = zProvider.endPointURL;\r\n const data = new URLSearchParams();\r\n data.append('product_id', zProductCode);\r\n data.append('license_key', xLicCode);\r\n\r\n try {\r\n let zResponse = await fetch(zEndPointURL, {\r\n method: 'POST',\r\n body: data\r\n });\r\n if (zResponse && zResponse.json) {\r\n let zResObj = await zResponse.json();\r\n return zResObj;\r\n }\r\n } catch (err) {\r\n console.error('Error:', err);\r\n return {err: true}\r\n }\r\n\r\n}\r\n","// @TS-NOCHECK\r\nimport {IFC_AIManager, IFC_AIPrompt_Provider} from \"../_20.def/managerIFs\";\r\nimport {\r\n TYPE_AI_ACTION, TYPE_API_PATH,\r\n TYPE_EVENT,\r\n TYPE_ID_LOCAL_APP_DB,\r\n TYPE_PROP,\r\n TYPE_SESSION_STATUS\r\n} from \"../_20.def/_modDataDict\";\r\nimport {IFC_AI_Request_Options, IFC_AI_Session, IFC_OptionsForAskAI} from \"../_20.def/dataTypes\";\r\nimport {reactive} from 'vue';\r\nimport md5 from \"js-md5\";\r\nimport {SYSS} from \"@/codes/_10.sys/A0Committee\";\r\n\r\nvar appAIManager: IFC_AIManager = {};\r\nwindow.appAIManager = appAIManager;\r\ndeclare var appUserManager: IFC_UserManager;\r\n\r\nappAIManager.allAISessions = reactive({});\r\nappAIManager.tempNextTopics = [];\r\n\r\nappAIManager.extractMessageTextFromAIResponse = function (xResponseObject, xOptions) {\r\n try {\r\n // cwrn(\"*res\", xResponseObject);\r\n let zResponseObject = nz(xResponseObject, {});\r\n if (!zResponseObject) return \"\";\r\n if (!zResponseObject.choices) return \"\";\r\n if (!zResponseObject.choices.length) return \"\";\r\n if (!zResponseObject.choices[0]) return \"\";\r\n\r\n // * if return message\r\n if (zResponseObject.choices[0].message) {\r\n return nz(zResponseObject.choices[0].message.content, \"\");\r\n }\r\n\r\n // * if return delta\r\n if (zResponseObject.choices[0].delta) {\r\n return nz(zResponseObject.choices[0].delta.content, \"\");\r\n }\r\n\r\n return \"\";\r\n\r\n } catch (e) {\r\n cerr(e);\r\n return \"\";\r\n }\r\n}\r\n\r\nappAIManager.runAITranslateOperation =\r\n async function (xSourceText, xLangCode) {\r\n\r\n if (appUserManager.checkIsOutOfCredits()) return;\r\n\r\n // * Build Request Options\r\n let zUserName = localStorage[TYPE_ID_LOCAL_APP_DB.USER_NAME];\r\n let zAIActionType = TYPE_AI_ACTION.ForTranslatingNote;\r\n let zRequest = {\r\n sysMessageKey1: \"\",\r\n sysMessageKey2: zAIActionType,\r\n sysEvidence: getSysEvidence(zUserName + \".\" + zAIActionType),\r\n userMessages: [xSourceText],\r\n username: zUserName,\r\n modelType: \"lite\",\r\n };\r\n zRequest.langCode = nz(xLangCode, appAIManager.langCode);\r\n zRequest.projectName = SYSS.PROJECT_NAME;\r\n // cerr(\"*zreq\",zRequest);\r\n\r\n // * via AI Proxy Server\r\n let zAIProxyServerURL =SYSS.API_ADDR+TYPE_API_PATH.AI_PROXY;\r\n\r\n window.emitter.emit(TYPE_EVENT.AI_TRNS_STRAT);\r\n let zReturnMessage = \"\";\r\n\r\n await fetchSSE(zAIProxyServerURL, {}, zRequest, function (err, xChunk) {\r\n if (err) {\r\n window.emitter.emit(TYPE_EVENT.AI_GEN_ERROR);\r\n } else {\r\n let zResObjStrings = xChunk.split(\"}{\");\r\n _.each(zResObjStrings, function (xResObjString) {\r\n let zResObjString = nz(xResObjString, \"\").trim();\r\n let zResObj = {};\r\n if (!zResObjString.startsWith(\"{\")) zResObjString = \"{\" + zResObjString;\r\n if (!zResObjString.endsWith(\"}\")) zResObjString += \"}\";\r\n try {\r\n zResObj = JSON.parse(zResObjString);\r\n } catch (e) {\r\n cerr(e, zResObjString);\r\n }\r\n // console.log(appAIManager.extractMessageTextFromAIResponse(zResObj));\r\n zReturnMessage += nz(appAIManager.extractMessageTextFromAIResponse(zResObj), \"\");\r\n // console.log(zResObj);\r\n });\r\n }\r\n }\r\n );\r\n\r\n // cwrn(\"ftcSSE DONE! AIPROXY TRNS\",zReturnMessage);\r\n\r\n return zReturnMessage;\r\n }\r\n\r\nappAIManager.runAskAIOperation =\r\n async function (xAIRequestOptions, xSessionGUID, xAskAIOptions) {\r\n\r\n try {\r\n\r\n\r\n if (appUserManager.checkIsOutOfCredits()) return;\r\n\r\n if (!xAIRequestOptions) return cerr(\"*mis para\");\r\n let zAskAIOptions: IFC_OptionsForAskAI = nz(xAskAIOptions, {});\r\n\r\n\r\n let zSessionGUID = nz(xSessionGUID, chance.guid());\r\n appAIManager.currentAISessionGUID = zSessionGUID;\r\n let zSessionItem: IFC_AI_Session = appAIManager.allAISessions[zSessionGUID];\r\n if (!zSessionItem) {\r\n zSessionItem = {};\r\n zSessionItem._GUID = xSessionGUID;\r\n zSessionItem._createdAt = new Date();\r\n zSessionItem.userMessage = nz(zAskAIOptions.userMessage, \"\");\r\n zSessionItem.SERPItemArray = nz(zAskAIOptions.SERPItemArray, []);\r\n\r\n zSessionItem.returnMessage = \"\";\r\n if (zAskAIOptions.existingContent) zSessionItem.returnMessage = zAskAIOptions.existingContent + \"\\n****\\n\\n\";\r\n\r\n zSessionItem.status = TYPE_SESSION_STATUS.RUNNING;\r\n zSessionItem.AIActionType = nz(zAskAIOptions.AIActionType, \"\");\r\n zSessionItem.pageSectionGUID = nz(zAskAIOptions.pageSectionGUID, \"\");\r\n\r\n appAIManager.allAISessions[zSessionGUID] = zSessionItem;\r\n }\r\n\r\n let zRequest = xAIRequestOptions;\r\n zRequest.langCode = nz(appAIManager.langCode, \"\");\r\n zRequest.projectName = SYSS.PROJECT_NAME;\r\n\r\n if (SYSS.MOD_CODE){\r\n zRequest.sysModCode = SYSS.MOD_CODE;\r\n }\r\n\r\n // cerr(\"*zreq\", zRequest);\r\n\r\n /*let zAPIKey_OEPNAI = window.appUserStorage[\"OPENAI_API_KEY\"];\r\n\r\n // * via OPENAI API KEY\r\n\r\n if (zAPIKey_OEPNAI) {\r\n let zOpenAIServerURL = TYPE_PROP.AI_OEPNAI_SERVER_URL;\r\n\r\n await fetchSSE(zOpenAIServerURL, {OPENAI_APIKey: zAPIKey_OEPNAI}, zRequest, function (xChunk) {\r\n\r\n cwrn(\"xChunk x1\", xChunk);\r\n let zResObjStrings = xChunk.split(\"\\n\"); //[\"data:{...}\",\"\",\"data:{...}\"]\r\n _.each(zResObjStrings, function (xResObjString) {\r\n let zResObjString = nz(xResObjString, \"\");\r\n if (zResObjString) {\r\n let zStartCharIndex = zResObjString.indexOf(\"{\");\r\n if (zStartCharIndex >= 0) {\r\n let zResJSONString = zResObjString.substring(zStartCharIndex).trim();\r\n if (zResJSONString.endsWith(\"}\")) {\r\n try {\r\n let zResObj = JSON.parse(zResJSONString);\r\n zSessionItem.returnMessage += nz(appAIManager.extractMessageTextFromAIResponse(zResObj), \"\");\r\n cwrn(\"xChunk x3\", zResObj);\r\n } catch (e) {\r\n cerr(e, zResJSONString);\r\n }\r\n\r\n }\r\n }\r\n }\r\n\r\n });\r\n\r\n // cwrn(\"xChunk x2\", zResObjStrings);\r\n /!*_.each(zResObjStrings, function (xResObjString) {\r\n let zResObjString = nz(xResObjString, \"\").trim();\r\n let zResObj = {};\r\n if (!zResObjString.startsWith(\"{\")) zResObjString = \"{\" + zResObjString;\r\n if (!zResObjString.endsWith(\"}\")) zResObjString += \"}\";\r\n try {\r\n zResObj = JSON.parse(zResObjString);\r\n } catch (e) {\r\n cerr(e, zResObjString);\r\n }\r\n // console.log(appAIManager.extractMessageTextFromAIResponse(zResObj));\r\n zSessionItem.returnMessage += nz(appAIManager.extractMessageTextFromAIResponse(zResObj), \"\");\r\n // console.log(zResObj);\r\n });*!/\r\n\r\n });\r\n\r\n cwrn(\"ftcSSE DONE! OPENAI\");\r\n\r\n setTimeout(function () {\r\n zSessionItem.status = TYPE_SESSION_STATUS.FINISHED;\r\n }, 1000);\r\n }*/\r\n\r\n // * via AI Proxy Server\r\n let zAIProxyServerURL = SYSS.API_ADDR+TYPE_API_PATH.AI_PROXY;\r\n\r\n window.emitter.emit(TYPE_EVENT.AI_GEN_STRAT);\r\n\r\n await fetchSSE(zAIProxyServerURL, {}, zRequest, function (err, xChunk) {\r\n if (err) {\r\n zSessionItem.status = TYPE_SESSION_STATUS.FINISHED;\r\n window.emitter.emit(TYPE_EVENT.AI_GEN_ERROR);\r\n } else if (zSessionItem.status == TYPE_SESSION_STATUS.RUNNING) {\r\n let zResObjStrings = xChunk.split(\"}{\");\r\n _.each(zResObjStrings, function (xResObjString) {\r\n let zResObjString = nz(xResObjString, \"\").trim();\r\n let zResObj = {};\r\n if (!zResObjString.startsWith(\"{\")) zResObjString = \"{\" + zResObjString;\r\n if (!zResObjString.endsWith(\"}\")) zResObjString += \"}\";\r\n try {\r\n zResObj = JSON.parse(zResObjString);\r\n } catch (e) {\r\n cerr(e, zResObjString);\r\n }\r\n // console.log(appAIManager.extractMessageTextFromAIResponse(zResObj));\r\n zSessionItem.returnMessage += nz(appAIManager.extractMessageTextFromAIResponse(zResObj), \"\");\r\n // console.log(zResObj);\r\n });\r\n window.emitter.emit(TYPE_EVENT.AI_GENERATING);\r\n }\r\n }\r\n );\r\n\r\n cwrn(\"ftcSSE DONE! AIPROXY\");\r\n\r\n if (zSessionItem.status == TYPE_SESSION_STATUS.RUNNING) {\r\n setTimeout(function () {\r\n zSessionItem.status = TYPE_SESSION_STATUS.FINISHED;\r\n if (zSessionItem.AIActionType == TYPE_AI_ACTION.ForFollowUps) {\r\n window.emitter.emit(TYPE_EVENT.AI_GEN_FOLLOWUP_DONE);\r\n } else if (zSessionItem.AIActionType == TYPE_AI_ACTION.ForPoints) {\r\n window.emitter.emit(TYPE_EVENT.AI_GEN_POINTS_DONE);\r\n } else if (zSessionItem.AIActionType == TYPE_AI_ACTION.ForSummary) {\r\n window.emitter.emit(TYPE_EVENT.AI_GEN_SUMMARY_DONE);\r\n } else if (zSessionItem.AIActionType == TYPE_AI_ACTION.ForBreakdown) {\r\n window.emitter.emit(TYPE_EVENT.AI_GEN_BREAKDOWN_DONE);\r\n } else if (zSessionItem.AIActionType == TYPE_AI_ACTION.ForConclusion) {\r\n window.emitter.emit(TYPE_EVENT.AI_GEN_CONCLUSION_DONE);\r\n } else if (zSessionItem.AIActionType == TYPE_AI_ACTION.ForOutline) {\r\n window.emitter.emit(TYPE_EVENT.AI_GEN_OUTLINE_DONE);\r\n }\r\n\r\n\r\n cwrn(\"*aigen done\", zSessionItem.AIActionType);\r\n }, 200);\r\n }\r\n\r\n } catch (e) {\r\n window.emitter.emit(TYPE_EVENT.AI_GEN_ERROR);\r\n cerr(\"*AIGEN ERR\",e);\r\n }\r\n\r\n return;\r\n }\r\n\r\nappAIManager.askAIForMarkdownReply = async function (xAskOptions) {\r\n if (!xAskOptions) return cerr(\"*mis para\");\r\n if (!xAskOptions.userMessage) return cerr(\"*mis para umsg\");\r\n let zAIActionType: TYPE_AI_ACTION = nz(xAskOptions.AIActionType, \"\");\r\n\r\n let zGUID = nz(xAskOptions._GUID, \"\");\r\n let zAskOptions: IFC_OptionsForAskAI = nz(xAskOptions, {});\r\n\r\n let zAppPromptProvider: IFC_AIPrompt_Provider = window.appPromptProvider;\r\n\r\n /*// * Reply as given AI Role\r\n let zAIRoleMessage = \"\";\r\n if (zAppPromptProvider.currentRole && zAppPromptProvider.currentRole.roleInstruction) {\r\n zAIRoleMessage = zAppPromptProvider.roleSystemPrompt\r\n + zAppPromptProvider.currentRole.roleInstruction\r\n + \"\\n----\\n\";\r\n }\r\n\r\n // * Excluding Context Content\r\n let zExcludingContentString = \"\";\r\n if (zAppPromptProvider.excludingContentArrayString) {\r\n zExcludingContentString = zAppPromptProvider.excludeContentSystemPrompt\r\n + \"\" + zAppPromptProvider.excludingContentArrayString\r\n + \"\\n----\\n\";\r\n }\r\n\r\n // * Including Context Content\r\n let zIncludingContextString = \"\";\r\n if (zAppPromptProvider.includingContextArrayString) {\r\n zIncludingContextString = zAppPromptProvider.includeContextSystemPrompt\r\n + \" \" + zAppPromptProvider.includingContextArrayString\r\n + \"\\n----\\n\";\r\n }\r\n\r\n // * Existing Content\r\n let zExistingContentString = \"\";\r\n if (zAppPromptProvider.existingContentTextString) {\r\n zExistingContentString = zAppPromptProvider.includeExistingContentSystemPrompt\r\n + \"\" + zAppPromptProvider.existingContentTextString\r\n + \"\\n----\\n\";\r\n }\r\n\r\n //!* Nearest Parent Text Content\r\n let zNearestParentTextContentString = \"\";\r\n if (zAppPromptProvider.nearestParentContentTextString) {\r\n zNearestParentTextContentString = zAppPromptProvider.nearestParentContentSystemPrompt\r\n + \"\" + zAppPromptProvider.nearestParentContentTextString\r\n + \"\\n----\\n\";\r\n }*/\r\n\r\n\r\n // * SERP Context String\r\n let zSERPContextString = \"\";\r\n /*if (zAppPromptProvider.SERPContextString) {\r\n zSERPContextString = zAppPromptProvider.SERPContextSystemPrompt\r\n + \"\" + zAppPromptProvider.SERPContextString\r\n + \"\\n----\\n\";\r\n }*/\r\n\r\n\r\n // * User Message\r\n let zUserMessage = zAppPromptProvider.userMessagePrompt\r\n + \" \" + zAskOptions.userMessage\r\n + \"\\n----\\n\";\r\n\r\n // * Reply as Extra SysMessage asked\r\n let zAppPrompt = \"\"\r\n\r\n /*zAppPrompt += `${zAIRoleMessage}\\n `;\r\n // cerr(\"*opRole\",zAIRoleMessage)\r\n zAppPrompt += `${zExcludingContentString}\\n `;\r\n // cerr(\"*opExcluding\",zExcludingContentString)\r\n zAppPrompt += `${zIncludingContextString}\\n `;\r\n // cerr(\"*opIncluding\",zIncludingContextString)\r\n zAppPrompt += `${zNearestParentTextContentString}\\n `;\r\n // cerr(\"*opNearest\",zNearestParentTextContentString)\r\n zAppPrompt += `${zExistingContentString}\\n `;\r\n // cerr(\"*opExisiting\",zExistingContentString)*/\r\n\r\n zAppPrompt += `${zSERPContextString}\\n `;\r\n // cerr(\"*opSERP\",zSERPContextString)\r\n zAppPrompt += `${zUserMessage}\\n `;\r\n // cerr(\"*usermsg\",zUserMessage)\r\n\r\n let zUserName = localStorage[TYPE_ID_LOCAL_APP_DB.USER_NAME];\r\n\r\n // cwrn(\"syspmt\", zSysPrompt);\r\n\r\n // * Build Request Options\r\n let zAIRequestOptions: IFC_AI_Request_Options = {\r\n sysMessageKey1: TYPE_PROP.replyMarkdownSystemPrompt,\r\n sysMessageKey2: zAIActionType,\r\n sysEvidence: getSysEvidence(zUserName + \".\" + zAIActionType),\r\n userMessages: [zAppPrompt],\r\n username: zUserName,\r\n };\r\n\r\n if (xAskOptions.modelType) {\r\n // ** modelType : \"lite\" or \"\" (default)\r\n cerr(\"*mdtp\",xAskOptions.modelType);\r\n zAIRequestOptions.modelType = xAskOptions.modelType;\r\n }\r\n\r\n // console.log(\"*apmt\",zAppPrompt);\r\n\r\n // * Encrypted AK\r\n if (appUserManager.currentUserInfo.EAK) {\r\n zAIRequestOptions.EAK = appUserManager.currentUserInfo.EAK;\r\n }\r\n\r\n await appAIManager.runAskAIOperation(zAIRequestOptions, zGUID, zAskOptions);\r\n\r\n return;\r\n}\r\n\r\nappAIManager.askAIForTextOptionsReply = async function (xAskOptions) {\r\n if (!xAskOptions) return cerr(\"*mis para\");\r\n if (!xAskOptions.userMessage) return cerr(\"*mis para umsg\");\r\n let zAIActionType: TYPE_AI_ACTION = nz(xAskOptions.AIActionType, \"\");\r\n\r\n let zGUID = nz(xAskOptions._GUID, \"\");\r\n let zAskOptions: IFC_OptionsForAskAI = nz(xAskOptions, {});\r\n\r\n let zAppPromptProvider: IFC_AIPrompt_Provider = window.appPromptProvider;\r\n\r\n /*// * Reply as given AI Role\r\n let zAIRoleMessage = \"\";\r\n if (zAppPromptProvider.currentRole && zAppPromptProvider.currentRole.roleInstruction) {\r\n zAIRoleMessage = zAppPromptProvider.roleSystemPrompt\r\n + \" \" + zAppPromptProvider.currentRole.roleInstruction\r\n + \"\\n----\\n\";\r\n }\r\n\r\n // * Including Context Content\r\n let zIncludingContextString = \"\";\r\n if (zAppPromptProvider.includingContextArrayString) {\r\n zIncludingContextString = zAppPromptProvider.includeContextSystemPrompt\r\n + \" \" + zAppPromptProvider.includingContextArrayString\r\n + \"\\n----\\n\";\r\n }\r\n\r\n //!* Nearest Parent Text Content\r\n let zNearestParentTextContentString = \"\";\r\n if (zAppPromptProvider.nearestParentContentTextString) {\r\n zNearestParentTextContentString = zAppPromptProvider.nearestParentContentSystemPrompt\r\n + \"\" + zAppPromptProvider.nearestParentContentTextString\r\n + \"\\n----\\n\";\r\n }*/\r\n\r\n // * User Message\r\n let zUserMessage = zAppPromptProvider.userMessagePrompt\r\n + \" \" + zAskOptions.userMessage\r\n + \"\\n----\\n\";\r\n\r\n\r\n // * Reply as Extra SysMessage asked\r\n let zAppPrompt = \"\"\r\n /*zAppPrompt += `${zAIRoleMessage}\\n `;\r\n // zAppPrompt += `${zExcludingContentString}\\n `;\r\n zAppPrompt += `${zIncludingContextString}\\n `;\r\n zAppPrompt += `${zNearestParentTextContentString}\\n `;*/\r\n zAppPrompt += `${zUserMessage}\\n `;\r\n\r\n\r\n let zUserName = localStorage[TYPE_ID_LOCAL_APP_DB.USER_NAME];\r\n\r\n // cwrn(\"syspmt\", zSysPrompt);\r\n\r\n // * Build Request Options\r\n // ** init request\r\n let zAIRequestOptions: IFC_AI_Request_Options = {\r\n sysMessageKey1: TYPE_PROP.replyTextOptionsSystemPrompt,\r\n sysMessageKey2: zAIActionType,\r\n sysEvidence: getSysEvidence(zUserName + \".\" + zAIActionType),\r\n userMessages: [zAppPrompt],\r\n username: zUserName,\r\n };\r\n if (xAskOptions.modelType) {\r\n // ** modelType : \"lite\" or \"\" (default)\r\n zAIRequestOptions.modelType = xAskOptions.modelType;\r\n }\r\n\r\n // console.log(\"*apmt\",zAppPrompt);\r\n\r\n // * Encrypted AK\r\n if (appUserManager.currentUserInfo.EAK) {\r\n zAIRequestOptions.EAK = appUserManager.currentUserInfo.EAK;\r\n }\r\n\r\n await appAIManager.runAskAIOperation(zAIRequestOptions, zGUID, zAskOptions);\r\n\r\n return;\r\n}\r\n\r\nasync function fetchSSE(url: string, xSetupOptions: any, xOptions: any, xProcessChunkFunc: function) {\r\n try {\r\n let zRequest = {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n method: \"POST\",\r\n body: JSON.stringify(xOptions),\r\n };\r\n\r\n\r\n if (xSetupOptions && xSetupOptions.OPENAI_APIKey) {\r\n zRequest.headers[\"Authorization\"] = \"Bearer \" + xSetupOptions.OPENAI_APIKey;\r\n }\r\n\r\n const response = await fetch(url, zRequest);\r\n\r\n if (response.ok) {\r\n const reader = response.body.getReader();\r\n const decoder = new TextDecoder();\r\n\r\n return reader.read().then(function processText({done, value}) {\r\n if (done) {\r\n console.log('*Stream complete');\r\n return;\r\n }\r\n\r\n // Decode and process the received chunks.\r\n const chunk = decoder.decode(value, {stream: true});\r\n\r\n // Here, you would generally parse events and act on them.\r\n // console.log(chunk);\r\n if (xProcessChunkFunc) {\r\n xProcessChunkFunc(null, chunk)\r\n }\r\n\r\n // Recursively read and process the next chunks.\r\n return reader.read().then(processText);\r\n });\r\n } else {\r\n console.error('Failed to connect to the server.');\r\n if (xProcessChunkFunc) {\r\n xProcessChunkFunc(\"error\", \"\");\r\n }\r\n }\r\n\r\n } catch (error) {\r\n console.error('fetching error:', error);\r\n }\r\n}\r\n\r\nfunction getSysEvidence(xSaltKey) {\r\n let zDTShort = (new Date().toISOString()).substring(1, 14);\r\n return md5(zDTShort + \".\" + xSaltKey);\r\n}\r\n\r\n// *** NOT stream mode ***\r\n// $.ajax({\r\n// url: zAIProxyServerURL,\r\n// type: \"POST\",\r\n// headers: {\r\n// 'Content-Type': 'application/json'\r\n// },\r\n// data: JSON.stringify(zRequest),\r\n// success: function (response) {\r\n// let zRes ={};\r\n// try {\r\n// zRes = JSON.parse(nz(response, {}));\r\n// let zResText = appAIManager.extractMessageTextFromAIResponse(zRes);\r\n// xCallback(null, zResText, zRes);\r\n// } catch (e) {\r\n// xCallback(e, \"\", zRes);\r\n// }\r\n//\r\n// // console.log(\"AI:\", zRes);\r\n// },\r\n// error: function (jqXHR, textStatus, errorThrown) {\r\n// xCallback(errorThrown, textStatus, {});\r\n// cerr('Error:', textStatus, errorThrown);\r\n// }\r\n// });\r\n","// @TS-NOCHECK\r\nimport {IFC_AIPrompt_Provider, IFC_SERPManager, IFC_StorageManager, IFC_UserManager} from \"@/codes/_20.def/managerIFs\";\r\nimport {\r\n IFC_OptionsForSERP,\r\n IFC_Page_Data,\r\n IFC_ACTION_FLOW,\r\n IFC_SERPItem,\r\n IFC_OptionsForSCRAPE\r\n} from \"@/codes/_20.def/dataTypes\";\r\nimport {reactive} from \"vue\";\r\nimport {SYSS} from \"@/codes/_10.sys/A0Committee\"\r\nimport {TYPE_API_PATH, TYPE_FILTER_CODE, TYPE_ID_LOCAL_APP_DB, TYPE_NOTE_SOURCE} from \"@/codes/_20.def/_modDataDict\";\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\nimport {defaultActionFlowGroup} from \"@/codes/_30.biz/monDefaultPageTemplate\";\r\n\r\nvar appSERPManager: IFC_SERPManager = reactive({});\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\ndeclare var appUserManager: IFC_UserManager;\r\ndeclare var appStorageManager: IFC_StorageManager;\r\n\r\nwindow.appSERPManager = appSERPManager;\r\n\r\nappSERPManager.getSERPResult = async function (xSERPOptions: IFC_OptionsForSERP) {\r\n\r\n if (appUserManager.checkIsOutOfCredits()) return;\r\n\r\n let zResSERP = {};\r\n let zEndPointURL = SYSS.API_ADDR + TYPE_API_PATH.SERP;\r\n\r\n let zSERPOptions: IFC_OptionsForSERP = xSERPOptions || {};\r\n zSERPOptions.projectName = SYSS.PROJECT_NAME;\r\n zSERPOptions.username = appUserManager.currentUserInfo.username;\r\n\r\n //\r\n try {\r\n let zResponse = await fetch(zEndPointURL, {\r\n method: 'POST',\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n body: JSON.stringify(zSERPOptions),\r\n });\r\n if (zResponse && zResponse.json) {\r\n zResSERP = await zResponse.json();\r\n zResSERP.replyMessage = appSERPManager.parseSERPResItems2ReplyMessage(nz(zResSERP.res, {}));\r\n }\r\n } catch (err) {\r\n console.error('Error:', err);\r\n zResSERP = {err: true};\r\n } finally {\r\n //\r\n }\r\n\r\n return zResSERP;\r\n}\r\n\r\nappSERPManager.getSCRAPEResult = async function (xSCRAPEOptions: IFC_OptionsForSCRAPE) {\r\n\r\n if (appUserManager.checkIsOutOfCredits()) return;\r\n\r\n let zResSCRAPE = {};\r\n let zEndPointURL = SYSS.API_ADDR + TYPE_API_PATH.SCRAPE;\r\n\r\n let zSCRAPEOptions: IFC_OptionsForSCRAPE = xSCRAPEOptions || {};\r\n zSCRAPEOptions.projectName = SYSS.PROJECT_NAME;\r\n zSCRAPEOptions.username = appUserManager.currentUserInfo.username;\r\n\r\n //\r\n try {\r\n let zResponse = await fetch(zEndPointURL, {\r\n method: 'POST',\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n body: JSON.stringify(zSCRAPEOptions),\r\n });\r\n if (zResponse && zResponse.json) {\r\n zResSCRAPE = await zResponse.json();\r\n cwrn(\"*scrp test\",zResSCRAPE);\r\n zResSCRAPE.replyMessage = appSERPManager.parseSERPResItems2ReplyMessage(nz(zResSCRAPE.res, {}));\r\n }\r\n } catch (err) {\r\n console.error('Error:', err);\r\n zResSCRAPE = {err: true};\r\n } finally {\r\n //\r\n }\r\n\r\n return zResSCRAPE;\r\n}\r\n\r\nappSERPManager.getEXAResult = async function (xSERPOptions) {\r\n\r\n if (appUserManager.checkIsOutOfCredits()) return;\r\n\r\n let zResSERP = {};\r\n let zEndPointURL = SYSS.API_ADDR + TYPE_API_PATH.SERP2;\r\n\r\n let zSERPOptions = xSERPOptions || {};\r\n zSERPOptions.projectName = SYSS.PROJECT_NAME;\r\n zSERPOptions.username = appUserManager.currentUserInfo.username;\r\n zSERPOptions.langCode = appSERPManager.langCode;\r\n\r\n //\r\n try {\r\n let zResponse = await fetch(zEndPointURL, {\r\n method: 'POST',\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n body: JSON.stringify(zSERPOptions),\r\n });\r\n if (zResponse && zResponse.json) {\r\n zResSERP = await zResponse.json();\r\n zResSERP.replyMessage = appSERPManager.parseSERPResItems2ReplyMessage(nz(zResSERP.res, {}));\r\n }\r\n } catch (err) {\r\n console.error('Error:', err);\r\n zResSERP = {err: true};\r\n } finally {\r\n //\r\n }\r\n\r\n return zResSERP;\r\n}\r\n\r\nappSERPManager.checkIfLinkFromBlockedSummarizationSites = function (xURL) {\r\n if (!xURL) return true;\r\n let zURLLow = xURL.toLowerCase();\r\n if (!zURLLow.startsWith(\"https://\")) return true;\r\n let zHostName = appSERPManager.getHostName(zURLLow);\r\n cerr(\"*stn\", zHostName);\r\n let zBlockedSiteList = [\r\n \"reddit.com\", \"www.reddit.com\",\r\n \"quora.com\", \"www.quora.com\",\r\n \"youtube.com\", \"www.youtube.com\",\r\n ]\r\n if (_.includes(zBlockedSiteList, zHostName)) return true;\r\n return false;\r\n}\r\n\r\nappSERPManager.getSummarizedInfoFromURL = async function (xURL, xSumOptions) {\r\n if (!xURL) return;\r\n\r\n let zResSERP = \"\";\r\n let zEndPointURL = SYSS.API_ADDR + \"/sum1\";\r\n\r\n let zSERPOptions = xSumOptions || {};\r\n zSERPOptions.projectName = SYSS.PROJECT_NAME;\r\n zSERPOptions.username = appUserManager.currentUserInfo.username;\r\n zSERPOptions.langCode = appSERPManager.langCode;\r\n zSERPOptions.sites = [xURL];\r\n\r\n //\r\n try {\r\n let zResponse = await fetch(zEndPointURL, {\r\n method: 'POST',\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n body: JSON.stringify(zSERPOptions),\r\n });\r\n if (zResponse && zResponse.json) {\r\n zResSERP = await zResponse.json();\r\n zResSERP = nz(zResSERP.res, {});\r\n if (zResSERP.organic && zResSERP.organic.length) {\r\n zResSERP = zResSERP.organic[0];\r\n }\r\n }\r\n } catch (err) {\r\n console.error('Error:', err);\r\n zResSERP = {err: true};\r\n } finally {\r\n //\r\n }\r\n\r\n return zResSERP;\r\n\r\n}\r\n\r\nappSERPManager.parseSERPResItems2ReplyMessage = function (xSERPResObj, xLimitCount) {\r\n let zResMessage = \"\";\r\n let zSERPResObj = nz(xSERPResObj, {});\r\n let zLimitCount = nz(xLimitCount, 5);\r\n let zOrganicItems = _.union(\r\n nz(zSERPResObj.organic, []),\r\n nz(zSERPResObj.news, []),\r\n );\r\n\r\n // console.log(\"*srp prs x2\", zSERPResObj, zOrganicItems);\r\n let zSERPTitle = \"\";\r\n if (zSERPResObj.knowledgeGraph) {\r\n zSERPTitle = nz(zSERPResObj.knowledgeGraph.title, \"\")\r\n } else if (zSERPResObj.searchParameters) {\r\n zSERPTitle = nz(zSERPResObj.searchParameters.q, \"\")\r\n }\r\n zSERPTitle = nz(zSERPTitle, \"Noname\");\r\n\r\n zResMessage += \"# \" + zSERPTitle + \"\\n\\n\";\r\n\r\n if (zOrganicItems && zOrganicItems.length) {\r\n let zCount = 0;\r\n _.each(zOrganicItems, function (xOrganicItem) {\r\n zCount++;\r\n if (zCount > zLimitCount) return;\r\n zResMessage += \"## \" + xOrganicItem.title + \"\\n\\n\";\r\n if (xOrganicItem.snippet) {\r\n zResMessage += \"\" + xOrganicItem.snippet + \"\\n\\n\";\r\n }\r\n if (xOrganicItem.section) {\r\n zResMessage += \"\" + xOrganicItem.section + \"\\n\\n\";\r\n }\r\n zResMessage += \"\\n\\n\" + \"----\" + \"\\n\\n\";\r\n zResMessage += \"+%%ref-link:\" + xOrganicItem.link + \"%%\\n\\n\";\r\n zResMessage += \"\\n\\n\";\r\n })\r\n }\r\n // console.log(\"*srp prs x3\", zResMessage);\r\n return zResMessage;\r\n}\r\n\r\nappSERPManager.parseSERPData2ResItemArray = function (xSERPData) {\r\n if (!xSERPData) return [];\r\n let zSERPData = xSERPData;\r\n let zResItemIndex = 0;\r\n let zSERPResItemArray = [];\r\n let zSERPResItemMap: object = {};\r\n\r\n console.log(\"*spdt\", xSERPData);\r\n\r\n function processSERPResItem(xSERPResItem: IFC_SERPItem) {\r\n if (!xSERPResItem) return;\r\n if ((xSERPResItem.link) && (xSERPResItem.flagCode == TYPE_FILTER_CODE.PURPLE)) {\r\n xSERPResItem.flagCode = TYPE_FILTER_CODE.ORANGE;\r\n zSERPResItemArray.push(xSERPResItem);\r\n }\r\n\r\n if ((!xSERPResItem.link) && (!xSERPResItem.flagCode)) {\r\n xSERPResItem.flagCode = TYPE_FILTER_CODE.GREEN;\r\n zSERPResItemArray.push(xSERPResItem);\r\n } else if (!zSERPResItemMap[xSERPResItem.link]) {\r\n zSERPResItemMap[xSERPResItem.link] = xSERPResItem;\r\n zSERPResItemArray.push(xSERPResItem);\r\n } else {\r\n if (xSERPResItem.snippet) {\r\n zSERPResItemMap[xSERPResItem.link].snippet += \"\\n\\n\" + xSERPResItem.snippet;\r\n }\r\n }\r\n }\r\n\r\n if (zSERPData.knowledgeGraph) {\r\n zResItemIndex++;\r\n let zResSERPItem: IFC_SERPItem = {\r\n index: zResItemIndex,\r\n title: nz(zSERPData.knowledgeGraph.title, \"\"),\r\n snippet: nz(nz(zSERPData.knowledgeGraph.snippet, zSERPData.knowledgeGraph.description), \"\"),\r\n link: nz(nz(zSERPData.knowledgeGraph.link, zSERPData.knowledgeGraph.descriptionLink), \"\"),\r\n flagCode: zSERPData.knowledgeGraph.link ? TYPE_FILTER_CODE.ORANGE : TYPE_FILTER_CODE.PURPLE,\r\n };\r\n\r\n if ((!zResSERPItem.snippet) && (!zResSERPItem.link)) zResSERPItem.flagCode = TYPE_FILTER_CODE.GREEN;\r\n\r\n processSERPResItem(zResSERPItem);\r\n }\r\n\r\n if (zSERPData.answerBox) {\r\n zResItemIndex++;\r\n let zResSERPItem: IFC_SERPItem = {\r\n index: zResItemIndex,\r\n title: nz(nz(zSERPData.answerBox.title, zSERPData.answerBox.question)),\r\n snippet: nz(nz(zSERPData.answerBox.answer, zSERPData.answerBox.snippet), \"\"),\r\n link: nz(zSERPData.answerBox.link, \"\"),\r\n flagCode: zSERPData.answerBox.link ? TYPE_FILTER_CODE.ORANGE : TYPE_FILTER_CODE.PURPLE,\r\n };\r\n if ((!zResSERPItem.snippet) && (!zResSERPItem.link)) zResSERPItem.flagCode = TYPE_FILTER_CODE.GREEN;\r\n processSERPResItem(zResSERPItem);\r\n }\r\n\r\n if (zSERPData.peopleAlsoAsk) {\r\n _.each(zSERPData.peopleAlsoAsk, function (xSERP_PAA: any) {\r\n if (xSERP_PAA) {\r\n zResItemIndex++;\r\n let zResSERPItem: IFC_SERPItem = {\r\n index: zResItemIndex,\r\n question: nz(xSERP_PAA.question, \"\"),\r\n snippet: nz(xSERP_PAA.snippet, \"\"),\r\n link: nz(xSERP_PAA.link, \"\"),\r\n flagCode: TYPE_FILTER_CODE.RED,\r\n };\r\n processSERPResItem(zResSERPItem);\r\n }\r\n })\r\n }\r\n\r\n if (zSERPData.relatedSearches) {\r\n let zRLSCountNum = 0;\r\n _.each(zSERPData.relatedSearches, function (xSERP_RLS: any) {\r\n if (xSERP_RLS && xSERP_RLS.query) {\r\n zRLSCountNum++;\r\n if (zRLSCountNum > 4) return;\r\n zResItemIndex++;\r\n let zResSERPItem: IFC_SERPItem = {\r\n index: zResItemIndex,\r\n title: nz(xSERP_RLS.query, \"\"),\r\n snippet: \"\",\r\n link: \"\",\r\n };\r\n processSERPResItem(zResSERPItem);\r\n }\r\n })\r\n }\r\n\r\n if (zSERPData.images) {\r\n _.each(zSERPData.images, function (xImageObject, xOrganicIndex) {\r\n if (xImageObject) {\r\n zResItemIndex++;\r\n let zResSERPItem: IFC_SERPItem = {\r\n index: zResItemIndex,\r\n title: nz(xImageObject.title, \"\"),\r\n snippet: \"\",\r\n imageUrl: nz(xImageObject.imageUrl, \"\"),\r\n link: nz(xImageObject.link, \"\"),\r\n sourceType: nz(xImageObject.sourceType, TYPE_NOTE_SOURCE.WEB_IMAGE),\r\n flagCode: TYPE_FILTER_CODE.BLUE,\r\n };\r\n processSERPResItem(zResSERPItem);\r\n }\r\n });\r\n\r\n }\r\n\r\n let zArticles = _.union(\r\n nz(zSERPData.organic, []),\r\n nz(zSERPData.news, []),\r\n );\r\n\r\n if (zArticles) {\r\n let zTopBookmarkIndex = 0;\r\n _.each(zArticles, function (xOrganicObject, xOrganicIndex) {\r\n if (xOrganicObject && (xOrganicIndex < 6)) {\r\n zResItemIndex++;\r\n let zFlagCode = TYPE_FILTER_CODE.NONE;\r\n if (xOrganicObject.sourceType == TYPE_NOTE_SOURCE.WEB_EXA) {\r\n // zFlagCode = TYPE_FILTER_CODE.ORANGE;\r\n } else if (!zTopBookmarkIndex) {\r\n // zFlagCode = TYPE_FILTER_CODE.ORANGE;\r\n }\r\n\r\n let zResSERPItem: IFC_SERPItem = {\r\n index: zResItemIndex,\r\n title: nz(xOrganicObject.title, \"\"),\r\n snippet: nz(nz(xOrganicObject.snippet, xOrganicObject.section), \"\"),\r\n link: nz(xOrganicObject.link, \"\"),\r\n publishedDate: nz(xOrganicObject.publishedDate, \"\"),\r\n sourceType: nz(xOrganicObject.sourceType, TYPE_NOTE_SOURCE.WEB_DEFAULT),\r\n imageUrl: nz(xOrganicObject.imageUrl, \"\"),\r\n flagCode: zFlagCode,\r\n };\r\n\r\n if (zFlagCode == TYPE_FILTER_CODE.ORANGE) {\r\n zTopBookmarkIndex++;\r\n }\r\n\r\n processSERPResItem(zResSERPItem);\r\n }\r\n });\r\n\r\n }\r\n\r\n\r\n return zSERPResItemArray;\r\n}\r\n\r\nappSERPManager.getFavIconURL = function (xWebsiteURL, xSize?) {\r\n try {\r\n // Extract the domain from the website URL\r\n let zWebsiteURL = nz(xWebsiteURL, \"\");\r\n if (!zWebsiteURL) return \"\";\r\n\r\n if (zWebsiteURL.indexOf(\"://\") < 0) {\r\n zWebsiteURL = \"https://\" + zWebsiteURL;\r\n }\r\n\r\n const url = new URL(zWebsiteURL);\r\n let zSize = nz(xSize, 64);\r\n const domain = url.hostname;\r\n // Construct the Google Favicon API URL with the extracted domain and desired size\r\n const zFaviconApiUrl = `https://www.google.com/s2/favicons?domain=${domain}&sz=${zSize}`;\r\n return zFaviconApiUrl;\r\n } catch (e) {\r\n console.error(e);\r\n return \"\";\r\n }\r\n}\r\n\r\nappSERPManager.getHostName = function (xURL: string) {\r\n try {\r\n if (xURL) {\r\n const url = new URL(xURL);\r\n return url.hostname\r\n }\r\n return \"\";\r\n } catch (e) {\r\n console.error(e);\r\n return \"\";\r\n }\r\n}\r\n\r\nappSERPManager.saveActionFlowGroup = function () {\r\n if (UIS.currentActionFlows) {\r\n appStorageManager.saveAnyDataToLocalDB(TYPE_ID_LOCAL_APP_DB.ACTION_FLOW_GROUP_DATA, UIS.currentActionFlows);\r\n }\r\n}\r\n\r\nappSERPManager.getActionFlowGroup = function (xDefaultSearchRoleName) {\r\n // * Template Search Flows\r\n UIS.templateActionFlows=nz(defaultActionFlowGroup[\"myTemplate\"],[]);\r\n UIS.templateActionFlowCategories=nz(defaultActionFlowGroup[\"myTemplateCategories\"],[]);\r\n _.each(UIS.templateActionFlows,function(xTemplateActionFlow:IFC_ACTION_FLOW){\r\n if (!xTemplateActionFlow) return;\r\n if (xTemplateActionFlow._isSysBuiltIn) return;\r\n if (xTemplateActionFlow.category==\"News\") {\r\n xTemplateActionFlow.ifSearch4News=true;\r\n }\r\n else if (xTemplateActionFlow.category==\"Images\") {\r\n xTemplateActionFlow.ifSearch4Images=true;\r\n }\r\n else {\r\n xTemplateActionFlow.ifSearch4WebPages=true;\r\n xTemplateActionFlow.ifAIReply=true;\r\n }\r\n });\r\n\r\n // * Saved Search Flows\r\n appStorageManager.loadAnyDataFromLocalDB(\r\n TYPE_ID_LOCAL_APP_DB.ACTION_FLOW_GROUP_DATA,\r\n function (err, xResult: IFC_ACTION_FLOW[]) {\r\n if (xResult && xResult.length) {\r\n UIS.currentActionFlows = xResult;\r\n } else {\r\n UIS.currentActionFlows = nz(\r\n defaultActionFlowGroup[nz(xDefaultSearchRoleName, \"default\")],\r\n defaultActionFlowGroup[\"default\"],\r\n );\r\n }\r\n });\r\n}\r\n\r\nappSERPManager.resetActionFlowGroup = function () {\r\n appStorageManager.saveAnyDataToLocalDB(TYPE_ID_LOCAL_APP_DB.ACTION_FLOW_GROUP_DATA, \"\");\r\n}\r\n\r\nsetTimeout(function () {\r\n appSERPManager.getActionFlowGroup(SYSS.paramSearcher);\r\n setTimeout(function () {\r\n appSERPManager.saveActionFlowGroup();\r\n }, 1000);\r\n}, 1000);\r\n\r\n\r\n\r\n\r\n\r\n","//@TS-NOCHECK\r\n\r\nimport {IFC_PageTemplateManager, IFC_UserContentManager} from \"../_20.def/managerIFs\";\r\nimport {IFC_Page_Section, IFC_Page_Template, IFC_UIS} from \"../_20.def/dataTypes\";\r\nimport {TYPE_LAYOUT_CODE, TYPE_SECTION} from \"../_20.def/_modDataDict\";\r\nimport {ref, reactive} from 'vue';\r\n\r\n\r\nvar appPageTemplateManager: IFC_PageTemplateManager = {};\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\n\r\nimport {\r\n defaultPageTemplate,\r\n defaultUserGuildTopics\r\n} from \"@/codes/_30.biz/monDefaultPageTemplate\";\r\n\r\nwindow.appPageTemplateManager = appPageTemplateManager = {};\r\n\r\nappPageTemplateManager.allPageTemplates = reactive({});\r\n\r\nUIS.currentUserContentPageTemplate = defaultPageTemplate;\r\n\r\n\r\n// * Remarkable MD Renderer\r\nimport {Remarkable} from 'remarkable';\r\n\r\nimport Prism from 'prismjs';\r\nimport 'prismjs/themes/prism.css'; // Or any other theme you prefer\r\n\r\n// Set marked to use highlight.js for code blocks\r\nappPageTemplateManager.remarkableMD = new Remarkable({\r\n highlight: function (str, lang) {\r\n if (lang && Prism.languages[lang]) {\r\n try {\r\n return Prism.highlight(str, Prism.languages[lang], lang);\r\n } catch (err) {\r\n console.error(err);\r\n }\r\n }\r\n return ''; // use external default escaping\r\n }\r\n});\r\n\r\n\r\nappPageTemplateManager.renderPageSectionWithTemplate = function (xTemplateGUID, xPageSection) {\r\n // cwrn(\"*rdr secs\");\r\n\r\n // * init\r\n let zTemplate: IFC_Page_Template = UIS.currentUserContentPageTemplate;\r\n if (xTemplateGUID && appPageTemplateManager.allPageTemplates && appPageTemplateManager.allPageTemplates[xTemplateGUID]) {\r\n zTemplate = appPageTemplateManager.allPageTemplates[xTemplateGUID];\r\n }\r\n\r\n if (!xPageSection) {\r\n return \"\";\r\n }\r\n // * flagColorCode / layoutCode /headerCode\r\n xPageSection.flagCode = nz(xPageSection.flagCode, \"Default\");\r\n xPageSection.headerCode = nz(xPageSection.headerCode, \"Default\");\r\n xPageSection.layoutCode = nz(xPageSection.layoutCode, \"Default\");\r\n\r\n // *title\r\n let zTitleString = nz(xPageSection.sectionTitle, \"\").trim();\r\n if (zTitleString.startsWith(\"# \")) zTitleString = zTitleString.substring(2);\r\n if (zTitleString.startsWith(\"## \")) zTitleString = zTitleString.substring(3);\r\n xPageSection.sectionTitle = zTitleString;\r\n\r\n //* body\r\n let zBodyString = \"\\n\\n\" + nz(xPageSection.sectionBodyText, \"\").trim();\r\n xPageSection._cacheBodyHTML = appPageTemplateManager.remarkableMD.render(zBodyString);\r\n\r\n xPageSection._statusText=\"\";\r\n xPageSection._cacheTranslatedHTML = appPageTemplateManager.remarkableMD.render(xPageSection.sectionTranslatedText);\r\n // cerr(\"*cch bd htm\",xPageSection._cacheBodyHTML,zBodyString);\r\n xPageSection.sectionBodyTextLess = nz(xPageSection.sectionBodyText, \"\").trim();\r\n let zSectionBodyTextLines = xPageSection.sectionBodyTextLess.split(\"\\n\");\r\n xPageSection.sectionBodyTextLess = nz(zSectionBodyTextLines[0], \"\");\r\n\r\n //* memo\r\n xPageSection.sectionMemo=nz(xPageSection.sectionMemo,\"\").trim();\r\n if (xPageSection.sectionMemo) {\r\n xPageSection._cacheMemoHTML = appPageTemplateManager.remarkableMD.render(xPageSection.sectionMemo);\r\n xPageSection._cacheMemoHTMLParagraphs=[];\r\n\r\n let zMarkdownMemoStrings=xPageSection.sectionMemo\r\n .split(/\\n-{4,}\\n/)\r\n .map(section => section.trim())\r\n .filter(section => section.length > 0);\r\n _.each(zMarkdownMemoStrings, xMarkdownMemoString => {\r\n let zMarkdownMemoString=nz(xMarkdownMemoString,\"\").trim();\r\n if (zMarkdownMemoString) {\r\n let zHTMLMemoParagraphString=appPageTemplateManager.remarkableMD.render(zMarkdownMemoString);\r\n xPageSection._cacheMemoHTMLParagraphs.push(zHTMLMemoParagraphString);\r\n }\r\n });\r\n\r\n // cwrn(\"*rdr mmo\",xPageSection.sectionMemo,xPageSection._cacheMemoHTML)\r\n } else {\r\n xPageSection._cacheMemoHTML =\"\";\r\n xPageSection._cacheMemoHTMLParagraphs=[];\r\n }\r\n\r\n};\r\n\r\nappPageTemplateManager.setupPageSectionLayoutStyleByTemplate = function (xTemplateGUID, xPageSection, xPageSectionArray) {\r\n // * init\r\n let zTemplate = UIS.currentUserContentPageTemplate;\r\n if (xTemplateGUID && appPageTemplateManager.allPageTemplates && appPageTemplateManager.allPageTemplates[xTemplateGUID]) {\r\n zTemplate = appPageTemplateManager.allPageTemplates[xTemplateGUID];\r\n }\r\n zTemplate.layoutOneByOneStyleArray = nz(zTemplate.layoutOneByOneStyleArray, []);\r\n let zResStyle = \"\";\r\n let zLayoutOneByOneStyleArray = zTemplate.layoutOneByOneStyleArray;\r\n\r\n if (!xPageSection) {\r\n return;\r\n }\r\n\r\n if (xPageSection.sectionType == TYPE_SECTION.HEADER) {\r\n let zResTitleStyle = nz(zTemplate.layoutCommonTitleStyle, \"\");\r\n if (!xPageSection.sectionTitle) {\r\n zResTitleStyle = nz(zTemplate.layoutBlankTitleStyle, \"\");\r\n }\r\n if (!xPageSection.sectionBodyText) {\r\n zResTitleStyle = nz(zTemplate.layoutBlankTitleStyle, \"\");\r\n }\r\n xPageSection._cacheLayoutStyle = zResTitleStyle;\r\n }\r\n\r\n let zParentSectionGUID = nz(xPageSection._parentSectionGUID, \"\");\r\n\r\n\r\n // * find the section offset index after the nearest title section\r\n let zSectionIndex = -1;\r\n let zIsSectionFound = false;\r\n let zLayoutStyleObject = {};\r\n\r\n _.each(nz(xPageSectionArray, []), function (xCheckingPageSection: IFC_Page_Section) {\r\n if (zIsSectionFound) return;\r\n\r\n if (zParentSectionGUID == nz(xCheckingPageSection._parentSectionGUID, \"\")) {\r\n\r\n if (xCheckingPageSection.sectionType == TYPE_SECTION.HEADER) {\r\n // ** the layout's defined by header(TYPE_SECTION.HEADER)\r\n zSectionIndex = 0;\r\n\r\n let zLayoutCode = nz(xCheckingPageSection.layoutCode, TYPE_LAYOUT_CODE.DEFAULT);\r\n if (zLayoutCode == \"Default\") zLayoutCode = TYPE_LAYOUT_CODE.DEFAULT;\r\n zLayoutStyleObject = _.find(UIS.currentUserContentPageTemplate.layoutStyleObjects, {layoutCode: zLayoutCode});\r\n if (zLayoutStyleObject && zLayoutStyleObject.layoutOneByOneStyleArray) {\r\n zLayoutOneByOneStyleArray = zLayoutStyleObject.layoutOneByOneStyleArray;\r\n }\r\n xPageSection._layoutStyleObject = zLayoutStyleObject;\r\n return;\r\n } else if (xCheckingPageSection._GUID == xPageSection._GUID) {\r\n // ** update the target page section\r\n zIsSectionFound = true;\r\n\r\n zResStyle = nz(zResStyle, nz(zLayoutOneByOneStyleArray[zSectionIndex], \"\"));\r\n // console.log(\"*idx\",zSectionIndex,xPageSection.sectionTitle);\r\n zResStyle = nz(zResStyle, zLayoutOneByOneStyleArray[zLayoutOneByOneStyleArray.length - 1]);\r\n\r\n let zAnimationDelay = chance.integer({min: 50, max: 150}) / 1000;\r\n zResStyle += \"animation-delay:\" + zAnimationDelay + \"s;\";\r\n\r\n zResStyle = nz(zResStyle, \"\");\r\n\r\n xPageSection._cacheLayoutStyle = zResStyle;\r\n xPageSection._layoutStyleObject = zLayoutStyleObject;\r\n }\r\n zSectionIndex++;\r\n\r\n }\r\n })\r\n\r\n\r\n}\r\n\r\nappPageTemplateManager.getTopicsFromTemplate = function (xNum) {\r\n let zRes = [];\r\n let zTemplate = defaultUserGuildTopics;\r\n let zTemplateKeys = _.keys(zTemplate);\r\n _.each(zTemplate, function (xSampleTopicData) {\r\n if (xSampleTopicData) zRes.push(chance.pick(xSampleTopicData));\r\n });\r\n if (xNum == 1) {\r\n return [chance.pick(zRes)];\r\n }\r\n return chance.pick(zRes, xNum);\r\n}","// @TS-NOCHECK\r\nimport {IFC_StorageManager} from \"@/codes/_20.def/managerIFs\";\r\nimport {ref, reactive} from 'vue';\r\nimport {TYPE_ID_LOCAL_APP_DB} from \"@/codes/_20.def/_modDataDict\";\r\n\r\nvar appStorageManager: IFC_StorageManager = {};\r\nwindow.appStorageManager = appStorageManager;\r\n\r\n\r\n// xCallbackProc(db,tx,store)\r\nappStorageManager.runProcInLocalDB = function (xCallbackProc) {\r\n let DB_NAME = \"MorisotAppDB\";\r\n let STORE_NAME = \"appData\";\r\n let dbReq = indexedDB.open(DB_NAME, 1);\r\n\r\n// Create the schema\r\n dbReq.onupgradeneeded = function (event) {\r\n let db = event.target.result;\r\n let store = db.createObjectStore(STORE_NAME);\r\n cwrn(\"*ondbupg\");\r\n };\r\n\r\n dbReq.onsuccess = function (event) {\r\n if (xCallbackProc) {\r\n let db = event.target.result;\r\n let tx = db.transaction([STORE_NAME], 'readwrite');\r\n let store = tx.objectStore(STORE_NAME);\r\n\r\n xCallbackProc(db, tx, store);\r\n\r\n // Close the db when the transaction is done\r\n tx.oncomplete = function () {\r\n db.close();\r\n };\r\n }\r\n\r\n\r\n // Add some data\r\n // store.put({id: 21, name: 'X21John Doe', age: 22});\r\n\r\n // Query the data\r\n /*let getJohn = store.get(21);\r\n getJohn.onsuccess = function () {\r\n console.log(getJohn.result.name); // -> 'John Doe'\r\n };*/\r\n\r\n\r\n };\r\n}\r\n\r\nappStorageManager.saveAnyDataToLocalDB = function (xID, xDataObj) {\r\n appStorageManager.runProcInLocalDB(function (db, tx, store) {\r\n try {\r\n let zAnyData;\r\n zAnyData = JSON.parse(JSON.stringify(xDataObj));\r\n // zAnyData = xDataObj;\r\n\r\n // let zAnyData = xDataObj;\r\n store.put(zAnyData, xID);\r\n } catch (e) {\r\n cerr(e);\r\n }\r\n });\r\n//\r\n}\r\n\r\nappStorageManager.deleteFromLocalDB = function (xID) {\r\n appStorageManager.runProcInLocalDB(function (db, tx, store) {\r\n try {\r\n // let zAnyData = xDataObj;\r\n store.delete(xID);\r\n } catch (e) {\r\n cerr(e);\r\n }\r\n });\r\n}\r\n\r\n// xCallback(err,xDataObj)\r\nappStorageManager.loadAnyDataFromLocalDB = function (xID, xCallback) {\r\n//\r\n if (!xCallback) return;\r\n if (!xID) return;\r\n\r\n appStorageManager.runProcInLocalDB(function (db, tx, store) {\r\n try {\r\n let reqDBOP = store.get(xID);\r\n reqDBOP.onsuccess = function () {\r\n if (reqDBOP.result) {\r\n xCallback(null, reqDBOP.result);\r\n } else {\r\n console.log(\"*Data not found in loaclDB.\")\r\n xCallback(null, null);\r\n }\r\n };\r\n } catch (e) {\r\n cerr(e);\r\n xCallback(\"err\");\r\n }\r\n });\r\n}\r\n\r\n// xCallback(err,xKeys)\r\nappStorageManager.loadAllDBKeys = function (xCallback) {\r\n//\r\n if (!xCallback) return;\r\n\r\n appStorageManager.runProcInLocalDB(function (db, tx, store) {\r\n try {\r\n let reqDBOP = store.getAllKeys();\r\n reqDBOP.onsuccess = function () {\r\n if (reqDBOP.result) {\r\n xCallback(null, reqDBOP.result);\r\n } else {\r\n console.log(\"*Keys not found in loaclDB.\")\r\n xCallback(null, []);\r\n }\r\n };\r\n } catch (e) {\r\n cerr(e);\r\n xCallback(\"err\");\r\n }\r\n });\r\n}\r\n\r\n\r\n/*\r\n\r\nappStorageManager.localDirHandle = null;\r\n\r\nappStorageManager.getLocalDirHandleAsync = async function (xDirHandle) {\r\n try {\r\n if (!xDirHandle) {\r\n appStorageManager.localDirHandle = await window.showDirectoryPicker();\r\n if (appStorageManager.localDirHandle) {\r\n cwrn(\"*ldirhd\", appStorageManager.localDirHandle)\r\n appStorageManager.saveAnyDataToLocalDB(TYPE_ID_LOCAL_APP_DB.VAULT_DIR_HANDLE, appStorageManager.localDirHandle, \"blob\");\r\n }\r\n } else {\r\n appStorageManager.localDirHandle = xDirHandle;\r\n }\r\n return appStorageManager.localDirHandle;\r\n } catch (err) {\r\n console.error('Failed to get directory handle:', err);\r\n }\r\n}\r\n\r\nappStorageManager.setupLocalDirHandle = function () {\r\n appStorageManager.loadAnyDataFromLocalDB(TYPE_ID_LOCAL_APP_DB.VAULT_DIR_HANDLE, function (err, result) {\r\n if (err) return;\r\n if (result) {\r\n appStorageManager.getLocalDirHandleAsync(result);\r\n } else {\r\n appStorageManager.getLocalDirHandleAsync();\r\n }\r\n })\r\n}\r\n\r\nappStorageManager.loadAnyDataFromLocalDir = function () {\r\n//\r\n}\r\n\r\nappStorageManager.saveAnyDataToLocalDir = function () {\r\n//\r\n}\r\n\r\nappStorageManager.listDeckFilesInLocalDir = function () {\r\n//\r\n}\r\n\r\n*/\r\n","// @TS-NOCHECK\r\nimport {IFC_SERPManager, IFC_SharingManager, IFC_UserContentManager} from \"@/codes/_20.def/managerIFs\";\r\nimport {\r\n TYPE_FILTER_CODE,\r\n TYPE_INDEX_SIDEBAR,\r\n TYPE_PROP,\r\n TYPE_SECTION,\r\n TYPE_SUBSCRIPTION_PLAN\r\n} from \"@/codes/_20.def/_modDataDict\";\r\nimport {GUID_TYPE, IFC_Page_Section, IFC_Play_Options} from \"@/codes/_20.def/dataTypes\";\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\"\r\nimport {SYSS} from \"@/codes/_10.sys/A0Committee\"\r\n\r\n\r\nvar appSharingManager: IFC_SharingManager = {};\r\nwindow.appSharingManager = appSharingManager;\r\ndeclare var appUserContentManager: IFC_UserContentManager;\r\ndeclare var appSERPManager: IFC_SERPManager;\r\ndeclare var appUserManager: IFC_UserManager;\r\n\r\nfunction escapeHtmlAttributeString(str) {\r\n return str.replace(/\"/g, '"');\r\n}\r\n\r\n\r\nappSharingManager.publishHTML = function (xPageInfo, xSharingID) {\r\n if (xPageInfo && xPageInfo._GUID) {\r\n let zEndPointURL = SYSS.API_ADDR + \"/publishHTML\";\r\n let zPageInfo = _.clone(nz(xPageInfo, {}));\r\n let zSharingData = {}\r\n\r\n if (xPageInfo._IsDeleted) {\r\n zSharingData.sharingHTML = \" N/A \";\r\n } else {\r\n let zThemeName = UIS.currentPageData?.playOptions?.defaultThemeName;\r\n zSharingData.sharingHTML = appSharingManager.getSlidesHTML(zThemeName);\r\n }\r\n\r\n zSharingData.projectName = SYSS.PROJECT_NAME;\r\n zSharingData.username = appUserManager.currentUserInfo.username;\r\n if (xSharingID) zSharingData.sharingID = xSharingID;\r\n\r\n cerr(\"*pubh\", zSharingData, zEndPointURL);\r\n\r\n return fetch(zEndPointURL, {\r\n method: 'POST', // or 'PUT' if you are updating data\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n },\r\n body: JSON.stringify(zSharingData), // Convert the JavaScript object to a JSON string\r\n })\r\n .then(response => response.json()) // Parse the JSON response\r\n .then(data => {\r\n console.log('*publishing success:', data); // Handle the response data\r\n // get userinfo from replied data\r\n if (data && data.sharingID) {\r\n return data;\r\n }\r\n })\r\n .catch((error) => {\r\n // todo: error dialog\r\n console.error('Error:', error); // Handle any errors\r\n });\r\n\r\n }\r\n}\r\n\r\n// x. not used\r\nappSharingManager.shareContentPage = function (xPageInfo, xSharingID) {\r\n if (xPageInfo && xPageInfo._GUID) {\r\n let zEndPointURL = SYSS.API_ADDR + \"/shareData\";\r\n let zPageInfo = _.clone(nz(xPageInfo, {}));\r\n let zSharingData = {data: zPageInfo}\r\n zSharingData.projectName = SYSS.PROJECT_NAME;\r\n zSharingData.username = appUserManager.currentUserInfo.username;\r\n if (xSharingID) zSharingData.sharingID = xSharingID;\r\n\r\n return fetch(zEndPointURL, {\r\n method: 'POST', // or 'PUT' if you are updating data\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n },\r\n body: JSON.stringify(zSharingData), // Convert the JavaScript object to a JSON string\r\n })\r\n .then(response => response.json()) // Parse the JSON response\r\n .then(data => {\r\n console.log('*sharePage success:', data); // Handle the response data\r\n // get userinfo from replied data\r\n if (data && data.sharingID) {\r\n return data;\r\n }\r\n })\r\n .catch((error) => {\r\n // todo: error dialog\r\n console.error('Error:', error); // Handle any errors\r\n });\r\n\r\n }\r\n}\r\n\r\n// x. not used\r\nappSharingManager.getSharedContentPage = function (xSharingID) {\r\n if (xSharingID) {\r\n let zEndPointURL = SYSS.API_ADDR + \"/getSharedData\";\r\n let zRequestData = {}\r\n zRequestData.projectName = SYSS.PROJECT_NAME;\r\n // zRequestData.username=appUserManager.currentUserInfo.username; // can be anno\r\n zRequestData.sharingID = xSharingID;\r\n\r\n return fetch(zEndPointURL, {\r\n method: 'POST', // or 'PUT' if you are updating data\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n },\r\n body: JSON.stringify(zRequestData), // Convert the JavaScript object to a JSON string\r\n })\r\n .then(response => response.json()) // Parse the JSON response\r\n .then(data => {\r\n // console.log('*getSharedPage success:', data); // Handle the response data\r\n // get userinfo from replied data\r\n if (data && data.result) {\r\n return data;\r\n }\r\n })\r\n .catch((error) => {\r\n // todo: error dialog\r\n console.error('Error:', error); // Handle any errors\r\n });\r\n\r\n }\r\n}\r\n\r\n// * for exporting Whole Page\r\nappSharingManager.sortFlatSectionsToHierarchyArrayWithDepth = function (xPageSectionArray) {\r\n const nodeMap = new Map();\r\n xPageSectionArray.forEach(node => {\r\n nodeMap.set(node._GUID, {...node, children: []}); // Prepare nodes with children array\r\n });\r\n\r\n const findChildren = (parentNode, depth) => {\r\n const children = [];\r\n xPageSectionArray.forEach(node => {\r\n if (node._parentSectionGUID === parentNode._GUID) {\r\n const childNode = {...node, _depthLevel: depth + 1}; // Add _depthLevel to child node\r\n children.push(childNode, ...findChildren(childNode, depth + 1)); // Recurse for further children\r\n }\r\n });\r\n return children;\r\n };\r\n\r\n const result = [];\r\n xPageSectionArray.forEach(node => {\r\n // Only start with root nodes or nodes whose parent isn't in the list\r\n if (!node._parentSectionGUID || !nodeMap.has(node._parentSectionGUID)) {\r\n const rootNode = {...node, _depthLevel: 0}; // Root nodes are at depth 0\r\n if (!result.some(resultNode => resultNode._GUID === node._GUID)) { // Avoid duplicating\r\n result.push(rootNode, ...findChildren(rootNode, 0));\r\n }\r\n }\r\n });\r\n\r\n return result;\r\n}\r\n\r\n// * for exporting current Column\r\nappSharingManager.sortFilterPageColumnArray = function (xPageSectionArray, xColumnSectionGUID) {\r\n let zColumnSectionGUID = nz(xColumnSectionGUID, \"\");\r\n let zResPageSectionArray = [];\r\n\r\n _.each(xPageSectionArray, function (xPageSection: IFC_Page_Section) {\r\n let zPageSectionGUID = nz(xPageSection._GUID, \"\");\r\n if (\r\n (zPageSectionGUID == zColumnSectionGUID)\r\n ) {\r\n zResPageSectionArray.push(xPageSection);\r\n }\r\n });\r\n\r\n _.each(xPageSectionArray, function (xPageSection: IFC_Page_Section) {\r\n let zPageSectionParentGUID = nz(xPageSection._parentSectionGUID, \"\");\r\n if (\r\n (zPageSectionParentGUID == zColumnSectionGUID)\r\n ) {\r\n zResPageSectionArray.push(xPageSection);\r\n }\r\n });\r\n return zResPageSectionArray;\r\n}\r\n\r\nappSharingManager.outputMDText4CurrentPage = function (xColumnSectionGUID, xFilterCode) {\r\n\r\n // * init\r\n let zDefaultDepth = 0;\r\n let zAllPageSectionArray: [IFC_Page_Section] = appUserContentManager.getCurrentPageSections();\r\n let zSortedAllPageSectionArray: [IFC_Page_Section] = appSharingManager.sortFlatSectionsToHierarchyArrayWithDepth(zAllPageSectionArray);\r\n let zSortedPageSectionArray: [IFC_Page_Section];\r\n let zCurrentPageData = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n\r\n // * for Given Column\r\n if (xColumnSectionGUID) {\r\n zSortedPageSectionArray = appSharingManager.sortFilterPageColumnArray(zSortedAllPageSectionArray, xColumnSectionGUID);\r\n if (zSortedPageSectionArray && zSortedPageSectionArray.length) {\r\n zDefaultDepth = nz(zSortedPageSectionArray[0]._depthLevel, 0) + 0.5;\r\n }\r\n } else {\r\n zSortedPageSectionArray = zSortedAllPageSectionArray;\r\n }\r\n\r\n // * for Starred items\r\n if (xFilterCode == TYPE_FILTER_CODE.STARRED) {\r\n zSortedPageSectionArray = [];\r\n _.each(zCurrentPageData.starredSectionGUIDs, function (xSatrredPageSectionGUID: IFC_Page_Section) {\r\n let zResSatrredSection: IFC_Page_Section = appUserContentManager.getSection(UIS.currentUserContentPageGUID, xSatrredPageSectionGUID);\r\n if (zResSatrredSection) {\r\n zSortedPageSectionArray.push(zResSatrredSection);\r\n }\r\n });\r\n }\r\n\r\n // * export to MD\r\n // cerr(\"*stdsecp ay\",zSortedPageSectionArray);\r\n let zResText = \"\";\r\n _.each(zSortedPageSectionArray, function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection._isDeleted) return;\r\n let zSectionRelDepth = nz(xPageSection._depthLevel, 0) - zDefaultDepth;\r\n if (xPageSection.sectionType == TYPE_SECTION.HEADER) {\r\n let zHashTags = \"#\".repeat(zSectionRelDepth * 2 + 1) + \" \";\r\n zResText += zHashTags + xPageSection.sectionTitle + \"\\n\\n\";\r\n } else if (xPageSection.sectionType == TYPE_SECTION.NOTE_CARD) {\r\n let zHashTags = \"#\".repeat(zSectionRelDepth * 2 + 2) + \" \";\r\n zResText += zHashTags + xPageSection.sectionTitle + \"\\n\\n\";\r\n }\r\n\r\n if (xPageSection.sectionBodyText) {\r\n zResText += xPageSection.sectionBodyText + \"\\n\\n\";\r\n }\r\n\r\n if (xPageSection.sectionMemo) {\r\n zResText += \"> \"\r\n zResText += xPageSection.sectionMemo + \"\\n\\n\";\r\n }\r\n\r\n if (xPageSection.coverImageURL) {\r\n zResText += `![${xPageSection.coverImageSourceURL}](${xPageSection.coverImageURL})` + \"\\n\\n\";\r\n }\r\n\r\n if (xPageSection.refLinkAllString) {\r\n let zRefLinkArray=xPageSection.refLinkAllString.trim().split(\"\\n\");\r\n _.each(zRefLinkArray,function(xRefLink:string,xRefIndex){\r\n zResText += `[Reference-${xRefIndex}](${xRefLink})` + \"\\n\";\r\n });\r\n zResText +=\"\\n\"\r\n }\r\n\r\n });\r\n\r\n return zResText;\r\n}\r\n\r\nappSharingManager.outputStarredSlidesHTML4CurrentPage = function (xPlayOptions) {\r\n // * init\r\n let zPlayOptions: IFC_Play_Options = nz(xPlayOptions, {});\r\n let zStarredHeaderPageSectionArray: IFC_Page_Section[];\r\n let zCurrentPageData = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n let zCardThemeClassName=zPlayOptions?.defaultThemeName;\r\n zPlayOptions.defaultThemeName=zCardThemeClassName;\r\n\r\n zStarredHeaderPageSectionArray = [];\r\n\r\n // * front-cover\r\n if (zCurrentPageData.coverFrontSection?.sectionType && zCurrentPageData.coverFrontSection?.sectionTitle) {\r\n zStarredHeaderPageSectionArray.push(zCurrentPageData.coverFrontSection);\r\n }\r\n\r\n // * header for non-header slides\r\n if (UIS.starredHeaderAndSubGUIDsMap && UIS.starredHeaderAndSubGUIDsMap[\"\"] && UIS.starredHeaderAndSubGUIDsMap[\"\"].length) {\r\n zStarredHeaderPageSectionArray.push({}); // non-header slides (slides before 1st header)\r\n }\r\n\r\n // * other starred slides\r\n _.each(zCurrentPageData.starredSectionGUIDs, function (xSatrredPageSectionGUID: IFC_Page_Section) {\r\n let zResStarredSection: IFC_Page_Section = appUserContentManager.getSection(UIS.currentUserContentPageGUID, xSatrredPageSectionGUID);\r\n if (zResStarredSection && (zResStarredSection.sectionType == TYPE_SECTION.HEADER)) {\r\n zStarredHeaderPageSectionArray.push(zResStarredSection);\r\n }\r\n });\r\n\r\n // * back-cover\r\n if (zCurrentPageData.coverBackSection?.sectionType && zCurrentPageData.coverBackSection?.sectionTitle) {\r\n zStarredHeaderPageSectionArray.push(zCurrentPageData.coverBackSection);\r\n }\r\n\r\n // * export to Slides HTML\r\n // cerr(\"*stdsecp ay\",zSortedPageSectionArray);\r\n\r\n let zResSlidesHTML = \"\";\r\n\r\n if (appUserManager.currentUserInfo.subPlanType == TYPE_SUBSCRIPTION_PLAN.Lite) {\r\n//\r\n }\r\n\r\n\r\n _.each(zStarredHeaderPageSectionArray, function (xPageHeaderSection: IFC_Page_Section) {\r\n if (xPageHeaderSection._isDeleted) return;\r\n if (!xPageHeaderSection._GUID) xPageHeaderSection._GUID = \"\";\r\n\r\n\r\n zResSlidesHTML += `
`;\r\n\r\n if (xPageHeaderSection && xPageHeaderSection.sectionTitle) {\r\n zResSlidesHTML += `
`;\r\n if (xPageHeaderSection.sectionType == TYPE_SECTION.HEADER) {\r\n zResSlidesHTML += `

` + xPageHeaderSection.sectionTitle + \"

\\n\\n\";\r\n } else if (xPageHeaderSection.sectionType == TYPE_SECTION.COVER) {\r\n zResSlidesHTML += `

` + xPageHeaderSection.sectionTitle + \"

\\n\\n\";\r\n }\r\n\r\n zResSlidesHTML += \"
\"\r\n\r\n if (xPageHeaderSection.sectionBodyText) {\r\n appUserContentManager.renderSection(zPageItem.templateGUID, xPageHeaderSection);\r\n zResSlidesHTML += \"
\"\r\n zResSlidesHTML += xPageHeaderSection._cacheBodyHTML + \"\\n\";\r\n zResSlidesHTML += \"
\\n\";\r\n }\r\n\r\n if (xPageHeaderSection.coverImageURL) {\r\n zResSlidesHTML += `
`;\r\n zResSlidesHTML += `\r\n \r\n
\r\n ` + \"\\n\\n\";\r\n }\r\n\r\n if (xPageHeaderSection._cacheMemoHTML) {\r\n zResSlidesHTML += `\r\n \r\n ` + \"\\n\\n\";\r\n }\r\n\r\n zResSlidesHTML += \"
\\n\";\r\n }\r\n\r\n\r\n if (xPageHeaderSection.sectionType != TYPE_SECTION.COVER) {\r\n let zSubPageSectionGUIDs: GUID_TYPE[] = nz(UIS?.starredHeaderAndSubGUIDsMap[xPageHeaderSection._GUID], []);\r\n _.each(zSubPageSectionGUIDs, function (xSubPageSectionGUID: GUID_TYPE) {\r\n\r\n let zSubPageSection: IFC_Page_Section = appUserContentManager.getSection(UIS.currentUserContentPageGUID, xSubPageSectionGUID);\r\n zResSlidesHTML += appSharingManager.outputSlideHTML4PageSection(zSubPageSection, zPlayOptions);\r\n zResSlidesHTML += \"\\n\";\r\n\r\n });\r\n }\r\n\r\n\r\n /*if (xPageSection._cacheMemoHTMLParagraphs?.length) {\r\n zResSlidesHTML += \"
\"\r\n\r\n // zResSlidesHTML += xPageSection._cacheMemoHTML + \"\\n\\n\";\r\n\r\n _.each(xPageSection._cacheMemoHTMLParagraphs, xHTMLString => {\r\n zResSlidesHTML += \"
\\n\";\r\n zResSlidesHTML += \"
\\n\";\r\n zResSlidesHTML += xHTMLString + \"\\n\";\r\n zResSlidesHTML += \"
\\n\";\r\n zResSlidesHTML += \"
\\n\";\r\n })\r\n\r\n }*/\r\n\r\n /*if (xPageSection.refSectionGUIDs && xPageSection.refSectionGUIDs.length && (!zPlayOptions.ifHideRefs4AIReplySlide)) {\r\n _.each(xPageSection.refSectionGUIDs, function (xRefSectionGUID) {\r\n\r\n let zRefSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, xRefSectionGUID);\r\n\r\n if (zRefSection) {\r\n let zSubRefHostName = appSERPManager.getHostName(zRefSection.refLink);\r\n let zSubRefFavIconURL = appSERPManager.getFavIconURL(zRefSection.refLink);\r\n\r\n zResSlidesHTML += `\r\n
\r\n

${zRefSection.sectionTitle}

\r\n
\r\n\r\n
${zRefSection._cacheBodyHTML}
\r\n `;\r\n\r\n if (zRefSection.refLink && (!zPlayOptions.ifHideAllRefLink)) {\r\n zResSlidesHTML += `
\r\n \r\n
${zSubRefHostName}
\r\n \r\n
\r\n
`;\r\n }\r\n\r\n zResSlidesHTML += `
\r\n \\n\r\n `;\r\n }\r\n\r\n });\r\n\r\n }*/\r\n\r\n // _.each xPageSection.refSectionGUIDs //todo: slides for ref links\r\n\r\n\r\n zResSlidesHTML += \"
\\n\\n\"\r\n\r\n });\r\n return zResSlidesHTML;\r\n}\r\n\r\n//output single slide play HTML\r\nappSharingManager.outputSlideHTML4PageSection = function (xPageSection, xPlayOptions) {\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n let zPageSection = xPageSection;\r\n let zPlayOptions = nz(xPlayOptions, {});\r\n let zResSlideHTML = \"\";\r\n let zCardThemeClassName=xPlayOptions?.defaultThemeName;\r\n\r\n if (zPageSection && zPageSection.sectionTitle) {\r\n appUserContentManager.renderSection(zPageItem.templateGUID, zPageSection);\r\n zResSlideHTML += `
\r\n
\r\n \\n`;\r\n // zResSlidesHTML +=\"+++\"+zSubPageSection.sectionTitle;\r\n\r\n if (zPageSection.sectionType == TYPE_SECTION.NOTE_CARD) {\r\n zResSlideHTML += \"

\" + zPageSection.sectionTitle + \"


\\n\\n\";\r\n // zResSlidesHTML += \"
\\n\";\r\n }\r\n\r\n if (!zPageSection.coverImageURL) {\r\n zResSlideHTML += `
`;\r\n } else {\r\n zResSlideHTML += `
`;\r\n }\r\n\r\n if (zPageSection.sectionBodyText) {\r\n if (zPageSection.sectionType == TYPE_SECTION.NOTE_CARD) {\r\n zResSlideHTML += `
`\r\n } else if (zPageSection.sectionType == TYPE_SECTION.COVER) {\r\n zResSlideHTML += \"
\"\r\n }\r\n zResSlideHTML += zPageSection._cacheBodyHTML + \"\\n\\n\";\r\n zResSlideHTML += \"
\"\r\n }\r\n\r\n zResSlideHTML += \"
\";\r\n\r\n\r\n if (zPageSection.coverImageURL) {\r\n\r\n if (!zPageSection.sectionBodyText) {\r\n zResSlideHTML += `
`;\r\n } else {\r\n zResSlideHTML += `
`;\r\n }\r\n\r\n zResSlideHTML += `\r\n \r\n
\r\n
\r\n ` + \"\\n\\n\";\r\n }\r\n\r\n if (zPageSection.refLinkAllString && (!zPlayOptions.ifHideRefs4AIReplySlide)) {\r\n let zRefLinks=zPageSection.refLinkAllString.split(\"\\n\");\r\n zResSlideHTML += \"
\";\r\n _.each(zRefLinks, function (xRefLink) {\r\n\r\n if (xRefLink) {\r\n let zSubRefHostName = appSERPManager.getHostName(xRefLink);\r\n let zSubRefFavIconURL = appSERPManager.getFavIconURL(xRefLink);\r\n\r\n if (xRefLink && (!zPlayOptions.ifHideAllRefLink)) {\r\n zResSlideHTML += `\r\n
\r\n \r\n \r\n \r\n
`;\r\n }\r\n\r\n }\r\n\r\n });\r\n zResSlideHTML += \"
\";\r\n\r\n }\r\n\r\n if (zPageSection._cacheMemoHTML) {\r\n zResSlideHTML += `\r\n \r\n ` + \"\\n\\n\";\r\n }\r\n\r\n zResSlideHTML += \"
\\n\";\r\n }\r\n return zResSlideHTML\r\n}\r\n\r\n\r\n// play slides with the given theme\r\n// xOptions.isPreview\r\n// xOptions.ifStartWithMemos\r\nappSharingManager.playSlides = function (xThemeName, xStartPageSectionGUID, xOptions) {\r\n let zThemeName = nz(xThemeName, \"black\");\r\n let zOptions = nz(xOptions, {});\r\n\r\n localStorage.setItem('myThemeName', zThemeName);\r\n\r\n localStorage.setItem('ifLite', (appUserManager.currentUserInfo?.subPlanType == TYPE_SUBSCRIPTION_PLAN.Lite) ? \"yes\" : \"\");\r\n\r\n let zResHTML = \"\";\r\n let zResTitle = appUserContentManager.generatePageTitle(UIS.currentUserContentPageGUID);\r\n\r\n // * generate res html\r\n let zPageColTitles = appUserContentManager.getPageColumnTitles4AIAction();\r\n zResTitle = zPageColTitles[UIS.currentUserContentPageColumnIndex];\r\n zResHTML = appSharingManager.outputStarredSlidesHTML4CurrentPage(UIS.currentPageData?.playOptions);\r\n\r\n // * if start speaker notes / memos\r\n localStorage.setItem('ifStartWithMemos', nz(zOptions.ifStartWithMemos, \"\"));\r\n\r\n // * get start index\r\n if (xStartPageSectionGUID) {\r\n\r\n let zResStartIndexH = 0;\r\n let zResStartIndexV = 0;\r\n let zIsSlideFound = false;\r\n _.each(UIS.currentPageData?.starredSectionGUIDs, function (xStarredSectionGUID: GUID_TYPE, xIndex: number) {\r\n /*cerr(zResStartIndexH,zResStartIndexV,zIsSlideFound)\r\n cerr(zResStartIndexH,zResStartIndexV,zIsSlideFound)*/\r\n if (zIsSlideFound) return;\r\n\r\n // let zPsec = appUserContentManager.getSection(UIS.currentUserContentPageGUID, xStarredSectionGUID);\r\n // cwrn(\"*cmp prv st idx\",xStarredSectionGUID,zPsec?.sectionTitle,xStartPageSectionGUID)\r\n\r\n if (UIS.starredHeaderAndSubGUIDsMap && UIS.starredHeaderAndSubGUIDsMap[xStarredSectionGUID]) {\r\n zResStartIndexH++;\r\n zResStartIndexV = 0;\r\n }\r\n\r\n if (xStarredSectionGUID == xStartPageSectionGUID) {\r\n zIsSlideFound = true;\r\n return;\r\n }\r\n zResStartIndexV++;\r\n\r\n })\r\n\r\n if (UIS.starredHeaderAndSubGUIDsMap[\"\"]?.length) {\r\n zResStartIndexH++;\r\n }\r\n\r\n if (!UIS.currentPageData?.coverFrontSection?.sectionTitle) {\r\n zResStartIndexH--;\r\n }\r\n localStorage.setItem('gotoSlideIndexH', zResStartIndexH)\r\n localStorage.setItem('gotoSlideIndexV', zResStartIndexV)\r\n }\r\n\r\n // * start play.html\r\n UIS.previewHTML = \"/play.html\";\r\n localStorage.setItem('mySlidesHTML', zResHTML);\r\n if (localStorage.getItem('ifPrintNow')) {\r\n UIS.previewHTML += \"?print-pdf\";\r\n }\r\n\r\n\r\n // newPageWithHTML(zResHTML, nz(zResTitle, \"Export\"));\r\n if (zOptions.isPreview) {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SYS_SLIDE_PREVIEW_DIALOG;\r\n } else {\r\n window.open(UIS.previewHTML, \"_blank\").focus();\r\n }\r\n\r\n}\r\n\r\nappSharingManager.previewSingleSlide = function (xThemeName, xPageSection) {\r\n // * init\r\n if (!xPageSection) return;\r\n let zThemeName = nz(xThemeName, \"card-theme-dark\");\r\n localStorage.setItem('myThemeName', zThemeName);\r\n localStorage.setItem('ifLite', (appUserManager.currentUserInfo?.subPlanType == TYPE_SUBSCRIPTION_PLAN.Lite) ? \"yes\" : \"\");\r\n\r\n // * generate res html\r\n let zResHTML = \"\";\r\n zResHTML = appSharingManager.outputSlideHTML4PageSection(xPageSection, UIS.currentPageData?.playOptions);\r\n localStorage.setItem('mySlidesHTML', zResHTML);\r\n\r\n // * start play.html in preview dialog\r\n UIS.previewHTML = \"/play.html\";\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SYS_SLIDE_PREVIEW_DIALOG;\r\n\r\n}\r\n\r\nappSharingManager.printSlides = function (xOptions) {\r\n localStorage.setItem('ifPrintNow', true);\r\n localStorage.setItem('printOptions', \"{}\");\r\n if (xOptions) {\r\n localStorage.setItem('printOptions', JSON.stringify(xOptions));\r\n }\r\n let zThemeName = UIS.currentPageData?.playOptions?.defaultThemeName;\r\n appSharingManager.playSlides(zThemeName);\r\n}\r\n\r\nappSharingManager.downloadText = function (xText, xFileName) {\r\n // The text content you want to save\r\n const text = xText;\r\n let zFileName = nz(xFileName, \"MyDownload\");\r\n\r\n if (!text) return;\r\n\r\n // Create a Blob containing the text\r\n // const blob = new Blob([text], { type: 'text/plain' });\r\n const blob = new Blob([text], {\r\n type: 'application/octet-stream'\r\n });\r\n\r\n // Create a URL for the Blob\r\n const url = URL.createObjectURL(blob);\r\n\r\n // Create a temporary link element\r\n const link = document.createElement('a');\r\n link.href = url;\r\n link.download = zFileName; // Set the file name\r\n\r\n // Append link to body, click it, and remove it\r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n\r\n // Clean up by revoking the Blob URL\r\n URL.revokeObjectURL(url);\r\n}\r\n\r\nappSharingManager.downloadSlidesHTML = function (xThemeName) {\r\n let zSiteName = \"https://app.fyndeck.com\";\r\n let zThemeName = nz(xThemeName, \"black\");\r\n let zMySlidesHTML = appSharingManager.getSlidesHTML(zThemeName);\r\n if (zMySlidesHTML) {\r\n\r\n let zFileNameTitle = nz(UIS.currentPageData?.pageTitle, \"Noname\");\r\n zFileNameTitle = zFileNameTitle\r\n .replace(/[^\\w\\s-]/g, '') // Remove non-word chars except spaces and hyphens\r\n .replace(/\\s+/g, '_') // Replace spaces with underscores\r\n .trim();\r\n appSharingManager.downloadText(zMySlidesHTML, zFileNameTitle + TYPE_PROP.SUFFIX_FILE_NAME_EXPORT_SLIDES);\r\n }\r\n}\r\n\r\nappSharingManager.getSlidesHTML = function (xThemeName) {\r\n let zSiteName = \"https://app.fyndeck.com\";\r\n let zThemeName = nz(xThemeName, \"card-theme-dark\");\r\n let zMySlidesHTML = appSharingManager.outputStarredSlidesHTML4CurrentPage(UIS.currentPageData?.playOptions);\r\n\r\n let zTemplateHTML =\r\n `\r\n\r\n\r\n \r\n Fyndeck\r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n
\r\n
\r\n ${zMySlidesHTML}\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n`;\r\n\r\n return zTemplateHTML;\r\n\r\n}","import {createI18n} from 'vue-i18n';\r\n\r\nconst messages = {\r\n en: {\r\n placeholder: {\r\n\r\n \"TextInput4Summary\": \"Enter or paste your text here to summarize.\",\r\n \"WebpageInput4Summary\": \"Enter or paste your web page URL here to summarize.\",\r\n \"YouTubeInput4Summary\": \"Enter or paste your YouTube URL here to summarize.\",\r\n \"TextInput4Searching\": \"Enter keywords here to explore.\\nE.g. Paris Landmarks\",\r\n \"TextInput4AISuggestion\": \"Share your ideas here for AI suggestions.\\nE.g. How to introduce Steve Jobs?\",\r\n \"TextInput4AIAnswer\": \"Enter your questions here for AI reply without web search.\\nE.g. What is SWOT analysis?\",\r\n \"TextInput4NewBlankTopic\":\"Enter your new topic name here.\",\r\n \"TextInput4NewBlankSlide\":\"Enter your slide content here.\",\r\n\r\n \"role_input_name\": \"Give your AI role a name. E.g. Wiki Teacher\",\r\n \"role_input_instruction\": \"Describe what to do. E.g. You're a teacher for a 10yo kid.\",\r\n \"role_input_websiteURL\": \"(Optional) Search this website only. E.g. wikipedia.org\",\r\n \"prompt_site_input\": \"wikipedia.org\\nreddit.com \\n...\",\r\n \"prompt_actionflow_name\": \"Favorite Blogs, Tech News, ...\",\r\n\r\n \"FrontCoverTitle\": \"Enter your main topic title\",\r\n \"BackCoverTitle\": \"Enter your closing statement\",\r\n \"FrontCoverContent\": \"Enter subtitle, organization name, or presenter information\",\r\n \"BackCoverContent\": \"Enter additional details, acknowledgments, or contact information\",\r\n \"NoteRefLinks\": \"Each line for one reference URL \\n\" + \"\" + \"https://example.com/1\\n\" + \"https://example2.com/article/a.html\"\r\n },\r\n\r\n\r\n actions: {\r\n \"SelectTopicActionType\": \"Create a new topic\",\r\n \"SelectBreakdownActionType\": \"Break down my ideas first\",\r\n\r\n \"WithContent\": \"with Content\",\r\n \"ByAskingAI\":\"Create Topic by Asking AI\",\r\n \"ByFinding\": \"Create Topic by Finding\",\r\n \"BySummarizing\": \"Create Topic by Refining\",\r\n \"ByOthers\": \"Others\",\r\n\r\n \"SysTextFileSummary\": \"Summarizing Text File\",\r\n \"SysLongTextSummary\": \"Summarizing Long Text\",\r\n \"SysAIOutline\": \"Extending My Idea to an Outline \",\r\n \"SysNewsSearch\": \"News Search\",\r\n \"SysImageSearch\": \"Images Search\",\r\n \"SysWebSearch\": \"Web Search\",\r\n \"SysNewBlankTopic\": \"New Blank Topic\",\r\n\r\n \"WebSearchPlusAI\": \"Web Search Result\",\r\n \"FindImages\": \"Images\",\r\n \"FindNews\": \"News\",\r\n \"AskAI4Outline\": \"Outline Suggestions\",\r\n \"AskAI4Answer\": \"Asking AI for Answers (without Web Searching)\",\r\n\r\n \"NewBlankTopic\":\"Create Blank Topic\",\r\n \"NewBlankSlide\":\"Create Blank Slide\",\r\n \"NewBlankDeck\":\"Create New Deck\",\r\n\r\n \"LongTextSummary\": \"Long Text\",\r\n \"TextFileSummary\": \"Text/Markdown File\",\r\n \"PDFFileSummary\": \"PDF File\",\r\n \"DOCXFileSummary\": \"Word DOCX File\",\r\n \"StartSummarizingFrom\":\"Start summarizing from\",\r\n \"StartSummarizingTo\":\"to\",\r\n\r\n \"WebPageSummary\": \"Web Pages\",\r\n \"YouTubeSummary\": \"YouTube\",\r\n\r\n \"Back\": \"Back\",\r\n \"StartCreatingTopic\": \"Start Creating a Topic\",\r\n \"StartAskingAI\": \"Start Asking AI\",\r\n\r\n },\r\n tooltips: {\r\n\r\n \"ManageAllDecks\": \"Manage all your decks.\",\r\n \"Help\": \"Show tutorials and help information.\",\r\n \"exportFunction\": \"Export your slides, playlist to variant format file.\",\r\n \"publishFunction\": \"Make your slides in the playlist public so that everyone can access them.\",\r\n \"starSlide\": \"Star this slide and add this slide into the playlist.\",\r\n \"unstarSlide\": \"Unstar this slide and remove this slide from the playlist.\",\r\n \"previewSlide\": \"Preview this slide.\",\r\n \"convert2TopicFromPoint\": \"Convert this point into a topic (group of slides).\",\r\n \"moreTopicsFromSlide\": \"Create more topics from this slide.\",\r\n \"updateImageForSlide\": \"Attach image for this slide.\",\r\n \"editSlide\": \"Edit this slide.\",\r\n \"discardSlide\": \"Discard this slide.\",\r\n\r\n \"selectAllGroupItems\": \"Select all items in this group.\",\r\n \"locateSlide\": \"Locate this slide in the deck.\",\r\n \"playFromHere\": \"Play the slides from here.\",\r\n \"removeSlide\": \"Remove this slide from the playlist.\",\r\n\r\n \"removeGroupSlides\": \"Remove all slides in this group from the playlist.\",\r\n \"moveGroupUp\": \"Move the group of slides upward\",\r\n \"moveGroupDown\": \"Move the group of slides downward\",\r\n\r\n \"dragMoveSlide\": \"You can drag this slide and move it into the playlist.\",\r\n \"addCustomSlideToTopicGroup\": \"Add a new slide into this topic group.\",\r\n \"addCustomPointToOutline\": \"Add a new point into this outline.\",\r\n \"discardGroupAndSections\": \"Discard this topic group and all slides inside\",\r\n\r\n },\r\n\r\n messages: {\r\n \"HelpHowToStart\": \"How to Get Started\",\r\n \"HelpHowToCreateTopics\": \"How to Create Topics\",\r\n \"HelpHowToPreparePlaylist\": \"How to Prepare Playlist\",\r\n \"HelpHowToEditSlides\": \"How to Edit Slides\",\r\n \"HelpHowToPlayPreview\": \"How to Preview & Play Slides\",\r\n \"HelpHowToUseEnhancedController\": \"How to Use Speaker Note and Enhanced Controller\",\r\n \"HelpHowToExportSlides\": \"How to Export Slides\",\r\n \"HelpHowToSharePlaylist\": \"How to Share Playlist\",\r\n\r\n \"HelpHowToBuyCredits\": \"How to Buy Credits\",\r\n\r\n \"Sample1\": \"Sample: Introduce Steve Jobs\",\r\n\r\n \"AIWillReplyInLang\": \"AI will reply in\",\r\n\r\n \"EmptyPage_Title\": \"Let's Start\",\r\n \"NewDeckEmptyPage\": \"Create a new deck\",\r\n \"LoadDeck4EmptyPage\": \"Start from an existing deck\",\r\n\r\n \"NewTopicsByInput\": \"Start Your Journey\",\r\n \"ContinueBuildingDecks\": \"Continue Diving\", // with AI Copilot\r\n \"DiveDeeper\": \"Dive Deeper\",\r\n\r\n\r\n \"InputForAIPoints\": \"Quick Reply\",\r\n \"InputForAIPointsGoOn\": \"More Decks\",\r\n \"ContinueWriting\": \"Continue Writing with AI\",\r\n \"InputForAIQuestions\": \"Make Questions\",\r\n \"InputForAIAnalyzing\": \"Think Deeper\",\r\n \"InputForAIRelated\": \"Related Topics\",\r\n \"InsertMemo\": \"Insert a memo\",\r\n \"AppendSelectionToMemo\": \"Memo\",\r\n \"PrivateMemoNote\": \"Memo is a private speaker note.\",\r\n \"ExploreSelection\": \"Explore\",\r\n \"ClearSelection\": \"Clear\",\r\n\r\n \"CreateAsRootTopic\":\"Create a root topic\",\r\n \"CreateAsSubTopic\":\"Create a child topic\",\r\n\r\n \"InputForWebSearch\": \"Web Search\",\r\n \"PressEnterToChat\": \"Press [Enter] to chat with AI\",\r\n \"ReturnToChat\": \"Back to chatting\",\r\n \"ClearFollowups\": \"Clear questions\",\r\n \"SearchWithSpecSource\": \"Let web search use the specified source\",\r\n\r\n \"hint4QuickSubmitKeyShortcut\": \"CTRL+Enter for quick submit\",\r\n\r\n \"PreviewYourContent\": \"Here is the preview of your content\",\r\n \"Insert2Deck\": \"Insert selection to the deck\",\r\n \"InsertRef2Deck\": \"Insert into the deck\",\r\n \"AddCustomGroupInMyTopics\": \"Add a custom group\",\r\n \"RefInserted\": \"Inserted\",\r\n \"Insert2Top\": \"Insert to the top\",\r\n \"Insert2Bottom\": \"Insert to the bottom\",\r\n \"Move2NewPosition\": \"Move the selected item to a new position\",\r\n\r\n \"InTheTopOfDeck\": \"in the top of deck\",\r\n\r\n\r\n \"StartNewDeck\": \"Start a new deck\",\r\n \"StartNewDeckDescription\": \"Leave this deck and create a new one\",\r\n \"InsertNewNote\": \"Insert a user note\",\r\n \"InsertNewBookmark\": \"Insert a new URL bookmark\",\r\n \"InsertNewGroup\": \"Insert a new group\",\r\n\r\n \"Return2ChattingUI\": \"Cancel\",\r\n\r\n \"Confirm2ResetRoles\": \"This will clear all AI roles and reset them to default status.\\n\\nAre you sure?\",\r\n\r\n \"Confirm2Remove_Page\": \"This will discard the whole deck.\\n\\nIf the deck is shared before, the sharing content will be unavailable. \\n\\nAre you sure?\",\r\n \"Confirm2Remove_Role\": \"Confirm to discard\",\r\n \"Confirm2Remove_Section_Only\": \"This will discard the selected slide.\\n\\nAre you sure?\",\r\n \"Confirm2Discard_Group_And_Sections\": \"This will discard the selected group and all slides inside.\\n\\nAre you sure?\",\r\n \"Confirm2Remove_Starred_Group_And_Sections\": \"This will UNSTAR the selected group and all slides inside.\\nThe slides will be still in your topic group deck after this operation.\\n\\nAre you sure?\",\r\n \"Confirm2Remove_Starred_Group_Only\": \"This will UNSTAR the selected group only.\\nAre you sure?\",\r\n \"Confirm2OpenTab4SharedPage\": \"Would you like to open a new tab to preview this sharing page?\",\r\n \"Confirm2DiveInto\": \"Dive into this topic\",\r\n \"Confirm2OpenAllStarredItems\": \"Open all items in new tabs\",\r\n \"RemoteErrorOccurred\": \"Service Paused\\n\\nIf you are out of credits, please refill your credits.\\nIt's also possibly due to excessive server load or a network issue.\\n\\nYou can also contact us via fyndeck@divedeck.ai\\n\\n\",\r\n\r\n \"PageSharedAtFollowing\": \"Your deck is shared at following URL\",\r\n \"ChooseOptionalImage\": \"Try another image?\",\r\n\r\n \"OPIntroStartSearching\": \"Click the search bar above to start.\",\r\n \"OPIntroStarringItem\": \"Click the star icon to add first slide into the playlist.\",\r\n \"OPIntroStartingNewDeck\": \"Starting a New Deck\",\r\n \"OPIntroSeeQuickGuide\": \"First time here? Check out the Quick Guide for a smooth start.\",\r\n \"SeeQuickGuide\": \"See Quick Guide\",\r\n\r\n \"TrySampleTopics\": \"No ideas? Try these topics.\",\r\n \"PreviewAddingNotes\": \"Preview the structure of notes\",\r\n\r\n \"BuyCredits\": \"See Pricing and Discounts\",\r\n\r\n \"GetEarlyAccessLicense\": \"Get Early Access License\",\r\n \"IfYouGotLic\": \"If you've already got License Key, click here\",\r\n\r\n \"InputYourLicenseCode_Title\": \"Start Early Access\",\r\n \"InputYourLicenseCode_Desc\": \"Enter Beta License Key\",\r\n\r\n \"InputYourAPIKey_Title\": \"Start BYO Free Plan\",\r\n \"InputYourAPIKey_Desc\": \"Enter OpenAI API Key\",\r\n \"Confirm2SubmitAPIKey\": \"Clicking OK indicates that I am aware of the risks associated with entering the API KEY and am willing to bear the consequences.\",\r\n\r\n \"PoweredByFyndeck\": \"powered by Fyndeck\",\r\n \"SaveToMyBase\": \"Save to my base\",\r\n\r\n \"MyDeckIntro\": \"All your deck data are saved on LOCAL device except shared decks.\",\r\n\r\n \"ESC2StopAIGenerating\": \"press ESC to stop AI generating.\",\r\n\r\n \"OutOfCredits_Title\": \"Top Up\",\r\n \"OutOfCredits_Desc1\": \"Time to refill your credits. No subscription required.\",\r\n \"OutOfCredits_Desc2\": ``,\r\n\r\n\r\n \"EditImage\": \"Edit slide image\",\r\n \"EditNote\": \"Edit slide text\",\r\n\r\n \"GotoWebsite\": \"Go to website\",\r\n \"DiveInto\": \"Dive into this topic\",\r\n\r\n \"AIReplyNeeded\": \"AI's reply or summarization is needed\",\r\n \"PromptSiteDesc1\": \"You can limit the search sources from the specified sites only.\",\r\n \"PromptSiteDesc2\": \"Please type the site names below. Keep each site in a different line.(Max: 8 sites)\",\r\n\r\n \"YouMayBeInterestedIn\": \"You might be interested in\",\r\n \"InformationMightBeUseful\": \"Information might be useful\",\r\n\r\n \"OPDisabledUnderFilterMode\": \"Filter Mode\",\r\n\r\n \"OpenLinkInNewTab\": \"Open in new tab\",\r\n \"SummarizeThisURL\": \"Summarize this page\",\r\n\r\n \"Default_BackCover_Title\": \"Thank You\",\r\n\r\n \"starredSlidesNotFound\": \"Star some slides to build your playlist\",\r\n\r\n \"HideRefs4AIReplySlide\": \"Hide reference subpages while playing\",\r\n \"HideAllRefLink\": \"Hide all reference links while playing\",\r\n\r\n\r\n \"DropFileHereOrClick\": \"Drop your file here or click to select one.\",\r\n \"AutoAdd2Playlist\":\"Auto-add to playlist\",\r\n\r\n \"selectKeyword4NewTopic\": \"Select a keyword to create a new topic\",\r\n \"ClickSuggestion2ConvertTopic\":\"If you find this point helpful, please select this card and turn it into a topic.\",\r\n\r\n \"hello\": \"Hello World!!!\",\r\n },\r\n\r\n \"card-theme-dark\": \"Dark\",\r\n \"card-theme-light\": \"Light\",\r\n \"card-theme-ocean\": \"Ocean\",\r\n \"card-theme-terra\": \"Terra\",\r\n \"card-theme-rose\": \"Rose\",\r\n \"card-theme-cyberpunk\": \"Cyberpunk\",\r\n \"card-theme-zen\": \"Zen\",\r\n \"card-theme-nordic\": \"Nordic\",\r\n \"card-theme-forest\": \"Forest\",\r\n \"card-theme-matrix\": \"Matrix\",\r\n \"card-theme-passion-glass\": \"Passion\",\r\n \"card-theme-aurora-glass\": \"Aurora\",\r\n \"card-theme-monokai\": \"Monokai\",\r\n \"card-theme-dracula\": \"Dracula\",\r\n \"card-theme-metro\": \"Metro\",\r\n \"card-theme-orange-juice\": \"Orange\",\r\n \"card-theme-black-white\": \"Black&White\",\r\n\r\n \"Manage_All_Decks\": \"All Decks\",\r\n\r\n \"Export\": \"Export\",\r\n \"Share\": \"Share\",\r\n\r\n \"Play_Page_With\": \"Play with...\",\r\n \"Play_With_Memos\": \"Play slides with memos\",\r\n \"Preview_Slide\": \"Preview\",\r\n \"Quick_Play_Page\": \"Play\",\r\n \"Out_Of_Credits\": \"Out Of Credits\",\r\n\r\n \"Update_Sharing\": \"Update sharing content\",\r\n \"Stop_Sharing\": \"Stop sharing\",\r\n \"Start_Sharing\": \"Start sharing the playlist\",\r\n \"Sharing_In_Progress\": \"Sharing In Progress\",\r\n \"Sharing_URL\": \"Sharing URL\",\r\n\r\n \"Export_Slides_Play_HTML\": \"Export to playable HTML file\",\r\n \"Export_Whole_Deck_To_Markdown_Text\": \"Export whole deck to Markdown file\",\r\n \"Export_Whole_Deck_To_HTML\": \"Export whole deck to HTML file\",\r\n \"Export_This_PageView_To_Markdown_Text\": \"Export current view to Markdown file\",\r\n \"Export_This_PageView_To_HTML\": \"Export current view to HTML file\",\r\n \"Export_Starred_Items_To_Markdown_Text\": \"Export playlist to Markdown file\",\r\n \"Export_Starred_Items_To_HTML\": \"Export playlist to HTML file\",\r\n \"Export_Starred_Items_To_PDF\": \"Export playlist to PDF file without memos\",\r\n \"Export_Starred_Items_To_PDF_With_Memo\": \"Export playlist to PDF file with attached memos\",\r\n \"Export_Starred_Items_To_PDF_With_Memo_Seperated\": \"Export playlist to PDF file with memos\",\r\n\r\n \"More_Play_Options\": \"More Options\",\r\n \"Front_Cover_Title\": \"Front Cover Title\",\r\n \"Back_Cover_Title\": \"Back Cover Title\",\r\n \"Front_Cover_Content\": \"Front Cover Content\",\r\n \"Back_Cover_Content\": \"Back Cover Content\",\r\n\r\n \"Next\": \"Next\",\r\n \"after\": \"after\",\r\n \"before\": \"before\",\r\n \"Plan\": \"Plan\",\r\n \"Free Trial\": \"Free Trial\",\r\n \"Support\": \"Support\",\r\n \"FYR\": \"For Your Reference\",\r\n \"Explore_More\": \"Click here to start finding and deck building\",\r\n \"Asking_AI\": \"Asking AI\",\r\n \"AI_Reply\": \"Summarized by AI\",\r\n \"Selected_Page\": \"Selected page\",\r\n\r\n \"Customize_Workflow\": \"Customize\",\r\n \"Edit\": \"Edit\",\r\n \"Image\": \"Image\",\r\n \"Settings\": \"Settings\",\r\n \"More_Options\": \"More Options\",\r\n \"Less_Options\": \"Less Options\",\r\n\r\n \"Remove_Section_Only\": \"Remove this slide\",\r\n \"Add_Image_To_Slide\": \"Add images to this slide\",\r\n \"Copy_Title_To_Clipboard\": \"Copy title to clipboard\",\r\n\r\n\r\n \"MoreLikeThis\": \"More Like This\",\r\n \"Open\": \"Open\",\r\n \"Discard\": \"Discard\",\r\n\r\n \"Group_Header\": \"Group Header\",\r\n\r\n \"Create\": \"Create\",\r\n \"Add\": \"Add\",\r\n\r\n \"Create_Topic\": \"Create Topic\",\r\n\r\n \"Root_Topic\":\"As a Root Topic\",\r\n \"Sub_Topic\":\"As a Child Topic\",\r\n\r\n \"Create_New_Topic_From_Selection\": \"Create a new topic from the selected text\",\r\n \"Search_Image_By_Selection\": \"Search for an image using selected text\",\r\n \"Convert2Topic\": \"Convert to Topic\",\r\n \"MoreTopics\": \"More Topics\",\r\n \"Help\": \"Help\",\r\n \"Rename\": \"Rename\",\r\n \"Reset\": \"Reset\",\r\n \"PAGE_PLAY_OPTIONS_EDITOR\": \"Play Options\",\r\n \"RefLink_Display_Options\": \"Reference Link Options\",\r\n\r\n \"Card_Image_Editor\": \"Image Settings\",\r\n \"Card_Text_Editor\": \"Content Editor\",\r\n \"Card_Order_Editor\": \"Moving to ...\",\r\n \"Copied2Clipboard\": \"Copied to clipboard\",\r\n \"Prompt_Role_Editor\": \"Customized Roles\",\r\n \"Prompt_Site_Editor\": \"Web Search Settings\",\r\n \"Prompt_Site_List\": \"Specified Site Search\",\r\n \"ActionFlow_Editor\": \"Search Workflow Editor\",\r\n \"Note_Title\": \"Title\",\r\n \"Note_Content\": \"Content\",\r\n \"Note_RefLinks\": \"Reference Links\",\r\n \"New_Blank_Memo\": \"Memo\",\r\n \"New_Bookmark\": \"Bookmark\",\r\n \"New_Blank_Group\": \"New Group\",\r\n \"New_Blank_Slide\": \"New Slide\",\r\n \"New_Blank_Point\": \"New Point\",\r\n\r\n \"New_Group\": \"New Group\",\r\n\r\n \"Remove_Image\": \"Remove image\",\r\n \"Change_Image\": \"Change\",\r\n \"Add_Image\": \"Add\",\r\n\r\n\r\n \"Home\": \"Home\",\r\n \"My_Idea_Library\":\"My Idea Library\",\r\n \"My_Topics\": \"Topics\",\r\n \"Suggestions\": \"Suggestions\",\r\n \"Related_Topic\": \"Related Topic\",\r\n \"Custom_Slide\": \"Custom Slide\",\r\n \"Custom_Groups\": \"Custom Groups\",\r\n \"Back\": \"Back\",\r\n \"Dive_Route\": \"Dive Route\",\r\n \"Dive_Search\": \"AI + Web Search\",\r\n \"Dive_Deeper\": \"Dive Deeper\",\r\n \"Start_Searching\": \"Start Searching\",\r\n \"Start_Asking\": \"Start Asking AI\",\r\n\r\n\r\n \"Filters\": \"Filters\",\r\n \"QuitFilterMode\": \"Quit Filter Mode\",\r\n \"Default_View\": \"All\",\r\n \"Memo_View\": \"Memo View\",\r\n \"Starred_Items\": \"Playlist\",\r\n \"Unstar\": \"Unstar\",\r\n\r\n \"Memo\": \"Memo\",\r\n \"Issue\": \"Issue\",\r\n \"Doing\": \"Doing\",\r\n \"Review\": \"Review\",\r\n \"Done\": \"Done\",\r\n \"optional\": \"optional\",\r\n\r\n\r\n \"Chat_Box\": \"Chat with AI\",\r\n\r\n \"INPUT_TAB_AI_COPILOT\": \"Chat with AI\",\r\n \"INPUT_TAB_NOTE\": \"Write Memo\",\r\n \"INPUT_TAB_EXTEND\": \"Extend Content\",\r\n\r\n\r\n \"Stop_Loading\": \"Stop Loading\",\r\n\r\n \"AI_Breakdown\": \"Break Down\",\r\n \"AI_Questions\": \"Make Questions\",\r\n \"AI_Analyzing\": \"Think Deeper\",\r\n \"AI_Related\": \"Related Topics\",\r\n\r\n \"Build_New_Content\": \"New content\",\r\n\r\n \"Edit_Title\": \"Edit title\",\r\n\r\n \"Default_Search\": \"Default Web Searching\",\r\n \"Search_Type\": \"Search Type\",\r\n \"ActionFlow_Name\": \"Workflow Name\",\r\n \"Web_Search\": \"Web Search\",\r\n \"Find_More_Like_This\": \"Find More Like This\",\r\n \"Image_Search\": \"Images Only\",\r\n \"News_Search\": \"News Only\",\r\n \"Ask_AI_Only\": \"Ask AI Only\",\r\n \"Ask_AI\": \"Ask AI\",\r\n\r\n \"Show_More_Result\": \"Show More\",\r\n \"Show_Less_Result\": \"Show Less Result\",\r\n \"Continue_Exploring\": \"Continue Exploring\",\r\n \"Generated_Slides\": \"Generated Slides\",\r\n \"Generated_Outline\": \"Generated Outline\",\r\n \"Related_Topics\": \"Related Topics\",\r\n \"Next_Steps\": \"Next Steps\",\r\n \"Reference_Bookmarks\": \"References\",\r\n \"Custom_Slides\": \"Custom Slides\",\r\n \"Custom_Outline\": \"Custom Outline\",\r\n \"Related_Questions\": \"Related Questions\",\r\n\r\n \"More_Search\": \"More ...\",\r\n \"Default_Role\": \"Default Role\",\r\n\r\n \"Submit\": \"Submit\",\r\n \"Cancel\": \"Cancel\",\r\n \"Sign_out\": \"Sign out\",\r\n \"My_Decks\": \"All Decks\",\r\n \"Noname\": \"Noname\",\r\n\r\n \"Credits\": \"Credits\",\r\n \"SubEnd_Date\": \"Valid until\",\r\n \"Manage_Payment\": \"Manage Payment\",\r\n \"Buy_Credits\": \"Buy Credits\",\r\n\r\n \"BYO Free Plan\": \"BYO Free Plan\",\r\n\r\n },\r\n fr: {\r\n messages: {\r\n \"hello\": 'Bonjour le monde'\r\n }\r\n }\r\n // ... add other languages here\r\n};\r\n\r\nconst i18n = createI18n({\r\n locale: 'en', // set the default locale\r\n messages,\r\n});\r\n\r\n\r\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n// @ts-ignore\r\n//cwrn(i18n);\r\n\r\nexport default i18n;\r\n\r\n\r\n","// @TS-NOCHECK\r\n\r\nimport {\r\n IFC_AIManager,\r\n IFC_AIPrompt_Provider, IFC_CommandManager,\r\n IFC_PageTemplateManager,\r\n IFC_SERPManager,\r\n IFC_StorageManager,\r\n IFC_UserContentManager\r\n} from \"../_20.def/managerIFs\";\r\nimport {\r\n GUID_TYPE,\r\n IFC_OptionsForAskAI,\r\n IFC_Page_Column,\r\n IFC_Page_Data,\r\n IFC_Page_Section, IFC_ResultsFromSCRAPE,\r\n IFC_SERPItem\r\n} from \"../_20.def/dataTypes\";\r\nimport {\r\n TYPE_AI_ACTION,\r\n TYPE_EVENT,\r\n TYPE_FILTER_CODE,\r\n TYPE_ID_LOCAL_APP_DB,\r\n TYPE_INDEX_SIDEBAR,\r\n TYPE_INPUT_COMMAND,\r\n TYPE_NOTE_SOURCE,\r\n TYPE_SECTION\r\n} from \"../_20.def/_modDataDict\";\r\nimport {reactive} from 'vue';\r\n\r\nimport {lockResultPageUI, UIS, unlockResultPageUI} from \"@/codes/_10.sys/UICommittee\"\r\nimport {defaultNewPageData} from \"@/codes/_30.biz/monDefaultPageTemplate\";\r\nimport {SYSS} from \"@/codes/_10.sys/A0Committee\";\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\nimport {ElNotification} from \"element-plus\";\r\n\r\n\r\ndeclare var window: any;\r\n\r\nvar appAIManager: IFC_AIManager = window.appAIManager;\r\nvar appStorageManager: IFC_StorageManager = window.appStorageManager;\r\nvar appSERPManager: IFC_SERPManager = window.appSERPManager;\r\nvar appPromptProvider: IFC_AIPrompt_Provider = window.appPromptProvider;\r\n\r\nvar appPageTemplateManager: IFC_PageTemplateManager = window.appPageTemplateManager;\r\nvar appCommandManager: IFC_CommandManager = window.appCommandManager;\r\n\r\nvar appUserContentManager: IFC_UserContentManager = {};\r\n\r\ndeclare var moveElementAfter: any;\r\ndeclare var insertAfterID: any;\r\n\r\nwindow.appUserContentManager = appUserContentManager = {};\r\n\r\nappUserContentManager.allUserContentPages = reactive({});\r\nappUserContentManager.editingPageSection = reactive({\r\n sectionBodyText: \"\",\r\n sectionTitle: \"\",\r\n});\r\n\r\n\r\nappUserContentManager.copyText2Clipboard = async function (xCopiedText) {\r\n try {\r\n await navigator.clipboard.writeText(xCopiedText);\r\n\r\n ElNotification({\r\n title: i18n.global.t(\"Copied2Clipboard\"),\r\n message: '',\r\n type: 'success',\r\n })\r\n\r\n } catch (e) {\r\n console.error(e);\r\n }\r\n}\r\n\r\nappUserContentManager.insertPageSectionsToPosition = function (xPageGUID, xPageSectionsToInsert, xPositionIndex, xParentPageSectionGUID) {\r\n // * init\r\n cwrn(\"*2inst\", xPageSectionsToInsert);\r\n let zPageGUID = nz(xPageGUID, chance.guid());\r\n if (!appUserContentManager.allUserContentPages[zPageGUID]) appUserContentManager.allUserContentPages[zPageGUID] = {};\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zPageGUID];\r\n zPageItem._GUID = zPageGUID;\r\n\r\n let zAllPageSections = nz(zPageItem.pageSections, []);\r\n\r\n let zPageSectionsToInsert = nz(xPageSectionsToInsert, []);\r\n if (!zPageSectionsToInsert.length) return;\r\n let zPositionIndex = nz(xPositionIndex, 0);\r\n let zParentPageSectionGUID = nz(xParentPageSectionGUID, \"\");\r\n\r\n _.each(zPageSectionsToInsert, function (xPageSectionToInsert: IFC_Page_Section) {\r\n xPageSectionToInsert._parentSectionGUID = zParentPageSectionGUID;\r\n });\r\n\r\n zAllPageSections.splice(zPositionIndex + 1, 0, ...zPageSectionsToInsert);\r\n\r\n appUserContentManager.renderAllSectionsInPage(zPageGUID);\r\n appUserContentManager.savePageData(zPageGUID);\r\n\r\n if (zPageSectionsToInsert[0]) {\r\n let zFirstPageSectionGUID = nz(zPageSectionsToInsert[0], {})._GUID;\r\n\r\n setTimeout(function () {\r\n appUserContentManager.scrollPageTo(zFirstPageSectionGUID, \"center\");\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex,\r\n zFirstPageSectionGUID,\r\n nz(zPageSectionsToInsert[0]._headerSectionGUID, zFirstPageSectionGUID));\r\n }, 400);\r\n }\r\n\r\n\r\n}\r\n\r\nappUserContentManager.movePageSectionsAfterTargetPageSection = function (xPageGUID, xSourcePageSection, xTargetPageSection) {\r\n // * init\r\n let zPageGUID = nz(xPageGUID, UIS.currentUserContentPageGUID);\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zPageGUID];\r\n if (!zPageItem) return;\r\n\r\n let zAllPageSections = zPageItem.pageSections;\r\n let zSourcePageSectionIndex = _.findIndex(zAllPageSections, {_GUID: xSourcePageSection._GUID});\r\n let zTargetPageSectionIndex = _.findIndex(zAllPageSections, {_GUID: xTargetPageSection._GUID});\r\n if (zTargetPageSectionIndex < 0) return;\r\n moveElementAfter(zPageItem.pageSections, zSourcePageSectionIndex, zTargetPageSectionIndex);\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, xSourcePageSection._GUID, xSourcePageSection._headerSectionGUID);\r\n appUserContentManager.scrollPageTo(xSourcePageSection._GUID, \"center\");\r\n appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\r\n}\r\n\r\nappUserContentManager.upsertPageSectionsFromAIPlusSearch = async function (xPageGUID, xHeaderGUID, xAskAIOptions, xExtOptions) {\r\n // * init\r\n let zPageSectionGUIDs2Translate = [];\r\n if (!xAskAIOptions) return cerr(\"*mis aiopts\");\r\n let zAskAIOptions: IFC_OptionsForAskAI = _.clone(xAskAIOptions);\r\n let zUserMessage = zAskAIOptions.userMessage;\r\n\r\n let zPageGUID = nz(xPageGUID, chance.guid());\r\n if (!appUserContentManager.allUserContentPages[zPageGUID]) appUserContentManager.allUserContentPages[zPageGUID] = {};\r\n\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zPageGUID];\r\n zPageItem._GUID = zPageGUID;\r\n zPageItem.fromAISessionGUID = nz(zAskAIOptions.fromAISessionGUID, chance.guid());\r\n zAskAIOptions._GUID = zPageItem.fromAISessionGUID;\r\n\r\n UIS.currentUserContentPageGUID = zPageGUID;\r\n\r\n zAskAIOptions.systemMessage = \"\"; // decided by AI Action type\r\n\r\n // * excluding content\r\n appPromptProvider.excludingContentArrayString = \"\";\r\n let zExcludingContentArray = appUserContentManager.getSectionTitles4AIAction();\r\n if (zExcludingContentArray && zExcludingContentArray.length) {\r\n appPromptProvider.excludingContentArrayString = JSON.stringify(zExcludingContentArray);\r\n /*if (appPromptProvider.excludingContentArrayString.startsWith(\"[\")) {\r\n appPromptProvider.excludingContentArrayString = appPromptProvider.excludingContentArrayString.substring(1);\r\n }\r\n if (appPromptProvider.excludingContentArrayString.endsWith(\"]\")) {\r\n appPromptProvider.excludingContentArrayString = appPromptProvider.excludingContentArrayString.substring(0, appPromptProvider.excludingContentArrayString.length - 1);\r\n }*/\r\n }\r\n\r\n // * including context\r\n appPromptProvider.includingContextArrayString = \"\";\r\n let zIncludingContextArray = appUserContentManager.getPageColumnTitles4AIAction();\r\n if (zIncludingContextArray && zIncludingContextArray.length) {\r\n appPromptProvider.includingContextArrayString = JSON.stringify(zIncludingContextArray);\r\n }\r\n\r\n // * nearest parent section context\r\n appPromptProvider.nearestParentContentTextString = \"\";\r\n let zParentPageSectionGUID = appUserContentManager.getCurrentPageColumnParentPageSectionGUID();\r\n if (zParentPageSectionGUID) {\r\n let zParentPageSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zParentPageSectionGUID);\r\n if (zParentPageSection && zParentPageSection.sectionBodyTextLess) {\r\n appPromptProvider.nearestParentContentTextString = nz(zParentPageSection.sectionTitle, \"\") + \". \" + zParentPageSection.sectionBodyTextLess;\r\n }\r\n }\r\n\r\n // * existing text content\r\n appPromptProvider.existingContentTextString = \"\";\r\n if (xAskAIOptions.existingContent) {\r\n appPromptProvider.existingContentTextString = xAskAIOptions.existingContent;\r\n }\r\n\r\n\r\n // * add SERP Context\r\n appPromptProvider.SERPContextString = \"\";\r\n let zFollowupQuestions = nz(xAskAIOptions.followupQuestions, [zUserMessage, zUserMessage]);\r\n\r\n // let zKnowledgeSupplyArray = [];\r\n\r\n let zSERPReturnDataArray = [];\r\n\r\n window.emitter.emit(TYPE_EVENT.SERP_START);\r\n lockResultPageUI();\r\n\r\n let zCallingQueryFuncs = [];\r\n let zImageSearchingQueryString = \"\";\r\n\r\n\r\n let zI = 0;\r\n\r\n\r\n appSERPManager.givenWebsiteNames = nz(appSERPManager.givenWebsiteNames, []);\r\n while (appSERPManager.givenWebsiteNames.length < zFollowupQuestions.length) {\r\n appSERPManager.givenWebsiteNames.push(appSERPManager.givenWebsiteNames[0]);\r\n }\r\n\r\n _.each(appSERPManager.givenWebsiteNames, function (xWebsiteName: string) {\r\n let zFollowupQuestionsIndex = zI % zFollowupQuestions.length;\r\n zI++;\r\n\r\n let zFollowupQuestion = nz(zFollowupQuestions[zFollowupQuestionsIndex], \"\").trim();\r\n let zSearchOptions = {q: zFollowupQuestion}\r\n if (zFollowupQuestion) {\r\n\r\n if (xExtOptions) {\r\n zSearchOptions = _.extend(zSearchOptions, xExtOptions);\r\n }\r\n /*if (zFollowupQuestion.startsWith(\"--img--\")) {\r\n zCallingQueryFuncs.push(appSERPManager.getSERPResult({q: zFollowupQuestion, type: \"images\"}));\r\n\r\n } else if (zFollowupQuestion.startsWith(\"--news--\")) {\r\n zCallingQueryFuncs.push(appSERPManager.getSERPResult({q: zFollowupQuestion, type: \"news\"}));\r\n } else {\r\n zCallingQueryFuncs.push(appSERPManager.getSERPResult({q: zFollowupQuestion}));\r\n }*/\r\n if (xWebsiteName) {\r\n zSearchOptions.sites = [xWebsiteName];\r\n }\r\n zCallingQueryFuncs.push(appSERPManager.getSERPResult(zSearchOptions));\r\n cwrn(\"*zSOpt\", zSearchOptions);\r\n }\r\n\r\n\r\n });\r\n\r\n try {\r\n let zResultsFromSERPER = await Promise.all(zCallingQueryFuncs);\r\n // if (zResultFromEXA) zSERPReturnDataArray.push(zResultFromEXA);\r\n /*if (zResultFromSERPER_A) zSERPReturnDataArray.push(zResultFromSERPER_A);\r\n if (zResultFromSERPER_B) zSERPReturnDataArray.push(zResultFromSERPER_B);\r\n if (zResultFromSERPER_C) zSERPReturnDataArray.push(zResultFromSERPER_C);\r\n if (zResultFromSERPER_D) zSERPReturnDataArray.push(zResultFromSERPER_D);\r\n if (zResultFromSERPER_E) zSERPReturnDataArray.push(zResultFromSERPER_E);*/\r\n _.each(zResultsFromSERPER, function (xResultFromSERPER) {\r\n if (xResultFromSERPER) {\r\n zSERPReturnDataArray.push(xResultFromSERPER);\r\n }\r\n });\r\n } catch (error) {\r\n console.error(error);\r\n }\r\n\r\n // cerr(\"*spary\", xAskAIOptions,zSERPResDataArray);\r\n let zSERPResItemArray: IFC_SERPItem[] = [];\r\n _.each(zSERPReturnDataArray, function (xSERPReturnData) {\r\n\r\n if (!xSERPReturnData) return;\r\n\r\n let zSERPData = {};\r\n if (xSERPReturnData && xSERPReturnData.res) {\r\n zSERPData = xSERPReturnData.res;\r\n zSERPResItemArray = _.union(zSERPResItemArray, appSERPManager.parseSERPData2ResItemArray(zSERPData));\r\n }\r\n\r\n });\r\n // cwrn(\"*srpitmary\",zSERPResItemArray);\r\n\r\n\r\n // * Insert SERP results to Sections\r\n let zPageSections2Insert: IFC_Page_Section[] = [];\r\n let zCurrentSelectedPageHeaderSectionGUID = xHeaderGUID;\r\n let zSelectedPageSectionIndex = appUserContentManager.getCurrentSelectedPageSectionIndex();\r\n\r\n // * Init uniq titles and links\r\n let zUniqLinks: string[] = [];\r\n let zUniqTitles: string[] = [];\r\n\r\n // cwrn(\"*xSPR Itemsx1\",zSERPReturnDataArray);\r\n _.each(zSERPResItemArray, function (xSERPResItem: IFC_SERPItem, xIndex) {\r\n // cwrn(\"*xSPR Item\",xSERPResItem);\r\n let zTitle = nz(xSERPResItem.question, xSERPResItem.title);\r\n if (xSERPResItem) {\r\n\r\n // ** Deduplication\r\n if (xSERPResItem.link) {\r\n if (_.includes(zUniqLinks, xSERPResItem.link)) return;\r\n zUniqLinks.push(xSERPResItem.link);\r\n }\r\n\r\n if (zTitle) {\r\n if (_.includes(zUniqTitles, zTitle)) {\r\n if (!xSERPResItem.link) return;\r\n }\r\n zUniqTitles.push(zTitle);\r\n }\r\n\r\n // ** Insertion\r\n xSERPResItem.index = xIndex + 1;\r\n let zFlagCode = xSERPResItem.flagCode;\r\n let zNewPageSectionGUID = chance.guid();\r\n zPageSections2Insert.push({\r\n _GUID: zNewPageSectionGUID,\r\n _headerSectionGUID: zCurrentSelectedPageHeaderSectionGUID,\r\n sectionType: TYPE_SECTION.NOTE_CARD,\r\n sectionTitle: zTitle,\r\n sectionBodyText: nz(xSERPResItem.snippet, \"\"),\r\n refLinkAllString: nz(xSERPResItem.link, \"\"),\r\n flagCode: nz(zFlagCode, \"\"),\r\n sectionSourceType: nz(xSERPResItem.sourceType, TYPE_NOTE_SOURCE.WEB_DEFAULT),\r\n publishedDate: nz(xSERPResItem.publishedDate, \"\"),\r\n coverImageURL: nz(xSERPResItem.imageUrl, \"\"),\r\n });\r\n\r\n // ** prepare for translation queue\r\n if (xSERPResItem.sourceType == TYPE_NOTE_SOURCE.WEB_EXA) {\r\n zPageSectionGUIDs2Translate.push(zNewPageSectionGUID);\r\n }\r\n\r\n\r\n }\r\n\r\n })\r\n\r\n // cerr(\"*spary2\", zPageSections2Insert,zSelectedPageSectionIndex,zCurrentSelectedPageHeaderSectionGUID);\r\n if (zPageSections2Insert.length) {\r\n let zParentSectionGUID = appUserContentManager.getCurrentPageColumnParentPageSectionGUID();\r\n appUserContentManager.insertPageSectionsToPosition(UIS.currentUserContentPageGUID,\r\n zPageSections2Insert,\r\n zSelectedPageSectionIndex,\r\n zParentSectionGUID\r\n );\r\n appUserContentManager.renderAllSectionsInPage(UIS.currentUserContentPageGUID);\r\n }\r\n\r\n\r\n // * call askAI For MarkdownReply\r\n\r\n zAskAIOptions.SERPItemArray = zSERPResItemArray;\r\n // cerr(\"*spary\", zSERPResItemArray);\r\n\r\n\r\n if (zSERPResItemArray.length) {\r\n appPromptProvider.SERPContextString += \"\\n\" + JSON.stringify(zSERPResItemArray);\r\n }\r\n\r\n window.emitter.emit(TYPE_EVENT.SERP_DONE)\r\n\r\n}\r\n\r\nappUserContentManager.upsertPageSectionsFromWebPageScrape = async function (xPageGUID, xHeaderGUID, xAskAIOptions, xExtOptions) {\r\n // * init\r\n if (!xAskAIOptions) return cerr(\"*mis aiopts\");\r\n let zAskAIOptions: IFC_OptionsForAskAI = _.clone(xAskAIOptions);\r\n if (!zAskAIOptions.userMessage) return cerr(\"*mis url in usrmsg\");\r\n let zURLs = zAskAIOptions.userMessage.split(\"\\n\");\r\n\r\n let zPageGUID = nz(xPageGUID, chance.guid());\r\n if (!appUserContentManager.allUserContentPages[zPageGUID]) appUserContentManager.allUserContentPages[zPageGUID] = {};\r\n\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zPageGUID];\r\n zPageItem._GUID = zPageGUID;\r\n zPageItem.fromAISessionGUID = nz(zAskAIOptions.fromAISessionGUID, chance.guid());\r\n zAskAIOptions._GUID = zPageItem.fromAISessionGUID;\r\n\r\n UIS.currentUserContentPageGUID = zPageGUID;\r\n\r\n zAskAIOptions.systemMessage = \"\"; // decided by AI Action type\r\n appUserContentManager.tempRefLinkAllString = \"\";\r\n\r\n // let zKnowledgeSupplyArray = [];\r\n\r\n let zSERPResItemArray = [];\r\n\r\n window.emitter.emit(TYPE_EVENT.SCRP_START);\r\n lockResultPageUI();\r\n\r\n let zCallingQueryFuncs = [];\r\n\r\n\r\n _.each(zURLs, function (xURL: string) {\r\n if (!xURL) return;\r\n let zURL = xURL.trim();\r\n let zURL_Low = zURL.toLowerCase();\r\n if (!zURL) return;\r\n if (zURL_Low.startsWith(\"http://\") || zURL_Low.startsWith(\"https://\")) {\r\n zCallingQueryFuncs.push(appSERPManager.getSCRAPEResult({URL: zURL}));\r\n appUserContentManager.tempRefLinkAllString += zURL + \"\\n\";\r\n }\r\n\r\n });\r\n\r\n try {\r\n let zResultsFromSERPER = await Promise.all(zCallingQueryFuncs);\r\n _.each(zResultsFromSERPER, function (xResultFromSCRAPE: any) {\r\n if (xResultFromSCRAPE) {\r\n\r\n let zScrapeRes: IFC_ResultsFromSCRAPE = nz(xResultFromSCRAPE.res, {});\r\n let zSERPResItem: Partial = {};\r\n\r\n zSERPResItem.link = xResultFromSCRAPE.sourceURL;\r\n zSERPResItem.snippet = nz(nz(zScrapeRes?.markdown, \"\"), nz(zScrapeRes?.text, \"\"));\r\n if (zScrapeRes.metadata) {\r\n zSERPResItem.title = zScrapeRes.metadata[\"title\"];\r\n zSERPResItem.imageUrl = nz(zScrapeRes.metadata[\"og:image\"], \"\");\r\n if (zSERPResItem.imageUrl?.indexOf(\"://\") < 0) {\r\n zSERPResItem.imageUrl = \"https://\" + zSERPResItem.imageUrl;\r\n }\r\n }\r\n\r\n\r\n zSERPResItemArray.push(zSERPResItem);\r\n }\r\n });\r\n } catch (error) {\r\n console.error(error);\r\n }\r\n // cwrn(\"*srpitmary\",zSERPResItemArray);\r\n\r\n\r\n // * Insert SERP results to Sections\r\n let zPageSections2Insert: IFC_Page_Section[] = [];\r\n let zCurrentSelectedPageHeaderSectionGUID = xHeaderGUID;\r\n let zSelectedPageSectionIndex = appUserContentManager.getCurrentSelectedPageSectionIndex();\r\n\r\n // * Init uniq titles and links\r\n let zUniqLinks: string[] = [];\r\n let zUniqTitles: string[] = [];\r\n\r\n // cwrn(\"*xSPR Itemsx1\",zSERPReturnDataArray);\r\n _.each(zSERPResItemArray, function (xSERPResItem: IFC_SERPItem, xIndex) {\r\n // cwrn(\"*xSPR Item\",xSERPResItem);\r\n let zTitle = nz(xSERPResItem.question, xSERPResItem.title);\r\n if (xSERPResItem) {\r\n\r\n // ** Deduplication\r\n if (xSERPResItem.link) {\r\n if (_.includes(zUniqLinks, xSERPResItem.link)) return;\r\n zUniqLinks.push(xSERPResItem.link);\r\n }\r\n\r\n if (zTitle) {\r\n if (_.includes(zUniqTitles, zTitle)) {\r\n if (!xSERPResItem.link) return;\r\n }\r\n zUniqTitles.push(zTitle);\r\n }\r\n\r\n // ** Insertion\r\n xSERPResItem.index = xIndex + 1;\r\n let zFlagCode = TYPE_FILTER_CODE.ORANGE;\r\n let zNewPageSectionGUID = chance.guid();\r\n zPageSections2Insert.push({\r\n _GUID: zNewPageSectionGUID,\r\n _headerSectionGUID: zCurrentSelectedPageHeaderSectionGUID,\r\n sectionType: TYPE_SECTION.NOTE_CARD,\r\n sectionTitle: zTitle,\r\n sectionBodyText: nz(xSERPResItem.snippet, \"\"),\r\n refLinkAllString: nz(xSERPResItem.link, \"\"),\r\n flagCode: nz(zFlagCode, \"\"),\r\n sectionSourceType: nz(xSERPResItem.sourceType, TYPE_NOTE_SOURCE.WEB_DEFAULT),\r\n publishedDate: nz(xSERPResItem.publishedDate, \"\"),\r\n coverImageURL: nz(xSERPResItem.imageUrl, \"\"),\r\n });\r\n\r\n }\r\n\r\n })\r\n\r\n // cerr(\"*spary2\", zPageSections2Insert,zSelectedPageSectionIndex,zCurrentSelectedPageHeaderSectionGUID);\r\n if (zPageSections2Insert.length) {\r\n let zParentSectionGUID = appUserContentManager.getCurrentPageColumnParentPageSectionGUID();\r\n appUserContentManager.insertPageSectionsToPosition(UIS.currentUserContentPageGUID,\r\n zPageSections2Insert,\r\n zSelectedPageSectionIndex,\r\n zParentSectionGUID\r\n );\r\n appUserContentManager.renderAllSectionsInPage(UIS.currentUserContentPageGUID);\r\n }\r\n\r\n\r\n // * call askAI For MarkdownReply\r\n\r\n zAskAIOptions.SERPItemArray = zSERPResItemArray;\r\n // cerr(\"*spary\", zSERPResItemArray);\r\n\r\n\r\n if (zSERPResItemArray.length) {\r\n appPromptProvider.SERPContextString += \"\\n\" + JSON.stringify(zSERPResItemArray);\r\n }\r\n\r\n window.emitter.emit(TYPE_EVENT.SCRP_DONE)\r\n\r\n\r\n}\r\n\r\nappUserContentManager.upsertPageSectionsFromAIReply = async function (xPageGUID, xHeaderGUID, xAskAIOptions) {\r\n cwrn(\"*airply\")\r\n //\r\n // * init\r\n if (!xAskAIOptions) return cerr(\"*mis aiopts\");\r\n let zAskAIOptions: IFC_OptionsForAskAI = _.clone(xAskAIOptions);\r\n let zUserMessage = zAskAIOptions.userMessage;\r\n\r\n let zPageGUID = nz(xPageGUID, chance.guid());\r\n if (!appUserContentManager.allUserContentPages[zPageGUID]) appUserContentManager.allUserContentPages[zPageGUID] = {};\r\n\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zPageGUID];\r\n zPageItem._GUID = zPageGUID;\r\n zPageItem.fromAISessionGUID = nz(zAskAIOptions.fromAISessionGUID, chance.guid());\r\n zAskAIOptions._GUID = zPageItem.fromAISessionGUID;\r\n\r\n UIS.currentUserContentPageGUID = zPageGUID;\r\n\r\n zAskAIOptions.systemMessage = \"\"; // decided by AI Action type\r\n\r\n // * excluding content\r\n appPromptProvider.excludingContentArrayString = \"\";\r\n let zExcludingContentArray = appUserContentManager.getSectionTitles4AIAction();\r\n if (zExcludingContentArray && zExcludingContentArray.length) {\r\n appPromptProvider.excludingContentArrayString = JSON.stringify(zExcludingContentArray);\r\n /*if (appPromptProvider.excludingContentArrayString.startsWith(\"[\")) {\r\n appPromptProvider.excludingContentArrayString = appPromptProvider.excludingContentArrayString.substring(1);\r\n }\r\n if (appPromptProvider.excludingContentArrayString.endsWith(\"]\")) {\r\n appPromptProvider.excludingContentArrayString = appPromptProvider.excludingContentArrayString.substring(0, appPromptProvider.excludingContentArrayString.length - 1);\r\n }*/\r\n }\r\n\r\n // * including context\r\n appPromptProvider.includingContextArrayString = \"\";\r\n let zIncludingContextArray = appUserContentManager.getPageColumnTitles4AIAction();\r\n if (zIncludingContextArray && zIncludingContextArray.length) {\r\n appPromptProvider.includingContextArrayString = JSON.stringify(zIncludingContextArray);\r\n }\r\n\r\n // * nearest parent section context\r\n appPromptProvider.nearestParentContentTextString = \"\";\r\n let zParentPageSectionGUID = appUserContentManager.getCurrentPageColumnParentPageSectionGUID();\r\n if (zParentPageSectionGUID) {\r\n let zParentPageSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zParentPageSectionGUID);\r\n if (zParentPageSection && zParentPageSection.sectionBodyTextLess) {\r\n appPromptProvider.nearestParentContentTextString = nz(zParentPageSection.sectionTitle, \"\") + \". \" + zParentPageSection.sectionBodyTextLess;\r\n }\r\n }\r\n\r\n // * existing text content\r\n appPromptProvider.existingContentTextString = \"\";\r\n if (xAskAIOptions.existingContent) {\r\n appPromptProvider.existingContentTextString = xAskAIOptions.existingContent;\r\n }\r\n\r\n\r\n // * add SERP Context\r\n appPromptProvider.SERPContextString = \"\";\r\n\r\n lockResultPageUI();\r\n await appAIManager.askAIForMarkdownReply(zAskAIOptions);\r\n unlockResultPageUI();\r\n\r\n}\r\n\r\nappUserContentManager.upsertPageSectionsByMoreLikeThis = async function (xPageGUID, xTargetPageSection) {\r\n // * init\r\n if (!xTargetPageSection) return console.log(\"*mis sc\");\r\n if (!xTargetPageSection.sectionTitle) return console.log(\"*mis sc ttl\");\r\n\r\n let zAskAIOptions: IFC_OptionsForAskAI = _.clone({\r\n AIActionType: TYPE_AI_ACTION.ForMoreLikeThis,\r\n });\r\n\r\n let zPageGUID = nz(xPageGUID, UIS.currentUserContentPageGUID);\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zPageGUID];\r\n zPageItem.fromAISessionGUID = nz(zAskAIOptions.fromAISessionGUID, chance.guid());\r\n zAskAIOptions._GUID = zPageItem.fromAISessionGUID;\r\n\r\n zAskAIOptions.systemMessage = \"\"; // decided by AI Action type\r\n\r\n // * excluding content\r\n appPromptProvider.excludingContentArrayString = \"\";\r\n let zExcludingContentArray = appUserContentManager.getSectionTitles4AIAction(UIS.currentUserContentPageGUID, xTargetPageSection._headerSectionGUID);\r\n if (zExcludingContentArray && zExcludingContentArray.length) {\r\n appPromptProvider.excludingContentArrayString = JSON.stringify(zExcludingContentArray);\r\n cwrn(\"*exc ttl\", appPromptProvider.excludingContentArrayString)\r\n }\r\n\r\n let zHeaderPageSection: IFC_Page_Section = nz(appUserContentManager.getSection(UIS.currentUserContentPageGUID, xTargetPageSection._headerSectionGUID), {});\r\n let zTopicTitle = zHeaderPageSection.sectionTitle;\r\n // cerr(\"*ztpc ttl\",zTopicTitle,xTargetPageSection._headerSectionGUID);\r\n\r\n // * More Like This\r\n\r\n let zTopicContent = \"\";\r\n zTopicContent += \"## \" + nz(xTargetPageSection.sectionTitle, \"Noname\") + \"\\n\" +\r\n xTargetPageSection.sectionBodyText;\r\n\r\n zAskAIOptions.userMessage = \"\";\r\n\r\n if (zTopicTitle) {\r\n zAskAIOptions.userMessage += appPromptProvider.moreLikeThisScopePrompt + zTopicTitle + \"\\n ---- \\n\";\r\n }\r\n zAskAIOptions.userMessage += appPromptProvider.moreLikeThisTopicPrompt + zTopicContent + \"\\n ---- \\n\";\r\n\r\n // * call askAI For MarkdownReply\r\n await appAIManager.askAIForMarkdownReply(zAskAIOptions);\r\n\r\n\r\n // await appAIManager.askAIForMarkdownReply(xAskAIOption);\r\n // await appAIManager.askAIForMarkdownReply(xAskAIOption);\r\n\r\n}\r\n\r\nappUserContentManager.upsertFollowupsFromAskAI = async function (xAskAIOptions) {\r\n // * init\r\n if (!xAskAIOptions) return cerr(\"*mis aiopts\");\r\n let zAskAIOptions: IFC_OptionsForAskAI = _.clone(xAskAIOptions);\r\n\r\n zAskAIOptions._GUID = nz(zAskAIOptions._GUID, chance.guid());\r\n\r\n zAskAIOptions.systemMessage = \"\"; // decided by AI Action type\r\n\r\n // * excluding content\r\n appPromptProvider.excludingContentArrayString = \"\";\r\n\r\n // * including content\r\n appPromptProvider.includingContextArrayString = \"\";\r\n let zIncludingContextArray = appUserContentManager.getPageColumnTitles4AIAction();\r\n if (zIncludingContextArray && zIncludingContextArray.length) {\r\n appPromptProvider.includingContextArrayString = JSON.stringify(zIncludingContextArray);\r\n }\r\n\r\n // * nearest parent section context\r\n appPromptProvider.nearestParentContentTextString = \"\";\r\n let zParentPageSectionGUID = appUserContentManager.getCurrentPageColumnParentPageSectionGUID();\r\n if (zParentPageSectionGUID) {\r\n let zParentPageSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zParentPageSectionGUID);\r\n if (zParentPageSection && zParentPageSection.sectionBodyTextLess) {\r\n appPromptProvider.nearestParentContentTextString = nz(zParentPageSection.sectionTitle, \"\") + \". \" + zParentPageSection.sectionBodyTextLess;\r\n }\r\n }\r\n\r\n // * call askAI For Text Options Reply\r\n await appAIManager.askAIForTextOptionsReply(zAskAIOptions);\r\n\r\n\r\n}\r\n\r\n\r\n/*appUserContentManager.upsertPageSectionsFromUserInput = async function (xPageGUID, xUserInputString) {\r\n let zUserInputString = nz(xUserInputString, \"\").trim();\r\n\r\n let zPageGUID = nz(xPageGUID, chance.guid());\r\n if (!appUserContentManager.allUserContentPages[zPageGUID]) appUserContentManager.allUserContentPages[zPageGUID] = {};\r\n\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zPageGUID];\r\n zPageItem._GUID = zPageGUID;\r\n\r\n UIS.currentUserContentPageGUID = zPageGUID;\r\n\r\n /!*let zSessionItem: IFC_AI_Session = appAIManager.allAISessions[zSessionGUID];\r\n if (!zSessionItem) {\r\n zSessionItem = {};\r\n zSessionItem._GUID = zSessionGUID;\r\n zSessionItem._createdAt = new Date();\r\n zSessionItem.userMessage = zUserInputString;\r\n zSessionItem.returnMessage = \"\"\r\n zSessionItem.status = TYPE_SESSION_STATUS.RUNNING;\r\n zSessionItem.AIActionType = TYPE_AI_ACTION.UserInputWithoutAI;\r\n appAIManager.allAISessions[zSessionGUID] = zSessionItem;\r\n }\r\n if ((!zUserInputString.startsWith(\"## \")) && (!zUserInputString.startsWith(\"# \"))) {\r\n zUserInputString = \"## \" + zUserInputString;\r\n }\r\n zSessionItem.returnMessage = zUserInputString\r\n window.emitter.emit(TYPE_EVENT.AI_GENERATING);\r\n\r\n setTimeout(function () {\r\n zSessionItem.status = TYPE_SESSION_STATUS.FINISHED;\r\n window.emitter.emit(TYPE_EVENT.AI_GEN_DONE);\r\n }, 200);*!/\r\n\r\n}*/\r\n\r\nappUserContentManager.upsertPageByCopyingSourcePage = function (xPageGUID, xSourcePage) {\r\n\r\n lockResultPageUI();\r\n\r\n let zSourcePageItem = _.clone(nz(xSourcePage, {}));\r\n let zPageGUID = nz(xPageGUID, chance.guid());\r\n if (!appUserContentManager.allUserContentPages[zPageGUID]) appUserContentManager.allUserContentPages[zPageGUID] = {};\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zPageGUID];\r\n\r\n _.each(nz(zSourcePageItem.pageSections, []), function (xSection: IFC_Page_Section) {\r\n if (!xSection._GUID) xSection._GUID = chance.guid();\r\n })\r\n\r\n let zOldPageSections = _.clone(zPageItem.pageSections);\r\n _.extend(zPageItem, zSourcePageItem);\r\n zPageItem._GUID = zPageGUID;\r\n zPageItem.fromAISessionGUID = \"\";\r\n _.extend(zPageItem.pageSections, _.union(zPageItem.pageSections, zOldPageSections));\r\n\r\n appUserContentManager.gotoPage(zPageGUID);\r\n\r\n unlockResultPageUI();\r\n\r\n appUserContentManager.savePageData(zPageGUID);\r\n return zPageGUID;\r\n\r\n}\r\n\r\nappUserContentManager.insertBlankPage = function (xTargetPageGUID, xParentSectionGUID) {\r\n\r\n let zSectionNum: number = chance.integer({min: 5, max: 30});\r\n let zDummyPageSections: [IFC_Page_Section] = [];\r\n\r\n /*zDummyPageSections.push({\r\n _GUID: chance.guid(),\r\n _parentSectionGUID: nz(xParentSectionGUID, \"\"),\r\n sectionTitle: \"Welcome to a New Deck\",\r\n sectionBodyText: \"\",\r\n sectionType: TYPE_SECTION.HEADER,\r\n });*/\r\n\r\n let zNewPageGUID = appUserContentManager.upsertPageByCopyingSourcePage(xTargetPageGUID, {\r\n pageTitle: \"New Deck - \" + chance.name(),\r\n pageSections: zDummyPageSections,\r\n }\r\n );\r\n appUserContentManager.savePageData(zNewPageGUID);\r\n\r\n\r\n return zNewPageGUID;\r\n}\r\n\r\nappUserContentManager.insertDummyPage = function (xTargetPageGUID, xParentSectionGUID) {\r\n let zSectionNum: number = chance.integer({min: 5, max: 30});\r\n let zDummyPageSections: [IFC_Page_Section] = [];\r\n\r\n for (let i = 0; i < zSectionNum; i++) {\r\n zDummyPageSections.push({\r\n _GUID: chance.guid(),\r\n _parentSectionGUID: nz(xParentSectionGUID, \"\"),\r\n sectionTitle: \".\" + i + \". \" + chance.address(),\r\n sectionBodyText: chance.paragraph(),\r\n sectionType: TYPE_SECTION.NOTE_CARD,\r\n })\r\n }\r\n\r\n let zNewPageGUID = appUserContentManager.upsertPageByCopyingSourcePage(xTargetPageGUID, {\r\n pageTitle: \"New Page\" + chance.name(),\r\n pageSections: zDummyPageSections,\r\n\r\n }\r\n );\r\n appUserContentManager.savePageData(zNewPageGUID);\r\n\r\n return zNewPageGUID;\r\n}\r\n\r\nappUserContentManager.addSERP2PageSection = async function (xPageSection, xSERPOptions) {\r\n\r\n // cerr(\"*addsrp !!!\");\r\n //* init\r\n let zSERPOptions = {};\r\n let zSERP4ImageOptions = {type: \"images\"};\r\n let zProcessingPageSection = xPageSection;\r\n if (!zProcessingPageSection) return cerr(\"*mis sec\");\r\n if (!xSERPOptions) return;\r\n if (!zProcessingPageSection.SERPItemArray) zProcessingPageSection.SERPItemArray = [];\r\n\r\n\r\n _.extend(zSERPOptions, xSERPOptions);\r\n _.extend(zSERP4ImageOptions, xSERPOptions);\r\n\r\n\r\n /*//!* SERP General\r\n if (!xSERPOptions.type) {\r\n // let zResSERPData = await appSERPManager.getSERPResult(zSERPOptions);\r\n let zResSERPData = await appSERPManager.getSERPResult(zSERPOptions);\r\n zResSERPData = nz(zResSERPData, {});\r\n zResSERPData = nz(zResSERPData.res, {});\r\n zProcessingPageSection.SERPDataArray.push(zResSERPData);\r\n /!*if (zProcessingPageSection.sectionBodyText.length < 500) {\r\n // ** correct answer\r\n if (zResSERPData.answerBox && zResSERPData.answerBox.snippet) {\r\n zProcessingPageSection.sectionBodyText = \"* \"\r\n zProcessingPageSection.sectionBodyText += zResSERPData.answerBox.snippet;\r\n }\r\n }*!/\r\n }\r\n\r\n //!* SERP General\r\n if (xSERPOptions.type == \"EXA\") {\r\n // let zResSERPData = await appSERPManager.getSERPResult(zSERPOptions);\r\n let zResSERPData = await appSERPManager.getEXAResult(zSERPOptions);\r\n zResSERPData = nz(zResSERPData, {});\r\n zResSERPData = nz(zResSERPData.res, {});\r\n zProcessingPageSection.SERPDataArray.push(zResSERPData);\r\n }*/\r\n\r\n //* SERP Images\r\n if (xSERPOptions.type == \"images\") {\r\n // cwrn(\"*srp imgnd?\", zProcessingPageSection.sectionTitle, zProcessingPageSection._isImageNeeded);\r\n if (zProcessingPageSection._isImageNeeded) {\r\n let zResSERPData4Images = await appSERPManager.getSERPResult(zSERP4ImageOptions);\r\n\r\n // cerr(\"*zsimgs x1\",zResSERPData4Images)\r\n if (zResSERPData4Images && zResSERPData4Images.res && zResSERPData4Images.res.images) {\r\n let zSearchedImages = zResSERPData4Images.res.images;\r\n // cerr(\"*zsimgs\",zSearchedImages)\r\n if ((!zProcessingPageSection.coverImageURL) && (zSearchedImages && zSearchedImages.length)) {\r\n\r\n // ** cover image URL\r\n let zSearchedImageInfo = zSearchedImages[0];\r\n if (zSearchedImageInfo) {\r\n // cwrn(\"*srp img\",zSearchedImageInfo);\r\n if (zSearchedImageInfo.imageUrl) {\r\n zProcessingPageSection.coverImageURL = zSearchedImageInfo.imageUrl;\r\n if (zSearchedImageInfo.link) {\r\n zProcessingPageSection.coverImageSourceURL = zSearchedImageInfo.link;\r\n }\r\n }\r\n }\r\n\r\n // ** option image URL\r\n zProcessingPageSection.optionalCoverImageURLs = [];\r\n zProcessingPageSection.optionalCoverImageSourceURLs = [];\r\n\r\n let MAX_OPTIONAL_IMAGE_NUM = 10;\r\n _.each(zSearchedImages, function (xSearchedImageItem, xImageIndex) {\r\n if (xImageIndex >= MAX_OPTIONAL_IMAGE_NUM) return;\r\n if (xSearchedImageItem && xSearchedImageItem.imageUrl) {\r\n zProcessingPageSection.optionalCoverImageURLs.push(xSearchedImageItem.imageUrl);\r\n zProcessingPageSection.optionalCoverImageSourceURLs.push(nz(xSearchedImageItem.link, \"\"));\r\n }\r\n });\r\n\r\n }\r\n\r\n }\r\n\r\n // * Save Page Section\r\n appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\r\n }\r\n }\r\n\r\n\r\n}\r\n\r\nappUserContentManager.addConclusion2Group = async function (xHeaderPageSection, xConclusionOptions) {\r\n\r\n\r\n if (!xHeaderPageSection) return;\r\n let zHeaderPageSection = xHeaderPageSection;\r\n if (!zHeaderPageSection._GUID) return;\r\n\r\n let zSourceText = \"User Query:\"\r\n if (xConclusionOptions?.isFromWebScrape) {\r\n zSourceText = \"\"\r\n } else {\r\n zSourceText += zHeaderPageSection.sectionTitle + \" / \"\r\n + zHeaderPageSection.sectionBodyTextLess\r\n + \"\\n\\n\";\r\n }\r\n\r\n let zPageSections: IFC_Page_Section[] = appUserContentManager.getCurrentPageSections();\r\n let zSourceCount = 0;\r\n _.each(zPageSections, function (xSourcePageSection: IFC_Page_Section) {\r\n if (\r\n (xSourcePageSection.sectionType == TYPE_SECTION.NOTE_CARD)\r\n && (xSourcePageSection._headerSectionGUID == xHeaderPageSection._GUID)\r\n && (xSourcePageSection.flagCode != TYPE_FILTER_CODE.GREEN)\r\n && (xSourcePageSection.flagCode != TYPE_FILTER_CODE.YELLOW)\r\n && (xSourcePageSection.refLinkAllString)\r\n ) {\r\n zSourceText += \"## \" + xSourcePageSection.sectionTitle + \"\\n\"\r\n // + appSERPManager.getHostName(xSourcePageSection.refLink) + \"\\n\" +\r\n + xSourcePageSection.sectionBodyText + \"\\n----\\n\\n\"\r\n ;\r\n zSourceCount++;\r\n }\r\n });\r\n\r\n if (!zSourceCount) return unlockResultPageUI();\r\n\r\n // cwrn(zSourceText);\r\n\r\n\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*sldhdid\",zCurrentSelectedPageHeaderSectionGUID);\r\n appUserContentManager.upsertPageSectionsFromAIReply(\r\n UIS.currentUserContentPageGUID,\r\n zHeaderPageSection._GUID,\r\n {\r\n userMessage: zSourceText,\r\n AIActionType: nz(xConclusionOptions.AIActionType, nz(xConclusionOptions?.AIActionType, TYPE_AI_ACTION.ForConclusion)),\r\n modelType: \"lite\", // for cost\r\n });\r\n\r\n}\r\n\r\nappUserContentManager.translatePageSectionsByGUIDs = async function (xSourcePageSectionGUIDS, xLangCode) {\r\n let zLangCode = nz(xLangCode, \"\");\r\n if (!xSourcePageSectionGUIDS) return cerr(\"*mis sp2trns ids\");\r\n for (const xSourcePageSectionGUID: GUID_TYPE of xSourcePageSectionGUIDS) {\r\n try {\r\n if (xSourcePageSectionGUID) {\r\n let zPageSection2Translate = appUserContentManager.getSection(UIS.currentUserContentPageGUID, xSourcePageSectionGUID);\r\n if (zPageSection2Translate) {\r\n\r\n zPageSection2Translate._statusText = \"Translating ...\";\r\n\r\n let zTranslatedText = await appAIManager.runAITranslateOperation(\r\n \"## \" + zPageSection2Translate.sectionTitle + \"\\n\\n\" + zPageSection2Translate.sectionBodyText, zLangCode);\r\n\r\n if (zTranslatedText.length) {\r\n let zTrnsTilte = zTranslatedText.split(\"\\n\\n\")[0];\r\n let zTrnsBodyText = zTranslatedText.substring(zTrnsTilte.length + 2);\r\n appUserContentManager.updatePageSection(UIS.currentUserContentPageGUID,\r\n zPageSection2Translate._GUID,\r\n {\r\n sectionTranslatedText: zTranslatedText,\r\n // sectionTitle: zTrnsTilte,\r\n // sectionBodyText: zTrnsBodyText,\r\n });\r\n }\r\n // cwrn(\"*trns tt\",zPageSection2Translate.sectionTitle,zPageSection2Translate._GUID,);\r\n }\r\n }\r\n } catch (error) {\r\n console.error(`*err trns ${xSourcePageSectionGUID}:`, error);\r\n }\r\n }\r\n}\r\n\r\nappUserContentManager.resetPageColumn = function (xCurrentPageCoulmnIndex) {\r\n let zCurrentPageCoulmnIndex = nz(xCurrentPageCoulmnIndex, 0);\r\n let zPageColumns: [IFC_Page_Column] = window.PageColumns;\r\n let zScrollTop = 0;\r\n\r\n if (zPageColumns[zCurrentPageCoulmnIndex]) {\r\n zPageColumns.splice(zCurrentPageCoulmnIndex + 1, zPageColumns.length);\r\n zScrollTop = nz(zPageColumns[zCurrentPageCoulmnIndex].scrollTop, 0);\r\n }\r\n UIS.currentUserContentPageColumnIndex = zCurrentPageCoulmnIndex;\r\n\r\n setTimeout(function () {\r\n $(\"#divPageColumnResult_\" + zCurrentPageCoulmnIndex).scrollTop(zScrollTop);\r\n }, 200);\r\n\r\n window.emitter.emit(TYPE_EVENT.PAGE_COLUMN_RESET);\r\n}\r\n\r\nappUserContentManager.scrollPageTo = function (xSelectedPageSectionGUID, xBlockType) {\r\n if (!xSelectedPageSectionGUID) return;\r\n let zCurrentPageCoulmnIndex = UIS.currentUserContentPageColumnIndex;\r\n let zDivPageColumn = document.getElementById(\"divPageColumnResult_\" + zCurrentPageCoulmnIndex);\r\n if (xSelectedPageSectionGUID == 'top') {\r\n zDivPageColumn.scrollTo({top: 0, behavior: \"smooth\"});\r\n } else if (xSelectedPageSectionGUID == 'bottom') {\r\n zDivPageColumn.scrollTo({top: 1000000, behavior: \"smooth\"});\r\n // cwrn(\"*scr btt\");\r\n } else {\r\n const targetPageSectionElement = document.getElementById('divPageSection_' + UIS.currentUserContentPageColumnIndex + '_' + xSelectedPageSectionGUID);\r\n if (targetPageSectionElement) {\r\n targetPageSectionElement.scrollIntoView({behavior: 'instant', block: nz(xBlockType, 'nearest')});\r\n }\r\n }\r\n}\r\n\r\nappUserContentManager.extendPageColumn = function (xCurrentPageCoulmnIndex, xCurrentPageSectionGUID) {\r\n\r\n UIS.ifGoBackAnimation = false;\r\n UIS.ifHideResult4Refreshing = true;\r\n\r\n let zCurrentPageSectionGUID = nz(xCurrentPageSectionGUID, \"\");\r\n let zPageColumns: [IFC_Page_Column] = window.PageColumns;\r\n let zCurrentPageColumnIndex = nz(xCurrentPageCoulmnIndex, 0);\r\n\r\n let zScrollTop = nz($(\"#divPageColumnResult_\" + zCurrentPageColumnIndex).scrollTop(), 0);\r\n if (zPageColumns[zCurrentPageColumnIndex]) {\r\n zPageColumns[zCurrentPageColumnIndex].scrollTop = zScrollTop;\r\n zPageColumns[zCurrentPageColumnIndex].filterCode = UIS.filterCode;\r\n }\r\n\r\n let zSameSectionColumnIndex = -1;\r\n for (let zI = 0; zI < zPageColumns.length; zI++) {\r\n if (zPageColumns[zI].parentPageSectionGUID == zCurrentPageSectionGUID) {\r\n if (zSameSectionColumnIndex < 0) zSameSectionColumnIndex = zI;\r\n }\r\n }\r\n if (zSameSectionColumnIndex >= 0) {\r\n zCurrentPageColumnIndex = zSameSectionColumnIndex;\r\n }\r\n appUserContentManager.resetPageColumn(zCurrentPageColumnIndex);\r\n\r\n let zCurrentPageColumn: IFC_Page_Column = zPageColumns[zCurrentPageColumnIndex];\r\n if (zCurrentPageColumn && (zCurrentPageColumn.parentPageSectionGUID != zCurrentPageSectionGUID)) {\r\n let zNewPageColum: IFC_Page_Column;\r\n zNewPageColum = {\r\n parentPageSectionGUID: zCurrentPageSectionGUID,\r\n currentSelectedPageSectionGUID: \"\",\r\n filterCode: TYPE_FILTER_CODE.NONE,\r\n }\r\n zPageColumns.push(zNewPageColum);\r\n appUserContentManager.resetPageColumn(zPageColumns.length - 1);\r\n setTimeout(function () {\r\n window.emitter.emit(TYPE_EVENT.PAGE_COLUMN_NEW);\r\n }, 100);\r\n }\r\n setTimeout(function () {\r\n UIS.ifHideResult4Refreshing = false;\r\n }, 300);\r\n\r\n}\r\n\r\nappUserContentManager.insertNewCustomSlide2CurrentHeader = function (xPageSectionPart) {\r\n let zCurrentPageColumnFilterGUID = appUserContentManager.getCurrentPageColumnParentPageSectionGUID();\r\n let zPageSections2Insert: Partial[] = [];\r\n let zAllPageSections = appUserContentManager.getCurrentPageSections();\r\n let zCurrentPageColumn: IFC_Page_Column = window.PageColumns[window.PageColumns.length - 1];\r\n if (!zCurrentPageColumn) return;\r\n let zInsertToPageSectionIndex = _.findIndex(zAllPageSections, {_GUID: zCurrentPageColumn.currentSelectedHeaderPageSectionGUID});\r\n\r\n // ** create slide section\r\n let zSlideSectionGUID = chance.guid();\r\n\r\n let zSlideSection: Partial = {\r\n _parentSectionGUID: zCurrentPageColumnFilterGUID,\r\n _headerSectionGUID: nz(appUserContentManager.getCurrentSelectedPageHeaderSectionGUID(), \"\"),\r\n _GUID: zSlideSectionGUID,\r\n _isCustomSection: true,\r\n flagCode: TYPE_FILTER_CODE.YELLOW,\r\n sectionType: TYPE_SECTION.NOTE_CARD,\r\n }\r\n\r\n if (xPageSectionPart) {\r\n _.extend(zSlideSection, xPageSectionPart);\r\n }\r\n\r\n zPageSections2Insert.push(zSlideSection);\r\n\r\n// ** insert slide objects\r\n appUserContentManager.insertPageSectionsToPosition(\r\n UIS.currentUserContentPageGUID, zPageSections2Insert,\r\n zInsertToPageSectionIndex, zCurrentPageColumnFilterGUID\r\n );\r\n setTimeout(function () {\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*zSld\",zSlideSectionGUID);\r\n appUserContentManager.scrollPageTo(zSlideSectionGUID, \"center\");\r\n }, 2200);\r\n\r\n // ** open editor\r\n /*setTimeout(function () {\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, zSlideSectionGUID);\r\n\r\n let zSelectedPageSection: IFC_Page_Section = appUserContentManager.getCurrentSelectedPageSection();\r\n if (zSelectedPageSection && zSelectedPageSection._GUID) {\r\n appUserContentManager.startEditingPageSection(zSelectedPageSection, TYPE_INDEX_SIDEBAR.PAGE_SECTION_TEXT_EDITOR);\r\n setTimeout(function () {\r\n setInputFocus(\"#inputTitle_\" + zSelectedPageSection._GUID);\r\n }, 300);\r\n\r\n // console.error(\"*#inputTitle_\" + zSelectedPageSection._GUID);\r\n }\r\n }, 200);*/\r\n}\r\n\r\nappUserContentManager.selectPageSection = function (xCurrentPageCoulmnIndex, xSelectedPageSectionGUID, xHeaderPageSectionGUID) {\r\n // cerr(\"***slct\",xSelectedPageSectionGUID);\r\n let zSelectedPageSectionGUID = nz(xSelectedPageSectionGUID, \"\");\r\n let zPageColumns: [IFC_Page_Column] = nz(window.PageColumns, []);\r\n let zPageColumn: IFC_Page_Column = zPageColumns[xCurrentPageCoulmnIndex];\r\n\r\n // * select or unselect target\r\n zPageColumn.currentSelectedPageSectionGUID = zSelectedPageSectionGUID;\r\n\r\n if (zPageColumn.currentSelectedHeaderPageSectionGUID != xHeaderPageSectionGUID) {\r\n zPageColumn.currentSelectedHeaderPageSectionGUID = nz(xHeaderPageSectionGUID, \"\");\r\n window.emitter.emit(TYPE_EVENT.HEADER_OPEN_STATE_CHANGED);\r\n // cwrn(\"HEADER_OPEN_STATE_CHANGED\");\r\n }\r\n\r\n /*// * if cancel selection\r\n if (!zSelectedPageSectionGUID){\r\n UIS.ifGoBackAnimation=false;\r\n }*/\r\n\r\n // * Home Column\r\n if (!xCurrentPageCoulmnIndex) {\r\n let zSelectedPageSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zSelectedPageSectionGUID);\r\n if (zSelectedPageSection) {\r\n let zHeaderPageSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zSelectedPageSection._headerSectionGUID);\r\n if (zHeaderPageSection) {\r\n UIS.selectedGroupHeaderTitleInPageColumn0 = nz(zHeaderPageSection.sectionTitle, \"\");\r\n }\r\n } else {\r\n UIS.selectedGroupHeaderTitleInPageColumn0 = \"\";\r\n }\r\n }\r\n\r\n // * scroll to section\r\n if (xSelectedPageSectionGUID && (xSelectedPageSectionGUID == xHeaderPageSectionGUID)) {\r\n setTimeout(function () {\r\n appUserContentManager.scrollPageTo(xSelectedPageSectionGUID, \"nearest\");\r\n }, 100);\r\n }\r\n console.log(\"*pgsec slected\");\r\n\r\n window.emitter.emit(TYPE_EVENT.PAGE_SECTION_SELECTION_CHANGED);\r\n\r\n}\r\n\r\nappUserContentManager.getGroupItemGUIDs = function (xSelectedGUID) {\r\n\r\n let zStarredPageSections: IFC_Page_Section[] = appUserContentManager.getCurrentStarredPageSections();\r\n\r\n\r\n // Find the target item index\r\n const targetIndex = zStarredPageSections.findIndex(item => item._GUID === xSelectedGUID);\r\n if (targetIndex === -1) return []; // Item not found\r\n\r\n const result = [];\r\n let currentIndex;\r\n\r\n // If target item is a header, start from it\r\n if (zStarredPageSections[targetIndex].sectionType == TYPE_SECTION.HEADER) {\r\n currentIndex = targetIndex;\r\n } else {\r\n // If target is not a header, find its header by looking backwards\r\n currentIndex = targetIndex;\r\n while ((currentIndex >= 0) && (!(zStarredPageSections[currentIndex].sectionType == TYPE_SECTION.HEADER))) {\r\n currentIndex--;\r\n }\r\n if (currentIndex < 0) return []; // No header found\r\n }\r\n\r\n // Add header ID\r\n result.push(zStarredPageSections[currentIndex]._GUID);\r\n\r\n // Add all items until next header\r\n currentIndex++;\r\n while (currentIndex < zStarredPageSections.length && (!(zStarredPageSections[currentIndex].sectionType == TYPE_SECTION.HEADER))) {\r\n result.push(zStarredPageSections[currentIndex]._GUID);\r\n currentIndex++;\r\n }\r\n\r\n return result;\r\n}\r\n\r\n\r\nappUserContentManager.getSection = function (xTargetPageGUID, xPageSectionGUID) {\r\n let zTargetPageGUID = nz(xTargetPageGUID, UIS.currentUserContentPageGUID);\r\n let zSectionGUID = nz(xPageSectionGUID, \"\");\r\n if (!zSectionGUID) return;\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zTargetPageGUID];\r\n if (!zPageItem) return;\r\n\r\n return _.find(nz(zPageItem.pageSections, []), {_GUID: zSectionGUID});\r\n}\r\n\r\nappUserContentManager.getSections = function (xPageSectionGUIDs: GUID_TYPE[]): IFC_Page_Section[] {\r\n let zAllPageSections = appUserContentManager.getCurrentPageSections();\r\n let zResSections: IFC_Page_Section[] = [];\r\n _.each(zAllPageSections, function (xPageSection: IFC_Page_Section) {\r\n if (_.includes(xPageSectionGUIDs, xPageSection._GUID)) {\r\n zResSections.push(xPageSection);\r\n }\r\n });\r\n return zResSections;\r\n}\r\n\r\nappUserContentManager.startEditingPageSection = function (xEditingPageSection, xEditorType?) {\r\n if (!xEditingPageSection) return;\r\n UIS.currentIndexSideBarType = nz(xEditorType, TYPE_INDEX_SIDEBAR.PAGE_SECTION_TEXT_EDITOR);\r\n UIS.currentEditingPageSection = xEditingPageSection;\r\n}\r\n\r\nappUserContentManager.askAI4OnePageSection = function (xTargetPageSection) {\r\n /*let zUserMsg = xTargetPageSection.sectionTitle;\r\n appUserContentManager.upsertPageSectionsFromAIPlusSearch(UIS.currentUserContentPageGUID, {\r\n userMessage: zUserMsg,\r\n pageSectionGUID: nz(xTargetPageSection._GUID, \"\"),\r\n existingContent: nz(xTargetPageSection.sectionBodyText),\r\n AIActionType: TYPE_AI_ACTION.ForOneSectionContentAppending,\r\n });*/\r\n}\r\n\r\nappUserContentManager.saveEditingPageSection = function () {\r\n if (UIS.currentEditingPageSection && UIS.currentEditingPageSection._GUID) {\r\n appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\r\n }\r\n}\r\n\r\nappUserContentManager.updatePageSection = function (xTargetPageGUID, xTargetPageSectionGUID, xUpdatingSectionPart) {\r\n let zTargetPageGUID = nz(xTargetPageGUID, UIS.currentUserContentPageGUID);\r\n let zTargetPageSectionGUID = nz(xTargetPageSectionGUID, \"\");\r\n let zPageSection: IFC_Page_Section = appUserContentManager.getSection(zTargetPageGUID, zTargetPageSectionGUID);\r\n if (zPageSection) {\r\n _.extend(zPageSection, xUpdatingSectionPart);\r\n }\r\n appUserContentManager.savePageData(zTargetPageGUID);\r\n}\r\n\r\n\r\nappUserContentManager.updateMultiPageSectionStars = function (xTargetPageGUID, xTargetPageSectionGUIDs, xIsStarred, xIsOperationFromDeck) {\r\n\r\n let zTargetPageGUID = nz(xTargetPageGUID, UIS.currentUserContentPageGUID);\r\n let zTargetPageData = appUserContentManager.allUserContentPages[zTargetPageGUID];\r\n if (!zTargetPageData) return;\r\n\r\n let zTargetPageSectionGUIDs: GUID_TYPE[] = nz(xTargetPageSectionGUIDs, []);\r\n if (!zTargetPageSectionGUIDs.length) return;\r\n\r\n let zLastSelectedStarredItemGUID: GUID_TYPE = \"\";\r\n let zFirstSelectedStarredItemGUID: GUID_TYPE = \"\";\r\n\r\n let zNextAfterSelectedStarredItemGUID: GUID_TYPE = \"\";\r\n if (UIS.selectedStarredPageSectionGUIDs.length) {\r\n zLastSelectedStarredItemGUID = nz(UIS.selectedStarredPageSectionGUIDs[UIS.selectedStarredPageSectionGUIDs.length - 1], \"\");\r\n zFirstSelectedStarredItemGUID = nz(UIS.selectedStarredPageSectionGUIDs[0], \"\");\r\n\r\n if (!xIsOperationFromDeck) {\r\n let zLastSelectedStarredItemIndex = zTargetPageData.starredSectionGUIDs?.indexOf(zLastSelectedStarredItemGUID);\r\n if (zLastSelectedStarredItemIndex >= 0) {\r\n zNextAfterSelectedStarredItemGUID = nz(zTargetPageData.starredSectionGUIDs[zLastSelectedStarredItemIndex + 1], \"\");\r\n }\r\n } else {\r\n let zFirstSelectedStarredItemIndex = zTargetPageData.starredSectionGUIDs?.indexOf(zFirstSelectedStarredItemGUID);\r\n zNextAfterSelectedStarredItemGUID = nz(zTargetPageData.starredSectionGUIDs[zFirstSelectedStarredItemIndex - 1], \"\");\r\n }\r\n\r\n }\r\n\r\n _.each(zTargetPageSectionGUIDs, function (xTargetPageSectionGUID: GUID_TYPE) {\r\n let zPageSection: IFC_Page_Section = appUserContentManager.getSection(zTargetPageGUID, xTargetPageSectionGUID);\r\n if (!zPageSection) return;\r\n\r\n // ** STAR ACTION\r\n if (!xIsStarred) {\r\n zPageSection._isStarred = false;\r\n } else {\r\n zPageSection._isStarred = true;\r\n\r\n // ** add to proper position in StarredItem List\r\n // cerr(\"*ad to lst, zlst\",zLastSelectedStarredItemGUID);\r\n /*if (zLastSelectedStarredItemGUID) {\r\n insertAfterID(zPageSection._GUID, zLastSelectedStarredItemGUID, zTargetPageData.starredSectionGUIDs);\r\n } else {\r\n zTargetPageData.starredSectionGUIDs.unshift(zPageSection._GUID);\r\n }*/\r\n\r\n if (zPageSection.sectionType == TYPE_SECTION.HEADER) {\r\n zTargetPageData.starredSectionGUIDs.push(zPageSection._GUID);\r\n } else {\r\n if (zPageSection._headerSectionGUID) {\r\n let zHeaderSection = appUserContentManager.getSection(zTargetPageGUID, zPageSection._headerSectionGUID);\r\n if (zHeaderSection) {\r\n zHeaderSection._isStarred = true;\r\n let zHeaderPos = zTargetPageData.starredSectionGUIDs?.indexOf(zHeaderSection._GUID);\r\n\r\n if (zHeaderPos >= 0) {\r\n let zLastSelectedStarredSectionGUIDInHeader = \"\";\r\n let zGroupSelectedItems = appUserContentManager.getGroupItemGUIDs(zHeaderSection._GUID);\r\n\r\n if (UIS.selectedStarredPageSectionGUIDs?.length) {\r\n zLastSelectedStarredSectionGUIDInHeader = UIS.selectedStarredPageSectionGUIDs[UIS.selectedStarredPageSectionGUIDs.length - 1];\r\n } else {\r\n zLastSelectedStarredSectionGUIDInHeader = zGroupSelectedItems[zGroupSelectedItems.length - 1];\r\n }\r\n\r\n let zLastSelectedStarredSectionInHeader = appUserContentManager.getSection(zTargetPageGUID, zLastSelectedStarredSectionGUIDInHeader);\r\n if (zLastSelectedStarredSectionInHeader._headerSectionGUID != zHeaderSection._GUID) {\r\n zLastSelectedStarredSectionGUIDInHeader = zGroupSelectedItems[zGroupSelectedItems.length - 1];\r\n }\r\n\r\n if (zLastSelectedStarredSectionGUIDInHeader) {\r\n insertAfterID(zPageSection._GUID, zLastSelectedStarredSectionGUIDInHeader, zTargetPageData.starredSectionGUIDs);\r\n }\r\n\r\n } else {\r\n zTargetPageData.starredSectionGUIDs.push(zHeaderSection._GUID);\r\n zTargetPageData.starredSectionGUIDs.push(zPageSection._GUID);\r\n }\r\n }\r\n }\r\n }\r\n\r\n\r\n }\r\n });\r\n\r\n // ** UNSTAR ACTION\r\n // cerr(\"*2inst zNx,zLa\",xIsStarred,\"x-\"+zNextAfterSelectedStarredItemGUID,\"y-\"+zLastSelectedStarredItemGUID);\r\n if (!xIsStarred) {\r\n assignArray(zTargetPageData.starredSectionGUIDs, _.difference(zTargetPageData.starredSectionGUIDs, zTargetPageSectionGUIDs));\r\n if (zNextAfterSelectedStarredItemGUID) {\r\n assignArray(UIS.selectedStarredPageSectionGUIDs, [zNextAfterSelectedStarredItemGUID]);\r\n let zNextAfterSelectedStarredItemGroupGUIDs = appUserContentManager.getGroupItemGUIDs(zNextAfterSelectedStarredItemGUID);\r\n if (zNextAfterSelectedStarredItemGUID == zNextAfterSelectedStarredItemGroupGUIDs[0]) {\r\n clearArray(UIS.selectedStarredPageSectionGUIDs);\r\n }\r\n } else {\r\n assignArray(UIS.selectedStarredPageSectionGUIDs, [zTargetPageData.starredSectionGUIDs[zTargetPageData.starredSectionGUIDs.length - 1]]);\r\n }\r\n } else {\r\n assignArray(UIS.selectedStarredPageSectionGUIDs, zTargetPageSectionGUIDs);\r\n }\r\n\r\n appUserContentManager.savePageData(zTargetPageGUID);\r\n\r\n window.emitter.emit(TYPE_EVENT.PAGE_SECTION_STAR_CHANGED);\r\n}\r\n\r\n\r\nappUserContentManager.unstarPageSection = function (xPageSection: IFC_Page_Section) {\r\n\r\n if (xPageSection && xPageSection._GUID) {\r\n\r\n\r\n // * if unstar a section not within the current selected starred items.\r\n if (!_.includes(UIS.selectedStarredPageSectionGUIDs, xPageSection._GUID)) {\r\n assignArray(UIS.selectedStarredPageSectionGUIDs, [xPageSection._GUID]); // !important\r\n }\r\n\r\n // * if unstar header\r\n if (xPageSection.sectionType == TYPE_SECTION.HEADER) {\r\n\r\n let zSectionTitles = \"# \" + xPageSection.sectionTitle + \"\\n\";\r\n\r\n if (\r\n (UIS.selectedStarredPageSectionGUIDs.length > 1)\r\n ) {\r\n\r\n _.each(UIS.selectedStarredPageSectionGUIDs, function (xSubPageSectionGUID: GUID_TYPE) {\r\n let zSubSection: IFC_Page_Section = appUserContentManager.getSection(UIS.currentUserContentPageGUID, xSubPageSectionGUID);\r\n if (zSubSection && (zSubSection._GUID != xPageSection._GUID)) {\r\n zSectionTitles += \"- \" + zSubSection?.sectionTitle + \"\\n\";\r\n }\r\n });\r\n\r\n if (!confirm(\r\n i18n.global.t(\"messages.Confirm2Remove_Starred_Group_And_Sections\")\r\n + \"\\n\\n\" +\r\n zSectionTitles\r\n )) return;\r\n\r\n appUserContentManager.updateMultiPageSectionStars(UIS.currentUserContentPageGUID, UIS.selectedStarredPageSectionGUIDs, false);\r\n\r\n } else {\r\n\r\n if (!confirm(\r\n i18n.global.t(\"messages.Confirm2Remove_Starred_Group_Only\")\r\n + \"\\n\\n\" +\r\n zSectionTitles\r\n )) return;\r\n\r\n appUserContentManager.updateMultiPageSectionStars(UIS.currentUserContentPageGUID, [xPageSection._GUID], false);\r\n }\r\n }\r\n\r\n // if unstar note card\r\n else if (xPageSection.sectionType == TYPE_SECTION.NOTE_CARD) {\r\n appUserContentManager.updateMultiPageSectionStars(UIS.currentUserContentPageGUID, [xPageSection._GUID], false);\r\n }\r\n }\r\n}\r\n\r\nappUserContentManager.moveStarredSectionGUIDsTo = function (xTargetPageGUID, xSourceSectionGUIDs, xToPosIndex: number) {\r\n let zTargetPageGUID = nz(xTargetPageGUID, UIS.currentUserContentPageGUID);\r\n let zTargetPageData = appUserContentManager.allUserContentPages[zTargetPageGUID];\r\n if (!zTargetPageData) return;\r\n if (!xSourceSectionGUIDs) return;\r\n let zStarredSectionGUIDs = zTargetPageData.starredSectionGUIDs;\r\n if (!zStarredSectionGUIDs) return;\r\n for (let i = 0; i < zStarredSectionGUIDs.length; i++) {\r\n if (xSourceSectionGUIDs.includes(zStarredSectionGUIDs[i])) {\r\n zStarredSectionGUIDs[i] = \"\";\r\n }\r\n }\r\n zStarredSectionGUIDs.splice(xToPosIndex, 0, ...xSourceSectionGUIDs);\r\n assignArray(zStarredSectionGUIDs, _.filter(zStarredSectionGUIDs, (xGUID) => xGUID));\r\n\r\n appUserContentManager.savePageData(zTargetPageGUID);\r\n}\r\n\r\nappUserContentManager.getSectionFlagColorStyle = function (xPageSection: IFC_Page_Section, xStylePropName: string) {\r\n if (xPageSection) {\r\n let defaultFlagColorStyleArray = UIS.currentUserContentPageTemplate.flagColorStyles;\r\n xPageSection.flagCode = nz(xPageSection.flagCode, \"\");\r\n let zStyleObj: any = _.find(defaultFlagColorStyleArray, {flagCode: xPageSection.flagCode});\r\n if (zStyleObj && xStylePropName) {\r\n return nz(zStyleObj[xStylePropName], \"\");// backStyle/titleStyle ...\r\n }\r\n return \"\";\r\n }\r\n}\r\n\r\nappUserContentManager.getSectionHeaderStyle = function (xPageSection: IFC_Page_Section, xStylePropName: string) {\r\n if (xPageSection) {\r\n let defaultHeaderStyleArray = UIS.currentUserContentPageTemplate.headerStyles;\r\n let zHeaderStyle_MiniScreenMode = UIS.currentUserContentPageTemplate.headerStyle_MiniScreenMode;\r\n\r\n if (UIS.isMiniScreenMode) {\r\n return zHeaderStyle_MiniScreenMode.headerStyle;\r\n }\r\n\r\n xPageSection.headerCode = nz(xPageSection.headerCode, \"Default\");\r\n let zStyleObj: any = _.find(defaultHeaderStyleArray, {headerCode: xPageSection.headerCode});\r\n // cerr(\"*styl\", zStyleObj, xStylePropName, xPageSection.headerCode)\r\n if (zStyleObj && xStylePropName) {\r\n return nz(zStyleObj[xStylePropName], \"\");// backStyle/headerStyle ...\r\n }\r\n return \"\";\r\n }\r\n}\r\n\r\nappUserContentManager.getSectionListByParentSectionGUID = function (xTargetPageGUID, xParentPageSectionGUID) {\r\n let zTargetPageGUID = nz(xTargetPageGUID, UIS.currentUserContentPageGUID);\r\n let zParentSectionGUID = nz(xParentPageSectionGUID, \"\");\r\n let zResList = [];\r\n\r\n let zPageItem: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[zTargetPageGUID], {});\r\n _.each(nz(zPageItem.pageSections, []), function (xSection: IFC_Page_Section) {\r\n if ((!xSection._parentSectionGUID) && (!zParentSectionGUID)) {\r\n zResList.push(xSection);\r\n } else if (xSection._parentSectionGUID == zParentSectionGUID) {\r\n zResList.push(xSection);\r\n }\r\n });\r\n\r\n return zResList;\r\n}\r\n\r\nappUserContentManager.getFilteredSectionList = function (xSourcePageSections, xFilterCode) {\r\n // * init\r\n if (!xSourcePageSections) return [];\r\n if (!xSourcePageSections.length) return [];\r\n if (!xFilterCode) return xSourcePageSections;\r\n let zCurrentPageColumnParentPageSectionGUID = appUserContentManager.getCurrentPageColumnParentPageSectionGUID();\r\n\r\n // * get GUID from matched cards and headers\r\n let zMatchedGUIDList: string[] = [];\r\n let zMatchedHeaderGUIDList: string[] = [];\r\n\r\n _.each(xSourcePageSections, function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection && (!xPageSection._isDeleted)) {\r\n // ** current page column\r\n if (!(xPageSection._parentSectionGUID == zCurrentPageColumnParentPageSectionGUID)) {\r\n return\r\n }\r\n // ** colored\r\n if ((xPageSection.flagCode == xFilterCode) && (xPageSection.sectionType != TYPE_SECTION.HEADER)) {\r\n zMatchedGUIDList.push(xPageSection._GUID);\r\n if (xPageSection._headerSectionGUID) {\r\n zMatchedGUIDList.push(xPageSection._headerSectionGUID);\r\n }\r\n }\r\n\r\n }\r\n });\r\n\r\n // * get result sections by matched GUIDs\r\n let zResSections: IFC_Page_Section[] = [];\r\n _.each(xSourcePageSections, function (xPageSection: IFC_Page_Section) {\r\n if (_.include(zMatchedGUIDList, xPageSection._GUID)) {\r\n zResSections.push(xPageSection);\r\n }\r\n if (_.include(zMatchedHeaderGUIDList, xPageSection._headerSectionGUID)) {\r\n zResSections.push(xPageSection);\r\n }\r\n });\r\n\r\n return _.unique(zResSections);\r\n}\r\n\r\nappUserContentManager.removeSections = function (xTargetPageGUID, xPageSectionGUIDs) {\r\n let zTargetPageGUID = nz(xTargetPageGUID, UIS.currentUserContentPageGUID);\r\n if (!xPageSectionGUIDs) return cerr(\"*mis scids\");\r\n let zPageSectionGUIDs: [GUID_TYPE] = nz(xPageSectionGUIDs, []);\r\n\r\n // cwrn(\"*rmv pgsc x1\",xTargetPageGUID,xPageSectionGUID);\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zTargetPageGUID];\r\n let zSections = nz(zPageItem.pageSections, []);\r\n\r\n /*let zRemoveIndex = _.findIndex(zSections, function (xSection: IFC_Page_Section) {\r\n return xSection._GUID == xPageSectionGUID\r\n });\r\n // cwrn(\"*rmv pgsc\",zSections,zRemoveIndex,xPageSectionGUID);\r\n\r\n if (zRemoveIndex >= 0) {\r\n zSections.splice(zRemoveIndex, 1);\r\n }*/\r\n _.each(zSections, function (xCheckingSection: IFC_Page_Section) {\r\n if (_.includes(zPageSectionGUIDs, xCheckingSection._GUID)) {\r\n xCheckingSection._isDeleted = true;\r\n }\r\n });\r\n\r\n // cerr(\"*delsc\",zSections)\r\n\r\n appUserContentManager.savePageData(zTargetPageGUID);\r\n}\r\n\r\nappUserContentManager.removeHeaderAndSections = function (xTargetPageGUID, xPageHeaderSectionGUID) {\r\n let zTargetPageGUID = nz(xTargetPageGUID, UIS.currentUserContentPageGUID);\r\n if (!xPageHeaderSectionGUID) return cerr(\"*mis hdscid\");\r\n\r\n // cwrn(\"*rmv pgsc x1\",xTargetPageGUID,xPageSectionGUID);\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zTargetPageGUID];\r\n let zSections = nz(zPageItem.pageSections, []);\r\n\r\n _.each(zSections, function (xCheckingSection: IFC_Page_Section) {\r\n if (xCheckingSection._GUID == xPageHeaderSectionGUID) {\r\n xCheckingSection._isDeleted = true;\r\n } else if (xCheckingSection._headerSectionGUID == xPageHeaderSectionGUID) {\r\n xCheckingSection._isDeleted = true;\r\n }\r\n });\r\n\r\n assignArray(zSections, zSections.filter(xSec => !xSec._isDeleted));\r\n // cerr(\"*delsc\",zSections)\r\n\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, \"\");\r\n\r\n appUserContentManager.savePageData(zTargetPageGUID);\r\n}\r\n\r\n\r\nappUserContentManager.renderSection = function (xTemplateGUID, xPageSection) {\r\n if (!xPageSection) return;\r\n\r\n // publishedDateString\r\n if (xPageSection.publishedDate) {\r\n xPageSection.publishedDateString = new Date(xPageSection.publishedDate).toLocaleDateString();\r\n }\r\n\r\n // Animation Delay\r\n xPageSection._animationDelay = chance.pick([40, 80, 120, 160, 200, 240, 300]);\r\n\r\n // template styles\r\n appPageTemplateManager.renderPageSectionWithTemplate(xTemplateGUID, xPageSection);\r\n\r\n let zPageItem = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n let zPageSections = nz(zPageItem.pageSections, []);\r\n\r\n // layout styles\r\n appPageTemplateManager.setupPageSectionLayoutStyleByTemplate(xTemplateGUID, xPageSection, zPageSections);\r\n\r\n let zSubPageSections: IFC_Page_Section[] = appUserContentManager.getSectionListByParentSectionGUID(UIS.currentUserContentPageGUID, xPageSection._GUID);\r\n xPageSection._subCount = nz(zSubPageSections.length, 0);\r\n\r\n // ref links\r\n if ((!xPageSection.refLinkAllString) && (xPageSection.refLinkAllString !== \"\")) {\r\n xPageSection.refLinkAllString = \"\";\r\n if (xPageSection.refLink) {\r\n xPageSection.refLinkAllString += xPageSection.refLink;\r\n }\r\n if (xPageSection.refSectionGUIDs) {\r\n _.each(xPageSection.refSectionGUIDs, function (xRefSectionGUID) {\r\n let zRefSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, xRefSectionGUID);\r\n if (zRefSection) {\r\n xPageSection.refLinkAllString += nz(nz(zRefSection?.refLinkAllString, zRefSection?.refLink), \"\") + \"\\n\";\r\n }\r\n });\r\n }\r\n\r\n }\r\n\r\n // isOutlineSection?\r\n if (xPageSection._headerSectionGUID) {\r\n let zHeaderSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, xPageSection._headerSectionGUID);\r\n if (zHeaderSection?._isClueSection) {\r\n xPageSection._isClueSection = true;\r\n } else {\r\n xPageSection._isClueSection = false;\r\n }\r\n } else if (xPageSection._sourceActionFlowGUID == \"SysAIOutline\") {\r\n xPageSection._isClueSection = true;\r\n } else {\r\n xPageSection._isClueSection = false;\r\n }\r\n\r\n\r\n}\r\n\r\nappUserContentManager.renderAllSectionsInPage = function (xTargetPageGUID: GUID_TYPE) {\r\n let zTargetPageGUID = nz(xTargetPageGUID, UIS.currentUserContentPageGUID);\r\n // cwrn(\"*rmv pgsc x1\",xTargetPageGUID,xPageSectionGUID);\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zTargetPageGUID];\r\n let zSections = nz(zPageItem.pageSections, []);\r\n let zSectionIndex = 0;\r\n let zThemeName = nz(zPageItem?.playOptions?.defaultThemeName, \"\");\r\n\r\n if (!zThemeName.startsWith(\"card-theme-\")) {\r\n if (!zPageItem.playOptions){\r\n zPageItem.playOptions={};\r\n }\r\n zPageItem.playOptions.defaultThemeName = \"card-theme-dark\";\r\n }\r\n\r\n _.each(zSections, function (xSection: IFC_Page_Section) {\r\n if (xSection.sectionType == \"TITLE\") xSection.sectionType = TYPE_SECTION.HEADER; // * compatibility issue\r\n appUserContentManager.renderSection(zPageItem.templateGUID, xSection);\r\n zSectionIndex++;\r\n });\r\n appUserContentManager.renderSection(zPageItem.templateGUID, zPageItem.coverFrontSection);\r\n appUserContentManager.renderSection(zPageItem.templateGUID, zPageItem.coverBackSection);\r\n}\r\n\r\n\r\nappUserContentManager.generatePageTitle = function (xTargetPageGUID) {\r\n let zMaxPageTitleLen = 100;\r\n let zTargetPageGUID = nz(xTargetPageGUID, UIS.currentUserContentPageGUID);\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zTargetPageGUID];\r\n let zResTitle = \"\";\r\n if (zPageItem.coverFrontSection?.sectionTitle) {\r\n zResTitle = zPageItem.coverFrontSection?.sectionTitle;\r\n } else if (zPageItem.starredSectionGUIDs?.length) {\r\n let zFirstPlaylistItem: IFC_Page_Section = appUserContentManager.getSection(xTargetPageGUID, zPageItem.starredSectionGUIDs[0]);\r\n zResTitle = zFirstPlaylistItem?.sectionTitle;\r\n } else if (zPageItem && zPageItem.pageSections && zPageItem.pageSections.length) {\r\n _.each(zPageItem.pageSections, function (xPageSection: IFC_Page_Section) {\r\n if (zResTitle) return;\r\n if (xPageSection && (!xPageSection._parentSectionGUID)) {\r\n let zFirstSection: IFC_Page_Section = xPageSection;\r\n zResTitle = nz(zFirstSection.sectionTitle, \"\").substring(0, zMaxPageTitleLen);\r\n if (zFirstSection.sectionTitle.length > zMaxPageTitleLen) zResTitle += \"...\";\r\n }\r\n });\r\n }\r\n zResTitle = nz(zResTitle, \"Noname\")\r\n zPageItem.pageTitle = zResTitle;\r\n return zResTitle;\r\n}\r\n\r\nappUserContentManager.removePage = function (xTargetPageGUID) {\r\n\r\n if (SYSS.sharingID4View) return cwrn(\"*shr mode -rm\");\r\n\r\n let zTargetPageGUID = nz(xTargetPageGUID, UIS.currentUserContentPageGUID);\r\n cwrn(\"*rmvpg\", zTargetPageGUID, UIS.currentUserContentPageGUID);\r\n\r\n appStorageManager.deleteFromLocalDB(TYPE_ID_LOCAL_APP_DB.PREFIX_PAGE_DATA + xTargetPageGUID);\r\n\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zTargetPageGUID];\r\n zPageItem._IsDeleted = true;\r\n\r\n let zSharingID = zPageItem.sharingID;\r\n if (zSharingID) {\r\n appSharingManager.shareContentPage(zPageItem, zSharingID).then(data => {\r\n //\r\n console.log(\"*shr cncl\", zSharingID);\r\n });\r\n }\r\n\r\n\r\n UIS.currentUserContentPageGUID = \"\";\r\n\r\n}\r\n\r\nappUserContentManager.savePageData = function (xSavingPageGUID, xNewPageGUID) {\r\n\r\n if (SYSS.sharingID4View && (!xNewPageGUID)) return cwrn(\"*shr mode -sv no new id\");\r\n\r\n let zPageData: IFC_Page_Data = appUserContentManager.allUserContentPages[xSavingPageGUID];\r\n // cerr(\"*pgid svpg\",xSavingPageGUID,zPageData)\r\n appUserContentManager.clearAllSubSection4RemovedPageSections(zPageData.pageSections);\r\n appUserContentManager.clearAllStarredItems4RemovedPageSections(xSavingPageGUID);\r\n appUserContentManager.generatePageTitle(xSavingPageGUID);\r\n let zUserName = localStorage[TYPE_ID_LOCAL_APP_DB.USER_NAME];\r\n if (UIS.isSharingViewMode) zUserName = \"\";\r\n\r\n if (zPageData) {\r\n if (!zPageData._createdAt) zPageData._createdAt = (new Date()).toISOString();\r\n zPageData._username = nz(zUserName, \"\");\r\n zPageData._updatedAt = (new Date()).toISOString();\r\n if (xNewPageGUID) {\r\n zPageData._GUID = xNewPageGUID;\r\n }\r\n localStorage.setItem(TYPE_ID_LOCAL_APP_DB.LAST_PAGE_GUID, zPageData._GUID);\r\n appStorageManager.saveAnyDataToLocalDB(TYPE_ID_LOCAL_APP_DB.PREFIX_PAGE_DATA + zPageData._GUID, zPageData);\r\n\r\n UIS.startSectionIndex4Rendering = -1;\r\n UIS.endSectionIndex4Rendering = -1;\r\n // appUserContentManager.renderAllSectionsInPage(xSavingPageGUID);\r\n\r\n window.emitter.emit(TYPE_EVENT.PAGE_SAVED);\r\n }\r\n\r\n\r\n // cwrn(\"*sving pg\");\r\n}\r\n\r\nappUserContentManager.clearAllSubSection4RemovedPageSections = function (xPageSections) {\r\n const zSectionsMap = new Map(xPageSections.map(el => [el._GUID, el]));\r\n\r\n for (let zI = 0; zI < 6; zI++) {\r\n xPageSections.forEach(el => {\r\n if (!el._parentSectionGUID) return;\r\n let zParentEl: IFC_Page_Section = zSectionsMap.get(el._parentSectionGUID);\r\n if (!zParentEl) {\r\n el._isDeleted = true;\r\n } else if (zParentEl._isDeleted) {\r\n el._isDeleted = true;\r\n }\r\n });\r\n }\r\n\r\n assignArray(xPageSections, xPageSections.filter(xSec => !xSec._isDeleted));\r\n\r\n}\r\n\r\nappUserContentManager.clearAllStarredItems4RemovedPageSections = function (xPageGUID) {\r\n let zPageData = appUserContentManager.allUserContentPages[xPageGUID];\r\n if (!zPageData) return;\r\n if (!zPageData.starredSectionGUIDs) return;\r\n _.each(zPageData.starredSectionGUIDs, function (xStarredSectionGUID: GUID_TYPE, xIndex) {\r\n let zStarredPageSection = appUserContentManager.getSection(xPageGUID, xStarredSectionGUID);\r\n if (!zStarredPageSection) {\r\n zPageData.starredSectionGUIDs[xIndex] = \"\";\r\n }\r\n });\r\n assignArray(zPageData.starredSectionGUIDs, zPageData.starredSectionGUIDs.filter(xGUID => xGUID));\r\n}\r\n\r\nappUserContentManager.loadPageData = function (xPageGUID, xCallback) {\r\n\r\n if (SYSS.sharingID4View) return cwrn(\"*shr mode -ld\");\r\n\r\n // * get PageGUID and DBKey\r\n let zLocalDBKey\r\n if (xPageGUID) {\r\n zLocalDBKey = TYPE_ID_LOCAL_APP_DB.PREFIX_PAGE_DATA + xPageGUID;\r\n } else {\r\n return cerr(\"*mis pggid\");\r\n }\r\n\r\n let zUserName = localStorage[TYPE_ID_LOCAL_APP_DB.USER_NAME];\r\n\r\n // * load from LocalDB\r\n appStorageManager.loadAnyDataFromLocalDB(\r\n zLocalDBKey,\r\n function (err, xResult: IFC_Page_Data) {\r\n let zPageGUID = \"\";\r\n if (err) return;\r\n if (xResult) { // * existing page loaded\r\n\r\n if ((!xResult._username) || (xResult._username == zUserName)) {\r\n zPageGUID = xResult._GUID;\r\n appUserContentManager.clearAllSubSection4RemovedPageSections(xResult.pageSections);\r\n appUserContentManager.clearAllStarredItems4RemovedPageSections(zPageGUID);\r\n appUserContentManager.allUserContentPages[zPageGUID] = xResult;\r\n } else {\r\n //page is not for this user\r\n // cwrn(\"*nt4usr\",xResult.pageTitle,zUserName,xResult._username);\r\n }\r\n }\r\n\r\n if (xCallback) {\r\n xCallback(null, zPageGUID)\r\n }\r\n\r\n });\r\n\r\n\r\n // cwrn(\"* loaded pg\");\r\n}\r\n\r\nappUserContentManager.gotoPage = function (xTargetPageGUID, xCallback) {\r\n UIS.currentEditingPageSectionGUID = \"\";\r\n appUserContentManager.resetPageColumn(0);\r\n window.emitter.emit(TYPE_EVENT.PAGE_COLUMN_NEW);\r\n UIS.startSectionIndex4Rendering = -1;\r\n UIS.endSectionIndex4Rendering = -1;\r\n\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[xTargetPageGUID];\r\n if (zPageItem) {\r\n UIS.currentUserContentPageGUID = xTargetPageGUID;\r\n appUserContentManager.renderAllSectionsInPage(UIS.currentUserContentPageGUID);\r\n localStorage.setItem(TYPE_ID_LOCAL_APP_DB.LAST_PAGE_GUID, zPageItem._GUID);\r\n zPageItem._updatedAt = (new Date()).toISOString();\r\n appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\r\n }\r\n\r\n window.emitter.emit(TYPE_EVENT.PAGE_STATE_CHANGED);\r\n\r\n if (xCallback) {\r\n if (zPageItem) {\r\n xCallback(null, zPageItem);\r\n } else {\r\n xCallback(\"page not found\");\r\n }\r\n }\r\n\r\n}\r\n\r\nappUserContentManager.loadAllPageData = function (xCallback) {\r\n appStorageManager.loadAllDBKeys(function (err, result) {\r\n if (err) return;\r\n let zDataKeys = nz(result, []);\r\n let zUserContentPageNum = 0;\r\n _.each(zDataKeys, function (xDataKey: string) {\r\n if (xDataKey && xDataKey.startsWith(TYPE_ID_LOCAL_APP_DB.PREFIX_PAGE_DATA)) {\r\n let zPageGUID = xDataKey.substring(TYPE_ID_LOCAL_APP_DB.PREFIX_PAGE_DATA.length);\r\n zUserContentPageNum++;\r\n appUserContentManager.loadPageData(zPageGUID, function (err, result) {\r\n if (xCallback) {\r\n xCallback(err, zPageGUID);\r\n }\r\n });\r\n }\r\n });\r\n\r\n // no data (first time)\r\n if (!zUserContentPageNum) {\r\n // * no existing page (1st time running)\r\n if (defaultNewPageData) {\r\n let zPageGUID = defaultNewPageData._GUID;\r\n appUserContentManager.allUserContentPages[zPageGUID] = defaultNewPageData;\r\n appUserContentManager.savePageData(zPageGUID);\r\n appUserContentManager.loadPageData(zPageGUID, function (err, result) {\r\n setTimeout(function () {\r\n UIS.currentUserContentPageGUID = zPageGUID;\r\n appUserContentManager.renderAllSectionsInPage(zPageGUID);\r\n }, 300);\r\n });\r\n\r\n // UIS.currentUserContentPageGUID = zPageGUID;\r\n }\r\n }\r\n })\r\n\r\n cwrn(\"* loaded pg_all\");\r\n}\r\n\r\nappUserContentManager.buildSingleContentPageWithAISession = function (xPageItem, xAISession, xTargetPageSectionGUID) {\r\n if (!xPageItem) cerr(\"*mis pg\");\r\n if (!xPageItem._GUID) cerr(\"*mis pgd\");\r\n if (!xAISession) cerr(\"*mis ais\");\r\n if (!xAISession._GUID) cerr(\"*mis aisd\");\r\n if (!xTargetPageSectionGUID) cerr(\"*mis secid\");\r\n let zTargetPageSection = _.find(xPageItem.pageSections, {_GUID: xTargetPageSectionGUID});\r\n if (zTargetPageSection) {\r\n zTargetPageSection.sectionBodyText = nz(xAISession.returnMessage, \"\");\r\n }\r\n\r\n if (xAISession.AIActionType == TYPE_AI_ACTION.ForOneSectionContentAppending) {\r\n const zHRElement = document.getElementById(\"hr_\" + xTargetPageSectionGUID);\r\n if (zHRElement) {\r\n // cwrn(\"*bld sgl scrl\",\"hr_\"+xTargetPageSectionGUID)\r\n zHRElement.scrollIntoView({\r\n behavior: \"smooth\", // Smooth scrolling\r\n block: \"end\", // Aligns the center of the element to the center of the visible area\r\n inline: \"nearest\" // Aligns horizontally to the nearest edge\r\n });\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n}\r\n\r\nappUserContentManager.buildContentPagePartsWithAISession = function (xPageItem, xPageColumn, xAISession, xFromSectionIndex) {\r\n let zFromSectionIndex = nz(xFromSectionIndex, 0);\r\n if (zFromSectionIndex < 0) zFromSectionIndex = 0;\r\n if (UIS.endSectionIndex4Rendering < zFromSectionIndex) UIS.endSectionIndex4Rendering = zFromSectionIndex;\r\n let zPageColumn: IFC_Page_Column = nz(xPageColumn, {});\r\n let zPageColumnFilterSectionGUID = nz(zPageColumn.parentPageSectionGUID, \"\");\r\n\r\n if (!xPageItem) cerr(\"*mis pg\");\r\n if (!xPageItem._GUID) cerr(\"*mis pgd\");\r\n if (!xAISession) cerr(\"*mis ais\");\r\n if (!xAISession._GUID) cerr(\"*mis aisd\");\r\n\r\n let zSectionType: TYPE_SECTION = TYPE_SECTION.NOTE_CARD;\r\n let zSectionFlagCode = \"\";\r\n let zFlagCodeMap4Commands = nz(UIS.currentUserContentPageTemplate.defaultFlagCodeMap4Commands, {});\r\n let zIsSectionImageNeeded = false;\r\n\r\n if (xAISession.AIActionType == TYPE_AI_ACTION.ForPoints) {\r\n // zSectionFlagCode = TYPE_FILTER_CODE.PURPLE;\r\n } else if (xAISession.AIActionType == TYPE_AI_ACTION.ForTitle) {\r\n zSectionType = TYPE_SECTION.HEADER;\r\n } else if (xAISession.AIActionType == TYPE_AI_ACTION.UserInputWithoutAI) {\r\n if (xAISession.returnMessage.startsWith(\"# \")) {\r\n zSectionType = TYPE_SECTION.HEADER;\r\n }\r\n if (xAISession.returnMessage.startsWith(\"## \")) {\r\n zSectionType = TYPE_SECTION.NOTE_CARD;\r\n zSectionFlagCode = zFlagCodeMap4Commands[TYPE_INPUT_COMMAND.USER_MEMO];\r\n }\r\n }\r\n\r\n let zSourceText = nz(xAISession.returnMessage, \"\").trim();\r\n\r\n // ** process reply like \"#markdown\" '#markdown'\r\n if (zSourceText.startsWith(\"\\\"\") || zSourceText.startsWith(\"'\")) {\r\n zSourceText = zSourceText.substring(1);\r\n if (zSourceText.endsWith(\"\\\"\") || zSourceText.endsWith(\"'\")) {\r\n zSourceText = zSourceText.substring(0, zSourceText.length - 1);\r\n }\r\n }\r\n\r\n\r\n if (!xPageItem.pageSections) {\r\n xPageItem.pageSections = [];\r\n }\r\n\r\n let zProcessingPageSection: IFC_Page_Section;\r\n // cerr(\"*rdr pagesec\", zFromSectionIndex, (UIS.endSectionIndex4Rendering - zFromSectionIndex))\r\n xPageItem.pageSections.splice(zFromSectionIndex, (UIS.endSectionIndex4Rendering - zFromSectionIndex));\r\n UIS.endSectionIndex4Rendering = zFromSectionIndex;\r\n let zCurrentPageColumn: IFC_Page_Column = window.PageColumns[UIS.currentUserContentPageColumnIndex];\r\n let zCurrentSelectedPageSectionGUID = \"\";\r\n let zSearchedImageIndex = 0;\r\n\r\n let zTextLines = zSourceText.replaceAll(\"+%%\", \"\\n+%%\").split(\"\\n\");\r\n\r\n\r\n _.each(zTextLines, function (xTextLine: string) {\r\n let zTextLine = nz(xTextLine, \"\").trim();\r\n if (!zTextLine) return;\r\n\r\n /*if () {\r\n // xPageItem.pageTitle = zTextLine;\r\n } else*/\r\n zTextLine = zTextLine.replaceAll(\"%%+\", \"%%\"); //fix AI bug\r\n if (zTextLine.startsWith(\"# \")) {\r\n // update header if \"#\" H1 text\r\n let zHeaderSection = appUserContentManager.getSection(xPageItem._GUID, xAISession.belongingHeaderSectionGUID);\r\n if (zHeaderSection) {\r\n zHeaderSection.sectionTitle = zTextLine.substring(2).trim();\r\n }\r\n\r\n } else if (zTextLine.startsWith(\"## \")) {\r\n zSectionType = TYPE_SECTION.NOTE_CARD;\r\n zProcessingPageSection = {\r\n _GUID: chance.guid(),\r\n _isImageNeeded: zIsSectionImageNeeded,\r\n sectionType: zSectionType,\r\n flagCode: nz(zSectionFlagCode, \"\"),\r\n sectionSourceType: TYPE_NOTE_SOURCE.AI_DEFAULT,\r\n refSectionGUIDs: [],\r\n };\r\n\r\n xPageItem.pageSections.splice(UIS.endSectionIndex4Rendering, 0, zProcessingPageSection);\r\n zCurrentSelectedPageSectionGUID = xPageItem.pageSections[UIS.endSectionIndex4Rendering]._GUID;\r\n UIS.endSectionIndex4Rendering++;\r\n\r\n zProcessingPageSection.sectionTitle = nz(zTextLine, \"\");\r\n zProcessingPageSection.sectionBodyText = \"\";\r\n zProcessingPageSection._headerSectionGUID = xAISession.belongingHeaderSectionGUID;\r\n cerr(\"*zpcsec.hd\", zProcessingPageSection._headerSectionGUID, xAISession.belongingHeaderSectionGUID)\r\n\r\n } else if (zTextLine.startsWith(\"+%%subs:\")) {\r\n\r\n let getStringSimilarityScore = function (str1, str2) {\r\n function preprocessText(text) {\r\n return text.toLowerCase()\r\n .replace(/[.,/#!$%^&*;:{}=\\-_`~()]/g, \"\")\r\n .replace(/\\s{2,}/g, \" \")\r\n .trim();\r\n }\r\n\r\n const words1 = new Set(preprocessText(str1).split(' '));\r\n const words2 = new Set(preprocessText(str2).split(' '));\r\n\r\n const intersection = new Set([...words1].filter(word => words2.has(word)));\r\n const union = new Set([...words1, ...words2]);\r\n\r\n return intersection.size / union.size;\r\n }\r\n\r\n let zH3Title = zTextLine.substring(8).trim();\r\n let zRefPageSections = appUserContentManager.getCurrentPageSections();\r\n let zHighestSimScore = 0;\r\n let zHighestSimScorePageSection;\r\n _.each(zRefPageSections, function (xRefPageSection: IFC_Page_Section) {\r\n if ((xRefPageSection.refLinkAllString)\r\n && (xRefPageSection._headerSectionGUID == zProcessingPageSection._headerSectionGUID)) {\r\n let zSimScore = getStringSimilarityScore(zH3Title, xRefPageSection.sectionTitle);\r\n if ((zSimScore > zHighestSimScore) && zSimScore > 0.6) {\r\n zHighestSimScore = zSimScore;\r\n zHighestSimScorePageSection = xRefPageSection;\r\n }\r\n // cwrn(\"*sim\", zSimScore, xRefPageSection.sectionTitle, zH3Title);\r\n }\r\n });\r\n if (zHighestSimScorePageSection) {\r\n // appUserContentManager.movePageSectionsAfterTargetPageSection(UIS.currentUserContentPageGUID,zHighestSimScorePageSection,zProcessingPageSection);\r\n if (!zProcessingPageSection.refSectionGUIDs) zProcessingPageSection.refSectionGUIDs = [];\r\n zProcessingPageSection.refSectionGUIDs.push(zHighestSimScorePageSection._GUID);\r\n zHighestSimScorePageSection.flagCode = TYPE_FILTER_CODE.ORANGE;\r\n // cwrn(\"*rfsid\",zProcessingPageSection.refSectionGUIDs);\r\n }\r\n\r\n // zProcessingPageSection.sectionBodyText += \"\\n- \" + zH3Title;\r\n } else if ((zTextLine.startsWith(\"+%%color:\")) && (zTextLine.endsWith(\"%%\"))) {\r\n // AI pickup section style\r\n // cwrn(\"*%%\", zTextLine);\r\n let zFlagCode = zTextLine.replaceAll(\"+%%color:\", \"\").replaceAll(\"%%\", \"\").trim();\r\n zProcessingPageSection.flagCode = zFlagCode;\r\n } else if (zTextLine.startsWith(\"+%%ref-link:\") && (zTextLine.endsWith(\"%%\"))) {\r\n let zRefLink = zTextLine.replaceAll(\"+%%ref-link:\", \"\").replaceAll(\"%%\", \"\").trim();\r\n zProcessingPageSection.refLinkAllString = zRefLink;\r\n //\r\n } else if (zTextLine.startsWith(\"+%%ref-link=\") && (zTextLine.endsWith(\"%%\"))) {\r\n let zRefLink = zTextLine.replaceAll(\"+%%ref-link=\", \"\").replaceAll(\"%%\", \"\").trim();\r\n zProcessingPageSection.refLinkAllString = zRefLink;\r\n //\r\n } else if (zTextLine.startsWith(\"+%%imgd%%\")) {\r\n zProcessingPageSection._isImageNeeded = true;\r\n //\r\n } else if (zTextLine.startsWith(\"+%%nimg%%\")) {\r\n zProcessingPageSection._isImageNeeded = false;\r\n //\r\n } else if (zTextLine.startsWith(\"+%%kwds:\") && (zTextLine.endsWith(\"%%\"))) {\r\n zProcessingPageSection._keywords4Search = zTextLine.replaceAll(\"+%%kwds:\", \"\").replaceAll(\"%%\", \"\").trim();\r\n //\r\n } else if (zTextLine.startsWith(\"+%%question:\") && (zTextLine.endsWith(\"%%\"))) {\r\n if (!zProcessingPageSection._questions4Exploring) {\r\n zProcessingPageSection._questions4Exploring = [];\r\n }\r\n zProcessingPageSection._questions4Exploring.push(\r\n zTextLine.replaceAll(\"+%%question:\", \"\").replaceAll(\"%%\", \"\").trim()\r\n );\r\n //\r\n } else if (zTextLine == \"----\") {\r\n zProcessingPageSection.sectionBodyText += \"\\n\\n\" + zTextLine + \"\\n\\n\";\r\n } else if ((zTextLine != \"#\") && (zTextLine != \"##\")) {\r\n if (!zProcessingPageSection) {\r\n xPageItem.pageSections[zFromSectionIndex] = zProcessingPageSection = {\r\n _GUID: chance.guid(),\r\n _isImageNeeded: zIsSectionImageNeeded,\r\n sectionType: zSectionType,\r\n headerCode: ((zSectionType == TYPE_SECTION.HEADER) ? \"H2\" : \"\"),\r\n flagCode: nz(zSectionFlagCode, \"\"),\r\n _headerSectionGUID: xAISession.belongingHeaderSectionGUID,\r\n sectionSourceType: TYPE_NOTE_SOURCE.AI_DEFAULT,\r\n };\r\n }\r\n zProcessingPageSection.sectionTitle = nz(zProcessingPageSection.sectionTitle, \"\");\r\n zProcessingPageSection.sectionBodyText = nz(zProcessingPageSection.sectionBodyText, \"\");\r\n zProcessingPageSection.sectionBodyText += zTextLine + \"\\n\";\r\n }\r\n\r\n if (zProcessingPageSection) {\r\n zProcessingPageSection._parentSectionGUID = zCurrentPageColumn.parentPageSectionGUID;\r\n }\r\n // cwrn(\"*pgcol fltr id\",zCurrentPageColumn.parentPageSectionGUID,zCurrentPageColumn);\r\n });\r\n\r\n // consoloe.log(UIS.startSectionIndex4Rendering, UIS.endSectionIndex4Rendering);\r\n // * always select the last generated page section\r\n // cerr(\"*selec in gen\",zCurrentSelectedPageSectionGUID)\r\n if (zCurrentSelectedPageSectionGUID) {\r\n setTimeout(function () {\r\n // appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, zCurrentSelectedPageSectionGUID);\r\n }, 120);\r\n\r\n if (xAISession.AIActionType == TYPE_AI_ACTION.ForPoints) {\r\n // appUserContentManager.scrollPageTo(\"bottom\");\r\n }\r\n }\r\n\r\n\r\n}\r\n\r\nappUserContentManager.preprocessSectionMDTextInput = function (xSectionBodyText, xSection) {\r\n // * todo\r\n console.log(\"preprocessSectionMDTextInput\");\r\n}\r\n\r\nappUserContentManager.getPreviewSectionsWithAISession = function (xAISession) {\r\n\r\n if (!xAISession) cerr(\"*mis ais\");\r\n if (!xAISession._GUID) cerr(\"*mis aisd\");\r\n\r\n let zSectionType: TYPE_SECTION = TYPE_SECTION.NOTE_CARD;\r\n let zSectionFlagCode = \"\";\r\n let zFlagCodeMap4Commands = nz(UIS.currentUserContentPageTemplate.defaultFlagCodeMap4Commands, {});\r\n\r\n if (xAISession.AIActionType == TYPE_AI_ACTION.ForPoints) {\r\n zSectionFlagCode = zFlagCodeMap4Commands[TYPE_INPUT_COMMAND.AI_PLUS_SEARCH];\r\n } else if (xAISession.AIActionType == TYPE_AI_ACTION.ForAINote) {\r\n zSectionFlagCode = zFlagCodeMap4Commands[TYPE_INPUT_COMMAND.AI_NOTE];\r\n } else if (xAISession.AIActionType == TYPE_AI_ACTION.ForQuestions) {\r\n zSectionFlagCode = zFlagCodeMap4Commands[TYPE_INPUT_COMMAND.AI_QUESTIONS];\r\n } else if (xAISession.AIActionType == TYPE_AI_ACTION.ForTitle) {\r\n zSectionType = TYPE_SECTION.HEADER;\r\n } else if (xAISession.AIActionType == TYPE_AI_ACTION.UserInputWithoutAI) {\r\n if (xAISession.returnMessage.startsWith(\"# \")) {\r\n zSectionType = TYPE_SECTION.HEADER;\r\n }\r\n if (xAISession.returnMessage.startsWith(\"## \")) {\r\n zSectionType = TYPE_SECTION.NOTE_CARD;\r\n zSectionFlagCode = zFlagCodeMap4Commands[TYPE_INPUT_COMMAND.USER_MEMO];\r\n }\r\n }\r\n\r\n let zSourceText = nz(xAISession.returnMessage, \"\").trim();\r\n\r\n // ** process reply like \"#markdown\" '#markdown'\r\n if (zSourceText.startsWith(\"\\\"\") || zSourceText.startsWith(\"'\")) {\r\n zSourceText = zSourceText.substring(1);\r\n if (zSourceText.endsWith(\"\\\"\") || zSourceText.endsWith(\"'\")) {\r\n zSourceText = zSourceText.substring(0, zSourceText.length - 1);\r\n }\r\n }\r\n\r\n let zTextLines = zSourceText.split(\"\\n\");\r\n let zResultPageSections: [IFC_Page_Section] = [];\r\n\r\n\r\n let zProcessingPageSection: IFC_Page_Section;\r\n\r\n _.each(zTextLines, function (xTextLine: string) {\r\n let zTextLine = nz(xTextLine, \"\").trim();\r\n if (!zTextLine) return;\r\n\r\n /*if () {\r\n // xPageItem.pageTitle = zTextLine;\r\n } else*/\r\n\r\n if (zTextLine.startsWith(\"# \")) {\r\n zSectionType = TYPE_SECTION.HEADER;\r\n zProcessingPageSection = {\r\n _GUID: chance.guid(),\r\n sectionType: zSectionType,\r\n layoutCode: \"Default\",\r\n headerCode: \"H2\",\r\n };\r\n zResultPageSections.push(zProcessingPageSection);\r\n zProcessingPageSection.sectionTitle = nz(zTextLine, \"\").substring(2).trim();\r\n zProcessingPageSection.sectionBodyText = \"\";\r\n } else if (zTextLine.startsWith(\"## \")) {\r\n zSectionType = TYPE_SECTION.NOTE_CARD;\r\n zProcessingPageSection = {\r\n _GUID: chance.guid(),\r\n sectionType: zSectionType,\r\n flagCode: nz(zSectionFlagCode, \"\")\r\n };\r\n zResultPageSections.push(zProcessingPageSection);\r\n zProcessingPageSection.sectionTitle = nz(zTextLine, \"\").substring(3).trim()\r\n zProcessingPageSection.sectionBodyText = \"\";\r\n } else if ((zTextLine != \"#\") && (zTextLine != \"##\")) {\r\n if (!zProcessingPageSection) {\r\n zProcessingPageSection = {\r\n _GUID: chance.guid(),\r\n sectionType: zSectionType,\r\n headerCode: ((zSectionType == TYPE_SECTION.HEADER) ? \"H2\" : \"\"),\r\n flagCode: nz(zSectionFlagCode, \"\"),\r\n };\r\n zResultPageSections.push(zProcessingPageSection);\r\n }\r\n zProcessingPageSection.sectionTitle = nz(zProcessingPageSection.sectionTitle, \"\");\r\n zProcessingPageSection.sectionBodyText = nz(zProcessingPageSection.sectionBodyText, \"\");\r\n zProcessingPageSection.sectionBodyText += zTextLine + \"\\n\";\r\n }\r\n // cwrn(\"*pgcol fltr id\",zCurrentPageColumn.parentPageSectionGUID,zCurrentPageColumn);\r\n });\r\n\r\n // consoloe.log(UIS.startSectionIndex4Rendering, UIS.endSectionIndex4Rendering);\r\n // * always select the last generated page section\r\n return (zResultPageSections);\r\n\r\n}\r\n\r\nappUserContentManager.getSectionTitles4AIAction = function (xTargetPageGUID, xHeaderSectionGUID) {\r\n let zTargetPageGUID = nz(xTargetPageGUID, UIS.currentUserContentPageGUID);\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zTargetPageGUID];\r\n let zPageSections = nz(zPageItem.pageSections, []);\r\n\r\n let zRes = [];\r\n _.each(zPageSections, function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection && (!xPageSection._isDeleted) && xPageSection.sectionTitle) {\r\n if (xHeaderSectionGUID && xPageSection._headerSectionGUID != xHeaderSectionGUID) {\r\n return\r\n }\r\n zRes.push(xPageSection.sectionTitle);\r\n }\r\n });\r\n\r\n return zRes;\r\n}\r\n\r\n\r\nappUserContentManager.getPageColumnTitles4AIAction = function (xTargetPageGUID, xAIActionType) {\r\n let zTargetPageGUID = nz(xTargetPageGUID, UIS.currentUserContentPageGUID);\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zTargetPageGUID];\r\n if (!zPageItem) return [];\r\n let zPageSections = nz(zPageItem.pageSections, []);\r\n let zPageColumns: [IFC_Page_Column] = window.PageColumns;\r\n\r\n let zRes = [];\r\n if (UIS.selectedGroupHeaderTitleInPageColumn0) {\r\n zRes.push(UIS.selectedGroupHeaderTitleInPageColumn0);\r\n cwrn(\"* col0 ttl\", UIS.selectedGroupHeaderTitleInPageColumn0);\r\n }\r\n _.each(zPageColumns, function (xPageColumn: IFC_Page_Column) {\r\n if (!xPageColumn) return;\r\n if (xPageColumn.parentPageSectionGUID) {\r\n let zFilteringPageSection: IFC_Page_Section = _.find(zPageSections, {_GUID: xPageColumn.parentPageSectionGUID});\r\n\r\n // ** exclude \"Memo-xxxx\" as context\r\n if (zFilteringPageSection.sectionTitle.startsWith(i18n.global.t(\"New_Blank_Memo\") + \"-\")) return;\r\n // ** collect context\r\n if (zFilteringPageSection && zFilteringPageSection.sectionTitle) {\r\n zRes.push(zFilteringPageSection.sectionTitle);\r\n }\r\n }\r\n });\r\n\r\n return zRes;\r\n}\r\n\r\nappUserContentManager.getCurrentPageSections = function () {\r\n try {\r\n if (!UIS.currentUserContentPageGUID) return [];\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n if (!zPageItem) return [];\r\n let zAllPageSections: [IFC_Page_Section] = nz(zPageItem.pageSections, []);\r\n return zAllPageSections;\r\n } catch (e) {\r\n cerr(e);\r\n }\r\n}\r\n\r\nappUserContentManager.getCurrentStarredPageSections = function () {\r\n try {\r\n if (!UIS.currentUserContentPageGUID) return [];\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n if (!zPageItem) return [];\r\n if (!zPageItem.starredSectionGUIDs) return [];\r\n let zResStarredPageSections: IFC_Page_Section[] = [];\r\n _.each(zPageItem.starredSectionGUIDs, function (xStarredSectionGUID: GUID_TYPE) {\r\n let zSatrredPageSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, xStarredSectionGUID);\r\n if (zSatrredPageSection) {\r\n zResStarredPageSections.push(zSatrredPageSection);\r\n }\r\n })\r\n return zResStarredPageSections;\r\n } catch (e) {\r\n cerr(e);\r\n }\r\n}\r\n\r\nappUserContentManager.getCurrentSelectedPageSectionGUID = function () {\r\n try {\r\n let zPageColumns = window.PageColumns;\r\n if (!zPageColumns) return;\r\n let zCurrentPageColumn: IFC_Page_Column = zPageColumns[UIS.currentUserContentPageColumnIndex];\r\n if (!zCurrentPageColumn) return;\r\n return zCurrentPageColumn.currentSelectedPageSectionGUID;\r\n } catch (e) {\r\n cerr(e);\r\n }\r\n}\r\n\r\nappUserContentManager.getCurrentSelectedPageHeaderSectionGUID = function () {\r\n try {\r\n let zPageColumns = window.PageColumns;\r\n let zCurrentPageColumn: IFC_Page_Column = zPageColumns[UIS.currentUserContentPageColumnIndex];\r\n return zCurrentPageColumn.currentSelectedHeaderPageSectionGUID;\r\n } catch (e) {\r\n cerr(e);\r\n }\r\n}\r\n\r\nappUserContentManager.getCurrentSelectedPageSection = function () {\r\n try {\r\n let zSelectedPageSectionGUID = appUserContentManager.getCurrentSelectedPageSectionGUID();\r\n let zPageItem: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n if (zPageItem.pageSections) {\r\n return _.find(zPageItem.pageSections, {_GUID: zSelectedPageSectionGUID});\r\n }\r\n\r\n } catch (e) {\r\n cerr(e);\r\n }\r\n return;\r\n}\r\n\r\nappUserContentManager.getCount4FilterCode = function (xFilterCode) {\r\n let zPageSections = nz(appUserContentManager.getCurrentPageSections(), []);\r\n let zResPageSections = zPageSections;\r\n let zResLength = 0;\r\n if (xFilterCode) {\r\n zResPageSections = appUserContentManager.getFilteredSectionList(zPageSections, xFilterCode);\r\n }\r\n _.each(zResPageSections, function (xResPageSection: IFC_Page_Section) {\r\n if (xResPageSection.sectionType == TYPE_SECTION.NOTE_CARD) {\r\n zResLength++;\r\n\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*fltTtl\",xResPageSection.sectionTitle,xFilterCode);\r\n }\r\n })\r\n\r\n return zResLength;\r\n}\r\n\r\n\r\nappUserContentManager.getCurrentPageColumnParentPageSectionGUID = function () {\r\n try {\r\n let zPageColumns: [IFC_Page_Column] = window.PageColumns;\r\n let zCurrentPageColumn: IFC_Page_Column = zPageColumns[UIS.currentUserContentPageColumnIndex];\r\n return zCurrentPageColumn.parentPageSectionGUID;\r\n } catch (e) {\r\n cerr(e);\r\n }\r\n}\r\n\r\nappUserContentManager.getPageColumn0SelectedHeaderGUID = function () {\r\n try {\r\n let zPageColumns: [IFC_Page_Column] = window.PageColumns;\r\n let zCurrentPageColumn: IFC_Page_Column = zPageColumns[0];\r\n return zCurrentPageColumn.currentSelectedHeaderPageSectionGUID;\r\n } catch (e) {\r\n cerr(e);\r\n }\r\n}\r\n\r\n\r\nappUserContentManager.getCurrentSelectedPageSectionIndex = function () {\r\n try {\r\n let zAllPageSections = appUserContentManager.getCurrentPageSections();\r\n let zCurrentPageSectionGUID = appUserContentManager.getCurrentSelectedPageSectionGUID();\r\n let zResIndex = _.findIndex(zAllPageSections, {_GUID: zCurrentPageSectionGUID});\r\n if (zResIndex < 0) zResIndex = 0;\r\n return zResIndex;\r\n } catch (e) {\r\n cerr(e);\r\n }\r\n}\r\n\r\nappUserContentManager.getMixedContentStringWeighedLength = function (xContentString) {\r\n if (xContentString) {\r\n let totalLength = 0;\r\n const englishWordRegex = /\\b[a-zA-Z]+\\b/g;\r\n // eslint-disable-next-line no-control-regex\r\n const nonEnglishCharRegex = /[^\\x00-\\x7F]+/g;\r\n\r\n // Calculate length of English words\r\n const englishWords = xContentString.match(englishWordRegex);\r\n if (englishWords) {\r\n englishWords.forEach(word => {\r\n totalLength += word.length; // Add the length of each English word\r\n });\r\n }\r\n\r\n // Calculate length of non-English characters\r\n const nonEnglishMatches = xContentString.match(nonEnglishCharRegex);\r\n if (nonEnglishMatches) {\r\n nonEnglishMatches.forEach(match => {\r\n totalLength += match.length * 3; // Each non-English character counts as 3\r\n });\r\n }\r\n\r\n return totalLength;\r\n\r\n }\r\n return 0;\r\n}\r\n\r\nappUserContentManager.setCurrentSelectedPageSectionGUID = function (xPageSectionGUID) {\r\n try {\r\n let zPageColumns = window.PageColumns;\r\n let zCurrentPageColumn: IFC_Page_Column = zPageColumns[UIS.currentUserContentPageColumnIndex];\r\n zCurrentPageColumn.currentSelectedPageSectionGUID = xPageSectionGUID;\r\n UIS.startSectionIndex4Rendering = -1;\r\n } catch (e) {\r\n cerr(e);\r\n }\r\n}\r\n\r\n// * page state events, via history API (back/forward)\r\nsetTimeout(function () {\r\n\r\n history.pushState({isFirstPage: true}, \"\", \"\");\r\n history.pushState({isFirstPage: true}, \"\", \"\");\r\n history.pushState({}, \"\", \"\");\r\n}, 1000);\r\n\r\nlet zLastUserContentPageGUID = \"\";\r\nwindow.emitter.on(TYPE_EVENT.PAGE_STATE_CHANGED, function () {\r\n //\r\n /*if (UIS.currentUserContentPageGUID != zLastUserContentPageGUID) {\r\n history.pushState({lastUserContentPageGUID: zLastUserContentPageGUID}, \"\", \"\");\r\n zLastUserContentPageGUID = UIS.currentUserContentPageGUID;\r\n }*/\r\n\r\n // ** init PageData\r\n let zPageData: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n if (!zPageData) return;\r\n UIS.currentPageData = zPageData;\r\n\r\n // ** init starredSectionGUIDs\r\n if (!zPageData.starredSectionGUIDs) {\r\n zPageData.starredSectionGUIDs = reactive([]);\r\n _.each(zPageData.pageSections, function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection && xPageSection._GUID && xPageSection._isStarred) {\r\n zPageData.starredSectionGUIDs.push(xPageSection._GUID);\r\n }\r\n })\r\n }\r\n\r\n //init PlayOptions\r\n if (!zPageData.playOptions) {\r\n zPageData.playOptions = {\r\n ifHideRefs4AIReplySlide: false,\r\n ifHideAllRefLink: false,\r\n defaultThemeName: \"\",\r\n }\r\n }\r\n\r\n // ** init UI\r\n UIS.filterCode = TYPE_FILTER_CODE.NONE;\r\n UIS.selectedGroupHeaderTitleInPageColumn0 = \"\";\r\n UIS.currentUserContentPageColumnIndex = 0;\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex);\r\n appUserContentManager.resetPageColumn(UIS.currentUserContentPageColumnIndex);\r\n\r\n setTimeout(function () {\r\n appUserContentManager.scrollPageTo(\"top\");\r\n }, 500);\r\n})\r\n\r\nlet emitPageGoBack = _.debounce(function () {\r\n window.emitter.emit(TYPE_EVENT.PAGE_GO_BACK)\r\n}, 100);\r\nwindow.addEventListener(\"popstate\", (event) => {\r\n let zPageState = nz(event.state);\r\n\r\n if (zPageState.isFirstPage) {\r\n history.go(1);\r\n }\r\n\r\n emitPageGoBack();\r\n});\r\n\r\n\r\n","// @TS-NOCHECK\r\nimport {\r\n IFC_AIPrompt_Provider,\r\n IFC_CommandItems,\r\n IFC_CommandManager,\r\n IFC_UserContentManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {TYPE_AI_ACTION, TYPE_EVENT, TYPE_INPUT_COMMAND, TYPE_WEB_SEARCH_ACTION} from \"@/codes/_20.def/_modDataDict\";\r\nimport {IFC_Page_Data} from \"@/codes/_20.def/dataTypes\";\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\n\r\nvar appCommandManager: IFC_CommandManager = {};\r\nwindow.appCommandManager = appCommandManager;\r\n\r\ndeclare var appUserContentManager: IFC_UserContentManager;\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\n\r\nappCommandManager.followupQuestions = [];\r\n\r\nappCommandManager.commands = [\r\n TYPE_INPUT_COMMAND.USER_MEMO,\r\n TYPE_INPUT_COMMAND.USER_HEADER,\r\n TYPE_INPUT_COMMAND.AI_PLUS_SEARCH,\r\n TYPE_INPUT_COMMAND.IMAGE_SEARCH,\r\n TYPE_INPUT_COMMAND.NEWS_SEARCH,\r\n TYPE_INPUT_COMMAND.AI_REPLY,\r\n TYPE_INPUT_COMMAND.AI_ANALYZING,\r\n TYPE_INPUT_COMMAND.AI_FOLLOWUPS,\r\n TYPE_INPUT_COMMAND.AI_RELATED,\r\n TYPE_INPUT_COMMAND.AI_QUESTIONS,\r\n TYPE_INPUT_COMMAND.AI_NOTE,\r\n TYPE_INPUT_COMMAND.WEB_SEARCH,\r\n TYPE_INPUT_COMMAND.WEB_SCRAPE,\r\n TYPE_INPUT_COMMAND.AI_SUMMARIZE,\r\n TYPE_INPUT_COMMAND.AI_OUTLINE,\r\n TYPE_INPUT_COMMAND.BLANK_TOPIC,\r\n]\r\n\r\n// xCallbackProc(db,tx,store)\r\nappCommandManager.querySuitableCommand4Input = function (xInputString) {\r\n let zInputString = nz(xInputString, \"\").trim();\r\n let zInputStringLow = zInputString.toLowerCase();\r\n let zResult: [IFC_CommandItems] = [];\r\n // ** matched commands\r\n\r\n _.each(appCommandManager.commands, function (xCommandString: string) {\r\n let zCommandStringLow = nz(xCommandString, \"\").toLowerCase();\r\n if (\r\n zInputStringLow.startsWith(zCommandStringLow + \" \")\r\n ||\r\n zInputStringLow.endsWith(zCommandStringLow)\r\n ) {\r\n zResult.push({value: zInputString, description: xCommandString});\r\n }\r\n });\r\n\r\n\r\n // ** all commands\r\n if ((!zResult.length) && zInputString) {\r\n _.each(appCommandManager.commands, function (xCommandString: string) {\r\n zResult.push({value: zInputString + \" \" + xCommandString, description: xCommandString});\r\n });\r\n }\r\n\r\n return zResult;\r\n}\r\n\r\n// xInputString: \"/AIPoints What is LLM\"\r\nappCommandManager.runCommandString = async function (xInputString) {\r\n // * init\r\n let zInputString = nz(xInputString, \"\").trim();\r\n let zInputStringLow = zInputString.toLowerCase();\r\n appUserContentManager.tempRefLinkAllString=\"\";\r\n\r\n // * analyse commands\r\n _.each(appCommandManager.commands, function (xCommandString: string) {\r\n let zCommandStringLow = nz(xCommandString, \"\").toLowerCase();\r\n if (\r\n zInputStringLow.startsWith(zCommandStringLow + \" \")\r\n ||\r\n zInputStringLow.endsWith(zCommandStringLow)\r\n ) {\r\n let zUserMsg = zInputString.replace(xCommandString, \"\");\r\n let zPageItem: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n\r\n appCommandManager.currentUserMessage = zUserMsg;\r\n\r\n if (!zUserMsg) return;\r\n\r\n\r\n // ** WEB_SCRAPE\r\n if (xCommandString == TYPE_INPUT_COMMAND.WEB_SCRAPE) {\r\n setTimeout(function () {\r\n appUserContentManager.upsertPageSectionsFromWebPageScrape(\r\n UIS.currentUserContentPageGUID,\r\n appCommandManager.currentHeaderGUID,\r\n {\r\n userMessage: zUserMsg,\r\n followupQuestions: appCommandManager.followupQuestions,\r\n });\r\n }, 10);\r\n\r\n }\r\n\r\n // ** AI_PLUS_SEARCH\r\n if (xCommandString == TYPE_INPUT_COMMAND.AI_PLUS_SEARCH) {\r\n appUserContentManager.upsertPageSectionsFromAIPlusSearch(\r\n UIS.currentUserContentPageGUID,\r\n appCommandManager.currentHeaderGUID,\r\n {\r\n userMessage: zUserMsg,\r\n followupQuestions: appCommandManager.followupQuestions,\r\n });\r\n // AIActionType: TYPE_AI_ACTION.ForPoints,\r\n // modelType:\"lite\", // quality's too bad\r\n }\r\n\r\n // ** IMAGE_SEARCH\r\n if (xCommandString == TYPE_INPUT_COMMAND.IMAGE_SEARCH) {\r\n appUserContentManager.upsertPageSectionsFromAIPlusSearch(\r\n UIS.currentUserContentPageGUID,\r\n appCommandManager.currentHeaderGUID,\r\n {\r\n userMessage: zUserMsg,\r\n followupQuestions: appCommandManager.followupQuestions,\r\n }, {\r\n type: \"images\"\r\n });\r\n }\r\n\r\n // ** NEWS_SEARCH\r\n if (xCommandString == TYPE_INPUT_COMMAND.NEWS_SEARCH) {\r\n appUserContentManager.upsertPageSectionsFromAIPlusSearch(\r\n UIS.currentUserContentPageGUID,\r\n appCommandManager.currentHeaderGUID,\r\n {\r\n userMessage: zUserMsg,\r\n followupQuestions: appCommandManager.followupQuestions,\r\n }, {\r\n type: \"news\"\r\n });\r\n }\r\n\r\n // ** AI_REPLY\r\n if (xCommandString == TYPE_INPUT_COMMAND.AI_REPLY) {\r\n appUserContentManager.upsertPageSectionsFromAIReply(\r\n UIS.currentUserContentPageGUID,\r\n appCommandManager.currentHeaderGUID,\r\n {\r\n userMessage: zUserMsg,\r\n followupQuestions: appCommandManager.followupQuestions,\r\n AIActionType: TYPE_AI_ACTION.ForPoints,\r\n modelType:\"high\",\r\n });\r\n // modelType:\"lite\", // quality's too bad\r\n }\r\n\r\n // ** AI_SUMMARIZE\r\n if (xCommandString == TYPE_INPUT_COMMAND.AI_SUMMARIZE) {\r\n appUserContentManager.upsertPageSectionsFromAIReply(\r\n UIS.currentUserContentPageGUID,\r\n appCommandManager.currentHeaderGUID,\r\n {\r\n userMessage: zUserMsg,\r\n followupQuestions: appCommandManager.followupQuestions,\r\n AIActionType: TYPE_AI_ACTION.ForSummary,\r\n });\r\n // modelType:\"lite\", // quality's too bad\r\n }\r\n\r\n // ** AI_OUTLINE\r\n if (xCommandString == TYPE_INPUT_COMMAND.AI_OUTLINE) {\r\n appUserContentManager.upsertPageSectionsFromAIReply(\r\n UIS.currentUserContentPageGUID,\r\n appCommandManager.currentHeaderGUID,\r\n {\r\n userMessage: zUserMsg,\r\n followupQuestions: appCommandManager.followupQuestions,\r\n AIActionType: TYPE_AI_ACTION.ForOutline,\r\n });\r\n }\r\n\r\n // ** AI_Followups\r\n if (xCommandString == TYPE_INPUT_COMMAND.AI_FOLLOWUPS) {\r\n let zAISessionGUID = chance.guid();\r\n let zPageColumns = window.PageColumns;\r\n let zCurrentPageColumn: IFC_Page_Column = zPageColumns[UIS.currentUserContentPageColumnIndex];\r\n zCurrentPageColumn.followupSessionGUID = zAISessionGUID;\r\n\r\n appUserContentManager.upsertFollowupsFromAskAI({\r\n _GUID: zAISessionGUID,\r\n userMessage: nz(zUserMsg, \"\").substring(0, 200),\r\n AIActionType: TYPE_AI_ACTION.ForFollowUps,\r\n // AIActionType: TYPE_AI_ACTION.ForOutline,\r\n });\r\n // modelType:\"lite\",\r\n //\r\n // console.log(\"*ffup mdl lt\")\r\n }\r\n\r\n // ** BLANK_TOPIC\r\n if (xCommandString == TYPE_INPUT_COMMAND.BLANK_TOPIC) {\r\n //\r\n }\r\n\r\n /*// ** AI_ANALYZING\r\n else if (xCommandString == TYPE_INPUT_COMMAND.AI_ANALYZING) {\r\n appUserContentManager.upsertPageSectionsFromAIPlusSearch(UIS.currentUserContentPageGUID, {\r\n userMessage: zUserMsg,\r\n AIActionType: TYPE_AI_ACTION.ForAnalyzing,\r\n modelType:\"lite\",\r\n });\r\n }\r\n // ** AI_RELATED\r\n else if (xCommandString == TYPE_INPUT_COMMAND.AI_RELATED) {\r\n appUserContentManager.upsertPageSectionsFromAIPlusSearch(UIS.currentUserContentPageGUID, {\r\n userMessage: zUserMsg,\r\n AIActionType: TYPE_AI_ACTION.ForRelated,\r\n modelType:\"lite\",\r\n });\r\n }\r\n // ** AI_NOTE\r\n else if (xCommandString == TYPE_INPUT_COMMAND.AI_NOTE) {\r\n appUserContentManager.upsertPageSectionsFromAIPlusSearch(UIS.currentUserContentPageGUID, {\r\n userMessage: zUserMsg,\r\n AIActionType: TYPE_AI_ACTION.ForAINote,\r\n });\r\n }\r\n // ** AI_QUESTIONS\r\n else if (xCommandString == TYPE_INPUT_COMMAND.AI_QUESTIONS) {\r\n appUserContentManager.upsertPageSectionsFromAIPlusSearch(UIS.currentUserContentPageGUID, {\r\n userMessage: zUserMsg,\r\n AIActionType: TYPE_AI_ACTION.ForQuestions,\r\n });\r\n }*/\r\n // ** OTHERS?\r\n else {\r\n\r\n //\r\n }\r\n\r\n }\r\n\r\n });\r\n}\r\n\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"rc3 uk-clearfix ra\"\n}\nconst _hoisted_2 = { class: \"el-dropdown-link hotLink inline-block app-comment\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"inline-block\"\n}\nconst _hoisted_4 = {\n class: \"no-select\",\n style: {\"width\":\"240px\"}\n}\nconst _hoisted_5 = { class: \"can-select uk-clearfix margin10 text-black text12B\" }\nconst _hoisted_6 = { class: \"\" }\nconst _hoisted_7 = {\n key: 0,\n class: \"uk-clearfix margin10 text-black-60 bold text12B\",\n style: {\"padding-left\":\"20px\"}\n}\nconst _hoisted_8 = { class: \"inline-block text-black\" }\nconst _hoisted_9 = {\n key: 0,\n class: \"inline-block text-black margin5-lr\"\n}\nconst _hoisted_10 = {\n key: 1,\n class: \"inline-block text-black margin5-lr\"\n}\nconst _hoisted_11 = {\n key: 1,\n class: \"uk-clearfix margin10 text-black-60 bold text12B\"\n}\nconst _hoisted_12 = {\n class: \"inline-block text-black-60\",\n style: {\"padding-left\":\"20px\"}\n}\nconst _hoisted_13 = {\n class: \"uk-clearfix margin10 text-black-60 text12B\",\n style: {\"padding-left\":\"20px\"}\n}\nconst _hoisted_14 = {\n class: \"inline-block text12B\",\n style: {}\n}\nconst _hoisted_15 = {\n class: \"uk-clearfix margin10 text-black-60 text12B\",\n style: {\"padding-left\":\"20px\"}\n}\nconst _hoisted_16 = {\n class: \"uk-clearfix margin10 text-black-60 bold text12B\",\n style: {\"padding-left\":\"20px\"}\n}\nconst _hoisted_17 = { class: \"inline-block text-black-60\" }\nconst _hoisted_18 = {\n class: \"uk-clearfix margin10 text-black-60 text12B\",\n style: {\"padding-left\":\"20px\"}\n}\nconst _hoisted_19 = { class: \"uk-clearfix margin10 text-black text12B\" }\nconst _hoisted_20 = {\n key: 2,\n class: \"uk-clearfix margin10 text-black text12B\"\n}\nconst _hoisted_21 = { class: \"uk-clearfix margin10 text-black text12B\" }\nconst _hoisted_22 = {\n key: 0,\n class: \"text-black-30 text12 uk-clearfix\"\n}\nconst _hoisted_23 = {\n key: 0,\n class: \"inline-block text-black margin5-lr\"\n}\nconst _hoisted_24 = {\n key: 1,\n class: \"inline-block text-black margin5-lr\"\n}\nconst _hoisted_25 = {\n key: 2,\n class: \"inline-block text-black margin5-lr\"\n}\nconst _hoisted_26 = {\n key: 1,\n class: \"ccc-color-primary text12 uk-clearfix\"\n}\n\n\r\nimport {TYPE_PROP, TYPE_SUBSCRIPTION_PLAN} from \"../../_20.def/_modDataDict\";\r\n\r\n\r\nimport {defineComponent} from 'vue'\r\n\r\nimport {\r\n IFC_AIManager,\r\n IFC_PageTemplateManager,\r\n IFC_UserContentManager,\r\n IFC_UserManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {\r\n GUID_TYPE,\r\n IFC_Page_Column,\r\n IFC_Page_Section,\r\n IFC_UIS,\r\n IFC_Page_Data,\r\n IFC_User_Info\r\n} from \"@/codes/_20.def/dataTypes\";\r\nimport {TYPE_SECTION} from \"@/codes/_20.def/_modDataDict\";\r\nimport {reactive} from 'vue';\r\n\r\nimport {lockResultPageUI, unlockResultPageUI} from \"@/codes/_10.sys/UICommittee\"\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\n\r\nvar appUserManager: IFC_UserManager = window.appUserManager;\r\n\r\n\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\nimport {SYSS} from \"@/codes/_10.sys/A0Committee\";\r\n\r\nconst __default__ = {\r\n computed: {\r\n creditsNumString() {\r\n let zUserInfo: IFC_User_Info = appUserManager.currentUserInfo;\r\n let zResCredits = 0;\r\n if (!zUserInfo) return \"-\";\r\n zResCredits = zUserInfo.credits;\r\n if (!zResCredits) return \"-\";\r\n\r\n if (zResCredits > 0) {\r\n return new Intl.NumberFormat('en-US').format(zResCredits);\r\n }\r\n\r\n return \"\";\r\n },\r\n subDate() {\r\n let zUserInfo: IFC_User_Info = appUserManager.currentUserInfo;\r\n if (!zUserInfo) return \"-\";\r\n if (!zUserInfo.subEndDT) return \"--\";\r\n let zSubDate = new Date(zUserInfo.subEndDT);\r\n return zSubDate.toLocaleDateString();\r\n },\r\n\r\n paidSubPlanName() {\r\n if (appUserManager.checkIsPaidSubPlanUser()) {\r\n return appUserManager.currentUserInfo.subPlanType;\r\n }\r\n return \"\";\r\n },\r\n isApprovedSubPlanUser() {\r\n return appUserManager.checkIsApprovedSubPlanUser();\r\n }\r\n },\r\n\r\n props: {\r\n userInfo: {\r\n type: Object,\r\n // required: true\r\n },\r\n /*pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true\r\n },\r\n sectionCardStyle: String,\r\n parentViewMode: Boolean,*/\r\n },\r\n methods: {},\r\n name: \"UserAccountMenu\",\r\n\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n emits: [\"onSignOut\", \"onManageSubscription\", \"onUpgradeSubscription\"],\n setup(__props, { emit: __emit }) {\n\r\n\r\nconst emit = __emit;\r\n\r\n\r\nconst getUserInfo2Show = function (xUser: any) {\r\n if (xUser) {\r\n console.log(\"*usr\", xUser);\r\n /*if (xUser.attributes && xUser.attributes.email) {\r\n if ((!localStorage[\"email\"]) || (xUser.attributes.email != localStorage[\"email\"])) {\r\n localStorage[\"email\"] = xUser.attributes.email;\r\n console.log(\"*usr loc\", xUser.attributes.email, localStorage[\"email\"]);\r\n appUserManager.currentUserInfo.email = xUser.attributes.email;\r\n appUserManager.letUserJumpIn(appUserManager.currentUserInfo);\r\n }\r\n\r\n return xUser.attributes.email;\r\n }*/\r\n if (xUser.email) {\r\n return xUser.email;\r\n }\r\n\r\n return\r\n }\r\n return \"\"\r\n}\r\n\r\nconst clickManageSubscription = function () {\r\n // console.log(\"*onMngSub\");\r\n emit(\"onManageSubscription\");\r\n}\r\n\r\nconst clickUpgradeSubPlan = function () {\r\n // console.log(\"*onUpdSub\");\r\n emit(\"onUpgradeSubscription\");\r\n}\r\n\r\n\r\nconst clickSignOut = function () {\r\n emit(\"onSignOut\");\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_dropdown_menu = _resolveComponent(\"el-dropdown-menu\")!\n const _component_el_dropdown = _resolveComponent(\"el-dropdown\")!\n\n return (getUserInfo2Show(__props.userInfo))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_el_dropdown, { trigger: \"click\" }, {\n dropdown: _withCtx(() => [\n _createVNode(_component_el_dropdown_menu, { class: \"margin5\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _cache[4] || (_cache[4] = _createElementVNode(\"div\", { class: \"inline-block\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-user2 img16\" })\n ], -1)),\n _createTextVNode(\" \" + _toDisplayString(getUserInfo2Show(__props.userInfo)), 1)\n ])\n ]),\n _cache[9] || (_cache[9] = _createElementVNode(\"hr\", null, null, -1)),\n (_ctx.paidSubPlanName)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, _toDisplayString(_ctx.paidSubPlanName), 1),\n (_ctx.paidSubPlanName==_unref(TYPE_SUBSCRIPTION_PLAN).Lite)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9, \"🌱\"))\n : _createCommentVNode(\"\", true),\n (_ctx.paidSubPlanName==_unref(TYPE_SUBSCRIPTION_PLAN).Premium)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, \"✨\"))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true),\n (!_ctx.paidSubPlanName)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_11, [\n _createElementVNode(\"div\", _hoisted_12, _toDisplayString(_ctx.$t(\"Free Trial\")), 1)\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_13, [\n _createElementVNode(\"div\", _hoisted_14, _toDisplayString(_ctx.$t(\"Credits\")) + \": \" + _toDisplayString(_ctx.creditsNumString || _ctx.$t(\"Out_Of_Credits\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_15, _toDisplayString(_ctx.$t(\"SubEnd_Date\")) + \" \" + _toDisplayString(_ctx.subDate), 1),\n _createElementVNode(\"div\", _hoisted_16, [\n _createElementVNode(\"div\", _hoisted_17, _toDisplayString(_ctx.$t(\"Support\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_18, _toDisplayString(_unref(TYPE_PROP).APP_SUPPORT_EMAIL), 1),\n _cache[10] || (_cache[10] = _createElementVNode(\"hr\", null, null, -1)),\n _createElementVNode(\"div\", _hoisted_19, [\n _createElementVNode(\"div\", {\n class: \"text12B hotLink\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (clickUpgradeSubPlan()))\n }, [\n _cache[5] || (_cache[5] = _createElementVNode(\"div\", { class: \"inline-block\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-cart img16\" })\n ], -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Buy_Credits\")), 1)\n ])\n ]),\n _cache[11] || (_cache[11] = _createElementVNode(\"hr\", null, null, -1)),\n (_ctx.paidSubPlanName)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_20, [\n _createElementVNode(\"div\", {\n class: \"text12B hotLink\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (clickManageSubscription()))\n }, [\n _cache[6] || (_cache[6] = _createElementVNode(\"div\", { class: \"inline-block\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-cog3 img16\" })\n ], -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Manage_Payment\")), 1)\n ]),\n _cache[7] || (_cache[7] = _createElementVNode(\"hr\", null, null, -1))\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_21, [\n _createElementVNode(\"div\", {\n class: \"text12B hotLink\",\n onClick: clickSignOut\n }, [\n _cache[8] || (_cache[8] = _createElementVNode(\"div\", { class: \"inline-block\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-exit3 img16\" })\n ], -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Sign_out\")), 1)\n ])\n ])\n ])\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _cache[3] || (_cache[3] = _createElementVNode(\"div\", { class: \"inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-user img16\" })\n ], -1)),\n (!_unref(UIS).isMiniScreenMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, _toDisplayString(getUserInfo2Show(__props.userInfo)), 1))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n }),\n (_ctx.creditsNumString)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_22, [\n (_unref(SYSS).MOD_CODE)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_23, \"⚙️\" + _toDisplayString(_unref(SYSS).MOD_CODE), 1))\n : _createCommentVNode(\"\", true),\n (_ctx.paidSubPlanName==_unref(TYPE_SUBSCRIPTION_PLAN).Lite)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_24, \"🌱\"))\n : _createCommentVNode(\"\", true),\n (_ctx.paidSubPlanName==_unref(TYPE_SUBSCRIPTION_PLAN).Premium)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_25, \"✨\"))\n : _createCommentVNode(\"\", true),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Credits\")) + \": \" + _toDisplayString(_ctx.creditsNumString), 1)\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_26, [\n _createElementVNode(\"div\", {\n class: \"hotLink\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (clickUpgradeSubPlan()))\n }, [\n _cache[12] || (_cache[12] = _createElementVNode(\"div\", { class: \"inline-block\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-cart img16\" })\n ], -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Buy_Credits\")), 1)\n ])\n ]))\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./UserAccountMenu.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./UserAccountMenu.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, vShow as _vShow, withDirectives as _withDirectives, createVNode as _createVNode } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"ccc-back-blur absolute-max background-black-60\",\n style: {\"z-index\":\"10\"}\n}\nconst _hoisted_2 = {\n id: \"panEmptyPage\",\n style: {\"z-index\":\"199\",\"position\":\"absolute\",\"left\":\"20%\",\"right\":\"20%\",\"top\":\"36px\",\"bottom\":\"5px\"},\n class: \"ca rc2 no-overflow\"\n}\nconst _hoisted_3 = { id: \"divUserInputCenter\" }\nconst _hoisted_4 = { id: \"divNavButtonBar\" }\nconst _hoisted_5 = {\n key: 0,\n style: {\"z-index\":\"899\",\"position\":\"absolute\",\"top\":\"38px\",\"height\":\"20px\",\"right\":\"15px\"},\n class: \"no-select\"\n}\n\n\r\nimport {IFC_UserContentManager, IFC_UserManager} from \"@/codes/_20.def/managerIFs\";\r\nimport {TYPE_INDEX_SIDEBAR} from \"@/codes/_20.def/_modDataDict\";\r\nimport {TYPE_SUBSCRIPTION_STATUS} from \"@/codes/_20.def/_modDataDict\";\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\nimport {GUID_TYPE, IFC_Page_Column, IFC_Page_Data, IFC_Page_Section, IFC_User_Info} from \"@/codes/_20.def/dataTypes\";\r\n\r\ndeclare var window: any;\r\ndeclare var appUserContentManager: IFC_UserContentManager;\r\ndeclare var $: any;\r\ndeclare var nz: any;\r\n\r\nlet appUserManager: IFC_UserManager = window.appUserManager;\r\n\r\ndeclare var _: any;\r\n\r\n// import {Authenticator} from \"@aws-amplify/ui-vue\";\r\nimport \"@/css/amplify.css\";\r\n\r\n// import {Amplify, Auth, Hub} from 'aws-amplify';\r\n// import awsconfig from '@/aws-exports';\r\nimport {TYPE_EVENT, TYPE_PROP} from \"@/codes/_20.def/_modDataDict\";\r\nimport UserAccountMenu from \"@/codes/_40.view/menu/UserAccountMenu.vue\";\r\n\r\n\r\nconst __default__ = {\r\n name: 'panMain',\r\n // other component options...\r\n computed: {\r\n paidSubPlanName() {\r\n if (appUserManager.checkIsPaidSubPlanUser()) {\r\n return appUserManager.currentUserInfo.subPlanType;\r\n }\r\n return \"\";\r\n },\r\n\r\n selectedPageSectionGUID(): GUID_TYPE {\r\n return nz(appUserContentManager.getCurrentSelectedPageSectionGUID(), \"\");\r\n },\r\n }\r\n}\r\n\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\n\r\nconst getResultPageStyle = function () {\r\n let zResStyle: any = {};\r\n let zSelectedPageSectionGUID = appUserContentManager.getCurrentSelectedPageSectionGUID();\r\n\r\n if (UIS.isMiniScreenMode) {\r\n zResStyle.left = \"0px\";\r\n zResStyle.right = \"64px\";\r\n } else {\r\n\r\n // zResStyle.width = `calc(100% - ${zPaddingWidth}px)`;\r\n zResStyle.right = `${UIS.rightMenuBarWidth}px`;\r\n\r\n if (UIS.currentUserContentPageColumnIndex > 0) {\r\n zResStyle.left = `180px`;\r\n } else {\r\n zResStyle.left = `${UIS.leftMenuBarWidth + 10}px`;\r\n }\r\n\r\n\r\n /*if (zSelectedPageSectionGUID) {\r\n if (!UIS.ifGoBackAnimation) {\r\n // zResStyle.transition = \"left 0.05s\";\r\n }\r\n // zResStyle.left = \"10px\";\r\n zResStyle.left = `${UIS.leftMenuBarWidth + 10}px`;\r\n } else {\r\n zResStyle.left = `${UIS.leftMenuBarWidth + 10}px`;\r\n\r\n if (UIS.ifGoBackAnimation) {\r\n // zResStyle.transition = \"left 0.05s\";\r\n }*/\r\n /*if (UIS.currentUserContentPageColumnIndex>0){\r\n zResStyle.left=`${zPaddingWidth}px`;\r\n if (!UIS.ifGoBackAnimation) {zResStyle.transition=\"\";}\r\n } else {\r\n zResStyle.left=`${zPaddingWidth/2}px`;\r\n\r\n }\r\n\r\n }*/\r\n\r\n }\r\n\r\n return zResStyle;\r\n}\r\n\r\n\r\nconst getRightSideBarStyle = function () {\r\n let zResStyle: any = {};\r\n let zSelectedPageSectionGUID = appUserContentManager.getCurrentSelectedPageSectionGUID();\r\n\r\n if (UIS.isMiniScreenMode) {\r\n zResStyle.width = \"64px\";\r\n } else {\r\n\r\n\r\n zResStyle.width = `${UIS.rightMenuBarWidth}px`;\r\n\r\n\r\n /*if (UIS.currentUserContentPageColumnIndex > 0) {\r\n zResStyle.right = \"5px\";\r\n } else {\r\n if (zSelectedPageSectionGUID) {\r\n zResStyle.right = \"5px\";\r\n }\r\n\r\n }\r\n*/\r\n }\r\n\r\n\r\n return zResStyle;\r\n}\r\n\r\nconst getDiveMenuBarStyle = function () {\r\n let zResStyle: any = {};\r\n\r\n if (UIS.isMiniScreenMode) {\r\n zResStyle.left = \"0px\";\r\n zResStyle.width = \"64px\";\r\n } else {\r\n if (UIS.currentUserContentPageColumnIndex > 0) {\r\n zResStyle.width = `180px`;\r\n zResStyle.left = \"0px\";\r\n } else {\r\n zResStyle.width = `${UIS.leftMenuBarWidth}px`;\r\n zResStyle.left = \"0px\";\r\n }\r\n }\r\n\r\n\r\n return zResStyle;\r\n}\r\n\r\nconst clickBackground = function () {\r\n\r\n // console.error(\"*clk bkg?\");\r\n /*if (appUserContentManager.getCurrentSelectedPageSectionGUID()) {\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex);\r\n }*/\r\n UIS.ifChattingUI = false;\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SIDEBAR_CLOSED;\r\n}\r\n\r\nconst clickSignOut = function () {\r\n appUserManager.letUserSignOutSync();\r\n}\r\n\r\nconst clickManageSubscription = function () {\r\n let zSubManagerURL = TYPE_PROP.SUB_MANAGER_URL;\r\n window.open(zSubManagerURL, '_blank').focus();\r\n}\r\n\r\n\r\nconst clickUpgradeSubscription = function () {\r\n appUserManager.gotoUpgradeSubscription();\r\n}\r\n\r\nfunction checkIfUserJumpedIn() {\r\n if (appUserManager && appUserManager.currentUserInfo) {\r\n if (appUserManager.currentUserInfo.username) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n}\r\n\r\nfunction refreshUserInfo() {\r\n // console.log(\"*OPDN,GTU\");\r\n appUserManager.getUserInfo(appUserManager.currentUserInfo);\r\n\r\n setTimeout(function () {\r\n appUserManager.checkIsOutOfCredits();\r\n }, 2000);\r\n}\r\n\r\nvar refreshUserInfoLazy = _.debounce(refreshUserInfo, 4000);\r\n\r\nwindow.emitter.on(TYPE_EVENT.AI_GEN_POINTS_DONE, refreshUserInfoLazy);\r\nwindow.emitter.on(TYPE_EVENT.AI_GEN_SUMMARY_DONE, refreshUserInfoLazy);\r\nwindow.emitter.on(TYPE_EVENT.AI_GEN_CONCLUSION_DONE, refreshUserInfoLazy);\r\nwindow.emitter.on(TYPE_EVENT.AI_GEN_OUTLINE_DONE, refreshUserInfoLazy);\r\nwindow.emitter.on(TYPE_EVENT.AI_GEN_BREAKDOWN_DONE, refreshUserInfoLazy);\r\nwindow.emitter.on(TYPE_EVENT.AI_GEN_ERROR, refreshUserInfoLazy);\r\nwindow.emitter.on(TYPE_EVENT.AI_GEN_CANCELED, refreshUserInfoLazy);\r\nwindow.emitter.on(TYPE_EVENT.SERP_DONE, refreshUserInfoLazy);\r\n\r\n// initialize user info\r\nappUserManager.initializeUserSession(function (err) {\r\n\r\n if (appUserManager.currentSubscriptionStatus == TYPE_SUBSCRIPTION_STATUS.BYO_FREE) {\r\n UIS.isFreePlan = true;\r\n }\r\n\r\n});\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n id: \"panMain0\",\n class: \"app-comment app-back absolute-max\",\n onClick: _cache[3] || (_cache[3] = ($event: any) => (clickBackground())),\n style: {\"background-color\":\"#f2f7f7\"}\n }, [\n ((!_unref(UIS).isSharingViewMode) && (!checkIfUserJumpedIn()))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", {\n style: _normalizeStyle([{\"background-size\":\"cover\",\"background-position\":\"top\",\"z-index\":\"10\",\"opacity\":\"0.5\"}, 'background-image: url('+'./img/app-back-login.jpg'+');']),\n class: \"absolute-max\"\n }),\n _cache[4] || (_cache[4] = _createElementVNode(\"div\", {\n class: \"uk-clearfix padding10 text24 bold ca\",\n style: {\"position\":\"absolute\",\"top\":\"0\",\"left\":\"0\",\"bottom\":\"0\",\"right\":\"0px\",\"z-index\":\"15\"}\n }, [\n _createElementVNode(\"img\", {\n style: {\"z-index\":\"20\",\"height\":\"72px\"},\n src: \"/img/logo-white-long.png\",\n class: \"margin5-lr\"\n })\n ], -1))\n ]))\n : _createCommentVNode(\"\", true),\n _withDirectives(_createElementVNode(\"div\", null, [\n _cache[8] || (_cache[8] = _createElementVNode(\"div\", { id: \"panSysFuncBar\" }, null, -1)),\n _cache[9] || (_cache[9] = _createElementVNode(\"div\", { id: \"panSideBar\" }, null, -1)),\n _withDirectives(_createElementVNode(\"div\", {\n id: \"panDiveMenuBar\",\n class: \"uk-animation-fast uk-animation-fade\",\n style: _normalizeStyle([{\"z-index\":\"199\",\"position\":\"absolute\",\"top\":\"64px\",\"bottom\":\"0px\"}, getDiveMenuBarStyle()])\n }, null, 4), [\n [_vShow, (_unref(UIS).currentUserContentPageGUID)]\n ]),\n _createElementVNode(\"div\", {\n id: \"panResultPages\",\n style: _normalizeStyle([{\"z-index\":\"199\",\"position\":\"absolute\",\"top\":\"64px\",\"bottom\":\"5px\"}, getResultPageStyle()]),\n class: \"no-overflow\"\n }, [\n _withDirectives(_createElementVNode(\"div\", null, _cache[5] || (_cache[5] = [\n _createElementVNode(\"div\", { id: \"divResultPages\" }, null, -1)\n ]), 512), [\n [_vShow, _unref(UIS).currentUserContentPageGUID]\n ])\n ], 4),\n _withDirectives(_createElementVNode(\"div\", _hoisted_2, _cache[6] || (_cache[6] = [\n _createElementVNode(\"div\", { id: \"divEmptyPage\" }, null, -1)\n ]), 512), [\n [_vShow, \r\n (\r\n (!_unref(UIS).currentUserContentPageGUID) ||\r\n (!(_unref(UIS).currentPageData?.pageSections?.length))\r\n )\r\n &&\r\n (checkIfUserJumpedIn())]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_3, null, 512), [\n [_vShow, _unref(UIS).currentUserContentPageGUID]\n ]),\n _withDirectives(_createElementVNode(\"div\", {\n id: \"panRightSideBar\",\n class: \"uk-animation-fast uk-animation-fade\",\n style: _normalizeStyle([{\"z-index\":\"199\",\"position\":\"absolute\",\"top\":\"64px\",\"bottom\":\"0px\",\"right\":\"0px\"}, getRightSideBarStyle()])\n }, _cache[7] || (_cache[7] = [\n _createElementVNode(\"div\", { id: \"panRefInfoBar\" }, null, -1)\n ]), 4), [\n [_vShow, (_unref(UIS).currentUserContentPageGUID)]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_4, null, 512), [\n [_vShow, \r\n _unref(UIS).currentUserContentPageGUID]\n ]),\n ((!_ctx.paidSubPlanName) && (checkIfUserJumpedIn()))\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_5, null, 512)), [\n [_vShow, !_unref(UIS).isSharingViewMode]\n ])\n : _createCommentVNode(\"\", true)\n ], 512), [\n [_vShow, \r\n (checkIfUserJumpedIn() && _unref(appUserManager) && _unref(appUserManager).currentUserInfo)\r\n || (_unref(UIS).isSharingViewMode)\r\n ]\n ]),\n _withDirectives(_createElementVNode(\"div\", {\n style: _normalizeStyle([{\"z-index\":\"899\",\"position\":\"absolute\"}, checkIfUserJumpedIn()\r\n ?'top:16px;height:20px;right:8px;'\r\n :`bottom:72px;\r\n right:${_unref(UIS).isMiniScreenMode?'calc(50% - 164px)':'72px'};\r\n top:${_unref(UIS).isMiniScreenMode?'120px':'72px'};\r\n `]),\n class: \"no-select\"\n }, [\n _createVNode(UserAccountMenu, {\n \"user-info\": _unref(appUserManager).currentUserInfo,\n onOnSignOut: _cache[0] || (_cache[0] = ($event: any) => (clickSignOut())),\n onOnManageSubscription: _cache[1] || (_cache[1] = ($event: any) => (clickManageSubscription())),\n onOnUpgradeSubscription: _cache[2] || (_cache[2] = ($event: any) => (clickUpgradeSubscription()))\n }, null, 8, [\"user-info\"])\n ], 4), [\n [_vShow, !_unref(UIS).isSharingViewMode]\n ])\n ]))\n}\n}\n\n})","import script from \"./panMain.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./panMain.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, vShow as _vShow, createElementVNode as _createElementVNode, withDirectives as _withDirectives, withModifiers as _withModifiers, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, renderList as _renderList, Fragment as _Fragment, normalizeStyle as _normalizeStyle, vModelText as _vModelText, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, withKeys as _withKeys, isRef as _isRef } from \"vue\"\n\nconst _hoisted_1 = [\"accept\"]\nconst _hoisted_2 = {\n class: \"\",\n style: {\"position\":\"absolute\",\"right\":\"12px\",\"z-index\":\"299\",\"top\":\"12px\"}\n}\nconst _hoisted_3 = {\n style: {\"position\":\"absolute\",\"right\":\"32px\",\"z-index\":\"299\",\"top\":\"10px\"},\n class: \"no-select\"\n}\nconst _hoisted_4 = { class: \"inline-block margin10-lr\" }\nconst _hoisted_5 = {\n key: 0,\n class: \"inline-block\"\n}\nconst _hoisted_6 = { class: \"inline-block\" }\nconst _hoisted_7 = {\n class: \"\",\n style: {\"position\":\"absolute\",\"left\":\"12px\",\"z-index\":\"299\",\"top\":\"12px\"}\n}\nconst _hoisted_8 = {\n class: \"\",\n style: {\"margin\":\"25px\"}\n}\nconst _hoisted_9 = { class: \"uk-clearfix marginb10\" }\nconst _hoisted_10 = {\n key: 0,\n class: \"la text16 text-white-60 margin5\"\n}\nconst _hoisted_11 = {\n class: \"uk-clearfix la\",\n style: {\"margin\":\"0px 32px\"}\n}\nconst _hoisted_12 = [\"onClick\"]\nconst _hoisted_13 = {\n key: 0,\n class: \"lt\"\n}\nconst _hoisted_14 = [\"src\"]\nconst _hoisted_15 = {\n key: 2,\n class: \"lt margin5-lr\",\n style: {\"margin-top\":\"1px\"}\n}\nconst _hoisted_16 = {\n key: 3,\n class: \"rt text-white-30 text12 italic\"\n}\nconst _hoisted_17 = {\n class: \"\",\n style: {\"margin\":\"0px\"}\n}\nconst _hoisted_18 = { class: \"text14 text-black\" }\nconst _hoisted_19 = { class: \"uk-clearfix la\" }\nconst _hoisted_20 = {\n key: 0,\n class: \"inline-block no-overflow\",\n style: {\"width\":\"calc(100%)\",\"background\":\"RGBA(0,0,0,0.5)\"}\n}\nconst _hoisted_21 = [\"rows\", \"placeholder\", \"maxlength\"]\nconst _hoisted_22 = {\n key: 1,\n class: \"uk-clearfix no-overflow text-white-60\",\n style: {\"margin\":\"45px 25px 25px 25px\"}\n}\nconst _hoisted_23 = {\n key: 0,\n class: \"text-white text14\"\n}\nconst _hoisted_24 = {\n key: 1,\n class: \"text-white-30 text12B margin10-lr\"\n}\nconst _hoisted_25 = { class: \"uk-clearfix\" }\nconst _hoisted_26 = {\n class: \"uk-clearfix ca uk-flex uk-flex-center\",\n style: {\"padding\":\"0px 0px 0px 0px\"}\n}\nconst _hoisted_27 = {\n class: \"rt text12B ca\",\n style: {\"margin\":\"5px 5px 5px 5px\"}\n}\nconst _hoisted_28 = { class: \"inline-block margin10-lr\" }\nconst _hoisted_29 = {\n key: 0,\n class: \"ccc-icon-checkbox-checked2 text-white img16\"\n}\nconst _hoisted_30 = {\n key: 1,\n class: \"ccc-icon-checkbox-unchecked2 img16\"\n}\nconst _hoisted_31 = {\n class: \"rt text12B ca\",\n style: {\"margin\":\"5px 0px 10px 0px\"}\n}\nconst _hoisted_32 = { class: \"inline-block margin10-lr\" }\nconst _hoisted_33 = {\n class: \"lt text-white-60 margin5-lr\",\n style: {}\n}\nconst _hoisted_34 = {\n class: \"lt margin5-lr text-white\",\n style: {\"padding-top\":\"2px\"}\n}\nconst _hoisted_35 = {\n class: \"rt text12B ca\",\n style: {\"margin\":\"5px 5px 5px 5px\"}\n}\nconst _hoisted_36 = { class: \"el-dropdown-link hotLinkLight inline-block text-white text12B\" }\nconst _hoisted_37 = {\n key: 0,\n class: \"inline-block\"\n}\nconst _hoisted_38 = {\n key: 1,\n class: \"inline-block\"\n}\nconst _hoisted_39 = {\n class: \"no-select\",\n style: {\"width\":\"200px\"}\n}\nconst _hoisted_40 = { class: \"uk-clearfix app-comment\" }\nconst _hoisted_41 = { class: \"margin10-lr text-black-30 no-overflow ellipsis\" }\nconst _hoisted_42 = { class: \"uk-clearfix text12B\" }\nconst _hoisted_43 = {\n key: 0,\n class: \"uk-clearfix text-white-60 ca\"\n}\nconst _hoisted_44 = { class: \"inline-block margin5-lr text-white\" }\nconst _hoisted_45 = { class: \"inline-block margin5-lr text-white\" }\nconst _hoisted_46 = {\n class: \"uk-clearfix\",\n style: {\"margin\":\"0px 100px\"}\n}\nconst _hoisted_47 = { class: \"uk-clearfix margin5 ca\" }\nconst _hoisted_48 = {\n key: 0,\n class: \"lt margin5-lr\",\n style: {\"margin-top\":\"1px\"}\n}\nconst _hoisted_49 = {\n key: 1,\n class: \"lt margin5-lr\",\n style: {\"margin-top\":\"1px\"}\n}\nconst _hoisted_50 = {\n key: 2,\n class: \"lt\"\n}\nconst _hoisted_51 = [\"src\"]\nconst _hoisted_52 = {\n key: 3,\n class: \"lt\"\n}\nconst _hoisted_53 = {\n key: 4,\n class: \"lt\"\n}\n\nimport {lockResultPageUI, UIS, unlockResultPageUI} from \"@/codes/_10.sys/UICommittee\";\r\nimport {\r\n TYPE_EVENT,\r\n TYPE_INPUT_COMMAND,\r\n TYPE_INPUT_STEP_NAME,\r\n TYPE_PROP,\r\n TYPE_SECTION\r\n} from \"@/codes/_20.def/_modDataDict\";\r\nimport {IFC_AI_Session, IFC_Page_Column} from \"@/codes/_20.def/dataTypes\";\r\nimport {computed} from \"vue\";\r\nimport {defaultActionFlowGroup, defaultActionFlows} from \"@/codes/_30.biz/monDefaultPageTemplate\";\r\n\r\n\r\n//@TS-NOCHECK\r\n\r\nimport {GUID_TYPE, IFC_ACTION_FLOW, IFC_Page_Data, IFC_Page_Section} from \"@/codes/_20.def/dataTypes\";\r\nimport {\r\n IFC_AI_ROLE,\r\n IFC_AIManager,\r\n IFC_AIPrompt_Provider,\r\n IFC_CommandManager,\r\n IFC_PageTemplateManager,\r\n IFC_SERPManager,\r\n IFC_UserContentManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {TYPE_INDEX_SIDEBAR, TYPE_INPUT_SPECIAL_MODE} from \"@/codes/_20.def/_modDataDict\";\r\nimport {reactive} from 'vue';\r\n\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var cerr: any;\r\ndeclare var clearObject: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\ndeclare var appCommandManager: IFC_CommandManager;\r\ndeclare var appAIManager: IFC_AIManager;\r\ndeclare var appPageTemplateManager: IFC_PageTemplateManager;\r\ndeclare var appSERPManager: IFC_SERPManager;\r\n\r\n\r\nvar zDefaultRole001: IFC_AI_ROLE = window.DefaultRole001;\r\n\r\ndeclare var setInputFocus: any;\r\ndeclare var clearArray: any;\r\ndeclare var assignArray: any;\r\ndeclare var clearSelection: any;\r\ndeclare var chance: any;\r\ndeclare var processPDF: any;\r\ndeclare var processDocx: any;\r\n\r\n\r\nconst __default__ = {\r\n name: 'divUserInputCenter',\r\n // other component options...\r\n\r\n mounted() {\r\n // console.log(\"*****\",this.id); // Accessing the prop in the mounted hook\r\n },\r\n\r\n computed: {\r\n currentHeaderSectionGUID(): GUID_TYPE {\r\n return appUserContentManager.getCurrentSelectedPageHeaderSectionGUID();\r\n },\r\n currentHeaderSectionTitle(): string {\r\n let zCurrentSelectedPageHeaderSectionGUID = appUserContentManager.getCurrentSelectedPageHeaderSectionGUID();\r\n if (zCurrentSelectedPageHeaderSectionGUID) {\r\n let zCurrentSelectedPageHeaderSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zCurrentSelectedPageHeaderSectionGUID);\r\n if (zCurrentSelectedPageHeaderSection) {\r\n return (zCurrentSelectedPageHeaderSection.sectionTitle);\r\n }\r\n }\r\n\r\n return \"----\";\r\n },\r\n\r\n },\r\n\r\n}\r\n\r\n\r\nlet followupQuestions: string[] = reactive([]);\r\n\r\nlet promptSites = appPromptProvider.customizedSites;\r\nlet promptRoles = appPromptProvider.customizedRoles;\r\n\r\nlet getFavIconURL = appSERPManager.getFavIconURL;\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\nlet maxTextInputLength = 50000;\r\n\r\nlet inputThings = reactive({\r\n userChatMessage: \"\",\r\n userInputFileName: \"\",\r\n userInputFileString: \"\",\r\n\r\n userInputTextRange: [0, 100],\r\n\r\n textContentString4AI: \"\",\r\n\r\n parentPageSectionTitle: \"\",\r\n promptSite: \"\",\r\n\r\n isFromContextMenu: false,\r\n isAdvancedInputUI: false,\r\n\r\n currentActionFlow: {} as IFC_ACTION_FLOW,\r\n currentActionStepName: TYPE_INPUT_STEP_NAME.START as TYPE_INPUT_STEP_NAME,\r\n});\r\n\r\n\r\n// * init prompt provider settings\r\nlet zInitRole: IFC_AI_ROLE = nz(appPromptProvider.currentRole, window.DefaultRole001);\r\n\r\n\r\ninputThings.promptSite = nz(appPromptProvider.currentSite, \"\");\r\n\r\n\r\nconst ifPageSectionSelected = function (): boolean {\r\n return appUserContentManager.getCurrentSelectedPageSectionGUID() ? true : false;\r\n}\r\n\r\nconst inputSpecialType = computed((): TYPE_INPUT_SPECIAL_MODE => {\r\n let zUserMessageLow = nz(inputThings.userChatMessage, \"\").toLowerCase();\r\n if (zUserMessageLow.startsWith(\"# \")) return TYPE_INPUT_SPECIAL_MODE.ADD_HEADER;\r\n if (zUserMessageLow.startsWith(\"## \")) return TYPE_INPUT_SPECIAL_MODE.ADD_NOTE_CARD;\r\n if (zUserMessageLow.startsWith(\"? \")) return TYPE_INPUT_SPECIAL_MODE.ADD_BOOKMARKS;\r\n return TYPE_INPUT_SPECIAL_MODE.NONE;\r\n});\r\n\r\n\r\nconst clickCloseChattingUI = function () {\r\n UIS.ifChattingUI = false;\r\n}\r\n\r\nconst clickSetupTopicFromHeader = function (xFromHeaderSectionGUID?: GUID_TYPE) {\r\n UIS.currentFromHeaderSectionGUID = nz(xFromHeaderSectionGUID, \"\");\r\n}\r\n\r\nconst gotoHeaderEndPos = function () {\r\n let zCurrentSelectedPageHeaderSectionGUID = appUserContentManager.getCurrentSelectedPageHeaderSectionGUID();\r\n\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n let zTargetPosPageSectionGUID: GUID_TYPE = \"\";\r\n _.each(zPageItem.pageSections, function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection && xPageSection._GUID == zCurrentSelectedPageHeaderSectionGUID) {\r\n zTargetPosPageSectionGUID = xPageSection._GUID\r\n }\r\n if (xPageSection && xPageSection._headerSectionGUID == zCurrentSelectedPageHeaderSectionGUID) {\r\n zTargetPosPageSectionGUID = xPageSection._GUID\r\n }\r\n });\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, zTargetPosPageSectionGUID, zCurrentSelectedPageHeaderSectionGUID);\r\n return appUserContentManager.getCurrentSelectedPageSectionIndex();\r\n}\r\n\r\n\r\nconst clickSelectCurrentActionFlow = function (xActionFlow: IFC_ACTION_FLOW) {\r\n inputThings.currentActionFlow = xActionFlow;\r\n\r\n if (inputThings.currentActionFlow._GUID == \"SysNewBlankDeck\") {\r\n clickCloseChattingUI();\r\n lockResultPageUI()\r\n appUserContentManager.insertBlankPage(\"\", \"\");\r\n setTimeout(function () {\r\n unlockResultPageUI();\r\n }, 800);\r\n\r\n } else {\r\n inputThings.currentActionStepName = TYPE_INPUT_STEP_NAME.INPUT;\r\n if (inputThings.currentActionFlow?.ifUserTextInput) {\r\n setInputFocus(\"#inputCenter_chatbox\");\r\n }\r\n if (inputThings.currentActionFlow?.ifFileUploaderInput) {\r\n inputThings.userInputFileName = \"\";\r\n inputThings.userInputFileString = \"\";\r\n clearFileUploader();\r\n }\r\n }\r\n\r\n\r\n}\r\n\r\nconst clickGoBackStep = function (xStepName: TYPE_INPUT_STEP_NAME) {\r\n inputThings.currentActionStepName = xStepName;\r\n}\r\n\r\nconst clickGoDiving = function (xEvent?: any) {\r\n\r\n inputThings.userChatMessage = nz(inputThings.userChatMessage, \"\").trim()\r\n inputThings.userInputFileString = nz(inputThings.userInputFileString, \"\").trim()\r\n\r\n if (!inputThings?.currentActionFlow) return;\r\n if (!inputThings?.currentActionFlow.name) return;\r\n\r\n let zCurrentActionFlow: Partial = inputThings?.currentActionFlow;\r\n\r\n\r\n if (zCurrentActionFlow.ifUserTextInput && (!inputThings.userChatMessage)) return cerr(\"*missing usrtxt\");\r\n if (zCurrentActionFlow.ifFileUploaderInput && (!inputThings.userInputFileString)) return cerr(\"*missing usrfle\");\r\n\r\n // * scroll to section top\r\n appUserContentManager.scrollPageTo(\"top\");\r\n\r\n appSERPManager.givenWebsiteNames = _.clone(nz(zCurrentActionFlow.sites, []));\r\n if (\r\n (zCurrentActionFlow.ifSearch4WebPages || zCurrentActionFlow.ifSearch4Images || zCurrentActionFlow.ifSearch4News)\r\n && (!appSERPManager.givenWebsiteNames.length)\r\n ) {\r\n appSERPManager.givenWebsiteNames = _.union(appSERPManager.givenWebsiteNames, [\"\"]);\r\n }\r\n\r\n if (zCurrentActionFlow.ifWebPageScrape) {\r\n let zSumHostName = nz(inputThings.userChatMessage.split(\"\\n\")[0], \"\").trim();\r\n zSumHostName = appSERPManager.getHostName(zSumHostName);\r\n assignArray(followupQuestions, [zSumHostName]);\r\n window.emitter.emit(TYPE_EVENT.MAN_GEN_FOLLOWUP_DONE);\r\n setTimeout(function () {\r\n doRunCommand(TYPE_INPUT_COMMAND.WEB_SCRAPE);\r\n }, 1000);\r\n\r\n } else if (zCurrentActionFlow._GUID == \"SysLongTextSummary\") {\r\n doRunCommand(TYPE_INPUT_COMMAND.AI_FOLLOWUPS, TYPE_INPUT_COMMAND.AI_SUMMARIZE);\r\n } else if (zCurrentActionFlow.ifFileUploaderInput) {\r\n doRunCommand(TYPE_INPUT_COMMAND.AI_FOLLOWUPS, TYPE_INPUT_COMMAND.AI_SUMMARIZE);\r\n } else if (zCurrentActionFlow._GUID == \"SysAIOutline\") {\r\n doRunCommand(TYPE_INPUT_COMMAND.AI_FOLLOWUPS, TYPE_INPUT_COMMAND.AI_OUTLINE);\r\n } else if (zCurrentActionFlow._GUID == \"SysNewBlankTopic\") {\r\n let zBlankTopicTitle = nz(inputThings.userChatMessage.split(\"\\n\")[0], \"\").trim();\r\n assignArray(followupQuestions, [zBlankTopicTitle]);\r\n window.emitter.emit(TYPE_EVENT.MAN_GEN_FOLLOWUP_DONE);\r\n unlockResultPageUI();\r\n } else if (zCurrentActionFlow._GUID == \"SysNewBlankSlide\") {\r\n let zTextContent = nz(inputThings.userChatMessage, \"\").trim();\r\n let zNewSlideTitle = nz(zTextContent.split(\"\\n\")[0], \"\").trim();\r\n let zNewSlideBodyText = zTextContent.substring(zNewSlideTitle.length + 1);\r\n appUserContentManager.insertNewCustomSlide2CurrentHeader({\r\n sectionTitle: zNewSlideTitle, sectionBodyText: zNewSlideBodyText\r\n });\r\n clickCloseChattingUI();\r\n unlockResultPageUI();\r\n } else if (zCurrentActionFlow._GUID == \"SysAIAnswer\") {\r\n doRunCommand(TYPE_INPUT_COMMAND.AI_FOLLOWUPS, TYPE_INPUT_COMMAND.AI_REPLY);\r\n } else if (zCurrentActionFlow.ifSearch4Images) {\r\n doRunCommand(TYPE_INPUT_COMMAND.AI_FOLLOWUPS, TYPE_INPUT_COMMAND.IMAGE_SEARCH);\r\n } else if (zCurrentActionFlow.ifSearch4News) {\r\n doRunCommand(TYPE_INPUT_COMMAND.AI_FOLLOWUPS, TYPE_INPUT_COMMAND.NEWS_SEARCH);\r\n } else if (zCurrentActionFlow.ifSearch4WebPages || (zCurrentActionFlow.sites && zCurrentActionFlow.sites.length)) {\r\n doRunCommand(TYPE_INPUT_COMMAND.AI_FOLLOWUPS, TYPE_INPUT_COMMAND.AI_PLUS_SEARCH);\r\n } else {\r\n doRunCommand(TYPE_INPUT_COMMAND.AI_FOLLOWUPS, TYPE_INPUT_COMMAND.AI_REPLY);\r\n }\r\n\r\n\r\n// doRunCommand(TYPE_INPUT_COMMAND.AI_FOLLOWUPS, TYPE_INPUT_COMMAND.AI_REPLY);\r\n\r\n\r\n}\r\n\r\n\r\nconst clickRunCurrentActionFlow = function () {\r\n if (checkIsStartCreatingEnabled(inputThings.userInputTextRange[0], inputThings.userInputTextRange[1])) {\r\n clickGoDiving();\r\n }\r\n}\r\n\r\nconst clickFileUploader = function () {\r\n const fileInput = document.getElementById('userInputCenterFileUploader');\r\n if (fileInput) {\r\n fileInput.click();\r\n }\r\n}\r\n\r\nconst clearFileUploader = function () {\r\n const fileInput = document.getElementById('userInputCenterFileUploader');\r\n if (fileInput) {\r\n\r\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n // @ts-ignore\r\n fileInput[\"value\"] = \"\";\r\n\r\n }\r\n}\r\n\r\nconst onChangeFileUploader = async function (e: any) {\r\n\r\n if (e && e.target?.files?.length) {\r\n lockResultPageUI();\r\n const file = e.target.files[0];\r\n let zFlieNameLow = file.name.toLowerCase();\r\n if (zFlieNameLow.endsWith(\".pdf\")) {\r\n await processUploadedPDFFile(file);\r\n } else if (zFlieNameLow.endsWith(\".docx\")) {\r\n await processUploadedDOCXFile(file);\r\n } else {\r\n processUploadedTextFile(file);\r\n }\r\n }\r\n setTimeout(function () {\r\n unlockResultPageUI();\r\n UIS.ifChattingUI = true;\r\n }, 500);\r\n\r\n}\r\n\r\nconst processUploadedTextFile = function (file: any) {\r\n cerr(\"upd f tp\", file);\r\n if (file) {\r\n const reader = new FileReader();\r\n reader.onload = (e) => {\r\n if (e && e?.target?.result) {\r\n const text = e.target.result;\r\n inputThings.userInputFileString = nz(text, \"\");\r\n inputThings.userInputFileName = file.name;\r\n }\r\n };\r\n reader.readAsText(file);\r\n }\r\n}\r\n\r\nconst processUploadedPDFFile = async function (file: any) {\r\n\r\n const extractedText = await processPDF(file);\r\n inputThings.userInputFileString = nz(extractedText, \"\");\r\n inputThings.userInputFileName = file.name;\r\n}\r\n\r\nconst processUploadedDOCXFile = async function (file: any) {\r\n\r\n const extractedText = await processDocx(file);\r\n inputThings.userInputFileString = nz(extractedText, \"\");\r\n inputThings.userInputFileName = file.name;\r\n}\r\n\r\nconst getInputFileStringRangeLength = function (xStartRangeNum: number, xEndRangeNum: number) {\r\n if (inputThings.userInputFileString) {\r\n if (inputThings.userInputTextRange) {\r\n let zStartRangeNum = nz(xStartRangeNum, 0)\r\n let zEndRangeNum = nz(xEndRangeNum, 0)\r\n let zResLen = Math.ceil(inputThings.userInputFileString.length * (zEndRangeNum - zStartRangeNum) / 100);\r\n return zResLen;\r\n }\r\n }\r\n return 0;\r\n}\r\n\r\nconst getInputFileStringRangeText = function (xStartRangeNum: number, xEndRangeNum: number) {\r\n if (inputThings.userInputFileString) {\r\n if (inputThings.userInputTextRange) {\r\n let zLen = inputThings.userInputFileString.length;\r\n let zStartRangePos = nz(xStartRangeNum, 0) * zLen / 100;\r\n let zEndRangePos = nz(xEndRangeNum, 0) * zLen / 100;\r\n let zResText = inputThings.userInputFileString.substring(zStartRangePos, zEndRangePos);\r\n return zResText;\r\n }\r\n }\r\n return \"\";\r\n}\r\n\r\n\r\nconst onDragOverFileUploader = function (e: any) {\r\n e.preventDefault();\r\n $(\"#userInputFileUploaderZone\").removeClass(\"background-black-30\");\r\n $(\"#userInputFileUploaderZone\").addClass(\"background-black-60\");\r\n}\r\nconst onDragLeaveFileUploader = function (e: any) {\r\n e.preventDefault();\r\n $(\"#userInputFileUploaderZone\").removeClass(\"background-black-60\");\r\n $(\"#userInputFileUploaderZone\").addClass(\"background-black-30\");\r\n}\r\n\r\nconst onDropFileUploader = function (e: any) {\r\n e.preventDefault();\r\n cerr(\"drp upl\", e);\r\n const file = e.dataTransfer.files[0];\r\n processUploadedTextFile(file);\r\n}\r\n\r\nconst getUserMessage = function (): string {\r\n let zUserMessage = \"\";\r\n\r\n if (inputThings?.currentActionFlow?.ifUserTextInput) {\r\n zUserMessage = inputThings.userChatMessage;\r\n }\r\n\r\n if (inputThings?.currentActionFlow?.ifFileUploaderInput) {\r\n zUserMessage = inputThings.userInputFileString;\r\n zUserMessage = getInputFileStringRangeText(inputThings.userInputTextRange[0], inputThings.userInputTextRange[1]);\r\n zUserMessage = zUserMessage.substring(0, maxTextInputLength);\r\n }\r\n\r\n return zUserMessage;\r\n}\r\n\r\nconst doRunCommand = (xCommandType?: TYPE_INPUT_COMMAND, xNextCommandType?: TYPE_INPUT_COMMAND) => {\r\n console.log(\"*rc\", xCommandType);\r\n let zCommandType: TYPE_INPUT_COMMAND = nz(xCommandType, UIS.currentInputCommandType);\r\n\r\n let zUserMessage = getUserMessage();\r\n\r\n if (!zUserMessage) return cerr(\"*missing usrmsg\");\r\n\r\n appCommandManager.followupQuestions = _.clone(followupQuestions);\r\n appCommandManager.currentCommandType = zCommandType;\r\n appCommandManager.nextCommandType = nz(xNextCommandType, \"\");\r\n appCommandManager.runCommandString(\r\n zUserMessage\r\n + nz(zCommandType, \"\")\r\n );\r\n}\r\n\r\nlet ifBackgroundMouseDown = false;\r\n\r\nconst clickBackground = function () {\r\n if (ifBackgroundMouseDown) {\r\n clickCloseChattingUI();\r\n }\r\n ifBackgroundMouseDown = false;\r\n}\r\n\r\nconst onBlurChattingInput = function () {\r\n UIS.currentChattingMessage = inputThings.userChatMessage;\r\n\r\n clearSelection();\r\n}\r\n\r\nconst onMouseEnterCommandInput = function (xHoveredType: string) {\r\n UIS.hoveredElementType = xHoveredType;\r\n // console.warn(\"*hvrd\",UIS.hoveredElementType)\r\n}\r\n\r\nconst onMouseLeaveCommandInput = function () {\r\n UIS.hoveredElementType = \"\";\r\n\r\n /*if (UIS.hoveredElementType && UIS.hoveredElementType != \"bar\") {\r\n UIS.hoveredElementType = \"bar\"\r\n } else {\r\n UIS.hoveredElementType = \"\";\r\n }*/\r\n\r\n // console.warn(\"*hvrd\",UIS.hoveredElementType)\r\n}\r\n\r\nconst getContextStringLines = function (xContextString: string) {\r\n if (!xContextString) return \"\";\r\n let zTextLines = xContextString.split(TYPE_PROP.STR_IN_CONTEXT);\r\n if (!zTextLines?.length) return [];\r\n let zResTextLines: string[] = [];\r\n _.each(zTextLines, function (xTextLine: string) {\r\n xTextLine = nz(xTextLine, \"\").trim();\r\n if (!xTextLine) return;\r\n xTextLine = xTextLine.replaceAll(\"\\n\", \"\");\r\n // cerr(\"*gt ctxtln\",xTextLine);\r\n if (xTextLine.startsWith(\"'\") && xTextLine.endsWith(\"'\")) {\r\n xTextLine = xTextLine.substring(1, xTextLine.length - 1);\r\n }\r\n zResTextLines.push(xTextLine);\r\n })\r\n return zResTextLines;\r\n}\r\n\r\nconst getTextInputPlaceholder = function () {\r\n let zFlowGUID = inputThings?.currentActionFlow?._GUID;\r\n if (!zFlowGUID) return \"\";\r\n\r\n if (_.includes(\r\n [\"SysWebSearch\", \"SysImageSearch\", \"SysNewsSearch\"], zFlowGUID\r\n )) {\r\n return \"placeholder.TextInput4Searching\"\r\n }\r\n\r\n if (_.includes(\r\n [\"SysAIOutline\"], zFlowGUID\r\n )) {\r\n return \"placeholder.TextInput4AISuggestion\"\r\n }\r\n\r\n if (_.includes(\r\n [\"SysAIAnswer\"], zFlowGUID\r\n )) {\r\n return \"placeholder.TextInput4AIAnswer\"\r\n }\r\n\r\n if (_.includes(\r\n [\"SysLongTextSummary\"], zFlowGUID\r\n )) {\r\n return \"placeholder.TextInput4Summary\"\r\n }\r\n\r\n if (_.includes(\r\n [\"SysYouTubeSummary\"], zFlowGUID\r\n )) {\r\n return \"placeholder.YouTubeInput4Summary\"\r\n }\r\n\r\n if (_.includes(\r\n [\"SysWebPageSummary\"], zFlowGUID\r\n )) {\r\n return \"placeholder.WebpageInput4Summary\"\r\n }\r\n\r\n if (_.includes(\r\n [\"SysNewBlankTopic\"], zFlowGUID\r\n )) {\r\n return \"placeholder.TextInput4NewBlankTopic\"\r\n }\r\n\r\n if (_.includes(\r\n [\"SysNewBlankSlide\"], zFlowGUID\r\n )) {\r\n return \"placeholder.TextInput4NewBlankSlide\"\r\n }\r\n\r\n return \"\";\r\n}\r\n\r\nconst getTextInputRows = function () {\r\n let zFlowGUID = inputThings?.currentActionFlow?._GUID;\r\n let zTextLines = nz(inputThings.userChatMessage, \"\").split(\"\\n\");\r\n let zResRowsNum = zTextLines.length;\r\n\r\n if (zResRowsNum <= 1) zResRowsNum = 2;\r\n if (zResRowsNum > 2) zResRowsNum = zTextLines.length + 1;\r\n\r\n if (_.includes(\r\n [\"SysLongTextSummary\"], zFlowGUID\r\n )) {\r\n if (zResRowsNum < 8) zResRowsNum = 8;\r\n }\r\n\r\n if (zResRowsNum > 8) zResRowsNum = 8;\r\n\r\n return zResRowsNum;\r\n}\r\n\r\nconst getCommandInputCompoStyle = function () {\r\n let zResStyle = ``;\r\n if (UIS.ifChattingUI) {\r\n if (UIS.isMiniScreenMode) {\r\n zResStyle += `\r\n left:calc(10% - 8px); width:80%;\r\n `;\r\n } else {\r\n zResStyle += `\r\n left:calc(50% - 280px); width:600px;\r\n `;\r\n }\r\n\r\n } else {\r\n zResStyle += `\r\n left:calc(50% - 100px); width:200px;\r\n `\r\n }\r\n return zResStyle;\r\n}\r\n\r\nconst getCommandInputPanelBodyStyle = function () {\r\n let zResStyle = ``;\r\n if (UIS.ifChattingUI) {\r\n zResStyle += `\r\n `\r\n } else {\r\n zResStyle += `\r\n border:1px solid rgba(128,128,128,0.2);\r\n backdrop-filter: blur(10px);\r\n height:40px;\r\n `\r\n }\r\n return zResStyle;\r\n}\r\n\r\nconst checkIfAILanguageOptionShow = function () {\r\n if (inputThings?.currentActionFlow?.ifAIReply) return true;\r\n return false;\r\n}\r\n\r\nconst checkIfCharLenLimitShow = function () {\r\n let zFlowGUID = inputThings?.currentActionFlow?._GUID;\r\n if (_.includes(\r\n [\"SysLongTextSummary\", \"SysTextFileSummary\", \"SysPDFFileSummary\", \"SysDOCXFileSummary\"], zFlowGUID\r\n )) {\r\n return true;\r\n }\r\n return false;\r\n}\r\n\r\n\r\nconst checkIsStartCreatingEnabled = function (xStartRangeNum: number, xEndRangeNum: number) {\r\n // if (inputThings?.currentActionFlow?._GUID==\"SysImageSearch\") return false;\r\n\r\n if (inputThings.currentActionFlow?.ifUserTextInput) {\r\n if (inputThings.userChatMessage.length < 3) return false;\r\n if (inputThings.userChatMessage.length > maxTextInputLength) return false;\r\n } else if (inputThings.currentActionFlow?.ifFileUploaderInput) {\r\n if (!inputThings.userInputFileString.length) return false;\r\n if (inputThings.userInputFileString.length > maxTextInputLength) {\r\n if (getInputFileStringRangeLength(xStartRangeNum, xEndRangeNum) <= maxTextInputLength) {\r\n cerr(\"*chk\", getInputFileStringRangeLength(xStartRangeNum, xEndRangeNum), xStartRangeNum, xEndRangeNum)\r\n return true;\r\n }\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n}\r\n\r\nconst refreshFollowups = function () {\r\n // * init\r\n clearArray(followupQuestions);\r\n clearArray(appAIManager.tempNextTopics);\r\n\r\n let zPageColumns = window.PageColumns;\r\n let zPageColumnFilterSection: Partial = {};\r\n let zCurrentPageColumn: IFC_Page_Column = zPageColumns[UIS.currentUserContentPageColumnIndex];\r\n\r\n // ** init for saving follow-up questions\r\n /*if (zCurrentPageColumn.parentPageSectionGUID) {\r\n zPageColumnFilterSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zCurrentPageColumn.parentPageSectionGUID)\r\n if (!zPageColumnFilterSection._questions4Exploring) zPageColumnFilterSection._questions4Exploring = [];\r\n clearArray(zPageColumnFilterSection._questions4Exploring);\r\n }*/\r\n\r\n // * get follow-up questions\r\n if (zCurrentPageColumn.followupSessionGUID) {\r\n let zAISession: IFC_AI_Session = appAIManager.allAISessions[zCurrentPageColumn.followupSessionGUID];\r\n if (zAISession) {\r\n let zFollowupItems: string[] = zAISession.returnMessage.split(\"\\n\");\r\n _.each(zFollowupItems, function (xFollowupItem: string) {\r\n let zFollowupItem = nz(xFollowupItem, \"\").trim();\r\n if (!zFollowupItem) return;\r\n if (zFollowupItem.startsWith(\"++\")) {\r\n let zNextTopicString = zFollowupItem.substring(2).trim();\r\n appAIManager.tempNextTopics.push(zNextTopicString)\r\n } else {\r\n followupQuestions.push(zFollowupItem);\r\n }\r\n\r\n })\r\n }\r\n }\r\n\r\n // * save questions to page section\r\n /*if (zPageColumnFilterSection?._questions4Exploring) {\r\n assignArray(zPageColumnFilterSection._questions4Exploring, followupQuestions);\r\n }*/\r\n}\r\n\r\nconst processFollowUpAction = function (xFollowupQuestions?: string[]) {\r\n\r\n let zPageColumns = window.PageColumns;\r\n let zCurrentPageColumn: IFC_Page_Column = zPageColumns[UIS.currentUserContentPageColumnIndex];\r\n\r\n if (\r\n (zCurrentPageColumn.followupSessionGUID == appAIManager.currentAISessionGUID)\r\n ||\r\n (xFollowupQuestions)\r\n\r\n ) {\r\n appAIManager.currentAISessionGUID = \"\";\r\n\r\n // UIS.isFollowupOnlyMode = true;\r\n if (!xFollowupQuestions) {\r\n refreshFollowups();\r\n }\r\n\r\n cwrn(\"*ffup dn\", followupQuestions);\r\n\r\n UIS.ifChattingUI = false;\r\n if (followupQuestions && followupQuestions[0]) {\r\n let zFollowupQuestion0 = followupQuestions[0];\r\n let zFollowupSourceText = getUserMessage().trim();\r\n if (zFollowupQuestion0 == zFollowupSourceText) {\r\n zFollowupSourceText = \"\";\r\n }\r\n let zRefLink = \"\";\r\n if (zFollowupSourceText.toLowerCase().startsWith(\"https://\")) {\r\n zRefLink = nz(zFollowupSourceText.split(\"\\n\")[0], \"\");\r\n }\r\n /*inputThings.userChatMessage = followupQuestions[0];\r\n UIS.currentChattingMessage = inputThings.userChatMessage;*/\r\n\r\n let zHeaderSections2Insert: Partial[] = [];\r\n let zCurrentHeaderGUID = chance.guid();\r\n zHeaderSections2Insert.push({\r\n _GUID: zCurrentHeaderGUID,\r\n _fromHeaderSectionGUID: nz(UIS.currentFromHeaderSectionGUID, \"\"),\r\n sectionType: TYPE_SECTION.HEADER,\r\n layoutCode: \"ListB\",\r\n headerCode: \"Default\",\r\n _sourceActionFlowGUID: nz(inputThings.currentActionFlow?._GUID, \"\"),\r\n sectionTitle: zFollowupQuestion0,\r\n sectionMemo: zFollowupSourceText,\r\n refLinkAllString: zRefLink,\r\n _questions4Exploring: followupQuestions.slice(1),\r\n _nextTopics4Exploring: _.clone(nz(appAIManager.tempNextTopics, [])),\r\n })\r\n //* insert next topics\r\n\r\n\r\n /*let zCurrentSelectedPageHeaderSectionGUID = appUserContentManager.getCurrentSelectedPageHeaderSectionGUID();\r\n if (zCurrentSelectedPageHeaderSectionGUID) {\r\n gotoHeaderEndPos();\r\n }*/\r\n\r\n let zAllSections = nz(appUserContentManager.getCurrentPageSections(), []);\r\n let zLastPageSectionIndex = -1;\r\n\r\n let zPosIndex = 0;\r\n let zIsCurrentHeaderFound = false;\r\n let zSelectedHeaderGUID = appUserContentManager.getCurrentSelectedPageHeaderSectionGUID();\r\n\r\n if (zSelectedHeaderGUID) {\r\n _.each(zAllSections, function (xSection4Pos: IFC_Page_Section) {\r\n if (xSection4Pos?.sectionType == TYPE_SECTION.HEADER) {\r\n if (zIsCurrentHeaderFound && (zLastPageSectionIndex == -1)) {\r\n zLastPageSectionIndex = zPosIndex - 1;\r\n cwrn(\"*zlast pg sc idx\", zLastPageSectionIndex, xSection4Pos?.sectionTitle)\r\n } else if (xSection4Pos._GUID == zSelectedHeaderGUID) {\r\n zIsCurrentHeaderFound = true;\r\n cwrn(\"*zcurr hdr\", xSection4Pos?.sectionTitle)\r\n }\r\n }\r\n zPosIndex++;\r\n });\r\n }\r\n\r\n if (zLastPageSectionIndex == -1) {\r\n zLastPageSectionIndex = zAllSections.length - 1;\r\n }\r\n\r\n let zParentSectionGUID = appUserContentManager.getCurrentPageColumnParentPageSectionGUID();\r\n\r\n appUserContentManager.insertPageSectionsToPosition(UIS.currentUserContentPageGUID,\r\n zHeaderSections2Insert,\r\n zLastPageSectionIndex,\r\n zParentSectionGUID);\r\n\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, zCurrentHeaderGUID, zCurrentHeaderGUID);\r\n\r\n // * auto-add header to playlist\r\n if (UIS.ifCreatedTopicAutoAdd2Playlist) {\r\n let zCurrentHeaderSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zCurrentHeaderGUID);\r\n if (zCurrentHeaderSection && (zCurrentHeaderSection._sourceActionFlowGUID != \"SysAIOutline\")) {\r\n zCurrentHeaderSection._isStarred = true;\r\n UIS.currentPageData?.starredSectionGUIDs?.push(zCurrentHeaderGUID);\r\n }\r\n }\r\n\r\n cwrn(\"*flup:\", followupQuestions);\r\n lockResultPageUI();\r\n appCommandManager.currentHeaderGUID = zCurrentHeaderGUID;\r\n\r\n if (appCommandManager.nextCommandType) {\r\n cerr(\"*nxt cmd\", appCommandManager.nextCommandType);\r\n doRunCommand(appCommandManager.nextCommandType);\r\n\r\n }\r\n appCommandManager.nextCommandType = TYPE_INPUT_COMMAND.NONE;\r\n\r\n }\r\n\r\n }\r\n}\r\n\r\n// on PAGE_COLUMN_RESET\r\nwindow.emitter.on(TYPE_EVENT.PAGE_COLUMN_RESET, function () {\r\n // * auto-search\r\n UIS.ifChattingUI = false;\r\n inputThings.userChatMessage = \"\";\r\n clearArray(followupQuestions);\r\n\r\n let zCurrentParentPageSectionTitle = \"\";\r\n inputThings.parentPageSectionTitle = \"\";\r\n if (\r\n (UIS.currentUserContentPageColumnIndex > 0)\r\n && (!UIS.isSharingViewMode)\r\n ) {\r\n let zParentSectionGUID = appUserContentManager.getCurrentPageColumnParentPageSectionGUID()\r\n let zPageItem: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n let zParentPageSection: IFC_Page_Section = _.find(nz(zPageItem.pageSections, []), {_GUID: zParentSectionGUID});\r\n\r\n // cerr(\"*pps\",zParentPageSection);\r\n if (zParentPageSection && zParentPageSection.sectionTitle) {\r\n zCurrentParentPageSectionTitle = zParentPageSection.sectionTitle;\r\n inputThings.parentPageSectionTitle = zCurrentParentPageSectionTitle;\r\n inputThings.userChatMessage = \"\";\r\n\r\n let zPageColumnFilterGUID = appUserContentManager.getCurrentPageColumnParentPageSectionGUID();\r\n let zIfInColumnPageSectionsExist = _.find(\r\n appUserContentManager.getCurrentPageSections(),\r\n function (xPageSection: IFC_Page_Section) {\r\n return (xPageSection._parentSectionGUID == zPageColumnFilterGUID)\r\n }\r\n );\r\n\r\n if ((!zIfInColumnPageSectionsExist) && (!UIS.isSharingViewMode)) {\r\n UIS.ifChattingUI = false;\r\n let zChatMessage = zCurrentParentPageSectionTitle;\r\n if (zChatMessage.indexOf(\" | \") > 0) {\r\n zChatMessage = zChatMessage.split(\" | \")[0];\r\n }\r\n inputThings.userChatMessage = zChatMessage;\r\n UIS.currentChattingMessage = zChatMessage;\r\n // doRunCommand(TYPE_INPUT_COMMAND.AI_FOLLOWUPS);\r\n }\r\n\r\n\r\n }\r\n }\r\n\r\n\r\n});\r\n\r\n// on Manual Gen process like Followups\r\nwindow.emitter.on(TYPE_EVENT.MAN_GEN_FOLLOWUP_DONE, function () {\r\n processFollowUpAction(followupQuestions)\r\n});\r\n\r\n// on AI Gen Done (For Followups)\r\nwindow.emitter.on(TYPE_EVENT.AI_GEN_FOLLOWUP_DONE, function () {\r\n processFollowUpAction()\r\n});\r\n\r\n// on Page Status changed\r\nwindow.emitter.on(TYPE_EVENT.PAGE_STATE_CHANGED, function () {\r\n UIS.currentChattingMessage = \"\";\r\n UIS.ifChattingUI = false;\r\n inputThings.isFromContextMenu = false;\r\n//\r\n});\r\n\r\n// on USER_INPUT_CENTER called for opening\r\nwindow.emitter.on(TYPE_EVENT.CALL_USER_INPUT_CENTER, function () {\r\n\r\n UIS.ifChattingUI = true;\r\n UIS.ifCreatedTopicAutoAdd2Playlist = true;\r\n UIS.currentFromHeaderSectionGUID = \"\"; // root topic\r\n\r\n inputThings.isFromContextMenu = false;\r\n inputThings.textContentString4AI = \"\";\r\n\r\n inputThings.userChatMessage = nz(UIS.currentChattingMessage, \"\");\r\n inputThings.userInputFileString = \"\";\r\n inputThings.userInputFileName = \"\";\r\n clearFileUploader();\r\n inputThings.currentActionStepName = TYPE_INPUT_STEP_NAME.START;\r\n\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*onncalluic\",UIS.currentChattingMessage);\r\n\r\n setTimeout(function () {\r\n setInputFocus(\"#inputCenter_chatbox\");\r\n }, 200);\r\n\r\n});\r\n\r\n// on USER_INPUT_CENTER_BREAK_DOWN called for opening\r\nwindow.emitter.on(TYPE_EVENT.CALL_USER_INPUT_CENTER_BREAK_DOWN, function () {\r\n\r\n UIS.ifCreatedTopicAutoAdd2Playlist = false;\r\n UIS.currentFromHeaderSectionGUID = appUserContentManager.getPageColumn0SelectedHeaderGUID();\r\n\r\n let zSelectionText = UIS.selectedTextContent;\r\n let zHeaderSectionGUID = appUserContentManager.getCurrentSelectedPageHeaderSectionGUID();\r\n\r\n let zHeaderSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zHeaderSectionGUID);\r\n if (!zSelectionText) return cerr(\"*erBKDx1\");\r\n\r\n let zTargetPageSection = appUserContentManager.getCurrentSelectedPageSection();\r\n if (!zTargetPageSection?._GUID) return cerr(\"*erBKDx2\");\r\n\r\n let zBreakdownSourceText = \"\" + zSelectionText.trim() + \"\";\r\n\r\n let zSectionTitle = nz((zTargetPageSection?.sectionTitle), \"\").trim();\r\n // if (zBreakdownSourceText != zSectionTitle) {\r\n // zBreakdownSourceText += \" \\n\" + TYPE_PROP.STR_IN_CONTEXT + \"'\" + zSectionTitle + \"'\";\r\n // }\r\n\r\n cerr(\"*brkdwn x1\", zTargetPageSection?.sectionTitle + \"++\" + zTargetPageSection?.sectionBodyText);\r\n\r\n if (zTargetPageSection?.sectionBodyText) {\r\n zBreakdownSourceText += \" \\n\" + TYPE_PROP.STR_IN_CONTEXT + \"'\"\r\n + nz((zTargetPageSection?.sectionBodyText) + \"'\", \"\").trim();\r\n }\r\n let zHeaderSectionTitle = nz((zHeaderSection?.sectionTitle), \"\").trim();\r\n zBreakdownSourceText += \"\\n from sections:\"\r\n + zHeaderSectionTitle\r\n + \" - \" + zSectionTitle + \"\";\r\n\r\n /*if (zHeaderSection?.sectionTitle) {\r\n let zHeaderSectionTitle = nz((zHeaderSection?.sectionTitle), \"\").trim();\r\n if (zBreakdownSourceText != zHeaderSectionTitle) {\r\n zBreakdownSourceText += \" \\n\" + TYPE_PROP.STR_IN_CONTEXT\r\n + \"'from: \"\r\n + zHeaderSectionTitle\r\n + \" - \" + zSectionTitle + \"'\";\r\n }\r\n }*/\r\n\r\n if (zBreakdownSourceText && zBreakdownSourceText.trim()) {\r\n UIS.currentChattingMessage = zBreakdownSourceText;\r\n\r\n\r\n UIS.ifChattingUI = true;\r\n inputThings.isFromContextMenu = true;\r\n inputThings.textContentString4AI = \"\";\r\n\r\n inputThings.userChatMessage = nz(UIS.currentChattingMessage, \"\");\r\n inputThings.userInputFileString = \"\";\r\n inputThings.userInputFileName = \"\";\r\n clearFileUploader();\r\n\r\n clickSelectCurrentActionFlow(defaultActionFlows[\"SysWebSearch\"],);\r\n inputThings.currentActionStepName = TYPE_INPUT_STEP_NAME.INPUT;\r\n\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*onncalluic\",UIS.currentChattingMessage);\r\n\r\n /*setTimeout(function () {\r\n setInputFocus(\"#inputCenter_chatbox\");\r\n }, 200);*/\r\n }\r\n\r\n});\r\n\r\n// on CALL_USER_INPUT_CENTER_SUMMARIZE called for opening\r\nwindow.emitter.on(TYPE_EVENT.CALL_USER_INPUT_CENTER_SUMMARIZE, function () {\r\n\r\n UIS.ifCreatedTopicAutoAdd2Playlist = false;\r\n UIS.currentFromHeaderSectionGUID = appUserContentManager.getPageColumn0SelectedHeaderGUID();\r\n\r\n let zURL = UIS.selectedTextContent;\r\n let zHeaderSectionGUID = appUserContentManager.getCurrentSelectedPageHeaderSectionGUID();\r\n\r\n let zHeaderSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zHeaderSectionGUID);\r\n if (!zURL) return cerr(\"*erBKDx1\");\r\n\r\n UIS.currentChattingMessage = zURL;\r\n\r\n UIS.ifChattingUI = true;\r\n\r\n inputThings.isFromContextMenu = true;\r\n inputThings.textContentString4AI = \"\";\r\n\r\n inputThings.userChatMessage = nz(UIS.currentChattingMessage, \"\");\r\n inputThings.userInputFileString = \"\";\r\n inputThings.userInputFileName = \"\";\r\n clearFileUploader();\r\n\r\n let zURLLow = zURL.trim().toLowerCase();\r\n if (zURLLow.indexOf(\"youtube.com/watch\") > -1) {\r\n clickSelectCurrentActionFlow(defaultActionFlows[\"SysYouTubeSummary\"]);\r\n } else {\r\n clickSelectCurrentActionFlow(defaultActionFlows[\"SysWebPageSummary\"]);\r\n }\r\n\r\n\r\n inputThings.currentActionStepName = TYPE_INPUT_STEP_NAME.INPUT;\r\n\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*onncalluic\",UIS.currentChattingMessage);\r\n\r\n /*setTimeout(function () {\r\n setInputFocus(\"#inputCenter_chatbox\");\r\n }, 200);*/\r\n\r\n\r\n});\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_SysLanguageMenu = _resolveComponent(\"SysLanguageMenu\")!\n const _component_el_dropdown_item = _resolveComponent(\"el-dropdown-item\")!\n const _component_el_dropdown_menu = _resolveComponent(\"el-dropdown-menu\")!\n const _component_el_dropdown = _resolveComponent(\"el-dropdown\")!\n const _component_el_slider = _resolveComponent(\"el-slider\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", null, [\n _withDirectives(_createElementVNode(\"input\", {\n type: \"file\",\n id: \"userInputCenterFileUploader\",\n accept: _unref(inputThings)?.currentActionFlow?.acceptExt,\n onChange: onChangeFileUploader\n }, null, 40, _hoisted_1), [\n [_vShow, false]\n ])\n ]),\n _withDirectives(_createElementVNode(\"div\", {\n class: \"absolute-max ca hover-overflow background-black-30 ccc-back-blur\",\n style: {\"z-index\":\"300\"},\n onMousedown: _cache[12] || (_cache[12] = ($event: any) => ((_isRef(ifBackgroundMouseDown) //@ts-ignore\n ? ifBackgroundMouseDown.value = true : ifBackgroundMouseDown=true))),\n onClick: _cache[13] || (_cache[13] = _withModifiers(($event: any) => (clickBackground()), [\"stop\",\"prevent\"]))\n }, [\n _createElementVNode(\"div\", {\n class: \"rc2 uk-animation-slide-top uk-animation-fast inline-block la\",\n style: _normalizeStyle([{\"z-index\":\"320\",\"backdrop-filter\":\"blur(50px)\",\"margin-top\":\"48px\"}, getCommandInputCompoStyle()]),\n onKeydown: _cache[11] || (_cache[11] = _withKeys(_withModifiers(($event: any) => (clickCloseChattingUI()), [\"prevent\",\"stop\"]), [\"esc\"])),\n onMousedown: _withModifiers(($event: any) => (1==1), [\"prevent\",\"stop\"]),\n id: \"divUserInputCenter1\",\n onClick: _withModifiers(($event: any) => (1==1), [\"stop\",\"prevent\"])\n }, [\n _withDirectives(_createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", {\n class: \"inline-block margin5-lr text-white hotLinkLight\",\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickCloseChattingUI()), [\"stop\",\"prevent\"]))\n }, _cache[14] || (_cache[14] = [\n _createElementVNode(\"i\", { class: \"ccc-icon-cross2\" }, null, -1)\n ]))\n ], 512), [\n [_vShow, _unref(UIS).ifChattingUI]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_3, [\n _withDirectives(_createElementVNode(\"div\", _hoisted_4, [\n (_unref(inputThings).currentActionFlow?.ifUserTextInput)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"lt margin5-lr text-white-60 rc99\", \r\n (_unref(inputThings)?.userChatMessage.length>_unref(maxTextInputLength))?'back-orange':'background-black'\r\n ]),\n style: {\"padding\":\"2px 12px 3px 12px\"}\n }, [\n (!_unref(inputThings).currentActionFlow.ifFileUploaderInput)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, _toDisplayString(new Intl.NumberFormat().format(_unref(inputThings)?.userChatMessage.length)), 1))\n : _createCommentVNode(\"\", true),\n _createTextVNode(\" / \" + _toDisplayString(new Intl.NumberFormat().format(_unref(maxTextInputLength))), 1)\n ], 2))\n : _createCommentVNode(\"\", true),\n (_unref(inputThings).currentActionFlow?.ifFileUploaderInput)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 1,\n class: _normalizeClass([\"lt margin5-lr text-white-60 rc99\", \r\n (getInputFileStringRangeLength(_unref(inputThings).userInputTextRange[0],_unref(inputThings).userInputTextRange[1])>_unref(maxTextInputLength))?'back-orange':'background-black'\r\n ]),\n style: {\"padding\":\"2px 12px 3px 12px\"}\n }, [\n _createElementVNode(\"div\", _hoisted_6, _toDisplayString(new Intl.NumberFormat().format(getInputFileStringRangeLength(_unref(inputThings).userInputTextRange[0], _unref(inputThings).userInputTextRange[1]))), 1),\n _createTextVNode(\" / \" + _toDisplayString(new Intl.NumberFormat().format(_unref(maxTextInputLength))), 1)\n ], 2))\n : _createCommentVNode(\"\", true)\n ], 512), [\n [_vShow, checkIfCharLenLimitShow()]\n ])\n ], 512), [\n [_vShow, _unref(inputThings).currentActionStepName==_unref(TYPE_INPUT_STEP_NAME).INPUT]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", {\n class: \"inline-block margin5-lr text-white hotLinkLight\",\n onClick: _cache[1] || (_cache[1] = _withModifiers(($event: any) => (clickGoBackStep(_unref(TYPE_INPUT_STEP_NAME).START)), [\"stop\",\"prevent\"]))\n }, _cache[15] || (_cache[15] = [\n _createElementVNode(\"i\", { class: \"ccc-icon-arrow-left8\" }, null, -1)\n ]))\n ], 512), [\n [_vShow, _unref(UIS).ifChattingUI && (_unref(inputThings).currentActionStepName!=_unref(TYPE_INPUT_STEP_NAME).START) && (!_unref(inputThings).isFromContextMenu)]\n ]),\n _createElementVNode(\"div\", {\n onMouseenter: _cache[10] || (_cache[10] = ($event: any) => (onMouseEnterCommandInput('chatbox'))),\n onMouseleave: onMouseLeaveCommandInput,\n style: _normalizeStyle(getCommandInputPanelBodyStyle()),\n class: _normalizeClass([{\r\n 'rc99':(!_unref(UIS).ifChattingUI),\r\n 'rc2':(_unref(UIS).ifChattingUI),\r\n }, \"no-overflow no-select uk-animation-fade uk-animation-fast mon-black-active-back\"])\n }, [\n _withDirectives(_createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", _hoisted_9, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(['BySummarizing','ByAskingAI','ByOthers'], (actionFlowGroupName) => {\n return _createElementVNode(\"div\", { key: actionFlowGroupName }, [\n actionFlowGroupName\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, _toDisplayString(_ctx.$t(\"actions.\" + actionFlowGroupName)), 1))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_11, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(defaultActionFlowGroup)[actionFlowGroupName], (actionFlowItem) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: actionFlowItem.name,\n class: \"inline-block margin5 hotLinkLight text-white-60\"\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"text12B inline-block rc99 hotLinkLight text-white mon-button-unselected\", (_unref(inputThings).currentActionFlow?._GUID==actionFlowItem._GUID)?'mon-button-selected':'mon-button-unselected']),\n style: _normalizeStyle([{\"padding\":\"9px 24px 9px 24px\"}, {'width':(actionFlowItem?._isLongButton)?'421px':'180px'}]),\n onClick: _withModifiers(($event: any) => (clickSelectCurrentActionFlow(actionFlowItem)), [\"stop\",\"prevent\"])\n }, [\n (actionFlowItem.imgSrc)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_13, [\n _createElementVNode(\"img\", {\n src: actionFlowItem.imgSrc,\n class: \"img24 rc4 margin5-lr\"\n }, null, 8, _hoisted_14)\n ]))\n : _createCommentVNode(\"\", true),\n ((!actionFlowItem.imgSrc) && actionFlowItem.iconClass)\n ? (_openBlock(), _createElementBlock(\"i\", {\n key: 1,\n class: _normalizeClass([actionFlowItem.iconClass, \"lt margin5-lr\"]),\n style: {}\n }, null, 2))\n : _createCommentVNode(\"\", true),\n (actionFlowItem?.name)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_15, _toDisplayString(_ctx.$t(\"actions.\" + actionFlowItem.name)), 1))\n : _createCommentVNode(\"\", true),\n (actionFlowItem?._isBeta)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_16, \" beta \"))\n : _createCommentVNode(\"\", true)\n ], 14, _hoisted_12)\n ]))\n }), 128))\n ]),\n _cache[16] || (_cache[16] = _createElementVNode(\"div\", {\n class: \"uk-clearfix la\",\n style: {\"height\":\"10px\"}\n }, null, -1))\n ])\n }), 64))\n ])\n ], 512), [\n [_vShow, _unref(inputThings).currentActionStepName==_unref(TYPE_INPUT_STEP_NAME).START]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_17, [\n _withDirectives(_createElementVNode(\"div\", _hoisted_18, [\n _withDirectives(_createElementVNode(\"div\", _hoisted_19, [\n (!_unref(inputThings).isFromContextMenu)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_20, [\n _withDirectives(_createElementVNode(\"textarea\", {\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((_unref(inputThings).userChatMessage) = $event)),\n style: {\"background\":\"transparent\",\"width\":\"calc(100% - 60px)\",\"padding\":\"35px 60px 25px 60px\"},\n class: _normalizeClass([\"la chat-box text-white rc2\", {\r\n 'opacity60':(!_unref(inputThings).userChatMessage)\r\n }]),\n rows: getTextInputRows(),\n id: 'inputCenter_chatbox',\n placeholder: getTextInputPlaceholder()?_ctx.$t(getTextInputPlaceholder()):'',\n resize: \"none\",\n onBlur: _cache[3] || (_cache[3] = ($event: any) => (onBlurChattingInput())),\n type: \"textarea\",\n maxlength: _unref(maxTextInputLength)*1.5,\n autocomplete: \"off\"\n }, null, 42, _hoisted_21), [\n [_vModelText, _unref(inputThings).userChatMessage]\n ])\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_22, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(getContextStringLines(_unref(inputThings).userChatMessage), (prestTextline, prestTextlineIndex) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"ellipsis no-wrap no-overflow\",\n key: prestTextline+prestTextlineIndex\n }, [\n (prestTextlineIndex==0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_23, _toDisplayString(prestTextline), 1))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_24, _toDisplayString(prestTextline), 1))\n ]))\n }), 128)),\n _cache[17] || (_cache[17] = _createElementVNode(\"hr\", null, null, -1))\n ]))\n ], 512), [\n [_vShow, _unref(inputThings)?.currentActionFlow?.ifUserTextInput]\n ]),\n _withDirectives(_createElementVNode(\"div\", {\n class: \"text-white rc2 padding10 clickable no-overflow background-black-30 ca\",\n onClick: _cache[4] || (_cache[4] = ($event: any) => (clickFileUploader())),\n onDrop: onDropFileUploader,\n onDragover: onDragOverFileUploader,\n onDragleave: onDragLeaveFileUploader,\n style: {\"margin\":\"45px 45px 12px 45px\",\"transition\":\"0.3s\",\"width\":\"calc(100% - 110px)\",\"border\":\"2px dashed rgba(255,255,255,0.5)\",\"min-height\":\"120px\"},\n id: \"userInputFileUploaderZone\"\n }, [\n _createElementVNode(\"div\", _hoisted_25, _toDisplayString(_ctx.$t(\"messages.DropFileHereOrClick\")), 1),\n _withDirectives(_createElementVNode(\"div\", { class: \"uk-clearfix no-overflow text-white-60 text14 bold margin5 la\" }, _toDisplayString(_unref(inputThings).userInputFileName), 513), [\n [_vShow, _unref(inputThings).userInputFileString]\n ]),\n _withDirectives(_createElementVNode(\"div\", {\n class: \"uk-clearfix hover-overflow text-white-60 text12 margin5 la\",\n style: {\"height\":\"160px\"}\n }, _toDisplayString(getInputFileStringRangeText(_unref(inputThings).userInputTextRange[0], _unref(inputThings).userInputTextRange[1]).substring(0, 5000)) + \" ... \", 513), [\n [_vShow, _unref(inputThings).userInputFileString]\n ])\n ], 544), [\n [_vShow, _unref(inputThings)?.currentActionFlow?.ifFileUploaderInput]\n ]),\n _createElementVNode(\"div\", _hoisted_26, [\n _createElementVNode(\"div\", _hoisted_27, [\n _createElementVNode(\"div\", _hoisted_28, [\n _createElementVNode(\"div\", {\n class: \"rt margin5-lr text-white-60 hotLinkLight\",\n style: {\"padding\":\"0px 0px\"},\n onClick: _cache[5] || (_cache[5] = _withModifiers(($event: any) => ((_unref(UIS).ifCreatedTopicAutoAdd2Playlist=!_unref(UIS).ifCreatedTopicAutoAdd2Playlist)), [\"stop\",\"prevent\"]))\n }, [\n (_unref(UIS).ifCreatedTopicAutoAdd2Playlist)\n ? (_openBlock(), _createElementBlock(\"i\", _hoisted_29))\n : _createCommentVNode(\"\", true),\n (!_unref(UIS).ifCreatedTopicAutoAdd2Playlist)\n ? (_openBlock(), _createElementBlock(\"i\", _hoisted_30))\n : _createCommentVNode(\"\", true),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"messages.AutoAdd2Playlist\")), 1)\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_31, [\n _withDirectives(_createElementVNode(\"div\", _hoisted_32, [\n _createElementVNode(\"div\", _hoisted_33, _toDisplayString(_ctx.$t(\"messages.AIWillReplyInLang\")), 1),\n _createElementVNode(\"div\", _hoisted_34, [\n _createVNode(_component_SysLanguageMenu)\n ])\n ], 512), [\n [_vShow, checkIfAILanguageOptionShow()]\n ])\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_35, [\n _createVNode(_component_el_dropdown, {\n trigger: \"click\",\n style: {\"line-height\":\"16px\"}\n }, {\n dropdown: _withCtx(() => [\n _createVNode(_component_el_dropdown_menu, { class: \"margin5\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_39, [\n _createElementVNode(\"div\", _hoisted_40, [\n _createVNode(_component_el_dropdown_item, { class: \"text-black\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"el-dropdown-link text12B marginb10 margin10-lr hotLink\",\n onClick: _cache[6] || (_cache[6] = ($event: any) => (clickSetupTopicFromHeader()))\n }, _toDisplayString(_ctx.$t(\"messages.CreateAsRootTopic\")), 1)\n ]),\n _: 1\n }),\n _createVNode(_component_el_dropdown_item, { class: \"text-black\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"el-dropdown-link text12B margin10-lr hotLink\",\n onClick: _cache[7] || (_cache[7] = ($event: any) => (clickSetupTopicFromHeader(_ctx.currentHeaderSectionGUID)))\n }, _toDisplayString(_ctx.$t(\"messages.CreateAsSubTopic\")), 1),\n _createElementVNode(\"div\", _hoisted_41, \" (\" + _toDisplayString(_ctx.currentHeaderSectionTitle) + \") \", 1)\n ]),\n _: 1\n })\n ])\n ])\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_36, [\n _cache[18] || (_cache[18] = _createElementVNode(\"div\", { class: \"inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-tree7 gly-rotate-90 img16\" })\n ], -1)),\n (!_unref(UIS).currentFromHeaderSectionGUID)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_37, _toDisplayString(_ctx.$t(\"Root_Topic\")), 1))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_38, _toDisplayString(_ctx.$t(\"Sub_Topic\")), 1)),\n _cache[19] || (_cache[19] = _createElementVNode(\"i\", {\n class: \"inline-block ccc-icon-arrow-down5 img16\",\n style: {\"margin-left\":\"3px\"}\n }, null, -1))\n ])\n ]),\n _: 1\n })\n ], 512), [\n [_vShow, !_unref(inputThings).currentActionFlow?.isNotForTopic]\n ])\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_42, [\n (_unref(inputThings).userInputTextRange)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_43, [\n _createTextVNode(_toDisplayString(_ctx.$t(\"actions.StartSummarizingFrom\")) + \" \", 1),\n _createElementVNode(\"div\", _hoisted_44, _toDisplayString(_unref(inputThings).userInputTextRange[0]) + \"% \", 1),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"actions.StartSummarizingTo\")) + \" \", 1),\n _createElementVNode(\"div\", _hoisted_45, _toDisplayString(_unref(inputThings).userInputTextRange[1]) + \"% \", 1)\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_46, [\n _createVNode(_component_el_slider, {\n modelValue: _unref(inputThings).userInputTextRange,\n \"onUpdate:modelValue\": _cache[8] || (_cache[8] = ($event: any) => ((_unref(inputThings).userInputTextRange) = $event)),\n range: \"\"\n }, null, 8, [\"modelValue\"])\n ])\n ], 512), [\n [_vShow, _unref(inputThings).userInputFileString && _unref(inputThings).currentActionFlow?.ifFileUploaderInput]\n ]),\n _createElementVNode(\"div\", _hoisted_47, [\n _cache[21] || (_cache[21] = _createElementVNode(\"div\", {\n class: \"uk-clearfix la\",\n style: {\"height\":\"20px\"}\n }, null, -1)),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"text12B inline-block rc99 text-white mon-button-selected\", {\r\n 'opacity30 uk-disabled':!checkIsStartCreatingEnabled(_unref(inputThings).userInputTextRange[0],_unref(inputThings).userInputTextRange[1]),\r\n 'hotLinkLight':checkIsStartCreatingEnabled(_unref(inputThings).userInputTextRange[0],_unref(inputThings).userInputTextRange[1])\r\n\r\n }]),\n style: {\"padding\":\"9px 64px 9px 64px\"},\n onClick: _cache[9] || (_cache[9] = _withModifiers(($event: any) => (clickRunCurrentActionFlow()), [\"stop\",\"prevent\"]))\n }, [\n (!_unref(inputThings).currentActionFlow?._startButtonName)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_48, _toDisplayString(_ctx.$t(\"actions.StartCreatingTopic\")), 1))\n : _createCommentVNode(\"\", true),\n (_unref(inputThings).currentActionFlow?._startButtonName=='ask')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_49, _toDisplayString(_ctx.$t(\"actions.StartAskingAI\")), 1))\n : _createCommentVNode(\"\", true),\n (_unref(inputThings).currentActionFlow?.imgSrc)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_50, [\n _createElementVNode(\"img\", {\n src: _unref(inputThings).currentActionFlow?.imgSrc,\n class: \"img24 rc4 margin5-lr\"\n }, null, 8, _hoisted_51)\n ]))\n : (_unref(inputThings).currentActionFlow?.iconClass)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_52, [\n _createElementVNode(\"i\", {\n class: _normalizeClass([_unref(inputThings).currentActionFlow?.iconClass, \"lt margin5-lr\"]),\n style: {\"padding-top\":\"4px\"}\n }, null, 2)\n ]))\n : _createCommentVNode(\"\", true),\n (!_unref(inputThings).currentActionFlow?._startButtonName)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_53, _cache[20] || (_cache[20] = [\n _createElementVNode(\"i\", {\n class: \"lt margin5-lr ccc-icon-arrow-right8 text-white-60\",\n style: {\"padding-top\":\"4px\"}\n }, null, -1),\n _createElementVNode(\"i\", {\n class: \"lt margin5-lr ccc-icon-lamp7 ccc-tag-yellow\",\n style: {\"padding-top\":\"4px\"}\n }, null, -1)\n ])))\n : _createCommentVNode(\"\", true)\n ], 2)\n ]),\n _cache[22] || (_cache[22] = _createElementVNode(\"div\", {\n class: \"uk-clearfix la\",\n style: {\"height\":\"20px\"}\n }, null, -1))\n ], 512), [\n [_vShow, (_unref(UIS).ifChattingUI) ]\n ])\n ], 512), [\n [_vShow, _unref(inputThings).currentActionStepName==_unref(TYPE_INPUT_STEP_NAME).INPUT]\n ])\n ], 38)\n ], 36)\n ], 544), [\n [_vShow, (!_unref(UIS).isSharingViewMode) && (_unref(UIS).ifChattingUI) && (!_unref(UIS).isAIGeneratingPageContent)]\n ])\n ], 64))\n}\n}\n\n})","import script from \"./divUserInputCenter.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./divUserInputCenter.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, vShow as _vShow, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"no-select\" }\n\nimport {TYPE_EVENT, TYPE_FILTER_CODE, TYPE_SECTION} from \"@/codes/_20.def/_modDataDict\";\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\n\r\n\r\n//@TS-NOCHECK\r\n\r\nimport {GUID_TYPE, IFC_Page_Section} from \"@/codes/_20.def/dataTypes\";\r\nimport {\r\n IFC_AIManager,\r\n IFC_AIPrompt_Provider,\r\n IFC_CommandManager,\r\n IFC_PageTemplateManager,\r\n IFC_UserContentManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {TYPE_INDEX_SIDEBAR} from \"@/codes/_20.def/_modDataDict\";\r\n\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\ndeclare var appCommandManager: IFC_CommandManager;\r\ndeclare var appAIManager: IFC_AIManager;\r\ndeclare var appPageTemplateManager: IFC_PageTemplateManager;\r\n\r\ndeclare var setInputFocus: any;\r\ndeclare var clearArray: any;\r\ndeclare var assignArray: any;\r\ndeclare var getSelectedText: any;\r\ndeclare var clearSelection: any;\r\n\r\n\r\nconst __default__ = {\r\n name: 'divNavButtonBar',\r\n // other component options...\r\n\r\n mounted() {\r\n //\r\n\r\n },\r\n computed: {\r\n selectedPageSectionGUID(): GUID_TYPE {\r\n return nz(appUserContentManager.getCurrentSelectedPageSectionGUID(), \"\");\r\n },\r\n selectedPageSection(): IFC_Page_Section {\r\n return nz(appUserContentManager.getCurrentSelectedPageSection(), {});\r\n },\r\n },\r\n\r\n}\r\n\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\nlet defaultFlagColorStyleArray = _.clone(UIS.currentUserContentPageTemplate.flagColorStyles).reverse();\r\n\r\nconst getCount4FilterCode = appUserContentManager.getCount4FilterCode;\r\n\r\nconst getSearchBarWidth = function (): number {\r\n if (UIS.isMiniScreenMode) return 0;\r\n if (UIS.isSharingViewMode) return 0;\r\n\r\n let zResWidth = UIS.resultPageWidth * 0.4;\r\n if (zResWidth < 180) zResWidth = 0;\r\n\r\n return zResWidth;\r\n}\r\n\r\n\r\nconst clickQuitFilterMode = function () {\r\n UIS.ifGoBackAnimation = true;\r\n clickFilter(TYPE_FILTER_CODE.NONE);\r\n}\r\nconst clickBack = function () {\r\n UIS.ifGoBackAnimation = true;\r\n // let zSelectedPageSectionGUID = nz(appUserContentManager.getCurrentSelectedPageSectionGUID(), \"\");\r\n // if (zSelectedPageSectionGUID) {\r\n // // ** cancel selection\r\n // // appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, \"\");\r\n // } else {\r\n if (UIS.currentUserContentPageColumnIndex > 0) {\r\n // ** return to last column\r\n appUserContentManager.resetPageColumn(UIS.currentUserContentPageColumnIndex - 1);\r\n } else {\r\n // ** open File Index\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SIDEBAR_CLOSED;\r\n setTimeout(function () {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.PAGE_FILE_INDEX;\r\n }, 200);\r\n\r\n }\r\n // }\r\n}\r\n\r\nconst clickHome = function () {\r\n UIS.ifGoBackAnimation = true;\r\n if (UIS.currentUserContentPageColumnIndex > 0) {\r\n // ** return to home\r\n appUserContentManager.resetPageColumn(0);\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, \"\");\r\n }\r\n}\r\nconst clickFilter = function (xFilterCode?: string) {\r\n\r\n let zFilterCode = nz(xFilterCode, TYPE_FILTER_CODE.NONE);\r\n if (UIS.filterCode == zFilterCode) {\r\n UIS.filterCode = TYPE_FILTER_CODE.NONE;\r\n } else {\r\n UIS.filterCode = zFilterCode\r\n }\r\n\r\n let zPageColumns = window.PageColumns;\r\n let zPageColumn = nz(zPageColumns[zPageColumns.length - 1], {});\r\n zPageColumn.filterCode = UIS.filterCode;\r\n window.emitter.emit(TYPE_EVENT.PAGE_COLUMN_FILTER_CHANGED);\r\n}\r\n\r\nconst clickAIChat = function () {\r\n if (!UIS.ifChattingUI) {\r\n UIS.ifChattingUI = true;\r\n setInputFocus(\"#inputCenter_chatbox\");\r\n } else {\r\n UIS.ifChattingUI = false;\r\n }\r\n}\r\n\r\nconst clickDive = function () {\r\n UIS.ifGoBackAnimation = false;\r\n let zSelectedPageSectionGUID = nz(appUserContentManager.getCurrentSelectedPageSectionGUID(), \"\");\r\n if (zSelectedPageSectionGUID) {\r\n appUserContentManager.extendPageColumn(UIS.currentUserContentPageColumnIndex, zSelectedPageSectionGUID);\r\n }\r\n}\r\n\r\nwindow.emitter.on(TYPE_EVENT.PAGE_GO_BACK, function () {\r\n cwrn(\"**ipvtr pgbk\")\r\n let zSelectedPageSectionGUID = appUserContentManager.getCurrentSelectedPageSectionGUID();\r\n if (zSelectedPageSectionGUID || UIS.currentUserContentPageColumnIndex > 0) {\r\n clickBack();\r\n } else {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.PAGE_FILE_INDEX;\r\n }\r\n});\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return _withDirectives((_openBlock(), _createElementBlock(\"span\", _hoisted_1, null, 512)), [\n [_vShow, !_unref(UIS).ifLockingPageUI]\n ])\n}\n}\n\n})","import script from \"./divNavButtonBar.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./divNavButtonBar.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"rc3 uk-clearfix\" }\nconst _hoisted_2 = [\"title\"]\nconst _hoisted_3 = {\n key: 0,\n class: \"inline-block\"\n}\nconst _hoisted_4 = {\n class: \"no-select\",\n style: {\"max-width\":\"400px\",\"min-width\":\"240px\"}\n}\nconst _hoisted_5 = { class: \"uk-clearfix text-black app-comment\" }\nconst _hoisted_6 = { class: \"uk-clearfix text-black app-comment\" }\nconst _hoisted_7 = { class: \"uk-clearfix text12B\" }\nconst _hoisted_8 = { class: \"uk-clearfix text-black app-comment\" }\nconst _hoisted_9 = { class: \"uk-clearfix text12B\" }\n\nimport {computed} from 'vue';\r\nimport {TYPE_FILTER_CODE, TYPE_INDEX_SIDEBAR, TYPE_PROP} from \"../../_20.def/_modDataDict\";\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\n\r\n\r\n// const emit = defineEmits([\"onSignOut\", \"onManageSubscription\", \"onUpgradeSubscription\"]);\r\n\r\nimport {\r\n IFC_AIPrompt_Provider,\r\n IFC_PageTemplateManager,\r\n IFC_SharingManager,\r\n IFC_UserContentManager,\r\n IFC_UserManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\n\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\"\r\n\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var newPageWithHTML: any;\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\ndeclare var appSharingManager: IFC_SharingManager;\r\ndeclare var appPageTemplateManager: IFC_PageTemplateManager;\r\n\r\nvar appUserManager: IFC_UserManager = window.appUserManager;\r\n\r\n\r\nconst __default__ = {\r\n computed: {},\r\n\r\n props: {\r\n userInfo: {\r\n type: Object,\r\n // required: true\r\n },\r\n /*pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true\r\n },\r\n sectionCardStyle: String,\r\n parentViewMode: Boolean,*/\r\n },\r\n methods: {},\r\n name: \"SysTutorialMenu\",\r\n\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n emits: [],\n setup(__props, { emit: __emit }) {\n\r\n\r\nconst emit = __emit;\r\n\r\n\r\nconst clickHowTo = function (xHowToName: string) {\r\n if (xHowToName) {\r\n UIS.previewHTML = \"/tutorial/\" + xHowToName + \".html\";\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SYS_SLIDE_PREVIEW_DIALOG;\r\n }\r\n}\r\n\r\n\r\nconst clickOpenExternalPage = function (xGotoURL: string) {\r\n if (xGotoURL) {\r\n window.open(xGotoURL, '_blank').focus();\r\n }\r\n\r\n}\r\n\r\nconst clickGotoSample = function (xGotoName: string) {\r\n if (xGotoName) {\r\n window.open(\"/samples/\" + xGotoName, '_blank').focus();\r\n }\r\n\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_dropdown_item = _resolveComponent(\"el-dropdown-item\")!\n const _component_el_dropdown_menu = _resolveComponent(\"el-dropdown-menu\")!\n const _component_el_dropdown = _resolveComponent(\"el-dropdown\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_el_dropdown, {\n trigger: \"click\",\n style: {\"line-height\":\"16px\"}\n }, {\n dropdown: _withCtx(() => [\n _createVNode(_component_el_dropdown_menu, { class: \"margin5\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createVNode(_component_el_dropdown_item, { class: \"text-black\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"uk-clearfix margin10 text12B hotLink\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (clickHowTo('QuickStart')))\n }, [\n _cache[10] || (_cache[10] = _createElementVNode(\"div\", { class: \"img16 rc99 inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-airplane3 ccc-tag-blue\" })\n ], -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"messages.HelpHowToStart\")), 1)\n ])\n ]),\n _: 1\n }),\n _cache[15] || (_cache[15] = _createElementVNode(\"hr\", null, null, -1)),\n _createVNode(_component_el_dropdown_item, { class: \"text-black\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"uk-clearfix margin10 text12B hotLink\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (clickHowTo('CreateTopics')))\n }, [\n _cache[11] || (_cache[11] = _createElementVNode(\"div\", { class: \"img16 rc99 inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-lamp7 ccc-tag-yellow\" })\n ], -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"messages.HelpHowToCreateTopics\")), 1)\n ])\n ]),\n _: 1\n }),\n _createVNode(_component_el_dropdown_item, { class: \"text-black\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"uk-clearfix margin10 text12B hotLink\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (clickHowTo('PreparePlaylist')))\n }, [\n _cache[12] || (_cache[12] = _createElementVNode(\"div\", { class: \"img16 rc99 inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-star-full ccc-tag-yellow\" })\n ], -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"messages.HelpHowToPreparePlaylist\")), 1)\n ])\n ]),\n _: 1\n }),\n _createVNode(_component_el_dropdown_item, { class: \"text-black\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"uk-clearfix margin10 text12B hotLink\",\n onClick: _cache[3] || (_cache[3] = ($event: any) => (clickHowTo('PlayPreview')))\n }, [\n _cache[13] || (_cache[13] = _createElementVNode(\"div\", { class: \"img16 rc99 inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-play4 ccc-tag-green\" })\n ], -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"messages.HelpHowToPlayPreview\")), 1)\n ])\n ]),\n _: 1\n }),\n _createVNode(_component_el_dropdown_item, { class: \"text-black\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"uk-clearfix margin10 text12B hotLink\",\n onClick: _cache[4] || (_cache[4] = ($event: any) => (clickHowTo('EditSlides')))\n }, [\n _cache[14] || (_cache[14] = _createElementVNode(\"div\", { class: \"img16 rc99 inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-pencil6 text-black-60\" })\n ], -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"messages.HelpHowToEditSlides\")), 1)\n ])\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n _cache[19] || (_cache[19] = _createElementVNode(\"hr\", null, null, -1)),\n _createVNode(_component_el_dropdown_item, { class: \"text-black\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"uk-clearfix margin10 text12B hotLink\",\n onClick: _cache[5] || (_cache[5] = ($event: any) => (clickHowTo('EnhancedController')))\n }, [\n _cache[16] || (_cache[16] = _createElementVNode(\"div\", { class: \"img16 rc99 inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-file-empty gly-rotate-180 text-black-60\" })\n ], -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"messages.HelpHowToUseEnhancedController\")), 1)\n ])\n ]),\n _: 1\n }),\n _createVNode(_component_el_dropdown_item, { class: \"text-black\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"uk-clearfix margin10 text12B hotLink\",\n onClick: _cache[6] || (_cache[6] = ($event: any) => (clickHowTo('SharePlaylist')))\n }, [\n _cache[17] || (_cache[17] = _createElementVNode(\"div\", { class: \"img16 rc99 inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-share3 text-black-60\" })\n ], -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"messages.HelpHowToSharePlaylist\")), 1)\n ])\n ]),\n _: 1\n }),\n _createVNode(_component_el_dropdown_item, { class: \"text-black\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"uk-clearfix margin10 text12B hotLink\",\n onClick: _cache[7] || (_cache[7] = ($event: any) => (clickOpenExternalPage(_unref(TYPE_PROP).BLOG_HOW_TO_EXPORT)))\n }, [\n _cache[18] || (_cache[18] = _createElementVNode(\"div\", { class: \"img16 rc99 inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-share text-black-60\" })\n ], -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"messages.HelpHowToExportSlides\")), 1)\n ])\n ]),\n _: 1\n })\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", _hoisted_9, [\n _cache[21] || (_cache[21] = _createElementVNode(\"hr\", null, null, -1)),\n _createVNode(_component_el_dropdown_item, { class: \"text-black\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"uk-clearfix margin10 text12B hotLink\",\n onClick: _cache[8] || (_cache[8] = ($event: any) => (clickGotoSample('Sample1.HTML')))\n }, [\n _cache[20] || (_cache[20] = _createElementVNode(\"div\", { class: \"img16 rc99 inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-presentation text-black-60\" })\n ], -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"messages.Sample1\")), 1)\n ])\n ]),\n _: 1\n })\n ])\n ])\n ])\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"el-dropdown-link hotLink inline-block app-comment\",\n title: _ctx.$t('tooltips.Help')\n }, [\n _cache[9] || (_cache[9] = _createElementVNode(\"div\", { class: \"inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-question5 img16\" })\n ], -1)),\n (!_unref(UIS).isMiniScreenMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, _toDisplayString(_ctx.$t(\"Help\")), 1))\n : _createCommentVNode(\"\", true)\n ], 8, _hoisted_2)\n ]),\n _: 1\n })\n ]))\n}\n}\n\n})","import script from \"./SysTutorialMenu.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./SysTutorialMenu.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, unref as _unref, withModifiers as _withModifiers, withCtx as _withCtx, createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives } from \"vue\"\n\nconst _hoisted_1 = { class: \"rc3 uk-clearfix\" }\nconst _hoisted_2 = {\n class: \"no-select app-comment\",\n style: {\"max-width\":\"640px\",\"min-width\":\"240px\"}\n}\nconst _hoisted_3 = { class: \"text12B margin10 uk-clearfix text-black\" }\nconst _hoisted_4 = { class: \"hotLink\" }\nconst _hoisted_5 = { class: \"uk-clearfix\" }\nconst _hoisted_6 = {\n class: \"uk-clearfix text-black-30\",\n style: {\"padding-left\":\"28px\"}\n}\nconst _hoisted_7 = { key: 0 }\nconst _hoisted_8 = { key: 1 }\nconst _hoisted_9 = { class: \"text12B margin10 uk-clearfix\" }\nconst _hoisted_10 = { class: \"hotLink\" }\nconst _hoisted_11 = { class: \"uk-clearfix\" }\nconst _hoisted_12 = {\n class: \"uk-clearfix text-black-30\",\n style: {\"padding-left\":\"28px\"}\n}\nconst _hoisted_13 = { key: 0 }\nconst _hoisted_14 = { class: \"text12B margin10 uk-clearfix\" }\nconst _hoisted_15 = { class: \"hotLink\" }\nconst _hoisted_16 = { class: \"uk-clearfix\" }\nconst _hoisted_17 = {\n class: \"uk-clearfix text-black-30\",\n style: {\"padding-left\":\"28px\"}\n}\nconst _hoisted_18 = { key: 0 }\nconst _hoisted_19 = { key: 1 }\nconst _hoisted_20 = { key: 0 }\nconst _hoisted_21 = { class: \"text12B margin10\" }\nconst _hoisted_22 = {\n class: \"uk-clearfix text-black-30\",\n style: {\"padding-left\":\"28px\"}\n}\n\nimport {computed} from 'vue';\r\nimport {\r\n TYPE_FILTER_CODE,\r\n TYPE_INDEX_SIDEBAR,\r\n TYPE_INSERT_OBJECT,\r\n TYPE_PROP,\r\n TYPE_SECTION\r\n} from \"../../_20.def/_modDataDict\";\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\nimport {GUID_TYPE, IFC_Page_Data} from \"@/codes/_20.def/dataTypes\";\r\n\r\n\r\n// const emit = defineEmits([\"onSignOut\", \"onManageSubscription\", \"onUpgradeSubscription\"]);\r\n\r\nimport {\r\n IFC_AIPrompt_Provider,\r\n IFC_PageTemplateManager, IFC_SERPManager,\r\n IFC_SharingManager,\r\n IFC_UserContentManager,\r\n IFC_UserManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\n\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\"\r\nimport {IFC_Page_Section} from \"@/codes/_20.def/dataTypes\";\r\n\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\nvar appSERappSERPManager: IFC_SERPManager = window.appSERPManager;\r\n\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var chance: any;\r\ndeclare var setInputFocus: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var newPageWithHTML: any;\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\ndeclare var appSharingManager: IFC_SharingManager;\r\ndeclare var appPageTemplateManager: IFC_PageTemplateManager;\r\n\r\n\r\nvar appUserManager: IFC_UserManager = window.appUserManager;\r\n\r\n\r\nconst __default__ = {\r\n computed: {\r\n selectedPageSection() {\r\n return appUserContentManager.getCurrentSelectedPageSection();\r\n },\r\n selectedHeaderPageSection() {\r\n let zSelectedHeaderPageSectionGUID = appUserContentManager.getCurrentSelectedPageHeaderSectionGUID();\r\n if (!zSelectedHeaderPageSectionGUID) return;\r\n return appUserContentManager.getSection(UIS.currentUserContentPageGUID, zSelectedHeaderPageSectionGUID);\r\n },\r\n },\r\n\r\n props: {\r\n userInfo: {\r\n type: Object,\r\n // required: true\r\n },\r\n /*pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true\r\n },\r\n sectionCardStyle: String,\r\n parentViewMode: Boolean,*/\r\n },\r\n methods: {},\r\n name: \"InsertObjectMenu\",\r\n\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n emits: [],\n setup(__props, { emit: __emit }) {\n\r\n\r\nconst emit = __emit;\r\n\r\nconst clickStartNewDeck = function () {\r\n appUserContentManager.insertBlankPage(\"\", \"\");\r\n}\r\n\r\nconst clickInsertNewObject = function (xObjectType: TYPE_INSERT_OBJECT) {\r\n // * init\r\n let zPageSections2Insert: IFC_Page_Section[] = [];\r\n let zCurrentPageColumnFilterGUID = appUserContentManager.getCurrentPageColumnParentPageSectionGUID();\r\n let zInsertToPageSectionIndex = appUserContentManager.getCurrentSelectedPageSectionIndex();\r\n let zCurrentSelectedPageSectionGUID = appUserContentManager.getCurrentSelectedPageSectionGUID();\r\n let zCurrentSelectedPageHeaderSectionGUID = appUserContentManager.getCurrentSelectedPageHeaderSectionGUID();\r\n\r\n let zAllPageSections = nz(appUserContentManager.getCurrentPageSections(), []);\r\n\r\n if (!zCurrentSelectedPageSectionGUID) {\r\n zInsertToPageSectionIndex = zAllPageSections.length - 1;\r\n }\r\n\r\n function getHeaderEndPosIndex() {\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n let zTargetPosPageSectionGUID: GUID_TYPE = \"\";\r\n let zTargetPosPageSectionIndex = 0;\r\n let zI = 0;\r\n _.each(zPageItem.pageSections, function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection && xPageSection._GUID == zCurrentSelectedPageHeaderSectionGUID) {\r\n zTargetPosPageSectionGUID = xPageSection._GUID;\r\n zTargetPosPageSectionIndex = zI;\r\n }\r\n if (xPageSection && xPageSection._headerSectionGUID == zCurrentSelectedPageHeaderSectionGUID) {\r\n zTargetPosPageSectionGUID = xPageSection._GUID\r\n zTargetPosPageSectionIndex = zI;\r\n }\r\n zI++;\r\n });\r\n // appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, zTargetPosPageSectionGUID, zCurrentSelectedPageHeaderSectionGUID);\r\n return (zTargetPosPageSectionIndex);\r\n }\r\n\r\n // * MEMO\r\n if (xObjectType == TYPE_INSERT_OBJECT.MEMO) {\r\n\r\n /*if (zCurrentSelectedPageHeaderSectionGUID && (zCurrentSelectedPageHeaderSectionGUID == zCurrentSelectedPageSectionGUID)) {\r\n // zInsertToPageSectionIndex = getHeaderEndPosIndex()+1;\r\n // console.log(\"*zinstoposx2\",zInsertToPageSectionIndex,zCurrentSelectedPageHeaderSectionGUID);\r\n }*/\r\n\r\n // ** create group (if non-selection)\r\n /*if (!zCurrentSelectedPageSectionGUID) {\r\n let zMemoGroupSection: IFC_Page_Section = {\r\n _parentSectionGUID: zCurrentPageColumnFilterGUID,\r\n _GUID: chance.guid(),\r\n flagCode: \"yellow\",\r\n sectionType: TYPE_SECTION.HEADER,\r\n sectionTitle: i18n.global.t(\"New_Blank_Group\"),\r\n }\r\n zPageSections2Insert.push(zMemoGroupSection);\r\n }*/\r\n\r\n // ** create memo section\r\n let zMemoSectionGUID = chance.guid();\r\n let zMemoSection: IFC_Page_Section = {\r\n _parentSectionGUID: zCurrentPageColumnFilterGUID,\r\n _GUID: zMemoSectionGUID,\r\n flagCode: TYPE_FILTER_CODE.YELLOW,\r\n sectionType: TYPE_SECTION.NOTE_CARD,\r\n sectionTitle: i18n.global.t(\"New_Blank_Memo\") + \"-\" + new Date().toLocaleString(),\r\n }\r\n zPageSections2Insert.push(zMemoSection);\r\n\r\n // ** insert memo objects\r\n appUserContentManager.insertPageSectionsToPosition(\r\n UIS.currentUserContentPageGUID, zPageSections2Insert,\r\n zInsertToPageSectionIndex, zCurrentPageColumnFilterGUID\r\n );\r\n setTimeout(function () {\r\n appUserContentManager.scrollPageTo(zMemoSection._GUID, \"center\");\r\n }, 400);\r\n\r\n appUserContentManager.updateMultiPageSectionStars(UIS.currentUserContentPageGUID, [zMemoSectionGUID], true);\r\n\r\n\r\n // ** open editor\r\n setTimeout(function () {\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, zMemoSectionGUID);\r\n let zSelectedPageSection: IFC_Page_Section = appUserContentManager.getCurrentSelectedPageSection();\r\n if (zSelectedPageSection && zSelectedPageSection._GUID) {\r\n appUserContentManager.startEditingPageSection(zSelectedPageSection, TYPE_INDEX_SIDEBAR.PAGE_SECTION_TEXT_EDITOR);\r\n setTimeout(function () {\r\n setInputFocus(\"#inputTitle_\" + zSelectedPageSection._GUID);\r\n }, 300);\r\n\r\n // console.error(\"*#inputTitle_\" + zSelectedPageSection._GUID);\r\n }\r\n }, 100);\r\n }\r\n\r\n // * BOOKMARK\r\n if (xObjectType == TYPE_INSERT_OBJECT.BOOKMARK) {\r\n\r\n let zNewMemoString = nz(prompt(\r\n \"Please enter an URL to save.\\n\",\r\n ), \"\");\r\n let zNewMemoStringLow = zNewMemoString.trim().toLowerCase();\r\n\r\n if (!zNewMemoStringLow) return;\r\n\r\n let zRefLink = \"\";\r\n if (zNewMemoStringLow.startsWith(\"www.\") || zNewMemoStringLow.startsWith(\"https://\")) {\r\n zRefLink = zNewMemoString;\r\n }\r\n\r\n let zTitle = \"\";\r\n zTitle = i18n.global.t(\"New_Blank_Memo\") + \"-\" + new Date().toLocaleString();\r\n if (zRefLink) {\r\n zTitle = i18n.global.t(\"New_Bookmark\") + \"-\" + appSERappSERPManager.getHostName(zRefLink);\r\n } else {\r\n return\r\n }\r\n\r\n // ** create bookmark section\r\n let zMemoSectionGUID = chance.guid();\r\n let zMemoSection: IFC_Page_Section = {\r\n _parentSectionGUID: zCurrentPageColumnFilterGUID,\r\n _GUID: zMemoSectionGUID,\r\n flagCode: TYPE_FILTER_CODE.YELLOW,\r\n sectionType: TYPE_SECTION.NOTE_CARD,\r\n sectionTitle: zTitle,\r\n sectionMemo: (zRefLink ? \"\" : zNewMemoString),\r\n refLink: zRefLink,\r\n }\r\n zPageSections2Insert.push(zMemoSection);\r\n\r\n // ** insert memo objects\r\n appUserContentManager.insertPageSectionsToPosition(\r\n UIS.currentUserContentPageGUID, zPageSections2Insert,\r\n zInsertToPageSectionIndex, zCurrentPageColumnFilterGUID\r\n );\r\n appUserContentManager.updateMultiPageSectionStars(UIS.currentUserContentPageGUID, [zMemoSectionGUID], true);\r\n\r\n\r\n // ** open editor\r\n setTimeout(function () {\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, zMemoSectionGUID);\r\n let zSelectedPageSection: IFC_Page_Section = appUserContentManager.getCurrentSelectedPageSection();\r\n if (zSelectedPageSection && zSelectedPageSection._GUID) {\r\n appUserContentManager.startEditingPageSection(zSelectedPageSection, TYPE_INDEX_SIDEBAR.PAGE_SECTION_TEXT_EDITOR);\r\n setTimeout(function () {\r\n setInputFocus(\"#inputTitle_\" + zSelectedPageSection._GUID);\r\n }, 300);\r\n\r\n // console.error(\"*#inputTitle_\" + zSelectedPageSection._GUID);\r\n }\r\n }, 100);\r\n }\r\n\r\n // * GROUP\r\n if (xObjectType == TYPE_INSERT_OBJECT.GROUP) {\r\n if (zCurrentSelectedPageHeaderSectionGUID) {\r\n zInsertToPageSectionIndex = getHeaderEndPosIndex();\r\n // console.log(\"*zinstoposx2\",zInsertToPageSectionIndex,zCurrentSelectedPageHeaderSectionGUID);\r\n } else {\r\n zInsertToPageSectionIndex = zAllPageSections.length - 1;\r\n }\r\n\r\n\r\n // ** create group (if non-selection)\r\n let zNewGroupSectionGUID = chance.guid();\r\n\r\n let zNewGroupSection: IFC_Page_Section = {\r\n _parentSectionGUID: zCurrentPageColumnFilterGUID,\r\n _GUID: zNewGroupSectionGUID,\r\n sectionType: TYPE_SECTION.HEADER,\r\n sectionTitle: i18n.global.t(\"New_Blank_Group\"),\r\n }\r\n zPageSections2Insert.push(zNewGroupSection);\r\n\r\n\r\n // ** insert group objects\r\n //\r\n\r\n appUserContentManager.insertPageSectionsToPosition(\r\n UIS.currentUserContentPageGUID, zPageSections2Insert,\r\n zInsertToPageSectionIndex, zCurrentPageColumnFilterGUID\r\n );\r\n\r\n // console.error(\"*inst grp\", zInsertToPageSectionIndex);\r\n\r\n // ** open editor\r\n /*setTimeout(function () {\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, zNewGroupSectionGUID);\r\n let zSelectedPageSection: IFC_Page_Section = appUserContentManager.getCurrentSelectedPageSection();\r\n if (zSelectedPageSection && zSelectedPageSection._GUID) {\r\n appUserContentManager.startEditingPageSection(zSelectedPageSection, TYPE_INDEX_SIDEBAR.PAGE_SECTION_TEXT_EDITOR);\r\n setTimeout(function () {\r\n setInputFocus(\"#inputTitle_\" + zSelectedPageSection._GUID);\r\n }, 300);\r\n\r\n // console.error(\"*#inputTitle_\" + zSelectedPageSection._GUID);\r\n }\r\n }, 100);*/\r\n }\r\n\r\n}\r\n\r\n/*const clickInsertMoreLikeThis = async function (xTargetPageSection: IFC_Page_Section) {\r\n\r\n if (!xTargetPageSection) return console.log(\"*mis sc\");\r\n if (!xTargetPageSection.sectionTitle) return console.log(\"*mis sc ttl\");\r\n\r\n if (confirm(i18n.global.t(\"messages.Confirm2GenerateMoreLikeThis\") + nz(xTargetPageSection.sectionTitle, \"\"))) {\r\n appUserContentManager.upsertPageSectionsByMoreLikeThis(UIS.currentUserContentPageGUID, xTargetPageSection);\r\n }\r\n}*/\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_dropdown_item = _resolveComponent(\"el-dropdown-item\")!\n const _component_el_dropdown_menu = _resolveComponent(\"el-dropdown-menu\")!\n const _component_el_dropdown = _resolveComponent(\"el-dropdown\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_el_dropdown, {\n trigger: \"click\",\n \"hide-on-click\": true,\n onClick: _withModifiers(($event: any) => (1==1), [\"stop\",\"prevent\"])\n }, {\n dropdown: _withCtx(() => [\n _createVNode(_component_el_dropdown_menu, { class: \"margin5\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(_component_el_dropdown_item, {\n class: \"text-black\",\n style: {\"background\":\"none\",\"height\":\"48px\"},\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickInsertNewObject(_unref(TYPE_INSERT_OBJECT).GROUP)), [\"stop\",\"prevent\"]))\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _cache[4] || (_cache[4] = _createElementVNode(\"i\", { class: \"ccc-icon-folder4 img16\" }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"messages.InsertNewGroup\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n (_ctx.selectedHeaderPageSection)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, _toDisplayString(_ctx.$t(\"before\")) + \" [\" + _toDisplayString(_ctx.selectedHeaderPageSection.sectionTitle) + \"] \", 1))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_8, _toDisplayString(_ctx.$t(\"messages.InTheTopOfDeck\")), 1))\n ])\n ])\n ]),\n _: 1\n })\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_9, [\n _createVNode(_component_el_dropdown_item, {\n class: \"text-black\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (clickInsertNewObject(_unref(TYPE_INSERT_OBJECT).MEMO))),\n style: {\"background\":\"none\",\"height\":\"48px\"}\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", _hoisted_11, [\n _cache[5] || (_cache[5] = _createElementVNode(\"i\", { class: \"ccc-icon-file-plus img16\" }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"messages.InsertNewNote\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_12, [\n (_ctx.selectedHeaderPageSection)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_13, \" [\" + _toDisplayString(_ctx.selectedHeaderPageSection.sectionTitle) + \"] \", 1))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]),\n _: 1\n })\n ], 512), [\n [_vShow, _ctx.selectedPageSection]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_14, [\n _createVNode(_component_el_dropdown_item, {\n class: \"text-black\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (clickInsertNewObject(_unref(TYPE_INSERT_OBJECT).BOOKMARK))),\n style: {\"background\":\"none\",\"height\":\"48px\"}\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_15, [\n _createElementVNode(\"div\", _hoisted_16, [\n _cache[6] || (_cache[6] = _createElementVNode(\"i\", { class: \"ccc-icon-link img16\" }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"messages.InsertNewBookmark\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n (_ctx.selectedPageSection && (_ctx.selectedPageSection.sectionType==_unref(TYPE_SECTION).NOTE_CARD))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_18, _toDisplayString(_ctx.$t(\"after\")) + \" [\" + _toDisplayString(_ctx.selectedPageSection.sectionTitle) + \"] \", 1))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_19, [\n (_ctx.selectedHeaderPageSection)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_20, \" [\" + _toDisplayString(_ctx.selectedHeaderPageSection.sectionTitle) + \"] \", 1))\n : _createCommentVNode(\"\", true)\n ]))\n ])\n ])\n ]),\n _: 1\n })\n ], 512), [\n [_vShow, _ctx.selectedPageSection]\n ]),\n _createElementVNode(\"div\", _hoisted_21, [\n _cache[8] || (_cache[8] = _createElementVNode(\"hr\", null, null, -1)),\n _createVNode(_component_el_dropdown_item, {\n class: \"text-black\",\n style: {\"background\":\"none\",\"height\":\"48px\"}\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink\",\n onClick: _cache[3] || (_cache[3] = ($event: any) => (clickStartNewDeck()))\n }, [\n _cache[7] || (_cache[7] = _createElementVNode(\"i\", { class: \"ccc-icon-stack-text img16\" }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"messages.StartNewDeck\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_22, _toDisplayString(_ctx.$t(\"messages.StartNewDeckDescription\")), 1)\n ]),\n _: 1\n })\n ])\n ])\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _cache[9] || (_cache[9] = _createElementVNode(\"div\", {\n class: \"el-dropdown-link inline-block text-black-60\",\n style: {\"line-height\":\"34px\"}\n }, [\n _createElementVNode(\"div\", { class: \"inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-plus\" })\n ])\n ], -1))\n ]),\n _: 1\n })\n ]))\n}\n}\n\n})","import script from \"./InsertObjectMenu.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./InsertObjectMenu.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"rc3 uk-clearfix\" }\nconst _hoisted_2 = { class: \"el-dropdown-link hotLinkLight inline-block text-white text12B\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"inline-block\"\n}\nconst _hoisted_4 = {\n class: \"no-select\",\n style: {\"width\":\"300px\"}\n}\nconst _hoisted_5 = { class: \"uk-clearfix app-comment\" }\nconst _hoisted_6 = [\"onClick\"]\n\nimport {computed} from 'vue';\r\nimport {TYPE_PROP} from \"../../_20.def/_modDataDict\";\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\nimport {TYPE_EVENT} from \"@/codes/_20.def/_modDataDict\";\r\n\r\n\r\n// const emit = defineEmits([\"onSignOut\", \"onManageSubscription\", \"onUpgradeSubscription\"]);\r\n\r\nimport {defineComponent} from 'vue'\r\n\r\nimport {\r\n IFC_AIManager, IFC_AIPrompt_Provider,\r\n IFC_PageTemplateManager, IFC_SharingManager,\r\n IFC_UserContentManager,\r\n IFC_UserManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {\r\n GUID_TYPE,\r\n IFC_Page_Column,\r\n IFC_Page_Section,\r\n IFC_UIS,\r\n IFC_Page_Data,\r\n IFC_User_Info\r\n} from \"@/codes/_20.def/dataTypes\";\r\nimport {TYPE_SECTION} from \"@/codes/_20.def/_modDataDict\";\r\nimport {reactive} from 'vue';\r\n\r\nimport {lockResultPageUI, unlockResultPageUI} from \"@/codes/_10.sys/UICommittee\"\r\nimport {LangSettings} from \"@/codes/_90.lang/langUtils\";\r\n\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var newPageWithHTML: any;\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\ndeclare var appSharingManager: IFC_SharingManager;\r\ndeclare var appPageTemplateManager: IFC_PageTemplateManager;\r\n\r\nvar appUserManager: IFC_UserManager = window.appUserManager;\r\n\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\n\r\n\r\nconst __default__ = {\r\n computed: {},\r\n\r\n props: {\r\n userInfo: {\r\n type: Object,\r\n // required: true\r\n },\r\n /*pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true\r\n },\r\n sectionCardStyle: String,\r\n parentViewMode: Boolean,*/\r\n },\r\n methods: {},\r\n name: \"SysLanguageMenu\",\r\n\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n emits: [],\n setup(__props, { emit: __emit }) {\n\r\n\r\nconst emit = __emit;\r\n\r\nconst getLangTextName = function (xLangCode:string) {\r\n // cerr(\"*lss\",LangSettings)\r\n let zResLangInfo = nz(LangSettings.LangCodeNameMap[xLangCode], {});\r\n let zResLangTextName = zResLangInfo.text;\r\n return nz(zResLangTextName);\r\n}\r\n\r\nconst clickItemLanguage = function (xLangCode:string) {\r\n LangSettings.saveLangCode(xLangCode);\r\n window.emitter.emit(TYPE_EVENT.LANG_CHANGED);\r\n//\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_dropdown_item = _resolveComponent(\"el-dropdown-item\")!\n const _component_el_dropdown_menu = _resolveComponent(\"el-dropdown-menu\")!\n const _component_el_dropdown = _resolveComponent(\"el-dropdown\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_el_dropdown, {\n trigger: \"click\",\n style: {\"line-height\":\"16px\"}\n }, {\n dropdown: _withCtx(() => [\n _createVNode(_component_el_dropdown_menu, { class: \"margin5\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createVNode(_component_el_dropdown_item, { class: \"text-black\" }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(LangSettings).LangCodeNameMap, (itemLangInfo, itemLangCode) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"el-dropdown-link text12B margin10 hotLink\",\n onClick: ($event: any) => (clickItemLanguage(itemLangCode)),\n key: itemLangCode\n }, _toDisplayString(itemLangInfo.text), 9, _hoisted_6))\n }), 128))\n ]),\n _: 1\n })\n ])\n ])\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _cache[0] || (_cache[0] = _createElementVNode(\"div\", { class: \"inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-sphere2 img16\" })\n ], -1)),\n (!_unref(UIS).isMiniScreenMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, _toDisplayString(getLangTextName(_unref(UIS).langCode)), 1))\n : _createCommentVNode(\"\", true),\n _cache[1] || (_cache[1] = _createElementVNode(\"i\", {\n class: \"inline-block ccc-icon-arrow-down5 img16\",\n style: {\"margin-left\":\"3px\"}\n }, null, -1))\n ])\n ]),\n _: 1\n })\n ]))\n}\n}\n\n})","import script from \"./SysLanguageMenu.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./SysLanguageMenu.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"absolute-max text16 rc3 back-trans ccc-back-blur padding10 hover-overflow\"\n}\nconst _hoisted_2 = {\n class: \"uk-animation-scale-up uk-animation-fast\",\n style: {\"position\":\"absolute\",\"left\":\"10px\",\"right\":\"10px\",\"bottom\":\"10px\",\"top\":\"10px\"}\n}\nconst _hoisted_3 = [\"src\"]\n\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\nimport {reactive} from \"vue\";\r\nimport {IFC_Play_Options} from \"@/codes/_20.def/dataTypes\";\r\n\r\n\r\nimport {\r\n IFC_AIManager,\r\n IFC_AIPrompt_Provider,\r\n IFC_PageTemplateManager,\r\n IFC_SERPManager,\r\n IFC_UserContentManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {IFC_Page_Section} from \"@/codes/_20.def/dataTypes\";\r\nimport {TYPE_INDEX_SIDEBAR, TYPE_SECTION} from \"@/codes/_20.def/_modDataDict\";\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var clearObject: any;\r\ndeclare var assignArray: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var chance: any;\r\n\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\n\r\nvar appAIManager: IFC_AIManager = window.appAIManager;\r\nvar appPageTemplateManager: IFC_PageTemplateManager = window.appPageTemplateManager;\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\nvar appSERPManager: IFC_SERPManager = window.appSERPManager;\r\n\r\n\r\nconst __default__ = {\r\n computed: {\r\n TYPE_SECTION() {\r\n return TYPE_SECTION\r\n },\r\n\r\n },\r\n\r\n props: {\r\n pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true\r\n },\r\n },\r\n methods: {},\r\n name: \"SysSlidePreviewDialog\",\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\n\r\nlet currentPagePlayOptions: IFC_Play_Options = nz(UIS.currentPageData?.playOptions, {});\r\n\r\nconst getHostName = appSERPManager.getHostName;\r\nconst getNoteContentInputRows = function () {\r\n let zRows = Math.floor((nz(UIS.resultPageHeight, 1000) - 640) / 20);\r\n return zRows;\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_unref(UIS).previewHTML)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"iframe\", {\n src: _unref(UIS).previewHTML,\n class: \"rc2\",\n style: {\"width\":\"calc(100%)\",\"height\":\"calc(100%)\"}\n }, null, 8, _hoisted_3)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./SysSlidePreviewDialog.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./SysSlidePreviewDialog.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withModifiers as _withModifiers, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives, normalizeStyle as _normalizeStyle, normalizeClass as _normalizeClass, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"inline-block text12B text-black-60\",\n style: {\"padding-top\":\"12px\"}\n}\nconst _hoisted_2 = {\n key: 1,\n style: {},\n class: \"ca rc2\"\n}\nconst _hoisted_3 = { class: \"margin10-lr uk-clearfix no-overflow ellipsis\" }\nconst _hoisted_4 = [\"title\"]\nconst _hoisted_5 = {\n key: 0,\n class: \"lt\",\n style: {\"padding-top\":\"4px\"}\n}\nconst _hoisted_6 = { class: \"clickable hotLink inline-block nowrap no-overflow ellipsis margin10-lr\" }\nconst _hoisted_7 = {\n key: 0,\n style: {\"position\":\"absolute\",\"top\":\"0px\",\"z-index\":\"240\",\"left\":\"300px\",\"right\":\"480px\"},\n class: \"ellipsis no-overflow ca\"\n}\nconst _hoisted_8 = { class: \"inline-block margin5-lr\" }\nconst _hoisted_9 = { class: \"inline-block ccc-color-primary\" }\nconst _hoisted_10 = { class: \"mon-med-button\" }\nconst _hoisted_11 = { class: \"mon-med-button\" }\nconst _hoisted_12 = {\n key: 0,\n class: \"margin5 clickable hotLink inline-block nowrap no-overflow ellipsis\"\n}\nconst _hoisted_13 = {\n key: 1,\n class: \"margin5 clickable hotLink inline-block nowrap no-overflow ellipsis\"\n}\nconst _hoisted_14 = {\n key: 1,\n class: \"inline-block margin10 text-black-60\",\n style: {\"z-index\":\"300\",\"position\":\"absolute\",\"right\":\"12px\",\"top\":\"10px\"}\n}\nconst _hoisted_15 = { class: \"inline-block hotLink text12B\" }\n\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\nimport {TYPE_EVENT, TYPE_PROP} from \"@/codes/_20.def/_modDataDict\";\r\n\r\n\r\n\r\n//@TS-NOCHECK\r\n\r\nimport {IFC_Page_Data, IFC_UIS, IFC_User_Info} from \"@/codes/_20.def/dataTypes\";\r\nimport {\r\n IFC_AI_ROLE,\r\n IFC_AIPrompt_Provider,\r\n IFC_SharingManager,\r\n IFC_UserContentManager, IFC_UserManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {TYPE_INDEX_SIDEBAR} from \"@/codes/_20.def/_modDataDict\";\r\n\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var setInputFocus: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var chance: any;\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\ndeclare var appSharingManager: IFC_SharingManager;\r\ndeclare var appUserManager: IFC_UserManager;\r\n\r\n\r\nconst __default__ = {\r\n name: 'panSysFuncBar',\r\n // other component options...\r\n computed: {\r\n leftCredits() {\r\n let zUserInfo: IFC_User_Info = appUserManager.currentUserInfo;\r\n let zResCount = nz(zUserInfo?.credits, 0);\r\n return (zResCount > 0) ? zResCount : 0;\r\n }\r\n }\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\nconst getCurrentRoleName = function () {\r\n let zRole: IFC_AI_ROLE | any = appPromptProvider.currentRole;\r\n if (zRole && zRole.roleName) {\r\n return nz(zRole.roleName, \"\").trim();\r\n }\r\n return \"\";\r\n}\r\nconst getCurrentPageName = function () {\r\n let zPageGUID = UIS.currentUserContentPageGUID;\r\n if (zPageGUID) {\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zPageGUID];\r\n return nz(zPageItem.pageTitle, \"(Noname)\");\r\n }\r\n\r\n return \"\";\r\n}\r\n\r\nconst clickSwitchColumnList = function () {\r\n if (UIS.currentIndexSideBarType != TYPE_INDEX_SIDEBAR.PAGE_COLUMN_INDEX) {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SIDEBAR_CLOSED;\r\n setTimeout(function () {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.PAGE_COLUMN_INDEX;\r\n }, 200);\r\n } else {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SIDEBAR_CLOSED;\r\n }\r\n}\r\n\r\nconst clickTopPageTitle = function () {\r\n appUserContentManager.scrollPageTo(\"top\");\r\n}\r\n\r\nconst clickSwitchPageList = function () {\r\n if (UIS.currentIndexSideBarType != TYPE_INDEX_SIDEBAR.PAGE_FILE_INDEX) {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SIDEBAR_CLOSED;\r\n setTimeout(function () {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.PAGE_FILE_INDEX;\r\n }, 200);\r\n\r\n } else {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SIDEBAR_CLOSED;\r\n }\r\n}\r\n\r\nconst clickUpgradeSubPlan = function () {\r\n appUserManager.gotoUpgradeSubscription();\r\n}\r\n\r\nconst clickHowTo = function () {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SYS_SLIDE_PREVIEW_DIALOG;\r\n}\r\n\r\n\r\nconst clickSwitchRoleList = function () {\r\n if (UIS.currentIndexSideBarType != TYPE_INDEX_SIDEBAR.SYS_ROLE_INDEX) {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SIDEBAR_CLOSED;\r\n setTimeout(function () {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SYS_ROLE_INDEX;\r\n }, 200);\r\n } else {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SIDEBAR_CLOSED;\r\n }\r\n}\r\n\r\nconst clickPoweredBy = function () {\r\n window.open(TYPE_PROP.HOME_PAGE_URL_POWERED_BY, '_blank').focus();\r\n}\r\n\r\nconst clickSaveToMyBase = function () {\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n if (zPageItem) {\r\n appUserContentManager.savePageData(UIS.currentUserContentPageGUID, chance.guid()); // save as new page in the localDB\r\n let zLoginPageURL = window.location.origin;\r\n window.open(zLoginPageURL, '_blank').focus();\r\n }\r\n}\r\nconst clickCreateTopics = function () {\r\n if (!UIS.ifChattingUI) {\r\n UIS.currentChattingMessage = \"\";\r\n window.emitter.emit(TYPE_EVENT.CALL_USER_INPUT_CENTER);\r\n } else {\r\n UIS.ifChattingUI = false;\r\n }\r\n}\r\n\r\n\r\nconst clickPanSysFuncBar = function () {\r\n // UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.PAGE_COLUMN_INDEX;\r\n}\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_SysTutorialMenu = _resolveComponent(\"SysTutorialMenu\")!\n const _component_pageThemeMenu = _resolveComponent(\"pageThemeMenu\")!\n const _component_pagePlayMenu = _resolveComponent(\"pagePlayMenu\")!\n const _component_pagePublishMenu = _resolveComponent(\"pagePublishMenu\")!\n const _component_pageOutputMenu = _resolveComponent(\"pageOutputMenu\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", {\n id: \"panSysFuncBar0\",\n style: _normalizeStyle([{\"z-index\":\"300\",\"position\":\"absolute\",\"left\":\"12px\",\"top\":\"15px\"}, {}]),\n class: \"no-overflow no-select\",\n onClick: clickPanSysFuncBar\n }, [\n (_unref(UIS).isSharingViewMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", {\n class: \"hotLink margin10-lr\",\n style: {},\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickSaveToMyBase()), [\"stop\",\"prevent\"]))\n }, [\n _cache[5] || (_cache[5] = _createElementVNode(\"i\", { class: \"ccc-icon-download\" }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"messages.SaveToMyBase\")), 1)\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (!_unref(UIS).isSharingViewMode)\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", {\n class: \"clickable hotLink inline-block nowrap no-overflow ellipsis margin5-lr\",\n onClick: _cache[1] || (_cache[1] = _withModifiers(($event: any) => (clickSwitchPageList()), [\"stop\",\"prevent\"])),\n title: _ctx.$t('tooltips.ManageAllDecks')\n }, [\n _cache[7] || (_cache[7] = _createElementVNode(\"img\", {\n src: \"/img/logo.png\",\n class: \"img24 margin5-lr lt\"\n }, null, -1)),\n (!_unref(UIS).isMiniScreenMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _cache[6] || (_cache[6] = _createElementVNode(\"i\", { class: \"ccc-icon-stack2 img16 margin5-lr\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Manage_All_Decks\")), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ], 8, _hoisted_4),\n _cache[8] || (_cache[8] = _createElementVNode(\"div\", { class: \"inline-block nowrap no-overflow ellipsis margin10-lr\" }, null, -1)),\n _createElementVNode(\"div\", _hoisted_6, [\n _createVNode(_component_SysTutorialMenu)\n ])\n ])\n ], 512)), [\n [_vShow, _unref(UIS).currentUserContentPageGUID]\n ])\n : _createCommentVNode(\"\", true)\n ]),\n (!_unref(UIS).isSharingViewMode)\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n ((!_unref(UIS).isSharingViewMode))\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"margin10 uk-animation-fast uk-animation-fade no-select inline-block border-silver mon-white-button mon-med-button\", {\r\n '':(!_unref(UIS).ifChattingUI),\r\n 'mon-empty-button':(_unref(UIS).ifChattingUI),\r\n }]),\n style: _normalizeStyle([{\"z-index\":\"290\",\"margin-top\":\"2px\",\"height\":\"36px\",\"line-height\":\"35px\"}, {\r\n }])\n }, [\n (_ctx.leftCredits)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"uk-clearfix ca no-overflow no-wrap text-black-60 hotLink\",\n onClick: _cache[2] || (_cache[2] = _withModifiers(($event: any) => (clickCreateTopics()), [\"stop\",\"prevent\"]))\n }, [\n _cache[9] || (_cache[9] = _createElementVNode(\"div\", { class: \"inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-lamp7 ccc-tag-yellow img16\" })\n ], -1)),\n _createElementVNode(\"div\", _hoisted_8, _toDisplayString(_ctx.$t(\"Create\")), 1)\n ]))\n : (_openBlock(), _createElementBlock(\"div\", {\n key: 1,\n class: \"uk-clearfix ca text-black-60 no-overflow no-wrap clickable\",\n onClick: _cache[3] || (_cache[3] = ($event: any) => (clickUpgradeSubPlan()))\n }, [\n _cache[10] || (_cache[10] = _createElementVNode(\"div\", { class: \"inline-block margin5-lr bold\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-plus-circle text-black-30\" })\n ], -1)),\n _createElementVNode(\"div\", _hoisted_9, _toDisplayString(_ctx.$t(\"Out_Of_Credits\")), 1)\n ]))\n ], 2))\n : _createCommentVNode(\"\", true),\n (!_unref(UIS).isSharingViewMode)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 1,\n class: _normalizeClass([\"margin10 uk-animation-fast uk-animation-fade inline-block no-select la border-silver mon-white-button\", {'uk-disabled opacity30':!_unref(UIS).currentPageData?.starredSectionGUIDs?.length}]),\n style: _normalizeStyle([{\"z-index\":\"290\",\"height\":\"36px\",\"line-height\":\"35px\",\"margin-top\":\"2px\"}, {\r\n }])\n }, [\n _createElementVNode(\"div\", _hoisted_10, [\n _createVNode(_component_pageThemeMenu, { ifShowPlayWithMenu: true })\n ])\n ], 2))\n : _createCommentVNode(\"\", true),\n (!_unref(UIS).isSharingViewMode)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 2,\n class: _normalizeClass([\"margin10 uk-animation-fast uk-animation-fade inline-block no-select la border-silver mon-white-button\", {'uk-disabled opacity30':!_unref(UIS).currentPageData?.starredSectionGUIDs?.length}]),\n style: _normalizeStyle([{\"z-index\":\"290\",\"height\":\"36px\",\"line-height\":\"35px\",\"margin-top\":\"2px\"}, {\r\n }])\n }, [\n _createElementVNode(\"div\", _hoisted_11, [\n _createVNode(_component_pagePlayMenu, { ifShowPlayWithMenu: true })\n ])\n ], 2))\n : _createCommentVNode(\"\", true)\n ], 512)), [\n [_vShow, _unref(UIS).currentUserContentPageGUID]\n ])\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", {\n id: \"panSysFuncBar1\",\n style: _normalizeStyle([{\"z-index\":\"300\",\"position\":\"absolute\",\"right\":\"200px\",\"top\":\"14px\"}, {}]),\n class: \"no-overflow no-select\",\n onClick: clickPanSysFuncBar\n }, [\n (!_unref(UIS).isSharingViewMode && _unref(UIS).currentPageData?.pageSections?.length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n _createElementVNode(\"div\", null, [\n _createVNode(_component_pagePublishMenu)\n ])\n ]))\n : _createCommentVNode(\"\", true),\n _cache[11] || (_cache[11] = _createElementVNode(\"div\", { class: \"margin10-lr inline-block\" }, null, -1)),\n (!_unref(UIS).isSharingViewMode && _unref(UIS).currentPageData?.pageSections?.length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_13, [\n _createElementVNode(\"div\", null, [\n _createVNode(_component_pageOutputMenu)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n (_unref(UIS).isSharingViewMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_14, [\n _cache[12] || (_cache[12] = _createElementVNode(\"img\", {\n class: \"img24 rc4 clickable margin10-lr\",\n src: \"/img/logo.png\"\n }, null, -1)),\n _createElementVNode(\"div\", {\n class: \"clickable inline-block\",\n onClick: _cache[4] || (_cache[4] = _withModifiers(($event: any) => (clickPoweredBy()), [\"stop\",\"prevent\"]))\n }, [\n _createElementVNode(\"div\", _hoisted_15, _toDisplayString(_ctx.$t(\"messages.PoweredByFyndeck\")), 1)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ], 64))\n}\n}\n\n})","import script from \"./panSysFuncBar.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./panSysFuncBar.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, withModifiers as _withModifiers, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"rc3 uk-clearfix\" }\nconst _hoisted_2 = [\"title\"]\nconst _hoisted_3 = {\n key: 0,\n class: \"inline-block\"\n}\nconst _hoisted_4 = {\n class: \"no-select\",\n style: {\"width\":\"380px\"}\n}\nconst _hoisted_5 = { class: \"uk-clearfix text-black app-comment\" }\nconst _hoisted_6 = { class: \"uk-clearfix margin10 text12B\" }\nconst _hoisted_7 = { class: \"uk-clearfix margin10 text12B\" }\nconst _hoisted_8 = { class: \"uk-clearfix margin10 text12B\" }\n\nimport {computed} from 'vue';\r\nimport {TYPE_FILTER_CODE, TYPE_PROP} from \"../../_20.def/_modDataDict\";\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\n\r\n\r\n// const emit = defineEmits([\"onSignOut\", \"onManageSubscription\", \"onUpgradeSubscription\"]);\r\n\r\nimport {\r\n IFC_AIPrompt_Provider,\r\n IFC_PageTemplateManager,\r\n IFC_SharingManager,\r\n IFC_UserContentManager,\r\n IFC_UserManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {IFC_Page_Data} from \"@/codes/_20.def/dataTypes\";\r\n\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\"\r\n\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var newPageWithHTML: any;\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\ndeclare var appSharingManager: IFC_SharingManager;\r\ndeclare var appPageTemplateManager: IFC_PageTemplateManager;\r\n\r\nvar appUserManager: IFC_UserManager = window.appUserManager;\r\n\r\n\r\nconst __default__ = {\r\n computed: {\r\n pageSharingID() {\r\n if (!UIS.currentUserContentPageGUID) return \"\";\r\n let zPageInfo: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n if (!zPageInfo) return console.error(\"*mis pg\");\r\n let zSharingID = nz(zPageInfo.sharingID, \"\");\r\n return zSharingID;\r\n },\r\n },\r\n\r\n props: {\r\n userInfo: {\r\n type: Object,\r\n // required: true\r\n },\r\n /*pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true\r\n },\r\n sectionCardStyle: String,\r\n parentViewMode: Boolean,*/\r\n },\r\n methods: {},\r\n name: \"PageOutputMenu\",\r\n\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n emits: [],\n setup(__props, { emit: __emit }) {\n\r\n\r\nconst emit = __emit;\r\n\r\nconst pageSharingLink = computed(() => {\r\n let zSharingURL = \"\";\r\n let zPageInfo: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n if (!zPageInfo) return console.error(\"*mis pg\");\r\n let zSharingID = nz(zPageInfo.sharingID, \"\");\r\n if (zSharingID) {\r\n zSharingURL = window.location.protocol + \"//\" + window.location.host + \"?share=\" + zSharingID;\r\n }\r\n return zSharingURL;\r\n});\r\n\r\n\r\nconst clickDownloadSlidesHTML = function () {\r\n let zThemeName = UIS.currentPageData?.playOptions?.defaultThemeName;\r\n appSharingManager.downloadSlidesHTML(zThemeName);\r\n}\r\n\r\nconst clickExportContent = function (xScope: 'all' | 'view' | 'starred', xFormat: 'txt' | 'html', xOptions: any) {\r\n let zResHTML = \"\";\r\n let zResText = \"\";\r\n let zFileName = \"\";\r\n let zResTitle = appUserContentManager.generatePageTitle(UIS.currentUserContentPageGUID);\r\n\r\n if (xScope == \"all\") {\r\n zResText = appSharingManager.outputMDText4CurrentPage();\r\n zFileName = \"MyDeck\";\r\n } else if (xScope == \"view\") {\r\n let zPageColTitles = appUserContentManager.getPageColumnTitles4AIAction();\r\n zResTitle = zPageColTitles[UIS.currentUserContentPageColumnIndex];\r\n zResText = appSharingManager.outputMDText4CurrentPage(appUserContentManager.getCurrentPageColumnParentPageSectionGUID());\r\n zFileName = \"MyDeckView\";\r\n } else if (xScope == \"starred\") {\r\n let zPageColTitles = appUserContentManager.getPageColumnTitles4AIAction();\r\n zResTitle = zPageColTitles[UIS.currentUserContentPageColumnIndex];\r\n zResText = appSharingManager.outputMDText4CurrentPage(\"\", TYPE_FILTER_CODE.STARRED);\r\n zFileName = \"MySlides\";\r\n }\r\n\r\n\r\n if (xFormat == \"txt\") {\r\n appSharingManager.downloadText(zResText, zFileName + \".md\");\r\n } else if (xFormat == \"html\") {\r\n let zResHTMLBody = appPageTemplateManager.remarkableMD.render(zResText);\r\n zResHTML = `\r\n \r\n \r\n \r\n ${zResHTMLBody}\r\n `;\r\n newPageWithHTML(zResHTML, nz(zResTitle, \"Export\"));\r\n } else if (xFormat == \"pdf\") {\r\n appSharingManager.printSlides(xOptions);\r\n }\r\n\r\n\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_dropdown_menu = _resolveComponent(\"el-dropdown-menu\")!\n const _component_el_dropdown = _resolveComponent(\"el-dropdown\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_el_dropdown, {\n trigger: \"click\",\n style: {\"line-height\":\"16px\"}\n }, {\n dropdown: _withCtx(() => [\n _createVNode(_component_el_dropdown_menu, { class: \"margin10\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink\",\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickDownloadSlidesHTML()), [\"stop\",\"prevent\"]))\n }, [\n _cache[6] || (_cache[6] = _createElementVNode(\"i\", { class: \"img16 margin5-lr ccc-icon-presentation\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Export_Slides_Play_HTML\")), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _cache[9] || (_cache[9] = _createElementVNode(\"hr\", null, null, -1)),\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink marginb10\",\n onClick: _cache[1] || (_cache[1] = _withModifiers(($event: any) => (clickExportContent('starred','pdf')), [\"stop\",\"prevent\"]))\n }, [\n _cache[7] || (_cache[7] = _createElementVNode(\"img\", {\n src: \"/img/pdf.webp\",\n class: \"img16 margin5-lr\"\n }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Export_Starred_Items_To_PDF\")), 1)\n ]),\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink marginb10\",\n onClick: _cache[2] || (_cache[2] = _withModifiers(($event: any) => (clickExportContent('starred','pdf',{ showNotes: 'separate-page' })), [\"stop\",\"prevent\"]))\n }, [\n _cache[8] || (_cache[8] = _createElementVNode(\"img\", {\n src: \"/img/pdf.webp\",\n class: \"img16 margin5-lr\"\n }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Export_Starred_Items_To_PDF_With_Memo_Seperated\")), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _cache[12] || (_cache[12] = _createElementVNode(\"hr\", null, null, -1)),\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink marginb10\",\n onClick: _cache[3] || (_cache[3] = _withModifiers(($event: any) => (clickExportContent('starred','txt')), [\"stop\",\"prevent\"]))\n }, [\n _cache[10] || (_cache[10] = _createElementVNode(\"img\", {\n src: \"/img/md.webp\",\n class: \"img16 margin5-lr\"\n }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Export_Starred_Items_To_Markdown_Text\")), 1)\n ]),\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink marginb10\",\n onClick: _cache[4] || (_cache[4] = _withModifiers(($event: any) => (clickExportContent('all','txt')), [\"stop\",\"prevent\"]))\n }, [\n _cache[11] || (_cache[11] = _createElementVNode(\"img\", {\n src: \"/img/md.webp\",\n class: \"img16 margin5-lr\"\n }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Export_Whole_Deck_To_Markdown_Text\")), 1)\n ])\n ])\n ])\n ])\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"el-dropdown-link hotLink inline-block app-comment\",\n title: _ctx.$t('tooltips.exportFunction')\n }, [\n _cache[5] || (_cache[5] = _createElementVNode(\"div\", { class: \"inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-share img16\" })\n ], -1)),\n (!_unref(UIS).isMiniScreenMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, _toDisplayString(_ctx.$t(\"Export\")), 1))\n : _createCommentVNode(\"\", true)\n ], 8, _hoisted_2)\n ]),\n _: 1\n })\n ]))\n}\n}\n\n})","import script from \"./PageOutputMenu.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PageOutputMenu.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, withModifiers as _withModifiers, vShow as _vShow, withDirectives as _withDirectives, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"rc3 uk-clearfix\" }\nconst _hoisted_2 = [\"title\"]\nconst _hoisted_3 = {\n key: 0,\n class: \"inline-block\"\n}\nconst _hoisted_4 = {\n class: \"no-select\",\n style: {\"max-width\":\"380px\"}\n}\nconst _hoisted_5 = { class: \"uk-clearfix text-black app-comment\" }\nconst _hoisted_6 = {\n key: 0,\n class: \"text12B margin10\"\n}\nconst _hoisted_7 = {\n key: 1,\n class: \"text12B ca text-black-30 margin10\"\n}\nconst _hoisted_8 = {\n key: 2,\n class: \"\"\n}\nconst _hoisted_9 = { class: \"uk-clearfix margin10 text12B\" }\nconst _hoisted_10 = {\n class: \"uk-clearfix margin10 text-black-60 uk-animation-fast uk-animation-slide-bottom\",\n style: {\"padding-left\":\"28px\"}\n}\nconst _hoisted_11 = { class: \"inline-block text-black-60\" }\nconst _hoisted_12 = {\n class: \"inline-block no-wrap no-overflow ellipsis\",\n style: {\"width\":\"calc(100% - 30px)\",\"margin-top\":\"2px\"}\n}\nconst _hoisted_13 = {\n key: 3,\n class: \"uk-clearfix margin10 text12B\"\n}\n\nimport {computed} from 'vue';\r\nimport {TYPE_FILTER_CODE, TYPE_PROP} from \"../../_20.def/_modDataDict\";\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\n\r\n\r\n// const emit = defineEmits([\"onSignOut\", \"onManageSubscription\", \"onUpgradeSubscription\"]);\r\n\r\nimport {\r\n IFC_AIPrompt_Provider,\r\n IFC_PageTemplateManager,\r\n IFC_SharingManager,\r\n IFC_UserContentManager,\r\n IFC_UserManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {IFC_Page_Data} from \"@/codes/_20.def/dataTypes\";\r\n\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\"\r\n\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var cerr: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var newPageWithHTML: any;\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\ndeclare var appSharingManager: IFC_SharingManager;\r\ndeclare var appPageTemplateManager: IFC_PageTemplateManager;\r\n\r\nvar appUserManager: IFC_UserManager = window.appUserManager;\r\n\r\n\r\nconst __default__ = {\r\n computed: {\r\n pageSharingID() {\r\n if (!UIS.currentUserContentPageGUID) return \"\";\r\n let zPageInfo: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n if (!zPageInfo) return console.error(\"*mis pg\");\r\n let zSharingID = nz(zPageInfo.sharingID, \"\");\r\n return zSharingID;\r\n },\r\n },\r\n\r\n props: {\r\n userInfo: {\r\n type: Object,\r\n // required: true\r\n },\r\n /*pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true\r\n },\r\n sectionCardStyle: String,\r\n parentViewMode: Boolean,*/\r\n },\r\n methods: {},\r\n name: \"PagePublishMenu\",\r\n\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n emits: [],\n setup(__props, { emit: __emit }) {\n\r\n\r\nconst emit = __emit;\r\n\r\nconst pageSharingLink = computed(() => {\r\n let zSharingURL = \"\";\r\n let zPageInfo: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n if (!zPageInfo) return console.error(\"*mis pg\");\r\n let zSharingID = nz(zPageInfo.sharingID, \"\");\r\n if (zSharingID) {\r\n zSharingURL = nz(zPageInfo.sharingURL, \"\");\r\n }\r\n return zSharingURL;\r\n});\r\n\r\n\r\nconst clickStartSharing = function () {\r\n let zPageInfo: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n if (!zPageInfo) return console.error(\"*mis pg\");\r\n let zSharingID = nz(zPageInfo.sharingID, \"\");\r\n zPageInfo.sharingID = \"--\";\r\n\r\n console.log(\"*zpginfo\", zPageInfo);\r\n setTimeout(function () {\r\n\r\n appSharingManager.publishHTML(zPageInfo, zSharingID).then((data: any) => {\r\n if (zPageInfo && data?.isOK) {\r\n zPageInfo.sharingID = data.sharingID;\r\n zPageInfo.sharingURL = nz(data.URL, \"\");\r\n appUserContentManager.savePageData(zPageInfo._GUID);\r\n } else {\r\n cerr(\"*shr err\", data);\r\n }\r\n\r\n })\r\n }, 500);\r\n\r\n}\r\n\r\nconst clickStopSharing = function () {\r\n let zPageInfo: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n if (!zPageInfo) return console.error(\"*mis pg\");\r\n let zSharingID = nz(zPageInfo.sharingID, \"\");\r\n zPageInfo.sharingID = \"\";\r\n zPageInfo.sharingURL = \"\";\r\n let zPageInfoCopy: IFC_Page_Data = _.clone(zPageInfo);\r\n zPageInfoCopy._IsDeleted = true;\r\n appSharingManager.publishHTML(zPageInfoCopy, zSharingID).then((data: IFC_Page_Data) => {\r\n console.log(\"*shr stop\", zSharingID);\r\n });\r\n appUserContentManager.savePageData(zPageInfo._GUID);\r\n\r\n}\r\n\r\nconst clickOpenSharingLink = function () {\r\n // alert(pageSharingLink.value);\r\n if (pageSharingLink.value) {\r\n window.open(pageSharingLink.value, '_blank').focus();\r\n }\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_dropdown_menu = _resolveComponent(\"el-dropdown-menu\")!\n const _component_el_dropdown = _resolveComponent(\"el-dropdown\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_el_dropdown, {\n trigger: \"click\",\n style: {\"line-height\":\"16px\"}\n }, {\n dropdown: _withCtx(() => [\n _createVNode(_component_el_dropdown_menu, { class: \"margin10\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n (!_ctx.pageSharingID)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink\",\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickStartSharing()), [\"stop\",\"prevent\"]))\n }, [\n _cache[5] || (_cache[5] = _createElementVNode(\"i\", { class: \"ccc-icon-share3 img16\" }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"Start_Sharing\")), 1)\n ])\n ]))\n : (_ctx.pageSharingID=='--')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, _toDisplayString(_ctx.$t(\"Sharing_In_Progress\")) + \" ... \", 1))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink\",\n onClick: _cache[1] || (_cache[1] = _withModifiers(($event: any) => (clickStartSharing()), [\"stop\",\"prevent\"]))\n }, [\n _cache[6] || (_cache[6] = _createElementVNode(\"i\", { class: \"ccc-icon-upload5 img16\" }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"Update_Sharing\")), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", _hoisted_11, [\n _cache[7] || (_cache[7] = _createElementVNode(\"i\", { class: \"ccc-icon-link img16\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Sharing_URL\")), 1)\n ])\n ]),\n _withDirectives(_createElementVNode(\"div\", {\n class: \"uk-clearfix margin10 text-black-60 hotLink uk-animation-fast uk-animation-slide-bottom\",\n style: {\"padding-left\":\"28px\"},\n onClick: _cache[2] || (_cache[2] = _withModifiers(($event: any) => (clickOpenSharingLink()), [\"stop\",\"prevent\"]))\n }, [\n _createElementVNode(\"div\", _hoisted_12, _toDisplayString(pageSharingLink.value), 1),\n _cache[8] || (_cache[8] = _createElementVNode(\"div\", { class: \"inline-block ca margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-share2 img16\" })\n ], -1))\n ], 512), [\n [_vShow, pageSharingLink.value]\n ]),\n _cache[9] || (_cache[9] = _createElementVNode(\"hr\", null, null, -1))\n ])),\n (_ctx.pageSharingID && (_ctx.pageSharingID!='--'))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_13, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink\",\n onClick: _cache[3] || (_cache[3] = _withModifiers(($event: any) => (clickStopSharing()), [\"stop\",\"prevent\"]))\n }, [\n _cache[10] || (_cache[10] = _createElementVNode(\"i\", { class: \"ccc-icon-stop img16\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Stop_Sharing\")), 1)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"el-dropdown-link hotLink inline-block app-comment\",\n title: _ctx.$t('tooltips.publishFunction')\n }, [\n _cache[4] || (_cache[4] = _createElementVNode(\"div\", { class: \"inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-share3 img16\" })\n ], -1)),\n (!_unref(UIS).isMiniScreenMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, _toDisplayString(_ctx.$t(\"Share\")), 1))\n : _createCommentVNode(\"\", true)\n ], 8, _hoisted_2)\n ]),\n _: 1\n })\n ]))\n}\n}\n\n})","import script from \"./PagePublishMenu.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PagePublishMenu.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock, createVNode as _createVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"rc3 uk-clearfix\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"inline-block\"\n}\nconst _hoisted_3 = {\n class: \"no-select\",\n style: {}\n}\nconst _hoisted_4 = { class: \"uk-clearfix text-black app-comment\" }\nconst _hoisted_5 = { key: 1 }\nconst _hoisted_6 = { key: 2 }\nconst _hoisted_7 = { class: \"uk-clearfix margin10 text12B text-black-30\" }\n\nimport {computed} from 'vue';\r\nimport {TYPE_FILTER_CODE, TYPE_INDEX_SIDEBAR, TYPE_PROP, TYPE_SECTION} from \"../../_20.def/_modDataDict\";\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\n\r\n\r\n// const emit = defineEmits([\"onSignOut\", \"onManageSubscription\", \"onUpgradeSubscription\"]);\r\n\r\nimport {\r\n IFC_AIPrompt_Provider,\r\n IFC_PageTemplateManager,\r\n IFC_SharingManager,\r\n IFC_UserContentManager,\r\n IFC_UserManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {IFC_Page_Data} from \"@/codes/_20.def/dataTypes\";\r\n\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\"\r\n\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var newPageWithHTML: any;\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\ndeclare var appSharingManager: IFC_SharingManager;\r\ndeclare var appPageTemplateManager: IFC_PageTemplateManager;\r\n\r\nvar appUserManager: IFC_UserManager = window.appUserManager;\r\n\r\n\r\nconst __default__ = {\r\n computed: {\r\n starredItemCount() {\r\n let zResCount = 0;\r\n if (UIS.currentPageData && UIS.currentPageData.starredSectionGUIDs) {\r\n zResCount = UIS.currentPageData.starredSectionGUIDs.length;\r\n }\r\n return zResCount\r\n }\r\n },\r\n\r\n props: {\r\n ifShowPlayWithMenu: Boolean,\r\n\r\n /*pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true\r\n },\r\n sectionCardStyle: String,\r\n parentViewMode: Boolean,*/\r\n },\r\n methods: {},\r\n name: \"PagePlayMenu\",\r\n\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n emits: [],\n setup(__props, { emit: __emit }) {\n\r\n\r\nconst emit = __emit;\r\n\r\nconst themeInfoItems: any[] = [\r\n {name: \"card-theme-dark\", backStyle: \"background:black;\", frontStyle: \"color:white;\"},\r\n {name: \"black\", backStyle: \"background:black;\", frontStyle: \"color:blue;\"},\r\n\r\n {name: \"white\", backStyle: \"background:white;\", frontStyle: \"color:black;\"},\r\n {name: \"beige\", backStyle: \"background:rgb(249, 246, 225);\", frontStyle: \"color:black;\"},\r\n {name: \"league\", backStyle: \"background:rgb(94, 98, 111);\", frontStyle: \"color:white;\"},\r\n {name: \"sky\", backStyle: \"background:rgb(197, 228, 236);\", frontStyle: \"color:black;\"},\r\n {name: \"moon\", backStyle: \"background:rgb(20, 63, 84);\", frontStyle: \"color:rgb(238, 232, 203);\"},\r\n\r\n];\r\n\r\nconst pageSharingLink = computed(() => {\r\n let zSharingURL = \"\";\r\n let zPageInfo: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n if (!zPageInfo) return console.error(\"*mis pg\");\r\n let zSharingID = nz(zPageInfo.sharingID, \"\");\r\n if (zSharingID) {\r\n zSharingURL = window.location.protocol + \"//\" + window.location.host + \"?share=\" + zSharingID;\r\n }\r\n return zSharingURL;\r\n});\r\n\r\n\r\nconst clickStartSharing = function () {\r\n let zPageInfo: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n if (!zPageInfo) return console.error(\"*mis pg\");\r\n let zSharingID = nz(zPageInfo.sharingID, \"\");\r\n zPageInfo.sharingID = \"--\";\r\n\r\n console.log(\"*zpginfo\", zPageInfo);\r\n setTimeout(function () {\r\n appSharingManager.shareContentPage(zPageInfo, zSharingID).then((data: IFC_Page_Data) => {\r\n zPageInfo.sharingID = data.sharingID;\r\n appUserContentManager.savePageData(zPageInfo._GUID);\r\n let zSharingURL = window.location.protocol + \"//\" + window.location.host + \"?share=\" + zPageInfo.sharingID;\r\n /*if (confirm(\r\n i18n.global.t(\"messages.PageSharedAtFollowing\")\r\n + \"\\n\\n\" +\r\n zSharingURL\r\n + \"\\n\\n\" +\r\n i18n.global.t(\"messages.Confirm2OpenTab4SharedPage\") + \"\\n\" + \"\")\r\n ) {\r\n window.open(zSharingURL, '_blank').focus();\r\n }*/\r\n })\r\n }, 500);\r\n\r\n}\r\n\r\nconst clickStopSharing = function () {\r\n let zPageInfo: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n if (!zPageInfo) return console.error(\"*mis pg\");\r\n let zSharingID = nz(zPageInfo.sharingID, \"\");\r\n zPageInfo.sharingID = \"\";\r\n let zPageInfoCopy: IFC_Page_Data = _.clone(zPageInfo);\r\n zPageInfoCopy._IsDeleted = true;\r\n appSharingManager.shareContentPage(zPageInfoCopy, zSharingID).then((data: IFC_Page_Data) => {\r\n //\r\n console.log(\"*shr stop\", zSharingID);\r\n });\r\n //\r\n}\r\n\r\nconst clickOpenSharingLink = function () {\r\n // alert(pageSharingLink.value);\r\n if (pageSharingLink.value) {\r\n window.open(pageSharingLink.value, '_blank').focus();\r\n }\r\n}\r\n\r\nconst clickPlayStarredSlides = function (xThemeNameInfoItem: any) {\r\n\r\n let zThemeName = nz(xThemeNameInfoItem?.name, UIS.currentPageData?.playOptions?.defaultThemeName);\r\n zThemeName = nz(zThemeName, \"black\");\r\n\r\n if (UIS.currentPageData.playOptions) {\r\n UIS.currentPageData.playOptions.defaultThemeName = zThemeName;\r\n appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\r\n }\r\n appSharingManager.playSlides(zThemeName);\r\n}\r\n\r\nconst clickPlayWithMemos=function(){\r\n let zThemeName = UIS.currentPageData?.playOptions?.defaultThemeName;\r\n zThemeName = nz(zThemeName, \"black\");\r\n\r\n appSharingManager.playSlides(zThemeName,\"\",{ifStartWithMemos:true});\r\n\r\n}\r\n\r\nconst clickPlayOptions = function () {\r\n if (UIS.currentPageData) {\r\n if (!UIS.currentPageData.coverFrontSection) {\r\n UIS.currentPageData.coverFrontSection = {\r\n sectionTitle: \"\",\r\n sectionBodyText: \"\",\r\n }\r\n }\r\n if (!UIS.currentPageData.coverBackSection) {\r\n UIS.currentPageData.coverBackSection = {\r\n sectionTitle: \"\",\r\n sectionBodyText: \"\",\r\n }\r\n }\r\n\r\n UIS.currentPageData.coverFrontSection.sectionType = TYPE_SECTION.COVER;\r\n UIS.currentPageData.coverBackSection.sectionType = TYPE_SECTION.COVER;\r\n\r\n UIS.currentFrontCoverSection = UIS.currentPageData.coverFrontSection;\r\n UIS.currentBackCoverSection = UIS.currentPageData.coverBackSection;\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.PAGE_PLAY_OPTIONS_EDITOR;\r\n }\r\n}\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_dropdown_item = _resolveComponent(\"el-dropdown-item\")!\n const _component_el_dropdown_menu = _resolveComponent(\"el-dropdown-menu\")!\n const _component_el_dropdown = _resolveComponent(\"el-dropdown\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", {\n class: \"el-dropdown-link hotLink lt app-comment\",\n style: {\"padding\":\"0 10px 0 20px\"},\n onClick: _cache[0] || (_cache[0] = ($event: any) => (clickPlayStarredSlides()))\n }, [\n _cache[3] || (_cache[3] = _createElementVNode(\"div\", { class: \"inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-play4 img16 ccc-tag-green\" })\n ], -1)),\n (!_unref(UIS).isMiniScreenMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, _toDisplayString(_ctx.$t(\"Quick_Play_Page\")), 1))\n : _createCommentVNode(\"\", true)\n ]),\n (__props.ifShowPlayWithMenu)\n ? (_openBlock(), _createBlock(_component_el_dropdown, {\n key: 0,\n trigger: \"click\",\n style: {\"padding-top\":\"7px\"},\n class: \"lt\"\n }, {\n dropdown: _withCtx(() => [\n _createVNode(_component_el_dropdown_menu, { class: \"margin5\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n (_ctx.starredItemCount)\n ? (_openBlock(), _createBlock(_component_el_dropdown_item, {\n key: 0,\n class: \"text-black\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n onClick: _cache[1] || (_cache[1] = ($event: any) => (clickPlayWithMemos())),\n class: \"uk-clearfix margin10 text12B hotLink\"\n }, [\n _cache[4] || (_cache[4] = _createElementVNode(\"i\", { class: \"ccc-icon-play4 img16\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Play_With_Memos\")), 1)\n ])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_ctx.starredItemCount)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createVNode(_component_el_dropdown_item, { class: \"text-black\" }, {\n default: _withCtx(() => [\n _cache[6] || (_cache[6] = _createElementVNode(\"hr\", null, null, -1)),\n _createElementVNode(\"div\", {\n onClick: _cache[2] || (_cache[2] = ($event: any) => (clickPlayOptions())),\n class: \"uk-clearfix margin10 text12B hotLink\"\n }, [\n _cache[5] || (_cache[5] = _createElementVNode(\"i\", { class: \"ccc-icon-cog2 img16\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"More_Play_Options\")), 1)\n ])\n ]),\n _: 1\n })\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, _toDisplayString(_ctx.$t(\"messages.starredSlidesNotFound\")), 1)\n ]))\n ])\n ])\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _cache[7] || (_cache[7] = _createElementVNode(\"div\", { class: \"el-dropdown-link hotLink inline-block app-comment\" }, [\n _createElementVNode(\"div\", { class: \"lt margin5-lr text16 text-black-60 opacity20\" }, \" | \"),\n _createElementVNode(\"div\", {\n class: \"lt text12\",\n style: {\"padding-top\":\"5px\"}\n }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-arrow-down4 img16\" })\n ])\n ], -1))\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","import script from \"./PagePlayMenu.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PagePlayMenu.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, normalizeClass as _normalizeClass, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"rc3 uk-clearfix\" }\nconst _hoisted_2 = { class: \"el-dropdown-link hotLink app-comment\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"inline-block margin5-lr\"\n}\nconst _hoisted_4 = {\n class: \"no-select\",\n style: {\"width\":\"640px\"}\n}\nconst _hoisted_5 = { class: \"inline-block text-black app-comment\" }\nconst _hoisted_6 = {\n key: 0,\n class: \"uk-clearfix ca\",\n style: {\"width\":\"640px\"}\n}\nconst _hoisted_7 = { class: \"inline-block text12B\" }\nconst _hoisted_8 = [\"onClick\"]\nconst _hoisted_9 = {\n class: \"slide-title\",\n style: {\"font-size\":\"20px\",\"margin-bottom\":\"0px\"}\n}\n\nimport {computed} from 'vue';\r\nimport {TYPE_FILTER_CODE, TYPE_INDEX_SIDEBAR, TYPE_PROP, TYPE_SECTION} from \"../../_20.def/_modDataDict\";\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\n\r\n\r\n// const emit = defineEmits([\"onSignOut\", \"onManageSubscription\", \"onUpgradeSubscription\"]);\r\n\r\nimport {\r\n IFC_AIPrompt_Provider,\r\n IFC_PageTemplateManager,\r\n IFC_SharingManager,\r\n IFC_UserContentManager,\r\n IFC_UserManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {IFC_Page_Data} from \"@/codes/_20.def/dataTypes\";\r\n\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\"\r\n\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var newPageWithHTML: any;\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\ndeclare var appSharingManager: IFC_SharingManager;\r\ndeclare var appPageTemplateManager: IFC_PageTemplateManager;\r\n\r\nvar appUserManager: IFC_UserManager = window.appUserManager;\r\n\r\n\r\nconst __default__ = {\r\n computed: {\r\n starredItemCount() {\r\n let zResCount = 0;\r\n if (UIS.currentPageData && UIS.currentPageData.starredSectionGUIDs) {\r\n zResCount = UIS.currentPageData.starredSectionGUIDs.length;\r\n }\r\n return zResCount\r\n }\r\n },\r\n\r\n props: {\r\n ifShowPlayWithMenu: Boolean,\r\n\r\n /*pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true\r\n },\r\n sectionCardStyle: String,\r\n parentViewMode: Boolean,*/\r\n },\r\n methods: {},\r\n name: \"PageThemeMenu\",\r\n\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n emits: [],\n setup(__props, { emit: __emit }) {\n\r\n\r\nconst emit = __emit;\r\n\r\nconst themeInfoItems: any[] = [\r\n {name: \"card-theme-dark\", backStyle: \"background:black;\", frontStyle: \"color:white;\"},\r\n {name: \"card-theme-light\", backStyle: \"background:whitesmoke;\", frontStyle: \"color:black;\"},\r\n {name: \"card-theme-ocean\", backStyle: \"background:whitesmoke;\", frontStyle: \"color:black;\"},\r\n {name: \"card-theme-terra\", backStyle: \"background:whitesmoke;\", frontStyle: \"color:black;\"},\r\n {name: \"card-theme-rose\", backStyle: \"background:whitesmoke;\", frontStyle: \"color:black;\"},\r\n {name: \"card-theme-cyberpunk\", backStyle: \"background:whitesmoke;\", frontStyle: \"color:black;\"},\r\n {name: \"card-theme-zen\", backStyle: \"background:whitesmoke;\", frontStyle: \"color:black;\"},\r\n {name: \"card-theme-nordic\", backStyle: \"background:whitesmoke;\", frontStyle: \"color:black;\"},\r\n {name: \"card-theme-orange-juice\", backStyle: \"background:whitesmoke;\", frontStyle: \"color:black;\"},\r\n {name: \"card-theme-black-white\", backStyle: \"background:whitesmoke;\", frontStyle: \"color:black;\"},\r\n {name: \"card-theme-forest\", backStyle: \"background:whitesmoke;\", frontStyle: \"color:black;\"},\r\n {name: \"card-theme-matrix\", backStyle: \"background:whitesmoke;\", frontStyle: \"color:black;\"},\r\n {name: \"card-theme-passion-glass\", backStyle: \"background:whitesmoke;\", frontStyle: \"color:black;\"},\r\n {name: \"card-theme-aurora-glass\", backStyle: \"background:whitesmoke;\", frontStyle: \"color:black;\"},\r\n {name: \"card-theme-monokai\", backStyle: \"background:whitesmoke;\", frontStyle: \"color:black;\"},\r\n {name: \"card-theme-dracula\", backStyle: \"background:whitesmoke;\", frontStyle: \"color:black;\"},\r\n {name: \"card-theme-metro\", backStyle: \"background:whitesmoke;\", frontStyle: \"color:black;\"},\r\n];\r\n\r\n\r\nconst clickApplyTheme = function (xThemeNameInfoItem: any) {\r\n\r\n let zThemeName = nz(xThemeNameInfoItem?.name, UIS.currentPageData?.playOptions?.defaultThemeName);\r\n zThemeName = nz(zThemeName, \"card-theme-dark\");\r\n\r\n if (UIS.currentPageData.playOptions) {\r\n UIS.currentPageData.playOptions.defaultThemeName = zThemeName;\r\n appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\r\n }\r\n\r\n\r\n}\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_dropdown_item = _resolveComponent(\"el-dropdown-item\")!\n const _component_el_dropdown_menu = _resolveComponent(\"el-dropdown-menu\")!\n const _component_el_dropdown = _resolveComponent(\"el-dropdown\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (__props.ifShowPlayWithMenu)\n ? (_openBlock(), _createBlock(_component_el_dropdown, {\n key: 0,\n trigger: \"click\",\n style: {\"padding-top\":\"11px\"},\n class: \"ca\"\n }, {\n dropdown: _withCtx(() => [\n _createVNode(_component_el_dropdown_menu, { class: \"margin5\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n (_ctx.starredItemCount)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(themeInfoItems, (themeInfoItem) => {\n return _createVNode(_component_el_dropdown_item, {\n class: \"text-black inline-block\",\n style: {},\n key: themeInfoItem.name\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink\",\n onClick: ($event: any) => (clickApplyTheme(themeInfoItem))\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"inline-block margin5-lr rc2 border-silver body-back\", themeInfoItem.name]),\n style: {\"min-height\":\"16px\",\"margin\":\"5px\",\"padding\":\"5px\"}\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"slide-card slide-description slide-content\", themeInfoItem.name]),\n style: {\"padding\":\"5px 15px 5px 15px\",\"height\":\"48px\",\"margin\":\"5px\"}\n }, [\n _createElementVNode(\"div\", _hoisted_9, _toDisplayString(_ctx.$t(themeInfoItem.name)), 1)\n ], 2)\n ], 2)\n ], 8, _hoisted_8)\n ])\n ]),\n _: 2\n }, 1024)\n }), 64))\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _cache[0] || (_cache[0] = _createElementVNode(\"div\", { class: \"inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-paint-format img16 ccc-tag-blue\" })\n ], -1)),\n (!_unref(UIS).isMiniScreenMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, _toDisplayString(_ctx.$t(\"Theme\")), 1))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","import script from \"./PageThemeMenu.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PageThemeMenu.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"rc3 uk-clearfix\" }\nconst _hoisted_2 = { class: \"el-dropdown-link hotLink inline-block text12B\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"inline-block\"\n}\nconst _hoisted_4 = {\n class: \"no-select\",\n style: {\"max-width\":\"400px\",\"min-width\":\"240px\"}\n}\nconst _hoisted_5 = { class: \"uk-clearfix text-black app-comment\" }\n\nimport {computed} from 'vue';\r\nimport {\r\n TYPE_FILTER_CODE,\r\n TYPE_INDEX_SIDEBAR,\r\n TYPE_NOTE_SOURCE,\r\n TYPE_PROP,\r\n TYPE_SECTION\r\n} from \"../../_20.def/_modDataDict\";\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\nimport {IFC_Page_Section} from \"@/codes/_20.def/dataTypes\";\r\n\r\n\r\n// const emit = defineEmits([\"onSignOut\", \"onManageSubscription\", \"onUpgradeSubscription\"]);\r\n\r\nimport {\r\n IFC_AIPrompt_Provider,\r\n IFC_PageTemplateManager,\r\n IFC_SharingManager,\r\n IFC_UserContentManager,\r\n IFC_UserManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\n\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\"\r\n\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var chance: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var newPageWithHTML: any;\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\ndeclare var appSharingManager: IFC_SharingManager;\r\ndeclare var appPageTemplateManager: IFC_PageTemplateManager;\r\n\r\nvar appUserManager: IFC_UserManager = window.appUserManager;\r\n\r\n\r\nconst __default__ = {\r\n computed: {},\r\n\r\n props: {\r\n userInfo: {\r\n type: Object,\r\n // required: true\r\n },\r\n /*pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true\r\n },\r\n sectionCardStyle: String,\r\n parentViewMode: Boolean,*/\r\n },\r\n methods: {},\r\n name: \"AddCustomMenu\",\r\n\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n emits: [],\n setup(__props, { emit: __emit }) {\n\r\n\r\nconst emit = __emit;\r\n\r\n\r\nconst clickAddCustomGroupInMyTopics = function () {\r\n let zPageSections = appUserContentManager.getCurrentPageSections();\r\n\r\n let zPageSection2Insert: IFC_Page_Section =\r\n {\r\n _GUID: chance.guid(),\r\n _headerSectionGUID: \"\",\r\n _isCustomSection:true,\r\n sectionType: TYPE_SECTION.HEADER,\r\n sectionTitle: i18n.global.t(\"New_Group\"),\r\n sectionBodyText: \"\",\r\n refLink: \"\",\r\n flagCode: TYPE_FILTER_CODE.YELLOW,\r\n coverImageURL: \"\",\r\n publishedDate: \"\",\r\n }\r\n\r\n appUserContentManager.insertPageSectionsToPosition(UIS.currentUserContentPageGUID, [zPageSection2Insert], zPageSections.length - 1, \"\");\r\n console.log(\"*inst2deck adcstm\");\r\n appUserContentManager.updateMultiPageSectionStars(UIS.currentUserContentPageGUID, [zPageSection2Insert._GUID], true);\r\n // appUserContentManager.extendPageColumn(UIS.currentUserContentPageColumnIndex, zPageSection2Insert._GUID);\r\n // appUserContentManager.startEditingPageSection(zPageSection2Insert,TYPE_INDEX_SIDEBAR.PAGE_SECTION_TEXT_EDITOR);\r\n\r\n}\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_dropdown_item = _resolveComponent(\"el-dropdown-item\")!\n const _component_el_dropdown_menu = _resolveComponent(\"el-dropdown-menu\")!\n const _component_el_dropdown = _resolveComponent(\"el-dropdown\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_el_dropdown, {\n trigger: \"click\",\n style: {\"line-height\":\"16px\"}\n }, {\n dropdown: _withCtx(() => [\n _createVNode(_component_el_dropdown_menu, { class: \"margin5\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createVNode(_component_el_dropdown_item, { class: \"text-black\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"uk-clearfix margin10 text12B hotLink\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (clickAddCustomGroupInMyTopics()))\n }, [\n _cache[2] || (_cache[2] = _createElementVNode(\"div\", { class: \"img16 rc99 inline-block opacity60\" }, \"#\", -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"messages.AddCustomGroupInMyTopics\")), 1)\n ])\n ]),\n _: 1\n })\n ])\n ])\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _cache[1] || (_cache[1] = _createElementVNode(\"div\", { class: \"inline-block margin5-lr\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-plus-circle img16\" })\n ], -1)),\n (!_unref(UIS).isMiniScreenMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, _toDisplayString(_ctx.$t(\"Add\")) + \" ... \", 1))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n })\n ]))\n}\n}\n\n})","import script from \"./AddCustomMenu.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./AddCustomMenu.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withModifiers as _withModifiers, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, normalizeClass as _normalizeClass } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"absolute-max text16 rc3 background-white-99 no-select ccc-back-blur padding10\"\n}\nconst _hoisted_2 = { class: \"rt\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"text12B\"\n}\nconst _hoisted_4 = { class: \"uk-clearfix\" }\nconst _hoisted_5 = { class: \"margin10-lr no-select text16 nowrap no-overflow ellipsis\" }\nconst _hoisted_6 = {\n key: 0,\n class: \"inline-block text-black-30 bold\"\n}\nconst _hoisted_7 = {\n key: 1,\n class: \"inline-block text-black-30 bold\"\n}\nconst _hoisted_8 = {\n key: 2,\n class: \"inline-block text-black-30 bold\"\n}\nconst _hoisted_9 = {\n key: 0,\n style: {\"position\":\"absolute\",\"bottom\":\"10px\",\"left\":\"10px\",\"right\":\"10px\",\"top\":\"92px\"},\n class: \"text-black-60 hover-overflow\"\n}\nconst _hoisted_10 = [\"title\"]\nconst _hoisted_11 = [\"onClick\"]\nconst _hoisted_12 = {\n key: 0,\n class: \"margin10\"\n}\nconst _hoisted_13 = { class: \"uk-clearfix margin5\" }\nconst _hoisted_14 = { class: \"uk-clearfix margin5\" }\nconst _hoisted_15 = { class: \"uk-clearfix no-overflow ellipsis app-comment text-black-60\" }\nconst _hoisted_16 = [\"onClick\"]\nconst _hoisted_17 = { class: \"rt clickable hotLink margin10-lr hotLink\" }\nconst _hoisted_18 = {\n class: \"el-dropdown-link text-black-60 hotLink\",\n style: {\"line-height\":\"19px\"}\n}\nconst _hoisted_19 = [\"onClick\"]\nconst _hoisted_20 = { class: \"inline-block margin5-lr\" }\nconst _hoisted_21 = {\n key: 1,\n style: {\"width\":\"calc(100% - 55px)\",\"margin-left\":\"20px\"}\n}\nconst _hoisted_22 = { class: \"ellipsis inline-block margin10 width100\" }\nconst _hoisted_23 = {\n class: \"marginb10 ca width100\",\n style: {}\n}\nconst _hoisted_24 = { class: \"uk-clearfix text14 la\" }\nconst _hoisted_25 = { class: \"inline-block text-black bold\" }\nconst _hoisted_26 = { class: \"uk-clearfix text12B la marginb5\" }\nconst _hoisted_27 = { class: \"uk-clearfix text-black-30\" }\nconst _hoisted_28 = { class: \"uk-clearfix text-black-30\" }\nconst _hoisted_29 = {\n key: 2,\n style: {\"width\":\"calc(100% - 55px)\",\"margin-left\":\"20px\"}\n}\nconst _hoisted_30 = { class: \"ellipsis inline-block margin10 width100\" }\nconst _hoisted_31 = {\n class: \"marginb10 ca width100\",\n style: {}\n}\nconst _hoisted_32 = { class: \"uk-clearfix text14 la\" }\nconst _hoisted_33 = { class: \"inline-block text-black bold\" }\nconst _hoisted_34 = { class: \"uk-clearfix text14 la\" }\nconst _hoisted_35 = { class: \"inline-block text-black bold\" }\nconst _hoisted_36 = { class: \"uk-clearfix text12B la marginb10\" }\nconst _hoisted_37 = { class: \"inline-block margin5-lr\" }\nconst _hoisted_38 = { class: \"inline-block margin5-lr\" }\nconst _hoisted_39 = { class: \"inline-block margin5-lr\" }\nconst _hoisted_40 = { class: \"uk-clearfix text14 la\" }\nconst _hoisted_41 = { class: \"inline-block text-black bold\" }\nconst _hoisted_42 = {\n key: 0,\n class: \"ccc-icon-checkbox-checked img16 margin5-lr\"\n}\nconst _hoisted_43 = {\n key: 1,\n class: \"ccc-icon-checkbox-unchecked img16 margin5-lr\"\n}\nconst _hoisted_44 = { class: \"inline-block margin5-lr\" }\nconst _hoisted_45 = { class: \"uk-clearfix text14 la\" }\nconst _hoisted_46 = { class: \"inline-block text-black bold\" }\nconst _hoisted_47 = { class: \"uk-clearfix text12B la marginb5\" }\nconst _hoisted_48 = { class: \"uk-clearfix text-black-30\" }\nconst _hoisted_49 = { class: \"uk-clearfix text-black-30\" }\n\nimport i18n from \"@/codes/_90.lang/i18n\";\r\nimport {IFC_AI_ROLE} from \"@/codes/_20.def/managerIFs\";\r\nimport {GUID_TYPE, IFC_ACTION_FLOW} from \"@/codes/_20.def/dataTypes\";\r\n\r\n\r\nimport {\r\n IFC_AIManager,\r\n IFC_AIPrompt_Provider,\r\n IFC_PageTemplateManager,\r\n IFC_SERPManager,\r\n IFC_UserContentManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {TYPE_INDEX_SIDEBAR} from \"@/codes/_20.def/_modDataDict\";\r\n\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\"\r\nimport {reactive} from \"vue\";\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var clearObject: any;\r\ndeclare var assignArray: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var chance: any;\r\ndeclare var setInputFocus: any;\r\n\r\n\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\n\r\nvar appAIManager: IFC_AIManager = window.appAIManager;\r\nvar appPageTemplateManager: IFC_PageTemplateManager = window.appPageTemplateManager;\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\nvar appSERPManager: IFC_SERPManager = window.appSERPManager;\r\n\r\n\r\nconst __default__ = {\r\n computed: {},\r\n methods: {},\r\n name: \"SysPromptEditor\",\r\n}\r\n\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\n// * init\r\nlet inputThings = reactive({\r\n siteListString: \"\",\r\n actionFlowName: \"\",\r\n});\r\n\r\ninputThings.siteListString = \"\";\r\n\r\nif (UIS.currentIndexSideBarType == TYPE_INDEX_SIDEBAR.SYS_PROMPT_SITE_EDITOR) {\r\n\r\n if (appPromptProvider.customizedSites && appPromptProvider.customizedSites.length) {\r\n _.each(appPromptProvider.customizedSites, function (xSiteURL: string) {\r\n inputThings.siteListString += xSiteURL + \"\\n\";\r\n })\r\n }\r\n\r\n setTimeout(function () {\r\n $(\"#inputPromptSiteList\").focus();\r\n }, 300);\r\n}\r\n\r\nif (UIS.currentIndexSideBarType == TYPE_INDEX_SIDEBAR.SYS_SEARCHFLOW_EDITOR) {\r\n\r\n inputThings.actionFlowName = UIS.currentEditingActionFlow.name;\r\n if (UIS.currentEditingActionFlow && UIS.currentEditingActionFlow.sites) {\r\n _.each(UIS.currentEditingActionFlow.sites, function (xSiteURL: string) {\r\n inputThings.siteListString += xSiteURL + \"\\n\";\r\n })\r\n }\r\n setTimeout(function () {\r\n $(\"#inputActionFlowName\").focus();\r\n }, 300);\r\n}\r\n\r\n\r\nconst getHostName = appSERPManager.getHostName;\r\nconst getSiteListInputRows = function () {\r\n let zRows = Math.floor((nz(UIS.resultPageHeight, 1000) - 400) / 20);\r\n return zRows;\r\n}\r\n\r\n\r\nconst clickReturn = function () {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SIDEBAR_CLOSED;\r\n}\r\n\r\nconst onBlurInputSiteList = function (xEvent: any) {\r\n // eslint-disable-next-line no-undef\r\n clearArray(appPromptProvider.customizedSites);\r\n let zResSites = nz(inputThings.siteListString, \"\").split(\"\\n\");\r\n _.each(zResSites, function (xSiteString: string) {\r\n let zSiteString = nz(xSiteString, \"\").trim();\r\n if (zSiteString) {\r\n appPromptProvider.customizedSites.push(zSiteString);\r\n }\r\n });\r\n appPromptProvider.saveSites();\r\n}\r\n\r\nlet editingRoleItem: IFC_AI_ROLE = reactive({\r\n _GUID: \"\", roleName: \"\", roleInstruction: \"\", givenWebsiteURL: \"\",\r\n});\r\n\r\nconst getRoleItemList = function () {\r\n return appPromptProvider.customizedRoles;\r\n}\r\nconst checkIfSelectedRole = function (xRoleItem: IFC_AI_ROLE) {\r\n if (xRoleItem && appPromptProvider.currentRole) {\r\n return (appPromptProvider.currentRole._GUID == xRoleItem._GUID);\r\n }\r\n return false;\r\n}\r\n\r\nconst clickEditRole = function (xRoleItem: IFC_AI_ROLE) {\r\n if (!xRoleItem) return;\r\n clearObject(editingRoleItem);\r\n _.extend(editingRoleItem, xRoleItem);\r\n //\r\n}\r\n\r\nconst clickSaveEditingRole = function (xSavingRoleItem: IFC_AI_ROLE) {\r\n editingRoleItem.roleName = nz(editingRoleItem.roleName, i18n.global.t(\"Noname\"));\r\n _.extend(xSavingRoleItem, editingRoleItem);\r\n appPromptProvider.saveRoles();\r\n editingRoleItem._GUID = \"\";\r\n //\r\n}\r\nconst clickCancelEditingRole = function () {\r\n editingRoleItem._GUID = \"\";\r\n //\r\n}\r\n\r\n\r\nconst clickRemoveRole = function (xRoleGUID: GUID_TYPE) {\r\n//\r\n if (appPromptProvider.customizedRoles) {\r\n assignArray(\r\n appPromptProvider.customizedRoles,\r\n appPromptProvider.customizedRoles.filter((xRole: IFC_AI_ROLE) => xRole._GUID != xRoleGUID)\r\n )\r\n\r\n }\r\n appPromptProvider.saveRoles();\r\n\r\n}\r\n\r\nconst clickAddNewRole = function () {\r\n let zNewRoleGUID = chance.guid();\r\n let zNewRoleItem: IFC_AI_ROLE = {\r\n _GUID: zNewRoleGUID,\r\n roleInstruction: \"\",\r\n roleName: \"New Role\",\r\n }\r\n appPromptProvider.customizedRoles.unshift(zNewRoleItem);\r\n appPromptProvider.saveRoles();\r\n clickEditRole(zNewRoleItem);\r\n}\r\n\r\nconst clickResetRoles = function () {\r\n if (confirm(i18n.global.t(\"messages.Confirm2ResetRoles\"))) {\r\n appPromptProvider.resetRoles();\r\n }\r\n}\r\n\r\nconst doClearSearchType = function () {\r\n UIS.currentEditingActionFlow.ifSearch4WebPages = false;\r\n UIS.currentEditingActionFlow.ifSearch4Images = false;\r\n UIS.currentEditingActionFlow.ifSearch4News = false;\r\n}\r\nconst clickActionFlowOption = function (xSearchTypeString: string) {\r\n if (xSearchTypeString == 'web') {\r\n if (!UIS.currentEditingActionFlow.ifSearch4WebPages) {\r\n doClearSearchType();\r\n UIS.currentEditingActionFlow.ifSearch4WebPages = true;\r\n UIS.currentEditingActionFlow.ifAIReply = true;\r\n }\r\n } else if (xSearchTypeString == 'images') {\r\n if (!UIS.currentEditingActionFlow.ifSearch4Images) {\r\n doClearSearchType();\r\n UIS.currentEditingActionFlow.ifSearch4Images = true;\r\n UIS.currentEditingActionFlow.ifAIReply = false;\r\n }\r\n } else if (xSearchTypeString == 'news') {\r\n if (!UIS.currentEditingActionFlow.ifSearch4News) {\r\n doClearSearchType();\r\n UIS.currentEditingActionFlow.ifSearch4News = true;\r\n UIS.currentEditingActionFlow.ifAIReply = true;\r\n }\r\n } else if (xSearchTypeString == 'aireply') {\r\n if (!UIS.currentEditingActionFlow.ifAIReply) {\r\n UIS.currentEditingActionFlow.ifAIReply = true;\r\n } else {\r\n UIS.currentEditingActionFlow.ifAIReply = false;\r\n }\r\n }\r\n doSaveActionFlow();\r\n\r\n}\r\n\r\nconst doSaveActionFlow = function () {\r\n // * name\r\n let zActionFlowName = nz(inputThings.actionFlowName, \"\").trim();\r\n if (!zActionFlowName) {\r\n inputThings.actionFlowName = zActionFlowName = \"Noname\";\r\n }\r\n UIS.currentEditingActionFlow.name = zActionFlowName;\r\n\r\n // * sites\r\n // eslint-disable-next-line no-undef\r\n clearArray(UIS.currentEditingActionFlow.sites);\r\n\r\n let zResSites = nz(inputThings.siteListString, \"\").split(\"\\n\");\r\n _.each(zResSites, function (xSiteString: string) {\r\n let zSiteString = nz(xSiteString, \"\").trim();\r\n if (zSiteString) {\r\n\r\n let zResSiteName = zSiteString.toLowerCase().trim();\r\n let zResSiteNameParts = zResSiteName.split(\"://\");\r\n if (zResSiteNameParts[1]) zResSiteName = zResSiteNameParts[1];\r\n\r\n UIS.currentEditingActionFlow.sites.push(zResSiteName)\r\n }\r\n });\r\n\r\n // * save actionflow\r\n _.each(UIS.currentActionFlows, function (xUpdatingActionFlow: IFC_ACTION_FLOW) {\r\n if (xUpdatingActionFlow && xUpdatingActionFlow._GUID\r\n && (!xUpdatingActionFlow._isSysBuiltIn)\r\n && (xUpdatingActionFlow._GUID == UIS.currentEditingActionFlow._GUID)\r\n ) {\r\n _.extend(xUpdatingActionFlow, UIS.currentActionFlow);\r\n }\r\n });\r\n appSERPManager.saveActionFlowGroup();\r\n\r\n//\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_input = _resolveComponent(\"el-input\")!\n const _component_el_dropdown_item = _resolveComponent(\"el-dropdown-item\")!\n const _component_el_dropdown_menu = _resolveComponent(\"el-dropdown-menu\")!\n const _component_el_dropdown = _resolveComponent(\"el-dropdown\")!\n\n return ((!_unref(UIS).isSharingViewMode))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n ((_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).SYS_PROMPT_ROLE_EDITOR))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", {\n class: \"hotLink inline-block margin10-lr\",\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickResetRoles()), [\"stop\",\"prevent\"]))\n }, [\n _cache[16] || (_cache[16] = _createElementVNode(\"i\", { class: \"ccc-icon-reset\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Reset\")), 1)\n ]),\n _createElementVNode(\"div\", {\n class: \"hotLink inline-block margin10-lr\",\n onClick: _cache[1] || (_cache[1] = _withModifiers(($event: any) => (clickResetRoles()), [\"stop\",\"prevent\"]))\n }),\n _createElementVNode(\"div\", {\n class: \"mon-white-button border-silver inline-block mon-med-button\",\n style: {},\n onClick: _cache[2] || (_cache[2] = _withModifiers(($event: any) => (clickAddNewRole()), [\"stop\",\"prevent\"]))\n }, [\n _cache[17] || (_cache[17] = _createElementVNode(\"i\", { class: \"ccc-icon-plus-circle2 margin5-lr\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Create\")), 1)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).SYS_PROMPT_SITE_EDITOR)\n ? (_openBlock(), _createElementBlock(\"h2\", _hoisted_6, _toDisplayString(_ctx.$t(\"Prompt_Site_Editor\")), 1))\n : _createCommentVNode(\"\", true),\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).SYS_PROMPT_ROLE_EDITOR)\n ? (_openBlock(), _createElementBlock(\"h2\", _hoisted_7, _toDisplayString(_ctx.$t(\"Prompt_Role_Editor\")), 1))\n : _createCommentVNode(\"\", true),\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).SYS_SEARCHFLOW_EDITOR)\n ? (_openBlock(), _createElementBlock(\"h2\", _hoisted_8, _toDisplayString(_ctx.$t(\"ActionFlow_Editor\")), 1))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).SYS_PROMPT_ROLE_EDITOR)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(getRoleItemList(), (roleItem) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n style: {\"z-index\":\"199\"},\n class: \"text-black-60\",\n key: roleItem._GUID\n }, [\n _cache[24] || (_cache[24] = _createElementVNode(\"hr\", null, null, -1)),\n _createElementVNode(\"div\", {\n class: \"la margin5 no-select text14 nowrap no-overflow ellipsis\",\n title: roleItem.roleName+'\\n'+'****\\n'+roleItem.roleInstruction\n }, [\n _createElementVNode(\"div\", {\n class: \"hotLink margin10-lr marginb5\",\n onClick: _withModifiers(($event: any) => (clickEditRole(roleItem)), [\"prevent\"])\n }, [\n _cache[18] || (_cache[18] = _createElementVNode(\"i\", { class: \"ccc-icon-theater opacity60\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(roleItem.roleName), 1)\n ], 8, _hoisted_11),\n (_unref(editingRoleItem) && _unref(editingRoleItem)._GUID==roleItem._GUID)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n _createElementVNode(\"div\", _hoisted_13, [\n _createVNode(_component_el_input, {\n modelValue: _unref(editingRoleItem).roleName,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => ((_unref(editingRoleItem).roleName) = $event)),\n rows: 1,\n resize: \"none\",\n type: \"textarea\",\n placeholder: _ctx.$t('placeholder.role_input_name'),\n style: {\"width\":\"100%\"}\n }, null, 8, [\"modelValue\", \"placeholder\"])\n ]),\n _createElementVNode(\"div\", _hoisted_14, [\n _createVNode(_component_el_input, {\n modelValue: _unref(editingRoleItem).roleInstruction,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => ((_unref(editingRoleItem).roleInstruction) = $event)),\n rows: 5,\n resize: \"none\",\n placeholder: _ctx.$t('placeholder.role_input_instruction'),\n style: {\"width\":\"100%\"},\n type: \"textarea\"\n }, null, 8, [\"modelValue\", \"placeholder\"])\n ]),\n _createElementVNode(\"div\", _hoisted_15, [\n _createElementVNode(\"div\", {\n class: \"lt clickable hotLink margin10-lr ccc-color-primary\",\n onClick: _withModifiers(($event: any) => (clickSaveEditingRole(roleItem)), [\"stop\",\"prevent\"])\n }, [\n _cache[19] || (_cache[19] = _createElementVNode(\"i\", { class: \"ccc-icon-checkmark\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Save\")), 1)\n ], 8, _hoisted_16),\n _createElementVNode(\"div\", {\n class: \"lt clickable hotLink margin10-lr hotLink\",\n onClick: _cache[5] || (_cache[5] = _withModifiers(($event: any) => (clickCancelEditingRole()), [\"stop\",\"prevent\"]))\n }, [\n _cache[20] || (_cache[20] = _createElementVNode(\"i\", { class: \"ccc-icon-undo2\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Cancel\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n _createVNode(_component_el_dropdown, { trigger: \"click\" }, {\n dropdown: _withCtx(() => [\n _createVNode(_component_el_dropdown_menu, { class: \"margin5\" }, {\n default: _withCtx(() => [\n _createVNode(_component_el_dropdown_item, null, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"padding5 ccc-tag-red clickable\",\n onClick: _withModifiers(($event: any) => (clickRemoveRole(roleItem._GUID)), [\"stop\",\"prevent\"])\n }, [\n _cache[22] || (_cache[22] = _createElementVNode(\"i\", {\n class: \"ccc-icon-bin4 img16 margin5-lr\",\n style: {\"margin-top\":\"4px\"}\n }, null, -1)),\n _createElementVNode(\"div\", _hoisted_20, _toDisplayString(_ctx.$t(\"messages.Confirm2Remove_Role\")), 1)\n ], 8, _hoisted_19)\n ]),\n _: 2\n }, 1024)\n ]),\n _: 2\n }, 1024)\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"span\", _hoisted_18, [\n _cache[21] || (_cache[21] = _createElementVNode(\"i\", { class: \"ccc-icon-bin4\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Discard\")), 1)\n ])\n ]),\n _: 2\n }, 1024)\n ])\n ]),\n _cache[23] || (_cache[23] = _createElementVNode(\"div\", { class: \"marginb10\" }, null, -1))\n ]))\n : _createCommentVNode(\"\", true)\n ], 8, _hoisted_10)\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n ((_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).SYS_PROMPT_SITE_EDITOR))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_21, [\n _createElementVNode(\"div\", _hoisted_22, [\n _cache[25] || (_cache[25] = _createElementVNode(\"div\", {\n class: \"uk-clearfix\",\n style: {\"height\":\"16px\"}\n }, null, -1)),\n _createElementVNode(\"div\", _hoisted_23, [\n _createElementVNode(\"div\", _hoisted_24, [\n _createElementVNode(\"div\", _hoisted_25, _toDisplayString(_ctx.$t('Prompt_Site_List')), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_26, [\n _createElementVNode(\"div\", _hoisted_27, _toDisplayString(_ctx.$t('messages.PromptSiteDesc1')), 1),\n _createElementVNode(\"div\", _hoisted_28, _toDisplayString(_ctx.$t('messages.PromptSiteDesc2')), 1)\n ]),\n _createVNode(_component_el_input, {\n modelValue: _unref(inputThings).siteListString,\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => ((_unref(inputThings).siteListString) = $event)),\n id: \"inputPromptSiteList\",\n resize: \"none\",\n rows: getSiteListInputRows(),\n placeholder: _ctx.$t('placeholder.prompt_site_input'),\n onBlur: _cache[7] || (_cache[7] = ($event: any) => (onBlurInputSiteList($event))),\n style: {\"width\":\"100%\"},\n type: \"textarea\"\n }, null, 8, [\"modelValue\", \"rows\", \"placeholder\"])\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true),\n ((_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).SYS_SEARCHFLOW_EDITOR))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_29, [\n _createElementVNode(\"div\", _hoisted_30, [\n _cache[30] || (_cache[30] = _createElementVNode(\"div\", {\n class: \"uk-clearfix\",\n style: {\"height\":\"16px\"}\n }, null, -1)),\n _createElementVNode(\"div\", _hoisted_31, [\n _createElementVNode(\"div\", _hoisted_32, [\n _createElementVNode(\"div\", _hoisted_33, _toDisplayString(_ctx.$t('ActionFlow_Name')), 1)\n ]),\n _createVNode(_component_el_input, {\n modelValue: _unref(inputThings).actionFlowName,\n \"onUpdate:modelValue\": _cache[8] || (_cache[8] = ($event: any) => ((_unref(inputThings).actionFlowName) = $event)),\n class: \"marginb10\",\n id: \"inputActionFlowName\",\n placeholder: _ctx.$t('placeholder.prompt_actionflow_name'),\n onBlur: _cache[9] || (_cache[9] = ($event: any) => (doSaveActionFlow())),\n style: {\"width\":\"100%\"}\n }, null, 8, [\"modelValue\", \"placeholder\"]),\n _createElementVNode(\"div\", _hoisted_34, [\n _createElementVNode(\"div\", _hoisted_35, _toDisplayString(_ctx.$t('Search_Type')), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_36, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"inline-block margin5 hotLink\", {'ccc-color-primary':_unref(UIS).currentEditingActionFlow.ifSearch4WebPages}]),\n onClick: _cache[10] || (_cache[10] = _withModifiers(($event: any) => (clickActionFlowOption('web')), [\"stop\",\"prevent\"]))\n }, [\n _cache[26] || (_cache[26] = _createElementVNode(\"i\", { class: \"ccc-icon-sphere img16 margin5-lr\" }, null, -1)),\n _createElementVNode(\"div\", _hoisted_37, _toDisplayString(_ctx.$t(\"Web_Search\")), 1)\n ], 2),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"inline-block margin5 hotLink\", {\r\n 'ccc-color-primary':_unref(UIS).currentEditingActionFlow.ifSearch4Images,\r\n }]),\n onClick: _cache[11] || (_cache[11] = _withModifiers(($event: any) => (clickActionFlowOption('images')), [\"stop\",\"prevent\"]))\n }, [\n _cache[27] || (_cache[27] = _createElementVNode(\"i\", { class: \"ccc-icon-image2 img16 margin5-lr\" }, null, -1)),\n _createElementVNode(\"div\", _hoisted_38, _toDisplayString(_ctx.$t(\"Image_Search\")), 1)\n ], 2),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"inline-block margin5 hotLink\", {'ccc-color-primary':_unref(UIS).currentEditingActionFlow.ifSearch4News}]),\n onClick: _cache[12] || (_cache[12] = _withModifiers(($event: any) => (clickActionFlowOption('news')), [\"stop\",\"prevent\"]))\n }, [\n _cache[28] || (_cache[28] = _createElementVNode(\"i\", { class: \"ccc-icon-newspaper img16 margin5-lr\" }, null, -1)),\n _createElementVNode(\"div\", _hoisted_39, _toDisplayString(_ctx.$t(\"News_Search\")), 1)\n ], 2)\n ]),\n _createElementVNode(\"div\", _hoisted_40, [\n _createElementVNode(\"div\", _hoisted_41, _toDisplayString(_ctx.$t('AI_Reply')), 1)\n ]),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"uk-clearfix text12B la marginb10\", {'uk-disabled opacity30':(_unref(UIS).currentEditingActionFlow.ifSearch4Images)}])\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"inline-block margin5 hotLink\", {'ccc-color-primary':_unref(UIS).currentEditingActionFlow.ifAIReply}]),\n onClick: _cache[13] || (_cache[13] = _withModifiers(($event: any) => (clickActionFlowOption('aireply')), [\"stop\",\"prevent\"]))\n }, [\n (_unref(UIS).currentEditingActionFlow.ifAIReply)\n ? (_openBlock(), _createElementBlock(\"i\", _hoisted_42))\n : (_openBlock(), _createElementBlock(\"i\", _hoisted_43)),\n _cache[29] || (_cache[29] = _createElementVNode(\"i\", { class: \"ccc-icon-tree7 gly-rotate-90 img16 margin5-lr\" }, null, -1)),\n _createElementVNode(\"div\", _hoisted_44, _toDisplayString(_ctx.$t(\"messages.AIReplyNeeded\")), 1)\n ], 2)\n ], 2),\n _createElementVNode(\"div\", _hoisted_45, [\n _createElementVNode(\"div\", _hoisted_46, _toDisplayString(_ctx.$t('Prompt_Site_List')), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_47, [\n _createElementVNode(\"div\", _hoisted_48, _toDisplayString(_ctx.$t('messages.PromptSiteDesc1')), 1),\n _createElementVNode(\"div\", _hoisted_49, _toDisplayString(_ctx.$t('messages.PromptSiteDesc2')), 1)\n ]),\n _createVNode(_component_el_input, {\n modelValue: _unref(inputThings).siteListString,\n \"onUpdate:modelValue\": _cache[14] || (_cache[14] = ($event: any) => ((_unref(inputThings).siteListString) = $event)),\n id: \"inputPromptSiteList\",\n resize: \"none\",\n rows: 8,\n placeholder: _ctx.$t('placeholder.prompt_site_input'),\n onBlur: _cache[15] || (_cache[15] = ($event: any) => (doSaveActionFlow())),\n style: {\"width\":\"100%\"},\n type: \"textarea\"\n }, null, 8, [\"modelValue\", \"placeholder\"])\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./SysPromptEditor.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./SysPromptEditor.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, withModifiers as _withModifiers, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"absolute-max text16 rc3 background-white-99 ccc-back-blur padding10 hover-overflow\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"uk-clearfix\"\n}\nconst _hoisted_3 = { class: \"margin10-lr no-select text16 nowrap no-overflow ellipsis lt\" }\nconst _hoisted_4 = { class: \"inline-block text-black-30 bold\" }\nconst _hoisted_5 = {\n class: \"rt\",\n style: {\"margin-right\":\"24px\",\"margin-top\":\"5px\"}\n}\nconst _hoisted_6 = { class: \"inline-block text-black-60 text16 margin10-lr\" }\nconst _hoisted_7 = { style: {\"width\":\"calc(100% - 40px)\"} }\nconst _hoisted_8 = { class: \"ellipsis inline-block margin10 width100 padding10 rc2 memo-back\" }\nconst _hoisted_9 = [\"innerHTML\"]\n\nimport {reactive} from \"vue\";\r\n\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\nimport {ElNotification} from \"element-plus\";\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\n\r\n//xTextType: default null: plain text / \"HTML\":HTML string\r\n\r\nimport {\r\n IFC_AIManager,\r\n IFC_AIPrompt_Provider,\r\n IFC_PageTemplateManager,\r\n IFC_SERPManager,\r\n IFC_UserContentManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {IFC_Page_Section} from \"@/codes/_20.def/dataTypes\";\r\nimport {TYPE_INDEX_SIDEBAR, TYPE_SECTION} from \"@/codes/_20.def/_modDataDict\";\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\n\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var clearObject: any;\r\ndeclare var assignArray: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var chance: any;\r\n\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\n\r\nvar appAIManager: IFC_AIManager = window.appAIManager;\r\nvar appPageTemplateManager: IFC_PageTemplateManager = window.appPageTemplateManager;\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\nvar appSERPManager: IFC_SERPManager = window.appSERPManager;\r\n\r\n\r\nconst __default__ = {\r\n computed: {\r\n TYPE_SECTION() {\r\n return TYPE_SECTION\r\n },\r\n\r\n },\r\n\r\n props: {\r\n\r\n },\r\n methods: {},\r\n name: \"PageMemoView\",\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\nlet inputThings = reactive({\r\n isMemoSortASC: true,\r\n});\r\n\r\n\r\nconst getAllMemosString = function (xTextType?: string) {\r\n let zCurrentPageData = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n let zResString = \"\";\r\n let zStarredSectionGUIDs = _.clone(zCurrentPageData.starredSectionGUIDs);\r\n\r\n if (inputThings.isMemoSortASC) {\r\n zStarredSectionGUIDs = zStarredSectionGUIDs.reverse();\r\n }\r\n\r\n _.each(zStarredSectionGUIDs, function (xSatrredPageSectionGUID: IFC_Page_Section) {\r\n let zSatrredSection: IFC_Page_Section = appUserContentManager.getSection(UIS.currentUserContentPageGUID, xSatrredPageSectionGUID);\r\n if (zSatrredSection) {\r\n if ((xTextType == \"HTML\") && zSatrredSection._cacheMemoHTML) {\r\n zResString += zSatrredSection._cacheMemoHTML + \"
\";\r\n }\r\n if ((!xTextType) && zSatrredSection.sectionMemo) {\r\n let trimmedStr = zSatrredSection.sectionMemo.replace(/^[\\n\\r]+|[\\n\\r]+$/g, '');\r\n zResString += trimmedStr + \"\\n\\n\";\r\n }\r\n }\r\n });\r\n\r\n return zResString;\r\n}\r\n\r\nconst clickSortMemoView = function () {\r\n inputThings.isMemoSortASC = !inputThings.isMemoSortASC;\r\n}\r\n\r\nconst clickCopyMemoViewToClipboard = async function () {\r\n let zCopiedText = getAllMemosString();\r\n appUserContentManager.copyText2Clipboard(zCopiedText);\r\n}\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n ((!_unref(UIS).isSharingViewMode))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"h2\", _hoisted_4, _toDisplayString(_ctx.$t(\"Memo_View\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", {\n class: \"inline-block text-black-60 text16 margin10-lr\",\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickCopyMemoViewToClipboard()), [\"stop\",\"prevent\"]))\n }, _cache[2] || (_cache[2] = [\n _createElementVNode(\"div\", { class: \"inline-block hotLink\" }, [\n _createElementVNode(\"div\", { class: \"inline-block\" }, [\n _createElementVNode(\"i\", {\n class: \"ccc-icon-paste\",\n style: {\"padding-top\":\"0px\"}\n })\n ])\n ], -1)\n ])),\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink\",\n onClick: _cache[1] || (_cache[1] = _withModifiers(($event: any) => (clickSortMemoView()), [\"stop\",\"prevent\"]))\n }, _cache[3] || (_cache[3] = [\n _createElementVNode(\"div\", { class: \"inline-block\" }, [\n _createElementVNode(\"i\", {\n class: \"ccc-icon-sort2\",\n style: {\"padding-top\":\"0px\"}\n })\n ], -1)\n ]))\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", {\n class: \"text-black-60 text-break uk-clearfix comment no-overflow md-contents-lite text-black-60 can-select\",\n innerHTML: getAllMemosString('HTML')\n }, null, 8, _hoisted_9),\n _cache[4] || (_cache[4] = _createElementVNode(\"div\", { class: \"margin20\" }, null, -1))\n ])\n ])\n ]))\n}\n}\n\n})","import script from \"./PageMemoView.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PageMemoView.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, withModifiers as _withModifiers } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n style: {\"position\":\"absolute\",\"left\":\"5px\",\"top\":\"5px\",\"bottom\":\"5px\",\"right\":\"5px\"},\n class: \"padding5\"\n}\nconst _hoisted_2 = {\n key: 1,\n style: {\"position\":\"absolute\",\"left\":\"5px\",\"top\":\"5px\",\"bottom\":\"5px\",\"right\":\"5px\"},\n class: \"padding5\"\n}\nconst _hoisted_3 = {\n key: 0,\n style: {\"position\":\"absolute\",\"left\":\"5px\",\"top\":\"5px\",\"bottom\":\"5px\",\"right\":\"5px\"},\n class: \"padding5\"\n}\nconst _hoisted_4 = {\n key: 0,\n style: {\"position\":\"absolute\",\"left\":\"5px\",\"top\":\"5px\",\"bottom\":\"5px\",\"right\":\"5px\"},\n class: \"padding5\"\n}\nconst _hoisted_5 = {\n key: 1,\n style: {\"position\":\"absolute\",\"left\":\"5px\",\"top\":\"5px\",\"bottom\":\"5px\",\"right\":\"5px\"},\n class: \"padding5\"\n}\nconst _hoisted_6 = {\n key: 2,\n style: {\"position\":\"absolute\",\"left\":\"5px\",\"top\":\"5px\",\"bottom\":\"5px\",\"right\":\"5px\"},\n class: \"padding5\"\n}\nconst _hoisted_7 = {\n key: 3,\n style: {\"position\":\"absolute\",\"left\":\"5px\",\"top\":\"5px\",\"bottom\":\"5px\",\"right\":\"5px\"},\n class: \"padding5\"\n}\n\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\nimport SysPromptEditor from \"@/codes/_40.view/compo/SysPromptEditor.vue\";\r\nimport PageMemoView from \"@/codes/_40.view/compo/PageMemoView.vue\";\r\n\r\n\r\n\r\n//@TS-NOCHECK\r\n\r\nimport {IFC_Page_Data, IFC_UIS} from \"@/codes/_20.def/dataTypes\";\r\nimport {IFC_AI_ROLE, IFC_AIPrompt_Provider, IFC_UserContentManager} from \"@/codes/_20.def/managerIFs\";\r\nimport {TYPE_INDEX_SIDEBAR} from \"@/codes/_20.def/_modDataDict\";\r\n\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\n\r\n// console.error(\"*win uis\",window.UISettings)\r\n\r\nconst __default__ = {\r\n name: 'panSideBar',\r\n // other component options...\r\n\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\nconst clickReturn = function () {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SIDEBAR_CLOSED;\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_PageSectionView = _resolveComponent(\"PageSectionView\")!\n const _component_PageContentTable = _resolveComponent(\"PageContentTable\")!\n const _component_PageFileIndex = _resolveComponent(\"PageFileIndex\")!\n const _component_SysSlidePreviewDialog = _resolveComponent(\"SysSlidePreviewDialog\")!\n const _component_PageSectionEditor = _resolveComponent(\"PageSectionEditor\")!\n const _component_PagePlayOptionsEditor = _resolveComponent(\"PagePlayOptionsEditor\")!\n\n return (_unref(UIS).currentIndexSideBarType)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n id: \"panSideBar0\",\n style: {\"z-index\":\"999\",\"position\":\"absolute\",\"left\":\"0px\",\"top\":\"0px\",\"bottom\":\"0px\",\"right\":\"0px\"},\n class: \"background-black-30 ccc-back-blur\",\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickReturn()), [\"stop\",\"prevent\"]))\n }, [\n (\r\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_SECTION_TEXT_EDITOR) ||\r\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_SECTION_ORDER_EDITOR) ||\r\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_SECTION_IMAGE_EDITOR)\r\n )\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n style: _normalizeStyle([{\"position\":\"absolute\",\"top\":\"5px\",\"bottom\":\"5px\"}, {\r\n right:(_unref(UIS).sideBarWidth)+'px',\r\n left:'0px',\r\n }]),\n class: \"margin5 ca\"\n }, [\n _createElementVNode(\"div\", {\n class: \"inline-block uk-animation-scale-up uk-animation-fast\",\n style: _normalizeStyle([{\"min-width\":\"300px\",\"height\":\"100%\"}, {'width':(_unref(UIS).sideBarWidth*2/3)+'px'}])\n }, [\n _createVNode(_component_PageSectionView, {\n pageSection: _unref(UIS).currentEditingPageSection\n }, null, 8, [\"pageSection\"])\n ], 4)\n ], 4))\n : _createCommentVNode(\"\", true),\n (\r\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_COLUMN_INDEX) ||\r\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_FILE_INDEX) ||\r\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).SYS_ROLE_INDEX)\r\n )\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 1,\n style: _normalizeStyle([{\"z-index\":\"499\",\"position\":\"absolute\",\"left\":\"5px\",\"top\":\"5px\",\"bottom\":\"5px\"}, {width:_unref(UIS).sideBarWidth+'px'}]),\n class: \"no-overflow uk-animation-fast uk-animation-slide-left\",\n onClick: _withModifiers(($event: any) => (1==1), [\"stop\",\"prevent\"])\n }, [\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_COLUMN_INDEX)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_PageContentTable)\n ]))\n : _createCommentVNode(\"\", true),\n ((_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_FILE_INDEX))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createVNode(_component_PageFileIndex)\n ]))\n : _createCommentVNode(\"\", true)\n ], 4))\n : _createCommentVNode(\"\", true),\n (\r\n false ||\r\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).SYS_SLIDE_PREVIEW_DIALOG)\r\n )\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 2,\n style: _normalizeStyle([{\"z-index\":\"499\",\"position\":\"absolute\",\"right\":\"10%\",\"top\":\"10%\",\"bottom\":\"10%\"}, {width:'80%'}]),\n class: \"no-overflow uk-animation-fast uk-animation-slide-bottom\",\n onClick: _withModifiers(($event: any) => (1==1), [\"stop\",\"prevent\"])\n }, [\n (\r\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).SYS_SLIDE_PREVIEW_DIALOG)\r\n )\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createVNode(_component_SysSlidePreviewDialog)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true),\n (\r\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).MEMO_VIEW) ||\r\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_PLAY_OPTIONS_EDITOR) ||\r\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_SECTION_TEXT_EDITOR) ||\r\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_SECTION_IMAGE_EDITOR)\r\n )\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 3,\n style: _normalizeStyle([{\"z-index\":\"499\",\"position\":\"absolute\",\"right\":\"5px\",\"top\":\"5px\",\"bottom\":\"5px\"}, {width:_unref(UIS).sideBarWidth+'px'}]),\n class: \"no-overflow uk-animation-fast uk-animation-slide-right\",\n onClick: _withModifiers(($event: any) => (1==1), [\"stop\",\"prevent\"])\n }, [\n (\r\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_SECTION_TEXT_EDITOR) ||\r\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_SECTION_ORDER_EDITOR) ||\r\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_SECTION_IMAGE_EDITOR)\r\n )\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [\n _createVNode(_component_PageSectionEditor, {\n \"page-section\": _unref(UIS).currentEditingPageSection\n }, null, 8, [\"page-section\"])\n ]))\n : _createCommentVNode(\"\", true),\n (\r\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_PLAY_OPTIONS_EDITOR)\r\n )\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createVNode(_component_PagePlayOptionsEditor)\n ]))\n : _createCommentVNode(\"\", true),\n (\r\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).SYS_PROMPT_ROLE_EDITOR)\r\n ||(_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).SYS_PROMPT_SITE_EDITOR)\r\n ||(_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).SYS_SEARCHFLOW_EDITOR)\r\n )\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n _createVNode(SysPromptEditor)\n ]))\n : _createCommentVNode(\"\", true),\n (\r\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).MEMO_VIEW)\r\n )\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _createVNode(PageMemoView)\n ]))\n : _createCommentVNode(\"\", true)\n ], 4))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./panSideBar.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./panSideBar.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, resolveComponent as _resolveComponent, createVNode as _createVNode, vShow as _vShow, createElementVNode as _createElementVNode, withDirectives as _withDirectives, withModifiers as _withModifiers, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"ra\",\n style: {\"position\":\"absolute\",\"top\":\"0px\",\"left\":\"0px\",\"right\":\"0px\",\"bottom\":\"0px\"}\n}\n\n\r\n//@TS-NOCHECK\r\n\r\nimport {IFC_Page_Data, IFC_Page_Section, IFC_UIS} from \"@/codes/_20.def/dataTypes\";\r\nimport {IFC_AI_ROLE, IFC_AIPrompt_Provider, IFC_UserContentManager} from \"@/codes/_20.def/managerIFs\";\r\nimport {TYPE_INDEX_SIDEBAR} from \"@/codes/_20.def/_modDataDict\";\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\n\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\ndeclare var setInputFocus: any;\r\n\r\nconst __default__ = {\r\n name: 'panSysFuncBar',\r\n // other component options...\r\n computed: {\r\n selectedPageSection() {\r\n return appUserContentManager.getCurrentSelectedPageSection();\r\n },\r\n isAlmostEmptyPage(): boolean {\r\n let zPageGUID = UIS.currentUserContentPageGUID;\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zPageGUID];\r\n if (!zPageItem) return false;\r\n if (zPageItem && zPageItem.pageSections) {\r\n return zPageItem.pageSections.length < 3;\r\n }\r\n return false;\r\n },\r\n pageSectionCount() {\r\n let zPageSections: IFC_Page_Section[] = appUserContentManager.getCurrentPageSections();\r\n return zPageSections.length;\r\n },\r\n },\r\n\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\nconst clickDiveMenuBar = function () {\r\n /*if (UIS.currentUserContentPageColumnIndex>0){\r\n appUserContentManager.resetPageColumn(UIS.currentUserContentPageColumnIndex-1);\r\n }*/\r\n}\r\n\r\nconst clickBack = function () {\r\n appUserContentManager.resetPageColumn(0);\r\n}\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_PageDiveIndex = _resolveComponent(\"PageDiveIndex\")!\n\n return _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n id: \"panDiveMenuBar0\",\n style: {\"z-index\":\"229\",\"position\":\"absolute\",\"right\":\"0px\",\"top\":\"0px\",\"bottom\":\"0px\",\"left\":\"0px\",\"padding-top\":\"10px\",\"padding-left\":\"10px\"},\n class: \"no-overflow\",\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickDiveMenuBar()), [\"stop\",\"prevent\"]))\n }, [\n _withDirectives(_createElementVNode(\"div\", _hoisted_1, [\n _createVNode(_component_PageDiveIndex)\n ], 512), [\n [_vShow, (_unref(UIS).currentUserContentPageColumnIndex==0)]\n ])\n ], 512)), [\n [_vShow, _unref(UIS).currentUserContentPageGUID && (!_unref(UIS).isMiniScreenMode) && (_ctx.pageSectionCount>=1)]\n ])\n}\n}\n\n})","import script from \"./panDiveMenuBar.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./panDiveMenuBar.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, vShow as _vShow, withDirectives as _withDirectives, normalizeStyle as _normalizeStyle, withModifiers as _withModifiers, normalizeClass as _normalizeClass } from \"vue\"\n\nconst _hoisted_1 = { class: \"absolute-max no-select\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"\",\n style: {\"overflow-x\":\"hidden\"}\n}\nconst _hoisted_3 = {\n class: \"text-black-60 padding5\",\n style: {\"overflow-x\":\"hidden\",\"margin-left\":\"10px\",\"margin-top\":\"2px\"}\n}\nconst _hoisted_4 = {\n class: \"marginb10 no-overflow text-black-60 la\",\n style: {}\n}\nconst _hoisted_5 = { class: \"uk-clearfix bold text14 text-black\" }\nconst _hoisted_6 = {\n key: 0,\n style: {\"margin-top\":\"32px\"}\n}\nconst _hoisted_7 = {\n key: 1,\n class: \"inline-block\"\n}\nconst _hoisted_8 = {\n key: 2,\n class: \"inline-block\"\n}\nconst _hoisted_9 = {\n key: 3,\n class: \"inline-block\"\n}\nconst _hoisted_10 = { key: 0 }\nconst _hoisted_11 = { class: \"ra no-select text14 clickable ellipsis no-overflow\" }\nconst _hoisted_12 = { class: \"uk-clearfix rc4 no-overflow text-black-60\" }\nconst _hoisted_13 = [\"title\"]\nconst _hoisted_14 = [\"onClick\"]\nconst _hoisted_15 = [\"innerHTML\"]\n\nimport {GUID_TYPE, IFC_ACTION_FLOW} from \"@/codes/_20.def/dataTypes\";\r\nimport {defaultActionFlows} from \"@/codes/_30.biz/monDefaultPageTemplate\";\r\n\r\n\r\nimport {\r\n IFC_AIManager,\r\n IFC_PageTemplateManager, IFC_SERPManager,\r\n IFC_SharingManager,\r\n IFC_UserContentManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {IFC_Page_Column, IFC_Page_Data, IFC_Page_Section} from \"@/codes/_20.def/dataTypes\";\r\nimport {TYPE_INDEX_SIDEBAR, TYPE_SECTION} from \"@/codes/_20.def/_modDataDict\";\r\n\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\"\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\n\r\ndeclare var window: any;\r\ndeclare var chance: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var setInputFocus: any;\r\n\r\nvar appAIManager: IFC_AIManager = window.appAIManager;\r\nvar appPageTemplateManager: IFC_PageTemplateManager = window.appPageTemplateManager;\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\nvar appSharingManager: IFC_SharingManager = window.appSharingManager;\r\nvar appSERPManager: IFC_SERPManager = window.appSERPManager;\r\n\r\nconst pageColumns: [IFC_Page_Column] = window.PageColumns;\r\n\r\nconst __default__ = {\r\n computed: {\r\n currentParentPageSectionGUID() {\r\n return nz(appUserContentManager.getCurrentPageColumnParentPageSectionGUID(), \"\");\r\n },\r\n currentParentPageSectionName() {\r\n let zParentSectionGUID = nz(appUserContentManager.getCurrentPageColumnParentPageSectionGUID(), \"\");\r\n if (!zParentSectionGUID) return (i18n.global.t(\"Home\"));\r\n let zParentSection: IFC_Page_Section = nz(appUserContentManager.getSection(UIS.currentUserContentPageGUID, zParentSectionGUID), {});\r\n let zResName = nz(zParentSection.sectionTitle, \"----\");\r\n if (zParentSection.sectionType == TYPE_SECTION.HEADER) {\r\n zResName = \"# \" + zResName;\r\n }\r\n return zResName;\r\n },\r\n currentParentPageSectionHeaderName() {\r\n let zParentSectionGUID = nz(appUserContentManager.getCurrentPageColumnParentPageSectionGUID(), \"\");\r\n if (!zParentSectionGUID) return \"\";\r\n let zParentSection: IFC_Page_Section = nz(appUserContentManager.getSection(UIS.currentUserContentPageGUID, zParentSectionGUID), {});\r\n if (zParentSection._headerSectionGUID) {\r\n let zParentHeaderSection: IFC_Page_Section = nz(appUserContentManager.getSection(UIS.currentUserContentPageGUID, zParentSection._headerSectionGUID), {});\r\n return zParentHeaderSection?.sectionTitle;\r\n }\r\n return \"\";\r\n },\r\n currentSelectedPageSectionHeaderGUID() {\r\n let zPageColumns = window.PageColumns;\r\n if (!zPageColumns) return \"\";\r\n if (!zPageColumns.length) return \"\";\r\n let zCurrentPageColumn: IFC_Page_Column = zPageColumns[zPageColumns.length - 1];\r\n return nz(zCurrentPageColumn.currentSelectedHeaderPageSectionGUID, \"\");\r\n },\r\n\r\n /*columnHeaderAndDivablePageSectionList() {\r\n\r\n let zPageColumn: IFC_Page_Column = nz(pageColumns[UIS.currentUserContentPageColumnIndex], {});\r\n\r\n let zFilteredPageSections: IFC_Page_Section[];\r\n let zResSectionList: IFC_Page_Section[] = [];\r\n if (!UIS.filterCode) {\r\n zFilteredPageSections = appUserContentManager.getSectionListByParentSectionGUID(\"\",\r\n zPageColumn.parentPageSectionGUID);\r\n } else {\r\n let zPage: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n let zSortedAllPageSectionArray: [IFC_Page_Section] = appSharingManager.sortFlatSectionsToHierarchyArrayWithDepth(zPage.pageSections);\r\n zFilteredPageSections = appUserContentManager.getFilteredSectionList(zSortedAllPageSectionArray, UIS.filterCode);\r\n }\r\n\r\n let zFilteredPageSections2: IFC_Page_Section[] = _.clone(zFilteredPageSections);\r\n\r\n _.each(zFilteredPageSections2, function (xFilteredPageSection: IFC_Page_Section) {\r\n if (xFilteredPageSection) {\r\n if (xFilteredPageSection.sectionType == TYPE_SECTION.HEADER) {\r\n zResSectionList.push(xFilteredPageSection);\r\n\r\n _.each(zFilteredPageSections, function (xFilteredPageSection2: IFC_Page_Section) {\r\n if (xFilteredPageSection2\r\n && (xFilteredPageSection2._subCount)\r\n && (xFilteredPageSection2._headerSectionGUID == xFilteredPageSection._GUID)) {\r\n zResSectionList.push(xFilteredPageSection2);\r\n }\r\n });\r\n\r\n }\r\n }\r\n\r\n });\r\n\r\n\r\n return zResSectionList;\r\n\r\n },*/\r\n\r\n columnOutlineHeaderSectionList() {\r\n\r\n\r\n let zFilteredPageSections: IFC_Page_Section[];\r\n let zResSectionList: IFC_Page_Section[] = [];\r\n let zPage: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n\r\n zFilteredPageSections = zPage.pageSections;\r\n\r\n let zFilteredPageSections2: IFC_Page_Section[] = _.clone(zFilteredPageSections);\r\n\r\n _.each(zFilteredPageSections2, function (xFilteredPageSection: IFC_Page_Section) {\r\n if (xFilteredPageSection) {\r\n if (xFilteredPageSection._isCustomSection) return;\r\n if (!xFilteredPageSection._isClueSection) return;\r\n if (xFilteredPageSection.sectionType == TYPE_SECTION.HEADER) {\r\n zResSectionList.push(xFilteredPageSection);\r\n }\r\n }\r\n\r\n });\r\n\r\n\r\n return zResSectionList;\r\n\r\n },\r\n\r\n columnTopicStarredHeaderSectionList() {\r\n\r\n\r\n let zFilteredPageSections: IFC_Page_Section[];\r\n let zResSectionList: IFC_Page_Section[] = [];\r\n let zPage: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n\r\n zFilteredPageSections = zPage.pageSections;\r\n\r\n let zFilteredPageSections2: IFC_Page_Section[] = _.clone(zFilteredPageSections);\r\n\r\n _.each(zFilteredPageSections2, function (xFilteredPageSection: IFC_Page_Section) {\r\n if (xFilteredPageSection) {\r\n if (!xFilteredPageSection._isStarred) return;\r\n if (xFilteredPageSection._isCustomSection) return;\r\n if (xFilteredPageSection._isClueSection) return;\r\n if (xFilteredPageSection.sectionType == TYPE_SECTION.HEADER) {\r\n zResSectionList.push(xFilteredPageSection);\r\n }\r\n }\r\n\r\n });\r\n\r\n // Sorted by starred item ids\r\n let zStarredSectionGUIDs = nz(UIS.currentPageData?.starredSectionGUIDs, []);\r\n zResSectionList.sort((a, b) => {\r\n const indexA = zStarredSectionGUIDs.indexOf(a._GUID);\r\n const indexB = zStarredSectionGUIDs.indexOf(b._GUID);\r\n\r\n // If both GUIDs are in zStarredSectionGUIDs, sort by their position in zStarredSectionGUIDs\r\n if (indexA !== -1 && indexB !== -1) {\r\n return indexA - indexB;\r\n }\r\n\r\n // If only one GUID is in zStarredSectionGUIDs, prioritize it\r\n if (indexA !== -1) return -1;\r\n if (indexB !== -1) return 1;\r\n\r\n // If neither GUID is in zStarredSectionGUIDs, maintain their original order\r\n return 0;\r\n });\r\n\r\n\r\n return zResSectionList;\r\n\r\n },\r\n\r\n columnTopicUnStarredHeaderSectionList() {\r\n\r\n\r\n let zFilteredPageSections: IFC_Page_Section[];\r\n let zResSectionList: IFC_Page_Section[] = [];\r\n let zPage: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n\r\n zFilteredPageSections = zPage.pageSections;\r\n\r\n let zFilteredPageSections2: IFC_Page_Section[] = _.clone(zFilteredPageSections);\r\n\r\n _.each(zFilteredPageSections2, function (xFilteredPageSection: IFC_Page_Section) {\r\n if (xFilteredPageSection) {\r\n if (xFilteredPageSection._isStarred) return;\r\n if (xFilteredPageSection._isCustomSection) return;\r\n if (xFilteredPageSection._isClueSection) return;\r\n if (xFilteredPageSection.sectionType == TYPE_SECTION.HEADER) {\r\n zResSectionList.push(xFilteredPageSection);\r\n }\r\n }\r\n\r\n });\r\n\r\n // Sorted by starred item ids\r\n let zStarredSectionGUIDs = nz(UIS.currentPageData?.starredSectionGUIDs, []);\r\n zResSectionList.sort((a, b) => {\r\n const indexA = zStarredSectionGUIDs.indexOf(a._GUID);\r\n const indexB = zStarredSectionGUIDs.indexOf(b._GUID);\r\n\r\n // If both GUIDs are in zStarredSectionGUIDs, sort by their position in zStarredSectionGUIDs\r\n if (indexA !== -1 && indexB !== -1) {\r\n return indexA - indexB;\r\n }\r\n\r\n // If only one GUID is in zStarredSectionGUIDs, prioritize it\r\n if (indexA !== -1) return -1;\r\n if (indexB !== -1) return 1;\r\n\r\n // If neither GUID is in zStarredSectionGUIDs, maintain their original order\r\n return 0;\r\n });\r\n\r\n\r\n return zResSectionList;\r\n\r\n },\r\n\r\n columnCustomHeaderSectionList() {\r\n\r\n let zFilteredPageSections: IFC_Page_Section[];\r\n let zResSectionList: IFC_Page_Section[] = [];\r\n let zPage: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n\r\n\r\n zFilteredPageSections = zPage.pageSections;\r\n\r\n let zFilteredPageSections2: IFC_Page_Section[] = _.clone(zFilteredPageSections);\r\n\r\n _.each(zFilteredPageSections2, function (xFilteredPageSection: IFC_Page_Section) {\r\n if (xFilteredPageSection) {\r\n if (!xFilteredPageSection._isCustomSection) return;\r\n if (xFilteredPageSection.sectionType == TYPE_SECTION.HEADER) {\r\n zResSectionList.push(xFilteredPageSection);\r\n }\r\n }\r\n\r\n });\r\n\r\n\r\n return zResSectionList;\r\n\r\n },\r\n\r\n columnPathItemNameList(): { parentHeaderSection: IFC_Page_Section, lastParentSection: IFC_Page_Section }[] {\r\n\r\n let zResPathItems: any[] = [];\r\n\r\n if (!pageColumns) return [];\r\n if (!pageColumns.length) return [];\r\n let zLastPageColumn: IFC_Page_Column;\r\n\r\n _.each(pageColumns, function (xPageColumn: IFC_Page_Column, xPageColumnIndex: number) {\r\n if (xPageColumnIndex && (xPageColumnIndex < pageColumns.length)) {\r\n let zParentSection: IFC_Page_Section = nz(appUserContentManager.getSection(UIS.currentUserContentPageGUID, xPageColumn.parentPageSectionGUID), \"\");\r\n let zLastParentSection: IFC_Page_Section = nz(appUserContentManager.getSection(UIS.currentUserContentPageGUID, zLastPageColumn.parentPageSectionGUID), \"\");\r\n let zParentHeaderSection: IFC_Page_Section = nz(appUserContentManager.getSection(UIS.currentUserContentPageGUID, nz(zParentSection._headerSectionGUID, \"\")), \"\");\r\n let zPathItem = {\r\n parentHeaderSection: zParentHeaderSection,\r\n lastParentSection: zLastParentSection,\r\n }\r\n zResPathItems.push(zPathItem)\r\n }\r\n zLastPageColumn = xPageColumn;\r\n });\r\n\r\n return zResPathItems;\r\n\r\n },\r\n\r\n columnPageSectionList() {\r\n\r\n let zTempPageSectionList: IFC_Page_Section[] = [];\r\n let zResPageSectionList: IFC_Page_Section[] = [];\r\n let zPageColumns = window.PageColumns;\r\n\r\n let zCurrentSelectedPageSectionHeaderGUID = appUserContentManager.getPageColumn0SelectedHeaderGUID();\r\n\r\n let zPageInfo: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n\r\n if (!zPageInfo) return [];\r\n if (!zPageInfo.pageSections) return [];\r\n\r\n let zPageColumn: IFC_Page_Column = nz(zPageColumns[zPageColumns.length - 1], {});\r\n let zSortedAllPageSectionArray: [IFC_Page_Section] = appSharingManager.sortFlatSectionsToHierarchyArrayWithDepth(zPageInfo.pageSections);\r\n\r\n zTempPageSectionList = zSortedAllPageSectionArray;\r\n /*if (zPageColumn.parentPageSectionGUID || (!UIS.filterCode)) {\r\n zTempPageSectionList = appUserContentManager.getSectionListByParentSectionGUID(\"\",\r\n zPageColumn.parentPageSectionGUID);\r\n } else {\r\n let zPage: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n let zSortedAllPageSectionArray: [IFC_Page_Section] = appSharingManager.sortFlatSectionsToHierarchyArrayWithDepth(zPage.pageSections);\r\n let zFilteredPageSections = appUserContentManager.getFilteredSectionList(zSortedAllPageSectionArray, UIS.filterCode);\r\n zTempPageSectionList = zFilteredPageSections;\r\n }*/\r\n\r\n if (zTempPageSectionList) {\r\n _.each(zTempPageSectionList, function (xPageSection: IFC_Page_Section) {\r\n if (zPageColumn.parentPageSectionGUID) { // pageColumnIndex>0 (SubPage)\r\n if (\r\n (xPageSection._GUID == zCurrentSelectedPageSectionHeaderGUID)\r\n || (xPageSection._headerSectionGUID == zCurrentSelectedPageSectionHeaderGUID)\r\n ) {\r\n zResPageSectionList.push(xPageSection);\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*pc x respsl\", zResPageSectionList, zPageColumn);\r\n }\r\n } else { // pageColumn0 (Home)\r\n if (\r\n (xPageSection.sectionType == TYPE_SECTION.HEADER)\r\n && (!xPageSection._parentSectionGUID)\r\n ) {\r\n zResPageSectionList.push(xPageSection);\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*pc 0 respsl\", zResPageSectionList, zPageColumn);\r\n }\r\n }\r\n });\r\n }\r\n\r\n return zResPageSectionList;\r\n },\r\n\r\n columnTopicHierarchyHeaderSectionList() {\r\n\r\n function createGUIDHierarchy(pageSections: IFC_Page_Section[]) {\r\n // Create a map of children for each parent GUID\r\n const childrenMap = new Map();\r\n const rootItems: IFC_Page_Section[] = [];\r\n\r\n // First pass: organize items by parent\r\n pageSections.forEach(pageSectionItem => {\r\n const GUID = pageSectionItem._GUID;\r\n const parentGUID = pageSectionItem._fromHeaderSectionGUID;\r\n\r\n if (!parentGUID) {\r\n // This is a root item\r\n rootItems.push(pageSectionItem);\r\n } else {\r\n // Add this item as a child of its parent\r\n if (!childrenMap.has(parentGUID)) {\r\n childrenMap.set(parentGUID, []);\r\n }\r\n childrenMap.get(parentGUID).push(pageSectionItem);\r\n }\r\n });\r\n\r\n // Result array\r\n const result: any[] = [];\r\n\r\n // Recursive function to traverse the hierarchy\r\n function traverseHierarchy(pageSectionItem: IFC_Page_Section, depth: number) {\r\n const GUID = pageSectionItem._GUID;\r\n\r\n // Add current item with its depth indicator\r\n result.push({\r\n _GUID: GUID,\r\n sectionTitle: pageSectionItem.sectionTitle,\r\n depth: depth,\r\n display: '|'.repeat(depth),\r\n isRoot: (!depth),\r\n sectionItem: pageSectionItem,\r\n });\r\n\r\n // Process children if any\r\n const children = childrenMap.get(GUID) || [];\r\n children.forEach((child: IFC_Page_Section) => {\r\n traverseHierarchy(child, depth + 1);\r\n });\r\n }\r\n\r\n // Start with root items\r\n rootItems.forEach(root => {\r\n traverseHierarchy(root, 0);\r\n });\r\n\r\n return result;\r\n }\r\n\r\n let zFilteredPageSections: IFC_Page_Section[];\r\n let zResSectionList: IFC_Page_Section[] = [];\r\n let zPage: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n\r\n\r\n zFilteredPageSections = zPage.pageSections;\r\n\r\n let zFilteredPageSections2: IFC_Page_Section[] = _.clone(zFilteredPageSections);\r\n\r\n _.each(zFilteredPageSections2, function (xFilteredPageSection: IFC_Page_Section) {\r\n if (xFilteredPageSection) {\r\n if (xFilteredPageSection.sectionType == TYPE_SECTION.HEADER) {\r\n zResSectionList.push(xFilteredPageSection);\r\n }\r\n }\r\n\r\n });\r\n\r\n\r\n return createGUIDHierarchy(zResSectionList);\r\n\r\n\r\n },\r\n },\r\n\r\n props: {\r\n /*pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true\r\n },\r\n sectionCardStyle: String,\r\n parentViewMode: Boolean,*/\r\n },\r\n methods: {},\r\n name: \"PageDiveIndex\",\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\nlet getSectionFlagColorStyle = appUserContentManager.getSectionFlagColorStyle;\r\n\r\nconst clickBack = function () {\r\n appUserContentManager.resetPageColumn(0);\r\n /*let zPageColumn: IFC_Page_Column = pageColumns[UIS.currentUserContentPageColumnIndex];\r\n if (zPageColumn.parentPageSectionGUID==zPageColumn.currentSelectedPageSectionGUID){\r\n clickReturnColumn(UIS.currentUserContentPageColumnIndex-1);\r\n } else{\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex,zPageColumn.parentPageSectionGUID);\r\n }*/\r\n}\r\n\r\nconst clickReturnColumn = function (xPageColIndex: number) {\r\n let zPageColIndex = nz(xPageColIndex, 0);\r\n if (zPageColIndex < 0) zPageColIndex = 0;\r\n if (zPageColIndex == pageColumns.length - 1) {\r\n appUserContentManager.selectPageSection(zPageColIndex, \"\");\r\n appUserContentManager.scrollPageTo(\"top\");\r\n } else {\r\n appUserContentManager.resetPageColumn(zPageColIndex);\r\n }\r\n}\r\n\r\nconst getPageColumnTitle = function (xPageColIndex: number) {\r\n let zPageColumn: IFC_Page_Column = pageColumns[xPageColIndex];\r\n if (zPageColumn && zPageColumn.parentPageSectionGUID) {\r\n let zPageSection: IFC_Page_Section = appUserContentManager.getSection(\"\", zPageColumn.parentPageSectionGUID);\r\n return zPageSection.sectionTitle;\r\n } else {\r\n return \"\";\r\n }\r\n}\r\n\r\nconst getPageCurrentColumnTitle = function () {\r\n if (pageColumns && pageColumns.length) {\r\n return getPageColumnTitle(pageColumns.length - 1);\r\n }\r\n return \"\";\r\n}\r\n\r\n\r\n/*const getCurrentPagePinnedSectionList = function () {\r\n let zResList: IFC_Page_Section[] = [];\r\n let zPageGUID = UIS.currentUserContentPageGUID;\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zPageGUID];\r\n if (!zPageItem) return [];\r\n let zPageSections = nz(zPageItem.pageSections, []);\r\n _.each(zPageSections, function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection._isStarred) {\r\n zResList.push(xPageSection)\r\n }\r\n });\r\n return zResList;\r\n}*/\r\n\r\nconst clickColumnTitle = function () {\r\n // appUserContentManager.scrollPageTo(\"top\");\r\n}\r\n\r\nconst clickHeader = function (xSelectedSection: IFC_Page_Section) {\r\n UIS.ifHideResult4Refreshing = true;\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, xSelectedSection._GUID, xSelectedSection._GUID);\r\n setTimeout(function () {\r\n appUserContentManager.scrollPageTo(\"top\");\r\n UIS.ifHideResult4Refreshing = false;\r\n }, 100);\r\n}\r\n\r\nconst clickDivbableSection = function (xSelectedSection: IFC_Page_Section) {\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, xSelectedSection._GUID, xSelectedSection._headerSectionGUID);\r\n setTimeout(function () {\r\n appUserContentManager.scrollPageTo(xSelectedSection._GUID, \"center\");\r\n appUserContentManager.extendPageColumn(UIS.currentUserContentPageColumnIndex, xSelectedSection._GUID);\r\n }, 300);\r\n\r\n}\r\n\r\n/*const clickPageSectionTab = function (xSelectedSection: IFC_Page_Section) {\r\n if (xSelectedSection && xSelectedSection._GUID && (xSelectedSection.sectionType == TYPE_SECTION.NOTE_CARD)) {\r\n appUserContentManager.resetPageColumn(UIS.currentUserContentPageColumnIndex - 1);\r\n appUserContentManager.extendPageColumn(UIS.currentUserContentPageColumnIndex, xSelectedSection._GUID);\r\n }\r\n}*/\r\n/*\r\nconst dblclickPageSectionTab = function (xSelectedSectionGUID: GUID_TYPE) {\r\n // cwrn(\"*dblpgstb\")\r\n appUserContentManager.extendPageColumn(UIS.currentUserContentPageColumnIndex, xSelectedSectionGUID);\r\n}*/\r\n\r\nconst clickReturn = function () {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SIDEBAR_CLOSED;\r\n}\r\n\r\nconst clickAddNewConversation = function () {\r\n appUserContentManager.setCurrentSelectedPageSectionGUID(\"\");\r\n setInputFocus(\"#inputUserCommand\");\r\n //\r\n}\r\n\r\nconst clickAddCustomGroupInMyTopics = function () {\r\n let zPageSections = appUserContentManager.getCurrentPageSections();\r\n\r\n let zPageSection2Insert: IFC_Page_Section =\r\n {\r\n _GUID: chance.guid(),\r\n _headerSectionGUID: \"\",\r\n _isCustomSection: true,\r\n sectionType: TYPE_SECTION.HEADER,\r\n sectionTitle: i18n.global.t(\"New_Group\"),\r\n sectionBodyText: \"\",\r\n refLinkAllString: \"\",\r\n coverImageURL: \"\",\r\n publishedDate: \"\",\r\n }\r\n\r\n appUserContentManager.insertPageSectionsToPosition(UIS.currentUserContentPageGUID, [zPageSection2Insert], zPageSections.length - 1, \"\");\r\n // console.log(\"*inst2deck adcstm\");\r\n // appUserContentManager.updateMultiPageSectionStars(UIS.currentUserContentPageGUID, [zPageSection2Insert._GUID], true);\r\n // appUserContentManager.extendPageColumn(UIS.currentUserContentPageColumnIndex, zPageSection2Insert._GUID);\r\n // appUserContentManager.startEditingPageSection(zPageSection2Insert,TYPE_INDEX_SIDEBAR.PAGE_SECTION_TEXT_EDITOR);\r\n\r\n}\r\n\r\nconst getActionFlowIconHTML = function (xActionFlowGUID: GUID_TYPE, xHeaderSectionListPartIndex: number,\r\n xRefLink: string, xIsStarred: any) {\r\n\r\n let zResHTML = \"\";\r\n\r\n /*if (xIsStarred){\r\n zResHTML+=``;\r\n } else{\r\n zResHTML+=``;\r\n }*/\r\n\r\n if (!xActionFlowGUID) {\r\n zResHTML += ``;\r\n } else if (xHeaderSectionListPartIndex == 2) {\r\n zResHTML += `
#
`;\r\n } else if ((xHeaderSectionListPartIndex < 2) && (xActionFlowGUID)) {\r\n\r\n if (xRefLink) {\r\n let zRefLink = xRefLink.split(\"\\n\")[0].trim();\r\n if (zRefLink.length > 5) {\r\n let zHostIconURL = appSERPManager.getFavIconURL(zRefLink)\r\n zResHTML += ``;\r\n }\r\n } else {\r\n let zActionFlow: IFC_ACTION_FLOW = defaultActionFlows[xActionFlowGUID];\r\n if (zActionFlow?.imgSrc) {\r\n zResHTML += ``;\r\n } else if (zActionFlow?.iconClassLite) {\r\n zResHTML += ``;\r\n } else {\r\n zResHTML += \"\";\r\n }\r\n }\r\n }\r\n\r\n return zResHTML;\r\n}\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n ((_unref(pageColumns).length))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", {\n class: \"hover-overflow\",\n style: _normalizeStyle([{\"position\":\"absolute\",\"left\":\"0px\",\"right\":\"0px\",\"bottom\":\"0px\"}, {'top':_unref(pageColumns).length>1?'32px':'0px'}])\n }, [\n _createElementVNode(\"div\", _hoisted_3, [\n _withDirectives(_createElementVNode(\"div\", _hoisted_4, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList([\r\n _ctx.columnTopicHierarchyHeaderSectionList\r\n ], (headerSectionList, headerSectionListPartIndex) => {\n return (_openBlock(), _createElementBlock(\"div\", { key: headerSectionListPartIndex }, [\n _withDirectives(_createElementVNode(\"div\", _hoisted_5, [\n (headerSectionListPartIndex>0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6))\n : _createCommentVNode(\"\", true),\n (headerSectionListPartIndex==2)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _cache[0] || (_cache[0] = _createElementVNode(\"div\", {\n class: \"inline-block text-black-30 margin5\",\n style: {\"font-weight\":\"normal\"}\n }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-bubble-dots4 ccc-tag-purple\" })\n ], -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Suggestions\")), 1)\n ]))\n : _createCommentVNode(\"\", true),\n (headerSectionListPartIndex==0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [\n _cache[1] || (_cache[1] = _createElementVNode(\"div\", {\n class: \"inline-block text-black-30 margin5\",\n style: {\"font-weight\":\"normal\"}\n }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-lamp7 ccc-tag-yellow\" })\n ], -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"My_Topics\")), 1)\n ]))\n : _createCommentVNode(\"\", true),\n (headerSectionListPartIndex==3)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9, [\n _cache[2] || (_cache[2] = _createElementVNode(\"div\", {\n class: \"inline-block text-black-30 margin5\",\n style: {\"font-weight\":\"normal\"}\n }, \"#\", -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Custom_Groups\")), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ], 512), [\n [_vShow, headerSectionList && headerSectionList.length]\n ]),\n (headerSectionList?.length)\n ? (_openBlock(), _createElementBlock(\"hr\", _hoisted_10))\n : _createCommentVNode(\"\", true),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(headerSectionList, (headerSectionInfo) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n style: {\"z-index\":\"199\",\"height\":\"25px\",\"padding-top\":\"2px\"},\n class: \"text-black-60\",\n key: headerSectionInfo._GUID\n }, [\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"div\", _hoisted_12, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"uk-clearfix width100 text12B text-black-60\", {\r\n 'text-black':headerSectionInfo.isRoot,\r\n 'text-black-60':!headerSectionInfo.isRoot,\r\n }]),\n title: headerSectionInfo.sectionTitle\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"lt la hotLink margin5-lr\", {\r\n 'ccc-color-primary':((_ctx.currentSelectedPageSectionHeaderGUID==headerSectionInfo._GUID)),\r\n }])\n }, [\n _createElementVNode(\"div\", {\n onClick: _withModifiers(($event: any) => (clickHeader(headerSectionInfo.sectionItem)), [\"stop\",\"prevent\"])\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(headerSectionInfo.display, (headerLV, headerLVIndex) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"lt margin5-lr text12B no-wrap no-overflow ellipsis ra\",\n key: headerLVIndex,\n style: {\"width\":\"8px\",\"height\":\"25px\",\"margin-right\":\"8px\",\"border-right\":\"1px solid rgba(0,0,0,0.1)\"}\n }))\n }), 128)),\n _createElementVNode(\"div\", {\n class: \"lt margin5-lr text-black\",\n style: {},\n innerHTML: getActionFlowIconHTML(\r\n headerSectionInfo.sectionItem?._sourceActionFlowGUID,headerSectionListPartIndex,\r\n headerSectionInfo.sectionItem?.refLinkAllString,headerSectionInfo.sectionItem?._isStarred\r\n )\n }, null, 8, _hoisted_15),\n _createElementVNode(\"div\", {\n class: \"lt margin5-lr text12B no-wrap no-overflow ellipsis\",\n style: _normalizeStyle({\r\n 'width':(_unref(UIS).leftMenuBarWidth-100- headerSectionInfo.depth*16)+'px',\r\n })\n }, _toDisplayString(headerSectionInfo.sectionItem?.sectionTitle || '----'), 5)\n ], 8, _hoisted_14)\n ], 2)\n ], 10, _hoisted_13)\n ])\n ])\n ]))\n }), 128))\n ]))\n }), 128))\n ], 512), [\n [_vShow, _unref(pageColumns).length==1]\n ])\n ])\n ], 4)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","import script from \"./PageDiveIndex.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PageDiveIndex.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, withModifiers as _withModifiers, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, renderList as _renderList, Fragment as _Fragment, normalizeStyle as _normalizeStyle, vShow as _vShow, withDirectives as _withDirectives } from \"vue\"\n\nconst _hoisted_1 = { class: \"padding10 margin10 uk-clearfix no-select\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"ccc-icon-star-empty ccc-tag-yellow margin5-lr\"\n}\nconst _hoisted_3 = {\n key: 1,\n class: \"ccc-icon-star-full ccc-tag-yellow margin5-lr\"\n}\nconst _hoisted_4 = {\n class: \"inline-block opacity60\",\n style: {\"min-width\":\"28px\"}\n}\nconst _hoisted_5 = { class: \"uk-clearfix ra margin2\" }\nconst _hoisted_6 = [\"onClick\"]\nconst _hoisted_7 = { class: \"inline-block ra opacity60\" }\n\nimport {TYPE_FILTER_CODE, TYPE_INDEX_SIDEBAR} from \"@/codes/_20.def/_modDataDict\";\r\nimport {IFC_Page_Data} from \"@/codes/_20.def/dataTypes\";\r\n\r\n\r\nimport {\r\n IFC_AIManager,\r\n IFC_PageTemplateManager,\r\n IFC_SharingManager,\r\n IFC_UserContentManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {IFC_Page_Column, IFC_Page_Section} from \"@/codes/_20.def/dataTypes\";\r\nimport {TYPE_SECTION} from \"@/codes/_20.def/_modDataDict\";\r\n\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\"\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var setInputFocus: any;\r\n\r\nvar appAIManager: IFC_AIManager = window.appAIManager;\r\nvar appPageTemplateManager: IFC_PageTemplateManager = window.appPageTemplateManager;\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\nvar appSharingManager: IFC_SharingManager = window.appSharingManager;\r\n\r\n\r\nconst __default__ = {\r\n computed: {\r\n currentSelectedPageHeaderSectionGUID() {\r\n return nz(appUserContentManager.getCurrentSelectedPageHeaderSectionGUID(), \"\");\r\n },\r\n },\r\n\r\n\r\n props: {\r\n /*pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true\r\n },\r\n sectionCardStyle: String,\r\n parentViewMode: Boolean,*/\r\n },\r\n methods: {},\r\n name: \"PageFilterIndex\",\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\nconst pageColumns: [IFC_Page_Column] = window.PageColumns;\r\n\r\nlet getSectionFlagColorStyle = appUserContentManager.getSectionFlagColorStyle;\r\nlet defaultFlagColorStyleArray = UIS.currentUserContentPageTemplate.flagColorStyles;\r\n\r\nconst getPageColumnTitle = function (xPageColIndex: number) {\r\n let zPageColumn: IFC_Page_Column = pageColumns[xPageColIndex];\r\n if (zPageColumn && zPageColumn.parentPageSectionGUID) {\r\n let zPageSection: IFC_Page_Section = appUserContentManager.getSection(\"\", zPageColumn.parentPageSectionGUID);\r\n return zPageSection.sectionTitle;\r\n } else {\r\n return \"\";\r\n }\r\n}\r\n\r\nconst getPageCurrentColumnTitle = function () {\r\n if (pageColumns && pageColumns.length) {\r\n return getPageColumnTitle(pageColumns.length - 1);\r\n }\r\n return \"\";\r\n}\r\n\r\nconst getHomeColumnHeaderSectionList = function () {\r\n let zPageColumn: IFC_Page_Column = nz(pageColumns[0], {});\r\n let zFilteredPageSections;\r\n let zResSectionList: IFC_Page_Section[] = [];\r\n if (!UIS.filterCode) {\r\n zFilteredPageSections = appUserContentManager.getSectionListByParentSectionGUID(\"\",\r\n zPageColumn.parentPageSectionGUID);\r\n } else {\r\n let zPage: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n let zSortedAllPageSectionArray: [IFC_Page_Section] = appSharingManager.sortFlatSectionsToHierarchyArrayWithDepth(zPage.pageSections);\r\n zFilteredPageSections = appUserContentManager.getFilteredSectionList(zSortedAllPageSectionArray, UIS.filterCode);\r\n }\r\n\r\n zResSectionList=_.filter(zFilteredPageSections,{sectionType:\"HEADER\"});\r\n return zResSectionList;\r\n}\r\n\r\n/*const getCurrentPagePinnedSectionList = function () {\r\n let zResList: IFC_Page_Section[] = [];\r\n let zPageGUID = UIS.currentUserContentPageGUID;\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zPageGUID];\r\n if (!zPageItem) return [];\r\n let zPageSections = nz(zPageItem.pageSections, []);\r\n _.each(zPageSections, function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection._isStarred) {\r\n zResList.push(xPageSection)\r\n }\r\n });\r\n return zResList;\r\n}*/\r\n\r\nconst clickColumnTitle = function () {\r\n // appUserContentManager.scrollPageTo(\"top\");\r\n}\r\n\r\n/*const clickPageSectionTab = function (xSelectedSection?: IFC_Page_Section) {\r\n if (!xSelectedSection) {\r\n appUserContentManager.scrollPageTo(\"top\");\r\n } else if (xSelectedSection._GUID && (xSelectedSection.sectionType == TYPE_SECTION.HEADER)) {\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex,xSelectedSection._GUID,xSelectedSection._GUID);\r\n appUserContentManager.scrollPageTo(xSelectedSection._GUID, \"center\");\r\n }\r\n}*/\r\n\r\nconst clickFilterCode = function (xFilterCode?: TYPE_FILTER_CODE | string) {\r\n if (UIS.filterCode == xFilterCode) {\r\n UIS.filterCode = TYPE_FILTER_CODE.NONE;\r\n } else {\r\n UIS.filterCode = nz(xFilterCode, TYPE_FILTER_CODE.NONE);\r\n }\r\n\r\n if (UIS.filterCode) {\r\n UIS.ifChattingUI = false;\r\n }\r\n\r\n appUserContentManager.selectPageSection(0);\r\n\r\n}\r\n\r\nconst getCount4FilterCode = appUserContentManager.getCount4FilterCode;\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", {\n class: \"marginb10 no-overflow text-black-60 text12B ra\",\n style: _normalizeStyle([{'width':(_unref(UIS).sideBarWidth-20)}, {\"line-height\":\"24px\"}])\n }, [\n _createElementVNode(\"div\", {\n class: \"uk-clearfix text14 text-black bold clickable\",\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickFilterCode()), [\"stop\",\"prevent\"]))\n }, _toDisplayString(_ctx.$t(\"Filters\")), 1),\n _cache[2] || (_cache[2] = _createElementVNode(\"hr\", null, null, -1)),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"ra margin2 no-select clickable nowrap ellipsis no-overflow hotLink\", {\r\n 'bold':((_unref(UIS).filterCode==_unref(TYPE_FILTER_CODE).STARRED)),\r\n }]),\n onClick: _cache[1] || (_cache[1] = _withModifiers(($event: any) => (clickFilterCode(_unref(TYPE_FILTER_CODE).STARRED)), [\"stop\",\"prevent\"]))\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"inline-block hotlink\", {'ccc-tag-yellow':(_unref(UIS).filterCode==_unref(TYPE_FILTER_CODE).STARRED)}])\n }, [\n _createTextVNode(_toDisplayString(_ctx.$t(\"Starred_Items\")) + \" \", 1),\n ((_unref(UIS).filterCode!=_unref(TYPE_FILTER_CODE).STARRED))\n ? (_openBlock(), _createElementBlock(\"i\", _hoisted_2))\n : _createCommentVNode(\"\", true),\n ((_unref(UIS).filterCode==_unref(TYPE_FILTER_CODE).STARRED))\n ? (_openBlock(), _createElementBlock(\"i\", _hoisted_3))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_4, _toDisplayString(_unref(getCount4FilterCode)(_unref(TYPE_FILTER_CODE).STARRED)), 1)\n ], 2)\n ], 2),\n _createElementVNode(\"div\", _hoisted_5, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(defaultFlagColorStyleArray), (flagColorStyle) => {\n return _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"uk-clearfix ra no-select clickable nowrap ellipsis no-overflow hotLink rc2\", {\r\n 'bold':(_unref(UIS).filterCode==flagColorStyle.flagCode),\r\n }]),\n key: flagColorStyle.flagCode,\n onClick: _withModifiers(($event: any) => (clickFilterCode(flagColorStyle.flagCode)), [\"stop\",\"prevent\"]),\n style: _normalizeStyle((_unref(UIS).filterCode==flagColorStyle.flagCode)?flagColorStyle.backStyle:'')\n }, [\n _createElementVNode(\"div\", {\n class: \"inline-block ra\",\n style: _normalizeStyle(\r\n (_unref(UIS).filterCode==flagColorStyle.flagCode)?flagColorStyle.titleStyle:''\r\n )\n }, _toDisplayString(flagColorStyle.flagName) + \"  \", 5),\n ((_unref(UIS).filterCode==flagColorStyle.flagCode))\n ? (_openBlock(), _createElementBlock(\"i\", {\n key: 0,\n class: \"ccc-icon-checkmark-circle margin5-lr text12 rc4\",\n style: _normalizeStyle(flagColorStyle.titleStyle+';')\n }, null, 4))\n : (_openBlock(), _createElementBlock(\"i\", {\n key: 1,\n class: \"ccc-icon-circle-small margin5-lr text12 rc4\",\n style: _normalizeStyle(flagColorStyle.titleStyle+';')\n }, null, 4)),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"inline-block ra\", {}]),\n style: _normalizeStyle([{\"min-width\":\"28px\"}, (_unref(UIS).filterCode==flagColorStyle.flagCode)?flagColorStyle.titleStyle:''])\n }, [\n _createElementVNode(\"div\", _hoisted_7, _toDisplayString(_unref(getCount4FilterCode)(flagColorStyle.flagCode)), 1)\n ], 4)\n ], 14, _hoisted_6)), [\n [_vShow, _unref(getCount4FilterCode)(flagColorStyle.flagCode)>0]\n ])\n }), 128))\n ])\n ], 4)\n ]))\n}\n}\n\n})","import script from \"./PageFilterIndex.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PageFilterIndex.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"app-comment absolute-max\",\n style: {\"background-color\":\"rgba(64,64,64,0.2)\",\"z-index\":\"99999\"}\n}\nconst _hoisted_2 = {\n key: 0,\n class: \"text14 text-white-60 ca\",\n style: {\"position\":\"absolute\",\"top\":\"calc(50% + 50px)\",\"left\":\"calc(50% - 250px)\",\"right\":\"calc(50% - 250px)\"}\n}\nconst _hoisted_3 = { class: \"uk-clearfix ca margin10 text-black-60\" }\n\nimport {IFC_AI_Session, IFC_Page_Data} from \"@/codes/_20.def/dataTypes\";\r\nimport {computed} from \"vue\";\r\n\r\n\r\n//@TS-NOCHECK\r\n\r\nimport {IFC_UIS} from \"@/codes/_20.def/dataTypes\";\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\nimport {TYPE_EVENT} from \"@/codes/_20.def/_modDataDict\";\r\nimport {IFC_AIManager, IFC_UserContentManager} from \"@/codes/_20.def/managerIFs\";\r\n\r\ndeclare var appUserContentManager: IFC_UserContentManager;\r\ndeclare var appAIManager: IFC_AIManager;\r\ndeclare var nz: any;\r\n\r\nconst __default__ = {\r\n name: 'panLockingUI',\r\n // other component options...\r\n}\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\n\r\nconst isAIGeneratingPageContent = computed((): boolean => {\r\n /*let zPage: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n if (zPage && zPage.fromAISessionGUID) {\r\n return true;\r\n }\r\n return false;*/\r\n\r\n // return UIS.isAIGenerating;\r\n return UIS.isAIGeneratingPageContent;\r\n});\r\n\r\nconst clickESCFromAIGenerating=function (){\r\n window.emitter.emit(TYPE_EVENT.AI_GEN_CANCELED);\r\n}\r\n\r\nwindow.emitter.on(TYPE_EVENT.KEYPRESSED_ESC, function () {\r\n if (isAIGeneratingPageContent.value) {\r\n clickESCFromAIGenerating();\r\n }\r\n});\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_unref(UIS).ifLockingPageUI)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _cache[2] || (_cache[2] = _createElementVNode(\"div\", {\n class: \"loader-ring\",\n style: {\"position\":\"absolute\",\"top\":\"calc(50% - 50px)\",\"left\":\"calc(50% - 50px)\"}\n }, [\n _createElementVNode(\"div\"),\n _createElementVNode(\"div\"),\n _createElementVNode(\"div\"),\n _createElementVNode(\"div\")\n ], -1)),\n (isAIGeneratingPageContent.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", {\n class: \"inline-block mon-white-button border-silver mon-med-button hotLink\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (clickESCFromAIGenerating())),\n style: {\"width\":\"240px\"}\n }, [\n _cache[1] || (_cache[1] = _createElementVNode(\"i\", { class: \"ccc-icon-stop\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Stop_Loading\")) + \" (ESC) \", 1)\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./panLockingUI.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./panLockingUI.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"la uk-clearfix margin10 app-comment\" }\nconst _hoisted_2 = { class: \"la uk-clearfix margin10 app-comment\" }\nconst _hoisted_3 = {\n class: \"ca uk-clearfix margin10 app-comment\",\n style: {\"padding-top\":\"24px\",\"padding-bottom\":\"16px\"}\n}\nconst _hoisted_4 = {\n class: \"ca mon-white-button border-silver mon-med-button inline-block\",\n style: {\"width\":\"240px\"}\n}\nconst _hoisted_5 = [\"href\"]\nconst _hoisted_6 = { class: \"\" }\nconst _hoisted_7 = { class: \"la uk-clearfix margin10 app-comment\" }\nconst _hoisted_8 = {\n class: \"ca uk-clearfix margin10 app-comment\",\n style: {\"padding-top\":\"24px\",\"padding-bottom\":\"16px\"}\n}\nconst _hoisted_9 = {\n class: \"ca mon-white-button border-silver mon-med-button inline-block\",\n style: {\"width\":\"240px\"}\n}\nconst _hoisted_10 = [\"href\"]\nconst _hoisted_11 = { class: \"\" }\n\nimport {TYPE_EVENT, TYPE_EXCEPTION_DIALOG_NAME, TYPE_SUBSCRIPTION_REQ} from \"@/codes/_20.def/_modDataDict\";\r\nimport {TYPE_PROP} from \"../../_20.def/_modDataDict\";\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\nimport {GUID_TYPE, IFC_AI_Session} from \"@/codes/_20.def/dataTypes\";\r\n\r\n\r\n//@TS-NOCHECK\r\n\r\nimport {IFC_UserManager} from \"@/codes/_20.def/managerIFs\";\r\nimport {TYPE_SUBSCRIPTION_STATUS} from \"@/codes/_20.def/_modDataDict\";\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\nimport {reactive} from \"vue\";\r\n\r\ndeclare var $: any;\r\ndeclare var nz: any;\r\ndeclare var setInputFocus: any;\r\ndeclare var window: any;\r\ndeclare var appUserManager: IFC_UserManager;\r\n\r\nconst __default__ = {\r\n name: 'panExceptionDialogs',\r\n // other component options...\r\n}\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\nlet inputThings = reactive({\r\n /*licenseCode: \"\",\r\n APIKey: \"\",*/\r\n});\r\n\r\nlet dialogSwitches: { [key in string]: boolean } = reactive({});\r\ndialogSwitches[TYPE_EXCEPTION_DIALOG_NAME.OUT_OF_CREDITS] = false;\r\ndialogSwitches[TYPE_EXCEPTION_DIALOG_NAME.REMOTE_ERROR] = false;\r\n\r\n\r\n// AI Error Occurred\r\nwindow.emitter.on(TYPE_EVENT.AI_GEN_ERROR, function () {\r\n\r\n // dialogSwitches[TYPE_EXCEPTION_DIALOG_NAME.REMOTE_ERROR] = true;\r\n if (appUserManager.currentUserInfo.credits > 50) {\r\n alert(\r\n i18n.global.t(\"messages.RemoteErrorOccurred\")\r\n )\r\n }\r\n\r\n});\r\n\r\n// OOC Error Occurred\r\nwindow.emitter.on(TYPE_EVENT.OUT_OF_CREDITS, function () {\r\n dialogSwitches[TYPE_EXCEPTION_DIALOG_NAME.OUT_OF_CREDITS] = true;\r\n});\r\n\r\n/*var appUserManager: IFC_UserManager = window.appUserManager;\r\n\r\nconst clickSubmitLicCode = async function () {\r\n let zLicCode = nz(inputThings.licenseCode, \"\");\r\n zLicCode = zLicCode.trim();\r\n if (zLicCode) {\r\n // submit lic to svr\r\n UIS.ifLockingPageUI = true;\r\n await appUserManager.letUserActivateByLicCode(appUserManager.currentUserInfo, zLicCode);\r\n // UIS.ifLockingPageUI = false;\r\n }\r\n\r\n}\r\n\r\nconst clickSubmitAPIKey = async function () {\r\n\r\n if (!confirm(i18n.global.t(\"messages.Confirm2SubmitAPIKey\"))) return;\r\n\r\n let zAPIKey = nz(inputThings.APIKey, \"\");\r\n zAPIKey = zAPIKey.trim();\r\n if (zAPIKey) {\r\n // save API Key to local\r\n UIS.ifLockingPageUI = true;\r\n appUserManager.saveBYOAPIKey(appUserManager.currentUserInfo, zAPIKey);\r\n setTimeout(function () {\r\n clickCancelInput();\r\n }, 200);\r\n\r\n }\r\n\r\n}*/\r\n\r\n/*const clickCancelInput = function () {\r\n window.location.href = \"./\";\r\n}*/\r\n\r\n/*\r\n// * adjust page for INPUT_LICENSE\r\nsetTimeout(function () {\r\n $(\"#inputLicCode\").width(360).addClass(\"rc99\");\r\n if (UIS.subscriptionReqType == TYPE_SUBSCRIPTION_REQ.INPUT_LICENSE) {\r\n setInputFocus(\"#inputLicCode\");\r\n }\r\n}, 100);\r\n\r\n// * adjust page for INPUT_API_KEY\r\nsetTimeout(function () {\r\n $(\"#inputAPIKey\").width(360).addClass(\"rc99\");\r\n if (UIS.subscriptionReqType == TYPE_SUBSCRIPTION_REQ.INPUT_API_KEY) {\r\n setInputFocus(\"#inputAPIKey\");\r\n }\r\n}, 100);*/\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_dialog = _resolveComponent(\"el-dialog\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createVNode(_component_el_dialog, {\n modelValue: _unref(dialogSwitches)[_unref(TYPE_EXCEPTION_DIALOG_NAME).OUT_OF_CREDITS],\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_unref(dialogSwitches)[_unref(TYPE_EXCEPTION_DIALOG_NAME).OUT_OF_CREDITS]) = $event)),\n width: \"600\",\n title: _ctx.$t('messages.OutOfCredits_Title')\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, _toDisplayString(_ctx.$t(\"messages.OutOfCredits_Desc1\")), 1),\n _createElementVNode(\"div\", _hoisted_2, _toDisplayString(_ctx.$t(\"messages.OutOfCredits_Desc2\")), 1),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"a\", {\n class: \"text-black\",\n style: {\"text-decoration\":\"none\"},\n href: _unref(TYPE_PROP).SUB_PLAN_PRICING_URL\n }, [\n _createElementVNode(\"span\", _hoisted_6, \"✨ \" + _toDisplayString(_ctx.$t(\"messages.BuyCredits\")), 1)\n ], 8, _hoisted_5)\n ])\n ])\n ]),\n _: 1\n }, 8, [\"modelValue\", \"title\"]),\n _createVNode(_component_el_dialog, {\n modelValue: _unref(dialogSwitches)[_unref(TYPE_EXCEPTION_DIALOG_NAME).REMOTE_ERROR],\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((_unref(dialogSwitches)[_unref(TYPE_EXCEPTION_DIALOG_NAME).REMOTE_ERROR]) = $event)),\n width: \"600\",\n title: _ctx.$t('messages.OutOfCredits_Title')\n }, {\n default: _withCtx(() => [\n _cache[2] || (_cache[2] = _createElementVNode(\"div\", { class: \"la uk-clearfix margin10 app-comment\" }, \" REMOTE_ERROR \", -1)),\n _createElementVNode(\"div\", _hoisted_7, \" REMOTE_ERROR2 \" + _toDisplayString(_ctx.$t(\"messages.OutOfCredits_Desc2\")), 1),\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"a\", {\n class: \"text-black\",\n style: {\"text-decoration\":\"none\"},\n href: _unref(TYPE_PROP).SUB_PLAN_PRICING_URL\n }, [\n _createElementVNode(\"span\", _hoisted_11, \"✨ \" + _toDisplayString(_ctx.$t(\"messages.BuyCredits\")), 1)\n ], 8, _hoisted_10)\n ])\n ])\n ]),\n _: 1\n }, 8, [\"modelValue\", \"title\"])\n ], 64))\n}\n}\n\n})","import script from \"./panExceptionDialogs.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./panExceptionDialogs.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, createVNode as _createVNode, vShow as _vShow, normalizeClass as _normalizeClass, withDirectives as _withDirectives, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, withModifiers as _withModifiers, normalizeStyle as _normalizeStyle } from \"vue\"\n\nconst _hoisted_1 = { class: \"absolute-max\" }\nconst _hoisted_2 = { class: \"absolute-max\" }\nconst _hoisted_3 = [\"id\"]\nconst _hoisted_4 = [\"id\"]\nconst _hoisted_5 = {\n class: \"\",\n style: {\"position\":\"absolute\",\"left\":\"5px\",\"right\":\"5px\",\"bottom\":\"5px\",\"top\":\"10px\"}\n}\nconst _hoisted_6 = {\n key: 1,\n style: {\"height\":\"12px\"}\n}\nconst _hoisted_7 = {\n key: 2,\n class: \"uk-clearfix\"\n}\nconst _hoisted_8 = [\"id\"]\nconst _hoisted_9 = { class: \"uk-clearfix\" }\nconst _hoisted_10 = [\"onClick\"]\nconst _hoisted_11 = {\n class: \"inline-block no-wrap no-overflow text-primary-gradient text32\",\n style: {}\n}\nconst _hoisted_12 = {\n key: 0,\n class: \"uk-clearfix no-overflow ca\",\n style: {\"margin-top\":\"10px\"}\n}\nconst _hoisted_13 = {\n key: 0,\n class: \"uk-clearfix no-overflow rc2 uk-flex-center uk-flex margin10-lr\",\n style: {\"margin-top\":\"5px\",\"margin-bottom\":\"10px\",\"max-height\":\"200px\"}\n}\nconst _hoisted_14 = {\n key: 0,\n class: \"lt rc2 padding5\",\n style: {\"max-width\":\"40%\",\"max-height\":\"160px\"}\n}\nconst _hoisted_15 = [\"src\"]\nconst _hoisted_16 = {\n key: 1,\n class: \"uk-clearfix no-overflow margin5\",\n style: {}\n}\nconst _hoisted_17 = {\n key: 0,\n class: \"margin10\"\n}\nconst _hoisted_18 = {\n class: \"uk-clearfix text-black-60 can-select text12B\",\n style: {\"margin-top\":\"10px\",\"margin-right\":\"10px\",\"font-weight\":\"normal\"}\n}\nconst _hoisted_19 = [\"innerHTML\"]\nconst _hoisted_20 = {\n key: 0,\n class: \"margin10\"\n}\nconst _hoisted_21 = [\"innerHTML\"]\nconst _hoisted_22 = { key: 1 }\nconst _hoisted_23 = {\n key: 0,\n class: \"uk-clearfix\"\n}\nconst _hoisted_24 = {\n class: \"k-animation-fast uk-animation-fade\",\n style: {}\n}\nconst _hoisted_25 = {\n class: \"lt\",\n style: {\"width\":\"calc(100% - 14px)\",\"margin-right\":\"7px\",\"margin-left\":\"7px\"}\n}\nconst _hoisted_26 = {\n key: 0,\n class: \"text-black text24 uk-clearfix marginb10\"\n}\nconst _hoisted_27 = {\n key: 0,\n class: \"inline-block\"\n}\nconst _hoisted_28 = {\n key: 1,\n class: \"inline-block\"\n}\nconst _hoisted_29 = { class: \"uk-clearfix no-overflow\" }\nconst _hoisted_30 = [\"onMousedown\", \"onMouseenter\", \"onClick\", \"id\"]\nconst _hoisted_31 = [\"v-if\"]\nconst _hoisted_32 = {\n class: \"no-overflow\",\n style: {}\n}\nconst _hoisted_33 = {\n class: \"no-overflow no-wrap text12B margin10\",\n style: {\"font-weight\":\"normal\"}\n}\nconst _hoisted_34 = { class: \"uk-clearfix bold text-black text14\" }\nconst _hoisted_35 = { class: \"uk-clearfix text-black-30\" }\nconst _hoisted_36 = {\n key: 0,\n class: \"uk-clearfix\"\n}\n\nimport {\r\n TYPE_AI_ACTION,\r\n TYPE_EVENT, TYPE_EXCEPTION_DIALOG_NAME, TYPE_ID_LOCAL_APP_DB, TYPE_INDEX_SIDEBAR,\r\n TYPE_INPUT_COMMAND, TYPE_LAYOUT_CODE, TYPE_NOTE_SOURCE, TYPE_PROP,\r\n\r\n} from \"@/codes/_20.def/_modDataDict\";\r\nimport {IFC_LAYOUT_OBJECT} from \"@/codes/_20.def/dataTypes\";\r\nimport {computed} from \"vue\";\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\n\r\n\r\n\r\nimport {TYPE_FILTER_CODE, TYPE_SECTION, TYPE_SESSION_STATUS} from \"../_20.def/_modDataDict\";\r\nimport {\r\n IFC_AIManager,\r\n IFC_CommandManager,\r\n IFC_PageTemplateManager,\r\n IFC_SERPManager,\r\n IFC_SharingManager,\r\n IFC_UserContentManager,\r\n IFC_UserManager\r\n} from \"../_20.def/managerIFs\";\r\nimport {IFC_AI_Session, IFC_Page_Column, IFC_Page_Data, IFC_Page_Section} from \"../_20.def/dataTypes\";\r\nimport {GUID_TYPE} from \"@/codes/_20.def/dataTypes\";\r\n\r\nimport {reactive} from 'vue';\r\n\r\nimport {lockResultPageUI, UIS, unlockResultPageUI} from \"@/codes/_10.sys/UICommittee\";\r\n\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var clearArray: any;\r\ndeclare var clearObject: any;\r\ndeclare var assignArray: any;\r\ndeclare var chance: any;\r\ndeclare var setInputFocus: any;\r\n\r\nvar AppMaster = window.AppMaster;\r\n\r\nvar PageColumns: [IFC_Page_Column] = window.PageColumns;\r\nvar UIP = window.UIP;\r\n\r\ndeclare var appAIManager: IFC_AIManager;\r\ndeclare var appUserContentManager: IFC_UserContentManager;\r\ndeclare var appUserManager: IFC_UserManager;\r\ndeclare var appSERPManager: IFC_SERPManager;\r\ndeclare var appPageTemplateManager: IFC_PageTemplateManager;\r\ndeclare var appCommandManager: IFC_CommandManager;\r\ndeclare var appSharingManager: IFC_SharingManager;\r\ndeclare var clearSelection: any;\r\n\r\nlet getSectionFlagColorStyle = appUserContentManager.getSectionFlagColorStyle;\r\nlet getSectionHeaderStyle = appUserContentManager.getSectionHeaderStyle;\r\n\r\nconst __default__ = {\r\n name: 'divResultPages',\r\n // other component options...\r\n watch: {\r\n\r\n currentSelectedHeaderSectionGUID: {\r\n handler(newValue: GUID_TYPE, oldValue: GUID_TYPE) {\r\n // console.log(\"*hdlr hdpgec changed,\")\r\n if (newValue != oldValue) {\r\n setTimeout(function () {\r\n /*let zCurrentSelectedPageSectionGUID = appUserContentManager.getCurrentSelectedPageSectionGUID();\r\n if (zCurrentSelectedPageSectionGUID != newValue) {\r\n appUserContentManager.scrollPageTo(zCurrentSelectedPageSectionGUID, \"center\");\r\n } else {\r\n appUserContentManager.scrollPageTo(newValue, \"center\");\r\n }*/\r\n // appUserContentManager.scrollPageTo(newValue, \"center\");\r\n }, 300);\r\n }\r\n }\r\n },\r\n\r\n currentSelectedPageSectionGUID: {\r\n handler(newValue: GUID_TYPE, oldValue: GUID_TYPE) {\r\n if (newValue != oldValue) {\r\n //\r\n }\r\n }\r\n },\r\n\r\n },\r\n\r\n computed: {\r\n currentSelectedHeaderSectionGUID(): GUID_TYPE {\r\n return appUserContentManager.getCurrentSelectedPageHeaderSectionGUID();\r\n },\r\n\r\n currentSelectedPageSectionGUID(): GUID_TYPE {\r\n return appUserContentManager.getCurrentSelectedPageSectionGUID();\r\n },\r\n\r\n\r\n currentReturnMessageMD(): string {\r\n if (!UIS.currentReturnMessage) return \"\";\r\n let zViewingMessage = \"\";\r\n let zMsgLines = UIS.currentReturnMessage.split(\"\\n\");\r\n _.each(zMsgLines, function (xMsgLine: string) {\r\n if (xMsgLine.startsWith(\"#\")) {\r\n zViewingMessage += \"\\n\" + xMsgLine + \"\\n\";\r\n } else {\r\n if (xMsgLine.startsWith(\"- \")) {\r\n zViewingMessage += xMsgLine.substring(0, 32) + \"...\";\r\n }\r\n }\r\n })\r\n return (appPageTemplateManager.remarkableMD.render(zViewingMessage));\r\n },\r\n\r\n /*\r\n currentPageSections(): IFC_Page_Section[] {\r\n let zPage: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n let zResPageSections: IFC_Page_Section[] = [];\r\n // Don't filter by pagecolumn here, because drag&drop needs index\r\n if (zPage && zPage.pageSections) {\r\n _.each(zPage.pageSections, function (xPageSection: IFC_Page_Section) {\r\n zResPageSections.push(xPageSection);\r\n });\r\n }\r\n\r\n return zResPageSections;\r\n },\r\n */\r\n\r\n }\r\n\r\n\r\n}\r\n\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\n\r\nlet AISessions = appAIManager.allAISessions;\r\n\r\n\r\nlet inputThings = reactive({\r\n dragoverSectionGUID: \"\",\r\n draggingSectionIndex: -1,\r\n hoverSectionGUID: \"\",\r\n});\r\n\r\n\r\nlet sectionDraggingImg = new Image();\r\n\r\nlet defaultFlagColorStyleArray = UIS.currentUserContentPageTemplate.flagColorStyles;\r\n\r\nlet defaultTopicStrings = reactive([]);\r\nassignArray(defaultTopicStrings, appPageTemplateManager.getTopicsFromTemplate(5));\r\n\r\nconst pageColumns: [IFC_Page_Column] = window.PageColumns;\r\n// ** computed\r\nconst currentUserContentPage = computed((): IFC_Page_Data => {\r\n let zPageItem: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n if (zPageItem._IsDeleted) {\r\n clearArray(zPageItem.pageSections);\r\n }\r\n return zPageItem;\r\n});\r\n\r\nconst getCurrentPageColumnPageSections = function (xPageColumnIndex?: number): IFC_Page_Section[] {\r\n let zPage: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n let zResPageSections: IFC_Page_Section[] = [];\r\n if (zPage && zPage.pageSections) {\r\n let zSortedAllPageSectionArray: [IFC_Page_Section] = appSharingManager.sortFlatSectionsToHierarchyArrayWithDepth(zPage.pageSections);\r\n zResPageSections = appUserContentManager.getFilteredSectionList(zSortedAllPageSectionArray, UIS.filterCode);\r\n\r\n }\r\n return zResPageSections;\r\n};\r\n\r\n\r\nconst currentPageTitle = (): string => {\r\n let zPage: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n if (zPage && zPage.pageTitle) {\r\n return zPage.pageTitle;\r\n }\r\n return \"\";\r\n}\r\n\r\nconst getPageColumnTitle = function (xPageColIndex: number) {\r\n let zPageItem = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n let zPageColumn: IFC_Page_Column = pageColumns[xPageColIndex];\r\n if ((!xPageColIndex) && zPageItem) {\r\n return nz(zPageItem.pageTitle, \"Noname\");\r\n }\r\n if (zPageColumn && zPageColumn.parentPageSectionGUID) {\r\n let zPageSection: IFC_Page_Section = appUserContentManager.getSection(\"\", zPageColumn.parentPageSectionGUID);\r\n return zPageSection.sectionTitle;\r\n } else {\r\n return \"\";\r\n }\r\n}\r\n\r\nconst getPageColumnSection = function (xPageColIndex: number) {\r\n let zPageItem = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n let zPageColumn: IFC_Page_Column = pageColumns[xPageColIndex];\r\n if ((!xPageColIndex) && zPageItem) {\r\n return;\r\n }\r\n if (zPageColumn && zPageColumn.parentPageSectionGUID) {\r\n let zPageSection: IFC_Page_Section = appUserContentManager.getSection(\"\", zPageColumn.parentPageSectionGUID);\r\n return zPageSection;\r\n } else {\r\n return;\r\n }\r\n}\r\n\r\nconst getOpacity4ColumnName = function (xBottomIndex: number) {\r\n let zOpacity = 100 - xBottomIndex * 20;\r\n if (zOpacity <= 20) {\r\n zOpacity = 20;\r\n }\r\n return zOpacity + \"%\";\r\n}\r\n\r\n\r\nconst getParentSection4CurrentPageColumn = function (xCurrentPageColumn: IFC_Page_Column) {\r\n if (!xCurrentPageColumn) return;\r\n if (!xCurrentPageColumn.parentPageSectionGUID) return;\r\n let zParentSectionGUID = xCurrentPageColumn.parentPageSectionGUID;\r\n\r\n let zPageItem: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n return _.find(nz(zPageItem.pageSections, []), {_GUID: zParentSectionGUID});\r\n}\r\n\r\nconst currentAISession = (): IFC_AI_Session | any => {\r\n let zPage: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n if (zPage && zPage.fromAISessionGUID) {\r\n let zAISession: IFC_AI_Session = nz(appAIManager.allAISessions[zPage.fromAISessionGUID], {});\r\n return zAISession;\r\n }\r\n return {};\r\n}\r\n\r\nconst getResultPageStyle = function (xPageColumns: [IFC_Page_Column]) {\r\n let zResStyle: any = {};\r\n let zPageColumns = nz(xPageColumns, {});\r\n\r\n // zResStyle.top = ((zPageColumns.length - 1) * 23 + 2) + 'px';\r\n\r\n zResStyle.top = (zPageColumns.length > 1) ? \"25px\" : \"2px\";\r\n zResStyle.left = \"2px\";\r\n\r\n return zResStyle;\r\n}\r\n\r\nconst getPageColumnStyle = function (xPageColumns: [IFC_Page_Column], xPageColumnIndex: any) {\r\n let zResStyle: any = {};\r\n\r\n zResStyle[\"z-index\"] = xPageColumnIndex * 10;\r\n\r\n if ((xPageColumnIndex == 0) || (xPageColumnIndex < xPageColumns.length - 1)) {\r\n // zResStyle.left = (UIS.sideBarWidth + 32) + \"px\";\r\n zResStyle.left = \"0px\";\r\n zResStyle.bottom = \"0px\";\r\n zResStyle.top = \"0px\";\r\n zResStyle.right = \"0px\";\r\n } else if (xPageColumnIndex == xPageColumns.length - 1) {\r\n zResStyle.left = \"0px\";\r\n zResStyle.bottom = \"0px\";\r\n zResStyle.top = \"0px\";\r\n zResStyle.right = \"0px\";\r\n // zResStyle.left = (UIS.sideBarWidth + 128) + \"8px\";\r\n /*zResStyle.left = \"128px\";\r\n zResStyle.right = \"5px\";\r\n // zResStyle[\"background-color\"] = \"rgba(247,248,249,0.9)\";\r\n // // zResStyle[\"background-color\"] = \"rgba(255,255,255,0.92)\";\r\n // zResStyle[\"border\"] = \"1px solid silver\";\r\n zResStyle.bottom = \"8px\";\r\n zResStyle.top = \"8px\";*/\r\n } /*else if (xPageColumnIndex < xPageColumns.length - 1) {\r\n zResStyle.left = (UIS.sideBarWidth + 32) + \"px\";\r\n if (xPageColumns.length > 2) zResStyle.left = \"calc(20% - 32px)\";\r\n // zResStyle.left = \"20%\";\r\n // zResStyle.opacity = \"0.2\";\r\n zResStyle.bottom = \"0px\";\r\n zResStyle.top = \"0px\";\r\n zResStyle.right = zResStyle.left;\r\n }*/\r\n\r\n return zResStyle;\r\n}\r\n\r\nconst getPageSectionStyle = function (xPageSection: IFC_Page_Section): string {\r\n let zResPageSectionStyle = \"\";\r\n if (UIS.isMiniScreenMode) {\r\n zResPageSectionStyle = \"width:calc(100%);float:left;font-size:16px;font-weight:normal;line-height:1.2;\";\r\n // zResPageSectionStyle +=\"max-height:320px;\"\r\n if (xPageSection.sectionType == TYPE_SECTION.NOTE_CARD) {\r\n // zResPageSectionStyle += \"height:200px\";\r\n } else {\r\n // zResPageSectionStyle += \"height:58px\";\r\n //\r\n }\r\n } else {\r\n zResPageSectionStyle = nz(xPageSection._cacheLayoutStyle, \"\");\r\n zResPageSectionStyle += (getSectionFlagColorStyle(xPageSection, 'backStyle')) + ';'\r\n }\r\n\r\n\r\n return zResPageSectionStyle;\r\n}\r\n\r\nconst checkIfHeaderNeedToExtend = function (xPageColumn: IFC_Page_Column, xHeaderSection: IFC_Page_Section): boolean {\r\n if (!xHeaderSection) return false;\r\n if (!xPageColumn) return false;\r\n return xPageColumn.currentSelectedHeaderPageSectionGUID == xHeaderSection._GUID;\r\n}\r\n\r\nconst refreshStarredItemHeaderGUIDsMap = function () {\r\n clearObject(UIS.starredHeaderAndSubGUIDsMap);\r\n\r\n let zPageData = UIS.currentPageData;\r\n if (!zPageData) return;\r\n if (!zPageData.starredSectionGUIDs?.length) return;\r\n let zHeaderGUID: GUID_TYPE = \"\";\r\n\r\n if (UIS.starredHeaderAndSubGUIDsMap) {\r\n UIS.starredHeaderAndSubGUIDsMap[\"\"] = [];\r\n }\r\n\r\n _.each(zPageData.starredSectionGUIDs, (xStarredSectionGUID: GUID_TYPE) => {\r\n let zStarredPageSection: IFC_Page_Section = appUserContentManager.getSection(UIS.currentUserContentPageGUID, xStarredSectionGUID);\r\n if (zStarredPageSection && UIS.starredHeaderAndSubGUIDsMap) {\r\n if (zStarredPageSection.sectionType == TYPE_SECTION.HEADER) {\r\n zHeaderGUID = zStarredPageSection._GUID;\r\n if (!UIS.starredHeaderAndSubGUIDsMap[zHeaderGUID]) {\r\n UIS.starredHeaderAndSubGUIDsMap[zHeaderGUID] = [];\r\n }\r\n } else {\r\n if (UIS.starredHeaderAndSubGUIDsMap[zHeaderGUID]) {\r\n UIS.starredHeaderAndSubGUIDsMap[zHeaderGUID].push(zStarredPageSection._GUID);\r\n }\r\n }\r\n\r\n }\r\n });\r\n cwrn(\"*rfrs strhdsub map\");\r\n}\r\n\r\nconst viewingSectionParts: IFC_Page_Section[][] = reactive([]);\r\nconst viewingHeadersInColumnX: IFC_Page_Section[][] = reactive([]);\r\n\r\nconst refreshSectionsBelongToCurrentHeader = function () {\r\n\r\n // console.log(\"*refreshSectionsBelongToCurrentHeader\")\r\n\r\n\r\n const getHeaderPageSectionsForViewing = function (xPageColumnIndex?: number): IFC_Page_Section[] {\r\n // cwrn(\"*gthdrs\");\r\n let zPage: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n let zResPageSections: IFC_Page_Section[] = [];\r\n let zPageColumnParentSectionGUID = appUserContentManager.getCurrentPageColumnParentPageSectionGUID();\r\n\r\n\r\n if (zPage && zPage.pageSections) {\r\n\r\n\r\n let zFilteredPageSections: IFC_Page_Section[] = getCurrentPageColumnPageSections(nz(xPageColumnIndex, 0));\r\n\r\n _.each(zFilteredPageSections, function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection && (xPageSection.sectionType == TYPE_SECTION.HEADER)) {\r\n\r\n zResPageSections.push(xPageSection);\r\n\r\n /*if (UIS.filterCode && (!zPageColumnParentSectionGUID)) {\r\n zResPageSections.push(xPageSection);\r\n }\r\n else if (zPageColumnParentSectionGUID\r\n && (xPageSection._parentSectionGUID == zPageColumnParentSectionGUID)) {\r\n zResPageSections.push(xPageSection);\r\n } else if ((!zPageColumnParentSectionGUID) && (!xPageSection._parentSectionGUID)) {\r\n zResPageSections.push(xPageSection);\r\n }*/\r\n }\r\n });\r\n\r\n }\r\n\r\n return zResPageSections;\r\n\r\n };\r\n\r\n const getSectionsBelongToHeader = function (\r\n xHeaderSectionGUID: GUID_TYPE,\r\n xPageColumnIndex: number,\r\n xPageSectionPartID: number,\r\n // xInColNum: number\r\n ): IFC_Page_Section[] {\r\n\r\n //cwrn(\"*gtSec\");\r\n let zCurrentPageSections = getCurrentPageColumnPageSections(xPageColumnIndex);\r\n\r\n if (!xHeaderSectionGUID) return [];\r\n let zResPageSections: IFC_Page_Section[] = [];\r\n let zPageColumnIndex = nz(xPageColumnIndex, 0);\r\n\r\n _.each(zCurrentPageSections, function (xPageSection: IFC_Page_Section, xPageSectionIndex: number) {\r\n\r\n if (xPageSection.sectionType == TYPE_SECTION.HEADER) return;\r\n\r\n // if ((xPageSection.sectionSourceType == TYPE_NOTE_SOURCE.AI_DEFAULT) && (!UIS.filterCode)) return;\r\n\r\n // if ((xInColNum == 2) && (xPageSection.sectionSourceType == TYPE_NOTE_SOURCE.WEB_EXA)) return;\r\n // if ((!xPageSection.sectionSourceType) && (xPageSectionIndex + xInColNum) % 2) return;\r\n\r\n // if ((xPageSection.sectionSourceType == TYPE_NOTE_SOURCE.WEB_DEFAULT) && (xPageSection.flagCode==\"Default\") && (!UIS.filterCode)) return;\r\n // if ((xPageSection.sectionSourceType == TYPE_NOTE_SOURCE.WEB_EXA) && (!UIS.filterCode)) return;\r\n\r\n\r\n // if ((xPageSectionIndex) % 2 != (xInColNum - 1)) return;\r\n\r\n let zPageSectionPartID = nz(xPageSectionPartID, 0);\r\n\r\n\r\n // ** Part:0 (Starred Notes )\r\n if (!xPageSectionPartID) {\r\n if (\r\n (!xPageSection._isStarred)\r\n ) {\r\n return;\r\n }\r\n // if (xPageSection.flagCode != TYPE_FILTER_CODE.YELLOW) return;\r\n }\r\n\r\n // ** Part:1 (Unstarred AI && User Notes)\r\n if (xPageSectionPartID == 1) {\r\n if (xPageSection._isStarred) return;\r\n if (\r\n (xPageSection.flagCode != TYPE_FILTER_CODE.PURPLE) &&\r\n (xPageSection.flagCode != TYPE_FILTER_CODE.YELLOW)\r\n )\r\n return;\r\n }\r\n\r\n // ** Part:2 (References)\r\n if (xPageSectionPartID == 2) {\r\n if (xPageSection._isStarred) return;\r\n if (xPageSection.flagCode == TYPE_FILTER_CODE.PURPLE) return;\r\n if (xPageSection.flagCode == TYPE_FILTER_CODE.GREEN) return;\r\n if (xPageSection.flagCode == TYPE_FILTER_CODE.RED) return;\r\n if (xPageSection.flagCode == TYPE_FILTER_CODE.YELLOW) return;\r\n }\r\n\r\n // ** Part:3 (Red Only)\r\n if (xPageSectionPartID == 3) {\r\n if (xPageSection._isStarred) return;\r\n if (xPageSection.flagCode != TYPE_FILTER_CODE.RED) return;\r\n }\r\n\r\n // ** Part:4 (Green Only)\r\n if (xPageSectionPartID == 4) {\r\n if (xPageSection._isStarred) return;\r\n if (xPageSection.flagCode != TYPE_FILTER_CODE.GREEN) return;\r\n }\r\n\r\n // ** push to result\r\n if (xPageSection._headerSectionGUID == xHeaderSectionGUID) {\r\n zResPageSections.push(xPageSection);\r\n }\r\n\r\n // if ((!zPageColumn.parentPageSectionGUID) && (!xParentSectionGUID)) return true;\r\n // if (xParentSectionGUID == zPageColumn.parentPageSectionGUID) return true;\r\n\r\n });\r\n\r\n // Sorted by starred item ids\r\n let zStarredSectionGUIDs = nz(UIS.currentPageData?.starredSectionGUIDs, []);\r\n zResPageSections.sort((a, b) => {\r\n const indexA = zStarredSectionGUIDs.indexOf(a._GUID);\r\n const indexB = zStarredSectionGUIDs.indexOf(b._GUID);\r\n\r\n // If both GUIDs are in zStarredSectionGUIDs, sort by their position in zStarredSectionGUIDs\r\n if (indexA !== -1 && indexB !== -1) {\r\n return indexA - indexB;\r\n }\r\n\r\n // If only one GUID is in zStarredSectionGUIDs, prioritize it\r\n if (indexA !== -1) return -1;\r\n if (indexB !== -1) return 1;\r\n\r\n // If neither GUID is in zStarredSectionGUIDs, maintain their original order\r\n return 0;\r\n });\r\n\r\n return zResPageSections;\r\n }\r\n\r\n let zPageColumns = window.PageColumns;\r\n if (!zPageColumns) return [];\r\n if (!zPageColumns.length) return [];\r\n\r\n let zCurrentPageColumn: IFC_Page_Column = zPageColumns[UIS.currentUserContentPageColumnIndex];\r\n let zColumnIndex = zPageColumns.length - 1;\r\n\r\n let zHeaderSectionGUID = appUserContentManager.getCurrentSelectedPageHeaderSectionGUID();\r\n\r\n viewingHeadersInColumnX[zColumnIndex] = getHeaderPageSectionsForViewing(zColumnIndex);\r\n\r\n viewingSectionParts[0] = getSectionsBelongToHeader(zHeaderSectionGUID, zColumnIndex, 0);\r\n viewingSectionParts[1] = getSectionsBelongToHeader(zHeaderSectionGUID, zColumnIndex, 1);\r\n viewingSectionParts[2] = getSectionsBelongToHeader(zHeaderSectionGUID, zColumnIndex, 2);\r\n viewingSectionParts[3] = getSectionsBelongToHeader(zHeaderSectionGUID, zColumnIndex, 3);\r\n viewingSectionParts[4] = getSectionsBelongToHeader(zHeaderSectionGUID, zColumnIndex, 4);\r\n\r\n}\r\n\r\n\r\nsectionDraggingImg.src = \"./img/card-dummy.png\";\r\n\r\n\r\n//** click\r\n\r\nconst clickCallUserInputCenter = function (xUserInputCenterEvent: TYPE_EVENT, xTopicString?: string) {\r\n // eslint-disable-next-line no-undef\r\n if (!xUserInputCenterEvent) return cerr(\"*mis\");\r\n\r\n if (xTopicString) UIS.currentChattingMessage = xTopicString;\r\n setTimeout(function () {\r\n window.emitter.emit(xUserInputCenterEvent);\r\n }, 400);\r\n\r\n\r\n}\r\n\r\n\r\nconst clickHeaderSection = function (xEvent: any, xPageColumn: IFC_Page_Column, xPageColumnIndex: number, xPageSectionGUID?: GUID_TYPE, xHeaderPageSectionGUID?: GUID_TYPE) {\r\n\r\n UIS.ifChattingUI = false;\r\n\r\n appUserContentManager.selectPageSection(xPageColumnIndex, xPageSectionGUID, xHeaderPageSectionGUID);\r\n\r\n /*if (xPageColumn.currentSelectedHeaderPageSectionGUID != xHeaderPageSectionGUID) {\r\n /!*if (!xPageColumn.currentSelectedPageSectionGUID) {\r\n UIS.ifGoBackAnimation = false;\r\n }*!/\r\n\r\n appUserContentManager.selectPageSection(xPageColumnIndex, xPageSectionGUID, xHeaderPageSectionGUID);\r\n\r\n } else {\r\n // appUserContentManager.selectPageSection(xPageColumnIndex, \"\", \"\");\r\n }\r\n\r\n /!*if (xPageColumn.currentSelectedPageSectionGUID != xPageSectionGUID) {\r\n xPageColumn.currentSelectedPageSectionGUID = nz(xPageSectionGUID, \"\");\r\n\r\n // clickDiveIntoPageSection(xEvent,xPageSectionGUID);\r\n }\r\n // else {\r\n //\r\n // }*!/*/\r\n\r\n\r\n}\r\n\r\nconst onMousedownPageSection = function (xPageSectionGUID: GUID_TYPE) {\r\n let zCurrentSelectedPageSectionGUID = appUserContentManager.getCurrentSelectedPageSectionGUID();\r\n if (xPageSectionGUID && zCurrentSelectedPageSectionGUID && (xPageSectionGUID != zCurrentSelectedPageSectionGUID)) {\r\n clearSelection();\r\n UIS.selectedTextContent = \"\";\r\n }\r\n}\r\n\r\nconst doBreakDownPageSectionWithContent = function (xPageSection: IFC_Page_Section) {\r\n if (!xPageSection) return;\r\n let zSectionContent = nz(xPageSection.sectionBodyText, \"\").trim() + \"\\n\\n\" + nz(xPageSection.sectionSummary, \"\").trim();\r\n if (!zSectionContent) return;\r\n // cwrn(\"*prtpgsct\",zSectionBodyText);\r\n\r\n let zPageColumnIndex = window.PageColumns.length - 1;\r\n let zPageColumn: IFC_Page_Column = window.PageColumns[zPageColumnIndex];\r\n if (!zPageColumn) return;\r\n\r\n let zParentPageSectionGUID = appUserContentManager.getCurrentPageColumnParentPageSectionGUID();\r\n appUserContentManager.selectPageSection(zPageColumnIndex, zParentPageSectionGUID, zParentPageSectionGUID);\r\n let zPosIndex = appUserContentManager.getCurrentSelectedPageSectionIndex();\r\n\r\n let zNewGroupGUID = chance.guid();\r\n appUserContentManager.insertPageSectionsToPosition(UIS.currentUserContentPageGUID,\r\n [{\r\n _parentSectionGUID: zParentPageSectionGUID,\r\n _GUID: zNewGroupGUID,\r\n sectionType: TYPE_SECTION.HEADER,\r\n sectionTitle: xPageSection.sectionTitle,\r\n }], zPosIndex, zPageColumn.parentPageSectionGUID)\r\n\r\n\r\n appUserContentManager.selectPageSection(zPageColumnIndex, zNewGroupGUID, zNewGroupGUID);\r\n appUserContentManager.renderAllSectionsInPage(UIS.currentUserContentPageGUID);\r\n\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*sldhdid\",zCurrentSelectedPageHeaderSectionGUID);\r\n\r\n appCommandManager.currentHeaderGUID = zNewGroupGUID;\r\n appUserContentManager.upsertPageSectionsFromAIReply(\r\n UIS.currentUserContentPageGUID,\r\n zNewGroupGUID,\r\n {\r\n userMessage: zSectionContent,\r\n AIActionType: TYPE_AI_ACTION.ForBreakdown,\r\n });\r\n\r\n}\r\n\r\nconst clickPageSection = function (xEvent: any, xPageColumn: IFC_Page_Column, xPageColumnIndex: number, xPageSectionGUID?: GUID_TYPE, xHeaderPageSectionGUID?: GUID_TYPE) {\r\n // console.log(\"*clickPageSection\");\r\n\r\n UIS.ifChattingUI = false;\r\n\r\n if (xPageColumn.currentSelectedPageSectionGUID != xPageSectionGUID) {\r\n /*if (!xPageColumn.currentSelectedPageSectionGUID) {\r\n UIS.ifGoBackAnimation = false;\r\n }*/\r\n\r\n appUserContentManager.selectPageSection(xPageColumnIndex, xPageSectionGUID, xHeaderPageSectionGUID);\r\n\r\n }\r\n /*if (xPageColumn.currentSelectedPageSectionGUID != xPageSectionGUID) {\r\n xPageColumn.currentSelectedPageSectionGUID = nz(xPageSectionGUID, \"\");\r\n\r\n // clickDiveIntoPageSection(xEvent,xPageSectionGUID);\r\n }\r\n // else {\r\n //\r\n // }*/\r\n}\r\n\r\n/*const clickReturnColumn = function (xPageColumnIndex: number) {\r\n if (xPageColumnIndex == UIS.currentUserContentPageColumnIndex) {\r\n appUserContentManager.scrollPageTo(\"top\");\r\n } else {\r\n appUserContentManager.resetPageColumn(xPageColumnIndex);\r\n }\r\n}*/\r\n\r\nconst clickNewExploring = function () {\r\n UIS.ifChattingUI = true;\r\n // eslint-disable-next-line no-undef\r\n setInputFocus(\"#inputCenter_chatbox\");\r\n}\r\n\r\n\r\nconst getCSSColCount = function (xPageSectionPartID: number, xItemsLength: number) {\r\n // return 2;\r\n\r\n if (xItemsLength < 5) {\r\n return 1\r\n }\r\n\r\n if (xPageSectionPartID == 0) { // Custom Slide\r\n // if (UIS.resultPageWidth < 600) return 1;\r\n return 1\r\n } // related topic part\r\n else {\r\n if (xPageSectionPartID == 1) { //AI\r\n // if (UIS.resultPageWidth < 600) return 1;\r\n return 1\r\n }\r\n\r\n if (UIS.resultPageWidth > 1500) return 4;\r\n if (UIS.resultPageWidth > 1200) return 3;\r\n if (UIS.resultPageWidth > 600) return 2;\r\n }\r\n\r\n return 1;\r\n}\r\n\r\nconst clickGotoWebsite = function (xRefLink: string) {\r\n if (!xRefLink) return;\r\n window.open(xRefLink, '_blank').focus();\r\n}\r\n\r\n\r\nconst clickDiveIntoPageSection = function (xEvent: any, xPageColumn: IFC_Page_Column, xPageColumnIndex: number, xTargetPageSectionGUID: string, xHeaderSection: IFC_Page_Section) {\r\n clickPageSection(xEvent, xPageColumn, xPageColumnIndex, xTargetPageSectionGUID, xHeaderSection._GUID);\r\n // appUserContentManager.resetPageColumn(xPageColumnIndex);\r\n appUserContentManager.extendPageColumn(UIS.currentUserContentPageColumnIndex, xTargetPageSectionGUID);\r\n}\r\n\r\n\r\nconst clickPreviewPageSection = function (xEvent: any, xPageSection: IFC_Page_Section) {\r\n appSharingManager\r\n if (xPageSection) {\r\n let zThemeName = UIS.currentPageData?.playOptions?.defaultThemeName;\r\n zThemeName = nz(zThemeName, \"card-theme-dark\");\r\n appSharingManager.previewSingleSlide(zThemeName, xPageSection);\r\n }\r\n}\r\n\r\n\r\nconst setPageSectionHovered = function (xPagesectionGUID: GUID_TYPE) {\r\n if (!xPagesectionGUID) {\r\n inputThings.hoverSectionGUID = \"\";\r\n } else {\r\n inputThings.hoverSectionGUID = xPagesectionGUID;\r\n }\r\n}\r\n\r\nconst getSubPageSectionCount = function (xPageSection: IFC_Page_Section): number {\r\n let zSubPageSections: [IFC_Page_Section?] = appUserContentManager.getSectionListByParentSectionGUID(UIS.currentUserContentPageGUID, xPageSection._GUID);\r\n if (zSubPageSections && zSubPageSections.length) {\r\n return zSubPageSections.length;\r\n }\r\n return 0;\r\n}\r\n// const setPageSectionHovered_Lazy = _.debounce(setPageSectionHovered, 480);\r\n\r\n\r\nconst dblclickPageSection = function (xEvent: any, xPageColumn: IFC_Page_Column, xPageColumnIndex: number, xTargetPageSection: IFC_Page_Section) {\r\n /*if (!xTargetPageSection) return;\r\n if (!xTargetPageSection._GUID) return;\r\n if (xTargetPageSection.sectionType == TYPE_SECTION.NOTE_CARD) {\r\n clickDiveIntoPageSection(xEvent, xPageColumn, xPageColumnIndex, xTargetPageSection._GUID);\r\n } else if (xTargetPageSection.sectionType == TYPE_SECTION.HEADER) {\r\n appUserContentManager.startEditingPageSection(xTargetPageSection);\r\n }*/\r\n}\r\n\r\n// ** setupPageRenderer\r\nconst setupPageRenderer = function () {\r\n\r\n window.emitter.on(TYPE_EVENT.AI_GENERATING, function () {\r\n\r\n let zAISession: IFC_AI_Session = currentAISession();\r\n // cwrn(\"*aimsg\", zAISession, zAISession.returnMessage);\r\n UIS.currentReturnMessage = nz(zAISession.returnMessage, \"\");\r\n\r\n });\r\n\r\n // Building Page Sections with AI Sessions\r\n /*window.emitter.on(TYPE_EVENT.AI_GENERATING, function () {\r\n let zPage: IFC_Page_Data = currentUserContentPage.value;\r\n let zAISession: IFC_AI_Session = currentAISession();\r\n\r\n if (zAISession && zAISession._GUID) {\r\n\r\n if (zAISession.AIActionType == TYPE_AI_ACTION.ForFollowUps) {\r\n return;\r\n }\r\n }\r\n\r\n if (zAISession && (zAISession.status == TYPE_SESSION_STATUS.RUNNING)) {\r\n // ** running\r\n let zPageColumn = PageColumns[UIS.currentUserContentPageColumnIndex];\r\n let zCurrentPageSectionGUID = zPageColumn.currentSelectedPageSectionGUID;\r\n // console.error(\"*zsecid\", zCurrentPageSectionGUID);\r\n\r\n let zCurrentSelectedPageSectionIndex = _.findIndex(zPage.pageSections, {_GUID: zCurrentPageSectionGUID});\r\n\r\n UIS.startSectionIndex4Rendering = nz(UIS.startSectionIndex4Rendering, 0);\r\n if (UIS.startSectionIndex4Rendering < 0) {\r\n if (zCurrentPageSectionGUID) {\r\n UIS.startSectionIndex4Rendering = zCurrentSelectedPageSectionIndex + 1;\r\n } else {\r\n let zSectionsInColumn = nz(appUserContentManager.getSectionListByParentSectionGUID(\"\", zPageColumn.parentPageSectionGUID), []);\r\n let zLastInColumnnPageSectionGUID = nz(zSectionsInColumn[zSectionsInColumn.length - 1], {})._GUID;\r\n let zLastPageSectionIndexInColumn = 0;\r\n if (zLastInColumnnPageSectionGUID) {\r\n zLastPageSectionIndexInColumn = _.findIndex(zPage.pageSections, {_GUID: zLastInColumnnPageSectionGUID});\r\n zLastPageSectionIndexInColumn++;\r\n }\r\n UIS.startSectionIndex4Rendering = zLastPageSectionIndexInColumn;\r\n }\r\n }\r\n\r\n lockResultPageUI(true);\r\n // cwrn(\"*zpg\", zPage,);\r\n // cwrn(\"*zpg-aiss\", zAISession.returnMessage, zAISession.status);\r\n\r\n\r\n if (zAISession && zAISession._GUID) {\r\n\r\n if (!zPage.pageSections) zPage.pageSections = [];\r\n UIS.isAIGeneratingPageContent = true;\r\n\r\n\r\n /!*zAISession.returnMessage = zAISession.returnMessage\r\n .replaceAll(\"\\n\\n#\", \"\\n****\\n#\");*!/\r\n\r\n // ** for searched images\r\n if ((!zAISession.searchedImages) && (appSERPManager.latestSearchedImages) && (appSERPManager.latestSearchedImages.length)) {\r\n zAISession.searchedImages = _.clone(appSERPManager.latestSearchedImages);\r\n appSERPManager.latestSearchedImages = [];\r\n }\r\n\r\n if (zAISession.pageSectionGUID) {\r\n //!*** single section\r\n appUserContentManager.buildSingleContentPageWithAISession(zPage, zAISession, zAISession.pageSectionGUID);\r\n } else {\r\n // *** multi section parts\r\n appUserContentManager.buildContentPagePartsWithAISession(zPage, zPageColumn, zAISession, UIS.startSectionIndex4Rendering);\r\n }\r\n\r\n appUserContentManager.renderAllSectionsInPage(UIS.currentUserContentPageGUID);\r\n }\r\n\r\n }\r\n });*/\r\n\r\n\r\n // START AI Rendering\r\n window.emitter.on(TYPE_EVENT.AI_GEN_STRAT, function () {\r\n\r\n // * select a layout\r\n let zPickedLayoutStyleName: string = chance.pick(UIS.currentUserContentPageTemplate.layoutStyleNames4Pickup);\r\n UIS.generatingTempLayoutCode = zPickedLayoutStyleName;\r\n UIS.currentReturnMessage = \"\";\r\n\r\n /*let zAISession: IFC_AI_Session = currentAISession();\r\n if (zAISession.AIActionType == TYPE_AI_ACTION.ForAnalyzing) {\r\n UIS.generatingTempLayoutCode = \"ListA\"; // line by line, narrow\r\n }*/\r\n\r\n // * lock UI\r\n lockResultPageUI(true);\r\n\r\n });\r\n\r\n // Finish AI Rendering\r\n const funcOnAIGenDone_OutputNoteCards = function () {\r\n\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*agdne-ntcrd\");\r\n\r\n //* init\r\n let zAISession: IFC_AI_Session = currentAISession();\r\n zAISession.belongingHeaderSectionGUID = appCommandManager.currentHeaderGUID;\r\n UIS.currentReturnMessage = \"\";\r\n\r\n let zPage: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n let zPageColumns: IFC_Page_Column[] = window.PageColumns;\r\n let zPageColumn: IFC_Page_Column = zPageColumns[UIS.currentUserContentPageColumnIndex];\r\n let zCurrentHeaderGUID = appUserContentManager.getCurrentSelectedPageHeaderSectionGUID();\r\n\r\n\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, zAISession.belongingHeaderSectionGUID, zAISession.belongingHeaderSectionGUID);\r\n let zPosIndex = appUserContentManager.getCurrentSelectedPageSectionIndex() + 1;\r\n\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*bldsecwai x1\",zPage, zPageColumn);\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*bldsecwai x2\",zAISession, zPosIndex);\r\n\r\n //* render and prcoess\r\n appUserContentManager.buildContentPagePartsWithAISession(zPage, zPageColumn, zAISession, zPosIndex);\r\n appUserContentManager.renderAllSectionsInPage(UIS.currentUserContentPageGUID);\r\n let zCurrentPage: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n\r\n let zStarIndex = 0;\r\n\r\n\r\n // * current header\r\n let zCurrentHeaderSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zCurrentHeaderGUID);\r\n\r\n // * auto-add header to playlist\r\n if (UIS.ifCreatedTopicAutoAdd2Playlist) {\r\n if (zCurrentHeaderSection && (zCurrentHeaderSection._sourceActionFlowGUID != \"SysAIOutline\")) {\r\n zCurrentHeaderSection._isStarred = true;\r\n\r\n if (zCurrentPage?.starredSectionGUIDs && (!_.includes(zCurrentPage?.starredSectionGUIDs, zCurrentHeaderGUID))) {\r\n zCurrentPage.starredSectionGUIDs.push(zCurrentHeaderGUID);\r\n }\r\n\r\n }\r\n }\r\n\r\n setTimeout(function () {\r\n assignArray(UIS.selectedStarredPageSectionGUIDs, appUserContentManager.getGroupItemGUIDs(zCurrentHeaderGUID));\r\n }, 1000);\r\n\r\n // * each card\r\n _.each(zPage.pageSections, function (xPageSection: IFC_Page_Section) {\r\n // * add search images for page sections\r\n if (\r\n (xPageSection._headerSectionGUID == zCurrentHeaderGUID)\r\n && (xPageSection._isImageNeeded)\r\n && (xPageSection.sectionType == TYPE_SECTION.NOTE_CARD)\r\n && (!xPageSection.SERPItemArray)\r\n && ((!xPageSection.optionalCoverImageURLs) || (!xPageSection.optionalCoverImageURLs.length))\r\n ) {\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*imgsec ax\", xPageSection);\r\n\r\n /*appUserContentManager.addSERP2PageSection(xPageSection, {\r\n q: xPageSection.sectionTitle + \" site:\" + appSERPManager.getHostName(xPageSection.refLink),\r\n type: \"images\",\r\n });*/\r\n // q: xPageSection.sectionTitle + \" site:\",\r\n // q: xPageSection.sectionTitle + \" site:\" + appSERPManager.getHostName(xPageSection.refLink),\r\n }\r\n\r\n // * add search images for current header\r\n if (\r\n (xPageSection._GUID == zCurrentHeaderGUID)\r\n && (xPageSection.sectionType == TYPE_SECTION.HEADER)\r\n && (!xPageSection.SERPItemArray)\r\n && ((!xPageSection.optionalCoverImageURLs) || (!xPageSection.optionalCoverImageURLs.length))\r\n ) {\r\n //\r\n //\r\n }\r\n\r\n if (\r\n (xPageSection.sectionSourceType == TYPE_NOTE_SOURCE.AI_DEFAULT)\r\n && (xPageSection.sectionType != TYPE_SECTION.HEADER)\r\n && (xPageSection._headerSectionGUID == zCurrentHeaderGUID)\r\n ) {\r\n xPageSection.flagCode = TYPE_FILTER_CODE.PURPLE;\r\n\r\n\r\n if (zCurrentHeaderSection._sourceActionFlowGUID != \"SysAIOutline\") // not outline section\r\n {\r\n zStarIndex++;\r\n cwrn(\"*star\", xPageSection.sectionTitle, zStarIndex);\r\n\r\n // ** auto-add slide to starred item list\r\n if (zCurrentHeaderSection._isStarred) {\r\n xPageSection._isStarred = true;\r\n zCurrentPage?.starredSectionGUIDs?.push(xPageSection._GUID);\r\n }\r\n }\r\n\r\n }\r\n\r\n\r\n });\r\n\r\n\r\n // eslint-disable-next-line no-undef\r\n // cerr('*blghdrid',zAISession.belongingHeaderSectionGUID)\r\n\r\n refreshStarredItemHeaderGUIDsMap();\r\n refreshSectionsBelongToCurrentHeader();\r\n\r\n if (zAISession.belongingHeaderSectionGUID) {\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, zAISession.belongingHeaderSectionGUID, zAISession.belongingHeaderSectionGUID);\r\n }\r\n\r\n\r\n // * Webscrape: add image for header and reflinks for conclusion cards\r\n if (zAISession?.AIActionType == TYPE_AI_ACTION.ForSummary) {\r\n _.each(appUserContentManager.getCurrentPageSections(), function (xPageSectionInCurrentHeader: IFC_Page_Section) {\r\n\r\n if (xPageSectionInCurrentHeader._headerSectionGUID == zCurrentHeaderSection._GUID) {\r\n if (!zCurrentHeaderSection.coverImageURL) {\r\n if (xPageSectionInCurrentHeader.coverImageURL) {\r\n zCurrentHeaderSection.coverImageURL = xPageSectionInCurrentHeader.coverImageURL;\r\n }\r\n }\r\n\r\n if ((!xPageSectionInCurrentHeader.refLinkAllString) && appUserContentManager.tempRefLinkAllString) {\r\n xPageSectionInCurrentHeader.refLinkAllString = appUserContentManager.tempRefLinkAllString;\r\n }\r\n }\r\n });\r\n }\r\n\r\n // unlock UI for given AI Actions\r\n if (zAISession?.AIActionType == TYPE_AI_ACTION.ForPoints) {\r\n // eslint-disable-next-line no-undef\r\n cerr(\"xunl\", zAISession.AIActionType, zAISession);\r\n unlockResultPageUI();\r\n }\r\n\r\n zPage.fromAISessionGUID = \"\";\r\n zAISession.status = TYPE_SESSION_STATUS.FINISHED;\r\n setTimeout(function () {\r\n $(\"#divStarredItemList\").scrollTop(999999);\r\n }, 500);\r\n\r\n\r\n appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\r\n\r\n }\r\n\r\n window.emitter.on(TYPE_EVENT.AI_GEN_POINTS_DONE, funcOnAIGenDone_OutputNoteCards);\r\n window.emitter.on(TYPE_EVENT.AI_GEN_SUMMARY_DONE, funcOnAIGenDone_OutputNoteCards);\r\n window.emitter.on(TYPE_EVENT.AI_GEN_BREAKDOWN_DONE, funcOnAIGenDone_OutputNoteCards);\r\n window.emitter.on(TYPE_EVENT.AI_GEN_CONCLUSION_DONE, funcOnAIGenDone_OutputNoteCards);\r\n window.emitter.on(TYPE_EVENT.AI_GEN_OUTLINE_DONE, funcOnAIGenDone_OutputNoteCards);\r\n\r\n\r\n // AI Error Occurred\r\n window.emitter.on(TYPE_EVENT.AI_GEN_ERROR, function () {\r\n refreshSectionsBelongToCurrentHeader();\r\n unlockResultPageUI();\r\n });\r\n\r\n// OOC Error Occurred\r\n window.emitter.on(TYPE_EVENT.OUT_OF_CREDITS, function () {\r\n refreshSectionsBelongToCurrentHeader();\r\n unlockResultPageUI();\r\n });\r\n\r\n window.emitter.on(TYPE_EVENT.AI_GEN_CANCELED, function () {\r\n let zPage: IFC_Page_Data = currentUserContentPage.value;\r\n let zAISession: IFC_AI_Session = currentAISession();\r\n UIS.startSectionIndex4Rendering = -1;\r\n UIS.endSectionIndex4Rendering = -1;\r\n\r\n zPage.fromAISessionGUID = \"\";\r\n zAISession.status = TYPE_SESSION_STATUS.FINISHED;\r\n appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\r\n\r\n refreshSectionsBelongToCurrentHeader();\r\n\r\n unlockResultPageUI();\r\n });\r\n\r\n\r\n window.emitter.on(TYPE_EVENT.SERP_DONE, function () {\r\n let zHeaderSectionGUID = appUserContentManager.getCurrentSelectedPageHeaderSectionGUID();\r\n\r\n // * auto-conclude parent page section\r\n let zHeaderSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zHeaderSectionGUID);\r\n lockResultPageUI(true);\r\n\r\n if (appCommandManager.currentCommandType != TYPE_INPUT_COMMAND.IMAGE_SEARCH) {\r\n appUserContentManager.addConclusion2Group(zHeaderSection, {AIActionType: TYPE_AI_ACTION.ForConclusion});\r\n } else {\r\n unlockResultPageUI();\r\n funcOnAIGenDone_OutputNoteCards();\r\n }\r\n\r\n if (zHeaderSectionGUID) {\r\n setTimeout(function () {\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, zHeaderSectionGUID, zHeaderSectionGUID);\r\n }, 500);\r\n }\r\n\r\n refreshSectionsBelongToCurrentHeader();\r\n // unlockResultPageUI();\r\n });\r\n\r\n window.emitter.on(TYPE_EVENT.SCRP_DONE, function () {\r\n let zHeaderSectionGUID = appUserContentManager.getCurrentSelectedPageHeaderSectionGUID();\r\n\r\n // * auto-conclude parent page section\r\n let zHeaderSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zHeaderSectionGUID);\r\n lockResultPageUI(true);\r\n\r\n if (appCommandManager.currentCommandType == TYPE_INPUT_COMMAND.WEB_SCRAPE) {\r\n appUserContentManager.addConclusion2Group(zHeaderSection, {AIActionType: TYPE_AI_ACTION.ForSummary});\r\n }\r\n\r\n if (zHeaderSectionGUID) {\r\n setTimeout(function () {\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, zHeaderSectionGUID, zHeaderSectionGUID);\r\n }, 200);\r\n }\r\n\r\n refreshSectionsBelongToCurrentHeader();\r\n\r\n });\r\n\r\n window.emitter.on(TYPE_EVENT.PAGE_COLUMN_RESET, function () {\r\n let zPageColumn: IFC_Page_Column = nz(pageColumns[UIS.currentUserContentPageColumnIndex], {});\r\n UIS.filterCode = nz(zPageColumn.filterCode, TYPE_FILTER_CODE.NONE);\r\n refreshSectionsBelongToCurrentHeader();\r\n });\r\n\r\n window.emitter.on(TYPE_EVENT.PAGE_COLUMN_NEW, function () {\r\n let zPageColumns = window.PageColumns;\r\n let zParentPageSectionGUID: GUID_TYPE = appUserContentManager.getCurrentPageColumnParentPageSectionGUID();\r\n let zParentPageSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zParentPageSectionGUID);\r\n\r\n // * goto 1st header if (Home)\r\n\r\n setTimeout(function () {\r\n let zPageColumn: IFC_Page_Column = nz(pageColumns[UIS.currentUserContentPageColumnIndex], {});\r\n if (zPageColumn.parentPageSectionGUID) {\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, zPageColumn.parentPageSectionGUID);\r\n return\r\n } // if not Home, return\r\n\r\n refreshSectionsBelongToCurrentHeader();\r\n\r\n let zHeaderSections: IFC_Page_Section[] = viewingHeadersInColumnX[UIS.currentUserContentPageColumnIndex];\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*hdrsec op\", zHeaderSections)\r\n\r\n if (zHeaderSections && zHeaderSections.length && (!zPageColumn.currentSelectedHeaderPageSectionGUID)) {\r\n appUserContentManager.selectPageSection(\r\n UIS.currentUserContentPageColumnIndex,\r\n zHeaderSections[0]._GUID,\r\n zHeaderSections[0]._GUID);\r\n }\r\n\r\n setTimeout(function () {\r\n $(\"#divPageColumnResult_\" + (zPageColumns.length - 1))[0].scrollTo({top: 0, behavior: \"instant\"});\r\n }, 100);\r\n\r\n }, 100);\r\n\r\n });\r\n\r\n window.emitter.on(TYPE_EVENT.PAGE_COLUMN_FILTER_CHANGED, function () {\r\n let zPageColumns = window.PageColumns;\r\n $(\"#divPageColumnResult_\" + (zPageColumns.length - 1))[0].scrollTo({top: 0, behavior: \"instant\"});\r\n refreshSectionsBelongToCurrentHeader();\r\n });\r\n\r\n // on Page Status changed\r\n window.emitter.on(TYPE_EVENT.PAGE_STATE_CHANGED, function () {\r\n setTimeout(function () {\r\n assignArray(defaultTopicStrings, appPageTemplateManager.getTopicsFromTemplate(5));\r\n refreshStarredItemHeaderGUIDsMap();\r\n }, 300);\r\n //\r\n });\r\n\r\n let refreshAllSectionsInPageLazy = _.debounce(function () {\r\n appUserContentManager.renderAllSectionsInPage(UIS.currentUserContentPageGUID);\r\n refreshSectionsBelongToCurrentHeader();\r\n refreshStarredItemHeaderGUIDsMap();\r\n }, 300);\r\n\r\n window.emitter.on(TYPE_EVENT.PAGE_SAVED, function () {\r\n refreshAllSectionsInPageLazy();\r\n });\r\n\r\n // on Header Open Status changed\r\n window.emitter.on(TYPE_EVENT.HEADER_OPEN_STATE_CHANGED, function () {\r\n refreshSectionsBelongToCurrentHeader();\r\n });\r\n\r\n}\r\n\r\n\r\n// *\r\nsetupPageRenderer();\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_PageSectionView = _resolveComponent(\"PageSectionView\")!\n const _component_HeaderSectionMenu = _resolveComponent(\"HeaderSectionMenu\")!\n const _component_PageSectionElement = _resolveComponent(\"PageSectionElement\")!\n const _component_el_skeleton = _resolveComponent(\"el-skeleton\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", {\n style: _normalizeStyle([{\"z-index\":\"5000\",\"overflow-x\":\"hidden\",\"position\":\"absolute\",\"right\":\"0\",\"bottom\":\"0\"}, getResultPageStyle(_unref(pageColumns))]),\n id: \"divShowingResult\"\n }, [\n _withDirectives(_createElementVNode(\"div\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(PageColumns), (pageColumn, pageColumnIndex) => {\n return _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n key: pageColumnIndex,\n style: _normalizeStyle([{\"position\":\"absolute\"}, getPageColumnStyle(_unref(PageColumns),pageColumnIndex)]),\n class: \"rc2\",\n id: 'divPageColumn_'+pageColumnIndex,\n onScroll: _cache[1] || (_cache[1] = _withModifiers(() => {}, [\"prevent\",\"stop\"]))\n }, [\n _createElementVNode(\"div\", {\n id: 'divPageColumnResult_'+pageColumnIndex,\n class: _normalizeClass([\"absolute-max rc2\", {\r\n 'hover-overflow':(_unref(UIS).currentUserContentPageGUID && (!_unref(UIS).isMiniScreenMode) && viewingHeadersInColumnX[pageColumnIndex].length),\r\n 'no-overflow':(pageColumnIndex==0) && ((!viewingHeadersInColumnX[pageColumnIndex]) || (!viewingHeadersInColumnX[pageColumnIndex].length)),\r\n }]),\n style: {\"z-index\":\"90\"}\n }, [\n _createElementVNode(\"div\", _hoisted_5, [\n (pageColumn.parentPageSectionGUID)\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"rc2 uk-animation-fast no-select\", {\r\n 'uk-animation-scale-up':(!_unref(UIS).ifGoBackAnimation),\r\n 'no-animation':(_unref(UIS).ifGoBackAnimation),\r\n }]),\n style: {\"border\":\"0px solid transparent\",\"overflow\":\"hidden\",\"margin-top\":\"5px\"}\n }, [\n _createVNode(_component_PageSectionView, {\n pageSection: getParentSection4CurrentPageColumn(pageColumn),\n isFolded: _unref(UIS).isMiniScreenMode\n }, null, 8, [\"pageSection\", \"isFolded\"])\n ], 2)), [\n [_vShow, pageColumn.currentSelectedPageSectionGUID==pageColumn.parentPageSectionGUID]\n ])\n : _createCommentVNode(\"\", true),\n (!pageColumn.parentPageSectionGUID)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6))\n : _createCommentVNode(\"\", true),\n (viewingHeadersInColumnX[pageColumnIndex] && viewingHeadersInColumnX[pageColumnIndex].length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(viewingHeadersInColumnX[pageColumnIndex], (headerSection) => {\n return _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n key: headerSection._GUID,\n class: _normalizeClass([\"uk-clearfix uk-animation-fast no-select\", {\r\n 'uk-animation-slide-bottom':(!_unref(UIS).ifGoBackAnimation),\r\n 'no-animation':(_unref(UIS).ifGoBackAnimation),\r\n }]),\n style: _normalizeStyle('animation-delay: '+(headerSection.sectionTitle.length*4)+'ms;')\n }, [\n _createElementVNode(\"div\", {\n class: \"uk-clearfix\",\n style: {\"margin-top\":\"5px\",\"margin-bottom\":\"5px\"},\n id: 'divPageSection_'+pageColumnIndex+'_'+headerSection._GUID\n }, [\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", {\n class: \"uk-clearfix no-overflow no-wrap\",\n style: {\"max-width\":\"calc(100% - 10px)\"},\n onClick: _withModifiers(($event: any) => (clickHeaderSection($event,pageColumn,pageColumnIndex,headerSection._GUID,headerSection._GUID)), [\"stop\",\"prevent\"])\n }, [\n _createElementVNode(\"div\", _hoisted_11, _toDisplayString(headerSection.sectionTitle), 1)\n ], 8, _hoisted_10),\n (checkIfHeaderNeedToExtend(pageColumn,headerSection) )\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n _createVNode(_component_HeaderSectionMenu, {\n class: \"\",\n style: {\"margin-top\":\"3px\"},\n isReadOnly: _unref(UIS).isSharingViewMode,\n isSelected: pageColumn.currentSelectedHeaderPageSectionGUID==headerSection._GUID,\n pageSection: headerSection\n }, null, 8, [\"isReadOnly\", \"isSelected\", \"pageSection\"]),\n _cache[2] || (_cache[2] = _createElementVNode(\"hr\", null, null, -1))\n ], 512)), [\n [_vShow, !pageColumn.filterCode]\n ])\n : _createCommentVNode(\"\", true)\n ]),\n ((headerSection.coverImageURL))\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_13, [\n (headerSection.coverImageURL)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_14, [\n _createElementVNode(\"img\", {\n class: \"ca rc2 img-border\",\n style: {},\n onerror: \"this.style='width:1px;height:1px;opacity:0;';\",\n src: headerSection.coverImageURL\n }, null, 8, _hoisted_15)\n ]))\n : _createCommentVNode(\"\", true)\n ], 512)), [\n [_vShow, checkIfHeaderNeedToExtend(pageColumn,headerSection)]\n ])\n : _createCommentVNode(\"\", true),\n (checkIfHeaderNeedToExtend(pageColumn,headerSection) )\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_16, [\n (headerSection.sectionMemo)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_17, [\n _createElementVNode(\"div\", _hoisted_18, [\n _cache[3] || (_cache[3] = _createElementVNode(\"i\", {\n class: \"lt text12B ccc-icon-file-empty text-black-30 no-select gly-rotate-180\",\n style: {\"margin-top\":\"14px\"}\n }, null, -1)),\n _createElementVNode(\"p\", {\n class: \"lt la text-black-60 memo-back margin10-lr rc2 text-break uk-clearfix comment no-overflow md-contents-lite text-black-60 can-select\",\n style: {\"width\":\"calc(80% - 20px)\",\"border\":\"none\",\"resize\":\"none\",\"padding\":\"0px 5px\",\"max-height\":\"64px\"},\n innerHTML: headerSection._cacheMemoHTML\n }, null, 8, _hoisted_19)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ], 8, _hoisted_8),\n ((_unref(UIS).ifLockingPageUI) && (checkIfHeaderNeedToExtend(pageColumn,headerSection)))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_20, [\n (_unref(UIS).currentReturnMessage && _unref(UIS).isAIGenerating)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"margin5-lr md-contents-lite\",\n innerHTML: _ctx.currentReturnMessageMD\n }, null, 8, _hoisted_21))\n : _createCommentVNode(\"\", true),\n _cache[4] || (_cache[4] = _createElementVNode(\"hr\", null, null, -1))\n ]))\n : _createCommentVNode(\"\", true),\n (checkIfHeaderNeedToExtend(pageColumn,headerSection))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_22, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList([0,1,2,3], (pageSectionPartID) => {\n return _createElementVNode(\"div\", {\n key: pageSectionPartID,\n class: \"uk-clearfix\"\n }, [\n (pageSectionPartID==2)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_23, [\n _withDirectives(_createElementVNode(\"div\", _hoisted_24, _cache[5] || (_cache[5] = [\n _createElementVNode(\"div\", {\n class: \"la uk-animation-fade uk-animation-fast margin10\",\n style: {}\n }, null, -1)\n ]), 512), [\n [_vShow, (!_unref(UIS).isSharingViewMode) && (!_unref(UIS).ifLockingPageUI) && (!_unref(UIS).ifHideResult4Refreshing)]\n ])\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_25, [\n ((pageSectionPartID>=0) && (viewingSectionParts[pageSectionPartID]?.length))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_26, [\n (pageSectionPartID==2)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_27, _toDisplayString(_ctx.$t(\"Reference_Bookmarks\")), 1))\n : _createCommentVNode(\"\", true),\n (pageSectionPartID==3)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_28, _toDisplayString(_ctx.$t(\"Related_Questions\")), 1))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", {\n style: _normalizeStyle({\r\n 'column-count': getCSSColCount(pageSectionPartID,viewingSectionParts[pageSectionPartID]?.length),\r\n })\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(viewingSectionParts[pageSectionPartID], (pageSection, pageSectionIndex) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: pageSection._GUID+'.'+pageSectionIndex\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"uk-clearfix no-overflow\", {\r\n 'uk-animation-fast':(!_unref(UIS).ifLockingPageUI),\r\n 'content-card1':(pageColumn.currentSelectedPageSectionGUID!=pageSection._GUID),\r\n 'content-card-selected':(pageColumn.currentSelectedPageSectionGUID==pageSection._GUID),\r\n 'uk-animation-fade':(!_unref(UIS).ifGoBackAnimation),\r\n 'no-animation':(_unref(UIS).ifGoBackAnimation),\r\n }]),\n style: _normalizeStyle(\r\n (headerSection._layoutStyleObject?.isOneLineTitle?'margin-bottom: 10px;':'margin-bottom: 2px;')\r\n + ('animation-delay:'+(pageSection._animationDelay || 10)+'ms;')\r\n )\n }, [\n _createElementVNode(\"div\", _hoisted_29, [\n _createElementVNode(\"div\", {\n style: {\"will-change\":\"transform, opacity\"},\n onMousedown: ($event: any) => (onMousedownPageSection(pageSection._GUID)),\n onMouseenter: ($event: any) => (setPageSectionHovered(pageSection._GUID)),\n onMouseleave: _cache[0] || (_cache[0] = ($event: any) => (setPageSectionHovered(''))),\n onClick: _withModifiers(($event: any) => (clickPageSection($event,pageColumn,pageColumnIndex,pageSection._GUID,headerSection._GUID)), [\"stop\",\"prevent\"]),\n class: _normalizeClass([\"no-overflow\", {\r\n 'no-animation':(_unref(UIS).ifLockingPageUI),\r\n }]),\n id: 'divPageSection_'+pageColumnIndex+'_'+pageSection._GUID\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"no-overflow\", {\r\n 'uk-clearfix':headerSection.layoutCode==_unref(TYPE_LAYOUT_CODE).DEFAULT,\r\n 'padding10':(pageSection.sectionType!=_unref(TYPE_SECTION).HEADER) && (!pageSection._layoutStyleObject?.isOneLineTitle),\r\n }]),\n \"v-if\": pageSection._GUID\n }, [\n _withDirectives(_createElementVNode(\"div\", _hoisted_32, [\n _createVNode(_component_PageSectionElement, {\n class: \"no-select\",\n cardThemeClass: \r\n (pageSection._isStarred?\r\n (_unref(UIS).currentPageData?.playOptions?.defaultThemeName):'')\r\n || 'card-theme-default'\r\n,\n sectionCardStyle: 'text-align:left;',\n pageSection: pageSection,\n isSelected: (pageColumn.currentSelectedPageSectionGUID==pageSection._GUID),\n isBackFaceMode: false,\n isEditingMode: false,\n isNarrowMode: getCSSColCount(pageSectionPartID,viewingSectionParts[pageSectionPartID]?.length)>1,\n isMiniMode: pageSectionPartID==4,\n onClickDiveIntoPageSection: ($event: any) => (clickDiveIntoPageSection($event,pageColumn,pageColumnIndex,pageSection._GUID,headerSection)),\n onClickPreviewPageSection: ($event: any) => (clickPreviewPageSection($event,pageSection)),\n onDragStartPageSection: ($event: any) => (clickPageSection($event,pageColumn,pageColumnIndex,pageSection._GUID,headerSection._GUID))\n }, null, 8, [\"cardThemeClass\", \"pageSection\", \"isSelected\", \"isNarrowMode\", \"isMiniMode\", \"onClickDiveIntoPageSection\", \"onClickPreviewPageSection\", \"onDragStartPageSection\"])\n ], 512), [\n [_vShow, !_unref(UIS).ifLockingPageUI]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_33, [\n _createElementVNode(\"div\", _hoisted_34, _toDisplayString(pageSection.sectionTitle), 1),\n _createElementVNode(\"div\", _hoisted_35, _toDisplayString(pageSection.sectionBodyTextLess), 1)\n ], 512), [\n [_vShow, _unref(UIS).ifLockingPageUI]\n ])\n ], 10, _hoisted_31)\n ], 42, _hoisted_30)\n ])\n ], 6)\n ]))\n }), 128))\n ], 4)\n ])\n ])\n }), 64)),\n (_unref(UIS).ifLockingPageUI)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_36, [\n _createVNode(_component_el_skeleton, {\n rows: 5,\n animated: \"\"\n })\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ], 6)), [\n [_vShow, checkIfHeaderNeedToExtend(pageColumn,headerSection)]\n ])\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n _cache[6] || (_cache[6] = _createElementVNode(\"div\", {\n class: \"inline-block width100\",\n style: {\"height\":\"calc(15% + 40px)\",\"max-height\":\"400px\"}\n }, null, -1))\n ])\n ], 10, _hoisted_4)\n ], 44, _hoisted_3)), [\n [_vShow, (pageColumnIndex==(_unref(PageColumns).length-1))]\n ])\n }), 128))\n ], 512), [\n [_vShow, currentUserContentPage.value && (!_unref(UIS).ifHideResult4Refreshing)]\n ])\n ], 4)\n ]))\n}\n}\n\n})","import script from \"./divResultPages.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./divResultPages.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, withModifiers as _withModifiers, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, vShow as _vShow, withDirectives as _withDirectives } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"absolute-max\"\n}\nconst _hoisted_2 = {\n key: 0,\n class: \"ca no-select\",\n style: {\"position\":\"absolute\",\"top\":\"64px\",\"left\":\"5px\",\"bottom\":\"5px\",\"right\":\"5px\"}\n}\nconst _hoisted_3 = { class: \"text-primary-gradient\" }\nconst _hoisted_4 = { class: \"ca uk-clearfix\" }\nconst _hoisted_5 = {\n key: 1,\n class: \"no-select uk-animation-fast uk-animation-fade width100 ca\",\n style: {\"position\":\"absolute\",\"top\":\"64px\",\"left\":\"5px\",\"bottom\":\"5px\",\"right\":\"5px\"}\n}\nconst _hoisted_6 = { class: \"padding10 margin10\" }\nconst _hoisted_7 = { class: \"uk-clearfix ca margin10\" }\nconst _hoisted_8 = { class: \"ca uk-clearfix\" }\nconst _hoisted_9 = { class: \"opacity30 bold\" }\nconst _hoisted_10 = { class: \"uk-clearfix ca\" }\nconst _hoisted_11 = { class: \"uk-clearfix ca\" }\nconst _hoisted_12 = { class: \"ca uk-clearfix margin10\" }\nconst _hoisted_13 = { class: \"text14 text-black-30\" }\n\nimport HeaderSectionMenu from \"@/codes/_40.view/menu/HeaderSectionMenu.vue\";\r\nimport {TYPE_AI_ACTION, TYPE_EVENT, TYPE_INDEX_SIDEBAR, TYPE_INPUT_COMMAND} from \"@/codes/_20.def/_modDataDict\";\r\n\r\n\r\n//@TS-NOCHECK\r\nimport {IFC_AIPrompt_Provider, IFC_UserContentManager} from \"../_20.def/managerIFs\";\r\nimport {IFC_Page_Column} from \"@/codes/_20.def/dataTypes\";\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\n\r\ndeclare var window: any;\r\ndeclare var cwrn: any;\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\n\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\n\r\nconst UIP = window.UIP;\r\n\r\nconst PagColumns: [IFC_Page_Column] = window.PageColumns;\r\n\r\nconst BR = window.CHAR_BR;\r\nconst AppMaster = window.AppMaster;\r\nconst eventLog = [];\r\n\r\ndeclare var nz: any;\r\ndeclare var setInputFocus: any;\r\nlet nzz = nz;\r\n\r\nlet defaultFlagColorStyleArray = UIS.currentUserContentPageTemplate.flagColorStyles;\r\nlet defaultHeaderStyleArray = UIS.currentUserContentPageTemplate.headerStyles;\r\nlet defaultLayoutStyleArray = UIS.currentUserContentPageTemplate.layoutStyleObjects;\r\n\r\nconst __default__ = {\r\n name: 'divEmptyPage',\r\n\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\n\r\nconst clickOpenPageList = function () {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.PAGE_FILE_INDEX;\r\n}\r\n\r\nconst clickNewBlankPage = function () {\r\n UIS.ifLockingPageUI = false;\r\n appUserContentManager.insertBlankPage(\"\", \"\");\r\n}\r\n\r\nconst clickCreateTopics = function () {\r\n window.emitter.emit(TYPE_EVENT.CALL_USER_INPUT_CENTER);\r\n}\r\n\r\nconst clickSeeQuickGuide = function () {\r\n UIS.previewHTML = \"/tutorial/\" + \"QuickStart\" + \".html\";\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SYS_SLIDE_PREVIEW_DIALOG;\r\n}\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (!_unref(UIS).isSharingViewMode)\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n ((!_unref(UIS).currentUserContentPageGUID))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createElementVNode(\"h1\", _hoisted_3, _toDisplayString(_ctx.$t(\"messages.EmptyPage_Title\")), 1),\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", {\n class: \"inline-block margin10 mon-white-button border-silver mon-med-button ccc-color-primary\",\n style: {\"width\":\"240px\"},\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickNewBlankPage()), [\"stop\",\"prevent\"]))\n }, [\n _cache[4] || (_cache[4] = _createElementVNode(\"i\", { class: \"ccc-icon-plus-circle2\" }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"messages.NewDeckEmptyPage\")), 1)\n ]),\n _cache[6] || (_cache[6] = _createElementVNode(\"br\", null, null, -1)),\n _createElementVNode(\"div\", {\n class: \"inline-block margin10 hotLink\",\n onClick: _cache[1] || (_cache[1] = _withModifiers(($event: any) => (clickOpenPageList()), [\"stop\",\"prevent\"]))\n }, [\n _cache[5] || (_cache[5] = _createElementVNode(\"i\", { class: \"ccc-icon-stack-text\" }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"messages.LoadDeck4EmptyPage\")), 1)\n ])\n ])\n ]))\n : ((!_unref(UIS).currentUserContentPageColumnIndex) && !(_unref(UIS).currentPageData?.pageSections?.length))\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", {\n class: \"padding10 content-card uk-animation-fade uk-animation-fast inline-block\",\n style: _normalizeStyle([{\"width\":\"600px\"}, ((_ctx.pageColumnIndex>0)?'':'')])\n }, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"h2\", _hoisted_9, _toDisplayString(_ctx.$t(\"messages.OPIntroStartingNewDeck\")), 1)\n ]),\n _cache[7] || (_cache[7] = _createElementVNode(\"hr\", null, null, -1)),\n _cache[8] || (_cache[8] = _createElementVNode(\"img\", {\n class: \"inline-block rc2 opacity60\",\n style: {\"width\":\"30%\"},\n src: \"/img/op-intro/new-deck.webp\"\n }, null, -1))\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"div\", {\n class: \"mon-empty-button inline-block margin10 hotLink padding10\",\n style: {\"width\":\"200px\"},\n onClick: _cache[2] || (_cache[2] = _withModifiers(($event: any) => (clickCreateTopics()), [\"stop\",\"prevent\"]))\n }, [\n _cache[9] || (_cache[9] = _createElementVNode(\"i\", {\n class: \"ccc-icon-lamp7 margin5-lr img16 ccc-tag-yellow\",\n style: {\"padding-top\":\"0px\"}\n }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Create_Topic\")) + \"   \", 1)\n ]),\n _createElementVNode(\"div\", {\n class: \"mon-empty-button inline-block margin10 hotLink padding10\",\n onClick: _cache[3] || (_cache[3] = _withModifiers(($event: any) => (clickSeeQuickGuide()), [\"stop\",\"prevent\"])),\n style: {\"width\":\"200px\"}\n }, [\n _cache[10] || (_cache[10] = _createElementVNode(\"i\", { class: \"img16 margin5-lr ccc-icon-map5\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"messages.SeeQuickGuide\")) + \"   \", 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_12, [\n _createElementVNode(\"div\", _hoisted_13, _toDisplayString(_ctx.$t(\"messages.OPIntroSeeQuickGuide\")), 1)\n ])\n ])\n ])\n ], 4)\n ], 512)), [\n [_vShow, (!_unref(UIS).isSharingViewMode) && (!_unref(UIS).ifChattingUI) && (!_unref(UIS).ifLockingPageUI)]\n ])\n : _createCommentVNode(\"\", true)\n ], 512)), [\n [_vShow, !_unref(UIS).ifLockingPageUI]\n ])\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./divEmptyPage.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./divEmptyPage.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, withModifiers as _withModifiers, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, normalizeClass as _normalizeClass } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"ca uk-clearfix no-overflow text12B no-select uk-animation-fast uk-animation-slide-top\",\n style: {\"font-weight\":\"normal\"}\n}\nconst _hoisted_2 = {\n key: 0,\n class: \"inline-block text-white-60 text12B margin5\"\n}\nconst _hoisted_3 = {\n key: 1,\n class: \"uk-clearfix\"\n}\nconst _hoisted_4 = {\n class: \"inline-block text-white-60 text12B margin5 no-wrap ellipsis no-overflow\",\n style: {\"max-width\":\"calc(40px)\"}\n}\nconst _hoisted_5 = [\"src\"]\nconst _hoisted_6 = {\n class: \"inline-block text-white-60 text12B margin5 no-wrap ellipsis no-overflow\",\n style: {\"max-width\":\"calc(100% - 80px)\"}\n}\nconst _hoisted_7 = {\n class: \"ca uk-clearfix no-overflow text12B no-select uk-animation-fast uk-animation-slide-bottom\",\n style: {\"font-weight\":\"normal\"}\n}\nconst _hoisted_8 = { key: 0 }\nconst _hoisted_9 = { key: 1 }\nconst _hoisted_10 = [\"title\", \"onClick\"]\n\nimport {\r\n TYPE_EVENT, TYPE_FILTER_CODE,\r\n TYPE_INDEX_SIDEBAR,\r\n TYPE_INSERT_OBJECT,\r\n TYPE_LAYOUT_CODE, TYPE_PROP,\r\n\r\n} from \"@/codes/_20.def/_modDataDict\";\r\nimport {defineEmits, defineProps} from \"vue/dist/vue\";\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\nimport {SYSS} from \"@/codes/_10.sys/A0Committee\";\r\nimport {ElNotification} from 'element-plus'\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\nimport {GUID_TYPE, IFC_Page_Data} from \"@/codes/_20.def/dataTypes\";\r\n\r\n\r\nimport {\r\n IFC_AIManager,\r\n IFC_PageTemplateManager,\r\n IFC_SERPManager,\r\n IFC_UserContentManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {IFC_Page_Column, IFC_Page_Section} from \"@/codes/_20.def/dataTypes\";\r\nimport {TYPE_SECTION} from \"@/codes/_20.def/_modDataDict\";\r\nimport {computed} from \"vue\";\r\n\r\ndeclare var window: any;\r\ndeclare var chance: any;\r\ndeclare var nz: any;\r\n\r\ndeclare var cerr: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var setInputFocus: any;\r\ndeclare var clearSelection: any;\r\n\r\nvar appAIManager: IFC_AIManager = window.appAIManager;\r\nvar appPageTemplateManager: IFC_PageTemplateManager = window.appPageTemplateManager;\r\nvar appSERPManager: IFC_SERPManager = window.appSERPManager;\r\n\r\n\r\nlet getFavIconURL = appSERPManager.getFavIconURL;\r\n\r\nconst __default__ = {\r\n computed: {},\r\n\r\n\r\n methods: {},\r\n name: \"SectionContextMenu\",\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n props: {\n inputText: {},\n pageSection: {},\n selectionMenu: {}\n },\n emits: [\"clickDiveIntoPageSection\"],\n setup(__props: any, { emit: __emit }) {\n\r\n\r\nconst emit = __emit;\r\n\r\n// Define props using defineProps\r\nconst props = __props\r\n\r\nconst selectionType = computed(() => {\r\n let zSelectedText = props.inputText\r\n if (!zSelectedText) return \"\"\r\n\r\n let zSelectedTextLow = zSelectedText.toLowerCase()\r\n if (zSelectedTextLow.startsWith(\"https://\") || zSelectedTextLow.startsWith(\"http://\")) {\r\n return \"URL\"\r\n } else if (zSelectedText === props.pageSection?.sectionTitle) {\r\n return \"section\"\r\n }\r\n\r\n return \"txt\"\r\n});\r\n\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\n\r\nlet defaultFlagColorStyleArray = UIS.currentUserContentPageTemplate.flagColorStyles;\r\nlet defaultHeaderStyleArray = UIS.currentUserContentPageTemplate.headerStyles;\r\nlet defaultLayoutStyleArray = UIS.currentUserContentPageTemplate.layoutStyleObjects;\r\n\r\nlet nzz = nz;\r\n\r\n\r\nconst clickClearSelection = function (xSelectionMenu: any) {\r\n clearSelection();\r\n UIS.selectedTextContent = \"\";\r\n if (xSelectionMenu) {\r\n setTimeout(function () {\r\n xSelectionMenu.ifShow = false;\r\n }, 300);\r\n\r\n }\r\n}\r\n\r\nconst clickConvert2Topic = function (xText: string, xSelectionMenu: any) {\r\n let zText = xText;\r\n if (xSelectionMenu) {\r\n setTimeout(function () {\r\n xSelectionMenu.ifShow = false;\r\n UIS.selectedTextContent = zText;\r\n cerr(\"*cnvt\", zText)\r\n window.emitter.emit(TYPE_EVENT.CALL_USER_INPUT_CENTER_BREAK_DOWN);\r\n }, 300);\r\n }\r\n\r\n}\r\n\r\nconst clickSummarizeURL = function (xURL: string, xSelectionMenu: any) {\r\n let zURL = xURL;\r\n if (xSelectionMenu) {\r\n setTimeout(function () {\r\n xSelectionMenu.ifShow = false;\r\n UIS.selectedTextContent = zURL;\r\n cerr(\"*cnvt\", zURL)\r\n window.emitter.emit(TYPE_EVENT.CALL_USER_INPUT_CENTER_SUMMARIZE);\r\n }, 300);\r\n }\r\n\r\n}\r\n\r\nconst getTargetTextStrings4t4SelectionMenu = function (xPageSection: IFC_Page_Section, xSelectedTextContent: string) {\r\n function extractBoldText(markdownText?: string) {\r\n if (!markdownText) return [];\r\n // Regular expression to match text between ** ** pairs\r\n const boldRegex = /\\*\\*(.*?)\\*\\*/g;\r\n\r\n // Array to store matched bold text\r\n const matches = [];\r\n\r\n // Find all matches and add them to the array\r\n let match;\r\n while ((match = boldRegex.exec(markdownText)) !== null) {\r\n matches.push(match[1]);\r\n }\r\n\r\n return matches;\r\n }\r\n\r\n let zResStrings = [];\r\n if (xPageSection?.sectionTitle) {\r\n zResStrings.push(xPageSection?.sectionTitle);\r\n }\r\n let zBoldStrings = extractBoldText(xPageSection?.sectionBodyText);\r\n if (zBoldStrings.length) {\r\n zResStrings = _.union(zResStrings, zBoldStrings);\r\n }\r\n if (xSelectedTextContent && (!_.includes(zResStrings, xSelectedTextContent))) {\r\n zResStrings.unshift(xSelectedTextContent);\r\n }\r\n return zResStrings;\r\n}\r\n\r\nconst clickGotoWebsite = function (xURL: string) {\r\n if (xURL && xURL.indexOf(\"//\") > -1) {\r\n window.open(xURL, \"_blank\");\r\n }\r\n}\r\n\r\nconst clickCopyText = function (xText2Copy: string) {\r\n if (xText2Copy) {\r\n appUserContentManager.copyText2Clipboard(xText2Copy);\r\n }\r\n}\r\n\r\nconst clickAddSelectionToMemo = function (xPageSectionGUID: GUID_TYPE, xSelectionMenu: any) {\r\n if (xSelectionMenu) xSelectionMenu.ifShow = false;\r\n if (UIS.selectedTextContent && xPageSectionGUID) {\r\n let zPageSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, xPageSectionGUID);\r\n if (!zPageSection) return;\r\n zPageSection.sectionMemo = nz(zPageSection.sectionMemo, \"\");\r\n let zMemoString = zPageSection.sectionMemo + \"\\n\\n\" + UIS.selectedTextContent;\r\n\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*mmm\", zMemoString)\r\n\r\n\r\n appUserContentManager.updatePageSection(\"\", xPageSectionGUID,\r\n {\r\n sectionMemo: zMemoString\r\n });\r\n appUserContentManager.updateMultiPageSectionStars(\"\", [xPageSectionGUID],\r\n true);\r\n\r\n clearSelection()\r\n }\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", {\n class: \"no-wrap no-overflow text-white-30\",\n style: {\"position\":\"absolute\",\"right\":\"6px\",\"top\":\"6px\",\"z-index\":\"299\"},\n onClick: _withModifiers(($event: any) => (1==1), [\"stop\",\"prevent\"])\n }, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLinkLight\",\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickClearSelection(_ctx.selectionMenu)), [\"stop\",\"prevent\"]))\n }, _cache[4] || (_cache[4] = [\n _createElementVNode(\"i\", {\n class: \"rt text12 ccc-icon-cross2 img16 margin5-lr\",\n style: {\"margin-top\":\"5px\"}\n }, null, -1)\n ]))\n ]),\n _createElementVNode(\"div\", _hoisted_1, [\n (selectionType.value!='URL')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _cache[5] || (_cache[5] = _createElementVNode(\"i\", { class: \"ccc-icon-lamp7 ccc-tag-yellow img16 margin5-lr\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"messages.selectKeyword4NewTopic\")), 1)\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"img\", {\n src: _unref(getFavIconURL)(_ctx.inputText),\n class: \"img32 rc99 img-border margin5-lr background-white-30\",\n style: {}\n }, null, 8, _hoisted_5)\n ]),\n _createElementVNode(\"div\", _hoisted_6, _toDisplayString(_ctx.inputText), 1)\n ]))\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n (selectionType.value=='URL')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", {\n class: \"margin5 text12B inline-block rc99 hotLinkLight text-white no-overflow ellipsis no-wrap mon-button-selected\",\n style: {\"padding\":\"9px 24px 9px 24px\",\"max-width\":\"160px\"},\n onClick: _cache[1] || (_cache[1] = _withModifiers(($event: any) => (clickSummarizeURL(_ctx.inputText,_ctx.selectionMenu)), [\"stop\",\"prevent\"]))\n }, [\n _cache[6] || (_cache[6] = _createElementVNode(\"i\", { class: \"ccc-icon-sphere img16 margin5-lr\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"messages.SummarizeThisURL\")), 1)\n ]),\n _createElementVNode(\"div\", {\n class: \"margin5 text12B inline-block rc99 hotLinkLight text-white no-overflow ellipsis no-wrap mon-button-unselected\",\n style: {\"padding\":\"9px 24px 9px 24px\",\"max-width\":\"160px\"},\n onClick: _cache[2] || (_cache[2] = _withModifiers(($event: any) => (clickGotoWebsite(_ctx.inputText)), [\"stop\",\"prevent\"]))\n }, [\n _cache[7] || (_cache[7] = _createElementVNode(\"i\", { class: \"ccc-icon-new-tab img16 margin5-lr\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"messages.OpenLinkInNewTab\")), 1)\n ]),\n _createElementVNode(\"div\", {\n class: \"margin5 text12B inline-block rc99 hotLinkLight text-white no-overflow ellipsis no-wrap mon-button-unselected\",\n style: {\"padding\":\"9px 12px 9px 12px\",\"max-width\":\"60px\"},\n onClick: _cache[3] || (_cache[3] = _withModifiers(($event: any) => (clickCopyText(_ctx.inputText)), [\"stop\",\"prevent\"]))\n }, _cache[8] || (_cache[8] = [\n _createElementVNode(\"i\", { class: \"ccc-icon-paste img16\" }, null, -1)\n ]))\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_9, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(getTargetTextStrings4t4SelectionMenu(_ctx.pageSection,_ctx.inputText), (targetText4SelectionMenu, textIndex) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: targetText4SelectionMenu+textIndex,\n class: \"inline-block\"\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"margin5 text12B inline-block rc99 hotLinkLight text-white no-overflow ellipsis no-wrap\", (_unref(UIS).selectedTextContent==targetText4SelectionMenu)?'mon-button-selected':'mon-button-unselected']),\n title: targetText4SelectionMenu,\n style: {\"padding\":\"9px 24px 9px 24px\",\"max-width\":\"160px\"},\n onClick: _withModifiers(($event: any) => (clickConvert2Topic(targetText4SelectionMenu,_ctx.selectionMenu)), [\"stop\",\"prevent\"])\n }, _toDisplayString(targetText4SelectionMenu), 11, _hoisted_10)\n ]))\n }), 128))\n ]))\n ]),\n _cache[9] || (_cache[9] = _createElementVNode(\"div\", {\n class: \"ca uk-clearfix no-overflow text12B no-select uk-animation-fast uk-animation-slide-top\",\n style: {\"font-weight\":\"normal\"}\n }, [\n _createElementVNode(\"div\", { class: \"lt no-overflow margin5-lr\" })\n ], -1))\n ], 64))\n}\n}\n\n})","import script from \"./SectionContextMenu.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./SectionContextMenu.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, vShow as _vShow, withDirectives as _withDirectives, withModifiers as _withModifiers, createVNode as _createVNode, normalizeStyle as _normalizeStyle } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"\",\n style: {}\n}\nconst _hoisted_2 = {\n key: 0,\n class: \"height100\"\n}\nconst _hoisted_3 = [\"title\"]\nconst _hoisted_4 = [\"id\"]\nconst _hoisted_5 = { class: \"no-overflow\" }\nconst _hoisted_6 = {\n key: 0,\n class: \"uk-clearfix\",\n style: {\"line-height\":\"20px\",\"font-weight\":\"normal\"}\n}\nconst _hoisted_7 = {\n key: 0,\n class: \"lt no-overflow no-wrap text12B\",\n style: {\"width\":\"calc(100% - 96px)\"}\n}\nconst _hoisted_8 = [\"onClick\"]\nconst _hoisted_9 = [\"src\"]\nconst _hoisted_10 = [\"title\", \"onClick\"]\nconst _hoisted_11 = { class: \"rt margin5-lr\" }\nconst _hoisted_12 = [\"title\"]\nconst _hoisted_13 = {\n key: 0,\n class: \"hotLink text14 rc99 ca text-black-30 img32\"\n}\nconst _hoisted_14 = {\n key: 1,\n class: \"hotLink text14 rc99 ca img32\"\n}\nconst _hoisted_15 = [\"title\"]\nconst _hoisted_16 = {\n class: \"lt text12B ca\",\n style: {\"font-weight\":\"normal\"}\n}\nconst _hoisted_17 = {\n key: 1,\n class: \"inline-block uk-animation-fast uk-animation-fade\",\n style: {\"padding-top\":\"6px\"}\n}\nconst _hoisted_18 = {\n key: 0,\n class: \"rt hotLink\"\n}\nconst _hoisted_19 = [\"title\"]\nconst _hoisted_20 = { class: \"inline-block hotLink\" }\nconst _hoisted_21 = { class: \"inline-block\" }\nconst _hoisted_22 = {\n key: 0,\n class: \"inline-block margin5-lr\"\n}\nconst _hoisted_23 = [\"title\"]\nconst _hoisted_24 = { class: \"inline-block\" }\nconst _hoisted_25 = { class: \"inline-block hotLink\" }\nconst _hoisted_26 = {\n key: 0,\n class: \"inline-block margin5-lr\"\n}\nconst _hoisted_27 = [\"title\"]\nconst _hoisted_28 = { class: \"inline-block\" }\nconst _hoisted_29 = { class: \"inline-block hotLink\" }\nconst _hoisted_30 = {\n key: 0,\n class: \"inline-block margin5-lr\"\n}\nconst _hoisted_31 = {\n key: 2,\n class: \"rt margin5-lr text-black-60 opacity20 text14\",\n style: {}\n}\nconst _hoisted_32 = {\n class: \"rt margin5-lr text-black-60 uk-animation-fast uk-animation-slide-bottom\",\n style: {\"padding-top\":\"5px\"}\n}\nconst _hoisted_33 = { class: \"inline-block\" }\nconst _hoisted_34 = [\"title\"]\nconst _hoisted_35 = {\n key: 0,\n class: \"inline-block margin5-lr ccc-color-primary\"\n}\nconst _hoisted_36 = [\"title\"]\nconst _hoisted_37 = {\n key: 0,\n class: \"inline-block margin5-lr\"\n}\nconst _hoisted_38 = {\n class: \"no-select mon-black-active-back rc2 border-silver text12B padding10 text-white uk-animation-slide-bottom uk-animation-fast ca\",\n style: {\"position\":\"absolute\",\"top\":\"0px\",\"left\":\"calc(0px)\",\"right\":\"calc(0px)\"}\n}\nconst _hoisted_39 = { class: \"can-select slide-title\" }\nconst _hoisted_40 = { class: \"inline-block text24\" }\nconst _hoisted_41 = {\n class: \"inline-block\",\n style: {\"margin-top\":\"20px\",\"margin-left\":\"18px\",\"margin-right\":\"18px\"}\n}\nconst _hoisted_42 = [\"innerHTML\"]\nconst _hoisted_43 = {\n key: 0,\n class: \"uk-clearfix no-overflow rc2 uk-flex-center uk-flex margin10-lr\",\n style: {\"padding-bottom\":\"25px\",\"max-height\":\"500px\"}\n}\nconst _hoisted_44 = {\n key: 0,\n class: \"lt rc2 padding5\",\n style: {\"max-width\":\"60%\"}\n}\nconst _hoisted_45 = [\"src\"]\nconst _hoisted_46 = {\n key: 2,\n class: \"uk-clearfix height100 no-overflow la\",\n style: {\"margin-bottom\":\"20px\"}\n}\nconst _hoisted_47 = { class: \"uk-clearfix\" }\nconst _hoisted_48 = {\n class: \"lt no-overflow no-wrap text12B text-black-30\",\n style: {}\n}\nconst _hoisted_49 = {\n key: 3,\n class: \"\",\n style: {}\n}\nconst _hoisted_50 = {\n class: \"uk-clearfix text-black-60 can-select text12B\",\n style: {\"margin-top\":\"10px\",\"margin-right\":\"0px\",\"font-weight\":\"normal\"}\n}\nconst _hoisted_51 = [\"innerHTML\"]\n\nimport {reactive} from \"vue\";\r\nimport {\r\n TYPE_EVENT,\r\n TYPE_FILTER_CODE,\r\n TYPE_INDEX_SIDEBAR,\r\n TYPE_LAYOUT_CODE,\r\n TYPE_NOTE_SOURCE, TYPE_PROP, TYPE_SECTION\r\n} from \"@/codes/_20.def/_modDataDict\";\r\nimport {LangSettings} from \"@/codes/_90.lang/langUtils\";\r\nimport {GUID_TYPE, IFC_Page_Column} from \"@/codes/_20.def/dataTypes\";\r\nimport {SYSS} from \"@/codes/_10.sys/A0Committee\";\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\nimport {pa} from \"element-plus/es/locale\";\r\nimport SectionContextMenu from \"@/codes/_40.view/menu/SectionContextMenu.vue\";\r\n\r\n// eslint-disable-next-line no-undef\r\n\r\nimport {\r\n IFC_AIManager,\r\n IFC_PageTemplateManager,\r\n IFC_SERPManager,\r\n IFC_SharingManager,\r\n IFC_UserContentManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {IFC_Page_Section} from \"@/codes/_20.def/dataTypes\";\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\n\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var cerr: any;\r\n\r\ndeclare var assignArray: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var setInputFocus: any;\r\ndeclare var clearSelection: any;\r\ndeclare var getSelectedText: any;\r\n\r\ndeclare var appAIManager: IFC_AIManager;\r\ndeclare var appPageTemplateManager: IFC_PageTemplateManager;\r\ndeclare var appUserContentManager: IFC_UserContentManager;\r\ndeclare var appSERPManager: IFC_SERPManager;\r\ndeclare var appSharingManager: IFC_SharingManager;\r\n\r\nconst __default__ = {\r\n computed: {},\r\n\r\n props: {\r\n pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true\r\n },\r\n cardThemeClass: String,\r\n isEditingMode: Boolean,\r\n isNarrowMode: Boolean,\r\n isMiniMode: Boolean,\r\n isSelected: Boolean,\r\n isReadOnly: Boolean,\r\n isBackFaceMode: Boolean,\r\n sectionCardStyle: String,\r\n },\r\n methods: {},\r\n name: \"PageSectionElement\",\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n emits: [\"clickContinueWriting\", \"clickContinueListing\", \"clickDiveIntoPageSection\", \"clickPreviewPageSection\", \"dragStartPageSection\"],\n setup(__props, { emit: __emit }) {\n\r\nlet getFavIconURL = appSERPManager.getFavIconURL;\r\n\r\nconst emit = __emit;\r\n\r\nvar editingPageSection: IFC_Page_Section = appUserContentManager.editingPageSection;\r\n\r\nlet getSectionFlagColorStyle = appUserContentManager.getSectionFlagColorStyle;\r\nlet getSectionHeaderStyle = appUserContentManager.getSectionHeaderStyle;\r\n\r\nconst getHostName = appSERPManager.getHostName;\r\n\r\nconst getMixedContentStringWeighedLength = appUserContentManager.getMixedContentStringWeighedLength;\r\n\r\nconst getSubPageSectionCount = function (xPageSection: IFC_Page_Section): number {\r\n /*let zSubPageSections: [IFC_Page_Section?] = appUserContentManager.getSectionListByParentSectionGUID(UIS.currentUserContentPageGUID, xPageSection._GUID);\r\n if (zSubPageSections && zSubPageSections.length) {\r\n return zSubPageSections.length;\r\n }*/\r\n return nz(xPageSection._subCount, 0);\r\n}\r\n\r\n\r\nconst getLinkArray = function (xAllLinkString?: string) {\r\n if (!xAllLinkString) return [];\r\n let zLinks = xAllLinkString.split(\"\\n\");\r\n let zResLinks: string[] = [];\r\n _.each(zLinks, function (xLink: string) {\r\n let zLink = xLink.trim();\r\n if (zLink) zResLinks.push(zLink);\r\n })\r\n return zResLinks;\r\n}\r\n\r\nlet selectionMenu = reactive({\r\n ifMouseDown: false,\r\n ifShow: false,\r\n left: 0,\r\n top: 0,\r\n});\r\n\r\nconst clickContinueWriting = function () {\r\n emit(\"clickContinueWriting\");\r\n}\r\n\r\nconst clickContinueListing = function () {\r\n emit(\"clickContinueListing\");\r\n}\r\n\r\n/*const clickPreview = function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection) {\r\n let zThemeName = UIS.currentPageData?.playOptions?.defaultThemeName;\r\n zThemeName = nz(zThemeName, \"black\");\r\n appSharingManager.playSlides(zThemeName, xPageSection._GUID, {isPreview: true});\r\n }\r\n}*/\r\n\r\nconst clickEditImage = function (xTargetPageSection: IFC_Page_Section, xKeywordsString?: string) {\r\n\r\n if (!xTargetPageSection) return;\r\n\r\n /*appUserContentManager.resetPageColumn(xPageContentTable);\r\n appUserContentManager.extendPageColumn(UIS.currentUserContentPageColumnIndex, xTargetPageSectionGUID);*/\r\n if (UIS.isSharingViewMode) {\r\n //\r\n } else {\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*clk EN\",xTargetPageSection)\r\n UIS.selectedTextContent = nz(xKeywordsString, \"\");\r\n appUserContentManager.startEditingPageSection(xTargetPageSection, TYPE_INDEX_SIDEBAR.PAGE_SECTION_IMAGE_EDITOR);\r\n\r\n }\r\n\r\n}\r\n\r\nconst clickRemovePageSection = function (xEvent: any, xTargetPageSection: IFC_Page_Section, xIsBackFaceMode?: boolean) {\r\n if (!xTargetPageSection) return;\r\n if (!xTargetPageSection._GUID) return;\r\n\r\n if (confirm(i18n.global.t(\"messages.Confirm2Remove_Section_Only\")\r\n + \"\\n\" + \"\\n\" + nz(xTargetPageSection.sectionTitle, \"\"))) {\r\n if (xIsBackFaceMode) {\r\n UIS.ifGoBackAnimation = true;\r\n appUserContentManager.resetPageColumn(UIS.currentUserContentPageColumnIndex - 1);\r\n }\r\n appUserContentManager.removeSections(UIS.currentUserContentPageGUID, [xTargetPageSection._GUID]);\r\n let zPageColumn: IFC_Page_Column = window.PageColumns[UIS.currentUserContentPageColumnIndex];\r\n if (zPageColumn) {\r\n zPageColumn.currentSelectedPageSectionGUID = nz(zPageColumn.currentSelectedHeaderPageSectionGUID, \"\");\r\n }\r\n }\r\n}\r\n\r\n\r\nconst clickEditPageSection = function (xTargetPageSection: IFC_Page_Section) {\r\n if (UIS.isSharingViewMode) {\r\n //\r\n } else {\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*clk EN\",xTargetPageSection)\r\n appUserContentManager.startEditingPageSection(xTargetPageSection, TYPE_INDEX_SIDEBAR.PAGE_SECTION_TEXT_EDITOR);\r\n\r\n }\r\n}\r\n\r\nconst clickToggleStarPageSection = function (xPageSection: IFC_Page_Section) {\r\n\r\n if (xPageSection?._GUID) {\r\n appUserContentManager.updateMultiPageSectionStars(\r\n UIS.currentUserContentPageGUID,\r\n [xPageSection._GUID],\r\n !(xPageSection._isStarred),\r\n true\r\n );\r\n\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, xPageSection._GUID, xPageSection._headerSectionGUID);\r\n setTimeout(function () {\r\n appUserContentManager.scrollPageTo(xPageSection._GUID, \"center\");\r\n }, 400);\r\n }\r\n\r\n}\r\n\r\nconst clickGotoWebsiteMenu = function (xRefLink: string) {\r\n if (!xRefLink) return;\r\n // window.open(xRefLink, '_blank').focus();\r\n setTimeout(\r\n function () {\r\n UIS.selectedTextContent = xRefLink;\r\n selectionMenu.ifShow = true;\r\n }, 100\r\n );\r\n}\r\n\r\nconst clickTranslate = function (xPageSection: IFC_Page_Section) {\r\n appUserContentManager.translatePageSectionsByGUIDs([xPageSection._GUID]);\r\n}\r\nconst clickCancelTranslation = function (xPageSection: IFC_Page_Section) {\r\n appUserContentManager.updatePageSection(UIS.currentUserContentPageGUID, xPageSection._GUID,\r\n {\r\n sectionTranslatedText: \"\",\r\n _cacheTranslatedHTML: \"\",\r\n }\r\n )\r\n}\r\n\r\n\r\nconst onMousedown = function (xEvent: any) {\r\n cerr(\"*msdonw\", UIS.selectedTextContent);\r\n selectionMenu.ifMouseDown = true;\r\n}\r\n\r\nconst clickNoteCard = function (xEvent: any) {\r\n // eslint-disable-next-line no-undef\r\n // let zSelectedText = nz(getSelectedText(), \"\").trim();\r\n // UIS.selectedTextContent = zSelectedText;\r\n // cerr(\"*evt msup\",xEvent);\r\n /*if (zSelectedText && (zSelectedText.trim().length >= 2)) {\r\n if (selectionMenu.ifMouseDown) {\r\n setTimeout(function () {\r\n selectionMenu.ifShow = true;\r\n }, 200);\r\n\r\n }\r\n }*/\r\n}\r\n\r\nconst clickShowSelectionMenu = function (xTargetSlectionText: string) {\r\n\r\n let zSelectedText = nz(getSelectedText(), \"\").trim();\r\n UIS.selectedTextContent = nz(zSelectedText, xTargetSlectionText);\r\n if (UIS.selectedTextContent) {\r\n selectionMenu.ifShow = true;\r\n }\r\n}\r\n\r\nconst clickConvert2Topic = function (xText: string) {\r\n UIS.selectedTextContent = xText;\r\n window.emitter.emit(TYPE_EVENT.CALL_USER_INPUT_CENTER_BREAK_DOWN);\r\n}\r\n\r\n\r\nconst onDragSectionElementStart = function (xEvent: any, xPageSection: IFC_Page_Section) {\r\n UIS.currentDraggingPageSection = xPageSection;\r\n xEvent.dataTransfer.setDragImage(UIS.sectionDraggingImg, 10, 10);\r\n}\r\n\r\nconst onDragSectionElementEnd = function (xEvent: any, xPageSection: IFC_Page_Section) {\r\n UIS.currentDraggingPageSection = undefined;\r\n UIS.currentDragOverStarredItemGUID = \"\";\r\n}\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (__props.pageSection)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (!__props.isEditingMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n (!__props.pageSection._isClueSection)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"margin5-lr draggable ca rc99 opacity30\", {'background-black-10':__props.isSelected}]),\n style: {\"position\":\"absolute\",\"top\":\"4px\",\"right\":\"20%\",\"left\":\"20%\",\"height\":\"4px\",\"border\":\"1px solid transparent\"},\n title: _ctx.$t('tooltips.dragMoveSlide'),\n draggable: \"true\",\n onDragstart: _cache[0] || (_cache[0] = ($event: any) => (onDragSectionElementStart($event,__props.pageSection), _ctx.$emit('dragStartPageSection'))),\n onDragend: _cache[1] || (_cache[1] = ($event: any) => (onDragSectionElementEnd($event,__props.pageSection)))\n }, null, 42, _hoisted_3))\n : _createCommentVNode(\"\", true),\n (__props.pageSection.sectionType==_unref(TYPE_SECTION).NOTE_CARD)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 1,\n class: _normalizeClass([\"height100 no-overflow\", __props.cardThemeClass]),\n id: 'divPageSectionCard'+__props.pageSection._GUID,\n style: _normalizeStyle(\r\n (__props.isBackFaceMode?'margin-top:0px;margin-bottom:0px;min-height:240px;':'margin-top:0px;max-height: 1200px;')\r\n + __props.sectionCardStyle+';'),\n onMousedown: _cache[10] || (_cache[10] = ($event: any) => (onMousedown($event))),\n onClick: _cache[11] || (_cache[11] = ($event: any) => (clickNoteCard($event)))\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"no-overflow ellipsis uk-animation-fast\", {\r\n 'can-select rc4':__props.isBackFaceMode\r\n }]),\n style: {\"width\":\"calc(100%)\",\"height\":\"calc(100%)\"}\n }, [\n _createElementVNode(\"div\", _hoisted_5, [\n ((!__props.isMiniMode) && (!__props.pageSection._isClueSection))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n (__props.pageSection.refLinkAllString)\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(getLinkArray(__props.pageSection.refLinkAllString), (eachRefLink, linkIndex) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"inline-block no-wrap no-overflow clickable hotLink\",\n style: {\"margin-top\":\"5px\"},\n key: linkIndex,\n onClick: ($event: any) => (clickGotoWebsiteMenu(eachRefLink))\n }, [\n _createElementVNode(\"img\", {\n src: _unref(getFavIconURL)(eachRefLink),\n class: \"lt img24 rc99 img-border margin2-lr\",\n style: {\"height\":\"16px\",\"margin-top\":\"4px\"}\n }, null, 8, _hoisted_9),\n eachRefLink\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"inline-block text-black-60 underline-editing text12B margin5-lr\",\n style: {\"height\":\"16px\",\"padding-top\":\"0px\"},\n title: eachRefLink,\n onClick: ($event: any) => (clickGotoWebsiteMenu(eachRefLink))\n }, _toDisplayString(_unref(getHostName)(eachRefLink)), 9, _hoisted_10)), [\n [_vShow, getLinkArray(__props.pageSection.refLinkAllString).length==1]\n ])\n : _createCommentVNode(\"\", true)\n ], 8, _hoisted_8))\n }), 128))\n ], 512)), [\n [_vShow, !__props.isSelected]\n ])\n : _createCommentVNode(\"\", true),\n _withDirectives(_createElementVNode(\"div\", _hoisted_11, [\n ((__props.pageSection.sectionType==_unref(TYPE_SECTION).NOTE_CARD) && (!_unref(UIS).isSharingViewMode))\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"rt bold text-black uk-animation-fast uk-animation-fade no-select text12B\", {\r\n\r\n }]),\n style: {\"z-index\":\"200\",\"padding-top\":\"10px\"},\n onClick: _cache[2] || (_cache[2] = ($event: any) => (clickToggleStarPageSection(__props.pageSection))),\n title: _ctx.$t(__props.pageSection._isStarred?'tooltips.unstarSlide':'tooltips.starSlide')\n }, [\n (!__props.pageSection._isStarred)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_13, _cache[12] || (_cache[12] = [\n _createElementVNode(\"i\", {\n class: \"ccc-icon-star-empty\",\n style: {}\n }, null, -1)\n ])))\n : _createCommentVNode(\"\", true),\n (__props.pageSection._isStarred)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_14, _cache[13] || (_cache[13] = [\n _createElementVNode(\"i\", {\n class: \"ccc-icon-star-full ccc-tag-yellow\",\n style: {}\n }, null, -1)\n ])))\n : _createCommentVNode(\"\", true)\n ], 8, _hoisted_12)), [\n [_vShow, (!__props.isReadOnly) && (!__props.isBackFaceMode)]\n ])\n : _createCommentVNode(\"\", true),\n ((__props.pageSection.sectionType==_unref(TYPE_SECTION).NOTE_CARD))\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 1,\n class: _normalizeClass([\"rt text-black uk-animation-fast uk-animation-fade no-select text12B\", {}]),\n style: {\"z-index\":\"200\",\"padding-top\":\"10px\"},\n onClick: _cache[3] || (_cache[3] = _withModifiers(($event: any) => (_ctx.$emit('clickPreviewPageSection')), [\"stop\",\"prevent\"]))\n }, [\n (!__props.isBackFaceMode)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"hotLink text12B rc99 ca text-black-30 margin10-lr lt\",\n title: _ctx.$t('tooltips.previewSlide')\n }, _cache[14] || (_cache[14] = [\n _createElementVNode(\"i\", {\n class: \"ccc-icon-enlarge\",\n style: {\"font-weight\":\"normal\"}\n }, null, -1)\n ]), 8, _hoisted_15))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ], 512), [\n [_vShow, !__props.pageSection._isClueSection]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_16, [\n ((!__props.isSelected))\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"inline-block text-black-30\"\n }, _toDisplayString(_ctx.$t(\"messages.ClickSuggestion2ConvertTopic\")), 513)), [\n [_vShow, __props.pageSection._isClueSection]\n ])\n : _createCommentVNode(\"\", true),\n (__props.isSelected)\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_17, [\n (!_unref(SYSS).MOD_CODE)\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_18, [\n _createElementVNode(\"div\", {\n class: \"rt margin5-lr text-black-60\",\n style: {\"padding-top\":\"5px\"},\n title: _ctx.$t('tooltips.discardSlide')\n }, [\n _createElementVNode(\"div\", {\n class: \"inline-block\",\n onClick: _cache[4] || (_cache[4] = ($event: any) => (clickRemovePageSection($event,__props.pageSection,__props.isBackFaceMode)))\n }, [\n _createElementVNode(\"div\", _hoisted_20, [\n _createElementVNode(\"div\", _hoisted_21, [\n _cache[15] || (_cache[15] = _createElementVNode(\"i\", {\n class: \"ccc-icon-bin4 margin5-lr img16\",\n style: {\"padding-top\":\"0px\"}\n }, null, -1)),\n (!__props.isNarrowMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_22, _toDisplayString(_ctx.$t(\"Discard\")), 1))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ])\n ], 8, _hoisted_19)\n ], 512)), [\n [_vShow, (!__props.isReadOnly)]\n ])\n : _createCommentVNode(\"\", true),\n _cache[20] || (_cache[20] = _createElementVNode(\"div\", {\n class: \"rt margin5-lr text-black-60 opacity20 text14\",\n style: {}\n }, \"|\", -1)),\n _createElementVNode(\"div\", {\n class: \"rt margin5-lr text-black-60\",\n style: {\"padding-top\":\"5px\"},\n onClick: _cache[5] || (_cache[5] = _withModifiers(($event: any) => (clickEditPageSection(__props.pageSection)), [\"stop\",\"prevent\"])),\n title: _ctx.$t('tooltips.editSlide')\n }, [\n _createElementVNode(\"div\", _hoisted_24, [\n _createElementVNode(\"div\", _hoisted_25, [\n _cache[16] || (_cache[16] = _createElementVNode(\"i\", {\n class: \"ccc-icon-pencil6 margin5-lr img16\",\n style: {\"padding-top\":\"0px\"}\n }, null, -1)),\n (!__props.isNarrowMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_26, _toDisplayString(_ctx.$t(\"Edit\")), 1))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ], 8, _hoisted_23),\n _cache[21] || (_cache[21] = _createElementVNode(\"div\", {\n class: \"rt margin5-lr text-black-60 opacity20 text14\",\n style: {}\n }, \"|\", -1)),\n (!__props.pageSection._isClueSection)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 1,\n class: \"rt margin5-lr text-black-60\",\n style: {\"padding-top\":\"5px\"},\n onClick: _cache[6] || (_cache[6] = _withModifiers(($event: any) => (clickEditImage(__props.pageSection)), [\"stop\",\"prevent\"])),\n title: _ctx.$t('tooltips.updateImageForSlide')\n }, [\n _createElementVNode(\"div\", _hoisted_28, [\n _createElementVNode(\"div\", _hoisted_29, [\n _cache[17] || (_cache[17] = _createElementVNode(\"i\", {\n class: \"ccc-icon-image margin5-lr img16\",\n style: {\"padding-top\":\"0px\"}\n }, null, -1)),\n (!__props.isNarrowMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_30, _toDisplayString(_ctx.$t(\"Image\")), 1))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ], 8, _hoisted_27))\n : _createCommentVNode(\"\", true),\n (!__props.pageSection._isClueSection)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_31, \" | \"))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_32, [\n _createElementVNode(\"div\", _hoisted_33, [\n (__props.pageSection._isClueSection)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"inline-block hotLink\",\n title: _ctx.$t('tooltips.convert2TopicFromPoint'),\n onClick: _cache[7] || (_cache[7] = _withModifiers(($event: any) => (clickConvert2Topic(__props.pageSection.sectionTitle,__props.pageSection)), [\"stop\",\"prevent\"]))\n }, [\n _cache[18] || (_cache[18] = _createElementVNode(\"i\", {\n class: \"ccc-icon-lamp7 margin5-lr img16 ccc-tag-yellow\",\n style: {\"padding-top\":\"0px\"}\n }, null, -1)),\n (!__props.isNarrowMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_35, _toDisplayString(_ctx.$t(\"Convert2Topic\")), 1))\n : _createCommentVNode(\"\", true)\n ], 8, _hoisted_34))\n : _createCommentVNode(\"\", true),\n (!__props.pageSection._isClueSection)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 1,\n class: \"inline-block hotLink\",\n title: _ctx.$t('tooltips.moreTopicsFromSlide'),\n onClick: _cache[8] || (_cache[8] = _withModifiers(($event: any) => (clickShowSelectionMenu(__props.pageSection.sectionTitle)), [\"stop\",\"prevent\"]))\n }, [\n _cache[19] || (_cache[19] = _createElementVNode(\"i\", {\n class: \"ccc-icon-lamp7 margin5-lr img16 ccc-tag-yellow\",\n style: {\"padding-top\":\"0px\"}\n }, null, -1)),\n (!__props.isNarrowMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_37, _toDisplayString(_ctx.$t(\"MoreTopics\")), 1))\n : _createCommentVNode(\"\", true)\n ], 8, _hoisted_36))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ], 512)), [\n [_vShow, !_unref(selectionMenu).ifShow]\n ])\n : _createCommentVNode(\"\", true)\n ], 512), [\n [_vShow, __props.isSelected]\n ])\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"body-back rc2 padding5\", __props.cardThemeClass]),\n style: {\"min-height\":\"100px\"}\n }, [\n (!__props.isMiniMode)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([__props.cardThemeClass, \"uk-clearfix no-overflow slide-card\"]),\n style: {\"z-index\":\"400\",\"max-height\":\"900px\",\"margin\":\"15px\",\"padding\":\"5px 10px 20px 10px\",\"width\":\"calc(100% - 54px)\"}\n }, [\n _createElementVNode(\"div\", null, [\n _withDirectives(_createElementVNode(\"div\", {\n class: \"absolute-max\",\n style: {\"z-index\":\"999\"},\n onClick: _cache[9] || (_cache[9] = ($event: any) => ((_unref(selectionMenu).ifShow=false)))\n }, [\n _createElementVNode(\"div\", _hoisted_38, [\n _createVNode(SectionContextMenu, {\n inputText: _unref(UIS).selectedTextContent,\n pageSection: __props.pageSection,\n selectionMenu: _unref(selectionMenu)\n }, null, 8, [\"inputText\", \"pageSection\", \"selectionMenu\"])\n ])\n ], 512), [\n [_vShow, _unref(selectionMenu).ifShow\r\n && (__props.isSelected)\r\n && (!_unref(UIS).isSharingViewMode)]\n ]),\n _createElementVNode(\"div\", _hoisted_39, [\n _createElementVNode(\"div\", _hoisted_40, [\n _createElementVNode(\"div\", _hoisted_41, _toDisplayString(__props.pageSection.sectionTitle), 1)\n ]),\n (__props.pageSection._layoutStyleObject && (!__props.pageSection._layoutStyleObject?.isTitleOnly) && (!__props.pageSection._layoutStyleObject?.isOneLineTitle) )\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass(__props.cardThemeClass)\n }, [\n _createElementVNode(\"div\", {\n class: \"slide-description text-black-60 can-select slide-content\",\n style: {\"margin-top\":\"10px\",\"margin-left\":\"20px\",\"margin-right\":\"20px\",\"font-weight\":\"normal\",\"font-size\":\"15px\"},\n innerHTML: __props.pageSection._cacheBodyHTML\n }, null, 8, _hoisted_42)\n ], 2)), [\n [_vShow, !__props.isMiniMode]\n ])\n : _createCommentVNode(\"\", true)\n ])\n ]),\n ((__props.pageSection._layoutStyleObject) && (__props.pageSection._layoutStyleObject.isSideCoverImageView) && (__props.pageSection.coverImageURL) && (!_unref(UIS).isMiniScreenMode) && (!__props.isMiniMode))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_43, [\n (__props.pageSection.coverImageURL)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_44, [\n _createElementVNode(\"img\", {\n class: \"ca rc2 img-border\",\n style: {},\n onerror: \"this.style='width:1px;height:1px;opacity:0;';\",\n src: __props.pageSection.coverImageURL\n }, null, 8, _hoisted_45)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ], 2))\n : _createCommentVNode(\"\", true)\n ], 2)\n ])\n ], 2)\n ], 46, _hoisted_4))\n : _createCommentVNode(\"\", true),\n (__props.pageSection.sectionType==_unref(TYPE_SECTION).HEADER)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_46, [\n _createElementVNode(\"div\", _hoisted_47, [\n _createElementVNode(\"div\", _hoisted_48, \" # \" + _toDisplayString(_ctx.$t(\"Group_Header\")), 1)\n ]),\n _createElementVNode(\"div\", {\n style: {},\n class: _normalizeClass([\"rc2 no-overflow border-unselected\", {\r\n }])\n }, [\n ((!__props.isEditingMode) && (__props.pageSection.sectionTitle))\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"inline-block\", {\r\n 'can-select':__props.isBackFaceMode,\r\n }]),\n style: _normalizeStyle(\r\n _unref(getSectionHeaderStyle)(__props.pageSection,'headerStyle')+';'\r\n )\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass({\r\n 'text16 no-wrap no-overflow':((__props.pageSection._layoutStyleObject) && __props.pageSection._layoutStyleObject.isOneLineTitle),\r\n })\n }, _toDisplayString(__props.pageSection.sectionTitle), 3)\n ], 6))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (__props.pageSection.sectionMemo && __props.pageSection._layoutStyleObject && (!__props.pageSection._layoutStyleObject?.isTitleOnly) && (!__props.pageSection._layoutStyleObject?.isOneLineTitle) )\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_49, [\n _createElementVNode(\"div\", _hoisted_50, [\n _cache[22] || (_cache[22] = _createElementVNode(\"i\", {\n class: \"lt text12B ccc-icon-file-empty text-black-30 no-select gly-rotate-180\",\n style: {\"margin-top\":\"10px\"}\n }, null, -1)),\n _createElementVNode(\"p\", {\n class: \"lt la text-black-60 memo-back margin10-lr rc2 text-break uk-clearfix comment no-overflow ellipsis md-contents-lite text-black-60 can-select\",\n style: {\"width\":\"calc(100% - 80px)\",\"border\":\"none\",\"resize\":\"none\",\"padding\":\"10px 20px 10px 20px\"},\n innerHTML: __props.pageSection._cacheMemoHTML\n }, null, 8, _hoisted_51)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./PageSectionElement.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PageSectionElement.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, withModifiers as _withModifiers, toDisplayString as _toDisplayString, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } from \"vue\"\n\nconst _hoisted_1 = { class: \"absolute-max text16 rc3 background-white-99 ccc-back-blur border-silver padding10\" }\nconst _hoisted_2 = { class: \"uk-clearfix\" }\nconst _hoisted_3 = { class: \"uk-clearfix\" }\nconst _hoisted_4 = {\n style: {\"position\":\"absolute\",\"bottom\":\"0px\",\"left\":\"0px\",\"right\":\"0px\",\"top\":\"92px\"},\n class: \"text-black-60 hover-overflow\"\n}\nconst _hoisted_5 = [\"onClick\"]\nconst _hoisted_6 = {\n key: 0,\n class: \"uk-clearfix\"\n}\nconst _hoisted_7 = { class: \"bold lt\" }\nconst _hoisted_8 = [\"onDblclick\", \"onClick\"]\nconst _hoisted_9 = {\n class: \"la margin2 no-select text14 clickable nowrap ellipsis no-overflow\",\n style: {\"line-height\":\"24px\"}\n}\nconst _hoisted_10 = { class: \"inline-block rc4 hotLink margin5-lr\" }\nconst _hoisted_11 = {\n key: 0,\n class: \"ccc-icon-circle-small text12B\",\n style: {\"margin-left\":\"15px\"}\n}\nconst _hoisted_12 = {\n key: 1,\n class: \"inline-block text16 margin5-lr\"\n}\nconst _hoisted_13 = [\"title\"]\nconst _hoisted_14 = { key: 0 }\nconst _hoisted_15 = { key: 1 }\n\nimport {TYPE_INDEX_SIDEBAR} from \"@/codes/_20.def/_modDataDict\";\r\n\r\ndeclare var setInputFocus: any;\r\n\r\n\r\nimport {defineComponent} from 'vue'\r\n\r\nimport {IFC_AIManager, IFC_PageTemplateManager, IFC_UserContentManager} from \"@/codes/_20.def/managerIFs\";\r\nimport {GUID_TYPE, IFC_Page_Column, IFC_Page_Section, IFC_UIS, IFC_Page_Data} from \"@/codes/_20.def/dataTypes\";\r\nimport {TYPE_SECTION} from \"@/codes/_20.def/_modDataDict\";\r\nimport {reactive} from 'vue';\r\n\r\nimport {lockResultPageUI, unlockResultPageUI} from \"@/codes/_10.sys/UICommittee\"\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\n\r\nvar appAIManager: IFC_AIManager = window.appAIManager;\r\nvar appPageTemplateManager: IFC_PageTemplateManager = window.appPageTemplateManager;\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\n\r\n\r\nconst __default__ = {\r\n computed: {\r\n TYPE_SECTION() {\r\n return TYPE_SECTION\r\n }\r\n },\r\n\r\n props: {\r\n /*pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true\r\n },\r\n sectionCardStyle: String,\r\n parentViewMode: Boolean,*/\r\n },\r\n methods: {},\r\n name: \"PageContentTable\",\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\nconst pageColumns: [IFC_Page_Column] = window.PageColumns;\r\nlet getSectionFlagColorStyle = appUserContentManager.getSectionFlagColorStyle;\r\n\r\nconst clickReturnColumn = function (xPageContentTable: number) {\r\n if (xPageContentTable == pageColumns.length - 1) {\r\n appUserContentManager.selectPageSection(xPageContentTable, \"\");\r\n appUserContentManager.scrollPageTo(\"top\");\r\n\r\n } else {\r\n appUserContentManager.resetPageColumn(xPageContentTable);\r\n }\r\n\r\n}\r\n\r\nconst getPageColumnTitle = function (xPageContentTable: number) {\r\n let zPageColumn: IFC_Page_Column = pageColumns[xPageContentTable];\r\n if (zPageColumn) {\r\n let zPageSection: IFC_Page_Section = appUserContentManager.getSection(\"\", zPageColumn.parentPageSectionGUID);\r\n return zPageSection.sectionTitle;\r\n } else {\r\n return \"\";\r\n }\r\n}\r\nconst getCurrentColumnPageSectionList = function () {\r\n let zPageColumn: IFC_Page_Column = nz(pageColumns[pageColumns.length - 1], []);\r\n if (zPageColumn) {\r\n return appUserContentManager.getSectionListByParentSectionGUID(\"\", zPageColumn.parentPageSectionGUID);\r\n }\r\n return [];\r\n}\r\n\r\nconst getCurrentPagePinnedSectionList = function () {\r\n let zResList: IFC_Page_Section[] = [];\r\n let zPageGUID = UIS.currentUserContentPageGUID;\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zPageGUID];\r\n if (!zPageItem) return [];\r\n let zPageSections = nz(zPageItem.pageSections, []);\r\n _.each(zPageSections, function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection.isPinned) {\r\n zResList.push(xPageSection)\r\n }\r\n });\r\n return zResList;\r\n}\r\n\r\nconst clickPageSectionTab = function (xPageContentTable: number, xSelectedSectionGUID: GUID_TYPE) {\r\n appUserContentManager.selectPageSection(xPageContentTable, xSelectedSectionGUID);\r\n}\r\n\r\nconst dblclickPageSectionTab = function (xSelectedSectionGUID: GUID_TYPE) {\r\n // cwrn(\"*dblpgstb\")\r\n appUserContentManager.extendPageColumn(UIS.currentUserContentPageColumnIndex, xSelectedSectionGUID);\r\n}\r\n\r\nconst clickReturn = function () {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SIDEBAR_CLOSED;\r\n}\r\n\r\nconst clickAddNewConversation = function () {\r\n clickReturn();\r\n appUserContentManager.setCurrentSelectedPageSectionGUID(\"\");\r\n setInputFocus(\"#inputUserCommand\");\r\n //\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", {\n class: \"lt margin5 no-select comment nowrap no-overflow ellipsis clickable hotLink\",\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickReturn()), [\"stop\",\"prevent\"]))\n }, _cache[3] || (_cache[3] = [\n _createElementVNode(\"i\", { class: \"ccc-icon-arrow-left16 opacity60\" }, null, -1),\n _createTextVNode(\"  \")\n ])),\n _createElementVNode(\"div\", {\n class: \"rt margin5 no-select comment nowrap no-overflow ellipsis clickable hotLink\",\n onClick: _cache[1] || (_cache[1] = _withModifiers(($event: any) => (clickAddNewConversation()), [\"stop\",\"prevent\"]))\n }, [\n _cache[4] || (_cache[4] = _createElementVNode(\"i\", { class: \"ccc-icon-plus-circle2\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Build_New_Content\")), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", {\n class: \"lt margin5 no-select text16 nowrap no-overflow ellipsis text-black bold\",\n onClick: _cache[2] || (_cache[2] = _withModifiers(($event: any) => (clickReturnColumn(0)), [\"stop\",\"prevent\"]))\n }, _toDisplayString(_ctx.$t(\"Home\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(pageColumns), (pageColumn, PageContentTable) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n style: {\"z-index\":\"199\"},\n class: \"text-black-30\",\n key: PageContentTable,\n onClick: _withModifiers(($event: any) => (clickReturnColumn(PageContentTable)), [\"stop\",\"prevent\"])\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"la margin5 no-select clickable hotLink\", {\r\n 'text-black':PageContentTable==_unref(pageColumns).length-1,\r\n }])\n }, [\n PageContentTable\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n _createElementVNode(\"span\", _hoisted_7, \" \" + _toDisplayString(getPageColumnTitle(PageContentTable)), 1)\n ]))\n : _createCommentVNode(\"\", true),\n _cache[5] || (_cache[5] = _createElementVNode(\"hr\", null, null, -1))\n ], 2)\n ], 8, _hoisted_5))\n }), 128)),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(getCurrentColumnPageSectionList(), (pageSection, pageSectionIndex) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n style: {\"z-index\":\"199\"},\n class: \"text-black-60\",\n key: pageSectionIndex,\n onDblclick: _withModifiers(($event: any) => (dblclickPageSectionTab(pageSection._GUID)), [\"prevent\"]),\n onClick: _withModifiers(($event: any) => (clickPageSectionTab(_unref(pageColumns).length-1,pageSection._GUID)), [\"stop\",\"prevent\"])\n }, [\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", {\n class: \"inline-block rc4 margin5-lr\",\n style: _normalizeStyle((pageSection.flagCode && (pageSection.flagCode!='Default'))?\r\n (_unref(getSectionFlagColorStyle)(pageSection,'backStyle')+';'\r\n +_unref(getSectionFlagColorStyle)(pageSection,'titleStyle'))\r\n :'')\n }, [\n (pageSection.sectionType!=_unref(TYPE_SECTION).HEADER)\n ? (_openBlock(), _createElementBlock(\"i\", _hoisted_11))\n : _createCommentVNode(\"\", true),\n (pageSection.sectionType==_unref(TYPE_SECTION).HEADER)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_12, \" # \"))\n : _createCommentVNode(\"\", true)\n ], 4),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"inline-block hotlink\", \r\n ((pageSection.sectionType==_unref(TYPE_SECTION).HEADER)?'text16 text-black':'text12B')+' '\r\n ]),\n title: pageSection.sectionTitle\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass(\r\n ((_unref(pageColumns)[_unref(pageColumns).length-1].currentSelectedPageSectionGUID==pageSection._GUID)?'ccc-color-primary':''))\n }, [\n (pageSection.sectionTitle)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_14, _toDisplayString(pageSection.sectionTitle), 1))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_15, \"----\"))\n ], 2)\n ], 10, _hoisted_13)\n ])\n ]),\n _cache[6] || (_cache[6] = _createElementVNode(\"hr\", null, null, -1))\n ], 40, _hoisted_8))\n }), 128))\n ])\n ]))\n}\n}\n\n})","import script from \"./PageContentTable.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PageContentTable.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withModifiers as _withModifiers, unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, vShow as _vShow, withDirectives as _withDirectives } from \"vue\"\n\nconst _hoisted_1 = { class: \"absolute-max text16 rc3 background-white-99 ccc-back-blur padding10\" }\nconst _hoisted_2 = { class: \"rt\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"uk-clearfix\"\n}\nconst _hoisted_4 = { class: \"margin10-lr no-select text16 nowrap no-overflow ellipsis\" }\nconst _hoisted_5 = { class: \"inline-block text-black-30 bold\" }\nconst _hoisted_6 = { class: \"la margin5 no-select comment nowrap no-overflow ellipsis text-black-30\" }\nconst _hoisted_7 = {\n style: {\"position\":\"absolute\",\"bottom\":\"10px\",\"left\":\"10px\",\"right\":\"10px\",\"top\":\"110px\"},\n class: \"text-black-60 hover-overflow\"\n}\nconst _hoisted_8 = [\"onClick\"]\nconst _hoisted_9 = { class: \"la margin5 no-select text14 clickable hotLink nowrap no-overflow ellipsis\" }\nconst _hoisted_10 = {\n key: 0,\n class: \"ccc-color-primary\"\n}\nconst _hoisted_11 = [\"title\"]\nconst _hoisted_12 = {\n key: 0,\n class: \"uk-clearfix text-black-60 margin5 comment\"\n}\nconst _hoisted_13 = [\"onClick\"]\nconst _hoisted_14 = {\n key: 1,\n class: \"\"\n}\nconst _hoisted_15 = [\"title\"]\n\nimport {TYPE_INDEX_SIDEBAR} from \"@/codes/_20.def/_modDataDict\";\r\nimport {ElMessage, ElMessageBox} from 'element-plus'\r\nimport type {Action} from 'element-plus'\r\nimport i18n from '@/codes/_90.lang/i18n';\r\nimport {IFC_Page_Data} from \"@/codes/_20.def/dataTypes\";\r\nimport {reactive} from \"vue\";\r\nimport {SYSS} from \"@/codes/_10.sys/A0Committee\";\r\n\r\n\r\nimport {IFC_AIManager, IFC_PageTemplateManager, IFC_UserContentManager} from \"@/codes/_20.def/managerIFs\";\r\nimport {GUID_TYPE, IFC_Page_Column, IFC_UIS} from \"@/codes/_20.def/dataTypes\";\r\nimport {TYPE_SECTION} from \"@/codes/_20.def/_modDataDict\";\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\n\r\nvar appAIManager: IFC_AIManager = window.appAIManager;\r\nvar appPageTemplateManager: IFC_PageTemplateManager = window.appPageTemplateManager;\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\n\r\n\r\nconst __default__ = {\r\n computed: {\r\n TYPE_SECTION() {\r\n return TYPE_SECTION\r\n }\r\n },\r\n\r\n props: {\r\n /*pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true\r\n },\r\n sectionCardStyle: String,\r\n parentViewMode: Boolean,*/\r\n },\r\n methods: {},\r\n mounted() {\r\n //\r\n },\r\n name: \"PageFileIndex\",\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\n\r\nlet sortedPageItemList: IFC_Page_Data[] = reactive([]);\r\n\r\nconst sortPageItemList = function () {\r\n\r\n let zResPageItemList = nz(_.sortBy(\r\n appUserContentManager.allUserContentPages, function (xPageItem: IFC_Page_Data) {\r\n return nz(xPageItem._updatedAt, \"0000\" + xPageItem.pageTitle);\r\n }), []);\r\n // eslint-disable-next-line no-undef\r\n assignArray(sortedPageItemList, zResPageItemList.reverse());\r\n console.log(\"*srt pgit\");\r\n}\r\nsortPageItemList();\r\n\r\nconst clickLoadPageItem = function (xPageItemGUID: GUID_TYPE) {\r\n appUserContentManager.gotoPage(xPageItemGUID, cwrn);\r\n clickReturn();\r\n}\r\nconst clickNewBlankPage = function () {\r\n UIS.ifLockingPageUI = false;\r\n // let zPageColumns = window.PageColumns;\r\n // let zCurrentPageColumn: IFC_Page_Column = nz(zPageColumns[UIS.currentUserContentPageColumnIndex], {});\r\n appUserContentManager.insertBlankPage(\"\", \"\");\r\n clickReturn();\r\n}\r\nconst clickReturn = function () {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SIDEBAR_CLOSED;\r\n}\r\n\r\nconst clickRemovePage = function (xTargetPageGUID: GUID_TYPE) {\r\n if (!xTargetPageGUID) return;\r\n if (confirm(i18n.global.t(\"messages.Confirm2Remove_Page\"))) {\r\n clickReturn();\r\n appUserContentManager.removePage(xTargetPageGUID);\r\n }\r\n\r\n}\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", {\n class: \"mon-white-button border-silver mon-med-button inline-block\",\n style: {\"width\":\"200px\"},\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickNewBlankPage()), [\"stop\",\"prevent\"]))\n }, [\n _cache[1] || (_cache[1] = _createElementVNode(\"i\", { class: \"ccc-icon-stack2 margin5-lr\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"actions.NewBlankDeck\")), 1)\n ])\n ]),\n ((!_unref(UIS).isSharingViewMode))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"h2\", _hoisted_5, _toDisplayString(_ctx.$t(\"My_Decks\")), 1)\n ])\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_6, [\n _cache[2] || (_cache[2] = _createElementVNode(\"i\", { class: \"ccc-icon-info\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"messages.MyDeckIntro\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(sortedPageItemList), (pageItem) => {\n return _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n style: {\"z-index\":\"199\"},\n key: pageItem._GUID,\n onClick: _withModifiers(($event: any) => (clickLoadPageItem(pageItem._GUID)), [\"prevent\"])\n }, [\n _cache[8] || (_cache[8] = _createElementVNode(\"hr\", null, null, -1)),\n _createElementVNode(\"div\", _hoisted_9, [\n ((_unref(UIS).currentUserContentPageGUID==pageItem._GUID))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", {\n class: \"uk-clearfix\",\n title: pageItem.pageTitle\n }, [\n _cache[3] || (_cache[3] = _createTextVNode(\"  \")),\n _cache[4] || (_cache[4] = _createElementVNode(\"i\", { class: \"ccc-icon-stack-text\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(pageItem.pageTitle), 1)\n ], 8, _hoisted_11),\n ((!_unref(SYSS).MOD_CODE))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n _createElementVNode(\"div\", {\n class: \"rt hotLink\",\n onClick: _withModifiers(($event: any) => (clickRemovePage(pageItem._GUID)), [\"stop\",\"prevent\"])\n }, [\n _cache[5] || (_cache[5] = _createElementVNode(\"i\", { class: \"ccc-icon-bin4\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Discard\")), 1)\n ], 8, _hoisted_13)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_14, [\n _createElementVNode(\"div\", {\n class: \"uk-clearfix\",\n title: pageItem.pageTitle\n }, [\n _cache[6] || (_cache[6] = _createTextVNode(\"  \")),\n _cache[7] || (_cache[7] = _createElementVNode(\"i\", { class: \"ccc-icon-stack-text\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(pageItem.pageTitle), 1)\n ], 8, _hoisted_15)\n ]))\n ])\n ], 8, _hoisted_8)), [\n [_vShow, !pageItem._IsDeleted]\n ])\n }), 128))\n ])\n ]))\n}\n}\n\n})","import script from \"./PageFileIndex.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PageFileIndex.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, vShow as _vShow, withDirectives as _withDirectives, withModifiers as _withModifiers, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"uk-clearfix no-overflow text12B no-select ca\",\n style: {\"z-index\":\"8000\",\"font-weight\":\"normal\",\"height\":\"32px\"}\n}\nconst _hoisted_2 = {\n key: 0,\n style: {\"z-index\":\"200\"},\n class: \"uk-clearfix ca\"\n}\nconst _hoisted_3 = {\n key: 0,\n class: \"hotLink rc99 ca text-black-30 img16 margin5-lr\"\n}\nconst _hoisted_4 = {\n key: 1,\n class: \"hotLink rc99 ca img16 margin5-lr\"\n}\nconst _hoisted_5 = [\"title\"]\nconst _hoisted_6 = [\"title\"]\nconst _hoisted_7 = [\"title\"]\nconst _hoisted_8 = [\"title\"]\nconst _hoisted_9 = { class: \"inline-block hotLink\" }\nconst _hoisted_10 = { class: \"inline-block\" }\n\nimport {\r\n TYPE_EVENT, TYPE_FILTER_CODE,\r\n TYPE_INDEX_SIDEBAR,\r\n TYPE_INSERT_OBJECT,\r\n TYPE_LAYOUT_CODE,\r\n\r\n} from \"@/codes/_20.def/_modDataDict\";\r\nimport {defineEmits} from \"vue/dist/vue\";\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\nimport {SYSS} from \"@/codes/_10.sys/A0Committee\";\r\nimport {ElNotification} from 'element-plus'\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\nimport {IFC_Page_Data} from \"@/codes/_20.def/dataTypes\";\r\n\r\n\r\nimport {IFC_AIManager, IFC_PageTemplateManager, IFC_UserContentManager} from \"@/codes/_20.def/managerIFs\";\r\nimport {GUID_TYPE, IFC_Page_Column, IFC_Page_Section} from \"@/codes/_20.def/dataTypes\";\r\nimport {TYPE_SECTION} from \"@/codes/_20.def/_modDataDict\";\r\n\r\ndeclare var window: any;\r\ndeclare var chance: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var setInputFocus: any;\r\ndeclare var clearSelection: any;\r\n\r\nvar appAIManager: IFC_AIManager = window.appAIManager;\r\nvar appPageTemplateManager: IFC_PageTemplateManager = window.appPageTemplateManager;\r\n\r\n\r\nconst __default__ = {\r\n computed: {\r\n TYPE_SECTION() {\r\n return TYPE_SECTION\r\n }\r\n },\r\n\r\n props: {\r\n\r\n isReadOnly: Boolean,\r\n isBackFaceMode: Boolean,\r\n isSelected: Boolean,\r\n\r\n pageSectionIndex: {\r\n type: Number,\r\n required: false\r\n },\r\n\r\n draggingSectionIndex: {\r\n type: Number,\r\n required: false\r\n },\r\n hoverSectionGUID: {\r\n type: String,\r\n required: false\r\n },\r\n\r\n pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true\r\n },\r\n\r\n pageSections: {\r\n type: Array as () => IFC_Page_Section[],\r\n required: false\r\n },\r\n\r\n\r\n },\r\n methods: {},\r\n name: \"HeaderSectionMenu\",\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n emits: [\"clickDiveIntoPageSection\"],\n setup(__props, { emit: __emit }) {\n\r\n\r\nconst emit = __emit;\r\n\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\n\r\nlet defaultFlagColorStyleArray = UIS.currentUserContentPageTemplate.flagColorStyles;\r\nlet defaultHeaderStyleArray = UIS.currentUserContentPageTemplate.headerStyles;\r\nlet defaultLayoutStyleArray = UIS.currentUserContentPageTemplate.layoutStyleObjects;\r\n\r\nlet nzz = nz;\r\n\r\nconst getSubPageSectionCount = function (xPageSection: IFC_Page_Section): number {\r\n let zSubPageSections: [IFC_Page_Section?] = appUserContentManager.getSectionListByParentSectionGUID(UIS.currentUserContentPageGUID, xPageSection._GUID);\r\n if (zSubPageSections && zSubPageSections.length) {\r\n return zSubPageSections.length;\r\n }\r\n return 0;\r\n}\r\n\r\nconst clickPageSectionCheckbox = function (xEvent: any, xPageColumn: IFC_Page_Column, xPageColumnIndex: number, xTargetPageSectionGUID: GUID_TYPE) {\r\n\r\n appUserContentManager.resetPageColumn(xPageColumnIndex);\r\n if (xPageColumn.currentSelectedPageSectionGUID == xTargetPageSectionGUID) {\r\n // xPageColumn.currentSelectedPageSectionGUID = \"\";\r\n appUserContentManager.selectPageSection(xPageColumnIndex, \"\");\r\n\r\n } else {\r\n appUserContentManager.selectPageSection(xPageColumnIndex, xTargetPageSectionGUID);\r\n // xPageColumn.currentSelectedPageSectionGUID = xTargetPageSectionGUID\r\n }\r\n xEvent.preventDefault();\r\n}\r\n\r\nconst clickToggleFoldExtendHeader = function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection.layoutCode == TYPE_LAYOUT_CODE.DEFAULT) {\r\n appUserContentManager.updatePageSection(\"\", xPageSection._GUID, {layoutCode: TYPE_LAYOUT_CODE.COMPACT});\r\n } else {\r\n appUserContentManager.updatePageSection(\"\", xPageSection._GUID, {layoutCode: TYPE_LAYOUT_CODE.DEFAULT});\r\n }\r\n}\r\n\r\nconst clickSwitchSectionFlagColor = function (xPageSectionGUID: GUID_TYPE, xBeforeFlagCode: any, xNewFlagCode: any) {\r\n let zFlagCode = nz(xNewFlagCode, \"Default\")\r\n if (xBeforeFlagCode == xNewFlagCode) {\r\n zFlagCode = \"Default\";\r\n }\r\n appUserContentManager.updatePageSection(\"\", xPageSectionGUID, {flagCode: zFlagCode});\r\n}\r\n\r\nconst clickSwitchSectionLayoutStyle = function (xPageSectionGUID: GUID_TYPE, xLayoutCode: string) {\r\n appUserContentManager.updatePageSection(\"\", xPageSectionGUID, {layoutCode: nz(xLayoutCode, \"\")});\r\n}\r\n\r\nconst clickRemovePageSection = function (xEvent: any, xTargetPageSection: IFC_Page_Section, xIsBackFaceMode?: boolean) {\r\n if (!xTargetPageSection) return;\r\n if (!xTargetPageSection._GUID) return;\r\n\r\n if (confirm(i18n.global.t(\"messages.Confirm2Remove_Section_Only\")\r\n + \"\\n\" + \"\\n\" + nz(xTargetPageSection.sectionTitle, \"\"))) {\r\n if (xIsBackFaceMode) {\r\n UIS.ifGoBackAnimation = true;\r\n appUserContentManager.resetPageColumn(UIS.currentUserContentPageColumnIndex - 1);\r\n }\r\n appUserContentManager.removeSections(UIS.currentUserContentPageGUID, [xTargetPageSection._GUID]);\r\n let zPageColumn: IFC_Page_Column = window.PageColumns[UIS.currentUserContentPageColumnIndex];\r\n if (zPageColumn) {\r\n zPageColumn.currentSelectedPageSectionGUID = nz(zPageColumn.currentSelectedHeaderPageSectionGUID, \"\");\r\n }\r\n }\r\n}\r\n\r\nconst clickRemovePageSectionsUnderThisHeader = function (xEvent: any, xTargetPageSection: IFC_Page_Section) {\r\n if (!xTargetPageSection) return;\r\n if (!xTargetPageSection._GUID) return;\r\n\r\n if (confirm(i18n.global.t(\"messages.Confirm2Discard_Group_And_Sections\")\r\n + \"\\n\" + \"\\n\" + nz(xTargetPageSection.sectionTitle, \"\"))) {\r\n appUserContentManager.removeHeaderAndSections(UIS.currentUserContentPageGUID, xTargetPageSection._GUID);\r\n let zPageColumn: IFC_Page_Column = window.PageColumns[UIS.currentUserContentPageColumnIndex];\r\n if (zPageColumn) {\r\n zPageColumn.currentSelectedPageSectionGUID = \"\";\r\n }\r\n }\r\n}\r\n\r\nconst clickEditPageSection = function (xTargetPageSection: IFC_Page_Section) {\r\n if (UIS.isSharingViewMode) {\r\n //\r\n } else {\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*clk EN\",xTargetPageSection)\r\n appUserContentManager.startEditingPageSection(xTargetPageSection, TYPE_INDEX_SIDEBAR.PAGE_SECTION_TEXT_EDITOR);\r\n\r\n }\r\n}\r\n\r\nconst clickCopyPageSection = async function (xTargetPageSection: IFC_Page_Section) {\r\n if (!xTargetPageSection) return;\r\n\r\n let zCopiedText = \"\";\r\n if (xTargetPageSection.sectionType == TYPE_SECTION.HEADER) {\r\n zCopiedText += nz(xTargetPageSection.sectionTitle, \"\");\r\n } else if (xTargetPageSection.sectionType == TYPE_SECTION.NOTE_CARD) {\r\n zCopiedText += \"## \" + xTargetPageSection.sectionTitle + \"\\n\\n\";\r\n if (xTargetPageSection.sectionBodyText) {\r\n zCopiedText += \"\" + xTargetPageSection.sectionBodyText + \"\\n\";\r\n }\r\n\r\n if (xTargetPageSection.sectionMemo) {\r\n zCopiedText += \"\\n- Memo\\n\" + xTargetPageSection.sectionMemo + \"\\n\";\r\n }\r\n\r\n if (xTargetPageSection.refLinkAllString) {\r\n zCopiedText += \"\\n### References\\n\" + xTargetPageSection.refLinkAllString + \"\\n\";\r\n }\r\n /*if (xTargetPageSection.coverImageURL) {\r\n zCopiedText += \"\\n- Image\\n\" + xTargetPageSection.coverImageURL + \"\\n\";\r\n }*/\r\n\r\n }\r\n\r\n if (zCopiedText) {\r\n try {\r\n await navigator.clipboard.writeText(zCopiedText);\r\n\r\n ElNotification({\r\n title: i18n.global.t(\"Copied2Clipboard\"),\r\n message: '',\r\n type: 'success',\r\n })\r\n } catch (e) {\r\n console.error(e);\r\n }\r\n }\r\n\r\n}\r\n\r\nconst clickBreakdown = function (xTargetPageSection: IFC_Page_Section) {\r\n let zHeaderSectionGUID = appUserContentManager.getCurrentSelectedPageHeaderSectionGUID();\r\n let zHeaderSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zHeaderSectionGUID);\r\n let zBreakdownSourceText = nz((xTargetPageSection?.sectionTitle), \"\").trim();\r\n if (!zBreakdownSourceText) return;\r\n zBreakdownSourceText += \" | \" + (zHeaderSection?.sectionTitle);\r\n if (zBreakdownSourceText && zBreakdownSourceText.trim()) {\r\n UIS.currentChattingMessage = zBreakdownSourceText;\r\n window.emitter.emit(TYPE_EVENT.CALL_USER_INPUT_CENTER);\r\n }\r\n}\r\n\r\nconst clickEditImage = function (xTargetPageSection: IFC_Page_Section) {\r\n\r\n /*appUserContentManager.resetPageColumn(xPageContentTable);\r\n appUserContentManager.extendPageColumn(UIS.currentUserContentPageColumnIndex, xTargetPageSectionGUID);*/\r\n if (UIS.isSharingViewMode) {\r\n //\r\n } else {\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*clk EN\",xTargetPageSection)\r\n appUserContentManager.startEditingPageSection(xTargetPageSection, TYPE_INDEX_SIDEBAR.PAGE_SECTION_IMAGE_EDITOR);\r\n\r\n }\r\n\r\n}\r\n\r\nconst clickNewSlide = function () {\r\n\r\n let zSectionTitle = i18n.global.t(\"New_Blank_Slide\");\r\n let zHeaderSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, appUserContentManager.getCurrentSelectedPageHeaderSectionGUID());\r\n if (zHeaderSection?._isClueSection) {\r\n zSectionTitle = i18n.global.t(\"New_Blank_Point\");\r\n }\r\n\r\n appUserContentManager.insertNewCustomSlide2CurrentHeader(\r\n {sectionTitle: zSectionTitle}\r\n )\r\n\r\n}\r\n\r\nconst clickStartMovingSection = function (xSourcePageSection: IFC_Page_Section) {\r\n appUserContentManager.startEditingPageSection(xSourcePageSection, TYPE_INDEX_SIDEBAR.PAGE_SECTION_ORDER_EDITOR);\r\n}\r\n\r\nconst clickToggleStarPageSection = function (xPageSection: IFC_Page_Section) {\r\n\r\n if (xPageSection?.sectionType == TYPE_SECTION.HEADER) {\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, xPageSection._GUID, xPageSection._GUID);\r\n }\r\n\r\n setTimeout(function () {\r\n if (xPageSection._isStarred) {\r\n appUserContentManager.unstarPageSection(xPageSection);\r\n } else {\r\n appUserContentManager.updateMultiPageSectionStars(UIS.currentUserContentPageGUID,\r\n [xPageSection._GUID], true);\r\n }\r\n }, 200)\r\n\r\n\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (!__props.isReadOnly)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n ((!_unref(UIS).isSharingViewMode))\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"inline-block margin5-lr hotLink\",\n style: {},\n onClick: _cache[0] || (_cache[0] = ($event: any) => (clickToggleStarPageSection(__props.pageSection)))\n }, [\n (!__props.pageSection._isStarred)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, _cache[5] || (_cache[5] = [\n _createElementVNode(\"i\", {\n class: \"ccc-icon-star-empty\",\n style: {}\n }, null, -1)\n ])))\n : _createCommentVNode(\"\", true),\n (__props.pageSection._isStarred)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, _cache[6] || (_cache[6] = [\n _createElementVNode(\"i\", {\n class: \"ccc-icon-star-full ccc-tag-yellow\",\n style: {}\n }, null, -1)\n ])))\n : _createCommentVNode(\"\", true)\n ], 512)), [\n [_vShow, (!_unref(UIS).isSharingViewMode) && (!__props.pageSection._isClueSection)]\n ])\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", {\n class: \"inline-block margin5-lr hotLink\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (clickNewSlide())),\n title: __props.pageSection._isClueSection?_ctx.$t('tooltips.addCustomPointToOutline'):_ctx.$t('tooltips.addCustomSlideToTopicGroup')\n }, _cache[7] || (_cache[7] = [\n _createElementVNode(\"div\", { class: \"inline-block hotLink\" }, [\n _createElementVNode(\"div\", { class: \"inline-block\" }, [\n _createElementVNode(\"i\", {\n class: \"ccc-icon-file-plus margin5-lr img16\",\n style: {\"padding-top\":\"0px\"}\n })\n ])\n ], -1)\n ]), 8, _hoisted_5),\n _createElementVNode(\"div\", {\n class: \"inline-block margin5-lr text-black-60\",\n onClick: _cache[2] || (_cache[2] = _withModifiers(($event: any) => (clickEditPageSection(__props.pageSection)), [\"stop\",\"prevent\"])),\n title: _ctx.$t('tooltips.editSlide')\n }, _cache[8] || (_cache[8] = [\n _createElementVNode(\"div\", { class: \"inline-block\" }, [\n _createElementVNode(\"div\", { class: \"inline-block hotLink\" }, [\n _createElementVNode(\"i\", {\n class: \"ccc-icon-pencil6 margin5-lr img16\",\n style: {\"padding-top\":\"0px\"}\n })\n ])\n ], -1)\n ]), 8, _hoisted_6),\n _withDirectives(_createElementVNode(\"div\", {\n class: \"inline-block margin5-lr text-black-60\",\n onClick: _cache[3] || (_cache[3] = _withModifiers(($event: any) => (clickEditImage(__props.pageSection)), [\"stop\",\"prevent\"])),\n title: _ctx.$t('tooltips.updateImageForSlide')\n }, _cache[9] || (_cache[9] = [\n _createElementVNode(\"div\", { class: \"inline-block\" }, [\n _createElementVNode(\"div\", { class: \"inline-block hotLink\" }, [\n _createElementVNode(\"i\", {\n class: \"ccc-icon-image margin5-lr img16\",\n style: {\"padding-top\":\"0px\"}\n })\n ])\n ], -1)\n ]), 8, _hoisted_7), [\n [_vShow, !__props.pageSection._isClueSection]\n ]),\n _createElementVNode(\"div\", {\n class: \"inline-block margin5-lr hotLink\",\n title: _ctx.$t('tooltips.discardGroupAndSections'),\n onClick: _cache[4] || (_cache[4] = ($event: any) => (clickRemovePageSectionsUnderThisHeader($event,__props.pageSection)))\n }, [\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", _hoisted_10, [\n _cache[10] || (_cache[10] = _createElementVNode(\"i\", {\n class: \"ccc-icon-bin4 img16\",\n style: {\"padding-top\":\"0px\",\"margin-left\":\"5px\"}\n }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Discard\")), 1)\n ])\n ])\n ], 8, _hoisted_8)\n ]))\n : _createCommentVNode(\"\", true)\n ], 512)), [\n [_vShow, !_unref(UIS).ifLockingPageUI]\n ])\n}\n}\n\n})","import script from \"./HeaderSectionMenu.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./HeaderSectionMenu.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { resolveComponent as _resolveComponent, createVNode as _createVNode, withModifiers as _withModifiers, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"absolute-max hover-overflow\" }\nconst _hoisted_2 = {\n style: {\"z-index\":\"100\"},\n class: \"content-card uk-clearfix\"\n}\n\nimport {TYPE_AI_ACTION, TYPE_INDEX_SIDEBAR, TYPE_INPUT_COMMAND} from \"@/codes/_20.def/_modDataDict\";\r\n\r\n\r\nimport {defineComponent} from 'vue'\r\n\r\nimport {\r\n IFC_AIManager,\r\n IFC_CommandManager,\r\n IFC_PageTemplateManager,\r\n IFC_UserContentManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {GUID_TYPE, IFC_Page_Column, IFC_Page_Section, IFC_UIS, IFC_Page_Data} from \"@/codes/_20.def/dataTypes\";\r\nimport {TYPE_SECTION} from \"@/codes/_20.def/_modDataDict\";\r\nimport {reactive} from 'vue';\r\n\r\nimport {lockResultPageUI, unlockResultPageUI} from \"@/codes/_10.sys/UICommittee\"\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\n\r\nvar appAIManager: IFC_AIManager = window.appAIManager;\r\nvar appPageTemplateManager: IFC_PageTemplateManager = window.appPageTemplateManager;\r\nvar appCommandManager: IFC_CommandManager = window.appCommandManager;\r\n\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\n\r\nconst __default__ = {\r\n computed: {\r\n TYPE_SECTION() {\r\n return TYPE_SECTION\r\n },\r\n },\r\n\r\n props: {\r\n\r\n pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true\r\n },\r\n\r\n\r\n isFolded: {\r\n type: Boolean,\r\n required: false\r\n }\r\n\r\n\r\n },\r\n methods: {},\r\n name: \"PageSectionView\",\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\nlet defaultFlagColorStyleArray = UIS.currentUserContentPageTemplate.flagColorStyles;\r\nlet nzz = nz;\r\n\r\nlet getSectionFlagColorStyle = appUserContentManager.getSectionFlagColorStyle;\r\nlet getSectionHeaderStyle = appUserContentManager.getSectionHeaderStyle;\r\nlet getParentPageSection = function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection && xPageSection._parentSectionGUID) {\r\n return appUserContentManager.getSection(UIS.currentUserContentPageGUID, xPageSection._parentSectionGUID);\r\n } else {\r\n return\r\n }\r\n}\r\n\r\nconst getPageSectionStyle = function (xPageSection: IFC_Page_Section, xIsFolded?: boolean): string {\r\n let zResPageSectionStyle = \"margin-top:0px\";\r\n if (xIsFolded) {\r\n zResPageSectionStyle = \"margin-left:0px;\"\r\n zResPageSectionStyle += \"margin-right:0px;\";\r\n zResPageSectionStyle += \"width:calc(100%)\";\r\n\r\n } else {\r\n zResPageSectionStyle += \"margin-left:calc(0px)\";\r\n if (xPageSection.coverImageSourceURL) {\r\n zResPageSectionStyle += \"margin-right:0px;\";\r\n // zResPageSectionStyle += \"width:calc(100%)\";\r\n } else {\r\n zResPageSectionStyle += \"margin-right:0px\"\r\n // zResPageSectionStyle += \"width:calc(100%);\";\r\n }\r\n zResPageSectionStyle = nz(xPageSection._cacheLayoutStyle, \"\");\r\n zResPageSectionStyle += (getSectionFlagColorStyle(xPageSection, 'backStyle')) + ';'\r\n }\r\n\r\n\r\n return zResPageSectionStyle;\r\n}\r\n\r\nconst clickContinueListing = function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection && xPageSection.sectionTitle) {\r\n /*appUserContentManager.upsertPageSectionsFromAIPlusSearch(UIS.currentUserContentPageGUID, {\r\n userMessage: xPageSection.sectionTitle,\r\n AIActionType: TYPE_AI_ACTION.For,\r\n });*/\r\n\r\n appCommandManager.runCommandString(\r\n xPageSection.sectionTitle\r\n + TYPE_INPUT_COMMAND.AI_FOLLOWUPS\r\n );\r\n }\r\n}\r\n\r\nconst clickReturnParentPageSection = function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection && xPageSection._GUID) {\r\n\r\n appUserContentManager.extendPageColumn(UIS.currentUserContentPageColumnIndex, nz(xPageSection._parentSectionGUID,\"\"));\r\n\r\n setTimeout(function () {\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, xPageSection._GUID, xPageSection._headerSectionGUID);\r\n },200);\r\n setTimeout(function () {\r\n appUserContentManager.scrollPageTo(xPageSection._GUID,\"center\");\r\n },500);\r\n\r\n }\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_PageSectionElement = _resolveComponent(\"PageSectionElement\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", {\n class: \"no-overflow lt\",\n style: _normalizeStyle([{\"will-change\":\"transform, opacity\"}, getPageSectionStyle(__props.pageSection)])\n }, [\n _createElementVNode(\"div\", {\n class: \"margin10 padding10\",\n style: {},\n onClick: _withModifiers(($event: any) => (1==1), [\"stop\",\"prevent\"])\n }, [\n _createVNode(_component_PageSectionElement, {\n class: \"\",\n pageSection: __props.pageSection,\n isBackFaceMode: true,\n sectionCardStyle: 'text-align:left;',\n isEditingMode: false,\n onClickContinueWriting: _cache[0] || (_cache[0] = ($event: any) => (_ctx.clickContinueWriting(__props.pageSection))),\n onClickContinueListing: _cache[1] || (_cache[1] = ($event: any) => (clickContinueListing(__props.pageSection)))\n }, null, 8, [\"pageSection\"])\n ])\n ], 4)\n ])\n ]))\n}\n}\n\n})","import script from \"./PageSectionView.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PageSectionView.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, vShow as _vShow, withDirectives as _withDirectives, createTextVNode as _createTextVNode, renderList as _renderList, Fragment as _Fragment, normalizeClass as _normalizeClass, withModifiers as _withModifiers, resolveComponent as _resolveComponent, withKeys as _withKeys, createVNode as _createVNode, vModelText as _vModelText } from \"vue\"\n\nconst _hoisted_1 = { class: \"absolute-max text16 rc3 background-white-99 ccc-back-blur padding10 hover-overflow\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"uk-clearfix\"\n}\nconst _hoisted_3 = { class: \"margin10-lr no-select text16 nowrap no-overflow ellipsis\" }\nconst _hoisted_4 = {\n key: 0,\n class: \"inline-block text-black-30 bold\"\n}\nconst _hoisted_5 = {\n key: 1,\n class: \"inline-block text-black-30 bold\"\n}\nconst _hoisted_6 = {\n key: 1,\n style: {\"position\":\"absolute\",\"bottom\":\"10px\",\"left\":\"10px\",\"right\":\"10px\",\"top\":\"64px\"},\n class: \"text-black-60\"\n}\nconst _hoisted_7 = {\n key: 0,\n class: \"padding10\"\n}\nconst _hoisted_8 = {\n key: 0,\n class: \"uk-clearfix app-comment ca\"\n}\nconst _hoisted_9 = { class: \"inline-block app-comment margin5\" }\nconst _hoisted_10 = {\n key: 0,\n class: \"inline-block app-comment margin5\"\n}\nconst _hoisted_11 = {\n key: 1,\n class: \"uk-clearfix app-comment ca margin5\"\n}\nconst _hoisted_12 = {\n key: 1,\n class: \"lt\",\n style: {\"width\":\"80px\"}\n}\nconst _hoisted_13 = [\"onClick\"]\nconst _hoisted_14 = [\"src\"]\nconst _hoisted_15 = {\n key: 2,\n class: \"padding10 lt\",\n style: {\"width\":\"calc(100% - 100px)\"}\n}\nconst _hoisted_16 = {\n key: 0,\n class: \"uk-clearfix\"\n}\nconst _hoisted_17 = {\n class: \"uk-clearfix ca margin10 uk-animation-fast uk-animation-fade\",\n style: {}\n}\nconst _hoisted_18 = [\"src\"]\nconst _hoisted_19 = {\n key: 2,\n style: {\"width\":\"calc(100% - 30px)\",\"margin-left\":\"10px\"}\n}\nconst _hoisted_20 = {\n class: \"ellipsis lt\",\n style: {\"width\":\"60%\"}\n}\nconst _hoisted_21 = {\n class: \"marginb10 ca width100\",\n style: {}\n}\nconst _hoisted_22 = { class: \"uk-clearfix text14 la\" }\nconst _hoisted_23 = { class: \"inline-block text-black bold\" }\nconst _hoisted_24 = {\n class: \"marginb10 ca width100\",\n style: {}\n}\nconst _hoisted_25 = { class: \"uk-clearfix text14 la\" }\nconst _hoisted_26 = { class: \"inline-block text-black bold\" }\nconst _hoisted_27 = {\n class: \"marginb10 ca width100\",\n style: {}\n}\nconst _hoisted_28 = { class: \"uk-clearfix text14 la\" }\nconst _hoisted_29 = { class: \"inline-block text-black bold\" }\nconst _hoisted_30 = {\n class: \"lt\",\n style: {\"width\":\"calc(40% - 20px)\",\"margin-left\":\"20px\"}\n}\nconst _hoisted_31 = {\n class: \"marginb10 ca width100\",\n style: {\"height\":\"80%\"}\n}\nconst _hoisted_32 = { class: \"uk-clearfix text14 la\" }\nconst _hoisted_33 = { class: \"inline-block text-black bold\" }\nconst _hoisted_34 = [\"rows\", \"placeholder\"]\n\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\nimport {IFC_Page_Data} from \"@/codes/_20.def/dataTypes\";\r\n\r\n\r\nimport {\r\n IFC_AIManager,\r\n IFC_AIPrompt_Provider,\r\n IFC_PageTemplateManager,\r\n IFC_SERPManager,\r\n IFC_UserContentManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {IFC_Page_Section} from \"@/codes/_20.def/dataTypes\";\r\nimport {TYPE_INDEX_SIDEBAR, TYPE_SECTION} from \"@/codes/_20.def/_modDataDict\";\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var clearObject: any;\r\ndeclare var assignArray: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var chance: any;\r\n\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\n\r\nvar appAIManager: IFC_AIManager = window.appAIManager;\r\nvar appPageTemplateManager: IFC_PageTemplateManager = window.appPageTemplateManager;\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\nvar appSERPManager: IFC_SERPManager = window.appSERPManager;\r\n\r\n\r\nconst __default__ = {\r\n computed: {\r\n TYPE_SECTION() {\r\n return TYPE_SECTION\r\n },\r\n\r\n },\r\n\r\n props: {\r\n pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true\r\n },\r\n },\r\n methods: {},\r\n name: \"PageSectionEditor\",\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\n\r\nconst getHostName = appSERPManager.getHostName;\r\nconst getNoteContentInputRows = function () {\r\n let zRows = Math.floor((nz(UIS.resultPageHeight, 1000) - 360) / 21);\r\n return zRows;\r\n}\r\nconst getNoteMemoRows = function (xMemoString?:string) {\r\n let zMaxRows = Math.floor((nz(UIS.resultPageHeight, 1000) - 150) / 18);\r\n let zRows=nz(xMemoString,\"\").split(\"\\n\").length + 2;\r\n zRows=Math.max(zRows,5);\r\n zRows=Math.min(zRows,zMaxRows);\r\n return zRows;\r\n}\r\n\r\nconst clickCoverImageRelatedLink = function (xCoverImageRelatedURL: string) {\r\n if (xCoverImageRelatedURL) {\r\n window.open(xCoverImageRelatedURL, '_blank').focus();\r\n }\r\n}\r\n\r\nconst clickOptionalImage = function (xOptImageURL: string, xOptImageIndex: number, xPageSection: IFC_Page_Section) {\r\n if (xOptImageURL && xPageSection && xPageSection.optionalCoverImageSourceURLs) {\r\n xPageSection.coverImageURL = xOptImageURL;\r\n let zOptImageSourceURL = xPageSection.optionalCoverImageSourceURLs[xOptImageIndex];\r\n if (zOptImageSourceURL) {\r\n clickChangeCoverImage4PageSection(xPageSection, xOptImageURL, zOptImageSourceURL);\r\n }\r\n // appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\r\n }\r\n}\r\n\r\nconst clickRemoveCoverImage4PageSection = function (xEditingPageSection: IFC_Page_Section) {\r\n if (!xEditingPageSection) return;\r\n appUserContentManager.updatePageSection(UIS.currentUserContentPageGUID, xEditingPageSection._GUID, {\r\n coverImageURL: \"\"\r\n });\r\n}\r\n\r\nconst clickChangeCoverImage4PageSection = async function (xEditingPageSection: IFC_Page_Section, xNewCoverInput?: string, xNewCoverSourceURL?: string) {\r\n if (!xEditingPageSection) return;\r\n\r\n let zNewCoverSourceURL = xNewCoverSourceURL;\r\n let zNewCoverInput: string = nz(xNewCoverInput, \"\");\r\n if (!zNewCoverInput) {\r\n zNewCoverInput = nz(prompt(\r\n \"To change the image, please enter\\n\\n * a new image URL \\n\\n * or the keywords to search images \\n\",\r\n nz(xEditingPageSection.coverImageURL, nz(UIS.selectedTextContent, xEditingPageSection.sectionTitle))\r\n ), \"\");\r\n }\r\n\r\n\r\n zNewCoverInput = nz(zNewCoverInput, \"\").trim();\r\n let zNewCoverInputLow = nz(zNewCoverInput, \"\").toLowerCase();\r\n if (!zNewCoverInput) return;\r\n\r\n let zPageSectionGUID = xEditingPageSection._GUID;\r\n\r\n // ** new image URL\r\n if (zNewCoverInputLow.startsWith(\"https://\")) {\r\n clickRemoveCoverImage4PageSection(xEditingPageSection);\r\n setTimeout(function () {\r\n // cerr(\"*zpgimg\",zPageSectionGUID,zNewCoverInput);\r\n appUserContentManager.updatePageSection(UIS.currentUserContentPageGUID, zPageSectionGUID, {\r\n coverImageURL: zNewCoverInput,\r\n coverImageSourceURL: nz(zNewCoverSourceURL, \"\"),\r\n });\r\n }, 400);\r\n\r\n }\r\n // ** new image keywords\r\n else {\r\n xEditingPageSection.coverImageURL = \"\";\r\n xEditingPageSection._isImageNeeded = true;\r\n await appUserContentManager.addSERP2PageSection(xEditingPageSection, {q: zNewCoverInput, type: \"images\"});\r\n appUserContentManager.updatePageSection(UIS.currentUserContentPageGUID, zPageSectionGUID, {\r\n coverImageURL: nz(xEditingPageSection.coverImageURL, \"\"),\r\n coverImageSourceURL: nz(xEditingPageSection.coverImageSourceURL, \"\"),\r\n optionalCoverImageURLs: nz(xEditingPageSection.optionalCoverImageURLs, []),\r\n optionalCoverImageSourceURLs: nz(xEditingPageSection.optionalCoverImageSourceURLs, []),\r\n });\r\n\r\n appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\r\n }\r\n}\r\n\r\n\r\nconst clickMoveSectionTo = function (xSourcePageSection: IFC_Page_Section, xTargetPageSection: IFC_Page_Section) {\r\n appUserContentManager.movePageSectionsAfterTargetPageSection(UIS.currentUserContentPageGUID, xSourcePageSection, xTargetPageSection);\r\n}\r\n\r\nconst getMoveToPageSections = function (xCurrentSelectedPageSection: IFC_Page_Section) {\r\n let zResMoveToPageSections: IFC_Page_Section[] = [];\r\n let zPageSections = appUserContentManager.getCurrentPageSections();\r\n _.each(zPageSections, function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection) {\r\n if (xPageSection._headerSectionGUID == xCurrentSelectedPageSection._headerSectionGUID) {\r\n zResMoveToPageSections.push(xPageSection);\r\n }\r\n if (xPageSection._GUID == xCurrentSelectedPageSection._headerSectionGUID) {\r\n zResMoveToPageSections.push(xPageSection);\r\n }\r\n }\r\n });\r\n\r\n _.each(zPageSections, function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection) {\r\n if (xPageSection._headerSectionGUID != xCurrentSelectedPageSection._headerSectionGUID) {\r\n if (xPageSection._GUID == xCurrentSelectedPageSection._headerSectionGUID) {\r\n return;\r\n }\r\n if (xPageSection._parentSectionGUID == xCurrentSelectedPageSection._parentSectionGUID) {\r\n zResMoveToPageSections.push(xPageSection);\r\n }\r\n }\r\n\r\n }\r\n });\r\n\r\n return zResMoveToPageSections;\r\n}\r\n\r\nconst clickReturn = function () {\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.SIDEBAR_CLOSED;\r\n}\r\n\r\nconst blurInputText = function (xEvent: any, xEditingPageSection: IFC_Page_Section) {\r\n if (xEditingPageSection) {\r\n\r\n // * check title\r\n xEditingPageSection.sectionTitle = nz(xEditingPageSection.sectionTitle, \"\").trim();\r\n xEditingPageSection.sectionTitle = nz(xEditingPageSection.sectionTitle, \"Noname\");\r\n\r\n // * check reflinks All\r\n xEditingPageSection.refLinkAllString = nz(xEditingPageSection.refLinkAllString, \"\").trim();\r\n\r\n let zPageSectionToSave: IFC_Page_Section = appUserContentManager.getSection(UIS.currentUserContentPageGUID, xEditingPageSection._GUID);\r\n if (zPageSectionToSave) {\r\n zPageSectionToSave.sectionTitle = xEditingPageSection.sectionTitle;\r\n zPageSectionToSave.sectionBodyText = xEditingPageSection.sectionBodyText;\r\n zPageSectionToSave.refLinkAllString = xEditingPageSection.refLinkAllString;\r\n zPageSectionToSave.sectionMemo = xEditingPageSection.sectionMemo;\r\n appUserContentManager.saveEditingPageSection();\r\n\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n appUserContentManager.renderSection(zPageItem.templateGUID, xEditingPageSection)\r\n }\r\n }\r\n}\r\nconst onEnterPressed4SectionTitle = function (xEvent: any, xInputElementID: string) {\r\n $(\"#\" + xInputElementID).blur();\r\n}\r\n\r\nconst onEnterPressed4SectionRefLink = function (xEvent: any, xInputElementID: string) {\r\n $(\"#\" + xInputElementID).blur();\r\n}\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_input = _resolveComponent(\"el-input\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n ((!_unref(UIS).isSharingViewMode))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_SECTION_TEXT_EDITOR)\n ? (_openBlock(), _createElementBlock(\"h2\", _hoisted_4, _toDisplayString(_ctx.$t(\"Card_Text_Editor\")), 1))\n : _createCommentVNode(\"\", true),\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_SECTION_IMAGE_EDITOR)\n ? (_openBlock(), _createElementBlock(\"h2\", _hoisted_5, _toDisplayString(_ctx.$t(\"Card_Image_Editor\")), 1))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_SECTION_IMAGE_EDITOR)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n ((!_unref(UIS).isSharingViewMode) && __props.pageSection)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n (__props.pageSection.coverImageURL)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink margin5 mon-white-button border-silver mon-med-button\",\n style: {},\n onClick: _cache[0] || (_cache[0] = ($event: any) => (clickChangeCoverImage4PageSection(__props.pageSection)))\n }, [\n _cache[14] || (_cache[14] = _createElementVNode(\"i\", { class: \"ccc-icon-image2\" }, null, -1)),\n _cache[15] || (_cache[15] = _createTextVNode(\"  \")),\n _withDirectives(_createElementVNode(\"span\", null, _toDisplayString(_ctx.$t(\"Change_Image\")), 513), [\n [_vShow, _unref(UIS).rightMenuBarWidth>100]\n ])\n ])\n ]),\n (__props.pageSection.coverImageURL)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink margin10-lr\",\n style: {},\n onClick: _cache[1] || (_cache[1] = ($event: any) => (clickRemoveCoverImage4PageSection(__props.pageSection)))\n }, [\n _cache[16] || (_cache[16] = _createElementVNode(\"i\", { class: \"ccc-icon-cancel-circle2\" }, null, -1)),\n _cache[17] || (_cache[17] = _createTextVNode(\"  \")),\n _withDirectives(_createElementVNode(\"span\", null, _toDisplayString(_ctx.$t(\"Remove_Image\")), 513), [\n [_vShow, _unref(UIS).rightMenuBarWidth>100]\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true),\n (!__props.pageSection.coverImageURL)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_11, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink margin5 mon-white-button border-silver mon-med-button\",\n style: {},\n onClick: _cache[2] || (_cache[2] = ($event: any) => (clickChangeCoverImage4PageSection(__props.pageSection)))\n }, [\n _cache[18] || (_cache[18] = _createElementVNode(\"i\", { class: \"ccc-icon-plus-circle2\" }, null, -1)),\n _cache[19] || (_cache[19] = _createTextVNode(\"  \")),\n _withDirectives(_createElementVNode(\"span\", null, _toDisplayString(_ctx.$t(\"Add_Image\")), 513), [\n [_vShow, _unref(UIS).rightMenuBarWidth>100]\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true),\n (__props.pageSection.optionalCoverImageURLs && __props.pageSection.optionalCoverImageURLs.length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.pageSection.optionalCoverImageURLs, (optImageURL, optImageIndex) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: optImageIndex,\n class: \"inline-block margin2 clickable\",\n style: {\"width\":\"80px\"},\n onClick: _withModifiers(($event: any) => (clickOptionalImage(optImageURL,optImageIndex,__props.pageSection)), [\"stop\",\"prevent\"])\n }, [\n _createElementVNode(\"img\", {\n src: optImageURL,\n class: _normalizeClass([\"rc4 border-silver margin5\", {'opacity30':(optImageURL!=__props.pageSection.coverImageURL)}]),\n onerror: \"this.style.display='none';\",\n style: {\"max-height\":\"32px\",\"max-width\":\"60px\"}\n }, null, 10, _hoisted_14)\n ], 8, _hoisted_13))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n (__props.pageSection)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_15, [\n (__props.pageSection.coverImageURL)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_16, [\n _cache[20] || (_cache[20] = _createElementVNode(\"hr\", null, null, -1)),\n _createElementVNode(\"div\", _hoisted_17, [\n _createElementVNode(\"img\", {\n src: __props.pageSection.coverImageURL,\n class: \"rc2\",\n onerror: \"this.style.display='none';\",\n style: {\"max-width\":\"90%\",\"max-height\":\"600px\"}\n }, null, 8, _hoisted_18)\n ]),\n (__props.pageSection.coverImageSourceURL)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"uk-clearfix app-comment-lite margin5 clickable uk-animation-fast uk-animation-slide-right ca\",\n style: {},\n onClick: _cache[3] || (_cache[3] = _withModifiers(($event: any) => (clickCoverImageRelatedLink(__props.pageSection.coverImageSourceURL)), [\"stop\",\"prevent\"]))\n }, _toDisplayString(_unref(getHostName)(__props.pageSection.coverImageSourceURL)), 1))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true),\n ((!_unref(UIS).isSharingViewMode) && (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_SECTION_TEXT_EDITOR))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_19, [\n _createElementVNode(\"div\", _hoisted_20, [\n _createElementVNode(\"div\", _hoisted_21, [\n _createElementVNode(\"div\", _hoisted_22, [\n _createElementVNode(\"div\", _hoisted_23, _toDisplayString(_ctx.$t('Note_Title')), 1)\n ]),\n _createVNode(_component_el_input, {\n modelValue: _unref(UIS).currentEditingPageSection.sectionTitle,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => ((_unref(UIS).currentEditingPageSection.sectionTitle) = $event)),\n id: 'inputTitle_'+__props.pageSection._GUID,\n rows: 1,\n resize: \"none\",\n onBlur: _cache[5] || (_cache[5] = ($event: any) => (blurInputText($event,_unref(UIS).currentEditingPageSection))),\n placeholder: _ctx.$t('Note_Title'),\n onKeydown: _cache[6] || (_cache[6] = _withKeys(_withModifiers(($event: any) => (onEnterPressed4SectionTitle($event,'inputTitle_'+__props.pageSection._GUID)), [\"stop\",\"prevent\"]), [\"enter\"])),\n style: {\"width\":\"100%\"},\n type: \"textarea\"\n }, null, 8, [\"modelValue\", \"id\", \"placeholder\"])\n ]),\n _createElementVNode(\"div\", _hoisted_24, [\n _createElementVNode(\"div\", _hoisted_25, [\n _createElementVNode(\"div\", _hoisted_26, _toDisplayString(_ctx.$t('Note_Content')), 1)\n ]),\n _createVNode(_component_el_input, {\n modelValue: _unref(UIS).currentEditingPageSection.sectionBodyText,\n \"onUpdate:modelValue\": _cache[7] || (_cache[7] = ($event: any) => ((_unref(UIS).currentEditingPageSection.sectionBodyText) = $event)),\n resize: \"none\",\n rows: getNoteContentInputRows(),\n placeholder: _ctx.$t('Note_Content'),\n onBlur: _cache[8] || (_cache[8] = ($event: any) => (blurInputText($event,_unref(UIS).currentEditingPageSection))),\n style: {\"width\":\"100%\"},\n type: \"textarea\"\n }, null, 8, [\"modelValue\", \"rows\", \"placeholder\"])\n ]),\n _createElementVNode(\"div\", _hoisted_27, [\n _createElementVNode(\"div\", _hoisted_28, [\n _createElementVNode(\"div\", _hoisted_29, _toDisplayString(_ctx.$t('Note_RefLinks')), 1)\n ]),\n _createVNode(_component_el_input, {\n modelValue: _unref(UIS).currentEditingPageSection.refLinkAllString,\n \"onUpdate:modelValue\": _cache[9] || (_cache[9] = ($event: any) => ((_unref(UIS).currentEditingPageSection.refLinkAllString) = $event)),\n id: 'inputRefLink_'+__props.pageSection._GUID,\n rows: 3,\n resize: \"none\",\n onBlur: _cache[10] || (_cache[10] = ($event: any) => (blurInputText($event,_unref(UIS).currentEditingPageSection))),\n placeholder: _ctx.$t('placeholder.NoteRefLinks'),\n onKeydown: _cache[11] || (_cache[11] = _withKeys(_withModifiers(($event: any) => (onEnterPressed4SectionRefLink($event,'inputRefLink_'+__props.pageSection._GUID)), [\"stop\",\"prevent\"]), [\"enter\"])),\n style: {\"width\":\"100%\"},\n type: \"textarea\"\n }, null, 8, [\"modelValue\", \"id\", \"placeholder\"])\n ]),\n _cache[21] || (_cache[21] = _createElementVNode(\"div\", {\n class: \"\",\n style: {\"height\":\"32px\"}\n }, null, -1))\n ]),\n _createElementVNode(\"div\", _hoisted_30, [\n _createElementVNode(\"div\", _hoisted_31, [\n _createElementVNode(\"div\", _hoisted_32, [\n _createElementVNode(\"div\", _hoisted_33, _toDisplayString(_ctx.$t('Memo')), 1)\n ]),\n _withDirectives(_createElementVNode(\"textarea\", {\n \"onUpdate:modelValue\": _cache[12] || (_cache[12] = ($event: any) => ((_unref(UIS).currentEditingPageSection.sectionMemo) = $event)),\n id: \"txtInputEditingSectionMemo\",\n resize: \"none\",\n rows: getNoteMemoRows(_unref(UIS).currentEditingPageSection.sectionMemo),\n placeholder: _ctx.$t('messages.PrivateMemoNote'),\n onBlur: _cache[13] || (_cache[13] = ($event: any) => (blurInputText($event,_unref(UIS).currentEditingPageSection))),\n class: \"chat-box memo-back rc2 padding10\",\n style: {\"width\":\"100%\",\"border\":\"none\",\"margin-top\":\"10px\"},\n type: \"textarea\"\n }, null, 40, _hoisted_34), [\n [_vModelText, _unref(UIS).currentEditingPageSection.sectionMemo]\n ])\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","import script from \"./PageSectionEditor.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PageSectionEditor.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withModifiers as _withModifiers, withKeys as _withKeys, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx } from \"vue\"\n\nconst _hoisted_1 = { class: \"absolute-max text16 rc3 background-white-99 ccc-back-blur padding10 hover-overflow\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"uk-clearfix\"\n}\nconst _hoisted_3 = { class: \"margin10-lr no-select text16 nowrap no-overflow ellipsis\" }\nconst _hoisted_4 = { class: \"inline-block text-black-30 bold\" }\nconst _hoisted_5 = {\n key: 1,\n style: {\"width\":\"calc(100% - 55px)\",\"margin-left\":\"20px\"}\n}\nconst _hoisted_6 = { class: \"ellipsis inline-block margin10 width100\" }\nconst _hoisted_7 = {\n class: \"marginb10 ca width100\",\n style: {}\n}\nconst _hoisted_8 = { class: \"uk-clearfix text14 la\" }\nconst _hoisted_9 = { class: \"inline-block text-black bold\" }\nconst _hoisted_10 = {\n class: \"marginb10 ca width100\",\n style: {}\n}\nconst _hoisted_11 = { class: \"uk-clearfix text14 la\" }\nconst _hoisted_12 = { class: \"inline-block text-black bold\" }\nconst _hoisted_13 = {\n key: 2,\n style: {\"width\":\"calc(100% - 55px)\",\"margin-left\":\"20px\"}\n}\nconst _hoisted_14 = { class: \"ellipsis inline-block margin10 width100\" }\nconst _hoisted_15 = {\n class: \"marginb10 ca width100\",\n style: {}\n}\nconst _hoisted_16 = { class: \"uk-clearfix text14 la\" }\nconst _hoisted_17 = { class: \"inline-block text-black bold\" }\nconst _hoisted_18 = {\n class: \"marginb10 ca width100\",\n style: {}\n}\nconst _hoisted_19 = { class: \"uk-clearfix text14 la\" }\nconst _hoisted_20 = { class: \"inline-block text-black bold\" }\nconst _hoisted_21 = {\n key: 3,\n style: {\"width\":\"calc(100% - 55px)\",\"margin-left\":\"20px\"}\n}\nconst _hoisted_22 = { class: \"ellipsis inline-block margin10 width100\" }\nconst _hoisted_23 = {\n class: \"marginb10 la width100\",\n style: {}\n}\nconst _hoisted_24 = { class: \"uk-clearfix text14 la\" }\nconst _hoisted_25 = { class: \"inline-block text-black bold\" }\n\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\nimport {reactive} from \"vue\";\r\nimport {IFC_Play_Options} from \"@/codes/_20.def/dataTypes\";\r\n\r\n\r\nimport {\r\n IFC_AIManager,\r\n IFC_AIPrompt_Provider,\r\n IFC_PageTemplateManager,\r\n IFC_SERPManager,\r\n IFC_UserContentManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {IFC_Page_Section} from \"@/codes/_20.def/dataTypes\";\r\nimport {TYPE_INDEX_SIDEBAR, TYPE_SECTION} from \"@/codes/_20.def/_modDataDict\";\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var clearObject: any;\r\ndeclare var assignArray: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var chance: any;\r\n\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\n\r\nvar appAIManager: IFC_AIManager = window.appAIManager;\r\nvar appPageTemplateManager: IFC_PageTemplateManager = window.appPageTemplateManager;\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\nvar appSERPManager: IFC_SERPManager = window.appSERPManager;\r\n\r\n\r\nconst __default__ = {\r\n computed: {\r\n TYPE_SECTION() {\r\n return TYPE_SECTION\r\n },\r\n\r\n },\r\n\r\n props: {\r\n pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true\r\n },\r\n },\r\n methods: {},\r\n name: \"PagePlayOptionsEditor\",\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\n\r\nlet currentPagePlayOptions: IFC_Play_Options = nz(UIS.currentPageData?.playOptions, {});\r\n\r\nconst getHostName = appSERPManager.getHostName;\r\nconst getNoteContentInputRows = function () {\r\n let zRows = Math.floor((nz(UIS.resultPageHeight, 1000) - 640) / 20);\r\n return zRows;\r\n}\r\n\r\nconst clickCoverImageRelatedLink = function (xCoverImageRelatedURL: string) {\r\n if (xCoverImageRelatedURL) {\r\n window.open(xCoverImageRelatedURL, '_blank').focus();\r\n }\r\n}\r\n\r\nconst clickOptionalImage = function (xOptImageURL: string, xOptImageIndex: number, xPageSection: IFC_Page_Section) {\r\n if (xOptImageURL && xPageSection && xPageSection.optionalCoverImageSourceURLs) {\r\n xPageSection.coverImageURL = xOptImageURL;\r\n let zOptImageSourceURL = xPageSection.optionalCoverImageSourceURLs[xOptImageIndex];\r\n if (zOptImageSourceURL) {\r\n clickChangeCoverImage4PageSection(xPageSection, xOptImageURL, zOptImageSourceURL);\r\n }\r\n // appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\r\n }\r\n}\r\n\r\nconst clickRemoveCoverImage4PageSection = function (xEditingPageSection: IFC_Page_Section) {\r\n if (!xEditingPageSection) return;\r\n appUserContentManager.updatePageSection(UIS.currentUserContentPageGUID, xEditingPageSection._GUID, {\r\n coverImageURL: \"\"\r\n });\r\n}\r\n\r\nconst clickChangeCoverImage4PageSection = async function (xEditingPageSection: IFC_Page_Section, xNewCoverInput?: string, xNewCoverSourceURL?: string) {\r\n if (!xEditingPageSection) return;\r\n\r\n let zNewCoverSourceURL = xNewCoverSourceURL;\r\n let zNewCoverInput: string = nz(xNewCoverInput, \"\");\r\n if (!zNewCoverInput) {\r\n zNewCoverInput = nz(prompt(\r\n \"To change the image, please enter\\n\\n * a new image URL \\n\\n * or the keywords to search images \\n\",\r\n nz(xEditingPageSection.coverImageURL, xEditingPageSection.sectionTitle)\r\n ), \"\");\r\n }\r\n\r\n\r\n zNewCoverInput = nz(zNewCoverInput, \"\").trim();\r\n let zNewCoverInputLow = nz(zNewCoverInput, \"\").toLowerCase();\r\n if (!zNewCoverInput) return;\r\n\r\n let zPageSectionGUID = xEditingPageSection._GUID;\r\n\r\n // ** new image URL\r\n if (zNewCoverInputLow.startsWith(\"https://\")) {\r\n clickRemoveCoverImage4PageSection(xEditingPageSection);\r\n setTimeout(function () {\r\n // cerr(\"*zpgimg\",zPageSectionGUID,zNewCoverInput);\r\n appUserContentManager.updatePageSection(UIS.currentUserContentPageGUID, zPageSectionGUID, {\r\n coverImageURL: zNewCoverInput,\r\n coverImageSourceURL: nz(zNewCoverSourceURL, \"\"),\r\n });\r\n }, 400);\r\n\r\n }\r\n // ** new image keywords\r\n else {\r\n xEditingPageSection.coverImageURL = \"\";\r\n xEditingPageSection._isImageNeeded = true;\r\n await appUserContentManager.addSERP2PageSection(xEditingPageSection, {q: zNewCoverInput, type: \"images\"});\r\n appUserContentManager.updatePageSection(UIS.currentUserContentPageGUID, zPageSectionGUID, {\r\n coverImageURL: nz(xEditingPageSection.coverImageURL, \"\"),\r\n coverImageSourceURL: nz(xEditingPageSection.coverImageSourceURL, \"\"),\r\n optionalCoverImageURLs: nz(xEditingPageSection.optionalCoverImageURLs, []),\r\n optionalCoverImageSourceURLs: nz(xEditingPageSection.optionalCoverImageSourceURLs, []),\r\n });\r\n\r\n appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\r\n }\r\n}\r\n\r\n\r\nconst clickMoveSectionTo = function (xSourcePageSection: IFC_Page_Section, xTargetPageSection: IFC_Page_Section) {\r\n appUserContentManager.movePageSectionsAfterTargetPageSection(UIS.currentUserContentPageGUID, xSourcePageSection, xTargetPageSection);\r\n}\r\n\r\nconst getMoveToPageSections = function (xCurrentSelectedPageSection: IFC_Page_Section) {\r\n let zResMoveToPageSections: IFC_Page_Section[] = [];\r\n let zPageSections = appUserContentManager.getCurrentPageSections();\r\n _.each(zPageSections, function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection) {\r\n if (xPageSection._headerSectionGUID == xCurrentSelectedPageSection._headerSectionGUID) {\r\n zResMoveToPageSections.push(xPageSection);\r\n }\r\n if (xPageSection._GUID == xCurrentSelectedPageSection._headerSectionGUID) {\r\n zResMoveToPageSections.push(xPageSection);\r\n }\r\n }\r\n });\r\n\r\n _.each(zPageSections, function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection) {\r\n if (xPageSection._headerSectionGUID != xCurrentSelectedPageSection._headerSectionGUID) {\r\n if (xPageSection._GUID == xCurrentSelectedPageSection._headerSectionGUID) {\r\n return;\r\n }\r\n if (xPageSection._parentSectionGUID == xCurrentSelectedPageSection._parentSectionGUID) {\r\n zResMoveToPageSections.push(xPageSection);\r\n }\r\n }\r\n\r\n }\r\n });\r\n\r\n return zResMoveToPageSections;\r\n}\r\n\r\n\r\nconst blurInputText = function (xEvent: any) {\r\n appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\r\n}\r\nconst onEnterPressed4SectionTitle = function (xEvent: any, xInputElementID: string) {\r\n $(\"#\" + xInputElementID).blur();\r\n}\r\nconst clickCheckOption=function(xOptionName:string){\r\n if (xOptionName==\"HideRefs4AIReplySlide\"){\r\n currentPagePlayOptions.ifHideRefs4AIReplySlide=!currentPagePlayOptions.ifHideRefs4AIReplySlide;\r\n }\r\n if (xOptionName==\"HideAllRefLink\"){\r\n currentPagePlayOptions.ifHideAllRefLink=!currentPagePlayOptions.ifHideAllRefLink;\r\n }\r\n appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_input = _resolveComponent(\"el-input\")!\n const _component_el_checkbox = _resolveComponent(\"el-checkbox\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n ((!_unref(UIS).isSharingViewMode))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"h2\", _hoisted_4, _toDisplayString(_ctx.$t(\"PAGE_PLAY_OPTIONS_EDITOR\")), 1)\n ])\n ]))\n : _createCommentVNode(\"\", true),\n ((!_unref(UIS).isSharingViewMode))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", _hoisted_9, _toDisplayString(_ctx.$t('Front_Cover_Title')), 1)\n ]),\n _createVNode(_component_el_input, {\n modelValue: _unref(UIS).currentFrontCoverSection.sectionTitle,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_unref(UIS).currentFrontCoverSection.sectionTitle) = $event)),\n id: 'inputTitle_Front_Cover',\n rows: 1,\n resize: \"none\",\n onBlur: _cache[1] || (_cache[1] = ($event: any) => (blurInputText($event))),\n placeholder: _ctx.$t('placeholder.FrontCoverTitle'),\n onKeydown: _cache[2] || (_cache[2] = _withKeys(_withModifiers(($event: any) => (onEnterPressed4SectionTitle($event,'inputTitle_Front_Cover')), [\"stop\",\"prevent\"]), [\"enter\"])),\n style: {\"width\":\"100%\"},\n type: \"textarea\"\n }, null, 8, [\"modelValue\", \"placeholder\"])\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"div\", _hoisted_12, _toDisplayString(_ctx.$t('Front_Cover_Content')), 1)\n ]),\n _createVNode(_component_el_input, {\n modelValue: _unref(UIS).currentFrontCoverSection.sectionBodyText,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => ((_unref(UIS).currentFrontCoverSection.sectionBodyText) = $event)),\n resize: \"none\",\n rows: 5,\n placeholder: _ctx.$t('placeholder.FrontCoverContent'),\n onBlur: _cache[4] || (_cache[4] = ($event: any) => (blurInputText($event))),\n style: {\"width\":\"100%\"},\n type: \"textarea\"\n }, null, 8, [\"modelValue\", \"placeholder\"])\n ]),\n _cache[12] || (_cache[12] = _createElementVNode(\"div\", {\n class: \"\",\n style: {\"height\":\"32px\"}\n }, null, -1))\n ])\n ]))\n : _createCommentVNode(\"\", true),\n ((!_unref(UIS).isSharingViewMode))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_13, [\n _createElementVNode(\"div\", _hoisted_14, [\n _createElementVNode(\"div\", _hoisted_15, [\n _createElementVNode(\"div\", _hoisted_16, [\n _createElementVNode(\"div\", _hoisted_17, _toDisplayString(_ctx.$t('Back_Cover_Title')), 1)\n ]),\n _createVNode(_component_el_input, {\n modelValue: _unref(UIS).currentBackCoverSection.sectionTitle,\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => ((_unref(UIS).currentBackCoverSection.sectionTitle) = $event)),\n id: 'inputTitle_Back_Cover',\n rows: 1,\n resize: \"none\",\n onBlur: _cache[6] || (_cache[6] = ($event: any) => (blurInputText($event))),\n placeholder: _ctx.$t('placeholder.BackCoverTitle'),\n onKeydown: _cache[7] || (_cache[7] = _withKeys(_withModifiers(($event: any) => (onEnterPressed4SectionTitle($event,'inputTitle_Back_Cover')), [\"stop\",\"prevent\"]), [\"enter\"])),\n style: {\"width\":\"100%\"},\n type: \"textarea\"\n }, null, 8, [\"modelValue\", \"placeholder\"])\n ]),\n _createElementVNode(\"div\", _hoisted_18, [\n _createElementVNode(\"div\", _hoisted_19, [\n _createElementVNode(\"div\", _hoisted_20, _toDisplayString(_ctx.$t('Back_Cover_Content')), 1)\n ]),\n _createVNode(_component_el_input, {\n modelValue: _unref(UIS).currentBackCoverSection.sectionBodyText,\n \"onUpdate:modelValue\": _cache[8] || (_cache[8] = ($event: any) => ((_unref(UIS).currentBackCoverSection.sectionBodyText) = $event)),\n resize: \"none\",\n rows: 5,\n placeholder: _ctx.$t('placeholder.BackCoverContent'),\n onBlur: _cache[9] || (_cache[9] = ($event: any) => (blurInputText($event))),\n style: {\"width\":\"100%\"},\n type: \"textarea\"\n }, null, 8, [\"modelValue\", \"placeholder\"])\n ]),\n _cache[13] || (_cache[13] = _createElementVNode(\"div\", {\n class: \"\",\n style: {\"height\":\"32px\"}\n }, null, -1))\n ])\n ]))\n : _createCommentVNode(\"\", true),\n ((!_unref(UIS).isSharingViewMode))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_21, [\n _createElementVNode(\"div\", _hoisted_22, [\n _createElementVNode(\"div\", _hoisted_23, [\n _createElementVNode(\"div\", _hoisted_24, [\n _createElementVNode(\"div\", _hoisted_25, _toDisplayString(_ctx.$t('RefLink_Display_Options')), 1)\n ]),\n _createVNode(_component_el_checkbox, {\n modelValue: _unref(currentPagePlayOptions).ifHideAllRefLink,\n \"onUpdate:modelValue\": _cache[10] || (_cache[10] = ($event: any) => ((_unref(currentPagePlayOptions).ifHideAllRefLink) = $event)),\n onClick: _cache[11] || (_cache[11] = ($event: any) => (clickCheckOption('HideAllRefLink')))\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"messages.HideAllRefLink\")), 1)\n ]),\n _: 1\n }, 8, [\"modelValue\"])\n ]),\n _cache[14] || (_cache[14] = _createElementVNode(\"div\", {\n class: \"\",\n style: {\"height\":\"32px\"}\n }, null, -1))\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","import script from \"./PagePlayOptionsEditor.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PagePlayOptionsEditor.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, vShow as _vShow, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeStyle as _normalizeStyle, normalizeClass as _normalizeClass } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"uk-clearfix\"\n}\nconst _hoisted_2 = { class: \"la text14 text-black bold\" }\nconst _hoisted_3 = { class: \"uk-clearfix text12B text-black-30 ca margin10\" }\nconst _hoisted_4 = { class: \"ca\" }\nconst _hoisted_5 = {\n key: 1,\n class: \"uk-clearfix\"\n}\nconst _hoisted_6 = { class: \"lt text14 text-black bold\" }\nconst _hoisted_7 = {\n id: \"divStarredItemList\",\n class: \"hover-overflow\",\n style: {\"position\":\"absolute\",\"top\":\"42px\",\"left\":\"0px\",\"bottom\":\"0px\",\"right\":\"0px\"}\n}\nconst _hoisted_8 = [\"onDragenter\", \"onDragleave\", \"onDragover\", \"onDrop\"]\nconst _hoisted_9 = [\"id\"]\n\nimport {\r\n TYPE_AI_ACTION,\r\n TYPE_EVENT,\r\n TYPE_INDEX_SIDEBAR,\r\n TYPE_INPUT_COMMAND,\r\n} from \"@/codes/_20.def/_modDataDict\";\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\nimport {IFC_AI_Session, IFC_LAYOUT_OBJECT} from \"@/codes/_20.def/dataTypes\";\r\n\r\n\r\n//@TS-NOCHECK\r\nimport {TYPE_SECTION} from \"@/codes/_20.def/_modDataDict\";\r\nimport {\r\n IFC_AIManager,\r\n IFC_AIPrompt_Provider,\r\n IFC_CommandManager,\r\n IFC_PageTemplateManager,\r\n IFC_SERPManager,\r\n IFC_UserContentManager\r\n} from \"../../_20.def/managerIFs\";\r\nimport {IFC_Page_Data, IFC_Page_Section} from \"../../_20.def/dataTypes\";\r\nimport {GUID_TYPE, IFC_Page_Column} from \"@/codes/_20.def/dataTypes\";\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\n\r\ndeclare var window: any;\r\ndeclare var cwrn: any;\r\ndeclare var cerr: any;\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\ndeclare var appCommandManager: IFC_CommandManager;\r\ndeclare var appSERPManager: IFC_SERPManager;\r\ndeclare var appAIManager: IFC_AIManager;\r\n\r\ndeclare var clearObject: any;\r\ndeclare var assignArray: any;\r\ndeclare var clearArray: any;\r\ndeclare var insertAfterID: any;\r\n\r\ndeclare var $: any;\r\ndeclare var _: any;\r\n\r\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\r\nvar appPageTemplateManager: IFC_PageTemplateManager = window.appPageTemplateManager;\r\n\r\nconst UIP = window.UIP;\r\n\r\nconst PagColumns: [IFC_Page_Column] = window.PageColumns;\r\n\r\nconst BR = window.CHAR_BR;\r\nconst AppMaster = window.AppMaster;\r\nconst eventLog = [];\r\n\r\ndeclare var nz: any;\r\ndeclare var setInputFocus: any;\r\nlet nzz = nz;\r\n\r\nlet defaultFlagColorStyleArray = UIS.currentUserContentPageTemplate.flagColorStyles;\r\nlet defaultHeaderStyleArray = UIS.currentUserContentPageTemplate.headerStyles;\r\nlet defaultLayoutStyleArray = UIS.currentUserContentPageTemplate.layoutStyleObjects;\r\n\r\nconst __default__ = {\r\n name: 'panRefInfoBar',\r\n\r\n computed: {\r\n isParentSectionViewMenu(): boolean {\r\n //\r\n // console.log(\"*pg col\", UIS.currentUserContentPageColumnIndex)\r\n // console.log(\"*sel sec\", appUserContentManager.getCurrentSelectedPageSectionGUID())\r\n if (UIS.currentUserContentPageColumnIndex == 0) {\r\n return false;\r\n } else if (UIS.currentUserContentPageColumnIndex > 0) {\r\n let zPageSectionGUID = appUserContentManager.getCurrentSelectedPageSectionGUID();\r\n if (zPageSectionGUID) return false\r\n }\r\n return true;\r\n },\r\n memoCount() {\r\n let zCurrentPageData = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n let zResCount = 0;\r\n\r\n _.each(zCurrentPageData.starredSectionGUIDs, function (xSatrredPageSectionGUID: GUID_TYPE) {\r\n let zSatrredSection: IFC_Page_Section = appUserContentManager.getSection(UIS.currentUserContentPageGUID, xSatrredPageSectionGUID);\r\n if (zSatrredSection) {\r\n if (nz(zSatrredSection.sectionMemo, \"\").trim()) {\r\n zResCount++;\r\n }\r\n }\r\n });\r\n\r\n return zResCount;\r\n },\r\n currentPageData() {\r\n let zPageData: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n return zPageData\r\n },\r\n\r\n pageSectionCount() {\r\n let zPageSections: IFC_Page_Section[] = appUserContentManager.getCurrentPageSections();\r\n return zPageSections.length;\r\n },\r\n\r\n pageColumn(): IFC_Page_Column {\r\n let zPageColumns = window.PageColumns;\r\n let zCurrentPageColumn: IFC_Page_Column = nz(zPageColumns[UIS.currentUserContentPageColumnIndex], {});\r\n return zCurrentPageColumn;\r\n }\r\n\r\n\r\n },\r\n\r\n watch: {},\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\nconst getHostName = appSERPManager.getHostName;\r\n\r\nlet getSectionFlagColorStyle = appUserContentManager.getSectionFlagColorStyle;\r\nlet getSectionHeaderStyle = appUserContentManager.getSectionHeaderStyle;\r\n\r\n/*const clickEditPageSection = function (xEvent: any, xPageColumn: IFC_Page_Column, xPageContentTable: number, xTargetPageSectionGUID: string, xTargetPageSection: IFC_Page_Section) {\r\n /!*appUserContentManager.resetPageColumn(xPageContentTable);\r\n appUserContentManager.extendPageColumn(UIS.currentUserContentPageColumnIndex, xTargetPageSectionGUID);*!/\r\n if (UIS.isSharingViewMode) {\r\n //\r\n } else {\r\n appUserContentManager.startEditingPageSection(xTargetPageSection, TYPE_INDEX_SIDEBAR.PAGE_SECTION_TEXT_EDITOR);\r\n\r\n }\r\n\r\n}*/\r\n\r\n\r\nconst clickSwitchSectionHeaderStyle = function (xPageSectionGUID: GUID_TYPE, xHeaderCode: string) {\r\n\r\n /*let zHeaderCode = nz(defaultHeaderStyleArray[0], {}).headerCode;\r\n if ((!xHeaderCode) || (xHeaderCode == zHeaderCode)) {\r\n zHeaderCode = nz(defaultHeaderStyleArray[1], {}).headerCode;\r\n }\r\n appUserContentManager.updatePageSection(\"\", xPageSectionGUID, {headerCode: nz(zHeaderCode, \"\")});*/\r\n}\r\n\r\nconst clickSwitchGroupLayoutStyle = function (xPageSectionGUID: GUID_TYPE, xLayoutCode: string) {\r\n\r\n let zResLayoutCode = \"\";\r\n\r\n // eslint-disable-next-line no-undef\r\n cerr(\"*clcglyc x1\", xLayoutCode);\r\n\r\n if (!xLayoutCode) {\r\n zResLayoutCode = \"Default\";\r\n } else {\r\n let zI = 0;\r\n _.each(defaultLayoutStyleArray, function (xStyleObj: IFC_LAYOUT_OBJECT) {\r\n zI++;\r\n if (!xStyleObj) return;\r\n let zLayoutCode = xStyleObj.layoutCode;\r\n if (zLayoutCode == xLayoutCode) {\r\n zResLayoutCode = defaultLayoutStyleArray[zI % defaultLayoutStyleArray.length].layoutCode;\r\n // eslint-disable-next-line no-undef\r\n cerr(\"*clcglyc x2\", zI, zResLayoutCode);\r\n }\r\n })\r\n }\r\n\r\n appUserContentManager.updatePageSection(\"\", xPageSectionGUID, {layoutCode: nz(zResLayoutCode, \"\")});\r\n}\r\n\r\n\r\nconst clickEditTitle = function (xEvent: any, xPageColumn: IFC_Page_Column, xPageContentTable: number, xTargetPageSectionGUID: string, xTargetPageSection: IFC_Page_Section) {\r\n appUserContentManager.startEditingPageSection(xTargetPageSection, TYPE_INDEX_SIDEBAR.PAGE_SECTION_TEXT_EDITOR);\r\n}\r\n\r\nconst clickPageSectionTitle = function (xPageSection: IFC_Page_Section) {\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, xPageSection._GUID)\r\n}\r\n\r\n// ** aka. dive_in\r\nconst clickDiveIntoPageSection = function (xPageColumn: IFC_Page_Column, xPageContentTable: number, xTargetPageSectionGUID: string) {\r\n appUserContentManager.resetPageColumn(xPageContentTable);\r\n appUserContentManager.extendPageColumn(UIS.currentUserContentPageColumnIndex, xTargetPageSectionGUID);\r\n}\r\n\r\nconst clickEditCoverImage4PageSection = function (xEditingPageSection: IFC_Page_Section) {\r\n appUserContentManager.startEditingPageSection(xEditingPageSection, TYPE_INDEX_SIDEBAR.PAGE_SECTION_IMAGE_EDITOR);\r\n\r\n /*let zCoverURL = prompt(\"Image URL\", nz(xEditingPageSection.coverImageURL, \"\"));\r\n if (zCoverURL) {\r\n appUserContentManager.updatePageSection(UIS.currentUserContentPageGUID, xEditingPageSection._GUID, {\r\n coverImageURL: zCoverURL\r\n });\r\n }*/\r\n}\r\n\r\n\r\nconst clickRemoveCoverImage4PageSection = function (xEditingPageSection: IFC_Page_Section) {\r\n if (!xEditingPageSection) return;\r\n appUserContentManager.updatePageSection(UIS.currentUserContentPageGUID, xEditingPageSection._GUID, {\r\n coverImageURL: \"\"\r\n });\r\n}\r\n\r\n/*const clickMoreLikeThis = async function (xTargetPageSection: IFC_Page_Section) {\r\n\r\n if (!xTargetPageSection) return console.log(\"*mis sc\");\r\n if (!xTargetPageSection.sectionTitle) return console.log(\"*mis sc ttl\");\r\n\r\n if (confirm(i18n.global.t(\"messages.Confirm2GenerateMoreLikeThis\"))) {\r\n appUserContentManager.upsertPageSectionsByMoreLikeThis(UIS.currentUserContentPageGUID, xTargetPageSection);\r\n }\r\n\r\n}*/\r\n\r\n\r\n/*\r\nconst clickAskAI4SinglePageSection = function (xTargetPageSection: IFC_Page_Section) {\r\n appUserContentManager.askAI4OnePageSection(xTargetPageSection);\r\n}\r\n\r\nconst clickAskAI4Questions = function (xTargetPageSection: IFC_Page_Section) {\r\n if (!xTargetPageSection) return;\r\n if (!xTargetPageSection.sectionTitle) return\r\n appUserContentManager.upsertPageSectionsFromAIPlusSearch(UIS.currentUserContentPageGUID, {\r\n userMessage: xTargetPageSection.sectionTitle,\r\n AIActionType: TYPE_AI_ACTION.ForQuestions,\r\n });\r\n}\r\n\r\nconst clickAskAI4Points = function (xTargetPageSection: IFC_Page_Section) {\r\n if (!xTargetPageSection) return;\r\n if (!xTargetPageSection.sectionTitle) return\r\n appUserContentManager.upsertPageSectionsFromAIPlusSearch(UIS.currentUserContentPageGUID, {\r\n userMessage: xTargetPageSection.sectionTitle,\r\n AIActionType: TYPE_AI_ACTION.ForPoints,\r\n });\r\n}\r\n*/\r\n\r\nconst clickGotoWebsite = function (xRefLink: string) {\r\n if (!xRefLink) return;\r\n window.open(xRefLink, '_blank').focus();\r\n}\r\nconst clickCoverImageRelatedLink = function (xCoverImageRelatedURL: string) {\r\n if (xCoverImageRelatedURL) {\r\n window.open(xCoverImageRelatedURL, '_blank').focus();\r\n }\r\n}\r\n\r\n\r\nconst getPageSection = function (xGUID: GUID_TYPE): IFC_Page_Section {\r\n return (appUserContentManager.getSection(UIS.currentUserContentPageGUID, xGUID));\r\n}\r\n\r\nconst onStarredSectionGUIDOrderSraggingStart = function (event: any) {\r\n if ((event.oldIndex >= 0) && (UIS.currentPageData?.starredSectionGUIDs)) {\r\n // let zSlectedStarredSectionGUID = UIS.currentPageData?.starredSectionGUIDs[event.oldIndex];\r\n // assignArray(UIS.selectedStarredPageSectionGUIDs,[zSlectedStarredSectionGUID]);\r\n // gotoRefItemByStarredPageSectionSelection();\r\n }\r\n}\r\n\r\nconst onStarredSectionGUIDOrderChange = function (event: any) {\r\n\r\n // Insert it at new index\r\n if (event.newIndex > 0) {\r\n // Remove item from old index\r\n let zDraggingStarredItemGUID: string = nz(UIS.currentPageData?.starredSectionGUIDs?.splice(event.oldIndex, 1)[0], \"\");\r\n\r\n UIS.currentPageData?.starredSectionGUIDs?.splice(event.newIndex, 0, zDraggingStarredItemGUID);\r\n\r\n let zGroupGUIDs = appUserContentManager.getGroupItemGUIDs(zDraggingStarredItemGUID);\r\n let zHeaderSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zGroupGUIDs[0]);\r\n let zDraggingSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zDraggingStarredItemGUID);\r\n \r\n if (zHeaderSection?._GUID) {\r\n \r\n zDraggingSection._headerSectionGUID = zHeaderSection._GUID;\r\n // alert(zHeaderSection.sectionTitle);\r\n }\r\n assignArray(UIS.selectedStarredPageSectionGUIDs,[zDraggingStarredItemGUID]);\r\n\r\n gotoDeckItemByDraggingSection(zDraggingSection);\r\n //\r\n appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\r\n\r\n\r\n\r\n } else {\r\n let zBackupStarredSectionGUIDs = _.clone(UIS.currentPageData?.starredSectionGUIDs);\r\n clearArray(UIS.currentPageData?.starredSectionGUIDs);\r\n setTimeout(function () {\r\n assignArray(UIS.currentPageData?.starredSectionGUIDs, zBackupStarredSectionGUIDs);\r\n }, 100);\r\n\r\n }\r\n\r\n}\r\n\r\n/*const clickPlayOptions = function () {\r\n if (UIS.currentPageData) {\r\n if (!UIS.currentPageData.coverFrontSection) {\r\n UIS.currentPageData.coverFrontSection = {\r\n sectionTitle: \"\",\r\n sectionBodyText: \"\",\r\n }\r\n }\r\n if (!UIS.currentPageData.coverBackSection) {\r\n UIS.currentPageData.coverBackSection = {\r\n sectionTitle: \"\",\r\n sectionBodyText: \"\",\r\n }\r\n }\r\n\r\n UIS.currentPageData.coverFrontSection.sectionType = TYPE_SECTION.COVER;\r\n UIS.currentPageData.coverBackSection.sectionType = TYPE_SECTION.COVER;\r\n\r\n UIS.currentFrontCoverSection = UIS.currentPageData.coverFrontSection;\r\n UIS.currentBackCoverSection = UIS.currentPageData.coverBackSection;\r\n UIS.currentIndexSideBarType = TYPE_INDEX_SIDEBAR.PAGE_PLAY_OPTIONS_EDITOR;\r\n }\r\n}*/\r\n\r\nconst checkIfRefItemSelectedInDeck = function (xPageSectionGUID: GUID_TYPE): boolean {\r\n if (!xPageSectionGUID) return false;\r\n\r\n let zCurrentSelectedPageSection = appUserContentManager.getCurrentSelectedPageSection();\r\n if (!zCurrentSelectedPageSection) return false;\r\n if (!zCurrentSelectedPageSection._GUID) return false;\r\n if (zCurrentSelectedPageSection._GUID != xPageSectionGUID) return false;\r\n\r\n return true;\r\n}\r\n\r\nconst checkIfRefItemSelectedInPlaylist = function (xPageSectionGUID: GUID_TYPE): boolean {\r\n if (!xPageSectionGUID) return false;\r\n if (!_.includes(UIS.selectedStarredPageSectionGUIDs, xPageSectionGUID)) return false;\r\n return true;\r\n}\r\n\r\n\r\nconst gotoDeckItemByDraggingSection = function (xDraggingPageSection:IFC_Page_Section) {\r\n\r\n let zCurrentDraggingPageSection=xDraggingPageSection;\r\n if (zCurrentDraggingPageSection) {\r\n assignArray(UIS.selectedStarredPageSectionGUIDs, [zCurrentDraggingPageSection._GUID]);\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, \"\", \"\");\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, zCurrentDraggingPageSection._GUID, zCurrentDraggingPageSection._headerSectionGUID);\r\n setTimeout(function () {\r\n appUserContentManager.scrollPageTo(zCurrentDraggingPageSection._GUID, \"center\");\r\n }, 500);\r\n }\r\n}\r\n\r\nconst gotoRefItemByStarredPageSectionSelection = function () {\r\n // let zCurrentSelectedPageSection = appUserContentManager.getCurrentSelectedPageSection();\r\n let zCurrentSelectedPageSectionGUID = UIS.selectedStarredPageSectionGUIDs[0];\r\n let zCurrentSelectedPageSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zCurrentSelectedPageSectionGUID);\r\n if (!zCurrentSelectedPageSection) return;\r\n if (!zCurrentSelectedPageSection._GUID) return;\r\n if (!zCurrentSelectedPageSection._isStarred) return;\r\n\r\n setTimeout(function () {\r\n let zRefElement = document.getElementById(\"divRefItem_\" + zCurrentSelectedPageSection._GUID);\r\n if (!zRefElement) return;\r\n // cwrn(\"*slct\", \"divRefItem_\" + zCurrentSelectedPageSection._GUID, zRefElement);\r\n const rect = zRefElement.getBoundingClientRect();\r\n const isVisible = (\r\n rect.top >= 0 &&\r\n rect.left >= 0 &&\r\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\r\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\r\n );\r\n\r\n if (!isVisible) {\r\n zRefElement.scrollIntoView({behavior: \"smooth\", block: \"center\"});\r\n }\r\n }, 300);\r\n\r\n}\r\n\r\n\r\n// * drag & drop section into playlist\r\nconst DROP_HEADER_ITEM_GUID = \"DROP_HEADER_ITEM_GUID\";\r\n\r\nconst onDragOverRefItem = function (e: any, xTargetItemGUID: GUID_TYPE) {\r\n try {\r\n if (e) {\r\n if (UIS.currentDraggingPageSection) {\r\n e.preventDefault();\r\n }\r\n }\r\n } catch (e) {\r\n cerr(e);\r\n }\r\n\r\n}\r\n\r\nconst onDragEnterRefItem = function (e: any, xTargetItemGUID: GUID_TYPE) {\r\n // cerr(\"*onDgEterRefit\", xTargetItemGUID, UIS.currentDraggingPageSection);\r\n try {\r\n if (e) {\r\n UIS.currentDragOverStarredItemGUID = xTargetItemGUID;\r\n e.preventDefault();\r\n }\r\n } catch (err) {\r\n cerr(err);\r\n }\r\n}\r\n\r\nconst onDragLeaveRefItem = function (e: any, xTargetItemGUID: GUID_TYPE) {\r\n /*try {\r\n if (e) {\r\n // UIS.currentDragOverStarredItemGUID = \"\";\r\n }\r\n } catch (e) {\r\n cerr(e);\r\n }*/\r\n}\r\n\r\n\r\n// * Dragged from Deck and Dropped in playlist\r\nconst onDropRefItem = function (e: any, xTargetItemGUID: GUID_TYPE) {\r\n\r\n\r\n if (UIS.currentDraggingPageSection && xTargetItemGUID) {\r\n\r\n if (UIS.currentDraggingPageSection._GUID == xTargetItemGUID) {\r\n return;\r\n }\r\n\r\n let zStarredSectionGUIDs = nz(UIS.currentPageData?.starredSectionGUIDs, []);\r\n\r\n if (xTargetItemGUID == DROP_HEADER_ITEM_GUID) {\r\n /*assignArray(zStarredSectionGUIDs, _.without(zStarredSectionGUIDs, UIS.currentDraggingPageSection._GUID));\r\n assignArray(UIS.selectedStarredPageSectionGUIDs, []);*/\r\n } else {\r\n assignArray(zStarredSectionGUIDs, _.without(zStarredSectionGUIDs, UIS.currentDraggingPageSection._GUID));\r\n }\r\n\r\n let zCurrentDraggingPageSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, UIS.currentDraggingPageSection._GUID);\r\n zCurrentDraggingPageSection._isStarred = true;\r\n\r\n let zGroupGUIDs = appUserContentManager.getGroupItemGUIDs(xTargetItemGUID);\r\n let zHeaderSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zGroupGUIDs[0]);\r\n if (zHeaderSection?._GUID) {\r\n zCurrentDraggingPageSection._headerSectionGUID = zHeaderSection._GUID;\r\n }\r\n\r\n insertAfterID(zCurrentDraggingPageSection._GUID, xTargetItemGUID, zStarredSectionGUIDs);\r\n\r\n appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\r\n\r\n gotoDeckItemByDraggingSection(zCurrentDraggingPageSection);\r\n\r\n }\r\n\r\n\r\n UIS.currentDraggingPageSection = undefined;\r\n UIS.currentDragOverStarredItemGUID = \"\";\r\n}\r\n\r\nwindow.emitter.on(TYPE_EVENT.PAGE_SECTION_STAR_CHANGED, gotoRefItemByStarredPageSectionSelection);\r\nwindow.emitter.on(TYPE_EVENT.PAGE_SECTION_STARRED_POS_CHANGED, gotoRefItemByStarredPageSectionSelection);\r\nwindow.emitter.on(TYPE_EVENT.PAGE_SECTION_SELECTION_CHANGED, function () {\r\n // * if starred section selected\r\n let zSelectedPageSection: IFC_Page_Section = appUserContentManager.getCurrentSelectedPageSection();\r\n let zStarredSectionGUIDs = UIS.currentPageData?.starredSectionGUIDs;\r\n if (zSelectedPageSection && _.includes(zStarredSectionGUIDs, zSelectedPageSection._GUID)) {\r\n if (zSelectedPageSection.sectionType == TYPE_SECTION.HEADER) {\r\n assignArray(UIS.selectedStarredPageSectionGUIDs, appUserContentManager.getGroupItemGUIDs(zSelectedPageSection._GUID));\r\n }\r\n if (zSelectedPageSection.sectionType == TYPE_SECTION.NOTE_CARD) {\r\n assignArray(UIS.selectedStarredPageSectionGUIDs, [zSelectedPageSection._GUID])\r\n }\r\n } else {\r\n clearArray(UIS.selectedStarredPageSectionGUIDs);\r\n }\r\n gotoRefItemByStarredPageSectionSelection();\r\n});\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_PageSectionRefItem = _resolveComponent(\"PageSectionRefItem\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n id: \"panRefInfoBar0\",\n class: _normalizeClass([\"no-select\", {'background-black-10':(_unref(UIS).currentDraggingPageSection)}]),\n style: {\"position\":\"absolute\",\"top\":\"0px\",\"left\":\"10px\",\"bottom\":\"0px\",\"right\":\"0px\",\"padding-top\":\"10px\",\"padding-left\":\"10px\"}\n }, [\n (_ctx.currentPageData && _ctx.currentPageData.starredSectionGUIDs && (!_ctx.currentPageData.starredSectionGUIDs.length))\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _cache[0] || (_cache[0] = _createElementVNode(\"i\", { class: \"ccc-icon-star-empty img16 margin5-lr text-black-30\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Starred_Items\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_3, _toDisplayString(_ctx.$t(\"messages.OPIntroStarringItem\")), 1),\n _withDirectives(_createElementVNode(\"div\", _hoisted_4, _cache[1] || (_cache[1] = [\n _createElementVNode(\"div\", { class: \"uk-clearfix ca opacity60\" }, [\n _createElementVNode(\"img\", {\n class: \"inline-block rc4\",\n style: {\"width\":\"90%\",\"max-width\":\"280px\"},\n src: \"/img/op-intro/op-intro-starring.webp\"\n })\n ], -1)\n ]), 512), [\n [_vShow, !_unref(UIS).ifLockingPageUI]\n ])\n ], 512)), [\n [_vShow, _ctx.pageSectionCount>1]\n ])\n : _createCommentVNode(\"\", true),\n (_ctx.currentPageData && _ctx.currentPageData.starredSectionGUIDs && _ctx.currentPageData.starredSectionGUIDs.length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _cache[2] || (_cache[2] = _createElementVNode(\"i\", { class: \"ccc-icon-star-full img16 margin5-lr ccc-tag-yellow\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Starred_Items\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.currentPageData.starredSectionGUIDs, (starredSectionGUID) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"\",\n key: starredSectionGUID,\n onDragenter: ($event: any) => (onDragEnterRefItem($event,starredSectionGUID)),\n onDragleave: ($event: any) => (onDragLeaveRefItem($event,starredSectionGUID)),\n onDragover: ($event: any) => (onDragOverRefItem($event,starredSectionGUID)),\n onDrop: ($event: any) => (onDropRefItem($event,starredSectionGUID))\n }, [\n (starredSectionGUID && getPageSection(starredSectionGUID))\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"no-select\",\n id: 'divRefItem_'+starredSectionGUID\n }, [\n _createElementVNode(\"div\", {\n class: \"\",\n style: _normalizeStyle([{}, \r\n (_unref(UIS).currentDraggingPageSection?._GUID &&\r\n (_unref(UIS).currentDragOverStarredItemGUID==starredSectionGUID))?'border-bottom: 1px solid #fd644a;'\r\n :'border-bottom: 1px solid transparent;'])\n }, [\n _createVNode(_component_PageSectionRefItem, {\n pageSection: getPageSection(starredSectionGUID),\n isSelectedByDeck: checkIfRefItemSelectedInDeck(starredSectionGUID),\n isSelectedByPlaylist: checkIfRefItemSelectedInPlaylist(starredSectionGUID)\n }, null, 8, [\"pageSection\", \"isSelectedByDeck\", \"isSelectedByPlaylist\"])\n ], 4)\n ], 8, _hoisted_9))\n : _createCommentVNode(\"\", true)\n ], 40, _hoisted_8))\n }), 128))\n ])\n ]),\n _cache[3] || (_cache[3] = _createElementVNode(\"div\", { style: {\"height\":\"320px\"} }, null, -1))\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ], 2))\n}\n}\n\n})","import script from \"./panRefInfoBar.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./panRefInfoBar.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, vShow as _vShow, withDirectives as _withDirectives, withModifiers as _withModifiers, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass } from \"vue\"\n\nconst _hoisted_1 = { key: 0 }\nconst _hoisted_2 = { class: \"uk-clearfix no-select\" }\nconst _hoisted_3 = { class: \"uk-clearfix\" }\nconst _hoisted_4 = {\n key: 1,\n style: {\"width\":\"20px\"}\n}\nconst _hoisted_5 = { class: \"uk-clearfix la text12B no-wrap no-overflow\" }\nconst _hoisted_6 = {\n class: \"lt img24 ca text14\",\n style: {\"margin-top\":\"1px\"}\n}\nconst _hoisted_7 = {\n class: \"inline-block opacity60\",\n style: {\"margin-top\":\"2px\"}\n}\nconst _hoisted_8 = { class: \"inline-block opacity60\" }\nconst _hoisted_9 = {\n key: 0,\n class: \"inline-block margin5-lr\"\n}\nconst _hoisted_10 = {\n key: 1,\n class: \"inline-block margin5-lr\"\n}\nconst _hoisted_11 = [\"src\"]\nconst _hoisted_12 = [\"title\"]\nconst _hoisted_13 = [\"title\"]\nconst _hoisted_14 = {\n key: 0,\n class: \"rt text12B opacity60\",\n style: {\"line-height\":\"16px\"}\n}\nconst _hoisted_15 = {\n class: \"rt margin5-lr text-black-60 opacity20 text12B\",\n style: {\"margin-top\":\"4px\"}\n}\nconst _hoisted_16 = [\"title\"]\nconst _hoisted_17 = [\"title\"]\nconst _hoisted_18 = [\"title\"]\n\nimport {\r\n TYPE_AI_ACTION, TYPE_EVENT,\r\n TYPE_FILTER_CODE,\r\n TYPE_INDEX_SIDEBAR,\r\n TYPE_INPUT_COMMAND,\r\n TYPE_NOTE_SOURCE, TYPE_SECTION,\r\n} from \"@/codes/_20.def/_modDataDict\";\r\nimport {GUID_TYPE, IFC_ResultsFromSERP} from \"@/codes/_20.def/dataTypes\";\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\n\r\n\r\nimport {\r\n IFC_AIManager,\r\n IFC_CommandManager,\r\n IFC_PageTemplateManager,\r\n IFC_SERPManager,\r\n IFC_SharingManager,\r\n IFC_UserContentManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {IFC_Page_Data, IFC_Page_Section} from \"@/codes/_20.def/dataTypes\";\r\n\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\"\r\n\r\ndeclare var appSharingManager: IFC_SharingManager;\r\ndeclare var appUserContentManager: IFC_UserContentManager;\r\n\r\ndeclare var window: any;\r\ndeclare var nz: any;\r\ndeclare var moveElementAfter: any;\r\ndeclare var cwrn: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var chance: any;\r\ndeclare var assignArray: any;\r\n\r\nvar appAIManager: IFC_AIManager = window.appAIManager;\r\nvar appPageTemplateManager: IFC_PageTemplateManager = window.appPageTemplateManager;\r\nvar appCommandManager: IFC_CommandManager = window.appCommandManager;\r\nvar appSERPManager: IFC_SERPManager = window.appSERPManager;\r\n\r\nconst __default__ = {\r\n props: {\r\n\r\n pageSection: {\r\n type: Object as () => IFC_Page_Section,\r\n required: true,\r\n },\r\n isSelectedByDeck: {\r\n type: Boolean,\r\n required: false,\r\n },\r\n isSelectedByPlaylist: {\r\n type: Boolean,\r\n required: false,\r\n }\r\n\r\n\r\n },\r\n\r\n computed: {\r\n currentPageData() {\r\n let zPageData: IFC_Page_Data = appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID];\r\n return zPageData\r\n },\r\n isWideItem() {\r\n return (UIS.rightMenuBarWidth > 450);\r\n }\r\n },\r\n\r\n methods: {},\r\n name: \"PageSectionRefItem\",\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\nlet nzz = nz;\r\nlet textIntoHTML = function (xText: string) {\r\n let zHTML = nz(xText, \"\").trim();\r\n zHTML = zHTML.replaceAll(\"\\n\", \"
\");\r\n return zHTML;\r\n}\r\n\r\n// eslint-disable-next-line no-undef\r\nlet getFavIconURL = appSERPManager.getFavIconURL;\r\nlet getHostName = appSERPManager.getHostName;\r\nlet getSectionFlagColorStyle = appUserContentManager.getSectionFlagColorStyle;\r\n\r\nconst clickDiveIntoPageSection = function (xEvent: any, xTargetPageSectionGUID: string) {\r\n // appUserContentManager.resetPageColumn(xPageColumnIndex);\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*clkdv\",xTargetPageSectionGUID);\r\n appUserContentManager.extendPageColumn(UIS.currentUserContentPageColumnIndex, xTargetPageSectionGUID);\r\n}\r\n\r\nconst clickReturn2Home = function () {\r\n appUserContentManager.resetPageColumn(0);\r\n}\r\n\r\n\r\nconst clickRefItem = function (xPageSection: IFC_Page_Section) {\r\n if (!xPageSection) return;\r\n if (!xPageSection._GUID) return;\r\n\r\n if (xPageSection.sectionType == TYPE_SECTION.HEADER) {\r\n clickGroupSelect(xPageSection._GUID);\r\n clickLocatePageSectionInTopicDeck(xPageSection);\r\n }\r\n\r\n if (xPageSection.sectionType == TYPE_SECTION.NOTE_CARD) {\r\n assignArray(UIS.selectedStarredPageSectionGUIDs, [xPageSection._GUID]);\r\n clickLocatePageSectionInTopicDeck(xPageSection);\r\n }\r\n\r\n}\r\n\r\nconst dblclickRefItem = function (xPageSection: IFC_Page_Section) {\r\n //\r\n}\r\n\r\nconst clickLocatePageSectionInTopicDeck = function (xPageSection: IFC_Page_Section) {\r\n if (!xPageSection) return;\r\n if (!xPageSection._GUID) return;\r\n\r\n if (UIS.currentUserContentPageColumnIndex > 0) {\r\n appUserContentManager.resetPageColumn(0);\r\n }\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, xPageSection._GUID, nz(xPageSection._headerSectionGUID, xPageSection._GUID));\r\n setTimeout(function () {\r\n appUserContentManager.scrollPageTo(xPageSection._GUID, \"center\");\r\n }, 400);\r\n\r\n\r\n}\r\n\r\nconst clickPlayFromHere = function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection && xPageSection._GUID) {\r\n let zThemeName = UIS.currentPageData?.playOptions?.defaultThemeName;\r\n zThemeName = nz(zThemeName, \"black\");\r\n appSharingManager.playSlides(zThemeName, xPageSection._GUID, {isPreview: true});\r\n }\r\n}\r\n\r\nconst getSubPageSectionCount = function (xPageSection: IFC_Page_Section): number {\r\n let zSubPageSections: [IFC_Page_Section?] = appUserContentManager.getSectionListByParentSectionGUID(UIS.currentUserContentPageGUID, xPageSection._GUID);\r\n if (zSubPageSections && zSubPageSections.length) {\r\n return zSubPageSections.length;\r\n }\r\n return 0;\r\n}\r\n\r\nconst clickEditPageSection = function (xTargetPageSection: IFC_Page_Section) {\r\n if (UIS.isSharingViewMode) {\r\n //\r\n } else {\r\n // eslint-disable-next-line no-undef\r\n // cerr(\"*clk EN\",xTargetPageSection)\r\n appUserContentManager.startEditingPageSection(xTargetPageSection, TYPE_INDEX_SIDEBAR.PAGE_SECTION_TEXT_EDITOR);\r\n }\r\n}\r\n\r\nconst clickBack = function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection && xPageSection._GUID) {\r\n if ((UIS.currentUserContentPageColumnIndex > 0)) {\r\n // ** return to last column\r\n appUserContentManager.resetPageColumn(UIS.currentUserContentPageColumnIndex - 1);\r\n }\r\n }\r\n}\r\n\r\nconst clickPreview = function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection) {\r\n let zThemeName = UIS.currentPageData?.playOptions?.defaultThemeName;\r\n zThemeName = nz(zThemeName, \"black\");\r\n appSharingManager.playSlides(zThemeName, xPageSection._GUID, {isPreview: true});\r\n }\r\n}\r\n\r\nconst clickGroupSelect = function (xSelectedStarredItemGUID: GUID_TYPE, ifReselect?: boolean) {\r\n assignArray(UIS.selectedStarredPageSectionGUIDs, appUserContentManager.getGroupItemGUIDs(xSelectedStarredItemGUID));\r\n /*if ((UIS.selectedStarredPageSectionGUIDs.length <= 1) || ifReselect) {\r\n assignArray(UIS.selectedStarredPageSectionGUIDs, getGroupItemGUIDs(xSelectedStarredItemGUID));\r\n } else {\r\n assignArray(UIS.selectedStarredPageSectionGUIDs, [xSelectedStarredItemGUID]);\r\n }*/\r\n}\r\n\r\nconst clickCancelSelection = function () {\r\n assignArray(UIS.selectedStarredPageSectionGUIDs, []);\r\n}\r\n\r\nconst clickMoveHeaderUp = function (xHeaderSection: IFC_Page_Section) {\r\n //\r\n let zStarredGUIDList = UIS.currentPageData?.starredSectionGUIDs;\r\n if (!zStarredGUIDList) return;\r\n if (!xHeaderSection) return;\r\n let zSatrredHeaderGUIDs = _.keys(UIS.starredHeaderAndSubGUIDsMap);\r\n let targetIndex = zStarredGUIDList.indexOf(xHeaderSection._GUID);\r\n if (targetIndex === -1) return -1;\r\n let lastHeaderIndex = -1;\r\n for (let i = 0; i < (targetIndex); i++) {\r\n let currentStarredGUID = zStarredGUIDList[i];\r\n if (zSatrredHeaderGUIDs.includes(currentStarredGUID)) {\r\n lastHeaderIndex = i;\r\n }\r\n }\r\n if (lastHeaderIndex < 0) lastHeaderIndex = 0;\r\n // cwrn(\"*lsthdr ^idx\", lastHeaderIndex);\r\n let zSubGUIDMap = nz(UIS.starredHeaderAndSubGUIDsMap, {});\r\n appUserContentManager.moveStarredSectionGUIDsTo(UIS.currentUserContentPageGUID,\r\n _.union([xHeaderSection._GUID], nz(zSubGUIDMap[xHeaderSection._GUID], []))\r\n , lastHeaderIndex);\r\n clickGroupSelect(xHeaderSection._GUID, true);\r\n // appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, xHeaderSection._GUID, xHeaderSection._GUID);\r\n\r\n window.emitter.emit(TYPE_EVENT.PAGE_SECTION_STARRED_POS_CHANGED);\r\n}\r\n\r\nconst clickMoveHeaderDown = function (xHeaderSection: IFC_Page_Section) {\r\n //\r\n //\r\n let zStarredGUIDList = UIS.currentPageData?.starredSectionGUIDs;\r\n if (!zStarredGUIDList) return;\r\n if (!xHeaderSection) return;\r\n let zSatrredHeaderGUIDs = _.keys(UIS.starredHeaderAndSubGUIDsMap);\r\n let targetIndex = zStarredGUIDList.indexOf(xHeaderSection._GUID);\r\n if (targetIndex === -1) return -1;\r\n let nextHeaderIndex = zStarredGUIDList.length;\r\n let nextHeaderIndex2 = zStarredGUIDList.length;\r\n for (let i = (zStarredGUIDList.length - 1); i > (targetIndex); i--) {\r\n let currentStarredGUID = zStarredGUIDList[i];\r\n if (zSatrredHeaderGUIDs.includes(currentStarredGUID)) {\r\n nextHeaderIndex2 = nextHeaderIndex;\r\n nextHeaderIndex = i;\r\n }\r\n }\r\n if (nextHeaderIndex2 > (zStarredGUIDList.length)) nextHeaderIndex2 = zStarredGUIDList.length;\r\n cwrn(\"*nxthdr idx\", nextHeaderIndex2);\r\n let zSubGUIDMap = nz(UIS.starredHeaderAndSubGUIDsMap, {});\r\n appUserContentManager.moveStarredSectionGUIDsTo(UIS.currentUserContentPageGUID,\r\n _.union([xHeaderSection._GUID], nz(zSubGUIDMap[xHeaderSection._GUID], []))\r\n , nextHeaderIndex2);\r\n clickGroupSelect(xHeaderSection._GUID, true);\r\n // appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, xHeaderSection._GUID, xHeaderSection._GUID);\r\n\r\n window.emitter.emit(TYPE_EVENT.PAGE_SECTION_STARRED_POS_CHANGED);\r\n}\r\n\r\nconst clickUnstar = appUserContentManager.unstarPageSection;\r\n\r\nconst onMouseDownRefItem = function (xEvent: any, xPageSection: IFC_Page_Section) {\r\n assignArray(UIS.selectedStarredPageSectionGUIDs, [xPageSection._GUID]);\r\n}\r\n\r\nconst onDragRefItemStart = function (xEvent: any, xPageSection: IFC_Page_Section) {\r\n UIS.currentDraggingPageSection = xPageSection;\r\n xEvent.dataTransfer.setDragImage(UIS.sectionDraggingImg, 10, 10);\r\n}\r\n\r\nconst onDragRefItemEnd = function (xEvent: any, xPageSection: IFC_Page_Section) {\r\n UIS.currentDraggingPageSection = undefined;\r\n UIS.currentDragOverStarredItemGUID = \"\";\r\n}\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (__props.pageSection && __props.pageSection._GUID)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"uk-clearfix no-select hotLink\", {\r\n 'ccc-left-margin-selected':__props.isSelectedByPlaylist,\r\n 'nav-card-norc':__props.isSelectedByPlaylist,\r\n 'ccc-left-margin-unselected':!__props.isSelectedByPlaylist,\r\n }])\n }, [\n (getSubPageSectionCount(__props.pageSection) || (!_unref(UIS).isSharingViewMode))\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"uk-clearfix no-select no-overflow\", {\r\n 'text-black':(__props.isSelectedByPlaylist && (!__props.isSelectedByDeck)),\r\n 'ccc-color-primary':(__props.isSelectedByPlaylist && (__props.isSelectedByDeck) && (_unref(UIS).selectedStarredPageSectionGUIDs.length==1)),\r\n }])\n }, [\n _createElementVNode(\"div\", {\n class: \"uk-clearfix la no-select text14\",\n style: _normalizeStyle(\r\n {'height':((__props.pageSection.sectionType==_unref(TYPE_SECTION).HEADER)?'34px':'30px')}),\n onClick: _cache[10] || (_cache[10] = _withModifiers(($event: any) => (clickRefItem(__props.pageSection)), [\"stop\",\"prevent\"]))\n }, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", {\n class: \"lt\",\n style: _normalizeStyle([{\"padding-top\":\"0px\"}, {\r\n 'margin-top':((__props.pageSection.sectionType==_unref(TYPE_SECTION).HEADER)?'5px':'2px'),\r\n 'margin-left':((__props.pageSection.sectionType==_unref(TYPE_SECTION).HEADER)?'5px':'15px'),\r\n }]),\n onDblclick: _cache[3] || (_cache[3] = _withModifiers(($event: any) => (clickCancelSelection()), [\"stop\",\"prevent\"]))\n }, [\n (\r\n ((!__props.isSelectedByPlaylist) || (_unref(UIS).selectedStarredPageSectionGUIDs.length<=1))\r\n &&\r\n (__props.pageSection.sectionType!=_unref(TYPE_SECTION).HEADER))\n ? (_openBlock(), _createElementBlock(\"img\", {\n key: 0,\n class: \"lt vsb-handle draggable opacity30\",\n style: {\"height\":\"24px\",\"padding-top\":\"2px\"},\n src: \"/img/drag-handle.png\",\n draggable: \"true\",\n onMousedown: _cache[0] || (_cache[0] = ($event: any) => (onMouseDownRefItem($event,__props.pageSection))),\n onDragstart: _cache[1] || (_cache[1] = ($event: any) => (onDragRefItemStart($event,__props.pageSection), _ctx.$emit('dragStartPageSection'))),\n onDragend: _cache[2] || (_cache[2] = ($event: any) => (onDragRefItemEnd($event,__props.pageSection)))\n }, null, 32))\n : _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_4, null, 512)), [\n [_vShow, (__props.pageSection.sectionType!=_unref(TYPE_SECTION).HEADER)]\n ])\n ], 36),\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _withDirectives(_createElementVNode(\"div\", _hoisted_7, \" # \", 512), [\n [_vShow, __props.pageSection.sectionType==_unref(TYPE_SECTION).HEADER]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_8, \" - \", 512), [\n [_vShow, __props.pageSection.sectionType==_unref(TYPE_SECTION).NOTE_CARD]\n ])\n ]),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"lt no-overflow no-wrap ellipsis\", {'opacity60':(__props.isSelectedByPlaylist && (_unref(UIS).selectedStarredPageSectionGUIDs.length>1) && (__props.pageSection.sectionType==_unref(TYPE_SECTION).NOTE_CARD))}]),\n style: _normalizeStyle([{\"margin-top\":\"4px\",\"margin-right\":\"2px\"}, {\r\n 'max-width':(__props.isSelectedByPlaylist)?'calc(100% - 240px)':'calc(100% - 32px)',\r\n 'margin-left':((__props.pageSection.sectionType==_unref(TYPE_SECTION).HEADER)?'2px':'2px')}]),\n onDblclick: _cache[4] || (_cache[4] = _withModifiers(($event: any) => (dblclickRefItem(__props.pageSection)), [\"stop\",\"prevent\"]))\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"no-wrap no-overflow inline-block margin2-lr\", {\r\n 'text12B':__props.pageSection.sectionType==_unref(TYPE_SECTION).NOTE_CARD,\r\n 'text14 bold':__props.pageSection.sectionType==_unref(TYPE_SECTION).HEADER,\r\n }]),\n style: {\"padding-bottom\":\"4px\"}\n }, _toDisplayString(__props.pageSection.sectionTitle) + \" \" + _toDisplayString((__props.pageSection.sectionSourceType == _unref(TYPE_NOTE_SOURCE).WEB_EXA) ? '*' : ''), 3),\n (__props.pageSection.sectionMemo)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9, _cache[11] || (_cache[11] = [\n _createElementVNode(\"i\", {\n class: \"lt text12B ccc-icon-file-empty text-black-30 no-select gly-rotate-180\",\n style: {\"margin-top\":\"5px\"}\n }, null, -1)\n ])))\n : _createCommentVNode(\"\", true),\n (__props.pageSection.coverImageURL)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, [\n _createElementVNode(\"img\", {\n src: __props.pageSection.coverImageURL,\n style: {\"object-fit\":\"cover\",\"object-position\":\"center\",\"max-width\":\"100px\",\"max-height\":\"24px\",\"padding-bottom\":\"4px\"},\n class: \"rc4\"\n }, null, 8, _hoisted_11)\n ]))\n : _createCommentVNode(\"\", true)\n ], 38),\n _withDirectives(_createElementVNode(\"div\", {\n class: \"lt no-overflow no-wrap text-black-60 margin5-lr\",\n style: _normalizeStyle({'margin-top':(__props.pageSection.sectionType==_unref(TYPE_SECTION).HEADER)?'7px':'5px'})\n }, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink\",\n onClick: _cache[5] || (_cache[5] = _withModifiers(($event: any) => (clickPlayFromHere(__props.pageSection)), [\"stop\",\"prevent\"])),\n title: _ctx.$t('tooltips.playFromHere')\n }, _cache[12] || (_cache[12] = [\n _createElementVNode(\"i\", { class: \"ccc-icon-play4 img16 opacity60\" }, null, -1)\n ]), 8, _hoisted_12)\n ], 4), [\n [_vShow, __props.isSelectedByPlaylist\r\n && (\r\n (_unref(UIS).selectedStarredPageSectionGUIDs.length==1)\r\n ||\r\n (__props.pageSection.sectionType==_unref(TYPE_SECTION).HEADER)\r\n )]\n ]),\n _withDirectives(_createElementVNode(\"div\", {\n class: \"rt no-overflow no-wrap text-black-60 margin5-lr\",\n style: _normalizeStyle({'margin-top':(__props.pageSection.sectionType==_unref(TYPE_SECTION).HEADER)?'6px':'4px'})\n }, [\n _createElementVNode(\"div\", {\n class: \"inline-block margin5-lr hotLink\",\n onClick: _cache[6] || (_cache[6] = _withModifiers(($event: any) => (_unref(clickUnstar)(__props.pageSection)), [\"stop\",\"prevent\"])),\n title: \r\n (__props.pageSection.sectionType==_unref(TYPE_SECTION).NOTE_CARD)?\r\n _ctx.$t('tooltips.removeSlide'):_ctx.$t('tooltips.removeGroupSlides')\n }, [\n (_unref(UIS).selectedStarredPageSectionGUIDs.length>1)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_14, \" (\" + _toDisplayString(_unref(UIS).selectedStarredPageSectionGUIDs.length) + \") \", 1))\n : _createCommentVNode(\"\", true),\n _cache[13] || (_cache[13] = _createElementVNode(\"i\", {\n class: \"rt ccc-icon-cross2 img16\",\n style: {\"margin-top\":\"4px\"}\n }, null, -1))\n ], 8, _hoisted_13)\n ], 4), [\n [_vShow, __props.isSelectedByPlaylist\r\n && ((_unref(UIS).selectedStarredPageSectionGUIDs.length<=1) || (__props.pageSection.sectionType==_unref(TYPE_SECTION).HEADER))]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_15, \" | \", 512), [\n [_vShow, __props.isSelectedByPlaylist\r\n && ((_unref(UIS).selectedStarredPageSectionGUIDs.length<=1) || (__props.pageSection.sectionType==_unref(TYPE_SECTION).HEADER))]\n ]),\n _withDirectives(_createElementVNode(\"div\", {\n class: \"lt no-overflow no-wrap text-black-60 margin5-lr\",\n style: _normalizeStyle({'margin-top':(__props.pageSection.sectionType==_unref(TYPE_SECTION).HEADER)?'8px':'6px'})\n }, [\n _createElementVNode(\"i\", {\n class: \"ccc-icon-arrow-up8 text-black-60 hotLink margin5-lr\",\n onClick: _cache[7] || (_cache[7] = _withModifiers(($event: any) => (clickMoveHeaderUp(__props.pageSection)), [\"stop\",\"prevent\"])),\n title: _ctx.$t('tooltips.moveGroupUp')\n }, null, 8, _hoisted_16),\n _createElementVNode(\"i\", {\n class: \"ccc-icon-arrow-down8 text-black-60 hotLink margin5-lr\",\n onClick: _cache[8] || (_cache[8] = _withModifiers(($event: any) => (clickMoveHeaderDown(__props.pageSection)), [\"stop\",\"prevent\"])),\n title: _ctx.$t('tooltips.moveGroupDown')\n }, null, 8, _hoisted_17)\n ], 4), [\n [_vShow, __props.isSelectedByPlaylist\r\n && ((_unref(UIS).selectedStarredPageSectionGUIDs.length>=1) && (__props.pageSection.sectionType==_unref(TYPE_SECTION).HEADER))]\n ]),\n _withDirectives(_createElementVNode(\"div\", {\n class: \"rt no-overflow no-wrap text-black-60 margin5-lr\",\n style: _normalizeStyle([{}, {'margin-top':(__props.pageSection.sectionType==_unref(TYPE_SECTION).HEADER)?'8px':'6px'}])\n }, [\n _createElementVNode(\"div\", {\n class: \"inline-block margin5-lr hotLink\",\n onClick: _cache[9] || (_cache[9] = _withModifiers(($event: any) => (clickEditPageSection(__props.pageSection)), [\"stop\",\"prevent\"])),\n title: _ctx.$t('tooltips.editSlide')\n }, _cache[14] || (_cache[14] = [\n _createElementVNode(\"i\", { class: \"text12B ccc-icon-pencil6 img16\" }, null, -1)\n ]), 8, _hoisted_18)\n ], 4), [\n [_vShow, __props.isSelectedByPlaylist\r\n && ((_unref(UIS).selectedStarredPageSectionGUIDs.length<=1) || (__props.pageSection.sectionType==_unref(TYPE_SECTION).HEADER))]\n ])\n ])\n ])\n ], 4)\n ], 2))\n : _createCommentVNode(\"\", true)\n ], 2)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./PageSectionRefItem.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PageSectionRefItem.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","// eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n// @ts-nocheck\r\n\r\nimport '@/blockService';\r\n\r\nimport '@/codes/_10.sys/A0Committee';\r\nimport '@/codes/_10.sys/InitCommittee';\r\nimport '@/codes/_10.sys/UICommittee';\r\nimport '@/codes/_10.sys/UserAuthCommittee';\r\n\r\n\r\nimport '@/codes/_30.biz/monAIPromptProvider';\r\nimport '@/codes/_30.biz/monDefaultPageTemplate';\r\nimport '@/codes/_30.biz/monDefaultAIActionData';\r\n\r\nimport '@/codes/_30.biz/monUserManager';\r\nimport '@/codes/_30.biz/monLicenseProvider';\r\nimport '@/codes/_30.biz/monAIManager';\r\nimport '@/codes/_30.biz/monSERPManager';\r\nimport '@/codes/_30.biz/monPageTemplateManager';\r\nimport '@/codes/_30.biz/monStorageManager';\r\nimport '@/codes/_30.biz/monSharingManager';\r\nimport '@/codes/_30.biz/monUserContentManager';\r\nimport '@/codes/_30.biz/monCommandManager';\r\n\r\n\r\n// import './registerServiceWorker'\r\nimport './css/_all.css';\r\n\r\n\r\nimport i18n from '@/codes/_90.lang/i18n';\r\nimport {createApp} from 'vue'\r\nimport ElementPlus from 'element-plus';\r\nimport VueSortable from \"vue3-sortablejs\"; // https://github.com/eliottvincent/vue3-sortablejs?tab=readme-ov-file\r\n\r\n\r\n/*import App from \"./App.vue\";\r\nconst vApp= createApp(App);\r\nvApp.use(i18n);\r\nvApp.use(ElementPlus);\r\nvApp.mount('#app');*/\r\n\r\n// * panMain\r\n\r\n\r\nimport panMain from \"@/codes/_40.view/panel/panMain.vue\";\r\nimport divUserInputCenter from \"@/codes/_40.view/divUserInputCenter.vue\";\r\nimport divNavButtonBar from \"@/codes/_40.view/divNavButtonBar.vue\";\r\nimport UserAccountMenu from \"@/codes/_40.view/menu/UserAccountMenu.vue\";\r\nimport SysTutorialMenu from \"@/codes/_40.view/menu/SysTutorialMenu.vue\";\r\nimport InsertObjectMenu from \"@/codes/_40.view/menu/InsertObjectMenu.vue\";\r\nimport SysLanguageMenu from \"@/codes/_40.view/menu/SysLanguageMenu.vue\";\r\nimport SysSlidePreviewDialog from \"@/codes/_40.view/compo/SysSlidePreviewDialog.vue\";\r\n\r\nconst vPanMain = createApp(panMain);\r\nvPanMain.component('UserAccountMenu', UserAccountMenu);\r\nvPanMain.use(i18n).use(ElementPlus).mount('#panMain');\r\n\r\nconst vDivUserInputCenter = createApp(divUserInputCenter);\r\nvDivUserInputCenter.component('SysLanguageMenu', SysLanguageMenu);\r\nvDivUserInputCenter.use(i18n).use(ElementPlus).mount('#divUserInputCenter');\r\n\r\n\r\nconst vDivNavButtonBar = createApp(divNavButtonBar);\r\nvDivNavButtonBar.component('InsertObjectMenu', InsertObjectMenu);\r\nvDivNavButtonBar.use(i18n).use(ElementPlus).mount('#divNavButtonBar');\r\n\r\n\r\n// * panSysFuncBar\r\nimport panSysFuncBar from \"@/codes/_40.view/panel/panSysFuncBar.vue\";\r\nimport PageOutputMenu from \"@/codes/_40.view/menu/PageOutputMenu.vue\";\r\nimport PagePublishMenu from \"@/codes/_40.view/menu/PagePublishMenu.vue\";\r\nimport PagePlayMenu from \"@/codes/_40.view/menu/PagePlayMenu.vue\";\r\nimport PageThemeMenu from \"@/codes/_40.view/menu/PageThemeMenu.vue\";\r\nimport AddCustomMenu from \"@/codes/_40.view/menu/AddCustomMenu.vue\";\r\n\r\nconst vpanSysFuncBar = createApp(panSysFuncBar);\r\nvpanSysFuncBar.component('PageOutputMenu', PageOutputMenu);\r\nvpanSysFuncBar.component('PagePublishMenu', PagePublishMenu);\r\nvpanSysFuncBar.component('PagePlayMenu', PagePlayMenu);\r\nvpanSysFuncBar.component('PageThemeMenu', PageThemeMenu);\r\nvpanSysFuncBar.component('SysLanguageMenu', SysLanguageMenu);\r\nvpanSysFuncBar.component(\"SysTutorialMenu\", SysTutorialMenu);\r\nvpanSysFuncBar.use(i18n).use(ElementPlus).mount('#panSysFuncBar');\r\n\r\n// * panSideBar\r\nimport panSideBar from \"@/codes/_40.view/panel/panSideBar.vue\";\r\n\r\nconst vPanSideBar = createApp(panSideBar);\r\nvPanSideBar.component('PageContentTable', PageContentTable);\r\nvPanSideBar.component('PageFileIndex', PageFileIndex);\r\nvPanSideBar.component('PageSectionEditor', PageSectionEditor);\r\nvPanSideBar.component('PageSectionElement', PageSectionElement);\r\nvPanSideBar.component('PageSectionView', PageSectionView);\r\nvPanSideBar.component('PagePlayOptionsEditor', PagePlayOptionsEditor);\r\nvPanSideBar.component('SysPromptEditor', SysPromptEditor);\r\nvPanSideBar.component('PageMemoView', PageMemoView);\r\nvPanSideBar.component(\"SysSlidePreviewDialog\", SysSlidePreviewDialog);\r\nvPanSideBar.use(i18n).use(ElementPlus).mount('#panSideBar');\r\n\r\n\r\n// * panDiveMenuBar\r\nimport panDiveMenuBar from \"@/codes/_40.view/panel/panDiveMenuBar.vue\";\r\nimport PageDiveIndex from \"@/codes/_40.view/compo/PageDiveIndex.vue\";\r\nimport PageFilterIndex from \"@/codes/_40.view/compo/PageFilterIndex.vue\";\r\n\r\nconst vPanDiveMenuBar = createApp(panDiveMenuBar);\r\nvPanDiveMenuBar.component('HeaderSectionMenu', HeaderSectionMenu);\r\nvPanDiveMenuBar.component('PageDiveIndex', PageDiveIndex);\r\nvPanDiveMenuBar.component('PageFilterIndex', PageFilterIndex);\r\nvPanDiveMenuBar.use(i18n).use(ElementPlus).mount('#panDiveMenuBar');\r\n\r\n// * panLockingUI\r\nimport panLockingUI from \"@/codes/_40.view/panel/panLockingUI.vue\";\r\n\r\nconst vPanLockingUI = createApp(panLockingUI);\r\nvPanLockingUI.use(i18n).use(ElementPlus).mount('#panLockingUI');\r\n\r\n// * panExceptionDialogs\r\nimport panExceptionDialogs from \"@/codes/_40.view/panel/panExceptionDialogs.vue\";\r\n\r\nconst vPanExceptionDialogs = createApp(panExceptionDialogs);\r\nvPanExceptionDialogs.use(i18n).use(ElementPlus).mount('#panExceptionDialogs');\r\n\r\n\r\n//\r\n// const vDivCommandInputs = createApp(divCommandInputs);\r\n// vDivCommandInputs.use(i18n).use(ElementPlus).mount('#divCommandInputs');\r\n\r\n// ** divResultPreview\r\n// import divResultPreview from \"@/codes/_40.view/x_divResultPreview.vue\";\r\n\r\n// const vDivResultPreview = createApp(divResultPreview);\r\n// vDivResultPreview.component('PageSectionElement', PageSectionElement);\r\n// vDivResultPreview.use(i18n).use(ElementPlus).mount('#divResultPreview');\r\n\r\n// ** divResultPages\r\nimport divResultPages from \"@/codes/_40.view/divResultPages.vue\";\r\nimport divEmptyPage from \"@/codes/_40.view/divEmptyPage.vue\";\r\nimport PageSectionElement from \"@/codes/_40.view/compo/PageSectionElement.vue\";\r\nimport PageContentTable from \"@/codes/_40.view/compo/PageContentTable.vue\";\r\n\r\nimport PageFileIndex from \"@/codes/_40.view/compo/PageFileIndex.vue\";\r\nimport HeaderSectionMenu from \"@/codes/_40.view/menu/HeaderSectionMenu.vue\";\r\nimport SectionContextMenu from \"@/codes/_40.view/menu/SectionContextMenu.vue\";\r\nimport PageSectionView from \"@/codes/_40.view/compo/PageSectionView.vue\";\r\nimport PageSectionEditor from \"@/codes/_40.view/compo/PageSectionEditor.vue\";\r\nimport PagePlayOptionsEditor from \"@/codes/_40.view/compo/PagePlayOptionsEditor.vue\";\r\nimport SysPromptEditor from \"@/codes/_40.view/compo/SysPromptEditor.vue\";\r\nimport PageMemoView from \"@/codes/_40.view/compo/PageMemoView.vue\";\r\n\r\nimport SysRoleIndex from \"@/codes/_40.view/compo/x_SysRoleIndex.vue\";\r\nimport panRefInfoBar from \"@/codes/_40.view/panel/panRefInfoBar.vue\";\r\n// import X_pageSectionUserGuideInput from \"@/codes/_40.view/compo/X_pageSectionUserGuideInput.vue\";\r\n// import {createAuth0} from \"@auth0/auth0-vue\";\r\n\r\nconst vDivResultPages = createApp(divResultPages);\r\nvDivResultPages.component('HeaderSectionMenu', HeaderSectionMenu);\r\nvDivResultPages.component('SectionContextMenu', SectionContextMenu);\r\nvDivResultPages.component('PageSectionElement', PageSectionElement);\r\nvDivResultPages.component('PageSectionView', PageSectionView);\r\n// vDivResultPages.component('X_pageSectionUserGuideInput', X_pageSectionUserGuideInput);\r\nvDivResultPages.use(i18n).use(ElementPlus).mount('#divResultPages');\r\n\r\n// ** divEmptyPage\r\nconst vDivEmptyPage = createApp(divEmptyPage);\r\nvDivEmptyPage.use(i18n).use(ElementPlus).mount('#divEmptyPage');\r\n\r\n// ** panRefInfoBar\r\nimport PageSectionSERPView from \"@/codes/_40.view/compo/x.PageSectionSERPView.vue\";\r\nimport PageSectionAIRefView from \"@/codes/_40.view/compo/x.PageSectionAIRefView.vue\";\r\nimport PageSectionRefItem from \"@/codes/_40.view/compo/PageSectionRefItem.vue\";\r\nimport SectionContextMenu from \"@/codes/_40.view/menu/SectionContextMenu.vue\";\r\n\r\nconst vPanRefInfoBar = createApp(panRefInfoBar);\r\n// vPanRefInfoBar.component('PageSectionSERPView', PageSectionSERPView);\r\n// vPanRefInfoBar.component('PageSectionAIRefView', PageSectionAIRefView);\r\nvPanRefInfoBar.component('PageSectionRefItem', PageSectionRefItem);\r\nvPanRefInfoBar.component('PageSectionElement', PageSectionElement);\r\nvPanRefInfoBar.component('PagePlayMenu', PagePlayMenu);\r\nvPanRefInfoBar.component('AddCustomMenu', AddCustomMenu);\r\nvPanRefInfoBar.use(i18n).use(ElementPlus).use(VueSortable).mount('#panRefInfoBar');\r\n\r\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.amdO = {};","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t143: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkFyndeck\"] = self[\"webpackChunkFyndeck\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [998], function() { return __webpack_require__(5738); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["checkGeoLoc","xGeoData","country_code2","document","body","innerHTML","title","window","location","hostname","_ipgeolocation","getGeolocation","innerWidth","TYPE_TEST_DATA","TYPE_SUBSCRIPTION_STATUS","TYPE_SUBSCRIPTION_PLAN","TYPE_SESSION_STATUS","TYPE_EVENT","TYPE_INDEX_SIDEBAR","TYPE_FILTER_CODE","TYPE_SECTION","TYPE_LAYOUT_CODE","TYPE_AI_ACTION","TYPE_WEB_SEARCH_ACTION","TYPE_SYS_MOD_CODE","TYPE_NOTE_SOURCE","TYPE_INPUT_COMMAND","TYPE_INPUT_STEP_NAME","TYPE_INPUT_SPECIAL_MODE","TYPE_CHATTING_PREVIEW","TYPE_ID_LOCAL_APP_DB","TYPE_SUBSCRIPTION_REQ","TYPE_EXCEPTION_DIALOG_NAME","TYPE_GUIDE_INPUT_TAB","TYPE_INSERT_OBJECT","TYPE_API_PATH","TYPE_PROP","zVer","appUserStorage","emitter","mitt","SYSS","sysSettings","verNum","zSysModeCode","localStorage","getItem","SYS_MOD_CODE","MOD_CODE","setSysModCode","xSysModCode","setItem","clearSysModCode","removeItem","isTestEnv","nz","toLowerCase","API_ADDR","PROJECT_NAME","EALIC6_ADDR","Params","URLSearchParams","search","baseUrl","protocol","host","pathname","paramSearcher","get","paramCogCode","paramSharingID","sharingID4View","showMyLicPage","showBYOKeyPage","paramPreSubID","history","replaceState","zUserEmail","zUserName","USER_NAME","zPayURL","paramPay4PlusSub","BUY_PLAN_PRM50K_URL","BUY_PLAN_LTE20K_URL","BUY_PLAN_PRM100K_URL","encodeURIComponent","clog","LangSettings","DEFALUT_LANG_CODE","KEY_USER_LANG_CODE","LangCodeNameMap","text","name","getBrowserLangCode","zLanguageCode","navigator","language","split","saveLangCode","xLangCode","getSavedLangCode","getInitLangCode","detectedLangCode","cerr","checkIfDefaultLangCode","tolowerCase","langSettings","UIP0","UIP","reactive","UIS0","currentPageData","currentUserContentPageGUID","selectedGroupHeaderTitleInPageColumn0","currentUserContentPageColumnIndex","currentIndexSideBarType","SIDEBAR_CLOSED","previewHTML","startSectionIndex4Rendering","endSectionIndex4Rendering","generatingTempLayoutCode","starredHeaderAndSubGUIDsMap","selectedStarredPageSectionGUIDs","ifLockingPageUI","ifHideResult4Refreshing","isAIGenerating","ifPageColumnScrollToBottom","ifChattingUI","ifCreatedTopicAutoAdd2Playlist","currentChattingMessage","currentReturnMessage","ifGoBackAnimation","isSharingViewMode","isFreePlan","subscriptionReqType","SHOW_OPTIONS","isMiniScreenMode","sideBarWidth","resultPageWidth","resultPageHeight","rightMenuBarWidth","leftMenuBarWidth","filterCode","selectedTextContent","sectionDraggingImg","Image","src","INPUT_API_KEY","INPUT_LICENSE","UIS","UISettings","PageColumns0","parentPageSectionGUID","currentSelectedPageSectionGUID","followupSessionGUID","PageColumns","lockResultPageUI","xIsAIGenerating","isAIGeneratingPageContent","unlockResultPageUI","setTimeout","setInterval","zColumnIndex","zScrollTop","$","scrollTop","zScrollHeight","prop","onWindowResize","zPanMainWidth","width","zPanMainHeight","height","console","log","zNewResultPageWidth","Math","max","min","onresize","langCode","zAppUserContentManager","appUserContentManager","zAppSharingManager","appSharingManager","getSharedContentPage","then","data","zSharingPageInfo","result","_IsDeleted","clearArray","pageSections","_GUID","allUserContentPages","renderAllSectionsInPage","on","LANG_CHANGED","zAppAIManager","appAIManager","zAppSERPManager","appSERPManager","emit","USER_READY","cwrn","zLocalLastPageGUID","LAST_PAGE_GUID","loadAllPageData","err","length","zPageGUID","gotoPage","show","onkeydown","evt","key","KEYPRESSED_ESC","DefaultRole001","roleName","roleInstruction","appPromptProvider","excludeContentSystemPrompt","includeContextSystemPrompt","nearestParentContentSystemPrompt","includeExistingContentSystemPrompt","SERPContextSystemPrompt","moreLikeThisScopePrompt","moreLikeThisTopicPrompt","userMessagePrompt","roleSystemPrompt","defaultRoles","defaultSites","saveRoles","appStorageManager","saveAnyDataToLocalDB","ROLES_DATA","customizedRoles","saveSites","PROMPT_SITES_DATA","customizedSites","resetRoles","loadRoles","_","extend","currentRole","xCallback","zCallback","loadAnyDataFromLocalDB","xResult","assignArray","clone","loadSites","excludingContentArrayString","includingContextArrayString","existingContentTextString","heightA2","defaultPageTemplate","_verNum","backgroundHTML","layoutCommonStyle","layoutCommonTitleStyle","layoutBlankTitleStyle","layoutOneByOneStyleArray","flagColorStyles","flagCode","flagName","iconClass","titleStyle","backStyle","headerStyles","headerCode","headerStyle","headerStyle_MiniScreenMode","layoutStyleNames4Pickup","layoutStyleObjects","layoutCode","layoutName","isSideCoverImageView","isTitleOnly","isMiniSideImageView","isOneLineTitle","defaultFlagCodeMap4Commands","dateOptions","weekday","day","month","year","defaultActionFlows","_isSysBuiltIn","_isLongButton","sites","ifSearch4WebPages","ifAIReply","ifUserTextInput","iconClassLite","ifSearch4Images","ifSearch4News","_isBeta","_startButtonName","ifWebPageScrape","ifFileUploaderInput","acceptExt","imgSrc","isNotForTopic","defaultActionFlowGroup","category","myTemplateCategories","defaultNewPageData","defaultUserGuildTopics","appUserManager","currentUserInfo","cognitoAuthConfigLocalTest","authority","client_id","redirect_uri","response_type","scope","signOutRedirectLocalTest","async","clientId","logoutUri","cognitoDomain","href","cognitoAuthConfigProd","signOutRedirectProd","signOutRedirect","cognitoAuthConfig","userManager","UserManager","initializeUserSession","onUserAuthChecked","currentSubscriptionStatus","UNKNOWN","letUserJumpIn","username","email","signinCallback","user","profile","zCogUserProfile","signinRedirect","e","getUserInfo","xUserInfo","zEndPointURL","zUserInfo","projectName","fetch","method","headers","JSON","stringify","response","json","userinfo","subEndDT","zSubEndDate","Date","zNow","EXPIRED","VALID","NOT_FOUND","catch","error","zPreSubID","preSubID","EAK","zEAK","getEncryptedBYOAPIKey","BYO_FREE","letUserSignOutSync","zLSKeys","keys","each","xLSKey","endsWith","clearObject","letUserActivateByLicCode","xLicCode","licCode","appLicenseProviderManager","zResObj","getFromLicRes_Gumroad","licResData","isOK","alert","reload","saveBYOAPIKey","xRawAPIKey","zPrefix","zEncryptedAPIKey","miniEncrypt","checkIsPaidSubPlanUser","subPlanType","Plus","Pro","Ultra","Premium","Lite","checkIsApprovedSubPlanUser","isApprovedSubPlan","checkIsOutOfCredits","zCredits","credits","OUT_OF_CREDITS","gotoUpgradeSubscription","zSubPlanURL","SUB_PLAN_PRICING_URL","LicProviderInfo","productID_A","endPointURL","zProvider","Gumroad","zProductCode","append","zResponse","fetchSSE","url","xSetupOptions","xOptions","xProcessChunkFunc","zRequest","OPENAI_APIKey","ok","reader","getReader","decoder","TextDecoder","read","processText","done","value","chunk","decode","stream","getSysEvidence","xSaltKey","zDTShort","toISOString","substring","md5","allAISessions","tempNextTopics","extractMessageTextFromAIResponse","xResponseObject","zResponseObject","choices","message","content","delta","runAITranslateOperation","xSourceText","zAIActionType","ForTranslatingNote","sysMessageKey1","sysMessageKey2","sysEvidence","userMessages","modelType","zAIProxyServerURL","AI_PROXY","AI_TRNS_STRAT","zReturnMessage","xChunk","AI_GEN_ERROR","zResObjStrings","xResObjString","zResObjString","trim","startsWith","parse","runAskAIOperation","xAIRequestOptions","xSessionGUID","xAskAIOptions","zAskAIOptions","zSessionGUID","chance","guid","currentAISessionGUID","zSessionItem","_createdAt","userMessage","SERPItemArray","returnMessage","existingContent","status","RUNNING","AIActionType","pageSectionGUID","sysModCode","AI_GEN_STRAT","FINISHED","AI_GENERATING","ForFollowUps","AI_GEN_FOLLOWUP_DONE","ForPoints","AI_GEN_POINTS_DONE","ForSummary","AI_GEN_SUMMARY_DONE","ForBreakdown","AI_GEN_BREAKDOWN_DONE","ForConclusion","AI_GEN_CONCLUSION_DONE","ForOutline","AI_GEN_OUTLINE_DONE","askAIForMarkdownReply","xAskOptions","zGUID","zAskOptions","zAppPromptProvider","zSERPContextString","zUserMessage","zAppPrompt","zAIRequestOptions","replyMarkdownSystemPrompt","askAIForTextOptionsReply","replyTextOptionsSystemPrompt","getSERPResult","xSERPOptions","zResSERP","SERP","zSERPOptions","replyMessage","parseSERPResItems2ReplyMessage","res","getSCRAPEResult","xSCRAPEOptions","zResSCRAPE","SCRAPE","zSCRAPEOptions","getEXAResult","SERP2","checkIfLinkFromBlockedSummarizationSites","xURL","zURLLow","zHostName","getHostName","zBlockedSiteList","includes","getSummarizedInfoFromURL","xSumOptions","organic","xSERPResObj","xLimitCount","zResMessage","zSERPResObj","zLimitCount","zOrganicItems","union","news","zSERPTitle","knowledgeGraph","searchParameters","q","zCount","xOrganicItem","snippet","section","link","parseSERPData2ResItemArray","xSERPData","zSERPData","zResItemIndex","zSERPResItemArray","zSERPResItemMap","processSERPResItem","xSERPResItem","PURPLE","ORANGE","push","GREEN","zResSERPItem","index","description","descriptionLink","answerBox","question","answer","peopleAlsoAsk","xSERP_PAA","RED","relatedSearches","zRLSCountNum","xSERP_RLS","query","images","xImageObject","xOrganicIndex","imageUrl","sourceType","WEB_IMAGE","BLUE","zArticles","zTopBookmarkIndex","xOrganicObject","zFlagCode","NONE","WEB_EXA","publishedDate","WEB_DEFAULT","getFavIconURL","xWebsiteURL","xSize","zWebsiteURL","indexOf","URL","zSize","domain","zFaviconApiUrl","saveActionFlowGroup","currentActionFlows","ACTION_FLOW_GROUP_DATA","getActionFlowGroup","xDefaultSearchRoleName","templateActionFlows","templateActionFlowCategories","xTemplateActionFlow","resetActionFlowGroup","appPageTemplateManager","allPageTemplates","currentUserContentPageTemplate","remarkableMD","Remarkable","highlight","str","lang","Prism","renderPageSectionWithTemplate","xTemplateGUID","xPageSection","zTemplate","zTitleString","sectionTitle","zBodyString","sectionBodyText","_cacheBodyHTML","render","_statusText","_cacheTranslatedHTML","sectionTranslatedText","sectionBodyTextLess","zSectionBodyTextLines","sectionMemo","_cacheMemoHTML","_cacheMemoHTMLParagraphs","zMarkdownMemoStrings","map","filter","xMarkdownMemoString","zMarkdownMemoString","zHTMLMemoParagraphString","setupPageSectionLayoutStyleByTemplate","xPageSectionArray","zResStyle","zLayoutOneByOneStyleArray","sectionType","HEADER","zResTitleStyle","_cacheLayoutStyle","zParentSectionGUID","_parentSectionGUID","zSectionIndex","zIsSectionFound","zLayoutStyleObject","xCheckingPageSection","zLayoutCode","DEFAULT","find","_layoutStyleObject","zAnimationDelay","integer","getTopicsFromTemplate","xNum","zRes","xSampleTopicData","pick","runProcInLocalDB","xCallbackProc","DB_NAME","STORE_NAME","dbReq","indexedDB","open","onupgradeneeded","event","db","target","createObjectStore","onsuccess","tx","transaction","store","objectStore","oncomplete","close","xID","xDataObj","zAnyData","put","deleteFromLocalDB","delete","reqDBOP","loadAllDBKeys","getAllKeys","publishHTML","xPageInfo","xSharingID","zSharingData","sharingHTML","zThemeName","playOptions","defaultThemeName","getSlidesHTML","sharingID","shareContentPage","zPageInfo","zRequestData","sortFlatSectionsToHierarchyArrayWithDepth","nodeMap","Map","forEach","node","set","children","findChildren","parentNode","depth","childNode","_depthLevel","has","rootNode","some","resultNode","sortFilterPageColumnArray","xColumnSectionGUID","zColumnSectionGUID","zResPageSectionArray","zPageSectionGUID","zPageSectionParentGUID","outputMDText4CurrentPage","xFilterCode","zSortedPageSectionArray","zDefaultDepth","zAllPageSectionArray","getCurrentPageSections","zSortedAllPageSectionArray","zCurrentPageData","STARRED","starredSectionGUIDs","xSatrredPageSectionGUID","zResSatrredSection","getSection","zResText","_isDeleted","zSectionRelDepth","zHashTags","repeat","NOTE_CARD","coverImageURL","coverImageSourceURL","refLinkAllString","zRefLinkArray","xRefLink","xRefIndex","outputStarredSlidesHTML4CurrentPage","xPlayOptions","zStarredHeaderPageSectionArray","zPlayOptions","zPageItem","zCardThemeClassName","coverFrontSection","zResStarredSection","coverBackSection","zResSlidesHTML","xPageHeaderSection","COVER","renderSection","templateGUID","zSubPageSectionGUIDs","xSubPageSectionGUID","zSubPageSection","outputSlideHTML4PageSection","zPageSection","zResSlideHTML","ifHideRefs4AIReplySlide","zRefLinks","zSubRefHostName","zSubRefFavIconURL","ifHideAllRefLink","playSlides","xThemeName","xStartPageSectionGUID","zOptions","zResHTML","zResTitle","generatePageTitle","zPageColTitles","getPageColumnTitles4AIAction","ifStartWithMemos","zResStartIndexH","zResStartIndexV","zIsSlideFound","xStarredSectionGUID","xIndex","isPreview","SYS_SLIDE_PREVIEW_DIALOG","focus","previewSingleSlide","printSlides","downloadText","xText","xFileName","zFileName","blob","Blob","type","createObjectURL","createElement","download","appendChild","click","removeChild","revokeObjectURL","downloadSlidesHTML","zMySlidesHTML","zFileNameTitle","pageTitle","replace","SUFFIX_FILE_NAME_EXPORT_SLIDES","zSiteName","zTemplateHTML","messages","en","placeholder","actions","tooltips","fr","i18n","createI18n","locale","appCommandManager","editingPageSection","copyText2Clipboard","xCopiedText","clipboard","writeText","ElNotification","global","t","insertPageSectionsToPosition","xPageGUID","xPageSectionsToInsert","xPositionIndex","xParentPageSectionGUID","zAllPageSections","zPageSectionsToInsert","zPositionIndex","zParentPageSectionGUID","xPageSectionToInsert","splice","savePageData","zFirstPageSectionGUID","scrollPageTo","selectPageSection","_headerSectionGUID","movePageSectionsAfterTargetPageSection","xSourcePageSection","xTargetPageSection","zSourcePageSectionIndex","findIndex","zTargetPageSectionIndex","moveElementAfter","upsertPageSectionsFromAIPlusSearch","xHeaderGUID","xExtOptions","zPageSectionGUIDs2Translate","fromAISessionGUID","systemMessage","zExcludingContentArray","getSectionTitles4AIAction","zIncludingContextArray","nearestParentContentTextString","getCurrentPageColumnParentPageSectionGUID","zParentPageSection","SERPContextString","zFollowupQuestions","followupQuestions","zSERPReturnDataArray","SERP_START","zCallingQueryFuncs","zI","givenWebsiteNames","xWebsiteName","zFollowupQuestionsIndex","zFollowupQuestion","zSearchOptions","zResultsFromSERPER","Promise","all","xResultFromSERPER","xSERPReturnData","zPageSections2Insert","zCurrentSelectedPageHeaderSectionGUID","zSelectedPageSectionIndex","getCurrentSelectedPageSectionIndex","zUniqLinks","zUniqTitles","zTitle","zNewPageSectionGUID","sectionSourceType","SERP_DONE","upsertPageSectionsFromWebPageScrape","zURLs","tempRefLinkAllString","SCRP_START","zURL","zURL_Low","xResultFromSCRAPE","zScrapeRes","zSERPResItem","sourceURL","markdown","metadata","SCRP_DONE","upsertPageSectionsFromAIReply","upsertPageSectionsByMoreLikeThis","ForMoreLikeThis","zHeaderPageSection","zTopicTitle","zTopicContent","upsertFollowupsFromAskAI","upsertPageByCopyingSourcePage","xSourcePage","zSourcePageItem","xSection","zOldPageSections","insertBlankPage","xTargetPageGUID","xParentSectionGUID","zDummyPageSections","zNewPageGUID","insertDummyPage","zSectionNum","i","address","paragraph","addSERP2PageSection","zSERP4ImageOptions","zProcessingPageSection","_isImageNeeded","zResSERPData4Images","zSearchedImages","zSearchedImageInfo","optionalCoverImageURLs","optionalCoverImageSourceURLs","MAX_OPTIONAL_IMAGE_NUM","xSearchedImageItem","xImageIndex","addConclusion2Group","xHeaderPageSection","xConclusionOptions","zSourceText","isFromWebScrape","zPageSections","zSourceCount","YELLOW","translatePageSectionsByGUIDs","xSourcePageSectionGUIDS","zLangCode","xSourcePageSectionGUID","zPageSection2Translate","zTranslatedText","zTrnsTilte","updatePageSection","resetPageColumn","xCurrentPageCoulmnIndex","zCurrentPageCoulmnIndex","zPageColumns","PAGE_COLUMN_RESET","xSelectedPageSectionGUID","xBlockType","zDivPageColumn","getElementById","scrollTo","top","behavior","targetPageSectionElement","scrollIntoView","block","extendPageColumn","xCurrentPageSectionGUID","zCurrentPageSectionGUID","zCurrentPageColumnIndex","zSameSectionColumnIndex","zCurrentPageColumn","zNewPageColum","PAGE_COLUMN_NEW","insertNewCustomSlide2CurrentHeader","xPageSectionPart","zCurrentPageColumnFilterGUID","zInsertToPageSectionIndex","currentSelectedHeaderPageSectionGUID","zSlideSectionGUID","zSlideSection","getCurrentSelectedPageHeaderSectionGUID","_isCustomSection","xHeaderPageSectionGUID","zSelectedPageSectionGUID","zPageColumn","HEADER_OPEN_STATE_CHANGED","zSelectedPageSection","PAGE_SECTION_SELECTION_CHANGED","getGroupItemGUIDs","xSelectedGUID","zStarredPageSections","getCurrentStarredPageSections","targetIndex","item","currentIndex","xPageSectionGUID","zTargetPageGUID","zSectionGUID","getSections","xPageSectionGUIDs","zResSections","startEditingPageSection","xEditingPageSection","xEditorType","PAGE_SECTION_TEXT_EDITOR","currentEditingPageSection","askAI4OnePageSection","saveEditingPageSection","xTargetPageSectionGUID","xUpdatingSectionPart","zTargetPageSectionGUID","updateMultiPageSectionStars","xTargetPageSectionGUIDs","xIsStarred","xIsOperationFromDeck","zTargetPageData","zTargetPageSectionGUIDs","zLastSelectedStarredItemGUID","zFirstSelectedStarredItemGUID","zNextAfterSelectedStarredItemGUID","zFirstSelectedStarredItemIndex","zLastSelectedStarredItemIndex","_isStarred","zHeaderSection","zHeaderPos","zLastSelectedStarredSectionGUIDInHeader","zGroupSelectedItems","zLastSelectedStarredSectionInHeader","insertAfterID","difference","zNextAfterSelectedStarredItemGroupGUIDs","PAGE_SECTION_STAR_CHANGED","unstarPageSection","zSectionTitles","zSubSection","confirm","moveStarredSectionGUIDsTo","xSourceSectionGUIDs","xToPosIndex","zStarredSectionGUIDs","xGUID","getSectionFlagColorStyle","xStylePropName","defaultFlagColorStyleArray","zStyleObj","getSectionHeaderStyle","defaultHeaderStyleArray","zHeaderStyle_MiniScreenMode","getSectionListByParentSectionGUID","zResList","getFilteredSectionList","xSourcePageSections","zCurrentPageColumnParentPageSectionGUID","zMatchedGUIDList","zMatchedHeaderGUIDList","include","unique","removeSections","zPageSectionGUIDs","zSections","xCheckingSection","removeHeaderAndSections","xPageHeaderSectionGUID","xSec","publishedDateString","toLocaleDateString","_animationDelay","zSubPageSections","_subCount","refLink","refSectionGUIDs","xRefSectionGUID","zRefSection","_isClueSection","_sourceActionFlowGUID","zMaxPageTitleLen","zFirstPlaylistItem","zFirstSection","removePage","PREFIX_PAGE_DATA","zSharingID","xSavingPageGUID","xNewPageGUID","zPageData","clearAllSubSection4RemovedPageSections","clearAllStarredItems4RemovedPageSections","_username","_updatedAt","PAGE_SAVED","xPageSections","zSectionsMap","el","zParentEl","zStarredPageSection","loadPageData","zLocalDBKey","currentEditingPageSectionGUID","PAGE_STATE_CHANGED","zDataKeys","zUserContentPageNum","xDataKey","buildSingleContentPageWithAISession","xPageItem","xAISession","zTargetPageSection","ForOneSectionContentAppending","zHRElement","inline","buildContentPagePartsWithAISession","xPageColumn","xFromSectionIndex","zFromSectionIndex","zSectionType","zSectionFlagCode","zFlagCodeMap4Commands","zIsSectionImageNeeded","ForTitle","UserInputWithoutAI","USER_MEMO","zCurrentSelectedPageSectionGUID","zTextLines","replaceAll","xTextLine","zTextLine","belongingHeaderSectionGUID","AI_DEFAULT","zHighestSimScorePageSection","getStringSimilarityScore","str1","str2","preprocessText","words1","Set","words2","intersection","word","size","zH3Title","zRefPageSections","zHighestSimScore","xRefPageSection","zSimScore","zRefLink","_keywords4Search","_questions4Exploring","preprocessSectionMDTextInput","xSectionBodyText","getPreviewSectionsWithAISession","AI_PLUS_SEARCH","ForAINote","AI_NOTE","ForQuestions","AI_QUESTIONS","zResultPageSections","xHeaderSectionGUID","xAIActionType","zFilteringPageSection","zResStarredPageSections","zSatrredPageSection","getCurrentSelectedPageSectionGUID","getCurrentSelectedPageSection","getCount4FilterCode","zResPageSections","zResLength","xResPageSection","getPageColumn0SelectedHeaderGUID","zResIndex","getMixedContentStringWeighedLength","xContentString","totalLength","englishWordRegex","nonEnglishCharRegex","englishWords","match","nonEnglishMatches","setCurrentSelectedPageSectionGUID","pushState","isFirstPage","emitPageGoBack","debounce","PAGE_GO_BACK","addEventListener","zPageState","state","go","commands","USER_HEADER","IMAGE_SEARCH","NEWS_SEARCH","AI_REPLY","AI_ANALYZING","AI_FOLLOWUPS","AI_RELATED","WEB_SEARCH","WEB_SCRAPE","AI_SUMMARIZE","AI_OUTLINE","BLANK_TOPIC","querySuitableCommand4Input","xInputString","zInputString","zInputStringLow","zResult","xCommandString","zCommandStringLow","runCommandString","zUserMsg","currentUserMessage","currentHeaderGUID","zAISessionGUID","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","style","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","__default__","computed","creditsNumString","zResCredits","Intl","NumberFormat","format","subDate","zSubDate","paidSubPlanName","isApprovedSubPlanUser","props","userInfo","Object","methods","_defineComponent","emits","setup","__props","__emit","getUserInfo2Show","xUser","clickManageSubscription","clickUpgradeSubPlan","clickSignOut","_ctx","_cache","_component_el_dropdown_menu","_resolveComponent","_component_el_dropdown","_openBlock","_createElementBlock","_createVNode","trigger","dropdown","_withCtx","default","_createElementVNode","_createTextVNode","_toDisplayString","_unref","_createCommentVNode","$t","APP_SUPPORT_EMAIL","onClick","$event","__exports__","id","selectedPageSectionGUID","getResultPageStyle","left","right","getRightSideBarStyle","getDiveMenuBarStyle","clickBackground","zSubManagerURL","SUB_MANAGER_URL","clickUpgradeSubscription","checkIfUserJumpedIn","refreshUserInfo","refreshUserInfoLazy","AI_GEN_CANCELED","_normalizeStyle","_withDirectives","_vShow","UserAccountMenu","onOnSignOut","onOnManageSubscription","onOnUpgradeSubscription","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","_hoisted_40","_hoisted_41","_hoisted_42","_hoisted_43","_hoisted_44","_hoisted_45","_hoisted_46","_hoisted_47","_hoisted_48","_hoisted_49","_hoisted_50","_hoisted_51","_hoisted_52","_hoisted_53","mounted","currentHeaderSectionGUID","currentHeaderSectionTitle","zCurrentSelectedPageHeaderSection","maxTextInputLength","inputThings","userChatMessage","userInputFileName","userInputFileString","userInputTextRange","textContentString4AI","parentPageSectionTitle","promptSite","isFromContextMenu","isAdvancedInputUI","currentActionFlow","currentActionStepName","START","currentSite","zUserMessageLow","ADD_HEADER","ADD_NOTE_CARD","ADD_BOOKMARKS","clickCloseChattingUI","clickSetupTopicFromHeader","xFromHeaderSectionGUID","currentFromHeaderSectionGUID","clickSelectCurrentActionFlow","xActionFlow","INPUT","setInputFocus","clearFileUploader","clickGoBackStep","xStepName","clickGoDiving","xEvent","zCurrentActionFlow","zSumHostName","MAN_GEN_FOLLOWUP_DONE","doRunCommand","zBlankTopicTitle","zTextContent","zNewSlideTitle","zNewSlideBodyText","clickRunCurrentActionFlow","checkIsStartCreatingEnabled","clickFileUploader","fileInput","onChangeFileUploader","files","file","zFlieNameLow","processUploadedPDFFile","processUploadedDOCXFile","processUploadedTextFile","FileReader","onload","readAsText","extractedText","processPDF","processDocx","getInputFileStringRangeLength","xStartRangeNum","xEndRangeNum","zStartRangeNum","zEndRangeNum","zResLen","ceil","getInputFileStringRangeText","zLen","zStartRangePos","zEndRangePos","onDragOverFileUploader","preventDefault","removeClass","addClass","onDragLeaveFileUploader","onDropFileUploader","dataTransfer","getUserMessage","xCommandType","xNextCommandType","zCommandType","currentInputCommandType","currentCommandType","nextCommandType","ifBackgroundMouseDown","onBlurChattingInput","clearSelection","onMouseEnterCommandInput","xHoveredType","hoveredElementType","onMouseLeaveCommandInput","getContextStringLines","xContextString","STR_IN_CONTEXT","zResTextLines","getTextInputPlaceholder","zFlowGUID","getTextInputRows","zResRowsNum","getCommandInputCompoStyle","getCommandInputPanelBodyStyle","checkIfAILanguageOptionShow","checkIfCharLenLimitShow","refreshFollowups","zAISession","zFollowupItems","xFollowupItem","zFollowupItem","zNextTopicString","processFollowUpAction","xFollowupQuestions","zFollowupQuestion0","zFollowupSourceText","zHeaderSections2Insert","zCurrentHeaderGUID","_fromHeaderSectionGUID","slice","_nextTopics4Exploring","zAllSections","zLastPageSectionIndex","zPosIndex","zIsCurrentHeaderFound","zSelectedHeaderGUID","xSection4Pos","zCurrentHeaderSection","zCurrentParentPageSectionTitle","zPageColumnFilterGUID","zIfInColumnPageSectionsExist","zChatMessage","CALL_USER_INPUT_CENTER","CALL_USER_INPUT_CENTER_BREAK_DOWN","zSelectionText","zHeaderSectionGUID","zBreakdownSourceText","zSectionTitle","zHeaderSectionTitle","CALL_USER_INPUT_CENTER_SUMMARIZE","_component_SysLanguageMenu","_component_el_dropdown_item","_component_el_slider","_Fragment","accept","onChange","onMousedown","_isRef","_withModifiers","onKeydown","_withKeys","_normalizeClass","onMouseenter","onMouseleave","_renderList","actionFlowGroupName","actionFlowItem","prestTextline","prestTextlineIndex","rows","resize","onBlur","maxlength","autocomplete","_vModelText","onDrop","onDragover","onDragleave","modelValue","range","selectedPageSection","reverse","clickBack","PAGE_FILE_INDEX","clickHowTo","xHowToName","clickOpenExternalPage","xGotoURL","clickGotoSample","xGotoName","BLOG_HOW_TO_EXPORT","appSERappSERPManager","selectedHeaderPageSection","zSelectedHeaderPageSectionGUID","clickStartNewDeck","clickInsertNewObject","xObjectType","getHeaderEndPosIndex","zTargetPosPageSectionGUID","zTargetPosPageSectionIndex","MEMO","zMemoSectionGUID","zMemoSection","toLocaleString","BOOKMARK","zNewMemoString","prompt","zNewMemoStringLow","GROUP","zNewGroupSectionGUID","zNewGroupSection","getLangTextName","zResLangInfo","zResLangTextName","clickItemLanguage","itemLangInfo","itemLangCode","pageSection","required","leftCredits","zResCount","clickSwitchPageList","clickPoweredBy","HOME_PAGE_URL_POWERED_BY","clickSaveToMyBase","zLoginPageURL","origin","clickCreateTopics","clickPanSysFuncBar","_component_SysTutorialMenu","_component_pageThemeMenu","_component_pagePlayMenu","_component_pagePublishMenu","_component_pageOutputMenu","ifShowPlayWithMenu","pageSharingID","zSharingURL","clickDownloadSlidesHTML","clickExportContent","xScope","xFormat","zResHTMLBody","newPageWithHTML","showNotes","pageSharingLink","sharingURL","clickStartSharing","clickStopSharing","zPageInfoCopy","clickOpenSharingLink","starredItemCount","Boolean","clickPlayStarredSlides","xThemeNameInfoItem","clickPlayWithMemos","clickPlayOptions","currentFrontCoverSection","currentBackCoverSection","PAGE_PLAY_OPTIONS_EDITOR","_createBlock","themeInfoItems","frontStyle","clickApplyTheme","themeInfoItem","clickAddCustomGroupInMyTopics","zPageSection2Insert","siteListString","actionFlowName","SYS_PROMPT_SITE_EDITOR","xSiteURL","SYS_SEARCHFLOW_EDITOR","currentEditingActionFlow","getSiteListInputRows","zRows","floor","onBlurInputSiteList","zResSites","xSiteString","zSiteString","editingRoleItem","givenWebsiteURL","getRoleItemList","clickEditRole","xRoleItem","clickSaveEditingRole","xSavingRoleItem","clickCancelEditingRole","clickRemoveRole","xRoleGUID","xRole","clickAddNewRole","zNewRoleGUID","zNewRoleItem","unshift","clickResetRoles","doClearSearchType","clickActionFlowOption","xSearchTypeString","doSaveActionFlow","zActionFlowName","zResSiteName","zResSiteNameParts","xUpdatingActionFlow","_component_el_input","SYS_PROMPT_ROLE_EDITOR","roleItem","isMemoSortASC","getAllMemosString","xTextType","zResString","zSatrredSection","trimmedStr","clickSortMemoView","clickCopyMemoViewToClipboard","zCopiedText","clickReturn","_component_PageSectionView","_component_PageContentTable","_component_PageFileIndex","_component_SysSlidePreviewDialog","_component_PageSectionEditor","_component_PagePlayOptionsEditor","PAGE_SECTION_ORDER_EDITOR","PAGE_SECTION_IMAGE_EDITOR","PAGE_COLUMN_INDEX","SYS_ROLE_INDEX","MEMO_VIEW","SysPromptEditor","PageMemoView","isAlmostEmptyPage","pageSectionCount","clickDiveMenuBar","_component_PageDiveIndex","pageColumns","currentParentPageSectionGUID","currentParentPageSectionName","zParentSection","zResName","currentParentPageSectionHeaderName","zParentHeaderSection","currentSelectedPageSectionHeaderGUID","columnOutlineHeaderSectionList","zFilteredPageSections","zResSectionList","zPage","zFilteredPageSections2","xFilteredPageSection","columnTopicStarredHeaderSectionList","sort","a","b","indexA","indexB","columnTopicUnStarredHeaderSectionList","columnCustomHeaderSectionList","columnPathItemNameList","zLastPageColumn","zResPathItems","xPageColumnIndex","zLastParentSection","zPathItem","parentHeaderSection","lastParentSection","columnPageSectionList","zTempPageSectionList","zResPageSectionList","zCurrentSelectedPageSectionHeaderGUID","columnTopicHierarchyHeaderSectionList","createGUIDHierarchy","childrenMap","rootItems","pageSectionItem","parentGUID","traverseHierarchy","GUID","display","isRoot","sectionItem","child","root","clickHeader","xSelectedSection","getActionFlowIconHTML","xActionFlowGUID","xHeaderSectionListPartIndex","zHostIconURL","zActionFlow","headerSectionList","headerSectionListPartIndex","headerSectionInfo","headerLV","headerLVIndex","currentSelectedPageHeaderSectionGUID","clickFilterCode","flagColorStyle","clickESCFromAIGenerating","dialogSwitches","REMOTE_ERROR","_component_el_dialog","AppMaster","watch","currentSelectedHeaderSectionGUID","handler","newValue","oldValue","currentReturnMessageMD","zViewingMessage","zMsgLines","xMsgLine","dragoverSectionGUID","draggingSectionIndex","hoverSectionGUID","defaultTopicStrings","currentUserContentPage","getCurrentPageColumnPageSections","getParentSection4CurrentPageColumn","xCurrentPageColumn","currentAISession","xPageColumns","getPageColumnStyle","bottom","checkIfHeaderNeedToExtend","xHeaderSection","refreshStarredItemHeaderGUIDsMap","zHeaderGUID","viewingSectionParts","viewingHeadersInColumnX","refreshSectionsBelongToCurrentHeader","getHeaderPageSectionsForViewing","getSectionsBelongToHeader","xPageSectionPartID","zCurrentPageSections","xPageSectionIndex","clickHeaderSection","onMousedownPageSection","clickPageSection","getCSSColCount","xItemsLength","clickDiveIntoPageSection","clickPreviewPageSection","setPageSectionHovered","xPagesectionGUID","setupPageRenderer","zPickedLayoutStyleName","funcOnAIGenDone_OutputNoteCards","zCurrentPage","zStarIndex","xPageSectionInCurrentHeader","zHeaderSections","PAGE_COLUMN_FILTER_CHANGED","refreshAllSectionsInPageLazy","_component_HeaderSectionMenu","_component_PageSectionElement","_component_el_skeleton","pageColumn","pageColumnIndex","onScroll","isFolded","headerSection","isReadOnly","isSelected","onerror","pageSectionPartID","pageSectionIndex","cardThemeClass","sectionCardStyle","isBackFaceMode","isEditingMode","isNarrowMode","isMiniMode","onClickDiveIntoPageSection","onClickPreviewPageSection","onDragStartPageSection","animated","CHAR_BR","clickOpenPageList","clickNewBlankPage","clickSeeQuickGuide","inputText","selectionMenu","selectionType","zSelectedText","zSelectedTextLow","clickClearSelection","xSelectionMenu","ifShow","clickConvert2Topic","zText","clickSummarizeURL","getTargetTextStrings4t4SelectionMenu","xSelectedTextContent","extractBoldText","markdownText","boldRegex","matches","exec","zResStrings","zBoldStrings","clickGotoWebsite","clickCopyText","xText2Copy","targetText4SelectionMenu","textIndex","String","getLinkArray","xAllLinkString","zLinks","zResLinks","xLink","zLink","ifMouseDown","clickEditImage","xKeywordsString","clickRemovePageSection","xIsBackFaceMode","clickEditPageSection","clickToggleStarPageSection","clickGotoWebsiteMenu","clickNoteCard","clickShowSelectionMenu","xTargetSlectionText","getSelectedText","onDragSectionElementStart","currentDraggingPageSection","setDragImage","onDragSectionElementEnd","undefined","currentDragOverStarredItemGUID","draggable","onDragstart","$emit","onDragend","eachRefLink","linkIndex","SectionContextMenu","clickReturnColumn","xPageContentTable","getPageColumnTitle","getCurrentColumnPageSectionList","clickPageSectionTab","xSelectedSectionGUID","dblclickPageSectionTab","clickAddNewConversation","PageContentTable","onDblclick","sortedPageItemList","sortPageItemList","zResPageItemList","sortBy","clickLoadPageItem","xPageItemGUID","clickRemovePage","pageItem","Number","Array","clickRemovePageSectionsUnderThisHeader","clickNewSlide","getPageSectionStyle","xIsFolded","zResPageSectionStyle","clickContinueListing","onClickContinueWriting","clickContinueWriting","onClickContinueListing","getNoteContentInputRows","getNoteMemoRows","xMemoString","zMaxRows","clickCoverImageRelatedLink","xCoverImageRelatedURL","clickOptionalImage","xOptImageURL","xOptImageIndex","zOptImageSourceURL","clickChangeCoverImage4PageSection","clickRemoveCoverImage4PageSection","xNewCoverInput","xNewCoverSourceURL","zNewCoverSourceURL","zNewCoverInput","zNewCoverInputLow","blurInputText","zPageSectionToSave","onEnterPressed4SectionTitle","xInputElementID","blur","onEnterPressed4SectionRefLink","optImageURL","optImageIndex","currentPagePlayOptions","clickCheckOption","xOptionName","_component_el_checkbox","isParentSectionViewMenu","memoCount","getPageSection","checkIfRefItemSelectedInDeck","zCurrentSelectedPageSection","checkIfRefItemSelectedInPlaylist","gotoDeckItemByDraggingSection","xDraggingPageSection","zCurrentDraggingPageSection","gotoRefItemByStarredPageSectionSelection","zRefElement","rect","getBoundingClientRect","isVisible","innerHeight","documentElement","clientHeight","clientWidth","DROP_HEADER_ITEM_GUID","onDragOverRefItem","xTargetItemGUID","onDragEnterRefItem","onDragLeaveRefItem","onDropRefItem","without","zGroupGUIDs","PAGE_SECTION_STARRED_POS_CHANGED","_component_PageSectionRefItem","starredSectionGUID","onDragenter","isSelectedByDeck","isSelectedByPlaylist","isWideItem","clickRefItem","clickGroupSelect","clickLocatePageSectionInTopicDeck","dblclickRefItem","clickPlayFromHere","getSubPageSectionCount","xSelectedStarredItemGUID","ifReselect","clickCancelSelection","clickMoveHeaderUp","zStarredGUIDList","zSatrredHeaderGUIDs","lastHeaderIndex","currentStarredGUID","zSubGUIDMap","clickMoveHeaderDown","nextHeaderIndex","nextHeaderIndex2","clickUnstar","onMouseDownRefItem","onDragRefItemStart","onDragRefItemEnd","vPanMain","createApp","panMain","component","use","ElementPlus","mount","vDivUserInputCenter","divUserInputCenter","SysLanguageMenu","vDivNavButtonBar","divNavButtonBar","InsertObjectMenu","vpanSysFuncBar","panSysFuncBar","PageOutputMenu","PagePublishMenu","PagePlayMenu","PageThemeMenu","SysTutorialMenu","vPanSideBar","panSideBar","PageFileIndex","PageSectionEditor","PageSectionElement","PageSectionView","PagePlayOptionsEditor","SysSlidePreviewDialog","vPanDiveMenuBar","panDiveMenuBar","HeaderSectionMenu","PageDiveIndex","PageFilterIndex","vPanLockingUI","panLockingUI","vPanExceptionDialogs","panExceptionDialogs","vDivResultPages","divResultPages","vDivEmptyPage","divEmptyPage","vPanRefInfoBar","panRefInfoBar","PageSectionRefItem","AddCustomMenu","VueSortable","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","call","m","amdO","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","every","r","n","getter","__esModule","d","definition","o","defineProperty","enumerable","g","globalThis","this","Function","obj","prototype","hasOwnProperty","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","self","bind","__webpack_exports__"],"sourceRoot":""}