"use strict";(self["webpackChunkwpsstyle"]=self["webpackChunkwpsstyle"]||[]).push([[898],{89898:function(e,t,i){i.r(t),i.d(t,{default:function(){return g}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"decision"},[t("div",{staticClass:"decision-content"},[t("SvgIcon",{attrs:{"svg-name":"generate_finish"}}),e._v(" "+e._s(e.contentText)+" ")],1),t("div",{staticClass:"decision-footer"},[t("span",[e._v("AI 生成内容，仅供参考")]),t("div",{staticClass:"decision-footer__right"},[t("DcExButton",{attrs:{type:"text"},on:{click:e.handleDeprecated}},[t("TrashCan",{attrs:{fill:"var(--kd-color-icon-primary, rgba(117, 117, 117, 1))",size:16}}),e._v("弃用 ")],1),t("DcExButton",{staticClass:"decision-confirm",on:{click:e.handleApply}},[t("span",[e._v("保留")]),t("CurrencyVipMarkS",{attrs:{size:20}})],1)],1)])])},o=[],n=(i(57658),i(32879)),r=(0,n.a1)("currency_vip_mark_s",!1,function(e,t){return e("svg",{attrs:{width:t.size,height:t.size,viewBox:"0 0 20 12",fill:"none"}},[e("path",{attrs:{d:"M9.45745 3H11.1392L10.0828 9H8.40104L9.45745 3Z",fill:"white"}}),e("path",{attrs:{d:"M3.09896 3.00195H4.60823L5.43346 6.51555L6.80373 3.00195H8.47223L5.9115 9H4.41855L3.09896 3.00195Z",fill:"white"}}),e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.5232 3L11.4479 9H13.0289L13.4204 7.10505C13.4896 7.10534 13.5603 7.10606 13.6323 7.10679C14.787 7.1185 16.2688 7.13352 16.856 5.44623C17.3424 4.04815 16.4496 3.20971 15.8315 3.05901C15.5438 3.00037 14.3956 2.99868 14.1484 3.00037L12.5232 3ZM13.8675 4.23389L13.5964 5.80127L14.7287 5.80128C15.1309 5.80128 15.4753 5.51318 15.5464 5.11733L15.5646 5.0159C15.6377 4.60838 15.3245 4.23389 14.9105 4.23389H13.8675Z",fill:"white"}}),e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 2C0 0.895431 0.895431 0 2 0H18C19.1046 0 20 0.895431 20 2V10C20 11.1046 19.1046 12 18 12H2C0.895431 12 0 11.1046 0 10V2ZM2 1H18C18.5523 1 19 1.44772 19 2V10C19 10.5523 18.5523 11 18 11H2C1.44772 11 1 10.5523 1 10V2C1 1.44772 1.44772 1 2 1Z",fill:"white"}})])}),a=(0,n.a1)("trash_can",!1,function(e,t){return e("svg",{attrs:{width:t.size,height:t.size,viewBox:"0 0 16 16",fill:"none","stroke-width":t.strokeWidth}},[e("g",{attrs:{id:"group-0",stroke:t.colors&&"string"!==typeof t.colors&&t.colors[0]||"string"===typeof t.colors&&t.colors||"#333333",fill:t.colors&&"string"!==typeof t.colors&&t.colors[0]||"string"===typeof t.colors&&t.colors||"#333333"}},[e("path",{attrs:{d:"M5.75 1.33203H10.25M1.75 3.75H14.25M12.5 4.25L11.6351 12.8993C11.5584 13.6661 10.9131 14.25 10.1425 14.25H5.85748C5.08685 14.25 4.44161 13.6661 4.36493 12.8993L3.5 4.25","stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,fill:"none","vector-effect":"non-scaling-stroke"}}),e("path",{attrs:{d:"M8 6.75V10.25","stroke-linecap":t.strokeLinecap,fill:"none","vector-effect":"non-scaling-stroke"}})])])}),c=i(26294),l=i(27698),d=i(96115),p=i(62922),h=i(61612),u={components:{TrashCan:a,CurrencyVipMarkS:r},computed:{...(0,c.mapState)("aicover",["withEndPage","covers"]),...(0,c.mapGetters)("aicover",["getAiRequestProperties"]),contentText(){return`已生成封面${this.withEndPage?"与结束页":""}, 预览中，是否保留应用`}},mounted(){this.sendAiCollect({act:"ai_funcshow",event_id:"47921"}),setTimeout(()=>{l.Z.changeCoverWidgetStyle("Decision"),l.Z.enableCoverDocPreview(!0)}),window.addEventListener("keydown",this.onKeydown,!0)},beforeDestroy(){window.removeEventListener("keydown",this.onKeydown,!0)},methods:{handleDeprecated(){this.sendAiCollect({act:"ai_funcclick",event_id:"47922",func_name:"privilege_stop",button_writing:"弃用",page_name:h.At[this.$route.path]}),l.Z.coverTransCommit(!1),l.Z.enableCoverDocPreview(!1),this.$store.dispatch("aicover/closeSessionId"),this.$router.push({name:"aicover-home"})},async handleApply(){this.sendAiCollect({act:"ai_funcclick",event_id:"47922",func_name:"privilege_keep",button_writing:"保留"});const e=await(0,p.pZ)({intentionCode:d.KW,position:d.Ky});e&&(this.sendAiCollect({act:"ai_resultuse",event_id:"47919",answer_use:JSON.stringify(this.covers)}),(0,p.gU)())},onKeydown(e){"Escape"===e.key&&(e.stopPropagation?.(),l.Z.showClientToast({toastText:"AI已生成新内容，请先确认",subTitle:"",messageType:1}))},sendAiCollect(e={}){const t={...this.getAiRequestProperties,...e};this.$trackAicover.emit(t)}}},v=u,f=i(1001),C=(0,f.Z)(v,s,o,!1,null,"7cb01c8a",null),g=C.exports}}]);