PageSourceSearch

https://nacencomm.vn/_next/static/chunks/pages/product/%5Bid%5D-796054d0781f8aa9.js

js nacencomm.vn collected 2026-10-01 23:54:34 UTC 20,862 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[360],{1548:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/product/[id]",function(){return i(9654)}])},9654:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return F},default:function(){return L}});var n=i(4924),r=i(5893),a=i(7294),l=i(8127),o=i(8396),s=i(2734),d=i(5861),c=i(9226),u=i(6886),h=i(5675),p=i.n(h),v=i(2856),x=i(5912),m=i(7083),f=i(8722),g=i(828),b=i(7922),j=i(3946),_=i(5147),Z=i(6177),y=i(9885),w=function(e){var t=e.question,i=e.answer,n=e.last,l=e.file,o=(0,g.Z)(a.useState(!1),2),s=o[0],h=o[1];return(0,r.jsxs)(c.Z,{sx:{borderTop:"1px solid #C6C6C6",borderBottom:n?"1px solid #C6C6C6":"none",py:1},children:[(0,r.jsx)(u.ZP,{container:!0,alignItems:"center",maxWidth:"xl",children:(0,r.jsxs)(u.ZP,{item:!0,display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",children:[(0,r.jsx)(u.ZP,{item:!0,xs:11,children:(0,r.jsx)(d.Z,{variant:"h6",children:t})}),(0,r.jsx)(j.Z,{"aria-expanded":s,"aria-label":"expand",onClick:function(){if(l){var e=document.createElement("a");return e.href=y.o.getImageUrl(l),e.download=l,e.target="_blank",void e.click()}h(!s)},children:s?(0,r.jsx)(Z.Z,{}):(0,r.jsx)(_.Z,{})})]})}),(0,r.jsx)(b.Z,{in:s,children:(0,r.jsx)(d.Z,{variant:"h6",fontWeight:"bold",dangerouslySetInnerHTML:{__html:i},sx:{img:{maxWidth:"100%"}}})})]})};function C(e){var t=e.title;return(0,r.jsx)(d.Z,{variant:"h4",fontWeight:600,mt:4,mb:4,children:t})}function S(e){var t,i=e.title,n=e.data;return(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(C,{title:i}),null===n||void 0===n||null===(t=n.map)||void 0===t?void 0:t.call(n,(function(e,t){var i,a,l,o,s;return(0,r.jsx)(w,{question:null===e||void 0===e||null===(i=e.attributes)||void 0===i?void 0:i.title,answer:(null===e||void 0===e||null===(a=e.attributes)||void 0===a?void 0:a.answer)||"Xin l\u1ed7i, th\u1eafc m\u1eafc c\u1ee7a b\u1ea1n ch\u01b0a \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt, ch\xfang t\xf4i s\u1ebd c\u1eadp nh\u1eadt s\u1edbm nh\u1ea5t c\xf3 th\u1ec3.",last:t===n.length-1,file:null===e||void 0===e||null===(l=e.attributes)||void 0===l||null===(o=l.file)||void 0===o||null===(s=o.data)||void 0===s?void 0:s.attributes.url},"".concat(t))}))]})}var I=i(3386),k=i(2490);function E(e){var t=e.data,i=e.width;return(0,r.jsx)(c.Z,{ml:1,sx:{width:i,bgcolor:"#F1F4FE",minHeight:50,borderTopLeftRadius:v.u.borderRadius,borderTopRightRadius:v.u.borderRadius,display:"flex",alignItems:"center",justifyContent:"center",px:2},children:(0,r.jsx)(d.Z,{variant:"h6",fontWeight:700,children:t})})}function W(e){var t=e.data,i=e.width;return(0,r.jsx)(c.Z,{ml:1,width:i,height:"100%",display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"#F1F4FE",children:(0,r.jsx)(d.Z,{fontWeight:"bold",variant:"h6",children:t})})}function P(e){var t,i=e.data,n=e.setSmallestPrice,l=(0,m.Z)().Strings,o={Business:l.price_list_Enterprise_CKS_service,Individually:l.price_list_Personal_Security_Services},s={},u=(null===(t=i[0].attributes)||void 0===t?void 0:t.new)||0;return i.forEach((function(e){var t,i=e.attributes.type;parseInt(u)>parseInt(e.attributes.new)&&(u=parseInt(e.attributes.new)),u>parseInt(e.attributes.maintain)&&(u=parseInt(e.attributes.maintain));var n={duration:e.attributes.duration,new:parseInt(e.attributes.new),maintain:parseInt(e.attributes.maintain)};s[i]||(s[i]=[]),null===(t=s[i])||void 0===t||t.push(n)})),(0,a.useEffect)((function(){n(u)})),(0,r.jsx)(c.Z,{children:Object.keys(s).map((function(e){var t;return(0,r.jsxs)(c.Z,{mb:4,children:[(0,r.jsx)(c.Z,{sx:{display:"flex",justifyContent:"flex-end"},children:[l.new_offer,l.extend_offer].map((function(t,i){var n;return(0,r.jsx)(E,{data:t,width:"calc(100% / ".concat(null===(n=s[e])||void 0===n?void 0:n.length,")")},"".concat(i))}))}),(0,r.jsx)(c.Z,{sx:{height:49,borderTopLeftRadius:v.u.borderRadius,px:"20px"},display:"flex",alignItems:"center",bgcolor:"primary.main",color:"white",children:(0,r.jsx)(d.Z,{variant:"h5",fontWeight:"bold",color:"white",children:o[e]})}),null===(t=s[e])||void 0===t?void 0:t.map((function(e,t,i){return(0,r.jsxs)(c.Z,{display:"flex",height:50,borderBottom:"1px solid #C6C6C6",alignItems:"center",children:[(0,r.jsxs)(d.Z,{flex:1,variant:"h6",pl:2,children:[e.duration," ",l.month]}),(0,r.jsx)(W,{width:"calc(100% / ".concat(i.length,")"),data:y.o.convertCurrency(e.new)}),(0,r.jsx)(W,{width:"calc(100% / ".concat(i.length,")"),data:y.o.convertCurrency(e.maintain)})]},"".concat(t))}))]},e)}))})}function R(e){var t,i,n,l=e.data,o=e.setSmallestPrice,s=(0,m.Z)().Strings,u={},h=(null===(t=l[0])||void 0===t||null===(i=t.attributes)||void 0===i?void 0:i.price)||0;l.forEach((function(e){var t=e.attributes,i=t.title,n=t.price,r=t.maxBill;if(parseInt(h)>parseInt(n)&&(h=parseInt(n)),i){var a=i.trim().toUpperCase();u[a]||(u[a]={price:n,maxBill:r})}})),(0,a.useEffect)((function(){o(h)}));var p={"EL-":s.price_list_e_envoice_with_500},x="";for(var f in p){var g,b,j;(null===(g=l[0])||void 0===g||null===(b=g.attributes)||void 0===b||null===(j=b.title)||void 0===j?void 0:j.includes(f))&&(x=p[f])}return(0,r.jsxs)(c.Z,{mb:4,children:[(0,r.jsx)(c.Z,{sx:{height:49,borderTopLeftRadius:v.u.borderRadius,px:"20px"},display:"flex",alignItems:"center",bgcolor:"primary.main",color:"white",children:(0,r.jsx)(d.Z,{variant:"h5",fontWeight:"bold",color:"white",children:x})}),null===(n=Object.keys(u))||void 0===n?void 0:n.map((function(e,t,i){var n,a=u[e],l=a.maxBill,o=a.price;return(0,r.jsxs)(c.Z,{display:"flex",height:50,borderBottom:"1px solid #C6C6C6",alignItems:"center",children:[(0,r.jsx)(d.Z,{flex:1,variant:"h6",pl:2,children:e}),(0,r.jsx)(W,{width:"calc(100% / 3)",data:l>
10?l.toLocaleString("en-US")+" "+s.envoice:s.over+" "+(null===(n=u[i[t-1]])||void 0===n?void 0:n.maxBill)+" "+s.envoice}),(0,r.jsx)(W,{width:"calc(100% / 3)",data:null!==o?y.o.convertCurrency(o):s.calculated_according_to_number_of_invoices})]},"".concat(t))}))]})}function T(e){var t,i,n,l=e.data,o=e.setSmallestPrice,s=(0,m.Z)().Strings,u={},h=(null===(t=l[0])||void 0===t||null===(i=t.attributes)||void 0===i?void 0:i.price)||0;l.forEach((function(e){var t=e.attributes,i=t.title,n=t.price,r=t.duration;if(parseInt(h)>parseInt(n)&&(h=parseInt(n)),i){var a=i.trim().toUpperCase();u[a]||(u[a]={price:n,duration:r})}})),(0,a.useEffect)((function(){o(h)}));var p={"CO-VAN":s.price_list_CO_VAN},x="";for(var f in p){var g,b,j;(null===(g=l[0])||void 0===g||null===(b=g.attributes)||void 0===b||null===(j=b.title)||void 0===j?void 0:j.includes(f))&&(x=p[f])}return(0,r.jsxs)(c.Z,{mb:4,children:[(0,r.jsx)(c.Z,{sx:{height:49,borderTopLeftRadius:v.u.borderRadius,px:"20px"},display:"flex",alignItems:"center",bgcolor:"primary.main",color:"white",children:(0,r.jsx)(d.Z,{variant:"h5",fontWeight:"bold",color:"white",children:x})}),null===(n=Object.keys(u))||void 0===n?void 0:n.map((function(e,t,i){var n=u[e],a=n.duration,l=n.price;return(0,r.jsxs)(c.Z,{display:"flex",height:50,borderBottom:"1px solid #C6C6C6",alignItems:"center",children:[(0,r.jsx)(d.Z,{flex:1,variant:"h6",pl:2,children:e}),(0,r.jsx)(W,{width:"calc(100% / 3)",data:y.o.convertMonthsToYearsAndMonths(a,s.year,s.month)}),(0,r.jsx)(W,{width:"calc(100% / 3)",data:null!==l?y.o.convertCurrency(l):s.calculated_according_to_number_of_invoices})]},"".concat(t))}))]})}function N(e){var t,i,n,l=e.data,o=e.setSmallestPrice,s=(0,m.Z)().Strings,u={},h=[],p=(null===(t=l[0])||void 0===t||null===(i=t.attributes)||void 0===i?void 0:i.price)||0,x=!0,f=!1,g=void 0;try{for(var b,j=l[Symbol.iterator]();!(x=(b=j.next()).done);x=!0){var _=b.value.attributes,Z=_.duration,w=_.price,C=_.type;parseInt(p)>parseInt(w)&&(p=parseInt(w)),u[Z]||(u[Z]={}),u[Z][C]?u[Z][C]+=parseFloat(w):u[Z][C]=parseFloat(w),h.includes(C)||h.push(C)}}catch(R){f=!0,g=R}finally{try{x||null==j.return||j.return()}finally{if(f)throw g}}(0,a.useEffect)((function(){o(p)}));var S={"E-BH":s.price_list_of_social_insurance_software_eBH},I="";for(var k in S){var P;(null===h||void 0===h||null===(P=h[0])||void 0===P?void 0:P.includes(k))&&(I=S[k])}return(0,r.jsxs)(c.Z,{mb:4,children:[(0,r.jsx)(c.Z,{sx:{display:"flex",justifyContent:"flex-end"},children:h.map((function(e,t){return(0,r.jsx)(E,{data:e,width:"calc(100% / ".concat((null===h||void 0===h?void 0:h.length)+1,")")},"".concat(t))}))}),(0,r.jsx)(c.Z,{sx:{height:49,borderTopLeftRadius:v.u.borderRadius,px:"20px"},display:"flex",alignItems:"center",bgcolor:"primary.main",color:"white",children:(0,r.jsx)(d.Z,{variant:"h5",fontWeight:"bold",color:"white",children:I})}),null===(n=Object.keys(u))||void 0===n?void 0:n.map((function(e,t,i){return(0,r.jsxs)(c.Z,{display:"flex",height:50,borderBottom:"1px solid #C6C6C6",alignItems:"center",children:[(0,r.jsxs)(d.Z,{flex:1,variant:"h6",pl:2,children:[e," ",s.month]}),h.map((function(t,i){var n;return(0,r.jsx)(W,{width:"calc(100% / ".concat((null===h||void 0===h?void 0:h.length)+1,")"),data:y.o.convertCurrency(parseFloat(null===u||void 0===u||null===(n=u[e])||void 0===n?void 0:n[null===h||void 0===h?void 0:h[i]]))},"".concat(i))}))]},"".concat(t))}))]})}var B=i(5233),F=!0;function L(e){var t,i,h,g,b,j,_,Z,w,E,W,F,L,O,H,q,D,z,U=e.data,M=e.error,X=((0,o.Z)("(max-width:1169.98px)"),(0,s.Z)().palette.primary_grey),A=(0,m.Z)().Strings,V=(0,a.useState)(),Q=V[0],G=V[1],J=(0,a.useRef)();if(M)return(0,r.jsx)(d.Z,{children:M});var K,Y=(null===(t=U.data)||void 0===t?void 0:t.attributes)||{},$=Y.title,ee=Y.content,te=Y.description,ie=Y.keywords,ne=Y.category,re=Y.subCategory,ae=Y.summary,le=Y.banner,oe=Y.avatar,se=Y.bannerHighlight,de=Y.product_faqs,ce=Y.product_hlpls,ue=Y.priceDescription,he=Y.priceDescriptionExtra,pe=Y.price_by_time_with_maintains,ve=Y.price_by_bills,xe=Y.price_by_durations,me=Y.price_by_time_with_packages,fe=Y.preventIndexing,ge=(null===oe||void 0===oe||null===(i=oe.data)||void 0===i||null===(h=i.attributes)||void 0===h?void 0:h.url)?y.o.getImageUrl(null===oe||void 0===oe||null===(g=oe.data)||void 0===g||null===(b=g.attributes)||void 0===b?void 0:b.url):null,be=null===oe||void 0===oe||null===(j=oe.data)||void 0===j?void 0:j.attributes,je=be.alternativeText,_e=be.width/be.height,Ze=(null===le||void 0===le||null===(_=le.data)||void 0===_||null===(Z=_.attributes)||void 0===Z?void 0:Z.url)?y.o.getImageUrl(null===le||void 0===le||null===(w=le.data)||void 0===w||null===(E=w.attributes)||void 0===E?void 0:E.url):null,ye=!ne&&!re,we=(null===pe||void 0===pe||null===(W=pe.data)||void 0===W?void 0:W.length)||(null===ve||void 0===ve||null===(F=ve.data)||void 0===F?void 0:F.length)||(null===xe||void 0===xe||null===(L=xe.data)||void 0===L?void 0:L.length)||(null===me||void 0===me||null===(O=me.data)||void 0===O?void 0:O.length),Ce=function(){var e,t,i;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(c.Z,{sx:{border:"1.5px solid #E3E3E3",px:v.u.padding_xxl,py:v.u.padding_md,width:370},borderRadius:v.u.borderRadius,children:[we?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Z,{variant:"h6",color:"primary_grey.primary_grey_2",children:A.price_from}),(0,r.jsx)(d.Z,{variant:"h3",color:"primary_grey.main",fontWeight:600,mt:1,mb:3,children:y.o.convertCurrency(Q||0)}),(0,r.jsx)(B.Z,{variant:"contained",sx:{mb:1},onClick:function(){I.v.open({children:(0,r.jsx)(k.Z,{})})},title:A.choose_service_pack}),(0,r.jsx)(B.Z,{variant:"outlined",sx:{borderWidth:"1.5px",borderColor:"primary.main",mb:"28px"},onClick:function(){var e;null===(e=J.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"})},textColor:"primary.main",title:A.price_list})]}):(0,r.jsx)(B.Z,{variant:"contained",sx:{mb:"28px"},onClick:function(){I.v.open({children:(0,r.jsx)(k.Z,{})})},title:A.send_contact_information}),null===ue||void 0===ue||null===(e=ue.trim)||void 0===e?void 0:e.call(ue).split("\n").map((function(e,t){return(0,r.jsxs)(c.Z,{sx:{display:"flex"},alignItems:"center",mb:1,children:[(0,r.jsx)(f.Z.Checked,{}),(0,r.jsx)(d.Z,{variant:"h6",fontWeight:500,ml:1,flex:1,children:e})]},"".concat(t))}))]}),!!(null===he||void 0===he||null===(t=he.trim)||void 0===t?void 0:t.call(he))&&(0,r.jsx)(c.Z,{sx:{border:"1px solid #E3E3E3",p:3,mt:4},borderRadius:"10px",children:null===he||void 0===he||null===(i=he.trim)||void 0===i?void 0:i.call(he).split("\n").map((function(e,t){return(0,r.jsxs)(c.Z,{sx:{display:"flex"},alignItems:"center",mb:1,children:[(0,r.jsx)(f.Z.Checked,{}),(0,r.jsx)(d.Z,{variant:"h6",fontWeight:500,ml:1,flex:1,children:e})]},"".concat(t))}))})]})};return(0,r.jsx)(l.Z,{title:$,description:te,keywords:ie,shareImage:ge,preventIndexing:fe,withFooter:!0,withHeader:!0,sx:{backgroundImage:'url("/product_header_background.png")',backgroundRepeat:"no-repeat",backgroundSize:"100% 360px"},children:(0,r.jsxs)(c.Z,{display:"flex",flexDirection:"column",alignItems:"center",children:[(0,r.jsxs)(c.Z,{sx:v.u.pageStyle,children:[(0,r.jsx)(x.Z,{data:[{route:"/",routeName:A.home},{route:"/",routeName:A.product},{route:null,routeName:"".concat(ne||""," ").concat(re||"")}]}),(0,r.jsx)(c.Z,{sx:{position:"relative"},children:(0,r.jsxs)(c.Z,{sx:(K={justifyContent:"center",overflow:"hidden",cursor:"pointer",backgroundColor:X.primary_grey_4,px:5,py:4,borderRadius:"10px",minHeight:480,display:"flex",flexDirection:"column"},(0,n.Z)(K,"justifyContent","space-between"),(0,n.Z)(K,"position","relative"),(0,n.Z)(K,"overflow","hidden"),(0,n.Z)(K,"backgroundImage","url(".concat(Ze,")")),(0,n.Z)(K,"backgroundRepeat","no-repeat"),(0,n.Z)(K,"backgroundSize","cover"),(0,n.Z)(K,"backgroundPosition","center"),(0,n.Z)(K,"maxWidth",1170),K),children:[(0,r.jsxs)(c.Z,{sx:{width:{xs:"100%",md:"50%"}},children:[(0,r.jsxs)(c.Z,{sx:{display:"flex"},children:[(0,r.jsx)(p(),{width:ye?36*_e:34,height:ye?36:34,src:ge,alt:je||$,layout:"fixed"}),(0,r.jsxs)(c.Z,{sx:{ml:"10px",p:0},children:[(0,r.jsx)(d.Z,{variant:"h5",fontWeight:"bold",sx:{fontSize:18,color:X.main,lineHeight:"15px"},children:ne}),(0,r.jsx)(d.Z,{variant:"h5",sx:{fontSize:18,color:X.primary_grey_2},children:re})]})]}),(0,r.jsx)(d.Z,{variant:"h2",fontWeight:"bold",color:"primary",mt:8,position:"relative",zIndex:2,sx:{whiteSpace:{xs:"unset",md:"pre-wrap"}},children:ae})]}),(0,r.jsx)(c.Z,{sx:{position:"relative",zIndex:2},children:(0,r.jsx)(d.Z,{whiteSpace:"pre-wrap",variant:"h5",fontWeight:700,children:se})})]})}
1),(0,r.jsx)(c.Z,{width:370,justifyContent:"center",sx:{display:{xs:"flex",md:"none"},mt:{xs:"48px",md:"unset"}},children:Ce()}),(0,r.jsxs)(u.ZP,{container:!0,spacing:2,justifyContent:"space-between",mt:2,children:[(0,r.jsxs)(u.ZP,{item:!0,sx:{maxWidth:{xl:770,lg:770,md:"100%",xs:"100%"}},children:[(0,r.jsx)(c.Z,{children:(0,r.jsx)(d.Z,{variant:"body1",component:"div",overflow:"hidden",dangerouslySetInnerHTML:{__html:y.o.convertHTML(ee)},sx:{img:{maxWidth:"100%"}}})}),(0,r.jsx)(c.Z,{ref:J}),!!we&&(0,r.jsx)(C,{title:A.service_price_list}),!!(null===pe||void 0===pe||null===(H=pe.data)||void 0===H?void 0:H.length)&&(0,r.jsx)(P,{data:pe.data,setSmallestPrice:G}),!!(null===ve||void 0===ve||null===(q=ve.data)||void 0===q?void 0:q.length)&&(0,r.jsx)(R,{data:ve.data,setSmallestPrice:G}),!!(null===xe||void 0===xe||null===(D=xe.data)||void 0===D?void 0:D.length)&&(0,r.jsx)(T,{data:xe.data,setSmallestPrice:G}),!!(null===me||void 0===me||null===(z=me.data)||void 0===z?void 0:z.length)&&(0,r.jsx)(N,{data:me.data,setSmallestPrice:G}),!!(null===ce||void 0===ce?void 0:ce.data.length)&&(0,r.jsx)(S,{title:A.legal_corridor,data:null===ce||void 0===ce?void 0:ce.data}),!!(null===de||void 0===de?void 0:de.data.length)&&(0,r.jsx)(S,{title:A.frequently_questions,data:null===de||void 0===de?void 0:de.data})]}),(0,r.jsx)(u.ZP,{item:!0,width:370,sx:{display:{xs:"none",md:"unset"}},children:Ce()})]})]}),(0,r.jsx)(c.Z,{width:"100%",height:1.1,mt:4,bgcolor:"#E5E5E5"})]})})}},5912:function(e,t,i){"use strict";var n=i(6042),r=i(5893),a=(i(7294),i(2963)),l=i(9226),o=i(5861),s=i(4630);t.Z=function(e){var t=e.data,i=e.sx,d=e.color;return(0,r.jsx)(a.Z,{sx:(0,n.Z)({py:2},i),"aria-label":"breadcrumb",separator:(0,r.jsx)(l.Z,{sx:{width:4,height:4,bgcolor:d||"white",borderRadius:"50%",mx:1,mt:"3px"}}),children:t.map((function(e,i){var n=i===t.length-1;return(0,r.jsx)(s.Z,{sx:{p:0},href:e.route?"".concat(e.route):"#",children:(0,r.jsx)(o.Z,{variant:"h6",fontWeight:n?"bold":400,color:d?n?"black":d:"white",children:e.routeName})},"".concat(i))}))})}},2490:function(e,t,i){"use strict";i.d(t,{Z:function(){return y}});var n=i(7568),r=i(6042),a=i(9396),l=i(655),o=i(5893),s=i(7294),d=i(9226),c=i(5861),u=i(6886),h=i(4054),p=i(3841),v=i(8360),x=i(5819),m=i(135),f=i(6815),g=i(7083),b=i(9885),j=i(479),_=i(5233),Z=i(1163);function y(e){var t=e.hasService,i=(0,g.Z)().Strings,y=(0,s.useState)(""),w=y[0],C=y[1],S=(0,s.useState)(""),I=S[0],k=S[1],E=(0,s.useState)(""),W=E[0],P=E[1],R=(0,s.useState)([]),T=R[0],N=R[1],B=(0,s.useState)(""),F=B[0],L=B[1],O=(0,s.useState)({}),H=O[0],q=O[1],D=(0,s.useState)({type:"",message:""}),z=D[0],U=D[1],M=(0,s.useState)([]),X=M[0],A=M[1],V=(0,Z.useRouter)().locale;(0,s.useEffect)((function(){t&&(0,n.Z)((function(){var e;return(0,l.__generator)(this,(function(t){switch(t.label){case 0:return[4,j.yX.getProducts(V)];case 1:return(e=t.sent()).data.data&&A(e.data.data),[2]}}))}))()}),[]);var Q=function(){var e=(0,n.Z)((function(e){var t;return(0,l.__generator)(this,(function(n){switch(n.label){case 0:if(e.preventDefault(),t={},w||(t.fullName=i.fullname_is_required),I||(t.phone=i.phone_is_required),b.Q.phone(I)||(t.phone=i.phone_is_invalid),W||(t.email=i.email_is_required),b.Q.email(W)||(t.email=i.email_is_invalid),Object.keys(t).length)return q(t),[2];try{fetch("/api/sendToSlack",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:W,phone:I})})}catch(r){console.error("Error sending data to Slack: ".concat(r))}n.label=1;case 1:return n.trys.push([1,3,,4]),[4,j.yX.customerContact({name:w,email:W,phone:I,message:F,products:T})];case 2:return 200===n.sent().status?(q({}),U({type:"success",message:i.send_success}),L(""),k(""),P(""),C(""),N([]),[2]):(U({type:"error",message:i.something_error}),[3,4]);case 3:return n.sent(),U({type:"error",message:i.something_error}),[3,4];case 4:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}();return(0,o.jsxs)(d.Z,{maxWidth:720,minWidth:400,pb:1,children:[(0,o.jsx)(c.Z,{variant:"h4",fontWeight:600,color:"primary",children:i.modal_support_title}),(0,o.jsx)(c.Z,{my:2,variant:"body1",color:"primary_grey.primary_grey_1",children:i.modal_support_des}),(0,o.jsxs)("form",{onSubmit:Q,children:[(0,o.jsx)(u.ZP,{container:!0,spacing:3,mb:3,children:[{label:i.modal_support_name_placeholder,field:"fullName",value:w,onChange:C,span:6},{label:i.modal_support_phone_placeholder,field:"phone",value:I,onChange:k,span:6},{label:i.modal_support_email_placeholder,field:"email",value:W,onChange:P,span:t?6:12},{label:i.attention_service,field:"products",value:T,onChange:N,type:"SELECT",span:6},{label:i.modal_support_content_placeholder,field:"content",value:F,onChange:L,multiline:!0}].map((function(e,i){if("SELECT"===e.type)return t?(0,o.jsx)(u.ZP,{item:!0,xs:e.span||12,children:(0,o.jsxs)(h.Z,{fullWidth:!0,children:[(0,o.jsx)(p.Z,{id:"demo-simple-select-label",children:e.label}),(0,o.jsx)(v.Z,{labelId:"demo-simple-select-label",id:"demo-simple-select",value:T,multiple:!0,onChange:function(e){return N(e.target.value)},label:e.label,children:X.map((function(e){return(0,o.jsx)(x.Z,{value:e.id,children:e.attributes.title},e.id)}))})]})},"".concat(i)):null;return(0,o.jsxs)(u.ZP,{item:!0,xs:e.span||12,children:[(0,o.jsx)(m.Z,(0,a.Z)((0,r.Z)({},e.multiline?{multiline:!0,rows:4}:null),{fullWidth:!0,label:e.label,value:e.value,onChange:function(t){return e.onChange(t.target.value)},error:!!H[e.field]})),H[e.field]&&(0,o.jsx)(f.Z,{error:!0,children:H[e.field]})]},"".concat(i))}))}),!!z.type&&(0,o.jsx)(c.Z,{textAlign:"center",variant:"h6",mb:2,color:"success"===z.type?"primary":"error",children:z.message}),(0,o.jsx)(d.Z,{display:"flex",justifyContent:"flex-end",children:(0,o.jsx)(_.Z,{variant:"contained",type:"submit",width:"174px",title:"G\u1eedi th\xf4ng tin"})})]})]})}},5233:function(e,t,i){"use strict";i.d(t,{Z:function(){return c}});var n=i(6042),r=i(9396),a=i(9534),l=i(5893),o=i(3321),s=i(5861),d=(i(7294),i(2856));function c(e){var t=e.title,i=e.sx,c=e.variant,u=void 0===c?"contained":c,h=e.startIcon,p=e.width,v=void 0===p?"100%":p,x=e.onClick,m=e.type,f=e.textColor,g=(0,a.Z)(e,["title","sx","variant","startIcon","width","onClick","type","textColor"]);return(0,l.jsx)(o.Z,(0,r.Z)((0,n.Z)({type:m,onClick:x,variant:u,sx:(0,n.Z)({height:"48px",width:v,borderColor:"contained"===u?"unset":"white",":hover":{borderColor:"contained"===u?"unset":"#D0D0D0",boxShadow:"unset"},borderRadius:d.u.borderRadiusSmall,boxShadow:"unset"},i),startIcon:h},g),{children:(0,l.jsx)(s.Z,{variant:"h6",fontWeight:600,color:f||"white",children:t})}))}}},function(e){e.O(0,[714,885,361,641,963,127,774,888,179],(function(){return t=1548,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.