PageSourceSearch

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

js autods.com collected 2026-10-01 10:23:46 UTC 2,700 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:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="28b78a5b-d5dd-42b2-a840-7e8abaa7270c",e._sentryDebugIdIdentifier="sentry-dbid-28b78a5b-d5dd-42b2-a840-7e8abaa7270c")}catch(C){}import{r as e,j as a}from"./CSvdPb0x.js";import{b as s,y as t,z as i,bv as n,a3 as r,ed as m,B as d,xk as l,mb as o,m as c,xl as p,xm as g,ao as h,xn as u,aZ as f}from"./BGGoRUt3.js";import{b as j,c as y}from"./8ybVXw8-.js";import{T as b,I as x,a as k}from"./BdcfSeaX.js";import{S as _}from"./BIXfgLkj.js";import{H as w}from"./B7Ih5Fj1.js";import"./D6ESIijv.js";import"./Cfcv-nKJ.js";import"./CEo_TK25.js";import"./CFMPR9wT.js";const I=[{name:"title",key:"title"},{name:"description",key:"description"},{name:"store_name",key:"store_name"},{name:"main_image_with_tag",key:"main_image_with_tag"},{name:"main image",key:"main_image"},{name:"product dimension",key:"product_dimensions"},{name:"item specifics",key:"item_specifics"}],N=({templateName:p,setTemplateName:g})=>{const h=s(),u=t(),f=i(j),[y,k]=e.useState(!1),w=e.useRef();return a.jsxs(b,{isEdit:y,children:[a.jsxs("div",{className:"editable-name",children:[a.jsx(n,{size:"large",ref:w,value:p,onChange:({target:e})=>g(e.value)}),a.jsx(r,{title:y?"Finish Editing":"Edit Template Name",children:a.jsx("span",{onClick:()=>{k(!y),y?w.current.blur():w.current.focus()},children:a.jsx(m,{})})})]}),a.jsxs(d,{type:"link",onClick:()=>{h(l(f)),u.push({pathname:o,search:`?templateId=${f.id}`,from:u.location.pathname})},children:[a.jsx(_,{className:"m-r-5"})," Preview"]}),a.jsxs(x,{children:["Insert:",c(I,(s,t)=>a.jsxs(e.Fragment,{children:[a.jsx(d,{type:"link",onClick:()=>(e=>window.ckEditor?.insertText(`{{ ${e} }}`))(s.key),children:s.name}),I.length!==t+1&&", "]},s.key))]})]})},v=({templateId:t,onModalClose:n})=>{const r=s(),m=i(j),{isLoading:o,isUpdating:c}=i(y),[b,x]=e.useState(""),[_,I]=e.useState(!0),{status:v}=i(p),C=e.useCallback(()=>I(e=>!e),[]);e.useEffect(()=>(t&&r(g(t)),()=>{!h(m)&&r(u({data:{}}))}),[t]),e.useEffect(()=>{h(m)||x(m.name)},[m]);const E=e.useMemo(()=>({height:"calc(100vh - 270px)",editorHeight:"calc(100vh - 340px)"}),[]);return a.jsx(k,{children:o?a.jsx(f,{}):a.jsxs(a.Fragment,{children:[a.jsx(N,{templateName:b,setTemplateName:x}),!h(m)&&a.jsx(w,{height:E,readOnly:!m,editorId:t,data:m.templateHtml,onMode:C}),a.jsx(d,{type:"primary",size:"large",disabled:_,loading:c,onClick:async()=>{await r(l({...m,name:b,templateHtml:window[`description-${t}`]||m.templateHtml})),1!==v&&n()},children:c?"Updating":"Update"})]})})};export{v 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.