1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="25708760-50f7-53a6-b174-8a577b37b517")}catch(e){}}(); 3import{Ha as j,Ia as E,L as D,M as A,Na as B,Ua as L,Wa as F,d as k,h as N,la as R,n as T,pa as I,qa as b,ra as q,sa as U,va as $}from"./chunk-4XKOPEPE.js";import"./chunk-ZHKHITEJ.js";import{Hb as _,Hc as e,I as x,Ic as O,Nb as v,Pc as w,Yb as P,dc as d,ec as i,f as C,fa as f,fc as t,gc as l,lb as M,oa as y,pb as s,rc as g,ta as c,tc as S}from"./chunk-4SHNEM2N.js";import"./chunk-4PSLHSLT.js";var V=(()=>{let a=class a{constructor(){this.http=c(T),this.apiConfigService=c($)}sendSupportMessage(p,r,n,h){let o=`${this.apiConfigService.apiBaseReal}/support/message`,W={name:p,email:r,subject:n,content:h};return this.http.post(o,W,this.apiConfigService.httpOptions).pipe(x(this.apiConfigService.handleErrors))}};a.\u0275fac=function(r){return new(r||a)},a.\u0275prov=y({token:a,factory:a.\u0275fac,providedIn:"root"});let m=a;return m})();function H(m,a){if(m&1&&(i(0,"span")(1,"span",17),e(2,"Email"),t(),e(3,` 4 `),i(4,"a")(5,"u"),e(6),t()(),l(7,"br"),t()),m&2){let u=S();s(4),P("href","mailto:"+u.contactEmailAddress,M),s(2),O(u.contactEmailAddress)}}function J(m,a){if(m&1&&(i(0,"div",30),e(1,` 5 `),i(2,"div",31),e(3,` 6 `),l(4,"app-input",27),e(5,` 7 `),t(),e(6,` 8 `),t()),m&2){let u=S();s(4),d("modelRef",u.otherTopic)("required",!0)("label","Subject")("type","text")("name","other-topic")}}var he=(()=>{let a=class a{constructor(){this.dataService=c(R),this.logService=c(U),this.adscoreApiService=c(I),this.router=c(D),this.validationService=c(j),this.phoneValidationService=c(E),this.supportService=c(V),this.tag="ContactComponent",this.topics=["Account","Billing","Dashboard","API","Other"],this.other=!1,this.firstName={value:"",error:!1},this.lastName={value:"",error:!1},this.phone={value:"",error:!1},this.email={value:"",error:!1},this.topic={value:"",error:!1},this.otherTopic={value:"",error:!1},this.msg={value:"",error:!1},this.gotContactData=!1,this.destroy$=new C,this.adscoreApiService.runAdscoreInit(!0)}ngOnInit(){this.adscoreContactData$=this.dataService.updatables("adscoreContactData").observable.pipe(f(this.destroy$)).subscribe(p=>{this.gotContactData=p?.email!=="",this.contactEmailAddress=p?.email})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.logService.removeMessagesByTag(this.tag)}topicSelected(p){this.other=p==="Other"}sendMsg(p){p.preventDefault();let r=[];this.logService.removeMessagesByTag(this.tag),this.firstName.error=!1,this.lastName.error=!1,this.email.error=!1,this.phone.error=!1,this.topic.error=!1,this.otherTopic.error=!1,this.msg.error=!1;let n=this.validationService.singleName(this.firstName.value).map(o=>o.getMsg("first name"));if(n.length&&(r.push(...n),this.firstName.error=!0),n=this.validationService.singleName(this.lastName.value).map(o=>o.getMsg("last name")),n.length&&(r.push("Please enter your last name"),this.lastName.error=!0),n=this.validationService.email(this.email.value).map(o=>o.getMsg("email address")),n.length&&(r.push(...n),this.email.error=!0),n=this.phoneValidationService.phone(this.phone.value).map(o=>o.getMsg("phone number")),this.phone.value!==""&&n.length&&(r.push(...n),this.phone.error=!0),this.topic.value===""?(r.push("Please select a topic for your message"),this.topic.error=!0):this.other&&this.validationService.isBlank(this.otherTopic.value)&&(r.push("Please enter the subject for your message"),this.otherTopic.error=!0),this.validationService.isBlank(this.msg.value)&&(r.push("Please enter your message"),this.msg.error=!0),r.length){this.logService.addMessage("Error Sending Message","Please fix the following errors:<ul>"+r.map(o=>"<li>"+o+"</li>").join("")+"</ul>",b.Error,q,this.tag);return}let h="";this.phone.value&&(h+=`Phone: ${this.phone.value} 9 10`),h+=this.msg.value,this.supportService.sendSupportMessage(this.firstName.value.trim()+" "+this.lastName.value.trim(),this.email.value,`${this.topic.value}${this.other?" - "+this.otherTopic.value:""}
10`,h).pipe(x(this.logService.notifyUserAboutErrors),f(this.destroy$)).subscribe(()=>{this.firstName.value="",this.lastName.value="",this.email.value="",this.phone.value="",this.topic.value="",this.otherTopic.value="",this.msg.value="",this.other=!1,this.logService.addMessageUnique("Message sent!","Your message was sent successfully.<br/>We'll get back shortly, thank you!",b.Success),this.router.navigate([""])})}};a.\u0275fac=function(r){return new(r||a)},a.\u0275cmp=_({type:a,selectors:[["app-contact"]],features:[w([E])],decls:168,vars:34,consts:[["id","landing-screen",1,"section"],[1,"section--container"],[1,"row"],[1,"col-lg-6"],[1,"d-sm-block","text-primary","text-ultra","m-b-2"],[1,"fs-1-25"],["id","homepage-content"],[3,"filled"],[1,"section","background-neutral-lightest"],["id","business-information",1,"section--container"],[1,"row","justify-content-center"],[1,"col-lg-8","col-sm-12"],[1,"text-primary","text-bold","fs-1-5"],[1,"col-lg-4","col-sm-6"],["id","address-information",1,"p-t-1-25","fs-1","text-secondary"],["id","contact-information",1,"p-t-1-25","fs-1","text-secondary"],[4,"ngIf"],[1,"label"],["href","tel:+97142428305"],[1,"section"],["id","contact-form",1,"section--container"],[1,"col-lg-8"],[1,"text-center","text-bold","p-t-0","p-b-3-25","lh-1-5","m-0"],["routerLink","/faq",1,"text-primary","text-heavy"],[1,"b-b","b-neutral-lighter"],[1,"p-b-0-5","fs-1","text-primary-dark","text-bold"],[1,"col-sm-6","p-t-1-25"],[3,"modelRef","required","label","type","name"],[3,"modelRef","optional","label","type","name"],[1,"b-b","b-neutral-lighter","m-t-1-75"],[1,"row","p-t-1-25"],[1,"col"],[3,"selected","modelRef","required","label","mode","items","name"],["class","row p-t-1-25",4,"ngIf"],[1,"textarea-wrapper"],[3,"modelRef","required","label","mode"],[1,"col-lg-3","p-b-1"],["href","#",1,"button","cta","text-white","background-primary","m-t-2","btn-block",3,"click"]],template:function(r,n){r&1&&(i(0,"section",0),e(1,` 11 `),i(2,"div",1),e(3,` 12 `),i(4,"div",2),e(5,` 13 `),i(6,"div",3),e(7,` 14 `),i(8,"h1",4),e(9,"Contact"),t(),e(10,` 15 `),i(11,"p",5),e(12,"Use the form below to get in touch."),t(),e(13,` 16 `),t(),e(14,` 17 `),t(),e(15,` 18 `),t(),e(16,` 19`),t(),e(17,` 20 21`),i(18,"div",6),e(19,` 22 `),l(20,"app-content-divider",7),e(21,` 23 `),i(22,"section",8),e(23,` 24 `),i(24,"div",9),e(25,` 25 `),i(26,"div",10),e(27,` 26 `),i(28,"div",11),e(29,` 27 `),i(30,"h4",12),e(31,"Adscore Technologies DMCC"),t(),e(32,` 28 `),t(),e(33,` 29 `),t(),e(34,` 30 `),i(35,"div",10),e(36,` 31 `),i(37,"div",13),e(38,` 32 `),i(39,"div",14),e(40,` 33 Office 1906, Jumeirah Business Center 5`),l(41,"br"),e(42,` 34 Cluster W, Jumeirah Lake Towers`),l(43,"br"),e(44,` 35 P.O. BOX 282060`),l(45,"br"),e(46,` 36 Dubai, UAE 37 `),t(),e(47,` 38 `),t(),e(48,` 39 `),i(49,"div",13),e(50,` 40 `),i(51,"div",15),e(52,` 41 `),e(53,` 42 `),v(54,H,8,2,"span",16),e(55,` 43 `),i(56,"span",17),e(57,"Phone"),t(),e(58," "),i(59,"a",18)(60,"u"),e(61,"+97142428305"),t()(),l(62,"br"),e(63,` 44 `),i(64,"span",17),e(65,"DUNS"),t(),e(66,` 864345707 45 `),t(),e(67,` 46 `),t(),e(68,` 47 `),t(),e(69,` 48 `),t(),e(70,` 49 `),t(),e(71,` 50 `),l(72,"app-content-divider",7),e(73,` 51 52 `),i(74,"section",19),e(75,` 53 `),i(76,"div",20),e(77,` 54 `),i(78,"div",10),e(79,` 55 `),i(80,"div",21),e(81,` 56 `),i(82,"h4",22),e(83,` 57 Most likely, our 58 `),i(84,"a",23)(85,"u"),e(86,"FAQ page"),t()(),e(87,` 59 already has the answer you're looking for. 60 `),t(),e(88,` 61 `),i(89,"div",24),e(90,` 62 `),i(91,"div",25),e(92,"Contact Information"),t(),e(93,` 63 `),t(),e(94,` 64 `),i(95,"div"),e(96,` 65 `),i(97,"div",2),e(98,` 66 `),i(99,"div",26),e(100,` 67 `),l(101,"app-input",27),e(102,` 68 `),t(),e(103,` 69 `),i(104,"div",26),e(105,` 70 `),l(106,"app-input",27),e(107,` 71 `),t(),e(108,` 72 `),t(),e(109,` 73 `),i(110,"div",2),e(111,` 74 `),i(112,"div",26),e(113,` 75 `),l(114,"app-input",27),e(115,` 76 `),t(),e(116,` 77 `),i(117,"div",26),e(118,` 78 `),l(119,"app-input",28),e(120,` 79 `),t(),e(121,` 80 `),t(),e(122,` 81 `),t(),e(123,` 82 `),i(124,"div",29),e(125,` 83 `),i(126,"div",25),e(127,"What can we help you with?"),t(),e(128,` 84 `),t(),e(129,` 85 `),i(130,"div"),e(131,` 86 `),i(132,"div",30),e(133,` 87 `),i(134,"div",31),e(135,` 88 `),i(136,"app-input",32),g("selected",function(o){return n.topicSelected(o)}),t(),e(137,` 89 `),t(),e(138,` 90 `),t(),e(139,` 91 `),v(140,J,7,5,"div",33),e(141,` 92 `),i(142,"div",30),e(143,` 93 `),i(144,"div",31),e(145,` 94 `),i(146,"div",34),e(147,` 95 `),l(148,"app-input",35),e(149,` 96 `),t(),e(150,` 97 `),t(),e(151,` 98 `),t(),e(152,` 99 `),t(),e(153,` 100 `),t(),e(154,` 101 `),t(),e(155,` 102 `),i(156,"div",10),e(157,` 103 `),i(158,"div",36),e(159,` 104 `),i(160,"a",37),g("click",function(o){return n.sendMsg(o)}),e(161,` 105 Send Message 106 `),t(),e(162,` 107 `),t(),e(163,` 108 `),t(),e(164,` 109 `),t(),e(165,` 110 `),t(),e(166,` 111`),t(),e(167,` 112`)),r&2&&(s(20),d("filled",!0),s(34),d("ngIf",n.gotContactData),s(18),d("filled",!0),s(29),d("modelRef",n.firstName)("required",!0)("label","First name")("type","text")("name","first-name"),s(5),d("modelRef",n.lastName)("required",!0)("label","Last name")("type","text")("name","last-name"),s(8),d("modelRef",n.email)("required",!0)("label","Email")("type","email")("name","email"),s(5),d("modelRef",n.phone)("optional",!0)("label","Phone number")("type","text")("name","phone-number"),s(17),d("modelRef",n.topic)("required",!0)("label","Topic")("mode","select")("items",n.topics)("name","topic"),s(4),d("ngIf",n.other),s(8),d("modelRef",n.msg)("required",!0)("label","Your message")("mode","textarea"))},dependencies:[F,L,B,A,N,k],styles:[`[_ngcontent-%COMP%]:root{--adscore-spacing: 1.25rem;--aside-wd: 13.75rem}@media(max-width:575.98px){[_ngcontent-%COMP%]:root{--adscore-spacing: 1rem;--aside-wd: 100%}}[_ngcontent-%COMP%]:root{--navbar-height: 72px}@media(max-width:575.98px){[_ngcontent-%COMP%]:root{--navbar-height: 68px}}@media(max-width:575.98px){[_ngcontent-%COMP%]:root app-root.compact-mobile-header[_ngcontent-%COMP%]{--navbar-height: 52px}}#business-information[_ngcontent-%COMP%]{margin-top:-1rem;margin-bottom:-1rem;padding-top:3rem;padding-bottom:3rem}#business-information[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:inline-block;text-transform:uppercase;width:4rem}#business-information[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] + a[_ngcontent-%COMP%]{font-weight:700}@media(max-width:575.98px){#business-information[_ngcontent-%COMP%] #address-information[_ngcontent-%COMP%], #business-information[_ngcontent-%COMP%] #contact-information[_ngcontent-%COMP%]{font-size:.85rem!important}#business-information[_ngcontent-%COMP%] #contact-information[_ngcontent-%COMP%] br[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{margin-top:.5rem!important}}@media(max-width:575.98px){#business-information[_ngcontent-%COMP%] h4[_ng
112content-%COMP%]{font-size:1rem!important}} 113/*# sourceMappingURL=contact.component-UZNZHDWD.css.map */`]});let m=a;return m})();export{he as ContactComponent}; 114//# sourceMappingURL=chunk-CD6Y3PJR.js.map 115 116//# debugId=25708760-50f7-53a6-b174-8a577b37b517
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.