1import{r as d,j as e,i as N,o as _,p as y,B as c,X as Ce,l as w,aM as de,t as x,h as _e,x as ye,O as Se,I as C,k as ie,q as K}from"./index-Bj3g7Z6n.js";import{L as p}from"./label-ZAJAkNWx.js";import{T as ke,a as Ie,b as le,c as re}from"./tabs-xnuR-ZTi.js";import{I as ne}from"./ImageUpload-DAT97mg2.js";import{u as Pe,a as De,b as Me,c as Be,d as Ae,e as Le,f as Fe,g as He,h as Te}from"./useMoodBoards-C00mDSUV.js";import{C as $e}from"./checkbox-D3peOizo.js";import{S as Ue,a as Ee,b as ze,c as Ge,d as ce}from"./select-B3ESPlDy.js";import{S as me}from"./save-10kLEH9O.js";import{T as R}from"./trash-2-C3_qP8oE.js";import{T as Re}from"./textarea-DpDzU_cc.js";import{L as $}from"./loader-circle-C_9W7T9k.js";import{P as oe}from"./plus-DsiBBfmX.js";import{E as Oe}from"./eye-off-D-bE27Zb.js";import{E as Ve}from"./eye-C93GB6sI.js";import{M as Xe}from"./map-pin-DZ85rFdr.js";import{L as Ye}from"./link-Bm1yocpT.js";import{S as qe}from"./square-pen-B40SNPd7.js";import"./imageUtils-CDIeZ0Pn.js";import"./image-DbaIcSSK.js";import"./upload-3X4ftL-M.js";import"./index-dP3aIPNJ.js";import"./chevron-down-B1MXwv-_.js";import"./chevron-up--nB-FXHv.js";function Qe({imageUrl:O,deals:b,customItems:r=[],existingHotspots:V=[],onSave:B,onClose:I}){const[m,P]=d.useState(V),[A,U]=d.useState(!1),[l,j]=d.useState(null),[f,v]=d.useState(null),S=d.useRef(null),E=t=>{if(!S.current)return;const i=S.current.getBoundingClientRect(),o=(t.clientX-i.left)/i.width*100,n=(t.clientY-i.top)/i.height*100;U(!0),j({id:`hotspot-${Date.now()}`,x:o,y:n,width:0,height:0,shape:"rectangle"})},X=t=>{if(!A||!l||!S.current)return;const i=S.current.getBoundingClientRect(),o=(t.clientX-i.left)/i.width*100,n=(t.clientY-i.top)/i.height*100;j({...l,width:Math.abs(o-(l.x||0)),height:Math.abs(n-(l.y||0)),x:Math.min(o,l.x||0),y:Math.min(n,l.y||0)})},z=()=>{if(!(!A||!l)){if((l.width||0)>2&&(l.height||0)>2){const t=b[0]||r[0],i={id:l.id,type:b[0]?"deal":"custom_item",reference_id:(t==null?void 0:t.id)||"",shape:"rectangle",x:l.x||0,y:l.y||0,width:l.width||0,height:l.height||0};P([...m,i]),v(i.id)}U(!1),j(null)}},L=(t,i,o)=>{const H=[...b,...r].find(g=>g.id===o);P(m.map(g=>g.id===t?{...g,type:i,reference_id:o,label:H==null?void 0:H.title}:g))},F=t=>{P(m.filter(i=>i.id!==t)),f===t&&v(null)},D=()=>{if(m.filter(i=>!i.reference_id).length>0){x.error("Please assign a deal or custom item to all hotspots before saving");return}B(m),x.success(`Saved ${m.length} hotspot${m.length!==1?"s":""}`)},u=f?m.find(t=>t.id===f):null,M=[...b,...r],a=u?M.find(t=>t.id===u.reference_id):null;return e.jsx("div",{className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm",children:e.jsx("div",{className:"fixed inset-4 z-50 flex items-center justify-center",children:e.jsxs(N,{className:"w-full h-full max-w-7xl flex flex-col",children:[e.jsxs(_,{className:"flex-shrink-0",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(y,{children:"Configure Hotspots"}),e.jsx(c,{variant:"ghost",size:"icon",onClick:I,children:e.jsx(Ce,{className:"h-4 w-4"})})]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Click and drag on the image to create clickable hotspot areas. Assign each hotspot to a deal."})]}),e.jsxs(w,{className:"flex-1 flex gap-4 overflow-hidden",children:[e.jsxs("div",{className:"flex-1 flex flex-col gap-2 overflow-hidden",children:[e.jsxs("div",{className:"text-sm text-muted-foreground",children:[m.length," hotspot",m.length!==1?"s":""," created"]}),e.jsx("div",{className:"flex-1 overflow-auto",children:e.jsxs("div",{ref:S,className:"relative inline-block cursor-crosshair select-none",onMouseDown:E,onMouseMove:X,onMouseUp:z,onMouseLeave:z,style:{touchAction:"none"},children:[e.jsx("img",{src:O,alt:"Gift guide",className:"max-w-full h-auto pointer-events-none",draggable:!1}),m.map(t=>{var i;return e.jsx("div",{className:`absolute border-2 transition-all ${f===t.id?"border-primary bg-primary/20":"border-accent bg-accent/30"} hover:bg-accent/40 cursor-pointer`,style:{left:`${t.x}%`,top:`${t.y}%`,width:`${t.width}%`,height:`${t.height}%`},onClick:o=>{o.stopPropagation(),v(t.id)},children:e.jsx("div",{className:"absolute top-0 left-0 bg-primary text-primary-foreground text-xs px-1 py-0.5",children:((i=t.label)==null?void 0:i.substring(0,20))||"Unassigned"})},t.id)}),l&&l.width&&l.height&&e.jsx("div",{className:"absolute border-2 border-primary bg-primary/20",style:{left:`${l.x}%`,top:`${l.y}%`,width:`${l.width}%`,height:`${l.height}%`}})]})})]}),e.jsxs("div",{className:"w-80 flex-shrink-0 flex flex-col gap-4",children:[e.jsx("div",{className:"flex gap-2",children:e.jsxs(c,{onClick:D,className:"flex-1",children:[e.jsx(me,{className:"mr-2 h-4 w-4"}),"Save Hotspots"]})}),f&&e.jsxs(N,{children:[e.jsx(_,{children:e.jsx(y,{className:"text-base",children:"Selected Hotspot"})}),e.jsxs(w,{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(p,{children:"Link To"}),e.jsxs(Ue,{value:`${u==null?void 0:u.type}:${u==null?void 0:u.reference_id}`||"",onValueChange:t=>{const[i,o]=t.split(":");L(f,i,o)},children:[e.jsx(Ee,{children:e.jsx(ze,{placeholder:"Select a deal or custom item"})}),e.jsxs(Ge,{children:[b.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"px-2 py-1.5 text-sm font-semibold text-muted-foreground",children:"Deals"}),b.map(t=>e.jsx(ce,{value:`deal:${t.id}`,children:t.title},`deal:${t.id}`))]}),r.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"px-2 py-1.5 text-sm font-semibold text-muted-foreground",children:"Custom Items"}),r.map(t=>e.jsx(ce,{value:`custom_item:${t.id}`,children:t.title},`custom_item:${t.id}`))]})]})]})]}),a&&a.image_url&&e.jsxs("div",{children:[e.jsx(p,{children:"Preview"}),e.jsx("img",{src:a.image_url,alt:a.title,className:"w-full h-32 object-cover rounded mt-2"})]}),e.jsxs(c,{variant:"destructive",size:"sm",onClick:()=>F(f),className:"w-full",children:[e.jsx(R,{className:"mr-2 h-4 w-4"}),"Delete Hotspot"]})]})]}),e.jsxs(N,{className:"flex-1 overflow-hidden",children:[e.jsx(_,{children:e.jsx(y,{className:"text-base",children:"All Hotspots"})}),e.jsx(w,{children:e.jsx(de,{className:"h-[400px]",children:e.jsx("div",{className:"space-y-2",children:m.length===0?e.jsx("p",{className:"text-sm text-muted-foreground text-center py-8",children:"No hotspots yet. Click and drag on the image to create one."}):m.map(t=>{const i=M.find(o=>o.id===t.reference_id);return e.jsx("div",{className:`p-2 border rounded cursor-pointer transition-colors ${f===t.id?"border-primary bg-accent":"hover:bg-accent/50"}`,onClick:()=>v(t.id),children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("span",{className:"text-sm font-medium truncate block",children:(i==null?void 0:i.title)||"Unassigned"}),e.jsx("span",{className:"text-xs text-muted-foreground",children:t.type==="deal"?"ð¦ Deal":"ð Custom"})]}),e.jsx(c,{variant:"ghost",size:"icon",className:"h-6 w-6 flex-shrink-0",onClick:o=>{o.stopPropagation(),F(t.id)},children:e.jsx(R,{className:"h-3 w-3"})})]})},t.id)})})})})]})]})]})]})})})}const vs=()=>{var se,te,ae;_e();const[O,b]=ye(),r=O.get("board"),[V,B]=d.useState(!1),[I,m]=d.useState(""),[P,A]=d.useState(""),[U,l]=d.useState("all"),[j,f]=d.useState([]),[v,S]=d.use
1State(null),[E,X]=d.useState(""),[z,L]=d.useState(!1),[F,D]=d.useState(!1),[u,M]=d.useState(null),[a,t]=d.useState({title:"",description:"",image_url:"",external_url:"",price:"",original_price:"",badge_label:""}),{data:i,isLoading:o}=Pe(),{data:n,isLoading:H}=De(r||void 0),{data:g}=Se({}),{data:k=[]}=Me(r||void 0),Y=Be(),T=Ae(),he=Le(),q=Fe(),Q=He(),ue=Te();d.useEffect(()=>{r&&n&&(f(n.deal_ids||[]),S(n.static_image_url||null))},[r,n]);const xe=async()=>{if(!I.trim()){x.error("Please enter a board title");return}const s=P||I.toLowerCase().replace(/[^a-z0-9]+/g,"-");await Y.mutateAsync({title:I,slug:s,background_color:"#FAF7F0",published:!1}),m(""),A(""),B(!1)},ge=async(s,h)=>{await T.mutateAsync({id:s,published:!h})},pe=async s=>{confirm("Are you sure you want to delete this mood board?")&&(await he.mutateAsync(s),r===s&&b({}))},W=s=>{f(h=>h.includes(s)?h.filter(G=>G!==s):h.length>=25?(x.error("Maximum 25 deals allowed per gift guide"),h):[...h,s])},je=async()=>{if(!r||!n){x.error("Please select a gift guide first");return}if(j.length===0){x.error("Please select at least one deal");return}try{await T.mutateAsync({id:r,deal_ids:j,static_image_url:v||null,published:!0}),x.success("Gift guide saved and published!")}catch(s){console.error("Save error:",s),x.error(s.message||"Failed to save mood board")}},fe=async s=>{if(r)try{await T.mutateAsync({id:r,canvas_data:{hotspots:s}}),L(!1),x.success("Hotspots saved successfully!")}catch(h){console.error("Hotspot save error:",h),x.error(h.message||"Failed to save hotspots")}},ve=async()=>{if(r){if(!a.title.trim()){x.error("Please enter a title");return}if(!a.external_url.trim()){x.error("Please enter an external URL");return}try{u?await Q.mutateAsync({id:u.id,mood_board_id:r,title:a.title,description:a.description||void 0,image_url:a.image_url||void 0,external_url:a.external_url,price:a.price?parseFloat(a.price):void 0,original_price:a.original_price?parseFloat(a.original_price):void 0,badge_label:a.badge_label||void 0}
1):await q.mutateAsync({mood_board_id:r,title:a.title,description:a.description||void 0,image_url:a.image_url||void 0,external_url:a.external_url,price:a.price?parseFloat(a.price):void 0,original_price:a.original_price?parseFloat(a.original_price):void 0,badge_label:a.badge_label||void 0,position:k.length}),t({title:"",description:"",image_url:"",external_url:"",price:"",original_price:"",badge_label:""}),M(null),D(!1)}catch(s){console.error("Custom item error:",s),x.error(s.message||`Failed to ${u?"update":"create"} custom item`)}}},Ne=s=>{var h,G;M(s),t({title:s.title,description:s.description||"",image_url:s.image_url||"",external_url:s.external_url,price:((h=s.price)==null?void 0:h.toString())||"",original_price:((G=s.original_price)==null?void 0:G.toString())||"",badge_label:s.badge_label||""}),D(!0)},we=()=>{D(!1),M(null),t({title:"",description:"",image_url:"",external_url:"",price:"",original_price:"",badge_label:""})},be=async s=>{!r||!confirm("Delete this custom item?")||await ue.mutateAsync({id:s,mood_board_id:r})},Z=(g==null?void 0:g.filter(s=>j.includes(s.id)))||[],ee=k.map(s=>({id:s.id,title:s.title,image_url:s.image_url,external_url:s.external_url})),J=g==null?void 0:g.filter(s=>s.title.toLowerCase().includes(E.toLowerCase()));return o?e.jsx("div",{className:"flex items-center justify-center p-8",children:e.jsx($,{className:"h-8 w-8 animate-spin"})}):e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold",children:"Gift Guides"}),e.jsx("p",{className:"text-muted-foreground",children:"Create gift guides with up to 25 deals and a custom image"})]}),e.jsxs(c,{onClick:()=>B(!0),children:[e.jsx(oe,{className:"mr-2 h-4 w-4"}),"New Gift Guide"]})]}),V&&e.jsxs(N,{children:[e.jsx(_,{children:e.jsx(y,{children:"Create New Gift Guide"})}),e.jsxs(w,{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(p,{htmlFor:"title",children:"Title"}),e.jsx(C,{id:"title",value:I,onChange:s=>m(s.target.value),placeholder:"e.g., Summer Essentials"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(p,{htmlFor:"slug",children:"Slug (optional)"}),e.jsx(C,{id:"slug",value:P,onChange:s=>A(s.target.value),placeholder:"summer-essentials"})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(c,{onClick:xe,disabled:Y.isPending,children:[Y.isPending&&e.jsx($,{className:"mr-2 h-4 w-4 animate-spin"}),"Create"]}),e.jsx(c,{variant:"outline",onClick:()=>B(!1),children:"Cancel"})]})]})]}),e.jsxs(ke,{value:U,onValueChange:l,children:[e.jsxs(Ie,{children:[e.jsx(le,{value:"all",children:"All Boards"}),r&&e.jsx(le,{value:"editor",children:"Editor"})]}),e.jsx(re,{value:"all",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:i==null?void 0:i.map(s=>{var h;return e.jsxs(N,{className:"overflow-hidden",children:[s.static_image_url&&e.jsx("img",{src:s.static_image_url,alt:s.title,className:"w-full h-48 object-cover"}),e.jsxs(_,{children:[e.jsxs(y,{className:"flex items-center justify-between",children:[s.title,e.jsx(ie,{variant:s.published?"default":"secondary",children:s.published?"Published":"Draft"})]}),e.jsxs(K,{children:[((h=s.deal_ids)==null?void 0:h.length)||0," deals selected"]})]}),e.jsxs(w,{className:"flex gap-2",children:[e.jsx(c,{size:"sm",onClick:()=>{b({board:s.id}),l("editor")},children:"Edit"}),e.jsx(c,{size:"sm",variant:"outline",onClick:()=>window.open(`/gift-guides/${s.slug}`,"_blank"),children:"View"}),e.jsx(c,{size:"sm",variant:"outline",onClick:()=>ge(s.id,s.published),children:s.published?e.jsx(Oe,{className:"h-4 w-4"}):e.jsx(Ve,{className:"h-4 w-4"})}),e.jsx(c,{size:"sm",variant:"destructive",onClick:()=>pe(s.id),children:e.jsx(R,{className:"h-4 w-4"})})]})]},s.id)})})}),e.jsx(re,{value:"editor",className:"space-y-4",children:H?e.jsx("div",{className:"flex items-center justify-center p-8",children:e.jsx($,{className:"h-8 w-8 animate-spin"})}):n?e.jsxs(e.Fragment,{children:[e.jsxs(N,{children:[e.jsxs(_,{children:[e.jsx(y,{children:n.title}
1),e.jsx(K,{children:"Select up to 25 deals and optionally upload a featured image"})]}),e.jsxs(w,{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(p,{children:"Featured Image (Optional)"}),e.jsx(ne,{currentImage:v||void 0,onImageUpload:S})]}),v&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"rounded-lg overflow-hidden border",children:e.jsx("img",{src:v,alt:"Mood board preview",className:"w-full"})}),e.jsxs(c,{variant:"outline",onClick:()=>L(!0),disabled:j.length===0&&k.length===0,children:[e.jsx(Xe,{className:"mr-2 h-4 w-4"}),"Configure Hotspots",((te=(se=n==null?void 0:n.canvas_data)==null?void 0:se.hotspots)==null?void 0:te.length)>0&&e.jsx(ie,{variant:"secondary",className:"ml-2",children:n.canvas_data.hotspots.length})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{children:e.jsxs("p",{className:"text-sm font-medium",children:[j.length," deals + ",k.length," custom items"]})}),e.jsx(c,{onClick:je,disabled:T.isPending||j.length===0&&k.length===0,children:T.isPending?e.jsxs(e.Fragment,{children:[e.jsx($,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):e.jsxs(e.Fragment,{children:[e.jsx(me,{className:"mr-2 h-4 w-4"}),"Save Gift Guide"]})})]})]})]}),e.jsxs(N,{children:[e.jsxs(_,{children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(y,{children:"Custom Items"}),e.jsxs(c,{size:"sm",onClick:()=>D(!0),children:[e.jsx(oe,{className:"mr-2 h-4 w-4"}),"Add Custom Item"]})]}),e.jsx(K,{children:"Add external products with custom links"})]}),e.jsxs(w,{children:[F&&e.jsxs(N,{className:"mb-4",children:[e.jsx(_,{children:e.jsx(y,{className:"text-base",children:u?"Edit Custom Item":"New Custom Item"})}),e.jsxs(w,{className:"space-y-3",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(p,{children:"Title *"}),e.jsx(C,{value:a.title,onChange:s=>t({...a,title:s.target.value}),placeholder:"Product name"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(p,{children:"Description"}),e.jsx(Re,{value:a.description,onChange:s=>t({...a,description:s.target.value}),placeholder:"Product description"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(ne,{onImageUpload:s=>t({...a,image_url:s}),currentImage:a.image_url||void 0}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(p,{htmlFor:"customImageUrl",children:"Or paste Image URL"}),e.jsx(C,{id:"customImageUrl",value:a.image_url,onChange:s=>t({...a,image_url:s.target.value}),placeholder:"https://example.com/image.jpg"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(p,{children:"External URL *"}),e.jsx(C,{value:a.external_url,onChange:s=>t({...a,external_url:s.target.value}),placeholder:"https://example.com/product"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(p,{children:"Sale Price (£)"}),e.jsx(C,{type:"number",step:"0.01",value:a.price,onChange:s=>t({...a,price:s.target.value}),placeholder:"29.99"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(p,{children:"Original Price (£)"}),e.jsx(C,{type:"number",step:"0.01",value:a.original_price,onChange:s=>t({...a,original_price:s.target.value}),placeholder:"39.99"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(p,{children:"Badge Label"}),e.jsx(C,{value:a.badge_label,onChange:s=>t({...a,badge_label:s.target.value}),placeholder:"e.g., Star Buy, Top Pick, Limited"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Optional pink badge shown on the item card"})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(c,{onClick:ve,disabled:q.isPending||Q.isPending,children:q.isPending||Q.isPending?e.jsxs(e.Fragment,{children:[e.jsx($,{className:"mr-2 h-4 w-4 animate-spin"}),u?"Updating...":"Adding..."]}):u?"Update Item":"Add Item"}),e.jsx(c,{variant:"outline",onClick:we,children:"Cancel"})]})]})]}),e.jsx("div",{className:"grid gap-3 md:grid-cols-2",children:k.map(s=>e.jsx(N,{children:e.jsx(w,{className:"p-3",children:e.jsxs("div",{className:"flex gap-3",children:[s.image_url&&e.jsx("img",{src:s.image_url,alt:s.title,className:"w-16 h-16 object-cover rounded"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h4",{className:"font-medium text-sm line-clamp-1",children:s.title}),s.price&&e.jsxs("p",{className:"text-sm text-muted-foreground",children:["£",s.price]}),e.jsxs("a",{href:s.external_url,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline flex items-center gap-1 mt-1",children:[e.jsx(Ye,{className:"h-3 w-3"}),"View Link"]})]}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx(c,{size:"icon",variant:"ghost",onClick:()=>Ne(s),className:"flex-shrink-0 h-8 w-8",children:e.jsx(qe,{className:"h-4 w-4"})}),e.jsx(c,{size:"icon",variant:"ghost",onClick:()=>be(s.id),className:"flex-shrink-0 h-8 w-8",children:e.jsx(R,{className:"h-4 w-4"})})]})]})})},s.id))}),k.length===0&&!F&&e.jsx("p",{className:"text-sm text-muted-foreground text-center py-8",children:"No custom items yet. Add custom items to link to external products."})]})]}),e.jsxs(N,{children:[e.jsxs(_,{children:[e.jsx(y,{children:"Select Deals"}),e.jsx(C,{placeholder:"Search deals...",value:E,onChange:s=>X(s.target.value)})]}),e.jsx(w,{children:e.jsx(de,{className:"h-[600px]",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:J==null?void 0:J.map(s=>e.jsxs("div",{className:"flex items-start space-x-3 p-3 border rounded-lg hover:bg-accent/50 cursor-pointer",onClick:()=>
1W(s.id),children:[e.jsx($e,{checked:j.includes(s.id),onCheckedChange:()=>W(s.id)}),e.jsxs("div",{className:"flex-1 min-w-0",children:[s.image_url&&e.jsx("img",{src:s.image_url,alt:s.title,className:"w-full h-32 object-cover rounded mb-2"}),e.jsx("p",{className:"text-sm font-medium line-clamp-2",children:s.title}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["£",s.sale_price]})]})]},s.id))})})})]})]}):e.jsx(N,{children:e.jsx(w,{className:"p-8 text-center",children:e.jsx("p",{className:"text-muted-foreground",children:'Select a gift guide from the "All Boards" tab to edit'})})})})]}),z&&v&&(Z.length>0||ee.length>0)&&e.jsx(Qe,{imageUrl:v,deals:Z,customItems:ee,existingHotspots:((ae=n==null?void 0:n.canvas_data)==null?void 0:ae.hotspots)||[],onSave:fe,onClose:()=>L(!1)})]})};export{vs as MoodBoardsManagement};
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.