1import{B as V,C as k,c as R,e as p,h as U,k as q,l as w,m as G,o as T,q as D,t as z,u as F,v as J,w as j,x as H}from"./chunk-PXI4RNCT.js";import{a as L,b as Q}from"./chunk-KXNDLGYE.js";import{c as M,e as y,f as P}from"./chunk-P2NB64WX.js";import{G as I,M as K,i as A,s as B,z as _}from"./chunk-H3JKYH2Z.js";import{Mb as d,Ob as v,Pb as E,Pc as a,Qc as o,Ub as c,Vb as n,Wb as i,Xb as u,gc as N,hb as e,ic as x,lb as C,mb as f,ob as h,ud as $,vb as O,xc as r,yc as g,zc as l}from"./chunk-6ZKZEUGL.js";import{e as X}from"./chunk-J6LPXIX4.js";function W(m,S){m&1&&(n(0,"p",14),r(1),a(2,"translate"),i()),m&2&&(e(),l(" ",o(2,1,"CONTACT.NAME.ERROR")," "))}function Y(m,S){m&1&&(n(0,"p",18),r(1),a(2,"translate"),i()),m&2&&(e(),l(" ",o(2,1,"CONTACT.EMAIL.ERROR")," "))}function Z(m,S){m&1&&(n(0,"p",32),r(1),a(2,"translate"),i()),m&2&&(e(),l(" ",o(2,1,"CONTACT.MESSAGE.ERROR")," "))}function ee(m,S){if(m&1&&(n(0,"article",34)(1,"div",35),r(2),a(3,"translate"),i()()),m&2){let s=x();c("ngClass",s.alert.type),e(2),l(" ",o(3,2,s.alert.text)," ")}}var ce,te=X(()=>{_();k();Q();P();$();K();_();k();P();ce=(()=>{class m{http;loading=!1;alert=null;form=new G({name:new T("",[p.required,p.minLength(2)]),email:new T("",[p.required,p.email]),subject:new T("",[p.required]),message:new T("",[p.required,p.minLength(10)])});constructor(s){this.http=s}submit(){if(this.form.invalid){this.form.markAllAsTouched();return}this.loading=!0,this.alert=null,this.http.post(`${L.apiUrl}/api/v1/contact`,this.form.value).subscribe({next:()=>{this.alert={type:"is-success",text:"CONTACT.SUCCESS"},this.form.reset(),this.loading=!1},error:s=>{this.alert={type:"is-danger",text:s.error?.detail||"CONTACT.FAIL"},this.loading=!1}})}static \u0275fac=function(b){return new(b||m)(h(I))};static \u0275cmp=O({type:m,selectors:[["app-contact"]],decls:76,vars:76,consts:[["role","main","aria-labelledby","contact-title",1,"hero-body","mt-5"],[1,"container"],[1,"columns","is-centered"],[1,"column","is-7-desktop","is-10-tablet","is-full-mobile"],["aria-live","polite",1,"box","mt-5","custom-box",3,"ngSubmit","formGroup"],["id","contact-title",1,"has-text-centered","custom-title","title","is-5","mb-2"],[1,"has-text-centered","custom-subtitle","mb-2"],[1,"has-text-centered","is-size-7","has-text-grey","mb-5"],[1,"field"],["for","contact-name",1,"label","custom-label"],[1,"control","has-icons-left"],["id","contact-name","type","text","formControlName","name","required","","autocomplete","name",1,"input","custom-input",3,"placeholder"],[1,"icon","is-small","is-left"],[1,"pi","pi-user"],["id","contact-name-error","role","alert","aria-live","assertive",1,"help","is-danger","custom-help"],["for","contact-email",1,"label","custom-label"],["id","contact-email","type","email","formControlName","email","required","","autocomplete","email",1,"input","custom-input",3,"placeholder"],[1,"pi","pi-envelope"],["id","contact-email-error","role","alert","aria-live","assertive",1,"help","is-danger","custom-help"],["for","contact-subject",1,"label","custom-label"],[1,"control"],[1,"select","is-fullwidth","custom-input"],["id","contact-subject","formControlName","subject","required",""],["value","","disabled",""],["value","support"],["value","billing"],["value","suggestion"],["value","extension"],["value","service"],["value","other"],["for","contact-message",1,"label","custom-label"],["id","contact-message","rows","5","formControlName","message","required","","autocomplete","off",1,"textarea","custom-input",3,"placeholder"],["id","contact-message-error","role","alert","aria-live","assertive",1,"help","is-danger","custom-help"],["type","submit",1,"button","is-primary","is-fullwidth","custom-button",3,"disabled"],["role","status","aria-live","polite","aria-atomic","true",1,"message",3,"ngClass"],[1,"message-body","custom-text"]],template:function(b,t){b&1&&(n(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"form",4),N("ngSubmit",function(){return t.submit()}),n(5,"h1",5),r(6),a(7,"translate"),i(),n(8,"p",6),r(9),a(10,"translate"),i(),n(11,"p",7),r(12),a(13,"translate"),i(),n(14,"div",8)(15,"label",9),r(16),a(17,"translate"),i(),n(18,"div",10),u(19,"input",11),a(20,"translate"),C(),n(21,"span",12),u(22,"i",13),i()(),v(23,W,3,3,"p",14),i(),n(24,"div",8)(25,"label",15),r(26),a(27,"translate"),i(),n(28,"div",10),u(29,"input",16),a(30,"translate"),C(),n(31,"span",12),u(32,"i",17),i()(),v(33,Y,3,3,"p",18),i(),n(34,"div",8)(35,"label",19),r(36),a(37,"translate"),i(),n(38,"div",20)(39,"div",21)(40,"select",22)(41,"option",23),r(42),a(43,"translate"),i(),n(44,"option",24),r(45),a(46,"translate"),i(),n(47,"option",25),r(48),a(49,"translate"),i(),n(50,"option",26),r(51),a(52,"translate"),i(),n(53,"option",27),r(54),a(55,"translate"),i(),n(56,"option",28),r(57),a(58,"translate"),i(),n(59,"option",29),r(60),a(61,"translate"),i()(),C(),i()()(),n(62,"div",8)(63,"label",30),r(64),a(65,"translate"),i(),n(66,"div",20),u(67,"textarea",31),a(68,"translate"),C(),i(),v(69,Z,3,3,"p",32),i(),n(70,"div",8)(71,"button",33),r(72),a(73,"translate"),a(74,"translate"),i()(),v(75,ee,4,4,"article",34),i()()()()()),b&2&&(e(4),c("formGroup",t.form),d("autocomplete","off"),e(2),l(" ",o(7,38,"CONTACT.TITLE")," "),e(3),l(" ",o(10,40,"CONTACT.SUBTITLE")," "),e(3),l(" ",o(13,42,"CONTACT.RESPONSE_INFO")," "),e(4),l(" ",o(17,44,"CONTACT.NAME.LABEL")," "),e(3),c("placeholder",o(20,46,"CONTACT.NAME.PLACEHOLDER")),d("aria-invalid",t.form.controls.name.invali
1d&&t.form.controls.name.touched?"true":"false")("aria-required","true")("aria-describedby",t.form.controls.name.invalid&&t.form.controls.name.touched?"contact-name-error":null),f(),e(4),E(t.form.controls.name.invalid&&t.form.controls.name.touched?23:-1),e(3),l(" ",o(27,48,"CONTACT.EMAIL.LABEL")," "),e(3),c("placeholder",o(30,50,"CONTACT.EMAIL.PLACEHOLDER")),d("aria-invalid",t.form.controls.email.invalid&&t.form.controls.email.touched?"true":"false")("aria-required","true")("aria-describedby",t.form.controls.email.invalid&&t.form.controls.email.touched?"contact-email-error":null),f(),e(4),E(t.form.controls.email.invalid&&t.form.controls.email.touched?33:-1),e(3),l(" ",o(37,52,"CONTACT.SUBJECT.LABEL")," "),e(4),d("aria-required","true")("aria-invalid",t.form.controls.subject.invalid&&t.form.controls.subject.touched?"true":"false"),f(),e(2),l(" ",o(43,54,"CONTACT.SUBJECT.CHOOSE")," "),e(3),g(o(46,56,"CONTACT.SUBJECT.SUPPORT")),e(3),g(o(49,58,"CONTACT.SUBJECT.BILLING")),e(3),l(" ",o(52,60,"CONTACT.SUBJECT.SUGGESTION")," "),e(3),l(" ",o(55,62,"CONTACT.SUBJECT.EXTENSION")," "),e(3),l(" ",o(58,64,"CONTACT.SUBJECT.SERVICE")," "),e(3),g(o(61,66,"CONTACT.SUBJECT.OTHER")),e(4),l(" ",o(65,68,"CONTACT.MESSAGE.LABEL")," "),e(3),c("placeholder",o(68,70,"CONTACT.MESSAGE.PLACEHOLDER")),d("aria-invalid",t.form.controls.message.invali
1d&&t.form.controls.message.touched?"true":"false")("aria-required","true")("aria-describedby",t.form.controls.message.invalid&&t.form.controls.message.touched?"contact-message-error":null),f(),e(2),E(t.form.controls.message.invalid&&t.form.controls.message.touched?69:-1),e(2),c("disabled",t.form.invalid||t.loading),d("aria-disabled",t.form.invalid||t.loading?"true":"false")("aria-busy",t.loading?"true":null),e(),l(" ",t.loading?o(73,72,"CONTACT.SENDING"):o(74,74,"CONTACT.SEND")," "),e(3),E(t.alert?75:-1))},dependencies:[B,A,V,D,j,H,R,J,q,w,U,F,z,y,M],styles:['@charset "UTF-8";.custom-title[_ngcontent-%COMP%]{font-size:1.5rem}.custom-subtitle[_ngcontent-%COMP%]{font-size:.95rem;opacity:.85}.custom-label[_ngcontent-%COMP%], .custom-input[_ngcontent-%COMP%], .custom-button[_ngcontent-%COMP%]{font-size:1rem}.custom-help[_ngcontent-%COMP%], .custom-text[_ngcontent-%COMP%]{font-size:.875rem}.custom-box[_ngcontent-%COMP%]{border-radius:12px;box-shadow:0 14px 40px #0000000f}@media screen and (min-width:1024px){.custom-box[_ngcontent-%COMP%]{padding:2rem}}@media screen and (max-width:420px){.custom-title[_ngcontent-%COMP%]{font-size:1.25rem}.custom-subtitle[_ngcontent-%COMP%]{font-size:.85rem}.custom-label[_ngcontent-%COMP%], .custom-input[_ngcontent-%COMP%], .custom-button[_ngcontent-%COMP%]{font-size:.875rem}.custom-help[_ngcontent-%COMP%], .custom-text[_ngcontent-%COMP%]{font-size:.75rem}.box[_ngcontent-%COMP%]{padding:1rem}.mt-5[_ngcontent-%COMP%]{margin-top:1rem!important}}'],changeDetection:1})}return m})()});te();export{ce as ContactComponent};
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.