1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[66],{"1Nbu":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a}));var r={APF:"AlphaFast",ARM:"Aramex",BEE:"BEEExpress",BMD:"BmDelivery",CJE:"CJ Express",CJL:"CJ Logistics",CJLX:"CJLogisticShopX",DHL:"DHL eCommerce",FLE:"FlashExpress",JNTP:"JAndTExpress Pickup",JNTPF:"JAndTExpress PickUp Free",JNTD:"JAndTExpress Dropoff",JWDC:"JWD Express Chilled",JWDF:"JWD Express Frozen",LLM:"Lalamove",NJV:"Ninja Van",NKS:"Nikos Logistic",SCG:"SCG Express",SCGC:"SCG Express Chilled",SCGF:"SCG Express Frozen",SEN:"SendIt",SNO:"SEINO SAHA LOGISTIC",THP:"EMS",TP2:"\u0e25\u0e07\u0e17\u0e30\u0e40\u0e1a\u0e35\u0e22\u0e19",SKT:"Skootar",KRY:"Kerry",KRYP:"Kerry Pickup",KRYD:"Kerry Dropoff",BEST:"Best Express",SPE:"SHIPPOP Express",POM:"Popman"},o={kryd:"kerry",jntd:"jte",thp_inter:"thp_inter",popshop:"popshop",thp:"thp"},a={kerry:"kryd",jte:"jntd",thp_inter:"thp_inter",popshop:"popshop",thp:"thp"}},LmTz:function(e,t,n){"use strict";n.r(t),n.d(t,"__N_SSP",(function(){return T}));var r=n("cpVT"),o=n("q1tI"),a=n.n(o),i=n("R/WZ"),s=n("tr08"),c=n("lopY"),p=n("ADg1"),l=n("cVXz"),d=n("Ji2X"),u=n("tRbT"),f=n("r9w1"),h=n("7SZd"),g=n("PsDL"),b=n("O0Pz"),y=n.n(b),m=n("vDqi"),O=n.n(m),k=n("kAHO"),x=n("5DBG"),j=n("LlSE"),S=n("20a2"),E=n("xm5f"),w=n("1Nbu"),P=n("AmVM"),v=a.a.createElement;function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var C=["thp_inter"],L=Object(i.a)((function(e){return{root:{minHeight:"100vh",display:"flex",flexDirection:"column"},page:{flexGrow:1},pageContainer:{display:"flex",flexDirection:"column",alignItems:"center","& h1":D(D({textAlign:"center",fontWeight:500,fontSize:52},e.headerFont),{},Object(r.a)({lineHeight:1.3},e.breakpoints.down("xs"),{fontSize:40,marginTop:e.spacing(2)}))},fieldGrid:Object(r.a)({padding:e.spacing(1)},e.breakpoints.down("xs"),{paddingLeft:0,paddingRight:0}),mapWrapper:D(D({width:"100%"},e.homeStyle.boxShadow),{},{borderRadius:10,margin:"".concat(e.spacing(5),"px 0 ").concat(e.spacing(10),"px 0")}),button:Object(r.a)({height:"100%"},e.breakpoints.down("xs"),D({},e.homeStyle.button)),goToKerry:D(D({width:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:600,textAlign:"center",fontSize:32,color:"#828282",padding:e.spacing(2)},e.headerFont),{},Object(r.a)({},e.breakpoints.down("sm"),{fontSize:22})),goToKerryLogoLine:Object(r.a)({display:"flex",flexDirection:"row",alignItems:"center"},e.breakpoints.down("sm"),{flexDirection:"column"}),kerryLogo:Object(r.a)({width:350,margin:"0 ".concat(e.spacing(2),"px"),verticalAlign:"middle"},e.breakpoints.down("xs"),{width:300}),kerryBtn:Object(r.a)({padding:e.spacing(2),backgroundColor:"#F37325 !important"},e.breakpoints.down("xs"),{padding:e.spacing(.5)}),kerryBtnWrapper:Object(r.a)({margin:e.spacing(2),marginTop:e.spacing(4)},e.breakpoints.down("xs"),{width:"100%"}),kerryBtnLabel:Object(r.a)({fontSize:22},e.breakpoints.down("sm"),{fontSize:20})}})),T=!0;t.default=function(){var e=Object(s.a)(),t=Object(c.a)(e.breakpoints.down("xs")),n=L(),r=Object(S.useRouter)(),a=Object(o.useContext)(P.a).onRouting,i=Object(E.b)("dropoff").t,b=Object(o.useState)(null),m=b[0],N=b[1],D=Object(o.useState)(!1),T=D[0],_=D[1],J=Object(o.useState)([]),K=J[0],A=J[1],I=Object(o.useState)("thp"),F=I[0],W=I[1],R=Object(o.useState)(!0),B=R[0],G=R[1],z=Object(o.useState)(""),H=z[0],q=z[1],M=Object(o.useState)([]),X=(M[0],M[1]);Object(o.useEffect)((function(){var e,t;r.isReady&&("undefined"!==typeof navigator&&"geolocation"in navigator&&navigator.geolocation.getCurrentPosition((function(e){N({lat:e.co
1ords.latitude,lng:e.coords.longitude}),_(!0)}),(function(e){e.code,e.PERMISSION_DENIED,N({lat:13.7563802,lng:100.5324896})})),Object.keys(w.c).includes(null===(e=r.query.courier)||void 0===e?void 0:e.toLowerCase())&&W(w.c[null===(t=r.query.courier)||void 0===t?void 0:t.toLowerCase()]))}),[r.isReady]);var V=function(e){switch(e){case"thp":return"thaipost";case"jte":return"jte";case"popshop":return"popshop";case"thp_inter":return"thp_inter";default:return""}},Y=function(){if(G(!0),null!==m){O.a.post("/api/dropoff/".concat(V(F),"/nearby"),{latitude:m.lat,longitude:m.lng}).then((function(e){"popshop"===F&&X(e.data.data),A(e.data.data),G(!1)})).catch((function(e){G(!1)}))}},Z=function(){H.trim().length&&O.a.post("/api/dropoff/".concat(V(F),"/search"),{qurey:H.trim()}).then((function(e){A(e.data.data),G(!1)})).catch((function(e){G(!1)}))};Object(o.useEffect)((function(){Y()}),[m]),Object(o.useEffect)((function(){"kerry"!==F&&Y()}),[F]);return v("div",{className:n.root},v(k.a,{title:"\u0e08\u0e38\u0e14\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e1e\u0e31\u0e2a\u0e14\u0e38 Drop-off \u0e17\u0e38\u0e01\u0e02\u0e19\u0e2a\u0e48\u0e07 - SHIPPOP",keywords:"\u0e08\u0e38\u0e14\u0e2a\u0e48\u0e07\u0e02\u0e2d\u0e07, drop off, \u0e08\u0e38\u0e14\u0e27\u0e32\u0e07\u0e02\u0e2d\u0e07, \u0e23\u0e49\u0e32\u0e19\u0e23\u0e31\u0e1a\u0e1d\u0e32\u0e01, \u0e23\u0e31\u0e1a\u0e2a\u0e48\u0e07\u0e1e\u0e31\u0e2a\u0e14\u0e38, \u0e1d\u0e32\u0e01\u0e2a\u0e48\u0e07\u0e1e\u0e31\u0e2a\u0e14\u0e38",description:"\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e08\u0e38\u0e14\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e23\u0e31\u0e1a\u0e1d\u0e32\u0e01\u0e2a\u0e48\u0e07\u0e1e\u0e31\u0e2a\u0e14\u0e38 Drop-off, POP SHIPPOP, \u0e44\u0e1b\u0e23\u0e29\u0e13\u0e35\u0e22\u0e4c\u0e44\u0e17\u0e22, J&T Express, Kerry Express \u0e43\u0e01\u0e25\u0e49\u0e40\u0e04\u0e35\u0e22\u0e07 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e1d\u0e32\u0e01\u0e2a\u0e48\u0e07\u0e1e\u0e31\u0e2a\u0e14\u0e38 \u0e2a\u0e48\u0e07\u0e02\u0e2d\u0e07\u0e44\u0e14\u0e49\u0e40\u0e2d\u0e07\u0e43\u0e01\u0e25\u0e49\u0e1a\u0e49\u0e32\u0e19 \u0e2a\u0e30\u0e14\u0e27\u0e01\u0e41\u0e16\u0e21\u0e22\u0e31\u0e07\u0e1b\u0e23\u0e30\u0e2b\u0e22\u0e31\u0e14\u0e40\u0e27\u0e25\u0e32\u0e2d\u0e35\u0e01\u0e14\u0e49\u0e27\u0e22"},v("div",{className:n.page},v(d.a,{className:n.pageContainer},v("h1",null,i("page-title")),v(u.a,{container:!0},v(u.a,{item:!0,xs:12,sm:3,className:n.fieldGrid},v(p.a,{variant:"outlined",fullWidth:!0},v(l.a,{id:"select-courier",value:F,onChange:function(e){if(W(e.target.value),Object.keys(w.b).includes(e.target.value)){var t=w.b[e.target.value];a("/nearby-dropoff","courier=".concat(t),{isReplace:!0,shallow:!0})}},native:!0},v("option",{value:"thp"},i("thai-post")),v("option",{value:"thp_inter"},i("thai-post-inter")),v("option",{value:"jte"},"J&T Express"),v("option",{value:"kerry"},"Kerry Express"),v("option",{value:"popshop"},"POP SHIPPOP")))),v(u.a,{item:!0,xs:12,sm:7,className:n.fieldGrid},v(f.a,{fullWidth:!0,variant:"outlined",label:i(t?"search-by-short":"search-by"),disabled:"kerry"===F,InputProps:{endAdornment:v(h.a,{position:"end"},v(g.a,{onClick:function(){T?Y():alert(i("please-enable-location"))},disabled:"kerry"===F},v(y.a,null)))},value:H,onChange:function(e){return q(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&Z()}})),v(u.a,{item:!0,xs:12,sm:2,className:n.fieldGrid},v(x.a,{fullWidth:!0,className:n.button,onClick:function(){Z()},disabled:"kerry"===F},i("search")))),v("div",{className:n.mapWrapper},"kerry"===F?v("div",{className:n.goToKerry},v("div",{className:n.goToKerryLogoLine},i("you-can-find-kerry-1"),v("img",{src:"/static/img/couriers/kerry2.png",alt:"Kerry Express",className:n.kerryLogo}),i("you-can-find-kerry-2")),i("you-can-find-kerry-3"),v("a",{href:"https://th.kerryexpress.com/th/where-we-are/",target:"_blank",className:n.kerryBtnWrapper},v(x.a,{variant:"contained",className:n.kerryBtn,fullWidth:!0},v("span",{className:n.kerryBtnLabel},i("find-branches")," ",t&&v("br",null),"Kerry Express ",">")))):v(j.a,{displayWorkHours:!C.includes(F),locationsData:K,userLocation:m,showUserLocation:T,height:t?300:600,isLoading:B}))))))}},dqZF:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/nearby-dropoff",function(){return n("LmTz")}])}},[["dqZF",0,1,3,2,4,5,6,7,8,9,10,11,31]]]); 2//# sourceMappingURL=nearby-dropoff-c957fd6dd1d4377a5f9e.js.map
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.