PageSourceSearch

https://www.ttbbank.com/_next/static/chunks/pages/ir/email-alert/i…20copy-build-1789371932-64e33f8a6683b998.js

js ttbbank.com collected 2026-09-24 09:13:17 UTC 14,864 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[45139],{47148:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ir/email-alert/index copy",function(){return a(22001)}])},22001:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return v},default:function(){return f}});var l=a(85893),i=a(11752),o=a.n(i),r=a(9008),c=a.n(r),s=a(11163),n=a(67294),d=a(57492),m=a(87536),h=a(86455),p=a.n(h),u=a(74231);let{publicRuntimeConfig:x}=o()();var v=!0;function f(e){var t,a,i,o,r,h,v,f,b,j,_,y,g,N,w,C,S,q;let A=(0,s.useRouter)(),k=e.title_page,T="en"==A.locale?{validate_fullname:"Name  is required",validate_email:"Email  is required",validate_nationality:"Nationality is required",validate_career:"Career is required",validate_captcha:"CAPTCHA  is required",required_fullname:"Name  is required",required_email:"Email  is required",required_nationality:"Nationality is required",required_career:"Career is required",required_captcha:"CAPTCHA  is required",label_topic:"Topic",label_fullname:"Name",label_email:"Email",label_nationality:"Nationality",label_career:"Career",category1:"Investors",category2:"Analysts",category3:"Current shareholders",category4:"Students",category5:"Other",category5_other:"Other",label_captcha:"CAPTCHA",label_submit:"Submit",label_reset:"Reset",helptext_captcha:"Please input the CAPTCHA code",alert_title:"Thank you for your message.",alert_text:"ttb appreciates you talking the time to fill out our form."}:{validate_captcha:"กรุณาตรวจสอบ CAPTCHA",validate_fullname:"กรุณาระบุชื่อ-สกุล",validate_email:"กรุณาระบุอีเมล",validate_nationality:"กรุณาระบุสัญชาติ",validate_career:"กรุณาระบุอาชีพ",required_fullname:"กรุณาระบุชื่อ-สกุล",required_email:"กรุณาระบุอีเมล",required_nationality:"กรุณาระบุสัญชาติ",required_career:"กรุณาระบุอาชีพ",required_captcha:"กรุณาระบุ CAPTCHA",label_fullname:"ชื่อ-สกุล",label_email:"อีเมล",label_nationality:"สัญชาติ",label_career:"อาชีพ",category1:"นักลงทุน",category2:"นักวิเคราะห์",category3:"ผู้ถือหุ้น",category4:"นักเรียน นักศึกษา",category5:"อื่นๆ",category5_other:"อาชีพอื่นๆ",label_captcha:"รหัสยืนยัน",label_submit:"ตกลง",label_reset:"รีเซ็ต",helptext_captcha:"กรุณากรอกรหัสที่เห็น",alert_title:"ขอบคุณสำหรับ<br />การติดต่อ",alert_text:"ทาง ttb จะรีบติดต่อกลับหาท่านโดยเร็วที่สุด"};(0,n.useEffect)(()=>{$("#messageForm").on("click",function(e){var t=$(this).parents(".bottom-form");$(t).find(".form-input-deletable").attr("placeholder","")});var t=new Date;$("#captcha").attr("src","".concat(x.baseUrl[e.env],"/api/captcha?")+t.getTime())},[]);let Z=u.Ry().shape({switchlang:u.Z_().required(),email:u.Z_().ensure().when("topic",{is:"category7",then:u.Z_().notRequired(),otherwise:u.Z_().matches(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,T.validate_email).required(T.required_email)}),confirm_email:u.Z_().ensure().when("topic",{is:"category7",then:u.Z_().notRequired(),otherwise:u.Z_().matches(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,T.validate_email).required(T.required_email)}),fullname:u.Z_().matches(/[a-zA-Zก-๛.,\-\/\s]+/,T.validate_fullname).required("defaultText".concat(A.locale,".required_fullname")),acceptcond:u.O7().oneOf([!0],"ยินยอมการให้ข้อมูล"),txtCaptcha:u.Z_().required(T.required_captcha)}),F=()=>{var t=new Date;$("#captcha").attr("src","".concat(x.baseUrl[e.env],"/api/captcha?")+t.getTime())},{register:P,handleSubmit:z,reset:E,formState:{errors:H}}=(0,m.cI)({resolver:(0,d.X)(Z)}),U=async t=>{var a=new Date;$("#submitLoading").prop("disabled",!0);let l="".concat(x.baseUrl[e.env],"/api/captcha/verify?captcha=")+t.txtCaptcha,i=await fetch(l,{method:"GET",headers:{"Content-Type":"application/json"}});if("success"==(await i.json()).status){let l="".concat(x.baseUrl[e.env],"/api/form-contact/add");await fetch(l,{body:JSON.stringify(t),method:"POST",headers:{"Content-Type":"application/json"}}),p().fire({title:T.alert_title,text:T.alert_text,icon:"success",confirmButtonText:"th"===A.locale?"ปิด":"Close"}),E(),$("#errorCaptcha").text(""),$("#captcha").attr("src","".concat(x.baseUrl[e.env],"/api/captcha?")+a.getTime()),$("#submitLoading").prop("disabled",!1)}else $("#errorCaptcha").css("color","red").text(T.validate_captcha),$("#captcha").attr("src","".concat(x.baseUrl[e.env],"/api/captcha?")+a.getTime()),$("#submitLoading").prop("disabled",!1)}
1,[O,R]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{var t;(null===(t=e.globalConfig)||void 0===t?void 0:t.contact_form_button)&&R(!1)},[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(c(),{children:[(0,l.jsx)("link",{rel:"stylesheet",href:"/global/assets/css/vendor/swiper-5.4.5.min.css"}),(0,l.jsx)("link",{rel:"stylesheet",href:"/global/assets/css/icofont.min.css"}),(0,l.jsx)("link",{rel:"stylesheet",href:"/global/assets/css/animate.min.css"})]}),(0,l.jsx)("div",{className:"container-lg ",children:(0,l.jsx)("nav",{"aria-label":"breadcrumb",children:(0,l.jsx)("ol",{className:"breadcrumb",children:(0,l.jsx)("li",{className:"breadcrumb-item active","aria-current":"page",children:(0,l.jsx)("a",{href:"#",children:k})})})})}),(0,l.jsx)("br",{}),(0,l.jsxs)("div",{className:"container mb-4",children:[(0,l.jsx)("h1",{children:k}),(0,l.jsx)("p",{children:'ท่านสามารถลงทะเบียนเพื่อรับข่าวสารอิเล็กทรอนิกส์ เราจะส่งข่าวสารให้ท่านทาง อีเมล เมื่อมีข่าวสารที่เกี่ยวกับบริษัท (ประกาศ, ปรับปรุงเว็บไซต์) ที่ประกาศผ่านเว็บไซต์นี้ เพื่อลงทะเบียนรับข่าวสารอิเล็กทรอนิกส์กรุณากรอกรายละเอียด ของท่านและคลิกปุ่ม "สมัครสมาชิกรับข่าวสาร"'}),(0,l.jsx)("br",{})]}),(0,l.jsx)("section",{id:"contact--contact-form",className:"".concat(O&&"d-none"),children:(0,l.jsx)("div",{className:"container",children:(0,l.jsx)("div",{className:"form-product pt-5",children:(0,l.jsxs)("form",{onSubmit:z(U),onReset:()=>E(),id:"formContact",children:[(0,l.jsx)("input",{type:"hidden",value:A.locale,...P("switchlang")}),(0,l.jsx)("div",{className:"row mb-2",children:(0,l.jsxs)("div",{className:"col-lg-8 col-md-8",children:[(0,l.jsx)("h6",{className:"col-12 my-3",children:"กรุณาเลือกประเภทข่าวสารที่คุณต้องการให้แจ้งเตือนทางอีเมล"}),(0,l.jsxs)("label",{htmlFor:"c-opt-ea",className:"col-4 ",children:[(0,l.jsx)("input",{name:"c-opt-ea",type:"checkbox",value:"FinancialInformationUpdate",title:"Financial information update",style:{width:"auto"}})," ","Financial information update"," "]}),(0,l.jsxs)("label",{htmlFor:"c-opt-ea",className:"col-4 ",children:[(0,l.jsx)("input",{name:"c-opt-ea",type:"checkbox",value:"InvestorPresentationUpdate",title:"Investor presentation update",style:{width:"auto"}})," ","Investor presentation update"," "]}),(0,l.jsxs)("label",{htmlFor:"c-opt-ea",className:"col-4 ",children:[(0,l.jsx)("input",{name:"c-opt-ea",type:"checkbox",value:"ShareholderService",title:"Shareholder service",style:{width:"auto"}})," ","Shareholder service"," "]}),(0,l.jsxs)("label",{htmlFor:"c-opt-ea",className:"col-4 ",children:[(0,l.jsx)("input",{name:"c-opt-ea",type:"checkbox",value:"DebentureHolderService",title:"Debenture holder service",style:{width:"auto"}})," ","Debenture holder service"," "]}),(0,l.jsxs)("label",{htmlFor:"c-opt-ea",className:"col-4 ",children:[(0,l.jsx)("input",{name:"c-opt-ea",type:"checkbox",value:"NewsAlert",title:"News alert",style:{width:"auto"}})," ","News alert"," "]}),(0,l.jsxs)("label",{htmlFor:"c-opt-ea",className:"col-4 ",children:[(0,l.jsx)("input",{name:"c-opt-ea",type:"checkbox",value:"All",title:"All",style:{width:"auto"}})," ","All"]}),(0,l.jsx)("p",{id:"topicRequired",style:{float:"left",color:"#da2110",fontSize:".8rem",marginTop:"0",width:"100%",marginLeft:".5rem"},children:null===(a=H.topic)||void 0===a?void 0:null===(t=a.message)||void 0===t?void 0:t.toString()})]})}),(0,l.jsx)("div",{className:"row mb-2",children:(0,l.jsx)("div",{className:"col-lg-8 col-md-8",children:(0,l.jsxs)("div",{className:"bottom-form",children:[(0,l.jsx)("input",{autoComplete:"off",className:"form-input-deletable input-control",type:"email",placeholder:" ".concat(T.label_email,"*"),...P("email")}),(0,l.jsx)("p",{style:{float:"left",color:"#da2110",fontSize:".8rem",bottom:".3rem",width:"100%"},children:null===(o=H.email)||void 0===o?void 0:null===(i=o.message)||void 0===i?void 0:i.toString()})]})})}),(0,l.jsx)("div",{className:"row mb-2",children:(0,l.jsx)("div",{className:"col-lg-8 col-md-8",children:(0,l.jsxs)("div",{className:"bottom-form",children:[(0,l.jsx)("input",{autoComplete:"off",className:"form-input-deletable input-control",type:"email",placeholder:" ".concat(T.label_email,"*"),...P("confirm_email")}),(0,l.jsx)("p",{style:{float:"left",color:"#da2110",fontSize:".8rem",bottom:".3rem",width:"100%"},children:null===(h=H.confirm_email)||void 0===h?void 0:null===(r=h.message)||void 0===r?void 0:r.toString()})]})})}),(0,l.jsx)("div",{className:"row mb-2",children:(0,l.jsx)("div",{className:"col-lg-8 col-md-8",children:(0,l.jsxs)("div",{className:"bottom-form",children:[(0,l.jsx)("input",{autoComplete:"off",className:" border-input-form form-input-deletable",type:"text",placeholder:" ".concat(T.label_fullname,"*"),...P("fullname")}
1),(0,l.jsx)("p",{style:{float:"left",color:"#da2110",fontSize:".8rem",bottom:".3rem",width:"100%"},children:null===(f=H.fullname)||void 0===f?void 0:null===(v=f.message)||void 0===v?void 0:v.toString()})]})})}),(0,l.jsx)("div",{className:"row mb-2",children:(0,l.jsx)("div",{className:"col-lg-8 col-md-8",children:(0,l.jsxs)("div",{className:"bottom-form",children:[(0,l.jsx)("input",{autoComplete:"off",className:"form-input-deletable input-control",type:"text",placeholder:" ".concat(T.label_nationality),...P("nationality")}),(0,l.jsx)("p",{style:{float:"left",color:"#da2110",fontSize:".8rem",bottom:".3rem",width:"100%"},children:null===(j=H.nationality)||void 0===j?void 0:null===(b=j.message)||void 0===b?void 0:b.toString()})]})})}),(0,l.jsxs)("div",{className:"row mb-2",children:[(0,l.jsx)("div",{className:"col-lg-8 col-md-8",children:(0,l.jsxs)("div",{className:"bottom-form",children:[(0,l.jsxs)("select",{className:"form-dropdown",...P("career"),name:"career",style:{width:"100%",borderRadius:" 16.67px"},children:[(0,l.jsx)("option",{value:"",children:T.label_career}),(0,l.jsx)("option",{value:"catetouch",children:T.category1}),(0,l.jsx)("option",{value:"catedeposits",children:T.category2}),(0,l.jsx)("option",{value:"cateloans",children:T.category3}),(0,l.jsx)("option",{value:"cateauto",children:T.category4}),(0,l.jsx)("option",{value:"catelending",children:T.category5})]}),(0,l.jsx)("p",{style:{float:"left",color:"#da2110",fontSize:".8rem",bottom:".3rem",width:"100%"},children:null===(y=H.career)||void 0===y?void 0:null===(_=y.message)||void 0===_?void 0:_.toString()})]})}),(0,l.jsx)("div",{className:"col-lg-4 col-md-4",children:(0,l.jsxs)("div",{className:"bottom-form",children:[(0,l.jsx)("input",{autoComplete:"off",className:"form-input-deletable input-control",type:"text",placeholder:" ".concat(T.category5_other),...P("category5_other")}),(0,l.jsx)("p",{style:{float:"left",color:"#da2110",fontSize:".8rem",bottom:".3rem",width:"100%"},children:null===(N=H.category5_other)||void 0===N?void 0:null===(g=N.message)||void 0===g?void 0:g.toString()})]})})]}),(0,l.jsx)("div",{className:"row mb-2",children:(0,l.jsx)("div",{className:"col-lg-8 col-md-8",children:(0,l.jsxs)("div",{className:"check-box-accept",style:{display:"inline-block",width:"100%"},children:[(0,l.jsxs)("label",{htmlFor:"acceptcond",style:{color:"#585858",fontSize:"14px"},children:[" ",(0,l.jsx)("input",{className:"checkbox-component",type:"checkbox",...P("acceptcond")}),"ข้าพเจ้ายินยอมให้ข้อมูลเพื่อให้ธนาคารติดต่อกลับผ่านทาง อีเมล สำหรับส่งข้อมูลแจ้งเตือนข่าวสารเท่านั้น / I hereby give my consent to the Bank for the purpose of sending news alert to my email only."]}),(0,l.jsx)("br",{}),(0,l.jsx)("p",{className:"mt-4",style:{width:"100%",display:"inline-block",marginBottom:0,float:"left",textAlign:"center"},children:null===(C=H.acceptcond)||void 0===C?void 0:null===(w=C.message)||void 0===w?void 0:w.toString()})]})})}),(0,l.jsxs)("div",{className:"row mt-3",style:{minHeight:"80px"},children:[(0,l.jsx)("div",{className:"col-lg-6 col-md-6 col-sm-12 text-right",children:(0,l.jsxs)("div",{className:"bottom-form",children:[(0,l.jsx)("img",{src:"".concat(x.baseUrl[e.env],"/api/captcha"),id:"captcha",alt:""}),(0,l.jsx)("a",{id:"recaptcha",onClick:()=>F(),children:(0,l.jsx)("i",{className:"fa fa-refresh ml-3"})})]})}),(0,l.jsx)("div",{className:"col-lg-6 col-md-6 col-sm-12 ",children:(0,l.jsxs)("div",{className:"bottom-form",children:[(0,l.jsx)("input",{autoComplete:"off",...P("txtCaptcha"),className:"form-input-deletable input-control",type:"text",id:"textCaptcha",maxLength:4,placeholder:T.helptext_captcha}),(0,l.jsx)("p",{id:"errorCaptcha",style:{float:"left",color:"#da2110",fontSize:".8rem",marginTop:"0",width:"100%",marginLeft:".5rem"},children:null===(q=H.txtCaptcha)||void 0===q?void 0:null===(S=q.message)||void 0===S?void 0:S.toString()})]})})]}),(0,l.jsx)("div",{className:"row justify-content-end",children:(0,l.jsx)("div",{className:"mx-auto",children:(0,l.jsx)("div",{className:"col-lg-6 col-md-6 col-sm-12 mb-2 text-right",children:(0,l.jsx)("button",{type:"submit",id:"submitLoading",className:"btn btn-primary py-2",style:{textAlign:"center",fontWeight:500,padding:".375rem 3.5rem",fontSize:"1rem",lineHeight:"1.5"},children:T.label_submit})})})})]})})})})]})}}},function(e){e.O(0,[86455,92888,49774,40179],function(){return e(e.s=47148)}),_N_E=e.O()}]);

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.