1"use strict";(globalThis.webpackChunkuppsale_admin=globalThis.webpackChunkuppsale_admin||[]).push([[3376],{3376(e,a,n){n.r(a),n.d(a,{default:()=>p,fixture:()=>v});n(5043);var t=n(2538),i=n(6499),l=n(8646),r=n(3765),u=n(7197),d=n(7244);var o=n(579);const s=l.IMAGE_FIELDS.filter(e=>e.perLanguage),g={"backgrounds.home":"generic_backgrounds_home","backgrounds.categories":"generic_backgrounds_categories"},v={routes:(c=Object.values(g),h="e",{"GET /api/img":e=>{var a;const n=String((null===(a=e.params)||void 0===a?void 0:a.url)||"").split("/").pop(),t=c.some(e=>n===`${e}-${h}`);return n.endsWith(`-${h}`)&&!t?{status:404}:{data:d.gV}}})};var c,h;function p(){const e=(0,r.L)(),{variants:a,renderImageField:n}=(0,u.ie)(g);return(0,o.jsx)(i.A,{title:t.T.backgroundsGroupTitle,fields:s,accent:"violet",icon:"ri-image-line",t:e,variants:a,languageNames:u.G2,renderImageField:n})}},3765(e,a,n){n.d(a,{A:()=>d,L:()=>u});var t=n(5043),i=n(6570),l=n(2337),r=n(579);function u(){const{clientlanguage:e}=(0,t.useContext)(i.Rs),a="he"===e?"he":"en";return e=>(0,l.tr)(e,a)}function d(e){let{children:a}=e;return(0,r.jsx)("div",{style:{width:560,maxWidth:"100%"},children:a})}},7197(e,a,n){n.d(a,{Ay:()=>f,G2:()=>p,ie:()=>m});var t,i,l,r,u=n(5043),d=n(6570),o=n(2834),s=n(7968),g=n(3120),v=n(8953),c=n(3765),h=n(579);const p={h:(null===d.DE||void 0===d.DE||null===(t=d.DE.language)||void 0===t||null===(i=t.h)||void 0===i?void 0:i.he)||"\u05e2\u05d1\u05e8\u05d9\u05ea",e:(null===d.DE||void 0===d.DE||null===(l=d.DE.language)||void 0===l||null===(r=l.e)||void 0===r?void 0:r.he)||"\u05d0\u05e0\u05d2\u05dc\u05d9\u05ea"};function m(e){var a,n,t;const i=(0,c.L)(),{rest:l,RestData:r}=(0,u.useContext)(d.Rs),[m,f]=(0,u.useState)(e),b=(null===r||void 0===r||null===(a=r.details)||void 0===a||null===(n=a.defaultLangs)||void 0===n?void 0:n[0])||"h",k=(null===r||void 0===r||null===(t=r.details)||void 0===t?void 0:t.langs)||["h"],x=(0,s.A)({rest:l,defaultLang:b,restLangs:k,images:m});return{variants:x,renderImageField:e=>{return e?(0,h.jsx)(o.A,{field:e,t:i,value:m[e.path],previewUrl:(a=m[e.path],(0,g.v)(l,a)),languageNames:p,variants:x,onUpload:(e,a)=>a&&(0,v.$)("POST","/api/upload",{path:e,file:a.name}),onValueChange:(e,a)=>f(n=>({...n,[e]:a})),onClear:e=>f(a=>({...a,[e]:""})),onRemoveVariantFile:(e,a)=>(0,v.$)("POST","/api/delete-image",{path:e,lang:a})},e.path):null;var a}}}function f(e){let{field:a,initialValue:n=""}=e;const{renderImageField:t}=m({[a.path]:n});return(0,h.jsx)("div",{style:{width:560,maxWidth:"100%"},children:t(a)})}},8953(e,a,n){n.d(a,{$:()=>i});var t=n(9611);function i(e,a,n){t.B.emitLater({method:e,url:a,status:200,body:n,at:Date.now()})}}}]); 2//# sourceMappingURL=3376.66e03052.chunk.js.map
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.