1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,930847,e=>{"use strict";e.s(["SELLER_API_ENDPOINTS",0,{SHOP_OWNER_LOGIN:"/v1/seller/login",SELLER_ROLES:"roles",ROLES_FOR_STORE_OWNER:"v1/roles-status-update",PERMISSIONS_FOR_STORE_OWNER:"v1/seller/permissions-for-store-owner",SEND_VERIFICATION_EMAIL:"v1/seller/send-verification-email",RESEND_VERIFICATION_EMAIL:"v1/seller/resend-verification-email",VERIFY_TOKEN_BY_EMAIL:"v1/seller/verify-email",ATTRIBUTE_LIST:"v1/seller/store/attribute/list",ATTRIBUTE_ADD:"v1/seller/store/attribute/add",ATTRIBUTE_UPDATE:"v1/seller/store/attribute/update",ATTRIBUTE_EDIT:"v1/seller/store/attribute/details",ATTRIBUTE_REMOVE:"v1/seller/store/attribute/remove",ATTRIBUTE_STATUS_CHANGE:"v1/seller/store/attribute/status",AUTHOR_LIST:"v1/seller/store/product/author/list",AUTHOR_STATUS:"v1/seller/store/product/author/status",AUTHOR_SAVE:"v1/seller/store/product/author/add",AUTHOR_UPDATE:"v1/seller/store/product/author/update",AUTHOR_EDIT:"v1/seller/store/product/author/details",AUTHOR_REMOVE:"v1/seller/store/product/author/remove",COUPON_LIST:"v1/seller/product/coupon/list",COUPON_SAVE:"v1/seller/product/coupon/add",COUPON_UPDATE:"v1/seller/product/coupon/update",COUPON_EDIT:"v1/seller/product/coupon/details",COUPON_DELETE:"v1/seller/product/coupon/remove",SELLER_STORE_LIST:"v1/seller/store/list",SELLER_STORE_ADD:"v1/seller/store/add",SELLER_STORE_EDIT:"v1/seller/store/details",SELLER_STORE_UPDATE:"v1/seller/store/update",STORE_DROPDOWN_LIST:"v1/seller/store-fetch-list",STORE_DASHBOARD:"v1/seller/store/dashboard",BUSINESS_PLAN_DETAILS_LIST:"v1/seller/store/settings/business-plan",COMMISSION_SETTINGS:"v1/seller/store/get-commission-settings",BUSINESS_PLAN_HISTORY_LIST:"v1/seller/store/subscription/package/history",PAYMENT_STATUS_UPDATE:"v1/subscription/package/payment-status-update",PACKAGE_RENEW:"v1/subscription/package/renew",BUY_PACKAGE:"v1/subscription/package/buy",BUSINESS_PLAN_CHANGE:"v1/seller/store/settings/business-plan-change",GENERATE_BUSINESS_PLAN_HMAC:"v1/subscription/package/generate-hmac",WALLET_LIST:"v1/seller/store/financial/wallet",WALLET_AMOUNT_DEPOSIT:"v1/seller/store/financial/wallet/deposit",WALLET_TRANSACTIONS:"v1/seller/store/financial/wallet/transactions",WALLET_STATUS_UPDATE:"v1/wallet/payment-status-update",GENERATE_WALLET_HMAC:"v1/wallet/generate-hmac",STAFF_ADD:"v1/seller/store/staff/add",STAFF_LIST:"v1/seller/store/staff/list",STAFF_EDIT:"v1/seller/store/staff/details",STAFF_UPDATE:"v1/seller/store/staff/update",STAFF_STATUS:"v1/seller/store/staff/change-status",STAFF_REMOVE:"v1/seller/store/staff/remove",STAFF_PASSWORD_CHANGE:"v1/seller/store/staff/change-password",PRODUCT_ADD:"v1/seller/store/product/add",PRODUCT_LIST:"v1/seller/store/product/list",PRODUCT_EDIT:"v1/seller/store/product/details",PRODUCT_UPDATE:"v1/seller/store/product/update",PRODUCT_REMOVE:"v1/seller/store/product/remove",PRODUCT_FEATURE_MAKE:"v1/seller/store/product/add-to-featured",PRODUCT_DESCRIPTION_GENERATE:"v1/seller/generate/content",PRODUCT_DYNAMIC_FIELD:"v1/seller/store/dynamic-fields",STOCK_REPORT_LIST:"v1/seller/store/product/stock-report",PRODUCT_ATTRIBUTE:"v1/seller/attributes/type-wise",INVENTORY_LIST:"v1/seller/store/product/inventory",EXPORT:"v1/seller/store/product/export",IMPORT:"v1/seller/store/product/import",SELLER_ORDER_LIST:"v1/seller/store/orders",SELLER_ORDER_STATUS_UPDATE:"v1/seller/store/orders/change-order-status",SELLER_ORDER_INVOICE:"v1/seller/store/orders/invoice",SELLER_ORDER_CANCEL:"v1/seller/store/orders/cancel-order",REVIEWS_LIST:"v1/seller/store/feedback-control/review",REVIEWS_APPROVE:"v1/seller/store/feedback-control/review/approve",REVIEWS_REJECT:"v1/seller/store/feedback-control/review/reject",REVIEWS_DELETE:"v1/seller/store/feedback-control/review/remove",QUESTIONS_LIST:"v1/seller/store/feedback-control/questions",QUESTIONS_APPROVE:"v1/seller/store/feedback-control/questions/approve",QUESTIONS_REJECT:"v1/seller/store/feedback-control/questions/reject",QUESTIONS_STATUS_CHANGE:"v1/seller/store/feedback-control/questions/change-status",QUESTIONS_DELETE:"v1/seller/store/feedback-control/questions/remove",QUESTIONS_REPLY:"v1/seller/store/feedback-control/questions/reply",SUPPORT_TICKET_LIST:"v1/seller/store/support-ticket/list",SUPPORT_TICKET_EDIT:"v1/seller/store/support-ticket/detail
1s",SUPPORT_TICKET_DETAILS:"v1/seller/store/support-ticket/get-ticket-messages",SUPPORT_TICKET_ADD:"v1/seller/store/support-ticket/add",SUPPORT_TICKET_UPDATE:"v1/seller/store/support-ticket/update",SUPPORT_TICKET_ADD_MESSAGE:"v1/seller/store/support-ticket/message/add",SUPPORT_TICKET_REPLY_MESSAGE:"v1/seller/store/support-ticket/message/add",SUPPORT_TICKET_RESOLVE:"v1/seller/store/support-ticket/resolve",SUPPORT_TICKET_PRIORITY_CHANGE:"v1/seller/store/support-ticket/change-priority-status",WITHDRAW_REQUEST_LIST:"v1/seller/store/financial/withdraw",WITHDRAW_REQUEST_ADD:"v1/seller/store/financial/withdraw/withdraw-request",WITHDRAW_REQUEST_DETAILS:"v1/seller/store/financial/withdraw/details",WITHDRAW_METHOD_DROPDOWN:"v1/withdraw/gateway-method-list",WITHDRAW_SETTINGS:"v1/seller/store/financial/withdraw/settings",WITHDRAW_METHOD_LIST:"v1/seller/store/financial/withdraw/gateway-list",WITHDRAW_METHOD_ADD:"v1/seller/store/financial/withdraw/gateway-add",WITHDRAW_METHOD_EDIT:"v1/seller/store/financial/withdraw/gateway-details",WITHDRAW_METHOD_UPDATE:"v1/seller/store/financial/withdraw/gateway-update",WITHDRAW_METHOD_DELETE:"v1/seller/store/financial/withdraw/gateway-delete",WITHDRAW_METHOD_STATUS_CHANGE:"v1/seller/store/financial/withdraw/gateway-change-status",REFUND_REQUEST_LIST:"v1/seller/store/orders/refund-request",REFUND_REQUEST_STATUS_CHANGE:"v1/seller/store/orders/refund-request/handle",REFUND_REASON_LIST:"v1/orders/refund-reason-list",FLASH_DEALS_ACTIVE_LIST:"v1/seller/store/promotional/flash-deals/active-deals",FLASH_DEALS_MY_LIST:"v1/seller/store/promotional/flash-deals/my-deals",FLASH_DEALS_JOIN_STORE:"v1/seller/store/promotional/flash-deals/join-deals",SELLER_DASHBOARD_LIST:"v1/seller/dashboard",SELLER_SALES_LIST:"v1/seller/dashboard/sales-summary",SELLER_ORDER_GROWTH_LIST:"v1/seller/dashboard/order-growth-summary",SELLER_OTHER_SUMMARY_LIST:"v1/seller/dashboard/other-summary",CONTACT_US:"contact-us",NOTICES_LIST:"v1/seller/store-notices/list",NOTICES_DETAILS:"v1/seller/store-notices/details",SELLER_NOTIFICATIONS_ADD:"v1/seller/store/notifications",SELLER_NOTIFICATIONS_READ:"v1/seller/store/notifications/read",SELLER_NOTIFICATIONS_REMOVE:"v1/admin/notifications/remove",CHAT_SETTINGS:"v1/admin/chat/settings",LIVE_CHAT_LIST:"v1/seller/store/chat/list",CHAT_DETAILS:"v1/seller/store/chat/messages-details",REPLY_MESSAGE:"v1/seller/store/chat/send",POS_PRODUCT_LIST:"v1/seller/store/pos/products",POS_PRODUCT_DETAILS:"v1/seller/store/pos/products",POS_CUSTOMER_STORE:"v1/seller/store/pos/add-customer",POS_CUSTOMER_LIST:"v1/seller/store/pos/customers",COUPON_CHECK:"v1/check-coupon",POS_PLACE_ORDER:"v1/seller/store/pos/checkout",POS_INVOICE:"v1/seller/store/pos/invoice",POS_CATEGORY:"v1/product-category/list",POS_SETTINGS:"v1/seller/store/pos/settings",POS_ORDER_LIST:"v1/seller/store/pos/orders",POS_ORDER_DETAILS:"v1/seller/store/pos/orders",BKASH_PAYMENT:"/v1/seller/bkash/create-payment",BKASH_PAYMENT_CALLBACK:"/v1/seller/bkash/callback",NAGAD_PAYMENT:"/v1/seller/nagad/create-payment",NAGAD_PAYMENT_CALLBACK:"/v1/seller/nagad/callback",SSL_PAYMENT:"/v1/seller/sslcommerz/payment/initiate",SSL_STATUS:"/v1/seller/sslcommerz/payment/status"}])},574311,e=>{"use strict";e.s(["SellerRoutes",0,{signin:"/seller/signin",becomeASeller:"/become-a-seller",seller:"/seller",dashboard:"/seller/dashboard",emailVerification:"/seller/email-verification",profile:"/seller/profile",store:"/seller/store/list",addStore:"/seller/store/add",editStore:"/seller/store/edit",product:"/seller/product/list",addProduct:"/seller/product/add",editProduct:"/seller/product/edit",staff:"/seller/store/staff/list",addStaff:"/seller/store/staff/add",editStaff:"/seller/store/staff/edit",storeDashboard:"/seller/store",productList:"/seller/store/product/list",productAdd:"/seller/store/product/add",productEdit:"/seller/store/product/edit",businessPlan:"/seller/store/settings/business-plan",sellerWallet:"/seller/store/financial/wallet",authorList:"/seller/store/product/author/list",addAuthor:"/seller/store/product/author/add",editAuthor:"/seller/store/product/author/edit",AttributeList:"/seller/store/attribute/list",addAttribute:"/seller/store/attribute/add",editAttribute:"/seller/store/attribute/edit",supportTicketList:"/seller/store/support-ticket/list",addSupportTicket:"/seller/store/support-ticket/add",editSupportTicket:"/seller/store/support-ticket/edit",supportTicketDetails:"/seller/store/support-ticket/detail
1s",withdrawRequestList:"/seller/store/financial/withdraw",addWithdrawRequest:"/seller/store/financial/withdraw/withdraw-request",editWithdrawRequest:"/seller/store/support-ticket/edit",withdrawRequestDetails:"/seller/store/financial/withdraw/details",ordersList:"/seller/store/orders",orderDetails:"/seller/store/orders/details",ActiveDealsList:"/seller/store/promotional/flash-deals/active-deals",MyDealsList:"/seller/store/promotional/flash-deals/my-deals",JoinDealsAdd:"/seller/store/promotional/flash-deals/join-deals",sellerNotifications:"/seller/store/notifications",sellerChatManage:"/seller/store/chat/list",posOrderDetails:"/seller/store/pos/orders/details",posOrdersList:"/seller/store/pos/orders"}])},400532,729833,e=>{"use strict";var t=e.i(494881),r=e.i(639372),s=e.i(117595);let a=(0,r.atom)(!!s.default.get(t.AUTH_TOKEN_KEY));e.s(["authorizationAtom",0,a],400532),e.s(["useToken",0,function(){return{setToken:e=>{s.default.set(t.AUTH_TOKEN_KEY,e,{expires:1})},getToken:()=>s.default.get(t.AUTH_TOKEN_KEY),removeToken:()=>{s.default.remove(t.AUTH_TOKEN_KEY)},hasToken:()=>!!s.default.get(t.AUTH_TOKEN_KEY)}}],729833)},306336,441918,e=>{"use strict";var t=e.i(22584),r=e.i(574311),s=e.i(602904),a=e.i(930847),o=e.i(117595),l=e.i(494881);function i(e,t){o.default.set(l.AUTH_CRED,JSON.stringify({token:e,permissions:t}))}l.SUPER_ADMIN,l.STORE_OWNER,l.STAFF,l.SUPER_ADMIN,l.STORE_OWNER,l.SUPER_ADMIN,l.STORE_OWNER,l.STAFF,l.SUPER_ADMIN,l.STORE_OWNER,l.STORE_OWNER,l.STAFF,e.s(["setAuthCredentials",0,i],441918);var n=e.i(400532),u=e.i(729833),c=e.i(837706),d=e.i(170319);let E=()=>{let e=(0,c.useBaseService)(s.API_ENDPOINTS.USERS_LOGIN),t=async()=>{try{await e.getAxiosInstance().post(s.API_ENDPOINTS.LOGOUT,{})}catch(e){d.toast.error(e instanceof Error?`Error refetching data: ${e.message}`:"An unknown error occurred while refetching data")}};return{...e,logout:t}};var S=e.i(536719),_=e.i(560989),T=e.i(262309),f=e.i(954616),p=e.i(266027),m=e.i(912598),A=e.i(672464),h=e.i(618566);e.s(["useForgotPassword",0,()=>{let{create:e}=(0,c.useBaseService)(s.API_ENDPOINTS.ADMIN_FORGOT_PASSWORD);return(0,f.useMutation)({mutationFn:t=>e(t),mutationKey:[s.API_ENDPOINTS.ADMIN_FORGOT_PASSWORD],onSuccess:async e=>{e?.data?d.toast.success(e?.data?.message):d.toast.error(e?.data?.message)},onError:async e=>{let t=e?.response?.data?.message;t&&"object"==typeof t?Object.entries(t).forEach(([e,t])=>{Array.isArray(t)?t.forEach(e=>d.toast.error(e)):"string"==typeof t&&d.toast.error(t)}):d.toast.error(t)}})},"useGetPermissionsQuery",0,(e,t)=>{let[r]=(0,A.useAtom)(n.authorizationAtom),{findAll:a}=(0,c.useBaseService)(s.API_ENDPOINTS.GET_PERMISSIONS),{data:o,isPending:l,error:i,isFetchedAfterMount:u,refetch:d,isFetching:E}=(0,p.useQuery)({queryKey:[s.API_ENDPOINTS.GET_PERMISSIONS],queryFn:()=>a(e),retry:!1,refetchOnWindowFocus:!1,...e});return{getPermissions:o?.data,isPending:l,isFetching:E,error:i,isAuthorized:r,isFetchedAfterMount:u,refetch:d}},"useLogin",0,({isRedirect:e=!0})=>{let r=(0,m.useQueryClient)(),{setToken:a}=(0,u.useToken)(),c=(0,h.useRouter)(),S=E(),[_,T]=(0,A.useAtom)(n.authorizationAtom);return(0,f.useMutation)({mutationFn:e=>S.create(e),mutationKey:[s.API_ENDPOINTS.USERS_LOGIN],onSuccess:async r=>{if(!r.data?.token)return void d.toast.error("Wrong Credentials!");d.toast.success(r?.data?.message);let{token:s,expires_at:n,permissions:u}=r.data;o.default.set(l.AUTH_TOKEN_KEY,s),o.default.set(l.AUTH_USER,"system_level"),localStorage.setItem("expires_at",n),a(r?.data?.token),i(r?.data?.token,r?.data?.permissions),T(!0),e&&(c.push(`${t.Routes.dashboard}`),localStorage.setItem("selectedStore",JSON.stringify({id:"",slug:""})))},onError:async e=>{let t=e?.response?.data;d.toast.error(t?.message)},onSettled:async()=>{await r.invalidateQueries({queryKey:[s.API_ENDPOINTS?.USERS_LOGIN]})}})},"useLogoutMutation",0,e=>{let r=(0,h.useRouter)(),a=(0,S.useAppDispatch)(),i=(0,m.useQueryClient)(),u=E(),[c,_]=(0,A.useAtom)(n.authorizationAtom);return(0,f.useMutation)({mutationFn:()=>u.logout(),mutationKey:[s.API_ENDPOINTS.LOGOUT],onSuccess:async()=>{o.default.remove(l.AUTH_TOKEN_KEY),o.default.remove(l.AUTH_USER),_(!1),i.removeQueries({queryKey:[s.API_ENDPOINTS.ME]}),r.push(t.Routes.signin),localStorage.clear(),localStorage.setItem("selectedStore",JSON.stringify({id:"",slug:""})),a((0,T.setSelectedStore)({id:"",type:"",slug:""})),d.toast.success("User Logout Successfully")},onError:e=>{d.toast.error("Logout failed")}})},"useMeQuery",0,e=>{let t,[r]=(0,A.useAtom)(n.authorizationAtom),a={...t=(0,c.useBaseService)(s.API_ENDPOINTS.ME),me:()=>
1t.findAll()},o=(0,p.useQuery)({queryKey:[s.API_ENDPOINTS.ME],queryFn:()=>a.me(),retry:!1,enabled:r,...e});return{me:o.data?.data,isPending:o.isPending,error:o.error,isAuthorized:r,isFetchedAfterMount:o.isFetchedAfterMount,refetch:o.refetch}},"useOTP",0,()=>{let{create:e}=(0,c.useBaseService)(s.API_ENDPOINTS.ADMIN_VERIFY_TOKEN);return(0,f.useMutation)({mutationFn:t=>e(t),mutationKey:[s.API_ENDPOINTS.ADMIN_VERIFY_TOKEN],onSuccess:async e=>{e?.data?d.toast.success(e?.data?.message):d.toast.error(e?.data?.message)},onError:async e=>{let t=e?.response?.data?.message;t&&"object"==typeof t?Object.entries(t).forEach(([e,t])=>{Array.isArray(t)?t.forEach(e=>d.toast.error(e)):"string"==typeof t&&d.toast.error(t)}):d.toast.error(t)}})},"useRegisterMutation",0,({isRedirect:e=!0})=>{let t=(0,m.useQueryClient)(),{setToken:r}=(0,u.useToken)();(0,h.useRouter)();let a=(0,c.useBaseService)(s.API_ENDPOINTS.STORE_OWNER_REGISTER),[o,l]=(0,A.useAtom)(n.authorizationAtom);return(0,f.useMutation)({mutationFn:e=>a.create(e),mutationKey:[s.API_ENDPOINTS.STORE_OWNER_REGISTER],onSuccess:async e=>{e.data?.token?(d.toast.success("User Register Successfully"),r(e?.data?.token),i(e?.data?.token,e?.data?.permissions),l(!0),localStorage.setItem("email_verification_settings",e?.data?.email_verification_settings.toString()),localStorage.setItem("email_verified",e?.data?.email_verified.toString()),localStorage.setItem("user_email",e?.data?.email)):d.toast.error("Wrong Credentials!")},onError:async e=>{let t=e?.response?.data;t&&"object"==typeof t?Object.entries(t).forEach(([e,t])=>{Array.isArray(t)?t.forEach(e=>d.toast.error(e)):"string"==typeof t&&d.toast.error(t)}):d.toast.error(t?.message)},onSettled:async()=>{await t.invalidateQueries({queryKey:[s.API_ENDPOINTS?.STORE_OWNER_REGISTER]})}})},"useResendVerificationEmailMutation",0,()=>{let{create:e}=(0,c.useBaseService)(a.SELLER_API_ENDPOINTS.RESEND_VERIFICATION_EMAIL);return(0,f.useMutation)({mutationFn:t=>e(t),mutationKey:[a.SELLER_API_ENDPOINTS.RESEND_VERIFICATION_EMAIL],onSuccess:async e=>{e?.data?d.toast.success("Verification email sent successfully!"):d.toast.error("Failed to send verification email. Please try again.")},onError:async e=>{d.toast.error(e?.response?.data?.message)}})},"useResetPassword",0,()=>{let{create:e}=(0,c.useBaseService)(s.API_ENDPOINTS.ADMIN_RESET_PASSWORD);return(0,f.useMutation)({mutationFn:t=>e(t),mutationKey:[s.API_ENDPOINTS.ADMIN_RESET_PASSWORD],onSuccess:async e=>{e?.data?d.toast.success(e?.data?.message):d.toast.error(e?.data?.message)},onError:async e=>{let t=e?.response?.data?.message;t&&"object"==typeof t?Object.entries(t).forEach(([e,t])=>{Array.isArray(t)?t.forEach(e=>d.toast.error(e)):"string"==typeof t&&d.toast.error(t)}):d.toast.error(t)}})},"useSendVerificationEmailMutation",0,()=>{let{create:e}=(0,c.useBaseService)(a.SELLER_API_ENDPOINTS.SEND_VERIFICATION_EMAIL);return(0,f.useMutation)({mutationFn:t=>e(t),mutationKey:[a.SELLER_API_ENDPOINTS.SEND_VERIFICATION_EMAIL],onSuccess:async e=>{e?.data?d.toast.success("Verification email sent successfully!"):d.toast.error("Failed to send verification email. Please try again.")},onError:async e=>{d.toast.error(e?.response?.data?.message)}})},"useShopOwnerLogin",0,({isRedirect:e=!0})=>{let t,E,_=(0,m.useQueryClient)(),{setToken:p}=(0,u.useToken)(),I=(0,h.useRouter)(),O=(0,S.useAppDispatch)(),v=(t=(0,c.useBaseService)(s.API_ENDPOINTS.SHOP_OWNER_LOGIN),E=async()=>{try{await t.getAxiosInstance().post(s.API_ENDPOINTS.LOGOUT,{})}catch(e){d.toast.error(e instanceof Error?`Error refetching data: ${e.message}`:"An unknown error occurred while refetching data")}},{...t,logout:E}),[R,N]=(0,A.useAtom)(n.authorizationAtom);return(0,f.useMutation)({mutationFn:e=>v.create(e),mutationKey:[a.SELLER_API_ENDPOINTS.SHOP_OWNER_LOGIN],onSuccess:async t=>{if(!t.data?.token)return void d.toast.error("Wrong Credentials!");d.toast.success(t?.data?.message);let{token:s,expires_at:a,permissions:n,email_verified:u,email_verification_settings:c,email:E}=t.data;o.default.set(l.AUTH_TOKEN_KEY,s),o.default.set(l.AUTH_USER,"store_level"),localStorage.setItem("expires_at",a),p(s),i(s,n),N(!0),localStorage.setItem("email_verified",t?.data?.email_verified.toString()),localStorage.setItem("email_verification_settings",t?.data?.email_verification_settings.toString()),localStorage.setItem("user_email",t?.data?.email),e&&(!1===u&&"on"===c?I.push(r.SellerRoutes.emailVerification):(I.push(r.SellerRoutes.dashboard),localStorage.setItem("selectedStore",JSON.stringify({id:"",slug:""})),O((0,T.setSelectedStore)({id:"",type:"",slug:""}))))},onError:async e=>{let t=e?.response?.data?.message;d.toast.error(t)},onSettled:async()=>
1{await _.invalidateQueries({queryKey:[a.SELLER_API_ENDPOINTS?.SHOP_OWNER_LOGIN]})}})},"useStoreOwnerLogoutMutation",0,e=>{let t=(0,h.useRouter)(),a=(0,S.useAppDispatch)(),i=(0,m.useQueryClient)(),u=E(),[c,p]=(0,A.useAtom)(n.authorizationAtom);return(0,f.useMutation)({mutationFn:()=>u.logout(),mutationKey:[s.API_ENDPOINTS.LOGOUT],onSuccess:async()=>{o.default.remove(l.AUTH_TOKEN_KEY),o.default.remove(l.AUTH_USER),p(!1),i.removeQueries({queryKey:[s.API_ENDPOINTS.ME]}),t.push(r.SellerRoutes.signin),localStorage.clear(),a((0,T.setSelectedStore)({id:"",type:"",slug:""})),localStorage.setItem("selectedStore",JSON.stringify({id:"",slug:""})),a((0,_.setRefetch)(!0)),d.toast.success("User Logout Successfully")},onError:e=>{d.toast.error("Logout failed")}})},"useVerifyTokenByEmailMutation",0,()=>{let{create:e}=(0,c.useBaseService)(a.SELLER_API_ENDPOINTS.VERIFY_TOKEN_BY_EMAIL);return(0,f.useMutation)({mutationFn:t=>e(t),mutationKey:[a.SELLER_API_ENDPOINTS.VERIFY_TOKEN_BY_EMAIL],onSuccess:async e=>{e?.data?d.toast.success("Token verification successful!"):d.toast.error("Token does not match. Please try again.")},onError:async e=>{d.toast.error(e?.response?.data?.message)}})}],306336)},641877,167203,336208,e=>{"use strict";var t=e.i(475254);let r=(0,t.default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["default",0,r],641877);let s=(0,t.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);e.s(["default",0,s],167203);let a=(0,t.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["default",0,a],336208)},546467,e=>{"use strict";let t=(0,e.i(475254).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["default",0,t])},121996,626073,778917,e=>{"use strict";var t=e.i(843476),r=e.i(861745),s=e.i(618566),a=e.i(271645),o=a["use".trim()],l=e.i(247167);function i(e){let t;return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&(null==(t="object"==typeof e?e.pathname:e)||!!t.startsWith("/"))}function n(e,t){return e.replace(RegExp(`^${t}`),"")||"/"}function u(e,t){return t===e||t.startsWith(`${e}/`)}function c(e,t,r){return"string"==typeof e?e:e[t]||r}function d(e){let t=function(){try{return"true"===l.default.env._next_intl_trailing_slash}catch{return!1}}(),[r,...s]=e.split("#"),a=s.join("#"),o=r;if("/"!==o){let e=o.endsWith("/");t&&!e?o+="/":!t&&e&&(o=o.slice(0,-1))}return a&&(o+="#"+a),o}function E(e,t){let r,s=d(e),a=d(t);return(r=s.replace(/\/\[\[(\.\.\.[^\]]+)\]\]/g,"(?:/(.*))?").replace(/\[\[(\.\.\.[^\]]+)\]\]/g,"(?:/(.*))?").replace(/\[(\.\.\.[^\]]+)\]/g,"(.+)").replace(/\[([^\]]+)\]/g,"([^/]+)"),RegExp(`^${r}$`)).test(a)}function S(e,t){return"never"!==t.mode&&t.prefixes?.[e]||"/"+e}function _(e){return e.includes("[[...")}function T(e){return e.includes("[...")}function f(e){return e.includes("[")}function p(e,t){let r=e.split("/"),s=t.split("/"),a=Math.max(r.length,s.length);for(let e=0;e<a;e++){let t=r[e],a=s[e];if(!t&&a)return -1;if(t&&!a)return 1;if(t||a){if(!f(t)&&f(a))return -1;if(f(t)&&!f(a))return 1;if(!T(t)&&T(a))return -1;if(T(t)&&!T(a))return 1;if(!_(t)&&_(a))return -1;if(_(t)&&!_(a))return 1}}return 0}var m=e.i(522016);function A(e){let t=new URLSearchParams;for(let[r,s]of Object.entries(e))Array.isArray(s)?s.forEach(e=>{t.append(r,String(e))}):t.set(r,String(s));return"?"+t.toString()}function h(e,t,r,s){if(!e||s===r||null==s||!t)return;let a=function(e,t=window.location.pathname){return"/"===e?t:t.replace(e,"")}(t),{name:o,...l}=e;l.path||(l.path=""!==a?a:"/");let i=`${o}=${s};`;for(let[e,t]of Object.entries(l))i+=`${"maxAge"===e?"max-age":e}`,"boolean"!=typeof t&&(i+="="+t),i+=";";document.cookie=i}var I=(0,a.forwardRef)(function({href:e,locale:a,localeCookie:o,onClick:l,prefetch:i,...n},u){let c=(0,r.useLocale)(),d=null!=a&&a!==c,E=(0,s.usePathname)();return d&&(i=!1),(0,t.jsx)(m.default,{ref:u,href:e,hrefLang:d?a:void 0,onClick:function(e){h(o,E,c,a),l&&l(e)},prefetch:i,...n})});let{Link:O,getPathname:v,redirect:R,usePathname:N,useRouter:g}=function(e){let{Link:l,config:_,getPathname:T,...f}=function(e,r){var l,n,u;let E={...l=r||{},localePrefix:"object"==typeof(u=l.localePrefix)?u:{mode:u||"always"}
1,localeCookie:!!((n=l.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof n&&n},localeDetection:l.localeDetection??!0,alternateLinks:l.alternateLinks??!0},_=E.pathnames,T=(0,a.forwardRef)(function({href:r,locale:s,...a},l){let n,u;"object"==typeof r?(n=r.pathname,u=r.params):n=r;let c=i(r),d=e(),S="function"==typeof d.then?o(d):d,T=c?f({locale:s||S,href:null==_?n:{pathname:n,params:u},forcePrefix:null!=s||void 0}):n;return(0,t.jsx)(I,{ref:l,href:"object"==typeof r?{...r,pathname:T}:T,locale:s,localeCookie:E.localeCookie,...a})});function f(e){let t,{forcePrefix:r,href:s,locale:a}=e;return null==_?"object"==typeof s?(t=s.pathname,s.query&&(t+=A(s.query))):t=s:t=function({pathname:e,locale:t,params:r,pathnames:s,query:a}){function o(e){let o,l=s[e];return l?(o=c(l,t,e),r&&Object.entries(r).forEach(([e,t])=>{let r,s;Array.isArray(t)?(r=`(\\[)?\\[...${e}\\](\\])?`,s=t.map(e=>String(e)).join("/")):(r=`\\[${e}\\]`,s=String(t)),o=o.replace(RegExp(r,"g"),s)}),o=new URL(o=o.replace(/\[\[\.\.\..+\]\]/g,""),"http://l").pathname):o=e,o=d(o),a&&(o+=A(a)),o}if("string"==typeof e)return o(e);{let{pathname:t,...r}=e;return{...r,pathname:o(t)}}}({locale:a,..."string"==typeof s?{pathname:s}:s,pathnames:E.pathnames}),function(e,t,r,s){var a,o;let l,n,{mode:u}=r.localePrefix;return void 0!==s?l=s:i(e)&&("always"===u?l=!0:"as-needed"===u&&(l=r.domains?!r.domains.some(e=>e.defaultLocale===t):t!==r.defaultLocale)),l?(a=S(t,r.localePrefix),o=e,n=a,/^\/(\?.*)?$/.test(o)&&(o=o.slice(1)),n+=o):e}(t,a,E,r)}function p(e){return function(t,...r){return e(f(t),...r)}}return{config:E,Link:T,redirect:p(s.redirect),permanentRedirect:p(s.permanentRedirect),getPathname:f}}(r.useLocale,e);return{...f,Link:l,usePathname:function(){let e,t,o=(e=(0,s.usePathname)(),t=(0,r.useLocale)(),(0,a.useMemo)(()=>{if(!e)return e;let r=e,s=S(t,_.localePrefix);if(u(s,e))r=n(e,s);else if("never"!==_.localePrefix.mode&&_.localePrefix.prefixes){let s="/"+t;u(s,e)&&(r=n(e,s))}return r},[_.localePrefix,t,e])),l=(0,r.useLocale)();return(0,a.useMemo)(()=>o&&_.pathnames?function(e,t,r){let s=Object.keys(r).sort(p),a=decodeURI(t);for(let t of s){let s=r[t];if("string"==typeof s){if(E(s,a))return t}else if(E(c(s,e,t),a))return t}return t}(l,o,_.pathnames):o,[l,o])},useRouter:function(){let e=(0,s.useRouter)(),t=(0,r.useLocale)(),o=(0,s.usePathname)();return(0,a.useMemo)(()=>{function r(e){return function(r,s){let{locale:a,...l}=s||{},i=[T({href:r,locale:a||t,forcePrefix:null!=a||void 0})];Object.keys(l).length>0&&i.push(l),h(_.localeCookie,o,t,a),e(...i)}}return{...e,push:r(e.push),replace:r(e.replace),prefetch:r(e.prefetch)}},[t,o,e])},getPathname:T}}({locales:["en","bn","ar","ms","es","ps","fr","de","it","pt","ru","zh","ja","ko","hi","ur","fa","tr","nl","sv","no","da","fi","pl","cs","sk","hu","ro","bg","uk","el","he","th","vi","id","tl","sw","am","kk","uz","ka","hy","az","km","lo","my","lt","lv","et","sl","hr","sr"],defaultLocale:"en",localePrefix:"as-needed"});e.i(614271);var P=e.i(519455),L=e.i(515288),y=e.i(664659),D=e.i(641877),D=D,U=e.i(193061);function k({locale:e}){let s=N(),a=(0,r.useLocale)()===e.code;return(0,t.jsx)(O,{className:`mb-1 p-2 text-sm font-semibold rounded-sm ${a?"text-blue-500 bg-green-50":"text-gray-500 hover:bg-green-50"}`,href:s,locale:e.code,children:e.name})}e.s(["default",0,function(){let[e,s]=(0,a.useState)([]),[o,l]=(0,a.useState)(!1),i=(0,a.useRef)(null),n=(0,r.useLocale)(),{settingSection:u}=(0,U.useUITheme)();(0,a.useEffect)(()=>{u?.languages&&s(u.languages.filter(e=>"active"===e.status))},[u]),(0,a.useEffect)(()=>{let e=e=>{i.current&&!i.current.contains(e.target)&&l(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let c=e.find(e=>e.code===n);return(0,t.jsxs)("div",{className:"relative flex gap-1 py-5",ref:i,children:[(0,t.jsxs)(P.Button,{onClick:()=>{l(!o)},className:"!h-10 app-input flex gap-2 sidebar-select w-[120px] lg:w-[130px] bg-transparent hover:bg-transparent text-blue-500 text-sm font-medium px-0",children:[(0,t.jsx)(D.default,{size:20}),c?.name||n.toUpperCase(),(0,t.jsx)(y.ChevronDown,{size:20})]}),o&&(0,t.jsx)(L.Card,{className:"rounded-md border shadow-md absolute mt-12 px-1 w-full pb-1 flex flex-col z-50",children:e.map(e=>(0,t.jsx)(k,{locale:e},e.code))})]})}],121996);var w=e.i(167203),w=w,b=e.i(336208),b=b,x=e.i(363178);e.s(["ThemeToggle",0,function(){let[e,r]=(0,a.useState)(!1),{setTheme:s,resolvedTheme:o}=(0,x.useTheme)();return((0,a.useEffect)(()=>r(!0),[]),e)?(0,t.jsxs)(P.Button,{className:"app-button",size:"icon",onClick:()=>s("dark"===o?"light":"dark"),children:["dark"===o?(0,t.jsx)(b.default,{className:"h-[1.2rem] w-[1.2rem]"}):(0,t.jsx)(w.default,{className:"h-[1.2rem] w-[1.2rem]"}),(0,t.jsx)("span",{className:"sr-only",children:"Toggle theme"})]}):(0,t.jsx)(P.Button,{variant:"ghost",size:"icon",disabled:!0,children:(0,t.jsx)(b.default,{className:"h-[1.2rem] w-[1.2rem]"})})}],626073);var C=e.i(546467);e.s(["ExternalLink",()=>C.default],778917)},793611,e=>{"use strict";var t=e.i(843476),r=e.i(121996),s=e.i(626073);e.i(614271);var a=e.i(519455),o=e.i(464510),l=e.i(225960),i=e.i(778917),n=e.i(6
157688),u=e.i(522016),c=e.i(618566),d=e.i(271645);e.s(["PublicNavbar",0,function(){let e=(0,c.useRouter)(),{generalInfoSection:E}=(0,o.useGeneralInfo)(),S=(0,d.useMemo)(()=>E?.site_settings||{},[E]);return(0,t.jsx)("header",{className:`p-2 sticky top-0 z-20 w-full bg-background/95 shadow backdrop-blur supports-[backdrop-filter]:bg-background/60 dark:shadow-secondary 2 h-[80px] 3 } `,children:(0,t.jsxs)("div",{className:"mx-0 lg:mx-4 flex h-14 items-center ",children:[(0,t.jsxs)("div",{className:"cursor-pointer",onClick:()=>{let t=window.location.pathname;"/"===t||"/seller/signin"===t||"/admin/signin"===t||"/become-a-seller"===t?e.refresh():e.push("/")},children:[(0,t.jsx)("div",{className:"hidden md:flex gap-4 lg:gap-0 items-center px-4",children:S?.com_site_logo?(0,t.jsx)("div",{className:"relative w-32 h-12",children:(0,t.jsx)(n.default,{loader:l.default,src:S?.com_site_logo,alt:"quick_ecommerce",fill:!0,sizes:"128px",className:"w-full h-full"})}):(0,t.jsx)("div",{className:"relative w-20 h-12",children:(0,t.jsx)(n.default,{src:"/images/no-image.png",alt:"quick_ecommerce",fill:!0,sizes:"128px",className:"w-full h-full"})})}),(0,t.jsx)("div",{className:"flex md:hidden gap-4 lg:gap-0 items-center",children:S?.com_site_favicon?(0,t.jsx)("div",{className:"relative w-10 h-10",children:(0,t.jsx)(n.default,{loader:l.default,src:S?.com_site_favicon,alt:"quick_ecommerce",fill:!0,sizes:"32px",className:"w-full h-full"})}):(0,t.jsx)("div",{className:"relative w-10 h-10",children:(0,t.jsx)(n.default,{src:"/images/no-image.png",alt:"quick_ecommerce",fill:!0,sizes:"32px",className:"w-full h-full"})})})]}),(0,t.jsx)("div",{className:` 4 flex flex-1 items-center space-x-2 justify-end px-2 5 } `,children:(0,t.jsxs)("div",{className:"flex items-center justify-center",children:[(0,t.jsx)(s.ThemeToggle,{}),(0,t.jsx)(u.default,{href:"https://nurtaj.com.bd",target:"_blank",rel:"noopener noreferrer",children:(0,t.jsxs)(a.Button,{variant:"ghost",className:"mx-4 bg-blue-50 text-blue-500 hover:text-blue-600",children:[(0,t.jsx)("span",{className:`mx-1 hidden md:flex 6 } `,children:"Visit Site"})," ",(0,t.jsx)(i.ExternalLink,{width:15,height:15})]})}),(0,t.jsx)(r.default,{})]})})]})})}])}]);
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.