{"version":3,"sources":["webpack:///./src/views/contract-amendment/index.vue?1c8d","webpack:///./src/views/contract-amendment/index.vue?57d1","webpack:///./src/utils/index.js","webpack:///./src/views/contract-amendment/index.vue","webpack:///./src/views/contract-amendment/index.vue?c408"],"names":["formatTime","date","dateObj","Date","Number","year","getFullYear","month","String","getMonth","padStart","day","getDate","hours","getHours","minutes","getMinutes","generateId","characters","length","id","i","randomIndex","Math","floor","random","route","useRoute","store","useStore","token","computed","state","contentRef","ref","amendmentBtnRef","showAmendmentBtn","btnTop","btnLeft","selectedText","showAmendmentBtnHandler","loading","value","setTimeout","selection","window","getSelection","toString","range","getRangeAt","startContainer","endContainer","startOffset","endOffset","contains","startRect","getBoundingRect","endRect","max","bottom","min","left","container","offset","document","createRange","setStart","setEnd","rect","getBoundingClientRect","detach","getOptimize","gptOptimize","chatid","optimizeChatId","temperature","cmd","desire_word_num","messages","role","message_id","timestamp","now","content","text","fragment","source","optimizeList","optimizeLoading","CancelToken","axios","handleAmendmentBtnClick","async","removeAllRanges","isAmendmentDialogShow","selectedOptimizeIndex","selectedOptimize","Promise","all","then","res","console","log","forEach","item","push","data","result","finally","dialogClose","cancel","optimizeSubmit","docResult","replace","handleSchemeClick","index","scrollToBottom","documentElement","scrollTop","scrollHeight","fetchController","AbortController","generateDoc","query","requirement","form","JSON","parse","gptQuery","method","headers","signal","body","stringify","chatId","meta_data","reader","response","getReader","decoder","TextDecoder","partialLine","read","done","lines","decode","stream","split","pop","line","valueObj","message","includes","e","onMounted","addEventListener","onBeforeUnmount","removeEventListener","abort","watch","style","top","newToken","oldToken","__exports__"],"mappings":"2IAAA,W,2DCAA,W,kCCAA,oEAaO,SAASA,EAAWC,GACzB,MAAMC,EAAU,IAAIC,KAAKC,OAAOH,IAC1BI,EAAOH,EAAQI,cACfC,EAAQC,OAAON,EAAQO,WAAa,GAAGC,SAAS,EAAG,KACnDC,EAAMH,OAAON,EAAQU,WAAWF,SAAS,EAAG,KAC5CG,EAAQL,OAAON,EAAQY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AUtE,OAAS4G,EAASC,QAAQpE,QAAQC,MAE9CgC,IACA,MAAMqC,GACNpD,QAAQC,IAAI,wBAAwBmD,IAIxC,OAAOX,UAGHA,MAgCLlC,QAAQ,KACTnE,EAAQC,OAAQ,KAIdoD,EAAwB5D,kBAAI,GAElC,IAAIoG,EAAS,GACX5D,EAAiB,G,OACnBgF,uBAAU,KACR1F,SAAS2F,iBAAiB,UAAWnH,GACrC8F,EAASrH,iBACTyD,EAAiBzD,iBACjByG,MAGFkC,6BAAgB,KACd5F,SAAS6F,oBAAoB,UAAWrH,GACxCgF,EAAgBsC,UAGlBC,mBACE,IAAMxH,EAAaG,MACnB,KACMN,EAAiBM,QACnBP,EAAgBO,MAAMsH,MAAMC,IAAS5H,EAAOK,MAAQ,GAAjB,KACnCP,EAAgBO,MAAMsH,MAAMnG,KAAUvB,EAAQI,MAAV,QAI1CqH,mBACE,IAAMjI,EAAMY,MACZ,CAACwH,EAAUC,KACTzC,M,wxDC5SJ,MAAM0C,EAA2B,IAAgB,EAAQ,CAAC,CAAC,YAAY,qBAExD","file":"js/chunk-3a0d9aee.a63f52a3.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./index.vue?vue&type=style&index=0&id=6bddf4da&lang=less&scoped=true\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./index.vue?vue&type=style&index=1&id=6bddf4da&lang=css\"","// 获取当前日期 YYYY-MM-DD hh:mm\r\nexport const getCurDate = () => {\r\n const currentDate = new Date()\r\n const year = currentDate.getFullYear()\r\n const month = ('0' + (currentDate.getMonth() + 1)).slice(-2)\r\n const day = ('0' + currentDate.getDate()).slice(-2)\r\n const hours = ('0' + currentDate.getHours()).slice(-2)\r\n const minutes = ('0' + currentDate.getMinutes()).slice(-2)\r\n const formattedTime = year + '/' + month + '/' + day + ' ' + hours + ':' + minutes\r\n\r\n return formattedTime\r\n}\r\n\r\nexport function formatTime(date) {\r\n const dateObj = new Date(Number(date))\r\n const year = dateObj.getFullYear();\r\n const month = String(dateObj.getMonth() + 1).padStart(2, '0');\r\n const day = String(dateObj.getDate()).padStart(2, '0');\r\n const hours = String(dateObj.getHours()).padStart(2, '0');\r\n const minutes = String(dateObj.getMinutes()).padStart(2, '0');\r\n\r\n return `${year}-${month}-${day} ${hours}:${minutes}`;\r\n}\r\n\r\nexport const generateId = () => {\r\n const characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';\r\n const length = 32;\r\n let id = '';\r\n\r\n for (let i = 0; i < length; i++) {\r\n const randomIndex = Math.floor(Math.random() * characters.length);\r\n id += characters[randomIndex];\r\n }\r\n\r\n return id;\r\n}","\r\n\r\n\r\n\r\n\r\n\r\n","import script from \"./index.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./index.vue?vue&type=script&setup=true&lang=js\"\n\nimport \"./index.vue?vue&type=style&index=0&id=6bddf4da&lang=less&scoped=true\"\nimport \"./index.vue?vue&type=style&index=1&id=6bddf4da&lang=css\"\n\nimport exportComponent from \"C:\\\\Users\\\\Admin\\\\PycharmProjects\\\\chatlawyer-web\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-6bddf4da\"]])\n\nexport default __exports__"],"sourceRoot":""}