找回密码
 立即注册
搜索
热搜: 丝袜 魅魔 黑丝
查看: 12|回复: 0

20084501_第四章 何奕锦

[复制链接]

13万

主题

343

回帖

22万

积分

管理员

站长

UID
1
积分
224402
余额
13 R
Moe币
84883
在线时间
279 小时
注册时间
2025-12-28
最后登录
2026-11-13
发表于 2026-9-3 23:00:59 | 显示全部楼层 |阅读模式
"use strict";(self.webpackChunkkwebwppai_generateppt=self.webpackChunkkwebwppai_generateppt||[]).push([[1143],{32928:function(e,n,t){if(t.d(n,{i:function(){return r}}),3057==t.j)var i=t(35380);var r=function(e){return function(n){n({type:i.A.SET_TEXT2IMAGE_INFO,data:e})}}},26484:function(e,n,t){t.d(n,{Eb:function(){return d},Wy:function(){return s},_A:function(){return r},cq:function(){return a},rB:function(){return u},up:function(){return p},v6:function(){return w},z8:function(){return c}});var i,r,o=t(36435);!function(e){e.updateShapeInfo="updateShapeInfo",e.updatePrompt="updatePrompt",e.requestGeneratePic="requestGeneratePic",e.sendPicData="sendPicData",e.insertPicture="insertPicture",e.sendErrorMsg="sendErrorMsg",e.requestPromptOptimize="requestPromptOptimize",e.requestShapeInfo="requestShapeInfo",e.showErrorMsg="showErrorMsg",e.getImgRecord="getImgRecord",e.updateImgRecord="updateImgRecord",e.downPicture="downPicture",e.copyPicture="copyPicture",e.requestCSource="requestCSource",e.updateCSource="updateCSource",e.requestPresetData="requestPresetData"}(r||(r={}));var p={ON_UPDATE_WPP_T2I_PREVIEW_POS:"ON_UPDATE_WPP_T2I_PREVIEW_POS",ON_UPDATE_WPP_T2I_PREVIEW_SIZE:"ON_UPDATE_WPP_T2I_PREVIEW_SIZE",ON_UPDATE_WPP_T2I_PREVIEW_PIC_INFO:"ON_UPDATE_WPP_T2I_PREVIEW_PIC_INFO",ON_WPP_T2IPREVIEW_HOVER:"ON_WPP_T2IPREVIEW_HOVER",ON_T2I_REUSE_PROMPT:"ON_T2I_REUSE_PROMPT",ON_OPTIONS_PANEL_VISIBLE_CHANGE:"ON_OPTIONS_PANEL_VISIBLE_CHANGE"},a="generate_picture",c="pc-wpp-aipublic",l=o.e2.config.styleRecommand||[],s={};l.forEach((function(e){s[e.style]=e.back_style}));var u=null===(i=l[0])||void 0===i?void 0:i.style,d=l.slice(1);d=d.map((function(e){var n={};return n[e.style]=e.back_style,n}));var w=3057==t.j?["select_picture_background","tab_design_background","select_left_background"]:null},29520:function(e,n,t){var i=t(26484),r=t(32928),o=t(77009),p=t(30160),a=t(95066),c=t(93026),l=function(){function e(){this.handleActiveStateChange=function(e){e||(window.getSelection?window.getSelection().removeAllRanges():document.selection.empty()),(0,a.A)(c.D.ON_WEBVIEW_ACTIVE_CHANGE,{active:e})},this.updatePreviewPicInfo=function(e){var n=e.style,t=e.prompt,i=e.url,p=e.imgHeight,a=e.imgWidth,c=e.is_optimize,l=e.isFromGallery,s=e.genFrom,u=e.originUrl;o.A.dispatch((0,r.i)({previewInfo:{style:n,prompt:t,url:i,imgHeight:p,imgWidth:a,is_optimize:c,isFromGallery:l,genFrom:s,originUrl:u}})),console.error("updatePreviewPicInfo",e)},this.updatePreviewPos=function(e){var n,t=e.left,i=e.top;null===(n=window.Extention)||void 0===n||n.Webview.setGeometry({x:t,y:i}),console.error("updatePreviewPos",e)},this.updatePreviewSize=function(e){var n,t=e.width,i=e.height;null===(n=window.Extention)||void 0===n||n.Webview.setSize({w:t,h:i}),console.error("updatePreviewSize",e)},this.init(),window.PreviewClient=this}return e.prototype.init=function(){var e,n;"T2IPreview"===(0,p.$Z)("entry")&&(this.addEventListener(i.up.ON_UPDATE_WPP_T2I_PREVIEW_PIC_INFO,this.updatePreviewPicInfo),this.addEventListener(i.up.ON_UPDATE_WPP_T2I_PREVIEW_POS,this.updatePreviewPos),this.addEventListener(i.up.ON_UPDATE_WPP_T2I_PREVIEW_SIZE,this.updatePreviewSize),null===(e=window.Extention)||void 0===e||e.Webview.removeWindowActivateStateListener(this.handleActiveStateChange),null===(n=window.Extention)||void 0===n||n.Webview.addWindowActivateStateListener(this.handleActiveStateChange))},e.prototype.addEventListener=function(e,n){var t;null===(t=window.Extention)||void 0===t||t.Common.Event.addEventListener(e,n)},e.prototype.dispatchWebViewEvent=function(e,n,t){var i;void 0===t&&(t=!1),null===(i=window.Extention)||void 0===i||i.Common.Event.dispatchEvent(e,t,n)},e.prototype.dispatchPreviewHoverStatus=function(e){this.dispatchWebViewEvent(i.up.ON_WPP_T2IPREVIEW_HOVER,{isHover:e},!1)},e.prototype.dispatchReusePrompt=function(e){this.dispatchWebViewEvent(i.up.ON_T2I_REUSE_PROMPT,{prompt:e},!1)},e.prototype.hide=function(){var e;null===(e=window.Extention)||void 0===e||e.Webview.hide()},e.prototype.show=function(){var e;null===(e=window.Extention)||void 0===e||e.Webview.show()},e.prototype.takeSelfFocus=function(){var e;null===(e=window.Extention)||void 0===e||e.Webview.takeFocus()},e}();n.A=new l},93026:function(e,n,t){t.d(n,{D:function(){return i}});var i={UPDATE_T2I_PROMPT:"UPDATE_T2I_PROMPT",UPDATE_START_BTN_STATUS:"UPDATE_START_BTN_STATUS",ON_WARPPER_SCROLL:"ON_WARPPER_SCROLL",ON_BODY_HIDE:"ON_BODY_HIDE",ON_TASKPANEL_VISIBLE_CHANGE:"ON_TASKPANEL_VISIBLE_CHANGE",ON_WEBVIEW_ACTIVE_CHANGE:"ON_WEBVIEW_ACTIVE_CHANGE",ON_ENTER_START_GEN:"ON_ENTER_START_GEN",ON_PREVIEW_FOCUS_CHANGED:"ON_PREVIEW_FOCUS_CHANGED",UPDATE_T2I_INPUT_VAL:"UPDATE_T2I_INPUT_VAL",ON_SESSION_INIT:"ON_SESSION_INIT"}},22418:function(e,n,t){if(t.d(n,{Dz:function(){return d},KG:function(){return c},Tj:function(){return s},ZK:function(){return a},f:function(){return w},lP:function(){return v},m0:function(){return _},pS:function(){return l},zY:function(){return u}}),3057==t.j)var i=t(58351);if(3057==t.j)var r=t(59207);if(3057==t.j)var o=t(42727);if(3057==t.j)var p=t(26484);var a,c,l;!function(e){e.style="style",e.size="size",e.optimize="optimize",e.hover="hover",e.generate_picture="generate_picture",e.insert="insert",e.replace="replace",e.background="background",e.fill="fill",e.copy="copy",e.download="download",e.reuse_prompt="reuse_prompt"}(a||(a={})),function(e){e.generate_begin="generate_begin",e.generate_finish="finish_page"}(c||(c={})),function(e){e.request="request"}(l||(l={}));var s="wpp_ai_generate_img_intention",u="wps_wpp_generate_picture",d=function(e){switch(e){case r.A.GenResult.fill:return a.fill;case r.A.GenResult.insert:return a.insert;case r.A.GenResult.replace:return a.replace;case r.A.GenResult.setBackground:return a.background;default:return""}};function w(){var e=(0,i.r_)(32);(0,o.setCommonDataValue)("action_id",e)}function v(e){(0,o.setCommonDataValue)("open_position",e)}var _=function(){window.collectionAI=function(e,n){var t,i,r=(null==(i=window.Extention.TaskPanelCopilot.getActiveDocumentInfo())?void 0:i.code)?i.result:{cloud_file_id:"",integrity_check_value:""},o=r.integrity_check_value,a=r.cloud_file_id,c=Object.assign(n,{comp:"wpp",ai_type:p.cq,rp:1,integritycheckvalue:o,cloud_file_id:a,icEvent:e,page_process:void 0,pre_page_name:void 0});c=Object.fromEntries(Object.entries(c).filter((function(e){e[0];var n=e[1];return null!=n}))),console.warn("window.Extention?.Report.sendInfo: ",e,c),null===(t=window.Extention)||void 0===t||t.Report.sendInfo(e,c,1)}}},8770:function(e,n,t){t.r(n),t.d(n,{default:function(){return W}});var i=t(73379),r=t.n(i),o=t(25144),p=t.n(o),a=t(14868),c=t.n(a),l=t(52595),s=t.n(l),u=t(647),d=t.n(u),w=t(76532),v=t.n(w),_=t(38876),m={};m.styleTagTransform=v(),m.setAttributes=s(),m.insert=c().bind(null,"head"),m.domAPI=p(),m.insertStyleElement=d();r()(_.A,m),_.A&&_.A.locals&&_.A.locals;var E=t(44801),f=t(51611),g=t(29520),P=t(59207),h=t(37336),I=t(14797),A=t(79964),x=t(93026),b=t(40312),N=t.n(b),T=t(42727),S=t(22418),O=t(26484),y=t(76806),k=t(47115),R=function(){var e=(0,E.createRef)(),n=(0,E.createRef)(),t=(0,f.d4)((function(e){return e.t2i})).previewInfo,i=(0,E.useState)(!1),r=i[0],o=i[1],p=(0,E.useState)(!1),a=p[0],c=p[1],l=(0,E.useState)(!1),s=l[0],u=l[1],d=(0,E.useRef)(null),w=(0,E.useRef)(!1);(0,E.useEffect)((function(){var e,n=function(){g.A.dispatchPreviewHoverStatus(!0)},t=function(){g.A.dispatchPreviewHoverStatus(!1)};return document.addEventListener("mouseenter",n),document.addEventListener("mouseleave",t),y.Ue&&(null===(e=window.Extention)||void 0===e||e.Common.Event.addEventListener(O.up.ON_OPTIONS_PANEL_VISIBLE_CHANGE,m)),function(){var e;document.removeEventListener("mouseenter",n),document.removeEventListener("mouseleave",t),y.Ue&&(null===(e=window.Extention)||void 0===e||e.Common.Event.removeEventListener(O.up.ON_OPTIONS_PANEL_VISIBLE_CHANGE,m))}}),[]),(0,E.useEffect)((function(){if(null==e?void 0:e.current){var n=e.current.offsetHeight,t=e.current.scrollHeight;o(t>n)}}),[t,e]),(0,E.useEffect)((function(){var e;if(t.url){var i=(null===(e=n.current)||void 0===e?void 0:e.getBoundingClientRect()).height;u(i<=22),clearTimeout(d.current),d.current=setTimeout((function(){y.Ue&&w.current?w.current=!1:(g.A.show(),g.A.takeSelfFocus())}),200)}}),[t,n]);var v=(0,E.useCallback)((function(){g.A.dispatchReusePrompt(t.prompt),g.A.hide(),T.funcClick({funcName:S.ZK.reuse_prompt})}),[t.prompt]),_=(0,E.useCallback)((function(){window.Extention.Common.Util.openInnerUrl(t.originUrl)}),[t.originUrl]),m=function(e){w.current=null==e?void 0:e.visible},b=(0,E.useMemo)((function(){return"doubao_search"===t.genFrom?P.A.Preview.onlineSource:t.isFromGallery?P.A.Preview.aiTipFromGallery:P.A.Preview.aiTipFromGenerate}),[t.isFromGallery,t.genFrom]);(0,A.A)(x.D.ON_WEBVIEW_ACTIVE_CHANGE,(function(e){e.detail.visible||c(!1)}));var R=(null==t?void 0:t.imgHeight)<(null==t?void 0:t.imgWidth)?{width:"100%"}:{height:"100%"},W=r?t.prompt:"",C=t.isFromGallery,V="doubao_search"===t.genFrom,U=N()({"wpp-t2i-preview-wrapper":1,"is-single-line":s});return E.createElement("div",{className:U},E.createElement("div",{className:"img-wrapper"},E.createElement("div",{className:"img-ctn"},E.createElement("img",{style:R,className:"preview-img",src:t.url}),E.createElement("div",{className:"preview-ai-tip"},b))),E.createElement("div",{className:"img-describe-wrapper"},E.createElement("div",{className:"img-prompt",ref:e},E.createElement(I.A,{title:W},E.createElement("span",{className:"prompt-text",ref:n},t.prompt))),E.createElement("div",{className:"title"},!C&&!V&&E.createElement("div",{className:"left"},E.createElement("span",{className:"label"},t.style),t.is_optimize&&E.createElement("span",{className:"label"},P.A.Preview.withTheme)),V&&E.createElement("div",{className:"online-source-tip"},E.createElement("span",{className:"tip-text"},P.A.Preview.onlineSourceTip),E.createElement(k.A,{type:"vertical"}),E.createElement("span",{className:"origin-source",onClick:_},P.A.Preview.checkOnlineSource)),E.createElement(I.A,{visible:a,title:P.A.Preview.copySuccess,placement:"top"},E.createElement(h.A,{className:"copy-btn",size:"small",onClick:v},P.A.Preview.reusePrompt)))))},W=E.memo(R)},38876:function(e,n,t){var i=t(91964),r=t.n(i),o=t(44549),p=t.n(o)()(r());p.push([e.id,'body.dark .wpp-t2i-preview-wrapper .label {\n  background: #383838;\n}\n\n.wpp-t2i-preview-wrapper {\n  padding: 16px;\n  position: relative;\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  background: var(--kd-color-background-middle, #fff);\n}\n\n.wpp-t2i-preview-wrapper.is-single-line .img-describe-wrapper {\n  height: 66px;\n}\n\n.wpp-t2i-preview-wrapper.is-single-line .img-prompt {\n  height: 22px;\n}\n\n.wpp-t2i-preview-wrapper.is-single-line .img-wrapper {\n  max-height: 502px;\n}\n\n.wpp-t2i-preview-wrapper .img-describe-wrapper {\n  display: flex;\n  height: 88px;\n  flex-direction: column;\n  padding-top: 10px;\n}\n\n.wpp-t2i-preview-wrapper .img-wrapper {\n  display: flex;\n  justify-content: center;\n  flex: 1;\n  max-height: 480px;\n  height: calc(100% - 120px);\n  object-fit: cover;\n  overflow: hidden;\n  border-radius: 6px;\n  position: relative;\n}\n\n.wpp-t2i-preview-wrapper .img-wrapper .img-ctn {\n  position: relative;\n  height: auto;\n  width: auto;\n}\n\n.wpp-t2i-preview-wrapper .img-wrapper img {\n  width: 100%;\n  height: 100%;\n}\n\n.wpp-t2i-preview-wrapper .img-wrapper .preview-ai-tip {\n  position: absolute;\n  bottom: 5px;\n  inset-inline-end: 5px;\n  display: flex;\n  padding: 0px 4px;\n  align-items: center;\n  gap: 4px;\n  border-radius: 4px;\n  background: rgba(255, 255, 255, 0.4);\n  -webkit-backdrop-filter: blur(10px);\n          backdrop-filter: blur(10px);\n  color: rgba(13, 13, 13, 0.46);\n  font-size: 12px;\n  line-height: 20px;\n}\n\n.wpp-t2i-preview-wrapper .title {\n  justify-content: space-between;\n  color: var(--kd-color-text-primary, rgba(13, 13, 13, 0.9));\n  font-size: 14px;\n  font-style: normal;\n  line-height: 22px;\n  display: flex;\n  align-items: center;\n  margin-top: 11px;\n}\n\n.wpp-t2i-preview-wrapper .title .left {\n  display: flex;\n  gap: 6px;\n}\n\n.wpp-t2i-preview-wrapper .title .copy-btn {\n  -webkit-margin-start: auto;\n          margin-inline-start: auto;\n}\n\n.wpp-t2i-preview-wrapper .title .online-source-tip {\n  color: var(--kd-color-text-tertiary, rgba(13, 13, 13, 0.46));\n  font-size: 12px;\n}\n\n.wpp-t2i-preview-wrapper .title .online-source-tip .origin-source:hover {\n  text-decoration: underline;\n  cursor: pointer;\n}\n\n.wpp-t2i-preview-wrapper .label {\n  display: flex;\n  font-size: 13px;\n  padding: 0px 4px;\n  align-items: center;\n  gap: 4px;\n  border-radius: 4px;\n  background: var(-
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|M男之家

GMT+8, 2026-11-13 19:06 , Processed in 0.085632 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表