1import{n as e}from"./61b66786.8BhlS34s.js";import{$f as t,Ip as n,Np as r,Zf as i,ip as a,np as o,tp as s}from"./027ffcfc.eLkoaQ3Q.js";import{J as c,mt as l,t as u}from"./ce65bdc9.BVjkH_eL.js";function d(e,t={},{headers_type:n=`json`,page:r=!1,showError:a=!0}={}){return i(e,t,{headers_type:n,page:r,showError:a})}function f({applyStatus:e,categoryId:t,currPage:n,smartEdit:r,publishStatus:i,groupId:a,pageSize:o,status:s,storeId:c,goodsMap:l,orderFiled:u,asc:f,ownerMember:p,boutiqueTag:m,timeType:h,startTime:g,endTime:_}){let v=``;return s===`approved`&&(v=`Y`),s===`offline`&&(v=`N`,s=``),l.goodsId&&=String(l.goodsId).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean).join(`,`),d(`${Q.goods}/product/template/getList`,{applyStatus:e,categoryId:t,currPage:n,smartEdit:r,publishStatus:i,groupId:a,pageSize:o,status:s,display:v,storeId:c,goodsMap:l,orderFiled:u,asc:f,boutiqueTag:m,timeType:h,startTime:g,endTime:_,ownerMember:p})}function p({storeId:e}){return d(`${Q.goods}/product/template/getVip`,{storeId:e})}function m({goodsId:e,applyType:n=`online`}){return new Promise((r,i)=>{d(`${Q.goods}/product/template/getTemplateHtml`,{goodsId:e,applyType:n}).then(async e=>{r(o(e)?JSON.parse(await t(e)).html:e)}).catch(e=>i(e))})}function h({certificate:e,company:t,editSwitch:n,maxPropertyNum:r,encasement:i,factory:a,faq:o,process:s,service:c,storeId:l,deleteUnApplyImageDom:u,deleteUnApplyTextDom:f}){return d(`${Q.goods}/product/generalInformation/saveInformation`,{certificate:e,company:t,editSwitch:n,maxPropertyNum:r,encasement:i,factory:a,faq:o,process:s,service:c,storeId:l,deleteUnApplyImageDom:u,deleteUnApplyTextDom:f})}function g({storeId:e}){return d(`${Q.goods}/product/generalInformation/getInformation`,{storeId:e})}function _(){return d(`${Q.goods}/officialTemplate/queryModuleType`)}async function v({moduleContent:e,moduleName:t,thumbnailImg:n}){let r=await a(e);return d(`${Q.goods}/officialTemplate/exportModules`,{moduleContent:r,moduleName:t,thumbnailImg:n})}async function y({classificationId:e,moduleContent:t,moduleName:n,thumbnailImg:r}){let i=await a(t);return d(`${Q.goods}/officialTemplate/exportModulesDesigner`,{classificationId:e,moduleContent:i,moduleName:n,thumbnailImg:r})}async function b({templateContent:e,templateName:t,thumbnailImg:n,tradeId:r,region:i}){let o=await a(e);return d(`${Q.goods}/officialTemplate/uploadOfficialTemplate`,{templateContent:o,templateName:t,thumbnailImg:n,tradeId:r,region:i})}async function ee({id:e,templateContent:t,templateName:n,tradeId:r,thumbnailImg:i,region:o}){let s=await a(t);return d(`${Q.goods}/officialTemplate/saveTemplateDesigner`,{id:e,templateContent:s,templateName:n,tradeId:r,thumbnailImg:i,region:o})}function x(){return d(`${Q.goods}/officialTemplate/queryTemplateTrade`)}function S({id:e}){return new Promise((n,r)=>{d(`${Q.goods}/officialTemplate/queryTemplateById`,{id:e}).then(async e=>{e.content=await t(e.content),n(e)}).catch(e=>r(e))})}function C({id:e}){return new Promise((n,r)=>{d(`${Q.goods}/officialTemplate/queryModulesById`,{id:e}).then(async e=>{e.content=await t(e.content),n(e)}).catch(e=>r(e))})}function w({goodsIdList:e,ptName:t}){return d(`${Q.goods}/product/template/resetTemplate`,arguments[0])}function T({goodsIdList:e,ptName:t}){return d(`${Q.goods}/product/template/resetLocalTemplate`,arguments[0])}function E({currPage:e,pageSize:t,sortOrder:n,tradeId:r,region:i,moduleName:a}){return d(`${Q.goods}/officialTemplate/queryOfficialTemplates`,{currPage:e,pageSize:t,sortOrder:n,tradeId:r,region:i,moduleName:a})}function D({currPage:e,pageSize:t,sortOrder:n,moduleTypeId:r,moduleName:i}){return d(`${Q.goods}/officialTemplate/queryOfficialModules`,{currPage:e,pageSize:t,sortOrder:n,moduleTypeId:r,moduleName:i})}async function O({id:e,moduleContent:t,moduleName:n,thumbnailImg:r}){let i=await a(t);return d(`${Q.goods}/officialTemplate/saveOfficialModules`,{id:e,moduleContent:i,moduleName:n,thumbnailImg:r})}async function k({id:e,moduleContent:t,moduleName:n,thumbnailImg:r,classificationId:i}){let o=await a(t);return d(`${Q.goods}/officialTemplate/saveModulesDesigner`,{id:e,moduleContent:o,moduleName:n,thumbnailImg:r,classificationId:i})}function A({currPage:e,pageSize:t,moduleName:n}){return d(`${Q.goods}/myTemplate/queryMyTemplates`,{currPage:e,pageSize:t,moduleName:n})}function j({currPage:e,pageSize:t,moduleName:n}){return d(`${Q.goods}/myTemplate/queryMyModules`,{currPage:e,pageSize:t,moduleName:n})}function M({id:e}){return d(`${Q.goods}/myTemplate/deleteTemplate`,{id:e})}function N({id:e}){return d(`${Q.goods}/myTemplate/deleteModule`,{id:e})}async function P({id:e,templateContent:t,templateName:n,thumbnailImg:r}){let i=await a(t);return d(`${Q.goods}/officialTemplate/saveOfficialTemplate`,{id:e,templateContent:i,templateName:n,thumbnailImg:r})}function F({id:e}){return new Promise((n,r)=>{d(`${Q.goods}/myTemplate/queryTemplateById`,{id:e}).then(async e=>{e.content=await t(e.content),n(e)}).catch(e=>r(e))})}function I({id:e}){return new Promise((n,r)=>{d(`${Q.goods}/myTemplate/queryModulesById`,{id:e}).then(async e=>{e.content=await t(e.content),n(e)}).catch(e=>r(e))})}function te(e){let t=u(e),n=t.querySelectorAll(`*`),r=/white-space:\s*pre-wrap;?/gi;for(let e of n){let t=e.getAttribute(`style`);t&&t.match(r)&&(e.style=t.replace(r,``))}return t.innerHTML}async function L({id:e,saveType:t,templateContent:n,templateName:r,thumbnailImg:i}){let o=l(n),{nodes:s}=o;
1Array.isArray(s)&&(s.forEach(e=>{e.modalDetail=te(e.modalDetail)}),o.nodes=s,n=JSON.stringify(o));let c=await a(n);return d(`${Q.goods}/myTemplate/saveMyTemplate`,{id:e,saveType:t,templateContent:c,templateName:r,thumbnailImg:i})}async function R({id:e,saveType:t,moduleContent:n,moduleName:r,thumbnailImg:i}){let o=await a(n);return d(`${Q.goods}/myTemplate/saveMyModules`,{id:e,saveType:t,moduleContent:o,moduleName:r,thumbnailImg:i})}function z({goodsId:e}){return d(`${Q.goods}/product/template/getRelationProductInfo`,{goodsId:e})}function B({goodsId:e}){return d(`${Q.goods}/product/template/getRelationLocalProductInfo`,{goodsId:e})}async function V({goodsId:e,html:t,json:n,templateId:r,templateType:i,applyStatus:o,applyFailReason:s}){let c=await a({json:JSON.parse(n),html:t});return d(`${Q.goods}/product/template/applyTemplate`,{goodsId:e,html:c,json:c,templateId:r,templateType:i,applyStatus:o,applyFailReason:s})}async function H({goodsId:e,html:t,json:n,templateId:r,templateType:i,applyStatus:o,applyFailReason:s}){let c=await a({json:JSON.parse(n),html:t});return d(`${Q.goods}/product/template/localApplyTemplate`,{goodsId:e,html:c,json:c,templateId:r,templateType:i,applyStatus:o,applyFailReason:s})}async function U({goodsId:e,applyType:n=`online`}){return new Promise((r,i)=>{d(`${Q.goods}/product/template/getTemplate`,{goodsId:e,applyType:n}).then(async e=>{let n=await t(e.json);o(e.json)&&Object.assign(e,JSON.parse(n)),r(e)}).catch(e=>i(e))})}async function W({goodsId:e,html:t,json:n,applyType:r=`online`}){let i=await a({json:JSON.parse(n),html:t});return d(`${Q.goods}/product/template/saveTemplate`,{goodsId:e,html:i,json:i,applyType:r})}async function G({goodsId:e,html:t,json:n,applyType:r=`online`}){let i=await a({json:JSON.parse(n),html:t});return d(`${Q.goods}/product/template/publishTemplate`,{goodsId:e,html:i,json:i,applyType:r})}function K({currPage:e,pageSize:t,productName:n,storeId:r,status:i,productId:a},o){return d(`${Q.goods}/record/getRecordDetailList`,{currPage:e,pageSize:t,type:`robot`,productName:n,storeId:r,status:i,productId:a},{page:o})}function q({currPage:e,pageSize:t,productName:n,storeId:r},i){return d(`${Q.goods}/record/getRecordList`,{currPage:e,pageSize:t,type:`robot`,productName:n,storeId:r},{page:i})}function J({goodsIds:e,storeId:t}){return d(`${Q.goods}/product/template/batchPublishTemplate`,{goodsIds:e,storeId:t})}function Y({ids:e}){return d(`${Q.goods}/record/removeRecord`,{type:`robot`,ids:e})}function X({ids:e}){return d(`${Q.goods}/record/removeRecordDetail`,{type:`robot`,ids:e})}function Z({finishStatus:e,storeId:t,url:n}){return d(`${Q.goods}/product/template/addRobotType`,{finishStatus:e,storeId:t,url:n})}var Q;function $(){return($=e((()=>{n(),s(),c(),{API:Q}=r})))()}export{Y as A,T as B,D as C,x as D,S as E,R as F,b as H,L as I,O as L,W as M,h as N,I as O,k as P,P as R,A as S,E as T,w as V,$ as _,M as a,_ as b,m as c,f as d,K as f,p as g,z as h,N as i,X as j,F as k,U as l,B as m,V as n,v as o,q as p,J as r,y as s,Z as t,g as u,H as v,C as w,j as x,G as y,ee as z};
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.