1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1443,5686],{62020:function(e,t,l){"use strict";l.d(t,{Z:function(){return c}});var a=l(85893),n=l(67294),r=l(90801),s=l(14640),i=l(94777),o=l(86501);function c(e){let{value:t,inputClassName:l}=e,c=(0,s.useTranslations)(),u=(0,n.useRef)(null);return(0,a.jsxs)("div",{className:"relative w-full flex items-center transition-all duration-300 ease-in-out bg-[#2D3974] border-2 font-bold h-[3.125rem] rounded-lg outline-none px-2.5 border-[#9BBCED] border-opacity-20 hover:border-opacity-100 gap-2",children:[(0,a.jsx)("input",{className:(0,i.cn)("w-full bg-transparent outline-none select-all text-base text-[#5F6AA1]",l),value:t,readOnly:!0,ref:u}),(0,a.jsx)(r.Z,{bg:"blue",weight:"medium",radius:"full",className:"px-4 h-[2rem]",scale:"no-scale",size:"fit",onClick:e=>{if(null==e||e.preventDefault(),null==u?void 0:u.current){var t;u.current.select(),u.current.setSelectionRange(0,99999),navigator.clipboard.writeText((null==u?void 0:null===(t=u.current)||void 0===t?void 0:t.value)||""),o.ZP.success(c("common.copied"))}},children:(0,a.jsx)("span",{className:"text-base font-extrabold",children:c("common.copy")})})]})}},42667:function(e,t,l){"use strict";l.d(t,{Z:function(){return j}});var a=l(85893),n=l(9058);l(14609);var r=l(90801),s=l(68056),i=l(98388),o=l(13114),c=l(80663),u=l(90512),d=l(90889),h=l(23699),x=l(45853),p=l(14640),f=l(56202);let m={initial:{x:10,opacity:0},enter:{x:0,opacity:1},exit:{x:-10,opacity:0}},g={initial:{scale:.98,opacity:0}
1,enter:{scale:1,opacity:1},exit:{scale:.98,opacity:0}},v={initial:{x:-5,opacity:0},enter:{x:0,opacity:1},exit:{x:-5,opacity:0}},b={initial:"initial",animate:"enter",exit:"exit"};function j(e){let{open:t,contentHeader:l,className:j,containerClassName:y,title:w,showBackIcon:N=!1,onBack:k,hideCloseBtn:_=!1,noHeader:C=!1,animate:Z=!1,hFull:F=!1,absoluteHeader:A=!1,activePage:P,onClose:D,children:S,...L}=e,{device:z}=(0,d.Z)(),{globalLoading:E}=(0,x._)(),T=()=>{!E&&D&&D()},R=P||"empty",q=(0,p.useLocale)(),K="rtl"===(0,f.j9)(q)?"left":"right";return(0,a.jsx)(n.Z,{open:t,direction:K,lockBackgroundScroll:!0,...L,className:(0,i.m6)((0,u.Z)("!bg-[#191746] lg:!bg-[#1A255A] lg:!bg-opacity-70 lg:!backdrop-blur-xl text-white !w-full md:!w-fit md:min-w-[30rem] !shadow-none h-[100svh] border-0 lg:border-[3px] border-opacity-70 border-[#1A255A] max-w-[100svw]",{"!z-[99999999999999]":t,"!w-full":z===h.A.mobile}),j),overlayClassName:"!bg-[#070F34] !bg-opacity-80 !opacity-100",onClose:T,children:t&&(0,a.jsxs)(a.Fragment,{children:[C?null:(0,a.jsxs)("div",{className:(0,u.Z)("flex w-full h-[3.75rem] justify-between items-center px-5 py-[1rem] gap-5",{"absolute top-0 left-0":A}),children:[(0,a.jsx)(o.M,{mode:"wait",children:(0,a.jsx)(c.m.div,{variants:Z?v:void 0,transition:{duration:.15},className:"w-6 h-6",...Z?b:{},children:N?(0,a.jsx)(r.Z,{size:"fit",className:"w-6 h-6",onClick:()=>{!E&&k&&k()},disabled:E,children:(0,a.jsx)(s.Z,{href:"/img/app/icons/filled_chevron_right.svg",className:"w-6 h-6 transform rotate-180 bg-white",cover:!0})}):null},"".concat(R,"-back-icon"))}),(0,a.jsx)(o.M,{mode:"wait",children:(0,a.jsx)(c.m.div,{variants:Z?g:void 0,transition:{duration:.2},...Z?b:{},children:(0,a.jsx)("h6",{className:"max-w-full overflow-hidden font-black truncate",children:w})},"".concat(P,"-title"))}),_?(0,a.jsx)("span",{className:"inline-block w-6 h-6"}):(0,a.jsx)(r.Z,{size:"fit",className:"w-6 h-6",onClick:T,scale:"0.90",disabled:E,children:(0,a.jsx)(s.Z,{href:"/img/app/icons/icon_x_2.svg",className:"w-5 h-5 bg-white",cover:!0})})]}),l?l({}):null,(0,a.jsx)("div",{className:(0,i.m6)("flex-1 overflow-y-auto h-[100%] pb-16",y),children:Z?(0,a.jsx)(o.M,{mode:"wait",children:(0,a.jsx)(c.m.div,{variants:m,initial:"initial",animate:"enter",exit:"exit",transition:{duration:.3},className:(0,u.Z)({"h-[100svh]":F}),children:S},P||"empty")}):S})]})})}},52879:function(e,t,l){"use strict";l.d(t,{Z:function(){return c}});var a=l(85893),n=l(67294),r=l(90801),s=l(68056),i=l(90512),o=l(98388);function c(e){let{isOpen:t=!1,glassMode:l=!1,onClose:c,noHeader:u=!1,enableVirtualHeader:d=!1,children:h,footer:x,modalClassName:p,disableCloseEventOnOverlay:f=!0}=e,{setScrollable:m}=function(e){let[t,l]=(0,n.useState)(void 0===e||e);return(0,n.useEffect)(()=>{{let e=document.body;t?e.style.overflow="":e.style.overflow="hidden"}},[t]),{scrollable:t,setScrollable:l}}(!1),g=()=>{c&&c()};return((0,n.useEffect)(()=>{m(!t)},[m,t]),t)?(0,a.jsxs)("div",{className:"fixed top-0 left-0 flex justify-center items-center bg-[#070F34] bg-opacity-80 w-[100svw] h-[100svh] z-50 px-8",children:[(0,a.jsx)("div",{className:(0,i.Z)("fixed top-0 left-0 w-[100svw] h-[100svh] bg-transparent z-30",{"cursor-pointer":!f}),onClick:e=>{e.preventDefault&&e.preventDefault(),f||g()}}),(0,a.jsxs)("div",{className:(0,o.m6)((0,i.Z)("flex flex-col w-fit text-white p-5 rounded-xl min-w-[42svw] min-h-[52svh] relative z-40",{"bg-[#1A255A]":!l,"bg-[#1A255A] bg-opacity-60 backdrop-blur-2xl border-[3px] border-[#1A255A]":l}),p),children:[u?null:(0,a.jsx)("div",{className:(0,i.Z)("w-full relative",{"h-0":!d,"h-fit min-h-[2.25rem]":d}),children:(0,a.jsx)(r.Z,{className:"w-[2.25rem] h-[2.25rem] bg-white bg-opacity-10 absolute right-0 top-0 rtl:left-0 rtl:right-auto",size:"fit",radius:"full",scale:"1.1",onClick:g,children:(0,a.jsx)(s.Z,{href:"/img/app/icons/close_x.svg",className:"w-3.5 h-3.5 bg-white",cover:!0})})}),(0,a.jsx)("div",{className:"flex flex-col w-full h-full flex-1",children:h}),x?x({}):null]})]}):null}},19283:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return u}});var a=l(85893),n=l(11358),r=l.n(n),s=l(90801),i=l(68056),o=l(90512),c=l(14640);function u(e){let t=(0,c.useTranslations)(),{currentPage:l,pageCount:n,onChange:u,disabled:d=!1,buildHref:h}=e,x=!d&&l>1,p=!d&&l<n;return(0,a.jsx)(r(),{breakLabel:"...",previousLabel:(0,a.jsxs)(s.Z,{size:"fit",weight:"extrabold",className:"gap-2.5 py-2.5 px-5 h-[50px] lg:h-fit w-fit group/pg-p bg-[#0D6DFC54] backdrop-blur-sm",bg:"blue",radius:"full",scale:"no-scale",disabled:!x,children:[(0,a.jsx)(i.Z,{href:"/img/app/icons/arrow_right.svg",className:(0,o.Z)("w-6 h-6 bg-white bg-opacity-100 lg:bg-opacity-60 rotate-180 duration-200 ease-in-out transition-all",{"lg:group-hover/pg-p:-translate-x-2 lg:group-hover/pg-p:bg-opacity-100":x}),cover:!0}),(0,a.jsx)("span",{className:"hidden lg:block text-xl",children:t("common.pagination.previous")})]}),nextLabel:(0,a.jsxs)(s.Z,{size:"fit",weight:"extrabold",className:"gap-2.5 py-2.5 px-5 h-[50px] lg:h-fit w-fit group/pg-e bg-[#0D6DFC54] backdrop-blur-sm",bg:"blue",radius:"full",scale:"no-scale",disabled:!p,children:[(0,a.jsx)("span",{className:"hidden lg:block text-xl",children:t("common.pagination.next")}),(0,a.jsx)(i.Z,{href:"/img/app/icons/arrow_right.svg",className:(0,o.Z)("w-6 h-6 bg-white bg-opacity-100 lg:bg-opacity-60 duration-200 ease-in-out transition-all",{"lg:group-hover/pg-e:translate-x-2 lg:group-hover/pg-e:bg-opacity-100":p}),cover:!0})]}),hrefBuilder:h?e=>h(e):void 0,hrefAllControls:!!h,forcePage:l-1,onPageChange:e=>{d||u(e.selected+1)}
1,pageRangeDisplayed:3,pageCount:n,containerClassName:"flex gap-2",pageLinkClassName:"rounded-full overflow-hidden border-[3px] border-[#707FEC60] bg-[#707FEC54] text-xl font-extrabold text-center overflow-hidden truncate h-[50px] w-[50px] lg:w-12 lg:h-12 p-1.5 flex justify-center items-center text-white backdrop-blur-sm duration-300 ease-in-out transition-all",activeLinkClassName:"!border-[#0D6DFC] !bg-[#141E50]",renderOnZeroPageCount:null,disabledClassName:"opacity-20"})}},45686:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return c}});var a=l(85893),n=l(90512),r=l(33299),s=l(25675),i=l.n(s),o=l(98388);function c(e){let{pointBg:t="#141E50",pointPosition:l="top-right",className:s}=e,{data:c}=(0,r.useSession)(),{point:u=0}=(null==c?void 0:c.user)||{};return(0,a.jsxs)("div",{className:(0,o.m6)("flex gap-1.5 rounded-full px-2.5 pr-[1.5rem] rtl:pl-[1.5rem] rtl:pr-2.5 py-1 bg-[#F3C955] h-11 justify-center items-center w-fit relative text-[#151F53] font-bold select-none",s),title:"Toplam ".concat(u," Coconut Puanına sahipsin!"),children:[(0,a.jsx)(i(),{src:"/img/app/coconut.png",width:24,height:24,alt:"Coconut Games, cp"}),(0,a.jsx)("span",{className:"text-xl",children:"CP"}),(0,a.jsx)("span",{className:(0,n.Z)("absolute w-[1.5rem] h-[1.5rem] rounded-full bg-[#F3C955] flex justify-center items-center text-xs border-8 box-content transform",{"top-0 -right-1/2 rtl:right-auto rtl:-left-1/2 -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2":"top-right"===l,"top-0 -right-1/2 rtl:right-auto rtl:-left-1/2 -translate-x-1/2 rtl:translate-x-1/2 translate-y-1/2":"bottom-right"===l}),style:{borderColor:t},children:u>99?"99+":u})]})}},17304:function(e,t,l){"use strict";l.d(t,{Z:function(){return c}});var a=l(85893),n=l(68056),r=l(98388);let s=(0,l(12003).j)(["flex","items-center","justify-center","gap-1.5","transition-all","duration-200","ease-in","outline-none"],{variants:{bg:{"no-bg":[],blue:["bg-[#0D6DFC]","hover:bg-[#0E5FD8]"],"dark-blue":["bg-[#0D6DFC] bg-opacity-10","hover:bg-[#0E5FD8]"],"weak-purple":["bg-[#707FEC54]","hover:bg-[#707FEC80]"],"jittery-jade":["bg-[#74F3BE]","hover:bg-[#56D7A0]"],"moms-pancake"
1:["bg-[#F3C955]","hover:bg-[#D2AD45]"]},text:{white:["text-white"],"dark-soul":["text-[#141E50]"]},size:{"m-normal":["px-2.5","py-2"],fit:["w-fit","h-fit"],inherit:[],normal:["h-[3.125rem]","px-5"]},textSize:{xs2:["text-[0.813rem]"],_17:["text-[1.063em]"]},weight:{medium:"font-medium",bold:"font-bold",extrabold:"font-extrabold"},radius:{lg:"rounded-lg","2lg":"rounded-[0.625rem]",xl:"rounded-xl",full:"rounded-full"},scale:{"0.90":"hover:scale-90","0.95":"hover:scale-95","no-scale":"","1.05":"hover:scale-105","1.1":"hover:scale-110"},borderColor:{"white-200":"border-[#878A9E]"},borderSize:{1:"border"}},defaultVariants:{size:"normal",scale:"0.95",text:"white"}});var i=l(69929);function o(e){let{bg:t,text:l,size:n,textSize:o,weight:c,radius:u,scale:d,borderColor:h,borderSize:x,className:p,children:f,...m}=e;return(0,a.jsx)(i.Z,{...m,className:(0,r.m6)("",s({bg:t,text:l,size:n,textSize:o,weight:c,radius:u,scale:d,borderColor:h,borderSize:x}),p),children:f})}function c(e){let{iconHref:t="",title:l,description:r,buttonLabel:s,buttonHref:i}=e;return(0,a.jsxs)("div",{className:"w-full h-full flex flex-col gap-2 justify-center items-center py-5 text-white text-center",children:[(null==t?void 0:t.length)>0&&(0,a.jsx)(n.Z,{href:t,className:"w-[4.375rem] h-[4.375rem] bg-white bg-opacity-20 mb-2",cover:!0}),(0,a.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,a.jsx)("h2",{className:"text-xl font-extrabold",children:l}),(0,a.jsx)("p",{className:"text-[#AAADBE]",children:r})]}),i?(0,a.jsx)(o,{href:i,bg:"blue",weight:"extrabold",radius:"full",className:"py-3.5 px-6 mt-3",scale:"no-scale",size:"fit",children:(0,a.jsx)("span",{children:s})}):null]})}},87640:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return L}});var a=l(85893),n=l(14640),r=l(17304),s=l(39332),i=l(2464),o=l(90889),c=l(67294),u=l(10777),d=l(24139),h=l(64593),x=l(23699),p=l(25675),f=l.n(p),m=l(62020),g=l(42667),v=l(52879),b=l(90801),j=l(45686),y=l(30202),w=l(98029),N=l(52425),k=l(90512),_=l(33299),C=l(86501),Z=l(23856);function F(e){var t;let{isOpen:l=!1,handleClose:r,item:s}=e,i=s.id,d="number"==typeof i&&!isNaN(i),p=(0,y.NL)(),{update:F}=(0,_.useSession)(),{device:A}=(0,o.Z)(),P=(0,n.useTranslations)(),[D,S]=(0,c.useState)(!!s.purchased),L=(0,u.a)({queryKey:(0,h.ZR)(i),queryFn:(0,h.ev)(i),refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,enabled:d&&l}),z=(0,w.D)({mutationKey:(0,h.Kt)(i),mutationFn:e=>{let{id:t}=e;return(0,h.VL)(t)()},onSuccess:async()=>{F(),await p.invalidateQueries({queryKey:(0,h.r9)("tr",{purchased:!1}),exact:!0,stale:!1,refetchType:"all",type:"all"}),await p.invalidateQueries({queryKey:(0,h.ZR)(i),refetchType:"all",type:"all"}),await p.invalidateQueries({queryKey:(0,h.r9)("tr",{purchased:!0}),exact:!0,stale:!1,refetchType:"all",type:"all"}),S(!0),C.ZP.success("Satın alındı.")},onError:e=>{var t,l;let a="\xc7ek satın alınırken bir sorunla karÅılaÅıldı.";e instanceof N._2&&(a=(null==e?void 0:null===(l=e.response)||void 0===l?void 0:null===(t=l.data)||void 0===t?void 0:t.error_message)||a),C.ZP.error(a)}}),E=L.isLoading||L.isPending,T=null==L?void 0:null===(t=L.data)||void 0===t?void 0:t.data,R=(0,a.jsx)("div",{className:"flex justify-center items-center lg:mt-8 lg:pb-[40px]",children:E?(0,a.jsxs)("div",{className:"flex items-stretch justify-center h-4 gap-2",children:[(0,a.jsx)("p",{className:"block w-32 h-full rounded-full bg-app-skeleton animate-pulse"}),(0,a.jsx)("p",{className:"block w-6 h-full rounded-full bg-app-skeleton animate-pulse"})]}):(0,a.jsxs)("p",{className:"text-white text-[14px] lg:text-sm text-center",children:[P("my_profile.vouchers.number_of_redeemable_vouchers")," ",(0,a.jsxs)("b",{className:"font-bold",children:[(null==T?void 0:T.available)||0,"/",(null==T?void 0:T.count)||0]})]})}),q=(0,a.jsx)(b.Z,{bg:"blue",weight:"extrabold",radius:"full",className:(0,k.Z)("py-3.5 px-[34px] lg:px-8 h-[60px] lg:h-12",{"animate-pulse":E}),size:"fit",disabled:E||z.isSuccess||z.isPending,isLoading:z.isPending,noFitWithOnLoading:!0,showSpinnerWithChild:!0,onClick:()=>{z.mutate({id:i})},children:E?(0,a.jsx)("span",{className:"block min-w-[4.875rem]"}):(0,a.jsx)("span",{className:"text-[20px] lg:text-xl",children:P("my_profile.vouchers.redeem")})}),K=(0,a.jsx)("div",{className:"w-full max-w-[300px] group",children:(0,a.jsx)(m.Z,{value:(null==T?void 0:T.code)||"",inputClassName:"text-white/75 group-hover:text-white/100 transition-all duration-200 ease-in-out"})});return((0,c.useEffect)(()=>{"boolean"==typeof(null==s?void 0:s.purchased)&&S(s.purchased)},[s,l]),A===x.A.mobile)?l?(0,a.jsx)(g.Z,{showBackIcon:!0,onBack:r,title:P("my_profile.vouchers.get_voucher"),open:l,onClose:r,className:"!h-[100svh]",children:(0,a.jsxs)("div",{className:"w-full h-full flex flex-col justify-between px-[30px] gap-[12px] items-center",children:[(0,a.jsx)("div",{className:"flex justify-center items-center mt-[18px]",children:(0,a.jsx)(j.default,{pointPosition:"bottom-right"})}),(0,a.jsxs)("div",{className:"flex flex-col gap-[16px] justify-center items-center",children:[(0,a.jsx)("div",{className:"w-[250px] h-[175px] relative",children:(0,a.jsx)(f(),{src:(null==T?void 0:T.image_url)||(null==s?void 0:s.image_url)||"",alt:"",fill:!0,sizes:"250px",style:{objectFit:"cover",objectPosition:"center"},className:"overflow-hidden rounded-xl mb-7"})}),(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center text-center",children:[(0,a.jsx)("h2",{className:"text-[40px] font-bold",children:(null==T?void 0:T.title)||(null==s?void 0:s.title)}),E?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex flex-col gap-2.5 justify-center items-center w-full",children:(0,a.jsx)("p",{className:"block h-4 rounded-full bg-app-skeleton animate-pulse"})})}):(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("p",{className:"text-[20px] font-normal gift-modal-content",dangerouslySetInnerHTML:{__html:(0,Z.z)(null==T?void 0:T.description)}})})]})]}),(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center gap-[8px] pb-[20px]",children:[D?K:q,R]})]})}):(0,a.jsx)(a.Fragment,{}
1):(0,a.jsx)(v.Z,{glassMode:!0,isOpen:l,onClose:r,footer:()=>R,children:(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"flex flex-col justify-between flex-1 w-full h-full",children:[(0,a.jsx)(j.default,{pointPosition:"bottom-right"}),(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,a.jsx)(f(),{src:(null==T?void 0:T.image_url)||(null==s?void 0:s.image_url)||"",alt:"",width:260,height:180,className:"overflow-hidden rounded-xl mb-7"}),(0,a.jsxs)("div",{className:"flex flex-col gap-3.5 justify-center items-center text-center mb-10",children:[(0,a.jsx)("h2",{className:"text-4xl font-bold",children:(null==T?void 0:T.title)||(null==s?void 0:s.title)}),E?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex flex-col gap-2.5 justify-center items-center w-full",children:(0,a.jsx)("p",{className:"block bg-app-skeleton w-[60%] h-4 rounded-full animate-pulse"})})}):(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("p",{className:"text-xl font-normal max-w-[60%] gift-modal-content",dangerouslySetInnerHTML:{__html:(0,Z.z)(null==T?void 0:T.description)}})})]}),D?K:q]})]})})})}function A(e){let{item:t}=e,[l,n]=(0,c.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-col justify-center items-center relative cursor-pointer rounded-xl hover:rounded-md transition-all duration-500 ease-in-out overflow-hidden group gift-voucher-item",onClick:()=>n(!0),children:[(null==t?void 0:t.emoji)?(0,a.jsx)("div",{className:"rounded-lg absolute z-10 right-2 top-2 w-8 h-7 flex justify-center items-center shadow-md shadow-black/30 overflow-hidden bg-[#1A255A] bg-opacity-70 backdrop-blur-xl border border-opacity-10 border-[#1A255A]",children:(0,a.jsx)("span",{className:"text-xl mt-[2px]",children:t.emoji})}):null,(0,a.jsx)(f(),{src:t.image_url,alt:"",fill:!0,style:{objectFit:"cover",objectPosition:"center"},className:" transition-all duration-500 ease-in-out transform group-hover:scale-105",sizes:"15rem"})]}),(0,a.jsx)(F,{item:t,isOpen:l,handleClose:()=>n(!1)})]})}var P=l(19283),D=l(93517);let S=[{value:"",labelI18NKey:"my_profile.vouchers.filter_options.all"},{value:"purchased",labelI18NKey:"my_profile.vouchers.filter_options.purchased"}];function L(){var e,t,l,p,f;let m=(0,s.useSearchParams)(),g="true"===m.get("purchased"),{currentPage:v,setActivePage:b}=(0,i.Z)(),j=(0,s.useRouter)(),y=(0,s.usePathname)(),{device:w}=(0,o.Z)(),N=(0,n.useTranslations)(),{data:k}=(0,_.useSession)(),C=(0,c.useMemo)(()=>S.map(e=>({label:N(e.labelI18NKey),value:e.value})),[N]),{data:Z,isFetching:F,isLoading:L,isError:z,isSuccess:E}=(0,u.a)({queryKey:(0,h.r9)(null==k?void 0:null===(t=k.user)||void 0===t?void 0:null===(e=t.country)||void 0===e?void 0:e.iso,{purchased:g,currentPage:v}),queryFn:(0,h.j8)(null==k?void 0:null===(p=k.user)||void 0===p?void 0:null===(l=p.country)||void 0===l?void 0:l.iso,{purchased:g,currentPage:v}),placeholderData:d.Wk,staleTime:6e5,gcTime:6e5}),T=null===(f=(Array.isArray(null==Z?void 0:Z.data)?null==Z?void 0:Z.data:[])||[])||void 0===f?void 0:f.reduce((e,t)=>[...e,...((null==t?void 0:t.cheques)||[]).map(e=>({...e,iso:t.iso,emoji:t.emoji,country:t.country}))],[]),R=(null==Z?void 0:Z.last_page)||0,q=!(null==T?void 0:T.length);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"flex flex-col justify-center w-full h-full px-4 py-3",children:[w===x.A.mobile?(0,a.jsx)("div",{className:"flex lg:hidden w-full mb-[24px]",children:(0,a.jsx)(D.mQ,{defaultValue:C[+("true"===m.get("purchased"))].value,className:"w-full max-w-[200px]",onValueChange:e=>{let t="purchased"===e,l=new URLSearchParams(m);t?l.set("purchased","true"):l.delete("purchased"),j.replace("".concat(y).concat(t?"?".concat(l.toString()):""))},children:(0,a.jsx)(D.dr,{children:null==C?void 0:C.map((e,t)=>(0,a.jsx)(D.SP,{value:e.value,children:e.label},"".concat(e.value,"-").concat(t)))})})}):null,q?(0,a.jsx)(r.Z,{title:N("my_profile.vouchers.empty_section.title"),description:N("my_profile.vouchers.empty_section.description"),buttonLabel:N("my_profile.vouchers.empty_section.buttonLabel"),buttonHref:"/"}):null,q?null:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex flex-wrap gap-[16px] w-full",children:T.map((e,t)=>(0,a.jsx)(A,{item:e},"gift-voucher-item-".concat(e.id,"-").concat(t)))})}),R>1&&(0,a.jsx)("div",{className:"flex items-center justify-center",children:(0,a.jsx)(P.default,{currentPage:v,pageCount:R,onChange:b,disabled:L||F})})]})})}},45853:function(e,t,l){"use strict";l.d(t,{_:function(){return n}});var a=l(91447);function n(){let{globalLoading:e,setGlobalLoadingState:t}=(0,a.M$)();return{globalLoading:e,setGlobalLoadingState:t}}},2464:function(e,t,l){"use strict";l.d(t,{Z:function(){return s}});var a=l(39332),n=l(11163),r=l(67294);function s(e){let{pageParamKey:t="page"}=e||{},l=(0,a.useSearchParams)(),s=(0,a.usePathname)(),i=(0,a.useRouter)(),o=(0,n.useRouter)(),c=(0,r.useMemo)(()=>{let e=parseInt((null==l?void 0:l.get(t))||"");return isNaN(e)&&(e=1),e},[t,l]);return{params:l,pathname:s,router:i,currentPage:c,setActivePage:e=>{let a=new URLSearchParams(l);a.set(t,e.toString()),i.push("".concat(s,"?").concat(a.toString()))},buildPageHref:(0,r.useCallback)(e=>{let[l,a=""]=(o.asPath||"/").split("?"),n=new URLSearchParams(a);
1e<=1?n.delete(t):n.set(t,e.toString());let r=o.locale&&o.locale!==o.defaultLocale?"/".concat(o.locale):"",s=r&&(l===r||l.startsWith("".concat(r,"/")))?l:"".concat(r).concat(l),i=n.toString();return i?"".concat(s,"?").concat(i):s},[o.asPath,o.locale,o.defaultLocale,t])}}},64593:function(e,t,l){"use strict";l.d(t,{Jp:function(){return h},Kt:function(){return c},VL:function(){return u},ZR:function(){return i},ev:function(){return o},j8:function(){return s},r7:function(){return d},r9:function(){return r}});var a=l(92008),n=l(34089);let r=(e,t)=>{let{purchased:l=!1,currentPage:a=1,perPage:n=30}=t||{};return[l?"purchased":"not-purchased","vouchers",e||"",n,a]},s=(e,t)=>async()=>{let{purchased:l=!1,currentPage:r=1,perPage:s=30}=t||{};return n._h.get((0,a.DL)("/cheque"),{params:{iso:e||void 0,purchased:l||void 0,page:r,per_page:s}}).then(e=>e.data)},i=e=>["voucher-detail",e],o=e=>async()=>n._h.get((0,a.DL)("/cheque/".concat(e))).then(e=>e.data),c=e=>["purchase-voucher",e],u=e=>async()=>n._h.post((0,a.DL)("/cheque/".concat(e))).then(e=>e.data),d=()=>["app","country-list"],h=()=>async()=>n._h.get((0,a.DL)("/cheque/country")).then(e=>e.data)},23856:function(e,t,l){"use strict";l.d(t,{z:function(){return s}});var a=l(91036),n=l.n(a);let r={...n().defaults.allowedAttributes,"*":["class"],a:["href","name","target","rel"],img:["src","srcset","alt","title","width","height","loading"]};function s(e){return"string"==typeof e&&e?n()(e,{allowedTags:n().defaults.allowedTags.concat(["img"]),allowedAttributes:r,allowedSchemes:["http","https","mailto","tel"],allowProtocolRelative:!1,enforceHtmlBoundary:!0,transformTags:{a:(e,t)=>({tagName:"a",attribs:{...t,..."_blank"===t.target?{rel:"noopener noreferrer"}:{}}})}}):""}},75347:function(){},31777:function(){},34017:function(){},59905:function(){}}]);
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.