PageSourceSearch

https://textiaa.com/chunk-J22KEAPR.js

js textiaa.com collected 2026-10-02 00:09:54 UTC 23,950 bytes, 1 lines download raw bytes

1import{a as Ee,b as A,c as he,e as Le}from"./chunk-K346LHJI.js";import{a as fe,b as Ie,c as be,d as Be}from"./chunk-NNRFSPZV.js";import{a as ve,b as Re}from"./chunk-AKQ4XKB2.js";import{a as ce,b as Oe}from"./chunk-274OYHOQ.js";import{a as pe,c as Te}from"./chunk-DFPAUOHB.js";import{a as ge,b as Se}from"./chunk-YNPT24HZ.js";import{Db as le,Eb as de,Fb as se}from"./chunk-2JPNXA3J.js";import{A as Ce,C as xe,c as _e,k as me,p as ue}from"./chunk-PXI4RNCT.js";import"./chunk-KXNDLGYE.js";import{f as Z,h as $,i as ee,m as te,n as ie}from"./chunk-MJC7NEL7.js";import"./chunk-G7CCAZ6K.js";import{b as ne,c as re,e as oe,f as ae}from"./chunk-P2NB64WX.js";import{v as I,z as Pe}from"./chunk-H3JKYH2Z.js";import{D,Da as ye,Dc as v,Ec as f,Fc as b,Jc as K,Ob as S,Pb as L,Pc as g,Q as Me,Qb as H,Qc as _,Sb as V,Tb as k,Ub as u,Vb as o,Wb as n,Xb as x,Za as F,Zc as Q,_ as O,cc as z,d as N,ea as s,fa as p,gc as m,hb as i,ic as d,ja as j,lb as E,mb as h,n as J,qa as M,ta as q,tc as W,uc as Y,ud as X,vb as G,xc as c,yc as C,zc as y}from"./chunk-6ZKZEUGL.js";import{a as B,e as we,k as U}from"./chunk-J6LPXIX4.js";function We(l,w){l&1&&(x(0,"lucide-icon",13),c(1),g(2,"translate")),l&2&&(u("size",13),i(),y(" ",_(2,2,"PROJECTS_BUILDER.EDITOR.SAVING")," "))}function Ae(l,w){l&1&&(x(0,"lucide-icon",14),c(1),g(2,"translate")),l&2&&(u("size",13),i(),y(" ",_(2,2,"PROJECTS_BUILDER.EDITOR.SAVED")," "))}function Ue(l,w){if(l&1&&(o(0,"div",10),c(1),n()),l&2){let t=d();i(),C(t.error())}}function Ne(l,w){l&1&&(o(0,"div",11),x(1,"lucide-icon",13),n()),l&2&&(i(),u("size",24))}function Je(l,w){if(l&1){let t=z();o(0,"button",44),m("click",function(){let e=s(t).$implicit,r=d(2);return p(r.switchTemplate(e.id))}),x(1,"span",45),c(2),n()}if(l&2){let t=w.$implicit,a=d(2);W("--tpl-accent",t.accent),Y("is-active",a.templateId()===t.id),i(2),y(" ",t.name," ")}}function je(l,w){l&1&&x(0,"lucide-icon",29),l&2&&u("size",13)}function qe(l,w){l&1&&(o(0,"span",36),x(1,"lucide-icon",13),c(2),g(3,"translate"),n()),l&2&&(i(),u("size",12),i(),y(" ",_(3,2,"PROJECTS_BUILDER.EDITOR.PREVIEW_UPDATING")," "))}function Fe(l,w){l&1&&(o(0,"div",43),x(1,"lucide-icon",13),n()),l&2&&(i(),u("size",20))}function Ge(l,w){if(l&1&&x(0,"img",46),l&2){let t=w.$implicit;u("src",t,F)}}function He(l,w){l&1&&(o(0,"div",47),x(1,"lucide-icon",13),n()),l&2&&(i(),u("size",26))}function Ye(l,w){if(l&1&&(V(0,Ge,1,1,"img",46,H),S(2,He,2,1,"div",47)),l&2){let t=d(2);k(t.previewPages()),i(2),L(t.previewLoading()?2:-1)}}function Ke(l,w){if(l&1){let t=z();o(0,"div",12)(1,"div",15)(2,"div",16)(3,"h3",17),c(4),g(5,"translate"),n(),o(6,"div",18),V(7,Je,3,5,"button",19,ze),n()(),o(9,"div",16)(10,"h3",17),c(11),g(12,"translate"),n(),o(13,"div",20)(14,"div",21)(15,"label"),c(16),g(17,"translate"),n(),o(18,"input",22),b("ngModelChange",function(e){s(t);let r=d();return f(r.data.senderName,e)||(r.data.senderName=e),p(e)}),m("ngModelChange",function(){s(t);let e=d();return p(e.queueSave())}),n(),E(),n(),o(19,"div",21)(20,"label"),c(21),g(22,"translate"),n(),o(23,"input",22),b("ngModelChange",function(e){s(t);let r=d();return f(r.data.senderTitle,e)||(r.data.senderTitle=e),p(e)}),m("ngModelChange",function(){s(t);let e=d();return p(e.queueSave())}),n(),E(),n(),o(24,"div",21)(25,"label"),c(26),g(27,"translate"),n(),o(28,"input",22),b("ngModelChange",function(e){s(t);let r=d();return f(r.data.senderEmail,e)||(r.data.senderEmail=e),p(e)}),m("ngModelChange",function(){s(t);let e=d();return p(e.queueSave())}),n(),E(),n(),o(29,"div",21)(30,"label"),c(31),g(32,"translate"),n(),o(33,"input",22),b("ngModelChange",function(e){s(t);let r=d();return f(r.data.senderPhone,e)||(r.data.senderPhone=e),p(e)}),m("ngModelChange",function(){s(t);let e=d();return p(e.queueSave())}),n(),E(),n()(),o(34,"div",21)(35,"label"),c(36),g(37,"translate"),n(),o(38,"input",22),b("ngModelChange",function(e){s(t);let r=d();return f(r.data.senderAddress,e)||(r.data.senderAddress=e),p(e)}),m("ngModelChange",function(){s(t);let e=d();return p(e.queueSave())}),n(),E(),n()(),o(39,"div",16)(40,"h3",17),c(41),g(42,"translate"),n(),o(43,"div",21)(44,"label"),c(45),g(46,"translate"),n(),o(47,"input",22),b("ngModelChange",function(e){s(t);let r=d();return f(r.data.recipientName,e)||(r.data.recipientName=e),p(e)}),m("ngModelChange",function(){s(t);let e=d();return p(e.queueSave())}),n(),E(),n(),o(48,"div",21)(49,"label"),c(50),g(51,"translate"),n(),o(52,"input",22),b("ngModelChange",function(e){s(t);let r=d();return f(r.data.recipientCompany,e)||(r.data.recipientCompany=e),p(e)}),m("ngModelChange",function(){s(t);let e=d();return p(e.queueSave())}),n(),E(),n(),o(53,"div",21)(54,"label"),c(55),g(56,"translate"),n(),o(57,"input",22),b("ngModelChange",function(e){s(t);let r=d();return f(r.data.recipientAddress,e)||(r.data.recipientAddress=e),p(e)}),m("ngModelChange",function(){s(t);let e=d();return p(e.queueSave())}),n(),E(),n(),o(58,"div",20)(59,"div",21)(60,"label"),c(61),g(62,"translate"),n(),o(63,"input",22),b("ngModelChange",function(e){s(t);let r=d();return f(r.data.place,e)||(r.data.place=e),p(e)}),m("ngModelChange",function(){s(t);let e=d();return p(e.queueSave())}),n(),E(),n(),o(64,"div",21)(65,"label"),c(66),g(67,"translate"),n(),o(68,"input",22),b("ngModelChange",function(e){s(t);let r=d();return f(r.data.date,e)||(r.data.date=e),p(e)}),m("ngModelChange",function(){s(t);let e=d();return p(e.queueSave())}),n(),E(),n()()(),o(69,"div",16)(70,"h3",17),c(71),g(72,"translate"),n(),o(73,"input",22),b("ngModelChange",function(e){s(t);let r=d();return f(r.data.subject,e)||(r.data.subject=e),p(e)}),m("ngModelChange",function(){s(t);let e=d();return p(e.queueSave())}),n(),E(),o(74,"div",23)(75,"label"),c(76),g(77,"translate"),n(),o(78,"input",22),b("ngModelChange",function(e){s(t);let r=d();return f(r.data.salutation,e)||(r.data.salutation=e),p(e)}),m("ngModelChange",function(){s(t);let e=d();return p(e.queueSave())}),n(),E(),n()(),o(79,"div",16)(80,"div",24)(81,"h3",17),c(82),g(83,"translate"),n(),o(84,"div",25)(85,"button",26),m("click",function(){s(t);let e=d();return p(e.runAi("rephrase"))}),x(86,"lucide-icon",27),c(87),g(88,"translate"),n(),o(89,"button",26),m("click",function(){s(t);let e=d();return p(e.runAi("grammar"))}),x(90,"lucide-icon",28),c(91),g(92,"translate"),n(),S(93,je,1,1,"lucide-icon",29),n()(),o(94,"textarea",30),b("ngModelChange",function(e){s(t);let r=d();return f(r.data.body,e)||(r.data.body=e),p(e)}),m("ngModelChange",function(){s(t);let e=d();return p(e.queueSave())}),n(),E(),o(95,"p",31),c(96),g(97,"translate"),n()(),o(98,"div",16)(99,"h3",17),c(100),g(101,"translate"),n(),o(102,"textarea",32),b("ngModelChange",function(e){s(t);let r=d();return f(r.data.closing,e)||(r.data.closing=e),p(e)}),m("ngModelChange",function(){s(t);let e=d();return p(e.queueSave())}),n(),E(),n()(),o(103,"div",33)(104,"div",34)(105,"span",35),c(106),g(107,"translate"),S(108,qe,4,4,"span",36),n(),o(109,"div",37)(110,"button",38),m("click",function(){s(t);let e=d();return p(e.zoomOut())}),x(111,"lucide-icon",39),n(),o(112,"span"),c(113),n(),o(114,"button",38),m("click",function(){s(t);let e=d();return p(e.zoomIn())}),x(115,"lucide-icon",40),n()()(),o(116,"div",41)(117,"div",42),S(118,Fe,2,1,"div",43)(119,Ye,3,1),n()()()()}if(l&2){let t=d();i(4),C(_(5,49,"PROJECTS_BUILDER.EDITOR.TEMPLATE")),i(3),k(t.templateList),i(4),C(_(12,51,"PROJECTS_BUILDER.LETTER_EDITOR.SENDER")),i(5),C(_(17,53,"PROJECTS_BUILDER.LETTER_EDITOR.SENDER_NAME")),i(2),v("ngModel",t.data.senderName),h(),i(3),C(_(22,55,"PROJECTS_BUILDER.LETTER_EDITOR.SENDER_TITLE")),i(2),v("ngModel",t.data.senderTitle),h(),i(3),C(_(27,57,"PROJECTS_BUILDER.FORM.EMAIL")),i(2),v("ngModel",t.data.senderEmail),h(),i(3),C(_(32,59,"PROJECTS_BUILDER.FORM.PHONE")),i(2),v("ngModel",t.data.senderPhone),h(),i(3),C(_(37,61,"PROJECTS_BUILDER.LETTER_EDITOR.SENDER_ADDRESS")),i(2),v("ngModel",t.data.senderAddress),h(),i(3),y(" ",_(42,63,"PROJECTS_BUILDER.LETTER_EDITOR.RECIPIENT")," "),i(4),C(_(46,65,"PROJECTS_BUILDER.LETTER_EDITOR.RECIPIENT_NAME")),i(2),v("ngModel",t.data.recipientName),h(),i(3),C(_(51,67,"PROJECTS_BUILDER.LETTER_EDITOR.RECIPIENT_COMPANY")),i(2),v("ngModel",t.data.recipientCompany),h(),i(3),C(_(56,69,"PROJECTS_BUILDER.LETTER_EDITOR.RECIPIENT_ADDRESS")),i(2),v("ngModel",t.data.recipientAddress),h(),i(4),C(_(62,71,"PROJECTS_BUILDER.LETTER_EDITOR.PLACE")),i(2),v("ngModel",t.data.place),h(),i(3),C(_(67,73,"PROJECTS_BUILDER.LETTER_EDITOR.DATE")),i(2),v("ngModel",t.data.date),h(),i(3),C(_(72,75,"PROJECTS_BUILDER.LETTER_EDITOR.SUBJECT")),i(2),v("ngModel",t.data.subject),h(),i(3),C(_(77,77,"PROJECTS_BUILDER.LETTER_EDITOR.SALUTATION")),i(2),v("ngModel",t.data.salutation),h(),i(4),C(_(83,79,"PROJECTS_BUILDER.LETTER_EDITOR.BODY")),i(3),u("disabled",!t.data.body||t.aiBusy()!==null),i(),u("size",12),i(),y(" ",_(88,81,"PROJECTS_BUILDER.AI_SIDEBAR.REPHRASE")," "),i(2),u("disabled",!t.data.body||t.aiBusy()!==null),i(),u("size",12),i(),y(" ",_(92,83,"PROJECTS_BUILDER.AI_SIDEBAR.GRAMMAR")," "),i(2),L(t.aiBusy()?93:-1),i(),v("ngModel",t.data.body),h(),i(2),C(_(97,85,"PROJECTS_BUILDER.LETTER_EDITOR.BODY_HINT")),i(4),C(_(101,87,"PROJECTS_BUILDER.LETTER_EDITOR.CLOSING")),i(2),v("ngModel",t.data.closing),h(),i(4),y(" ",_(107,89,"PROJECTS_BUILDER.EDITOR.PREVIEW")," "),i(2),L(t.previewLoading()?108:-1),i(3),u("size",13),i(2),y("",(t.zoom()*100).toFixed(0),"%"),i(2),u("size",13),i(2),W("transform","scale("+t.zoom()+")")("height",t.previewStackHeight()*t.zoom()+24,"px"),i(),L(t.previewPages().length===0?118:119)}}var ke,ze,ht,Qe=we(()=>{X();Pe();xe();ie();ae();se();Me();ye();Re();Ie();Oe();Se();Te();Le();Be();X();ie();xe();se();ae();ke=()=>["projects"],ze=(l,w)=>w.id;ht=(()=>{class l{projectService=O(ve);aiService=O(fe);route=O(Z);router=O($);translate=O(ne);platformId=O(q);doc=O(j);docId=0;title="";data={senderName:"",senderTitle:"",senderEmail:"",senderPhone:"",senderAddress:"",recipientName:"",recipientCompany:"",recipientAddress:"",place:"",date:"",subject:"",salutation:"",body:"",closing:""};templateList=Object.values(Ee);templateId=M("letter-classic-1");loading=M(!0);
1saving=M(!1);savedOnce=M(!1);exporting=M(!1);error=M(null);aiBusy=M(!1);zoom=M(I(this.platformId)&&window.innerWidth<640?.4:1);previewPages=M([]);previewLoading=M(!1);previewStackHeight=Q(()=>{let t=this.previewPages().length||1;return t*1123+(t-1)*18});previewGeneration=0;save$=new N;subs=[];ngOnInit(){if(this.docId=Number(this.route.snapshot.paramMap.get("id")),!this.docId){let r=this.translate.currentLang||"en";this.router.navigate(["/",r,pe("projects",r)]);return}let t=this.projectService.get(this.docId).subscribe({next:r=>{this.title=r.title,this.templateId.set(r.template_id),r.content_data&&(this.data=B(B({},this.data),r.content_data)),this.loading.set(!1),this.refreshPreview()},error:()=>{this.error.set(this.translate.instant("PROJECTS_BUILDER.ERROR.GENERIC")),this.loading.set(!1)}});this.subs.push(t);let a=this.save$.pipe(D(900)).subscribe(()=>this.persist());this.subs.push(a);let e=this.save$.pipe(D(700)).subscribe(()=>this.refreshPreview());this.subs.push(e)}ngOnDestroy(){this.save$.complete(),this.subs.forEach(t=>t.unsubscribe())}queueSave(){this.loading()||this.save$.next()}persist(){this.saving.set(!0);let t=this.projectService.update(this.docId,{content_data:this.data,title:this.title,template_id:this.templateId()}).subscribe({next:()=>{this.saving.set(!1),this.savedOnce.set(!0)},error:()=>{this.saving.set(!1),this.error.set(this.translate.instant("PROJECTS_BUILDER.ERROR.SAVE"))}});this.subs.push(t)}switchTemplate(t){this.templateId.set(t),this.refreshPreview(),this.queueSave()}letterLabels(){return he(t=>this.translate.instant(t))}refreshPreview(){return U(this,null,function*(){if(!I(this.platformId)||!this.docId)return;let t=++this.previewGeneration;this.previewLoading.set(!0);try{let a=A(this.templateId()),e=a.render(this.data,this.letterLabels()),r=yield J(this.projectService.exportBlob(this.docId,"pdf",e,a.css));if(t!==this.previewGeneration)return;let P=yield r.arrayBuffer();if(t!==this.previewGeneration)return;let T=yield be(P,this.doc);if(t!==this.previewGeneration)return;this.previewPages.set(T)}catch(a){}finally{t===this.previewGeneration&&this.previewLoading.set(!1)}})}runAi(t){if(this.aiBusy())return;let a=this.data.body;if(!a)return;this.aiBusy.set(!0),this.error.set(null);let e=this.translate.currentLang||"fr",P=(t==="rephrase"?this.aiService.rephrase(a,e):this.aiService.fixGrammar(a,e)).subscribe({next:T=>{this.aiBusy.set(!1),T&&(this.data.body=T,this.queueSave())},error:T=>{this.aiBusy.set(!1),this.error.set(T.status===402?this.translate.instant("PROJECTS_BUILDER.ERROR.QUOTA"):this.translate.instant("PROJECTS_BUILDER.ERROR.AI"))}});this.subs.push(P)}zoomIn(){this.zoom.update(t=>Math.min(1.2,+(t+.1).toFixed(2)))}zoomOut(){this.zoom.update(t=>Math.max(.3,+(t-.1).toFixed(2)))}exportAs(t){if(!I(this.platformId)||this.exporting())return;this.exporting.set(!0),this.error.set(null);let a=A(this.templateId()),e=a.render(this.data,this.letterLabels()),r=this.projectService.exportBlob(this.docId,t,e,a.css).subscribe({next:P=>{this.exporting.set(!1);let T=URL.createObjectURL(P),R=this.doc.createElement("a");R.href=T,R.download=`${(this.title||"document").replace(/\s+/g,"_")}.${t}`,this.doc.body.appendChild(R),R.click(),this.doc.body.removeChild(R),URL.revokeObjectURL(T)},error:()=>{this.exporting.set(!1),this.error.set(this.translate.instant("PROJECTS_BUILDER.ERROR.EXPORT"))}});this.subs.push(r)}static \u0275fac=function(a){return new(a||l)};static \u0275cmp=G({type:l,selectors:[["app-letter-editor"]],decls:22,vars:17,consts:[[1,"le-shell"],[1,"le-topbar"],[1,"le-back",3,"routerLink"],["name","ChevronLeft",3,"size"],["type","text",1,"le-title-input",3,"ngModelChange","ngModel","placeholder"],[1,"le-save-state"],[1,"le-export-group"],[1,"le-btn","le-btn--primary",3,"click","disabled"],["name","Download",3,"size"],[1,"le-privacy-row"],[1,"le-alert"],[1,"le-loading"],[1,"le-layout"],["name","RefreshCw",1,"le-spin",3,"size"],["name","Check",3,"size"],[1,"le-form"],[1,"le-card"],[1,"le-card-h"],[1,"le-tpl-row"],[1,"le-tpl",3,"is-active","--tpl-accent"],[1,"le-grid2"],[1,"le-field"],["type","text",3,"ngModelChange","ngModel"],[1,"le-field",2,"margin-top","10px"],[1,"le-card-head"],[1,"le-ai-row"],[1,"le-ai",3,"click","disabled"],["name","Repeat",3,"size"],["name","CheckSquare",3,"size"],["name","RefreshCw",1,"le-spin","le-ai-busy",3,"size"],["rows","10",3,"ngModelChange","ngModel"],[1,"le-hint"],["rows","2",3,"ngModelChange","ngModel"],[1,"le-preview-col"],[1,"le-preview-bar"],[1,"le-preview-label"],[1,"le-preview-status"],[1,"le-zoom"],[3,"click"],["name","Minus",3,"size"],["name","Plus",3,"size"],[1,"le-preview-scroll"],[1,"le-preview-scale"],[1,"le-preview-loading"],[1,"le-tpl",3,"click"],[1,"le-tpl-swatch"],["alt","",1,"le-paper",3,"src"],[1,"le-preview-overlay"]],template:function(a,e){a&1&&(o(0,"div",0)(1,"div",1)(2,"a",2),g(3,"langLink"),x(4,"lucide-icon",3),o(5,"span"),c(6),g(7,"translate"),n()(),o(8,"input",4),g(9,"translate"),b("ngModelChange",function(P){return f(e.title,P)||(e.title=P),P}),m("ngModelChange",function(){return e.queueSave()}),n(),E(),o(10,"span",5),S(11,We,3,4)(12,Ae,3,4),n(),o(13,"div",6)(14,"button",7),m("click",function(){return e.exportAs("pdf")}
1),x(15,"lucide-icon",8),c(16," PDF "),n()()(),o(17,"div",9),x(18,"app-privacy-badge"),n(),S(19,Ue,2,1,"div",10),S(20,Ne,2,1,"div",11)(21,Ke,120,91,"div",12),n()),a&2&&(i(2),u("routerLink",_(3,10,K(16,ke))),i(2),u("size",16),i(2),C(_(7,12,"PROJECTS_BUILDER.EDITOR.BACK")),i(2),v("ngModel",e.title),u("placeholder",_(9,14,"PROJECTS_BUILDER.EDITOR.TITLE_PLACEHOLDER")),h(),i(3),L(e.saving()?11:e.savedOnce()?12:-1),i(3),u("disabled",e.exporting()),i(),u("size",14),i(4),L(e.error()?19:-1),i(),L(e.loading()?20:21))},dependencies:[oe,te,ee,Ce,_e,me,ue,de,le,ge,re,ce],styles:['@charset "UTF-8";[_nghost-%COMP%]{--ig-text: #1f2937;--ig-muted: #6b7280;--ig-card-bg: #ffffff;--ig-border: rgba(0, 0, 0, .08);--ig-page-bg: #f1f3f7;display:block}[data-theme=dark][_nghost-%COMP%], [data-theme=dark]   [_nghost-%COMP%]{--ig-text: #e5e7eb;--ig-muted: #9ca3af;--ig-card-bg: #1e2127;--ig-border: rgba(255, 255, 255, .09);--ig-page-bg: #0e1014}.le-shell[_ngcontent-%COMP%]{min-height:100vh;background:var(--ig-page-bg);padding:14px 18px 24px}.le-topbar[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:var(--ig-card-bg);border:1px solid var(--ig-border);border-radius:12px;padding:10px 14px;margin-bottom:14px}.le-back[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;color:var(--ig-muted);text-decoration:none;font-size:.85rem;flex-shrink:0}.le-back[_ngcontent-%COMP%]:hover{color:var(--primary, #3273dc)}.le-title-input[_ngcontent-%COMP%]{flex:1;min-width:120px;border:1px solid var(--ig-border);background:var(--ig-alt-bg, rgba(127, 127, 127, .08));font-size:1rem;font-weight:700;color:var(--ig-text);padding:6px 9px;border-radius:8px;outline:none;transition:border-color .15s,box-shadow .15s}.le-title-input[_ngcontent-%COMP%]:hover{border-color:var(--primary, #3273dc)}.le-title-input[_ngcontent-%COMP%]:focus{border-color:var(--primary, #3273dc);background:var(--ig-card-bg);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary, #3273dc) 18%,transparent)}.le-save-state[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;font-size:.8rem;color:var(--ig-muted);flex-shrink:0}.le-export-group[_ngcontent-%COMP%]{display:flex;gap:8px;flex-shrink:0}.le-privacy-row[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding:6px 0 0}.le-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;border-radius:8px;padding:7px 13px;font-size:.85rem;font-weight:600;cursor:pointer;border:1px solid var(--ig-border)}.le-btn--ghost[_ngcontent-%COMP%]{background:transparent;color:var(--ig-text)}.le-btn--primary[_ngcontent-%COMP%]{background:var(--primary, #3273dc);border-color:var(--primary, #3273dc);color:#fff}.le-btn[_ngcontent-%COMP%]:disabled{opacity:.55;cursor:not-allowed}@media(max-width:640px){.le-title-input[_ngcontent-%COMP%]{flex-basis:100%}.le-save-state[_ngcontent-%COMP%]{flex-basis:100%;min-width:0}.le-export-group[_ngcontent-%COMP%]{width:100%}.le-export-group[_ngcontent-%COMP%]   .le-btn[_ngcontent-%COMP%]{flex:1;justify-content:center}.le-privacy-row[_ngcontent-%COMP%]{justify-content:center}}.le-alert[_ngcontent-%COMP%]{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;border-radius:10px;padding:10px 14px;margin-bottom:14px;font-size:.85rem}.le-loading[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:50vh;color:var(--ig-muted)}.le-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(340px,1fr) minmax(420px,1.15fr);gap:16px;align-items:start}@media(max-width:1100px){.le-layout[_ngcontent-%COMP%]{grid-template-columns:1fr}}.le-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:14px;min-width:0}.le-card[_ngcontent-%COMP%]{background:var(--ig-card-bg);border:1px solid var(--ig-border);border-radius:12px;padding:16px;min-width:0}.le-card-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.le-card-h[_ngcontent-%COMP%]{font-size:.85rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--ig-muted);margin-bottom:10px}.le-card-head[_ngcontent-%COMP%]   .le-card-h[_ngcontent-%COMP%]{margin-bottom:0}.le-grid2[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:10px}.le-field[_ngcontent-%COMP%]{margin-bottom:10px}.le-field[_ngcontent-%COMP%]:last-child{margin-bottom:0}.le-field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:block;font-size:.75rem;color:var(--ig-muted);margin-bottom:3px}.le-card[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%], .le-card[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;border:1px solid var(--ig-border);border-radius:8px;padding:8px 10px;font-size:.88rem;color:var(--ig-text);background:transparent;font-family:inherit;resize:vertical}.le-card[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]:focus, .le-card[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--primary, #3273dc)}.le-hint[_ngcontent-%COMP%]{font-size:.75rem;color:var(--ig-muted);margin-top:6px}.le-ai-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.le-ai[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--ig-border);background:transparent;border-radius:6px;padding:4px 8px;font-size:.72rem;font-weight:600;color:var(--ig-text);cursor:pointer}.le-ai[_ngcontent-%COMP%]:hover:not(:disabled){border-color:var(--primary, #3273dc);color:var(--primary, #3273dc)}.le-ai[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.le-ai-busy[_ngcontent-%COMP%]{color:var(--primary, #3273dc)}.le-tpl-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}@media(max-width:640px){.le-tpl-row[_ngcontent-%COMP%]{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;padding-bottom:4px}.le-tpl[_ngcontent-%COMP%]{flex-shrink:0;scroll-snap-align:start}}.le-tpl[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--ig-border);background:transparent;border-radius:999px;padding:5px 11px 5px 7px;font-size:.8rem;font-weight:600;color:var(--ig-text);cursor:pointer}.le-tpl.is-active[_ngcontent-%COMP%]{border-color:var(--tpl-accent);color:var(--tpl-accent)}.le-tpl-swatch[_ngcontent-%COMP%]{width:12px;height:12px;border-radius:50%;background:var(--tpl-accent)}.le-preview-col[_ngcontent-%COMP%]{position:sticky;top:14px;background:var(--ig-card-bg);border:1px solid var(--ig-border);border-radius:12px;overflow:hidden}
1.le-preview-bar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:8px 13px;border-bottom:1px solid var(--ig-border);font-size:.75rem;font-weight:600;color:var(--ig-muted);text-transform:uppercase;letter-spacing:.05em}.le-preview-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.le-preview-status[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;text-transform:none;letter-spacing:0;font-weight:500;color:var(--primary, #3273dc)}.le-zoom[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;text-transform:none;letter-spacing:0}.le-zoom[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid var(--ig-border);background:transparent;border-radius:6px;color:var(--ig-muted);cursor:pointer}.le-zoom[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{color:var(--primary, #3273dc)}.le-preview-scroll[_ngcontent-%COMP%]{max-height:calc(100vh - 160px);overflow:auto;background:#6b7280;padding:12px;display:flex;justify-content:center;align-items:flex-start}[data-theme=dark][_nghost-%COMP%]   .le-preview-scroll[_ngcontent-%COMP%], [data-theme=dark]   [_nghost-%COMP%]   .le-preview-scroll[_ngcontent-%COMP%]{background:#0e1014}.le-preview-scale[_ngcontent-%COMP%]{transform-origin:top center;width:794px;flex-shrink:0;position:relative}.le-preview-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#fff9;color:var(--primary, #3273dc);z-index:2}[data-theme=dark][_nghost-%COMP%]   .le-preview-overlay[_ngcontent-%COMP%], [data-theme=dark]   [_nghost-%COMP%]   .le-preview-overlay[_ngcontent-%COMP%]{background:#00000080}.le-paper[_ngcontent-%COMP%]{display:block;width:794px;box-shadow:0 4px 24px #00000047;background:#fff}.le-preview-loading[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:794px;height:1123px;background:#fff;color:var(--ig-muted)}.le-spin[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_le-spin 1s linear infinite}@keyframes _ngcontent-%COMP%_le-spin{to{transform:rotate(360deg)}}'],changeDetection:1})}return l})()});Qe();export{ht as LetterEditorComponent};

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.