PageSourceSearch

https://www.obome.co/chunk-M7WR32LG.js

js obome.co collected 2026-10-09 04:49:44 UTC 7,773 bytes, 1 lines download raw bytes

1import{c as z,e as F,g as W,p as I,r as N}from"./chunk-46GGPG2F.js";import{a as E}from"./chunk-SYZQBDTY.js";import{a as A}from"./chunk-BSI4QNRQ.js";import{b as T,c as k}from"./chunk-GROTZBGG.js";import"./chunk-HAVZFB2R.js";import{a as M}from"./chunk-LBBS6J5H.js";import{$b as w,Ab as v,Ac as L,Bb as l,Ca as d,Db as p,Gb as g,Hb as h,Ib as f,Kb as C,Ma as _,Y as m,Ya as u,Za as b,cb as c,db as n,eb as r,fb as y,lc as P,ob as S,qb as x,rc as O}from"./chunk-FVMGQTYA.js";var B=()=>({background:"#51004A",color:"#FFE000"}),D=()=>({});function q(s,U){if(s&1&&(n(0,"div",5),l(1),r()),s&2){let i=x();d(),p(" ",i.successMsg," ")}}function H(s,U){if(s&1&&(n(0,"div",6),l(1),r()),s&2){let i=x();d(),p(" ",i.errorMsg," ")}}var ne=(()=>{class s{constructor(){this.authService=m(k),this.modalService=m(T),this.http=m(L),this.cdr=m(w),this.seoService=m(A),this.themeService=m(E),this.name="",this.email="",this.message="",this.successMsg="",this.errorMsg="",this.isSubmitting=!1,this.isLoadingProfile=!0}get isLoggedIn(){return this.authService.isLoggedIn()}ngOnInit(){if(this.seoService.setCustomMeta({url_path:"/contact",meta_title:"Contact Obo \u2014 Get in Touch with Our Team",meta_description:"Have questions or want to partner with Obo? Reach out to our team for inquiries, support, media partnerships, and creator collaborations.",canonical_url:"https://www.obome.co/contact",primary_keyword:"contact obo"}),!this.isLoggedIn){this.isLoadingProfile=!1;return}let i=this.authService.currentUser();i&&(this.name=i.name||"",this.email=i.email||""),this.http.get(`${M.oboBaseUrl}/api/v1/front/parties/myinfo`).subscribe({next:o=>{if(this.isLoadingProfile=!1,o?.status&&o?.data){let e=o.data,a=e.email||i?.email||"",t=(e.first_name||e.firstname?`${e.first_name||e.firstname||""} ${e.last_name||e.lastname||""}`.trim():null)||e.name||i?.name||"",j=e.party_code||e.partyCode||i?.oboName||"";this.name=t,this.email=a,this.authService.updateUserSession({email:a,name:t,oboName:j})}this.cdr.detectChanges()},error:()=>{this.isLoadingProfile=!1,this.cdr.detectChanges()}})}openLogin(){this.modalService.openLoginModal("/contact")}onSubmit(){if(!this.name.trim()||!this.email.trim()||!this.message.trim()){this.errorMsg="Please fill out all required fields.";return}this.isSubmitting=!0,this.successMsg="",this.errorMsg="",this.cdr.detectChanges();let i={name:this.name.trim(),email:this.email.trim(),message:this.message.trim(),subject:"Query from Web App Contact Form"},o=this.authService.getToken(),e={};o&&(e.Authorization=`Bearer ${o}`),this.http.post(`${M.oboBaseUrl}/api/v1/front/contactus/send`,i,{headers:e}).subscribe({next:a=>{if(this.isSubmitting=!1,a.status){this.successMsg="Thank you! Your message has been sent successfully.",this.message="";let t=this.authService.currentUser();t&&(this.name=t.name||"",this.email=t.email||"")}else this.errorMsg=a.message||"Failed to send message.";this.cdr.detectChanges()},error:a=>{this.isSubmitting=!1,this.errorMsg=a.error?.message||"Error occurred while sending message. Please try again.",this.cdr.detectChanges()}})}static{this.\u0275fac=function(o){return new(o||s)}}static{this.\u0275cmp=_({type:s,selectors:[["app-contact"]],decls:23,vars:15,consts:[[1,"contact-page"],["src","assets/images/image 63.png","alt","mandala",1,"mandala-ornament"],["src","assets/images/image 152.png","alt","mandala bottom",1,"mandala-ornament-bottom"],[1,"page-title"],[1,"form-card"],[1,"text-[16px]","text-[#0000CC]","font-bold","text-center","mb-4","p-4","bg-orange-100/50","rounded-[12px]","border","border-[#0000CC]/10","shadow-sm"],[1,"text-[14px]","text-red-600","font-semibold","text-center","mb-4","p-3","bg-red-50","rounded-[12px]","border","border-red-150"],[1,"form-group"],[1,"field-label"],["id","contact-full-name","type","text","placeholder","John Doe",1,"form-input",3,"ngModelChange","ngModel","disabled"],["id","contact-email","type","email","placeholder","[email protected]",3,"ngModelChange","ngModel","readonly"],["id","contact-message","placeholder","Please provide any additional details that might help us respond to your message...","maxlength","500",1,"form-textarea",3,"ngModelChange","ngModel","disabled"],[1,"btn-wrap"],["id","send-contact-btn",1,"gold-btn",3,"click","ngStyle","disabled"]],template:function(o,e){o&1&&(n(0,"div",0),y(1,"img",1)(2,"img",2),n(3,"h1",3),l(4,"Contact Us"),r(),n(5,"div",4),u(6,q,2,1,"div",5),u(7,H,2,1,"div",6),n(8,"div",7)(9,"label",8),l(10,"Full Name*"),r(),n(11,"input",9),f("ngModelChange",function(t){return h(e.name,t)||(e.name=t),t}),r()(),n(12,"div",7)(13,"label",8),l(14,"E-mail*"),r(),n(15,"input",10),f("ngModelChange",function(t){return h(e.email,t)||(e.email=t),t}),r()(),n(16,"div",7)(17,"label",8),l(18,"Message*"),r(),n(19,"textarea",11),f("ngModelChange",function(t){return h(e.message,t)||(e.message=t),t}),r()(),n(20,"div",12)(21,"button",13),S("click",function(){return e.onSubmit()}),l(22),r()()()()),o&2&&(d(6),b(e.successMsg?6:-1),d(),b(e.errorMsg?7:-1),d(4),g("ngModel",e.name),c("disabled",e.isSubmitting),d(4),v(e.isLoggedIn?"form-input opacity-60 cursor-not-allowed bg-zinc-100":"form-input"),g("ngModel",e.email),c("readonly",e.isLoggedIn),d(4),g("ngModel",e.message),c("disabled",e.isSubmitting),d(2),c("ngStyle",e.themeService.currentTheme==="premium"?C(13,B):C(14,D))("disabled",e.isSubmitting||!e.name.trim()||!e.email.trim()||!e.message.trim()),d(),p(" ",e.isSubmitting?"Sending...":"Send Message"," "))},dependencies:[O,P,N,z,F,I,W],styles:['@charset "UTF-8";.contact-page[_ngcontent-%COMP%]{position:relative;overflow:hidden;padding:40px 40px 60px;min-height:100%;background:#fffcf3;font-family:Poppins,sans-serif}.mandala-ornament[_ngcontent-%COMP%]{position:absolute;top:0;right:-80px;width:500px;height:500px;opacity:.08;pointer-events:none;z-index:0}.mandala-ornament-bottom[_ngcontent-%COMP%]{position:absolute;bottom:-60px;right:0;width:600px;height:600px;opacity:.12;pointer-events:none;z-index:0}.page-title[_ngcontent-%COMP%]{font-size:40px;font-weight:700;line-height:40px;color:#00c;text-align:center;margin-bottom:40px;position:relative;z-index:1}.form-card[_ngcontent-%COMP%]{width:100%;max-width:900px;background:#fff;border-radius:24px;padding:48px;margin:0 auto;position:relative;z-index:1;display:flex;flex-direction:column;gap:16px;box-shadow:0 4px 20px #00000005}.form-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.field-label[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:#00c}.form-input[_ngcontent-%COMP%]{width:100%;height:52px;background:#fff;border:1.5px solid #F3CA29;border-radius:12px;padding:0 20px;font-family:Poppins,sans-serif;font-size:16px;color:#433524;outline:none;transition:border-color .2s}.form-input[_ngcontent-%COMP%]::placeholder{color:#d9d9d9}.form-input[_ngcontent-%COMP%]:focus{border-color:#fad12d;box-shadow:0 0 0 3px #fad12d26}.form-textarea[_ngcontent-%COMP%]{width:100%;height:160px;background:#fff;border:1.5px solid #F3CA29;border-radius:12px;padding:16px 20px;font-family:Poppins,sans-serif;font-size:16px;color:#433524;outline:none;resize:none;transition:border-color .2s}.form-textarea[_ngcontent-%COMP%]::placeholder{color:#d9d9d9}.form-textarea[_ngcontent-%COMP%]:focus{border-color:#fad12d;box-shadow:0 0 0 3px #fad12d26}.btn-wrap[_ngcontent-%COMP%]{display:flex;justify-content:center}.gold-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:400px;height:52px;border-radius:9999px;border:none;cursor:pointer;font-family:Poppins,sans-serif;font-size:20px;font-weight:700;color:#00c;background:#ffe000;box-shadow:0 4px 10px #0000000d;transition:all .2s;text-decoration:none}.gold-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 8px 24px #a57c0059}']})}}return s})();export{ne 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.