Cazul tăuScript + SkillArena
Mesaj gata de trimis — sau antrenament pe scenarii
Dacă vrei să negociezi prețul și nu știi ce să scrii. Primești trei mesaje gata de trimis (deschidere, echilibrat, rezervă) și treptele de ofertă. Nota ta rămâne în PDF, separat, nu în mesaj. Poți exersa pe scenarii. Tu trimiți. 14 RON.
Trei mesaje pe email — deschidere, echilibrat, rezervă. Nota ta nu intră în textul de trimis.
Răspuns pe mesaj primit — lipești ce ți-a scris; vezi 3 variante (ferm / diplomatic / presiune). Tu trimiți.
Antrenament — scenarii scurte (presiune, avans, clauze) cu feedback.
Dacă ai verificat CUI-ul — pui același CUI; mesajul ține cont de semnalele de pe firmă.
1 credit = 1 mesaj sau 1 antrenament — același email ca la plată. Nu e evaluare oficială de preț.
1 credit · Script sau Lab
PDF pe email sau sesiune SkillArena. Guardian pe aceeași pagină.
Același 14 RON = PDF Script sau o sesiune SkillArena. Scenariul tipic: meșter cere avans — exersezi mesajul înainte să trimiți.
Guardian — răspunde ↓1. Generează scriptul PDF
2. Guardian — răspunde mesajului
Lipești mesajul primit. Primești 3 variante. Tu trimiți — noi nu trimitem. Dacă ai CUI/email de la Verificare CUI, ținem cont de semnalele pe firmă.
3. SkillArena — laborator
Același email / credit. 10 scenarii, feedback, badge intern (nu diplomă).
AleatorMK-ID '+esc(mll.mk_id)+(mll.schema?' · '+esc(mll.schema):'')+'
'; if(check){ html+='MK-CHECK '+(check.badge_short?esc(check.badge_short):esc(check.cert_id||'—')); if(integ.anaf||integ.just) html+=' · date fiscale '+esc(integ.anaf||'—')+' / Just '+esc(integ.just||'—'); else if(integ.status) html+=' · integritate '+esc(integ.status); if(check.hash||check.content_hash) html+=' · hash '+esc(String(check.hash||check.content_hash||'').slice(0,16))+'…'; html+='
'; if(cot.requested_by||cot.purpose) html+='Cerut de '+esc(cot.requested_by||'—')+(cot.purpose?' · scop '+esc(cot.purpose):'')+'
'; if(check.verify_url) html+=''; } html+='Watch '+(watch.is_watched?'activ':'neactiv'); if(watch.watch_window_days||watch.window_days) html+=' · fereastra '+(watch.watch_window_days||watch.window_days)+' zile'; if(watch.critical_events!=null) html+=' · critice '+(watch.critical_events||0)+' / majore '+(watch.major_events||0)+' / minore '+(watch.minor_events||0); html+='
'; if(tones.default||tones.recommended) html+='Ton recomandat '+esc(tones.default||tones.recommended)+'
'; if(facts.length){ html+='Riscuri factuale
- '; facts.forEach(function(f){ const t=f.fact||f.text||''; html+='
- '+esc(f.severity||'info')+': '+esc(t)+' ('+esc(f.source||'')+') '; }); html+='
Gaps'+(gaps.count!=null?' ('+gaps.count+')':'')+'
- '; if(flat.length){ flat.forEach(function(g){ const txt=typeof g==='string'?g:(g.gap||g.code||''); const zone=g&&g.zone?('['+g.zone+'] '):''; html+='
- '+esc(zone+txt)+' '; }); }else{ const v=gaps.verification||{}, st=gaps.stack||{}; if(v.missing_anaf) html+='
- missing_anaf '; if(v.missing_just) html+='
- missing_just '; if(st.missing_history) html+='
- missing_history '; if((gaps.dosar||{}).missing_dosar) html+='
- missing_dosar '; if((gaps.watch||{}).missing_watch) html+='
- missing_watch '; } html+='
Timeline(slice · '+(watch.watch_window_days||watch.window_days||30)+' zile)
- '; tl.forEach(function(t){ html+='
- '+esc(t.date||'—')+' · '+esc(t.type||'')+' · '+esc(t.label||'')+' '; }); html+='
History'+(mll&&mll.history_n!=null?' ('+esc(mll.history_n)+')':'')+'
- '; hist.forEach(function(h){ html+='
- '+esc(h.date||'—')+' · '+esc(h.type||'')+' · '+esc(h.id||'')+(h.tone?' · '+esc(h.tone):'')+(h.summary?' — '+esc(h.summary):'')+' '; }); html+='
Istoric legat: '+esc(mll.history_n)+' evenimente
'; } if(scen.length){ html+='Scenarii din verificare
- '; scen.forEach(function(s){ html+='
- '+esc(s.title||s.id||'')+' ('+esc(s.source||'')+(s.tone?' · '+esc(s.tone):'')+') '; }); html+='
'+esc(next.reason)+'
'; html+=''+esc(next.label)+''; if(next.secondary&&next.secondary.href){ html+=''+esc(next.secondary.label||'Alternativa')+''; } html+='Brain — draft preferat
'; brainHtml+=''; if(tones.ferm) brainHtml+='Ferm: '+esc(tones.ferm)+'
'; if(tones.calm) brainHtml+='Calm: '+esc(tones.calm)+'
'; if(tones.presiune_inversa) brainHtml+='Presiune inversă: '+esc(tones.presiune_inversa)+'
'; if(brain.note) brainHtml+=''+esc(brain.note)+'
'; } box.hidden=false; box.innerHTML='Script tip '+esc(data.tip||body.tip)+' · pret '+(data.pret_cerut||body.pret_cerut)+'
'+brainHtml+renderMll(data.mll, data.mk_cert, {email:email,cui:cui}); }catch(e){setStatus(false,'Nu s-a putut contacta serverul.');} btn.disabled=false; }); fetch(API+'/api/v4/skillarena/scenarios',{method:'POST',headers:{'Content-Type':'application/json'},body:'{}'}) .then(function(r){return r.json();}).then(function(d){ const sel=document.getElementById('sa-scenario'); (d.scenarios||[]).forEach(function(s){ const o=document.createElement('option'); o.value=s.id; o.textContent=s.title; sel.appendChild(o); }); }).catch(function(){}); document.getElementById('form-sa').addEventListener('submit',async function(e){ e.preventDefault(); const out=document.getElementById('sa-out'); const email=document.getElementById('email').value.trim(); if(!email){out.className='status err';out.textContent='Completează emailul de mai sus.';return;} if(!document.getElementById('sa-consent').checked){out.className='status err';out.textContent='Bifează consimțământul.';return;} out.className='status'; out.textContent='Pornesc…'; try{ const r=await fetch(API+'/api/v4/skillarena/start',{ method:'POST',headers:{'Content-Type':'application/json'}, body:JSON.stringify({email:email,cui:document.getElementById('cui').value.trim(),scenario_id:document.getElementById('sa-scenario').value,consent:'1'}) }); const d=await r.json(); if(!r.ok){out.className='status err';out.textContent=d.error||'Eroare';return;} sessionId=d.session_id; const box=document.getElementById('sa-setup'); box.style.display='block'; box.innerHTML=''+(d.scenario&&d.scenario.title||'')+''+(d.scenario&&d.scenario.setup||''); document.getElementById('form-turn').style.display='block'; out.className='status ok'; out.textContent='Sesiune activă · 1 credit consumat.'; }catch(err){out.className='status err';out.textContent='Rețea.';} }); document.getElementById('form-turn').addEventListener('submit',async function(e){ e.preventDefault(); const out=document.getElementById('sa-out'); out.textContent='Evaluez…'; try{ const r=await fetch(API+'/api/v4/skillarena/turn',{ method:'POST',headers:{'Content-Type':'application/json'}, body:JSON.stringify({session_id:sessionId,text:document.getElementById('reply').value}) }); const d=await r.json(); if(!r.ok){out.className='status err';out.textContent=d.error||'Eroare';return;} const sc=d.turn&&d.turn.scores||{}; const m=d.turn&&d.turn.modele||{}; const res=document.getElementById('sa-result'); res.style.display='block'; res.innerHTML='
Overall '+(sc.overall||0)+' · Badge: '+((d.badge&&d.badge.badges)||[]).join(', ')+' ('+(d.badge&&d.badge.sessions_done||0)+' sesiuni)
'+ 'Ferm: '+(m.ferm||'')+'
Diplomatic: '+(m.diplomatic||'')+'
Presiune inversă: '+(m.presiune_inversa||'')+'
'; out.className='status ok'; out.textContent='Sesiune închisă. Tu trimiți mesajul.'; }catch(err){out.className='status err';out.textContent='Rețea.';} }); document.getElementById('form-guardian').addEventListener('submit',async function(e){ e.preventDefault(); const st=document.getElementById('g-status'); const box=document.getElementById('g-out'); const btn=document.getElementById('g-btn'); if(!document.getElementById('g-consent').checked){st.className='status err';st.textContent='Bifează consimțământul.';return;} const text=document.getElementById('g-msg').value.trim(); if(!text){st.className='status err';st.textContent='Lipește mesajul.';return;} btn.disabled=true; st.className='status'; st.textContent='Analizez…'; box.hidden=true; try{ const email=document.getElementById('g-email').value.trim()||document.getElementById('email').value.trim(); const cui=document.getElementById('g-cui').value.trim()||document.getElementById('cui').value.trim(); const r=await fetch(API+'/api/v4/guardian/assist',{ method:'POST',headers:{'Content-Type':'application/json'}, body:JSON.stringify({email:email,cui:cui,text:text,consent:'1'}) }); const d=await r.json().catch(function(){return {};}); if(!r.ok){st.className='status err';st.textContent=d.error||('HTTP '+r.status);btn.disabled=false;return;} const vars=d.variante||{}; function toneBlock(label, txt, id){ if(!txt) return ''; return ''+label+':
'+ ''; } let html='Presiune '+((d.presiune&&d.presiune.score)!=null?d.presiune.score:'—')+' ('+((d.presiune&&d.presiune.nivel)||'—')+') · optim: '+(d.raspuns_optim||'—')+'
'; if(d.draft) html+=toneBlock('Draft', d.draft, 'g-draft'); html+=toneBlock('Ferm', vars.ferm, 'g-ferm'); html+=toneBlock('Diplomatic', vars.diplomatic, 'g-dip'); html+=toneBlock('Presiune inversă', vars.presiune_inversa, 'g-pres'); if((d.riscuri||[]).length) html+='Riscuri detectate
- '+(d.riscuri||[]).map(function(x){return '
- '+esc(x)+' ';}).join('')+'
'+esc(d.nota)+'
'; box.hidden=false; box.innerHTML=html; st.className='status ok'; st.textContent='Gata. Copiază varianta — tu trimiți.'; }catch(err){st.className='status err';st.textContent='Rețea.';} btn.disabled=false; }); const p=new URLSearchParams(location.search); if(p.get('email')){ document.getElementById('email').value=p.get('email'); document.getElementById('g-email').value=p.get('email'); } if(p.get('cui')){ document.getElementById('cui').value=p.get('cui'); document.getElementById('g-cui').value=p.get('cui'); } if(p.get('session_id')){ fetch(API+'/verifica-sesiune-plata?session_id='+encodeURIComponent(p.get('session_id'))).then(function(r){return r.json();}).then(function(d){ if(d.email){ document.getElementById('email').value=d.email; document.getElementById('g-email').value=d.email; } setStatus(!!d.ok, d.ok?'Plată confirmată. Alege PDF, Guardian sau laborator.':(d.error||'Sesiune neconfirmată.')); }).catch(function(){}); } })();