1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2036,4985],{44019:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,o,i){return!1};("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7942:function(e,t,o){"use strict";var i=o(85696);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(92648).Z,a=o(17273).Z,r=n(o(67294)),s=o(64957),l=o(57995),c=o(30647),d=o(51992),u=o(90639),p=o(44019),f=o(70227),m={};function g(e,t,o,i){if(e&&s.isLocalURL(t)){Promise.resolve(e.prefetch(t,o,i)).catch((function(e){0}));var n=i&&"undefined"!==typeof i.locale?i.locale:e&&e.locale;m[t+"%"+o+(n?"%"+n:"")]=!0}}var h=r.default.forwardRef((function(e,t){var o,n=e.href,h=e.as,b=e.children,x=e.prefetch,y=e.passHref,v=e.replace,j=e.shallow,w=e.scroll,z=e.locale,k=e.onClick,S=e.onMouseEnter,C=e.onTouchStart,L=e.legacyBehavior,O=void 0===L?!0!==Boolean(!1):L,R=a(e,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);o=b,!O||"string"!==typeof o&&"number"!==typeof o||(o=r.default.createElement("a",null,o));var N=!1!==x,I=r.default.useContext(c.RouterContext),P=r.default.useContext(d.AppRouterContext);P&&(I=P);var T,A=r.default.useMemo((function(){var e=s.resolveHref(I,n,!0),t=i(e,2),o=t[0],a=t[1];return{href:o,as:h?s.resolveHref(I,h):a||o}}),[I,n,h]),_=A.href,H=A.as,W=r.default.useRef(_),B=r.default.useRef(H);O&&(T=r.default.Children.only(o));var E=O?T&&"object"===typeof T&&T.ref:t,D=u.useIntersection({rootMargin:"200px"}),M=i(D,3),$=M[0],q=M[1],F=M[2],U=r.default.useCallback((function(e){B.current===H&&W.current===_||(F(),B.current=H,W.current=_),$(e),E&&("function"===typeof E?E(e):"object"===typeof E&&(E.current=e))}),[H,E,_,F,$]);r.default.useEffect((function(){var e=q&&N&&s.isLocalURL(_),t="undefined"!==typeof z?z:I&&I.locale,o=m[_+"%"+H+(t?"%"+t:"")];e&&!o&&g(I,_,H,{locale:t})}),[H,_,q,z,N,I]);var Z={ref:U,onClick:function(e){O||"function"!==typeof k||k(e),O&&T.props&&"function"===typeof T.props.onClick&&T.props.onClick(e),e.defaultPrevented||function(e,t,o,i,n,a,l,c,d,u){if("A"!==e.currentTarget.nodeName.toUpperCase()||!function(e){var t=e.currentTarget.target;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&s.isLocalURL(o)){e.preventDefault();var p=function(){"beforePopState"in t?t[n?"replace":"push"](o,i,{shallow:a,locale:c,scroll:l}):t[n?"replace":"push"](o,{forceOptimisticNavigation:!u})};d?r.default.startTransition(p):p()}}(e,I,_,H,v,j,w,z,Boolean(P),N)},onMouseEnter:function(e){O||"function"!==typeof S||S(e),O&&T.props&&"function"===typeof T.props.onMouseEnter&&T.props.onMouseEnter(e),!N&&P||s.isLocalURL(_)&&g(I,_,H,{priority:!0})},onTouchStart:function(e){O||"function"!==typeof C||C(e),O&&T.props&&"function"===typeof T.props.onTouchStart&&T.props.onTouchStart(e),!N&&P||s.isLocalURL(_)&&g(I,_,H,{priority:!0})}};if(!O||y||"a"===T.type&&!("href"in T.props)){var K="undefined"!==typeof z?z:I&&I.locale,Q=I&&I.isLocaleDomain&&p.getDomainLocale(H,K,I.locales,I.domainLocales);Z.href=Q||f.addBasePath(l.addLocale(H,K,I&&I.defaultLocale))}return O?r.default.cloneElement(T,Z):r.default.createElement("a",Object.assign({},R,Z),o)}));t.default=h,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51992:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateContext=t.GlobalLayoutRouterContext=t.LayoutRouterContext=t.AppRouterContext=void 0;var i=(0,o(92648).Z)(o(67294)),n=i.default.createContext(null);t.AppRouterContext=n;var a=i.default.createContext(null);t.LayoutRouterContext=a;var r=i.default.createContext(null);t.GlobalLayoutRouterContext=r;var s=i.default.createContext(null);t.TemplateContext=s},4985:function(e,t,o){"use strict";o.r(t);var i=o(59499),n=o(95627),a=o.n(n),r=o(67294),s=o(85893);function l(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function c(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?l(Object(o),!0).forEach((function(t){(0,i.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var d={"incidenti-stradali":"Hai subito un incidente stradale?","diritto-civile":"Hai una questione civile da risolvere?","diritto-del-lavoro":"Hai un problema lavorativo?","diritto-penale":"Hai bisogno di un avvocato penalista?","diritto-di-famiglia":"Stai affrontando una questione familiare?","diritto-immobiliare":"Hai un problema immobiliare?","tutela-del-consumatore":"Sei stato danneggiato come consumatore?","recupero-crediti":"Hai dei crediti da recuperare?","diritto-tributario":"Hai una questione fiscale o tributaria?",immigrazione:"Hai bisogno di assistenza per l'immigrazione?","responsabilita-medica":"Hai subito un danno da responsabilit\xe0 medica?","successioni-e-testamenti":"Hai una questione di successione o testamento?",contratti:"Hai un problema contrattuale?","societa-e-impresa":"Hai bisogno di consulenza per la tua impresa?"};var u={card:{background:"#ffffff",borderRadius:12,border:"1px solid #e5e7eb",boxShadow:"0 2px 16px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04)",overflow:"hidden"},headlineBlock:{background:"#303f9f",padding:"18px 22px 16px"},headline:{fontSize:17,fontWeight:700,color:"#ffffff",lineHeight:1.35,margin:0},body:{padding:"16px 22px 20px"},sub:{fontSize:13.5,color:"#4b5563",lineHeight:1.55,marginBottom:14},textarea:{width:"100%",background:"#fafafa",border:"1.5px solid #e5e7eb",borderRadius:8,padding:"11px 13px",color:"#1a1a1a",fontFamily:"inherit",fontSize:13.5,lineHeight:1.6,resize:"none",minHeight:108,outline:"none",boxSizing:"border-box",transition:"border-color .2s"},charHint:{fontSize:11,marginTop:5,display:"flex",justifyContent:"space-between",alignItems:"center",transition:"color .2s"},cta:{width:"100%",background:"#008800",color:"#fff",border:"none",borderRadius:8,padding:"13px 18px",fontFamily:"inherit",fontSize:14.5,fontWeight:600,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:7,boxShadow:"0 2px 8px rgba(0,136,0,.25)",marginTop:14,letterSpacing:".01em",transition:"background .15s, transform .12s"},ctaDisabled:{background:"#9ca3af",boxShadow:"none",cursor:"not-allowed"},trustRow:{display:"flex",alignItems:"center",marginTop:14,paddingTop:14,borderTop:"1px solid #e5e7eb"},trustItem:{display:"flex",alignItems:"center",gap:5,fontSize:12,color:"#4b5563",fontWeight:500,flex:1,justifyContent:"center"},check:{width:17,height:17,background:"#e8f5e8",borderRadius:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:10,color:"#008800",flexShrink:0},trustDivider:{width:1,height:22,background:"#e5e7eb",flexShrink:0},overlay:{position:"fixed",inset:0,background:"rgba(0,0,0,.55)",backdropFilter:"blur(6px)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center"},modal:{background:"#ffffff",borderRadius:16,width:560,maxWidth:"calc(100vw - 32px)",maxHeight:"calc(100vh - 40px)",overflow:"hidden",boxShadow:"0 20px 60px rgba(0,0,0,.3)",display:"flex",flexDirection:"column"},modalHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 20px 14px",borderBottom:"1px solid #e5e7eb",flexShrink:0},modalBrand:{display:"flex",alignItems:"center",gap:9},modalIcon:{width:32,height:32,background:"#e8f5e8",borderRadius:8,display:"flex",alignItems:"center",justifyContent:"center",fontSize:16},modalTitle:{fontSize:15,fontWeight:700,color:"#1a1a1a"},modalSub:{fontSize:12,color:"#9ca3af",marginTop:1},modalClose:{width:30,height:30,borderRadius:6,border:"1px solid #e5e7eb",background:"white",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:"#4b5563",fontSize:18,lineHeight:1},iframeWrap:{flex:1,position:"relative",minHeight:520},loader:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,background:"#fafafa"},spinner:{width:30,height:30,border:"3px solid #e5e7eb",borderTopColor:"#008800",borderRadius:"50%",animation:"spin .7s linear infinite"},iframe:{position:"absolute",inset:0,width:"100%",height:"100%",border:"none",transition:"opacity .2s"}};t.default=function(e){var t=e.categoryPermalink,o=e.source,i=(0,r.useState)(""),n=i[0],l=i[1],p=(0,r.useState)(!1),f=p[0],m=p[1],g=(0,r.useState)(!1),h=g[0],b=g[1],x=(0,r.useRef)(null),y=n.trim().length,v=y>=80,j=function(e){return e&&d[e]?d[e]:"Hai bisogno di assistenza legale?"}(t);function w(){m(!1),document.body.style.overflow="",setTimeout((function(){return b(!1)}),300)}(0,r.useEffect)((function(){var e=function(e){"Escape"===e.key&&w()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[]);var z=f?"".concat("https://mylawyer.avvocatoflash.it").concat(function(){var e=[],t=n.trim();return t&&e.push("desc=".concat(encodeURIComponent(t))),o&&e.push("source=".concat(encodeURIComponent(o))),e.length>0?"?".concat(e.join("&")):""}()):"";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{style:u.card,className:"jsx-1109049199",children:[(0,s.jsx)("div",{style:u.headlineBlock,className:"jsx-1109049199",children:(0,s.jsx)("h3",{style:u.headline,className:"jsx-1109049199",children:j})}),(0,s.jsxs)("div",{style:u.body,className:"jsx-1109049199",children:[(0,s.jsx)("p",{style:u.sub,className:"jsx-1109049199",children:"Scrivici, ti mettiamo in contatto con il miglior avvocato nella tua zona in poche ore."}),(0,s.jsx)("textarea",{style:u.textarea,placeholder:"Descrivi brevemente la tua situazione: cosa \xe8 successo, quando, se hai gi\xe0 documenti o referti...",value:n,onChange:function(e){return l(e.target.value)},rows:4,onFocus:function(e){return e.target.style.borderColor="#008800"},onBlur:function(e){return e.target.style.borderColor="#e5e7eb"},className:"jsx-1109049199"}),(0,s.jsxs)("div",{style:c(c({},u.charHint),{},{color:y>=80?"#008800":y>20?"#d97706":"#9ca3af"}),className:"jsx-1109049199",children:[(0,s.jsx)("span",{className:"jsx-1109049199",children:y>=80?"Perfetto, puoi procedere":"Minimo 80 caratteri"}),(0,s.jsxs)("span",{className:"jsx-1109049199",children:[y," / ",80]})]}),(0,s.jsxs)("button",{style:v?u.cta:c(c({},u.cta),u.ctaDisabled),disabled:!v,onClick:function(){b(!1),m(!0),document.body.style.overflow="hidden"},onMouseEnter:function(e){if(v){var t=e.currentTarget;t.style.background="#006600",t.style.transform="translateY(-1px)"}},onMouseLeave:function(e){if(v){var t=e.currentTarget;t.style.background="#008800",t.style.transform="none"}},className:"jsx-1109049199",children:["Parla con un Avvocato",(0,s.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-1109049199",children:(0,s.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7",className:"jsx-1109049199"})})]}),(0,s.jsxs)("div",{style:u.trustRow,className:"jsx-1109049199",children:[(0,s.jsxs)("div",{style:u.trustItem,className:"jsx-1109049199",children:[(0,s.jsx)("span",{style:u.check,className:"jsx-1109049199",children:"\u2713"}),(0,s.jsx)("span",{className:"jsx-1109049199",children:"Avvocati verificati"})]}),(0,s.jsx)("div",{style:u.trustDivider,className:"jsx-1109049199"}),(0,s.jsxs)("div",{style:u.trustItem,className:"jsx-1109049199",children:[(0,s.jsx)("span",{style:u.check,className:"jsx-1109049199",children:"\u2713"}),(0,s.jsx)("span",{className:"jsx-1109049199",children:"50.000+ clienti aiutati"})]})]})]})]}),f&&(0,s.jsx)("div",{style:u.overlay,onClick:function(e){e.target===e.currentTarget&&w()},className:"jsx-1109049199",children:(0,s.jsxs)("div",{style:u.modal,className:"jsx-1109049199",children:[(0,s.jsxs)("div",{style:u.modalHeader,className:"jsx-1109049199",children:[(0,s.jsxs)("div",{style:u.modalBrand,className:"jsx-1109049199",children:[(0,s.jsx)("div",{style:u.modalIcon,className:"jsx-1109049199",children:"\u2696\ufe0f"}),(0,s.jsxs)("div",{className:"jsx-1109049199",children:[(0,s.jsx)("div",{style:u.modalTitle,className:"jsx-1109049199",children:"AvvocatoFlash"}),(0,s.jsx)("div",{style:u.modalSub,className:"jsx-1109049199",children:"Preventivo gratuito \u2014 risposta in poche ore"})]})]}),(0,s.jsx)("button",{style:u.modalClose,onClick:w,className:"jsx-1109049199",children:"\xd7"})]}),(0,s.jsxs)("div",{style:u.iframeWrap,className:"jsx-1109049199",children:[!h&&(0,s.jsxs)("div",{style:u.loader,className:"jsx-1109049199",children:[(0,s.jsx)("div",{style:u.spinner,className:"jsx-1109049199"}),(0,s.jsx)("p",{style:{fontSize:13,color:"#9ca3af"},className:"jsx-1109049199",children:"Caricamento..."})]}),(0,s.jsx)("iframe",{ref:x,src:z,title:"AvvocatoFlash \u2014 Parla con un avvocato",allow:"clipboard-write",onLoad:function(){var e;b(!0),null!==(e=x.current)&&void 0!==e&&e.contentWindow&&x.current.contentWindow.postMessage({type:"mylawyer_parent_url",url:window.location.href},"*")},style:c(c({},u.iframe),{},{opacity:h?1:0}
1),className:"jsx-1109049199"})]})]})}),(0,s.jsx)(a(),{id:"1109049199",children:["@-webkit-keyframes spin-jsx-1109049199{to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}","@keyframes spin-jsx-1109049199{to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}"]})]})}},73991:function(e,t,o){"use strict";o.r(t),o.d(t,{__N_SSP:function(){return P},default:function(){return T}});var i=o(27812),n=o(59499),a=o(50029),r=o(87794),s=o.n(r),l=o(67294),c=o(9008),d=o.n(c),u=o(41664),p=o.n(u),f=o(97950),m=o(85893);function g(e){var t=function(e){var t=e,o=t.search(/^Approfondisci:/m);return-1!==o&&(t=t.slice(0,o)),(t=(t=t.replace(/^Avviso:.*$/gm,"")).replace(/^Per una valutazione del tuo caso.*$/gm,"")).replace(/\n{3,}/g,"\n\n").trim()}(e);t=function(e){return e.replace(/^([^\n#*`\-\d][^\n:]{2,80}):\s*$/gm,"## $1")}(t);var o=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");return o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=o.replace(/^### (.+)$/gm,'<h3 class="forum-h3">$1</h3>')).replace(/^## (.+)$/gm,'<h2 class="forum-h2">$1</h2>')).replace(/^# (.+)$/gm,'<h2 class="forum-h2">$1</h2>')).replace(/^---$/gm,'<hr class="forum-hr">')).replace(/\*\*\*(.+?)\*\*\*/g,"<strong><em>$1</em></strong>")).replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>")).replace(/\*(.+?)\*/g,"<em>$1</em>")).replace(/`(.+?)`/g,'<code class="forum-code">$1</code>')).replace(/\[CTA:([^\]]+)\]\(([^)]+)\)/g,'<button class="forum-cta-btn" data-action="open-mylawyer">$1</button>')).replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" class="forum-link" target="_blank" rel="noopener">$1</a>')).replace(/^[*-] (.+)$/gm,"<li>$1</li>")).replace(/(<li>.*<\/li>\n?)+/g,(function(e){return'<ul class="forum-ul">'.concat(e,"</ul>")}))).replace(/^\d+\. (.+)$/gm,"<li>$1</li>")).split(/\n{2,}/).map((function(e){var t=e.trim();return t?/^<(h[1-6]|ul|ol|hr|li|button class="forum-cta|a class="forum-cta)/.test(t)?t:'<p class="forum-p">'.concat(t.replace(/\n/g,"<br>"),"</p>"):""})).join("\n")}function h(e){var t=e.content,o=e.onCtaClick;return(0,m.jsx)("div",{className:"forum-answer-body",onClick:function(e){"open-mylawyer"===e.target.dataset.action&&o&&(e.preventDefault(),o())},dangerouslySetInnerHTML:{__html:g(t)}})}var b={pignoramento:{urgent:!0,what:"un pignoramento",act:"bloccare o ridurre la procedura",deadline:"i termini per opporti sono brevi"},"decreto-ingiuntivo":{urgent:!0,what:"un decreto ingiuntivo",act:"fare opposizione",deadline:"hai 40 giorni dalla notifica per opporti"}},x={"recupero-crediti":{urgent:!0,what:"un credito da recuperare o un\u2019azione esecutiva",act:"agire nei tempi giusti",deadline:"ogni giorno conta"},"diritto-penale":{urgent:!0,what:"un procedimento penale",act:"difenderti da subito",deadline:"i termini di difesa sono stretti"},"diritto-del-lavoro":{urgent:!0,what:"un problema di lavoro (licenziamento, TFR, stipendi)",act:"far valere i tuoi diritti",deadline:"alcune impugnazioni hanno termini di 60 giorni"},"diritto-tributario":{urgent:!0,what:"una cartella o un atto fiscale",act:"opporti nei termini",deadline:"spesso hai 60 giorni per il ricorso"},"diritto-immobiliare":{urgent:!1,what:"un problema immobiliare",act:"tutelare il tuo acquisto o immobile"},"separazione-divorzio":{urgent:!1,what:"una separazione o un divorzio",act:"tutelare te e i tuoi figli"},"diritto-di-famiglia":{urgent:!1,what:"una questione familiare",act:"tutelare i tuoi diritti"},"diritto-successioni":{urgent:!1,what:"una successione o un\u2019eredit\xe0",act:"tutelare la tua quota"}};function y(e){var t=e.category,o=e.categoryLabel,i=e.subType,n=e.cityLabel,a=e.variant,r=e.onClick,s=function(e,t){return t&&b[t]?b[t]:x[e]?x[e]:{urgent:!1,what:"una questione legale",act:"capire come muoverti"}}(t,i),l=n?" a ".concat(n):"";return"hook"===a?s.urgent?(0,m.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:12,background:"#f0fdf4",border:"1px solid #bbf7d0",borderLeft:"4px solid #008800",borderRadius:10,padding:"12px 16px",marginBottom:20},children:[(0,m.jsxs)("span",{style:{fontSize:14,color:"#14532d",lineHeight:1.5,flex:"1 1 240px"},children:[(0,m.jsxs)("strong",{children:["Hai ",s.what,l,"?"]})," ",s.deadline?"Attenzione: ".concat(s.deadline,"."):""," Prima agisci, pi\xf9 opzioni hai."]}),(0,m.jsx)("button",{onClick:r,style:{background:"#008800",color:"white",fontWeight:700,fontSize:14,padding:"9px 18px",borderRadius:8,border:"none",cursor:"pointer",whiteSpace:"nowrap"},children:"Preventivo gratuito \u2192"})]}):null:(0,m.jsxs)("div",{style:{background:"linear-gradient(135deg, #006600 0%, #008800 100%)",borderRadius:16,padding:"28px 32px",color:"white",textAlign:"center",marginBottom:20},children:[(0,m.jsxs)("h2",{style:{fontSize:20,fontWeight:700,margin:"0 0 8px"},children:["Hai ",s.what,l,"?"]}),(0,m.jsxs)("p",{style:{fontSize:14,opacity:.9,margin:"0 0 20px",lineHeight:1.65},children:["Ti mettiamo in contatto con un avvocato specializzato in ",o,n?" della zona di ".concat(n):" della tua zona"," per"," ",s.act,". Invia il tuo caso: il preventivo \xe8 gratuito."]}),(0,m.jsx)("button",{onClick:r,style:{display:"inline-block",background:"white",color:"#008800",fontWeight:700,fontSize:15,padding:"12px 28px",borderRadius:10,border:"none",cursor:"pointer"},children:"Parla con un avvocato ora"})]})}var v={pignoramento:"always","decreto-ingiuntivo":"always","cartella-esattoriale":"always","sfratto-morosita":"always",licenziamento:"always","dimissioni-per-giusta-causa":"always","malattia-professionale-inail":"always","usura-bancaria":"always","difesa-da-pignoramento-immobiliare":"always","pignoramento-stipendio-pensione":"always","pignoramento-conto-corrente":"always","opposizione-decreto-prescrizione-credito":"always","acquisto-immobile-asta-giudiziaria":"always","auto-usata-vizi-occulti":"always","vizi-occulti-post-acquisto":"always","lesione-quota-legittima":"always","divisione-eredita-tra-coeredi":"always","rinuncia-eredita-per-debiti":"always","fi
1deiussione-escussa":"always","truffa-investimento-criptovalute":"always","truffa-phishing-smishing":"always",diffamazione:"always","diffamazione-social-media":"always","violenza-in-famiglia":"protection","stalking-ex-partner":"protection","droga-arresti":"protection","droga-spaccio-accusa":"protection","lesioni-aggressione-fisica":"protection","ebbrezza-rifiuto-accertamento":"protection","inadempimento-accordi-affidamento":"protection","agenzia-immobiliare":"threshold","agenzia-immobiliare-controversia":"threshold","caparra-non-restituita":"threshold","deposito-cauzionale-non-restituito":"threshold","locazione-senza-contratto-scritto":"threshold","ecommerce-mancata-consegna":"threshold","pagamento-mai-consegnato":"threshold","risarcimento-danni-animali":"threshold","canoni-arretrati-inquilino-moroso":"threshold","tfr-non-pagato":"consult",successioni:"consult","mantenimento-non-pagato":"consult","modifica-mantenimento":"consult","divisione-casa-mutuo-convivenza":"consult","legge104-permessi-congedo":"consult","accesso-atti-silenzio-inadempimento":"consult","non-ammissione-scolastica":"consult","concorso-pubblico-esclusione":"consult","invali
1dita-civile-ricorso-diniego":"consult","abuso-edilizio-sanatoria":"consult","recupero-prestito-tra-privati":"consult","recupero-fattura-non-pagata-b2b":"consult","sinistro-veicolo-singolo":"consult","sinistro-ciclista-pedone":"consult","risarcimento-morso-cane":"consult","risarcimento-caduta-insidia-stradale":"consult","violazione-diritto-autore":"consult","compravendita-immobiliare":"consult"},j={"diritto-del-lavoro":"always","diritto-di-famiglia":"consult","separazione-divorzio":"consult","diritto-penale":"protection","diritto-civile":"consult","diritto-immobiliare":"threshold","diritto-successioni":"consult","successioni-e-donazioni":"consult","diritto-condominiale":"consult","incidente-stradale":"consult","responsabilita-medica":"consult","diritto-tributario":"always","diritto-commerciale":"consult","diritto-amministrativo":"consult","diritto-della-privacy":"consult","privacy-e-protezione-dati":"consult","diffamazione-e-privacy":"consult","diritto-assicurativo":"consult","diritto-bancario":"consult","diritto-del-consumatore":"threshold",immigrazione:"protection","gratuito-patrocinio":"consult","violenza-domestica":"protection","diritto-informatico":"consult","proprieta-intellettuale":"consult","recupero-crediti":"always","diritto-societario":"consult","risarcimento-danni":"consult"};var w={always:"Qui non \xe8 tanto una questione di convenienza economica: rischi qualcosa di importante (una casa, un rapporto di lavoro, un debito o un\u2019eredit\xe0) e un avvocato in genere si ripaga da solo. Per un caso cos\xec, aspettati un primo contributo per lo studio della documentazione se \xe8 complesso (indicativamente a partire da \u20ac150) \u2014 ma \xe8 una spesa che qui ha senso. Scrivici per un primo confronto.",protection:"Qui la priorit\xe0 \xe8 la tua sicurezza e i tuoi diritti, non il costo. Parlane con un avvocato il prima possibile: prima capisci come muoverti, meglio riesci a tutelarti. Scrivici, il primo confronto non ti impegna a nulla.",threshold:"Vista la cifra probabilmente in gioco, prima di pensare a un avvocato prova con una richiesta scritta diretta alla controparte: per importi contenuti \xe8 spesso l\u2019unica strada che ha senso economicamente, dato che un legale rischia di costarti pi\xf9 di quanto recuperi. Se dopo il tentativo non ottieni risposta, scrivici e valutiamo insieme se vale la pena andare oltre.",consult:"Prima di pensare a una causa vera e propria, questa \xe8 pi\xf9 una domanda da un primo confronto: spesso basta capire cosa rischi davvero e quali strade hai, non serve subito un procedimento formale. Per i casi pi\xf9 articolati molti avvocati chiedono un contributo per lo studio della documentazione (indicativamente da \u20ac150). Scrivici: un parere veloce non costa nulla chiedere."};function z(e){var t=function(e,t){return t&&v[t]?v[t]:j[e]?j[e]:"consult"}(e.category,e.subType);return(0,m.jsxs)("div",{style:{border:"1px solid #fde68a",borderLeft:"4px solid #f59e0b",borderRadius:12,padding:"18px 22px",background:"#fffbeb",marginBottom:20},children:[(0,m.jsx)("h3",{style:{fontSize:16,fontWeight:700,margin:"0 0 8px",color:"#92400e"},children:"Ti conviene contattare un avvocato?"}),(0,m.jsx)("p",{style:{margin:0,fontSize:14,lineHeight:1.7,color:"#374151"},children:w[t]})]})}var k=o(4985),S=o(32354),C=o(67991),L=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;function O(e,t){var o="string"===typeof t?t.trim().toLowerCase():"",i=o.length>0&&o.length<=64&&L.test(o)&&!o.endsWith("-1");return"".concat(e).concat("__").concat(i?o:"sconosciuta")}function R(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function N(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?R(Object(o),!0).forEach((function(t){(0,n.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):R(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var I="https://mylawyer.avvocatoflash.it",P=!0;function T(e){var t=e.post,o=e.categoria,n=e.categoryLabel,r=(0,l.useState)(!1),c=r[0],u=r[1],g=(0,l.useState)(t),b=g[0],x=g[1],v=(0,l.useRef)(null),j=(0,l.useState)(""),w=j[0],L=j[1],R=(0,l.useState)(""),P=R[0],T=R[1],A=(0,l.useState)(!1),_=A[0],H=A[1],W=t.category||o,B=O("forum-detail-cta",W),E=O("forum-answer-cta",W),D=O("forum-widget-cta",W),M=(0,l.useState)(null),$=M[0],q=M[1],F=(0,l.useState)(!1),U=F[
10],Z=F[1];(0,l.useEffect)((function(){var e=(b.replies||[]).some((function(e){return"pending_answer"===e.status||"answering"===e.status}));if("pending_answer"===b.status||"answering"===b.status||e)return v.current=setInterval((0,a.Z)(s().mark((function e(){var t,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(I,"/api/forum/posts/").concat(encodeURIComponent(b.postId)));case 3:if((t=e.sent).ok){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,t.json();case 8:(o=e.sent).post&&x(o.post),e.next=14;break;case 12:e.prev=12,e.t0=e.catch(0);case 14:case"end":return e.stop()}}),e,null,[[0,12]])}))),3e3),function(){v.current&&clearInterval(v.current)}}),[b.status,b.postId,b.replies]);var K=(0,l.useCallback)((0,a.Z)(s().mark((function e(){var t,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(w.trim().length<10)){e.next=2;break}return e.abrupt("return");case 2:return H(!0),q(null),e.prev=4,e.next=7,fetch("".concat(I,"/api/forum/posts/").concat(b.postId,"/replies"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({body:w.trim(),email:P.trim()||void 0})});case 7:if((t=e.sent).ok){e.next=10;break}throw new Error;case 10:return e.next=12,t.json();case 12:o=e.sent,x((function(e){return N(N({},e),{},{replies:[].concat((0,i.Z)(e.replies||[]),[o.reply])})})),L(""),T(""),Z(!0),setTimeout((function(){return Z(!1)}),4e3),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(4),q("Errore nell'invio. Riprova.");case 23:return e.prev=23,H(!1),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[4,20,23,26]])}))),[w,P,b.postId]),Q="".concat(S.N.sitBase,"/consulenza-legale-domande/").concat(o,"/").concat(t.slug),J="".concat(t.title," | AvvocatoFlash"),G=t.metaDescription||t.body.slice(0,152)+(t.body.length>152?"\u2026":""),X=JSON.stringify({"@context":"https://schema.org","@type":"QAPage",name:t.title,mainEntity:N({"@type":"Question",name:t.title,text:t.body,answerCount:t.aiAnswer?1:0,dateCreated:t.createdAt,author:{"@type":"Person",name:t.authorUsername}},t.aiAnswer?{acceptedAnswer:{"@type":"Answer",text:t.aiAnswer.content.slice(0,500),dateCreated:t.aiAnswer.publishedAt,author:{"@type":"Organization",name:"AvvocatoFlash"},upvoteCount:1}}:{})}),V=JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:S.N.sitBase},{"@type":"ListItem",position:2,name:"Consulenza Legale Domande",item:"".concat(S.N.sitBase,"/consulenza-legale-domande")},{"@type":"ListItem",position:3,name:n,item:"".concat(S.N.sitBase,"/consulenza-legale-domande/").concat(o)},{"@type":"ListItem",position:4,name:t.title,item:Q}]}),Y=b.replies||[];return(0,m.jsxs)(f.Z,{openedWhatsappModal:c,setOpenedWhatsappModal:u,title:J,description:G,canonical:Q,noIndexFollow:"answered"!==b.status||!!b.autoFlagged,ogType:"article",articlePublished:b.createdAt,articleModified:b.answeredAt||b.createdAt,hideMainFooter:!0,hidePreFooter:!0,children:[(0,m.jsxs)(d(),{children:[(0,m.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:X}}),(0,m.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:V}})]}),(0,m.jsx)("div",{style:{maxWidth:1140,margin:"0 auto",padding:"40px 20px"},children:(0,m.jsxs)("div",{style:{display:"flex",gap:40,alignItems:"flex-start"},children:[(0,m.jsxs)("div",{style:{flex:1,minWidth:0,maxWidth:780},children:[(0,m.jsxs)("nav",{style:{fontSize:13,color:"#9ca3af",marginBottom:20},children:[(0,m.jsx)(p(),{href:"/",style:{color:"#6b7280"},children:"Home"})," \xb7 ",(0,m.jsx)(p(),{href:"/consulenza-legale-domande",style:{color:"#6b7280"},children:"Domande Legali"})," \xb7 ",(0,m.jsx)(p(),{href:"/consulenza-legale-domande/".concat(o),style:{color:"#6b7280"},children:n})]}),(0,m.jsx)(p(),{href:"/consulenza-legale-domande/".concat(o),style:{textDecoration:"none"},children:(0,m.jsx)("span",{style:{background:"#eff6ff",color:"#3b82f6",fontSize:12,fontWeight:600,padding:"3px 10px",borderRadius:99,display:"inline-block",marginBottom:14,cursor:"pointer"},children:n})}),(0,m.jsx)("h1",{style:{fontSize:22,fontWeight:700,color:"#111827",lineHeight:1.45,margin:"0 0 8px"},children:b.title}),(0,m.jsxs)("p",{style:{fontSize:12,color:"#9ca3af",margin:"0 0 20px"},children:[b.authorUsername," \xb7 ",b.viewCount," ","visualizzazioni"]}),(0,m.jsx)("div",{style:{background:"#f9fafb",border:"1px solid #e5e7eb",borderRadius:12,padding:"16px 20px",marginBottom:28},children:(0,m.jsx)("p",{style:{margin:0,color:"#374151",fontSize:15,lineHeight:1.75,wordBreak:"break-word",overflowWrap:"break-word"},children:b.body})}),"answered"===b.status&&b.aiAnswer&&(0,m.jsx)(y,{variant:"hook",category:b.category,categoryLabel:n,subType:b.subType,cityLabel:b.cityLabel,onClick:function(){return(0,C.f)(B)}}),"answered"===b.status&&b.aiAnswer?(0,m.jsxs)("div",{style:{marginBottom:28},children:[(0,m.jsx)("div",{style:{border:"1px solid #e5e7eb",borderRadius:12,padding:"20px 24px",background:"white"},children:(0,m.jsx)(h,{content:b.aiAnswer.content,onCtaClick:function(){return(0,C.f)(E)}})}),(0,m.jsx)(z,{category:b.category,subType:b.subType})]}):(0,m.jsxs)("div",{style:{textAlign:"center",padding:"32px 20px",background:"#f9fafb",borderRadius:12,marginBottom:24},children:[(0,m.jsx)("div",{style:{fontSize:28,marginBottom:8},children:"\u23f3"}),(0,m.jsx)("p",{style:{fontWeight:600,color:"#374151",margin:"0 0 4px"},children:"Risposta in arrivo..."}),(0,m.jsx)("p",{style:{color:"#9ca3af",fontSize:13,margin:0},children:"Il nostro Avvocato AI sta elaborando la risposta. Di solito impiega meno di 60 secondi."})]}),Y.length>0&&(0,m.jsxs)("div",{style:{marginBottom:28},children:[(0,m.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:20},children:[(0,m.jsx)("div",{style:{flex:1,height:1,background:"#e5e7eb"}}),(0,m.jsx)("span",{style:{fontSize:12,fontWeight:700,color:"#6b7280",letterSpacing:"0.05em"},children:"DOMANDE DI FOLLOW-UP"}),(0,m.jsx)("div",{style:{flex:1,height:1,background:"#e5e7eb"}})]}),Y.map((function(e){return(0,m.jsxs)("div",{style:{marginBottom:28},children:[(0,m.jsxs)("div",{style:{background:"#eff6ff",border:"1px solid #bfdbfe",borderRadius:12,padding:"14px 18px",marginBottom:12},children:[(0,m.jsxs)("p",{style:{fontSize:12,fontWeight:700,color:"#1d4ed8",margin:"0 0 6px"},children:["\ud83d\udcac ",e.authorUsername]}),(0,m.jsx)("p",{style:{margin:0,color:"#1e3a5f",fontSize:15,lineHeight:1.75,fontWeight:500,wordBreak:"break-word",overflowWrap:"break-word"},children:e.body})]}),"answered"===e.status&&e.aiAnswer?(0,m.jsxs)("div",{style:{marginLeft:16},children:[(0,m.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:10},children:[(0,m.jsx)("span",{style:{background:"#2563eb",color:"white",borderRadius:8,padding:"4px 12px",fontSize:12,fontWeight:700},children:"\u2696\ufe0f Risposta dell'Avvocato AI"}),(0,m.jsx)("span",{style:{fontSize:11,color:"#6b7280",fontWeight:500},children:"AvvocatoFlash"})]}
1),(0,m.jsx)("div",{style:{border:"2px solid #bfdbfe",borderRadius:12,padding:"18px 22px",background:"white"},children:(0,m.jsx)(h,{content:e.aiAnswer.content,onCtaClick:function(){return(0,C.f)(E)}})})]}):(0,m.jsx)("div",{style:{marginLeft:16,padding:"16px 20px",background:"#f9fafb",border:"1px solid #e5e7eb",borderRadius:12},children:(0,m.jsx)("p",{style:{margin:0,color:"#374151",fontSize:13,fontWeight:500},children:"\u23f3 L'Avvocato AI sta preparando la risposta..."})})]},e.replyId)}))]}),(0,m.jsxs)("div",{style:{marginBottom:32,background:"white",border:"2px solid #e5e7eb",borderRadius:14,padding:"20px 22px"},children:[(0,m.jsx)("p",{style:{fontSize:15,fontWeight:700,color:"#111827",margin:"0 0 14px"},children:"Hai un'altra domanda?"}),(0,m.jsx)("textarea",{value:w,onChange:function(e){return L(e.target.value)},placeholder:"Scrivi la tua domanda di follow-up...",rows:3,style:{width:"100%",border:"1px solid #d1d5db",borderRadius:8,padding:"10px 12px",fontSize:14,resize:"vertical",outline:"none",boxSizing:"border-box",fontFamily:"inherit",marginBottom:10,color:"#111827"}}),(0,m.jsx)("input",{type:"email",value:P,onChange:function(e){return T(e.target.value)},placeholder:"La tua email (per ricevere la risposta)",style:{width:"100%",border:"1px solid #d1d5db",borderRadius:8,padding:"9px 12px",fontSize:14,outline:"none",boxSizing:"border-box",fontFamily:"inherit",marginBottom:12,color:"#111827"}}),$&&(0,m.jsx)("p",{style:{color:"#dc2626",fontSize:13,fontWeight:500,margin:"0 0 10px"},children:$}),U&&(0,m.jsx)("p",{style:{color:"#15803d",fontSize:13,fontWeight:600,margin:"0 0 10px"},children:"\u2705 Domanda inviata! Riceverai la risposta a breve."}),(0,m.jsx)("button",{onClick:K,disabled:_||w.trim().length<10,style:{background:"#2563eb",color:"white",border:"none",borderRadius:8,padding:"10px 22px",fontSize:14,fontWeight:700,cursor:_||w.trim().length<10?"not-allowed":"pointer",opacity:_||w.trim().length<10?.55:1},children:_?"Invio...":"Ottieni risposta AI \u2192"})]}),(0,m.jsx)(y,{variant:"cta",category:b.category,categoryLabel:n,subType:b.subType,cityLabel:b.cityLabel,onClick:function(){return(0,C.f)(B)}}),b.approfondisci&&b.approfondisci.length>0&&(0,m.jsxs)("div",{style:{margin:"0 0 20px",padding:"10px 14px",borderLeft:"2px solid #303f9f",backgroundColor:"#f5f6ff",borderRadius:"0 6px 6px 0"},children:[(0,m.jsx)("p",{style:{margin:"0 0 6px",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.04em",color:"#6b7280"},children:"Approfondisci"}),(0,m.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:b.approfondisci.map((function(e){return(0,m.jsx)("li",{style:{marginBottom:3},children:(0,m.jsx)(p(),{href:e.url,style:{color:"#303f9f",fontSize:13,fontWeight:600,textDecoration:"none"},children:"".concat(e.title," \u2192")})},e.url)}))})]})]}),(0,m.jsx)("div",{className:"forum-sidebar",style:{width:300,flexShrink:0,position:"sticky",top:90},children:(0,m.jsx)(k.default,{categoryPermalink:o,source:D})})]})}),(0,m.jsx)("style",{children:"\n .forum-answer-body .forum-h2 { font-size: 1.05rem; font-weight: 700; margin: 1.2rem 0 0.6rem; color: #1f2937; }\n .forum-answer-body .forum-h3 { font-size: 1rem; font-weight: 600; margin: 1rem 0 0.5rem; color: #374151; }\n .forum-answer-body .forum-p { margin: 0.8rem 0; line-height: 1.75; color: #374151; font-size: 15px; }\n .forum-answer-body .forum-ul { margin: 0.6rem 0 0.6rem 1.4rem; }\n .forum-answer-body .forum-ul li { margin-bottom: 0.5rem; line-height: 1.65; color: #374151; font-size: 15px; }\n .forum-answer-body .forum-link { color: #2563eb; text-decoration: underline; }\n .forum-answer-body .forum-hr { border: none; border-top: 1px solid #e5e7eb; margin: 1.2rem 0; }\n .forum-answer-body .forum-code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 0.85em; }\n .forum-answer-body .forum-cta-btn { display: inline-block; background: #303f9f; color: #fff; padding: 11px 22px; border-radius: 8px; border: none; font-weight: 600; font-size: 15px; margin-top: 1.2rem; cursor: pointer; font-family: inherit; }\n .forum-answer-body .forum-cta-btn:hover { background: #283593; }\n @media (max-width: 900px) { .forum-sidebar { display: none !important; } }\n "})]})}},46803:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consulenza-legale-domande/[categoria]/[slug]",function(){return o(73991)}])},41664:function(e,t,o){e.exports=o(7942)}},function(e){e.O(0,[9967,5463,7950,9774,2888,179],(function(){return t=46803,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.