PageSourceSearch

https://platform.autods.com/BV5gKwCB.js

js autods.com collected 2026-09-24 08:53:41 UTC 3,183 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="57e92a01-784e-4170-9a7b-d2f8d8c6676c",e._sentryDebugIdIdentifier="sentry-dbid-57e92a01-784e-4170-9a7b-d2f8d8c6676c")}catch(G){}import{g as e,r as s,j as a}from"./CSvdPb0x.js";import{oB as n,oC as o,yb as r,aM as t,ac as i,b as l,y as d,m as c,bv as p,K as u,ar as h,B as m,o as f,fY as x,ao as g}from"./B97aNPiN.js";import{R as y}from"./CY8cQ993.js";import{u as j,a as b}from"./BYcKH4Zj.js";import"./D6ESIijv.js";import"./Cf_NF55G.js";import"./B8CUchad.js";var w,v;const I=e(function(){if(v)return w;v=1;var e=n(),s=o();return w=function(a,n,o){var r=null==a?0:a.length;return r?(n=o||void 0===n?1:s(n),e(a,0,(n=r-n)<0?0:n)):[]}}()),C=r([({keywordsData:e})=>e.results,(e,s)=>s],(e,s)=>t(e,{id:s})),k="name",D="blockInTitle",z="removeFromTitle",K="blockInDescription",M="removeFromDescription",T="blockInManufacturer",N={[k]:"",[D]:!1,[z]:!1,[K]:!1,[M]:!1,[T]:!1},S={0:{[D]:!1,[z]:!1},1:{[D]:!0,[z]:!1},2:{[D]:!1,[z]:!0}},_={0:{[K]:!1,[M]:!1},1:{[K]:!0,[M]:!1},2:{[K]:!1,[M]:!0}},E=i.div.withConfig({componentId:"sc-1tl9urw-0"})(["width:380px;label{textarea{margin-top:10px;font-size:",";resize:none;}}.ant-row{margin-bottom:25px;}"],({theme:e})=>e.fontSizeMedium),A=i.div.withConfig({componentId:"sc-2xhkiu-0"})(["display:flex;justify-content:space-between;padding-top:25px;border-top:1px solid ",";"],({theme:e})=>e.colorGrey100),{TextArea:B}=p,F=({id:e,onModalClose:n})=>{const o=l(),r=d(C,e),[t,i]=s.useState(r||N),[w,v]=s.useState(!1),F=!!t.id,G=c(["Do nothing","Don't upload the product","Delete from the uploaded text"],(e,s)=>({value:s,label:e})),R=e=>i({...t,...e}),U=s.useMemo(()=>F?a.jsx(p,{size:"large",value:t[k],placeholder:"Enter Keyword",onChange:({target:{value:e}})=>R({[k]:e})}):a.jsx(B,{rows:4,value:t[k],placeholder:"Keyword1\nKeyword2\nKeyword3\n",onChange:({target:{value:e}})=>R({[k]:e})}),[F,t[k]]);return a.jsxs(E,{children:[a.jsxs("h2",{children:[F?"Edit":"Add"," Keywords"]}),a.jsxs(y,{className:"modal-form mb-16",children:[a.jsx(u,{span:24,children:a.jsxs("label",{children:["Keyword ",!F&&"list",U]})}),a.jsx(u,{span:24,children:a.jsxs("label",{children:["If keyword appears in the product's title",a.jsx(h,{value:(t[D]?1:t[z]&&2)||0,size:"large",className:"w-p-100",options:G,onChange:e=>R(S[e])})]})}),a.jsx(u,{span:24,children:a.jsxs("label",{children:["If keyword appears in the product's description",a.jsx(h,{value:(t[K]?1:t[M]&&2)||0,size:"large",className:"w-p-100",options:G,onChange:e=>R(_[e])})]})}),a.jsx(u,{span:24,children:a.jsxs("label",{children:["If keyword appears in the product's manufacturer",a.jsx(h,{value:t[T]?1:0,size:"large",className:"w-p-100",options:I(G),onChange:e=>R({[T]:!!e})})]})})]}),a.jsxs(A,{children:[a.jsx(m,{type:"text",size:"large",onClick:n,children:"Cancel"}),a.jsx(m,{type:"primary",size:"large",loading:w,onClick:async()=>{v(!0);const e=F?t:{...t,name:f(x(t.name,"\n"),e=>!g(e))},s=F?j:b;await o(s(e)),v(!1)},children:F?"Update":"Save"})]})]})};export{F as default};

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.