PageSourceSearch

https://smartifyhome.co/_next/static/chunks/pages/searching-611336a051ab31ec.js

js smartifyhome.co collected 2026-10-02 16:00:43 UTC 21,225 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6977],{66242:function(e,t,i){"use strict";i.d(t,{Z:function(){return x}});var n=i(87462),r=i(63366),o=i(67294),l=i(90512),a=i(94780),s=i(90948),c=i(28628),d=i(90629),u=i(1588),p=i(34867);function getCardUtilityClass(e){return(0,p.ZP)("MuiCard",e)}(0,u.Z)("MuiCard",["root"]);var h=i(85893);let m=["className","raised"],useUtilityClasses=e=>{let{classes:t}=e;return(0,a.Z)({root:["root"]},getCardUtilityClass,t)},C=(0,s.ZP)(d.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),v=o.forwardRef(function(e,t){let i=(0,c.i)({props:e,name:"MuiCard"}),{className:o,raised:a=!1}=i,s=(0,r.Z)(i,m),d=(0,n.Z)({},i,{raised:a}),u=useUtilityClasses(d);return(0,h.jsx)(C,(0,n.Z)({className:(0,l.Z)(u.root,o),elevation:a?8:void 0,ref:t,ownerState:d},s))});var x=v},83965:function(e,t,i){"use strict";i.d(t,{Z:function(){return g}});var n=i(63366),r=i(87462),o=i(67294),l=i(90512),a=i(94780),s=i(28628),c=i(90948),d=i(1588),u=i(34867);function getCardMediaUtilityClass(e){return(0,u.ZP)("MuiCardMedia",e)}(0,d.Z)("MuiCardMedia",["root","media","img"]);var p=i(85893);let h=["children","className","component","image","src","style"],useUtilityClasses=e=>{let{classes:t,isMediaComponent:i,isImageComponent:n}=e;return(0,a.Z)({root:["root",i&&"media",n&&"img"]},getCardMediaUtilityClass,t)},m=(0,c.ZP)("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e,{isMediaComponent:n,isImageComponent:r}=i;return[t.root,n&&t.media,r&&t.img]}})(({ownerState:e})=>(0,r.Z)({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"})),C=["video","audio","picture","iframe","img"],v=["picture","img"],x=o.forwardRef(function(e,t){let i=(0,s.i)({props:e,name:"MuiCardMedia"}),{children:o,className:a,component:c="div",image:d,src:u,style:x}=i,g=(0,n.Z)(i,h),f=-1!==C.indexOf(c),Z=!f&&d?(0,r.Z)({backgroundImage:`url("${d}")`},x):x,w=(0,r.Z)({},i,{component:c,isMediaComponent:f,isImageComponent:-1!==v.indexOf(c)}),j=useUtilityClasses(w);return(0,p.jsx)(m,(0,r.Z)({className:(0,l.Z)(j.root,a),as:c,role:!f&&d?"img":void 0,ref:t,style:Z,ownerState:w,src:f?d||u:void 0},g,{children:o}))});var g=x},49183:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/searching",function(){return i(76571)}])},23077:function(e,t,i){"use strict";i.d(t,{d:function(){return TopicUnderline}});var n=i(85893),r=i(2734),o=i(61730),l=i(5616),a=i(15861),s=i(67720);let TopicUnderline=e=>{let{topic:t,sx:i}=e,c=(0,r.Z)(),d=(0,o.Z)(c.breakpoints.down("md"));return(0,n.jsxs)(l.Z,{children:[(0,n.jsx)(a.Z,{textAlign:"center",variant:"h4",color:"".concat(c.palette.grey[900]," !important"),sx:{fontWeight:700,fontSize:d?"26px":"30px",...i},children:t}),(0,n.jsx)(s.Z,{sx:{backgroundColor:c.palette.primary.main,width:d?"50px":"100px",height:d?"3px":"5px",mx:"auto",mt:"6px"}})]})}},18789:function(e,t,i){"use strict";i.d(t,{u:function(){return TopicCard},x:function(){return PriceDetail}});var n=i(85893),r=i(67421),o=i(2734),l=i(61730),a=i(51233),s=i(15861),c=i(25090),d=i(28464);let TopicCard=e=>{let{topic:t,sx:i}=e,{t:a}=(0,r.$G)(),s=(0,o.Z)(),c=(0,l.Z)(s.breakpoints.down("md"));return(0,n.jsx)(d.Z,{line:1,textAlign:"left",variant:"h6",color:s.palette.grey[800],sx:{fontWeight:700,fontSize:c?"20px":"22px",width:"100%",...i},children:a(t)})},PriceDetail=e=>{let{price:t,salePrice:i,sx:d}=e,{t:u}=(0,r.$G)("serviceRequests"),p=(0,o.Z)(),h=(0,l.Z)(p.breakpoints.down("md")),m=null==t?"".concat(p.palette.grey[900]," !important"):"#E50000 !important";return console.log("price -->",t),console.log("salePrice",i),(0,n.jsxs)(a.Z,{direction:"row",alignItems:"end",justifyContent:"start",children:[(0,n.jsx)(s.Z,{textAlign:"left",variant:"body1",sx:{fontWeight:500,fontSize:h?"20px":"22px",color:m},children:u("currencySymbol")}),(0,n.jsx)(s.Z,{textAlign:"left",variant:"body1",sx:{fontWeight:500,fontSize:h?"20px":"22px",color:m,ml:"3px"},children:null==t?"".concat((0,c.x)(i)):"".concat((0,c.x)(t))}),null!=t&&t>=0&&(0,n.jsxs)(s.Z,{textAlign:"left",variant:"body1",sx:{fontWeight:400,fontSize:h?"12px":"14px",color:"#808184 !important",ml:"3px",mb:h?"2.8px":"4px",textDecoration:"line-through"},children:[u("currencySymbol")," ",(0,c.x)(i)]})]})}},76571:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSG:function(){return H},default:function(){return pages_searching}});var n=i(85893),r=i(9008),o=i.n(r),l=i(67421),a=i(67294),s=i(11163),c=i(33299),d=i(87536),u=i(21514),p=i(29868),h=i(81641),m=i(68488),C=i(89362);let v=(0,a.createContext)({loading:!1,fMethods:void 0,subCatagories:[],isAlert:0,filterCatagories:e=>{}});function ServiceProvider(e){let{...t}=e,i=(0,d.cI)(),{locale:r}=(0,s.useRouter)(),{data:o}=(0,c.useSession)(),{currentLocation:l}=(0,C.bp)(),[x,g]=(0,a.useState)(0),[f,Z]=(0,a.useState)(!0),[w,j]=(0,a.useState)([]),[y,b]=(0,a.useState)();(0,a.useEffect)(()=>{Z(!1)},[]),(0,a.useEffect)(()=>{let fetchAddressData=async()=>{r&&(null==o?void 0:o.jwt)&&await (0,h.sg)(null==o?void 0:o.jwt,r).then(e=>{if((null==e?void 0:e.length)>=0){let t=(0,m.zV)(e);b(t)}})};fetchAddressData()},[o,r]);let findLowestPriceItem=e=>{let t=null,i=Number.POSITIVE_INFINITY;for(let n of e)null!==n.salePrice&&n.salePrice<i?(i=n.salePrice,t=n):null===n.salePrice&&n.price<i&&(i=n.price,t=n);return t},_=(0,a.useCallback)(async(e,t)=>{let i=await (0,u.n)(r||"th",(null==o?void 0:o.jwt)||"",e,"service,e_commerce",t,!1,l),n=i.data.map((e,t)=>{let i=findLowestPriceItem(null==e?void 0:e.issue),n=(0,p.Z)("SD",e.serviceArea.map(e=>e.province).join(","),e.serviceArea);return{...e,banner:e.banner,id:e.id,price:null==i?void 0:i.price,salePrice:null==i?void 0:i.salePrice,serviceLocation:n,issue:e.issueList}});j(n),Z(!1)},[r]),filterCatagories=e=>{e&&(null==o?void 0:o.jwt)&&(null==y?void 0:y.id)?(g(1),Z(!0),_(e,y.id)):e&&(null==o?void 0:o.jwt)?(g(1),Z(!0),_(e)):(g(0),j([]))},S=(0,a.useMemo)(()=>({loading:f,fMethods:i,subCatagories:w,isAlert:x,filterCatagories}),[f,x,w,y]);return(0,n.jsx)(v.Provider,{value:S,...t})}let useSearchingContext=()=>(0,a.useContext)(v);var x=i(2734),g=i(61730),f=i(65582),Z=i(5616),w=i(15861),j=i(5925);function SearchIcon(e){let{width:t}=e;return(0,n.jsxs)("svg",{width:t||"50",height:t||"51",viewBox:"0 0 50 51",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.3122 37.9995C22.5693 37.9995 24.8043 37.555 26.8895 36.6912C28.9748 35.8275 30.8695 34.5615 32.4655 32.9655C34.0615 31.3695 35.3275 29.4748 36.1912 27.3895C37.055 25.3043 37.4995 23.0693 37.4995 20.8122C37.4995 18.5552 37.055 16.3202 36.1912 14.235C35.3275 12.1497 34.0615 10.255 32.4655 8.659C30.8695 7.06301 28.9748 5.79701 26.8895 4.93326C24.8043 4.06952 22.5693 3.62496 20.3122 3.62496C15.7539 3.62496 11.3822 5.43576 8.159 8.659C4.93576 11.8822 3.12496 16.2539 3.12496 20.8122C3.12496 25.3706 4.93576 29.7422 8.159 32.9655C11.3822 36.1887 15.7539 37.9995 20.3122 37.9995ZM40.6245 20.8122C40.6245 26.1994 38.4845 31.3659 34.6752 35.1752C30.8659 38.9845 25.
16994 41.1245 20.3122 41.1245C14.9251 41.1245 9.7586 38.9845 5.94932 35.1752C2.14003 31.3659 0 26.1994 0 20.8122C0 15.4251 2.14003 10.2586 5.94932 6.44932C9.7586 2.64003 14.9251 0.5 20.3122 0.5C25.6994 0.5 30.8659 2.64003 34.6752 6.44932C38.4845 10.2586 40.6245 15.4251 40.6245 20.8122Z",fill:"#4CDA6D"}),(0,n.jsx)("path",{d:"M32.3246 37.1933C32.4183 37.3183 32.5183 37.437 32.6308 37.5527L44.6619 49.5838C45.2479 50.1701 46.0428 50.4997 46.8717 50.5C47.7007 50.5003 48.4958 50.1713 49.0822 49.5853C49.6686 48.9994 49.9981 48.2045 49.9984 47.3755C49.9987 46.5466 49.6697 45.7514 49.0838 45.1651L37.0527 33.134C36.9409 33.0209 36.8208 32.9164 36.6933 32.8215C35.4674 34.493 33.9943 35.9682 32.3246 37.1964V37.1933Z",fill:"#4CDA6D"})]})}var alertEmpty=()=>{let e=(0,x.Z)(),t=(0,g.Z)(e.breakpoints.down("md")),{t:i}=(0,l.$G)("searching"),{isAlert:r}=useSearchingContext();return(0,n.jsxs)(Z.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"70vh"},children:[1===r?(0,n.jsx)(j.Z,{}):(0,n.jsx)(SearchIcon,{}),(0,n.jsx)(w.Z,{textAlign:"center",variant:"body1",color:e.palette.grey[800],sx:{fontWeight:700,fontSize:t?"22px":"26px",width:"100%",mt:3,mb:.5},children:i(1===r?"no_search_results":"please_enter_search_term")}),1===r&&(0,n.jsx)(w.Z,{textAlign:"center",variant:"body1",color:e.palette.grey[800],sx:{fontWeight:500,fontSize:t?"18px":"22px",width:"100%"},children:i("please_check_again")})]})},y=i(90948),b=i(98271),_=i(51233),S=i(87109),M=i(82955),I=i(23077);let P=(0,y.ZP)(b.Z)(e=>{let{theme:t}=e;return{"& .MuiOutlinedInput-root":{borderRadius:"50px",height:"50px",legend:{marginLeft:"15px"}},"& .MuiInputLabel-shrink":{paddingLeft:"20px",color:t.palette.grey[700]}}});var search=()=>{let e=(0,x.Z)(),t=(0,g.Z)(e.breakpoints.down("md")),{t:i}=(0,l.$G)("searching"),{fMethods:r,isAlert:o,filterCatagories:s}=useSearchingContext(),[c,u]=(0,a.useState)(null),handleSearch=e=>{c&&clearTimeout(c);let t=window.setTimeout(()=>{s(e)},1e3);u(t)},handleChange=e=>{let{value:t}=e.target;r.setValue("search",t),handleSearch(t)};return(0,n.jsx)(_.Z,{direction:"row",alignItems:"center",sx:{maxWidth:t?"350px":"500px",mx:"auto"},children:(0,n.jsxs)(Z.Z,{sx:{margin:"auto"},children:[(0,n.jsx)(d.Qr,{name:"search",control:null==r?void 0:r.control,render:o=>{var l;let{field:a}=o;return(0,n.jsx)(P,{type:"text",...a,InputProps:{startAdornment:(0,n.jsx)(S.Z,{position:"start",children:(0,n.jsx)(M.Z,{width:"16",height:"16",color:e.palette.grey[600]})}),sx:{borderRadius:50,height:"50px",minWidth:"348px",width:t?"100%":"440px",backgroundColor:e.palette.grey[100]}},placeholder:i("search"),error:!!(null==r?void 0:null===(l=r.errors)||void 0===l?void 0:l.name),sx:{mb:2,input:{"&::placeholder":{opacity:1,color:e.palette.grey[600]}}},size:"small",onChange:handleChange})}}),1===o&&(0,n.jsx)(I.d,{topic:i("search_results")})]})})},k=i(86886),A=i(66242),D=i(83965),V=i(18789),L=i(87077),subCategoryList=()=>{let e=(0,x.Z)(),t=(0,g.Z)(e.breakpoints.down("md")),{t:i}=(0,l.$G)("searching"),{push:r}=(0,s.useRouter)(),{subCatagories:o}=useSearchingContext(),getBanner=e=>{var t,i,n,r,l,a;return(null===(t=o[e])||void 0===t?void 0:t.coverImage)?(null===(r=o[e])||void 0===r?void 0:null===(n=r.coverImage)||void 0===n?void 0:null===(i=n.attributes)||void 0===i?void 0:i.url)||(null===(a=o[e])||void 0===a?void 0:null===(l=a.coverImage)||void 0===l?void 0:l.url):""};return(0,n.jsx)(k.ZP,{container:!0,mt:2,sx:{maxWidth:t?"350px":"500px",mx:"auto"},children:o.map((o,l)=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(k.ZP,{item:!0,xs:12,mt:t?2:3,children:(0,n.jsxs)(A.Z,{sx:{display:"flex",cursor:"pointer",minHeight:t?100:150},onClick:()=>{var e;let t=btoa("recommendMore=false&categoryId=".concat(null==o?void 0:null===(e=o.service_category)||void 0===e?void 0:e.categoryId,"&subCategoryId=").concat(o.subCategoryId)),i=(null==o?void 0:o.service_category.type)==="e_commerce"?"e-commerce":"service";r("/".concat(i,"?recommended=").concat(t))},children:[(0,n.jsx)(D.Z,{component:"img",sx:{width:t?100:150,minWidth:t?100:150},image:getBanner(l),alt:"sub-category ".concat(o.name)}),(0,n.jsxs)(Z.Z,{sx:{display:"flex",flexDirection:"column",py:t?1.5:3,px:2,width:"100%"},children:[(0,n.jsx)(V.u,{topic:o.name}),(0,n.jsxs)(_.Z,{direction:"row",alignItems:"center",mt:.5,children:[(0,n.jsx)(L.Z,{width:t?"15":"20"}),(0,n.jsxs)(w.Z,{textAlign:"left",variant:"h6",color:e.palette.grey[800],sx:{fontWeight:500,fontSize:t?"16px":"20px",width:"100%",ml:.5},children:[o.issue.length," ",i("options")]})]}),(0,n.jsx)(Z.Z,{sx:{flexGrow:1,mb:1.5}}),(0,n.jsx)(V.x,{price:o.salePrice,salePrice:o.price})]})]})},"subCategory-".concat(l))}))})},N=i(49616),searching=()=>{let e=(0,x.Z)(),t=(0,g.Z)(e.breakpoints.down("md")),{t:i}=(0,l.$G)("searching"),{loading:r,subCatagories:o}=useSearchingContext(),s=(0,a.useMemo)(()=>!r&&o.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(search,{}),(0,n.jsx)(subCategoryList,{})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(search,{}),(0,n.jsx)(alertEmpty,{})]}),[r,o]);return r?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(N.Z,{})}):(0,n.jsx)(f.Z,{sx:{px:t?"24px !important":"0px !important",position:"relative",minHeight:"90vh"},children:(0,n.jsx)(Z.Z,{sx:{mt:t?3:"106px",pb:t?3:"92px",width:"100%"},children:s})})},H=!0,pages_searching=function(){let{t:e}=(0,l.$G)("homepage");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o(),{children:(0,n.jsx)("title",{children:e("search")})}),(0,n.jsx)(ServiceProvider,{children:(0,n.jsx)(searching,{})})]})}},5925:function(e,t,i){"use strict";i.d(t,{Z:function(){return AlertIcon}});var n=i(85893);function AlertIcon(e){let{width:t}=e;return(0,n.jsxs)("svg",{width:t||"50",height:t||"50",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M10 18.75C7.67936 18.75 5.45376 17.8281 3.81282 16.1872C2.17187 14.5462 1.25 12.3206 1.25 10C1.25 7.67936 2.17187 5.45376 3.81282 3.81282C5.45376 2.17187 7.67936 1.25 10 1.25C12.3206 1.25 14.5462 2.17187 16.1872 3.81282C17.8281 5.45376 18.75 7.67936 18.75 10C18.75 12.3206 17.8281 14.5462 16.1872 16.1872C14.5462 17.8281 12.3206 18.75 10 18.75ZM10 20C12.6522 20 15.1957 18.9464 17.0711 17.0711C18.9464 15.1957 20 12.6522 20 10C20 7.34784 18.9464 4.8043 17.0711 2.92893C15.1957 1.05357 12.6522 0 10 0C7.34784 0 4.8043 1.05357 2.92893 2.92893
1C1.05357 4.8043 0 7.34784 0 10C0 12.6522 1.05357 15.1957 2.92893 17.0711C4.8043 18.9464 7.34784 20 10 20Z",fill:"#FF6D6D"}),(0,n.jsx)("path",{d:"M11.1625 8.235L8.3 8.59375L8.1975 9.06875L8.76 9.1725C9.1275 9.26 9.2 9.3925 9.12 9.75875L8.1975 14.0938C7.955 15.215 8.32875 15.7425 9.2075 15.7425C9.88875 15.7425 10.68 15.4275 11.0388 14.995L11.1487 14.475C10.8987 14.695 10.5337 14.7825 10.2913 14.7825C9.9475 14.7825 9.8225 14.5413 9.91125 14.1163L11.1625 8.235ZM11.25 5.625C11.25 5.95652 11.1183 6.27446 10.8839 6.50888C10.6495 6.7433 10.3315 6.875 10 6.875C9.66848 6.875 9.35054 6.7433 9.11612 6.50888C8.8817 6.27446 8.75 5.95652 8.75 5.625C8.75 5.29348 8.8817 4.97554 9.11612 4.74112C9.35054 4.5067 9.66848 4.375 10 4.375C10.3315 4.375 10.6495 4.5067 10.8839 4.74112C11.1183 4.97554 11.25 5.29348 11.25 5.625Z",fill:"#FF6D6D"})]})}},87077:function(e,t,i){"use strict";i.d(t,{Z:function(){return OptionIcon}});var n=i(85893);function OptionIcon(e){let{width:t}=e;return(0,n.jsx)("svg",{width:t||"15",height:t||"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.9375 2.84375C0.9375 2.47079 1.08566 2.1131 1.34938 1.84938C1.6131 1.58566 1.97079 1.4375 2.34375 1.4375H5.15625C5.52921 1.4375 5.8869 1.58566 6.15062 1.84938C6.41434 2.1131 6.5625 2.47079 6.5625 2.84375V5.65625C6.5625 6.02921 6.41434 6.3869 6.15062 6.65062C5.8869 6.91434 5.52921 7.0625 5.15625 7.0625H2.34375C1.97079 7.0625 1.6131 6.91434 1.34938 6.65062C1.08566 6.3869 0.9375 6.02921 0.9375 5.65625V2.84375ZM2.34375 2.375C2.21943 2.375 2.1002 2.42439 2.01229 2.51229C1.92439 2.6002 1.875 2.71943 1.875 2.84375V5.65625C1.875 5.78057 1.92439 5.8998 2.01229 5.98771C2.1002 6.07561 2.21943 6.125 2.34375 6.125H5.15625C5.28057 6.125 5.3998 6.07561 5.48771 5.98771C5.57561 5.8998 5.625 5.78057 5.625 5.65625V2.84375C5.625 2.71943 5.57561 2.6002 5.48771 2.51229C5.3998 2.42439 5.28057 2.375 5.15625 2.375H2.34375ZM8.4375 2.84375C8.4375 2.47079 8.58566 2.1131 8.84938 1.84938C9.1131 1.58566 9.47079 1.4375 9.84375 1.4375H12.6562C13.0292 1.4375 13.3869 1.58566 13.6506 1.84938C13.9143 2.1131 14.0625 2.47079 14.0625 2.84375V5.65625C14.0625 6.02921 13.9143 6.3869 13.6506 6.65062C13.3869 6.91434 13.0292 7.0625 12.6562 7.0625H9.84375C9.47079 7.0625 9.1131 6.91434 8.84938 6.65062C8.58566 6.3869 8.4375 6.02921 8.4375 5.65625V2.84375ZM9.84375 2.375C9.71943 2.375 9.6002 2.42439 9.51229 2.51229C9.42439 2.6002 9.375 2.71943 9.375 2.84375V5.65625C9.375 5.78057 9.42439 5.8998 9.51229 5.98771C9.6002 6.07561 9.71943 6.125 9.84375 6.125H12.6562C12.7806 6.125 12.8998 6.07561 12.9877 5.98771C13.0756 5.8998 13.125 5.78057 13.125 5.65625V2.84375C13.125 2.71943 13.0756 2.6002 12.9877 2.51229C12.8998 2.42439 12.7806 2.375 12.6562 2.375H9.84375ZM0.9375 10.3438C0.9375 9.97079 1.08566 9.6131 1.34938 9.34938C1.6131 9.08566 1.97079 8.9375 2.34375 8.9375H5.15625C5.52921 8.9375 5.8869 9.08566 6.15062 9.34938C6.41434 9.6131 6.5625 9.97079 6.5625 10.3438V13.1562C6.5625 13.5292 6.41434 13.8869 6.15062 14.1506C5.8869 14.4143 5.52921 14.5625 5.15625 14.5625H2.34375C1.97079 14.5625 1.6131 14.4143 1.34938 14.1506C1.08566 13.8869 0.9375 13.5292 0.9375 13.1562V10.3438ZM2.34375 9.875C2.21943 9.875 2.1002 9.92439 2.01229 10.0123C1.92439 10.1002 1.875 10.2194 1.875 10.3438V13.1562C1.875 13.2806 1.92439 13.3998 2.01229 13.4877C2.1002 13.5756 2.21943 13.625 2.34375 13.625H5.15625C5.28057 13.625 5.3998 13.5756 5.48771 13.4877C5.57561 13.3998 5.625 13.2806 5.625 13.1562V10.3438C5.625 10.2194 5.57561 10.1002 5.48771 10.0123C5.3998 9.92439 5.28057 9.875 5.15625 9.875H2.34375ZM8.4375 10.3438C8.4375 9.97079 8.58566 9.6131 8.84938 9.34938C9.1131 9.08566 9.47079 8.9375 9.84375 8.9375H12.6562C13.0292 8.9375 13.3869 9.08566 13.6506 9.34938C13.9143 9.6131 14.0625 9.97079 14.0625 10.3438V13.1562C14.0625 13.5292 13.9143 13.8869 13.6506 14.1506C13.3869 14.4143 13.0292 14.5625 12.6562 14.5625H9.84375C9.47079 14.5625 9.1131 14.4143 8.84938 14.1506C8.58566 13.8869 8.4375 13.5292 8.4375 13.1562V10.3438ZM9.84375 9.875C9.71943 9.875 9.6002 9.92439 9.51229 10.0123C9.42439 10.1002 9.375 10.2194 9.375 10.3438V13.1562C9.375 13.2806 9.42439 13.3998 9.51229 13.4877C9.6002 13.5756 9.71943 13.625 9.84375 13.625H12.6562C12.7806 13.625 12.8998 13.5756 12.9877 13.4877C13.0756 13.3998 13.125 13.2806 13.125 13.1562V10.3438C13.125 10.2194 13.0756 10.1002 12.9877 10.0123C12.8998 9.92439 12.7806 9.875 12.6562 9.875H9.84375Z",fill:"#5DD9A9"})})}},21514:function(e,t,i){"use strict";i.d(t,{n:function(){return getRecommendServices}});var n=i(79517),r=i(87066),o=i(6937),l=i(59666),a=i(79757);async function getRecommendServices(e,t,i,s,c,d,u){var p,h,m;let C={locale:e,type:s||"service",includeSalePrice:!!d};if(c)C.id=c;else if((null==u?void 0:u.province)&&(null==u?void 0:u.district))C.province=null==u?void 0:u.province,C.amphure=null==u?void 0:u.district;else if(null==u?void 0:u.subDistrict){let e=null===(p=a.find(e=>e.name_th===(null==u?void 0:u.subDistrict)||e.name_en===(null==u?void 0:u.subDistrict)))||void 0===p?void 0:p.amphure_id,t=l.find(t=>
1t.id===e),i=o.find(e=>e.id===(null==t?void 0:t.province_id));C.province=null==i?void 0:i.name_en,C.amphure=null==t?void 0:t.name_en}i&&(C.keyword=i);try{let e=await r.Z.get("".concat("https://api-prod.smartifyhome.co","/api/recommend-sub-category"),{headers:{Authorization:"Bearer ".concat(t)},params:{...C}});return{data:null===(h=e.data)||void 0===h?void 0:h.data}}catch(e){return(0,n.Z)(null==e?void 0:null===(m=e.response)||void 0===m?void 0:m.status),e.response}}},25090:function(e,t,i){"use strict";function formatCurrency(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:",";if(!e)return 0;let o=Math.abs(e).toFixed(i),l=o.split("."),a=l[0].replace(/\B(?=(\d{3})+(?!\d))/g,r),s=l.length>1?n+l[1]:"";return(t?formatCurrency:"")+a+s}i.d(t,{x:function(){return formatCurrency}})},29868:function(e,t,i){"use strict";i.d(t,{Z:function(){return serviceArea}});var n=i(6937),r=i(59666),serviceArea=(e,t,i,o)=>{let l=function(e){let t;let i=n.map(e=>({id:e.id,name_th:e.name_th,name_en:e.name_en})),o=r.map(e=>({id:e.id,name_th:e.name_th,name_en:e.name_en,province_id:e.province_id}));e&&(t=((e,t)=>{let i=t.filter(t=>e.includes(t.id.toString()));return i})(e.split(","),i));let l=e?t:i,a=new Map;return l.forEach(e=>{a.set(e.id,e),e.amphures=[]}),o.forEach(e=>{let t=e.province_id;if(a.has(t)){let i=a.get(t);i.amphures.push(e)}}),l}(t);if("SD"===e&&i)return i.map(e=>{var t,i;let n=l.find(t=>t.id===Number(e.province)),r=null==e?void 0:null===(t=e.amphure)||void 0===t?void 0:t.some(e=>"string"==typeof e&&e.toString().toLowerCase().includes("all")),o=r?"all":null==e?void 0:null===(i=e.amphure)||void 0===i?void 0:i.map(e=>null==n?void 0:n.amphures.find(t=>t.id===Number(e)));return{id:e.id,province:{id:null==n?void 0:n.id,name_en:null==n?void 0:n.name_en,name_th:null==n?void 0:n.name_th},amphures:o?r?[o]:[...o]:[]}});if("CA"===e&&o&&i){var a,s;let e=l.find(e=>e.name_th===o.province||e.name_en===o.province),t={province:(null==e?void 0:e.id)||0,amphure:(null==e?void 0:null===(a=e.amphures.find(e=>e.name_th.includes(o.amphure.replace(/\s+$/gm,""))||e.name_en.includes(o.amphure.replace(/\s+$/gm,""))))||void 0===a?void 0:a.id)||0},n=i.find(e=>Number(e.province)===Number(t.province)),r=null==n?void 0:null===(s=n.amphure)||void 0===s?void 0:s.some(e=>"string"==typeof e&&(null==e?void 0:e.toLowerCase().includes("all")));if(n&&0===t.amphure.length)return!0;if(n&&r)return r;{if(!n)return!1;let e=null==n?void 0:n.amphure.find(e=>!!t.amphure&&Number(t.amphure)===Number(e));return!!e}}}}},function(e){e.O(0,[1111,9774,2888,179],function(){return e(e.s=49183)}),_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.