1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9ab3046b-8fbb-4ef8-821e-0e499bae758b",e._sentryDebugIdIdentifier="sentry-dbid-9ab3046b-8fbb-4ef8-821e-0e499bae758b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6715],{5401:(e,t,r)=>{"use strict";r.d(t,{d:()=>l});var n=r(23798),i=r(21462),o=r(46001),s=r.n(o),a=r(2690);let l=(0,i.forwardRef)((e,t)=>{let{currentPage:r,totalPages:i,handleChangePage:o}=e,{isMobile:l}=(0,a.e)(),c=(()=>{let e=[],t=l?1:3,n=Math.max(1,r-t),o=Math.min(i,r+t);r<=t&&(o=Math.min(i,2*t)),r+t>=i&&(n=Math.max(1,i-2*t+1));for(let t=n;t<=o;t+=1)e.push(t);return n>2?(e.unshift("..."),e.unshift(1)):2===n&&e.unshift(1),o<i-1?(e.push("..."),e.push(i)):o===i-1&&e.push(i),e})();return 0===i?(0,n.jsx)("div",{className:"h-[40px]"}):(0,n.jsx)("div",{className:"flex items-center justify-center gap-2",children:c.map((e,i)=>(0,n.jsx)("button",{type:"button",onClick:()=>"number"==typeof e&&void(t&&"current"in t&&t.current?setTimeout(()=>{var e;null==t||null==(e=t.current)||e.scrollIntoView({behavior:"smooth",block:"start"})},1e3):window.scrollTo({top:0,behavior:"smooth"}),o(e)),className:s()("h-10 w-10 rounded-full hover:border-primaryColor hover:text-textColor border border-solid p-2 text-base font-medium",{"border-accentBorder":e!==r,"border-primaryColor":e===r,"cursor-default":"number"!=typeof e,"text-textColor":e===r,"text-secondaryTextColor":e!==r}),disabled:"number"!=typeof e,children:e},"page-".concat(e,"-").concat(i)))})})},17447:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(23798);r(21462);let i=e=>{let{width:t=24,height:r=24,color:i="#35C18F"}=e;return(0,n.jsxs)("svg",{width:t,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:i}),(0,n.jsx)("path",{d:"M7 12.5L10 15.5L17 8.5",stroke:"#FFFFFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}},32621:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/activity",function(){return r(39580)}])},39580:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSG:()=>T,default:()=>Z});var n=r(23798),i=r(39703),o=r(21462),s=r(54713),a=r(32759),l=r(46001),c=r.n(l),h=r(13775),u=r(89478),d=r(13488),g=r(14285),p=r(49977);let f=async e=>{let{userId:t,token:r,page:n=0,limit:i=3,locale:o="en"}=e;return await g.F.get("user/".concat(t,"/activity"),{params:{page:n,limit:i,locale:o},token:r,service:p.c.BACKEND,version:p.S.V3})};var C=r(48184);let m=()=>{let{t:e}=(0,s.Bd)();return(0,n.jsx)("div",{className:"p-[6px]",children:(0,n.jsx)("p",{className:"font-base text-textColor text-base",children:e("common:errorLoadingActivity")})})};var x=r(2690);let v=e=>{let{width:t=24,height:r=24,color:i="#1AAFDE"}=e;return(0,n.jsxs)("svg",{width:t,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:i}),(0,n.jsx)("svg",{width:t,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",x:"3",y:"3.5",children:(0,n.jsx)("g",{id:"ant-design:star-outlined",children:(0,n.jsx)("path",{id:"Vector",d:"M15.5144 6.00738L11.3922 5.40829L9.54952 1.67254C9.49919 1.57026 9.41639 1.48746 9.31411 1.43713C9.05759 1.31049 8.74587 1.41602 8.61761 1.67254L6.7749 5.40829L2.65275 6.00738C2.5391 6.02361 2.4352 6.07719 2.35564 6.15836C2.25947 6.25722 2.20647 6.39021 2.2083 6.52811C2.21012 6.66602 2.26662 6.79756 2.36538 6.89383L5.34782 9.80157L4.6432 13.9075C4.62668 14.003 4.63725 14.1012 4.67371 14.191C4.71018 14.2809 4.77107 14.3587 4.8495 14.4156C4.92793 14.4726 5.02075 14.5064 5.11744 14.5133C5.21412 14.5202 5.31081 14.4999 5.39652 14.4546L9.08357 12.5161L12.7706 14.4546C12.8713 14.5082 12.9882 14.5261 13.1002 14.5066C13.3827 14.4579 13.5726 14.19 13.5239 13.9075L12.8193 9.80157L15.8018 6.89383C15.8829 6.81427 15.9365 6.71037 15.9527 6.59672C15.9966 6.3126 15.7985 6.04959 15.5144 6.00738Z",fill:"none",stroke:"#FFF"})})})]})},w=e=>{let{width:t=24,height:r=24,color:i="#FB3F4A"}=e;return(0,n.jsxs)("svg",{width:t,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:i}),(0,n.jsx)("path",{d:"M13.3033 12L16.7301 8.57328C17.09 8.21335 17.09 7.62987 16.7301 7.26995C16.3701 6.91002 15.7866 6.91002 15.4267 7.26995L12 10.6967L8.57328 7.26995C8.21335 6.91002 7.62987 6.91002 7.26995 7.26995C6.91002 7.62987 6.91002 8.21335 7.26995 8.57328L10.6967 12L7.26995 15.4267C6.91002 15.7866 6.91002 16.3701 7.26995 16.7301C7.62987 17.09 8.21335 17.09 8.57328 16.7301L12 13.3033L15.4267 16.7301C15.7866 17.09 16.3701 17.09 16.7301 16.7301C17.09 16.3701 17.09 15.7866 16.7301 15.4267L13.3033 12Z",fill:"#FCFCFC"})]})};var y=r(17447);let b=e=>{let{width:t=24,height:r=24,color:i="#1AAFDE"}=e;return(0,n.jsxs)("svg",{width:t,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:i}),(0,n.jsxs)("g",{clipPath:"url(#clip0_1_9755)",children:[(0,n.jsx)("path",{d:"M11.5 17.9166C14.1924 17.9166 16.375 15.734 16.375 13.0416C16.375 10.3492 14.1924 8.16663 11.5 8.16663C8.80761 8.16663 6.625 10.3492 6.625 13.0416C6.625 15.734 8.80761 17.9166 11.5 17.9166Z",stroke:"#FCFCFC",strokeWidth:"1.05238",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M11.4999 8.16671V7.08337M13.3958 11.1459L11.4999 13.0417L13.3958 11.1459ZM15.2916 16.2917L15.8333 17.9167L15.2916 16.2917ZM7.70825 16.2917L7.16659 17.9167L7.70825 16.2917ZM6.08325 8.70837L7.70825 7.08337L6.08325 8.70837ZM15.2916 7.08337L16.9166 8.70837L15.2916 7.08337Z",stroke:"#FCFCFC",strokeWidth:"1.05238",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_1_9755",children:(0,n.jsx)("rect",{width:"13",height:"13",fill:"white",transform:"translate(5 6)"})})})]})},j=e=>{let{width:t=24,height:r=24,color:i="#FCBF49"}=e;return(0,n.jsxs)("svg",{width:t,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:i}),(0,n.jsx)("path",{d:"M12 6C10.8133 6 9.65328 6.35189 8.66658 7.01118C7.67989 7.67047 6.91085 8.60754 6.45673 9.7039C6.0026 10.8003 5.88378 12.0067 6.11529 13.1705C6.3468 14.3344 6.91825 15.4035 7.75736 16.2426C8.59648 17.0818 9.66557 17.6532 10.8295 17.8847C11.9933 18.1162 13.1997 17.9974 14.2961 17.5433C15.3925 17.0891 16.3295 16.3201 16.9888 15.3334C17.6481 14.3467 18 13.1867 18 12C17.9985 10.4092 17.3659 8.88388 16.241 7.75898C15.1161 6.63408 13.5908 6.00147 12 6ZM12 16.6667C11.077 16.6667 10.
11748 16.393 9.40734 15.8802C8.63991 15.3674 8.04177 14.6386 7.68856 13.7859C7.33536 12.9331 7.24294 11.9948 7.423 11.0896C7.60307 10.1843 8.04753 9.35281 8.70017 8.70017C9.35282 8.04752 10.1843 7.60307 11.0896 7.423C11.9948 7.24294 12.9331 7.33535 13.7859 7.68856C14.6386 8.04177 15.3674 8.63991 15.8802 9.40734C16.393 10.1748 16.6667 11.077 16.6667 12C16.6652 13.2372 16.1731 14.4234 15.2982 15.2982C14.4234 16.1731 13.2372 16.6652 12 16.6667ZM15.7778 12C15.7778 12.1768 15.7075 12.3464 15.5825 12.4714C15.4575 12.5964 15.2879 12.6667 15.1111 12.6667H12C11.8232 12.6667 11.6536 12.5964 11.5286 12.4714C11.4036 12.3464 11.3333 12.1768 11.3333 12V8.88889C11.3333 8.71208 11.4036 8.54251 11.5286 8.41748C11.6536 8.29246 11.8232 8.22222 12 8.22222C12.1768 8.22222 12.3464 8.29246 12.4714 8.41748C12.5964 8.54251 12.6667 8.71208 12.6667 8.88889V11.3333H15.1111C15.2879 11.3333 15.4575 11.4036 15.5825 11.5286C15.7075 11.6536 15.7778 11.8232 15.7778 12Z",fill:"#FCFCFC"})]})},M=e=>{let{width:t=24,height:r=24,color:i="#FB3F4A"}=e;return(0,n.jsxs)("svg",{width:t,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:i}),(0,n.jsx)("g",{clipPath:"url(#clip0_1_9672)",children:(0,n.jsx)("path",{d:"M13.52 5.33374C13.7998 5.33381 14.0726 5.42193 14.2995 5.58561C14.5265 5.74929 14.6962 5.98024 14.7847 6.24574L15.1467 7.33374H17.3333C17.5101 7.33374 17.6797 7.40398 17.8047 7.529C17.9298 7.65403 18 7.8236 18 8.00041C18 8.17722 17.9298 8.34679 17.8047 8.47181C17.6797 8.59684 17.5101 8.66707 17.3333 8.66707L17.3313 8.71441L16.7533 16.8097C16.7173
117.3141 16.4915 17.7862 16.1214 18.1308C15.7513 18.4754 15.2644 18.667 14.7587 18.6671H9.24133C8.73564 18.667 8.24874 18.4754 7.87864 18.1308C7.50855 17.7862 7.28274 17.3141 7.24667 16.8097L6.66867 8.71374C6.66746 8.69821 6.66679 8.68265 6.66667 8.66707C6.48986 8.66707 6.32029 8.59684 6.19526 8.47181C6.07024 8.34679 6 8.17722 6 8.00041C6 7.8236 6.07024 7.65403 6.19526 7.529C6.32029 7.40398 6.48986 7.33374 6.66667 7.33374H8.85333L9.21533 6.24574C9.3038 5.98013 9.47362 5.74911 9.70073 5.58542C9.92784 5.42173 10.2007 5.33367 10.4807 5.33374H13.52ZM15.998 8.66707H8.002L8.57667 16.7144C8.58863 16.8825 8.66385 17.0399 8.78717 17.1548C8.9105 17.2697 9.07277 17.3337 9.24133 17.3337H14.7587C14.9272 17.3337 15.0895 17.2697 15.2128 17.1548C15.3362 17.0399 15.4114 16.8825 15.4233 16.7144L15.998 8.66707ZM10.6667 10.6671C10.83 10.6671 10.9876 10.727 11.1096 10.8356C11.2316 10.9441 11.3096 11.0936 11.3287 11.2557L11.3333 11.3337V14.6671C11.3331 14.837 11.2681 15.0004 11.1514 15.124C11.0348 15.2475 10.8754 15.3219 10.7057 15.3319C10.5361 15.3418 10.3691 15.2866 10.2388 15.1776C10.1085 15.0685 10.0247 14.9138 10.0047 14.7451L10 14.6671V11.3337C10 11.1569 10.0702 10.9874 10.1953 10.8623C10.3203 10.7373 10.4899 10.6671 10.6667 10.6671ZM13.3333 10.6671C13.5101 10.6671 13.6797 10.7373 13.8047 10.8623C13.9298 10.9874 14 11.1569 14 11.3337V14.6671C14 14.8439 13.9298 15.0135 13.8047 15.1385C13.6797 15.2635 13.5101 15.3337 13.3333 15.3337C13.1565 15.3337 12.987 15.2635 12.8619 15.1385C12.7369 15.0135 12.6667 14.8439 12.6667 14.6671V11.3337C12.6667 11.1569 12.7369 10.9874 12.8619 10.8623C12.987 10.7373 13.1565 10.6671 13.3333 10.6671ZM13.52 6.66707H10.48L10.258 7.33374H13.742L13.52 6.66707Z",fill:"#FFFFFF"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_1_9672",children:(0,n.jsx)("rect",{width:"16",height:"16",fill:"white",transform:"translate(4 4)"})})})]})},L=e=>{let{width:t=24,height:r=24,color:i="#35C18F"}=e;return(0,n.jsxs)("svg",{width:t,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:i}),(0,n.jsx)("path",{d:"M9.84994 18.1998H15.35C15.7875 18.1998 16.2072 18.026 16.5167 17.7165C16.8262 17.4071 17 16.9875 17 16.5498V6.64998C17 6.21236 16.8262 5.79267 16.5167 5.4833C16.2072 5.17384 15.7875 5 15.35 5H9.84994C9.41241 5 8.99273 5.17384 8.68327 5.4833C8.3738 5.79267 8.19996 6.21236 8.19996 6.64998V9.40002C8.19996 9.59651 8.30484 9.77808 8.47499 9.87632C8.64515 9.97456 8.85479 9.97456 9.02495 9.87632C9.19511 9.77808 9.29998 9.59651 9.29998 9.40002V6.64998C9.29998 6.50413 9.35789 6.36418 9.46111 6.26105C9.56423 6.15793 9.7041 6.10002 9.84994 6.10002H15.35C15.4959 6.10002 15.6357 6.15793 15.7388 6.26105C15.8421 6.36418 15.9 6.50412 15.9 6.64998V16.5498C15.9 16.6957 15.8421 16.8356 15.7388 16.9388C15.6357 17.0419 15.4959 17.0998 15.35 17.0998H9.84994C9.70409 17.0998 9.56423 17.0419 9.46111 16.9388C9.35789 16.8356 9.29998 16.6957 9.29998 16.5498V13.7998C9.29998 13.6033 9.19511 13.4217 9.02495 13.3235C8.8548 13.2253 8.64515 13.2253 8.47499 13.3235C8.30483 13.4217 8.19996 13.6033 8.19996 13.7998V16.5498C8.19996 16.9875 8.3738 17.4071 8.68327 17.7165C8.99273 18.026 9.41241 18.1998 9.84994 18.1998Z",fill:"#FCFCFC"}),(0,n.jsx)("path",{d:"M12.0504 14.35C12.1966 14.3509 12.3371 14.2935 12.4409 14.1905L14.6408 11.9905C14.7433 11.8875 14.8008 11.7481 14.8008 11.6028C14.8008 11.4575 14.7433 11.3181 14.6408 11.2151L12.4409 9.01515V9.01506C12.2993 8.8938 12.1059 8.85255 11.9271 8.9054C11.7484 8.95825 11.6085 9.09811 11.5557 9.27683C11.5028 9.45564 11.5441 9.649 11.6654 9.79061L13.4749 11.6001L11.6654 13.4095H11.6654C11.5619 13.5123 11.5033 13.652 11.5027 13.7978C11.5021 13.9437 11.5595 14.0838 11.6621 14.1874C11.7649 14.2909 11.9046 14.3494 12.0504 14.3501L12.0504 14.35Z",fill:"#FCFCFC"}),(0,n.jsx)("path",{d:"M6.54985 12.1495H14.2498C14.4463 12.1495 14.6279 12.0447 14.7261 11.8745C14.8244 11.7044 14.8244 11.4947 14.7261 11.3245C14.6279 11.1543 14.4463 11.0496 14.2498 11.0496H6.54985C6.35336 11.0496 6.17179 11.1543 6.07354 11.3245C5.9753 11.4946 5.9753 11.7044 6.07354 11.8745C6.17179 12.0447 6.35336 12.1495 6.54985 12.1495Z",fill:"#FCFCFC"})]})},F=e=>{let{width:t=24,height:r=24,color:i="#B9B9B9"}=e;return(0,n.jsxs)("svg",{width:t,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:i}),(0,n.jsx)("path",{d:"M9.00937 14.9918C7.93312 14.2276 7.08145 13.2336 6.6002 12.6059C6.46563 12.4327 6.39258 12.2195 6.39258 12.0001C6.39258 11.7807 6.46563 11.5676 6.6002 11.3943C7.47112 10.2574 9.56062 7.9165 12.0001 7.9165C13.0945 7.9165 14.1176 8.38725 14.9926 9.00967",stroke:"#FCFCFC",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M7.3335 16.6666L16.6668 7.33325M10.8335 15.9106C11.2122 16.0233 11.605 16.0815 12.0002 16.0833C14.4397 16.0833 16.5292 13.7423 17.4001 12.6054C17.5346 12.432 17.6076 12.2187 17.6075 11.9992C17.6074 11.7797 17.5342 11.5665 17.3995 11.3933C17.0934 10.994 16.7651 10.6122 16.416 10.2499M13.2427 10.7673C13.0807 10.6026 12.8877 10.4717 12.6748 10.3819C12.4619
110.2922 12.2334 10.2455 12.0024 10.2445C11.7714 10.2436 11.5425 10.2883 11.3288 10.3763C11.1152 10.4642 10.9211 10.5936 10.7578 10.7569C10.5944 10.9203 10.465 11.1143 10.377 11.3279C10.289 11.5415 10.2441 11.7704 10.2451 12.0014C10.246 12.2324 10.2926 12.461 10.3823 12.6739C10.472 12.8868 10.6029 13.0798 10.7676 13.2418L13.2427 10.7673Z",stroke:"#FCFCFC",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_1_9672",children:(0,n.jsx)("rect",{width:"16",height:"16",fill:"white",transform:"translate(4 4)"})})})]})},k=e=>{let{width:t=19,height:r=19,color:i="#1AAFDE"}=e;return(0,n.jsxs)("svg",{width:t,height:r,viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M9.75 0.750732C7.96997 0.750732 6.22991 1.27857 4.74987 2.26751C3.26983 3.25644 2.11628 4.66205 1.43509 6.30658C0.7539 7.95112 0.57567 9.76072 0.922937 11.5065C1.2702 13.2524 2.12737 14.856 3.38604 16.1147C4.64472 17.3734 6.24836 18.2305 7.99419 18.5778C9.74002 18.9251 11.5496 18.7468 13.1942 18.0656C14.8387 17.3845 16.2443 16.2309 17.2332 14.7509C18.2222 13.2708 18.75 11.5308 18.75 9.75073C18.75 8.56884 18.5172 7.39851 18.0649 6.30658C17.6126 5.21465 16.9497 4.2225 16.114 3.38677C15.2782 2.55104 14.2861 1.88811 13.1942 1.43582C12.1022 0.983524 10.9319 0.750732 9.75 0.750732ZM9.75 16.9507C8.32598 16.9507 6.93393 16.5285 5.7499 15.7373C4.56586 14.9462 3.64302 13.8217 3.09807 12.5061C2.55312 11.1904 2.41054 9.74275 2.68835 8.34608C2.96616 6.94942 3.6519 5.6665 4.65883 4.65956C5.66577 3.65263 6.94869 2.96689 8.34535 2.68908C9.74202 2.41127 11.1897 2.55385 12.5053 3.0988C13.821 3.64375 14.9454 4.56659 15.7366 5.75063C16.5277 6.93466 16.95 8.32671 16.95 9.75073C16.95 11.6603 16.1914 13.4916 14.8412 14.8419C13.4909 16.1922 11.6596 16.9507 9.75 16.9507Z",fill:i}),(0,n.jsx)("path",{d:"M9.7501 14.25C10.2472 14.25 10.6501 13.847 10.6501 13.35C10.6501 12.8529 10.2472 12.45 9.7501 12.45C9.25304 12.45 8.8501 12.8529 8.8501 13.35C8.8501 13.847 9.25304 14.25 9.7501 14.25Z",fill:i}),(0,n.jsx)("path",{d:"M9.7501 5.24921C9.5114 5.24921 9.28248 5.34403 9.1137 5.51281C8.94492 5.68159 8.8501 5.91051 8.8501 6.14921V10.6492C8.8501 10.8879 8.94492 11.1168 9.1137 11.2856C9.28248 11.4544 9.5114 11.5492 9.7501 11.5492C9.98879 11.5492 10.2177 11.4544 10.3865 11.2856C10.5553 11.1168 10.6501 10.8879 10.6501 10.6492V6.14921C10.6501 5.91051 10.5553 5.68159 10.3865 5.51281C10.2177 5.34403 9.98879 5.24921 9.7501 5.24921Z",fill:i})]})},O=e=>{let{width:t=24,height:r=24,color:i="#35C18F",strokeWidth:o=1.25}=e;return(0,n.jsxs)("svg",{width:t,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:i}),(0,n.jsx)("path",{d:"M18.125 14.375C18.125 14.7065 17.9933 15.0245 17.7589 15.2589C17.5245 15.4933 17.2065 15.625 16.875 15.625H9.375L6.875 18.125V8.125C6.875 7.79348 7.0067 7.47554 7.24112 7.24112C7.47554 7.0067 7.79348 6.875 8.125 6.875H16.875C17.2065 6.875 17.5245 7.0067 17.7589 7.24112C17.9933 7.47554 18.125 7.79348 18.125 8.125V14.375Z",stroke:"#FFFFFF",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})]})},S=e=>{let{width:t=24,height:r=24,color:i="#35C18F",strokeWidth:o=1.2}=e;return(0,n.jsxs)("svg",{width:t,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:i}),(0,n.jsx)("path",{d:"M12.4576 9.35809L14.6418 11.5413L12.4576 9.35809ZM13.8622 7.43479L7.95616 13.3408C7.651 13.6455 7.44288 14.0338 7.35803 14.4566L6.8125 17.1874L9.54327 16.6408C9.96608 16.5563 10.3538 16.349 10.6591 16.0437L16.5651 10.1377C16.7426 9.96024 16.8834 9.74955 16.9794 9.51766C17.0755 9.28578 17.1249 9.03724 17.1249 8.78626C17.1249 8.53527 17.0755 8.28673 16.9794 8.05485C16.8834 7.82297 16.7426 7.61227 16.5651 7.43479C16.3876 7.25732 16.1769 7.11654 15.945 7.02049C15.7132 6.92444 15.4646 6.875 15.2136 6.875C14.9626 6.875 14.7141 6.92444 14.4822 7.02049C14.2503 7.11654 14.0396 7.25732 13.8622 7.43479V7.43479Z",stroke:"#FCFCFC",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})]})};var I=function(e){return e.SUCCESS="#35C18F",e.PENDING="#EEB115",e.ERROR="#EB252E",e.INFO="#1AAFDE",e.GRAY="#B9B9B9",e}({});let P=e=>{let{width:t=24,height:r=24,color:i="#B9B9B9"}=e;return(0,n.jsxs)("svg",{width:t,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:i}),(0,n.jsx)("path",{d:"M10.5625 7.18701C10.5625 6.93837 10.6613 6.69991 10.8371 6.5241C11.0129 6.34828 11.2514 6.24951 11.5 6.24951C11.7486 6.24951 11.9871 6.34828 12.1629 6.5241C12.3387 6.69991 12.4375 6.93837 12.4375 7.18701V14.687C12.4375 14.9357 12.3387 15.1741 12.1629 15.3499C11.9871 15.5257 11.7486 15.6245 11.5 15.6245C11.2514 15.6245 11.0129 15.5257 10.8371 15.3499C10.6613 15.1741 10.5625 14.9357 10.5625 14.687V7.18701ZM10.5625 17.812C10.5625 17.5634 10.6613 17.3249 10.8371 17.1491C11.0129 16.9733 11.2514 16.8745 11.5 16.8745C11.7486 16.8745 11.9871 16.9733 12.1629 17.1491C12.3387 17.3249 12.4375 17.5634 12.4375 17.812C12.4375 18.0607 12.3387 18.2991 12.1629 18.4749C11.9871 18.6507 11.7486 18.7495 11.5 18.7495C11.2514 18.7495 11.0129 18.6507 10.8371 18.4749C10.6613 18.2991 10.5625 18.0607 10.5625 17.812Z",fill:"#FCFCFC"})]})},D=(e,t)=>{let r=new Date;r.setMinutes(r.getMinutes()+r.getTimezoneOffset()+60*t);let n=new Date(r);n.setDate(r.getDate()-1);let i=new Date(e);return(i.setMinutes(i.getMinutes()+i.getTimezoneOffset()+60*t),i.toDateString()===r.toDateString())?"today":i.toDateString()===n.toDateString()?"yesterday":void 0};var E=r(12674);let N=e=>{let{text:t,maxLength:r}=e;return t.length>r?["".concat(t.slice(0,r),"..."),!0]:[t,!1]},R=e=>{let{title:t,eventOccurredOn:r,body:i,iconType:a,color:l}=e,h=(0,o.useMemo)(()=>(e=>{switch(e){case 0:return y.A;case 1:return j;case 2:case 9:case 10:return b;case 3:return w;case 4:return L;case 5:return F;case 6:return M;case 7:return P;case 8:return S;case 11:return v;case 12:return O;default:return k}})(a),[a]),{isMobile:u}=(0,x.e)(),{t:d}
1=(0,s.Bd)(),[g,p]=o.useState(""),[f,C]=o.useState(!1),[m,D]=(0,o.useMemo)(()=>u?N({text:i,maxLength:100}):N({text:i,maxLength:200}),[i,u]);return(0,o.useEffect)(()=>{p(m)},[m]),(0,n.jsxs)("article",{className:"text-textColor flex flex-col gap-2 p-[6px] text-base font-medium",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("p",{className:c()("text-textColor flex items-center gap-2 font-semibold",{"text-base":u,"text-lg":!u}),children:[(0,n.jsx)(h,{color:(e=>{switch(e){case 0:return I.PENDING;case 1:return I.SUCCESS;case 2:return I.ERROR;case 3:return I.GRAY;case 4:return I.INFO;default:return}})(l)}),t]}),(0,n.jsx)("p",{className:"text-xxs font-medium text-[#818181]",children:(0,E.hC)(r)})]}),(0,n.jsx)("p",{className:c()("text-textColor font-normal",{"text-sm":u,"text-base":!u}),children:(0,n.jsxs)("span",{children:[g,D&&(0,n.jsx)("button",{type:"button",className:"text-textColor mx-1 p-0 underline",onClick:()=>{f?p(m):p(i),C(!f)},children:d(f?"user:showLess":"user:showMore")})]})})]})},B=()=>(0,n.jsxs)("div",{className:"text-textColor flex w-full flex-col gap-2 p-[6px] text-base font-medium",children:[(0,n.jsxs)("div",{className:"flex animate-pulse items-center justify-between",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{className:"h-4 w-4 rounded-full bg-gray-300"})," ",(0,n.jsx)("div",{className:"h-4 w-[100px] rounded-lg bg-gray-300"})," "]}),(0,n.jsx)("div",{className:"h-4 w-[50px] rounded-lg bg-gray-300"})," "]}),(0,n.jsx)("div",{className:"h-4 w-full rounded-lg bg-gray-300"})," ",(0,n.jsx)("div",{className:"h-4 w-[80%] rounded-lg bg-gray-300"})," "]});var A=r(5401),_=r(20635);let V=()=>{var e;let{t}=(0,s.Bd)(),{isMobile:r}=(0,x.e)(),{token:i,user:l,wokiUser:g}=(0,d.A)(),p=null==g||null==(e=g[0])?void 0:e.id,[v,w]=(0,o.useState)(!0),[y,b]=(0,o.useState)(null),[j,M]=(0,o.useState)([]),[L,F]=o.useState(0),{locale:k}=(0,h.useRouter)(),[O,S]=(0,o.useState)(1),[I,P]=(0,o.useState)(0),{isLoading:E,isFetching:N}=(0,a.useQuery)(["get-user-profile-activity",i,p,k,O],()=>f({locale:k||"en",token:i,limit:10,page:O-1,userId:p}),{refetchOnWindowFocus:!1,onSuccess(e){b(null),w(!1),P(Math.ceil(e.total/10)),null!=e?(F(e.activities.length),M(((e,t,r)=>{let n=[];return e.forEach(e=>{let{timezone:i}=e,o=new Date(e.eventOccurredOn),s=((e,t,r,n)=>{let i=new Date(e);i.setMinutes(i.getMinutes()+i.getTimezoneOffset()+60*r);let o={weekday:"long",day:"numeric",month:"long",year:"numeric"},s=i.toLocaleString(t,o).charAt(0).toUpperCase()+i.toLocaleString(t,o).slice(1),a=D(i,r),l=a?" (".concat(n("common:".concat("today"===a?"today":"yesterday")),")"):"";return"".concat(s).concat(l)})(o,t,i,r),a=D(o,i),l=n.find(e=>e.date===s);l?l.activities.push(e):n.push({date:s,activities:[e],dateFeedbackLabel:a})}),n})(e.activities,k||"en",t))):(M([]),F(0))},onError(){w(!1),b(t("common:errorLoadingActivity"))},enabled:!!p&&!!l});return(0,o.useEffect)(()=>{(E||N)&&w(!0)},[E,N]),(0,n.jsxs)("section",{className:c()("flex w-full flex-col rounded-lg border border-white bg-backgroundColor px-[40px] py-[20px] ring-1 ring-gray-300 ring-opacity-5 focus:outline-none",{"!px-3":r}),children:[v?Array.from(Array(10).keys()).map((e,t)=>(0,n.jsxs)("div",{className:c()("mt-2 flex w-full flex-col gap-2"),children:[(0,n.jsx)(B,{}),t<9&&(0,n.jsx)(C.c,{orientation:"horizontal"})]},"skeleton-".concat(e))):y?(0,n.jsx)(m,{}):L>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h1",{className:c()("text-textColor mb-2 flex text-2xl font-semibold"),children:t("common:activity")}),(0,n.jsx)("div",{children:j.map(e=>(0,n.jsxs)("div",{className:c()("mt-2 flex flex-col gap-2",{"!gap-1":r,"!mt-1":r}),children:[(0,n.jsx)("h3",{className:"text-textColor text-2lg font-semibold",children:e.date}),e.activities.map((t,r)=>(0,n.jsxs)(o.Fragment,{children:[(0,n.jsx)("div",{className:"mt-2 flex flex-col gap-2 px-1",children:(0,n.jsx)(R,{...t})}),r<e.activities.length-1&&(0,n.jsx)(C.c,{orientation:"horizontal"})]},t.id)),(0,n.jsx)(C.c,{orientation:"horizontal"})]},e.date))})]}):(0,n.jsx)(_.A,{title:t("user:noActivity"),subtitle:t("user:noActivityDescription"),image:u.V$,imageClassName:c()("",{"!w-[19em]":r,"!h-[218px]":!r})}),(0,n.jsx)("div",{className:"mt-4 flex justify-center"}),I>1&&(0,n.jsx)(A.d,{currentPage:O,totalPages:I,handleChangePage:S})]})};var T=!0;let Z=()=>(0,n.jsx)(i.A,{children:(0,n.jsx)(V,{})})},39703:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(23798);r(21462);var i=r(46001),o=r.n(i),s=r(40602),a=r.n(s),l=r(39748),c=r(54713);let h=e=>{let{text:t,path:r}=e,i=(0,l.usePathname)(),{t:s}=(0,c.Bd)();return(0,n.jsx)(a(),{href:r,prefetch:!1,children:(0,n.jsx)("div",{role:"button",className:o()("text-[1rem]",{"font-normal text-[#818181]":r!==i,"font-semibold text-[#202b3f]":r===i}),children:s(t)})})};var u=r(12263),d=r(2690),g=r(59938);let p=e=>{let{children:t,userMenu:r}=e;return(0,n.jsxs)("div",{className:"flex min-h-screen w-full max-w-[1220px] flex-col items-center lg:flex-row lg:items-start",children:[(0,n.jsx)("div",{className:"hidden w-1/6 py-[25px] lg:flex lg:flex-col lg:gap-6",children:r.map(e=>(0,n.jsx)(h,{text:e.title,path:e.path},e.title))}),(0,n.jsx)("div",{className:"w-full lg:min-h-screen lg:w-5/6 lg:flex-col lg:px-[40px] lg:py-[18px]",children:t})]})},f=e=>{let{children:t}=e,{isMobile:r}=(0,d.e)();return(0,n.jsx)(g.o,{children:(0,n.jsxs)("div",{className:o()("flex w-full select-none flex-col items-center justify-center bg-[#FCFCFC]"),children:[(0,n.jsx)("div",{className:o()("flex w-full items-center justify-center border-b-[1px] border-solid border-dividerColor bg-[#FFF]",{hidden:r}),children:(0,n.jsx)("div",{className:o()("flex h-[13.125rem] w-full py-[31px] lg:min-w-[1220px] lg:max-w-[60vw]"),children:(0,n.jsx)(u.F,{})})}),(0,n.jsx)(p,{userMenu:[{path:"/user/personal-info",title:"user:personalInfo"},{path:"/user/my-bookings",title:"user:myBookings"},{path:"/user/activity",title:"user:activity"},{path:"/user/my-favorites",title:"user:myFavorites"},{path:"/user/payment-methods",title:"user:paymentMethods"},{path:"/user/my-reviews",title:"user:reviews"},{path:"/user/my-giftcards",title:"user:myGiftcards"}],children:t})]})})}},41844:function(e,t,r){e.exports=function(e,t){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(e),i=r(t);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function l(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)),n}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw o}}return r}}(e,t)||p(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function C(e,t){return new Promise(function(r,n){var i=new Image;i.onload=function(){return r(i)},i.onerror=n,!1==(null!==e&&!!e.match(/^\s*data:([a-z]+\/[a-z]+(;[a-z-]+=[a-z-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=\-._~:@/?%\s]*\s*$/i))&&t&&(i.crossOrigin=t),i.src=e})}var m,x="undefined"!=typeof window&&"undefined"!=typeof navigator&&!!("ontouchstart"in window||0<navigator.msMaxTouchPoints),v="undefined"!=typeof File,w=x?{react:{down:"onTouchStart",mouseDown:"onMouseDown",drag:"onTouchMove",move:"onTouchMove",mouseMove:"onMouseMove",up:"onTouchEnd",mouseUp:"onMouseUp"},native:{down:"touchstart",mouseDown:"mousedown",drag:"touchmove",move:"touchmove",mouseMove:"mousemove",up:"touchend",mouseUp:"mouseup"}}:{react:{down:"onMouseDown",drag:"onDragOver",move:"onMouseMove",up:"onMouseUp"},native:{down:"mousedown",drag:"dragStart",move:"mousemove",up:"mouseup"}},y="undefined"!=typeof window&&window.devicePixelRatio?window.devicePixelRatio:1,b={x:.5,y:.5},j=function(){var e=i.default.Component;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");p.prototype=Object.create(e&&e.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),e&&u(p,e);var t,r,n,l=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=h(p);return e=t?Reflect.construct(r,arguments,h(this).constructor):r.apply(this,arguments),e&&("object"==typeof e||"function"==typeof e)?e:d(this)});function p(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,p),s(d(t=l.call(this,e)),"state",{drag:!1,my:null,mx:null,image:b}),s(d(t),"handleImageReady",function(e){var r=t.getInitialSize(e.width,e.height);r.resource=e,r.x=.5,r.y=.5,r.backgroundColor=t.props.backgroundColor,t.setState({drag:!1,image:r},t.props.onImageReady),t.props.onLoadSuccess(r)}),s(d(t),"clearImage",function(){t.canvas.getContext("2d").clearRect(0,0,t.canvas.width,t.canvas.height),t.setState({image:b})}),s(d(t),"handleMouseDown",function(e){(e=e||window.event).preventDefault(),t.setState({drag:!0,mx:null,my:null})}),s(d(t),"handleMouseUp",function(){t.state.drag&&(t.setState({drag:!1}),t.props.onMouseUp())}),s(d(t),"handleMouseMove",function(e){var r,n,i,o,s,a,l,h,u,d,g,p,f,C,m,x;e=e||window.event,!1!==t.state.drag&&(e.preventDefault(),i={mx:r=e.targetTouches?e.targetTouches[0].pageX:e.clientX,my:n=e.targetTouches?e.targetTouches[0].pageY:e.clientY},x=(x=t.props.rotate%360)<0?x+360:x,t.state.mx&&t.state.my&&(o=t.state.mx-r,s=t.state.my-n,a=t.state.image.width*t.props.scale,l=t.state.image.height*t.props.scale,u=(h=t.getCroppingRect
1()).x,d=h.y,u*=a,d*=l,p=Math.cos((g=function(e){return Math.PI/180*e})(x)),C=d+-o*(f=Math.sin(g(x)))+s*p,m={x:(u+o*p+s*f)/a+1/t.props.scale*t.getXScale()/2,y:C/l+1/t.props.scale*t.getYScale()/2},t.props.onPositionChange(m),i.image=c(c({},t.state.image),m)),t.setState(i),t.props.onMouseMove(e))}),s(d(t),"setCanvas",function(e){t.canvas=e}),t.canvas=null,t}return r=[{key:"componentDidMount",value:function(){this.props.disableHiDPIScaling&&(y=1);var e,t,r=this.canvas.getContext("2d");this.props.image&&this.loadImage(this.props.image),this.paint(r),document&&(e=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){e=!1}return e}()&&{passive:!1},t=w.native,document.addEventListener(t.move,this.handleMouseMove,e),document.addEventListener(t.up,this.handleMouseUp,e),x&&(document.addEventListener(t.mouseMove,this.handleMouseMove,e),document.addEventListener(t.mouseUp,this.handleMouseUp,e)))}},{key:"componentDidUpdate",value:function(e,t){this.props.image&&this.props.image!==e.image||this.props.width!==e.width||this.props.height!==e.height||this.props.backgroundColor!==e.backgroundColor?this.loadImage(this.props.image):this.props.image||t.image===b||this.clearImage();var r=this.canvas.getContext("2d");r.clearRect(0,0,this.canvas.width,this.canvas.height),this.paint(r),this.paintImage(r,this.state.image,this.props.border),e.image===this.props.image&&e.width===this.props.width&&e.height===this.props.height&&e.position===this.props.position&&e.scale===this.props.scale&&e.rotate===this.props.rotate&&t.my===this.state.my&&t.mx===this.state.mx&&t.image.x===this.state.image.x&&t.image.y===this.state.image.y&&t.backgroundColor===this.state.backgroundColor||this.props.onImageChange()}},{key:"componentWillUnmount",value:function(){var e;document&&(e=w.native,document.removeEventListener(e.move,this.handleMouseMove,!1),document.removeEventListener(e.up,this.handleMouseUp,!1),x&&(document.removeEventListener(e.mouseMove,this.handleMouseMove,!1),document.removeEventListener(e.mouseUp,this.handleMouseUp,!1)))}},{key:"isVertical",value:function(){return!this.props.disableCanvasRotation&&this.props.rotate%180!=0}},{key:"getBorders",value:function(e){var t=0<arguments.length&&void 0!==e?e:this.props.border;return Array.isArray(t)?t:[t,t]}},{key:"getDimensions",value:function(){var e=this.props,t=e.width,r=e.height,n=e.rotate,i=e.border,o={},s=g(this.getBorders(i),2),a=s[0],l=s[1];return this.isVertical()?(o.width=r,o.height=t):(o.width=t,o.height=r),o.width+=2*a,o.height+=2*l,{canvas:o,rotate:n,width:t,height:r,border:i}}},{key:"getImage",value:function(){var e=this.getCroppingRect(),t=this.state.image;e.x*=t.resource.width,e.y*=t.resource.height,e.width*=t.resource.width,e.height*=t.resource.height;var r=document.createElement("canvas");this.isVertical()?(r.width=e.height,r.height=e.width):(r.width=e.width,r.height=e.height);var n=r.getContext("2d");return n.translate(r.width/2,r.height/2),n.rotate(this.props.rotate*Math.PI/180),n.translate(-r.width/2,-r.height/2),this.isVertical()&&n.translate((r.width-r.height)/2,(r.height-r.width)/2),t.backgroundColor&&(n.fillStyle=t.backgroundColor,n.fillRect(-e.x,-e.y,t.resource.width,t.resource.height)),n.drawImage(t.resource,-e.x,-e.y),r}},{key:"getImageScaledToCanvas",value:function(){var e=this.getDimensions(),t=e.width,r=e.height,n=document.createElement("canvas");return this.isVertical()?(n.width=r,n.height=t):(n.width=t,n.height=r),this.paintImage(n.getContext("2d"),this.state.image,0,1),n}},{key:"getXScale",value:function(){return Math.min(1,this.props.width/this.props.height/(this.state.image.width/this.state.image.height))}},{key:"getYScale",value:function(){return Math.min(1,this.props.height/this.props.width/(this.state.image.height/this.state.image.width))}},{key:"getCroppingRect",value:function(){var e=this.props.position||{x:this.state.image.x,y:this.state.image.y},t=1/this.props.scale*this.getXScale(),r=1/this.props.scale*this.getYScale(),n={x:e.x-t/2,y:e.y-r/2,width:t,height:r},i=0,o=1-n.width,s=0,a=1-n.height;return(this.props.disableBoundaryChecks||1<t||1<r)&&(i=-n.width,s=-n.height,a=o=1),c(c({},n),{},{x:Math.max(i,Math.min(n.x,o)),y:Math.max(s,Math.min(n.y,a))})}},{key:"loadImage",value:function(e){v&&e instanceof File?this.loadingImage=new Promise(function(t,r){var n=new FileReader;n.onload=function(e){try{var n=C(e.target.result);t(n)}catch(e){r(e)}},n.readAsDataURL(e)}).then(this.handleImageReady).catch(this.props.onLoadFailure):"string"==typeof e&&(this.loadingImage=C(e,this.props.crossOrigin).then(this.handleImageReady).catch(this.props.onLoadFailure))}},{key:"getInitialSize",value:function(e,t){var r,n,i=this.getDimensions();return t/e<i.height/i.width?n=e*((r=this.getDimensions().height)/t):r=t*((n=this.getDimensions().width)/e),{height:r,width:n}}},{key:"paintImage",value:function(e,t,r,n){var i,o=3<arguments.length&&void 0!==n?n:y;t.resource&&(i=this.calculatePosition(t,r),e.save(),e.translate(e.canvas.width/2,e.canvas.height/2),e.rotate(this.props.rotate*Math.PI/180),e.translate(-e.canvas.width/2,-e.canvas.height/2),this.isVertical()&&e.translate((e.canvas.width-e.canvas.height)/2,(e.canvas.height-e.canvas.width)/2),e.scale(o,o),e.globalCompositeOperation="destination-over",e.drawImage(t.resource,i.x,i.y,i.width,i.height),t.backgroundColor&&(e.fillStyle=t.backgroundColor,e.fillRect(i.x,i.y,i.width,i.height)),e.restore(
1))}},{key:"calculatePosition",value:function(e,t){e=e||this.state.image;var r=g(this.getBorders(t),2),n=r[0],i=r[1],o=this.getCroppingRect(),s=e.width*this.props.scale,a=e.height*this.props.scale,l=-o.x*s,c=-o.y*a;return this.isVertical()?(l+=i,c+=n):(l+=n,c+=i),{x:l,y:c,height:a,width:s}}},{key:"paint",value:function(e){e.save(),e.scale(y,y),e.translate(0,0),e.fillStyle="rgba("+this.props.color.slice(0,4).join(",")+")";var t,r,n,i,o,s=this.props.borderRadius,a=this.getDimensions(),l=g(this.getBorders(a.border),2),c=l[0],h=l[1],u=a.canvas.height,d=a.canvas.width,s=Math.max(s,0);s=Math.min(s,d/2-c,u/2-h),e.beginPath(),t=d-2*c,r=u-2*h,0===(n=s)?e.rect(c,h,t,r):(i=t-n,o=r-n,e.translate(c,h),e.arc(n,n,n,Math.PI,1.5*Math.PI),e.lineTo(i,0),e.arc(i,n,n,1.5*Math.PI,2*Math.PI),e.lineTo(t,o),e.arc(i,o,n,2*Math.PI,.5*Math.PI),e.lineTo(n,r),e.arc(n,o,n,.5*Math.PI,Math.PI),e.translate(-c,-h)),e.rect(d,0,-d,u),e.fill("evenodd"),e.restore()}},{key:"render",value:function(){var e=this.props,t=(e.scale,e.rotate,e.image,e.border,e.borderRadius,e.width,e.height,e.position,e.color,e.backgroundColor,e.style),r=(e.crossOrigin,e.onLoadFailure,e.onLoadSuccess,e.onImageReady,e.onImageChange,e.onMouseUp,e.onMouseMove,e.onPositionChange,e.disableBoundaryChecks,e.disableHiDPIScaling,e.disableCanvasRotation,function(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};for(var r,n={},i=Object.keys(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}(e,["scale","rotate","image","border","borderRadius","width","height","position","color","backgroundColor","style","crossOrigin","onLoadFailure","onLoadSuccess","onImageReady","onImageChange","onMouseUp","onMouseMove","onPositionChange","disableBoundaryChecks","disableHiDPIScaling","disableCanvasRotation"])),n=this.getDimensions(),o={width:n.canvas.width,height:n.canvas.height,cursor:this.state.drag?"grabbing":"grab",touchAction:"none"},s={width:n.canvas.width*y,height:n.canvas.height*y,style:c(c({},o),t)};return s[w.react.down]=this.handleMouseDown,x&&(s[w.react.mouseDown]=this.handleMouseDown),i.default.createElement("canvas",a({ref:this.setCanvas},s,r))}}],o(p.prototype,r),n&&o(p,n),p}();
1return s(j,"propTypes",{scale:n.default.number,rotate:n.default.number,image:n.default.oneOfType([n.default.string].concat(function(e){if(Array.isArray(e))return f(e)}(m=v?[n.default.instanceOf(File)]:[])||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(m)||p(m)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),border:n.default.oneOfType([n.default.number,n.default.arrayOf(n.default.number)]),borderRadius:n.default.number,width:n.default.number,height:n.default.number,position:n.default.shape({x:n.default.number,y:n.default.number}),color:n.default.arrayOf(n.default.number),backgroundColor:n.default.string,crossOrigin:n.default.oneOf(["","anonymous","use-credentials"]),onLoadFailure:n.default.func,onLoadSuccess:n.default.func,onImageReady:n.default.func,onImageChange:n.default.func,onMouseUp:n.default.func,onMouseMove:n.default.func,onPositionChange:n.default.func,disableBoundaryChecks:n.default.bool,disableHiDPIScaling:n.default.bool,disableCanvasRotation:n.default.bool}),s(j,"defaultProps",{scale:1,rotate:0,border:25,borderRadius:0,width:200,height:200,color:[0,0,0,.5],onLoadFailure:function(){},onLoadSuccess:function(){},onImageReady:function(){},onImageChange:function(){},onMouseUp:function(){},onMouseMove:function(){},onPositionChange:function(){},disableBoundaryChecks:!1,disableHiDPIScaling:!1,disableCanvasRotation:!0}),j}(r(50084),r(21462))}},e=>{e.O(0,[9263,9748,4477,2263,636,6593,8792],()=>e(e.s=32621)),_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.