1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f5e1c461-7f2f-561a-bb30-51df8bd5b2c1")}catch(e){}}(); 3import{a as M}from"./chunk-WKVGNX7M.js";import{a as Fe}from"./chunk-QEBIPDQJ.js";import"./chunk-2GWIPHCY.js";import{a as we,b as ke}from"./chunk-5U2LHHID.js";import"./chunk-TTP26DWK.js";import"./chunk-UVFLYTQL.js";import{a as Ae}from"./chunk-RATZJEDN.js";import{a as Ee}from"./chunk-J5737UC5.js";import{a as Se}from"./chunk-TBICCHSJ.js";import"./chunk-ZQ3UACEX.js";import"./chunk-25BL5HKZ.js";import"./chunk-ZPSQYJWN.js";import"./chunk-THBDF75G.js";import{C as ye}from"./chunk-RJ2UG3RJ.js";import"./chunk-AB3LHRRD.js";import"./chunk-CI2HCF2F.js";import"./chunk-GXYF7J3H.js";import"./chunk-JHTWTYPN.js";import"./chunk-TGFFJGSM.js";import"./chunk-FPZ453VA.js";import"./chunk-EL6WFV23.js";import{b as ve,c as De}from"./chunk-JSRFQSGR.js";import"./chunk-3EP7OHNH.js";import"./chunk-LWW7BOTF.js";import"./chunk-ERBHIP22.js";import"./chunk-LHPA4E6N.js";import"./chunk-3Y7FMX6W.js";import{ra as X,sa as H}from"./chunk-BBW6WW7Z.js";import{b as O}from"./chunk-WLEWPZ6N.js";import{p as he,t as W}from"./chunk-OFQRR3BE.js";import"./chunk-NWCZTZ2F.js";import{r as _e}from"./chunk-3BAKG5RY.js";import{Bc as x,Bd as k,Fc as fe,Gc as xe,Hc as Ce,Nb as w,Pc as s,Qb as se,Qc as C,Ra as q,Rb as A,Rc as V,Sc as Z,Xc as ee,Yc as te,Zc as ae,bd as z,dd as R,ec as h,ed as ge,gc as v,hc as me,jc as pe,kc as de,lc as f,ld as B,mc as m,md as ne,nc as p,nd as G,ob as ue,oc as g,pc as F,qc as E,qd as be,rc as ce,tb as r,u as J,ua as K,vd as y}from"./chunk-5U7LGHIW.js";import"./chunk-ALSDDZFP.js";import{j as u}from"./chunk-EKFLB6J2.js";var Re=(t,a)=>[t,a],je=(t,a,n)=>[t,a,n,".jpg",null,null,"md"],qe=()=>({height:"64px",width:"64px"}),Be=()=>({height:"12px",width:"80px"});function ze(t,a){if(t&1&&(m(0,"a",0),g(1,"img",2),B(2,"image"),m(3,"span",3),s(4),p(),m(5,"span",4),s(6),p()()),t&2){let n,o,e,i,l=x();f("routerLink",R(12,Re,l.routes.profile,(n=l.userData())==null?null:n.userName)),r(),f("src",be(2,4,ge(15,je,(o=l.userData())==null?null:o.id,l.imageTypeEnum.userAvatar,(o=l.userData())==null?null:o.hasPhoto)),ue),r(3),C((e=l.userData())==null?null:e.fullName),r(2),C(((i=l.userData())==null?null:i.userName)+"@")}}function $e(t,a){t&1&&(m(0,"div",1),g(1,"ngx-skeleton-loader",5),m(2,"div",6),g(3,"ngx-skeleton-loader",7),p(),m(4,"div",6),g(5,"ngx-skeleton-loader",8),p()()),t&2&&(r(),f("appearance","circle")("theme",z(4,qe)),r(2),f("theme",z(5,Be)),r(2),f("theme",z(6,Be)))}var Ue=(()=>{let a=class a extends M{constructor(){super();u(this,"userData",k());u(this,"imageTypeEnum",De);u(this,"routes",O)}_readyGetter(){return y(()=>!!this.userData())}};u(a,"\u0275fac",function(i){return new(i||a)}),u(a,"\u0275cmp",w({type:a,selectors:[["beh-avatar-compare-presenter"]],inputs:{userData:[1,"userData"]},features:[A],decls:2,vars:1,consts:[[1,"w-full","flex","flex-wrap","justify-center","items-center","px-4",3,"routerLink"],[1,"w-full","flex","flex-wrap","justify-center","items-center"],["alt","user-avatar",1,"w-16","h-16","md:h-[72px]","md:w-[72px]","rounded-full","object-cover","mb-4",3,"src"],[1,"w-full","font-medium","text-sm","text-gray-800","text-center","mb-2","break-all","line-clamp-1"],[1,"w-full","font-regular","text-xs","text-gray-400","text-center","mb-3"],[1,"mb-4",3,"appearance","theme"],[1,"w-full","flex","justify-center"],[1,"mb-2",3,"theme"],[1,"mb-3",3,"theme"]],template:function(i,l){i&1&&h(0,ze,7,19,"a",0)(1,$e,6,7,"div",1),i&2&&v(l.ready()?0:1)},dependencies:[W,H,X,ve],encapsulation:2}));let t=a;return t})();var Ve=()=>({height:"100%",width:"100%","border-radius":"12px"});function Ge(t,a){var n,o,e,i,l,d,c,D,b,P;if(t&1&&(m(0,"div",0)(1,"div",2)(2,"span",3),s(3),p(),m(4,"span",3),s(5),p(),m(6,"span",3),s(7),p(),m(8,"span",3),s(9),p(),m(10,"span",3),s(11),p(),m(12,"span",4),s(13),p()(),m(14,"div",5)(15,"span",6),s(16,"\u06A9\u0644 \u06A9\u062A\u0627\u0628\u200C\u0647\u0627"),p(),m(17,"span",6),s(18,"\u06A9\u062A\u0627\u0628\u200C\u0647\u0627\u06CC \u063A\u06CC\u0631\u0645\u0634\u062A\u0631\u06A9"),p(),m(19,"span",6),s(20,"\u0628\u0631\u06CC\u062F\u0647"),p(),m(21,"span",6),s(22,"\u06CC\u0627\u062F\u062F\u0627\u0634\u062A"),p(),m(23,"span",6),s(24,"\u0627\u0645\u062A\u06CC\u0627\u0632"),p(),m(25,"span",7),s(26,"\u0686\u0627\u0644\u0634 \u0645\u0648\u0641\u0642"),p()(),m(27,"div",8)(28,"span",9),s(29),p(),m(30,"span",9),s(31),p(),m(32,"span",9),s(33),p(),m(34,"span",9),s(35),p(),m(36,"span",9),s(37),p(),m(38,"span",10),s(39),p()()()),t&2){let T,U,j,I,_,N,L,Q,ie,re,oe,le,S=x();r(3),C((n=(T=S.baseStatsData())==null?null:T.totalBooksCount)!=null?n:0),r(2),C(((U=S.baseStatsData())==null?null:U.totalBooksCount)-((U=S.baseStatsData())==null?null:U.mutualBooksCount)),r(2),C((o=(j=S.baseStatsData())==null?null:j.quotesCount)!=null?o:0),r(2),C((e=(I=S.baseStatsData())==null?null:I.reviewsCount)!=null?e:0),r(2),C((i=(_=S.baseStatsData())==null?null:_.userScore)!=null?i:0),r(2),C((l=(N=S.baseStatsData())==null?null:N.succeededChallengesCount)!=null?l:0),r(16),C((d=(L=S.targetStatsData())==null?null:L.totalBooksCount)!=null?d:0),r(2),C(((Q=S.targetStatsData())==null?null:Q.totalBooksCount)-((Q=S.targetStatsData())==null?null:Q.mutualBooksCount)),r(2),C((c=(ie=S.targetStatsData())==null?null:ie.quotesCount)!=null?c:0),r(2),C((D=(re=S.targetStatsData())==null?null:re.reviewsCount)!=null?D:0),r(2),C((b=(oe=S.targetStatsData())==null?null:oe.userScore)!=null?b:0),r(2),C((P=(le=S.targetStatsData())==null?null:le.succeededChallengesCount)!=null?P:0)}}function Qe(t,a){t&1&&(m(0,"div",1),g(1,"ngx-skeleton-loader",11),p()),t&2&&(r(),f("theme",z(1,Ve)))}var Ie=(()=>{let a=class a extends M{constructor(){super(...arguments);u(this,"baseStatsData",k());u(this,"targetStatsData",k())}_readyGetter(){return y(()=>!!this.baseStatsData()&&!!this.targetStatsData())}};u(a,"\u0275fac",(()=>{let e;
3return function(l){return(e||(e=q(a)))(l||a)}})()),u(a,"\u0275cmp",w({type:a,selectors:[["beh-compare-table-presenter"]],inputs:{baseStatsData:[1,"baseStatsData"],targetStatsData:[1,"targetStatsData"]},features:[A],decls:2,vars:1,consts:[[1,"w-full","flex","flex-nowrap","justify-between","content-start","rounded-xl","shadow-[0px_1px_4px_rgba(0,0,0,0.16)]","dark:shadow-[0_2px_8px_rgba(31,41,55,0.6)]","py-3","px-4"],[1,"w-full","h-[300px]","flex","flex-nowrap","justify-between","content-start"],[1,"w-[33%]","flex","flex-col","justify-start","h-full","gap-4"],[1,"w-full","text-right","mb-4","!leading-5","text-sm","md:text-base","text-gray-800"],[1,"w-full","text-right","!leading-5","text-sm","md:text-base","text-gray-800"],[1,"w-[33%]","flex","flex-col","items-center","justify-start","h-full","gap-4"],[1,"w-full","!leading-5","mb-4","text-gray-500","text-xs","md:text-sm","text-center"],[1,"w-full","!leading-5","text-gray-500","text-xs","md:text-sm","text-center"],[1,"w-[33%]","flex","flex-col","items-end","justify-start","h-full","gap-4"],[1,"w-full","text-left","mb-4","!leading-5","text-sm","md:text-base","text-gray-800"],[1,"w-full","text-left","!leading-5","text-sm","md:text-base","text-gray-800"],[1,"w-full","h-full",3,"theme"]],template:function(i,l){i&1&&h(0,Ge,40,12,"div",0)(1,Qe,2,2,"div",1),i&2&&v(l.ready()?0:1)},dependencies:[H,X],encapsulation:2}));let t=a;return t})();var Me=(()=>{let a=class a{transform(o,e){var l;let i=(l=e==null?void 0:e.find(d=>d.value==o))==null?void 0:l.key;return i||null}};u(a,"\u0275fac",function(e){return new(e||a)}),u(a,"\u0275pipe",se({name:"enumTranslator",type:a,pure:!0}));let t=a;return t})();var Y=(t,a)=>[t,a];function Oe(t,a){if(t&1&&(g(0,"app-behkhaan-rating",4),m(1,"span",5),s(2,"\u0645\u0634\u0627\u0647\u062F\u0647\u0654 \u06CC\u0627\u062F\u062F\u0627\u0634\u062A"),p()),t&2){let n,o,e=x(2);f("size",2)("readonly",!0)("initialStars",(n=e.data())==null||n.baseUserData==null?null:n.baseUserData.rate),r(),f("routerLink",R(4,Y,e.routes.reviews,(o=e.data())==null||o.baseUserData==null?null:o.baseUserData.reviewId))}}function We(t,a){if(t&1&&(m(0,"span",3),s(1),B(2,"enumTranslator"),p()),t&2){let n,o=x(2);r(),C(G(2,1,(n=o.data())==null?null:n.baseUserData.bookState,o.bookStateList))}}function Xe(t,a){if(t&1&&h(0,Oe,3,7)(1,We,3,4,"span",3),t&2){let n,o=x();v(!((n=o.data())==null||n.baseUserData==null)&&n.baseUserData.rate||!((n=o.data())==null||n.baseUserData==null)&&n.baseUserData.hasReview?0:1)}}function He(t,a){if(t&1&&(g(0,"app-behkhaan-rating",4),m(1,"a",5),s(2,"\u0645\u0634\u0627\u0647\u062F\u0647\u0654 \u06CC\u0627\u062F\u062F\u0627\u0634\u062A"),p()),t&2){let n,o,e=x(2);f("size",2)("readonly",!0)("initialStars",(n=e.data())==null||n.baseUserData==null?null:n.baseUserData.rate),r(),f("routerLink",R(4,Y,e.routes.reviews,(o=e.data())==null||o.baseUserData==null?null:o.baseUserData.reviewId))}}function Ye(t,a){if(t&1&&(h(0,He,3,7),m(1,"span",3),s(2),B(3,"enumTranslator"),p()),t&2){let n,o,e=x();v(!((n=e.data())==null||n.baseUserData==null)&&n.baseUserData.rate||!((n=e.data())==null||n.baseUserData==null)&&n.baseUserData.hasReview?0:-1),r(2),C(G(3,2,(o=e.data())==null?null:o.baseUserData.bookState,e.bookStateList))}}function Je(t,a){if(t&1&&(g(0,"app-behkhaan-rating",4),m(1,"span",5),s(2,"\u0645\u0634\u0627\u0647\u062F\u0647\u0654 \u06CC\u0627\u062F\u062F\u0627\u0634\u062A"),p()),t&2){let n,o,e=x(2);f("size",2)("readonly",!0)("initialStars",(n=e.data())==null||n.targetUserData==null?null:n.targetUserData.rate),r(),f("routerLink",R(4,Y,e.routes.reviews,(o=e.data())==null||o.targetUserData==null?null:o.targetUserData.reviewId))}}function Ke(t,a){if(t&1&&(m(0,"span",3),s(1),B(2,"enumTranslator"),p()),t&2){let n,o=x(2);r(),C(G(2,1,(n=o.data())==null?null:n.targetUserData.bookState,o.bookStateList))}}function Ze(t,a){if(t&1&&h(0,Je,3,7)(1,Ke,3,4,"span",3),t&2){let n,o=x();v(!((n=o.data())==null||n.targetUserData==null)&&n.targetUserData.rate||!((n=o.data())==null||n.targetUserData==null)&&n.targetUserData.hasReview?0:1)}}function et(t,a){if(t&1&&(g(0,"app-behkhaan-rating",4),m(1,"span",5),s(2,"\u0645\u0634\u0627\u0647\u062F\u0647\u0654 \u06CC\u0627\u062F\u062F\u0627\u0634\u062A"),p()),t&2){let n,o,e=x(2);f("size",2)("readonly",!0)("initialStars",(n=e.data())==null||n.targetUserData==null?null:n.targetUserData.rate),r(),f("routerLink",R(4,Y,e.routes.reviews,(o=e.data())==null||o.targetUserData==null?null:o.targetUserData.reviewId))}}function tt(t,a){if(t&1&&(h(0,et,3,7),m(1,"span",3),s(2),B(3,"enumTranslator"),p()),t&2){let n,o,e=x();v(!((n=e.data())==null||n.targetUserData==null)&&n.targetUserData.rate||!((n=e.data())==null||n.targetUserData==null)&&n.targetUserData.hasReview?0:-1),r(2),C(G(3,2,(o=e.data())==null?null:o.targetUserData.bookState,e.bookStateList))}}var Pe=(()=>{let a=class a{constructor(){u(this,"data",k());u(this,"bookStateEnum",we);u(this,"bookStateList",ke);u(this,"routes",O)}};u(a,"\u0275fac",function(e){return new(e||a)}),u(a,"\u0275cmp",w({type:a,selectors:[["beh-compare-book-item"]],inputs:{data:[1,"data"]},decls:8,vars:5,consts:[[1,"w-full","flex","flex-nowrap","justify-between"],[1,"w-[33%]","flex","flex-wrap","justify-center","items-center","content-center"],[1,"w-[33%]",3,"_book","inCompareBook","loading"],[1,"text-gray-600","text-xs","md:text-sm","font-medium"],[1,"mb-2",3,"size","readonly","initialStars"],[1,"text-center","text-xs","md:text-sm","font-medium","text-green-500","mb-3","w-full","cursor-pointer",3,"routerLink"]],template:function(e,i){if(e&1&&(m(0,"div",0)(1,"div",1),h(2,Xe,2,1)(3,Ye,4,5),p(),g(4,"beh-vertical-book-card",2),m(5,"div",1),h(6,Ze,2,1)(7,tt,4,5),p()()),e&2){let l,d,c;r(2),v(((l=i.data())==null?null:l.baseUserData.bookState)===i.bookStateEnum.read?2:3),r(2),f("_book",(d=i.data())==null?null:d.book)("inCompareBook",!0)("loading",!1),r(2),v(((c=i.data())==null?null:c.targetUserData.bookState)===i.bookStateEnum.read?6:7)}},dependencies:[Ae,Ee,W,Me],encapsulation:2}));let t=a;return t})();
3function at(t,a){if(t&1&&(F(0,"p",1),s(1),E()),t&2){let n=x(2);r(),V("\u0634\u0645\u0627 \u0648 ",n.targetFullName()," \u0647\u06CC\u0686 \u06A9\u062A\u0627\u0628 \u0645\u0634\u062A\u0631\u06A9\u06CC \u0646\u062F\u0627\u0631\u06CC\u062F.")}}function nt(t,a){if(t&1&&(F(0,"p",1),s(1),E()),t&2){let n=x(2);r(),Z("\u0647\u0645\u0647\u0654 \u06A9\u062A\u0627\u0628\u200C\u0647\u0627\u06CC \u0634\u0645\u0627 \u0648 ",n.targetFullName()," \u0645\u0634\u062A\u0631\u06A9 \u0647\u0633\u062A\u0646\u062F. \u0633\u0644\u06CC\u0642\u0647\u0654 \u06A9\u062A\u0627\u0628\u200C\u062E\u0648\u0627\u0646\u06CC \u0634\u0645\u0627 \u0628\u0631 \u0627\u0633\u0627\u0633 \u0627\u0645\u062A\u06CC\u0627\u0632\u0647\u0627\u06CC\u06CC \u06A9\u0647 \u062F\u0627\u062F\u0647\u200C\u0627\u06CC\u062F ",n.similarityPercent()+"%"," \u0628\u0647 \u0647\u0645 \u0646\u0632\u062F\u06CC\u06A9 \u0627\u0633\u062A.")}}function it(t,a){if(t&1&&(F(0,"p",1),s(1," \u0634\u0645\u0627 \u0648 "),F(2,"span",2),s(3),E(),s(4),E()),t&2){let n=x(2);r(3),C(n.targetFullName()),r(),Z(" ",n.mutualCount()," \u06A9\u062A\u0627\u0628 \u0645\u0634\u062A\u0631\u06A9 \u062F\u0631 \u0642\u0641\u0633\u0647\u200C\u0647\u0627\u06CC \u062E\u0648\u062F \u062F\u0627\u0631\u06CC\u062F. \u0633\u0644\u06CC\u0642\u0647\u0654 \u06A9\u062A\u0627\u0628\u200C\u062E\u0648\u0627\u0646\u06CC \u0634\u0645\u0627 \u0628\u0631 \u0627\u0633\u0627\u0633 \u0627\u0645\u062A\u06CC\u0627\u0632\u0647\u0627\u06CC\u06CC \u06A9\u0647 \u062F\u0627\u062F\u0647\u200C\u0627\u06CC\u062F ",n.similarityPercent()+"%"," \u0628\u0647 \u0647\u0645 \u0646\u0632\u062F\u06CC\u06A9 \u0627\u0633\u062A. ")}}function rt(t,a){if(t&1&&(F(0,"div",0),h(1,at,2,1,"p",1)(2,nt,2,2,"p",1)(3,it,5,3,"p",1),E()),t&2){let n=x();r(),v(n.mutualCount()===0?1:n.mutualCount()===n.totalCount()?2:3)}}var Te=(()=>{let a=class a extends M{constructor(){super(...arguments);u(this,"libData",k());u(this,"compareData",k());u(this,"targetFullName",y(()=>{var e;return(e=this.compareData())==null?void 0:e.targetUser.fullName}));u(this,"mutualCount",y(()=>{var e;return(e=this.compareData())==null?void 0:e.baseUserStats.mutualBooksCount}));u(this,"totalCount",y(()=>{var e;return(e=this.compareData())==null?void 0:e.baseUserStats.totalBooksCount}));u(this,"similarityPercent",y(()=>{if(this.compareData()&&this.libData()){let e=this.createRatingDataSets();return this.cosineSimilarityPercent(e[0],e[1])}else return 0}))}_readyGetter(){return y(()=>!!this.libData()&&!!this.compareData())}createRatingDataSets(){var l;let e=[],i=[];return(l=this.libData())==null||l.forEach(d=>{let c=d.baseUserData.rate,D=d.targetUserData.rate;c&&D&&(e.push(c),i.push(D))}),[e,i]}cosineSimilarityPercent(e,i){let l=e.length;if(l===0)return 0;let d=4.5,c=0,D=0,b=0,P=0;for(let _=0;_<l;_++){let N=Math.abs(e[_]-i[_]),L=Math.max(0,1-N/d);P+=L,c+=L*e[_]*i[_],D+=L*e[_]*e[_],b+=L*i[_]*i[_]}let T=Math.sqrt(D)*Math.sqrt(b);if(T===0)return 0;let U=c/T,j=P/l,I=U*j*100;return Math.round(Math.max(0,Math.min(100,I)))}};u(a,"\u0275fac",(()=>{let e;return function(l){return(e||(e=q(a)))(l||a)}})()),u(a,"\u0275cmp",w({type:a,selectors:[["beh-compare-similarity-presenter"]],inputs:{libData:[1,"libData"],compareData:[1,"compareData"]},features:[A],decls:1,vars:1,consts:[[1,"w-full","flex","flex-wrap","justify-start","py-3","px-4","bg-[#F9F2E9]","dark:bg-yellow-700/5","text-[#A3702D]","dark:text-yellow-600","rounded-lg"],[1,"text-xs","text-justify","font-medium","leading-6"],["dir","ltr",1,"inline-block","text-xs","text-justify","font-medium","leading-6"]],template:function(i,l){i&1&&h(0,rt,4,1,"div",0),i&2&&v(l.ready()?0:-1)},encapsulation:2}));let t=a;return t})();var ot=["vennCanvas"],Ne=(()=>{let a=class a extends M{constructor(){super(...arguments);u(this,"canvasRef");u(this,"data",k());u(this,"ctx");u(this,"baseBookCount",y(()=>{var e,i;return(i=(e=this.data())==null?void 0:e.baseUserStats.totalBooksCount)!=null?i:0}));u(this,"targetBookCount",y(()=>{var e,i;return(i=(e=this.data())==null?void 0:e.targetUserStats.totalBooksCount)!=null?i:0}));u(this,"mutualBookCount",y(()=>{var e,i;return(i=(e=this.data())==null?void 0:e.targetUserStats.mutualBooksCount)!=null?i:0}))}ngAfterViewInit(){this.ctx=this.canvasRef.nativeElement.getContext("2d"),this.drawVennDiagram()}_readyGetter(){return y(()=>!!this.data())}drawVennDiagram(){let e=this.canvasRef.nativeElement,i=this.ctx;i.clearRect(0,0,e.width,e.height);let l=Math.max(this.baseBookCount(),this.targetBookCount(),1),d=70,c=d*M
3ath.sqrt(this.targetBookCount()/l),D=d*Math.sqrt(this.baseBookCount()/l),b=Math.min(this.baseBookCount(),this.targetBookCount()),P=this.mutualBookCount()/b,T=Math.abs(c-D),U=c+D,j=U-(U-T)*P,I=e.height/2,_=c,N=_+j;i.beginPath(),i.arc(_,I,c,0,Math.PI*2),i.fillStyle="#7CDEA9",i.globalAlpha=1,i.fill(),i.globalAlpha=1,i.beginPath(),i.arc(N,I,D,0,Math.PI*2),i.fillStyle="#FFD53E",i.globalAlpha=1,i.fill(),i.globalAlpha=1,this.mutualBookCount()>0&&this.drawIntersection(_,I,c,N,I,D)}drawIntersection(e,i,l,d,c,D){let b=this.ctx;b.save(),b.beginPath(),b.arc(e,i,l,0,Math.PI*2),b.clip(),b.beginPath(),b.arc(d,c,D,0,Math.PI*2),b.fillStyle="#F5E8BB",b.fill(),b.restore()}};u(a,"\u0275fac",(()=>{let e;return function(l){return(e||(e=q(a)))(l||a)}})()),u(a,"\u0275cmp",w({type:a,selectors:[["beh-compare-chart-presenter"]],viewQuery:function(i,l){if(i&1&&fe(ot,7),i&2){let d;xe(d=Ce())&&(l.canvasRef=d.first)}},inputs:{data:[1,"data"]},features:[A],decls:10,vars:2,consts:[["vennCanvas",""],[1,"w-full","flex","flex-nowrap","justify-between"],[1,"w-[49%]","flex","flex-wrap","content-between","justify-start"],[1,"w-full","text-gray-500","text-[10px]","lg:text-xs","before:w-[10px]","before:h-[10px]","before:bg-[#FFD53E]","before:rounded-full","before:inline-block","before:relative","before:top-[2px]","before:ml-1"],[1,"w-full","text-gray-500","text-[10px]","lg:text-xs","before:w-[10px]","before:h-[10px]","before:bg-[#7CDEA9]","before:rounded-full","before:inline-block","before:relative","before:top-[2px]","before:ml-1"],[1,"w-full","text-gray-500","text-[10px]","lg:text-xs","before:w-[10px]","before:h-[10px]","before:bg-[#F5E8BB]","before:rounded-full","before:inline-block","before:relative","before:top-[2px]","before:ml-1"],[1,"w-[180px]","lg:w-[300px]"]],template:function(i,l){if(i&1&&(F(0,"div",1)(1,"div",2)(2,"p",3),s(3),E(),F(4,"p",4),s(5),E(),F(6,"p",5),s(7," \u06A9\u062A\u0627\u0628\u200C\u0647\u0627\u06CC \u0645\u0634\u062A\u0631\u06A9 "),E()(),ce(8,"canvas",6,0),E()),i&2){let d,c;r(3),V(" \u06A9\u062A\u0627\u0628\u200C\u0647\u0627\u06CC ",(d=l.data())==null?null:d.baseUser.fullName," "),r(2),V(" \u06A9\u062A\u0627\u0628\u200C\u0647\u0627\u06CC ",(c=l.data())==null?null:c.targetUser.fullName," ")}},encapsulation:2}));let t=a;return t})();function lt(t,a){if(t&1&&g(0,"beh-compare-chart-presenter",6),t&2){x();let n=ae(0);f("data",n)}}function ut(t,a){if(t&1&&g(0,"beh-compare-book-item",10),t&2){let n=a.$implicit;f("data",n)}}function st(t,a){if(t&1&&(m(0,"div",8)(1,"span",9),s(2,"\u06A9\u062A\u0627\u0628\u200C\u0647\u0627\u06CC \u0645\u0634\u062A\u0631\u06A9"),p(),pe(3,ut,1,1,"beh-compare-book-item",10,me),p()),t&2){x();let n=ae(2);r(3),de(n)}}var la=(()=>{let a=class a extends ye{constructor(){super();u(this,"headerConfig",{title:"\u0645\u0642\u0627\u06CC\u0633\u0647"});u(this,"shelvesAggService",K(Se));u(this,"activatedRoute",K(he));u(this,"userCompareData$");u(this,"libCompareData$")}ngOnInit(){this.activatedRoute.params.subscribe(e=>{this.userCompareData$=this.shelvesAggService.compareUser(e.id).pipe(J(i=>i.result)),this.libCompareData$=this.shelvesAggService.getMutualUserLib(e.id).pipe(J(i=>i.result.items))})}};u(a,"\u0275fac",function(i){return new(i||a)}),u(a,"\u0275cmp",w({type:a,selectors:[["beh-user-comparison-container"]],features:[A],decls:14,vars:15,consts:[[1,"w-full","h-full","flex","flex-wrap","justify-center","content-start","overflow-auto","pb-4"],[1,"sticky","top-0","z-30","bg-white","dark:bg-gray-900","shadow-sm",3,"_Config"],[1,"w-full","flex","flex-nowrap","justify-between","items-center","pt-6","mb-6"],[1,"w-[49%]",3,"userData"],[1,"w-[1px]","h-full","bg-gray-100","dark:bg-gray-600"],[1,"w-full","mx-4","mb-8",3,"baseStatsData","targetStatsData"],[1,"w-full","mx-4","mb-6",3,"data"],[1,"w-full","mx-4","mb-6",3,"libData","compareData"],[1,"w-full","flex","flex-wrap","justify-start","px-4"],[1,"w-full","text-gray-800","font-medium","text-sm","mb-5"],[1,"w-full","border-b","p-4","md:pt-6","border-b-gray-100","dark:border-b-gray-700","last:border-0",3,"data"]],template:function(i,l){if(i&1&&(ee(0),B(1,"async"),ee(2),B(3,"async"),m(4,"section",0),g(5,"app-header",1),m(6,"div",2),g(7,"beh-avatar-compare-presenter",3)(8,"div",4)(9,"beh-avatar-compare-presenter",3),p(),g(10,"beh-compare-table-presenter",5),h(11,lt,1,1,"beh-compare-chart-presenter",6),g(12,"beh-compare-similarity-presenter",7),h(13,st,5,0,"div",8),p()),i&2){let d=te(ne(1,9,l.userCompareData$));r(2);let c=te(ne(3,12,l.libCompareData$));r(3),f("_Config",l.headerConfig),r(2),f("userData",d==null?null:d.baseUser),r(2),f("userData",d==null?null:d.targetUser),r(),f("baseStatsData",d==null?null:d.baseUserStats)("targetStatsData",d==null?null:d.targetUserStats),r(),v(d?11:-1),r(),f("libData",c)("compareData",d),r(),v(c&&c.length>0?13:-1)}},dependencies:[Fe,Ue,Ie,Pe,Te,Ne,_e],encapsulation:2}));let t=a;return t})();export{la as UserComparisonContainer}; 4 5//# debugId=f5e1c461-7f2f-561a-bb30-51df8bd5b2c1
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.