1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{1574:(e,t,r)=>{"use strict";r.d(t,{cn:()=>s});var n=r(3943),i=r(47663);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,i.QP)((0,n.$)(t))}},4162:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(20065);let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:c="",children:d,iconNode:u,...h}=e;return(0,n.createElement)("svg",{ref:t,...o,width:i,height:i,stroke:r,strokeWidth:l?24*Number(a)/Number(i):a,className:s("lucide",c),...h},[...u.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(d)?d:[d]])}),l=(e,t)=>{let r=(0,n.forwardRef)((r,o)=>{let{className:l,...c}=r;return(0,n.createElement)(a,{ref:o,iconNode:t,className:s("lucide-".concat(i(e)),l),...c})});return r.displayName="".concat(e),r}},18098:(e,t,r)=>{Promise.resolve().then(r.bind(r,62594)),Promise.resolve().then(r.bind(r,75634))},33862:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(4162).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},62594:(e,t,r)=>{"use strict";r.d(t,{BizflyChatbot:()=>h});var n=r(82277),i=r(1574),s=r(33862),o=r(5190),a=r(50295),l=r(20065);let c={baseUrl:"https://bot.bizfly.vn/chat_web_box/",id:"2205",botId:"75334",groupId:"2375",project:"b2008f0d-b593-4c09-bbc6-9ade19c48da8"},d="bizfly_chat_username";function u(e){let t=window.innerWidth-56-16,r=window.innerHeight-56-16;return{x:e.x+28<window.innerWidth/2?16:t,y:Math.min(Math.max(16,e.y),r)}}function h(){let e=(0,a.useLocale)(),t=(0,a.useTranslations)("Chatbot"),[r,h]=(0,l.useState)(null),f=(0,l.useMemo)(()=>r?function(e,t){let{baseUrl:r,id:n,botId:i,groupId:s,project:o}=c;if(!r||!n||!i||!s||!o)return null;let a=new URL(r);return a.searchParams.set("id",n),a.searchParams.set("bot_id",i),a.searchParams.set("group_id",s),a.searchParams.set("project",o),a.searchParams.set("username",t),a.searchParams.set("name",t),a.searchParams.set("language_box_bizfly",e),a.searchParams.set("open","1"),a.searchParams.set("is_identify","0"),a.searchParams.set("is_header","0"),a.toString()}(e,r):null,[e,r]),[w,m]=(0,l.useState)(!1),[g,p]=(0,l.useState)(null),[v,b]=(0,l.useState)(!1),x=(0,l.useRef)(null),y=(0,l.useRef)({isPointerDown:!1,startX:0,startY:0,offsetX:0,offsetY:0,hasDragged:!1});if((0,l.useEffect)(()=>{h(function(){let e=localStorage.getItem(d);if(e)return e;let t=crypto.randomUUID();return localStorage.setItem(d,t),t}()),p({x:window.innerWidth-56-16,y:window.innerHeight-56-100})},[]),(0,l.useEffect)(()=>{let e=()=>{p(e=>e?u(e):e)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,l.useEffect)(()=>{if(!w||!window.matchMedia("(max-width: 639px)").matches)return;let e=window.scrollY,t=document.body,r={position:t.style.position,top:t.style.top,left:t.style.left,right:t.style.right,overflow:t.style.overflow};return t.style.position="fixed",t.style.top="-".concat(e,"px"),t.style.left="0",t.style.right="0",t.style.overflow="hidden",()=>{t.style.position=r.position,t.style.top=r.top,t.style.left=r.left,t.style.right=r.right,t.style.overflow=r.overflow,window.scrollTo(0,e)}},[w]),!f||!g)return null;let P=g.x+28>window.innerWidth/2,D=Math.max(16,Math.min(window.innerHeight-g.y-56,window.innerHeight-600-16)),j=P?{right:window.innerWidth-g.x+12}:{left:g.x+56+12};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{ref:x,type:"button",onPointerDown:e=>{if(!x.current)return;let t=x.current.getBoundingClientRect();y.current={isPointerDown:!0,startX:e.clientX,startY:e.clientY,offsetX:e.clientX-t.left,offsetY:e.clientY-t.top,hasDragged:!1};let r=e=>{let t=y.current;if(!t.isPointerDown)return;let r=e.clientX-t.startX,n=e.clientY-t.startY;!t.hasDragged&&(Math.abs(r)>5||Math.abs(n)>5)&&(t.hasDragged=!0,b(!0)),t.hasDragged&&(e.preventDefault(),p({x:e.clientX-t.offsetX,y:e.clientY-t.offsetY}))},n=()=>{let e=y.current;e.isPointerDown&&(e.isPointerDown=!1,e.hasDragged&&(b(!1),p(e=>e?u(e):e)),window.removeEventListener("pointermove",r),window.removeEventListener("pointerup",n),window.removeEventListener("pointercancel",n))};window.addEventListener("pointermove",r,{passive:!1}),window.addEventListener("pointerup",n),window.addEventListener("pointercancel",n)},onClick:e=>{if(y.current.hasDragged){e.preventDefault(),e.stopPropagation(),y.current.hasDragged=!1;return}m(e=>!e)}
1,"aria-label":t(w?"close":"open"),style:{left:g.x,top:g.y,width:56,height:56,transition:v?"none":"left 0.3s ease-out, top 0.3s ease-out"},className:(0,i.cn)("fixed z-[100] flex touch-none select-none items-center justify-center","overflow-hidden rounded-full shadow-lg",w?"bg-[#DF3939] text-white":"bg-transparent","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#DF3939] focus-visible:ring-offset-2",v?"cursor-grabbing":"cursor-grab",w&&"max-sm:hidden"),children:w?(0,n.jsx)(s.A,{className:"h-6 w-6"}):(0,n.jsx)(o.default,{src:"/images/ai-chat.png",alt:t("title"),width:56,height:56,className:"pointer-events-none h-full w-full object-cover",style:{WebkitUserDrag:"none"},draggable:!1,priority:!0})}),w&&(0,n.jsxs)("div",{style:{bottom:D,overscrollBehavior:"contain",...j},className:(0,i.cn)("fixed z-[99] overflow-hidden rounded-2xl bg-white shadow-2xl","h-[600px] max-h-[calc(100vh-6rem)] w-[380px]","max-sm:!inset-0 max-sm:!h-auto max-sm:!max-h-none max-sm:!w-auto max-sm:!rounded-none","border border-gray-200"),children:[(0,n.jsxs)("div",{className:"h-15 relative border-b",children:[(0,n.jsx)("div",{className:"flex h-full items-center justify-center text-[17px]",children:"Trợ l\xed AI"}),(0,n.jsx)("button",{className:"absolute right-3 top-1/2 -translate-y-1/2 cursor-pointer",onClick:()=>m(!1),children:(0,n.jsx)(s.A,{})})]}),(0,n.jsx)("iframe",{src:f,title:t("title"),scrolling:"yes",className:"h-[540px] w-full overflow-y-auto border-0 max-sm:h-[calc(100dvh-60px)]",style:{WebkitOverflowScrolling:"touch"},allow:"microphone; camera; clipboard-write"})]})]})}},75634:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var n=r(77402),i=r(20065),s=r(58924);function o(e){let{locale:t,...r}=e;if(!t)throw Error("Failed to determine locale in `NextIntlClientProvider`, please provide the `locale` prop explicitly.\n\nSee https://next-intl.dev/docs/configuration#locale");return i.createElement(s.IntlProvider,(0,n._)({locale:t},r))}},77402:(e,t,r)=>{"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}r.d(t,{_:()=>n})}},e=>{var t=t=>e(e.s=t);e.O(0,[1581,295,5190,6766,982,7358],()=>t(18098)),_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.