1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7424],{12963:function(e,n,r){"use strict";r.d(n,{Z:function(){return N}});var t=r(87462),a=r(63366),o=r(67294),s=(r(76607),r(86010)),i=r(94780),c=r(90948),l=r(71657),u=r(15861),p=r(41796),d=r(88169),m=r(85893),g=(0,d.Z)((0,m.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),f=r(49990);const h=(0,c.ZP)(f.Z)((({theme:e})=>(0,t.Z)({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},"light"===e.palette.mode?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":(0,t.Z)({},"light"===e.palette.mode?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":(0,t.Z)({boxShadow:e.shadows[0]},"light"===e.palette.mode?{backgroundColor:(0,p._4)(e.palette.grey[200],.12)}:{backgroundColor:(0,p._4)(e.palette.grey[600],.12)})}))),x=(0,c.ZP)(g)({width:24,height:16});var b=function(e){const n=e;return(0,m.jsx)("li",{children:(0,m.jsx)(h,(0,t.Z)({focusRipple:!0},e,{ownerState:n,children:(0,m.jsx)(x,{ownerState:n})}))})},v=r(34867);function Z(e){return(0,v.Z)("MuiBreadcrumbs",e)}var j=(0,r(1588).Z)("MuiBreadcrumbs",["root","ol","li","separator"]);const y=["children","className","component","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],w=(0,c.ZP)(u.Z,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,n)=>[{[`& .${j.li}`]:n.li},n.root]})({}),C=(0,c.ZP)("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,n)=>n.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),k=(0,c.ZP)("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,n)=>n.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function S(e,n,r,t){return e.reduce(((a,o,s)=>(s<e.length-1?a=a.concat(o,(0,m.jsx)(k,{"aria-hidden":!0,className:n,ownerState:t,children:r},`separator-${s}`)):a.push(o),a)),[])}var N=o.forwardRef((function(e,n){const r=(0,l.Z)({props:e,name:"MuiBreadcrumbs"}),{children:c,className:u,component:p="nav",expandText:d="Show path",itemsAfterCollapse:g=1,itemsBeforeCollapse:f=1,maxItems:h=8,separator:x="/"}=r,v=(0,a.Z)(r,y),[j,k]=o.useState(!1),N=(0,t.Z)({},r,{component:p,expanded:j,expandText:d,itemsAfterCollapse:g,itemsBeforeCollapse:f,maxItems:h,separator:x}),P=(e=>{const{classes:n}=e;return(0,i.Z)({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},Z,n)})(N),M=o.useRef(null),R=o.Children.toArray(c).filter((e=>o.isValidElement(e))).map(((e,n)=>(0,m.jsx)("li",{className:P.li,children:e},`child-${n}`)));return(0,m.jsx)(w,(0,t.Z)({ref:n,component:p,color:"text.secondary",className:(0,s.Z)(P.root,u),ownerState:N},v,{children:(0,m.jsx)(C,{className:P.ol,ref:M,ownerState:N,children:S(j||h&&R.length<=h?R:(e=>f+g>=e.length?e:[...e.slice(0,f),(0,m.jsx)(b,{"aria-label":d,onClick:()=>{k(!0);const e=M.current.querySelector("a[href],button,[tabindex]");e&&e.focus()}},"ellipsis"),...e.slice(e.length-g,e.length)])(R),P.separator,x,N)})}))}))},44267:function(e,n,r){"use strict";r.d(n,{Z:function(){return f}});var t=r(87462),a=r(63366),o=r(67294),s=r(86010),i=r(94780),c=r(90948),l=r(71657),u=r(34867);function p(e){return(0,u.Z)("MuiCardContent",e)}(0,r(1588).Z)("MuiCardContent",["root"]);var d=r(85893);const m=["className","component"],g=(0,c.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,n)=>n.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}})));var f=o.forwardRef((function(e,n){const r=(0,l.Z)({props:e,name:"MuiCardContent"}),{className:o,component:c="div"}=r,u=(0,a.Z)(r,m),f=(0,t.Z)({},r,{component:c}),h=(e=>{const{classes:n}=e;return(0,i.Z)({root:["root"]},p,n)})(f);return(0,d.jsx)(g,(0,t.Z)({as:c,className:(0,s.Z)(h.root,o),ownerState:f,ref:n},u))}))},66242:function(e,n,r){"use strict";r.d(n,{Z:function(){return h}});var t=r(87462),a=r(63366),o=r(67294),s=r(86010),i=r(94780),c=r(90948),l=r(71657),u=r(55113),p=r(34867);function d(e){return(0,p.Z)("MuiCard",e)}(0,r(1588).Z)("MuiCard",["root"]);var m=r(85893);const g=["className","raised"],f=(0,c.ZP)(u.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,n)=>n.root})((()=>({overflow:"hidden"})));var h=o.forwardRef((function(e,n){const r=(0,l.Z)({props:e,name:"MuiCard"}),{className:o,raised:c=!1}=r,u=(0,a.Z)(r,g),p=(0,t.Z)({},r,{raised:c}),h=(e=>{const{classes:n}=e;return(0,i.Z)({root:["root"]},d,n)})(p);return(0,m.jsx)(f,(0,t.Z)({className:(0,s.Z)(h.root,o),elevation:c?8:void 0,ref:n,ownerState:p},u))}))},9434:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/loan/loan-types",function(){return r(59777)}])},55238:function(e,n,r){"use strict";r.d(n,{Z:function(){return d}});var t=r(85893),a=r(66763),o=r(67294),s=r(26590),i=r(66242),c=r(44267),l=r(87357),u=r(15861),p=r(3075);function d(e){var n=e.icon,r=e.name,d=e.readMore,h=(0,o.useState)(!1),x=h[0],b=h[1],v=(0,s.$G)("common");return(0,t.jsx)(i.Z,{sx:[{height:"100%",background:'url("/images/backgrounds/bg-white.jpg")',transition:"background 1s ease-in-out",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center",cursor:"pointer",boxShadow:"-1px 1px 9px rgba(0, 0, 0, 0.05)"},x&&{background:'url("/images/backgrounds/rectangle-blue.jpg")',backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center"}],onMouseEnter:function(){return b(!0)},onMouseLeave:function(){return b(!1)},onClick:d,children:(0,t.jsx)(c.Z,{sx:{height:"100%"},children:(0,t.jsxs)(l.Z,{sx:m,children:[(0,t.jsx)(l.Z,{sx:f,children:n&&(0,t.jsx)(a.Z,{src:"".concat(p._n).concat(n),alt:"loan icon",width:55,height:55,unoptimized:!0})}),(0,t.jsx)(u.Z,{variant:"subtitle1",component:"span",align:"center",fontWeight:{xs:400,md:500},fontSize:{xs:13,sm:16},children:r}),(0,t.jsxs)(l.Z,{display:{xs:"none",md:"flex"},alignItems:"center",children:[(0,t.jsx)(u.Z,{variant:"body1",component:"span",color:"secondary.main",fontSize:16,children:v.t("detail")}),(0,t.jsx)(l.Z,{sx:[g,x&&{ml:3}],children:(0,t.jsx)(a.Z,{src:"/images/icons/arrow-right.svg",alt:"arrow right icon",width:25,height:15,unoptimized:!0})})]})]})})})}var m={position:"relative",display:"flex",flexDirection:"column",alignItems:{xs:"center",md:"flex-start"},justifyContent:{xs:"flex-start",md:"space-between"},rowGap:"20px",marginTop:"5px",height:"100%"},g={display:"flex",alignItems:"flex-end",transition:"margin-left 1s ease-in-out"},f={display:"flex",alignItems:"center",height:"60px"}},26571:function(e,n,r){"use strict";r.d(n,{Z:function(){return i}});var t=r(85893),a=r(733),o=r.n(a),s=r(78262);function i(e){var n=e.isOpen;return(0,t.jsx)(s.Z,{open:n,PaperProps:{style:{boxShadow:"none",background:"none"}},children:(0,t.jsx)(o(),{type:"bubbles",color:"#01AA8D",height:222,width:125})})}},47902:function(e,n,r){"use strict";r.d(n,{T:function(){return t}});var t={banner1:"/images/banner/banner1.jpg",finance:"/images/banner/finance-blue.jpg",businessman:"/images/banner/businessman.jpg",carMoney:"/images/banner/car-money.jpg",businessPeople:"/images/banner/business-people.jpg",handshake:"/images/banner/handshake.jpg",town:"/images/banner/town.jpg",graph:"/images/banner/graph.jpg",map:"/images/banner/map.jpg",report:"/images/banner/report.jpg",contactInvester:"/images/banner/contact-invester.jpg",research:"/images/banner/research.jpg",news1:"/images/banner/news1.jpg",news2:"/images/banner/news2.jpg",loan:"/images/banner/loan.jpg"}},59777:function(e,n,r){"use strict";r.r(n),r.d(n,{__N_SSG:function(){return C},default:function(){return k}});var t=r(34051),a=r.n(t),o=r(85893),s=r(67294),i=r(9008),c=r.n(i),l=r(26590),u=r(11163),p=r(26447),d=r(15861),m=r(86886),g=r(63445),f=r(55238),h=r(26571),x=r(47902),b=r(3075),v=r(76149),Z=r(14233);function j(e,n,r,t,a,o,s){try{var i=e[o](s),c=i.value}catch(l){return void r(l)}i.done?n(c):Promise.resolve(c).then(t,a)}function y(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function w(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){y(e,n,r[n])}))}return e}k.getLayout=function(e){return(0,o.jsx)(g.Z,{bannerTitle:"staticNavbar.loan",bannerImg:x.T.loan,children:e})};var C=!0;function k(){var e=(0,l.$G)("title"),n=(0,u.useRouter)(),r=(0,s.use
1State)(!0),t=r[0],i=r[1],g=(0,s.useState)([]),x=g[0],y=g[1];return(0,s.useEffect)((function(){var e=function(){var e,r=(e=a().mark((function e(){var r,t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.Z.findAll({page:1,pageLimit:100});case 3:r=e.sent,t=r.data,y(t.map((function(e){return w({},e,{loanTypeName:(0,Z.Z)(String(n.query.locale))?e.loanTypeNameTH:e.loanTypeNameEN,content:(0,Z.Z)(String(n.query.locale))?e.contentTH:e.contentEN})}))),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0);case 11:return e.prev=11,i(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})),function(){var n=this,r=arguments;return new Promise((function(t,a){var o=e.apply(n,r);function s(e){j(o,t,a,s,i,"next",e)}function i(e){j(o,t,a,s,i,"throw",e)}s(void 0)}))});return function(){return r.apply(this,arguments)}}();e()}),[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c(),{children:(0,o.jsxs)("title",{children:[e.t("loan-types")," - ",b.Jt]})}),(0,o.jsx)(h.Z,{isOpen:t}),!t&&(0,o.jsxs)(p.Z,{direction:"column",rowGap:{xs:5,lg:8},mt:{xs:5,lg:8},children:[(0,o.jsx)(d.Z,{variant:"h5",component:"h1",align:"center",color:"secondary.main",fontWeight:600,children:e.t("loan-types")}),(0,o.jsx)(m.ZP,{container:!0,spacing:2,children:x.map((function(e,r){var t=e.loanTypeName,a=e.icon,s=e.loanTypeId,i=e.urlTitle;return(0,o.jsx)(m.ZP,{item:!0,xs:6,lg:4,children:(0,o.jsx)(f.Z,{name:t||"",icon:a,readMore:function(){return n.push("".concat(n.asPath).concat(i))}},s)},r)}))})]})]})}},21669:function(){}},function(e){e.O(0,[2700,8224,1486,8810,3445,9774,2888,179],(function(){return n=9434,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.