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

24652809_【花开易折直需折】第28章 堕落的枷锁

[复制链接]

13万

主题

343

回帖

22万

积分

管理员

站长

UID
1
积分
224400
余额
13 R
Moe币
84881
在线时间
279 小时
注册时间
2025-12-28
最后登录
2026-11-9
发表于 2026-9-3 23:00:59 | 显示全部楼层 |阅读模式
||e[0].intersectionRatio>.5,this.isTouchBottom&&this.$emit("loadMoreGuessLike")},{root:null,rootMargin:"0px",threshold:.5}),this.$refs.footer&&this.intersectionObserver.observe(this.$refs.footer)}},computed:{...(0,c.mapState)("preview",["appPreviewCollect","appPreviewDisabledTag"]),isWpp(){return"wpp"==this.currentAppName},size(){return{wps:{w:160,h:226},wpp:{w:144,h:81},et:{w:160,h:120},pdf:{w:160,h:226}}[this.currentAppName]},mode(){return["wps","pdf","et"].includes(this.currentAppName)?1:0},isCrop(){return"et"==this.currentAppName?1:0}},watch:{item:{handler(){this.intersectionObserver=null}},data:{handler(e){e.length&&this.$nextTick(()=>{!this.intersectionObserver&&this.checkTouchBottom()})}}},beforeDestroy(){this.$refs.footer&&this.intersectionObserver&&(this.intersectionObserver.unobserve(this.$refs.footer),this.intersectionObserver.disconnect(),this.intersectionObserver=null)}},x=D;var N=(0,u.A)(x,P,I,!1,null,"7df78fd6",null);const B=N.exports;var E=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.recList.length?i("div",{staticClass:"preview__rec",class:{"has-like":e.hasLike?"has-like":""}},[i("div",{staticClass:"preview__hd l-d-flex l-justify-content-between"},[i("h5",{staticClass:"preview__title"},[e._v(e._s(e.recTitle))])]),i("ul",{directives:[{name:"collect",rawName:"v-collect.display",value:{page_name:"preview_page",$m_n:"assistant_area",$e_t:"module",assistant_name:e.getAssistantName(e.recList[0]),tag:e.getGroupTags},expression:"{\n      page_name: 'preview_page',\n      $m_n: 'assistant_area',\n      $e_t: 'module',\n      assistant_name: getAssistantName(recList[0]),\n      tag: getGroupTags,\n    }",modifiers:{display:!0}}],staticClass:"preview__hd l-d-flex l-justify-content-between l-flex-wrap"},e._l(e.recList.slice(0,4),function(t,a){return i("li",{directives:[{name:"collect",rawName:"v-collect.display.hover",value:Object.assign({},e.collectAdDisplay(a,0,t)),expression:"{\n        ...collectAdDisplay(index, 0, item),\n      }",modifiers:{display:!0,hover:!0}}],key:t.ad_text+"_"+a,staticClass:"preview__item",class:{rec__item:t.children&&t.children.length}},[i("div",{staticClass:"preview__img l-d-flex l-align-items-center",on:{click:function(i){return e.onClickAd(a,0,t)}}},[i("img",{attrs:{loading:"lazy",src:e.thumbUrl(t.ad_url),alt:""}})]),i("h5",{staticClass:"preview__item-title g-text-overflow",attrs:{title:t.ad_text},on:{click:function(i){return e.onClickAd(a,0,t)}}},[e._v(" "+e._s(e._f("toSubStr")(t.ad_text))+" ")]),t.children&&t.children.length?i("div",{staticClass:"rec__item-tags"},e._l(t.children.slice(0,4),function(t,s){return i("div",{directives:[{name:"collect",rawName:"v-collect.display.hover",value:Object.assign({},e.collectAdDisplay(a,s,t)),expression:"{\n            ...collectAdDisplay(index, i, tag),\n          }",modifiers:{display:!0,hover:!0}}],key:t.ad_text+"_"+s,staticClass:"rec__item-tags-item",on:{click:function(i){return i.stopPropagation(),e.onClickAd(a,s,t)}}},[i("span",[e._v(e._s(t.ad_text))])])}),0):e._e()])}),0)]):e._e()},O=[],R=i(92907);const L={wps:"06396fb0735311eca2968b3f3eb05cad",et:"5cb42260746911ecb032b5740d443869",wpp:"6cbf57b0746911ecb032b5740d443869"},M={__componentId:"__cid_a750e014",name:"PreviewRec",data(){return{recTitle:"",recList:[],showData:{},adId:0}},props:{hasLike:[Boolean,Number],currentAppName:String,tmplData:{type:Object,default(){return{}}},tags:{type:Array,default(){return[]}}},mixins:[R.A],methods:{handleClick(e){this.$_clickNewAD(e)},initRecData(){this.recList=[];const e=L[this.currentAppName||"wps"];if(!e||!this.getGroupTags.length)return;const t={position:e,keyword_group:this.getGroupTags.join(";")};this.$_getNewAD({params:t,cacheTime:9e5}).then(t=>{if("ok"==t.result&&t.data&&t.data[e]&&t.data[e].rec&&t.data[e].rec[0]&&t.data[e].rec[0].extra)try{const i=t.data[e].rec[0].extra;if(this.recTitle=i.title||"",i.list&&i.list.length){this.adId=t.data[e].advertising_detail_id;for(const e of i.list){const t=[],i=this.$_previewRecAdDataInit(e);i.children&&i.children.length&&i.children.map(e=>{const i=this.$_previewRecAdDataInit(e);return i&&t.push(i),e}),i&&(i.children=t,this.recList.push(i))}}}catch(i){}}).catch(e=>{})},getAssistantName(e){return e&&e.ad_type?{resume_editor:"简历助手",resume:"简历助手",easyedit:"一键出图",chuangkit:"金山海报"}[e.ad_type]:""},getAssistantFileType(e){return e&&e.ad_type?{resume_editor:1,resume:1,easyedit:15,chuangkit:15}[e.ad_type]:""},getCommonCollect(e,t,i){const a=y["default"].convertAppMark(this.tmplData.moban_app),s=0==t?e+1:t+1;return{page_name:"preview_page",$m_n:`assistant_area[${e+1}]`,$e_n:"resource",$e_t:"resource",$e_p:s,resource_id:this.tmplData.id,resource_app:this.tmplData.moban_app,resource_type:52==this.tmplData.file_type?"library":a,resource_name:this.tmplData.name,$f_t:this.tmplData.file_type,ad_id:this.adId,ad_name:i.ad_text,ad_type:0==t?"banner":"text_link",assistant_name:this.getAssistantName(i),jump_type:i.ad_type,pic_url:i.ad_url,ad_url:this.$_getAdFullUrl(i)}},onClickAd(e,t,i){var a;const s=this.getCommonCollect(e,t,i);null===(a=this.$_get_collect())||void 0===a||a.send("click",s),this.handleClick(i)},collectAdDisplay(e,t,i){if(this.showData[i.text])return{};{this.showData[i.text]=!0;const a=this.getCommonCollect(e,t,i);return a}},thumbUrl(e){return y["default"].multiplyKSyun({url:e,w:138,h:195,mode:1})}},watch:{tags:{handler(e){e.length&&this.initRecData()},immediate:!0,deep:!0}},computed:{...(0,c.mapState)("user",["isLogin"]),getGroupTags(){const e=[];return this.tags&&this.tags.length&&this.tags.forEach(t=>{t.name&&e.push(t.name)}),e}}},F=M;var j=(0,u.A)(F,E,O,!1,null,"a25987ee",null);const G=j.exports;var U=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"collect",rawName:"v-collect.display",value:Object.assign({},e.tianceEncBtnCollectParams),expression:"{\n    ...tianceEncBtnCollectParams,\n  }",modifiers:{display:!0}}],staticClass:"preview__link"},[e._v(" - "+e._s(e.previewTitle)+", "),i("span",{staticClass:"preview__btn",class:[{"is-download":e.isDownload||e.isPreDownload}],style:e.styleObj,on:{click:e.handleTextClick}},[e.textConfig.config&&e.textConfig.config.icon?i("img",{attrs:{loading:"lazy",src:e.textConfig.config&&e.textConfig.config.icon,alt:"",srcset:""}}):e._e(),e._v(" "+e._s(e.newBottomText)+" ")]),e._v(" - ")])},V=[],z=i(37415),W=i(73181);const K={__componentId:"__cid_d3a3c311",props:{isBought:{type:Boolean,default:!1},item:{type:Object,default:()=>({})},urls:{type:Array,default:()=>[]},btnDuration:{type:[Number,String],default:""},isPrivilegeFree:{type:Boolean,default:!1},payconfig:{type:String,default:""},paperBtnConfig:{type:Object,default:()=>({})},resumeMapId:{type:Number,default:0},resumeBtnConfig:{type:Object,default:()=>({})}},mixins:[d.A],inject:["getThemePages"],created(){w["default"].$on(C.eventName.displayAwait,this.displayReport)},beforeDestroy(){w["default"].$off(C.eventName.displayAwait,this.displayReport)},methods:{...(0,c.mapActions)("download",["setDownloadData"]),...(0,c.mapActions)("user",["checkUserInfo"]),handleTextClick(){var e;this.isEnterpriseTempalte$&&(null===(e=this.$_get_collect())||void 0===e||e.send("tiance_click",{...this.tianceEncBtnCollectParams.tianceParams}));if(this.isPaperValid){var t;const e={...this.getCommonCollect(),...this.paperCollectParams};return null===(t=this.$_get_collect())||void 0===t||t.send("click",e),void w["default"].$emit(C.eventName.paperEditBtn,!1)}this.resumeMapId>0&&this.resumeBtnConfig.is_hide_download_btn?this.jumpToResumeEditor():this.isDownload||this.$emit("download",y["default"].getRandomKey(),"previewendtip",this.textConfig)},handlerGoto(e){this.$emit("handlerGoto",e)},getCommonCollect(){var e,t;const i=this.item||{},a=y["default"].convertAppMark(i.moban_app,i.file_type);return{page_name:"preview_page",resource_id:i.id,$f_t:i.file_type,$e_n:"undertext",resource_app:i.moban_app,resource_type:52==i.file_type?"library":a,second_cat_id:i.catId||"",second_cat_name:i.catName||"",third_cat_name:i.childCatName||"",third_cat_id:i.childCatId||"",$m_n:"rightside_pay",$track:"",is_protected:52==i.file_type&&2==i.copyright,button_text:null===(e=this.textConfig)||void 0===e||null===(t=e.config)||void 0===t?void 0:t.title,duration:this.btnDuration,...this.appPreviewCollect||{}}},displayReport(){var e;const t={$e_t:"button",...this.getCommonCollect(),...this.paperCollectParams};null===(e=this.$_get_collect())||void 0===e||e.send("display",t)},jumpToResumeEditor(){var e;W.A.gotoTag({type:"resume",resume_type:"edit_page",link:`https://docerserver.wps.cn/resume_editor/template/${this.resumeMapId}?entity_template_id=${this.item.id}`,entryTo:"newfile_preview_online_edit_txtlink",position:"newfile_preview_online_edit_txtlink"}),null===(e=this.$_get_collect())||void 0===e||e.send("click",{resume_id:this.resumeMapId,...this.getCommonCollect()})}},computed:{...(0,c.mapState)("user",["userInfo","isClientLogin"]),...(0,c.mapState)("download",["downloadList"]),...(0,c.mapState)("common",["isDarkSkin","btnConfig","btnEncConfig"]),...(0,c.mapState)("preview",["appPreviewCollect"]),downloadText(){return this.isDownload?"正在下载":(this.isFree$?"免费":"立即")+this.useTypeText},previewTitle(){return this.isCopyRight?"试读已结束":`${this.isLibrary$?"文库":"模板"}样式${this.countLessPage?`剩余${this.countLessPage}%`:"已全部展示"}`},themePages(){return"function"==typeof this.getThemePages&&this.getThemePages()},countLessPage(){return this.isThemeMb$&&this.themePages?Math.floor(100*(1-this.urls.length/this.themePages)):!this.urls.length||!this.item.page||this.urls.length>=this.item.page?null:Math.floor(100*(1-this.urls.length/this.item.page))},isCopyRight(){return 52==this.item.file_type&&2==this.item.copyright},useTypeText(){return this.isCopyRight?"阅读全文":"下载"},isDownload(){const e=`${this.item.id}_${this.item.resource_type||1}`;return this.downloadList[e]&&this.downloadList[e].status==C.downloadStatus.progress},isLibrary(){return this.item&&52==this.item.file_type},textConfig(){let e=this.btnConfig.previewPageText||{},t=z.s.data.config.data.previewPageText;var i,a,s,r;return this.isEnterpriseTempalte$&&(e=this.btnEncConfig.previewPageText),this.isLibrary?this.isFree$?(null===(a=e)||void 0===a?void 0:a.freeLibrary)||t.library:(null===(i=e)||void 0===i?void 0:i.library)||t.library:this.isFree$&&this.curColorSchemeSaleMode$===C.colorSchemeSaleMode.free?null===(s=e)||void 0===s?void 0:s.freeUseBtn:null===(r=e)||void 0===r?void 0:r.default},styleObj(){var e;const t=(null===(e=this.textConfig)||void 0===e?void 0:e.config)||{};return{"--font-color":t[`font${this.isDarkSkin?"_dark":""}_color`],"--font-color-hover":t[`font${this.isDarkSkin?"_dark":""}_color_hover`],"--font-color-active":t[`font${this.isDarkSkin?"_dark":""}_color_click`]}},isPaperValid(){const{edit_switch:e,link_text:t}=this.paperBtnConfig;return!("on"!==e||!t)},newBottomText(){return this.isPaperValid?this.paperBtnConfig.link_text:this.resumeMapId>0&&this.resumeBtnConfig.is_hide_download_btn?this.resumeBtnConfig.link_text:null===(e=this.textConfig)||void 0===e||null===(t=e.config)||void 0===t?void 0:t.title;var e,t},paperCollectParams(){return this.isPaperValid?{$e_n:"online_editing",$e_t:"link",paper_id:this.paperBtnConfig.paper_id,button_text:this.paperBtnConfig.link_text}:{}},tianceEncBtnCollectParams(){return this.isEnterpriseTempalte$&&this.btnEncConfig.previewPageText._mk_key_?{tianceParams:{mk_key:this.btnEncConfig.previewPageText._mk_key_}}:{}}}},q=K;var H=(0,u.A)(q,U,V,!1,null,"2c5de7ea",null);const J=H.exports;var X=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.colorSchemes.length&&e.showColorScheme?i("div",{staticClass:"preview__color"},[i("div",{staticClass:"preview__color--title"},[i("span",{staticClass:"main-title"},[e._v("更改模板配色")]),i("div",{staticClass:"sub-title"},[i("span",{staticClass:"more-color",on:{click:function(t){return t.stopPropagation(),e.toggleMoreTipShow(!e.isShowMoreTip)}}},[e._v("更多配色")]),i("span",{directives:[{name:"show",rawName:"v-show",value:e.isShowMoreTip,expression:"isShowMoreTip"}],staticClass:"color-more-tip"},[e._v("更多配色方案请下载后在“设计-配色方案”中使用")])])]),i("div",{staticClass:"preview__color--schemelist"},e._l(e.colorSchemes,function(t,a){return i("ColorSchemeCard",{key:t.id+"_"+a,attrs:{isLoading:e.getStatus(a),colorBlock:t},on:{toggleScheme:e.toggleScheme}})}),1)]):e._e()},Q=[],Y=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"collect",rawName:"v-collect.display",value:Object.assign({},e.getCollectParams("display")),expression:"{\n    ...getCollectParams('display'),\n  }",modifiers:{display:!0}}],staticClass:"scheme",on:{click:e.handleClickScheme}},[i("div",{staticClass:"scheme-card",class:{selected:e.isSelected},style:{backgroundColor:e.colorBlock.bgColor}},[i("div",{staticClass:"scheme-card__text",style:{color:e.colorBlock.textColor}},[e._v("Aa")]),i("div",{staticClass:"scheme-card__panel"},e._l(e.colorBlock.colors,function(e,t){return i("div",{key:e+t,staticClass:"color-block",style:{backgroundColor:e}})}),0),i("SvgIcon",{directives:[{name:"show",rawName:"v-show",value:e.isLoading,expression:"isLoading"}],staticClass:"scheme-card__loading",attrs:{svgName:"loading"}}),i("SvgIcon",{directives:[{name:"show",rawName:"v-show",value:e.isSelected,expression:"isSelected"}],staticClass:"icon-selected",attrs:{svgName:"preview-color-selected"}})],1),i("div",{staticClass:"scheme-bottom",class:{selected:e.isSelected}},[e.colorBlock.name?i("div",{staticClass:"scheme-bottom__title"},[i("span",[e._v(e._s(e.colorBlock.name))]),i("SvgIcon",{directives:[{name:"show",rawName:"v-show",value:e.showIcon&&e.isSelected,expression:"showIcon && isSelected"}],attrs:{svgName:"preview-color-nofree"}})],1):e._e()])])},Z=[];const ee=y["default"].debounce(300),te={__componentId:"__cid_2b79c5a7",name:"ColorSchemeCard",props:{colorBlock:{type:Object,default:()=>({})},isLoading:{type:Boolean,default:!1}},inject:["getSchemeIconState"],computed:{...(0,c.mapState)("user",["isClientLogin","isMember"]),...(0,c.mapState)("preview",["currentColorSchemeIdx"]),...(0,c.mapState)("common",["isDarkSkin"]),...(0,c.mapState)("preview",["appPreviewCollect"]),isSelected(){return this.currentColorSchemeIdx===this.colorBlock.id},showIcon(){const e="function"==typeof this.getSchemeIconState&&this.getSchemeIconState();return this.isClientLogin&&!this.isMember&&this.colorBlock.sale_mode!==C.colorSchemeSaleMode.free&&e}},methods:{handleClickScheme(){this.sendClickCollect(),this.isLoading||this.isSelected||ee(()=>{this.$emit("toggleScheme",this.colorBlock.id)})},sendClickCollect(){var e;null===(e=this.$_get_collect())||void 0===e||e.send("click",this.getCollectParams("click"))},getCollectParams(e){const{rid:t,name:i,policy:a,curMbId:s}=this.colorBlock,r={$m_n:"color_matching",$e_n:"color_card",$e_t:"resource",page_name:"preview_page",resource_id:this.appPreviewCollect.resource_id,color:t,resource_type:"beauty_color",resource_name:i,file_type:71,policy:a,pre_resource_id:s,content_name:"",config_name:"",act:"click"===e?"preview":"",recommend_id:this.appPreviewCollect.recommend_id,$track:""};return r}}},ie=te;var ae=(0,u.A)(ie,Y,Z,!1,null,"9ba4159e",null);const se=ae.exports,re={__componentId:"__cid_f930b7b6",name:"PreviewColorScheme",components:{ColorSchemeCard:se},created(){w["default"].$on(C.eventName.clickDocument,this.toggleMoreTipShow)},inject:["getColorSchemeState"],beforeDestroy(){this.clickIndex=0,w["default"].$off(C.eventName.clickDocument,this.toggleMoreTipShow)},data(){return{clickIndex:0}},computed:{...(0,c.mapState)("preview",["colorSchemes","isShowMoreTip","changeStatus"]),showColorScheme(){return"function"==typeof this.getColorSchemeState&&this.getColorSchemeState()}},methods:{...(0,c.mapActions)("preview",["setShowMoreTip","setCurrentColorSchemeIndex"]),toggleScheme(e){this.clickIndex=e,w["default"].$emit(C.eventName.changeStyleMbPreview,e)},toggleMoreTipShow(e=!1){this.setShowMoreTip(e)},getStatus(e){return this.changeStatus===C.netStatus.loading&&this.clickIndex===e}}},ne=re;var oe=(0,u.A)(ne,X,Q,!1,null,"1e6a91aa",null);const le=oe.exports,ce={__componentId:"__cid_a3ff77e3",data(){return{netStatus:C.netStatus,footerAdIsShow:!1,isFixed:!1,visMonitor:null,linkElm:null,loadDuration:null,hasReport:!1,isColorSchemeShow:!1,previewListElm:null,io:null}},props:{urls:{type:Array,default(){return[]}},likeData:{type:Array,default(){return[]}},policy:String,requestId:String,item:{type:Object,default(){return{}}},catData:{type:Object,default(){return{}}},isBought:Boolean,statusCode:String,hasChangeBought:Boolean,currentAppName:String,index:Number,videoUrl:String,otherCollectInfo:{type:Object,default(){return{}}},tags:{type:Array,default(){return[]}},payconfig:{type:String,default:""},loadBeginTime:{type:[Number,String],default:""},isPrivilegeFree:{type:Boolean,default:!1},paperBtnConfig:{type:Object,default:()=>({})},paperId:{type:Number,default:0},isCenter:{type:Boolean,default:!1},resumeMapId:{type:Number,default:0},resumeBtnConfig:{type:Object,default:()=>({})}},methods:{onDownload(e,t,i){this.$emit("download",e,t,i)},handlerGoto(e){this.$emit("handlerGoto",e)},loadMoreGuessLike(){this.$emit("loadMoreGuessLike")},footerCoverIsShow(e){this.footerAdIsShow=e},observeLinkPosition(){this.visMonitor=new IntersectionObserver(e=>{this.statusCode||e.forEach(e=>{this.isFixed=!e.isIntersecting})}),this.linkElm=document.getElementById("linkTarget"),this.linkElm&&this.visMonitor.observe(this.linkElm)},observePreviewList(){this.io=new IntersectionObserver(e=>{e.forEach(e=>{this.isColorSchemeShow=e.isIntersecting})}),this.previewListElm=document.querySelector(".preview__list"),this.previewListElm&&this.io.observe(this.previewListElm)},handleClickPreviewMain(){w["default"].$emit(C.eventName.clickDocument,!1)}},inject:["getThemeRecommendState"],computed:{...(0,c.mapState)("common",["isDarkSkin"]),...(0,c.mapState)("preview",["likeDataPrivacySwitch"]),...(0,c.mapGetters)("company",["getClientEntryStatus"]),showLikeList(){var e;return 113==(null===(e=this.item)||void 0===e?void 0:e.file_type)?"function"==typeof this.getThemeRecommendState&&this.getThemeRecommendState()&&!this.likeDataPrivacySwitch:!this.likeDataPrivacySwitch}},watch:{statusCode(){if(this.statusCode||this.hasReport)this.hasReport&&(this.hasReport=!1);else{this.loadDuration=(new Date).getTime()-this.loadBeginTime,this.$nextTick(()=>{const e=this.$refs.bottomLink;e&&(!this.paperId&&e.displayReport&&e.displayReport(),this.hasReport=!0)});try{this.observeLinkPosition(),this.observePreviewList()}catch(e){}}}},components:{ImgList:A,LikeList:B,RecList:G,BottomLink:J,PreviewColorScheme:le},beforeDestroy(){this.linkElm&&this.visMonitor&&this.visMonitor.unobserve(this.linkElm),this.visMonitor=null,this.linkElm=null,this.io&&this.io.disconnect(),this.previewListElm=null,this.io=null,this.isFixed=!1,this.isColorSchemeShow=!1}},de=ce;var pe=(0,u.A)(de,r,n,!1,null,"54ecd048",null);const he=pe.exports;var _e=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"preview__top"},[i("h4",{staticClass:"preview__title g-multiline-text g-multiline-text-2",attrs:{title:e.item.name}},[e._v(" "+e._s(e._f("toSubStr")(e.item.name))+" ")]),e.isThemeMb$?e._e():i("div",{staticClass:"preview__meta l-d-flex l-justify-content-between"},[2!=e.item.resource_type?i("div",{staticClass:"preview__meta-fav l-d-flex l-align-items-center",on:{click:e.onClickFav}},[i("SvgIcon",{attrs:{svgName:e.svgStarName,className:"g-font_size-16"}}),i("i",{staticClass:"preview__num"},[e._v("收藏")]),e.collectTipShow?i("div",{staticClass:"fav__sidetip",on:{click:function(e){e.stopPropagation()}}},[i("CollectTip",{attrs:{collectTipShow:e.collectTipShow,qrCodeImg:e.qrCodeImg,resourceType:e.resourceType},on:{favClose:e.favClose,FavGo:e.FavGo}})],1):e._e()],1):e._e(),i("span",{staticClass:"l-d-flex l-align-items-center"},[i("SvgIcon",{attrs:{svgName:"hot-16",className:"g-font_size-16"}}),i("i",{staticClass:"preview__num",attrs:{title:e._f("toUnitWInt")(e.previewNum,"w+")}},[e._v(e._s(e._f("toUnitWInt")(e.previewNum,"w+")))])],1),i("span",{staticClass:"l-d-flex l-align-items-center"},[i("SvgIcon",{attrs:{svgName:"page-16",className:"g-font_size-16"}}),i("i",{staticClass:"preview__num"},[e._v(e._s(e.item.page||0)+"页")])],1)]),i("dl",{staticClass:"preview__info"},[e.isThemeMb$?e._e():[i("dt",[e._v("作者")]),i("dd",{staticClass:"g-text-overflow",attrs:{title:e.item.author||""}},[e._v(e._s(e.item.author||""))])],i("dt",[e._v("尺寸")]),i("dd",[e._v(e._s(2!=e.item.resource_type?"A4":"16:9"))]),e.isEnterpriseTempalte$?[i("dt",[e._v(e._s(e.enterpriseText.dt))]),i("dd",[e._v(e._s(e.enterpriseText.dd))])]:[i("dt",[e._v("授权类型")]),i("dd",[i("div",{staticClass:"message-icon l-d-flex l-align-items-center"},[e._v(" 个人学习不支持商用"),i("SvgIcon",{attrs:{svgName:"preview-info-16"}})],1),i("div",{staticClass:"right-tip"},[i("div",{staticClass:"right-tip__icon"}),e._v(" "+e._s(e.rightText)+" ")])]),i("dt",[e._v("提醒")]),i("dd",[e._v(e._s(e.remindText))])],e.isAiGenerateResource?[i("dt",[e._v("使用说明")]),i("dd",[e._v("包含AI生成内容")])]:e._e()],2),e.isFixed?i("div",{style:{height:e.fillDomHeight+"px"}}):e._e(),i("div",{staticClass:"preview__btngroup",class:{"is-fixed":e.isFixed},attrs:{id:"preview-btngroup"}},[e.isFixed?i("h4",{staticClass:"preview__title g-multiline-text g-multiline-text-2",attrs:{title:e.item.name}},[e._v(" "+e._s(e._f("toSubStr")(e.item.name))+" ")]):e._e(),e.showPriceLink?i("div",{staticClass:"preview__price l-d-flex l-justify-content-center"},[i("Price",{attrs:{mark:"preview",isPrivilegeFree:e.isPrivilegeFree,isFetchingMbStatus:e.isFetchingMbStatus,item:e.item,isBought:e.isBought},on:{click:e.priceLinkBuy,handleDisplay:e.priceDisplayCollect}})],1):e._e(),e.statusCode!=e.netStatus.tempDisable?[e.isDownload?i("div",{staticClass:"preview__btn-wrap preview__download",class:{"preview__btn-free":e.isFree$}},[i("ItemDownload",{attrs:{id:e.item.id,resourceType:e.item.resource_type},on:{retry:e.handleRetry}})],1):e._e(),e.showResumeBtn?i("ResumeBtn",{attrs:{baseData:e.item,resumeBtnConfig:e.resumeBtnConfig,resumeMapId:e.resumeMapId,resumeStyleId:e.resumeStyleId,resumeTemplateType:e.resumeTemplateType}}):e._e(),e.hasChangeBought&&!e.isDownload?i("div",{staticClass:"preview__btn-wrap",class:{"preview__btn-free":e.isFree$,"preview__btn-wrap--resume":e.showResumeBtn}},[e.isHideBtn?e._e():i("PreviewOpBtn",{attrs:{previewBtnConfig:e.previewBtnConfig,freeTrialOpData:e.freeTrialOpData,freeTrialBtnText:e.freeTrialBtnText,paperId:e.paperBtnConfig.paper_id,resourceCollectParams:e.tianceEncBtnCollectParams},on:{click:e.handleBtnClick}})],1):e._e(),i("PaperBtn",{attrs:{btnConfig:e.paperBtnConfig}})]:i("div",{staticClass:"preview__btn-wrap preview__btn-disable"},[i("a",{staticClass:"preview__btn"},[e._v("资源已下架")])])],2),e.adData&&e.adData.ad_text&&e.isShowAd&&!e.isPdf&&"on"!==e.paperBtnConfig.edit_switch&&!e.isEnterpriseTempalte$?i("div",{directives:[{name:"collect",rawName:"v-collect.display",value:Object.assign({},e.collectAdDisplay()),expression:"{\n      ...collectAdDisplay(),\n    }",modifiers:{display:!0}}],staticClass:"preview__tip",on:{click:e.onClickAd}},[i("a",{attrs:{href:"javascript:void(0)"}},[i("p",[e._v(e._s(e.adData.children&&e.adData.children.dic_text))]),i("p",[e._v(e._s(e.adData.ad_text))])])]):e._e()])},me=[],ue=i(66622),ve=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"download",class:{"download--error":!e.isDownloadErr}},[i("div",{staticClass:"download__progress-wrap"},[i("span",{staticClass:"download__progress",style:{width:e.progress+"%"}})]),e.isPreDownload?i("div",{staticClass:"download__tip"},[e._v("准备下载中...")]):e.isDownload?i("div",{staticClass:"download__tip"},[e._v("下载"+e._s(e.progress)+"%")]):i("div",{staticClass:"download__tip l-d-flex l-justify-content-between l-align-items-center"},[i("span",{staticClass:"download__error l-d-flex l-justify-content-between l-align-items-center"},[e._v(e._s(e.msg)),i("SvgIcon",{attrs:{svgName:"download-error"}})],1),i("span",{staticClass:"download__btns l-d-flex l-justify-content-between l-align-items-center"},[i("span",{on:{click:function(t){return t.stopPropagation(),e.onClickRetry.apply(null,arguments)}}},[i("SvgIcon",{attrs:{svgName:"download-retry"}})],1),i("span",{on:{click:function(t){return t.stopPropagation(),e.onClickClose.apply(null,arguments)}}},[i("SvgIcon",{attrs:{svgName:"download-cancel"}})],1)])])])},ge=[];const fe={__componentId:"__cid_0373c90c",data(){return{}},props:["id","resourceType"],methods:{...(0,c.mapActions)("download",["setDownloadStatus"]),onClickRetry(){this.$emit("retry")},onClickClose(){this.setDownloadStatus({id:`${this.id}_${this.resourceType||1}`,status:C.downloadStatus.finish})}},computed:{...(0,c.mapState)("download",["downloadList"]),downloadObj(){return this.downloadList[`${this.id}_${this.resourceType||1}`]},isPreDownload(){return this.downloadObj&&this.downloadObj.status==C.downloadStatus.preDownload},isDownload(){return this.downloadObj&&this.downloadObj.status==C.downloadStatus.progress},progress(){return this.downloadObj&&this.downloadObj.progress},isDownloadErr(){return this.downloadObj&&this.downloadObj.status==C.downloadStatus.error},msg(){return this.downloadObj&&this.downloadObj.msg||"下载失败"}}},ye=fe;var we=(0,u.A)(ye,ve,ge,!1,null,"163b3770",null);const Ce=we.exports;var be=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"price",class:{"price_max-width":"preview"==e.mark}},["preview"==e.mark?i("div",{staticClass:"price-preview"},[e.showPriceLink?i("div",{staticClass:"price__link",class:{"text-link":!e.isCanuse$},on:{click:e.openLink}},[i("span",[e._v(e._s(e.finalPrice)+"立即购买")])]):e._e()]):e._e()])},ke=[];const Se={__componentId:"__cid_14d620f7",name:"Price",props:{mark:{type:String,require:!0},item:{type:Object,default:()=>({})},isBought:{type:Boolean,default:!1},hideLink:{type:Boolean,default:!1},skeleton:{type:Boolean,default:!1},isPrivilegeFree:{type:Boolean,default:!1},isFetchingMbStatus:{type:Boolean,default:!1}},mixins:[d.A],mounted(){this.handleDisplay("retail")},computed:{...(0,c.mapState)("user",["userInfo","isLogin","isClientLogin"]),finalPrice(){return this.isFree$||!this.originPrice?"":this.originPrice?`¥${(this.originPrice/100).toFixed(2)}`:""},originPrice(){return this.item.price||this.item.original_price||0},showPriceLink(){return this.finalPrice&&!(this.isCanuse$||this.isLibrary$||this.isFetchingMbStatus||b.appInfo.isMac||b.appInfo.isOhos)}},methods:{handleClick(){const e={act:"retail",pay_type:"retail"};this.isLibrary$&&Object.assign(e,{report:this.getReportParams()}),this.$emit("click",e)},openLink(){!this.isCanuse$&&this.handleClick()},handleDisplay(e){this.$emit("handleDisplay",e,this.isLibrary$?this.getReportParams():{})},getReportParams(){return{resource_sell_type:{1:"免费",2:"仅会员",4:"仅零售",6:"会员免费加零售"}[this.item.downloadable||6],original_price:this.originPrice,buy_price:this.item.discounted_price||this.originPrice,discount:this.item.current_discount}}},filters:{changPrice(e){return(e/100).toFixed(2)||0}}},$e=Se;var Ae=(0,u.A)($e,be,ke,!1,null,"55fc0afa",null);const Pe=Ae.exports;var Ie=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.collectTipShow?i("div",{staticClass:"fav kf-am-fade-in"},[i("SvgIcon",{staticClass:"item-svg",attrs:{svgName:"arrow-top-16"}}),i("div",{staticClass:"fav-main"},[i("div",{staticClass:"fav-close",on:{click:function(t){return t.stopPropagation(),e.close.apply(null,arguments)}}},[i("SvgIcon",{attrs:{svgName:"icon-close"}})],1),i("div",{staticClass:"fav-tip"},[i("SvgIcon",{attrs:{svgName:"fav-success-16"}}),e._v("收藏成功")],1),i("div",{staticClass:"collect-view"},[e._v("可前往"),i("a",{staticClass:"fav-a",on:{click:function(t){return t.stopPropagation(),e.goCollection.apply(null,arguments)}}},[e._v("收藏")]),e._v("查看")])])],1):e._e()},Te=[];const De={__componentId:"__cid_4a6e4d1b",name:"CollectTip",data(){return{imgLoaded:!1}},props:{collectTipShow:Boolean,qrCodeImg:{type:String,default:""},resourceType:String},computed:{isLibrary(){return"library"===this.resourceType}},methods:{close(){this.$emit("favClose")},goCollection(){this.$emit("FavGo")}}},xe=De;var Ne=(0,u.A)(xe,Ie,Te,!1,null,"2c6d30b4",null);const Be=Ne.exports;var Ee=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.resumeBtnConfig&&e.resumeBtnConfig.btn_text?i("button",{directives:[{name:"collect",rawName:"v-collect.display",value:e.collectParams(),expression:"collectParams()",modifiers:{display:!0}}],staticClass:"resume__btn",on:{click:function(t){return t.stopPropagation(),e.jumpToResumeEditor()}}},[i("SvgIcon",{staticClass:"svg-edit",attrs:{"svg-name":"pen"}}),e._v(" "+e._s(e.resumeBtnConfig.btn_text)+" ")],1):e._e()},Oe=[];const Re={__componentId:"__cid_82c9ec82",name:"ResumeBtn",props:["baseData","resumeMapId","resumeBtnConfig","resumeStyleId","resumeTemplateType"],mixins:[R.A,ue.A],methods:{jumpToResumeEditor(){var e,t;const i=this.resumeStyleId>0&&null!==(e=this.resumeBtnConfig)&&void 0!==e&&e.ai_template_swtich?`https://clientweb.docer.wps.cn/resume_editor/template/assembly?style_id=${this.resumeStyleId}`:`https://clientweb.docer.wps.cn/resume_editor/template/${this.resumeMapId}?entity_template_id=${this.baseData.id}`;W.A.gotoTag({type:"resume",resume_type:"edit_page",link:i,entryTo:"newfile_preview_online_edit_button",position:"newfile_preview_online_edit_button"}),null===(t=this.$_get_collect())||void 0===t||t.send("click",this.collectParams())},collectParams(){return{$e_n:"resume_edit",$e_t:"button",resource_id:this.baseData.id,resource_name:this.baseData.name,resource_type:y["default"].convertAppMark(this.baseData.moban_app,this.baseData.file_type),resume_id:this.resumeMapId,template_type:this.resumeTemplateType,module_name:"rightside_pay",page_name:"preview_page"}}}},Le=Re;var Me=(0,u.A)(Le,Ee,Oe,!1,null,"4a863612",null);const Fe=Me.exports;var je=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.isShowBtn?i("div",{directives:[{name:"collect",rawName:"v-collect.display",value:Object.assign({},e.commonCollectParams,{tianceParams:{mk_key:e.btnConfig.mk_key}}),expression:"{\n    ...commonCollectParams,\n    tianceParams: {\n      mk_key: btnConfig.mk_key,\n    },\n  }",modifiers:{display:!0}}],staticClass:"paper-edit-btn",on:{click:e.handleBtnClick}},[e._v(" "+e._s(e.btnConfig.edit_btn_text)+" ")]):e._e()},Ge=[];const Ue={__componentId:"__cid_35602828",mixins:[ue.A],props:{btnConfig:{type:Object,default:()=>({})}},created(){w["default"].$on(C.eventName.paperEditBtn,this.handleBtnClick)},beforeDestroy(){w["default"].$off(C.eventName.paperEditBtn,this.handleBtnClick)},computed:{...(0,c.mapState)("common",["appName"]),isShowBtn(){var e;return"on"===(null===(e=this.btnConfig)||void 0===e?void 0:e.edit_switch)},btnData(){const{paper_id:e,policy:t}=this.btnConfig||{},i=`${b.appInfo.name}_newfile_${T.A.getSearchSource()}_${t}`;return{jump_type:"17",app_id:"wpszujuan",src:i,url_params:`/paper/view/${e}?v=1`,...this.btnConfig}},commonCollectParams(){var e;const{paper_id:t,edit_btn_text:i,file_type:a}=this.btnConfig;return{$m_n:"rightside_pay",$e_n:"online_editing",$e_t:"button",page_name:"preview_page",resource_id:null===(e=this.btnConfig)||void 0===e?void 0:e.resource_id,resource_type:this.appName,button_text:i,paper_id:t,file_type:a}}},methods:{handleBtnClick(e=!0){e?this.$_tiance_adClickHandler(this.btnData,{collectParams:{...this.commonCollectParams},tianceParams:{mk_key:this.btnConfig.mk_key}}):this.$_tiance_adClickHandler(this.btnData)}}},Ve=Ue;var ze=(0,u.A)(Ve,je,Ge,!1,null,"0668ea20",null);const We=ze.exports;var Ke=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("a",{staticClass:"preview__btn preview__newpri",style:e.processStyleObj,attrs:{id:"newpri",href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleClick.apply(null,arguments)}}},[e.freeTrialBtnText&&!e.paperId?[i("span",[e._v(e._s(e.freeTrialBtnText))]),e.freeTrialBadgeText?i("div",{staticClass:"badge"},[e._v(" "+e._s(e.freeTrialBadgeText)+" ")]):e._e()]:[e.previewBtnConfig.config.icon?i("img",{attrs:{loading:"lazy",src:e.previewBtnConfig.config.icon,alt:"",srcset:""}}):e._e(),e._v(" "+e._s(e.previewBtnConfig.config.title)+" ")]],2)])},qe=[];const He=y["default"].debounce(200),Je={__componentId:"__cid_1a886c8d",props:{previewBtnConfig:{type:Object,default(){return{}}},freeTrialOpData:{type:Object,default(){return{}}},freeTrialBtnText:{type:String,default:""},paperId:{type:Number,default:0},resourceCollectParams:{type:Object,default(){return{}}}},mounted(){this.displayReport()},computed:{...(0,c.mapState)("common",["isDarkSkin"]),...(0,c.mapState)("preview",["appPreviewCollect"]),freeTrialBadgeText(){return this.freeTrialOpData&&this.freeTrialOpData.new_btn_subscript||""},processStyleObj(){const e=this.previewBtnConfig.config;return{"--background-color":e[`btn${this.isDarkSkin?"_dark":""}_color`],"--background-color-hover":e[`btn${this.isDarkSkin?"_dark":""}_color_hover`],"--background-color-active":e[`btn${this.isDarkSkin?"_dark":""}_color_click`],"--font-color":e[`font${this.isDarkSkin?"_dark":""}_color`],"--font-color-hover":e[`font${this.isDarkSkin?"_dark":""}_color_hover`],"--font-color-active":e[`font${this.isDarkSkin?"_dark":""}_color_click`]}}},methods:{handleClick(){He(()=>{this.$emit("click",this.previewBtnConfig)})},displayReport(){var e;const t={default:"use_btn",freeUseBtn:"use_btn",library:"library_btn",freeLibrary:"library_btn"}[this.previewBtnConfig.btn_type],i={page_name:"preview_page",$m_n:"rightside_pay",$e_n:t,$e_t:"button",category_name:"",button_text:this.previewBtnConfig.config.title,$track:"",...this.appPreviewCollect||{},...this.resourceCollectParams};var a;(null===(e=this.$_get_collect())||void 0===e||e.send("display",i),this.resourceCollectParams.tianceParams)&&(null===(a=this.$_get_collect())||void 0===a||a.send("tiance_show",this.resourceCollectParams.tianceParams))}}},Xe=Je;var Qe=(0,u.A)(Xe,Ke,qe,!1,null,"2be3ef35",null);const Ye=Qe.exports,Ze=[480014,532428];function et(e=[]){const t=Array.isArray(e)?e.map(e=>null===e||void 0===e?void 0:e.id):[];return Ze.some(e=>t.includes(e))}const tt={__componentId:"__cid_b3a8bca7",name:"PreviewSidebarTop",data(){return{rightText:"数字产品本身(包括但不限于文字模板、表格模板、演示模板等)及其包含的全部素材(包括但不限于字体、图片、图标、文字框、艺术字等)均不支持商用,仅能为个人学习,研究或欣赏目的使用。",linkTextStyle:{"--linktextcolor":'var(--theme-wps-01")'},netStatus:C.netStatus,adData:{},qrCodeImg:"",qrCodeADData:{}}},mixins:[d.A,R.A,ue.A],props:{item:{type:Object,default(){return{}}},isBought:Boolean,hasChangeBought:Boolean,index:Number,otherCollectInfo:{type:Object,default(){return{}}},isFav:Boolean,isShowAd:Boolean,resourceType:[String,Number],statusCode:{type:String,default:""},collectTipShow:Boolean,isFixed:{type:Boolean,default:!1},fillDomHeight:{type:Number,default:0},payconfig:{type:String,default:""},freeTrialBtnText:{type:String,default:""},freeTrialOpData:{type:Object,default(){return{}}},isPrivilegeFree:{type:Boolean,default:!1},isFetchingMbStatus:{type:Boolean,default:!1},paperBtnConfig:{type:Object,default:()=>({})},resumeMapId:{type:Number,default:0},resumeStyleId:{type:Number,default:0},resumeBtnConfig:{type:Object,default:()=>({})},resumeTemplateType:{type:String,default:""}},mounted(){this.getAd()},methods:{...(0,c.mapActions)("download",["setDownloadData"]),...(0,c.mapActions)("user",["checkUserInfo"]),...(0,c.mapActions)("fav",["setFavAdd","setFavRemove","changeFav"]),getAd(){this.$_ad_getTiance({params:{channel_code:C.adFlag.TIANCE_PREVIEW_DOWNLOAD_TEXT},timeout:3e3}).then(e=>{this.adData=this.$_tiance_dataInit(e&&e.data||[])[C.adFlag.TIANCE_PREVIEW_DOWNLOAD_TEXT]||{}}).catch(e=>{})},handleBuyMember(e,t,i){var a,s,r;let n=this.getCommonCollect();n=y["default"].extend(n,{$e_t:"button",$e_n:"open_vip_download",$m_n:"rightside_pay",pay_key:e,act:"pay",pay_type:`open_${null===i||void 0===i?void 0:i.sku_key}`}),t&&(null===(a=this.$_get_collect())||void 0===a||a.send("click",n));const o=T.A.getPosition(),l=T.A.getCsource();null===(s=this.$_get_collect())||void 0===s||s.sendPayCollect({pay_key:e,mb_id:this.item.id,belong_func:this.item.file_type});const{klm:c,pre_klm:d}=(null===(r=this.$_get_collect())||void 0===r?void 0:r.getKlmInfo(n))||{};W.A.gotoTag({type:"member",csource:l,position:o,payKey:e,resid:this.item.id,reason:"preview>sidebar>top>template",payconfig:this.payconfig||(null===i||void 0===i?void 0:i.payconfig)||"",fileType:this.item.file_type,sku_key:null===i||void 0===i?void 0:i.sku_key,klm:c,pre_klm:d})},handleBuyMb(e){T.A.setOriginInfo({btnName:"previewretail"});const t=JSON.parse(JSON.stringify(this.item));this.setDownloadData({id:t.id,data:t}),W.A.gotoTag({type:"mb",id:t.id,fileType:t.file_type,payKey:e})},onClickMemberBuyBtn(e,t){if(this.freeTrialBtnText)return this.$emit("getFreeMember","right");if(!this.isLogin){var i;let e=this.getCommonCollect();e=y["default"].extend(e,{$e_t:"button",$e_n:"login_download",$m_n:"rightside_pay",act:"login"}),null===(i=this.$_get_collect())||void 0===i||i.send("click",e)}this.checkUserInfo().then(()=>{var i;const a=null===(i=this.$_get_collect())||void 0===i?void 0:i.createPayKey();T.A.setOriginInfo({btnName:e,btnPage:"preview",preview:this.item.video_url?"dy1":"sc1"});const s=()=>{this.handleBuyMember(a,e,t)};this.handlerGoto(s)}).catch(e=>{})},copyData(){let e={};try{e=JSON.parse(JSON.stringify(this.adData))}catch(t){}return e},onClickAd(){var e,t,i;const a=this.copyData(),s=null===(e=this.$_get_collect())||void 0===e?void 0:e.createPayKey();a.payKey=s,a.reason="preview>sidebarBottom>Ad",a.funcName="pretext",T.A.setOriginInfo({btnName:"previewadlink"});let r=this.getCommonCollect();r=y["default"].extend(r,{ad_id:C.adFlag.TIANCE_PREVIEW_DOWNLOAD_TEXT,text:`${a.children&&a.children.dic_text+a.children.button_text||""}`,$e_t:"ad",$e_n:"ad_link",$m_n:"rightside_pay",special_id:this.item.special_id,url:a.pic_link,jump_type:a.ad_type}),null===(t=this.$_get_collect())||void 0===t||t.send("click",r),a.mk_key&&(null===(i=this.$_get_collect())||void 0===i||i.send("tiance_click",{mk_key:a.mk_key})),this.$_clickNewAD(a)},collectAdDisplay(){if(this.isShowAd){const e=this.copyData();let t=this.getCommonCollect();return t=y["default"].extend(t,{ad_id:C.adFlag.TIANCE_PREVIEW_DOWNLOAD_TEXT,text:`${e.children&&e.children.dic_text+e.children.button_text||""}`,$e_t:"ad",$e_n:"ad_link",$m_n:"rightside_pay",special_id:this.item.special_id,url:e.pic_link,jump_type:e.ad_type,tianceParams:{mk_key:e.mk_key||""}}),t}return{}},priceLinkBuy(e={}){var t;const i=e.act,a=this.getCommonCollect();if(this.isClientLogin){var s;const t=null===(s=this.$_get_collect())||void 0===s?void 0:s.createPayKey();a.pay_key=t,e.download_key=t,T.A.setOriginInfo({btnName:"previewretail",btnPage:"preview",preview:this.item.video_url?"dy1":"sc1"});const r=()=>{"retail"==i?this.handleBuyMb(t):this.handleBuyMember(t)};this.handlerGoto(r)}else{var r;null===(r=f["default"].get())||void 0===r||r.login()}let n="member"==i?"vip_discount":"retail_download";this.isCopyRight&&(n="library_read"),null===(t=this.$_get_collect())||void 0===t||t.send("click",Object.assign(a,{$e_t:"button",$e_n:n,$m_n:"rightside_pay",act:this.isClientLogin?"pay":"login",is_protected:this.isCopyRight},e.report))},priceDisplayCollect(e,t={}){var i;const a=this.getCommonCollect();null===(i=this.$_get_collect())||void 0===i||i.send("display",Object.assign(a,{$e_t:"button",$e_n:"member"==e?"vip_discount":"retail_download",$m_n:"rightside_pay"},t))},handlerGoto(e){this.$emit("handlerGoto",e)},handleRetry(){this.handleBtnClick()},onClickFav(){var e,t;if(!this.isClientLogin)return void(null===(t=f["default"].get())||void 0===t||t.login());let i=this.getCommonCollect();i=y["default"].extend(i,{$e_t:"button",$e_n:"collect",$m_n:"rightside_pay",act:this.isFav?"uncollect":"collect"}),null===(e=this.$_get_collect())||void 0===e||e.send("click",i);const a=this.item.id;this.isFav?this.setFavRemove({id:a,file_type:this.item.file_type||1}).then(e=>{"ok"===e.result&&(this.$emit("changeFav",a,!1,-1),this.changeFav({tid:a,isCollect:!1}))}):this.setFavAdd(JSON.parse(JSON.stringify(this.item))).then(e=>{if(!e)return;const t="ok"===e.result||"one"===e.msg?1:0;"ok"===e.result&&this.changeFav({tid:a,isCollect:t}),this.$emit("changeFav",a,t,this.qrCodeADData)})},getCommonCollect(){const e=this.item||{},t=y["default"].convertAppMark(e.moban_app,e.file_type);return{page_name:"preview_page",resource_id:e.id,$f_t:e.file_type,resource_app:e.moban_app,resource_type:52==e.file_type?"library":t,second_cat_id:e.catId||"",second_cat_name:e.catName||"",third_cat_name:e.childCatName||"",third_cat_id:e.childCatId||"",is_protected:this.isCopyRight,$track:"",mk_key:this.appPreviewCollect.mk_key||"",...this.appPreviewCollect||{}}},favClose(){this.$emit("favClose")},FavGo(){this.$emit("FavGo")},handleBtnClick(){var e,t;this.isEnterpriseTempalte$&&(null===(t=this.$_get_collect())||void 0===t||t.send("tiance_click",{...this.tianceEncBtnCollectParams.tianceParams}));if(this.freeTrialBtnText&&(null===(e=this.paperBtnConfig)||void 0===e||!e.paper_id))return this.$emit("getFreeMember","right");this.$emit("download",y["default"].getRandomKey(),"previewbtn",this.previewBtnConfig)}},computed:{...(0,c.mapState)("preview",["appPreviewCollect","appPreviewNewAd"]),...(0,c.mapState)("user",["isClientLogin","isLogin"]),...(0,c.mapState)("download",["downloadList"]),...(0,c.mapState)("common",["isDarkSkin","btnConfig","btnEncConfig"]),downloadBtnText(){return(this.isFree$?"免费":"立即")+this.useTypeText},remindText(){return this.isCopyRight?"数字产品不支持商用和退货;本文档仅支持在线阅读":"数字产品不支持商用和退货"},useTypeText(){return this.isCopyRight?"阅读全文":"下载"},isCopyRight(){return 52==this.item.file_type&&2==this.item.copyright},isDownload(){const e=`${this.item.id}_${this.item.resource_type||1}`;return this.downloadList[e]&&this.downloadList[e].status!=C.downloadStatus.finish},svgStarName(){return this.isFav?"star-active-18-2":"star-18-2"},isPdf(){return 14==this.item.moban_app},isLibrary(){return this.item&&52==this.item.file_type},previewBtnConfig(){let e=this.btnConfig.previewPageBtn,t=z.s.data.config.data.previewPageBtn;var i,a,s,r;return this.isEnterpriseTempalte$&&(e=this.btnEncConfig.previewPageBtn),this.isLibrary?this.isFree$?(null===(a=e)||void 0===a?void 0:a.freeLibrary)||t.library:(null===(i=e)||void 0===i?void 0:i.library)||t.library:this.isFree$&&this.curColorSchemeSaleMode$===C.colorSchemeSaleMode.free?null===(s=e)||void 0===s?void 0:s.freeUseBtn:null===(r=e)||void 0===r?void 0:r.default},isHideBtn(){var e;if(this.resumeMapId>0)return this.resumeBtnConfig.is_hide_download_btn&&(null===(e=this.resumeBtnConfig.wps_template)||void 0===e?void 0:e.includes(this.item.id));const{download_switch:t,edit_switch:i}=this.paperBtnConfig||{};return("off"!==t||"off"!==i)&&"off"===this.paperBtnConfig.download_switch},previewNum(){return this.item.p_count||this.item.preview_num},enterpriseText(){return this.isEnterpriseTempalte$?this.isEduCompany?{dt:"教育专享",dd:"该模板由学校采购,畅享海量精选模板"}:{dt:"企业专享",dd:"该模板由企业采购,畅享海量精选模板"}:{}},tianceEncBtnCollectParams(){return this.isEnterpriseTempalte$&&this.btnEncConfig.previewPageBtn._mk_key_?{tianceParams:{mk_key:this.btnEncConfig.previewPageBtn._mk_key_}}:{}},showPriceLink(){return!this.$isPad&&!this.isFree$&&this.hasChangeBought&&!this.statusCode&&!this.paperBtnConfig.paper_id&&!this.isEnterpriseTempalte$&&!this.showResumeBtn},showResumeBtn(){var e;return this.resumeMapId>0&&!this.resumeBtnConfig.is_hide_download_btn||this.resumeStyleId>0&&(null===(e=this.resumeBtnConfig)||void 0===e?void 0:e.ai_template_swtich)},isAiGenerateResource(){return et(this.item.new_tags)}},components:{ItemDownload:Ce,Price:Pe,CollectTip:Be,ResumeBtn:Fe,PaperBtn:We,PreviewOpBtn:Ye}},it=tt;var at=(0,u.A)(it,_e,me,!1,null,"41635a4a",null);const st=at.exports;var rt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.appPreviewNewAd.picture&&e.isShowAd?i("div",{staticClass:"preview__bottom"},[e.appPreviewNewAd.picture&&e.isShowAd?i("a",{directives:[{name:"collect",rawName:"v-collect.display",value:Object.assign({},e.collectAdDisplay(),{tianceParams:{mk_key:e.appPreviewNewAd.mk_key}}),expression:"{\n      ...collectAdDisplay(),\n      tianceParams: {\n        mk_key: appPreviewNewAd.mk_key,\n      },\n    }",modifiers:{display:!0}}],staticClass:"preview__img",attrs:{href:"javascript:void(0)"},on:{click:function(t){return e.onClickAd()}}},[i("img",{attrs:{loading:"lazy",src:e.appPreviewNewAd.picture,alt:""}})]):e._e()]):e._e()},nt=[];const ot={__componentId:"__cid_787ccb62",name:"PreviewSidebarBottom",data(){return{}},mixins:[R.A,ue.A],props:{data:{type:Object,default(){return{}}},tags:{type:Array,default(){return[]}},catData:{type:Object,default(){return{}}},index:Number,otherCollectInfo:{type:Object,default(){return{}}},isShowAd:Boolean},methods:{...(0,c.mapActions)("common",["setAppComponent"]),onClickTag(e,t){if(this.appPreviewDisabledTag)return!1;T.A.setOriginInfo({funcName:"ptag5"}),W.A.gotoTag({type:"screensearch",searchType:"word",originFuncName:"ptag5",originFromPage:"preview",text:e,collect:{from:"template_tag_preview",index:t||"",word:e||""}}),this.setAppComponent("")},copyData(){let e={};try{e=JSON.parse(JSON.stringify(this.appPreviewNewAd))}catch(t){}return e},onClickAd(){var e;const t=this.copyData(),i=null===(e=this.$_get_collect())||void 0===e?void 0:e.createPayKey();T.A.setOriginInfo({btnName:"previewprepic"}),t.csource=t.csource||T.A.getCsource(),t.position=t.position||T.A.getPosition(),t.payKey=i,t.reason="preview>sidebarBottom>Ad",t.funcName="prepic";let a=this.getCommonCollect();a=y["default"].extend(a,{$e_t:"ad",$e_n:"ad_pic",$m_n:"rightside_pay",text:t.text,special_id:this.data.special_id,pic_url:t.picture,jump_type:t.jump_type,payKey:i}),this.$_tiance_adClickHandler(t,{collectParams:a},{tianceParams:{mk_key:t.mk_key}})},collectAdDisplay(){if(this.isShowAd){const e=this.copyData();let t=this.getCommonCollect();return t=y["default"].extend(t,{ad_id:C.adFlag.TIANCE_PREVIEW_RIGHT_BANNER,ad_url:e.link,text:e.text,$e_t:"ad",$e_n:"ad_pic",$m_n:"rightside_pay",special_id:this.data.special_id,pic_url:e.picture,jump_type:e.jump_type}),t}return{}},collectTagHover(e){return t=>{var i;let a=this.getCommonCollect();a=y["default"].extend(a,{$e_t:"button",$e_n:"similar_key",tag_name:e,time:t}),null===(i=this.$_get_collect())||void 0===i||i.send("hover",a)}},getCommonCollect(){const e=this.data||{},t=y["default"].convertAppMark(e.moban_app,e.file_type);return{page_name:"preview_page",resource_id:e.id,$f_t:e.file_type,resource_app:e.moban_app,resource_type:52==e.file_type?"library":t,is_protected:52==e.file_type&&2==e.copyright,...this.appPreviewCollect||{}}}},computed:{...(0,c.mapState)("preview",["appPreviewCollect","appPreviewNewAd","appPreviewDisabledTag"])}},lt=ot;var ct=(0,u.A)(lt,rt,nt,!1,null,"39a42f9a",null);const dt=ct.exports;var pt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"plike"},[e.data.length||e.state?i("p",{staticClass:"plike__title"},[e._v("相似推荐")]):e._e(),e.data.length?e._l(e.data,function(t,a){return i("div",{directives:[{name:"collect",rawName:"v-collect.display",value:Object.assign({},e.collectMbDisplay(a)),expression:"{\n        ...collectMbDisplay(index),\n      }",modifiers:{display:!0}}],key:a,staticClass:"plike__item",on:{click:function(t){return e.onClickMb(a)}}},[i("div",{staticClass:"plike__item__img",attrs:{title:t.name}},[i("img",{attrs:{loading:"lazy",src:e.thumbUrl(t.thumb_big_url),alt:""}})]),i("div",{staticClass:"plike__item__p",attrs:{title:t.name}},[e._v(" "+e._s(t.name)+" ")])])}):"loading"==e.state?i("div",{staticClass:"skeleton"},e._l(5,function(e){return i("div",{key:e,staticClass:"plike__item"},[i("div",{staticClass:"plike__item__img"}),i("div",{staticClass:"plike__item__p"})])}),0):"error"==e.state?i("div",{staticClass:"plike-error"},[i("SvgIcon",{attrs:{svgName:"net-error"}}),i("p",[e._v("网络连接失败")]),i("a",{on:{click:e.retry}},[e._v("请重试")])],1):e._e()],2)},ht=[];const _t={__componentId:"__cid_a882689f",name:"SidebarLike",props:{data:{type:Array,default(){return[]}},recommendId:{type:String,default(){return""}},policy:{type:String,default(){return""}},currentAppName:String,tmplData:{type:Object,default(){return{}}},state:{type:String,default:""}},data(){return{showData:{}}},methods:{...(0,c.mapActions)("preview",["setAppPreview"]),handlePreview(e){const t={source_page_element:"similar_template"};t.template_position=e+1,t.template_id=this.tmplData.id;const i=y["default"].extend({},this.appPreviewCollect,t);i.policy=this.policy||"",i.ai=this.policy||"",i.request_id=this.requestId||"",i.recommend_id=this.recommendId||"",this.setAppPreview({data:JSON.parse(JSON.stringify(this.data)),index:e,disabledTag:this.appPreviewDisabledTag,collect:i})},onClickMb(e){var t;const i=this.getCommonCollect(e);null===(t=this.$_get_collect())||void 0===t||t.send("click",{...i,act:"preview"}),T.A.setOriginInfo({scenesEntrance:`prertp${e+1}`,policy:this.policy}),this.handlePreview(e)},collectMbDisplay(e){const t=this.data[e]||{};if(this.showData[t.id])return{};{this.showData[t.id]=!0;const i=this.getCommonCollect(e);return i}},getCommonCollect(e){const t=this.data[e]||{},i=y["default"].convertAppMark(t.moban_app);return{act:"preview",page_name:"preview_page",resource_id:t.id,$f_t:t.file_type,resource_app:t.moban_app,resource_type:52==t.file_type?"library":i,policy:this.policy,recommend_id:this.recommendId,ai:this.policy,$e_n:"resource",$e_t:"resource",$m_n:"right_similar",$e_p:e+1,is_protected:52==t.file_type&&2==t.copyright,pre_resource_id:this.tmplData.id,mk_key:this.appPreviewCollect.mk_key||"",...this.otherCollectInfo}},retry(){this.$emit("retry")},thumbUrl(e){return y["default"].multiplyKSyun({url:e,mode:this.mode,w:this.size.w,h:this.size.h,isCrop:this.isCrop})}},computed:{...(0,c.mapState)("preview",["appPreviewCollect","appPreviewDisabledTag"]),size(){return{wps:{w:137,h:193},wpp:{w:197,h:104},et:{w:197,h:148},pdf:{w:137,h:193}}[this.currentAppName]},mode(){return["wps","pdf","et"].includes(this.currentAppName)?1:0},isCrop(){return"et"==this.currentAppName?1:0}}},mt=_t;var ut=(0,u.A)(mt,pt,ht,!1,null,"07dc94fd",null);const vt=ut.exports;var gt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"collect",rawName:"v-collect.display",value:Object.assign({},e.collectParams,{tianceParams:{mk_key:e.aigcAD.mk_key}}),expression:"{\n    ...collectParams,\n    tianceParams: {\n      mk_key: aigcAD.mk_key,\n    },\n  }",modifiers:{display:!0}}],staticClass:"ai-gc"},[i("div",{staticClass:"ai-gc__title"},[e._v(e._s(e.aigcAD.module))]),i("div",{staticClass:"ai-gc__container",style:e.containerStyle,on:{click:function(t){return e.openInnerAigc(e.aigcAD)}}},[i("div",{staticClass:"ai-gc__session"},[i("div",{staticClass:"session-text"},[e.aigcAD.icon?i("img",{attrs:{src:e.aigcAD.icon,alt:""}}):e._e(),i("span",[e._v(e._s(e.aigcAD.title))])]),i("div",{staticClass:"session-subtext"},[e._v(e._s(e.aigcAD.sub_title))])]),i("div",{staticClass:"ai-gc__btn",style:e.btnStyle},[e._v(e._s(e.btnInfo.btntext))])])])},ft=[],yt=i(52244);const wt={__componentId:"__cid_fce4eb96",props:{aigcAD:{type:Object,default(){return{}}}},computed:{...(0,c.mapState)("common",["isDarkSkin"]),...(0,c.mapState)("category",["currentCategory"]),...(0,c.mapState)("preview",["appPreviewCollect"]),containerStyle(){const e=this.isDarkSkin?this.aigcAD.dark_background:this.aigcAD.background;return e?{background:`url(${e})`,backgroundSize:"100% 100%"}:{}},btnInfo(){return this.aigcAD.btn_info||{}},btnStyle(){return{color:this.btnInfo.text_color,"--bg_color":this.btnInfo.bg_color,"--bg_hover_color":this.btnInfo.bg_hover_color,"--bg_pressed_color":this.btnInfo.bg_pressed_color}},collectParams(){return{page_name:"preview_page",$m_n:"ad_aippt",$e_n:"ad_item",$e_t:"button",aiapp_name:"aippt",ad_name:this.aigcAD.name,ad_id:this.aigcAD.id,ad_type:this.aigcAD.ab_type,first_cat_name:this.appPreviewCollect.first_cat_name,activity_id:this.aigcAD.id,content_name:this.appPreviewCollect.content_name,resource_id:this.appPreviewCollect.resource_id,resource_name:this.appPreviewCollect.resource_name}}},methods:{openInnerAigc(){var e,t;null===(e=this.$_get_collect())||void 0===e||e.send("click",{...this.collectParams});const i=`${this.btnInfo.open_position}_${T.A.getSearchSceneFlag()}`;yt.dwReporter.DW.dataWarehouseSend("ai_click",{rp:1e3,ai_theme:"public",open_position:i});const a={isAI:!0,entry:"docerNewPage",openPosition:i,useCopilotInfoMap:{fileType:"wpp",custom_params:{open_position:i},cmdGeneratePpt:!0}};this.aigcAD.mk_key&&(null===(t=this.$_get_collect())||void 0===t||t.send("tiance_click",{mk_key:this.aigcAD.mk_key})),setTimeout(()=>{var e;null===(e=f["default"].get())||void 0===e||e.newBlankDocument(a)},50)}}},Ct=wt;var bt=(0,u.A)(Ct,gt,ft,!1,null,"216a8cc5",null);const kt=bt.exports;var St=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"collect",rawName:"v-collect.display",value:Object.assign({},e.collectParams,{tianceParams:{mk_key:e.aiReusmeCreateAd.mk_key}}),expression:"{\n    ...collectParams,\n    tianceParams: {\n      mk_key: aiReusmeCreateAd.mk_key,\n    },\n  }",modifiers:{display:!0}}],staticClass:"ai-resume"},[i("div",{staticClass:"ai-resume__title"},[e._v(e._s(e.aiReusmeCreateAd.module))]),i("div",{staticClass:"ai-resume__container",style:e.containerStyle,on:{click:e.openResumeCreate}},[i("div",{staticClass:"ai-resume__session"},[i("div",{staticClass:"session-text"},[e.aiReusmeCreateAd.icon?i("img",{attrs:{src:e.aiReusmeCreateAd.icon,alt:""}}):e._e(),i("span",[e._v(e._s(e.aiReusmeCreateAd.title))])])]),i("div",{staticClass:"ai-resume__btn",style:e.btnStyle},[e._v(e._s(e.btnInfo.btntext))])])])},$t=[];const At={__componentId:"__cid_ba49cb8a",props:{aiReusmeCreateAd:{type:Object,default(){return{}}}},computed:{...(0,c.mapState)("common",["isDarkSkin"]),...(0,c.mapState)("category",["currentCategory"]),...(0,c.mapState)("preview",["appPreviewCollect"]),containerStyle(){const e=this.isDarkSkin?this.aiReusmeCreateAd.dark_background:this.aiReusmeCreateAd.background;return e?{background:`url(${e})`,backgroundSize:"100% 100%"}:{}},btnInfo(){return this.aiReusmeCreateAd.btn_info||{}},btnStyle(){return{color:this.btnInfo.text_color,"--bg_color":this.btnInfo.bg_color,"--bg_hover_color":this.btnInfo.bg_hover_color,"--bg_pressed_color":this.btnInfo.bg_pressed_color}},collectParams(){return{page_name:"preview_page",$m_n:"ad_resume",$e_n:"ad_item",$e_t:"button",mk_key:this.aiReusmeCreateAd.mk_key,ad_name:this.aiReusmeCreateAd.name,ad_id:this.aiReusmeCreateAd.id,ad_type:this.aiReusmeCreateAd.ab_type,first_cat_name:this.appPreviewCollect.first_cat_name,activity_id:this.aiReusmeCreateAd.id,content_name:this.appPreviewCollect.content_name,resource_id:this.appPreviewCollect.resource_id,resource_name:this.appPreviewCollect.resource_name}}},methods:{openResumeCreate(){var e,t;null===(e=this.$_get_collect())||void 0===e||e.send("click",{...this.collectParams}),null===(t=this.$_get_collect())||void 0===t||t.send("tiance_click",{mk_key:this.aiReusmeCreateAd.mk_key});const i=`${this.btnInfo.open_position}_${T.A.getSearchSceneFlag()}`,a=`${this.btnInfo.resume_url}&open_position=${i}`;W.A.gotoTag({type:"resume",resume_type:"juhe_page",link:a})}}},Pt=At;var It=(0,u.A)(Pt,St,$t,!1,null,"078b4ae1",null);const Tt=It.exports;var Dt=i(49279),xt=i(25919),Nt=i.n(xt),Bt=i(50397),Et=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"copy-right-tip js-preview-no-hide"},[i("SvgIcon",{staticClass:"close",attrs:{svgName:"preview-copy-right-close"},nativeOn:{click:function(t){return e.close("close")}}}),i("div",{staticClass:"copy-right-tip__info"},[e._v("应版权方要求,部分资源仅支持在线阅读,暂不支持下载、打印")]),i("div",{staticClass:"copy-right-tip__edit"},[i("div",{staticClass:"copy-right-tip__remind",on:{click:function(t){e.isSelected=!e.isSelected}}},[i("div",{staticClass:"copy-right-tip__remind--radio"},[i("SvgIcon",{attrs:{svgName:e.svgName}})],1),i("span",[e._v("不再提醒")])]),i("div",{staticClass:"copy-right-tip__know",on:{click:function(t){return e.close("btn")}}},[e._v("我知道了")])])],1)},Ot=[];const Rt={__componentId:"__cid_c095027e",data(){return{isSelected:!1}},methods:{close(e){this.isSelected&&"btn"==e&&Bt.A.set(C.cacheData.previewCopyRightTip,!0),this.$emit("close",e)}},computed:{svgName(){return this.isSelected?"preview-copyRightTip-selected":"preview-copyRightTip-unSelect"}}},Lt=Rt;var Mt=(0,u.A)(Lt,Et,Ot,!1,null,"0302e5f0",null);const Ft=Mt.exports;var jt=i(16788);const Gt={data(){return{freeTrialOpData$:{}}},mounted(){this._checkFreeTrialRight()},methods:{async _checkFreeTrialRight(){if(this.freeTrialOpData$={},!this.isLogin||this.userInfo.isMember)return;const e=C.cacheData.freeTrialedCache+this.userInfo.userid
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-11-11 02:40 , Processed in 0.049894 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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