PageSourceSearch

https://thka.ai/_next/static/chunks/1162-cd3cdddb33dda423.js

js thka.ai collected 2026-10-05 14:20:42 UTC 10,216 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1162],{67751:function(e,t,a){a.d(t,{It:function(){return n},pY:function(){return o}});var r=a(20357);let n="https://thka.ai",o="https://admin.thka.ai";r.env.NEXT_PUBLIC_FIREBASE_API_KEY,r.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,r.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID,r.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET,r.env.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID,r.env.NEXT_PUBLIC_FIREBASE_APPID,r.env.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID,r.env.NEXT_PUBLIC_AWS_AMPLIFY_USER_POOL_ID,r.env.NEXT_PUBLIC_AWS_AMPLIFY_USER_POOL_WEB_CLIENT_ID,r.env.NEXT_PUBLIC_AWS_AMPLIFY_REGION,r.env.NEXT_PUBLIC_AUTH0_CLIENT_ID,r.env.NEXT_PUBLIC_AUTH0_DOMAIN,r.env.NEXT_PUBLIC_AUTH0_CALLBACK_URL,r.env.NEXT_PUBLIC_MAPBOX_API},96794:function(e,t,a){var r=a(11900),n=a(67751);let o=(0,r.$q8)(n.pY).with((0,r.RFO)({onRequest:e=>({...e,cache:"no-store"})}));t.Z=o},30914:function(e,t,a){a.d(t,{u:function(){return l},Y:function(){return u}});var r=a(30998),n=a(16463),o=a(66091),s=a(58589),i=a(55041),c=a(12643);let u=()=>{var e;let t=(0,n.useRouter)(),{data:a,status:u}=(0,r.useSession)(),l=null==a?void 0:a.accessToken,d=null==a?void 0:null===(e=a.user)||void 0===e?void 0:e.id,{global:_}=c.dictionary,f=()=>"authenticated"===u,v=e=>{e?t.push("".concat(s.H.auth.login,"?returnTo=").concat(s.P.MAIN,"/community/").concat(e.id,"?post_category=").concat(e.category[0].community_categories_id.id)):t.push("".concat(s.H.auth.login,"?returnTo=").concat(s.P.MAIN,"/community/"))},y=async e=>{let{isFavorite:r,post:n,toPostDetailsPage:s}=e;if(f())try{if(r)await (0,o.QM)({token:l,PostId:n.id,userId:d});else{var c;await (0,o.oU)({token:l,PostId:n.id,user:n.user_created.id,followingUserImage:null!==(c=a.user.avatar)&&void 0!==c?c:"3dcf7443-1200-40ee-a88d-0606541f7f66",followingUserName:"".concat(a.user.first_name,"  ").concat(a.user.last_name)})}(0,i.yv)(r?_.deleteFromFavoriteSuccessfully:_.addToFavoriteSuccessfully),t.refresh()}catch(e){(0,i.yv)("لقد حدث خطأ ما",{variant:"error"})}else v(s?n:void 0)};return{handleSavePost:async e=>{let{isSaved:r,post:n,toPostDetailsPage:s=!1}=e;if(f())try{if(r)await (0,o.w7)({token:l,PostId:n.id,userId:d});else{var c;await (0,o.gO)({token:l,PostId:n.id,user:n.user_created.id,followingUserImage:null!==(c=a.user.avatar)&&void 0!==c?c:"3dcf7443-1200-40ee-a88d-0606541f7f66",followingUserName:"".concat(a.user.first_name,"  ").concat(a.user.last_name)})}(0,i.yv)(r?_.deleteFromSavedSuccessfully:_.addToSavedSuccessfully),t.refresh()}catch(e){(0,i.yv)("لقد حدث خطأ ما",{variant:"error"})}else v(s?n:void 0)},handleRelyPost:async e=>{let{post:r,content:n,curReplies:s}=e;if(f()){var i;await (0,o.Bn)({token:l,postId:r.id,content:n,curReplies:s,user:r.user_created.id,followingUserImage:null!==(i=a.user.avatar)&&void 0!==i?i:"3dcf7443-1200-40ee-a88d-0606541f7f66",followingUserName:"".concat(a.user.first_name,"  ").concat(a.user.last_name)}),t.refresh()}else v()},handleEditPost:async e=>{let{post:a,postId:r}=e;await (0,o.dq)({token:l,post:a,postId:r}),t.refresh()},isAuthinticated:f,handleCreatePost:async e=>{let{post:a}=e,r=await (0,o.q2)({token:l,post:a});if(t.refresh(),r){var n,i,c,u,d;t.push("".concat(s.P.MAIN,"/community/").concat(r.id,"?post_category=").concat("object"==typeof(null===(n=a.category)||void 0===n?void 0:n[0].community_categories_id)?null===(c=a.category)||void 0===c?void 0:null===(i=c[0].community_categories_id)||void 0===i?void 0:i.id:null===(d=a.category)||void 0===d?void 0:null===(u=d[0])||void 0===u?void 0:u.community_categories_id))}},handleDeletePost:async e=>{let{postId:a}=e;try{await (0,o.fR)({token:l,postId:a}),(0,i.yv)(c.dictionary.pages.community.home.posts.post_actions.postDeletedSuccessfully),t.refresh()}catch(e){(0,i.yv)("لقد حدث خطأ ما",{variant:"error"})}},navigateToLoginPage:v,handleAddFavoritePost:y}},l=()=>{var e;let t=(0,n.useRouter)(),{data:a,status:c}=(0,r.useSession)(),u=null==a?void 0:a.accessToken,l=null==a?void 0:null===(e=a.user)||void 0===e?void 0:e.id,{enqueueSnackbar:d}=(0,i.Ds)(),_=()=>"authenticated"===c,f=()=>t.push("".concat(s.H.auth.login,"?returnTo=").concat(s.P.MAIN,"/community/")),v=async e=>{let{showSnackBar:r=!0,isFollowed:n,followedUserId:s}=e;if(_()){if(n)try{await (0,o.ux)({token:u,followedUserId:s,userId:l}),r&&d("تمت إلغاء متابعة صانع المحتوى بنجاح")}catch(e){r&&d("لقد حدث خطأ ما",{variant:"error"})}else try{var i;(await (0,o.rQ)({contentCreatorId:s,token:u,userId:l})).length>0&&await (0,o.GT)({contentCreatorId:s,userId:l,token:u}),await (0,o.OZ)({token:u,followedUserId:s,followingUserImage:null!==(i=a.user.avatar)&&void 0!==i?i:"3dcf7443-1200-40ee-a88d-0606541f7f66",followingUserName:"".concat(a.user.first_name,"  ").concat(a.user.last_name)}),r&&d("تمت متابعة صانع المحتوى بنجاح")}catch(e){r&&d("لقد حدث خطأ ما",{variant:"error"})}t.refresh()}else f()},y=async e=>{let{contentCreatorId:a,isFollowed:r}=e;if(_()){try{r&&await v({isFollowed:r,followedUserId:a,showSnackBar:!1}),await (0,o.TI)({contentCreatorId:a,token:u}),d("تم حظر صانع المحتوى بنجاح")}catch(e){d("لقد حدث خطأ ما",{variant:"error"})}t.refresh()}else f()};return{handleFollowContentCreator:v,handleBlockContentCreator:y,handleMakeReportContentCreator:async e=>{let{contentCreatorId:a,reason:r,reportedUser:n,reportingUser:s,postLink:i}=e;try{await (0,o.CU)({contentCreatorId:a,token:u,reason:r,reportedUser:n,reportingUser:s,postLink:i}),d("تم تقديم التقرير بنجاح")}catch(e){d("لقد حدث خطأ ما",{variant:"error"})}t.refresh()}}}},66091:function(e,t,a){a.d(t,{Bn:function(){return u},CU:function(){return v},GT:function(){return y},OZ:function(){return p},QM:function(){return d},TI:function(){return f},dq:function(){return i},fR:function(){return c},fr:function(){return s},gO:function(){return _},oU:function(){return l},q2:function(){return o},rQ:function(){return A},ux:function(){return w},w7:function(){return I}});var r=a(11900),n=a(96794);let o=async e=>{let{token:t,post:a}=e,o=new FormData;o.append("file",a.cover);let s=await n.Z.request((0,r.ILP)(o));return await n.Z.request((0,r.ewn)(t,(0,r.fCy)("post",{status:"published",...a,cover:s.id})))},s=async e=>await n.Z.request((0,r.ZeN)("community_categories",e)),i=async e=>{let{post:t,token:a,postId:o}=e,s={id:""};if("string"!=typeof t.cover){let e=new FormData;e.append("file",t.cover),s=await n.Z.request((0,r.ILP)(e))}return await n.Z.request((0,r.ewn)(a,(0,r.$GW)("post",o,{title:t.title,subtitle:t.subtitle,content:t.content,category:t.category,..."string"!=typeof t.cover?{cover:s.id}:{}})))},c=async e=>{let{token:t,postId:a}=e;return await n.Z.request((0,r.ewn)(t,(0,r.$GW)("post",a,{status:"archived"})))},u=async e=>{let{token:t,postId:a,content:o,curReplies:s,user:i,followingUserName:c,followingUserImage:u}=e,l=await n.Z.request((0,r.ewn)(t,(0,r.fCy)("post_replies",{content:o,post:a,user:i,followingUserImage:u,followingUserName:c}
1))),d=await n.Z.request((0,r.ewn)(t,(0,r.RhW)("post",a)));await n.Z.request((0,r.ewn)(t,(0,r.$GW)("post",a,{replies:[l.id,...d.replies]})))},l=async e=>{let{token:t,PostId:a,user:o,followingUserImage:s,followingUserName:i}=e;await n.Z.request((0,r.ewn)(t,(0,r.fCy)("favorite_posts",{post:a,user:o,followingUserImage:s,followingUserName:i})))},d=async e=>{let{token:t,PostId:a,userId:o}=e;await n.Z.request((0,r.ewn)(t,(0,r.CVg)("favorite_posts",{filter:{post:{_eq:a},user_created:{_eq:o}}})))},_=async e=>{let{token:t,PostId:a,followingUserImage:o,followingUserName:s,user:i}=e;await n.Z.request((0,r.ewn)(t,(0,r.fCy)("saved_posts",{post:a,user:i,followingUserName:s,followingUserImage:o})))},f=async e=>{let{token:t,contentCreatorId:a}=e;await n.Z.request((0,r.ewn)(t,(0,r.fCy)("blocked_users",{user:a})))},v=async e=>{let{token:t,contentCreatorId:a,reason:o,reportedUser:s,reportingUser:i,postLink:c}=e;await n.Z.request((0,r.ewn)(t,(0,r.fCy)("reported_users",{user:a,reason:o,reportedUser:s,reportingUser:i,postLink:c})))},y=async e=>{let{token:t,contentCreatorId:a,userId:o}=e;await n.Z.request((0,r.ewn)(t,(0,r.CVg)("blocked_users",{filter:{user:{_eq:a},user_created:{_eq:o}}})))},A=async e=>{let{token:t,contentCreatorId:a,userId:o}=e;return await n.Z.request((0,r.ewn)(t,(0,r.dBv)("blocked_users",{filter:{user:{_eq:a},user_created:{_eq:o}}})))},I=async e=>{let{token:t,PostId:a,userId:o}=e;await n.Z.request((0,r.ewn)(t,(0,r.CVg)("saved_posts",{filter:{post:{_eq:a},user_created:{_eq:o}}})))},p=async e=>{let{token:t,followedUserId:a,followingUserName:o,followingUserImage:s}=e;await n.Z.request((0,r.ewn)(t,(0,r.fCy)("followers",{user:a,followingUserName:o,followingUserImage:s})))},w=async e=>{let{token:t,followedUserId:a,userId:o}=e;await n.Z.request((0,r.ewn)(t,(0,r.CVg)("followers",{filter:{user:{_eq:a},user_created:{_eq:o}}})))}},58589:function(e,t,a){a.d(t,{H:function(){return n},P:function(){return r}});let r={AUTH:"/auth",AUTH_DEMO:"/auth-demo",MAIN:"/main",DASHBOARD:"/dashboard"},n={page403:"/error/403",page404:"/error/404",page500:"/error/500",root:r.MAIN,roadMap:r.MAIN+"/road-map/library",aiMap:r.MAIN+"/thakaa-map",prompts:r.MAIN+"/prompts/library",tools:r.MAIN+"/tools/library",blog:r.MAIN+"/blog/articles",search:r.MAIN+"/search",research:r.MAIN+"/research/library",community:r.MAIN+"/community",footer:{learningGuide:r.MAIN+"/learning-guide/library",contact:r.MAIN+"/contact-us",about:r.MAIN+"/about",thakaaChat:r.MAIN+"/thakaa-chat",guideAndHelp:r.MAIN+"/guide-and-help",privacyPolicy:r.MAIN+"/privacy-policy"},auth:{login:r.AUTH+"/login",register:r.AUTH+"/register",verify:r.AUTH+"/verify",setPassword:r.AUTH+"/set-password",accountSetup:r.AUTH+"/account-setup"},dashboard:{profile:{details:r.DASHBOARD+"/profile/details",edit:r.DASHBOARD+"/profile/edit"},boxes:r.DASHBOARD+"/boxes",roadmap:r.DASHBOARD+"/roadmap",favorites:r.DASHBOARD+"/favorites",saves:r.DASHBOARD+"/saves",notes:r.DASHBOARD+"/notes",setting:{guideAndHelp:r.DASHBOARD+"/setting/guide-and-help",aboutUs:r.DASHBOARD+"/setting/about-us",privacyPolicy:r.DASHBOARD+"/setting/privacy-policy",notificationSetting:r.DASHBOARD+"/setting/notification-setting",contactUs:r.DASHBOARD+"/setting/contact-us"}}}}}]);

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.