PageSourceSearch

https://droppii.vn/_next/static/chunks/9213-eb4eda6d98f0bded.js

js droppii.vn collected 2026-10-04 11:56:39 UTC 22,511 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9213],{6881:(e,t,a)=>{a.d(t,{d:()=>l});var s=a(9417);function l(e,t){let[a,l]=(0,s.useState)(e);return(0,s.useEffect)(()=>{let a=setTimeout(()=>l(e),t);return()=>clearTimeout(a)},[e,t]),a}},10498:(e,t,a)=>{a.d(t,{J:()=>d});var s=a(16125),l=a(9417),n=a(2968),r=a(73788),i=a(53095);let o=(0,r.F)("peer-disabled:cursor-not-allowed peer-disabled:opacity-70 font-bold text-md text-gray-950 flex h-fit items-center"),d=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)(n.b,{ref:t,className:(0,i.cn)(o(),a),...l})});d.displayName=n.b.displayName},10990:(e,t,a)=>{a.d(t,{$:()=>g});var s=a(16125),l=a(9417),n=a(2341),r=a(77638),i=a(89673),o=a(53095),d=a(65576);let c=e=>{let{className:t,...a}=e;return(0,s.jsx)("nav",{role:"navigation","aria-label":"pagination",className:(0,o.cn)("mx-auto flex w-full justify-center",t),...a})};c.displayName="Pagination";let u=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)("ul",{ref:t,className:(0,o.cn)("flex flex-row items-center gap-1",a),...l})});u.displayName="PaginationContent";let m=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)("li",{ref:t,className:(0,o.cn)("",a),...l})});m.displayName="PaginationItem";let x=e=>{let{className:t,isActive:a,size:l="icon",variant:n,disabled:r,onClick:i,tabIndex:c,...u}=e;return(0,s.jsx)("a",{"aria-current":a?"page":void 0,"aria-disabled":!!r||void 0,tabIndex:r?-1:c,className:(0,o.cn)((0,d.r)({variant:null!=n?n:a?"default":"ghost",size:l}),r?"pointer-events-none opacity-50":"cursor-pointer",t),onClick:e=>{if(r){e.preventDefault(),e.stopPropagation();return}null==i||i(e)},...u})};x.displayName="PaginationLink";let f=e=>{let{className:t,variant:a="outline",size:l="icon",...r}=e;return(0,s.jsx)(x,{"aria-label":"Go to previous page",variant:a,size:l,className:(0,o.cn)("",t),...r,children:(0,s.jsx)(n.A,{})})};f.displayName="PaginationPrevious";let p=e=>{let{className:t,variant:a="outline",size:l="icon",...n}=e;return(0,s.jsx)(x,{"aria-label":"Go to next page",variant:a,size:l,className:(0,o.cn)("",t),...n,children:(0,s.jsx)(r.A,{})})};p.displayName="PaginationNext";let h=e=>{let{className:t,...a}=e;return(0,s.jsxs)("span",{"aria-hidden":!0,className:(0,o.cn)("flex h-9 w-9 items-center justify-center",t),...a,children:[(0,s.jsx)(i.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"More pages"})]})};function g(e){let{page:t,onPageChange:a,hasNext:l,data:n,size:r}=e,i=!Array.isArray(n)||n.length>0&&!(1===t&&"number"==typeof r&&n.length<r),o="boolean"==typeof l?l:!!Array.isArray(n)&&"number"==typeof r&&n.length===r;return i?(0,s.jsx)(c,{children:(0,s.jsxs)(u,{children:[(0,s.jsx)(m,{children:(0,s.jsx)(f,{disabled:t<=1,onClick:()=>{a(Math.max(1,t-1))}})}),t>2&&(0,s.jsx)(m,{children:(0,s.jsx)(h,{})}),t>1&&(0,s.jsx)(m,{children:(0,s.jsx)(x,{onClick:()=>{a(t-1)},children:t-1})}),(0,s.jsx)(m,{children:(0,s.jsx)(x,{isActive:!0,children:t})}),o&&(0,s.jsx)(m,{children:(0,s.jsx)(x,{onClick:()=>{a(t+1)},children:t+1})}),o&&(0,s.jsx)(m,{children:(0,s.jsx)(h,{})}),(0,s.jsx)(m,{children:(0,s.jsx)(p,{disabled:!o,onClick:()=>{a(t+1)}})})]})}):null}h.displayName="PaginationEllipsis"},20389:(e,t,a)=>{a.d(t,{F:()=>l});var s=a(16125);let l=e=>{let{Component:t,times:a}=e;return Array.from({length:a}).map((e,a)=>(0,s.jsx)(t,{},a))}},22241:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(9417);function l(e){let{fn:t,onUnmount:a,deps:l=[],skip:n=!1}=e,r=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=r.current;null!==e&&e.length===l.length&&l.every((t,a)=>t===e[a])||n||(r.current=[...l],t())},[n,...l]);let i=(0,s.useRef)(!1),o=(0,s.useRef)(0);return(0,s.useEffect)(()=>{if(!a)return;let e=setTimeout(()=>{i.current=!0,o.current=Date.now()},0);return()=>{clearTimeout(e),i.current&&a(Date.now()-o.current)}},[]),null}},28740:(e,t,a)=>{a.d(t,{dj:()=>m,oR:()=>u});var s=a(9417);let l=0,n=new Map,r=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;
1return a?r(a):e.toasts.forEach(e=>{r(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],d={toasts:[]};function c(e){d=i(d,e),o.forEach(e=>{e(d)})}function u(e){let{...t}=e,a=(l=(l+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:a});return c({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||s()}}}),{id:a,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,t]=s.useState(d);return s.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},42457:(e,t,a)=>{a.d(t,{Bc:()=>i,ZI:()=>c,k$:()=>d,m_:()=>o});var s=a(16125),l=a(9417),n=a(19895),r=a(53095);let i=n.Kq,o=n.bL,d=n.l9,c=l.forwardRef((e,t)=>{let{className:a,sideOffset:l=4,...i}=e;return(0,s.jsx)(n.UC,{ref:t,sideOffset:l,className:(0,r.cn)("z-50 w-[233px] overflow-hidden rounded-md bg-gray-950 px-3 py-2 text-sm text-white font-normal shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...i})});c.displayName=n.UC.displayName},46585:(e,t,a)=>{a.d(t,{A:()=>n});var s=a(16125),l=a(80049);let n=()=>(0,s.jsxs)("div",{className:"space-y-2 shadow-sm p-4 rounded-lg",children:[(0,s.jsx)(l.E,{className:"w-full aspect-square"}),(0,s.jsx)(l.E,{className:"w-3/4 h-4 !mt-3"}),(0,s.jsx)(l.E,{className:"h-4 w-full"}),(0,s.jsx)(l.E,{className:"w-full h-4"}),(0,s.jsx)(l.E,{className:"w-1/2 h-4"})]})},50401:(e,t,a)=>{a.d(t,{A:()=>P});var s=a(16125),l=a(61640),n=a(65576),r=a(90458),i=a(15461),o=a(57427),d=a(60886);let c=(e,t)=>(0,d.useQuery)({queryKey:["GET_AGENT_IDENTIFY_KEY",e],queryFn:()=>(0,o.Cs)(e),enabled:t&&!!e});var u=a(80049),m=a(44033),x=a(41955),f=a(80487),p=a(8540);let h=()=>(0,p.useMutation)({mutationFn:f.Y});var g=a(28740),y=a(9417),v=a(6881),j=a(67044),b=a(8073),N=a(16606),w=a(26316),T=a(82286),A=a(42457),C=a(10498),E=a(63444),_=a(17208),k=a(52143),S=a(53095),O=a(28517);let I={PRODUCT:{type:"product",screenType:"PRODUCT_DETAIL",label:"sản phẩm"},CART:{type:"cart",screenType:"CART",label:"giỏ h\xe0ng"}
1,CATEGORY:{type:"category",screenType:"CATEGORY",label:"danh mục"}},P=e=>{let{productId:t,products:a,productSkuId:o,categoryId:d,categoryLevel:f,btnSize:p="xs",btnVariant:P="secondary"}=e,R=(0,O.k)(e=>e.user),D=(0,k.usePathname)(),G=(0,S.gA)(),M=(0,_.A)(e=>e.getTotalPrice),[z,F]=(0,y.useState)(!1),[L,U]=(0,y.useState)(""),J=(0,i.mN)({defaultValues:{identify:""},resolver:(0,m.u)(x.Ik({identify:x.Yj().min(1,"Vui l\xf2ng nhập m\xe3 giới thiệu")}))}),{watch:Y,handleSubmit:B}=J,V=Y(),{data:Z,isLoading:$}=c((0,v.d)(V.identify,600),!!(null==R?void 0:R.isAgent)),{mutateAsync:q,isPending:K}=h(),{screenType:H,label:W,type:X}=(0,y.useMemo)(()=>t?I.PRODUCT:a?I.CART:d?I.CATEGORY:I.CART,[t,a,d]),Q=(0,y.useCallback)(async()=>{var e,s,l,n,r;if(!(null==Z?void 0:null===(e=Z.data)||void 0===e?void 0:e.id)&&!(null==R?void 0:R.username)){(0,g.oR)({variant:"destructive",title:"Thất bại",description:"Kh\xf4ng t\xecm thấy th\xf4ng tin người d\xf9ng"});return}let i={product_id:null!=t?t:null,product_sku_id:null!=o?o:null,cart_value:t?null:M(),affiliate_id:(null==Z?void 0:null===(s=Z.data)||void 0===s?void 0:s.id)||(null==R?void 0:R.id)||"",agent_id:(null==Z?void 0:null===(l=Z.data)||void 0===l?void 0:l.id)||(null==R?void 0:R.id)||"",previous_screen:(0,E.Pd)()};try{let e=await q({agentId:(null==Z?void 0:null===(n=Z.data)||void 0===n?void 0:n.id)||(null==R?void 0:R.id)||"",products:t?null:a||null,productId:null!=t?t:null,screenType:H,categoryLevel:f,categoryId:d});U(null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.code),(0,E.hx)({...i,type:X,status:"success",screen_name:D,source_from:G})}catch(e){(0,E.hx)({...i,type:X,status:"error",screen_name:D,source_from:G})}},[Z,t,o,M,q,D,G,X,H,f,d,a,R]);return((0,y.useEffect)(()=>{(null==R?void 0:R.username)&&J.reset({identify:R.username})},[null==R?void 0:R.username,J]),R&&(null==R?void 0:R.isAgent))?(0,s.jsxs)(l.lG,{onOpenChange:()=>{z&&(J.reset(),U(""),F(!1))},children:[(0,s.jsx)(l.zM,{asChild:!0,children:(0,s.jsxs)(n.$,{size:p,variant:P,onClick:()=>{var e;(0,E.Iv)({affiliate_id:(null===(e=(0,S.S_)())||void 0===e?void 0:e.affiliateCode)||null,previous_screen:(0,E.Pd)(),screen_name:D,source_from:G}),R&&Q()},className:(0,S.cn)("outline"===P&&"bg-transparent"),children:[(0,s.jsx)(N.A,{className:"h-4 w-4"})," Tạo Affiliate"]})}),(0,s.jsx)(l.Cf,{className:"md:top-[50vh] top-[32vh] left-1/2 -translate-x-1/2 fixed w-[90%] max-w-sm",children:(0,s.jsxs)(A.Bc,{children:[(0,s.jsxs)(l.c7,{children:[(0,s.jsxs)(l.L3,{children:["Chia sẻ ",W]}),(0,s.jsx)(l.rr,{children:"D\xe0nh cho đối t\xe1c Droppii"})]}),(0,s.jsxs)("div",{className:"p-5",children:[(0,s.jsx)("img",{src:"/share-affiliate.svg",className:"w-[40%] mx-auto py-5",alt:""}),(0,s.jsx)(i.Op,{...J,children:(0,s.jsxs)("form",{onSubmit:B(Q),className:"flex flex-col gap-4",children:[(0,s.jsx)(r.Z,{name:"identify",placeholder:"T\xean t\xe0i khoản hoặc số điện thoại",disabled:!!R}),$?(0,s.jsx)(u.E,{className:"h-6 w-full"}):(null==Z?void 0:Z.data)?(0,s.jsxs)("div",{className:"flex items-center justify-between py-2 pl-1",children:[(0,s.jsxs)(C.J,{className:"flex gap-2 items-center",children:[(0,s.jsx)(w.A,{className:"text-green-700"}),Z.data.fullName]}),(0,s.jsxs)(n.$,{type:"submit",size:"sm",isLoading:K,disabled:!!(null==Z?void 0:Z.message)||$||!!L||!V.identify||!(null==Z?void 0:Z.data),children:[K?null:(0,s.jsx)(T.A,{className:"ml-1",size:10}),"Tạo li\xean kết"]})]}):(null==Z?void 0:Z.message)?(0,s.jsx)("div",{className:"text-sm text-red-500 text-right",children:Z.message}):null,L?(0,s.jsxs)("div",{className:"p-4 border rounded-lg border-dashed flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"px-10 pt-3 pb-2 relative",children:[(0,s.jsx)("hr",{className:"m-0"}),(0,s.jsx)("div",{className:"absolute bg-white left-1/2 -translate-x-1/2 top-1/2 -translate-y-[10px] px-3 text-xs text-gray-400",children:"Li\xean kết Affiliate"})]}),(0,s.jsx)("div",{className:"flex items-center gap-2",children:(0,s.jsx)(j.p,{value:"".concat("https://droppii.vn").concat(b.bw.AFFILIATE(L)),readOnly:!0,copyable:!0,onCopy:()=>{var e,a;(0,E.Xj)({type:X,product_id:null!=t?t:null,product_sku_id:null!=o?o:null,cart_value:t?null:M(),affiliate_id:L,link:"".concat("https://droppii.vn").concat(b.bw.AFFILIATE(L)),agent_id:null!==(a=null==Z?void 0:null===(e=Z.data)||void 0===e?void 0:e.id)&&void 0!==a?a:"",previous_screen:(0,E.Pd)(),screen_name:D,source_from:G})},size:40})})]}):null]})})]})]})})]}):null}},56204:(e,t,a)=>{a.d(t,{default:()=>n});
1var s=a(16125),l=a(65576);function n(e){let{title:t="Kh\xf4ng c\xf3 kết quả ph\xf9 hợp",description:a="H\xe3y thử thay đổi từ kh\xf3a hoặc bộ lọc v\xe0 t\xecm lại.",actionLabel:n,onAction:r}=e;return(0,s.jsxs)("div",{className:"w-full flex flex-col items-center justify-center py-12 text-center",children:[(0,s.jsx)("img",{src:"/images/package-icon.png",alt:"Empty",width:80,height:80}),(0,s.jsx)("h3",{className:"mt-4 text-lg font-semibold text-[#2b2b2d]",children:t}),(0,s.jsx)("p",{className:"mt-1 text-sm text-[#7a7a7a]",children:a}),n&&r&&(0,s.jsx)(l.$,{className:"mt-4",onClick:r,children:n})]})}},56977:(e,t,a)=>{a.d(t,{B:()=>r});var s=a(9417),l=a(28517),n=a(63444);function r(){let e=(0,l.k)(e=>e.user),t=(0,l.k)(e=>e.userReady);return(0,s.useMemo)(()=>{var a;let s=e?e.isAgent?n.ut.AGENT:n.ut.CUSTOMER:n.ut.NOT_LOGIN;return{userId:null!==(a=null==e?void 0:e.id)&&void 0!==a?a:"",userType:s,userReady:t}},[e,t])}},57427:(e,t,a)=>{a.d(t,{ff:()=>r,Cs:()=>i,ZR:()=>o,vP:()=>d,xj:()=>c});var s=a(69915
1),l=a(98426);let n="PERSONAL_DATA_CONSENT",r=e=>(0,s.G)(l.o.address_2_level?"/marketing-service/v2/public/customers":"/marketing-service/v1/public/customers",{method:"POST",body:JSON.stringify(e)}),i=e=>(0,s.G)("/user-service/v1/public/user/agent-info",{method:"POST",body:JSON.stringify({identify:e})}),o=()=>(0,s.G)("/user-service/v1/web/customer/customers/popup?popupType=".concat(n),{method:"GET"}),d=e=>(0,s.G)("/user-service/v1/web/customer/customers/popup?popupType=".concat(n,"&isAcknowledged=").concat(e),{method:"PUT"}),c=e=>(0,s.G)("/user-service/v1/web/customer/users/me/consents",{method:"PUT",body:JSON.stringify({personalDataConsents:e})})},61640:(e,t,a)=>{a.d(t,{Cf:()=>x,Es:()=>p,HM:()=>u,L3:()=>h,c7:()=>f,lG:()=>o,rr:()=>g,zM:()=>d});var s=a(16125),l=a(9417),n=a(7765),r=a(27430),i=a(53095);let o=n.bL,d=n.l9,c=n.ZL,u=n.bm,m=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)(n.hJ,{ref:t,className:(0,i.cn)("fixed inset-0 z-[100] bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...l})});m.displayName=n.hJ.displayName;let x=l.forwardRef((e,t)=>{let{className:a,children:l,...r}=e;return(0,s.jsxs)(c,{children:[(0,s.jsx)(m,{}),(0,s.jsx)(n.UC,{ref:t,className:(0,i.cn)("fixed left-[50%] top-[50%] z-[100] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] bg-background shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-2xl",a),onOpenAutoFocus:e=>e.preventDefault(),...r,children:l})]})});x.displayName=n.UC.displayName;let f=e=>{let{className:t,children:a,hideClose:l,...o}=e;return(0,s.jsxs)("div",{className:(0,i.cn)("flex items-start border-b px-5 py-4",l?"justify-center":"justify-between",t),...o,children:[(0,s.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5",l?"w-full items-center text-center":"text-center sm:text-left"),children:a}),!l&&(0,s.jsxs)(n.bm,{className:"rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,s.jsx)(r.A,{className:"h-6 w-6"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})};f.displayName="DialogHeader";let p=e=>{let{className:t,...a}=e;return(0,s.jsx)("div",{className:(0,i.cn)("flex w-full border-t p-4",t),...a})};p.displayName="DialogFooter";let h=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)(n.hE,{ref:t,className:(0,i.cn)("text-lg font-bold text-gray-950 leading-5",a),...l})});h.displayName=n.hE.displayName;let g=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)(n.VY,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",a),...l})});g.displayName=n.VY.displayName},67044:(e,t,a)=>{a.d(t,{p:()=>u});var s=a(16125),l=a(9417),n=a(27891),r=a(49959),i=a(49535),o=a(31983),d=a(53095),c=a(42457);let u=l.forwardRef((e,t)=>{let{className:a,type:u,clearable:m,copyable:x,value:f,prefix:p,onChange:h,onCopy:g,onEnter:y,onClear:v,...j}=e,[b,N]=l.useState(!1),[w,T]=l.useState(!1),[A,C]=l.useState(!1),E="password"===u,_=E?A?"text":"password":u,k="string"==typeof a&&a.includes("border-red-500"),S=!!j.disabled,O=(m&&f?1:0)+(x&&f?1:0)+ +!!E,I=O>=3?"pr-24":2===O?"pr-16":1===O?"pr-10":"",P=async()=>{f&&(await navigator.clipboard.writeText(f),N(!0),T(!0),null==g||g(),setTimeout(()=>{N(!1),T(!1)},2e3))};return(0,s.jsxs)("div",{className:"relative w-full",children:[p?(0,s.jsxs)("div",{className:(0,d.cn)("box-border flex h-12 w-full items-stretch rounded-lg border border-gray-300 ring-offset-background",S?"bg-gray-100":"bg-background","focus-within:outline-none focus-within:ring-2 focus-within:border-transparent overflow-hidden",k?"focus-within:ring-red-500":"focus-within:ring-amber-400",a),children:[(0,s.jsx)("div",{className:(0,d.cn)("flex h-full items-center px-3 text-base text-gray-950 border-r border-gray-300",S&&"bg-gray-100"),children:p}),(0,s.jsx)("input",{type:_,className:(0,d.cn)("box-border block truncate flex-1 h-full min-h-full bg-transparent px-4 py-3 text-base text-gray-950 placeholder:text-md placeholder:font-normal placeholder:text-gray-500 disabled:cursor-not-allowed disabled:opacity-50","focus:outline-none focus:ring-0",I),value:f,onChange:h,onKeyDown:e=>{"Enter"===e.key&&(null==y||y())},ref:t,...j})]}):(0,s.jsx)("input",{type:_,className:(0,d.cn)("truncate flex h-12 w-full rounded-lg border border-gray-300 bg-background px-4 py-3 text-base text-gray-950 ring-offset-background placeholder:text-md placeholder:font-normal placeholder:text-gray-500 disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-gray-100","focus:outline-none focus:ring-2 focus:ring-amber-400 focus:border-transparent",I,a),value:f,onChange:h,onKeyDown:e=>{"Enter"===e.key&&(null==y||y())},ref:t,...j}),O>0&&(0,s.jsxs)("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex items-center gap-1",children:[m&&f&&!S&&(0,s.jsx)("button",{type:"button",onClick:()=>{null==v||v(),h&&h({target:{value:""}}),t&&"function"!=typeof t&&(null==t?void 0:t.current)&&(t.current.value="")},className:"flex h-8 w-8 items-center justify-center bg-transparent hover:text-gray-600",children:(0,s.jsx)(n.A,{className:"w-6 h-6",fill:"#393E40",color:"white"})}),E&&(0,s.jsx)("button",{type:"button",onClick:()=>C(e=>!e),className:"flex h-8 w-8 items-center justify-center bg-transparent text-gray-950 hover:text-gray-600",tabIndex:-1,
1children:A?(0,s.jsx)(r.A,{className:"h-6 w-6"}):(0,s.jsx)(i.A,{className:"h-6 w-6"})}),x&&f&&(0,s.jsxs)(c.m_,{open:w,onOpenChange:e=>T(e),delayDuration:0,children:[(0,s.jsx)(c.k$,{asChild:!0,children:(0,s.jsx)("button",{type:"button",onClick:P,onPointerEnter:()=>!b&&T(!0),onPointerLeave:()=>!b&&T(!1),onFocus:()=>!b&&T(!0),onBlur:()=>!b&&T(!1),className:"flex h-8 w-8 items-center justify-center bg-transparent text-gray-400 hover:text-gray-600",children:(0,s.jsx)(o.A,{className:"w-4 h-4"})})}),(0,s.jsx)(c.ZI,{children:(0,s.jsx)("p",{children:b?"Đ\xe3 sao ch\xe9p":"Sao ch\xe9p"})})]})]})]})});u.displayName="Input"},80049:(e,t,a)=>{a.d(t,{E:()=>n});var s=a(16125),l=a(53095);function n(e){let{className:t,...a}=e;return(0,s.jsx)("div",{className:(0,l.cn)("animate-pulse rounded-md bg-muted",t),...a})}},80487:(e,t,a)=>{a.d(t,{E:()=>n,Y:()=>l});var s=a(69915);let l=e=>(0,s.G)("/order-service/v1/public/affiliate",{method:"POST",body:JSON.stringify(e)}),n=e=>(0,s.G)("/order-service/v1/public/affiliate/".concat(e),{method:"GET"})},86207:(e,t,a)=>{a.d(t,{A:()=>o});var s=a(16125),l=a(53095),n=a(22925),r=a(47599),i=a(11630);function o(e){let{src:t,alt:a="",width:o,height:d,className:c,priority:u=!1,sizes:m,quality:x}=e,f=(0,n.mE)(t);return f?(0,s.jsx)(i.default,{src:f,alt:a,width:o,height:d,sizes:m,className:c,priority:u,quality:x,fetchPriority:u?"high":void 0,loading:u?"eager":"lazy"}):(0,s.jsx)("div",{className:(0,l.cn)("flex items-center justify-center bg-gray-50 w-full h-full",c),children:(0,s.jsx)(r.A,{className:"text-gray-500 w-2/3"})})}},90458:(e,t,a)=>{a.d(t,{Z:()=>m});var s=a(16125),l=a(67044),n=a(10498),r=a(42457),i=a(9417),o=a(15461),d=a(53095),c=a(1154);let u=e=>{var t;let{label:a,name:u,placeholder:m,isVertical:x,errorMessage:f,required:p,infoMessage:h,type:g="text",labelClassName:y,...v}=e,j=(0,o.xW)(),[b,N]=(0,i.useState)(!1),{register:w,formState:{errors:T}}=j,A=f||(null==T?void 0:null===(t=T[u])||void 0===t?void 0:t.message),C=(0,o.FH)({control:j.control,name:u});return(0,s.jsxs)("div",{className:(0,d.cn)("flex gap-1",x?"flex-col":"flex-col md:flex-row md:items-center md:gap-0"),children:[a&&(0,s.jsxs)(n.J,{className:(0,d.cn)("font-bold text-md text-gray-950 flex items-center",x?"w-full":"w-full md:w-1/2",y),children:[a,p&&(0,s.jsx)("span",{className:"text-red-500 ml-1",children:"*"}),h&&(0,s.jsx)(r.Bc,{delayDuration:0,children:(0,s.jsxs)(r.m_,{open:b,onOpenChange:N,children:[(0,s.jsx)(r.k$,{asChild:!0,children:(0,s.jsx)("button",{type:"button","aria-label":"Info",onClick:()=>N(e=>!e),onPointerEnter:()=>N(!0),onPointerLeave:()=>N(!1),onFocus:()=>N(!0),onBlur:()=>N(!1),className:"ml-1 inline-flex items-center text-gray-400 hover:text-gray-600",children:(0,s.jsx)(c.A,{className:"h-4 w-4"})})}),(0,s.jsx)(r.ZI,{side:"top",align:"start",children:(0,s.jsx)("p",{children:h})})]})})]}),(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)(l.p,{placeholder:m,type:g,value:"string"==typeof C?C:null!=C?C:"",onClear:()=>j.setValue(u,"",{shouldDirty:!0,shouldTouch:!0}),...w(u),...v,className:(0,d.cn)(A?"border-red-500 focus:ring-red-500":"border-gray-300 focus:ring-amber-400",v.className)}),A&&(0,s.jsx)("p",{className:"text-sm text-red-500 py-1",children:A})]})]})},m=e=>{let{label:t,name:a,placeholder:m,isVertical:x,errorMessage:f,required:p,infoMessage:h,type:g="text",labelClassName:y,...v}=e,j=(0,o.xW)(),[b,N]=(0,i.useState)(!1);return j&&a?(0,s.jsx)(u,{label:t,name:a,placeholder:m,isVertical:x,errorMessage:f,required:p,infoMessage:h,type:g,labelClassName:y,...v}):(0,s.jsxs)("div",{className:(0,d.cn)("flex gap-1",x?"flex-col":"items-center"),children:[t&&(0,s.jsxs)(n.J,{className:(0,d.cn)("font-bold text-md text-gray-950 flex items-center",!x&&"w-1/5",y),children:[t,p&&(0,s.jsx)("span",{className:"text-red-500",children:" *"}),h&&(0,s.jsx)(r.Bc,{delayDuration:0,children:(0,s.jsxs)(r.m_,{open:b,onOpenChange:N,children:[(0,s.jsx)(r.k$,{asChild:!0,children:(0,s.jsx)("button",{type:"button","aria-label":"Info",onClick:()=>N(e=>!e),onPointerEnter:()=>N(!0),onPointerLeave:()=>N(!1),onFocus:()=>N(!0),onBlur:()=>N(!1),className:"ml-1 inline-flex items-center text-gray-400 hover:text-gray-600",children:(0,s.jsx)(c.A,{className:"h-4 w-4"})})}),(0,s.jsx)(r.ZI,{side:"top",align:"start",children:(0,s.jsx)("p",{children:h})})]})})]}),(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)(l.p,{placeholder:m,type:g,className:(0,d.cn)(f?"border-red-500 focus:ring-red-500":"border-gray-300 focus:ring-amber-400",v.className),...v}),f&&(0,s.jsx)("p",{className:"text-sm text-red-500 py-1",children:f})]})]})}}}]);

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.