PageSourceSearch

https://maya.com.bd/_next/static/chunks/9366.6a03d15a69dfaf80.js

js maya.com.bd collected 2026-10-06 04:29:53 UTC 4,266 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9366],{59366:function(e,t,n){n.r(t),n.d(t,{default:function(){return c}});var s=n(24246),l=n(51957),a=n(56765),r=n(78247);function c(){let{modalData:{card_id:e}}=(0,a.l8)(),{closeModal:t}=(0,a.l8)(),{deleteCard:n,isLoading:c}=(0,r.Li)();return(0,s.jsx)(l.Z,{onCancel:t,onDelete:function(){e&&n({id:e})},deleteBtnLoading:c})}},51957:function(e,t,n){n.d(t,{Z:function(){return u}});var s=n(24246);n(27378);var l=e=>{let{width:t,height:n,className:l}=e;return(0,s.jsx)("svg",{width:t,height:n,className:l,fill:"currentColor",viewBox:"0 0 1792 1792",children:(0,s.jsx)("path",{d:"M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"})})},a=n(60802),r=n(49948),c=n(93967),d=n.n(c),u=e=>{let{onCancel:t,onDelete:n,icon:c,title:u="button-delete",description:o="delete-item-confirm",cancelBtnText:i="button-cancel",deleteBtnText:m="button-delete",cancelBtnClassName:h,deleteBtnClassName:f,cancelBtnLoading:x,deleteBtnLoading:v}=e,{t:b}=(0,r.$G)("common");return(0,s.jsx)("div",{className:"p-4 pb-6 bg-gray-100 bg-white m-auto max-w-sm w-full rounded-md md:rounded-xl sm:w-[24rem]",children:(0,s.jsx)("div",{className:"w-full h-full text-center",children:(0,s.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[c||(0,s.jsx)(l,{className:"w-12 h-12 m-auto mt-4 text-accent"}),(0,s.jsx)("p",{className:"mt-4 text-xl font-bold text-heading",children:b(u)}),(0,s.jsx)("p",{className:"px-6 py-2 leading-relaxed text-body-dark dark:text-muted",children:b(o)}),(0,s.jsxs)("div",{className:"flex items-center justify-between w-full mt-8 space-x-4 rtl:space-x-reverse",children:[(0,s.jsx)("div",{className:"w-1/2",children:(0,s.jsx)(a.Z,{onClick:t,loading:x,disabled:x,className:d()("w-full py-2 px-4 bg-heading focus:outline-none hover:bg-gray-600 focus:bg-gray-600 text-light transition ease-in duration-200 text-center text-base font-semibold rounded shadow-md",h),children:b(i)})}),(0,s.jsx)("div",{className:"w-1/2",children:(0,s.jsx)(a.Z,{onClick:n,loading:v,disabled:v,className:d()("w-full py-2 px-4 bg-red-600 focus:outline-none hover:bg-red-700 focus:bg-red-700 text-light transition ease-in duration-200 text-center text-base font-semibold rounded shadow-md",f),children:b(m)})})]})]})})})}},78247:function(e,t,n){n.d(t,{Kj:function(){return o},Li:function(){return i},VR:function(){return h},ie:function(){return m}});var s=n(56552),l=n(37786),a=n(49260),r=n(56765),c=n(51454),d=n(49948),u=n(12511);function o(e,t){let{isAuthorized:n}=(0,u.aF)(),{data:r,isLoading:c,error:d}=(0,s.useQuery)([l.P.CARDS,e],()=>a.Z.cards.all(e),{enabled:n,...t});return{cards:null!=r?r:[],isLoading:c,error:d}}let i=()=>{let e=(0,s.useQueryClient)(),{t}=(0,d.$G)(),{closeModal:n}=(0,r.l8)(),{mutate:u,isLoading:o,error:i}=(0,s.useMutation)(a.Z.cards.remove,{onSuccess:()=>{n(),c.Am.success("".concat(t("common:card-successfully-deleted")))},onSettled:()=>{e.invalidateQueries(l.P.CARDS)}});return{deleteCard:u,isLoading:o,error:i}};function m(e){let{t}=(0,d.$G)(),{closeModal:n}=(0,r.l8)(),u=(0,s.useQueryClient)(),{mutate:o,isLoading:i,error:m}=(0,s.useMutation)(a.Z.cards.addPaymentMethod,{onSuccess:()=>{n(),c.Am.success("".concat(t("common:card-successfully-add")),{toastId:"success"})},onError:e=>{let{response:{data:n}}=null!=e?e:{};c.Am.error("".concat(t(null==n?void 0:n.message)),{toastId:"error"})},onSettled:()=>{u.invalidateQueries(l.P.CARDS)}});return{addNewCard:o,isLoading:i,error:m}}function h(){let{t:e}=(0,d.$G)(),t=(0,s.useQueryClient)(),{mutate:n,isLoading:r,error:u}=(0,s.useMutation)(a.Z.cards.makeDefaultPaymentMethod,{onSuccess:()=>{c.Am.success("".concat(e("common:set-default-card-message")))},onSettled:()=>{t.invalidateQueries(l.P.CARDS)}});return{createDefaultPaymentMethod:n,isLoading:r,error:u}}}}]);

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.