PageSourceSearch

https://atcom.ro/assets/LabelProduse-Bht-V7ou.js

js atcom.ro collected 2026-10-10 01:32:36 UTC 20,883 bytes, 1 lines download raw bytes

1import{q as c,f as h,o as a,e as B}from"./index-CHGZ0aK0.js";const L=[{label:"Roșu",color:"#e74c3c"},{label:"Auriu",color:"#c9a84c"},{label:"Verde",color:"#27ae60"},{label:"Portocaliu",color:"#ff9800"},{label:"Albastru",color:"#2196f3"},{label:"Mov",color:"#9c27b0"},{label:"Roz",color:"#e91e63"},{label:"Negru",color:"#1a1a1a"}],k=[{label:"Alb",color:"#ffffff"},{label:"Negru",color:"#000000"},{label:"Auriu",color:"#c9a84c"}],$=["NOU","HOT","PROMO","SALE","-50%","LIMITED","BLACK FRIDAY","EXCLUSIV"],R=[{key:"xs",label:"XS"},{key:"s",label:"S"},{key:"m",label:"M"},{key:"l",label:"L"}],F=[{key:"rect",label:"Dreptunghi"},{key:"badge",label:"Badge / Pill"},{key:"circle",label:"Cerc"},{key:"ribbon-top",label:"Panglică Colț"},{key:"ribbon-left",label:"Panglică Stânga"}],C=[{key:"top-left",label:"↖ Stânga Sus"},{key:"top-right",label:"↗ Dreapta Sus"},{key:"bottom-left",label:"↙ Stânga Jos"},{key:"bottom-right",label:"↘ Dreapta Jos"},{key:"center",label:"⊕ Centru"}],w=[{key:"sm",label:"Mic"},{key:"md",label:"Normal"},{key:"lg",label:"Mare"}],D=[{key:"all",label:"◎ Toate Produsele",desc:"Apare pe toate produsele active"},{key:"category",label:"❖ Categorie",desc:"Doar produsele din categoriile selectate"},{key:"sku",label:"◇ SKU Specific",desc:"Produse cu SKU-urile listate explicit"},{key:"new",label:"✦ Produse Noi",desc:"Produse adăugate recent (nr. zile configurat)"},{key:"badge",label:"🏷 Badge Produs",desc:"Produse cu un badge specific (recomandat, nou, limitat etc.)"}],M=[{key:"recomandat",label:"⭐ Recomandat"},{key:"nou",label:"🆕 Nou"},{key:"limitat",label:"⏳ Limitat"},{key:"exclusiv",label:"💎 Exclusiv"},{key:"promotie",label:"🏷 Promoție"}],U=[{key:"none",label:"Static"},{key:"pulse",label:"⬤ Pulsare"},{key:"flash",label:"⚡ Flash"},{key:"bounce",label:"↕ Bounce"},{key:"shake",label:"↔ Shake"}],W=["","🔥","⭐","✨","🎉","❤️","🏷","⚡","🆕","💥","🎁","❄️"],u=()=>({headers:{Authorization:`Bearer ${localStorage.getItem("atcom_token")}`}});function S(s){return s?new Date(s).toLocaleString("ro-RO",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}function P(){return{text:"NOU",textColor:"#ffffff",bgColor:"#e74c3c",fontSize:"m",shape:"rect",animation:"none",borderColor:"#ffffff",borderWidth:0,opacity:100,icon:"",showOnCateg:!0,showOnProdus:!0,posCateg:"top-left",posProdus:"top-left",sizeCateg:"sm",sizeProdus:"md",priority:0,targetType:"all",targetCategIds:[],targetSkus:"",newProductDays:30,targetBadge:"",isActive:!0,activeFrom:"",activeTo:"",hasCountdown:!1}}function T({form:s,context:b}){const j=b==="categ"?s.posCateg:s.posProdus,N=b==="categ"?s.sizeCateg:s.sizeProdus,r={sm:{fontSize:".6rem",padding:".12rem .36rem"},md:{fontSize:".72rem",padding:".18rem .52rem"},lg:{fontSize:".88rem",padding:".28rem .7rem"}},x={"top-left":{top:0,left:0},"top-right":{top:0,right:0},"bottom-left":{bottom:0,left:0},"bottom-right":{bottom:0,right:0},center:{top:"50%",left:"50%",transform:"translate(-50%,-50%)"}},l=x[j]||x["top-left"],{fontSize:o,padding:g}=r[N]||r.md,v=s.shape==="ribbon-top",m=s.shape==="ribbon-left",n=s.shape==="circle",d=s.shape==="badge";let i={};return d&&(i={borderRadius:"50px"}),n&&(i={borderRadius:"50%",width:"42px",height:"42px",display:"flex",alignItems:"center",justifyContent:"center",padding:0,textAlign:"center"}),m&&(i={borderRadius:"0 3px 3px 0",position:"absolute",left:0,top:"12px",padding:`${g}`}),a.jsxs("div",{className:"lp-preview-box",children:[a.jsxs("div",{className:"lp-preview-card",children:[a.jsx("div",{className:"lp-preview-img-ph",children:"💍"}),!v&&!m&&a.jsx("span",{className:"lp-preview-label-el",style:{position:"absolute",...l,background:s.bgColor,color:s.textColor,fontSize:o,padding:g,fontWeight:700,letterSpacing:".05em",textTransform:"uppercase",lineHeight:1,whiteSpace:"nowrap",zIndex:5,...i},children:s.text||"LABEL"}),v&&a.jsx("div",{style:{position:"absolute",top:0,left:0,width:"64px",height:"64px",overflow:"hidden",zIndex:5},children:a.jsx("div",{style:{position:"absolute",top:"14px",left:"-18px",width:"80px",background:s.bgColor,color:s.textColor,fontSize:o,fontWeight:700,textTransform:"uppercase",textAlign:"center",padding:".18rem 0",transform:"rotate(-45deg)",letterSpacing:".03em"},children:s.text||"LABEL"})}),m&&a.jsx("span",{style:{position:"absolute",left:0,top:"14px",background:s.bgColor,color:s.textColor,fontSize:o,fontWeight:700,textTransform:"uppercase",padding:`${g}`,borderRadius:"0 3px 3px 0",letterSpacing:".04em",lineHeight:1,zIndex:5},children:s.text||"LABEL"})]}),a.jsxs("div",{className:"lp-preview-meta",children:[a.jsx("span",{className:"lp-preview-name",children:"Bijuterie Aur"}),a.jsx("span",{className:"lp-preview-price",children:"299 RON"})]})]})}function _({lbl:s}){return s.shape,a.jsx("span",{className:"lp-list-badge",style:{background:s.bgColor,color:s.textColor,borderRadius:s.shape==="badge"?"50px":s.shape==="circle"?"50%":"3px",...s.shape==="circle"?{width:"28px",height:"28px",display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0}:{}},children:s.text})}function H(){const[s,b]=c.useState([]),[j,N]=c.useState([]),[r,x]=c.useState(null),[l,o]=c.useState(P()),[g,v]=c.useState(!1),[m,n]=c.useState(""),d=c.useCallback(()=>{h.get("/api/admin/label-produse",u()).then(e=>b(e.data.labels||[])).catch(()=>{})},[]);c.useEffect(()=>{d(),h.get("/api/reclame/categorii",u()).then(e=>N(e.data.categorii||[])).catch(()=>{})},[d]);function i(){x(null),o(P()),n("")}function z(e){x(e.id),o({text:e.text||"NOU",textColor:e.textColor||"#ffffff",bgColor:e.bgColor||"#e74c3c",fontSize:e.fontSize||"m",shape:e.shape||"rect",animation:e.animation||"none",borderColor:e.borderColor||"#ffffff",borderWidth:e.borderWidth||0,opacity:e.opacity!==void 0?e.opacity:100,icon:e.icon||"",showOnCateg:e.showOnCateg!==!1,showOnProdus:e.showOnProdus!==!1,posCateg:e.posCateg||"top-left",posProdus:e.posProdus||"top-left",sizeCateg:e.sizeCateg||"sm",sizeProdus:e.sizeProdus||"md",priority:e.priority||0,targetType:e.targetType||"all",targetCategIds:e.targetCategIds||[],targetSkus:Array.isArray(e.targetSkus)?e.targetSkus.join(", "):"",newProductDays:e.newProductDays||30,targetBadge:e.targetBadge||"",isActive:e.isActive!==!1,activeFrom:e.activeFrom?e.activeFrom.slice(0,16):"",activeTo:e.activeTo?e.activeTo.slice(0,16):"",hasCountdown:!!e.hasCountdown}),n(""),window.scrollTo({top:0,behavior:"smooth"})}
1async function A(){if(!l.text?.trim())return n("Textul etichetei este obligatoriu");v(!0),n("");try{const e={...l,targetSkus:l.targetSkus.split(",").map(p=>p.trim()).filter(Boolean),activeFrom:l.activeFrom||null,activeTo:l.activeTo||null};r!==null?await h.put(`/api/admin/label-produse/${r}`,e,u()):await h.post("/api/admin/label-produse",e,u()),d(),i()}catch(e){n(e.response?.data?.error||"Eroare la salvare")}finally{v(!1)}}async function E(e){await B({title:"Ștergi definitiv acest label?",msg:"Labelul se scoate de pe toate produsele care îl folosesc. Acțiunea este ireversibilă.",okText:"Șterge definitiv",tone:"danger",icon:"🗑"})&&(await h.delete(`/api/admin/label-produse/${e}`,u()),r===e&&i(),d())}async function I(e){await h.put(`/api/admin/label-produse/${e.id}`,{isActive:!e.isActive},u()),d()}const t=(e,p)=>o(y=>({...y,[e]:p})),f=r===null;return a.jsxs("div",{className:"lp-page",children:[a.jsxs("div",{className:"lp-header",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"lp-title",children:"Label Produse"}),a.jsx("p",{className:"lp-sub",children:"Etichete pe imaginea produsului — listing categorie și/sau pagina produs"})]}),a.jsx("button",{className:"lp-btn-new",onClick:i,children:"+ Label Nou"})]}),a.jsxs("div",{className:"lp-layout",children:[a.jsxs("div",{className:"lp-list-panel",children:[a.jsxs("div",{className:"lp-list-head",children:["Labels (",s.length,")"]}),s.length===0&&a.jsx("div",{className:"lp-empty",children:'Niciun label creat încă. Apasă „+ Label Nou" pentru a începe.'}),s.map(e=>a.jsxs("div",{className:`lp-item ${r===e.id?"lp-item--active":""} ${e.isActive?"":"lp-item--off"}`,children:[a.jsx(_,{lbl:e}),a.jsxs("div",{className:"lp-item-info",children:[a.jsx("div",{className:"lp-item-name",children:e.text}),a.jsxs("div",{className:"lp-item-meta",children:[e.targetType==="all"&&"Toate produsele",e.targetType==="category"&&`${e.targetCategIds?.length||0} categ.`,e.targetType==="sku"&&`${e.targetSkus?.length||0} SKU-uri`,e.targetType==="new"&&`Noi ≤ ${e.newProductDays}z`,e.targetType==="badge"&&`🏷 ${e.targetBadge||"—"}`," · ",[e.showOnCateg&&"Cat.",e.showOnProdus&&"Produs"].filter(
1Boolean).join(" + ")||"Ascuns"]}),(e.activeFrom||e.activeTo)&&a.jsxs("div",{className:"lp-item-dates",children:[e.activeFrom&&a.jsx("span",{children:S(e.activeFrom)}),e.activeFrom&&e.activeTo&&a.jsx("span",{children:" → "}),e.activeTo&&a.jsx("span",{children:S(e.activeTo)})]})]}),a.jsxs("div",{className:"lp-item-actions",children:[a.jsx("button",{className:`lp-toggle-btn ${e.isActive?"lp-toggle-btn--on":"lp-toggle-btn--off"}`,onClick:()=>I(e),title:e.isActive?"Dezactivează":"Activează",children:e.isActive?"●":"○"}),a.jsx("button",{className:"lp-ia-btn lp-ia-btn--edit",onClick:()=>z(e),children:"✎"}),a.jsx("button",{className:"lp-ia-btn lp-ia-btn--del",onClick:()=>E(e.id),children:"✕"})]})]},e.id))]}),a.jsxs("div",{className:"lp-form-panel",children:[a.jsx("div",{className:"lp-form-head",children:f?"+ Label Nou":`Editează: "${l.text}"`}),a.jsxs("div",{className:"lp-previews",children:[a.jsxs("div",{className:"lp-preview-ctx",children:[a.jsx("div",{className:"lp-preview-ctx-label",children:"Preview Categorie"}),a.jsx(T,{form:l,context:"categ"})]}),a.jsxs("div",{className:"lp-preview-ctx",children:[a.jsx("div",{className:"lp-preview-ctx-label",children:"Preview Pagina Produs"}),a.jsx(T,{form:l,context:"produs"})]})]}),a.jsxs("div",{className:"lp-section",children:[a.jsx("div",{className:"lp-section-title",children:"Aspect"}),a.jsxs("div",{className:"lp-field",children:[a.jsx("label",{className:"lp-label",children:"Text Etichetă"}),a.jsx("div",{className:"lp-text-presets",children:$.map(e=>a.jsx("button",{className:`lp-tpreset ${l.text===e?"lp-tpreset--active":""}`,onClick:()=>t("text",e),children:e},e))}),a.jsx("input",{className:"lp-input",value:l.text,onChange:e=>t("text",e.target.value),placeholder:"ex: NOU, SALE, -30%",maxLength:20})]}),a.jsxs("div",{className:"lp-row-2",children:[a.jsxs("div",{className:"lp-field",children:[a.jsx("label",{className:"lp-label",children:"Culoare Fundal"}),a.jsxs("div",{className:"lp-color-row",children:[L.map(e=>a.jsx("button",{className:`lp-cdot ${l.bgColor===e.color?"lp-cdot--active":""}`,style:{background:e.color},title:e.label,onClick:()=>t("bgColor",e.color)},e.color)),a.jsx("input",{type:"color",className:"lp-color-native",value:l.bgColor,onChange:e=>t("bgColor",e.target.value)})]})]}),a.jsxs("div",{className:"lp-field",children:[a.jsx("label",{className:"lp-label",children:"Culoare Text"}),a.jsxs("div",{className:"lp-color-row",children:[k.map(e=>a.jsx("button",{className:`lp-cdot ${l.textColor===e.color?"lp-cdot--active":""}`,style:{background:e.color,border:e.color==="#ffffff"?"1px solid #555":"none"},title:e.label,onClick:()=>t("textColor",e.color)},e.color)),a.jsx("input",{type:"color",className:"lp-color-native",value:l.textColor,onChange:e=>t("textColor",e.target.value)})]})]})]}),a.jsxs("div",{className:"lp-row-2",children:[a.jsxs("div",{className:"lp-field",children:[a.jsx("label",{className:"lp-label",children:"Mărime Font"}),a.jsx("div",{className:"lp-seg",children:R.map(e=>a.jsx("button",{className:`lp-seg-btn ${l.fontSize===e.key?"lp-seg-btn--on":""}`,onClick:()=>t("fontSize",e.key),children:e.label},e.key))})]}),a.jsxs("div",{className:"lp-field",children:[a.jsx("label",{className:"lp-label",children:"Formă"}),a.jsx("select",{className:"lp-select",value:l.shape,onChange:e=>t("shape",e.target.value),children:F.map(e=>a.jsx("option",{value:e.key,children:e.label},e.key))})]})]}),a.jsxs("div",{className:"lp-field",children:[a.jsx("label",{className:"lp-label",children:"Icon / Emoji Prefix (opțional)"}),a.jsx("div",{className:"lp-icon-presets",children:W.map((e,p)=>a.jsx("button",{className:`lp-icon-btn ${l.icon===e?"lp-icon-btn--active":""}`,onClick:()=>t("icon",e),title:e||"Fără icon",children:e||"✕"},p))})]})]}),a.jsxs("div",{className:"lp-section",children:[a.jsx("div",{className:"lp-section-title",children:"Animație & Efecte"}),a.jsxs("div",{className:"lp-field",children:[a.jsx("label",{className:"lp-label",children:"Animație"}),a.jsx("div",{className:"lp-seg",children:U.map(e=>a.jsx("button",{className:`lp-seg-btn ${l.animation===e.key?"lp-seg-btn--on":""}`,onClick:()=>t("animation",e.key),children:e.label},e.key))})]}),a.jsxs("div",{className:"lp-row-2 lp-row-2--mt",children:[a.jsxs("div",{className:"lp-field",children:[a.jsxs("label",{className:"lp-label",children:["Opacitate: ",a.jsxs("strong",{children:[l.o
1pacity,"%"]})]}),a.jsx("input",{type:"range",className:"lp-range",min:20,max:100,value:l.opacity,onChange:e=>t("opacity",parseInt(e.target.value))})]}),a.jsxs("div",{className:"lp-field",children:[a.jsx("label",{className:"lp-label",children:"Prioritate (mai mare = apare primul)"}),a.jsx("input",{type:"number",className:"lp-input",min:0,max:100,value:l.priority,onChange:e=>t("priority",parseInt(e.target.value)||0)})]})]}),a.jsxs("div",{className:"lp-row-2 lp-row-2--mt",children:[a.jsxs("div",{className:"lp-field",children:[a.jsx("label",{className:"lp-label",children:"Bordură (grosime px, 0 = fără)"}),a.jsx("input",{type:"number",className:"lp-input",min:0,max:5,value:l.borderWidth,onChange:e=>t("borderWidth",parseInt(e.target.value)||0)})]}),l.borderWidth>0&&a.jsxs("div",{className:"lp-field",children:[a.jsx("label",{className:"lp-label",children:"Culoare Bordură"}),a.jsxs("div",{className:"lp-color-row",children:[k.map(e=>a.jsx("button",{className:`lp-cdot ${l.borderColor===e.color?"lp-cdot--active":""}`,style:{background:e.color,border:e.color==="#ffffff"?"1px solid #555":"none"},title:e.label,onClick:()=>t("borderColor",e.color)},e.color)),a.jsx("input",{type:"color",className:"lp-color-native",value:l.borderColor,onChange:e=>t("borderColor",e.target.value)})]})]})]})]}),a.jsxs("div",{className:"lp-section",children:[a.jsx("div",{className:"lp-section-title",children:"Vizibilitate & Poziție"}),a.jsxs("div",{className:"lp-checks-row",children:[a.jsxs("label",{className:"lp-check-lbl",children:[a.jsx("input",{type:"checkbox",checked:l.showOnCateg,onChange:e=>t("showOnCateg",e.target.checked)}),"Afișează pe listing categorie"]}),a.jsxs("label",{className:"lp-check-lbl",children:[a.jsx("input",{type:"checkbox",checked:l.showOnProdus,onChange:e=>t("showOnProdus",e.target.checked)}),"Afișează pe pagina produs"]})]}),l.showOnCateg&&a.jsxs("div",{className:"lp-row-2 lp-row-2--mt",children:[a.jsxs("div",{className:"lp-field",children:[a.jsx("label",{className:"lp-label",children:"Poziție — Categorie"}),a.jsx("select",{className:"lp-select",value:l.posCateg,onChange:e=>t("posCateg",e.target.value),children:C.map(e=>a.jsx("option",{value:e.key,children:e.label},e.key))})]}),a.jsxs("div",{className:"lp-field",children:[a.jsx("label",{className:"lp-label",children:"Mărime — Categorie"}),a.jsx("div",{className:"lp-seg",children:w.map(e=>a.jsx("button",{className:`lp-seg-btn ${l.sizeCateg===e.key?"lp-seg-btn--on":""}`,onClick:()=>t("sizeCateg",e.key),children:e.label},e.key))})]})]}),l.showOnProdus&&a.jsxs("div",{className:"lp-row-2 lp-row-2--mt",children:[a.jsxs("div",{className:"lp-field",children:[a.jsx("label",{className:"lp-label",children:"Poziție — Pagina Produs"}),a.jsx("select",{className:"lp-select",value:l.posProdus,onChange:e=>t("posProdus",e.target.value),children:C.map(e=>a.jsx("option",{value:e.key,children:e.label},e.key))})]}),a.jsxs("div",{className:"lp-field",children:[a.jsx("label",{className:"lp-label",children:"Mărime — Pagina Produs"}),a.jsx("div",{className:"lp-seg",children:w.map(e=>a.jsx("button",{className:`lp-seg-btn ${l.sizeProdus===e.key?"lp-seg-btn--on":""}`,onClick:()=>t("sizeProdus",e.key),children:e.label},e.key))})]})]})]}),a.jsxs("div",{className:"lp-section",children:[a.jsx("div",{className:"lp-section-title",children:"Targetare"}),a.jsx("div",{className:"lp-target-grid",children:D.map(e=>a.jsxs("label",{className:`lp-target-opt ${l.targetType===e.key?"lp-target-opt--active":""}`,children:[a.jsx("input",{type:"radio",name:"lp-target",value:e.key,checked:l.targetType===e.key,onChange:()=>t("targetType",e.key)}),a.jsx("span",{className:"lp-to-label",children:e.label}),a.jsx("span",{className:"lp-to-desc",children:e.desc})]},e.key))}),l.targetType==="category"&&a.jsxs("div",{className:"lp-field lp-field--mt",children:[a.jsx("label",{className:"lp-label",children:"Selectează Categorii"}),a.jsx("div",{className:"lp-categ-grid",children:j.map(e=>a.jsxs("label",{className:"lp-categ-check",children:[a.jsx("input",{type:"checkbox",checked:l.targetCategIds.includes(e.id),onChange:p=>{const y=p.target.checked?[...l.targetCategIds,e.id]:l.targetCategIds.filter(O=>O!==e.id);t("targetCategIds",y)}}),a.jsx("span",{children:e.name})]},e.id))}),l.targetCategIds.length>0&&a.jsxs("div",{className:"lp-categ-count",children:[l.targetCategIds.length," categorie",l.targetCategIds.length!==1?"i":""," selectate"]})]}),l.targetType==="sku"&&a.jsxs("div",{className:"lp-field lp-field--mt",children:[a.jsx("label",{className:"lp-label",children:"SKU-uri (separate prin virgulă)"}),a.jsx("textarea",{className:"lp-textarea",value:l.targetSkus,onChange:e=>t("targetSkus",e.target.value),placeholder:"ex: AT001, AT002, AT-BR-023",rows:3}),l.targetSkus.trim()&&a.jsxs("div",{className:"lp-sku-count",children:[l.targetSkus.split(",").filter(e=>e.trim()).length," SKU-uri"]})]}),l.targetType==="new"&&a.jsxs("div",{className:"lp-field lp-field--mt",children:[a.jsxs("label",{className:"lp-label",children:["Produse adăugate în ultimele ",a.jsx("strong",{children:l.newProductDays})," zile"]}),a.jsx("input",{type:"range",className:"lp-range",min:1,max:90,value:l.newProductDays,onChange:e=>t("newProductDays",parseInt(e.target.value))}),a.jsxs("div",{className:"lp-range-labels",children:[a.jsx("span",{children:"1 zi"}),a.jsx("span",{children:"30 zile"}),a.jsx("span",{children:"90 zile"})]})]}),l.targetType==="badge"&&a.jsxs("div",{className:"lp-field lp-field--mt",children:[a.jsx("label",{className:"lp-label",children:"Badge produs"}),a.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px",marginTop:"6px"},children:M.map(e=>a.jsx("button",{type:"button",onClick:()=>t("targetBadge",e.key),style:{padding:"6px 14px",borderRadius:"20px",border:`1px solid ${l.targetBadge===e.key?"#c9a84c":"rgba(255,255,255,0.12)"}`,background:l.targetBadge===e.key?"rgba(201,168,76,0.15)":"rgba(255,255,255,0.04)",color:l.targetBadge===e.key?"#c9a84c":"#888",fontSize:"0.82rem",cursor:"pointer"},children:e.label},e.key))}),a.jsx("input",{type:"text",className:"lp-input",style:{marginTop:"8px"},value:l.targetBadge,onChange:e=>t("targetBadge",e.target.value),placeholder:"sau tastează badge personalizat (ex: recomandat)"}),l.targetBadge&&a.jsxs("div",{style:{fontSize:"0.78rem",color:"#888",marginTop:"4px"}
1,children:["✅ Eticheta va apărea pe produsele cu badge: ",a.jsx("strong",{style:{color:"#c9a84c"},children:l.targetBadge})]})]})]}),a.jsxs("div",{className:"lp-section",children:[a.jsx("div",{className:"lp-section-title",children:"Timing & Activare"}),a.jsxs("div",{className:"lp-row-2",children:[a.jsxs("div",{className:"lp-field",children:[a.jsx("label",{className:"lp-label",children:"Activ de la"}),a.jsx("input",{type:"datetime-local",className:"lp-input",value:l.activeFrom,onChange:e=>t("activeFrom",e.target.value)})]}),a.jsxs("div",{className:"lp-field",children:[a.jsx("label",{className:"lp-label",children:"Activ până la"}),a.jsx("input",{type:"datetime-local",className:"lp-input",value:l.activeTo,onChange:e=>t("activeTo",e.target.value)})]})]}),a.jsxs("div",{className:"lp-checks-row lp-checks-row--mt",children:[a.jsxs("label",{className:"lp-check-lbl",children:[a.jsx("input",{type:"checkbox",checked:l.hasCountdown,onChange:e=>t("hasCountdown",e.target.checked)}),'Countdown pe label (scade pe secundă până la „Activ până la")']}),a.jsxs("label",{className:"lp-check-lbl",children:[a.jsx("input",{type:"checkbox",checked:l.isActive,onChange:e=>t("isActive",e.target.checked)}),a.jsx("strong",{children:"Label activ"})]})]})]}),m&&a.jsx("div",{className:"lp-err",children:m}),a.jsxs("div",{className:"lp-form-btns",children:[a.jsx("button",{className:"lp-btn-save",onClick:A,disabled:g,children:g?"Salvare…":f?"Creează Label":"Salvează Modificările"}),!f&&a.jsx("button",{className:"lp-btn-cancel",onClick:i,children:"✕ Anulează"})]})]})]})]})}export{H 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.