PageSourceSearch

https://www.smartfinn.co.th/_next/static/chunks/pages/register/type/investor-3b6ade38fa77eb49.js

js smartfinn.co.th collected 2026-10-08 12:50:15 UTC 17,590 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[982],{89770:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/register/type/investor",function(){return t(53962)}])},53962:function(e,n,t){"use strict";t.r(n);var r=t(47568),a=t(828),i=t(7297),s=t(20414),l=t(85893),o=t(67294),c=t(25617),$=t(32125),u=t(75684),d=t(16536),p=t(27049),m=t(32808),h=t(41664),f=t.n(h),x=t(11163),_=t(92077),v=t.n(_);t(39317),t(64541),t(39981);var b=t(45981),g=t(43088),j=t(54333),w=t(48498),Z=t(41866),y=t(89451),I=t(76111),P=t(96277),q=t.n(P),C=t(80671),k=t(27441),S=t(50963),N=t(57333),K=t(36244),z=t(57892),E=t(73761),L=t(81327),V=t(9008),X=t.n(V);function F(){var e=(0,i.Z)(["\n  padding: 120px 165px 40px;\n  width: calc(100% - 330px);\n  @media (max-width: 1280px) {\n    width: calc(100% - 10%);\n    padding: 120px 5% 40px;\n  }\n  .property {\n    background: #ffffff;\n    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.1);\n    border-radius: 24px;\n    padding: 37px 32px;\n    // &__breadcrumb {\n    //   > a {\n    //     color: rgba(131, 136, 138, 1);\n    //     :hover {\n    //       color: #0086ff;\n    //     }\n    //   }\n    // }\n    &__button {\n      margin: 32px 0 10px;\n      display: flex;\n      justify-content: center;\n      flex-direction: column;\n      align-items: center;\n      > div {\n        width: fit-content;\n        min-width: 137px;\n      }\n    }\n    &__checkbox {\n      > span > div > span > a {\n        color: #0086ff !important;\n        text-decoration: underline;\n        @media (max-width: 490px) {\n          display: grid;\n        }\n      }\n    }\n  }\n  .form-property {\n    &__about {\n      display: flex;\n      align-items: flex-start;\n      justify-content: space-between;\n      align-content: center;\n      flex-wrap: wrap;\n      margin: 16px 0;\n      > div {\n        width: 48%;\n        @media (max-width: 490px) {\n          width: 100%;\n        }\n      }\n    }\n    &__more {\n      margin: 16px 0;\n      display: grid;\n      column-gap: 50px;\n      grid-template-columns: auto auto;\n      @media (max-width: 435px) {\n        display: inherit;\n      }\n      &--item5 {\n        grid-column-start: 1;\n        grid-column-end: 3;\n        @media (max-width: 435px) {\n          width: 100%;\n        }\n      }\n      &--item6 {\n        grid-column-start: 1;\n        grid-column-end: 3;\n        width: 48%;\n        @media (max-width: 435px) {\n          width: 100%;\n        }\n      }\n    }\n  }\n  .ant-select-single:not(.ant-select-customize-input)\n    .ant-select-selector\n    .ant-select-selection-search-input {\n    height: 100%;\n  }\n  .ant-picker,\n  .ant-select-selector {\n    cursor: pointer !important;\n  }\n  .ant-select-selection-search-input {\n    cursor: pointer !important;\n  }\n"]);return F=function(){return e},e}function O(){var e=(0,i.Z)(["\n  background: #ffebeb;\n  border-radius: 8px;\n  padding: 6px 16px;\n  color: red;\n  margin: 5px 0 0;\n  > svg {\n    padding: 5px 7px 0 0px;\n    width: 16px;\n    > path {\n      fill: red;\n    }\n  }\n"]);return O=function(){return e},e}var D=function(e){var n,t=(0,c.I0)(),i=(0,a.Z)(u.Z.useForm(),1)[0],$=(0,x.useRouter)(),h=(0,S.qo)("experience",i),_=(0,o.useState)([]),P=_[0],V=_[1],F=(0,o.useState)([]),O=F[0],D=F[1],H=(0,o.useState)([]),R=H[0],G=H[1],T=(0,o.useState)([]),B=T[0],W=T[1],Y=(0,o.useState)([]),J=Y[0],Q=Y[1],U=(0,o.useState)(""),ee=U[0],en=U[1];(0,o.useEffect)(function(){t((0,g.Ec)("dark")),t((0,g.iG)(!1)),setTimeout(function(){el(),eo(),ec(),e$(),eu()},1e3)},[]);var et,er,ea,ei,es,el=(n=(0,r.Z)(function(){var e,n;return(0,s.__generator)(this,function(r){switch(r.label){case 0:return t((0,E.K4)(!0)),[4,(0,z.dX)("".concat("https://api-front.smf-office.com","/occupations"))];case 1:return(e=r.sent()).status&&V(n=e.message.data.data.filter(function(e){return"active"===e.status}).map(function(e){return{value:e.id,label:e.name}})),t((0,E.K4)(!1)),[2]}})}),function(){return n.apply(this,arguments)}),eo=(et=(0,r.Z)(function(){var e,n;return(0,s.__generator)(this,function(r){switch(r.label){case 0:return t((0,E.K4)(!0)),[4,(0,z.dX)("".concat("https://api-front.smf-office.com","/website-frontend/available-time"))];case 1:return(e=r.sent()).status&&D(n=e.message.data.data.filter(function(e){return"active"===e.status}).map(function(e){return{value:e.id,label:e.name}})),t((0,E.K4)(!1)),[2]}})}),function(){return et.apply(this,arguments)}),ec=(er=(0,r.Z)(function(){var e,n;return(0,s.__generator)(this,function(r){switch(r.label){case 0:return t((0,E.K4)(!0)),[4,(0,z.dX)("".concat("https://api-front.smf-office.com","/website-frontend/property-types"))];case 1:return(e=r.sent()).status&&G(n=e.message.data.data.filter(function(e){return"active"===e.status}).map(function(e){return{value:e.id,label:e.name}})),t((0,E.K4)(!1)),[2]}})}),function(){return er.apply(this,arguments)}),e$=(ea=(0,r.Z)(function(){var e,n;return(0,s.__generator)(this,function(r){switch(r.label){case 0:return t((0,E.K4)(!0)),[4,(0,z.dX)("".concat("https://api-front.smf-office.com","/website-frontend/locations/investor"))];case 1:return(e=r.sent()).status&&W(n=e.message.data.data.map(function(e){return{value:e.id,label:e.name_th}}
1)),t((0,E.K4)(!1)),[2]}})}),function(){return ea.apply(this,arguments)}),eu=(ei=(0,r.Z)(function(){var e,n;return(0,s.__generator)(this,function(r){switch(r.label){case 0:return t((0,E.K4)(!0)),[4,(0,z.dX)("".concat("https://api-front.smf-office.com","/website-frontend/investor/investor-financails"))];case 1:return(e=r.sent()).status&&Q(n=e.message.data.data.map(function(e){return{value:e.id,label:e.financial_amount}})),t((0,E.K4)(!1)),[2]}})}),function(){return ei.apply(this,arguments)}),ed=(es=(0,r.Z)(function(e){return(0,s.__generator)(this,function(e){var n;return i.validateFields().then((n=(0,r.Z)(function(e){var n,r,a,i,l;return(0,s.__generator)(this,function(s){switch(s.label){case 0:return n=v()(e.interest_rate),a=((i={}).title=e.prefix,i.full_name=e.consignment_seller_name,i.email=e.email,i.password=e.password,i.phone_number=e.phone,i.line_id=null!==(r=e.line_id)&&void 0!==r?r:"",i.occupation_id=e.occupation,i.property_type_id=e.type,i.available_time_id=e.time,i.location_id=e.plant,i.finacial_amount_id=e.amount,i.accepted_pdpa=e.verified,i.consignment_experience=1===e.experience,i.interest_received=n.value(),i),[4,(0,z.SO)("".concat("https://api-front.smf-office.com","/website-frontend/users/investor"),a)];case 1:return l=s.sent(),t((0,E.K4)(!0)),l.status?(d.ZP.success("ลงทะเบียนสำเร็จ"),$.push("/"),t((0,k.e8)(!0)),t((0,C.Lx)(["investor"])),en("")):409===l.message.response.status?(en("ไม่สามาถลงทะเบียนได้ เนื่องจากอีเมลนี้ได้ใช้ลงทะเบียนแล้ว"),d.ZP.error("ไม่สามาถลงทะเบียนได้ เนื่องจากอีเมลนี้ได้ใช้ลงทะเบียนแล้ว")):(en("ลงทะเบียนไม่สำเร็จกรุณาตรวจสอบอีกครั้ง"),d.ZP.error("ลงทะเบียนไม่สำเร็จกรุณาตรวจสอบอีกครั้ง")),t((0,E.K4)(!1)),[2]}})}),function(e){return n.apply(this,arguments)})).catch(function(e){}),[2]})}),function(e){return es.apply(this,arguments)});return(0,l.jsxs)(j.Ar,{children:[(0,l.jsxs)(X(),{children:[(0,l.jsx)("meta",{name:"title",content:"รับซื้อฝากดอกเบี้ยสูง กับ Smartfinn Matching Platform"}),(0,l.jsx)("title",{children:"รับซื้อฝากดอกเบี้ยสูง กับ Smartfinn Matching Platform"}),(0,l.jsx)("link",{rel:"canonical",href:"/register/type/investor"})]}),(0,l.jsx)(M,{children:(0,l.jsxs)("div",{className:"property",children:[(0,l.jsx)(b.x,{fontSize:"32px",fontWeight:600,lineHeight:"48px",color:"#09101D",children:"ลงทะเบียนผู้รับซื้อฝาก"}),(0,l.jsx)(p.Z,{}),(0,l.jsxs)(u.Z,{layout:"vertical",form:i,initialValues:{verified:void 0},onFinish:ed,className:"form-property",children:[(0,l.jsx)(b.x,{size:"h5",children:"ข้อมูลส่วนตัว"}),(0,l.jsxs)("div",{className:"form-property__about",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(u.Z.Item,{name:"prefix",label:"คำนำหน้า",rules:[{required:!0,message:"กรุณากรอกคำนำหน้า"}],children:(0,l.jsx)(Z.P,{virtual:!1,placeholder:"โปรดระบุ","aria-label":"คำนำหน้า",options:[{label:"นาย",value:"นาย"},{label:"นาง",value:"นาง"},{label:"นางสาว",value:"นางสาว"},]})})," ",(0,l.jsx)(u.Z.Item,{name:"consignment_seller_name",label:"ชื่อ - นามสกุล (ภาษาไทย)",rules:[{required:!0,whitespace:!0,message:"กรุณากรอกชื่อ - นามสกุล"},],children:(0,l.jsx)(w.I,{placeholder:"โปรดระบุ","aria-label":"ชื่อ นามสกุล"})})," ",(0,l.jsx)(u.Z.Item,{name:"phone",label:"เบอร์โทรศัพท์",rules:[{required:!0,message:"กรุณากรอกเบอร์โทรศัพท์"},{pattern:/^(0\d[0-9]{8})$/,message:"กรุณากรอกเบอร์โทรศัพท์ให้ถูกต้อง"},],children:(0,l.jsx)(N.Z,{customInput:K.Z,placeholder:"โปรดระบุ",suffixInput:"",maxLength:10,allowLeadingZeros:!0})}),(0,l.jsx)(u.Z.Item,{name:"line_id",label:"LINE ID",children:(0,l.jsx)(w.I,{placeholder:"โปรดระบุ","aria-label":"เบอร์โทรศัพท์"})})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(u.Z.Item,{name:"email",label:"อีเมล",rules:[{required:!0,message:"กรุณากรอกอีเมล"},{type:"email",message:"กรุณากรอกอีเมลให้ถูกต้อง"},],children:(0,l.jsx)(w.I,{placeholder:"โปรดระบุ","aria-label":"อีเมล"})}
1),(0,l.jsx)(u.Z.Item,{name:"confirm_email",dependencies:["email"],label:"ยืนยันอีเมล",rules:[{required:!0,message:"กรุณากรอกยืนยันอีเมล"},function(e){var n=e.getFieldValue;return{validator:function(e,t){return t&&n("email")!==t?Promise.reject(Error("อีเมลไม่ตรงกัน")):Promise.resolve()}}},],children:(0,l.jsx)(w.I,{placeholder:"โปรดระบุ","aria-label":"ยืนยันอีเมล",type:"email"})}),(0,l.jsx)(u.Z.Item,{name:"password",label:"รหัสผ่าน",rules:[{required:!0,message:"กรุณากรอกรหัสผ่าน"},{pattern:/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^a-zA-Z0-9])(?!.*\s).{8,20}$/,message:(0,l.jsxs)(A,{children:[(0,l.jsx)(q(),{}),(0,l.jsx)("b",{children:"โปรดตรวจการตั้งรหัสผ่านอีกครั้ง"}),(0,l.jsxs)("ul",{children:[(0,l.jsx)("li",{children:"รหัสผ่านต้องมีความยาว 8-20 ตัวอักษร"}),(0,l.jsx)("li",{children:"ต้องมีอักษรภาษาอังกฤษตัวพิมพ์ใหญ่อย่างน้อย 1 ตัว (A-Z)"}),(0,l.jsx)("li",{children:"ต้องมีอักษรภาษาอังกฤษตัวพิมพ์เล็กอย่างน้อย 1 ตัว (a-z)"}),(0,l.jsx)("li",{children:"ต้องมีตัวเลข (0-9)"}),(0,l.jsx)("li",{children:"ต้องมีอักขระพิเศษ (!@#$%^&*()_+|~-=`{}[]:”;'<>?,./)"})]})]})},],children:(0,l.jsx)(w.I,{placeholder:"โปรดระบุ","aria-label":"รหัสผ่าน",type:"password"})}),(0,l.jsx)(u.Z.Item,{name:"confirm_password",dependencies:["password"],label:"ยืนยันรหัสผ่าน",rules:[{required:!0,message:"กรุณากรอกยืนยันรหัสผ่าน"},function(e){var n=e.getFieldValue;return{validator:function(e,t){return t&&n("password")!==t?Promise.reject(Error("รหัสไม่ตรงกัน")):Promise.resolve()}}},],children:(0,l.jsx)(w.I,{placeholder:"โปรดระบุ","aria-label":"ยืนยันรหัสผ่าน",type:"password"})})]})]}),(0,l.jsx)(b.x,{size:"h5",children:"ข้อมูลเพิ่มเติม"}),(0,l.jsxs)("div",{className:"form-property__more",children:[(0,l.jsx)(u.Z.Item,{name:"occupation",label:"อาชีพปัจจุบัน",rules:[{required:!0,message:"กรุณากรอกอาชีพปัจจุบัน"}],children:(0,l.jsx)(Z.P,{virtual:!1,placeholder:"โปรดระบุ","aria-label":"อาชีพปัจจุบัน",options:P})}),(0,l.jsx)(u.Z.Item,{name:"type",label:"ประเภททรัพย์ที่ต้องการรับซื้อฝาก",rules:[{required:!0,message:"กรุณากรอกประเภททรัพย์ที่ต้องการรับซื้อฝาก"},],children:(0,l.jsx)(Z.P,{virtual:!1,placeholder:"โปรดระบุ","aria-label":"ประเภททรัพย์ที่ต้องการรับซื้อฝาก",options:R})}),(0,l.jsx)(u.Z.Item,{name:"time",label:"ช่วงเวลาที่สะดวกให้ติดต่อกลับ (จันทร์-ศุกร์)",rules:[{required:!0,message:"กรุณากรอกช่วงเวลาที่สะดวกให้ติดต่อกลับ (จันทร์-ศุกร์)"},],children:(0,l.jsx)(Z.P,{virtual:!1,placeholder:"โปรดระบุ","aria-label":"ช่วงเวลาที่สะดวกให้ติดต่อกลับ",options:O})}),(0,l.jsx)(u.Z.Item,{name:"experience",label:"ประสบการณ์รับซื้อฝาก",rules:[{required:!0,message:"กรุณากรอกประสบการณ์รับซื้อฝาก"},],children:(0,l.jsx)(y.Y,{options:[{value:1,label:"เคยรับซื้อฝาก"},{value:2,label:"ไม่เคยรับซื้อฝาก"},]})}),(0,l.jsx)(u.Z.Item,{name:"plant",label:"พื้นที่ที่ต้องการรับซื้อฝาก",rules:[{required:!0,message:"กรุณากรอกพื้นที่ที่ต้องการรับซื้อฝาก"},],children:(0,l.jsx)(Z.P,{virtual:!1,showSearch:!0,"aria-label":"พื้นที่ที่ต้องการรับซื้อฝาก",filterOption:function(e,n){return n.label.toLowerCase().includes(e.toLowerCase())},placeholder:"โปรดระบุ",options:B})}),1===h&&(0,l.jsx)(u.Z.Item,{name:"interest_rate",label:"อัตราดอกเบี้ยที่เคยได้รับ",rules:[{required:!0,message:"กรุณากรอกอัตราดอกเบี้ยที่เคยได้รับ"},],children:(0,l.jsx)(N.Z,{customInput:K.Z,placeholder:"โปรดระบุ",thousandsGroupStyle:"thousand",thous
1andSeparator:!0,suffixInput:"%"})}),(0,l.jsx)(u.Z.Item,{name:"amount",label:"วงเงินที่ต้องการรับซื้อฝาก",rules:[{required:!0,message:"กรุณากรอกวงเงินที่ต้องการรับซื้อฝาก"},],className:"form-property__more--item6",children:(0,l.jsx)(Z.P,{virtual:!1,showSearch:!0,"aria-label":"วงเงินที่ต้องการรับซื้อฝาก",filterOption:function(e,n){return n.label.toLowerCase().includes(e.toLowerCase())},placeholder:"โปรดเลือก",options:J})})]}),(0,l.jsx)(p.Z,{}),(0,l.jsx)(u.Z.Item,{name:"verified",valuePropName:"checked",rules:[{required:!0,message:"กรุณาอ่านและยอมรับข้อตกลงและเงื่อนไข"},function(e){return e.getFieldValue,{validator:function(e,n){return n?Promise.resolve():Promise.reject(Error("กรุณาอ่านและยอมรับข้อตกลงและเงื่อนไข"))}}},],children:(0,l.jsx)(m.Z,{className:"property__checkbox",children:(0,l.jsxs)(b.x,{size:"h2",children:["ฉันได้อ่านและยอมรับ",(0,l.jsx)("span",{children:(0,l.jsx)(f(),{href:"/privacy-policy",children:(0,l.jsx)("a",{target:"_blank",children:"ข้อตกลงและเงื่อนไขทุกประการ"})})})]})})})]}),(0,l.jsxs)("div",{className:"property__button",children:[(0,l.jsx)(I.z,{onClick:function(){return i.submit()},children:"ลงทะเบียน"}),ee&&(0,l.jsx)(b.x,{size:"h2",lineHeight:"40px",color:L.O.red,children:ee})]})]})})]})};n.default=D;var M=$.ZP.div(F()),A=$.ZP.div(O())},96277:function(e,n,t){var r=t(67294);function a(e){return r.createElement("svg",e,r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 11C9.45 11 9 10.55 9 10V6C9 5.45 9.45 5 10 5C10.55 5 11 5.45 11 6V10C11 10.55 10.55 11 10 11ZM11 15H9V13H11V15Z",fill:"#1D1D1D"}))}a.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.exports=a,a.default=a}},function(e){e.O(0,[9260,5675,3616,8572,3480,1082,6887,4538,8901,2077,7864,7333,1935,70,747,3458,9085,7584,7346,5725,6802,4333,9774,2888,179],function(){return e(e.s=89770)}),_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.