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M,IAC3DF,EAAmB3pC,KAAOupC,EAAqBM,KAAK,KAAMF,EAAmB3pC,KAAK6pC,KAAKF,G,IC/CvF,IAAIG,EAAsBnD,EAAoBY,OAAET,EAAW,CAAC,MAAM,WAAa,OAAOH,EAAoB,KAAO,IACjHmD,EAAsBnD,EAAoBY,EAAEuC,E","sources":["webpack://DiveDeck.AI/./src/blockService.ts","webpack://DiveDeck.AI/./src/codes/_20.def/_modDataDict.ts","webpack://DiveDeck.AI/./src/codes/_10.sys/A0Committee.ts","webpack://DiveDeck.AI/./src/codes/_90.lang/langUtils.ts","webpack://DiveDeck.AI/./src/codes/_10.sys/UICommittee.ts","webpack://DiveDeck.AI/./src/codes/_10.sys/InitCommittee.ts","webpack://DiveDeck.AI/./src/codes/_30.biz/monAIPromptProvider.ts","webpack://DiveDeck.AI/./src/codes/_30.biz/monDefaultPageTemplate.ts","webpack://DiveDeck.AI/./src/codes/_30.biz/monUserManager.ts","webpack://DiveDeck.AI/./src/codes/_30.biz/monLicenseProvider.ts","webpack://DiveDeck.AI/./src/codes/_30.biz/monAIManager.ts","webpack://DiveDeck.AI/./src/codes/_30.biz/monSERPManager.ts","webpack://DiveDeck.AI/./src/codes/_30.biz/monPageTemplateManager.ts","webpack://DiveDeck.AI/./src/codes/_30.biz/monStorageManager.ts","webpack://DiveDeck.AI/./src/codes/_30.biz/monSharingManager.ts","webpack://DiveDeck.AI/./src/codes/_90.lang/i18n.ts","webpack://DiveDeck.AI/./src/codes/_30.biz/monUserContentManager.ts","webpack://DiveDeck.AI/./src/codes/_30.biz/monCommandManager.ts","webpack://DiveDeck.AI/./src/aws-exports.js","webpack://DiveDeck.AI/./src/codes/_40.view/menu/UserAccountMenu.vue?0573","webpack://DiveDeck.AI/./src/codes/_40.view/menu/UserAccountMenu.vue","webpack://DiveDeck.AI/./src/codes/_40.view/panel/panMain.vue?8d8c","webpack://DiveDeck.AI/./src/codes/_40.view/panel/panMain.vue","webpack://DiveDeck.AI/./src/codes/_40.view/divUserInputCenter.vue?dfaf","webpack://DiveDeck.AI/./src/codes/_40.view/divUserInputCenter.vue","webpack://DiveDeck.AI/./src/codes/_40.view/divNavButtonBar.vue?6332","webpack://DiveDeck.AI/./src/codes/_40.view/divNavButtonBar.vue","webpack://DiveDeck.AI/./src/codes/_40.view/menu/InsertObjectMenu.vue?213f","webpack://DiveDeck.AI/./src/codes/_40.view/menu/InsertObjectMenu.vue","webpack://DiveDeck.AI/./src/codes/_40.view/menu/SysLanguageMenu.vue?1b50","webpack://DiveDeck.AI/./src/codes/_40.view/menu/SysLanguageMenu.vue","webpack://DiveDeck.AI/./src/codes/_40.view/menu/PageOutputMenu.vue?52b5","webpack://DiveDeck.AI/./src/codes/_40.view/menu/PageOutputMenu.vue","webpack://DiveDeck.AI/./src/codes/_40.view/panel/panSysFuncBar.vue?0402","webpack://DiveDeck.AI/./src/codes/_40.view/panel/panSysFuncBar.vue","webpack://DiveDeck.AI/./src/codes/_40.view/compo/SysPromptEditor.vue?3dff","webpack://DiveDeck.AI/./src/codes/_40.view/compo/SysPromptEditor.vue","webpack://DiveDeck.AI/./src/codes/_40.view/compo/PageMemoView.vue?ac3c","webpack://DiveDeck.AI/./src/codes/_40.view/compo/PageMemoView.vue","webpack://DiveDeck.AI/./src/codes/_40.view/panel/panSideBar.vue?3b48","webpack://DiveDeck.AI/./src/codes/_40.view/panel/panSideBar.vue","webpack://DiveDeck.AI/./src/codes/_40.view/panel/panDiveMenuBar.vue?0a55","webpack://DiveDeck.AI/./src/codes/_40.view/panel/panDiveMenuBar.vue","webpack://DiveDeck.AI/./src/codes/_40.view/compo/PageDiveIndex.vue?d92c","webpack://DiveDeck.AI/./src/codes/_40.view/compo/PageDiveIndex.vue","webpack://DiveDeck.AI/./src/codes/_40.view/compo/PageFilterIndex.vue?87e0","webpack://DiveDeck.AI/./src/codes/_40.view/compo/PageFilterIndex.vue","webpack://DiveDeck.AI/./src/codes/_40.view/panel/panLockingUI.vue?f689","webpack://DiveDeck.AI/./src/codes/_40.view/panel/panLockingUI.vue","webpack://DiveDeck.AI/./src/codes/_40.view/panel/panSubscriptionRequest.vue?a068","webpack://DiveDeck.AI/./src/codes/_40.view/panel/panSubscriptionRequest.vue","webpack://DiveDeck.AI/./src/codes/_40.view/divResultPages.vue?29cf","webpack://DiveDeck.AI/./src/codes/_40.view/divResultPages.vue","webpack://DiveDeck.AI/./src/codes/_40.view/divEmptyPage.vue?6ab8","webpack://DiveDeck.AI/./src/codes/_40.view/divEmptyPage.vue","webpack://DiveDeck.AI/./src/codes/_40.view/compo/PageSectionElement.vue?b804","webpack://DiveDeck.AI/./src/codes/_40.view/compo/PageSectionElement.vue","webpack://DiveDeck.AI/./src/codes/_40.view/compo/PageContentTable.vue?3d6c","webpack://DiveDeck.AI/./src/codes/_40.view/compo/PageContentTable.vue","webpack://DiveDeck.AI/./src/codes/_40.view/compo/PageFileIndex.vue?9fde","webpack://DiveDeck.AI/./src/codes/_40.view/compo/PageFileIndex.vue","webpack://DiveDeck.AI/./src/codes/_40.view/menu/PageSectionMenu.vue?2f32","webpack://DiveDeck.AI/./src/codes/_40.view/menu/PageSectionMenu.vue","webpack://DiveDeck.AI/./src/codes/_40.view/compo/PageSectionView.vue?9d46","webpack://DiveDeck.AI/./src/codes/_40.view/compo/PageSectionView.vue","webpack://DiveDeck.AI/./src/codes/_40.view/compo/PageSectionEditor.vue?a5a1","webpack://DiveDeck.AI/./src/codes/_40.view/compo/PageSectionEditor.vue","webpack://DiveDeck.AI/./src/codes/_40.view/divRefInfoBar.vue?e88a","webpack://DiveDeck.AI/./src/codes/_40.view/divRefInfoBar.vue","webpack://DiveDeck.AI/./src/codes/_40.view/compo/PageSectionRefItem.vue?db08","webpack://DiveDeck.AI/./src/codes/_40.view/compo/PageSectionRefItem.vue","webpack://DiveDeck.AI/./src/main.ts","webpack://DiveDeck.AI/webpack/bootstrap","webpack://DiveDeck.AI/webpack/runtime/amd options","webpack://DiveDeck.AI/webpack/runtime/chunk loaded","webpack://DiveDeck.AI/webpack/runtime/compat get default export","webpack://DiveDeck.AI/webpack/runtime/define property getters","webpack://DiveDeck.AI/webpack/runtime/global","webpack://DiveDeck.AI/webpack/runtime/hasOwnProperty shorthand","webpack://DiveDeck.AI/webpack/runtime/make namespace object","webpack://DiveDeck.AI/webpack/runtime/node module decorator","webpack://DiveDeck.AI/webpack/runtime/jsonp chunk loading","webpack://DiveDeck.AI/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}\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_BREAKDOWN_DONE = \"AI_GEN_BREAKDOWN_DONE\",\r\n AI_GEN_CONCLUSION_DONE = \"AI_GEN_CONCLUSION_DONE\",\r\n AI_GEN_CANCELED = \"AI_GEN_CANCELED\",\r\n\r\n SERP_START = \"SERP_START\",\r\n SERP_DONE = \"SERP_DONE\",\r\n\r\n\r\n SUMMARY_DONE = \"SUMMARY_DONE\",\r\n SUMMARY_NA = \"SUMMARY_NA\",\r\n\r\n OUT_OF_CREDITS = \"OUT_OF_CREDITS\",\r\n\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_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_SEARCH_WEB = \"CALL_USER_INPUT_CENTER_SEARCH_WEB\",\r\n CALL_USER_INPUT_CENTER_SEARCH_IMAGE = \"CALL_USER_INPUT_CENTER_SEARCH_IMAGE\",\r\n CALL_USER_INPUT_CENTER_ASK_AI = \"CALL_USER_INPUT_CENTER_ASK_AI\",\r\n\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_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 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 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\", // X\r\n\r\n ForPoints = \"ForPoints\", // Quick Reply (with translating)\r\n ForConclusion = \"ForConclusion\", // Conclude text in a group\r\n ForBreakdown = \"ForBreakdown\", // Break down user input (page section with translating)\r\n\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_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 IMAGE_SEARCH = \"/ImageSearch\",\r\n NEWS_SEARCH = \"/NewsSearch\",\r\n AI_REPLY = \"/AIReply\",\r\n WEB_SEARCH = \"/WebSearch\",\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_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 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}\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_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\n\r\n// #PROP NAMES\r\nexport enum TYPE_PROP {\r\n APP_NAME = \"DiveDeck.AI\",\r\n APP_SUPPORT_EMAIL = \"support@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 HOME_PAGE_URL = \"https://www.divedeck.ai\",\r\n HOME_PAGE_URL_POWERED_BY = \"https://divedeck.ai?ref=pwdby\",\r\n\r\n AI_PROXY_SERVER_URL_PROD = \"https://monasax.top/openai_proxy\",\r\n AI_PROXY_SERVER_URL_TEST = \"http://localhost:3080/openai_proxy\",\r\n\r\n SUB_MANAGER_URL = \"https://billing.stripe.com/p/login/14k5ktf3r9dz0Yo8ww\", // Stripe\r\n SUB_PLAN_PRICING_URL = \"https://divedeck.ai/pricing-in\", // DiveDeck 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 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}\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\nlet zVer = 2.011;\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} from \"@/codes/_20.def/_modDataDict\";\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// * 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\nSYSS.PROJECT_NAME = \"Morisot\";\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// ** ?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('goPlus');\r\nif (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 (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_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 startSectionIndex4Rendering: -1,\r\n endSectionIndex4Rendering: -1,\r\n generatingTempLayoutCode: \"\",\r\n\r\n isFollowupOnlyMode: false,\r\n ifLockingPageUI: false,\r\n isAIGenerating: false,\r\n ifPageColumnScrollToBottom: false,\r\n ifChattingUI: false,\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 isOutOfCreditsDialogNeeded: 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 rightMenuBarWidth: 800,\r\n leftMenuBarWidth: 800,\r\n\r\n filterCode: \"\",\r\n\r\n selectedTextContent:\"\",\r\n\r\n};\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 = 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.55;\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 = 640;\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};\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 {IFC_Page_Data, IFC_Page_Template} 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-atom2 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: \"User_Note\",\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 defaultSubPageTemplate: 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; \r\n `,\r\n layoutOneByOneStyleArray: [\r\n `width:calc(50%);float:left;`,\r\n `width:calc(50%);float:left;`,\r\n `width:calc(50%);float:left;`,\r\n `width:calc(50%);float:left;`,\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 {Hub} from 'aws-amplify';\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_ID_LOCAL_APP_DB,\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\n\r\nvar appUserManager: IFC_UserManager = reactive({});\r\nwindow.appUserManager = appUserManager;\r\n\r\n\r\nappUserManager.currentUserInfo = reactive({});\r\n\r\n\r\nappUserManager.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\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\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. \\nsupport@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\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.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 UIS.isOutOfCreditsDialogNeeded=true;\r\n window.emitter.emit(TYPE_EVENT.OUT_OF_CREDITS);\r\n return false;\r\n } else{\r\n // credits ok\r\n }\r\n return true;\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,\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\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 // cerr(\"*zreq\",zRequest);\r\n\r\n // * via AI Proxy Server\r\n let zAIProxyServerURL = TYPE_PROP.AI_PROXY_SERVER_URL_PROD;\r\n if (SYSS.isTestEnv) {\r\n zAIProxyServerURL = TYPE_PROP.AI_PROXY_SERVER_URL_TEST;\r\n }\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 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 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 = TYPE_PROP.AI_PROXY_SERVER_URL_PROD;\r\n if (SYSS.isTestEnv) {\r\n zAIProxyServerURL = TYPE_PROP.AI_PROXY_SERVER_URL_TEST;\r\n }\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.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 }\r\n\r\n\r\n\r\n cwrn(\"*aigen done\", zSessionItem.AIActionType);\r\n }, 200);\r\n }\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 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 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 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_UserManager} from \"@/codes/_20.def/managerIFs\";\r\nimport {IFC_OptionsForSERP, IFC_SERPItem} from \"@/codes/_20.def/dataTypes\";\r\nimport {reactive} from \"vue\";\r\nimport {SYSS} from \"@/codes/_10.sys/A0Committee\"\r\nimport {TYPE_FILTER_CODE, TYPE_NOTE_SOURCE} from \"@/codes/_20.def/_modDataDict\";\r\n\r\nvar appSERPManager: IFC_SERPManager = reactive({});\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\ndeclare var appUserManager: IFC_UserManager;\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 + \"/spr1\";\r\n let zEndPointURL = SYSS.API_ADDR + \"/spr1\";\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 // if (zSERPOptions.q) {\r\n // let zQLow = zSERPOptions.q.toLowerCase();\r\n // if (zQLow.indexOf(\"site:\") < 0) {\r\n // if (appSERPManager.givenWebsiteURL) {\r\n // zSERPOptions.q = \"site:\" + appSERPManager.givenWebsiteURL + \" \" + zSERPOptions.q;\r\n // }\r\n // }\r\n // }\r\n if (appSERPManager.givenWebsiteURL) {\r\n zSERPOptions.sites = [appSERPManager.givenWebsiteURL];\r\n }\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.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 + \"/spr1\";\r\n let zEndPointURL = SYSS.API_ADDR + \"/spr2\";\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 if (appSERPManager.givenWebsiteURL) {\r\n zSERPOptions.sites = [appSERPManager.givenWebsiteURL];\r\n }\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\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 defaultSubPageTemplate,\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 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 if (xPageSection.sectionMemo) {\r\n\r\n xPageSection._cacheMemoHTML = appPageTemplateManager.remarkableMD.render(xPageSection.sectionMemo);\r\n // cwrn(\"*rdr mmo\",xPageSection.sectionMemo,xPageSection._cacheMemoHTML)\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 xPageSection._headerSectionGUID = \"\";\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 if (xPageSection.sectionType != TYPE_SECTION.HEADER) {\r\n xPageSection._headerSectionGUID = xCheckingPageSection._GUID;\r\n }\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\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_SharingManager, IFC_UserContentManager} from \"@/codes/_20.def/managerIFs\";\r\nimport {TYPE_FILTER_CODE, TYPE_SECTION} from \"@/codes/_20.def/_modDataDict\";\r\nimport {IFC_Page_Section, IFC_UIS} from \"@/codes/_20.def/dataTypes\";\r\nimport {lockResultPageUI, UIS, unlockResultPageUI} 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\n\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\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.refLink) {\r\n zResText += `[Reference](${xPageSection.refLink})` + \"\\n\\n\";\r\n }\r\n\r\n });\r\n\r\n return zResText;\r\n}","import {createI18n} from 'vue-i18n';\r\n\r\nconst messages = {\r\n en: {\r\n placeholder: {\r\n \"command_input_chat\": \"Write down your topic and press enter to dive in.\",\r\n \"command_input_chat_short\": \"Ask AI something\",\r\n \"command_input_note\": \"Write down or paste your text notes here.\",\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 messages: {\r\n \"EmptyPage_Title\": \"Ahoy! It looks like we're adrift on an empty sea.\",\r\n \"NewSession4EmptyPage\": \"Create a new session\",\r\n \"LoadSession4EmptyPage\": \"Dive from an existing session\",\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 \"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 \"ExploreSelection\": \"Explore\",\r\n \"ClearSelection\": \"Clear\",\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 \"RefInserted\":\"Inserted\",\r\n \"UpdateViewingText\": \"Update viewing card content\",\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 \"InTheTopOfSession\":\"in the top of session\",\r\n\r\n\r\n \"StartNewSession\": \"Start a new session\",\r\n \"StartNewSessionDescription\":\"Leave this session 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 \"InsertMoreLikeThis\": \"Insert more cards like this\",\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 card.\\n\\nAre you sure?\",\r\n \"Confirm2Remove_Header_And_Sections\": \"This will discard the selected group and all cards inside.\\n\\nAre you sure?\",\r\n \"Confirm2OpenTab4SharedPage\": \"Would you like to open a new tab to preview this sharing page?\",\r\n \"Confirm2GenerateMoreLikeThis\": \"This will generate more notes like the selected card after the current position. \\n\\nAre you sure? \\n\\nSelected Card:\\n\",\r\n \"Confirm2DiveInto\":\"Dive into this topic\",\r\n \"Confirm2OpenAllStarredItems\":\"Open all items in new tabs\",\r\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 \"OPIntroContinueDiving\":\"Choose an action to continue your diving.\",\r\n \"OPIntroStarringItem\":\"Click the star icon to collect your first card here.\",\r\n \"TrySampleTopics\": \"No ideas? Try these topics.\",\r\n \"PreviewAddingNotes\": \"Preview the structure of notes\",\r\n\r\n \"ChooseSubscriptionPlan_Title\": \"Time to Refresh Your Plan\",\r\n \"ChooseSubscriptionPlan1\": \"To keep delivering the best AI diving experience, it's time to pick your new subscription plan.\",\r\n // \"ChooseSubscriptionPlan2\": \"Your trust and involvement are helping DiveDeck.AI to grow and evolve. ❤\",\r\n \"ChoosePlan\": \"Upgrade Now\",\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 \"PoweredByDiveDeck\": \"powered by DiveDeck.AI\",\r\n \"SaveToMyBase\": \"Save to my base\",\r\n\r\n \"MySessionIntro\": \"All your sessions 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\": \"Time to Refill Your Credits\",\r\n \"OutOfCredits_Desc1\": \"Your credit tank's empty, please refill it for deeper diving.\",\r\n \"OutOfCredits_Desc2\": \"(Pro Plan with 20,000 credits = approx. 500 ~ 1,000 queries)\",\r\n\r\n\r\n \"EditImage\": \"Edit note image\",\r\n \"EditNote\": \"Edit note text\",\r\n \"EditHeader\": \"Edit header text\",\r\n \"GotoWebsite\": \"Go to website\",\r\n \"DiveInto\": \"Dive into this topic\",\r\n \"ChangeHeaderStyle\": \"Change the header style\",\r\n \"ChangeLayoutStyle\": \"Change the layout style\",\r\n\r\n \"PromptSiteDesc1\": \"Please type your preset site addresses below. \",\r\n \"PromptSiteDesc2\": \"For future inquiries, you may limit the search to content from a specified site only.\",\r\n\r\n \"YouMayBeInterestedIn\": \"You might be interested in\",\r\n \"InformationMightBeUseful\": \"Information might be useful\",\r\n\r\n \"InputAddHeader\":\"To create a new group, please input the group title after # \",\r\n \"InputAddNoteCard\":\"To take a quick note, please input the note title after ## \",\r\n\r\n \"OPDisabledUnderFilterMode\": \"Filter Mode\",\r\n\r\n \"OpenLinkInNewTab\":\"Open external link\",\r\n\r\n \"hello\": \"Hello World!!!\",\r\n },\r\n\r\n \"Manage_Sessions\": \"All Sessions\",\r\n \"Output_Page\": \"Export\",\r\n \"Update_Sharing\": \"Update Sharing\",\r\n \"Stop_Sharing\": \"Stop Sharing\",\r\n \"Start_Sharing\": \"Start Sharing the Session\",\r\n \"Sharing_In_Progress\": \"Sharing In Progress\",\r\n \"Sharing_URL\": \"Sharing URL\",\r\n\r\n \"Export_Whole_Session_To_Markdown_Text\": \"Export Whole Session (markdown text)\",\r\n \"Export_Whole_Session_To_HTML\": \"Export Whole Session (HTML)\",\r\n \"Export_This_PageView_To_Markdown_Text\": \"Export Current View (markdown text)\",\r\n \"Export_This_PageView_To_HTML\": \"Export Current View (HTML)\",\r\n \"Export_Starred_Items_To_Markdown_Text\":\"Export Starred Items (markdown text)\",\r\n \"Export_Starred_Items_To_HTML\":\"Export Starred Items (HTML)\",\r\n\r\n \"Lets_Go\": \"Let's Go\",\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 exploring\",\r\n \"Asking_AI\": \"Asking AI\",\r\n \"AI_Reply\": \"AI's reply\",\r\n \"Selected_Page\": \"Selected page\",\r\n\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_Header_And_Sections\": \"Remove header and cards\",\r\n \"Remove_Section_Only\": \"Remove this card\",\r\n \"Find_Image\": \"Search for images\",\r\n \"Copy_To_Clipboard\": \"Copy To clipboard\",\r\n\r\n \"MoreLikeThis\": \"More Like This\",\r\n \"Open\": \"Open\",\r\n \"Discard\": \"Discard\",\r\n\r\n \"Header_Style\": \"Header Style\",\r\n \"Layout_Style\": \"Layout Style\",\r\n\r\n \"Create\": \"Create\",\r\n \"Rename\": \"Rename\",\r\n \"Reset\": \"Reset\",\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 \"Note_Title\": \"Title\",\r\n \"Note_Content\": \"Content\",\r\n \"Note_RefLink\": \"Reference Link\",\r\n \"New_Blank_Memo\": \"Memo\",\r\n \"New_Bookmark\":\"Bookmark\",\r\n \"New_Blank_Group\": \"New Group\",\r\n\r\n \"Save_Note\": \"Save Note\",\r\n\r\n \"Remove_Image\": \"Remove image\",\r\n \"Change_Image\": \"Change\",\r\n \"Add_Image\": \"Add\",\r\n\r\n \"Home\": \"Home\",\r\n \"Topics\": \"Topics\",\r\n \"Related_Topic\": \"Related topic\",\r\n \"User_Note\": \"User Note\",\r\n \"CurrentTopics\": \"Current Topics\",\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\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\": \"Starred Items\",\r\n \"Unstar\": \"Unstar\",\r\n\r\n \"Note\": \"Note\",\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 \"Web_Search\": \"Search Web\",\r\n \"Web_Search_Like_This\": \"Search for more pages\",\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 \"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_Sessions\": \"My Sessions\",\r\n \"Noname\": \"Noname\",\r\n\r\n \"Credits\": \"Credits\",\r\n \"SubEnd_Date\": \"Subscription until\",\r\n \"Manage_Subscription\": \"Manage subscription\",\r\n \"Upgrade_Subscription\": \"Upgrade!\",\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;","//@TS-NOCHECK\r\n\r\nimport {\r\n IFC_AIManager,\r\n IFC_AIPrompt_Provider,\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,\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, TYPE_PROP,\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\n\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\n\r\nvar appUserContentManager: IFC_UserContentManager = {};\r\n\r\ndeclare var moveElementAfter: any;\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.insertPageSectionsToPosition = function (xPageGUID, xPageSectionsToInsert, xPositionIndex, xParentPageSectionGUID) {\r\n // * init\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) {\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 // 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 _.each(zFollowupQuestions, function (xFollowupQuestion: string) {\r\n let zFollowupQuestion = nz(xFollowupQuestion, \"\").trim();\r\n if (zFollowupQuestion) {\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 }\r\n })\r\n\r\n /*if (zFollowupQuestions.length > 2) {\r\n // zCallingQueryFuncs.push(appSERPManager.getSERPResult({q: zFollowupQuestions[2]}));\r\n zCallingQueryFuncs.push(appSERPManager.getEXAResult({q: zFollowupQuestions[2]}));\r\n }*/\r\n /*if (zFollowupQuestions.length > 3) {\r\n zImageSearchingQueryString = nz(zFollowupQuestions[3], \"\").trim();\r\n /!*if (xHeaderGUID && zImageSearchingQueryString) {\r\n let zHeaderSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, xHeaderGUID);\r\n if (zHeaderSection) {\r\n\r\n /!*appUserContentManager.upsertPageSectionsFromExtSearch(\r\n UIS.currentUserContentPageGUID,xHeaderGUID,\r\n {\r\n userMessage: zImageSearchingQueryString,\r\n followupQuestions: appCommandManager.followupQuestions,\r\n },{\r\n type:\"images\"\r\n }\r\n );*!/\r\n zHeaderSection.coverImageURL=\"\";\r\n zHeaderSection._isImageNeeded=true;\r\n appUserContentManager.addSERP2PageSection(zHeaderSection, {\r\n type: \"images\",\r\n q: zImageSearchingQueryString\r\n });\r\n }\r\n cwrn(\"*flup-imgsrch\",zHeaderSection,zImageSearchingQueryString);\r\n }*!/\r\n }*/\r\n\r\n try {\r\n const [\r\n zResultFromSERPER_A,\r\n zResultFromSERPER_B,\r\n zResultFromSERPER_C,\r\n zResultFromSERPER_D,\r\n zResultFromSERPER_E,\r\n // zResultFromEXA,\r\n ] = 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 } 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 sectionType: TYPE_SECTION.NOTE_CARD,\r\n sectionTitle: zTitle,\r\n sectionBodyText: nz(xSERPResItem.snippet, \"\"),\r\n refLink: 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 // * translation (if necessary)\r\n // appUserContentManager.translatePageSectionsByGUIDs(zPageSectionGUIDs2Translate);\r\n\r\n // appUserContentManager.translatePageSections\r\n // _.each(zPageSectionGUIDs2Translate, function (xPageSection2Trns: IFC_Page_Section) {\r\n // if (xPageSection2Trns && xPageSection2Trns._GUID){\r\n // let zPageSection2Trns=appUserContentManager.getSection(UIS.currentUserContentPageGUID, xPageSection2Trns._GUID);\r\n //\r\n // }\r\n //\r\n // })\r\n // await appAIManager.askAIForMarkdownReply(zAskAIOptions);\r\n // unlockResultPageUI();\r\n window.emitter.emit(TYPE_EVENT.SERP_DONE)\r\n\r\n\r\n}\r\n\r\n// Ext Search like image\r\nappUserContentManager.upsertPageSectionsFromExtSearch = 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 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\r\n // * add SERP Context\r\n appPromptProvider.SERPContextString = \"\";\r\n let zFollowupQuestions = nz(xAskAIOptions.followupQuestions, [zUserMessage, zUserMessage]);\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 zExtOptions = nz(xExtOptions, {});\r\n\r\n if (zFollowupQuestions.length > 0) {\r\n zCallingQueryFuncs.push(appSERPManager.getSERPResult(_.extend({q: zFollowupQuestions[0]}, zExtOptions)));\r\n }\r\n if (zFollowupQuestions.length > 1) {\r\n zCallingQueryFuncs.push(appSERPManager.getSERPResult(_.extend({q: zFollowupQuestions[1]}, zExtOptions)));\r\n }\r\n\r\n try {\r\n const [\r\n zResultFromSERPERA,\r\n zResultFromSERPERB,\r\n ] = await Promise.all(zCallingQueryFuncs);\r\n if (zResultFromSERPERA) zSERPReturnDataArray.push(zResultFromSERPERA);\r\n if (zResultFromSERPERB) zSERPReturnDataArray.push(zResultFromSERPERB);\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\r\n\r\n // * Insert SERP Image 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\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 zPageSections2Insert.push({\r\n _GUID: chance.guid(),\r\n sectionType: TYPE_SECTION.NOTE_CARD,\r\n sectionTitle: zTitle,\r\n sectionBodyText: nz(xSERPResItem.snippet, \"\"),\r\n refLink: nz(xSERPResItem.link, \"\"),\r\n flagCode: nz(zFlagCode, \"\"),\r\n coverImageURL: nz(xSERPResItem.imageUrl, \"\"),\r\n sectionSourceType: nz(xSERPResItem.sourceType, TYPE_NOTE_SOURCE.WEB_DEFAULT),\r\n publishedDate: nz(xSERPResItem.publishedDate, \"\"),\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 // unlockResultPageUI();\r\n window.emitter.emit(TYPE_EVENT.SERP_DONE);\r\n\r\n}\r\n\r\nappUserContentManager.upsertPageSectionsFromAIReply = async function (xPageGUID, xHeaderGUID, xAskAIOptions) {\r\n cerr(\"*ai rply\")\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.upsertPageSectionsFromSERPQueries = async function (xPageGUID, xSERPOptionArray) {\r\n /* if (!xSERPOptionArray) reutrn;\r\n if (!xSERPOptionArray.length) reutrn;\r\n\r\n let zSERPDataArray = [];\r\n\r\n zSERPDataArray.push(await appSERPManager.getSERPResult(xSERPOptionArray[0]));\r\n zSERPDataArray.push(await appSERPManager.getSERPResult(xSERPOptionArray[1]));\r\n zSERPDataArray.push(await appSERPManager.getSERPResult(xSERPOptionArray[2]));\r\n\r\n if (zSERPDataArray.length) {\r\n appUserContentManager.upsertPageSectionsFromSERPDataArray(xPageGUID, zSERPDataArray);\r\n }*/\r\n}\r\n\r\n/*appUserContentManager.upsertPageSectionsFromSERPDataArray = async function (xPageGUID, xSERPDataArray) {\r\n\r\n if (!xSERPDataArray) return cerr(\"missing spdt\");\r\n if (!xSERPDataArray.length) return;\r\n\r\n let zSessionGUID = chance.guid();\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 = zSessionGUID;\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.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\r\n try {\r\n let zResMessage = \"\";\r\n let zH1Title = \"\"\r\n // console.log(\"*xSPDAy\",xSERPDataArray);\r\n\r\n _.each(xSERPDataArray, function (xSERPData: any) {\r\n let zSERPResData: IFC_ResultsFromSERP = nz(xSERPData, {}).res;\r\n if (!zSERPResData) return;\r\n if (!zH1Title) {\r\n\r\n zH1Title = nz(zSERPResData.searchParameters, {q: \"Noname\"}).q + \" +qqq\";\r\n zResMessage += \"# \" + zH1Title + \"\\n\";\r\n }\r\n cerr(\"*zrsms\", zResMessage);\r\n if (zSERPResData.peopleAlsoAsk) {\r\n _.each(zSERPResData.peopleAlsoAsk, function (xSERP_PAA: any) {\r\n if (xSERP_PAA) {\r\n zResMessage += \"## \" + nz(xSERP_PAA.question) + \"\\n\"\r\n + (xSERP_PAA.snippet) + \"\\n\";\r\n }\r\n })\r\n }\r\n\r\n if (zSERPResData.organic) {\r\n _.each(zSERPResData.organic, function (xOrganicObject, zOrganicIndex) {\r\n if (zOrganicIndex > 5) return;\r\n if (xOrganicObject && xOrganicObject.snippet) {\r\n zResMessage += \"##\" + (xOrganicObject.title) + \"\\n\"\r\n + (xOrganicObject.snippet) + \"\\n\";\r\n }\r\n });\r\n // cerr(\"*ogsts\", zOrganicStrings);\r\n }\r\n\r\n });\r\n\r\n\r\n zSessionItem.userMessage = zH1Title;\r\n zSessionItem.returnMessage = zResMessage;\r\n\r\n //zSessionItem.returnMessage += zResPageItems;\r\n window.emitter.emit(TYPE_EVENT.AI_GENERATING);\r\n\r\n } catch (e) {\r\n // console.log(\"*srp err\");\r\n console.error(e);\r\n } finally {\r\n // console.log(\"*srp x990\");\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.addSummary2PageSection = async function (xPageSection, xSummaryOptions) {\r\n if (xPageSection && xPageSection.refLink) {\r\n let zPageSection = xPageSection;\r\n\r\n zPageSection._statusText = \"Distilling ...\";\r\n\r\n if (appSERPManager.checkIfLinkFromBlockedSummarizationSites(xPageSection.refLink)) {\r\n setTimeout(function () {\r\n zPageSection._statusText = \"Summary: N/A\";\r\n zPageSection.sectionSummary = \"N/A\";\r\n }, 200);\r\n window.emitter.emit(TYPE_EVENT.SUMMARY_NA);\r\n return;\r\n }\r\n\r\n let zSummarizedObj =\r\n await appSERPManager.getSummarizedInfoFromURL(zPageSection.refLink);\r\n\r\n cwrn(\"*smz obj\", zSummarizedObj);\r\n\r\n let zSummarizedText = nz(zSummarizedObj.snippet, \"N/A\");\r\n\r\n /*let zSectionBodyText = zPageSection.sectionBodyText\r\n + \"\\n\\n----\\n\\n\" + TYPE_PROP.PAGE_SUM_FLAG_NAME + \"\\n\\n\"\r\n + zSummarizedText;*/\r\n // zPageSection.publishedDate\r\n appUserContentManager.updatePageSection(UIS.currentUserContentPageGUID,\r\n zPageSection._GUID,\r\n {\r\n // sectionBodyText: zSectionBodyText,\r\n sectionSummary: zSummarizedText,\r\n coverImageURL: nz(zSummarizedObj.image, \"\"),\r\n publishedDate: nz(zSummarizedObj.publishedDate, \"\"),\r\n });\r\n\r\n window.emitter.emit(TYPE_EVENT.SUMMARY_DONE);\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 let zSourceText = \"User Query:\"\r\n + zHeaderPageSection.sectionTitle + \" / \"\r\n + zHeaderPageSection.sectionBodyTextLess\r\n + \"\\n\\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.refLink)\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\r\n appCommandManager.currentHeaderGUID = zHeaderPageSection._GUID;\r\n appUserContentManager.upsertPageSectionsFromAIReply(\r\n UIS.currentUserContentPageGUID,\r\n zHeaderPageSection._GUID,\r\n {\r\n userMessage: zSourceText,\r\n 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\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 }, 200);\r\n }\r\n\r\n}\r\n\r\nappUserContentManager.insertBlankSection = function (xTargetPageGUID, xCurrentPageCoulmnIndex, xPageSectionIndex) {\r\n let zTargetPageGUID = nz(xTargetPageGUID, UIS.currentUserContentPageGUID);\r\n let zTargetPageSectionIndex = xPageSectionIndex;\r\n let zPageItem: IFC_Page_Data = appUserContentManager.allUserContentPages[zTargetPageGUID];\r\n let zNewPageSection: IFC_Page_Section = {_GUID: chance.guid(), sectionTitle: \"New Page Section\"};\r\n zPageItem.pageSections.splice(zTargetPageSectionIndex + 1, 0, zNewPageSection);\r\n\r\n appUserContentManager.savePageData(zTargetPageGUID);\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\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.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\nappUserContentManager.updatePageSectionStar = function (xTargetPageGUID, xTargetPageSectionGUID, xIsStarred) {\r\n let zTargetPageGUID = nz(xTargetPageGUID, UIS.currentUserContentPageGUID);\r\n let zTargetPageData = appUserContentManager.allUserContentPages[zTargetPageGUID];\r\n if (!zTargetPageData) return;\r\n let zTargetPageSectionGUID = nz(xTargetPageSectionGUID, \"\");\r\n let zPageSection: IFC_Page_Section = appUserContentManager.getSection(zTargetPageGUID, zTargetPageSectionGUID);\r\n if (!zPageSection) return;\r\n\r\n let zIsNowStarred = _.includes(zTargetPageData.starredSectionGUIDs, xTargetPageSectionGUID);\r\n if (zIsNowStarred && xIsStarred) return;\r\n if ((!zIsNowStarred) && (!xIsStarred)) return;\r\n\r\n if (!xIsStarred) {\r\n appUserContentManager.updatePageSection(zTargetPageGUID, zPageSection._GUID, {_isStarred: false});\r\n assignArray(zTargetPageData.starredSectionGUIDs, _.without(zTargetPageData.starredSectionGUIDs, zPageSection._GUID));\r\n } else {\r\n appUserContentManager.updatePageSection(zTargetPageGUID, zPageSection._GUID, {_isStarred: true});\r\n assignArray(zTargetPageData.starredSectionGUIDs, _.union([zPageSection._GUID], zTargetPageData.starredSectionGUIDs));\r\n }\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, xSectionIndex) {\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 // 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}\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 _.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, zSectionIndex);\r\n zSectionIndex++;\r\n });\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 && 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.generatePageTitle(xSavingPageGUID);\r\n let zUserName = localStorage[TYPE_ID_LOCAL_APP_DB.USER_NAME];\r\n if (UIS.isSharingViewMode) zUserName = \"\";\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.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.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(\"# \") && (xAISession.AIActionType = TYPE_AI_ACTION.ForPoints)) {\r\n zSectionType = TYPE_SECTION.HEADER;\r\n zProcessingPageSection = {\r\n _GUID: chance.guid(),\r\n sectionType: zSectionType,\r\n layoutCode: nz(UIS.generatingTempLayoutCode, \"Default\"),\r\n headerCode: \"Default\",\r\n };\r\n xAISession.belongingHeaderSectionGUID = zProcessingPageSection._GUID;\r\n\r\n if (xAISession.SERPItemArray && (!zProcessingPageSection.SERPItemArray)) {\r\n zProcessingPageSection.SERPItemArray = xAISession.SERPItemArray;\r\n }\r\n\r\n\r\n xPageItem.pageSections.splice(UIS.endSectionIndex4Rendering, 0, zProcessingPageSection);\r\n zCurrentSelectedPageSectionGUID = xPageItem.pageSections[UIS.endSectionIndex4Rendering]._GUID;\r\n\r\n UIS.endSectionIndex4Rendering++;\r\n zProcessingPageSection.sectionTitle = nz(zTextLine, \"\");\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 _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 // cwrn(\"*ss simgs\",xAISession.searchedImages);\r\n /*let zSearchedImages = xAISession.searchedImages;\r\n if ((!zProcessingPageSection.coverImageURL) && (zSearchedImages && zSearchedImages.length)) {\r\n\r\n // ** cover image URL\r\n let zSearchedImageInfo = zSearchedImages[zSearchedImageIndex];\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 zSearchedImageIndex++\r\n }\r\n\r\n // ** option image URL\r\n zProcessingPageSection.optionalCoverImageURLs = [];\r\n zProcessingPageSection.optionalCoverImageSourceURLs = [];\r\n\r\n _.each(zSearchedImages, function (xSearchedImageItem) {\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 // zProcessingPageSection.coverImageURL=\"https://images.unsplash.com/photo-1707345512638-997d31a10eaa?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDF8MHxlZGl0b3JpYWwtZmVlZHwxfHx8ZW58MHx8fHx8\"\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.refLink)\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.refLink = 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.refLink = 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\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 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_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]\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\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 if (!zUserMsg) return;\r\n\r\n // ** WEB_SEARCH\r\n if (xCommandString == TYPE_INPUT_COMMAND.WEB_SEARCH) {\r\n\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 AIActionType: TYPE_AI_ACTION.UserInputWithoutAI,\r\n });\r\n*/\r\n //\r\n }\r\n // ** USER_MEMO\r\n /* else if (xCommandString == TYPE_INPUT_COMMAND.USER_MEMO) {\r\n let zNow = new Date();\r\n let zMemoNoteString = \"\" + zUserMsg + \"\\n\"\r\n // cerr(\"*zmmos\",zMemoNoteString);\r\n /!*+ zNow.toLocaleDateString(\r\n nz(UIS.currentUserContentPageTemplate.locale, \"en-us\"),\r\n nz(UIS.currentUserContentPageTemplate.dateOptions, {})) + \" \"\r\n + zNow.format(\"hh:mm\")\r\n + \" Memo\"*!/\r\n + \"\\n\";\r\n appUserContentManager.upsertPageSectionsFromUserInput(UIS.currentUserContentPageGUID, zMemoNoteString);\r\n //\r\n }\r\n // ** USER_HEADER\r\n else if (xCommandString == TYPE_INPUT_COMMAND.USER_HEADER) {\r\n let zMemoTitle = \"# \" + zUserMsg;\r\n appUserContentManager.upsertPageSectionsFromUserInput(UIS.currentUserContentPageGUID, zMemoTitle);\r\n //\r\n }*/\r\n\r\n // ** AI_PLUS_SEARCH\r\n else 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.upsertPageSectionsFromExtSearch(\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.upsertPageSectionsFromExtSearch(\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 else 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 });\r\n // modelType:\"lite\", // quality's too bad\r\n }\r\n\r\n // ** AI_Followups\r\n else 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: zUserMsg,\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 /*// ** 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","/* eslint-disable */\n// WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten.\n\nconst awsmobile = {\n \"aws_project_region\": \"us-west-1\",\n \"aws_appsync_graphqlEndpoint\": \"https://3dtgepsrc5gvbpt4jl5zmuwjia.appsync-api.us-west-1.amazonaws.com/graphql\",\n \"aws_appsync_region\": \"us-west-1\",\n \"aws_appsync_authenticationType\": \"API_KEY\",\n \"aws_appsync_apiKey\": \"da2-sd4qneuiovcf3bm5y4ry7elm3m\",\n \"aws_cognito_identity_pool_id\": \"us-west-1:4392a1d7-84d0-4aa3-b12c-c05cbad1c7f6\",\n \"aws_cognito_region\": \"us-west-1\",\n \"aws_user_pools_id\": \"us-west-1_YRZdzDSrN\",\n \"aws_user_pools_web_client_id\": \"tjfkqie9jthvu5skshj2lrrst\",\n \"oauth\": {\n \"domain\": \"0p6gk1mjl0bz-staging.auth.us-west-1.amazoncognito.com\",\n \"scope\": [\n \"phone\",\n \"email\",\n \"openid\",\n \"profile\",\n \"aws.cognito.signin.user.admin\"\n ],\n \"redirectSignIn\": \"https://app.divedeck.ai\",\n \"redirectSignOut\": \"https://app.divedeck.ai\",\n \"responseType\": \"code\"\n },\n \"federationTarget\": \"COGNITO_USER_POOLS\",\n \"aws_cognito_username_attributes\": [\n \"EMAIL\"\n ],\n \"aws_cognito_social_providers\": [\n \"GOOGLE\"\n ],\n \"aws_cognito_signup_attributes\": [\n \"EMAIL\"\n ],\n \"aws_cognito_mfa_configuration\": \"OFF\",\n \"aws_cognito_mfa_types\": [\n \"SMS\"\n ],\n \"aws_cognito_password_protection_settings\": {\n \"passwordPolicyMinLength\": 8,\n \"passwordPolicyCharacters\": []\n },\n \"aws_cognito_verification_mechanisms\": [\n \"EMAIL\"\n ],\n \"aws_dynamodb_all_tables_region\": \"us-west-1\",\n \"aws_dynamodb_table_schemas\": [\n {\n \"tableName\": \"test123-staging\",\n \"region\": \"us-west-1\"\n }\n ]\n};\n\n\nexport default awsmobile;\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 = { class: \"rc3 uk-clearfix\" }\nconst _hoisted_2 = { class: \"el-dropdown-link hotLink inline-block app-comment margin5\" }\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-primary-gradient\" }\nconst _hoisted_9 = {\n key: 0,\n class: \"inline-block text-black-30 margin10-lr\"\n}\nconst _hoisted_10 = {\n key: 1,\n class: \"uk-clearfix margin10 text-black-60 bold text12B\"\n}\nconst _hoisted_11 = {\n class: \"inline-block text-black-60\",\n style: {\"padding-left\":\"20px\"}\n}\nconst _hoisted_12 = {\n class: \"uk-clearfix margin10 text-black-60 text12B\",\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: \"uk-clearfix margin10 text-black-60 bold text12B\",\n style: {\"padding-left\":\"20px\"}\n}\nconst _hoisted_15 = { class: \"inline-block text-black-60\" }\nconst _hoisted_16 = {\n class: \"uk-clearfix margin10 text-black-60 text12B\",\n style: {\"padding-left\":\"20px\"}\n}\nconst _hoisted_17 = {\n key: 2,\n class: \"uk-clearfix margin10 text-black text12B\"\n}\nconst _hoisted_18 = {\n key: 3,\n class: \"uk-clearfix margin10 text-black text12B\"\n}\nconst _hoisted_19 = { class: \"uk-clearfix margin10 text-black text12B\" }\n\n\r\nimport {TYPE_PROP} 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\n\r\n\r\nconst __default__ = {\r\n computed: {\r\n leftCredits() {\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 \"(Out of Credits)\";\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 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 (_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[3] || (_cache[3] = _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) + \" \" + _toDisplayString(_ctx.$t(\"Plan\")), 1),\n (!_ctx.isApprovedSubPlanUser)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9, \" * \"))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true),\n (!_ctx.paidSubPlanName)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", _hoisted_11, _toDisplayString(_ctx.$t(\"Free Trial\")), 1)\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_12, _toDisplayString(_ctx.$t(\"Credits\")) + \": \" + _toDisplayString(_ctx.leftCredits), 1),\n _createElementVNode(\"div\", _hoisted_13, _toDisplayString(_ctx.$t(\"SubEnd_Date\")) + \" \" + _toDisplayString(_ctx.subDate), 1),\n _createElementVNode(\"div\", _hoisted_14, [\n _createElementVNode(\"div\", _hoisted_15, _toDisplayString(_ctx.$t(\"Support\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_16, _toDisplayString(_unref(TYPE_PROP).APP_SUPPORT_EMAIL), 1),\n _cache[10] || (_cache[10] = _createElementVNode(\"hr\", null, null, -1)),\n (_ctx.paidSubPlanName)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_17, [\n _createElementVNode(\"div\", {\n class: \"text12B hotLink\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (clickManageSubscription()))\n }, [\n _cache[4] || (_cache[4] = _createElementVNode(\"div\", { class: \"inline-block\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-cog3 img16\" })\n ], -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Manage_Subscription\")), 1)\n ]),\n _cache[5] || (_cache[5] = _createElementVNode(\"hr\", null, null, -1))\n ]))\n : _createCommentVNode(\"\", true),\n (!_ctx.paidSubPlanName)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_18, [\n _createElementVNode(\"div\", {\n class: \"text12B hotLink\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (clickUpgradeSubPlan()))\n }, [\n _cache[6] || (_cache[6] = _createElementVNode(\"div\", { class: \"inline-block\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-cart img16\" })\n ], -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Upgrade_Subscription\")), 1)\n ]),\n _cache[7] || (_cache[7] = _createElementVNode(\"hr\", null, null, -1))\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_19, [\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[2] || (_cache[2] = _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 ]))\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, toDisplayString as _toDisplayString, vShow as _vShow, withDirectives as _withDirectives, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, withCtx as _withCtx } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"ccc-back-blur absolute-max\",\n style: {\"z-index\":\"10\"}\n}\nconst _hoisted_2 = {\n class: \"uk-clearfix padding10 text24 bold ca nav-card\",\n style: {\"position\":\"absolute\",\"top\":\"0\",\"right\":\"0\",\"bottom\":\"0\",\"width\":\"620px\",\"z-index\":\"15\"}\n}\nconst _hoisted_3 = { class: \"inline-block text-black\" }\nconst _hoisted_4 = {\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_5 = { id: \"divUserInputCenter\" }\nconst _hoisted_6 = { id: \"divNavButtonBar\" }\nconst _hoisted_7 = {\n key: 0,\n style: {\"z-index\":\"899\",\"position\":\"absolute\",\"top\":\"38px\",\"height\":\"20px\",\"right\":\"15px\"},\n class: \"no-select\"\n}\nconst _hoisted_8 = { class: \"inline-block ccc-color-primary\" }\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} 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\nlet currentUserInfo = appUserManager.currentUserInfo;\r\n\r\ndeclare var _: any;\r\n\r\nimport {Authenticator} from \"@aws-amplify/ui-vue\";\r\nimport \"@/css/amplify.css\";\r\n\r\nimport {Amplify, Auth, Hub} from 'aws-amplify';\r\nimport 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\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 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 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\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.right = \"0px\";\r\n zResStyle.width = \"64px\";\r\n } else {\r\n\r\n zResStyle.width = `${UIS.rightMenuBarWidth}px`;\r\n zResStyle.right = \"0px\";\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 zResStyle.width = `${UIS.leftMenuBarWidth}px`;\r\n zResStyle.left = \"5px\";\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 (xSignOutAuthFunc: any) {\r\n appUserManager.letUserSignOutSync();\r\n if (xSignOutAuthFunc) {\r\n xSignOutAuthFunc();\r\n }\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\nconst clickUpgradeSubscription = function () {\r\n let zSubPlanURL = TYPE_PROP.SUB_PLAN_PRICING_URL as string;\r\n window.location = zSubPlanURL;\r\n}\r\n\r\n\r\nAmplify.configure(awsconfig);\r\n\r\n/*const clickAuthLogin=async function() {\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\nasync function showCurrentUser() {\r\n try {\r\n const user = await Auth.currentAuthenticatedUser();\r\n\r\n const {attributes} = user;\r\n console.log(\"**usr\", user);\r\n console.log(\"**usr.a\", user.attributes);\r\n\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n}\r\n\r\nfunction refreshUserInfo(){\r\n // console.log(\"*OPDN,GTU\");\r\n appUserManager.getUserInfo(appUserManager.currentUserInfo);\r\n}\r\n\r\nvar refreshUserInfoLazy=_.debounce(refreshUserInfo,5000);\r\n\r\nwindow.emitter.on(TYPE_EVENT.AI_GEN_POINTS_DONE,refreshUserInfoLazy);\r\nwindow.emitter.on(TYPE_EVENT.AI_GEN_CONCLUSION_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\nwindow.emitter.on(TYPE_EVENT.SUMMARY_DONE,refreshUserInfoLazy);\r\n\r\n// initialize user info\r\nappUserManager.initializeUserSession(function (err) {\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// check If User JumpedIn\r\ncheckIfUserJumpedIn()\r\nconsole.log(\"**usr x0\");\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\":\"#f5f7fa\"}\n }, [\n _withDirectives(_createElementVNode(\"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 _createElementVNode(\"div\", _hoisted_2, [\n _cache[4] || (_cache[4] = _createElementVNode(\"img\", {\n style: {\"z-index\":\"20\",\"height\":\"36px\"},\n src: \"/img/logo.png\",\n class: \"img36 margin5-lr\"\n }, null, -1)),\n _createElementVNode(\"div\", _hoisted_3, _toDisplayString(_unref(TYPE_PROP).APP_NAME), 1)\n ])\n ], 512), [\n [_vShow, (!_unref(UIS).isSharingViewMode) && (!checkIfUserJumpedIn())]\n ]),\n _withDirectives(_createElementVNode(\"div\", {\n style: _normalizeStyle([{\"background-size\":\"cover\",\"background-position\":\"top\",\"z-index\":\"10\",\"opacity\":\"0.05\"}, 'background-image: url('+'./img/app-back.jpg'+');']),\n class: \"absolute-max\"\n }, null, 512), [\n [_vShow, (checkIfUserJumpedIn()) || (_unref(UIS).isSharingViewMode)]\n ]),\n _withDirectives(_createElementVNode(\"div\", null, [\n _cache[9] || (_cache[9] = _createElementVNode(\"div\", { id: \"panSysFuncBar\" }, null, -1)),\n _cache[10] || (_cache[10] = _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\":\"5px\"}, getDiveMenuBarStyle()])\n }, null, 4), [\n [_vShow, (_unref(UIS).currentUserContentPageGUID)]\n ]),\n _withDirectives(_createElementVNode(\"div\", {\n id: \"panResultPages\",\n style: _normalizeStyle([{\"z-index\":\"199\",\"position\":\"absolute\",\"top\":\"64px\",\"bottom\":\"5px\"}, getResultPageStyle()]),\n class: \"no-overflow\"\n }, _cache[5] || (_cache[5] = [\n _createElementVNode(\"div\", { id: \"divResultPages\" }, null, -1)\n ]), 4), [\n [_vShow, _unref(UIS).currentUserContentPageGUID]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_4, _cache[6] || (_cache[6] = [\n _createElementVNode(\"div\", { id: \"divEmptyPage\" }, null, -1)\n ]), 512), [\n [_vShow, \r\n (!_unref(UIS).currentUserContentPageGUID)\r\n &&\r\n (checkIfUserJumpedIn())]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_5, null, 512), [\n [_vShow, _unref(UIS).currentUserContentPageGUID]\n ]),\n _withDirectives(_createElementVNode(\"div\", {\n id: \"panRightSideBar\",\n class: \"hover-overflow uk-animation-fast uk-animation-fade\",\n style: _normalizeStyle([{\"z-index\":\"199\",\"position\":\"absolute\",\"top\":\"36px\",\"bottom\":\"5px\"}, getRightSideBarStyle()])\n }, _cache[7] || (_cache[7] = [\n _createElementVNode(\"div\", { id: \"divRefInfoBar\" }, null, -1)\n ]), 4), [\n [_vShow, (_unref(UIS).currentUserContentPageGUID)]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_6, null, 512), [\n [_vShow, \r\n _unref(UIS).currentUserContentPageGUID]\n ]),\n ((!_ctx.paidSubPlanName) && (checkIfUserJumpedIn()))\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", {\n class: \"text12 hotLink\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (clickUpgradeSubscription()))\n }, [\n _cache[8] || (_cache[8] = _createElementVNode(\"div\", { class: \"inline-block\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-cart img16\" })\n ], -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Upgrade_Subscription\")), 1)\n ])\n ])\n ], 512)), [\n [_vShow, !_unref(UIS).isSharingViewMode]\n ])\n : _createCommentVNode(\"\", true)\n ], 512), [\n [_vShow, \r\n (_unref(appUserManager) && _unref(appUserManager).currentUserInfo &&\r\n (\r\n (_unref(appUserManager).currentSubscriptionStatus==_unref(TYPE_SUBSCRIPTION_STATUS).VALID) ||\r\n (_unref(appUserManager).currentSubscriptionStatus==_unref(TYPE_SUBSCRIPTION_STATUS).BYO_FREE)\r\n )\r\n )\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(_unref(Authenticator), null, {\n default: _withCtx(({ user, signOut }) => [\n _createVNode(UserAccountMenu, {\n \"user-info\": user,\n onOnSignOut: ($event: any) => (clickSignOut(signOut)),\n onOnManageSubscription: _cache[1] || (_cache[1] = ($event: any) => (clickManageSubscription())),\n onOnUpgradeSubscription: _cache[2] || (_cache[2] = ($event: any) => (clickUpgradeSubscription()))\n }, null, 8, [\"user-info\", \"onOnSignOut\"])\n ]),\n _: 1\n })\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, createElementVNode as _createElementVNode, withModifiers as _withModifiers, vShow as _vShow, withDirectives as _withDirectives, vModelText as _vModelText, withKeys as _withKeys, normalizeClass as _normalizeClass, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, normalizeStyle as _normalizeStyle } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"\",\n style: {\"position\":\"absolute\",\"right\":\"12px\",\"z-index\":\"299\",\"top\":\"12px\"}\n}\nconst _hoisted_2 = {\n class: \"\",\n style: {\"position\":\"absolute\",\"top\":\"12px\",\"left\":\"12px\",\"z-index\":\"299\"}\n}\nconst _hoisted_3 = { class: \"uk-animation-fast uk-animation-scale-up text14 text-black marginb5\" }\nconst _hoisted_4 = { class: \"uk-clearfix la\" }\nconst _hoisted_5 = {\n class: \"inline-block\",\n style: {\"width\":\"calc(100%)\",\"background\":\"RGBA(0,0,0,0.5)\"}\n}\nconst _hoisted_6 = [\"placeholder\", \"onKeydown\"]\nconst _hoisted_7 = {\n class: \"uk-clearfix ca margin10\",\n style: {\"padding\":\"0px 0px 15px\"}\n}\nconst _hoisted_8 = {\n class: \"uk-clearfix ca\",\n style: {\"margin-bottom\":\"5px\"}\n}\nconst _hoisted_9 = { class: \"text-white text12B margin5-lr inline-block\" }\nconst _hoisted_10 = {\n class: \"uk-clearfix ca text12B\",\n style: {\"margin\":\"0 32px\"}\n}\nconst _hoisted_11 = { class: \"lt margin10-lr\" }\nconst _hoisted_12 = {\n class: \"lt margin5-lr\",\n style: {\"margin-top\":\"2px\"}\n}\nconst _hoisted_13 = {\n key: 0,\n class: \"rt text12B text-white-30 margin10-lr\"\n}\nconst _hoisted_14 = {\n key: 1,\n class: \"rt text12B text-white-30 margin10-lr\"\n}\nconst _hoisted_15 = {\n class: \"uk-clearfix la\",\n style: {\"margin\":\"0 32px\"}\n}\nconst _hoisted_16 = {\n class: \"uk-clearfix la text12B text-white-30\",\n style: {\"margin\":\"24px 16px 10px 16px\"}\n}\nconst _hoisted_17 = { class: \"text-white-60 inline-block\" }\nconst _hoisted_18 = [\"onClick\"]\nconst _hoisted_19 = [\"src\"]\nconst _hoisted_20 = { class: \"inline-block margin5-lr\" }\nconst _hoisted_21 = {\n class: \"uk-clearfix la\",\n style: {\"margin\":\"10px 32px\"}\n}\nconst _hoisted_22 = { class: \"lt text-white-60 margin10-lr\" }\nconst _hoisted_23 = { class: \"inline-block margin5-lr\" }\n\nimport {lockResultPageUI, UIS} from \"@/codes/_10.sys/UICommittee\";\r\nimport {TYPE_EVENT, TYPE_INPUT_COMMAND, TYPE_SECTION} from \"@/codes/_20.def/_modDataDict\";\r\nimport {GUID_TYPE, IFC_AI_Session, IFC_Page_Column} from \"@/codes/_20.def/dataTypes\";\r\nimport {computed} from \"vue\";\r\n\r\n\r\n//@TS-NOCHECK\r\n\r\nimport {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 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\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\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 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 },\r\n\r\n}\r\n\r\n\r\nlet followupQuestions = 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 inputThings = reactive({\r\n userChatMessage: \"\",\r\n parentPageSectionTitle: \"\",\r\n promptSite: \"\",\r\n promptRoleGUID: \"\",\r\n promptRoleName: \"\",\r\n isAdvancedInputUI:false,\r\n});\r\n\r\n// * init prompt provider settings\r\nlet zInitRole: IFC_AI_ROLE = nz(appPromptProvider.currentRole, window.DefaultRole001);\r\ninputThings.promptRoleGUID = zInitRole._GUID;\r\ninputThings.promptRoleName = zInitRole.roleName;\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\nconst ifContinueButtonShows = function (): boolean {\r\n if (!inputThings.userChatMessage) {\r\n return false;\r\n }\r\n if (!inputThings.parentPageSectionTitle) {\r\n return false;\r\n }\r\n if (nz(inputThings.userChatMessage, \"\").trim() == nz(inputThings.parentPageSectionTitle, \"\").trim()) {\r\n return true;\r\n }\r\n return false;\r\n}\r\n\r\nconst clickContinueBuilding = function () {\r\n let zColumnIndex = UIS.currentUserContentPageColumnIndex;\r\n UIS.ifChattingUI = true;\r\n setInputFocus(\"#inputCenter_chatbox\");\r\n\r\n /*$(\"#divPageColumnResult_\" + zColumnIndex).animate({\r\n\r\n scrollTop: 999999\r\n }, 1000);*/\r\n\r\n /*UIS.ifPageColumnScrollToBottom = true;\r\n\r\n $(\"#userGuide_\" + zColumnIndex).hide();\r\n\r\n setTimeout(function () {\r\n $(\"#userGuide_\" + zColumnIndex).show();\r\n }, 220);\r\n\r\n if (!zColumnIndex) {\r\n setInputFocus(\"#input_\" + \"userGuide_\" + zColumnIndex);\r\n }*/\r\n\r\n // if (UIS.ifChattingUI) return;\r\n\r\n /*\r\n let zSelectedSectionGUID = appUserContentManager.getCurrentSelectedPageSectionGUID();\r\n if (zSelectedSectionGUID) {\r\n setTimeout(function () {\r\n $(\"#divPageSectionCard\" + zSelectedSectionGUID).addClass(\"uk-animation-shake\");\r\n setTimeout(function () {\r\n $(\"#divPageSectionCard\" + zSelectedSectionGUID).removeClass(\"uk-animation-shake\");\r\n }, 1000);\r\n }, 600);\r\n }\r\n */\r\n\r\n // setInputFocus(\"#inputUserCommand\");\r\n}\r\n\r\nconst clickGoBackToLastPageColumn = function () {\r\n if (UIS.currentUserContentPageColumnIndex > 0) {\r\n appUserContentManager.resetPageColumn(UIS.currentUserContentPageColumnIndex - 1);\r\n }\r\n}\r\nconst clickCloseChattingUI = function () {\r\n UIS.ifChattingUI = false;\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\nconst clickGoSearching = function (xEvent?: any) {\r\n\r\n inputThings.userChatMessage = nz(inputThings.userChatMessage, \"\").trim()\r\n if (!inputThings.userChatMessage) return;\r\n\r\n // * run command\r\n\r\n /*if ((xEvent && xEvent.ctrlKey)) {\r\n doRunCommand(TYPE_INPUT_COMMAND.AI_PLUS_SEARCH);\r\n } else {\r\n doRunCommand(TYPE_INPUT_COMMAND.AI_FOLLOWUPS);\r\n }*/\r\n\r\n let zCurrentSelectedPageHeaderSectionGUID = appUserContentManager.getCurrentSelectedPageHeaderSectionGUID();\r\n let zCurrentSelectedPageSectionGUID = appUserContentManager.getCurrentSelectedPageSectionGUID();\r\n\r\n /*if (inputSpecialType.value == TYPE_INPUT_SPECIAL_MODE.ADD_HEADER) {\r\n if (zCurrentSelectedPageHeaderSectionGUID) {\r\n gotoHeaderEndPos();\r\n }\r\n doRunCommand(TYPE_INPUT_COMMAND.USER_HEADER);\r\n\r\n } else if (inputSpecialType.value == TYPE_INPUT_SPECIAL_MODE.ADD_NOTE_CARD) {\r\n\r\n if (!zCurrentSelectedPageHeaderSectionGUID) {\r\n return;\r\n }\r\n if (zCurrentSelectedPageHeaderSectionGUID && (zCurrentSelectedPageHeaderSectionGUID == zCurrentSelectedPageSectionGUID)) {\r\n gotoHeaderEndPos();\r\n }\r\n\r\n doRunCommand(TYPE_INPUT_COMMAND.USER_MEMO);\r\n\r\n } else {*/\r\n\r\n // * clear selection & scroll to section\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, \"\");\r\n appUserContentManager.scrollPageTo(\"top\");\r\n\r\n appSERPManager.givenWebsiteURL = nz(inputThings.promptSite, \"\");\r\n inputThings.promptSite = \"\";\r\n\r\n // doRunCommand(TYPE_INPUT_COMMAND.WEB_SEARCH);\r\n\r\n doRunCommand(TYPE_INPUT_COMMAND.AI_FOLLOWUPS, TYPE_INPUT_COMMAND.AI_PLUS_SEARCH);\r\n\r\n}\r\n\r\nconst clickGoSearchingImage = function (xEvent?: any) {\r\n\r\n inputThings.userChatMessage = nz(inputThings.userChatMessage, \"\").trim()\r\n if (!inputThings.userChatMessage) return;\r\n\r\n // * clear selection & scroll to section\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, \"\");\r\n appUserContentManager.scrollPageTo(\"top\");\r\n\r\n // doRunCommand(TYPE_INPUT_COMMAND.WEB_SEARCH);\r\n\r\n doRunCommand(TYPE_INPUT_COMMAND.AI_FOLLOWUPS, TYPE_INPUT_COMMAND.IMAGE_SEARCH);\r\n\r\n}\r\n\r\nconst clickGoSearchingNews = function (xEvent?: any) {\r\n\r\n inputThings.userChatMessage = nz(inputThings.userChatMessage, \"\").trim()\r\n if (!inputThings.userChatMessage) return;\r\n\r\n // * clear selection & scroll to section\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, \"\");\r\n appUserContentManager.scrollPageTo(\"top\");\r\n\r\n // doRunCommand(TYPE_INPUT_COMMAND.WEB_SEARCH);\r\n\r\n doRunCommand(TYPE_INPUT_COMMAND.AI_FOLLOWUPS, TYPE_INPUT_COMMAND.NEWS_SEARCH);\r\n\r\n}\r\n\r\nconst clickGoAskingAI = function (xEvent?: any) {\r\n\r\n inputThings.userChatMessage = nz(inputThings.userChatMessage, \"\").trim()\r\n if (!inputThings.userChatMessage) return;\r\n\r\n // * clear selection & scroll to section\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, \"\");\r\n appUserContentManager.scrollPageTo(\"top\");\r\n appSERPManager.givenWebsiteURL = nz(inputThings.promptSite, \"\");\r\n doRunCommand(TYPE_INPUT_COMMAND.AI_FOLLOWUPS, TYPE_INPUT_COMMAND.AI_REPLY);\r\n}\r\n\r\nconst clickQuitFollowupOnly = function () {\r\n UIS.isFollowupOnlyMode = false;\r\n clickContinueBuilding();\r\n}\r\n\r\nconst clickClearFollowups = function () {\r\n clearArray(followupQuestions);\r\n UIS.isFollowupOnlyMode = false;\r\n}\r\n\r\nconst clickToggleFollowupOnly = function () {\r\n UIS.isFollowupOnlyMode = !UIS.isFollowupOnlyMode;\r\n clickContinueBuilding();\r\n}\r\n\r\n\r\nconst clickOpenPromptSettings = function (xEditorType: TYPE_INDEX_SIDEBAR) {\r\n UIS.currentIndexSideBarType = nz(xEditorType, TYPE_INDEX_SIDEBAR.SIDEBAR_CLOSED);\r\n}\r\n\r\nconst clickPromptSite = function (xPromptSite?: string) {\r\n inputThings.promptSite = nz(xPromptSite, \"\");\r\n clickGoSearching();\r\n inputThings.promptSite = \"\";\r\n}\r\n\r\n\r\nconst clickPromptRole = function (xPromptRole?: IFC_AI_ROLE) {\r\n if (!xPromptRole) {\r\n inputThings.promptRoleGUID = \"\";\r\n inputThings.promptRoleName = \"\";\r\n clearObject(appPromptProvider.currentRole);\r\n _.extend(appPromptProvider.currentRole, zDefaultRole001);\r\n\r\n } else {\r\n inputThings.promptRoleGUID = xPromptRole._GUID;\r\n inputThings.promptRoleName = xPromptRole.roleName;\r\n clearObject(appPromptProvider.currentRole);\r\n _.extend(appPromptProvider.currentRole, xPromptRole);\r\n }\r\n}\r\n\r\nconst clickTryTopicString = function (xTopicString: string) {\r\n inputThings.userChatMessage = xTopicString;\r\n // clickGoSearching();\r\n}\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 let zUserMessage = inputThings.userChatMessage;\r\n appCommandManager.followupQuestions = _.clone(followupQuestions);\r\n appCommandManager.currentCommandType = xCommandType;\r\n appCommandManager.nextCommandType = nz(xNextCommandType, \"\");\r\n appCommandManager.runCommandString(\r\n zUserMessage\r\n + nz(zCommandType, \"\")\r\n );\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 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% - 325px); width:720px;\r\n `;\r\n }\r\n\r\n } else {\r\n zResStyle += `\r\n left:calc(50% - 105px); 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\nlet isFollowupReturnOKOnly = false;\r\nconst refreshFollowups = function () {\r\n // * init\r\n clearArray(followupQuestions);\r\n isFollowupReturnOKOnly = false;\r\n\r\n let zPageColumns = window.PageColumns;\r\n let zPageColumnFilterSection: IFC_Page_Section;\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.toLowerCase().indexOf(\"%%ok%%\") >= 0) {\r\n isFollowupReturnOKOnly = true;\r\n }\r\n if (zFollowupItem.startsWith(\"%%\")) return;\r\n followupQuestions.push(zFollowupItem);\r\n })\r\n }\r\n }\r\n\r\n // * save questions to page section\r\n if (zPageColumnFilterSection && zPageColumnFilterSection._questions4Exploring) {\r\n assignArray(zPageColumnFilterSection._questions4Exploring, followupQuestions);\r\n }\r\n}\r\n\r\n/*const runAIPointsCommandWithMessage = function (xUserMessage: string) {\r\n if (xUserMessage) {\r\n UIS.isFollowupOnlyMode = false;\r\n inputThings.userChatMessage = xUserMessage;\r\n doRunCommand(TYPE_INPUT_COMMAND.AI_PLUS_SEARCH);\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 UIS.isFollowupOnlyMode = false;\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 AI Gen Done (For Followups)\r\nwindow.emitter.on(TYPE_EVENT.AI_GEN_FOLLOWUP_DONE, function () {\r\n let zPageColumns = window.PageColumns;\r\n let zCurrentPageColumn: IFC_Page_Column = zPageColumns[UIS.currentUserContentPageColumnIndex];\r\n if (zCurrentPageColumn.followupSessionGUID == appAIManager.currentAISessionGUID) {\r\n appAIManager.currentAISessionGUID = \"\";\r\n\r\n UIS.isFollowupOnlyMode = true;\r\n refreshFollowups();\r\n\r\n /*if (isFollowupReturnOKOnly) {\r\n isFollowupReturnOKOnly = false;*/\r\n // UIS.isFollowupOnlyMode = false;\r\n // clearArray(followupQuestions);\r\n\r\n UIS.ifChattingUI = false;\r\n if (followupQuestions && followupQuestions[0]) {\r\n inputThings.userChatMessage = followupQuestions[0];\r\n UIS.currentChattingMessage = inputThings.userChatMessage;\r\n\r\n let zPageSections2Insert: IFC_Page_Section[] = [];\r\n let zCurrentHeaderGUID = chance.guid();\r\n zPageSections2Insert.push({\r\n _GUID: zCurrentHeaderGUID,\r\n sectionType: TYPE_SECTION.HEADER,\r\n layoutCode: \"ListB\",\r\n headerCode: \"Default\",\r\n sectionTitle: inputThings.userChatMessage,\r\n _questions4Exploring: followupQuestions.slice(1),\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 = zAllSections.length - 1;\r\n let zParentSectionGUID = appUserContentManager.getCurrentPageColumnParentPageSectionGUID();\r\n\r\n appUserContentManager.insertPageSectionsToPosition(UIS.currentUserContentPageGUID,\r\n zPageSections2Insert,\r\n zLastPageSectionIndex,\r\n zParentSectionGUID);\r\n\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, zCurrentHeaderGUID, zCurrentHeaderGUID);\r\n\r\n cwrn(\"*flup:\", followupQuestions);\r\n lockResultPageUI();\r\n appCommandManager.currentHeaderGUID = zCurrentHeaderGUID;\r\n\r\n if (appCommandManager.nextCommandType) {\r\n doRunCommand(appCommandManager.nextCommandType);\r\n }\r\n appCommandManager.nextCommandType = \"\";\r\n\r\n }\r\n }\r\n});\r\n\r\n// on Page Status changed\r\nwindow.emitter.on(TYPE_EVENT.PAGE_STATE_CHANGED, function () {\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.isFollowupOnlyMode = false;\r\n inputThings.userChatMessage = UIS.currentChattingMessage;\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 called for a function\r\nwindow.emitter.on(TYPE_EVENT.CALL_USER_INPUT_CENTER_ASK_AI, function () {\r\n inputThings.userChatMessage = UIS.currentChattingMessage;\r\n clearArray(followupQuestions);\r\n clickGoAskingAI();\r\n});\r\n\r\nwindow.emitter.on(TYPE_EVENT.CALL_USER_INPUT_CENTER_SEARCH_WEB, function () {\r\n inputThings.userChatMessage = UIS.currentChattingMessage;\r\n clickGoSearching();\r\n});\r\n\r\nwindow.emitter.on(TYPE_EVENT.CALL_USER_INPUT_CENTER_SEARCH_IMAGE, function () {\r\n UIS.ifChattingUI = true;\r\n clickGoSearchingImage();\r\n});\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_SysLanguageMenu = _resolveComponent(\"SysLanguageMenu\")!\n\n return _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n class: \"rc4 uk-animation-scale-up uk-animation-fast\",\n style: _normalizeStyle([{\"z-index\":\"320\",\"position\":\"absolute\",\"top\":\"calc(10px)\",\"backdrop-filter\":\"blur(10px)\"}, getCommandInputCompoStyle()]),\n id: \"divUserInputCenter1\",\n onKeydown: _cache[7] || (_cache[7] = _withKeys(_withModifiers(($event: any) => (clickCloseChattingUI()), [\"prevent\",\"stop\"]), [\"esc\"])),\n onClick: _withModifiers(($event: any) => (1==1), [\"stop\",\"prevent\"])\n }, [\n _withDirectives(_createElementVNode(\"div\", _hoisted_1, [\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[8] || (_cache[8] = [\n _createElementVNode(\"i\", { class: \"ccc-icon-cross2\" }, null, -1)\n ]))\n ], 512), [\n [_vShow, _unref(UIS).ifChattingUI]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", {\n class: \"inline-block margin5-lr text-white hotLinkLight\",\n onClick: _withModifiers(clickGoSearching, [\"stop\",\"prevent\"])\n }, _cache[9] || (_cache[9] = [\n _createElementVNode(\"i\", { class: \"ccc-icon-search3\" }, null, -1)\n ]))\n ], 512), [\n [_vShow, _unref(UIS).ifChattingUI]\n ]),\n _createElementVNode(\"div\", {\n onMouseenter: _cache[6] || (_cache[6] = ($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_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _withDirectives(_createElementVNode(\"input\", {\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((_unref(inputThings).userChatMessage) = $event)),\n style: {\"background\":\"transparent\",\"width\":\"calc(100% - 100px)\",\"height\":\"32px\",\"padding\":\"5px 120px 5px 40px\"},\n class: _normalizeClass([\"la chat-box text-white\", {\r\n 'opacity60':(!_unref(inputThings).userChatMessage)\r\n }]),\n id: 'inputCenter_chatbox',\n placeholder: \r\n _unref(UIS).isMiniScreenMode?_ctx.$t('placeholder.command_input_chat_short'):_ctx.$t('placeholder.command_input_chat'),\n resize: \"none\",\n onBlur: _cache[2] || (_cache[2] = ($event: any) => (onBlurChattingInput())),\n onKeydown: _withKeys(_withModifiers(clickGoSearching, [\"prevent\",\"stop\"]), [\"enter\"]),\n type: \"textarea\",\n autocomplete: \"off\"\n }, null, 42, _hoisted_6), [\n [_vModelText, _unref(inputThings).userChatMessage]\n ])\n ])\n ])\n ], 512), [\n [_vShow, (_unref(UIS).ifChattingUI) ]\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", {\n class: \"inline-block text-white hotLinkLight rc99\",\n style: {\"margin\":\"10px\",\"padding\":\"6px 32px 8px 32px\",\"width\":\"140px\",\"background\":\"rgba(20,22,20,0.3)\"},\n onClick: _withModifiers(clickGoSearching, [\"stop\",\"prevent\"])\n }, [\n _createElementVNode(\"div\", _hoisted_9, [\n _cache[10] || (_cache[10] = _createElementVNode(\"i\", {\n class: \"ccc-icon-search3 text-white rc99 ca padding5 text12\",\n style: {\"background\":\"rgba(245,130,0,0.9)\"}\n }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"Dive_Search\")), 1)\n ])\n ]),\n _createElementVNode(\"div\", {\n class: \"inline-block el-dropdown-link margin10 text-white-60 hotLinkLight\",\n style: {\"width\":\"120px\"},\n onClick: _withModifiers(clickGoAskingAI, [\"stop\",\"prevent\"])\n }, [\n _cache[11] || (_cache[11] = _createElementVNode(\"i\", {\n class: \"ccc-icon-atom2 text-white rc99 ca padding5 text12\",\n style: {\"background\":\"rgba(200,42,220,0.8)\"}\n }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"Ask_AI_Only\")), 1)\n ]),\n _createElementVNode(\"div\", {\n class: \"inline-block el-dropdown-link margin10 text-white-60 hotLinkLight\",\n style: {\"width\":\"120px\"},\n onClick: _withModifiers(clickGoSearchingImage, [\"stop\",\"prevent\"])\n }, [\n _cache[12] || (_cache[12] = _createElementVNode(\"i\", {\n class: \"ccc-icon-image2 text-white rc99 ca padding5 text12\",\n style: {\"background\":\"rgba(100,150,220,0.4)\"}\n }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"Image_Search\")), 1)\n ]),\n _createElementVNode(\"div\", {\n class: \"inline-block el-dropdown-link margin10 text-white-60 hotLinkLight\",\n style: {\"width\":\"120px\"},\n onClick: _withModifiers(clickGoSearchingNews, [\"stop\",\"prevent\"])\n }, [\n _cache[13] || (_cache[13] = _createElementVNode(\"i\", {\n class: \"ccc-icon-newspaper text-white rc99 ca padding5 text12\",\n style: {\"background\":\"rgba(20,22,22,0.4)\"}\n }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"News_Search\")), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", _hoisted_11, [\n _cache[14] || (_cache[14] = _createElementVNode(\"div\", {\n class: \"text-white-30 lt margin5-lr\",\n style: {}\n }, \"AI will reply in\", -1)),\n _createElementVNode(\"div\", _hoisted_12, [\n _createVNode(_component_SysLanguageMenu)\n ])\n ]),\n (!_unref(inputThings).isAdvancedInputUI)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_13, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLinkLight\",\n onClick: _cache[3] || (_cache[3] = _withModifiers(($event: any) => ((_unref(inputThings).isAdvancedInputUI=true)), [\"stop\",\"prevent\"]))\n }, [\n _cache[15] || (_cache[15] = _createElementVNode(\"i\", { class: \"ccc-icon-arrow-down4 margin5-lr\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"More_Options\")), 1)\n ])\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_14, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLinkLight\",\n onClick: _cache[4] || (_cache[4] = _withModifiers(($event: any) => ((_unref(inputThings).isAdvancedInputUI=false)), [\"stop\",\"prevent\"]))\n }, [\n _cache[16] || (_cache[16] = _createElementVNode(\"i\", { class: \"ccc-icon-arrow-up4 margin5-lr\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Less_Options\")), 1)\n ])\n ]))\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_15, [\n _cache[17] || (_cache[17] = _createElementVNode(\"hr\", null, null, -1)),\n _createElementVNode(\"div\", _hoisted_16, _toDisplayString(_ctx.$t(\"messages.SearchWithSpecSource\")), 1),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(promptSites), (promptSite) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"inline-block margin10-lr nowrap no-overflow\",\n key: promptSite\n }, [\n _createElementVNode(\"div\", _hoisted_17, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"hotLinkLight inline-block\", {'ccc-color-primary':(_unref(inputThings).promptSite==promptSite)}]),\n style: {\"width\":\"120px\"},\n onClick: ($event: any) => (clickPromptSite(promptSite))\n }, [\n _createElementVNode(\"img\", {\n class: \"img16 margin5-lr rc4\",\n src: _unref(getFavIconURL)(promptSite)\n }, null, 8, _hoisted_19),\n _createElementVNode(\"div\", _hoisted_20, _toDisplayString(promptSite), 1)\n ], 10, _hoisted_18)\n ])\n ]))\n }), 128))\n ], 512), [\n [_vShow, _unref(inputThings).isAdvancedInputUI]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_21, [\n _createElementVNode(\"div\", _hoisted_22, [\n _createElementVNode(\"div\", {\n class: \"hotLinkLight inline-block\",\n onClick: _cache[5] || (_cache[5] = ($event: any) => (clickOpenPromptSettings(_unref(TYPE_INDEX_SIDEBAR).SYS_PROMPT_SITE_EDITOR)))\n }, [\n _cache[18] || (_cache[18] = _createElementVNode(\"i\", { class: \"ccc-icon-cog img16 ca margin5-lr text-white\" }, null, -1)),\n _createElementVNode(\"div\", _hoisted_23, _toDisplayString(_ctx.$t(\"Settings\")), 1)\n ])\n ])\n ], 512), [\n [_vShow, _unref(inputThings).isAdvancedInputUI]\n ])\n ])\n ], 38)\n ], 36)), [\n [_vShow, (!_unref(UIS).isSharingViewMode) && (_unref(UIS).ifChattingUI) && (!_unref(UIS).isAIGeneratingPageContent)]\n ])\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, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, toDisplayString as _toDisplayString, vShow as _vShow, withDirectives as _withDirectives, createCommentVNode as _createCommentVNode, withModifiers as _withModifiers, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, createVNode as _createVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"no-select\" }\nconst _hoisted_2 = {\n class: \"rt text-black uk-animation-fast uk-animation-fade no-select text12B\",\n style: {\"z-index\":\"200\"}\n}\nconst _hoisted_3 = [\"onClick\"]\nconst _hoisted_4 = [\"title\"]\nconst _hoisted_5 = { class: \"ca\" }\nconst _hoisted_6 = { class: \"inline-block ca\" }\nconst _hoisted_7 = {\n key: 0,\n class: \"uk-clearfix la text-black-60 no-overflow no-wrap\",\n style: {\"margin-left\":\"5px\",\"margin-right\":\"15px\"}\n}\nconst _hoisted_8 = {\n key: 0,\n class: \"inline-block text-black-30\"\n}\nconst _hoisted_9 = {\n key: 1,\n class: \"inline-block text-black\"\n}\nconst _hoisted_10 = {\n class: \"inline-block ca bold\",\n style: {\"width\":\"34px\",\"padding-top\":\"1px\",\"padding-left\":\"1px\"}\n}\n\nimport {TYPE_EVENT, TYPE_FILTER_CODE, TYPE_SECTION} from \"@/codes/_20.def/_modDataDict\";\r\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\r\nimport {IFC_Page_Column, IFC_Page_Data} from \"@/codes/_20.def/dataTypes\";\r\nimport PageOutputMenu from \"@/codes/_40.view/menu/PageOutputMenu.vue\";\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 const _component_insert_object_menu = _resolveComponent(\"insert-object-menu\")!\n\n return _withDirectives((_openBlock(), _createElementBlock(\"span\", _hoisted_1, [\n _cache[4] || (_cache[4] = _createElementVNode(\"div\", {\n class: \"nav-card\",\n style: {\"z-index\":\"280\",\"position\":\"absolute\",\"height\":\"64px\",\"top\":\"0px\",\"left\":\"0px\",\"right\":\"0px\"}\n }, null, -1)),\n _createElementVNode(\"div\", {\n class: \"margin10 uk-animation-fast uk-animation-fade text-black ca\",\n style: _normalizeStyle([{\"z-index\":\"290\",\"position\":\"absolute\",\"top\":\"calc(2px)\",\"animation-delay\":\"0.33s\"}, {\r\n 'width':((280)+'px'),\r\n 'right':'calc(50% '+(getSearchBarWidth()?' + '+(getSearchBarWidth()/2 + 0)+'px)':' - 10px'),\r\n }])\n }, [\n _createElementVNode(\"div\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(defaultFlagColorStyleArray), (flagColorStyle) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"clickable rt ca inline-block margin2-lr\",\n key: flagColorStyle.flagCode,\n onClick: _withModifiers(($event: any) => (clickFilter(flagColorStyle.flagCode)), [\"stop\",\"prevent\"]),\n style: _normalizeStyle([{\"min-width\":\"24px\"}, ((flagColorStyle.flagCode==_unref(UIS).filterCode)?'':'opacity:0.6;')])\n }, [\n (flagColorStyle.flagCode!='Default')\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n title: _ctx.$t(flagColorStyle.flagName),\n style: _normalizeStyle((flagColorStyle.flagCode==_unref(UIS).filterCode)?flagColorStyle.backStyle+';':'')\n }, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"i\", {\n class: _normalizeClass([\"text12B img16 text-black-60\", flagColorStyle.iconClass+ ((flagColorStyle.flagCode==_unref(UIS).filterCode)?' text-black text14':'')]),\n style: _normalizeStyle((flagColorStyle.flagCode==_unref(UIS).filterCode)?'':'')\n }, null, 6)\n ]),\n (flagColorStyle.flagCode!='Default')\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"ca margin2-lr rc4\", {'bold':(flagColorStyle.flagCode==_unref(UIS).filterCode)}]),\n style: _normalizeStyle((flagColorStyle.flagCode==_unref(UIS).filterCode)?flagColorStyle.titleStyle+';':'')\n }, _toDisplayString(_unref(getCount4FilterCode)(flagColorStyle.flagCode)), 7)), [\n [_vShow, _unref(getCount4FilterCode)(flagColorStyle.flagCode)>0]\n ])\n : _createCommentVNode(\"\", true)\n ], 12, _hoisted_4)), [\n [_vShow, _unref(getCount4FilterCode)(flagColorStyle.flagCode)>0]\n ])\n : _createCommentVNode(\"\", true)\n ], 12, _hoisted_3))\n }), 128))\n ])\n ], 4),\n _withDirectives(_createElementVNode(\"div\", {\n class: \"margin10 uk-animation-fast uk-animation-fade mon-empty-button mon-med-button text-black-60 hotLink\",\n style: {\"z-index\":\"290\",\"position\":\"absolute\",\"top\":\"calc(2px)\",\"width\":\"240px\",\"left\":\"calc(50% - 120px)\"},\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickQuitFilterMode()), [\"stop\",\"prevent\"]))\n }, [\n _createElementVNode(\"div\", _hoisted_6, [\n _cache[2] || (_cache[2] = _createElementVNode(\"i\", { class: \"ccc-icon-arrow-left8\" }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"QuitFilterMode\")), 1)\n ])\n ], 512), [\n [_vShow, (_unref(UIS).filterCode) && (!_unref(UIS).isSharingViewMode) && (!_unref(UIS).isMiniScreenMode)]\n ]),\n ((!_unref(UIS).isSharingViewMode) && (getSearchBarWidth()))\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"margin10 uk-animation-fast uk-animation-fade no-select la mon-white-button\", {\r\n '':(!_unref(UIS).ifChattingUI),\r\n 'mon-empty-button':(_unref(UIS).ifChattingUI)\r\n }]),\n style: _normalizeStyle([{\"z-index\":\"290\",\"position\":\"absolute\",\"top\":\"calc(2px)\",\"height\":\"36px\",\"line-height\":\"35px\"}, {\r\n 'left':'calc(50% - '+getSearchBarWidth()/2+'px)',\r\n 'width':getSearchBarWidth()+'px',\r\n }]),\n onClick: _cache[1] || (_cache[1] = _withModifiers(($event: any) => (clickAIChat()), [\"stop\",\"prevent\"]))\n }, [\n (!_unref(UIS).ifChattingUI)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _cache[3] || (_cache[3] = _createElementVNode(\"div\", { class: \"inline-block margin10-lr bold\" }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-search2\" })\n ], -1)),\n (!_unref(UIS).currentChattingMessage)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, _toDisplayString(_ctx.$t(\"Explore_More\")), 1))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_9, _toDisplayString(_unref(UIS).currentChattingMessage), 1))\n ]))\n : _createCommentVNode(\"\", true)\n ], 6)), [\n [_vShow, (!_unref(UIS).filterCode)]\n ])\n : _createCommentVNode(\"\", true),\n ((!_unref(UIS).isSharingViewMode))\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n key: 1,\n class: \"margin10 rc99 mon-empty-button mon-small-button ca clickable\",\n style: _normalizeStyle([{\"z-index\":\"290\",\"position\":\"absolute\",\"top\":\"calc(2px)\"}, {'left':'calc(50% + 24px + '+ getSearchBarWidth()/2+'px)'}]),\n onClick: _withModifiers(($event: any) => (1==1), [\"stop\",\"prevent\"])\n }, [\n _createElementVNode(\"div\", _hoisted_10, [\n _createVNode(_component_insert_object_menu)\n ])\n ], 4)), [\n [_vShow, (!_unref(UIS).filterCode) || (_unref(UIS).currentUserContentPageColumnIndex)]\n ])\n : _createCommentVNode(\"\", true)\n ], 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, 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 clickStartNewSession = 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.updatePageSectionStar(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.updatePageSectionStar(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\nconst 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.InTheTopOfSession\")), 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) => (clickStartNewSession()))\n }, [\n _cache[7] || (_cache[7] = _createElementVNode(\"i\", { class: \"ccc-icon-bubble-dots2 img16\" }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"messages.StartNewSession\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_22, _toDisplayString(_ctx.$t(\"messages.StartNewSessionDescription\")), 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-60 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) {\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) {\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 { 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 = { 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\":\"300px\"}\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\" }\nconst _hoisted_9 = { class: \"uk-clearfix margin10 text12B\" }\nconst _hoisted_10 = { class: \"uk-clearfix margin10 text12B\" }\nconst _hoisted_11 = { 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/*const 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 return\r\n }\r\n return \"\"\r\n}*/\r\n\r\n/*const 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\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 clickExportContent = function (xScope: 'all' | 'view' | 'starred', xFormat: 'txt' | 'html') {\r\n let zResHTML = \"\";\r\n let zResText = \"\";\r\n let zResTitle = appUserContentManager.generatePageTitle(UIS.currentUserContentPageGUID);\r\n\r\n if (xScope == \"all\") {\r\n zResText = appSharingManager.outputMDText4CurrentPage();\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 } 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 }\r\n\r\n\r\n if (xFormat == \"txt\") {\r\n zResHTML = `
${zResText}
`;\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 }\r\n\r\n\r\n newPageWithHTML(zResHTML, nz(zResTitle, \"Export\"));\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: \"margin5\" }, {\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) => (clickExportContent('starred','txt')), [\"stop\",\"prevent\"]))\n }, [\n _cache[7] || (_cache[7] = _createElementVNode(\"i\", { class: \"ccc-icon-file-text2 img16\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Export_Starred_Items_To_Markdown_Text\")), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink\",\n onClick: _cache[1] || (_cache[1] = _withModifiers(($event: any) => (clickExportContent('starred','html')), [\"stop\",\"prevent\"]))\n }, [\n _cache[8] || (_cache[8] = _createElementVNode(\"i\", { class: \"ccc-icon-sphere img16\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Export_Starred_Items_To_HTML\")), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _cache[10] || (_cache[10] = _createElementVNode(\"hr\", null, null, -1)),\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink\",\n onClick: _cache[2] || (_cache[2] = _withModifiers(($event: any) => (clickExportContent('view','txt')), [\"stop\",\"prevent\"]))\n }, [\n _cache[9] || (_cache[9] = _createElementVNode(\"i\", { class: \"ccc-icon-file-text2 img16\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Export_This_PageView_To_Markdown_Text\")), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink\",\n onClick: _cache[3] || (_cache[3] = _withModifiers(($event: any) => (clickExportContent('view','html')), [\"stop\",\"prevent\"]))\n }, [\n _cache[11] || (_cache[11] = _createElementVNode(\"i\", { class: \"ccc-icon-sphere img16\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Export_This_PageView_To_HTML\")), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _cache[13] || (_cache[13] = _createElementVNode(\"hr\", null, null, -1)),\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink\",\n onClick: _cache[4] || (_cache[4] = _withModifiers(($event: any) => (clickExportContent('all','txt')), [\"stop\",\"prevent\"]))\n }, [\n _cache[12] || (_cache[12] = _createElementVNode(\"i\", { class: \"ccc-icon-file-text2 img16\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Export_Whole_Session_To_Markdown_Text\")), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink\",\n onClick: _cache[5] || (_cache[5] = _withModifiers(($event: any) => (clickExportContent('all','html')), [\"stop\",\"prevent\"]))\n }, [\n _cache[14] || (_cache[14] = _createElementVNode(\"i\", { class: \"ccc-icon-sphere img16\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Export_Whole_Session_To_HTML\")), 1)\n ])\n ])\n ])\n ])\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _cache[6] || (_cache[6] = _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(\"Output_Page\")), 1))\n : _createCommentVNode(\"\", true)\n ])\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 { unref as _unref, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withModifiers as _withModifiers, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, vShow as _vShow, withDirectives as _withDirectives, normalizeStyle as _normalizeStyle, createVNode as _createVNode, 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 padding5 margin5 rc2\"\n}\nconst _hoisted_3 = { class: \"margin10-lr uk-clearfix no-overflow ellipsis\" }\nconst _hoisted_4 = { key: 0 }\nconst _hoisted_5 = {\n key: 0,\n class: \"margin10 clickable hotLink inline-block nowrap no-overflow ellipsis\"\n}\nconst _hoisted_6 = {\n key: 0,\n class: \"inline-block margin10 text-black-60\",\n style: {\"z-index\":\"300\",\"position\":\"absolute\",\"right\":\"12px\",\"top\":\"10px\"}\n}\nconst _hoisted_7 = { 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\nimport PageOutputMenu from \"@/codes/_40.view/menu/PageOutputMenu.vue\";\r\n\r\n\r\n//@TS-NOCHECK\r\n\r\nimport {IFC_Page_Data, IFC_UIS} 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\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 chance: any;\r\ndeclare var appPromptProvider: IFC_AIPrompt_Provider;\r\ndeclare var appSharingManager: IFC_SharingManager;\r\n\r\nconst __default__ = {\r\n name: 'panSysFuncBar',\r\n // other component options...\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\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\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 return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", {\n id: \"panSysFuncBar0\",\n style: _normalizeStyle([{\"z-index\":\"300\",\"position\":\"absolute\",\"left\":\"12px\",\"top\":\"10px\"}, {}]),\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[3] || (_cache[3] = _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 margin10-lr\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (clickSwitchPageList()))\n }, [\n _cache[4] || (_cache[4] = _createElementVNode(\"i\", { class: \"ccc-icon-bubble-dots2\" }, null, -1)),\n (!_unref(UIS).isMiniScreenMode)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_4, \" \" + _toDisplayString(_ctx.$t(\"Manage_Sessions\")), 1))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ], 512)), [\n [_vShow, _unref(UIS).currentUserContentPageGUID]\n ])\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", {\n id: \"panSysFuncBar1\",\n style: _normalizeStyle([{\"z-index\":\"300\",\"position\":\"absolute\",\"right\":\"200px\",\"top\":\"10px\"}, {}]),\n class: \"no-overflow no-select\",\n onClick: clickpanSysFuncBar\n }, [\n (!_unref(UIS).isSharingViewMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", null, [\n _createVNode(PageOutputMenu)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n (_unref(UIS).isSharingViewMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n _cache[5] || (_cache[5] = _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[2] || (_cache[2] = _withModifiers(($event: any) => (clickPoweredBy()), [\"stop\",\"prevent\"]))\n }, [\n _createElementVNode(\"div\", _hoisted_7, _toDisplayString(_ctx.$t(\"messages.PoweredByDiveDeck\")), 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 { 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 } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"absolute-max text16 rc3 background-white-99 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: 0,\n style: {\"position\":\"absolute\",\"bottom\":\"10px\",\"left\":\"10px\",\"right\":\"10px\",\"top\":\"92px\"},\n class: \"text-black-60 hover-overflow\"\n}\nconst _hoisted_9 = [\"title\"]\nconst _hoisted_10 = [\"onClick\"]\nconst _hoisted_11 = {\n key: 0,\n class: \"margin10\"\n}\nconst _hoisted_12 = { class: \"uk-clearfix margin5\" }\nconst _hoisted_13 = { class: \"uk-clearfix margin5\" }\nconst _hoisted_14 = { class: \"uk-clearfix no-overflow ellipsis app-comment text-black-60\" }\nconst _hoisted_15 = [\"onClick\"]\nconst _hoisted_16 = { class: \"rt clickable hotLink margin10-lr hotLink\" }\nconst _hoisted_17 = {\n class: \"el-dropdown-link text-black-60 hotLink\",\n style: {\"line-height\":\"19px\"}\n}\nconst _hoisted_18 = [\"onClick\"]\nconst _hoisted_19 = { class: \"inline-block margin5-lr\" }\nconst _hoisted_20 = {\n key: 1,\n style: {\"width\":\"calc(100% - 55px)\",\"margin-left\":\"20px\"}\n}\nconst _hoisted_21 = { class: \"ellipsis inline-block margin10 width100\" }\nconst _hoisted_22 = {\n class: \"marginb10 ca width100\",\n style: {}\n}\nconst _hoisted_23 = { class: \"uk-clearfix text14 la\" }\nconst _hoisted_24 = { class: \"inline-block text-black bold\" }\nconst _hoisted_25 = { class: \"uk-clearfix text12B la marginb5\" }\nconst _hoisted_26 = { class: \"uk-clearfix text-black-30\" }\nconst _hoisted_27 = { 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} 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});\r\n\r\ninputThings.siteListString = \"\";\r\n\r\nif (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\nif (UIS.currentIndexSideBarType == TYPE_INDEX_SIDEBAR.SYS_PROMPT_SITE_EDITOR) {\r\n setTimeout(function () {\r\n $(\"#inputPromptSiteList\").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\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[8] || (_cache[8] = _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-black-button inline-block mon-med-button\",\n style: {},\n onClick: _cache[2] || (_cache[2] = _withModifiers(($event: any) => (clickAddNewRole()), [\"stop\",\"prevent\"]))\n }, [\n _cache[9] || (_cache[9] = _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 ])\n ]),\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).SYS_PROMPT_ROLE_EDITOR)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [\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[16] || (_cache[16] = _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[10] || (_cache[10] = _createElementVNode(\"i\", { class: \"ccc-icon-theater opacity60\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(roleItem.roleName), 1)\n ], 8, _hoisted_10),\n (_unref(editingRoleItem) && _unref(editingRoleItem)._GUID==roleItem._GUID)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_11, [\n _createElementVNode(\"div\", _hoisted_12, [\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_13, [\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_14, [\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[11] || (_cache[11] = _createElementVNode(\"i\", { class: \"ccc-icon-checkmark\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Save\")), 1)\n ], 8, _hoisted_15),\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[12] || (_cache[12] = _createElementVNode(\"i\", { class: \"ccc-icon-undo2\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Cancel\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_16, [\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[14] || (_cache[14] = _createElementVNode(\"i\", {\n class: \"ccc-icon-bin4 img16 margin5-lr\",\n style: {\"margin-top\":\"4px\"}\n }, null, -1)),\n _createElementVNode(\"div\", _hoisted_19, _toDisplayString(_ctx.$t(\"messages.Confirm2Remove_Role\")), 1)\n ], 8, _hoisted_18)\n ]),\n _: 2\n }, 1024)\n ]),\n _: 2\n }, 1024)\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"span\", _hoisted_17, [\n _cache[13] || (_cache[13] = _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[15] || (_cache[15] = _createElementVNode(\"div\", { class: \"marginb10\" }, null, -1))\n ]))\n : _createCommentVNode(\"\", true)\n ], 8, _hoisted_9)\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n ((_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).SYS_PROMPT_SITE_EDITOR))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_20, [\n _createElementVNode(\"div\", _hoisted_21, [\n _cache[17] || (_cache[17] = _createElementVNode(\"div\", {\n class: \"uk-clearfix\",\n style: {\"height\":\"16px\"}\n }, null, -1)),\n _createElementVNode(\"div\", _hoisted_22, [\n _createElementVNode(\"div\", _hoisted_23, [\n _createElementVNode(\"div\", _hoisted_24, _toDisplayString(_ctx.$t('Prompt_Site_List')), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_25, [\n _createElementVNode(\"div\", _hoisted_26, _toDisplayString(_ctx.$t('messages.PromptSiteDesc1')), 1),\n _createElementVNode(\"div\", _hoisted_27, _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 ]))\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\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 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\r\n } catch (e) {\r\n console.error(e);\r\n }\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, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, withModifiers as _withModifiers, normalizeStyle as _normalizeStyle } 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: 1,\n style: {\"position\":\"absolute\",\"left\":\"5px\",\"top\":\"5px\",\"bottom\":\"5px\",\"right\":\"5px\"},\n class: \"padding5\"\n}\nconst _hoisted_5 = {\n key: 2,\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_PageContentTable = _resolveComponent(\"PageContentTable\")!\n const _component_PageFileIndex = _resolveComponent(\"PageFileIndex\")!\n const _component_PageSectionEditor = _resolveComponent(\"PageSectionEditor\")!\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\",\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickReturn()), [\"stop\",\"prevent\"]))\n }, [\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: 0,\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 (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).MEMO_VIEW) ||\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 (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_SECTION_ORDER_EDITOR) ||\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 )\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 1,\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_3, [\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).SYS_PROMPT_ROLE_EDITOR) ||\r\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).SYS_PROMPT_SITE_EDITOR)\r\n )\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [\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_5, [\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 = { class: \"ra\" }\nconst _hoisted_2 = {\n class: \"ra\",\n style: {\"position\":\"absolute\",\"top\":\"0px\",\"left\":\"0px\",\"right\":\"0px\",\"bottom\":\"64px\"}\n}\n\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\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 },\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\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_PageFilterIndex = _resolveComponent(\"PageFilterIndex\")!\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\":\"16px\",\"bottom\":\"0px\",\"left\":\"0px\"},\n class: \"rc2 no-overflow\",\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickDiveMenuBar()), [\"stop\",\"prevent\"]))\n }, [\n _withDirectives(_createElementVNode(\"div\", _hoisted_1, [\n _createVNode(_component_PageFilterIndex)\n ], 512), [\n [_vShow, false &&(!_unref(UIS).currentUserContentPageColumnIndex) && (!_ctx.isAlmostEmptyPage)]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_PageDiveIndex)\n ], 512), [\n [_vShow, (_unref(UIS).currentUserContentPageColumnIndex>=0)]\n ])\n ], 512)), [\n [_vShow, _unref(UIS).currentUserContentPageGUID && (!_unref(UIS).isMiniScreenMode)]\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, 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, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } 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 = { class: \"text-black uk-clearfix text12B\" }\nconst _hoisted_4 = { class: \"hotLink margin10-lr\" }\nconst _hoisted_5 = {\n key: 0,\n class: \"uk-clearfix\"\n}\nconst _hoisted_6 = { class: \"ra margin5 no-select text14 clickable ellipsis no-overflow\" }\nconst _hoisted_7 = { class: \"uk-clearfix rc4 margin5-lr no-overflow text-black\" }\nconst _hoisted_8 = {\n key: 0,\n class: \"uk-clearfix width100\"\n}\nconst _hoisted_9 = [\"onClick\"]\nconst _hoisted_10 = {\n key: 0,\n class: \"\"\n}\nconst _hoisted_11 = { key: 1 }\nconst _hoisted_12 = { key: 2 }\nconst _hoisted_13 = {\n key: 1,\n class: \"text-black-60 padding5\",\n style: {\"overflow-x\":\"hidden\",\"margin-left\":\"10px\",\"margin-top\":\"2px\"}\n}\nconst _hoisted_14 = { class: \"uk-clearfix text14 text-black margin5-lr nav-card\" }\nconst _hoisted_15 = {\n class: \"margin10-lr\",\n style: {\"padding-bottom\":\"4px\"}\n}\nconst _hoisted_16 = {\n class: \"marginb10 no-overflow text-black-60 ra hover-overflow\",\n style: {}\n}\nconst _hoisted_17 = { class: \"ra no-select text14 clickable ellipsis no-overflow\" }\nconst _hoisted_18 = { class: \"uk-clearfix rc4 no-overflow text-black-60\" }\nconst _hoisted_19 = [\"title\"]\nconst _hoisted_20 = [\"onClick\"]\nconst _hoisted_21 = { key: 0 }\nconst _hoisted_22 = { key: 1 }\nconst _hoisted_23 = [\"onClick\"]\nconst _hoisted_24 = { key: 0 }\nconst _hoisted_25 = { class: \"inline-block text-black-30 margin5-lr\" }\nconst _hoisted_26 = { key: 1 }\n\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_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 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\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 return nz(zParentSection.sectionTitle, \"----\");\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).reverse();\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 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 ((xPageSection.sectionType == TYPE_SECTION.HEADER) && (!xPageSection._parentSectionGUID)) {\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\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\n\r\nlet getSectionFlagColorStyle = appUserContentManager.getSectionFlagColorStyle;\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\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 appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, xSelectedSection._GUID, xSelectedSection._GUID);\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\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\", _hoisted_3, [\n (_unref(pageColumns).length>1)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"rt text-black bold text14 margin5-lr\",\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickReturnColumn(_unref(pageColumns).length-2)), [\"stop\",\"prevent\"]))\n }, [\n _createElementVNode(\"div\", _hoisted_4, [\n _cache[1] || (_cache[1] = _createElementVNode(\"i\", { class: \"ccc-icon-arrow-left8\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Back\")), 1)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]),\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 (_unref(pageColumns).length>1)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", {\n class: \"no-overflow text-black-60 ra hover-overflow\",\n style: _normalizeStyle({'width':(_unref(UIS).leftMenuBarWidth-20)})\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.columnPathItemNameList, (pathItem, pathItemIndex) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n style: {\"z-index\":\"199\"},\n class: \"text-black-60\",\n key: pathItemIndex\n }, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n pathItem\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"rt ra\", {}])\n }, [\n _createElementVNode(\"div\", {\n class: \"hotLink text12B rc99 text-black-30\",\n onClick: _withModifiers(($event: any) => (clickReturnColumn(pathItemIndex)), [\"stop\",\"prevent\"])\n }, [\n (pathItemIndex<=0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, _toDisplayString(_ctx.$t(\"Home\")), 1))\n : _createCommentVNode(\"\", true),\n (pathItem.lastParentSection && pathItem.lastParentSection.sectionTitle)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_11, _toDisplayString(\"# \") + \" \" + _toDisplayString(pathItem.lastParentSection.sectionTitle), 1))\n : (pathItemIndex>0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_12, \" ---- \"))\n : _createCommentVNode(\"\", true)\n ], 8, _hoisted_9)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]))\n }), 128))\n ], 4)\n ]))\n : _createCommentVNode(\"\", true),\n ((_unref(pageColumns).length>1) || (_ctx.columnHeaderAndDivablePageSectionList.length>0))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_13, [\n _createElementVNode(\"div\", _hoisted_14, [\n _createElementVNode(\"div\", _hoisted_15, _toDisplayString(_ctx.currentParentPageSectionName), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_16, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.columnHeaderAndDivablePageSectionList, (pageSection, pageSectionIndex) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n style: {\"z-index\":\"199\"},\n class: \"text-black-60\",\n key: pageSectionIndex\n }, [\n _createElementVNode(\"div\", _hoisted_17, [\n _createElementVNode(\"div\", _hoisted_18, [\n _createElementVNode(\"div\", {\n class: \"uk-clearfix width100 text12B text-black-60\",\n title: pageSection.sectionTitle\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"rt ra hotLink margin5\", {\r\n 'ccc-color-primary':((_ctx.currentSelectedPageSectionHeaderGUID==pageSection._GUID)),\r\n }]),\n style: {\"border-bottom\":\"1px dashed rgba(0,0,0,0.05)\"}\n }, [\n (pageSection.sectionType==_unref(TYPE_SECTION).HEADER)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"bold\",\n onClick: _withModifiers(($event: any) => (clickHeader(pageSection)), [\"stop\",\"prevent\"])\n }, [\n (pageSection.sectionTitle)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_21, \"# \" + _toDisplayString(pageSection.sectionTitle), 1))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_22, \"----\"))\n ], 8, _hoisted_20))\n : _createCommentVNode(\"\", true),\n (pageSection._subCount)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 1,\n class: \"\",\n onClick: _withModifiers(($event: any) => (clickDivbableSection(pageSection)), [\"stop\",\"prevent\"])\n }, [\n (pageSection.sectionTitle)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_24, [\n _createTextVNode(_toDisplayString(pageSection.sectionTitle) + \" \", 1),\n _createElementVNode(\"div\", _hoisted_25, \"(\" + _toDisplayString(pageSection._subCount) + \")\", 1)\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_26, \"---- \"))\n ], 8, _hoisted_23))\n : _createCommentVNode(\"\", true)\n ], 2)\n ], 8, _hoisted_19)\n ])\n ])\n ]))\n }), 128))\n ])\n ]))\n : _createCommentVNode(\"\", true)\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-black-button 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, createTextVNode as _createTextVNode, vShow as _vShow, withDirectives as _withDirectives, withModifiers as _withModifiers, normalizeClass as _normalizeClass, 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-black-button mon-med-button inline-block\",\n style: {\"width\":\"240px\"}\n}\nconst _hoisted_5 = [\"href\"]\nconst _hoisted_6 = { class: \"\" }\nconst _hoisted_7 = {\n class: \"app-comment rc2 no-select mon-card mon-card-unselected\",\n style: {\"position\":\"absolute\",\"left\":\"calc(50% - 240px)\",\"width\":\"600px\",\"top\":\"calc(50% - 240px)\",\"z-index\":\"99998\"}\n}\nconst _hoisted_8 = { class: \"uk-clearfix margin5\" }\nconst _hoisted_9 = { style: {} }\nconst _hoisted_10 = { class: \"ca uk-clearfix\" }\nconst _hoisted_11 = { class: \"text-primary-gradient\" }\nconst _hoisted_12 = { class: \"uk-clearfix ca width100 margin5\" }\nconst _hoisted_13 = { class: \"ca uk-clearfix\" }\nconst _hoisted_14 = {\n class: \"ca mon-card mon-card-selected inline-block la margin10 text16 text-black\",\n style: {\"width\":\"280px\"}\n}\nconst _hoisted_15 = [\"href\"]\nconst _hoisted_16 = { class: \"hotLink\" }\nconst _hoisted_17 = {\n class: \"margin10\",\n style: {}\n}\nconst _hoisted_18 = { class: \"ca uk-clearfix margin10\" }\nconst _hoisted_19 = { class: \"text-primary-gradient\" }\nconst _hoisted_20 = { class: \"comment text-black\" }\nconst _hoisted_21 = { class: \"ca uk-clearfix margin5\" }\nconst _hoisted_22 = { class: \"uk-clearfix margin5 inline-block\" }\nconst _hoisted_23 = { class: \"ca uk-clearfix margin10\" }\nconst _hoisted_24 = {\n class: \"inline-block uk-clearfix margin10\",\n style: {\"width\":\"320px\"}\n}\nconst _hoisted_25 = {\n class: \"margin10\",\n style: {}\n}\nconst _hoisted_26 = { class: \"ca uk-clearfix margin10\" }\nconst _hoisted_27 = { class: \"text-primary-gradient\" }\nconst _hoisted_28 = { class: \"comment text-black\" }\nconst _hoisted_29 = { class: \"ca uk-clearfix margin5\" }\nconst _hoisted_30 = { class: \"uk-clearfix margin5 inline-block\" }\nconst _hoisted_31 = { class: \"ca uk-clearfix margin10\" }\nconst _hoisted_32 = {\n class: \"inline-block uk-clearfix margin10\",\n style: {\"width\":\"320px\"}\n}\nconst _hoisted_33 = { class: \"uk-clearfix margin5 ra\" }\nconst _hoisted_34 = { class: \"comment opacity30 can-select\" }\n\nimport {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\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\n\r\nconst __default__ = {\r\n name: 'panSubscriptionRequest',\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\nvar 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\nconst clickCancelInput = function () {\r\n window.location.href = \"./\";\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 const _component_el_input = _resolveComponent(\"el-input\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createVNode(_component_el_dialog, {\n modelValue: _unref(UIS).isOutOfCreditsDialogNeeded,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_unref(UIS).isOutOfCreditsDialogNeeded) = $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-white\",\n style: {\"text-decoration\":\"none\"},\n href: _unref(TYPE_PROP).SUB_PLAN_PRICING_URL\n }, [\n _createElementVNode(\"span\", _hoisted_6, \"✨ \" + _toDisplayString(_ctx.$t(\"messages.ChoosePlan\")), 1)\n ], 8, _hoisted_5)\n ])\n ])\n ]),\n _: 1\n }, 8, [\"modelValue\", \"title\"]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, [\n _cache[7] || (_cache[7] = _createElementVNode(\"img\", {\n class: \"img24\",\n src: \"/img/logo.png\"\n }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_unref(TYPE_PROP).APP_NAME), 1)\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"h1\", _hoisted_11, _toDisplayString(_ctx.$t(\"messages.ChooseSubscriptionPlan_Title\")), 1),\n _createElementVNode(\"div\", _hoisted_12, _toDisplayString(_ctx.$t(\"messages.ChooseSubscriptionPlan1\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _createElementVNode(\"div\", _hoisted_14, [\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_16, \"✨ \" + _toDisplayString(_ctx.$t(\"messages.ChoosePlan\")), 1)\n ], 8, _hoisted_15)\n ])\n ])\n ], 512), [\n [_vShow, _unref(UIS).subscriptionReqType==_unref(TYPE_SUBSCRIPTION_REQ).SHOW_OPTIONS]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_17, [\n _createElementVNode(\"div\", _hoisted_18, [\n _createElementVNode(\"h1\", _hoisted_19, _toDisplayString(_ctx.$t(\"messages.InputYourLicenseCode_Title\")), 1),\n _createElementVNode(\"div\", _hoisted_20, [\n _cache[8] || (_cache[8] = _createElementVNode(\"i\", { class: \"ccc-icon-key margin5 text-black-30\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"messages.InputYourLicenseCode_Desc\")), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_21, [\n _createElementVNode(\"div\", _hoisted_22, [\n _createVNode(_component_el_input, {\n modelValue: _unref(inputThings).licenseCode,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((_unref(inputThings).licenseCode) = $event)),\n id: 'inputLicCode',\n rows: 1,\n placeholder: 'L1234567-12345678-ABCD1234-12345678',\n resize: \"none\"\n }, null, 8, [\"modelValue\"])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_23, [\n _cache[10] || (_cache[10] = _createElementVNode(\"hr\", null, null, -1)),\n _createElementVNode(\"div\", _hoisted_24, [\n _createElementVNode(\"div\", {\n class: \"ca hotLink inline-block margin10\",\n style: {\"width\":\"64px\"},\n onClick: _cache[2] || (_cache[2] = _withModifiers(($event: any) => (clickCancelInput()), [\"stop\",\"prevent\"]))\n }, _toDisplayString(_ctx.$t(\"Cancel\")), 1),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"ca hotlink mon-bubble-pan inline-block margin10 ccc-color-primary\", {'uk-disabled opacity30':((!_unref(inputThings).licenseCode) || (_unref(inputThings).licenseCode.length<10))}]),\n style: {\"width\":\"64px\"},\n onClick: _cache[3] || (_cache[3] = _withModifiers(($event: any) => (clickSubmitLicCode()), [\"stop\",\"prevent\"]))\n }, [\n _createTextVNode(_toDisplayString(_ctx.$t(\"Next\")) + \" \", 1),\n _cache[9] || (_cache[9] = _createElementVNode(\"i\", { class: \"ccc-icon-arrow-down8\" }, null, -1))\n ], 2)\n ])\n ])\n ], 512), [\n [_vShow, _unref(UIS).subscriptionReqType==_unref(TYPE_SUBSCRIPTION_REQ).INPUT_LICENSE]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_25, [\n _createElementVNode(\"div\", _hoisted_26, [\n _createElementVNode(\"h1\", _hoisted_27, _toDisplayString(_ctx.$t(\"messages.InputYourAPIKey_Title\")), 1),\n _createElementVNode(\"div\", _hoisted_28, [\n _cache[11] || (_cache[11] = _createElementVNode(\"i\", { class: \"ccc-icon-key margin5 text-black-30\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"messages.InputYourAPIKey_Desc\")), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_29, [\n _createElementVNode(\"div\", _hoisted_30, [\n _createVNode(_component_el_input, {\n modelValue: _unref(inputThings).APIKey,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => ((_unref(inputThings).APIKey) = $event)),\n id: \"inputAPIKey\",\n rows: 1,\n placeholder: 'sk-M1234yApi56789k9e0y...',\n resize: \"none\"\n }, null, 8, [\"modelValue\"])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_31, [\n _cache[13] || (_cache[13] = _createElementVNode(\"hr\", null, null, -1)),\n _createElementVNode(\"div\", _hoisted_32, [\n _createElementVNode(\"div\", {\n class: \"ca hotlink inline-block margin10\",\n style: {\"width\":\"64px\"},\n onClick: _cache[5] || (_cache[5] = _withModifiers(($event: any) => (clickCancelInput()), [\"stop\",\"prevent\"]))\n }, _toDisplayString(_ctx.$t(\"Cancel\")), 1),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"ca hotLink mon-bubble-pan inline-block margin10 ccc-color-primary\", {'uk-disabled opacity30':((!_unref(inputThings).APIKey) || (_unref(inputThings).APIKey.length<10))}]),\n style: {\"width\":\"64px\"},\n onClick: _cache[6] || (_cache[6] = _withModifiers(($event: any) => (clickSubmitAPIKey()), [\"stop\",\"prevent\"]))\n }, [\n _createTextVNode(_toDisplayString(_ctx.$t(\"Next\")) + \" \", 1),\n _cache[12] || (_cache[12] = _createElementVNode(\"i\", { class: \"ccc-icon-arrow-down8\" }, null, -1))\n ], 2)\n ])\n ])\n ], 512), [\n [_vShow, _unref(UIS).subscriptionReqType==_unref(TYPE_SUBSCRIPTION_REQ).INPUT_API_KEY]\n ]),\n _createElementVNode(\"div\", _hoisted_33, [\n _createElementVNode(\"div\", _hoisted_34, _toDisplayString(_unref(TYPE_PROP).APP_SUPPORT_EMAIL), 1)\n ])\n ], 512), [\n [_vShow, \r\n (!_unref(UIS).isSharingViewMode)\r\n &&\r\n (_unref(UIS).subscriptionReqType)\r\n && (_unref(appUserManager) && _unref(appUserManager).currentSubscriptionStatus!=_unref(TYPE_SUBSCRIPTION_STATUS).UNKNOWN)\r\n && (_unref(appUserManager).currentSubscriptionStatus!=_unref(TYPE_SUBSCRIPTION_STATUS).VALID)\r\n && (_unref(appUserManager).currentSubscriptionStatus!=_unref(TYPE_SUBSCRIPTION_STATUS).BYO_FREE)\r\n ]\n ])\n ], 64))\n}\n}\n\n})","import script from \"./panSubscriptionRequest.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./panSubscriptionRequest.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, withModifiers as _withModifiers, normalizeClass as _normalizeClass, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, vShow as _vShow, withDirectives as _withDirectives, normalizeStyle as _normalizeStyle, createTextVNode as _createTextVNode } 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 = [\"onClick\"]\nconst _hoisted_7 = {\n key: 1,\n style: {\"height\":\"12px\"}\n}\nconst _hoisted_8 = {\n key: 2,\n class: \"uk-clearfix\"\n}\nconst _hoisted_9 = [\"id\"]\nconst _hoisted_10 = { class: \"uk-clearfix\" }\nconst _hoisted_11 = [\"onClick\"]\nconst _hoisted_12 = {\n class: \"lt no-overflow text14 ca\",\n style: {\"width\":\"calc(32px)\",\"margin-top\":\"12px\"}\n}\nconst _hoisted_13 = {\n key: 0,\n class: \"ccc-icon-arrow-down3 margin5 text-black-30\"\n}\nconst _hoisted_14 = {\n key: 1,\n class: \"ccc-icon-arrow-right3 margin5 text-black-30\"\n}\nconst _hoisted_15 = {\n class: \"inline-block no-wrap no-overflow text-primary-gradient text32\",\n style: {\"max-width\":\"calc(100%- 60px)\"}\n}\nconst _hoisted_16 = {\n key: 0,\n class: \"rt no-overflow\",\n style: {\"margin-top\":\"24px\"}\n}\nconst _hoisted_17 = {\n key: 0,\n class: \"uk-clearfix no-overflow margin5\",\n style: {}\n}\nconst _hoisted_18 = {\n key: 0,\n class: \"margin10\"\n}\nconst _hoisted_19 = {\n class: \"uk-clearfix text-black-60 can-select text12B\",\n style: {\"margin-top\":\"10px\",\"margin-right\":\"10px\",\"font-weight\":\"normal\"}\n}\nconst _hoisted_20 = [\"innerHTML\", \"title\"]\nconst _hoisted_21 = {\n key: 0,\n class: \"margin10\"\n}\nconst _hoisted_22 = [\"innerHTML\"]\nconst _hoisted_23 = { key: 1 }\nconst _hoisted_24 = { class: \"uk-clearfix no-overflow\" }\nconst _hoisted_25 = [\"onMousedown\", \"onMouseenter\", \"onClick\", \"id\"]\nconst _hoisted_26 = [\"v-if\"]\nconst _hoisted_27 = {\n class: \"no-overflow\",\n style: {\"max-height\":\"1800px\"}\n}\nconst _hoisted_28 = {\n class: \"no-overflow no-wrap text12B margin10\",\n style: {\"font-weight\":\"normal\"}\n}\nconst _hoisted_29 = { class: \"uk-clearfix bold text-black text14\" }\nconst _hoisted_30 = { class: \"uk-clearfix text-black-30\" }\nconst _hoisted_31 = {\n key: 0,\n class: \"no-overflow margin10-lr uk-animation-fast uk-animation-slide-top text12B text-black ca\",\n style: {\"height\":\"24px\",\"font-weight\":\"normal\"}\n}\nconst _hoisted_32 = [\"onClick\"]\nconst _hoisted_33 = {\n key: 0,\n class: \"inline-block ca opacity60\",\n style: {\"padding-bottom\":\"1px\"}\n}\nconst _hoisted_34 = {\n key: 1,\n class: \"inline-block\",\n style: {\"padding-bottom\":\"1px\"}\n}\nconst _hoisted_35 = {\n key: 0,\n class: \"rt\"\n}\nconst _hoisted_36 = {\n key: 0,\n class: \"uk-clearfix\"\n}\nconst _hoisted_37 = {\n key: 3,\n class: \"uk-flex uk-flex-center uk-animation-fast uk-animation-fade\",\n style: {}\n}\nconst _hoisted_38 = {\n key: 0,\n class: \"text12B text-black-60 ca margin20\"\n}\nconst _hoisted_39 = {\n key: 1,\n class: \"text20 bold text-black ca margin20\"\n}\nconst _hoisted_40 = {\n key: 2,\n class: \"padding10 margin10\"\n}\nconst _hoisted_41 = { class: \"uk-clearfix ca\" }\nconst _hoisted_42 = {\n class: \"uk-clearfix\",\n style: {}\n}\nconst _hoisted_43 = { class: \"padding10\" }\nconst _hoisted_44 = { class: \"ca uk-clearfix text12B marginb20\" }\nconst _hoisted_45 = { class: \"ca uk-clearfix margin10\" }\nconst _hoisted_46 = [\"onClick\"]\nconst _hoisted_47 = {\n key: 3,\n class: \"ca margin10\",\n style: {\"margin-bottom\":\"20px\"}\n}\nconst _hoisted_48 = [\"onClick\"]\nconst _hoisted_49 = { class: \"lt margin5-lr padding5\" }\nconst _hoisted_50 = [\"onClick\"]\nconst _hoisted_51 = { class: \"lt margin5-lr padding5\" }\nconst _hoisted_52 = [\"onClick\"]\nconst _hoisted_53 = { class: \"inline-block\" }\n\nimport {\r\n TYPE_AI_ACTION,\r\n TYPE_EVENT, TYPE_ID_LOCAL_APP_DB,\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 x_divCommandInputs from \"@/codes/_40.view/x_divCommandInputs.vue\";\r\nimport i18n from \"@/codes/_90.lang/i18n\";\r\n\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, refreshLayout, 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 assignArray: any;\r\ndeclare var chance: 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 viewingSectionParts = reactive([]);\r\nconst viewingHeadersInCloumnX = reactive([]);\r\n\r\nconst refreshSectionsBelongToCurrentHeader = function () {\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 if (UIS.filterCode && (!zPageColumnParentSectionGUID)) {\r\n zResPageSections.push(xPageSection);\r\n } else if (zPageColumnParentSectionGUID && (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.reverse();\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 ) {\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 (AI)\r\n if (!xPageSectionPartID) {\r\n if (\r\n (xPageSection.flagCode != TYPE_FILTER_CODE.PURPLE)\r\n )\r\n return;\r\n }\r\n\r\n // ** Part:1 (User Notes)\r\n if (xPageSectionPartID == 1) {\r\n if (xPageSection.flagCode != TYPE_FILTER_CODE.YELLOW) return;\r\n }\r\n\r\n // ** Part:2 (Main parts)\r\n if (xPageSectionPartID == 2) {\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.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.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 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 viewingHeadersInCloumnX[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\n\r\n// ** Drag & Drop\r\nconst onDragStartPageSection = function (xEvent: any, xStartPageSectionIndex: any) {\r\n inputThings.draggingSectionIndex = xStartPageSectionIndex;\r\n cwrn(\"*onDrgStart\", inputThings.draggingSectionIndex)\r\n xEvent.dataTransfer.setDragImage(sectionDraggingImg, 10, 10);\r\n};\r\n\r\nconst onDragEndPageSection = function (xEvent: any, xStartPageSectionIndex: any) {\r\n inputThings.draggingSectionIndex = -1;\r\n inputThings.dragoverSectionGUID = \"\";\r\n refreshLayout();\r\n}\r\n\r\nconst onDragOverPageSection = function (xEvent: any, xTargetPageSectionIndex: any, xTargetPageSectionGUID: any) {\r\n inputThings.dragoverSectionGUID = xTargetPageSectionGUID;\r\n if (xEvent) {\r\n if (xTargetPageSectionIndex != inputThings.draggingSectionIndex) {\r\n xEvent.preventDefault();\r\n }\r\n }\r\n};\r\n\r\n\r\nconst onDropPageSection = function (xEvent: any, xPageColumn: IFC_Page_Column, xTargetPageSectionIndex: any, xTargetPageSectionGUID: GUID_TYPE) {\r\n let zTargetPageSectionIndex = xTargetPageSectionIndex;\r\n let zPageItem: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n\r\n if (xEvent) {\r\n xEvent.preventDefault();\r\n }\r\n if (inputThings.draggingSectionIndex != zTargetPageSectionIndex) {\r\n\r\n cwrn(\"start mving pg sec\", zTargetPageSectionIndex, inputThings.draggingSectionIndex);\r\n if (inputThings.draggingSectionIndex < zTargetPageSectionIndex) {\r\n moveElementAfter(zPageItem.pageSections, inputThings.draggingSectionIndex, zTargetPageSectionIndex);\r\n } else {\r\n moveElementAfter(zPageItem.pageSections, inputThings.draggingSectionIndex, zTargetPageSectionIndex - 1);\r\n }\r\n\r\n\r\n xPageColumn.currentSelectedPageSectionGUID = xTargetPageSectionGUID;\r\n appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\r\n }\r\n\r\n inputThings.draggingSectionIndex = -3;\r\n inputThings.dragoverSectionGUID = \"\";\r\n};\r\n\r\n\r\n// ** for Dragover Interval\r\n/*setInterval(function () {\r\n $(\".page-section-card\").removeClass(\"ccc-card-dash-selected\");\r\n\r\n let zTargetDragOverDivID = \"divPageSection_\" + inputThings.dragoverSectionGUID;\r\n let zPageItem: IFC_Page_Data = currentUserContentPage;\r\n let zDraggingPageSectionGUID = \"\";\r\n if (inputThings.draggingSectionIndex >= 0) {\r\n zDraggingPageSectionGUID = nz(zPageItem.pageSections[inputThings.draggingSectionIndex], {})._GUID;\r\n }\r\n // cwrn(\"*zdrgpgsecguid\", zDraggingPageSectionGUID);\r\n if (zTargetDragOverDivID && (inputThings.dragoverSectionGUID != zDraggingPageSectionGUID)) {\r\n // $(\"#\" + zTargetDragOverDivID).addClass(\"ccc-card-dash-selected\");\r\n }\r\n // 'ccc-card-dash-selected':((dragoverSectionGUID==pageSectionIndex) && (dragoverSectionGUID!=draggingSectionIndex) &&(pageSectionIndex!=UIS.currentSelectedPageSectionIndex)),\r\n\r\n}, 200);*/\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\nconst clickTryTopicString = function (xTopicString: string) {\r\n if (!xTopicString) {\r\n return;\r\n }\r\n\r\n clickCallUserInputCenter(TYPE_EVENT.CALL_USER_INPUT_CENTER, xTopicString);\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 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\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 getCSSColCount = function (xPageSectionPartID: number) {\r\n // return 2;\r\n\r\n if (xPageSectionPartID == 1) {\r\n if (UIS.resultPageWidth < 600) return 1;\r\n return 2\r\n } // related topic part\r\n else {\r\n if (xPageSectionPartID == 0) { //AI\r\n if (UIS.resultPageWidth < 600) return 1;\r\n return 2\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\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\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 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 appUserContentManager.buildContentPagePartsWithAISession(zPage, zPageColumn, zAISession, zPosIndex);\r\n appUserContentManager.renderAllSectionsInPage(UIS.currentUserContentPageGUID);\r\n\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 && (xPageSection.refLink)\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 // eslint-disable-next-line no-undef\r\n // cerr(\"*imgsec ax\", xPageSection);\r\n\r\n /*xPageSection._isImageNeeded=true;\r\n appUserContentManager.addSERP2PageSection(xPageSection, {\r\n q: xPageSection.sectionTitle,\r\n type: \"images\"\r\n });*/\r\n\r\n // q: xPageSection.sectionTitle + \" site:\",\r\n // q: xPageSection.sectionTitle + \" site:\" + appSERPManager.getHostName(xPageSection.refLink),\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.refLink)\r\n ) {\r\n xPageSection.flagCode = TYPE_FILTER_CODE.PURPLE;\r\n }\r\n\r\n // * add also-know/answer/knowledge for page group\r\n /*if ((xPageSection.sectionType==TYPE_SECTION.HEADER)\r\n && (xPageSection.SERPData) ) {\r\n if (xPageSection.SERPData.answerBox && xPageSection.SERPData.answerBox.snippet){\r\n xPageSection.sectionBodyText+=\"\\n* \"+xPageSection.SERPData.answerBox.snippet+\"\\n\";\r\n }\r\n if (xPageSection.SERPData.knowledgeGraph && xPageSection.SERPData.knowledgeGraph.description){\r\n xPageSection.sectionBodyText+=\"\\n* \"+xPageSection.SERPData.knowledgeGraph.description+\"\\n\";\r\n }\r\n _.each(xPageSection.SERPData.peopleAlsoAsk,function(xAlsoAskObj:any){\r\n xPageSection.sectionBodyText+=\"\\n* \"+xAlsoAskObj.snippet+\"\\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 refreshSectionsBelongToCurrentHeader();\r\n if (zAISession.belongingHeaderSectionGUID) {\r\n appUserContentManager.selectPageSection(UIS.currentUserContentPageColumnIndex, zAISession.belongingHeaderSectionGUID, zAISession.belongingHeaderSectionGUID);\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 appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\r\n\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_BREAKDOWN_DONE, funcOnAIGenDone_OutputNoteCards);\r\n window.emitter.on(TYPE_EVENT.AI_GEN_CONCLUSION_DONE, funcOnAIGenDone_OutputNoteCards);\r\n\r\n // AI Error Occurred\r\n window.emitter.on(TYPE_EVENT.AI_GEN_ERROR, function () {\r\n alert(\r\n \"An error related to AI has occurred, possibly due to excessive server load or a network issue.\\n\\n\"\r\n + \"If you are out of credits, please upgrade your subscription plan.\\n\"\r\n + \"You can also contact us via support@divedeck.ai\"\r\n )\r\n\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 // alert(\"OOC\");\r\n refreshSectionsBelongToCurrentHeader();\r\n unlockResultPageUI();\r\n });\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 appUserContentManager.addConclusion2Group(zHeaderSection);\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.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 $(\"#divPageColumnResult_\" + (zPageColumns.length - 1))[0].scrollTo({top: 0, behavior: \"instant\"});\r\n let zParentPageSectionGUID: GUID_TYPE = appUserContentManager.getCurrentPageColumnParentPageSectionGUID();\r\n let zParentPageSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zParentPageSectionGUID);\r\n\r\n // * auto-summarize parent page section (with refLink)\r\n /*if (zParentPageSection && zParentPageSection.sectionTitle && (!UIS.isSharingViewMode)) {\r\n /!*if (zParentPageSection.sectionBodyText.indexOf(TYPE_PROP.PAGE_SUM_FLAG_NAME) < 0) {\r\n appUserContentManager.addSummary2PageSection(zParentPageSection);\r\n }*!/\r\n if (!zParentPageSection.sectionSummary) {\r\n lockResultPageUI();\r\n appUserContentManager.addSummary2PageSection(zParentPageSection);\r\n }\r\n }*/\r\n\r\n // * auto-search parent page section\r\n // && (zParentPageSection.flagCode == TYPE_FILTER_CODE.GREEN)\r\n if (zParentPageSection && zParentPageSection.sectionTitle && (!UIS.isSharingViewMode)) {\r\n if ((zParentPageSection.flagCode == TYPE_FILTER_CODE.GREEN) && (!getSubPageSectionCount(zParentPageSection))) {\r\n lockResultPageUI();\r\n clickCallUserInputCenter(TYPE_EVENT.CALL_USER_INPUT_CENTER_SEARCH_WEB);\r\n }\r\n }\r\n\r\n // * goto 1st header\r\n setTimeout(function () {\r\n let zPageColumn: IFC_Page_Column = nz(pageColumns[UIS.currentUserContentPageColumnIndex], {});\r\n refreshSectionsBelongToCurrentHeader();\r\n\r\n let zHeaderSections = viewingHeadersInCloumnX[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 }, 200);\r\n\r\n });\r\n\r\n\r\n window.emitter.on(TYPE_EVENT.SUMMARY_DONE, function () {\r\n let zParentPageSectionGUID = appUserContentManager.getCurrentPageColumnParentPageSectionGUID();\r\n if (!zParentPageSectionGUID) return unlockResultPageUI();\r\n let zParentPageSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, zParentPageSectionGUID);\r\n if (!zParentPageSection) return unlockResultPageUI();\r\n\r\n doBreakDownPageSectionWithContent(zParentPageSection);\r\n });\r\n\r\n window.emitter.on(TYPE_EVENT.SUMMARY_NA, function () {\r\n unlockResultPageUI();\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 }, 300);\r\n //\r\n });\r\n\r\n window.emitter.on(TYPE_EVENT.PAGE_SAVED, function () {\r\n refreshSectionsBelongToCurrentHeader();\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_PageSectionMenu = _resolveComponent(\"PageSectionMenu\")!\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) && viewingHeadersInCloumnX[pageColumnIndex].length),\r\n 'no-overflow':(pageColumnIndex==0) && ((!viewingHeadersInCloumnX[pageColumnIndex]) || (!viewingHeadersInCloumnX[pageColumnIndex].length)),\r\n }]),\n style: {\"z-index\":\"90\"}\n }, [\n _createElementVNode(\"div\", _hoisted_5, [\n (pageColumn.parentPageSectionGUID)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"rc2 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: {\"border\":\"0px solid transparent\",\"overflow\":\"hidden\",\"margin-top\":\"5px\"},\n onClick: _withModifiers(($event: any) => (clickPageSection($event,pageColumn,pageColumnIndex,'')), [\"stop\",\"prevent\"])\n }, [\n _createVNode(_component_PageSectionView, {\n pageColumn: pageColumn,\n pageColumnIndex: pageColumnIndex,\n pageSection: getParentSection4CurrentPageColumn(pageColumn),\n isFolded: _unref(UIS).isMiniScreenMode\n }, null, 8, [\"pageColumn\", \"pageColumnIndex\", \"pageSection\", \"isFolded\"])\n ], 10, _hoisted_6))\n : _createCommentVNode(\"\", true),\n (!pageColumn.parentPageSectionGUID)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7))\n : _createCommentVNode(\"\", true),\n (viewingHeadersInCloumnX[pageColumnIndex] && viewingHeadersInCloumnX[pageColumnIndex].length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(viewingHeadersInCloumnX[pageColumnIndex], (headerSection) => {\n return (_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_10, [\n _createElementVNode(\"div\", {\n class: \"lt clickable no-overflow no-wrap\",\n style: {\"max-width\":\"calc(100% - 132px)\"},\n onClick: _withModifiers(($event: any) => (clickHeaderSection($event,pageColumn,pageColumnIndex,headerSection._GUID,headerSection._GUID)), [\"stop\",\"prevent\"])\n }, [\n _createElementVNode(\"div\", _hoisted_12, [\n (checkIfHeaderNeedToExtend(pageColumn,headerSection))\n ? (_openBlock(), _createElementBlock(\"i\", _hoisted_13))\n : (_openBlock(), _createElementBlock(\"i\", _hoisted_14))\n ]),\n _createElementVNode(\"div\", _hoisted_15, _toDisplayString(headerSection.sectionTitle), 1)\n ], 8, _hoisted_11),\n (checkIfHeaderNeedToExtend(pageColumn,headerSection) )\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_16, [\n _createVNode(_component_PageSectionMenu, {\n isReadOnly: _unref(UIS).isSharingViewMode,\n isSelected: pageColumn.currentSelectedHeaderPageSectionGUID==headerSection._GUID,\n pageColumn: pageColumn,\n pageColumnIndex: pageColumnIndex,\n pageSection: headerSection,\n onClickDiveIntoPageSection: ($event: any) => (clickDiveIntoPageSection($event,pageColumn,pageColumnIndex,headerSection._GUID,headerSection))\n }, null, 8, [\"isReadOnly\", \"isSelected\", \"pageColumn\", \"pageColumnIndex\", \"pageSection\", \"onClickDiveIntoPageSection\"])\n ], 512)), [\n [_vShow, !pageColumn.filterCode]\n ])\n : _createCommentVNode(\"\", true)\n ]),\n (checkIfHeaderNeedToExtend(pageColumn,headerSection) )\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_17, [\n (headerSection.sectionMemo)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_18, [\n _createElementVNode(\"div\", _hoisted_19, [\n _cache[2] || (_cache[2] = _createElementVNode(\"i\", {\n class: \"lt text12B ccc-icon-file-empty text-black-30 no-select gly-rotate-180\",\n style: {\"margin-top\":\"16px\"}\n }, null, -1)),\n _createElementVNode(\"p\", {\n class: \"lt 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% - 40px)\",\"border\":\"none\",\"resize\":\"none\",\"white-space\":\"pre-line\",\"padding\":\"10px 20px\"},\n innerHTML: headerSection._cacheMemoHTML,\n title: headerSection.sectionMemo\n }, null, 8, _hoisted_20)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ], 8, _hoisted_9),\n ((_unref(UIS).ifLockingPageUI) && (checkIfHeaderNeedToExtend(pageColumn,headerSection)))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_21, [\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_22))\n : _createCommentVNode(\"\", true),\n _cache[3] || (_cache[3] = _createElementVNode(\"hr\", null, null, -1))\n ]))\n : _createCommentVNode(\"\", true),\n (checkIfHeaderNeedToExtend(pageColumn,headerSection))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_23, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList([0,1,2,3,4], (pageSectionPartID) => {\n return _createElementVNode(\"div\", {\n key: pageSectionPartID,\n class: \"uk-clearfix\",\n style: {\"margin-bottom\":\"20px\"}\n }, [\n _createElementVNode(\"div\", {\n class: \"lt\",\n style: _normalizeStyle([{\"width\":\"calc(100% - 14px)\",\"margin-right\":\"7px\",\"margin-left\":\"7px\"}, {\r\n 'column-count': getCSSColCount(pageSectionPartID),\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 content-card\", {\r\n 'uk-animation-fast':(!_unref(UIS).ifLockingPageUI),\r\n 'content-card':(pageColumn.currentSelectedPageSectionGUID!=pageSection._GUID),\r\n 'content-card-selected':(pageColumn.currentSelectedPageSectionGUID==pageSection._GUID),\r\n 'uk-animation-slide-bottom':(!_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: 16px;')\r\n + (_unref(UIS).ifLockingPageUI?'animation-delay:'+(pageSectionIndex*50)+'ms;':'')\r\n )\n }, [\n _createElementVNode(\"div\", _hoisted_24, [\n _createElementVNode(\"div\", {\n style: _normalizeStyle([{\"will-change\":\"transform, opacity\"}, getPageSectionStyle(pageSection)]),\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_27, [\n _createVNode(_component_PageSectionElement, {\n class: \"no-select\",\n sectionCardStyle: 'text-align:left;',\n pageSection: pageSection,\n isSelected: (pageColumn.currentSelectedPageSectionGUID==pageSection._GUID),\n isBackFaceMode: false,\n isEditingMode: false,\n isMiniMode: pageSectionPartID==4,\n onClickDiveIntoPageSection: ($event: any) => (clickDiveIntoPageSection($event,pageColumn,pageColumnIndex,pageSection._GUID,headerSection))\n }, null, 8, [\"pageSection\", \"isSelected\", \"isMiniMode\", \"onClickDiveIntoPageSection\"])\n ], 512), [\n [_vShow, !_unref(UIS).ifLockingPageUI]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_28, [\n _createElementVNode(\"div\", _hoisted_29, _toDisplayString(pageSection.sectionTitle), 1),\n _createElementVNode(\"div\", _hoisted_30, _toDisplayString(pageSection.sectionBodyTextLess), 1)\n ], 512), [\n [_vShow, _unref(UIS).ifLockingPageUI]\n ]),\n (!_unref(UIS).ifLockingPageUI)\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_31, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"lt margin10-lr hotLink ca\", {'ccc-color-primary':(pageColumn.currentSelectedPageSectionGUID==pageSection._GUID)}]),\n onClick: _withModifiers(($event: any) => (clickDiveIntoPageSection($event,pageColumn,pageColumnIndex,pageSection._GUID,headerSection)), [\"stop\",\"prevent\"])\n }, [\n _cache[4] || (_cache[4] = _createElementVNode(\"i\", {\n class: \"ccc-icon-arrow-down8 margin5-lr\",\n style: {\"margin-top\":\"3px\"}\n }, null, -1)),\n ((getSubPageSectionCount(pageSection)))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_33, \"  \" + _toDisplayString(getSubPageSectionCount(pageSection)), 1))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_34, _toDisplayString(_ctx.$t(\"Dive_Deeper\")), 1))\n ], 10, _hoisted_32),\n ((pageSection.sectionType==_unref(TYPE_SECTION).NOTE_CARD)\r\n && (pageColumn.currentSelectedPageSectionGUID==pageSection._GUID))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_35, [\n _createVNode(_component_PageSectionMenu, {\n isReadOnly: _unref(UIS).isSharingViewMode,\n isSelected: (pageColumn.currentSelectedPageSectionGUID==pageSection._GUID),\n draggingSectionIndex: _unref(inputThings).draggingSectionIndex,\n hoverSectionGUID: _unref(inputThings).hoverSectionGUID,\n pageColumn: pageColumn,\n pageColumnIndex: pageColumnIndex,\n pageSection: pageSection,\n pageSections: getCurrentPageColumnPageSections(pageColumnIndex),\n pageSectionIndex: pageSectionIndex,\n onClickDiveIntoPageSection: ($event: any) => (clickDiveIntoPageSection($event,pageColumn,pageColumnIndex,pageSection._GUID,headerSection))\n }, null, 8, [\"isReadOnly\", \"isSelected\", \"draggingSectionIndex\", \"hoverSectionGUID\", \"pageColumn\", \"pageColumnIndex\", \"pageSection\", \"pageSections\", \"pageSectionIndex\", \"onClickDiveIntoPageSection\"])\n ]))\n : _createCommentVNode(\"\", true)\n ], 512)), [\n [_vShow, !(pageSectionPartID==4)]\n ])\n : _createCommentVNode(\"\", true)\n ], 10, _hoisted_26)\n ], 46, _hoisted_25)\n ])\n ], 6)\n ]))\n }), 128))\n ], 4)\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 }), 128))\n ]))\n : _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_37, [\n _createElementVNode(\"div\", {\n class: \"padding10 la content-card uk-animation-fade uk-animation-fast\",\n style: _normalizeStyle([{\"max-width\":\"700px\"}, ((pageColumnIndex>0)?'':'margin-left: 160px;')])\n }, [\n (pageColumnIndex==0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_38, [\n _cache[5] || (_cache[5] = _createElementVNode(\"i\", { class: \"ccc-icon-arrow-up2\" }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"messages.OPIntroStartSearching\")) + \" \", 1),\n _cache[6] || (_cache[6] = _createElementVNode(\"i\", { class: \"ccc-icon-arrow-up2\" }, null, -1)),\n _cache[7] || (_cache[7] = _createTextVNode(\"  \"))\n ]))\n : _createCommentVNode(\"\", true),\n (pageColumnIndex>0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_39, _toDisplayString(_ctx.$t(\"messages.OPIntroContinueDiving\")), 1))\n : _createCommentVNode(\"\", true),\n (pageColumnIndex==0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_40, [\n _createElementVNode(\"div\", _hoisted_41, [\n _cache[10] || (_cache[10] = _createElementVNode(\"img\", {\n class: \"inline-block\",\n style: {\"width\":\"40%\"},\n src: \"/img/op-intro/op-intro-1.webp\"\n }, null, -1)),\n _createElementVNode(\"div\", _hoisted_42, [\n _createElementVNode(\"div\", _hoisted_43, [\n _createElementVNode(\"div\", null, [\n _cache[9] || (_cache[9] = _createElementVNode(\"hr\", null, null, -1)),\n _createElementVNode(\"div\", _hoisted_44, _toDisplayString(_ctx.$t(\"messages.TrySampleTopics\")), 1),\n _createElementVNode(\"div\", _hoisted_45, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(defaultTopicStrings), (sampleTopicString, sampleTopicIndex) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: sampleTopicIndex,\n class: \"inline-block text-black marginb5\"\n }, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink ellipsis no-overflow no-wrap underline-editing margin10-lr\",\n onClick: _withModifiers(($event: any) => (clickTryTopicString(sampleTopicString)), [\"stop\",\"prevent\"])\n }, [\n _cache[8] || (_cache[8] = _createElementVNode(\"i\", { class: \"ccc-icon-forward margin5-lr text-black-30\" }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(sampleTopicString), 1)\n ], 8, _hoisted_46)\n ]))\n }), 128))\n ])\n ])\n ])\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true),\n ((pageColumnIndex>0) && (getParentSection4CurrentPageColumn(pageColumn)))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_47, [\n (!(getParentSection4CurrentPageColumn(pageColumn).refLink))\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"mon-bubble-button inline-block margin10\",\n onClick: _withModifiers(($event: any) => (clickCallUserInputCenter(\r\n _unref(TYPE_EVENT).CALL_USER_INPUT_CENTER_ASK_AI,\r\n getParentSection4CurrentPageColumn(pageColumn).sectionTitle)), [\"stop\",\"prevent\"])\n }, [\n _cache[11] || (_cache[11] = _createElementVNode(\"i\", {\n class: \"ccc-icon-atom2 text-black rc99 text12 lt margin5-lr margin5\",\n style: {\"padding\":\"4px 5px 4px 6px\"}\n }, null, -1)),\n _createElementVNode(\"div\", _hoisted_49, _toDisplayString(_ctx.$t(\"Ask_AI\")), 1)\n ], 8, _hoisted_48))\n : (_openBlock(), _createElementBlock(\"div\", {\n key: 1,\n class: \"mon-bubble-button inline-block margin10\",\n onClick: _withModifiers(($event: any) => (clickGotoWebsite(getParentSection4CurrentPageColumn(pageColumn).refLink)), [\"stop\",\"prevent\"])\n }, [\n _cache[12] || (_cache[12] = _createElementVNode(\"i\", {\n class: \"ccc-icon-new-tab2 text-black rc99 text12 lt margin5-lr margin5\",\n style: {\"padding\":\"4px 5px 4px 6px\"}\n }, null, -1)),\n _createElementVNode(\"div\", _hoisted_51, _toDisplayString(_ctx.$t(\"Open the page\")), 1)\n ], 8, _hoisted_50)),\n _createElementVNode(\"div\", {\n class: \"mon-black-button mon-med-button inline-block margin10\",\n style: {\"width\":\"220px\"},\n onClick: _withModifiers(($event: any) => (clickCallUserInputCenter(_unref(TYPE_EVENT).CALL_USER_INPUT_CENTER_SEARCH_WEB,\r\n getParentSection4CurrentPageColumn(pageColumn).sectionTitle)), [\"stop\",\"prevent\"])\n }, [\n _cache[13] || (_cache[13] = _createElementVNode(\"i\", {\n class: \"ccc-icon-sphere text-white rc99 text12 inline-block margin5-lr margin5\",\n style: {\"padding\":\"4px 5px 4px 6px\"}\n }, null, -1)),\n _createElementVNode(\"div\", _hoisted_53, _toDisplayString(_ctx.$t(\"Web_Search_Like_This\")), 1)\n ], 8, _hoisted_52)\n ]))\n : _createCommentVNode(\"\", true)\n ], 4)\n ], 512)), [\n [_vShow, (!_unref(UIS).isSharingViewMode) && (!_unref(UIS).ifChattingUI) && (!_unref(UIS).ifLockingPageUI)]\n ]),\n _cache[14] || (_cache[14] = _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]\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, vShow as _vShow, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"ca\",\n style: {\"position\":\"absolute\",\"top\":\"64px\",\"left\":\"5px\",\"bottom\":\"5px\",\"right\":\"5px\"}\n}\nconst _hoisted_2 = { class: \"text-primary-gradient\" }\nconst _hoisted_3 = { class: \"ca uk-clearfix\" }\n\nimport PageSectionMenu from \"@/codes/_40.view/menu/PageSectionMenu.vue\";\r\nimport {TYPE_AI_ACTION, 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\n\nreturn (_ctx: any,_cache: any) => {\n return (!_unref(UIS).isSharingViewMode)\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"h1\", _hoisted_2, _toDisplayString(_ctx.$t(\"messages.EmptyPage_Title\")), 1),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", {\n class: \"inline-block margin10 mon-black-button 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[2] || (_cache[2] = _createElementVNode(\"i\", { class: \"ccc-icon-plus-circle2\" }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"messages.NewSession4EmptyPage\")), 1)\n ]),\n _createElementVNode(\"div\", {\n class: \"inline-block margin10 hotLink\",\n onClick: _cache[1] || (_cache[1] = _withModifiers(($event: any) => (clickOpenPageList()), [\"stop\",\"prevent\"]))\n }, [\n _cache[3] || (_cache[3] = _createElementVNode(\"i\", { class: \"ccc-icon-bubble-dots2\" }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"messages.LoadSession4EmptyPage\")), 1)\n ])\n ])\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 { unref as _unref, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, withModifiers as _withModifiers, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, vShow as _vShow, withDirectives as _withDirectives, renderList as _renderList, Fragment as _Fragment } 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 = [\"id\"]\nconst _hoisted_4 = { class: \"no-overflow\" }\nconst _hoisted_5 = {\n key: 0,\n class: \"uk-clearfix no-overflow no-wrap text12B\"\n}\nconst _hoisted_6 = {\n class: \"lt no-wrap no-overflow margin5-lr text-black-30\",\n style: {\"margin-top\":\"7px\"}\n}\nconst _hoisted_7 = {\n class: \"lt no-wrap no-overflow\",\n style: {\"max-width\":\"calc(100% - 48px)\",\"margin-top\":\"3px\"}\n}\nconst _hoisted_8 = [\"title\"]\nconst _hoisted_9 = {\n key: 1,\n class: \"uk-clearfix\",\n style: {\"line-height\":\"20px\",\"font-weight\":\"normal\"}\n}\nconst _hoisted_10 = [\"src\"]\nconst _hoisted_11 = [\"title\"]\nconst _hoisted_12 = {\n key: 1,\n class: \"lt no-overflow no-wrap text12B clickable\",\n style: {\"width\":\"calc(100% - 96px)\"}\n}\nconst _hoisted_13 = {\n class: \"inline-block text-black-60 text12B margin5-lr\",\n style: {\"height\":\"20px\"}\n}\nconst _hoisted_14 = { class: \"inline-block margin5-lr\" }\nconst _hoisted_15 = { class: \"rt margin5-lr\" }\nconst _hoisted_16 = {\n key: 0,\n class: \"hotLink text20 rc99 ca text-black-30 img32\"\n}\nconst _hoisted_17 = {\n key: 1,\n class: \"hotLink text20 rc99 ca img32\"\n}\nconst _hoisted_18 = {\n class: \"ca uk-clearfix no-overflow text12B no-select uk-animation-fast uk-animation-slide-top\",\n style: {\"font-weight\":\"normal\",\"height\":\"20px\"}\n}\nconst _hoisted_19 = { class: \"lt no-wrap no-overflow margin5-lr\" }\nconst _hoisted_20 = { class: \"lt\" }\nconst _hoisted_21 = { class: \"lt no-wrap no-overflow margin5-lr\" }\nconst _hoisted_22 = { class: \"lt\" }\nconst _hoisted_23 = { class: \"rt no-wrap no-overflow text-white-60\" }\nconst _hoisted_24 = { class: \"can-select\" }\nconst _hoisted_25 = {\n key: 0,\n class: \"inline-block\",\n style: {\"margin-top\":\"10px\",\"margin-left\":\"18px\"}\n}\nconst _hoisted_26 = {\n key: 1,\n class: \"inline-block text16\",\n style: {\"margin-top\":\"2px\",\"margin-left\":\"18px\"}\n}\nconst _hoisted_27 = { key: 0 }\nconst _hoisted_28 = {\n key: 0,\n class: \"uk-clearfix text-black-60 rc2 text12\",\n style: {\"margin-top\":\"10px\",\"margin-left\":\"10px\",\"font-weight\":\"normal\"}\n}\nconst _hoisted_29 = [\"innerHTML\"]\nconst _hoisted_30 = {\n key: 1,\n class: \"md-contents-lite text-black can-select rc2 margin10 padding10 background-silver-10\",\n style: {\"font-weight\":\"normal\",\"font-size\":\"15px\"}\n}\nconst _hoisted_31 = [\"innerHTML\"]\nconst _hoisted_32 = {\n key: 3,\n class: \"text-black-60 text12B margin10-lr uk-clearfix\",\n style: {\"font-weight\":\"normal\"}\n}\nconst _hoisted_33 = [\"onClick\"]\nconst _hoisted_34 = {\n class: \"lt no-overflow no-wrap\",\n style: {\"width\":\"calc(100%)\"}\n}\nconst _hoisted_35 = [\"src\"]\nconst _hoisted_36 = {\n class: \"inline-block underline-editing hotLink no-wrap no-overflow\",\n style: {\"height\":\"20px\",\"padding-top\":\"4px\"}\n}\nconst _hoisted_37 = {\n key: 4,\n class: \"uk-clearfix no-overflow rc2 uk-flex-center uk-flex margin10-lr\",\n style: {\"margin-top\":\"5px\",\"margin-bottom\":\"10px\",\"max-height\":\"500px\"}\n}\nconst _hoisted_38 = {\n key: 0,\n class: \"lt rc2 padding5\",\n style: {\"max-width\":\"50%\"}\n}\nconst _hoisted_39 = [\"src\"]\nconst _hoisted_40 = {\n key: 1,\n class: \"lt rc2 padding5\",\n style: {\"max-width\":\"20%\",\"max-height\":\"160px\"}\n}\nconst _hoisted_41 = [\"src\"]\nconst _hoisted_42 = {\n key: 2,\n class: \"lt rc2 padding5\",\n style: {\"max-width\":\"20%\",\"max-height\":\"160px\"}\n}\nconst _hoisted_43 = [\"src\"]\nconst _hoisted_44 = {\n key: 5,\n class: \"\"\n}\nconst _hoisted_45 = {\n class: \"uk-clearfix text-black-60 can-select text12B\",\n style: {\"margin-top\":\"10px\",\"margin-right\":\"0px\",\"font-weight\":\"normal\"}\n}\nconst _hoisted_46 = [\"innerHTML\", \"title\"]\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\r\n} from \"@/codes/_20.def/_modDataDict\";\r\nimport {LangSettings} from \"@/codes/_90.lang/langUtils\";\r\nimport {GUID_TYPE} from \"@/codes/_20.def/dataTypes\";\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_UserContentManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {IFC_Page_Section} from \"@/codes/_20.def/dataTypes\";\r\nimport {TYPE_SECTION} from \"@/codes/_20.def/_modDataDict\";\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 assignArray: any;\r\ndeclare var $: any;\r\ndeclare var _: any;\r\ndeclare var setInputFocus: any;\r\ndeclare var clearSelection: 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\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 isEditingMode: 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\"],\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\nconst getRefSections = function (xRefSectionIDs): IFC_Page_Section[] {\r\n let zAllPageSections = appUserContentManager.getCurrentPageSections();\r\n let zResSections = [];\r\n _.each(zAllPageSections, function (xPageSection: IFC_Page_Section) {\r\n if (_.includes(xRefSectionIDs, xPageSection._GUID)) {\r\n zResSections.push(xPageSection);\r\n }\r\n });\r\n return zResSections;\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\r\nconst clickEditNote = 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_TEXT_EDITOR);\r\n /*setTimeout(function () {\r\n setInputFocus(\"#txtInputEditingSectionMemo\");\r\n }, 400)*/\r\n\r\n\r\n }\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 clickToggleStarPageSection = function (xPageSection: IFC_Page_Section) {\r\n\r\n appUserContentManager.updatePageSectionStar(UIS.currentUserContentPageGUID,\r\n xPageSection._GUID, (!xPageSection._isStarred));\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\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 clickClearSelection = function () {\r\n clearSelection();\r\n UIS.selectedTextContent = \"\";\r\n selectionMenu.ifShow = false;\r\n}\r\n\r\nconst clickExploreMore = function (xSelectionText: string) {\r\n selectionMenu.ifShow = false;\r\n if (xSelectionText && xSelectionText.trim()) {\r\n UIS.currentChattingMessage = xSelectionText;\r\n window.emitter.emit(TYPE_EVENT.CALL_USER_INPUT_CENTER);\r\n }\r\n}\r\n\r\nconst clickAddSelectionToMemo = function (xPageSectionGUID: GUID_TYPE) {\r\n selectionMenu.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.updatePageSectionStar(\"\", xPageSectionGUID,\r\n true);\r\n\r\n clearSelection()\r\n }\r\n}\r\n\r\nconst onMousedown = function (xEvent: any) {\r\n selectionMenu.ifMouseDown = true;\r\n if (!UIS.selectedTextContent) selectionMenu.ifShow = false;\r\n}\r\nconst onMouseup = 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 if (zSelectedText) {\r\n selectionMenu.left = xEvent.layerX - 210;\r\n if (selectionMenu.left < 10) selectionMenu.left = 10;\r\n if (selectionMenu.ifMouseDown) {\r\n selectionMenu.top = xEvent.layerY + 16;\r\n selectionMenu.ifShow = true;\r\n // cwrn(\"*evt\", xEvent, selectionMenu.left);\r\n }\r\n }\r\n selectionMenu.ifMouseDown = false;\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.sectionType==_unref(TYPE_SECTION).NOTE_CARD)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"height100 no-overflow\",\n id: 'divPageSectionCard'+__props.pageSection._GUID,\n style: _normalizeStyle(__props.isBackFaceMode?'margin-top:0px;margin-bottom:0px':'margin-top:0px;'),\n onMouseup: _cache[10] || (_cache[10] = ($event: any) => (onMouseup($event))),\n onMousedown: _cache[11] || (_cache[11] = ($event: any) => (onMousedown($event)))\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"no-overflow ellipsis inline-block uk-animation-fast\", {\r\n 'can-select rc4':__props.isBackFaceMode\r\n }]),\n style: _normalizeStyle([{\"width\":\"calc(100%)\",\"height\":\"calc(100%)\"}, __props.sectionCardStyle\r\n +';'\r\n ])\n }, [\n _createElementVNode(\"div\", _hoisted_4, [\n (__props.isMiniMode && __props.pageSection.sectionTitle)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"i\", {\n class: _normalizeClass(_unref(getSectionFlagColorStyle)(__props.pageSection,'iconClass'))\n }, null, 2)\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", {\n class: \"text14 margin5-lr inline-block hotLink\",\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (_ctx.$emit('clickDiveIntoPageSection')), [\"stop\",\"prevent\"])),\n style: _normalizeStyle([{\"font-weight\":\"normal\"}, _unref(getSectionFlagColorStyle)(__props.pageSection,'titleStyle')]),\n title: __props.pageSection.sectionTitle\n }, _toDisplayString(__props.pageSection.sectionTitle), 13, _hoisted_8)\n ]),\n _createElementVNode(\"div\", {\n class: \"lt no-wrap no-overflow margin5-lr clickable\",\n style: {\"margin-top\":\"7px\"},\n onClick: _cache[1] || (_cache[1] = _withModifiers(($event: any) => (_ctx.$emit('clickDiveIntoPageSection')), [\"stop\",\"prevent\"]))\n }, _cache[12] || (_cache[12] = [\n _createElementVNode(\"i\", { class: \"text-black-30 ccc-icon-arrow-right3\" }, null, -1)\n ]))\n ]))\n : _createCommentVNode(\"\", true),\n (!__props.isMiniMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9, [\n (__props.pageSection.refLink)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"lt no-overflow no-wrap text12B clickable\",\n style: {\"width\":\"calc(100% - 96px)\"},\n onClick: _cache[3] || (_cache[3] = _withModifiers(($event: any) => (clickGotoWebsite(__props.pageSection.refLink)), [\"stop\",\"prevent\"]))\n }, [\n _createElementVNode(\"img\", {\n src: _unref(getFavIconURL)(__props.pageSection.refLink),\n class: \"lt img32 rc99 img-border margin5-lr\",\n style: {}\n }, null, 8, _hoisted_10),\n (__props.pageSection.refLink)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"inline-block text-black-60 hotLink underline-editing text12B margin5-lr\",\n style: {\"height\":\"20px\",\"padding-top\":\"4px\"},\n title: __props.pageSection.refLink,\n onClick: _cache[2] || (_cache[2] = _withModifiers(($event: any) => (clickGotoWebsite(__props.pageSection.refLink)), [\"stop\",\"prevent\"]))\n }, _toDisplayString(_unref(getHostName)(__props.pageSection.refLink)), 9, _hoisted_11))\n : _createCommentVNode(\"\", true)\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n _createElementVNode(\"div\", _hoisted_13, [\n _createElementVNode(\"i\", {\n class: _normalizeClass([\"inline-block margin5-lr text12B text-black-60\", _unref(getSectionFlagColorStyle)(__props.pageSection,'iconClass')+' '\r\n + (__props.pageSection.flagCode==_unref(TYPE_FILTER_CODE).PURPLE?'ccc-tag-purple':'')]),\n style: _normalizeStyle([{}, _unref(getSectionFlagColorStyle)(__props.pageSection,'backStyle')])\n }, null, 6),\n _createElementVNode(\"div\", _hoisted_14, _toDisplayString(_ctx.$t(_unref(getSectionFlagColorStyle)(__props.pageSection, 'flagName'))), 1)\n ])\n ])),\n _createElementVNode(\"div\", _hoisted_15, [\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\":\"3px\"},\n onClick: _cache[4] || (_cache[4] = ($event: any) => (clickToggleStarPageSection(__props.pageSection)))\n }, [\n (!__props.pageSection._isStarred)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_16, _cache[13] || (_cache[13] = [\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_17, _cache[14] || (_cache[14] = [\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, (!__props.isReadOnly)]\n ])\n : _createCommentVNode(\"\", true),\n ((__props.pageSection.sectionType==_unref(TYPE_SECTION).NOTE_CARD) && (__props.pageSection.refLink))\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\":\"3px\"},\n onClick: _cache[5] || (_cache[5] = _withModifiers(($event: any) => (clickGotoWebsite(__props.pageSection.refLink)), [\"stop\",\"prevent\"]))\n }, _cache[15] || (_cache[15] = [\n _createElementVNode(\"div\", { class: \"hotLink text20 rc99 ca text-black-30 margin10-lr rt\" }, [\n _createElementVNode(\"i\", {\n class: \"ccc-icon-new-tab2\",\n style: {\"font-weight\":\"normal\"}\n })\n ], -1)\n ])))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (!__props.isMiniMode)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 2,\n class: _normalizeClass([\"uk-clearfix\", (__props.isBackFaceMode?'margin10 ':'margin10-lr ')]),\n style: {\"z-index\":\"400\"}\n }, [\n _withDirectives(_createElementVNode(\"div\", {\n class: \"no-select mon-black-active-back rc2 border-silver text12B padding5 text-white uk-animation-slide-bottom uk-animation-fast ca\",\n style: _normalizeStyle([{\r\n 'top':(_unref(selectionMenu).top+'px'),\r\n left:(_unref(selectionMenu).left+'px'),\r\n }, {\"position\":\"absolute\",\"height\":\"21px\",\"width\":\"220px\",\"z-index\":\"99\"}])\n }, [\n _createElementVNode(\"div\", _hoisted_18, [\n _createElementVNode(\"div\", _hoisted_19, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLinkLight\",\n onClick: _cache[6] || (_cache[6] = _withModifiers(($event: any) => (clickAddSelectionToMemo(__props.pageSection._GUID)), [\"stop\",\"prevent\"]))\n }, [\n _cache[16] || (_cache[16] = _createElementVNode(\"i\", { class: \"lt text12 ccc-icon-file-empty gly-rotate-180 img16 margin5-lr\" }, null, -1)),\n _createElementVNode(\"div\", _hoisted_20, _toDisplayString(_ctx.$t(\"messages.AppendSelectionToMemo\")), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_21, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLinkLight\",\n onClick: _cache[7] || (_cache[7] = _withModifiers(($event: any) => (\r\n (_ctx.$emit('clickDiveIntoPageSection'),\r\n clickExploreMore(_unref(UIS).selectedTextContent))), [\"stop\",\"prevent\"]))\n }, [\n _cache[17] || (_cache[17] = _createElementVNode(\"i\", {\n class: \"lt text12 ccc-icon-search2 img16 margin5-lr\",\n style: {\"margin-top\":\"5px\"}\n }, null, -1)),\n _createElementVNode(\"div\", _hoisted_22, _toDisplayString(_ctx.$t(\"messages.ExploreSelection\")), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_23, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLinkLight\",\n onClick: _cache[8] || (_cache[8] = _withModifiers(($event: any) => (clickClearSelection()), [\"stop\",\"prevent\"]))\n }, _cache[18] || (_cache[18] = [\n _createElementVNode(\"i\", {\n class: \"rt text12 ccc-icon-cancel-circle img16 margin5-lr\",\n style: {\"margin-top\":\"5px\"}\n }, null, -1)\n ]))\n ])\n ])\n ], 4), [\n [_vShow, _unref(selectionMenu).ifShow && (__props.isSelected || __props.isBackFaceMode) && _unref(UIS).selectedTextContent && (!_unref(UIS).isSharingViewMode)]\n ]),\n _createElementVNode(\"div\", _hoisted_24, [\n _createElementVNode(\"div\", {\n style: _normalizeStyle(_unref(getSectionFlagColorStyle)(__props.pageSection,'titleStyle')),\n class: _normalizeClass([((__props.pageSection._layoutStyleObject) && __props.pageSection._layoutStyleObject.isOneLineTitle)?'no-wrap no-overflow ellipsis':'', \"inline-block\"])\n }, [\n (!__props.isMiniMode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_25, _toDisplayString(__props.pageSection.sectionTitle), 1))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_26, _toDisplayString(__props.pageSection.sectionTitle), 1))\n ], 6),\n (__props.pageSection._layoutStyleObject && (!__props.pageSection._layoutStyleObject?.isTitleOnly) && (!__props.pageSection._layoutStyleObject?.isOneLineTitle) )\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_27, [\n (__props.pageSection.sectionTranslatedText)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_28, [\n _createElementVNode(\"div\", {\n class: \"rt hotLink margin5-lr\",\n onClick: _cache[9] || (_cache[9] = _withModifiers(($event: any) => (clickCancelTranslation(__props.pageSection)), [\"stop\",\"prevent\"]))\n }, _cache[19] || (_cache[19] = [\n _createElementVNode(\"i\", { class: \"ccc-icon-bubble-cancel\" }, null, -1)\n ]))\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", {\n class: \"md-contents-lite text-black-60 can-select\",\n style: {\"margin-top\":\"10px\",\"margin-left\":\"10px\",\"font-weight\":\"normal\",\"font-size\":\"15px\"},\n innerHTML: __props.pageSection._cacheBodyHTML\n }, null, 8, _hoisted_29),\n (__props.pageSection._statusText)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_30, _toDisplayString(__props.pageSection._statusText), 1))\n : _createCommentVNode(\"\", true),\n (__props.pageSection._cacheTranslatedHTML)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 2,\n class: \"md-contents-lite text-black can-select rc2 padding5 background-silver-10\",\n style: {\"margin-left\":\"10px\",\"font-weight\":\"normal\",\"font-size\":\"15px\"},\n innerHTML: __props.pageSection._cacheTranslatedHTML\n }, null, 8, _hoisted_31))\n : _createCommentVNode(\"\", true)\n ], 512)), [\n [_vShow, !__props.isMiniMode]\n ])\n : _createCommentVNode(\"\", true)\n ])\n ], 2))\n : _createCommentVNode(\"\", true),\n (__props.pageSection.refSectionGUIDs && __props.pageSection.refSectionGUIDs.length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_32, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(getRefSections(__props.pageSection.refSectionGUIDs), (refSection) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"uk-clearfix margin5\",\n key: refSection._GUID\n }, [\n _createElementVNode(\"div\", {\n class: \"text12B clickable no-wrap no-overflow inline-block\",\n onClick: _withModifiers(($event: any) => (clickGotoWebsite(refSection.refLink)), [\"stop\",\"prevent\"])\n }, [\n _createElementVNode(\"div\", _hoisted_34, [\n _createElementVNode(\"img\", {\n src: _unref(getFavIconURL)(refSection.refLink),\n class: \"lt img32 rc99 img-border margin5-lr\",\n style: {}\n }, null, 8, _hoisted_35),\n _createElementVNode(\"div\", _hoisted_36, _toDisplayString(refSection.sectionTitle), 1)\n ])\n ], 8, _hoisted_33)\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n ((__props.pageSection._layoutStyleObject) && (__props.pageSection._layoutStyleObject.isSideCoverImageView) && (__props.pageSection.coverImageURL) && (!_unref(UIS).isMiniScreenMode) && (!__props.isMiniMode))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_37, [\n (__props.pageSection.coverImageURL)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_38, [\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_39)\n ]))\n : _createCommentVNode(\"\", true),\n (__props.pageSection.optionalCoverImageURLs && __props.pageSection.optionalCoverImageURLs[1])\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_40, [\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.optionalCoverImageURLs[1]\n }, null, 8, _hoisted_41)\n ]))\n : _createCommentVNode(\"\", true),\n (__props.pageSection.optionalCoverImageURLs && __props.pageSection.optionalCoverImageURLs[2])\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_42, [\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.optionalCoverImageURLs[2]\n }, null, 8, _hoisted_43)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true),\n (__props.pageSection.sectionMemo && __props.pageSection._layoutStyleObject && (!__props.pageSection._layoutStyleObject?.isTitleOnly) && (!__props.pageSection._layoutStyleObject?.isOneLineTitle) )\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_44, [\n _createElementVNode(\"div\", _hoisted_45, [\n _cache[20] || (_cache[20] = _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 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(100% - 80px)\",\"border\":\"none\",\"resize\":\"none\",\"white-space\":\"pre-line\",\"padding\":\"10px 20px\"},\n innerHTML: __props.pageSection._cacheMemoHTML,\n title: __props.pageSection.sectionMemo\n }, null, 8, _hoisted_46)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ], 6)\n ], 44, _hoisted_3))\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, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, 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 = { class: \"uk-clearfix\" }\nconst _hoisted_4 = { class: \"la margin5 no-select text16 nowrap no-overflow ellipsis text-black bold\" }\nconst _hoisted_5 = { class: \"la margin5 no-select comment nowrap no-overflow ellipsis text-black-30\" }\nconst _hoisted_6 = {\n style: {\"position\":\"absolute\",\"bottom\":\"10px\",\"left\":\"10px\",\"right\":\"10px\",\"top\":\"110px\"},\n class: \"text-black-60 hover-overflow\"\n}\nconst _hoisted_7 = [\"onClick\"]\nconst _hoisted_8 = { class: \"la margin5 no-select text14 clickable hotLink nowrap no-overflow ellipsis\" }\nconst _hoisted_9 = {\n key: 0,\n class: \"ccc-color-primary\"\n}\nconst _hoisted_10 = [\"title\"]\nconst _hoisted_11 = { class: \"uk-clearfix text-black-60 margin5 comment\" }\nconst _hoisted_12 = [\"onClick\"]\nconst _hoisted_13 = {\n key: 1,\n class: \"\"\n}\nconst _hoisted_14 = [\"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\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-black-button mon-med-button inline-block\",\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickNewBlankPage()), [\"stop\",\"prevent\"]))\n }, [\n _cache[1] || (_cache[1] = _createElementVNode(\"i\", { class: \"ccc-icon-plus-circle2 margin5-lr\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Create\")), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, _toDisplayString(_ctx.$t(\"My_Sessions\")), 1),\n _createElementVNode(\"div\", _hoisted_5, [\n _cache[2] || (_cache[2] = _createElementVNode(\"i\", { class: \"ccc-icon-info\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"messages.MySessionIntro\")), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\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_8, [\n (_unref(UIS).currentUserContentPageGUID==pageItem._GUID)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9, [\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-bubble-dots3\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(pageItem.pageTitle), 1)\n ], 8, _hoisted_10),\n _createElementVNode(\"div\", _hoisted_11, [\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_12)\n ])\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_13, [\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-bubble-dots2\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(pageItem.pageTitle), 1)\n ], 8, _hoisted_14)\n ]))\n ])\n ], 8, _hoisted_7)), [\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, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, vShow as _vShow, withModifiers as _withModifiers, normalizeClass as _normalizeClass, withDirectives as _withDirectives, normalizeStyle as _normalizeStyle } 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\":\"24px\"}\n}\nconst _hoisted_2 = { class: \"uk-clearfix margin10\" }\nconst _hoisted_3 = { class: \"inline-block hotLink\" }\nconst _hoisted_4 = { class: \"inline-block\" }\nconst _hoisted_5 = {\n key: 0,\n class: \"uk-clearfix margin10\"\n}\nconst _hoisted_6 = { class: \"inline-block hotLink\" }\nconst _hoisted_7 = { class: \"inline-block\" }\nconst _hoisted_8 = { class: \"uk-clearfix margin10\" }\nconst _hoisted_9 = { class: \"inline-block hotLink\" }\nconst _hoisted_10 = { class: \"inline-block\" }\nconst _hoisted_11 = { class: \"inline-block hotLink\" }\nconst _hoisted_12 = { class: \"inline-block\" }\nconst _hoisted_13 = { class: \"inline-block\" }\nconst _hoisted_14 = { class: \"inline-block margin5-lr hotLink\" }\nconst _hoisted_15 = { class: \"inline-block\" }\n\nimport {\r\n TYPE_EVENT,\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 {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 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 pageColumnIndex: {\r\n type: Number,\r\n required: true\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 pageColumn: {\r\n type: Object as () => IFC_Page_Column,\r\n required: true\r\n },\r\n\r\n\r\n },\r\n methods: {},\r\n name: \"PageSectionMenu\",\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\nconst clickToggleStarPageSection = function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection._isStarred) {\r\n appUserContentManager.updatePageSection(\"\", xPageSection._GUID, {_isStarred: false});\r\n } else {\r\n appUserContentManager.updatePageSection(\"\", xPageSection._GUID, {_isStarred: true});\r\n }\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.Confirm2Remove_Header_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 clickConcludeGroupSections=function (xHeaderSection:IFC_Page_Section){\r\n appUserContentManager.addConclusion2Group(xHeaderSection);\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.refLink) {\r\n zCopiedText += \"\\n- Source\\n\" + xTargetPageSection.refLink + \"\\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\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 clickStartMovingSection = function (xSourcePageSection: IFC_Page_Section) {\r\n appUserContentManager.startEditingPageSection(xSourcePageSection, TYPE_INDEX_SIDEBAR.PAGE_SECTION_ORDER_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 _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (!__props.isReadOnly)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n style: _normalizeStyle([{\"z-index\":\"200\"}, \r\n (__props.pageSection.sectionType==_unref(TYPE_SECTION).NOTE_CARD)?'top:5px;right:10px;':''\r\n +(__props.pageSection.sectionType==_unref(TYPE_SECTION).HEADER)?'top:0px;right:0px;':''\r\n ]),\n class: \"rt\"\n }, [\n _withDirectives(_createElementVNode(\"div\", {\n class: _normalizeClass([\"rt margin5-lr hotLink\", {\r\n\r\n }]),\n onClick: _withModifiers(($event: any) => (1==1), [\"stop\",\"prevent\"])\n }, [\n _createVNode(_component_el_dropdown, {\n trigger: \"click\",\n class: \"text12 text-black-60\"\n }, {\n dropdown: _withCtx(() => [\n _createVNode(_component_el_dropdown_menu, { class: \"margin5 padding5\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_el_dropdown_item, { class: \"\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"inline-block\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (clickCopyPageSection(__props.pageSection)))\n }, [\n _createElementVNode(\"div\", _hoisted_3, [\n _cache[5] || (_cache[5] = _createElementVNode(\"div\", { class: \"inline-block\" }, [\n _createElementVNode(\"i\", {\n class: \"ccc-icon-paste\",\n style: {\"padding-top\":\"0px\"}\n })\n ], -1)),\n _createElementVNode(\"div\", _hoisted_4, _toDisplayString(_ctx.$t(\"Copy_To_Clipboard\")), 1)\n ])\n ])\n ]),\n _: 1\n })\n ]),\n (__props.pageSection.sectionType==_unref(TYPE_SECTION).NOTE_CARD)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createVNode(_component_el_dropdown_item, { class: \"\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (clickEditImage(__props.pageSection)))\n }, [\n _createElementVNode(\"div\", _hoisted_6, [\n _cache[6] || (_cache[6] = _createElementVNode(\"div\", { class: \"inline-block\" }, [\n _createElementVNode(\"i\", {\n class: \"ccc-icon-image2\",\n style: {\"padding-top\":\"0px\"}\n })\n ], -1)),\n _createElementVNode(\"div\", _hoisted_7, _toDisplayString(_ctx.$t(\"Find_Image\")), 1)\n ])\n ])\n ]),\n _: 1\n })\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_8, [\n _cache[9] || (_cache[9] = _createElementVNode(\"hr\", null, null, -1)),\n (__props.pageSection.sectionType==_unref(TYPE_SECTION).NOTE_CARD)\n ? (_openBlock(), _createBlock(_component_el_dropdown_item, {\n key: 0,\n class: \"\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (clickRemovePageSection($event,__props.pageSection,__props.isBackFaceMode)))\n }, [\n _createElementVNode(\"div\", _hoisted_9, [\n _cache[7] || (_cache[7] = _createElementVNode(\"div\", { class: \"inline-block\" }, [\n _createElementVNode(\"i\", {\n class: \"ccc-icon-bin4\",\n style: {\"padding-top\":\"0px\"}\n })\n ], -1)),\n _createElementVNode(\"div\", _hoisted_10, _toDisplayString(_ctx.$t(\"Remove_Section_Only\")), 1)\n ])\n ])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (__props.pageSection.sectionType==_unref(TYPE_SECTION).HEADER)\n ? (_openBlock(), _createBlock(_component_el_dropdown_item, {\n key: 1,\n class: \"\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"\",\n onClick: _cache[3] || (_cache[3] = ($event: any) => (clickRemovePageSectionsUnderThisHeader($event,__props.pageSection)))\n }, [\n _createElementVNode(\"div\", _hoisted_11, [\n _cache[8] || (_cache[8] = _createElementVNode(\"div\", { class: \"inline-block\" }, [\n _createElementVNode(\"i\", {\n class: \"ccc-icon-bin4\",\n style: {\"padding-top\":\"0px\"}\n })\n ], -1)),\n _createElementVNode(\"div\", _hoisted_12, _toDisplayString(_ctx.$t(\"Remove_Header_And_Sections\")), 1)\n ])\n ])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _cache[10] || (_cache[10] = _createElementVNode(\"div\", {\n class: \"el-dropdown-link\",\n style: {\"padding-bottom\":\"1px\"}\n }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-more2 img16 margin2-lr gly-rotate-90\" })\n ], -1))\n ]),\n _: 1\n })\n ], 512), [\n [_vShow, (!__props.isReadOnly)]\n ]),\n _createElementVNode(\"div\", {\n class: \"rt margin5-lr text-black-60\",\n onClick: _cache[4] || (_cache[4] = _withModifiers(($event: any) => (clickEditPageSection(__props.pageSection)), [\"stop\",\"prevent\"]))\n }, [\n _createElementVNode(\"div\", _hoisted_13, [\n _createElementVNode(\"div\", _hoisted_14, [\n _cache[11] || (_cache[11] = _createElementVNode(\"i\", {\n class: \"ccc-icon-pencil6 margin5-lr img16\",\n style: {\"padding-top\":\"0px\"}\n }, null, -1)),\n _createElementVNode(\"div\", _hoisted_15, _toDisplayString(_ctx.$t(\"Edit\")), 1)\n ])\n ])\n ])\n ], 4))\n : _createCommentVNode(\"\", true)\n ], 512)), [\n [_vShow, !_unref(UIS).ifLockingPageUI]\n ])\n}\n}\n\n})","import script from \"./PageSectionMenu.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PageSectionMenu.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, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, withModifiers as _withModifiers, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeStyle as _normalizeStyle, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"\",\n style: {}\n}\nconst _hoisted_2 = { class: \"\" }\nconst _hoisted_3 = {\n class: \"ca no-wrap no-overflow text-black-30\",\n style: {\"position\":\"absolute\",\"top\":\"10px\",\"left\":\"10px\",\"right\":\"10px\",\"height\":\"20px\",\"z-index\":\"99\"}\n}\nconst _hoisted_4 = { class: \"text12 inline-block hotLink\" }\nconst _hoisted_5 = { key: 0 }\nconst _hoisted_6 = {\n style: {\"z-index\":\"100\"},\n class: \"content-card uk-clearfix\"\n}\nconst _hoisted_7 = {\n class: \"margin10 padding10\",\n style: {}\n}\nconst _hoisted_8 = [\"id\"]\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 pageColumnIndex: {\r\n type: Number,\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\r\n pageColumn: {\r\n type: Object as () => IFC_Page_Column,\r\n required: true\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 const _component_PageSectionMenu = _resolveComponent(\"PageSectionMenu\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", {\n class: \"inline-block\",\n onClick: _cache[1] || (_cache[1] = _withModifiers(($event: any) => (clickReturnParentPageSection(__props.pageSection)), [\"stop\",\"prevent\"]))\n }, [\n _createElementVNode(\"div\", _hoisted_4, [\n (__props.pageSection._parentSectionGUID)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _cache[4] || (_cache[4] = _createElementVNode(\"i\", { class: \"ccc-icon-arrow-up8 img16 margin5-lr\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_unref(getParentPageSection)(__props.pageSection).sectionTitle), 1)\n ]))\n : (_openBlock(), _createElementBlock(\"div\", {\n key: 1,\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickReturnParentPageSection(__props.pageSection)), [\"stop\",\"prevent\"]))\n }, [\n _cache[5] || (_cache[5] = _createElementVNode(\"i\", { class: \"ccc-icon-arrow-up8 img16 margin5-lr\" }, null, -1)),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"Home\")), 1)\n ]))\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n (__props.pageSection.sectionType==_unref(TYPE_SECTION).NOTE_CARD)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"no-overflow lt\",\n style: _normalizeStyle([{\"will-change\":\"transform, opacity\"}, getPageSectionStyle(__props.pageSection)])\n }, [\n _createElementVNode(\"div\", _hoisted_7, [\n _createVNode(_component_PageSectionElement, {\n class: \"\",\n pageSection: __props.pageSection,\n isBackFaceMode: true,\n sectionCardStyle: 'text-align:left;',\n isEditingMode: false,\n onClickContinueWriting: _cache[2] || (_cache[2] = ($event: any) => (_ctx.clickContinueWriting(__props.pageSection))),\n onClickContinueListing: _cache[3] || (_cache[3] = ($event: any) => (clickContinueListing(__props.pageSection)))\n }, null, 8, [\"pageSection\"]),\n _createVNode(_component_PageSectionMenu, {\n isReadOnly: _unref(UIS).isSharingViewMode,\n isSelected: true,\n isBackFaceMode: true,\n pageColumn: __props.pageColumn,\n pageColumnIndex: __props.pageColumnIndex,\n pageSection: __props.pageSection\n }, null, 8, [\"isReadOnly\", \"pageColumn\", \"pageColumnIndex\", \"pageSection\"])\n ])\n ], 4))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]),\n _createElementVNode(\"hr\", {\n id: 'hr_'+__props.pageSection._GUID,\n class: \"margin10\"\n }, null, 8, _hoisted_8)\n ], 64))\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, createVNode as _createVNode, withKeys as _withKeys } 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: 2,\n class: \"inline-block text-black-30 bold\"\n}\nconst _hoisted_7 = {\n key: 1,\n style: {\"position\":\"absolute\",\"bottom\":\"10px\",\"left\":\"10px\",\"right\":\"10px\",\"top\":\"64px\"},\n class: \"text-black-60\"\n}\nconst _hoisted_8 = {\n key: 0,\n class: \"padding10\"\n}\nconst _hoisted_9 = {\n key: 0,\n class: \"uk-clearfix app-comment ca\"\n}\nconst _hoisted_10 = { class: \"inline-block app-comment margin5\" }\nconst _hoisted_11 = {\n key: 0,\n class: \"inline-block app-comment margin5\"\n}\nconst _hoisted_12 = {\n key: 1,\n class: \"uk-clearfix app-comment ca margin5\"\n}\nconst _hoisted_13 = {\n key: 1,\n class: \"lt\",\n style: {\"width\":\"80px\"}\n}\nconst _hoisted_14 = [\"onClick\"]\nconst _hoisted_15 = [\"src\"]\nconst _hoisted_16 = {\n key: 2,\n class: \"padding10 lt\",\n style: {\"width\":\"calc(100% - 100px)\"}\n}\nconst _hoisted_17 = {\n key: 0,\n class: \"uk-clearfix\"\n}\nconst _hoisted_18 = {\n class: \"uk-clearfix ca margin10 uk-animation-fast uk-animation-fade\",\n style: {}\n}\nconst _hoisted_19 = [\"src\"]\nconst _hoisted_20 = {\n key: 2,\n style: {\"width\":\"calc(100% - 55px)\",\"margin-left\":\"20px\"}\n}\nconst _hoisted_21 = { class: \"ellipsis inline-block margin10 width100\" }\nconst _hoisted_22 = {\n class: \"marginb10 ca width100\",\n style: {}\n}\nconst _hoisted_23 = { class: \"uk-clearfix text14 la\" }\nconst _hoisted_24 = { class: \"inline-block text-black bold\" }\nconst _hoisted_25 = {\n class: \"marginb10 ca width100\",\n style: {}\n}\nconst _hoisted_26 = { class: \"uk-clearfix text14 la\" }\nconst _hoisted_27 = { class: \"inline-block text-black bold\" }\nconst _hoisted_28 = {\n class: \"marginb10 ca width100\",\n style: {}\n}\nconst _hoisted_29 = { class: \"uk-clearfix text14 la\" }\nconst _hoisted_30 = { class: \"inline-block text-black bold\" }\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 = {\n key: 3,\n style: {\"width\":\"calc(100% - 55px)\",\"margin-left\":\"10px\"}\n}\nconst _hoisted_35 = { class: \"ellipsis inline-block margin10 width100\" }\nconst _hoisted_36 = {\n class: \"margin10 la width100 text-black\",\n style: {}\n}\nconst _hoisted_37 = {\n class: \"margin10 la width100 app-comment\",\n style: {}\n}\nconst _hoisted_38 = {\n key: 4,\n class: \"no-select app-comment\",\n style: {\"max-width\":\"640px\",\"min-width\":\"280px\"}\n}\nconst _hoisted_39 = { class: \"text12B margin10 text-black-30\" }\nconst _hoisted_40 = [\"onClick\"]\nconst _hoisted_41 = { class: \"uk-clearfix margin5-lr\" }\nconst _hoisted_42 = {\n key: 0,\n class: \"inline-block\"\n}\nconst _hoisted_43 = {\n key: 1,\n class: \"inline-block\"\n}\n\nimport {UIS} from \"@/codes/_10.sys/UICommittee\";\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) - 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 th 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\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 // * check reflink\r\n xEditingPageSection.refLink = nz(xEditingPageSection.refLink, \"\").trim();\r\n if (xEditingPageSection && xEditingPageSection.refLink && xEditingPageSection.refLink.indexOf(\"://\") < 0) {\r\n xEditingPageSection.refLink = \"https://\" + xEditingPageSection.refLink;\r\n }\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.refLink=xEditingPageSection.refLink;\r\n zPageSectionToSave.sectionMemo=xEditingPageSection.sectionMemo;\r\n appUserContentManager.saveEditingPageSection();\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 (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_SECTION_ORDER_EDITOR)\n ? (_openBlock(), _createElementBlock(\"h2\", _hoisted_6, _toDisplayString(_ctx.$t(\"Card_Order_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_7, [\n ((!_unref(UIS).isSharingViewMode) && __props.pageSection)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [\n (__props.pageSection.coverImageURL)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink margin5 mon-black-button 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_11, [\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_12, [\n _createElementVNode(\"div\", {\n class: \"inline-block hotLink margin5 mon-black-button 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_13, [\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_15)\n ], 8, _hoisted_14))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n (__props.pageSection)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_16, [\n (__props.pageSection.coverImageURL)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_17, [\n _cache[20] || (_cache[20] = _createElementVNode(\"hr\", null, null, -1)),\n _createElementVNode(\"div\", _hoisted_18, [\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_19)\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_20, [\n _createElementVNode(\"div\", _hoisted_21, [\n _createElementVNode(\"div\", _hoisted_22, [\n _createElementVNode(\"div\", _hoisted_23, [\n _createElementVNode(\"div\", _hoisted_24, _toDisplayString(_ctx.$t('Memo')), 1)\n ]),\n _createVNode(_component_el_input, {\n modelValue: _unref(UIS).currentEditingPageSection.sectionMemo,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => ((_unref(UIS).currentEditingPageSection.sectionMemo) = $event)),\n id: \"txtInputEditingSectionMemo\",\n resize: \"none\",\n rows: 10,\n placeholder: _ctx.$t('Memo'),\n onBlur: _cache[5] || (_cache[5] = ($event: any) => (blurInputText($event,_unref(UIS).currentEditingPageSection))),\n style: {\"width\":\"100%\"},\n type: \"textarea\"\n }, null, 8, [\"modelValue\", \"placeholder\"])\n ]),\n _cache[21] || (_cache[21] = _createElementVNode(\"div\", {\n class: \"\",\n style: {\"height\":\"32px\"}\n }, null, -1)),\n _createElementVNode(\"div\", _hoisted_25, [\n _createElementVNode(\"div\", _hoisted_26, [\n _createElementVNode(\"div\", _hoisted_27, _toDisplayString(_ctx.$t('Note_Title')), 1)\n ]),\n _createVNode(_component_el_input, {\n modelValue: _unref(UIS).currentEditingPageSection.sectionTitle,\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => ((_unref(UIS).currentEditingPageSection.sectionTitle) = $event)),\n id: 'inputTitle_'+__props.pageSection._GUID,\n rows: 1,\n resize: \"none\",\n onBlur: _cache[7] || (_cache[7] = ($event: any) => (blurInputText($event,_unref(UIS).currentEditingPageSection))),\n placeholder: _ctx.$t('Note_Title'),\n onKeydown: _cache[8] || (_cache[8] = _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 _withDirectives(_createElementVNode(\"div\", _hoisted_28, [\n _createElementVNode(\"div\", _hoisted_29, [\n _createElementVNode(\"div\", _hoisted_30, _toDisplayString(_ctx.$t('Note_Content')), 1)\n ]),\n _createVNode(_component_el_input, {\n modelValue: _unref(UIS).currentEditingPageSection.sectionBodyText,\n \"onUpdate:modelValue\": _cache[9] || (_cache[9] = ($event: any) => ((_unref(UIS).currentEditingPageSection.sectionBodyText) = $event)),\n resize: \"none\",\n rows: getNoteContentInputRows(),\n placeholder: _ctx.$t('Note_Content'),\n onBlur: _cache[10] || (_cache[10] = ($event: any) => (blurInputText($event,_unref(UIS).currentEditingPageSection))),\n style: {\"width\":\"100%\"},\n type: \"textarea\"\n }, null, 8, [\"modelValue\", \"rows\", \"placeholder\"])\n ], 512), [\n [_vShow, _unref(UIS).currentEditingPageSection.sectionType==_unref(TYPE_SECTION).NOTE_CARD]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_31, [\n _createElementVNode(\"div\", _hoisted_32, [\n _createElementVNode(\"div\", _hoisted_33, _toDisplayString(_ctx.$t('Note_RefLink')), 1)\n ]),\n _createVNode(_component_el_input, {\n modelValue: _unref(UIS).currentEditingPageSection.refLink,\n \"onUpdate:modelValue\": _cache[11] || (_cache[11] = ($event: any) => ((_unref(UIS).currentEditingPageSection.refLink) = $event)),\n id: 'inputRefLink_'+__props.pageSection._GUID,\n rows: 1,\n resize: \"none\",\n onBlur: _cache[12] || (_cache[12] = ($event: any) => (blurInputText($event,_unref(UIS).currentEditingPageSection))),\n placeholder: _ctx.$t('Note_RefLink'),\n onKeydown: _cache[13] || (_cache[13] = _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 ], 512), [\n [_vShow, _unref(UIS).currentEditingPageSection.sectionType==_unref(TYPE_SECTION).NOTE_CARD]\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true),\n ((_unref(UIS).isSharingViewMode)&&(_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_SECTION_TEXT_EDITOR))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_34, [\n _createElementVNode(\"div\", _hoisted_35, [\n _cache[22] || (_cache[22] = _createElementVNode(\"div\", {\n class: \"uk-clearfix\",\n style: {\"height\":\"16px\"}\n }, null, -1)),\n _createElementVNode(\"div\", _hoisted_36, [\n _createElementVNode(\"h3\", null, _toDisplayString(_unref(UIS).currentEditingPageSection.sectionTitle), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_37, [\n _createElementVNode(\"p\", null, _toDisplayString(_unref(UIS).currentEditingPageSection.sectionBodyText), 1)\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (_unref(UIS).currentIndexSideBarType==_unref(TYPE_INDEX_SIDEBAR).PAGE_SECTION_ORDER_EDITOR)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_38, [\n _createElementVNode(\"div\", _hoisted_39, _toDisplayString(_ctx.$t(\"messages.Move2NewPosition\")), 1),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(getMoveToPageSections(__props.pageSection), (posPagesection) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"text14 margin10 uk-clearfix text-black-60\",\n key: posPagesection._GUID\n }, [\n _createElementVNode(\"div\", {\n class: \"hotLink\",\n style: {},\n onClick: _withModifiers(($event: any) => (clickMoveSectionTo(__props.pageSection,posPagesection)), [\"stop\",\"prevent\"])\n }, [\n _createElementVNode(\"div\", _hoisted_41, [\n _withDirectives(_createElementVNode(\"div\", { class: \"bold text12B text-black\" }, \" # \" + _toDisplayString(posPagesection.sectionTitle), 513), [\n [_vShow, posPagesection.sectionType==_unref(TYPE_SECTION).HEADER ]\n ]),\n _withDirectives(_createElementVNode(\"div\", {\n class: _normalizeClass([\"text12B\", {'ccc-color-primary':(posPagesection._GUID==__props.pageSection._GUID)}])\n }, [\n (posPagesection._GUID==__props.pageSection._GUID)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_42, _cache[23] || (_cache[23] = [\n _createElementVNode(\"i\", { class: \"img1 ccc-icon-truck margin5-lr\" }, null, -1)\n ])))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_43, \"##\")),\n _createTextVNode(\" \" + _toDisplayString(posPagesection.sectionTitle), 1)\n ], 2), [\n [_vShow, posPagesection.sectionType==_unref(TYPE_SECTION).NOTE_CARD ]\n ])\n ])\n ], 8, _hoisted_40)\n ]))\n }), 128))\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 { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, unref as _unref, vShow as _vShow, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, withModifiers as _withModifiers, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, resolveDirective as _resolveDirective } from \"vue\"\n\nconst _hoisted_1 = {\n id: \"divRefInfoBar0\",\n class: \"no-select\",\n style: {\"position\":\"absolute\",\"top\":\"48px\",\"left\":\"10px\",\"bottom\":\"10px\",\"right\":\"10px\"}\n}\nconst _hoisted_2 = {\n key: 0,\n class: \"uk-clearfix\"\n}\nconst _hoisted_3 = { class: \"la text14 text-black bold\" }\nconst _hoisted_4 = { class: \"uk-clearfix text12B text-black-30 ca margin10\" }\nconst _hoisted_5 = { class: \"ca\" }\nconst _hoisted_6 = {\n key: 1,\n class: \"uk-clearfix\"\n}\nconst _hoisted_7 = { class: \"lt text14 text-black bold\" }\nconst _hoisted_8 = {\n key: 0,\n class: \"rt margin5-lr\"\n}\nconst _hoisted_9 = {\n class: \"inline-block text-black-60 hotLink\",\n style: {\"line-height\":\"19px\"}\n}\nconst _hoisted_10 = { class: \"inline-block\" }\nconst _hoisted_11 = { class: \"inline-block text-black-30\" }\nconst _hoisted_12 = {\n id: \"divStarredItemList\",\n class: \"hover-overflow\",\n style: {\"position\":\"absolute\",\"top\":\"32px\",\"left\":\"0px\",\"bottom\":\"0px\",\"right\":\"0px\"}\n}\nconst _hoisted_13 = {\n key: 0,\n class: \"no-select uk-animation-fast uk-animation-slide-left\"\n}\n\nimport {TYPE_AI_ACTION, TYPE_INDEX_SIDEBAR, TYPE_INPUT_COMMAND} 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, 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\n\r\ndeclare var window: any;\r\ndeclare var cwrn: 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 $: 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: 'divRefInfoBar',\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: IFC_Page_Section) {\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}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n ...__default__,\n setup(__props) {\n\r\n\r\nconst getHostName = appSERPManager.getHostName;\r\n\r\n\r\nlet getSectionFlagColorStyle = appUserContentManager.getSectionFlagColorStyle;\r\nlet getSectionHeaderStyle = appUserContentManager.getSectionHeaderStyle;\r\n\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\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 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 th 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 // ** new image URL\r\n if (zNewCoverInputLow.startsWith(\"https://\")) {\r\n let zPageSectionGUID = xEditingPageSection._GUID;\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 }, 100);\r\n\r\n }\r\n // ** new image keywords\r\n else {\r\n xEditingPageSection.coverImageURL = \"\";\r\n await appUserContentManager.addSERP2PageSection(xEditingPageSection, {q: zNewCoverInput, type: \"images\"});\r\n xEditingPageSection._isImageNeeded = true;\r\n appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\r\n }\r\n}\r\n\r\nconst clickOpenAllStarredItems = function () {\r\n if (!UIS.currentPageData) return;\r\n let zStarredSectionGUIDs = nz(UIS.currentPageData.starredSectionGUIDs, []);\r\n _.each(zStarredSectionGUIDs, function (xStarredSectionGUID: GUID_TYPE) {\r\n if (xStarredSectionGUID) {\r\n let zPageSection = appUserContentManager.getSection(UIS.currentUserContentPageGUID, xStarredSectionGUID);\r\n if (zPageSection && zPageSection.refLink) {\r\n window.open(zPageSection.refLink, '_blank');\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 onStarredSectionGUIDOrderChange = function (event) {\r\n // Remove item from old index\r\n let item = UIS.currentPageData.starredSectionGUIDs.splice(event.oldIndex, 1)[0];\r\n // Insert it at new index\r\n UIS.currentPageData.starredSectionGUIDs.splice(event.newIndex, 0, item);\r\n appUserContentManager.savePageData(UIS.currentUserContentPageGUID);\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 const _component_PageSectionRefItem = _resolveComponent(\"PageSectionRefItem\")!\n const _directive_sortable = _resolveDirective(\"sortable\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_ctx.currentPageData && _ctx.currentPageData.starredSectionGUIDs && (!_ctx.currentPageData.starredSectionGUIDs.length))\n ? _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _cache[2] || (_cache[2] = _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_4, _toDisplayString(_ctx.$t(\"messages.OPIntroStarringItem\")), 1),\n _withDirectives(_createElementVNode(\"div\", _hoisted_5, _cache[3] || (_cache[3] = [\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_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n _cache[4] || (_cache[4] = _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 (_ctx.currentPageData.starredSectionGUIDs.length>1)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [\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: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickOpenAllStarredItems()), [\"stop\",\"prevent\"]))\n }, \"  \" + _toDisplayString(_ctx.$t(\"messages.Confirm2OpenAllStarredItems\")) + \"  \", 1)\n ]),\n _: 1\n })\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _cache[5] || (_cache[5] = _createElementVNode(\"span\", {\n class: \"el-dropdown-link text-black-60 hotLink\",\n style: {\"line-height\":\"19px\"}\n }, [\n _createElementVNode(\"i\", { class: \"ccc-icon-new-tab2 text16\" })\n ], -1))\n ]),\n _: 1\n })\n ]))\n : _createCommentVNode(\"\", true),\n _withDirectives(_createElementVNode(\"div\", {\n class: \"lt text12B text-black margin10-lr\",\n style: {\"padding-top\":\"2px\"},\n onClick: _cache[1] || (_cache[1] = _withModifiers(($event: any) => (_unref(UIS).currentIndexSideBarType=_unref(TYPE_INDEX_SIDEBAR).MEMO_VIEW), [\"stop\",\"prevent\"]))\n }, [\n _createElementVNode(\"div\", _hoisted_9, [\n _cache[6] || (_cache[6] = _createElementVNode(\"i\", { class: \"ccc-icon-file-empty gly-rotate-180 text12B margin5-lr\" }, null, -1)),\n _createElementVNode(\"div\", _hoisted_10, _toDisplayString(_ctx.$t(\"Memo_View\")), 1),\n _createElementVNode(\"div\", _hoisted_11, \" (\" + _toDisplayString(_ctx.memoCount) + \")\", 1)\n ])\n ], 512), [\n [_vShow, _ctx.memoCount>0]\n ]),\n _createElementVNode(\"div\", _hoisted_12, [\n _withDirectives((_openBlock(), _createElementBlock(\"div\", { onEnd: onStarredSectionGUIDOrderChange }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.currentPageData.starredSectionGUIDs, (starredSectionGUID) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"\",\n key: starredSectionGUID\n }, [\n (starredSectionGUID && getPageSection(starredSectionGUID))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_13, [\n _createVNode(_component_PageSectionRefItem, {\n pageSection: getPageSection(starredSectionGUID)\n }, null, 8, [\"pageSection\"])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n }), 128))\n ], 32)), [\n [_directive_sortable]\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","import script from \"./divRefInfoBar.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./divRefInfoBar.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, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, normalizeStyle as _normalizeStyle, withModifiers as _withModifiers, createTextVNode as _createTextVNode, vShow as _vShow, withDirectives as _withDirectives } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"uk-clearfix no-select\"\n}\nconst _hoisted_2 = [\"title\"]\nconst _hoisted_3 = { class: \"uk-clearfix\" }\nconst _hoisted_4 = {\n class: \"lt\",\n style: {\"padding-top\":\"6px\"}\n}\nconst _hoisted_5 = { class: \"uk-clearfix la text12B no-wrap no-overflow\" }\nconst _hoisted_6 = {\n key: 0,\n class: \"lt\"\n}\nconst _hoisted_7 = [\"src\"]\nconst _hoisted_8 = {\n key: 1,\n class: \"lt\"\n}\nconst _hoisted_9 = [\"src\"]\nconst _hoisted_10 = {\n class: \"text-black lt no-overflow no-wrap\",\n style: {\"width\":\"calc(100% - 50px)\",\"margin-top\":\"4px\",\"margin-right\":\"2px\",\"margin-left\":\"2px\"}\n}\nconst _hoisted_11 = [\"title\"]\nconst _hoisted_12 = { class: \"inline-block la text12B\" }\nconst _hoisted_13 = {\n class: \"lt text-black-60 can-select text12B no-wrap no-overflow\",\n style: {\"margin\":\"0px 2px 2px 6px\",\"font-weight\":\"normal\"}\n}\nconst _hoisted_14 = {\n key: 0,\n class: \"uk-clearfix la no-select text12B text-black-60 margin10\"\n}\nconst _hoisted_15 = { class: \"uk-clearfix margin10-lr\" }\n\nimport {\r\n TYPE_AI_ACTION,\r\n TYPE_FILTER_CODE,\r\n TYPE_INDEX_SIDEBAR,\r\n TYPE_INPUT_COMMAND,\r\n TYPE_NOTE_SOURCE\r\n} from \"@/codes/_20.def/_modDataDict\";\r\nimport {IFC_ResultsFromSERP} from \"@/codes/_20.def/dataTypes\";\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_UserContentManager\r\n} from \"@/codes/_20.def/managerIFs\";\r\nimport {IFC_Page_Data, 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 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\nvar appUserContentManager: IFC_UserContentManager = window.appUserContentManager;\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\r\n },\r\n\r\n computed: {\r\n TYPE_SECTION() {\r\n return TYPE_SECTION\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\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, xHeaderSection: IFC_Page_Section) {\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\n\r\nconst clickRefItem = function (xPageSection: IFC_Page_Section) {\r\n if (!xPageSection) return;\r\n if (!xPageSection._GUID) return;\r\n if (xPageSection._GUID == appUserContentManager.getCurrentPageColumnParentPageSectionGUID()) {\r\n //\r\n } else {\r\n appUserContentManager.extendPageColumn(UIS.currentUserContentPageColumnIndex, xPageSection._GUID);\r\n }\r\n}\r\n\r\n\r\nconst getPageSectionsForStarredView = function (xItemType?: string) {\r\n let zPage: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n let zResPageSections: IFC_Page_Section[] = [];\r\n let zItemType = nz(xItemType, \"link\");\r\n let zIsLinkItem = (zItemType == \"link\");\r\n let zIsTopicItem = (zItemType == \"topic\");\r\n\r\n if (zPage && zPage.pageSections) {\r\n\r\n let zCurrentPageSections: IFC_Page_Section[] = zPage.pageSections;\r\n\r\n\r\n // * get starred bookmarks\r\n _.each(zCurrentPageSections, function (xPageSection: IFC_Page_Section) {\r\n if (!xPageSection._isStarred) return;\r\n if (zIsLinkItem && (!xPageSection.refLink)) return;\r\n if (zIsTopicItem && (xPageSection.refLink)) return;\r\n zResPageSections.push(xPageSection);\r\n });\r\n\r\n }\r\n\r\n return zResPageSections;\r\n}\r\n\r\nconst checkIfRefItemOpenInPageColumn = function (xPageSection: IFC_Page_Section): boolean {\r\n if (!xPageSection) return false;\r\n if (!xPageSection._GUID) return false;\r\n\r\n let zCurrentPageColumnParentPageSectionGUID = appUserContentManager.getCurrentPageColumnParentPageSectionGUID();\r\n if (!zCurrentPageColumnParentPageSectionGUID) return false;\r\n\r\n if (zCurrentPageColumnParentPageSectionGUID != xPageSection._GUID) return false;\r\n\r\n return true;\r\n}\r\n\r\nconst checkIfRefItemSelectedInPageColumn = function (xPageSection: IFC_Page_Section): boolean {\r\n if (!xPageSection) return false;\r\n if (!xPageSection._GUID) 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!=xPageSection._GUID) return false;\r\n\r\n return true;\r\n}\r\n\r\nconst getPageSectionsForRefView = function (xHeaderPageSection: IFC_Page_Section) {\r\n let zPage: IFC_Page_Data = nz(appUserContentManager.allUserContentPages[UIS.currentUserContentPageGUID], {});\r\n let zResPageSections: IFC_Page_Section[] = [];\r\n\r\n if (zPage && zPage.pageSections) {\r\n\r\n let zCurrentPageSections: IFC_Page_Section[] = zPage.pageSections;\r\n\r\n // * get excluded page sections\r\n let zExcludingPageSectionsUnderThisHeader: IFC_Page_Section[] = [];\r\n _.each(zCurrentPageSections, function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection._headerSectionGUID != xHeaderPageSection._GUID) return;\r\n if (xPageSection._isStarred) return zExcludingPageSectionsUnderThisHeader.push(xPageSection);\r\n if (xPageSection.flagCode && (xPageSection.flagCode != \"Default\")) return zExcludingPageSectionsUnderThisHeader.push(xPageSection);\r\n });\r\n\r\n // * build maps for excluded page sections\r\n let zExcludingRefLinkMap = {};\r\n let zExcludingGUIDMap = {};\r\n _.each(zExcludingPageSectionsUnderThisHeader, function (xPageSection: IFC_Page_Section) {\r\n zExcludingRefLinkMap[xPageSection.refLink] = true;\r\n zExcludingGUIDMap[xPageSection._GUID] = true;\r\n });\r\n\r\n // * filter excluded sections\r\n _.each(zCurrentPageSections, function (xPageSection: IFC_Page_Section) {\r\n\r\n if (xPageSection._headerSectionGUID != xHeaderPageSection._GUID) return;\r\n if (zExcludingGUIDMap[xPageSection._GUID]) return;\r\n if (zExcludingRefLinkMap[xPageSection.refLink]) return;\r\n if (!xPageSection.refLink) return;\r\n\r\n zResPageSections.push(xPageSection);\r\n });\r\n\r\n }\r\n\r\n return zResPageSections;\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 clickBrowse = function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection && xPageSection.refLink) {\r\n window.open(xPageSection.refLink, '_blank').focus();\r\n }\r\n}\r\n\r\nconst clickUnstar = function (xPageSection: IFC_Page_Section) {\r\n if (xPageSection && xPageSection._GUID) {\r\n appUserContentManager.updatePageSectionStar(UIS.currentUserContentPageGUID, xPageSection._GUID, false);\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 (getSubPageSectionCount(__props.pageSection) || (!_unref(UIS).isSharingViewMode))\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"uk-clearfix no-select no-overflow rc2 padding2\", {'nav-card':\r\n (\r\n checkIfRefItemOpenInPageColumn(__props.pageSection)\r\n ||\r\n checkIfRefItemSelectedInPageColumn(__props.pageSection)\r\n )}]),\n style: _normalizeStyle(\r\n _unref(getSectionFlagColorStyle)(__props.pageSection,'titleStyle')\r\n +';')\n }, [\n _createElementVNode(\"div\", {\n class: \"uk-clearfix la hotLink no-select text14\",\n style: {\"height\":\"32px\"},\n title: __props.pageSection.sectionTitle+'\\n\\n'+__props.pageSection.sectionBodyText+'\\n\\n'+__props.pageSection.refLink,\n onClick: _cache[1] || (_cache[1] = _withModifiers(($event: any) => (clickRefItem(__props.pageSection)), [\"stop\",\"prevent\"]))\n }, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"i\", {\n class: _normalizeClass([\"img24 rc99 ca text14 padding2 text-black\", _unref(getSectionFlagColorStyle)(__props.pageSection,'iconClass')])\n }, null, 2)\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n (__props.pageSection.refLink && (__props.pageSection.flagCode!=_unref(TYPE_FILTER_CODE).BLUE))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n _createElementVNode(\"img\", {\n src: _unref(getFavIconURL)(__props.pageSection.refLink),\n class: \"img32 rc99 img-border\"\n }, null, 8, _hoisted_7)\n ]))\n : _createCommentVNode(\"\", true),\n (__props.pageSection.coverImageURL && (__props.pageSection.flagCode==_unref(TYPE_FILTER_CODE).BLUE))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [\n _createElementVNode(\"img\", {\n src: __props.pageSection.coverImageURL,\n style: {\"object-fit\":\"cover\",\"object-position\":\"center\"},\n class: \"img32 rc99 img-border\"\n }, null, 8, _hoisted_9)\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", {\n class: \"text12B no-wrap no-overflow hotLink inline-block padding2 margin5-lr\",\n style: _normalizeStyle(_unref(getSectionFlagColorStyle)(__props.pageSection,'titleStyle'))\n }, _toDisplayString(__props.pageSection.sectionTitle) + \" \" + _toDisplayString((__props.pageSection.sectionSourceType == _unref(TYPE_NOTE_SOURCE).WEB_EXA) ? '*' : ''), 5),\n (__props.pageSection.sectionMemo)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"inline-block la hotLink no-select text12B inline-block padding2 memo-back no-wrap no-overflow rc4\",\n title: __props.pageSection.sectionMemo,\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (clickRefItem(__props.pageSection)), [\"stop\",\"prevent\"]))\n }, [\n _createElementVNode(\"div\", _hoisted_12, [\n _createElementVNode(\"div\", _hoisted_13, _toDisplayString(__props.pageSection.sectionMemo), 1)\n ])\n ], 8, _hoisted_11))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ])\n ], 8, _hoisted_2),\n (checkIfRefItemOpenInPageColumn(__props.pageSection))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_14, [\n _withDirectives(_createElementVNode(\"div\", _hoisted_15, [\n _createElementVNode(\"div\", {\n class: \"ca hotLink rt\",\n onClick: _cache[2] || (_cache[2] = _withModifiers(($event: any) => (clickUnstar(__props.pageSection)), [\"stop\",\"prevent\"]))\n }, [\n _cache[6] || (_cache[6] = _createElementVNode(\"i\", { class: \"ccc-icon-star-empty3\" }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"Unstar\")), 1)\n ]),\n _cache[10] || (_cache[10] = _createElementVNode(\"div\", { class: \"ca hotLink rt margin5-lr text-black-30 img16\" }, null, -1)),\n _withDirectives(_createElementVNode(\"div\", {\n class: \"ca hotLink rt margin10-lr\",\n onClick: _cache[3] || (_cache[3] = _withModifiers(($event: any) => (clickEditPageSection(__props.pageSection)), [\"stop\",\"prevent\"]))\n }, [\n _cache[7] || (_cache[7] = _createElementVNode(\"i\", {\n class: \"ccc-icon-pencil6\",\n style: {\"padding-top\":\"0px\"}\n }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"Edit\")), 1)\n ], 512), [\n [_vShow, !_unref(UIS).isSharingViewMode]\n ]),\n _createElementVNode(\"div\", {\n class: \"ca hotLink lt\",\n onClick: _cache[4] || (_cache[4] = _withModifiers(($event: any) => (clickBack(__props.pageSection)), [\"stop\",\"prevent\"]))\n }, [\n _cache[8] || (_cache[8] = _createElementVNode(\"i\", { class: \"ccc-icon-arrow-left8\" }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"Back\")), 1)\n ]),\n _cache[11] || (_cache[11] = _createElementVNode(\"div\", { class: \"ca hotLink lt margin5-lr text-black-30 img16\" }, null, -1)),\n (__props.pageSection.refLink)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"ca hotLink lt margin10-lr\",\n onClick: _cache[5] || (_cache[5] = _withModifiers(($event: any) => (clickBrowse(__props.pageSection)), [\"stop\",\"prevent\"]))\n }, [\n _cache[9] || (_cache[9] = _createElementVNode(\"i\", { class: \"ccc-icon-new-tab2\" }, null, -1)),\n _createTextVNode(\"  \" + _toDisplayString(_ctx.$t(\"Open\")), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ], 512), [\n [_vShow, !_unref(UIS).isSharingViewMode]\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ], 6))\n : _createCommentVNode(\"\", true)\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\";\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 InsertObjectMenu from \"@/codes/_40.view/menu/InsertObjectMenu.vue\";\r\nimport SysLanguageMenu from \"@/codes/_40.view/menu/SysLanguageMenu.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\n\r\nconst vpanSysFuncBar = createApp(panSysFuncBar);\r\nvpanSysFuncBar.component('PageOutputMenu', PageOutputMenu);\r\nvpanSysFuncBar.component('SysLanguageMenu', SysLanguageMenu);\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('SysPromptEditor', SysPromptEditor);\r\nvPanSideBar.component('PageMemoView', PageMemoView);\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('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// * panSubscriptionRequest\r\nimport panSubscriptionRequest from \"@/codes/_40.view/panel/panSubscriptionRequest.vue\";\r\n\r\nconst vPanSubscriptionRequest = createApp(panSubscriptionRequest);\r\nvPanSubscriptionRequest.use(i18n).use(ElementPlus).mount('#panSubscriptionRequest');\r\n\r\n// ** divCommandInputs\r\n// import divCommandInputs from \"@/codes/_40.view/x_divCommandInputs.vue\";\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 PageSectionMenu from \"@/codes/_40.view/menu/PageSectionMenu.vue\";\r\nimport PageSectionView from \"@/codes/_40.view/compo/PageSectionView.vue\";\r\nimport PageSectionEditor from \"@/codes/_40.view/compo/PageSectionEditor.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 divRefInfoBar from \"@/codes/_40.view/divRefInfoBar.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('PageSectionMenu', PageSectionMenu);\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// ** divRefInfoBar\r\nimport PageSectionSERPView from \"@/codes/_40.view/compo/PageSectionSERPView.vue\";\r\nimport PageSectionAIRefView from \"@/codes/_40.view/compo/PageSectionAIRefView.vue\";\r\nimport PageSectionRefItem from \"@/codes/_40.view/compo/PageSectionRefItem.vue\";\r\n\r\nconst vDivRefInfoBar = createApp(divRefInfoBar);\r\n// vDivRefInfoBar.component('PageSectionSERPView', PageSectionSERPView);\r\n// vDivRefInfoBar.component('PageSectionAIRefView', PageSectionAIRefView);\r\nvDivRefInfoBar.component('PageSectionRefItem', PageSectionRefItem);\r\nvDivRefInfoBar.component('PageSectionElement', PageSectionElement);\r\nvDivRefInfoBar.use(i18n).use(ElementPlus).use(VueSortable).mount('#divRefInfoBar');\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\tid: moduleId,\n\t\tloaded: false,\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// Flag the module as loaded\n\tmodule.loaded = true;\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); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","// 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[\"webpackChunkDiveDeck_AI\"] = self[\"webpackChunkDiveDeck_AI\"] || [];\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__(3816); })\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_NOTE_SOURCE","TYPE_INPUT_COMMAND","TYPE_INPUT_SPECIAL_MODE","TYPE_CHATTING_PREVIEW","TYPE_ID_LOCAL_APP_DB","TYPE_SUBSCRIPTION_REQ","TYPE_GUIDE_INPUT_TAB","TYPE_INSERT_OBJECT","TYPE_PROP","zVer","appUserStorage","emitter","mitt","SYSS","sysSettings","verNum","isTestEnv","nz","toLowerCase","API_ADDR","PROJECT_NAME","EALIC6_ADDR","Params","URLSearchParams","search","baseUrl","protocol","host","pathname","paramSharingID","get","sharingID4View","showMyLicPage","showBYOKeyPage","paramPreSubID","localStorage","history","replaceState","zUserEmail","zUserName","USER_NAME","zPayURL","paramPay4PlusSub","BUY_PLAN_PLUSY_URL","BUY_PLAN_PLUSM_URL","encodeURIComponent","clog","LangSettings","DEFALUT_LANG_CODE","KEY_USER_LANG_CODE","LangCodeNameMap","text","name","getBrowserLangCode","zLanguageCode","navigator","language","split","saveLangCode","xLangCode","setItem","getSavedLangCode","getItem","getInitLangCode","detectedLangCode","cerr","checkIfDefaultLangCode","tolowerCase","langSettings","UIP0","UIP","reactive","UIS0","currentPageData","currentUserContentPageGUID","selectedGroupHeaderTitleInPageColumn0","currentUserContentPageColumnIndex","currentIndexSideBarType","SIDEBAR_CLOSED","startSectionIndex4Rendering","endSectionIndex4Rendering","generatingTempLayoutCode","isFollowupOnlyMode","ifLockingPageUI","isAIGenerating","ifPageColumnScrollToBottom","ifChattingUI","currentChattingMessage","currentReturnMessage","ifGoBackAnimation","isSharingViewMode","isFreePlan","isOutOfCreditsDialogNeeded","subscriptionReqType","SHOW_OPTIONS","isMiniScreenMode","sideBarWidth","resultPageWidth","rightMenuBarWidth","leftMenuBarWidth","filterCode","selectedTextContent","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","resultPageHeight","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","defaultNewPageData","defaultUserGuildTopics","appUserManager","currentUserInfo","initializeUserSession","async","onUserAuthChecked","currentSubscriptionStatus","UNKNOWN","listener","xListenedResult","payload","event","zEventName","zUserInfo","attributes","username","letUserJumpIn","letUserSignOutSync","reload","Hub","listen","email","getUserInfo","xUserInfo","zEndPointURL","projectName","fetch","method","headers","JSON","stringify","response","json","userinfo","subEndDT","zSubEndDate","Date","zNow","EXPIRED","VALID","e","NOT_FOUND","catch","error","zPreSubID","preSubID","EAK","zEAK","getEncryptedBYOAPIKey","BYO_FREE","zLSKeys","keys","each","xLSKey","endsWith","clearObject","letUserActivateByLicCode","xLicCode","licCode","appLicenseProviderManager","zResObj","getFromLicRes_Gumroad","licResData","isOK","alert","saveBYOAPIKey","xRawAPIKey","zPrefix","zEncryptedAPIKey","miniEncrypt","checkIsPaidSubPlanUser","subPlanType","Plus","Pro","Ultra","Lite","checkIsApprovedSubPlanUser","isApprovedSubPlan","checkIsOutOfCredits","zCredits","credits","OUT_OF_CREDITS","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","extractMessageTextFromAIResponse","xResponseObject","zResponseObject","choices","message","content","delta","runAITranslateOperation","xSourceText","zAIActionType","ForTranslatingNote","sysMessageKey1","sysMessageKey2","sysEvidence","userMessages","modelType","zAIProxyServerURL","AI_PROXY_SERVER_URL_PROD","AI_PROXY_SERVER_URL_TEST","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","AI_GEN_STRAT","FINISHED","AI_GENERATING","ForFollowUps","AI_GEN_FOLLOWUP_DONE","ForPoints","AI_GEN_POINTS_DONE","ForBreakdown","AI_GEN_BREAKDOWN_DONE","ForConclusion","AI_GEN_CONCLUSION_DONE","askAIForMarkdownReply","xAskOptions","zGUID","zAskOptions","zAppPromptProvider","zAIRoleMessage","zExcludingContentString","zIncludingContextString","zExistingContentString","zNearestParentTextContentString","nearestParentContentTextString","zSERPContextString","zUserMessage","zAppPrompt","zAIRequestOptions","replyMarkdownSystemPrompt","askAIForTextOptionsReply","replyTextOptionsSystemPrompt","getSERPResult","xSERPOptions","zResSERP","zSERPOptions","givenWebsiteURL","sites","replyMessage","parseSERPResItems2ReplyMessage","res","getEXAResult","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","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","setupPageSectionLayoutStyleByTemplate","xPageSectionArray","zResStyle","zLayoutOneByOneStyleArray","sectionType","HEADER","zResTitleStyle","_cacheLayoutStyle","zParentSectionGUID","_parentSectionGUID","zSectionIndex","zIsSectionFound","zLayoutStyleObject","_headerSectionGUID","xCheckingPageSection","zLayoutCode","DEFAULT","find","_layoutStyleObject","zAnimationDelay","integer","getTopicsFromTemplate","xNum","zRes","xSampleTopicData","pick","runProcInLocalDB","xCallbackProc","DB_NAME","STORE_NAME","dbReq","indexedDB","open","onupgradeneeded","db","target","createObjectStore","onsuccess","tx","transaction","store","objectStore","oncomplete","close","xID","xDataObj","zAnyData","put","deleteFromLocalDB","delete","reqDBOP","loadAllDBKeys","getAllKeys","shareContentPage","xPageInfo","xSharingID","zPageInfo","zSharingData","sharingID","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","refLink","messages","en","placeholder","fr","i18n","createI18n","locale","editingPageSection","insertPageSectionsToPosition","xPageGUID","xPageSectionsToInsert","xPositionIndex","xParentPageSectionGUID","zPageItem","zAllPageSections","zPageSectionsToInsert","zPositionIndex","zParentPageSectionGUID","xPageSectionToInsert","splice","savePageData","zFirstPageSectionGUID","scrollPageTo","selectPageSection","movePageSectionsAfterTargetPageSection","xSourcePageSection","xTargetPageSection","zSourcePageSectionIndex","findIndex","zTargetPageSectionIndex","moveElementAfter","upsertPageSectionsFromAIPlusSearch","xHeaderGUID","zPageSectionGUIDs2Translate","fromAISessionGUID","systemMessage","zExcludingContentArray","getSectionTitles4AIAction","zIncludingContextArray","getPageColumnTitles4AIAction","getCurrentPageColumnParentPageSectionGUID","zParentPageSection","SERPContextString","zFollowupQuestions","followupQuestions","zSERPReturnDataArray","SERP_START","zCallingQueryFuncs","xFollowupQuestion","zFollowupQuestion","type","zResultFromSERPER_A","zResultFromSERPER_B","zResultFromSERPER_C","zResultFromSERPER_D","zResultFromSERPER_E","Promise","all","xSERPReturnData","zPageSections2Insert","zSelectedPageSectionIndex","getCurrentSelectedPageSectionIndex","zUniqLinks","zUniqTitles","xIndex","zTitle","zNewPageSectionGUID","sectionSourceType","SERP_DONE","upsertPageSectionsFromExtSearch","xExtOptions","zExtOptions","zResultFromSERPERA","zResultFromSERPERB","upsertPageSectionsFromAIReply","upsertPageSectionsByMoreLikeThis","ForMoreLikeThis","zHeaderPageSection","zTopicTitle","zTopicContent","upsertFollowupsFromAskAI","upsertPageSectionsFromSERPQueries","xSERPOptionArray","upsertPageByCopyingSourcePage","xSourcePage","zSourcePageItem","xSection","zOldPageSections","insertBlankPage","xTargetPageGUID","xParentSectionGUID","zDummyPageSections","zNewPageGUID","pageTitle","insertDummyPage","zSectionNum","i","address","paragraph","addSERP2PageSection","zSERP4ImageOptions","zProcessingPageSection","_isImageNeeded","zResSERPData4Images","zSearchedImages","zSearchedImageInfo","optionalCoverImageURLs","optionalCoverImageSourceURLs","MAX_OPTIONAL_IMAGE_NUM","xSearchedImageItem","xImageIndex","addSummary2PageSection","xSummaryOptions","zPageSection","sectionSummary","SUMMARY_NA","zSummarizedObj","zSummarizedText","updatePageSection","image","SUMMARY_DONE","addConclusion2Group","xHeaderPageSection","xConclusionOptions","zSourceText","zPageSections","zSourceCount","YELLOW","appCommandManager","currentHeaderGUID","translatePageSectionsByGUIDs","xSourcePageSectionGUIDS","zLangCode","xSourcePageSectionGUID","zPageSection2Translate","zTranslatedText","zTrnsTilte","resetPageColumn","xCurrentPageCoulmnIndex","zCurrentPageCoulmnIndex","zPageColumns","PAGE_COLUMN_RESET","xSelectedPageSectionGUID","xBlockType","zDivPageColumn","getElementById","scrollTo","top","behavior","targetPageSectionElement","scrollIntoView","block","extendPageColumn","xCurrentPageSectionGUID","zCurrentPageSectionGUID","zCurrentPageColumnIndex","zSameSectionColumnIndex","zI","zCurrentPageColumn","zNewPageColum","PAGE_COLUMN_NEW","insertBlankSection","xPageSectionIndex","zTargetPageGUID","zNewPageSection","xHeaderPageSectionGUID","zSelectedPageSectionGUID","zPageColumn","currentSelectedHeaderPageSectionGUID","HEADER_OPEN_STATE_CHANGED","zSelectedPageSection","xPageSectionGUID","zSectionGUID","startEditingPageSection","xEditingPageSection","xEditorType","PAGE_SECTION_TEXT_EDITOR","currentEditingPageSection","askAI4OnePageSection","saveEditingPageSection","xTargetPageSectionGUID","xUpdatingSectionPart","zTargetPageSectionGUID","updatePageSectionStar","xIsStarred","zTargetPageData","zIsNowStarred","_isStarred","without","getSectionFlagColorStyle","xStylePropName","defaultFlagColorStyleArray","zStyleObj","getSectionHeaderStyle","defaultHeaderStyleArray","zHeaderStyle_MiniScreenMode","getSectionListByParentSectionGUID","zResList","getFilteredSectionList","xSourcePageSections","zCurrentPageColumnParentPageSectionGUID","zMatchedGUIDList","zMatchedHeaderGUIDList","zResSections","include","unique","removeSections","xPageSectionGUIDs","zPageSectionGUIDs","zSections","xCheckingSection","removeHeaderAndSections","xPageHeaderSectionGUID","filter","xSec","renderSection","xSectionIndex","publishedDateString","toLocaleDateString","zSubPageSections","_subCount","templateGUID","generatePageTitle","zMaxPageTitleLen","zResTitle","zFirstSection","removePage","PREFIX_PAGE_DATA","zSharingID","xSavingPageGUID","xNewPageGUID","zPageData","clearAllSubSection4RemovedPageSections","_username","_updatedAt","PAGE_SAVED","xPageSections","zSectionsMap","map","el","zParentEl","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","refSectionGUIDs","zHighestSimScorePageSection","getStringSimilarityScore","str1","str2","preprocessText","replace","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","global","t","getCurrentSelectedPageSectionGUID","getCurrentSelectedPageHeaderSectionGUID","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","querySuitableCommand4Input","xInputString","zInputString","zInputStringLow","zResult","xCommandString","zCommandStringLow","runCommandString","zUserMsg","zAISessionGUID","awsmobile","_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","__default__","computed","leftCredits","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","$t","_createCommentVNode","_unref","APP_SUPPORT_EMAIL","onClick","$event","__exports__","id","selectedPageSectionGUID","getResultPageStyle","left","right","getRightSideBarStyle","getDiveMenuBarStyle","clickBackground","xSignOutAuthFunc","zSubManagerURL","SUB_MANAGER_URL","focus","clickUpgradeSubscription","zSubPlanURL","SUB_PLAN_PRICING_URL","checkIfUserJumpedIn","refreshUserInfo","Amplify","configure","awsconfig","refreshUserInfoLazy","AI_GEN_CANCELED","_withDirectives","_normalizeStyle","src","APP_NAME","_vShow","Authenticator","user","signOut","UserAccountMenu","onOnSignOut","onOnManageSubscription","onOnUpgradeSubscription","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","mounted","isAlmostEmptyPage","promptSites","inputThings","userChatMessage","parentPageSectionTitle","promptSite","promptRoleGUID","promptRoleName","isAdvancedInputUI","zInitRole","currentSite","zUserMessageLow","ADD_HEADER","ADD_NOTE_CARD","ADD_BOOKMARKS","clickCloseChattingUI","gotoHeaderEndPos","zCurrentSelectedPageHeaderSectionGUID","zTargetPosPageSectionGUID","clickGoSearching","xEvent","doRunCommand","clickGoSearchingImage","clickGoSearchingNews","clickGoAskingAI","clickOpenPromptSettings","clickPromptSite","xPromptSite","xCommandType","xNextCommandType","zCommandType","currentInputCommandType","currentCommandType","nextCommandType","onBlurChattingInput","clearSelection","onMouseEnterCommandInput","xHoveredType","hoveredElementType","onMouseLeaveCommandInput","getCommandInputCompoStyle","getCommandInputPanelBodyStyle","isFollowupReturnOKOnly","refreshFollowups","zPageColumnFilterSection","zAISession","zFollowupItems","xFollowupItem","zFollowupItem","zCurrentParentPageSectionTitle","zPageColumnFilterGUID","zIfInColumnPageSectionsExist","zChatMessage","zCurrentHeaderGUID","slice","zAllSections","zLastPageSectionIndex","CALL_USER_INPUT_CENTER","setInputFocus","CALL_USER_INPUT_CENTER_ASK_AI","CALL_USER_INPUT_CENTER_SEARCH_WEB","CALL_USER_INPUT_CENTER_SEARCH_IMAGE","_component_SysLanguageMenu","onKeydown","_withKeys","_withModifiers","onMouseenter","onMouseleave","_normalizeClass","resize","onBlur","autocomplete","_vModelText","_Fragment","_renderList","SYS_PROMPT_SITE_EDITOR","selectedPageSection","reverse","getSearchBarWidth","zResWidth","clickQuitFilterMode","clickFilter","clickBack","PAGE_FILE_INDEX","zFilterCode","PAGE_COLUMN_FILTER_CHANGED","clickAIChat","_component_insert_object_menu","flagColorStyle","appSERappSERPManager","selectedHeaderPageSection","zSelectedHeaderPageSectionGUID","clickStartNewSession","clickInsertNewObject","xObjectType","zCurrentPageColumnFilterGUID","zInsertToPageSectionIndex","getHeaderEndPosIndex","zTargetPosPageSectionIndex","MEMO","zMemoSectionGUID","zMemoSection","toLocaleString","BOOKMARK","zNewMemoString","prompt","zNewMemoStringLow","GROUP","zNewGroupSectionGUID","zNewGroupSection","_component_el_dropdown_item","getLangTextName","zResLangInfo","zResLangTextName","clickItemLanguage","itemLangInfo","itemLangCode","pageSharingID","zSharingURL","clickExportContent","xScope","xFormat","zResHTML","zPageColTitles","zResHTMLBody","newPageWithHTML","clickSwitchPageList","clickPoweredBy","HOME_PAGE_URL_POWERED_BY","clickSaveToMyBase","zLoginPageURL","origin","clickpanSysFuncBar","PageOutputMenu","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","siteListString","xSiteURL","getSiteListInputRows","zRows","floor","onBlurInputSiteList","zResSites","xSiteString","zSiteString","editingRoleItem","getRoleItemList","clickEditRole","xRoleItem","clickSaveEditingRole","xSavingRoleItem","clickCancelEditingRole","clickRemoveRole","xRoleGUID","xRole","clickAddNewRole","zNewRoleGUID","zNewRoleItem","unshift","clickResetRoles","confirm","_component_el_input","SYS_PROMPT_ROLE_EDITOR","roleItem","modelValue","rows","isMemoSortASC","getAllMemosString","xTextType","zResString","zStarredSectionGUIDs","zSatrredSection","trimmedStr","clickSortMemoView","clickCopyMemoViewToClipboard","zCopiedText","clipboard","writeText","ElNotification","clickReturn","_component_PageContentTable","_component_PageFileIndex","_component_PageSectionEditor","PAGE_COLUMN_INDEX","SYS_ROLE_INDEX","MEMO_VIEW","PAGE_SECTION_IMAGE_EDITOR","PAGE_SECTION_ORDER_EDITOR","SysPromptEditor","PageMemoView","clickDiveMenuBar","_component_PageFilterIndex","_component_PageDiveIndex","pageColumns","currentParentPageSectionGUID","currentParentPageSectionName","zParentSection","currentSelectedPageSectionHeaderGUID","columnHeaderAndDivablePageSectionList","zFilteredPageSections","zResSectionList","zPage","zFilteredPageSections2","xFilteredPageSection","xFilteredPageSection2","columnPathItemNameList","zLastPageColumn","zResPathItems","xPageColumnIndex","zLastParentSection","zParentHeaderSection","zPathItem","parentHeaderSection","lastParentSection","columnPageSectionList","zTempPageSectionList","zResPageSectionList","zCurrentSelectedPageSectionHeaderGUID","clickReturnColumn","xPageColIndex","zPageColIndex","clickHeader","xSelectedSection","clickDivbableSection","pathItem","pathItemIndex","pageSection","pageSectionIndex","currentSelectedPageHeaderSectionGUID","clickFilterCode","clickESCFromAIGenerating","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","licenseCode","APIKey","clickSubmitLicCode","zLicCode","clickSubmitAPIKey","zAPIKey","clickCancelInput","href","addClass","_component_el_dialog","_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","AppMaster","watch","currentSelectedHeaderSectionGUID","handler","newValue","oldValue","currentReturnMessageMD","zViewingMessage","zMsgLines","xMsgLine","dragoverSectionGUID","draggingSectionIndex","hoverSectionGUID","sectionDraggingImg","Image","defaultTopicStrings","currentUserContentPage","getCurrentPageColumnPageSections","getParentSection4CurrentPageColumn","xCurrentPageColumn","currentAISession","xPageColumns","getPageColumnStyle","bottom","getPageSectionStyle","zResPageSectionStyle","checkIfHeaderNeedToExtend","xHeaderSection","viewingSectionParts","viewingHeadersInCloumnX","refreshSectionsBelongToCurrentHeader","getHeaderPageSectionsForViewing","zPageColumnParentSectionGUID","getSectionsBelongToHeader","xPageSectionPartID","zCurrentPageSections","zHeaderSectionGUID","clickCallUserInputCenter","xUserInputCenterEvent","xTopicString","clickTryTopicString","clickHeaderSection","onMousedownPageSection","doBreakDownPageSectionWithContent","zSectionContent","zPageColumnIndex","zPosIndex","zNewGroupGUID","clickPageSection","getCSSColCount","clickGotoWebsite","xRefLink","clickDiveIntoPageSection","setPageSectionHovered","xPagesectionGUID","getSubPageSectionCount","setupPageRenderer","zPickedLayoutStyleName","funcOnAIGenDone_OutputNoteCards","zHeaderSection","zHeaderSections","_component_PageSectionView","_component_PageSectionMenu","_component_PageSectionElement","_component_el_skeleton","pageColumn","pageColumnIndex","onScroll","isFolded","headerSection","isReadOnly","isSelected","onClickDiveIntoPageSection","pageSectionPartID","onMousedown","sectionCardStyle","isBackFaceMode","isEditingMode","isMiniMode","animated","sampleTopicString","sampleTopicIndex","CHAR_BR","clickOpenPageList","clickNewBlankPage","required","Boolean","String","getRefSections","xRefSectionIDs","selectionMenu","ifMouseDown","ifShow","clickToggleStarPageSection","clickCancelTranslation","clickClearSelection","clickExploreMore","xSelectionText","clickAddSelectionToMemo","zMemoString","onMouseup","zSelectedText","getSelectedText","layerX","layerY","$emit","refSection","onerror","xPageContentTable","getPageColumnTitle","getCurrentColumnPageSectionList","clickPageSectionTab","xSelectedSectionGUID","dblclickPageSectionTab","clickAddNewConversation","PageContentTable","onDblclick","sortedPageItemList","sortPageItemList","zResPageItemList","sortBy","clickLoadPageItem","xPageItemGUID","clickRemovePage","pageItem","Number","Array","clickRemovePageSection","xIsBackFaceMode","clickRemovePageSectionsUnderThisHeader","clickEditPageSection","clickCopyPageSection","clickEditImage","_createBlock","getParentPageSection","xIsFolded","clickContinueListing","clickReturnParentPageSection","onClickContinueWriting","clickContinueWriting","onClickContinueListing","getNoteContentInputRows","clickCoverImageRelatedLink","xCoverImageRelatedURL","clickOptionalImage","xOptImageURL","xOptImageIndex","zOptImageSourceURL","clickChangeCoverImage4PageSection","clickRemoveCoverImage4PageSection","xNewCoverInput","xNewCoverSourceURL","zNewCoverSourceURL","zNewCoverInput","zNewCoverInputLow","clickMoveSectionTo","getMoveToPageSections","xCurrentSelectedPageSection","zResMoveToPageSections","blurInputText","zPageSectionToSave","onEnterPressed4SectionTitle","xInputElementID","blur","onEnterPressed4SectionRefLink","optImageURL","optImageIndex","posPagesection","isParentSectionViewMenu","memoCount","zResCount","pageSectionCount","clickOpenAllStarredItems","xStarredSectionGUID","getPageSection","xGUID","onStarredSectionGUIDOrderChange","item","oldIndex","newIndex","_component_PageSectionRefItem","_directive_sortable","_resolveDirective","onEnd","starredSectionGUID","clickRefItem","checkIfRefItemOpenInPageColumn","checkIfRefItemSelectedInPageColumn","zCurrentSelectedPageSection","clickBrowse","clickUnstar","vPanMain","createApp","panMain","component","use","ElementPlus","mount","vDivUserInputCenter","divUserInputCenter","SysLanguageMenu","vDivNavButtonBar","divNavButtonBar","InsertObjectMenu","vpanSysFuncBar","panSysFuncBar","vPanSideBar","panSideBar","PageFileIndex","PageSectionEditor","vPanDiveMenuBar","panDiveMenuBar","PageDiveIndex","PageFilterIndex","vPanLockingUI","panLockingUI","vPanSubscriptionRequest","panSubscriptionRequest","vDivResultPages","divResultPages","PageSectionMenu","PageSectionElement","PageSectionView","vDivEmptyPage","divEmptyPage","vDivRefInfoBar","divRefInfoBar","PageSectionRefItem","VueSortable","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","loaded","__webpack_modules__","call","m","amdO","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","every","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","g","globalThis","this","Function","obj","prototype","hasOwnProperty","Symbol","toStringTag","nmd","paths","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","self","bind","__webpack_exports__"],"sourceRoot":""}