PageSourceSearch

https://menu-cms-prod-188ea.web.app/assets/MenuSettingsView-C_WeukVh.js

js menu-cms-prod-188ea.web.app collected 2026-10-03 12:29:53 UTC 36,678 bytes, 4 lines download raw bytes

1import{a as N,r as m,c as D,L,o as j,b as i,l as e,q as v,s,t as b,z as g,e as x,x as r,y as n,C as H,m as U,E as c,F as O,D as P,A as F,f as d}from"./vendor-BZDhprXX.js";import{u as A}from"./menu-JVpBTRaE.js";import{_ as w}from"./ImageUploader.vue_vue_type_script_setup_true_lang-FjTHedKA.js";import{_ as W}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./index-DrkTY4uH.js";import"./firebase-CYUoBN6X.js";const R={class:"min-h-screen relative"},E={class:"sticky top-0 z-40 backdrop-blur-xl bg-white/80 border-b border-white/20 shadow-lg"},Q={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4"},q={class:"flex items-center justify-between"},K={class:"flex items-center gap-4"},Y={class:"flex items-center gap-3"},Z={key:0,class:"px-3 py-1 bg-amber-500 text-white text-xs font-medium rounded-md"},G={class:"text-sm text-gray-600 mt-1 font-medium"},J=["disabled"],X={key:0,class:"animate-spin -ml-1 mr-2 h-5 w-5 text-white relative z-10",fill:"none",viewBox:"0 0 24 24"},_={class:"relative z-10"},ee={key:0,class:"flex items-center justify-center py-32"},oe={class:"text-center"},te={class:"relative"},ae={key:1,class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},le={class:"grid grid-cols-1 lg:grid-cols-3 gap-8"},re={class:"lg:col-span-2 space-y-6"},ne={class:"glass-card group hover:shadow-2xl transition-all duration-500"},se={class:"text-xl font-bold text-gray-900 mb-6 flex items-center"},ie={class:"space-y-4"},de={class:"grid grid-cols-2 gap-4"},ue={class:"flex items-center gap-2"},ve={class:"flex items-center gap-2"},ge={class:"glass-card group hover:shadow-2xl transition-all duration-500"},pe={class:"flex items-center justify-between mb-6"},be={class:"text-xl font-bold text-gray-900 flex items-center"},me={class:"flex items-center cursor-pointer"},ce={key:0,class:"space-y-4"},ye={class:"border-t pt-4"},fe={class:"flex items-center gap-3"},xe={class:"border-t pt-4"},we={class:"flex items-center cursor-pointer mb-3"},he={key:0,class:"space-y-3"},ke={class:"glass-card group hover:shadow-2xl transition-all duration-500"},Ce={class:"flex items-center justify-between mb-6"},Me={class:"text-xl font-bold text-gray-900 flex items-center"},Ve={class:"flex items-center cursor-pointer"},Ue={key:0,class:"space-y-4"},Ie={class:"border-t pt-4 mt-4"},Se={key:0,class:"grid grid-cols-3 gap-2 mb-3"},$e=["src","alt"],Te=["onClick"],Be={key:1},ze={key:2,class:"text-xs text-amber-600"},Ne={class:"block text-sm font-medium text-gray-700 mb-2"},De={class:"glass-card group hover:shadow-2xl transition-all duration-500"},Le={class:"text-xl font-bold text-gray-900 mb-6 flex items-center"},je={class:"space-y-4"},He={class:"grid grid-cols-2 gap-4"},Oe={class:"grid grid-cols-2 gap-4"},Pe={class:"glass-card group hover:shadow-2xl transition-all duration-500"},Fe={class:"flex items-center justify-between mb-6"},Ae={class:"text-xl font-bold text-gray-900 flex items-center"},We={class:"flex items-center cursor-pointer"},Re={key:0,class:"space-y-4"},Ee={class:"flex items-center cursor-pointer"},Qe={class:"border-t pt-4"},qe={class:"flex items-center cursor-pointer mb-3"},Ke={key:0,class:"space-y-3"},Ye={class:"lg:col-span-1"},Ze={class:"sticky top-24"},Ge={class:"glass-card group hover:shadow-2xl transition-all duration-500"},Je={class:"text-xl font-bold text-gray-900 mb-6 flex items-center"},Xe={class:"space-y-4"},_e={class:"border rounded-lg p-4"},eo={class:"flex gap-2"},oo={class:"flex-1"},to={class:"flex-1"},ao={key:0,class:"border rounded-lg p-4"},lo=["src"],ro={key:1,class:"border rounded-lg overflow-hidden"},no={class:"text-center px-4"},so={class:"font-bold text-sm"},io={class:"text-xs mt-1 opacity-90"},uo={key:2,class:"border rounded-lg overflow-hidden"},vo={class:"text-center px-2"},go={class:"font-bold text-xs"},po={class:"border-t pt-4"},bo=["href"],mo={key:2,class:"fixed bottom-8 right-8 z-60 bg-gradient-to-r from-green-500 to-emerald-600 text-white px-8 py-4 rounded-2xl shadow-2xl flex items-center gap-3 animate-slide-up backdrop-blur-xl border border-white/20"},co={key:3,class:"fixed bottom-8 right-8 bg-gradient-to-r from-red-500 to-rose-600 text-white px-8 py-4 rounded-2xl shadow-2xl flex items-center gap-3 backdrop-blur-xl border border-white/20"},yo={class:"text-sm opacity-90"},fo=N({__name:"MenuSettingsView",setup(xo){const M=L(),I=F(),k=A(),l=m(null),V=m(!0),p=m(!1),y=m(!1),f=m(""),h=D(()=>{const u=M.params.id;return u==="Z70ActT0QrKAo8IBTH0Y"||u==="demo"||u==="demo2"}),t=m({branding:{primaryColor:"#be8040",secondaryColor:"#8b5a3c",fontFamily:"",logoUrl:""},navbar:{enabled:!0,title:"",pageTitle:"",logoUrl:"",backgroundColor:"#ffffff",showSocials:!1,facebook:"",instagram:"",whatsapp:""},hero:{enabled:!0,title:"",subtitle:"",backgroundImage:"",backgroundImageMobile:"",carouselImages:[],overlayOpacity:.5},contact:{restaurantName:"",address:"",city:"",phone:"",email:"",website:"",openingHours:""},footer:{enabled:!0,showContacts:!0,customText:"",showPoweredBy:!0,developerName:"",developerWebsite:""}}
1),S=()=>({id:"Z70ActT0QrKAo8IBTH0Y",name:"Ristorante La Dolce Vita",description:"Cucina italiana tradizionale con un tocco moderno",isActive:!0,tenantId:"demo-tenant",sortOrder:0,createdAt:new Date,updatedAt:new Date,branding:{primaryColor:"#d97706",secondaryColor:"#92400e",fontFamily:"'Playfair Display', serif",logoUrl:"https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=200&h=200&fit=crop"},navbar:{enabled:!0,logoUrl:"https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=200&h=200&fit=crop",showSocials:!0,facebook:"https://facebook.com/ladolcevita",instagram:"https://instagram.com/ladolcevita",whatsapp:"+393331234567"},hero:{enabled:!0,title:"Benvenuti a La Dolce Vita",subtitle:"Dove la tradizione incontra l'innovazione",backgroundImage:"https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=1920&h=1080&fit=crop",overlayOpacity:.6},contact:{restaurantName:"Ristorante La Dolce Vita",address:"Via Roma 123",city:"Milano",phone:"+39 02 1234567",email:"[email protected]",website:"https://ladolcevita.it",openingHours:`Lunedì - Venerdì: 12:00 - 15:00, 19:00 - 23:00
2Sabato - Domenica: 12:00 - 23:00
3Chiuso il Martedì`},footer:{enabled:!0,showContacts:!0,customText:"Seguici sui social per rimanere aggiornato sulle nostre offerte speciali!",showPoweredBy:!0,developerName:"Menu CMS",developerWebsite:"https://menucms.it"}});j(async()=>{const u=M.params.id;try{h.value?l.value=S():(await k.fetchMenuById(u),l.value=k.currentMenu),l.value&&(t.value={branding:{primaryColor:l.value.branding?.primaryColor||"#be8040",secondaryColor:l.value.branding?.secondaryColor||"#8b5a3c",fontFamily:l.value.branding?.fontFamily||"",logoUrl:l.value.branding?.logoUrl||""},navbar:{enabled:l.value.navbar?.enabled!==!1,title:l.value.navbar?.title||"",pageTitle:l.value.navbar?.pageTitle||"",logoUrl:l.value.navbar?.logoUrl||"",backgroundColor:l.value.navbar?.backgroundColor||"#ffffff",showSocials:l.value.navbar?.showSocials||!1,facebook:l.value.navbar?.facebook||"",instagram:l.value.navbar?.instagram||"",whatsapp:l.value.navbar?.whatsapp||""},hero:{enabled:l.value.hero?.enabled!==!1,title:l.value.hero?.title||"",subtitle:l.value.hero?.subtitle||"",backgroundImage:l.value.hero?.backgroundImage||"",backgroundImageMobile:l.value.hero?.backgroundImageMobile||"",carouselImages:l.value.hero?.carouselImages||[],overlayOpacity:l.value.hero?.overlayOpacity??.5},contact:{restaurantName:l.value.contact?.restaurantName||"",address:l.value.contact?.address||"",city:l.value.contact?.city||"",phone:l.value.contact?.phone||"",email:l.value.contact?.email||"",website:l.value.contact?.website||"",openingHours:l.value.contact?.openingHours||""},footer:{enabled:l.value.footer?.enabled!==!1,showContacts:l.value.footer?.showContacts!==!1,customText:l.value.footer?.customText||"",showPoweredBy:l.value.footer?.showPoweredBy!==!1,developerName:l.value.footer?.developerName||"",developerWebsite:l.value.footer?.developerWebsite||""}})}catch(o){h.value||(f.value="Errore nel caricamento del menu",console.error(o))}finally{V.value=!1}});const $=async()=>{if(l.value){if(h.value){p.value=!0,setTimeout(()=>{p.value=!1,y.value=!0,setTimeout(()=>{y.value=!1},3e3)},800);return}p.value=!0,f.value="";try{const u={branding:{primaryColor:t.value.branding.primaryColor||void 0,secondaryColor:t.value.branding.secondaryColor||void 0,fontFamily:t.value.branding.fontFamily||void 0,logoUrl:t.value.branding.logoUrl||void 0},navbar:{enabled:t.value.navbar.enabled,title:t.value.navbar.title||void 0,pageTitle:t.value.navbar.pageTitle||void 0,logoUrl:t.value.navbar.logoUrl||void 0,backgroundColor:t.value.navbar.backgroundColor||"#ffffff",showSocials:t.value.navbar.showSocials,facebook:t.value.navbar.facebook||void 0,instagram:t.value.navbar.instagram||void 0,whatsapp:t.value.navbar.whatsapp||void 0},hero:{enabled:t.value.hero.enabled,title:t.value.hero.title||void 0,subtitle:t.value.hero.subtitle||void 0,backgroundImage:t.value.hero.backgroundImage||void 0,backgroundImageMobile:t.value.hero.backgroundImageMobile||void 0,carouselImages:t.value.hero.carouselImages.length>0?t.value.hero.carouselImages:void 0,overlayOpacity:t.value.hero.overlayOpacity},contact:{restaurantName:t.value.contact.restaurantName||void 0,address:t.value.contact.address||void 0,city:t.value.contact.city||void 0,phone:t.value.contact.phone||void 0,email:t.value.contact.email||void 0,website:t.value.contact.website||void 0,openingHours:t.value.contact.openingHours||void 0},footer:{enabled:t.value.footer.enabled,showContacts:t.value.footer.showContacts,customText:t.value.footer.customText||void 0,showPoweredBy:t.value.footer.showPoweredBy,developerName:t.value.footer.developerName||void 0,developerWebsite:t.value.footer.developerWebsite||void 0}};await k.updateMenu(l.value.id,u),y.value=!0,setTimeout(()=>{y.value=!1},3e3)}catch(u){f.value=u.message||"Errore durante il salvataggio",console.error(u)}finally{p.value=!1}}},T=()=>{I.push(`/dashboard/menu/${l.value?.id}`)},B=u=>{u&&t.value.hero.carouselImages.length<6&&t.value.hero.carouselImages.push(u)},z=u=>{t.value.hero.carouselImages.splice(u,1)};return(u,o)=>(d(),i("div",R,[e("div",{class:"fixed inset-0 -z-10 overflow-hidden",style:s({background:`linear-gradient(135deg, ${t.value.branding.primaryColor}15 0%, ${t.value.branding.secondaryColor}15 100%)`})},[e("div",{class:"absolute -top-1/2 -right-1/2 w-full h-full bg-gradient-to-br opacity-20 blur-3xl animate-pulse",style:s({background:t.value.branding.primaryColor})},null,4),e("div",{class:"absolute -bottom-1/2 -left-1/2 w-full h-full bg-gradient-to-tr op
3acity-20 blur-3xl animate-pulse",style:s({background:t.value.branding.secondaryColor,animationDelay:"1s"})},null,4)],4),e("div",E,[e("div",Q,[e("div",q,[e("div",K,[e("button",{onClick:T,class:"inline-flex items-center px-4 py-2 rounded-xl text-gray-700 hover:text-gray-900 hover:bg-white/60 transition-all duration-300 transform hover:scale-105"},[...o[36]||(o[36]=[e("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1),b(" Indietro ",-1)])]),e("div",null,[e("div",Y,[o[37]||(o[37]=e("h1",{class:"text-3xl font-bold bg-gradient-to-r from-gray-900 to-gray-600 bg-clip-text text-transparent"}," Impostazioni Menu ",-1)),h.value?(d(),i("span",Z," DEMO ")):v("",!0)]),e("p",G,g(l.value?.name),1)])]),e("button",{onClick:$,disabled:p.value,class:"group relative inline-flex items-center px-8 py-3 rounded-2xl font-bold text-white shadow-xl transition-all duration-300 transform hover:scale-105 hover:shadow-2xl disabled:opacity-50 disabled:cursor-not-allowed overflow-hidden",style:s({background:`linear-gradient(135deg, ${t.value.branding.primaryColor}, ${t.value.branding.secondaryColor})`})},[o[39]||(o[39]=e("div",{class:"absolute inset-0 bg-white/20 transform scale-x-0 group-hover:scale-x-100 transition-transform origin-left"},null,-1)),p.value?(d(),i("svg",X,[...o[38]||(o[38]=[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1)])])):v("",!0),e("span",_,g(p.value?"Salvataggio...":"Salva Modifiche"),1)],12,J)])])]),V.value?(d(),i("div",ee,[e("div",oe,[e("div",te,[o[40]||(o[40]=e("div",{class:"animate-spin rounded-full h-20 w-20 border-4 border-gray-200 mx-auto"},null,-1)),e("div",{class:"animate-spin rounded-full h-20 w-20 border-4 border-t-transparent absolute top-0 left-1/2 -translate-x-1/2",style:s({borderTopColor:t.value.branding.primaryColor})},null,4)]),o[41]||(o[41]=e("p",{class:"mt-4 text-gray-600 font-medium"},"Caricamento impostazioni...",-1))])])):l.value?(d(),i("div",ae,[e("div",le,[e("div",re,[e("div",ne,[e("div",{class:"absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-10 transition-opacity duration-500 rounded-2xl pointer-events-none",style:s({background:`linear-gradient(135deg, ${t.value.branding.primaryColor}, ${t.value.branding.secondaryColor})`})},null,4),e("h2",se,[e("div",{class:"p-2 rounded-xl mr-3 shadow-lg",style:s({background:`linear-gradient(135deg, ${t.value.branding.primaryColor}, ${t.value.branding.secondaryColor})`})},[...o[42]||(o[42]=[e("svg",{class:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"})],-1)])],4),o[43]||(o[43]=b(" Branding ",-1))]),e("div",ie,[e("div",de,[e("div",null,[o[44]||(o[44]=e("label",{class:"block text-sm font-medium text-gray-700 mb-2"}," Colore Primario ",-1)),e("div",ue,[r(e("input",{"onUpdate:modelValue":o[0]||(o[0]=a=>t.value.branding.primaryColor=a),type:"color",class:"h-10 w-20 border border-gray-300 rounded-md cursor-pointer"},null,512),[[n,t.value.branding.primaryColor]]),r(e("input",{"onUpdate:modelValue":o[1]||(o[1]=a=>t.value.branding.primaryColor=a),type:"text",class:"flex-1 px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500"},null,512),[[n,t.value.branding.primaryColor]])])]),e("div",null,[o[45]||(o[45]=e("label",{class:"block text-sm font-medium text-gray-700 mb-2"}," Colore Secondario ",-1)),e("div",ve,[r(e("input",{"onUpdate:modelValue":o[2]||(o[2]=a=>t.value.branding.secondaryColor=a),type:"color",class:"h-10 w-20 border border-gray-300 rounded-md cursor-pointer"},null,512),[[n,t.value.branding.secondaryColor]]),r(e("input",{"onUpdate:modelValue":o[3]||(o[3]=a=>t.value.branding.secondaryColor=a),type:"text",class:"flex-1 px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500"},null,512),[[n,t.value.branding.secondaryColor]])])])]),e("div",null,[o[47]||(o[47]=e("label",{class:"block text-sm font-medium text-gray-700 mb-2"}," Font Family ",-1)),r(e("select",{"onUpdate:modelValue":o[4]||(o[4]=a=>t.value.branding.fontFamily=a),class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500"},[...o[46]||(o[46]=[U('<option value="" data-v-e5e056b2>Default (Georgia)</option><option value="&#39;Playfair Display&#39;, serif" data-v-e5e056b2>Playfair Display</option><option value="&#39;Lora&#39;, serif" data-v-e5e056b2>Lora</option><option value="&#39;Crimson Text&#39;, serif" data-v-e5e056b2>Crimson Text</option><option value="&#39;Merriweather&#39;, serif" data-v-e5e056b2>Merriweather</option><option value="&#39;Open Sans&#39;, sans-serif" data-v-e5e056b2>Open Sans</option>',6)])],512),[[H,t.value.branding.fontFamily]])]),x(w,{modelValue:t.value.branding.logoUrl,"onUpdate:modelValue":o[5]||(o[5]=a=>t.value.branding.logoUrl=a),type:"logo",label:"Logo","menu-id":l.value.id,"show-url-input"
3:!0,"preview-class":"max-h-32 w-auto mx-auto"},null,8,["modelValue","menu-id"])])]),e("div",ge,[e("div",{class:"absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-10 transition-opacity duration-500 rounded-2xl pointer-events-none",style:s({background:`linear-gradient(135deg, ${t.value.branding.primaryColor}, ${t.value.branding.secondaryColor})`})},null,4),e("div",pe,[e("h2",be,[e("div",{class:"p-2 rounded-xl mr-3 shadow-lg",style:s({background:`linear-gradient(135deg, ${t.value.branding.primaryColor}, ${t.value.branding.secondaryColor})`})},[...o[48]||(o[48]=[e("svg",{class:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"})],-1)])],4),o[49]||(o[49]=b(" 📱 Navbar ",-1))]),e("label",me,[r(e("input",{"onUpdate:modelValue":o[6]||(o[6]=a=>t.value.navbar.enabled=a),type:"checkbox",class:"h-4 w-4 text-gray-700 focus:ring-gray-500 border-gray-300 rounded"},null,512),[[c,t.value.navbar.enabled]]),o[50]||(o[50]=e("span",{class:"ml-2 text-sm text-gray-700"},"Mostra Navbar",-1))])]),t.value.navbar.enabled?(d(),i("div",ce,[e("div",null,[o[51]||(o[51]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"}," Titolo Navbar ",-1)),r(e("input",{"onUpdate:modelValue":o[7]||(o[7]=a=>t.value.navbar.title=a),type:"text",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500",placeholder:"Nome mostrato accanto al logo"},null,512),[[n,t.value.navbar.title]]),o[52]||(o[52]=e("p",{class:"text-xs text-gray-500 mt-1"},"Se vuoto, usa il nome del menu",-1))]),e("div",null,[o[53]||(o[53]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"}," Titolo Pagina (Browser Tab) ",-1)),r(e("input",{"onUpdate:modelValue":o[8]||(o[8]=a=>t.value.navbar.pageTitle=a),type:"text",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500",placeholder:"Titolo mostrato nel tab del browser"},null,512),[[n,t.value.navbar.pageTitle]]),o[54]||(o[54]=e("p",{class:"text-xs text-gray-500 mt-1"},"Se vuoto, usa il titolo navbar o il nome del menu",-1))]),x(w,{modelValue:t.value.navbar.logoUrl,"onUpdate:modelValue":o[9]||(o[9]=a=>t.value.navbar.logoUrl=a),type:"navbar_logo",label:"Logo Navbar","menu-id":l.value.id,"show-url-input":!0,"preview-class":"max-h-24 w-auto mx-auto"},null,8,["modelValue","menu-id"]),o[61]||(o[61]=e("p",{class:"text-xs text-gray-500"},"Se non specificato, usa il logo branding",-1)),e("div",ye,[o[55]||(o[55]=e("label",{class:"block text-sm font-medium text-gray-700 mb-2"}," Colore Sfondo Navbar (quando si scorre) ",-1)),e("div",fe,[r(e("input",{"onUpdate:modelValue":o[10]||(o[10]=a=>t.value.navbar.backgroundColor=a),type:"color",class:"h-10 w-16 border border-gray-300 rounded cursor-pointer"},null,512),[[n,t.value.navbar.backgroundColor]]),r(e("input",{"onUpdate:modelValue":o[11]||(o[11]=a=>t.value.navbar.backgroundColor=a),type:"text",class:"flex-1 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500 text-sm",placeholder:"#ffffff"},null,512),[[n,t.value.navbar.backgroundColor]]),e("button",{type:"button",onClick:o[12]||(o[12]=a=>t.value.navbar.backgroundColor="#ffffff"),class:"px-3 py-2 text-xs bg-gray-100 hover:bg-gray-200 rounded-md"}," Reset ")]),o[56]||(o[56]=e("p",{class:"text-xs text-gray-500 mt-1"},"Default: bianco (#ffffff)",-1))]),e("div",xe,[e("label",we,[r(e("input",{"onUpdate:modelValue":o[13]||(o[13]=a=>t.value.navbar.showSocials=a),type:"checkbox",class:"h-4 w-4 text-gray-700 focus:ring-gray-500 border-gray-300 rounded"},null,512),[[c,t.value.navbar.showSocials]]),o[57]||(o[57]=e("span",{class:"ml-2 text-sm font-medium text-gray-700"},"Mostra Social Icons",-1))]),t.value.navbar.showSocials?(d(),i("div",he,[e("div",null,[o[58]||(o[58]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"}," Facebook ",-1)),r(e("input",{"onUpdate:modelValue":o[14]||(o[14]=a=>t.value.navbar.facebook=a),type:"url",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500",placeholder:"https://facebook.com/tua-pagina"},null,512),[[n,t.value.navbar.facebook]])]),e("div",null,[o[59]||(o[59]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"}," Instagram ",-1)),r(e("input",{"onUpdate:modelValue":o[15]||(o[15]=a=>t.value.navbar.instagram=a),type:"url",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500",placeholder:"https://instagram.com/tuo-profilo"},null,512),[[n,t.value.navbar.instagram]])]),e("div",null,[o[60]||(o[60]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"}," WhatsApp ",-1)),r(e("input",{"onUpdate:modelValue":o[16]||(o[16]=a=>t.value.navbar.whatsapp=a),type:"tel",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500",placeholder:"+393331234567"},null,512),[[n,t.value.navbar.whatsapp]])])])):v("",!0)])])):v("",!0)]),e("div",ke,[e("div",{class:"absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-10 transition-opacity duration-500 rounded-2xl pointer-events-none",style:s({background:`linear-gradient(135deg, ${t.value.branding.primaryColor}, ${t.value.branding.secondaryColor})`})}
3,null,4),e("div",Ce,[e("h2",Me,[e("div",{class:"p-2 rounded-xl mr-3 shadow-lg",style:s({background:`linear-gradient(135deg, ${t.value.branding.primaryColor}, ${t.value.branding.secondaryColor})`})},[...o[62]||(o[62]=[e("svg",{class:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})],-1)])],4),o[63]||(o[63]=b(" 🖼️ Hero Section ",-1))]),e("label",Ve,[r(e("input",{"onUpdate:modelValue":o[17]||(o[17]=a=>t.value.hero.enabled=a),type:"checkbox",class:"h-4 w-4 text-gray-700 focus:ring-gray-500 border-gray-300 rounded"},null,512),[[c,t.value.hero.enabled]]),o[64]||(o[64]=e("span",{class:"ml-2 text-sm text-gray-700"},"Mostra Hero",-1))])]),t.value.hero.enabled?(d(),i("div",Ue,[e("div",null,[o[65]||(o[65]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"}," Titolo Hero ",-1)),r(e("input",{"onUpdate:modelValue":o[18]||(o[18]=a=>t.value.hero.title=a),type:"text",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500",placeholder:"Lascia vuoto per usare il nome del menu"},null,512),[[n,t.value.hero.title]])]),e("div",null,[o[66]||(o[66]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"}," Sottotitolo ",-1)),r(e("textarea",{"onUpdate:modelValue":o[19]||(o[19]=a=>t.value.hero.subtitle=a),rows:"2",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500",placeholder:"Lascia vuoto per usare la descrizione del menu"},null,512),[[n,t.value.hero.subtitle]])]),x(w,{modelValue:t.value.hero.backgroundImage,"onUpdate:modelValue":o[20]||(o[20]=a=>t.value.hero.backgroundImage=a),type:"hero",label:"Immagine Background (Desktop)","menu-id":l.value.id,"show-url-input":!0,"preview-class":"max-h-48 w-full object-cover"},null,8,["modelValue","menu-id"]),o[70]||(o[70]=e("p",{class:"text-xs text-gray-500"},"Formato orizzontale consigliato (16:9)",-1)),x(w,{modelValue:t.value.hero.backgroundImageMobile,"onUpdate:modelValue":o[21]||(o[21]=a=>t.value.hero.backgroundImageMobile=a),type:"hero-mobile",label:"Immagine Background (Mobile)","menu-id":l.value.id,"show-url-input":!0,"preview-class":"max-h-48 w-full object-cover"},null,8,["modelValue","menu-id"]),o[71]||(o[71]=e("p",{class:"text-xs text-gray-500"},"Formato verticale consigliato (9:16) - Se non specificato, usa l'immagine desktop",-1)),e("div",Ie,[o[68]||(o[68]=e("label",{class:"block text-sm font-medium text-gray-700 mb-2"}," 📱 Immagini Carosello Mobile (max 6) ",-1)),o[69]||(o[69]=e("p",{class:"text-xs text-gray-500 mb-3"}," Queste immagini scorreranno automaticamente nell'hero su mobile ",-1)),t.value.hero.carouselImages.length>0?(d(),i("div",Se,[(d(!0),i(O,null,P(t.value.hero.carouselImages,(a,C)=>(d(),i("div",{key:C,class:"relative group"},[e("img",{src:a,class:"w-full h-20 object-cover rounded-lg border",alt:`Carousel ${C+1}`},null,8,$e),e("button",{type:"button",onClick:wo=>z(C),class:"absolute top-1 right-1 p-1 bg-red-500 text-white rounded-full opacity-0 group-hover:opacity-100 transition-opacity"},[...o[67]||(o[67]=[e("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])],8,Te)]))),128))])):v("",!0),t.value.hero.carouselImages.length<6?(d(),i("div",Be,[x(w,{"model-value":"",type:"hero-mobile",label:"","menu-id":l.value.id,"preview-class":"max-h-32 w-full object-cover","onUpdate:modelValue":B},null,8,["menu-id"])])):(d(),i("p",ze,"Hai raggiunto il massimo di 6 immagini"))]),e("div",null,[e("label",Ne," Opacità Overlay: "+g(t.value.hero.overlayOpacity),1),r(e("input",{"onUpdate:modelValue":o[22]||(o[22]=a=>t.value.hero.overlayOpacity=a),type:"range",min:"0",max:"1",step:"0.1",class:"w-full"},null,512),[[n,t.value.hero.overlayOpacity,void 0,{number:!0}
3]])])])):v("",!0)]),e("div",De,[e("div",{class:"absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-10 transition-opacity duration-500 rounded-2xl pointer-events-none",style:s({background:`linear-gradient(135deg, ${t.value.branding.primaryColor}, ${t.value.branding.secondaryColor})`})},null,4),e("h2",Le,[e("div",{class:"p-2 rounded-xl mr-3 shadow-lg",style:s({background:`linear-gradient(135deg, ${t.value.branding.primaryColor}, ${t.value.branding.secondaryColor})`})},[...o[72]||(o[72]=[e("svg",{class:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})],-1)])],4),o[73]||(o[73]=b(" 📞 Informazioni di Contatto ",-1))]),e("div",je,[e("div",null,[o[74]||(o[74]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"}," Nome Ristorante ",-1)),r(e("input",{"onUpdate:modelValue":o[23]||(o[23]=a=>t.value.contact.restaurantName=a),type:"text",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500",placeholder:"Nome del ristorante"},null,512),[[n,t.value.contact.restaurantName]])]),e("div",He,[e("div",null,[o[75]||(o[75]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"}," Indirizzo ",-1)),r(e("input",{"onUpdate:modelValue":o[24]||(o[24]=a=>t.value.contact.address=a),type:"text",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500",placeholder:"Via Roma, 123"},null,512),[[n,t.value.contact.address]])]),e("div",null,[o[76]||(o[76]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"}," Città ",-1)),r(e("input",{"onUpdate:modelValue":o[25]||(o[25]=a=>t.value.contact.city=a),type:"text",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500",placeholder:"Milano"},null,512),[[n,t.value.contact.city]])])]),e("div",Oe,[e("div",null,[o[77]||(o[77]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"}," Telefono ",-1)),r(e("input",{"onUpdate:modelValue":o[26]||(o[26]=a=>t.value.contact.phone=a),type:"tel",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500",placeholder:"+39 02 1234567"},null,512),[[n,t.value.contact.phone]])]),e("div",null,[o[78]||(o[78]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"}," Email ",-1)),r(e("input",{"onUpdate:modelValue":o[27]||(o[27]=a=>t.value.contact.email=a),type:"email",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500",placeholder:"[email protected]"},null,512),[[n,t.value.contact.email]])])]),e("div",null,[o[79]||(o[79]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"}," Sito Web ",-1)),r(e("input",{"onUpdate:modelValue":o[28]||(o[28]=a=>t.value.contact.website=a),type:"url",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500",placeholder:"https://www.ristorante.it"},null,512),[[n,t.value.contact.website]])]),e("div",null,[o[80]||(o[80]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"}," Orari di Apertura ",-1)),r(e("textarea",{"onUpdate:modelValue":o[29]||(o[29]=a=>t.value.contact.openingHours=a),rows:"4",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500",placeholder:`Lun-Ven: 12:00-15:00, 19:00-23:00
4Sab-Dom: 12:00-23:00`},null,512),[[n,t.value.contact.openingHours]])])])]),e("div",Pe,[e("div",{class:"absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-10 transition-opacity duration-500 rounded-2xl pointer-events-none",style:s({background:`linear-gradient(135deg, ${t.value.branding.primaryColor}, ${t.value.branding.secondaryColor})`})},null,4),e("div",Fe,[e("h2",Ae,[e("div",{class:"p-2 rounded-xl mr-3 shadow-lg",style:s({background:`linear-gradient(135deg, ${t.value.branding.primaryColor}, ${t.value.branding.secondaryColor})`})}
4,[...o[81]||(o[81]=[e("svg",{class:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"})],-1)])],4),o[82]||(o[82]=b(" Footer ",-1))]),e("label",We,[r(e("input",{"onUpdate:modelValue":o[30]||(o[30]=a=>t.value.footer.enabled=a),type:"checkbox",class:"h-4 w-4 text-gray-700 focus:ring-gray-500 border-gray-300 rounded"},null,512),[[c,t.value.footer.enabled]]),o[83]||(o[83]=e("span",{class:"ml-2 text-sm text-gray-700"},"Mostra Footer",-1))])]),t.value.footer.enabled?(d(),i("div",Re,[e("label",Ee,[r(e("input",{"onUpdate:modelValue":o[31]||(o[31]=a=>t.value.footer.showContacts=a),type:"checkbox",class:"h-4 w-4 text-gray-700 focus:ring-gray-500 border-gray-300 rounded"},null,512),[[c,t.value.footer.showContacts]]),o[84]||(o[84]=e("span",{class:"ml-2 text-sm text-gray-700"},"Mostra Contatti nel Footer",-1))]),e("div",null,[o[85]||(o[85]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"}," Testo Personalizzato ",-1)),r(e("textarea",{"onUpdate:modelValue":o[32]||(o[32]=a=>t.value.footer.customText=a),rows:"2",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500",placeholder:"Testo aggiuntivo da mostrare nel footer..."},null,512),[[n,t.value.footer.customText]])]),e("div",Qe,[e("label",qe,[r(e("input",{"onUpdate:modelValue":o[33]||(o[33]=a=>t.value.footer.showPoweredBy=a),type:"checkbox",class:"h-4 w-4 text-gray-700 focus:ring-gray-500 border-gray-300 rounded"},null,512),[[c,t.value.footer.showPoweredBy]]),o[86]||(o[86]=e("span",{class:"ml-2 text-sm font-medium text-gray-700"},'Mostra "Powered By"',-1))]),t.value.footer.showPoweredBy?(d(),i("div",Ke,[e("div",null,[o[87]||(o[87]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"}," Nome Sviluppatore ",-1)),r(e("input",{"onUpdate:modelValue":o[34]||(o[34]=a=>t.value.footer.developerName=a),type:"text",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500",placeholder:"Nome della tua azienda"},null,512),[[n,t.value.footer.developerName]])]),e("div",null,[o[88]||(o[88]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"}," Sito Web Sviluppatore ",-1)),r(e("input",{"onUpdate:modelValue":o[35]||(o[35]=a=>t.value.footer.developerWebsite=a),type:"url",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500",placeholder:"https://www.tua-azienda.it"},null,512),[[n,t.value.footer.developerWebsite]])])])):v("",!0)])])):v("",!0)])]),e("div",Ye,[e("div",Ze,[e("div",Ge,[e("div",{class:"absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-10 transition-opacity duration-500 rounded-2xl pointer-events-none",style:s({background:`linear-gradient(135deg, ${t.value.branding.primaryColor}, ${t.value.branding.secondaryColor})`})},null,4),e("h3",Je,[e("div",{class:"p-2 rounded-xl mr-3 shadow-lg",style:s({background:`linear-gradient(135deg, ${t.value.branding.primaryColor}, ${t.value.branding.secondaryColor})`})},[...o[89]||(o[89]=[e("svg",{class:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})],-1)])],4),o[90]||(o[90]=b(" Anteprima Live ",-1))]),e("div",Xe,[e("div",_e,[o[93]||(o[93]=e("p",{class:"text-xs font-medium text-gray-700 mb-3"},"Colori",-1)),e("div",eo,[e("div",oo,[e("div",{class:"h-12 rounded border border-gray-200",style:s({backgroundColor:t.value.branding.primaryColor})},null,4),o[91]||(o[91]=e("p",{class:"text-xs text-gray-500 mt-1 text-center"},"Primario",-1))]),e("div",to,[e("div",{class:"h-12 rounded border border-gray-200",style:s({backgroundColor:t.value.branding.secondaryColor})},null,4),o[92]||(o[92]=e("p",{class:"text-xs text-gray-500 mt-1 text-center"},"Secondario",-1))])])]),t.value.branding.logoUrl?(d(),i("div",ao,[o[94]||(o[94]=e("p",{class:"text-xs font-medium text-gray-700 mb-3"},"Logo",-1)),e("img",{src:t.value.branding.logoUrl,alt:"Logo preview",class:"max-h-20 mx-auto"},null,8,lo)])):v("",!0),t.value.hero.enabled?(d(),i("div",ro,[e("div",{class:"relative h-32 flex items-center justify-center text-white",style:s({backgroundImage:t.value.hero.backgroundImage?`linear-gradient(rgba(0,0,0,${t.value.hero.overlayOpacity}), rgba(0,0,0,${t.value.hero.overlayOpacity})), url(${t.value.hero.backgroundImage})`:`linear-gradient(135deg, ${t.value.branding.primaryColor}, ${t.value.branding.secondaryColor})`,backgroundSize:"cover",backgroundPosition:"center"})},[e("div",no,[e("p",so,g(t.value.hero.title||l.value.name),1),e("p",io,g(t.value.hero.subtitle||l.value.description),1)])],4),o[95]||(o[95]=e("div",{class:"p-2 bg-gray-50"},[e("p",{class:"text-xs text-gray-500 text-center"},"Hero Desktop")],-1))])):v("",!0),t.value.hero.enabled&&t.value.hero.backgroundImageMobile?(d(),i("div",uo,[e("div",{class:"relative h-48 w-24 mx-auto flex items-center justify-center text-white",style:s({backgroundImage:`linear-gradient(rgba(0,0,0,${t.value.hero.overlayOpacity}), rgba(0,0,0,${t.value.hero.overlayOpacity})), url(${t.value.hero.backgroundImageMobile})`,backgroundSize:"cover",backgroundPosition:"center"})},[e("div",vo,[e("p",go,g(t.value.hero.title||l.value.name),1)])],4),o[96]||(o[96]=e("div",{class:"p-2 bg-gray-50"},[e("p",{class:"text-xs text-gray-500 text-center"},"Hero Mobile")],-1))])):v("",!0),e("div",po,[o[97]||(o[97]=e("p",{class:"text-xs font-medium text-gray-700 mb-2"},"Link Menu Pubblico",-1)),e("a",{href:`/public/menu/${l.value.id}`,target:"_blank",class:"text-xs text-gray-700 hover:text-gray-900 break-all block"}," /public/menu/"+g(l.value.id),9,bo)])])])])])])])):v("",!0),y.value?(d(),i("div",mo,[...o[98]||(o[98]=[U('<div class="bg-white/20 p-2 rounded-full" data-v-e5e056b2><svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-e5e056b2><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" data-v-e5e056b2></path></svg></div><div data-v-e5e056b2><p class="font-bold" data-v-e5e056b2>Perfetto!</p><p class="text-sm opacity-90" data-v-e5e056b2>Modifiche salvate con successo!</p></div>',2)])])):v("",!0),f.value?(d(),i("div",co,[o[100]||(o[100]=e("div",{class:"bg-white/20 p-2 rounded-full"},[e("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})])],-1)),e("div",null,[o[99]||(o[99]=e("p",{class:"font-bold"},"Ops!",-1)),e("p",yo,g(f.value),1)])])):v("",!0)]))}}),Io=W(fo,[["__scopeId","data-v-e5e056b2"]]);export{Io 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.