1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9388],{5603:(e,t,o)=>{"use strict";o.d(t,{T:()=>i});var a=o(38055);let s=JSON.parse('{"somethingMSg":"Something went wrong. Please try again after some time","loginLbl":"Login","nameLbl":"Name","emailLbl":"Email","passLbl":"Password","confpassLbl":"Confirm Password","priPolicy":"Privacy Policy","forgotPassLbl":"Forgot Password ?","loginMsg":"Login Successfully","logoutLbl":"Logout","cancelBtn":"Cancel","noNews":"News Not Available","shareLbl":"Share","followLbl":"Follow","UnfollowLbl":"Unfollow","deactiveMsg":"You are deactivated by admin","logoutTxt":"Are you sure you want to Logout?","yesLbl":"Yes","noLbl":"No","submitBtn":"Submit","verifyEmailMsg":"Please first verify your email address!!!","passReset":"Password reset link has been sent to your mail","profileUpdateMsg":"Profile Data Updated Successfully","categoryPreferences":"Category Preferences","notificationPref":"Notification Preferences","deleteTxt":"Delete","reportTxt":"Report","nameRequired":"Name is Required","emailValid":"Please enter a valid email Address!","pwdRequired":"Password is Required","confPassRequired":"Confirm Password is Required","confPassNotMatch":"Confirm Password not match","verifSentMail":"Verification email sent to ","loginTxt":"Log In","reqOtpLbl":"Request OTP","otpSentLbl":"OTP has been sent to ","mobileLbl":"Mobile","allLbl":"All","comsLbl":"Comments","saveLbl":"Save","shareThoghtLbl":"Share Your Thoughts.","newsLbl":"News","resendLbl":"Resend OTP","mblRequired":"Mobile number is Required","mblValid":"Please enter a valid mobile number!","optSel":"Please Select One Option!!!","chooseLanLbl":"Select Language","videosLbl":"Videos","viewMore":"View More","viewLess":"View Less","logoutAcc":"Logout Account","deleteAcc":"Delete Account","pwdLength":"Password should be more than 6 character long","minutes":"minutes","seconds":"seconds","stdPostLbl":"Standard Post","videoYoutubeLbl":"Video (Youtube)","videoOtherUrlLbl":"Video (Other Url)","videoUploadLbl":"Video (Upload)","createNewsLbl":"Create News","catLbl":"Category","plzSelCatLbl":"Please select category","subcatLbl":"SubCategory","contentTypeLbl":"Content Type","uploadVideoLbl":"Upload Video","youtubeUrlLbl":"Youtube Url","otherUrlLbl":"Other Url","titleLbl":"Title","tagLbl":"Tag","showTilledDate":"Show Till Date","uploadMainImageLbl":"Upload Main Image","uploadOtherImageLbl":"Upload Other Image","plzUploadVideoLbl":"Please upload video!!!","selCatLbl":"Select Category","editNewsLbl":"Edit News","doYouReallyNewsLbl":"Do You Really Want to Delete this News?","manageNewsLbl":"Manage News","previewLbl":"Preview","readMoreLbl":"Read more","minute":"minute","read":"read","selLocationLbl":"Select Location","metaTitleLbl":"Meta Title","metaDescriptionLbl":"Meta Description","slugLbl":"Slug","metaTitleWarningLbl":"Meta Title length should not exceed 60 characters.","metaDescriptionWarningLbl":"Meta Description length should between 50 to 160 characters.","metaKeywordWarningLbl":"Meta Keywords are not more than 10 keyword phrases & should be comma separated.","slugWarningLbl":"Slug only accept lowercase letters, numbers, and hyphens. No spaces or special characters allowed.","slugRequired":"Slug is Required","slugValid":"Please enter valid Slug!","slugUsedAlready":"This slug is already in use. Please add any other slug.","publishDate":"Publish Date","dateConfirmation":"Please change Show till date , as it can\'t be set before Publish date","rssFeed":"RSS Feed","disabledCommentsMsg":"Comments are disabled for this News by admin","today":"Today","date":"Date","home":"Home","aboutus":"About Us","livenews":"Live News","breakingnews":"Breaking News","contactus":"Contact Us","bookmark":"Bookmark","logout":"Log out","login":"Log in","nodatafound":"No Data Found","addbookmark":"Add Bookmark","dontforgetbookmark":"Don\'t forget to Bookmark the News you like the most so that you can find those easily over here.","readmore":"Read More","fontsize":"Font Size","breaking":"Breaking","news":"News","viewall":"View All","categories":"Categories","leaveacomments":"Leave Comments","submitpost":"Submit Post","comment":"Comment","addreplyhere":"Add reply here","submitreply":"SUBMIT REPLY","reply":"Reply","facebook":"Facebook","instagram":"Instagram","linkedin":"LinkedIn","twitter":"Twitter","termsandcondition":"Terms & Conditions","copyright":"Copyright","allrights":"All right Reserved By","usefulllinks":"UseFull Links","followus":"Follow Us","enteremail":"Enter the email address associated with your account","createnewpassword":"Enter your email for create new password.","enter-email-password":"Enter your email address and password to access your account.","healthnews":"Health News","add-data-from-admin-panel":"No Data Found! Please Add Data From Admin Panel","likes":"Likes","by":"By","get-otp":"Get Otp","otp-sent":"OTP has been sent to","resend-otp":"Resend Otp","reply-comment":"Reply in your comment","enter-your-mobile-number":"Enter Your Mobile Number","six-didgit-code":"You can Receive 6 digit code for your number verification.","popularnews":"Popular News","Welcome":"Welcome","register-daily-news":"Enter the below details and Register for Daily
1News","username":"User Name","register":"Register","emailaddress":"Email Address","related-news":"Related News","welcomeback":"Welcome back!","sigin-with-facebook":"Sign in with Facebook","signin-with-google":"Sign in with Google","signin-with-phone":"Sign in with Phone","video-ews-explore":"Video News To Explore","More Pages":"More Pages","previous":"Previous","next":"Next","update-profile":"Update Profile","your-name":"Your Name","back":"Back","Profile update is not allowed in demo version.":"Profile update is not allowed in demo version.","flag":"Flag Successfully","breakingNewsLbl":"Breaking News","donthaveacc_lbl":"Don\'t Have an account ? ","signupLbl":"Sign Up","createAccLbl":"Create an account","comDelSucc":"Comment Delete Successfully...","comDisable":"Comments Disabled by Admin !!!","disabledCategory":"Category Disabled by Admin","More":"More","meta-title":"Meta Title","meta-description":"Meta Description","slug":"slug","meta-keywords":"Meta Keywords","titlerequired":"Title is required","metaTitlerequired":"Meta Title is required","metaDescriptionrequired":"Meta Description is required","metaKeywordsrequired":"Meta Keyword is required","slugrequired":"Slug is required","selectlanguage":"Please select language","selectcategory":"Please select category","contentTyperequired":"Please select content type","descriptionrequired":"Please select description","descriptionisrequire":"Description is required","resendCodeIn":"Resend Code In","newsDetails":"News Details","opt-verify":"OTP Verification","navigations":"Navigations","contactinfo":"Contact Info","downloadapp":"Download App","magicofapp":"Experience the Magic of the News App","underMaintance":"We\'re Under Maintenance!","pleaseTryagain":"Our website is currently under maintenance. Please check back soon for updates.","or":"OR","policyPages":"Policy Pages","publishDateRequired":"Publish Date is Required","deleteAccWarning":"Are you sure you want to delete your account? This action cannot be undone.By deleting your account, you will lose access to:","profileInfo":"Profile information","settings":"Settings","associatedContent":"And Any associated content","userBasedCat":"User Based Categories","videoNews":"Video News","personalNotification":"Personal Notifications","views":"Views","loadMore":"Load More","recentNews":"Recent News","expireNews":"Expired News","deactiveNews":"Deactivated","filerBy":"Filter By","backToLogin":"Back to Login","allCokkies":"Do you allow us to use cookies?","weUseCokkies":"We use cookies to learn where you struggle when you\'re navigating our website and fix them for your future visit.","declineCokkies":"Decline Cookies","acceptCokkies":"Accept Cookies","dontHaverPermission":"You don\'t have access to manage News","viewIn":"View in","open":"Open","app":"App","pageNotEnable":"Please enable this page from admin first!","pageLost":"Oops, looks like the page is lost","notFault":"This is not a fault, just an accident that was not intentional","live":"Live","appNotInstalled":"The app is not installed. Please install and try again.","downloadPromptAppStore":"Download the app from the App Store","downloadPromptPlayStore":"Download the app from the Play Store","playStore":"Play Store","appStore":"App Store","filter":"Filter","videoDetails":"Video Details","pleaseApplyFilter":"Please apply filter","searchNews":"Search News","last7days":"Last 7 days","last30days":"Last 30 days","last90days":"Last 90 days","autoGenerateMetaInfo":"Auto-generate Meta Info","generating":"Generating...","generate":"Generate","enterPrompt":"Enter a prompt for AI to help with content...","tryPrompt":"Try: Write an article about [topic]","addTitleToAutoGenerateMetaInfo":"Add title to auto-generate meta info","language":"Language","postType":"Post Type","description":"Description","location":"Location","commentRequired":"Write a comment first","bookmarkSuccess":"Bookmark Successfully","bookmarkRemoved":"Bookmark Removed Successfully","metaInformationApplied":"AI-generated meta information applied","failedToGenerateMetaInfo":"Failed to generate meta information: No data returned","pleaseSelectVideoFormat":"Please select a video format","pleaseSelectImageFile":"Please select an image file.","onlyImageFilesAllowed":"Only image files are allowed.","pleaseEnterPromptForAI":"Add title to auto-generate content","aiContentGeneratedSuccessfully":"AI content generated successfully","failedToGenerateAIContent":"Failed to generate AI content","youtubeShortsNotSupported":"YouTube Shorts are not supported","urlIsNotYouTubeVideo":"URL is not a YouTube video","YouTubeVideosNotSupported":"YouTube videos are not supported for this content type","newsCreatedSuccessfully":"Your news has been created successfully! It will be visible to others after admin a
1pproval.","draftCreatedSuccessfully":"Successfully saved as draft","newsUpdatedSuccessfully":"News updated successfully","loginFirst":"Please login first","loginOutMsg":"Logout Successfully","deletedAcc":"Deleted Account Successfully","newsDeletedSuccessfully":"News deleted successfully","notificationDeletedSuccessfully":"Notification deleted successfully","urlCopied":"URL copied to clipboard!","updateSuccessfully":"Update Successfully","on":"ON","off":"OFF","editLbl":"Edit","summarizedDescription":"Summarized Description","clickSummarizeDescription":"Click \'Summarize Description\' to generate a summary of your content","generatingSummary":"Generating Summary...","englishOnly":"English only","becomeAnAuthor":"Become an Author","authorInfoMsg":"You can add social media links & Bio only if you are the author.","bio":"Bio","addYourBio":"add your bio","socialMediaLinks":"Social Media Links","facebookProfile":"Facebook Profile URL","addYourInstagramLink":"Add your Instagram link","whatsapp":"WhatsApp","addLinkHere":"add link here...","saveAsDraft":"Save as Draft","allNewsLbl":"All News","draftNewsLbl":"Draft News","author":"Author","pendingReview":"Pending Review","authorRequestSuccessMsg":"Author request sent successfully.","telegram":"Telegram","loading":"Loading...","followMe":"Follow Me","onlyAuthorsCanCreateNews":"Only authors can create news. Please apply to become an author first, or wait for admin approval if you have already applied.","onlyAuthorEditNews":"Only authors can manage news. Please apply to become an author first, or wait for admin approval if you have already applied.","fillBioAndSocialMsg":"Please fill in your bio and social media links, then click Update Profile to submit your author request.","fileSizeMustBeLessThan2MB":"File size must be less than 2MB","failedToCreateTag":"Failed to create tag","noTagsFound":"No tags found.","press":"Press","enter":"Enter","toCreate":"to create","creating":"Creating...","shortNews":"Short News","shortNewsWarn":"Maximum 300 characters allowed in short news","dontMissUpdate":"Don\'t Miss Important Updates","allNotification":" Allow browser notifications to get real-time alerts when major news happens.Click âAllowâ in the upcoming browser prompt to stay informed.","enableNotifications":"Enable Notifications","maybeLater":"Maybe Later","e_news":"eNews","feeds":"Feeds","notificationBlocked":"You have blocked notifications. You can enable them later from your browser settings.","commentReplyNotification":"Comment reply notification","commentReplyNotificationDesc":"Get notified when someone replies to your comment","newsNotification":"News notification","newsNotificationDesc":"Stay informed with the latest local and global stories.","promotionalNotification":"Promotional notification","promotionalNotificationDesc":"Receive updates about special offers, features, and announcements.","podcastNotification":"Podcast notification","podcastNotificationDesc":"Listen to in-depth discussions and daily news summaries.","marketAlertNotification":"Market alert notification","marketAlertNotificationDesc":"Get timely notifications for important news and emergency updates.","loginFirstBeforeDeleteAcc":"Please login first before deleting your account.","anErrorOccurredWhileDeletingUserAccount":"An error occurred while deleting user account.","somethingwentwrong":"Something went wrong","somethingwentwrongDesc":"Failed to load settings please try again later","noInternet":"No Internet Connection","checkConnection":"Please check your connection and try again.","clear":"Clear","apply":"Apply","viewPaper":"View Paper","demoAccountCannotBeDeleted":"Demo account cannot be deleted","newsBuzz":"Newsbuzz","checkForShortNews":"Check for short news","speakLoud":"Speak Loud","alerts":"Alerts","podcast":"Podcast","history":"History","episode":"Episode","episodes":"Episodes","download":"Download","searchPodcast":"Search Podcast","createPodcast":"Create Podcast","podcastTitleLbl":"Podcast Title","podcastDescriptionLbl":"Podcast Description","activePodcast":"Active Podcast","deactivePodcast":"Deactive Podcast","publishBtn":"Publish","podcastCreatedSuccessfully":"Podcast created successfully","createEpisode":"Create Episode","episodeNoLbl":"Episode No","episodeTitleLbl":"Episode Title","episodeDescriptionLbl":"Episode Description","selectSourceTypeLbl":"Select Source Type","uploadAudioLbl":"Upload Audio","activeEpisode":"Active Episode","deactiveEpisode":"Deactive Episode","podcastRequired":"Please select a podcast","episodeNo
1Required":"Episode No is required","sourceTypeRequired":"Please select a source type","audioRequired":"Please provide episode audio","episodeCreatedSuccessfully":"Episode created successfully","managePodcast":"Manage Podcast","draft":"Draft","deletedSuccessfully":"Deleted Successfully!","editPodcast":"Edit Podcast","podcastUpdatedSuccessfully":"Podcast updated successfully","update":"Update","editEpisode":"Edit Episode","episodeUpdatedSuccessfully":"Episode updated successfully","episodeRequired":"Please select an episode","schemaMarkupLbl":"Schema Markup","schemaMarkupWarningLbl":"Add valid JSON-LD structured data for this podcast.","noEpisodesFound":"No Episodes Found"}'),i=e=>{let t=a.M.getState().languages?.currentLanguageLabels.data&&a.M.getState().languages?.currentLanguageLabels.data[e];return t||s[e]}},16006:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let a=o(64252)._(o(14232)),s=o(72936),i=[],r=[],n=!1;function l(e){let t=e(),o={loading:!0,loaded:null,error:null};return o.promise=t.then(e=>(o.loading=!1,o.loaded=e,e)).catch(e=>{throw o.loading=!1,o.error=e,e}),o}class d{constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}}function c(e){return function(e,t){let o=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),i=null;function l(){if(!i){let t=new d(e,o);i={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return i.promise()}if(!n){let e=o.webpack&&1?o.webpack():o.modules;e&&r.push(t=>{for(let o of e)if(t.includes(o))return l()})}function c(e,t){let r;l(),(r=a.default.useContext(s.LoadableContext))&&Array.isArray(o.modules)&&o.modules.forEach(e=>{r(e)});let n=a.default.useSyncExternalStore(i.subscribe,i.getCurrentValue,i.getCurrentValue);return a.default.useImperativeHandle(t,()=>({retry:i.retry}),[]),a.default.useMemo(()=>{var t;return n.loading||n.error?a.default.createElement(o.loading,{isLoading:n.loading,pastDelay:n.pastDelay,timedOut:n.timedOut,error:n.error,retry:i.retry}):n.loaded?a.default.createElement((t=n.loaded)&&t.default?t.default:t,e):null},[e,n])}return c.preload=()=>l(),c.displayName="LoadableComponent",a.default.forwardRef(c)}(l,e)}function u(e,t){let o=[];for(;e.length;){let a=e.pop();o.push(a(t))}return Promise.all(o).then(()=>{if(e.length)return u(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{u(i).then(e,t)}),c.preloadReady=(e=[])=>new Promise(t=>{let o=()=>(n=!0,t());u(r,e).then(o,o)}),window.__NEXT_PRELOADREADY=c.preloadReady;let p=c},18847:(e,t,o)=>{e.exports=o(20705)},20705:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={default:function(){return d},noSSR:function(){return l}};for(var s in a)Object.defineProperty(t,s,{enumerable:!0,get:a[s]});let i=o(64252);o(37876),o(14232);let r=i._(o(16006));function n(e){return{default:e?.default||e}}function l(e,t){return delete t.webpack,delete t.modules,e(t)}function d(e,t){let o=r.default,a={loading:({error:e,isLoading:t,pastDelay:o})=>null};e instanceof Promise?a.loader=()=>e:"function"==typeof e?a.loader=e:"object"==typeof e&&(a={...a,...e});let s=(a={...a,...t}).loader;return(a.loadableGenerated&&(a={...a,...a.loadableGenerated}
1,delete a.loadableGenerated),"boolean"!=typeof a.ssr||a.ssr)?o({...a,loader:()=>null!=s?s().then(n):Promise.resolve(n(()=>null))}):(delete a.webpack,delete a.modules,l(o,a))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47307:(e,t,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[langCode]/notification-preferences",function(){return o(92765)}])},71507:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var a=o(37876),s=o(92837),i=o(77328),r=o.n(i),n=o(89099),l=o(31777);let d=({title:e,description:t,keywords:o,ogImage:i,pathName:d})=>{let c=(0,n.useRouter)(),u=(0,l.d4)(s.t2);u?.data?.web_setting?.favicon_icon;let p=e||"Nalky Media - Actualit\xe9s et Informations",m=t||"Restez inform\xe9 avec Nalky Media, votre source d'actualit\xe9s fiable et \xe0 jour.",f="Nalky Media",g=d||`https://nalkymedia.com${c.asPath.split("?")[0]}`;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r(),{children:[(0,a.jsx)("title",{children:p}),(0,a.jsx)("meta",{name:"description",content:m}),(0,a.jsx)("meta",{name:"keywords",content:o||"Breaking news,Top stories,Headlines,Current events,Latest news,World news,National news,Local news,Politics,Business,Technology,Entertainment,Sports,Health,Science,Environment,Education,Crime,Immigration,Weather."}),(0,a.jsx)("meta",{name:"author",content:f}),(0,a.jsx)("meta",{property:"og:title",content:p}),(0,a.jsx)("meta",{property:"og:description",content:m}),i&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("meta",{property:"og:image",content:i}),(0,a.jsx)("meta",{property:"og:image:type",content:"image/jpeg"}),(0,a.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,a.jsx)("meta",{property:"og:image:height",content:"630"})]}),(0,a.jsx)("meta",{property:"og:url",content:g}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,a.jsx)("meta",{property:"og:site_name",content:f}),(0,a.jsx)("meta",{name:"twitter:title",content:p}),(0,a.jsx)("meta",{name:"twitter:description",content:m}),i&&(0,a.jsx)("meta",{name:"twitter:image",content:i}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:url",content:g}),(0,a.jsx)("link",{rel:"canonical",href:g}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,a.jsx)("meta",{name:"robots",content:"index, follow,max-snippet:-1,max-video-preview:-1,max-image-preview:large"}),!1]}),(0,a.jsx)("h1",{className:"sr-only hidden",children:e})]})}},72936:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return a}});let a=o(64252)._(o(14232)).default.createContext(null)},77328:(e,t,o)=>{e.exports=o(88022)},92765:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>b});var a=o(37876),s=o(14232),i=o(15797),r=o(5603),n=o(33485),l=o(77281);let d=({title:e,description:t,checked:o=!1,onToggle:s})=>(0,a.jsxs)("div",{onClick:s,className:"flex items-start justify-between gap-4 rounded-[12px] border border-[#1B2D511A] bg-white dark:secondaryBg p-4 cursor-pointer",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold textPrimary",children:e}),(0,a.jsx)("p",{className:"text-sm secondaryColor dark:text-white",children:t})]}),(0,a.jsx)("span",{className:`flexCenter shrink-0 w-5 h-5 sm:w-6 sm:h-6 rounded-full border-2 transition-colors ${o?"primaryBg border-transparent":"border-[var(--primary-color)]"}`,children:o&&(0,a.jsx)(l.g9_,{className:"text-white",size:18})})]});var c=o(67914),u=o(2859),p=o(96010),m=o(97685);let f={news:{titleKey:"newsNotification",descKey:"newsNotificationDesc"},podcasts:{titleKey:"podcastNotification",descKey:"podcastNotificationDesc"},alerts:{titleKey:"marketAlertNotification",descKey:"marketAlertNotificationDesc"},comments:{titleKey:"commentReplyNotification",descKey:"commentReplyNotificationDesc"},announcements:{titleKey:"promotionalNotification",descKey:"promotionalNotificationDesc"}},g=(e=[])=>e.map(({id:e,key:t,enabled:o})=>({id:e,key:t,...f[t],checked:!!o})),y=()=>{let{data:e,isLoading:t,isError:o,error:l}=(({enabled:e=!0}={})=>(0,c.I)({queryKey:["notificationPref"],enabled:e,queryFn:async()=>{let e=await u.xo.getNotificationPref();if(e?.data?.error)throw Error(e.data.message||"Failed to fetch noti-prefs");return e?.data}}
1))(),f=e?.data,[y,h]=(0,s.useState)(g(f));(0,s.useEffect)(()=>{o&&console.log("error in notification-prefs",l?.message)},[o]),(0,s.useEffect)(()=>{f&&h(g(f))},[f]);let b=async e=>{e.preventDefault();let t=y.map(({id:e,checked:t})=>({notification_type_id:e,status:+!!t}));try{let{data:e}=await u.xo.updateNotificationPrefs(t);e?.error?m.Ay.error(e?.message):(h(g(e?.data)),m.Ay.success((0,r.T)("updateSuccessfully")))}catch(e){m.Ay.error((0,r.T)("somethingMSg")),console.log(e)}};return(0,a.jsxs)(i.default,{children:[(0,a.jsx)(n.A,{secondElement:(0,r.T)("notificationPref")}),(0,a.jsxs)("section",{className:"userBasedCategories container mt-8 md:mt-12 pb-12 flex flex-col gap-8 md:gap-12",children:[(0,a.jsxs)("div",{className:"bg-white dark:secondaryBg rounded-2xl flex items-center justify-between py-3 px-4",children:[(0,a.jsx)("h2",{className:" font-medium text-lg md:text-xl textPrimary",children:(0,r.T)("notificationPref")}),(0,a.jsx)("button",{type:"submit",className:"commonBtn md:text-[18px] uppercase md:!py-4 md:!px-8",onClick:e=>b(e),children:(0,r.T)("saveLbl")})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6",children:t?Array.from({length:5}).map((e,t)=>(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4 rounded-[12px] border border-[#1B2D511A] bg-white p-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 flex-1",children:[(0,a.jsx)(p.A,{width:"45%",height:24,borderRadius:6}),(0,a.jsx)(p.A,{width:"90%",height:16,borderRadius:4})]}),(0,a.jsx)(p.A,{circle:!0,width:24,height:24,containerClassName:"shrink-0"})]},t)):y?.map(e=>(0,a.jsx)(d,{title:(0,r.T)(e.titleKey),description:(0,r.T)(e.descKey),checked:e.checked,onToggle:()=>{var t;return t=e.id,void h(e=>e.map(e=>e.id===t?{...e,checked:!e.checked}:e))}},e.id))})]})]})};var h=o(71507);let b=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.A,{title:`Nalky Media | ${(0,r.T)("notificationPref")}`,description:"",keywords:"",ogImage:"",pathName:"",schema:""}),(0,a.jsx)(y,{})]})}},e=>{e.O(0,[3629,713,2517,4938,8511,9897,5015,1285,7141,2883,3716,8028,5602,8644,2859,5797,3485,636,6593,8792],()=>e(e.s=47307)),_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.