1import{n as e}from"./61b66786.8BhlS34s.js";import{Fd as t,Hf as n,Ip as r,Lp as i,Np as a,Pd as o,Qf as s,Qp as c,Rf as l,Tf as u,Yf as d,Zp as f,am as p,om as m,qf as h,tp as g}from"./027ffcfc.eLkoaQ3Q.js";import{o as _,s as v}from"./265e7545.DC6cMsFm.js";import{Ft as y,G as b,J as x,K as S,L as C,O as w,dt as T,k as E,mt as D,pt as O,r as k,rt as A}from"./ce65bdc9.BVjkH_eL.js";import{a as j,c as M,d as N,i as P,l as F,n as I,o as L,s as R,t as z,u as B}from"./461053a3.DTdPOKjp.js";import{Modal as V}from"https://js-c.etc4.com/dxb/js/view-ui-plus.CnCq18hB.js";function ee(e){return e.versionFlg||=`new`,h(`${Q.goods}/product/newFission`,e)}function te({ownerId:e,tempName:t,currPage:n,pageSize:r}){let i={ownerId:e,tempName:t,currPage:n,pageSize:r};return h(`${Q.goods}/collect/getCollectTemplateList`,i)}function ne({ids:e,remark:t,flag:n,type:r,adoptStatus:i,source:a,ownerId:o,productName:s,startTime:c,endTime:l,flagSearch:u,remarkSearch:d}){let f={ids:e,remark:t,flag:n,type:r,adoptStatus:i,source:a,ownerId:o,productName:s,startTime:c,endTime:l,flagSearch:u,remarkSearch:d};return h(`${Q.goods}/collect/remarkCollectGoodsList`,f)}function re({id:e,ownerId:t}){let n={id:e,ownerId:t};return h(`${Q.goods}/collect/getCollectTemplate`,n)}function ie({tempName:e,defaultStatus:t,proNameInfo:n,keywordInfo:r,mainImageInfo:i,exchangeRate:a,rateStatus:o,priceInfo:s,detailInfo:c,customInfo:l,filterStatus:u,collectPrice:d}){let f={tempName:e,defaultStatus:t,proNameInfo:n,keywordInfo:r,mainImageInfo:i,exchangeRate:a,rateStatus:o,priceInfo:s,detailInfo:c,customInfo:l,filterStatus:u,collectPrice:d};return h(`${Q.goods}/collect/addCollectTemplate`,f)}function ae(e){let t={ids:e};return h(`${Q.goods}/collect/removeCollectTemplateList`,t)}function oe(e){let t={ids:e};return h(`${Q.goods}/collect/copyCollectTemplateList`,t)}function se({id:e,tempName:t,defaultStatus:n,proNameInfo:r,keywordInfo:i,mainImageInfo:a,exchangeRate:o,rateStatus:s,priceInfo:c,detailInfo:l,customInfo:u,filterStatus:d,collectPrice:f}){let p={id:e,tempName:t,defaultStatus:n,proNameInfo:r,keywordInfo:i,mainImageInfo:a,exchangeRate:o,rateStatus:s,priceInfo:c,detailInfo:l,customInfo:u,filterStatus:d,collectPrice:f};return h(`${Q.goods}/collect/modifyCollectTemplate`,p)}function ce({adoptStatus:e,source:t,ownerId:n,productName:r,startTime:i,endTime:a,currPage:o,pageSize:s,flagSearch:c,remarkSearch:l}){return h(`${Q.goods}/collect/getCollectGoodsList`,arguments[0])}function le({ids:e,type:t,adoptStatus:n,source:r,ownerId:i,productName:a,startTime:o,endTime:s,flagSearch:c,remarkSearch:l}){return h(`${Q.goods}/collect/removeCollectGoodsList`,arguments[0])}function ue({ids:e,type:t,adoptStatus:n,source:r,owner:i,ownerId:a,productName:o,startTime:s,endTime:c,flagSearch:l,remarkSearch:u,versionFlg:d=void 0}){return h(`${Q.goods}/collect/exportSourceLink`,arguments[0])}function de({storeIds:e,ids:t,type:n,adoptStatus:r,source:i,ownerId:a,productName:o,startTime:s,endTime:c,flagSearch:l,remarkSearch:u}){return h(`${Q.goods}/collect/claimCollectGoodsList`,arguments[0])}function fe({storeIds:e,storeDetails:t,ids:n,type:r,adoptStatus:i,source:a,ownerId:o,productName:s,startTime:c,endTime:l,flagSearch:u,remarkSearch:d}){return h(`${Q.goods}/collect/newClaimCollectGoodsList`,arguments[0])}function pe({storeIds:e}){return h(`${Q.goods}/collect/checkShopInfoByVideo`,arguments[0])}function me({data:e}){return h(`${Q.goods}/collect/updateVideoUrl`,arguments[0])}function he({type:e,source:t,ownerId:n,remark:r,productName:i,operateType:a,productType:o,status:s,ptName:c,storeId:l,startTime:u,endTime:d,currPage:f,pageSize:p,targetStoreId:m}){return h(`${Q.goods}/record/getRecordDetailList`,arguments[0])}function ge({recordType:e,ptName:t,storeId:n,operateStatus:r,taskIds:i,detailIds:a,remark:o,flag:s}){return h(`${Q.goods}/record/batchAddRemarkForRecord`,arguments[0])}function H({type:e,source:t,ownerId:n,operateType:r,productType:i,startTime:a,endTime:o,currPage:s,pageSize:c,storeId:l,sourceStoreId:u,ptName:d}){return h(`${Q.goods}/record/getRecordList`,arguments[0])}function _e({isTask:e,type:t,source:n,ownerId:r,remark:i,productName:a,productType:o,operateType:s,status:c,ptName:l,storeId:u,sourceStoreId:d,marketplaceId:f,startTime:p,endTime:m,currPage:h,pageSize:g}){return e?H(arguments[0]):he(arguments[0])}function ve(e){return h(`${Q.goods}/product/getIdFromProId`,{proId:e})}function ye({type:e,taskId:t,source:n,ownerId:r,productName:i,status:a,currPage:o,pageSize:s}){let c={type:e,taskId:t,source:n,ownerId:r,productName:i,status:a,currPage:o,pageSize:s};return h(`${Q.goods}/record/getRecordDetailListByTaskId`,c)}function be({type:e,ids:t}){let n={type:e,ids:t};return h(`${Q.goods}/record/removeRecord`,n)}function xe({type:e,ids:t}){let n={type:e,ids:t};return h(`${Q.goods}/record/removeRecordDetail`,n)}function Se({isTask:e,type:t,ids:n}){return e?be({type:t,ids:n}):xe({type:t,ids:n})}function Ce({storeId:e,productType:t,type:n,createType:r,source:i,operateCount:a,collectType:o,sourceUrl:s}){return h(`${Q.goods}/record/saveRecord`,arguments[0])}function we({type:e,taskId:t,source:n,sourceUrl:r,productName:i,imageUrl:a,videoUrl:o,result:s,failReason:c,status:l,topicId:u}){let d={type:e,taskId:t,source:n,sourceUrl:r,productName:i,imageUrl:a,videoUrl:o,result:s,failReason:c,status:l};return u&&(d.topicId=u),h(`${Q.goods}/record/saveRecordDetail`,d)}function Te({type:e,id:t}){let n={type:e,id:t};return h(`${Q.goods}/record/updateRecord`,n)}function Ee({ptName:e,storeId:t,onlineStatus:n,cateId:r,market:i,productGroup:a,status:o,ownerMemberDis
1playName:s,flag:c,boutiqueTag:l,moreKey:u,moreValue:d,sortKey:f,sortValue:p,display:m,currPage:g,pageSize:_}){let v={createTime:``,updateTime:``};Object.hasOwn(v,f)&&(v[f]=p);let y={productId:``,productTitle:``,productName:``,remark:``,ownerMemberDisplayName:``};Object.hasOwn(y,u)&&(y[u]=d);let b=m;m||(n===`approved`&&(b=`Y`),n===`offline`&&(b=`N`,n=``));let x={ptName:e,storeId:t,onlineStatus:n,cateId:r,market:i,productGroup:a,productId:y.productId,productTitle:y.productName||y.productTitle,productName:y.productName||y.productTitle,remark:y.remark,ownerMemberDisplayName:s||y.ownerMemberDisplayName,flag:c,status:o,display:b,boutiqueTag:l,createTime:v.createTime,updateTime:v.updateTime,currPage:g,pageSize:_};return h(`${Q.goods}/move/getProductList`,x)}function De({ptName:e,storeId:t,onlineStatus:n,cateId:r,market:i,productGroup:a,status:o,ownerMemberDisplayName:s,moreKey:c,moreValue:l,totalCount:u,type:d,ids:f,storeIds:p,flag:m,boutiqueTag:g}){let _={productId:``,productTitle:``,productName:``,remark:``,ownerMemberDisplayName:``};Object.hasOwn(_,c)&&(_[c]=l);let v=``;n==`approved`&&(v=`Y`),n==`offline`&&(v=`N`,n=``);let y={ptName:e,storeId:t,type:d,cateId:r,market:i,onlineStatus:n,productGroup:a,status:o,display:v,productId:O(_.productId),productTitle:_.productName||_.productTitle,productName:_.productName||_.productTitle,remark:_.remark,ownerMemberDisplayName:s||_.ownerMemberDisplayName,totalCount:u,ids:f,storeIds:p,flag:m,boutiqueTag:g};return h(`${Q.goods}/move/moveProducts`,y)}function Oe({ptName:e,storeId:t,storeDetails:n,groupIds:r,deleteIds:i,proIds:a,syncType:o,status:s,version:c=``}){return h(`${Q.goods}/product/syncProductList`,arguments[0])}function ke({ptName:e,storeId:t,type:n,groupIds:r,deleteIds:i,storeType:a}){let o={ptName:e,storeId:t,type:n,groupIds:r,deleteIds:i,storeType:a};return h(`${Q.goods}/product/getSyncDetail`,o)}function Ae({ptName:e,storeId:t,market:n,cateId:r,productGroup:i,status:a,ownerId:o,proType:s,source:c,flag:l,shipWarehouse:u,moreKey:d,moreValue:f,sortKey:p,sortValue:m,currPage:g,pageSize:_,brandName:v,msrEuId:y,brandManufacturer:b,semiManaged:x,carType:S,applyStatus:C,marketplaceId:w,productSkuType:T},E=!1){let D={createTime:``,updateTime:``};Object.hasOwn(D,p)&&(D[p]=m);let k={productId:``,productTitle:``,productName:``,remark:``,sourceUrl:``,failReason:``,planId:``,model:``};Object.hasOwn(k,d)&&(k[d]=f);let A={ptName:e,storeId:t,market:n,cateId:r,productGroup:i,status:a,ownerId:o,proType:s,source:c,shipWarehouse:u,productTitle:k.productName||k.productTitle,productName:k.productName||k.productTitle,productId:O(k.productId),remark:k.remark,failReason:k.failReason,sourceUrl:k.sourceUrl,planId:k.planId,model:k.model,flag:l,createTime:D.createTime,updateTime:D.updateTime,currPage:g,pageSize:_,brandName:v,msrEuId:y,brandManufacturer:b,semiManaged:x,carType:S,applyStatus:C,marketplaceId:w,productSkuType:T};return h(`${Q.goods}/product/getLocalProductList`,A,{page:E})}function je({ptName:e,storeId:t,ids:n,attrs:r,type:i}){return h(`${Q.goods}/product/batchModifyAttrInfoForLocalProducts`,arguments[0])}function Me({proType:e,ptName:t,storeId:n}){return s()(`${Q.goods}/product/getProductBrandList`,arguments[0])}async function Ne({ptName:e,storeId:t}){let n=await s()(`${Q.goods}/aboutProduct/getMerchantMsrList`,arguments[0]);return T(n).map(e=>{let t=e.country===`TR`?`åè³å
¶`:`欧ç`;return e.name=`${e.name}(${t})`,e})}function Pe({ptName:e,storeId:t,pageNum:n,pageSize:r}){return s()(`${Q.goods}/aboutProduct/getMerchantManufactureList`,arguments[0])}function Fe({ptName:e,id:t,needParse:n=!0},r=!0){let i={ptName:e,id:t};return h(`${Q.goods}/product/getLocalProduct`,i,{showError:r}).then(async e=>n?Promise.resolve(await R(d(),i,e)):Promise.resolve(e)).catch(e=>Promise.reject(e.message||e))}function Ie({ptName:e,ids:t,type:n,storeId:r,postStatus:i,ownerId:a,marketplaceId:o}){return h(`${Q.goods}/product/removeLocalProductList`,arguments[0])}function Le(){return h(`${Q.goods}/aboutProduct/searchDrawCount`)}function Re({ptName:e,productIds:t,type:n}){let r={ptName:e,productIds:t,type:n};return h(`${Q.goods}/product/batchSearchDraw`,r)}function ze({ptName:e,productImages:t}){let n={ptName:e,productImages:t};return h(`${Q.goods}/product/saveMasterDrawInfo`,n)}function Be({local:e=!0,ids:t,increasedPrice:n,ratio:r,exceptNum:i,reducedPrice:a,scale:o,storeId:s,type:c=`simple`,ladderPrice
1:l,uniformPrice:u,keepFirst:d,ptName:f,versionFlg:p=`new`,position:m}){let g,_,v={simple:`å
¬å¼è°ä»·`,uniformPrice:`设置ç»ä¸ä»·æ ¼`,FOBPrice:`FOBåºé´ä»·-é¶æ¢¯ä»·`,SKUPrice:`SKUä»·æ ¼-é¶æ¢¯ä»·`,addLadderPrice:`å¢å é¶æ¢¯ä»·`};switch(c){case`simple`:g=`${Q.goods}${e?`/product/batchModifyPricesForLocalProducts`:`/product/batchModifyPriceForOnlineProducts`}`,_={ids:t,increasedPrice:n,ratio:r,exceptNum:i,reducedPrice:a,scale:o,storeId:s,ptName:f,type:v[c],versionFlg:p};break;case`uniformPrice`:g=`${Q.goods}${e?`/product/batchModifyUniformPricesForLocalProducts`:`/product/batchModifyUniformPricesForOnlineProducts`}`,_={ids:t,storeId:s,uniformPrice:u,ptName:f,type:v[c],versionFlg:p};break;case`tieredPrice`:g=`${Q.goods}${e?`/product/batchModifyLadderPricesForLocalProducts`:`/product/batchModifyLadderPricesForOnlineProducts`}`,_={ladderPrice:typeof l==`object`?JSON.stringify(l):l,scale:o,ids:t,storeId:s,ptName:f,type:`å
¬å¼è°ä»·-é¶æ¢¯ä»·`,keepFirst:d,versionFlg:p};break;case`tieredPrice2`:g=`${Q.goods}${e?`/product/batchModifyLadderPricesForLocalProductsV2`:`/product/batchModifyLadderPricesForOnlineProductsV2`}`,_={ladderPrice:typeof l==`object`?JSON.stringify(l):l,ids:t,storeId:s,ptName:f,type:`å
¬å¼è°ä»·-é¶æ¢¯ä»·`,keepNum:o};break;case`FOBPrice`:g=`${Q.goods}${e?`/product/batchModifyFobPricesForLocalProducts`:`/product/batchModifyFobPricesForOnlineProducts`}`,_={ladderPrice:l,scale:o,ids:t,storeId:s,keepFirst:d,ptName:f,type:v[c],versionFlg:p};break;case`SKUPrice`:g=`${Q.goods}${e?`/product/batchModifySkuPricesForLocalProducts`:`/product/batchModifySkuPricesForOnlineProducts`}`,_={ladderPrice:l,scale:o,ids:t,storeId:s,keepFirst:d,ptName:f,type:v[c],versionFlg:p};break;case`addLadderPrice`:g=`${Q.goods}${e?`/product/batchAddLadderPricesForLocalProducts`:`/product/batchAddLadderPricesForOnlineProducts`}`,_={storeId:s,ptName:f,ids:t,priceInfo:l,keepNum:o,position:m,type:v[c]};break;default:return Promise.reject(`æªç¥æä½ï¼`)}return h(g,_)}function Ve({local:e=!0,ids:t,increasedStock:n,ratio:r,reducedStock:i,scale:a,storeId:o,type:s=`simple`,ptName:c,uniformStock:l}){let u,d,f={simple:`å
¬å¼è°åºå`,uniformStock:`设置ç»ä¸åºå`};switch(s){case`simple`:u=`${Q.goods}${e?`/product/batchModifyStockForLocalProducts`:`/product/batchModifyStockForOnlineProducts`}`,d={ids:t,increasedStock:n,ratio:r,reducedStock:i,scale:a,storeId:o,ptName:c,type:f[s]};break;case`uniformStock`:u=`${Q.goods}${e?`/product/batchModifyUniformStockForLocalProducts`:`/product/batchModifyUniformStockForOnlineProducts`}`,d={ids:t,storeId:o,uniformStock:l,ptName:c,type:f[s]};break;default:return Promise.reject(`æªç¥æä½ï¼`)}return h(u,d)}function He({local:e=!1,ids:t,editType:n,storeId:r,method:i,type:a=``,prices:o}){let s=`${Q.goods}${e?`/product/batchModifyRegionPricesForLocalProducts`:`/product/batchModifyRegionPricesForOnlineProducts`}`;return h(s,{ids:t,type:a,method:i,storeId:r,isCover:n===`cover`,prices:o})}function Ue({queryType:e,ptName:t,storeId:n,marketplaceId:r,siteIds:i,market:a,categoryId:o,productGroup:s,ownerMember:c,status:l,ownerId:u,source:d,flag:f,boutiqueTagName:p,moreKey:m,moreValue:g,sortKey:_,freightTemplateId:v,sortValue:y,currPage:b,pageSize:x,isChoice:S,videoFlg:C,semiManaged:T,detailType:D,modifyState:O,brandName:k,msrEuId:A,brandManufacturer:j,auditFailureReason:M,carType:N,display:P,minScore:F,maxScore:I,lifeTimeValue:L,taskType:R},z=!1){let B={productId:``,productTitle:``,productName:``,sourceUrl:``,remark:``,model:``,sku:``};Object.hasOwn(B,m)&&(B[m]=g),P||(E(l,`approved`,`onSelling`)&&(P=`Y`),w(l,`offline`)&&(P=`N`,l=``));let V={ptName:t,storeId:n,marketplaceId:r,...e?{queryType:e}:{},siteIds:i,market:a,cateId:o,productGroup:s,ownerMember:c,status:l,ownerId:u,source:d,display:P,productId:B.productId,productTitle:B.productName||B.productTitle,productName:B.productName||B.productTitle,sourceUrl:B.sourceUrl,remark:B.remark,model:B.model,sku:B.sku,flag:f,freightTemplateId:v,boutiqueTagName:p,[_]:y,currPage:b,pageSize:x,isChoice:S,videoFlg:C,semiManaged:T,detailType:D,modifyState:O,brandName:k,msrEuId:A,brandManufacturer:j,auditFailureReason:M,carType:N,minScore:F,maxScore:I,lifeTimeValue:L,taskType:R};return h(`${Q.goods}/product/getOnlineProductList`,V,{page:z})}function We({id:e,productId:t,ptName:n,storeId:r,version:i=`new`,country:a,needParse:o=!0}){let s={id:e,productId:t,ptName:n,storeId:r,version:i,versionFlg:`new`,country:a},c=n||d();return c===`ae`&&(s.version=`old`),h(`${Q.goods}/product/getOnlineProductInfo`,s).then(async e=>o?M(c,s,e,i):Promise.resolve(e)).catch(e=>Promise.reject(e))}function Ge({productId:e,ptName:t,storeId:n,flag:r}){let i={productId:e,ptName:t,storeId:n,flag:r};return h(`${Q.goods}/product/getOnlineProductInfoNew`,i)}function Ke({id:e},t=!1){return new Promise(n=>{h(`${Q.goods}/product/getOnlineProductDetailInfo`,{id:e},{showError:t}).then(e=>n(e)).catch(t=>n({detailType:0,applyStatus:!1,onlineGoodsId:e}))})}function qe({ptName:e,id:t,storeId:n}){let r={ptName:e,id:t,storeId:n};return h(`${Q.goods}/product/getFissonProductInfo`,r)}function Je({ptName:e,storeId:t,cateId:n,productType:r,marketplaceId:i}){return s()(`${Q.goods}/aboutProduct/getAttributeByCateId`,arguments[0])}function Ye({ptName:e,cateId:t,catProp:n,skuAttr:r,skus:i,storeId:a}){return h(`${Q.goods}/aboutProduct/rematchAttributeByCateId`,{ptName:e,cateId:t,catProp:n,skuAttr:r,skus:i,storeId:a})}async function U({ptName:e,storeId:t,cateId:n,isNew:r=!1}){let i={ptName:e,storeId:t,cateId:n},a=e||d(),o=await s()(`${Q.goods}/aboutProduct/getAttributeByCateId`,i),c={};if(a===`icbu`){let{icbuCatProp:r,saleProp:i,salePropRule:s,boxPackagingOptions:l,childIdSet:u,overseaType:d,overseaCountryRegionOptions:f,overseasSpotDeliveryPeriodOptions:m,overseasScPriceOptions:h,shippingTemplate:g,templateType:_}=await W({ptName:a,cateId:n,storeId:t}),v=T(s).reduce((e,t)=>
1(e[t.skuName]=t,e),{}),y={INPUT:`input`,SINGLECHECK:`single_select`,MULTICHECK:`multi_select`,MULTIINPUT:`multi_input`},b={INPUT:`input`,SINGLECHECK:`list_box`,MULTICHECK:`check_box`,MULTIINPUT:`multi_input`};c.boxPackagingOptions=l,c.shippingTemplateSchema={shippingTemplate:T(g),templateType:T(_)},c.overseaType=!1,d&&(c.overseaType=d,c.overseaCountryRegionOptions=f,c.overseasSpotDeliveryPeriodOptions=m,c.overseasScPriceOptions=h);let x=[],S=k.toObj([...T(o.attr),...T(o.childAttr)],{field:`attrId`});[...T(r),...T(i).map(e=>(e.isSku=!0,e))].forEach(e=>{let t=S[e.id.split(`-`)[1]],n=(e.rules||[]).find(e=>e.name===`requiredRule`)?.value,r={attrId:``,attributeValues:``,carModel:!1,catid:null,cnName:``,customizeValue:!1,enName:``,inputType:`single_select`,keyAttr:null,locator:null,order:null,parentValue:null,required:!1,showType:`list_box`,skuAttribute:!1,units:null,valueType:`string`,_hasSubAttr:!1,...D(t),attrId:e.id.split(`-`)[1],enName:e.name,required:!(!n||n==`false`),skuAttribute:!!e.isSku,customizeImage:p(v,`${e.name}.uploadImg`,!1)};if(Array.isArray(u)&&u.includes(`p-${r.attrId}`)&&r.attrId!=1&&(r._hasSubAttr=!0),e.options){let n=k.toObj(t?.attributeValues||[],{field:`attrValueId`});r.attributeValues=T(e.options).map(t=>{let r=Number(t.value)===-1?4:Number(t.value);return{attrId:null,attrValueId:r,catId:null,childAttrs:e.dependGroup||n[r]?.childAttrs||null,enName:t.displayName,skuValue:e.isSku}})}y[e.type]&&(r.inputType=y[e.type]),b[e.type]&&(r.showType=b[e.type]),r.cnName===null&&(r.cnName=r.enName===`Place of Origin`?`å产å°`:r.enName),`${r.attrId}`==`210192502`&&(r.customizeImage=!0),x.push(r)});let C=x.find(e=>e.attrId==`3`),w=T(o.attr).find(e=>e.attrId==`3`);if(w&&!C&&x.push(w),o.attr=x,n==211305){let e=o.attr.findIndex(e=>e.attrId==191288912),t=o.attr.find(e=>e.attrId==191286689);if(e>-1&&t){let n=(t.attributeValues||[]).find(e=>e.attrValueId==6713438);n&&(o.childAttr=o.childAttr||[],o.childAttr.push(o.attr[e]),o.attr.splice(e,1),n.childAttrs=n.childAttrs||[],n.childAttrs.push(191288912))}}let E=o.attr.map(e=>e.enName);if(E.length){let t=await _r({ptName:e,cateId:n,words:JSON.stringify(E)});o.attr.forEach(e=>{e.cnName=t[e.enName]||``})}}a===`ae`&&o.forEach(e=>{e.values&&e.values.forEach(t=>{t.customizedName=e.customizedName}),e.support_enum_input=e.keyAttribute});let l=z(a,{attrInfo:o,keyName:`keyName`});return Promise.resolve({...l,otherInfo:c,oldAttrData:o})}function W({ptName:e,cateId:t,storeId:n,functionType:r}){let i={ptName:e,cateId:t,storeId:n,functionType:r};return s()(`${Q.goods}/aboutProduct/getProductSchema`,i)}function Xe({ptName:e,cateId:t,storeId:n}){let r={ptName:e,cateId:t,storeId:n};return h(`${Q.goods}/aboutProduct/getBoxPackagingOptions`,r)}async function Ze({ptName:e,cateName:t,storeId:n,cateId:r,isAll:a,marketplaceId:o}){let s=e||d();return[i.KS.code,i.XHS.code,i.DOUDIAN.code,i.WXXD.code].includes(s)?(await h(`${Q.goods}/thirdCollect/cateList`,arguments[0])).map(e=>{let{catId:t,fullName:n,name:r}=e;return e.catId=t,e.fullCnName=n||r,e.fullEnName=n||r,e.cnName=r,e.enName=r,e}):h(`${Q.goods}/aboutProduct/queryCategory`,arguments[0])}async function Qe({ptName:e,cateId:t,isNew:n=!1,storeId:r,marketplaceId:a,fullCateIdPath:o}){let c={ptName:e,cateId:t,isNew:n,storeId:r,marketplaceId:a,fullCateIdPath:o},l=e||d(),u=s({cache:!n}),f;return f=[i.KS.code,i.XHS.code,i.DOUDIAN.code,i.WXXD.code].includes(l)?await u(`${Q.goods}/thirdCollect/cateList`,c):[i.TIKTOK.code,i.MERCADO.code].includes(l)?await u(`${Q.goods}/aboutProduct/queryCategoryInfo`,{...c,categoryId:t}):await u(`${Q.goods}/aboutProduct/getCategoryById`,c),I(l,f)}function $e({ptName:e,cateId:t,storeId:n}){let r={ptName:e,cateId:t,storeId:n};return s()(`${Q.goods}/aboutProduct/getCateInfoById`,r)}async function G({ptName:e,storeId:t,groupId:n,searchLower:r=!0,searchName:i=!0,isNew:a=!0}){switch(e||=d(),e){case`ae`:n=n>0?n:0;break;case`icbu`:n=n>0?n:-1}let o={ptName:e,storeId:t,groupId:n,searchLower:r};if(a)return K({searchLower:r,data:o,ptName:e,searchName:i,groupId:n});{let a=k.joinToStr([e,`dxb`,`getGroupById`,t,n]),s=await c.get(a);return s?Promise.resolve(s):K({searchLower:r,data:o,ptName:e,searchName:i,groupId:n,cacheKeyName:a})}}function K({searchLower:e,data:t,ptName:n,searchName:r,groupId:i,cacheKeyName:a=null}){let o=s();return e?o(`${Q.goods}/aboutProduct/getGroupById`,t).then(async t=>{let r=j(n,t);return a&&e&&await c.set(a,r,.5),Promise.resolve(r)}):o(`${Q.goods}/aboutProduct/getGroupById`,t).then(e=>{let t={};
1function n(e){e?.forEach(e=>{let{parent:r}=e||{},i=[...r?.groupNames||[],e.groupName],a={groupIds:[...r?.groupIds||[],e.groupId],groupNames:i,fullGroupName:i.filter(Boolean).join(`/`)};t[e.groupId]=a,e?.childGroupList?.length&&(e.childGroupList.forEach(e=>{e.parent=a}),n(e.childGroupList))})}switch(d()){case`icbu`:{let t=r?b(e,`groupName`)?e.groupName:``:e;return Promise.resolve(t)}case`ae`:{n(T(e));let a=r?t?.[i]?.fullGroupName||``:t;return Promise.resolve(a)}}})}function et({ptName:e,storeId:t}){let n=s();return e===`doudian`?h(`${Q.goods}/thirdCollect/getShippingTemplate`,arguments[0]):n(`${Q.goods}/aboutProduct/getShippingTemplate`,arguments[0])}function tt({ptName:e,storeId:t,leafCategoryId:n}){return s()(`${Q.goods}/aboutProduct/getPromiseTemplate`,arguments[0])}function nt(e){let t={ptName:e};return s()(`${Q.goods}/aboutProduct/getAttrOrigin`,t)}function rt({proStatus:e,id:t,storeId:n,cateId:r,cateName:i,source:a,sourceUrl:o,language:s,productTitle:c,productKeywords:l,productGroup:u,groupName:d,scImages:f,mainVideo:p,detailVideo:m,icbuCatProp:g,customMoreProperty:_,model:v,saleProp:y,priceUnit:b,saleType:x,batchNum:S,scPrice:C,ladderPrice
1:w,minOrderQuantity:T,sku:E,fob:D,pkgMeasure:O,pkgWeight:k,logisticsProperty:A,logisticsPropertyList:j,boxPackaging:M,templateType:N,shippingTemplateId:P,ladderPeriod:F,platformLogisticsServices:I,semiManagedPeriod:L,productDescType:R,detailType:z,marketSample:B,imageName:V,topicInfo:ee,sourceOrigin:te,versionFlg:ne=`new`,overseasSpotDeliveryPeriod:re,overseaCountryRegion:ie,saleModel:ae}){if(e||=`local`,e===`local`)return h(`${Q.goods}/product/addOrUpdateIcbuLocalProduct`,arguments[0]);if(e===`planDetail`)return h(`${Q.goods}/agent/modifyPlanDetail`,arguments[0]);if(e===`online`)return h(`${Q.goods}/product/modifyOnlineProduct`,{storeId:n,id:t,versionFlg:`new`,data:JSON.stringify(arguments[0])})}function it({ptName:e,storeId:t,proId:n,data:r,id:i}){return h(`${Q.goods}/product/modifyOnlineProduct`,arguments[0])}function at(e){let t={};if(Object.hasOwn(e,`ptName`)&&(t.ptName=e.ptName),Object.hasOwn(e,`id`)&&(t.id=e.id),Object.hasOwn(e,`storeId`)&&(t.storeId=e.storeId),Object.hasOwn(e,`cateId`)&&(t.cateId=e.cateId),Object.hasOwn(e,`cateName`)&&(t.cateName=e.cateName),Object.hasOwn(e,`sourceUrl`)&&(t.sourceUrl=Array.isArray(e.source)?JSON.stringify(e.source):e.source),Object.hasOwn(e,`market`)&&(t.market=e.market),Object.hasOwn(e,`language`)&&(t.language=e.language),Object.hasOwn(e,`productTitle`)&&(t.productTitle=e.productTitle,t.subject=t.productTitle),Object.hasOwn(e,`productKeywords`)&&(t.productKeywords=JSON.stringify(e.productKeywords),t.keywords=t.productKeywords),Object.hasOwn(e,`productGroup`)&&(t.productGroup=JSON.stringify(e.productGroup)),Object.hasOwn(e,`groupName`)&&(t.groupName=JSON.stringify(e.groupName)),Object.hasOwn(e,`scImages`)&&(t.scImages=JSON.stringify(e.scImages)),Object.hasOwn(e,`mainVideo`)&&(t.mainVideo=JSON.stringify(e.mainVideo)),Object.hasOwn(e,`detailVideo`)&&(t.detailVideo=JSON.stringify(e.detailVideo)),Object.hasOwn(e,`icbuCatProp`)&&(t.icbuCatProp=JSON.stringify(e.icbuCatProp)),Object.hasOwn(e,`customAttrInfoObj`)){let n={};e.customMoreProperty.forEach((e,t)=>{n[`-${t+1}`]={attrName:e.attrName,attrId:`-${t+1}`,valueName:e.attrValue,valueId:``}}),t.customMoreProperty=JSON.stringify(n)}return Object.hasOwn(e,`saleProp`)&&(t.saleProp=JSON.stringify(e.saleProp)),Object.hasOwn(e,`priceUnit`)&&(t.priceUnit=e.priceUnit),Object.hasOwn(e,`saleType`)&&(t.saleType=e.saleType),Object.hasOwn(e,`batchNum`)&&(t.batchNum=e.batchNum),Object.hasOwn(e,`ladderPrice`)&&(t.ladderPrice=JSON.stringify(e.ladderPrice)),Object.hasOwn(e,`marketPrice`)&&(t.marketPrice=e.marketPrice),Object.hasOwn(e,`minOrderQuantity`)&&(t.minOrderQuantity=e.minOrderQuantity),Object.hasOwn(e,`sku`)&&(t.sku=JSON.stringify(e.sku)),Object.hasOwn(e,`scPrice`)&&(t.scPrice=e.scPrice),Object.hasOwn(e,`fob`)&&(t.fob=JSON.stringify(e.fob)),Object.hasOwn(e,`paymentMethod`)&&(t.paymentMethod=e.paymentMethod),Object.hasOwn(e,`pkgMeasure`)&&(t.pkgMeasure=e.pkgMeasure),Object.hasOwn(e,`pkgWeight`)&&(t.pkgWeight=e.pkgWeight),Object.hasOwn(e,`shippingTemplateId`)&&(t.shippingTemplateId=e.shippingTemplateId),Object.hasOwn(e,`ladderPeriod`)&&(t.ladderPeriod=JSON.stringify(e.ladderPeriod)),Object.hasOwn(e,`logisticsMode`)&&(t.logisticsMode=JSON.stringify(e.logisticsMode)),Object.hasOwn(e,`port`)&&(t.port=e.port),Object.hasOwn(e,`supply`)&&(t.supply=JSON.stringify(e.supply)),Object.hasOwn(e,`wholeSalePkgDesc`)&&(t.wholeSalePkgDesc=e.wholeSalePkgDesc),Object.hasOwn(e,`pkgImageUpload`)&&(t.pkgImageUpload=JSON.stringify(e.pkgImageUpload)),Object.hasOwn(e,`productDescType`)&&(t.productDescType=e.productDescType),Object.hasOwn(e,`detailType`)&&(t.detailType=e.detailType),Object.hasOwn(e,`marketSample`)&&(t.marketSample=JSON.stringify(e.marketSample)),Object.hasOwn(e,`customizedServices`)&&(t.customizedServices=JSON.stringify(e.customizedServices)),Object.hasOwn(e,`ecIntegration`)&&(t.ecIntegration=e.ecIntegration),Object.hasOwn(e,`produceVisualization`)&&(t.produceVisualization=e.produceVisualization),Object.hasOwn(e,`detail`)&&(t.detail=e.detail),h(`${Q.goods}/product/updateIcbuLocalProduct`,t)}function ot({ptName:e,storeId:t,marketplaceId:n,tempName:r,type:i=`attr`,ownerId:a,currPage:o,pageSize:s}){let c={ptName:e,storeId:t,marketplaceId:n,tempName:r,ownerId:a,currPage:o,pageSize:s},l=`getAttrTemplateList`;return i===`detail`&&(l=`getDetailTemplateList`),i===`structDetail`&&(l=`getStructuredDetailTemplateList`),i===`sellingPoint`&&(l=`getSellingPointTemplateList`),h(`${Q.goods}/attrTemp/${l}`,c)}function st({ptName:e,storeId:t,templateId:n}){return h(`${Q.goods}/product/exportExcelTemplate`,{ptName:e,storeId:t,templateId:n})}function ct({ptName:e,storeId:t,url:n}){return h(`${Q.goods}/product/importExcelTemplate`,{ptName:e,storeId:t,url:n})}function lt({ptName:e,storeId:t,ids:n,type:r=`attr`}){let i={ptName:e,storeId:t,ids:n};if(r===`size`)return i.ids=T(i.ids).join(`,`),h(`${Q.goods}/aboutProduct/deleteSizeChart`,i);let a=`removeAttrTemplateList`;return r===`detail`&&(a=`removeDetailTemplateList`),r===`structDetail`&&(a=`removeStructuredDetailTemplateList`),r===`sellingPoint`&&(a=`removeSellingPointTemplateList`),h(`${Q.goods}/attrTemp/${a}`,i)}function ut({ptName:e=d(),id:t,needParse:n=!0}
1){let r={ptName:e,id:t};return h(`${Q.goods}/attrTemp/getAttrTemplate`,r).then(t=>n?Promise.resolve(P(e,t)):Promise.resolve(t)).catch(e=>Promise.reject(e))}function dt({id:e,ptName:t,tempName:n,storeId:r,cateId:i,cateName:a,modules:o,baseInfo:s,attrInfo:c,customAttrInfo:l,skuInfo:u,tradeInfo:d,packInfo:f,detailInfo:m,specialInfo:g,customInfo:_}){let v={};l?.forEach((e,t)=>{v[`-${t+1}`]={attrName:e.attrName,attrId:`-${t+1}`,valueName:e.attrValue,valueId:``}});let{market:y}=s,b={id:e,ptName:t,tempName:n,storeId:r,cateId:i,cateName:a,modules:o,baseInfo:s,attrInfo:c,customAttrInfo:v,skuInfo:u,tradeInfo:d,packInfo:f,detailInfo:m,specialInfo:g,customInfo:_};return y===`sourcing`&&(b.packInfo={...b.packInfo||{},samplePkgMeasure:p(b,`packInfo.pkgMeasure`,``),samplePkgWeight:p(b,`packInfo.pkgWeight`,``),sampleShippingTemplateId:p(b,`packInfo.shippingTemplateId`,``),sampleLogisticsProperty:p(b,`packInfo.logisticsProperty`,``)}),h(`${Q.goods}/attrTemp/${e?`modifyAttrTemplate`:`addAttrTemplate`}`,b).then(t=>e?Promise.resolve({id:e}):Promise.resolve(t))}function ft({ptName:e,storeId:t,id:n,tempName:r,modules:i,cateId:a,cateName:o,baseInfo:s,attrInfo:c,customAttrInfo:l,specialInfo:u,skuInfo:d,tradeInfo:f,packInfo:p,detailInfo:m,customInfo:g}){let _=`addAttrTemplate`;return n&&(_=`modifyAttrTemplate`),h(`${Q.goods}/attrTemp/${_}`,arguments[0]).then(e=>n?Promise.resolve(n):Promise.resolve(e?.id||e))}function pt({ptName:e,storeId:t,storeIds:n,ids:r,marketplaceId:i,id:a,type:o=`attr`}){let s={ptName:e,storeId:t,ids:r,id:a,storeIds:n,marketplaceId:i};if(o===`size`)return h(`${Q.goods}/aboutProduct/copySizeChart`,s);let c=`copyAttrTemplate`;return o===`detail`&&(c=`copyDetailTemplate`),o===`structDetail`&&(c=`copyStructuredDetailTemplate`),o===`sellingPoint`&&(c=`copySellingPointTemplate`),h(`${Q.goods}/attrTemp/${c}`,s)}function mt({ptName:e,storeId:t,id:n,data:r}){let i={ptName:e,storeId:t,id:n,data:r};return h(`${Q.goods}/product/importRecommendProduct`,i)}function ht({ptName:e,storeId:t,proId:n,tempId:r,productId:i,dataInfo:a,choiceInfo:o}){let s={ptName:e,storeId:t,proId:n,tempId:r,productId:i,dataInfo:a,choiceInfo:JSON.stringify(o)};return h(`${Q.goods}/product/onlineProImportProductOrTemplate`,s)}function gt({ptName:e,storeId:t,ids:n,tempIds:r,tempType:i,keepInfo:a,marketplaceId:o,versionFlg:s=`new`}){return h(`${Q.goods}/product/importTemplate`,arguments[0])}async function _t({ptName:e,type:t,word:n,sourceLanguage:r,targetLanguage:i},a=!1){let o={...arguments[0],sourceLanguage:r===`auto`?``:r,word:y(n)};try{return await s()(`${Q.goods}/product/transWord`,o,{showError:a})}catch(e){return a?Promise.reject(e.message||e):n}}async function vt({ptName:e,word:t,sourceLanguage:n,targetLanguage:r}){let i=`${[`dxb`,`cache`,`langTrans`,n,r].join(`_`)}_`,a=A.sign(`langTrans_${n}_${r}_${t}`),o=await A.asyncGetStrMD5({md5:a,prefix:i});if(o)return Promise.resolve(o);try{let o=await h(`${Q.goods}/product/transWord`,{ptName:e,word:t,sourceLanguage:n===`auto`?``:n,targetLanguage:r},{showError:!1});return await A.asyncSetStrMD5({md5:a,data:o},i),Promise.resolve(o)}catch{return Promise.resolve(t)}}function yt({ptName:e,ids:t,choices:n}){let r={ptName:e,ids:t,choices:n};return h(`${Q.goods}/product/transLocalProductList`,r,{showError:!1})}function bt({ptName:e,ids:t,storeId:n,type:r,timeInfo:i,marketplaceId:a,versionFlg:o=`new`}){let s={ptName:e,ids:t,storeId:n,type:r,timeInfo:i,versionFlg:o,marketplaceId:a};return new Promise((e,t)=>{h(`${Q.goods}/product/releaseProduct`,s,{showError:!1}).then(t=>{e(t)}).catch(e=>{let n=e.message||e;String(n).includes(`ä¸è¶³`)&&(window.app.code===`icbuAi`?V.confirm({title:`æç¤º`,content:`å叿¬¡æ°ä¸è¶³ï¼è¯·å级ä¼åçæ¬`,onOk:()=>{window.open(`https://fuwu.alibaba.com/product/buy.htm?spm=a27aq.25740551.6121259840.40.675b6d20ce8bYJ&code=ISVXXF360DD`)}}):V.confirm({title:`æç¤º`,content:`å叿¬¡æ°ä¸è¶³ï¼è¯·éè´ä¼åçæ¬`,onOk:()=>{$$routeTo(`/basic/pay/version`,`_blank`)}})),t(e)})})}function xt({ptName:e,ids:t,storeId:n,operateType:r,unlist:i}){return h(`${Q.goods}/product/onAndOffOnlineProduct`,arguments[0])}function St({ptName:e,storeId:t,proIds:n,ids:r,commodityMark:i}={}){let a={ptName:e,storeId:t,commodityMark:i};return n&&(a.proIds=n),r&&(a.ids=r),h(`${Q.goods}/product/removeOnlineProductList`,a)}function Ct({ownerId:e,id:t}){let n={ownerId:e,id:t};return h(`${Q.goods}/collect/getCollectGoods`,n)}function wt({id:e,sourceUrl:t,skuCode:n,productName:r,mainImageList:i,skuImageList:a,proDetail:o,remark:s,flag:c}){let l={id:e,sourceUrl:t,skuCode:n,productName:r,mainImageList:i,skuImageList:a,proDetail:o,remark:s,flag:c};return h(`${Q.goods}/collect/modifyCollectGoods`,l)}function Tt({ptName:e,ids:t,flag:n,remark:r}){let i={ptName:e,ids:t,flag:n,remark:r};return h(`${Q.goods}/product/remarkLocalProduct`,i)}function Et({ptName:e,ids:t,flag:n,remark:r}){let i={ptName:e,ids:t,flag:n,remark:r};return h(`${Q.goods}/product/remarkOnlineProduct`,i)}function Dt({ptName:e,onlineOrLocal:t,ids:n,remark:r,flag:i}){let a={ptName:e,onlineOrLocal:t,ids:n,remark:r,flag:i};return h(`${Q.goods}/product/remarkLocalProduct`,a)}function Ot({ptName:e,storeId:t,cateId:n,marketplaceId:r,gmtModifiedFrom:i,gmtModifiedTo:a,moreKey:o,moreValue:s,
1currPage:c,pageSize:l,status:u,offsets:f,page_size:p,pageToken:m,identifiersType:g,identifiers:_},v=!0){let y={productId:``,productTitle:``,productName:``,remark:``};Object.hasOwn(y,o)&&(y[o]=s);let b={ptName:e,storeId:t,cateId:n,marketplaceId:r,proId:y.productId,productId:y.productId,subject:y.productName||y.productTitle,productTitle:y.productName||y.productTitle,productName:y.productName||y.productTitle,gmtModifiedFrom:i,gmtModifiedTo:a,currPage:c,pageSize:l,status:u,offsets:f,page_size:p,pageToken:m,identifiersType:g,identifiers:_};return h(`${Q.goods}/product/getProductByApi`,b).then(e=>Promise.resolve(v?F(b.ptName||d(),e,b):e))}function q(e){return typeof e==`string`&&/\.avif(?:$|[?#])/i.test(e)}async function J(e,n){let r=await S(e);return(await t({file:r,suffix:`.jpg`,maxSize:n})).url}async function kt(e,t){let n;try{n=await C(e)}catch(t){if(q(e))throw t;return e}if(!q(e)&&n.type.toLowerCase()!==`image/avif`)return e;let r=URL.createObjectURL(n);try{return await J(r,t)}finally{URL.revokeObjectURL(r)}}async function At({scaleType:e,ptName:t,type:n,sourceLanguage:r,targetLanguage:i,images:a,sideType:o,changeLength:s,storeId:c,isCutWhiteBg:l=!0,maxSize:u=3,productType:d,productId:f,ignore_entity:p=!1}){let m=`${Q.goods}/product/processImage`,g={scaleType:e,ptName:t,type:n,sourceLanguage:r,targetLanguage:i,images:a,productType:d,productId:f,ignore_entity:p};o&&(g.sideType=o,g.changeLength=s),c&&(g.storeId=c);let _=T(a),v=await Promise.all(_.map(e=>kt(e,u)));g.images=JSON.stringify(v);let y=await h(m,g,{showError:!1});return n!==`cut`||!l?y:Promise.all(y.map(e=>J(e,u)))}function jt({ptName:e,storeId:t,ossUrl:n,nonObjectRemoveElements:r,objectRemoveElements:i}){let a={ptName:e,storeId:t,ossUrl:n,nonObjectRemoveElements:r,objectRemoveElements:i};return h(`${Q.goods}/product/autoRemoval`,a)}function Mt({ptName:e,storeId:t,ids:n,data:r,type:i,versionFlg:a}){let o=arguments[0];return o.versionFlg||=`new`,h(`${Q.goods}/product/batchModifyLocalProducts`,o)}function Nt({ptName:e,storeId:t,ids:n,data:r,type:i,versionFlg:a}){let o=arguments[0];return o.versionFlg||=`new`,h(`${Q.goods}/product/batchModifyLocalProductsCategory`,o)}function Pt({ptName:e,storeId:t,ids:n,semiManagedInfo:r,type:i,versionFlg:a}){return h(`${Q.goods}/product/batchModifyLocalProductSemiManagedInfo`,arguments[0])}function Ft({ptName:e,storeId:t,ids:n,semiManagedInfo:r,type:i}){let a={ptName:e,storeId:t,ids:n,semiManagedInfo:r,type:i};return h(`${Q.goods}/product/batchModifyOnlineProductSemiManagedInfo`,a)}function It({ptName:e,storeId:t,ids:n,brands:r,type:i}){let a={ptName:e,storeId:t,ids:n,brands:r,type:i};return h(`${Q.goods}/product/batchModifyBrandForOnlineProducts`,a)}function Lt({ptName:e,storeId:t,ids:n,brands:r,type:i}){let a={ptName:e,storeId:t,ids:n,brands:r,type:i};return h(`${Q.goods}/product/batchModifyBrandForLocalProducts`,a)}function Rt({ptName:e,storeId:t,ids:n,data:r,type:i,versionFlg:a}){let o=arguments[0];return o.versionFlg||=`new`,h(`${Q.goods}/product/batchModifyOnlineProducts`,o)}function zt({ptName:e,storeId:t,marketplaceId:n,ids:r,data:i,type:a,flag:o}){let s=arguments[0];return h(`${Q.goods}/product/batchModifyOnlineByType`,s)}function Bt({ptName:e,storeId:t,ids:n,data:r,type:i}){let a={ptName:e,storeId:t,ids:n,data:r,type:i};return h(`${Q.goods}/product/batchModifyOnlineProductOtherInfo`,a)}function Vt({ptName:e,storeId:t,data:n,type:r}){return(e||d())===i.KS.code?h(`${Q.goods}/domestic/product/batchModifyOnlineProductTitles`,arguments[0]):h(`${Q.goods}/product/batchModifyOnlineProductTitles`,arguments[0])}function Ht({ptName:e,storeId:t,groupId:n}){let r={ptName:e,storeId:t,groupId:n};return h(`${Q.goods}/aboutProduct/getImageBankGroups`,r,{showError:!1}).then(e=>Promise.resolve(B(d(),e)))}function Ut({ptName:e,storeId:t,groupId:n,albumId:r,currPage:i,pageSize:a}){let o={ptName:e,storeId:t,groupId:n,albumId:r,currPage:i,pageSize:a};return h(`${Q.goods}/aboutProduct/getImageList`,o).then(e=>Promise.resolve(L(d(),e)))}function Wt({storeId:e,groupId:t,file:n,base:r}){return h(`${Q.goods}/product/uploadLocalImage2Bank`,{storeId:e,groupId:t,file:n,base:r},{headers_type:`formData`})}function Gt({ptName:e,storeId:t,groupId:n,base:r}){return h(`${Q.goods}/product/uploadBase64ToBank`,{ptName:e,storeId:t,groupId:n,base:r})}function Kt({ptName:e,storeIds:t,ids:n,num:r}){let i={ptName:e,storeIds:t,ids:n,num:r};return h(`${Q.goods}/product/copyLocalProductList`,i)}function qt({ptName:e,storeId:t,type:n}){let r={ptName:e,storeId:t,type:n};return h(`${Q.goods}/product/removeRepeatLocalProductList`,r)}function Jt({type:e,status:t}){let n={type:e,status:t};return h(`${Q.goods}/collect/removeRepeatCollectGoodsList`,n)}function Yt({ptName:e,storeId:t,proType:n,flag:r,proIds:i,marketplaceId:a}){let o={ptName:e,storeId:t,proType:n,flag:r,proIds:i,marketplaceId:a};return h(`${Q.goods}/product/getProductCategoryList`,o)}function Xt({ptName:e,storeId:t,proType:n=`online`}={}){let r={ptName:e,storeId:t,proType:n};return h(`${Q.goods}/product/getProductOwnerList`,r)}function Zt({id:e,ptName:t,storeId:n,marketplaceId:r,marketplaceList:i,tempName:a,headDetailInfo:o,tailDetailInfo:s,shortDetailInfo:c,coverStatus:l}){let u={ptName:t,storeId:n,tempName:a,marketplaceId:r,marketplaceList:i,headDetailInfo:o,tailDetailInfo:s,shortDetailInfo:c,coverStatus:l},d=`addDetailTemplate`;return e&&(u.id=e,d=`modifyDetailTemplate`),h(`${Q.goods}/attrTemp/${d}`,u).then(t=>e?Promise.resolve({id:e}):Promise.resolve(t))}function Qt({id:e,ptName:t}){let n={id:e,ptName:t};return h(`${Q.goods}/attrTemp/getDetailTemplate`,n)}function $t({type:e,word:t,ownerId:n,currPage:r,pageSize:i}){let a={type:e,word:t,ownerId:n,currPage:r,pageSize:i};return h(`${Q.goods}/prohibite/getProhibitedWordList`,a)}function en({type:e,words:t}){let n={type:e,words:t};return h(`${Q.goods}/prohibite/addProhibitedWord`,n)}function tn({type:e,id:t,enName:n,cnName:r}){let i={type:e,id:t,enName:n,cnName:r};return h(`${Q.goods}/prohibite/modifyProhibitedWord`,i)}function nn({type:e,ids:t}){let n={type:e,ids:t};return h(`${Q.goods}/prohibite/removeProhibitedWordList`,n)}function rn({type:e,ids:t}){let n={type:e,ids:t};return h(`${Q.goods}/prohibite/transProhibitedWordList`,n)}function an({ptName:e,storeId:t,proStatus:n,localStatus:r,onlineStatus:i,market:a,cateId:o,productGroup:s,prohibiteStatus:c,flag:l,moreKey:u,moreV
1alue:d,sortKey:f,sortValue:p,source:m,currPage:g,pageSize:_}){let v={createTime:``,updateTime:``,prohibiteTime:``};Object.hasOwn(v,f)&&(v[f]=p);let y={productId:``,productTitle:``,productName:``,remark:``};Object.hasOwn(y,u)&&(y[u]=d);let b=``;i==`approved`&&(b=`Y`),i==`offline`&&(b=`N`,i=``);let x={ptName:e,storeId:t,proStatus:n,localStatus:r,onlineStatus:i,display:b,market:a,cateId:o,source:m,productGroup:s,prohibiteStatus:c,productId:O(y.productId),productTitle:y.productName||y.productTitle,productName:y.productName||y.productTitle,remark:y.remark,flag:l,createTime:v.createTime,prohibiteTime:v.prohibiteTime,updateTime:v.updateTime,currPage:g,pageSize:_};return h(`${Q.goods}/prohibite/getProhibiteProList`,x)}function on({ptName:e,storeId:t,proStatus:n,ids:r}){let i={ptName:e,storeId:t,proStatus:n,ids:r};return h(`${Q.goods}/prohibite/batchDetectProProhibiteWord`,i)}function sn({ptName:e,storeId:t,proStatus:n,ids:r}){let i={ptName:e,storeId:t,proStatus:n,ids:r};return h(`${Q.goods}/prohibite/batchOptimizeProProhibiteWord`,i)}function cn({ptName:e,storeId:t,proStatus:n}){let r={ptName:e,storeId:t,proStatus:n};return h(`${Q.goods}/prohibite/detectAllStoreProhibiteWord`,r)}function ln({ptName:e,ids:t}){let n={ptName:e,ids:t};return h(`${Q.goods}/product/resetLocalProductList`,n)}function un({ptName:e,id:t}){let n={ptName:e,id:t};return h(`${Q.goods}/product/getOnlineProductSource`,n).then(e=>{let t=[``];e.sourceUrl&&(t=/^\[/.test(e.sourceUrl)?T(e.sourceUrl):[e.sourceUrl]),t=t.flat(1/0);let n={mainImage:[],skuImage:[],detailImage:[]};if(e.sourceImage){let t=D(e.sourceImage);n.mainImage=T(t.mainImg),n.skuImage=T(t.skuImg),n.detailImage=T(t.detailImg)}return Promise.resolve({sourceName:e.source||``,source:t,sourceImages:n,isChoice:e.isChoice||!1})}).catch(e=>Promise.resolve({sourceName:``,source:[``]}))}function dn({ptName:e,content:t,operation:n}){let r={ptName:e,content:t,operation:n};return h(`${Q.goods}/prohibite/analysisWord`,r)}function fn({ids:e,type:t,storeId:n,status:r,createTime:i,updateTime:a}){let o={ids:e,type:t,storeId:n,status:r,ptName:d(),createTime:i,updateTime:a};return h(`${Q.goods}/product/exportReleaseProductUpgrade`,o)}function pn({ids:e,ptName:t,storeId:n,status:r,boutiqueTagName:i,categoryId:a,cateId:o,country:s,flag:c,market:l,owner:u,ownerId:d,ownerMember:f,productGroup:p,productSource:m,source:g,minScore:_,maxScore:v,moreKey:y,moreValue:b,sortKey:x,sortValue:S,display:C}){let T={createTime:``,updateTime:``};Object.hasOwn(T,x)&&(T[x]=S);let D={productId:``,productTitle:``,productName:``,sourceUrl:``,remark:``,model:``};Object.hasOwn(D,y)&&(D[y]=b);let O=``;E(r,`approved`,`onSelling`)&&(O=`Y`),w(r,`offline`)&&(O=`N`,r=``);let k={ids:e,ptName:t,storeId:n,status:r,display:C||O,boutiqueTagName:i,categoryId:a||o,cateId:a||o,country:s,flag:c,market:l,owner:u,ownerId:d,ownerMember:f,source:g,productGroup:p,productSource:m,createTime:T.createTime,updateTime:T.updateTime,productId:D.productId,productTitle:D.productName||D.productTitle,productName:D.productName||D.productTitle,sourceUrl:D.sourceUrl,remark:D.remark,model:D.model,minScore:_,maxScore:v};return h(`${Q.goods}/product/exportOnlineProductUpgrade`,k)}function mn({ptName:e,storeId:t,status:n,fileSize:r,quality:i,title:a,currPage:o,pageSize:s}){let c={ptName:e,storeId:t,status:n,fileSize:r,quality:i,title:a,currPage:o,pageSize:s};return h(`${Q.goods}/product/queryVideoList`,c)}function hn({ptName:e,storeId:t}){let n={ptName:e,storeId:t};return h(`${Q.goods}/product/syncVideoList`,n)}function gn({ptName:e,storeId:t,videoName:n,videoPath:r,coverUrl:i}){return h(`${Q.goods}/product/uploadVideo`,arguments[0])}function _n({ptName:e,storeId:t,ids:n,childUid:r}){let i={ptName:e,storeId:t,ids:n,childUid:r};return h(`${Q.goods}/product/distributeLocalProducts2SubAccount`,i)}function vn({ptName:e,country:t}){let n={ptName:e,country:t};return h(`${Q.goods}/product/pricing/getChannelList`,n)}function yn({ptName:e,storeId:t}){let n={ptName:e,storeId:t};return h(`${Q.goods}/product/pricing/getCurrencyByStoreId`,n)}function bn(e){return h(`${Q.goods}/product/pricingTemplate/delete`,e)}function xn(e){return h(`${Q.goods}/product/pricingTemplate/getDetail`,e)}function Sn(e){return h(`${Q.goods}/product/pricingTemplate/getPage`,e)}function Cn(e){return h(`${Q.goods}/product/pricingTemplate/getList`,e)}function wn(e){return h(`${Q.goods}/product/pricingTemplate/save`,e)}function Tn(e){return h(`${Q.goods}/product/pricing/calculatePrice`,e)}function En({ptName:e,storeId:t,productType:n,uploadFile:r,url:i}){let a={ptName:e,storeId:t,productType:n,uploadFile:r,url:i};return h(`${Q.goods}/product/importReleaseProduct`,a,r?{headers_type:`formData`}:{})}function Dn({ids:e}){let t={ids:e,ptName:d()};return h(`${Q.goods}/record/exportReleaseRecordUpgrade`,t)}function On({ptName:e,storeId:t,cateId:n,attrId:r,aeAttrId:i,attrName:a,valueId:o,valueName:c,productType:l}){return s()(`${Q.goods}/aboutProduct/getChildAttr`,arguments[0])}function kn({ptName:e,storeId:t,cateId:n,attrId:r,valueId:i}){let a={ptName:e,storeId:t,cateId:n,attrId:r,valueId:i};return h(`${Q.goods}/aboutProduct/getChildAttrByIds`,a)}function An({ptName:e,storeId:t,type:n,cateId:r,ids:i,market:a,onlineStatus:o,productGroup:s,status:c,ownerMemberDis
1playName:l,boutiqueTag:u,moreKey:d,moreValue:f}){let p={productId:``,productTitle:``,productName:``,remark:``,ownerMemberDisplayName:``};Object.hasOwn(p,d)&&(p[d]=f);let m=``;o==`approved`&&(m=`Y`),o==`offline`&&(m=`N`,o=``);let g={ptName:e,storeId:t,type:n,cateId:r,display:m,ids:i,market:a,onlineStatus:o,productGroup:s,boutiqueTag:u,productId:O(p.productId),productTitle:p.productName||p.productTitle,productName:p.productName||p.productTitle,remark:p.remark,ownerMemberDisplayName:l||p.ownerMemberDisplayName,status:c};return h(`${Q.goods}/move/exportmoveInfoUpgrade`,g)}function jn({ptName:e,storeIds:t,proIds:n,storeId:r}){let i={ptName:e,storeIds:t,proIds:n,storeId:r};return h(`${Q.goods}/move/moveProductsByExcel`,i)}function Mn({dataIds:e,storeId:t}){return h(`${Q.goods}/product/releaseWatermark/getLocalProducts`,{dataIds:e,storeId:t})}function Nn({dataIds:e,maskGoodsCountMap:t,maskList:n,picture:r,storeId:i,templateId:a,templateInfo:o}){return h(`${Q.goods}/product/releaseWatermark/markLocalProducts`,{dataIds:e,maskGoodsCountMap:t,maskList:n,picture:r,storeId:i,templateId:a,templateInfo:o})}function Pn({storeId:e,ossUrl:t}){return h(`${Q.goods}/product/importHjProducts`,{storeId:e,ossUrl:t})}function Fn({ptName:e,storeId:t,status:n,market:r,moreKey:i,moreValue:a,sortKey:o,sortValue:s,currPage:c,pageSize:l}){let u={createTime:``,updateTime:``};Object.hasOwn(u,o)&&(u[o]=s);let d={productId:``,productTitle:``,proNameAbbr:``};Object.hasOwn(d,i)&&(d[i]=a);let f=``;return E(n,`approved`,`onSelling`)&&(f=`Y`),w(n,`offline`)&&(f=`N`,n=``),h(`${Q.goods}/productExtend/getOnlineProductList`,{ptName:e,storeId:t,status:n,display:f,productId:d.productId,productTitle:d.productTitle,proNameAbbr:d.proNameAbbr,createTime:u.createTime,updateTime:u.updateTime,market:r,currPage:c,pageSize:l})}function In({ptName:e,id:t,proNameAbbr:n}){return h(`${Q.goods}/productExtend/updateOnlineProduct`,{ptName:e,id:t,proNameAbbr:n})}function Ln({ptName:e,id:t,storeId:n,tempStatus:r,cateId:i,titleSetting:a,keywordSetting:o,imagePreCount:s,imageAfterCount:c,completeImgFlg:l,cAttrPreCount:u,cAttrAfterCount:d,cAttrLengthSetting:f,cAttrRepeatSetting:p,skuLengthSetting:m,freeOptimization:g,detailCnSetting:_,illegalCharacter:v,pkgDescSetting:y,skuNameFlg:b}){return h(`${Q.goods}/aboutProduct/addOrUpdateReleaseTemplate`,arguments[0])}function Y({ptName:e,storeId:t}){let n={ptName:e,storeId:t};return h(`${Q.goods}/aboutProduct/queryReleaseTemplate`,n)}function Rn({ptName:e,ids:t,storeId:n}){return h(`${Q.goods}/product/checkProductScore`,arguments[0])}function zn({ptName:e,storeId:t,id:n,cateId:r,cateName:i,saleProp:a,sku:o}){let s={ptName:e,storeId:t,id:n,cateId:r,cateName:i,saleProp:a,sku:o};return h(`${Q.goods}/product/matchLocalProductSKU`,s)}function Bn(e){let t={key:e};return h(`${Q.goods}/product/getImportProcess`,t)}function Vn({ptName:e,storeId:t,proId:n,source:r,sourceUrl:i}){let a={ptName:e,storeId:t,proId:n,source:r,sourceUrl:i},o=T(i).filter(Boolean);return(!r||r===`èªå»º`)&&o.length&&(a.source=v.detectSafety(o[0]).ptTypeName),h(`${Q.goods}/product/saveOrUpdateOnlineSource`,a)}function Hn({imageUrl:e,locale:t,ptName:n,storeId:r,productName:i}){let a={imageUrl:e,locale:t,ptName:n,storeId:r,productName:i};return h(`${Q.goods}/aboutProduct/getCategorySuggestion`,a)}function Un({categoryId:e,currPage:t,ptName:n,pageSize:r}){let i={categoryId:e,currPage:t,ptName:n,pageSize:r};return h(`${Q.goods}/smartTitle/smartRecommendProduct`,i)}function Wn({categoryId:e,currPage:t,ptName:n,pageSize:r,keywords:i}){let a={categoryId:e,currPage:t,ptName:n,pageSize:r,keywords:i};return h(`${Q.goods}/smartTitle/smartGenerateTitle`,a)}function Gn({categoryId:e,currPage:t,ptName:n,pageSize:r,sortField:i,sortType:a,keywordsList:o}){let s={categoryId:e,currPage:t,ptName:n,pageSize:r,sortField:i,sortType:a,keywordsList:o};return h(`${Q.goods}/smartTitle/smartRecommendKeywords`,s)}function Kn({categoryId:e,currPage:t,ptName:n,pageSize:r}){let i={categoryId:e,currPage:t,ptName:n,pageSize:r};return h(`${Q.goods}/smartTitle/smartRecommendTitle`,i)}function qn({ptName:e,storeIds:t,syncType:n}){let r={ptName:e,storeIds:t,syncType:n};return(e||d())===i.KS.code?h(`${Q.goods}/domestic/product/batchStoresSyncProduct`,r):h(`${Q.goods}/product/batchStoresSyncProduct`,r)}function Jn(e){return h(`${Q.goods}/collect/getClaimTemplateList`,e)}function Yn(e){return h(`${Q.goods}/collect/addClaimTemplate`,e)}function X({ptName:e,id:t,tempName:n,defaultStatus:r,tempInfo:i}){return h(`${Q.goods}/collect/saveNewClaimTemplate`,arguments[0])}function Xn(e){return h(`${Q.goods}/collect/detailNewClaimTemplate`,{id:e})}async function Z({ptName:e,ownerId:t,tempName:n,defaultStatus:r,pageCurrent:i,pageSize:a}){let o=await h(`${Q.goods}/collect/listNewClaimTemplate`,arguments[0]);if(o.records.length===1&&o.records[0].systemFlg===1){let{tempInfo:t,tempName:n}=await Zn();return delete t.id,t.tempName=`${n}(å¿å )`,await X({ptName:e,tempName:n,defaultStatus:1,tempInfo:JSON.stringify(t)}),Z(arguments[0])}return o}function Zn(e){return s()(`${Q.goods}/collect/detailDefaultClaimTemplate`,{ptName:e})}function Qn({ids:e}){return h(`${Q.goods}/collect/deleteNewClaimTemplate`,{ids:e})}function $n({ids:e}){return h(`${Q.goods}/collect/copyNewTemplateList`,{ids:e})}function er({ptName:e,id:t,defaultStatus:n}){return h(`${Q.goods}/collect/modifyNewTemplate`,arguments[0])}function tr(e){return h(`${Q.goods}/collect/removeClaimTemplateList`,e)}function nr(e){return h(`${Q.goods}/collect/copyClaimTemplateList`,e)}function rr(e){return h(`${Q.goods}/collect/getClaimTemplate`,e)}function ir(e){return h(`${Q.goods}/collect/modifyClaimTemplate`,e)}function ar(e){return h(`${Q.goods}/diagnosis/getDiagnosisProList`,e)}function or({data:e,ids:t,ptName:n,storeId:r}){return h(`${Q.goods}/diagnosis/batchZeroEffectOptimization`,arguments[0])}function sr(e){return h(`${Q.goods}/diagnosis/batchDiagnosisPros`,e)}function cr(e){return h(`${Q.goods}/diagnosis/saveAndUpdatePro`,e)}function lr({operateStatus:e,problemType:t,ptName:n,storeId:r,syncTime:i,operateFlag:a,pageCurrent:o,pageSize:s,productImpact:c,titles:l,productId:u}){let d={operateStatus:e,problemType:t,ptName:n,storeId:r,syncTime:i,operateFlag:a,pageCurrent:o,pageSize:s,productImpact:c,titles:l,productId:u};return h(`${Q.goods}/diagnosis/queryDiagnosisProducts`,d)}function ur({operateStatus:e,ptName:t,storeId:n,titles:r,productId:i,productImpact:a,problemType:
1o}){let s={operateStatus:e,ptName:t,storeId:n,titles:r,productId:i,productImpact:a,problemType:o};return h(`${Q.goods}/diagnosis/querySearchCriteria`,s)}function dr({storeId:e,flag:t,productId:n}){let r={storeId:e,flag:t,productId:n};return h(`${Q.goods}/diagnosis/queryProductTrend`,r)}function fr({ptName:e,storeId:t,currentPage:n,pageSize:r,problemTypeList:i}){let a={ptName:e,storeId:t,currentPage:n,pageSize:r,problemTypeList:i};return h(`${Q.goods}/diagnosis/syncDiagnosisProducts`,a)}function pr({ptName:e,ids:t}){let n={ptName:e,ids:t};return h(`${Q.goods}/product/deleteDiagnosisProducts`,n)}function mr({ptName:e,storeId:t,data:n}){let r={ptName:e,storeId:t,data:n};return h(`${Q.goods}/attrTemp/importRecommendProduct`,r)}function hr(e){return h(`${Q.goods}/product/updateDetail`,e)}function gr({ptName:e,storeId:t,productId:n,videoId:r}){return h(`${Q.goods}/product/videoRelationProductMain`,{ptName:e,storeId:t,productId:n,videoId:r})}function _r({ptName:e,cateId:t,words:n}){return s()(`${Q.goods}/product/transCateAttr`,{ptName:e,cateId:t,words:n})}function vr({ptName:e,storeId:t,lang:n,articleIdList:r,linkingTargetType:i}){let a={ptName:e,storeId:t,lang:n,articleIdList:r,linkingTargetType:i};return h(`${Q.goods}/aboutProduct/getCarmodelLinktarget`,a)}function yr({ptName:e,storeId:t,linkTargetIdList:n,brandId:r,countryId:i,current:a,modelId:o,pageSize:s,yearId:c}){let l={ptName:e,storeId:t,linkTargetIdList:n,brandId:r,countryId:i,current:a,modelId:o,pageSize:s,yearId:c};return h(`${Q.goods}/aboutProduct/batchFindCarmodelByTecId`,l)}function br({ptName:e,storeId:t,lang:n,current:r,pageSize:i,searchQuery:a,searchType:o}){let s={ptName:e,storeId:t,lang:n,current:r,pageSize:i,searchQuery:a,searchType:o};return h(`${Q.goods}/aboutProduct/getCarmodelArticle`,s)}function xr({ptName:e,currPage:t,pageSize:n,ownerId:r,storeId:i,tempType:a,tempName:o}){let s={ptName:e,currPage:t,pageSize:n,ownerId:r,storeId:i,tempType:a,tempName:o};return h(`${Q.goods}/attrTemp/getCarTemplateList`,s)}function Sr({ptName:e,ids:t}){let n={ptName:e,ids:t};return h(`${Q.goods}/attrTemp/removeCarTemplateList`,n)}function Cr({ptName:e,ids:t,storeIds:n}){let r={ptName:e,ids:t,storeIds:n};return h(`${Q.goods}/attrTemp/copyCarTemplate`,r)}function wr({ptName:e,storeId:t,tempName:n,carInfo:r,tempType:i}){let a={ptName:e,storeId:t,tempName:n,carInfo:r,tempType:i};return h(`${Q.goods}/attrTemp/addCarTemplate`,a)}function Tr({ptName:e,storeId:t,productId:n,vehicleType:r}){return s()(`${Q.goods}/aboutProduct/queryProductCarInfo`,arguments[0])}function Er({storeId:e,tempName:t,carInfo:n,tempType:r,id:i}){let a={storeId:e,tempName:t,carInfo:n,tempType:r,id:i};return h(`${Q.goods}/attrTemp/modifyCarTemplate`,a)}function Dr({id:e,ptName:t}){let n={id:e,ptName:t};return h(`${Q.goods}/attrTemp/getCarTemplate`,n)}function Or({ptName:e,uploadFile:t,vehicleType:n}){let r={ptName:e,uploadFile:t,vehicleType:n};return h(`${Q.goods}/aboutProduct/importCarInfo`,r,{headers_type:`formData`})}function kr(e={}){return h(`${Q.goods}/aboutProduct/queryCarmodelSixLevelOe`,e)}function Ar(e={}){return s()(`${Q.goods}/aboutProduct/queryBindCarmodelSixLevel`,e)}function jr(e={}){return s()(`${Q.goods}/aboutProduct/queryCarmodelSixLevel`,e)}function Mr(e={}){return h(`${Q.goods}/aboutProduct/batchModifyLocalProductCarInfo`,e)}function Nr(e={}){return h(`${Q.goods}/aboutProduct/batchModifyOnlineProductCarInfo`,e)}async function Pr({ptName:e,catId:t,storeId:n}){return s()(`${Q.goods}/aboutProduct/queryPostCategoryinfo`,arguments[0])}function Fr({ptName:e,storeId:t,ids:n,data:r}){return h(`${Q.goods}/product/batchOneKeyChange`,{ptName:e,storeId:t,ids:n,data:r,versionFlg:`new`})}function Ir({ptName:e,data:t,proType:n,taskId:r}){let i={ptName:e,data:t,proType:n,taskId:r};return h(`${Q.goods}/product/batchUpdateProductWebDetail`,i)}function Lr({ptName:e,storeId:t,cateId:n,pageNum:r,pageSize:i}){let a={ptName:e,storeId:t,categoryId:+n,pageNum:r,pageSize:i};return s()(`${Q.goods}/aboutProduct/getCategoryEuResponsiblePersonsList`,a)}function Rr({ptName:e,storeId:t,cateId:n}){let r={ptName:e,storeId:t,categoryId:+n};return s()(`${Q.goods}/aboutProduct/getCategoryQualificationsList`,r)}function zr({leafCategoryId:e,storeId:t,cache:n=!0}){let r=d(),i=k.joinToStr([r,`dxb`,`getSizeTemplate`,t,String(e)]);return c.cacheLocalFun(()=>new Promise(async n=>{let i=[],a=async(n,i)=>{try{let o=await h(`${Q.goods}/aboutProduct/getSizeTemplatesByCategoryId`,{ptName:r,storeId:t,leafCategoryId:String(e),currentPage:n}),s=p(o,`total`,0),c=p(o,`size_page`,20),l=p(o,`sizechart_d_t_o_list`,[]).map(e=>({...e,isDefault:!1,modelName:e.model_name,name:e.name,sizechartId:e.sizechart_id}));i.push(...l),n<Math.ceil(s/c)&&await a(n+1,i)}catch{}};await a(1,i),n(i)}),{keyName:i,expire:.002,cache:n})}function Br({ptName:e,leafCategoryId:t,storeId:n}){return s()(`${Q.goods}/aboutProduct/getSizeTemplatesByCategoryId`,arguments[0])}function Vr({ptName:e,storeId:t}){let n={ptName:e,storeId:t};return s()(`${Q.goods}/aboutProduct/merchantProductPostLimit`,n)}function Hr({choices:e,ids:t,storeId:n}){let r={choices:e,ids:t,storeId:n};return h(`${Q.goods}/product/batchOneKeyMarketingImageForLocalProducts`,r)}function Ur({ptName:e,data:t,proType:n,taskId:r}){return h(`${Q.goods}/product/batchUpdateProductWirelessDetail`,{ptName:e,data:t,proType:n,taskId:r})}function Wr({storeId:e,data:t}){return h(`${Q.goods}/aboutProduct/addOrUpdateOnlineProInfo`,arguments[0])}function Gr({key_words:e,language:t,hs_code:n,product_id:r,ptName:i,storeId:a}){let o={key_words:e,language:t,hs_code:n,product_id:r,ptName:i,storeId:a};return h(`${Q.goods}/aboutProduct/searchProductHscodeInfo`,o)}function Kr({auditStatus:e,cusProductForm:t,ptName:n,storeId:r,categoryId:i,status:a,source:o,flag:s,moreKey:c,moreValue:l,currPage:u,pageSize:d,sortField:f,sortType:p},m=!1){let g={productId:``,productTitle:``,productName:``,sourceUrl:``,remark:``,model:``};Object.hasOwn(g,c)&&(g[c]=l),E(a,`approved`,`onSelling`),w(a,`offline`)&&(a=``);let _={auditStatus:e,cusProductForm:t,ptName:n,storeId:r,cateId:i,status:a,source:o,subject:g.productName||g.productTitle,sourceUrl:g.sourceUrl,remark:g.remark,productId:g.productId,flag:s,sortField:f,sortType:p,currPage:u,pageSize:d};return h(`${Q.goods}/customizedProduct/queryCustomizedProductList`,_,{page:m})}function qr({ptName:e,storeId:t}){let n={ptName:e,storeId:t};return h(`${Q.goods}
1/customizedProduct/syncCustomizedProductList`,n)}async function Jr({cateId:e,ptName:t,storeId:n,groupId:r=2}){return s()(`${Q.goods}/aboutProduct/queryCascadeProperties`,arguments[0])}async function Yr({ptName:e,storeId:t}){return s()(`${Q.goods}/aboutProduct/queryMerchantAgreementSignList`,arguments[0],{showError:!1}).catch(()=>null)}async function Xr({ptName:e,storeId:t,ids:n,type:r,versionFlg:i,overseaInfo:a}){return h(`${Q.goods}/product/batchModifyLocalProductOverseaInfo`,arguments[0])}async function Zr(){let{ae_region_state_edit:e}=await s()(`${Q.user}/sysDict/itemListByCodes`,{codes:`ae_region_state_edit`});return e.sort((e,t)=>e.code-t.code).map(e=>({name:e.name,name_zh:e.name,type:e.content,checked:!1}))}async function Qr({codes:e}){return s()(`${Q.user}/sysDict/itemListByCodes`,arguments[0])}async function $r({ptName:e,storeId:t}){return s()(`${Q.goods}/aboutProduct/queryPieceRateUnits`,arguments[0])}async function ei({ptName:e,storeId:t}){return s()(`${Q.goods}/aboutProduct/queryStockingCountries`,arguments[0])}async function ti({ptName:e,storeId:t,groupId:n}){return s()(`${Q.goods}/aboutProduct/getGroupById`,arguments[0])}async function ni(e){return h(`${Q.goods}/product/addOrUpdateDhwLocalProduct`,e)}async function ri(e){return h(`${Q.goods}/product/addOrUpdateAmazonLocalProduct`,e)}function ii({ptName:e,data:t,storeId:n,type:r}){return h(`${Q.goods}/smartTitle/batchGenerateSmartTitleLocal`,arguments[0])}function ai({ptName:e,data:t,storeId:n}){return h(`${Q.goods}/domestic/product/batchGenerateTitle`,arguments[0])}function oi({ptName:e,data:t,storeId:n,marketplaceId:r,type:i}){return h(`${Q.goods}/smartTitle/saveSmartTitleLocal`,arguments[0])}function si({ptName:e,storeId:t,catePubId:n,brandName:r,pageNum:i,pageSize:a}){return s()(`${Q.goods}/aboutProduct/getBrandByPage`,arguments[0])}function ci({ptName:e,storeId:t,id:n,sourceUrl:r,source:i}){return h(`${Q.goods}/domestic/product/editSourceInfo`,arguments[0])}function li({ptName:e,storeId:t,cateId:n},r=!0){return s({cache:r})(`${Q.goods}/thirdCollect/cateAttrList`,arguments[0])}function ui({ptName:e,storeId:t,cateId:n},r=!0){return s({cache:r})(`${Q.goods}/thirdCollect/cateCertificateList`,arguments[0])}function di({ptName:e,storeId:t,cateId:n,propId:r,propValue:i,cursor:a}){return s()(`${Q.goods}/thirdCollect/cateAttrValueList`,arguments[0])}var Q;function $(){return($=e((()=>{N(),n(),r(),o(),f(),m(),_(),g(),x(),u(),{API:Q}=a,l({checkProductScore:Rn,getAttributeByCateId:U,getGroupById:G,getProductSchema:W,queryReleaseTemplate:Y})})))()}export{ie as $,xt as $n,fr as $r,Ct as $t,Mt as A,et as An,Te as Ar,Zr as At,Fr as B,vt as Bn,ln as Br,li as Bt,He as C,Ot as Cn,mn as Cr,An as Ct,Mr as D,W as Dn,_e as Dr,tn as Dt,It as E,Xt as En,we as Er,nn as Et,Ft as F,Or as Fn,Ye as Fr,si as Ft,Ir as G,Vr as Gn,oi as Gr,Lr as Gt,sn as H,Ie as Hn,ze as Hr,ui as Ht,Vt as I,ct as In,Sr as Ir,Dr as It,pe as J,er as Jn,Wn as Jr,vn as Jt,Ur as K,Er as Kn,Le as Kr,Rr as Kt,Rt as L,Pn as Ln,St as Lr,xr as Lt,zt as M,Br as Mn,Tt as Mr,U as Mt,Nr as N,ke as Nn,Et as Nr,Je as Nt,Xr as O,an as On,Ce as Or,$t as Ot,Bt as P,mt as Pn,Dt as Pr,Xe as Pt,ce as Q,fe as Qn,qr as Qr,Jn as Qt,Be as R,En as Rn,Jt as Rr,br as Rt,ai as S,Me as Sn,ei as Sr,Dn as St,Lt as T,Ee as Tn,ye as Tr,en as Tt,Re as U,Nn as Un,X as Ur,$e as Ut,Hr as V,Z as Vn,cr as Vr,di as Vt,qn as W,zn as Wn,Vn as Wr,Qe as Wt,ue as X,De as Xn,Un as Xr,kn as Xt,de as Y,it as Yn,Gn as Yr,On as Yt,le as Z,jn as Zn,Kn as Zr,rr as Zt,ge as _,We as _n,Pr as _r,ir as _t,ni as a,me as ai,G as an,wn as ar,nr as at,yr as b,Fn as bn,Y as br,pn as bt,Ln as c,In as ci,Ht as cn,Ar as cr,$n as ct,pt as d,gn as di,Fe as dn,Jr as dr,Qn as dt,Oe as ei,yn as en,ht as er,ae as et,lt as f,gr as fi,Ae as fn,Ze as fr,Xn as ft,jt as g,Ke as gn,$r as gr,_n as gt,dt as h,Ne as hn,Yr as hr,or as ht,ri as i,_t as ii,qe as in,Sn as ir,Cr as it,Nt as j,zr as jn,ne as jr,nt as jt,Pt as k,tt as kn,H as kr,rn as kt,dn as l,Gt as li,Ut as ln,jr as lr,tr as lt,ot as m,Pe as mn,lr as mr,cn as mt,wr as n,gt as ni,ar as nn,xn as nr,re as nt,rt as o,hr as oi,ti as on,At as or,oe as ot,ut as p,Mn as pn,Kr as pr,Zt as pt,Tn as q,wt as qn,Gr as qr,Hn as qt,Yn as r,yt as ri,Qr as rn,Cn as rr,te as rt,Wr as s,at as si,ve as sn,bt as sr,Kt as st,ft as t,hn as ti,Qt as tn,bn as tr,se as tt,mr as u,Wt as ui,Bn as un,kr as ur,pr as ut,on as v,Ge as vn,Tr as vr,ci as vt,je as w,Yt as wn,Se as wr,ee as wt,ii as x,un as xn,ur as xr,fn as xt,sr as y,Ue as yn,dr as yr,st as yt,Ve as z,$ as zn,qt as zr,vr as zt};
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.