PageSourceSearch

https://erp.dianxiaobao.net/assets/chunk/9ab98274.DSheaeoj.js

js dianxiaobao.net collected 2026-09-28 06:06:19 UTC 9,347 bytes, 1 lines download raw bytes

1import{n as e}from"./61b66786.8BhlS34s.js";import{$o as t,Fd as n,Fp as r,Go as i,Ip as a,Jo as o,Ko as s,Ml as c,Pd as l,Rl as u,Su as d,Uo as f,Vo as p,Wo as m,Xo as h,Yo as g,ap as _,bu as v,es as y,jl as b,op as x,qo as S,zl as C}from"./027ffcfc.eLkoaQ3Q.js";import{J as w,R as T,a as E,n as D,t as O}from"./ce65bdc9.BVjkH_eL.js";import{b as k,v as A}from"./58477d52.DWocQenH.js";import{Bn as j,zn as M}from"./4473ac67.BzSFK8kg.js";var N,P;function F(){return(F=e((()=>{y(),M(),h(),a(),u(),o(),i(),m(),l(),v(),w(),k(),c(),_(),N={tinymceScriptSrc:`${D}tinymce/tinymce.min.js`,language_url:`${D}tinymce_languages/langs/zh_CN.js`,skin_url:`${D}detailsRobot/CUSTOM/skins/ui/CUSTOM`,content_css:`${D}detailsRobot/alibaba/content.css`},P={data(){return{...N}},mixins:[C],methods:{getSetting(){return{...N,inline:!0,placeholder:`请在此输入您的详情描述; 按回车键增加模块高度;`,language:`zh_CN`,indentation:`5px`,keep_styles:!0,draggable_modal:!0,branding:!1,height:300,lineheight_formats:`1 1.2 1.5 1.6 1.8 2 2.4`,fontsize_formats:`10px 12px 14px 16px 18px 24px 32px 36px 48px`,plugins:`lists advlist image paste table wordcount link quickbars charmap noneditable searchreplace DxbImagePlugin dxbTextTool code`,external_plugins:r(),quickbars_insert_toolbar:!1,quickbars_selection_toolbar:`removeformat | bold italic underline strikethrough toLower toUpper texTrans | lineheight forecolor backcolor`,toolbar:[`undo redo searchreplace | link unlink | formatselect fontselect fontsizeselect | table | removeformat textClean | gpt`,`alignleft aligncenter alignright al
1ignjustify | bullist numlist outdent indent | superscript subscript charmap | imageImageUpload imageOnline imageMeitu imageBatchEdit pastetext | code`],paste_as_text:!0,menubar:!1,browser_spellcheck:!1,images_upload_handler_old:async(e,t,r)=>{n({file:E(e.base64())}).then(e=>{t(e.url)}).catch(e=>{x.error(e.msg||e||`上传失败!`),r(e.msg||e||`上传失败!`)})},imageMeiTu_call:({node:e,html:t},n)=>{if(e.nodeName!==`IMG`){x.warning(`请选择图片!`);return}d(e.src).then(r=>{let{image:i}=r,a=t.replaceAll(e.src,i).replaceAll(e.src.replace(/^.*\/\//,`//`),i);n(a),this.$emit(`change`,a)})},imageBatchEdit_call:({node:e,html:t},n)=>{let r=[];if(t){let e=T(t,!1);e.length&&r.push(b.createNewGroup({images:e,groupType:`detailImage`,maxImageCount:e.length,title:`商品详情图`,canAddImage:!1,uploadImageType:`replace`}))}if(!r.length){x.error(`暂无图片需要处理!`);return}this.$DxbModal.confirm({width:1e3,headTitle:`详情图片编辑`,render:A,props:{props:{imageBatchChooseDiyGoodsFun:this.imageBatchChooseDiyGoodsFun||void 0,imageBatchChooseDiyGoods:this.imageBatchChooseDiyGoods||void 0,imageBatchChooseList:this.imageBatchChooseList||void 0,list:r,wrap:!0,chooseOnlineImage:this.chooseOnlineImage}},footerShow:!1,onOk:e=>{e.forEach(e=>{switch(e.groupType){case`detailImage`:{let r=b.htmlImageProcessUtil(t,e.images);n(r),this.$emit(`change`,r);break}}})}})},imageOnline_call:null,imageImageUpload_call:(e,t={})=>{this.$DxbModal.confirm({width:500,headTitle:`上传图片`,render:S,props:{props:{maxSize:t.maxSize||this.maxSize}},footerShow:!1,onOk:e})},imageOnline_call_old:e=>{let t=this.storeId,n=[];this.$DxbModal.confirm({headTitle:`从图片银行选取图片`,render:g,width:1200,props:{props:{storeId:t},style:{height:`60vh`},on:{onChange:e=>{n=e}}},onOk:()=>{n.length?e(n):(p(this,!1),x.warning(`请选择图片!`))}})},texTrans_call:async({html:e},t)=>{let n=O(e).textContent,{sourceLanActive:r,targetLanActive:i}=await s({props:{sourceLang:``}});this.handleInitProgress(),this.handleUpdateProgress(),t(await j({word:n,sourceLanguage:r,targetLanguage:i})),this.handleDestroyProgress()},gpt_call:e=>{let{subject:n,proUrl:r}=this.getProInfoFun();this.$DxbModal.confirm({width:960,headTitle:`${window.app.name}AI 生成详情描述`,render:t,props:{props:{subject:n,proUrl:r},on:{onApply(t){e(t)}}},footerShow:!1,onOk:t=>{e(t)}})},file_picker_types:`image`,urlconverter_callback:(e,t,n,r)=>e,applySize_call:({node:e,html:t},n)=>{this.$DxbModal.confirm({width:700,headTitle:`选择尺码表`,render:f,footerShow:!1,onOk:e=>{let r=e.data,i=``;i+=`<div style="font-size: 30px;text-align: center">SIZE CHART</div>`,i+=`<table style="border-collapse: collapse; width: 98.0066%; height: 63px; margin-left: auto; margin-right: auto;margin-top: 10px;margin-bottom: 20px;border-color: #ccc" border="1"><tbody>`,i+=`<tr style="height: 21px; background-color: #f1f5f8;line-height: 40px;">`;for(let e=0;e<r.sizeInfo.column1en.length;e++)i+=`<td style="width: ${100/Object.keys(r.sizeInfo.column1en).length}%; height: 21px; text-align: center;font-weight: bold;">${r.sizeInfo.column1en[e].title}</td>`;i+=`</tr>`;for(let e=0;e<r.sizeInfo.data1.length;e++){i+=`<tr style="height: 21px;line-height: 40px;">`;for(let t in r.sizeInfo.data1[e])i+=`<td style="width: ${100/Object.keys(r.sizeInfo.column1en).length}%; height: 21px; text-align: center;">${r.sizeInfo.data1[e][t]}</td>`;i+=`</tr>`}if(i+=`</tbody></table>`,r.modules.includes(`inchSize`)){i+=`<table style="border-collapse: collapse; width: 98.0066%; height: 63px; margin-left: auto; margin-right: auto;margin-top: 10px;margin-bottom: 20px;border-color: #ccc" border="1"><tbody>`,i+=`<tr style="height: 21px; background-color: #f1f5f8;line-height: 40px;">`;for(let e=0;e<r.inchSizeInfo.column1Inen.length;e++)i+=`<td style="width: ${100/Object.keys(r.inchSizeInfo.column1Inen).length}%; height: 21px; text-align: center;font-weight: bold;">${r.inchSizeInfo.column1Inen[e].title}</td>`;i+=`</tr>`;for(let e=0;e<r.inchSizeInfo.data1In.length;e++){i+=`<tr style="height: 21px;line-height: 40px;">`;for(let t in r.inchSizeInfo.data1In[e])if(t==`size`||t==`Size`)i+=`<td style="width: ${100/Object.keys(r.inchSizeInfo.column1Inen).length}%; height: 21px; text-align: center;">${r.inchSizeInfo.data1In[e][t]}</td>`;else for(let n=0;n<r.inchSizeInfo.column1In.length;n++)r.inchSizeInfo.column1In[n].title==t&&(i+=`<td style="width: ${100/Object.keys(r.inchSizeInfo.column1Inen).length}%; height: 21px; text-align: center;">${r.inchSizeInfo.data1In[e][t]}</td>`);i+=`</tr>`}i+=`</tbody></table>`}if(r.modules.includes(`sizeSuggestion`)){i+=`<table style="border-collapse: collapse; width: 98.0066%; height: 63px; margin-left: auto; margin-right: auto;margin-top: 10px;margin-bottom: 20px;border-color: #ccc" border="1"><tbody>`,i+=`<tr style="height: 21px; background-color: #f1f5f8;line-height: 40px;">`;for(let e=0;e<r.sizeSuggestionInfo.column2en.length;e++)i+=`<td style="width: ${100/Object.keys(r.sizeSuggestionInfo.column2en).length}%; height: 21px; text-align: center;font-weight: bold;">${r.sizeSuggestionInfo.column2en[e].title}</td>`;i+=`</tr>`;for(let e=0;e<r.sizeSuggestionInfo.data2.length;e++){i+=`<tr style="height: 21px;line-height: 40px;">`;for(let t in r.sizeSuggestionInfo.data2[e])(t==`size`||t==`Size`)&&(i+=`<td style="width: ${100/Object.keys(r.sizeSuggestionInfo.column2en).length}%; height: 21px; text-align: center;">${r.sizeSuggestionInfo.data2[e][t]}</td>`);for(let t in r.sizeSuggestionInfo.data2[e])if(![`size`,`Size`].includes(t))for(let n=0;n<r.sizeSuggestionInfo.column2en.length;n++)r.sizeSuggestionInfo.column2en[n].title==t&&(i+=`<td style="width: ${100/Object.keys(r.sizeSuggestionInfo.column2en).length}%; height: 21px; text-align: center;">${r.sizeSuggestionInfo.data2[e][t]}</td>`);i+=`</tr>`}i+=`</tbody></table>`}i+=t,n(i)}})},contentSimplification_call:({node:e,html:t},n)=>{let r=e=>{let t=document.createElement(`div`);return t.innerHTML=e,t},i=[`br`,`hr`,`img`,`input`,`meta`,`link`,`base`,`col`,`area`,`param`,`command`,`keygen`,`source`,`track`,`wbr`],a=new Map,o=0,s=!1;function c(e){s=!0,e.remove()}function l(e){for(let t of e){let e=t.nodeName.toLowerCase();if(i.includes(e)){let n=t.getAttributeNames();
1[`br`].includes(e)?n.forEach(e=>t.removeAttribute(e)):n.filter(e=>![`src`,`class`].includes(e)).forEach(e=>t.removeAttribute(e))}if(t.nodeType===1){if(e===`table`)continue;let n=t.getAttribute(`style`);if(n){let e=a.get(n)||`_${o++}`;t.setAttribute(`class`,e),t.removeAttribute(`style`),a.set(n,e)}if(t.getAttributeNames().filter(e=>![`src`,`target`,`class`,`id`].includes(e)).forEach(e=>{t.removeAttribute(e)}),!i.includes(e)&&t.childNodes.length<1){c(t);continue}}l(t.childNodes)}}function u(e){e.forEach(e=>{let{childNodes:t,nodeType:n,nodeName:r}=e;[1,3].includes(n)||e.remove(),t&&u(t)})}function d(){return`<style>${Array.from(a.entries()).reduce((e,[t,n])=>(e+=`.${n}{${t}}`,e),``)}</style>`}function f(e){e=e.replace(/&nbsp;/gim,``);let t=r(e);for(u(t.childNodes);s===!0;)s=!1,l(t.childNodes);return d()+t.innerHTML}let p=f(t);if(n(p),p.length===localStorage.getItem(`contentSimplification`)){x.warning(`内容已为精简内容,无需再次精简!`);return}x.success(`内容精简成功!`),localStorage.setItem(`contentSimplification`,p.length)},entities:`8451,#8451,8457,#8457,8544,#8544,8545,#8545,8546,#8546`}},handleShowBatchEdit(){let e=this.$shepherd({useModalOverlay:!0,defaultStepOptions:{classes:`shepherd-theme-custom`,cancelIcon:{enabled:!0}}});e.addStep({attachTo:{element:`.tox button[title*="批量图片处理"]`,on:`top`},text:`图片翻译、抠图、图片处理都在这里了,赶紧体验吧!`,buttons:[{action(){return this.next()},text:`知道了`}]}),e.start()}}}})))()}export{F as n,P as r,N as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.