PageSourceSearch

https://wx.zsxq.com/main-WOKYBQKN.js

js zsxq.com collected 2026-10-02 04:40:41 UTC 1,490,088 bytes, 192 lines download raw bytes

1import{a as Di}from"./chunk-XKCCK4RC.js";import{a as da}from"./chunk-ZGYS4DJY.js";import{a as gd,b as ud}from"./chunk-LR7ZSGHA.js";import{$ as xt,A as sn,Aa as id,B as q,Bb as yd,C as Te,Ca as Oo,D as yn,E as kn,Fa as od,Ga as Jt,H as Sn,Ha as rd,Ia as ve,Ja as yo,Ka as ad,La as ko,Ma as $e,N as ki,Oa as sd,P as pa,Pa as fa,Qa as cd,R as Ze,S as Up,Sa as Ti,T as qp,U as Rt,V as Oe,Va as Ei,W as Ae,Wa as So,X as Ye,Y as ga,Z as Qp,Za as Ca,_ as ze,_a as pd,a as Ie,aa as ua,ab as dd,b as Nn,ba as Wt,bb as To,c as Tp,ca as Wp,cb as md,d as xo,da as Xp,db as xa,e as Ep,ea as ht,eb as hd,f as rn,fa as Qe,fb as _d,g as sc,gb as va,h as cc,ha as ma,hb as fd,i as eo,ia as Jp,ib as Cd,j as Yr,jb as xd,k as pr,kb as vd,l as zn,la as Yp,lb as ba,m as uc,ma as kt,mb as bd,n as sa,na as Si,nb as et,oa as ha,ob as Yt,p as ca,pa as Kp,pb as Pa,qa as Zp,qb as Eo,r as mc,ra as Xt,s as hc,sa as ed,sb as Pd,t as $p,ta as bo,tb as Md,u as la,ua as td,ub as Od,va as St,vb as wd,w as ce,wa as _a,x as Hp,xa as Po,y as oe,ya as Mo,z as vo,za as nd}from"./chunk-REBHETRF.js";import{a as wo}from"./chunk-7HCBSYEK.js";import{a as ld}from"./chunk-RRGQRS7Q.js";import{$ as Be,$a as Hr,$d as yi,Aa as nn,Ab as li,Ac as Kr,Ad as ne,B as Ct,Ba as pp,Bb as mp,Bd as Lp,C as ho,Ca as F,Cb as ot,Cc as Fp,Da as it,Db as Qt,Dc as lc,Dd as Oi,E as tr,Ea as Bt,Eb as R,Ed as Bp,F as nr,Fb as qe,Fd as Np,Gb as _n,Ha as qt,Hb as Xn,I as ap,Ib as $,Ic as pc,Id as zp,J as Qn,Ja as cr,Jb as Z,Jc as dc,K as bi,Ka as si,Kb as Pe,Kd as Gp,L as Ht,Lb as hp,Ld as jp,M as ir,Ma as h,Mb as lr,Md as gc,Na as _,Nb as rc,O as Le,Oa as hn,Ob as ac,Od as oa,P as Zs,Pa as Y,Pb as _p,Q as X,Qa as B,Qb as fp,R as nt,Ra as N,Rb as qr,S as Ut,Sa as C,Sb as on,Sc as Fe,T as re,Ta as s,Tb as pi,Tc as Ap,U as Q,Ua as c,Ub as Cp,Ud as ra,V as _o,Va as M,Vb as Qr,Vc as ge,W as b,Wa as st,X as P,Xa as yt,Xb as xp,Xc as fn,Xd as aa,Y as or,Ya as ci,Yb as K,Yd as le,Z as rr,Za as ic,Zb as De,Zd as wi,_ as Vt,_a as oc,_b as vp,_d as ke,a as qn,ab as y,ae as ue,ba as H,bb as Ur,bc as bp,be as lt,c as Yi,ca as dt,cb as f,cc as Zi,ce as dr,d as U,da as mn,db as Ln,dc as Co,de as W,ea as ec,eb as d,ed as an,ee as j,f as jr,fa as It,fb as Zt,fc as Pp,fd as Vp,ga as tc,gb as Nt,gc as Mp,gd as Mi,h as Js,ha as Re,hc as Wr,hd as Zr,ia as nc,ib as _e,ic as Op,j as Kt,ja as $r,jb as ee,jd as wn,ka as ar,kb as te,kc as wp,l as Ys,la as sp,lb as dp,lc as yp,m as er,mb as gp,mc as kp,md as mt,nb as ct,nc as Sp,nd as ea,o as Dt,oa as sr,ob as Bn,oc as Xr,od as Yn,p as vi,pa as se,pb as zt,pc as Jn,q as ip,qa as cp,qc as Jr,r as op,ra as lp,rc as Dp,sa as wt,sb as g,sc as Ip,ta as l,tb as A,tc as ie,td as Rp,u as At,ua as Pi,ub as V,ud as ta,v as rp,va as fo,vb as Gt,vd as di,w as uo,wa as Wn,wb as up,x as ut,xa as bn,xb as Pn,xd as na,y as mo,ya as Ki,yb as Mn,yd as ia,z as Ks,za as O,zb as On,zd as gi}from"./chunk-KILRP42Q.js";import"./chunk-D5RP56ZG.js";import{a as Ue,b as Ot,d as np,e as Ci,g as xi,h as u,i as ye}from"./chunk-FQRK5E2F.js";var gm=Ci((Er,ws)=>{(function(o,n){"use strict";var i="0.7.41",e="",t="?",r="function",a="undefined",p="object",m="string",v="major",x="model",w="name",k="type",S="vendor",E="version",I="architecture",T="console",D="mobile",L="tablet",J="smarttv",G="wearable",pe="embedded",Ce=500,Ee="Amazon",Xe="Apple",Ke="ASUS",rt="BlackBerry",vn="Browser",dn="Chrome",ri="Edge",Wi="Firefox",Xi="Google",ae="Honor",de="Huawei",me="Lenovo",Se="LG",pt="Microsoft",tn="Motorola",Lt="Nvidia",Rn="OnePlus",Je="Opera",lo="OPPO",Ji="Samsung",Et="Sharp",gn="Sony",$t="Xiaomi",fi="Zebra",po="Facebook",Xl="Chromium OS",Jl="Mac OS",Yl=" Browser",v_=function(Ve,je){var we={};for(var at in Ve)je[at]&&je[at].length%2===0?we[at]=je[at].concat(Ve[at]):we[at]=Ve[at];return we;},zr=function(Ve){for(var je={},we=0;we<Ve.length;we++)je[Ve[we].toUpperCase()]=Ve[we];return je;},Kl=function(Ve,je){return typeof Ve===m?Yo(je).indexOf(Yo(Ve))!==-1:!1;},Yo=function(Ve){return Ve.toLowerCase();},b_=function(Ve){return typeof Ve===m?Ve.replace(/[^\d\.]/g,e).split(".")[0]:n;},Ws=function(Ve,je){if(typeof Ve===m)return Ve=Ve.replace(/^\s\s*/,e),typeof je===a?Ve:Ve.substring(0,Ce);},Ko=function(Ve,je){for(var we=0,at,ai,Hn,He,be,Un;we<je.length&&!be;){var Xs=je[we],tp=je[we+1];for(at=ai=0;at<Xs.length&&!be&&Xs[at];)if(be=Xs[at++].exec(Ve),be)for(Hn=0;Hn<tp.length;Hn++)Un=be[++ai],He=tp[Hn],typeof He===p&&He.length>0?He.length===2?typeof He[1]==r?this[He[0]]=He[1].call(this,Un):this[He[0]]=He[1]:He.length===3?typeof He[1]===r&&!(He[1].exec&&He[1].test)?this[He[0]]=Un?He[1].call(this,Un,He[2]):n:this[He[0]]=Un?Un.replace(He[1],He[2]):n:He.length===4&&(this[He[0]]=Un?He[3].call(this,Un.replace(He[1],He[2])):n):this[He]=Un||n;we+=2;}},Zo=function(Ve,je){for(var we in je)if(typeof je[we]===p&&je[we].length>0){for(var at=0;at<je[we].length;at++)if(Kl(je[we][at],Ve))return we===t?n:we;}else if(Kl(je[we],Ve))return we===t?n:we;return je.hasOwnProperty("*")?je["*"]:Ve;},P_={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Zl={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ep={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[E,[w,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[E,[w,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[w,E],[/opios[\/ ]+([\w\.]+)/i],[E,[w,Je+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[E,[w,Je+" GX"]],[/\bopr\/([\w\.]+)/i],[E,[w,Je]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[E,[w,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[E,[w,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[w,E],[/quark(?:pc)?\/([-\w\.]+)/i],[E,[w,"Quark"]],[/\bddg\/([\w\.]+)/i],[E,[w,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[E,[w,"UC"+vn]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[E,[w,"WeChat"]],[/konqueror\/([\w\.]+)/i],[E,[w,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[E,[w,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[E,[w,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[E,[w,"Smart Lenovo "+vn]],[/(avast|avg)\/([\w\.]+)/i],[[w,/(.+)/,"$1 Secure "+vn],E],[/\bfocus\/([\w\.]+)/i],[E,[w,Wi+" Focus"]],[/\bopt\/([\w\.]+)/i],[E,[w,Je+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[E,[w,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[E,[w,"Dolphin"]],[/coast\/([\w\.]+)/i],[E,[w,Je+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[E,[w,"MIUI"+Yl]],[/fxios\/([\w\.-]+)/i],[E,[w,Wi]],[/\bqihoobrowser\/?([\w\.]*)/i],[E,[w,"360"]],[/\b(qq)\/([\w\.]+)/i],[[w,/(.+)/,"$1Browser"],E],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[w,/(.+)/,"$1"+Yl],E],[/samsungbrowser\/([\w\.]+)/i],[E,[w,Ji+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[E,[w,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[w,"Sogou Mobile"],E],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[w,E],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[w],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[E,w],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[w,po],E],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[w,E],[/\bgsa\/([\w\.]+) .*safari\//i],[E,[w,"GSA"]],[/musical_ly(?:.
vendor: 8,402 bytes, line 1
1+app_?version\/|_)([\w\.]+)/i],[E,[w,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[E,[w,dn+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[w,dn+" WebView"],E],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[E,[w,"Android "+vn]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[w,E],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[E,[w,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[E,w],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[w,[E,Zo,P_]],[/(webkit|khtml)\/([\w\.]+)/i],[w,E],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[w,"Netscape"],E],[/(wolvic|librewolf)\/([\w\.]+)/i],[w,E],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[E,[w,Wi+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[w,[E,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[w,[E,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[I,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[I,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[I,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[I,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[I,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[I,/ower/,e,Yo]],[/ sun4\w[;\)]/i],[[I,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[I,Yo]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[x,[S,Ji],[k,L]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[x,[S,Ji],[k,D]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[x,[S,Xe],[k,D]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[x,[S,Xe],[k,L]],[/(macintosh);/i],[x,[S,Xe]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[x,[S,Et],[k,D]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[x,[S,ae],[k,L]],[/honor([-\w ]+)[;\)]/i],[x,[S,ae],[k,D]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[x,[S,de],[k,L]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[x,[S,de],[k,D]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[x,/_/g," "],[S,$t],[k,L]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[x,/_/g," "],[S,$t],[k,D]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[x,[S,lo],[k,D]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[x,[S,Zo,{OnePlus:["304","403","203"],"*":lo}],[k,L]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[x,[S,"Vivo"],[k,D]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[x,[S,"Realme"],[k,D]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[x,[S,tn],[k,D]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[x,[S,tn],[k,L]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[x,[S,Se],[k,L]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[x,[S,Se],[k,D]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[x,[S,me],[k,L]],[/(nokia) (t[12][01])/i],[S,x,[k,L]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[x,/_/g," "],[k,D],[S,"Nokia"]],[/(pixel (c|tablet))\b/i],[x,[S,Xi],[k,L]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[x,[S,Xi],[k,D]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[x,[S,gn],[k,D]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[x,"Xperia Tablet"],[S,gn],[k,L]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[x,[S,Rn],[k,D]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[x,[S,Ee],[k,L]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[x,/(.+)/g,"Fire Phone $1"],[S,Ee],[k,D]],[/(playbook);[-\w\),; ]+(rim)/i],[x,S,[k,L]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[x,[S,rt],[k,D]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[x,[S,Ke],[k,L]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[x,[S,Ke],[k,D]],[/(nexus 9)/i],[x,[S,"HTC"],[k,L]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[S,[x,/_/g," "],[k,D]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[x,[S,"TCL"],[k,L]],[/(itel) ((\w+))/i],[[S,Yo],x,[k,Zo,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[x,[S,"Acer"],[k,L]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[x,[S,"Meizu"],[k,D]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[x,[S,"Ulefone"],[k,D]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[x,[S,"Energizer"],[k,D]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[x,[S,"Cat"],[k,D]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[x,[S,"Smartfren"],[k,D]],[/droid.+; (a(?:015|06[35]|142p?))/i],[x,[S,"Nothing"],[k,D]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[x,[S,"Archos"],[k,L]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[x,[S,"Archos"],[k,D]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[S,x,[k,L]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[S,x,[k,D]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[S,x,[k,L]],[/(surface duo)/i],[x,[S,pt],[k,L]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[x,[S,"Fairphone"],[k,D]],[/(u304aa)/i],[x,[S,"AT&T"],[k,D]],[/\bsie-(\w*)/i],[x,[S,"Siemens"],[k,D]],[/\b(rct\w+) b/i],[x,[S,"RCA"],[k,L]],[/\b(venue[\d ]{2,7}) b/i],[x,[S,"Dell"],[k,L]],[/\b(q(?:mv|ta)\w+) b/i],[x,[S,"Verizon"],[k,L]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[x,[S,"Barnes & Noble"],[k,L]],[/\b(tm\d{3}\w+) b/i],[x,[S,"NuVision"],[k,L]],[/\b(k88) b/i],[x,[S,"ZTE"],[k,L]],[/\b(nx\d{3}j) b/i],[x,[S,"ZTE"],[k,D]],[/\b(gen\d{3}) b.+49h/i],[x,[S,"Swiss"],[k,D]],[/\b(zur\d{3}) b/i],[x,[S,"Swiss"],[k,L]],[/\b((zeki)?tb.*\b) b/i],[x,[S,"Zeki"],[k,L]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[S,"Dragon Touch"],x,[k,L]],[/\b(ns-?\w{0,9}) b/i],[x,[S,"Insignia"],[k,L]],[/\b((nxa|next)-?\w{0,9}) b/i],[x,[S,"NextBook"],[k,L]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[S,"Voice"],x,[k,D]],[/\b(lvtel\-)?(v1[12]) b/i],[[S,"LvTel"],x,[k,D]],[/\b(ph-1) /i],[x,[S,"Essential"],[k,D]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[x,[S,"Envizen"],[k,L]],[/\b(trio[-\w\. ]+) b/i],[x,[S,"MachSpeed"],[k,L]],[/\btu_(1491) b/i],[x,[S,"Rotor"],[k,L]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[x,[
1S,Lt],[k,L]],[/(sprint) (\w+)/i],[S,x,[k,D]],[/(kin\.[onetw]{3})/i],[[x,/\./g," "],[S,pt],[k,D]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[x,[S,fi],[k,L]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[x,[S,fi],[k,D]],[/smart-tv.+(samsung)/i],[S,[k,J]],[/hbbtv.+maple;(\d+)/i],[[x,/^/,"SmartTV"],[S,Ji],[k,J]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[S,Se],[k,J]],[/(apple) ?tv/i],[S,[x,Xe+" TV"],[k,J]],[/crkey/i],[[x,dn+"cast"],[S,Xi],[k,J]],[/droid.+aft(\w+)( bui|\))/i],[x,[S,Ee],[k,J]],[/(shield \w+ tv)/i],[x,[S,Lt],[k,J]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[x,[S,Et],[k,J]],[/(bravia[\w ]+)( bui|\))/i],[x,[S,gn],[k,J]],[/(mi(tv|box)-?\w+) bui/i],[x,[S,$t],[k,J]],[/Hbbtv.*(technisat) (.*);/i],[S,x,[k,J]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[S,Ws],[x,Ws],[k,J]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[x,[k,J]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[k,J]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[S,x,[k,T]],[/droid.+; (shield)( bui|\))/i],[x,[S,Lt],[k,T]],[/(playstation \w+)/i],[x,[S,gn],[k,T]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[x,[S,pt],[k,T]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[x,[S,Ji],[k,G]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[S,x,[k,G]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[x,[S,lo],[k,G]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[x,[S,Xe],[k,G]],[/(opwwe\d{3})/i],[x,[S,Rn],[k,G]],[/(moto 360)/i],[x,[S,tn],[k,G]],[/(smartwatch 3)/i],[x,[S,gn],[k,G]],[/(g watch r)/i],[x,[S,Se],[k,G]],[/droid.+; (wt63?0{2,3})\)/i],[x,[S,fi],[k,G]],[/droid.+; (glass) \d/i],[x,[S,Xi],[k,G]],[/(pico) (4|neo3(?: link|pro)?)/i],[S,x,[k,G]],[/; (quest( \d| pro)?)/i],[x,[S,po],[k,G]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[S,[k,pe]],[/(aeobc)\b/i],[x,[S,Ee],[k,pe]],[/(homepod).+mac os/i],[x,[S,Xe],[k,pe]],[/windows iot/i],[[k,pe]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[x,[k,D]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[x,[k,L]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[k,L]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[k,D]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[x,[S,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[E,[w,ri+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[w,E],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[E,[w,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[w,E],[/ladybird\//i],[[w,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[E,w]],os:[[/microsoft (windows) (vista|xp)/i],[w,E],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[w,[E,Zo,Zl]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[E,Zo,Zl],[w,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[E,/_/g,"."],[w,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[w,Jl],[E,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[E,w],[/(ubuntu) ([\w\.]+) like android/i],[[w,/(.+)/,"$1 Touch"],E],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[w,E],[/\(bb(10);/i],[E,[w,rt]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[E,[w,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[E,[w,Wi+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[E,[w,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[E,[w,"watchOS"]],[/crkey\/([\d\.]+)/i],[E,[w,dn+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[w,Xl],E],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[w,E],[/(sunos) ?([\w\.\d]*)/i],[[w,"Solaris"],E],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[w,E]]},un=function(Ve,je){if(typeof Ve===p&&(je=Ve,Ve=n),!(this instanceof un))return new un(Ve,je).getResult();var we=typeof o!==a&&o.navigator?o.navigator:n,at=Ve||(we&&we.userAgent?we.userAgent:e),ai=we&&we.userAgentData?we.userAgentData:n,Hn=je?v_(ep,je):ep,He=we&&we.userAgent==at;return this.getBrowser=function(){var be={};return be[w]=n,be[E]=n,Ko.call(be,at,Hn.browser),be[v]=b_(be[E]),He&&we&&we.brave&&typeof we.brave.isBrave==r&&(be[w]="Brave"),be;},this.getCPU=function(){var be={};return be[I]=n,Ko.call(be,at,Hn.cpu),be;},this.getDevice=function(){var be={};return be[S]=n,be[x]=n,be[k]=n,Ko.call(be,at,Hn.device),He&&!be[k]&&ai&&ai.mobile&&(be[k]=D),He&&be[x]=="Macintosh"&&we&&typeof we.standalone!==a&&we.maxTouchPoints&&we.maxTouchPoints>2&&(be[x]="iPad",be[k]=L),be;},this.getEngine=function(){var be={};return be[w]=n,be[E]=n,Ko.call(be,at,Hn.engine),be;},this.getOS=function(){var be={};return be[w]=n,be[E]=n,Ko.call(be,at,Hn.os),He&&!be[w]&&ai&&ai.platform&&ai.platform!="Unknown"&&(be[w]=ai.platform.replace(/chrome os/i,Xl).replace(/macos/i,Jl)),be;},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()};},this.getUA=function(){return at;},this.setUA=function(be){return at=typeof be===m&&be.length>Ce?Ws(be,Ce):be,this;},this.setUA(at),this;};un.VERSION=i,un.BROWSER=zr([w,E,v]),un.CPU=zr([I]),un.DEVICE=zr([x,S,k,T,D,J,L,G,pe]),un.ENGINE=un.OS=zr([w,E]),typeof Er!==a?(typeof ws!==a&&ws.exports&&(Er=ws.exports=un),Er.UAParser=un):typeof define===r&&define.amd?define(function(){return un;}):typeof o!==a&&(o.UAParser=un);var go=typeof o!==a&&(o.jQuery||o.Zepto);if(go&&!go.ua){var Gr=new un();go.ua=Gr.getResult(),go.ua.get=function(){return Gr.getUA();},go.ua.set=function(Ve){Gr.setUA(Ve);var je=Gr.getResult();for(var we in je)go.ua[we]=je[we];};}})(typeof window=="object"?window:Er);});var Ql=Ci((a_,zs)=>{(function(o,n){typeof define=="function"&&define.amd?define(n):typeof zs=="object"&&zs.exports?zs.exports=n():o.EvEmitter=n();})(typeof window<"u"?window:a_,function(){"use strict";function o(){}var n=o.prototype;return n.on=function(i,e){if(!(!i||!e)){var t=this._events=this._events||{},r=t[i]=t[i]||[];return r.indexOf(e)==-1&&r.push(e),this;}},n.once=function(i,e){if(!(!i||!e)){this.on(i,e);var t=this._onceEvents=this._onceEvents||{},r=t[i]=t[i]||{};return r[e]=!0,this;}},n.off=function(i,e){var t=this._events&&this._events[i];if(!(!t||!t.length)){var r=t.indexOf(e);return r!=-1&&t.splice(r,1),this;}},n.emitEvent=function(i,e){var t=this._events&&this._events[i];if(!(!t||!t.length)){t=t.slice(0),e=e||[];for(var r=this._onceEvents&&this._onceEvents[i],a=0;a<t.length;a++){var p=t[a],m=r&&r[p];m&&(this.off(i,p),delete r[p]),p.apply(this,e);}return this;}},n.allOff=function(){delete this._events,delete this._onceEvents;},o;});});var js=Ci((o$,Gs)=>{(function(o,n){typeof define=="function"&&define.amd?define(n):typeof Gs=="object"&&Gs.exports?Gs.exports=n():o.getSize=n();})(window,function(){"use strict";function n(k){var S=parseFloat(k),E=k.indexOf("%")==-1&&!isNaN(S);return E&&S;}function i(){}var e=typeof console>"u"?i:function(k){console.error(k);},t=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=t.length;function a(){for(var k={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},S=0;S<r;S++){var E=t[S];k[E]=0;}return k;}function p(k){var S=getComputedStyle(k);return S||e("Style returned "+S+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),S;}var m=!1,v;function x(){if(!m){m=!0;var k=document.createElement("div");k.style.width="200px",k.style.padding="1px 2px 3px 4px",k.style.borderStyle="solid",k.style.borderWidth="1px 2px 3px 4px",k.style.boxSizing="border-box";var S=document.body||document.documentElement;S.appendChild(k);var E=p(k);v=Math.round(n(E.width))==200,w.isBoxSizeOuter=v,S.removeChild(k);}}function w(k){if(x(),typeof k=="string"&&(k=document.querySelector(k)),!(!k||typeof k!="object"||!k.nodeType)){var S=p(k);if(S.display=="none")return a();var E={};E.width=k.offsetWidth,E.height=k.offsetHeight;for(var I=E.isBorderBox=S.boxSizing=="border-box",T=0;T<r;T++){var D=t[T],L=S[D],J=parseFloat(L);E[D]=isNaN(J)?0:J;}var G=E.paddingLeft+E.paddingRight,pe=E.paddingTop+E.paddingBottom,Ce=E.marginLeft+E.marginRight,Ee=E.marginTop+E.marginBottom,Xe=E.borderLeftWidth+E.borderRightWidth,Ke=E.borderTopWidth+E.borderBottomWidth,rt=I&&v,vn=n(S.width);vn!==!1&&(E.width=vn+(rt?0:G+Xe));var dn=n(S.height);return dn!==!1&&(E.height=dn+(rt?0:pe+Ke)),E.innerWidth=E.width-(G+Xe),E.innerHeight=E.height-(pe+Ke),E.outerWidth=E.width+Ce,E.outerHeight=E.height+Ee,E;}}return w;});});var s_=Ci((r$,$s)=>{(function(o,n){"use strict";typeof define=="function"&&define.amd?define(n):typeof $s=="object"&&$s.exports?$s.exports=n():o.matchesSelector=n();})(window,function(){"use strict";var n=function(){var i=window.Element.prototype;if(i.matches)return"matches";if(i.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],t=0;t<e.length;t++){var r=e[t],a=r+"MatchesSelector";if(i[a])return a;}}();return function(e,t){return e[n](t);};});});var c_=Ci((a$,Hs)=>{(function(o,n){typeof define=="function"&&define.amd?define(["desandro-matches-selector/matches-selector"],function(i){return n(o,i);}):typeof Hs=="object"&&Hs.exports?Hs.exports=n(o,s_()):o.fizzyUIUtils=n(o,o.matchesSelector);})(window,function(n,i){"use strict";var e={};e.extend=function(a,p){for(var m in p)a[m]=p[m];return a;},e.modulo=function(a,p){return(a%p+p)%p;};var t=Array.prototype.slice;
1e.makeArray=function(a){if(Array.isArray(a))return a;if(a==null)return[];var p=typeof a=="object"&&typeof a.length=="number";return p?t.call(a):[a];},e.removeFrom=function(a,p){var m=a.indexOf(p);m!=-1&&a.splice(m,1);},e.getParent=function(a,p){for(;a.parentNode&&a!=document.body;)if(a=a.parentNode,i(a,p))return a;},e.getQueryElement=function(a){return typeof a=="string"?document.querySelector(a):a;},e.handleEvent=function(a){var p="on"+a.type;this[p]&&this[p](a);},e.filterFindElements=function(a,p){a=e.makeArray(a);var m=[];return a.forEach(function(v){if(v instanceof HTMLElement){if(!p){m.push(v);return;}i(v,p)&&m.push(v);for(var x=v.querySelectorAll(p),w=0;w<x.length;w++)m.push(x[w]);}}),m;},e.debounceMethod=function(a,p,m){m=m||100;var v=a.prototype[p],x=p+"Timeout";a.prototype[p]=function(){var w=this[x];clearTimeout(w);var k=arguments,S=this;this[x]=setTimeout(function(){v.apply(S,k),delete S[x];},m);};},e.docReady=function(a){var p=document.readyState;p=="complete"||p=="interactive"?setTimeout(a):document.addEventListener("DOMContentLoaded",a);},e.toDashed=function(a){return a.replace(/(.)([A-Z])/g,function(p,m,v){return m+"-"+v;}).toLowerCase();};var r=n.console;return e.htmlInit=function(a,p){e.docReady(function(){var m=e.toDashed(p),v="data-"+m,x=document.querySelectorAll("["+v+"]"),w=document.querySelectorAll(".js-"+m),k=e.makeArray(x).concat(e.makeArray(w)),S=v+"-options",E=n.jQuery;k.forEach(function(I){var T=I.getAttribute(v)||I.getAttribute(S),D;try{D=T&&JSON.parse(T);}catch(J){r&&r.error("Error parsing "+v+" on "+I.className+": "+J);return;}var L=new a(I,D);E&&E.data(I,p,L);});});},e;});});var l_=Ci((s$,Us)=>{(function(o,n){typeof define=="function"&&define.amd?define(["ev-emitter/ev-emitter","get-size/get-size"],n):typeof Us=="object"&&Us.exports?Us.exports=n(Ql(),js()):(o.Outlayer={},o.Outlayer.Item=n(o.EvEmitter,o.getSize));})(window,function(n,i){"use strict";function e(I){for(var T in I)return!1;return T=null,!0;}var t=document.documentElement.style,r=typeof t.transition=="str
1ing"?"transition":"WebkitTransition",a=typeof t.transform=="string"?"transform":"WebkitTransform",p={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],m={transform:a,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"};function v(I,T){I&&(this.element=I,this.layout=T,this.position={x:0,y:0},this._create());}var x=v.prototype=Object.create(n.prototype);x.constructor=v,x._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"});},x.handleEvent=function(I){var T="on"+I.type;this[T]&&this[T](I);},x.getSize=function(){this.size=i(this.element);},x.css=function(I){var T=this.element.style;for(var D in I){var L=m[D]||D;T[L]=I[D];}},x.getPosition=function(){var I=getComputedStyle(this.element),T=this.layout._getOption("originLeft"),D=this.layout._getOption("originTop"),L=I[T?"left":"right"],J=I[D?"top":"bottom"],G=parseFloat(L),pe=parseFloat(J),Ce=this.layout.size;L.indexOf("%")!=-1&&(G=G/100*Ce.width),J.indexOf("%")!=-1&&(pe=pe/100*Ce.height),G=isNaN(G)?0:G,pe=isNaN(pe)?0:pe,G-=T?Ce.paddingLeft:Ce.paddingRight,pe-=D?Ce.paddingTop:Ce.paddingBottom,this.position.x=G,this.position.y=pe;},x.layoutPosition=function(){var I=this.layout.size,T={},D=this.layout._getOption("originLeft"),L=this.layout._getOption("originTop"),J=D?"paddingLeft":"paddingRight",G=D?"left":"right",pe=D?"right":"left",Ce=this.position.x+I[J];T[G]=this.getXValue(Ce),T[pe]="";var Ee=L?"paddingTop":"paddingBottom",Xe=L?"top":"bottom",Ke=L?"bottom":"top",rt=this.position.y+I[Ee];T[Xe]=this.getYValue(rt),T[Ke]="",this.css(T),this.emitEvent("layout",[this]);},x.getXValue=function(I){var T=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!T?I/this.layout.size.width*100+"%":I+"px";},x.getYValue=function(I){var T=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&T?I/this.layout.size.height*100+"%":I+"px";},x._transitionTo=function(I,T){this.getPosition();var D=this.position.x,L=this.position.y,J=I==this.position.x&&T==this.position.y;if(this.setPosition(I,T),J&&!this.isTransitioning){this.layoutPosition();return;}var G=I-D,pe=T-L,Ce={};Ce.transform=this.getTranslate(G,pe),this.transition({to:Ce,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0});},x.getTranslate=function(I,T){var D=this.layout._getOption("originLeft"),L=this.layout._getOption("originTop");return I=D?I:-I,T=L?T:-T,"translate3d("+I+"px, "+T+"px, 0)";},x.goTo=function(I,T){this.setPosition(I,T),this.layoutPosition();},x.moveTo=x._transitionTo,x.setPosition=function(I,T){this.position.x=parseFloat(I),this.position.y=parseFloat(T);},x._nonTransition=function(I){this.css(I.to),I.isCleaning&&this._removeStyles(I.to);for(var T in I.onTransitionEnd)I.onTransitionEnd[T].call(this);},x.transition=function(I){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(I);return;}var T=this._transn;for(var D in I.onTransitionEnd)T.onEnd[D]=I.onTransitionEnd[D];for(D in I.to)T.ingProperties[D]=!0,I.isCleaning&&(T.clean[D]=!0);if(I.from){this.css(I.from);var L=this.element.offsetHeight;L=null;}this.enableTransition(I.to),this.css(I.to),this.isTransitioning=!0;};function w(I){return I.replace(/([A-Z])/g,function(T){return"-"+T.toLowerCase();});}var k="opacity,"+w(a);x.enableTransition=function(){if(!this.isTransitioning){var I=this.layout.options.transitionDuration;I=typeof I=="number"?I+"ms":I,this.css({transitionProperty:k,transitionDuration:I,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(p,this,!1);}},x.onwebkitTransitionEnd=function(I){this.ontransitionend(I);},x.onotransitionend=function(I){this.ontransitionend(I);};var S={"-webkit-transform":"transform"};x.ontransitionend=function(I){if(I.target===this.element){var T=this._transn,D=S[I.propertyName]||I.propertyName;if(delete T.ingProperties[D],e(T.ingProperties)&&this.disableTransition(),D in T.clean&&(this.element.style[I.propertyName]="",delete T.clean[D]),D in T.onEnd){var L=T.onEnd[D];L.call(this),delete T.onEnd[D];}this.emitEvent("transitionEnd",[this]);}},x.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(p,this,!1),this.isTransitioning=!1;},x._removeStyles=function(I){var T={};for(var D in I)T[D]="";this.css(T);};var E={transitionProperty:"",transitionDuration:"",transitionDelay:""};return x.removeTransitionStyles=function(){this.css(E);},x.stagger=function(I){I=isNaN(I)?0:I,this.staggerDelay=I+"ms";},x.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this]);},x.remove=function(){if(!r||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return;}this.once("transitionEnd",function(){this.removeElem();}),this.hide();},x.reveal=function(){delete this.isHidden,this.css({display:""});var I=this.layout.options,T={},D=this.getHideRevealTransitionEndProperty("visibleStyle");T[D]=this.onRevealTransitionEnd,this.transition({from:I.hiddenStyle,to:I.visibleStyle,isCleaning:!0,onTransitionEnd:T});},x.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal");},x.getHideRevealTransitionEndProperty=function(I){var T=this.layout.options[I];if(T.opacity)return"opacity";for(var D in T)return D;},x.hide=function(){this.isHidden=!0,this.css({display:""});var I=this.layout.options,T={},D=this.getHideRevealTransitionEndProperty("hiddenStyle");T[D]=this.onHideTransitionEnd,this.transition({from:I.visibleStyle,to:I.hiddenStyle,isCleaning:!0,onTransitionEnd:T});},x.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"));},x.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""});},v;});});var p_=Ci((c$,qs)=>{(function(o,n){"use strict";typeof define=="function"&&define.amd?define(["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,e,t,r){return n(o,i,e,t,r);}):typeof qs=="object"&&qs.exports?qs.exports=n(o,Ql(),js(),c_(),l_()):o.Outlayer=n(o,o.EvEmitter,o.getSize,o.fizzyUIUtils,o.Outlayer.Item);})(window,function(n,i,e,t,r){"use strict";var a=n.console,p=n.jQuery,m=function(){},v=0,x={};function w(T,D){var L=t.getQueryElement(T);if(!L){a&&a.error("Bad element for "+this.constructor.namespace+": "+(L||T));return;}this.element=L,p&&(this.$element=p(this.element)),this.options=t.extend({},this.constructor.defaults),this.option(D);var J=++v;this.element.outlayerGUID=J,x[J]=this,this._create();var G=this._getOption("initLayout");G&&this.layout();}w.namespace="outlayer",w.Item=r,w.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var k=w.prototype;t.extend(k,i.prototype),k.option=function(T){t.extend(this.options,T);},k._getOption=function(T){var D=this.constructor.compatOptions[T];return D&&this.options[D]!==void 0?this.options[D]:this.options[T];},w.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},k._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),t.extend(this.element.style,this.options.containerStyle);var T=this._getOption("resize");T&&this.bindResize();},k.reloadItems=function(){this.items=this._itemize(this.element.children);},k._itemize=function(T){for(var D=this._filterFindItemElements(T),L=this.constructor.Item,J=[],G=0;G<D.length;G++){var pe=D[G],Ce=new L(pe,this);J.push(Ce);}return J;},k._filterFindItemElements=function(T){return t.filterFindElements(T,this.options.itemSelector);},k.getItemElements=function(){return this.items.map(function(T){return T.element;});},k.layout=function(){this._resetLayout(),this._manageStamps();var T=this._getOption("layoutInstant"),D=T!==void 0?T:!this._isLayoutInited;this.layoutItems(this.items,D),this._isLayoutInited=!0;}
1,k._init=k.layout,k._resetLayout=function(){this.getSize();},k.getSize=function(){this.size=e(this.element);},k._getMeasurement=function(T,D){var L=this.options[T],J;L?(typeof L=="string"?J=this.element.querySelector(L):L instanceof HTMLElement&&(J=L),this[T]=J?e(J)[D]:L):this[T]=0;},k.layoutItems=function(T,D){T=this._getItemsForLayout(T),this._layoutItems(T,D),this._postLayout();},k._getItemsForLayout=function(T){return T.filter(function(D){return!D.isIgnored;});},k._layoutItems=function(T,D){if(this._emitCompleteOnItems("layout",T),!(!T||!T.length)){var L=[];T.forEach(function(J){var G=this._getItemLayoutPosition(J);G.item=J,G.isInstant=D||J.isLayoutInstant,L.push(G);},this),this._processLayoutQueue(L);}},k._getItemLayoutPosition=function(){return{x:0,y:0};},k._processLayoutQueue=function(T){this.updateStagger(),T.forEach(function(D,L){this._positionItem(D.item,D.x,D.y,D.isInstant,L);},this);},k.updateStagger=function(){var T=this.options.stagger;if(T==null){this.stagger=0;return;}return this.stagger=I(T),this.stagger;},k._positionItem=function(T,D,L,J,G){J?T.goTo(D,L):(T.stagger(G*this.stagger),T.moveTo(D,L));},k._postLayout=function(){this.resizeContainer();},k.resizeContainer=function(){var T=this._getOption("resizeContainer");if(T){var D=this._getContainerSize();D&&(this._setContainerMeasure(D.width,!0),this._setContainerMeasure(D.height,!1));}},k._getContainerSize=m,k._setContainerMeasure=function(T,D){if(T!==void 0){var L=this.size;L.isBorderBox&&(T+=D?L.paddingLeft+L.paddingRight+L.borderLeftWidth+L.borderRightWidth:L.paddingBottom+L.paddingTop+L.borderTopWidth+L.borderBottomWidth),T=Math.max(T,0),this.element.style[D?"width":"height"]=T+"px";}},k._emitCompleteOnItems=function(T,D){var L=this;function J(){L.dispatchEvent(T+"Complete",null,[D]);}var G=D.length;if(!D||!G){J();return;}var pe=0;function Ce(){pe++,pe==G&&J();}
1D.forEach(function(Ee){Ee.once(T,Ce);});},k.dispatchEvent=function(T,D,L){var J=D?[D].concat(L):L;if(this.emitEvent(T,J),p)if(this.$element=this.$element||p(this.element),D){var G=p.Event(D);G.type=T,this.$element.trigger(G,L);}else this.$element.trigger(T,L);},k.ignore=function(T){var D=this.getItem(T);D&&(D.isIgnored=!0);},k.unignore=function(T){var D=this.getItem(T);D&&delete D.isIgnored;},k.stamp=function(T){T=this._find(T),T&&(this.stamps=this.stamps.concat(T),T.forEach(this.ignore,this));},k.unstamp=function(T){T=this._find(T),T&&T.forEach(function(D){t.removeFrom(this.stamps,D),this.unignore(D);},this);},k._find=function(T){if(T)return typeof T=="string"&&(T=this.element.querySelectorAll(T)),T=t.makeArray(T),T;},k._manageStamps=function(){!this.stamps||!this.stamps.length||(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this));},k._getBoundingRect=function(){var T=this.element.getBoundingClientRect(),D=this.size;this._boundingRect={left:T.left+D.paddingLeft+D.borderLeftWidth,top:T.top+D.paddingTop+D.borderTopWidth,right:T.right-(D.paddingRight+D.borderRightWidth),bottom:T.bottom-(D.paddingBottom+D.borderBottomWidth)};},k._manageStamp=m,k._getElementOffset=function(T){var D=T.getBoundingClientRect(),L=this._boundingRect,J=e(T),G={left:D.left-L.left-J.marginLeft,top:D.top-L.top-J.marginTop,right:L.right-D.right-J.marginRight,bottom:L.bottom-D.bottom-J.marginBottom};return G;},k.handleEvent=t.handleEvent,k.bindResize=function(){n.addEventListener("resize",this),this.isResizeBound=!0;},k.unbindResize=function(){n.removeEventListener("resize",this),this.isResizeBound=!1;},k.onresize=function(){this.resize();},t.debounceMethod(w,"onresize",100),k.resize=function(){!this.isResizeBound||!this.needsResizeLayout()||this.layout();},k.needsResizeLayout=function(){var T=e(this.element),D=this.size&&T;return D&&T.innerWidth!==this.size.innerWidth;},k.addItems=function(T){var D=this._itemize(T);return D.length&&(this.items=this.items.concat(D)),D;},k.appended=function(T){var D=this.addItems(T);D.length&&(this.layoutItems(D,!0),this.reveal(D));},k.prepended=function(T){var D=this._itemize(T);if(D.length){var L=this.items.slice(0);this.items=D.concat(L),this._resetLayout(),this._manageStamps(),this.layoutItems(D,!0),this.reveal(D),this.layoutItems(L);}},k.reveal=function(T){if(this._emitCompleteOnItems("reveal",T),!(!T||!T.length)){var D=this.updateStagger();T.forEach(function(L,J){L.stagger(J*D),L.reveal();});}},k.hide=function(T){if(this._emitCompleteOnItems("hide",T),!(!T||!T.length)){var D=this.updateStagger();T.forEach(function(L,J){L.stagger(J*D),L.hide();});}},k.revealItemElements=function(T){var D=this.getItems(T);this.reveal(D);},k.hideItemElements=function(T){var D=this.getItems(T);this.hide(D);},k.getItem=function(T){for(var D=0;D<this.items.length;D++){var L=this.items[D];if(L.element==T)return L;}},k.getItems=function(T){T=t.makeArray(T);var D=[];return T.forEach(function(L){var J=this.getItem(L);J&&D.push(J);},this),D;},k.remove=function(T){var D=this.getItems(T);this._emitCompleteOnItems("remove",D),!(!D||!D.length)&&D.forEach(function(L){L.remove(),t.removeFrom(this.items,L);},this);},k.destroy=function(){var T=this.element.style;T.height="",T.position="",T.width="",this.items.forEach(function(L){L.destroy();}),this.unbindResize();var D=this.element.outlayerGUID;delete x[D],delete this.element.outlayerGUID,p&&p.removeData(this.element,this.constructor.namespace);},w.data=function(T){T=t.getQueryElement(T);var D=T&&T.outlayerGUID;return D&&x[D];},w.create=function(T,D){var L=S(w);return L.defaults=t.extend({},w.defaults),t.extend(L.defaults,D),L.compatOptions=t.extend({},w.compatOptions),L.namespace=T,L.data=w.data,L.Item=S(r),t.htmlInit(L,T),p&&p.bridget&&p.bridget(T,L),L;};function S(T){function D(){T.apply(this,arguments);}return D.prototype=Object.create(T.prototype),D.prototype.constructor=D,D;}var E={ms:1,s:1e3};function I(T){if(typeof T=="number")return T;var D=T.match(/(^\d*\.?\d*)(\w*)/),L=D&&D[1],J=D&&D[2];if(!L.length)return 0;L=parseFloat(L);var G=E[J]||1;return L*G;}return w.Item=r,w;});});var d_=Ci((l$,Qs)=>{(function(o,n){typeof define=="function"&&define.amd?define(["outlayer/outlayer","get-size/get-size"],n):typeof Qs=="object"&&Qs.exports?Qs.exports=n(p_(),js()):o.Masonry=n(o.Outlayer,o.getSize);})(window,function(n,i){"use strict";var e=n.create("masonry");e.compatOptions.fitWidth="isFitWidth";var t=e.prototype;
1return t._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var r=0;r<this.cols;r++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0;},t.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var r=this.items[0],a=r&&r.element;this.columnWidth=a&&i(a).outerWidth||this.containerWidth;}var p=this.columnWidth+=this.gutter,m=this.containerWidth+this.gutter,v=m/p,x=p-m%p,w=x&&x<1?"round":"floor";v=Math[w](v),this.cols=Math.max(v,1);},t.getContainerWidth=function(){var r=this._getOption("fitWidth"),a=r?this.element.parentNode:this.element,p=i(a);this.containerWidth=p&&p.innerWidth;},t._getItemLayoutPosition=function(r){r.getSize();var a=r.size.outerWidth%this.columnWidth,p=a&&a<1?"round":"ceil",m=Math[p](r.size.outerWidth/this.columnWidth);m=Math.min(m,this.cols);for(var v=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",x=this[v](m,r),w={x:this.columnWidth*x.col,y:x.y},k=x.y+r.size.outerHeight,S=m+x.col,E=x.col;E<S;E++)this.colYs[E]=k;return w;},t._getTopColPosition=function(r){var a=this._getTopColGroup(r),p=Math.min.apply(Math,a);return{col:a.indexOf(p),y:p};},t._getTopColGroup=function(r){if(r<2)return this.colYs;for(var a=[],p=this.cols+1-r,m=0;m<p;m++)a[m]=this._getColGroupY(m,r);return a;},t._getColGroupY=function(r,a){if(a<2)return this.colYs[r];var p=this.colYs.slice(r,r+a);return Math.max.apply(Math,p);},t._getHorizontalColPosition=function(r,a){var p=this.horizontalColIndex%this.cols,m=r>1&&p+r>this.cols;p=m?0:p;var v=a.size.outerWidth&&a.size.outerHeight;return this.horizontalColIndex=v?p+r:this.horizontalColIndex,{col:p,y:this._getColGroupY(p,r)};},t._manageStamp=function(r){var a=i(r),p=this._getElementOffset(r),m=this._getOption("originLeft"),v=m?p.left:p.right,x=v+a.outerWidth,w=Math.floor(v/this.columnWidth);w=Math.max(0,w);var k=Math.floor(x/this.columnWidth);k-=x%this.columnWidth?0:1,k=Math.min(this.cols-1,k);for(var S=this._getOption("originTop"),E=(S?p.top:p.bottom)+a.outerHeight,I=w;I<=k;I++)this.colYs[I]=Math.max(E,this.colYs[I]);},t._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var r={height:this.maxY};return this._getOption("fitWidth")&&(r.width=this._getContainerFitWidth()),r;},t._getContainerFitWidth=function(){for(var r=0,a=this.cols;--a&&this.colYs[a]===0;)r++;return(this.cols-r)*this.columnWidth-this.gutter;},t.needsResizeLayout=function(){var r=this.containerWidth;return this.getContainerWidth(),r!=this.containerWidth;},e;});});function kd(o){return new Le(3e3,!1);}function M_(){return new Le(3100,!1);}function O_(){return new Le(3101,!1);}function w_(o){return new Le(3001,!1);}function y_(o){return new Le(3003,!1);}function k_(o){return new Le(3004,!1);}function Td(o,n){return new Le(3005,!1);}function Ed(){return new Le(3006,!1);}function Dd(){return new Le(3007,!1);}function Id(o,n){return new Le(3008,!1);}function Fd(o){return new Le(3002,!1);}function Ad(o,n,i,e,t){return new Le(3010,!1);}function Vd(){return new Le(3011,!1);}function Rd(){return new Le(3012,!1);}function Ld(){return new Le(3200,!1);}function Bd(){return new Le(3202,!1);}function Nd(){return new Le(3013,!1);}function zd(o){return new Le(3014,!1);}function Gd(o){return new Le(3015,!1);}function jd(o){return new Le(3016,!1);}function $d(o,n){return new Le(3404,!1);}function S_(o){return new Le(3502,!1);}function Hd(o){return new Le(3503,!1);}function Ud(){return new Le(3300,!1);}function qd(o){return new Le(3504,!1);}function Qd(o){return new Le(3301,!1);}function Wd(o,n){return new Le(3302,!1);}function Xd(o){return new Le(3303,!1);}function Jd(o,n){return new Le(3400,!1);}function Yd(o){return new Le(3401,!1);}function Kd(o){return new Le(3402,!1);}function Zd(o,n){return new Le(3505,!1);}function ui(o){switch(o.length){case 0:return new eo();case 1:return o[0];default:return new Yr(o);}}function xc(o,n,i=new Map(),e=new Map()){let t=[],r=[],a=-1,p=null;if(n.forEach(m=>{let v=m.get("offset"),x=v==a,w=x&&p||new Map();m.forEach((k,S)=>{let E=S,I=k;if(S!=="offset")switch(E=o.normalizePropertyName(E,t),I){case pr:I=i.get(S);break;case Nn:I=e.get(S);break;default:I=o.normalizeStyleValue(S,E,I,t);break;}w.set(E,I);}),x||r.push(w),p=w,a=v;}),t.length)throw S_(t);return r;}function Ma(o,n,i,e){switch(n){case"start":o.onStart(()=>
1e(i&&_c(i,"start",o)));break;case"done":o.onDone(()=>e(i&&_c(i,"done",o)));break;case"destroy":o.onDestroy(()=>e(i&&_c(i,"destroy",o)));break;}}function _c(o,n,i){let e=i.totalTime,t=!!i.disabled,r=Oa(o.element,o.triggerName,o.fromState,o.toState,n||o.phaseName,e==null?o.totalTime:e,t),a=o._data;return a!=null&&(r._data=a),r;}function Oa(o,n,i,e,t="",r=0,a){return{element:o,triggerName:n,fromState:i,toState:e,phaseName:t,totalTime:r,disabled:!!a};}function cn(o,n,i){let e=o.get(n);return e||o.set(n,e=i),e;}function vc(o){let n=o.indexOf(":"),i=o.substring(1,n),e=o.slice(n+1);return[i,e];}var T_=typeof document>"u"?null:document.documentElement;function wa(o){let n=o.parentNode||o.host||null;return n===T_?null:n;}function E_(o){return o.substring(1,6)=="ebkit";}var to=null,Sd=!1;function eg(o){to||(to=D_()||{},Sd=to.style?"WebkitAppearance"in to.style:!1);let n=!0;return to.style&&!E_(o)&&(n=o in to.style,!n&&Sd&&(n="Webkit"+o.charAt(0).toUpperCase()+o.slice(1)in to.style)),n;}function D_(){return typeof document<"u"?document.body:null;}function bc(o,n){for(;n;){if(n===o)return!0;n=wa(n);}return!1;}function Pc(o,n,i){if(i)return Array.from(o.querySelectorAll(n));let e=o.querySelector(n);return e?[e]:[];}var I_=1e3,Mc="{{",F_="}}",Oc="ng-enter",ya="ng-leave",gr="ng-trigger",ur=".ng-trigger",wc="ng-animating",ka=".ng-animating";function Kn(o){if(typeof o=="number")return o;let n=o.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:fc(parseFloat(n[1]),n[2]);}function fc(o,n){return n==="s"?o*I_:o;}function mr(o,n,i){return o.hasOwnProperty("duration")?o:V_(o,n,i);}var A_=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function V_(o,n,i){let e,t=0,r="";if(typeof o=="string"){let a=o.match(A_);if(a===null)return n.push(kd(o)),{duration:0,delay:0,easing:""};e=fc(parseFloat(a[1]),a[2]);let p=a[3];p!=null&&(t=fc(parseFloat(p),a[4]));let m=a[5];m&&(r=m);}else e=o;if(!i){let a=!1,p=n.length;e<0&&(n.push(M_()),a=!0),t<0&&(n.push(O_()),a=!0),a&&n.splice(p,0,kd(o));}return{duration:e,delay:t,easing:r};}function tg(o){return o.length?o[0]instanceof Map?o:o.map(n=>new Map(Object.entries(n))):[];}function Gn(o,n,i){n.forEach((e,t)=>{let r=Sa(t);i&&!i.has(t)&&i.set(t,o.style[r]),o.style[r]=e;});}function Ii(o,n){n.forEach((i,e)=>{let t=Sa(e);o.style[t]="";});}function Do(o){return Array.isArray(o)?o.length==1?o[0]:Ep(o):o;}function ng(o,n,i){let e=n.params||{},t=yc(o);t.length&&t.forEach(r=>{e.hasOwnProperty(r)||i.push(w_(r));});}var Cc=new RegExp(`${Mc}\\s*(.+?)\\s*${F_}`,"g");function yc(o){let n=[];if(typeof o=="string"){let i;for(;i=Cc.exec(o);)n.push(i[1]);Cc.lastIndex=0;}return n;}function Io(o,n,i){let e=`${o}`,t=e.replace(Cc,(r,a)=>{let p=n[a];return p==null&&(i.push(y_(a)),p=""),p.toString();});return t==e?o:t;}var R_=/-+([a-z0-9])/g;function Sa(o){return o.replace(R_,(...n)=>n[1].toUpperCase());}function ig(o,n){return o===0||n===0;}function og(o,n,i){if(i.size&&n.length){let e=n[0],t=[];if(i.forEach((r,a)=>
1{e.has(a)||t.push(a),e.set(a,r);}),t.length)for(let r=1;r<n.length;r++){let a=n[r];t.forEach(p=>a.set(p,Ta(o,p)));}}return n;}function ln(o,n,i){switch(n.type){case Ie.Trigger:return o.visitTrigger(n,i);case Ie.State:return o.visitState(n,i);case Ie.Transition:return o.visitTransition(n,i);case Ie.Sequence:return o.visitSequence(n,i);case Ie.Group:return o.visitGroup(n,i);case Ie.Animate:return o.visitAnimate(n,i);case Ie.Keyframes:return o.visitKeyframes(n,i);case Ie.Style:return o.visitStyle(n,i);case Ie.Reference:return o.visitReference(n,i);case Ie.AnimateChild:return o.visitAnimateChild(n,i);case Ie.AnimateRef:return o.visitAnimateRef(n,i);case Ie.Query:return o.visitQuery(n,i);case Ie.Stagger:return o.visitStagger(n,i);default:throw k_(n.type);}}function Ta(o,n){return window.getComputedStyle(o)[n];}var $c=(()=>{let n=class n{validateStyleProperty(e){return eg(e);}containsElement(e,t){return bc(e,t);}getParentElement(e){return wa(e);}query(e,t,r){return Pc(e,t,r);}computeStyle(e,t,r){return r||"";}animate(e,t,r,a,p,m=[],v){return new eo(r,a);}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac}));let o=n;return o;})(),Fi=class{};u(Fi,"NOOP",new $c());var io=class{};var L_=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Aa=class extends io{normalizePropertyName(n,i){return Sa(n);}normalizeStyleValue(n,i,e,t){let r="",a=e.toString().trim();if(L_.has(i)&&e!==0&&e!=="0")if(typeof e=="number")r="px";else{let p=e.match(/^[+-]?[\d\.]+([a-z]*)$/);p&&p[1].length==0&&t.push(Td(n,e));}return a+r;}};var Va="*";function B_(o,n){let i=[];return typeof o=="string"?o.split(/\s*,\s*/).forEach(e=>N_(e,i,n)):i.push(o),i;}function N_(o,n,i){if(o[0]==":"){let m=z_(o,i);if(typeof m=="function"){n.push(m);return;}o=m;}let e=o.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(e==null||e.length<4)return i.push(Gd(o)),n;let t=e[1],r=e[2],a=e[3];n.push(rg(t,a));let p=t==Va&&a==Va;r[0]=="<"&&!p&&n.push(rg(a,t));}function z_(o,n){switch(o){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,e)=>parseFloat(e)>parseFloat(i);case":decrement":return(i,e)=>parseFloat(e)<parseFloat(i);default:return n.push(jd(o)),"* => *";}}var Ea=new Set(["true","1"]),Da=new Set(["false","0"]);function rg(o,n){let i=Ea.has(o)||Da.has(o),e=Ea.has(n)||Da.has(n);return(t,r)=>{let a=o==Va||o==t,p=n==Va||n==r;return!a&&i&&typeof t=="boolean"&&(a=t?Ea.has(o):Da.has(o)),!p&&e&&typeof r=="boolean"&&(p=r?Ea.has(n):Da.has(n)),a&&p;};}var hg=":self",G_=new RegExp(`s*${hg}s*,?`,"g");function _g(o,n,i,e){return new Ic(o).build(n,i,e);}var ag="",Ic=class{constructor(n){u(this,"_driver");this._driver=n;}build(n,i,e){let t=new Fc(i);return this._resetContextStyleTimingState(t),ln(this,Do(n),t);}_resetContextStyleTimingState(n){n.currentQuerySelector=ag,n.collectedStyles=new Map(),n.collectedStyles.set(ag,new Map()),n.currentTime=0;}visitTrigger(n,i){let e=i.queryCount=0,t=i.depCount=0,r=[],a=[];return n.name.charAt(0)=="@"&&i.errors.push(Ed()),n.definitions.forEach(p=>{if(this._resetContextStyleTimingState(i),p.type==Ie.State){let m=p,v=m.name;v.toString().split(/\s*,\s*/).forEach(x=>{m.name=x,r.push(this.visitState(m,i));}),m.name=v;}else if(p.type==Ie.Transition){let m=this.visitTransition(p,i);e+=m.queryCount,t+=m.depCount,a.push(m);}else i.errors.push(Dd());}),{type:Ie.Trigger,name:n.name,states:r,transitions:a,queryCount:e,depCount:t,options:null};}visitState(n,i){let e=this.visitStyle(n.styles,i),t=n.options&&n.options.params||null;if(e.containsDynamicStyles){let r=new Set(),a=t||{};e.styles.forEach(p=>{p instanceof Map&&p.forEach(m=>{yc(m).forEach(v=>{a.hasOwnProperty(v)||r.add(v);});});}),r.size&&i.errors.push(Id(n.name,[...r.values()]));}return{type:Ie.State,name:n.name,style:e,options:t?{params:t}:null};}visitTransition(n,i){i.queryCount=0,i.depCount=0;let e=ln(this,Do(n.animation),i),t=B_(n.expr,i.errors);return{type:Ie.Transition,matchers:t,animation:e,queryCount:i.queryCount,depCount:i.depCount,options:no(n.options)};}visitSequence(n,i){return{type:Ie.Sequence,steps:n.steps.map(e=>ln(this,e,i)),options:no(n.options)};}visitGroup(n,i){let e=i.currentTime,t=0,r=n.steps.map(a=>{i.currentTime=e;let p=ln(this,a,i);return t=Math.max(t,i.currentTime),p;});return i.currentTime=t,{type:Ie.Group,steps:r,options:no(n.options)};}visitAnimate(n,i){let e=U_(n.timings,i.errors);i.currentAnimateTimings=e;let t,r=n.styles?n.styles:rn({});if(r.type==Ie.Keyframes)t=this.visitKeyframes(r,i);else{let a=n.styles,p=!1;if(!a){p=!0;let v={};e.easing&&(v.easing=e.easing),a=rn(v);}
1i.currentTime+=e.duration+e.delay;let m=this.visitStyle(a,i);m.isEmptyStep=p,t=m;}return i.currentAnimateTimings=null,{type:Ie.Animate,timings:e,style:t,options:null};}visitStyle(n,i){let e=this._makeStyleAst(n,i);return this._validateStyleAst(e,i),e;}_makeStyleAst(n,i){let e=[],t=Array.isArray(n.styles)?n.styles:[n.styles];for(let p of t)typeof p=="string"?p===Nn?e.push(p):i.errors.push(Fd(p)):e.push(new Map(Object.entries(p)));let r=!1,a=null;return e.forEach(p=>{if(p instanceof Map&&(p.has("easing")&&(a=p.get("easing"),p.delete("easing")),!r)){for(let m of p.values())if(m.toString().indexOf(Mc)>=0){r=!0;break;}}}),{type:Ie.Style,styles:e,easing:a,offset:n.offset,containsDynamicStyles:r,options:null};}_validateStyleAst(n,i){let e=i.currentAnimateTimings,t=i.currentTime,r=i.currentTime;e&&r>0&&(r-=e.duration+e.delay),n.styles.forEach(a=>{typeof a!="string"&&a.forEach((p,m)=>{let v=i.collectedStyles.get(i.currentQuerySelector),x=v.get(m),w=!0;x&&(r!=t&&r>=x.startTime&&t<=x.endTime&&(i.errors.push(Ad(m,x.startTime,x.endTime,r,t)),w=!1),r=x.startTime),w&&v.set(m,{startTime:r,endTime:t}),i.options&&ng(p,i.options,i.errors);});});}visitKeyframes(n,i){let e={type:Ie.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(Vd()),e;let t=1,r=0,a=[],p=!1,m=!1,v=0,x=n.steps.map(D=>{let L=this._makeStyleAst(D,i),J=L.offset!=null?L.offset:H_(L.styles),G=0;return J!=null&&(r++,G=L.offset=J),m=m||G<0||G>1,p=p||G<v,v=G,a.push(G),L;});m&&i.errors.push(Rd()),p&&i.errors.push(Ld());let w=n.steps.length,k=0;r>0&&r<w?i.errors.push(Bd()):r==0&&(k=t/(w-1));let S=w-1,E=i.currentTime,I=i.currentAnimateTimings,T=I.duration;return x.forEach((D,L)=>{let J=k>
10?L==S?1:k*L:a[L],G=J*T;i.currentTime=E+I.delay+G,I.duration=G,this._validateStyleAst(D,i),D.offset=J,e.styles.push(D);}),e;}visitReference(n,i){return{type:Ie.Reference,animation:ln(this,Do(n.animation),i),options:no(n.options)};}visitAnimateChild(n,i){return i.depCount++,{type:Ie.AnimateChild,options:no(n.options)};}visitAnimateRef(n,i){return{type:Ie.AnimateRef,animation:this.visitReference(n.animation,i),options:no(n.options)};}visitQuery(n,i){let e=i.currentQuerySelector,t=n.options||{};i.queryCount++,i.currentQuery=n;let[r,a]=j_(n.selector);i.currentQuerySelector=e.length?e+" "+r:r,cn(i.collectedStyles,i.currentQuerySelector,new Map());let p=ln(this,Do(n.animation),i);return i.currentQuery=null,i.currentQuerySelector=e,{type:Ie.Query,selector:r,limit:t.limit||0,optional:!!t.optional,includeSelf:a,animation:p,originalSelector:n.selector,options:no(n.options)};}visitStagger(n,i){i.currentQuery||i.errors.push(Nd());let e=n.timings==="full"?{duration:0,delay:0,easing:"full"}:mr(n.timings,i.errors,!0);return{type:Ie.Stagger,animation:ln(this,Do(n.animation),i),timings:e,options:null};}};function j_(o){let n=!!o.split(/\s*,\s*/).find(i=>i==hg);return n&&(o=o.replace(G_,"")),o=o.replace(/@\*/g,ur).replace(/@\w+/g,i=>ur+"-"+i.slice(1)).replace(/:animating/g,ka),[o,n];}function $_(o){return o?Ue({},o):null;}var Fc=class{constructor(n){u(this,"errors");u(this,"queryCount",0);u(this,"depCount",0);u(this,"currentTransition",null);u(this,"currentQuery",null);u(this,"currentQuerySelector",null);u(this,"currentAnimateTimings",null);u(this,"currentTime",0);u(this,"collectedStyles",new Map());u(this,"options",null);u(this,"unsupportedCSSPropertiesFound",new Set());this.errors=n;}};function H_(o){if(typeof o=="string")return null;let n=null;if(Array.isArray(o))o.forEach(i=>{if(i instanceof Map&&i.has("offset")){let e=i;n=parseFloat(e.get("offset")),e.delete("offset");}});else if(o instanceof Map&&o.has("offset")){let i=o;n=parseFloat(i.get("offset")),i.delete("offset");}return n;}function U_(o,n){if(o.hasOwnProperty("duration"))return o;if(typeof o=="number"){let r=mr(o,n).duration;return kc(r,0,"");}let i=o;if(i.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=kc(0,0,"");return r.dynamic=!0,r.strValue=i,r;}let t=mr(i,n);return kc(t.duration,t.delay,t.easing);}function no(o){return o?(o=Ue({},o),o.params&&(o.params=$_(o.params))):o={},o;}function kc(o,n,i){return{duration:o,delay:n,easing:i};}function Hc(o,n,i,e,t,r,a=null,p=!1){return{type:1,element:o,keyframes:n,preStyleProps:i,postStyleProps:e,duration:t,delay:r,totalTime:t+r,easing:a,subTimeline:p};}var _r=class{constructor(){u(this,"_map",new Map());}get(n){return this._map.get(n)||[];}append(n,i){let e=this._map.get(n);e||this._map.set(n,e=[]),e.push(...i);}has(n){return this._map.has(n);}clear(){this._map.clear();}},q_=1,Q_=":enter",W_=new RegExp(Q_,"g"),X_=":leave",J_=new RegExp(X_,"g");function fg(o,n,i,e,t,r=new Map(),a=new Map(),p,m,v=[]){return new Ac().buildKeyframes(o,n,i,e,t,r,a,p,m,v);}var Ac=class{buildKeyframes(n,i,e,t,r,a,p,m,v,x=[]){v=v||new _r();let w=new Vc(n,i,v,t,r,x,[]);w.options=m;let k=m.delay?Kn(m.delay):0;w.currentTimeline.delayNextStep(k),w.currentTimeline.setStyles([a],null,w.errors,m),ln(this,e,w);let S=w.timelines.filter(E=>E.containsAnimation());if(S.length&&p.size){let E;for(let I=S.length-1;I>=0;I--){let T=S[I];if(T.element===i){E=T;break;}}E&&!E.allowOnlyTimelineStyles()&&E.setStyles([p],null,w.errors,m);}return S.length?S.map(E=>E.buildKeyframes()):[Hc(i,[],[],[],0,k,"",!1)];}visitTrigger(n,i){}visitState(n,i){}visitTransition(n,i){}visitAnimateChild(n,i){let e=i.subInstructions.get(i.element);if(e){let t=i.createSubContext(n.options),r=i.currentTimeline.currentTime,a=this._visitSubInstructions(e,t,t.options);r!=a&&i.transformIntoNewTimeline(a);}i.previousNode=n;}visitAnimateRef(n,i){let e=i.createSubContext(n.options);e.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],i,e),this.visitReference(n.animation,e),i.transformIntoNewTimeline(e.currentTimeline.currentTime),i.previousNode=n;}_applyAnimationRefDelays(n,i,e){var t;for(let r of n){let a=r==null?void 0:r.delay;if(a){let p=typeof a=="number"?a:Kn(Io(a,(t=r==null?void 0:r.params)!=null?t:{},i.errors));e.delayNextStep(p);}}}
1_visitSubInstructions(n,i,e){let r=i.currentTimeline.currentTime,a=e.duration!=null?Kn(e.duration):null,p=e.delay!=null?Kn(e.delay):null;return a!==0&&n.forEach(m=>{let v=i.appendInstructionToTimeline(m,a,p);r=Math.max(r,v.duration+v.delay);}),r;}visitReference(n,i){i.updateOptions(n.options,!0),ln(this,n.animation,i),i.previousNode=n;}visitSequence(n,i){let e=i.subContextCount,t=i,r=n.options;if(r&&(r.params||r.delay)&&(t=i.createSubContext(r),t.transformIntoNewTimeline(),r.delay!=null)){t.previousNode.type==Ie.Style&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ra);let a=Kn(r.delay);t.delayNextStep(a);}n.steps.length&&(n.steps.forEach(a=>ln(this,a,t)),t.currentTimeline.applyStylesToKeyframe(),t.subContextCount>e&&t.transformIntoNewTimeline()),i.previousNode=n;}visitGroup(n,i){let e=[],t=i.currentTimeline.currentTime,r=n.options&&n.options.delay?Kn(n.options.delay):0;n.steps.forEach(a=>{let p=i.createSubContext(n.options);r&&p.delayNextStep(r),ln(this,a,p),t=Math.max(t,p.currentTimeline.currentTime),e.push(p.currentTimeline);}),e.forEach(a=>i.currentTimeline.mergeTimelineCollectedStyles(a)),i.transformIntoNewTimeline(t),i.previousNode=n;}_visitTiming(n,i){if(n.dynamic){let e=n.strValue,t=i.params?Io(e,i.params,i.errors):e;return mr(t,i.errors);}else return{duration:n.duration,delay:n.delay,easing:n.easing};}visitAnimate(n,i){let e=i.currentAnimateTimings=this._visitTiming(n.timings,i),t=i.currentTimeline;e.delay&&(i.incrementTime(e.delay),t.snapshotCurrentStyles());let r=n.style;r.type==Ie.Keyframes?this.visitKeyframes(r,i):(i.incrementTime(e.duration),this.visitStyle(r,i),t.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=n;}visitStyle(n,i){let e=i.currentTimeline,t=i.currentAnimateTimings;!t&&e.hasCurrentStyleProperties()&&e.forwardFrame();let r=t&&t.easing||n.easing;n.isEmptyStep?e.applyEmptyStep(r):e.setStyles(n.styles,r,i.errors,i.options),i.previousNode=n;}visitKeyframes(n,i){let e=i.currentAnimateTimings,t=i.currentTimeline.duration,r=e.duration,p=i.createSubContext().currentTimeline;p.easing=e.easing,n.styles.forEach(m=>{let v=m.offset||0;p.forwardTime(v*r),p.setStyles(m.styles,m.easing,i.errors,i.options),p.applyStylesToKeyframe();}),i.currentTimeline.mergeTimelineCollectedStyles(p),i.transformIntoNewTimeline(t+r),i.previousNode=n;}visitQuery(n,i){let e=i.currentTimeline.currentTime,t=n.options||{},r=t.delay?Kn(t.delay):0;r&&(i.previousNode.type===Ie.Style||e==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Ra);let a=e,p=i.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!t.optional,i.errors);i.currentQueryTotal=p.length;let m=null;p.forEach((v,x)=>{i.currentQueryIndex=x;let w=i.createSubContext(n.options,v);r&&w.delayNextStep(r),v===i.element&&(m=w.currentTimeline),ln(this,n.animation,w),w.currentTimeline.applyStylesToKeyframe();let k=w.currentTimeline.currentTime;a=Math.max(a,k);}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(a),m&&(i.currentTimeline.mergeTimelineCollectedStyles(m),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=n;}visitStagger(n,i){let e=i.parentContext,t=i.currentTimeline,r=n.timings,a=Math.abs(r.duration),p=a*(i.currentQueryTotal-1),m=a*i.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":m=p-m;break;case"full":m=e.currentStaggerTime;break;}let x=i.currentTimeline;m&&x.delayNextStep(m);let w=x.currentTime;ln(this,n.animation,i),i.previousNode=n,e.currentStaggerTime=t.currentTime-w+(t.startTime-e.currentTimeline.startTime);}},Ra={},Vc=class o{constructor(n,i,e,t,r,a,p,m){u(this,"_driver");u(this,"element");u(this,"subInstructions");u(this,"_enterClassName");u(this,"_leaveClassName");u(this,"errors");u(this,"timelines");u(this,"parentContext",null);u(this,"currentTimeline");u(this,"currentAnimateTimings",null);u(this,"previousNode",Ra);u(this,"subContextCount",0);u(this,"options",{});u(this,"currentQueryIndex",0);u(this,"currentQueryTotal",0);u(this,"currentStaggerTime",0);this._driver=n,this.element=i,this.subInstructions=e,this._enterClassName=t,this._leaveClassName=r,this.errors=a,this.timelines=p,this.currentTimeline=m||new La(this._driver,i,0),p.push(this.currentTimeline);}get params(){return this.options.params;}
1updateOptions(n,i){if(!n)return;let e=n,t=this.options;e.duration!=null&&(t.duration=Kn(e.duration)),e.delay!=null&&(t.delay=Kn(e.delay));let r=e.params;if(r){let a=t.params;a||(a=this.options.params={}),Object.keys(r).forEach(p=>{(!i||!a.hasOwnProperty(p))&&(a[p]=Io(r[p],a,this.errors));});}}_copyOptions(){let n={};if(this.options){let i=this.options.params;if(i){let e=n.params={};Object.keys(i).forEach(t=>{e[t]=i[t];});}}return n;}createSubContext(n=null,i,e){let t=i||this.element,r=new o(this._driver,t,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(t,e||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r;}transformIntoNewTimeline(n){return this.previousNode=Ra,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline;}appendInstructionToTimeline(n,i,e){let t={duration:i!=null?i:n.duration,delay:this.currentTimeline.currentTime+(e!=null?e:0)+n.delay,easing:""},r=new Rc(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,t,n.stretchStartingKeyframe);return this.timelines.push(r),t;}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n);}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n);}invokeQuery(n,i,e,t,r,a){let p=[];if(t&&p.push(this.element),n.length>0){n=n.replace(W_,"."+this._enterClassName),n=n.replace(J_,"."+this._leaveClassName);let m=e!=1,v=this._driver.query(this.element,n,m);e!==0&&(v=e<0?v.slice(v.length+e,v.length):v.slice(0,e)),p.push(...v);}return!r&&p.length==0&&a.push(zd(i)),p;}},La=class o{constructor(n,i,e,t){u(this,"_driver");u(this,"element");u(this,"startTime");u(this,"_elementTimelineStylesLookup");u(this,"duration",0);u(this,"easing",null);u(this,"_previousKeyframe",new Map());u(this,"_currentKeyframe",new Map());u(this,"_keyframes",new Map());u(this,"_styleSummary",new Map());u(this,"_localTimelineStyles",new Map());u(this,"_globalTimelineStyles");u(this,"_pendingStyles",new Map());u(this,"_backFill",new Map());u(this,"_currentEmptyStepKeyframe",null);this._driver=n,this.element=i,this.startTime=e,this._elementTimelineStylesLookup=t,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map()),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe();}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0;}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0;}get currentTime(){return this.startTime+this.duration;}delayNextStep(n){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+n),i&&this.snapshotCurrentStyles()):this.startTime+=n;}fork(n,i){return this.applyStylesToKeyframe(),new o(this._driver,n,i||this.currentTime,this._elementTimelineStylesLookup);}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map(),this._keyframes.set(this.duration,this._currentKeyframe));}forwardFrame(){this.duration+=q_,this._loadKeyframe();}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe();}_updateStyle(n,i){this._localTimelineStyles.set(n,i),this._globalTimelineStyles.set(n,i),this._styleSummary.set(n,{time:this.currentTime,value:i});}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe;}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[i,e]of this._globalTimelineStyles)this._backFill.set(i,e||Nn),this._currentKeyframe.set(i,Nn);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(n,i,e,t){var p;
1i&&this._previousKeyframe.set("easing",i);let r=t&&t.params||{},a=Y_(n,this._globalTimelineStyles);for(let[m,v]of a){let x=Io(v,r,e);this._pendingStyles.set(m,x),this._localTimelineStyles.has(m)||this._backFill.set(m,(p=this._globalTimelineStyles.get(m))!=null?p:Nn),this._updateStyle(m,x);}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((n,i)=>{this._currentKeyframe.set(i,n);}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,n);}));}snapshotCurrentStyles(){for(let[n,i]of this._localTimelineStyles)this._pendingStyles.set(n,i),this._updateStyle(n,i);}getFinalKeyframe(){return this._keyframes.get(this.duration);}get properties(){let n=[];for(let i in this._currentKeyframe)n.push(i);return n;}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((i,e)=>{let t=this._styleSummary.get(e);(!t||i.time>t.time)&&this._updateStyle(e,i.value);});}buildKeyframes(){this.applyStylesToKeyframe();let n=new Set(),i=new Set(),e=this._keyframes.size===1&&this.duration===0,t=[];this._keyframes.forEach((p,m)=>{let v=new Map([...this._backFill,...p]);v.forEach((x,w)=>{x===pr?n.add(w):x===Nn&&i.add(w);}),e||v.set("offset",m/this.duration),t.push(v);});let r=[...n.values()],a=[...i.values()];if(e){let p=t[0],m=new Map(p);p.set("offset",0),m.set("offset",1),t=[p,m];}return Hc(this.element,t,r,a,this.duration,this.startTime,this.easing,!1);}},Rc=class extends La{constructor(i,e,t,r,a,p,m=!1){super(i,e,p.delay);u(this,"keyframes");u(this,"preStyleProps");u(this,"postStyleProps");u(this,"_stretchStartingKeyframe");u(this,"timings");this.keyframes=t,this.preStyleProps=r,this.postStyleProps=a,this._stretchStartingKeyframe=m,this.timings={duration:p.duration,delay:p.delay,easing:p.easing};}containsAnimation(){return this.keyframes.length>1;}buildKeyframes(){let i=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let a=[],p=t+e,m=e/p,v=new Map(i[0]);v.set("offset",0),a.push(v);let x=new Map(i[0]);x.set("offset",sg(m)),a.push(x);let w=i.length-1;for(let k=1;k<=w;k++){let S=new Map(i[k]),E=S.get("offset"),I=e+E*t;S.set("offset",sg(I/p)),a.push(S);}t=p,e=0,r="",i=a;}return Hc(this.element,i,this.preStyleProps,this.postStyleProps,t,e,r,!0);}};function sg(o,n=3){let i=Math.pow(10,n-1);return Math.round(o*i)/i;}function Y_(o,n){let i=new Map(),e;return o.forEach(t=>{if(t==="*"){e!=null||(e=n.keys());for(let r of e)i.set(r,Nn);}else for(let[r,a]of t)i.set(r,a);}),i;}function cg(o,n,i,e,t,r,a,p,m,v,x,w,k){return{type:0,element:o,triggerName:n,isRemovalTransition:t,fromState:i,fromStyles:r,toState:e,toStyles:a,timelines:p,queriedElements:m,preStyleProps:v,postStyleProps:x,totalTime:w,errors:k};}var Sc={},Ba=class{constructor(n,i,e){u(this,"_triggerName");u(this,"ast");u(this,"_stateStyles");this._triggerName=n,this.ast=i,this._stateStyles=e;}match(n,i,e,t){return K_(this.ast.matchers,n,i,e,t);}buildStyles(n,i,e){let t=this._stateStyles.get("*");return n!==void 0&&(t=this._stateStyles.get(n==null?void 0:n.toString())||t),t?t.buildStyles(i,e):new Map();}build(n,i,e,t,r,a,p,m,v,x){var Xe;let w=[],k=this.ast.options&&this.ast.options.params||Sc,S=p&&p.params||Sc,E=this.buildStyles(e,S,w),I=m&&m.params||Sc,T=this.buildStyles(t,I,w),D=new Set(),L=new Map(),J=new Map(),G=t==="void",pe={params:Cg(I,k),delay:(Xe=this.ast.options)==null?void 0:Xe.delay},Ce=x?[]:fg(n,i,this.ast.animation,r,a,E,T,pe,v,w),Ee=0;return Ce.forEach(Ke=>{Ee=Math.max(Ke.duration+Ke.delay,Ee);}),w.length?cg(i,this._triggerName,e,t,G,E,T,[],[],L,J,Ee,w):(Ce.forEach(Ke=>{let rt=Ke.element,vn=cn(L,rt,new Set());Ke.preStyleProps.forEach(ri=>vn.add(ri));let dn=cn(J,rt,new Set());Ke.postStyleProps.forEach(ri=>dn.add(ri)),rt!==i&&D.add(rt);}),cg(i,this._triggerName,e,t,G,E,T,Ce,[...D.values()],L,J,Ee));}};function K_(o,n,i,e,t){return o.some(r=>r(n,i,e,t));}function Cg(o,n){let i=Ue({},n);return Object.entries(o).forEach(([e,t])=>{t!=null&&(i[e]=t);}),i;}var Lc=class{constructor(n,i,e){u(this,"styles");u(this,"defaultParams");u(this,"normalizer");this.styles=n,this.defaultParams=i,this.normalizer=e;}buildStyles(n,i){let e=new Map(),t=Cg(n,this.defaultParams);
1return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,p)=>{a&&(a=Io(a,t,i));let m=this.normalizer.normalizePropertyName(p,i);a=this.normalizer.normalizeStyleValue(p,m,a,i),e.set(p,a);});}),e;}};function Z_(o,n,i){return new Bc(o,n,i);}var Bc=class{constructor(n,i,e){u(this,"name");u(this,"ast");u(this,"_normalizer");u(this,"transitionFactories",[]);u(this,"fallbackTransition");u(this,"states",new Map());this.name=n,this.ast=i,this._normalizer=e,i.states.forEach(t=>{let r=t.options&&t.options.params||{};this.states.set(t.name,new Lc(t.style,r,e));}),lg(this.states,"true","1"),lg(this.states,"false","0"),i.transitions.forEach(t=>{this.transitionFactories.push(new Ba(n,t,this.states));}),this.fallbackTransition=e0(n,this.states);}get containsQueries(){return this.ast.queryCount>0;}matchTransition(n,i,e,t){return this.transitionFactories.find(a=>a.match(n,i,e,t))||null;}matchStyles(n,i,e){return this.fallbackTransition.buildStyles(n,i,e);}};function e0(o,n,i){let e=[(a,p)=>!0],t={type:Ie.Sequence,steps:[],options:null},r={type:Ie.Transition,animation:t,matchers:e,options:null,queryCount:0,depCount:0};return new Ba(o,r,n);}function lg(o,n,i){o.has(n)?o.has(i)||o.set(i,o.get(n)):o.has(i)&&o.set(n,o.get(i));}var t0=new _r(),Nc=class{constructor(n,i,e){u(this,"bodyNode");u(this,"_driver");u(this,"_normalizer");u(this,"_animations",new Map());u(this,"_playersById",new Map());u(this,"players",[]);this.bodyNode=n,this._driver=i,this._normalizer=e;}register(n,i){let e=[],t=[],r=_g(this._driver,i,e,t);if(e.length)throw Hd(e);this._animations.set(n,r);}_buildPlayer(n,i,e){let t=n.element,r=xc(this._normalizer,n.keyframes,i,e);return this._driver.animate(t,r,n.duration,n.delay,n.easing,[],!0);}create(n,i,e={}){let t=[],r=this._animations.get(n),a,p=new Map();if(r?(a=fg(this._driver,i,r,Oc,ya,new Map(),new Map(),e,t0,t),a.forEach(x=>{let w=cn(p,x.element,new Map());x.postStyleProps.forEach(k=>w.set(k,null));})):(t.push(Ud()),a=[]),t.length)throw qd(t);p.forEach((x,w)=>{x.forEach((k,S)=>{x.set(S,this._driver.computeStyle(w,S,Nn));});});let m=a.map(x=>{let w=p.get(x.element);return this._buildPlayer(x,new Map(),w);}),v=ui(m);return this._playersById.set(n,v),v.onDestroy(()=>this.destroy(n)),this.players.push(v),v;}destroy(n){let i=this._getPlayer(n);i.destroy(),this._playersById.delete(n);let e=this.players.indexOf(i);e>=0&&this.players.splice(e,1);}_getPlayer(n){let i=this._playersById.get(n);if(!i)throw Qd(n);return i;}listen(n,i,e,t){let r=Oa(i,"","","");return Ma(this._getPlayer(n),e,r,t),()=>{};}command(n,i,e,t){if(e=="register"){this.register(n,t[0]);return;}if(e=="create"){let a=t[0]||{};this.create(n,i,a);return;}let r=this._getPlayer(n);switch(e){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(t[0]));break;case"destroy":this.destroy(n);break;}}},pg="ng-animate-queued",n0=".ng-animate-queued",Tc="ng-animate-disabled",i0=".ng-animate-disabled",o0="ng-star-inserted",r0=".ng-star-inserted",a0=[],xg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},s0={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},jn="__ng_removed",fr=class{constructor(n,i=""){u(this,"namespaceId");u(this,"value");u(this,"options");this.namespaceId=i;let e=n&&n.hasOwnProperty("value"),t=e?n.value:n;if(this.value=l0(t),e){let r=n,{value:a}=r,p=np(r,["value"]);this.options=p;}else this.options={};this.options.params||(this.options.params={});}get params(){return this.options.params;}absorbOptions(n){let i=n.params;if(i){let e=this.options.params;
1Object.keys(i).forEach(t=>{e[t]==null&&(e[t]=i[t]);});}}},hr="void",Ec=new fr(hr),zc=class{constructor(n,i,e){u(this,"id");u(this,"hostElement");u(this,"_engine");u(this,"players",[]);u(this,"_triggers",new Map());u(this,"_queue",[]);u(this,"_elementListeners",new Map());u(this,"_hostClassName");this.id=n,this.hostElement=i,this._engine=e,this._hostClassName="ng-tns-"+n,Tn(i,this._hostClassName);}listen(n,i,e,t){if(!this._triggers.has(i))throw Wd(e,i);if(e==null||e.length==0)throw Xd(i);if(!p0(e))throw Jd(e,i);let r=cn(this._elementListeners,n,[]),a={name:i,phase:e,callback:t};r.push(a);let p=cn(this._engine.statesByElement,n,new Map());return p.has(i)||(Tn(n,gr),Tn(n,gr+"-"+i),p.set(i,Ec)),()=>{this._engine.afterFlush(()=>{let m=r.indexOf(a);m>=0&&r.splice(m,1),this._triggers.has(i)||p.delete(i);});};}register(n,i){return this._triggers.has(n)?!1:(this._triggers.set(n,i),!0);}_getTrigger(n){let i=this._triggers.get(n);if(!i)throw Yd(n);return i;}trigger(n,i,e,t=!0){let r=this._getTrigger(i),a=new Cr(this.id,i,n),p=this._engine.statesByElement.get(n);p||(Tn(n,gr),Tn(n,gr+"-"+i),this._engine.statesByElement.set(n,p=new Map()));let m=p.get(i),v=new fr(e,this.id);if(!(e&&e.hasOwnProperty("value"))&&m&&v.absorbOptions(m.options),p.set(i,v),m||(m=Ec),!(v.value===hr)&&m.value===v.value){if(!u0(m.params,v.params)){let I=[],T=r.matchStyles(m.value,m.params,I),D=r.matchStyles(v.value,v.params,I);I.length?this._engine.reportError(I):this._engine.afterFlush(()=>{Ii(n,T),Gn(n,D);});}return;}let k=cn(this._engine.playersByElement,n,[]);k.forEach(I=>{I.namespaceId==this.id&&I.triggerName==i&&I.queued&&I.destroy();});let S=r.matchTransition(m.value,v.value,n,v.params),E=!1;if(!S){if(!t)return;S=r.fallbackTransition,E=!0;}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:i,transition:S,fromState:m,toState:v,player:a,isFallbackTransition:E}),E||(Tn(n,pg),a.onStart(()=>{Fo(n,pg);})),a.onDone(()=>{let I=this.players.indexOf(a);I>=0&&this.players.splice(I,1);let T=this._engine.playersByElement.get(n);if(T){let D=T.indexOf(a);D>=0&&T.splice(D,1);}}),this.players.push(a),k.push(a),a;}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(i=>i.delete(n)),this._elementListeners.forEach((i,e)=>{this._elementListeners.set(e,i.filter(t=>t.name!=n));});}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);let i=this._engine.playersByElement.get(n);i&&(i.forEach(e=>e.destroy()),this._engine.playersByElement.delete(n));}_signalRemovalForInnerTriggers(n,i){let e=this._engine.driver.query(n,ur,!0);e.forEach(t=>{if(t[jn])return;let r=this._engine.fetchNamespacesByElement(t);r.size?r.forEach(a=>a.triggerLeaveAnimation(t,i,!1,!0)):this.clearElementCache(t);}),this._engine.afterFlushAnimationsDone(()=>e.forEach(t=>this.clearElementCache(t)));}triggerLeaveAnimation(n,i,e,t){let r=this._engine.statesByElement.get(n),a=new Map();if(r){let p=[];if(r.forEach((m,v)=>{if(a.set(v,m.value),this._triggers.has(v)){let x=this.trigger(n,v,hr,t);x&&p.push(x);}}),p.length)return this._engine.markElementAsRemoved(this.id,n,!0,i,a),e&&ui(p).onDone(()=>this._engine.processLeaveNode(n)),!0;}return!1;}prepareLeaveAnimationListeners(n){let i=this._elementListeners.get(n),e=this._engine.statesByElement.get(n);if(i&&e){let t=new Set();i.forEach(r=>{let a=r.name;if(t.has(a))return;t.add(a);let m=this._triggers.get(a).fallbackTransition,v=e.get(a)||Ec,x=new fr(hr),w=new Cr(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:m,fromState:v,toState:x,player:w,isFallbackTransition:!0});});}}removeNode(n,i){let e=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,i),this.triggerLeaveAnimation(n,i,!0))return;let t=!1;if(e.totalAnimations){let r=e.players.length?e.playersByQueriedElement.get(n):[];if(r&&r.length)t=!0;else{let a=n;for(;a=a.parentNode;)if(e.statesByElement.get(a)){t=!0;break;}}}if(this.prepareLeaveAnimationListeners(n),t)e.markElementAsRemoved(this.id,n,!1,i);else{let r=n[jn];(!r||r===xg)&&(e.afterFlush(()=>this.clearElementCache(n)),e.destroyInnerAnimations(n),e._onRemovalComplete(n,i));}}insertNode(n,i){Tn(n,this._hostClassName);}drainQueuedTransitions(n){let i=[];
1return this._queue.forEach(e=>{let t=e.player;if(t.destroyed)return;let r=e.element,a=this._elementListeners.get(r);a&&a.forEach(p=>{if(p.name==e.triggerName){let m=Oa(r,e.triggerName,e.fromState.value,e.toState.value);m._data=n,Ma(e.player,p.phase,m,p.callback);}}),t.markedForDestroy?this._engine.afterFlush(()=>{t.destroy();}):i.push(e);}),this._queue=[],i.sort((e,t)=>{let r=e.transition.ast.depCount,a=t.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(e.element,t.element)?1:-1;});}destroy(n){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n);}},Gc=class{constructor(n,i,e){u(this,"bodyNode");u(this,"driver");u(this,"_normalizer");u(this,"players",[]);u(this,"newHostElements",new Map());u(this,"playersByElement",new Map());u(this,"playersByQueriedElement",new Map());u(this,"statesByElement",new Map());u(this,"disabledNodes",new Set());u(this,"totalAnimations",0);u(this,"totalQueuedPlayers",0);u(this,"_namespaceLookup",{});u(this,"_namespaceList",[]);u(this,"_flushFns",[]);u(this,"_whenQuietFns",[]);u(this,"namespacesByHostElement",new Map());u(this,"collectedEnterElements",[]);u(this,"collectedLeaveElements",[]);u(this,"onRemovalComplete",(n,i)=>{});this.bodyNode=n,this.driver=i,this._normalizer=e;}_onRemovalComplete(n,i){this.onRemovalComplete(n,i);}get queuedPlayers(){let n=[];return this._namespaceList.forEach(i=>{i.players.forEach(e=>{e.queued&&n.push(e);});}),n;}createNamespace(n,i){let e=new zc(n,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(e,i):(this.newHostElements.set(i,e),this.collectEnterElement(i)),this._namespaceLookup[n]=e;}_balanceNamespaceList(n,i){let e=this._namespaceList,t=this.namespacesByHostElement;if(e.length-1>=0){let a=!1,p=this.driver.getParentElement(i);for(;p;){let m=t.get(p);if(m){let v=e.indexOf(m);e.splice(v+1,0,n),a=!0;break;}p=this.driver.getParentElement(p);}a||e.unshift(n);}else e.push(n);return t.set(i,n),n;}register(n,i){let e=this._namespaceLookup[n];return e||(e=this.createNamespace(n,i)),e;}registerTrigger(n,i,e){let t=this._namespaceLookup[n];t&&t.register(i,e)&&this.totalAnimations++;}destroy(n,i){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let e=this._fetchNamespace(n);this.namespacesByHostElement.delete(e.hostElement);let t=this._namespaceList.indexOf(e);t>=0&&this._namespaceList.splice(t,1),e.destroy(i),delete this._namespaceLookup[n];}));}_fetchNamespace(n){return this._namespaceLookup[n];}fetchNamespacesByElement(n){let i=new Set(),e=this.statesByElement.get(n);if(e){for(let t of e.values())if(t.namespaceId){let r=this._fetchNamespace(t.namespaceId);r&&i.add(r);}}return i;}trigger(n,i,e,t){if(Ia(i)){let r=this._fetchNamespace(n);if(r)return r.trigger(i,e,t),!0;}return!1;}insertNode(n,i,e,t){if(!Ia(i))return;let r=i[jn];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(i);a>=0&&this.collectedLeaveElements.splice(a,1);}if(n){let a=this._fetchNamespace(n);a&&a.insertNode(i,e);}t&&this.collectEnterElement(i);}collectEnterElement(n){this.collectedEnterElements.push(n);}markElementAsDisabled(n,i){i?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Tn(n,Tc)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Fo(n,Tc));}removeNode(n,i,e){if(Ia(i)){let t=n?this._fetchNamespace(n):null;t?t.removeNode(i,e):this.markElementAsRemoved(n,i,!1,e);let r=this.namespacesByHostElement.get(i);r&&r.id!==n&&r.removeNode(i,e);}else this._onRemovalComplete(i,e);}markElementAsRemoved(n,i,e,t,r){this.collectedLeaveElements.push(i),i[jn]={namespaceId:n,setForRemoval:t,hasAnimation:e,removedBeforeQueried:!1,previousTriggersValues:r};}listen(n,i,e,t,r){return Ia(i)?this._fetchNamespace(n).listen(i,e,t,r):()=>{};}_buildInstruction(n,i,e,t,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,e,t,n.fromState.options,n.toState.options,i,r);}destroyInnerAnimations(n){let i=this.driver.query(n,ur,!0);i.forEach(e=>this.destroyActiveAnimationsForElement(e)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(n,ka,!0),i.forEac
1h(e=>this.finishActiveQueriedAnimationOnElement(e)));}destroyActiveAnimationsForElement(n){let i=this.playersByElement.get(n);i&&i.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy();});}finishActiveQueriedAnimationOnElement(n){let i=this.playersByQueriedElement.get(n);i&&i.forEach(e=>e.finish());}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return ui(this.players).onDone(()=>n());n();});}processLeaveNode(n){var e;let i=n[jn];if(i&&i.setForRemoval){if(n[jn]=xg,i.namespaceId){this.destroyInnerAnimations(n);let t=this._fetchNamespace(i.namespaceId);t&&t.clearElementCache(n);}this._onRemovalComplete(n,i.setForRemoval);}(e=n.classList)!=null&&e.contains(Tc)&&this.markElementAsDisabled(n,!1),this.driver.query(n,i0,!0).forEach(t=>{this.markElementAsDisabled(t,!1);});}flush(n=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let e=0;e<this.collectedEnterElements.length;e++){let t=this.collectedEnterElements[e];Tn(t,o0);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let e=[];try{i=this._flushAnimations(e,n);}finally{for(let t=0;t<e.length;t++)e[t]();}}else for(let e=0;e<this.collectedLeaveElements.length;e++){let t=this.collectedLeaveElements[e];this.processLeaveNode(t);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){let e=this._whenQuietFns;this._whenQuietFns=[],i.length?ui(i).onDone(()=>{e.forEach(t=>t());}):e.forEach(t=>t());}}reportError(n){throw Kd(n);}_flushAnimations(n,i){let e=new _r(),t=[],r=new Map(),a=[],p=new Map(),m=new Map(),v=new Map(),x=new Set();this.disabledNodes.forEach(ae=>{x.add(ae);let de=this.driver.query(ae,n0,!0);for(let me=0;me<de.length;me++)x.add(de[me]);});let w=this.bodyNode,k=Array.from(this.statesByElement.keys()),S=ug(k,this.collectedEnterElements),E=new Map(),I=0;S.forEach((ae,de)=>{let me=Oc+I++;E.set(de,me),ae.forEach(Se=>Tn(Se,me));});let T=[],D=new Set(),L=new Set();for(let ae=0;ae<this.collectedLeaveElements.length;ae++){let de=this.collectedLeaveElements[ae],me=de[jn];me&&me.setForRemoval&&(T.push(de),D.add(de),me.hasAnimation?this.driver.query(de,r0,!0).forEach(Se=>D.add(Se)):L.add(de));}let J=new Map(),G=ug(k,Array.from(D));G.forEach((ae,de)=>{let me=ya+I++;J.set(de,me),ae.forEach(Se=>Tn(Se,me));}),n.push(()=>{S.forEach((ae,de)=>{let me=E.get(de);ae.forEach(Se=>Fo(Se,me));}),G.forEach((ae,de)=>{let me=J.get(de);ae.forEach(Se=>Fo(Se,me));}),T.forEach(ae=>{this.processLeaveNode(ae);});});let pe=[],Ce=[];for(let ae=this._namespaceList.length-1;ae>=0;ae--)this._namespaceList[ae].drainQueuedTransitions(i).forEach(me=>{let Se=me.player,pt=me.element;if(pe.push(Se),this.collectedEnterElements.length){let Et=pt[jn];if(Et&&Et.setForMove){if(Et.previousTriggersValues&&Et.previousTriggersValues.has(me.triggerName)){let gn=Et.previousTriggersValues.get(me.triggerName),$t=this.statesByElement.get(me.element);if($t&&$t.has(me.triggerName)){let fi=$t.get(me.triggerName);fi.value=gn,$t.set(me.triggerName,fi);}}Se.destroy();return;}}let tn=!w||!this.driver.containsElement(w,pt),Lt=J.get(pt),Rn=E.get(pt),Je=this._buildInstruction(me,e,Rn,Lt,tn);if(Je.errors&&Je.errors.length){Ce.push(Je);return;}if(tn){Se.onStart(()=>Ii(pt,Je.fromStyles)),Se.onDestroy(()=>Gn(pt,Je.toStyles)),t.push(Se);return;}if(me.isFallbackTransition){Se.onStart(()=>Ii(pt,Je.fromStyles)),Se.onDestroy(()=>Gn(pt,Je.toStyles)),t.push(Se);return;}let lo=[];Je.timelines.forEach(Et=>{Et.stretchStartingKeyframe=!0,this.disabledNodes.has(Et.element)||lo.push(Et);}),Je.timelines=lo,e.append(pt,Je.timelines);let Ji={instruction:Je,player:Se,element:pt};a.push(Ji),Je.queriedElements.forEach(Et=>cn(p,Et,[]).push(Se)),Je.preStyleProps.forEach((Et,gn)=>{if(Et.size){let $t=m.get(gn);$t||m.set(gn,$t=new Set()),Et.forEach((fi,po)=>$t.add(po));}}),Je.postStyleProps.forEach((Et,gn)=>{let $t=v.get(gn);$t||v.set(gn,$t=new Set()),Et.forEach((fi,po)=>$t.add(po));});});if(Ce.length){let ae=[];Ce.forEach(de=>{ae.push(Zd(de.triggerName,de.errors));}),pe.forEach(de=>de.destroy()),this.reportError(ae);}let Ee=new Map(),Xe=new Map();a.forEach(ae=>{let de=ae.element;e.has(de)&&(Xe.set(de,de),this._beforeAnimationBuild(ae.player.namespaceId,ae.instruction,Ee));}),t.forEach(ae=>{let de=ae.element;this._getPreviousPlayers(de,!1,ae.namespaceId,ae.triggerName,null).forEach(Se=>{cn(Ee,de,[]).push(Se),Se.destroy();});});let Ke=T.filter(ae=>mg(ae,m,v)),rt=new Map();
1gg(rt,this.driver,L,v,Nn).forEach(ae=>{mg(ae,m,v)&&Ke.push(ae);});let dn=new Map();S.forEach((ae,de)=>{gg(dn,this.driver,new Set(ae),m,pr);}),Ke.forEach(ae=>{var Se,pt;let de=rt.get(ae),me=dn.get(ae);rt.set(ae,new Map([...((Se=de==null?void 0:de.entries())!=null?Se:[]),...((pt=me==null?void 0:me.entries())!=null?pt:[])]));});let ri=[],Wi=[],Xi={};a.forEach(ae=>{let{element:de,player:me,instruction:Se}=ae;if(e.has(de)){if(x.has(de)){me.onDestroy(()=>Gn(de,Se.toStyles)),me.disabled=!0,me.overrideTotalTime(Se.totalTime),t.push(me);return;}let pt=Xi;if(Xe.size>1){let Lt=de,Rn=[];for(;Lt=Lt.parentNode;){let Je=Xe.get(Lt);if(Je){pt=Je;break;}Rn.push(Lt);}Rn.forEach(Je=>Xe.set(Je,pt));}let tn=this._buildAnimation(me.namespaceId,Se,Ee,r,dn,rt);if(me.setRealPlayer(tn),pt===Xi)ri.push(me);else{let Lt=this.playersByElement.get(pt);Lt&&Lt.length&&(me.parentPlayer=ui(Lt)),t.push(me);}}else Ii(de,Se.fromStyles),me.onDestroy(()=>Gn(de,Se.toStyles)),Wi.push(me),x.has(de)&&t.push(me);}),Wi.forEach(ae=>{let de=r.get(ae.element);if(de&&de.length){let me=ui(de);ae.setRealPlayer(me);}}),t.forEach(ae=>{ae.parentPlayer?ae.syncPlayerEvents(ae.parentPlayer):ae.destroy();});for(let ae=0;ae<T.length;ae++){let de=T[ae],me=de[jn];if(Fo(de,ya),me&&me.hasAnimation)continue;let Se=[];if(p.size){let tn=p.get(de);tn&&tn.length&&Se.push(...tn);let Lt=this.driver.query(de,ka,!0);for(let Rn=0;Rn<Lt.length;Rn++){let Je=p.get(Lt[Rn]);Je&&Je.length&&Se.push(...Je);}}let pt=Se.filter(tn=>!tn.destroyed);pt.length?d0(this,de,pt):this.processLeaveNode(de);}return T.length=0,ri.forEach(ae=>{this.players.push(ae),ae.onDone(()=>{ae.destroy();let de=this.players.indexOf(ae);this.players.splice(de,1);}),ae.play();}),ri;}afterFlush(n){this._flushFns.push(n);}afterFlushAnimationsDone(n){this._whenQuietFns.push(n);}_getPreviousPlayers(n,i,e,t,r){let a=[];if(i){let p=this.playersByQueriedElement.get(n);p&&(a=p);}else{let p=this.playersByElement.get(n);if(p){let m=!r||r==hr;p.forEach(v=>{v.queued||!m&&v.triggerName!=t||a.push(v);});}}return(e||t)&&(a=a.filter(p=>!(e&&e!=p.namespaceId||t&&t!=p.triggerName))),a;}_beforeAnimationBuild(n,i,e){let t=i.triggerName,r=i.element,a=i.isRemovalTransition?void 0:n,p=i.isRemovalTransition?void 0:t;for(let m of i.timelines){let v=m.element,x=v!==r,w=cn(e,v,[]);this._getPreviousPlayers(v,x,a,p,i.toState).forEach(S=>{let E=S.getRealPlayer();E.beforeDestroy&&E.beforeDestroy(),S.destroy(),w.push(S);});}Ii(r,i.fromStyles);}_buildAnimation(n,i,e,t,r,a){let p=i.triggerName,m=i.element,v=[],x=new Set(),w=new Set(),k=i.timelines.map(E=>{let I=E.element;x.add(I);let T=I[jn];if(T&&T.removedBeforeQueried)return new eo(E.duration,E.delay);let D=I!==m,L=g0((e.get(I)||a0).map(Ee=>Ee.getRealPlayer())).filter(Ee=>{let Xe=Ee;return Xe.element?Xe.element===I:!1;}),J=r.get(I),G=a.get(I),pe=xc(this._normalizer,E.keyframes,J,G),Ce=this._buildPlayer(E,pe,L);if(E.subTimeline&&t&&w.add(I),D){let Ee=new Cr(n,p,I);Ee.setRealPlayer(Ce),v.push(Ee);}return Ce;});v.forEach(E=>{cn(this.playersByQueriedElement,E.element,[]).push(E),E.onDone(()=>c0(this.playersByQueriedElement,E.element,E));}),x.forEach(E=>Tn(E,wc));let S=ui(k);return S.onDestroy(()=>{x.forEach(E=>Fo(E,wc)),Gn(m,i.toStyles);}),w.forEach(E=>{cn(t,E,[]).push(S);}),S;}_buildPlayer(n,i,e){return i.length>0?this.driver.animate(n.element,i,n.duration,n.delay,n.easing,e):new eo(n.duration,n.delay);}},Cr=class{constructor(n,i,e){u(this,"namespaceId");u(this,"triggerName");u(this,"element");u(this,"_player",new eo());u(this,"_containsRealPlayer",!1);u(this,"_queuedCallbacks",new Map());u(this,"destroyed",!1);u(this,"parentPlayer",null);u(this,"markedForDestroy",!1);u(this,"disabled",!1);u(this,"queued",!0);u(this,"totalTime",0);this.namespaceId=n,this.triggerName=i,this.element=e;}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((i,e)=>{i.forEach(t=>Ma(n,e,void 0,t));}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1);}getRealPlayer(){return this._player;}overrideTotalTime(n){this.totalTime=n;}syncPlayerEvents(n){let i=this._player;i.triggerCallback&&n.onStart(()=>i.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy());}_queueEvent(n,i){cn(this._queuedCallbacks,n,[]).push(i);}
1onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n);}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n);}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n);}init(){this._player.init();}hasStarted(){return this.queued?!1:this._player.hasStarted();}play(){!this.queued&&this._player.play();}pause(){!this.queued&&this._player.pause();}restart(){!this.queued&&this._player.restart();}finish(){this._player.finish();}destroy(){this.destroyed=!0,this._player.destroy();}reset(){!this.queued&&this._player.reset();}setPosition(n){this.queued||this._player.setPosition(n);}getPosition(){return this.queued?0:this._player.getPosition();}triggerCallback(n){let i=this._player;i.triggerCallback&&i.triggerCallback(n);}};function c0(o,n,i){let e=o.get(n);if(e){if(e.length){let t=e.indexOf(i);e.splice(t,1);}e.length==0&&o.delete(n);}return e;}function l0(o){return o!=null?o:null;}function Ia(o){return o&&o.nodeType===1;}function p0(o){return o=="start"||o=="done";}function dg(o,n){let i=o.style.display;return o.style.display=n!=null?n:"none",i;}function gg(o,n,i,e,t){let r=[];i.forEach(m=>r.push(dg(m)));let a=[];e.forEach((m,v)=>{let x=new Map();m.forEach(w=>{let k=n.computeStyle(v,w,t);x.set(w,k),(!k||k.length==0)&&(v[jn]=s0,a.push(v));}),o.set(v,x);});let p=0;return i.forEach(m=>dg(m,r[p++])),a;}function ug(o,n){let i=new Map();if(o.forEach(p=>i.set(p,[])),n.length==0)return i;let e=1,t=new Set(n),r=new Map();function a(p){if(!p)return e;let m=r.get(p);if(m)return m;let v=p.parentNode;return i.has(v)?m=v:t.has(v)?m=e:m=a(v),r.set(p,m),m;}return n.forEach(p=>{let m=a(p);m!==e&&i.get(m).push(p);}),i;}function Tn(o,n){var i;(i=o.classList)==null||i.add(n);}function Fo(o,n){var i;(i=o.classList)==null||i.remove(n);}function d0(o,n,i){ui(i).onDone(()=>o.processLeaveNode(n));}function g0(o){let n=[];return vg(o,n),n;}function vg(o,n){for(let i=0;i<o.length;i++){let e=o[i];e instanceof Yr?vg(e.players,n):n.push(e);}}function u0(o,n){let i=Object.keys(o),e=Object.keys(n);if(i.length!=e.length)return!1;for(let t=0;t<i.length;t++){let r=i[t];if(!n.hasOwnProperty(r)||o[r]!==n[r])return!1;}return!0;}function mg(o,n,i){let e=i.get(o);if(!e)return!1;let t=n.get(o);return t?e.forEach(r=>t.add(r)):n.set(o,e),i.delete(o),!0;}var Ao=class{constructor(n,i,e){u(this,"_driver");u(this,"_normalizer");u(this,"_transitionEngine");u(this,"_timelineEngine");u(this,"_triggerCache",{});u(this,"onRemovalComplete",(n,i)=>{});this._driver=i,this._normalizer=e,this._transitionEngine=new Gc(n.body,i,e),this._timelineEngine=new Nc(n.body,i,e),this._transitionEngine.onRemovalComplete=(t,r)=>this.onRemovalComplete(t,r);}registerTrigger(n,i,e,t,r){let a=n+"-"+t,p=this._triggerCache[a];if(!p){let m=[],v=[],x=_g(this._driver,r,m,v);if(m.length)throw $d(t,m);p=Z_(t,x,this._normalizer),this._triggerCache[a]=p;}this._transitionEngine.registerTrigger(i,t,p);}register(n,i){this._transitionEngine.register(n,i);}destroy(n,i){this._transitionEngine.destroy(n,i);}onInsert(n,i,e,t){this._transitionEngine.insertNode(n,i,e,t);}onRemove(n,i,e){this._transitionEngine.removeNode(n,i,e);}disableAnimations(n,i){this._transitionEngine.markElementAsDisabled(n,i);}process(n,i,e,t){if(e.charAt(0)=="@"){let[r,a]=vc(e),p=t;this._timelineEngine.command(r,i,a,p);}else this._transitionEngine.trigger(n,i,e,t);}listen(n,i,e,t,r){if(e.charAt(0)=="@"){let[a,p]=vc(e);return this._timelineEngine.listen(a,i,p,r);}return this._transitionEngine.listen(n,i,e,t,r);}flush(n=-1){this._transitionEngine.flush(n);}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players];}whenRenderingDone(){return this._transitionEngine.whenRenderingDone();}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n);}};function m0(o,n){let i=null,e=null;return Array.isArray(n)&&n.length?(i=Dc(n[0]),n.length>1&&(e=Dc(n[n.length-1]))):n instanceof Map&&(i=Dc(n)),i||e?new h0(o,i,e):null;}var h0=(()=>{let n=class n{constructor(e,t,r){u(this,"_element");u(this,"_startStyles");u(this,"_endStyles");u(this,"_state",0);u(this,"_initialStyles");this._element=e,this._startStyles=t,this._endStyles=r;let a=n.initialStylesByElement.get(e);a||n.initialStylesByElement.set(e,a=new Map()),this._initialStyles=a;}start(){this._state<1&&(this._startStyles&&Gn(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(Gn(this._element,this._initialStyles),this._endStyles&&(Gn(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ii(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ii(this._element,this._endStyles),this._endStyles=null),Gn(this._element,this._initialStyles),this._state=3);}};u(n,"initialStylesByElement",new WeakMap());let o=n;return o;})();function Dc(o){let n=null;return o.forEach((i,e)=>{_0(e)&&(n=n||new Map(),n.set(e,i));}),n;}function _0(o){return o==="display"||o==="position";}var Na=class{constructor(n,i,e,t){u(this,"element");u(this,"keyframes");u(this,"options");u(this,"_specialStyles");u(this,"_onDoneFns",[]);
1u(this,"_onStartFns",[]);u(this,"_onDestroyFns",[]);u(this,"_duration");u(this,"_delay");u(this,"_initialized",!1);u(this,"_finished",!1);u(this,"_started",!1);u(this,"_destroyed",!1);u(this,"_finalKeyframe");u(this,"_originalOnDoneFns",[]);u(this,"_originalOnStartFns",[]);u(this,"domPlayer",null);u(this,"time",0);u(this,"parentPlayer",null);u(this,"currentSnapshot",new Map());this.element=n,this.keyframes=i,this.options=e,this._specialStyles=t,this._duration=e.duration,this._delay=e.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[]);}init(){this._buildPlayer()&&this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let n=this.keyframes,i=this._triggerWebAnimation(this.element,n,this.options);if(!i)return this._onFinish(),null;this.domPlayer=i,this._finalKeyframe=n.length?n[n.length-1]:new Map();let e=()=>this._onFinish();return i.addEventListener("finish",e),this.onDestroy(()=>{i.removeEventListener("finish",e);}),i;}_preparePlayerBeforeStart(){var n;this._delay?this._resetDomPlayerState():(n=this.domPlayer)==null||n.pause();}_convertKeyframesToObject(n){let i=[];return n.forEach(e=>{i.push(Object.fromEntries(e));}),i;}_triggerWebAnimation(n,i,e){let t=this._convertKeyframesToObject(i);try{return n.animate(t,e);}catch(r){return null;}}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n);}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n);}onDestroy(n){this._onDestroyFns.push(n);}play(){let n=this._buildPlayer();n&&(this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),n.play());}pause(){var n;this.init(),(n=this.domPlayer)==null||n.pause();}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish());}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}_resetDomPlayerState(){var n;(n=this.domPlayer)==null||n.cancel();}restart(){this.reset(),this.play();}hasStarted(){return this._started;}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[]);}setPosition(n){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=n*this.time);}getPosition(){var n;return this.domPlayer?+((n=this.domPlayer.currentTime)!=null?n:0)/this.time:this._initialized?1:0;}get totalTime(){return this._delay+this._duration;}beforeDestroy(){let n=new Map();this.hasStarted()&&this._finalKeyframe.forEach((e,t)=>{t!=="offset"&&n.set(t,this._finished?e:Ta(this.element,t));}),this.currentSnapshot=n;}triggerCallback(n){let i=n==="start"?this._onStartFns:this._onDoneFns;i.forEach(e=>e()),i.length=0;}},za=class{validateStyleProperty(n){return!0;}validateAnimatableStyleProperty(n){return!0;}containsElement(n,i){return bc(n,i);}getParentElement(n){return wa(n);}query(n,i,e){return Pc(n,i,e);}computeStyle(n,i,e){return Ta(n,i);}animate(n,i,e,t,r,a=[]){let p=t==0?"both":"forwards",m={duration:e,delay:t,fill:p};r&&(m.easing=r);let v=new Map(),x=a.filter(S=>S instanceof Na);ig(e,t)&&x.forEach(S=>{S.currentSnapshot.forEach((E,I)=>v.set(I,E));});let w=tg(i).map(S=>new Map(S));w=og(n,w,v);let k=m0(n,w);return new Na(n,w,m,k);}};var Fa="@",bg="@.disabled",Ga=class{constructor(n,i,e,t){u(this,"namespaceId");u(this,"delegate");u(this,"engine");u(this,"_onDestroy");u(this,"\u0275type",0);this.namespaceId=n,this.delegate=i,this.engine=e,this._onDestroy=t;}get data(){return this.delegate.data;}destroyNode(n){var i,e;(e=(i=this.delegate).destroyNode)==null||e.call(i,n);}destroy(){var n;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy();});}),(n=this._onDestroy)==null||n.call(this);}createElement(n,i){return this.delegate.createElement(n,i);}createComment(n){return this.delegate.createComment(n);}createText(n){return this.delegate.createText(n);}appendChild(n,i){this.delegate.appendChild(n,i),this.engine.onInsert(this.namespaceId,i,n,!1);}insertBefore(n,i,e,t=!0){this.delegate.insertBefore(n,i,e),this.engine.onInsert(this.namespaceId,i,n,t);}removeChild(n,i,e,t){if(t){this.delegate.removeChild(n,i,e,t);return;}this.parentNode(i)&&this.engine.onRemove(this.namespaceId,i,this.delegate);}selectRootElement(n,i){return this.delegate.selectRootElement(n,i);}parentNode(n){return this.delegate.parentNode(n);}nextSibling(n){return this.delegate.nextSibling(n);}setAttribute(n,i,e,t){this.delegate.setAttribute(n,i,e,t);}removeAttribute(n,i,e){this.delegate.removeAttribute(n,i,e);}addClass(n,i){this.delegate.addClass(n,i);}removeClass(n,i){this.delegate.removeClass(n,i);}setStyle(n,i,e,t){this.delegate.setStyle(n,i,e,t);}removeStyle(n,i,e){this.delegate.removeStyle(n,i,e);}setProperty(n,i,e){i.charAt(0)==Fa&&i==bg?this.disableAnimations(n,!!e):this.delegate.setProperty(n,i,e);}setValue(n,i){this.delegate.setValue(n,i);}listen(n,i,e,t){return this.delegate.listen(n,i,e,t);}disableAnimations(n,i){this.engine.disableAnimations(n,i);}},jc=class extends Ga{constructor(i,e,t,r,a){super(e,t,r,a);u(this,"factory");this.factory=i,this.namespaceId=e;}setProperty(i,e,t){e.charAt(0)==Fa?e.charAt(1)=="."&&e==bg?(t=t===void 0?!0:!!t,this.disableAnimations(i,t)):this.engine.process(this.namespaceId,i,e.slice(1),t):this.delegate.setProperty(i,e,t);}listen(i,e,t,r){if(e.charAt(0)==Fa){let a=f0(i),p=e.slice(1),m="";return p.charAt(0)!=Fa&&([p,m]=C0(p)),this.engine.listen(this.namespaceId,a,p,m,v=>{let x=v._data||-1;this.factory.scheduleListenerCallback(x,t,v);});}return this.delegate.listen(i,e,t,r);}};function f0(o){switch(o){case"body":return document.body;case"document":return document;case"window":return window;default:return o;}}function C0(o){let n=o.indexOf("."),i=o.substring(0,n),e=o.slice(n+1);return[i,e];}var ja=class{constructor(n,i,e){u(this,"delegate");u(this,"engine");u(this,"_zone");u(this,"_currentId",0);u(this,"_microtaskId",1);u(this,"_animationCallbacksBuffer",[]);u(this,"_rendererCache",new Map());u(this,"_cdRecurDepth",0);this.delegate=n,this.engine=i,this._zone=e,i.onRemovalComplete=(t,r)=>{r==null||r.removeChild(null,t);};}createRenderer(n,i){var v;let t=this.delegate.createRenderer(n,i);if(!n||!((v=i==null?void 0:i.data)!=null&&v.animation)){let x=this._rendererCache,w=x.get(t);if(!w){let k=()=>x.delete(t);w=new Ga("",t,this.engine,k),x.set(t,w);}return w;}let r=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);let p=x=>{Array.isArray(x)?x.forEach(p):this.engine.registerTrigger(r,a,n,x.name,x);};return i.data.animation.forEach(p),new jc(this,a,t,this.engine);}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(n,i,e){if(n>=0&&n<this._microtaskId){this._zone.run(()=>i(e));return;}let t=this._animationCallbacksBuffer;t.length==0&&queueMicrotask(()=>{this._zone.run(()=>{t.forEach(r=>{let[a,p]=r;a(p);}),this._animationCallbacksBuffer=[];});}),t.push([i,e]);}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId);}),this.delegate.end&&this.delegate.end();}whenRenderingDone(){return this.engine.whenRenderingDone();}componentReplaced(n){var i,e;this.engine.flush(),(e=(i=this.delegate).componentReplaced)==null||e.call(i,n);}};var v0=(()=>{let n=class n extends Ao{constructor(e,t,r){super(e,t,r);}ngOnDestroy(){this.flush();}};u(n,"\u0275fac",function(t){return new(t||n)(re(Be),re(Fi),re(io));}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac}));let o=n;return o;})();function b0(){return new Aa();}function P0(){return new ja(Q(Pp),Q(Ao),Q(dt));}var Mg=[{provide:io,useFactory:b0},{provide:Ao,useClass:v0},{provide:bn,useFactory:P0}],M0=[{provide:Fi,useClass:$c},{provide:ar,useValue:"NoopAnimations"},...Mg],Pg=[{provide:Fi,useFactory:()=>new za()},{provide:ar,useFactory:()=>"BrowserAnimations"},...Mg],Og=(()=>{let n=class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?M0:Pg};}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275mod",it({type:n})),u(n,"\u0275inj",nt({providers:Pg,imports:[Wr]}));let o=n;return o;})();var wg=(()=>{let n=class n{};n.ɵfac=function(t){return new(t||n)();},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var $a=class{constructor(n){this.options=n,this.whitelist=[],this.whitelistLoaded=!1,this.initialized=!1,this.handleClick=i=>{var a;if(i.defaultPrevented||i.button!==0||i.metaKey||i.ctrlKey||i.shiftKey||i.altKey)return;let e=this.anchorFromEvent(i);if(!e)return;let t=(a=e.dataset.externalOriginalHref)!=null?a:e.getAttribute("href");if(!t)return;let r=this.resolveJumpUrl(t);if(!r){e.dataset.externalWrapped==="1"&&(e.setAttribute("href",t),delete e.dataset.externalWrapped,delete e.dataset.externalOriginalHref);return;}i.preventDefault(),this.options.navigate(r);},this.handleContextMenu=i=>{var a;let e=this.anchorFromEvent(i);if(!e)return;let t=(a=e.dataset.externalOriginalHref)!=null?a:e.getAttribute("href");if(!t)return;let r=this.resolveJumpUrl(t);if(!r){e.dataset.externalWrapped==="1"&&(e.setAttribute("href",t),delete e.dataset.externalWrapped,delete e.dataset.externalOriginalHref);return;}if(e.dataset.externalWrapped==="1"){e.setAttribute("href",r);return;}e.dataset.externalOriginalHref=t,e.setAttribute("href",r),e.dataset.externalWrapped="1";};}init(){this.initialized||(this.initialized=!0,this.loadWhitelist(),document.addEventListener("click",this.handleClick,!0),this.options.enableContextMenu&&document.addEventListener("contextmenu",this.handleContextMenu,!0));}destroy(){document.removeEventListener("click",this.handleClick,!0),document.removeEventListener("contextmenu",this.handleContextMenu,!0),this.initialized=!1;}isInWhitelist(n){let i=n.toLowerCase();return this.whitelist.some(e=>{let t=e.toLowerCase();if(t.startsWith("*.")){let r=t.slice(2);return i===r||i.endsWith("."+r);}return i===t;});}loadWhitelist(){return ye(this,null,function*(){try{let n=yield this.options.fetchWhitelist();this.whitelist=n.filter(i=>typeof i=="string"&&i.length>0);}catch(n){}finally{this.whitelistLoaded=!0;}});}resolveJumpUrl(n){let i;try{i=new URL(n,window.location.href);}catch(t){return null;}if(i.protocol!=="http:"&&i.protocol!=="https:")return null;let e=i.hostname;return!e||e===window.location.hostname||this.whitelistLoaded&&this.isInWhitelist(e)?null:this.options.buildJumpUrl(i.href);}anchorFromEvent(n){var i,e;return(e=(i=n.target)==null?void 0:i.closest)==null?void 0:e.call(i,"a");}};var yg=(()=>{let n=class n{constructor(e,t){this.injector=e,this.ngZone=t,this.core=new $a({fetchWhitelist:()=>this.fetchWhitelist(),buildJumpUrl:r=>`${ie.MWEB_URL.replace("views/","")}external_link.html?target=${encodeURIComponent(r)}`,navigate:r=>this.ngZone.run(()=>window.open(r,"_blank")),enableContextMenu:!0});}init(){this.ngZone.runOutsideAngular(()=>
1this.core.init());}fetchWhitelist(){let e=this.injector.get(W);return new Promise(t=>{e.get(j.globalSettings,!1,!0).subscribe({next:r=>{var p;let a=(p=r==null?void 0:r.resp_data)==null?void 0:p.allowed_external_link_domains;t(Array.isArray(a)?a:[]);},error:()=>t([])});});}};n.ɵfac=function(t){return new(t||n)(re(Vt),re(dt));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var Uc="dweb-theme-preference",Ha=(()=>{let n=class n{constructor(e){this.document=e,this.preferenceSubject=new jr("system"),this.initialized=!1,this.preference$=this.preferenceSubject.asObservable(),this.handleSystemThemeChange=t=>{this.preference==="system"&&this.applyTheme(t.matches?"dark":"light");};}get preference(){return this.preferenceSubject.value;}init(){if(this.initialized)return;this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQuery.addEventListener("change",this.handleSystemThemeChange);let e=localStorage.getItem(Uc),t=this.isThemePreference(e)?e:"system";e&&t==="system"&&e!=="system"&&localStorage.removeItem(Uc),this.preferenceSubject.next(t),this.applyTheme(this.resolveTheme(t)),this.initialized=!0;}setPreference(e){this.initialized||this.init(),localStorage.setItem(Uc,e),this.preferenceSubject.next(e),this.applyTheme(this.resolveTheme(e));}ngOnDestroy(){var e;(e=this.mediaQuery)==null||e.removeEventListener("change",this.handleSystemThemeChange);}isThemePreference(e){return e==="system"||e==="light"||e==="dark";}resolveTheme(e){return e==="system"?this.mediaQuery.matches?"dark":"light":e;}applyTheme(e){let t=this.document.documentElement;t.dataset.theme=e,t.style.colorScheme=e;}};n.ɵfac=function(t){return new(t||n)(re(Be));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var y0=["appContainer"],Sg=(()=>{let n=class n{constructor(e,t,r,a){this.appService=e,this.overlayService=t,this.externalLinkService=r,this.themeService=a,this.title="app";}ngOnInit(){this.themeService.init();}ngAfterViewInit(){this.overlayService.setViewContainerRef(this.vcr),setTimeout(()=>this.externalLinkService.init());}};n.ɵfac=function(t){return new(t||n)(O(wg),O(Dp),O(yg),O(Ha));},n.ɵcmp=F({type:n,selectors:[["app-root"]],viewQuery:function(t,r){if(t&1&&_e(y0,5,nn),t&2){let a;ee(a=te())&&(r.vcr=a.first);}},standalone:!1,decls:4,vars:0,consts:[["appContainer",""],["id","copy-input","type","text","value","zsxq",1,"copy-input"]],template:function(t,r){t&1&&(s(0,"div",null,0),M(2,"router-outlet")(3,"input",1),c());},dependencies:[yi],styles:[".copy-input[_ngcontent-%COMP%]{position:fixed;top:-900px;opacity:0}"]});let o=n;return o;})();var Vo=(()=>{let n=class n{constructor(){this._pageScroll$=new U(),this.pageScroll$=this._pageScroll$.asObservable(),this._videoIsPlay$=new U(),this.videoIsPlay$=this._videoIsPlay$.asObservable(),this._pauseVideo$=new U(),this.pauseVideo$=this._pauseVideo$.asObservable(),this.visibleVideoArr=[],this.visibleVideoArrLength=0,this._visibleVideo$=new U(),this.visibleVideo$=this._visibleVideo$.asObservable(),this.timer=null;}updateScroll(e){this._pageScroll$.next(e);}changeVideoStatus(){this._videoIsPlay$.next(!0);}pauseVideo(){this._pauseVideo$.next(!0);}setVisibleVideo(e){this.visibleVideoArr.push(e),clearTimeout(this.timer),this.timer=setTimeout(()=>{if(this.visibleVideoArr.length===this.visibleVideoArrLength){let t=this.visibleVideoArr[0];this.visibleVideoArr.forEach(r=>{r.distance<t.distance&&(t=r);}),this._visibleVideo$.next(t),this.visibleVideoArr=[],this.visibleVideoArrLength=0;}},1e3),this.visibleVideoArrLength=this.visibleVideoArr.length;}};n.ɵfac=function(t){return new(t||n)();},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var Ai=(()=>{let n=class n{constructor(){this._newSolution$=new U(),this.newSolution$=this._newSolution$.asObservable();}updateNewSolution(e){this._newSolution$.next(e);}};n.ɵfac=function(t){return new(t||n)();},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var k0=o=>({focusing:o});function S0(o,n){o&1&&M(0,"div",2);}function T0(o,n){if(o&1){let i=y();s(0,"div",3)(1,"div",5),f("click",function(){b(i);let t=d();return P(t.toSearchResultPage(!0));}),g(2,"\u5F53\u524D\u661F\u7403"),c(),s(3,"div",6),f("click",function(){b(i);let t=d();return P(t.toSearchResultPage());}),g(4,"\u5168\u90E8\u661F\u7403"),c()();}}function E0(o,n){if(o&1){let i=y();
1s(0,"div",9),f("mousedown",function(t){let r=b(i).$index,a=d(2);return P(a.handleSearchHistory(t,"search",r));}),s(1,"div",10),g(2),c(),s(3,"div",11),f("mousedown",function(t){let r=b(i).$index,a=d(2);return P(a.handleSearchHistory(t,"delete",r));}),c()();}if(o&2){let i=n.$implicit;l(2),A(i);}}function D0(o,n){if(o&1&&(s(0,"div",4)(1,"div",7),g(2,"\u6700\u8FD1\u641C\u7D22"),c(),B(3,E0,4,1,"div",8,Y),c()),o&2){let i=d();l(3),N(i.searchHistory);}}var Tg=(()=>{let n=class n{constructor(e,t,r,a,p){this.indexService=e,this.searchService=t,this.router=r,this.groupListService=a,this.message=p,this.isFocusingEmitter=new H(),this.userId=this.indexService.getSelfInfo("user_id"),this.searchPlaceholder=new Date().getTime()%2===1?"\u641C\u7D22\u661F\u7403\u3001\u6587\u4EF6\u3001\u4E3B\u9898":"\u53EF\u641C\u7D22\u5F53\u524D\u661F\u7403\u7684\u6587\u4EF6\u3001\u4E3B\u9898",this.searchInput="",this.searchValueMaxLength=128,this.searchFocusing=!1,this.searchHistory=[],this.searchHistoryMaxLength=6,this.subscriptions=[];}ngOnInit(){this.doSubscribe();}ngAfterViewInit(){this.setSearchInputVal(this.router.url);}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}doSubscribe(){let t=this.router.events.pipe(ut(r=>r instanceof wi)).pipe(Dt(r=>r.url),Qn(this.router.url),nr()).subscribe(([r,a])=>{r.startsWith("/search/")&&!a.startsWith("/search/")&&(this.searchService.searchValue=this.searchInput=""),this.setSearchInputVal(a);});this.subscriptions.push(t);}setSearchInputVal(e){setTimeout(()=>{this.searchInput=e.startsWith("/search/")?this.searchService.searchValue:"";});}handleFocus(){this.searchFocusing=!0,this.isFocusingEmitter.emit(),this.searchHistory=JSON.parse(localStorage.getItem(`search_history_${this.userId}`))||[];}handleKeydown(e){e.keyCode===13&&this.toSearchResultPage(!0);}beforeRedirectToSearchCheck(){this.searchInput.length>this.searchValueMaxLength&&(this.searchInput=this.searchInput.substring(0,this.searchValueMaxLength)),this.searchService.searchValue=this.searchInput.trim();let e=this.searchService.searchValue&&this.searchService.searchValue.length>0;return e&&this.setSearchHistory("search"),e;}setSearchHistory(e,t){if(e==="search"){if(this.searchHistory.length>0)if(t!==void 0){if(t===0)return;t>0&&this.searchHistory.splice(t,1);}else{let r=this.searchHistory.indexOf(this.searchService.searchValue);if(r===0)return;r>0&&this.searchHistory.splice(r,1);}this.searchHistory.unshift(this.searchService.searchValue);}else e==="delete"&&this.searchHistory.splice(t,1);this.searchHistory.length>this.searchHistoryMaxLength&&(this.searchHistory=this.searchHistory.splice(0,this.searchHistoryMaxLength)),localStorage.setItem(`search_history_${this.userId}`,JSON.stringify(this.searchHistory));}handleSearchHistory(e,t,r){e.preventDefault(),e.stopPropagation(),t==="search"?(this.searchInput=this.searchService.searchValue=this.searchHistory[r],this.searchFocusing=!1):t==="delete"&&this.setSearchHistory("delete",r);}toSearchResultPage(e=!1){if(this.beforeRedirectToSearchCheck()){this.searchFocusing=!1;let t=this.groupListService.getSelectedGroup();t&&localStorage.setItem("searchCurrentGroup",JSON.stringify(t));let r=this.groupListService.getAllGroups(),a=r&&r.length>0;if(e){let p=JSON.parse(localStorage.getItem("searchCurrentGroup")),m=p.group_id;gi(p)?this.message.info({content:"\u52A0\u5165\u65F6\u95F4\u6EE1 72 \u5C0F\u65F6\u540E\u53EF\u4F7F\u7528\u641C\u7D22"}):a?this.router.navigate(["search",this.searchService.searchValue],{queryParams:{groupId:m,searchUid:Math.random()}}):this.message.info({content:"\u8FD8\u6CA1\u6709\u52A0\u5165\u661F\u7403"});}else a?this.router.navigate(["search",this.searchService.searchValue],{queryParams:{searchUid:Math.random()}}):window.location.href=ie.BASE_URL+`/search/${this.searchService.searchValue}?searchUid=${Math.random()}`;}}};n.ɵfac=function(t){return new(t||n)(O(q),O(Rt),O(ue),O(ce),O(le));},n.ɵcmp=F({type:n,selectors:[["app-search-bar"]],outputs:{isFocusingEmitter:"isFocusing"},standalone:!1,decls:5,vars:9,consts:[[1,"search-container"],["autocomplete","off","type","text","id","searchInput",3,"ngModelChange","click","keydown","blur","ngClass","maxlength","ngModel","placeholder"],[1,"search-icon"],[1,"search-btn"],[1,"search-history"],[1,"current",3,"click"],[1,"all",3,"click"],[1,"title"],[1,"record"],[1,"record",3,"mousedown"],[1,"text"],[1,"remove",3,"mousedown"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"input",1),On("ngModelChange",function(p){return Mn(r.searchInput,p)||(r.searchInput=p),p;}),f("click",function(){return r.handleFocus();})("keydown",function(p){return r.handleKeydown(p);})("blur",function(){return r.searchFocusing=!1;}),c(),h(2,S0,1,0,"div",2),h(3,T0,5,0,"div",3),h(4,D0,5,0,"div",4),c()),t&2&&(l(),C("ngClass",R(7,k0,r.searchFocusing||r.searchInput.length>0))("maxlength",r.searchValueMaxLength),Pn("ngModel",r.searchInput),C("placeholder",r.searchPlaceholder),l(),_(r.searchFocusing||r.searchInput.length>0?-1:2),l(),_(r.searchFocusing||r.searchInput.length>0?3:-1),l(),_(r.searchFocusing&&r.searchHistory.length>0?4:-1));},dependencies:[K,yn,kn,ki,Sn],styles:['.search-container[_ngcontent-%COMP%]{position:relative;max-width:1200px;margin:0 auto}.search-container[_ngcontent-%COMP%]   .search-icon[_ngcontent-%COMP%]{height:32px;width:32px;background-image:url("./media/[email protected]");background-position:-98px -411px;position:absolute;right:0;top:0}.search-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{outline:none;width:100%;height:32px;border:1px solid gray;font-size:14px;font-family:PingFangSC-Regular;border-radius:3px;border-width:0px;background:var(--dweb-bg-panel-2, #F5F6FA);padding:0 34px 0 12px;box-sizing:border-box;-moz-padding-top:3px;border:2px solid transparent}.search-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:var(--dweb-text-faint, #C5C6CB)}.search-container[_ngcontent-%COMP%]   input.focusing[_ngcontent-%COMP%]{border-color:var(--dweb-brand);width:calc(100% - 154px);border-top-right-radius:0;border-bottom-right-radius:0;background-color:var(--dweb-bg-panel)}.search-container[_ngcontent-%COMP%]   .search-btn[_ngcontent-%COMP%]{font-size:14px;color:#fff;height:32px;line-height:32px;display:flex;text-align:center;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.search-container[_ngcontent-%COMP%]   .search-btn[_ngcontent-%COMP%]   .current[_ngcontent-%COMP%]{width:78px;background:var(--dweb-brand);margin-right:4px;border-top-right-radius:3px;border-bottom-right-radius:3px;
1cursor:pointer}.search-container[_ngcontent-%COMP%]   .search-btn[_ngcontent-%COMP%]   .current[_ngcontent-%COMP%]:hover{background-color:var(--dweb-brand-hover)}.search-container[_ngcontent-%COMP%]   .search-btn[_ngcontent-%COMP%]   .all[_ngcontent-%COMP%]{width:72px;background:var(--dweb-bg-panel);border-radius:3px;cursor:pointer;border:2px solid var(--dweb-brand);color:var(--dweb-brand);line-height:29px}.search-container[_ngcontent-%COMP%]   .search-btn[_ngcontent-%COMP%]   .all[_ngcontent-%COMP%]:hover{color:#fff;background-color:var(--dweb-brand-hover)}.search-container[_ngcontent-%COMP%]   .search-history[_ngcontent-%COMP%]{position:absolute;top:41px;left:0;right:0;width:100%;background:var(--dweb-bg-panel);box-shadow:0 1px 0 var(--dweb-border-subtle) inset,0 8px 20px #0000001a;padding-bottom:16px;border-radius:0 0 4px 4px}.search-container[_ngcontent-%COMP%]   .search-history[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:12px;color:var(--dweb-text-muted);height:40px;line-height:40px;padding-left:40px}.search-container[_ngcontent-%COMP%]   .search-history[_ngcontent-%COMP%]   .record[_ngcontent-%COMP%]{height:40px;line-height:40px;padding:0 30px 0 40px;display:flex;justify-content:space-between;align-items:center;color:var(--dweb-text-primary, #2F3034);cursor:pointer}.search-container[_ngcontent-%COMP%]   .search-history[_ngcontent-%COMP%]   .record[_ngcontent-%COMP%]:hover{background:#c9e5df33}.search-container[_ngcontent-%COMP%]   .search-history[_ngcontent-%COMP%]   .record[_ngcontent-%COMP%]:hover   .remove[_ngcontent-%COMP%]{width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-357px -197px}.search-container[_ngcontent-%COMP%]   .search-history[_ngcontent-%COMP%]   .record[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{flex:1}html[data-theme=dark][_nghost-%COMP%]   .search-container[_ngcontent-%COMP%]   .search-history[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .search-container[_ngcontent-%COMP%]   .search-history[_ngcontent-%COMP%]{z-index:20;background:var(--dweb-bg-panel);border:1px solid var(--dweb-border-strong);border-top-color:var(--dweb-border-subtle);box-shadow:0 16px 40px var(--dweb-shadow-popover);box-sizing:border-box;overflow:hidden}html[data-theme=dark][_nghost-%COMP%]   .search-container[_ngcontent-%COMP%]   .search-history[_ngcontent-%COMP%]   .record[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .search-container[_ngcontent-%COMP%]   .search-history[_ngcontent-%COMP%]   .record[_ngcontent-%COMP%]{color:var(--dweb-text-primary)}html[data-theme=dark][_nghost-%COMP%]   .search-container[_ngcontent-%COMP%]   .search-history[_ngcontent-%COMP%]   .record[_ngcontent-%COMP%]:hover, html[data-theme=dark]   [_nghost-%COMP%]   .search-container[_ngcontent-%COMP%]   .search-history[_ngcontent-%COMP%]   .record[_ngcontent-%COMP%]:hover{background:var(--dweb-bg-panel-2)}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.header-container[_ngcontent-%COMP%]   .search-icon[_ngcontent-%COMP%], .search-history[_ngcontent-%COMP%]   .remove[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}@media screen and (max-width:2000px){.search-container[_ngcontent-%COMP%]{width:900px}}@media screen and (max-width:1550px){.search-container[_ngcontent-%COMP%]{width:700px}}@media screen and (min-width:2000px){.search-container[_ngcontent-%COMP%]{width:1200px}}']});let o=n;return o;})();function F0(o,n){o&1&&M(0,"span",6);}var Eg=(()=>{let n=class n{constructor(e,t,r,a){this.router=e,this.indexService=t,this.http=r,this.themeService=a,this.hideUserPanel=new H(),this.showArticleList=new H(),this.showRedPoint=!1;}ngOnInit(){(!localStorage.getItem("couponGuide")||!JSON.parse(localStorage.getItem("couponGuide")).goToGroupData)&&(this.showRedPoint=!0);}handleClick(e){e.stopPropagation();}get themePreference(){return this.themeService.preference;}setThemePreference(e,t){e.stopPropagation(),this.themeService.setPreference(t);}goToFootprint(){this.hideUserPanel.emit("hide");let e=this.indexService.getSelfInfo("user_id");sessionStorage.removeItem("footprint_group_id"),ne(`footprint/${e}`);}goToMyFavorites(){this.hideUserPanel.emit("hide"),this.router.navigate(["favorites"]);}goToGroupData(){this.showRedPoint=!1;let e;localStorage.getItem("couponGuide")?(e=JSON.parse(localStorage.getItem("couponGuide")),e.goToGroupData=!0):e={clickUserPanel:!1,goToGroupData:!0,goToGroupCoupons:!1},localStorage.setItem("couponGuide",JSON.stringify(e)),this.hideUserPanel.emit("hide"),this.router.navigate(["group_data"]);}goToMyArticle(){this.hideUserPanel.emit("hide"),this.showArticleList.emit();}signout(){return ye(this,null,function*(){yield this.http.delete(j.login).toPromise(),this.router.navigate(["login"]),this.indexService.ws$&&this.indexService.ws$.complete();});}};n.ɵfac=function(t){return new(t||n)(O(ue),O(q),O(W),O(Ha));},n.ɵcmp=F({type:n,selectors:[["app-user-panel"]],outputs:{hideUserPanel:"hide-user-panel",showArticleList:"show-article-list"},standalone:!1,decls:37,vars:10,consts:[[1,"user-panel-container",3,"click"],[1,"item",3,"click"],[1,"text"],[1,"icon","track-icon"],[1,"icon","collect-icon"],[1,"item",2,"position","relative",3,"click"],[1,"red-point"],[1,"icon","data-icon"],[1,"icon","article-icon"],[1,"icon","quit-icon"],["role","group","aria-label","\u7F51\u7AD9\u5916\u89C2\u6A21\u5F0F",1,"theme-setting"],[1,"theme-label"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2.5","
1stroke-linecap","round","stroke-linejoin","round","aria-hidden","true",1,"theme-icon"],["width","20","height","14","x","2","y","3","rx","2"],["x1","8","x2","16","y1","21","y2","21"],["x1","12","x2","12","y1","17","y2","21"],[1,"theme-options"],["type","button",3,"click"]],template:function(t,r){t&1&&(s(0,"div",0),f("click",function(p){return r.handleClick(p);}),s(1,"div",1),f("click",function(){return r.goToFootprint();}),s(2,"div",2),g(3,"\u6211\u7684\u8DB3\u8FF9"),c(),M(4,"div",3),c(),s(5,"div",1),f("click",function(){return r.goToMyFavorites();}),s(6,"div",2),g(7,"\u6211\u7684\u6536\u85CF"),c(),M(8,"div",4),c(),s(9,"div",5),f("click",function(){return r.goToGroupData();}),h(10,F0,1,0,"span",6),s(11,"div",2),g(12,"\u7BA1\u7406\u540E\u53F0"),c(),M(13,"div",7),c(),s(14,"div",1),f("click",function(){return r.goToMyArticle();}),s(15,"div",2),g(16,"\u6211\u7684\u6587\u7AE0"),c(),M(17,"div",8),c(),s(18,"div",1),f("click",function(){return r.signout();}),s(19,"div",2),g(20,"\u9000\u51FA\u767B\u5F55"),c(),M(21,"div",9),c(),s(22,"div",10)(23,"div",11)(24,"span"),g(25,"\u7F51\u7AD9\u5916\u89C2"),c(),or(),s(26,"svg",12),M(27,"rect",13)(28,"line",14)(29,"line",15),c()(),rr(),s(30,"div",16)(31,"button",17),f("click",function(p){return r.setThemePreference(p,"system");}),g(32,"\u81EA\u52A8"),c(),s(33,"button",17),f("click",function(p){return r.setThemePreference(p,"light");}),g(34,"\u6D45\u8272"),c(),s(35,"button",17),f("click",function(p){return r.setThemePreference(p,"dark");}),g(36,"\u6DF1\u8272"),c()()()()),t&2&&(l(10),_(r.showRedPoint?10:-1),l(21),zt("active",r.themePreference==="system"),si("aria-pressed",r.themePreference==="system"),l(2),zt("active",r.themePreference==="light"),si("aria-pressed",r.themePreference==="light"),l(2),zt("active",r.themePreference==="dark"),si("aria-pressed",r.themePreference==="dark"));},styles:['@charset "UTF-8";.user-panel-container[_ngcontent-%COMP%]{position:fixed;top:50px;right:0;width:196px;background:var(--dweb-bg-panel, #FFFFFF);box-shadow:0 8px 20px 0 var(--dweb-shadow, rgba(0, 0, 0, .1));padding:10px 0;border-radius:4px;display:none}.user-panel-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;align-items:center;height:40px;justify-content:center;color:var(--dweb-text-secondary, #5A5C66);cursor:pointer}.user-panel-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:hover{background:#c9e5df33;color:var(--dweb-brand, #16B998)}.user-panel-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-family:PingFangSC-Medium}.user-panel-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:16px;height:16px;background-image:url("./media/[email protected]");margin-left:32px}.user-panel-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .track-icon[_ngcontent-%COMP%]{height:17px;background-position:-276px -497px}.user-panel-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .collect-icon[_ngcontent-%COMP%]{background-position:-300px -497px}.user-panel-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .data-icon[_ngcontent-%COMP%]{background-position:-324px -497px}.user-panel-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .article-icon[_ngcontent-%COMP%]{background-position:-252px -497px}.user-panel-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .quit-icon[_ngcontent-%COMP%]{background-position:-348px -497px}.user-panel-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .red-point[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:6px;background:var(--dweb-danger);position:absolute;left:20px}.user-panel-container[_ngcontent-%COMP%]   .theme-setting[_ngcontent-%COMP%]{padding:10px 12px 12px;color:var(--dweb-text-secondary, #5A5C66)}.user-panel-container[_ngcontent-%COMP%]   .theme-setting[_ngcontent-%COMP%]   .theme-label[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-bottom:8px;font-family:PingFangSC-Medium;font-size:14px}.user-panel-container[_ngcontent-%COMP%]   .theme-setting[_ngcontent-%COMP%]   .theme-label[_ngcontent-%COMP%]   .theme-icon[_ngcontent-%COMP%]{width:16px;height:16px;margin-left:32px;flex-shrink:0;color:var(--dweb-text-faint, #C5C6CB)}.user-panel-container[_ngcontent-%COMP%]   .theme-setting[_ngcontent-%COMP%]   .theme-options[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);height:28px;padding:2px;border-radius:4px;background:var(--dweb-bg-panel-2, #F5F6FA)}.user-panel-container[_ngcontent-%COMP%]   .theme-setting[_ngcontent-%COMP%]   .theme-options[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:0;border:0;border-radius:3px;background:transparent;color:var(--dweb-text-muted, #8B8E9D);font:inherit;font-size:12px;cursor:pointer}.user-panel-container[_ngcontent-%COMP%]   .theme-setting[_ngcontent-%COMP%]   .theme-options[_ngcontent-%COMP%]   button.active[_ngcontent-%COMP%]{background:var(--dweb-bg-panel, #FFFFFF);
1box-shadow:0 1px 3px var(--dweb-shadow, rgba(0, 0, 0, .1));color:var(--dweb-brand, #16B998)}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.user-panel-container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}html[data-theme=dark][_nghost-%COMP%]   .user-panel-container[_ngcontent-%COMP%]   .theme-setting[_ngcontent-%COMP%]   .theme-label[_ngcontent-%COMP%]   .theme-icon[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .user-panel-container[_ngcontent-%COMP%]   .theme-setting[_ngcontent-%COMP%]   .theme-label[_ngcontent-%COMP%]   .theme-icon[_ngcontent-%COMP%]{color:var(--dweb-text-secondary, #5A5C66)}']});let o=n;return o;})();var Dg=(()=>{let n=class n{constructor(e){this.el=e.nativeElement;}ngAfterViewInit(){this.el.parentNode.parentNode.style.display="none";}};n.ɵfac=function(t){return new(t||n)(O(Re));},n.ɵdir=Bt({type:n,selectors:[["","hideDynamicItem",""]],standalone:!1});let o=n;return o;})();var Tt=(()=>{let n=class n{constructor(e){this.viewContainerRef=e;}};n.ɵfac=function(t){return new(t||n)(O(nn));},n.ɵdir=Bt({type:n,selectors:[["","topic-content",""]],standalone:!1});let o=n;return o;})();var We=class{constructor(n,i,e=""){this.component=n,this.data=i,this.fromWhere=e;}};var qa=(()=>{let n=class n{constructor(e,t){this.http=e,this.mainService=t,this._fileGroup$=new U(),this.fileGroup$=this._fileGroup$.asObservable();}getFileGroup(e){this.http.get(j.getGroup(e)).subscribe(t=>{t.succeeded?(this.mainService.setupUserRole(t.resp_data.group),this._fileGroup$.next(t.resp_data.group)):this.http.handleExceptionCode(t,"\u83B7\u53D6\u661F\u7403\u4FE1\u606F\u5931\u8D25");});}};n.ɵfac=function(t){return new(t||n)(re(W),re(oe));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var Ig=(()=>{let n=class n{constructor(e,t){this.http=e,this.message=t,this.endTime="",this._fileInfo$=new U(),this.fileInfo$=this._fileInfo$.asObservable(),this._downloadRecord$=new U(),this.downloadRecord$=this._downloadRecord$.asObservable(),this._downloadUrl$=new U(),this.downloadUrl$=this._downloadUrl$.asObservable();}getDownloadRecord(e,t="init"){let r=t!=="init"?`?count=48&end_time=${this.endTime}`:"?count=48";this.http.get(j.getDownloadRecord(e)+r).subscribe(a=>{if(a.succeeded){let p=a.resp_data.download_records;this._downloadRecord$.next(p),this.endTime=p.length!==0?mt(p[p.length-1].download_time):"";}else this.http.handleExceptionCode(a,"\u83B7\u53D6\u4E0B\u8F7D\u8BB0\u5F55\u5931\u8D25");});}getDownloadUrl(e){this.http.get(j.getFileUrl(e)).subscribe(t=>{t.succeeded?this._downloadUrl$.next(t.resp_data.download_url):this.http.handleExceptionCode(t,"\u83B7\u53D6\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25");});}};n.ɵfac=function(t){return new(t||n)(re(W),re(le));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var B0=["avatar"];function N0(o,n){o&1&&(s(0,"div",7),g(1," \u672C\u6587\u6863\u53D7\u77E5\u8BC6\u661F\u7403\u5206\u4EAB\u4FDD\u62A4\uFF0C \u4EC5\u9650\u4E8E\u672C\u661F\u7403\u6210\u5458\u4E0B\u8F7D\u67E5\u9605\uFF0C\u6240\u6709\u4E0B\u8F7D\u5747\u8BB0\u5F55\u5728\u6848\uFF0C\u8BF7\u52FF\u6269\u6563 "),c());}function z0(o,n){o&1&&(s(0,"div",7),g(1," \u661F\u4E3B\u5DF2\u5F00\u542F\u300C\u5185\u5BB9\u4FDD\u62A4\u300D\uFF0C\u8BE5\u661F\u7403\u5185\u6587\u4EF6\u4EC5\u652F\u6301\u5728\u300C\u77E5\u8BC6\u661F\u7403\u300DApp \u5185\u67E5\u770B "),c());}function G0(o,n){if(o&1&&(s(0,"div",11),g(1," \u4E0A\u4F20\uFF1A"),M(2,"span",22),$(3,"transformOwner"),c()),o&2){let i=d();l(2),C("parseName",Pe(3,1,i.topicContent,"owner"));}}function j0(o,n){if(o&1){let i=y();s(0,"div",23),f("debounceClick",function(){b(i);let t=d();return P(t.downloadFile());}),g(1," \u4E0B\u8F7D\u6587\u4EF6 "),c();}}function $0(o,n){if(o&1){let i=y();s(0,"div",24),f("click",function(){b(i);let t=d();return P(t.askAI());}
1),M(1,"span",25),s(2,"span",26),g(3,"\u4E3A\u6211\u603B\u7ED3"),c()();}}function H0(o,n){if(o&1&&(s(0,"span"),g(1),c()),o&2){let i=d();l(),V("\uFF08\u4E0B\u8F7D\u6B21\u6570\uFF1A",i.file.download_count,"\uFF09");}}function U0(o,n){if(o&1){let i=y();s(0,"img",27),f("click",function(){let t=b(i).$implicit,r=d();return P(r.toFootprint(t.downloader.user_id));}),c();}if(o&2){let i=n.$implicit,e=d();C("src",i.downloader.avatar_url?i.downloader.avatar_url:e.defaultImageUrl,se);}}var Lo=(()=>{let n=class n{constructor(e,t,r,a,p){this.topicService=e,this.fileService=t,this.mainService=r,this.notifyService=a,this.http=p,this.closePreview=new H(),this.fileSize="0 B",this.downloadRecords=[],this.groupName="",this.defaultImageUrl=an,this.downloadUrl="",this.noData=!1,this.aiVisible=!1;}ngOnInit(){var r,a;this.topicContent=(r=this.topicInfo)!=null&&r.type?Yn(this.topicInfo):null,this.fileSize=this.bytesToSize(this.file.size),this.groupName=this.groupInfo?this.groupInfo.name:this.topicInfo.group.name,this.doSubscribe(),this.getAiVisible();let e=(a=this.notifyService.getGroupInfo())==null?void 0:a.group_id;(this.groupInfo?this.groupInfo.group_id===e:this.topicInfo.group.group_id===e)?this.allowDownload=this.mainService.setupUserRole(this.notifyService.getGroupInfo(),!0):this.getFileGroup(this.groupInfo.group_id).then(()=>{this.allowDownload=this.mainService.allowCurrentUserDownload;});}getAiVisible(){let e=["doc","docx","xls","xlsx","ppt","pptx","csv","pdf","txt","md","markdown","html"],t=this.file.name.split("."),r=t[t.length-1].toLowerCase();e.includes(r)&&this.http.get(j.getGroup(this.groupInfo.group_id||this.topicInfo.group.group_id)).subscribe(p=>{p.succeeded?this.aiVisible=p.resp_data.group.policies.enable_ai_assistant:this.http.handleExceptionCode(p,"\u83B7\u53D6\u661F\u7403\u4FE1\u606F\u5931\u8D25");});}getFileGroup(e){return new Promise(t=>{this.http.get(j.getGroup(e)).subscribe(r=>{r.succeeded?this.mainService.setupUserRole(r.resp_data.group):this.http.handleExceptionCode(r,"\u83B7\u53D6\u661F\u7403\u4FE1\u606F\u5931\u8D25"),t(!0);});});}sendCloseMessage(e){this.closePreview.emit("close"),e.stopPropagation();}handleContentClick(e){e.stopPropagation();}bytesToSize(e){if(e!==0){let r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],a=Math.floor(Math.log(e)/Math.log(1e3));return(e/Math.pow(1e3,a)).toPrecision(3)+" "+r[a];}}doSubscribe(){this.fileService.downloadRecord$.subscribe(e=>{this.noData=e.length===0,this.downloadRecords=this.downloadRecords.concat(e);}),this.fileService.downloadUrl$.subscribe(e=>{let t=document.createElement("a"),r=new MouseEvent("click");t.href=e,t.style.display="none",t.dispatchEvent(r);}),this.fileService.getDownloadRecord(this.file.file_id);}handleAvatarScroll(e){if(!this.noData){let r=e.target.scrollTop,a=this.avatarContainer.nativeElement.offsetHeight;r+215>=a&&this.fileService.getDownloadRecord(this.file.file_id,"scroll");}}downloadFile(){this.fileService.getDownloadUrl(this.file.file_id);}toTopicDetail(){ne(`group/${this.groupInfo?this.groupInfo.group_id:this.topicInfo.group.group_id}/topic/${this.topicInfo.topic_id}`);}toFootprint(e){var r,a;let t=this.groupInfo?this.groupInfo.group_id:(a=(r=this.topicInfo)==null?void 0:r.group)==null?void 0:a.group_id;ne(`footprint/${e}${t?`?group_id=${t}`:""}`);}askAI(){let t=`/mweb/ai_assistant.html?topic_id=${this.topicInfo.topic_id}&timestamp=${Date.now()}&source=FileDetailsView&file_uids=${this.file.file_id}`;ne(t);}};n.ɵfac=function(t){return new(t||n)(O(Ye),O(Ig),O(oe),O(sn),O(W));},n.ɵcmp=F({type:n,selectors:[["app-file-preview"]],viewQuery:function(t,r){if(t&1&&_e(B0,7),t&2){let a;ee(a=te())&&(r.avatarContainer=a.first);}},inputs:{file:"file",topicInfo:[0,"topic","topicInfo"],groupInfo:[0,"group","groupInfo"]},outputs:{closePreview:"close-preview"},standalone:!1,decls:33,vars:15,consts:[["avatar",""],[1,"file-preview-container",3,"click"],[1,"content",3,"click"],[1,"header"],[1,"topic-detail",3,"click"],[1,"horizontal-line"],[1,"file"],[1,"copyright-desc"],[1,"file-icon-big",3,"ngClass"],[1,"file-name"],[1,"upload-info"],[1,"uploader"],[1,"file-size"],[1,"upload-date"],[1,"btn-wrapper"],[1,"btn","download"],[1,"ai-enter","btn"],[1,"download-info"],[1,"download-record"],[1,"download-avatar",3,"scroll"],[1,"avatar-container"],["alt","\u5934\u50CF",3,"src"],[3,"parseName"],[1,"btn","download",3,"debounceClick"],[1,"ai-enter","btn",3,"click"],[1,"ai-icon"],[1,"ai-text"],["alt","\u5934\u50CF",3,"click","
1src"]],template:function(t,r){t&1&&(s(0,"div",1),f("click",function(p){return r.sendCloseMessage(p);}),s(1,"div",2),f("click",function(p){return r.handleContentClick(p);}),s(2,"div",3),g(3,"\u6587\u4EF6\u8BE6\u60C5"),c(),s(4,"div",4),f("click",function(){return r.toTopicDetail();}),g(5,"\u67E5\u770B\u539F\u4E3B\u9898"),c(),M(6,"div",5),s(7,"div",6),h(8,N0,2,0,"div",7)(9,z0,2,0,"div",7),M(10,"div",8),$(11,"transformFileType"),s(12,"div",9),g(13),c(),s(14,"div",10),h(15,G0,4,4,"div",11),s(16,"div",12),g(17),c(),s(18,"div",13),g(19),$(20,"transformFullTime"),c()(),s(21,"div",14),h(22,j0,2,0,"div",15),h(23,$0,4,0,"div",16),c()(),s(24,"div",17)(25,"div",18),g(26),h(27,H0,2,1,"span"),c(),s(28,"div",19),f("scroll",function(p){return r.handleAvatarScroll(p);}),s(29,"div",20,0),B(31,U0,1,1,"img",21,hn),c()()()()()),t&2&&(l(8),_(r.allowDownload?8:9),l(2),C("ngClass",Pe(11,10,r.file,"file")),l(3),A(r.file.name),l(2),_(r.topicContent?15:-1),l(2),A(r.fileSize),l(2),V(" ",Z(20,13,r.file.create_time)," "),l(3),_(r.allowDownload?22:-1),l(),_(r.aiVisible?23:-1),l(3),V(" \u300C",r.groupName,"\u300D\u6210\u5458\u4E0B\u8F7D\u8BB0\u5F55 "),l(),_(r.allowDownload?27:-1),l(4),N(r.downloadRecords));},dependencies:[K,ma,xt,Xt,Mo,St],styles:['@charset "UTF-8";.file-preview-container[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--dweb-overlay);z-index:9;display:flex;justify-content:center;align-items:center}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{position:relative;width:600px;background:var(--dweb-bg-panel);padding:30px 50px 25px;border-radius:4px;box-sizing:border-box}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;font-family:PingFangSC-Medium;font-size:16px;color:var(--dweb-text-muted, #8B8E9D);padding-bottom:30px}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail[_ngcontent-%COMP%]{cursor:pointer;position:absolute;top:31px;right:50px;font-size:14px;color:var(--dweb-info, #567895)}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]   .copyright-desc[_ngcontent-%COMP%]{text-align:center;width:510px;font-size:15px;color:#fc7f32;margin:20px 0}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]   .file-icon-big[_ngcontent-%COMP%]{width:80px;height:87px;background-image:url("./media/[email protected]");background-position:-87px -770px}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]   .file-name[_ngcontent-%COMP%]{margin:20px 0 10px;font-family:PingFangSC-Medium;font-size:18px;color:var(--dweb-text-primary, #2F3034);width:460px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]   .upload-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;font-size:15px;color:var(--dweb-text-faint, #C5C6CB)}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]   .upload-info[_ngcontent-%COMP%]   .file-size[_ngcontent-%COMP%]{margin:0 10px}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]   .btn-wrapper[_ngcontent-%COMP%]{margin-top:25px;margin-bottom:25px;display:flex;justify-content:center}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]   .btn-wrapper[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-right:16px}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]   .download[_ngcontent-%COMP%]{font-size:15px;color:var(--dweb-info, #567895);cursor:pointer}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .file[_ng
1content-%COMP%]   .btn[_ngcontent-%COMP%]{height:40px;display:flex;align-items:center;justify-content:center;width:190px;border-radius:20px;border:1px solid rgba(139,142,157,.16)}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:hover{background:#c5c6cb29}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]   .ai-enter[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]   .ai-enter[_ngcontent-%COMP%]   .ai-icon[_ngcontent-%COMP%]{width:14px;height:14px;margin-right:3px;background-image:url(/assets_dweb/images/[email protected]);background-repeat:no-repeat;background-size:100%}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]   .ai-enter[_ngcontent-%COMP%]   .ai-icon[_ngcontent-%COMP%]{background-image:url(/assets_dweb/images/[email protected])}}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]   .ai-enter[_ngcontent-%COMP%]   .ai-text[_ngcontent-%COMP%]{font-size:15px;color:var(--dweb-info, #567895)}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .download-info[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .download-info[_ngcontent-%COMP%]   .download-record[_ngcontent-%COMP%]{margin:20px 0;color:var(--dweb-text-muted, #8B8E9D)}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .download-info[_ngcontent-%COMP%]   .download-avatar[_ngcontent-%COMP%]{width:100%;height:215px;overflow-y:auto;overscroll-behavior:contain}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .download-info[_ngcontent-%COMP%]   .download-avatar[_ngcontent-%COMP%]   .avatar-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(10,1fr);gap:15px}.file-preview-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .download-info[_ngcontent-%COMP%]   .download-avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:18px;margin-bottom:15px;background:var(--dweb-bg-subtle, #F5F6F7);display:inline-block;cursor:pointer}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.file-preview-container[_ngcontent-%COMP%]   .file-icon-big[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}.file-preview-container[_ngcontent-%COMP%]   .file-icon-big.file-other[_ngcontent-%COMP%]{background-image:url("./media/default_ext-BGAJZCGA.png")!important;background-size:80px 87px!important}.file-preview-container[_ngcontent-%COMP%]   .file-icon-big.file-html[_ngcontent-%COMP%]{background-image:url("./media/html_ext-NRVOQ4YT.png")!important;background-size:80px 87px!important}}']});let o=n;return o;})();var q0=o=>({"no-hover":o}),Q0=(o,n)=>n.file_id;function W0(o,n){if(o&1){let i=y();s(0,"div",3),f("click",function(t){let r=b(i).$implicit,a=d(2);return P(a.showPreview(t,r));}),M(1,"div",4),$(2,"transformFileType"),s(3,"div",5),g(4),c()();}if(o&2){let i=n.$implicit,e=d(2);C("ngClass",R(6,q0,!e.isMember)),l(),C("ngClass",Pe(2,3,i,"file")),l(3),A(i.name||"");}}function X0(o,n){if(o&1){let i=y();s(0,"app-file-preview",6),f("close-preview",function(t){b(i);let r=d(2);return P(r.watchClose(t));}),c();}if(o&2){let i=d(2);C("file",i.fileInfo)("topic",i.topic)("group",i.groupInfo);}}function J0(o,n){if(o&1&&(s(0,"div",0),B(1,W0,5,8,"div",1,Q0),h(3,X0,1,3,"app-file-preview",2),c()),o&2){let i=d();l(),N(i.files),l(2),_(i.previewVisible?3:-1);}}var Zn=(()=>{let n=class n{constructor(e){this.fileGalleryService=e,this.clickFile=new H(),this.previewVisible=!1,this.isMember=!1;}ngOnInit(){var e,t;this.fileGroupSub=this.fileGalleryService.fileGroup$.subscribe(r=>{this.groupInfo=r,this.previewVisible=!0;}),this.isMember=(t=(e=this.group)==null?void 0:e.user_specific)!=null&&t.hasOwnProperty("is_member")?this.group.user_specific.is_member:!0;}ngOnDestroy(){this.fileGroupSub.unsubscribe();}showPreview(e,t){if(!this.disablePreview&&this.isMember){e.stopPropagation();let r=window.location.href;this.fileInfo=t,r.includes("/footprint/")||r.includes("/search/")?this.fileGalleryService.getFileGroup(this.group.group_id):(this.groupInfo=this.group,this.previewVisible=!0);}this.clickFile.emit();}watchClose(e){this.previewVisible=!1;}};n.ɵfac=function(t){return new(t||n)(O(qa));},n.ɵcmp=F({type:n,selectors:[["app-file-gallery"]],inputs:{files:"files",to
1pic:"topic",group:"group",disablePreview:"disablePreview"},outputs:{clickFile:"clickFile"},standalone:!1,features:[ot([qa])],decls:1,vars:1,consts:[[1,"file-gallery-container"],[1,"item",3,"ngClass"],[3,"file","topic","group"],[1,"item",3,"click","ngClass"],[1,"file-icon",3,"ngClass"],[1,"file-name"],[3,"close-preview","file","topic","group"]],template:function(t,r){t&1&&h(0,J0,4,1,"div",0),t&2&&_(r.files&&r.files.length>0?0:-1);},dependencies:[K,Lo,Mo],styles:[".file-gallery-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;margin-top:10px}.file-gallery-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .file-icon[_ngcontent-%COMP%]{width:26px;height:27px;margin-right:10px;background-position:-101px -677px}.file-gallery-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .file-name[_ngcontent-%COMP%]{height:26px;line-height:26px;width:390px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--dweb-text-secondary, #5A5C66)}.file-gallery-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:hover{background:var(--dweb-bg-hover, #FAFBFC)}.file-gallery-container[_ngcontent-%COMP%]   .item.no-hover[_ngcontent-%COMP%]:hover{background:none}"]});let o=n;return o;})();var Qa=(()=>{let n=class n{constructor(e){this.http=e,this._videoUrl$=new U(),this.videoUrl$=this._videoUrl$.asObservable();}getVideoUrl(e){this.http.get(j.getVideoUrl(e)).subscribe(t=>{t.succeeded?this._videoUrl$.next(t.resp_data.url):t.code===1030?this._videoUrl$.next(null):this.http.handleExceptionCode(t,"\u83B7\u53D6\u89C6\u9891\u4E0B\u8F7D\u5730\u5740");});}};n.ɵfac=function(t){return new(t||n)(re(W));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var K0=["videoTarget"],Z0=["videoContainer"],ef=["controls"],tf=["currentProgress"],nf=["totalProgress"],of=["currentSound"],rf=["totalSound"],af=["soundIcon"],sf=["smallBar"],cf=o=>({"is-referenced":o}),lf=o=>({preview:o}),Wc=o=>({height:o}),pf=o=>({small:o}),df=o=>({selected:o}),gf=o=>({cursor:o});function uf(o,n){if(o&1){let i=y();s(0,"i",33),f("click",function(){b(i);let t=d();return P(t.exitFullscreen());}),c();}}function mf(o,n){if(o&1){let i=y();s(0,"span",34),f("click",function(){b(i);let t=d();return P(t.singleClick());}),c();}if(o&2){let i=d();C("ngClass",R(1,pf,i.isPreview));}}function hf(o,n){if(o&1){let i=y();s(0,"div",35),f("click",function(){let t=b(i).$index,r=d();return P(r.selectRate(t));}),g(1),c();}if(o&2){let i=n.$implicit,e=n.$index,t=d();C("ngClass",R(2,df,t.selectRateIndex===e)),l(),V(" ",i,"X ");}}function _f(o,n){if(o&1){let i=y();s(0,"div",32)(1,"div",36),M(2,"img",37),s(3,"span",38),f("click",function(){b(i);let t=d();return P(t.showToast());}),c()()();}if(o&2){let i=d();C("ngStyle",R(2,Wc,i.videoHeight)),l(2),C("src",i.videoCover,se);}}function ff(o,n){if(o&1&&M(0,"img",37),o&2){let i=d(4);C("src",i.videoCover,se);}}function Cf(o,n){o&1&&(s(0,"div"),g(1,"\u5BA1\u6838\u4E2D"),c());}function xf(o,n){o&1&&(s(0,"div"),g(1,"\u6B63\u5728\u5904\u7406\u89C6\u9891"),c());}function vf(o,n){o&1&&(s(0,"div"),g(1,"\u8F6C\u7801\u5931\u8D25"),c());}function bf(o,n){o&1&&(s(0,"div"),g(1,"\u89C6\u9891\u94FE\u63A5\u5DF2\u5931\u6548\uFF0C\u70B9\u51FB\u91CD\u8BD5"),c());}function Pf(o,n){o&1&&(s(0,"div"),g(1,"\u6682\u4E0D\u652F\u6301\u6B64\u6D4F\u89C8\u5668\u64AD\u653E"),c());}function Mf(o,n){if(o&1&&(s(0,"div",41),h(1,Cf,2,0,"div"),h(2,xf,2,0,"div"),h(3,vf,2,0,"div"),h(4,bf,2,0,"div"),h(5,Pf,2,0,"div"),c()),o&2){let i=d(4);l(),_(i.videoStatus==="in_review"?1:-1),l(),_(i.videoStatus==="transcoding"?2:-1),l(),_(i.videoStatus==="transcode_failed"?3:-1),l(),_(i.videoStatus==="src_failed"?4:-1),l(),_(i.videoStatus==="unsupport"?5:-1);}}function Of(o,n){if(o&1){let i=y();s(0,"div",40),f("click",function(){b(i);let t=d(3);return P(t.renewVideo());}),h(1,ff,1,1,"img",37),h(2,Mf,6,5,"div",41),c();}if(o&2){let i=d(3);C("ngStyle",R(3,gf,i.videoStatus==="src_failed"?"pointer":"")),l(),_(i.videoStatus!=="src_failed"?1:-1),l(),_(i.videoStatus?2:-1);}}function wf(o,n){if(o&1&&(s(0,"div",32),h(1,Of,3,5,"div",39),c()),o&2){let i=d(2);C("ngStyle",R(2,Wc,i.videoHeight)),l(),_(!i.videoStatus||i.videoStatus==="success"?-1:1);}}function yf(o,n){if(o&1&&h(0,wf,2,4,"div",32),o&2){let i=d();_(i.videoStatus!=="success"&&!i.isPreview?0:-1);}}var Ri,ei=(()=>{let n=class n{constructor(e,t,r){this.eachVideoGalleryService=e,this.videoGalleryService=t,this.message=r,this.isReferencedTopic=!1,this.isPreview=!1,this.clickVideo=new H(),this.subscriptions=[],this.hlsRecoveringMediaError=!1,this.hlsRetryingNetworkError=!1,this.bigPlay=!1,this.showControls=!1,this.videoIsPlaying=!0,this.isScreen=!1,this.scrollY=0,this.processDrag=!1,this.progressPoint=0,this.processAutoHide=!1,this.processAutoHideTimer=null,this.soundDrag=!1,this.soundPoint=1,this.showSoundControl=!1,this.soundAutoHideTimer=null,this.showLoading=!1,this.oldPageY=0,this.canAutoPlay=!0,this.noPermission=!1,this.videoRate=["0.5","1.0","1.25","1.5","2.0"],this.showRateControl=!1,this.selectRateIndex=1,this.currentRate="\u500D\u901F",this.timeoutId=null,this.pressTime=0,this.LONG_PRESS_THRESHOLD=500,this.keydownListener=null,this.keyupListener=null;}
1ngOnInit(){this.videoCover=this.video.cover.url,this.setVideoHeight(),!this.isReferencedTopic&&(this.doSubscribe(),this.topic.process_status?this.videoStatus=this.topic.process_status:this.eachVideoGalleryService.getVideoUrl(this.video.video_id));}ngAfterViewInit(){this.keydownListener=this.createKeydownListener(this.videoTarget.nativeElement),this.keyupListener=this.createKeyupListener(this.videoTarget.nativeElement,this.currentSound.nativeElement);}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe()),this.hlsJS&&(this.hlsJS.destroy(),this.hlsJS=null);}doSubscribe(){let e=this.eachVideoGalleryService.videoUrl$.subscribe(a=>{a?Ri?this.initVideo(a):ye(this,null,function*(){Ri=(yield import("./chunk-LWUGE3OR.js")).default,this.initVideo(a);}):this.noPermission=!0;}),t=this.videoGalleryService.pageScroll$.subscribe(a=>{let p=sessionStorage.getItem("havaFullScreenVideo"),m=this.videoTarget.nativeElement,v=this.getDirection(a),x=m.getBoundingClientRect(),w=document.documentElement.clientHeight,k=w-x.bottom;!p&&!this.isPreview&&(this.scrollY=a,!m.paused&&(x.top-50<=0||k<=0)&&this.pauseVideo(m),this.canAutoPlay&&this.needAutoPlay()&&(v==="down"&&x.bottom<w&&x.top-50>0?this.videoGalleryService.setVisibleVideo({videoId:this.video.video_id,distance:x.top}):v==="up"&&k>0&&this.videoGalleryService.setVisibleVideo({videoId:this.video.video_id,distance:k})));}),r=this.videoGalleryService.visibleVideo$.subscribe(a=>{let p=this.videoTarget.nativeElement;a.videoId===this.video.video_id&&(p.muted=!0,p.volume=0,this.bigPlay&&!this.showControls?this.playVideo():this.bigPlay&&(this.showLoading=!0,this.showControls=!0,p.play(),this.videoIsPlaying=!0,this.bigPlay=!1));});this.subscriptions.push(e,t,r);}setVideoHeight(){let e=this.isReferencedTopic?472:504,t=284;(!this.video||this.isPreview)&&(this.videoHeight=t+"px");let r=this.video.cover.width,a=this.video.cover.height;r/a>=1?this.videoHeight=e*a/r+"px":this.videoHeight=t+"px";}getDirection(e){let t=e-this.oldPageY;if(this.oldPageY=e,t>0)return"down";if(t<0)return"up";}formatTime(e){if(!e)return"00:00";let t=Math.floor(e/60);t<10&&(t="0"+t);let r=Math.floor(e%60);return r<10&&(r="0"+r),t+":"+r;}canUseNativeHls(e){return!!(e.canPlayType("application/vnd.apple.mpegurl")||e.canPlayType("application/x-mpegURL"));}preferNativeHls(){let e=navigator.userAgent;return /safari/i.test(e)&&!/chrome|chromium|crios|edg|opr|android/i.test(e);}initVideo(e){var p,m,v;let t=this.videoTarget.nativeElement;this.showLoading=!1,this.duration=((p=this.topic.talk)==null?void 0:p.video.duration)||((m=this.topic.task)==null?void 0:m.video.duration)||((v=this.topic.solution)==null?void 0:v.video.duration);let r=this.canUseNativeHls(t);if(Ri.isSupported()&&!this.preferNativeHls()){this.hlsJS&&(this.hlsJS.destroy(),this.hlsJS=null),this.hlsRecoveringMediaError=!1,this.hlsRetryingNetworkError=!1;let x=new Ri({autoStartLoad:!0,xhrSetup:w=>{w.withCredentials=!0;}});t.setAttribute("data-src",e),x.attachMedia(t),this.videoStatus="success",this.bigPlay=!0,x.on(Ri.Events.MANIFEST_PARSED,()=>{this.hlsRetryingNetworkError=!1,t.play();}),x.on(Ri.Events.ERROR,(w,k)=>{if(k.fatal){if(k.type===Ri.ErrorTypes.NETWORK_ERROR&&!this.hlsRetryingNetworkError){this.hlsRetryingNetworkError=!0,x.startLoad();return;}if(k.type===Ri.ErrorTypes.MEDIA_ERROR&&!this.hlsRecoveringMediaError){this.hlsRecoveringMediaError=!0,x.recoverMediaError();return;}this.videoStatus="src_failed",x.destroy(),this.hlsJS===x&&(this.hlsJS=null);}}),this.hlsJS=x;}else r?(this.hlsJS&&(this.hlsJS.destroy(),this.hlsJS=null),t.src=e,t.addEventListener("loadedmetadata",()=>{this.videoStatus="success",this.bigPlay=!0;}),t.onerror=()=>{this.videoStatus="src_failed";}):this.videoStatus="unsupport";}playVideo(){let e=this.videoTarget.nativeElement;this.bigPlay=!1,this.showControls=!0,this.videoIsPlaying=!0,this.hlsJS?this.hlsJS.loadSource(e.getAttribute("data-src")):e.play(),e.ontimeupdate=()=>{this.processDrag||this.asyncTimePoint(e.currentTime);},e.onended=()=>{this.canAutoPlay=!1,this.videoIsPlaying=!1,this.bigPlay=!0,this.controls.nativeElement.style.opacity=1,this.controls.nativeElement.style.display="flex",this.processAutoHide=!1;},e.onwaiting=()=>{this.showLoading=!0;},e.onplaying=()=>{this.showLoading=!1;},this.initVideoProgress(),this.initSoundProgress(),this.initContainerEvent();}pauseVideo(e,t=!1){t&&(e.muted=!0,e.volume=0);let r=e.play();r!==void 0&&r.then(a=>{e.pause();}),this.showLoading=!1,this.videoIsPlaying=!1,this.bigPlay=!0;}switchPlaying(){this.videoIsPlaying?(this.videoTarget.nativeElement.pause(),this.bigPlay=!0):(this.videoTarget.nativeElement.play(),this.bigPlay=!1),this.videoIsPlaying=!this.videoIsPlaying;}singleClick(){let e=this.videoTarget.nativeElement;if(this.canAutoPlay=!1,this.isPreview&&!this.isScreen){let t=this.videoContainer.nativeElement;this.requestFullscreen(t),this.playVideo();}else this.bigPlay&&!this.showControls?this.playVideo():this.bigPlay?(this.showLoading=!0,this.showControls=!0,e.play(),this.videoIsPlaying=!0,this.bigPlay=!1):this.pauseVideo(e);}initVideoProgress(){let e=this.currentProgress.nativeElement,t=this.totalProgress.nativeElement;t.onmousedown=r=>{this.processDrag=!0,this.progressPoint=r.offsetX/t.clientWidth;let a=Math.round(this.progressPoint*this.duration*100)/100;this.asyncTimePoint(a);},t.onmousemove=r=>{this.processDrag&&(this.progressPoint=r.offsetX/t.clientWidth,this.progressPoint>=1&&(this.progressPoint=1),e.style.width=this.progressPoint*100+"%");};}progressAutoHide(){this.processAutoHideTimer=setTimeout(()=>{ta(this.controls.nativeElement),this.processAutoHide=!0;},1e3);}initSoundProgress(){let e=this.videoTarget.nativeElement,t=this.currentSound.nativeElement,r=this.totalSound.nativeElement,a=this.soundIcon.nativeElement,p;localStorage.getItem("video_sound")!=null&&!e.muted?p=localStorage.getItem("video_sound"):p=e.volume,+p||(this.soundPoint=0),e.volume=p,t.style.width=`${p*100}%`,r.onmousedown=m=>{e.muted=!1,this.soundDrag=!0,this.soundPoint=m.offsetX/r.clientWidth,this.soundAutoHideTimer&&(clearTimeout(this.soundAutoHideTimer),this.soundAutoHideTimer=null);},r.onmousemove=m=>{this.soundDrag&&(this.soundPoint=m.offsetX/r.clientWidth,this.soundPoint>=1&&(this.soundPoint=1),this.soundPoint<=0&&(this.soundPoint=0),t.style.width=this.soundPoint*100+"%");},a.addEventListener("click",()=>{if(e.muted){let m=localStorage.getItem("video_sound");e.muted=!1,e.volume=m||.3,this.soundPoint=m?Number(m):.3,t.style.width=`${e.volume*100}%`;}else e.muted=!0,e.volume=0,this.soundPoint=0,t.style.width=0;});}soundAutoHide(){this.soundAutoHideTimer&&clearTimeout(this.soundAutoHideTimer),this.soundAutoHideTimer=setTimeout(()=>{this.showSoundControl=!1;},1e3);}initContainerEvent(){let e=this.videoTarget.nativeElement,t=this.videoContainer.nativeElement,r=this.controls.nativeElement;t.onmouseup=a=>{this.processDrag?(e.currentTime=Math.round(this.progressPoint*this.duration*100)/100,this.currentTime=e.currentTime,this.processDrag=!1,this.progressPoint=0,e.paused&&(e.play(),this.bigPlay=!1,this.videoIsPlaying=!0)):this.soundDrag&&(e.volume=Math.round(this.soundPoint*100)/100,localStorage.setItem("video_sound",String(Math.round(this.soundPoint*100)/100)),this.soundDrag=!1,this.soundAutoHide());},t.onmouseenter=a=>{this.processAutoHideTimer&&(clearTimeout(this.processAutoHideTimer),this.processAutoHideTimer=null,this.processAutoHide&&(r.style.opacity=1,r.style.display="flex",this.processAutoHide=!1));},t.onmouseleave=a=>{!e.ended&&!this.processDrag&&!this.soundDrag&&this.progressAutoHide(),this.processDrag?(this.processDrag=!1,this.progressPoint=0):this.soundDrag&&(this.soundDrag=!1);},["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].forEach((a,p)=>{t.addEventListener(a,()=>{this.isScreen&&this.isPreview&&(e.pause(),this.showControls=!1),this.isScreen=!this.isScreen,this.isScreen||(window.scrollTo(0,this.scrollY),window.removeEventListener("keydown",this.keydownListener),window.removeEventListener("keyup",this.keyupListener));});});}handleKeyPlay(e){let t=this.videoTarget.nativeElement;e.keyCode==="Space"&&(t.paused?t.play():t.pause());}fullScreen(){let e=this.videoContainer.nativeElement;this.isPreview?this.exitFullscreen():this.isScreen?this.exitFullscreen():this.requestFullscreen(e);}createKeyupListener(e,t){return r=>this.handleKeyUpAndPause(r,e,t);}handleKeyUpAndPause(e,t,r){if(clearTimeout(this.timeoutId),this.timeoutId=null,new Date().getTime()-this.pressTime<this.LONG_PRESS_THRESHOLD){if(console.log("\u77ED\u6309\u4E8B\u4EF6\u89E6\u53D1",e.key),e.keyCode===39&&e)t.currentTime+=3,this.asyncTimePoint(t.currentTime);else if(e.keyCode===37&&e)t.currentTime-=3,this.asyncTimePoint(t.currentTime);else if(e.keyCode===38&&e){if(t.volume<1){let p=t.volume+.1;t.volume=p>=1?1:p,r.style.width=`${t.volume*100}%`,localStorage.setItem("video_sound",String(t.volume));}}else if(e.keyCode===40&&e&&t.volume>0){let p=t.volume-.1;t.volume=p<=0?0:p,r.style.width=`${t.volume*100}%`,localStorage.setItem("video_sound",String(t.volume));}}else(e.keyCode===37||e.keyCode===39)&&(t.playbackRate="1.0");e.keyCode===32&&e&&(t.paused?t.play():t.pause(),this.videoIsPlaying=!this.videoIsPlaying,this.bigPlay=!this.bigPlay),e.keyCode===27&&e&&(t.pause(),this.videoIsPlaying=!this.videoIsPlaying,this.bigPlay=!this.bigPlay,this.exitFullscreen());}createKeydownListener(e){return t=>this.handleKeyDown(t,e);}handleKeyDown(e,t){this.timeoutId||(this.pressTime=new Date().getTime(),this.timeoutId=setTimeout(function(){this.timeoutId=null,e.keyCode===39&&e?t.playbackRate="2.0":e.keyCode===37&&e&&(t.playbackRate="-2.0");},this.LONG_PRESS_THRESHOLD));}requestFullscreen(e){window.addEventListener("keydown",this.keydownListener),window.addEventListener("keyup",this.keyupListener),sessionStorage.setItem("havaFullScreenVideo","true"),e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen();}exitFullscreen(){let e=this.videoTarget.nativeElement;window.removeEventListener("keydown",this.keydownListener),window.removeEventListener("keyup",this.keyupListener);let t=document;this.isPreview&&(e.pause(),this.bigPlay=!0,this.showControls=!1),t.exitFullscreen?t.exitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.msExitFullscreen&&t.msExitFullscreen(),sessionStorage.removeItem("havaFullScreenVideo");}showSound(){this.showSoundControl=!0,this.showSoundControl&&this.soundAutoHide();}handleRate(){this.showRateControl=!this.showRateControl;}selectRate(e){this.selectRateIndex=e;let t=this.videoTarget.nativeElement;t.playbackRate=this.videoRate[e],this.currentRate=e===1?"\u500D\u901F":`${this.videoRate[e]}X`;}renewVideo(){this.videoStatus==="src_failed"&&(this.showControls=!1,this.eachVideoGalleryService.getVideoUrl(this.video.video_id));}stopEvent(e){e.stopPropagation();}asyncTimePoint(e){let t=this.currentProgress.nativeElement,r=this.smallBar.nativeElement;this.currentTime=e;let a=e/this.duration*100;a>=100&&(a=100),t.style.width=`${a}%`,r.style.width=`${a}%`;}needAutoPlay(){return!window.location.href.includes("footprint");}showToast(){this.noPermission&&this.message.info({content:"\u52A0\u5165\u661F\u7403\u540E\u53EF\u67E5\u770B\u6B64\u89C6\u9891"});}};n.ɵfac=function(t){return new(t||n)(O(Qa),O(Vo),O(le));},n.ɵcmp=F({type:n,selectors:[["app-video-gallery"]],viewQuery:function(t,r){if(t&1&&_e(K0,7)(Z0,7)(ef,7)(tf,7)(nf,7)(of,7)(rf,7)(af,7)(sf,7),t&2){let a;ee(a=te())&&(r.videoTarget=a.first),ee(a=te())&&(r.videoContainer=a.first),ee(a=te())&&(r.controls=a.first),ee(a=te())&&(r.currentProgress=a.first),ee(a=te())&&(r.totalProgress=a.first),ee(a=te())&&(r.currentSound=a.first),ee(a=te())&&(r.totalSound=a.first),ee(a=te())&&(r.soundIcon=a.first),ee(a=te())&&(r.smallBar=a.first);}},inputs:{video:"video",topic:"topic",isReferencedTopic:"isReferencedTopic",isPreview:"isPreview"},outputs:{clickVideo:"clickVideo"},standalone:!1,features:[ot([Qa])],decls:45,vars:25,consts:[["videoContainer",""],["videoTarget",""],["controls",""],["totalProgress",""],["currentProgress",""],["totalSound",""],["currentSound",""],["soundIcon",""],["smallBar",""],[1,"video-gallery-container",3,"click","ngClass"],[1,"video-container",3,"hidden"],[1,"processing",3,"dblclick","click","ngClass","ngStyle"],["id","close-btn"],["id","play-btn",1,"play-btn",3,"ngClass"],[1,"loading",3,"hidden"],["preload","meta",3,"click","poster"],[1,"video-controls",3,"hidden"],[3,"click","id"],["id","time"],["id","video-progress"],[1,"timrBar"],[1,"play-rate",3,"mouseenter","mouseleave"],[3,"hidden"],[1,"rate-select"],[1,"rate",3,"ngClass"],[1,"triangle"],[1,"video-sound",3,"mouseenter"],["id","sound-progress",3,"hidden"],[1,"soundBar"],[3,"id"],["id","small-process",3,"hidden"],[1,"smallBar"],[1,"video-area",3,"ngStyle"],["id","close-btn",3,"click"],["id","play-btn",1,"play-btn",3,"click","ngClass"],[1,"rate",3,"click","ngClass"],[1,"processing"],[3,"src"],[1,"play-btn",3,"click"],[1,"processing",3,"ngStyle"],[1,"processing",3,"click","ngStyle"],[1,"process-content"]],template:function(t,r){t&1&&(s(0,"div",9),f("click",function(){return r.clickVideo.emit();}),s(1,"div",10)(2,"div",11,0),f("dblclick",function(){return r.fullScreen();})("click",function(p){return r.stopEvent(p);}),h(4,uf,1,0,"i",12),h(5,mf,1,3,"span",13),s(6,"div",14),M(7,"div")(8,"div")(9,"div")(10,"div"),c(),s(11,"video",15,1),f("click",function(){return r.singleClick();}
1),c(),s(13,"div",16,2)(15,"i",17),f("click",function(){return r.switchPlaying();}),c(),s(16,"span",18),g(17),c(),s(18,"div",19,3),M(20,"div",20,4),c(),s(22,"span",18),g(23),c(),s(24,"div",21),f("mouseenter",function(){return r.handleRate();})("mouseleave",function(){return r.handleRate();}),s(25,"span"),g(26),c(),s(27,"div",22)(28,"div",23),B(29,hf,2,4,"div",24,Y),c(),M(31,"div",25),c()(),s(32,"div",26),f("mouseenter",function(){return r.showSound();}),s(33,"div",27,5),M(35,"div",28,6),c(),M(37,"i",29,7),c(),s(39,"i",17),f("click",function(){return r.fullScreen();}),c()(),s(40,"div",30),M(41,"div",31,8),c()()(),h(43,_f,4,4,"div",32)(44,yf,1,1),c()),t&2&&(C("ngClass",R(19,cf,r.isReferencedTopic)),l(),C("hidden",r.videoStatus!=="success"||r.isReferencedTopic),l(),C("ngClass",R(21,lf,r.isPreview))("ngStyle",R(23,Wc,r.videoHeight)),l(2),_(r.isScreen?4:-1),l(),_(r.bigPlay?5:-1),l(),C("hidden",!r.showLoading),l(5),C("poster",r.videoCover),l(2),C("hidden",!r.showControls),l(2),C("id",r.videoIsPlaying?"pause":"play"),l(2),A(r.formatTime(r.currentTime)),l(6),A(r.formatTime(r.duration)),l(3),A(r.currentRate),l(),C("hidden",!r.showRateControl),l(2),N(r.videoRate),l(4),C("hidden",!r.showSoundControl),l(4),C("id",r.soundPoint===0?"mute":"sound"),l(2),C("id",r.isScreen?"exitfullscreen":"fullscreen"),l(),C("hidden",!r.processAutoHide),l(3),_(r.isReferencedTopic||r.noPermission?43:44));},dependencies:[K,De],styles:['[hidden][_ngcontent-%COMP%]{display:none!important}[_ngcontent-%COMP%]:-webkit-full-screen{width:100%!important;height:100%!important}[_ngcontent-%COMP%]:-moz-full-screen{width:100%!important;height:100%!important}[_ngcontent-%COMP%]:-ms-fullscreen{width:100%!important;height:100%!important}[_ngcontent-%COMP%]:-o-fullscreen{width:100%!important;height:100%!important}[_ngcontent-%COMP%]:full-screen{width:100%!important;height:100%!important}[_ngcontent-%COMP%]:fullscreen{width:100%!important;height:100%!important}.video-gallery-container[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-top:10px}.video-gallery-container.is-referenced[_ngcontent-%COMP%]   .video-area[_ngcontent-%COMP%], .video-gallery-container.is-referenced[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]{width:472px}.video-gallery-container[_ngcontent-%COMP%]   .video-area[_ngcontent-%COMP%], .video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]{width:504px}.video-gallery-container[_ngcontent-%COMP%]   .video-area[_ngcontent-%COMP%]{background:#000}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]{position:relative;height:100%;display:flex;justify-content:center;align-items:center;background:#000}.video-gallery-container[_ngcontent-%COMP%]   .processing.preview[_ngcontent-%COMP%]{width:100px!important;height:100px!important}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;width:100%;position:absolute;object-fit:contain}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .process-content[_ngcontent-%COMP%]{font-size:14px;background:#00000080;border-radius:15px;padding:5px 12px;color:#fff;z-index:2}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .play-btn[_ngcontent-%COMP%]{position:absolute;display:inline-block;height:52px;width:52px;background-image:url("./media/[email protected]");background-position:-476px -922px;cursor:pointer;z-index:1;top:50%;left:50%;transform:translate(-50%,-50%)}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .play-btn.small[_ngcontent-%COMP%]{background-position:-542px -933px;height:36px;width:36px}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   #close-btn[_ngcontent-%COMP%]{position:absolute;top:30px;right:30px;width:24px;height:24px;background-image:url("./media/[email protected]");background-position:-717px -932px;cursor:pointer;z-index:1}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   #close-btn[_ngcontent-%COMP%]:hover{background-position:-757px -932px}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;align-items:center;position:absolute;
1left:0;right:0;bottom:0;height:55px;padding:20px 15px 0;background-image:linear-gradient(180deg,#0000,#0003 99%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   #play[_ngcontent-%COMP%]{position:relative;width:11px;height:13px;background-image:url("./media/[email protected]");background-position:-641px -933px;cursor:pointer}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   #play[_ngcontent-%COMP%]:before{content:"";position:absolute;top:-5px;bottom:-5px;left:-5px;right:-5px}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   #pause[_ngcontent-%COMP%]{position:relative;width:11px;height:13px;background-image:url("./media/[email protected]");background-position:-599px -934px;cursor:pointer}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   #pause[_ngcontent-%COMP%]:before{content:"";position:absolute;top:-5px;bottom:-5px;left:-5px;right:-5px}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   #time[_ngcontent-%COMP%]{font-family:PingFangSC-Regular;font-size:12px;color:#fff;margin:0 14px;width:32px}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   .play-rate[_ngcontent-%COMP%]{font-size:12px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#fff;margin-right:15px;cursor:pointer;position:relative}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   .play-rate[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:PingFangSC-Medium,PingFang SC;font-weight:500;width:24px;text-align:center;font-size:12px;display:inline-block;height:35px;line-height:35px}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   .play-rate[_ngcontent-%COMP%]   .rate-select[_ngcontent-%COMP%]{padding:5px 0;width:48px;box-sizing:border-box;background:var(--dweb-text-primary);border-radius:6px;position:absolute;bottom:32px;left:50%;transform:translate(-50%)}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   .play-rate[_ngcontent-%COMP%]   .rate-select[_ngcontent-%COMP%]   .rate[_ngcontent-%COMP%]{width:100%;height:27px;text-align:center;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#fff;line-height:27px}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   .play-rate[_ngcontent-%COMP%]   .rate-select[_ngcontent-%COMP%]   .rate.selected[_ngcontent-%COMP%], .video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   .play-rate[_ngcontent-%COMP%]   .rate-select[_ngcontent-%COMP%]   .rate[_ngcontent-%COMP%]:hover{color:var(--dweb-brand);background:#0006}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   .play-rate[_ngcontent-%COMP%]   .triangle[_ngcontent-%COMP%]{position:absolute;bottom:28px;left:50%;transform:translate(-50%);width:0;height:0;border-top:4px solid var(--dweb-text-primary);border-right:5px solid transparent;border-left:5px solid transparent}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   #video-progress[_ngcontent-%COMP%]{position:relative;flex:1;height:2px;padding-right:10px;background-color:#fff9;cursor:pointer}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   #video-progress[_ngcontent-%COMP%]   .timrBar[_ngcontent-%COMP%]{cursor:pointer;padding-left:5px;position:relative;width:0%;height:2px;background-color:var(--dweb-brand)}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   #video-progress[_ngcontent-%COMP%]   .timrBar[_ngcontent-%COMP%]:after{position:absolute;right:-5px;top:-4px;content:"";width:10px;height:10px;background-color:var(--dweb-bg-panel);border-radius:50%}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   #video-progress[_ngcontent-%COMP%]:before{cursor:pointer;content:"";position:absolute;top:-15px;bottom:-15px;left:0;right:0}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   .video-sound[_ngcontent-%COMP%]{position:relative}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   .video-sound[_ngcontent-%COMP%]   #sound[_ngcontent-%COMP%]{display:block;width:13px;height:14px;background-image:url("./media/[email protected]");background-position:-638px -963px;
1cursor:pointer}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   .video-sound[_ngcontent-%COMP%]   #mute[_ngcontent-%COMP%]{display:block;width:13px;height:14px;background-image:url("./media/[email protected]");background-position:-596px -963px;cursor:pointer}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   .video-sound[_ngcontent-%COMP%]   #sound-progress[_ngcontent-%COMP%]{position:absolute;top:-30px;left:-14px;height:3px;width:40px;background-color:#fff9;border-radius:1.5px;cursor:pointer;transform:rotate(270deg);-ms-transform:rotate(270deg);-moz-transform:rotate(270deg);-webkit-transform:rotate(270deg);-o-transform:rotate(270deg)}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   .video-sound[_ngcontent-%COMP%]   #sound-progress[_ngcontent-%COMP%]   .soundBar[_ngcontent-%COMP%]{position:relative;height:3px;width:0%;background-color:var(--dweb-brand)}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   .video-sound[_ngcontent-%COMP%]   #sound-progress[_ngcontent-%COMP%]   .soundBar[_ngcontent-%COMP%]:after{position:absolute;right:-5px;top:-2px;content:"";width:7px;height:7px;background-color:var(--dweb-bg-panel);border-radius:50%}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   .video-sound[_ngcontent-%COMP%]   #sound-progress[_ngcontent-%COMP%]:before{content:"";position:absolute;top:-10px;bottom:-10px;left:0;right:0}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   #fullscreen[_ngcontent-%COMP%]{width:13px;height:12px;background-image:url("./media/[email protected]");background-position:-680px -933px;cursor:pointer;margin-left:14px}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   .video-controls[_ngcontent-%COMP%]   #exitfullscreen[_ngcontent-%COMP%]{width:13px;height:12px;background-image:url("./media/[email protected]");background-position:-680px -964px;cursor:pointer;margin-left:14px}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   #small-process[_ngcontent-%COMP%]{position:absolute;left:0;right:0;bottom:0;height:2px;width:100%;background-color:#fff9}.video-gallery-container[_ngcontent-%COMP%]   .processing[_ngcontent-%COMP%]   #small-process[_ngcontent-%COMP%]   .smallBar[_ngcontent-%COMP%]{height:2px;width:0%;background-color:var(--dweb-brand)}video[_ngcontent-%COMP%]{background:#000;width:100%;height:100%;cursor:pointer}video[_ngcontent-%COMP%]::-webkit-media-controls, video[_ngcontent-%COMP%]::-moz-media-controls, video[_ngcontent-%COMP%]::-webkit-media-controls-enclosure{display:none!important}video[_ngcontent-%COMP%]::-webkit-media-controls-panel, video[_ngcontent-%COMP%]::-webkit-media-controls-panel-container, video[_ngcontent-%COMP%]::-webkit-media-controls-start-playback-button{display:none!important;-webkit-appearance:none}.loading[_ngcontent-%COMP%]{display:inline-block;position:absolute;width:40px;height:40px;top:50%;left:50%;transform:translate(-50%,-50%)}.loading[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{box-sizing:border-box;display:block;position:absolute;width:32px;height:32px;margin:4px;border:4px solid #19988B;border-radius:50%;animation:_ngcontent-%COMP%_loading 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#19988B transparent transparent transparent}.loading[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(1){animation-delay:-.45s}.loading[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.3s}.loading[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.15s}@keyframes _ngcontent-%COMP%_loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.video-gallery-container[_ngcontent-%COMP%]   .play-btn[_ngcontent-%COMP%], .video-gallery-container[_ngcontent-%COMP%]   .play-btn.small[_ngcontent-%COMP%], .video-gallery-container[_ngcontent-%COMP%]   #close-btn[_ngcontent-%COMP%], .video-gallery-container[_ngcontent-%COMP%]   #close-btn[_ngcontent-%COMP%]:hover, .video-controls[_ngcontent-%COMP%]   #play[_ngcontent-%COMP%], .video-controls[_ngcontent-%COMP%]   #pause[_ngcontent-%COMP%], .video-controls[_ngcontent-%COMP%]   .video-sound[_ngcontent-%COMP%]   #sound[_ngcontent-%COMP%], .video-controls[_ngcontent-%COMP%]   .video-sound[_ngcontent-%COMP%]   #mute[_ng
1content-%COMP%], .video-controls[_ngcontent-%COMP%]   #fullscreen[_ngcontent-%COMP%], .video-controls[_ngcontent-%COMP%]   #exitfullscreen[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var Fg=xi(wo());function kf(o,n){if(o&1){let i=y();s(0,"app-dialog",5),f("dialog-cancel",function(){b(i);let t=d();return P(t.showQRCode=!1);}),s(1,"div",6)(2,"p"),g(3),c(),M(4,"img",7),s(5,"span"),g(6,"\u8BF7\u6253\u5F00\u5FAE\u4FE1\u626B\u63CF\u4E8C\u7EF4\u7801"),c()()();}if(o&2){let i=d();C("closeBtn",!0),l(3),V("\u8BF7\u626B\u7801\u53C2\u4E0E\u6216\u56F4\u89C2\u300C",i.checkin.title,"\u300D"),l(),C("src",i.checkinsURL,se);}}var Ag=(()=>{let n=class n{constructor(e,t){this.router=e,this.http=t,this.showQRCode=!1,this.checkinsURL="";}ngOnInit(){this.generateQRCode();}generateQRCode(){let e=`${ie.MWEB_URL}checkins/index.html?group_id=${this.groupID}`;this.http.get(j.getShortURL(e)).subscribe(t=>{if(t.succeeded){let r=t.resp_data.short_url;Fg.default.toDataURL(r,{margin:0}).then(a=>{this.checkinsURL=a;}).catch(a=>{console.error(a);});}else this.http.handleExceptionCode(t,"\u83B7\u53D6\u77ED\u94FE\u63A5\u5931\u8D25");});}toCheckinTopicsPage(){this.router.navigate([`checkin/${this.checkin.checkin_id}`],{queryParams:{groupId:this.groupID}});}};n.ɵfac=function(t){return new(t||n)(O(ue),O(W));},n.ɵcmp=F({type:n,selectors:[["app-checkin"]],inputs:{checkin:"checkin",groupID:[0,"group-id","groupID"]},standalone:!1,decls:6,vars:2,consts:[[1,"app-checkin",3,"click"],[1,"icon-checkin"],[1,"app-checkin-text"],[1,"icon-arrow-right"],["title","\u626B\u7801\u63D0\u793A","type","pure",3,"closeBtn"],["title","\u626B\u7801\u63D0\u793A","type","pure",3,"dialog-cancel","closeBtn"],[1,"app-checkin-preview"],["alt","\u661F\u7403\u4E8C\u7EF4\u7801",3,"src"]],template:function(t,r){t&1&&(s(0,"div",0),f("click",function(){return r.toCheckinTopicsPage();}),M(1,"div",1),s(2,"div",2),g(3),c(),M(4,"div",3),c(),h(5,kf,7,3,"app-dialog",4)),t&2&&(l(3),A(r.checkin.title),l(2),_(r.showQRCode?5:-1));},dependencies:[Ze],styles:['@charset "UTF-8";.examination-detail-panel   [_nghost-%COMP%], .topic-detail-panel   [_nghost-%COMP%]{margin-top:20px}[_nghost-%COMP%]{margin-top:10px;display:block}.app-checkin[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding-left:7px;padding-right:7px;max-width:100%;height:22px;line-height:22px;position:relative;background:var(--dweb-bg-subtle);border-radius:4px;box-sizing:border-box;cursor:pointer}.app-checkin[_ngcontent-%COMP%]   .icon-checkin[_ngcontent-%COMP%]{width:14px;height:15px;background-image:url("./media/[email protected]");background-position:-489px -416px}.app-checkin-text[_ngcontent-%COMP%]{margin-left:7px;margin-right:6px;font-size:12px;color:var(--dweb-text-secondary);letter-spacing:0}.app-checkin[_ngcontent-%COMP%]   .icon-arrow-right[_ngcontent-%COMP%]{width:9.9px;height:9.9px;background-image:url("./media/[email protected]");background-position:-296.6px -197.6px}.app-checkin-preview[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:inline-block;margin:30px 0 10px;width:120px;height:120px;object-fit:cover}.app-checkin-preview[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:16px}.app-checkin-preview[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;color:var(--dweb-brand);font-size:14px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.icon-checkin[_ngcontent-%COMP%], .icon-arrow-right[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var Tf=o=>({display:o});function Ef(o,n){if(o&1&&(s(0,"div",0)(1,"div",1),g(2),c()()),o&2){let i=d();l(2),A(i.invisibleReason);}}function Df(o,n){o&1&&(s(0,"span",5),g(1," \u56DE\u7B54\u4E86"),c());}function If(o,n){if(o&1){let i=y();s(0,"app-file-gallery",13),f("clickFile",function(){b(i);let t=d(3);return P(t.openDetail());}),c();}if(o&2){let i=d(3);C("files",i.topicContent.files)("topic",i.referencedTopic.topic)("group",i.referencedTopic.topic.group)("disablePreview",!0);}}function Ff(o,n){if(o&1){let i=y();s(0,"app-image-gallery",14),f("clickImage",function(){b(i);let t=d(3);return P(t.openDetail());}),c();}if(o&2){let i=d(3);C("disablePreview",!0)("images",i.topicContent.images);}}function Af(o,n){if(o&1){let i=y();s(0,"app-video-gallery",15),f("clickVideo",function(){b(i);let t=d(3);return P(t.openDetail());}),c();}if(o&2){let i=d(3);C("isReferencedTopic",!0)("video",i.topicContent.video)("topic",i.referencedTopic.topic);}}function Vf(o,n){if(o&1){let i=y();s(0,"div",0)(1,"div",2)(2,"div",3)(3,"a",4),$(4,"transformOwner"),f("click",function(){b(i);let t=d(2);return P(t.toFootprint(t.topicContent.owner.user_id));}),c(),h(5,Df,2,0,"span",5),s(6,"span"),g(7,"\uFF1A"),c(),M(8,"span",6),c()(),h(9,If,1,4,"app-file-gallery",7),h(10,Ff,1,2,"app-image-gallery",8),h(11,Af,1,3,"app-video-gallery",9),s(12,"div",10),f("click",function(){b(i);let t=d(2);return P(t.openDetail());}),s(13,"div",11),g(14,"\u67E5\u770B\u539F\u4E3B\u9898"),c(),M(15,"div",12),c()();}if(o&2){let i=d(2);l(3),C("parseName",Pe(4,8,i.showOwnerContent,"owner")),l(2),_(i.isAnswerTopic?5:-1),l(3),C("ngStyle",R(11,Tf,i.topicContent.text?"":"none"))("parseHtml",i.topicContent.text)("linkArticle",i.topicContent.article),l(),_(i.topicContent.files&&i.topicContent.files.length>0?9:-1),l(),_(i.topicContent.images&&i.topicContent.images.length>0?10:-1),l(),_(i.topicContent.video?11:-1);}}function Rf(o,n){if(o&1&&h(0,Vf,16,13,"div",0),o&2){let i=d();_(i.topicContent?0:-1);}}var Vg=(()=>{let n=class n{constructor(e){this.topicService=e,this.isAnswerTopic=!1;}ngOnInit(){let{invisible:e,topic:t}=this.referencedTopic;this.invisibleReason={deleted:"\u8BE5\u4E3B\u9898\u5DF2\u4E0D\u5B58\u5728",isolated:"\u8BE5\u4E3B\u9898\u4E0D\u53EF\u89C1"}[this.referencedTopic.invisible_reason],e||(this.topicContent=Yn(t,!0),this.isAnswerTopic=t.type==="q&a"&&!!t.answer,this.showOwnerContent=this.isAnswerTopic?t.answer:this.topicContent);}toTopicDetailPage(e){ne(`topic/${e}`);}openDetail(){let e=window.location.href.includes("/topic"),t=window.location.href.includes("footprint"),r=window.location.href.includes("/dynamics");e||t||r?this.toTopicDetailPage(this.referencedTopic.topic.topic_id):this.topicService.openDetail(this.referencedTopic.topic);}toFootprint(e){sessionStorage.setItem("footprint_group_id",String(this.referencedTopic.topic.group.group_id)),ne(`footprint/${e}
1?group_id=${String(this.referencedTopic.topic.group.group_id)}`);}};n.ɵfac=function(t){return new(t||n)(O(Oe));},n.ɵcmp=F({type:n,selectors:[["app-referenced-topic"]],inputs:{referencedTopic:[0,"referenced-topic","referencedTopic"]},standalone:!1,features:[ot([Ye])],decls:2,vars:1,consts:[[1,"referenced-topic"],[1,"referenced-topic-invisible"],[1,"referenced-topic-content"],[1,"referenced-topic-inner"],[1,"link-of-topic","noLinkIcon",3,"click","parseName"],[1,"answer-tag"],[3,"ngStyle","parseHtml","linkArticle"],[3,"files","topic","group","disablePreview"],[3,"disablePreview","images"],[3,"isReferencedTopic","video","topic"],[1,"ref",3,"click"],[1,"text"],[1,"icon"],[3,"clickFile","files","topic","group","disablePreview"],[3,"clickImage","disablePreview","images"],[3,"clickVideo","isReferencedTopic","video","topic"]],template:function(t,r){t&1&&h(0,Ef,3,1,"div",0)(1,Rf,1,1),t&2&&_(r.referencedTopic.invisible?0:1);},dependencies:[De,kt,xt,ze,Zn,ei,St],styles:['.referenced-topic[_ngcontent-%COMP%]{margin:10px 0;padding:16px;background:var(--dweb-bg-subtle);border-radius:8px}.referenced-topic-content[_ngcontent-%COMP%]{overflow:hidden;margin-bottom:10px;position:relative;max-height:62px;line-height:20px;font-size:14px;color:var(--dweb-text-secondary);letter-spacing:0}.referenced-topic-content[_ngcontent-%COMP%]   .answer-tag[_ngcontent-%COMP%]{color:var(--dweb-text-faint)}.referenced-topic-content[_ngcontent-%COMP%]:before{content:"....";position:absolute;right:2px;bottom:1px;background:var(--dweb-bg-subtle)}.referenced-topic-inner[_ngcontent-%COMP%]:after{content:"";position:absolute;right:0;width:12px;height:24px;margin-top:.2em;background:var(--dweb-bg-subtle)}.referenced-topic[_ngcontent-%COMP%]   .ref[_ngcontent-%COMP%]{margin-top:16px;display:flex;align-items:center;cursor:pointer;font-size:12px}.referenced-topic[_ngcontent-%COMP%]   .ref[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{color:var(--dweb-text-faint)}.referenced-topic[_ngcontent-%COMP%]   .ref[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-left:1.6px;width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-297px -197px}.referenced-topic-invisible[_ngcontent-%COMP%]{color:var(--dweb-text-faint)}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.ref[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();function Bf(o,n){o&1&&M(0,"span",10);}function Nf(o,n){o&1&&M(0,"span",10);}function zf(o,n){o&1&&(s(0,"span",14),g(1,"\u70B9\u51FB\u9009\u62E9\u89C2\u70B9\uFF0C\u67E5\u770BPK\u7ED3\u679C\u5E76\u8BA8\u8BBA\uFF5E"),c());}function Gf(o,n){if(o&1&&(s(0,"span",15),g(1),c()),o&2){let i=d();l(),Gt(" ",i.total,' \u4EBA\u53C2\u4E0EPK \xA0|\xA0 \u5DF2\u9009\u62E9"',i.votedTitle,'" ');}}var Rg=15,Lg=(()=>{let n=class n{constructor(e){this.http=e,this.isSubmitting=!1,this.redBarWidth=50;}ngOnInit(){this.hasVoted&&(this.redBarWidth=this.calcRedBarWidth());}get hasVoted(){var e,t;return((t=(e=this.vote)==null?void 0:e.user_specific)==null?void 0:t.option_index)>=0;}get total(){var e;return((e=this.vote)==null?void 0:e.total_records_count)||0;}get redCount(){var e,t,r;return((r=(t=(e=this.vote)==null?void 0:e.options)==null?void 0:t[0])==null?void 0:r.records_count)||0;}get redPercent(){return this.total?Math.round(this.redCount/this.total*1e4)/100:50;}get bluePercent(){return this.total?Math.round((1-this.redCount/this.total)*1e4)/100:50;}get blueBarWidth(){return 100-this.redBarWidth;}get votedIndex(){var e,t,r;return(r=(t=(e=this.vote)==null?void 0:e.user_specific)==null?void 0:t.option_index)!=null?r:-1;}get votedTitle(){var e,t,r;return((r=(t=(e=this.vote)==null?void 0:e.options)==null?void 0:t[this.votedIndex])==null?void 0:r.title)||"";}calcRedBarWidth(){if(!this.total)return 50;let e=this.redPercent;return Math.max(Rg,Math.min(100-Rg,e));}selectOption(e){var r,a,p;if(this.hasVoted||this.isSubmitting)return;let t=(p=(a=(r=this.vote)==null?void 0:r.options)==null?void 0:a[e])==null?void 0:p.uid;t&&(this.isSubmitting=!0,this.http.put(j.voteOption(this.vote.uid),{req_data:{option_uid:t,agree:!0}}).subscribe(m=>{if(this.isSubmitting=!1,m.succeeded){let v=m.resp_data.vote;this.redBarWidth=50,Object.assign(this.vote,v),setTimeout(()=>{this.redBarWidth=this.calcRedBarWidth();},30);}}));}};n.ɵfac=function(t){return new(t||n)(O(W));},n.ɵcmp=F({type:n,selectors:[["app-vote-pk"]],inputs:{vote:"vote"},standalone:!1,decls:28,vars:17,consts:[[1,"vote-pk-container"],[1,"vote-title"],[1,"vote-options",3,"hidden"],[1,"option-btn","option-red",3,"click"],[1,"bar-slice"],[1,"option-btn","option-blue",3,"click"],[1,"vote-result",3,"hidden"],[1,"bar-red"],[1,"bar-top"],[1,"percent"],[1,"check"],[1,"label"],[1,"bar-blue"],[1,"vote-footer"],[1,"hint"],[1,"stats"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1),g(2),c(),s(3,"div",2)(4,"div",3),f("click",function(){return r.selectOption(0);}),g(5),c(),M(6,"div",4),s(7,"div",5),f("click",function(){return r.selectOption(1);}),g(8),c()(),s(9,"div",6)(10,"div",7)(11,"div",8)(12,"span",9),g(13),c(),h(14,Bf,1,0,"span",10),c(),s(15,"div",11),g(16),c()(),M(17,"div",4),s(18,"div",12)(19,"div",8),h(20,Nf,1,0,"span",10),s(21,"span",9),g(22),c()(),s(23,"div",11),g(24),c()()(),s(25,"div",13),h(26,zf,2,0,"span",14),h(27,Gf,2,2,"span",15),c()()),t&2&&(l(2),A(r.vote.title),l(
1),C("hidden",r.hasVoted),l(2),V(" ",r.vote.options[0].title," "),l(3),V(" ",r.vote.options[1].title," "),l(),C("hidden",!r.hasVoted),l(),Bn("flex",r.redBarWidth),l(3),V("",r.redPercent,"%"),l(),_(r.votedIndex===0?14:-1),l(2),A(r.vote.options[0].title),l(2),Bn("flex",100-r.redBarWidth),l(2),_(r.votedIndex===1?20:-1),l(2),V("",r.bluePercent,"%"),l(2),A(r.vote.options[1].title),l(2),_(r.hasVoted?-1:26),l(),_(r.hasVoted?27:-1));},styles:['.vote-pk-container[_ngcontent-%COMP%]   [hidden][_ngcontent-%COMP%]{display:none!important}.vote-pk-container[_ngcontent-%COMP%]{background:var(--dweb-bg-subtle);border-radius:8px;padding:16px;margin:12px 0;box-sizing:border-box}.vote-pk-container[_ngcontent-%COMP%]   .vote-title[_ngcontent-%COMP%]{font-weight:500;font-size:13px;color:var(--dweb-text-primary);text-align:center;margin-bottom:16px}.vote-pk-container[_ngcontent-%COMP%]   .vote-options[_ngcontent-%COMP%]{display:flex;margin-bottom:12px;height:42px;position:relative}.vote-pk-container[_ngcontent-%COMP%]   .vote-options[_ngcontent-%COMP%]:before{content:"";width:38.6px;height:34.4px;position:absolute;left:0;right:0;top:0;bottom:0;margin:auto;background-image:url("./media/[email protected]");background-size:100%}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.vote-pk-container[_ngcontent-%COMP%]   .vote-options[_ngcontent-%COMP%]:before{background-image:url("./media/[email protected]")}}.vote-pk-container[_ngcontent-%COMP%]   .vote-options[_ngcontent-%COMP%]   .option-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex:1;height:100%;font-size:15px;font-weight:500;color:#fff;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 16px;box-sizing:border-box}.vote-pk-container[_ngcontent-%COMP%]   .vote-options[_ngcontent-%COMP%]   .option-btn.option-red[_ngcontent-%COMP%]{background:var(--dweb-danger);border-radius:21px 0 0 21px}.vote-pk-container[_ngcontent-%COMP%]   .vote-options[_ngcontent-%COMP%]   .option-btn.option-blue[_ngcontent-%COMP%]{background:#6099f5;border-radius:0 21px 21px 0}.vote-pk-container[_ngcontent-%COMP%]   .vote-result[_ngcontent-%COMP%]{display:flex;height:42px;line-height:1}.vote-pk-container[_ngcontent-%COMP%]   .vote-result[_ngcontent-%COMP%]   .bar-red[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding-left:18px;box-sizing:border-box;min-width:0;background:var(--dweb-danger);border-radius:21px 0 0 21px;transition:flex .5s ease}.vote-pk-container[_ngcontent-%COMP%]   .vote-result[_ngcontent-%COMP%]   .bar-blue[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;padding-right:18px;box-sizing:border-box;min-width:0;background:#6099f5;border-radius:0 21px 21px 0;transition:flex .5s ease}.vote-pk-container[_ngcontent-%COMP%]   .vote-result[_ngcontent-%COMP%]   .bar-blue[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{text-align:right}.vote-pk-container[_ngcontent-%COMP%]   .vote-result[_ngcontent-%COMP%]   .bar-top[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:6px}.vote-pk-container[_ngcontent-%COMP%]   .vote-result[_ngcontent-%COMP%]   .bar-top[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-right:8px}.vote-pk-container[_ngcontent-%COMP%]   .vote-result[_ngcontent-%COMP%]   .percent[_ngcontent-%COMP%]{font-size:15px;font-weight:700;color:#fff}.vote-pk-container[_ngcontent-%COMP%]   .vote-result[_ngcontent-%COMP%]   .check[_ngcontent-%COMP%]{width:10px;height:8px;background-image:url("./media/[email protected]");background-size:100%}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.vote-pk-container[_ngcontent-%COMP%]   .vote-result[_ngcontent-%COMP%]   .check[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")}}.vote-pk-container[_ngcontent-%COMP%]   .vote-result[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:12px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.vote-pk-container[_ngcontent-%COMP%]   .vote-footer[_ngcontent-%COMP%]{text-align:center;margin-top:12px}.vote-pk-container[_ngcontent-%COMP%]   .vote-footer[_ngcontent-%COMP%]   .hint[_ngcontent-%COMP%], .vote-pk-container[_ngcontent-%COMP%]   .vote-footer[_ngcontent-%COMP%]   .stats[_ngcontent-%COMP%]{font-size:12px;color:var(--dweb-text-muted)}.bar-slice[_ngcontent-%COMP%]{flex-shrink:0;width:32px;height:42px;background-image:url("./media/[email protected]");background-size:100% 100%;background-repeat:no-repeat}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.bar-slice[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")}}html[data-theme=dark][_nghost-%COMP%]   .vote-pk-container[_ngcontent-%COMP%]   .vote-options[_ngcontent-%COMP%]   .option-btn.option-red[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .vote-pk-container[_ngcontent-%COMP%]   .vote-options[_ngcontent-%COMP%]   .option-btn.option-red[_ngcontent-%COMP%], html[data-theme=dark][_nghost-%COMP%]   .vote-pk-container[_ngcontent-%COMP%]   .vote-result[_ngcontent-%COMP%]   .bar-red[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .vote-pk-container[_ngcontent-%COMP%]   .vote-result[_ngcontent-%COMP%]   .bar-red[_ngcontent-%COMP%]{background:#f57f59}']});let o=n;return o;})();var $f=o=>({display:o});function Hf(o,n){if(o&1&&M(0,"app-file-gallery",4),o&2){let i=d();C("files",i.data.talk.files)("topic",i.data)("group",i.data.group);}}function Uf(o,n){if(o&1&&M(0,"app-image-gallery",5),o&2){let i=d();C("images",i.data.talk.images);}}function qf(o,n){if(o&1&&M(0,"app-video-gallery",6),o&2){let i=d();C("video",i.data.talk.video)("topic",i.data);}}function Qf(o,n){if(o&1&&M(0,"app-checkin",7),o&2){let i=d();C("group-id",i.data.group.group_id)("checkin",i.data.checkin);}}function Wf(o,n){if(o&1&&(s(0,"div",8),M(1,"app-vote-pk",10),c()),o&2){let i=d();l(),C("vote",i.data.talk.vote);}}function Xf(o,n){if(o&1&&M(0,"app-referenced-topic",9),o&2){let i=d();C("referenced-topic",i.data.referenced_topic);}}var En=(()=>{let n=class n{constructor(e){this.el=e,this.showAll=!1;}ngAfterViewInit(){this.fromWhere!=="detail"&&!this.data.talk.article&&di(this.el.nativeElement.querySelector(".content"))>205&&!this.showAll&&(this.el.nativeElement.querySelector(".content").style.maxHeight="205px",this.fromWhere==="footprint"?this.el.nativeElement.querySelector(".ellipsis").style.display="block":this.el.nativeElement.querySelector(".showAll").style.display="block");}showMorecontent(){this.showAll?(this.showAll=!1,window.scrollTo(0,this.curScrollTop),this.el.nativeElement.querySelector(".content").style.maxHeight="205px"):(this.curScrollTop=this.el.nativeElement.querySelector(".talk-content-container").offsetTop-this.el.nativeElement.querySelector(".talk-content-container").getBoundingClientRect().top,this.showAll=!0,this.el.nativeElement.querySelector(".content").style.maxHeight="none");}};n.ɵfac=function(t){return new(t||n)(O(Re));},n.ɵcmp=F({type:n,selectors:[["app-talk-content"]],inputs:{data:"data",fromWhere:"fromWhere"},standalone:!1,decls:13,vars:16,consts:[[1,"talk-content-container"],[1,"content",3,"ngStyle","parseHtml","annotations","linkArticle","groupInfo"],[1,"ellipsis"],[1,"showAll",3,"click"],[3,"files","topic","group"],[3,"images"],[3,"video","topic"],[3,"group-id","checkin"],[1,"vote-pk"],[3,"referenced-topic"],[3,"vote"]],template:function(t,r){t&1&&(s(0,"div",0),M(1,"div",1),$(2,"filterEmptyLines"),s(3,"p",2),g(4,"..."),c(),s(5,"p",3),f("click",function(){return r.showMorecontent();}),g(6),c(),h(7,Hf,1,3,"app-file-gallery",4),h(8,Uf,1,1,"app-image-gallery",5),h(9,qf,1,2,"app-video-gallery",6),h(10,Qf,1,2,"app-checkin",7),h(11,Wf,2,1,"div",8),h(12,Xf,1,1,"app-referenced-topic",9),c()),t&2&&(l(),C("ngStyle",R(14,$f,r.data.talk.text?"":"none"))("parseHtml",Z(2,12,r.data.talk.text))("annotations",r.data.annotation)("linkArticle",r.data.talk.article)("groupInfo",r.data.group),l(5),V(" ",r.showAll?"\u6536\u8D77":"\u5C55\u5F00\u5168\u90E8"," "),l(),_(r.data.talk.files&&r.data.talk.files.length>0?7:-1),l(),_(r.data.talk.images&&r.data.talk.images.length>0?8:-1),l(),_(r.data.talk.video?9:-1),l(),_(r.data.checkin?10:-1),l(),_(r.data.talk!=null&&r.data.talk.vote?11:-1),l(),_(r.data.referenced_topic?12:-1));},dependencies:[De,kt,ze,Zn,ei,Ag,Vg,Lg,Jt],styles:['@charset "UTF-8";.talk-content-container[_ngcontent-%COMP%]{padding-left:56px;padding-right:20px;margin-bottom:10px;line-height:25px;font-size:15px;color:var(--dweb-text-primary, #2F3034)}.talk-content-container[_ngcontent-%COMP%]   .showAll[_ngcontent-%COMP%]{display:none;color:var(--dweb-info);cursor:pointer;margin-top:10px}.talk-content-container[_ngcontent-%COMP%]   .ellipsis[_ngcontent-%COMP%]{display:none}.talk-content-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{white-space:pre-wrap;word-wrap:break-word;overflow:hidden}.talk-content-container[_ngcontent-%COMP%]   .content.showMore[_ngcontent-%COMP%]{max-height:auto}.talk-content-container[_ngcontent-%COMP%]   .content.showless[_ngcontent-%COMP%]{max-height:168px}.talk-content-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]     .hashtag{color:var(--dweb-info)}.vote-pk[_ngcontent-%COMP%]{width:384px;margin:10px 0}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.content[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:before{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var Yf=o=>({color:o});function Kf(o,n){o&1&&(s(0,"span")(1,"span",8),g(2,"\u8BE5\u7528\u6237\u5DF2\u9000\u51FA\u661F\u7403"),c(),g(3,"\uFF1B"),c());}function Zf(o,n){if(o&1&&(s(0,"span"),g(1),c()),o&2){let i=d(2);l(),V("\u52A0\u5165\u65F6\u95F4\uFF1A",i.formatJoinTime(i.data.question.owner_detail,i.data.question.anonymous),"\uFF1B");}}function eC(o,n){o&1&&(s(0,"span",7),g(1,"(\u8BE5\u4ED8\u8D39\u63D0\u95EE\u8D85 72 \u5C0F\u65F6\u672A\u88AB\u56DE\u7B54\uFF0C\u8D39\u7528\u5DF2\u539F\u8DEF\u9000\u8FD8\u7528\u6237)"),c());}function tC(o,n){if(o&1&&(s(0,"div",1),h(1,Kf,4,0,"span")(2,Zf,2,1,"span"),s(3,"span"),g(4),c(),h(5,eC,2,0,"span",7),c()),o&2){let i=d();l(),_(i.data.question.owner_detail.status==="exited"?1:2),l(3),V("\u63D0\u95EE\u6B21\u6570\uFF1A",i.data.question.owner_detail.questions_count),l(),_(i.data.question.fee&&i.data.question.expired&&!i.data.answered?5:-1);}}function nC(o,n){if(o&1&&(s(0,"div",3),g(1),$(2,"questionHeader"),c()),o&2){let i=d();l(),A(Pe(2,1,i.data,"fee"));}}function iC(o,n){if(o&1&&M(0,"app-image-gallery",6),o&2){let i=d();C("images",i.data.question.images);}}function oC(o,n){if(o&1&&(s(0,"span",12),g(1),c()),o&2){let i=d(3);C("ngStyle",R(2,Yf,i.data.scheduled?"#16B998":"")),l(),A(i.data.scheduled?"\u5BF9\u65B9\u5DF2\u5C06\u56DE\u7B54\u8BBE\u7F6E\u5728 "+i.formatTime(i.data.scheduled.answer_time)+" \u5C55\u793A":"\u7B49\u5F85\u56DE\u7B54");}}function rC(o,n){if(o&1&&(s(0,"span"),g(1),c()),o&2){let i=d(3);l(),A(i.data.question.expired?"\u8BE5\u95EE\u9898\u5DF2\u8FC772\u5C0F\u65F6\u672A\u88AB\u56DE\u7B54\uFF0C\u81EA\u52A8\u8F6C\u4E3A\u514D\u8D39\u63D0\u95EE\uFF0C\u7CFB\u7EDF\u5DF2\u5411\u4F60\u9000\u6B3E":"\u82E5\u95EE\u989872\u5C0F\u65F6\u5185\u672A\u88AB\u56DE\u7B54\uFF0C\u81EA\u52A8\u8F6C\u4E3A\u514D\u8D39\u63D0\u95EE\uFF0C\u8D39\u7528\u5C06\u539F\u8DEF\u9000\u56DE");}}function aC(o,n){o&1&&(s(0,"span"),g(1,"\u7B54\u4E3B\u8EAB\u4EFD\u5DF2\u5931\u6548\uFF0C\u65E0\u6CD5\u56DE\u7B54\u4F60\u7684\u63D0\u95EE"),c());}function sC(o,n){if(o&1&&(s(0,"div",10),h(1,oC,2,4,"span",12),h(2,rC,2,1,"span"),h(3,aC,2,0,"span"),c()),o&2){let i=d(2);l(),_(i.availableAnswer&&!i.data.question.fee?1:-1),l(),_(i.data.question.fee?2:-1),l(),_(i.availableAnswer?-1:3);}}function cC(o,n){if(o&1){let i=y();s(0,"div",13),f("click",function(t){b(i);let r=d(2);return P(r.openAnswer(t));}),g(1,"\u56DE\u7B54\u8BE5\u63D0\u95EE"),c();}}function lC(o,n){if(o&1&&(M(0,"div",9),h(1,sC,4,3,"div",10),h(2,cC,2,0,"div",11)),o&2){let i=d();l(),_(i.user_id===i.data.question.questionee.user_id&&i.cananswer?-1:1),l(),_(i.user_id===i.data.question.questionee.user_id&&i.cananswer?2:-1);}}var Li=(()=>{let n=class n{constructor(e,t,r,a,p){this.topicDetailService=e,this.topicService=t,this.mainService=r,this.indexService=a,this.groupService=p,this.user_id=0,this.answerTopicVisible=!1,this.cananswer=!1,this.availableAnswer=!0;}formatJoinTime(e,t){return ia(e,t);}ngOnInit(){if(this.user_id=this.indexService.getSelfInfo("user_id"),this.data.hasOwnProperty("answer")||(this.cananswer=!0),this.answerTopicVisible=this.data.fromModify||this.topicDetailService.getAnswerInputStatus().fromWhere==="mainTopics"||this.fromWhere==="footprint"||this.fromWhere==="global_dynamic",!this.answerTopicVisible){let e=this.data.question.questionee.user_id,t=this.groupService.getSelectedGroup();this.availableAnswer=e===t.owner.user_id||t.partner_ids&&t.partner_ids.indexOf(e)!==-1||t.admin_ids&&t.admin_ids.indexOf(e)!==-1||t.guest_ids&&t.guest_ids.indexOf(e)!==-1;}}get showFee(){let e=this.fromWhere;switch(window.location.href.indexOf("/answerlist")!==-1&&(e="answerQuestionPage"),e){case"footprint":return this.data.question.questionee.user_id===this.user_id;case"answerQuestionPage":return this.data.question.fee;default:return!this.data.question.expired;}}closeTopicDetail(){this.answerTopicVisible=!1;}openAnswer(e){if(e.stopPropagation(),this.fromWhere==="detail")this.answerTopicVisible=!0,this.topicDetailService.showAnswerInput(!0);else if(this.fromWhere==="mainTopics"){this.topicService.setQuestionTopic(this.data);let t=this.mainService.topicList.findIndex(r=>r===this.data);this.mainService.setQuestionIndex(t);}}formatTime(e){return Fe(ge(e),"yyyy/MM/dd HH:mm");}};n.ɵfac=function(t){return new(t||n)(O(Te),O(Oe),O(oe),O(q),O(ce));},n.ɵcmp=F({type:n,selectors:[["app-question-content"]],inputs:{data:"data",fromWhere:"fromWhere"},standalone:!1,decls:11,vars:12,consts:[[1,"question-content-container"],[1,"join-time"],[1,"header"],[1,"fee"],[1,"owner"],[1,"content",3,"parseHtml","annotations"],[3,"images"],[2,"color","#c5c6cb","margin-left","6px"],[1,"caution"],[1,"horizontal-line"],[1,"question-status"],[1,"answer-question"],[3,"ngStyle"],[1,"answer-question",3,"click"]],template:function(t,r){t&1&&(s(0,"div",0),h(1,tC,6,3,"div",1),s(2,"div",2),h(3,nC,3,4,"div",3),s(4,"div",4),g(5),$(6,"questionHeader"),c()(),M(7,"div",5),$(8,"filterEmptyLines"),h(9,iC,1,1,"app-image-gallery",6),h(10,lC,3,2),c()),t&2&&(l(),_(!r.data.fromModify&&r.user_id!==(r.data.question.owner==null?null:r.data.question.owner.user_id)&&r.fromWhere!=="footprint"&&r.fromWhere!=="global_dynamic"?1:-1),l(2),_(r.showFee?3:-1),l(2),A(Pe(6,7,r.data,"owner")),l(2),C("parseHtml",Z(8,10,r.data.question.text))("annotations",r.data.annotation),l(2),_(r.data.question.images&&r.data.question.images.length>0?9:-1),l(),_(r.answerTopicVisible?-1:10));},dependencies:[De,kt,ze,Jt,bo],styles:[".question-content-container[_ngcontent-%COMP%]{padding-left:56px;padding-right:20px;line-height:25px;color:var(--dweb-text-primary, #2F3034);white-space:pre-wrap;word-wrap:break-word;margin-bottom:10px}
1.question-content-container[_ngcontent-%COMP%]   .join-time[_ngcontent-%COMP%]{height:28px;line-height:28px;border-top:1px solid rgba(0,0,0,.05);border-bottom:1px solid rgba(0,0,0,.05);margin-bottom:10px}.question-content-container[_ngcontent-%COMP%]   .join-time[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:12px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:var(--dweb-text-muted)}.question-content-container[_ngcontent-%COMP%]   .join-time[_ngcontent-%COMP%]   span.caution[_ngcontent-%COMP%]{color:var(--dweb-danger)}.question-content-container[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{display:flex;font-size:15px;margin-bottom:10px}.question-content-container[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .fee[_ngcontent-%COMP%]{color:var(--dweb-danger, #F57F59);line-height:25px}.question-content-container[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .owner[_ngcontent-%COMP%]{color:gray;line-height:25px}.question-content-container[_ngcontent-%COMP%]   .horizontal-line[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.05);margin-right:36px;margin-top:20px}.question-content-container[_ngcontent-%COMP%]   .question-status[_ngcontent-%COMP%]{text-align:center;padding-top:20px;padding-right:36px}.question-content-container[_ngcontent-%COMP%]   .question-status[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:PingFangSC-Regular;font-size:14px;color:var(--dweb-text-placeholder)}.question-content-container[_ngcontent-%COMP%]   .answer-question[_ngcontent-%COMP%]{text-align:center;padding:20px 36px 0 0;font-size:16px;color:var(--dweb-brand, #16B998);cursor:pointer}.question-content-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{font-size:15px;line-height:25px}"]});let o=n;return o;})();function pC(o,n){o&1&&(s(0,"div",3)(1,"span"),g(2,"\u533F\u540D\u7528\u6237"),c(),g(3," \u63D0\u95EE\uFF1A"),c());}function dC(o,n){if(o&1&&(s(0,"div",3)(1,"span"),g(2),$(3,"filterRLOLRO"),c(),g(4," \u63D0\u95EE\uFF1A "),c()),o&2){let i=d();l(2),A(Z(3,1,i.data.question.owner.name));}}function gC(o,n){if(o&1&&M(0,"app-image-gallery",5),o&2){let i=d();C("images",i.data.question.images);}}function uC(o,n){if(o&1&&(M(0,"div",7),$(1,"filterEmptyLines")),o&2){let i=d();C("parseHtml",Z(1,2,i.data.answer.text))("annotations",i.data.annotation);}}function mC(o,n){if(o&1&&M(0,"app-audio-player",9),o&2){let i=d();C("voice",i.data.answer.voice);}}function hC(o,n){if(o&1&&M(0,"app-image-gallery",5),o&2){let i=d();C("images",i.data.answer.images);}}var ti=(()=>{let n=class n{constructor(e){this.el=e,this.showAll=!1,this.showAllQuestion=!1;}ngOnInit(){}ngAfterViewInit(){if(this.fromWhere!=="detail"){let e=this.el.nativeElement.querySelector(".question-contain");if(e&&di(e)>254&&!this.showAllQuestion){e.style.maxHeight="254px",e.style.overflow="hidden",e.style.display="block";let a=this.el.nativeElement.querySelector(".showAllQuestion");a&&(a.style.display="block");}let t=this.el.nativeElement.querySelector(".answer");if(t&&di(t)>203&&!this.showAll){t.style.maxHeight="203px";let a=this.el.nativeElement.querySelector(".showAll");a&&(a.style.display="block");}}}showMorecontent(){this.showAll?(this.showAll=!1,window.scrollTo(0,this.curScrollTop),this.el.nativeElement.querySelector(".answer").style.maxHeight="203px"):(this.curScrollTop=this.el.nativeElement.querySelector(".answer-content-container").offsetTop-this.el.nativeElement.querySelector(".answer-content-container").getBoundingClientRect().top,this.showAll=!0,this.el.nativeElement.querySelector(".answer").style.maxHeight="none");}showMoreQuestion(){let e=this.el.nativeElement.querySelector(".question-contain");this.showAllQuestion?(this.showAllQuestion=!1,window.scrollTo(0,this.curScrollTopQuestion),e.style.maxHeight="254px",e.style.overflow="hidden"):(this.curScrollTopQuestion=this.el.nativeElement.querySelector(".answer-content-container").offsetTop-this.el.nativeElement.querySelector(".answer-content-container").getBoundingClientRect().top,this.showAllQuestion=!0,e.style.maxHeight="none",e.style.overflow="visible");}};n.ɵfac=function(t){return new(t||n)(O(Re));},n.ɵcmp=F({type:n,selectors:[["app-answer-content"]],inputs:{data:"data",fromWhere:"fromWhere"},standalone:!1,decls:14,vars:9,consts:[[1,"answer-content-container"],[1,"question"],[1,"content"],[1,"question-owner"],[1,"question-contain",3,"parseHtml"],[3,"images"],[1,"showAllQuestion",3,"click"],[1,"answer",3,"parseHtml","annotations"],[1,"showAll",3,"click"],[3,"voice"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),h(3,pC,4,0,"div",3),h(4,dC,5,3,"div",3),M(5,"span",4),h(6,gC,1,1,"app-image-gallery",5),s(7,"p",6),f("
1click",function(){return r.showMoreQuestion();}),g(8),c()()(),h(9,uC,2,4,"div",7),s(10,"p",8),f("click",function(){return r.showMorecontent();}),g(11),c(),h(12,mC,1,1,"app-audio-player",9),h(13,hC,1,1,"app-image-gallery",5),c()),t&2&&(l(3),_(r.data.question.anonymous?3:-1),l(),_(r.data.question.anonymous?-1:4),l(),C("parseHtml",r.data.question.text),l(),_(r.data.question.images&&r.data.question.images.length>0?6:-1),l(2),V(" ",r.showAllQuestion?"\u6536\u8D77":"\u5C55\u5F00\u5168\u90E8"," "),l(),_(r.data.answer.text?9:-1),l(2),V(" ",r.showAll?"\u6536\u8D77":"\u5C55\u5F00\u5168\u90E8"," "),l(),_(r.data.answer.voice?12:-1),l(),_(r.data.answer.images&&r.data.answer.images.length>0?13:-1));},dependencies:[kt,rd,ze,Oo,Jt],styles:[".answer-content-container[_ngcontent-%COMP%]{padding-left:56px;padding-right:20px;line-height:25px;color:var(--dweb-text-primary, #2F3034)}.answer-content-container[_ngcontent-%COMP%]   .question[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{border-left:4px solid var(--dweb-disabled);padding-left:10px;color:gray;white-space:pre-wrap;word-wrap:break-word;line-height:25px}.answer-content-container[_ngcontent-%COMP%]   .question[_ngcontent-%COMP%]   .question-owner[_ngcontent-%COMP%]{display:inline;margin-right:6px}.answer-content-container[_ngcontent-%COMP%]   .question[_ngcontent-%COMP%]   .question-owner[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-right:4px}.answer-content-container[_ngcontent-%COMP%]   .question[_ngcontent-%COMP%]{margin-bottom:15px}.answer-content-container[_ngcontent-%COMP%]   .answer[_ngcontent-%COMP%]{white-space:pre-wrap;line-height:25px;word-wrap:break-word;overflow:hidden}.answer-content-container[_ngcontent-%COMP%]   .showAll[_ngcontent-%COMP%], .answer-content-container[_ngcontent-%COMP%]   .showAllQuestion[_ngcontent-%COMP%]{display:none;color:var(--dweb-info);cursor:pointer;margin-top:10px}"]});let o=n;return o;})();var Bo=(()=>{let n=class n{constructor(e){this.http=e,this._taskTopic$=new U(),this.taskTopic$=this._taskTopic$.asObservable(),this._taskStatistics$=new U(),this.taskStatistics$=this._taskStatistics$.asObservable(),this._solutionList$=new U(),this.solutionList$=this._solutionList$.asObservable(),this._doHomeworkStatus$=new U(),this.doHomeworkStatus$=this._doHomeworkStatus$.asObservable();}getTaskTopic(e){this.http.get(j.getTopic(e)).subscribe(t=>{t.succeeded?this._taskTopic$.next(t.resp_data.topic):this.http.handleExceptionCode(t,"\u83B7\u53D6\u4E3B\u9898\u5931\u8D25");});}getTaskStatistics(e){this.http.get(j.getTaskStatistics(e)).subscribe(t=>{t.succeeded?this._taskStatistics$.next(t.resp_data):this.http.handleExceptionCode(t,"\u83B7\u53D6\u4F5C\u4E1A\u7EDF\u8BA1\u4FE1\u606F");});}getSolutionList(e){this.http.get(j.getSolutionList(e)).subscribe(t=>{t.succeeded?this._solutionList$.next(t.resp_data.solutions):this.http.handleExceptionCode(t,"\u83B7\u53D6\u4F5C\u4E1A\u7B54\u6848\u6392\u884C\u699C");});}doHomework(e){this._doHomeworkStatus$.next(e);}};n.ɵfac=function(t){return new(t||n)(re(W));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();function fC(o,n){if(o&1&&M(0,"app-file-gallery",3),o&2){let i=d();C("files",i.data.task.files)("topic",i.data)("group",i.data.group);}}function CC(o,n){if(o&1&&M(0,"app-image-gallery",4),o&2){let i=d();C("images",i.data.task.images);}}function xC(o,n){if(o&1&&M(0,"app-video-gallery",5),o&2){let i=d();C("video",i.data.task.video)("topic",i.data);}}function vC(o,n){if(o&1){let i=y();s(0,"div",11),f("click",function(t){b(i);let r=d(2);return P(r.doHomework(t));}),M(1,"div",9),s(2,"div",10),g(3,"\u5199\u4F5C\u4E1A"),c()();}}function bC(o,n){if(o&1){let i=y();s(0,"div",6),h(1,vC,4,0,"div",7),s(2,"div",8),f("click",function(){b(i);let t=d();return P(t.toHomework());}),M(3,"div",9),s(4,"div",10),g(5,"\u4F5C\u4E1A\u699C"),c()()();}if(o&2){let i=d();l(),_(i.data.enabled_task?1:-1);}}var ni=(()=>{let n=class n{constructor(e,t,r,a,p,m){this.message=e,this.indexService=t,this.router=r,this.homeworkService=a,this.http=p,this.el=m,this.createTopicVisible=!1,this.noOnTimelineTip=!1,this.showAll=!1;}ngOnInit(){this.homeworkService.doHomeworkStatus$.subscribe(e=>{this.doHomework(event);});}ngAfterViewInit(){this.fromWhere!=="detail"&&this.fromWhere!=="preview"&&!this.indexService.isTrialMember&&di(this.el.nativeElement.querySelector(".content"))>205&&!this.showAll&&(this.el.nativeElement.querySelector(".content").style.maxHeight="205px",this.el.nativeElement.querySelector(".showAll").style.display="block");}doHomework(e){e.stopPropagation();let t="\u6CA1\u6709\u53D1\u8868\u4E3B\u9898\u7684\u6743\u9650";this.fromWhere==="preview"?(t="\u52A0\u5165\u661F\u7403\u53EF\u4EE5\u67E5\u770B\u5168\u90E8\u5185\u5BB9\u548C\u53C2\u4E0E\u4E92\u52A8",this.message.info({content:t})):this.indexService.isTrialMember?this.message.info({content:t}):(this.indexService.openCreateTopic("solution",{show_topics_on_timeline:this.data.show_solutions,task_id:this.data.topic_id}),this.indexService.spareScrollbarSpace());}toHomework(){return ye(this,null,function*(){if(this.fromWhere==="preview")this.message.info({content:"\u52A0\u5165\u661F\u7403\u53EF\u4EE5\u67E5\u770B\u5168\u90E8\u5185\u5BB9\u548C\u53C2\u4E0E\u4E92\u52A8"});else{let e=yield this.http.get(j.getGroup(this.data.group.group_id)).toPromise();if(e.succeeded){let t=e.resp_data.group;this.indexService.setTargetGroup(t),this.router.navigate(["homework",this.data.topic_id]);}else return this.http.handleExceptionCode(e,"\u83B7\u53D6\u661F\u7403\u5931\u8D25"),null;}});}showMorecontent(){this.showAll?(this.showAll=!1,window.scrollTo(0,this.curScrollTop),this.el.nativeElement.querySelector(".content").style.maxHeight="205px"):(this.curScrollTop=this.el.nativeElement.querySelector(".task-content-container").offsetTop-this.el.nativeElement.querySelector(".task-content-container").getBoundingClientRect().top,this.showAll=!0,this.el.nativeElement.querySelector(".content").style.maxHeight="none");}};n.ɵfac=function(t){return new(t||n)(O(le),O(q),O(ue),O(Bo),O(W),O(Re));},n.ɵcmp=F({type:n,selectors:[["app-task-content"]],inputs:{data:"data",fromWhere:"fromWhere"},standalone:!1,decls:9,vars:9,consts:[[1,"task-content-container"],[1,"content",3,"parseHtml","annotations"],[1,"showAll",3,"click"],[3,"files","topic","group"],[3,"images"],[3,"video","topic"],[1,"task-operation"],[1,"write"],[1,"write","list",3,"click"],[1,"icon"],[1,"text"],[1,"write",3,"click"]],template:function(t,r){t&1&&(s(0,"div",0),M(1,"div",1),$(2,"filterEmptyLines"),s(3,"p",2),f("click",function(){return r.showMorecontent();}),g(4),c(),h(5,fC,1,3,"app-file-gallery",3),h(6,CC,1,1,"app-image-gallery",4),h(7,xC,1,2,"app-video-gallery",5),h(8,bC,6,1,"div",6),c()),t&2&&(l(),C("parseHtml",Z(2,7,r.data.task.text))("annotations",r.data.annotation),l(3),V(" ",r.showAll?"\u6536\u8D77":"\u5C55\u5F00\u5168\u90E8"," "),l(),_((r.data.task.files==null?null:r.data.task.files.length)>0?5:-1),l(),_(r.data.task.images&&r.data.task.images.length>0?6:-1),l(),_(r.data.task.video?7:-1),l(),_(r.fromWhere!=="preview"&&r.fromWhere!=="homework"?8:-1));},dependencies:[kt,ze,Zn,ei,Jt],styles:['@charset "UTF-8";.task-content-container[_ngcontent-%COMP%]{padding-left:56px;padding-right:20px;line-height:25px;color:var(--dweb-text-primary, #2F3034);word-wrap:break-word;white-space:pre-wrap}.task-content-container[_ngcontent-%COMP%]   .showAll[_ngcontent-%COMP%]{display:none;color:var(--dweb-info);cursor:pointer;margin-top:10px}.task-content-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{white-space:pre-wrap;word-wrap:break-word;overflow:hidden}.task-content-container[_ngcontent-%COMP%]   .content.showMore[_ngcontent-%COMP%]{max-height:auto}.task-content-container[_ngcontent-%COMP%]   .content.showless[_ngcontent-%COMP%]{max-height:168px}.task-content-container[_ngcontent-%COMP%]   .task-operation[_ngcontent-%COMP%]{margin:10px 0;display:flex}.task-content-container[_ngcontent-%COMP%]   .task-operation[_ngcontent-%COMP%]   .write[_ngcontent-%COMP%]{display:flex;border:1px solid var(--dweb-info, #567895);border-radius:2px;background:#fafdff;margin-right:10px;color:var(--dweb-info, #567895);align-items:center;padding:2px 12px;cursor:pointer}.task-content-container[_ngcontent-%COMP%]   .task-operation[_ngcontent-%COMP%]   .write[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:13px;height:13px;background-image:url("./media/[email protected]");background-position:-335px -418px;margin-right:4px}.task-content-container[_ngcontent-%COMP%]   .task-operation[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-position:-364px -417px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.task-content-container[_ngcontent-%COMP%]   .write[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}html[data-theme=dark][_nghost-%COMP%]   .task-content-container[_ngcontent-%COMP%]   .task-operation[_ngcontent-%COMP%]   .write[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .task-content-container[_ngcontent-%COMP%]   .task-operation[_ngcontent-%COMP%]   .write[_ngcontent-%COMP%]{background:var(--dweb-bg-pale-blue)}']});let o=n;return o;})();function PC(o,n){if(o&1&&M(0,"app-file-gallery",3),o&2){let i=d();C("files",i.data.solution.files)("topic",i.data)("group",i.data.group);}}function MC(o,n){if(o&1&&M(0,"app-image-gallery",4),o&2){let i=d();C("images",i.data.solution.images);}}function OC(o,n){if(o&1&&M(0,"app-video-gallery",5),o&2){let i=d();C("video",i.data.solution.video)("topic",i.data);}}function wC(o,n){if(o&1){let i=y();s(0,"div",6),M(1,"div",7),s(2,"div",8),f("click",function(){b(i);let t=d();return P(t.viewTask(t.data));}
1),g(3,"\u67E5\u770B\u4F5C\u4E1A\u9898\u76EE"),c(),M(4,"div",9),c();}}var ii=(()=>{let n=class n{constructor(e,t){this.topicService=e,this.el=t,this.showAll=!1,this.hideViewTask=!1;}ngOnInit(){this.hideViewTask=window.location.href.includes("solution_list")||this.fromWhere==="preview";}toTopicDetailPage(e,t){ne(`group/${e}/topic/${t}`);}viewTask(e){window.location.href.includes("/topic")?this.toTopicDetailPage(e.group.group_id,e.solution.task_id):this.topicService.getTaskTopic(e.solution.task_id);}ngAfterViewInit(){this.fromWhere!=="detail"&&this.fromWhere!=="preview"&&di(this.el.nativeElement.querySelector(".content"))>203&&!this.showAll&&(this.el.nativeElement.querySelector(".content").style.maxHeight="203px",this.el.nativeElement.querySelector(".showAll").style.display="block");}showMorecontent(){this.showAll?(this.showAll=!1,window.scrollTo(0,this.curScrollTop),this.el.nativeElement.querySelector(".content").style.maxHeight="203px"):(this.curScrollTop=this.el.nativeElement.querySelector(".solution-content-container").offsetTop-this.el.nativeElement.querySelector(".solution-content-container").getBoundingClientRect().top,this.showAll=!0,this.el.nativeElement.querySelector(".content").style.maxHeight="none");}slideTo(e){let t=setInterval(function(){let r=document.documentElement.scrollTop||document.body.scrollTop,a=e>r?e-r:r-e,p=Math.ceil(a/30);r===e?clearInterval(t):window.scrollTo(0,e>r?r+p:r-p);},10);}};n.ɵfac=function(t){return new(t||n)(O(Oe),O(Re));},n.ɵcmp=F({type:n,selectors:[["app-solution-content"]],inputs:{data:"data",fromWhere:"fromWhere"},standalone:!1,decls:9,vars:9,consts:[[1,"solution-content-container"],[1,"content",3,"parseHtml","annotations"],[1,"showAll",3,"click"],[3,"files","topic","group"],[3,"images"],[3,"video","topic"],[1,"view-task"],[1,"vertical-line"],[1,"text",3,"click"],[1,"icon"]],template:function(t,r){t&1&&(s(0,"div",0),M(1,"div",1),$(2,"filterEmptyLines"),s(3,"p",2),f("click",function(){return r.showMorecontent();}),g(4),c(),h(5,PC,1,3,"app-file-gallery",3),h(6,MC,1,1,"app-image-gallery",4),h(7,OC,1,2,"app-video-gallery",5),h(8,wC,5,0,"div",6),c()),t&2&&(l(),C("parseHtml",Z(2,7,r.data.solution.text))("annotations",r.data.annotation),l(3),V(" ",r.showAll?"\u6536\u8D77":"\u5C55\u5F00\u5168\u90E8"," "),l(),_(r.data.solution.files&&r.data.solution.files.length>0?5:-1),l(),_(r.data.solution.images&&r.data.solution.images.length>0?6:-1),l(),_(r.data.solution.video?7:-1),l(),_(r.hideViewTask?-1:8));},dependencies:[kt,ze,Zn,ei,Jt],styles:['.solution-content-container[_ngcontent-%COMP%]{padding-left:56px;padding-right:20px;color:var(--dweb-text-primary, #2F3034);line-height:25px}.solution-content-container[_ngcontent-%COMP%]   .showAll[_ngcontent-%COMP%]{display:none;color:var(--dweb-info);cursor:pointer;margin-top:10px}.solution-content-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{white-space:pre-wrap;word-wrap:break-word;overflow:hidden}.solution-content-container[_ngcontent-%COMP%]   .content.showMore[_ngcontent-%COMP%]{max-height:auto}.solution-content-container[_ngcontent-%COMP%]   .content.showless[_ngcontent-%COMP%]{max-height:168px}.solution-content-container[_ngcontent-%COMP%]   .view-task[_ngcontent-%COMP%]{display:flex;margin:10px 0;align-items:center;cursor:pointer}.solution-content-container[_ngcontent-%COMP%]   .view-task[_ngcontent-%COMP%]   .vertical-line[_ngcontent-%COMP%]{width:2px;height:14px;background:var(--dweb-info, #567895)}.solution-content-container[_ngcontent-%COMP%]   .view-task[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{color:var(--dweb-info, #567895);margin:0 6px}.solution-content-container[_ngcontent-%COMP%]   .view-task[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-297px -197px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.solution-content-container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var oi=(()=>{let n=class n{constructor(e,t){this.http=e,this.groupListService=t,this._memberSummary$=new U(),this.memberSummary$=this._memberSummary$.asObservable();}getMemberSummary(e,t){this.http.get(j.getMemberSummary(e,t)).subscribe(r=>{r.succeeded&&this._memberSummary$.next(r.resp_data);});}getUserRoleInGroup(e){var x;let t=[],r=this.groupListService.getSelectedGroup()||JSON.parse(localStorage.getItem("target_group"))||{},{admin_ids:a=[],guest_ids:p=[],partner_ids:m=[],volunteer_ids:v=[]}=r;
1return((x=r.owner)==null?void 0:x.user_id)===e&&t.push("owner"),a.some(w=>w===e)&&t.push("admin"),p.some(w=>w===e)&&t.push("guest"),m.some(w=>w===e)&&t.push("partner"),v.some(w=>w===e)&&t.push("volunteer"),t;}isShowUserCard(e,t){return e===t?!0:this.getUserRoleInGroup(e).length>0;}};n.ɵfac=function(t){return new(t||n)(re(W),re(ce));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();function yC(o,n){o&1&&(st(0,"div",9),ci(1,"div",14),st(2,"div",15),g(3,"\u6B63\u5728\u751F\u6210\u957F\u56FE..."),yt()());}function kC(o,n){if(o&1&&ci(0,"img",10),o&2){let i=d(2);Ur("src",i.imageUrl,se);}}function SC(o,n){if(o&1){let i=y();st(0,"div",1),Ln("click",function(t){b(i);let r=d();return P(r.handleMaskClick(t));}),st(1,"div",2)(2,"div",3)(3,"div",4),g(4,"\u5206\u4EAB\u957F\u56FE"),yt(),st(5,"div",5),Ln("click",function(){b(i);let t=d();return P(t.onClose());}),st(6,"i",6),g(7,"\xD7"),yt()()(),st(8,"div",7)(9,"div",8),h(10,yC,4,0,"div",9)(11,kC,1,1,"img",10),yt()(),st(12,"div",11)(13,"button",12),Ln("click",function(){b(i);let t=d();return P(t.onCopyImage());}),g(14,"\u590D\u5236\u56FE\u7247"),yt(),st(15,"button",13),Ln("click",function(){b(i);let t=d();return P(t.onDownloadImage());}),g(16,"\u4E0B\u8F7D\u56FE\u7247"),yt()()()();}if(o&2){let i,e=d();l(10),_((i=e.getImageState())==="loading"?10:i==="loaded"?11:-1);}}var Xa=(()=>{let n=class n{constructor(){this.visible=!1,this.topicData=null,this.closeDialog=new H(),this.imageUrl=null,this.isLoading=!1,this.http=Q(W),this.message=Q(le);}ngOnChanges(e){var t,r;((t=e.visible)!=null&&t.currentValue&&this.topicData||(r=e.topicData)!=null&&r.currentValue&&this.visible)&&this.init();}getSharerRole(){var a,p;let e=Number(localStorage.getItem("user_id")),t="other",r=this.getTargetGroup();return r&&(((a=r.owner)==null?void 0:a.user_id)===e?t="owner":(p=r.partner_ids)!=null&&p.includes(e)?t="partner":r.user_specific&&(t="member")),t;}getTargetGroup(){var t,r;if(!((r=(t=this.topicData)==null?void 0:t.group)!=null&&r.group_id))return null;let e=localStorage.getItem("target_group");if(e){let a=JSON.parse(e);if(a.group_id===this.topicData.group.group_id)return a;}return null;}trackImageOptionClick(e){var t,r,a;$e("ShareTopic_DWebImageOption_Click",{click_button:e,sharer_role:this.getSharerRole(),group_id:(t=this.topicData)==null?void 0:t.group.group_id,topic_id:(r=this.topicData)==null?void 0:r.topic_id,group_type:(a=this.topicData)==null?void 0:a.group.type});}init(){var e;(e=this.topicData)!=null&&e.topic_id&&this.http.get(j.getShareUrl(this.topicData.topic_id)).subscribe(t=>{t.succeeded?this.loadLongPicture():this.closeDialog.emit();});}loadLongPicture(){var e;(e=this.topicData)!=null&&e.topic_id&&(this.isLoading=!0,this.imageUrl=null,this.http.get(j.getTopicLongPicture(this.topicData.topic_id)).subscribe(t=>{var r;this.isLoading=!1,t.succeeded&&(r=t.resp_data)!=null&&r.image_url?this.imageUrl=t.resp_data.image_url:this.http.handleExceptionCode(t,"\u957F\u56FE\u751F\u6210\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");}));}onClose(){this.trackImageOptionClick("Close"),this.closeDialog.emit();}onCopyImage(){if(!this.imageUrl){this.message.info({content:"\u6682\u65E0\u56FE\u7247\u53EF\u590D\u5236",type:"warning"});return;}this.trackImageOptionClick("CopyImage");let e=new Image();e.crossOrigin="anonymous";let t=new Promise((r,a)=>{e.onload=()=>{let p=document.createElement("canvas");p.width=e.width,p.height=e.height,p.getContext("2d").drawImage(e,0,0,e.width,e.height),p.toBlob(m=>m?r(m):a(new Error("toBlob failed")),"image/png");},e.onerror=()=>a(new Error("image load failed"));});navigator.clipboard.write([new ClipboardItem({"image/png":t})]).then(()=>this.message.info({content:"\u56FE\u7247\u590D\u5236\u6210\u529F",type:"success"})).catch(()=>this.message.info({content:"\u590D\u5236\u56FE\u7247\u5931\u8D25",type:"error"})),e.src=this.imageUrl;}onDownloadImage(){if(!this.imageUrl){this.message.info({content:"\u6682\u65E0\u56FE\u7247\u53EF\u4E0B\u8F7D",type:"warning"});return;}this.trackImageOptionClick("DownloadImage");let e=new Image();e.crossOrigin="anonymous",e.src=this.imageUrl,e.onload=()=>{let t=document.createElement("canvas");t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0,e.width,e.height);let a=t.toDataURL("image/png"),p=document.createElement("a");p.download="\u6D77\u62A5.png",p.href=a,p.click(),this.message.info({content:"\u56FE\u7247\u4E0B\u8F7D\u6210\u529F",type:"success"});},e.onerror=()=>{this.message.info({content:"\u52A0\u8F7D\u56FE\u7247\u5931\u8D25",type:"error"});};}
1handleMaskClick(e){e.target===e.currentTarget&&this.onClose();}getImageState(){return this.isLoading?"loading":"loaded";}};n.ɵfac=function(t){return new(t||n)();},n.ɵcmp=F({type:n,selectors:[["app-poster-dialog"]],inputs:{visible:"visible",topicData:"topicData"},outputs:{closeDialog:"closeDialog"},features:[It],decls:1,vars:1,consts:[[1,"poster-dialog-container"],[1,"poster-dialog-container",3,"click"],[1,"poster-panel"],[1,"poster-header"],[1,"poster-title"],[1,"close-btn",3,"click"],[1,"close-icon"],[1,"poster-content"],[1,"poster-image-area"],[1,"poster-loading"],["alt","\u5206\u4EAB\u957F\u56FE",3,"src"],[1,"poster-footer"],[1,"copy-btn",3,"click"],[1,"download-btn",3,"click"],[1,"loading-spinner"],[1,"loading-text"]],template:function(t,r){t&1&&h(0,SC,17,1,"div",0),t&2&&_(r.visible?0:-1);},styles:[".poster-dialog-container[_ngcontent-%COMP%]{position:fixed;display:flex;width:100%;height:100%;top:0;left:0;background:#00000080;z-index:999;justify-content:center;align-items:center}.poster-dialog-container[_ngcontent-%COMP%]   .poster-panel[_ngcontent-%COMP%]{width:520px;background:var(--dweb-bg-panel);border-radius:4px;box-shadow:0 8px 32px #0003;overflow:hidden}.poster-dialog-container[_ngcontent-%COMP%]   .poster-panel[_ngcontent-%COMP%]   .poster-header[_ngcontent-%COMP%]{height:60px;display:flex;align-items:center;padding-left:30px;border-bottom:1px solid rgba(0,0,0,.05);position:relative}.poster-dialog-container[_ngcontent-%COMP%]   .poster-panel[_ngcontent-%COMP%]   .poster-header[_ngcontent-%COMP%]   .poster-title[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:var(--dweb-text-primary)}.poster-dialog-container[_ngcontent-%COMP%]   .poster-panel[_ngcontent-%COMP%]   .poster-header[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]{position:absolute;right:20px;top:50%;transform:translateY(-50%);width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;transition:background-color .2s}.poster-dialog-container[_ngcontent-%COMP%]   .poster-panel[_ngcontent-%COMP%]   .poster-header[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]:hover{background-color:#0000000d}.poster-dialog-container[_ngcontent-%COMP%]   .poster-panel[_ngcontent-%COMP%]   .poster-header[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%]{font-size:18px;color:var(--dweb-text-faint);line-height:1}.poster-dialog-container[_ngcontent-%COMP%]   .poster-panel[_ngcontent-%COMP%]   .poster-content[_ngcontent-%COMP%]{padding:20px 30px;max-height:500px;overflow-y:auto}.poster-dialog-container[_ngcontent-%COMP%]   .poster-panel[_ngcontent-%COMP%]   .poster-content[_ngcontent-%COMP%]   .poster-image-area[_ngcontent-%COMP%]{width:100%;min-height:400px;overflow:hidden}.poster-dialog-container[_ngcontent-%COMP%]   .poster-panel[_ngcontent-%COMP%]   .poster-content[_ngcontent-%COMP%]   .poster-image-area[_ngcontent-%COMP%]   .poster-loading[_ngcontent-%COMP%]{width:100%;height:400px;background-color:var(--dweb-bg-subtle);display:flex;align-items:center;justify-content:center;flex-direction:column}.poster-dialog-container[_ngcontent-%COMP%]   .poster-panel[_ngcontent-%COMP%]   .poster-content[_ngcontent-%COMP%]   .poster-image-area[_ngcontent-%COMP%]   .poster-loading[_ngcontent-%COMP%]   .loading-spinner[_ngcontent-%COMP%]{width:32px;height:32px;border:3px solid #f3f3f3;border-top:3px solid var(--dweb-brand);border-radius:50%;animation:_ngcontent-%COMP%_spin 1s linear infinite;margin-bottom:16px}.poster-dialog-container[_ngcontent-%COMP%]   .poster-panel[_ngcontent-%COMP%]   .poster-content[_ngcontent-%COMP%]   .poster-image-area[_ngcontent-%COMP%]   .poster-loading[_ngcontent-%COMP%]   .loading-text[_ngcontent-%COMP%]{font-size:14px;color:var(--dweb-text-primary)}.poster-dialog-container[_ngcontent-%COMP%]   .poster-panel[_ngcontent-%COMP%]   .poster-content[_ngcontent-%COMP%]   .poster-image-area[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:auto;display:block}.poster-dialog-container[_ngcontent-%COMP%]   .poster-panel[_ngcontent-%COMP%]   .poster-footer[_ngcontent-%COMP%]{display:flex;padding:20px;border-top:1px solid rgba(0,0,0,.05);justify-content:center}.poster-dialog-container[_ngcontent-%COMP%]   .poster-panel[_ngcontent-%COMP%]   .poster-footer[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-right:24px}.poster-dialog-container[_ngcontent-%COMP%]   .poster-panel[_ngcontent-%COMP%]   .poster-footer[_ngcontent-%COMP%]   .copy-btn[_ngcontent-%COMP%], .poster-dialog-container[_ngcontent-%COMP%]   .poster-panel[_ngcontent-%COMP%]   .poster-footer[_ngcontent-%COMP%]   .download-btn[_ngcontent-%COMP%]{width:166px;height:40px;background:var(--dweb-brand);box-shadow:0 1px 2px #0000000d;border-radius:4px;border:none;font-weight:500;font-size:16px;color:#fff;cursor:pointer}.poster-dialog-container[_ngcontent-%COMP%]   .poster-panel[_ngcontent-%COMP%]   .poster-footer[_ngcontent-%COMP%]   .copy-btn[_ngcontent-%COMP%]:hover, .poster-dialog-container[_ngcontent-%COMP%]   .poster-panel[_ngcontent-%COMP%]   .poster-footer[_ngcontent-%COMP%]   .download-btn[_ngcontent-%COMP%]:hover{background-color:#13a587}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]});let o=n;return o;})();var Ja=(()=>{let n=class n{constructor(e,t){this.http=e,this.message=t,this.favorEndTime="",this._favorites$=new U(),this.favorites$=this._favorites$.asObservable(),this._refresh$=new U(),this.refresh$=this._refresh$.asObservable();}
1getMyFavorites(e="",t=30){this.http.get(j.getMyFavorites(e,t)).subscribe(r=>{if(r.succeeded){let a=r.resp_data.favorites;a&&a.length>0&&(this.favorEndTime=mt(a[a.length-1].favor_time)),this._favorites$.next(a);}else this.http.handleExceptionCode(r,"\u83B7\u53D6\u6211\u7684\u6536\u85CF\u5931\u8D25");});}cancelFavorites(e){this.http.delete(j.cancelFavorites(e)).subscribe(t=>{t.succeeded?this.message.info({content:"\u53D6\u6D88\u6536\u85CF\u6210\u529F",type:"success"}):this.http.handleExceptionCode(t,"\u53D6\u6D88\u6536\u85CF\u5931\u8D25");});}refreshFavors(e){this._refresh$.next(e);}};n.ɵfac=function(t){return new(t||n)(re(W),re(le));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var No=(()=>{let n=class n{constructor(e){this.httpService=e,this._updateAnswerList$=new U(),this.updateAnswerList$=this._updateAnswerList$.asObservable(),this._unAnswersList$=new U(),this.unAnswersList$=this._unAnswersList$.asObservable(),this._unswersEdList$=new U(),this.unswersEdList$=this._unswersEdList$.asObservable();}getList(e){return this.httpService.get(j.getAnswers(e));}getUnAnswersList(e){this.getList(Ot(Ue({},e),{filter:"unanswered"})).subscribe(t=>{t.succeeded&&this._unAnswersList$.next(t.resp_data.topics);});}getAnswersEdList(e){this.getList(Ot(Ue({},e),{filter:"answered"})).subscribe(t=>{t.succeeded&&this._unswersEdList$.next(t.resp_data.topics);});}updateUnswerList(e){this._updateAnswerList$.next(e);}};n.ɵfac=function(t){return new(t||n)(re(W));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var TC=o=>({" disable":o}),EC=o=>({selected:o});function DC(o,n){if(o&1){let i=y();s(0,"div",9),f("click",function(){let t=b(i).$index,r=d();return P(r.selectReason(t));}),M(1,"i",10),s(2,"span",11),g(3),c()();}if(o&2){let i=n.$implicit,e=n.$index,t=d();C("ngClass",R(2,EC,e===t.reasons.indexOf(t.selectedReason))),l(3),A(i);}}function IC(o,n){if(o&1){let i=y();s(0,"textarea",12),On("ngModelChange",function(t){b(i);let r=d();return Mn(r.description,t)||(r.description=t),P(t);}),f("keyup",function(){b(i);let t=d();return P(t.checkText());}),g(1,"      "),c();}if(o&2){let i=d();C("placeholder",i.placeholder),Pn("ngModel",i.description),si("maxlength",i.maxlength);}}var Bi=(()=>{let n=class n{constructor(){this.DialogConfirm=new H(),this.DialogCancel=new H(),this.disableConfirm=!0,this.descVisible=!1,this.reasonItems=[],this.reasons=[],this.selectedReason="",this.description="";}ngOnInit(){if(this.type==="report"?(this.reasonItems=["\u5783\u573E\u5E7F\u544A","\u8272\u60C5\u5185\u5BB9","\u6B3A\u8BC8\u884C\u4E3A","\u4E0D\u5B9E\u4FE1\u606F","\u8FDD\u6CD5\u72AF\u7F6A","\u6284\u88AD\u76D7\u7248","\u6D89\u53CA\u8D22\u7ECF","\u81EA\u5B9A\u4E49\u539F\u56E0"],this.reasons=["ad","sexy","fraud","disinformation","criminality","piracy","financial","other"]):this.type==="del"&&(this.reasonItems=["\u63A8\u9500\u5E7F\u544A","\u8A00\u8BBA\u4E0D\u53CB\u5584","\u4E0E\u661F\u7403\u4E3B\u65E8\u4E0D\u7B26","\u6D89\u5ACC\u4FB5\u6743","\u65F6\u653F\u65B0\u95FB\u5185\u5BB9","\u5176\u4ED6\uFF08\u9009\u62E9\u8BE5\u9879\u4E0D\u63D0\u9192\u7528\u6237\uFF09","\u81EA\u5B9A\u4E49\u539F\u56E0"],this.reasons=["ad","unfriendliness","low_quality","piracy","political_news","other","custom"]),this.defaultChoice){let e=this.reasonItems.indexOf(this.defaultChoice);this.selectReason(e);}}handleClick(e){e.stopPropagation();}handleCancel(e){e.stopPropagation(),this.DialogCancel.emit();}handleConfirm(e){e.stopPropagation();let t={reason:this.selectedReason,desc:this.description};this.DialogConfirm.emit(t);}checkText(){this.disableConfirm=!(this.description.length>0);}selectReason(e){this.disableConfirm=!1,this.selectedReason=this.reasons[e];let t=this.type==="del"?"custom":"other";this.selectedReason===t?(this.disableConfirm=!0,this.descVisible=!0):(this.descVisible=!1,this.description="");}};n.ɵfac=function(t){return new(t||n)();},n.ɵcmp=F({type:n,selectors:[["app-reason-dialog"]],inputs:{type:"type",title:"title",placeholder:"placeholder",maxlength:"maxlength",defaultChoice:"defaultChoice"},outputs:{DialogConfirm:"dialog-confirm",DialogCancel:"dialog-cancel"},standalone:!1,decls:13,vars:5,consts:[[1,"dialog-container",3,"click"],[1,"panel"],[1,"title"],[1,"content"],[1,"reason-item",3,"ngClass"],["spellcheck","fal
1se",1,"reason-desc",3,"placeholder","ngModel"],[1,"common","bottom-wrap"],[1,"cancel",3,"click"],[1,"confirm",3,"click","ngClass"],[1,"reason-item",3,"click","ngClass"],[1,"icon"],[1,"text"],["spellcheck","false",1,"reason-desc",3,"ngModelChange","keyup","placeholder","ngModel"]],template:function(t,r){t&1&&(s(0,"div",0),f("click",function(p){return r.handleClick(p);}),s(1,"div",1)(2,"div",2),g(3),c(),s(4,"div",3),B(5,DC,4,4,"div",4,Y),h(7,IC,2,3,"textarea",5),c(),s(8,"div",6)(9,"div",7),f("click",function(p){return r.handleCancel(p);}),g(10,"\u53D6\u6D88"),c(),s(11,"div",8),f("click",function(p){return r.handleConfirm(p);}),g(12," \u786E\u5B9A "),c()()()()),t&2&&(l(3),A(r.title),l(2),N(r.reasonItems),l(2),_(r.descVisible?7:-1),l(4),C("ngClass",R(3,TC,r.disableConfirm)));},dependencies:[K,yn,kn,Sn],styles:['@charset "UTF-8";.dialog-container[_ngcontent-%COMP%]{position:fixed;display:flex;width:100%;height:100%;top:0;left:0;background:#00000080;z-index:9}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]{position:relative;margin:auto;width:480px;box-sizing:border-box;padding:0 30px;background:var(--dweb-bg-panel);border-radius:4px;font-family:PingFangSC-Medium}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{height:70px;line-height:70px;text-align:center;font-size:16px;color:var(--dweb-text-primary)}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{padding:30px 20px;text-align:center;font-size:16px;font-family:PingFangSC-Regular;color:var(--dweb-text-muted, #8B8E9D);border-top:1px solid rgba(0,0,0,.05);border-bottom:1px solid rgba(0,0,0,.05);cursor:pointer}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .bottom-wrap[_ngcontent-%COMP%]{height:80px}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .common[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .common[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{margin-right:30px;font-size:16px;color:gray;letter-spacing:0;text-align:right;width:70px;line-height:32px;text-align:center;cursor:pointer}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .common[_ngcontent-%COMP%]   .confirm[_ngcontent-%COMP%]{background:var(--dweb-brand);box-shadow:0 1px 2px #0000000d;border-radius:2px;font-size:16px;color:#fff;letter-spacing:0;text-align:right;width:70px;line-height:32px;text-align:center;cursor:pointer}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .common[_ngcontent-%COMP%]   .confirm.disable[_ngcontent-%COMP%]{pointer-events:none;background:var(--dweb-disabled)}.dialog-container[_ngcontent-%COMP%]   .reason-item[_ngcontent-%COMP%]{height:30px;margin-bottom:15px;display:flex;align-items:center}.dialog-container[_ngcontent-%COMP%]   .reason-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.dialog-container[_ngcontent-%COMP%]   .reason-item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:22px;height:22px;margin-right:28px;background-image:url("./media/[email protected]");background-position:-617px -350px}.dialog-container[_ngcontent-%COMP%]   .reason-item.selected[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-position:-617px -308px}.dialog-container[_ngcontent-%COMP%]   .reason-desc[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.1);border-radius:1px;height:100px;width:350px;resize:none;outline:none;padding:15px;font-size:14px;color:var(--dweb-text-muted)}.dialog-container[_ngcontent-%COMP%]   .reason-desc[_ngcontent-%COMP%]::-webkit-input-placeholder{color:var(--dweb-text-faint)}.dialog-container[_ngcontent-%COMP%]   .reason-desc[_ngcontent-%COMP%]::-moz-placeholder{color:var(--dweb-text-faint)}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.reason-item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var FC=["*"],zg=(()=>{let n=class n{constructor(){this.handleChange=new H(),this.disabledClick=new H();}handleInputChange(e){this.handleChange.emit(e.target.checked);}handleClick(){this.disabled&&this.disabledClick.emit();}};n.ɵfac=function(t){return new(t||n)();},n.ɵcmp=F({type:n,selectors:[["app-checkbox"]],inputs:{isChecked:"isChecked",disabled:"disabled"},outputs:{handleChange:"handle-change",disabledClick:"disabled-click"},standalone:!1,ngContentSelectors:FC,decls:6,vars:2,consts:[[1,"checkbox-item",3,"click"],[1,"checkbox"],["type","checkbox",3,"change","disabled","checked"],[1,"label"],[1,"checkbox-text"]],template:function(t,r){t&1&&(Zt(),s(0,"label",0),f("click",function(){return r.handleClick();}),s(1,"span",1)(2,"input",2),f("change",function(p){return r.handleInputChange(p);}),c(),M(3,"span",3),c(),s(4,"span",4),Nt(5),c()()),t&2&&(l(2),C("disabled",r.disabled)("checked",r.isChecked));},styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}[_nghost-%COMP%]:not(:first-child){margin-top:20px}.checkbox-item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer}.checkbox[_ngcontent-%COMP%]{width:20px;height:20px;
1display:block}.checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]{display:none}.checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%] + .label[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;width:20px;height:20px;background-image:url("./media/[email protected]");background-position:-777px -381px}.checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:checked + .label[_ngcontent-%COMP%]{background-position:-811px -381px}.checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:disabled + .label[_ngcontent-%COMP%]{background-position:-845px -381px}.checkbox-text[_ngcontent-%COMP%]{margin-left:30px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){input[type=checkbox][_ngcontent-%COMP%] + .label[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var Gg=(()=>{let n=class n{constructor(e,t,r){this.mainService=e,this.message=t,this.indexService=r,this.dialogClose=new H(),this.isIsolated=!1,this.kickOutSettings={forbid_join:!1,clear_content:!1};}ngOnInit(){this.mainService.isolatedMembers.find(e=>e.user_id===this.userID)&&(this.isIsolated=!0,this.kickOutSettings.forbid_join=!0);}isBlockUserNotice(){this.message.info({content:"\u5982\u5141\u8BB8\u8BE5\u2F64\u6237\u518D\u6B21\u52A0\u2F0A\uFF0C\u8BF7\u5148\u53D6\u6D88\u62C9\u2FCA",type:"warning"});}updateKickOutSettings(e,t){this.kickOutSettings[e]=t;}kickOutUser(){let e=this.indexService.getTargetGroup(!0);e&&(this.mainService.deleteMember(e.group_id,this.userID,this.kickOutSettings),this.cancelKickOut());}cancelKickOut(){this.dialogClose.emit();}};n.ɵfac=function(t){return new(t||n)(O(oe),O(le),O(q));},n.ɵcmp=F({type:n,selectors:[["app-kickout-dialog"]],inputs:{userID:[0,"user-id","userID"],username:"username"},outputs:{dialogClose:"dialog-close"},standalone:!1,decls:5,vars:5,consts:[["type","common",3,"dialog-confirm","dialog-cancel","title"],[3,"handle-change","disabled-click","disabled","isChecked"],[3,"handle-change","isChecked"]],template:function(t,r){t&1&&(s(0,"app-dialog",0),f("dialog-confirm",function(){return r.kickOutUser();})("dialog-cancel",function(){return r.cancelKickOut();}),s(1,"app-checkbox",1),f("handle-change",function(p){return r.updateKickOutSettings("forbid_join",p);})("disabled-click",function(){return r.isBlockUserNotice();}),g(2," \u4E0D\u5141\u8BB8\u518D\u6B21\u52A0\u5165 "),c(),s(3,"app-checkbox",2),f("handle-change",function(p){return r.updateKickOutSettings("clear_content",p);}),g(4," \u6E05\u7A7A\u4ED6\u6700\u8FD1\u4E00\u5468\u53D1\u8868\u7684\u4E3B\u9898\u3001\u8BC4\u8BBA\u548C\u8D5E "),c()()),t&2&&(C("title",mp("\u786E\u5B9A\u5C06\u300C",r.username,"\u300D\u79FB\u51FA\u661F\u7403\u5417")),l(),C("disabled",r.isIsolated)("isChecked",r.kickOutSettings.forbid_join),l(2),C("isChecked",r.kickOutSettings.clear_content));},dependencies:[Ze,zg],encapsulation:2});let o=n;return o;})();function RC(o,n){if(o&1){let i=y();s(0,"div",10),f("click",function(t){b(i);let r=d(2);return P(r.copyLink(t));}),g(1,"\u590D\u5236\u94FE\u63A5"),c();}}function LC(o,n){if(o&1){let i=y();s(0,"div",10),f("click",function(t){b(i);let r=d(2);return P(r.modifyTopic(t));}),g(1,"\u4FEE\u6539\u4E3B\u9898"),c();}}function BC(o,n){if(o&1){let i=y();s(0,"div",10),f("click",function(t){b(i);let r=d(2);return P(r.modifyArticle(t));}),g(1,"\u4FEE\u6539\u6587\u7AE0"),c();}}function NC(o,n){if(o&1){let i=y();s(0,"div",10),f("click",function(t){b(i);let r=d(2);return P(r.collectColumn(t));}),g(1,"\u6536\u8FDB\u4E13\u680F"),c();}}function zC(o,n){if(o&1){let i=y();s(0,"div",10),f("click",function(t){b(i);let r=d(2);return P(r.editTitle(t));}),g(1,"\u7F16\u8F91\u6807\u9898"),c();}}function GC(o,n){if(o&1){let i=y();s(0,"div",10),f("click",function(t){b(i);let r=d(2);return P(r.topicSticky(t));}),g(1,"\u8BBE\u4E3A\u7F6E\u9876"),c();}}function jC(o,n){if(o&1){let i=y();s(0,"div",10),f("click",function(){b(i);let t=d(2);return P(t.cancelSticky());}
1),g(1,"\u53D6\u6D88\u7F6E\u9876"),c();}}function $C(o,n){if(o&1){let i=y();s(0,"div",10),f("click",function(t){b(i);let r=d(2);return P(r.topicDigested(t));}),g(1,"\u8BBE\u4E3A\u7CBE\u534E"),c();}}function HC(o,n){if(o&1){let i=y();s(0,"div",10),f("click",function(){b(i);let t=d(2);return P(t.cancelDigested());}),g(1,"\u53D6\u6D88\u7CBE\u534E"),c();}}function UC(o,n){if(o&1){let i=y();s(0,"div",10),f("click",function(t){b(i);let r=d(2);return P(r.addTag(t));}),g(1,"\u6DFB\u52A0\u6807\u7B7E"),c();}}function qC(o,n){if(o&1){let i=y();s(0,"div",10),f("click",function(){b(i);let t=d(2);return P(t.collect());}),g(1,"\u6536\u85CF"),c();}}function QC(o,n){if(o&1){let i=y();s(0,"div",10),f("click",function(){b(i);let t=d(2);return P(t.cancelCollect());}),g(1,"\u53D6\u6D88\u6536\u85CF"),c();}}function WC(o,n){if(o&1){let i=y();s(0,"div",10),f("click",function(t){b(i);let r=d(2);return P(r.showReportDialog(t));}),g(1,"\u6295\u8BC9"),c();}}function XC(o,n){if(o&1){let i=y();s(0,"div",10),f("click",function(t){b(i);let r=d(2);return P(r.ignore(t));}),g(1,"\u5FFD\u7565"),c();}}function JC(o,n){if(o&1){let i=y();s(0,"div",11),f("click",function(t){b(i);let r=d(2);return P(r.showKickOutDialog(t));}),g(1,"\u79FB\u51FA\u661F\u7403"),c();}}function YC(o,n){if(o&1){let i=y();s(0,"div",11),f("click",function(t){b(i);let r=d(2);return P(r.showDeleteDialog(t));}),g(1,"\u5220\u9664"),c();}}function KC(o,n){if(o&1&&(s(0,"div",0),h(1,RC,2,0,"div",8),h(2,LC,2,0,"div",8),h(3,BC,2,0,"div",8),h(4,NC,2,0,"div",8),h(5,zC,2,0,"div",8),h(6,GC,2,0,"div",8),h(7,jC,2,0,"div",8),h(8,$C,2,0,"div",8),h(9,HC,2,0,"div",8),h(10,UC,2,0,"div",8),h(11,qC,2,0,"div",8),h(12,QC,2,0,"div",8),h(13,WC,2,0,"div",8),h(14,XC,2,0,"div",8),h(15,JC,2,0,"div",9),h(16,YC,2,0,"div",9),c()),o&2){let i=d();l(),_(i.copyLinkVisible?1:-1),l(),_(i.modifyTopicVisible?2:-1),l(),_(i.modifyArticleVisible?3:-1),l(),_(i.collectColumnVisible?4:-1),l(),_(i.editTitleVisible?5:-1),l(),_(i.stickyVisible?6:-1),l(),_(i.cancelStickyVisible?7:-1),l(),_(i.digestVisible?8:-1),l(),_(i.cancelDigestVisible?9:-1),l(),_(i.addTagVisible?10:-1),l(),_(i.favoriteVisible?11:-1),l(),_(i.cancelFavoriteVisible?12:-1),l(),_(i.reportVisible?13:-1),l(),_(i.ignoreVisible?14:-1),l(),_(i.kickOutVisible?15:-1),l(),_(i.deleteVisible?16:-1);}}function ZC(o,n){if(o&1){let i=y();s(0,"app-kickout-dialog",12),f("dialog-close",function(){b(i);let t=d();return P(t.hideKickOut());}),c();}if(o&2){let i=d();C("user-id",i.topicOwnerId)("username",i.topicOwnerName);}}function ex(o,n){if(o&1){let i=y();s(0,"app-dialog",13),f("dialog-confirm",function(){b(i);let t=d();return P(t.deleteTopic());})("dialog-cancel",function(){b(i);let t=d();return P(t.cancelDelete());}),s(1,"div"),g(2,"\u786E\u5B9A\u5220\u9664\u8BE5\u4E3B\u9898\uFF1F"),c()();}}function tx(o,n){if(o&1){let i=y();s(0,"app-reason-dialog",14),f("dialog-confirm",function(t){b(i);let r=d();return P(r.deleteTopic(t));})("dialog-cancel",function(){b(i);let t=d();return P(t.cancelDelete());}),c();}o&2&&C("maxlength",200);}function nx(o,n){if(o&1){let i=y();s(0,"app-dialog",15),f("dialog-confirm",function(){b(i);let t=d();return P(t.deleteStickyTopic());})("dialog-cancel",function(){b(i);let t=d();return P(t.cancelDeleteSticky());}),s(1,"div"),g(2,"\u6700\u591A\u7F6E\u9876\u4E09\u4E2A\u4E3B\u9898\uFF0C\u786E\u5B9A\u8981\u64A4\u9500\u6700\u65E9\u7F6E\u9876\u7684\u4E3B\u9898\u5417\uFF1F"),c()();}}function ix(o,n){if(o&1){let i=y();s(0,"app-dialog",16),f("dialog-confirm",function(){b(i);let t=d();return P(t.setTopicDigest());})("dialog-cancel",function(){b(i);let t=d();return P(t.cancelSetTopicDigest());}),s(1,"div"),g(2,"\u8BBE\u7F6E\u540E\u5C06\u663E\u793A\u5728\u7CBE\u534E\u4E3B\u9898\u5217\u8868"),c()();}}function ox(o,n){if(o&1){let i=y();s(0,"app-reason-dialog",17),f("dialog-confirm",function(t){b(i);let r=d();return P(r.reportTopic(t));})("dialog-cancel",function(){b(i);let t=d();return P(t.cancelReport());}),c();}o&2&&C("maxlength",100);}function rx(o,n){if(o&1&&(s(0,"div"),g(1),c()),o&2){let i=n.$implicit;l(),A(i);}}function ax(o,n){if(o&1){let i=y();s(0,"app-dialog",18),f("dialog-confirm",function(){b(i);let t=d();return P(t.cancelDelete());}),B(1,rx,2,1,"div",null,Y),c();}if(o&2){let i=d();l(),N(i.deleteNotAllowedText.split(`
2`));}}var jg=(()=>{let n=class n{constructor(e,t,r,a,p,m,v,x,w,k,S,E){this.http=e,this.topicService=t,this.message=r,this.mainService=a,this.indexService=p,this.notifyService=m,this.topicDetailService=v,this.topicOwnService=x,this.groupService=w,this.myFavoritesService=k,this.answerlistService=S,this.document=E,this.operationEmitter=new H(),this.handleEditEmitter=new H(),this.isOwner=!1,this.shareUrl="",this.operationVisible=!0,this.copyLinkVisible=!1,this.modifyTopicVisible=!1,this.modifyArticleVisible=!1,this.stickyVisible=!1,this.cancelStickyVisible=!1,this.digestVisible=!1,this.cancelDigestVisible=!1,this.favoriteVisible=!1,this.cancelFavoriteVisible=!1,this.reportVisible=!1,this.reportOtherVisible=!1,this.ignoreVisible=!1,this.kickOutVisible=!1,this.deleteVisible=!1,this.addTagVisible=!1,this.collectColumnVisible=!1,this.editTitleVisible=!1,this.editTitleDialogVisible=!1,this.deleteSelfVisible=!1,this.deleteOtherVisible=!1,this.deleteNotAllowedVisible=!1,this.deleteNotAllowedText="",this.deleteEarlyStickyVisible=!1,this.setTopicDigestVisible=!1,this.kickOutUserVisible=!1,this.titleInput="",this.topicText={talk:"talk",task:"task",solution:"solution","q&a":"question"};}ngOnInit(){this.userId=this.indexService.getSelfInfo("user_id"),this.topicOwnerId=this.getTopicOwnerInfo(this.topic,"user_id"),this.topicOwnerName=this.getTopicOwnerInfo(this.topic,"name").replace(/\u202e/g,""),this.checkOperationItem();}clickFunc(){this.operationVisible&&this.operationEmitter.emit("close");}getShareUrl(){this.topicService.shareUrl$.subscribe(e=>{this.shareUrl=e;}),this.topicService.getShareUrl(this.topic.topic_uid||this.topic.topic_id);}checkOperationItem(){var m,v;this.group=this.notifyService.getGroupInfo()||this.topicDetailService.getGroupInfo()||this.indexService.getTargetGroup(!0);let e=this.checkUserRole(this.userId,this.group,this),t=this.topic.process_status==="in_review",r=this.topic.type==="q&a"&&!this.topic.answer,a=this.topic.question?this.topic.question.questionee.user_id:null,p=(m=this.group.partner_ids)==null?void 0:m.includes(this.userId);t?this.deleteVisible=this.userId===this.topicOwnerId:(r||(this.topic.user_specific.subscribed?this.cancelFavoriteVisible=!0:this.favoriteVisible=!0,this.group.policies.allow_sharing&&(this.copyLinkVisible=!0,this.get
2ShareUrl())),this.userId===this.topicOwnerId?(this.deleteVisible=!0,(this.topic.talk||this.topic.answer&&this.topic.answer.text||this.topic.task||this.topic.solution)&&((v=this.topic.talk)!=null&&v.article?this.modifyArticleVisible=!0:this.modifyTopicVisible=!0)):(this.reportVisible=!0,e&&(this.deleteVisible=!0,this.topic.type==="q&a"&&this.topic.answer&&this.topic.answer.owner.user_id===this.group.owner.user_id&&(this.deleteVisible=!1))),!r&&e&&(this.addTagVisible=!0,this.topic.sticky?this.cancelStickyVisible=!0:this.stickyVisible=!0,this.topic.digested?this.cancelDigestVisible=!0:this.digestVisible=!0),r&&this.userId===a&&(this.ignoreVisible=!0,this.reportVisible=!0,this.deleteVisible=!1),this.topicOwnerId&&(this.isOwner&&this.userId!==this.topicOwnerId?this.kickOutVisible=!0:this.kickOutVisible=e&&!this.checkUserRole(this.topicOwnerId,this.group)),(e||p)&&(this.collectColumnVisible=(this.topic.type==="q&a"?!!this.topic.answer:!0)&&!location.href.includes("/columns")),(e||p||this.userId===this.topicOwnerId)&&(this.editTitleVisible=!0),this.group.type==="free"&&(this.collectColumnVisible=!1));}getTopicOwnerInfo(e,t){let r;return e.type==="q&a"?e.answer?r=e.answer.owner[t]:r=e.question.owner?e.question.owner[t]:"":r=e[e.type].owner[t],r;}checkUserRole(e,t,r){let a=!1,p=t.admin_ids?t.admin_ids:[];return e===t.owner.user_id&&(a=!0,r&&(r.isOwner=!0)),p.indexOf(e)!==-1&&(a=!0),a;}copyLink(e){return ye(this,null,function*(){if(this.operationVisible=!1,this.topic.showOperation=!1,e.stopPropagation(),navigator.clipboard)yield navigator.clipboard.writeText(this.shareUrl);else{let t=this.document.getElementById("copy-input");t.value=this.shareUrl,t.focus(),t.select(),document.execCommand("copy");}this.message.info({content:"\u4E3B\u9898\u94FE\u63A5\u5DF2\u590D\u5236",type:"success"});});}modifyTopic(e){this.operationVisible=!1,this.topic.showOperation=!1,e.stopPropagation();let t=this.indexService.currentList==="topicFlow";if(this.topic.type==="talk"||this.topic.type==="task"||this.topic.type==="solution")t?this.mainService.setModifyTopic(this.topic):this.indexService.setModifyTopic(this.topic);else if(this.topic.type==="q&a"&&this.topic.answer){let r=JSON.parse(JSON.stringify(this.topic));delete r.answer,r.fromModify=!0,this.topicService.setQuestionTopic(r),this.mainService.setModifyTopic(this.topic,"QA");}}modifyArticle(e){this.operationVisible=!1,this.topic.showOperation=!1,e.stopPropagation();let t=this.group.group_id,r=this.topic.talk.article.article_id;ne(`/article?groupId=${t}&articleId=${r}&topicId=${this.topic.topic_uid||this.topic.topic_id}`);}collectColumn(e){this.topic.showColumn=!0,this.topic.showOperation=!1,e.stopPropagation();}topicSticky(e){e.stopPropagation(),this.operationVisible=!1,this.mainService.stickyTopicList.length>2?this.deleteEarlyStickyVisible=!0:this.setTopicSticky();}setTopicSticky(e=!1){if(this.topicOwnService.setTopic(this.topic,"sticky",!0),this.topic.showOperation=!1,this.mainService.scope==="all"){e&&this.mainService.spliceStickyTopicList(2);let t=this.mainService.stickyTopicList;t.unshift(this.topic),this.mainService.stickyTopicList=t,this.mainService.stickyTopicListEventEmit.emit("add");}}cancelSticky(){this.operationVisible=!1,this.topicOwnService.setTopic(this.topic,"sticky",!1);let e=this.mainService.stickyTopicList.findIndex(t=>t.topic_id===this.topic.topic_id||t.topic_uid===this.topic.topic_uid);this.mainService.spliceStickyTopicList(e),this.mainService.stickyTopicListEventEmit.emit("remove"),this.topicService.closeTopicDetail(this.topic);}topicDigested(e){e.stopPropagation(),this.operationVisible=!1,this.setTopicDigestVisible=!0;}cancelDigested(){this.operationVisible=!1,this.topicOwnService.setTopic(this.topic,"digested",!1);}collect(){this.topicService.collectTopic(this.topic),this.topic.user_specific.subscribed=!0,this.operationVisible=!1;}cancelCollect(){this.topicService.cancelCollectTopic(this.topic),this.myFavoritesService.refreshFavors(this.topic.topic_uid||this.topic.topic_id),this.operationVisible=!1;}showKickOutDialog(e){e.stopPropagation(),this.operationVisible=!1,this.kickOutUserVisible=!0;}hideKickOut(){this.kickOutUserVisible=!1,this.operationEmitter.emit("close");}showDeleteDialog(e){if(e.stopPropagation(),this.operationVisible=!1,this.topic.scheduled&&!this.topic.answer){this.deleteNotAllowedText=`\u5BF9\u65B9\u5DF2\u5C06\u56DE\u7B54\u8BBE\u7F6E\u5728 ${this.formatTime(this.topic.scheduled.answer_time)} \u5C55\u793A\uFF0C
3\u6682\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85\u3002`,this.deleteNotAllowedVisible=!0;return;}this.userId===this.topicOwnerId?this.deleteSelfVisible=!0:this.deleteOtherVisible=!0;}deleteTopic(e={reason:"",desc:""}){this.topicService.deleteTopic(this.topic,this.index,e.reason,e.desc),this.cancelDelete(),this.operationEmitter.emit("close");}cancelDelete(){this.deleteSelfVisible=!1,this.deleteOtherVisible=!1,this.deleteNotAllowedVisible=!1,this.deleteNotAllowedText="",this.operationEmitter.emit("close");}deleteStickyTopic(){this.setTopicSticky(!0),this.deleteEarlyStickyVisible=!1,this.operationEmitter.emit("close");}cancelDeleteSticky(){this.deleteEarlyStickyVisible=!1,this.operationEmitter.emit("close");}setTopicDigest(){this.topicOwnService.setTopic(this.topic,"digested",!0),this.setTopicDigestVisible=!1,this.operationEmitter.emit("close");}cancelSetTopicDigest(){this.setTopicDigestVisible=!1,this.operationEmitter.emit("close");}addTag(e){this.topic.showAddTag=!0,this.topic.showOperation=!1,e.stopPropagation();}ignore(e){this.operationVisible=!1,this.topic.showOperation=!1;let t={req_data:{ignored:!0}};this.http.put(j.ignoreQuestion(this.topic.topic_uid||this.topic.topic_id),t).subscribe(r=>{r.succeeded?(this.message.info({content:"\u63D0\u95EE\u5DF2\u5FFD\u7565",type:"success"}),this.answerlistService.updateUnswerList({topicId:this.topic.topic_uid||this.topic.topic_id,type:"ignore"}),this.mainService.topicList=this.mainService.topicList.filter(a=>a.topic_id!==this.topic.topic_id||a.topic_uid!==this.topic.topic_uid)):this.http.handleExceptionCode(r,"\u5FFD\u7565\u63D0\u95EE\u5931\u8D25");}),e.stopPropagation();}showReportDialog(e){e.stopPropagation(),this.reportOtherVisible=!0;}reportTopic(e={reason:"",desc:""}){this.topicService.reportTopic(this.topic,e.reason,e.desc),this.cancelReport();}cancelReport(){this.reportOtherVisible=!1,this.operationEmitter.emit("close");}editTitle(e){e.stopPropagation(),this.topic.showEditTitle=!0,this.topic.showOperation=!1,this.handleEditEmitter.emit();}formatTime(e){return Fe(ge(e),"yyyy/MM/dd HH:mm");}};n.ɵfac=function(t){return new(t||n)(O(W),O(Oe),O(le),O(oe),O(q),O(sn),O(Te),O(Ye),O(ce),O(Ja),O(No),O(Be));},n.ɵcmp=F({type:n,selectors:[["app-topic-operation"]],hostBindings:function(t,r){t&1&&f("click",function(){return r.clickFunc();},wt);},inputs:{topic:"topic",index:"index",visible:"visible"},outputs:{operationEmitter:"operation-emitter",handleEditEmitter:"handle-edit"},standalone:!1,decls:8,vars:8,consts:[[1,"topic-operation-container"],[3,"user-id","username"],["title","\u5220\u9664\u63D0\u793A","type","common"],["type","del","title","\u8BF7\u9009\u62E9\u5220\u9664\u539F\u56E0","placeholder","\u8F93\u5165\u5220\u9664\u539F\u56E0\uFF081-200 \u5B57\uFF09","defaultChoice","\u5176\u4ED6\uFF08\u9009\u62E9\u8BE5\u9879\u4E0D\u63D0\u9192\u7528\u6237\uFF09",3,"maxlength"],["title","\u7F6E\u9876\u4E3B\u9898","type","common"],["title","\u8BBE\u4E3A\u7CBE\u534E\u4E3B\u9898","type","common"],["type","report","title","\u6295\u8BC9\u4E3B\u9898","placeholder","\u4E0D\u8D85\u8FC7 100 \u5B57",3,"maxlength"],["title","\u64CD\u4F5C\u63D0\u793A","type","confirm","confirmBtnText","\u77E5\u9053\u4E86"],[1,"item"],[1,"item","delete"],[1,"item",3,"click"],[1,"item","delete",3,"click"],[3,"dialog-close","user-id","username"],["title","\u5220\u9664\u63D0\u793A","type","common",3,"dialog-confirm","dialog-cancel"],["type","del","title","\u8BF7\u9009\u62E9\u5220\u9664\u539F\u56E0","placeholder","\u8F93\u5165\u5220\u9664\u539F\u56E0\uFF081-200 \u5B57\uFF09","defaultChoice","\u5176\u4ED6\uFF08\u9009\u62E9\u8BE5\u9879\u4E0D\u63D0\u9192\u7528\u6237\uFF09",3,"dialog-confirm","dialog-cancel","maxlength"],["title","\u7F6E\u9876\u4E3B\u9898","type","common",3,"dialog-confirm","dialog-cancel"],["title","\u8BBE\u4E3A\u7CBE\u534E\u4E3B\u9898","type","common",3,"dialog-confirm","dialog-cancel"],["type","report","title","\u6295\u8BC9\u4E3B\u9898","placeholder","\u4E0D\u8D85\u8FC7 100 \u5B57",3,"dialog-confirm","dialog-cancel","maxlength"],["title","\u64CD\u4F5C\u63D0\u793A","type","confirm","confirmBtnText","\u77E5\u9053\u4E86",3,"dialog-confirm"]],template:function(t,r){t&1&&(h(0,KC,17,16,"div",0),h(1,ZC,1,2,"app-kickout-dialog",1),h(2,ex,3,0,"app-dialog",2),h(3,tx,1,1,"app-reason-dialog",3),h(4,nx,3,0,"app-dialog",4),h(5,ix,3,0,"app-dialog",5),h(6,ox,1,1,"app-reason-dialog",6),h(7,ax,3,0,"app-dialog",7)),t&2&&(_(r.o
3perationVisible?0:-1),l(),_(r.kickOutUserVisible?1:-1),l(),_(r.deleteSelfVisible?2:-1),l(),_(r.deleteOtherVisible?3:-1),l(),_(r.deleteEarlyStickyVisible?4:-1),l(),_(r.setTopicDigestVisible?5:-1),l(),_(r.reportOtherVisible?6:-1),l(),_(r.deleteNotAllowedVisible?7:-1));},dependencies:[Ze,Bi,Gg],styles:[".topic-operation-container[_ngcontent-%COMP%]{position:absolute;top:22px;right:-31px;padding:15px 0;background:var(--dweb-bg-panel, #FFFFFF);width:136px;box-sizing:border-box;border:1px solid var(--dweb-border-faint);box-shadow:-5px 6px 12px 0 var(--dweb-shadow-subtle);border-radius:4px;z-index:3;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.topic-operation-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{cursor:pointer;height:38px;padding-left:30px;line-height:38px;font-size:14px;color:var(--dweb-text-secondary, #5A5C66)}.topic-operation-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:hover{background:#c9e5df33;color:var(--dweb-brand, #16B998)}.topic-operation-container[_ngcontent-%COMP%]   .delete[_ngcontent-%COMP%], .topic-operation-container[_ngcontent-%COMP%]   .delete[_ngcontent-%COMP%]:hover{color:var(--dweb-danger, #F57F59)}html[data-theme=dark][_nghost-%COMP%]   .topic-operation-container[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .topic-operation-container[_ngcontent-%COMP%]{border-color:var(--dweb-border-strong);box-shadow:-5px 6px 16px 0 var(--dweb-shadow)}"]});let o=n;return o;})();var $g=(()=>{let n=class n{constructor(){this.tipsDialogEmitter=new H();}ngOnInit(){}handleClick(e){e.stopPropagation();}clickFunc(){this.tipsDialogEmitter.emit("close");}close(e){this.tipsDialogEmitter.emit("close"),e.stopPropagation();}};n.ɵfac=function(t){return new(t||n)();},n.ɵcmp=F({type:n,selectors:[["app-tips-dialog"]],hostBindings:function(t,r){t&1&&f("click",function(){return r.clickFunc();},wt);},outputs:{tipsDialogEmitter:"tips-dialog"},standalone:!1,decls:26,vars:0,consts:[[1,"tips-dialog",3,"click"],[1,"tips-container"],[1,"title"],[1,"tips"],[1,"tips-img"],[1,"img-1"],[1,"img-2"],[1,"img-3"],[1,"img-4"],[3,"click"],[1,"step-title"],[1,"step-tips"],[1,"line"],[1,"confirm",3,"click"]],template:function(t,r){t&1&&(s(0,"div",0),f("click",function(p){return r.handleClick(p);}),s(1,"div",1)(2,"div",2),g(3,"\u5982\u4F55\u4F7F\u7528\u300C\u4E13\u680F\u300D\u529F\u80FD\uFF1F"),c(),s(4,"div",3),g(5,"\u63D0\u793A\uFF1A\u4EC5\u652F\u6301\u5728 App \u7AEF\u521B\u5EFA\u548C\u7BA1\u7406\u4E13\u680F"),c(),s(6,"div",4),M(7,"div",5)(8,"div",6)(9,"div",7)(10,"div",8),c(),s(11,"i",9),f("click",function(p){return r.close(p);}),c(),s(12,"div",10)(13,"span"),g(14,"01. \u521B\u5EFA\u4E13\u680F"),c(),s(15,"span"),g(16,"02. \u5C06\u4E3B\u9898\u6536\u5F55\u8FDB\u4E13\u680F\u5185"),c(),s(17,"span"),g(18,"03. \u5728\u4E3B\u9898\u6D41\u67E5\u770B\u4E13\u680F"),c(),s(19,"span"),g(20,"04. \u5FEB\u901F\u6D4F\u89C8\u4E13\u680F\u5185\u5BB9"),c()(),s(21,"div",11),g(22," \u4ECE App \u8FDB\u5165\u4F60\u7684\u661F\u7403\u540E\uFF0C\u70B9\u51FB\u53F3\u4E0A\u89D2\u300C\u66F4\u591A\u300D\uFF0C\u70B9\u51FB\u300C\u661F\u7403\u4E13\u680F\u300D\u5373\u53EF\u521B\u5EFA "),c(),M(23,"div",12),s(24,"div",13),f("click",function(p){return r.close(p);}),g(25,"\u77E5\u9053\u4E86"),c()()());},styles:['.tips-dialog[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;overflow-y:scroll;top:0;left:0;background:#00000080;z-index:9;display:flex;justify-content:center;align-items:center;cursor:default}.tips-dialog[_ngcontent-%COMP%]   .tips-container[_ngcontent-%COMP%]{padding:30px 30px 24px;background:var(--dweb-bg-panel);position:relative;border-radius:4px;cursor:default}.tips-dialog[_ngcontent-%COMP%]   .tips-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{height:30px;font-size:20px;font-weight:500;color:var(--dweb-text-primary);line-height:30px;text-align:center}.tips-dialog[_ngcontent-%COMP%]   .tips-container[_ngcontent-%COMP%]   .tips[_ngcontent-%COMP%]{height:20px;font-size:14px;font-weight:400;color:var(--dweb-danger);line-height:20px;text-align:center;margin-top:6px}.tips-dialog[_ngcontent-%COMP%]   .tips-container[_ngcontent-%COMP%]   .tips-img[_ngcontent-%COMP%]{display:flex;margin-top:24px}.tips-dialog[_ngcontent-%COMP%]   .tips-container[_ngcontent-%COMP%]   .tips-img[_ngcontent-%COMP%]   .img-1[_ngcontent-%COMP%]{width:220px;height:390px;background-image:url("./media/[email protected]");background-position:-19px -34px}.tips-dialog[_ngcontent-%COMP%]   .tips-container[_ngcontent-%COMP%]   .tips-img[_ngcontent-%COMP%]   .img-2[_ng
3content-%COMP%]{width:220px;height:390px;background-image:url("./media/[email protected]");background-position:-249px -34px;margin-left:10px}.tips-dialog[_ngcontent-%COMP%]   .tips-container[_ngcontent-%COMP%]   .tips-img[_ngcontent-%COMP%]   .img-3[_ngcontent-%COMP%]{width:220px;height:390px;background-image:url("./media/[email protected]");background-position:-479px -34px;margin-left:10px}.tips-dialog[_ngcontent-%COMP%]   .tips-container[_ngcontent-%COMP%]   .tips-img[_ngcontent-%COMP%]   .img-4[_ngcontent-%COMP%]{width:220px;height:390px;background-image:url("./media/[email protected]");background-position:-709px -34px;margin-left:10px}.tips-dialog[_ngcontent-%COMP%]   .tips-container[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{position:absolute;top:24px;right:30px;width:20px;height:20px;background:url("./media/[email protected]");background-position:-357px -197px;cursor:pointer}.tips-dialog[_ngcontent-%COMP%]   .tips-container[_ngcontent-%COMP%]   .step-title[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:24px 0 12px;text-align:center}.tips-dialog[_ngcontent-%COMP%]   .tips-container[_ngcontent-%COMP%]   .step-title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:220px;height:22px;font-size:16px;font-weight:500;color:var(--dweb-text-primary);line-height:22px}.tips-dialog[_ngcontent-%COMP%]   .tips-container[_ngcontent-%COMP%]   .step-tips[_ngcontent-%COMP%]{width:220px;font-size:12px;font-weight:400;color:var(--dweb-text-muted);line-height:17px;text-align:center}.tips-dialog[_ngcontent-%COMP%]   .tips-container[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{width:910px;height:1px;background:#0000000d;margin:30px auto 24px}.tips-dialog[_ngcontent-%COMP%]   .tips-container[_ngcontent-%COMP%]   .confirm[_ngcontent-%COMP%]{width:166px;height:32px;background:var(--dweb-brand);box-shadow:0 1px 2px #0000000d;border-radius:4px;line-height:32px;text-align:center;color:#fff;font-size:16px;margin:0 auto;cursor:pointer}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.tips-img[_ngcontent-%COMP%]   .img-1[_ngcontent-%COMP%], .tips-img[_ngcontent-%COMP%]   .img-2[_ngcontent-%COMP%], .tips-img[_ngcontent-%COMP%]   .img-3[_ngcontent-%COMP%], .tips-img[_ngcontent-%COMP%]   .img-4[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:952px 1057px!important}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){i[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px!important}}']});let o=n;return o;})();var lx=o=>({selected:o}),px=o=>({spill:o});function dx(o,n){if(o&1){let i=y();s(0,"div",2),M(1,"i",4),s(2,"div",5),g(3,"\u5C1A\u672A\u521B\u5EFA\u4E13\u680F"),c(),s(4,"div",6),g(5," \u901A\u8FC7\u4E13\u680F\u80FD\u7CFB\u7EDF\u5730\u5448\u73B0\u661F\u7403\u5185\u7684\u4F18\u8D28\u5185\u5BB9\uFF0C\u66F4\u5BB9\u6613\u8BA9\u6210\u5458\u611F\u53D7\u5230\u661F\u7403\u7684\u4EF7\u503C "),c(),s(6,"div",7),f("click",function(){b(i);let t=d(2);return P(t.showTips());}),s(7,"span"),g(8,"\u67E5\u770B\u521B\u5EFA\u6307\u5F15"),c(),M(9,"i"),c()();}}function gx(o,n){o&1&&M(0,"div",19);}function ux(o,n){o&1&&(s(0,"div",20),g(1,"\u5DF2\u6536\u5F55"),c());}function mx(o,n){if(o&1){let i=y();s(0,"div",14),f("click",function(){let t=b(i).$index,r=d(3);return P(r.selectChange(t));}),s(1,"div",15),M(2,"i"),s(3,"div",16)(4,"div",17),g(5),c(),s(6,"div",18),g(7),c()()(),h(8,gx,1,0,"div",19),h(9,ux,2,0,"div",20),c();}if(o&2){let i=n.$implicit,e=n.$index,t=d(3);C("ngClass",R(6,lx,t.selectedColumnIdList.includes(i.column_id)))("ngClass",R(8,px,i.statistics.topics_count>=100)),l(5),A(i.name),l(2),V(" ",i.statistics.topics_count," \u6761\u4E3B\u9898 "),l(),_(t.selectedColumnId===t.columnsList[e].column_id||t.selectedColumnIdList.includes(i.column_id)?8:-1),l(),_(i.isCollected?9:-1);}}function hx(o,n){if(o&1){let i=y();s(0,"div",3)(1,"div",8),g(2,"\u9009\u62E9\u4E13\u680F"),c(),s(3,"div",6),g(4,"\u4E00\u4E2A\u4E3B\u9898\u53EF\u88AB\u6536\u5F55\u5230\u591A\u4E2A\u4E13\u680F"),c(),s(5,"div",9),B(6,mx,10,10,"div",10,Y),c(),s(8,"div",11)(9,"div",12),f("click",function(t){b(i);let r=d(2);return P(r.close(t));}),g(10,"\u53D6\u6D88"),c(),s(11,"div",13),f("click",function(t){b(i);let r=d(2);return P(r.confirm(t));}),g(12,"\u786E\u5B9A"),c()()();}if(o&2){let i=d(2);l(6),N(i.columnsList);}}function _x(o,n){if(o&1){let i=y();s(0,"div",1),f("click",function(t){b(i);let r=d();return P(r.handleClick(t));}),h(1,dx,10,0,"div",2),h(2,hx,13,0,"div",3),c();}if(o&2){let i=d();l(),_(i.hasColumns?-1:1),l(),_(i.hasColumns?2:-1);}}function fx(o,n){if(o&1){let i=y();s(0,"app-tips-dialog",21),f("tips-dialog",function(){b(i);let t=d();return P(t.closeTips());}),c();}}var Ka=(()=>{let n=class n{constructor(e,t,r,a,p){this.topicService=e,this.http=t,this.message=r,this.mainService=a,this.allTagsService=p,this.columnEmitter=new H(),this.hasColumns=!1,this.selectedColumnIdList=[],this.tipsVisible=!1,this.subscriptions=[],this.isLoading=!0,this.groupId=0;}ngOnInit(){this.groupId=location.href.includes("digests")?Number(location.href.split("/")[location.href.split("/").length-1]):this.topic.group.group_id,this.doSubscribe(),this.topicService.getColumnsList(this.groupId);}
3ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}clickFunc(){this.columnEmitter.emit("close");}doSubscribe(){let e=this.topicService.getColumnsList$.subscribe(r=>{r.length?(this.columnsList=r,this.hasColumns=!0,this.isLoading=!1,this.http.get(j.getTopicColumns(this.topic.topic_id)).subscribe(a=>{a.succeeded?(this.topicColumnsList=a.resp_data.columns,this.columnsList=this.columnsList.map(p=>(this.topicColumnsList.some(m=>p.column_id===m.column_id)&&(p.isCollected=!0,this.selectedColumnIdList.push(p.column_id)),p))):this.http.handleExceptionCode(a,"\u83B7\u53D6\u4E3B\u9898\u6240\u5C5E\u7684\u4E13\u680F\u5217\u8868\u5931\u8D25");})):(this.hasColumns=!1,this.isLoading=!1);}),t=this.topicService.addTopicToColumn$.subscribe();this.subscriptions.push(e,t);}selectChange(e){this.selectedColumnIdList.includes(this.columnsList[e].column_id)?this.selectedColumnIdList=this.selectedColumnIdList.filter(r=>r!==this.columnsList[e].column_id):this.columnsList[e].statistics.topics_count>=100?this.message.info({content:"\u4E00\u4E2A\u4E13\u680F\u6700\u591A\u6536\u5F55 100 \u6761\u4E3B\u9898",type:"warning"}):this.selectedColumnIdList.push(this.columnsList[e].column_id);}handleClick(e){e.stopPropagation();}confirm(e){this.topicService.addTopicToColumn(this.selectedColumnIdList,this.topic.topic_id),this.topic.showColumn=!1,e.stopPropagation(),this.columnEmitter.emit("close");}close(e){this.topic.showColumn=!1,e.stopPropagation(),this.columnEmitter.emit("close");}showTips(){this.tipsVisible=!0;}closeTips(){this.topic.openType==="tags"?this.allTagsService.topicList=this.allTagsService.topicList.map(e=>(e.showColumn=!1,e)):this.mainService.topicList=this.mainService.topicList.map(e=>(e.showColumn=!1,e)),this.tipsVisible=!1;}};n.ɵfac=function(t){return new(t||n)(O(Oe),O(W),O(le),O(oe),O(yo));},n.ɵcmp=F({type:n,selectors:[["app-columns-dialog"]],hostBindings:function(t,r){t&1&&f("click",function(){return r.clickFunc();},wt);},inputs:{topic:"topic"},outputs:{columnEmitter:"column-emitter"},standalone:!1,decls:2,vars:2,consts:[[1,"column-container"],[1,"column-container",3,"click"],[1,"no-data"],[1,"list"],[1,"icon"],[1,"content"],[1,"tips"],[1,"btn",3,"click"],[1,"title"],[1,"list-item-box"],[1,"list-item",3,"ngClass"],[1,"operations"],[1,"cancel","btn",3,"click"],[1,"confirm","btn",3,"click"],[1,"list-item",3,"click","ngClass"],[1,"item-left"],[1,"item-content"],[1,"item-title"],[1,"item-count"],[1,"radio"],[1,"collected-icon"],[3,"tips-dialog"]],template:function(t,r){t&1&&(h(0,_x,3,2,"div",0),h(1,fx,1,0,"app-tips-dialog")),t&2&&(_(r.isLoading?-1:0),l(),_(r.tipsVisible?1:-1));},dependencies:[K,$g],styles:['.column-container[_ngcontent-%COMP%]{min-width:300px;position:absolute;top:22px;right:-31px;background:var(--dweb-bg-panel);box-shadow:-5px 6px 12px 0 var(--dweb-shadow-subtle);border-radius:4px;border:1px solid var(--dweb-border-faint);z-index:8}.column-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]{padding:24px 30px 40px;cursor:default}.column-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{display:block;width:42px;height:42px;background-image:url("./media/[email protected]");background-position:-17px -422px;margin:0 auto}.column-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{height:19px;font-size:14px;font-weight:500;color:var(--dweb-text-secondary);line-height:19px;text-align:center;margin-top:19px}.column-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .tips[_ngcontent-%COMP%]{font-size:13px;font-weight:400;color:var(--dweb-text-muted);line-height:19px;text-align:center;margin-top:8px}.column-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:var(--dweb-info);display:flex;align-items:center;justify-content:center;margin-top:24px;cursor:pointer}.column-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-left:10px}.column-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-297px -198px;margin-left:4px}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]{padding:24px 15px 20px;cursor:default}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{height:19px;font-size:14px;font-weight:500;color:var(--dweb-text-secondary);line-height:19px;text-align:center}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .tips[_ngcontent-%COMP%]{height:19px;font-size:13px;font-weight:400;color:var(--dweb-text-muted);line-height:19px;margin-top:4px;margin-bottom:18px;text-align:center}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .list-item-box[_ngcontent-%COMP%]{max-height:350px;overflow-y:auto}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]{height:55px;width:270px;border-radius:6px;border:1px solid rgba(197,198,203,.2);margin-top:6px;display:flex;align-items:center;padding-left:11px;position:relative;box-sizing:border-box;
3cursor:pointer}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]:hover{background:var(--dweb-bg-hover)}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .item-left[_ngcontent-%COMP%]{display:flex;align-items:center}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{width:21px;height:21px;background-image:url("./media/[email protected]");background-position:-25px -471px;margin-right:12px}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .collected-icon[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:44px;height:18px;background:#e3fff94d;border-radius:0 6px;border-left:1px solid rgba(197,198,203,.2);border-bottom:1px solid rgba(197,198,203,.2);font-size:10px;font-weight:400;color:var(--dweb-brand);line-height:18px;text-align:center}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .item-title[_ngcontent-%COMP%]{height:19px;max-width:180px;font-size:13px;font-weight:500;color:var(--dweb-text-secondary);line-height:19px;margin-bottom:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .item-count[_ngcontent-%COMP%]{height:16px;font-size:12px;font-weight:400;color:var(--dweb-text-faint);line-height:16px}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]{position:absolute;width:16px;height:16px;top:22px;right:12px;background-image:url("./media/[email protected]");background-color:var(--dweb-bg-panel);background-position:-671px -354px}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]{margin-top:20px;display:flex;justify-content:flex-end}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{font-size:14px;font-weight:500;width:60px;height:28px;border-radius:2px;text-align:center;line-height:28px;cursor:pointer}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{color:gray}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .confirm[_ngcontent-%COMP%]{color:#fff;background:var(--dweb-brand);box-shadow:0 1px 2px #0000000d;margin-left:14px}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]{background:#16b9980d;border:1px solid var(--dweb-brand)}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]:hover{background:#16b9980d}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .spill[_ngcontent-%COMP%]{background:var(--dweb-bg-hover);cursor:default}.column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .spill[_ngcontent-%COMP%]   .item-content[_ngcontent-%COMP%]   .item-title[_ngcontent-%COMP%], .column-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .spill[_ngcontent-%COMP%]   .item-content[_ngcontent-%COMP%]   .item-count[_ngcontent-%COMP%]{color:var(--dweb-text-faint)}html[data-theme=dark][_nghost-%COMP%]   .column-container[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .column-container[_ngcontent-%COMP%]{border-color:var(--dweb-border-strong);box-shadow:-5px 6px 16px 0 var(--dweb-shadow)}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){i[_ngcontent-%COMP%], .radio[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var Za=(()=>{let n=class n{constructor(){this.handleEditCancel=new H(),this.handleEditConfirm=new H(),this.titleInput="";}ngOnInit(){}handleCancel(e){e.stopPropagation(),this.handleEditCancel.emit();}handleConfirm(e){e.stopPropagation(),this.handleEditConfirm.emit(this.titleInput);}handleClick(e){e.stopPropagation();}stopPropagation(e){}};n.ɵfac=function(t){return new(t||n)();},n.ɵcmp=F({type:n,selectors:[["app-edit-title-dialog"]],inputs:{titleInput:[0,"title-input","titleInput"]},outputs:{handleEditCancel:"handle-edit-cancel",handleEditConfirm:"handle-edit-confirm"},standalone:!1,decls:18,vars:2,consts:[[1,"dialog-container",3,"click"],[1,"panel",3,"click"],[1,"title"],[1,"content"],[1,"tip"],[1,"input"],["type","text","autocomplete","off","spellcheck","fal
3se","rows","2","maxlength","60","placeholder","\u8BF7\u8F93\u5165\u6807\u9898",3,"ngModelChange","ngModel"],[1,"counter"],[1,"common"],[1,"cancel",3,"click"],[1,"confirm",3,"click"]],template:function(t,r){t&1&&(s(0,"div",0),f("click",function(p){return r.handleClick(p);}),s(1,"div",1),f("click",function(p){return r.stopPropagation(p);}),s(2,"div",2),g(3,"\u7F16\u8F91\u6807\u9898"),c(),s(4,"div",3)(5,"div",4),g(6,"\xB7 \u6807\u9898\u5C06\u663E\u793A\u5728\u4E13\u680F\u5217\u8868\u3001\u7CBE\u534E\u4E3B\u9898\u5217\u8868"),c(),s(7,"div",4),g(8,"\xB7 \u5728\u661F\u7403\u5185\u5206\u4EAB\u4E3B\u9898\u94FE\u63A5\u65F6\uFF0C\u81EA\u52A8\u8BC6\u522B\u4E3A\u6587\u5B57"),c(),s(9,"div",5)(10,"textarea",6),On("ngModelChange",function(p){return Mn(r.titleInput,p)||(r.titleInput=p),p;}),c(),s(11,"div",7),g(12),c()()(),s(13,"div",8)(14,"div",9),f("click",function(p){return r.handleCancel(p);}),g(15,"\u53D6\u6D88"),c(),s(16,"div",10),f("click",function(p){return r.handleConfirm(p);}),g(17,"\u4FDD\u5B58"),c()()()()),t&2&&(l(10),Pn("ngModel",r.titleInput),l(2),A(60-r.titleInput.length));},dependencies:[yn,kn,ki,Sn],styles:['@charset "UTF-8";.dialog-container[_ngcontent-%COMP%]{position:fixed;display:flex;width:100%;height:100%;top:0;left:0;background:var(--dweb-overlay);z-index:9;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]{position:relative;margin:auto;width:480px;box-sizing:border-box;padding:0 30px;background:var(--dweb-bg-panel);border-radius:4px;font-weight:500}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{text-align:left;font-size:16px;color:var(--dweb-text-primary);margin:24px 0 16px}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{cursor:pointer;position:absolute;border:15px solid transparent;top:15px;right:15px;height:10px;width:10px;background-image:url("./media/[email protected]");background-position:-357px -197px}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{text-align:left}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .tip[_ngcontent-%COMP%]{font-size:14px;color:var(--dweb-text-muted);font-weight:400;line-height:24px}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]{position:relative;height:100px;width:100%;padding:10px;border:1px solid var(--dweb-border-medium);border-radius:6px;box-sizing:border-box;margin-top:24px}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{font-family:PingFangSC-Regular;font-size:14px;color:var(--dweb-text-secondary);width:100%;height:calc(100% - 18px);background:none;outline:none;border:none;padding:0;resize:none}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]:focus{border:none}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]{position:absolute;bottom:10px;left:15px;font-size:14px;color:var(--dweb-text-faint)}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .common[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;height:80px;margin-right:10px}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .common[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{margin-right:30px;font-size:16px;color:gray;letter-spacing:0;text-align:right;width:70px;line-height:32px;text-align:center;cursor:pointer}.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .common[_ngcontent-%COMP%]   .confirm[_ngcontent-%COMP%]{background:var(--dweb-brand);box-shadow:0 1px 2px #0000000d;border-radius:2px;font-size:16px;color:#fff;letter-spacing:0;text-align:right;width:70px;line-height:32px;text-align:center;cursor:pointer}html[data-theme=dark][_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]{background:var(--dweb-bg-panel);border:none;box-shadow:none}html[data-theme=dark][_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .tip[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .tip[_ngcontent-%COMP%]{color:var(--dweb-text-muted)}html[data-theme=dark][_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]{background:var(--dweb-bg-page);border-color:var(--dweb-border-strong);transition:border-color .2s ease,box-shadow .2s ease}html[data-theme=dark][_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]:focus-within, html[data-theme=dark]   [_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]:focus-within{border-color:var(--dweb-brand);box-shadow:0 0 0 2px var(--dweb-bg-brand-tint)}html[data-theme=dark][_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{color:var(--dweb-text-primary);caret-color:var(--dweb-brand)}html[data-theme=dark][_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::placeholder, html[data-theme=dark]   [_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::placeholder{color:var(--dweb-text-muted)}html[data-theme=dark][_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]{color:var(--dweb-text-muted)}html[data-theme=dark][_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .common[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .common[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{color:var(--dweb-text-secondary);border-radius:2px}html[data-theme=dark][_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .common[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]:hover, html[data-theme=dark]   [_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .common[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]:hover{color:var(--dweb-text-primary);background:var(--dweb-bg-panel-2)}html[data-theme=dark][_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .common[_ngcontent-%COMP%]   .confirm[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .common[_ngcontent-%COMP%]   .confirm[_ngcontent-%COMP%]{box-shadow:0 1px 2px var(--dweb-sh
3adow-subtle)}html[data-theme=dark][_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .common[_ngcontent-%COMP%]   .confirm[_ngcontent-%COMP%]:hover, html[data-theme=dark]   [_nghost-%COMP%]   .dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .common[_ngcontent-%COMP%]   .confirm[_ngcontent-%COMP%]:hover{background:var(--dweb-brand-hover)}[_ngcontent-%COMP%]::-webkit-input-placeholder{color:var(--dweb-text-faint)}[_ngcontent-%COMP%]:-moz-placeholder{color:var(--dweb-text-faint)}[_ngcontent-%COMP%]::-moz-placeholder{color:var(--dweb-text-faint)}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.dialog-container[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var Yc;try{Yc=typeof Intl<"u"&&Intl.v8BreakIterator;}catch(o){Yc=!1;}var Dn=(()=>{let n=class n{constructor(){u(this,"_platformId",Q($r));u(this,"isBrowser",this._platformId?Co(this._platformId):typeof document=="object"&&!!document);u(this,"EDGE",this.isBrowser&&/(edge)/i.test(navigator.userAgent));u(this,"TRIDENT",this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent));u(this,"BLINK",this.isBrowser&&!!(window.chrome||Yc)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT);u(this,"WEBKIT",this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT);u(this,"IOS",this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window));u(this,"FIREFOX",this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent));u(this,"ANDROID",this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT);u(this,"SAFARI",this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT);}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})();var Kc;function Cx(){if(Kc==null){let o=typeof document<"u"?document.head:null;Kc=!!(o&&(o.createShadowRoot||o.attachShadow));}return Kc;}function es(o){if(Cx()){let n=o.getRootNode?o.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n;}return null;}function Ni(o){return o.composedPath?o.composedPath()[0]:o.target;}function Zc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha;}var ts=new WeakMap(),Mr=(()=>{let n=class n{constructor(){u(this,"_appRef");u(this,"_injector",Q(Vt));u(this,"_environmentInjector",Q(_o));}load(e){let t=this._appRef=this._appRef||this._injector.get(cr),r=ts.get(t);r||(r={loaders:new Set(),refs:[]},ts.set(t,r),t.onDestroy(()=>{var a;(a=ts.get(t))==null||a.refs.forEach(p=>p.destroy()),ts.delete(t);})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(Qr(e,{environmentInjector:this._environmentInjector})));}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})();function Mt(o){return o==null?"":typeof o=="string"?o:`${o}px`;}function zi(o){return Array.isArray(o)?o:[o];}function Gi(o,n=0){return Qg(o)?Number(o):arguments.length===2?n:0;}function Qg(o){return!isNaN(parseFloat(o))&&!isNaN(Number(o));}function In(o){return o instanceof Re?o.nativeElement:o;}var xx=new Ut("cdk-dir-doc",{providedIn:"root",factory:()=>Q(Be)}),vx=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Wg(o){let n=(o==null?void 0:o.toLowerCase())||"";return n==="auto"&&typeof navigator<"u"&&navigator!=null&&navigator.language?vx.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr";}var ji=(()=>{let n=class n{constructor(){u(this,"valueSignal",mn("ltr"));u(this,"change",new H());let e=Q(xx,{optional:!0});if(e){let t=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(Wg(t||r||"ltr"));}}get value(){return this.valueSignal();}ngOnDestroy(){this.change.complete();}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})();var oo;function Xg(){var o;if(oo==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return oo=!1,oo;if((o=document.documentElement)!=null&&o.style&&"scrollBehavior"in document.documentElement.style)oo=!0;else{let n=Element.prototype.scrollTo;n?oo=!/\{\s*\[native code\]\s*\}/.test(n.toString()):oo=!1;}}return oo;}var $i=(()=>{let n=class n{};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275mod",it({type:n})),u(n,"\u0275inj",nt({}));let o=n;return o;})();var Px=20,Or=(()=>{let n=class n{constructor(){u(this,"_ngZone",Q(dt));u(this,"_platform",Q(Dn));u(this,"_renderer",Q(bn).createRenderer(null,null));u(this,"_cleanupGlobalListener");u(this,"_scrolled",new U());u(this,"_scrolledCount",0);
3u(this,"scrollContainers",new Map());}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)));}deregister(e){let t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e));}scrolled(e=Px){return this._platform.isBrowser?new Yi(t=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let r=e>0?this._scrolled.pipe(Ks(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{var a;r.unsubscribe(),this._scrolledCount--,this._scrolledCount||((a=this._cleanupGlobalListener)==null||a.call(this),this._cleanupGlobalListener=void 0);};}):Kt();}ngOnDestroy(){var e;(e=this._cleanupGlobalListener)==null||e.call(this),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,r)=>this.deregister(r)),this._scrolled.complete();}ancestorScrolled(e,t){let r=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(ut(a=>!a||r.indexOf(a)>-1));}getAncestorScrollContainers(e){let t=[];return this.scrollContainers.forEach((r,a)=>{this._scrollableContainsElement(a,e)&&t.push(a);}),t;}_scrollableContainsElement(e,t){let r=In(t),a=e.getElementRef().nativeElement;do if(r==a)return!0;while(r=r.parentElement);return!1;}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})();var Mx=20,Hi=(()=>{let n=class n{constructor(){u(this,"_platform",Q(Dn));u(this,"_listeners");u(this,"_viewportSize",null);u(this,"_change",new U());u(this,"_document",Q(Be));let e=Q(dt),t=Q(bn).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let r=a=>this._change.next(a);this._listeners=[t.listen("window","resize",r),t.listen("window","orientationchange",r)];}this.change().subscribe(()=>this._viewportSize=null);});}ngOnDestroy(){var e;(e=this._listeners)==null||e.forEach(t=>t()),this._change.complete();}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e;}getViewportRect(){let e=this.getViewportScrollPosition(),{width:t,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+t,height:r,width:t};}getViewportScrollPosition(){var v,x;if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,t=this._getWindow(),r=e.documentElement,a=r.getBoundingClientRect(),p=-a.top||((v=e.body)==null?void 0:v.scrollTop)||t.scrollY||r.scrollTop||0,m=-a.left||((x=e.body)==null?void 0:x.scrollLeft)||t.scrollX||r.scrollLeft||0;return{top:p,left:m};}change(e=Mx){return e>0?this._change.pipe(Ks(e)):this._change;}
3_getWindow(){return this._document.defaultView||window;}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0};}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})();var ns=(()=>{let n=class n{};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275mod",it({type:n})),u(n,"\u0275inj",nt({}));let o=n;return o;})(),el=(()=>{let n=class n{};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275mod",it({type:n})),u(n,"\u0275inj",nt({imports:[$i,ns,$i,ns]}));let o=n;return o;})();var tl={},_i=class _i{constructor(){u(this,"_appId",Q(nc));}getId(n,i=!1){return this._appId!=="ng"&&(n+=this._appId),tl.hasOwnProperty(n)||(tl[n]=0),`${n}${i?_i._infix+"-":""}${tl[n]++}`;}};u(_i,"_infix",`a${Math.floor(Math.random()*1e5).toString()}`),u(_i,"\u0275fac",function(i){return new(i||_i)();}),u(_i,"\u0275prov",X({token:_i,factory:_i.ɵfac,providedIn:"root"}));var zo=_i;var wr=class{constructor(){u(this,"_attachedHost",null);}attach(n){return this._attachedHost=n,n.attach(this);}detach(){let n=this._attachedHost;n!=null&&(this._attachedHost=null,n.detach());}get isAttached(){return this._attachedHost!=null;}setAttachedHost(n){this._attachedHost=n;}},nl=class extends wr{constructor(i,e,t,r,a){super();u(this,"component");u(this,"viewContainerRef");u(this,"injector");u(this,"projectableNodes");u(this,"bindings");this.component=i,this.viewContainerRef=e,this.injector=t,this.projectableNodes=r,this.bindings=a||null;}},Go=class extends wr{constructor(i,e,t,r){super();u(this,"templateRef");u(this,"viewContainerRef");u(this,"context");u(this,"injector");this.templateRef=i,this.viewContainerRef=e,this.context=t,this.injector=r;}get origin(){return this.templateRef.elementRef;}attach(i,e=this.context){return this.context=e,super.attach(i);}detach(){return this.context=void 0,super.detach();}},il=class extends wr{constructor(i){super();u(this,"element");this.element=i instanceof Re?i.nativeElement:i;}},ol=class{constructor(){u(this,"_attachedPortal",null);u(this,"_disposeFn",null);u(this,"_isDisposed",!1);u(this,"attachDomPortal",null);}hasAttached(){return!!this._attachedPortal;}attach(n){if(n instanceof nl)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof Go)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof il)return this._attachedPortal=n,this.attachDomPortal(n);}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn();}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0;}setDisposeFn(n){this._disposeFn=n;}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null);}},is=class extends ol{constructor(i,e,t){super();u(this,"outletElement");u(this,"_appRef");u(this,"_defaultInjector");u(this,"attachDomPortal",i=>{let e=i.element;e.parentNode;let t=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(t,e),this.outletElement.appendChild(e),this._attachedPortal=i,super.setDisposeFn(()=>{t.parentNode&&t.parentNode.replaceChild(e,t);});});this.outletElement=i,this._appRef=e,this._defaultInjector=t;}attachComponentPortal(i){let e;if(i.viewContainerRef){let t=i.injector||i.viewContainerRef.injector,r=t.get(pp,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:t,ngModuleRef:r,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),this.setDisposeFn(()=>e.destroy());}else{let t=this._appRef,r=i.injector||this._defaultInjector||Vt.NULL,a=r.get(_o,t.injector);e=Qr(i.component,{elementInjector:r,environmentInjector:a,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),t.attachView(e.hostView),this.setDisposeFn(()=>{t.viewCount>0&&t.detachView(e.hostView),e.destroy();});}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=i,e;}attachTemplatePortal(i){let e=i.viewContainerRef,t=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});
3return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);r!==-1&&e.remove(r);}),this._attachedPortal=i,t;}dispose(){super.dispose(),this.outletElement.remove();}_getComponentRootNode(i){return i.hostView.rootNodes[0];}};var Jg=(()=>{let n=class n{};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275mod",it({type:n})),u(n,"\u0275inj",nt({}));let o=n;return o;})();var Yg=Xg();function ou(o){return new os(o.get(Hi),o.get(Be));}var os=class{constructor(n,i){u(this,"_viewportRuler");u(this,"_previousHTMLStyles",{top:"",left:""});u(this,"_previousScrollPosition");u(this,"_isEnabled",!1);u(this,"_document");this._viewportRuler=n,this._document=i;}attach(){}enable(){if(this._canBeEnabled()){let n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=Mt(-this._previousScrollPosition.left),n.style.top=Mt(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0;}}disable(){if(this._isEnabled){let n=this._document.documentElement,i=this._document.body,e=n.style,t=i.style,r=e.scrollBehavior||"",a=t.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),Yg&&(e.scrollBehavior=t.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Yg&&(e.scrollBehavior=r,t.scrollBehavior=a);}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let i=this._document.documentElement,e=this._viewportRuler.getViewportSize();return i.scrollHeight>e.height||i.scrollWidth>e.width;}};function ru(o,n){return new rs(o.get(Or),o.get(dt),o.get(Hi),n);}var rs=class{constructor(n,i,e,t){u(this,"_scrollDispatcher");u(this,"_ngZone");u(this,"_viewportRuler");u(this,"_config");u(this,"_scrollSubscription",null);u(this,"_overlayRef");u(this,"_initialScrollPosition");u(this,"_detach",()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach());});this._scrollDispatcher=n,this._ngZone=i,this._viewportRuler=e,this._config=t;}attach(n){this._overlayRef,this._overlayRef=n;}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(ut(i=>!i||!this._overlayRef.overlayElement.contains(i.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{let i=this._viewportRuler.getViewportScrollPosition().top;Math.abs(i-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition();})):this._scrollSubscription=n.subscribe(this._detach);}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}};var yr=class{enable(){}disable(){}attach(){}};function rl(o,n){return n.some(i=>{let e=o.bottom<i.top,t=o.top>i.bottom,r=o.right<i.left,a=o.left>i.right;return e||t||r||a;});}function Kg(o,n){return n.some(i=>{let e=o.top<i.top,t=o.bottom>i.bottom,r=o.left<i.left,a=o.right>i.right;return e||t||r||a;});}function au(o,n){return new as(o.get(Or),o.get(Hi),o.get(dt),n);}var as=class{constructor(n,i,e,t){u(this,"_scrollDispatcher");u(this,"_viewportRuler");u(this,"_ngZone");u(this,"_config");u(this,"_scrollSubscription",null);u(this,"_overlayRef");this._scrollDispatcher=n,this._viewportRuler=i,this._ngZone=e,this._config=t;}attach(n){this._overlayRef,this._overlayRef=n;}enable(){if(!this._scrollSubscription){let n=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(n).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let i=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:t}=this._viewportRuler.getViewportSize();rl(i,[{width:e,height:t,bottom:t,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()));}});}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}},su=(()=>{let n=class n{constructor(){u(this,"_injector",Q(Vt));u(this,"noop",()=>new yr());u(this,"close",e=>ru(this._injector,e));u(this,"block",()=>ou(this._injector));u(this,"reposition",e=>au(this._injector,e));}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})(),jo=class{constructor(n){u(this,"positionStrategy");u(this,"scrollStrategy",new yr());u(this,"panelClass","");u(this,"hasBackdrop",!1);u(this,"backdropClass","cdk-overlay-dark-backdrop");u(this,"disableAnimations");u(this,"width");u(this,"height");u(this,"minWidth");u(this,"minHeight");u(this,"maxWidth");u(this,"maxHeight");u(this,"direction");u(this,"disposeOnNavigation",!1);u(this,"usePopover");u(this,"eventPredicate");if(n){let i=Object.keys(n);for(let e of i)n[e]!==void 0&&(this[e]=n[e]);}}},kr=class{constructor(n,i,e,t,r){u(this,"offsetX");u(this,"offsetY");u(this,"panelClass");u(this,"originX");u(this,"originY");u(this,"overlayX");u(this,"overlayY");this.offsetX=e,this.offsetY=t,this.panelClass=r,this.originX=n.originX,this.originY=n.originY,this.overlayX=i.overlayX,this.overlayY=i.overlayY;}};var ss=class{constructor(n,i){u(this,"connectionPair");u(this,"scrollableViewProperties");this.connectionPair=n,this.scrollableViewProperties=i;}};var cu=(()=>{let n=class n{constructor(){u(this,"_attachedOverlays",[]);
3u(this,"_document",Q(Be));u(this,"_isAttached",!1);}ngOnDestroy(){this.detach();}add(e){this.remove(e),this._attachedOverlays.push(e);}remove(e){let t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),this._attachedOverlays.length===0&&this.detach();}canReceiveEvent(e,t,r){return r.observers.length<1?!1:e.eventPredicate?e.eventPredicate(t):!0;}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})(),lu=(()=>{let n=class n extends cu{constructor(){super(...arguments);u(this,"_ngZone",Q(dt));u(this,"_renderer",Q(bn).createRenderer(null,null));u(this,"_cleanupKeydown");u(this,"_keydownListener",t=>{let r=this._attachedOverlays;for(let a=r.length-1;a>-1;a--){let p=r[a];if(this.canReceiveEvent(p,t,p._keydownEvents)){this._ngZone.run(()=>p._keydownEvents.next(t));break;}}});}add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener);}),this._isAttached=!0);}detach(){var t;this._isAttached&&((t=this._cleanupKeydown)==null||t.call(this),this._isAttached=!1);}};u(n,"\u0275fac",(()=>{let t;return function(a){return(t||(t=tc(n)))(a||n);};})()),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})(),pu=(()=>{let n=class n extends cu{constructor(){super(...arguments);u(this,"_platform",Q(Dn));u(this,"_ngZone",Q(dt));u(this,"_renderer",Q(bn).createRenderer(null,null));u(this,"_cursorOriginalValue");u(this,"_cursorStyleIsSet",!1);u(this,"_pointerDownEventTarget",null);u(this,"_cleanups");u(this,"_pointerDownListener",t=>{this._pointerDownEventTarget=Ni(t);});u(this,"_clickListener",t=>{let r=Ni(t),a=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:r;this._pointerDownEventTarget=null;let p=this._attachedOverlays.slice();for(let m=p.length-1;m>-1;m--){let v=p[m],x=v._outsidePointerEvents;if(!(!v.hasAttached()||!this.canReceiveEvent(v,t,x))){if(Zg(v.overlayElement,r)||Zg(v.overlayElement,a))break;this._ngZone?this._ngZone.run(()=>x.next(t)):x.next(t);}}});}add(t){if(super.add(t),!this._isAttached){let r=this._document.body,a={capture:!0},p=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[p.listen(r,"pointerdown",this._pointerDownListener,a),p.listen(r,"click",this._clickListener,a),p.listen(r,"auxclick",this._clickListener,a),p.listen(r,"contextmenu",this._clickListener,a)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0;}}detach(){var t;this._isAttached&&((t=this._cleanups)==null||t.forEach(r=>r()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1);}};u(n,"\u0275fac",(()=>{let t;return function(a){return(t||(t=tc(n)))(a||n);};})()),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})();function Zg(o,n){let i=typeof ShadowRoot<"u"&&ShadowRoot,e=n;for(;e;){if(e===o)return!0;e=i&&e instanceof ShadowRoot?e.host:e.parentNode;}return!1;}var du=(()=>{let n=class n{};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275cmp",F({type:n,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(t,r){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper {
4  pointer-events: none;
5  top: 0;
6  left: 0;
7  height: 100%;
8  width: 100%;
9}
10
11.cdk-overlay-container {
12  position: fixed;
13}
14@layer cdk-overlay {
15  .cdk-overlay-container {
16    z-index: 1000;
17  }
18}
19.cdk-overlay-container:empty {
20  display: none;
21}
22
23.cdk-global-overlay-wrapper {
24  display: flex;
25  position: absolute;
26}
27@layer cdk-overlay {
28  .cdk-global-overlay-wrapper {
29    z-index: 1000;
30  }
31}
32
33.cdk-overlay-pane {
34  position: absolute;
35  pointer-events: auto;
36  box-sizing: border-box;
37  display: flex;
38  max-width: 100%;
39  max-height: 100%;
40}
41@layer cdk-overlay {
42  .cdk-overlay-pane {
43    z-index: 1000;
44  }
45}
46
47.cdk-overlay-backdrop {
48  position: absolute;
49  top: 0;
50  bottom: 0;
51  left: 0;
52  right: 0;
53  pointer-events: auto;
54  -webkit-tap-highlight-color: transparent;
55  opacity: 0;
56  touch-action: manipulation;
57}
58@layer cdk-overlay {
59  .cdk-overlay-backdrop {
60    z-index: 1000;
61    transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
62  }
63}
64@media (prefers-reduced-motion) {
65  .cdk-overlay-backdrop {
66    transition-duration: 1ms;
67  }
68}
69
70.cdk-overlay-backdrop-showing {
71  opacity: 1;
72}
73@media (forced-colors: active) {
74  .cdk-overlay-backdrop-showing {
75    opacity: 0.6;
76  }
77}
78
79@layer cdk-overlay {
80  .cdk-overlay-dark-backdrop {
81    background: rgba(0, 0, 0, 0.32);
82  }
83}
84
85.cdk-overlay-transparent-backdrop {
86  transition: visibility 1ms linear, opacity 1ms linear;
87  visibility: hidden;
88  opacity: 1;
89}
90.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing, .cdk-high-contrast-active .cdk-overlay-transparent-backdrop {
91  opacity: 0;
92  visibility: visible;
93}
94
95.cdk-overlay-backdrop-noop-animation {
96  transition: none;
97}
98
99.cdk-overlay-connected-position-bounding-box {
100  position: absolute;
101  display: flex;
102  flex-direction: column;
103  min-width: 1px;
104  min-height: 1px;
105}
106@layer cdk-overlay {
107  .cdk-overlay-connected-position-bounding-box {
108    z-index: 1000;
109  }
110}
111
112.cdk-global-scrollblock {
113  position: fixed;
114  width: 100%;
115  overflow-y: scroll;
116}
117
118.cdk-overlay-popover {
119  background: none;
120  border: none;
121  padding: 0;
122  outline: 0;
123  overflow: visible;
124  position: fixed;
125  pointer-events: none;
126  white-space: normal;
127  color: inherit;
128  text-decoration: none;
129  width: 100%;
130  height: 100%;
131  inset: auto;
132  top: 0;
133  left: 0;
134}
135.cdk-overlay-popover::backdrop {
136  display: none;
137}
138.cdk-overlay-popover .cdk-overlay-backdrop {
139  position: fixed;
140  z-index: auto;
141}
142`],encapsulation:2,changeDetection:0}));let o=n;return o;})(),gu=(()=>{let n=class n{constructor(){u(this,"_platform",Q(Dn));u(this,"_containerElement");u(this,"_document",Q(Be));u(this,"_styleLoader",Q(Mr));}ngOnDestroy(){var e;(e=this._containerElement)==null||e.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement;}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Zc()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let a=0;a<r.length;a++)r[a].remove();}let t=this._document.createElement("div");t.classList.add(e),Zc()?t.setAttribute("platform","test"):this._platform.isBrowser||t.setAttribute("platform","server"),this._document.body.appendChild(t),this._containerElement=t;}_loadStyles(){this._styleLoader.load(du);}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})(),al=class{constructor(n,i,e,t){u(this,"_renderer");u(this,"_ngZone");u(this,"element");u(this,"_cleanupClick");u(this,"_cleanupTransitionEnd");u(this,"_fallbackTimeout");u(this,"dispose",()=>{var n,i;clearTimeout(this._fallbackTimeout),(n=this._cleanupClick)==null||n.call(this),(i=this._cleanupTransitionEnd)==null||i.call(this),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove();});this._renderer=i,this._ngZone=e,this.element=n.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=i.listen(this.element,"click",t);}detach(){this._ngZone.runOutsideAngular(()=>{var i;let n=this.element;clearTimeout(this._fallbackTimeout),(i=this._cleanupTransitionEnd)==null||i.call(this),this._cleanupTransitionEnd=this._renderer.listen(n,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),n.style.pointerEvents="none",n.classList.remove("cdk-overlay-backdrop-showing");});}};function sl(o){return o&&o.nodeType===1;}var cs=class{constructor(n,i,e,t,r,a,p,m,v,x=!1,w,k){u(this,"_portalOutlet");u(this,"_host");u(this,"_pane");u(this,"_config");u(this,"_ngZone");u(this,"_keyboardDispatcher");u(this,"_document");u(this,"_location");u(this,"_outsideClickDispatcher");u(this,"_animationsDisabled");u(this,"_injector");u(this,"_renderer");u(this,"_backdropClick",new U());u(this,"_attachments",new U());u(this,"_detachments",new U());u(this,"_positionStrategy");u(this,"_scrollStrategy");u(this,"_locationChanges",qn.EMPTY);u(this,"_backdropRef",null);u(this,"_detachContentMutationObserver");u(this,"_detachContentAfterRenderRef");u(this,"_disposed",!1);u(this,"_previousHostParent");u(this,"_keydownEvents",new U());u(this,"_outsidePointerEvents",new U());u(this,"_afterNextRenderRef");this._portalOutlet=n,this._host=i,this._pane=e,this._config=t,this._ngZone=r,this._keyboardDispatcher=a,this._document=p,this._location=m,this._outsideClickDispatcher=v,this._animationsDisabled=x,this._injector=w,this._renderer=k,t.scrollStrategy&&(this._scrollStrategy=t.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=t.positionStrategy;}get overlayElement(){return this._pane;}get backdropElement(){var n;return((n=this._backdropRef)==null?void 0:n.element)||null;}get hostElement(){return this._host;}get eventPredicate(){var n;return((n=this._config)==null?void 0:n.eventPredicate)||null;}attach(n){var e,t;if(this._disposed)return null;this._attachHost();let i=this._portalOutlet.attach(n);return(e=this._positionStrategy)==null||e.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),(t=this._afterNextRenderRef)==null||t.destroy(),this._afterNextRenderRef=Pi(()=>{this.hasAttached()&&this.updatePosition();},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof(i==null?void 0:i.onDestroy)=="function"&&i.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()));}),i;}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let n=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n;}dispose(){var i,e,t;if(this._disposed)return;let n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),(i=this._backdropRef)==null||i.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dis
142pose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),(e=this._host)==null||e.remove(),(t=this._afterNextRenderRef)==null||t.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,n&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=!0;}hasAttached(){return this._portalOutlet.hasAttached();}backdropClick(){return this._backdropClick;}attachments(){return this._attachments;}detachments(){return this._detachments;}keydownEvents(){return this._keydownEvents;}outsidePointerEvents(){return this._outsidePointerEvents;}getConfig(){return this._config;}updatePosition(){this._positionStrategy&&this._positionStrategy.apply();}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()));}updateSize(n){this._config=Ue(Ue({},this._config),n),this._updateElementSize();}setDirection(n){this._config=Ot(Ue({},this._config),{direction:n}),this._updateElementDirection();}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0);}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1);}getDirection(){let n=this._config.direction;return n?typeof n=="string"?n:n.value:"ltr";}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()));}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection());}_updateElementSize(){if(!this._pane)return;let n=this._pane.style;n.width=Mt(this._config.width),n.height=Mt(this._config.height),n.minWidth=Mt(this._config.minWidth),n.minHeight=Mt(this._config.minHeight),n.maxWidth=Mt(this._config.maxWidth),n.maxHeight=Mt(this._config.maxHeight);}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none";}_attachHost(){var n,i,e;if(!this._host.parentElement){let t=this._config.usePopover?(i=(n=this._positionStrategy)==null?void 0:n.getPopoverInsertionPoint)==null?void 0:i.call(n):null;sl(t)?t.after(this._host):(t==null?void 0:t.type)==="parent"?t.element.appendChild(this._host):(e=this._previousHostParent)==null||e.appendChild(this._host);}if(this._config.usePopover)try{this._host.showPopover();}catch(t){}}_attachBackdrop(){var i;let n="cdk-overlay-backdrop-showing";(i=this._backdropRef)==null||i.dispose(),this._backdropRef=new al(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e);}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{var e;return(e=this._backdropRef)==null?void 0:e.element.classList.add(n);});}):this._backdropRef.element.classList.add(n);}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host);}detachBackdrop(){var n,i;this._animationsDisabled?((n=this._backdropRef)==null||n.dispose(),this._backdropRef=null):(i=this._backdropRef)==null||i.detach();}_toggleClasses(n,i,e){let t=zi(i||[]).filter(r=>!!r);t.length&&(e?n.classList.add(...t):n.classList.remove(...t));}_detachContentWhenEmpty(){let n=!1;try{this._detachContentAfterRenderRef=Pi(()=>{n=!0,this._detachContent();},{injector:this._injector});}catch(i){if(n)throw i;this._detachContent();}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||(this._detachContentMutationObserver=new globalThis.MutationObserver(()=>{this._detachContent();})),this._detachContentMutationObserver.observe(this._pane,{childList:!0}));}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent());}_completeDetachContent(){var n,i;(n=this._detachContentAfterRenderRef)==null||n.destroy(),this._detachContentAfterRenderRef=void 0,(i=this._detachContentMutationObserver)==null||i.disconnect();}_disposeScrollStrategy(){var i;let n=this._scrollStrategy;n==null||n.disable(),(i=n==null?void 0:n.detach)==null||i.call(n);}},eu="cdk-overlay-connected-position-bounding-box",Ox=/([A-Za-z%]+)$/;function uu(o,n){return new ls(n,o.get(Hi),o.get(Be),o.get(Dn),o.get(gu));}var ls=class{constructor(n,i,e,t,r){u(this,"_viewportRuler");u(this,"_document");u(this,"_platform");u(this,"_overlayContainer");u(this,"_overlayRef");u(this,"_isInitialRender",!1);u(this,"_lastBoundingBoxSize",{width:0,height:0});u(this,"_isPushed",!1);u(this,"_canPush",!0);u(this,"_growAfterOpen",!1);u(this,"_hasFlexibleDimensions",!0);u(this,"_positionLocked",!1);u(this,"_originRect");u(this,"_overlayRect");u(this,"_viewportRect");u(this,"_containerRect");u(this,"_viewportMargin",0);u(this,"_scrollables",[]);u(this,"_preferredPositions",[]);
142u(this,"_origin");u(this,"_pane");u(this,"_isDisposed",!1);u(this,"_boundingBox",null);u(this,"_lastPosition",null);u(this,"_lastScrollVisibility",null);u(this,"_positionChanges",new U());u(this,"_resizeSubscription",qn.EMPTY);u(this,"_offsetX",0);u(this,"_offsetY",0);u(this,"_transformOriginSelector");u(this,"_appliedPanelClasses",[]);u(this,"_previousPushAmount",null);u(this,"_popoverLocation","global");u(this,"positionChanges",this._positionChanges);this._viewportRuler=i,this._document=e,this._platform=t,this._overlayContainer=r,this.setOrigin(n);}get positions(){return this._preferredPositions;}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(eu),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply();});}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return;}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();let n=this._originRect,i=this._overlayRect,e=this._viewportRect,t=this._containerRect,r=[],a;for(let p of this._preferredPositions){let m=this._getOriginPoint(n,t,p),v=this._getOverlayPoint(m,i,p),x=this._getOverlayFit(v,i,e,p);if(x.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(p,m);return;}if(this._canFitWithFlexibleDimensions(x,v,e)){r.push({position:p,origin:m,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(m,p)});continue;}(!a||a.overlayFit.visibleArea<x.visibleArea)&&(a={overlayFit:x,overlayPoint:v,originPoint:m,position:p,overlayRect:i});}if(r.length){let p=null,m=-1;for(let v of r){let x=v.boundingBoxRect.width*v.boundingBoxRect.height*(v.position.weight||1);x>m&&(m=x,p=v);}this._isPushed=!1,this._applyPosition(p.position,p.origin);return;}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return;}this._applyPosition(a.position,a.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&ro(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(eu),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0);}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let n=this._lastPosition;n?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(n,this._getOriginPoint(this._originRect,this._containerRect,n))):this.apply();}withScrollableContainers(n){return this._scrollables=n,this;}withPositions(n){return this._preferredPositions=n,n.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this;}withViewportMargin(n){return this._viewportMargin=n,this;}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this;}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this;}withPush(n=!0){return this._canPush=n,this;}withLockedPosition(n=!0){return this._positionLocked=n,this;}setOrigin(n){return this._origin=n,this;}withDefaultOffsetX(n){return this._offsetX=n,this;}withDefaultOffsetY(n){return this._offsetY=n,this;}withTransformOriginOn(n){return this._transformOriginSelector=n,this;}withPopoverLocation(n){return this._popoverLocation=n,this;}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin 
142instanceof Re?this._origin.nativeElement:sl(this._origin)?this._origin:null;}_getOriginPoint(n,i,e){let t;if(e.originX=="center")t=n.left+n.width/2;else{let a=this._isRtl()?n.right:n.left,p=this._isRtl()?n.left:n.right;t=e.originX=="start"?a:p;}i.left<0&&(t-=i.left);let r;return e.originY=="center"?r=n.top+n.height/2:r=e.originY=="top"?n.top:n.bottom,i.top<0&&(r-=i.top),{x:t,y:r};}_getOverlayPoint(n,i,e){let t;e.overlayX=="center"?t=-i.width/2:e.overlayX==="start"?t=this._isRtl()?-i.width:0:t=this._isRtl()?0:-i.width;let r;return e.overlayY=="center"?r=-i.height/2:r=e.overlayY=="top"?0:-i.height,{x:n.x+t,y:n.y+r};}_getOverlayFit(n,i,e,t){let r=nu(i),{x:a,y:p}=n,m=this._getOffset(t,"x"),v=this._getOffset(t,"y");m&&(a+=m),v&&(p+=v);let x=0-a,w=a+r.width-e.width,k=0-p,S=p+r.height-e.height,E=this._subtractOverflows(r.width,x,w),I=this._subtractOverflows(r.height,k,S),T=E*I;return{visibleArea:T,isCompletelyWithinViewport:r.width*r.height===T,fitsInViewportVertically:I===r.height,fitsInViewportHorizontally:E==r.width};}_canFitWithFlexibleDimensions(n,i,e){if(this._hasFlexibleDimensions){let t=e.bottom-i.y,r=e.right-i.x,a=tu(this._overlayRef.getConfig().minHeight),p=tu(this._overlayRef.getConfig().minWidth),m=n.fitsInViewportVertically||a!=null&&a<=t,v=n.fitsInViewportHorizontally||p!=null&&p<=r;return m&&v;}return!1;}_pushOverlayOnScreen(n,i,e){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let t=nu(i),r=this._viewportRect,a=Math.max(n.x+t.width-r.width,0),p=Math.max(n.y+t.height-r.height,0),m=Math.max(r.top-e.top-n.y,0),v=Math.max(r.left-e.left-n.x,0),x=0,w=0;return t.width<=r.width?x=v||-a:x=n.x<this._getViewportMarginStart()?r.left-e.left-n.x:0,t.height<=r.height?w=m||-p:w=n.y<this._getViewportMarginTop()?r.top-e.top-n.y:0,this._previousPushAmount={x,y:w},{x:n.x+x,y:n.y+w};}_applyPosition(n,i){if(this._setTransformOrigin(n),this._setOverlayElementStyles(i,n),this._setBoundingBoxStyles(i,n),n.panelClass&&this._addPanelClasses(n.panelClass),this._positionChanges.observers.length){let e=this._getScrollVisibility();if(n!==this._lastPosition||!this._lastScrollVisibility||!wx(this._lastScrollVisibility,e)){let t=new ss(n,e);this._positionChanges.next(t);}this._lastScrollVisibility=e;}this._lastPosition=n,this._isInitialRender=!1;}_setTransformOrigin(n){if(!this._transformOriginSelector)return;let i=this._boundingBox.querySelectorAll(this._transformOriginSelector),e,t=n.overlayY;n.overlayX==="center"?e="center":this._isRtl()?e=n.overlayX==="start"?"right":"left":e=n.overlayX==="start"?"left":"right";for(let r=0;r<i.length;r++)i[r].style.transformOrigin=`${e} ${t}`;}_calculateBoundingBoxRect(n,i){let e=this._viewportRect,t=this._isRtl(),r,a,p;if(i.overlayY==="top")a=n.y,r=e.height-a+this._getViewportMarginBottom();else if(i.overlayY==="bottom")p=e.height-n.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),r=e.height-p+this._getViewportMarginTop();else{let S=Math.min(e.bottom-n.y+e.top,n.y),E=this._lastBoundingBoxSize.height;r=S*2,a=n.y-S,r>E&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-E/2);}let m=i.overlayX==="start"&&!t||i.overlayX==="end"&&t,v=i.overlayX==="end"&&!t||i.overlayX==="start"&&t,x,w,k;if(v)k=e.width-n.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),x=n.x-this._getViewportMarginStart();else if(m)w=n.x,x=e.right-n.x-this._getViewportMarginEnd();else{let S=Math.min(e.right-n.x+e.left,n.x),E=this._lastBoundingBoxSize.width;x=S*2,w=n.x-S,x>E&&!this._isInitialRender&&!this._growAfterOpen&&(w=n.x-E/2);}return{top:a,left:w,bottom:p,right:k,width:x,height:r};}_setBoundingBoxStyles(n,i){let e=this._calculateBoundingBoxRect(n,i);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));let t={};if(this._hasExactPosition())t.top=t.left="0",t.bottom=t.right="auto",t.maxHeight=t.maxWidth="",t.width=t.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;t.width=Mt(e.width),t.height=Mt(e.height),t.top=Mt(e.top)||"auto",t.bottom=Mt(e.bottom)||"auto",t.left=Mt(e.left)||"auto",t.right=Mt(e.right)||"auto",i.overlayX==="center"?t.alignItems="center"
142:t.alignItems=i.overlayX==="end"?"flex-end":"flex-start",i.overlayY==="center"?t.justifyContent="center":t.justifyContent=i.overlayY==="bottom"?"flex-end":"flex-start",r&&(t.maxHeight=Mt(r)),a&&(t.maxWidth=Mt(a));}this._lastBoundingBoxSize=e,ro(this._boundingBox.style,t);}_resetBoundingBoxStyles(){ro(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){ro(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(n,i){let e={},t=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(t){let x=this._viewportRuler.getViewportScrollPosition();ro(e,this._getExactOverlayY(i,n,x)),ro(e,this._getExactOverlayX(i,n,x));}else e.position="static";let p="",m=this._getOffset(i,"x"),v=this._getOffset(i,"y");m&&(p+=`translateX(${m}px) `),v&&(p+=`translateY(${v}px)`),e.transform=p.trim(),a.maxHeight&&(t?e.maxHeight=Mt(a.maxHeight):r&&(e.maxHeight="")),a.maxWidth&&(t?e.maxWidth=Mt(a.maxWidth):r&&(e.maxWidth="")),ro(this._pane.style,e);}_getExactOverlayY(n,i,e){let t={top:"",bottom:""},r=this._getOverlayPoint(i,this._overlayRect,n);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,e)),n.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;t.bottom=`${a-(r.y+this._overlayRect.height)}px`;}else t.top=Mt(r.y);return t;}_getExactOverlayX(n,i,e){let t={left:"",right:""},r=this._getOverlayPoint(i,this._overlayRect,n);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,e));let a;if(this._isRtl()?a=n.overlayX==="end"?"left":"right":a=n.overlayX==="end"?"right":"left",a==="right"){let p=this._document.documentElement.clientWidth;t.right=`${p-(r.x+this._overlayRect.width)}px`;}else t.left=Mt(r.x);return t;}_getScrollVisibility(){let n=this._getOriginRect(),i=this._pane.getBoundingClientRect(),e=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Kg(n,e),isOriginOutsideView:rl(n,e),isOverlayClipped:Kg(i,e),isOverlayOutsideView:rl(i,e)};}_subtractOverflows(n,...i){return i.reduce((e,t)=>e-Math.max(t,0),n);}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,i=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._getViewportMarginTop(),left:e.left+this._getViewportMarginStart(),right:e.left+n-this._getViewportMarginEnd(),bottom:e.top+i-this._getViewportMarginBottom(),width:n-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:i-this._getViewportMarginTop()-this._getViewportMarginBottom()};}_isRtl(){return this._overlayRef.getDirection()==="rtl";}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed;}_getOffset(n,i){return i==="x"?n.offsetX==null?this._offsetX:n.offsetX:n.offsetY==null?this._offsetY:n.offsetY;}_validatePositions(){}_addPanelClasses(n){this._pane&&zi(n).forEach(i=>{i!==""&&this._appliedPanelClasses.indexOf(i)===-1&&(this._appliedPanelClasses.push(i),this._pane.classList.add(i));});}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n);}),this._appliedPanelClasses=[]);}_getViewportMarginStart(){var n,i;return typeof this._viewportMargin=="number"?this._viewportMargin:(i=(n=this._viewportMargin)==null?void 0:n.start)!=null?i:0;}_getViewportMarginEnd(){var n,i;return typeof this._viewportMargin=="number"?this._viewportMargin:(i=(n=this._viewportMargin)==null?void 0:n.end)!=null?i:0;}_getViewportMarginTop(){var n,i;return typeof this._viewportMargin=="number"?this._viewportMargin:(i=(n=this._viewportMargin)==null?void 0:n.top)!=null?i:0;}_getViewportMarginBottom(){var n,i;return typeof this._viewportMargin=="number"?this._viewportMargin:(i=(n=this._viewportMargin)==null?void 0:n.bottom)!=null?i:0;}_getOriginRect(){let n=this._origin;if(n instanceof Re)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let i=n.width||0,e=n.height||0;return{top:n.y,bottom:n.y+e,left:n.x,right:n.x+i,height:e,width:i};}_getContainerRect(){let n=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",i=this._overlayContainer.getContainerElement();n&&(i.style.display="block");let e=i.getBoundingClientRect();return n&&(i.style.display=""),e;}};function ro(o,n){for(let i in n)n.hasOwnProperty(i)&&(o[i]=n[i]);return o;}function tu(o){if(typeof o!="number"&&o!=null){let[n,i]=o.split(Ox);return!i||i==="px"?parseFloat(n):null;}return o||null;}function nu(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)};}function wx(o,n){return o===n?!0:o.isOriginClipped===n.isOriginClipped&&o.isOriginOutsideView===n.isOriginOutsideView&&o.isOverlayClipped===n.isOverlayClipped&&o.isOverlayOutsideView===n.isOverlayOutsideView;}var iu="cdk-global-overlay-wrapper";function mu(o){return new ps();}var ps=class{constructor(){u(this,"_overlayRef");u(this,"_cssPosition","static");u(this,"_topOffset","");u(this,"_bottomOffset","");u(this,"_alignItems","");u(this,"_xPosition","");u(this,"_xOffset","");u(this,"_width","");u(this,"_height","");u(this,"_isDisposed",!1);}attach(n){let i=n.getConfig();this._overlayRef=n,this._width&&!i.width&&n.updateSize({width:this._width}),this._height&&!i.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(iu),this._isDisposed=!1;}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this;}left(n=""){return this._xOffset=n,this._xPosition="left",this;}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this;}right(n=""){return this._xOffset=n,this._xPosition="right",this;}start(n=""){return this._xOffset=n,this._xPosition="start",this;}end(n=""){return this._xOffset=n,this._xPosition="end",this;}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this;}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this;}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this;}centerVertically(n=""){return this.top(n),this._alignItems="center",this;}
142apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let n=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:t,height:r,maxWidth:a,maxHeight:p}=e,m=(t==="100%"||t==="100vw")&&(!a||a==="100%"||a==="100vw"),v=(r==="100%"||r==="100vh")&&(!p||p==="100%"||p==="100vh"),x=this._xPosition,w=this._xOffset,k=this._overlayRef.getConfig().direction==="rtl",S="",E="",I="";m?I="flex-start":x==="center"?(I="center",k?E=w:S=w):k?x==="left"||x==="end"?(I="flex-end",S=w):(x==="right"||x==="start")&&(I="flex-start",E=w):x==="left"||x==="start"?(I="flex-start",S=w):(x==="right"||x==="end")&&(I="flex-end",E=w),n.position=this._cssPosition,n.marginLeft=m?"0":S,n.marginTop=v?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=m?"0":E,i.justifyContent=I,i.alignItems=v?"flex-start":this._alignItems;}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement,e=i.style;i.classList.remove(iu),e.justifyContent=e.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0;}},hu=(()=>{let n=class n{constructor(){u(this,"_injector",Q(Vt));}global(){return mu();}flexibleConnectedTo(e){return uu(this._injector,e);}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})(),_u=new Ut("OVERLAY_DEFAULT_CONFIG");function fu(o,n){var S,E,I,T,D,L;o.get(Mr).load(du);let i=o.get(gu),e=o.get(Be),t=o.get(zo),r=o.get(cr),a=o.get(ji),p=o.get(Ki,null,{optional:!0})||o.get(bn).createRenderer(null,null),m=new jo(n),v=(E=(S=o.get(_u,null,{optional:!0}))==null?void 0:S.usePopover)!=null?E:!0;m.direction=m.direction||a.value,"showPopover"in e.body?m.usePopover=(I=n==null?void 0:n.usePopover)!=null?I:v:m.usePopover=!1;let x=e.createElement("div"),w=e.createElement("div");x.id=t.getId("cdk-overlay-"),x.classList.add("cdk-overlay-pane"),w.appendChild(x),m.usePopover&&(w.setAttribute("popover","manual"),w.classList.add("cdk-overlay-popover"));let k=m.usePopover?(D=(T=m.positionStrategy)==null?void 0:T.getPopoverInsertionPoint)==null?void 0:D.call(T):null;return sl(k)?k.after(w):(k==null?void 0:k.type)==="parent"?k.element.appendChild(w):i.getContainerElement().appendChild(w),new cs(new is(x,r,o),w,x,m,o.get(dt),o.get(lu),e,o.get(xp),o.get(pu),(L=n==null?void 0:n.disableAnimations)!=null?L:o.get(ar,null,{optional:!0})==="NoopAnimations",o.get(_o),p);}var ds=(()=>{let n=class n{constructor(){u(this,"scrollStrategies",Q(su));u(this,"_positionBuilder",Q(hu));u(this,"_injector",Q(Vt));}create(e){return fu(this._injector,e);}position(){return this._positionBuilder;}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})();var cl=(()=>{let n=class n{};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275mod",it({type:n})),u(n,"\u0275inj",nt({providers:[ds],imports:[$i,Jg,el,el]}));let o=n;return o;})();function Cu(o){return o.buttons===0||o.detail===0;}function xu(o){let n=o.touches&&o.touches[0]||o.changedTouches&&o.changedTouches[0];return!!n&&n.identifier===-1&&(n.radiusX==null||n.radiusX===1)&&(n.radiusY==null||n.radiusY===1);}var vu=new Set(),ao,yx=(()=>{let n=class n{constructor(){u(this,"_platform",Q(Dn));u(this,"_nonce",Q(sp,{optional:!0}));u(this,"_matchMedia");this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Sx;}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&kx(e,this._nonce),this._matchMedia(e);}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})();function kx(o,n){if(!vu.has(o))try{ao||(ao=document.createElement("style"),n&&ao.setAttribute("nonce",n),ao.setAttribute("type","text/css"),document.head.appendChild(ao)),ao.sheet&&(ao.sheet.insertRule(`@media ${o} {body{ }}`,0),vu.add(o));}catch(i){console.error(i);}}function Sx(o){return{matches:o==="all"||o==="",media:o,addListener:()=>{},removeListener:()=>{}};}var Pu=(()=>{let n=class n{constructor(){u(this,"_mediaMatcher",Q(yx));u(this,"_zone",Q(dt));u(this,"_queries",new Map());u(this,"_destroySubject",new U());}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete();}isMatched(e){return bu(zi(e)).some(r=>this._registerQuery(r).mql.matches);}observe(e){let r=bu(zi(e)).map(p=>this._registerQuery(p).observable),a=vi(r);return a=op(a.pipe(ho(1)),a.pipe(ap(1),Ct(0))),a.pipe(Dt(p=>{let m={matches:!1,breakpoints:{}};return p.forEach(({matches:v,query:x})=>{m.matches=m.matches||v,m.breakpoints[x]=v;}),m;}));}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let t=this._mediaMatcher.matchMedia(e),a={observable:new Yi(p=>{let m=v=>this._zone.run(()=>p.next(v));return t.addListener(m),()=>{t.removeListener(m);};}).pipe(Qn(t),Dt(({matches:p})=>({query:e,matches:p})),Ht(this._destroySubject)),mql:t};return this._queries.set(e,a),a;}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})();function bu(o){return o.map(n=>n.split(",")).reduce((n,i)=>n.concat(i)).map(n=>n.trim());}var Tx=(()=>{let n=class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e);}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})();var Mu=(()=>{let n=class n{};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275mod",it({type:n})),u(n,"\u0275inj",nt({providers:[Tx]}));let o=n;return o;})();var ku=(()=>{let n=class n{constructor(){u(this,"_platform",Q(Dn));}isDisabled(e){return e.hasAttribute("disabled");}isVisible(e){return Dx(e)&&getComputedStyle(e).visibility==="visible";}isTabbable(e){if(!this._platform.isBrowser)return!1;let t=Ex(Nx(e));if(t&&(Ou(t)===-1||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),a=Ou(e);return e.hasAttribute("contenteditable")?a!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Lx(e)?!1:r==="audio"?e.hasAttribute("controls")?a!==-1:!1:r==="video"?a===-1?!1:a!==null?!0:this._platform.FIRE
142FOX||e.hasAttribute("controls"):e.tabIndex>=0;}isFocusable(e,t){return Bx(e)&&!this.isDisabled(e)&&((t==null?void 0:t.ignoreVisibility)||this.isVisible(e));}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})();function Ex(o){try{return o.frameElement;}catch(n){return null;}}function Dx(o){return!!(o.offsetWidth||o.offsetHeight||typeof o.getClientRects=="function"&&o.getClientRects().length);}function Ix(o){let n=o.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea";}function Fx(o){return Vx(o)&&o.type=="hidden";}function Ax(o){return Rx(o)&&o.hasAttribute("href");}function Vx(o){return o.nodeName.toLowerCase()=="input";}function Rx(o){return o.nodeName.toLowerCase()=="a";}function Su(o){if(!o.hasAttribute("tabindex")||o.tabIndex===void 0)return!1;let n=o.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)));}function Ou(o){if(!Su(o))return null;let n=parseInt(o.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n;}function Lx(o){let n=o.nodeName.toLowerCase(),i=n==="input"&&o.type;return i==="text"||i==="password"||n==="select"||n==="textarea";}function Bx(o){return Fx(o)?!1:Ix(o)||Ax(o)||o.hasAttribute("contenteditable")||Su(o);}function Nx(o){return o.ownerDocument&&o.ownerDocument.defaultView||window;}var gs=class{constructor(n,i,e,t,r=!1,a){u(this,"_element");u(this,"_checker");u(this,"_ngZone");u(this,"_document");u(this,"_injector");u(this,"_startAnchor",null);u(this,"_endAnchor",null);u(this,"_hasAttached",!1);u(this,"startAnchorListener",()=>this.focusLastTabbableElement());u(this,"endAnchorListener",()=>this.focusFirstTabbableElement());u(this,"_enabled",!0);this._element=n,this._checker=i,this._ngZone=e,this._document=t,this._injector=a,r||this.attachAnchors();}get enabled(){return this._enabled;}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor));}destroy(){let n=this._startAnchor,i=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),i&&(i.removeEventListener("focus",this.endAnchorListener),i.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1;}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener));}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached);}focusInitialElementWhenReady(n){return new Promise(i=>{this._executeOnStable(()=>i(this.focusInitialElement(n)));});}focusFirstTabbableElementWhenReady(n){return new Promise(i=>{this._executeOnStable(()=>i(this.focusFirstTabbableElement(n)));});}focusLastTabbableElementWhenReady(n){return new Promise(i=>{this._executeOnStable(()=>i(this.focusLastTabbableElement(n)));});}_getRegionBoundary(n){let i=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return n=="start"?i.length?i[0]:this._getFirstTabbableElement(this._element):i.length?i[i.length-1]:this._getLastTabbableElement(this._element);}focusInitialElement(n){let i=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(i){if(!this._checker.isFocusable(i)){let e=this._getFirstTabbableElement(i);return e==null||e.focus(n),!!e;}return i.focus(n),!0;}return this.focusFirstTabbableElement(n);}focusFirstTabbableElement(n){let i=this._getRegionBoundary("start");return i&&i.focus(n),!!i;}focusLastTabbableElement(n){let i=this._getRegionBoundary("end");return i&&i.focus(n),!!i;}hasAttached(){return this._hasAttached;}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let i=n.children;for(let e=0;e<i.length;e++){let t=i[e].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(i[e]):null;if(t)return t;}return null;}_getLastTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let i=n.children;for(let e=i.length-1;e>=0;e--){let t=i[e].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(i[e]):null;if(t)return t;}return null;}_createAnchor(){let n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n;}_toggleAnchorTabIndex(n,i){n?i.setAttribute("tabindex","0"):i.removeAttribute("tabindex");}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor));}_executeOnStable(n){this._injector?Pi(n,{injector:this._injector}):setTimeout(n);}};var Ui=function(o){return o[o.NONE=0]="NONE",o[o.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",o[o.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",o;}(Ui||{}
142),wu="cdk-high-contrast-black-on-white",yu="cdk-high-contrast-white-on-black",ll="cdk-high-contrast-active",Tu=(()=>{let n=class n{constructor(){u(this,"_platform",Q(Dn));u(this,"_hasCheckedHighContrastMode",!1);u(this,"_document",Q(Be));u(this,"_breakpointSubscription");this._breakpointSubscription=Q(Pu).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses());});}getHighContrastMode(){if(!this._platform.isBrowser)return Ui.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,a=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),a){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Ui.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Ui.BLACK_ON_WHITE;}return Ui.NONE;}ngOnDestroy(){this._breakpointSubscription.unsubscribe();}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(ll,wu,yu),this._hasCheckedHighContrastMode=!0;let t=this.getHighContrastMode();t===Ui.BLACK_ON_WHITE?e.add(ll,wu):t===Ui.WHITE_ON_BLACK&&e.add(ll,yu);}}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})(),pl=(()=>{let n=class n{constructor(){Q(Tu)._applyBodyHighContrastModeCssClasses();}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275mod",it({type:n})),u(n,"\u0275inj",nt({imports:[Mu]}));let o=n;return o;})();var dl=class extends gs{constructor(i,e,t,r,a,p,m,v){super(i,e,t,r,m.defer,v);u(this,"_focusTrapManager");u(this,"_inertStrategy");this._focusTrapManager=a,this._inertStrategy=p,this._focusTrapManager.register(this);}get enabled(){return this._enabled;}set enabled(i){this._enabled=i,this._enabled?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this);}destroy(){this._focusTrapManager.deregister(this),super.destroy();}_enable(){this._inertStrategy.preventFocus(this),this.toggleAnchors(!0);}_disable(){this._inertStrategy.allowFocus(this),this.toggleAnchors(!1);}},gl=class{constructor(){u(this,"_listener",null);}preventFocus(n){this._listener&&n._document.removeEventListener("focus",this._listener,!0),this._listener=i=>this._trapFocus(n,i),n._ngZone.runOutsideAngular(()=>{n._document.addEventListener("focus",this._listener,!0);});}allowFocus(n){this._listener&&(n._document.removeEventListener("focus",this._listener,!0),this._listener=null);}_trapFocus(n,i){var r;let e=i.target,t=n._element;e&&!t.contains(e)&&!((r=e.closest)!=null&&r.call(e,"div.cdk-overlay-pane"))&&setTimeout(()=>{n.enabled&&!t.contains(n._document.activeElement)&&n.focusFirstTabbableElement();});}},zx=new Ut("FOCUS_TRAP_INERT_STRATEGY"),Gx=(()=>{let n=class n{constructor(){u(this,"_focusTrapStack",[]);}register(e){this._focusTrapStack=this._focusTrapStack.filter(r=>r!==e);let t=this._focusTrapStack;t.length&&t[t.length-1]._disable(),t.push(e),e._enable();}deregister(e){e._disable();let t=this._focusTrapStack,r=t.indexOf(e);r!==-1&&(t.splice(r,1),t.length&&t[t.length-1]._enable());}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})(),Eu=(()=>{let n=class n{constructor(){u(this,"_checker",Q(ku));u(this,"_ngZone",Q(dt));u(this,"_focusTrapManager",Q(Gx));u(this,"_document",Q(Be));u(this,"_inertStrategy");u(this,"_injector",Q(Vt));let e=Q(zx,{optional:!0});this._inertStrategy=e||new gl();}create(e,t={defer:!1}){let r;return typeof t=="boolean"?r={defer:t}:r=t,new dl(e,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,r,this._injector);}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})();function $n(o){return o!=null&&`${o}`!="false";}var jx=["focusTrapElement"],$x=["*"],Hx=(o,n)=>({value:o,params:n});function Ux(o,n){if(o&1){let i=y();s(0,"div",1,0),f("@transformPopover.done",function(t){b(i);let r=d();return P(r._onAnimationDone(t));}),Nt(2),c();}if(o&2){let i=d();C("ngClass",i._classList)("@transformPopover",qe(2,Hx,i.state,i.params));}}var qx=Tp("transformPopover",[sc("enter",rn({opacity:1,transform:"scale(1)"}),{params:{startAtScale:.3}}),sc("void, exit",rn({opacity:0,transform:"scale({{endAtScale}})"}),{params:{endAtScale:.5}}),cc("* => enter",[rn({opacity:0,transform:"scale({{endAtScale}})"}),xo("{{openTransition}}",rn({opacity:1,transform:"scale(1)"}))]),cc("* => void, * => exit",[xo("{{closeTransition}}",rn({opacity:0,transform:"scale({{endAtScale}})"}))])]),Au=["noop","block","reposition","close"],Vu=["before","start","center","end","after"],Ru=["above","start","center","end","below"];function Qx(){return Error("SatPopover does not have an anchor.");}function Wx(){return Error("SatPopover#anchor must be an instance of SatPopoverAnchor, ElementRef, or HTMLElement.");}function Xx(){return Error("SatPopoverAnchor#satPopoverAnchor must be an instance of SatPopover.");}function Jx(){return Error('SatPopoverAnchor must be associated with a SatPopover component. Examples: <sat-popover [anchor]="satPopoverAnchorTemplateRef"> or <button satPopoverAnchor [satPopoverAnchor]="satPopoverTemplateRef">');}function Yx(o){return Error(ul("horizontalAlign/xAlign",o,Vu));}function Kx(o){return Error(ul("verticalAlign/yAlign",o,Ru));}function Zx(o){return Error(ul("scrollStrategy",o,Au));}function ul(o,n,i){return`Invalid ${o}: '${n}'. Valid options are ${i.map(e=>`'${e}'`).join(", ")}.`;}var Du=(()=>{let n=class n{constructor(){u(this,"popoverOpened",new U());u(this,"popoverClosed",new U());u(this,"_overlayRef",null);u(this,"_dir",Q(ji,{optional:!0}));u(this,"_popover");u(this,"_viewContainerRef");u(this,"_anchor");u(this,"_portal");u(this,"_notificationsSubscription");u(this,"_positionChangeSubscription");u(this,"_popoverOpen",!1);u(this,"_ngZone",Q(dt));u(this,"_onDestroy",new U());u(this,"_overlay",Q(ds));}ngOnDestroy(){this._destroyPopover(),this._notificationsSubscription&&this._notificationsSubscription.unsubscribe(),this._positionChangeSubscription&&this._positionChangeSubscription.unsubscribe(),this._onDestroy.next(),this._onDestroy.complete(),this.popoverOpened.complete(),this.popoverClosed.complete();}
142anchor(e,t,r){if(this._popover===e&&this._viewContainerRef===t&&this._overlayRef){this._anchor=r instanceof Re?r.nativeElement:r,this._overlayRef.getConfig().positionStrategy.setOrigin(this._anchor),this._overlayRef.updatePosition();return;}this._destroyPopover(),this._popover=e,this._viewContainerRef=t,this._anchor=r instanceof Re?r.nativeElement:r;}isPopoverOpen(){return this._popoverOpen;}togglePopover(){return this._popoverOpen?this.closePopover():this.openPopover();}openPopover(e={}){this._popoverOpen||(this._applyOpenOptions(e),this._createOverlay(),this._subscribeToBackdrop(),this._subscribeToEscape(),this._subscribeToDetachments(),this._saveOpenedState());}closePopover(e){this._overlayRef&&(this._saveClosedState(e),this._overlayRef.detach());}repositionPopover(){this.updatePopoverConfig();}updatePopoverConfig(){this._destroyPopoverOnceClosed();}realignPopoverToAnchor(){if(!this._overlayRef)return;this._overlayRef.getConfig().positionStrategy.reapplyLastPosition();}getAnchorElement(){return this._anchor;}_applyOpenOptions(e){let t=e.restoreFocus!==!1;this._popover._restoreFocusOverride=t;let r=e.autoFocus!==!1;this._popover._autoFocusOverride=r;}_createOverlay(){if(!this._overlayRef){this._portal=new Go(this._popover._templateRef,this._viewContainerRef);let e={horizontalAlign:this._popover.horizontalAlign,verticalAlign:this._popover.verticalAlign,hasBackdrop:$n(this._popover.hasBackdrop),backdropClass:this._popover.backdropClass,scrollStrategy:this._popover.scrollStrategy,forceAlignment:$n(this._popover.forceAlignment),lockAlignment:$n(this._popover.lockAlignment),panelClass:this._popover.panelClass},t=this._getOverlayConfig(e,this._anchor);this._subscribeToPositionChanges(t.positionStrategy),this._overlayRef=this._overlay.create(t);}return this._overlayRef.attach(this._portal),this._overlayRef;}_destroyPopover(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null);}_destroyPopoverOnceClosed(){this.isPopoverOpen()&&this._overlayRef?this._overlayRef.detachments().pipe(ho(1),Ht(this._onDestroy)).subscribe(()=>this._destroyPopover()):this._destroyPopover();}_subscribeToBackdrop(){this._overlayRef&&this._overlayRef.backdropClick().pipe(ir(()=>this._popover.backdropClicked.emit()),ut(()=>this._popover.interactiveClose),Ht(this.popoverClosed),Ht(this._onDestroy)).subscribe(()=>this.closePopover());}_subscribeToEscape(){this._overlayRef&&this._overlayRef.keydownEvents().pipe(ir(e=>this._popover.overlayKeydown.emit(e)),ut(e=>e.keyCode===27),ut(()=>this._popover.interactiveClose),Ht(this.popoverClosed),Ht(this._onDestroy)).subscribe(()=>this.closePopover());}_subscribeToDetachments(){this._overlayRef&&this._overlayRef.detachments().pipe(Ht(this._onDestroy)).subscribe(()=>this._saveClosedState());}_saveOpenedState(){this._popoverOpen||(this._popover._state="enter",this._popover._open=this._popoverOpen=!0,this.popoverOpened.next(),this._popover.opened.emit());}_saveClosedState(e){this._popoverOpen&&(this._popover._open=this._popoverOpen=!1,this._popover._startExitAnimation(),this.popoverClosed.next(e),this._popover.closed.emit(e));}_getDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr";}_getOverlayConfig(e,t){return new jo({positionStrategy:this._getPositionStrategy(e.horizontalAlign,e.verticalAlign,e.forceAlignment,e.lockAlignment,t),hasBackdrop:e.hasBackdrop,backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._getScrollStrategyInstance(e.scrollStrategy),direction:this._getDirection(),panelClass:e.panelClass});}_subscribeToPositionChanges(e){this._positionChangeSubscription&&this._positionChangeSubscription.unsubscribe(),this._positionChangeSubscription=e.positionChanges.pipe(Ht(this._onDestroy)).subscribe(t=>{this._ngZone.run(()=>{this._popover._setAlignmentClasses(ev(t.connectionPair.overlayX),tv(t.connectionPair.overlayY));});});}_getScrollStrategyInstance(e){switch(e){case"block":return this._overlay.scrollStrategies.block();case"reposition":return this._overlay.scrollStrategies.reposition();case"close":return this._overlay.scrollStrategies.close();default:return this._overlay.scrollStrategies.noop();}}_getPositionStrategy(e,t,r,a,p){let v=[Iu(e,t)],x=this._overlay.position().flexibleConnectedTo(p).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0).withLockedPosition(a);if(!r){let w=this._getFallbacks(e,t);v.push(...w);}return x.withPositions(v);}_getFallbacks(e,t){let r=e!=="before"&&e!=="after",a=t!=="above"&&t!=="below",p=r?["before","start","center","end","after"]:["before","after"],m=a?["above","start","center","end","below"]:["above","below"],v=[];
142return Fu(e,p).forEach(x=>{Fu(t,m).forEach(w=>{v.push(Iu(x,w));});}),v.slice(1,v.length);}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac}));let o=n;return o;})();function Iu(o,n){let{originX:i,overlayX:e}=nv(o),{originY:t,overlayY:r}=iv(n);return new kr({originX:i,originY:t},{overlayX:e,overlayY:r});}function ev(o){return o==="start"?"after":o==="end"?"before":"center";}function tv(o){return o==="top"?"below":o==="bottom"?"above":"center";}function nv(o){switch(o){case"before":return{originX:"start",overlayX:"end"};case"start":return{originX:"start",overlayX:"start"};case"end":return{originX:"end",overlayX:"end"};case"after":return{originX:"end",overlayX:"start"};default:return{originX:"center",overlayX:"center"};}}function iv(o){switch(o){case"above":return{originY:"top",overlayY:"bottom"};case"start":return{originY:"top",overlayY:"top"};case"end":return{originY:"bottom",overlayY:"bottom"};case"below":return{originY:"bottom",overlayY:"top"};default:return{originY:"center",overlayY:"center"};}}function Fu(o,n){let i=n.indexOf(o),e=[o],t=n.slice(0,i),r=n.slice(i+1,n.length).reverse();for(;t.length&&r.length;)e.push(r.pop()),e.push(t.pop());for(;r.length;)e.push(r.pop());for(;t.length;)e.push(t.pop());return e;}var us=new Ut("DefaultTransition"),ov=.3,rv=.5,av=(()=>{let n=class n{constructor(){u(this,"elementRef",Q(Re));u(this,"viewContainerRef",Q(nn));u(this,"_popover");}get popover(){return this._popover;}set popover(e){if(e instanceof ms)e.anchor=this;else if(e!=="")throw Xx();}ngAfterViewInit(){if(!this.popover)throw Jx();}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275dir",Bt({type:n,selectors:[["","satPopoverAnchor",""]],inputs:{popover:[0,"satPopoverAnchor","popover"]},exportAs:["satPopoverAnchor"]}));let o=n;return o;})(),ms=(()=>{let n=class n{constructor(){u(this,"_anchor");u(this,"_horizontalAlign","center");u(this,"_verticalAlign","center");u(this,"_forceAlignment",!1);u(this,"_lockAlignment",!1);u(this,"_autoFocus",!0);u(this,"_autoFocusOverride",!0);u(this,"_restoreFocus",!0);u(this,"_restoreFocusOverride",!0);u(this,"_scrollStrategy","reposition");u(this,"_hasBackdrop",!1);u(this,"_interactiveClose",!0);u(this,"_openTransition",Q(us));u(this,"_closeTransition",Q(us));u(this,"_openAnimationStartAtScale",ov);u(this,"_closeAnimationEndAtScale",rv);u(this,"backdropClass","");u(this,"panelClass","");u(this,"opened",new H());u(this,"closed",new H());u(this,"afterOpen",new H());u(this,"afterClose",new H());u(this,"backdropClicked",new H());u(this,"overlayKeydown",new H());u(this,"_templateRef");u(this,"_classList",{});u(this,"_defaultTransition",Q(us));u(this,"_document",Q(Be,{optional:!0}));u(this,"_open",!1);u(this,"_state","enter");u(this,"_anchoringService",Q(Du));u(this,"_focusTrapElement");u(this,"_previouslyFocusedElement");u(this,"_focusTrap");u(this,"_focusTrapFactory",Q(Eu));u(this,"_viewContainerRef",Q(nn));}get anchor(){return this._anchor;}set anchor(e){if(e instanceof av)e._popover=this,this._anchoringService.anchor(this,e.viewContainerRef,e.elementRef),this._anchor=e;else if(e instanceof Re||e instanceof HTMLElement)this._anchoringService.anchor(this,this._viewContainerRef,e),this._anchor=e;else if(e)throw Wx();}get horizontalAlign(){return this._horizontalAlign;}set horizontalAlign(e){this._validateHorizontalAlign(e),this._horizontalAlign!==e&&(this._horizontalAlign=e,this._anchoringService.repositionPopover());}get xAlign(){return this.horizontalAlign;}set xAlign(e){this.horizontalAlign=e;}get verticalAlign(){return this._verticalAlign;}set verticalAlign(e){this._validateVerticalAlign(e),this._verticalAlign!==e&&(this._verticalAlign=e,this._anchoringService.repositionPopover());}get yAlign(){return this.verticalAlign;}set yAlign(e){this.verticalAlign=e;}get forceAlignment(){return this._forceAlignment;}set forceAlignment(e){let t=$n(e);this._forceAlignment!==t&&(this._forceAlignment=t,this._anchoringService.repositionPopover());}get lockAlignment(){return this._lockAlignment;}set lockAlignment(e){let t=$n(e);this._lockAlignment!==t&&(this._lockAlignment=$n(e),this._anchoringService.repositionPopover());}get autoFocus(){return this._autoFocus&&this._autoFocusOverride;}set autoFocus(e){this._autoFocus=$n(e);}get restoreFocus(){return this._restoreFocus&&this._restoreFocusOverride;}set restoreFocus(e){this._restoreFocus=$n(e);}get scrollStrategy(){return this._scrollStrategy;}
142set scrollStrategy(e){this._validateScrollStrategy(e),this._scrollStrategy!==e&&(this._scrollStrategy=e,this._anchoringService.updatePopoverConfig());}get hasBackdrop(){return this._hasBackdrop;}set hasBackdrop(e){this._hasBackdrop=$n(e);}get interactiveClose(){return this._interactiveClose;}set interactiveClose(e){this._interactiveClose=$n(e);}get openTransition(){return this._openTransition;}set openTransition(e){e&&(this._openTransition=e);}get closeTransition(){return this._closeTransition;}set closeTransition(e){e&&(this._closeTransition=e);}get openAnimationStartAtScale(){return this._openAnimationStartAtScale;}set openAnimationStartAtScale(e){let t=Gi(e);isNaN(t)||(this._openAnimationStartAtScale=t);}get closeAnimationEndAtScale(){return this._closeAnimationEndAtScale;}set closeAnimationEndAtScale(e){let t=Gi(e);isNaN(t)||(this._closeAnimationEndAtScale=t);}ngOnInit(){this._setAlignmentClasses();}open(e={}){if(this._anchor){this._anchoringService.openPopover(e);return;}throw Qx();}close(e){this._anchoringService.closePopover(e);}toggle(){this._anchoringService.togglePopover();}realign(){this._anchoringService.realignPopoverToAnchor();}isOpen(){return this._open;}setCustomAnchor(e,t){this._anchor=t,this._anchoringService.anchor(this,e,t);}get state(){return this._state;}get params(){return{openTransition:this.openTransition,closeTransition:this.closeTransition,startAtScale:this.openAnimationStartAtScale,endAtScale:this.closeAnimationEndAtScale};}_onAnimationDone(e){let t=e==null?void 0:e.toState;t==="enter"?(this._trapFocus(),this.afterOpen.emit()):(t==="exit"||t==="void")&&(this._restoreFocusAndDestroyTrap(),this.afterClose.emit());}_startExitAnimation(){this._state="exit";}_setAlignmentClasses(e=this.horizontalAlign,t=this.verticalAlign){this._classList["sat-popover-before"]=e==="before"||e==="end",this._classList["sat-popover-after"]=e==="after"||e==="start",this._classList["sat-popover-above"]=t==="above"||t==="end",this._classList["sat-popover-below"]=t==="below"||t==="start",this._classList["sat-popover-center"]=e==="center"||t==="center";}_trapFocus(){this._savePreviouslyFocusedElement(),this._focusTrapElement&&(!this._focusTrap&&this._focusTrapElement&&(this._focusTrap=this._focusTrapFactory.create(this._focusTrapElement.nativeElement)),this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady());}_restoreFocusAndDestroyTrap(){let e=this._previouslyFocusedElement;e&&"focus"in e&&this.restoreFocus&&e.focus(),this._previouslyFocusedElement=void 0,this._focusTrap&&(this._focusTrap.destroy(),this._focusTrap=void 0);}_savePreviouslyFocusedElement(){this._document&&(this._previouslyFocusedElement=this._document.activeElement);}_validateHorizontalAlign(e){if(Vu.indexOf(e)===-1)throw Yx(e);}_validateVerticalAlign(e){if(Ru.indexOf(e)===-1)throw Kx(e);}_validateScrollStrategy(e){if(Au.indexOf(e)===-1)throw Zx(e);}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275cmp",F({type:n,selectors:[["sat-popover"]],viewQuery:function(t,r){if(t&1&&_e(fo,7)(jx,5),t&2){let a;ee(a=te())&&(r._templateRef=a.first),ee(a=te())&&(r._focusTrapElement=a.first);}},inputs:{anchor:"anchor",horizontalAlign:"horizontalAlign",xAlign:"xAlign",verticalAlign:"verticalAlign",yAlign:"yAlign",forceAlignment:"forceAlignment",lockAlignment:"lockAlignment",autoFocus:"autoFocus",restoreFocus:"restoreFocus",scrollStrategy:"scrollStrategy",hasBackdrop:"hasBackdrop",interactiveClose:"interactiveClose",openTransition:"openTransition",closeTransition:"closeTransition",openAnimationStartAtScale:"openAnimationStartAtScale",closeAnimationEndAtScale:"closeAnimationEndAtScale",backdropClass:"backdropClass",panelClass:"panelClass"},outputs:{opened:"opened",closed:"closed",afterOpen:"afterOpen",afterClose:"afterClose",backdropClicked:"backdropClicked",overlayKeydown:"overlayKeydown"},features:[ot([Du])],ngContentSelectors:$x,decls:1,vars:0,consts:[["focusTrapElement",""],[1,"sat-popover-container",3,"ngClass"]],template:function(t,r){t&1&&(Zt(),qt(0,Ux,3,5,"ng-template"));},dependencies:[Zi,K],styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%;z-index:1000}.cdk-overlay-backdrop{position:absolute;inset:0;pointer-events:auto;-webkit-tap-highlight-color:transparent;opacity:0;touch-action:manipulation;z-index:1000;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors:active){.cdk-overlay-backdrop-showing{opacity:.6}}.cdk-overlay-dark-backdrop{background:#00000052}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px;z-index:1000}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.cdk-overlay-popover{background:none;border:none;padding:0;outline:0;overflow:visible;position:fixed;pointer-events:none;white-space:normal;color:inherit;text-decoration:none;width:100%;height:100%;inset:0 auto auto 0}.cdk-overlay-popover::backdrop{display:none}.cdk-overlay-popover .cdk-overlay-backdrop{position:fixed;z-index:auto}.sat-popover-container.sat-popover-before.sat-popover-above{transform-origin:right bottom}[dir=rtl] .sat-popover-container.sat-popover-before.sat-popover-above{transform-origin:left bottom}.sat-popover-container.sat-popover-before.sat-popover-center{transform-origin:right center}[dir=rtl] .sat-popover-container.sat-popover-before.sat-popover-center{transform-origin:left center}.sat-popover-container.sat-popover-before.sat-popover-below{transform-origin:right top}[dir=rtl] .sat-popover-container.sat-popover-before.sat-popover-below{transform-origin:left top}.sat-popover-container.sat-popover-center.sat-popover-above{transform-origin:center bottom}.sat-popover-container.sat-popover-center.sat-popover-below{transform-origin:center top}.sat-popover-container.sat-popover-after.sat-popover-above{transform-origin:left bottom}[dir=rtl] .sat-popover-container.sat-popover-after.sat-popover-above{transform-origin:right bottom}.sat-popover-container.sat-popover-after.sat-popover-center{transform-origin:left center}[dir=rtl] .sat-popover-container.sat-popover-after.sat-popover-center{transform-origin:right center}.sat-popover-container.sat-popover-after.sat-popover-below{transform-origin:left top}[dir=rtl] .sat-popover-container.sat-popover-after.sat-popover-below{transform-origin:right top}
143`],encapsulation:2,data:{animation:[qx]}}));let o=n;return o;})();var Lu=(()=>{let n=class n{};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275mod",it({type:n})),u(n,"\u0275inj",nt({providers:[{provide:us,useValue:"200ms cubic-bezier(0.25, 0.8, 0.25, 1)"},qr()],imports:[Zi,cl,pl,$i,ms,$i]}));let o=n;return o;})();var cv=["userInfoCardPopover"];function lv(o,n){o&1&&(s(0,"div",3)(1,"div",4)(2,"div",5),M(3,"div",6)(4,"div",7),c(),M(5,"div",8)(6,"div",9)(7,"div",10),c(),M(8,"div",11),c());}function pv(o,n){if(o&1){let i=y();
143s(0,"div",26),f("click",function(){b(i);let t=d(2);return P(t.toChat());}),M(1,"div",27),c();}}function dv(o,n){if(o&1&&(s(0,"span",18),g(1),c()),o&2){let i=n.$implicit,e=d(2);C("ngClass",i),l(),A(e.transFormRoleName(i));}}function gv(o,n){if(o&1&&(s(0,"span",28),g(1),c()),o&2){let i=d(3);l(),V("\u77E5\u8BC6\u53F7:\xA0",i.userInfoData.member.unique_id,";\xA0");}}function uv(o,n){if(o&1&&(s(0,"span",29),g(1),c()),o&2){let i=d(3);l(),V("\u6210\u5458\u7F16\u53F7:\xA0",i.userInfoData.member.number);}}function mv(o,n){if(o&1&&(s(0,"div",19),h(1,gv,2,1,"span",28),h(2,uv,2,1,"span",29),c()),o&2){let i=d(2);l(),_(i.userInfoData.member.unique_id?1:-1),l(),_(i.userInfoData.member.number?2:-1);}}function hv(o,n){if(o&1&&(s(0,"div",23),g(1," \u9080\u8BF7"),s(2,"span"),g(3),c(),g(4,"\u4EBA "),c()),o&2){let i=d(2);l(3),A(i.userInfoData.invitees_count);}}function _v(o,n){if(o&1&&(s(0,"div",31),g(1),c()),o&2){let i=d(3);l(),V(" \u7EED\u671F\xA0",i.userInfoData.renewal_count,"\xA0\u6B21 ");}}function fv(o,n){if(o&1&&(s(0,"div",24),M(1,"div",30),h(2,_v,2,1,"div",31),c()),o&2){let i=d(2);l(),C("innerHTML",i.JoinInfo,sr),l(),_(i.userInfoData.renewal_count?2:-1);}}function Cv(o,n){if(o&1&&(s(0,"div",25),M(1,"div",32),c()),o&2){let i=d(2);l(),C("innerHTML",i.instroduction,sr);}}function xv(o,n){if(o&1){let i=y();s(0,"main")(1,"div",5),M(2,"img",12),s(3,"div",13),h(4,pv,2,0,"div",14),s(5,"div",15),f("click",function(){b(i);let t=d();return P(t.toFootprint());}),g(6),c()()(),s(7,"div",16),M(8,"span",17),B(9,dv,2,2,"span",18,Y),c(),h(11,mv,3,2,"div",19),s(12,"div",20)(13,"div",21),g(14," \u53D1\u5E03"),s(15,"span"),g(16),c(),g(17,"\u4E3B\u9898; "),c(),s(18,"div",22),g(19," \u83B7\u8D5E"),s(20,"span"),g(21),c(),g(22,"; "),c(),h(23,hv,5,1,"div",23),c(),h(24,fv,3,2,"div",24),c(),h(25,Cv,2,1,"div",25);}if(o&2){let i=d();l(2),C("src",i.userInfoData.member.avatar_url,se),l(2),_(i.showChatEnter?4:-1),l(2),V(" ",i.isSelf?"\u8FDB\u5165\u6211\u7684\u8DB3\u8FF9":"\u67E5\u770B\u4ED6\u7684\u8DB3\u8FF9"," "),l(2),C("parseName",i.transForm(i.userInfoData.member)),l(),N(i.targetUserRoles),l(2),_(i.userInfoData.member.unique_id||i.userInfoData.member.number?11:-1),l(5),A(i.userInfoData.topics_count),l(5),A(i.userInfoData.liked_count),l(2),_(i.userInfoData.invitees_count?23:-1),l(),_(i.targetUserRoles.includes("owner")?-1:24),l(),_(i.instroduction?25:-1);}}var $o=(()=>{let n=class n{constructor(e,t,r){this.userInfoCardService=e,this.indexService=t,this.groupListService=r,this.horizontalAlign="start",this.verticalAlign="below",this.isLoading=!0,this.isFirstOpen=!0,this.closeTimer=null,this.delayTimer=200,this.subscriptions=[],this.targetUserRoles=[],this.isSelf=!1;}ngOnInit(){this.doSubScrible();}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}open(){clearTimeout(this.delayTimer),this.closeTimer&&clearTimeout(this.closeTimer),this.delayTimer=setTimeout(()=>{this.excuteLogic();},400);}excuteLogic(){if(this.userInfoCardPopover.open(),this.isFirstOpen){this.isFirstOpen=!1;let e=this.indexService.getSelfInfo("user_id");this.targetUserRoles=this.userInfoCardService.getUserRoleInGroup(this.target_user_id),this.isSelf=e===this.target_user_id,this.userInfoCardService.getMemberSummary(this.groupListService.getSelectedGroup().group_id,this.target_user_id);}}close(){clearTimeout(this.delayTimer),this.closeTimer=setTimeout(()=>{this.userInfoCardPopover.close(),this.closeTimer=void 0;},250);}doSubScrible(){let e=this.userInfoCardService.memberSummary$.subscribe(t=>{this.userInfoData=t,this.isLoading=!1;});}transFormRoleName(e){switch(e){case"owner":return"\u661F\u4E3B";case"admin":return"\u7BA1\u7406\u5458";case"partner":return"\u5408\u4F19\u4EBA";case"guest":return"\u5609\u5BBE";case"volunteer":return"\u5FD7\u613F\u8005";}}get JoinInfo(){let e="";return this.userInfoData.paid?e+=`\u4ED8\u8D39\u52A0\u5165&nbsp;${this.userInfoData.joined_days}&nbsp;\u5929`:e+=`\u514D\u8D39\u52A0\u5165&nbsp;${this.userInfoData.joined_days}&nbsp;\u5929`,this.userInfoData.member.expired_time&&(new Date(this.userInfoData.member.expired_time).getTime()===9999999999999?e+=",&nbsp;\u6709\u6548\u671F: \u6C38\u4E45":e+=`,&nbsp;\u6709\u6548\u671F\u81F3 ${Fe(ge(this.userInfoData.member.expired_time),"yyyy/MM/dd")}`),e;}get instroduction(){let{introduction:e,status:t}=this.userInfoData.member;return t==="exited"?"\u8BE5\u7528\u6237\u4E0D\u5728\u661F\u7403\u5185":t==="deleted"?"\u8BE5\u7528\u6237\u5DF2\u6CE8\u9500":e?`<span>\u4E2A\u4EBA\u4ECB\u7ECD: </span>${e}`:"";}get showChatEnter(){return!this.isSelf;}toFootprint(){ne(`footprint/${this.target_user_id}?group_id=${this.groupListService.getSelectedGroup().group_id}`);}toChat(){ne(`/chat/${this.target_user_id}?group_id=${this.groupListService.getSelectedGroup().group_id}`);}transForm(e){e=JSON.parse(JSON.stringify(e));let t=localStorage.getItem("user_id");return JSON.parse(localStorage.getItem(`remarks_${t}
143`)).forEach(a=>{a.user_id===e.user_id&&(e.remark=a.remarks);}),e;}};n.ɵfac=function(t){return new(t||n)(O(oi),O(q),O(ce));},n.ɵcmp=F({type:n,selectors:[["app-user-info-card"]],viewQuery:function(t,r){if(t&1&&_e(cv,5),t&2){let a;ee(a=te())&&(r.userInfoCardPopover=a.first);}},inputs:{anchor:"anchor",horizontalAlign:"horizontalAlign",verticalAlign:"verticalAlign",target_user_id:"target_user_id"},standalone:!1,features:[ot([oi])],decls:5,vars:4,consts:[["userInfoCardPopover",""],[3,"anchor","horizontalAlign","verticalAlign"],[1,"user-info-card",3,"mouseenter","mouseleave"],[1,"skeleton"],[1,"main"],[1,"head"],[1,"img","loading"],[1,"watch-footprint","loading"],[1,"name-role-info","loading"],[1,"knowledge-member-number","loading"],[1,"topic-liked-invite","loading"],[1,"self-instruction","loading"],["alt","",1,"avatar",3,"src"],[1,"handle-icon"],[1,"chat"],[1,"watch-footprint",3,"click"],[1,"name-role-info"],[1,"name",3,"parseName"],[1,"role",3,"ngClass"],[1,"knowledge-member-number"],[1,"topic-liked-invite"],[1,"topic"],[1,"liked"],[1,"invite"],[1,"join-group-info"],[1,"self-introduction"],[1,"chat",3,"click"],[1,"chat-icon"],[1,"knowledge-number"],[1,"member-number"],[1,"join-info",3,"innerHTML"],[1,"renewal"],[1,"self-introduction-content",3,"innerHTML"]],template:function(t,r){t&1&&(s(0,"sat-popover",1,0)(2,"div",2),f("mouseenter",function(){return r.open();})("mouseleave",function(){return r.close();}),h(3,lv,9,0,"div",3)(4,xv,26,10),c()()),t&2&&(C("anchor",r.anchor)("horizontalAlign",r.horizontalAlign)("verticalAlign",r.verticalAlign),l(3),_(r.isLoading?3:4));},dependencies:[K,xt,ms],styles:['.user-info-card[_ngcontent-%COMP%]{width:360px;background:var(--dweb-bg-panel);box-shadow:0 20px 40px #0000001a;border-radius:4px;border:1px solid rgba(0,0,0,.05);padding-top:16px}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]{padding:0 24px}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{margin-bottom:12px;display:flex;justify-content:space-between;align-items:center}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:50%;overflow:hidden;object-fit:contain}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .handle-icon[_ngcontent-%COMP%]{display:flex}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .handle-icon[_ngcontent-%COMP%]   .chat[_ngcontent-%COMP%]{width:28px;height:28px;margin-right:12px;padding:5px;border:1px solid rgba(197,198,203,.48);box-sizing:border-box;border-radius:50%;cursor:pointer}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .handle-icon[_ngcontent-%COMP%]   .chat[_ngcontent-%COMP%]   .chat-icon[_ngcontent-%COMP%]{width:100%;height:100%;background:url("./media/chat-icon-KF2PWRFM.svg") no-repeat center;background-size:100%}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .handle-icon[_ngcontent-%COMP%]   .watch-footprint[_ngcontent-%COMP%]{border-radius:14px;padding:0 11px;border:1px solid rgba(197,198,203,.48);font-family:PingFangSC,PingFang SC;font-weight:400;font-size:12px;height:28px;line-height:28px;box-sizing:border-box;color:var(--dweb-text-secondary);display:flex;justify-content:center;align-items:center;cursor:pointer}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .handle-icon[_ngcontent-%COMP%]   .watch-footprint[_ngcontent-%COMP%]:hover{background-color:#c5c6cb1a}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .name-role-info[_ngcontent-%COMP%]{margin-bottom:8px;display:flex;align-items:center}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .name-role-info[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-right:4px}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .name-role-info[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-family:PingFangSC,PingFang SC;font-weight:500;font-size:14px;color:var(--dweb-text-primary);font-style:normal;margin-right:2px}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .name-role-info[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]:not(:last-child){margin-right:6px}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .name-role-info[_ngcontent-%COMP%]   .role[_ngcontent-%COMP%]{padding:0 4px;height:16px;border-radius:2px;width:22px;font-weight:400;font-size:12px;line-height:16px;width:fit-content}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .name-role-info[_ngcontent-%COMP%]   .role.owner[_ngcontent-%COMP%]{background:var(--dweb-warning);color:#fff}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .name-role-info[_ngcontent-%COMP%]   .role.guest[_ngcontent-%COMP%]{background-color:#b8c5cf;color:#fff}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .name-role-info[_ngcontent-%COMP%]   .role.admin[_ngcontent-%COMP%]{background-color:var(--dweb-bg-canvas);color:var(--dweb-text-muted)}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .name-role-info[_ngcontent-%COMP%]   .role.partner[_ngcontent-%COMP%]{background-color:var(--dweb-bg-canvas);color:var(--dweb-text-muted)}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .knowledge-member-number[_ngcontent-%COMP%]{font-family:PingFangSC,PingFang SC;font-weight:400;font-size:12px;color:var(--dweb-text-faint);display:flex;margin-bottom:8px}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .knowledge-member-number[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-right:5px}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .to
143pic-liked-invite[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:13px;color:var(--dweb-text-muted);margin-bottom:12px}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .topic-liked-invite[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-right:8px}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .topic-liked-invite[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--dweb-text-primary);margin:0 4px}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .join-group-info[_ngcontent-%COMP%]{display:flex;margin-bottom:16px}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .join-group-info[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-right:6px}.user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .join-group-info[_ngcontent-%COMP%]   .join-info[_ngcontent-%COMP%], .user-info-card[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .join-group-info[_ngcontent-%COMP%]   .renewal[_ngcontent-%COMP%]{padding:2px 4px;height:24px;box-sizing:border-box;background:#fda9561f;border-radius:3px;line-height:20px;font-family:PingFangSC,PingFang SC;font-weight:400;font-size:12px;color:var(--dweb-copper)}.user-info-card[_ngcontent-%COMP%]   .self-introduction[_ngcontent-%COMP%]{margin-top:16px;background:#f0f3f83d;border-radius:0 0 4px 4px;padding:20px 24px;width:100%;box-sizing:border-box}.user-info-card[_ngcontent-%COMP%]   .self-introduction[_ngcontent-%COMP%]   .self-introduction-content[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;color:var(--dweb-text-muted)}.user-info-card[_ngcontent-%COMP%]   .self-introduction[_ngcontent-%COMP%]   .self-introduction-content[_ngcontent-%COMP%]     span{color:var(--dweb-text-primary)}.skeleton[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]{padding:0 24px}.skeleton[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:12px}.skeleton[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .img[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:50%}.skeleton[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .watch-footprint[_ngcontent-%COMP%]{width:96px;height:28px;border-radius:14px}.skeleton[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .name-role-info[_ngcontent-%COMP%]{width:150px;height:18px;margin-bottom:8px}.skeleton[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .knowledge-member-number[_ngcontent-%COMP%]{width:200px;height:18px;margin-bottom:12px}.skeleton[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .topic-liked-invite[_ngcontent-%COMP%]{width:250px;height:18px;margin-bottom:16px}.skeleton[_ngcontent-%COMP%]   .self-instruction[_ngcontent-%COMP%]{width:360px;height:80px;border-radius:0 0 4px 4px}.skeleton[_ngcontent-%COMP%]   .loading[_ngcontent-%COMP%]{animation-duration:2s;animation-fill-mode:forwards;animation-iteration-count:1;animation-name:placeHolderShimmer;animation-timing-function:linear;background-repeat:no-repeat;background:var(--dweb-bg-canvas, #F0F3F8);background:linear-gradient(to right,var(--dweb-bg-canvas, #F0F3F8) 8%,#edeef1 18%,var(--dweb-bg-canvas, #F0F3F8) 33%)}html[data-theme=dark][_nghost-%COMP%]   .skeleton[_ngcontent-%COMP%]   .loading[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .skeleton[_ngcontent-%COMP%]   .loading[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_dwebUserCardSkeletonShimmer 1.6s linear infinite;background:var(--dweb-skeleton-base);background-image:linear-gradient(90deg,var(--dweb-skeleton-base) 0%,var(--dweb-skeleton-base) 42%,var(--dweb-skeleton-highlight) 50%,var(--dweb-skeleton-base) 58%,var(--dweb-skeleton-base) 100%);background-repeat:no-repeat;background-size:220% 100%}@keyframes _ngcontent-%COMP%_dwebUserCardSkeletonShimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@media(prefers-reduced-motion:reduce){.skeleton[_ngcontent-%COMP%]   .loading[_ngcontent-%COMP%]{animation:none;background:var(--dweb-skeleton-base)}}']});let o=n;return o;})();var vv=["input"],bv=["popover"],Pv=["*"],Mv=["name","slot"],Ov=o=>({selected:o});function wv(o,n){if(o&1){let i=y();
143s(0,"img",21,1),$(2,"transformTopicAvatar"),f("mouseenter",function(){b(i);let t=ct(1),r=d();return P(r.showPopover(t));})("mouseleave",function(){b(i),d();let t=ct(6);return P(t.close());}),c();}if(o&2){let i=d();C("src",Z(2,1,i.topicData),se);}}function yv(o,n){if(o&1){let i=y();s(0,"img",22,1),$(2,"transformTopicAvatar"),f("click",function(){b(i);let t=d();return P(t.toFootprint());}),c();}if(o&2){let i=d();C("src",Z(2,1,i.topicData),se);}}function kv(o,n){if(o&1){let i=y();s(0,"div",23,2),$(2,"transformUserNameClass"),$(3,"transformOwner"),f("mouseenter",function(){b(i);let t=ct(1),r=d();return P(r.showPopover(t));})("mouseleave",function(){b(i),d();let t=ct(6);return P(t.close());}),c();}if(o&2){let i=d();C("ngClass",Pe(2,2,i.topicData,i.currentGroup))("parseName",Z(3,5,i.topicData));}}function Sv(o,n){if(o&1){let i=y();s(0,"div",24),$(1,"transformUserNameClass"),$(2,"transformOwner"),f("click",function(){b(i);let t=d();return P(t.toFootprint());}),c();}if(o&2){let i=d();C("ngClass",Pe(1,2,i.topicData,i.currentGroup))("parseName",Z(2,5,i.topicData));}}function Tv(o,n){if(o&1){let i=y();s(0,"span",25),f("click",function(){b(i);let t=d();return P(t.deleteSelfVisible=!0);}),g(1,"\u5220\u9664"),c();}}function Ev(o,n){if(o&1){let i=y();s(0,"span",26),f("click",function(){b(i);let t=d();return P(t.silencedTipDialogVisible=!0);}),g(1,"\u4EC5\u63D0\u9192\u63D0\u95EE\u8005"),c();}}function Dv(o,n){if(o&1){let i=y();s(0,"span",27),f("click",function(){b(i);let t=d();return P(t.readCountVisible=!0);}),g(1),c();}if(o&2){let i=d();l(),A(i.readersCount);}}function Iv(o,n){if(o&1){let i=y();s(0,"span",28),f("click",function(){b(i);let t=d();return P(t.copyUserAgent(t.topicData.user_agent));}),g(1),c();}if(o&2){let i=d();C("title",i.topicData.user_agent),l(),A(i.topicData.user_agent);}}function Fv(o,n){o&1&&M(0,"div",16);}function Av(o,n){if(o&1){let i=y();s(0,"span",33),f("click",function(){b(i);let t=d(3);return P(t.showReviewDialog());}),g(1,"\u5BA1\u6838\u4E2D"),c();}}function Vv(o,n){o&1&&(s(0,"span",31),g(1,"\u89C6\u9891\u8F6C\u7801\u4E2D"),c());}function Rv(o,n){if(o&1){let i=y();s(0,"span",34),f("click",function(){b(i);let t=d(3);return P(t.showFailVideoDialog());}),g(1,"\u8F6C\u7801\u5931\u8D25"),M(2,"i"),c();}}function Lv(o,n){if(o&1){let i=y();s(0,"div",41),f("click",function(){b(i);let t=d(4);return P(t.askAI());}),M(1,"span",42),s(2,"span",43),g(3,"\u4E3A\u6211\u603B\u7ED3"),c()();}}function Bv(o,n){if(o&1){let i=y();s(0,"div",44),f("click",function(t){b(i);let r=d(4);return P(r.showColumnDialog(t));}),M(1,"i"),s(2,"span"),g(3,"\u6536\u8FDB\u4E13\u680F"),c()();}}function Nv(o,n){if(o&1){let i=y();s(0,"app-topic-operation",45),f("operation-emitter",function(t){b(i);let r=d(4);return P(r.watchOperationStatus(t));})("handle-edit",function(){b(i);let t=d(4);return P(t.editTitle());}),c();}if(o&2){let i=d(4);C("topic",i.topicData)("index",i.index);}}function zv(o,n){if(o&1){let i=y();s(0,"app-add-topic-tag",46),f("tag-emitter",function(t){b(i);let r=d(4);return P(r.watchOperationStatus(t));}),c();}if(o&2){let i=d(4);C("topic",i.topicData);}}function Gv(o,n){if(o&1){let i=y();s(0,"app-columns-dialog",47),f("column-emitter",function(t){b(i);let r=d(4);return P(r.watchOperationStatus(t));}),c();}if(o&2){let i=d(4);C("topic",i.topicData);}}function jv(o,n){if(o&1){let i=y();s(0,"app-edit-title-dialog",48),f("handle-edit-cancel",function(){b(i);let t=d(4);return P(t.closeEditTitle());})("handle-edit-confirm",function(t){b(i);let r=d(4);return P(r.changeTitle(t));}),c();}if(o&2){let i=d(4);C("title-input",i.titleInput);}}function $v(o,n){if(o&1){let i=y();h(0,Lv,4,0,"div",35),h(1,Bv,4,0,"div",36),s(2,"div",37),f("click",function(t){b(i);let r=d(3);return P(r.showTopicOperation(t));}),c(),h(3,Nv,1,2,"app-topic-operation",38),h(4,zv,1,1,"app-add-topic-tag",39),h(5,Gv,1,1,"app-columns-dialog",39),h(6,jv,1,1,"app-edit-title-dialog",40);}if(o&2){let i=d(3);_(i.aiVisible?0:-1),l(),_(i.columnVisible?1:-1),l(),C("ngClass",R(7,Ov,i.topicData.showOperation)),l(),_(i.topicData.showOperation?3:-1),l(),_(i.topicData.showAddTag?4:-1),l(),_(i.topicData.showColumn?5:-1),l(),_(i.topicData.showEditTitle?6:-1);}}function Hv(o,n){if(o&1&&(s(0,"div",29),h(1,Av,2,0,"span",30),h(2,Vv,2,0,"span",31),h(3,Rv,3,0,"span",32),h(4,$v,7,9),c()),o&2){let i=d(2);l(),_(i.topicData.process_status==="in_review"?1:-1),l(),_(i.topicData.process_status==="transcoding"?2:-1),l(),_(i.topicData.process_status==="transcode_failed"?3:-1),l(),_(!i.topicData.fromModify&&!i.topicData.process_status&&i.mode!=="scheduled"?4:-1);}}function Uv(o,n){if(o&1&&(s(0,"div",17),h(1,Hv,5,4,"div",29),c()),o&2){let i=d();l(),_(i.mode!=="single"?1:-1);}}function qv(o,n){if(o&1){let i=y();s(0,"app-dialog",49),f("dialog-confirm",function(){b(i);let t=d();return P(t.deleteTopic());})("dialog-cancel",function(){b(i);let t=d();return P(t.deleteSelfVisible=!1);}),s(1,"div"),g(2),c()();}if(o&2){let i=d();l(2),V(" \u786E\u5B9A\u5220\u9664\u8BE5",i.topicData.answer?"\u56DE\u7B54":i.topicData.talk.article?"\u6587\u7AE0":"\u4E3B\u9898","\uFF1F ");}}function Qv(o,n){if(o&1){let i=y();s(0,"app-dialog",50),f("dialog-confirm",function(){b(i);let t=d();return P(t.silencedTipDialogVisible=!1);}),s(1,"div"),g(2," \u4EC5\u63D0\u9192\u63D0\u95EE\u8005\uFF0C\u4E0D\u5C55\u793A\u5728\u661F\u7403\u65F6\u95F4\u7EBF\uFF0C\u5176\u4ED6\u7528\u6237\u53EF\u4EE5\u901A\u8FC7\u641C"),M(3,"br"),g(4,"\u7D22\u6216\u4ECE\u4F60\u56DE\u7B54\u7684\u95EE\u9898\u5217\u8868\u4E2D\u67E5\u770B "),c()();}}function Wv(o,n){if(o&1){let i=y();s(0,"app-dialog",51),f("dialog-confirm",function(){b(i);let t=d();return P(t.readCountVisible=!1);}),s(1,"div",52),g(2),c()();}if(o&2){let i=d();C("title",i.topicData.readers_count>0?"\u5173\u4E8E\u9605\u8BFB\u4EBA\u6570":"\u5173\u4E8E\u9605\u8BFB\u6B21\u6570"),l(2),A(i.readerCountTip);}}
143var pn=(()=>{let n=class n{get isShowUserCard(){return!this.main_content_show_user_card_prpover||this.topicData.type==="q&a"&&!this.topicData.answered&&this.topicData.question.anonymous?!1:this.TargetUserId&&this.userInfoCardService.isShowUserCard(this.userId,this.TargetUserId);}get readersCount(){return this.topicData.readers_count>0?`\u9605\u8BFB\u4EBA\u6570 ${this.topicData.readers_count}`:`\u9605\u8BFB\u6B21\u6570 ${this.topicData.reading_count||0}`;}get readerCountTip(){return this.topicData.readers_count>0?`\u4EC5\u8BB0\u5F55\u53D1\u8868\u4E3B\u9898\u540E 30 \u5929\u5185\u8BBF\u95EE\u8FC7\u4E3B\u9898\u7684\u2F08\u6570
144\uFF08\u542B\u661F\u7403\u5916\u8BBF\u95EE\u7684\u7528\u6237\u6570\uFF09`:`2020 \u5E74 7 \u6708 1 \u65E5\u524D\u7684\u4E3B\u9898\u9605\u8BFB\u6570\uFF0C\u4ECD\u5C55\u793A\u4E3A\u9605\u8BFB\u6B21\u6570\uFF0C
145\u5E76\u4E8E 2020 \u5E74 7 \u6708 31 \u65E5\u505C\u6B62\u66F4\u65B0\u3002`;}get TargetUserId(){var e,t,r,a,p,m,v,x,w,k;if(this.topicData.type==="q&a")return this.topicData.answered?(t=(e=this.topicData.answer)==null?void 0:e.owner)==null?void 0:t.user_id:(a=(r=this.topicData.question)==null?void 0:r.owner)==null?void 0:a.user_id;if(this.topicData.type==="talk")return(m=(p=this.topicData.talk)==null?void 0:p.owner)==null?void 0:m.user_id;if(this.topicData.type==="task")return(x=(v=this.topicData.task)==null?void 0:v.owner)==null?void 0:x.user_id;if(this.topicData.type==="solution")return(k=(w=this.topicData.solution)==null?void 0:w.owner)==null?void 0:k.user_id;}get digestFlagVisible(){return this.topicData.process_status||this.mode==="pure"?!1:this.topicData.digested;}get silencedTipVisible(){return!this.topicData.process_status&&this.topicData.type==="q&a"&&this.topicData.answered&&this.topicData.silenced;}get hasAnswer(){return this.topicData.type==="q&a"?this.topicData.answer:!0;}get columnVisible(){return this.indexService.hasColumn&&this.hasAnswer&&!location.href.includes("/columns");}constructor(e,t,r,a,p,m,v,x,w,k,S,E){this.indexService=e,this.topicService=t,this.message=r,this.mainService=a,this.allTagsService=p,this.groupService=m,this.notifyService=v,this.http=x,this.userInfoCardService=w,this.document=k,this.main_content_show_user_card_prpover=S,this.show_ai_enter_button=E,this.handleDialog=new H(),this.subscriptions=[],this.failVideoDialogVisible=!1,this.deleteSelfVisible=!1,this.silencedTipDialogVisible=!1,this.hasColumn=!1,this.titleInput="",this.topicText={talk:"talk",task:"task",solution:"solution","q&a":"question"},this.deleteVisible=!1,this.readCountVisible=!1,this.readCountLabelVisible=!1;}ngOnInit(){this.currentList=this.indexService.currentList,this.userId=this.indexService.getSelfInfo("user_id"),this.topicOwnerId=this.getTopicOwnerInfo(this.topicData,"user_id"),this.hasColumn=this.indexService.hasColumn;let e=this.topicService.closePanel$.subscribe(r=>{r==="operation"?this.topicData.showOperation=!1:r==="addTag"||r==="filter"?this.topicData.showAddTag=!1:r==="column"&&(this.topicData.showColumn=!1);}),t=this.indexService.group$.subscribe(r=>{if(!this.mode){let a=this.checkUserRole(this.userId,r);this.readCountLabelVisible=a;}});if(!this.mode&&!location.href.includes("/tags/")&&!location.href.includes("/dynamics")){let r=this.checkUserRole(this.userId,this.groupService.getSelectedGroup());this.readCountLabelVisible=r;}else if(this.mode==="notify"){let r=this.checkUserRole(this.userId,this.currentGroup);this.readCountLabelVisible=r;}this.subscriptions.push(e,t),this.checkButtonStatus();}get currentGroup(){let e=this.topicData.group.group_id,t=this.notifyService.getGroupInfo(),r=this.indexService.getTargetGroup(!0,!1);return t&&e===t.group_id?t:r;}get aiVisible(){let e=this.show_ai_enter_button==="groupTopicView";return this.currentGroup.policies.enable_ai_assistant&&e;}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}showTopicOperation(e){if(this.topicData.showAddTag=!1,this.topicData.showColumn=!1,this.topicData.showOperation){this.topicData.showOperation=!1,e.stopPropagation();return;}this.topicData.openType==="tags"?this.allTagsService.topicList=this.allTagsService.topicList.map((t,r)=>(this.index===r?t.showOperation=!0:t.showOperation=!1,t)):this.mainService.topicList=this.mainService.topicList.map((t,r)=>(this.index===r?(t.showOperation=!0,t.showAddTag=!1):t.showOperation=!1,t)),this.topicService.closePanel("filter"),this.topicService.closePanel("column"),this.topicData.openType&&(this.topicData.showOperation=!0,e.stopPropagation()),e.stopPropagation();}checkButtonStatus(){this.mode==="scheduled"&&(this.deleteVisible=!0);}checkUserRole(e,t){let r=!1,a=t.admin_ids?t.admin_ids:[];return e===t.owner.user_id&&(r=!0),a.indexOf(e)!==-1&&(r=!0),r;}getTopicOwnerInfo(e,t){let r;return e.type==="q&a"?e.answer?r=e.answer.owner[t]:r=e.question.owner?e.question.owner[t]:"":r=e[e.type].owner[t],r;}copyUserAgent(e){let t=this.document.getElementById("copy-input");t.value=e,t.select(),this.document.execCommand("copy"),this.message.info({content:"user-agent\u5DF2\u590
145D\u5236",type:"success"});}watchOperationStatus(e){this.currentList==="topicFlow"?this.mainService.topicList=this.mainService.topicList.map(t=>(t.showOperation=!1,t.showAddTag=!1,t.showColumn=!1,this.topicData.showOperation=!1,t)):this.currentList==="tagTopics"?this.allTagsService.topicList=this.allTagsService.topicList.map(t=>(t.showOperation=!1,t.showAddTag=!1,t.showColumn=!1,t)):this.topicData.showOperation=!1;}showReviewDialog(){this.handleDialog.emit("review");}showFailVideoDialog(){this.handleDialog.emit("video");}deleteTopic(e={reason:"",desc:""}){this.mode==="scheduled"?this.handleDialog.emit({name:"delScheduledJob",index:this.index}):this.topicService.deleteTopic(this.topicData,this.index,e.reason,e.desc),this.deleteSelfVisible=!1;}toFootprint(){let e;this.topicData.type==="q&a"?this.topicData.answer?e=this.topicData.answer.owner.user_id:e=this.topicData.question.anonymous?0:this.topicData.question.owner.user_id:this.topicData.type==="examination"?e=this.topicData.invitee.user_id:e=this.topicData[this.topicData.type].owner.user_id,e&&!window.location.href.includes("footprint")&&(sessionStorage.setItem("footprint_group_id",String(this.topicData.group.group_id)),ne(`footprint/${e}?group_id=${String(this.topicData.group.group_id)}`));}showColumnDialog(e){if(this.topicData.showColumn){this.topicData.showColumn=!1,e.stopPropagation();return;}this.topicData.openType&&(this.topicData.showColumn=!0,this.topicData.showOperation=!1,this.topicData.showAddTag=!1,e.stopPropagation()),this.topicData.openType==="tags"?this.allTagsService.topicList=this.allTagsService.topicList.map((t,r)=>(this.index===r?t.showColumn=!0:t.showColumn=!1,t)):this.mainService.topicList=this.mainService.topicList.map((t,r)=>(this.index===r?(t.showColumn=!0,t.showOperation=!1,t.showAddTag=!1):t.showColumn=!1,t)),this.topicService.closePanel("filter"),this.topicService.closePanel("operation"),e.stopPropagation();}editTitle(){let e=this.topicData,t=/(<e)[^(<ε)]*(\/>)/g;if(e.type==="talk"&&e.talk.article)this.titleInput=e.talk.article.title.replace(t,"").split(/\n|\r/)[0].substring(0,60);else{let r=this.topicText[e.type];this.titleInput=e.title?e.title.replace(t,"").substring(0,60):e[r].text?e[r].text.replace(t,"").split(/\n|\r/)[0].substring(0,60):"";}this.mainService.topicList=this.mainService.topicList.map((r,a)=>(this.index===a&&(r.showEditTitle=!0,r.showColumn=!1,r.showOperation=!1,r.showAddTag=!1),r));}changeTitle(e){let t=this.titleInput.trim();if(t.length>0||e.length>0){let r={req_data:{title:e?e.trim():t}};this.http.put(j.setTopicTitle(this.topicData.topic_id),r).subscribe(a=>{a.succeeded?(this.message.info({content:"\u4E3B\u9898\u6807\u9898\u5DF2\u4FEE\u6539",type:"success"}),this.topicData.title=a.resp_data.topic.title,this.indexService.getEditTitle({topic_id:this.topicData.topic_id,title:a.resp_data.topic.title}),this.mainService.topicList=this.mainService.topicList.map(p=>(p.topic_id===this.topicData.topic_id&&(p.title=a.resp_data.topic.title),p))):this.http.handleExceptionCode(a,"\u4E3B\u9898\u6807\u9898\u4FEE\u6539\u5931\u8D25"),this.topicData.showEditTitle=!1;});}else this.message.info({content:"\u8BF7\u8F93\u5165\u6807\u9898"});}closeEditTitle(){this.topicData.showEditTitle=!1,this.titleInput="";}showPopover(e){this.anchor=e,setTimeout(()=>{this.popover.open();},0);}askAI(){let t=`/mweb/ai_assistant.html?topic_id=${this.topicData.topic_id}&timestamp=${Date.now()}`;this.show_ai_enter_button==="groupTopicView"&&(t+="&source=GroupView_Topic"),ne(t);}};n.ɵfac=function(t){return new(t||n)(O(q),O(Oe),O(le),O(oe),O(yo),O(ce),O(sn),O(W),O(oi),O(Be),O(Mi,8),O(Zr,8));},n.ɵcmp=F({type:n,selectors:[["app-topic-header"]],viewQuery:function(t,r){if(t&1&&_e(vv,5)(bv,5),t&2){let a;ee(a=te())&&(r.input=a.first),ee(a=te())&&(r.popover=a.first);}},inputs:{topicData:"topicData",index:"index",mode:"mode"},outputs:{handleDialog:"handle-dialog"},standalone:!1,ngContentSelectors:Pv,decls:24,vars:20,consts:[["popover",""],["imgAnchor",""],["nameAnchor",""],[1,"header-container"],[1,"author"],[1,"avatar",3,"src"],[1,"info"],[3,"anchor","horizontalAlign","target_user_id"],[1,"role",3,"ngClass","parseName"],[1,"date"],[1,"del"],[1,"silenced"],[1,"readed-count"],[1,"user-agent",3,"title"],[1,"topic-flag"],[1,"homework",3,"ngClass"],[1,"digest"],[1,"operation"],["title","\u5220\u9664\u63D0\u793A","type","common"],["title","\u6E29\u99A8\u63D0\u793A","type","confirm","confirmBtnText","\u77E5\u9053\u4E86","position","center"],["type","confirm","confirmBtnText","\u77E5\u9053\u4E86","position","center",3,"title"],[1,"avatar",3,"mouseenter","mouseleave","src"],[1,"avatar",3,"click","
145src"],[1,"role",3,"mouseenter","mouseleave","ngClass","parseName"],[1,"role",3,"click","ngClass","parseName"],[1,"del",3,"click"],[1,"silenced",3,"click"],[1,"readed-count",3,"click"],[1,"user-agent",3,"click","title"],[1,"operation-top"],[1,"topic-status","in-review"],[1,"topic-status"],[1,"topic-status","fail-video"],[1,"topic-status","in-review",3,"click"],[1,"topic-status","fail-video",3,"click"],[1,"ai-enter"],[1,"column"],[1,"icon",3,"click","ngClass"],[3,"topic","index"],[3,"topic"],[3,"title-input"],[1,"ai-enter",3,"click"],[1,"ai-icon"],[1,"ai-text"],[1,"column",3,"click"],[3,"operation-emitter","handle-edit","topic","index"],[3,"tag-emitter","topic"],[3,"column-emitter","topic"],[3,"handle-edit-cancel","handle-edit-confirm","title-input"],["title","\u5220\u9664\u63D0\u793A","type","common",3,"dialog-confirm","dialog-cancel"],["title","\u6E29\u99A8\u63D0\u793A","type","confirm","confirmBtnText","\u77E5\u9053\u4E86","position","center",3,"dialog-confirm"],["type","confirm","confirmBtnText","\u77E5\u9053\u4E86","position","center",3,"dialog-confirm","title"],[2,"white-space","pre-line"]],template:function(t,r){t&1&&(Zt(),s(0,"div",3)(1,"div",4),h(2,wv,3,3,"img",5),h(3,yv,3,3,"img",5),s(4,"div",6),M(5,"app-user-info-card",7,0),h(7,kv,4,7,"div",8),h(8,Sv,3,7,"div",8),s(9,"div",9),g(10),$(11,"transformFullTime"),h(12,Tv,2,0,"span",10),h(13,Ev,2,0,"span",11),h(14,Dv,2,1,"span",12),h(15,Iv,2,2,"span",13),c()()(),s(16,"div",14),M(17,"div",15),h(18,Fv,1,0,"div",16),c(),h(19,Uv,2,1,"div",17),Nt(20,0,Mv),c(),h(21,qv,3,1,"app-dialog",18),h(22,Qv,5,0,"app-dialog",19),h(23,Wv,3,2,"app-dialog",20)),t&2&&(l(2),_(r.isShowUserCard?2:-1),l(),_(r.isShowUserCard?-1:3),l(2),C("anchor",r.anchor)("horizontalAlign","start")("target_user_id",r.TargetUserId),l(2),_(r.isShowUserCard?7:-1),l(),_(r.isShowUserCard?-1:8),l(2),V(" ",r.mode==="scheduled"?r.topicData.create_time:Z(11,18,r.topicData.create_time)," "),l(2),_(r.deleteVisible?12:-1),l(),_(r.silencedTipVisible?13:-1),l(),_(r.readCountLabelVisible?14:-1),l(),_(r.topicData.user_agent&&r.mode!=="scheduled"?15:-1),l(2),C("ngClass",r.topicData.type==="task"?" task":r.topicData.type==="solution"?" solution":"null"),l(),_(r.digestFlagVisible?18:-1),l(),_(r.mode!=="pure"?19:-1),l(2),_(r.deleteSelfVisible?21:-1),l(),_(r.silencedTipDialogVisible?22:-1),l(),_(r.readCountVisible?23:-1));},dependencies:[K,Ze,xt,ad,jg,Ka,Za,$o,Xt,Si,ha,St],styles:['@charset "UTF-8";.header-container[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:space-between;align-items:center;padding:10px 20px 10px 10px}.header-container[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]{display:flex;align-items:center;height:36px;position:relative}.header-container[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:30px;width:30px;border-radius:50%;background-color:var(--dweb-bg-subtle, #F5F6F7);cursor:pointer}.header-container[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]   .avatar.default[_ngcontent-%COMP%]{pointer-events:none}.header-container[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{margin-left:46px;height:100%;display:flex;flex-direction:column;justify-content:space-between}.header-container[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .role[_ngcontent-%COMP%]{height:20px;line-height:20px;cursor:pointer}.header-container[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .role.default[_ngcontent-%COMP%]{pointer-events:none}.header-container[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .owner[_ngcontent-%COMP%], .header-container[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .partner[_ngcontent-%COMP%]{color:var(--dweb-warning, #FDA956)}.header-container[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%]{color:var(--dweb-copper, #D28057)}.header-container[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .self[_ngcontent-%COMP%]{color:var(--dweb-brand, #16B998)}.header-container[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]{color:var(--dweb-info, #567895)}.header-container[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .anonymous[_ngcontent-%COMP%]{color:var(--dweb-text-faint, #C5C6CB)}.header-container[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:12px;color:var(--dweb-text-faint, #C5C6CB);white-space:nowrap}.header-container[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .del[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;margin-left:10px;font-size:12px;color:var(--dweb-danger)}.header-container[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .silenced[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;margin-left:8px;font-size:12px;color:var(--dweb-info)}.header-container[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .user-agent[_ngcontent-%COMP%], .header-container[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .readed-count[_ngcontent-%COMP%]{margin-left:8px;
145max-width:200px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;cursor:pointer}.header-container[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]{width:auto;height:36px;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}.header-container[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .operation-top[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:flex-end;align-items:center}.header-container[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .operation-top[_ngcontent-%COMP%]   .topic-status[_ngcontent-%COMP%]{background:var(--dweb-bg-subtle);border-radius:15px;padding:0 12px;line-height:20px;font-size:12px;color:var(--dweb-text-placeholder);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.header-container[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .operation-top[_ngcontent-%COMP%]   .topic-status.in-review[_ngcontent-%COMP%]{cursor:pointer;color:var(--dweb-text-faint)}.header-container[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .operation-top[_ngcontent-%COMP%]   .topic-status.fail-video[_ngcontent-%COMP%]{cursor:pointer;background:#fda95626;color:var(--dweb-warning)}.header-container[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .operation-top[_ngcontent-%COMP%]   .topic-status.fail-video[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{position:relative;top:2px;display:inline-block;width:12px;height:12px;background-image:url("./media/[email protected]");background-position:-233px -447px;margin-left:6px}.header-container[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .operation-top[_ngcontent-%COMP%]   .ai-enter[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 6px;height:23px;background:linear-gradient(270deg,#e1fffb 1.64%,#e8f1ff);border-radius:4px;cursor:pointer;-webkit-user-select:none;user-select:none}.header-container[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .operation-top[_ngcontent-%COMP%]   .ai-enter[_ngcontent-%COMP%]   .ai-icon[_ngcontent-%COMP%]{width:14px;height:14px;margin-right:3px;background-image:url(/assets_dweb/images/[email protected]);background-repeat:no-repeat;background-size:100%}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.header-container[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .operation-top[_ngcontent-%COMP%]   .ai-enter[_ngcontent-%COMP%]   .ai-icon[_ngcontent-%COMP%]{background-image:url(/assets_dweb/images/[email protected])}}.header-container[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .operation-top[_ngcontent-%COMP%]   .ai-enter[_ngcontent-%COMP%]   .ai-text[_ngcontent-%COMP%]{font-size:10px;color:var(--dweb-text-primary)}.header-container[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .operation-top[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]{height:20px;border-radius:4px;border:1px solid rgba(197,198,203,.5);display:flex;align-items:center;padding:0 6px 1px;cursor:pointer;background-color:var(--dweb-bg-panel);margin-left:8px}.header-container[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .operation-top[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{width:12px;height:12px;display:block;margin-right:4px;background-image:url("./media/[email protected]");background-position:-30px -506px}.header-container[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .operation-top[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:10px;font-weight:400;color:var(--dweb-text-secondary)}.header-container[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .operation-top[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:15px;height:20px;background-image:url("./media/[email protected]");background-position:-226px -193px;cursor:pointer;margin-left:16px}.header-container[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .operation-top[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]{background-image:url("./media/[email protected]");background-position:-226px -236px}.header-container[_ngcontent-%COMP%]   .copy-input[_ngcontent-%COMP%]{position:fixed;top:-300px}
145.header-container[_ngcontent-%COMP%]   .topic-flag[_ngcontent-%COMP%]{position:absolute;right:-10px;top:-10px;display:flex;min-width:100px}.header-container[_ngcontent-%COMP%]   .topic-flag[_ngcontent-%COMP%]   .homework[_ngcontent-%COMP%]{width:100px;height:28px;background-image:url("./media/[email protected]");z-index:1}.header-container[_ngcontent-%COMP%]   .topic-flag[_ngcontent-%COMP%]   .homework.task[_ngcontent-%COMP%]{background-position:-767px -191px}.header-container[_ngcontent-%COMP%]   .topic-flag[_ngcontent-%COMP%]   .homework.solution[_ngcontent-%COMP%]{background-position:-767px -229px}.header-container[_ngcontent-%COMP%]   .topic-flag[_ngcontent-%COMP%]   .homework.null[_ngcontent-%COMP%]{display:none}.header-container[_ngcontent-%COMP%]   .topic-flag[_ngcontent-%COMP%]   .digest[_ngcontent-%COMP%]{width:48px;height:40px;background-image:url("./media/[email protected]");background-position:-818px -593px;position:absolute;right:40px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.header-container[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .header-container[_ngcontent-%COMP%]   .homework[_ngcontent-%COMP%], .header-container[_ngcontent-%COMP%]   .digest[_ngcontent-%COMP%], .header-container[_ngcontent-%COMP%]   .topic-status.fail-video[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .header-container[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}html[data-theme=dark][_nghost-%COMP%]   .header-container[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .operation-top[_ngcontent-%COMP%]   .ai-enter[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .header-container[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .operation-top[_ngcontent-%COMP%]   .ai-enter[_ngcontent-%COMP%]{background:linear-gradient(270deg,var(--dweb-bg-brand-gradient-start) 1.64%,var(--dweb-bg-pale-blue) 100%)}html[data-theme=dark][_nghost-%COMP%]   .header-container[_ngcontent-%COMP%]   .topic-flag[_ngcontent-%COMP%]   .homework[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .header-container[_ngcontent-%COMP%]   .topic-flag[_ngcontent-%COMP%]   .homework[_ngcontent-%COMP%]{opacity:.7}html[data-theme=dark][_nghost-%COMP%]   .header-container[_ngcontent-%COMP%]   .topic-flag[_ngcontent-%COMP%]   .digest[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .header-container[_ngcontent-%COMP%]   .topic-flag[_ngcontent-%COMP%]   .digest[_ngcontent-%COMP%]{opacity:.24}']});let o=n;return o;})();var Xv=["commentEditor"],Jv=o=>({active:o}),Yv=o=>({block:o}),Kv=o=>({width:o});function Zv(o,n){if(o&1){let i=y();s(0,"div",12),M(1,"img",14)(2,"div",15),s(3,"div",16),f("click",function(){b(i);let t=d(2);return P(t.removeImage());}),c()();}if(o&2){let i=d(2);l(),C("src",i.imageUrl,se);}}function e1(o,n){if(o&1&&(s(0,"div",13)(1,"div",17),M(2,"div",18),c()()),o&2){let i=d(2);l(2),C("ngStyle",R(1,Kv,i.imgProgress+"%"));}}function t1(o,n){if(o&1&&(s(0,"div",4),h(1,Zv,4,1,"div",12)(2,e1,3,3,"div",13),c()),o&2){let i=d();l(),_(i.imageUrl?1:2);}}function n1(o,n){if(o&1){let i=y();s(0,"div",10)(1,"app-emoji",19),f("add-emoji",function(t){b(i),d();let r=ct(3);return P(r.insertEmoji(t));}),c()();}}var qi=(()=>{let n=class n{constructor(e,t,r,a,p){this.el=e,this.http=t,this.message=r,this.topicService=a,this.bindPhoneDialogService=p,this.replyText="",this.placeholder="",this.isReplyToComment=!1,this.closeComment=new H(),this.emojiVisible=!1,this.showImg=!1,this.imgProgress=0,this.imageUrl="",this.imageIds=[],this.mentionedUsers=[],this.uploadId="",this.blockSubmit=!1,this.requests={},this.qiniuRequests={};}ngOnInit(){this.uploadId="comment-upload-"+(this.data.topic_uid||this.data.topic_id);}clickFunc(e){if(!this.emojiVisible)return;(this.el.nativeElement.querySelector(".emoji-panel")||this.el.nativeElement).contains(e)||(this.emojiVisible=!1);}editorCreated(){let e=JSON.parse(localStorage.getItem("tempComment")),t={ops:[{insert:this.replyText}]};e&&(e.ops?t={ops:[{insert:this.replyText},...e.ops]}:t={ops:[{insert:this.replyText+e}]}),this.commentEditor.setContents(t);}editorContentChange(){let e=this.commentEditor.getText();this.replyText&&e.substring(0,this.replyText.length)!==this.replyText&&this.commentEditor.setContents({ops:[{insert:this.replyText}]});let t=this.commentEditor.getContents(this.replyText.length);window.localStorage.setItem("tempComment",JSON.stringify(t));}addEmoji(e){let t=e.type==="text"?e.title:`[${e.title}]`;this.commentEditor.insertText(t);}changeEmojiVisible(e){this.emojiVisible=!this.emojiVisible,e.stopPropagation();}onChange(){this.imageUrl="",this.showImg=!0;let e=event.target;this.upload(e.files[0]),e.value="";}handlePaste(e){if(e.stopPropagation(),e.clipboardData&&e.clipboardData.items)try{let t=e.clipboardData.items;for(let r of t)if(r.type.indexOf("image")!==-1){let a=r.getAsFile();return Oi(a,p=>{this.imageUrl="",this.showImg=!0,this.upload(p);}),!1;}}catch(t){}}upload(e){this.uploadFile=e,this.qiniuUploadInfo(e);}qiniuUploadInfo(e){let t={req_data:{type:"image",size:e.size}};this.qiniuRequests[e.lastModified]=this.http.post(j.qiniu,JSON.stringify(t)).subscribe(r=>{if(r.succeeded){let a=r.resp_data.upload_zone?r.resp_data.upload_zone.domains[0]:null;this.uploadImage(r.resp_data.upload_token,a,e);}else this.http.handleExceptionCode(r,""),this.showImg=!1;});}uploadImage(e,t,r){let a=new FormData();a.append("file",r),a.append("token",e),this.requests[r.lastModified]=this.http.postByUrl(t!=null?t:ie.QINIU_URL,a).subscribe(p=>
145{if(p.type===Op.UploadProgress)this.imgProgress=Math.floor(p.loaded/p.total*100);else if(p instanceof wp){let m=p.body;m.succeeded?(this.imageIds=[],this.imageIds.push(m.resp_data.image_id),Bp(r,v=>{this.imageUrl=v;})):this.http.handleExceptionCode(m,"\u4E0A\u4F20\u56FE\u7247\u5931\u8D25");}});}removeImage(){this.showImg=!1,this.imageUrl="",this.imageIds=[],this.qiniuRequests[this.uploadFile.lastModified].unsubscribe(),this.requests[this.uploadFile.lastModified].unsubscribe();}comment(){if(!this.bindPhoneDialogService.hasBindPhoneNumber())return;let e={req_data:{text:this.handleEditorContent(),image_ids:this.imageIds,replied_comment_id:this.replyId,mentioned_user_ids:this.mentionedUsers}},t=this.isReplyToComment?"\u56DE\u590D":"\u8BC4\u8BBA";e.req_data.text.length>0||e.req_data.image_ids.length>0?(this.blockSubmit=!0,this.http.post(j.addComment(this.data.topic_uid||this.data.topic_id),e).subscribe(r=>{r.succeeded?(this.message.info({content:`${t}\u5DF2\u53D1\u5E03`,type:"success"}),this.topicService.addComment(r.resp_data.comment,this.replyId),this.closeComment.emit("dd")):r.code===15307?this.message.info({content:`${t}\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A`}):this.http.handleExceptionCode(r,`\u53D1\u8868${t}\u5931\u8D25`),this.blockSubmit=!1,localStorage.removeItem("tempComment"),this.mentionedUsers=[];})):this.message.info({content:`${t}\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A`});}handleCommentKeyup(e){e.keyCode===13&&this.comment();}handleEditorContent(){let e=this.commentEditor.getContents(this.replyText.length),t="";return this.mentionedUsers=[],e.ops.forEach(r=>{r.insert.mention?(t+=`<e type="mention" uid="${r.insert.mention.id}" title="${encodeURIComponent("@"+r.insert.mention.value)}" />`,this.mentionedUsers.push(+r.insert.mention.id)):r.insert.emoji?t+=r.insert.emoji.type==="text"?r.insert.emoji.title:`[${r.insert.emoji.title}]`:t+=r.insert;}),t;}};n.ɵfac=function(t){return new(t||n)(O(Re),O(W),O(le),O(Ye),O(Ti));},n.ɵcmp=F({type:n,selectors:[["app-comment"]],viewQuery:function(t,r){if(t&1&&_e(Xv,7),t&2){let a;ee(a=te())&&(r.commentEditor=a.first);}},hostBindings:function(t,r){t&1&&f("click",function(p){return r.clickFunc(p.target);},wt);},inputs:{data:"data",replyText:[0,"reply-text","replyText"],placeholder:"placeholder",isReplyToComment:[0,"is-reply-to-comment","isReplyToComment"],replyId:[0,"reply-id","replyId"]},outputs:{closeComment:"close-comment"},standalone:!1,decls:13,vars:16,consts:[["commentEditor",""],[1,"comment-container"],[1,"content-container"],[1,"text-area-wrapper",3,"editor-created","editor-content-change","editor-paste","editor-post","click","placeholder","maxlength","group"],[1,"image-preview-container"],[1,"operate-container"],[1,"icon-container"],[1,"emoji",3,"click","ngClass"],[1,"picture",3,"for"],["type","file","accept","image/jpeg,image/jpg,image/png",1,"upload",3,"change","id"],[1,"emoji-panel"],["tabindex","0","type","submit",1,"submit-btn",3,"click","keyup","ngClass"],[1,"image-item"],[1,"overlay"],["alt","",3,"src"],[1,"cover"],[1,"remove",3,"click"],[1,"progress-container"],[1,"progress",3,"ngStyle"],[3,"add-emoji"]],template:function(t,r){t&1&&(s(0,"div",1)(1,"div",2)(2,"app-editor",3,0),f("editor-created",function(){return r.editorCreated();})("editor-content-change",function(){return r.editorContentChange();})("editor-paste",function(p){return r.handlePaste(p);})("editor-post",function(){return r.comment();})("click",function(){return r.emojiVisible=!1;}),c()(),h(4,t1,3,1,"div",4),s(5,"div",5)(6,"div",6)(7,"div",7),f("click",function(p){return r.changeEmojiVisible(p);}),c(),M(8,"label",8),s(9,"input",9),f("change",function(){return r.onChange();}),c()(),h(10,n1,2,0,"div",10),s(11,"div",11),f("click",function(){return r.comment();})("keyup",function(p){return r.handleCommentKeyup(p);}),g(12),c()()()),t&2&&(l(2),C("placeholder",r.placeholder||"\u53D1\u5E03\u4F60\u7684\u8BC4\u8BBA")("maxlength",1200)("group",r.data.group),l(2),_(r.showImg?4:-1),l(3),C("ngClass",R(12,Jv,r.emojiVisible)),l(),C("for",li(r.uploadId)),l(),C("id",li(r.uploadId)),l(),_(r.emojiVisible?10:-1),l(),C("ngClass",R(14,Yv,r.blockSubmit)),l(),V(" ",r.isReplyToComment?"\u56DE\u590D":"\u8BC4\u8BBA"," "));},dependencies:[K,De,Ei,So],styles:['@charset "UTF-8";.comment-container[_ngcontent-%COMP%]{margin-top:12px;padding-left:56px;padding-right:20px;
145display:flex;flex-direction:column}.comment-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.comment-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]{position:relative;display:flex;border:1px solid var(--dweb-brand);border-radius:2px;padding-top:.5px;background-color:var(--dweb-bg-panel);box-sizing:border-box}.comment-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .text-area-wrapper[_ngcontent-%COMP%]{width:100%;padding:2px 10px;max-height:170px;box-sizing:border-box}.comment-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .text-area-wrapper[_ngcontent-%COMP%]     .ql-editor{padding:3px 0}.comment-container[_ngcontent-%COMP%]   .image-preview-container[_ngcontent-%COMP%]{margin-top:8px;height:80px;display:flex;flex-direction:row;align-items:center}.comment-container[_ngcontent-%COMP%]   .image-preview-container[_ngcontent-%COMP%]   .image-item[_ngcontent-%COMP%]{position:relative;border-radius:8px;overflow:hidden}.comment-container[_ngcontent-%COMP%]   .image-preview-container[_ngcontent-%COMP%]   .image-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:80px;height:80px;object-fit:cover}.comment-container[_ngcontent-%COMP%]   .image-preview-container[_ngcontent-%COMP%]   .image-item[_ngcontent-%COMP%]   .cover[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:100%;height:100%;background:#0006}.comment-container[_ngcontent-%COMP%]   .image-preview-container[_ngcontent-%COMP%]   .image-item[_ngcontent-%COMP%]   .remove[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-568px -222px;cursor:pointer}.comment-container[_ngcontent-%COMP%]   .image-preview-container[_ngcontent-%COMP%]   .image-item[_ngcontent-%COMP%]   .cover[_ngcontent-%COMP%], .comment-container[_ngcontent-%COMP%]   .image-preview-container[_ngcontent-%COMP%]   .image-item[_ngcontent-%COMP%]   .remove[_ngcontent-%COMP%]{opacity:0;transition:opacity .15s ease-in-out}.comment-container[_ngcontent-%COMP%]   .image-preview-container[_ngcontent-%COMP%]   .image-item[_ngcontent-%COMP%]:hover   .remove[_ngcontent-%COMP%], .comment-container[_ngcontent-%COMP%]   .image-preview-container[_ngcontent-%COMP%]   .image-item[_ngcontent-%COMP%]:hover   .cover[_ngcontent-%COMP%]{opacity:1}.comment-container[_ngcontent-%COMP%]   .image-preview-container[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%]{width:80px;height:80px;background:var(--dweb-bg-subtle, #F5F6F7);display:inline-block}.comment-container[_ngcontent-%COMP%]   .image-preview-container[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%]   .progress-container[_ngcontent-%COMP%]{margin-top:41px;margin-left:10px;width:60px;background:var(--dweb-bg-panel)}.comment-container[_ngcontent-%COMP%]   .image-preview-container[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%]   .progress-container[_ngcontent-%COMP%]   .progress[_ngcontent-%COMP%]{height:2px;background:var(--dweb-brand, #16B998);width:0}.comment-container[_ngcontent-%COMP%]   .operate-container[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;position:relative;height:40px;display:flex;justify-content:flex-start;align-items:center}.comment-container[_ngcontent-%COMP%]   .operate-container[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]{height:26px;width:70px;margin-top:0;display:flex;align-items:center;position:relative}.comment-container[_ngcontent-%COMP%]   .operate-container[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]   .emoji[_ngcontent-%COMP%]{width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-333px -308px;cursor:pointer}.comment-container[_ngcontent-%COMP%]   .operate-container[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]   .emoji.active[_ngcontent-%COMP%]{background-position:-333px -348px!important}.comment-container[_ngcontent-%COMP%]   .operate-container[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]   .picture[_ngcontent-%COMP%]{margin-left:20px;width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-384px -307px;cursor:pointer}.comment-container[_ngcontent-%COMP%]   .operate-container[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]   .emoji[_ngcontent-%COMP%], .comment-container[_ngcontent-%COMP%]   .operate-container[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]   .picture[_ngcontent-%COMP%]{transition:opacity .25s ease-in-out,transform .2s ease-in-out}.comment-container[_ngcontent-%COMP%]   .operate-container[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]   .emoji[_ngcontent-%COMP%]:hover, .comment-container[_ngcontent-%COMP%]   .operate-container[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]   .picture[_ngcontent-%COMP%]:hover{opacity:.7;transform:scale(1.05)}.comment-container[_ngcontent-%COMP%]   .operate-container[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{display:none}.comment-container[_ngcontent-%COMP%]   .operate-container[_ngcontent-%COMP%]   .emoji-panel[_ngcontent-%COMP%]{z-index:10;position:absolute;top:80%;left:0;box-shadow:0 2px 4px #0000001a}.comment-container[_ngcontent-%COMP%]   .operate-container[_ngcontent-%COMP%]   .submit-btn[_ngcontent-%COMP%]{margin-left:auto;height:24px;line-height:24px;width:50px;background:var(--dweb-brand, #16B998);box-shadow:0 1px 2px 0 var(--dweb-border-faint);border-radius:4px;font-family:PingFangSC,PingFang SC;font-weight:400;font-size:12px;color:#fff;text-align:center;cursor:pointer;transition:transform .2s ease-in-out;-webkit-user-select:none;user-select:none}.comment-container[_ngcontent-%COMP%]   .operate-container[_ngcontent-%COMP%]   .submit-btn[_ngcontent-%COMP%]:hover{outline:none;background:#3fa691}.comment-container[_ngcontent-%COMP%]   .operate-container[_ngcontent-%COMP%]   .submit-btn[_ngcontent-%COMP%]:active{outline:none;transform:scale(1.02)}.comment-container[_ngcontent-%COMP%]   .operate-container[_ngcontent-%COMP%]   .submit-btn.block[_ngcontent-%COMP%]{pointer-events:none}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.comment-container[_ngcontent-%COMP%]   .emoji[_ngcontent-%COMP%], .comment-container[_ngcontent-%COMP%]   .picture[_ngcontent-%COMP%], .comment-container[_ngcontent-%COMP%]   .remove[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var i1=["popover"],Nu=(o,n,i)=>({"group-owner-light":o,"group-guest-light":n,"current-user-light":i}),o1=o=>({liked:o}),r1=o=>({"is-sticky":o}),a1=(o,n)=>n.image_id;function s1(o,n){o&1&&(s(0,"span",5),g(1,"\u7EA2\u65B9"),c());}function c1(o,n){o&1&&(s(0,"span",6),g(1,"\u84DD\u65B9"),c());}function l1(o,n){if(o&1){let i=y();s(0,"span",23),$(1,"transformOwner"),f("click",function(){b(i);let t=d();return P(t.toFootprint(t.comment.owner.user_id));}),c();}if(o&2){let i=d();C("ngClass",_n(5,Nu,i.comment.owner.is_owner||i.comment.owner.is_partner,i.comment.owner.is_guest,i.comment.owner.is_self))("parseName",Pe(1,2,i.comment,"owner"));}}function p1(o,n){if(o&1){let i=y();
145s(0,"span",24,1),$(2,"transformOwner"),f("mouseenter",function(){b(i);let t=ct(1),r=d();return P(r.showPopover(t,r.comment.owner.user_id));})("mouseleave",function(){b(i),d();let t=ct(5);return P(t.close());}),c();}if(o&2){let i=d();C("ngClass",_n(5,Nu,i.comment.owner.is_owner||i.comment.owner.is_partner,i.comment.owner.is_guest,i.comment.owner.is_self))("parseName",Pe(2,2,i.comment,"owner"));}}function d1(o,n){o&1&&(s(0,"span"),g(1,"\xA0\u56DE\u590D\xA0"),c());}function g1(o,n){if(o&1){let i=y();s(0,"span",25,2),$(2,"transformOwner"),f("mouseenter",function(){b(i);let t=ct(1),r=d();return P(r.showPopover(t,r.comment.repliee.user_id));})("mouseleave",function(){b(i),d();let t=ct(5);return P(t.close());}),c();}if(o&2){let i=d();C("parseName",Pe(2,1,i.comment,"repliee"));}}function u1(o,n){if(o&1&&(M(0,"span",10),$(1,"transformOwner")),o&2){let i=d();C("parseName",Pe(1,1,i.comment,"repliee"));}}function m1(o,n){o&1&&(s(0,"span",11),g(1,"\u7F6E\u9876"),c());}function h1(o,n){if(o&1){let i=y();s(0,"span",26),f("click",function(){b(i);let t=d();return P(t.downloadFile(t.comment.files[0].file_id));}),g(1),c();}if(o&2){let i=d();l(),V(" ",i.comment.files[0].name," ");}}function _1(o,n){if(o&1){let i=y();s(0,"img",28),f("click",function(){b(i);let t=d(2);return P(t.showImage());}),c();}if(o&2){let i=n.$implicit;C("src",i.thumbnail.url,se);}}function f1(o,n){if(o&1&&(s(0,"div",14),B(1,_1,1,1,"img",27,a1),c()),o&2){let i=d();l(),N(i.comment.images);}}function C1(o,n){if(o&1){let i=y();s(0,"span",34),f("click",function(){b(i);let t=d(2);return P(t.handleSticky());}),c();}if(o&2){let i=d(2);C("ngClass",R(1,r1,i.comment.sticky));}}function x1(o,n){if(o&1){let i=y();s(0,"span",35),f("click",function(){b(i);let t=d(2);return P(t.del());}),c();}}function v1(o,n){if(o&1){let i=y();s(0,"span",36),f("click",function(){b(i);let t=d(2);return P(t.reply());}),c();}}function b1(o,n){if(o&1&&(s(0,"span"),g(1),c()),o&2){let i=d(2);l(),A(i.comment.likes_count);}}function P1(o,n){if(o&1){let i=y();s(0,"div",17),h(1,C1,1,3,"span",29),h(2,x1,1,0,"span",30),h(3,v1,1,0,"span",31),s(4,"div",32),f("click",function(){b(i);let t=d();return P(t.comment.user_specific&&t.comment.user_specific.liked?t.unlike():t.like());}),M(5,"span",33),h(6,b1,2,1,"span"),c()();}if(o&2){let i=d();l(),_(i.fromWhere!=="dynamic-topic"&&i.groupOwnerOrAdminOrPartner&&!i.comment.repliee?1:-1),l(),_((i.fromWhere==="dynamic-topic"?i.isOwner:i.isOwner||i.groupOwnerOrAdmin)?2:-1),l(),_(i.isOwner?-1:3),l(2),C("ngClass",R(5,o1,i.comment.user_specific&&i.comment.user_specific.liked)),l(),_(i.comment.likes_count?6:-1);}}function M1(o,n){if(o&1){let i=y();s(0,"div",37),f("click",function(){b(i);let t=d();return P(t.hideComment());}),g(1,"\u53D6\u6D88"),c();}}function O1(o,n){if(o&1){let i=y();s(0,"app-image-full-screen",38),f("close-full-screen",function(t){b(i);let r=d();return P(r.watchClose(t));}),c();}if(o&2){let i=d();C("index",i.index)("images",i.images);}}function w1(o,n){if(o&1){let i=y();s(0,"app-comment",39),f("close-comment",function(t){b(i);let r=d();return P(r.closeComment(t));}),c();}if(o&2){let i=d();C("placeholder",i.replyText)("is-reply-to-comment",!0)("reply-id",i.replyId)("data",i.topicData);}}function y1(o,n){if(o&1){let i=y();s(0,"app-dialog",40),f("dialog-confirm",function(){b(i);let t=d();return P(t.deleteComment());})("dialog-cancel",function(){b(i);let t=d();return P(t.cancelDelete());}),s(1,"div"),g(2),c()();}if(o&2){let i=d();l(2),V("\u786E\u5B9A\u5220\u9664\u8BE5",i.comment.repliee?"\u56DE\u590D":"\u8BC4\u8BBA","\uFF1F");}}function k1(o,n){if(o&1){let i=y();s(0,"app-reason-dialog",41),f("dialog-confirm",function(t){b(i);let r=d();return P(r.deleteComment(t));})("dialog-cancel",function(){b(i);let t=d();return P(t.cancelDelete());}),c();}o&2&&C("maxlength",200);}function S1(o,n){if(o&1){let i=y();s(0,"app-dialog",42),f("dialog-confirm",function(){b(i);let t=d();return P(t.setSticky(!1));})("dialog-cancel",function(){b(i);let t=d();return P(t.stickyTopicVisible=!1);}),s(1,"div"),g(2,"\u6700\u591A\u7F6E\u9876\u4E00\u6761\u8BC4\u8BBA\uFF0C\u786E\u5B9A\u8981\u64A4\u9500\u4E4B\u524D\u7F6E\u9876\u7684\u8BC4\u8BBA\u5417\uFF1F"),c()();}}var Ho=(()=>{let n=class n{constructor(e,t,r,a,p,m,v,x){this.http=e,this.topicDetailService=t,this.notifyService=r,this.indexService=a,this.message=p,this.topicOwnService=m,this.userInfoCardService=v,this.main_content_show_user_card_prpover=x,this.delComment=new H(),this.commentVisible=!1,this.fullScreenVisible=!1,this.index=0,this.deleteSelfVisible=!1,this.deleteOtherVisible=!1,this.groupOwnerOrAdmin=!1,this.groupOwnerOrAdminOrPartner=!1,this.stickyTopicVisible=!1,this.isLike=!1;}ngOnInit(){let e=+localStorage.getItem("user_id");this.checkRole(e),this.images=this.comment.images,JSON.parse(localStorage.getItem(`remarks_${e}
145`)).forEach(r=>{r.user_id===this.comment.owner.user_id&&(this.comment.owner.remark=r.remarks);}),this.groupInfo={group_id:this.topicData.group.group_id,name:this.topicData.group.name};}isShowUserCard(e){return this.main_content_show_user_card_prpover&&this.userInfoCardService.isShowUserCard(this.indexService.getSelfInfo("user_id"),e);}checkRole(e){this.isOwner=this.comment.owner.user_id===this.indexService.getSelfInfo("user_id");let t=this.notifyService.getGroupInfo()||this.topicDetailService.getGroupInfo()||this.indexService.getTargetGroup(!0),r=t.admin_ids?t.admin_ids:[];this.groupOwnerOrAdmin=e===t.owner.user_id||r.includes(e);let a=t.partner_ids||[];this.groupOwnerOrAdminOrPartner=this.groupOwnerOrAdmin||a.includes(e);}del(){this.isOwner?this.deleteSelfVisible=!0:this.deleteOtherVisible=!0;}reply(){if(this.replyId=this.comment.comment_id,this.comment.owner.remark?this.replyText=this.comment.owner.remark.replace(/\u202e/g,""):this.comment.owner.alias?this.replyText=this.comment.owner.alias.replace(/\u202e/g,""):this.replyText=this.comment.owner.name.replace(/\u202e/g,""),this.replyText=`\u56DE\u590D${this.replyText}\uFF1A`,this.indexService.isGroupOwner)this.commentVisible=!this.commentVisible;else{let e="";this.indexService.isMember?this.indexService.createCommentNeedReward?(e="\u4E0B\u8F7D App \u8D5E\u8D4F\u661F\u4E3B\u540E\u5373\u53EF\u53C2\u4E0E\u4E92\u52A8",this.message.info({content:e})):this.indexService.canCreateComment?this.commentVisible=!this.commentVisible:(e="\u6CA1\u6709\u53D1\u8868\u8BC4\u8BBA\u7684\u6743\u9650",this.message.info({content:e})):this.indexService.canCreateComment?this.commentVisible=!this.commentVisible:(e="\u6CA1\u6709\u53D1\u8868\u8BC4\u8BBA\u7684\u6743\u9650",this.message.info({content:e}));}}like(){this.http.post(j.likeOrUnlikeComment(this.comment.comment_id)).subscribe(e=>{if(e.succeeded){if(this.isLike=!0,this.topicData.show_comments)for(let[t,r]of this.topicData.show_comments.entries())r.comment_id===this.comment.comment_id&&(this.topicData.show_comments[t].user_specific={liked:!0},this.topicData.show_comments[t].likes_count+=1);(this.fromWhere==="detail"||this.fromWhere==="dynamic-topic")&&(this.comment.user_specific={liked:!0},this.comment.likes_count+=1);}else this.http.handleExceptionCode(e,"\u70B9\u8D5E\u5931\u8D25\uFF5E");});}unlike(){this.http.delete(j.likeOrUnlikeComment(this.comment.comment_id)).subscribe(e=>{if(e.succeeded){if(this.isLike=!1,this.topicData.show_comments)for(let[t,r]of this.topicData.show_comments.entries())r.comment_id===this.comment.comment_id&&(this.topicData.show_comments[t].user_specific={liked:!1},this.topicData.show_comments[t].likes_count-=1);(this.fromWhere==="detail"||this.fromWhere==="dynamic-topic")&&(this.comment.user_specific={liked:!1},this.comment.likes_count-=1);}else this.http.handleExceptionCode(e,"\u53D6\u6D88\u70B9\u8D5E\u5931\u8D25\uFF5E");});}watchClose(e){e&&(this.fullScreenVisible=!1);}showImage(){this.fullScreenVisible=!0;}downloadFile(e){this.http.get(j.getFileUrl(e)).subscribe(t=>{t.succeeded?window.location.href=t.resp_data.download_url:this.http.handleExceptionCode(t,"\u83B7\u53D6\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25");});}hideComment(){this.commentVisible=!1;}closeComment(e){e&&(this.commentVisible=!1);}deleteComment(e={reason:"",desc:""}){this.fromWhere==="topic"?this.topicDetailService.deleteComment(this.comment.comment_id,this.topicData.show_comments,e.reason,e.desc):(e.id=this.comment.comment_id,this.delComment.emit(e)),this.cancelDelete();}cancelDelete(){this.deleteSelfVisible=!1,this.deleteOtherVisible=!1;}toFootprint(e){sessionStorage.setItem("footprint_group_id",String(this.topicData.group.group_id)),ne(`footprint/${e}?group_id=${String(this.topicData.group.group_id)}`);}setSticky(e){return ye(this,null,function*(){let t=yield this.http.put(j.handleComment(this.comment.comment_id),{req_data:{sticky:!e}}).toPromise();t.succeeded&&(this.message.info({content:e?"\u5DF2\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u6210\u529F",type:"success"}),this.comment.sticky=t.resp_data.comment.sticky,this.stickyTopicVisible=!1,this.topicOwnService.setStickyComment(this.comment));});}handleSticky(){this.hadSticky&&!this.comment.sticky?this.stickyTopicVisible=!0:this.setSticky(this.comment.sticky);}showPopover(e,t){this.popover.isFirstOpen=!0,this.popover.isLoading=!0,this.target_user_id=t,this.anchor=e,setTimeout(()=>{this.popover.open();},0);}};n.ɵfac=function(t){return new(t||n)(O(W),O(Te),O(sn),O(q),O(le),O(Ye),O(oi),O(Mi,8));},n.ɵcmp=F({type:n,selectors:[["app-comment-item"]],viewQuery:function(t,r){if(t&1&&_e(i1,5),t&2){let a;ee(a=te())&&(r.popover=a.first);}},inputs:{comment:"comment",topicData:[0,"data","topicData"],fromWhere:"fromWhere",hadSticky:"hadSticky"},outputs:{delComment:"delComment"},standalone:!1,decls:29,vars:26,consts:[["popover",""],["ownerPopover",""],["replieePopover",""],[1,"comment-item-container"],[1,"text"],[1,"vote-tag","vote-tag-red"],[1,"vote-tag","vote-tag-blue"],[3,"target_user_id","anchor"],[1,"comment",3,"ngClass","parseName"],[1,"refer",2,"cursor","pointer",3,"parseName"],[1,"refer",3,"parseName"],[1,"sticky"],["parseType","pure",1,"text",3,"parseHtml","groupInfo"],[1,"file"],[1,"image-thumb-preview"],[1,"operations"],[1,"time"],[1,"operation"],[3,"index","images"],[3,"placeholder","is-reply-to-comment","reply-id","data"],["title","\u5220\u9664\u63D0\u793A","type","common"],["type","del","title","\u8BF7\u9009\u62E9\u5220\u9664\u539F\u56E0","placeholder","\u8F93\u5165\u5220\u9664\u539F\u56E0\uFF081-200 \u5B57\uFF09","defaultChoice","\u5176\u4ED6\uFF08\u9009\u62E9\u8BE5\u9879\u4E0D\u63D0\u9192\u7528\u6237\uFF09",3,"maxlength"],["title","\u7F6E\u9876\u8BC4\u8BBA","type","common"],[1,"comment",3,"click","ngClass","parseName"],[1,"comment",3,"mouseenter","mouseleave","ngClass","parseName"],[1,"refer",2,"cursor","pointer",3,"mouseenter","mouseleave","parseName"],[1,"file",3,"click"],["loading","lazy",3,"src"],["loading","lazy",3,"click","
145src"],[1,"set-top",3,"ngClass"],[1,"space","delete"],[1,"space","reply"],[1,"space","like-box",3,"click"],[1,"like",3,"ngClass"],[1,"set-top",3,"click","ngClass"],[1,"space","delete",3,"click"],[1,"space","reply",3,"click"],[1,"operation",3,"click"],[3,"close-full-screen","index","images"],[3,"close-comment","placeholder","is-reply-to-comment","reply-id","data"],["title","\u5220\u9664\u63D0\u793A","type","common",3,"dialog-confirm","dialog-cancel"],["type","del","title","\u8BF7\u9009\u62E9\u5220\u9664\u539F\u56E0","placeholder","\u8F93\u5165\u5220\u9664\u539F\u56E0\uFF081-200 \u5B57\uFF09","defaultChoice","\u5176\u4ED6\uFF08\u9009\u62E9\u8BE5\u9879\u4E0D\u63D0\u9192\u7528\u6237\uFF09",3,"dialog-confirm","dialog-cancel","maxlength"],["title","\u7F6E\u9876\u8BC4\u8BBA","type","common",3,"dialog-confirm","dialog-cancel"]],template:function(t,r){t&1&&(s(0,"div",3)(1,"div",4),h(2,s1,2,0,"span",5),h(3,c1,2,0,"span",6),M(4,"app-user-info-card",7,0),h(6,l1,2,9,"span",8),h(7,p1,3,9,"span",8),h(8,d1,2,0,"span"),h(9,g1,3,4,"span",9),h(10,u1,2,4,"span",10),s(11,"span"),g(12,"\uFF1A"),c(),h(13,m1,2,0,"span",11),M(14,"span",12),$(15,"filterEmptyLines"),h(16,h1,2,1,"span",13),h(17,f1,3,0,"div",14),c(),s(18,"div",15)(19,"div",16),g(20),$(21,"transformFullTime"),c(),h(22,P1,7,7,"div",17),h(23,M1,2,0,"div",17),c(),h(24,O1,1,2,"app-image-full-screen",18),c(),h(25,w1,1,4,"app-comment",19),h(26,y1,3,1,"app-dialog",20),h(27,k1,1,1,"app-reason-dialog",21),h(28,S1,3,0,"app-dialog",22)),t&2&&(l(2),_((r.comment.vote==null?null:r.comment.vote.option_index)===0?2:-1),l(),_((r.comment.vote==null?null:r.comment.vote.option_index)===1?3:-1),l(),C("target_user_id",r.target_user_id)("anchor",r.anchor),l(2),_(r.isShowUserCard(r.comment.owner.user_id)?-1:6),l(),_(r.isShowUserCard(r.comment.owner.user_id)?7:-1),l(),_(r.comment.repliee?8:-1),l(),_(r.comment.repliee&&r.isShowUserCard(r.comment.repliee.user_id)?9:-1),l(),_(r.comment.repliee&&!r.isShowUserCard(r.comment.repliee.user_id)?10:-1),l(3),_(r.comment.sticky?13:-1),l(),C("parseHtml",Z(15,22,r.comment.text))("groupInfo",r.groupInfo),l(2),_(r.comment.files?16:-1),l(),_(r.comment.images?17:-1),l(3),A(Z(21,24,r.comment.create_time)),l(2),_(r.commentVisible?-1:22),l(),_(r.commentVisible&&!r.isOwner?23:-1),l(),_(r.fullScreenVisible?24:-1),l(),_(r.commentVisible?25:-1),l(),_(r.deleteSelfVisible?26:-1),l(),_(r.deleteOtherVisible?27:-1),l(),_(r.stickyTopicVisible?28:-1));},dependencies:[K,Ze,Yp,xt,ze,qi,Bi,$o,Jt,Xt,St],styles:['@charset "UTF-8";.comment-item-container[_ngcontent-%COMP%]{margin-top:12px;padding-left:56px;padding-right:20px}.comment-item-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{line-height:20px;color:var(--dweb-text-secondary, #5A5C66);word-wrap:break-word;white-space:pre-wrap}.comment-item-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]{color:var(--dweb-info);cursor:pointer}.comment-item-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .refer[_ngcontent-%COMP%]{color:var(--dweb-info)}.comment-item-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .vote-tag[_ngcontent-%COMP%]{display:inline-block;margin-right:6px;padding:0 4px;line-height:16px;font-size:12px;font-weight:400;border-radius:2px;color:#fff;vertical-align:middle;position:relative;top:-1px}.comment-item-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .vote-tag.vote-tag-red[_ngcontent-%COMP%]{background:var(--dweb-danger)}.comment-item-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .vote-tag.vote-tag-blue[_ngcontent-%COMP%]{background:#6099f5}.comment-item-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .sticky[_ngcontent-%COMP%]{box-sizing:border-box;display:inline-block;margin-right:6px;width:30px;line-height:18px;height:18px;background:#41b78c0d;border-radius:2px;border:1px solid rgba(65,183,140,.2);font-size:12px;color:var(--dweb-brand);text-align:center}.comment-item-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]{cursor:pointer;margin-left:4px;color:var(--dweb-info)}.comment-item-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .file[_ng
145content-%COMP%]:before{position:relative;left:2px;color:var(--dweb-info);background-image:url("./media/[email protected]");background-position:-417px -575px;height:14px;width:14px;content:" ";display:inline-block;line-height:14px}.comment-item-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .image-thumb-preview[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.comment-item-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .image-thumb-preview[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-top:8px;width:80px;height:80px;object-fit:cover;border-radius:8px;cursor:pointer}.comment-item-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .image-thumb-preview[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}.comment-item-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .group-owner-light[_ngcontent-%COMP%]{color:var(--dweb-warning, #FDA956)}.comment-item-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .group-guest-light[_ngcontent-%COMP%]{color:var(--dweb-copper, #D28057)}.comment-item-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .current-user-light[_ngcontent-%COMP%]{color:var(--dweb-brand, #16B998)}.comment-item-container[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]{margin-top:2px;display:flex;justify-content:space-between;align-items:center;height:16px;font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}.comment-item-container[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center}.comment-item-container[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .space[_ngcontent-%COMP%]{margin-left:10px}.comment-item-container[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .set-top[_ngcontent-%COMP%]{display:none;width:16px;height:16px;background-image:url("./media/comment_set_top-DEFEB6CF.png")}.comment-item-container[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .set-top.is-sticky[_ngcontent-%COMP%]{background-image:url("./media/comment_set_top_active-WRLKEWTT.png")}.comment-item-container[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .delete[_ngcontent-%COMP%]{display:none;width:16px;height:16px;background-image:url("./media/comment_delete-M4B2CEZ5.png")}.comment-item-container[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .reply[_ngcontent-%COMP%]{width:16px;height:16px;background-image:url("./media/comment_reply-G3SMKGK5.png")}.comment-item-container[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .like-box[_ngcontent-%COMP%]{display:flex;align-items:center}.comment-item-container[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .like[_ngcontent-%COMP%]{width:16px;height:16px;background-image:url("./media/comment_like-DNLJOR64.png");margin-right:2px}.comment-item-container[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .like.liked[_ngcontent-%COMP%]{background-image:url("./media/comment_like_active-YOCOPKRL.png")}.comment-item-container[_ngcontent-%COMP%]:hover   .operations[_ngcontent-%COMP%]   .set-top[_ngcontent-%COMP%], .comment-item-container[_ngcontent-%COMP%]:hover   .operations[_ngcontent-%COMP%]   .delete[_ngcontent-%COMP%]{display:inline-block}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.comment-item-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]:before{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.operations[_ngcontent-%COMP%]   .set-top[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:100%}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.operations[_ngcontent-%COMP%]   .set-top.is-sticky[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.operations[_ngcontent-%COMP%]   .like[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:100%}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.operations[_ngcontent-%COMP%]   .like.liked[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.operations[_ngcontent-%COMP%]   .delete[_ng
145content-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:100%}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.operations[_ngcontent-%COMP%]   .reply[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:100%}}']});let o=n;return o;})();var E1=["answerEditor"],D1=["emoji"],I1=o=>({"text-limit":o}),F1=o=>({actived:o}),Sr=o=>({active:o}),A1=o=>({width:o});function V1(o,n){if(o&1){let i=y();s(0,"div",15)(1,"span",8),g(2,"\u9009\u62E9\u53D1\u5E03\u65F6\u95F4"),c(),s(3,"app-topic-timer",30),f("time-change",function(t){b(i);let r=d();return P(r.scheduledJobTime=t);}),c()();}if(o&2){let i=d();l(3),C("defaultTime",i.modifyScheduledJobTime)("fourteenMax",14);}}function R1(o,n){if(o&1){let i=y();s(0,"div",23)(1,"input",31),f("change",function(t){b(i);let r=d();return P(r.handlePosterChange(t));}),c(),s(2,"label",32),g(3,"\u751F\u6210\u6D77\u62A5"),c(),s(4,"span",19),g(5,"\u53D1\u5E03\u540E\u751F\u6210\u5206\u4EAB\u6D77\u62A5"),c()();}if(o&2){let i=d();l(),C("checked",i.posterChecked);}}function L1(o,n){if(o&1){let i=y();s(0,"div",24,5)(2,"app-emoji",33),f("add-emoji",function(t){b(i),d();let r=ct(9);return P(r.insertEmoji(t));}),c()();}}function B1(o,n){if(o&1){let i=y();s(0,"div",34),f("click",function(){b(i);let t=d();return P(t.handleAnswerBtn("privateAnswer"));}),M(1,"i",35),g(2," \u4EC5\u53D1\u9001\u7ED9\u63D0\u95EE\u8005 "),s(3,"span",36),f("hover",function(){b(i);let t=d();return P(t.privateAnswer.explainVisible=!0);})("click",function(t){b(i);let r=d();return P(r.stopPropagation(t));}),M(4,"span",37),s(5,"div",38),g(6," \u53D1\u8868\u540E\uFF0C\u4EC5\u53D1\u9001\u7ED9\u63D0\u95EE\u8005\uFF0C\u4E0D\u53D1\u9001\u7ED9\u5176\u4ED6\u6210\u5458\uFF0C\u4E5F\u4E0D\u5C55\u793A\u5728\u661F\u7403\u65F6\u95F4\u7EBF "),c()()();}if(o&2){let i=d();l(),C("ngClass",R(2,Sr,i.privateAnswer.selected)),l(4),C("hidden",!i.privateAnswer.explainVisible);}}function N1(o,n){if(o&1){let i=y();s(0,"div",34),f("click",function(){b(i);let t=d();return P(t.handleAnswerBtn("freeToAnswer"));}),M(1,"i",35),g(2," \u514D\u8D39\u56DE\u7B54 "),s(3,"span",36),f("hover",function(){b(i);let t=d();return P(t.freeToAnswer.explainVisible=!0);})("click",function(t){b(i);let r=d();return P(r.stopPropagation(t));}),M(4,"span",37),s(5,"div",39),g(6," \u53D1\u8868\u540E\uFF0C\u63D0\u95EE\u7684\u91D1\u989D\u5C06\u539F\u8DEF\u8FD4\u8FD8\u7ED9\u63D0\u95EE\u8005 "),c()()();}if(o&2){let i=d();l(),C("ngClass",R(2,Sr,i.freeToAnswer.selected)),l(4),C("hidden",!i.freeToAnswer.explainVisible);}}function z1(o,n){if(o&1&&M(0,"img",40),o&2){let i=d(2);C("src",li(i.imageUrl),se);}}function G1(o,n){if(o&1&&(s(0,"div",41)(1,"div",44),M(2,"div",45),c()()),o&2){let i=d(2);l(2),C("ngStyle",R(1,A1,i.uploadProgress+"%"));}}function j1(o,n){if(o&1){let i=y();s(0,"div",29),h(1,z1,1,2,"img",40)(2,G1,3,3,"div",41),M(3,"div",42),s(4,"div",43),f("click",function(){b(i);let t=d();return P(t.removeImage());}),c()();}if(o&2){let i=d();l(),_(i.imageUrl?1:2);}}var _s=(()=>{let n=class n{constructor(e,t,r,a,p,m,v,x,w,k,S){this.http=e,this.message=t,this.mainService=r,this.topicDetailService=a,this.indexService=p,this.allScheduledJobsService=m,this.notifyService=v,this.answerlistService=x,this.createTopicService=w,this.ref=k,this.bindPhoneDialogService=S,this.answerTopic=new H(),this.updateTopics=new H(),this.showPosterDialog=new H(),this.imageUrl="",this.uploadProgress=0,this.showUpload=!1,this.isUploading=!1,this.max_answer_length=1e4,this.cansubmit=!1,this.image_ids=[],this.dialogVisible=!1,this.privateAnswer={selected:!1,explainVisible:!1,explainTimer:null},this.freeToAnswer={selected:!1,explainVisible:!1,explainTimer:null},this.askText=0,this.scheduledVisible=!1,this.isModifyScheduledJob=!1,this.scheduledJobTime=sa(new Date(),11),this.modifyScheduledJobTime="",this.emojiVisible=!1,this.isBold=!1,this.existingImagesLength=0,this.posterChecked=!0;}ngOnInit(){this.selectedGroup=this.indexService.getTargetGroup(!0),this.initPosterCheckbox();}ngOnDestroy(){this.topicDetailService.canLeaveQATopic=!0;}get scheduledJobAbility(){let e=this.modifyQATopic&&!this.modifyQATopic.hasOwnProperty("job");return!this.topicData.question.fee&&!e;}get showPosterCheckbox(){return!this.modifyQATopic;}editorCreated(){let e=JSON.parse(localStorage.getItem("tempAnswer"));if(e){let t=e.ops?e:{ops:[{insert:e}]};this.answerEditor.setContents(t),this.cansubmit=!0,this.topicDetailService.canLeaveQATopic=!1;}else if(this.mainService.modifyQATopic){this.modifyQATopic=this.mainService.modifyQATopic,this.mainService.modifyQATopic=null;let t=this.modifyQATopic.answer.text;if(t&&this.answerEditor.setContents(this.answerEditor.parseContents(t)),this.isModifyScheduledJob=this.modifyQATopic.hasOwnProperty("job"),this.isModifyScheduledJob){let r=this.modifyQATopic.job.scheduled_time;this.scheduledJobTime=r,this.modifyScheduledJobTime=r;}this.scheduledVisible=this.isModifyScheduledJob,this.modifyQATopic.answer.images&&(this.imageUrl=String(this.modifyQATopic.answer.images[0].thumbnail.url),this.image_ids.push(this.modifyQATopic.answer.images[0].image_id),this.showUpload=!0),this.cansubmit=!0,this.topicDetailService.canLeaveQATopic=!1;}}contentChange(){this.cansubmit=this.answerEditor.getLength()>0&&this.answerEditor.getLength()<=1e4,this.askText=this.answerEditor.getLength(),this.topicDetailService.canLeaveQATopic=!this.cansubmit,window.localStorage.setItem("tempAnswer",JSON.stringify(this.answerEditor.getContents()));}closeTopicDetail(e){e.stopPropagation(),this.cansubmit?this.answerTopic.emit("showAsk"):this.answerTopic.emit("close");}removeImage(){this.imageUrl="",this.image_ids=[],this.showUpload=!1;}handlePaste(e){if(e.stopPropagation(),e.clipboardData&&e.clipboardData.items){let t=e.clipboardData.items,r=e.clipboardData.getData("text/html");if(new DOMParser().parseFromString(r,"text/html").querySelector("html").getAttribute("xmlns:o")!=="urn:schemas-microsoft-com:office:office")try{for(let m of t)if(m.type.indexOf("image")!==-1){if(this.image_ids.length>0||this.isUploading)return this.message.info({content:"\u56DE\u7B54\u53EA\u80FD\u4E0A\u4F20\u4E00\u5F20\u56FE\u7247",type:"warning"}),!1;this.isUploading=!0;let v=m.getAsFile();return Oi(v,x=>{this.createTopicService.handleCopyAndDrag([x]);}),!1;}}catch(m){}}}scheduledAnswer(){let e={req_data:{answer:{topic_id:this.topicData.topic_uid||this.topicData.topic_id,text:this.handleEditorContent(),image_ids:this.image_ids},scheduled_time:this.scheduledJobTime}},t=this.selectedGroup.group_id;this.isModifyScheduledJob?this.http.put(j.editJob(t,this.modifyQATopic.job.id),e).subscribe(r=>{r.succeeded?(localStorage.removeItem("tempAnswer"),this.message.info({content:"\u5B9A\u65F6\u56DE\u7B54\u4FEE\u6539\u6210\u529F",type:"success"}),this.answerTopic.emit("close"),this.allScheduledJobsService.getScheduledJobsList(t)):this.http.handleExceptionCode(r,"\u4FEE\u6539\u5B9A\u65F6\u56DE\u7B54\u593
1451\u8D25"),this.privateAnswer.selected=!1,this.freeToAnswer.selected=!1;}):(this.privateAnswer.selected&&(e.req_data.answer.silenced=!0),this.http.post(j.postJob(t),e).subscribe(r=>{r.succeeded?(localStorage.removeItem("tempAnswer"),this.message.info({content:"\u5B9A\u65F6\u56DE\u7B54\u53D1\u5E03\u6210\u529F",type:"success"}),this.answerTopic.emit("close"),this.answerlistService.updateUnswerList({topicId:this.topicData.topic_uid||this.topicData.topic_id,type:"scheduled",silenced:this.privateAnswer.selected}),this.indexService.scheduledJobsCount===0?this.indexService.scheduledJobsCount++:this.allScheduledJobsService.getScheduledJobsList(t)):this.http.handleExceptionCode(r,"\u5B9A\u65F6\u56DE\u7B54\u53D1\u5E03\u5931\u8D25"),this.privateAnswer.selected=!1,this.freeToAnswer.selected=!1;}));}answer(){if(!this.bindPhoneDialogService.hasBindPhoneNumber())return;let e=this.answerEditor.getLength();if(!e){this.message.info({content:"\u56DE\u7B54\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"});return;}if(e>this.max_answer_length){this.message.info({content:"\u9519\u8BEF\u63D0\u793A\u8BF7\u8F93\u5165\u5C0F\u4E8E"+this.max_answer_length+"\u4E2A\u5B57\u7B26\u7684\u5185\u5BB9\uFF0C\u5DF2\u8D85\u51FA\u4E86"+(e-this.max_answer_length)+"\u4E2A\u5B57\u7B26"});return;}if(this.scheduledVisible){this.scheduledAnswer();return;}let t={req_data:{text:this.handleEditorContent(),image_ids:this.image_ids}};if(this.modifyQATopic){let r=this.modifyQATopic.topic_uid||this.modifyQATopic.topic_id;this.http.put(j.editAnswerQuestion(r),t).subscribe(a=>{a.succeeded?(localStorage.removeItem("tempAnswer"),this.message.info({content:"\u4E3B\u9898\u4FEE\u6539\u6210\u529F",type:"success"}),this.answerTopic.emit("close"),this.modifyQATopic.openType==="notify"?this.notifyService.updataNotifyData(!0):this.mainService.topicList=this.mainService.topicList.map(p=>p.topic_id===this.modifyQATopic.topic_id||p.topic_uid===this.modifyQATopic.topic_uid?a.resp_data.topic:p)):this.http.handleExceptionCode(a,"\u4FEE\u6539\u4E3B\u9898\u5931\u8D25");});}else{let r=this.topicData.topic_uid||this.topicData.topic_id||"",a=this.topicDetailService.getAnswerInputStatus().fromWhere==="mainTopics";this.privateAnswer.selected&&(t.req_data.silenced=!0),this.freeToAnswer.selected&&(t.req_data.free_answer=!0),this.http.post(j.answerQuestion(r),t).subscribe(p=>{var m;p.succeeded?(localStorage.removeItem("tempAnswer"),this.posterChecked&&this.showPosterCheckbox&&(m=p.resp_data)!=null&&m.topic&&["in_review","transcoding","transcode_failed"].indexOf(p.resp_data.topic.process_status)===-1&&this.showPosterDialog.emit(p.resp_data.topic),this.answerlistService.updateUnswerList({topicId:this.topicData.topic_uid||this.topicData.topic_id,type:"normal",silenced:this.privateAnswer.selected}),this.message.info({content:"\u4E3B\u9898\u53D1\u8868\u6210\u529F",type:"success"}),this.answerTopic.emit("close"),a?this.mainService.topicList.splice(this.mainService.getQuestionIndex(),1):this.notifyService.updataNotifyData(!0)):this.http.handleExceptionCode(p,"\u53D1\u8868\u4E3B\u9898\u5931\u8D25"),this.privateAnswer.selected=!1,this.freeToAnswer.selected=!1;});}}handleCommentKeyup(e){e.keyCode===13&&this.answer();}handleEditorContent(){let e=this.answerEditor.getContents(),t="";return e.ops.forEach(r=>{var a;r.insert.mention?t+=`<e type="mention" uid="${r.insert.mention.id}" title="${encodeURIComponent("@"+r.insert.mention.value)}" />`:(a=r.attributes)!=null&&a.bold?t+=`<e type="text_bold" title="${encodeURIComponent(r.insert)}" />`:r.insert.emoji?t+=r.insert.emoji.type==="text"?r.insert.emoji.title:`[${r.insert.emoji.title}]`:t+=r.insert;}),t;}handleAnswerBtn(e){let t=e;this[t].selected=!this[t].selected,this[t].selected?(this[t].explainVisible=!0,this[t].explainTimer||(this[t].explainTimer=setTimeout(()=>{this[t].explainVisible=!1;},2e3))):(this[t].explainVisible=!1,clearTimeout(this[t].explainTimer),this[t].explainTimer=null);}stopPropagation(e){e.stopPropagation();}cancelEvent(e){e.stopPropagation();}changeScheduledVisible(){this.isModifyScheduledJob||(this.scheduledVisible=!this.scheduledVisible);}handleFileClick(){this.emojiVisible=!1;}editorSelectionChange(e){let t=e==null?void 0:e.format;t&&(this.isBold=t.bold);}insertBoldText(){this.answerEditor.insertBoldStyle();}changeEmojiVisible(e){this.emojiVisible=!this.emojiVisible,this.emojiVisible&&(this.ref.detectChanges(),this.emoji.nativeElement.scrollIntoView()),e&&(e.preventDefault(),e.stopPropagation());}handlePanelClick(e){e.stopPropagation(),this.emojiVisible=!1;}watchFileChange(e){e.action==="addImage"?(this.image_ids.push(e.id),this.isUploading=!1):e.action==="removeImage"&&(e.id&&this.image_ids.splice(this.image_ids.findIndex(t=>t===e.id),1),this.isUploading=!1);}initPosterCheckbox(){let e=localStorage.getItem("poster_disabled_groups");e!==null&&(JSON.parse(e).length>0&&localStorage.setItem("poster_enabled","false"),localStorage.removeItem("poster_disabled_groups"));let t=localStorage.getItem("poster_enabled");this.posterChecked=t!=="false";}handlePosterChange(e){let t=e.target.checked;this.posterChecked=t,localStorage.setItem("poster_enabled",String(t));}};n.ɵfac=function(t){return new(t||n)(O(W),O(le),O(oe),O(Te),O(q),O(Di),O(sn),O(No),O(zn),O(on),O(Ti));},n.ɵcmp=F({type:n,selectors:[["app-answer-question"]],viewQuery:function(t,r){if(t&1&&_e(E1,7)(D1,5),t&2){let a;ee(a=te())&&(r.answerEditor=a.first),ee(a=te())&&(r.emoji=a.first);}},inputs:{topicData:"topicData",index:"index"},outputs:{answerTopic:"answer-topic",updateTopics:"update-topics",showPosterDialog:"show-poster-dialog"},standalone:!1,decls:41,vars:30,consts:[["answerEditor",""],["uploadComponent",""],["picUpload",""],["bold",""],["scheduledJobBtn",""],["emoji",""],[1,"answer-input",3,"click"],[1,"title"],[1,"text"],[1,"tips"],[1,"close-icon",3,"click"],[1,"answer-box"],["placeholder","\u63D0\u95EE\u8005\u6B63\u7B49\u5F85\u60A8\u7684\u56DE\u7B54...",1,"text-area-wrapper",3,"editor-created","editor-content-change","editor-selection-change","editor-paste","editor-post","boldable","group"],[1,"text-count",3,"ngClass"],[3,"update-files","picLength","isMutiple"],[1,"scheduled-answer-timer"],[1,"operation-icon"],[1,"left"],[1,"emoji",3,"click","ngClass"],[1,"explain"],[1,"pic",3,"click","ngClass"],[1,"bold",3,"click","ngClass"],[1,"scheduled",3,"click","ngClass","hidden"],[1,"poster-checkbox-container"],[1,"emoji-panel"],[1,"submit-answer-right"],[1,"answer-btn"],[1,"submit-btn",3,"click","keyup"],[1,"image-list-container"],[1,"image-item"],[3,"time-change","defaultTime","fourteenMax"],["type","checkbox","id","answer-poster-checkbox",3,"change","checked"],["for","answer-poster-checkbox"],[3,"add-emoji"],[1,"answer-btn",3,"click"],[1,"icon",3,"ngClass"],[1,"explain",3,"hover","click"],[1,"explain-icon"],[1,"explain-content",2,"width","192px",3,"hidden"],[1,"explain-content",3,"hidden"],["alt","",3,"src"],[1,"overlay"],[1,"cover"],[1,"remove",3,"click"],[1,"progress-container"],[1,"progress",3,"ngStyle"]],template:function(t,r){t&1&&(s(0,"div",6),f("click",function(p){return r.handlePanelClick(p);}),s(1,"div",7)(2,"div",8),g(3,"Web \u7248\u4EC5\u652F\u6301\u6587\u5B57\u56DE\u7B54\uFF0C\u5982\u9700\u8BED\u97F3\u8BF7\u79FB\u6B65 App \u4F5C\u7B54"),c(),s(4,"div",9),g(5," \u6709\u5408\u4F19\u4EBA/\u5609\u5BBE\u66F4\u64C5\u957F\u8FD9\u4E2A\u95EE\u9898\uFF1F\u4E0D\u5982 @ \u4ED6\u53D1\u8868\u56DE\u7B54\u5427\uFF5E "),c(),s(6,"i",10),f("click",function(p){return r.closeTopicDetail(p);}
145),c()(),s(7,"div",11)(8,"app-editor",12,0),f("editor-created",function(){return r.editorCreated();})("editor-content-change",function(){return r.contentChange();})("editor-selection-change",function(p){return r.editorSelectionChange(p);})("editor-paste",function(p){return r.handlePaste(p);})("editor-post",function(){return r.answer();}),c(),s(10,"div",13),g(11),c()(),s(12,"app-upload",14,1),f("update-files",function(p){return r.watchFileChange(p);}),h(14,V1,4,2,"div",15),s(15,"div",16)(16,"div",17)(17,"button",18),f("click",function(p){return r.changeEmojiVisible(p);}),s(18,"span",19),g(19,"\u6DFB\u52A0\u8868\u60C5"),c()(),s(20,"div",20,2),f("click",function(){return r.handleFileClick();}),s(22,"span",19),g(23,"\u6DFB\u52A0\u56FE\u7247"),c()(),s(24,"div",21,3),f("click",function(){return r.insertBoldText();}),s(26,"span",19),g(27,"\u52A0\u7C97"),c()(),s(28,"div",22,4),f("click",function(){return r.changeScheduledVisible();}),s(30,"span",19),g(31,"\u5B9A\u65F6\u53D1\u5E03"),c()(),h(32,R1,6,1,"div",23),h(33,L1,3,0,"div",24),c(),s(34,"div",25),h(35,B1,7,4,"div",26),h(36,N1,7,4,"div",26),s(37,"div",27),f("click",function(){return r.answer();})("keyup",function(p){return r.handleCommentKeyup(p);}),g(38),c()()()(),s(39,"div",28),h(40,j1,5,1,"div",29),c()()),t&2&&(l(8),C("boldable",!0)("group",r.topicData.group),l(2),C("ngClass",R(20,I1,r.askText>1e4)),l(),V(" (",r.askText,"/10000) "),l(),C("picLength",r.existingImagesLength)("isMutiple",!1),l(2),_(r.scheduledVisible?14:-1),l(3),C("ngClass",R(22,F1,r.emojiVisible)),l(3),C("ngClass",R(24,Sr,r.showUpload)),l(4),C("ngClass",R(26,Sr,r.isBold)),l(4),C("ngClass",R(28,Sr,r.scheduledVisible))("hidden",!r.scheduledJobAbility),l(4),_(r.showPosterCheckbox?32:-1),l(),_(r.emojiVisible?33:-1),l(2),_(r.modifyQATopic?-1:35),l(),_(!r.modifyQATopic&&r.topicData.question.fee&&!r.topicData.question.expired?36:-1),l(),Bn("background-color",r.cansubmit?"var(--dweb-brand)":"var(--dweb-disabled)"),l(),V(" ",r.scheduledVisible?"\u5B9A\u65F6\u63D0\u4EA4\u56DE\u7B54":"\u63D0\u4EA4\u56DE\u7B54"," "),l(2),_(r.showUpload?40:-1));},dependencies:[K,De,Ca,Ei,So,To],styles:['@charset "UTF-8";.answer-input[_ngcontent-%COMP%]{position:relative;top:10px;margin:0 auto;background:var(--dweb-bg-panel);width:800px;border-radius:4px}.answer-input[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{text-align:center;position:relative;height:77px;padding-top:18px;box-sizing:border-box}.answer-input[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-family:PingFangSC-Medium;font-size:14px;color:var(--dweb-text-secondary);line-height:20px;margin-bottom:4px}.answer-input[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .tips[_ngcontent-%COMP%]{font-family:PingFangSC-Regular;font-size:13px;color:var(--dweb-text-muted)}.answer-input[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;height:10px;width:10px;background-image:url("./media/[email protected]");background-position:-357px -197px;position:absolute;top:34px;right:30px}.answer-input[_ngcontent-%COMP%]   .answer-box[_ngcontent-%COMP%]{position:relative;height:277px;border:1px solid var(--dweb-brand);border-radius:2px;margin:0 30px}.answer-input[_ngcontent-%COMP%]   .answer-box[_ngcontent-%COMP%]   .text-area-wrapper[_ngcontent-%COMP%]{width:100%}.answer-input[_ngcontent-%COMP%]   .answer-box[_ngcontent-%COMP%]   .text-area-wrapper[_ngcontent-%COMP%]     .ql-editor{height:240px;padding:14px 15px;line-height:21px;font-size:15px}.answer-input[_ngcontent-%COMP%]   .answer-box[_ngcontent-%COMP%]   .text-area-wrapper[_ngcontent-%COMP%]     .ql-editor.ql-blank:before{left:19px}.answer-input[_ngcontent-%COMP%]   .answer-box[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;height:238px;line-height:21px;font-family:PingFangSC-Regular;font-size:15px;color:var(--dweb-text-primary, #2F3034);text-align:justify;padding:14px 15px;border:none;box-sizing:border-box;resize:none;outline:none}.answer-input[_ngcontent-%COMP%]   .answer-box[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::-webkit-input-placeholder{color:var(--dweb-text-faint)}.answer-input[_ngcontent-%COMP%]   .answer-box[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::-moz-placeholder{color:var(--dweb-text-faint)}.answer-input[_ngcontent-%COMP%]   .answer-box[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]:-moz-placeholder{color:var(--dweb-text-faint)}.answer-input[_ngcontent-%COMP%]   .answer-box[_ngcontent-%COMP%]   .text-count[_ngcontent-%COMP%]{position:absolute;bottom:10px;left:15px;font-size:12px;color:var(--dweb-text-faint)}.answer-input[_ngcontent-%COMP%]   .answer-box[_ngcontent-%COMP%]   .text-count.text-limit[_ngcontent-%COMP%]{color:red}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]{height:24px;margin-top:20px;margin-left:30px;padding-bottom:20px;
145display:flex;justify-content:space-between;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]{display:none;position:absolute;bottom:38px;left:-28px;width:70px;background:var(--dweb-bg-warm);border:1px solid var(--dweb-border-tooltip);box-shadow:0 8px 16px 0 var(--dweb-border-faint);border-radius:6px;padding:10px;box-sizing:border-box;font-size:12px;color:var(--dweb-text-body);line-height:20px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]:before{content:"";position:absolute;display:block;width:0;height:0;border:5px solid var(--dweb-border-tooltip);border-right:5px solid transparent;border-bottom:5px solid transparent;border-top-left-radius:1px;transform:rotate(-135deg);bottom:-5px;left:28px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]:after{content:"";position:absolute;display:block;width:0;height:0;border:6px solid var(--dweb-bg-warm);border-right:6px solid transparent;border-bottom:6px solid transparent;transform:rotate(-135deg);bottom:-3px;left:27px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .emoji[_ngcontent-%COMP%]{height:18px;width:18px;background-image:url("./media/[email protected]");background-position:-333px -308px;margin-right:24px;cursor:pointer;border:none;outline:none;background-color:transparent;position:relative}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .emoji.actived[_ngcontent-%COMP%]{background-position:-333px -348px!important}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .emoji[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block;width:72px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .pic[_ngcontent-%COMP%]{width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-384px -307px;margin-right:24px;cursor:pointer;position:relative}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .pic.inactive[_ngcontent-%COMP%]{pointer-events:none;background-position:-384px -380px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .pic.active[_ngcontent-%COMP%]{background-position:-384px -347px!important}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .pic[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block;width:72px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]{width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-362px -307px;margin-right:24px;cursor:pointer;position:relative}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .bold.active[_ngcontent-%COMP%]{background-position:-362px -346px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .bold.inactive[_ngcontent-%COMP%]{background-position:-362px -307px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block;width:48px;left:-17px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:before{left:17px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:after{left:16px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .scheduled[_ngcontent-%COMP%]{cursor:pointer;position:relative;width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-414px -308px;margin-right:24px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .scheduled.active[_ngcontent-%COMP%]{background-position:-414px -347px!important}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .scheduled.inactive[_ngcontent-%COMP%]{pointer-events:none;background-position:-414px -381px!important}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .scheduled[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block;width:72px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]:before{content:"";position:absolute;
145left:-12px;top:50%;transform:translateY(-50%);width:1px;height:12px;background-color:var(--dweb-bg-canvas)}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block;width:133px;padding:10px;left:-20px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:before{left:58px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:after{left:57px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:0;height:0;margin:0;visibility:hidden}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:before{background-position:-671px -354px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:12px;color:var(--dweb-text-muted, #8B8E9D);white-space:nowrap;cursor:pointer}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:before{content:"";display:inline-block;background-image:url("./media/[email protected]");background-position:-671px -314px;width:16px;height:16px;margin-right:6px;flex-shrink:0}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .tip-text[_ngcontent-%COMP%]{font-size:14px;color:var(--dweb-text-faint);margin-left:30px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .emoji-panel[_ngcontent-%COMP%]{position:absolute;top:48px;left:-20px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .submit-answer-right[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:30px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .submit-answer-right[_ngcontent-%COMP%]   .answer-btn[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:14px;color:var(--dweb-text-muted);cursor:pointer;margin-left:25px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .submit-answer-right[_ngcontent-%COMP%]   .answer-btn[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-670px -313px;margin-right:6px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .submit-answer-right[_ngcontent-%COMP%]   .answer-btn[_ngcontent-%COMP%]   .icon.active[_ngcontent-%COMP%]{background-position:-670px -353px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .submit-answer-right[_ngcontent-%COMP%]   .answer-btn[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]{position:relative;left:6px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .submit-answer-right[_ngcontent-%COMP%]   .answer-btn[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]:hover   .explain-content[_ngcontent-%COMP%]{display:block}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .submit-answer-right[_ngcontent-%COMP%]   .answer-btn[_ngcontent-%COMP%]   .explain-icon[_ngcontent-%COMP%]{display:inline-block;position:relative;top:1px;width:12px;height:12px;background-image:url("./media/[email protected]");background-position:-233px -421px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .submit-answer-right[_ngcontent-%COMP%]   .answer-btn[_ngcontent-%COMP%]   .explain-content[_ngcontent-%COMP%]{width:216px;text-align:left;position:absolute;
145left:-154px;top:26px;z-index:3;font-family:PingFangSC-Regular;font-size:12px;line-height:20px;background:var(--dweb-bg-warm);border-radius:6px;border:1px solid rgba(0,0,0,.08);box-shadow:0 8px 16px #0000000d;padding:16px 15px;color:var(--dweb-text-secondary)}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .submit-answer-right[_ngcontent-%COMP%]   .answer-btn[_ngcontent-%COMP%]   .explain-content[_ngcontent-%COMP%]:before{content:"";position:absolute;display:block;width:0;height:0;border:5px solid rgba(0,0,0,.08);border-left:5px solid transparent;border-top:5px solid transparent;border-bottom-right-radius:1px;transform:rotate(-135deg);top:-6px;left:154px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .submit-answer-right[_ngcontent-%COMP%]   .answer-btn[_ngcontent-%COMP%]   .explain-content[_ngcontent-%COMP%]:after{content:"";position:absolute;display:block;width:0;height:0;border:6px solid var(--dweb-bg-warm);border-left:6px solid transparent;border-top:6px solid transparent;transform:rotate(-135deg);top:-3px;left:153px}.answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .submit-answer-right[_ngcontent-%COMP%]   .submit-btn[_ngcontent-%COMP%]{cursor:pointer;box-shadow:0 1px 2px #0000000d;border-radius:6px;font-size:16px;color:#fff;padding:0 13px;height:36px;line-height:36px;text-align:center;margin-left:30px}.answer-input[_ngcontent-%COMP%]   .scheduled-answer-timer[_ngcontent-%COMP%]{height:50px;background:var(--dweb-bg-cool);display:flex;align-items:center;padding-left:30px}.answer-input[_ngcontent-%COMP%]   .scheduled-answer-timer[_ngcontent-%COMP%]     .text{font-size:14px;color:var(--dweb-text-muted)}.answer-input[_ngcontent-%COMP%]     .image-list-container{padding:0 30px}.image-item[_ngcontent-%COMP%]{display:inline-block;margin-right:6px;position:relative;margin-bottom:15px}.image-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100px;height:100px;object-fit:cover}.image-item[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%]{width:100px;height:100px;background:var(--dweb-bg-subtle, #F5F6F7);display:inline-block}.image-item[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%]   .progress-container[_ngcontent-%COMP%]{margin-top:49px;margin-left:20px;width:60px;background:var(--dweb-bg-panel)}.image-item[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%]   .progress-container[_ngcontent-%COMP%]   .progress[_ngcontent-%COMP%]{height:2px;background:var(--dweb-brand, #16B998);width:0}.image-item[_ngcontent-%COMP%]   .cover[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:100%;height:100%;background:#0006}.image-item[_ngcontent-%COMP%]   .remove[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-568px -222px;cursor:pointer}.image-item[_ngcontent-%COMP%]   .cover[_ngcontent-%COMP%], .image-item[_ngcontent-%COMP%]   .remove[_ngcontent-%COMP%]{opacity:0;transition:opacity .15s ease-in-out}.image-item[_ngcontent-%COMP%]:hover   .remove[_ngcontent-%COMP%], .image-item[_ngcontent-%COMP%]:hover   .cover[_ngcontent-%COMP%]{opacity:1}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.answer-input[_ngcontent-%COMP%]   .img-icon[_ngcontent-%COMP%], .submit-answer-right[_ngcontent-%COMP%]   .explain-icon[_ngcontent-%COMP%], .submit-answer-right[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .answer-input[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%], .operation-icon[_ngcontent-%COMP%]   .emoji[_ngcontent-%COMP%], .operation-icon[_ngcontent-%COMP%]   .pic[_ngcontent-%COMP%], .operation-icon[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%], .operation-icon[_ngcontent-%COMP%]   .scheduled[_ngcontent-%COMP%], .operation-icon[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:before{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}@media screen and (max-width:2000px){.answer-input[_ngcontent-%COMP%]{width:900px}}@media screen and (max-width:1550px){.answer-input[_ngcontent-%COMP%]{width:700px}}html[data-theme=dark][_nghost-%COMP%]   .answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]{background:var(--dweb-bg-panel-2);
145box-shadow:-5px 6px 16px 0 var(--dweb-shadow)}html[data-theme=dark][_nghost-%COMP%]   .answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]:after, html[data-theme=dark]   [_nghost-%COMP%]   .answer-input[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]:after{border-top-color:var(--dweb-bg-panel-2);border-left-color:var(--dweb-bg-panel-2)}']});let o=n;return o;})();var H1=["like"],U1=o=>({"disabled-copy":o}),q1=o=>({liked:o}),Q1=o=>({subscribed:o}),$u=o=>({left:o}),Hu=(o,n)=>n.comment_id,W1=(o,n)=>n.owner.user_id;function X1(o,n){if(o&1){let i=y();s(0,"span",25),f("click",function(){b(i);let t=d();return P(t.enterGroup());}),g(1,"\u8FDB\u5165\u661F\u7403 "),M(2,"div",26),c();}}function J1(o,n){}function Y1(o,n){o&1&&(s(0,"span"),g(1,"\u98CE\u9669\u63D0\u793A\uFF1A\u5E02\u573A\u6709\u98CE\u9669\uFF0C\u6295\u8D44\u9700\u8C28\u614E"),c());}function K1(o,n){o&1&&(s(0,"span",27),g(1,"|"),c());}function Z1(o,n){if(o&1&&(s(0,"span"),g(1),$(2,"transformFullTime"),c()),o&2){let i=d(2);l(),V("\u6700\u540E\u7F16\u8F91\uFF1A",Z(2,1,i.topic.modify_time));}}function eb(o,n){if(o&1&&(s(0,"div",14),h(1,Y1,2,0,"span"),h(2,K1,2,0,"span",27),h(3,Z1,3,3,"span"),c()),o&2){let i=d();l(),_(i.riskWarningType==="finance"?1:-1),l(),_(i.riskWarningType==="finance"&&i.topic.modify_time?2:-1),l(),_(i.topic.modify_time?3:-1);}}function tb(o,n){if(o&1){let i=y();s(0,"div",35),f("click",function(){b(i);let t=d(2);return P(t.handleReport());}),c();}}function nb(o,n){if(o&1){let i=y();s(0,"app-topic-share-operation",36),f("operation-emitter",function(){b(i);let t=d(2);return P(t.closeShareOperation());})("show-poster-dialog",function(t){b(i);let r=d(2);return P(r.handleShowPosterDialog(t));}),c();}if(o&2){let i=d(2);C("topic",i.topic)("visible",i.shareOperationVisible);}}function ib(o,n){if(o&1){let i=y();s(0,"div",15),M(1,"div",28,0),s(3,"div",29),f("click",function(){b(i);let t=d();return P(t.handleCommentClick());}),c(),s(4,"div",30),f("click",function(){b(i);let t=d();return P(t.handleFavorite());}),c(),h(5,tb,1,0,"div",31),s(6,"div",32)(7,"div",33),f("click",function(){b(i);let t=d();return P(t.showShareOperation());}),c(),h(8,nb,1,2,"app-topic-share-operation",34),c()();}if(o&2){let i=d();l(),C("ngClass",R(4,q1,i.topic.user_specific==null?null:i.topic.user_specific.liked)),l(3),C("ngClass",R(6,Q1,i.topic.user_specific==null?null:i.topic.user_specific.subscribed)),l(),_(i.reportVisible?5:-1),l(3),_(i.shareOperationVisible?8:-1);}}function ob(o,n){if(o&1){let i=y();s(0,"img",39),f("click",function(){let t=b(i).$implicit,r=d(2);return P(r.toFootprint(t.owner.user_id));}),c();}if(o&2){let i=n.$implicit,e=n.$index;C("src",li(i.owner.avatar_url),se)("ngStyle",R(3,$u,-4*e+"px"));}}function rb(o,n){if(o&1&&(s(0,"div",16),B(1,ob,1,5,"img",37,W1),s(3,"span",38),g(4),c()()),o&2){let i=d();l(),N(i.likeUsers),l(2),C("ngStyle",R(2,$u,-4*i.likeUsers.length+"px")),l(),A(i.likeText);}}function ab(o,n){o&1&&M(0,"div",17);}function sb(o,n){if(o&1){let i=y();s(0,"app-comment",40),f("close-comment",function(t){b(i);let r=d();return P(r.closeComment(t));}),c();}if(o&2){let i=d();C("data",i.topic);}}function cb(o,n){if(o&1){let i=y();s(0,"img",46),f("click",function(){b(i);let t=d().$implicit,r=d();return P(r.toFootprint(t.owner.user_id));}),c();}if(o&2){let i=d().$implicit,e=d();C("src",i.owner.avatar_url?i.owner.avatar_url:e.defaultImageUrl,se);}}function lb(o,n){if(o&1){let i=y();s(0,"img",47,1),f("mouseenter",function(){b(i);let t=ct(3);return P(t.open());})("mouseleave",function(){b(i);let t=ct(3);return P(t.close());}),c(),M(2,"app-user-info-card",48,2);}if(o&2){let i=ct(1),e=d().$implicit,t=d();C("src",e.owner.avatar_url?e.owner.avatar_url:t.defaultImageUrl,se),l(2),C("target_user_id",e.owner.user_id)("anchor",i);}}function pb(o,n){if(o&1){let i=y();s(0,"app-comment-item",51),f("delComment",function(t){b(i);let r=d(3);return P(r.delComment(t));}),c();}if(o&2){let i=n.$implicit,e=d(3);C("comment",i)("data",e.topic)("fromWhere",e.fromWhere);}}function db(o,n){if(o&1&&(s(0,"div",45)(1,"div",49),B(2,pb,1,3,"app-comment-item",50,Hu),$(4,"transformComments"),c()()),o&2){let i=d().$implicit,e=d();l(2),N(Pe(4,0,i.replied_comments,e.topic.group.group_id));}}function gb(o,n){if(o&1){let i=y();s(0,"div",19)(1,"div",41)(2,"div",42),h(3,cb,1,1,"img",43)(4,lb,4,3),s(5,"app-comment-item",44),f("delComment",function(t){b(i);let r=d();return P(r.delComment(t));}),c()(),h(6,db,5,3,"div",45),c()();}if(o&2){let i=n.$implicit,e=d();C("hidden",e.hideOperation),l(3),_(e.isShowUserCard(i.owner.user_id)?4:3),l(2),C("comment",i)("data",e.topic)("fromWhere",e.fromWhere)("hadSticky",e.comments[0].sticky),l(),_(i.replied_comments&&i.replied_comments.length>0?6:-1);}}function ub(o,n){if(o&1){let i=y();s(0,"app-lottie-loading",52),f("infinite",function(t){b(i);let r=d();return P(r.getMoreComment(t));}),g(1," \u8BC4\u8BBA\u52A0\u8F7D\u4E2D... "),c();}if(o&2){let i=d();C("scroller",i.scrollerId);}}function mb(o,n){if(o&1){let i=y();s(0,"app-answer-question",53),f("answer-topic",function(t){b(i);let r=d();return P(r.closeDetail(t));})("show-poster-dialog",function(t){b(i);let r=d();return P(r.handleShowPosterDialog(t));}),c();}if(o&2){let i=d();C("topicData",i.topic);}}function hb(o,n){if(o&1){let i=y();s(0,"app-dialog",54),f("dialog-confirm",function(t){b(i);let r=d();return P(r.handleDialogConfirm(t));})("dialog-cancel",function(t){b(i);let r=d();return P(r.handleDialogCancel(t));}),s(1,"div"),g(2,"\u786E\u5B9A\u79BB\u5F00\u8BE5\u9875\u9762\uFF1F\u77E5\u8BC6\u661F\u7403\u5C06\u4E0D\u4F1A\u4FDD\u5B58\u4F60\u6240\u505A\u7684\u66F4\u6539"),c()();}}function _b(o,n){if(o&1){let i=y();s(0,"app-reason-dialog",55),f("dialog-confirm",function(t){b(i);let r=d();return P(r.reportTopic(t));})("dialog-cancel",function(){b(i);let t=d();return P(t.cancelReport());}),c();}o&2&&C("maxlength",100);}var ft=(()=>{let n=class n{get tags(){return this.isFromDetailPage||this.topicService.isFromAnotherDetail?this.topicOwnService.tagsArray:this.topicService.tags;}get likesCount(){let{likes_count:e}=this.topic;return e;}get likeText(){return this.likesCount<=10?"\u89C9\u5F97\u5F88\u8D5E":`\u7B49${this.likesCount}\u4EBA\u89C9\u5F97\u5F88\u8D5E`;}get riskWarningType(){let e=this.indexService.getTargetGroup(!0,!1);if(e&&e.group_id===this.topic.group.group_id)return e.risk_warning_type;}constructor(e,t,r,a,p,m,v,x,w,k){this.topicService=e,this.topicOwnService=t,this.message=r,this.indexService=a,this.mainService=p,this.topicDetailService=m,this.componentFactoryResolver=v,this.cdr=x,this.userInfoCardService=w,this.main_content_show_user_card_prpover=k,this.handleTopicDetail=new H(),this.showPosterDialogEmitter=new H(),this.comments=[],this.prevScrollTop=0,this.subscriptions=[],this.likeUsers=[],this.defaultImageUrl=an,this.commentVisible=!1,this.hideOperation=!1,this.showAnswerInput=!1,this.fromWhere="detail",this.hideSkeleton=!1,this.reportOtherVisible=!1,this.reportVisible=!1,this.shareOperationVisible=!1,this.currentPosterTopic=null,this.showMoreComments=!0,this.commentsTotal=0,this.getMore=!1,this.dialogVisible=!1,this.allowCopy=!1,this.isFromDetailPage=!1,this.helpGroupId=ie.HELP_GROUP.ID;}isShowUserCard(e){return this.main_content_show_user_card_prpover&&this.userInfoCardService.isShowUserCard(this.indexService.getSelfInfo("user_id"),e);}ngOnInit(){this.commentsTotal=this.topic.comments_count,this.isFromDetailPage=window.location.href.includes("/topic")||window.location.href.includes("/columns"),this.scrollerId=this.isFromDetailPage?"":"topic-detail-container",this.setupLikeUsers(),this.topicDetailService.topicId=this.topic.topic_id,this.doSubscribe(),this.showAnswerInput=this.topicDetailService.getAnswerInputStatus().status,this.allowCopy=this.mainService.allowCurrentUserCopy;let e=this.topic.type==="q&a"&&!this.topic.answer,t=this.topic.question?this.topic.question.questionee.user_id:null,r=this.indexService.getSelfInfo("user_id")!==this.getTopicOwnerInfo(this.topic,"user_id"),a=e&&this.indexService.getSelfInfo("user_id")===t;this.reportVisible=r||a,this.loadComponent();}setupLikeUsers(){this.topic.latest_likes?this.likeUsers=this.topic.likes_count>10?this.topic.latest_likes.slice(0,10):this.topic.latest_likes:this.likeUsers=[];}ngAfterViewInit(){this.hideOperation||this.subscribeLikeTopic(),this.cdr.detectChanges();}ngOnChanges(){this.loadComponent(),this.setupLikeUsers(),this.cdr.detectChanges();}ngOnDestroy(){this.topicService.tags=null,this.topicService.isFromAnotherDetail=!1,this.subscriptions.forEach(e
145=>e.unsubscribe());}doSubscribe(){let e=this.topicDetailService.comments$.subscribe(S=>{this.getMore?(S.length===0?this.showMoreComments=!1:this.comments=[...this.comments,...S],this.getMore=!1):this.comments=S,this.hideSkeleton=!0,this.infiniteFinishCallback&&this.infiniteFinishCallback(this.showMoreComments);}),t=this.topicDetailService.showAnswerInput$.subscribe(S=>{this.showAnswerInput=S,this.stashTopic&&!this.showAnswerInput&&(this.topic=this.stashTopic,this.stashTopic=null),this.loadComponent();}),r=this.topicService.QuestionTopic$.subscribe(S=>{this.stashTopic||(this.stashTopic=this.topic),this.topic=S,this.showAnswerInput=!0,this.loadComponent();}),a=this.topicService.taskTopic$.subscribe(S=>{S&&(this.topic=Object.assign({},S),this.topic.openType="task",this.setupLikeUsers(),this.loadComponent());}),p=this.topicService.openNewDetail$.subscribe(S=>{S&&(this.topic=Object.assign({},S),this.topic.openType="detail",this.setupLikeUsers(),this.loadComponent());}),m=this.topicOwnService.addComment$.subscribe(S=>{if(S.commentID){let E=S.commentID,I,T=this.comments.findIndex(D=>D.comment_id===E);T!==-1?I=T:this.comments.forEach((D,L)=>{D.replies_count&&D.replied_comments.findIndex(G=>G.comment_id===E)!==-1&&(I=L);}),this.comments[I].replied_comments?this.comments[I].replied_comments=[...this.comments[I].replied_comments,S.comment]:(this.comments[I].replied_comments=[S.comment],this.comments[I].replies_count=1);}else this.comments=[...this.comments,S.comment];}),v=this.topicDetailService.enterGroup$.subscribe(()=>{this.topicDetailService.canLeaveQATopic?(this.topic.showOperation=!1,this.topicDetailService.setAnswerInputStatus(!1),this.handleTopicDetail.emit()):this.dialogVisible=!0;}),x=this.topicDetailService.delTag$.subscribe(S=>{na(this.topic,S.tag);}),w=this.mainService.deleteMember$.subscribe(S=>{this.comments=this.comments.filter(E=>E.owner.user_id!==S),Yn(this.topic).owner.user_id===S&&this.closeDetail("close");}),k=this.topicOwnService.stickyComment$.subscribe(S=>{if(!S.sticky||this.comments[0].sticky){let E=Object.assign({},this.comments[0]);E.sticky=!1,this.comments.splice(0,1),this.topic.show_comments.length&&this.topic.show_comments.splice(0,1);let I=this.comments.findIndex(T=>la(ge(E.create_time),ge(T.create_time)));I!==-1?(this.comments.splice(I,0,E),this.topic.show_comments.splice(I,0,E)):(this.comments.length%30||!this.comments.length)&&(this.comments.push(E),this.topic.show_comments.push(E));}if(S.sticky){let E=this.comments.findIndex(T=>T.comment_id===S.comment_id);E!==-1&&this.comments.splice(E,1),this.comments.unshift(S);let I=this.topic.show_comments.findIndex(T=>T.comment_id===S.comment_id);I!==-1&&this.topic.show_comments.splice(I,1),this.topic.show_comments.unshift(S);}});this.subscriptions.push(e,t,r,a,p,m,v,x,w,k);}cancelEvent(e){let t=e.target;t.closest("app-topic-share-operation")||t.closest(".share-wrapper")||(this.topic.showOperation=!1,this.topic.showAddTag=!1,this.topic.showColumn=!1,this.shareOperationVisible=!1),e.stopPropagation();}closeTopicDetail(e){e.stopPropagation(),this.topicDetailService.canLeaveQATopic?(this.topic.showOperation=!1,this.shareOperationVisible=!1,this.topicDetailService.setAnswerInputStatus(!1),this.handleTopicDetail.emit()):this.dialogVisible=!0;}closeDetail(e){e==="showAsk"?this.dialogVisible=!0:(this.topicDetailService.setAnswerInputStatus(!1),this.handleTopicDetail.emit());}handleDialogConfirm(e){this.dialogVisible=!1,localStorage.removeItem("tempAnswer"),this.topicDetailService.setAnswerInputStatus(!1),this.handleTopicDetail.emit();}handleDialogCancel(e){this.dialogVisible=!1;}initTopicDetailScroll(){this.topicDetailScroll$=At(this.topicDetail,"scroll").pipe(Dt(e=>this.topicDetail.scrollTop),ut(e=>e>this.prevScrollTop?(this.prevScrollTop=e,e>=this.topicDetail.scrollHeight-this.topicDetail.clientHeight-1):(this.prevScrollTop=e,!1)),Ct(400));}loadComponent(){let e=this.getTopicContentItem(),t=this.topicContent.viewContainerRef;t.clear();let r=t.createComponent(e.component);r.instance.data=e.data,r.instance.fromWhere=e.fromWhere,this.hideOperation=!1,this.showAnswerInput&&(!this.topic.answer||this.topic.hasOwnProperty("job"))&&(this.hideOperation=!0);}getTopicContentItem(){let e;return this.topic.type==="talk"?e=new We(En,this.topic,"detail"):this.topic.type==="q&a"&&(!this.topic.answer||this.topic.hasOwnProperty("job"))?e=new We(Li,this.topic,"detail"):this.topic.type==="q&a"&&this.topic.answer?e=new We(ti,this.topic,"detail"):this.topic.type==="task"?e=new We(ni,this.topic):this.topic.type==="solution"&&(e=new We(ii,this.topic,"detail")),e;}handleCommentClick(){if(this.indexService.isGroupOwner)this.commentVisible=!this.commentVisible;else{let e="";this.indexService.isMember?this.indexService.createCommentNeedReward?(e="\u4E0B\u8F7D App \u8D5E\u8D4F\u661F\u4E3B\u540E\u5373\u53EF\u53C2\u4E0E\u4E92\u52A8",this.message.info({content:e}
145)):this.indexService.canCreateComment?this.indexService.notAllowRenewAndExpired?(e="\u670D\u52A1\u5DF2\u5230\u671F\uFF0C\u4E0D\u80FD\u4E92\u52A8",this.message.info({content:e})):this.indexService.needRenewAndExpired?this.message.info({content:"\u8BE5\u661F\u7403\u670D\u52A1\u5DF2\u5230\u671F\uFF0C\u9700\u7EED\u671F\u624D\u80FD\u7EE7\u7EED\u53C2\u4E0E\u661F\u7403\u5185\u4E92\u52A8"}):this.commentVisible=!this.commentVisible:(e="\u6CA1\u6709\u53D1\u8868\u8BC4\u8BBA\u7684\u6743\u9650",this.message.info({content:e})):this.indexService.canCreateComment?this.commentVisible=!this.commentVisible:(e="\u6CA1\u6709\u53D1\u8868\u8BC4\u8BBA\u7684\u6743\u9650",this.message.info({content:e}));}}closeComment(e){this.commentVisible=!1;}subscribeLikeTopic(){this.likeTopic$=At(this.likeElement.nativeElement,"click").pipe(bi(r=>this.indexService.isGroupOwner?(this.likeTopic(),Kt(this.topic.user_specific.liked)):this.indexService.likeTopicNeedReward&&this.indexService.isMember?(this.message.info({content:"\u4E0B\u8F7D App \u8D5E\u8D4F\u661F\u4E3B\u540E\u5373\u53EF\u53C2\u4E0E\u4E92\u52A8"}),Kt()):this.indexService.needRenewAndExpired?(this.message.info({content:"\u8BE5\u661F\u7403\u670D\u52A1\u5DF2\u5230\u671F\uFF0C\u9700\u7EED\u671F\u624D\u80FD\u7EE7\u7EED\u53C2\u4E0E\u661F\u7403\u5185\u4E92\u52A8"}),Kt()):(this.likeTopic(),Kt(this.topic.user_specific.liked))),Ct(1e3),tr());let e=this.likeTopic$.subscribe(()=>{this.topicService.likeTopic(this.topic.topic_id,this.topic.user_specific.liked);});this.subscriptions.push(e);let t=this.topicService.likeTopic$.subscribe(r=>{this.likeTopic();});this.subscriptions.push(t);}likeTopic(){var r;let e=this.indexService.getSelfInfo("user_id"),t=this.indexService.getSelfInfo("user_name");if(this.topic.user_specific)this.topic.user_specific.liked=!this.topic.user_specific.liked;else{let a={liked:!0,subscribed:!1};this.topic.user_specific=a;}if(!this.topic.user_specific.liked)this.likeUsers=this.likeUsers.filter(a=>a.owner.user_id!==e),this.topic.latest_likes=(r=this.topic.latest_likes)==null?void 0:r.filter(a=>a.owner.user_id!==e),this.topic.likes_count=this.topic.likes_count-1;else{let a={create_time:new Date().toString(),owner:{user_id:e,name:t,avatar_url:this.indexService.getSelfInfo("avatar_url")}};this.likeUsers.unshift(a),this.topic.likes_count=this.topic.likes_count+1;}}getMoreComment(e){this.comments.length!==0&&(this.topicDetailService.getComments(this.topic.topic_id,this.topicDetailService.commentBeginTime),this.getMore=!0,this.infiniteFinishCallback=e);}delComment(e){if(this.comments.findIndex(r=>r.comment_id===e.id)!==-1)this.topicDetailService.deleteComment(e.id,this.comments,e.reason,e.desc);else{let r;this.comments.forEach((a,p)=>{a.replies_count&&a.replied_comments.findIndex(v=>v.comment_id===e.id)!==-1&&(r=p);}),this.topicDetailService.deleteComment(e.id,this.comments[r].replied_comments,e.reason,e.desc);}}enterGroup(){let e=location.href;Number(e.split("/group/")[1])===this.topic.group.group_id?this.topicDetailService.canLeaveQATopic?(this.topic.showOperation=!1,this.topicDetailService.setAnswerInputStatus(!1),this.handleTopicDetail.emit()):this.dialogVisible=!0:this.topicDetailService.enterGroup(this.topic.group);}permissionCheck(e){this.indexService.joinEnoughTime=!0,this.indexService.canCreateTopic=!0,this.indexService.createTopicNeedReward=!1,this.indexService.canCreateComment=!0,this.indexService.createCommentNeedReward=!1,this.indexService.likeTopicNeedReward=!1,this.indexService.isMember=!0,this.indexService.isTrialMember=!1;let t=this.indexService.getSelfInfo("user_id"),r=e.owner.user_id,a=e.admin_ids||[],p=e.partner_ids||[],m=e.guest_ids||[];this.indexService.isGroupOwner=t===r;let v=a.indexOf(t)===-1&&p.indexOf(t)===-1&&m.indexOf(t)===-1;this.indexService.isMember=v,this.indexService.isTrialMember=e.user_specific.hasOwnProperty("trial");let x=e.user_specific.join_time+"",w=Kr(new Date(),ge(x));e.type==="free"&&!e.user_specific.rewarded_owner&&e.privileges.need_reward_for_interaction&&(this.indexService.createTopicNeedReward=e.privileges.need_reward_for_interaction.indexOf("create_topic")!==-1,this.indexService.createCommentNeedReward=e.privileges.need_reward_for_interaction.indexOf("create_comment")!==-1,this.indexService.likeTopicNeedReward=e.privileges.need_reward_for_interaction.indexOf("like")!==-1),e.privileges.create_topic==="all"&&e.policies.silence_new_member&&v?(this.indexService.canCreateTopic=w>
14524,this.indexService.joinEnoughTime=w>24):e.privileges.create_topic==="owner"&&p.indexOf(t)===-1?this.indexService.canCreateTopic=!1:e.privileges.create_topic==="admins"&&v&&(this.indexService.canCreateTopic=!1),t===r||e.privileges.create_comment==="all"?this.indexService.canCreateComment=!0:e.privileges.create_comment==="owner"&&p.indexOf(t)===-1?this.indexService.canCreateComment=!1:e.privileges.create_comment==="admins"&&v&&(this.indexService.canCreateComment=!1);}toFootprint(e){sessionStorage.setItem("footprint_group_id",String(this.topic.group.group_id)),ne(`footprint/${e}?group_id=${String(this.topic.group.group_id)}`);}handleFavorite(){this.topic.user_specific.subscribed?this.topicService.cancelCollectTopic(this.topic):this.topicService.collectTopic(this.topic);}getTopicOwnerInfo(e,t){let r;return e.type==="q&a"?e.answer?r=e.answer.owner[t]:r=e.question.owner?e.question.owner[t]:"":r=e[e.type].owner[t],r;}handleReport(){this.reportOtherVisible=!0;}reportTopic(e={reason:"",desc:""}){this.topicService.reportTopic(this.topic,e.reason,e.desc),this.cancelReport();}cancelReport(){this.reportOtherVisible=!1;}handleShowPosterDialog(e){this.showPosterDialogEmitter.observed?this.showPosterDialogEmitter.emit(e):this.currentPosterTopic=e;}showShareOperation(){this.shareOperationVisible=!0;}closeShareOperation(){this.shareOperationVisible=!1;}hidePosterDialog(){this.currentPosterTopic=null;}};n.ɵfac=function(t){return new(t||n)(O(Oe),O(Ye),O(le),O(q),O(oe),O(Te),O(Wn),O(on),O(oi),O(Mi,8));},n.ɵcmp=F({type:n,selectors:[["app-topic-detail"]],viewQuery:function(t,r){if(t&1&&_e(H1,5)(Tt,7),t&2){let a;ee(a=te())&&(r.likeElement=a.first),ee(a=te())&&(r.topicContent=a.first);}},inputs:{topic:[0,"topicData","topic"],waterMark:[0,"hasWaterMark","waterMark"],topicHeaderMode:"topicHeaderMode"},outputs:{handleTopicDetail:"handle-topic-detail",showPosterDialogEmitter:"show-poster-dialog"},standalone:!1,features:[ot([Ye]),It],decls:26,vars:26,consts:[["like",""],["imgPopover",""],["popover",""],["id","topic-detail-container",1,"topic-detail",3,"click"],[1,"content",3,"click"],[1,"skeleton-container",3,"hidden"],[1,"topic-detail-panel",3,"hidden","watermark"],[1,"enter-group"],[1,"left"],[1,"right"],[3,"topicData","mode"],[3,"ngClass"],["topic-content",""],["fromWhere","topicDetail",3,"to-tags-page","tags","topic"],[1,"topic-tip"],[1,"operation-icon"],[1,"like-user"],[1,"horizontal-line"],[1,"icon-comment",3,"data"],[1,"comment-container",3,"hidden"],[3,"scroller"],[3,"topicData"],["title","\u6E29\u99A8\u63D0\u793A","type","common"],["type","report","title","\u6295\u8BC9\u4E3B\u9898","placeholder","\u4E0D\u8D85\u8FC7 100 \u5B57",3,"maxlength"],[3,"closeDialog","visible","topicData"],[1,"right",3,"click"],[1,"icon"],[1,"separator"],["title","\u70B9\u8D5E",1,"like",3,"ngClass"],["title","\u8BC4\u8BBA",1,"comment",3,"click"],["title","\u6536\u85CF",1,"subscribe",3,"click","ngClass"],["title","\u6295\u8BC9",1,"report"],[1,"share-wrapper",2,"position","relative","display","inline-block"],["title","\u5206\u4EAB",1,"share-topic",3,"click"],["source","TopicView",3,"topic","visible"],["title","\u6295\u8BC9",1,"report",3,"click"],["source","TopicView",3,"operation-emitter","show-poster-dialog","topic","visible"],[1,"like-image",3,"src","ngStyle"],[1,"like-text",3,"ngStyle"],[1,"like-image",3,"click","src","ngStyle"],[1,"icon-comment",3,"close-comment","data"],[1,"comment-item"],[1,"main-comment"],[1,"user-avatar",3,"src"],[1,"main-comment-item",3,"delComment","comment","data","fromWhere","hadSticky"],[1,"reply-comment"],[1,"user-avatar",3,"click","src"],[1,"user-avatar",3,"mouseenter","mouseleave","src"],[3,"target_user_id","anchor"],[1,"container"],[3,"comment","data","fromWhere"],[3,"delComment","comment","data","fromWhere"],[3,"infinite","scroller"],[3,"answer-topic","show-poster-dialog","topicData"],["title","\u6E29\u99A8\u63D0\u793A","type","common",3,"dialog-confirm","dialog-cancel"],["type","report","title","\u6295\u8BC9\u4E3B\u9898","placeholder","\u4E0D\u8D85\u8FC7 100 \u5B57",3,"dialog-confirm","dialog-cancel","maxlength"]],template:function(t,r){t&1&&(s(0,"div",3),f("click",function(p){return r.closeTopicDetail(p);}),s(1,"div",4),f("click",function(p){return r.cancelEvent(p);}),s(2,"div",5),M(3,"app-skeleton"),c(),s(4,"div",6)(5,"div",7)(6,"span",8),g(7),c(),h(8,X1,3,0,"span",9),c(),M(9,"app-topic-header",10),s(10,"div",11),qt(11,J1,0,0,"ng-template",12),c(),s(12,"app-tag-container",13),f("to-tags-page",function(){return r.handleTopicDetail.emit();}),c(),h(13,eb,4,3,"div",14),h(14,ib,9,8,"div",15),h(15,rb,5,4,"div",16),h(16,ab,1,0,"div",17),h(17,sb,1,1,"app-comment",18),B(18,gb,7,7,"div",19,Hu),$(20,"transformComments"),h(21,ub,2,1,"app-lottie-loading",20),c(),h(22,mb,1,1,"app-answer-question",21),c(),h(23,hb,3,0,"app-dialog",22),c(),h(24,_b,1,1,"app-reason-dialog",23),s(25,"app-poster-dialog",24),f("closeDialog",function(){return r.hidePosterDialog();}),c()),t&2&&(l(2),C("hidden",r.hideSkeleton||r.showAnswerInput),l(2),C("hidden",!r.hideSkeleton&&!r.showAnswerInput)("watermark",r.waterMark),l(3),
145V("\u6765\u81EA\uFF1A",r.topic.group.name),l(),_(r.topic.group.group_id!==r.helpGroupId?8:-1),l(),C("topicData",r.topic)("mode",r.topicHeaderMode),l(),C("ngClass",R(24,U1,!r.allowCopy)),l(2),C("tags",r.tags)("topic",r.topic),l(),_(r.riskWarningType==="finance"||r.topic.modify_time?13:-1),l(),_(r.hideOperation?-1:14),l(),_(r.likeUsers.length>0&&!r.hideOperation?15:-1),l(),_(r.comments.length>0&&!r.hideOperation?16:-1),l(),_(r.commentVisible&&!r.hideOperation?17:-1),l(),N(Pe(20,21,r.comments,r.topic.group.group_id)),l(3),_(r.commentsTotal>30&&r.showMoreComments?21:-1),l(),_(r.showAnswerInput?22:-1),l(),_(r.dialogVisible?23:-1),l(),_(r.reportOtherVisible?24:-1),l(),C("visible",!!r.currentPosterTopic)("topicData",r.currentPosterTopic));},dependencies:[K,De,Ze,Ae,Qe,ve,ua,ko,fa,Xa,pn,qi,Ho,Bi,Tt,_s,$o,Xt,Po],styles:['.topic-detail[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;overflow-y:scroll;top:0;left:0;background:#00000080;z-index:9}.topic-detail[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{position:fixed;top:20px;right:20px;width:30px;height:30px;background:var(--dweb-bg-panel, #FFFFFF)}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{width:1200px;margin:60px auto}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]  .answer-input{width:100%}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]{background:var(--dweb-bg-panel);border-radius:4px;padding:20px 30px 30px}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .enter-group[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:20px;border-bottom:1px solid var(--dweb-border-faint);line-height:22px;display:flex;justify-content:space-between}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .enter-group[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{font-family:PingFangSC-Medium;font-size:14px;color:var(--dweb-text-secondary)}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .enter-group[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{cursor:pointer;color:var(--dweb-info, #567895)}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .enter-group[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{display:inline-block;margin-left:6px;width:10px;height:11px;background-image:url("./media/[email protected]");background-position:-297px -197px}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .topic-tip[_ngcontent-%COMP%]{margin-top:20px;font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .topic-tip[_ngcontent-%COMP%]   .separator[_ng
145content-%COMP%]{margin:0 12px}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]{display:flex}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:21px;height:21px;background-image:url("./media/[email protected]");margin-right:30px;cursor:pointer}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .like[_ngcontent-%COMP%]{background-position:-107px -306px}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .like.liked[_ngcontent-%COMP%]{background-position:-107px -346px}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]{background-position:-157px -306px}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]:hover{background-position:-157px -346px}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .subscribe[_ngcontent-%COMP%]{background-position:-205px -306px}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .subscribe.subscribed[_ngcontent-%COMP%]{background-position:-205px -346px}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .report[_ngcontent-%COMP%], .topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .report[_ngcontent-%COMP%]:hover{background-position:-233px -307px}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .share-topic[_ngcontent-%COMP%]{width:21px;height:19px;background-image:url("./media/icon_topic_share-4XWEQGEZ.png")!important;background-size:19px 18px!important;background-position:center;background-repeat:no-repeat}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .like-user[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:20px}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .like-user[_ngcontent-%COMP%]   .like-image[_ngcontent-%COMP%]{cursor:pointer;position:relative;display:inline-block;width:30px;height:30px;border-radius:50%;border:2px solid #FFFFFF;background-color:var(--dweb-bg-subtle)}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .like-user[_ngcontent-%COMP%]   .like-text[_ngcontent-%COMP%]{position:relative;margin-left:10px;font-family:PingFangSC-Medium;font-size:12px;color:var(--dweb-text-faint)}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .horizontal-line[_ngcontent-%COMP%]{border-bottom:1px solid var(--dweb-border-faint);margin-top:20px}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .comment-container[_ngcontent-%COMP%]   .comment-item[_ngcontent-%COMP%]   .main-comment[_ngcontent-%COMP%]{display:flex;margin-top:8px;word-break:break-word}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .comment-container[_ngcontent-%COMP%]   .comment-item[_ngcontent-%COMP%]   .main-comment[_ngcontent-%COMP%]   .user-avatar[_ngcontent-%COMP%]{cursor:pointer;width:30px;min-width:30px;height:30px;border-radius:15px;margin-right:16px;margin-top:12px;background-color:var(--dweb-bg-subtle)}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .to
145pic-detail-panel[_ngcontent-%COMP%]   .comment-container[_ngcontent-%COMP%]   .comment-item[_ngcontent-%COMP%]   .main-comment[_ngcontent-%COMP%]   .main-comment-item[_ngcontent-%COMP%]{flex:1}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .comment-container[_ngcontent-%COMP%]   .comment-item[_ngcontent-%COMP%]   .reply-comment[_ngcontent-%COMP%]{padding-left:46px;margin-top:12px}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .comment-container[_ngcontent-%COMP%]   .comment-item[_ngcontent-%COMP%]   .reply-comment[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]{background:var(--dweb-bg-soft-alt);border-radius:4px;padding:12px;box-sizing:border-box}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .moreComment[_ngcontent-%COMP%]:hover{cursor:pointer}.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .moreComment[_ngcontent-%COMP%]{margin-top:12px;padding-top:20px;text-align:center;color:var(--dweb-info, #567895);border-top:1px solid var(--dweb-border-faint)}.topic-detail[_ngcontent-%COMP%]   .disabled-copy[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.operation-icon[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .enter-group[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px!important}}@media screen and (max-width:2000px){.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{width:900px}}@media screen and (max-width:1550px){.topic-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{width:700px}}']});let o=n;return o;})();var xl=xi(wo());var fb=o=>({" mask":o}),Cb=o=>({"green-content":o});function xb(o,n){}function vb(o,n){o&1&&(s(0,"div"),g(1,"\u89C9\u5F97\u5185\u5BB9\u4E0D\u9519\u7684\u8BDD\u53EF\u4EE5\u626B\u7801\u52A0\u5165\u8BE5\u661F\u7403\u54E6~"),c());}function bb(o,n){if(o&1&&(s(0,"div",9),g(1),c()),o&2){let i=d();l(),Gt(" ",i.topic.type==="q&a"?"\u56DE\u7B54":"\u90E8\u5206","\u5185\u5BB9\u5DF2\u9690\u85CF\uFF0C",i.needRenew?"\u7EED\u671F":"\u52A0\u5165\u661F\u7403","\u540E\u624D\u53EF\u4EE5\u67E5\u770B\u5B8C\u6574\u5185\u5BB9 ");}}function Pb(o,n){if(o&1&&M(0,"img",12),o&2){let i=d();C("src",li(i.groupCode),se);}}function Mb(o,n){if(o&1&&(s(0,"div",13),g(1),c()),o&2){let i=d();l(),V("\u6709\u6548\u671F\uFF1A",i.validityTime);}}function Ob(o,n){o&1&&(s(0,"h3",14),g(1,"\u52A0\u5165\u661F\u7403 72 \u5C0F\u65F6\u5185\u65E0\u6761\u4EF6\u9000\u6B3E"),c());}var fs=(()=>{let n=class n{constructor(e,t,r){this.componentFactoryResolver=e,this.http=t,this.indexService=r,this.handleTopicDetail=new H(),this.hideSkeleton=!1,this.needRenew=!1;}ngOnInit(){this.needRenew=this.topic.group.user_specific.is_member&&this.topic.renew_to_read,this.initQrCode(),this.loadComponent();}get diffTime(){return Gp(this.groupInfo.create_time);}get validityTime(){return oa(this.groupInfo);}initQrCode(){return ye(this,null,function*(){let e=this.indexService.topicPreviewReferrer;if(this.needRenew){let t=`${ie.MWEB_URL}renew/renew.html?group_id=${this.topic.group.group_id}&source=DWebScanning&auto_renewal=1`;this.http.get(j.getShortURL(t)).subscribe(r=>{if(r.succeeded){let a=r.resp_data.short_url;xl.default.toDataURL(a,{margin:0}).then(p=>{this.groupCode=p;}).catch(p=>{console.error(p);});}else this.http.handleExceptionCode(r,"\u83B7\u53D6\u7EED\u671F\u4FE1\u606F\u5931\u8D25");});}else{let t=`${ie.MWEB_URL}joingroup/join_group.html?group_id=${this.topic.group.group_id}&direct_join=true`;e.includes("google")?t+="&sensors_source=DWeb-Google":e.includes("bing")?t+="&sensors_source=DWeb-Bing":e.includes("baidu")?t+="&sensors_source=DWeb-Baidu":e.includes("/recommend-topics")?t+="&source=recommend_topic&sensors_source=DWebRecommendTopic":t+="&sensors_source=DWeb-Default";
145let r=yield sd(!this.indexService.hasUserInfo());r&&(t+=`&distinct_id=${r}`),xl.default.toDataURL(t).then(a=>{this.groupCode=a;}).catch(a=>{console.error(a);});}});}closeTopicDetail(e){e.stopPropagation(),this.handleTopicDetail.emit();}loadComponent(){let e=this.getTopicContentItem(),t=this.topicContent.viewContainerRef;t.clear();let r=t.createComponent(e.component);r.instance.data=e.data,r.instance.fromWhere=e.fromWhere;}getTopicContentItem(){let e;return this.topic.type==="talk"?e=new We(En,this.topic,"detail"):this.topic.type==="q&a"&&!this.topic.answer?e=new We(Li,this.topic,"detail"):this.topic.type==="q&a"&&this.topic.answer?e=new We(ti,this.topic,"detail"):this.topic.type==="task"?e=new We(ni,this.topic,"preview"):this.topic.type==="solution"&&(e=new We(ii,this.topic,"preview")),e;}handleContentClick(e){e.stopPropagation();}};n.ɵfac=function(t){return new(t||n)(O(Wn),O(W),O(q));},n.ɵcmp=F({type:n,selectors:[["app-topic-detail-preview"]],viewQuery:function(t,r){if(t&1&&_e(Tt,7),t&2){let a;ee(a=te())&&(r.topicContent=a.first);}},inputs:{topic:[0,"topicData","topic"],fromWhere:"fromWhere",groupInfo:"groupInfo",mode:[0,"topicPreviewMode","mode"]},outputs:{handleTopicDetail:"handle-topic-detail"},standalone:!1,decls:22,vars:16,consts:[["id","topic-detail-container",1,"topic-detail-preview",3,"click"],[1,"content",3,"click"],[1,"topic-detail-panel"],[1,"enter-group"],[1,"left"],["mode","pure",3,"topicData"],["name","slot",1,"like-and-comment"],["topic-content",""],[1,"join-group",3,"ngClass"],[1,"orange-content"],[1,"title",3,"ngClass"],[1,"img"],["width","100%","height","100%",3,"src"],[1,"valid-time"],[1,"tips"]],template:function(t,r){t&1&&(s(0,"div",0),f("click",function(p){return r.closeTopicDetail(p);}),s(1,"div",1),f("click",function(p){return r.handleContentClick(p);}),s(2,"div",2)(3,"div",3)(4,"span",4),g(5),c()(),s(6,"app-topic-header",5)(7,"div",6)(8,"span"),g(9),c(),s(10,"span"),g(11),c()()(),qt(12,xb,0,0,"ng-template",7),s(13,"div",8),h(14,vb,2,0,"div"),h(15,bb,2,2,"div",9),s(16,"div",10),g(17),c(),s(18,"div",11),h(19,Pb,1,2,"img",12),c(),h(20,Mb,2,1,"div",13),h(21,Ob,2,0,"h3",14),c()()()()),t&2&&(l(5),V("\u6765\u81EA\uFF1A",r.topic.group.name),l(),C("topicData",r.topic),l(3),V("\u8D5E",r.topic.likes_count),l(2),V("\u8BC4\u8BBA",r.topic.comments_count),l(2),C("ngClass",R(12,fb,r.mode==="preview_omitted"&&r.topic.type!=="q&a"&&r.topic[r.topic.type].text&&r.topic[r.topic.type].text.length>60)),l(),_(r.mode==="preview_all"?14:-1),l(),_(r.mode==="preview_omitted"&&r.topic.type==="q&a"?15:-1),l(),C("ngClass",R(14,Cb,r.fromWhere!=="topic-detail-page")),l(),V(" \u5FAE\u4FE1\u626B\u7801",r.needRenew?"\u7EED\u671F":"\u52A0\u5165","\uFF0C\u67E5\u770B\u5B8C\u6574\u5185\u5BB9 "),l(2),_(r.groupCode?19:-1),l(),_(r.groupInfo&&r.groupInfo.type==="pay"?20:-1),l(),_(r.groupInfo&&r.groupInfo.type==="pay"?21:-1));},dependencies:[K,pn,Tt],styles:['.topic-detail-preview[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;overflow-y:scroll;top:0;left:0;background:var(--dweb-overlay);z-index:9}.topic-detail-preview[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{width:1200px;margin:60px auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.topic-detail-preview[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]{background:var(--dweb-bg-panel);border-radius:4px;padding:20px 30px 30px}.topic-detail-preview[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .enter-group[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:20px;border-bottom:1px solid var(--dweb-border-faint);line-height:22px;display:flex;justify-content:space-between}.topic-detail-preview[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .enter-group[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{font-family:PingFangSC-Medium;font-size:14px;color:var(--dweb-text-secondary)}.topic-detail-preview[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .join-group[_ngcontent-%COMP%]{position:relative;border-top:1px solid var(--dweb-border-faint);margin-top:30px;padding-top:30px;display:flex;text-align:center;flex-direction:column;font-family:PingFangSC-Regular;font-size:14px;color:var(--dweb-text-faint)}.topic-detail-preview[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .to
145pic-detail-panel[_ngcontent-%COMP%]   .join-group.mask[_ngcontent-%COMP%]:before{content:"";position:absolute;top:-101px;width:100%;height:100px;background-image:linear-gradient(180deg,rgba(255,255,255,.2) 0%,var(--dweb-bg-panel) 100%)}.topic-detail-preview[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .join-group[_ngcontent-%COMP%]   .img[_ngcontent-%COMP%]{width:120px;height:120px;margin:20px auto 10px}.topic-detail-preview[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .join-group[_ngcontent-%COMP%]   .green-content[_ngcontent-%COMP%]{color:var(--dweb-brand)}.topic-detail-preview[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .join-group[_ngcontent-%COMP%]   .orange-content[_ngcontent-%COMP%]{color:var(--dweb-danger);margin-bottom:10px}.topic-detail-preview[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .join-group[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:500;font-size:16px;color:var(--dweb-text-primary);margin-bottom:8px}.topic-detail-preview[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .join-group[_ngcontent-%COMP%]   .valid-time[_ngcontent-%COMP%]{font-weight:400;font-size:14px;color:var(--dweb-text-secondary)}.topic-detail-preview[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .join-group[_ngcontent-%COMP%]   .tips[_ngcontent-%COMP%]{margin:8px 0 0;font-weight:400;font-size:14px;color:var(--dweb-danger)}.topic-detail-preview[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .like-and-comment[_ngcontent-%COMP%]{height:36px;display:flex;align-items:flex-end;font-family:PingFangSC-Regular;font-size:12px;color:var(--dweb-text-faint)}.topic-detail-preview[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .like-and-comment[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-left:8px}.topic-detail-preview[_ngcontent-%COMP%]     a{pointer-events:none}html[data-theme=dark][_nghost-%COMP%]   .topic-detail-preview[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .join-group.mask[_ngcontent-%COMP%]:before, html[data-theme=dark]   [_nghost-%COMP%]   .topic-detail-preview[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-detail-panel[_ngcontent-%COMP%]   .join-group.mask[_ngcontent-%COMP%]:before{background-image:linear-gradient(180deg,rgba(32,36,43,.35) 0%,var(--dweb-bg-panel) 100%)}@media screen and (max-width:2000px){.topic-detail-preview[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{width:900px}}@media screen and (max-width:1550px){.topic-detail-preview[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{width:700px}}']});let o=n;return o;})();var qu=(()=>{let n=class n{constructor(e,t){this.http=e,this.message=t,this._examinationStatus$=new U(),this.examinationStatus$=this._examinationStatus$.asObservable(),this._examinations$=new U(),this.examinations$=this._examinations$.asObservable();}setExamination(e,t){let r={req_data:{examination_ids:[e],status:t}};this.http.put(j.examination,r).subscribe(a=>{a.succeeded?(this._examinationStatus$.next(!0),this.message.info({content:"\u64CD\u4F5C\u6210\u529F",type:"success"})):this.http.handleExceptionCode(a,"\u5BA1\u6279\u661F\u7403\u65B0\u6210\u5458\u5931\u8D25");});}getExaminations(e){this.http.get(j.getExaminations(e)).subscribe(t=>{t.succeeded?this._examinations$.next(t.resp_data.examinations):this.http.handleExceptionCode(t,"\u83B7\u53D6\u661F\u7403\u5BA1\u6279\u9879\u5931\u8D25");});}};n.ɵfac=function(t){return new(t||n)(re(W),re(le));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var yb=o=>({display:o}),kb=o=>[o];function Sb(o,n){if(o&1&&M(0,"app-image-gallery",11),o&2){let i=d();C("images",R(1,kb,i.examinationData.image));}}function Tb(o,n){if(o&1){let i=y();s(0,"div",12)(1,"span",14),f("click",function(t){b(i);let r=d();return P(r.handleExamination(t,"ignored"));}),g(2,"\u5FFD\u7565"),c(),s(3,"span",14),f("click",function(t){b(i);let r=d();return P(r.handleExamination(t,"allowed"));}),g(4,"\u540C\u610F"),c()();}}function Eb(o,n){o&1&&(s(0,"div",13)(1,"span"),g(2,"\u5DF2\u5904\u7406"),c()());}var Wu=(()=>{let n=class n{constructor(e,t,r){this.router=e,this.examinationDetailService=t,this.groupPreviewService=r,this.handleExaminationDetail=new H(),this.subscriptions=[],this.hideSkeleton=!1;}ngOnInit(){this.doSubscribe(),this.fetchData();}
145ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}doSubscribe(){let e=this.examinationDetailService.examinationStatus$.subscribe(r=>{this.groupPreviewService.getExaminations(this.examinationData.group.group_id),this.handleExaminationDetail.emit(!0);}),t=this.examinationDetailService.examinations$.subscribe(r=>{this.examinationData.isHandled=!0,r.forEach(a=>{a.examination_id===this.examinationData.examination_id&&(this.examinationData.isHandled=!1);}),this.hideSkeleton=!0;});this.subscriptions.push(e,t);}fetchData(){this.examinationDetailService.getExaminations(this.examinationData.group.group_id);}closeExaminationDetail(e){e.stopPropagation(),this.handleExaminationDetail.emit();}handleContentClick(e){e.stopPropagation();}enterGroup(){let e=location.href,t=Number(e.split("/group/")[1]);this.handleExaminationDetail.emit(),t!==this.examinationData.group.group_id&&this.router.navigate(["group",this.examinationData.group.group_id]);}handleExamination(e,t){e.stopPropagation(),this.examinationDetailService.setExamination(this.examinationData.examination_id,t);}};n.ɵfac=function(t){return new(t||n)(O(ue),O(qu),O(vo));},n.ɵcmp=F({type:n,selectors:[["app-examination-detail"]],inputs:{examinationData:"examinationData"},outputs:{handleExaminationDetail:"handle-examination-detail"},standalone:!1,decls:17,vars:11,consts:[["id","examination-detail-container",1,"examination-detail",3,"click"],[1,"content",3,"click"],[1,"skeleton-container",3,"hidden"],[1,"examination-detail-panel",3,"hidden"],[1,"enter-group"],[1,"left"],[1,"right",3,"click"],[1,"icon"],["mode","single",3,"topicData"],[1,"examination-content"],[1,"text",3,"ngStyle","parseHtml"],[3,"images"],[1,"operate-btn"],[1,"handled"],[3,"click"]],template:function(t,r){t&1&&(s(0,"div",0),f("click",function(p){return r.closeExaminationDetail(p);}),s(1,"div",1),f("click",function(p){return r.handleContentClick(p);}),s(2,"div",2),M(3,"app-skeleton"),c(),s(4,"div",3)(5,"div",4)(6,"span",5),g(7),c(),s(8,"span",6),f("click",function(){return r.enterGroup();}),g(9,"\u8FDB\u5165\u661F\u7403 "),M(10,"div",7),c()(),M(11,"app-topic-header",8),s(12,"div",9),M(13,"div",10),h(14,Sb,1,3,"app-image-gallery",11),c(),h(15,Tb,5,0,"div",12),h(16,Eb,3,0,"div",13),c()()()),t&2&&(l(2),C("hidden",r.hideSkeleton),l(2),C("hidden",!r.hideSkeleton),l(3),V("\u6765\u81EA\uFF1A",r.examinationData.group.name),l(4),C("topicData",r.examinationData),l(2),C("ngStyle",R(9,yb,r.examinationData.message?"":"none"))("parseHtml",r.examinationData.message),l(),_(r.examinationData.image?14:-1),l(),_(r.examinationData.isHandled?-1:15),l(),_(r.examinationData.isHandled?16:-1));},dependencies:[De,kt,ve,ze,pn],styles:['.examination-detail[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;overflow-y:scroll;top:0;left:0;background:#00000080;z-index:9}.examination-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{width:600px;margin:60px auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.examination-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .examination-detail-panel[_ngcontent-%COMP%]{background:var(--dweb-bg-panel);border-radius:4px;padding:20px 30px 30px}.examination-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .examination-detail-panel[_ngcontent-%COMP%]   .enter-group[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:20px;border-bottom:1px solid rgba(0,0,0,.05);line-height:22px;display:flex;justify-content:space-between}.examination-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .examination-detail-panel[_ngcontent-%COMP%]   .enter-group[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{font-family:PingFangSC-Medium;font-size:14px;color:var(--dweb-text-secondary)}.examination-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .examination-detail-panel[_ngcontent-%COMP%]   .enter-group[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{cursor:pointer;color:var(--dweb-info, #567895)}.examination-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .examination-detail-panel[_ngcontent-%COMP%]   .enter-group[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{display:inline-block;margin-left:6px;width:10px;height:11px;background-image:url("./media/[email protected]");background-position:-297px -197px}.examination-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .examination-detail-panel[_ngcontent-%COMP%]   .operate-btn[_ngcontent-%COMP%]{margin-top:30px;border-top:1px solid rgba(0,0,0,.05);padding-top:24px;display:flex;align-items:center;justify-content:flex-end}.examination-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .examination-detail-panel[_ngcontent-%COMP%]   .operate-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{cursor:pointer;font-family:PingFangSC-Medium;font-size:16px;color:gray;text-align:center}.examination-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .examination-detail-panel[_ngcontent-%COMP%]   .operate-btn[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:last-child{border-radius:2px;box-shadow:0 1px 2px #0000000d;width:70px;height:32px;line-height:32px;background-color:var(--dweb-brand);color:#fff;margin-left:30px}.examination-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .examination-detail-panel[_ngcontent-%COMP%]   .handled[_ngcontent-%COMP%]{margin-top:30px;border-top:1px solid rgba(0,0,0,.05);padding-top:24px;display:flex;align-items:center;justify-content:center;color:var(--dweb-text-faint);font-size:16px}.examination-detail[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .examination-content[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{white-space:pre-wrap;word-wrap:break-word;overflow:hidden;font-size:15px;line-height:28px;margin-bottom:20px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.enter-group[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px!important}}']});let o=n;return o;})();var Xu=()=>({color:"#16B998"}),Ju=()=>({}),Ib=(o,n)=>n.dynamic_id,Fb=(o,n)=>n.image_id;function Ab(o,n){o&1&&M(0,"span",21);}function Vb(o,n){if(o&1){let i=y();s(0,"div",16),f("click",function(){b(i);let t=d();return P(t.navigateToPage());}),s(1,"div",17),M(2,"img",18),$(3,"transformTopicAvatar"),s(4,"div",19)(5,"div",20)(6,"span"),g(7),c(),h(8,Ab,1,0,"span",21),c(),s(9,"div",22),M(10,"span",23),$(11,"transformOwner"),s(12,"span",24),g(13),$(14,"questionHeader"),c(),s(15,"span",25),g(16),$(17,"questionHeader"),c(),M(18,"span",26),$(19,"filterEmptyLines"),c(),M(20,"span",4),c()()();}if(o&2){let i=d();l(2),C("src",Z(3,8,i.latest_unanswered_question),se),l(5),V("\u7B49\u6211\u56DE\u7B54 (",i.notifyService.unUnanswer.unanswered_count,")"),l(),_(i.notifyService.unUnanswer.noRead?8:-1),l(2),C("parseName",Z(11,10,i.latest_unanswered_question)),l(3),A(Pe(14,12,i.latest_unanswered_question,"fee")),l(3),A(Pe(17,15,i.latest_unanswered_question,"owner")),l(2),C("parseHtml",Z(19,18,i.latest_unanswered_question.question.text))("annotations",i.latest_unanswered_question.annotation);}}function Rb(o,n){o&1&&(s(0,"span"),g(1,"\u300C\u89C6\u9891\u300D "),c());}
145function Lb(o,n){o&1&&(s(0,"span"),g(1,"\u300C\u56FE\u7247\u300D "),c());}function Bb(o,n){o&1&&(s(0,"span"),g(1,"\u300C\u6587\u4EF6\u300D "),c());}function Nb(o,n){if(o&1&&(s(0,"div",29),M(1,"img",32),$(2,"transformTopicAvatar"),s(3,"div",22)(4,"div",33)(5,"div",34),M(6,"span",35),$(7,"transformOwner"),g(8),c()(),s(9,"div",5),h(10,Rb,2,0,"span"),h(11,Lb,2,0,"span"),h(12,Bb,2,0,"span"),M(13,"span",36),c(),s(14,"div",37)(15,"div",38),g(16),$(17,"transformFullTime"),c(),s(18,"div",39),g(19),c()()()()),o&2){let i=d(2),e=i.$implicit,t=i.$index;l(),C("src",Z(2,11,e.topic),se),l(5),C("parseName",Pe(7,13,e.topic[e.topic.type],"owner")),l(2),V(" ",e.topic.talk&&e.topic.referenced_topic?"\u8F6C\u53D1\u5E76":"","\u53D1\u8868\uFF1A "),l(2),_(e.topic[e.topic.type].video?10:-1),l(),_(e.topic[e.topic.type].images?11:-1),l(),_(e.topic[e.topic.type].files?12:-1),l(),C("parseHtml",e.topic[e.topic.type].text)("linkArticle",e.topic[e.topic.type].article)("indexFlag",t),l(3),V(" ",Z(17,16,e.create_time)," "),l(3),V("\u6765\u81EA\uFF1A",e.topic.group.name);}}function zb(o,n){o&1&&(s(0,"span"),g(1,"\u300C\u56FE\u7247\u300D "),c());}function Gb(o,n){if(o&1&&(s(0,"div",29),M(1,"img",32),$(2,"transformTopicAvatar"),s(3,"div",22)(4,"div",33)(5,"div",34),M(6,"span",35),$(7,"transformOwner"),g(8," \u56DE\u7B54\u4E86\uFF1A "),c()(),s(9,"div",5),h(10,zb,2,0,"span"),M(11,"span",40),c(),s(12,"div",37)(13,"div",38),g(14),$(15,"transformFullTime"),c(),s(16,"div",39),g(17),c()()()()),o&2){let i=d(2),e=i.$implicit,t=i.$index;l(),C("src",Z(2,7,e.topic),se),l(5),C("parseName",Pe(7,9,e.topic.answer,"owner")),l(4),_(e.topic.question.images?10:-1),l(),C("parseHtml",e.topic.question.text)("indexFlag",t),l(3),V(" ",Z(15,12,e.create_time)," "),l(3),V("\u6765\u81EA\uFF1A",e.topic.group.name);}}function jb(o,n){if(o&1&&(M(0,"span",35),$(1,"transformOwner")),o&2){let i=d(3).$implicit;C("parseName",Pe(1,1,i.topic.question,"owner"));}}function $b(o,n){o&1&&(s(0,"span"),g(1,"\u533F\u540D\u7528\u6237"),c());}function Hb(o,n){if(o&1&&(s(0,"span")(1,"span",42),g(2),c(),g(3," \u5411\u4F60"),c()),o&2){let i=d(3).$implicit;l(2),V("\u4ED8\u8D39\uFFE5",i.topic.question.fee.amount/100);}}function Ub(o,n){o&1&&(s(0,"span"),g(1,"\u300C\u56FE\u7247\u300D "),c());}function qb(o,n){if(o&1&&(s(0,"div",29),M(1,"img",32),$(2,"transformTopicAvatar"),s(3,"div",22)(4,"div",33)(5,"div",34),h(6,jb,2,4,"span",35),h(7,$b,2,0,"span"),h(8,Hb,4,1,"span"),s(9,"span"),g(10,"\u63D0\u95EE\uFF1A"),c()()(),s(11,"div",5),h(12,Ub,2,0,"span"),M(13,"span",41),c(),s(14,"div",37)(15,"div",38),g(16),$(17,"transformFullTime"),c(),s(18,"div",39),g(19),c()()()()),o&2){let i=d(2).$implicit;l(),C("src",Z(2,8,i.topic),se),l(5),_(i.topic.question.owner?6:-1),l(),_(i.topic.question.owner?-1:7),l(),_(i.topic.question.fee?8:-1),l(4),_(i.topic.question.images?12:-1),l(),C("parseHtml",i.topic.question.text),l(3),V(" ",Z(17,10,i.create_time)," "),l(3),V("\u6765\u81EA\uFF1A",i.topic.group.name);}}function Qb(o,n){if(o&1&&(h(0,Nb,20,18,"div",29),h(1,Gb,18,14,"div",29),h(2,qb,20,12,"div",29)),o&2){let i=d().$implicit;_(i.topic.talk||i.topic.task||i.topic.solution?0:-1),l(),_(i.topic.type==="q&a"&&i.topic.answer?1:-1),l(),_(i.topic.type==="q&a"&&!i.topic.answer?2:-1);}}function Wb(o,n){o&1&&(s(0,"span"),g(1,"\u300C\u56FE\u7247\u300D "),c());}function Xb(o,n){if(o&1&&(s(0,"div",29),M(1,"img",32),s(2,"div",22)(3,"div",33)(4,"div",34),M(5,"span",35),$(6,"transformOwner"),g(7," \u8BC4\u8BBA\uFF1A "),c()(),s(8,"div",5),h(9,Wb,2,0,"span"),M(10,"span",41),c(),s(11,"div",37)(12,"div",38),g(13),$(14,"transformFullTime"),c(),s(15,"div",39),g(16),c()()()()),o&2){let i=d().$implicit,e=d(2);l(),C("src",i.comment.owner.avatar_url||e.defaultAvatar,se),l(4),C("parseName",Pe(6,6,i.comment,"owner")),l(4),_(i.comment.images?9:-1),l(),C("parseHtml",i.comment.text),l(3),V(" ",Z(14,9,i.create_time)," "),l(3),V("\u6765\u81EA\uFF1A",i.topic.group.name);}}function Jb(o,n){o&1&&(s(0,"span"),g(1,"\u300C\u89C6\u9891\u300D "),c());}function Yb(o,n){o&1&&(s(0,"span"),g(1,"\u300C\u56FE\u7247\u300D "),c());}function Kb(o,n){o&1&&(s(0,"span"),g(1,"\u300C\u6587\u4EF6\u300D "),c());}function Zb(o,n){if(o&1&&(s(0,"div",5),h(1,Jb,2,0,"span"),h(2,Yb,2,0,"span"),h(3,Kb,2,0,"span"),M(4,"span",36),c()),o&2){let i=d(2),e=i.$implicit,t=i.$index;l(),_(e.topic[e.topic.type].video?1:-1),l(),_(e.topic[e.topic.type].images?2:-1),l(),_(e.topic[e.topic.type].files?3:-1),l(),C("parseHtml",e.topic[e.topic.type].text)("linkArticle",e.topic[e.topic.type].article)("indexFlag",t);}}function eP(o,n){o&1&&(s(0,"span"),g(1,"\u300C\u533F\u540D\u7528\u6237\u63D0\u95EE\uFF1A"),c());}function tP(o,n){if(o&1&&(s(0,"span"),g(1,"\u300C"),M(2,"span",35),$(3,"transformOwner"),g(4,"\u63D0\u95EE\uFF1A"),c()),o&2){let i=d(3).$implicit;l(2),C("parseName",Pe(3,1,i.topic.question,"owner"));}}function nP(o,n){if(o&1&&(s(0,"div",5),h(1,eP,2,0,"span"),h(2,tP,5,4,"span"),M(3,"span",41),s(4,"span"),g(5,"\u300D"),c()()),o&2){let i=d(2).$implicit;l(),_(i.topic.question.anonymous?1:-1),l(),_(i.topic.question.anonymous?-1:2),l(),C("parseHtml",i.topic.question.text);}}function iP(o,n){if(o&1&&(s(0,"div",29),M(1,"img",32),s(2,"div",22)(3,"div",33)(4,"div",34),M(5,"span",35),$(6,"transformOwner"),g(7," \u8D5E\u4E86\uFF1A "),c()(),h(8,Zb,5,6,"div",5),h(9,nP,6,3,"div",5),s(10,"div",37)(11,"div",38),g(12),$(13,"transformFullTime"),c(),s(14,"div",39),g(15),c()()()()),o&2){let i=d().$implicit,e=d(2);l(),C("src",i.like.owner.avatar_url||e.defaultAvatar,se),l(4),C("parseName",Pe(6,6,i.like,"owner")),l(3),_(i.topic.talk||i.topic.task||i.topic.solution?8:-1),l(),_(i.topic.answer?9:-1),l(3),V(" ",Z(13,9,i.create_time)," "),l(3),V("\u6765\u81EA\uFF1A",i.topic.group.name);}}function oP(o,n){o&1&&(s(0,"span"),g(1,"\u300C\u56FE\u7247\u300D "),c());}function rP(o,n){if(o&1&&(s(0,"div",29),M(1,"img",32),s(2,"div",22)(3,"div",33)(4,"div",34),g(5),c()(),s(6,"div",5),h(7,oP,2,0,"span"),s(8,"span"),g(9),c()(),s(10,"div",37)(11,"div",38),g(12),$(13,"transformFullTime"),c(),s(14,"div",39),g(15),c()()()()),o&2){let i=d().$implicit,e=d(2);l(),C("src",i.examination.invitee.avatar_url||e.defaultAvatar,se),l(4),V(" ",i.examination.invitee.name,"\uFF1A "),l(2),_(i.examination.image?7:-1),l(2),A(i.examination.message?i.examination.message:"\u7533\u8BF7\u52A0\u5165\uFF0C\u8BF7\u5BA1\u6279"),l(3),V(" ",Z(13,6,i.create_time)," "),l(3),V(" \u6765\u81EA\uFF1A",i.examination.group.name," ");}}function aP(o,n){if(o&1&&(s(0,"div",30),M(1,"img",43),s(2,"div",22)(3,"div",5),g(4),c(),s(5,"div",37)(6,"div",38),g(7),$(8,"transformFullTime"),c(),s(9,"div",39),g(10),c()()()()),o&2){let i=d().$implicit;l(4),A(i.text),l(3),V(" ",Z(8,3,i.create_time)," "),l(3),V(" \u6765\u81EA\uFF1A",(i.group==null?null:i.group.name)||"\u7CFB\u7EDF\u6D88\u606F"," ");}}function sP(o,n){o&1&&(s(0,"span"),g(1,"\u300C\u56FE\u7247\u300D"),c());}function cP(o,n){if(o&1&&(s(0,"div",29),M(1,"img",32),s(2,"div",22)(3,"div",33)(4,"div",34),M(5,"span",35),$(6,"transformOwner"),g(7," \u53D1\u8868\u4E86\u7B14\u8BB0\uFF1A "),c()(),s(8,"div",5),B(9,sP,2,0,"span",null,Fb),M(11,"span",40),c(),s(12,"div",37)(13,"div",38),g(14),$(15,"transformFullTime"),c(),s(16,"div",44),g(17,"\u6765\u81EA\uFF1A\u661F\u7A7A\u7B14\u8BB0"),c()()()()),o&2){let i=d(),e=i.$implicit,t=i.$index,r=d(2);l(),C("src",e.note.owner.avatar_url||r.defaultAvatar,se),l(4),C("parseName",Pe(6,5,e.note,"owner")),l(4),N(e.note.images),l(2),C("parseHtml",e.note.text)("indexFlag",t),l(3),V(" ",Z(15,8,e.create_time)," ");}}function lP(o,n){if(o&1&&(s(0,"div",29),M(1,"img",32),s(2,"div",22)(3,"div",33)(4,"div",34),M(5,"span",35),$(6,"transformOwner"),g(7," \u8BC4\u8BBA\uFF1A "),c()(),s(8,"div",5),M(9,"span",40),c(),s(10,"div",37)(11,"div",38),g(12),$(13,"transformFullTime"),c(),s(14,"div",44),g(15,"\u6765\u81EA\uFF1A\u661F\u7A7A\u7B14\u8BB0"),c()()()()),o&2){let i=d(),e=i.$implicit,t=i.$index,r=d(2);l(),C("src",e.note_comment.owner.avatar_url||r.defaultAvatar,se),l(4),C("parseName",Pe(6,5,e.note_comment,"owner")),l(4),C("parseHtml",e.note_comment.text)("indexFlag",t),l(3),V(" ",Z(13,8,e.create_time)," ");}}function pP(o,n){o&1&&M(0,"div",31);}function dP(o,n){if(o&1){let i=y();
145s(0,"div",28),f("click",function(t){let r=b(i),a=r.$implicit,p=r.$index,m=d(2);return P(m.viewDetail(t,a,p));}),s(1,"div"),h(2,Qb,3,3)(3,Xb,17,11,"div",29)(4,iP,16,11,"div",29)(5,rP,16,8,"div",29)(6,aP,11,5,"div",30)(7,cP,18,10,"div",29)(8,lP,16,10,"div",29)(9,pP,1,0,"div",31),c()();}if(o&2){let i,e=n.$implicit;l(2),_((i=e.action)==="create_topic"?2:i==="create_comment"?3:i==="like"?4:i==="examine"?5:i==="notice"?6:i==="create_note"?7:i==="create_note_comment"?8:9);}}function gP(o,n){if(o&1&&(s(0,"div",11),B(1,dP,10,1,"div",27,Ib),c()),o&2){let i=d();l(),N(i.notifyService.dynamicList);}}function uP(o,n){o&1&&(s(0,"div",12),M(1,"i",4),s(2,"span"),g(3,"\u8FD9\u91CC\u7A7A\u7A7A\u5982\u4E5F"),c()());}function mP(o,n){if(o&1){let i=y();s(0,"app-lottie-loading",47),f("infinite",function(t){b(i);let r=d(2);return P(r.getNotifies(t));}),g(1," \u52A8\u6001\u52A0\u8F7D\u4E2D... "),c();}}function hP(o,n){o&1&&(s(0,"div",46),g(1,"\u6CA1\u6709\u66F4\u591A\u4E86"),c());}function _P(o,n){if(o&1&&(h(0,mP,2,0,"app-lottie-loading",45),h(1,hP,2,0,"div",46)),o&2){let i=d();_(!i.noMoreNotify&&!i.isLoading?0:-1),l(),_(i.noMoreNotify&&!i.isLoading?1:-1);}}function fP(o,n){if(o&1){let i=y();s(0,"app-topic-detail",48),f("handle-topic-detail",function(){b(i);let t=d();return P(t.closeTopicDetail());}),c();}if(o&2){let i=d();C("topicData",i.selectedTopic)("hasWaterMark",i.hasWaterMark);}}function CP(o,n){if(o&1){let i=y();s(0,"app-topic-detail-preview",49),f("handle-topic-detail",function(){b(i);let t=d();return P(t.closeTopicDetail());}),c();}if(o&2){let i=d();C("topicData",i.selectedTopic)("topicPreviewMode",i.previewMode);}}function xP(o,n){if(o&1){let i=y();s(0,"app-examination-detail",50),f("handle-examination-detail",function(t){b(i);let r=d();return P(r.closeExaminationDetail(t));}),c();}if(o&2){let i=d();C("examinationData",i.selectedExamination);}}var Yu=(()=>{let n=class n{constructor(e,t,r,a,p){this.router=e,this.notifyService=t,this.topicDetailService=r,this.indexService=a,this.topicService=p,this.hideNotify=new H(),this.defaultAvatar=an,this.prevScrollTop=0,this.subscriptions=[],this.showEmptyTip=!0,this.noMoreNotify=!1,this.isLoading=!0,this.showExaminationDetail=!1;}ngOnInit(){this.doSubscribe(),this.isLoading=!this.notifyService.dynamicList.length;}ngAfterViewInit(){this.container=document.getElementById("dynamic-container");}ngOnDestroy(){clearTimeout(this.timer),this.subscriptions.forEach(e=>e.unsubscribe());}doSubscribe(){let e=this.notifyService.notify$.subscribe(x=>{x&&x.length>0?(this.notifyService.endTime=mt(x[x.length-1].create_time),this.notifyService.dynamicList=this.notifyService.dynamicList.concat(x)):this.noMoreNotify=!0,this.isLoading=!1,this.showEmptyTip=!0,this.infiniteFinishCallback&&this.infiniteFinishCallback(this.noMoreNotify);}),t=this.notifyService.updateNotify$.subscribe(x=>{if(x){let w=this.indexService.getSelfInfo("user_id");this.notifyService.initDynamics(w,this.notifyService.dynamicScope);}}),r=this.notifyService.notifyTopic$.subscribe(x=>{this.selectedTopic=x,this.selectedTopic.openType="notify",this.topicDetailService.commentBeginTime="",this.notifyService.getGroupWaterMark(x.group.group_id);}),a=this.notifyService.notifyTopicPreview$.subscribe(x=>{x.mode==="preview_omitted"&&x.topic.answered&&(x.topic.answer={owner:this.answerOwner}),this.selectedTopic=x.topic,this.previewMode=x.mode,this.showTopicDetailPreview=!0;}),p=this.notifyService.hasWatermark$.subscribe(x=>{this.hasWaterMark=x,this.topicService.tags=this.notifyService.tagsArray[this.targetIndex],this.showTopicDetail=!0,this.topicDetailService.getComments(this.dynamicTopicID,this.topicDetailService.commentBeginTime);}),m=this.notifyService.recoverContainerStyle$.subscribe(x=>{this.container.style.overflowY="scroll";}),v=this.topicDetailService.enterGroup$.subscribe(()=>{this.hideNotify.emit();});this.subscriptions.push(e,t,r,a,p,m,v);}get latest_unanswered_question(){var e;return(e=this.notifyService.unUnanswer)==null?void 0:e.latest_unanswered_question;}getDynamics(e){if(this.notifyService.dynamicScope===e)return;let t=this.indexService.getSelfInfo("user_id");e==="related"&&this.notifyService.getUnAnswerInfo(t),this.notifyService.initDynamics(t,e),this.isLoading=!0,this.noMoreNotify=!1,this.showEmptyTip=!1;}viewDetail(e,t,r){if(e.target.tagName!=="A"){if(t.action==="create_note"||t.action==="create_note_comment"){window.location.href=`${ie.BASE_URL}/note/${t.note.note_id}`;return;}this.targetIndex=r,t.action==="create_topic"||t.action==="create_comment"||t.action==="like"?(this.container.style.overflowY="hidden",this.dynamicTopicID=t.topic.topic_id,this.groupID=t.topic.group.group_id,this.notifyService.getTopic(t.topic.topic_id),t.topic.type==="q&a"&&t.topic.answer&&(this.answerOwner=t.topic.answer.owner)):t.action==="examine"&&(this.groupID=t.examination.group.group_id,t.examination.type="examination",this.selectedExamination=t.examination,this.showExaminationDetail=!0);}}closeTopicDetail(){this.selectedTopic=null,this.showTopicDetail=!1,this.showTopicDetailPreview=!1,this.container.style.overflowY="scroll";}closeExaminationDetail(e){this.selectedExamination="",this.showExaminationDetail=!1,this.container.style.overflowY="scroll";}getNotifies(e=null){this.notifyService.getDynamics(this.notifyService.dynamicScope,this.notifyService.beginTime,this.notifyService.endTime),this.infiniteFinishCallback=e;}handleClick(e){e.stopPropagation();}setUnAnswerReadTime(){let e=this.indexService.getSelfInfo("user_id");this.notifyService.unUnanswer.noRead=!1,localStorage.setItem(`unanswered_last_time_${e}`,Fe(new Date(),"yyyy-MM-dd'T'HH:mm:ss.SSSXX"));}navigateToPage(){this.setUnAnswerReadTime(),this.hideNotify.emit(),this.router.navigate(["/answerlist"]);}clearDynamics(){if(this.setUnAnswerReadTime(),this.notifyService.dynamicList.length>0){let e=ea(this.notifyService.dynamicList[0].create_time,!1),t=this.indexService.getSelfInfo("user_id");localStorage.setItem(`dynamic_last_time_${t}`,e),this.notifyService.beginTime=encodeURIComponent(e),this.notifyService.endTime="",this.notifyService.dynamicList=[];}this.hideNotify.emit();}};n.ɵfac=function(t){return new(t||n)(O(ue),O(sn),O(Te),O(q),O(Oe));},n.ɵcmp=F({type:n,selectors:[["app-notify"]],outputs:{hideNotify:"hide-notify"},standalone:!1,decls:20,vars:12,consts:[[1,"notify-wrapper"],[1,"notify-container",3,"click"],[1,"head"],[1,"mark-read",3,"click"],[1,"icon"],[1,"text"],[1,"title"],[1,"dynamics",3,"click","ngStyle"],[1,"related",3,"click","ngStyle"],["id","dynamic-container",1,"content-container"],[1,"wait-answer-tab-container"],[1,"content-main"],[1,"n
145o-data"],["topicHeaderMode","notify",3,"topicData","hasWaterMark"],[3,"topicData","topicPreviewMode"],[3,"examinationData"],[1,"wait-answer-tab-container",3,"click"],[1,"wait-answer-tab"],["alt","",1,"avatar",3,"src"],[1,"main"],[1,"header"],[1,"redtip"],[1,"content"],[2,"color","#567895","margin-right","10px",3,"parseName"],[1,"fee"],[2,"color","#8b8e9d"],[1,"text",3,"parseHtml","annotations"],[1,"dynamic"],[1,"dynamic",3,"click"],[1,"dynamic-inner"],[1,"dynamic-inner","notice"],["hideDynamicItem",""],[1,"avatar",3,"src"],[1,"author-info"],[1,"author"],[3,"parseName"],["parseType","notify",3,"parseHtml","linkArticle","indexFlag"],[1,"group-info"],[1,"time"],[1,"group"],["parseType","notify",3,"parseHtml","indexFlag"],[3,"parseHtml"],[2,"color","#f57f59"],["src","assets_dweb/images/[email protected]",1,"avatar"],[1,"from"],["scroller","dynamic-container"],[1,"no-more"],["scroller","dynamic-container",3,"infinite"],["topicHeaderMode","notify",3,"handle-topic-detail","topicData","hasWaterMark"],[3,"handle-topic-detail","topicData","topicPreviewMode"],[3,"handle-examination-detail","examinationData"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1),f("click",function(p){return r.handleClick(p);}),s(2,"div",2)(3,"div",3),f("click",function(){return r.clearDynamics();}),M(4,"div",4),s(5,"div",5),g(6,"\u5168\u90E8\u5DF2\u8BFB"),c()()(),s(7,"div",6)(8,"div",7),f("click",function(){return r.getDynamics("general");}),g(9," \u52A8\u6001 "),c(),s(10,"div",8),f("click",function(){return r.getDynamics("related");}),g(11," \u4E0E\u6211\u76F8\u5173 "),c()(),s(12,"div",9),h(13,Vb,21,20,"div",10),h(14,gP,3,0,"div",11),h(15,uP,4,0,"div",12)(16,_P,2,2),c()(),h(17,fP,1,2,"app-topic-detail",13),h(18,CP,1,2,"app-topic-detail-preview",14),h(19,xP,1,1,"app-examination-detail",15),c()),t&2&&(l(8),C("ngStyle",r.notifyService.dynamicScope==="general"?Qt(8,Xu):Qt(9,Ju)),l(2),C("ngStyle",r.notifyService.dynamicScope==="related"?Qt(10,Xu):Qt(11,Ju)),l(3),_(r.notifyService.unUnanswer.unanswered_count&&r.notifyService.dynamicScope==="related"?13:-1),l(),_((r.notifyService.dynamicList==null?null:r.notifyService.dynamicList.length)>0?14:-1),l(),_((r.notifyService.dynamicList==null?null:r.notifyService.dynamicList.length)===0&&r.showEmptyTip?15:16),l(2),_(r.showTopicDetail?17:-1),l(),_(r.showTopicDetailPreview?18:-1),l(),_(r.showExaminationDetail?19:-1));},dependencies:[De,Ae,xt,Qe,ze,Dg,ft,fs,Wu,Jt,Xt,Si,bo,St],styles:['.notify-wrapper[_ngcontent-%COMP%]{position:fixed;z-index:6;left:0;right:0;top:50px;bottom:0;background:var(--dweb-overlay)}.notify-container[_ngcontent-%COMP%]{position:absolute;top:0;right:0;bottom:0;width:600px;background:var(--dweb-bg-panel)}.notify-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{position:fixed;top:50px;right:0;width:600px;height:40px;background:var(--dweb-bg-panel-2, #F5F6FA);display:flex;justify-content:flex-end;align-items:center}.notify-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .mark-read[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;margin-right:40px}.notify-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .mark-read[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:20px;height:20px;background-image:url("./media/[email protected]");background-position:-409px -191px;margin-right:6px}.notify-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .mark-read[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-family:PingFangSC-Medium;color:#a5a7b4}.notify-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{position:fixed;top:90px;right:0;width:600px;height:43px;border-bottom:1px solid var(--dweb-border-faint);display:flex;align-items:center;font-family:PingFangSC-Medium;font-size:16px;color:var(--dweb-text-muted, #8B8E9D)}.notify-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .dynamics[_ngcontent-%COMP%], .notify-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .related[_ngcontent-%COMP%]{flex:1;text-align:center;cursor:pointer}.notify-container[_ngcontent-%COMP%]   .wait-answer-tab-container[_ngcontent-%COMP%]{padding:0 30px 0 20px}.notify-container[_ngcontent-%COMP%]   .wait-answer-tab-container[_ngcontent-%COMP%]:hover{background-color:var(--dweb-bg-hover)}.notify-container[_ngcontent-%COMP%]   .wait-answer-tab-container[_ngcontent-%COMP%]{cursor:pointer}.notify-container[_ngcontent-%COMP%]   .wait-answer-tab-container[_ngcontent-%COMP%]   .wait-answer-tab[_ngcontent-%COMP%]{display:flex;align-items:center}.notify-container[_ngcontent-%COMP%]   .wait-answer-tab-container[_ngcontent-%COMP%]   .wait-answer-tab[_ngcontent-%COMP%]   .avatar[_ng
145content-%COMP%]{width:34px;height:34px;margin-right:17px;border-radius:50%;object-fit:cover}.notify-container[_ngcontent-%COMP%]   .wait-answer-tab-container[_ngcontent-%COMP%]   .wait-answer-tab[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow:hidden;padding:20px 0;border-bottom:1px solid var(--dweb-border-faint);position:relative}.notify-container[_ngcontent-%COMP%]   .wait-answer-tab-container[_ngcontent-%COMP%]   .wait-answer-tab[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{font-family:PingFangSC,PingFang SC;font-weight:500;font-size:14px;color:var(--dweb-text-primary);font-style:normal;display:flex;align-items:center;margin-bottom:6px}.notify-container[_ngcontent-%COMP%]   .wait-answer-tab-container[_ngcontent-%COMP%]   .wait-answer-tab[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-right:8px}.notify-container[_ngcontent-%COMP%]   .wait-answer-tab-container[_ngcontent-%COMP%]   .wait-answer-tab[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .redtip[_ngcontent-%COMP%]{width:6px;height:6px;background:var(--dweb-danger);border-radius:50%}.notify-container[_ngcontent-%COMP%]   .wait-answer-tab-container[_ngcontent-%COMP%]   .wait-answer-tab[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:flex;font-size:14px}.notify-container[_ngcontent-%COMP%]   .wait-answer-tab-container[_ngcontent-%COMP%]   .wait-answer-tab[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .fee[_ngcontent-%COMP%]{color:var(--dweb-danger, #F57F59)}.notify-container[_ngcontent-%COMP%]   .wait-answer-tab-container[_ngcontent-%COMP%]   .wait-answer-tab[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{flex:1;color:var(--dweb-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.notify-container[_ngcontent-%COMP%]   .wait-answer-tab-container[_ngcontent-%COMP%]   .wait-answer-tab[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{position:absolute;right:0;top:0;bottom:0;margin:auto;width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-299px -197px}.notify-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]{position:absolute;top:84px;bottom:0;width:100%;overflow-y:auto}.notify-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .dynamic[_ngcontent-%COMP%]{padding:20px 30px 0 20px;cursor:pointer}.notify-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .dynamic[_ngcontent-%COMP%]:hover{background:var(--dweb-bg-hover, #FAFBFC)}.notify-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .dynamic[_ngcontent-%COMP%]:hover   .text[_ngcontent-%COMP%]:after{background-color:var(--dweb-bg-hover, #FAFBFC)!important}.notify-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .dynamic[_ngcontent-%COMP%]:hover   .text[_ngcontent-%COMP%]:before{background-color:var(--dweb-bg-hover, #FAFBFC)!important}.notify-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .dynamic[_ngcontent-%COMP%]   .dynamic-inner[_ngcontent-%COMP%]{display:flex}.notify-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .dynamic[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:18px;min-width:36px;background-color:var(--dweb-bg-subtle, #F5F6F7)}.notify-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .dynamic[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{margin-left:16px;padding-bottom:20px;border-bottom:1px solid var(--dweb-border-faint)}.notify-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .dynamic[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .author-info[_ngcontent-%COMP%]{margin-bottom:7px}.notify-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .dynamic[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .author-info[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]{color:var(--dweb-text-placeholder)}.notify-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .dynamic[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .author-info[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--dweb-info, #567895)}.notify-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .dynamic[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{width:500px;max-height:80px;color:var(--dweb-text-primary, #2F3034);overflow:hidden;position:relative;line-height:20px;max-height:62px}.notify-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .dynamic[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]:before{content:"...";position:absolute;right:0;bottom:0;background:var(--dweb-bg-panel, #FFFFFF)}.notify-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .dynamic[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]:after{content:"";position:absolute;right:0;width:12px;height:24px;margin-top:.2em;background:var(--dweb-bg-panel, #FFFFFF)}.notify-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .dynamic[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]{display:flex;font-size:12px;color:var(--dweb-text-faint);margin-top:7px}.notify-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .dynamic[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .time[_ngcontent-%COMP%]{margin-right:15px}.notify-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--dweb-text-placeholder)}.notify-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:87px;height:71px;background-image:url("./media/[email protected]");background-position:-87px -929px;margin-bottom:15px}.notify-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .no-more[_ngcontent-%COMP%]{padding:20px 0;text-align:center;font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}.green-content[_ngcontent-%COMP%]{font-size:14px;color:var(--dweb-brand, #16B998)}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.notify-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .notify-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .wait-answer-tab-container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var PP=o=>({"responsive-header":o}),MP=o=>({"no-tip":o}),OP=o=>({crm:o});function wP(o,n){if(o&1&&(s(0,"div",4),g(1,"\u793E\u7FA4\u5DE5\u5177"),c()),o&2){let i=d();C("ngClass",R(1,OP,i.isCrm));}}function yP(o,n){if(o&1){let i=y();s(0,"app-search-bar",13),f("isFocusing",function(){b(i);let t=d();return P(t.hideNotifyPanelAndDrafList());}),c();}}function kP(o,n){if(o&1){let i=y();s(0,"div",9),g(1),$(2,"transformSecond"),s(3,"span",14),f("click",function(){b(i);let t=d();return P(t.relogin());}),g(4,"\u91CD\u65B0\u767B\u5F55"),c(),s(5,"span",15),f("click",function(){b(i);let t=d();return P(t.closeReloginBtn());}),c()();}if(o&2){let i=d();l(),V(" \u4E3A\u4FDD\u8BC1\u4F60\u7684\u8D26\u6237\u5B89\u5168\uFF0C\u672C\u6B21\u767B\u5F55\u5C06\u5728 ",Z(2,1,i.overtime)," \u540E\u8FC7\u671F\uFF0C\u6B63\u5728\u7F16\u8F91\u7684\u5185\u5BB9\u4F1A\u81EA\u52A8\u4FDD\u5B58\uFF0C\u70B9\u6B64 ");}}function SP(o,n){if(o&1){let i=y();
145s(0,"a",21),f("click",function(){b(i);let t=d(2);return P(t.goToDashboard());}),g(1,"\u661F\u7403\u7BA1\u7406\u540E\u53F0"),c();}}function TP(o,n){if(o&1){let i=y();s(0,"a",22),f("click",function(){b(i);let t=d(2);return P(t.goToDashboard());}),g(1,"\u7BA1\u7406\u540E\u53F0"),c();}}function EP(o,n){if(o&1){let i=y();s(0,"div",23),f("click",function(){b(i);let t=d(2);return P(t.goToRankings());}),M(1,"i",24),s(2,"span",25),g(3,"\u699C\u5355"),c()();}}function DP(o,n){if(o&1){let i=y();s(0,"div",39),f("click",function(){b(i);let t=d(3);return P(t.toTaxPage());}),M(1,"i"),s(2,"span"),g(3,"\u6D89\u7A0E\u6536\u5165\u62A5\u9001\u8BB0\u5F55"),c()();}}function IP(o,n){if(o&1&&(s(0,"span",28),g(1),c()),o&2){let i=d(3);l(),A(i.unReadChatCount>99?"99+":i.unReadChatCount);}}function FP(o,n){o&1&&M(0,"div",31);}function AP(o,n){o&1&&M(0,"span",34);}function VP(o,n){o&1&&(s(0,"div",35),g(1,"\u53EF\u4EE5\u53D1\u4F18\u60E0\u5238\u4E86\u54E6"),c());}function RP(o,n){if(o&1){let i=y();s(0,"app-notify",40),f("hide-notify",function(){b(i);let t=d(3);return P(t.hideNotifyPanelAndDrafList());}),c();}}function LP(o,n){if(o&1){let i=y();s(0,"app-article-list",41),f("delete-draft",function(t){b(i);let r=d(3);return P(r.deleteDraft(t));})("delete-article",function(t){b(i);let r=d(3);return P(r.deleteArticle(t));})("edit-draft",function(t){b(i);let r=d(3);return P(r.editDraft(t));})("edit-article",function(t){b(i);let r=d(3);return P(r.editArticle(t));})("edit-recycle-article",function(){b(i);let t=d(3);return P(t.editRecycleArticle());})("article-scroll",function(t){b(i);let r=d(3);return P(r.loadMoreArticles(t));})("show-article-list",function(){b(i);let t=d(3);return P(t.showList());}),c();}if(o&2){let i=d(3);C("articleList",i.articleList)("draftList",i.draftList)("recycleList",i.recycleList)("isIndex",!0);}}function BP(o,n){if(o&1){let i=y();s(0,"app-dialog",42),f("dialog-confirm",function(){b(i);let t=d(3);return P(t.handleDialogConfirm());})("dialog-cancel",function(){b(i);let t=d(3);return P(t.handleDialogCancel());}),s(1,"div"),g(2),c()();}if(o&2){let i=d(3);C("title",i.dialogTitle),l(2),A(i.dialogText);}}function NP(o,n){if(o&1){let i=y();s(0,"div",20),h(1,DP,4,0,"div",26),s(2,"div",27),f("click",function(){b(i);let t=d(2);return P(t.toChatPage());}),h(3,IP,2,1,"span",28),c(),s(4,"div",29),f("click",function(t){b(i);let r=d(2);return P(r.showNotifyPanel(t));}),M(5,"div",30),h(6,FP,1,0,"div",31),c(),s(7,"div",32)(8,"img",33),f("mouseenter",function(t){b(i);let r=d(2);return P(r.showUserPanel(t));})("error",function(){b(i);let t=d(2);return P(t.updateAvatar());}),c(),h(9,AP,1,0,"span",34),h(10,VP,2,0,"div",35),s(11,"app-user-panel",36),f("hide-user-panel",function(){b(i);let t=d(2);return P(t.userPanelVisible=!1);})("show-article-list",function(){b(i);let t=d(2);return P(t.showList());}),c()(),h(12,RP,1,0,"app-notify"),h(13,LP,1,4,"app-article-list",37),h(14,BP,3,2,"app-dialog",38),c();}if(o&2){let i=d(2);l(),_(i.isGroupData&&i.isShowTax?1:-1),l(2),_(i.unReadChatCount?3:-1),l(3),_((i.notifyService.dynamicList==null?null:i.notifyService.dynamicList.length)>0||i.notifyService.unUnanswer.noRead?6:-1),l(2),C("src",i.userAvatarUrl?i.userAvatarUrl:i.defaultImageUrl,se),l(),_(i.showCouponsRedpoint?9:-1),l(),_(i.showCouponsTip?10:-1),l(2),_(i.notifyVisible?12:-1),l(),_(i.drafListVisible?13:-1),l(),_(i.dialogVisible?14:-1);}}function zP(o,n){if(o&1&&(s(0,"div",10)(1,"div",16),h(2,SP,2,0,"a",17),h(3,TP,2,0,"a",18),c(),h(4,EP,4,0,"div",19),h(5,NP,15,9,"div",20),c()),o&2){let i=d();l(),C("hidden",!i.showToGroupDataPage),l(),_(!i.isGroupDataPage&&i.isLogin?2:-1),l(),_(!i.isGroupDataPage&&i.isLogin?3:-1),l(),_(i.showRankingBadge?4:-1),l(),_(i.userVisible&&!i.showToDashboard?5:-1);}}function GP(o,n){if(o&1){let i=y();s(0,"div",43),f("click",function(){b(i);let t=d();return P(t.toDashBoard());}),M(1,"div",44),s(2,"div",45),g(3,"\u5207\u6362\u5230\u65B0\u6570\u636E\u540E\u53F0"),c()();}}function jP(o,n){if(o&1){let i=y();s(0,"div",12),M(1,"pre",46),s(2,"div",47),f("click",function(){b(i);let t=d();return P(t.closeError());}),c()();}if(o&2){let i=d();l(),C("innerHTML",i.errorInfo,sr);}}var Ku=(()=>{let n=class n{get responsiveHeader(){return /\/group\/\d+$/.test(location.pathname);}get isCrm(){return location.href.includes("crm_page");}get isWxstoreAuthorizePage(){return location.href.includes("wxstore/authorize");}get isGroupData(){return location.href.includes("/group_data");}get loginEdGroupPage(){return window.location.href.includes("group/")?this.indexService.hasUserInfo():!0;}get isLogin(){return!!this.indexService.hasUserInfo();}get isPc(){return ra();}constructor(e,t,r,a,p,m,v){this.indexService=e,this.notifyService=t,this.router=r,this.http=a,this.groupDataService=p,this.articleService=m,this.message=v,this.defaultImageUrl=an,this.userPanelVisible=!1,this.notifyVisible=!1,this.clickTimes=0,this.errorVisible=!1,this.errorInfo="",this.isDataHeader=!1,this.showGroupName=!1,this.groupEnableIap=!0,this.showCouponsRedpoint=!1,this.showCouponsTip=!1,this.showCouponsTipTimer=null,this.searchVisible=!0,this.userVisible=!0,this.showToDashboard=!1,this.showWendaRedpoint=!1,this.subscriptions=[],this.drafListVisible=!1,this.loading=!1,this.articleList=[],this.draftList=[],this.recycleList=[],this.selectedItem={articleId:"",index:0},this.tempSelectedItem={articleId:"",index:0},this.dialogTitle="",this.dialogText="",this.dialogVisible=!1,this.dialogType="",this.tempGroupName="",this.isEditingArticle=!1,this.showToGroupDataPage=!1,this.isGroupDataPage=!0,this.isRankingsPage=!1,this.showRankingBadge=!0,this.isRecommendTopicPage=!1,this.unReadChatCount=0,this.isShowTax=!1;let w=this.router.events.pipe(ut(k=>k instanceof wi)).pipe(Dt(k=>k.url),Qn(this.router.url),nr()).subscribe(([k,S])=>{this.showToDashboard=!1,this.showToGroupDataPage=/(group_data)$/.test(location.href)||location.href.includes("topic/")||location.href.includes("digests/")||location.href.includes("group/")||location.href.includes("files")||location.href.includes("favorites")||location.href.includes("footprint")||location.href.includes("/dynamics")||k==="/group",this.isGroupDataPage=/(group_data)$/.test(location.href),this.isRankingsPage=location.href.includes("rankings/"),this.isRecommendTopicPage=location.href.includes("/recommend-topics"),this.showRankingBadge=!this.isRankingsPage&&!location.href.includes("group_data"),this.userVisible=!S.includes("topic/")&&this.loginEdGroupPage&&!S.includes("digests/")&&!S.includes("footprint")&&!S.includes("crm_page")&&!S.includes("chat")&&!this.isWxstoreAuthorizePage&&!this.isRankingsPage&&!this.isRecommendTopicPage,this.searchVisible=!location.href.includes("/columns/")&&!location.href.includes("/dynamics")&&!location.href.includes("group_data")&&this.userVisible;let E=this.groupDataService.currentGroup;S.includes("group_data/")&&E&&(this.groupId=E.group_id,this.showToDashboard=E.type==="pay"),this.isGroupDataPage&&this.indexService.getSettings();});this.subscriptions.push(w);}ngOnInit(){!location.href.includes("crm_page")&&!location.href.includes("/topic/")&&!location.href.includes("/footprint/")&&!this.isRankingsPage&&!this.isRecommendTopicPage&&this.loginEdGroupPage&&(this.doSubscribe(),this.getUserInfo(),this.indexService.getRemarks(),this.setCouponGuide(),this.initDynamics(),this.initUnReadChatCount());}ngAfterViewInit(){!location.href.includes("crm_page")&&!location.href.includes("/topic/")&&!location.href.includes("/footprint/")&&!this.isRankingsPage&&!this.isRecommendTopicPage&&this.loginEdGroupPage&&(this.articleService.getDraftList(),this.articleService.getArticleList("?count=20"),this.articleService.getRecycleList());}
145ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}onClick(e){e.target instanceof HTMLElement&&e.target.className.includes("notify-wrapper")&&(this.userPanelVisible=!1,this.hideNotifyPanelAndDrafList());}doSubscribe(){this.notifyService.notifySubs=this.notifyService.notify$.subscribe(E=>{E&&E.length>0&&(this.notifyService.dynamicList=this.notifyService.dynamicList.concat(E),this.notifyService.endTime=mt(E[E.length-1].create_time)),this.notifyService.notifySubs.unsubscribe();});let e=this.notifyService.wsDynamic$.subscribe(E=>{if(E&&E.length>0){let I=!0;this.notifyService.dynamicList.length>0&&this.notifyService.dynamicList.forEach(T=>{E[0].dynamic_id===T.dynamic_id&&(I=!1);}),I&&this.notifyService.dynamicList.unshift(E[0]);}}),t=this.http.overTime$.pipe(Ct(800)).subscribe(E=>{Number(localStorage.getItem("auto_logout"))||this.calcLogoutTime(E);}),r=this.indexService.remarks$.subscribe(E=>{let I=this.indexService.getSelfInfo("user_id"),T=E.reduce((D,L)=>(D.push({user_id:Number(L.user_uid),remarks:L.remark.replace(/[\u202e\u202d]/g,"")}),D),[]);localStorage.setItem(`remarks_${I}`,JSON.stringify(T));}),a=this.indexService.group$.subscribe(E=>{this.showToDashboard=location.href.includes("group_data/")&&E.type==="pay",this.groupId=E.group_id;}),p=this.articleService.articleList$.subscribe(E=>{E.length>0&&(this.articleList=this.articleList.concat(E)),this.loading=!1;}),m=this.articleService.draftList$.subscribe(E=>{this.draftList=E;}),v=this.articleService.recycleList$.subscribe(E=>{E.length>0&&(this.recycleList=this.recycleList.concat(E)),this.loading=!1;}),x=this.articleService.deleteArticle$.subscribe(E=>{this.loading=!1,E.succeeded?(this.message.info({content:"\u8BE5\u6587\u7AE0\u5DF2\u5220\u9664",type:"success"}),this.articleList.splice(this.selectedItem.index,1)):this.handleException(E,"\u5220\u9664\u6587\u7AE0\u5931\u8D25");}),w=this.articleService.deleteDraft$.subscribe(E=>{this.loading=!1,E.succeeded?(this.message.info({content:"\u8BE5\u8349\u7A3F\u5DF2\u5220\u9664",type:"success"}),this.draftList.splice(this.selectedItem.index,1)):this.handleException(E,"\u5220\u9664\u8349\u7A3F\u5931\u8D25");}),k=this.notifyService.unReadChatCount$.subscribe(E=>{this.unReadChatCount=E;}),S=this.indexService.settings$.subscribe(E=>{this.isShowTax=E.user_specific.show_tax_related_income_entry;});this.subscriptions.push(e,t,r,a,p,m,v,x,w,k,S);}showUserPanel(e){e.stopPropagation(),clearTimeout(this.showCouponsTipTimer),this.showCouponsRedpoint=!1,this.showCouponsTip=!1;let t;localStorage.getItem("couponGuide")?(t=JSON.parse(localStorage.getItem("couponGuide")),t.clickUserPanel=!0):t={clickUserPanel:!0,goToGroupData:!1,goToGroupCoupons:!1},localStorage.setItem("couponGuide",JSON.stringify(t)),this.userPanelVisible=!this.userPanelVisible,this.hideNotifyPanelAndDrafList();}showNotifyPanel(e){e.stopPropagation(),this.notifyVisible?this.indexService.remainScrollbarStyle():this.indexService.spareScrollbarSpace(),this.notifyVisible=!this.notifyVisible,this.userPanelVisible=!1,this.drafListVisible=!1;}hideNotifyPanelAndDrafList(){(this.notifyVisible||this.drafListVisible)&&(this.notifyVisible=!1,this.drafListVisible=!1,this.indexService.remainScrollbarStyle());}showErrorInfo(){this.clickTimes++,this.clickTimes>=2&&(this.clickTimes=0,window.webError&&(this.errorInfo=this.errorHighlight(window.webError),this.errorVisible=!0)),setTimeout(()=>{this.clickTimes=0;},2e3);}errorHighlight(e){return typeof e!="string"&&(e=JSON.stringify(e,void 0,2)),e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),e.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,function(t){let r="number";return /^"/.test(t)?/:$/.test(t)?r="key":r="string":/true|false/.test(t)?r="boolean":/null/.test(t)&&(r="null"),'<span class="'+r+'">'+t+"</span>";});}closeError(){this.errorVisible=!1;}relogin(){return ye(this,null,function*(){yield this.http.delete(j.login).toPromise(),this.router.navigate(["login"]),this.indexService.ws$&&this.indexService.ws$.complete();});}calcLogoutTime(e){this.overtime=e,localStorage.setItem("logout_time",e),clearInterval(this.overtimeout),this.overtimeout=setInterval(()=>{e>0?(e--,this.overtime=e):(clearInterval(this.overtimeout),this.relogin());},1e3);}closeReloginBtn(){clearInterval(this.overtimeout),localStorage.setItem("auto_logout","1"),this.overtime=0;}getUserInfo(){this.userId=this.indexService.getSelfInfo("user_id"),this.userAvatarUrl=this.indexService.getSelfInfo("avatar_url");}setCouponGuide(){(!localStorage.getItem("couponGuide")||!JSON.parse(localStorage.getItem("couponGuide")).clickUserPanel)&&(this.showCouponsRedpoint=!0,this.showCouponsTip=!0,this.showCouponsTipTimer=setTimeout(()=>{this.showCouponsTip=!1;},5e3));}toGroupPage(){window.location.href="/group/init";}toNotePage(){ne("note/list");}initDynamics(){return ye(this,null,function*(){yield this.notifyService.getUnAnswerInfo(this.userId),this.userVisible&&(this.notifyService.initDynamics(this.userId,this.notifyService.unUnanswer.noRead?"related":"general"),this.indexService.ws$||this.indexService.createWebSocket());});}initUnReadChatCount(){this.notifyService.getUnreadChatCount();}toChatPage(){ne("/chat");}toDashBoard(){this.router.navigate([`dashboard/${this.groupId}/income`]);}toTaxPage(){this.router.navigate(["dashboard/tax_page"]);}updateAvatar(){return ye(this,null,function*(){let e=yield this.http.get(j.getAvatar(localStorage.getItem("user_id"))).toPromise();if(e.succeeded){let t=e.resp_data.large_avatar_url;this.indexService.updateAvatar(t),this.userAvatarUrl=t,localStorage.setItem("avatar_url",t);}});}deleteDraft(e){this.selectedItem=e,this.dialogTitle="\u5220\u9664\u63D0\u793A",this.dialogText="\u786E\u8BA4\u8981\u5220\u9664\u8BE5\u8349\u7A3F\u5417",this.dialogVisible=!0,this.dialogType="delDraft";}deleteArticle(e){this.selectedItem=e,this.dialogTitle="\u5220\u9664\u63D0\u793A",this.dialogText="\u786E\u8BA4\u8981\u5220\u9664\u8BE5\u6587\u7AE0\u5417",this.dialogVisible=!0,this.dialogType="delArticle";}handleDialogConfirm(){this.dialogType==="delArticle"?this.articleService.deleteArticle(this.selectedItem.articleId):this.dialogType==="delDraft"?this.articleService.deleteDraft(this.selectedItem.articleId):this.dialogType==="leaveEditArticle"?(this.groupName=this.tempGroupName,this.isEditingArticle=!1,this.articleService.getDraftDetail(this.selectedItem.articleId)):this.dialogType==="changeEditArticle"&&this.articleService.getArticleDetail(this.tempSelectedItem.articleId),this.loading=!0,this.dialogVisible=!1;}handleDialogCancel(){this.dialogVisible=!1;}editDraft(e){this.selectedItem={articleId:e.articleId,index:e.index},ne(`article?groupId=${e.groupId}&draftArticleId=${e.articleId}`);}editArticle(e){this.tempSelectedItem={articleId:e.articleId,index:e.index},ne(`article?groupId=${e.groupId}&articleId=${e.articleId}`);}editRecycleArticle(){let{article:e}=JSON.parse(localStorage.getItem("recycleArticle"));ne(`article?groupId=${e.group.group_id}`);}loadMoreArticles(e){if(!this.loading){if(e==="article"){let t=mt(this.articleList[this.articleList.length-1].update_time);this.articleService.getArticleList(`?count=20&end_time=${t}`);}else if(e==="recycle"){let t=mt(this.recycleList[this.recycleList.length-1].update_time);this.articleService.getRecycleList(t);}}this.loading=!0;}handleException(e,t){e.info?this.message.info({content:e.info}):e.code&&this.message.info({content:`${t}\uFF0C${aa(e.code)}`});}showList(){this.drafListVisible=!this.drafListVisible,this.drafListVisible?this.indexService.spareScrollbarSpace():this.indexService.remainScrollbarStyle();}goToDashboard(){this.hideNotifyPanelAndDrafList(),ne("group_data");}goToRankings(){this.hideNotifyPanelAndDrafList(),ne("rankings/index");}};n.ɵfac=function(t){return new(t||n)(O(q),O(sn),O(ue),O(W),O(da),O(Up),O(le));},n.ɵcmp=F({type:n,selectors:[["app-header"]],hostBindings:function(t,r){t&1&&f("click",function(p){return r.onClick(p);},wt);},standalone:!1,decls:16,vars:13,consts:[[1,"header-container",3,"ngClass"],[1,"logo-container"],[1,"left",3,"click"],[1,"logo"],[1,"tip",3,"ngClass"],[1,"n
145ote",3,"click","hidden","ngClass"],[1,"note-icon"],[1,"error-emit-point",3,"click"],[1,"middle-container"],[1,"timeout-tips"],[1,"header-right"],[1,"header-right","to-dashboard"],[1,"error-container"],[3,"isFocusing"],[1,"relogin-btn",3,"click"],[1,"close-tips-btn",3,"click"],[1,"redirect",3,"hidden"],[1,"screen-max-width"],[1,"screen-mid-width"],[1,"rankings"],[1,"user-container"],[1,"screen-max-width",3,"click"],[1,"screen-mid-width",3,"click"],[1,"rankings",3,"click"],[1,"rankings-icon"],[1,"rankings-text"],[1,"tax"],[1,"chat-no-read",3,"click"],[1,"chat-no-count"],[1,"notify",3,"click"],[1,"notify-icon"],[1,"notify-count"],[1,"user-avatar"],[1,"avatar",3,"mouseenter","error","src"],[1,"red-point"],[1,"coupons-tip"],[3,"hide-user-panel","show-article-list"],[3,"articleList","draftList","recycleList","isIndex"],["type","common",3,"title"],[1,"tax",3,"click"],[3,"hide-notify"],[3,"delete-draft","delete-article","edit-draft","edit-article","edit-recycle-article","article-scroll","show-article-list","articleList","draftList","recycleList","isIndex"],["type","common",3,"dialog-confirm","dialog-cancel","title"],[1,"header-right","to-dashboard",3,"click"],[1,"icon"],[1,"text"],[3,"innerHTML"],[1,"close-icon",3,"click"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),f("click",function(){return r.toGroupPage();}),M(3,"div",3),h(4,wP,2,3,"div",4),c(),s(5,"div",5),f("click",function(){return r.toNotePage();}),s(6,"span"),g(7,"\u7B14\u8BB0"),c(),M(8,"i",6),c()(),s(9,"div",7),f("click",function(){return r.showErrorInfo();}),c(),s(10,"div",8),h(11,yP,1,0,"app-search-bar"),h(12,kP,6,3,"div",9),c(),h(13,zP,6,5,"div",10),h(14,GP,4,0,"div",11),c(),h(15,jP,3,1,"div",12)),t&2&&(C("ngClass",R(9,PP,r.responsiveHeader)),l(4),_(r.isCrm?4:-1),l(),C("hidden",r.isRankingsPage)("ngClass",R(11,MP,!r.isCrm)),l(6),_(r.searchVisible?11:-1),l(),_(r.overtime?12:-1),l(),_(r.showToDashboard?-1:13),l(),_(r.showToDashboard?14:-1),l(),_(r.errorVisible?15:-1));},dependencies:[K,Ze,qp,Tg,Eg,Yu,ed],styles:['[hidden][_ngcontent-%COMP%]{visibility:hidden}.header-container[_ngcontent-%COMP%]{z-index:9;position:fixed;top:0;left:0;right:0;height:50px;background:var(--dweb-bg-panel, #FFFFFF);box-shadow:0 1px 0 var(--dweb-border-subtle);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-width:1326px}.header-container[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]{width:278px;cursor:pointer;margin-left:24px;margin-right:6px;display:flex;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.header-container[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{display:flex;align-items:center}.header-container[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{outline:none;border:none;background-image:url("./media/[email protected]");background-position:-96px -28px;height:20px;width:114px;margin-right:8px}.header-container[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]   .tip[_ngcontent-%COMP%]{width:60px;height:22px;line-height:22px;background:#5583aa;border-radius:4px;font-family:PingFangSC-Regular;font-size:12px;color:#fff;text-align:center}.header-container[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]   .tip.crm[_ngcontent-%COMP%]{background:#5583aa linear-gradient(270deg,#4fd0bf,#22c7a6)}.header-container[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]   .note[_ngcontent-%COMP%]{position:relative;margin-left:12px}.header-container[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]   .note.no-tip[_ngcontent-%COMP%]{margin-left:4px}.header-container[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]   .note[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:0 6px;box-sizing:border-box;width:52px;height:20px;background:linear-gradient(135deg,#fff0e3,#fff8e4);border-radius:4px}.header-container[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]   .note[_ngcontent-%COMP%]:before{content:"";position:absolute;width:54px;height:22px;top:-1px;left:-1px;z-index:-1;border-radius:4px;background:linear-gradient(136deg,#fabf9c,#ffecc6)}.header-container[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]   .note[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:500;font-size:12px;color:var(--dweb-copper)}.header-container[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]   .note[_ngcontent-%COMP%]   .note-icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]");background-position:-297px -219px;height:10px;width:10px}.header-container[_ngcontent-%COMP%]   .error-emit-point[_ngcontent-%COMP%]{position:absolute;
145left:1px;width:5px;height:5px;background-color:var(--dweb-bg-panel);cursor:help}.header-container[_ngcontent-%COMP%]   .middle-container[_ngcontent-%COMP%]{flex:1;flex-shrink:0;position:relative}.header-container[_ngcontent-%COMP%]   .wenda[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center}.header-container[_ngcontent-%COMP%]   .wenda[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:0 8px;width:1px;height:12px;background:#c5c6cb4d}.header-container[_ngcontent-%COMP%]   .wenda[_ngcontent-%COMP%]   .red-point[_ngcontent-%COMP%]{position:absolute;left:-12px;width:6px;height:6px;background:var(--dweb-danger);border-radius:8px}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .redirect[_ngcontent-%COMP%]{display:flex;align-items:center;padding-left:45px;color:var(--dweb-info, #567895);font-size:14px;flex-shrink:0;margin-right:20px;margin-left:15px}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .rankings[_ngcontent-%COMP%]{background:linear-gradient(90deg,#ff8955,#ffc360);border-radius:4px;padding:4px 8px;margin-right:20px;white-space:nowrap;display:flex;align-items:center;cursor:pointer}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .rankings[_ngcontent-%COMP%]   .rankings-icon[_ngcontent-%COMP%]{display:inline-block;width:14px;height:12px;background-image:url("./media/icon_trophy-BRTHIYSB.png");background-size:cover;margin-right:4px}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .rankings[_ngcontent-%COMP%]   .rankings-text[_ngcontent-%COMP%]{font-size:13px;color:#fff}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]{flex-shrink:0;margin-right:24px;align-items:center;display:flex}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]   .tax[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:20px;cursor:pointer}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]   .tax[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{width:24px;height:24px;
145background:url("./media/tax_icon-DM33FCVF.svg") no-repeat center;margin-right:6px}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]   .tax[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;color:var(--dweb-info)}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]   .chat-no-read[_ngcontent-%COMP%]{width:20px;height:20px;background-image:url("./media/[email protected]");background-position:-104px -158px;position:relative;cursor:pointer}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]   .chat-no-read[_ngcontent-%COMP%]   .chat-no-count[_ngcontent-%COMP%]{position:absolute;background:var(--dweb-danger);border-radius:6px;font-size:9px;color:#fff;text-align:center;padding:0 3.5px;left:12px;top:-5px}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{height:30px;width:30px;border-radius:50%;cursor:pointer;border:2px solid white;background-color:var(--dweb-bg-subtle, #F5F6F7);margin-left:20px}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]   .avatar.active[_ngcontent-%COMP%]{border-color:var(--dweb-brand)}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]   .notify[_ngcontent-%COMP%]{position:relative;width:25px;height:25px;cursor:pointer;margin-left:20px}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]   .notify[_ngcontent-%COMP%]   .notify-icon[_ngcontent-%COMP%]{width:25px;height:25px;background-image:url("./media/[email protected]");background-position:-102px -189px}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]   .notify[_ngcontent-%COMP%]   .notify-count[_ngcontent-%COMP%]{position:absolute;top:0;right:2px;border-radius:50%;width:6px;height:6px;background-color:var(--dweb-danger)}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]   .user-avatar[_ngcontent-%COMP%]{position:relative;padding:9px 0}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]   .user-avatar[_ngcontent-%COMP%]   .coupons-tip[_ngcontent-%COMP%]{width:max-content;z-index:1;position:absolute;top:50px;right:-43px;padding:6px 12px;border-radius:4px;background:#ffc07be6;box-shadow:0 8px 16px #17325e33;font-family:PingFangSC-Regular;font-size:12px;color:#fff;letter-spacing:0;text-align:justify}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]   .user-avatar[_ngcontent-%COMP%]   .coupons-tip[_ngcontent-%COMP%]:before{content:"";position:absolute;display:block;width:0;height:0;border:6px solid rgba(255,192,123,.9);border-left:6px solid transparent;border-top:6px solid transparent;border-bottom-right-radius:1px;transform:rotate(-135deg);top:-6px;left:53px}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]   .user-avatar[_ngcontent-%COMP%]   .red-point[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:6px;background:var(--dweb-danger);position:absolute;right:-5px;top:3px}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]   .user-avatar[_ngcontent-%COMP%]:hover   .avatar[_ngcontent-%COMP%]{border-color:var(--dweb-brand)}.header-container[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]   .user-avatar[_ngcontent-%COMP%]:hover     .user-panel-container{display:block}.header-container[_ngcontent-%COMP%]   .timeout-tips[_ngcontent-%COMP%]{position:absolute;top:-4px;right:calc(50% - 317px);width:736px;height:40px;line-height:40px;text-align:center;background:#fcc060e6;box-shadow:0 2px 8px #e3a92133;color:#fff;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.header-container[_ngcontent-%COMP%]   .timeout-tips[_ngcontent-%COMP%]   .relogin-btn[_ngcontent-%COMP%]{cursor:pointer;color:var(--dweb-danger);text-decoration:underline}.header-container[_ngcontent-%COMP%]   .timeout-tips[_ngcontent-%COMP%]   .close-tips-btn[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;height:16px;width:14px;background-image:url("./media/[email protected]");background-position:-534px -195px;position:absolute;right:24px;top:12px}.header-container[_ngcontent-%COMP%]   .timeout-tips[_ngcontent-%COMP%]   .close-tips-btn[_ngcontent-%COMP%]:hover{background-position:-534px -223px}.header-container[_ngcontent-%COMP%]   .to-dashboard[_ngcontent-%COMP%]{height:36px;border-radius:18px;
145cursor:pointer;margin-right:24px}.header-container[_ngcontent-%COMP%]   .to-dashboard[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:14px;height:14px;background-image:url("./media/[email protected]");background-position:-27px -376px;margin-right:8px}.header-container[_ngcontent-%COMP%]   .to-dashboard[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{color:var(--dweb-text-muted);font-size:14px}.error-container[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;width:420px;max-height:680px;overflow:hidden;background:var(--dweb-bg-panel);animation:_ngcontent-%COMP%_fadeIn 1s}.error-container[_ngcontent-%COMP%]   pre[_ngcontent-%COMP%]{position:relative;outline:1px solid #ccc;padding:5px;margin:5px;white-space:pre-wrap;word-wrap:break-word}.error-container[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%]{position:absolute;right:10px;top:10px;background-image:url("./media/[email protected]");background-position:-357px -242px;width:10px;height:10px;cursor:pointer}.dialog-tip[_ngcontent-%COMP%]{font-size:14px;color:var(--dweb-danger);text-align:center}.qr-code[_ngcontent-%COMP%]{width:120px;height:120px;margin:40px auto 20px}.qr-code.no-tip[_ngcontent-%COMP%]{margin:10px auto 20px!important}.sub-tip[_ngcontent-%COMP%]{font-size:14px;color:var(--dweb-brand);text-align:center;margin-bottom:30px}@media screen and (max-width:1650px){.responsive-header[_ngcontent-%COMP%]{display:grid;grid-template-columns:351px 1fr 351px;gap:10px;min-width:auto}.responsive-header[_ngcontent-%COMP%]   .middle-container[_ngcontent-%COMP%]  .search-container{width:100%}}@media screen and (max-width:1220px){.responsive-header[_ngcontent-%COMP%]{display:grid;grid-template-columns:327px 1fr;gap:10px;min-width:auto}.responsive-header[_ngcontent-%COMP%]   .middle-container[_ngcontent-%COMP%]{padding-right:24px}.responsive-header[_ngcontent-%COMP%]   .middle-container[_ngcontent-%COMP%]  .search-container{width:100%}.responsive-header[_ngcontent-%COMP%]   .header-right[_ngcontent-%COMP%]{display:none}}@media screen and (max-width:900px){.responsive-header[_ngcontent-%COMP%]{display:flex;padding:0 24px;align-items:center}.responsive-header[_ngcontent-%COMP%]   .middle-container[_ngcontent-%COMP%]{padding-right:0}.responsive-header[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]{display:none}}@keyframes _ngcontent-%COMP%_fadeIn{0%{left:-100px}to{left:0}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.header-container[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%], .header-container[_ngcontent-%COMP%]   .notify-icon[_ngcontent-%COMP%], .timeout-tips[_ngcontent-%COMP%]   .close-tips-btn[_ngcontent-%COMP%], .to-dashboard[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .wenda[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .note-icon[_ngcontent-%COMP%], .chat-no-read[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}@media screen and (min-width:1550px){.header-right[_ngcontent-%COMP%]   .redirect[_ngcontent-%COMP%]   a.screen-mid-width[_ngcontent-%COMP%]{display:none}.header-right[_ngcontent-%COMP%]   .redirect[_ngcontent-%COMP%]   a.screen-max-width[_ngcontent-%COMP%]{display:inline}}@media screen and (max-width:1550px){.header-right[_ngcontent-%COMP%]   .redirect[_ngcontent-%COMP%]   a.screen-mid-width[_ngcontent-%COMP%]{display:inline}.header-right[_ngcontent-%COMP%]   .redirect[_ngcontent-%COMP%]   a.screen-max-width[_ngcontent-%COMP%]{display:none}}']});let o=n;return o;})();var Uo=function(o){return o.InteractivePkEntry="interactive_pk_entry_dot_seen",o;}(Uo||{}),Cs=(()=>{let n=class n{key(e,t){return`${e}_${t}`;}isSeen(e,t){return!!window.localStorage.getItem(this.key(e,t));}markSeen(e,t){window.localStorage.setItem(this.key(e,t),"1");}};n.ɵfac=function(t){return new(t||n)();},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var em=(()=>{let n=class n{constructor(e){this.http=e,this._ownerTag$=new U(),this.ownerTag$=this._ownerTag$.asObservable();}delTags(e){this.http.delete(j.delTags(e)).subscribe(t=>
145{t.succeeded||this.http.handleExceptionCode(t,"\u6E05\u7A7A\u6807\u7B7E\u5217\u8868\u5931\u8D25");});}getOwnerHashtags(e){this.http.get(j.getOwnerHashtags(e)).subscribe(t=>{t.succeeded?this._ownerTag$.next(t.resp_data.hashtags):(this._ownerTag$.next([]),this.http.handleExceptionCode(t,"\u83B7\u53D6\u661F\u7403\u63A8\u8350\u6807\u7B7E\u5217\u8868\u5931\u8D25"));});}};n.ɵfac=function(t){return new(t||n)(re(W));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var UP=["searchInput"],tm=o=>({checked:o}),qP=o=>({normal:o}),QP=(o,n)=>({checked:o,block:n});function WP(o,n){if(o&1){let i=y();s(0,"div",12),f("click",function(){let t=b(i).$implicit,r=d(3);return P(r.addTag(t));}),g(1),c();}if(o&2){let i=n.$implicit;C("ngClass",R(2,tm,i.checked)),l(),V(" ",i.title," ");}}function XP(o,n){if(o&1&&(s(0,"div",6)(1,"div",9),g(2,"\u661F\u4E3B\u6807\u7B7E"),c(),s(3,"div",10),B(4,WP,2,4,"div",11,Y),c()()),o&2){let i=d(2);l(4),N(i.ownerTagList.visual);}}function JP(o,n){if(o&1){let i=y();s(0,"span",19),f("click",function(){b(i);let t=d(3);return P(t.showDelConfirm());}),c();}}function YP(o,n){if(o&1){let i=y();s(0,"div",12),f("click",function(){let t=b(i).$implicit,r=d(3);return P(r.addTag(t));}),g(1),c();}if(o&2){let i=n.$implicit;C("ngClass",R(2,tm,i.checked)),l(),V(" ",i.title," ");}}function KP(o,n){if(o&1){let i=y();s(0,"div",7)(1,"div",9),g(2,"\u6700\u8FD1\u4F7F\u7528\u7684\u6807\u7B7E"),c(),s(3,"div",13),f("click",function(t){b(i);let r=d(2);return P(r.stopPropagation(t));}),h(4,JP,1,0,"span",14),s(5,"span",15)(6,"span",16),f("click",function(){b(i);let t=d(2);return P(t.delTags());}),g(7,"\u786E\u8BA4\u6E05\u7A7A"),c(),M(8,"span",17),s(9,"span",18),f("click",function(){b(i);let t=d(2);return P(t.hideDelConfirm());}),g(10,"\u53D6\u6D88"),c()()(),s(11,"div",10),B(12,YP,2,4,"div",11,Y),c()();}if(o&2){let i=d(2);l(4),_(i.recentTagList.visual.length>0?4:-1),l(),C("hidden",!i.delConfirmVisible),l(7),N(i.recentTagList.visual);}}function ZP(o,n){o&1&&(s(0,"div",8),M(1,"i",20),s(2,"span"),g(3,"\u8FD9\u91CC\u7A7A\u7A7A\u5982\u4E5F"),c()());}function eM(o,n){if(o&1&&(h(0,XP,6,0,"div",6),h(1,KP,14,2,"div",7),h(2,ZP,4,0,"div",8)),o&2){let i=d();_(i.ownerTagList.visual.length>0?0:-1),l(),_(i.recentTagList.visual.length>0?1:-1),l(),_(i.noTags?2:-1);}}function tM(o,n){if(o&1){let i=y();s(0,"div",12),f("click",function(){let t=b(i).$implicit,r=d(3);return P(r.addTag(t));}),g(1),c();}if(o&2){let i=n.$implicit;C("ngClass",qe(2,QP,i.checked,i.properties==null?null:i.properties.privileged)),l(),V(" ",i.title," ");}}function nM(o,n){if(o&1&&(s(0,"div",9),g(1,"\u76F8\u5173\u6807\u7B7E"),c(),s(2,"div",10),B(3,tM,2,5,"div",11,Y),c()),o&2){let i=d(2);l(3),N(i.searchResultList);}}function iM(o,n){if(o&1){let i=y();s(0,"div",21),f("click",function(){b(i);let t=d();return P(t.addNewTag());}),g(1),c(),h(2,nM,5,0);}if(o&2){let i=d();C("ngClass",R(3,qP,i.inputSameResult)),l(),V(" ",i.searchResult," "),l(),_(i.searchResultList.length>0?2:-1);}}var nm=(()=>{let n=class n{constructor(e,t,r,a){this.createTopicService=e,this.tagService=t,this.indexService=r,this.message=a,this.tagEmitter=new H(),this.subscriptions=[],this.delIconVisible=!1,this.delConfirmVisible=!1,this.highLightTag=[],this.ownerTagList={origin:[],visual:[]},this.recentTagList={origin:[],visual:[]},this.noTags=!1,this.searchResult="",this.searchResultList=[],this.inputSameResult=!1,this.searching=!1;}ngOnInit(){this.handleHighLightTag(),this.doSubscribe(),this.fetchData();}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}handleHighLightTag(){let e=this.textareaText.match(/#([^#]*?)#/g);if(e&&e.length>0)for(let t of e)t.match(/[\n\r]/g)||t.match(/#\s+#/g)||t==="##"||t.length>20||this.highLightTag.push(t.replace(/^(\s|#)+|(\s|#)+$/g,""));}fetchData(){this.tagService.getOwnerHashtags(this.groupId);}doSubscribe(){let e=this.tagService.ownerTag$.subscribe(r=>{this.handleTagList(r,this.ownerTagList),this.createTopicService.getHashtags(this.groupId);}),t=this.createTopicService.tag$.subscribe(r=>{this.handleTagList(r,this.recentTagList),this.noTags=r.length===0&&this.ownerTagList.visual.length===0;});this.subscriptions.push(e,t);}addNewTag(){let t={denotationChar:"#",index:"",id:"",value:`#${this.searchInput.nativeElement.value.trim()}#`};this.tagEmitter.emit(t),this.clearInput();}addTag(e){var r;if(!(this.indexService.isGroupOwner||!this.indexService.isMember)&&(r=e.properties)!=null&&r.privileged)this.message.info({content:"\u661F\u4E3B\u8BBE\u7F6E\u7981\u6B62\u4F7F\u7528\u8BE5\u6807\u7B7E"});else{e.checked=!0;let a={denotationChar:"#",index:"",id:e.hashtag_id,value:`#${e.title}#`};this.tagEmitter.emit(a);}}stopPropagation(e){e.preventDefault(),e.stopPropagation();}delTags(){let e=this.groupId;this.tagService.delTags(e),this.recentTagList.origin=[],this.recentTagList.visual=[],this.noTags=this.ownerTagList.visual.length===0,this.delConfirmVisible=!1;}showDelConfirm(){this.delConfirmVisible||(this.delConfirmVisible=!0);}hideDelConfirm(){this.delConfirmVisible=!1;}handleTagList(e,t){if(!e)return[];e.forEach(r=>{r.title=r.title.replace(/^(\s|#)+|(\s|#)+$/g,"");}),t.origin=e,t.visual=e.filter(r=>{var p;return r.checked=this.highLightTag.includes(r.title),this.indexService.isGroupOwner||!this.indexService.isMember?!0:!((p=r.properties)!=null&&p.privileged);});}handleInput(){let e=this.searchInput.nativeElement.value.trim();this.searching=e!=="";let t=e.slice(0,18),r=this.ownerTagList.origin.filter(v=>v.title.includes(t)),a=this.recentTagList.origin.filter(v=>v.title.includes(t)),p={},m=r.concat(a);this.searchResultList=m.reduce((v,x)=>(p[x.hashtag_id]||(p[x.hashtag_id]=!0,v.push(x)),v),[]),this.inputSameResult=!1,this.searchResultList.forEach(v=>{v.title===t&&(this.inputSameResult=!0);}),this.inputSameResult&&(this.searchResultList=this.searchResultList.filter(v=>v.title!==t)),this.searchResult=this.inputSameResult?t:`\u6DFB\u52A0\u300C${t}\u300D\u6807\u7B7E`;}clearInput(){this.searchInput.nativeElement.value="",this.searching=!1;}};n.ɵfac=function(t){return new(t||n)(O(zn),O(em),O(q),O(le));},n.ɵcmp=F({type:n,selectors:[["app-tag"]],viewQuery:function(t,r){if(t&1&&_e(UP,7),t&2){let a;ee(a=te())&&(r.searchInput=a.first);}},inputs:{groupId:[0,"group-id","groupId"],textareaText:[0,"textarea-text","textareaText"]},outputs:{tagEmitter:"add-tag"},standalone:!1,decls:8,vars:2,consts:[["searchInput",""],[1,"tag-container"],[1,"search",3,"click"],["type","text","placeholder","\u6DF
145B\u52A0\u6807\u7B7E","autocomplete","off","maxlength","18",3,"keyup"],[3,"click","ngClass"],[1,"scroll-container"],[1,"recommend-tags"],[1,"recent-tags"],[1,"no-tags"],[1,"title"],[1,"tag-list"],[1,"item",3,"ngClass"],[1,"item",3,"click","ngClass"],[1,"del",3,"click"],[1,"del-icon"],[1,"confirm",3,"hidden"],[1,"orange",3,"click"],[1,"border"],[3,"click"],[1,"del-icon",3,"click"],[1,"icon"],[1,"item","search",3,"click","ngClass"]],template:function(t,r){t&1&&(s(0,"div",1)(1,"div",2),f("click",function(p){return r.stopPropagation(p);}),s(2,"input",3,0),f("keyup",function(){return r.handleInput();}),c(),s(4,"i",4),f("click",function(){return r.clearInput();}),c()(),s(5,"div",5),h(6,eM,3,3)(7,iM,3,5),c()()),t&2&&(l(4),C("ngClass",r.searching?"del-icon":"search-icon"),l(2),_(r.searching?7:6));},dependencies:[K],styles:['.tag-container[_ngcontent-%COMP%]{width:480px;min-height:310px;box-sizing:border-box;background:var(--dweb-bg-panel);border-radius:4px;padding:15px}.tag-container[_ngcontent-%COMP%]   [hidden][_ngcontent-%COMP%]{display:none!important}.tag-container[_ngcontent-%COMP%]   .scroll-container[_ngcontent-%COMP%]{overflow-y:auto;max-height:323px}.tag-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:var(--dweb-text-faint, #C5C6CB);display:inline-block;font-size:12px}.tag-container[_ngcontent-%COMP%]   .del[_ngcontent-%COMP%]{float:right;display:flex;align-items:center;height:17px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tag-container[_ngcontent-%COMP%]   .del[_ngcontent-%COMP%]   .del-icon[_ngcontent-%COMP%]{display:block;position:relative;width:11px;height:12px;background-image:url("./media/[email protected]");background-position:-568px -314px}.tag-container[_ngcontent-%COMP%]   .del[_ngcontent-%COMP%]   .del-icon[_ngcontent-%COMP%]:before{content:"";position:absolute;top:-10px;left:-6px;bottom:-10px;right:0}.tag-container[_ngcontent-%COMP%]   .del[_ngcontent-%COMP%]   .confirm[_ngcontent-%COMP%]{font-size:12px;color:var(--dweb-text-muted);margin-left:6px}.tag-container[_ngcontent-%COMP%]   .del[_ngcontent-%COMP%]   .confirm[_ngcontent-%COMP%]   .orange[_ngcontent-%COMP%]{color:var(--dweb-danger)}.tag-container[_ngcontent-%COMP%]   .del[_ngcontent-%COMP%]   .confirm[_ngcontent-%COMP%]   .border[_ngcontent-%COMP%]{display:inline-block;width:1px;background:var(--dweb-border);height:10px;margin:0 8px}.tag-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;box-sizing:border-box;display:inline-block;min-width:44px;height:32px;padding:0 8px;line-height:32px;text-align:center;border-radius:4px;margin-top:10px;margin-right:10px;background:var(--dweb-bg-soft);font-size:14px;color:var(--dweb-text-secondary, #5A5C66);border:1px solid transparent;cursor:pointer}.tag-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:hover{color:var(--dweb-brand);background:#41b78c0d;border:1px solid rgba(65,183,140,.2)}.tag-container[_ngcontent-%COMP%]   .item.search[_ngcontent-%COMP%]{width:max-content;display:block;color:var(--dweb-info, #567895)}.tag-container[_ngcontent-%COMP%]   .item.search.normal[_ngcontent-%COMP%]{color:var(--dweb-text-secondary, #5A5C66)}.tag-container[_ngcontent-%COMP%]   .item.checked[_ngcontent-%COMP%]{color:var(--dweb-brand);background:#41b78c0d;border:1px solid rgba(65,183,140,.2)}.tag-container[_ngcontent-%COMP%]   .item.block[_ngcontent-%COMP%]{color:var(--dweb-text-faint)}.tag-container[_ngcontent-%COMP%]   .no-tags[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding-top:60px;font-family:PingFangSC-Regular;font-size:14px;color:var(--dweb-text-faint, #C5C6CB)}.tag-container[_ngcontent-%COMP%]   .no-tags[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:87px;height:71px;background-image:url("./media/[email protected]");background-position:-87px -929px;margin-bottom:6px}.tag-container[_ngcontent-%COMP%]   .recommend-tags[_ngcontent-%COMP%]{margin-bottom:15px}.tag-container[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]{position:relative;margin-bottom:15px}.tag-container[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{box-sizing:border-box;border:none;outline:none;height:32px;width:100%;background:var(--dweb-bg-panel-2);border-radius:4px;padding:0 40px 0 12px;font-family:PingFangSC-Regular;font-size:14px;color:var(--dweb-text-primary)}.tag-container[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:var(--dweb-text-faint, #C5C6CB)}.tag-container[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]   .search-icon[_ngcontent-%COMP%]{height:32px;width:32px;background-image:url("./media/[email protected]");background-position:-98px -411px;position:absolute;right:0;pointer-events:none}.tag-container[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]   .del-icon[_ngcontent-%COMP%]{height:14px;width:14px;background-image:url("./media/[email protected]");background-position:-534px -196px;position:absolute;right:10px;top:9px;
145cursor:pointer}.tag-container[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]   .del-icon[_ngcontent-%COMP%]:hover{background-position:-534px -224px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.search[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .del[_ngcontent-%COMP%]   .del-icon[_ngcontent-%COMP%], .no-tags[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var im=(()=>{let n=class n{constructor(e,t){this.http=e,this.message=t,this.confirmEvent=new H(),this.cancelEvent=new H(),this.title="",this.options=[{title:""},{title:""}],this.isSubmitting=!1,this.isComposing=!1,this.submitSub=null,this.TITLE_MAX=16,this.OPTION_MAX=8;}onCompositionStart(){this.isComposing=!0;}onOptionInput(e,t){if(this.isComposing&&e.type==="input")return;this.isComposing=!1;let r=e.target,a=r.value;if(a.length>this.OPTION_MAX){let p=a.slice(0,this.OPTION_MAX);r.value=p,this.options[t].title=p,this.message.info({content:"\u89C2\u70B9\u4E0D\u8D85\u8FC7 8 \u4E2A\u5B57",type:"error"});}else this.options[t].title=a;}get canConfirm(){return!!this.title.trim()&&this.options.every(e=>!!e.title.trim())&&!this.isSubmitting;}handleConfirm(e){if(e.stopPropagation(),!this.canConfirm)return;let t={req_data:{title:this.title,options:this.options.map(r=>({title:r.title}))}};this.isSubmitting=!0,this.submitSub=this.http.post(j.createVote(),t).subscribe(r=>{this.isSubmitting=!1,r.succeeded?this.confirmEvent.emit(r.resp_data.vote):r.code===1026?this.message.info({content:"\u8BBE\u7F6E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u4F60\u586B\u5199\u7684\u5185\u5BB9",type:"warning"}):this.http.handleExceptionCode(r,"\u521B\u5EFA\u6295\u7968\u5931\u8D25");});}handleCancel(e){e.stopPropagation(),this.reset(),this.cancelEvent.emit();}reset(){var e;(e=this.submitSub)==null||e.unsubscribe(),this.submitSub=null,this.title="",this.options=[{title:""},{title:""}],this.isSubmitting=!1;}handlePanelClick(e){e.stopPropagation();}};n.ɵfac=function(t){return new(t||n)(O(W),O(le));},n.ɵcmp=F({type:n,selectors:[["app-vote-setting-dialog"]],outputs:{confirmEvent:"confirm",cancelEvent:"cancelVote"},standalone:!1,decls:21,vars:7,consts:[[1,"vote-dialog-panel",3,"click"],[1,"dialog-title"],[1,"title-input-wrap"],["placeholder","\u5199\u4E0B\u4F60\u60F3\u8BA8\u8BBA\u7684\u95EE\u9898...","autocomplete","off","spellcheck","false",1,"title-input",3,"ngModelChange","maxlength","ngModel"],[1,"options-wrap"],[1,"option-group","option-red-group"],[1,"option-label","option-red-label"],["type","text","placeholder","\u5199\u4E0B\u89C2\u70B9\u4E00...","autocomplete","off","spellcheck","false",1,"option-input",3,"compositionstart","compositionend","input","value"],[1,"pk-divider"],[1,"vote-preview-icon"],[1,"option-group","option-blue-group"],[1,"option-label","option-blue-label"],["type","text","placeholder","\u5199\u4E0B\u89C2\u70B9\u4E8C...","autocomplete","off","spellcheck","false",1,"option-input",3,"compositionstart","compositionend","input","value"],[1,"dialog-footer"],[1,"cancel-btn",3,"click"],[1,"confirm-btn",3,"click"]],template:function(t,r){t&1&&(s(0,"div",0),f("click",function(p){return r.handlePanelClick(p);}),s(1,"div",1),g(2,"\u8BBE\u7F6E PK\uFF0C\u770B\u770B\u5927\u5BB6\u66F4\u652F\u6301\u54EA\u4E2A\u89C2\u70B9"),c(),s(3,"div",2)(4,"input",3),On("ngModelChange",function(p){return Mn(r.title,p)||(r.title=p),p;}),c()(),s(5,"div",4)(6,"div",5)(7,"span",6),g(8,"\u7EA2\u65B9"),c(),s(9,"input",7),f("compositionstart",function(){return r.onCompositionStart();})("compositionend",function(p){return r.onOptionInput(p,0);})("input",function(p){return r.onOptionInput(p,0);}),c()(),s(10,"div",8),M(11,"span",9),c(),s(12,"div",10)(13,"span",11),g(14,"\u84DD\u65B9"),c(),s(15,"input",12),f("compositionstart",function(){return r.onCompositionStart();})("compositionend",function(p){return r.onOptionInput(p,1);})("input",function(p){return r.onOptionInput(p,1);}),c()()(),s(16,"div",13)(17,"span",14),f("click",function(p){return r.handleCancel(p);}),g(18,"\u53D6\u6D88"),c(),s(19,"span",15),f("click",function(p){return r.handleConfirm(p);}),g(20),c()()()),t&2&&(l(4),C("maxlength",r.TITLE_MAX),Pn("ngModel",r.title),l(5),C("value",r.options[0].title),l(6),C("value",r.options[1].title),l(4),zt("disabled",!r.canConfirm),l(),A(r.isSubmitting?"\u63D0\u4EA4\u4E2D...":"\u786E\u5B9A"));},dependencies:[yn,kn,ki,Sn],styles:['.vote-dialog-panel[_ngcontent-%COMP%]{background:var(--dweb-bg-panel);border-radius:4px;padding:24px;box-sizing:border-box}.vote-dialog-panel[_ngcontent-%COMP%]   .dialog-title[_ngcontent-%COMP%]{font-size:13px;font-weight:700;color:var(--dweb-text-primary);text-align:center;margin-bottom:24px}.vote-dialog-panel[_ngcontent-%COMP%]   .title-input-wrap[_ngcontent-%COMP%]{margin-bottom:32px}.vote-dialog-panel[_ngcontent-%COMP%]   .title-input-wrap[_ngcontent-%COMP%]   .title-input[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;background:transparent;border:none;border-bottom:2px solid var(--dweb-brand);padding-bottom:10px;font-size:17px;font-weight:500;color:var(--dweb-text-primary);outline:none;text-align:center;font-family:inherit}.vote-dialog-panel[_ngcontent-%COMP%]   .title-input-wrap[_ngcontent-%COMP%]   .title-input[_ngcontent-%COMP%]::placeholder{color:var(--dweb-text-faint)}.vote-dialog-panel[_ngcontent-%COMP%]   .options-wrap[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:32px}.vote-dialog-panel[_ngcontent-%COMP%]   .options-wrap[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-right:12px}.vote-dialog-panel[_ngcontent-%COMP%]   .options-wrap[_ngcontent-%COMP%]   .option-group[_ngcontent-%COMP%]{flex:1;display:flex;align-items:center;border-radius:6px;overflow:hidden;border:1px solid var(--dweb-border-medium)}.vote-dialog-panel[_ngcontent-%COMP%]   .options-wrap[_ngcontent-%COMP%]   .option-group[_ngcontent-%COMP%]   .option-label[_ngcontent-%COMP%]{flex-shrink:0;width:32px;height:29px;line-height:29px;text-align:center;font-size:12px;font-weight:700;color:#fff;border-radius:2px 0 0 2px;padding:0 4px}.vote-dialog-panel[_ngcontent-%COMP%]   .options-wrap[_ngcontent-%COMP%]   .option-group[_ngcontent-%COMP%]   .option-input[_ngcontent-%COMP%]{flex:1;border:none;padding:0 9px;height:29px;font-size:13px;color:var(--dweb-text-primary);outline:none;font-family:inherit;background:var(--dweb-bg-panel);box-sizing:border-box}.vote-dialog-panel[_ngcontent-%COMP%]   .options-wrap[_ngcontent-%COMP%]   .option-group[_ngcontent-%COMP%]   .option-input[_ngcontent-%COMP%]::placeholder{color:var(--dweb-text-faint)}.vote-dialog-panel[_ngcontent-%COMP%]   .options-wrap[_ngcontent-%COMP%]   .option-group.option-red-group[_ngcontent-%COMP%]   .option-red-label[_ngcontent-%COMP%]{background:#f2713a}.vote-dialog-panel[_ngcontent-%COMP%]   .options-wrap[_ngcontent-%COMP%]   .option-group.option-blue-group[_ngcontent-%COMP%]   .option-blue-label[_ngcontent-%COMP%]{background:#5b8def}.vote-dialog-panel[_ngcontent-%COMP%]   .options-wrap[_ngcontent-%COMP%]   .pk-divider[_ngcontent-%COMP%]{flex-shrink:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center}.vote-dialog-panel[_ngcontent-%COMP%]   .options-wrap[_ngcontent-%COMP%]   .pk-divider[_ngcontent-%COMP%]   .vote-preview-icon[_ngcontent-%COMP%]{width:14px;
145height:14px;background-image:url("./media/[email protected]");background-size:100%}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.vote-dialog-panel[_ngcontent-%COMP%]   .options-wrap[_ngcontent-%COMP%]   .pk-divider[_ngcontent-%COMP%]   .vote-preview-icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")}}.vote-dialog-panel[_ngcontent-%COMP%]   .dialog-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center}.vote-dialog-panel[_ngcontent-%COMP%]   .dialog-footer[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-right:30px}.vote-dialog-panel[_ngcontent-%COMP%]   .dialog-footer[_ngcontent-%COMP%]   .cancel-btn[_ngcontent-%COMP%]{font-size:16px;color:gray;cursor:pointer}.vote-dialog-panel[_ngcontent-%COMP%]   .dialog-footer[_ngcontent-%COMP%]   .confirm-btn[_ngcontent-%COMP%]{font-size:16px;color:#fff;background:var(--dweb-brand);border-radius:4px;padding:5px 19px;cursor:pointer;font-weight:500}.vote-dialog-panel[_ngcontent-%COMP%]   .dialog-footer[_ngcontent-%COMP%]   .confirm-btn.disabled[_ngcontent-%COMP%]{background:var(--dweb-border);pointer-events:none}html[data-theme=dark][_nghost-%COMP%]   .vote-dialog-panel[_ngcontent-%COMP%]   .options-wrap[_ngcontent-%COMP%]   .option-group[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .vote-dialog-panel[_ngcontent-%COMP%]   .options-wrap[_ngcontent-%COMP%]   .option-group[_ngcontent-%COMP%]{background:var(--dweb-bg-panel-2);border-color:var(--dweb-border)}html[data-theme=dark][_nghost-%COMP%]   .vote-dialog-panel[_ngcontent-%COMP%]   .options-wrap[_ngcontent-%COMP%]   .option-group[_ngcontent-%COMP%]   .option-input[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .vote-dialog-panel[_ngcontent-%COMP%]   .options-wrap[_ngcontent-%COMP%]   .option-group[_ngcontent-%COMP%]   .option-input[_ngcontent-%COMP%]{background:var(--dweb-bg-panel-2)}']});let o=n;return o;})();var aM=["tag"],sM=["tagControl"],cM=["emoji"],lM=["upload"],pM=["picUpload"],dM=["videoUpload"],gM=["scheduledJobBtn"],uM=["dropingBox"],mM=["contentBox"],hM=["uploadComponent"],_M=["topicEditor"],fM=["voteSettingDialog"],CM=()=>({display:"none"}),xM=()=>({}),vM=o=>({"max-height":o}),om=o=>({actived:o}),rm=o=>({inactive:o}),bM=o=>({active:o}),vl=(o,n)=>({active:o,inactive:n}),PM=(o,n)=>({submiting:o,"submit-disable":n});function MM(o,n){if(o&1&&(s(0,"span",17),g(1),c()),o&2){let i=d();l(),A(i.editorType);}}function OM(o,n){o&1&&(s(0,"div",18),g(1,"\u5DF2\u4FDD\u5B58\u8349\u7A3F"),M(2,"i",53),c());}function wM(o,n){o&1&&M(0,"div",21);}function yM(o,n){if(o&1){let i=y();s(0,"div",26)(1,"input",54),f("change",function(t){b(i);let r=d();return P(r.handleTaskChange(t));}),c(),M(2,"label",55),s(3,"span"),g(4,"\u6210\u5458\u4F5C\u4E1A\u5C55\u793A\u5728\u65F6\u95F4\u7EBF/\u52A8\u6001"),c()();}}function kM(o,n){if(o&1&&(s(0,"div",27),M(1,"i",56),s(2,"div",16),g(3),c()()),o&2){let i=d();l(3),A(i.extra.title);}}function SM(o,n){if(o&1){let i=y();s(0,"div",28),M(1,"span",57),s(2,"span",58),g(3),c(),M(4,"span",59),s(5,"span",60),f("click",function(){b(i);let t=d();return P(t.clearVote());}),c()();}if(o&2){let i=d();l(3),A(i.vote.title);}}function TM(o,n){if(o&1){let i=y();s(0,"div",30)(1,"span",61),g(2,"\u9009\u62E9\u53D1\u5E03\u65F6\u95F4"),c(),s(3,"app-topic-timer",62),f("time-change",function(t){b(i);let r=d();return P(r.scheduledJobTime=t);}),c()();}if(o&2){let i=d();l(3),C("defaultTime",i.modifyScheduledJobTime)("fourteenMax",14);}}function EM(o,n){o&1&&M(0,"span",64);}function DM(o,n){if(o&1){let i=y();s(0,"div",63),f("click",function(){b(i);let t=d();return P(t.canUseVote&&t.openVoteConfig());}),h(1,EM,1,0,"span",64),M(2,"span",65),s(3,"span",34),g(4,"\u4E92\u52A8PK"),c()();}if(o&2){let i=d();C("ngClass",qe(2,vl,i.voteConfigVisible,!i.canUseVote)),l(),_(i.showVoteDot?1:-1);}}function IM(o,n){if(o&1){let i=y();s(0,"div",42)(1,"input",66),f("change",function(t){b(i);let r=d();return P(r.handlePosterChange(t));}),c(),s(2,"label",67),g(3,"\u751F\u6210\u6D77\u62A5"),c(),s(4,"span",34),g(5,"\u53D1\u5E03\u540E\u751F\u6210\u5206\u4EAB\u6D77\u62A5"),c()();}if(o&2){let i=d();l(),C("checked",i.posterChecked);}}function FM(o,n){o&1&&(s(0,"div",43),g(1,"\u89C6\u9891\u4E3B\u9898\u4EC5\u652F\u6301\u4FEE\u6539\u6587\u5B57\u5185\u5BB9"),c());}function AM(o,n){o&1&&(s(0,"div",43),g(1,"\u8F6C\u53D1\u4E3B\u9898\u4EC5\u652F\u6301\u4FEE\u6539\u6587\u5B57\u5185\u5BB9"),c());}
145function VM(o,n){if(o&1){let i=y();s(0,"div",44,10)(2,"app-emoji",68),f("add-emoji",function(t){b(i),d();let r=ct(19);return P(r.insertEmoji(t));}),c()();}}function RM(o,n){if(o&1){let i=y();s(0,"div",45,11)(2,"app-tag",69,12),f("add-tag",function(t){b(i);let r=d();return P(r.addTag(t));}),c()();}if(o&2){let i=d(),e=ct(19);l(2),C("group-id",i.selectedGroup.group_id)("textarea-text",e.getText());}}function LM(o,n){if(o&1){let i=y();s(0,"app-dialog",70),f("dialog-confirm",function(){b(i);let t=d();return P(t.handleDialogConfirm());})("dialog-cancel",function(){b(i);let t=d();return P(t.dialogVisible=!1);}),s(1,"div"),g(2,"\u786E\u5B9A\u79BB\u5F00\u8BE5\u9875\u9762\uFF1F\u77E5\u8BC6\u661F\u7403\u5C06\u4E0D\u4F1A\u4FDD\u5B58\u4F60\u6240\u505A\u7684\u66F4\u6539"),c()();}}function BM(o,n){if(o&1){let i=y();s(0,"app-dialog",71),f("dialog-confirm",function(){b(i);let t=d();return P(t.scheduledJobTipVisible=!1);}),s(1,"div"),g(2,"\u6B64\u4E3B\u9898\u5DF2\u5B8C\u6210\u5B9A\u65F6\u53D1\u5E03\uFF0C\u5982\u9700\u7F16\u8F91\u4E3B\u9898\uFF0C\u53EF\u5148\u590D\u5236\u5185\u5BB9"),c()();}}var xs=(()=>{let n=class n{get showVoteBtn(){var e,t;return(this.createTopicType==="topic"||this.createTopicType==="talk")&&(this.indexService.isOwnerOrAdminOrPartner||!!((t=(e=this.selectedGroup)==null?void 0:e.guest_ids)!=null&&t.includes(this.userId)));}get canUseVote(){return!this.scheduledVisible&&!this.isModifyReferenced&&!this.vote;}get showVoteDot(){return!this.showVoteBtn||!this.canUseVote?!1:!this.dotService.isSeen(Uo.InteractivePkEntry,this.userId);}openVoteConfig(){this.dotService.markSeen(Uo.InteractivePkEntry,this.userId),this.emojiVisible=!1,this.tagVisible=!1,this.voteConfigVisible=!this.voteConfigVisible;}closeVoteConfig(){this.voteConfigVisible=!1;}clearVote(){var e;this.vote=null,this.voteConfigVisible=!1,(e=this.voteSettingDialog)==null||e.reset();}handleVoteConfirm(e){var t;this.vote=e,this.voteConfigVisible=!1,(t=this.voteSettingDialog)==null||t.reset();}get scheduledJobAbility(){return this.indexService.isOwnerOrAdminOrPartner&&this.createTopicType!=="task"&&this.createTopicType!=="solutio"&&!this.isModify||this.indexService.isOwnerOrAdminOrPartner&&this.isModifyScheduledJob;}get disablePostScheduled(){return!this.isModifyScheduledJob&&this.indexService.scheduledJobsCount>=50||this.createTopicType==="solution"||this.createTopicType==="checkin"||!!this.vote;}get showPosterCheckbox(){return(this.createTopicType==="topic"||this.createTopicType==="task"||this.createTopicType==="solution")&&!this.isModify;}get horizontalLineVisible(){return this.createTopicType==="task"&&!this.isModify||this.createTopicType==="checkin"||this.vote?!1:!this.scheduledVisible||this.createTopicService.createTopicFiles&&this.createTopicService.createTopicFiles.length>0||this.createTopicService.createTopicImages&&this.createTopicService.createTopicImages.length>0;}constructor(e,t,r,a,p,m,v,x,w,k){this.indexService=e,this.createTopicService=t,this.http=r,this.message=a,this.ref=p,this.mainService=m,this.uploadService=v,this.allScheduledJobsService=x,this.bindPhoneDialogService=w,this.dotService=k,this.createTopicType="topic",this.closeMessage=new H(),this.updateTopics=new H(),this.updateEditTopics=new H(),this.noOnTimeline=new H(),this.showPosterDialog=new H(),this.subscriptions=[],this.emojiVisible=!1,this.tagVisible=!1,this.cursorIndex=0,this.contentLength=0,this.postImageIds=[],this.postFileIds=[],this.topicMentionedUsers=[],this.scheduledJobTime=sa(new Date(),11),this.isPosting=!1,this.dialogVisible=!1,this.editorMaxHeight="500px",this.avatarUrl=an,this.droping=!1,this.dragCounter=0,this.scheduledJobTipVisible=!1,this.isModify=!1,this.isModifyVideo=!1,this.isModifyScheduledJob=!1,this.modifyScheduledJobTime="",this.isModifyReferenced=!1,this.isModifyTextOnlyTopic=!1,this.isBoldAvailable=!0,this.existingImagesLength=0,this.isUploaded=!0,this.videoAuthority=!1,this.uploadingVideo=!1,this.videoUsability=!0,this.scheduledVisible=!1,this.isBold=!1,this.editorType="",this.editorPlaceholder="\u70B9\u51FB\u53D1\u8868\u4E3B\u9898...",this.showSolutionsChecked=!0,this.showAutoSaveFlag=!1,this.autoSaveFlagTimer=null,this.autoSave=new U(),this.posterChecked=!0,this.vote=null,this.voteConfigVisible=!1;}ngOnInit(){var e,t;if(this.mainService.modifyTopic){if(this.isModify=!0,this.modifyTopic=this.mainService.modifyTopic,this.isModifyVideo=this.modifyTopic[this.modifyTopic.type].hasOwnProperty("video"),this.isModifyReferenced=this.modifyTopic.hasOwnProperty("referenced_topic"),this.isModifyTextOnlyTopic=this.isModifyReferenced||this.isModifyVideo,this.isModifyScheduledJob=this.modifyTopic.hasOwnProperty("job"),this.isModifyScheduledJob){let a=this.modifyTopic.job.scheduled_time;this.scheduledJobTime=a,this.modifyScheduledJobTime=a;}this.scheduledVisible=this.isModifyScheduledJob,this.mainService.modifyTopic=null,this.isBoldAvailable=["task","
145solution","checkin"].indexOf(this.modifyTopic.type)===-1;let r=(t=(e=this.modifyTopic)==null?void 0:e.talk)==null?void 0:t.vote;r&&(this.vote=r);}else this.isBoldAvailable=["task","solution","checkin"].indexOf(this.createTopicType)===-1;this.selectedGroup=this.indexService.getTargetGroup(!0),this.userId=this.indexService.getSelfInfo("user_id"),this.avatarUrl=this.indexService.getSelfInfo("avatar_url"),this.initPosterCheckbox(),this.setEditor(),this.handleMedia(),this.doSubscribe(),this.setMaxHeight(),this.checkVideoPermission();}setEditor(){var r;if(this.createTopicType==="topic")return;let e={task:"\u5E03\u7F6E\u4F5C\u4E1A",solution:"\u5199\u4F5C\u4E1A",checkin:"\u53D1\u5E03\u6253\u5361\u4E3B\u9898"};if(this.editorType=this.isModify?"\u4FEE\u6539\u4E3B\u9898":e[this.createTopicType],this.isModify)return;let t={task:"\u5E03\u7F6E\u661F\u7403\u4F5C\u4E1A\uFF0C\u63D0\u5347\u6D3B\u8DC3\u5EA6",solution:"\u8D76\u7D27\u4EA4\u4F5C\u4E1A\u5360\u9886\u699C\u5355\u5427",checkin:`\u5DF2\u7D2F\u8BA1\u6253\u5361 ${(r=this.extra)==null?void 0:r.accumulated_days} \u5929\uFF0C\u5FEB\u5B8C\u6210\u4ECA\u65E5\u7684\u6311\u6218\u5427`};this.editorPlaceholder=t[this.createTopicType];}editorCreated(){this.handleText(),this.handleOperations(),this.uploadDragFile();}editorSelectionChange(e){let t=e==null?void 0:e.format;t&&(this.isBold=t.bold);}editorContentChange(e){this.contentLength=this.topicEditor.getLength();let t=this.topicEditor.getText();if(e.source==="user"&&this.autoSave.next(null),this.tagControl){let r=t.match(/#([^#]*?)#/g);r&&r.length>0&&(this.tagControl.recentTagList.visual.forEach(a=>{a.checked=r.includes(`#${a.title}#`);}),this.tagControl.ownerTagList.visual.forEach(a=>{a.checked=r.includes(`#${a.title}#`);}));}}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}doSubscribe(){let e=this.uploadService.uploadingStatus$.subscribe(p=>{this.isUploaded=!p;}),t=this.uploadService.uploadingVideo$.subscribe(p=>{this.uploadingVideo=p;}),r=this.uploadService.canUploadVideo$.subscribe(p=>{this.videoUsability=p;}),a=this.autoSave.pipe(Ct(2500)).subscribe(()=>{this.isModify||(window.localStorage.setItem("text",JSON.stringify(this.topicEditor.getContents())),this.showAutoSaveFlag=!0,this.autoSaveFlagTimer&&clearTimeout(this.autoSaveFlagTimer),this.autoSaveFlagTimer=setTimeout(()=>{this.showAutoSaveFlag=!1;},3e3));});this.subscriptions.push(e,t,r,a);}closeCreateTopic(){this.isUploaded&&(this.isModify?this.dialogVisible=!0:(window.localStorage.setItem("text",JSON.stringify(this.topicEditor.getContents())),this.createTopicService.postImageIds=this.postImageIds,this.createTopicService.postFileIds=this.postFileIds,clearTimeout(this.autoSaveFlagTimer),this.closeMessage.emit("close")));}handleOperations(){switch(this.openPanel){case"emoji":this.changeEmojiVisible(event);break;case"tag":this.changeTagVisible(event);break;case"pic":setTimeout(()=>{this.picUpload.nativeElement.click();});break;case"file":setTimeout(()=>{this.upload.nativeElement.click();});break;case"video":setTimeout(()=>{this.videoUpload.nativeElement.click();});break;case"bold":setTimeout(()=>{this.topicEditor.insertBoldStyle();});break;case"scheduled":setTimeout(()=>{this.scheduledJobBtn.nativeElement.click();});break;case"vote":this.canUseVote&&setTimeout(()=>this.openVoteConfig());break;}}handleText(){if(this.isModify){let e=this.modifyTopic.type,t=this.modifyTopic[e].text;t&&(this.topicEditor.setContents(this.topicEditor.parseContents(t)),this.contentLength=this.topicEditor.getLength());}else{let e=window.localStorage.getItem("text");e&&(this.topicEditor.setContents(JSON.parse(e)),this.contentLength=this.topicEditor.getLength());}}handleMedia(){if(this.isModify){let e=this.modifyTopic.type;if(this.modifyTopic[e].files){let t=[];this.modifyTopic[e].files.forEach(r=>{this.postFileIds.push(r.file_id),t.push({uid:Math.random().toString(36).substring(2),file_id:r.file_id,name:r.name,progress:100,uploaded:!0});}),this.createTopicService.modifyingTopicFiles=t;}if(this.modifyTopic[e].images){let t=[];this.existingImagesLength=this.modifyTopic[e].images.length,this.modifyTopic[e].images.forEac
145h(r=>{this.postImageIds.push(r.image_id),t.push({uid:Math.random().toString(36).substring(2),image_id:r.image_id,url:r.thumbnail.url,progress:100,large:r.large?r.large:null,original:r.original?r.original:null,thumbnail:r.thumbnail});}),this.createTopicService.modifyingTopicImages=t;}this.modifyTopic[e].video&&(this.createTopicService.postVideo.id=this.modifyTopic[e].video.video_id);}else this.createTopicService.postImageIds.length>0&&(this.existingImagesLength=this.createTopicService.postImageIds.length,this.postImageIds=this.createTopicService.postImageIds),this.createTopicService.postFileIds.length>0&&(this.postFileIds=this.createTopicService.postFileIds),this.createTopicService.postVideo.id!==0&&(this.uploadingVideo=!0,this.uploadComponent.showVideoDialog());}handlePaste(e){if(e.stopPropagation(),e.clipboardData&&e.clipboardData.items){let t=e.clipboardData.items,r=e.clipboardData.getData("text/html");if(new DOMParser().parseFromString(r,"text/html").querySelector("html").getAttribute("xmlns:o")!=="urn:schemas-microsoft-com:office:office")try{for(let m of t)if(m.type.indexOf("image")!==-1)if(this.isModifyReferenced)this.message.info({content:"\u8F6C\u53D1\u4E3B\u9898\u4EC5\u652F\u6301\u4FEE\u6539\u6587\u5B57\u5185\u5BB9",type:"warning"});else if(this.uploadingVideo||this.isModifyVideo)this.message.info({content:"\u89C6\u9891\u4E0D\u652F\u6301\u548C\u5176\u4ED6\u7C7B\u578B\u7684\u6587\u4EF6\u540C\u65F6\u4E0A\u4F20",type:"warning"});else{let v=m.getAsFile();return Oi(v,x=>{this.createTopicService.handleCopyAndDrag([x]);}),!1;}}catch(m){}}}dragFile(e,t){t.preventDefault(),t.stopPropagation(),this.dropingBox.nativeElement.clientHeight!==this.contentBox.nativeElement.clientHeight-2&&(this.dropingBox.nativeElement.style.height=this.contentBox.nativeElement.clientHeight-2+"px"),e!=="done"?e==="in"?(this.dragCounter++,this.droping=!0):e==="out"&&(this.dragCounter--,this.dragCounter||(this.droping=!1)):(this.droping=!1,this.handleDragFile(t.dataTransfer.files));}handleDragFile(e){let t=Object.values(e).every(a=>a.type.indexOf("video")!==-1),r=Object.values(e).some(a=>a.type.indexOf("video")!==-1);this.isModifyReferenced?this.message.info({content:"\u8F6C\u53D1\u4E3B\u9898\u4EC5\u652F\u6301\u4FEE\u6539\u6587\u5B57\u5185\u5BB9",type:"warning"}):r?this.videoAuthority?t?Object.values(e).length===1?this.uploadingVideo||this.isModifyVideo?this.message.info({content:"\u4EC5\u652F\u6301\u53D1\u9001\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6",type:"warning"}):this.postImageIds.length>0||this.postFileIds.length>0?this.message.info({content:"\u89C6\u9891\u4E0D\u652F\u6301\u548C\u5176\u4ED6\u7C7B\u578B\u7684\u6587\u4EF6\u540C\u65F6\u4E0A\u4F20",type:"warning"}):this.uploadComponent.checkVideoLimit(e[0]):this.message.info({content:"\u4EC5\u652F\u6301\u53D1\u9001\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6",type:"warning"}):this.message.info({content:"\u89C6\u9891\u4E0D\u652F\u6301\u548C\u5176\u4ED6\u7C7B\u578B\u7684\u6587\u4EF6\u540C\u65F6\u4E0A\u4F20",type:"warning"}):this.message.info({content:"\u6CA1\u6709\u53D1\u8868\u89C6\u9891\u6587\u4EF6\u7684\u6743\u9650",type:"warning"}):this.uploadingVideo||this.isModifyVideo?this.message.info({content:"\u89C6\u9891\u4E0D\u652F\u6301\u548C\u5176\u4ED6\u7C7B\u578B\u7684\u6587\u4EF6\u540C\u65F6\u4E0A\u4F20",type:"warning"}):this.createTopicService.handleCopyAndDrag(e);}uploadDragFile(){this.createTopicService.dragFile&&this.createTopicService.dragFile.length!==0&&setTimeout(()=>{this.handleDragFile(this.createTopicService.dragFile),this.createTopicService.dragFile=null;},0);}changeEmojiVisible(e){this.emojiVisible=!this.emojiVisible,this.tagVisible=!1,this.voteConfigVisible=!1,this.emojiVisible&&(this.ref.detectChanges(),this.emoji.nativeElement.scrollIntoView()),e&&(e.preventDefault(),e.stopPropagation());}changeTagVisible(e){this.tagVisible=!this.tagVisible,this.emojiVisible=!1,this.voteConfigVisible=!1,this.tagVisible&&(this.ref.detectChanges(),this.tag.nativeElement.scrollIntoView()),e&&(e.preventDefault(),e.stopPropagation());}addTag(e){this.topicEditor.insertTag(e);}changeScheduledVisible(){this.isModifyScheduledJob||(this.scheduledVisible=!this.scheduledVisible),this.voteConfigVisible=!1;}
145handleEitorMaskClick(e){e.stopPropagation(),this.emojiVisible=!1,this.tagVisible=!1,this.voteConfigVisible=!1,!this.contentLength&&!this.postImageIds.length&&!this.postFileIds.length&&!this.createTopicService.postVideo.id&&this.isUploaded&&this.closeMessage.emit("close");}insertBoldText(){this.topicEditor.insertBoldStyle();}handleFileClick(){this.emojiVisible=!1,this.tagVisible=!1,this.voteConfigVisible=!1;}watchFileChange(e){e.action==="addImage"?this.postImageIds.push(e.id):e.action==="addFile"?this.postFileIds.push(e.id):e.action==="removeImage"?e.id&&this.postImageIds.splice(this.postImageIds.findIndex(t=>t===e.id),1):e.action==="removeFile"&&(this.postFileIds=this.postFileIds.filter(t=>t!==e.id));}_equals(e,t){let r=new Map();e.forEach(p=>r.set(p,(r.get(p)||0)+1)),t.forEach(p=>r.set(p,(r.get(p)||0)-1));let a=Array.from(r.values());for(let p of a)if(p!==0)return!1;return!0;}postTopic(e){var p,m,v;if(e.stopPropagation&&e.stopPropagation(),!this.bindPhoneDialogService.hasBindPhoneNumber())return;this.isPosting=!0;let t=[];this.createTopicService.createTopicImages&&this.createTopicService.createTopicImages.forEach(x=>{t.push(x.image_id);}),this._equals(t,this.postImageIds)&&(this.postImageIds=t);let r=[];this.createTopicService.createTopicFiles&&this.createTopicService.createTopicFiles.forEach(x=>{r.push(x.file_id);}),this._equals(r,this.postFileIds)&&(this.postFileIds=r);let a={req_data:{type:this.createTopicType,text:this.handleEditorContent(),image_ids:this.postImageIds,file_ids:this.postFileIds,mentioned_user_ids:this.topicMentionedUsers}};this.createTopicService.postVideo.id&&(a.req_data.video={video_id:this.createTopicService.postVideo.id,enable_watermark:this.createTopicService.postVideo.watermark},delete a.req_data.image_ids,delete a.req_data.file_ids),a.req_data.type==="solution"&&(a.req_data.task_id=this.isModify?this.modifyTopic.topic_uid||this.modifyTopic.topic_id:(p=this.extra)==null?void 0:p.task_id),this.vote&&(a.req_data.vote_uid=this.vote.uid),!this.isModify&&this.createTopicType==="task"&&(a.req_data.show_solutions=this.showSolutionsChecked),this.createTopicType==="checkin"&&(a.req_data.type="talk",a.req_data.checkin_id=(m=this.extra)==null?void 0:m.checkin_id,a.req_data.min_words_count=(v=this.extra)==null?void 0:v.min_words_count),this.isModify&&this.modifyTopic.checkin&&(a.req_data.checkin_id=this.modifyTopic.checkin.checkin_id,a.req_data.min_words_count=this.modifyTopic.checkin.min_words_count),this.checkPostData(a,()=>{this.scheduledVisible?this.postJobRes(a):this.postTopicRes(a);});}checkPostData(e,t){let r=e.req_data.text,a=r.replace(/(^\s*)|(\s*$)/g,"");if(e.req_data.checkin_id&&e.req_data.min_words_count>0)a.length<e.req_data.min_words_count?(this.message.info({content:`\u8BE5\u6253\u5361\u8981\u6C42\u5B57\u6570\u4E0D\u5C11\u4E8E ${e.req_data.min_words_count} \u5B57`,type:"warning"}),this.isPosting=!1):(delete e.req_data.min_words_count,t());else if(e.req_data.type==="talk"&&this.scheduledJobTime&&this.scheduledVisible){let p=ca(new Date(this.scheduledJobTime),new Date());this.isModifyScheduledJob&&p<0?this.scheduledJobTipVisible=!0:p<600?(this.message.info({content:"\u4EC5\u80FD\u8BBE\u7F6E\u8DDD\u5F53\u524D\u65F6\u95F4 10 \u5206\u949F\u4E4B\u540E\u7684\u65F6\u95F4",type:"warning"}),this.isPosting=!1):t();}else if((!r||a.length===0)&&this.postImageIds.length===0&&this.postFileIds.length===0&&this.createTopicService.postVideo.id===0){let p="\u4E3B\u9898\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A";this.createTopicType==="task"?p="\u8BF7\u8F93\u5165\u4F5C\u4E1A\u5185\u5BB9":this.createTopicType==="checkin"&&(p="\u8BF7\u8F93\u5165\u6253\u5361\u5185\u5BB9"),this.message.info({content:p,type:"warning"}),this.isPosting=!1;}else t();}postTopicRes(e){this.isModify?this.http.put(j.editTopic(this.modifyTopic.group.group_id,this.modifyTopic.topic_uid||this.modifyTopic.topic_id),e).subscribe(t=>{this.isPosting=!1,t.succeeded?(this.message.info({content:"\u4E3B\u9898\u4FEE\u6539\u6210\u529F",type:"success"}),this.closeMessage.emit("close"),this.updateEditTopics.emit(t.resp_data.topic),this.clearCreateTopicData()):this.http.handleExceptionCode(t,"\u4FEE\u6539\u4E3B\u9898\u5931\u8D25"),this.mainService.setTopicDetailVisible(!1);}):this.http.post(j.postTopic(this.selectedGroup.group_id),e).subscribe(t=>{var r;this.isPosting=!1,t.succeeded?(this.posterChecked&&this.showPosterCheckbox&&location.href.includes("/group/")&&t.resp_data.show_on_timeline!==!1&&t.resp_data.topic&&["in_review","transcoding","transcode_failed"].indexOf(t.resp_data.topic.process_status)===-1&&this.showPosterDialog.emit(t.resp_data.topic),location.href.includes("/group/")&&(t.resp_data.hasOwnProperty("show_on_timeline")&&!t.resp_data.show_on_timeline||(r=this.extra)!=null&&r.hasOwnProperty("show_topics_on_timeline")&&!this.extra.show_topics_on_timeline)?this.noOnTimeline.emit(t.resp_data.topic):(this.message.info({content:this.createTopicType==="task"?"\u4F5C\u4E1A\u9898\u76EE\u53D1\u5E03\u6210\u529F":"\u4E3B\u9898\u53D1\u5E03\u6210\u529F",type:"success"}),this.updateTopics.emit(t.resp_data.topic)),this.closeMessage.emit("close"),this.clearCreateTopicData()):this.http.handleExceptionCode(t,"\u53D1\u8868\u4E3B\u9898\u5931\u8D25");});}postJobRes(e){let t=this.selectedGroup.group_id;delete e.req_data.type;let r={req_data:{topic:Ue({},e.req_data),scheduled_time:this.scheduledJobTime}};this.isModifyScheduledJob?this.http.put(j.editJob(this.modifyTopic.group.group_id,this.modifyTopic.job.id),r).subscribe(a=>{this.isPosting=!1,a.succeeded?(this.message.info({content:"\u5B9A\u65F6\u4E3B\u9898\u4FEE\u6539\u6210\u529F",type:"success"}),this.allScheduledJobsService.getScheduledJobsList(t),this.closeMessage.emit("close"),this.clearCreateTopicData()):this.http.handleExceptionCode(a,"\u4FEE\u6539\u5B9A\u65F6\u4E3B\u9898\u5931\u8D25");}):this.http.post(j.postJob(t),r).subscribe(a=>{this.isPosting=!1,a.succeeded?(this.message.info({content:"\u5B9A\u65F6\u4E3B\u9898\u53D1\u8868\u6210\u529F",type:"success"}),this.closeMessage.emit("close"),this.indexService.scheduledJobsCount===0?this.indexService.scheduledJobsCount++:this.allScheduledJobsService.getScheduledJobsList(t),this.clearCreateTopicData()):this.http.handleExceptionCode(a,"\u53D1\u8868\u5B9A\u65F6\u4E3B\u9898\u5931\u8D25");});}clearCreateTopicData(e=!1){var t;e||window.localStorage.removeItem("text"),(t=this.voteSettingDialog)==null||t.reset(),this.createTopicService.postImageIds=[],this.createTopicService.createTopicImages=[],this.createTopicService.postFileIds=[],this.createTopicService.createTopicFiles=[],this.topicMentionedUsers=[],this.createTopicService.postVideo={name:"",id:0,watermark:!1};}handlePanelClick(e){e.stopPropagation(),this.emojiVisible=!1;}handleDialogConfirm(){this.dialogVisible=!1,this.isModify=!1,this.modifyTopic=null,this.clearCreateTopicData(!0),this.closeMessage.emit("dd");}handleDialogCancel(){this.contentLength||this.postFileIds.length||this.postImageIds.length?this.dialogVisible=!1:this.closeMessage.emit("dd");}handleEditorContent(){let e=this.topicEditor.getContents(),t="";return this.topicMentionedUsers=[],e.ops.forEach(r=>{var a;r.insert.mention?r.insert.mention.denotationChar==="@"?(t+=`<e type="mention" uid="${r.insert.mention.id}" title="${encodeURIComponent("@"+r.insert.mention.value)}" />`,this.topicMentionedUsers.push(+r.insert.mention.id)):t+=this.handleHashTag(r.insert.mention.value):(a=r.attributes)!=null&&a.bold?t+=`<e t
145ype="text_bold" title="${encodeURIComponent(r.insert)}" />`:r.insert.emoji?t+=r.insert.emoji.type==="text"?r.insert.emoji.title:`[${r.insert.emoji.title}]`:t+=this.handleSingleHashTag(r.insert);}),t;}handleHashTag(e){let t=e.match(/#([^\n|^#]+)#/g);if(t&&t.length>0)for(let r of t){if(r.match(/[\n\r]/g)||r.match(/#\s+#/g)||r==="##"||r.length>20)continue;let p='<e type="hashtag" hid="0" title="'+encodeURIComponent(r)+'" />';e=e.replace(r,p);}return e;}handleSingleHashTag(e){let t=e.match(/#(\S+?)(?=\s)/g),r=/https?:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,}(\/\S*)?/g,a=e.match(r),p=m=>{if(a&&a.length){for(let v of a)if(v.includes(m))return!0;}return!1;};if(t&&t.length>0)for(let m of t){if(m.match(/[\n\r]/g)||m.substr(1).match(/#+/g)||m==="##"||m.includes("#/")||p(m)||m.length>20)continue;let x='<e type="hashtag" hid="0" title="'+encodeURIComponent(m)+'" />';e=e.replace(m,x);}return e;}setMaxHeight(){let e=window.innerHeight-260;this.editorMaxHeight=`${e}px`;}handleDragOver(e){e.preventDefault();}checkVideoPermission(){this.videoAuthority=this.indexService.videoSettings.canCreateVideo;}handleTaskChange(e){this.showSolutionsChecked=e.target.checked;}initPosterCheckbox(){let e=localStorage.getItem("poster_disabled_groups");e!==null&&(JSON.parse(e).length>0&&localStorage.setItem("poster_enabled","false"),localStorage.removeItem("poster_disabled_groups"));let t=localStorage.getItem("poster_enabled");this.posterChecked=t!=="false";}handlePosterChange(e){let t=e.target.checked;this.posterChecked=t,localStorage.setItem("poster_enabled",String(t));}};n.ɵfac=function(t){return new(t||n)(O(q),O(zn),O(W),O(le),O(on),O(oe),O(pd),O(Di),O(Ti),O(Cs));},n.ɵcmp=F({type:n,selectors:[["app-create-topic"]],viewQuery:function(t,r){if(t&1&&_e(aM,5)(sM,5)(cM,5)(lM,7)(pM,7)(dM,7)(gM,7)(uM,7)(mM,7)(hM,7)(_M,7)(fM,5),t&2){let a;ee(a=te())&&(r.tag=a.first),ee(a=te())&&(r.tagControl=a.first),ee(a=te())&&(r.emoji=a.first),ee(a=te())&&(r.upload=a.first),ee(a=te())&&(r.picUpload=a.first),ee(a=te())&&(r.videoUpload=a.first),ee(a=te())&&(r.scheduledJobBtn=a.first),ee(a=te())&&(r.dropingBox=a.first),ee(a=te())&&(r.contentBox=a.first),ee(a=te())&&(r.uploadComponent=a.first),ee(a=te())&&(r.topicEditor=a.first),ee(a=te())&&(r.voteSettingDialog=a.first);}},inputs:{openPanel:"openPanel",createTopicType:"createTopicType",extra:"extra"},outputs:{closeMessage:"close-message",updateTopics:"update-topics",updateEditTopics:"update-edit-topics",noOnTimeline:"no-on-timeline",showPosterDialog:"show-poster-dialog"},standalone:!1,decls:71,vars:64,consts:[["dropingBox",""],["contentBox",""],["topicEditor",""],["uploadComponent",""],["picUpload",""],["upload",""],["bold",""],["videoUpload",""],["scheduledJobBtn",""],["voteSettingDialog",""],["emoji",""],["tag",""],["tagControl",""],[1,"create-topic-container",3,"click"],[1,"create-topic-panel",3,"click"],[1,"head"],[1,"title"],[1,"type"],[1,"save-flag"],[1,"close-icon",3,"click"],[3,"dragenter","dragleave"],[1,"horizontal-line"],[1,"droping",3,"drop","dragover","hidden"],[1,"content-container",3,"ngStyle"],[1,"avatar",3,"src"],[2,"width","calc(100% - 40px)","min-height","110px","margin","5px 0",3,"editor-created","editor-selection-change","editor-content-change","editor-paste","editor-post","ngStyle","group","placeholder","allowTagMention","boldable"],[1,"checkbox-container"],[1,"checkin-info"],[1,"vote-preview"],[3,"update-files","picLength"],[1,"scheduled-topic-timer"],[1,"operation-icon"],[1,"left"],[1,"emoji",3,"click","ngClass"],[1,"explain"],[1,"pic",3,"click","ngClass","hidden"],[1,"file",3,"click","ngClass","hidden"],[1,"bold",3,"click","ngClass","hidden"],[1,"video",3,"click","ngClass","hidden"],[1,"tag",3,"click","ngClass"],[1,"scheduled",3,"click","ngClass","hidden"],[1,"vote-btn",3,"ngClass"],[1,"poster-checkbox-container"],[1,"tip-text"],[1,"emoji-panel"],[1,"tag-panel"],[1,"vote-panel",3,"hidden"],[3,"confirm","cancelVote"],[1,"right"],[1,"text-range"],[1,"submit-btn",3,"click","ngClass"],["title","\u6E29\u99A8\u63D0\u793A","type","common"],["title","\u6E29\u99A8\u63D0\u793A","type","confirm","confirmBtnText","\u77E5\u9053\u4E86","position","center"],[1,"save-flag-icon"],["id","checkbox","type","checkbox","checked","",3,"change"],["for","checkbox"],[1,"icon"],[1,"vote-preview-icon"],[1,"vote-preview-title"],[1,"vote-preview-divider"],[1,"vote-preview-remove",3,"click"],[1,"text"],[3,"time-change","defaultTime","fourteenMax"],[1,"vote-btn",3,"click","ngClass"],[1,"vote-dot"],[1,"vote-icon"],["type","checkbox","id","poster-checkbox",3,"change","checked"],["for","poster-checkbox"],[3,"add-emoji"],[3,"add-tag","group-id","textarea-text"],["title","\u6E29\u99A8\u63D0\u793A","type","common",3,"dialog-confirm","dialog-cancel"],["title","\u6E29\u99A8\u63D0\u793A","type","confirm","confirmBtnText","\u77E5\u9053\u4E86","position","center",3,"dialog-confirm"]],template:function(t,r){t&1&&(s(0,"div",13),f("click",function(p){return r.handleEitorMaskCl
145ick(p);}),s(1,"div",14),f("click",function(p){return r.handlePanelClick(p);}),s(2,"div",15)(3,"div",16)(4,"span"),g(5),c(),h(6,MM,2,1,"span",17),c(),h(7,OM,3,0,"div",18),s(8,"div",19),f("click",function(){return r.closeCreateTopic();}),c()(),s(9,"div",20),f("dragenter",function(p){return r.dragFile("in",p);})("dragleave",function(p){return r.dragFile("out",p);}),M(10,"div",21),s(11,"div",22),f("drop",function(p){return r.dragFile("done",p);})("dragover",function(p){return r.handleDragOver(p);}),s(12,"div",null,0),g(14,"\u62D6\u62FD\u5230\u8FD9\u91CC\u4E0A\u4F20"),c()(),s(15,"div",23,1),M(17,"img",24),s(18,"app-editor",25,2),f("editor-created",function(){return r.editorCreated();})("editor-selection-change",function(p){return r.editorSelectionChange(p);})("editor-content-change",function(p){return r.editorContentChange(p);})("editor-paste",function(p){return r.handlePaste(p);})("editor-post",function(p){return r.postTopic(p);}),c()(),h(20,wM,1,0,"div",21),h(21,yM,5,0,"div",26),h(22,kM,4,1,"div",27),c(),h(23,SM,6,1,"div",28),s(24,"app-upload",29,3),f("update-files",function(p){return r.watchFileChange(p);}),h(26,TM,4,2,"div",30),s(27,"div",31)(28,"div",32)(29,"button",33),f("click",function(p){return r.changeEmojiVisible(p);}),s(30,"span",34),g(31,"\u6DFB\u52A0\u8868\u60C5"),c()(),s(32,"div",35,4),f("click",function(){return r.handleFileClick();}),s(34,"span",34),g(35,"\u6DFB\u52A0\u56FE\u7247"),c()(),s(36,"div",36,5),f("click",function(){return r.handleFileClick();}),s(38,"span",34),g(39,"\u666E\u901A\u6587\u4EF6\uFF08pdf/doc/xlsx/ppt/txt/zip/html \u7B49\u5E38\u89C1\u683C\u5F0F\uFF09\uFF0C\u6700\u5927\u652F\u6301 50MB\uFF1B\u97F3\u9891\u6587\u4EF6\uFF08mp3/wav/m4a\uFF09\uFF0C\u6700\u5927\u652F\u6301 100MB\u3002"),c()(),s(40,"div",37,6),f("click",function(){return r.insertBoldText();}),s(42,"span",34),g(43,"\u52A0\u7C97"),c()(),s(44,"div",38,7),f("click",function(){return r.handleFileClick();}),s(46,"span",34),g(47,"\u6B22\u8FCE\u4F7F\u7528\u4E0A\u4F20\u89C6\u9891\u529F\u80FD\uFF0C\u6B64\u529F\u80FD\u6B63\u5728\u5185\u6D4B\u4E2D\uFF0C\u5EFA\u8BAE\u4E0A\u4F20\u5927\u5C0F\u4E0D\u8D85\u8FC7 1GB\uFF0C\u65F6\u957F\u4E0D\u8D85\u8FC7 60 \u5206\u949F\u7684\u89C6\u9891\uFF0C\u683C\u5F0F\u4E3A MP4 \u548C MO
145V \u7684\u89C6\u9891\u3002\uFF08\u5BA1\u6838\u5C06\u5728 2 \u4E2A\u5C0F\u65F6\u5185\u5B8C\u6210\uFF09"),c()(),s(48,"button",39),f("click",function(p){return r.changeTagVisible(p);}),s(49,"span",34),g(50,"\u6DFB\u52A0\u6807\u7B7E"),c()(),s(51,"div",40,8),f("click",function(){return r.changeScheduledVisible();}),s(53,"span",34),g(54,"\u5B9A\u65F6\u53D1\u5E03"),c()(),h(55,DM,5,5,"div",41),h(56,IM,6,1,"div",42),h(57,FM,2,0,"div",43),h(58,AM,2,0,"div",43),h(59,VM,3,0,"div",44),h(60,RM,4,2,"div",45),s(61,"div",46)(62,"app-vote-setting-dialog",47,9),f("confirm",function(p){return r.handleVoteConfirm(p);})("cancelVote",function(){return r.closeVoteConfig();}),c()()(),s(64,"div",48)(65,"div",49),g(66),c(),s(67,"div",50),f("click",function(p){return r.postTopic(p);}),g(68),c()()()()(),h(69,LM,3,0,"app-dialog",51),h(70,BM,3,0,"app-dialog",52),c()),t&2&&(l(5),A(r.selectedGroup.name),l(),_(r.editorType?6:-1),l(),_(r.showAutoSaveFlag?7:-1),l(4),C("hidden",!r.droping),l(4),C("ngStyle",r.droping?Qt(41,CM):Qt(42,xM)),l(2),C("src",r.avatarUrl,se),l(),C("ngStyle",R(43,vM,r.editorMaxHeight))("group",r.selectedGroup)("placeholder",r.editorPlaceholder)("allowTagMention",!0)("boldable",!0),l(2),_(r.horizontalLineVisible?20:-1),l(),_(r.createTopicType==="task"&&!r.isModify?21:-1),l(),_(r.createTopicType==="checkin"?22:-1),l(),_(r.vote?23:-1),l(),C("picLength",r.existingImagesLength),l(2),_(r.scheduledVisible?26:-1),l(3),C("ngClass",R(45,om,r.emojiVisible)),l(3),C("ngClass",R(47,rm,r.uploadingVideo))("hidden",r.isModifyTextOnlyTopic),l(4),C("ngClass",R(49,rm,r.uploadingVideo))("hidden",r.isModifyTextOnlyTopic),l(4),C("ngClass",R(51,bM,r.isBold))("hidden",!r.isBoldAvailable),l(4),C("ngClass",qe(53,vl,r.uploadingVideo,!r.videoUsability))("hidden",!r.videoAuthority||r.isModifyTextOnlyTopic||r.isModify),l(4),C("ngClass",R(56,om,r.tagVisible)),l(3),C("ngClass",qe(58,vl,r.scheduledVisible,r.disablePostScheduled))("hidden",!r.scheduledJobAbility),l(4),_(r.showVoteBtn?55:-1),l(),_(r.showPosterCheckbox?56:-1),l(),_(r.isModifyVideo?57:-1),l(),_(r.isModifyReferenced?58:-1),l(),_(r.emojiVisible?59:-1),l(),_(r.tagVisible?60:-1),l(),C("hidden",!r.voteConfigVisible),l(5),V("(",r.contentLength+"/10000",")"),l(),C("ngClass",qe(61,PM,r.isPosting,r.contentLength-1e4>0||!r.isUploaded)),l(),V(" ",r.isUploaded?r.scheduledVisible?"\u5B9A\u65F6\u53D1\u5E03":"\u53D1\u5E03":"\u4E0A\u4F20\u4E2D"," "),l(),_(r.dialogVisible?69:-1),l(),_(r.scheduledJobTipVisible?70:-1));},dependencies:[K,De,Ze,Ca,Ei,So,To,nm,im],styles:['@charset "UTF-8";.create-topic-container[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--dweb-overlay);z-index:30;overflow-y:scroll}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]{margin:60px auto;background:var(--dweb-bg-panel);width:1200px;min-height:220px;border-radius:4px;padding:0 20px 20px;box-sizing:border-box}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:space-between}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:var(--dweb-text-primary, #2F3034);text-align:left;font-size:16px;height:50px;font-weight:700;display:flex;align-items:center}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .type[_ngcontent-%COMP%]{padding:1px 2px;line-height:20px;height:20px;text-align:center;background:#16b9980d;border-radius:4px;font-size:12px;color:var(--dweb-brand);font-weight:400;margin-left:8px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .save-flag[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:12px;color:var(--dweb-text-faint);margin-right:16px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .save-flag-icon[_ngcontent-%COMP%]{width:10px;height:10px;margin-left:4px;background-image:url("./media/[email protected]");background-position:-671px -381px}
145.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .save-flag[_ngcontent-%COMP%]{margin-right:24px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%]{position:absolute;right:0;top:calc(50% - 5px);background-image:url("./media/[email protected]");background-position:-357px -197px;width:10px;height:10px;cursor:pointer}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .horizontal-line[_ngcontent-%COMP%]{height:1px;background:var(--dweb-border-faint)}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .vote-preview[_ngcontent-%COMP%]{display:flex;align-items:center;padding:4px 6px;background:var(--dweb-bg-subtle);border-radius:4px;width:fit-content;-webkit-user-select:none;user-select:none}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .vote-preview[_ngcontent-%COMP%]   .vote-preview-icon[_ngcontent-%COMP%]{width:14px;height:14px;background-image:url("./media/[email protected]");background-size:100% 100%;background-repeat:no-repeat}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .vote-preview[_ngcontent-%COMP%]   .vote-preview-icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")}}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .vote-preview[_ngcontent-%COMP%]   .vote-preview-title[_ngcontent-%COMP%]{font-weight:400;font-size:12px;color:var(--dweb-text-secondary);margin-left:6px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .vote-preview[_ngcontent-%COMP%]   .vote-preview-divider[_ngcontent-%COMP%]{width:1px;height:12px;background:var(--dweb-border-tooltip);margin-left:8px;margin-right:4px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .vote-preview[_ngcontent-%COMP%]   .vote-preview-remove[_ngcontent-%COMP%]{position:relative;width:16px;height:16px;background-image:url("./media/[email protected]");cursor:pointer;background-size:100% 100%;background-repeat:no-repeat;flex-shrink:0}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .vote-preview[_ngcontent-%COMP%]   .vote-preview-remove[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")}}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .checkin-info[_ngcontent-%COMP%]{display:flex;align-items:center;box-sizing:border-box;width:fit-content;max-width:284px;height:22px;padding:0 7px;margin:7px 0;background:var(--dweb-bg-subtle);border-radius:4px;font-size:12px;color:var(--dweb-text-secondary)}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .checkin-info[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-right:4px;width:14px;height:15px;background-image:url("./media/[email protected]");background-position:-489px -416px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .checkin-info[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .checkbox-container[_ngcontent-%COMP%]{display:flex;align-items:center;margin:0 -20px;padding-left:20px;height:36px;background:var(--dweb-bg-soft-blue)}
145.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{background-image:url("./media/[email protected]");background-position:-671px -314px;cursor:pointer;width:16px;height:16px;position:relative}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .checkbox-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:0;height:0;margin:0;visibility:hidden}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .checkbox-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-position:-671px -354px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .checkbox-container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-left:6px;font-size:13px;color:var(--dweb-text-muted, #8B8E9D)}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .droping[_ngcontent-%COMP%]{padding:10px 0}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .droping[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{border:1px dashed var(--dweb-disabled);align-items:center;justify-content:center;display:flex;font-size:14px;color:var(--dweb-text-placeholder);background-color:var(--dweb-bg-hover, #FAFBFC);border-radius:4px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]{position:relative;margin:10px 0;display:flex}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:15px;background:var(--dweb-bg-subtle, #F5F6F7);margin-right:10px;flex-shrink:0}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{margin:5px 0;min-height:110px;flex:1;outline:none;word-wrap:break-word;width:460px;line-height:20px!important;font-family:PingFangSC-Regular;font-size:14px!important;color:var(--dweb-text-primary, #2F3034);padding:0;border:none;resize:none}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::-webkit-input-placeholder{color:var(--dweb-text-faint)!important}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::-moz-placeholder{color:var(--dweb-text-faint)!important}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .recommend-member[_ngcontent-%COMP%]{min-width:200
145px;z-index:9}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]{height:24px;margin-top:20px;display:flex;justify-content:space-between;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]{display:none;position:absolute;bottom:38px;left:-164px;width:427px;background:var(--dweb-bg-warm);border:1px solid var(--dweb-border-tooltip);box-shadow:0 8px 16px 0 var(--dweb-border-faint);border-radius:6px;padding:15px 16px;box-sizing:border-box;font-size:12px;color:var(--dweb-text-body);line-height:20px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]:before{content:"";position:absolute;display:block;width:0;height:0;border:5px solid var(--dweb-border-tooltip);border-right:5px solid transparent;border-bottom:5px solid transparent;border-top-left-radius:1px;transform:rotate(-135deg);bottom:-5px;left:167px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]:after{content:"";position:absolute;display:block;width:0;height:0;border:6px solid var(--dweb-bg-warm);border-right:6px solid transparent;border-bottom:6px solid transparent;transform:rotate(-135deg);bottom:-3px;left:166px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .emoji[_ngcontent-%COMP%]{position:relative;height:18px;width:18px;box-sizing:border-box;background-image:url("./media/[email protected]");background-position:-333px -308px;margin-right:30px;cursor:pointer;border:none;outline:none;background-color:transparent}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .emoji.actived[_ngcontent-%COMP%]{background-position:-333px -348px!important}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .emoji[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block;width:72px;padding:10px;left:-28px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .emoji[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:before{left:28px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .emoji[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:after{left:27px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .pic[_ngcontent-%COMP%]{position:relative;width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-384px -307px;margin-right:30px;cursor:pointer}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .pic.inactive[_ngcontent-%COMP%]{background-position:-384px -380px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .pic[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block;width:72px;padding:10px;left:-28px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .pic[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:before{left:28px}
145.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .pic[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:after{left:27px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]{position:relative;width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-444px -307px;margin-right:30px;cursor:pointer}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .file.inactive[_ngcontent-%COMP%]{background-position:-444px -381px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .video[_ngcontent-%COMP%]{position:relative;width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-300px -309px;margin-right:30px;cursor:pointer}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .video.active[_ngcontent-%COMP%]{background-position:-299px -346px;pointer-events:none}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .video.inactive[_ngcontent-%COMP%]{background-position:-300px -380px;pointer-events:none}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .video[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]{position:relative;width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-362px -307px;margin-right:30px;cursor:pointer}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .bold.active[_ngcontent-%COMP%]{background-position:-362px -346px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .bold.inactive[_ngcontent-%COMP%]{background-position:-362px -307px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block;width:48px;padding:10px;left:-17px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:before{left:17px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:after{left:16px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .tag[_ngcontent-%COMP%]{position:relative;width:14px;height:18px;background-image:url("./media/[email protected]");background-position:-492px -309px;cursor:pointer;border:none;outline:none;background-color:transparent;margin-right:30px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .tag.actived[_ngcontent-%COMP%]{background-position:-492px -349px!important}
145.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .tag[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block;width:72px;padding:10px;left:-28px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .tag[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:before{left:28px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .tag[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:after{left:27px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .scheduled[_ngcontent-%COMP%]{position:relative;cursor:pointer;width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-414px -308px;margin-right:30px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .scheduled.active[_ngcontent-%COMP%]{background-position:-414px -347px!important}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .scheduled.inactive[_ngcontent-%COMP%]{pointer-events:none;background-position:-414px -381px!important}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .scheduled[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block;width:72px;padding:10px;left:-28px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .scheduled[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:before{left:28px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .scheduled[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:after{left:27px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .vote-btn[_ngcontent-%COMP%]{position:relative;width:18px;height:24px;margin-right:18px;cursor:pointer}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .vote-btn.inactive[_ngcontent-%COMP%]{pointer-events:none}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .vote-btn.inactive[_ngcontent-%COMP%]   .vote-icon[_ngcontent-%COMP%]{background-color:#e9eaeb}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .vote-btn.active[_ngcontent-%COMP%]   .vote-icon[_ngcontent-%COMP%]{background-color:#17b998}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .vote-btn[_ngcontent-%COMP%]   .vote-icon[_ngcontent-%COMP%]{display:block;width:100%;height:100%;-webkit-mask:url("./media/pk_icon-AJHWO2QR.svg") no-repeat center/contain;mask:url("./media/pk_icon-AJHWO2QR.svg") no-repeat center/contain;background-color:var(--dweb-text-muted)}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .vote-btn[_ngcontent-%COMP%]   .vote-dot[_ng
145content-%COMP%]{position:absolute;top:-2px;right:-4px;width:6px;height:6px;border-radius:50%;background-color:var(--dweb-danger);z-index:1}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;padding-left:15px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:1px;height:12px;background-color:var(--dweb-bg-canvas)}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block;width:130px;padding:10px;left:-20px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:before{left:58px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:after{left:57px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:0;height:0;margin:0;visibility:hidden}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:before{background-position:-671px -354px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:12px;color:var(--dweb-text-muted, #8B8E9D);white-space:nowrap;cursor:pointer}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:before{content:"";display:inline-block;background-image:url("./media/[email protected]");background-position:-671px -314px;width:16px;height:16px;margin-right:6px;flex-shrink:0}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .tip-text[_ngcontent-%COMP%]{font-size:14px;color:var(--dweb-text-faint);margin-left:30px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .emoji-panel[_ngcontent-%COMP%], .create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .tag-panel[_ngcontent-%COMP%]{position:absolute;top:48px;left:-20px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .vote-panel[_ngcontent-%COMP%]{position:absolute;top:48px;left:-20px;z-index:10;box-shadow:0 2px 12px #00000026;border-radius:4px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{display:flex}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .text-range[_ngcontent-%COMP%]{margin-right:16px;font-size:12px;color:var(--dweb-text-faint);height:24px;line-height:24px;text-align:center}
145.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .submit-btn[_ngcontent-%COMP%]{min-width:50px;height:24px;padding:0 6px;box-sizing:border-box;line-height:24px;text-align:center;background:var(--dweb-brand);box-shadow:0 1px 2px 0 var(--dweb-border-faint);border-radius:2px;color:#fff;cursor:pointer}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .submit-btn[_ngcontent-%COMP%]:hover{background-color:#14a689}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .submiting[_ngcontent-%COMP%], .create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .submit-disable[_ngcontent-%COMP%]{background:var(--dweb-disabled);pointer-events:none}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .scheduled-topic-timer[_ngcontent-%COMP%]{position:relative;left:-20px;width:calc(100% + 20px);height:50px;background:var(--dweb-bg-cool);display:flex;align-items:center;padding-left:20px}.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .scheduled-topic-timer[_ngcontent-%COMP%]     .text{font-size:14px;color:var(--dweb-text-muted)}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.create-topic-container[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%], .create-topic-container[_ngcontent-%COMP%]   .file.inactive[_ngcontent-%COMP%], .create-topic-container[_ngcontent-%COMP%]   .pic[_ngcontent-%COMP%], .create-topic-container[_ngcontent-%COMP%]   .pic.inactive[_ngcontent-%COMP%], .create-topic-container[_ngcontent-%COMP%]   .video[_ngcontent-%COMP%], .create-topic-container[_ngcontent-%COMP%]   .video.active[_ngcontent-%COMP%], .create-topic-container[_ngcontent-%COMP%]   .video.inactive[_ngcontent-%COMP%], .create-topic-container[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%], .create-topic-container[_ngcontent-%COMP%]   .bold.active[_ngcontent-%COMP%], .create-topic-container[_ngcontent-%COMP%]   .bold.inactive[_ngcontent-%COMP%], .create-topic-container[_ngcontent-%COMP%]   .emoji[_ngcontent-%COMP%], .create-topic-container[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%], .create-topic-container[_ngcontent-%COMP%]   .tag[_ngcontent-%COMP%], .create-topic-container[_ngcontent-%COMP%]   .scheduled[_ngcontent-%COMP%], .head[_ngcontent-%COMP%]   .save-flag-icon[_ngcontent-%COMP%], .checkin-info[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%], .create-topic-container[_ngcontent-%COMP%]   .poster-checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:before{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}@media screen and (max-width:2000px){.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]{width:900px}}@media screen and (max-width:1550px){.create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]{width:700px}}html[data-theme=dark][_nghost-%COMP%]   .create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]{background:var(--dweb-bg-panel-2);box-shadow:-5px 6px 16px 0 var(--dweb-shadow)}html[data-theme=dark][_nghost-%COMP%]   .create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]:after, html[data-theme=dark]   [_nghost-%COMP%]   .create-topic-container[_ngcontent-%COMP%]   .create-topic-
145panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]:after{border-top-color:var(--dweb-bg-panel-2);border-left-color:var(--dweb-bg-panel-2)}html[data-theme=dark][_nghost-%COMP%]   .create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .scheduled.inactive[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .create-topic-container[_ngcontent-%COMP%]   .create-topic-panel[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .scheduled.inactive[_ngcontent-%COMP%]{opacity:.25}']});let o=n;return o;})();var NM=o=>({mobile:o});function zM(o,n){if(o&1){let i=y();s(0,"app-create-topic",4),f("update-edit-topics",function(t){b(i);let r=d();return P(r.updateEditTopics(t));})("close-message",function(){b(i);let t=d();return P(t.closeCreateTopic());})("update-topics",function(t){b(i);let r=d();return P(r.updateTopics(t));})("no-on-timeline",function(){b(i);let t=d();return P(t.noOnTimelineTip=!0);}),c();}if(o&2){let i=d();C("createTopicType",i.createTopicType)("extra",i.extraData);}}function GM(o,n){if(o&1){let i=y();s(0,"div",2),M(1,"div",5),s(2,"div",6),g(3,"\u8FD8\u6CA1\u6709\u52A0\u5165\u661F\u7403"),c(),s(4,"div",7),f("click",function(){b(i);let t=d();return P(t.goDiscoverPage());}),g(5,"\u53D1\u73B0\u6709\u8DA3\u7684\u661F\u7403"),c()();}}function jM(o,n){o&1&&M(0,"router-outlet");}function $M(o,n){if(o&1){let i=y();s(0,"app-dialog",8),f("close-dialog",function(){b(i);let t=d();return P(t.noOnTimelineTip=!1);})("dialog-confirm",function(){b(i);let t=d();return P(t.showNoOnTimelineTopic());}),s(1,"div"),g(2," \u6839\u636E\u661F\u4E3B\u8BBE\u7F6E\uFF0C\u672C\u6B21\u4E3B\u9898\u4E0D\u51FA\u73B0\u5728\u65F6\u95F4\u7EBF\u548C\u52A8\u6001\uFF0C\u53EF\u524D\u5F80\u5BF9\u5E94\u4F5C\u4E1A\u4E3B\u9898\u5217\u8868\u67E5\u770B "),c()();}o&2&&C("allowMaskClose",!0);}var sm=(()=>{let n=class n{get isPc(){return ra();}constructor(e,t,r,a,p,m,v,x){this.createTopicService=e,this.router=t,this.indexService=r,this.groupListService=a,this.mainService=p,this.videoGalleryService=m,this.topicDetailService=v,this.taskContentService=x,this.subscriptions=[],this.previousScrollTop=0,this.createTopicVisible=!1,this.noGroups=!1,this.createTopicType="topic",this.noOnTimelineTip=!1;}ngOnInit(){this.doSubscribe(),setTimeout(()=>{this.initScrollObservable();},2e3),this.indexService.topicSettings.max_image_size||this.indexService.getSettings();}ngAfterViewInit(){let e=this.indexService.userData;e&&this.indexService.setUserInfo(e);}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}doSubscribe(){let e=this.indexService.modifyTopic$.subscribe(v=>{v&&(window.localStorage.setItem("text",""),this.createTopicService.postImageIds=[],this.createTopicService.createTopicImages=[],this.createTopicService.postFileIds=[],this.createTopicService.createTopicFiles=[],this.createTopicType=v.type,this.setTopicDetailPageScrollbar(!0),this.extraData=null,this.createTopicVisible=!0);});uo(At(document.body,"copy"),At(document.body,"cut")).subscribe(()=>this.copyright());let t=this.topicDetailService.enterGroup$.subscribe(v=>{window.location.href.includes("group/")||this.router.navigate(["group",v.group_id]);}),r=this.indexService.settings$.subscribe(v=>{this.indexService.videoSettings.max_video_size=v.topic.max_video_size,this.indexService.videoSettings.max_video_duration=v.topic.max_video_duration,this.indexService.topicSettings.max_file_size=v.topic.max_file_size,this.indexService.topicSettings.max_image_size=v.topic.max_image_size,this.indexService.topicSettings.max_audio_size=v.topic.max_audio_size;}),a=this.indexService.videoModules$.subscribe(v=>{this.indexService.videoSettings.canCreateVideo=v;}),p=this.groupListService.group$.subscribe(v=>{v.groups.length===0&&(this.noGroups=!0);}),m=this.indexService.createTopic$.subscribe(v=>{this.createTopicType=v.type,v.extraData&&(this.extraData=v.extraData),this.createTopicVisible=!0;});this.subscriptions.push(e,t,r,a,p,m);}initScrollObservable(){if(this.indexService.currentList==="topicFlow"){this.pageScroll$=At(window,"scroll").pipe(Dt(()=>window.scrollY||window.pageYOffset),ut(t=>{if(t>this.previousScrollTop){let r=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight);return this.previousScrollTop=t,t>=r-window.innerHeight-100;}else return this.previousScrollTop=t,!1;}),Ct(400));let e=this.pageScroll$.subscribe(()=>{this.indexService.playLoading(!0);let t=this.mainService.beginTime,r=this.groupListService.getSelectedGroup();this.mainService.scope==="custom_hashtag"?this.mainService.subHashtagIds?this.mainService.getSubTagTopics(this.mainService.currentSubTagId?this.mainService.currentSubTagId:this.mainService.subHashtagIds,this.mainService.endTime):this.mainService.getTagTopics(r.group_id,this.mainService.endTime):r&&this.mainService.getTopics(r.group_id,this.mainService.scope,t,this.mainService.endTime);});this.subscriptions.push(e);}At(window,"scroll").pipe(Ct(500)).subscribe(()=>{let e=window.scrollY||window.pageYOffset;this.videoGalleryService.updateScroll(e);let t=document.getElementById("js-gotop");t&&(e>10?Rp(t):ta(t));});}closeCreateTopic(){this.setTopicDetailPageScrollbar(!1),this.createTopicVisible=!1;}copyright(){if(this.mainService.allowCurrentUserCopy)return;let e=document.body,t=window.getSelection(),r=t.rangeCount>0?t.getRangeAt(0):!1;if(!r||r.collapsed)return;let a=r.commonAncestorContainer;if(!Array.from(document.querySelectorAll(".disabled-copy")).some(x=>a.contains(x)||x.contains(a)))return;
145let v=document.createElement("div");v.style.position="absolute",v.style.left="-99999px",e.appendChild(v),v.innerHTML="\u672C\u661F\u7403\u5DF2\u5F00\u542F\u5185\u5BB9\u4FDD\u62A4\uFF0C\u65E0\u6CD5\u590D\u5236\u4E3B\u9898\u5185\u5BB9",t.selectAllChildren(v),setTimeout(()=>{e.removeChild(v);},300);}setTopicDetailPageScrollbar(e){e?this.indexService.spareScrollbarSpace():this.indexService.remainScrollbarStyle();}updateEditTopics(e){this.indexService.updateEditTopics(e);}goDiscoverPage(){window.location.href=`${ie.SEO_GROUP_URL}index.html`;}showNoOnTimelineTopic(){this.noOnTimelineTip=!1,this.router.navigate(["solution_list",this.extraData.task_id]);}updateTopics(e){this.taskContentService.updateNewSolution(e);}};n.ɵfac=function(t){return new(t||n)(O(zn),O(ue),O(q),O(ce),O(oe),O(Vo),O(Te),O(Ai));},n.ɵcmp=F({type:n,selectors:[["app-index"]],standalone:!1,decls:6,vars:7,consts:[[1,"index-container",3,"ngClass"],[3,"createTopicType","extra"],[1,"no-groups"],["title","\u4E3B\u9898\u53D1\u5E03\u6210\u529F","type","confirm","confirmBtnText","\u67E5\u770B\u8BE6\u60C5","position","center",3,"allowMaskClose"],[3,"update-edit-topics","close-message","update-topics","no-on-timeline","createTopicType","extra"],[1,"icon"],[1,"text"],[1,"button",3,"click"],["title","\u4E3B\u9898\u53D1\u5E03\u6210\u529F","type","confirm","confirmBtnText","\u67E5\u770B\u8BE6\u60C5","position","center",3,"close-dialog","dialog-confirm","allowMaskClose"]],template:function(t,r){t&1&&(s(0,"div",0),M(1,"app-header"),h(2,zM,1,2,"app-create-topic",1),h(3,GM,6,0,"div",2),h(4,jM,1,0,"router-outlet"),c(),h(5,$M,3,1,"app-dialog",3)),t&2&&(C("ngClass",R(5,NM,!r.isPc)),l(2),_(r.createTopicVisible?2:-1),l(),_(r.noGroups?3:-1),l(),_(r.noGroups?-1:4),l(),_(r.noOnTimelineTip?5:-1));},dependencies:[K,yi,Ze,Ku,xs],styles:['.index-container.mobile[_ngcontent-%COMP%]{margin-top:-60px}.index-container[_ngcontent-%COMP%]   .index-content[_ngcontent-%COMP%]{margin:0 auto;padding:60px 0 0;width:1220px}.index-container[_ngcontent-%COMP%]   .index-content[_ngcontent-%COMP%]   .copy-input[_ngcontent-%COMP%]{position:fixed;top:-300px}.index-container[_ngcontent-%COMP%]   .no-groups[_ngcontent-%COMP%]{position:fixed;top:50px;bottom:5px;width:600px;left:50%;margin-left:-300px;background:var(--dweb-bg-panel);border-radius:4px;padding-top:241px;display:flex;flex-direction:column;align-items:center}.index-container[_ngcontent-%COMP%]   .no-groups[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:87px;height:71px;background-image:url("./media/[email protected]");background-position:-87px -929px}.index-container[_ngcontent-%COMP%]   .no-groups[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{margin-top:25px;margin-bottom:32px;height:25px;font-size:18px;color:var(--dweb-text-faint);line-height:25px}.index-container[_ngcontent-%COMP%]   .no-groups[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{width:180px;height:48px;line-height:48px;background:var(--dweb-brand);border-radius:24px;text-align:center;font-size:18px;font-weight:500;color:#fff;cursor:pointer}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.no-groups[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var cm=(()=>{let n=class n{constructor(e,t,r,a){this.router=e,this.http=t,this.indexService=r,this.message=a;}ngOnInit(){this.handleRoute();}handleRoute(){let e=new URLSearchParams(window.location.search),t=e.get("code"),r=e.getAll("state").length===1?e.get("state"):null,a=ud(r);if(!t||e.getAll("code").length!==1||!a){this.message.info({content:"\u5FAE\u4FE1\u767B\u5F55\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u626B\u7801\u767B\u5F55"}),this.router.navigate(["login"]);return;}this.login(t);}login(e){let r={req_data:{client:"DWeb",wechat:{auth:{appid:ie.APPID,code:e}}}};
145this.http.bufferPost(j.login,gc().encryptParams(r)).subscribe(a=>{let p=gc().decryptData(a);if(p.succeeded){this.indexService.setUserInfo(p.resp_data,!0);let m=sessionStorage.getItem("enterablePage"),v=sessionStorage.getItem("auto_close")==="true",x=wn("topicdetail_nologin");v?(sessionStorage.removeItem("auto_close"),window.close()):x?this.router.navigate([`topic/${x}`]):m?(sessionStorage.removeItem("enterablePage"),location.href=m):this.router.navigate(["group/init"]);}else if(p.info)this.message.info({content:p.info}),setTimeout(()=>{this.router.navigate(["login"]);},3e3);else{let m="";p.code&&(m="\uFF0C"+aa(p.code)),this.message.info({content:`\u767B\u5F55\u5931\u8D25${m}`}),setTimeout(()=>{this.router.navigate(["login"]);},3e3);}});}};n.ɵfac=function(t){return new(t||n)(O(ue),O(W),O(q),O(le));},n.ɵcmp=F({type:n,selectors:[["app-load"]],standalone:!1,decls:2,vars:0,consts:[[1,"load-container"]],template:function(t,r){t&1&&(s(0,"div",0),g(1,` \u6B63\u5728\u83B7\u53D6\u5FAE\u4FE1\u6388\u6743...
146`),c());},styles:[".load-container[_ngcontent-%COMP%]{margin:50px 100px;font-size:16px;text-align:center;color:var(--dweb-text-muted)}"]});let o=n;return o;})();var qo=(()=>{let n=class n{constructor(e){this.http=e,this._groupMenus$=new U(),this.groupMenus$=this._groupMenus$.asObservable(),this._menuReadTime$=new U(),this.menuReadTime$=this._menuReadTime$.asObservable();}getMenus(e){this.http.get(j.getMenus(e)).subscribe(t=>{if(t.succeeded){let r=t.resp_data.menus;r.forEach(p=>{p.title=p.title.replace(/^(\s|#)+|(\s|#)+$/g,"");});let a=r;t.resp_data.optional_menus&&(t.resp_data.optional_menus.forEach(p=>{p.title=p.title.replace(/^(\s|#)+|(\s|#)+$/g,"");}),a=[...a,...t.resp_data.optional_menus]),this._groupMenus$.next(a);}else this._groupMenus$.next([]),this.http.handleExceptionCode(t,"\u83B7\u53D6\u661F\u7403\u83DC\u5355\u5217\u8868\u5931\u8D25");});}getMenusReadTime(e){this.http.get(j.getMenusReadTime(e)).subscribe(t=>{t.succeeded?this._menuReadTime$.next(t.resp_data.menus):this.http.handleExceptionCode(t,"\u83B7\u53D6\u83DC\u5355\u9605\u8BFB\u65F6\u95F4\u5931\u8D25");});}};n.ɵfac=function(t){return new(t||n)(re(W));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var vs=(()=>{let n=class n{constructor(){this._reRender$=new U(),this.reRender$=this._reRender$.asObservable();}topicFlowDynamicReRender(e){this._reRender$.next(e);}};n.ɵfac=function(t){return new(t||n)();},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var HM=o=>({url:o}),UM=(o,n)=>n.uid;function qM(o,n){if(o&1&&M(0,"img",4),o&2){let i=n.$implicit;C("transform-image-src",R(1,HM,i.background_url));}}function QM(o,n){if(o&1){let i=y();s(0,"div",3),f("click",function(){b(i);let t=d();return P(t.goToRanking());}),s(1,"div"),g(2),c(),s(3,"div"),B(4,qM,1,3,"img",4,UM),M(6,"i",5),c()();}if(o&2){let i=n.$implicit;l(2),A(i.title),l(2),N(i.items);}}var pm=(()=>{let n=class n{constructor(e){this.mainService=e,this.subscriptions=[],this.rankingList=[];}ngOnInit(){this.doSubscribe();}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}doSubscribe(){let e=vi([this.mainService.orderRankingList$,this.mainService.payRankingList$,this.mainService.renewalRankingList$]).subscribe(([t,r,a])=>{this.rankingList=[{title:"\u7545\u9500\u699C",items:t.groups.slice(0,3)},{title:"\u5B9E\u529B\u699C",items:r.groups.slice(0,3)},{title:"\u7EED\u671F\u699C",items:a.groups.slice(0,3)}];});this.subscriptions.push(e);}goToRanking(){ne("rankings/index");}};n.ɵfac=function(t){return new(t||n)(O(oe));},n.ɵcmp=F({type:n,selectors:[["app-group-rankings-mini"]],standalone:!1,decls:5,vars:0,consts:[[1,"group-rankings-mini"],[1,"title"],[1,"ranking-section"],[1,"ranking-section",3,"click"],[1,"group-item",3,"transform-image-src"],[1,"arrow-right"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1),g(2,"\u66F4\u591A\u4F18\u8D28\u661F\u7403\uFF1A"),c(),B(3,QM,7,1,"div",2,hn),c()),t&2&&(l(3),N(r.rankingList));},dependencies:[Wt],styles:['.group-rankings-mini[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:14px;color:var(--dweb-text-faint);padding-top:24px;padding-bottom:20px;margin-right:10px;border-top:1px solid var(--dweb-border-faint)}.group-rankings-mini[_ngcontent-%COMP%]   .ranking-section[_ngcontent-%COMP%]{cursor:pointer;font-size:14px;color:var(--dweb-text-muted);margin-bottom:0;margin-left:-16px;height:30px;line-height:30px;padding:0 10px 0 16px;border-radius:3px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between}.group-rankings-mini[_ngcontent-%COMP%]   .ranking-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{display:flex;align-items:center}.group-rankings-mini[_ngcontent-%COMP%]   .ranking-section[_ngcontent-%COMP%]:hover{background-color:#e8ebf0}.group-rankings-mini[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]{display:inline-flex;width:16px;height:16px;border-radius:3px}.group-rankings-mini[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%] + .group-item[_ngcontent-%COMP%]{margin-left:2px}.group-rankings-mini[_ngcontent-%COMP%]   .arrow-right[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-297px -197px;margin-left:10px}html[data-theme=dark][_nghost-%COMP%]   .group-rankings-mini[_ngcontent-%COMP%]   .ranking-section[_ngcontent-%COMP%]:hover, html[data-theme=dark]   [_nghost-%COMP%]   .group-rankings-mini[_ngcontent-%COMP%]   .ranking-section[_ngcontent-%COMP%]:hover{background-color:var(--dweb-bg-muted-tint-soft)}html[data-theme=dark][_nghost-%COMP%]   .group-rankings-mini[_ngcontent-%COMP%]   .arrow-right[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .group-rankings-mini[_ngcontent-%COMP%]   .arrow-right[_ngcontent-%COMP%]{background-color:currentColor;background-image:none!important;background-position:initial;background-repeat:no-repeat;-webkit-mask-image:url("./media/[email protected]");-webkit-mask-position:-297px -197px;-webkit-mask-repeat:no-repeat;mask-image:url("./media/[email protected]");mask-position:-297px -197px;mask-repeat:no-repeat}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){html[data-theme=dark][_nghost-%COMP%]   .group-rankings-mini[_ngcontent-%COMP%]   .arrow-right[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .group-rankings-mini[_ngcontent-%COMP%]   .arrow-right[_ngcontent-%COMP%]{-webkit-mask-image:url("./media/[email protected]");-webkit-mask-size:1024px 1057px;mask-image:url("./media/[email protected]");mask-size:1024px 1057px}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.ranking-title[_ngcontent-%COMP%]   .arrow-right[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var XM=o=>({active:o}),JM=()=>["/dynamics"],bs=o=>
146({hide:o}),Ps=o=>["/group",o],YM=()=>({color:"#F57F59"}),KM=()=>({color:"#567895"}),ZM=o=>({url:o}),eO=(o,n)=>n.topic_id,Ms=(o,n)=>n.group_id;function tO(o,n){if(o&1&&(s(0,"span"),g(1),c()),o&2){let i=d(2);l(),A(i.dynamicsUnreadCount);}}function nO(o,n){o&1&&(s(0,"span"),M(1,"small")(2,"small")(3,"small"),c());}function iO(o,n){if(o&1&&(s(0,"span",5),h(1,tO,2,1,"span"),h(2,nO,4,0,"span"),c()),o&2){let i=d();l(),_(i.dynamicsUnreadCount<=99?1:-1),l(),_(i.dynamicsUnreadCount>99?2:-1);}}function oO(o,n){if(o&1&&(s(0,"span"),g(1),c()),o&2){let i=d(2).$implicit;l(),A(i.unread_count);}}function rO(o,n){o&1&&(s(0,"span"),M(1,"small")(2,"small")(3,"small"),c());}function aO(o,n){if(o&1&&(s(0,"span",5),h(1,oO,2,1,"span"),h(2,rO,4,0,"span"),c()),o&2){let i=d().$implicit;l(),_(i.unread_count>0&&i.unread_count<=99?1:-1),l(),_(i.unread_count>99?2:-1);}}function sO(o,n){if(o&1){let i=y();s(0,"a",21),f("click",function(){let t=b(i).$implicit,r=d(2);return P(r.selectGroup(t));}),s(1,"span",4),g(2),c(),h(3,aO,3,2,"span",5),c();}if(o&2){let i=n.$implicit,e=d(2);Bn("color",!e.isDynamicsRoute&&e.selectedGroup.group_id===i.group_id?"#16B998":""),C("routerLink",R(5,Ps,i.group_id)),l(2),A(i.name),l(),_(i.unread_count&&i.show_unread?3:-1);}}function cO(o,n){if(o&1&&(s(0,"div",10),B(1,sO,4,7,"a",20,Ms),c()),o&2){let i=d();C("hidden",i.showCreatedList),l(),N(i.createdGroups);}}function lO(o,n){if(o&1&&(s(0,"span",23),g(1),c()),o&2){let i=d().$implicit;C("ngStyle",i.has_discount?Qt(2,YM):Qt(3,KM)),l(),A(i.discount_text);}}function pO(o,n){if(o&1&&(s(0,"span"),g(1),c()),o&2){let i=d(3).$implicit;l(),A(i.unread_count);}}function dO(o,n){o&1&&(s(0,"span"),M(1,"small")(2,"small")(3,"small"),c());}function gO(o,n){if(o&1&&(s(0,"span",5),h(1,pO,2,1,"span"),h(2,dO,4,0,"span"),c()),o&2){let i=d(2).$implicit;l(),_(i.unread_count>0&&i.unread_count<=99?1:-1),l(),_(i.unread_count>99?2:-1);}}function uO(o,n){if(o&1&&h(0,gO,3,2,"span",5),o&2){let i=d().$implicit;_(i.unread_count&&i.show_unread?0:-1);}}function mO(o,n){if(o&1){let i=y();s(0,"a",22),f("throttleClick",function(){let t=b(i).$implicit,r=d(2);return P(r.selectGroup(t));}),s(1,"span",4),g(2),c(),h(3,lO,2,4,"span",23)(4,uO,1,1),c();}if(o&2){let i=n.$implicit,e=d(2);Bn("color",!e.isDynamicsRoute&&e.selectedGroup.group_id===i.group_id?"rgb(22, 185, 152)":""),C("routerLink",R(5,Ps,i.group_id)),l(2),A(i.name),l(),_(i.discount_text?3:4);}}function hO(o,n){if(o&1&&(s(0,"div",10),B(1,mO,5,7,"a",20,Ms),c()),o&2){let i=d();C("hidden",i.showJoinedList),l(),N(i.joinedGroups);}}function _O(o,n){if(o&1&&(s(0,"span"),g(1),c()),o&2){let i=d(2).$implicit;l(),A(i.unread_count);}}function fO(o,n){o&1&&(s(0,"span"),M(1,"small")(2,"small")(3,"small"),c());}function CO(o,n){if(o&1&&(s(0,"span",5),h(1,_O,2,1,"span"),h(2,fO,4,0,"span"),c()),o&2){let i=d().$implicit;l(),_(i.unread_count>0&&i.unread_count<=99?1:-1),l(),_(i.unread_count>99?2:-1);}}function xO(o,n){if(o&1){let i=y();s(0,"a",22),f("throttleClick",function(){let t=b(i).$implicit,r=d(3);return P(r.selectGroup(t));}),s(1,"span",4),g(2),c(),h(3,CO,3,2,"span",5),c();}if(o&2){let i=n.$implicit,e=d(3);Bn("color",!e.isDynamicsRoute&&e.selectedGroup.group_id===i.group_id?"rgb(22, 185, 152)":""),C("routerLink",R(5,Ps,i.group_id)),l(2),A(i.name),l(),_(i.unread_count&&i.show_unread?3:-1);}}function vO(o,n){if(o&1&&(s(0,"div",10),B(1,xO,4,7,"a",20,Ms),c()),o&2){let i=d(2);C("hidden",i.showInactiveList),l(),N(i.inactiveGroups);}}function bO(o,n){if(o&1){let i=y();s(0,"div",12)(1,"div",7)(2,"div",24),f("click",function(){b(i);let t=d();return P(t.switchList("inactiveList"));}),s(3,"div",25),f("click",function(t){b(i);let r=d();return r.inactiveGroupsDialogVisible=!0,P(t.stopPropagation());}),c(),s(4,"span"),g(5,"\u4E0D\u6D3B\u8DC3\u7684\u514D\u8D39\u661F\u7403"),c(),M(6,"span",9),c()(),h(7,vO,3,1,"div",10),c();}if(o&2){let i=d();l(6),C("ngClass",R(2,bs,i.showInactiveList)),l(),_(i.selectedGroup?7:-1);}}function PO(o,n){if(o&1&&(s(0,"span"),g(1),c()),o&2){let i=d(2).$implicit;l(),A(i.unread_count);}}function MO(o,n){o&1&&(s(0,"span"),M(1,"small")(2,"small")(3,"small"),c());}function OO(o,n){if(o&1&&(s(0,"span",5),h(1,PO,2,1,"span"),h(2,MO,4,0,"span"),c()),o&2){let i=d().$implicit;l(),_(i.unread_count>0&&i.unread_count<=99?1:-1),l(),_(i.unread_count>99?2:-1);}}function wO(o,n){if(o&1){let i=y();s(0,"a",22),f("throttleClick",function(){let t=b(i).$implicit,r=d(3);return P(r.selectGroup(t));}),s(1,"span",4),g(2),c(),h(3,OO,3,2,"span",5),c();}if(o&2){let i=n.$implicit,e=d(3);Bn("color",!e.isDynamicsRoute&&e.selectedGroup.group_id===i.group_id?"rgb(22, 185, 152)":""),C("routerLink",R(5,Ps,i.group_id)),l(2),A(i.name),l(),_(i.unread_count&&i.show_unread?3:-1);}}function yO(o,n){if(o&1&&(s(0,"div",10),B(1,wO,4,7,"a",20,Ms),c()),o&2){let i=d(2);C("hidden",i.showUnavailableList),l(),N(i.unavailableGroups);}}function kO(o,n){if(o&1){let i=y();s(0,"div",13)(1,"div",7)(2,"div",24),f("click",function(){b(i);let t=d();return P(t.switchList("unavailableList"));}),s(3,"div",25),f("click",function(t){b(i);let r=d();
146return r.unavailableGroupsDialogVisible=!0,P(t.stopPropagation());}),c(),s(4,"span"),g(5,"\u65E0\u66F4\u65B0\u7684\u661F\u7403"),c(),M(6,"span",9),c()(),h(7,yO,3,1,"div",10),c();}if(o&2){let i=d();l(6),C("ngClass",R(2,bs,i.showUnavailableList)),l(),_(i.selectedGroup?7:-1);}}function SO(o,n){if(o&1&&M(0,"img",17),o&2){let i=n.$implicit;C("transform-image-src",R(1,ZM,i.group.background_url));}}function TO(o,n){if(o&1){let i=y();s(0,"app-dialog",26),f("dialog-confirm",function(){b(i);let t=d();return P(t.inactiveGroupsDialogVisible=!1);}),s(1,"div",27)(2,"p",28),g(3,"\u4EE5\u4E0B\u514D\u8D39\u661F\u7403\uFF0C\u5C06\u4F1A\u88AB\u81EA\u52A8\u6298\u53E0\uFF1A"),c(),s(4,"p",29),g(5,"\xB7 3 \u4E2A\u6708\u4EE5\u4E0A\uFF0C\u672A\u8FDB\u5165\u8FC7\u661F\u7403\u3001\u672A\u67E5\u770B\u8FC7\u661F\u7403\u7684\u4E3B\u9898"),c(),s(6,"p",29),g(7,"\xB7 \u8BE5\u661F\u7403\u7684\u8FD0\u8425\u8005\uFF0C\u8D85\u8FC7 3 \u4E2A\u6708\u672A\u66F4\u65B0\u4E3B\u9898"),c(),s(8,"p",30),g(9,"\u6CE8\uFF1A\u5DF2\u7F6E\u9876\u7684\u661F\u7403\uFF0C\u4E0D\u4F1A\u88AB\u6298\u53E0"),c()()();}o&2&&C("title","\u8BF4\u660E");}function EO(o,n){if(o&1){let i=y();s(0,"app-dialog",26),f("dialog-confirm",function(){b(i);let t=d();return P(t.unavailableGroupsDialogVisible=!1);}),s(1,"div",27)(2,"p",28),g(3,"\u4EE5\u4E0B\u661F\u7403\uFF0C\u5C06\u4F1A\u88AB\u81EA\u52A8\u6298\u53E0\uFF1A"),c(),s(4,"p",29),g(5,"\xB7 \u6709\u6548\u671F\u5DF2\u7ED3\u675F\uFF0C\u4E14\u4E0D\u652F\u6301\u7EED\u671F\u7684\u661F\u7403"),c(),s(6,"p",29),g(7,"\xB7 \u8BE5\u661F\u7403\u7684\u8FD0\u8425\u8005\uFF0C\u8D85\u8FC7 1 \u5E74\u672A\u66F4\u65B0\u4E3B\u9898"),c(),s(8,"p",29),g(9,"\xB7 \u514D\u8D39\u4F53\u9A8C\u5DF2\u7ED3\u675F\u7684\u661F\u7403"),c(),s(10,"p",29),g(11,"\xB7 \u8FDD\u53CD\u661F\u7403\u793E\u533A\u89C4\u8303\uFF0C\u5DF2\u88AB\u9650\u5236\u8FD0\u8425\u7684\u661F\u7403"),c(),s(12,"p",30),g(13,"\u6CE8\uFF1A\u5DF2\u7F6E\u9876\u7684\u661F\u7403\uFF0C\u4E0D\u4F1A\u88AB\u6298\u53E0"),c()()();}o&2&&C("title","\u8BF4\u660E");}var Os=(()=>{let n=class n{constructor(e,t,r,a,p,m,v,x,w,k,S,E){this.groupListService=e,this.groupDataService=t,this.indexService=r,this.mainService=a,this.groupPreviewService=p,this.message=m,this.http=v,this.menuService=x,this.topicDetailService=w,this.topicFlowDynamicService=k,this.router=S,this.titleService=E,this.groups=[],this.joinedGroups=[],this.createdGroups=[],this.inactiveGroups=[],this.unavailableGroups=[],this.inactiveGroupsDialogVisible=!1,this.unavailableGroupsDialogVisible=!1,this.order=[],this.stickies=[],this.subscriptions=[],this.showCreatedList=!1,this.showJoinedList=!1,this.showInactiveList=!0,this.showUnavailableList=!0,this.hideContent=!1,this.lockedGroup=!1,this.videoSettings={},this.blockGroupsList=[141241551812,828145115452],this.isDynamicsRoute=!1,this.dynamicsUnreadCount=0,this.lastDynamicsCheckTime="",this.qualityTopics=[],this.totalGroupsCount=0;}ngOnInit(){this.isDynamicsRoute=this.router.url.includes("/dynamics"),this.doSubscribe(),this.groupListService.getUnreadTopicsCount(),this.loadLastDynamicsCheckTime(),this.updateDynamicsUnreadCount(),this.mainService.getRecommendationTopics(3);}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}goToRecommendTopics(){$e("DWebRecommendContentViewEnter_Click",{param1:this.totalGroupsCount.toString()}),ne("recommend-topics");}doSubscribe(){let e=this.mainService.hideContent$.subscribe(w=>{this.hideContent=!!w;}),t=this.mainService.lockedGroup$.subscribe(w=>{this.lockedGroup=w||!1;}),r=this.groupListService.unreadGroups$.subscribe(()=>{this.groupListService.getGroups();}),a=this.groupListService.group$.subscribe(w=>{this.order=w.preferences.sorts,this.stickies=w.preferences.stickies,this.groups=w.groups;let k=this.indexService.getSelfInfo("user_id");this.classifyGroup(k,w.groups),this.initSelectedGroup();}),p=this.groupListService.selectedGroup$.subscribe(w=>{this.selectedGroup=w;}),m=this.topicDetailService.enterGroup$.subscribe(w=>{this.selectGroup(w);}),v=this.router.events.subscribe(w=>{w instanceof wi&&(this.isDynamicsRoute=w.url.includes("/dynamics"),w.url.includes("group/init")&&this.initSelectedGroup());});this.subscriptions.push(e,t,r,a,p,m,v);let x=this.mainService.recommendationTopics$.subscribe(w=>
146{this.qualityTopics=w.slice(0,3);});this.subscriptions.push(x);}classifyGroup(e,t){var w,k;let r=[],a=[],p=[],m=[],v=this.indexService.getSelfInfo("user_id"),x=t.length>14;for(let S of t){let E=S.type==="pay",I=S.type==="free",T=S.risk_level==="locked",D=S.risk_level==="high-risk",L=this.stickies.indexOf(S.group_id)>-1,J=fn(new Date(),ge(S.user_specific.last_active_time)),G=fn(new Date(),ge(S.privilege_user_last_topic_create_time)),pe=E?fn(new Date(),ge(S.user_specific.validity.end_time))>30:!1,Ce=S.policies.allow_member_renew===!1||S.policies.allow_renew===!1,Ee=S.user_specific.trial?fn(new Date(),ge(S.user_specific.trial.end_time))>90:!1,Xe=S.owner.user_id===e||((w=S.partner_ids)==null?void 0:w.includes(e))||((k=S.admin_ids)==null?void 0:k.includes(e)),Ke=J>90||J>30&&G>90,rt=T||D||pe&&Ce||G>390||Ee;Xe?r.push(S):Ke&&I&&!L&&x?p.push(S):rt&&!L&&x?m.push(S):a.push(S),S.group_id===ie.SCYS_GROUP_ID&&this.groupListService.getMemberSummary(ie.SCYS_GROUP_ID,v);}this.inactiveGroups=this.sortGroup(p),this.unavailableGroups=this.sortGroup(m),this.createdGroups=this.sortGroup(r),v===ie.HELP_GROUP.OWNER_ID&&this.createdGroups.unshift({group_id:ie.HELP_GROUP.ID,name:"\u5E2E\u52A9\u4E0E\u53CD\u9988"}),this.joinedGroups=this.sortGroup(a),this.totalGroupsCount=this.createdGroups.length+this.joinedGroups.length+this.inactiveGroups.length+this.unavailableGroups.length;}initSelectedGroup(){this.initWithGroupId()||(this.createdGroups.length>0?this.selectedGroup=this.createdGroups[0]:this.joinedGroups.length>0?this.selectedGroup=this.joinedGroups[0]:this.inactiveGroups.length>0?this.selectedGroup=this.inactiveGroups[0]:this.unavailableGroups.length>0&&(this.selectedGroup=this.unavailableGroups[0]));let e=window.location.href.match(/group\/(\d+)/g);if(!(e&&this.groups.every(t=>t.group_id!==+e[0].split("/")[1]))&&this.selectedGroup){if(this.isDynamicsRoute)return;let t="/"+this.selectedGroup.group_id,r=window.location.href.match(/\/group(.*)/)[1],a=r?window.location.href.replace(r,t):`${window.location.href}${t}`;history.replaceState(null,null,a),this.selectGroup(this.selectedGroup);}}loadLastDynamicsCheckTime(){let e=this.indexService.getSelfInfo("user_id"),t=localStorage.getItem(`global_dynamics_last_check_${e}`);if(t)this.lastDynamicsCheckTime=t;else{let r=new Date();r.setMonth(r.getMonth()-1),this.lastDynamicsCheckTime=r.toISOString();}}updateDynamicsUnreadCount(){return ye(this,null,function*(){var m;let e=0,t="",r=4,a=30,p=ge(this.lastDynamicsCheckTime);for(let v=0;v<r;v++)try{let x=yield er(this.http.get(j.getDynamics("general","",encodeURIComponent(t),a)));if(x.succeeded){let w=x.resp_data.dynamics;if(w&&w.length>0){let k=w.filter(E=>{var T;return ge(E.create_time||((T=E.topic)==null?void 0:T.create_time))>p;}).length;if(e+=k,e>99){this.dynamicsUnreadCount=100;return;}if(k<w.length){this.dynamicsUnreadCount=e;return;}let S=w[w.length-1];t=S.create_time||((m=S.topic)==null?void 0:m.create_time);}else break;}else break;}catch(x){console.error("[\u5168\u5C40\u52A8\u6001\u672A\u8BFB] \u83B7\u53D6\u5168\u5C40\u52A8\u6001\u5931\u8D25:",x);break;}this.dynamicsUnreadCount=e;});}onDynamicsClick(){$e("DWebDynamicViewEnter_Click",{param1:this.totalGroupsCount.toString()});let e=this.indexService.getSelfInfo("user_id");this.lastDynamicsCheckTime=new Date().toISOString(),localStorage.setItem(`global_dynamics_last_check_${e}`,this.lastDynamicsCheckTime),this.titleService.setTitle("\u6700\u65B0\u52A8\u6001-\u77E5\u8BC6\u661F\u7403"),this.dynamicsUnreadCount=0,document.body.scrollTop=document.documentElement.scrollTop=0;}selectGroup(e){this.isDynamicsRoute=!1,document.body.scrollTop=document.documentElement.scrollTop=0,e.show_unread=!1,this.indexService.scheduledJobsCount=0,this.handleBlockGroup(e).then(t=>{var r;t&&(((r=this.groupListService.getSelectedGroup())==null?void 0:r.group_id)===t.group_id&&this.menuService.getMenus(t.group_id),this.groupDataService.setCurrentGroup(t),this.groupListService.setSelectedGroup(t),this.indexService.setTargetGroup(t),this.indexService.getTestModules(t.group_id),this.mainService.getGroupPreferences(t.group_id),this.permissionCheck(t),this.mainService.resetBlockStatus(),this.mainService.clearData(),this.mainService.menuIndex=0,this.mainService.scope="all",this.mainService.hashtagId=0,this.mainService.subHashtagIds="",this.mainService.currentSubTagId="",this.mainService.getFreshTopics(t.group_id),this.indexService.clearData(),this.indexService.getColumnAbstract(t.group_id),!this.lockedGroup&&!this.hideContent&&this.groupPreviewService.getFiles(t.group_id),this.titleService.setTitle(`${t.name}-\u77E5\u8BC6\u661F\u7403`));});}sortGroup(e){let t=new Array(this.order.length).fill(null),r=new Array(this.stickies.length).fill(null),a=[];a=e.filter(m=>this.stickies.indexOf(m.group_id)>-1?(r[this.stickies.indexOf(m.group_id)]=m,!1):this.order.indexOf(m.group_id)>-1?(t[this.order.indexOf(m.group_id)]=m,!1):!0),a.sort((m,v)=>ge(v.user_specific.join_time).getTime()-ge(m.user_specific.join_time).getTime());let p=m=>m.filter(v=>v!==null);return p(r).concat(a).concat(p(t));}initWithGroupId(){let e=window.location.href.indexOf("group")+5,t=window.location.href.lastIndexOf("/");if(e===t){let r=parseInt(window.location.href.substring(e+1),10);if(isNaN(r))return!1;let a=this.groups.find(p=>p.group_id===r);return a?(this.selectedGroup=a,!0):(this.topicFlowDynamicService.topicFlowDynamicReRender(va),!1);}else return!1;}switchList(e){e==="createdList"?this.showCreatedList=!this.showCreatedList:e==="joinedList"?this.showJoinedList=!this.showJoinedList:e==="inactiveList"?this.showInactiveList=!this.showInactiveList:e==="unavailableList"&&(this.showUnavailableList=!this.showUnavailableList);}
146permissionCheck(e){this.indexService.joinEnoughTime=!0,this.indexService.canCreateTopic=!0,this.indexService.createTopicNeedReward=!1,this.indexService.canCreateComment=!0,this.indexService.createCommentNeedReward=!1,this.indexService.likeTopicNeedReward=!1,this.indexService.isMember=!0,this.indexService.isTrialMember=!1;let t=this.indexService.getSelfInfo("user_id"),r=e.owner.user_id,a=e.admin_ids||[],p=e.partner_ids||[],m=e.guest_ids||[];this.indexService.isGroupOwner=t===r,this.indexService.isOwnerOrAdminOrPartner=t===r||a.includes(t)||p.includes(t),this.indexService.isOwnerOrAdminOrPartner?this.indexService.getScheduledJobsCount(e.group_id):this.indexService.scheduledJobsCount=0;let v=a.indexOf(t)===-1&&p.indexOf(t)===-1&&m.indexOf(t)===-1;this.indexService.isMember=v,this.indexService.isTrialMember=e.user_specific.hasOwnProperty("trial");let x=e.user_specific.join_time+"",w=Kr(new Date(),ge(x));e.type==="free"&&!e.user_specific.rewarded_owner&&e.privileges.need_reward_for_interaction&&(this.indexService.createTopicNeedReward=e.privileges.need_reward_for_interaction.indexOf("create_topic")!==-1,this.indexService.createCommentNeedReward=e.privileges.need_reward_for_interaction.indexOf("create_comment")!==-1,this.indexService.likeTopicNeedReward=e.privileges.need_reward_for_interaction.indexOf("like")!==-1),e.privileges.create_topic==="all"&&e.policies.silence_new_member&&v?(this.indexService.canCreateTopic=w>24,this.indexService.joinEnoughTime=w>24):e.privileges.create_topic==="owner"&&p.indexOf(t)===-1?this.indexService.canCreateTopic=!1:e.privileges.create_topic==="admins"&&v&&(this.indexService.canCreateTopic=!1),t===r||e.privileges.create_comment==="all"?this.indexService.canCreateComment=!0:e.privileges.create_comment==="owner"&&p.indexOf(t)===-1?this.indexService.canCreateComment=!1:e.privileges.create_comment==="admins"&&v&&(this.indexService.canCreateComment=!1),this.mainService.setupUserRole(this.selectedGroup);}handleBlockGroup(e){return ye(this,null,function*(){let t=e.group_id,r=this.indexService.getSelfInfo("user_id"),a=yield er(this.http.get(j.getGroup(t)));if(a.succeeded){let p=a.resp_data.group;return this.blockGroupsList.includes(t)&&r!==e.owner.user_id?p.admin_ids&&p.admin_ids.includes(r)?p:(this.showBlockGroup(e),null):p;}else return this.http.handleExceptionCode(a,"\u83B7\u53D6\u661F\u7403\u5931\u8D25"),null;});}showBlockGroup(e){this.groupDataService.setCurrentGroup(e),this.groupListService.setSelectedGroup(e),this.mainService.clearData(),this.mainService.switchMonthSelector(!1),this.mainService.showBlockStatus();}};n.ɵfac=function(t){return new(t||n)(O(ce),O(da),O(q),O(oe),O(vo),O(le),O(W),O(qo),O(Te),O(vs),O(ue),O(Jn));},n.ɵcmp=F({type:n,selectors:[["app-group-list"]],standalone:!1,decls:35,vars:18,consts:[["group",""],[1,"group-list-container"],[1,"group-list-wrapper"],[1,"groups-dynamic",3,"click","ngClass","routerLink"],[1,"group-name"],[1,"unread"],[1,"created-group"],[1,"sorts"],[1,"title",3,"click"],[1,"fold",3,"ngClass"],[1,"group-list",3,"hidden"],[1,"joined-group"],[1,"inactive-group"],[1,"unavailable-group"],[1,"more-quality-content"],[1,"title-wrapper"],[1,"avatars"],[1,"avatar-item",3,"transform-image-src"],[1,"arrow-right"],["type","confirm","confirmBtnText","\u77E5\u9053\u4E86",3,"title"],[3,"color","routerLink"],[3,"click","routerLink"],[3,"throttleClick","routerLink"],[1,"pay",3,"ngStyle"],[1,"title","after-icon",3,"click"],[1,"icon",3,"click"],["type","confirm","confirmBtnText","\u77E5\u9053\u4E86",3,"dialog-confirm","title"],[1,"group-list-dialog-reason"],[1,"textPrimary","mb20"],[1,"mb6"],[1,"textRemark","mt20"]],template:function(t,r){t&1&&(s(0,"div",1,0)(2,"div",2)(3,"div",3),f("click",function(){return r.onDynamicsClick();}),s(4,"span",4),g(5,"\u6240\u6709\u661F\u7403 \xB7 \u6700\u65B0\u52A8\u6001"),c(),h(6,iO,3,2,"span",5),c(),s(7,"div",6)(8,"div",7)(9,"div",8),f("click",function(){return r.switchList("createdList");}),s(10,"span"),g(11,"\u521B\u5EFA/\u7BA1\u7406\u7684\u661F\u7403"),c(),M(12,"span",9),c()(),h(13,cO,3,1,"div",10),c(),s(14,"div",11)(15,"div",7)(16,"div",8),f("click",function(){return r.switchList("joinedList");}),s(17,"span"),g(18,"\u52A0\u5165\u7684\u661F\u7403"),c(),M(19,"span",9),c()(),h(20,hO,3,1,"div",10),c(),h(21,bO,8,4,"div",12),h(22,kO,8,4,"div",13),M(23,"app-group-rankings-mini"),s(24,"div",14)(25,"div",15)(26,"div",8),f("click",function(){return r.goToRecommendTopics();}),s(27,"span"),g(28,"\u66F4\u591A\u4F18\u8D28\u5185\u5BB9\uFF1A"),c(),s(29,"div",16),B(30,SO,1,3,"img",17,eO),c(),M(32,"i",18),c()()()()(),h(33,TO,10,1,"app-dialog",19),h(34,EO,14,1,"app-dialog",19)),t&2&&(l(3),C("ngClass",R(11,XM,r.isDynamicsRoute))("routerLink",Qt(13,JM)),l(3),_(r.dynamicsUnreadCount>0?6:-1),l(6),C("ngClass",R(14,bs,r.showCreatedList)),l(),_(r.selectedGroup?13:-1),l(6),C("ngClass",R(16,bs,r.showJoinedList)),l(),_(r.selectedGroup?20:-1),l(),_(r.inactiveGroups.length>0?21:-1),l(),_(r.unavailableGroups.length>0?22:-1),l(8),N(r.qualityTopics),l(3),_(r.inactiveGroupsDialogVisible?33:-1),l(),_(r.unavailableGroupsDialogVisible?34:-1));},dependencies:[K,De,lt,Ze,Wt,Jp,pm],styles:['.group-list-container[_ngcontent-%COMP%]{margin-top:10px;width:343px;color:var(--dweb-text-muted, #8B8E9D);box-sizing:border-box;height:100%}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]{padding-left:16px;margin-left:-16px;width:100%;height:100%;overflow-y:scroll;overflow-x:hidden;overscroll-behavior:contain}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]{padding-right:10px;box-sizing:content-box}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .sorts[_ngcontent-%COMP%]{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .sorts[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{position:absolute;
146left:0;top:4px;height:12px;width:12px;background-image:url("./media/[email protected]");background-position:-233px -421px}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .sorts[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{cursor:pointer;font-size:14px;line-height:20px;color:var(--dweb-text-faint, #C5C6CB);margin-bottom:15px;margin-top:14px;display:flex;align-items:center}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .sorts[_ngcontent-%COMP%]   .title.after-icon[_ngcontent-%COMP%]{padding-left:16px}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .sorts[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .fold[_ngcontent-%COMP%]{cursor:pointer;width:20px;height:20px;background-image:url("./media/[email protected]");background-position:-160px -193px;-webkit-transition:-webkit-transform .5s ease-out;-moz-transition:-moz-transform .5s ease-out;-o-transition:transform .5s ease-out;transition:transform .5s ease-out}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .sorts[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .fold.hide[_ngcontent-%COMP%]{-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg)}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .created-group[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .joined-group[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .inactive-group[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .unavailable-group[_ngcontent-%COMP%]{width:100%}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .created-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .joined-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .inactive-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .unavailable-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]{color:var(--dweb-text-muted, #8B8E9D);font-size:14px}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .created-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .joined-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .inactive-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .unavailable-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-left:-16px;display:block;border-radius:3px;height:30px;line-height:30px;padding:0 10px 0 16px;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .created-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .joined-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .inactive-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .unavailable-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus{outline:none}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .created-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .group-name[_ng
146content-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .joined-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .group-name[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .inactive-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .group-name[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .unavailable-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .group-name[_ngcontent-%COMP%]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:8px}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .created-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .pay[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .joined-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .pay[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .inactive-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .pay[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .unavailable-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .pay[_ngcontent-%COMP%]{font-size:12px;float:right}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .created-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .joined-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .inactive-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .unavailable-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%]{float:right;height:12px;line-height:12px;margin-top:9px;max-width:22px;min-width:18px;text-align:center;background:var(--dweb-danger);border-radius:3px;color:#fff;display:flex;justify-content:center}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .created-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .joined-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .inactive-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .unavailable-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:PingFangSC-Regular;font-size:10px;transform:scale(.83)}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .created-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%]   small[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .joined-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%]   small[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .inactive-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%]   small[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .unavailable-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{display:inline-block;background-color:var(--dweb-text-on-color);border-radius:50%;width:2px;height:2px;position:relative;top:-3px}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .created-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]:nth-child(2), .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .joined-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]:nth-child(2), .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .inactive-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]:nth-child(2), .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .unavailable-group[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]:nth-child(2){margin:0 2px}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .unavailable-group[_ngcontent-%COMP%]{margin-bottom:32px}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .more-quality-content[_ngcontent-%COMP%]{margin-top:32px}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .more-quality-content[_ngcontent-%COMP%]   .title-wrapper[_ngcontent-%COMP%]{padding-top:24px;padding-bottom:20px;border-top:1px solid var(--dweb-border-faint)}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .more-quality-content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:14px;color:var(--dweb-text-muted);display:flex;align-items:center;cursor:pointer}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .more-quality-content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{flex:1}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .more-quality-content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .avatars[_ngcontent-%COMP%]{display:flex;align-items:center}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .more-quality-content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .avatar-item[_ngcontent-%COMP%]{width:16px;height:16px;border-radius:50%;border:2px solid var(--dweb-bg-page);position:relative}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .more-quality-content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .avatar-item[_ngcontent-%COMP%]:nth-child(1){z-index:3}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .more-quality-content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .avatar-item[_ngcontent-%COMP%]:nth-child(2){z-index:2;margin-left:-6px}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .more-quality-content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .avatar-item[_ngcontent-%COMP%]:nth-child(3){z-index:1;margin-left:-6px}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .more-quality-content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .arrow-right[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-297px -197px;margin-left:10px;flex-shrink:0}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .more-quality-content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]:hover{background-color:#e8ebf0}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .more-quality-content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin-left:-16px;height:30px;line-height:30px;padding:0 10px 0 16px;border-radius:3px;box-sizing:border-box}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{background-color:#e8ebf0}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .help-and-feedback[_ngcontent-%COMP%]{display:block;box-sizing:border-box;width:250px;border-radius:3px;height:30px;line-height:30px;font-size:14px;color:var(--dweb-text-muted, #8B8E9D);margin-top:20px;padding-left:16px;cursor:pointer}.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .help-and-feedback[_ngcontent-%COMP%]:hover{background-color:#e8ebf0}.groups-dynamic[_ngcontent-%COMP%]{margin-top:14px;margin-left:-16px;display:block;border-radius:3px;height:30px;line-height:30px;padding:0 10px 0 16px;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;color:var(--dweb-text-muted, #8B8E9D);display:flex}.groups-dynamic[_ngcontent-%COMP%]:hover{background-color:#e8ebf0}.groups-dynamic.active[_ngcontent-%COMP%]{color:var(--dweb-brand)}
146.groups-dynamic[_ngcontent-%COMP%]   .group-name[_ngcontent-%COMP%]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:8px}.groups-dynamic[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%]{float:right;height:12px;line-height:12px;margin-top:9px;max-width:22px;min-width:18px;text-align:center;background:var(--dweb-danger);border-radius:3px;color:#fff;display:flex;justify-content:center}.groups-dynamic[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:PingFangSC-Regular;font-size:10px;transform:scale(.83)}.groups-dynamic[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{display:inline-block;background-color:var(--dweb-text-on-color);border-radius:50%;width:2px;height:2px;position:relative;top:-3px}.groups-dynamic[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]:nth-child(2){margin:0 2px}html[data-theme=dark][_nghost-%COMP%]   .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, html[data-theme=dark]   [_nghost-%COMP%]   .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, html[data-theme=dark][_nghost-%COMP%]   .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .groups-dynamic[_ngcontent-%COMP%]:hover, html[data-theme=dark]   [_nghost-%COMP%]   .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .groups-dynamic[_ngcontent-%COMP%]:hover, html[data-theme=dark][_nghost-%COMP%]   .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .help-and-feedback[_ngcontent-%COMP%]:hover, html[data-theme=dark]   [_nghost-%COMP%]   .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .help-and-feedback[_ngcontent-%COMP%]:hover, html[data-theme=dark][_nghost-%COMP%]   .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .more-quality-content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]:hover, html[data-theme=dark]   [_nghost-%COMP%]   .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .more-quality-content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]:hover{background-color:var(--dweb-bg-muted-tint-soft)}html[data-theme=dark][_nghost-%COMP%]   .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .sorts[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .fold[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .sorts[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .fold[_ngcontent-%COMP%]{color:var(--dweb-text-muted);background-color:currentColor;background-image:none!important;background-position:initial;background-repeat:no-repeat;-webkit-mask-image:url("./media/[email protected]");-webkit-mask-position:-160px -193px;-webkit-mask-repeat:no-repeat;mask-image:url("./media/[email protected]");mask-position:-160px -193px;mask-repeat:no-repeat}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){html[data-theme=dark][_nghost-%COMP%]   .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .sorts[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .fold[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .sorts[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .fold[_ngcontent-%COMP%]{-webkit-mask-image:url("./media/[email protected]");-webkit-mask-size:1024px 1057px;mask-image:url("./media/[email protected]");mask-size:1024px 1057px}}html[data-theme=dark][_nghost-%COMP%]   .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .more-quality-content[_ngcontent-%COMP%]   .arrow-right[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .more-quality-content[_ngcontent-%COMP%]   .arrow-right[_ngcontent-%COMP%]{color:var(--dweb-text-muted);background-color:currentColor;background-image:none!important;background-position:initial;background-repeat:no-repeat;-webkit-mask-image:url("./media/[email protected]");-webkit-mask-position:-297px -197px;-webkit-mask-repeat:no-repeat;mask-image:url("./media/[email protected]");mask-position:-297px -197px;mask-repeat:no-repeat}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){html[data-theme=dark][_nghost-%COMP%]   .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .more-quality-content[_ngcontent-%COMP%]   .arrow-right[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]   .more-quality-content[_ngcontent-%COMP%]   .arrow-right[_ngcontent-%COMP%]{-webkit-mask-image:url("./media/[email protected]");-webkit-mask-size:1024px 1057px;mask-image:url("./media/[email protected]");mask-size:1024px 1057px}}.group-list-dialog-reason[_ngcontent-%COMP%]{text-align:left}.group-list-dialog-reason[_ngcontent-%COMP%]   .textPrimary[_ngcontent-%COMP%]{color:var(--dweb-text-primary)}.group-list-dialog-reason[_ngcontent-%COMP%]   .textRemark[_ngcontent-%COMP%]{color:var(--dweb-danger);font-size:13px}.group-list-dialog-reason[_ngcontent-%COMP%]   .mt20[_ngcontent-%COMP%]{margin-top:20px}.group-list-dialog-reason[_ngcontent-%COMP%]   .mb20[_ngcontent-%COMP%]{margin-bottom:20px}.group-list-dialog-reason[_ngcontent-%COMP%]   .mb8[_ngcontent-%COMP%]{margin-bottom:8px}.group-list-dialog-reason[_ngcontent-%COMP%]   .mb6[_ngcontent-%COMP%]{margin-bottom:6px}@media screen and (max-width:2000px){.group-list-container[_ngcontent-%COMP%]{width:303px}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.more-quality-content[_ngcontent-%COMP%]   .arrow-right[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}@media screen and (max-width:1550px){.group-list-container[_ngcontent-%COMP%]   .group-list-wrapper[_ngcontent-%COMP%]{width:80%;margin-left:auto}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.group-list-container[_ngcontent-%COMP%]   .sorts[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .group-list-container[_ngcontent-%COMP%]   .sorts[_ngcontent-%COMP%]   .fold[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var um=xi(gm());var ys=(()=>{let n=class n{constructor(e,t){this.http=e,this.indexService=t,this.userInfo={name:"",uid:0,unique_id:"",phone:"",ua:""};}
146ngOnInit(){this.getSelf();}getSelf(){return ye(this,null,function*(){var t,r,a,p;let e=yield this.http.get(j.self).toPromise();if(e.succeeded){this.indexService.setUserInfo(e.resp_data);let m=new um.default().getResult(),v=e.resp_data;this.userInfo={name:encodeURIComponent(v.user.name),uid:v.user.uid,unique_id:v.user.unique_id||"",phone:`${(r=(t=v.accounts)==null?void 0:t.phone)==null?void 0:r.country_code}${(p=(a=v.accounts)==null?void 0:a.phone)==null?void 0:p.phone_number}`,ua:`${m.browser.name.replace(" ","")}/${m.browser.version} ${m.os.name.replace(" ","")}/${m.os.version} DWEB`};}else this.http.handleExceptionCode(e,"\u83B7\u53D6\u7528\u6237\u4E2A\u4EBA\u4FE1\u606F\u5931\u8D25");});}toHelp(){window.open(`${ie.MWEB_URL}help_center.html?&c1=${this.userInfo.name}&c2=${this.userInfo.uid}&c3=${this.userInfo.unique_id}&c4=${this.userInfo.phone}&c5=${encodeURIComponent(this.userInfo.ua)}`);}};n.ɵfac=function(t){return new(t||n)(O(W),O(q));},n.ɵcmp=F({type:n,selectors:[["app-help-btn"]],standalone:!1,decls:7,vars:0,consts:[[1,"help-btn",3,"click"],[1,"icon"],[1,"text"]],template:function(t,r){t&1&&(s(0,"div",0),f("click",function(){return r.toHelp();}),M(1,"div",1),s(2,"div",2)(3,"div"),g(4,"\u5E2E\u52A9"),c(),s(5,"div"),g(6,"\u53CD\u9988"),c()()());},styles:['.help-btn[_ngcontent-%COMP%]{cursor:pointer;overflow:hidden;width:40px;height:40px;border-radius:8px;background-color:var(--dweb-bg-panel);box-shadow:0 8px 20px #0000000d;font-family:PingFangSC-Regular;font-size:10px;color:var(--dweb-text-muted);line-height:12px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.help-btn[_ngcontent-%COMP%]:hover   .icon[_ngcontent-%COMP%]{display:none}.help-btn[_ngcontent-%COMP%]:hover   .text[_ngcontent-%COMP%]{display:block}.help-btn[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:21px;height:20px;margin:10px auto;background-image:url("./media/[email protected]");background-position:-263px -276px}.help-btn[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{display:none;margin:7px auto;text-align:center}.help-btn[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:first-child{margin-bottom:2px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.help-btn[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var DO=o=>({"pointer-events":o}),IO=o=>({url:o}),FO=o=>({liked:o}),AO=(o,n,i)=>({"owner-light":o,"guest-light":n,"user-light":i}),VO=(o,n)=>({"margin-bottom":o,"padding-top":n}),RO=(o,n)=>n.owner.user_id,hm=(o,n)=>n.comment_id;function LO(o,n){if(o&1){let i=y();s(0,"div",15),f("click",function(){b(i);let t=d();return P(t.toSEOPage(t.topic.group.group_id,t.index));}),g(1," \u52A0\u5165\u661F\u7403 "),c();}}function BO(o,n){}function NO(o,n){if(o&1){let i=y();s(0,"span",23),f("click",function(t){b(i);let r=d(2);return P(r.closeCommentAndBox(t));}),g(1,"\u6536\u8D77"),c();}}function zO(o,n){if(o&1&&(s(0,"span",22),g(1),c()),o&2){let i=d(2);l(),A(i.topic.comments_count);}}function GO(o,n){if(o&1){let i=y();s(0,"div",11)(1,"div",16)(2,"div",17),f("click",function(){b(i);let t=d();return P(t.onLikeClick());}),M(3,"div",18),s(4,"span",19),g(5),c()(),s(6,"div",20),f("click",function(){b(i);let t=d();return P(t.handleCommentClick());}),M(7,"div",21),h(8,NO,2,0,"span",22),h(9,zO,2,1,"span",22),c()()();}if(o&2){let i=d();l(3),C("ngClass",R(4,FO,i.topic.user_specific==null?null:i.topic.user_specific.liked)),l(2),A(i.topic.likes_count),l(3),_(i.commentBoxVisible?8:-1),l(),_(i.commentBoxVisible?-1:9);}}function jO(o,n){if(o&1&&(s(0,"span"),g(1),c()),o&2){let i=d();l(),Gt("",i.topic.likes_count,"\u8D5E\uFF0C",i.topic.comments_count,"\u8BC4\u8BBA");}}function $O(o,n){if(o&1){let i=y();s(0,"span",25)(1,"span",27),$(2,"transformOwner"),f("click",function(){let t=b(i).$implicit,r=d(2);return P(r.toFootprint(t.owner.user_id));}),c(),s(3,"span"),g(4,"\u3001"),c()();}if(o&2){let i=n.$implicit;C("ngClass",_n(5,AO,i.owner.is_owner||i.owner.is_partner,i.owner.is_guest,i.owner.is_self)),l(),C("parseName",Pe(2,2,i,"owner"));}}function HO(o,n){o&1&&(s(0,"span",26),g(1," \u89C9\u5F97\u5F88\u8D5E"),c());}function UO(o,n){if(o&1&&(s(0,"span",26),g(1),c()),o&2){let i=d(2);l(),V(" \u7B49",i.topic.likes_count,"\u4EBA\u89C9\u5F97\u5F88\u8D5E");}}function qO(o,n){if(o&1&&(s(0,"div",14)(1,"div",24),B(2,$O,5,9,"span",25,RO),$(4,"transformLikeList"),c(),h(5,HO,2,0,"span",26),h(6,UO,2,1,"span",26),c()),o&2){let i=d();l(2),N(Z(4,2,i.topicLikes)),l(3),_(i.topicLikes.length&&i.topic.likes_count>0&&i.topic.likes_count<=10?5:-1),l(),_(i.topicLikes.length&&i.topic.likes_count>10?6:-1);}}function QO(o,n){if(o&1){let i=y();s(0,"app-comment",31),f("close-comment",function(){b(i);let t=d(2);return P(t.closeComment());}),c();}if(o&2){let i=d(2);C("data",i.topic);}}function WO(o,n){if(o&1){let i=y();s(0,"app-comment-item",37),f("delComment",function(t){b(i);let r=d(5);return P(r.delComment(t));}),c();}if(o&2){let i=n.$implicit,e=d(5);C("comment",i)("data",e.topic)("fromWhere",e.fromWhere);}}function XO(o,n){if(o&1&&(s(0,"div",34)(1,"div",35),B(2,WO,1,3,"app-comment-item",36,hm),$(4,"transformComments"),c()()),o&2){let i=d().$implicit;l(2),N(Z(4,0,i.replied_comments));}}function JO(o,n){if(o&1){let i=y();s(0,"div")(1,"app-comment-item",33),f("delComment",function(t){b(i);let r=d(3);return P(r.delComment(t));}),c(),h(2,XO,5,2,"div",34),c();}if(o&2){let i=n.$implicit,e=d(3);l(),C("comment",i)("data",e.topic)("fromWhere",e.fromWhere)("hadSticky",e.comments[0]==null?null:e.comments[0].sticky),l(),_(i.replied_comments&&i.replied_comments.length>0?2:-1);}}function YO(o,n){if(o&1&&(s(0,"div",29)(1,"div",32),B(2,JO,3,5,"div",null,hm),$(4,"transformComments"),$(5,"slice"),c()()),o&2){let i=d(2);C("ngStyle",qe(7,VO,i.topic.comments_count&&i.topic.comments_count<8?"10px":"0px",
146i.topic.comments_count?"8px":"0px")),l(2),N(hp(5,3,Z(4,1,i.comments),0,8));}}function KO(o,n){if(o&1){let i=y();s(0,"div",38),f("click",function(){b(i);let t=d(2);return P(t.toTopicDetailPage(t.topic.group.group_id,t.topic.topic_id,t.index));}),g(1," \u67E5\u770B\u66F4\u591A\u8BC4\u8BBA "),c();}}function ZO(o,n){if(o&1&&(s(0,"div"),h(1,QO,1,1,"app-comment",28),h(2,YO,6,10,"div",29),h(3,KO,2,0,"div",30),c()),o&2){let i=d();l(),_(i.commentVisible?1:-1),l(),_(i.commentBoxVisible&&i.comments.length?2:-1),l(),_(i.commentBoxVisible&&i.comments.length&&i.topic.comments_count>8?3:-1);}}var _m=(()=>{let n=class n{constructor(e,t,r,a){this.topicOwnService=e,this.http=t,this.indexService=r,this.message=a,this.userGroupsCount=0,this.index=0,this.subscriptions=[],this.topicLikes=[],this.isShowTopicLikes=!1,this.commentVisible=!1,this.commentBoxVisible=!1,this.comments=[],this.fromWhere="dynamic-topic";}ngOnInit(){this.loadComponent();}ngOnChanges(e){e.isInGroup&&!e.isInGroup.firstChange&&this.loadComponent();}ngAfterViewInit(){let e=this.topicOwnService.addComment$.subscribe(t=>{if(t.commentID){let r=t.commentID,a,p=this.comments.findIndex(m=>m.comment_id===r);p!==-1?a=p:this.comments.forEach((m,v)=>{m.replies_count&&m.replied_comments.findIndex(w=>w.comment_id===r)!==-1&&(a=v);}),this.comments[a].replied_comments?this.comments[a].replied_comments=[...this.comments[a].replied_comments,t.comment]:(this.comments[a].replied_comments=[t.comment],this.comments[a].replies_count=1);}else this.comments=[...this.comments,t.comment];this.topic.comments_count+=1;});this.subscriptions.push(e);}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}loadComponent(){let e=this.getTopicContentItem(),t=this.topicContent.viewContainerRef;t.clear();let r=t.createComponent(e.component);r.instance.data=e.data,r.instance.fromWhere=e.fromWhere;}getTopicContentItem(){let e;return this.topic.type==="talk"?e=new We(En,this.topic,this.isInGroup?"":"footprint"):this.topic.type==="q&a"&&this.topic.answer?e=new We(ti,this.topic,this.isInGroup?"":"footprint"):this.topic.type==="task"?e=new We(ni,this.topic,"preview"):this.topic.type==="solution"&&(e=new We(ii,this.topic,"preview")),e;}handleContentClick(e){let t=window.getSelection();t&&t.toString().trim().length>0||(!this.isInGroup||this.isInExpiredGroup)&&this.toTopicDetailPage(this.topic.group.group_id,this.topic.topic_id,this.index);}toTopicDetailPage(e,t,r){$e("DWebDynamicViewItem_Click",{group_id:e,member_status:this.isInGroup?"Joined":"NoneJoin",item_type:"TopicView",index:r,param1:this.userGroupsCount.toString()}),ne(`group/${e}/topic/${t}`);}onLikeClick(){this.likeTopic(),clearTimeout(this.likeTimer),this.likeTimer=setTimeout(()=>{this.topicOwnService.likeTopic(this.topic.topic_uid||this.topic.topic_id,this.topic.user_specific.liked);},800);}likeTopic(){if(this.topic.user_specific)this.topic.user_specific.liked=!this.topic.user_specific.liked;else{let e={liked:!0,subscribed:!1};this.topic.user_specific=e;}this.topic.user_specific.liked?this.topic.likes_count+=1:this.topic.likes_count-=1,this.displayTopicLikes();}toSEOPage(e,t){$e("DWebDynamicViewItem_Click",{group_id:e,member_status:this.isInGroup?"Joined":"NoneJoin",item_type:this.isInGroup?"GroupView":"GroupPreviewView",index:t,param1:this.userGroupsCount.toString()}),window.open(`${ie.SEO_GROUP_URL}${e}.html`);}toFootprint(e){ne(`footprint/${e}`);}displayTopicLikes(){this.isShowTopicLikes=!0,this.getLikeStatus();}getLikeStatus(){let e=this.topic.topic_uid||this.topic.topic_id,t=this.indexService.getSelfInfo("user_id"),r=this.indexService.getSelfInfo("user_name");this.http.get(j.getTopicLikes(e,10)).subscribe(a=>{var p,m;if(a.succeeded){let v=a.resp_data.likes||[],x=v.some(w=>w.owner.user_id===t);(p=this.topic.user_specific)!=null&&p.liked&&!x&&(v=[{create_time:new Date().toString(),owner:{user_id:t,name:r,avatar_url:this.indexService.getSelfInfo("avatar_url")}},...v]),!((m=this.topic.user_specific)!=null&&m.liked)&&x&&(v=v.filter(w=>w.owner.user_id!==t)),this.topicLikes=v;}});}handleCommentClick(){this.commentVisible=!this.commentVisible,this.commentBoxVisible=this.commentVisible,this.commentVisible&&this.comments.length===0&&this.loadComments();}closeComment(){this.commentVisible=!1;}closeCommentAndBox(e){this.commentVisible=!1,this.commentBoxVisible=!1,e.stopPropagation();}loadComments(){let e=this.topic.topic_uid||this.topic.topic_id;this.http.get(j.getComments(e,10)).subscribe(r=>{r.succeeded&&(this.comments=r.resp_data.comments||[]);});}delComment(e){if(this.comments.findIndex(r=>r.comment_id===e.id)!==-1)this.deleteComment(e.id,this.comments,e.reason,e.desc);else{let r;
146this.comments.forEach((a,p)=>{a.replies_count&&a.replied_comments.findIndex(v=>v.comment_id===e.id)!==-1&&(r=p);}),this.deleteComment(e.id,this.comments[r].replied_comments,e.reason,e.desc);}}deleteComment(e,t,r,a){let p=j.handleComment(e);r&&(p+="?reason="+r),r==="custom"&&a&&(p+="&description="+a),this.http.delete(p).subscribe(m=>{let v=!1,x=t.findIndex(k=>k.comment_id===e);x!==-1&&(v=!!t[x].repliee);let w=v?"\u56DE\u590D":"\u8BC4\u8BBA";if(m.succeeded){let k=t[x],S=1;!v&&k.replied_comments&&k.replied_comments.length>0&&(S+=k.replied_comments.length),t.splice(x,1),this.topic.comments_count-=S,this.message.info({content:`${w}\u5DF2\u5220\u9664`,type:"success"});}else this.http.handleExceptionCode(m,`\u5220\u9664${w}\u5931\u8D25`);});}};n.ɵfac=function(t){return new(t||n)(O(Ye),O(W),O(q),O(le));},n.ɵcmp=F({type:n,selectors:[["app-dynamic-topic"]],viewQuery:function(t,r){if(t&1&&_e(Tt,7),t&2){let a;ee(a=te())&&(r.topicContent=a.first);}},inputs:{topic:[0,"topicData","topic"],isInGroup:"isInGroup",isInExpiredGroup:"isInExpiredGroup",userGroupsCount:"userGroupsCount",index:"index"},standalone:!1,features:[ot([Ye]),It],decls:22,vars:13,consts:[[1,"dynamic-topic"],["mode","pure",3,"topicData"],["name","slot",1,"topic-group-info"],[3,"click"],[3,"ngStyle"],["topic-content",""],[1,"from-group",3,"click"],["alt","",1,"group-avatar",3,"transform-image-src"],[1,"group-name"],[1,"topic-footer"],[1,"footer-left"],[1,"operation-icon-container"],[1,"footer-right"],[1,"view-detail",3,"click"],[1,"like-user"],["name","slot",1,"topic-group-info",3,"click"],[1,"operation-icon"],["title","\u70B9\u8D5E",1,"like-container",3,"click"],[1,"like",3,"ngClass"],[1,"like-count"],["title","\u8BC4\u8BBA",1,"comment-container",3,"click"],[1,"comment"],[1,"comment-count"],[1,"comment-count",3,"click"],[1,"name"],[1,"eachLike",3,"ngClass"],[1,"text"],[3,"click","parseName"],[3,"data"],[1,"comment-box",3,"ngStyle"],[1,"moreComment"],[3,"close-comment","data"],[1,"comment-box-wrapper"],[3,"delComment","comment","data","fromWhere","hadSticky"],[1,"reply-comment"],[1,"container"],[3,"comment","data","fromWhere"],[3,"delComment","comment","data","fromWhere"],[1,"moreComment",3,"click"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"app-topic-header",1),h(2,LO,2,0,"div",2),c(),s(3,"div",3),f("click",function(p){return r.handleContentClick(p);}),s(4,"div",4),qt(5,BO,0,0,"ng-template",5),c()(),s(6,"div",6),f("click",function(){return r.toSEOPage(r.topic.group.group_id,r.index);}),M(7,"img",7),s(8,"span",8),g(9),c(),M(10,"i"),c(),s(11,"div",9)(12,"div",10),h(13,GO,10,6,"div",11),h(14,jO,2,2,"span"),c(),s(15,"div",12)(16,"div",13),f("click",function(){return r.toTopicDetailPage(r.topic.group.group_id,r.topic.topic_id,r.index);}),s(17,"span"),g(18,"\u67E5\u770B\u8BE6\u60C5"),M(19,"i"),c()()()(),h(20,qO,7,4,"div",14),h(21,ZO,4,3,"div"),c()),t&2&&(l(),C("topicData",r.topic),l(),_(r.isInGroup?-1:2),l(2),C("ngStyle",R(9,DO,r.isInGroup&&!r.isInExpiredGroup?"auto":"none")),l(3),C("transform-image-src",R(11,IO,r.topic.group.background_url)),l(2),A(r.topic.group.name),l(4),_(r.isInGroup?13:-1),l(),_(r.isInGroup?-1:14),l(6),_(r.isInGroup&&r.isShowTopicLikes&&r.topic.likes_count&&r.topic.user_specific!=null&&r.topic.user_specific.liked?20:-1),l(),_(r.isInGroup?21:-1));},dependencies:[K,De,Wt,xt,pn,qi,Ho,Tt,bp,St,_a,Po],styles:['.dynamic-topic[_ngcontent-%COMP%]{background-color:var(--dweb-bg-panel);margin-bottom:10px;border-radius:4px;padding:10px}.dynamic-topic[_ngcontent-%COMP%]     .header-container .avatar{cursor:auto!important}.dynamic-topic[_ngcontent-%COMP%]     .header-container .role{color:var(--dweb-info)!important;cursor:auto!important}.dynamic-topic[_ngcontent-%COMP%]   .topic-group-info[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;font-family:PingFangSC-Regular;font-size:12px;color:#fff;padding:5px 10px;background-color:var(--dweb-brand);border-radius:14px}.dynamic-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;font-family:PingFangSC-Regular;font-size:12px;color:var(--dweb-text-faint);padding:5px 20px 5px 56px}
146.dynamic-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   .footer-left[_ngcontent-%COMP%]{display:flex;align-items:center;flex:1}.dynamic-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   .footer-right[_ngcontent-%COMP%]{display:flex;align-items:center}.dynamic-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   .footer-right[_ngcontent-%COMP%]   .view-detail[_ngcontent-%COMP%]{cursor:pointer;width:max-content}.dynamic-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   .footer-right[_ngcontent-%COMP%]   .view-detail[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:PingFangSC-Regular;font-size:12px;color:var(--dweb-text-faint)}.dynamic-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   .footer-right[_ngcontent-%COMP%]   .view-detail[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-296px -197px}.dynamic-topic[_ngcontent-%COMP%]   .from-group[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin:5px 20px 10px 56px;padding:4px 6px;background-color:var(--dweb-bg-subtle);cursor:pointer;border-radius:4px}.dynamic-topic[_ngcontent-%COMP%]   .from-group[_ngcontent-%COMP%]   .group-avatar[_ngcontent-%COMP%]{width:14px;height:14px;border-radius:2px;margin-right:6px}.dynamic-topic[_ngcontent-%COMP%]   .from-group[_ngcontent-%COMP%]   .group-name[_ngcontent-%COMP%]{font-size:12px;color:var(--dweb-text-secondary);flex:1}.dynamic-topic[_ngcontent-%COMP%]   .from-group[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-296px -197px}.dynamic-topic[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%], .dynamic-topic[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]{display:flex;align-items:center}.dynamic-topic[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:21px;height:21px;background-image:url("./media/[email protected]");margin-right:8px;cursor:pointer}.dynamic-topic[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .like-container[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;margin-right:30px;min-width:max-content}.dynamic-topic[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .like-container[_ngcontent-%COMP%]   .like[_ngcontent-%COMP%]{width:21px;height:21px;flex-shrink:0;background-image:url("./media/[email protected]");background-position:-107px -306px;margin-right:8px}.dynamic-topic[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .like-container[_ngcontent-%COMP%]   .like.liked[_ngcontent-%COMP%]{background-position:-107px -346px}.dynamic-topic[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .like-container[_ngcontent-%COMP%]   .like-count[_ngcontent-%COMP%]{font-size:12px;color:var(--dweb-text-faint);margin-right:0}.dynamic-topic[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .comment-container[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;min-width:max-content}.dynamic-topic[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .comment-container[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]{width:21px;height:21px;flex-shrink:0;background-image:url("./media/[email protected]");background-position:-157px -306px;margin-right:8px}.dynamic-topic[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .comment-container[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]:hover{background-position:-157px -346px}.dynamic-topic[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .comment-container[_ngcontent-%COMP%]   .comment-count[_ngcontent-%COMP%]{font-size:12px;color:var(--dweb-text-faint);margin-right:0}.dynamic-topic[_ngcontent-%COMP%]   .like-user[_ngcontent-%COMP%]{padding-left:56px;padding-right:20px;margin-top:8px;margin-bottom:8px;font-size:14px;color:var(--dweb-info, #567895)}.dynamic-topic[_ngcontent-%COMP%]   .like-user[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{display:inline;word-wrap:break-word;line-height:20px}.dynamic-topic[_ngcontent-%COMP%]   .like-user[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   .eachLike[_ngcontent-%COMP%]{cursor:pointer}.dynamic-topic[_ngcontent-%COMP%]   .like-user[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   .eachLike.owner-light[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:first-child{color:var(--dweb-warning, #FDA956)}.dynamic-topic[_ngcontent-%COMP%]   .like-user[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   .eachLike.guest-light[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:first-child{color:var(--dweb-copper, #D28057)}.dynamic-topic[_ngcontent-%COMP%]   .like-user[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   .eachLike.user-light[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:first-child{color:var(--dweb-brand, #16B998)}.dynamic-topic[_ngcontent-%COMP%]   .like-user[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:last-child   [_ngcontent-%COMP%]:last-child{display:none!important}.dynamic-topic[_ngcontent-%COMP%]   .like-user[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{height:20px;line-height:20px;color:var(--dweb-text-muted, #8B8E9D)}.dynamic-topic[_ngcontent-%COMP%]   .moreComment[_ngcontent-%COMP%]:hover{cursor:pointer}.dynamic-topic[_ngcontent-%COMP%]   .moreComment[_ngcontent-%COMP%]{padding:20px 0 10px;text-align:center;color:var(--dweb-info, #567895)}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.dynamic-topic[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .dynamic-topic[_ngcontent-%COMP%]   .like[_ngcontent-%COMP%], .dynamic-topic[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}html[data-theme=dark][_nghost-%COMP%]   .dynamic-topic[_ngcontent-%COMP%]   .to
146pic-footer[_ngcontent-%COMP%]   .footer-right[_ngcontent-%COMP%]   .view-detail[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .dynamic-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   .footer-right[_ngcontent-%COMP%]   .view-detail[_ngcontent-%COMP%]{color:var(--dweb-text-faint)}html[data-theme=dark][_nghost-%COMP%]   .dynamic-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   .footer-right[_ngcontent-%COMP%]   .view-detail[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .dynamic-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   .footer-right[_ngcontent-%COMP%]   .view-detail[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:currentColor}html[data-theme=dark][_nghost-%COMP%]   .dynamic-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   .footer-right[_ngcontent-%COMP%]   .view-detail[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .dynamic-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   .footer-right[_ngcontent-%COMP%]   .view-detail[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{background-color:currentColor;background-image:none!important;background-position:initial;background-repeat:no-repeat;-webkit-mask-image:url("./media/[email protected]");-webkit-mask-position:-296px -197px;-webkit-mask-repeat:no-repeat;mask-image:url("./media/[email protected]");mask-position:-296px -197px;mask-repeat:no-repeat}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){html[data-theme=dark][_nghost-%COMP%]   .dynamic-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   .footer-right[_ngcontent-%COMP%]   .view-detail[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .dynamic-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   .footer-right[_ngcontent-%COMP%]   .view-detail[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{-webkit-mask-image:url("./media/[email protected]");-webkit-mask-size:1024px 1057px;mask-image:url("./media/[email protected]");mask-size:1024px 1057px}}']});let o=n;return o;})();var nw=["recommendedSection"],Pl=(o,n)=>n.topic_id;function iw(o,n){if(o&1&&M(0,"app-skeleton",4),o&2){let i=d();C("hidden",!i.isInitialLoading);}}function ow(o,n){if(o&1&&(s(0,"div",14),M(1,"app-recommend-topic",15),c()),o&2){let i=n.$implicit,e=n.$index,t=d(3);l(),C("topic",i)("index",e*2)("userGroupsCount",t.userGroupsCount);}}function rw(o,n){if(o&1&&(s(0,"div",14),M(1,"app-recommend-topic",15),c()),o&2){let i=n.$implicit,e=n.$index,t=d(3);l(),C("topic",i)("index",e*2+1)("userGroupsCount",t.userGroupsCount);}}function aw(o,n){if(o&1){let i=y();s(0,"div",7,0)(2,"div",8)(3,"span",9),f("click",function(){b(i);let t=d(2);return P(t.onFindMorePremiumClick());}),g(4," \u53D1\u73B0\u66F4\u591A\u4F18\u8D28\u5185\u5BB9 "),M(5,"img",10),c(),s(6,"button",11),f("click",function(){b(i);let t=d(2);return P(t.onMoreButtonClick());}),g(7," \u67E5\u770B\u66F4\u591A "),c()(),s(8,"div",12)(9,"div",13),B(10,ow,2,3,"div",14,Pl),c(),s(12,"div",13),B(13,rw,2,3,"div",14,Pl),c()()();}if(o&2){let i=d(2);l(10),N(i.recommendedTopicsLeft),l(3),N(i.recommendedTopicsRight);}}function sw(o,n){if(o&1&&(M(0,"app-dynamic-topic",6),h(1,aw,15,0,"div",7)),o&2){let i=n.$implicit,e=n.$index,t=d();C("topicData",i)("isInGroup",t.isUserInGroup(i.group.group_id))("isInExpiredGroup",t.isUserInExpiredGroup(i.group.group_id))("userGroupsCount",t.userGroupsCount)("index",e),l(),_(e===4&&t.recommendedTopics.length>0?1:-1);}}function cw(o,n){o&1&&(s(0,"app-lottie-loading"),g(1,"\u4E3B\u9898\u52A0\u8F7D\u4E2D..."),c());}function lw(o,n){if(o&1){let i=y();s(0,"div",19),f("click",function(){b(i);let t=d(4);return P(t.retryLoadTopic());}),g(1,"\u70B9\u51FB\u91CD\u8BD5"),c();}}function pw(o,n){o&1&&(s(0,"div",18),g(1,"\u6CA1\u6709\u66F4\u591A\u4E86"),c());}function dw(o,n){if(o&1&&h(0,lw,2,0,"div",17)(1,pw,2,0,"div",18),o&2){let i=d(3);_(i.topicError?0:1);}}function gw(o,n){if(o&1&&h(0,cw,2,0,"app-lottie-loading")(1,dw,2,1),o&2){let i=d(2);_(i.mainService.topicLoading?0:1);}}function uw(o,n){o&1&&(s(0,"div",16),M(1,"i",20),s(2,"span"),g(3,"\u8FD9\u91CC\u7A7A\u7A7A\u5982\u4E5F"),c()());}function mw(o,n){if(o&1&&h(0,gw,2,1)(1,uw,4,0,"div",16),o&2){let i=d();_(i.topicList.length>0?0:1);}}var fm=(()=>{let n=class n{set recommendedSectionRef(e){e&&this.observeRecommendSection(e.nativeElement);}constructor(e,t){this.mainService=e,this.groupListService=t,this.topicList=[],this.topicError=null,this.subscriptions=[],this.userGroupIds=new Set(),this.userExpiredGroupIds=new Set(),this.previousScrollTop=0,this.isInitialLoading=!0,this.skeletonArray=[1,2,3],this.userGroupsCount=0,this.recommendedTopics=[],this.recommendSectionObserver=null,this.isRecommendSectionVisible=!1;}ngOnInit(){this.initUserGroups(),this.mainService.getOrderRankingList(50),this.mainService.getPayRankingList(50),this.mainService.getLivenessRankingList(50),this.mainService.getRenewalRankingList(50),this.mainService.getDynamics("general","","",30);let e=this.mainService.topic$.subscribe(r=>{this.topicList=this.topicList.concat(r),this.topicError=null,this.isInitialLoading=!1;});this.subscriptions.push(e);let t=this.mainService.recommendationTopics$.subscribe(r=>{this.recommendedTopics=r;});this.subscriptions.push(t),this.mainService.getRecommendationTopics(4);}ngAfterViewInit(){setTimeout(()=>{this.initScrollObservable();},1e3);}initScrollObservable(){this.pageScroll$=At(window,"scroll").pipe(Dt(()=>window.scrollY||window.pageYOffset),ut(t=>{if(t>this.previousScrollTop){let r=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight);return this.previousScrollTop=t,t>=r-window.innerHeight-100;}else return this.previousScrollTop=t,!1;}),Ct(400));let e=this.pageScroll$.subscribe(()=>{if(this.mainService.topicLoading){let t=this.mainService.beginTime,r=this.mainService.endTime;this.mainService.getDynamics("general",t,r,30);}});this.subscriptions.push(e);}initUserGroups(){let e=this.groupListService.getAllGroups();if(e&&e.length>0)e.forEach(t=>{var r;this.userGroupIds.add(t.group_id),((r=t.user_specific.membership)==null?void 0:r.need_renew)===!0&&this.userExpiredGroupIds.add(t.group_id);}),this.userGroupsCount=this.userGroupIds.size;else{let t=this.groupListService.group$.subscribe(r=>{r&&r.groups&&(r.groups.forEach(a=>{var p;this.userGroupIds.add(a.group_id),((p=a.user_specific.membership)==null?void 0:p.need_renew)===!0&&this.userExpiredGroupIds.add(a.group_id);}),this.userGroupsCount=this.userGroupIds.size);});this.subscriptions.push(t),this.groupListService.getGroups();}}retryLoadTopic(){let e=this.mainService.beginTime,t=this.mainService.endTime;this.mainService.getDynamics("general",e,t,30);}ngOnDestroy(){this.recommendSectionObserver&&(this.recommendSectionObserver.disconnect(),this.recommendSectionObserver=null),this.subscriptions.forEach(e
146=>e.unsubscribe());}isUserInGroup(e){return this.userGroupIds.has(e);}isUserInExpiredGroup(e){return this.userExpiredGroupIds.has(e);}viewMoreTopics(){ne("recommend-topics");}onMoreButtonClick(){this.reportRecommendContentItemClick("More_Button"),this.viewMoreTopics();}onFindMorePremiumClick(){this.reportRecommendContentItemClick("FindMorePremium"),this.viewMoreTopics();}observeRecommendSection(e){this.recommendSectionObserver&&this.recommendSectionObserver.disconnect(),this.recommendSectionObserver=new IntersectionObserver(t=>{t.forEach(r=>{r.isIntersecting?this.isRecommendSectionVisible||(this.isRecommendSectionVisible=!0,this.reportRecommendSectionShow()):this.isRecommendSectionVisible=!1;});},{threshold:.1}),this.recommendSectionObserver.observe(e);}reportRecommendSectionShow(){$e("DWebDynamicViewEnter_RecommendContent_Show",{param1:String(this.userGroupsCount)});}reportRecommendContentItemClick(e){$e("DWebDynamicViewEnter_RecommendContent_ItemClick",{view:"DWebDynamicView",item_type:e,param1:String(this.userGroupsCount)}),localStorage.setItem("last_recommend_content_click",JSON.stringify({view:"DWebDynamicView",item_type:e,param1:String(this.userGroupsCount),timestamp:Date.now()}));}get recommendedTopicsLeft(){return this.recommendedTopics.filter((e,t)=>t%2===0);}get recommendedTopicsRight(){return this.recommendedTopics.filter((e,t)=>t%2!==0);}};n.ɵfac=function(t){return new(t||n)(O(oe),O(ce));},n.ɵcmp=F({type:n,selectors:[["app-topic-flow-global"]],viewQuery:function(t,r){if(t&1&&_e(nw,5),t&2){let a;ee(a=te())&&(r.recommendedSectionRef=a.first);}},standalone:!1,decls:11,vars:1,consts:[["recommendedSection",""],[1,"topic-flow-container"],[1,"flow-group-list-container"],[1,"global-content"],[3,"hidden"],[1,"btn-container"],[3,"topicData","isInGroup","isInExpiredGroup","userGroupsCount","index"],[1,"recommended-section"],[1,"section-header"],[1,"title",3,"click"],["src","assets_dweb/images/recommend_arrow_right.png","alt","",1,"arrow-icon"],[1,"view-more-btn",3,"click"],[1,"topic-cards-grid"],[1,"topic-cards-col"],[1,"topic-card-item"],[3,"topic","index","userGroupsCount"],[1,"no-data"],[1,"retry-bar"],[1,"no-more"],[1,"retry-bar",3,"click"],[1,"icon"]],template:function(t,r){t&1&&(s(0,"div",1)(1,"div",2),M(2,"app-group-list"),c(),s(3,"div",3),B(4,iw,1,1,"app-skeleton",4,Y),B(6,sw,2,6,null,null,Pl),h(8,mw,2,1),c(),s(9,"div",5),M(10,"app-help-btn"),c()()),t&2&&(l(4),N(r.skeletonArray),l(2),N(r.topicList),l(2),_(r.isInitialLoading?-1:8));},dependencies:[Ae,ve,xa,Os,ys,_m],styles:['.topic-flow-container[_ngcontent-%COMP%]{display:flex;margin:0 auto;width:1906px;padding-top:50px}.topic-flow-container[_ngcontent-%COMP%]   .flow-group-list-container[_ngcontent-%COMP%]{position:sticky;top:50px;flex-shrink:0;height:calc(100vh - 80px)}.topic-flow-container[_ngcontent-%COMP%]   .global-content[_ngcontent-%COMP%]{flex:1;min-width:0;overflow:hidden;margin-top:10px;margin-left:10px;padding:0}.topic-flow-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]{height:600px;background:var(--dweb-bg-panel);display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--dweb-text-placeholder);border-bottom-right-radius:4px;border-bottom-left-radius:4px}.topic-flow-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:87px;height:71px;background-image:url("./media/[email protected]");background-position:-87px -929px;margin-bottom:15px}.topic-flow-container[_ngcontent-%COMP%]   .retry-bar[_ngcontent-%COMP%]{cursor:pointer;padding:20px 0;text-align:center;font-size:14px;color:var(--dweb-text-faint, #C5C6CB)}.topic-flow-container[_ngcontent-%COMP%]   .no-more[_ngcontent-%COMP%]{padding:20px 0;text-align:center;font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}.topic-flow-container[_ngcontent-%COMP%]   .recommended-section[_ngcontent-%COMP%]{margin:24px 0 16px}.topic-flow-container[_ngcontent-%COMP%]   .recommended-section[_ngcontent-%COMP%]   .section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin:0 16px 20px}.topic-flow-container[_ngcontent-%COMP%]   .recommended-section[_ngcontent-%COMP%]   .section-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:14px;font-weight:700;color:var(--dweb-text-primary);display:flex;align-items:center;cursor:pointer}.topic-flow-container[_ngcontent-%COMP%]   .recommended-section[_ngcontent-%COMP%]   .section-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .arrow-icon[_ngcontent-%COMP%]{width:12px;height:12px;margin-left:6px}.topic-flow-container[_ngcontent-%COMP%]   .recommended-section[_ngcontent-%COMP%]   .section-header[_ngcontent-%COMP%]   .view-more-btn[_ngcontent-%COMP%]{padding:5px 10px;background:var(--dweb-text-secondary);color:#fff;border:none;border-radius:14px;font-size:12px;cursor:pointer;transition:background .2s}.topic-flow-container[_ngcontent-%COMP%]   .recommended-section[_ngcontent-%COMP%]   .section-header[_ngcontent-%COMP%]   .view-more-btn[_ngcontent-%COMP%]:hover{background:var(--dweb-text-primary)}.topic-flow-container[_ngcontent-%COMP%]   .recommended-section[_ngcontent-%COMP%]   .to
146pic-cards-grid[_ngcontent-%COMP%]{display:flex;align-items:stretch}.topic-flow-container[_ngcontent-%COMP%]   .recommended-section[_ngcontent-%COMP%]   .topic-cards-grid[_ngcontent-%COMP%]   .topic-cards-col[_ngcontent-%COMP%]{flex:1;min-width:0;display:flex;flex-direction:column}.topic-flow-container[_ngcontent-%COMP%]   .recommended-section[_ngcontent-%COMP%]   .topic-cards-grid[_ngcontent-%COMP%]   .topic-cards-col[_ngcontent-%COMP%]:not(:last-child){margin-right:8px}.topic-flow-container[_ngcontent-%COMP%]   .recommended-section[_ngcontent-%COMP%]   .topic-cards-grid[_ngcontent-%COMP%]   .topic-cards-col[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-bottom:8px}.topic-flow-container[_ngcontent-%COMP%]   .recommended-section[_ngcontent-%COMP%]   .topic-cards-grid[_ngcontent-%COMP%]   .topic-cards-col[_ngcontent-%COMP%]   .topic-card-item[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column}.topic-flow-container[_ngcontent-%COMP%]   .btn-container[_ngcontent-%COMP%]{position:fixed;bottom:110px;margin-left:1916px}.topic-flow-container[_ngcontent-%COMP%]:after{content:"";flex-shrink:0;width:343px}@media screen and (max-width:2000px){.topic-flow-container[_ngcontent-%COMP%]{max-width:1526px;width:auto;padding-left:48px;padding-right:48px;margin:auto}.topic-flow-container[_ngcontent-%COMP%]:after{width:303px}.topic-flow-container[_ngcontent-%COMP%]   .btn-container[_ngcontent-%COMP%]{margin-left:1536px}}@media screen and (max-width:1220px){.topic-flow-container[_ngcontent-%COMP%]{width:auto;margin:0 24px;padding-left:0;padding-right:0}.topic-flow-container[_ngcontent-%COMP%]   .global-content[_ngcontent-%COMP%]{width:auto}.topic-flow-container[_ngcontent-%COMP%]:after{display:none}.topic-flow-container[_ngcontent-%COMP%]   .btn-container[_ngcontent-%COMP%]{display:none}}@media screen and (max-width:900px){.topic-flow-container[_ngcontent-%COMP%]{margin:0}.topic-flow-container[_ngcontent-%COMP%]   .flow-group-list-container[_ngcontent-%COMP%]{display:none}}']});let o=n;return o;})();var ks=(()=>{let n=class n{constructor(){this._filePreview$=new U(),this.filePreview$=this._filePreview$.asObservable();}showPreview(e){this._filePreview$.next(e);}};n.ɵfac=function(t){return new(t||n)();},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var hw=["textRef"],_w=o=>({"score-selected":o}),fw=o=>({selected:o}),Cw=o=>({"auto-height":o}),xw=o=>({"can-submit":o});function vw(o,n){if(o&1){let i=y();s(0,"span",10),f("click",function(){let t=b(i).$implicit,r=d();return P(r.selectScore(t));}),g(1),c();}if(o&2){let i=n.$implicit,e=d();C("ngClass",R(2,_w,i===e.selectedScore)),l(),A(i);}}function bw(o,n){if(o&1){let i=y();s(0,"div",16),f("click",function(){b(i);let t=d(2);return P(t.reset());}),g(1,"\u91CD\u65B0\u9009\u62E9"),c();}}function Pw(o,n){if(o&1){let i=y();s(0,"div",18),f("click",function(){let t=b(i).$implicit,r=d(3);return P(r.selectType(t));}),g(1),s(2,"span"),g(3,">"),c()();}if(o&2){let i=n.$implicit;l(),V(" ",i.name," ");}}function Mw(o,n){if(o&1&&(s(0,"div",14),B(1,Pw,4,1,"div",17,Y),c()),o&2){let i=d(2);l(),N(i.categorys);}}function Ow(o,n){if(o&1){let i=y();s(0,"div",20),f("click",function(){let t=b(i),r=t.$implicit,a=t.$index,p=d(3);return P(p.selectOption({option:r,index:a}));}),M(1,"i",21),s(2,"span"),g(3),c()();}if(o&2){let i=n.$implicit,e=n.$index,t=d(3);l(),C("ngClass",R(2,fw,t.selectedIndex===e)),l(2),A(i);}}function ww(o,n){if(o&1&&(s(0,"div",15),B(1,Ow,4,4,"div",19,Y),c()),o&2){let i=d(2);l(),N(i.selectedCategory);}}function yw(o,n){if(o&1&&(s(0,"div",7)(1,"div",11)(2,"div",12),g(3,"\u4F60\u5BF9\u54EA\u65B9\u9762\u6BD4\u8F83\u5728\u610F\uFF1F"),c(),h(4,bw,2,0,"div",13),c(),h(5,Mw,3,0,"div",14)(6,ww,3,0,"div",15),c()),o&2){let i=d();l(4),_(i.selectedCategory||i.isOther?4:-1),l(),_(!i.selectedCategory||i.isOther?5:6);}}function kw(o,n){if(o&1){let i=y();s(0,"textarea",22,0),f("input",function(){b(i);let t=d();return P(t.textChange());}),On("ngModelChange",function(t){b(i);let r=d();return Mn(r.suggestion,t)||(r.suggestion=t),P(t);}),c();}if(o&2){let i=d();C("ngClass",R(2,Cw,i.isAutoHeight)),Pn("ngModel",i.suggestion);}}function Sw(o,n){if(o&1){let i=y();s(0,"div",23),f("click",function(){b(i);let t=d();return P(t.submit());}),g(1," \u63D0\u4EA4 "),c();}if(o&2){let i=d();C("ngClass",R(1,xw,i.selectedIndex!==-1||i.suggestion));}}var Ss=(()=>{let n=class n{constructor(){this.handleCloseEmitter=new H(),this.textVisible=!1,this.categoryVisible=!1,this.submitVisible=!1,this.optionSelected=!1,this.isAutoHeight=!1,this.suggestion="",this.selectedScore=0,this.selectedIndex=-1,this.selectedCategory=null,this.isOther=!1,this.currentCategory=null,this.categorys=[{type:"create",name:"\u521B\u5EFA\u661F\u7403",select:["\u4E0D\u77E5\u9053\u5728\u54EA\u521B\u5EFA\u661F\u7403","\u4E0D\u77E5\u9053\u600E\u4E48\u8FD0\u8425","\u96BE\u4EE5\u901A\u8FC7\u8BD5\u8FD0\u8425"]},{type:"join",name:"\u52A0\u5165\u661F\u7403",select:["\u65E0\u6CD5\u52A0\u5165\u661F\u7403","\u4E0D\u77E5\u9053\u5728\u54EA\u91CC\u52A0\u661F\u7403","\u6CA1\u6709\u6211\u60F3\u8981\u7684\u661F\u7403"]},{type:"publish",name:"\u53D1\u5E03\u5185\u5BB9",select:["\u7F16\u8F91\u5668\u4E0D\u597D\u7528","\u5BA1\u6838\u4E0D\u53CA\u65F6","\u4E0A\u4F20\u5185\u5BB9\u6162"]},{type:"check",name:"\u67E5\u770B\u5185\u5BB9",select:["\u5185\u5BB9\u592A\u5C11","\u641C\u7D22\u5185\u5BB9\u4E0D\u51C6\u786E","\u5386\u53F2\u5185\u5BB9\u67E
1465\u770B\u4E0D\u65B9\u4FBF"]},{type:"service",name:"\u661F\u7403\u670D\u52A1",select:["\u6CA1\u6709\u6211\u60F3\u8981\u7684\u5185\u5BB9","\u661F\u4E3B\u66F4\u65B0\u4E0D\u53CA\u65F6","\u9000\u6B3E\u4E0D\u65B9\u4FBF","\u5BA2\u670D\u8054\u7CFB\u4E0D\u4E0A"]},{type:"other",name:"\u5176\u4ED6"}],this.http=Q(W),this.message=Q(le),this.cd=Q(on);}getScore(){return Array.from({length:10},(e,t)=>t+1);}ngOnInit(){}textChange(){this.cd.detectChanges(),this.suggestion=this.suggestion.length>=500?this.suggestion.substring(0,500):this.suggestion;let e=this.textRef.nativeElement.value,t=this.textRef.nativeElement.scrollHeight,r=this.textRef.nativeElement.clientHeight;this.suggestion||(this.textRef.nativeElement.style.height="39px"),t>r&&(this.textRef.nativeElement.style.height=r<=88?`${t}px`:"88px"),this.isAutoHeight=/\n/.test(this.suggestion);}selectScore(e){return ye(this,null,function*(){this.selectedScore=e,e<=6?(this.categoryVisible=!0,this.submitVisible=!0):yield this.submit();});}selectType(e){this.isOther=e.type==="other",this.currentCategory=e,this.selectedCategory=this.isOther?null:e.select;}selectOption(e){this.optionSelected=!this.optionSelected,this.selectedIndex=e.index;}reset(){this.selectedCategory=null,this.isOther=!1,this.selectedIndex=-1;}submit(){return ye(this,null,function*(){let e=this.selectedScore>6?"":`${this.currentCategory.name}#${this.selectedIndex!==-1?this.currentCategory.select[this.selectedIndex]:this.isOther?"\u7528\u6237\u81EA\u5DF1\u586B":"\u81EA\u5B9A\u4E49"}#${this.suggestion}`,t={score:this.selectedScore,suggestion:e};(yield this.http.post("nps",{req_data:t}).toPromise()).succeeded?(this.message.info({content:"\u5DF2\u63D0\u4EA4",type:"success"}),this.handleClose()):this.message.info({content:"\u63D0\u4EA4\u5931\u8D25",type:"error"});});}handleClose(){this.handleCloseEmitter.emit("close");}};n.ɵfac=function(t){return new(t||n)();},n.ɵcmp=F({type:n,selectors:[["app-nps-dialog"]],viewQuery:function(t,r){if(t&1&&_e(hw,5),t&2){let a;ee(a=te())&&(r.textRef=a.first);}},outputs:{handleCloseEmitter:"handle-close"},decls:15,vars:3,consts:[["textRef",""],[1,"nps-dialog"],[1,"top"],[1,"close-btn",3,"click"],[1,"rank-tips"],[1,"score"],[1,"score-item",3,"ngClass"],[1,"category"],["placeholder","\u6216\u8005\u544A\u8BC9\u6211\u4EEC\u4F60\u9047\u5230\u7684\u5176\u4ED6\u95EE\u9898\u2026",3,"ngClass","ngModel"],[1,"submit",3,"ngClass"],[1,"score-item",3,"click","ngClass"],[1,"tips"],[1,"text"],[1,"reset"],[1,"types"],[1,"sub-categorization"],[1,"reset",3,"click"],[1,"name"],[1,"name",3,"click"],[1,"options"],[1,"options",3,"click"],[3,"ngClass"],["placeholder","\u6216\u8005\u544A\u8BC9\u6211\u4EEC\u4F60\u9047\u5230\u7684\u5176\u4ED6\u95EE\u9898\u2026",3,"input","ngModelChange","ngClass","ngModel"],[1,"submit",3,"click","ngClass"]],template:function(t,r){t&1&&(s(0,"div",1)(1,"div",2),g(2," \u4F60\u613F\u4E0D\u613F\u610F\u5411\u670B\u53CB\u63A8\u8350\u77E5\u8BC6\u661F\u7403\u7F51\u9875\u7248\uFF1F "),s(3,"i",3),f("click",function(){return r.handleClose();}),c()(),s(4,"div",4)(5,"span"),g(6,"\u4E0D\u63A8\u8350"),c(),s(7,"span"),g(8,"\u5341\u5206\u63A8\u8350"),c()(),s(9,"div",5),B(10,vw,2,4,"span",6,Y),c(),h(12,yw,7,2,"div",7),h(13,kw,2,4,"textarea",8),h(14,Sw,2,3,"div",9),c()),t&2&&(l(10),N(r.getScore()),l(2),_(r.categoryVisible?12:-1),l(),_(r.selectedCategory||r.isOther?13:-1),l(),_(r.submitVisible?14:-1));},dependencies:[Zi,K,pa,yn,kn,Sn],styles:['.nps-dialog[_ngcontent-%COMP%]{box-sizing:border-box;position:fixed;bottom:60px;right:18px;padding:24px;width:657px;z-index:20;background:linear-gradient(var(--dweb-bg-panel-2) 0%,var(--dweb-bg-panel) 100%);border-radius:16px;border:1px solid rgba(0,0,0,.08)}.nps-dialog[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]{position:absolute;top:20px;right:24px;display:block;cursor:pointer;height:10px;width:10px;background-image:url("./media/[email protected]");background-position:-357px -197px}.nps-dialog[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]{font-weight:500;font-size:16px;color:var(--dweb-text-primary);line-height:22px;text-align:left}.nps-dialog[_ngcontent-%COMP%]   .rank-tips[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font-size:14px;margin:12px 0 16px;color:var(--dweb-text-secondary);line-height:20px}.nps-dialog[_ngcontent-%COMP%]   .score[_ngcontent-%COMP%]{display:flex;align-items:center;border:1px solid rgba(0,0,0,.08);border-radius:8px;overflow:hidden;margin-bottom:16px}.nps-dialog[_ngcontent-%COMP%]   .score[_ngcontent-%COMP%]   .score-item[_ngcontent-%COMP%]{width:60px;height:48px;line-height:48px;text-align:center;background:var(--dweb-bg-panel);font-weight:500;font-size:16px;color:var(--dweb-text-primary);border-right:1px solid rgba(0,0,0,.08);cursor:pointer}.nps-dialog[_ngcontent-%COMP%]   .score[_ngcontent-%COMP%]   .score-item[_ngcontent-%COMP%]:hover{background:#16b99814}.nps-dialog[_ngcontent-%COMP%]   .score[_ngcontent-%COMP%]   .score-item[_ngcontent-%COMP%]:last-of-type{border-right:0}.nps-dialog[_ngcontent-%COMP%]   .score[_ngcontent-%COMP%]   .score-item.score-selected[_ngcontent-%COMP%]{background:#16b99899}.nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .tips[_ngcontent-%COMP%]{margin-bottom:16px;display:flex;align-items:center;justify-content:space-between}.nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .tips[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-weight:500;font-size:16px;color:var(--dweb-text-primary)}.nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .tips[_ngcontent-%COMP%]   .reset[_ngcontent-%COMP%]{cursor:pointer;font-size:14px;color:var(--dweb-info)}.nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .types[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .types[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100px;height:37px;line-height:37px;padding:0 12px;color:var(--dweb-text-primary);box-sizing:border-box;font-weight:500;background:var(--dweb-bg-panel);border-radius:8px;border:1px solid rgba(0,0,0,.08);cursor:pointer;margin-right:16px}.nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .types[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--dweb-text-faint)}.nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .types[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]:hover{background:#16b99814}.nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .types[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]:last-of-type{margin-top:12px}.nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .sub-categorization[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .sub-categorization[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]{height:37px;padding:0 16px 0 12px;display:flex;align-items:center;background:var(--dweb-bg-panel);border-radius:8px;margin-right:16px;border:1px solid rgba(0,0,0,.08);cursor:pointer}.nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .sub-categorization[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]:nth-of-type(4){margin-top:12px}.nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .sub-categorization[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{background-image:url("./media/[email protected]");background-position:-671px -314px;width:16px;height:16px;margin-right:10px}.nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .sub-categorization[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   i.selected[_ngcontent-%COMP%]{background-position:-671px -354px}.nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .sub-categorization[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px;color:var(--dweb-text-secondary)}.nps-dialog[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{margin-top:12px;height:39px;max-height:88px;width:100%;background:var(--dweb-bg-panel);border-radius:8px;border:1px solid rgba(0,0,0,.08);padding:8px 12px;resize:none;box-sizing:border-box;outline:none;color:var(--dweb-text-secondary);overflow:auto}.nps-dialog[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::placeholder{font-size:14px;font-family:PingFangSC-Regular,PingFang SC;color:var(--dweb-text-muted);line-height:20px}.nps-dialog[_ngcontent-%COMP%]   .submit[_ngcontent-%COMP%]{width:85px;height:40px;line-height:40px;text-align:center;background:var(--dweb-disabled);box-shadow:0 1px 2px #0000000d;border-radius:8px;font-weight:500;font-size:15px;color:#fff;margin-left:auto;margin-top:16px;cursor:pointer;pointer-events:none}.nps-dialog[_ngcontent-%COMP%]   .submit.can-submit[_ngcontent-%COMP%]{pointer-events:visible;background:var(--dweb-brand)}html[data-theme=dark][_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]{background:linear-gradient(var(--dweb-bg-panel-2) 0%,var(--dweb-bg-panel) 100%);border-color:var(--dweb-border-strong);
146box-shadow:0 12px 36px var(--dweb-shadow)}html[data-theme=dark][_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .score[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .score[_ngcontent-%COMP%], html[data-theme=dark][_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .types[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .types[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%], html[data-theme=dark][_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .sub-categorization[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .sub-categorization[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%], html[data-theme=dark][_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{border-color:var(--dweb-border)}html[data-theme=dark][_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .score[_ngcontent-%COMP%]   .score-item[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .score[_ngcontent-%COMP%]   .score-item[_ngcontent-%COMP%]{border-right-color:var(--dweb-border)}html[data-theme=dark][_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .score[_ngcontent-%COMP%]   .score-item[_ngcontent-%COMP%]:hover, html[data-theme=dark]   [_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .score[_ngcontent-%COMP%]   .score-item[_ngcontent-%COMP%]:hover{background:var(--dweb-bg-brand-hover-soft)}html[data-theme=dark][_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .score[_ngcontent-%COMP%]   .score-item.score-selected[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .score[_ngcontent-%COMP%]   .score-item.score-selected[_ngcontent-%COMP%]{background:var(--dweb-bg-brand-tint);box-shadow:inset 0 0 0 1px var(--dweb-border-brand-active)}html[data-theme=dark][_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .types[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]:hover, html[data-theme=dark]   [_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .types[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]:hover, html[data-theme=dark][_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .sub-categorization[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]:hover, html[data-theme=dark]   [_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   .sub-categorization[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]:hover{background:var(--dweb-bg-brand-hover-soft)}html[data-theme=dark][_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .submit[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .submit[_ngcontent-%COMP%]{box-shadow:0 1px 2px var(--dweb-shadow-soft)}html[data-theme=dark][_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .nps-dialog[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]{filter:brightness(0) invert(1);opacity:.65}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.close-btn[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var Ml=xi(wo());var xm=o=>({"margin-bottom":o}),Ew=(o,n)=>({url:o,type:n}),Dw=(o,n)=>({"no-arrow":o,category:n}),Iw=o=>({"fold-text":o});function Fw(o,n){o&1&&(s(0,"div",1)(1,"div",6)(2,"div",7),M(3,"div",8),c()(),s(4,"div",3),M(5,"div",9),c()());}function Aw(o,n){if(o&1&&(s(0,"div",2)(1,"div",6),M(2,"img",10),c(),M(3,"div",11),s(4,"div",12)(5,"div",13),g(6),c(),s(7,"div",14),g(8),$(9,"transformDays"),c()(),M(10,"img",15),c()),o&2){let i=d();l(2),C("transform-image-src",qe(6,Ew,i.group.background_url,i.group.type)),l(4),A(i.group==null?null:i.group.owner.name),l(2),A(Z(9,4,i.group==null?null:i.group.create_time)),l(2),C("src",i.group!=null&&i.group.owner.avatar_url?i.group.owner.avatar_url:i.defaultImageUrl,se);}}function Vw(o,n){if(o&1){let i=y();s(0,"div",16),f("click",function(){b(i);let t=d();return P(t.goRankingDetails());}
146),s(1,"div",17),M(2,"i",18),c(),s(3,"span",19),g(4),c()();}if(o&2){let i=d();C("ngClass",qe(4,Dw,(i.rankingData==null?null:i.rankingData.type)==="newstar",(i.rankingData==null?null:i.rankingData.type)==="category"))("ngStyle",R(7,xm,i.group!=null&&i.group.description?"12px":"0px")),l(2),C("ngClass","icon-"+i.rankingData.type),l(2),A(i.rankingData.text);}}function Rw(o,n){if(o&1){let i=y();s(0,"div",20)(1,"div",21),g(2),c()(),s(3,"a",22),f("click",function(){b(i);let t=d();return P(t.foldText());}),g(4),c();}if(o&2){let i=d();C("ngClass",R(3,Iw,i.isFolded)),l(2),A(i.group.description),l(2),A(i.foldBtnText);}}var xn=9999,vm=(()=>{let n=class n{get rankingData(){let e=[this.orderRankingNo,this.payRankingNo,this.livenessRankingNo];if(e.some(r=>r!==xn)){let r=Math.min(...e.filter(a=>a!==xn));if(r===this.orderRankingNo)return{type:"order",text:`\u672C\u5468\u7545\u9500\u699C\u7B2C ${this.orderRankingNo} \u540D`};if(r===this.payRankingNo)return{type:"pay",text:`\u672C\u5468\u5B9E\u529B\u699C\u7B2C ${this.payRankingNo} \u540D`};if(r===this.livenessRankingNo)return{type:"liveness",text:`\u6D3B\u8DC3\u699C\u7B2C ${this.livenessRankingNo} \u540D`};}else{if(this.newStarRankingNo!==xn)return{type:"newstar",text:`\u672C\u6708\u65B0\u661F\u699C\u7B2C ${this.newStarRankingNo} \u540D`};if(this.categoryRankingInfo)return{type:"category",text:`${this.categoryRankingInfo.category_name}\u70ED\u9500\u699C \xB7 \u7B2C ${this.categoryRankingInfo.ranking} \u540D`};}}constructor(e,t,r,a){this.groupListService=e,this.mainService=t,this.el=r,this.http=a,this.defaultImageUrl=an,this.isFolded=!0,this.foldBtnText="\u5C55\u5F00",this.orderRankingNo=xn,this.payRankingNo=xn,this.livenessRankingNo=xn,this.newStarRankingNo=xn,this.categoryRankingInfo=null,this.currentGroupId=null;}ngOnInit(){vi([this.groupListService.selectedGroup$,this.mainService.orderRankingList$,this.mainService.payRankingList$,this.mainService.livenessRankingList$,this.mainService.newStarRankingList$]).subscribe(([e,t,r,a,p])=>{this.group=e,this.isFolded=!0,this.foldBtnText="\u5C55\u5F00",this.currentGroupId!==e.group_id&&(this.currentGroupId=e.group_id,this.categoryRankingInfo=null);let m=t.groups,v=r.groups,x=a.groups,w=p.groups,k=m.findIndex(D=>D.uid===String(e.group_id))+1;this.orderRankingNo=k>0?k:xn;let S=v.findIndex(D=>D.uid===String(e.group_id))+1;this.payRankingNo=S>0?S:xn;let E=x.findIndex(D=>D.uid===String(e.group_id))+1;this.livenessRankingNo=E>0?E:xn;let I=w.findIndex(D=>D.uid===String(e.group_id))+1;this.newStarRankingNo=I>0?I:xn,![this.orderRankingNo,this.payRankingNo,this.livenessRankingNo].some(D=>D!==xn)&&this.newStarRankingNo===xn&&this.fetchCategoryRankingInfo(e.group_id),clearTimeout(this.foldTimer),this.foldTimer=setTimeout(()=>{let D=this.el.nativeElement.querySelector(".desc"),L=this.el.nativeElement.querySelector(".fold-btn");L&&D&&(L.style.display=D.scrollHeight>D.clientHeight?"block":"none");});});}foldText(){this.foldBtnText==="\u5C55\u5F00"?(this.isFolded=!1,this.foldBtnText="\u6536\u8D77"):(this.isFolded=!0,this.foldBtnText="\u5C55\u5F00");}goRankingDetails(){var e,t;((e=this.rankingData)==null?void 0:e.type)!=="newstar"&&(((t=this.rankingData)==null?void 0:t.type)==="category"&&this.categoryRankingInfo?ne(`/rankings/hot/${this.categoryRankingInfo.category_uid}`):ne("/rankings/"+this.rankingData.type));}fetchCategoryRankingInfo(e){this.categoryRankingInfo=null,this.http.get(j.getGroupRankingStatistics(String(e))).subscribe(t=>{this.currentGroupId===e&&t.succeeded&&t.resp_data.category_ranking_info&&(this.categoryRankingInfo=t.resp_data.category_ranking_info);});}};n.ɵfac=function(t){return new(t||n)(O(ce),O(oe),O(Re),O(W));},n.ɵcmp=F({type:n,selectors:[["app-group-info"]],standalone:!1,decls:8,vars:8,consts:[[1,"group-info-container"],[1,"group-info-skeleton"],[1,"group-info"],[1,"group-text"],[1,"name",3,"ngStyle"],[1,"ranking-badge",3,"ngClass","ngStyle"],[1,"group-image"],[1,"group-owner"],[1,"avatar"],[1,"group-name"],[3,"transform-image-src"],[1,"shadow"],[1,"owner-info"],[1,"name"],[1,"date"],[1,"avatar",3,"src"],[1,"ranking-badge",3,"click","ngClass","ngStyle"],[1,"icon-wrapper"],[1,"icon",3,"ngClass"],[1,"text"],[1,"desc-wrap",3,"ngClass"],[1,"desc"],[1,"fold-btn",3,"click"]],template:function(t,r){t&1&&(s(0,"div",0),h(1,Fw,6,0,"div",1),h(2,Aw,11,9,"div",2),s(3,"div",3)(4,"div",4),g(5),c(),h(6,Vw,5,9,"div",5),h(7,Rw,5,5),c()()),t&2&&(l(),_(r.group?-1:1),l(),_(r.group?2:-1),l(2),C("ngStyle",R(6,xm,r.group!=null&&r.group.description||r.rankingData!=null&&r.rankingData.text?"12px":"0px")),l(),V(" ",r.group==null?null:r.group.name," "),l(),_(r.rankingData!=null&&r.rankingData.text?6:-1),l(),_(r.group!=null&&r.group.description?7:-1));},dependencies:[K,De,Wt,td],styles:['.group-info-container[_ngcontent-%COMP%]{border-radius:4px;overflow:hidden}.group-info-container[_ngcontent-%COMP%]   .group-info-skeleton[_ngcontent-%COMP%]   .group-image[_ngcontent-%COMP%]{position:relative;height:200px;background:var(--dweb-bg-subtle, #F5F6F7)}.group-info-container[_ngcontent-%COMP%]   .group-info-skeleton[_ngcontent-%COMP%]   .group-owner[_ngcontent-%COMP%]{position:absolute;bottom:-30px;right:20px}.group-info-container[_ngcontent-%COMP%]   .group-info-skeleton[_ngcontent-%COMP%]   .group-owner[_ngcontent-%COMP%]   .avatar[_ng
146content-%COMP%]{width:60px;height:60px;border-radius:50%;box-shadow:0 2px 8px #0000001a;background:var(--dweb-bg-subtle, #F5F6F7)}.group-info-container[_ngcontent-%COMP%]   .group-info-skeleton[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]{padding:40px 20px 20px;background:var(--dweb-bg-panel, #FFFFFF)}.group-info-container[_ngcontent-%COMP%]   .group-info-skeleton[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .group-name[_ngcontent-%COMP%]{width:0px;height:14px;background:var(--dweb-bg-canvas, #F0F3F8)}.group-info-container[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]{position:relative;height:200px}.group-info-container[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .group-image[_ngcontent-%COMP%]{background:var(--dweb-bg-subtle, #F5F6F7);height:200px}.group-info-container[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .group-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:200px;object-fit:cover}.group-info-container[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .shadow[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%;height:72px;background-image:linear-gradient(-180deg,#0000 4%,#0009 98%)}.group-info-container[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{position:absolute;bottom:-31px;right:20px;width:60px;height:60px;border-radius:50%;border:3px solid #FFFFFF;box-shadow:0 2px 8px #0000001a;background-color:var(--dweb-bg-subtle, #F5F6F7)}.group-info-container[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .owner-info[_ngcontent-%COMP%]{position:absolute;bottom:-31px;left:20px;width:180px;margin-right:20px}.group-info-container[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .owner-info[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{height:31px;line-height:31px}.group-info-container[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .owner-info[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-family:PingFangSC-Medium;font-size:16px;color:#fff}.group-info-container[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .owner-info[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{font-size:12px;color:var(--dweb-text-muted, #8B8E9D)}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]{padding:40px 20px 20px;background:var(--dweb-bg-panel, #FFFFFF);overflow:hidden;color:var(--dweb-text-secondary, #5A5C66)}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-family:PingFangSC-Medium;font-size:20px;color:var(--dweb-text-primary, #2F3034);width:100%;overflow:hidden}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;background:linear-gradient(90deg,#ff574c,#ffa870);border-radius:4px;padding-right:6px;margin-top:-4px;cursor:pointer}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge.category[_ngcontent-%COMP%]{background:#f7f3f2;border-radius:4px}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge.category[_ngcontent-%COMP%]   .icon-wrapper[_ngcontent-%COMP%]{border:none;width:26px;height:24px;margin-right:5px;border-radius:4px 0 0 4px}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge.category[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:26px;height:24px}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge.category[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{color:#795a4f}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge.category[_ngcontent-%COMP%]:after{background:url("./media/groupinfo_ranking_arrow_brown-ZE6VGH3P.png") no-repeat center center;background-size:cover}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge.no-arrow[_ngcontent-%COMP%]{cursor:default}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge.no-arrow[_ngcontent-%COMP%]:after{display:none}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge[_ngcontent-%COMP%]   .icon-wrapper[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:26px;height:24px;margin-right:5px;background:linear-gradient(90deg,#fff6dc,#ffe3d1);border-radius:4px 0 0 4px;border:1px solid #FF6252;flex:0 0 auto}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{display:inline-block;width:16px;height:16px}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge[_ngcontent-%COMP%]   .icon.icon-pay[_ngcontent-%COMP%]{background:url("./media/groupinfo_ranking_pay-WEHX6NFN.png") no-repeat center center;background-size:contain}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge[_ngcontent-%COMP%]   .icon.icon-order[_ngcontent-%COMP%]{background:url("./media/groupinfo_ranking_order-GCF4RYAB.png") no-repeat center center;background-size:contain}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge[_ngcontent-%COMP%]   .icon.icon-liveness[_ngcontent-%COMP%]{background:url("./media/groupinfo_ranking_liveness-GEWWT75P.png") no-repeat center center;background-size:contain}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge[_ngcontent-%COMP%]   .icon.icon-newstar[_ng
146content-%COMP%]{background:url("./media/groupinfo_ranking_newstar-EQOZCDDN.png") no-repeat center center;background-size:contain}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge[_ngcontent-%COMP%]   .icon.icon-category[_ngcontent-%COMP%]{background:url("./media/groupinfo_ranking_hot-Z26UNQ3L.png") no-repeat center center;background-size:contain}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:13px;color:#fff;white-space:nowrap}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge[_ngcontent-%COMP%]:after{content:"";display:inline-block;width:12px;height:12px;margin-left:3px;background:url("./media/groupinfo_ranking_arrow-43RN5VV5.png") no-repeat center center;background-size:cover}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .desc-wrap[_ngcontent-%COMP%]{position:relative;line-height:21px}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .desc-wrap[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{white-space:pre-wrap;word-wrap:break-word;text-align:justify}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .fold-btn[_ngcontent-%COMP%]{display:none;color:var(--dweb-info, #567895);cursor:pointer;margin-top:4px}.group-info-container[_ngcontent-%COMP%]   .group-text[_ngcontent-%COMP%]   .fold-text[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{display:-webkit-box;line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}html[data-theme=dark][_nghost-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge.category[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge.category[_ngcontent-%COMP%]{background:var(--dweb-bg-warm-pale)}html[data-theme=dark][_nghost-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge.category[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .group-text[_ngcontent-%COMP%]   .ranking-badge.category[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{color:var(--dweb-copper)}']});let o=n;return o;})();function Bw(o,n){if(o&1){let i=y();s(0,"div",1),f("click",function(){b(i);let t=d();return P(t.toAllFiles());}),s(1,"div",2)(2,"div",3)(3,"div",4),g(4,"\u661F\u7403\u6587\u4EF6"),c()(),s(5,"div",5),g(6),M(7,"i",6),c()(),s(8,"div",7),g(9,"\u661F\u7403\u5185\u4E0A\u4F20\u7684\u6587\u4EF6\u96C6\u5408\uFF5E"),c()();}if(o&2){let i=d();l(6),A(i.filesAmount);}}var bm=(()=>{let n=class n{constructor(e,t,r,a){this.groupFile=e,this.router=t,this.groupListService=r,this.indexService=a,this.previewVisible=!1;}ngOnInit(){}watchClose(e){this.previewVisible=!1;}showFilePreview(e){this.groupFile.showPreview(e);}toAllFiles(){let e=this.groupListService.getSelectedGroup();this.indexService.setTargetGroup(e),this.router.navigate(["files"]);}};n.ɵfac=function(t){return new(t||n)(O(ks),O(ue),O(ce),O(q));},n.ɵcmp=F({type:n,selectors:[["app-group-file"]],inputs:{previewFiles:"previewFiles",filesAmount:"filesAmount"},standalone:!1,decls:1,vars:1,consts:[[1,"group-file-container"],[1,"group-file-container",3,"click"],[1,"head"],[1,"desc"],[1,"text"],[1,"amount"],[1,"icon"],[1,"info"]],template:function(t,r){t&1&&h(0,Bw,10,1,"div",0),t&2&&_(r.filesAmount>0?0:-1);},styles:['.group-file-container[_ngcontent-%COMP%]{width:280px;background:var(--dweb-bg-panel, #FFFFFF);padding:15px 20px;box-sizing:border-box;cursor:pointer}.group-file-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-family:PingFangSC-Medium;font-size:14px}.group-file-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{display:flex;color:var(--dweb-text-faint, #C5C6CB);align-items:center}.group-file-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]");background-position:-143px -496px;width:14px;height:15px;margin-right:6px}.group-file-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-weight:500;color:var(--dweb-text-primary)}.group-file-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .amount[_ng
146content-%COMP%]{color:var(--dweb-info, #567895);font-size:12px}.group-file-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .amount[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{display:inline-block;margin-left:5px;width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-297px -197px}.group-file-container[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{font-size:12px;color:var(--dweb-text-faint, #C5C6CB);margin-top:5px}.group-file-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{padding-top:5px}.group-file-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{color:var(--dweb-text-secondary, #5A5C66);margin-top:10px;display:flex;cursor:pointer}.group-file-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .file-icon[_ngcontent-%COMP%]{width:26px;height:27px;margin-right:10px;background-image:url("./media/[email protected]");background-position:-101px -677px}.group-file-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .file-name[_ngcontent-%COMP%]{height:26px;line-height:26px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:222px}.group-file-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:hover{background-color:var(--dweb-bg-mint)}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.group-file-container[_ngcontent-%COMP%]   .file-icon[_ngcontent-%COMP%]:not(.file-html):not(.file-other), .group-file-container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-size:1024px 1057px;background-image:url("./media/[email protected]")!important}}@media screen and (max-width:2000px){.group-file-container[_ngcontent-%COMP%]{width:250px}}']});let o=n;return o;})();var Pm=(()=>{let n=class n{constructor(){this.digestTopicTags=[];}};n.ɵfac=function(t){return new(t||n)();},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();function Gw(o,n){if(o&1){let i=y();s(0,"div",1),f("click",function(){b(i);let t=d();return P(t.toDigestPage());}),M(1,"div",2),s(2,"div",3)(3,"div",4)(4,"div",5),g(5,"\u7CBE\u534E\u4E3B\u9898"),c()(),s(6,"div",6),g(7),M(8,"i",7),c()(),s(9,"div",8),g(10),c()();}if(o&2){let i=d();l(7),A(i.digestTopicsAmount),l(3),V(" ",i.isOwnerOrAdmin?"\u53BB\u8BBE\u7F6E\u6807\u9898\uFF0C\u65B9\u4FBF\u6210\u5458\u9884\u89C8\u6574\u4F53\u5185\u5BB9~":"\u5FEB\u901F\u9884\u89C8\u661F\u7403\u5168\u90E8\u7CBE\u534E~"," ");}}
146var Mm=(()=>{let n=class n{constructor(e,t,r,a,p){this.router=e,this.mainService=t,this.groupListService=r,this.bestTopicService=a,this.topicService=p;}ngOnInit(){}showTopicDetail(e,t,r){e.target.tagName!=="A"&&(this.topicService.tags=this.bestTopicService.digestTopicTags[r],this.mainService.getTopic(t.id));}toDigestPage(){let e=this.groupListService.getSelectedGroup().group_id;this.router.navigate([`digests/${e}`]);}};n.ɵfac=function(t){return new(t||n)(O(ue),O(oe),O(ce),O(Pm),O(Oe));},n.ɵcmp=F({type:n,selectors:[["app-best-topic"]],inputs:{digestTopicsAmount:"digestTopicsAmount",isOwnerOrAdmin:"isOwnerOrAdmin"},standalone:!1,decls:1,vars:1,consts:[[1,"best-topic-container"],[1,"best-topic-container",3,"click"],[1,"line"],[1,"head"],[1,"desc"],[1,"text"],[1,"amount"],[1,"icon"],[1,"tip"]],template:function(t,r){t&1&&h(0,Gw,11,2,"div",0),t&2&&_(r.digestTopicsAmount>0?0:-1);},styles:['@charset "UTF-8";.best-topic-container[_ngcontent-%COMP%]{width:280px;background:var(--dweb-bg-panel, #FFFFFF);padding:15px 20px;box-sizing:border-box;cursor:pointer;position:relative}.best-topic-container[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{bottom:0;left:20px;right:20px;position:absolute;height:1px;background:#0000000d}.best-topic-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{display:flex;justify-content:space-between;color:var(--dweb-text-faint, #C5C6CB);margin-bottom:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.best-topic-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{display:flex;align-items:center;font-family:PingFangSC-Medium;font-size:12px}.best-topic-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:var(--dweb-text-primary)}.best-topic-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .amount[_ngcontent-%COMP%]{color:var(--dweb-info, #567895);font-family:PingFangSC-Medium;font-size:12px}.best-topic-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .amount[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{display:inline-block;margin-left:5px;width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-297px -197px}.best-topic-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{color:var(--dweb-text-secondary, #5A5C66)}.best-topic-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item-container[_ngcontent-%COMP%]{padding:0 19px 10px;cursor:pointer}.best-topic-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{padding-top:9px;border-top:1px solid rgba(0,0,0,.05);overflow:hidden;position:relative;line-height:20px;max-height:60px}.best-topic-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:before{content:"...";position:absolute;right:0;bottom:0;background:var(--dweb-bg-panel, #FFFFFF)}.best-topic-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:after{content:"";position:absolute;right:0;width:12px;height:24px;margin-top:.2em;background:#fff}.best-topic-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item-container[_ngcontent-%COMP%]:first-child   .item[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,0)}.best-topic-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item-container[_ngcontent-%COMP%]:hover{background-color:var(--dweb-bg-hover)}.best-topic-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item-container[_ngcontent-%COMP%]:hover   .item[_ngcontent-%COMP%]:after{background-color:var(--dweb-bg-hover)}.best-topic-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item-container[_ngcontent-%COMP%]:hover   .item[_ngcontent-%COMP%]:before{background-color:var(--dweb-bg-hover)}.best-topic-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item-container[_ngcontent-%COMP%]:hover   .item[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,0)}.best-topic-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item-container[_ngcontent-%COMP%]:hover + .item-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,0)}.best-topic-container[_ngcontent-%COMP%]   .tip[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:12px;color:var(--dweb-text-faint, #C5C6CB);margin-top:5px}html[data-theme=dark][_nghost-%COMP%]   .best-topic-container[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .best-topic-container[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{background:var(--dweb-border-subtle)}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.best-topic-container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}@media screen and (max-width:2000px){.best-topic-container[_ngcontent-%COMP%]{width:250px}}']}
146);let o=n;return o;})();var Om=o=>({" active":o}),$w=o=>({active:o});function Hw(o,n){if(o&1){let i=y();s(0,"li",4),f("click",function(){let t=b(i).$implicit,r=d(2);return P(r.selectMonth(t));}),g(1),c();}if(o&2){let i=n.$implicit,e=d(2);C("ngClass",R(2,$w,e.selectedMonth===i)),l(),V(" ",i,"\u6708 ");}}function Uw(o,n){if(o&1){let i=y();s(0,"li")(1,"div",1),f("click",function(){let t=b(i).$implicit,r=d();return P(r.selectYear(t));}),g(2),c(),s(3,"ul",2),B(4,Hw,2,4,"li",3,Y),c()();}if(o&2){let i=n.$implicit,e=d();l(),C("ngClass",R(4,Om,e.selectedYear===i)),l(),V(" ",i," "),l(),zt("expanded",e.selectedYear===i),l(),N(e.months[i]);}}var wm=(()=>{let n=class n{constructor(e,t,r){this.groupListService=e,this.mainService=t,this.monthSelectorService=r,this.years=[],this.months={};}ngOnInit(){this.groupListService.selectedGroup$.subscribe(e=>{this.mainService.switchMonthSelector(!0),this.groupId=e.group_id,this.createTime=e.create_time,this.reset(),this.initYearsAndMonths();}),this.monthSelectorService.reset$.subscribe(()=>this.reset());}initYearsAndMonths(){let e=hc(new Date()),t=hc(ge(this.createTime+"")),r=mc(new Date())+1,a=mc(ge(this.createTime+""))+1;this.years=[],this.months={};for(let p=e;p>=t;p--)if(this.years.push(p),this.months[p]=[12,11,10,9,8,7,6,5,4,3,2,1],p===e&&(this.months[e]=this.months[p].splice(12-r)),p===t){let m=this.months[t].length;this.months[t]=this.months[p].slice(0,m-a+1);}}reset(e=!1){this.selectedYear=null,this.selectedMonth=null,this.mainService.selectedBeginTime="",this.mainService.selectedEndTime="",e&&this.getTopics();}selectYear(e){this.selectedYear=e,this.selectedMonth=this.months[e][0],this.getTopics();}selectMonth(e){this.selectedMonth=e,this.getTopics();}getTopics(){document.body.scrollTop=document.documentElement.scrollTop=0;let e,t,r;this.selectedYear&&this.selectedMonth&&(e=this.selectedMonth>9?this.selectedMonth:"0"+this.selectedMonth,t=Fe(new Date(`${this.selectedYear}-${e}-01`),"yyyy-MM-dd'T'HH:mm:ss.SSSXX"),r=Fe(Fp(ge(t),1),"yyyy-MM-dd")+"T00:00:00.000+0800"),this.mainService.showLoading(),this.mainService.clearDataWithoutStickyTopicList();let a=this.mainService.hashtagId,p=this.mainService.subHashtagIds;this.selectedYear&&this.selectedMonth?(this.mainService.selectedBeginTime=t,this.mainService.selectedEndTime=r,p?this.mainService.getSubTagTopics(this.mainService.currentSubTagId?this.mainService.currentSubTagId:this.mainService.subHashtagIds,encodeURIComponent(r)):a?this.mainService.getTagTopics(this.groupId,encodeURIComponent(r)):this.mainService.getTopics(this.groupId,this.mainService.scope,encodeURIComponent(t),encodeURIComponent(r))):p?this.mainService.getSubTagTopics(this.mainService.currentSubTagId?this.mainService.currentSubTagId:this.mainService.subHashtagIds):a?this.mainService.getTagTopics(this.groupId):this.mainService.getTopics(this.groupId,this.mainService.scope);}};n.ɵfac=function(t){return new(t||n)(O(ce),O(oe),O(Hp));},n.ɵcmp=F({type:n,selectors:[["app-month-selector"]],standalone:!1,decls:6,vars:3,consts:[[1,"month-selector"],[1,"year",3,"click","ngClass"],[1,"months"],[3,"ngClass"],[3,"click","ngClass"]],template:function(t,r){t&1&&(s(0,"ul",0)(1,"li")(2,"div",1),f("click",function(){return r.reset(!0);}),g(3," \u6700\u8FD1 "),c()(),B(4,Uw,6,6,"li",null,hn),c()),t&2&&(l(2),C("ngClass",R(1,Om,!r.selectedYear)),l(2),N(r.years));},dependencies:[K],styles:['.month-selector[_ngcontent-%COMP%]{width:46px;font-family:PingFangSC-Regular;font-size:12px;-webkit-user-select:none;user-select:none;height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch;-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0);transform:translateZ(0);transition:height .3s ease-out;-webkit-transition:height .3s ease-out;-o-transition:height .3s ease-out}.month-selector[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.month-selector[_ngcontent-%COMP%]   .year[_ngcontent-%COMP%]{cursor:pointer;color:var(--dweb-text-faint);height:26px;line-height:26px;position:relative;padding-left:10px;margin-bottom:4px}.month-selector[_ngcontent-%COMP%]   .year[_ngcontent-%COMP%]:before{position:absolute;
146left:0;content:"";width:4px;height:26px;background-color:#e4e5eb}.month-selector[_ngcontent-%COMP%]   .year.active[_ngcontent-%COMP%]{background:var(--dweb-text-secondary);border-radius:0 8px 8px 0}.month-selector[_ngcontent-%COMP%]   .year.active[_ngcontent-%COMP%]:before{background-color:var(--dweb-text-primary)}.month-selector[_ngcontent-%COMP%]   .months[_ngcontent-%COMP%]{color:var(--dweb-text-faint);padding:6px 0 0;max-height:0;overflow:hidden;cursor:pointer;transition:all .3s ease-out;-webkit-transition:all .3s ease-out;-o-transition:all .3s ease-out}.month-selector[_ngcontent-%COMP%]   .months.expanded[_ngcontent-%COMP%]{max-height:360px}.month-selector[_ngcontent-%COMP%]   .months[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{position:relative;padding-left:10px;margin-bottom:10px}.month-selector[_ngcontent-%COMP%]   .months[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:"";width:4px;height:4px;border-radius:50%;background-color:#e4e5eb;position:absolute;left:0;top:50%;margin-top:-2px}.month-selector[_ngcontent-%COMP%]   .months[_ngcontent-%COMP%]   li.active[_ngcontent-%COMP%]{font-family:PingFangSC-Medium;color:var(--dweb-text-primary)}.month-selector[_ngcontent-%COMP%]   .months[_ngcontent-%COMP%]   li.active[_ngcontent-%COMP%]:before{background-color:var(--dweb-text-secondary)}html[data-theme=dark][_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .year[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .year[_ngcontent-%COMP%]{color:var(--dweb-text-muted)}html[data-theme=dark][_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .year[_ngcontent-%COMP%]:before, html[data-theme=dark]   [_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .year[_ngcontent-%COMP%]:before{background-color:var(--dweb-border-medium)}html[data-theme=dark][_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .year[_ngcontent-%COMP%]:hover:not(.active), html[data-theme=dark]   [_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .year[_ngcontent-%COMP%]:hover:not(.active){color:var(--dweb-text-primary);background:var(--dweb-bg-panel-2);border-radius:0 4px 4px 0}html[data-theme=dark][_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .year.active[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .year.active[_ngcontent-%COMP%]{color:var(--dweb-brand);background:var(--dweb-bg-brand-tint)}html[data-theme=dark][_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .year.active[_ngcontent-%COMP%]:before, html[data-theme=dark]   [_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .year.active[_ngcontent-%COMP%]:before{background-color:var(--dweb-brand)}html[data-theme=dark][_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .months[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .months[_ngcontent-%COMP%]{color:var(--dweb-text-muted)}html[data-theme=dark][_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .months[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before, html[data-theme=dark]   [_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .months[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{background-color:var(--dweb-border-medium)}html[data-theme=dark][_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .months[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:hover:not(.active), html[data-theme=dark]   [_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .months[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:hover:not(.active){color:var(--dweb-text-primary)}html[data-theme=dark][_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .months[_ngcontent-%COMP%]   li.active[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .months[_ngcontent-%COMP%]   li.active[_ngcontent-%COMP%]{color:var(--dweb-brand)}html[data-theme=dark][_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .months[_ngcontent-%COMP%]   li.active[_ngcontent-%COMP%]:before, html[data-theme=dark]   [_nghost-%COMP%]   .month-selector[_ngcontent-%COMP%]   .months[_ngcontent-%COMP%]   li.active[_ngcontent-%COMP%]:before{background-color:var(--dweb-brand)}@media screen and (max-width:2000px){.month-selector[_ngcontent-%COMP%]{width:43px}}']});let o=n;return o;})();var Qw=["postEditor"],Ww=["uploadComponent"],Xw=o=>({"up-index":o}),Jw=o=>({"max-height":o}),Yw=o=>({disable:o}),Kw=(o,n)=>({selected:o,"disable-sele":n}),Zw=o=>({selected:o}),ey=o=>({inactive:o}),ty=o=>({"over-limit":o}),ny=(o,n)=>n.member.user_id;function iy(o,n){if(o&1){let i=y();
146s(0,"div",21),f("click",function(){b(i);let t=d(2);return P(t.showPaymentUpgradeDialog=!0);}),M(1,"div",22),s(2,"div",23)(3,"span",24),g(4,"\u4E3A\u907F\u514D\u65E0\u6CD5\u6536\u6B3E\uFF0C\u8BF7\u5C3D\u5FEB\u5F00\u901A\u6536\u6B3E\u8D26\u6237\uFF0C"),c(),s(5,"span",25),f("click",function(){b(i);let t=d(2);return P(t.showPaymentUpgradeDialog=!0);}),g(6,"\u70B9\u51FB\u67E5\u770B\u5F00\u901A\u65B9\u5F0F"),c(),M(7,"i",26),c()();}}function oy(o,n){o&1&&(s(0,"span",30),g(1,"New"),c());}function ry(o,n){if(o&1){let i=y();s(0,"div",27),f("click",function(){b(i);let t=d(2);return P(t.goToData());}),s(1,"div",28)(2,"div",29)(3,"span"),g(4,"\u661F\u7403\u7BA1\u7406\u540E\u53F0"),c(),h(5,oy,2,0,"span",30),c(),M(6,"i"),c(),s(7,"div",31),g(8),c()();}if(o&2){let i=d(2);l(5),_(i.groupType==="pay"?5:-1),l(3),A(i.showDataEntranceText);}}function ay(o,n){if(o&1){let i=y();s(0,"div",32),f("click",function(){b(i);let t=d(2);return P(t.goToExamination());}),s(1,"span",28),g(2,"\u5BA1\u6279\u8BF7\u6C42"),c(),s(3,"span",33)(4,"div"),g(5),c(),M(6,"i"),c()();}if(o&2){let i=d(2);l(5),A(i.examinations.length);}}function sy(o,n){if(o&1){let i=y();s(0,"div",34),f("click",function(){b(i);let t=d(2);return P(t.handleWriteClock());}),M(1,"div",35),s(2,"div",36)(3,"div",37)(4,"div",38),g(5,"\u521B\u4F5C\u95F9\u949F \xB7 \u8C03\u67E5\u95EE\u5377"),c(),M(6,"div",39),c(),s(7,"div",40),g(8,"\u60A8\u7684\u610F\u89C1\u5C06\u5E2E\u52A9\u6211\u4EEC\u627E\u5230\u66F4\u597D\u7684\u8FED\u4EE3\u65B9\u54
14611"),c()(),M(9,"div",41),c();}}function cy(o,n){if(o&1&&(s(0,"div",31),g(1),c()),o&2){let i=d().$implicit;l(),A(i.member.description);}}function ly(o,n){if(o&1){let i=y();s(0,"div",44)(1,"img",46),f("click",function(){let t=b(i).$implicit,r=d(3);return P(r.toFootprint(t.member.user_id));}),c(),s(2,"div",47)(3,"div",48),f("click",function(){let t=b(i).$implicit,r=d(3);return P(r.toFootprint(t.member.user_id));}),g(4),c(),h(5,cy,2,1,"div",31),c(),s(6,"i",49),f("click",function(){let t=b(i).$implicit,r=d(3);return P(r.handleEditor(t.member));}),c()();}if(o&2){let i=n.$implicit;l(),C("src",i.member.avatar_url,se),l(3),V(" ",i.member.alias||i.member.name," "),l(),_(i.member.description?5:-1);}}function py(o,n){if(o&1){let i=y();s(0,"div",50),f("click",function(){b(i);let t=d(3);return P(t.handleAskDialog());}),g(1,"\u67E5\u770B\u66F4\u591A >"),c();}}function dy(o,n){if(o&1&&(s(0,"div",14)(1,"div",42)(2,"div",28),g(3,"\u5411\u4ED6\u4EEC\u63D0\u95EE"),c(),s(4,"div",31),g(5),c(),M(6,"div",43),c(),B(7,ly,7,3,"div",44,ny),h(9,py,2,0,"div",45),c()),o&2){let i=d(2);l(5),A(i.askInfo),l(2),N(i.answerersList.slice(0,3)),l(2),_(i.answerersList.length>3?9:-1);}}function gy(o,n){o&1&&(s(0,"span",30),g(1,"New"),c());}function uy(o,n){if(o&1){let i=y();s(0,"div",51),f("click",function(){b(i);let t=d(2);return P(t.goToColumn());}),M(1,"div",43),s(2,"div",28)(3,"div",29)(4,"span",52),g(5),c(),h(6,gy,2,0,"span",30),c(),M(7,"i"),c(),s(8,"div",31),g(9),c()();}if(o&2){let i=d(2);
146l(5),A(i.columnAbstractTitle),l(),_(i.columnIconVisible?-1:6),l(3),V("\u5171 ",i.columnsLength," \u4E2A\u4E13\u680F");}}function my(o,n){if(o&1&&M(0,"app-best-topic",17),o&2){let i=d(2);C("digestTopicsAmount",i.digestTopicsAmount)("isOwnerOrAdmin",i.isOwnerOrAdmin);}}function hy(o,n){if(o&1&&M(0,"app-group-file",18),o&2){let i=d(2);C("previewFiles",i.previewFiles)("filesAmount",i.filesAmount);}}function _y(o,n){if(o&1&&(s(0,"div",55)(1,"span",56),g(2),c(),s(3,"span",31),g(4),c()()),o&2){let i=n.$implicit,e=n.$index;l(2),A(e+1),l(2),A(i.title);}}function fy(o,n){if(o&1){let i=y();s(0,"div",53),f("click",function(){b(i);let t=d(2);return P(t.goToHotBoard());}),s(1,"div",28)(2,"span"),g(3,"\u521B\u4F5C\u7075\u611F"),c(),M(4,"i"),c(),s(5,"div",54),g(6,"\u53D1\u73B0\u70ED\u70B9\uFF0C\u6316\u6398\u5408\u9002\u7684\u521B\u4F5C\u7D20\u6750"),c(),B(7,_y,5,2,"div",55,Y),c();}if(o&2){let i=d(2);l(7),N(i.hotBoards);}}function Cy(o,n){if(o&1&&M(0,"img",58),o&2){let i=d(3);C("src",i.downloadAppQrcodeUrl,se);}}function xy(o,n){if(o&1){let i=y();s(0,"div",20)(1,"div",57),f("click",function(){b(i);let t=d(2);return P(t.closeDownloadAppQrcode());}),c(),s(2,"div",23),h(3,Cy,1,1,"img",58),s(4,"div",36)(5,"div",28),g(6,"\u63A8\u8350\u626B\u7801\u4F7F\u7528 App"),c(),s(7,"ul",59)(8,"li"),g(9,"\u5373\u65F6\u63A5\u6536\u91CD\u8981\u6D88\u606F"),c(),s(10,"li"),g(11,"\u63A2\u7D22\u66F4\u591A\u4F18\u8D28\u661F\u7403"),c(),s(12,"li"),g(13,"\u89E3\u9501\u5B8C\u6574\u529F\u80FD\u4F53\u9A8C"),c()()()()();}if(o&2){let i=d(2);l(3),_(i.downloadAppQrcodeUrl?3:-1);}}function vy(o,n){if(o&1&&(h(0,iy,8,0,"div",10),h(1,ry,9,2,"div",11),h(2,ay,7,1,"div",12),h(3,sy,10,0,"div",13),h(4,dy,10,2,"div",14),s(5,"div",15),h(6,uy,10,3,"div",16),h(7,my,1,2,"app-best-topic",17),h(8,hy,1,2,"app-group-file",18),c(),h(9,fy,9,0,"div",19),h(10,xy,14,1,"div",20)),o&2){let i=d();_(i.showPaymentUpgradeEntrance?0:-1),l(),_(i.showDataEntrance?1:-1),l(),_(i.examinations&&i.examinations.length>0?2:-1),l(),_(i.writeClockVisible?3:-1),l(),_(!i.isExpired||i.isOwner?4:-1),l(2),_(i.showColumnEntrance?6:-1),l(),_(!i.lockedGroup&&i.digestTopicsAmount>0?7:-1),l(),_(!i.lockedGroup&&i.filesAmount>0?8:-1),l(),_(i.showHotBoard?9:-1),l(),_(i.showDownloadAppQrCode?10:-1);}}function by(o,n){if(o&1&&(s(0,"span"),g(1),c()),o&2){let i=d(2);l(),V("(\u5269\u4F59 ",i.remainCounts," \u6B21)");}}function Py(o,n){if(o&1){let i=y();s(0,"div",6)(1,"div",60)(2,"div",42)(3,"div",28)(4,"span"),g(5),c(),s(6,"span",61),g(7),c()(),s(8,"div",62),f("click",function(){b(i);let t=d();return P(t.closeAskEditor());}),c()(),s(9,"div",63),M(10,"img",64),s(11,"app-editor",65,0),f("editor-created",function(t){b(i);let r=d();return P(r.editorCreated(t));})("editor-paste",function(t){b(i);let r=d();return P(r.handlePaste(t));})("editor-content-change",function(t){b(i);let r=d();return P(r.editorContentChange(t));})("editor-post",function(t){b(i);let r=d();return P(r.postTopic(t));}),c()(),s(13,"div",66)(14,"span"),g(15,"\u63D0\u95EE\u65B9\u5F0F\uFF1A"),c(),s(16,"div",67),f("click",function(){b(i);let t=d();return P(t.selectPayType("free"));}),M(17,"i",68),s(18,"span"),g(19,"\u514D\u8D39 "),h(20,by,2,1,"span"),c()(),s(21,"div",69),f("click",function(){b(i);let t=d();return P(t.selectPayType("pay"));}),M(22,"i",68),s(23,"span"),g(24,"\u4ED8\u8D39"),c()(),s(25,"div",70)(26,"app-switch-btn",71),f("handle-change",function(t){b(i);let r=d();return P(r.handleSwitch(t));}),c(),s(27,"span"),g(28,"\u533F\u540D"),c()()(),s(29,"app-upload",72,1),f("update-files",function(t){b(i);let r=d();return P(r.watchFileChange(t));}),s(31,"div",73)(32,"div",29)(33,"div",74,2)(35,"span",75),g(36,"\u6DFB\u52A0\u56FE\u7247"),c()()(),s(37,"div",76)(38,"div",77),g(39),c(),s(40,"div",78),f("click",function(){b(i);let t=d();return P(t.postTopic(!1));}),g(41),c()()()()()();}if(o&2){let i=d();l(5),A(i.selectedGroup.name),l(2),V("\u5411 ",i.askedName," \u63D0\u95EE"),l(3),C("src",i.avatarUrl,se),l(),C("ngStyle",R(21,Jw,i.editorMaxHeight))("placeholder",i.editorPlaceholder),l(5),C("ngClass",R(23,Yw,i.remainCounts===0&&i.freeQuestionCount!==-1)),l(),C("ngClass",qe(25,Kw,i.payType==="free",i.remainCounts===0&&i.freeQuestionCount!==-1)),l(3),_(i.freeQuestionCount>-1?20:-1),l(2),C("ngClass",R(28,Zw,i.payType==="pay")),l(4),C("isChecked",i.anonymous)("disabled",!i.anonymous)("buttonSize","small"),l(3),C("picLength",i.existingImagesLength)("isMutiple",!1)("noUseImgStore",!0),l(4),C("hidden",i.picVisible)("ngClass",R(30,ey,i.uploadingVideo)),l(5),C("ngClass",R(32,ty,i.askText.length>1e3)),l(),V(" \uFF08",i.askText.length,"/1000\uFF09 "),l(),C("ngClass",i.askText.trim()&&i.askText.length<=1e3||!i.isUploaded?"can-post":""),l(),V(" ",i.isUploaded?"\u53D1\u5E03":"\u4E0A\u4F20\u4E2D"," ");}}function My(o,n){if(o&1){let i=y();s(0,"app-ask-dialog",79),f("close-dialog",function(){b(i);let t=d();return P(t.askClose());})("handle-editor",function(t){b(i);let r=d();return P(r.handleEditor(t));}),c();}if(o&2){let i=d();C("answerersList",i.answerersList)("askInfo",i.askInfo);}}function Oy(o,n){if(o&1){let i=y();s(0,"app-ask-pay-dialog",80),f("selected-fee",function(t){b(i);let r=d();return P(r.handleFeeSelected(t));})("close-pay",function(){b(i);let t=d();return P(t.payClose());}),c();}if(o&2){let i=d();C("feeList",i.selectedGroup.policies.question_fee.amount_options)("qrcodeUrl",i.qrcodeUrl);}}function wy(o,n){if(o&1){let i=y();
146s(0,"app-payment-upgrade-dialog",81),f("close-dialog",function(){b(i);let t=d();return P(t.showPaymentUpgradeDialog=!1);}),c();}if(o&2){let i=d();C("url",i.paymentUpgradeUrl);}}var ym=(()=>{let n=class n{constructor(e,t,r,a,p,m,v,x,w,k){this.router=e,this.route=t,this.mainService=r,this.groupPreviewService=a,this.groupListService=p,this.indexService=m,this.topicService=v,this.message=x,this.bindPhoneDialogService=w,this.http=k,this.filesAmount=0,this.hideContent=!1,this.lockedGroup=!1,this.subscriptions=[],this.groupType="",this.groupRisk="",this.dataEntranceText="",this.showDataEntrance=!1,this.showHotBoard=!1,this.examinations=[],this.digestTopicsAmount=0,this.hotBoards=[],this.columnAbstractTitle="",this.columnsLength=0,this.showColumnEntrance=!1,this.columnIconVisible=!0,this.writeClockVisible=!1,this.answerersList=[],this.partners=0,this.guests=0,this.askDialogVisible=!1,this.askInfo="",this.editorPlaceholder="\u63D0\u95EE\u88AB\u56DE\u7B54\u540E\uFF0C\u5C06\u516C\u5F00\u663E\u793A\u5728\u661F\u7403\u5185\u4E14\u4E0D\u53EF\u5220\u9664",this.editorMaxHeight="500px",this.existingImagesLength=0,this.postImageIds=[],this.autoSave=new U(),this.askText="",this.isUploaded=!0,this.imageUrl="",this.showImg=!1,this.uploadId="",this.blockSubmit=!1,this.isImageUploading=!1,this.requests={},this.qiniuRequests={},this.uploadingVideo=!1,this.askEditorVisible=!1,this.avatarUrl="",this.payType="",this.askedName="",this.freeQuestionCount=0,this.askPayDialogVisible=!1,this.payAmount=0,this.anonymous=!1,this.qrcodeUrl="",this.intervalID=null,this.timeoutTimer=null,this.isOrderTimeout=!1,this.orderNumber=0,this.picVisible=!1,this.remainCounts=0,this.isExpired=!1,this.showPaymentUpgradeEntrance=!1,this.showPaymentUpgradeDialog=!1,this.paymentUpgradeUrl="",this.showDownloadAppQrCode=!1,this.downloadAppQrcodeUrl="";}ngOnInit(){this.doSubscribe(),this.mainService.getHotBoards("weibo",3),this.checkDownloadAppQrcodeStatus();}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}get showDataEntranceText(){return this.groupType==="pay"&&this.groupRisk==="normal"&&this.isOwner?"\u300C\u6210\u5458\u8EAB\u4EFD\u9A8C\u8BC1\u300D\u63A5\u53E3\u5DF2\u5F00\u653E":this.groupType==="pay"?"\u65B0\u589E\u300CApp \u4E0B\u8F7D\u7387\u300D\u300C\u89C6\u9891\u53F7\u76F4\u64AD\u300D\u7B49\u529F\u80FD":"\u67E5\u770B\u6570\u636E";}doSubscribe(){let e=this.mainService.hideContent$.subscribe(T=>{this.hideContent=!!T;}),t=this.mainService.lockedGroup$.subscribe(T=>{this.lockedGroup=!!T,this.assignAmount(this.groupListService.getSelectedGroup()),this.initData();}),r=this.groupPreviewService.previewFiles$.subscribe(T=>{this.previewFiles=T.slice(0,3);}),a=this.groupPreviewService.examinations$.subscribe(T=>{this.examinations=T;}),p=this.groupListService.selectedGroup$.subscribe(T=>{T!=null&&T.statistics.topics&&(this.digestTopicsAmount=T.statistics.topics.digests_count);let D=Number(localStorage.getItem("user_id")),L=T.owner.user_id===D,J=localStorage.getItem("writeClock");L&&T.type==="pay"&&!J?this.writeClockVisible=!1:this.writeClockVisible=!1,this.groupRisk=T.risk_level,this.freeQuestionCount=T.policies.free_questions_limit_count,this.freeQuestionCount!==-1&&this.groupPreviewService.getGroupStatistics(T.group_id),this.checkDownloadAppQrcodeStatus();}),m=this.mainService.hotBoard$.subscribe(T=>{T.weibo&&(this.hotBoards=T.weibo);}),v=this.topicService.getColumnsList$.subscribe(T=>{T.length&&(this.columnsLength=T.length,this.showColumnEntrance=this.showColumnEntrance&&T.length>0);}),x=this.indexService.columnAbstract$.subscribe(T=>{if(!T){this.showColumnEntrance=!1;return;}this.columnAbstractTitle=T.title?T.title:"\u661F\u7403\u4E13\u680F",this.showColumnEntrance=T.has_columns;}),w=this.groupPreviewService.groupAnswerers$.subscribe(T=>{this.answerersList=T;}),k=this.groupPreviewService.askPayQrcode$.subscribe(T=>{this.orderNumber=T.order_no,this.intervalID&&clearInterval(this.intervalID),this.timeoutTimer&&clearTimeout(this.timeoutTimer),this.createQrcode(T.pay_url),this.intervalID=setInterval(()=>ye(this,null,function*(){this.groupPreviewService.getOrderResult(T.order_no);}),3e3),this.setupTimeout();}),S=this.groupPreviewService.payOrderResult$.subscribe(T=>{T==="succeeded"&&(this.postTopic(!0),this.payClose());}),E=this.groupPreviewService.postResult$.subscribe(T=>{this.mainService.updateTopic(T),this.freeQuestionCount!==-1&&this.groupPreviewService.getGroupStatistics(this.selectedGroup.group_id),this.clearCreateTopicData(),this.closeAskEditor();}),I=this.groupPreviewService.groupStatistics$.subscribe(T=>{this.remainCounts=this.freeQuestionCount-T.monthly_free_questions_count;});this.subscriptions.push(e,t,r,a,p,m,v,x,w,k,S,E,I);}setupTimeout(){this.timeoutTimer=setTimeout(()=>{this.isOrderTimeout=!0,this.payClose();},180*1e3);}initData(){this.avatarUrl=this.indexService.getSelfInfo("avatar_url"),this.selectedGroup=this.groupListService.getSelectedGroup(),this.groupPreviewService.getGroupAnswerers(this.selectedGroup.group_id);let e=this.selectedGroup.guest_ids?this.selectedGroup.guest_ids.length:0,t=this.selectedGroup.partner_ids?this.selectedGroup.partner_ids.length+1:1;this.askInfo=`\u661F\u4E3B&\u5408\u4F19\u4EBA ${t} \u4F4D\uFF0C\u5609\u5BBE ${e} \u4F4D`;}transformDigestTopics(e){let t=[];for(let r of e)r.type==="talk"?this.transformDigestTopicsDetail(r,t,"talk"):r.type==="q&a"?this.transformDigestQATopicsDetail(r,t,"question"):r.type==="task"?this.transformDigestTopicsDetail(r,t,"task"):r.type==="solution"&&this.transformDigestTopicsDetail(r,t,"solution");this.digestTopics=t;}transformDigestTopicsDetail(e,t,r){e[r].files?t.push({id:e.topic_id,text:e[r].text,type:"files",annotations:e.annotation}):e[r].images?t.push({id:e.topic_id,text:e[r].text,type:"images",annotations:e.annotation}):t.push({id:e.topic_id,text:e[r].text,annotations:e.annotation});}transformDigestQATopicsDetail(e,t,r){let a;e.question.anonymous?(a=Object.assign({},e),a.question.owner={name:"\u533F\u540D\u7528\u6237"}):a=e,a[r].files?t.push({id:a.topic_id,text:a[r].text,type:"files",owner:a.question.owner,annotations:a.annotation}):a[r].images?t.push({id:a.topic_id,text:a[r].text,type:"images",owner:a.question.owner,annotations:a.annotation}):t.push({id:a.topic_id,text:a[r].text,owner:a.question.owner,annotations:a.annotation});}assignAmount(e){var x,w;this.filesAmount=0,e.statistics.files&&(this.filesAmount=e.statistics.files.c
146ount),this.examinations=[];let t=Number(localStorage.getItem("user_id")),r=e.owner.user_id===t,a=(x=e.partner_ids)==null?void 0:x.includes(t),p=(w=e.admin_ids)==null?void 0:w.includes(t);if(r||a||p?(this.groupId=e.group_id,this.groupType=e.type,this.showDataEntrance=!0):this.showDataEntrance=!1,r&&this.groupPreviewService.getExaminations(this.groupId),r){this.paymentUpgradeUrl=`${ie.MWEB_URL}open_payment_account.html?group_id=${this.groupId}`;let k=this.indexService.getSelfInfo();this.showPaymentUpgradeEntrance=k.associated_ecommerce===!1&&k.associated_enterprise===!1&&this.groupType==="pay";}else this.showPaymentUpgradeEntrance=!1;this.isOwnerOrAdmin=r||p,this.isOwner=r;let m=e.privileges.access_group_data,v=m.includes("owner")&&r||m.includes("partners")&&a||m.includes("admins")&&p;this.showHotBoard=e.type==="pay"&&v,this.columnIconVisible=!!localStorage.getItem("FIRST_ENTER_COLUMN"),this.topicService.getColumnsList(location.href.split("/group/")[1]),this.isExpired=e.type==="pay"?uc(new Date(),ge(e.user_specific.validity.end_time)):!1;}goToData(){this.groupType==="pay"?ne(`dashboard/${this.groupId}/income`):ne(`group_data/${this.groupId}/graph`);}handleAskDialog(){this.askDialogVisible=!0;}askClose(){this.askDialogVisible=!1;}toFootprint(e){ne(`footprint/${e}`);}goToExamination(){let e=this.groupListService.getSelectedGroup();this.indexService.setTargetGroup(e),this.router.navigate([`examination_list/${this.groupId}`]);}goToPromos(){this.router.navigate([`/group_data/${this.groupId}/group_promos`]);}goToHotBoard(){this.router.navigate([`/dashboard/${this.groupId}/hot_board`]);}goToColumn(){localStorage.setItem("FIRST_ENTER_COLUMN","no"),ne(`/columns/${location.href.split("/group/")[1]}`);}handleWriteClock(){this.writeClockVisible=!1,localStorage.setItem("writeClock","true"),window.open(`https://wj.qq.com/s2/11946024/4a1b?openid=${this.groupId}_${localStorage.getItem("user_id")}`);}editorCreated(e){this.postEditor=e,this.handleText();}handleText(){let e=window.localStorage.getItem("ask_text");e&&this.postEditor.setContents(JSON.parse(e));}clearCreateTopicData(e=!1){e||window.localStorage.removeItem("ask_text"),this.postEditor.setContents("",!0),this.postImageIds=[],this.askText="",this.picVisible=!1;}editorContentChange(e){e.source==="user"&&this.autoSave.next(null),this.askText=this.postEditor.getText();}handlePaste(e){if(e.stopPropagation(),e.clipboardData&&e.clipboardData.items){let t=e.clipboardData.items,r=e.clipboardData.getData("text/html");if(new DOMParser().parseFromString(r,"text/html").querySelector("html").getAttribute("xmlns:o")!=="urn:schemas-microsoft-com:office:office")try{for(let m of t)if(m.type.indexOf("image")!==-1){if(this.postImageIds.length>0||this.isImageUploading)return this.message.info({content:"\u63D0\u95EE\u53EA\u80FD\u4E0A\u4F20\u4E00\u5F20\u56FE\u7247",type:"warning"}),!1;this.isImageUploading=!0;let v=m.getAsFile();return Oi(v,x=>{this.groupPreviewService.handleCopyAndDrag([x]);}),!1;}}catch(m){}}}watchFileChange(e){e.action==="addImage"?(this.postImageIds.push(e.id),this.isImageUploading=!1):e.action==="removeImage"&&(e.id&&this.postImageIds.splice(this.postImageIds.findIndex(t=>t===e.id),1),this.isImageUploading=!1),this.picVisible=this.postImageIds.length>0;}handleEditorContent(){let e=this.postEditor.getContents(),t="";return e.ops.forEach(r=>{r.insert.emoji?t+=r.insert.emoji.type==="text"?r.insert.emoji.title:`[${r.insert.emoji.title}]`:t+=r.insert;}),t;}postTopic(e){if(!this.bindPhoneDialogService.hasBindPhoneNumber())return;let t={type:"q&a",questionee_id:this.askMember.user_id,text:this.handleEditorContent(),anonymous:this.anonymous};this.postImageIds.length&&(t.image_ids=this.postImageIds),this.payType==="pay"?e?(t.fee={order_no:this.orderNumber},this.groupPreviewService.postAsk(this.selectedGroup.group_id,{req_data:t})):this.askPayDialogVisible=!0:this.groupPreviewService.postAsk(this.selectedGroup.group_id,{req_data:t});}closeAskEditor(){this.clearCreateTopicData(),this.askEditorVisible=!1,this.anonymous=!1,this.indexService.remainScrollbarStyle();}selectPayType(e){this.payType=e;}handleEditor(e){let t=Number(localStorage.getItem("user_id")),r=e.user_id===t,a=this.selectedGroup.user_specific.trial;!r&&!a?(this.payType=this.remainCounts===0&&this.freeQuestionCount!==-1?"pay":"free",this.askEditorVisible=!this.askEditorVisible,this.indexService.spareScrollbarSpace(),this.askMember=e,this.askedName=(e.alias||e.name).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\u202e/g,""),this.askClose()):this.message.info({content:a?"\u514D\u8D39\u4F53\u9A8C\u6210\u5458\u4E0D\u80FD\u53C2\u4E0E\u4E92\u52A8":"\u4E0D\u80FD\u5411\u81EA\u5DF1\u63D0\u95EE",type:"warning"});}payClose(){this.intervalID&&clearInterval(this.intervalID),this.timeoutTimer&&clearTimeout(this.timeoutTimer),this.askPayDialogVisible=!1;}handleFeeSelected(e){this.payAmount=typeof e=="number"?e:Number(e.innerText.replace("\uFFE5",""))*100,this.getAskPayQrcode();}getAskPayQrcode(){let e={type:"question_fee",group_id:this.askMember.group_id,user_id:this.askMember.user_id,amount:this.payAmount};this.groupPreviewService.askPayQrcode({req_data:e});}handleSwitch(e){this.anonymous=e.target.checked;}
146checkDownloadAppQrcodeStatus(){if(this.route.snapshot.queryParamMap.get("force_download_app_qrcode")){this.generateDownloadAppQrcode(),this.showDownloadAppQrCode=!0;return;}if(localStorage.getItem("hideDownloadAppQrcode")){this.showDownloadAppQrCode=!1;return;}let r=this.groupListService.getSelectedGroup();if(!r){this.showDownloadAppQrCode=!1;return;}if(!(r.type==="pay")){this.showDownloadAppQrCode=!1;return;}let p=r.user_specific;if(!p||!p.validity){this.showDownloadAppQrCode=!1;return;}let m=ge(p.validity.end_time);if(uc(new Date(),m)){this.showDownloadAppQrCode=!1;return;}let x=Number(localStorage.getItem("user_id")),w=r.owner.user_id===x,k=r.partner_ids&&r.partner_ids.includes(x),S=r.admin_ids&&r.admin_ids.includes(x),E=r.guest_ids&&r.guest_ids.includes(x);if(!(!w&&!k&&!S&&!E)){this.showDownloadAppQrCode=!1;return;}this.http.get(j.selfLoginInfo).subscribe(T=>{var D,L;if(T.succeeded&&(L=(D=T.resp_data)==null?void 0:D.app)!=null&&L.last_login_time){let J=ge(T.resp_data.app.last_login_time);fn(new Date(),J)>30?(this.showDownloadAppQrCode=!0,this.generateDownloadAppQrcode()):this.showDownloadAppQrCode=!1;}else this.showDownloadAppQrCode=!0,this.generateDownloadAppQrcode();});}generateDownloadAppQrcode(){return ye(this,null,function*(){let e="https://t.zsxq.com/app/?qrcode=1",t={margin:0,width:200,height:200};try{this.downloadAppQrcodeUrl=yield Ml.default.toDataURL(e,t);}catch(r){console.error("Error generating download app QR code:",r);}});}closeDownloadAppQrcode(){this.showDownloadAppQrCode=!1,localStorage.setItem("hideDownloadAppQrcode","true");}createQrcode(e){return ye(this,null,function*(){let t={margin:0,width:120,height:120},r=yield Ml.default.toDataURL(e,t);this.qrcodeUrl=r;});}};n.ɵfac=function(t){return new(t||n)(O(ue),O(ke),O(oe),O(vo),O(ce),O(q),O(Oe),O(le),O(Ti),O(W));},n.ɵcmp=F({type:n,selectors:[["app-group-preview"]],viewQuery:function(t,r){if(t&1&&_e(Qw,7)(Ww,7),t&2){let a;ee(a=te())&&(r.postEditor=a.first),ee(a=te())&&(r.uploadComponent=a.first);}},inputs:{showMonthSelector:"showMonthSelector"},standalone:!1,decls:9,vars:9,consts:[["postEditor",""],["uploadComponent",""],["picUpload",""],[1,"group-preview-container",3,"ngClass"],[1,"group-preview-wrapper"],[3,"hidden"],[1,"ask-post"],[3,"answerersList","askInfo"],[3,"feeList","qrcodeUrl"],[3,"url"],[1,"payment-upgrade-entrace"],[1,"data-entrance"],[1,"examination-entrance"],[1,"write-clock"],[1,"ask-container"],[1,"group-content"],[1,"column-entrance"],[3,"digestTopicsAmount","isOwnerOrAdmin"],[3,"previewFiles","filesAmount"],[1,"hot-board"],[1,"download-app-qrcode"],[1,"payment-upgrade-entrace",3,"click"],[1,"payment-icon"],[1,"content"],[1,"main-text"],[1,"action-text",3,"click"],[1,"right-arrow"],[1,"data-entrance",3,"click"],[1,"title"],[1,"left"],[1,"new"],[1,"info"],[1,"examination-entrance",3,"click"],[1,"count"],[1,"write-clock",3,"click"],[1,"edit-icon"],[1,"desc"],[1,"top"],[1,"text"],[1,"icon"],[1,"bottom"],[1,"clock"],[1,"head"],[1,"line"],[1,"user-cards"],[1,"more"],[1,"avatar",3,"click","src"],[1,"user-info"],[1,"name",3,"click"],[1,"ask-icon",3,"click"],[1,"more",3,"click"],[1,"column-entrance",3,"click"],[1,"column-title"],[1,"hot-board",3,"click"],[1,"subtitle"],[1,"news"],[1,"index"],[1,"close-btn",3,"click"],["alt","\u4E0B\u8F7DApp\u4E8C\u7EF4\u7801",1,"qr-code-icon",3,"src"],[1,"features"],[1,"container"],[1,"type"],[1,"close-icon",3,"click"],[1,"ask-editor"],[1,"avatar",3,"src"],[2,"width","calc(100% - 30px)","min-height","110px","margin","5px 0",3,"editor-created","editor-paste","editor-content-change","editor-post","ngStyle","placeholder"],[1,"ask-type"],[1,"free",3,"click","ngClass"],[1,"select-icon",3,"ngClass"],[1,"pay",3,"click"],[1,"hide"],[1,"select-switch",3,"handle-change","isChecked","disabled","buttonSize"],[3,"update-files","picLength","isMutiple","noUseImgStore"],[1,"post-topic-btn"],[1,"pic",3,"hidden","ngClass"],[1,"explain"],[1,"post-action"],[1,"counts",3,"ngClass"],[1,"post-ask",3,"click","ngClass"],[3,"close-dialog","handle-editor","answerersList","askInfo"],[3,"selected-fee","close-pay","feeList","qrcodeUrl"],[3,"close-dialog","url"]],template:function(t,r){t&1&&(s(0,"div",3)(1,"div",4),M(2,"app-group-info"),h(3,vy,11,10),c(),M(4,"app-month-selector",5),c(),h(5,Py,42,34,"div",6),h(6,My,1,2,"app-ask-dialog",7),h(7,Oy,1,2,"app-ask-pay-dialog",8),h(8,wy,1,1,"app-payment-upgrade-
146dialog",9)),t&2&&(C("ngClass",R(7,Xw,r.askPayDialogVisible||r.askDialogVisible||r.askEditorVisible)),l(3),_(r.hideContent?-1:3),l(),C("hidden",!r.showMonthSelector),l(),_(r.askEditorVisible?5:-1),l(),_(r.askDialogVisible?6:-1),l(),_(r.askPayDialogVisible?7:-1),l(),_(r.showPaymentUpgradeDialog?8:-1));},dependencies:[K,De,fd,Ei,To,Cd,xd,vd,vm,bm,Mm,wm],styles:['@charset "UTF-8";.group-preview-container[_ngcontent-%COMP%]{width:343px;height:100%;overflow:hidden;border-radius:4px;display:flex;justify-content:space-between}.group-preview-container.up-index[_ngcontent-%COMP%]{z-index:3}.group-preview-container.has-tips[_ngcontent-%COMP%]{top:108px!important}.group-preview-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:first-child){margin-left:17px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]{width:343px;height:100%;overflow-x:hidden;overflow-y:scroll;box-sizing:content-box}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .group-content[_ngcontent-%COMP%]{margin-top:10px;border-radius:4px;overflow:hidden}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .coupons-entrance[_ngcontent-%COMP%]{width:280px;box-sizing:border-box;display:flex;background:var(--dweb-bg-highlight);border-radius:4px;padding:7px 16px;margin:10px 0;cursor:pointer}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .coupons-entrance[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:57px;height:60px;background-image:url("./media/[email protected]");background-position:-697px -770px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .coupons-entrance[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{margin-left:14px}
146.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .coupons-entrance[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .content1[_ngcontent-%COMP%]{font-family:PingFangSC-Medium;font-size:15px;color:var(--dweb-warning);margin:8px 0 5px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .coupons-entrance[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .content2[_ngcontent-%COMP%]{font-family:PingFangSC-Regular;font-size:14px;color:var(--dweb-text-placeholder);letter-spacing:0;line-height:18px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .coupons-entrance[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .content2[_ngcontent-%COMP%]   .right-arrow[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-296px -197px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .payment-upgrade-entrace[_ngcontent-%COMP%]{width:280px;box-sizing:border-box;display:flex;align-items:center;background:linear-gradient(180deg,var(--dweb-bg-warm-strong) 0%,var(--dweb-bg-panel) 100%);border:1px solid rgba(243,134,86,.33);border-radius:4px;padding:17px 23px 17px 12px;margin:10px 0}
146.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .payment-upgrade-entrace[_ngcontent-%COMP%]   .payment-icon[_ngcontent-%COMP%]{width:36px;height:36px;flex-shrink:0;background-image:url(/assets_dweb/images/icon_payment_security.png);background-size:contain;background-repeat:no-repeat;background-position:center}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .payment-upgrade-entrace[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{flex:1;margin-left:12px;line-height:20px;font-size:13px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .payment-upgrade-entrace[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .main-text[_ngcontent-%COMP%]{color:var(--dweb-text-primary)}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .payment-upgrade-entrace[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .action-text[_ngcontent-%COMP%]{color:var(--dweb-brand);cursor:pointer}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .payment-upgrade-entrace[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .right-arrow[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;margin-left:2px;background-image:url("./media/[email protected]");background-position:-297px -197px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .data-entrance[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .column-entrance[_ngcontent-%COMP%]{width:280px;box-sizing:border-box;background:var(--dweb-bg-panel);padding:15px 20px;cursor:pointer;position:relative;overflow:hidden}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .data-entrance[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .column-entrance[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:500;font-size:15px;color:var(--dweb-text-primary);margin-bottom:5px;display:flex;align-items:center;justify-content:space-between}
146.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .data-entrance[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .column-entrance[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{display:flex;align-items:center}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .data-entrance[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .column-title[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .column-entrance[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .column-title[_ngcontent-%COMP%]{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .data-entrance[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .new[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .column-entrance[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .new[_ngcontent-%COMP%]{width:36px;height:16px;line-height:16px;background:linear-gradient(315deg,#fd471a,#ff8760);border-radius:8px;font-size:12px;font-weight:500;text-align:center;color:#fff;margin-left:6px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .data-entrance[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .column-entrance[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-297px -197px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .data-entrance[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .column-entrance[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{font-size:12px;color:var(--dweb-text-faint);display:flex;flex-direction:column}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .data-entrance[_ngcontent-%COMP%]{margin-top:10px;border-radius:4px}
146.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .column-entrance[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{bottom:0;left:20px;right:20px;position:absolute;height:1px;background:var(--dweb-border-faint)}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .column-entrance[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:14px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .examination-entrance[_ngcontent-%COMP%]{width:280px;box-sizing:border-box;display:flex;justify-content:space-between;background:var(--dweb-bg-highlight);border-radius:4px;padding:15px 20px;height:50px;margin:10px 0;cursor:pointer;position:relative}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .examination-entrance[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-family:PingFangSC-Medium;font-size:15px;color:var(--dweb-warning);margin-bottom:5px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .examination-entrance[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]{display:flex;align-items:center}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .examination-entrance[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:16px;height:16px;border-radius:50%;background-color:var(--dweb-danger);font-family:PingFangSC-Regular;font-size:10px;color:#fff;text-align:center}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .examination-entrance[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-left:5px;width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-297px -197px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .write-clock[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;width:280px;height:74px;background:linear-gradient(180deg,#DFFFF9 0%,var(--dweb-bg-panel) 100%);border-radius:4px;cursor:pointer}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .write-clock[_ngcontent-%COMP%]   .edit-icon[_ngcontent-%COMP%]{width:32px;height:29px;margin-right:12px;margin-left:16px;background-image:url("./media/[email protected]")}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .write-clock[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]{display:flex;align-items:center}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .write-clock[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:15px;font-weight:700;color:var(--dweb-text-secondary);line-height:21px;margin-right:4px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .write-clock[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:9.9px;height:9.9px;background-image:url("./media/[email protected]");background-position:-296.6px -197.6px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .write-clock[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]{font-size:12px;color:var(--dweb-text-faint);line-height:18px;margin-top:5px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .write-clock[_ngcontent-%COMP%]   .clock[_ngcontent-%COMP%]{width:60px;height:47px;background-image:url("./media/[email protected]");position:absolute;top:2px;right:0}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .download-app-qrcode[_ngcontent-%COMP%]{position:relative;width:280px;box-sizing:border-box;background:linear-gradient(180deg,var(--dweb-bg-success-tint) 0%,var(--dweb-bg-panel) 100%);border-radius:4px;padding:36px 18px 24px;margin:10px 0;border:2px solid #FFFFFF}
146.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .download-app-qrcode[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]{position:absolute;right:20px;top:16px;width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-357px -197px;cursor:pointer}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .download-app-qrcode[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:flex;align-items:center}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .download-app-qrcode[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .qr-code-icon[_ngcontent-%COMP%]{width:76px;height:76px;flex-shrink:0;margin-right:16px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .download-app-qrcode[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{flex:1}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .download-app-qrcode[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:14px;font-weight:700;color:var(--dweb-text-primary);line-height:20px;margin-bottom:8px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .download-app-qrcode[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   .features[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .download-app-qrcode[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   .features[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:13px;color:var(--dweb-text-secondary);line-height:20px;position:relative;padding-left:12px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .download-app-qrcode[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   .features[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:"\\b7";position:absolute;left:0;color:var(--dweb-text-secondary)}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .hot-board[_ngcontent-%COMP%]{width:280px;box-sizing:border-box;background:var(--dweb-bg-panel);border-radius:4px;padding:12px 20px 20px;margin:10px 0;cursor:pointer}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .hot-board[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:500;color:var(--dweb-text-primary)}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .hot-board[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-297px -197px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .hot-board[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{font-size:12px;color:var(--dweb-text-faint);line-height:17px;padding:4px 0 12px;margin-bottom:3px;border-bottom:1px solid var(--dweb-border-faint)}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .hot-board[_ngcontent-%COMP%]   .news[_ngcontent-%COMP%]{margin-top:12px;display:flex;align-items:center;font-size:14px}
146.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .hot-board[_ngcontent-%COMP%]   .news[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]{font-weight:500;color:var(--dweb-danger);margin-right:10px;width:9px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .hot-board[_ngcontent-%COMP%]   .news[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{color:var(--dweb-text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .ask-container[_ngcontent-%COMP%]{width:280px;padding:12px 20px 20px;box-sizing:border-box;background:var(--dweb-bg-panel);margin-top:10px;border-radius:4px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .ask-container[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{bottom:0;left:0;right:0;position:absolute;height:1px;background:var(--dweb-border-faint)}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .ask-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{width:100%;position:relative;padding-bottom:12px;box-sizing:border-box}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .ask-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:500;font-size:14px;color:var(--dweb-text-primary)}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .ask-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{font-size:12px;color:var(--dweb-text-faint);margin-top:4px}
146.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .ask-container[_ngcontent-%COMP%]   .user-cards[_ngcontent-%COMP%]{margin-top:20px;display:flex;align-items:center}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .ask-container[_ngcontent-%COMP%]   .user-cards[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:50%;flex-shrink:0;cursor:pointer}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .ask-container[_ngcontent-%COMP%]   .user-cards[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]{flex:1;overflow:hidden;margin:0 16px 0 12px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .ask-container[_ngcontent-%COMP%]   .user-cards[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-weight:500;font-size:14px;height:19px;line-height:19px;color:var(--dweb-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .ask-container[_ngcontent-%COMP%]   .user-cards[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{font-size:12px;color:#999;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px;height:16px;line-height:16px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .ask-container[_ngcontent-%COMP%]   .user-cards[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{cursor:pointer;flex-shrink:0;width:28px;height:28px;background-image:url("./media/[email protected]");background-position:-102px -529px}
146.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .ask-container[_ngcontent-%COMP%]   .user-cards[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:hover{background-position:-142px -529px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .ask-container[_ngcontent-%COMP%]   .more[_ngcontent-%COMP%]{font-size:12px;color:var(--dweb-info);margin-top:20px;cursor:pointer}.ask-post[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--dweb-overlay);z-index:30;overflow-y:scroll}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]{width:1200px;background:var(--dweb-bg-panel);border-radius:4px;margin:60px auto;padding:0 20px 21px;box-sizing:border-box}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{position:relative}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:var(--dweb-text-primary, #2F3034);text-align:left;font-size:16px;height:50px;font-weight:700;display:flex;align-items:center}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .type[_ngcontent-%COMP%]{padding:0 2px;line-height:18px;height:18px;text-align:center;background:#16b9980d;border-radius:4px;font-size:12px;color:var(--dweb-brand);font-weight:400;margin-left:8px}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%]{position:absolute;right:0;top:calc(50% - 5px);background-image:url("./media/[email protected]");background-position:-357px -197px;width:10px;height:10px;cursor:pointer}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-editor[_ngcontent-%COMP%]{display:flex}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-editor[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:50%;margin-right:10px}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]{margin:0 -20px;height:36px;background:var(--dweb-bg-soft-blue);display:flex;align-items:center;font-size:13px;color:var(--dweb-text-muted);padding-right:30px;padding-left:24px}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .free[_ngcontent-%COMP%], .ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .pay[_ngcontent-%COMP%], .ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .hide[_ngcontent-%COMP%]{display:flex;align-items:center}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .free.disable[_ngcontent-%COMP%], .ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .pay.disable[_ngcontent-%COMP%], .ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .hide.disable[_ngcontent-%COMP%]{pointer-events:none}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .free.disable-sele[_ngcontent-%COMP%], .ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .pay.disable-sele[_ngcontent-%COMP%], .ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .hide.disable-sele[_ngcontent-%COMP%]{background-position:-671px -334px}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .free[_ngcontent-%COMP%]   .select-switch[_ngcontent-%COMP%], .ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .pay[_ngcontent-%COMP%]   .select-switch[_ngcontent-%COMP%], .ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .hide[_ngcontent-%COMP%]   .select-switch[_ngcontent-%COMP%]{margin-right:6px}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .free[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .pay[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .hide[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{background-image:url("./media/[email protected]");background-position:-671px -314px;width:16px;height:16px;margin-right:6px;cursor:pointer}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .free[_ngcontent-%COMP%]   i.selected[_ngcontent-%COMP%], .ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .pay[_ngcontent-%COMP%]   i.selected[_ngcontent-%COMP%], .ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .hide[_ngcontent-%COMP%]   i.selected[_ngcontent-%COMP%]{background-position:-671px -354px}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .pay[_ngcontent-%COMP%]{margin-left:20px}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .ask-type[_ngcontent-%COMP%]   .hide[_ngcontent-%COMP%]{margin-left:24px;height:16px;padding-left:24px;border-left:1px solid var(--dweb-border-tooltip)}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:space-between;position:relative;margin:18px 0 0}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]{display:none;position:absolute;bottom:38px;left:-28px;width:70px;background:var(--dweb-bg-warm);border:1px solid var(--dweb-border-tooltip);box-shadow:0 8px 16px 0 var(--dweb-border-faint);border-radius:6px;padding:10px;box-sizing:border-box;font-size:12px;color:var(--dweb-text-body);line-height:20px}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]:before{content:"";position:absolute;display:block;width:0;height:0;border:5px solid var(--dweb-border-tooltip);border-right:5px solid transparent;border-bottom:5px solid transparent;border-top-left-radius:1px;transform:rotate(-135deg);bottom:-5px;left:28px}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]:after{content:"";position:absolute;display:block;width:0;height:0;border:6px solid var(--dweb-bg-warm);border-right:6px solid transparent;border-bottom:6px solid transparent;transform:rotate(-135deg);bottom:-3px;left:27px}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .pic[_ngcontent-%COMP%]{position:relative;width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-384px -307px;margin-right:16px!important;cursor:pointer}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .pic.inactive[_ngcontent-%COMP%]{pointer-events:none;background-position:-384px -380px}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .pic[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block;width:72px}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{cursor:pointer;margin-right:24px}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:last-child{margin-right:0}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .post-action[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:12px;color:var(--dweb-text-faint);margin-right:6px}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .post-action[_ngcontent-%COMP%]   .counts.over-limit[_ngcontent-%COMP%]{color:red}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .post-ask[_ngcontent-%COMP%]{width:50px;height:24px;background:var(--dweb-disabled);box-shadow:0 1px 2px 0 var(--dweb-border-faint);border-radius:2px;text-align:center;line-height:24px;color:#fff;font-size:12px;pointer-events:none;cursor:pointer}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .post-ask.can-post[_ngcontent-%COMP%]{background:var(--dweb-brand);pointer-events:visible}
146.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .post-ask.can-post[_ngcontent-%COMP%]:hover{background-color:#14a689}  .ql-container{max-height:283px}  .ql-editor{font-size:15px!important}  .ql-editor:before{font-size:14px!important}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.group-preview-container[_ngcontent-%COMP%]   .coupons-entrance[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .coupons-entrance[_ngcontent-%COMP%]   .right-arrow[_ngcontent-%COMP%], .group-promos[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%], .group-preview-wrapper[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .write-clock[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .examination-entrance[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .ask-icon[_ngcontent-%COMP%], .ask-type[_ngcontent-%COMP%]   .select-icon[_ngcontent-%COMP%], .post-topic-btn[_ngcontent-%COMP%]   .pic[_ngcontent-%COMP%], .ask-post[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%], .download-app-qrcode[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.write-clock[_ngcontent-%COMP%]   .edit-icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:100%}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.write-clock[_ngcontent-%COMP%]   .clock[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:100%}}@media screen and (max-width:2000px){.group-preview-container[_ngcontent-%COMP%]{width:303px}.group-preview-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:first-child){margin-left:10px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .coupons-entrance[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .payment-upgrade-entrace[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .data-entrance[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .column-entrance[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .examination-entrance[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .write-clock[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .download-app-qrcode[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .hot-board[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .ask-container[_ngcontent-%COMP%]{width:250px}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]{width:900px}}html[data-theme=dark][_nghost-%COMP%]   .group-preview-container[_ngcontent-%COMP%]   .ask-container[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .group-preview-container[_ngcontent-%COMP%]   .ask-container[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{background:var(--dweb-border-subtle)}@media screen and (max-width:1550px){.group-preview-container[_ngcontent-%COMP%]{width:303px}
146.group-preview-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:first-child){margin-left:10px}.group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .coupons-entrance[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .payment-upgrade-entrace[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .data-entrance[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .column-entrance[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .examination-entrance[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .write-clock[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .download-app-qrcode[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .hot-board[_ngcontent-%COMP%], .group-preview-container[_ngcontent-%COMP%]   .group-preview-wrapper[_ngcontent-%COMP%]   .ask-container[_ngcontent-%COMP%]{width:250px}.ask-post[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]{width:700px}}']});let o=n;return o;})();function ky(o,n){if(o&1){let i=y();s(0,"app-file-preview",11),f("close-preview",function(t){b(i);let r=d();return P(r.watchClose(t));}),c();}if(o&2){let i=d();C("file",i.selectedFile)("topic",i.topicData);}}function Sy(o,n){if(o&1){let i=y();s(0,"app-nps-dialog",12),f("handle-close",function(){b(i);let t=d();return P(t.close());}),c();}}var km=(()=>{let n=class n{constructor(e,t){this.groupFile=e,this.mainService=t,this.previewVisible=!1,this.showMonthSelector=!0,this.npsVisible=!1,this.subscriptions=[],this.NPS_CLOSED=localStorage.getItem("NPS_CLOSED"),this.NPS_30_DAYS=localStorage.getItem("NPS_30_DAYS");}ngOnInit(){this.doSubscribe(),this.mainService.getOrderRankingList(50),this.mainService.getPayRankingList(50),this.mainService.getLivenessRankingList(50),this.mainService.getNewStarRankingList(50),this.mainService.getRenewalRankingList(50);}doSubscribe(){let e=this.groupFile.filePreview$.subscribe(a=>{this.selectedFile=a.file,this.topicData=a.topic,this.previewVisible=!0;}),t=this.mainService.showMonthSelector$.subscribe(a=>{this.showMonthSelector=a;}),r=this.mainService.npsStatus$.subscribe(a=>{a||(this.NPS_CLOSED&&this.NPS_CLOSED==="2"?this.npsVisible=!1:this.NPS_30_DAYS?fn(new Date(),new Date(this.NPS_30_DAYS))>=30?this.npsVisible=!0:this.npsVisible=!1:this.npsVisible=!0);});this.subscriptions.push(e,t,r);}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}watchClose(e){this.previewVisible=!1;}close(){this.NPS_30_DAYS||localStorage.setItem("NPS_30_DAYS",Fe(new Date(),"yyyy-MM-dd'T'HH:mm:ss")),this.NPS_CLOSED?localStorage.setItem("NPS_CLOSED","2"):localStorage.setItem("NPS_CLOSED","1"),this.npsVisible=!1;}};n.ɵfac=function(t){return new(t||n)(O(ks),O(oe));},n.ɵcmp=F({type:n,selectors:[["app-topic-flow"]],standalone:!1,decls:17,vars:3,consts:[[1,"topic-flow-container"],[1,"flow-group-list-container"],[1,"flow-outlet"],[1,"flow-group-preview-container"],[3,"showMonthSelector"],[1,"btn-container"],["id","js-gotop","goto-top","",1,"go-top"],[1,"icon"],[1,"nps",3,"click"],[1,"nps-tip"],[3,"file","topic"],[3,"close-preview","file","topic"],[3,"handle-close"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1),M(2,"app-group-list"),c(),s(3,"div",2),M(4,"router-outlet"),c(),s(5,"div",3),M(6,"app-group-preview",4),s(7,"div",5)(8,"div",6),M(9,"div",7),c(),M(10,"app-help-btn"),s(11,"div",8),f("click",function(){return r.npsVisible=!r.npsVisible;}),M(12,"div",7),s(13,"div",9),g(14,"\u6EE1\u610F\u5EA6\u8C03\u67E5"),c()()()()(),h(15,ky,1,2,"app-file-preview",10),h(16,Sy,1,0,"app-nps-dialog")),t&2&&(l(6),C("showMonthSelector",r.showMonthSelector),l(9),_(r.previewVisible?15:-1),l(),_(r.npsVisible?16:-1));},dependencies:[yi,Ss,Os,ym,ht,Lo,ys],styles:['.topic-flow-container[_ngcontent-%COMP%]{display:flex;align-items:flex-start;margin:0 auto;width:1906px;padding-top:50px}.topic-flow-container[_ngcontent-%COMP%]   .flow-group-list-container[_ngcontent-%COMP%]{position:sticky;top:50px;flex-shrink:0;height:calc(100vh - 80px)}.topic-flow-container[_ngcontent-%COMP%]   .flow-outlet[_ngcontent-%COMP%]{flex:1;min-width:0;margin-left:10px}.topic-flow-container[_ngcontent-%COMP%]   .flow-group-preview-container[_ngcontent-%COMP%]{position:sticky;top:60px;flex-shrink:0;height:calc(100vh - 80px);margin-left:10px}.topic-flow-container.has-tips[_ngcontent-%COMP%]{padding-top:98px!important}.topic-flow-container[_ngcontent-%COMP%]   .copy-input[_ngcontent-%COMP%]{position:fixed;top:-300px}.topic-flow-container[_ngcontent-%COMP%]   .btn-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:absolute;right:-40px;bottom:60px}.topic-flow-container[_ngcontent-%COMP%]   .btn-container[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}.topic-flow-container[_ngcontent-%COMP%]   .go-top[_ngcontent-%COMP%]{display:none;cursor:pointer;position:relative;overflow:hidden;width:40px;height:40px;border-radius:8px;background-color:var(--dweb-bg-panel);box-shadow:0 8px 20px 0 var(--dweb-border-faint)}.topic-flow-container[_ngcontent-%COMP%]   .go-top[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:18px;height:17px;margin:12px auto;background-image:url("./media/[email protected]");background-position:-265px -311px}.topic-flow-container[_ngcontent-%COMP%]   .go-top[_ngcontent-%COMP%]:hover{background-color:var(--dweb-bg-subtle)}.topic-flow-container[_ngcontent-%COMP%]   .nps[_ngcontent-%COMP%]{cursor:pointer;display:flex;position:relative;width:40px;height:40px;border-radius:8px;background-color:var(--dweb-bg-panel);box-shadow:0 8px 20px 0 var(--dweb-border-faint)}.topic-flow-container[_ngcontent-%COMP%]   .nps[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:18px;height:22px;margin:auto;background-image:url("./media/[email protected]");background-position:-233px -273px}.topic-flow-container[_ngcontent-%COMP%]   .nps[_ngcontent-%COMP%]:hover{background-color:var(--dweb-bg-subtle)}.topic-flow-container[_ngcontent-%COMP%]   .nps[_ngcontent-%COMP%]   .nps-tip[_ngcontent-%COMP%]{display:none;width:50px;position:absolute;
146left:-70px;border:1px solid var(--dweb-border-tooltip);background:var(--dweb-bg-panel);color:var(--dweb-text-muted);font-size:13px;padding:6px;border-radius:4px;text-align:center}.topic-flow-container[_ngcontent-%COMP%]   .nps[_ngcontent-%COMP%]:hover   .nps-tip[_ngcontent-%COMP%]{display:block}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.go-top[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .nps[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}@media screen and (max-width:2000px){.topic-flow-container[_ngcontent-%COMP%]{max-width:1526px;width:auto;padding-left:48px;padding-right:48px;margin:auto}}@media screen and (max-width:1220px){.topic-flow-container[_ngcontent-%COMP%]{width:auto;margin:0 24px;padding-left:0;padding-right:0}.topic-flow-container[_ngcontent-%COMP%]   .flow-group-preview-container[_ngcontent-%COMP%]{display:none}}@media screen and (max-width:900px){.topic-flow-container[_ngcontent-%COMP%]{margin:0}.topic-flow-container[_ngcontent-%COMP%]   .flow-group-list-container[_ngcontent-%COMP%]{display:none}}']});let o=n;return o;})();var Ty=["dynamicComponent"];function Ey(o,n){}var Sm=(()=>{let n=class n{constructor(e,t,r){this.componentFactoryResolver=e,this.indexService=t,this.topicFlowDynamicService=r,this.subscriptions=[];}ngOnInit(){this.doSubscribe(),this.indexService.topicPreviewReferrer=document.referrer,this.loadComponent();}doSubscribe(){let e=this.topicFlowDynamicService.reRender$.subscribe(t=>{this.clearComponent(),this.loadComponent(t);});this.subscriptions.push(e);}loadComponent(e){e||(e=this.indexService.hasUserInfo()?km:va),this.dynamicComponent.createComponent(e);}clearComponent(){this.dynamicComponent.clear();}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe()),this.clearComponent();}};n.ɵfac=function(t){return new(t||n)(O(Wn),O(q),O(vs));},n.ɵcmp=F({type:n,selectors:[["app-topic-flow-dynamic"]],viewQuery:function(t,r){if(t&1&&_e(Ty,7,nn),t&2){let a;ee(a=te())&&(r.dynamicComponent=a.first);}},standalone:!1,decls:2,vars:0,consts:[["dynamicComponent",""]],template:function(t,r){t&1&&qt(0,Ey,0,0,"ng-template",null,0,lr);},encapsulation:2});let o=n;return o;})();var wl=xi(wo());var Dy=["frame"];function Iy(o,n){if(o&1&&ci(0,"iframe",18,0),o&2){let i=d(2);Ur("src",i.frameUrl(),cp);}}function Fy(o,n){o&1&&(st(0,"div",19),ci(1,"span",22),st(2,"span",23),g(3,"\u52A0\u8F7D\u4E2D..."),yt()());}function Ay(o,n){if(o&1){let i=y();st(0,"div",20)(1,"p",24),g(2,"\u767B\u5F55\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u540E\u4F7F\u7528"),yt(),st(3,"button",25),Ln("click",function(){b(i);let t=d(2);return P(t.goLogin());}),g(4," \u53BB\u767B\u5F55 "),yt()();}}function Vy(o,n){if(o&1){let i=y();st(0,"div",21)(1,"p",24),g(2),yt(),st(3,"button",26),Ln("click",function(){b(i);let t=d(2);return P(t.retry());}),g(4," \u91CD\u8BD5 "),yt()();}if(o&2){let i=d(2);l(2),A(i.errorText());}}function Ry(o,n){if(o&1){let i=y();st(0,"div",9)(1,"div",10)(2,"span",11),g(3,"AI \u52A9\u624B"),yt(),st(4,"div",12)(5,"button",13),Ln("click",function(){b(i);let t=d();return P(t.openWorkspace());}),or(),st(6,"svg",14),ci(7,"path",15),yt()(),rr(),st(8,"button",16),Ln("click",function(){b(i);let t=d();return P(t.close());}),yt()()(),st(9,"div",17),h(10,Iy,2,1,"iframe",18),h(11,Fy,4,0,"div",19),h(12,Ay,5,0,"div",20),h(13,Vy,5,1,"div",21),yt()();}if(o&2){let i=d();zt("open",i.open()),l(10),_(i.mounted()?10:-1),l(),_(i.status()==="loading"?11:-1),l(),_(i.status()==="login-required"?12:-1),l(),_(i.status()==="error"?13:-1);}}var Tm=new URL(ie.GARDEN_URL).origin,Ly={llm_unavailable:"AI \u6682\u65F6\u4E0D\u53EF\u7528\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",group_unavailable:"\u4F60\u4E0D\u662F\u8BE5\u661F\u7403\u6210\u5458\uFF0C\u6216\u661F\u7403\u4E0D\u53EF\u7528",init_failed:"\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",identity_mismatch:"\u8EAB\u4EFD\u4E0D\u4E00\u81F4\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u540E\u518D\u8BD5"},By="AI \u52A9\u624B\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",Ny="host:switch-group",zy=/^\d{1,32}$/;function Ol(o){let n=String(o!=null?o:"").trim();return zy.test(n)?n:"";}var Em=(()=>{let n=class n{constructor(){this.groupId=_p.required(),this.sanitizer=Q(Jr),this.router=Q(ue),this.frameRef=fp("frame"),this.open=mn(!1),this.status=mn("loading"),this.everOpened=mn(!1),this.mounted=mn(!1),this.errorReason=mn(null),this.hostReady=!1,this.frameGroupId=mn(""),this.syncedGroupId="",this.frameUrl=ac(()=>this.sanitizer.bypassSecurityTrustResourceUrl(`${ie.GARDEN_URL}
146/mushroom/workspace.html?embed=iframe&groupId=${this.frameGroupId()}`)),this.errorText=ac(()=>{var e,t;return(t=Ly[(e=this.errorReason())!=null?e:""])!=null?t:By;}),ec(()=>{let e=Ol(this.groupId());rc(()=>this.applyGroupId(e));}),At(window,"message").pipe(ld()).subscribe(e=>this.handleMessage(e));}toggle(){if(this.open()){this.close();return;}if(!this.mounted()){let e=Ol(this.groupId());this.frameGroupId.set(e),this.syncedGroupId=e;}this.everOpened.set(!0),this.mounted.set(!0),this.open.set(!0);}close(){this.open.set(!1);}retry(){this.hostReady=!1;let e=Ol(this.groupId());this.frameGroupId.set(e),this.syncedGroupId=e,this.status.set("loading"),this.errorReason.set(null),this.mounted.set(!1),setTimeout(()=>this.mounted.set(!0));}applyGroupId(e){if(!(!e||e===this.syncedGroupId)){if(this.hostReady&&this.postSwitchGroup(e)){this.syncedGroupId=e,this.status.set("ready"),this.errorReason.set(null);return;}this.frameGroupId.set(e),this.syncedGroupId=e,this.status.set("loading"),this.errorReason.set(null);}}postSwitchGroup(e){var r;let t=(r=this.frameRef())==null?void 0:r.nativeElement.contentWindow;return t?(t.postMessage({type:Ny,groupId:e},Tm),!0):!1;}goLogin(){this.router.navigate(["login"]);}openWorkspace(){window.open(`${ie.GARDEN_URL}/mushroom/workspace.html`,"_blank");}handleMessage(e){var r,a,p;if(e.origin!==Tm)return;let t=(r=e.data)==null?void 0:r.type;t==="mushroom:ready"?(this.hostReady=!0,this.status.set("ready"),this.errorReason.set(null)):t==="mushroom:login-required"?(this.hostReady=!1,this.status.set("login-required")):t==="mushroom:error"&&(this.errorReason.set((p=(a=e.data)==null?void 0:a.reason)!=null?p:null),this.status.set("error"));}};n.ɵfac=function(t){return new(t||n)();},n.ɵcmp=F({type:n,selectors:[["app-mushroom-panel"]],viewQuery:function(t,r){t&1&&dp(r.frameRef,Dy,5),t&2&&gp();},inputs:{groupId:[1,"groupId"]},decls:9,vars:3,consts:[["frame",""],["type","button",1,"mushroom-entry",3,"click"],["viewBox","0 0 25 24","fill","none","aria-hidden","true",1,"mushroom-entry-icon"],["transform","translate(2, 3)"],["d","M12.0030576,1.0721566 C7.58477959,1.0721566 4.00305759,4.6538786 4.00305759,9.0721566 C4.00305759,10.1568379 4.21892651,11.1911003 4.61004659,12.1343261 C4.81198609,12.6213237 5.06064349,13.0840531 5.35042829,13.5169237 C5.64248592,13.9531894 5.97631862,14.3591261 6.34620334,14.7290108 C6.71608805,15.0988956 7.12202478,15.4327283 7.55829046,15.7247859 C7.99116108,16.0145707 8.45389044,16.2632281 8.94088806,16.4651676 C9.88411384,16.8562877 10.9183763,17.0721566 12.0030576,17.0721566 C14.2121966,17.0721566 16.2121966,16.1767261 17.6599118,14.7290108 C19.1076271,13.2812956 20.0030576,11.2812956 20.0030576,9.0721566","stroke","currentColor","stroke-width","2","stroke-linecap","round"],["d","M4.61542171,7.76343593 C1.77724123,8.25483969 -0.0884503042,9.08643061 -0.0884503042,10.0295664 C-0.0884503042,11.0721818 2.19157475,11.9784803 5.54492397,12.4395704 C7.04776288,12.6462127 8.7661767,12.7634359 10.5915477,12.7634359 C12.2361342,12.7634359 13.7939004,12.6682825 15.1854103,12.4983096 C15.5438336,12.4545282 15.8912263,12.4057827 16.226231,12.3524208","stroke","currentColor","stroke-width","2","stroke-linecap","round","transform","translate(8.0689, 10.2634) rotate(-36) translate(-8.0689, -10.2634)"],["fill","currentColor","transform","translate(18.7264, 2.1981) rotate(6) translate(-18.7264, -2.1981)","points","18.7286273 3.44045234 16.7334807 4.19117005 17.4841193 2.1959444 16.7264352 0.198100717 18.7242431 0.955749099 20.7193897 0.20503138 19.9687511 2.20025703 20.7264352 4.19810072"],[1,"mushroom-entry-tip"],[1,"mushroom-panel",3,"open"],[1,"mushroom-panel"],[1,"mushroom-panel-header"],[1,"mushroom-panel-title"],[1,"mushroom-panel-actions"],["type","button","aria-label","\u5DE5\u4F5C\u53F0","title","\u8BBF\u95EE\u5DE5\u4F5C\u53F0",1,"mushroom-panel-workspace",3,"click"],["viewBox","0 0 1024 1024","aria-hidden","true"],["fill","currentColor","d","M896.1 115H128c-35.3 0-63.9 28.6-64 63.9V689c-0.1 35.3 28.5 64 63.8 64H896.1c35.3 0 63.9-28.6 63.9-63.9V179c0-35.3-28.6-64-63.9-64z m-25.6 546.1H153.7V202h716.8v459.1zM64.1 840.2c0 35.3 28.6 63.9 63.9 64h768.2c35.3 0 63.9-28.6 63.9-63.9v-56.5H64l0.1 56.4z m409.1-13.1h77.7c9.6 0 17.1 7.6 17.1 16.8-0.1 9.3-7.7 16.9-17 16.8h-77.8c-9.3 0.2-17-7.3-17.2-16.6v-0.2c0-9.2 7.6-16.8 17.2-16.8z"],["type","button","aria-label","\u5173\u95ED",1,"mushroom-panel-close",3,"click"],[1,"mushroom-panel-body"],["title","AI \u52A9\u624B","allow","clipboard-write",1,"mushroom-frame",3,"src"],[1,"mushroom-loading"],[1,"mushroom-login"],[1,"mushroom-error"],[1,"mushroom-loading-dot"],[1,"mushroom-loading-text"],[1,"mushroom-state-text"],["type","button",1,"mushroom-login-btn",3,"click"],["type","button",1,"mushroom-retry",3,"click"]],template:function(t,r){t&1&&(st(0,"button",1),Ln("click",function(){return r.toggle(
146);}),or(),st(1,"svg",2)(2,"g",3),ci(3,"path",4)(4,"path",5)(5,"polygon",6),yt()(),rr(),st(6,"span",7),g(7,"AI \u52A9\u624B"),yt()(),h(8,Ry,14,6,"div",8)),t&2&&(zt("active",r.open()),l(8),_(r.everOpened()?8:-1));},styles:['[_nghost-%COMP%]{display:contents}.mushroom-entry[_ngcontent-%COMP%]{position:fixed;right:0;top:42%;z-index:40;display:flex;flex-direction:column;align-items:center;justify-content:center;width:44px;padding:10px 0;border:2px solid var(--dweb-bg-panel);border-right:none;border-radius:8px 0 0 8px;background:linear-gradient(180deg,var(--dweb-bg-success-tint) 0%,var(--dweb-bg-panel) 100%);box-shadow:0 8px 20px 0 var(--dweb-shadow);color:var(--dweb-text-primary);cursor:pointer;transition:transform .25s ease,background .2s ease}.mushroom-entry[_ngcontent-%COMP%]:hover{background:linear-gradient(180deg,var(--dweb-bg-brand-soft) 0%,var(--dweb-bg-hover) 100%)}.mushroom-entry.active[_ngcontent-%COMP%]{transform:translate(-400px)}.mushroom-entry-icon[_ngcontent-%COMP%]{display:block;width:20px;height:20px}.mushroom-entry-tip[_ngcontent-%COMP%]{width:14px;margin-top:6px;font-size:12px;line-height:14px;text-align:center;word-break:break-all}.mushroom-panel[_ngcontent-%COMP%]{position:fixed;right:0;top:60px;bottom:20px;z-index:40;display:flex;flex-direction:column;width:400px;border:1px solid var(--dweb-border-tooltip);border-radius:12px 0 0 12px;background-color:var(--dweb-bg-panel);box-shadow:0 8px 30px 0 var(--dweb-shadow);overflow:hidden;transform:translate(100%);visibility:hidden;transition:transform .25s ease,visibility .25s ease}.mushroom-panel.open[_ngcontent-%COMP%]{transform:translate(0);visibility:visible}.mushroom-panel-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;height:44px;padding:0 12px 0 16px;border-bottom:1px solid var(--dweb-border-faint-6)}.mushroom-panel-title[_ngcontent-%COMP%]{font-size:15px;font-weight:500;color:var(--dweb-text-primary)}.mushroom-panel-actions[_ngcontent-%COMP%]{display:flex;align-items:center}.mushroom-panel-actions[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-left:8px}.mushroom-panel-workspace[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;background-color:transparent;color:var(--dweb-text-muted);cursor:pointer;transition:color .2s ease}.mushroom-panel-workspace[_ngcontent-%COMP%]:hover{color:var(--dweb-text-primary)}.mushroom-panel-workspace[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{display:block;width:18px;height:18px}.mushroom-panel-close[_ngcontent-%COMP%]{position:relative;width:24px;height:24px;border:none;background-color:transparent;cursor:pointer}.mushroom-panel-close[_ngcontent-%COMP%]:before, .mushroom-panel-close[_ngcontent-%COMP%]:after{content:"";position:absolute;left:5px;top:11px;width:14px;height:1.5px;background-color:var(--dweb-text-muted)}.mushroom-panel-close[_ngcontent-%COMP%]:before{transform:rotate(45deg)}.mushroom-panel-close[_ngcontent-%COMP%]:after{transform:rotate(-45deg)}.mushroom-panel-close[_ngcontent-%COMP%]:hover:before, .mushroom-panel-close[_ngcontent-%COMP%]:hover:after{background-color:var(--dweb-text-primary)}.mushroom-panel-body[_ngcontent-%COMP%]{position:relative;flex:1;min-height:0}.mushroom-frame[_ngcontent-%COMP%]{display:block;width:100%;height:100%;border:none}.mushroom-loading[_ngcontent-%COMP%], .mushroom-login[_ngcontent-%COMP%], .mushroom-error[_ngcontent-%COMP%]{position:absolute;left:0;top:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 24px;background-color:var(--dweb-bg-panel);text-align:center}.mushroom-state-text[_ngcontent-%COMP%]{margin:0;font-size:14px;line-height:22px;color:var(--dweb-text-muted)}.mushroom-loading-text[_ngcontent-%COMP%]{margin-top:10px;font-size:14px;color:var(--dweb-text-muted)}.mushroom-loading-dot[_ngcontent-%COMP%]{width:20px;height:20px;border:2px solid var(--dweb-border-strong);border-top-color:var(--dweb-brand-spinner);border-radius:50%;animation:_ngcontent-%COMP%_mushroom-spin .8s linear infinite}.mushroom-login-btn[_ngcontent-%COMP%], .mushroom-retry[_ngcontent-%COMP%]{margin-top:16px;padding:7px 20px;border:none;border-radius:6px;background-color:var(--dweb-brand);color:var(--dweb-text-on-color);font-size:14px;cursor:pointer}.mushroom-login-btn[_ngcontent-%COMP%]:hover, .mushroom-retry[_ngcontent-%COMP%]:hover{background-color:var(--dweb-brand-hover)}@keyframes _ngcontent-%COMP%_mushroom-spin{to{transform:rotate(360deg)}}
146@media screen and (max-width:900px){.mushroom-panel[_ngcontent-%COMP%]{width:calc(100vw - 44px)}.mushroom-entry.active[_ngcontent-%COMP%]{transform:translate(calc(44px - 100vw))}}']});let o=n;return o;})();var Dm=o=>({actived:o});function jy(o,n){o&1&&M(0,"span",3);}function $y(o,n){o&1&&M(0,"span",4);}function Hy(o,n){if(o&1){let i=y();s(0,"div",2),f("click",function(t){let r=b(i),a=r.$implicit,p=r.$index,m=d();return P(m.selectMenu(t,a,p));}),h(1,jy,1,0,"span",3),g(2),h(3,$y,1,0,"span",4),c();}if(o&2){let i=n.$implicit,e=d();C("ngClass",R(4,Dm,i.menu_id===e.activedMenu.id)),l(),_(i.preset_type==="digests"?1:-1),l(),V(" ",i.title," "),l(),_(i.preset_type==="unanswered_questions"&&e.unansweredCount>0||i.hasNew?3:-1);}}function Uy(o,n){if(o&1){let i=y();s(0,"div",2),f("click",function(t){let r=b(i).$implicit,a=d(2);return P(a.selectSubMenu(t,r));}),g(1),$(2,"transformTagName"),c();}if(o&2){let i=n.$implicit,e=d(2);C("ngClass",R(4,Dm,i.menu_id===e.activedSubMenu.id)),l(),V(" ",Z(2,2,i.title)," ");}}function qy(o,n){if(o&1&&(M(0,"div",5),s(1,"div",6),B(2,Uy,3,6,"div",1,Y),c()),o&2){let i=d();l(2),N(i.subMenus);}}var Im=(()=>{let n=class n{constructor(e,t,r,a,p){this.http=e,this.menuService=t,this.topicService=r,this.indexService=a,this.mainService=p,this.subscriptions=[],this.activedMenu={title:"\u5168\u90E8\u4E3B\u9898",id:0,tagId:0},this.activedSubMenu={title:"\u5168\u90E8",id:0},this.selectVisible=!1,this.groupMenus=[],this.subMenus=[];}clickFunc(){this.selectVisible=!1;}ngOnChanges(e){e.groupId&&(this.groupMenus=[],this.menuService.getMenus(this.groupId));}ngOnInit(){this.doSubscribe();}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}doSubscribe(){let e=this.menuService.groupMenus$.subscribe(a=>{this.activedMenu.title="\u5168\u90E8\u4E3B\u9898",this.activedMenu.id=a[0].menu_id,this.subMenus=[];let p=!this.indexService.isGroupOwner&&this.indexService.isMember;this.groupMenus=p?a.filter(m=>m.preset_type!=="unanswered_questions"):a,document.body.scrollTop=document.documentElement.scrollTop=0,setTimeout(()=>{this.menuService.getMenusReadTime(this.groupId);},500),this.putActiveMenuReadTime();}),t=this.menuService.menuReadTime$.subscribe(a=>{this.setMenuNotification(a);}),r=this.mainService.topic$.subscribe(a=>{this.indexService.requestTopicsByMenu&&(this.indexService.requestTopicsByMenu=!1,this.putActiveMenuReadTime());});this.subscriptions.push(e,t,r);}setMenuNotification(e){return ye(this,null,function*(){for(let t=0;t<this.groupMenus.length;t++){let r=this.groupMenus[t],a=e.findIndex(p=>p.menu_id===r.menu_id);if(a>-1&&r.title!=="\u6700\u65B0"&&r.preset_type!=="checkins"){if(r.preset){let p=Fe(pc(ge(e[a].last_read_time),1),"yyyy-MM-dd'T'HH:mm:ss.SSSXX");(yield Ys(this.http.get(j.getTopics(this.groupId,r.preset_type,encodeURIComponent(p),"",1)))).resp_data.topics.length>0&&(this.groupMenus[t].hasNew=!0);}else{let p=r.hashtag.hashtag_id,m=yield Ys(this.http.get(j.getTagTopics(p,"",1)));if(m.resp_data.topics.length>0){let v=m.resp_data.topics[0].create_time,x=e[a].last_read_time;lc(new Date(v),new Date(x))===1&&(this.groupMenus[t].hasNew=!0);}}}else if(a>-1&&r.preset_type==="checkins"){let p=Fe(pc(ge(e[a].last_read_time),1),"yyyy-MM-dd'T'HH:mm:ss.SSSXX"),m=yield er(this.http.get(j.getCheckins(this.groupId,"ongoing")));if(m.resp_data.checkins.length>0){let v=m.resp_data.checkins[0].create_time,x=e[a].last_read_time;lc(new Date(v),new Date(x))===1&&(this.groupMenus[t].hasNew=!0);}}}});}showSelect(e){e.stopPropagation(),this.selectVisible=!this.selectVisible,this.topicService.closePanel("operation"),this.topicService.closePanel("addTag");}selectMenu(e,t,r){e&&e.stopPropagation(),this.activedMenu.title=t.title,this.activedMenu.id=t.menu_id,this.activedMenu.tagId=t.hashtag?t.hashtag.hashtag_id:0,this.selectVisible=!1;let a=this.mainService.selectedBeginTime,p=this.mainService.selectedEndTime;if(this.mainService.showLoading(),this.mainService.menuIndex=r,this.mainService.subHashtagIds="",this.mainService.currentSubTagId="",t.sub_menus?this.subMenus=t.sub_menus:this.subMenus=[],t.preset)this.mainService.clearDataWithoutStickyTopicList(),this.mainService.scope=t.preset_type,this.mainService.switchMonthSelector(t.preset_type!=="checkins"),this.mainService.getTopicByScope(this.groupId,this.mainService.scope,encodeURIComponent(a),encodeURIComponent(p)),this.mainService.hashtagId=0,t.preset_type==="checkins"&&this.putActiveMenuReadTime("checkins");else if(this.mainService.clearData(),this.mainService.scope="custom_hashtag",this.mainService.switchMonthSelector(!0),this.mainService.hashtagId=t.hashtag.hashtag_id,this.subMenus.length){let m=this.subMenus.map(v=>{var x;return(x=v.hashtag)==null?void 0:x.hashtag_id;}
146).filter(Boolean).join(",");this.mainService.subHashtagIds=`${t.hashtag.hashtag_id},${m}`,p?this.mainService.getSubTagTopics(this.mainService.subHashtagIds,encodeURIComponent(p)):this.mainService.getSubTagTopics(this.mainService.subHashtagIds);}else p?this.mainService.getTagTopics(this.groupId,encodeURIComponent(p)):this.mainService.getTagTopics(this.groupId);this.indexService.requestTopicsByMenu=!0,this.groupMenus[r].hasNew=!1;}selectSubMenu(e,t){e&&e.stopPropagation();let r=this.mainService.selectedEndTime;this.activedSubMenu.title=t.title,this.activedSubMenu.id=t.menu_id,this.mainService.clearData(),this.mainService.currentSubTagId=t.menu_id===0?"":String(t.hashtag.hashtag_id),r?this.mainService.getSubTagTopics(t.menu_id===0?this.mainService.subHashtagIds:this.mainService.currentSubTagId,encodeURIComponent(r)):this.mainService.getSubTagTopics(t.menu_id===0?this.mainService.subHashtagIds:this.mainService.currentSubTagId);}selectNewestMenu(){for(let e=0;e<this.groupMenus.length;e++){let t=this.groupMenus[e];if(t.preset_type==="all"){this.selectMenu(null,t,e);break;}}}putActiveMenuReadTime(e="topic"){let t={req_data:{menus:[{menu_id:this.activedMenu.id}]}};this.http.put(j.getMenusReadTime(this.groupId),t).subscribe(r=>{}),e!=="checkins"&&this.http.get(j.getTopics(this.groupId,"all","","",1)).subscribe(r=>{});}};n.ɵfac=function(t){return new(t||n)(O(W),O(qo),O(Oe),O(q),O(oe));},n.ɵcmp=F({type:n,selectors:[["app-menu"]],hostBindings:function(t,r){t&1&&f("click",function(){return r.clickFunc();},wt);},inputs:{groupId:"groupId",unansweredCount:"unansweredCount"},standalone:!1,features:[It],decls:4,vars:1,consts:[[1,"menu-container"],[1,"item",3,"ngClass"],[1,"item",3,"click","ngClass"],[1,"digest-icon"],[1,"red-point"],[1,"line"],[1,"sub-menu"]],template:function(t,r){t&1&&(s(0,"div",0),B(1,Hy,4,6,"div",1,Y),h(3,qy,4,0),c()),t&2&&(l(),N(r.groupMenus),l(2),_(r.subMenus.length?3:-1));},dependencies:[K,id],styles:['.menu-container[_ngcontent-%COMP%]{background:var(--dweb-bg-panel, #FFFFFF);border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:12px 20px 2px;display:flex;flex-wrap:wrap;margin-bottom:5px}.menu-container[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{cursor:pointer}.item[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;box-sizing:border-box;font-weight:400;height:26px;padding:0 6px;width:fit-content;min-width:44px;background:var(--dweb-bg-soft);color:var(--dweb-text-secondary, #5A5C66);border-radius:4px;border:1px solid var(--dweb-bg-soft);font-size:14px;margin:0 10px 10px 0;text-align:center}.item[_ngcontent-%COMP%]:hover{background:#41b78c0d;border-color:#41b78c33;color:var(--dweb-brand)}.item.actived[_ngcontent-%COMP%]{background:#3b4159;border-color:#3b4159;color:#fff}.item[_ngcontent-%COMP%]   .digest-icon[_ngcontent-%COMP%]{display:inline-block;width:14px;height:14px;background-image:url("./media/[email protected]");background-position:-558px -669px;margin-right:4px;cursor:pointer}.item[_ngcontent-%COMP%]   .red-point[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:6px;background:var(--dweb-danger);position:absolute;right:-2px;top:-2px}.line[_ngcontent-%COMP%]{height:1px;width:100%;background:var(--dweb-border-faint)}.sub-menu[_ngcontent-%COMP%]{background:var(--dweb-bg-panel, #FFFFFF);display:flex;flex-wrap:wrap;padding:11px 0 3px}.sub-menu[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{min-width:42px;background:var(--dweb-bg-panel, #FFFFFF);border:none;margin:0 10px 8px 0!important;font-size:13px;color:var(--dweb-text-muted)}.sub-menu[_ngcontent-%COMP%]   .item.actived[_ngcontent-%COMP%]{font-weight:500;color:var(--dweb-text-primary)}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.menu-container[_ngcontent-%COMP%]   .digest-icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();function Wy(o,n){if(o&1&&(s(0,"div",4),g(1),c()),o&2){let i=d().$implicit;l(),A(i.questioner+"\xA0\u63D0\u95EE\uFF1A");}}function Xy(o,n){if(o&1&&(s(0,"div",5),g(1),c()),o&2){let i=d().$implicit;l(),A("\u300C"+i.fileDesc+"\u300D");}}function Jy(o,n){if(o&1){let i=y();
146s(0,"div",2),f("click",function(t){let r=b(i).$index,a=d(2);return P(a.showDetail(t,r));}),s(1,"div",3),g(2,"\u7F6E\u9876"),c(),h(3,Wy,2,1,"div",4),h(4,Xy,2,1,"div",5),M(5,"div",6),c();}if(o&2){let i=n.$implicit,e=n.$index;l(3),_(i.questioner?3:-1),l(),_(i.fileDesc?4:-1),l(),C("parseHtml",i.text)("annotations",i.annotations)("linkArticle",i.article)("indexFlag",e);}}function Yy(o,n){if(o&1&&(s(0,"div",0),B(1,Jy,6,6,"div",1,Y),c()),o&2){let i=d();l(),N(i.stickyTopics);}}var Fm=(()=>{let n=class n{constructor(e,t){this.topicService=e,this.mainService=t,this.showTopicDetail=new H(),this.stickyTopics=[],this.subscriptions=[];}ngOnInit(){this.doSubscribe();}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}doSubscribe(){let e=this.topicService.topicOperation$.subscribe(({listName:a,type:p,topic:m,index:v})=>{if(a==="topicFlow"){if(!m||Object.keys(m).length===0||v<0)return;if(p==="delete"&&m.sticky){let x=this.mainService.stickyTopicList.findIndex(w=>w.topic_id===m.topic_id||w.topic_uid===m.topic_uid);this.mainService.stickyTopicList.splice(x,1),this.stickyTopics.splice(x,1);}if(p==="update"){let x=this.mainService.stickyTopicList.findIndex(k=>k.topic_id===m.topic_id||k.topic_uid===m.topic_uid),w=this.transformData(m);this.mainService.stickyTopicList.splice(x,1,m),this.stickyTopics.splice(x,1,w);}}}),t=this.mainService.stickyTopic$.subscribe(a=>{this.stickyTopics=[],a.map(p=>{this.stickyTopics.push(this.transformData(p));});}),r=this.mainService.stickyTopicListEventEmit.subscribe(a=>{let p=[];this.mainService.stickyTopicList.map(m=>{p.push(this.transformData(m));}),this.stickyTopics=p;});this.subscriptions.push(e,t,r);}transformData(e){let t={fileDesc:"",text:"",annotations:e.annotation};switch(e.type){case"talk":t.article=e.talk.article,this.setFileInfo(e.talk,t);break;case"q&a":this.setFileInfo(e.question,t),t.questioner=e.question.anonymous?"\u533F\u540D\u7528\u6237":e.question.owner.name;break;case"task":this.setFileInfo(e.task,t);break;case"solution":this.setFileInfo(e.solution,t);break;default:break;}return t;}setFileInfo(e,t){e.images&&e.files?t.fileDesc="\u6587\u4EF6":e.images?t.fileDesc="\u56FE\u7247":e.files?t.fileDesc="\u6587\u4EF6":t.fileDesc="",t.text=e.text;}showDetail(e,t){e.stopPropagation(),e.target.nodeName!=="A"&&(this.topicService.tags=this.mainService.getStickyTopicByIndex(t).tags,this.showTopicDetail.emit(this.mainService.getStickyTopicByIndex(t)));}};n.ɵfac=function(t){return new(t||n)(O(Oe),O(oe));},n.ɵcmp=F({type:n,selectors:[["app-sticky-topic"]],outputs:{showTopicDetail:"show-topic-detail"},standalone:!1,decls:1,vars:1,consts:[[1,"sticky-topic-container"],[1,"item"],[1,"item",3,"click"],[1,"title"],[1,"question"],[1,"desc"],["parseType","sticky",1,"content",3,"parseHtml","annotations","linkArticle","indexFlag"]],template:function(t,r){t&1&&h(0,Yy,3,0,"div",0),t&2&&_(r.stickyTopics.length>0?0:-1);},dependencies:[ze],styles:[".sticky-topic-container[_ngcontent-%COMP%]{padding:6px 0;margin-bottom:5px;background-color:var(--dweb-bg-panel);border-radius:4px}.sticky-topic-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;align-items:center;padding:10px 20px}.sticky-topic-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:var(--dweb-bg-hover)}.sticky-topic-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{height:22px;line-height:22px}.sticky-topic-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{text-align:center;min-width:32px;height:16px;line-height:16px;border:1px solid var(--dweb-brand);font-size:11px;font-family:PingFangSC-Regular;color:var(--dweb-brand);border-radius:2px;margin-right:10px}.sticky-topic-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--dweb-text-primary, #2F3034)}.sticky-topic-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .question[_ngcontent-%COMP%], .sticky-topic-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{white-space:nowrap}"]});let o=n;return o;})();var Am=xi(wo());var Zy=o=>({"--renewal-component-s":o}),e2=(o,n)=>n.user_id;function t2(o,n){if(o&1){let i=y();s(0,"span",3),f("click",function(){b(i);let t=d();return P(t.closeRenewalNotice());}),c();}}function n2(o,n){if(o&1&&(g(0),s(1,"span",12),g(2),c(),g(3)),o&2){let i=d(2);V(" ",i.advanceRenewTitle.prefix," "),l(2),A(i.advanceRenewTitle.discount),l(),V(" ",i.advanceRenewTitle.suffix," ");}}function i2(o,n){if(o&1&&g(0),o&2){let i=d(2);V(" ",i.advanceRenewTitle.fullTitle||i.advanceRenewTitle.prefix," ");}}function o2(o,n){if(o&1&&(s(0,"div",7)(1,"span"),g(2,"\u6D3B\u52A8\u4EC5\u5269"),c(),s(3,"span",13),g(4),
146c()()),o&2){let i=d(2);l(4),A(i.residueTimeText);}}function r2(o,n){if(o&1&&(s(0,"div",15),M(1,"img",16),s(2,"span",17),g(3),c(),g(4," \u7EED\u671F\u4E86\u661F\u7403 "),c()),o&2){let i=n.$implicit;l(),C("src",i.avatar_url,se),l(2),A(i.alias||i.name);}}function a2(o,n){if(o&1&&(s(0,"div",11)(1,"div",14),B(2,r2,5,2,"div",15,e2),s(4,"div",15),M(5,"img",16),s(6,"span",17),g(7),c(),g(8," \u7EED\u671F\u4E86\u661F\u7403 "),c()()()),o&2){let i=d(2);l(),C("ngStyle",R(3,Zy,i.renewalMemberList.length)),l(),N(i.renewalMemberList),l(3),C("src",i.renewalMemberList[0].avatar_url,se),l(2),A(i.renewalMemberList[0].alias||i.renewalMemberList[0].name);}}function s2(o,n){if(o&1&&(s(0,"div",4)(1,"p",5),h(2,n2,4,3),h(3,i2,1,1),c(),s(4,"div",6),h(5,o2,5,1,"div",7),c()(),s(6,"p",8),g(7),c(),M(8,"img",9),s(9,"p",10),g(10,"\u4F7F\u7528\u5FAE\u4FE1\u626B\u4E00\u626B\uFF0C\u8FDB\u884C\u7EED\u671F"),c(),h(11,a2,9,5,"div",11)),o&2){let i=d();l(2),_(i.advanceRenewTitle.hasDiscount?2:-1),l(),_(i.advanceRenewTitle.hasDiscount?-1:3),l(2),_(i.residueTimeText?5:-1),l(2),Gt(" \u4F60",i.isExpired?"\u5DF2":"\u5C06","\u4E8E ",i.expiredDate,"\u5230\u671F\uFF0C\u4E3A\u907F\u514D\u9519\u8FC7\u661F\u4E3B\u53D1\u5E03\u7684\u6D88\u606F\uFF0C\u8BF7\u5C3D\u5FEB\u7EED\u671F\u3002 "),l(),C("src",i.renewalCode,se),l(3),_(i.renewalMemberList.length>3?11:-1);}}var Vm=(()=>{let n=class n{get residueTimeText(){if(!this.hasRenewDiscount||this.isExpiredOverOneMonth)return"";let e=this.daysUntilExpiration<30&&this.daysUntilExpiration>=1,t=this.daysUntilExpiration<1&&this.daysUntilExpiration>=0,r=this.daysUntilExpiration30d<30&&this.daysUntilExpiration30d>=1,a=this.daysUntilExpiration30d<1&&this.daysUntilExpiration30d>=0;return e?`${this.daysUntilExpiration} \u5929`:r&&this.isExpired?`${this.daysUntilExpiration+30} \u5929`:t?`${this.hours1>9?this.hours1:"0"+this.hours1}:${this.minutes1>9?this.minutes1:"0"+this.minutes1}:${this.seconds1>9?this.seconds1:"0"+this.seconds1}`:a?`${this.hours2>9?this.hours2:"0"+this.hours2}:${this.minutes2>9?this.minutes2:"0"+this.minutes2}:${this.seconds2>9?this.seconds2:"0"+this.seconds2}`:"";}get advanceRenewTitle(){let e={prefix:"",hasDiscount:!1,suffix:"\u6298\u4F18\u60E0"};return this.isExpired?this.isExpiredOverOneMonth?this.renewalDiscount===100?e=Ot(Ue({},e),{prefix:"\u7EED\u671F\u63D0\u9192",hasDiscount:!1,fullTitle:"\u7EED\u671F\u63D0\u9192"}):e=Ot(Ue({},e),{prefix:"\u73B0\u5728\u7EED\u671F\u4EAB",hasDiscount:!0,discount:this.renewalDiscount/10}):this.graceDiscount===100?e=Ot(Ue({},e),{prefix:"\u7EED\u671F\u63D0\u9192",hasDiscount:!1,fullTitle:"\u7EED\u671F\u63D0\u9192"}):e=Ot(Ue({},e),{prefix:"\u73B0\u5728\u7EED\u671F\u4EAB",hasDiscount:!0,discount:this.graceDiscount/10}):this.advanceRenewalDiscount===100?e=Ot(Ue({},e),{prefix:"\u63D0\u524D\u7EED\u671F\u63D0\u9192",hasDiscount:!1,fullTitle:"\u63D0\u524D\u7EED\u671F\u63D0\u9192"}):e=Ot(Ue({},e),{prefix:"\u63D0\u524D\u7EED\u671F\u4EAB",hasDiscount:!0,discount:this.advanceRenewalDiscount/10}),e;}get hasRenewDiscount(){return this.isExpiredOverOneMonth?this.renewalDiscount!==100:this.isExpired?this.graceDiscount!==100:this.advanceRenewalDiscount!==100;}get isExpiredOverOneMonth(){let e=this.expiredTime.slice(0,-5)+this.expiredTime.slice(-2),t=new Date(e),r=new Date(),a=new Date(t);return a.setDate(t.getDate()+30),r>a;}get daysUntilExpiration(){let e=this.expiredTime.slice(0,-5)+this.expiredTime.slice(-2),t=new Date(e),r=new Date(),a=t.getTime()-r.getTime(),p=Math.floor(a/(1e3*3600*24));return this.hours1=Math.floor(a/(1e3*60*60)),this.minutes1=Math.floor(a%(1e3*60*60)/(1e3*60)),this.seconds1=Math.floor(a%(1e3*60)/1e3),p;}get daysUntilExpiration30d(){let e=this.expiredTime.slice(0,-5)+this.expiredTime.slice(-2),t=new Date(e),r=new Date(),a=t.getTime()-r.getTime()+720*60*60*1e3,p=Math.floor(a/(1e3*3600*24));return this.hours2=Math.floor(a/(1e3*60*60)),this.minutes2=Math.floor(a%(1e3*60*60)/(1e3*60)),this.seconds2=Math.floor(a%(1e3*60)/1e3),p;}constructor(e,t){this.groupListService=e,this.http=t,this.closeNotice=new H(),this.renewalCode="",this.renewalDiscount=0,this.expiredDate="",this.advanceRenewalDiscount=0,this.graceDiscount=0,this.interval1=0,this.interval2=0,this.hours1=23,this.minutes1=59,this.seconds1=59,this.hours2=23,this.minutes2=59,this.seconds2=59,this.renewalMemberList=[];}ngOnInit(){let{group_id:e}=this.groupListService.getSelectedGroup();this.expiredDate=Fe(ge(this.expiredTime),"yyyy \u5E74 MM \u6708 dd \u65E5"),this.getRenewal(e),this.startCountdown();}startCountdown(){this.interval1=window.setInterval(()=>{if(this.hours1===0&&this.minutes1===0&&this.seconds1===0){clearInterval(this.interval1);return;}this.seconds1>0?this.seconds1--:(this.seconds1=59,this.minutes1>0?this.minutes1--:(this.minutes1=59,this.hours1>0&&this.hours1--));},1e3),this.interval2=window.setInterval(()=>{if(this.hours2===0&&this.minutes2===0&&this.seconds2===0){clearInterval(this.interval2);return;}this.seconds2>0?this.seconds2--:(this.seconds2=59,this.minutes2>0?this.minutes2--:(this.minutes2=59,this.hours2>0&&this.hours2--));},1e3);}getRenewal(e){this.http.get(j.getRenewal(e)).subscribe(r=>{r.succeeded?(this.renewalDiscount=r.resp_data.discounted_percentage,this.advanceRenewalDiscount=r.resp_data.advance_discounted_percentage,this.graceDiscount=r.resp_data.grace_discounted_percentage,this.renewalMemberList=this.handleRenewalMemberList(r.resp_data.renewal_members)):this.http.handleExceptionCode(r,"\u83B7\u53D6\u7EED\u671F\u4FE1\u606F\u5931\u8D25");});let t=`${ie.MWEB_URL}renew/renew.html?group_id=${e}
146&source=DWebScanning&auto_renewal=1`;this.http.get(j.getShortURL(t)).subscribe(r=>{if(r.succeeded){let a=r.resp_data.short_url;Am.default.toDataURL(a,{margin:0}).then(p=>{this.renewalCode=p;}).catch(p=>{console.error(p);});}else this.http.handleExceptionCode(r,$localize`获取短链接失败`);});}closeRenewalNotice(){this.isExpired||this.closeNotice.emit("close");}handleRenewalMemberList(e){return e.map(t=>(t.alias||(t.alias=""),t.alias=t.alias.length>5?t.alias.slice(0,5)+"...":t.alias,t.name=t.name.length>5?t.name.slice(0,5)+"...":t.name,t));}};n.ɵfac=function(t){return new(t||n)(O(ce),O(W));},n.ɵcmp=F({type:n,selectors:[["app-renewal"]],inputs:{isExpired:"isExpired",expiredTime:"expiredTime"},outputs:{closeNotice:"close-notice"},standalone:!1,decls:4,vars:2,consts:[[1,"pay-container-wrapper"],[1,"pay-container"],[1,"close-btn"],[1,"close-btn",3,"click"],[1,"pay-header"],[1,"pay-title"],[1,"countdown-container"],[1,"countdown"],[1,"pay-desc"],["id","qrcode",1,"pay-code",3,"src"],[1,"pay-postil"],[1,"renewal-carousel"],[1,"discount-highlight"],[1,"time"],[1,"renewal-member-list",3,"ngStyle"],[1,"renewal-member-item"],[1,"avatar",3,"src"],[1,"highlight"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1),h(2,t2,1,0,"span",2),h(3,s2,12,7),c()()),t&2&&(l(2),_(r.isExpired?-1:2),l(),_(r.renewalDiscount?3:-1));},dependencies:[De],styles:['@charset "UTF-8";[_nghost-%COMP%]{--renewal-component-s: 3;--renewal-component-h: 40;--renewal-component-speed: 3s}.pay-container-wrapper[_ngcontent-%COMP%]{position:relative;width:100%;min-height:280px;box-sizing:border-box;background:linear-gradient(180deg,#ff7b55,#ffe0c6);border-radius:8px;margin-bottom:5px;overflow:hidden}.pay-container[_ngcontent-%COMP%]{position:relative;box-sizing:border-box;background:var(--dweb-bg-panel);border-radius:4px;margin:8px;min-height:280px;padding:24px 0;display:flex;flex-direction:column;align-items:center;font-family:PingFangSC-Regular;text-align:center}.pay-container[_ngcontent-%COMP%]   .pay-code[_ngcontent-%COMP%]{width:100px;height:100px;background:var(--dweb-bg-panel);margin:24px 0 16px}.pay-container[_ngcontent-%COMP%]   .pay-header[_ngcontent-%COMP%]{display:flex;flex-direction:column}.pay-container[_ngcontent-%COMP%]   .pay-header[_ngcontent-%COMP%]   .countdown-container[_ngcontent-%COMP%]{margin-top:-8px}.pay-container[_ngcontent-%COMP%]   .pay-header[_ngcontent-%COMP%]   .countdown[_ngcontent-%COMP%]{height:22px;padding:0 8px;background:linear-gradient(83deg,#f65f4f,#ff9069);border-radius:4px;display:inline-flex;align-items:center;justify-content:center;margin-bottom:24px;font-size:13px;color:#fff}.pay-container[_ngcontent-%COMP%]   .pay-header[_ngcontent-%COMP%]   .countdown[_ngcontent-%COMP%]   .time[_ngcontent-%COMP%]{margin-left:5px}.pay-container[_ngcontent-%COMP%]   .pay-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:var(--dweb-danger);margin-bottom:16px}.pay-container[_ngcontent-%COMP%]   .pay-title[_ngcontent-%COMP%]   .discount-highlight[_ngcontent-%COMP%]{font-size:24px}.pay-container[_ngcontent-%COMP%]   .pay-desc[_ngcontent-%COMP%]{font-size:14px;color:var(--dweb-text-muted);width:520px;text-align:center}.pay-container[_ngcontent-%COMP%]   .pay-postil[_ngcontent-%COMP%]{font-size:14px;color:var(--dweb-brand)}.pay-container[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]{position:absolute;right:20px;display:inline-block;cursor:pointer;height:10px;width:10px;background-image:url("./media/[email protected]");background-position:-357px -197px}.pay-container[_ngcontent-%COMP%]   .renewal-carousel[_ngcontent-%COMP%]{width:210px;height:calc(var(--renewal-component-h) * 1px);line-height:calc(var(--renewal-component-h) * 1px);overflow:hidden;background:var(--dweb-bg-page);border-radius:20px;margin-top:24px}.pay-container[_ngcontent-%COMP%]   .renewal-member-list[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto;animation:_ngcontent-%COMP%_move calc(var(--renewal-component-speed) * var(--renewal-component-s)) steps(var(--renewal-component-s)) infinite}.pay-container[_ngcontent-%COMP%]   .renewal-member-item[_ngcontent-%COMP%]{color:var(--dweb-text-secondary);font-size:14px;white-space:nowrap;list-style:none;animation:_ngcontent-%COMP%_liMove calc(var(--renewal-component-speed)) infinite;display:flex;align-items:center;justify-content:center}.pay-container[_ngcontent-%COMP%]   .renewal-member-item[_ngcontent-%COMP%]   .avatar[_ng
146content-%COMP%]{width:24px;height:24px;border-radius:50%;margin-right:8px}.pay-container[_ngcontent-%COMP%]   .renewal-member-item[_ngcontent-%COMP%]   .highlight[_ngcontent-%COMP%]{color:var(--dweb-danger);margin-right:4px}@keyframes _ngcontent-%COMP%_move{0%{transform:translate(0)}to{transform:translateY(calc(var(--renewal-component-s) * var(--renewal-component-h) * -1px))}}@keyframes _ngcontent-%COMP%_liMove{0%{transform:translate(0)}80%,to{transform:translateY(calc(var(--renewal-component-h) * -1px))}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.pay-container[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var l2=["like"],p2=["header"],d2=o=>({"disabled-copy":o}),g2=o=>({"margin-bottom":o}),u2=o=>({highlight:o}),m2=o=>({liked:o}),h2=o=>({subscribed:o}),_2=(o,n,i)=>({"owner-light":o,"guest-light":n,"user-light":i}),f2=(o,n)=>({"margin-bottom":o,"padding-top":n}),C2=(o,n)=>n.owner.user_id,x2=(o,n)=>n.comment_id;function v2(o,n){}function b2(o,n){if(o&1&&(s(0,"span",6),g(1),c()),o&2){let i=d(3);C("ngClass",R(2,u2,i.taskStatistics.unsubmitted)),l(),A(i.taskStatistics.unsubmitted?"\u5171 "+i.taskStatistics.unsubmitted+" \u4EBA\u672A\u4EA4\u4F5C\u4E1A\uFF0C\u5360\u6BD4 "+i.taskStatistics.ratio+"%":"\u6210\u5458\u4F5C\u4E1A\u5DF2\u5168\u90E8\u63D0\u4EA4");}}function P2(o,n){if(o&1){let i=y();s(0,"span",12),f("click",function(){b(i);let t=d(3);return P(t.toSulutionList());}),g(1,"\u67E5\u770B\u5DF2\u4EA4\u4F5C\u4E1A"),M(2,"i"),c();}}function M2(o,n){if(o&1&&(s(0,"div",10),h(1,b2,2,4,"span",6),h(2,P2,3,0,"span",11),c()),o&2){let i=d(2);l(),_(i.isOwner?1:-1),l(),_(i.taskStatistics.noList?-1:2);}}function O2(o,n){if(o&1){let i=y();s(0,"div",27),f("click",function(){b(i);let t=d(4);return P(t.handleReport());}),c();}}function w2(o,n){if(o&1){let i=y();s(0,"app-topic-share-operation",28),f("operation-emitter",function(){b(i);let t=d(4);return P(t.closeShareOperation());})("show-poster-dialog",function(t){b(i);let r=d(4);return P(r.handleShowPosterDialog(t));}),c();}if(o&2){let i=d(4);C("topic",i.topicData)("visible",i.shareOperationVisible);}}function y2(o,n){if(o&1){let i=y();s(0,"div",29),f("click",function(){b(i);let t=d(4);return P(t.openDetail());}),s(1,"div",30),g(2,"\u67E5\u770B\u8BE6\u60C5"),c(),M(3,"div",31),c();}}function k2(o,n){if(o&1){let i=y();s(0,"div",13)(1,"div",18),M(2,"div",19,2),s(4,"div",20),f("click",function(){b(i);let t=d(3);return P(t.handleCommentClick());}),c(),s(5,"div",21),f("click",function(){b(i);let t=d(3);return P(t.handleFavorite());}),c(),h(6,O2,1,0,"div",22),s(7,"div",23)(8,"div",24),f("click",function(){b(i);let t=d(3);return P(t.showShareOperation());}),c(),h(9,w2,1,2,"app-topic-share-operation",25),c()(),h(10,y2,4,0,"div",26),c();}if(o&2){let i=d(3);l(2),C("ngClass",R(5,m2,i.topicData.user_specific==null?null:i.topicData.user_specific.liked)),l(3),C("ngClass",R(7,h2,i.topicData.user_specific==null?null:i.topicData.user_specific.subscribed)),l(),_(i.reportVisible?6:-1),l(3),_(i.shareOperationVisible?9:-1),l(),_(i.type==="flow"?10:-1);}}function S2(o,n){if(o&1){let i=y();s(0,"span",34)(1,"span",35),$(2,"transformOwner"),f("click",function(){let t=b(i).$implicit,r=d(4);return P(r.toFootprint(t.owner.user_id));}),c(),s(3,"span"),g(4,"\u3001"),c()();}if(o&2){let i=n.$implicit;C("ngClass",_n(5,_2,i.owner.is_owner||i.owner.is_partner,i.owner.is_guest,i.owner.is_self)),l(),C("parseName",Pe(2,2,i,"owner"));}}function T2(o,n){o&1&&(s(0,"span",30),g(1," \u89C9\u5F97\u5F88\u8D5E"),c());}function E2(o,n){if(o&1&&(s(0,"span",30),g(1),c()),o&2){let i=d(4);l(),V(" \u7B49",i.likesCount,"\u4EBA\u89C9\u5F97\u5F88\u8D5E");}}function D2(o,n){if(o&1&&(s(0,"div",14)(1,"div",32)(2,"div",33),B(3,S2,5,9,"span",34,C2),$(5,"transformLikeList"),c(),h(6,T2,2,0,"span",30),h(7,E2,2,1,"span",30),c()()),o&2){let i=d(3);l(3),N(Z(5,2,i.topicData.latest_likes)),l(3),_(i.likesCount>0&&i.likesCount<=10?6:-1),l(),_(i.likesCount>10?7:-1);}}function I2(o,n){if(o&1){let i=y();s(0,"app-comment",36),f("close-comment",function(t){b(i);let r=d(3);return P(r.closeComment(t));}),c();}if(o&2){let i=d(3);C("data",i.topicData);}}function F2(o,n){if(o&1&&M(0,"app-comment-item",37),o&2){let i=n.$implicit,e=d(4);C("comment",i)("data",e.topicData)("fromWhere",e.fromWhere)("hadSticky",e.topicData.show_comments[0].sticky);}}function A2(o,n){if(o&1&&(s(0,"div",16),B(1,F2,1,4,"app-comment-item",37,x2),$(3,"transformComments"),c()),o&2){let i=d(3);C("ngStyle",qe(3,f2,i.topicData.comments_count&&i.topicData.comments_count<8?"10px":"0px",
146i.topicData.comments_count?"8px":"0px")),l(),N(Z(3,1,i.topicData.show_comments));}}function V2(o,n){if(o&1){let i=y();s(0,"div",38),f("click",function(){b(i);let t=d(3);return P(t.openDetail());}),g(1,"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA"),c();}}function R2(o,n){if(o&1&&(h(0,k2,11,9,"div",13),h(1,D2,8,4,"div",14),h(2,I2,1,1,"app-comment",15),h(3,A2,4,6,"div",16),h(4,V2,2,0,"div",17)),o&2){let i=d(2);_(i.isInProcessing?-1:0),l(),_(i.topicData.likes_count>0&&i.topicData.latest_likes&&i.topicData.latest_likes.length&&!i.isInProcessing?1:-1),l(),_(i.commentVisible?2:-1),l(),_(i.type!=="detail"&&!i.isInProcessing?3:-1),l(),_(i.topicData.comments_count>8&&!i.isInProcessing?4:-1);}}function L2(o,n){if(o&1&&(s(0,"div"),M(1,"app-tag-container",9),h(2,M2,3,2,"div",10)(3,R2,5,5),c()),o&2){let i=d();l(),C("tags",i.topicOwnService.tagsArray)("topic",i.topicData)("ngStyle",R(4,g2,i.isInProcessing?"4px":"0px")),l(),_(i.type==="homework"?2:3);}}function B2(o,n){if(o&1){let i=y();s(0,"app-reason-dialog",39),f("dialog-confirm",function(t){b(i);let r=d();return P(r.reportTopic(t));})("dialog-cancel",function(){b(i);let t=d();return P(t.cancelReport());}),c();}o&2&&C("maxlength",100);}var An=(()=>{let n=class n{constructor(e,t,r,a,p,m,v,x,w,k,S,E){this.router=e,this.componentFactoryResolver=t,this.groupListService=r,this.mainService=a,this.indexService=p,this.topicService=m,this.topicOwnService=v,this.topicDetailService=x,this.message=w,this.http=k,this.videoGalleryService=S,this.document=E,this.showRadius=!0,this.viewTopicDetail=new H(),this.handleDialog=new H(),this.showPosterDialogEmitter=new H(),this.commentVisible=!1,this.subscriptions=[],this.fromWhere="topic",this.allowCopy=!1,this.isInProcessing=!1,this.isOwner=!1,this.noSolutionList=!0,this.reportOtherVisible=!1,this.reportVisible=!1,this.shareOperationVisible=!1;}ngOnInit(){if(this.loadComponent(),this.type==="detail"){let m=this.topicDetailService.comments$.subscribe(v=>{this.topicData.comments||(this.topicData.comments=[]),this.topicData.comments=this.topicData.comments.concat(v),this.topicOwnService.setTopicData(this.topicData);});this.subscriptions.push(m);}this.topicOwnService.setTopicData(this.topicData),this.allowCopy=this.mainService.allowCurrentUserCopy,this.isInProcessing=this.topicData.hasOwnProperty("process_status");let e=this.topicData.type==="q&a"&&!this.topicData.answer,t=this.topicData.question?this.topicData.question.questionee.user_id:null,r=this.indexService.getSelfInfo("user_id")!==this.getTopicOwnerInfo(this.topicData,"user_id"),a=e&&this.indexService.getSelfInfo("user_id")===t;this.reportVisible=r||a;let p=this.topicService.closeAllShareOperations$.pipe(ut(m=>m!==String(this.topicData.topic_uid||this.topicData.topic_id))).subscribe(()=>{this.shareOperationVisible=!1;});this.subscriptions.push(p);}ngAfterViewInit(){let e=this.topicOwnService.addComment$.subscribe(m=>{this.type==="detail"?(this.topicData.comments||(this.topicData.comments=[]),this.topicData.comments.every(x=>x.comment_id!==m.comment.comment_id)&&(this.topicData.comments=[...this.topicData.comments,m.comment])):(this.topicData.show_comments||(this.topicData.show_comments=[]),this.topicData.show_comments.every(x=>x.comment_id!==m.comment.comment_id)&&(this.topicData.show_comments=[...this.topicData.show_comments,m.comment]));}),t=this.topicOwnService.tagHid$.subscribe(m=>{let v=this.topicOwnService.tagsArray.findIndex(x=>x.name===m.name);v!==-1&&(this.topicOwnService.tagsArray[v].hid=m.hid);}),r=this.topicOwnService.delTag$.subscribe(m=>{this.topicData[this.topicData.type].article||na(this.topicData,m);}),a=this.mainService.deleteMember$.subscribe(m=>{this.topicData.show_comments&&(this.topicData.show_comments=this.topicData.show_comments.filter(v=>v.owner.user_id!==m));}),p=this.topicOwnService.stickyComment$.subscribe(m=>{if(!m.sticky||this.topicData.show_comments[0].sticky){let v=Object.assign({},this.topicData.show_comments[0]);v.sticky=!1,this.topicData.show_comments.splice(0,1);let x=this.topicData.show_comments.findIndex(w=>la(ge(v.create_time),ge(w.create_time)));x===-1?this.topicData.show_comments.push(v):this.topicData.show_comments.splice(
146x,0,v);}if(m.sticky){let v=this.topicData.show_comments.findIndex(x=>x.comment_id===m.comment_id);this.topicData.show_comments.splice(v,1),this.topicData.show_comments.unshift(m);}});this.subscriptions.push(e,t,r,a,p),this.likeElement&&this.subscribeLikeTopic();}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}get likesCount(){let{likes_count:e}=this.topicData;return e;}loadComponent(){let e=this.getTopicContentItem(),t=this.topicContent.viewContainerRef;t.clear();let r=t.createComponent(e.component);r.instance.data=e.data,r.instance.fromWhere=e.fromWhere;}getTopicContentItem(){let e;return this.topicData.type==="talk"?e=new We(En,this.topicData,this.type):this.topicData.type==="q&a"&&!this.topicData.answer?e=new We(Li,this.topicData,"mainTopics"):this.topicData.type==="q&a"&&this.topicData.answer?e=new We(ti,this.topicData):this.topicData.type==="task"?(this.isOwner=this.topicData.task.owner.user_id===this.indexService.getSelfInfo("user_id"),e=new We(ni,this.topicData,this.type)):this.topicData.type==="solution"&&(e=new We(ii,this.topicData)),e;}onKeydown(e){let t=document.documentElement.scrollTop;e.target.style.height="10px",e.target.style.height=e.target.scrollHeight+"px",document.documentElement.scrollTop=t;}openDetail(){this.videoGalleryService.pauseVideo(),this.topicService.tags=this.topicOwnService.tagsArray,this.viewTopicDetail.emit(this.topicData);}handleCommentClick(){if(this.indexService.isGroupOwner)this.commentVisible=!this.commentVisible;else{let e="";this.indexService.isMember?this.indexService.createCommentNeedReward?(e="\u4E0B\u8F7D App \u8D5E\u8D4F\u661F\u4E3B\u540E\u5373\u53EF\u53C2\u4E0E\u4E92\u52A8",this.message.info({content:e})):this.indexService.canCreateComment?this.indexService.notAllowRenewAndExpired?(e="\u670D\u52A1\u5DF2\u5230\u671F\uFF0C\u4E0D\u80FD\u4E92\u52A8",this.message.info({content:e})):this.indexService.needRenewAndExpired?this.message.info({content:"\u8BE5\u661F\u7403\u670D\u52A1\u5DF2\u5230\u671F\uFF0C\u9700\u7EED\u671F\u624D\u80FD\u7EE7\u7EED\u53C2\u4E0E\u661F\u7403\u5185\u4E92\u52A8"}):this.commentVisible=!this.commentVisible:(e="\u6CA1\u6709\u53D1\u8868\u8BC4\u8BBA\u7684\u6743\u9650",this.message.info({content:e})):this.indexService.canCreateComment?this.commentVisible=!this.commentVisible:(e="\u6CA1\u6709\u53D1\u8868\u8BC4\u8BBA\u7684\u6743\u9650",this.message.info({content:e}));}}closeComment(e){this.commentVisible=!1;}likeTopic(){let e=this.indexService.getSelfInfo("user_id"),t=localStorage.getItem("current_alias")||this.indexService.getSelfInfo("user_name");if(this.topicData.user_specific)this.topicData.user_specific.liked=!this.topicData.user_specific.liked;else{let r={liked:!0,subscribed:!1};this.topicData.user_specific=r;}if(!this.topicData.user_specific.liked)this.topicData.latest_likes=this.topicData.latest_likes.filter(r=>r.owner.user_id!==e);else{let r=[{create_time:new Date().toString(),owner:{user_id:e,name:t,avatar_url:this.indexService.getSelfInfo("avatar_url")}}];(this.topicData.likes_count===0||!this.topicData.latest_likes)&&(this.topicData.latest_likes=[]),this.topicData.latest_likes=r.concat(this.topicData.latest_likes);}this.topicData.likes_count+=this.topicData.user_specific.liked?1:-1;}subscribeLikeTopic(){this.likeTopic$=At(this.likeElement.nativeElement,"click").pipe(bi(r=>this.indexService.isGroupOwner?(this.likeTopic(),Kt(this.topicData.user_specific.liked)):this.indexService.likeTopicNeedReward&&this.indexService.isMember?(this.message.info({content:"\u4E0B\u8F7D App \u8D5E\u8D4F\u661F\u4E3B\u540E\u5373\u53EF\u53C2\u4E0E\u4E92\u52A8"}),Kt()):this.indexService.needRenewAndExpired?(this.message.info({content:"\u8BE5\u661F\u7403\u670D\u52A1\u5DF2\u5230\u671F\uFF0C\u9700\u7EED\u671F\u624D\u80FD\u7EE7\u7EED\u53C2\u4E0E\u661F\u7403\u5185\u4E92\u52A8"}),Kt()):(this.likeTopic(),Kt(this.topicData.user_specific.liked))),Ct(800),tr());let e=this.likeTopic$.subscribe(()=>{this.topicOwnService.likeTopic(this.topicData.topic_uid||this.topicData.topic_id,this.topicData.user_specific.liked);});this.subscriptions.push(e);let t=this.topicOwnService.likeTopic$.subscribe(r=>{this.likeTopic();});this.subscriptions.push(t);}showDialog(e){this.handleDialog.emit(e);}toSulutionList(){this.router.navigate(["solution_list",this.topicData.topic_id]);}toFootprint(e){sessionStorage.setItem("footprint_group_id",String(this.topicData.group.group_id)),ne(`footprint/${e}
146?group_id=${String(this.topicData.group.group_id)}`);}handleFavorite(){this.topicData.user_specific.subscribed?this.topicService.cancelCollectTopic(this.topicData):this.topicService.collectTopic(this.topicData);}getTopicOwnerInfo(e,t){let r;return e.type==="q&a"?e.answer?r=e.answer.owner[t]:r=e.question.owner?e.question.owner[t]:"":r=e[e.type].owner[t],r;}handleReport(){this.reportOtherVisible=!0;}reportTopic(e={reason:"",desc:""}){this.topicService.reportTopic(this.topicData,e.reason,e.desc),this.cancelReport();}cancelReport(){this.reportOtherVisible=!1;}showShareOperation(){this.topicService.notifyCloseAllShareOperations(String(this.topicData.topic_uid||this.topicData.topic_id)),this.shareOperationVisible=!0;}closeShareOperation(){this.shareOperationVisible=!1;}handleShowPosterDialog(e){this.showPosterDialogEmitter.emit(e);}};n.ɵfac=function(t){return new(t||n)(O(ue),O(Wn),O(ce),O(oe),O(q),O(Oe),O(Ye),O(Te),O(le),O(W),O(Vo),O(Be));},n.ɵcmp=F({type:n,selectors:[["app-topic"]],viewQuery:function(t,r){if(t&1&&_e(Tt,7)(l2,5)(p2,5),t&2){let a;ee(a=te())&&(r.topicContent=a.first),ee(a=te())&&(r.likeElement=a.first),ee(a=te())&&(r.header=a.first);}},inputs:{topicData:"topicData",index:"index",type:"type",showRadius:"showRadius",taskStatistics:"taskStatistics"},outputs:{viewTopicDetail:"view-topic-detail",handleDialog:"handle-dialog",showPosterDialogEmitter:"show-poster-dialog"},standalone:!1,features:[ot([Ye])],decls:9,vars:7,consts:[["topic",""],["header",""],["like",""],[1,"topic-container"],["watermark","main",2,"padding","10px"],[3,"handle-dialog","topicData","index"],[3,"ngClass"],["topic-content",""],["type","report","title","\u6295\u8BC9\u4E3B\u9898","placeholder","\u4E0D\u8D85\u8FC7 100 \u5B57",3,"maxlength"],["fromWhere","topic",3,"tags","topic","ngStyle"],[1,"task-detail"],[1,"check-btn"],[1,"check-btn",3,"click"],[1,"operation-icon-container"],[1,"like-container"],[3,"data"],[1,"comment-box",3,"ngStyle"],[1,"moreComment"],[1,"operation-icon"],["title","\u70B9\u8D5E",1,"like",3,"ngClass"],["title","\u8BC4\u8BBA",1,"comment",3,"click"],["title","\u6536\u85CF",1,"subscribe",3,"click","ngClass"],["title","\u6295\u8BC9",1,"report"],[1,"share-wrapper",2,"position","relative"],["title","\u5206\u4EAB",1,"share-topic",3,"click"],["source","GroupView",3,"topic","visible"],[1,"details-container"],["title","\u6295\u8BC9",1,"report",3,"click"],["source","GroupView",3,"operation-emitter","show-poster-dialog","topic","visible"],[1,"details-container",3,"click"],[1,"text"],[1,"icon"],[1,"like-user"],[1,"name"],[1,"eachLike",3,"ngClass"],[3,"click","parseName"],[3,"close-comment","data"],[3,"comment","data","fromWhere","hadSticky"],[1,"moreComment",3,"click"],["type","report","title","\u6295\u8BC9\u4E3B\u9898","placeholder","\u4E0D\u8D85\u8FC7 100 \u5B57",3,"dialog-confirm","dialog-cancel","maxlength"]],template:function(t,r){t&1&&(s(0,"div",3,0)(2,"div",4)(3,"app-topic-header",5,1),f("handle-dialog",function(p){return r.showDialog(p);}),c(),s(5,"div",6),qt(6,v2,0,0,"ng-template",7),c(),h(7,L2,4,6,"div"),c()(),h(8,B2,1,1,"app-reason-dialog",8)),t&2&&(l(3),C("topicData",r.topicData)("index",r.index),l(2),C("ngClass",R(5,d2,!r.allowCopy)),l(2),_(r.topicData.type==="q&a"&&!r.topicData.answer?-1:7),l(),_(r.reportOtherVisible?8:-1));},dependencies:[K,De,xt,ua,ko,fa,pn,qi,Ho,Bi,Tt,St,_a,Po],styles:['@charset "UTF-8";.topic-container[_ngcontent-%COMP%]{background:var(--dweb-bg-panel, #FFFFFF);margin-bottom:10px;border-radius:4px}.topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]{padding-left:56px;padding-right:20px;display:flex;align-items:center;justify-content:space-between;margin:15px 0}.topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]{display:flex}.topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:21px;height:21px;background-image:url("./media/[email protected]");margin-right:30px;cursor:pointer}.topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .like[_ngcontent-%COMP%]{background-position:-107px -306px}.topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .liked[_ngcontent-%COMP%]{background-position:-107px -346px}.topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]{background-position:-157px -306px}.topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]:hover{background-position:-157px -346px}.topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .share-topic[_ngcontent-%COMP%]{width:21px;height:19px;background-image:url("./media/icon_topic_share-4XWEQGEZ.png")!important;background-size:19px 18px;background-position:center;background-repeat:no-repeat}.topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .subscribe[_ngcontent-%COMP%]{background-position:-205px -306px}.topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .subscribe.subscribed[_ngcontent-%COMP%]{background-position:-205px -346px}.topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .report[_ngcontent-%COMP%], .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .report[_ngcontent-%COMP%]:hover{background-position:-233px -307px}.topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer}.topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}.topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-297px -197px}.topic-container[_ngcontent-%COMP%]   .like-container[_ngcontent-%COMP%]{padding-left:56px;padding-right:20px;
146display:flex;align-items:center;margin-bottom:12px;position:relative}.topic-container[_ngcontent-%COMP%]   .like-container[_ngcontent-%COMP%]   .like-icon[_ngcontent-%COMP%]{position:absolute;top:0;height:20px;width:18px;background-image:url("./media/[email protected]");background-position:-148px -418px}.topic-container[_ngcontent-%COMP%]   .like-container[_ngcontent-%COMP%]   .like-user[_ngcontent-%COMP%]{font-size:14px;color:var(--dweb-info, #567895)}.topic-container[_ngcontent-%COMP%]   .like-container[_ngcontent-%COMP%]   .like-user[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{display:inline;word-wrap:break-word;line-height:20px}.topic-container[_ngcontent-%COMP%]   .like-container[_ngcontent-%COMP%]   .like-user[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   .eachLike[_ngcontent-%COMP%]{cursor:pointer}.topic-container[_ngcontent-%COMP%]   .like-container[_ngcontent-%COMP%]   .like-user[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   .eachLike.owner-light[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:first-child{color:var(--dweb-warning, #FDA956)}.topic-container[_ngcontent-%COMP%]   .like-container[_ngcontent-%COMP%]   .like-user[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   .eachLike.guest-light[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:first-child{color:var(--dweb-copper, #D28057)}.topic-container[_ngcontent-%COMP%]   .like-container[_ngcontent-%COMP%]   .like-user[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   .eachLike.user-light[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:first-child{color:var(--dweb-brand, #16B998)}.topic-container[_ngcontent-%COMP%]   .like-container[_ngcontent-%COMP%]   .like-user[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:last-child   [_ngcontent-%COMP%]:last-child{display:none!important}.topic-container[_ngcontent-%COMP%]   .like-container[_ngcontent-%COMP%]   .like-user[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{height:20px;line-height:20px;color:var(--dweb-text-muted, #8B8E9D)}.topic-container[_ngcontent-%COMP%]   .horizontal-line[_ngcontent-%COMP%]{border-bottom:1px solid var(--dweb-border-faint);margin-left:56px;margin-right:20px;margin-top:12px}.topic-container[_ngcontent-%COMP%]   .comment-container[_ngcontent-%COMP%]{margin-top:12px;padding-left:56px;padding-right:20px;display:flex}.topic-container[_ngcontent-%COMP%]   .comment-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]{display:flex;border:1px solid var(--dweb-brand);padding-top:.5px}.topic-container[_ngcontent-%COMP%]   .comment-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .text-area-wrapper[_ngcontent-%COMP%]{width:360px;overflow:hidden}.topic-container[_ngcontent-%COMP%]   .comment-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .text-area-wrapper[_ngcontent-%COMP%]   .text-area[_ngcontent-%COMP%]{position:relative;top:3px;box-sizing:content-box;height:23px;line-height:23px;width:calc(100% - 17px);outline:none;resize:none;border:none;border-radius:2px;padding:0 17px 0 10px;font-size:14px;margin:0}.topic-container[_ngcontent-%COMP%]   .comment-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]{height:23px;width:70px;margin-top:0;display:flex;justify-content:center;align-items:center;position:relative;top:3px}.topic-container[_ngcontent-%COMP%]   .comment-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]   .emoji[_ngcontent-%COMP%]{width:18px;height:18px;margin:0 10px;background-image:url("./media/[email protected]");background-position:-333px -308px;cursor:pointer}.topic-container[_ngcontent-%COMP%]   .comment-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]   .picture[_ngcontent-%COMP%]{width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-384px -307px;cursor:pointer}.topic-container[_ngcontent-%COMP%]   .comment-container[_ngcontent-%COMP%]   .submit-btn[_ngcontent-%COMP%]{margin-left:12px;height:30px;line-height:30px;width:50px;background:var(--dweb-brand, #16B998);box-shadow:0 1px 2px 0 var(--dweb-border-faint);border-radius:2px;text-align:center;font-size:15px;color:#fff}.topic-container[_ngcontent-%COMP%]   .moreComment[_ngcontent-%COMP%]:hover{cursor:pointer}.topic-container[_ngcontent-%COMP%]   .moreComment[_ngcontent-%COMP%]{padding:20px 0 10px;text-align:center;color:var(--dweb-info, #567895)}.topic-container[_ngcontent-%COMP%]   .disabled-copy[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.topic-container[_ngcontent-%COMP%]   .task-detail[_ngcontent-%COMP%]{margin:14px 15px 0 56px;padding:20px 0 10px;border-top:1px solid var(--dweb-border-faint);font-family:PingFangSC-Medium;font-size:12px;color:var(--dweb-text-faint);display:flex}.topic-container[_ngcontent-%COMP%]   .task-detail[_ngcontent-%COMP%]   .highlight[_ngcontent-%COMP%]{color:var(--dweb-danger)}.topic-container[_ngcontent-%COMP%]   .task-detail[_ngcontent-%COMP%]   .check-btn[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;color:var(--dweb-brand);margin-left:auto}.topic-container[_ngcontent-%COMP%]   .task-detail[_ngcontent-%COMP%]   .check-btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-left:4px;width:8px;height:11px;background-image:url("./media/[email protected]");background-position:-299px -240px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.topic-container[_ngcontent-%COMP%]   .comment-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]   .emoji[_ngcontent-%COMP%], .topic-container[_ngcontent-%COMP%]   .comment-container[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]   .picture[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.topic-container[_ngcontent-%COMP%]   .like-container[_ngcontent-%COMP%]   .like-icon[_ngcontent-%COMP%], .topic-container[_ngcontent-%COMP%]   .task-detail[_ngcontent-%COMP%]   .check-btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}
146html[data-theme=dark][_nghost-%COMP%]   .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .like[_ngcontent-%COMP%]:not(.liked), html[data-theme=dark]   [_nghost-%COMP%]   .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .like[_ngcontent-%COMP%]:not(.liked), html[data-theme=dark][_nghost-%COMP%]   .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]:not(:hover), html[data-theme=dark]   [_nghost-%COMP%]   .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]:not(:hover), html[data-theme=dark][_nghost-%COMP%]   .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .subscribe[_ngcontent-%COMP%]:not(.subscribed), html[data-theme=dark]   [_nghost-%COMP%]   .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .subscribe[_ngcontent-%COMP%]:not(.subscribed), html[data-theme=dark][_nghost-%COMP%]   .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .report[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .report[_ngcontent-%COMP%], html[data-theme=dark][_nghost-%COMP%]   .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .share-topic[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .operation-icon[_ngcontent-%COMP%]   .share-topic[_ngcontent-%COMP%]{filter:brightness(.47)}html[data-theme=dark][_nghost-%COMP%]   .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]{color:var(--dweb-text-faint)}html[data-theme=dark][_nghost-%COMP%]   .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{color:currentColor}html[data-theme=dark][_nghost-%COMP%]   .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-color:currentColor;background-image:none!important;background-position:initial;background-repeat:no-repeat;-webkit-mask-image:url("./media/[email protected]");-webkit-mask-position:-297px -197px;-webkit-mask-repeat:no-repeat;mask-image:url("./media/[email protected]");mask-position:-297px -197px;mask-repeat:no-repeat}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){html[data-theme=dark][_nghost-%COMP%]   .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .topic-container[_ngcontent-%COMP%]   .operation-icon-container[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{-webkit-mask-image:url("./media/[email protected]");-webkit-mask-size:1024px 1057px;mask-image:url("./media/[email protected]");mask-size:1024px 1057px}}']});let o=n;return o;})();var z2=o=>({height:o}),G2=o=>({all:o}),j2=(o,n)=>n.checkin_id,$2=(o,n)=>n.topic_id;function H2(o,n){if(o&1&&(s(0,"div",4),Hr(1,6)(2,6),c()),o&2){d(2);let i=ct(2),e=ct(4);l(),C("ngTemplateOutlet",i),l(),C("ngTemplateOutlet",e);}}function U2(o,n){if(o&1&&(s(0,"div",7),g(1,"\u6253\u5361\u6311\u6218"),c(),s(2,"div",4),Hr(3,6),c(),s(4,"div",7),g(5,"\u4F5C\u4E1A\u9898\u76EE"),c(),s(6,"div",4),Hr(7,6),c()),o&2){d(2);let i=ct(2),e=ct(4);l(3),C("ngTemplateOutlet",i),l(4),C("ngTemplateOutlet",e);}}function q2(o,n){if(o&1){let i=y();s(0,"div",5)(1,"div",8),f("click",function(){b(i);let t=d(2);return P(t.showAllCheckins());}
146),s(2,"span"),g(3),c(),M(4,"i",9),c()();}if(o&2){let i=d(2);l(3),A(i.showAll?"\u6536\u8D77":"\u5C55\u5F00"),l(),C("ngClass",R(2,G2,i.showAll));}}function Q2(o,n){if(o&1&&(s(0,"div",2)(1,"div",3),h(2,H2,3,2,"div",4)(3,U2,8,2),c(),h(4,q2,5,4,"div",5),c()),o&2){let i=d();C("ngStyle",R(3,z2,i.showAll?"auto":"37px")),l(2),_(i.showAll&&i.checkins.length&&i.tasks.length?3:2),l(2),_(i.showAllBtn?4:-1);}}function W2(o,n){if(o&1){let i=y();s(0,"div",10),M(1,"i",11),s(2,"div",12),f("click",function(){let t=b(i).$implicit,r=d(2);return P(r.toCheckinTopicsPage(t.checkin_id));}),g(3),c(),s(4,"div",13),f("click",function(){let t=b(i).$implicit,r=d(2);return P(r.getCheckinStatistics(t));}),g(5,"\u53BB\u6253\u5361"),c()();}if(o&2){let i=n.$implicit;l(3),V(" ",i.title," ");}}function X2(o,n){if(o&1&&B(0,W2,6,1,"div",10,j2),o&2){let i=d();N(i.checkins);}}function J2(o,n){if(o&1){let i=y();s(0,"div",18),f("click",function(){b(i);let t=d().$implicit,r=d(2);return P(r.toSolutionListPage(t.topic_id));}),c();}if(o&2){let i=d().$implicit;C("parseHtml",i.task.text);}}function Y2(o,n){o&1&&(s(0,"span"),g(1,"\u300C\u56FE\u7247\u300D"),c());}function K2(o,n){o&1&&(s(0,"span"),g(1,"\u300C\u89C6\u9891\u300D"),c());}function Z2(o,n){if(o&1&&(s(0,"span"),g(1),c()),o&2){let i=d(2).$implicit;l(),A(i.task.files[0].name);}}function ek(o,n){if(o&1){let i=y();s(0,"div",12),f("click",function(){b(i);let t=d().$implicit,r=d(2);return P(r.toSolutionListPage(t.topic_id));}),h(1,Y2,2,0,"span"),h(2,K2,2,0,"span"),h(3,Z2,2,1,"span"),c();}if(o&2){let i=d().$implicit;l(),_(i.task.images?1:-1),l(),_(i.task.video?2:-1),l(),_(i.task.files?3:-1);}}function tk(o,n){if(o&1){let i=y();s(0,"div",14),M(1,"i",11),h(2,J2,1,1,"div",16)(3,ek,4,3,"div",17),s(4,"div",13),f("click",function(){let t=b(i).$implicit,r=d(2);return P(r.handleTaskBtn(t));}),g(5),c()();}if(o&2){let i=n.$implicit,e=d(2);l(2),_(i.task.text?2:3),l(3),V(" ",i.task.owner.user_id===e.currentUserId||i.user_specific.submitted?"\u53BB\u67E5\u770B":"\u4EA4\u4F5C\u4E1A"," ");}}function nk(o,n){if(o&1){let i=y();s(0,"div",19),f("click",function(){b(i);let t=d(2);return P(t.toAllTasksPage());}),M(1,"i",20),s(2,"span"),g(3,"\u67E5\u770B\u5168\u90E8\u4F5C\u4E1A\u9898\u76EE"),c(),M(4,"i",21),c();}}function ik(o,n){if(o&1&&(B(0,tk,6,2,"div",14,$2),h(2,nk,5,0,"div",15)),o&2){let i=d();N(i.tasks.slice(0,8)),l(2),_(i.tasks.length>8?2:-1);}}var Rm=(()=>{let n=class n{constructor(e,t,r){this.router=e,this.checkinsAndTasksService=t,this.indexService=r,this.currentUserId=Number(this.indexService.getSelfInfo("user_id")),this.showAllBtn=!1,this.showAll=!1,this.checkins=[],this.tasks=[],this.subscriptions=[];}ngOnInit(){let e=this.checkinsAndTasksService.checkinsAndTasks$.subscribe(r=>{let a=r.checkins.length+r.tasks.length;this.showAllBtn=a>2,this.checkins=r.checkins,this.tasks=r.tasks;}),t=this.checkinsAndTasksService.newTask$.subscribe(r=>{this.tasks.unshift(r),this.showAllBtn=this.tasks.length+this.checkins.length>2;});this.subscriptions.push(e,t);}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}ngOnChanges(e){e.groupId&&e.groupId.currentValue&&(this.checkinsAndTasksService.getCheckinsAndTasks(this.groupId),this.showAll=!1);}showAllCheckins(){this.showAll=!this.showAll;}getCheckinStatistics(e){this.checkinsAndTasksService.getCheckinStatistics(this.groupId,e);}toSolutionListPage(e){this.router.navigate([`solution_list/${e}`]);}handleTaskBtn(e){e.task.owner.user_id===this.currentUserId||e.user_specific.submitted?this.toSolutionListPage(e.topic_id):(this.indexService.openCreateTopic("solution",{show_topics_on_timeline:e.show_solutions,task_id:e.topic_id}),this.indexService.spareScrollbarSpace());}toAllTasksPage(){this.router.navigate([`homework_list/${this.groupId}`]);}toCheckinTopicsPage(e){this.router.navigate([`checkin/${e}`],{queryParams:{groupId:this.groupId}});}};n.ɵfac=function(t){return new(t||n)(O(ue),O(ba),O(q));},n.ɵcmp=F({type:n,selectors:[["app-checkins-and-tasks"]],inputs:{groupId:"groupId"},standalone:!1,features:[It],decls:5,vars:1,consts:[["checkinsTpl",""],["tasksTpl",""],[1,"checkins-and-tasks",3,"ngStyle"],[1,"left"],[1,"items"],[1,"right"],[3,"ngTemplateOutlet"],[1,"tab"],[1,"showAll",3,"click"],[1,"icon",3,"ngClass"],[1,"item","checkin"],[1,"icon"],[1,"title",3,"click"],[1,"btn",3,"click"],[1,"item","task"],[1,"to-all-tasks"],["parseType","pure",1,"title",3,"parseHtml"],[1,"title"],["parseType","pure",1,"title",3,"click","parseHtml"],[1,"to-all-tasks",3,"click"],[1,"icon","dot"],[1,"icon","arrow"]],template:function(t,r){t&1&&(h(0,Q2,5,5,"div",2),qt(1,X2,2,0,"ng-template",null,0,lr)(3,ik,3,1,"ng-template",null,1,lr)),t&2&&_(r.checkins.length||r.tasks.length?0:-1);},dependencies:[K,vp,De,ze],styles:['.checkins-and-tasks[_ngcontent-%COMP%]{display:flex;margin-bottom:5px;padding:12px 20px;background-color:var(--dweb-bg-panel);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:4px}.checkins-and-tasks[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{flex:1;overflow:hidden}.checkins-and-tasks[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]{flex:1;display:flex;flex-wrap:wrap;justify-content:flex-start}.checkins-and-tasks[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{flex:1;display:flex;align-items:center;width:calc((100% - 40px)/2);min-width:calc((100% - 40px)/2);max-width:calc((100% - 40px)/2);height:24px;padding:6px 8px;margin-left:8px;border-radius:4px;margin-top:8px}.checkins-and-tasks[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2n-1){margin-left:0}.checkins-and-tasks[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(-n+2){margin-top:0}.checkins-and-tasks[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{cursor:pointer;flex:1;margin:0 8px;font-size:14px;font-weight:500;color:var(--dweb-text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:24px;height:24px}.checkins-and-tasks[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{cursor:pointer;width:48px;height:24px;line-height:24px;text-align:center;background:var(--dweb-bg-panel);border-radius:4px;font-size:12px;color:var(--dweb-info, #567895)}.checkins-and-tasks[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item.checkin[_ngcontent-%COMP%]{background:#5a9ef114}.checkins-and-tasks[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item.checkin[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:14px;
146height:15px;background-image:url("./media/[email protected]");background-position:-489px -416px}.checkins-and-tasks[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item.task[_ngcontent-%COMP%]{background:#908ede14}.checkins-and-tasks[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item.task[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:14px;height:14px;background-image:url("./media/[email protected]");background-position:-471px -416px}.checkins-and-tasks[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:hover{background-color:var(--dweb-bg-soft)}.checkins-and-tasks[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .tab[_ngcontent-%COMP%]{font-size:13px;color:var(--dweb-text-muted);line-height:18px;margin-bottom:10px;margin-top:20px}.checkins-and-tasks[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .tab[_ngcontent-%COMP%]:first-child{margin-top:4px}.checkins-and-tasks[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .to-all-tasks[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;width:calc(50% - 6px);height:36px;border-radius:4px;border:1px solid var(--dweb-bg-subtle);font-size:13px;color:var(--dweb-text-secondary);margin-top:8px}.checkins-and-tasks[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .to-all-tasks[_ngcontent-%COMP%]   .dot[_ngcontent-%COMP%]{margin:0 14px;width:2px;height:10px;background-image:url("./media/[email protected]");background-position:-513px -418px}.checkins-and-tasks[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .to-all-tasks[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{margin-left:4px;width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-297px -197px}.checkins-and-tasks[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .to-all-tasks[_ngcontent-%COMP%]:hover{background-color:var(--dweb-bg-soft)}.checkins-and-tasks[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{box-sizing:border-box;width:57px;display:flex;align-items:flex-end;padding:10px 0 10px 14px}.checkins-and-tasks[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .showAll[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;font-size:12px;font-weight:500;color:var(--dweb-info, #567895)}.checkins-and-tasks[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .showAll[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{white-space:nowrap}.checkins-and-tasks[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .showAll[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-left:7px;width:12px;height:6px;background-image:url("./media/[email protected]");background-position:-164px -200px}.checkins-and-tasks[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .showAll[_ngcontent-%COMP%]   .icon.all[_ngcontent-%COMP%]{background-position:-183px -199px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var Ts=(()=>{let n=class n{constructor(){this.timer=null,this.leftTime="3 \u5929 00:00:00";}ngOnInit(){this.timer=setInterval(()=>{this.countDown();},1e3);}ngOnDestroy(){clearInterval(this.timer);}addZero(e){return e<10&&e>=0?"0"+e:e;}countDown(){let e=$p({start:new Date(),end:Ap(ge(this.group.user_specific.join_time+""),3)}),t=e.days,r=e.hours,a=e.minutes,p=e.seconds;t>0?this.leftTime=`${t} \u5929 ${r}:${a}:${p}`:t+r+a+p?this.leftTime=`${this.addZero(r)}:${this.addZero(a)}:${this.addZero(p)}`:this.leftTime="\u5DF2\u5F00\u653E\u9605\u8BFB";}};n.ɵfac=function(t){return new(t||n)();},n.ɵcmp=F({type:n,selectors:[["app-limit-reading"]],inputs:{group:"group"},standalone:!1,decls:13,vars:2,consts:[[1,"limit-reading-container"],[1,"head"],[1,"content"],[1,"icon"],[1,"topics-count"],[1,"timer"],[1,"leftTime"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1),g(2,"\u661F\u4E3B\u5DF2\u8BBE\u7F6E\u65B0\u6210\u5458 3 \u5929\u5185\u4EC5\u80FD\u67E5\u770B\u6709\u9650\u7684\u5185\u5BB9"),c(),s(3,"div",2),M(4,"i",3),s(5,"div")(6,"div",4),g(7),c(),s(8,"div",5),g(9,"\u5C06\u5728 "),s(10,"span",6),g(11),c(),g(12," \u540E\u5F00\u653E\u9605\u8BFB"),c()()()()),t&2&&(l(7),V("\u5168\u90E8 ",r.group.statistics.topics.topics_count," \u6761\u5185\u5BB9"),l(4),A(r.leftTime));},styles:['.limit-reading-container[_ngcontent-%COMP%]{height:225px;background-color:var(--dweb-bg-panel);padding:40px 0;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;margin-bottom:20px}.limit-reading-container[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{font-family:PingFangSC-Medium;font-size:18px;color:var(--dweb-warning);margin-bottom:24px}.limit-reading-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{height:96px;width:360px;background:var(--dweb-bg-soft);border-radius:8px;display:flex;align-items:center;justify-content:center}.limit-reading-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{height:56px;width:56px;background-image:url("./media/[email protected]");background-position:-731px -659px;margin-right:21px}.limit-reading-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .to
146pics-count[_ngcontent-%COMP%]{font-family:PingFangSC-Medium;font-size:16px;color:#1a1a1a;line-height:22px;margin-bottom:8px}.limit-reading-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .timer[_ngcontent-%COMP%]{font-family:PingFangSC-Regular;font-size:12px;color:gray;line-height:16px}.limit-reading-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .timer[_ngcontent-%COMP%]   .leftTime[_ngcontent-%COMP%]{font-family:PingFangSC-Medium;color:#1a1a1a}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.limit-reading-container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var Bm=(()=>{let n=class n{constructor(e,t,r){this.router=e,this.groupListService=t,this.allScheduledJobsService=r,this.subscriptions=[],this.time=Fe(new Date("2012-01-01"),"yyyy-MM-dd'T'HH:mm:ss.SSSXX"),this.count=0;}ngOnInit(){this.doSubscribe(),this.fetchData();}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}doSubscribe(){let e=this.allScheduledJobsService.list$.subscribe(t=>{let r=t.sort((p,m)=>p.scheduled_time>m.scheduled_time?1:-1),a=0;if(r.length){let p=r[0].scheduled_time.split("T")[0];for(let m of r)m.scheduled_time.includes(p)&&a++;this.count=a,this.time=r[0].scheduled_time;}});this.subscriptions.push(e);}fetchData(){this.allScheduledJobsService.getScheduledJobsList(this.groupListService.getSelectedGroup().group_id);}goToManage(){let e=this.groupListService.getSelectedGroup().group_id;this.router.navigate(["scheduled_jobs/",e]);}};n.ɵfac=function(t){return new(t||n)(O(ue),O(ce),O(Di));},n.ɵcmp=F({type:n,selectors:[["app-scheduled-jobs-count"]],standalone:!1,decls:8,vars:6,consts:[[1,"scheduled-jobs-count",3,"hidden"],[1,"entry",3,"click"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"span"),g(2),$(3,"transformFutureTime"),c(),s(4,"div",1),f("click",function(){return r.goToManage();}),s(5,"span"),g(6,"\u7BA1\u7406\u5B9A\u65F6\u53D1\u5E03\u7684\u5185\u5BB9"),c(),M(7,"i"),c()()),t&2&&(C("hidden",!r.count),l(2),Gt("\u6709 ",r.count," \u6761\u5185\u5BB9\u5C06\u4E8E ",Pe(3,3,r.time,r.count)," \u53D1\u5E03 "));}
146,dependencies:[Zp],styles:['.scheduled-jobs-count[_ngcontent-%COMP%]{font-family:PingFangSC-Medium;font-size:12px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--dweb-text-muted);height:40px;padding:0 30px 0 20px;background-color:var(--dweb-bg-panel);border-radius:4px;display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.scheduled-jobs-count[_ngcontent-%COMP%]   .entry[_ngcontent-%COMP%]{display:flex;align-items:center;color:var(--dweb-text-secondary);cursor:pointer}.scheduled-jobs-count[_ngcontent-%COMP%]   .entry[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-left:2px;width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-297px -197px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.manage-scheduled-jobs[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var ak=["menu"],sk=()=>[1,2],ck=o=>({inactive:o}),lk=(o,n)=>n.topic_id;function pk(o,n){if(o&1){let i=y();s(0,"div",18),M(1,"i",19),s(2,"p",20),g(3,"\u514D\u8D39\u4F53\u9A8C\u5DF2\u7ED3\u675F\uFF0C\u6709\u6536\u83B7\u7684\u8BDD\u5C31\u52A0\u5165\u5427"),c(),M(4,"img",21),s(5,"em",22),g(6,"\u6253\u5F00\u5FAE\u4FE1\u626B\u4E00\u626B\u52A0\u5165\u661F\u7403"),c(),s(7,"a",23),f("click",function(){b(i);let t=d(2);return P(t.joinGroup());}),g(8,"\u6211\u5DF2\u652F\u4ED8\uFF0C\u8FDB\u5165\u661F\u7403"),c()();}if(o&2){let i=d(2);l(4),C("src",i.joinCode,se);}}function dk(o,n){if(o&1&&(s(0,"div",18),M(1,"i",24),s(2,"p",20),g(3,"\u661F\u4E3B\u5DF2\u5173\u95ED\u7F51\u9875\u7248\u7684\u6D4F\u89C8\u529F\u80FD"),c(),M(4,"img",21),s(5,"em",22),g(6,"\u8BF7\u626B\u7801\u4E0B\u8F7D\u300C\u77E5\u8BC6\u661F\u7403 App\u300D\u67E5\u770B"),c()()),o&2){let i=d(2);l(4),C("src",i.downloadAppCode,se);}}function gk(o,n){o&1&&(s(0,"div",18),M(1,"i",25),s(2,"p",20),g(3,"\u672C\u661F\u7403\u5DF2\u65E0\u6CD5\u8BBF\u95EE"),c(),s(4,"a",26),g(5,"\u4E86\u89E3\u8BE6\u60C5"),c()());}function uk(o,n){o&1&&M(0,"app-skeleton");}function mk(o,n){if(o&1&&(h(0,pk,9,1,"div",18),h(1,dk,7,1,"div",18),h(2,gk,6,0,"div",18),B(3,uk,1,0,"app-skeleton",null,hn)),o&2){let i=d();_(i.isTrial?0:-1),l(),_(i.isBlock?1:-1),l(),_(i.isLocked?2:-1),l(),N(Qt(3,sk));}}function hk(o,n){if(o&1){let i=y();s(0,"div",46),f("drop",function(t){b(i);let r=d(2);return P(r.dragFile("done",t));})("dragover",function(t){b(i);let r=d(2);return P(r.handleDragOver(t));}),s(1,"div"),g(2,"\u62D6\u62FD\u5230\u8FD9\u91CC\u4E0A\u4F20"),c()();}}function _k(o,n){if(o&1){let i=y();s(0,"div",47),f("click",function(t){b(i);let r=d(2);return P(r.showCreateTopic(t));}),M(1,"img",48),s(2,"div",49),g(3,"\u70B9\u51FB\u53D1\u8868\u4E3B\u9898..."),c()();}if(o&2){let i=d(2);l(),C("src",i.avatarUrl?i.avatarUrl:i.defaultImageUrl,se);}}function fk(o,n){if(o&1){let i=y();s(0,"div",50),f("click",function(t){b(i);let r=d(2);return P(r.showPanel("video",t));}),s(1,"span",34),g(2,"\u6B22\u8FCE\u4F7F\u7528\u4E0A\u4F20\u89C6\u9891\u529F\u80FD\uFF0C\u6B64\u529F\u80FD\u6B63\u5728\u5185\u6D4B\u4E2D\uFF0C\u5EFA\u8BAE\u4E0A\u4F20\u5927\u5C0F\u4E0D\u8D85\u8FC7 1GB\uFF0C\u65F6\u957F\u4E0D\u8D85\u8FC7 60 \u5206\u949F\u7684\u89C6\u9891\uFF0C\u683C\u5F0F\u4E3A MP4 \u548C MO
146V \u7684\u89C6\u9891\u3002\uFF08\u5BA1\u6838\u5C06\u5728 2 \u4E2A\u5C0F\u65F6\u5185\u5B8C\u6210\uFF09"),c()();}}function Ck(o,n){if(o&1){let i=y();s(0,"div",51),f("click",function(t){b(i);let r=d(2);return P(r.showPanel("scheduled",t));}),s(1,"span",34),g(2,"\u5B9A\u65F6\u53D1\u5E03"),c()();}if(o&2){let i=d(2);C("ngClass",R(1,ck,i.indexService.scheduledJobsCount===50));}}function xk(o,n){o&1&&M(0,"span",53);}function vk(o,n){if(o&1){let i=y();s(0,"div",52),f("click",function(t){b(i);let r=d(2);return P(r.showPanel("vote",t));}),h(1,xk,1,0,"span",53),M(2,"span",54),s(3,"span",34),g(4,"\u4E92\u52A8PK"),c()();}if(o&2){let i=d(2);l(),_(i.showVoteDot?1:-1);}}function bk(o,n){if(o&1){let i=y();s(0,"div",55),f("click",function(t){b(i);let r=d(2);return P(r.showCreateTopic(t,!0));}),M(1,"span",56),g(2," \u5E03\u7F6E\u4F5C\u4E1A "),c();}}function Pk(o,n){if(o&1){let i=y();s(0,"div",27),f("dragenter",function(t){b(i);let r=d();return P(r.dragFile("in",t));})("dragleave",function(t){b(i);let r=d();return P(r.dragFile("out",t));}),h(1,hk,3,0,"div",28),h(2,_k,4,1,"div",29),s(3,"div",30)(4,"div",31)(5,"div",32)(6,"div",33),f("click",function(t){b(i);let r=d();return P(r.showPanel("emoji",t));}),s(7,"span",34),g(8,"\u6DFB\u52A0\u8868\u60C5"),c()(),s(9,"div",35),f("click",function(t){b(i);let r=d();return P(r.showPanel("pic",t));}),s(10,"span",34),g(11,"\u6DFB\u52A0\u56FE\u7247"),c()(),s(12,"div",36),f("click",function(t){b(i);let r=d();return P(r.showPanel("file",t));}),s(13,"span",34),g(14,"\u666E\u901A\u6587\u4EF6\uFF08pdf/doc/xlsx/ppt/txt/zip/html \u7B49\u5E38\u89C1\u683C\u5F0F\uFF09\uFF0C\u6700\u5927\u652F\u6301 50MB\uFF1B\u97F3\u9891\u6587\u4EF6\uFF08mp3/wav/m4a\uFF09\uFF0C\u6700\u5927\u652F\u6301 100MB\u3002"),c()(),h(15,fk,3,0,"div",37),s(16,"div",38),f("click",function(t){b(i);let r=d();return P(r.showPanel("bold",t));}),s(17,"span",34),g(18,"\u52A0\u7C97"),c()(),s(19,"div",39),f("click",function(t){b(i);let r=d();return P(r.showPanel("tag",t));}),s(20,"span",34),g(21,"\u6DFB\u52A0\u6807\u7B7E"),c()(),h(22,Ck,3,3,"div",40),h(23,vk,5,1,"div",41),c(),s(24,"div",42),h(25,bk,3,0,"div",43),s(26,"div",44),f("click",function(){b(i);let t=d();return P(t.goToArticle());}),M(27,"span",45),g(28," \u5199\u6587\u7AE0 "),c()()()()();}if(o&2){let i=d();l(),_(i.droping?1:-1),l(),_(i.droping?-1:2),l(13),_(i.indexService.videoSettings.canCreateVideo?15:-1),l(7),_(i.indexService.isOwnerOrAdminOrPartner?22:-1),l(),_(i.showVoteBtn?23:-1),l(2),_(i.postTaskVisible?25:-1);}}function Mk(o,n){o&1&&(s(0,"div",3)(1,"div",57),M(2,"i",58),s(3,"div",59),M(4,"i",60),s(5,"span"),g(6,"\u5982\u6709\u4F7F\u7528\u4E0A\u7684\u95EE\u9898\uFF0C\u8BF7\u5148\u770B\u770B\u7F6E\u9876\u4E3B\u9898\u6216\u6253\u5F00\u300C\u77E5\u8BC6\u661F\u7403 App\u300D\u5411\u5BA2\u670D\u63D0\u95EE"),c()(),M(7,"i",58),c()());}function Ok(o,n){if(o&1&&M(0,"app-skeleton",4),o&2){let i=d();C("hidden",!i.skeletonVisible);}}function wk(o,n){if(o&1){let i=y();s(0,"app-renewal",61),f("close-notice",function(){b(i);let t=d();return P(t.hideRenewalNotice());}),c();}if(o&2){let i=d();C("isExpired",i.needRenewAndExpired)("expiredTime",i.expiredTime);}}function yk(o,n){o&1&&M(0,"app-scheduled-jobs-count");}function kk(o,n){if(o&1&&M(0,"app-menu",7,0),o&2){let i=d();C("groupId",i.groupId)("unansweredCount",i.unansweredCount);}}function Sk(o,n){if(o&1){let i=y();s(0,"app-sticky-topic",62),f("show-topic-detail",function(t){b(i);let r=d();return P(r.receiveTopic(t));}),c(),M(1,"app-checkins-and-tasks",16);}if(o&2){let i=d();l(),C("groupId",i.groupId);}}function Tk(o,n){if(o&1&&(s(0,"div",8),g(1),c()),o&2){let i=d();l(),V(" \u4F60\u7684\u4ED8\u8D39\u670D\u52A1\u5DF2\u4E8E",i.expiredDate,"\u5230\u671F\uFF0C\u672C\u661F\u7403\u6682\u4E0D\u63D0\u4F9B\u7EED\u671F\u670D\u52A1\uFF0C\u5DF2\u8D2D\u4E70\u6709\u6548\u671F\u7684\u5185\u5BB9\u4ECD\u53EF\u67E5\u9605\u3002 ");}}function Ek(o,n){o&1&&(s(0,"div",9),g(1," \u5DF2\u5173\u95ED\u300C\u6210\u5458\u7EED\u671F\u300D\uFF0C\u53EF\u5728\u77E5\u8BC6\u661F\u7403 App \u4E2D\uF901\u6539 "),c());}function Dk(o,n){if(o&1&&(s(0,"div",63),M(1,"app-handle-checkin",16),c()),o&2){let i=d(2);l(),C("groupId",i.groupId);}}function Ik(o,n){if(o&1){let i=y();s(0,"app-topic",67),f("view-topic-detail",function(t){b(i);let r=d(3);return P(r.receiveTopic(t));})("handle-dialog",function(t){b(i);let r=d(3);return P(r.showDialog(t));})("show-poster-dialog",function(t){b(i);let r=d(3);return P(r.showPosterDialog(t));}),c();}if(o&2){let i=n.$implicit,e=n.$index;C("topicData",i)("index",e);}}function Fk(o,n){o&1&&(s(0,"app-lottie-loading"),g(1,"\u4E3B\u9898\u52A0\u8F7D\u4E2D..."),c());}function Ak(o,n){if(o&1){let i=y();s(0,"div",70),f("click",function(){b(i);let t=d(4);return P(t.retryLoadTopic());}),g(1,"\u70B9\u51FB\u91CD\u8BD5"),c();}}function Vk(o,n){if(o&1&&M(0,"app-limit-reading",65),o&2){let i=d(4);C("group",i.groupListService.getSelectedGroup());}}function Rk(o,n){o&1&&(s(0,"div",69),g(1,"\u6CA1\u6709\u66F4\u591A\u4E86"),c());}function Lk(o,n){if(o&1&&h(0,Fk,2,0,"app-lottie-loading")(1,Ak,2,0,"div",68)(2,Vk,1,1,"app-limit-reading",65)(3,Rk,2,0,"div",69),o&2){let i=d(3);_(i.mainService.topicLoading?0:i.mainService.topicError?1:i.readingLimit?2:3);}}function Bk(o,n){if(o&1&&M(0,"app-limit-reading",65),o&2){let i=d(3);C("group",i.groupListService.getSelectedGroup());}}
146function Nk(o,n){o&1&&(s(0,"div",66),M(1,"i",71),s(2,"span"),g(3,"\u8FD9\u91CC\u7A7A\u7A7A\u5982\u4E5F"),c()());}function zk(o,n){if(o&1&&(B(0,Ik,1,2,"app-topic",64,lk),h(2,Lk,4,1)(3,Bk,1,1,"app-limit-reading",65)(4,Nk,4,0,"div",66)),o&2){let i=d(2);N(i.mainService.topicList),l(2),_(i.mainService.topicList.length>0?2:i.readingLimit?3:4);}}function Gk(o,n){if(o&1&&h(0,Dk,2,1,"div",63)(1,zk,5,1),o&2){let i=d();_(i.mainService.scope==="checkins"?0:1);}}function jk(o,n){if(o&1){let i=y();s(0,"app-create-topic",72),f("close-message",function(){b(i);let t=d();return P(t.closeCreateTopic());})("update-topics",function(t){b(i);let r=d();return P(r.updateTopics(t));})("update-edit-topics",function(t){b(i);let r=d();return P(r.updateEditTopics(t));})("no-on-timeline",function(t){b(i);let r=d();return P(r.showNoOnTimelineTip(t));})("show-poster-dialog",function(t){b(i);let r=d();return P(r.showPosterDialog(t));}),c();}if(o&2){let i=d();C("openPanel",i.openPanelType)("createTopicType",i.createTopicType)("extra",i.extraData);}}function $k(o,n){if(o&1){let i=y();s(0,"app-topic-detail",73),f("handle-topic-detail",function(){b(i);let t=d();return P(t.closeTopicDetail());})("show-poster-dialog",function(t){b(i);let r=d();return P(r.showPosterDialog(t));}),c();}if(o&2){let i=d();C("topicData",i.selectedTopic)("hasWaterMark",i.hasWatermark);}}function Hk(o,n){if(o&1){let i=y();s(0,"app-answer-question",74),f("answer-topic",function(){b(i);let t=d();return P(t.closeTopicDetail());}),c();}if(o&2){let i=d();C("topicData",i.selectedTopic);}}function Uk(o,n){if(o&1){let i=y();s(0,"app-dialog",75),f("dialog-confirm",function(){b(i);let t=d();return P(t.reviewDialogVisible=!1);}),s(1,"div"),g(2,"\u4F60\u53D1\u8868\u7684\u4E3B\u9898\u6B63\u5728\u5BA1\u6838\u4E2D\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85\u3002"),c()();}}function qk(o,n){if(o&1){let i=y();s(0,"app-dialog",76),f("dialog-confirm",function(){b(i);let t=d();return P(t.videoDialogVisible=!1);}),s(1,"div"),g(2,"\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF\u6216\u89C6\u9891\u5DF2\u635F\u574F\uFF0C\u8BF7\u68C0\u67E5\u5E76\u91CD\u65B0\u4E0A\u4F20\u3002"),c()();}}function Qk(o,n){if(o&1){let i=y();s(0,"app-dialog",77),f("close-dialog",function(){b(i);let t=d();return P(t.noOnTimelineTip=!1);})("dialog-confirm",function(){b(i);let t=d();return P(t.showNoOnTimelineTopic());}),s(1,"div"),g(2),c()();}if(o&2){let i=d();C("allowMaskClose",!0)("confirmBtnText",i.noOnTimeLineBtnText),l(2),A(i.noOnTimeLineText);}}function Wk(o,n){if(o&1&&M(0,"app-mushroom-panel",16),o&2){let i=d();C("groupId",i.mushroomGroupId);}}var Nm=(()=>{let n=class n{get isSignedAutoRenew(){var t;let e=this.groupListService.getSelectedGroup();return e.policies.auto_renewal.enabled&&((t=e.user_specific.auto_renewal)==null?void 0:t.contract_info.is_sign);}get showVoteBtn(){var t;let e=this.groupListService.getSelectedGroup();return this.indexService.isOwnerOrAdminOrPartner||!!((t=e==null?void 0:e.guest_ids)!=null&&t.includes(+this.userId));}get showVoteDot(){return!this.dotService.isSeen(Uo.InteractivePkEntry,this.userId);}constructor(e,t,r,a,p,m,v,x,w,k,S,E){this.message=e,this.mainService=t,this.indexService=r,this.groupListService=a,this.topicDetailService=p,this.createTopicService=m,this.topicService=v,this.activeRoute=x,this.menuService=w,this.checkinsAndTasksService=k,this.taskContentService=S,this.dotService=E,this.skeletonVisible=!0,this.createTopicVisible=!1,this.answerTopicVisible=!1,this.unansweredVisible=!1,this.unansweredCount=0,this.guests=[],this.skeletonArray=Array(4).fill(null),this.windowAvaliableWidth=0,this.defaultImageUrl=an,this.subscriptions=[],this.userId=window.localStorage.getItem("user_id"),this.avatarUrl=window.localStorage.getItem("avatar_url"),this.showNeedRenew=!1,this.needRenewAndExpired=!1,this.notAllowRenewAndExpired=!1,this.showOpenMemberRenew=!1,this.bulletinDialogVisible=!1,this.reviewDialogVisible=!1,this.videoDialogVisible=!1,this.joinCode="",this.isTrial=!1,this.isBlock=!1,this.isLocked=!1,this.hideContent=!1,this.downloadAppCode="",this.checkinsCode="",this.openPanelType="",this.droping=!1,this.dragCounter=0,this.questionTipTimer=null,this.isHelpGroup=!1,this.readingLimit=!1,this.noOnTimelineTip=!1,this.noOnTimeLineBtnText="",this.noOnTimeLineText="",this.postTaskVisible=!1,this.createTopicType="topic",this.hasWatermark=!1,this.currentPosterTopic=null,this.mushroomGroupId=null,this.storageListener=I=>{I.oldValue&&(I.key==="postArticleTopic"?this.updateTopics(JSON.parse(I.oldValue)):I.key==="linkArticleTopic"&&this.updateTopics(JSON.parse(I.oldValue),!0));};}onDragleave(){this.droping&&(this.droping=!1);}
146ngOnInit(){this.doSubscribe(),this.mainService.getNpsStatus();}ngAfterViewInit(){this.indexService.currentList="topicFlow",window.addEventListener("storage",this.storageListener);}ngOnDestroy(){window.removeEventListener("storage",this.storageListener),this.subscriptions.forEach(e=>e.unsubscribe());}doSubscribe(){let e=this.activeRoute.params.subscribe(G=>{this.showNeedRenew=!1;let pe=G.id,Ce=this.indexService.getSelfInfo("user_id");this.isHelpGroup=Number(pe)===ie.HELP_GROUP.ID&&Ce!==ie.HELP_GROUP.OWNER_ID;}),t=this.mainService.hideContent$.subscribe(G=>{if(G){if(this.isTrial=G==="isTrial",this.isBlock=G==="isBlock",this.isLocked=G==="isLocked",this.isTrial){let pe=this.groupListService.getSelectedGroup();this.createCode(pe.group_id);}this.isBlock&&this.createDownloadAppCode(),this.skeletonVisible=!1;}else this.isBlock=this.isTrial=this.isLocked=!1;this.hideContent=this.isTrial||this.isBlock||this.isLocked;}),r=this.mainService.isCheckins$.subscribe(G=>{let pe=this.groupListService.getSelectedGroup();this.createCode(pe.group_id,"checkins"),this.skeletonVisible=!1,this.indexService.playLoading(!1);}),a=this.mainService.topic$.subscribe(G=>{let pe=this.groupListService.getSelectedGroup(),Ce=pe.group_id;if(G.length>0&&G[0].group.group_id!==Ce)return;this.skeletonVisible=!1,this.indexService.playLoading(!1);let Ee=decodeURIComponent(this.mainService.selectedBeginTime).split("T")[0].substring(0,7),Xe=[],Ke=[];this.mainService.hashtagId||this.mainService.subHashtagIds?(Xe=G.filter(rt=>rt.create_time.split("T")[0].substring(0,7)===Ee),Ke=Ee?Xe:G):Ke=G,this.groupId===Ce?this.mainService.topicList=this.mainService.topicList.concat(Ke):(this.mainService.topicList=Ke,this.groupId=Ce),Ke.length>=0&&(this.readingLimit=gi(pe));}),p=this.mainService.loadingTopic$.subscribe(()=>{this.skeletonVisible=!0,this.showNeedRenew=!1,this.showOpenMemberRenew=!1,this.notAllowRenewAndExpired=!1,this.indexService.notAllowRenewAndExpired=!1,this.needRenewAndExpired=!1,this.indexService.needRenewAndExpired=!1;}),m=this.menuService.groupMenus$.subscribe(()=>{var Ke;if(window.localStorage.getItem("auto_send_topic")){window.localStorage.removeItem("auto_send_topic");let rt=+window.localStorage.getItem("auto_topic_img_id");rt?(window.localStorage.removeItem("auto_topic_img_id"),this.createTopicService.createTopicImages=[{uid:Math.random().toString(36).substring(2),image_id:rt,progress:100,url:"assets_dweb/images/download_app_poster.png"}],this.createTopicService.postImageIds=[rt],this.showCreateTopic()):this.showCreateTopic();}let G=this.groupListService.getSelectedGroup();this.mushroomGroupId=G.group_id,this.hasWatermark=G.policies.enable_watermark;let pe=G.user_specific.membership,Ce=G.type==="pay"&&G.policies.payment.mode==="period";this.expiredTime=pe?G.user_specific.validity.end_time:null,pe&&pe.need_renew?(Ce&&!G.policies.allow_member_renew&&(this.notAllowRenewAndExpired=!0,this.indexService.notAllowRenewAndExpired=!0,this.expiredDate=Fe(ge(pe.end_time+""),"yyyy\u5E74M\u6708d\u65E5")),this.showNeedRenew=!0,this.needRenewAndExpired=!0,this.indexService.needRenewAndExpired=!0):pe&&!pe.need_renew&&pe.can_renew&&(this.showNeedRenew=!0,this.needRenewAndExpired=!1);let Ee=G.owner.user_id===+this.userId,Xe=(Ke=G.admin_ids)==null?void 0:Ke.includes(+this.userId);this.postTaskVisible=Ee||Xe,Ee&&Ce&&!G.policies.allow_member_renew&&(this.showOpenMemberRenew=!0),this.readingLimit=gi(G);}),v=this.topicService.QuestionTopic$.subscribe(G=>{this.topicDetailService.setAnswerInputStatus(!0,"mainTopics"),G.openType="question",this.selectedTopic=G,this.indexService.spareScrollbarSpace();}),x=this.mainService.selectedTopic$.subscribe(G=>{G.openType="bestTopic",this.selectedTopic=G,this.indexService.spareScrollbarSpace(),this.topicDetailService.commentBeginTime="",this.topicDetailService.getComments(G.topic_id,this.topicDetailService.commentBeginTime);}),w=this.topicService.topicOperation$.subscribe(({listName:G,type:pe,topic:Ce,index:Ee})=>{if(G==="topicFlow"){if(!Ce||Object.keys(Ce).length===0||Ee<0)return;pe==="delete"&&(Ce.sticky||this.mainService.topicList.splice(Ee,1)),this.closeTopicDetail();}}),k=this.mainService.modifyTopic$.subscribe(G=>{G&&(this.createTopicService.postImageIds=[],this.createTopicService.createTopicImages=[],this.createTopicService.postFileIds=[],this.createTopicService.createTopicFiles=[],this.indexService.spareScrollbarSpace(),this.createTopicType=G.type,this.createTopicVisible=!0,this.tempEditTopic=G);}),S=this.mainService.topicDetailVisible$.subscribe(G=>{G||this.closeTopicDetail();}),E=this.topicService.taskTopic$.subscribe(G=>{G&&(this.selectedTopic=Object.assign({},G),this.selectedTopic.openType="task",this.indexService.spareScrollbarSpace(),this.topicDetailService.getComments(G.to
146pic_id,""));}),I=this.topicService.openNewDetail$.subscribe(G=>{G&&(this.selectedTopic=Object.assign({},G),this.selectedTopic.openType="detail",this.indexService.spareScrollbarSpace(),this.topicDetailService.getComments(G.topic_id,""));}),T=this.checkinsAndTasksService.checkinInfo$.subscribe(G=>{this.indexService.spareScrollbarSpace(),this.createTopicType="checkin",this.extraData=G,this.createTopicVisible=!0;}),D=this.taskContentService.newSolution$.subscribe(G=>{this.mainService.insertTopic(G);}),L=this.mainService.deleteMember$.subscribe(G=>{this.mainService.topicList=this.mainService.topicList.filter(pe=>Yn(pe).owner.user_id!==G);}),J=this.indexService.updateAvatar$.subscribe(G=>{this.avatarUrl=G;});this.subscriptions.push(e,t,r,a,p,m,v,x,w,k,S,E,L,I,J,T,D);}createCode(e,t="join"){let r=`${ie.MWEB_URL}joingroup/join_group.html?group_id=${e}`,a=`${ie.MWEB_URL}checkins/index.html?group_id=${e}`,p=t==="join"?r:a;wl.default.toDataURL(p,{margin:0}).then(m=>{t==="join"?this.joinCode=m:this.checkinsCode=m;}).catch(m=>{console.error(m);});}createDownloadAppCode(){wl.default.toDataURL("https://t.zsxq.com/app/").then(e=>{this.downloadAppCode=e;}).catch(e=>{console.error(e);});}joinGroup(){window.location.reload();}showCreateTopic(e=null,t=!1){e==null||e.stopPropagation(),this.checkPermission(()=>{t&&(this.createTopicType="task"),this.createTopicVisible=!0,this.indexService.spareScrollbarSpace();});}closeCreateTopic(){this.extraData=null,this.createTopicVisible=!1,this.createTopicType="topic",this.indexService.remainScrollbarStyle(),this.openPanelType="";}showPanel(e,t){this.openPanelType=e,this.showCreateTopic(t);}dragFile(e,t){t.preventDefault(),t.stopPropagation(),e!=="done"?e==="in"?(this.dragCounter++,this.droping=!0):e==="out"&&(this.dragCounter--,this.dragCounter||(this.droping=!1)):(this.droping=!1,this.createTopicService.dragFile=t.dataTransfer.files,this.showCreateTopic(t));}updateTopics(e,t=!1){t?this.mainService.topicList.splice(this.mainService.topicList.findIndex(r=>r.topic_id===e.topic_id),1,e):(this.menu.selectNewestMenu(),e.type==="task"&&this.checkinsAndTasksService.updateTask(e));}updateEditTopics(e){if(e.sticky)this.topicService.updateEditTopics(e);else{let t=this.mainService.topicList.findIndex(r=>r.topic_id===this.tempEditTopic.topic_id);t!==-1&&this.mainService.topicList.splice(t,1,e);}}receiveTopic(e){e.comments=[],this.selectedTopic=Object.assign({},e),this.selectedTopic.openType="detail",this.indexService.spareScrollbarSpace(),this.topicDetailService.commentBeginTime="",this.topicDetailService.getComments(e.topic_uid||e.topic_id,this.topicDetailService.commentBeginTime);}receiveAnswerTopic(e){this.selectedTopic=e,this.indexService.spareScrollbarSpace(),this.answerTopicVisible=!0;}closeTopicDetail(){this.selectedTopic=null,this.selectedTopicIndex=-1,this.indexService.remainScrollbarStyle();}watchResize(){this.windowAvaliableWidth=window.innerWidth,this.pageResize$=At(window,"resize").pipe(Ct(1500)),this.pageResize$.subscribe(()=>{this.windowAvaliableWidth!==window.innerWidth&&window.location.reload();});}goToArticle(){this.checkPermission(()=>{let e=this.groupListService.getSelectedGroup().group_id;ne(`article?groupId=${e}`);});}showBulletinDialog(){this.bulletinDialogVisible=!0;}hideBulletinDialog(){this.bulletinDialogVisible=!1;}showDialog(e){e==="review"?this.reviewDialogVisible=!0:e==="video"&&(this.videoDialogVisible=!0);}handleDragOver(e){e.preventDefault();}hideRenewalNotice(){this.showNeedRenew=!1;}checkPermission(e){let t="\u6CA1\u6709\u53D1\u8868\u4E3B\u9898\u7684\u6743\u9650";if(!this.groupListService.getSelectedGroup())return!1;this.indexService.isGroupOwner?e():this.indexService.isTrialMember?this.message.info({content:t}):this.indexService.canCreateTopic?e():(this.indexService.isMember&&(this.indexService.createTopicNeedReward&&(t="\u4E0B\u8F7D App \u8D5E\u8D4F\u661F\u4E3B\u540E\u5373\u53EF\u53C2\u4E0E\u4E92\u52A8"),this.indexService.joinEnoughTime||(t="\u65B0\u6210\u5458\u4E00\u5929\u540E\u624D\u53EF\u4EE5\u53D1\u8868\u4E3B\u9898")),this.message.info({content:t}));}showNoOnTimelineTip(e){let t=e.checkin;this.noOnTimeLineBtnText=e.process_status?"\u77E5\u9053\u4E86":"\u67E5\u770B\u8BE6\u60C5",this.noOnTimelineTip=!0,this.noOnTimelineTopic=e,this.noOnTimeLineText=`\u6839\u636E\u661F\u4E3B\u8BBE\u7F6E\uFF0C\u672C\u6B21\u4E3B\u9898\u4E0D\u51FA\u73B0\u5728\u65F6\u95F4\u7EBF\u548C\u52A8\u6001\uFF0C\u53EF\u524D\u5F80\u5BF9\u5E94${t?"\u6253\u5361\u6311\u6218":"\u6807\u7B7E\u4E3B\u9898"}\u5217\u8868\u67E5\u770B`;}
146showPosterDialog(e){this.currentPosterTopic=e;}hidePosterDialog(){this.currentPosterTopic=null;}showNoOnTimelineTopic(){this.noOnTimelineTip=!1,this.noOnTimeLineBtnText==="\u67E5\u770B\u8BE6\u60C5"&&(this.topicService.isFromAnotherDetail=!0,this.receiveTopic(this.noOnTimelineTopic));}retryLoadTopic(){let e=this.mainService.beginTime,r=this.groupListService.getSelectedGroup().group_id;this.mainService.scope==="custom_hashtag"?this.mainService.subHashtagIds?this.mainService.getSubTagTopics(this.mainService.currentSubTagId?this.mainService.currentSubTagId:this.mainService.subHashtagIds,this.mainService.endTime):this.mainService.getTagTopics(r,this.mainService.endTime):this.mainService.getTopics(r,this.mainService.scope,e,this.mainService.endTime);}};n.ɵfac=function(t){return new(t||n)(O(le),O(oe),O(q),O(ce),O(Te),O(zn),O(Oe),O(ke),O(qo),O(ba),O(Ai),O(Cs));},n.ɵcmp=F({type:n,selectors:[["app-main-content"]],viewQuery:function(t,r){if(t&1&&_e(ak,5),t&2){let a;ee(a=te())&&(r.menu=a.first);}},hostBindings:function(t,r){t&1&&f("dragleave",function(){return r.onDragleave();},wt);},standalone:!1,features:[ot([{provide:Mi,useValue:!0},{provide:Zr,useValue:"groupTopicView"}])],decls:22,vars:20,consts:[["menu",""],[1,"main-content-container"],[1,"post-container"],[1,"help-guide"],[3,"hidden"],[1,"topic-container",3,"hidden"],[3,"isExpired","expiredTime"],[3,"groupId","unansweredCount"],[1,"not-allow-renew-notice"],[1,"not-allow-renew-notice",2,"text-align","center"],[3,"openPanel","createTopicType","extra"],[3,"topicData","hasWaterMark"],[3,"topicData"],["title","\u6E29\u99A8\u63D0\u793A","type","confirm","confirmBtnText","\u77E5\u9053\u4E86","position","center"],["title","\u6E29\u99A8\u63D0\u793A","type","confirm","confirmBtnText","\u786E\u5B9A","position","center"],["title","\u4E3B\u9898\u53D1\u5E03\u6210\u529F","type","confirm","position","center",3,"allowMaskClose","confirmBtnText"],[3,"groupId"],[3,"closeDialog","visible","topicData"],[1,"experience-expire"],[1,"experience-expire-icon"],[1,"experience-expire-desc"],["alt","","srcset","",1,"experience-expire-code",3,"src"],[1,"experience-expire-hint"],[1,"experience-expire-link",3,"click"],[1,"block-icon"],[1,"locked-icon"],["href","https://doc.zsxq.com/faq/changjian.html",1,"experience-expire-doc"],[1,"post-container",3,"dragenter","dragleave"],[1,"droping"],[1,"post-topic-head"],[1,"post-topic-footer"],[1,"post-topic-btn"],[1,"left"],[1,"emoji",3,"click"],[1,"explain"],[1,"pic",3,"click"],[1,"file",3,"click"],[1,"video"],[1,"bold",3,"click"],[1,"tag",3,"click"],[1,"scheduled",3,"ngClass"],[1,"vote-btn"],[1,"post-action"],[1,"common","post-task"],[1,"common","post-article",3,"click"],[1,"article-icon"],[1,"droping",3,"drop","dragover"],[1,"post-topic-head",3,"click"],[1,"avatar",3,"src"],[1,"tip"],[1,"video",3,"click"],[1,"scheduled",3,"click","ngClass"],[1,"vote-btn",3,"click"],[1,"vote-dot"],[1,"vote-icon"],[1,"common","post-task",3,"click"],[1,"task-icon"],[1,"content"],[1,"pin-icon"],[1,"middle"],[1,"girl-icon"],[3,"close-notice","isExpired","expiredTime"],[3,"show-topic-detail"],[1,"to-checkins"],["type","flow",3,"topicData","index"],[3,"group"],[1,"no-data"],["type","flow",3,"view-topic-detail","handle-dialog","show-poster-dialog","topicData","index"],[1,"retry-bar"],[1,"no-more"],[1,"retry-bar",3,"click"],[1,"icon"],[3,"close-message","update-topics","update-edit-topics","no-on-timeline","show-poster-dialog","openPanel","createTopicType","extra"],[3,"handle-topic-detail","show-poster-dialog","topicData","hasWaterMark"],[3,"answer-topic","topicData"],["title","\u6E29\u99A8\u63D0\u793A","type","confirm","confirmBtnText","\u77E5\u9053\u4E86","position","center",3,"dialog-confirm"],["title","\u6E29\u99A8\u63D0\u793A","type","confirm","confirmBtnText","\u786E\u5B9A","position","center",3,"dialog-confirm"],["title","\u4E3B\u9898\u53D1\u5E03\u6210\u529F","type","confirm","position","center",3,"close-dialog","dialog-confirm","allowMaskClose","confirmBtnText"]],template:function(t,r){t&1&&(s(0,"div",1),h(1,mk,5,4),h(2,Pk,29,6,"div",2),h(3,Mk,8,0,"div",3),B(4,Ok,1,1,"app-skeleton",4,hn),s(6,"div",5),h(7,wk,1,2,"app-renewal",6),h(8,yk,1,0,"app-scheduled-jobs-count"),h(9,kk,2,2,"app-menu",7),h(10,Sk,2,1),h(11,Tk,2,1,"div",8),h(12,Ek,2,0,"div",9),c(),h(13,Gk,2,1),h(14,jk,1,3,"app-create-topic",10),h(15,$k,1,2,"app-topic-detail",11),h(16,Hk,1,1,"app-answer-question",12),h(17,Uk,3,0,"app-dialog",13),h(18,qk,3,0,"app-dialog",14),h(19,Qk,3,3,"app-dialog",15),h(20,Wk,1,1,"app-mushroom-panel",16),s(21,"app-poster-dialog",17),f("
146closeDialog",function(){return r.hidePosterDialog();}),c()()),t&2&&(l(),_(r.hideContent?1:-1),l(),_(!r.needRenewAndExpired&&!r.hideContent&&!r.isHelpGroup?2:-1),l(),_(r.isHelpGroup?3:-1),l(),N(r.skeletonArray),l(2),C("hidden",r.skeletonVisible||r.hideContent),l(),_(r.showNeedRenew&&!r.notAllowRenewAndExpired&&!r.isSignedAutoRenew?7:-1),l(),_(r.indexService.scheduledJobsCount?8:-1),l(),_(r.groupId?9:-1),l(),_(r.mainService.menuIndex===0?10:-1),l(),_(r.notAllowRenewAndExpired?11:-1),l(),_(r.showOpenMemberRenew?12:-1),l(),_(!r.hideContent&&!r.skeletonVisible?13:-1),l(),_(r.createTopicVisible?14:-1),l(),_(r.selectedTopic?15:-1),l(),_(r.answerTopicVisible?16:-1),l(),_(r.reviewDialogVisible?17:-1),l(),_(r.videoDialogVisible?18:-1),l(),_(r.noOnTimelineTip?19:-1),l(),_(r.mushroomGroupId?20:-1),l(),C("visible",!!r.currentPosterTopic)("topicData",r.currentPosterTopic));},dependencies:[K,Ze,Ae,ve,bd,Xa,Em,Im,Fm,Vm,An,xs,ft,_s,Rm,Ts,Bm],styles:['.main-content-container[_ngcontent-%COMP%]{margin-top:10px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]{padding-top:20px;margin-bottom:5px;background-color:var(--dweb-bg-panel);border-radius:4px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .droping[_ngcontent-%COMP%]{padding-left:21px;padding-right:21px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .droping[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{border:1px dashed var(--dweb-disabled);height:68px;align-items:center;justify-content:center;display:flex;font-size:14px;color:var(--dweb-text-placeholder);background-color:var(--dweb-bg-hover, #FAFBFC);border-radius:4px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-head[_ngcontent-%COMP%]{display:flex;align-items:center;margin:0 20px;padding:20px;cursor:pointer;border-radius:4px;background:var(--dweb-bg-soft)}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-head[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:15px;background:var(--dweb-bg-subtle, #F5F6F7)}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-head[_ngcontent-%COMP%]   .tip[_ngcontent-%COMP%]{font-family:PingFangSC-Regular;font-size:14px;color:var(--dweb-text-muted, #8B8E9D);letter-spacing:0;margin-left:10px;width:300px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-footer[_ngcontent-%COMP%]{height:60px;margin:0 20px;display:flex;justify-content:space-between;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]{display:flex;align-items:center}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]{display:none;position:absolute;bottom:38px;left:-164px;width:427px;background:var(--dweb-bg-warm);border:1px solid var(--dweb-border-tooltip);box-shadow:0 8px 16px 0 var(--dweb-border-faint);border-radius:6px;padding:15px 16px;box-sizing:border-box;font-size:12px;color:var(--dweb-text-body);line-height:20px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]:before{content:"";position:absolute;display:block;width:0;height:0;border:5px solid var(--dweb-border-tooltip);border-right:5px solid transparent;border-bottom:5px solid transparent;border-top-left-radius:1px;transform:rotate(-135deg);bottom:-5px;left:167px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]:after{content:"";position:absolute;display:block;width:0;height:0;border:6px solid var(--dweb-bg-warm);border-right:6px solid transparent;border-bottom:6px solid transparent;transform:rotate(-135deg);bottom:-3px;left:166px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .emoji[_ngcontent-%COMP%]{position:relative;height:18px;width:18px;background-image:url("./media/[email protected]");background-position:-333px -308px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .emoji[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block;width:72px;padding:10px;left:-28px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .emoji[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:before{left:28px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .emoji[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:after{left:27px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .file[_ng
146content-%COMP%]{position:relative;width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-444px -307px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .pic[_ngcontent-%COMP%]{position:relative;width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-384px -307px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .pic[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block;width:72px;padding:10px;left:-28px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .pic[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:before{left:28px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .pic[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:after{left:27px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .video[_ngcontent-%COMP%]{width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-300px -309px;position:relative}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .video[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]{position:relative;width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-362px -307px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block;width:48px;padding:10px;left:-17px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:before{left:17px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:after{left:16px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .tag[_ngcontent-%COMP%]{position:relative;width:14px;height:18px;background-image:url("./media/[email protected]");background-position:-492px -308px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .tag[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block;width:72px;padding:10px;left:-28px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .tag[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:before{left:28px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .tag[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:after{left:27px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .scheduled[_ngcontent-%COMP%]{position:relative;width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-414px -308px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .scheduled.inactive[_ngcontent-%COMP%]{pointer-events:none;background-position:-414px -381px!important}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .scheduled[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block;width:72px;padding:10px;left:-28px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .scheduled[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:before{left:28px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .scheduled[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:after{left:27px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .vote-btn[_ngcontent-%COMP%]{position:relative;width:18px;height:18px;
146cursor:pointer}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .vote-btn[_ngcontent-%COMP%]   .vote-icon[_ngcontent-%COMP%]{display:block;width:100%;height:100%;-webkit-mask:url("./media/pk_icon-AJHWO2QR.svg") no-repeat center/contain;mask:url("./media/pk_icon-AJHWO2QR.svg") no-repeat center/contain;background-color:var(--dweb-text-muted)}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .vote-btn[_ngcontent-%COMP%]   .vote-dot[_ngcontent-%COMP%]{position:absolute;top:-2px;right:-4px;width:6px;height:6px;border-radius:50%;background-color:var(--dweb-danger);z-index:1}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .vote-btn[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]{display:block;padding:10px;width:fit-content;white-space:nowrap;left:-18px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .vote-btn[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:before{left:18px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .vote-btn[_ngcontent-%COMP%]:hover   .explain[_ngcontent-%COMP%]:after{left:17px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{cursor:pointer;margin-right:24px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:last-child{margin-right:0}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-action[_ngcontent-%COMP%]{display:flex;align-items:center}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-action[_ngcontent-%COMP%]   .common[_ngcontent-%COMP%]{position:relative;padding-left:16px;margin-left:16px;height:30px;line-height:30px;text-align:center;font-size:12px;font-weight:700;color:var(--dweb-text-muted, #8B8E9D);
146cursor:pointer}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-action[_ngcontent-%COMP%]   .common[_ngcontent-%COMP%]:before{position:absolute;top:calc(50% - 6px);left:0;display:block;content:"";height:12px;width:1px;background-color:var(--dweb-bg-canvas)}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-action[_ngcontent-%COMP%]   .post-task[_ngcontent-%COMP%]   .task-icon[_ngcontent-%COMP%]{display:inline-block;width:12px;height:12px;background-image:url("./media/[email protected]");background-position:-529px -314px;position:relative;top:2px;margin-right:2px}.main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-action[_ngcontent-%COMP%]   .post-article[_ngcontent-%COMP%]   .article-icon[_ngcontent-%COMP%]{display:inline-block;width:12px;height:12px;background-image:url("./media/[email protected]");background-position:-530px -349px;position:relative;top:2px;margin-right:2px}.main-content-container[_ngcontent-%COMP%]   .help-guide[_ngcontent-%COMP%]{height:151px;margin-bottom:10px;background-image:linear-gradient(180deg,#ffe3cc,#ffd0ac);border-radius:4px;padding:26px 10px 10px;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.main-content-container[_ngcontent-%COMP%]   .help-guide[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{border-radius:4px;background-color:var(--dweb-bg-panel);height:100%;display:flex;align-items:center}.main-content-container[_ngcontent-%COMP%]   .help-guide[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:306px;font-size:18px;color:var(--dweb-warning);line-height:28px}.main-content-container[_ngcontent-%COMP%]   .help-guide[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .pin-icon[_ngcontent-%COMP%]{width:22px;height:34px;background-image:url("./media/[email protected]");background-position:-978px -71px;margin:0 14px;position:relative;bottom:56px}.main-content-container[_ngcontent-%COMP%]   .help-guide[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .middle[_ngcontent-%COMP%]{margin:0 auto;display:flex;align-items:center}.main-content-container[_ngcontent-%COMP%]   .help-guide[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .girl-icon[_ngcontent-%COMP%]{width:152px;height:115px;background-image:url("./media/[email protected]");background-position:-809px -36px}.main-content-container[_ngcontent-%COMP%]   .experience-expire[_ngcontent-%COMP%]{font-size:18px;color:var(--dweb-text-strong);background:var(--dweb-bg-panel);border-radius:4px;height:436px;margin-bottom:10px;display:flex;flex-direction:column;align-items:center}.main-content-container[_ngcontent-%COMP%]   .experience-expire[_ngcontent-%COMP%]   .experience-expire-icon[_ngcontent-%COMP%]{margin-top:61.5px;width:112px;height:76px;background-image:url("./media/[email protected]");background-position:-671.3px -58px}.main-content-container[_ngcontent-%COMP%]   .experience-expire[_ngcontent-%COMP%]   .block-icon[_ngcontent-%COMP%]{margin-top:80px;width:112px;height:62px;background-image:url("./media/[email protected]");background-position:-341px -65px}.main-content-container[_ngcontent-%COMP%]   .experience-expire[_ngcontent-%COMP%]   .locked-icon[_ngcontent-%COMP%]{margin-top:100px;width:112px;height:68px;background-image:url("./media/[email protected]");background-position:-508px -60px}.main-content-container[_ngcontent-%COMP%]   .experience-expire[_ngcontent-%COMP%]   .experience-expire-desc[_ngcontent-%COMP%]{margin-top:20.7px;font-size:18px;color:var(--dweb-text-primary, #2F3034)}.main-content-container[_ngcontent-%COMP%]   .experience-expire[_ngcontent-%COMP%]   .experience-expire-code[_ngcontent-%COMP%]{margin-top:30px;width:100px;height:100px;background:var(--dweb-brand)}.main-content-container[_ngcontent-%COMP%]   .experience-expire[_ngcontent-%COMP%]   .experience-expire-hint[_ngcontent-%COMP%]{margin:20px 0 0;font-size:14px;color:var(--dweb-text-muted, #8B8E9D);font-style:normal}.main-content-container[_ngcontent-%COMP%]   .experience-expire[_ngcontent-%COMP%]   .experience-expire-link[_ngcontent-%COMP%]{cursor:pointer;margin-top:5px;font-size:14px;color:var(--dweb-brand);text-decoration:underline}.main-content-container[_ngcontent-%COMP%]   .experience-expire[_ngcontent-%COMP%]   .experience-expire-doc[_ngcontent-%COMP%]{cursor:pointer;margin-top:48px;font-size:14px;color:var(--dweb-info);text-decoration:underline}.main-content-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]{height:600px;background:var(--dweb-bg-panel);display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--dweb-text-placeholder);border-bottom-right-radius:4px;border-bottom-left-radius:4px}.main-content-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:87px;height:71px;background-image:url("./media/[email protected]");background-position:-87px -929px;margin-bottom:15px}.main-content-container[_ngcontent-%COMP%]   .to-checkins[_ngcontent-%COMP%]{height:600px;background:var(--dweb-bg-panel);overflow-y:auto;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.main-content-container[_ngcontent-%COMP%]   .to-checkins[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:first-child{font-size:18px;color:var(--dweb-text-primary, #2F3034)}.main-content-container[_ngcontent-%COMP%]   .to-checkins[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100px;height:100px;margin:30px 0 20px}.main-content-container[_ngcontent-%COMP%]   .to-checkins[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:last-child{font-size:14px;color:var(--dweb-brand, #16B998)}
146.retry-bar[_ngcontent-%COMP%]{cursor:pointer;padding:20px 0;text-align:center;font-size:14px;color:var(--dweb-text-faint, #C5C6CB)}.no-more[_ngcontent-%COMP%]{padding:20px 0;text-align:center;font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}.bulletin-text[_ngcontent-%COMP%]{text-align:justify;line-height:24px;font-size:16px;color:var(--dweb-text-secondary)}.bulletin-text[_ngcontent-%COMP%]:first-child{margin-bottom:14px}.new-question-tip[_ngcontent-%COMP%]{z-index:1;position:absolute;padding:6px 12px;border-radius:4px;background:#ffc07be6;box-shadow:0 8px 16px #17325e33;font-family:PingFangSC-Regular;font-size:12px;color:#fff;letter-spacing:0;text-align:justify}.new-question-tip[_ngcontent-%COMP%]:before{content:"";position:absolute;display:block;width:0;height:0;border:6px solid rgba(255,192,123,.9);border-left:6px solid transparent;border-top:6px solid transparent;border-bottom-right-radius:1px;transform:rotate(-135deg);top:-6px;left:36px}.not-allow-renew-notice[_ngcontent-%COMP%]{padding:16px 20px;background:var(--dweb-bg-hover);font-family:PingFangSC-Regular;font-size:14px;color:var(--dweb-text-muted);letter-spacing:0;text-align:justify}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.main-content-container[_ngcontent-%COMP%]   .experience-expire[_ngcontent-%COMP%]   .experience-expire-icon[_ngcontent-%COMP%], .main-content-container[_ngcontent-%COMP%]   .experience-expire[_ngcontent-%COMP%]   .block-icon[_ngcontent-%COMP%], .main-content-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .post-container[_ngcontent-%COMP%]   .emoji[_ngcontent-%COMP%], .post-container[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%], .post-container[_ngcontent-%COMP%]   .pic[_ngcontent-%COMP%], .post-container[_ngcontent-%COMP%]   .video[_ngcontent-%COMP%], .post-container[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%], .post-container[_ngcontent-%COMP%]   .tag[_ngcontent-%COMP%], .post-container[_ngcontent-%COMP%]   .scheduled[_ngcontent-%COMP%], .post-container[_ngcontent-%COMP%]   .article-icon[_ngcontent-%COMP%], .post-container[_ngcontent-%COMP%]   .task-icon[_ngcontent-%COMP%], .help-guide[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}html[data-theme=dark][_nghost-%COMP%]   .main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]{background:var(--dweb-bg-panel-2);box-shadow:-5px 6px 16px 0 var(--dweb-shadow)}html[data-theme=dark][_nghost-%COMP%]   .main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]:after, html[data-theme=dark]   [_nghost-%COMP%]   .main-content-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-topic-btn[_ngcontent-%COMP%]   .explain[_ngcontent-%COMP%]:after{border-top-color:var(--dweb-bg-panel-2);border-left-color:var(--dweb-bg-panel-2)}']});let o=n;return o;})();var zm=o=>({isGray:o});function Xk(o,n){o&1&&(M(0,"div",8),s(1,"div",3),g(2,"\u661F\u7403\u9996\u9875"),c());}function Jk(o,n){if(o&1&&(s(0,"div",3),g(1),c()),o&2){let i=d();l(),A(i.inGroupName);}}function Yk(o,n){if(o&1&&(s(0,"div",7),g(1),c()),o&2){let i=d();l(),A(i.subtitle);}}var Gm=(()=>{let n=class n{constructor(e,t){this.activatedRoute=e,this.router=t,this.subtitle="",this.inGroupName="",this.group=JSON.parse(localStorage.getItem("searchCurrentGroup")),this.prevPage=this.group?`/group/${this.group.group_id}`:"/group/init",this.navEnd=t.events.pipe(ut(r=>r instanceof wi));}ngOnInit(){this.handleSubtitle(),this.activatedRoute.queryParams.subscribe(e=>{this.inGroupName=e.groupId?this.group.name:"";}),this.navEnd.subscribe(()=>{this.activatedRoute.firstChild.data.subscribe(e=>{this.subtitle=e.subtitle;});});}handleSubtitle(){let e=location.pathname;e.endsWith("/allfiles")&&!e.endsWith("/search/allfiles")?this.subtitle="\u5168\u90E8\u6587\u4EF6":e.endsWith("/alltopics")&&!e.endsWith("/search/alltopics")?this.subtitle="\u5168\u90E8\u4E3B\u9898":e.endsWith("/allgroups")&&!e.endsWith("/search/allgroups")?this.subtitle="\u5168\u90E8\u661F\u7403":e.endsWith("/allusers")&&!e.endsWith("/search/allusers")&&(this.subtitle="\u5168\u90E8\u7528\u6237");}goBack(){if(this.subtitle){let e=this.router.url,t=this.subtitle==="\u5168\u90E8\u6587\u4EF6"?"/allfiles":this.subtitle==="\u5168\u90E8\u4E3B\u9898"?"/alltopics":this.subtitle==="\u5168\u90E8\u7528\u6237"?"/allusers":"/allgroups";e=e.slice(0,e.lastIndexOf(t)),this.router.navigate([decodeURIComponent(e)],this.inGroupName?{queryParams:{groupId:this.group.group_id}}:{});}}};n.ɵfac=function(t){return new(t||n)(O(ke),O(ue));},n.ɵcmp=F({type:n,selectors:[["app-search"]],standalone:!1,decls:11,vars:10,consts:[[1,"search-result-container","topic-flow-container"],[1,"left"],[1,"index","item",3,"routerLink"],[1,"text"],[1,"result","item"],[1,"search-icon",3,"click","ngClass"],[1,"text",3,"click","ngClass"],[1,"subtitle"],[1,"home-icon"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1)(2,"a",2),h(3,Xk,3,0),h(4,Jk,2,1,"div",3),c(),s(5,"div",4)(6,"div",5),f("click",function(){return r.goBack();}),c(),s(7,"div",6),f("click",function(){return r.goBack();}),g(8," \u641C\u7D22\u7ED3\u679C "),c()(),h(9,Yk,2,1,"div",7),c(),M(10,"router-outlet"),c()),t&2&&(l(2),C("routerLink",r.prevPage),l(),_(r.inGroupName?-1:3),l(),_(r.inGroupName?4:-1),l(2),C("ngClass",R(6,zm,r.subtitle)),l(),C("ngClass",R(8,zm,r.subtitle)),l(2),_(r.subtitle?9:-1));},dependencies:[K,yi,lt],styles:['.search-result-container[_ngcontent-%COMP%]{width:1906px;padding-top:50px;padding-bottom:10px;margin:0 auto}.search-result-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{position:fixed;box-sizing:border-box;width:310px;padding-top:24px;padding-right:60px;font-family:PingFangSC-Medium;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.search-result-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;font-size:16px;height:22px;line-height:22px}.search-result-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]{text-align:right;margin-bottom:24px}.search-result-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]   .home-icon[_ngcontent-%COMP%]{position:relative;
146left:160px;top:2px;height:16px;width:16px;background-image:url("./media/[email protected]");background-position:-103px -571px}.search-result-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{flex:1;color:var(--dweb-text-faint, #C5C6CB)}.search-result-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .result[_ngcontent-%COMP%]{text-align:right}.search-result-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .result[_ngcontent-%COMP%]   .search-icon[_ngcontent-%COMP%]{position:relative;left:160px;top:3px;cursor:pointer;height:16px;width:16px;background-image:url("./media/[email protected]");background-position:-144px -610px}.search-result-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .result[_ngcontent-%COMP%]   .search-icon.isGray[_ngcontent-%COMP%]{background-position:-144px -573px}.search-result-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .result[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{flex:1;cursor:pointer;color:var(--dweb-brand, #16B998)}.search-result-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .result[_ngcontent-%COMP%]   .text.isGray[_ngcontent-%COMP%]{color:var(--dweb-text-faint, #C5C6CB)}.search-result-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{font-size:15px;color:var(--dweb-brand, #16B998);text-align:right;margin-top:24px}@media screen and (max-width:2000px){.search-result-container[_ngcontent-%COMP%]{width:1526px}}@media screen and (max-width:1550px){.search-result-container[_ngcontent-%COMP%]{width:1326px}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.search-result-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]   .home-icon[_ngcontent-%COMP%], .search-result-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .result[_ngcontent-%COMP%]   .search-icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var Kk=["*"],Zk=(o,n)=>({url:o,type:n}),eS=(o,n)=>n.group_id;function tS(o,n){o&1&&(s(0,"span",3),g(1,"(\u901A\u8FC7\u8BD5\u8FD0\u8425\u9636\u6BB5\u4E14\u5F00\u542F\u4E86\u5141\u8BB8\u641C\u7D22\u7684\u661F\u7403\uFF0C\u624D\u53EF\u4EE5\u88AB\u641C\u7D22\u5230)"),c());}function nS(o,n){if(o&1){let i=y();s(0,"div",7),f("click",function(){b(i);let t=d();return P(t.goToMoreGroups());}),s(1,"span",8),g(2,"\u70ED\u95E8\u661F\u7403\u6392\u884C"),c(),M(3,"div",9),c();}}function iS(o,n){if(o&1){let i=y();s(0,"div",10),f("click",function(){let t=b(i).$implicit,r=d();return P(r.goToGroup(t));}),s(1,"div",11),M(2,"img",12),c(),s(3,"div",13),M(4,"div",14),s(5,"div",15),g(6," \u661F\u4E3B\uFF1A"),M(7,"span",16),c()()();}if(o&2){let i=n.$implicit,e=d();l(2),C("transform-image-src",qe(6,Zk,i.background_url,i.type))("resize-group-bg-image",i),l(2),C("parseHtml",i.name)("highlight",e.highlightText),l(3),C("parseHtml",i.owner.name)("highlight",e.highlightText);}}var Es=(()=>{let n=class n{get highlightText(){return window.location.pathname.includes("/search/")&&(this.title==="\u76F8\u5173\u661F\u7403"?this.searchService.groupHighlightWords:this.searchService.joinedGroupHighlightWords);}constructor(e,t,r,a){this.router=e,this.searchBurriedPointsService=t,this.searchService=r,this.activatedRoute=a;}ngOnInit(){}goToGroup(e){this.searchBurriedPointsService.sendClickSearchResultBurriedPoints(this.activatedRoute,{datas:this.groups,currentData:e,type:et.group,isJoin:this.title!=="\u76F8\u5173\u661F\u7403"}),this.router.navigate(["group",e.group_id]);}goToMoreGroups(){ne("rankings/hot");}};n.ɵfac=function(t){return new(t||n)(O(ue),O(Yt),O(Rt),O(ke));},n.ɵcmp=F({type:n,selectors:[["app-joined-group"]],inputs:{groups:"groups",title:"title"},standalone:!1,ngContentSelectors:Kk,decls:10,vars:3,consts:[[1,"joined-group-container"],[1,"title-container"],[1,"title"],[1,"tips"],["title","\u70ED\u95E8\u661F\u7403\u6392\u884C",1,"more-link"],[1,"group-container"],[1,"group-item"],["title","\u70ED\u95E8\u661F\u7403\u6392\u884C",1,"more-link",3,"click"],[1,"text"],[1,"icon"],[1,"group-item",3,"click"],[1,"group-avatar"],[3,"transform-image-src","resize-group-bg-image"],[1,"content"],[1,"group-name",3,"parseHtml","highlight"],[1,"owner"],["parseType","allMatch",3,"parseHtml","highlight"]],template:function(t,r){t&1&&(Zt(),s(0,"div",0)(1,"div",1)(2,"div",2),g(3),h(4,tS,2,0,"span",3),c(),h(5,nS,4,0,"div",4),c(),s(6,"div",5),B(7,iS,8,9,"div",6,eS),Nt(9),c()()),t&2&&(l(3),V(" ",r.title),l(
146),_(r.title==="\u76F8\u5173\u661F\u7403"?4:-1),l(),_(r.title==="\u76F8\u5173\u661F\u7403"?5:-1),l(2),N(r.groups));},dependencies:[Wt,ze,Wp],styles:['.joined-group-container[_ngcontent-%COMP%]{margin-top:10px;background:var(--dweb-bg-panel, #FFFFFF);border-radius:4px}.joined-group-container[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;height:40px;padding:0 20px;border-bottom:1px solid rgba(0,0,0,.05)}.joined-group-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{line-height:40px;font-weight:500;font-size:12px;color:var(--dweb-text-secondary)}.joined-group-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .tips[_ngcontent-%COMP%]{font-weight:400;font-size:12px;color:var(--dweb-text-muted);margin-left:8px}.joined-group-container[_ngcontent-%COMP%]   .more-link[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer}.joined-group-container[_ngcontent-%COMP%]   .more-link[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:12px;color:var(--dweb-info);margin-right:4px}.joined-group-container[_ngcontent-%COMP%]   .more-link[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-297px -197px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.joined-group-container[_ngcontent-%COMP%]   .more-link[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}.joined-group-container[_ngcontent-%COMP%]   .group-container[_ngcontent-%COMP%]{padding:12px 0}.joined-group-container[_ngcontent-%COMP%]   .group-container[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 20px;cursor:pointer}.joined-group-container[_ngcontent-%COMP%]   .group-container[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-avatar[_ngcontent-%COMP%]{width:36px;height:36px;background:var(--dweb-bg-canvas, #F0F3F8);border-radius:4px;overflow:hidden}.joined-group-container[_ngcontent-%COMP%]   .group-container[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.joined-group-container[_ngcontent-%COMP%]   .group-container[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{margin-left:10px}.joined-group-container[_ngcontent-%COMP%]   .group-container[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .group-name[_ngcontent-%COMP%]{color:var(--dweb-text-primary)}.joined-group-container[_ngcontent-%COMP%]   .group-container[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .owner[_ngcontent-%COMP%]{font-size:12px;color:var(--dweb-text-muted, #8B8E9D)}.joined-group-container[_ngcontent-%COMP%]   .group-container[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]     em{color:var(--dweb-brand, #16B998);font-style:normal}.joined-group-container[_ngcontent-%COMP%]   .group-container[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]:hover{background:var(--dweb-bg-hover, #FAFBFC)}']});let o=n;return o;})();var $m=(()=>{let n=class n{constructor(e,t){this.http=e,this.mainService=t,this._fileGroup$=new U(),this.fileGroup$=this._fileGroup$.asObservable();}getFileGroup(e){this.http.get(j.getGroup(e)).subscribe(t=>{t.succeeded?(this.mainService.setupUserRole(t.resp_data.group),this._fileGroup$.next(t.resp_data.group)):this.http.handleExceptionCode(t,"\u83B7\u53D6\u661F\u7403\u4FE1\u606F\u5931\u8D25");});}};n.ɵfac=function(t){return new(t||n)(re(W),re(oe));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var Ds=(()=>{let n=class n{constructor(e){this.http=e,this._files$=new U(),this.files$=this._files$.asObservable(),this.endTime="",this.sortIndex="",this.sortType="",this.isFetch=!1;}getAllFiles(e,t,r,a="by_download_count",p=20){this.isFetch=!0,this.http.get(j.getFiles(e,p,t,r,a)).subscribe(m=>{var v;if(m.succeeded){let x=m.resp_data.files;x&&x.length>0&&(this.endTime=mt(x[x.length-1].file.create_time),this.sortIndex=(v=m.resp_data)==null?void 0:v.index),this._files$.next(m.resp_data.files);}else this.http.handleExceptionCode(m,"\u83B7\u53D6\u5168\u90E8\u6587\u4EF6\u5931\u8D25");});}};n.ɵfac=function(t){return new(t||n)(re(W));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var rS=[[["","titleContent",""]],"*"],aS=["[titleContent]","*"],Um=(o,n)=>n.file.file_id;function sS(o,n){if(o&1&&(s(0,"div",2),g(1),c()),o&2){let i=d();l(),A(i.title);}}function cS(o,n){if(o&1){let i=y();s(0,"div",6),f("click",function(){b(i);let t=d();return P(t.countSort());}),s(1,"span"),g(2),c(),M(3,"i"),c();}if(o&2){let i=d();l(2),A(i.sortTip);}}function lS(o,n){if(o&1&&(s(0,"span",14),g(1),c()),o&2){let i=d().$implicit;l(),A(i.group.name);}}function pS(o,n){o&1&&M(0,"span",15);}function dS(o,n){if(o&1){let i=y();s(0,"div",8),f("click",function(){let t=b(i).$implicit,r=d(2);return P(r.showPreview(t));}),s(1,"div",9),M(2,"div",10),$(3,"transformFileType"),s(4,"div",11),M(5,"div",12),s(6,"div",13),h(7,lS,2,1,"span",14),h(8,pS,1,0,"span",15),s(9,"span",16),g(10),$(11,"transformFullTime"),c()()()(),s(12,"div",16),g(13),$(14,"transformFullTime"),c()();}if(o&2){let i=n.$implicit,e=d(2);l(2),C("ngClass",Pe(3,7,i.file,"file")),l(3),C("parseHtml",i.file.name)("highlight",e.highlightText),l(2),_(e.type==="user"?7:-1),l(),_(e.type==="user"?8:-1),l(2),A(e.sortType==="counts"?Z(11,10,i.file.create_time):"\u4E0B\u8F7D\u6B21\u6570\uFF1A"+i.file.download_count),l(3),V(" ",e.sortType==="counts"?"\u4E0B\u8F7D\u6B21\u6570\uFF1A"+i.file.download_count:Z(14,12,i.file.create_time)," ");}}function gS(o,n){if(o&1&&B(0,dS,15,14,"div",7,Um),o&2){let i=d();N(i.files);}}function uS(o,n){if(o&1&&(s(0,"span",14),g(1),c()),o&2){let i=d().$implicit;l(),A(i.group.name);}}function mS(o,n){o&1&&M(0,"span",15);}function hS(o,n){if(o&1){let i=y();s(0,"div",18),f("click",function(){let t=b(i).$implicit,r=d(2);return P(r.showPreview(t));}),M(1,"div",10),$(2,"transformFileType"),s(3,"div",19),M(4,"div",12),s(5,"div",13),h(6,uS,2,1,"span",14),h(7,mS,1,0,"span",15),s(8,"span",20),g(9),$(10,"transformFullTime"),c()()()();}if(o&2){let i=n.$implicit,e=d(2);l(),C("ngClass",Pe(2,6,i.file,"file")),l(3),C("parseHtml",i.file.name)("highlight",e.highlightText),l(2),_(e.type==="user"?6:-1),l(),_(e.type==="user"?7:-1),l(2),A(Z(10,9,i.file.create_time));}}function _S(o,n){if(o&1&&B(0,hS,11,11,"div",17,Um),o&2){let i=d();N(i.files);}}function fS(o,n){if(o&1){let i=y();
146s(0,"app-file-preview",21),f("close-preview",function(t){b(i);let r=d();return P(r.watchClose(t));}),c();}if(o&2){let i=d();C("file",i.fileInfo)("group",i.groupInfo)("topic",i.topic);}}var Xo=(()=>{let n=class n{get highlightText(){return window.location.pathname.includes("/search/")&&this.searchService.fileHighlightWords;}get sortTip(){return this.sortType=this.allTopicFilesService.sortType?this.allTopicFilesService.sortType:this.sortType,this.sortType==="counts"?"\u6309\u4E0B\u8F7D\u6B21\u6570\u6392\u5E8F":"\u6309\u4E0A\u4F20\u65F6\u95F4\u6392\u5E8F";}get isFilesPage(){return window.location.pathname.includes("/files");}constructor(e,t,r,a,p){this.joinedGroupFileService=e,this.activatedRoute=t,this.searchService=r,this.allTopicFilesService=a,this.searchBurriedPointsService=p,this.handleFileSort=new H(),this.previewVisible=!1,this.sortType="counts";}ngOnInit(){this.joinedGroupFileService.fileGroup$.subscribe(e=>{this.groupInfo=e,this.previewVisible=!0;});}showPreview(e){this.searchBurriedPointsService.sendClickSearchResultBurriedPoints(this.activatedRoute,{datas:this.files,currentData:e,type:et.file,sort:this.sort});let t;e.group?t=e.group.group_id:e.topic&&(t=e.topic.group.group_id),this.fileInfo=e.file,this.joinedGroupFileService.getFileGroup(t),this.topic=e.topic?e.topic:{topic_id:e.topic_id};}countSort(){this.sortType=this.sortType==="counts"?"uploadTime":"counts",this.handleFileSort.emit(this.sortType);}watchClose(e){this.previewVisible=!1;}};n.ɵfac=function(t){return new(t||n)(O($m),O(ke),O(Rt),O(Ds),O(Yt));},n.ɵcmp=F({type:n,selectors:[["app-joined-group-file"]],inputs:{files:"files",title:"title",type:"type",sort:"sort"},outputs:{handleFileSort:"handle-file-sort"},standalone:!1,ngContentSelectors:aS,decls:10,vars:4,consts:[[1,"joined-group-file-container"],[1,"title-box"],[1,"title"],[1,"count-sort"],[1,"file-container"],[3,"file","group","topic"],[1,"count-sort",3,"click"],[1,"file-item"],[1,"file-item",3,"click"],[1,"left"],[1,"file-icon",3,"ngClass"],[1,"tips"],[1,"name",3,"parseHtml","highlight"],[1,"time-box"],[1,"group-name"],[1,"line"],[1,"time-or-count"],[1,"item"],[1,"item",3,"click"],[1,"right"],[1,"time"],[3,"close-preview","file","group","topic"]],template:function(t,r){t&1&&(Zt(rS),s(0,"div",0)(1,"div",1),h(2,sS,2,1,"div",2),h(3,cS,4,1,"div",3),c(),Nt(4),s(5,"div",4),h(6,gS,2,0)(7,_S,2,0),Nt(8,1),c(),h(9,fS,1,3,"app-file-preview",5),c()),t&2&&(l(2),_(r.title?2:-1),l(),_(r.isFilesPage?3:-1),l(3),_(r.isFilesPage?6:7),l(3),_(r.previewVisible?9:-1));},dependencies:[K,ze,Lo,Xt,Mo],styles:['.joined-group-file-container[_ngcontent-%COMP%]{background:var(--dweb-bg-panel, #FFFFFF);border-radius:4px;margin-top:10px}.joined-group-file-container[_ngcontent-%COMP%]   .title-box[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(0,0,0,.05)}.joined-group-file-container[_ngcontent-%COMP%]   .title-box[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{height:40px;line-height:40px;padding-left:20px;font-family:PingFangSC-Medium;font-size:12px;color:var(--dweb-text-secondary)}.joined-group-file-container[_ngcontent-%COMP%]   .title-box[_ngcontent-%COMP%]   .count-sort[_ngcontent-%COMP%]{display:flex;align-items:center;padding-right:20px;cursor:pointer}.joined-group-file-container[_ngcontent-%COMP%]   .title-box[_ngcontent-%COMP%]   .count-sort[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:12px;color:var(--dweb-info);margin-right:4px}.joined-group-file-container[_ngcontent-%COMP%]   .title-box[_ngcontent-%COMP%]   .count-sort[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{width:12px;height:12px;background-image:url("./media/file_download_count-FARQIMKY.png");background-size:100%}.joined-group-file-container[_ngcontent-%COMP%]   .file-container[_ngcontent-%COMP%]{padding:12px 0}.joined-group-file-container[_ngcontent-%COMP%]   .file-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%], .joined-group-file-container[_ngcontent-%COMP%]   .file-container[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 20px;cursor:pointer}.joined-group-file-container[_ngcontent-%COMP%]   .file-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .file-icon[_ngcontent-%COMP%], .joined-group-file-container[_ngcontent-%COMP%]   .file-container[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .file-icon[_ngcontent-%COMP%]{width:26px;height:27px;background-image:url("./media/[email protected]");background-position:-101px -677px;margin-right:10px}.joined-group-file-container[_ngcontent-%COMP%]   .file-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%], .joined-group-file-container[_ngcontent-%COMP%]   .file-container[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{width:425px;color:var(--dweb-text-secondary, #5A5C66);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.joined-group-file-container[_ngcontent-%COMP%]   .file-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .time-box[_ngcontent-%COMP%], .joined-group-file-container[_ngcontent-%COMP%]   .file-container[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .time-box[_ngcontent-%COMP%]{font-size:12px;color:var(--dweb-text-muted);display:flex;align-items:center}.joined-group-file-container[_ngcontent-%COMP%]   .file-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .time-box[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%], .joined-group-file-container[_ngcontent-%COMP%]   .file-container[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .time-box[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{width:1px;height:10px;background:var(--dweb-border);margin:0 6px}.joined-group-file-container[_ngcontent-%COMP%]   .file-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]     em, .joined-group-file-container[_ngcontent-%COMP%]   .file-container[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]     em{color:var(--dweb-brand, #16B998);font-style:normal}.joined-group-file-container[_ngcontent-%COMP%]   .file-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:hover, .joined-group-file-container[_ngcontent-%COMP%]   .file-container[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]:hover{background:var(--dweb-bg-hover, #FAFBFC)}.joined-group-file-container[_ngcontent-%COMP%]   .file-container[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]{justify-content:space-between}.joined-group-file-container[_ngcontent-%COMP%]   .file-container[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{display:flex;align-items:center}.joined-group-file-container[_ngcontent-%COMP%]   .file-container[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]   .time-or-count[_ngcontent-%COMP%]{font-weight:400;font-size:12px;color:var(--dweb-text-muted);margin-right:16px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.joined-group-file-container[_ngcontent-%COMP%]   .file-icon[_ngcontent-%COMP%]:not(.file-html):not(.file-other){background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.title-box[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important}}']});let o=n;return o;})();function CS(o,n){if(o&1&&(s(0,"div",5),M(1,"span",17),c()),o&2){let i=d();l(),C("parseHtml",i.topicItem.article?i.topicItem.article.title:i.topicItem.topic_title)("highlight",i.highlightText);}}function xS(o,n){if(o&1&&(s(0,"span"),g(1),c()),o&2){let i=d();l(),A(i.topicItem.owner.name+"\xA0\u63D0\u95EE\uFF1A");}}function vS(o,n){o&1&&(s(0,"span"),g(1,"\u533F\u540D\u7528\u6237 \u63D0\u95EE\uFF1A"),c());}function bS(o,n){if(o&1&&M(0,"app-file-gallery",9),o&2){let i=d();C("files",i.topicItem.files)("topic",i.topic)("group",i.topic.group);}}function PS(o,n){if(o&1&&M(0,"app-image-gallery",10),o&2){let i=d();C("images",i.topicItem.images);}}function MS(o,n){if(o&1&&M(0,"app-video-gallery",11),o&2){let i=d();C("video",i.topic.talk.video)("topic",i.topic)("isPreview",!0);}}function OS(o,n){if(o&1){let i=y();s(0,"div",16)(1,"i",18),f("click",function(t){b(i);let r=d();return P(r.cancelFavorites(r.topic.topic_id,t));}),c()();}}var qm=(()=>{let n=class n{get highlightText(){return window.location.pathname.includes("/search/")&&this.searchService.topicHighlightWords;}constructor(e,t,r,a){this.indexService=e,this.topicService=t,this.searchService=r,this.topicPreviewOwnService=a,this.viewTopicDetail=new H(),this.handleFavorites=new H();}
146ngOnInit(){this.topicItem=Yn(this.topic,!0);}openDetail(e){e.stopPropagation(),e.target.tagName!=="A"&&(this.topicService.tags=this.topicPreviewOwnService.tagsArray,this.viewTopicDetail.emit(this.topic));}cancelFavorites(e,t){t.stopPropagation(),this.handleFavorites.emit(e);}};n.ɵfac=function(t){return new(t||n)(O(q),O(Oe),O(Rt),O(ga));},n.ɵcmp=F({type:n,selectors:[["app-topic-preview"]],inputs:{topic:"topic",hideGroupName:"hideGroupName"},outputs:{viewTopicDetail:"view-topic-detail",handleFavorites:"handle-favorites"},standalone:!1,features:[ot([ga])],decls:26,vars:23,consts:[[1,"topic-preview",3,"click"],[1,"avatar"],[3,"src"],[1,"main-content"],[1,"content"],[1,"text-title"],["add-ellipsis","",1,"topic-text"],["parseType","preview",3,"parseHtml","annotations","linkArticle","highlight","isSearchTopic"],[1,"ellipsis"],[3,"files","topic","group"],[3,"images"],[3,"video","topic","isPreview"],[1,"author-info"],[1,"time"],[1,"group-name",3,"hidden"],[1,"name",3,"parseName"],[1,"cancel-favorites"],[3,"parseHtml","highlight"],[1,"icon",3,"click"]],template:function(t,r){t&1&&(s(0,"div",0),f("click",function(p){return r.openDetail(p);}),s(1,"div",1),M(2,"img",2),$(3,"transformTopicAvatar"),c(),s(4,"div",3)(5,"div",4),h(6,CS,2,2,"div",5),s(7,"div",6)(8,"span"),h(9,xS,2,1,"span"),h(10,vS,2,0,"span"),M(11,"p",7),c(),s(12,"span",8),g(13,"..."),c()(),h(14,bS,1,3,"app-file-gallery",9),h(15,PS,1,1,"app-image-gallery",10),h(16,MS,1,3,"app-video-gallery",11),c(),s(17,"div",12)(18,"div",13),g(19),$(20,"transformFullTime"),c(),s(21,"div",14),g(22),c(),M(23,"div",15),$(24,"transformOwner"),c()(),h(25,OS,2,0,"div",16),c()),t&2&&(l(2),C("src",Z(3,17,r.topic),se),l(4),_(r.highlightText&&(r.topicItem.article||r.topicItem.topic_title)?6:-1),l(3),_(!r.topicItem.anonymous&&r.topicItem.questionee?9:-1),l(),_(r.topicItem.anonymous&&r.topicItem.questionee?10:-1),l(),C("parseHtml",r.topicItem.text)("annotations",r.topic.annotation)("linkArticle",r.topicItem.article)("highlight",r.highlightText)("isSearchTopic",!0),l(3),_(r.topicItem.files&&r.topicItem.files.length>0?14:-1),l(),_(r.topicItem.images&&r.topicItem.images.length>0?15:-1),l(),_(r.topic.talk&&r.topic.talk.video?16:-1),l(3),A(Z(20,19,r.topic.create_time)),l(2),C("hidden",r.hideGroupName),l(),V(" \u6765\u81EA\uFF1A",r.topic.group.name," "),l(),C("parseName",Z(24,21,r.topic)),l(2),_(r.indexService.currentList==="myFavorites"?25:-1));},dependencies:[kt,xt,ze,Zn,Xp,ei,Xt,Si,St],styles:['@charset "UTF-8";.topic-preview[_ngcontent-%COMP%]{display:flex;padding:15px 50px 0 20px;cursor:pointer;position:relative}.topic-preview[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{-webkit-flex:0 0 36px;flex:0 0 36px;width:36px;height:36px;border-radius:50%;overflow:hidden;background:var(--dweb-bg-subtle, #F5F6F7);margin-right:14px}.topic-preview[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%}.topic-preview[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]{-webkit-flex:1;flex:1;padding-bottom:12px;border-bottom:1px solid var(--dweb-border-faint)}.topic-preview[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .text-title[_ngcontent-%COMP%]{font-weight:500;font-size:15px;color:var(--dweb-text-primary);margin-bottom:9px}.topic-preview[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .text-title[_ngcontent-%COMP%]     em{color:var(--dweb-brand, #16B998);font-style:normal}.topic-preview[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-text[_ngcontent-%COMP%]{position:relative;max-height:63px;overflow:hidden;line-height:21px;color:var(--dweb-text-primary, #2F3034)}.topic-preview[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{display:inline;white-space:pre-wrap;word-break:break-word}.topic-preview[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topic-text[_ngcontent-%COMP%]     em{color:var(--dweb-brand, #16B998);font-style:normal}.topic-preview[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .ellipsis[_ngcontent-%COMP%]{display:none;position:absolute;right:0;bottom:0;padding:0 4px;background:var(--dweb-bg-panel)}.topic-preview[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]   .author-info[_ngcontent-%COMP%]{margin-top:6px;display:flex;font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}.topic-preview[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]   .author-info[_ngcontent-%COMP%]   .time[_ngcontent-%COMP%], .topic-preview[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]   .author-info[_ngcontent-%COMP%]   .group-name[_ng
146content-%COMP%]{margin-right:8px}.topic-preview[_ngcontent-%COMP%]:hover, .topic-preview[_ngcontent-%COMP%]:hover   .main-content[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .ellipsis[_ngcontent-%COMP%]{background:var(--dweb-bg-hover, #FAFBFC)}.topic-preview[_ngcontent-%COMP%]:hover   .cancel-favorites[_ngcontent-%COMP%]{position:absolute;top:0;right:10px;width:31px;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.topic-preview[_ngcontent-%COMP%]:hover   .cancel-favorites[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:31px;height:32px;background-image:url("./media/[email protected]");background-position:-558px -304px;cursor:pointer}.topic-preview[_ngcontent-%COMP%]     a:not(.hashtag):before{background-image:url("./media/[email protected]");background-position:-387px -575px;height:14px;width:14px;content:" ";display:inline-block;padding-right:5px;line-height:14px}.topic-preview[_ngcontent-%COMP%]     a{word-break:break-all}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.topic-preview[_ngcontent-%COMP%]   .cancel-favorites[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var yS=[[["","titleContent",""]],"*"],kS=["[titleContent]","*"],SS=(o,n)=>n.topic_id;function TS(o,n){if(o&1&&(s(0,"div",1),g(1),c()),o&2){let i=d();l(),A(i.aTitle);}}function ES(o,n){if(o&1){let i=y();s(0,"app-topic-preview",5),f("view-topic-detail",function(t){let r=b(i).$index,a=d();return P(a.receiveTopic(t,r));})("handle-favorites",function(t){let r=b(i).$index,a=d();return P(a.cancelFavorites(t,r));}),c();}if(o&2){let i=n.$implicit,e=d();C("topic",e.handleTopic(i))("hideGroupName",e.hideGroupName);}}function DS(o,n){if(o&1){let i=y();s(0,"app-topic-detail",6),f("handle-topic-detail",function(){b(i);let t=d();return P(t.closeTopicDetail());}),c();}if(o&2){let i=d();C("topicData",i.selectedTopic)("hasWaterMark",i.hasWaterMark);}}var Qi=(()=>{let n=class n{constructor(e,t,r,a,p,m,v){this.topicService=e,this.topicDetailService=t,this.mainContentService=r,this.indexService=a,this.http=p,this.activatedRoute=m,this.searchBurriedPointsService=v,this.handleFavorites=new H(),this.subscriptions=[];}ngOnInit(){let e=this.mainContentService.topicDetailVisible$.subscribe(a=>{a||this.closeTopicDetail();}),t=this.topicDetailService.hasWatermark$.subscribe(a=>{this.hasWaterMark=a,this.showTopicDetail=!0,this.topicDetailService.getComments(this.selectedTopic.topic_id,this.topicDetailService.commentBeginTime);}),r=this.topicService.topicOperation$.subscribe(({type:a})=>{a==="delete"&&this.closeTopicDetail();});this.subscriptions.push(e,t,r);}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}receiveTopic(e,t){this.searchBurriedPointsService.sendClickSearchResultBurriedPoints(this.activatedRoute,{datas:this.topics,currentData:e,type:et.topic,sort:this.sort}),this.getTopic(e.topic_id).then(r=>{r&&(this.indexService.spareScrollbarSpace(),r.comments=[],this.selectedTopic=Object.assign({},r),this.selectedTopic.openType="joinedGroup",this.selectedTopicIndex=t,this.topicDetailService.commentBeginTime="",this.topicDetailService.getGroupWaterMark(e.group.group_id));});}closeTopicDetail(){this.indexService.remainScrollbarStyle(),this.showTopicDetail=!1,this.selectedTopicIndex=-1;}cancelFavorites(e,t){this.handleFavorites.emit({topicId:e,index:t});}getTopic(e){return ye(this,null,function*(){let t=yield this.http.get(j.getTopic(e)).toPromise();return t.succeeded?t.resp_data.topic:(this.http.handleExceptionCode(t,"\u83B7\u53D6\u4E3B\u9898\u8BE6\u60C5\u5931\u8D25"),null);});}handleTopic(e){return e.topic?(e.group&&(e.topic.group=e.group),e.topic):e;}};n.ɵfac=function(t){return new(t||n)(O(Oe),O(Te),O(oe),O(q),O(W),O(ke),O(Yt));},n.ɵcmp=F({type:n,selectors:[["app-joined-group-topic"]],inputs:{topics:"topics",hideGroupName:"hideGroupName",aTitle:"aTitle",sort:"sort"},outputs:{handleFavorites:"handle-favorites"},standalone:!1,ngContentSelectors:kS,decls:8,vars:2,consts:[[1,"joined-group-topic-container"],[1,"title"],[1,"topic-container","disabled-copy"],[3,"topic","hideGroupName"],[3,"topicData","hasWaterMark"],[3,"view-topic-detail","handle-favorites","topic","hideGroupName"],[3,"handle-topic-detail","topicData","hasWaterMark"]],template:function(t,r){t&1&&(Zt(yS),s(0,"div",0),h(1,TS,2,1,"div",1),Nt(2),s(3,"div",2),B(4,ES,1,2,"app-topic-preview",3,SS),c(),Nt(6,1),h(7,DS,1,2,"app-topic-detail",4),c()),t&2&&(l(),_(r.aTitle?1:-1),l(3),N(r.topics),l(3),_(r.showTopicDetail?7:-1));},dependencies:[qm,ft],styles:[".joined-group-topic-container[_ngcontent-%COMP%]{margin-top:10px;background:var(--dweb-bg-panel, #FFFFFF);border-radius:4px}.joined-group-topic-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{height:40px;line-height:40px;padding-left:20px;font-family:PingFangSC-Medium;font-size:12px;color:var(--dweb-text-secondary);border-bottom:1px solid rgba(0,0,0,.05)}"]});let o=n;return o;})();var IS=o=>({sort_type:o});function FS(o,n){o&1&&M(0,"app-skeleton");}function AS(o,n){if(o&1&&(s(0,"div",1),B(1,FS,1,0,"app-skeleton",null,Y),c()),o&2){let i=d();l(),N(i.skeletonArray);}}function VS(o,n){o&1&&(s(0,"div",6),g(1,"\u6CA1\u6709\u66F4\u591A\u4E86"),c());}function RS(o,n){if(o&1){let i=y();s(0,"app-joined-group-file",2)(1,"app-search-sort",5),f("sortChange",function(t){b(i);let r=d();return P(r.sortChange(t));}),c(),h(2,VS,2,0,"div",6),c();}if(o&2){let i=d();C("type",i.groupId?"member":"user")("files",i.files)("sort",R(6,IS,i.order_by)),l(),C("showDigests",!1)("title",i.title),l(
146),_(i.noMoreFile?2:-1);}}function LS(o,n){if(o&1){let i=y();s(0,"app-lottie-loading",7),f("infinite",function(t){b(i);let r=d();return P(r.searchFiles(t));}),g(1," \u6587\u4EF6\u52A0\u8F7D\u4E2D... "),c();}}var kl=20,Fs=(()=>{let n=class n{constructor(e,t,r,a){this.activatedRoute=e,this.indexService=t,this.searchService=r,this.searchBurriedPointsService=a,this.isLoading=!0,this.skeletonArray=[1,2,3,4],this.files=[],this.noMoreFile=!1,this.group=JSON.parse(localStorage.getItem("searchCurrentGroup")),this.title="",this.order_by="default",this.firstClickSort=!1,this.hasClickedSort=[{order_by:this.order_by}],this.sortChange=m=>{let{order_by:v}=m;this.order_by=v,this.files=[],this.searchService.searchFileIndex=0,this.noMoreFile=!0,setTimeout(()=>{this.noMoreFile=!1;},100),this.hasClickedSort.some(x=>x.order_by===v)||(this.firstClickSort=!0,this.hasClickedSort.push({order_by:v}));};let p=e.snapshot.params.keyword;this.groupId=e.snapshot.queryParams.groupId,this.title=this.groupId?`\u300C${this.group.name}\u300D\u661F\u7403\u7684\u6587\u4EF6`:"\u5DF2\u52A0\u5165\u661F\u7403\u7684\u6587\u4EF6",this.searchService.searchValue=p,localStorage.setItem("searchKeyword",p),localStorage.setItem("searchKeywordTime",Date.now().toString());}ngOnInit(){this.doSubscribe(),document.body.scrollTop=document.documentElement.scrollTop=0,this.searchService.searchFileIndex=0,this.searchFiles();}doSubscribe(){this.fileList=this.searchService.files$.subscribe(e=>{this.isLoading=!1;let t=e.files,r=e.index;if(t){let a=this.files.length>0;this.files=this.files.concat(t),this.searchService.searchFileIndex=r,this.searchBurriedPointsService.sendTabSearchPageBurriedPoints(this.activatedRoute,{type:et.file,param1:a,count:this.files.length,modulePageType:et.file,sort:{sort_type:this.order_by},firstClickSort:this.firstClickSort}),this.firstClickSort=!1;}t.length<kl&&(this.noMoreFile=!0),this.infiniteFinishCallback&&setTimeout(()=>{this.infiniteFinishCallback(this.noMoreFile);}),this.fileList.unsubscribe();});}searchFiles(e=null){this.infiniteFinishCallback=e,e&&this.doSubscribe(),this.groupId?this.searchService.searchGroupFiles({groupId:this.groupId,keyword:this.searchService.searchValue,index:this.searchService.searchFileIndex,order_by:this.order_by,count:kl}):this.searchService.searchFiles({keyword:this.searchService.searchValue,index:this.searchService.searchFileIndex,order_by:this.order_by,count:kl});}ngAfterViewInit(){this.indexService.currentList="searchFile";}ngOnDestroy(){this.fileList.unsubscribe();}};n.ɵfac=function(t){return new(t||n)(O(ke),O(q),O(Rt),O(Yt));},n.ɵcmp=F({type:n,selectors:[["app-all-files"]],standalone:!1,decls:6,vars:2,consts:[[1,"all-files"],[1,"skeleton-container",2,"margin-top","10px"],[3,"type","files","sort"],["id","js-gotop","goto-top","",1,"go-top-btn"],[1,"icon"],["titleContent","",3,"sortChange","showDigests","title"],[1,"no-more"],[3,"infinite"]],template:function(t,r){t&1&&(s(0,"div",0),h(1,AS,3,0,"div",1)(2,RS,3,8,"app-joined-group-file",2),h(3,LS,2,0,"app-lottie-loading"),s(4,"div",3),M(5,"div",4),c()()),t&2&&(l(),_(r.isLoading?1:2),l(2),_(!r.noMoreFile&&!r.isLoading?3:-1));},dependencies:[Ae,Qe,ve,Eo,Xo,ht],styles:[".all-files[_ngcontent-%COMP%]   .no-more[_ngcontent-%COMP%]{padding:20px 0;border-radius:0 0 4px 4px;text-align:center;font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}.all-files[_ngcontent-%COMP%]   .go-top-btn[_ngcontent-%COMP%]{margin-left:1230px}@media screen and (max-width:2000px){.go-top-btn[_ngcontent-%COMP%]{margin-left:930px}}@media screen and (max-width:1550px){.go-top-btn[_ngcontent-%COMP%]{margin-left:730px}}"]});let o=n;return o;})();var NS=(o,n,i)=>({sort_type:o,filter_roles:n,filter_types:i}),zS=(o,n)=>({sort_type:o,scope:n});function GS(o,n){o&1&&M(0,"app-skeleton");}function jS(o,n){if(o&1&&(s(0,"div",1),B(1,GS,1,0,"app-skeleton",null,Y),c()),o&2){let i=d();l(),N(i.skeletonArray);}}function $S(o,n){o&1&&(s(0,"div",6),g(1,"\u6CA1\u6709\u66F4\u591A\u4E86"),c());}function HS(o,n){if(o&1){let i=y();s(0,"app-joined-group-topic",2)(1,"app-search-sort",5),f("sortChange",function(t){b(i);let r=d();return P(r.sortChange(t));}),c(),h(2,$S,2,0,"div",6),c();}if(o&2){let i=d();C("topics",i.allTopics)("sort",i.groupId?_n(5,NS,i.order_by,i.filter_roles,i.filter_types):qe(9,zS,i.order_by,i.scope)),l(),C("title",i.title)("filterMode",!!i.groupId),l(),_(i.noMoreTopic?2:-1);}}function US(o,n){if(o&1){let i=y();s(0,"app-lottie-loading",7),f("infinite",function(t){b(i);let r=d();return P(r.searchTopics(t));}),g(1," \u4E3B\u9898\u52A0\u8F7D\u4E2D... "),c();}}var Sl=20,qS="owner,partner,guest,admin,member",QS="digests,checkin,qa,task,solution,talk",As=(()=>{let n=class n{constructor(e,t,r,a){this.activatedRoute=e,this.indexService=t,this.searchService=r,this.searchBurriedPointsService=a,this.allTopics=[],this.isLoading=!0,this.skeletonArray=[1,2,3,4],this.noMoreTopic=!1,this.group=JSON.parse(localStorage.getItem("searchCurrentGroup")),this.title="",this.order_by="default",this.scope="all",this.filter_roles=qS,this.filter_types=QS,this.sortChange=m=>{let{order_by:v,scope:x,filter_roles:w,filter_types:k}=m;this.order_by=v,this.scope=x,this.filter_roles=w,this.filter_types=k,this.allTopics=[],this.searchService.searchTopicIndex=0,this.noMoreTopic=!0,setTimeout(()=>{this.noMoreTopic=!1;}
146,100);};let p=e.snapshot.params.keyword;this.groupId=e.snapshot.queryParams.groupId,this.title=this.groupId?`\u300C${this.group.name}\u300D\u661F\u7403\u7684\u4E3B\u9898`:"\u5DF2\u52A0\u5165\u661F\u7403\u7684\u4E3B\u9898",this.searchService.searchValue=p,localStorage.setItem("searchKeyword",p),localStorage.setItem("searchKeywordTime",Date.now().toString());}ngOnInit(){this.doSubscribe(),document.body.scrollTop=document.documentElement.scrollTop=0,this.searchService.searchTopicIndex=0,this.searchTopics();}doSubscribe(){this.topicsList=this.searchService.topics$.subscribe(e=>{this.isLoading=!1;let t=e.topics,r=e.index;if(t){let a=this.allTopics.length>0;this.allTopics=this.allTopics.concat(t),this.searchService.searchTopicIndex=r;let p=this.groupId?{sort_type:this.order_by,filter_roles:this.filter_roles,filter_types:this.filter_types}:{sort_type:this.order_by,scope:this.scope};this.searchBurriedPointsService.sendTabSearchPageBurriedPoints(this.activatedRoute,{type:et.topic,param1:a,count:this.allTopics.length,modulePageType:et.topic,sort:p,firstClickSort:!0});}t&&t.length<Sl&&(this.noMoreTopic=!0),this.infiniteFinishCallback&&setTimeout(()=>{this.infiniteFinishCallback(this.noMoreTopic);}),this.topicsList.unsubscribe();});}searchTopics(e=null){this.infiniteFinishCallback=e,e&&this.doSubscribe(),this.groupId?this.searchService.searchGroupTopics({groupId:this.groupId,keyword:this.searchService.searchValue,index:this.searchService.searchTopicIndex,order_by:this.order_by,filter_roles:this.filter_roles,filter_types:this.filter_types,count:Sl}):this.searchService.searchTopics({keyword:this.searchService.searchValue,index:this.searchService.searchTopicIndex,scope:this.scope,order_by:this.order_by,count:Sl});}ngAfterViewInit(){this.indexService.currentList="searchTopic";}ngOnDestroy(){this.topicsList.unsubscribe();}};n.ɵfac=function(t){return new(t||n)(O(ke),O(q),O(Rt),O(Yt));},n.ɵcmp=F({type:n,selectors:[["app-all-topics"]],standalone:!1,decls:6,vars:2,consts:[[1,"all-topics","topic-flow-container"],[1,"skeleton-container",2,"margin-top","10px"],[3,"topics","sort"],["id","js-gotop","goto-top","",1,"go-top-btn"],[1,"icon"],["sort","","titleContent","",3,"sortChange","title","filterMode"],[1,"no-more"],[3,"infinite"]],template:function(t,r){t&1&&(s(0,"div",0),h(1,jS,3,0,"div",1)(2,HS,3,12,"app-joined-group-topic",2),h(3,US,2,0,"app-lottie-loading"),s(4,"div",3),M(5,"div",4),c()()),t&2&&(l(),_(r.isLoading?1:2),l(2),_(!r.noMoreTopic&&!r.isLoading?3:-1));},dependencies:[Ae,Qe,ve,Eo,Qi,ht],styles:[".all-topics[_ngcontent-%COMP%]   .no-more[_ngcontent-%COMP%]{padding:20px 0;text-align:center;font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}.go-top-btn[_ngcontent-%COMP%]{margin-left:1230px}@media screen and (max-width:2000px){.go-top-btn[_ngcontent-%COMP%]{margin-left:930px}}@media screen and (max-width:1550px){.go-top-btn[_ngcontent-%COMP%]{margin-left:730px}}"]});let o=n;return o;})();var JS=o=>({"tab-selected":o}),YS=(o,n,i)=>({sort_type:o,filter_roles:n,filter_types:i}),KS=(o,n)=>({sort_type:o,scope:n});function ZS(o,n){o&1&&M(0,"app-skeleton");}function eT(o,n){if(o&1&&(s(0,"div",1),B(1,ZS,1,0,"app-skeleton",null,Y),c()),o&2){let i=d();l(),N(i.skeletonArray);}}function tT(o,n){if(o&1){let i=y();s(0,"div",5),f("click",function(){let t=b(i).$implicit,r=d(2);return P(r.handleTab(t.type));}),g(1),c();}if(o&2){let i=n.$implicit,e=d(2);C("ngClass",R(2,JS,i.type===e.selectedTab)),l(),V(" ",i.title," ");}}function nT(o,n){if(o&1){let i=y();s(0,"div",12)(1,"a",14),f("click",function(){b(i);let t=d(4);return P(t.viewMoreGroup("joined-group"));}),g(2,"\u67E5\u770B\u66F4\u591A"),c()();}}function iT(o,n){o&1&&(s(0,"div",13)(1,"span"),g(2,"\u65E0\u76F8\u5173\u661F\u7403"),c()());}function oT(o,n){if(o&1&&(s(0,"app-joined-group",6),h(1,nT,3,0,"div",12),h(2,iT,3,0,"div",13),c()),o&2){let i=d(3);C("groups",i.joinedGroups.slice(0,3)),l(),_(i.joinedGroups&&i.joinedGroups.length>=i.maxItem?1:-1),l(),_(!i.joinedGroups||i.joinedGroups.length===0?2:-1);}}function rT(o,n){if(o&1){let i=y();s(0,"div",12)(1,"a",14),f("click",function(){b(i);let t=d(4);return P(t.viewMoreGroup("relative-group"));}),g(2,"\u67E5\u770B\u66F4\u591A"),c()();}}function aT(o,n){o&1&&(s(0,"div",13)(1,"span"),g(2,"\u65E0\u76F8\u5173\u661F\u7403"),c()());}function sT(o,n){if(o&1&&(s(0,"app-joined-group",7),h(1,rT,3,0,"div",12),h(2,aT,3,0,"div",13),c()),o&2){let i=d(3);C("groups",i.groups.slice(0,3)),l(),_(i.groups&&i.groups.length>=i.maxItem?1:-1),l(),_(!i.groups||i.groups.length===0?2:-1);}}function cT(o,n){if(o&1){let i=y();s(0,"div",15)(1,"a",14),f("click",function(){b(i);let t=d(4);return P(t.viewMoreUser());}),g(2,"\u67E5\u770B\u66F4\u591A"),c()();}}function lT(o,n){o&1&&(s(0,"div",16)(1,"span"),g(2,"\u65E0\u76F8\u5173\u7528\u6237"),c()());}function pT(o,n){if(o&1&&(s(0,"app-search-users",8),h(1,cT,3,0,"div",15),h(2,lT,3,0,"div",16),c()),o&2){let i=d(3);C("type",i.userOrMember)("users",i.users)("members",i.members)("title",i.userTitle),l(
146),_(i.isMoreUsers?1:-1),l(),_(i.isNoUsers?2:-1);}}function dT(o,n){if(o&1){let i=y();s(0,"div",12)(1,"a",14),f("click",function(){b(i);let t=d(4);return P(t.viewMoreFile());}),g(2,"\u67E5\u770B\u66F4\u591A"),c()();}}function gT(o,n){o&1&&(s(0,"div",13)(1,"span"),g(2,"\u65E0\u76F8\u5173\u6587\u4EF6"),c()());}function uT(o,n){if(o&1&&(s(0,"app-joined-group-file",9),h(1,dT,3,0,"div",12),h(2,gT,3,0,"div",13),c()),o&2){let i=d(3);C("title",i.title)("files",i.files)("type",i.userOrMember),l(),_(i.files&&i.files.length>=i.maxItem?1:-1),l(),_(!i.files||i.files.length===0?2:-1);}}function mT(o,n){o&1&&M(0,"app-all-files");}function hT(o,n){if(o&1){let i=y();s(0,"div",15)(1,"a",14),f("click",function(){b(i);let t=d(4);return P(t.viewMoreTopic());}),g(2,"\u67E5\u770B\u66F4\u591A"),c()();}}function _T(o,n){o&1&&(s(0,"div",16)(1,"span"),g(2,"\u65E0\u76F8\u5173\u4E3B\u9898"),c()());}function fT(o,n){if(o&1){let i=y();s(0,"app-joined-group-topic",10)(1,"app-search-sort",17),f("sortChange",function(t){b(i);let r=d(3);return P(r.onTopicSortChange(t));}),c(),h(2,hT,3,0,"div",15),h(3,_T,3,0,"div",16),c();}if(o&2){let i=d(3);C("topics",i.topics)("sort",i.groupId?_n(6,YS,i.topicOrderBy,i.topicFilterRoles,i.topicFilterTypes):qe(10,KS,i.topicOrderBy,i.topicScope)),l(),C("title",i.aTitle)("filterMode",!!i.groupId),l(),_(i.topics&&i.topics.length>=i.maxItem?2:-1),l(),_(!i.topics||i.topics.length===0?3:-1);}}function CT(o,n){o&1&&M(0,"app-all-topics");}function xT(o,n){o&1&&(s(0,"div",11)(1,"div",13),M(2,"i",18),s(3,"span"),g(4,"\u6CA1\u6709\u641C\u7D22\u5230\u76F8\u5173\u5185\u5BB9"),c()()());}function vT(o,n){if(o&1&&(h(0,oT,3,3,"app-joined-group",6),h(1,sT,3,3,"app-joined-group",7),h(2,pT,3,6,"app-search-users",8),ic(3),h(4,uT,3,5,"app-joined-group-file",9),h(5,mT,1,0,"app-all-files"),oc(),ic(6),h(7,fT,4,13,"app-joined-group-topic",10),h(8,CT,1,0,"app-all-topics"),oc(),h(9,xT,5,0,"div",11)),o&2){let i=d(2);_(!i.groupName&&i.joinedGroups&&i.joinedGroups.length>0&&(i.selectedTab==="all"||i.selectedTab==="group")?0:-1),l(),_(!i.groupName&&i.groups&&i.groups.length>0&&(i.selectedTab==="all"||i.selectedTab==="group")?1:-1),l(),_((i.users&&i.users.length>0||i.members&&i.members.length>0)&&(i.selectedTab==="all"||i.selectedTab==="user")?2:-1),l(2),_(i.files&&i.files.length>0&&i.selectedTab==="all"?4:-1),l(),_(i.files&&i.files.length>0&&i.selectedTab==="file"?5:-1),l(2),_(i.selectedTab==="all"?7:-1),l(),_(i.topics&&i.topics.length>0&&i.selectedTab==="topic"?8:-1),l(),_(i.selectedData?9:-1);}}function bT(o,n){o&1&&(s(0,"div",4)(1,"div",13),M(2,"i",18),s(3,"span"),g(4,"\u6CA1\u6709\u641C\u7D22\u5230\u76F8\u5173\u5185\u5BB9"),c()()());}function PT(o,n){if(o&1&&(s(0,"div",2),B(1,tT,2,4,"div",3,Y),c(),h(3,vT,10,8),h(4,bT,5,0,"div",4)),o&2){let i=d();l(),N(i.tabs),l(2),_(i.haveResult?3:-1),l(),_(i.haveResult?-1:4);}}var Tl="owner,partner,guest,admin,member",El="digests,checkin,qa,task,solution,talk",Wm=(()=>{let n=class n{get isMoreUsers(){return this.userOrMember==="user"?this.users&&this.users.length>=this.maxItem:this.members&&this.members.length>=this.maxItem;}get isNoUsers(){return this.userOrMember==="user"?this.users.length===0:this.members.length===0;}get selectedData(){switch(this.selectedTab){case"topic":return this.topics.length===0;case"group":return this.groups.length===0;case"user":return this.userOrMember==="user"?this.users.length===0:this.members.length===0;case"file":return this.files.length===0;}}get haveResult(){return this.files.length>0||this.topics.length>0||this.isTopicFiltering||this.groups.length>0||this.users.length>0||this.members.length>0||this.joinedGroups.length>0||this.needReflow;}constructor(e,t,r,a,p){this.activatedRoute=e,this.router=t,this.searchService=r,this.indexService=a,this.searchBurriedPointsService=p,this.isLoading=!0,this.skeletonArray=[1,2,3,4],this.groups=[],this.joinedGroups=[],this.files=[],this.topics=[],this.users=[],this.members=[],this.maxItem=6,this.userOrMember="",this.groupName="",this.title="",this.aTitle="",this.userTitle="",this.topicOrderBy="default",this.topicScope="all",this.topicFilterRoles=Tl,this.topicFilterTypes=El,this.isTopicFiltering=!1,this.memberTabs=[{title:"\u5168\u90E8",type:"all"},{title:"\u4E3B\u9898",type:"topic"},{title:"\u6587\u4EF6",type:"file"},{title:"\u7528\u6237",type:"user"}],this.tabs=this.memberTabs,this.selectedTab="all",this.needReflow=!1;}ngOnInit(){document.body.scrollTop=document.documentElement.scrollTop=0,this.searchBurriedPointsService.setSearchPageType(),this.searchBurriedPointsService.setHasClickedTabs(),this.doSearch();}ngAfterViewInit(){this.indexService.currentList="searchAll";}doSearch(){vi([this.activatedRoute.paramMap,this.activatedRoute.queryParamMap]).pipe(Ct(0)).subscribe(([e,t])=>{this.selectedTab=this.searchService.searchSelectedTab?this.searchService.searchSelectedTab:"all",this.searchBurriedPointsService.setHasClickedTabs();let r=this.searchService.searchValue||e.get("keyword");this.groupId=+t.get("groupId"),this.searchService.searchGroupId=this.groupId,this.searchService.searchValue=r,this.users=[],this.members=[],this.topicOrderBy="default",this.topicScope="all",this.topicFilterRoles=Tl,this.topicFilterTypes=El,this.isTopicFiltering=!1;let a=JSON.parse(localStorage.getItem("searchCurrentGroup"));this.groupName=this.groupId?a.name:"",this.selectedTab!=="all"?this.handleTab(this.selectedTab):(this.subscribeResult(),this.groupId?(this.isLoading=!0,localStorage.setItem("searchKeyword",r),localStorage.setItem("searchKeywordTime",Date.now().toString()),this.zipAndReport({filter_roles:this.topicFilterRoles,filter_types:this.topicFilterTypes,sort_type:this.topicOrderBy}),this.searchService.searchGroupFiles({groupId:this.groupId,keyword:r,
146index:0,count:this.maxItem}),this.searchService.searchGroupTopics({groupId:this.groupId,keyword:r,index:0,count:this.maxItem,order_by:this.topicOrderBy}),this.searchService.searchGroupUsers(this.groupId,r,0,this.maxItem),this.userOrMember="member"):r&&(this.isLoading=!0,localStorage.setItem("searchKeyword",r),localStorage.setItem("searchKeywordTime",Date.now().toString()),this.zipAndReport({sort_type:this.topicOrderBy,scope:this.topicScope}),this.searchService.searchFiles({keyword:r,index:0,count:this.maxItem}),this.searchService.searchTopics({keyword:r,index:0,count:this.maxItem,scope:this.topicScope,order_by:this.topicOrderBy}),this.searchService.searchGroups(r,0,"non-joined",6),this.searchService.searchGroups(r,0,"joined",6),this.searchService.searchUsers(r,0,this.maxItem),this.userOrMember="user")),this.updateTabs(),this.title=this.groupName?`\u300C${this.groupName}\u300D\u661F\u7403\u7684\u6587\u4EF6`:"\u5DF2\u52A0\u5165\u661F\u7403\u7684\u6587\u4EF6",this.aTitle=this.groupName?`\u300C${this.groupName}\u300D\u661F\u7403\u7684\u4E3B\u9898`:"\u5DF2\u52A0\u5165\u661F\u7403\u7684\u4E3B\u9898",this.userTitle=this.groupName?`\u300C${this.groupName}\u300D\u661F\u7403\u7684\u7528\u6237`:"\u76F8\u5173\u7528\u6237";});}updateTabs(){this.tabs=this.userOrMember==="user"?[...this.memberTabs.slice(0,1),{title:"\u661F\u7403",type:"group"},...this.memberTabs.slice(1)]:this.memberTabs;}subscribeResult(){let e=this.searchService.files$.subscribe(v=>{this.files=v.files,this.searchService.fileHighlightWords=v.highlight_words,this.isLoading=!1,e.unsubscribe();}),t=this.searchService.topics$.subscribe(v=>{this.topics=v.topics,this.searchService.topicHighlightWords=v.highlight_words,this.isLoading=!1,t.unsubscribe();}),r=this.searchService.groups$.subscribe(v=>{this.groups=v.groups,this.searchService.groupHighlightWords=v.highlight_words,this.isLoading=!1,r.unsubscribe();}),a=this.searchService.joinedGroups$.subscribe(v=>{this.joinedGroups=v.groups,this.searchService.joinedGroupHighlightWords=v.highlight_words,this.isLoading=!1,a.unsubscribe();}),p=this.searchService.users$.subscribe(v=>{this.users=v.users,this.searchService.userHighlightWords=v.highlight_words,this.isLoading=!1,p.unsubscribe();}),m=this.searchService.members$.subscribe(v=>{this.members=v.members,this.searchService.membersHighlightWords=v.highlight_words,this.isLoading=!1,m.unsubscribe();});}onTopicSortChange(e){let{order_by:t,scope:r,filter_roles:a,filter_types:p}=e;this.topicOrderBy=t,this.topicScope=r,this.topicFilterRoles=a||Tl,this.topicFilterTypes=p||El,this.isTopicFiltering=!0,this.subscribeResult();let m=this.groupId?{filter_roles:this.topicFilterRoles,filter_types:this.topicFilterTypes,sort_type:t}:{sort_type:t,scope:r};this.zipAndReport(m,{files:this.files.length,users:this.groupId?this.members.length:this.users.length,joinedGroups:this.joinedGroups.length,groups:this.groups.length}),this.groupId?this.searchService.searchGroupTopics({groupId:this.groupId,keyword:this.searchService.searchValue,index:0,order_by:t,filter_roles:a,filter_types:p,count:this.maxItem}):this.searchService.searchTopics({keyword:this.searchService.searchValue,index:0,scope:r,order_by:t,count:this.maxItem});}zipAndReport(e,t){if(t){let r=this.searchService.topics$.subscribe(({topics:a})=>{this.searchBurriedPointsService.sendAllSearchPageBurriedPoints(this.activatedRoute,Ue({topics:a.length},t),e),r.unsubscribe();});}else if(this.groupId){let r=mo(this.searchService.files$,this.searchService.topics$,this.searchService.members$).subscribe(([{files:a},{topics:p},{members:m}])=>{this.searchBurriedPointsService.sendAllSearchPageBurriedPoints(this.activatedRoute,{topics:p.length,files:a.length,users:m.length},e),r.unsubscribe();});}else{let r=mo(this.searchService.files$,this.searchService.topics$,this.searchService.users$,this.searchService.joinedGroups$,this.searchService.groups$).subscribe(([{files:a},{topics:p},{users:m},{groups:v},{groups:x}])=>{this.searchBurriedPointsService.sendAllSearchPageBurriedPoints(this.activatedRoute,{topics:p.length,files:a.length,users:m.length,joinedGroups:v.slice(0,3).length,groups:x.slice(0,3).length},e),r.unsubscribe();});}}viewMoreGroup(e){this.router.navigate([`search/${this.searchService.searchValue}/allgroups`],e==="joined-group"?{queryParams:{searchType:"joined-group"}}:{queryParams:{searchType:"relative-group"}});}
146viewMoreFile(){this.handleTab("file",!0),this.searchBurriedPointsService.setSearchPageType(et.file);}viewMoreTopic(){this.handleTab("topic",!0),this.searchBurriedPointsService.setSearchPageType(et.topic);}viewMoreUser(){this.router.navigate([`search/${this.searchService.searchValue}/allusers`],this.userOrMember==="member"?{queryParams:{searchType:this.userOrMember,groupId:this.groupId}}:{queryParams:{searchType:this.userOrMember}});}handleTab(e,t){if(this.subscribeResult(),this.isTopicFiltering=!1,this.selectedTab=e,this.searchService.searchSelectedTab=e,this.userOrMember=this.groupId?"member":"user",t?this.searchBurriedPointsService.setSearchPageType():this.searchBurriedPointsService.setSearchPageType(e),e==="all"&&(this.groupId?this.router.navigate(["search",this.searchService.searchValue],{queryParams:{groupId:this.groupId,searchUid:Math.random()}}):this.router.navigate(["search",this.searchService.searchValue],{queryParams:{searchUid:Math.random()}})),e==="group"){this.isLoading=!0,this.searchService.searchGroups(this.searchService.searchValue,0,"non-joined",6),this.searchService.searchGroups(this.searchService.searchValue,0,"joined",6);let r=mo(this.searchService.groups$,this.searchService.joinedGroups$).subscribe(([a,p])=>{this.searchBurriedPointsService.sendTabSearchPageBurriedPoints(this.activatedRoute,{type:et.group,param1:!1,count:{joindGroupcCount:p.groups.slice(0,3).length,nonJoinedGroupCount:a.groups.slice(0,3).length}}),r.unsubscribe();});}if(e==="user")if(this.isLoading=!0,this.groupId){this.searchService.searchGroupUsers(this.groupId,this.searchService.searchValue,0,this.maxItem);let r=this.searchService.members$.subscribe(a=>{this.searchBurriedPointsService.sendTabSearchPageBurriedPoints(this.activatedRoute,{type:et.user,param1:!1,count:a.members.length}),r.unsubscribe();});}else{this.searchService.searchUsers(this.searchService.searchValue,0,this.maxItem);let r=this.searchService.users$.subscribe(a=>{this.searchBurriedPointsService.sendTabSearchPageBurriedPoints(this.activatedRoute,{type:et.user,param1:!1,count:a.users.length}),r.unsubscribe();});}e==="topic"&&(this.topics.length===0&&this.searchBurriedPointsService.sendTabSearchPageBurriedPoints(this.activatedRoute,{type:et.topic,param1:!1,count:0,sort:{sort_type:"default",scope:"all"}}),this.isLoading=!0,this.groupId?this.searchService.searchGroupTopics({groupId:this.groupId,keyword:this.searchService.searchValue,index:0,order_by:"default",count:20}):this.searchService.searchTopics({keyword:this.searchService.searchValue,index:0,scope:"all",order_by:"default",count:20})),e==="file"&&(this.files.length===0&&this.searchBurriedPointsService.sendTabSearchPageBurriedPoints(this.activatedRoute,{type:et.file,param1:!1,count:0,sort:{sort_type:"default"}}),this.isLoading=!0,this.groupId?this.searchService.searchGroupFiles({groupId:this.groupId,keyword:this.searchService.searchValue,index:0,order_by:"default",count:20}):this.searchService.searchFiles({keyword:this.searchService.searchValue,index:0,order_by:"default",count:20}));}};n.ɵfac=function(t){return new(t||n)(O(ke),O(ue),O(Rt),O(q),O(Yt));},n.ɵcmp=F({type:n,selectors:[["app-search-result"]],standalone:!1,decls:3,vars:1,consts:[[1,"result-container"],[1,"skeleton-container",2,"margin-top","10px"],[1,"navtabs"],[1,"tab-item",3,"ngClass"],[1,"no-content"],[1,"tab-item",3,"click","ngClass"],["title","\u5DF2\u52A0\u5165\u7684\u661F\u7403",3,"groups"],["title","\u76F8\u5173\u661F\u7403",3,"groups"],[3,"type","users","members","title"],[3,"title","files","type"],[3,"topics","sort"],[1,"no-relative"],[1,"view-more-file"],[1,"no-data"],[3,"click"],[1,"view-more-topic"],[1,"no-data","in-topic-search"],["titleContent","",3,"sortChange","title","filterMode"],[1,"icon"]],template:function(t,r){t&1&&(s(0,"div",0),h(1,eT,3,0,"div",1)(2,PT,5,2),c()),t&2&&(l(),_(r.isLoading?1:2));},dependencies:[K,ve,Pa,Eo,Es,Xo,Qi,Fs,As],styles:['.result-container[_ngcontent-%COMP%]{margin:0 353px}.navtabs[_ngcontent-%COMP%]{display:flex;align-items:center;padding:12px 0 2px}.navtabs[_ngcontent-%COMP%]   .tab-item[_ngcontent-%COMP%]{margin-right:10px;padding:0 8px;height:26px;line-height:26px;background:var(--dweb-bg-panel);border-radius:4px;font-size:14px;color:var(--dweb-text-secondary);cursor:pointer}.navtabs[_ngcontent-%COMP%]   .tab-item.tab-selected[_ngcontent-%COMP%]{background:#383e55;color:#fff}.no-content[_ngcontent-%COMP%], .no-relative[_ngcontent-%COMP%]{height:calc(100vh - 70px);display:flex;justify-content:center;margin-top:10px;background:var(--dweb-bg-panel, #FFFFFF);border-radius:4px}.no-relative[_ngcontent-%COMP%]{height:calc(100vh - 120px)}.view-more-group[_ngcontent-%COMP%], .view-more-file[_ngcontent-%COMP%], .view-more-topic[_ngcontent-%COMP%]{padding:12px 0 8px;text-align:center;font-size:12px;color:var(--dweb-info, #567895)}.view-more-topic[_ngcontent-%COMP%]{padding-bottom:20px}.no-data[_ngcontent-%COMP%]{font-size:14px;padding:48px 0;display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--dweb-text-faint)}.no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:87px;height:71px;background-image:url("./media/[email protected]");background-position:-87px -929px;margin-bottom:16px}.no-data[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{margin-top:30px;font-size:14px;color:var(--dweb-info)}.in-topic-search.no-data[_ngcontent-%COMP%]{padding:60px 0}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}@media screen and (max-width:2000px){.result-container[_ngcontent-%COMP%]{margin:0 313px}}']});let o=n;return o;})();function MT(o,n){o&1&&M(0,"app-skeleton");}function OT(o,n){if(o&1&&(s(0,"div",1),B(1,MT,1,0,"app-skeleton",null,Y),c()),o&2){let i=d();l(),N(i.skeletonArray);}}function wT(o,n){o&1&&(s(0,"div",5),g(1,"\u6CA1\u6709\u66F4\u591A\u4E86"),c());}function yT(o,n){if(o&1&&(s(0,"app-joined-group",2),h(1,wT,2,0,"div",5),c()),o&2){let i=d();C("title",i.title)("groups",i.groups),l(),_(i.noMoreGroup?1:-1);}}function kT(o,n){if(o&1){let i=y();s(0,"app-lottie-loading",6),f("infinite",function(t){b(i);let r=d();return P(r.searchGroups(t));}),g(1," \u661F\u7403\u52A0\u8F7D\u4E2D... "),c();}}var Xm=(()=>{let n=class n{constructor(e,t,r,a){this.activatedRoute=e,this.indexService=t,this.searchService=r,this.sarchBurriedPointsService=a,this.isLoading=!0,this.skeletonArray=[1,2,3,4],this.groups=[],this.noMoreGroup=!1,this.searchType="",this.title="",this.searchService.searchValue=e.snapshot.params.keyword,this.searchType=this.activatedRoute.snapshot.queryParams.searchType,this.title=this.searchType==="joined-group"?"\u5DF2\u52A0\u5165\u7684\u661F\u7403":"\u76F8\u5173\u661F\u7403";}ngOnInit(){document.body.scrollTop=document.documentElement.scrollTop=0,this.searchService.searchGroupIndex=0,this.groupsList=this.searchService.groups$.subscribe(e=>{this.handleData(e);}
146),this.joinedGroupsList=this.searchService.joinedGroups$.subscribe(e=>{this.handleData(e);}),this.searchGroups();}handleData(e){this.isLoading=!1;let t=e.groups,r=e.index;if(t&&t.length>0){let a=this.groups.length>0;this.groups=this.groups.concat(t),this.searchService.searchGroupIndex=r,this.sarchBurriedPointsService.sendTabSearchPageBurriedPoints(this.activatedRoute,{type:et.group,param1:a,count:this.groups.length,isJoin:this.searchType==="joined-group",modulePageType:et.group,isInMorePage:!0});}else this.noMoreGroup=!0;this.infiniteFinishCallback&&this.infiniteFinishCallback(this.noMoreGroup);}searchGroups(e=null){this.searchService.searchGroups(this.searchService.searchValue,this.searchService.searchGroupIndex,this.searchType==="joined-group"?"joined":"non-joined"),this.infiniteFinishCallback=e;}ngAfterViewInit(){this.indexService.currentList="searchGroup";}ngOnDestroy(){this.groupsList.unsubscribe(),this.joinedGroupsList.unsubscribe();}};n.ɵfac=function(t){return new(t||n)(O(ke),O(q),O(Rt),O(Yt));},n.ɵcmp=F({type:n,selectors:[["app-all-groups"]],standalone:!1,decls:6,vars:2,consts:[[1,"all-groups"],[1,"skeleton-container",2,"margin-top","10px"],[3,"title","groups"],["id","js-gotop","goto-top","",1,"go-top-btn"],[1,"icon"],[1,"no-more"],[3,"infinite"]],template:function(t,r){t&1&&(s(0,"div",0),h(1,OT,3,0,"div",1)(2,yT,2,3,"app-joined-group",2),h(3,kT,2,0,"app-lottie-loading"),s(4,"div",3),M(5,"div",4),c()()),t&2&&(l(),_(r.isLoading?1:2),l(2),_(!r.noMoreGroup&&!r.isLoading?3:-1));},dependencies:[Ae,Qe,ve,Es,ht],styles:[".all-groups[_ngcontent-%COMP%]{margin:0 343px}.all-groups[_ngcontent-%COMP%]   .no-more[_ngcontent-%COMP%]{padding:20px 0;text-align:center;font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}.go-top-btn[_ngcontent-%COMP%]{margin-left:1230px}@media screen and (max-width:2000px){.all-groups[_ngcontent-%COMP%]{margin:0 303px}.go-top-btn[_ngcontent-%COMP%]{margin-left:930px}}@media screen and (max-width:1550px){.go-top-btn[_ngcontent-%COMP%]{margin-left:730px}}"]});let o=n;return o;})();function ST(o,n){o&1&&M(0,"app-skeleton");}function TT(o,n){if(o&1&&(s(0,"div",1),B(1,ST,1,0,"app-skeleton",null,Y),c()),o&2){let i=d();l(),N(i.skeletonArray);}}function ET(o,n){o&1&&(s(0,"div",3),g(1,"\u6CA1\u6709\u66F4\u591A\u4E86"),c());}function DT(o,n){if(o&1&&(s(0,"app-search-users",2),h(1,ET,2,0,"div",3),c()),o&2){let i=d();C("title",i.title)("users",i.users)("members",i.members),l(),_(i.noMore?1:-1);}}function IT(o,n){if(o&1){let i=y();s(0,"app-lottie-loading",4),f("infinite",function(t){b(i);let r=d();return P(r.searchUsers(t));}),g(1," \u9875\u9762\u52A0\u8F7D\u4E2D... "),c();}}var Jm=(()=>{let n=class n{constructor(e,t,r,a){this.activatedRoute=e,this.indexService=t,this.searchService=r,this.searchBurriedPointsService=a,this.isLoading=!0,this.skeletonArray=[1,2,3,4],this.users=[],this.members=[],this.noMore=!1,this.group=JSON.parse(localStorage.getItem("searchCurrentGroup")),this.title="",this.searchType="",this.groupId=0,this.searchService.searchValue=this.activatedRoute.snapshot.params.keyword,this.searchType=this.activatedRoute.snapshot.queryParams.searchType,this.groupId=this.activatedRoute.snapshot.queryParams.groupId?this.activatedRoute.snapshot.queryParams.groupId:0,this.title=this.groupId?`\u300C${this.group.name}\u300D\u661F\u7403\u7684\u7528\u6237`:"\u76F8\u5173\u7528\u6237",localStorage.setItem("searchKeyword",this.activatedRoute.snapshot.params.keyword),localStorage.setItem("searchKeywordTime",Date.now().toString());}ngOnInit(){document.body.scrollTop=document.documentElement.scrollTop=0,this.searchService.searchGroupIndex=0,this.usersList=this.searchService.users$.subscribe(e=>{this.isLoading=!1;let t=e.users,r=e.index;if(t&&t.length>0){let a=this.users.length>0;this.users=this.users.concat(t),this.searchService.searchGroupIndex=r,this.searchBurriedPointsService.sendTabSearchPageBurriedPoints(this.activatedRoute,{type:et.user,count:this.users.length,param1:a,modulePageType:et.user,isInMorePage:!0});}else this.noMore=!0;this.infiniteFinishCallback&&this.infiniteFinishCallback(this.noMore);}),this.membersList=this.searchService.members$.subscribe(e=>{let t=this.members.length>0;this.isLoading=!1;let r=e.members,a=e.index;r&&r.length>0?(this.members=this.members.concat(r),this.searchService.searchGroupIndex=a,this.searchBurriedPointsService.sendTabSearchPageBurriedPoints(this.activatedRoute,{type:et.user,count:this.members.length,param1:t,modulePageType:et.user,isInMorePage:!0})):this.noMore=!0,this.infiniteFinishCallback&&this.infiniteFinishCallback(this.noMore);}),this.searchUsers();}searchUsers(e=null){this.searchType==="user"?this.searchService.searchUsers(this.searchService.searchValue,this.searchService.searchGroupIndex):this.searchService.searchGroupUsers(this.groupId,this.searchService.searchValue,this.searchService.searchGroupIndex),this.infiniteFinishCallback=e;}ngAfterViewInit(){this.indexService.currentList=this.searchType==="user"?"searchUser":"searchMember";}ngOnDestroy(){this.usersList.unsubscribe(),this.membersList.unsubscribe();}};n.ɵfac=function(t){return new(t||n)(O(ke),O(q),O(Rt),O(Yt));},n.ɵcmp=F({type:n,selectors:[["app-all-users"]],standalone:!1,decls:4,vars:2,consts:[[1,"all-users"],[1,"skeleton-container",2,"margin-top","10px"],[3,"title","users","members"],[1,"n
146o-more"],[3,"infinite"]],template:function(t,r){t&1&&(s(0,"div",0),h(1,TT,3,0,"div",1)(2,DT,2,4,"app-search-users",2),h(3,IT,2,0,"app-lottie-loading"),c()),t&2&&(l(),_(r.isLoading?1:2),l(2),_(!r.noMore&&!r.isLoading?3:-1));},dependencies:[Ae,Qe,ve,Pa],styles:[".all-users[_ngcontent-%COMP%]{margin:0 343px}.all-users[_ngcontent-%COMP%]   .no-more[_ngcontent-%COMP%]{padding:20px 0;text-align:center;font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}@media screen and (max-width:2000px){.all-users[_ngcontent-%COMP%]{margin:0 303px}}"]});let o=n;return o;})();var Ym=(()=>{let n=class n{constructor(e){this.http=e,this._topics$=new U(),this.topics$=this._topics$.asObservable(),this.endTime="";}getMytopics(e,t=30){this.http.get(j.getMytopics(e,t)).subscribe(r=>{if(r.succeeded){let a=r.resp_data.topics;a&&a.length>0&&(this.endTime=mt(a[a.length-1].create_time)),this._topics$.next(a);}else this.http.handleExceptionCode(r,"\u83B7\u53D6\u6211\u7684\u8DB3\u8FF9\u5931\u8D25");});}};n.ɵfac=function(t){return new(t||n)(re(W));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();function AT(o,n){o&1&&M(0,"app-skeleton");}function VT(o,n){if(o&1&&(s(0,"div",8),B(1,AT,1,0,"app-skeleton",null,Y),c()),o&2){let i=d();l(),N(i.skeletonArray);}}function RT(o,n){o&1&&(s(0,"div",12),g(1,"\u6CA1\u6709\u66F4\u591A\u4E86"),c());}function LT(o,n){if(o&1&&(s(0,"app-joined-group-topic",9),h(1,RT,2,0,"div",12),c()),o&2){let i=d();C("topics",i.myTopics),l(),_(i.noMoreTopic?1:-1);}}function BT(o,n){if(o&1){let i=y();s(0,"app-lottie-loading",13),f("infinite",function(t){b(i);let r=d();return P(r.getMoreTopics(t));}),g(1," \u8DB3\u8FF9\u52A0\u8F7D\u4E2D... "),c();}}var Km=(()=>{let n=class n{constructor(e,t){this.footprintService=e,this.indexService=t,this.isLoading=!0,this.skeletonArray=[1,2,3,4],this.myTopics=[],this.noMoreTopic=!1,this.infiniteFinishCallback=null;}ngOnInit(){document.body.scrollTop=document.documentElement.scrollTop=0,this.doSubscribe(),this.indexService.currentList="myFootprint",this.footprintService.endTime="",this.getMoreTopics();}doSubscribe(){this.footprintService.topics$.subscribe(e=>{this.isLoading=!1,e&&e.length>0?this.myTopics=this.myTopics.concat(e):this.noMoreTopic=!0,this.infiniteFinishCallback&&this.infiniteFinishCallback(this.noMoreTopic);});}getMoreTopics(e=null){this.footprintService.getMytopics(this.footprintService.endTime),this.infiniteFinishCallback=e;}};n.ɵfac=function(t){return new(t||n)(O(Ym),O(q));},n.ɵcmp=F({type:n,selectors:[["app-my-footprint"]],standalone:!1,decls:16,vars:2,consts:[[1,"my-footprint","topic-flow-container"],[1,"left"],["routerLink","/group/init",1,"index","item"],[1,"home-icon"],[1,"text"],[1,"footprint","item"],[1,"footprint-icon"],[1,"footprint-main"],[1,"skeleton-container",2,"margin-top","10px"],["aTitle","\u6211\u7684\u8DB3\u8FF9",3,"topics"],["id","js-gotop","goto-top","",1,"go-top-btn"],[1,"icon"],[1,"no-more"],[3,"infinite"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1)(2,"a",2),M(3,"div",3),s(4,"div",4),g(5,"\u661F\u7403\u9996\u9875"),c()(),s(6,"div",5),M(7,"div",6),s(8,"div",4),g(9,"\u6211\u7684\u8DB3\u8FF9"),c()()(),s(10,"div",7),h(11,VT,3,0,"div",8)(12,LT,2,2,"app-joined-group-topic",9),h(13,BT,2,0,"app-lottie-loading"),s(14,"div",10),M(15,"div",11),c()()()),t&2&&(l(11),_(r.isLoading?11:12),l(2),_(!r.noMoreTopic&&!r.isLoading?13:-1));},dependencies:[lt,Ae,Qe,ve,Qi,ht],styles:['.my-footprint[_ngcontent-%COMP%]{width:1906px;padding-top:50px;padding-bottom:32px;margin:0 auto}.my-footprint[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{position:fixed;box-sizing:border-box;width:310px;padding-top:24px;padding-right:60px;font-family:PingFangSC-Medium}.my-footprint[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;font-size:16px;height:22px;line-height:22px}.my-footprint[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]{text-align:right;margin-bottom:24px}.my-footprint[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]   .home-icon[_ngcontent-%COMP%]{position:relative;
146left:160px;top:2px;height:16px;width:16px;background-image:url("./media/[email protected]");background-position:-103px -571px}.my-footprint[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{flex:1;color:var(--dweb-text-faint, #C5C6CB)}.my-footprint[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .footprint[_ngcontent-%COMP%]{text-align:right}.my-footprint[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .footprint[_ngcontent-%COMP%]   .footprint-icon[_ngcontent-%COMP%]{position:relative;left:160px;top:2px;width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-270px -608px}.my-footprint[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .footprint[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{flex:1;color:var(--dweb-brand, #16B998)}.my-footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]{margin:0 343px;border-radius:4px;overflow:hidden}.my-footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]   .no-more[_ngcontent-%COMP%]{padding:20px 0;text-align:center;font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.my-footprint[_ngcontent-%COMP%]   .home-icon[_ngcontent-%COMP%], .my-footprint[_ngcontent-%COMP%]   .footprint-icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}@media screen and (max-width:2000px){.my-footprint[_ngcontent-%COMP%]{width:1526px}.my-footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]{margin:0 303px}}@media screen and (max-width:1550px){.my-footprint[_ngcontent-%COMP%]{width:1326px}.my-footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]{margin:0 303px}}']});let o=n;return o;})();var Dl=xi(wo());var NT=(o,n)=>n.group_id;function zT(o,n){if(o&1){let i=y();s(0,"li",4),f("click",function(){let t=b(i).$implicit,r=d(2);return P(r.goGroup(t));}),s(1,"div",5)(2,"h3",6),g(3),c(),M(4,"i",7),c(),s(5,"div",8),g(6),c()();}if(o&2){let i=n.$implicit,e=d(2);l(3),A(i.name),l(3),A(e.intro(i));}}function GT(o,n){if(o&1&&(s(0,"div",0)(1,"h2",1),g(2),c(),s(3,"ul",2),B(4,zT,7,2,"li",3,NT),c()()),o&2){let i=d();l(2),A(i.title),l(2),N(i.groups);}}var jT="\u661F\u7403\u6682\u65E0\u4ECB\u7ECD",Zm=(()=>{let n=class n{constructor(){this.groups=[],this.isSelf=!1,this.isLogin=!1;}get title(){return`${this.isSelf?"\u6211":"\u4ED6"}\u521B\u5EFA\u7684\u661F\u7403`;}intro(e){return e.description||jT;}goGroup(e){$e("FootprintView_CreatedGroup_Click",{page_type:this.isLogin?"Normal":"Visitor",footprint_user_id:this.footprintUserId,group_id:e.group_id},!this.isLogin),ne(`/group/${e.group_id}`);}};n.ɵfac=function(t){return new(t||n)();},n.ɵcmp=F({type:n,selectors:[["app-footprint-created-groups"]],inputs:{groups:"groups",isSelf:"isSelf",isLogin:"isLogin",footprintUserId:"footprintUserId"},standalone:!1,decls:1,vars:1,consts:[[1,"created-groups"],[1,"title"],[1,"group-list"],[1,"group-item"],[1,"group-item",3,"click"],[1,"group-name-row"],[1,"group-name"],[1,"arrow"],[1,"group-intro"]],template:function(t,r){t&1&&h(0,GT,6,1,"div",0),t&2&&_(r.groups.length>0?0:-1);},styles:[".created-groups[_ngcontent-%COMP%]{width:240px;box-sizing:border-box;background:var(--dweb-bg-panel);border-radius:4px;padding:16px 16px 20px;margin-top:10px}.created-groups[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-family:PingFangSC-Regular,PingFang SC;font-weight:400;font-size:12px;color:gray;line-height:17px;margin:0}.created-groups[_ngcontent-%COMP%]   .group-list[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0}.created-groups[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]{padding:16px 4px;margin:0 -4px;border-radius:4px;cursor:pointer;border-bottom:1px solid var(--dweb-border-faint)}.created-groups[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]:last-child{border-bottom:none;padding-bottom:0}.created-groups[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]:hover{background:var(--dweb-bg-hover)}.created-groups[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-name-row[_ngcontent-%COMP%]{display:flex;align-items:center}.created-groups[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-name-row[_ngcontent-%COMP%]   .group-name[_ng
146content-%COMP%]{flex:1;min-width:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;font-size:14px;color:var(--dweb-text-body);line-height:20px;margin:0}.created-groups[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-name-row[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{flex-shrink:0;width:6px;height:6px;margin-left:8px;border-top:1.5px solid var(--dweb-text-muted);border-right:1.5px solid var(--dweb-text-muted);transform:rotate(45deg)}.created-groups[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-intro[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;margin-top:6px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;font-size:12px;color:var(--dweb-text-muted);line-height:17px}"]});let o=n;return o;})();function HT(o,n){o&1&&M(0,"i");}function UT(o,n){}function qT(o,n){o&1&&(s(0,"span"),g(1,"\u7B49\u5F85\u56DE\u7B54"),c());}function QT(o,n){if(o&1&&(s(0,"span"),g(1),c()),o&2){let i=d();l(),Gt("",i.topic.likes_count,"\u8D5E\uFF0C",i.topic.comments_count,"\u8BC4\u8BBA");}}var eh=(()=>{let n=class n{constructor(e){this.componentFactoryResolver=e;}ngOnInit(){this.topic.answer&&delete this.topic.answer,this.loadComponent();}loadComponent(){let e=this.getTopicContentItem(),t=this.topicContent.viewContainerRef;t.clear();let r=t.createComponent(e.component);r.instance.data=e.data,r.instance.fromWhere=e.fromWhere;}getTopicContentItem(){let e;return this.topic.type==="talk"?e=new We(En,this.topic,"footprint"):this.topic.type==="q&a"?e=new We(Li,this.topic,"footprint"):this.topic.type==="task"?e=new We(ni,this.topic,"preview"):this.topic.type==="solution"&&(e=new We(ii,this.topic,"preview")),e;}toTopicDetailPage(e,t){ne(`group/${e}/topic/${t}`);}toSEOPage(e){window.open(`${ie.SEO_GROUP_URL}${e}.html`);}};n.ɵfac=function(t){return new(t||n)(O(Wn));},n.ɵcmp=F({type:n,selectors:[["app-footprint-topic"]],viewQuery:function(t,r){if(t&1&&_e(Tt,7),t&2){let a;ee(a=te())&&(r.topicContent=a.first);}},inputs:{topic:[0,"topicData","topic"],isPrivate:"isPrivate"},standalone:!1,decls:13,vars:4,consts:[[1,"footprint-topic"],["mode","pure",3,"topicData"],["name","slot",1,"topic-group-info",3,"click"],["topic-content",""],[1,"topic-footer"],[3,"click"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"app-topic-header",1)(2,"div",2),f("click",function(){return r.toSEOPage(r.topic.group.group_id);}),h(3,HT,1,0,"i"),s(4,"span"),g(5),c()()(),qt(6,UT,0,0,"ng-template",3),s(7,"div",4),h(8,qT,2,0,"span")(9,QT,2,2,"span"),s(10,"span",5),f("click",function(){return r.toTopicDetailPage(r.topic.group.group_id,r.topic.topic_id);}),g(11,"\u4E3B\u9898\u8BE6\u60C5"),M(12,"i"),c()()()),t&2&&(l(),C("topicData",r.topic),l(2),_(r.isPrivate?3:-1),l(2),V("\u6765\u81EA\uFF1A",r.topic.group.name),l(3),_(r.topic.type==="q&a"&&!r.topic.answered?8:9));},dependencies:[pn,Tt],styles:['.footprint-topic[_ngcontent-%COMP%]{background-color:var(--dweb-bg-panel);margin-bottom:10px;border-radius:4px;padding:10px}.footprint-topic[_ngcontent-%COMP%]     .header-container .avatar{cursor:auto!important}.footprint-topic[_ngcontent-%COMP%]     .header-container .role{color:var(--dweb-info)!important;cursor:auto!important}.footprint-topic[_ngcontent-%COMP%]   .topic-group-info[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;font-family:PingFangSC-Regular;font-size:12px;color:var(--dweb-text-muted);position:relative;top:10px}.footprint-topic[_ngcontent-%COMP%]   .topic-group-info[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{width:12px;height:13px;margin-right:6px;background-image:url("./media/[email protected]");background-position:-335px -454px}.footprint-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;font-family:PingFangSC-Regular;font-size:12px;color:var(--dweb-text-faint);padding:5px 20px 5px 56px}.footprint-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:nth-child(2){cursor:pointer}
146.footprint-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-296px -197px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.footprint-topic[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}html[data-theme=dark][_nghost-%COMP%]   .footprint-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .footprint-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]{color:var(--dweb-text-faint)}html[data-theme=dark][_nghost-%COMP%]   .footprint-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:nth-child(2), html[data-theme=dark]   [_nghost-%COMP%]   .footprint-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:nth-child(2){color:currentColor}html[data-theme=dark][_nghost-%COMP%]   .footprint-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .footprint-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{background-color:currentColor;background-image:none!important;background-position:initial;background-repeat:no-repeat;-webkit-mask-image:url("./media/[email protected]");-webkit-mask-position:-296px -197px;-webkit-mask-repeat:no-repeat;mask-image:url("./media/[email protected]");mask-position:-296px -197px;mask-repeat:no-repeat}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){html[data-theme=dark][_nghost-%COMP%]   .footprint-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .footprint-topic[_ngcontent-%COMP%]   .topic-footer[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{-webkit-mask-image:url("./media/[email protected]");-webkit-mask-size:1024px 1057px;mask-image:url("./media/[email protected]");mask-size:1024px 1057px}}']});let o=n;return o;})();var th=(()=>{let n=class n{constructor(){}ngOnInit(){}toNoteDetailPage(e){ne(`note/${e}`);}handleReference(e){e.type==="note"?ne(`note/${this.note.referenced_note.note.note_id}`):e.type==="topic"&&ne(`group/${this.note.reference.topic.group.group_id}/topic/${this.note.reference.topic.topic_id}`);}};n.ɵfac=function(t){return new(t||n)();},n.ɵcmp=F({type:n,selectors:[["app-footprint-note"]],inputs:{note:[0,"noteData","note"]},standalone:!1,decls:9,vars:5,consts:[[1,"footprint-note"],[3,"noteData","disableOperation"],[3,"handle-reference","note"],[1,"note-footer"],[3,"click"]],template:function(t,r){t&1&&(s(0,"div",0),M(1,"app-note-header",1),s(2,"app-note-content",2),f("handle-reference",function(p){return r.handleReference(p);}),c(),s(3,"div",3)(4,"span"),g(5),c(),s(6,"span",4),f("click",function(){return r.toNoteDetailPage(r.note.note_id);}),g(7,"\u7B14\u8BB0\u8BE6\u60C5"),M(8,"i"),c()()()),t&2&&(l(),C("noteData",r.note)("disableOperation",!0),l(),C("note",r.note),l(3),Gt("",r.note.likes_count,"\u8D5E\uFF0C",r.note.comments_count,"\u8BC4\u8BBA"));},dependencies:[Pd,Md],styles:['.footprint-note[_ngcontent-%COMP%]{background-color:var(--dweb-bg-panel);margin-bottom:10px;border-radius:4px;padding:10px}.footprint-note[_ngcontent-%COMP%]     .header-container .avatar{cursor:auto!important}.footprint-note[_ngcontent-%COMP%]     .header-container .role{color:var(--dweb-info)!important;cursor:auto!important}.footprint-note[_ngcontent-%COMP%]   .note-group-info[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;font-family:PingFangSC-Regular;font-size:12px;color:var(--dweb-text-muted);position:relative;top:10px}.footprint-note[_ngcontent-%COMP%]   .note-group-info[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{width:12px;height:13px;margin-right:6px;background-image:url("./media/[email protected]");background-position:-335px -454px}.footprint-note[_ngcontent-%COMP%]   .note-footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;font-family:PingFangSC-Regular;font-size:12px;color:var(--dweb-text-faint);padding:5px 20px 5px 56px}.footprint-note[_ngcontent-%COMP%]   .note-footer[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:nth-child(2){cursor:pointer}.footprint-note[_ngcontent-%COMP%]   .note-footer[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-296px -197px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.footprint-note[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var JT=o=>({filter_group_active:o}),YT=o=>({" followed":o});function KT(o,n){o&1&&M(0,"span",7);}function ZT(o,n){if(o&1&&g(0),o&2){let i=d(2);V(" ",i.MatchHeadInfo.count,"\xA0\u6761\u516C\u5F00\u7B14\u8BB0 ");}}function e3(o,n){if(o&1&&g(0),o&2){let i=d(2);V(" \u5171\xA0",i.MatchHeadInfo.count,"\xA0\u6761\u5185\u5BB9 ");}}function t3(o,n){if(o&1){let i=y();s(0,"div",13),f("click",function(){let t=b(i).$implicit,r=d(3);return P(r.handleFilter(t));}),g(1),c();}if(o&2){let i=n.$implicit,e=d(3);C("ngClass",R(2,JT,e.isActive(i))),l(),V(" ",i.name," ");}}function n3(o,n){if(o&1&&(s(0,"div",11,0),B(2,t3,2,4,"div",12,Y),c()),o&2){let i=d(2);l(2),N(i.footFilters);}}function i3(o,n){if(o&1&&(s(0,"div",3)(1,"div",6),h(2,KT,1,0,"span",7),s(3,"span",8),g(4),c(),M(5,"span",9),c(),s(6,"div",10),h(7,ZT,1,1)(8,e3,1,1),c(),h(9,n3,4,0,"div",11),c()),o&2){let i=d();l(2),_(i.showRedTips?2:-1),l(2),A(i.MatchHeadInfo.name),l(3),_(!i.isLogin&&(i.currentFilter==null?null:i.currentFilter.filter)==="note"?7:8),l(2),_(i.showFilterContent&&i.footFilters.length>0?9:-1);}}function o3(o,n){o&1&&M(0,"app-skeleton");}function r3(o,n){if(o&1&&(s(0,"div",4),B(1,o3,1,0,"app-skeleton",null,Y),c()),o&2){let i=d();l(),N(i.skeletonArray);}}function a3(o,n){o&1&&(s(0,"div",14),M(1,"div",15),s(2,"span"),g(3,"\u5BF9\u65B9\u5DF2\u8BBE\u7F6E\uFF0C\u6682\u65E0\u6CD5\u67E5\u770B"),c()());}function s3(o,n){if(o&1&&M(0,"app-footprint-topic",20),o&2){let i=d().$implicit,e=d(4);C("topicData",i.topic)("isPrivate",e.isPrivate(i.topic.group.group_id));}}function c3(o,n){if(o&1&&M(0,"app-footprint-note",21),o&2){let i=d().$implicit;C("noteData",i.note);}}function l3(o,n){if(o&1&&(h(0,s3,1,2,"app-footprint-topic",20),h(1,c3,1,1,"app-footprint-note",21)),o&2){let i=n.$implicit;_(i.type==="topic"?0:-1),l(),_(i.type==="note"?1:-1);}}function p3(o,n){if(o&1){let i=y();s(0,"app-lottie-loading",22),f("infinite",function(){b(i);let t=d(4);return P(t.getFootprintTopics());}),g(1," \u8DB3\u8FF9\u52A0\u8F7D\u4E2D... "),c();}}function d3(o,n){o&1&&(s(0,"div",18),g(1,"\u6CA1\u6709\u66F4\u591A\u4E86"),c());}function g3(o,n){if(o&1&&(s(0,"div",17),B(1,l3,2,2,null,null,Y),c(),h(3,p3,2,0,"app-lottie-loading"),h(4,d3,2,0,"div",18),s(5,"div",19),M(6,"div",15),c()),o&2){let i=d(3);l(),N(i.footprints),l(2),_(i.noMoreTopic?-1:3),l(),_(i.noMoreTopic?4:-1);}}function u3(o,n){if(o&1&&(s(0,"div",16),M(1,"i",15),s(2,"span"),g(3),c()()),o&2){let i=d(3);l(3),A(i.MatchHeadInfo.count>0?"\u56E0\u5BF9\u65B9\u8BBE\u7F6E\uFF0C\u90E8\u5206\u5185\u5BB9\u4E0D\u53EF\u89C1":"\u7528\u6237\u6CA1\u6709\u53D1\u8868\u8FC7\u4EFB\u4F55\u5185\u5BB9");}}function m3(o,n){if(o&1&&h(0,g3,7,2)(1,u3,4,1,"div",16),o&2){let i=d(2);_(i.footprints.length>0?0:1);}}function h3(o,n){if(o&1&&h(0,a3,4,0,"div",14)(1,m3,2,1),o&2){let i=d();_(i.isBlock?0:1);}}function _3(o,n){if(o&1&&(s(0,"span",27),g(1),c()),o&2){let i=d(2);l(),V("\u77E5\u8BC6\u53F7\uFF1A",i.userInfo.user.unique_id);}}function f3(o,n){if(o&1){let i=y();s(0,"div",42),f("debounceClick",function(){b(i);let t=d(3);return P(t.setFollow(t.userInfo.user_specific.followed));}),g(1),c();}if(o&2){let i=d(3);C("ngClass",R(2,YT,i.userInfo.user_specific.followed)),l(),V(" ",i.userInfo.user_specific.followed?"\u5DF2\u5173\u6CE8":"\u52A0\u5173\u6CE8"," ");}}function C3(o,n){if(o&1){let i=y();s(0,"div",43),f("click",function(){b(i);let t=d(3);
146return P(t.goChat());}),g(1,"\u79C1\u4FE1"),c();}}function x3(o,n){if(o&1&&(s(0,"div",29),h(1,f3,2,4,"div",40),h(2,C3,2,0,"div",41),c()),o&2){let i=d(2);l(),_(i.userInfo.accounts?-1:1),l(),_(i.showChatEnter?2:-1);}}function v3(o,n){if(o&1&&(s(0,"div",30),g(1),c()),o&2){let i=d(2);l(),A(i.userInfo.user.introduction);}}function b3(o,n){if(o&1){let i=y();s(0,"div",36)(1,"p"),g(2),c(),s(3,"a",44),f("click",function(){b(i);let t=d(2);return P(t.openLoginTab());}),g(4,"\u767B\u5F55"),c()();}if(o&2){let i=d(2);l(2),V("\u767B\u5F55\u5373\u53EF\u5173\u6CE8 ",i.userInfo==null||i.userInfo.user==null?null:i.userInfo.user.name,"\uFF0C\u4E0D\u9519\u8FC7 ta \u7684\u6700\u65B0\u7B14\u8BB0");}}function P3(o,n){if(o&1&&(s(0,"div",49),g(1),c()),o&2){let i=d(3);l(),V("\u6709\u6548\u671F\uFF1A",i.groupValidityTime);}}function M3(o,n){o&1&&(s(0,"div",50),g(1,"\u52A0\u5165\u661F\u7403 72 \u5C0F\u65F6\u5185\u65E0\u6761\u4EF6\u9000\u6B3E"),c());}function O3(o,n){if(o&1&&(s(0,"div",38)(1,"div",45),g(2,"\u5FAE\u4FE1\u626B\u7801\u52A0\u5165\uFF0C\u67E5\u770B\u5B8C\u6574\u5185\u5BB9"),c(),s(3,"div",46),g(4),c(),s(5,"div",47),M(6,"img",48),c(),h(7,P3,2,1,"div",49),h(8,M3,2,0,"div",50),c()),o&2){let i=d(2);l(4),V("\u8FD8\u6709 ",i.groupTopicsCount," \u7BC7\u4F18\u8D28\u5185\u5BB9\u5F85\u89E3\u9501"),l(2),C("src",i.groupJoinQrCode,se),l(),_((i.currentGroupDetail==null?null:i.currentGroupDetail.type)==="pay"&&i.groupValidityTime?7:-1),l(),_((i.currentGroupDetail==null?null:i.currentGroupDetail.type)==="pay"?8:-1);}}function w3(o,n){if(o&1&&M(0,"img",52),o&2){let i=d(3);C("src",i.downloadAppQrcodeUrl,se);}}function y3(o,n){if(o&1&&(s(0,"div",39)(1,"div",51),h(2,w3,1,1,"img",52),s(3,"div",46)(4,"div",45),g(5,"\u626B\u7801\u4F7F\u7528\u77E5\u8BC6\u661F\u7403 App"),c(),s(6,"ul",53)(7,"li"),g(8,"\u67E5\u770B\u4F60\u4E0E\u4ED6\u4EBA\u7684\u300C\u5173\u6CE8\u5217\u8868\u300D"),c(),s(9,"li"),g(10,"\u67E5\u770B\u4F60\u300C\u53D1\u5E03\u3001\u4E92\u52A8\u300D\u8FC7\u7684\u5185\u5BB9"),c()()()()()),o&2){let i=d(2);l(2),_(i.downloadAppQrcodeUrl?2:-1);}}function k3(o,n){if(o&1&&(s(0,"div",5)(1,"div",23)(2,"div",24),M(3,"img",25),s(4,"h1",26),g(5),$(6,"filterRLOLRO"),c(),h(7,_3,2,1,"span",27),s(8,"span",28),g(9),c(),h(10,x3,3,2,"div",29),h(11,v3,2,1,"div",30),c(),s(12,"div",31)(13,"div",32)(14,"span",33),g(15),c(),s(16,"span",34),g(17),c()(),s(18,"div",35)(19,"span",33),g(20),c(),s(21,"span",34),g(22),c()()()(),h(23,b3,5,1,"div",36),M(24,"app-footprint-created-groups",37),h(25,O3,9,4,"div",38),h(26,y3,11,1,"div",39),c()),o&2){let i=d();l(3),C("src",i.userInfo.user.avatar_url,se),l(2),A(Z(6,17,i.userInfo.user.n
146ame)),l(2),_(i.userInfo.user.unique_id&&i.uidVisible?7:-1),l(2),V("IP\u5C5E\u5730\uFF1A",i.userInfo.user.location),l(),_(i.isLogin?10:-1),l(),_(!i.isLogin&&i.userInfo.user.introduction?11:-1),l(4),A(i.count.followee),l(2),V("",i.userInfo.accounts?"\u6211":"\u4ED6","\u5173\u6CE8\u7684\u4EBA"),l(3),A(i.count.follower),l(2),V("\u5173\u6CE8",i.userInfo.accounts?"\u6211":"\u4ED6","\u7684\u4EBA"),l(),_(i.isLogin?-1:23),l(),C("groups",i.createdGroups)("isSelf",i.isSelf)("isLogin",i.isLogin)("footprintUserId",i.userId),l(),_(i.needPay&&i.currentFilter!=null&&i.currentFilter.filter_group_id&&i.groupJoinQrCode?25:-1),l(),_(i.showDownloadAppQrCode?26:-1);}}var nh=(()=>{let n=class n{get isLogin(){return!!this.indexService.hasUserInfo();}get isSelf(){return this.currentUserId===this.userId;}get isBlock(){return this.isBlocked&&this.currentFilter.name==="\u661F\u7A7A\u7B14\u8BB0";}constructor(e,t,r,a,p,m,v){this.route=e,this.footprintService=t,this.indexService=r,this.message=a,this.http=p,this.titleService=m,this.meta=v,this.subscriptions=[],this.count={topics:0,followee:0,follower:0,notes:0},this.myFolloweesCount=0,this.groupOptions={},this.footFilters=[],this.footGroups=[],this.createdGroups=[],this.footprints=[],this.skeletonArray=[1,2,3,4],this.isLoading=!0,this.showRedTips=!1,this.noMoreTopic=!1,this.currentUserId=Number(this.indexService.getSelfInfo("user_id")),this.province="",this.showFilterContent=!1,this.isBlocked=!1,this.uidVisible=!0,this.showChatEnter=!1,this.showDownloadAppQrCode=!1,this.downloadAppQrcodeUrl="",this.groupJoinQrCode="",this.currentGroupDetail=null,this.userPublicInfo=null,this.guestNotesEndTime="";}onDocumentClick(e){let t=e.target,r=document.querySelector(".footprint .head_left");if(t===r||r.contains(t)){this.showFilterContent=!this.showFilterContent,this.setRedTips("click");return;}
146if(this.showFilterContent){let a=document.querySelector(".footprint .filter-content");t===a||r.contains(t)||(this.showFilterContent=!1);}}ngOnInit(){this.setRedTips(),document.body.scrollTop=document.documentElement.scrollTop=0,this.userId=Number(this.route.snapshot.paramMap.get("user_id")),this.currentGroupId=Number(this.route.snapshot.queryParams.group_id),this.initialFilter=this.route.snapshot.queryParams.filter,this.handleFilter(),this.fetchData(),this.doSubscribe(),this.setSensors(),this.isLogin?this.checkDownloadAppQrcodeStatus():(this.storageHandler=e=>{e.key==="user_id"&&e.newValue&&window.location.reload();},window.addEventListener("storage",this.storageHandler));}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe()),this.storageHandler&&window.removeEventListener("storage",this.storageHandler);}showChat(e){var v,x,w;if(this.currentUserId===this.userId)return;let r=e.owner.user_id===this.currentUserId,a=(v=e.partner_ids)==null?void 0:v.includes(this.currentUserId),p=(x=e.admin_ids)==null?void 0:x.includes(this.currentUserId),m=(w=e.guest_ids)==null?void 0:w.includes(this.currentUserId);this.showChatEnter=r||a||p||m||e.policies.allow_private_chat;}goChat(){ne(`/chat/${this.userId}?group_id=${this.currentGroupId}`);}fetchData(){if(this.footprintService.getCreatedGroups(this.userId),!this.isLogin){this.footprintService.getUserPublicInfo(String(this.userId)),this.footprintService.getGuestNotes(this.userId),this.footprintService.getFootGroups(this.userId);return;}if(this.currentUserId===this.userId?this.footprintService.getStatistics(localStorage.getItem("user_id"),this.userId):this.footprintService.getStatistics(this.userId,this.userId),this.currentUserId===this.userId)this.footprintService.getGroups();else{let e=JSON.parse(localStorage.getItem("target_group")),t=this.currentGroupId||(e==null?void 0:e.group_id);t&&this.footprintService.getGroup(t);}this.footprintService.getUserInfo(this.userId),this.footprintService.getFootprint(this.userId,"",this.currentFilter.group_id,this.currentFilter.filter,this.currentFilter.filter_group_id),this.footprintService.getFootGroups(this.userId,this.currentFilter.group_id);}doSubscribe(){let e=this.footprintService.userInfo$.subscribe(S=>{this.userInfo=S,this.setMetaTags(S.user.name,S.user.introduction);}),t=this.footprintService.userStatistics$.subscribe(S=>{this.count.topics=S.statistics.topics_count?S.statistics.topics_count:0,this.count.notes=S.statistics.notes_count?S.statistics.notes_count:0,S.id===this.currentUserId&&(this.myFolloweesCount=S.statistics.followees_count),(this.userId===this.currentUserId||S.id!==this.currentUserId)&&(this.count.followee=S.statistics.followees_count,this.count.follower=S.statistics.followers_count),this.upDatefootFilters();}),r=this.footprintService.groups$.subscribe(S=>{S.forEach(E=>{this.groupOptions[E.group_id]=E.user_specific.enable_footprint;});}),a=this.footprintService.footPrint$.subscribe(S=>{if(this.isLoading=!1,S==="block")this.isBlocked=!0;else if(S&&S.length>0){let E=S[S.length-1];E.type==="topic"?this.footprintEndTime=mt(E.topic.create_time):E.type==="note"&&(this.footprintEndTime=mt(E.note.create_time)),this.footprints=this.footprints.concat(S);}else this.noMoreTopic=!0;this.infiniteFinishCallback&&this.infiniteFinishCallback(this.noMoreTopic);}),p=this.footprintService.isFollowed$.subscribe(S=>{this.userInfo.user_specific.followed=S;}),m=this.footprintService.footGroup$.subscribe(S=>{this.footGroups=S,this.upDatefootFilters();}),v=this.footprintService.createdGroups$.subscribe(S=>{this.createdGroups=S;}),x=this.footprintService.group$.subscribe(S=>{var D,L,J;this.showChat(S);let E=(D=S.partner_ids)==null?void 0:D.includes(this.userId),I=(L=S.admin_ids)==null?void 0:L.includes(this.userId),T=(J=S.guest_ids)==null?void 0:J.includes(this.userId);this.uidVisible=S.policies.hide_member_group_and_account?E||I||T:!0,this.currentGroupDetail=S,this.generateGroupQrCode(S.group_id);}),w=this.footprintService.userPublicInfo$.subscribe(S=>{this.userPublicInfo=S,this.count.notes=S.notes_count||0,this.count.followee=S.followees_count||0,this.count.follower=S.followers_count||0,this.userInfo={user:{user_id:this.userId,name:S.name,avatar_url:S.avatar_url,unique_id:S.unique_id,location:S.location,introduction:S.introduction},user_specific:{followed:!1}},this.setMetaTags(S.name,S.introduction),this.upDatefootFilters();}),k=this.footprintService.guestNotes$.subscribe(S=>{this.isLoading=!1,S&&S.length>0?(this.guestNotesEndTime=mt(S[S.length-1].create_time),this.footprints=this.footprints.concat(S.map(E=>({type:"note",note:E})))):this.noMoreTopic=!0,this.infiniteFinishCallback&&this.infiniteFinishCallback(this.noMoreTopic);});this.subscriptions.push(e,t,r,a,p,m,x,w,k,v);}getFootprintTopics(e=null){this.infiniteFinishCallback=e,!this.isLogin&&this.currentFilter.filter==="note"?this.footprintService.getGuestNotes(this.userId,this.guestNotesEndTime):this.footprintService.getFootprint(this.userId,this.footprintEndTime,this.currentFilter.group_id,this.currentFilter.filter,this.currentFilter.filter_group_id);}isPrivate(e){return this.currentUserId===this.userId?!this.groupOptions[e]:!1;}setFollow(e){!e&&this.myFolloweesCount>=800?this.message.info({content:"\u53EF\u5173\u6CE8\u4EBA\u6570\u5DF2\u8FBE\u4E0A\u9650\uFF0C\u65E0\u6CD5\u7EE7\u7EED\u5173\u6CE8"}):this.footprintService.setFollow(this.userId,e);}setSensors(){$e("FootprintView_Visit",{page_type:this.isLogin?"N
146ormal":"Visitor",footprint_user_id:this.userId},!this.isLogin);}setRedTips(e){let t=new Date().getTime()-new Date(2024,6,1).getTime()<1728e6;if(e){this.showRedTips=!1,t?localStorage.setItem("showRedTips","hide"):localStorage.removeItem("showRedTips");return;}localStorage.getItem("showRedTips")?this.showRedTips=localStorage.getItem("showRedTips")==="show":t&&(this.showRedTips=!0,localStorage.setItem("showRedTips","show"));}upDatefootFilters(){let e=this.footGroups.map(t=>({group_id:this.currentGroupId,count:t.member_topics_count,name:t.name,filter_group_id:t.group_id,filter:"group"}));this.footFilters=[{name:"\u5168\u90E8\u661F\u7403",group_id:this.currentGroupId,count:this.count.topics,specialFlag:"allGroup"},{name:"\u661F\u7A7A\u7B14\u8BB0",group_id:this.currentGroupId,filter:"note",count:this.count.notes,specialFlag:"starNote"},...e];}setMetaTags(e,t){this.titleService.setTitle(`${e} - \u661F\u7A7A\u7B14\u8BB0`),this.meta.updateTag({name:"keywords",content:e}),this.meta.updateTag({name:"description",content:t||e});}openLoginTab(){Lp();}handleFilter(e){if(!e){if(this.initialFilter==="note"||!this.isLogin){this.currentFilter={group_id:this.currentGroupId,filter:"note",specialFlag:"starNote"};return;}this.currentGroupId?this.currentFilter={group_id:this.currentGroupId,filter:"group",filter_group_id:this.currentGroupId}:this.currentFilter={group_id:this.currentGroupId,specialFlag:"allGroup"};return;}if(!this.isLogin&&e.specialFlag!=="starNote"){this.openLoginTab();return;}this.currentFilter=e,this.footprints=[],this.isLoading=!0,this.noMoreTopic=!1,!this.isLogin&&e.filter==="note"?(this.guestNotesEndTime="",this.footprintService.getGuestNotes(this.userId)):this.footprintService.getFootprint(this.userId,"",this.currentFilter.group_id,this.currentFilter.filter,this.currentFilter.filter_group_id),this.currentUserId!==this.userId&&(this.currentFilter.filter_group_id?this.footprintService.getGroup(this.currentFilter.filter_group_id):(this.groupJoinQrCode="",this.currentGroupDetail=null));}get MatchHeadInfo(){return this.currentFilter.filter==="note"?this.footFilters[1]||{}:this.currentFilter.filter_group_id?this.footFilters.find(e=>e.filter_group_id===this.currentFilter.filter_group_id)||{}:this.footFilters[0]||{};}isActive(e){return e.specialFlag==="allGroup"&&e.specialFlag===this.currentFilter.specialFlag||e.specialFlag==="starNote"&&e.specialFlag===this.currentFilter.specialFlag?!0:e.filter_group_id&&e.filter_group_id===this.currentFilter.filter_group_id;}generateGroupQrCode(e){if(!e)return;let t=document.referrer.includes("/recommend-topics"),r=`${ie.MWEB_URL}joingroup/join_group.html?group_id=${e}&direct_join=true`;t&&(r+="&source=recommend_topic&sensors_source=DWebRecommendTopic");let a={margin:0,width:200,height:200};Dl.default.toDataURL(r,a).then(p=>{this.groupJoinQrCode=p;}).catch(p=>{console.error("\u751F\u6210\u661F\u7403\u4E8C\u7EF4\u7801\u5931\u8D25",p);});}get needPay(){var e,t,r;return((e=this.currentGroupDetail)==null?void 0:e.type)==="pay"&&((r=(t=this.currentGroupDetail)==null?void 0:t.user_specific)==null?void 0:r.paid)===!1;}get groupValidityTime(){return oa(this.currentGroupDetail);}get groupTopicsCount(){var e,t,r;return jp(((r=(t=(e=this.currentGroupDetail)==null?void 0:e.statistics)==null?void 0:t.topics)==null?void 0:r.topics_count)||0);}checkDownloadAppQrcodeStatus(){if(this.route.snapshot.queryParamMap.get("force_download_app_qrcode")){this.generateDownloadAppQrcode(),this.showDownloadAppQrCode=!0;return;}this.http.get(j.selfLoginInfo).subscribe(t=>{var r,a;if(t.succeeded&&(a=(r=t.resp_data)==null?void 0:r.app)!=null&&a.last_login_time){let p=ge(t.resp_data.app.last_login_time);fn(new Date(),p)>30?(this.showDownloadAppQrCode=!0,this.generateDownloadAppQrcode()):this.showDownloadAppQrCode=!1;}else this.showDownloadAppQrCode=!0,this.generateDownloadAppQrcode();});}generateDownloadAppQrcode(){return ye(this,null,function*(){let e="https://t.zsxq.com/app/?qrcode=1",t={margin:0,width:200,height:200};try{this.downloadAppQrcodeUrl=yield Dl.default.toDataURL(e,t);}catch(r){console.error("Error generating download app QR code:",r);}});}closeDownloadAppQrcode(){this.showDownloadAppQrCode=!1;}};n.ɵfac=function(t){return new(t||n)(O(ke),O(md),O(q),O(le),O(W),O(Jn),O(Xr));},n.ɵcmp=F({type:n,selectors:[["app-footprint"]],hostBindings:function(t,r){t&1&&f("click",function(p){return r.onDocumentClick(p);},wt);},standalone:!1,decls:6,vars:3,consts:[["filterContent",""],[1,"footprint"],[1,"footprint-main"],[1,"head"],[1,"skeleton-container"],[1,"user-info"],[1,"head_left"],[1,"red_tips"],[2,"cursor","pointer","user-select","none"],[1,"select_icon"],[1,"head_right"],[1,"filter-content"],[3,"ngClass"],[3,"click","ngClass"],[1,"n
146ote-block"],[1,"icon"],[1,"no-data"],[1,"footprint-topics"],[1,"no-more"],["id","js-gotop","goto-top","",1,"go-top-btn"],[3,"topicData","isPrivate"],[3,"noteData"],[3,"infinite"],[1,"user-info-wrapper"],[1,"user"],[3,"src"],[1,"name"],[1,"unique"],[1,"ip"],[1,"handle-button"],[1,"description"],[1,"follower"],[1,"active"],[1,"count"],[1,"text"],[1,"passive"],[1,"guest-login-tip"],[3,"groups","isSelf","isLogin","footprintUserId"],[1,"join-group"],[1,"download-app-qrcode"],[1,"follow-btn",3,"ngClass"],[1,"chat"],[1,"follow-btn",3,"debounceClick","ngClass"],[1,"chat",3,"click"],[1,"login-btn",3,"click"],[1,"title"],[1,"desc"],[1,"qr-code-wrapper"],["alt","\u52A0\u5165\u661F\u7403\u4E8C\u7EF4\u7801",3,"src"],[1,"valid-time"],[1,"tips"],[1,"content"],["alt","\u4E0B\u8F7DApp\u4E8C\u7EF4\u7801",1,"qr-code-icon",3,"src"],[1,"features"]],template:function(t,r){t&1&&(s(0,"div",1)(1,"div",2),h(2,i3,10,4,"div",3),h(3,r3,3,0,"div",4)(4,h3,2,1),c(),h(5,k3,27,19,"div",5),c()),t&2&&(l(2),_(r.footFilters.length>0?2:-1),l(),_(r.isLoading?3:4),l(2),_(r.userInfo?5:-1));},dependencies:[K,ma,Ae,Qe,ve,ht,Zm,eh,th,Oo],styles:['@charset "UTF-8";.footprint[_ngcontent-%COMP%]{padding-top:60px;margin:0 auto;width:1050px}.footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]{width:800px}.footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{width:100%;height:40px;background:var(--dweb-bg-panel);border-radius:4px 4px 0 0;padding:0 20px;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;border-bottom:1px solid var(--dweb-border-faint);position:relative}.footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .head_left[_ngcontent-%COMP%]{font-family:PingFangSC,PingFang SC;font-weight:500;font-size:12px;color:var(--dweb-text-secondary);display:flex;height:auto;align-items:center;position:relative}.footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .head_left[_ngcontent-%COMP%]   .red_tips[_ngcontent-%COMP%]{width:6px;height:6px;background:linear-gradient(315deg,#fd471a,#ff8760);border-radius:8px;position:absolute;left:-12px}.footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .head_left[_ngcontent-%COMP%]   .select_icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]");background-position:-164px -243px;width:16px;height:6px;margin-left:6px;cursor:pointer}.footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .head_right[_ngcontent-%COMP%]{font-family:PingFangSC,PingFang SC;font-weight:400;font-size:12px;color:var(--dweb-text-muted)}.footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .filter-content[_ngcontent-%COMP%]{position:absolute;top:100%;left:0;z-index:2;width:360px;max-height:543px;background:var(--dweb-bg-panel);box-shadow:-5px 6px 12px 0 var(--dweb-border-faint);padding:24px;border-radius:4px;border:1px solid var(--dweb-border-faint);box-sizing:border-box;overflow-y:auto;display:grid;grid-template-columns:repeat(2,1fr);row-gap:12px;column-gap:20px}.footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .filter-content[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;font-family:PingFangSC,PingFang SC;font-weight:500;font-size:13px;color:var(--dweb-text-secondary);cursor:pointer;transition:color .5s}.footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .filter-content[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:hover, .footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .filter-content[_ngcontent-%COMP%]   div.filter_group_active[_ngcontent-%COMP%]{color:var(--dweb-brand)}.footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]     .footprint-topics app-footprint-topic:first-child .footprint-topic{border-radius:0 0 4px 4px}.footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]   .no-more[_ngcontent-%COMP%]{padding:20px 0;text-align:center;font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}.footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%], .footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]   .note-block[_ngcontent-%COMP%]{background-color:var(--dweb-bg-panel);padding:86px 0;color:var(--dweb-text-faint-legacy);display:flex;flex-direction:column;align-items:center;border-radius:4px}.footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .footprint[_ngcontent-%COMP%]   .footprint-main[_ngcontent-%COMP%]   .note-block[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:87px;height:71px;background-image:url("./media/[email protected]");background-position:-87px -929px;margin-bottom:15px}.footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]{width:240px;position:fixed;margin-left:810px;top:60px;max-height:calc(100vh - 60px);padding-bottom:20px;overflow-y:auto;scrollbar-width:none}.footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .user-info-wrapper[_ngcontent-%COMP%]{border-radius:4px;background-color:var(--dweb-bg-panel);padding:20px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;border-bottom:1px solid var(--dweb-border-faint);padding-bottom:20px}.footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:60px;height:60px;background-color:var(--dweb-bg-subtle);border-radius:50%;margin-bottom:16px}.footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-family:PingFangSC-Medium;font-size:18px;color:var(--dweb-text-primary);font-weight:400;margin:0}.footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]   .unique[_ngcontent-%COMP%]{font-family:PingFangSC-Regular;font-size:12px;color:var(--dweb-text-muted);margin-top:8px}.footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]   .ip[_ngcontent-%COMP%]{height:20px;padding:2px 5px;background:#c5c6cb1a;border-radius:4px;margin-top:8px;font-size:12px;text-align:center;color:var(--dweb-text-muted);line-height:20px}.footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]   .handle-button[_ngcontent-%COMP%]{margin-top:20px;
146display:flex;justify-content:center}.footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]   .handle-button[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:first-child){margin-left:8px}.footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]   .handle-button[_ngcontent-%COMP%]   .follow-btn[_ngcontent-%COMP%]{cursor:pointer;width:90px;height:32px;line-height:32px;text-align:center;background:var(--dweb-brand);border-radius:16px;font-family:PingFangSC-Medium;font-size:13px;color:#fff}.footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]   .handle-button[_ngcontent-%COMP%]   .follow-btn.followed[_ngcontent-%COMP%]{background:#8b8e9d14;color:var(--dweb-text-placeholder)}.footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]   .handle-button[_ngcontent-%COMP%]   .chat[_ngcontent-%COMP%]{cursor:pointer;width:90px;height:32px;line-height:32px;text-align:center;border-radius:16px;font-family:PingFangSC-Medium;font-size:13px;color:var(--dweb-text-body);border:1px solid rgba(197,198,203,.48);box-sizing:border-box}.footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{margin-top:18px;font-size:14px;color:var(--dweb-text-secondary)}.footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .follower[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-top:20px}.footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .follower[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%], .footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .follower[_ngcontent-%COMP%]   .passive[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;align-items:center;font-family:PingFangSC-Medium}.footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .follower[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%], .footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .follower[_ngcontent-%COMP%]   .passive[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]{font-size:16px;color:var(--dweb-text-primary);margin-bottom:4px}.footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .follower[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%], .footprint[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .follower[_ngcontent-%COMP%]   .passive[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:13px;color:var(--dweb-text-muted)}.footprint[_ngcontent-%COMP%]   .guest-login-tip[_ngcontent-%COMP%]{background:linear-gradient(180deg,var(--dweb-bg-success-tint) 0%,var(--dweb-bg-panel) 100%);border-radius:4px;border:2px solid #FFFFFF;padding:24px;margin-top:10px;text-align:center}.footprint[_ngcontent-%COMP%]   .guest-login-tip[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px;color:var(--dweb-text-primary);line-height:20px;margin-bottom:16px}.footprint[_ngcontent-%COMP%]   .guest-login-tip[_ngcontent-%COMP%]   .login-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;height:40px;background:var(--dweb-brand);border-radius:12px;font-size:16px;color:#fff;font-weight:500;font-size:15px;cursor:pointer}.footprint[_ngcontent-%COMP%]   .join-group[_ngcontent-%COMP%]{width:240px;box-sizing:border-box;background:linear-gradient(180deg,var(--dweb-bg-success-tint) 0%,var(--dweb-bg-panel) 100%);border-radius:4px;border:2px solid #FFFFFF;padding:24px 20px;margin-top:10px;margin-bottom:10px;display:flex;flex-direction:column;align-items:center;text-align:center;font-family:PingFangSC-Regular}.footprint[_ngcontent-%COMP%]   .join-group[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-family:PingFangSC,PingFang SC;font-weight:500;font-size:14px;color:var(--dweb-text-primary);margin-bottom:8px}.footprint[_ngcontent-%COMP%]   .join-group[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{font-size:13px;color:var(--dweb-brand);margin-bottom:24px}.footprint[_ngcontent-%COMP%]   .join-group[_ngcontent-%COMP%]   .qr-code-wrapper[_ngcontent-%COMP%]{width:120px;height:120px;margin-bottom:24px}.footprint[_ngcontent-%COMP%]   .join-group[_ngcontent-%COMP%]   .qr-code-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%}.footprint[_ngcontent-%COMP%]   .join-group[_ngcontent-%COMP%]   .valid-time[_ng
146content-%COMP%]{font-size:13px;color:var(--dweb-text-secondary);margin-bottom:6px}.footprint[_ngcontent-%COMP%]   .join-group[_ngcontent-%COMP%]   .tips[_ngcontent-%COMP%]{font-size:13px;color:var(--dweb-danger)}.footprint[_ngcontent-%COMP%]   .download-app-qrcode[_ngcontent-%COMP%]{width:240px;box-sizing:border-box;background:linear-gradient(180deg,var(--dweb-bg-success-tint) 0%,var(--dweb-bg-panel) 100%);border-radius:4px;border:2px solid #FFFFFF;padding:40px 20px 32px;margin-top:10px;margin-bottom:10px}.footprint[_ngcontent-%COMP%]   .download-app-qrcode[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.footprint[_ngcontent-%COMP%]   .download-app-qrcode[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .qr-code-icon[_ngcontent-%COMP%]{width:100px;height:100px;flex-shrink:0;margin-bottom:20px}.footprint[_ngcontent-%COMP%]   .download-app-qrcode[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{width:100%}.footprint[_ngcontent-%COMP%]   .download-app-qrcode[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-family:PingFangSC,PingFang SC;font-weight:500;font-size:14px;color:var(--dweb-text-primary);line-height:20px;margin-bottom:16px;text-align:center}.footprint[_ngcontent-%COMP%]   .download-app-qrcode[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   .features[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0}.footprint[_ngcontent-%COMP%]   .download-app-qrcode[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   .features[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-family:PingFangSC,PingFang SC;font-weight:400;font-size:13px;color:var(--dweb-text-secondary);line-height:20px;position:relative;padding-left:12px}.footprint[_ngcontent-%COMP%]   .download-app-qrcode[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   .features[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:"\\b7";position:absolute;left:0;color:var(--dweb-text-secondary)}.footprint[_ngcontent-%COMP%]   .go-top-btn[_ngcontent-%COMP%]{margin-left:810px!important}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.footprint-topic[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .select_icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}html[data-theme=dark][_nghost-%COMP%]   .footprint[_ngcontent-%COMP%]   .join-group[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .footprint[_ngcontent-%COMP%]   .join-group[_ngcontent-%COMP%]{border-color:var(--dweb-border-strong)}']});let o=n;return o;})();function S3(o,n){o&1&&M(0,"app-skeleton");}function T3(o,n){if(o&1&&(s(0,"div",8),B(1,S3,1,0,"app-skeleton",null,Y),c()),o&2){let i=d();l(),N(i.skeletonArray);}}function E3(o,n){o&1&&(s(0,"div",13),g(1,"\u6CA1\u6709\u66F4\u591A\u4E86"),c());}function D3(o,n){if(o&1){let i=y();s(0,"app-joined-group-topic",12),f("handle-favorites",function(t){b(i);let r=d();return P(r.cancelFavorites(t));}),h(1,E3,2,0,"div",13),c();}if(o&2){let i=d();C("topics",i.favorites),l(),_(i.noMoreTopic?1:-1);}}function I3(o,n){if(o&1){let i=y();s(0,"app-lottie-loading",14),f("infinite",function(t){b(i);let r=d();return P(r.getMoreFavorites(t));}),g(1," \u6536\u85CF\u52A0\u8F7D\u4E2D... "),c();}}var ih=(()=>{let n=class n{constructor(e,t){this.myFavoritesService=e,this.indexService=t,this.isLoading=!0,this.skeletonArray=[1,2,3,4],this.favorites=[],this.noContent=!1,this.noMoreTopic=!1,this.infiniteFinishCallback=null;}ngOnInit(){this.doSubscribe(),this.myFavoritesService.favorEndTime="",this.getMoreFavorites();}ngAfterViewInit(){this.indexService.currentList="myFavorites";}doSubscribe(){this.myFavoritesService.favorites$.subscribe(e=>{this.isLoading=!1,e&&e.length>0?this.favorites=this.favorites.concat(e):this.noMoreTopic=!0,this.infiniteFinishCallback&&this.infiniteFinishCallback(this.noMoreTopic);}),this.myFavoritesService.refresh$.subscribe(e=>{let t=this.favorites.findIndex(r=>r.topic.topic_id===e);this.favorites.splice(t,1);});}getMoreFavorites(e=null){this.myFavoritesService.getMyFavorites(this.myFavoritesService.favorEndTime),this.infiniteFinishCallback=e;}cancelFavorites({topicId:e,index:t}){this.myFavoritesService.cancelFavorites(e),this.favorites.splice(t,1);}}
146;n.ɵfac=function(t){return new(t||n)(O(Ja),O(q));},n.ɵcmp=F({type:n,selectors:[["app-my-favorites"]],standalone:!1,decls:16,vars:2,consts:[[1,"my-favorites","topic-flow-container"],[1,"left"],["routerLink","/group/init",1,"index","item"],[1,"home-icon"],[1,"text"],[1,"favorites","item"],[1,"favorites-icon"],[1,"favorites-main"],[1,"skeleton-container",2,"margin-top","10px"],["aTitle","\u6211\u7684\u6536\u85CF",3,"topics"],["id","js-gotop","goto-top","",1,"go-top-btn"],[1,"icon"],["aTitle","\u6211\u7684\u6536\u85CF",3,"handle-favorites","topics"],[1,"no-more"],[3,"infinite"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1)(2,"a",2),M(3,"div",3),s(4,"div",4),g(5,"\u661F\u7403\u9996\u9875"),c()(),s(6,"div",5),M(7,"div",6),s(8,"div",4),g(9,"\u6211\u7684\u6536\u85CF"),c()()(),s(10,"div",7),h(11,T3,3,0,"div",8)(12,D3,2,2,"app-joined-group-topic",9),h(13,I3,2,0,"app-lottie-loading"),s(14,"div",10),M(15,"div",11),c()()()),t&2&&(l(11),_(r.isLoading?11:12),l(2),_(!r.noMoreTopic&&!r.isLoading?13:-1));},dependencies:[lt,Ae,Qe,ve,Qi,ht],styles:['.my-favorites[_ngcontent-%COMP%]{width:1906px;padding-top:50px;padding-bottom:32px;margin:0 auto}.my-favorites[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{position:fixed;box-sizing:border-box;width:310px;padding-top:24px;padding-right:60px;font-family:PingFangSC-Medium}.my-favorites[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;font-size:16px;height:22px;line-height:22px}.my-favorites[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]{text-align:right;cursor:pointer;margin-bottom:24px}.my-favorites[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]   .home-icon[_ngcontent-%COMP%]{position:relative;left:160px;top:2px;height:16px;width:16px;background-image:url("./media/[email protected]");background-position:-103px -571px}.my-favorites[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{flex:1;color:var(--dweb-text-faint, #C5C6CB)}.my-favorites[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .favorites[_ngcontent-%COMP%]{text-align:right}.my-favorites[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .favorites[_ngcontent-%COMP%]   .favorites-icon[_ngcontent-%COMP%]{position:relative;left:160px;top:2px;height:17px;width:18px;background-image:url("./media/[email protected]");background-position:-189px -608px}.my-favorites[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .favorites[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{flex:1;color:var(--dweb-brand, #16B998)}.my-favorites[_ngcontent-%COMP%]   .favorites-main[_ngcontent-%COMP%]{margin:0 353px;border-radius:4px;overflow:hidden}.my-favorites[_ngcontent-%COMP%]   .favorites-main[_ngcontent-%COMP%]   .no-more[_ngcontent-%COMP%]{padding:20px 0;text-align:center;font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.my-favorites[_ngcontent-%COMP%]   .home-icon[_ngcontent-%COMP%], .my-favorites[_ngcontent-%COMP%]   .favorites-icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}@media screen and (max-width:2000px){.my-favorites[_ngcontent-%COMP%]{width:1526px}.my-favorites[_ngcontent-%COMP%]   .favorites-main[_ngcontent-%COMP%]{margin:0 313px}}@media screen and (max-width:1550px){.my-favorites[_ngcontent-%COMP%]{width:1326px}.my-favorites[_ngcontent-%COMP%]   .favorites-main[_ngcontent-%COMP%]{margin:0 313px}}']});let o=n;return o;})();var F3=o=>["/group/",o];function A3(o,n){if(o&1&&(s(0,"a",2)(1,"div",4),g(2),c()()),o&2){let i=d();C("routerLink",R(2,F3,i.selectedGroup.group_id)),l(2),A(i.selectedGroup.name);}}function V3(o,n){o&1&&M(0,"app-skeleton");}function R3(o,n){if(o&1&&(s(0,"div",6),B(1,V3,1,0,"app-skeleton",null,Y),c()),o&2){let i=d();l(),N(i.skeletonArray);}}function L3(o,n){o&1&&(s(0,"div",11),g(1,"\u6CA1\u6709\u66F4\u591A\u4E86"),c());}function B3(o,n){if(o&1){let i=y();s(0,"app-joined-group-file",10),f("handle-file-sort",function(t){b(i);let r=d();return P(r.handleFileSort(t));}),h(1,L3,2,0,"div",11),c();}if(o&2){let i=d();C("files",i.files),l(),_(i.noMoreTopic?1:-1);}}function N3(o,n){if(o&1){let i=y();s(0,"app-lottie-loading",12),f("infinite",function(t){b(i);let r=d();return P(r.getAllFiles(t));}),g(1," \u6587\u4EF6\u52A0\u8F7D\u4E2D... "),c();}}var oh=(()=>{let n=class n{constructor(e,t,r){this.allTopicFilesService=e,this.indexService=t,this.groupListService=r,this.isLoading=!0,this.skeletonArray=[1,2,3,4],this.files=[],this.noMoreTopic=!1,this.infiniteFinishCallback=null,this.sort="by_download_count";}ngOnInit(){document.body.scrollTop=document.documentElement.scrollTop=0,this.doSubscribe(),this.selectedGroup=this.indexService.getTargetGroup(),this.selectedGroup&&(this.groupListService.goBack=!0,this.indexService.currentList="allTopicFiles",this.allTopicFilesService.sortIndex="",this.allTopicFilesService.endTime="",this.allTopicFilesService.sortType="",this.allTopicFilesService.isFetch=!1,this.getAllFiles());}getAllFiles(e=null){this.allTopicFilesService.isFetch||(this.allTopicFilesService.getAllFiles(this.selectedGroup.group_id,"",this.allTopicFilesService.sortIndex?this.allTopicFilesService.sortIndex:"",this.sort),this.infiniteFinishCallback=e);}handleFileSort(e){this.sort=e==="counts"?"by_download_count":"by_create_time",this.files=[],this.allTopicFilesService.sortIndex="",this.allTopicFilesService.sortType=e,this.allTopicFilesService.isFetch=!1,this.noMoreTopic=!1,this.isLoading=!0,this.getAllFiles();}
146doSubscribe(){this.allTopicFilesService.files$.subscribe(e=>{this.isLoading=!1,e&&e.length>0?(this.files=this.files.concat(e),this.allTopicFilesService.isFetch=!1):this.noMoreTopic=!0,this.infiniteFinishCallback&&this.infiniteFinishCallback(this.noMoreTopic);});}};n.ɵfac=function(t){return new(t||n)(O(Ds),O(q),O(ce));},n.ɵcmp=F({type:n,selectors:[["app-all-topic-files"]],standalone:!1,decls:12,vars:3,consts:[[1,"all-topic-files"],[1,"left"],[1,"index","item",3,"routerLink"],[1,"files","item"],[1,"text"],[1,"files-main"],[1,"skeleton-container"],["title","\u5168\u90E8\u6587\u4EF6",3,"files"],["id","js-gotop","goto-top","",1,"go-top-btn"],[1,"icon"],["title","\u5168\u90E8\u6587\u4EF6",3,"handle-file-sort","files"],[1,"no-more"],[3,"infinite"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1),h(2,A3,3,4,"a",2),s(3,"div",3)(4,"div",4),g(5,"\u5168\u90E8\u6587\u4EF6"),c()()(),s(6,"div",5),h(7,R3,3,0,"div",6)(8,B3,2,2,"app-joined-group-file",7),h(9,N3,2,0,"app-lottie-loading"),s(10,"div",8),M(11,"div",9),c()()()),t&2&&(l(2),_(r.selectedGroup?2:-1),l(5),_(r.isLoading?7:8),l(2),_(!r.noMoreTopic&&!r.isLoading?9:-1));},dependencies:[lt,Ae,Qe,ve,Xo,ht],styles:[".all-topic-files[_ngcontent-%COMP%]{width:1906px;padding-top:50px;padding-bottom:32px;margin:0 auto}.all-topic-files[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{box-sizing:border-box;position:fixed;width:310px;padding-top:24px;padding-right:60px;display:flex;flex-direction:column;align-items:flex-end;font-family:PingFangSC-Medium}.all-topic-files[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:16px}.all-topic-files[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]{cursor:pointer;margin-bottom:24px}.all-topic-files[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{height:22px;line-height:22px;color:var(--dweb-text-faint, #C5C6CB);margin-left:12px}.all-topic-files[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .files[_ngcontent-%COMP%]{text-align:center}.all-topic-files[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .files[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{height:22px;line-height:22px;color:var(--dweb-brand, #16B998);margin-left:12px}.all-topic-files[_ngcontent-%COMP%]   .files-main[_ngcontent-%COMP%]{margin:0 343px;border-radius:4px;overflow:hidden}.all-topic-files[_ngcontent-%COMP%]   .files-main[_ngcontent-%COMP%]   .no-more[_ngcontent-%COMP%]{padding:20px 0 8px;text-align:center;font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}.all-topic-files[_ngcontent-%COMP%]   .files-main[_ngcontent-%COMP%]   .skeleton-container[_ngcontent-%COMP%]{margin-top:10px}@media screen and (max-width:2000px){.all-topic-files[_ngcontent-%COMP%]{width:1526px}.all-topic-files[_ngcontent-%COMP%]   .files-main[_ngcontent-%COMP%]{margin:0 303px}}@media screen and (max-width:1550px){.all-topic-files[_ngcontent-%COMP%]{width:1326px}.all-topic-files[_ngcontent-%COMP%]   .files-main[_ngcontent-%COMP%]{margin:0 303px}}"]});let o=n;return o;})();var z3=o=>["/group/",o],G3=(o,n)=>n.topic_id;function j3(o,n){if(o&1&&(s(0,"a",2)(1,"div",4),g(2),c()()),o&2){let i=d();C("routerLink",R(2,z3,i.selectedGroup.group_id)),l(2),A(i.selectedGroup.name);}}function $3(o,n){o&1&&M(0,"app-skeleton");}function H3(o,n){if(o&1&&(s(0,"div",6),B(1,$3,1,0,"app-skeleton",null,Y),c()),o&2){let i=d();l(),N(i.skeletonArray);}}function U3(o,n){if(o&1){let i=y();s(0,"app-topic",15),f("view-topic-detail",function(t){b(i);let r=d(3);return P(r.receiveTopic(t));})("handle-dialog",function(t){b(i);let r=d(3);return P(r.showDialog(t));}),c();}if(o&2){let i=n.$implicit,e=n.$index;C("topicData",i)("index",e);}}function q3(o,n){if(o&1&&(s(0,"div"),B(1,U3,1,2,"app-topic",14,G3),c()),o&2){let i=d(2);l(),N(i.allTagsService.topicList);}}function Q3(o,n){if(o&1&&M(0,"app-limit-reading",7),o&2){let i=d(3);C("group",i.selectedGroup);}}function W3(o,n){o&1&&(s(0,"div",16),M(1,"i",12),s(2,"span"),g(3,"\u65E0\u76F8\u5173\u5185\u5BB9"),c()());}function X3(o,n){if(o&1&&h(0,Q3,1,1,"app-limit-reading",7)(1,W3,4,0,"div",16),o&2){let i=d(2);_(i.readingLimit?0:1);}}function J3(o,n){if(o&1&&(s(0,"div",13),g(1,"\u6807\u7B7E\u4E3B\u9898"),c(),h(2,q3,3,0,"div")(3,X3,2,1)),o&2){let i=d();l(2),_(i.allTagsService.topicList.length>0?2:3);}}function Y3(o,n){if(o&1){let i=y();s(0,"app-lottie-loading",17),f("infinite",function(t){b(i);let r=d();return P(r.getTagTopics(t));}),g(1," \u4E3B\u9898\u52A0\u8F7D\u4E2D... "),c();}}function K3(o,n){if(o&1&&M(0,"app-limit-reading",7),o&2){let i=d();C("group",i.selectedGroup);}}function Z3(o,n){if(o&1){let i=y();s(0,"app-topic-detail",18),f("handle-topic-detail",function(){b(i);let t=d();return P(t.closeTopicDetail());}),c();}if(o&2){let i=d();C("topicData",i.selectedTopic)("hasWaterMark",i.hasWaterMark);}}function eE(o,n){if(o&1){let i=y();s(0,"app-dialog",19),f("dialog-confirm",function(){b(i);let t=d();return P(t.hideReviewDialog());}),s(1,"div"),g(2,"\u4F60\u53D1\u8868\u7684\u4E3B\u9898\u6B63\u5728\u5BA1\u6838\u4E2D\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85\u3002"),c()();}}function tE(o,n){if(o&1){let i=y();s(0,"app-dialog",20),f("dialog-confirm",function(){b(i);let t=d();return P(t.hideVideoDialog());}),s(1,"div"),g(2,"\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF\u6216\u89C6\u9891\u5DF2\u635F\u574F\uFF0C\u8BF7\u68C0\u67E5\u5E76\u91CD\u65B0\u4E0A\u4F20\u3002"),c()();}}var rh=(()=>{let n=class n{constructor(e,t,r,a,p,m,v){this.indexService=e,this.allTagsService=t,this.topicDetailService=r,this.groupListService=a,this.route=p,this.topicService=m,this.document=v,this.isLoading=!0,this.skeletonArray=[1,2,3,4],this.tagTopics=[],this.noMoreTopic=!1,this.subscriptions=[],this.reviewDialogVisible=!1,this.videoDialogVisible=!1,this.infiniteFinishCallback=null,this.readingLimit=!1;}ngOnInit(){document.body.scrollTop=document.documentElement.scrollTop=0,this.doSubscribe(),this.selectedGroup=this.indexService.getTargetGroup(),this.selectedGroup&&(this.groupListService.goBack=!0);}ngAfterViewInit(){this.indexService.currentList="tagTopics";}
146ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}doSubscribe(){let e=this.indexService.group$.subscribe(v=>{this.selectedGroup=v,this.indexService.setTargetGroup(v),this.readingLimit=gi(v);}),t=this.allTagsService.tagTopics$.subscribe(v=>{this.isLoading=!1,v&&v.length>0?(this.allTagsService.topicList=this.allTagsService.topicList.concat(v),this.allTagsService.topicList.forEach(x=>{x.openType="tags";}),this.indexService.getGroup(v[0].group.group_id)):this.noMoreTopic=!0,this.infiniteFinishCallback&&this.infiniteFinishCallback(this.noMoreTopic);}),r=this.route.params.subscribe(v=>{this.allTagsService.topicList=[],this.isLoading=!0,this.tagName=this.route.snapshot.paramMap.get("name"),this.currentTagHid=Number(this.route.snapshot.paramMap.get("hid")),this.allTagsService.hid=this.currentTagHid,this.allTagsService.endTime="",this.getTagTopics();}),a=this.topicDetailService.hasWatermark$.subscribe(v=>{this.hasWaterMark=v,this.showTopicDetail=!0,this.topicDetailService.getComments(this.selectedTopic.topic_uid||this.selectedTopic.topic_id,this.topicDetailService.commentBeginTime);}),p=this.allTagsService.delTag$.subscribe(v=>{if(this.currentTagHid===v.tagHid){let x=this.allTagsService.topicList.findIndex(w=>w.topic_id===v.topicId||w.topic_uid===v.topicId);this.allTagsService.topicList.splice(x,1);}}),m=this.topicService.topicOperation$.subscribe(({type:v,topic:x})=>{if(v==="delete"){this.showTopicDetail&&this.closeTopicDetail();let w=this.allTagsService.topicList.findIndex(k=>k.topic_id===x.topic_id||k.topic_uid===x.topic_uid);this.allTagsService.topicList.splice(w,1);}});this.subscriptions.push(e,t,r,a,p,m);}getTagTopics(e=null){this.allTagsService.getTagTopics(this.allTagsService.hid,this.allTagsService.endTime),this.infiniteFinishCallback=e;}receiveTopic(e){this.indexService.spareScrollbarSpace(),e.comments=[],this.selectedTopic=Object.assign({},e),this.selectedTopic.openType="detail",this.topicDetailService.commentBeginTime="",this.topicDetailService.getGroupWaterMark(e.group.group_id);}closeTopicDetail(){this.indexService.remainScrollbarStyle(),this.showTopicDetail=!1;}showDialog(e){e==="review"?this.reviewDialogVisible=!0:e==="video"&&(this.videoDialogVisible=!0);}hideReviewDialog(){this.reviewDialogVisible=!1;}hideVideoDialog(){this.videoDialogVisible=!1;}};n.ɵfac=function(t){return new(t||n)(O(q),O(yo),O(Te),O(ce),O(ke),O(Oe),O(Be));},n.ɵcmp=F({type:n,selectors:[["app-all-tags"]],standalone:!1,decls:17,vars:10,consts:[[1,"all-tags"],[1,"left"],[1,"index","item",3,"routerLink"],[1,"tags","item"],[1,"text"],[1,"tags-main"],[1,"skeleton-container"],[3,"group"],[3,"topicData","hasWaterMark"],["title","\u6E29\u99A8\u63D0\u793A","type","confirm","confirmBtnText","\u77E5\u9053\u4E86","position","center"],["title","\u6E29\u99A8\u63D0\u793A","type","confirm","confirmBtnText","\u786E\u5B9A","position","center"],["id","js-gotop","goto-top","",1,"go-top-btn"],[1,"icon"],[1,"title"],["type","flow",3,"topicData","index"],["type","flow",3,"view-topic-detail","handle-dialog","topicData","index"],[1,"no-data"],[3,"infinite"],[3,"handle-topic-detail","topicData","hasWaterMark"],["title","\u6E29\u99A8\u63D0\u793A","type","confirm","confirmBtnText","\u77E5\u9053\u4E86","position","center",3,"dialog-confirm"],["title","\u6E29\u99A8\u63D0\u793A","type","confirm","confirmBtnText","\u786E\u5B9A","position","center",3,"dialog-confirm"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1),h(2,j3,3,4,"a",2),s(3,"div",3)(4,"div",4),g(5),$(6,"transformTag"),c()()(),s(7,"div",5),h(8,H3,3,0,"div",6)(9,J3,4,1),h(10,Y3,2,0,"app-lottie-loading"),h(11,K3,1,1,"app-limit-reading",7),h(12,Z3,1,2,"app-topic-detail",8),h(13,eE,3,0,"app-dialog",9),h(14,tE,3,0,"app-dialog",10),s(15,"div",11),M(16,"div",12),c()()()),t&2&&(l(2),_(r.selectedGroup?2:-1),l(3),V("#",Z(6,8,r.tagName)),l(3),_(r.isLoading?8:9),l(2),_(!r.noMoreTopic&&!r.isLoading?10:-1),l(),_(r.noMoreTopic&&!r.isLoading&&r.readingLimit&&r.selectedGroup?11:-1),l(),_(r.showTopicDetail?12:-1),l(),_(r.reviewDialogVisible?13:-1),l(),_(r.videoDialogVisible?14:-1));},dependencies:[lt,Ze,Ae,Qe,ve,An,ht,ft,Ts,nd],styles:['.all-tags[_ngcontent-%COMP%]{width:1906px;padding-top:50px;padding-bottom:32px;margin:0 auto}.all-tags[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{box-sizing:border-box;position:fixed;width:310px;padding-top:24px;padding-right:60px;display:flex;flex-direction:column;align-items:flex-end;font-family:PingFangSC-Medium}.all-tags[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:16px}.all-tags[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{height:22px;line-height:22px;color:var(--dweb-text-faint, #C5C6CB);max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.all-tags[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]{cursor:pointer;margin-bottom:24px}.all-tags[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .tags[_ngcontent-%COMP%]{text-align:center}.all-tags[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .tags[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{color:var(--dweb-brand, #16B998)}.all-tags[_ngcontent-%COMP%]   .tags-main[_ngcontent-%COMP%]{margin:10px 343px 0;border-radius:4px}.all-tags[_ngcontent-%COMP%]   .tags-main[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{background-color:var(--dweb-bg-panel);height:40px;line-height:40px;padding-left:20px;font-family:PingFangSC-Medium;font-size:12px;color:var(--dweb-text-faint, #C5C6CB);border-bottom:1px solid var(--dweb-border-faint);border-top-left-radius:4px;border-top-right-radius:4px}.all-tags[_ngcontent-%COMP%]   .tags-main[_ngcontent-%COMP%]   .no-more[_ngcontent-%COMP%]{padding:20px 0;text-align:center;font-size:12px;color:var(--dweb-text-muted, #8B8E9D)}.all-tags[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]{background-color:var(--dweb-bg-panel);padding:60px 0;color:var(--dweb-text-faint-legacy);display:flex;flex-direction:column;align-items:center;border-radius:0 0 4px 4px}.all-tags[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:87px;height:71px;background-image:url("./media/[email protected]");background-position:-87px -929px;margin-bottom:15px}@media screen and (max-width:2000px){.all-tags[_ngcontent-%COMP%]{width:1526px}.all-tags[_ngcontent-%COMP%]   .tags-main[_ngcontent-%COMP%]{margin:0 303px}}@media screen and (max-width:1550px){.all-tags[_ngcontent-%COMP%]{width:1326px}.all-tags[_ngcontent-%COMP%]   .tags-main[_ngcontent-%COMP%]{margin:0 303px}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.all-tags[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var nE=o=>["/group/",o],iE=(o,n,i)=>({first:o,second:n,third:i});function oE(o,n){if(o&1&&(s(0,"a",2)(1,"div",4),g(2),c()()),o&2){let i=d();C("routerLink",R(2,nE,i.selectedGroup.group_id)),l(2),A(i.selectedGroup.name);}}function rE(o,n){o&1&&M(0,"app-skeleton");}function aE(o,n){if(o&1&&(s(0,"div",6),B(1,rE,1,0,"app-skeleton",null,Y),c()),o&2){let i=d();l(),N(i.skeletonArray);}}function sE(o,n){if(o&1&&(s(0,"div",7)(1,"div",12),g(2,"\u4F5C\u4E1A\u699C"),c(),M(3,"app-topic",13),c()),o&2){let i=d();l(3),C("topicData",i.taskTopic)("taskStatistics",i.taskStatistics);}}function cE(o,n){if(o&1){let i=y();s(0,"div",9),M(1,"i"),s(2,"span"),g(3,"\u5FEB\u53BB\u5199\u4F5C\u4E1A\uFF0C\u6210\u4E3A\u7B2C\u4E00\u4E2A\u4E0A\u699C\u7684\u4EBA\u5427"),
146c(),s(4,"span",14),f("click",function(){b(i);let t=d();return P(t.toDoHomework());}),g(5,"\u5199\u4F5C\u4E1A"),c()();}}function lE(o,n){if(o&1&&(s(0,"span",16),M(1,"i",21),c()),o&2){let i=d().$index;l(),C("ngClass",_n(1,iE,i===0,i===1,i===2));}}function pE(o,n){if(o&1&&(s(0,"span",16),g(1),c()),o&2){let i=d().$index;l(),A(i+1);}}function dE(o,n){if(o&1){let i=y();s(0,"li",15),f("click",function(){let t=b(i).$implicit,r=d();return P(r.homeworkDetail(t));}),h(1,lE,2,5,"span",16),h(2,pE,2,1,"span",16),s(3,"div",17)(4,"span",18),g(5),c(),s(6,"span",19),g(7),c()(),s(8,"span",20),g(9),M(10,"i"),c()();}if(o&2){let i=n.$implicit,e=n.$index,t=d();l(),_(e<=2?1:-1),l(),_(e>2?2:-1),l(3),A(i.solution.owner.name),l(2),A(t.formatTime(i.create_time)),l(2),V("",i.likes_count," \u8D5E");}}function gE(o,n){if(o&1){let i=y();s(0,"app-topic-detail",22),f("handle-topic-detail",function(){b(i);let t=d();return P(t.closeTopicDetail());}),c();}if(o&2){let i=d();C("topicData",i.selectedTopic)("hasWaterMark",i.hasWaterMark);}}var ah=(()=>{let n=class n{constructor(e,t,r,a,p,m){this.route=e,this.indexService=t,this.groupListService=r,this.homeworkService=a,this.topicDetailService=p,this.taskCententService=m,this.subscriptions=[],this.isLoading=!0,this.skeletonArray=[1],this.taskStatistics={ratio:0,unsubmitted:0,noList:!0},this.noData=!1,this.solutionList=[],this.totalMemberCount=0;}ngOnInit(){document.body.style.overflowY="auto",this.doSubscribe(),this.selectedGroup=this.indexService.getTargetGroup(),this.selectedGroup&&(this.groupListService.goBack=!0,this.indexService.currentList="task",this.topicId=this.route.snapshot.paramMap.get("id"),this.fetchData(this.topicId));}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}doSubscribe(){let e=this.homeworkService.taskTopic$.subscribe(m=>{this.isLoading=!1,m.openType="task",this.taskTopic=m,m.task.owner.user_id===this.indexService.getSelfInfo("user_id")&&this.homeworkService.getTaskStatistics(this.topicId);}),t=this.homeworkService.taskStatistics$.subscribe(m=>{this.totalMemberCount=m.submitted_count+m.unsubmitted_count,this.updateRatio(m.unsubmitted_count);}),r=this.homeworkService.solutionList$.subscribe(m=>{m&&m.length>0?(this.noData=!1,this.taskStatistics.noList=!1,this.solutionList=m):(this.noData=!0,this.solutionList=[],this.taskStatistics.noList=!0);}),a=this.topicDetailService.hasWatermark$.subscribe(m=>{this.hasWaterMark=m,this.showTopicDetail=!0,this.topicDetailService.getComments(this.selectedTopic.topic_id,this.topicDetailService.commentBeginTime);}),p=this.taskCententService.newSolution$.subscribe(m=>{this.noData=!1,this.taskStatistics.noList=!1,this.solutionList=[m],this.updateRatio(this.taskStatistics.unsubmitted-1);});this.subscriptions.push(e,t,r,a,p);}fetchData(e){this.homeworkService.getTaskTopic(e),this.homeworkService.getSolutionList(e);}toDoHomework(){this.homeworkService.doHomework("index-container");}homeworkDetail(e){this.indexService.spareScrollbarSpace(),e.comments=[],this.selectedTopic=Object.assign({},e),this.selectedTopic.openType="detail",this.topicDetailService.commentBeginTime="",this.topicDetailService.getGroupWaterMark(e.group.group_id);}closeTopicDetail(){this.indexService.remainScrollbarStyle(),this.showTopicDetail=!1;}formatTime(e){return Fe(ge(e),"yyyy/MM/dd HH:mm");}updateRatio(e){this.taskStatistics.ratio=Number((e/this.totalMemberCount).toFixed(3))*100,this.taskStatistics.unsubmitted=e;}};n.ɵfac=function(t){return new(t||n)(O(ke),O(q),O(ce),O(Bo),O(Te),O(Ai));},n.ɵcmp=F({type:n,selectors:[["app-homework"]],standalone:!1,decls:15,vars:4,consts:[[1,"homework-container"],[1,"left"],[1,"index","item",3,"routerLink"],[1,"homework","item"],[1,"text"],[1,"homework-main"],[1,"skeleton-container"],[1,"task"],[1,"homework-list"],[1,"no-data"],[1,"list"],[3,"topicData","hasWaterMark"],[1,"title"],["type","homework",3,"topicData","taskStatistics"],[1,"btn",3,"click"],[3,"click"],[1,"rank"],[1,"info"],[1,"name"],[1,"date"],[1,"like"],[3,"ngClass"],[3,"handle-topic-detail","topicData","hasWaterMark"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1),h(2,oE,3,4,"a",2),s(3,"div",3)(4,"div",4),g(5,"\u4F5C\u4E1A\u699C"),c()()(),s(6,"div",5),h(7,aE,3,0,"div",6)(8,sE,4,2,"div",7),s(9,"div",8),h(10,cE,6,0,"div",9),s(11,"div",10),B(12,dE,11,5,"li",null,hn),c()(),h(14,gE,1,2,"app-topic-detail",11),c()()),t&2&&(l(2),_(r.selectedGroup?2:-1),l(5),_(r.isLoading?7:8),l(3),_(r.noData?10:-1),l(2),N(r.solutionList),l(2),_(r.showTopicDetail?14:-1));},dependencies:[K,lt,ve,An,ft],styles:['.homework-container[_ngcontent-%COMP%]{width:1906px;padding-top:50px;padding-bottom:32px;margin:0 auto}.homework-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{box-sizing:border-box;position:fixed;width:310px;padding-top:24px;padding-right:60px;display:flex;flex-direction:column;align-items:flex-end;font-family:PingFangSC-Medium}.homework-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:16px}.homework-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]{cursor:pointer;margin-bottom:24px}.homework-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{height:22px;line-height:22px;color:var(--dweb-text-faint, #C5C6CB);margin-left:12px;width:250px;text-align:right;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.homework-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .homework[_ngcontent-%COMP%]{text-align:center}.homework-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .homework[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{height:22px;line-height:22px;color:var(--dweb-brand, #16B998);margin-left:12px}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]{margin:0 343px}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]   .skeleton-container[_ngcontent-%COMP%]{margin-top:10px}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]   .task[_ngcontent-%COMP%]{margin-top:10px;background:var(--dweb-bg-panel, #FFFFFF);border-radius:4px}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]   .task[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{height:40px;line-height:40px;padding-left:20px;font-family:PingFangSC-Medium;font-size:12px;color:var(--dweb-text-faint, #C5C6CB);border-bottom:1px solid rgba(0,0,0,.05)}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]   .homework-list[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]{border-radius:4px;
146height:300px;background-color:var(--dweb-bg-panel);display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--dweb-text-placeholder)}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]   .homework-list[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{width:87px;height:71px;background-image:url("./media/[email protected]");background-position:-87px -929px;margin-bottom:15px}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]   .homework-list[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{cursor:pointer;text-align:center;color:#fff;width:90px;height:30px;background:var(--dweb-brand);line-height:30px;border-radius:4px;margin-top:15px}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]   .homework-list[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]   .homework-list[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{cursor:pointer;background-color:var(--dweb-bg-panel);height:68px;box-sizing:border-box;padding:14px 30px 14px 24px;border-radius:4px;display:flex;flex-direction:row;align-items:center;font-size:14px;color:var(--dweb-text-primary);margin-bottom:10px}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]   .homework-list[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .rank[_ngcontent-%COMP%]{width:25px;font-family:PingFangSC-Medium;font-size:16px;text-align:center}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]   .homework-list[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .rank[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{display:inline-block;width:25px;height:22px;background-image:url("./media/[email protected]")}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]   .homework-list[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .rank[_ngcontent-%COMP%]   i.first[_ngcontent-%COMP%]{background-position:-774px -283px}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]   .homework-list[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .rank[_ngcontent-%COMP%]   i.second[_ngcontent-%COMP%]{background-position:-817px -283px}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]   .homework-list[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .rank[_ngcontent-%COMP%]   i.third[_ngcontent-%COMP%]{background-position:-860px -283px}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]   .homework-list[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-left:24px}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]   .homework-list[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-family:PingFangSC-Medium;margin-bottom:6px}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]   .homework-list[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{font-family:PingFangSC-Regular;font-size:12px;color:var(--dweb-text-placeholder)}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]   .homework-list[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .like[_ngcontent-%COMP%]{margin-left:auto;font-family:PingFangSC-Medium}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]   .homework-list[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .like[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{display:inline-block;margin-left:16px;width:8px;height:11px;background-image:url("./media/[email protected]");background-position:-299px -197px}@media screen and (max-width:2000px){.homework-container[_ngcontent-%COMP%]{width:1526px}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]{margin:0 303px}}@media screen and (max-width:1550px){.homework-container[_ngcontent-%COMP%]{width:1326px}.homework-container[_ngcontent-%COMP%]   .homework-main[_ngcontent-%COMP%]{margin:0 303px}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.homework-list[_ngcontent-%COMP%]   .like[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .homework-list[_ngcontent-%COMP%]   .rank[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var sh=(()=>{let n=class n{constructor(e){this.http=e,this._taskTopics$=new U(),this.taskTopics$=this._taskTopics$.asObservable(),this.time="";}getTasks(e,t,r=20){this.http.get(j.getTasks(e,"true",t,r)).subscribe(a=>{if(a.succeeded){let p=a.resp_data.topics;p&&p.length>0&&(this.time=mt(p[p.length-1].create_time)),this._taskTopics$.next(p);}else this.http.handleExceptionCode(a,"\u83B7\u53D6\u661F\u7403\u4F5C\u4E1A\u9898\u76EE\u5217\u8868\u5931\u8D25");});}};n.ɵfac=function(t){return new(t||n)(re(W));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var mE=o=>["/group/",o],hE=(o,n)=>n.topic_id;function _E(o,n){if(o&1&&(s(0,"a",2)(1,"div",4),g(2),c()()),o&2){let i=d();C("routerLink",R(2,mE,i.selectedGroup.group_id)),l(2),A(i.selectedGroup.name);}}function fE(o,n){o&1&&M(0,"app-skeleton");}function CE(o,n){if(o&1&&(s(0,"div",6),B(1,fE,1,0,"app-skeleton",null,Y),c()),o&2){let i=d();l(),N(i.skeletonArray);}}function xE(o,n){if(o&1){let i=y();s(0,"app-topic",12),f("view-topic-detail",function(t){b(i);let r=d(3);return P(r.receiveTopic(t));}),c();}if(o&2){let i=n.$implicit,e=n.$index;C("topicData",i)("index",e);}}function vE(o,n){if(o&1&&(s(0,"div"),B(1,xE,1,2,"app-topic",11,hE),c()),o&2){let i=d(2);l(),N(i.taskTopicList);}}function bE(o,n){o&1&&(s(0,"div",10),M(1,"i",8),s(2,"span"),g(3,"\u65E0\u76F8\u5173\u5185\u5BB9"),c()());}function PE(o,n){if(o&1&&h(0,vE,3,0,"div")(1,bE,4,0,"div",10),o&2){let i=d();_(i.taskTopicList.length?0:1);}}function ME(o,n){if(o&1){let i=y();s(0,"app-lottie-loading",13),f("infinite",function(t){b(i);let r=d();return P(r.getTopics(t));}),g(1," \u4E3B\u9898\u52A0\u8F7D\u4E2D... "),c();}}function OE(o,n){if(o&1){let i=y();s(0,"app-topic-detail",14),f("handle-topic-detail",function(){b(i);let t=d();return P(t.closeTopicDetail());}),c();}if(o&2){let i=d();C("topicData",i.selectedTopic)("hasWaterMark",i.hasWaterMark);}}var ch=(()=>{let n=class n{constructor(e,t,r,a,p){this.indexService=e,this.groupListService=t,this.topicService=r,this.topicDetailService=a,this.homeworkListService=p,this.subscriptions=[],this.isLoading=!0,this.skeletonArray=[1,2,3],this.taskTopicList=[],this.noMoreTopic=!1;}ngOnInit(){this.doSubscribe(),this.selectedGroup=this.indexService.getTargetGroup(!0),this.selectedGroup&&(this.indexService.setTargetGroup(this.selectedGroup),this.groupListService.goBack=!0,this.indexService.currentList="homework-list",this.fetchData());}
146ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}doSubscribe(){let e=this.topicDetailService.hasWatermark$.subscribe(p=>{this.hasWaterMark=p,this.showTopicDetail=!0,this.topicDetailService.getComments(this.selectedTopic.topic_id,this.topicDetailService.commentBeginTime);}),t=this.homeworkListService.taskTopics$.subscribe(p=>{this.isLoading=!1,p&&p.length>0?(p.forEach(m=>{m.openType="task";}),this.taskTopicList=this.taskTopicList.concat(p)):this.noMoreTopic=!0,this.infiniteFinishCallback&&this.infiniteFinishCallback(this.noMoreTopic);}),r=this.topicService.topicOperation$.subscribe(({type:p,topic:m})=>{if(p==="delete"){this.showTopicDetail&&this.closeTopicDetail();let v=this.taskTopicList.findIndex(x=>x.topic_id===m.topic_id);this.taskTopicList.splice(v,1);}}),a=this.indexService.editedTopic$.subscribe(p=>{p.openType="task";let m=this.taskTopicList.findIndex(v=>v.topic_id===p.topic_id);this.taskTopicList.splice(m,1,p);});this.subscriptions.push(e,t,r,a);}fetchData(){this.homeworkListService.time="",this.getTopics();}receiveTopic(e){this.indexService.spareScrollbarSpace(),e.comments=[],this.selectedTopic=Object.assign({},e),this.selectedTopic.openType="detail",this.topicDetailService.commentBeginTime="",this.topicDetailService.getGroupWaterMark(e.group.group_id);}closeTopicDetail(){this.indexService.remainScrollbarStyle(),this.showTopicDetail=!1;}getTopics(e=null){this.homeworkListService.getTasks(this.selectedGroup.group_id,this.homeworkListService.time),this.infiniteFinishCallback=e;}};n.ɵfac=function(t){return new(t||n)(O(q),O(ce),O(Oe),O(Te),O(sh));},n.ɵcmp=F({type:n,selectors:[["app-homework-list"]],standalone:!1,decls:13,vars:4,consts:[[1,"homework-list-container"],[1,"left"],[1,"index","item",3,"routerLink"],[1,"highlight","item"],[1,"text"],[1,"homework-list-main"],[1,"skeleton-container"],["id","js-gotop","goto-top","",1,"go-top-btn"],[1,"icon"],[3,"topicData","hasWaterMark"],[1,"no-data"],["type","flow",3,"topicData","index"],["type","flow",3,"view-topic-detail","topicData","index"],[3,"infinite"],[3,"handle-topic-detail","topicData","hasWaterMark"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1),h(2,_E,3,4,"a",2),s(3,"div",3)(4,"div",4),g(5,"\u5168\u90E8\u4F5C\u4E1A\u9898\u76EE"),c()()(),s(6,"div",5),h(7,CE,3,0,"div",6)(8,PE,2,1),h(9,ME,2,0,"app-lottie-loading"),s(10,"div",7),M(11,"div",8),c(),h(12,OE,1,2,"app-topic-detail",9),c()()),t&2&&(l(2),_(r.selectedGroup?2:-1),l(5),_(r.isLoading?7:8),l(2),_(!r.noMoreTopic&&!r.isLoading?9:-1),l(3),_(r.showTopicDetail?12:-1));},dependencies:[lt,Ae,Qe,ve,An,ht,ft],styles:['.homework-list-container[_ngcontent-%COMP%]{width:1906px;padding-top:50px;padding-bottom:32px;margin:0 auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.homework-list-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{box-sizing:border-box;position:fixed;width:310px;padding-top:24px;padding-right:60px;display:flex;flex-direction:column;align-items:flex-end;font-family:PingFangSC-Medium}.homework-list-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:16px;outline:none}.homework-list-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]{cursor:pointer;margin-bottom:24px}.homework-list-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{height:22px;line-height:22px;color:var(--dweb-text-faint, #C5C6CB);margin-left:12px}.homework-list-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .highlight[_ngcontent-%COMP%]{text-align:center}.homework-list-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .highlight[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{height:22px;line-height:22px;color:var(--dweb-brand, #16B998);margin-left:12px}.homework-list-container[_ngcontent-%COMP%]   .homework-list-main[_ngcontent-%COMP%]{margin:10px 343px 0}.homework-list-container[_ngcontent-%COMP%]   .homework-list-main[_ngcontent-%COMP%]   .skeleton-container[_ngcontent-%COMP%]{margin-top:10px}.homework-list-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]{background-color:var(--dweb-bg-panel);padding:60px 0;color:var(--dweb-text-faint-legacy);display:flex;flex-direction:column;align-items:center;border-radius:0 0 4px 4px}.homework-list-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:87px;height:71px;background-image:url("./media/[email protected]");background-position:-87px -929px;margin-bottom:15px}@media screen and (max-width:2000px){.homework-list-container[_ngcontent-%COMP%]{width:1526px}.homework-list-container[_ngcontent-%COMP%]   .homework-list-main[_ngcontent-%COMP%]{margin:10px 303px 0}}@media screen and (max-width:1550px){.homework-list-container[_ngcontent-%COMP%]{width:1326px}.homework-list-container[_ngcontent-%COMP%]   .homework-list-main[_ngcontent-%COMP%]{margin:10px 303px 0}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var lh=(()=>{let n=class n{constructor(e){this.http=e,this._solutionTopics$=new U(),this.solutionTopics$=this._solutionTopics$.asObservable(),this.time="";}getAllSolutions(e,t,r,a=20){this.http.get(j.getAllSolutions(e,t,r,a)).subscribe(p=>
146{if(p.succeeded){let m=p.resp_data.solutions;m&&m.length>0&&(this.time=r==="forward"?ea(m[m.length-1].create_time):mt(m[m.length-1].create_time)),this._solutionTopics$.next(m);}else this.http.handleExceptionCode(p,"\u83B7\u53D6\u4F5C\u4E1A\u7B54\u6848\u5217\u8868\u5931\u8D25");});}};n.ɵfac=function(t){return new(t||n)(re(W));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var yE=o=>["/homework/",o],kE=o=>["/group/",o],ph=o=>({active:o}),SE=(o,n)=>n.topic_id;function TE(o,n){if(o&1&&(s(0,"a",2)(1,"div",3),g(2),c()()),o&2){let i=d();C("routerLink",R(2,kE,i.selectedGroup.group_id)),l(2),A(i.selectedGroup.name);}}function EE(o,n){o&1&&M(0,"app-skeleton");}function DE(o,n){if(o&1&&(s(0,"div",6),B(1,EE,1,0,"app-skeleton",null,Y),c()),o&2){let i=d();l(),N(i.skeletonArray);}}function IE(o,n){if(o&1){let i=y();s(0,"app-topic",9),f("view-topic-detail",function(t){b(i);let r=d();return P(r.receiveTopic(t));}),c();}if(o&2){let i=d();C("topicData",i.taskTopic);}}function FE(o,n){o&1&&M(0,"app-skeleton");}function AE(o,n){if(o&1&&B(0,FE,1,0,"app-skeleton",null,Y),o&2){let i=d(2);N(i.skeletonArray);}}function VE(o,n){if(o&1){let i=y();s(0,"app-topic",17),f("view-topic-detail",function(t){b(i);let r=d(2);return P(r.receiveTopic(t));}),c();}if(o&2){let i=n.$implicit,e=n.$index;C("topicData",i)("index",e);}}function RE(o,n){if(o&1){let i=y();s(0,"app-lottie-loading",18),f("infinite",function(t){b(i);let r=d(2);return P(r.getSolutionList(t));}),g(1," \u52A0\u8F7D\u4E2D... "),c();}}function LE(o,n){if(o&1){let i=y();s(0,"div",10)(1,"div",11),g(2,"\u5DF2\u4EA4\u4F5C\u4E1A"),c(),s(3,"div",12)(4,"span",13),f("click",function(){b(i);let t=d();return P(t.changeSort("forward"));}),g(5,"\u6B63\u5E8F"),c(),s(6,"span",13),f("click",function(){b(i);let t=d();return P(t.changeSort("backward"));}),g(7,"\u5012\u5E8F"),c()()(),h(8,AE,2,0),B(9,VE,1,2,"app-topic",14,SE),h(11,RE,2,0,"app-lottie-loading"),s(12,"div",15),M(13,"div",16),c();}if(o&2){let i=d();l(4),C("ngClass",R(4,ph,i.direction==="forward")),l(2),C("ngClass",R(6,ph,i.direction==="backward")),l(2),_(i.reloadList?8:-1),l(),N(i.solutionTopicList),l(2),_(!i.noMoreTopic&&i.solutionTopicList.length?11:-1);}}function BE(o,n){if(o&1){let i=y();s(0,"app-topic-detail",19),f("handle-topic-detail",function(){b(i);let t=d();return P(t.closeTopicDetail());}),c();}if(o&2){let i=d();C("topicData",i.selectedTopic)("hasWaterMark",i.hasWaterMark);}}var dh=(()=>{let n=class n{constructor(e,t,r,a,p,m,v,x){this.route=e,this.indexService=t,this.groupListService=r,this.homeworkService=a,this.topicService=p,this.topicDetailService=m,this.solutonListService=v,this.taskContentService=x,this.subscriptions=[],this.isLoading=!0,this.skeletonArray=[1,2,3],this.noMoreTopic=!1,this.solutionTopicList=[],this.direction="backward",this.reloadList=!1;}ngOnInit(){this.doSubscribe(),this.selectedGroup=this.indexService.getTargetGroup(!0),this.selectedGroup&&(this.indexService.setTargetGroup(this.selectedGroup),this.groupListService.goBack=!0,this.indexService.currentList="solution-list",this.topicId=this.route.snapshot.paramMap.get("id"),this.fetchData(this.topicId));}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}doSubscribe(){let e=this.homeworkService.taskTopic$.subscribe(m=>{this.isLoading=!1,m.openType="solution",this.taskTopic=m;}),t=this.topicDetailService.hasWatermark$.subscribe(m=>{this.hasWaterMark=m,this.showTopicDetail=!0,this.topicDetailService.getComments(this.selectedTopic.topic_id,this.topicDetailService.commentBeginTime);}),r=this.solutonListService.solutionTopics$.subscribe(m=>{this.reloadList=!1,m&&m.length>0?(m.forEach(v=>{v.openType="solution";}),this.solutionTopicList=this.solutionTopicList.concat(m)):this.noMoreTopic=!0,this.infiniteFinishCallback&&this.infiniteFinishCallback(this.noMoreTopic);}),a=this.topicService.topicOperation$.subscribe(({type:m,topic:v})=>{if(m==="delete"){this.showTopicDetail&&this.closeTopicDetail();let x=this.solutionTopicList.findIndex(w=>w.topic_id===v.topic_id);this.solutionTopicList.splice(x,1);}}),p=this.taskContentService.newSolution$.subscribe(m=>
146{m.openType="solution",this.direction==="backward"?this.solutionTopicList.unshift(m):this.solutionTopicList.push(m);});this.subscriptions.push(e,t,r,a,p);}fetchData(e){this.homeworkService.getTaskTopic(e),this.solutonListService.time="",this.getSolutionList();}receiveTopic(e){this.indexService.spareScrollbarSpace(),e.comments=[],this.selectedTopic=Object.assign({},e),this.selectedTopic.openType="detail",this.topicDetailService.commentBeginTime="",this.topicDetailService.getGroupWaterMark(e.group.group_id);}closeTopicDetail(){this.indexService.remainScrollbarStyle(),this.showTopicDetail=!1;}getSolutionList(e=null){this.solutonListService.getAllSolutions(this.topicId,this.solutonListService.time,this.direction),this.infiniteFinishCallback=e;}changeSort(e){e!==this.direction&&(this.direction=e,this.solutonListService.time="",this.noMoreTopic=!1,this.solutionTopicList=[],this.reloadList=!0,this.getSolutionList());}};n.ɵfac=function(t){return new(t||n)(O(ke),O(q),O(ce),O(Bo),O(Oe),O(Te),O(lh),O(Ai));},n.ɵcmp=F({type:n,selectors:[["app-solution-list"]],standalone:!1,decls:14,vars:7,consts:[[1,"solution-list-container"],[1,"left"],[1,"index","item",3,"routerLink"],[1,"text"],[1,"highlight","item"],[1,"solution-list-main"],[1,"skeleton-container"],["type","flow",3,"topicData"],[3,"topicData","hasWaterMark"],["type","flow",3,"view-topic-detail","topicData"],[1,"solution-list-header"],[1,"title"],[1,"sort"],[3,"click","ngClass"],["type","flow",3,"topicData","index"],["
146id","js-gotop","goto-top","",1,"go-top-btn"],[1,"icon"],["type","flow",3,"view-topic-detail","topicData","index"],[3,"infinite"],[3,"handle-topic-detail","topicData","hasWaterMark"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1),h(2,TE,3,4,"a",2),s(3,"div",2)(4,"div",3),g(5,"\u4F5C\u4E1A\u699C"),c()(),s(6,"div",4)(7,"div",3),g(8,"\u5DF2\u4EA4\u4F5C\u4E1A"),c()()(),s(9,"div",5),h(10,DE,3,0,"div",6)(11,IE,1,1,"app-topic",7),h(12,LE,14,8),h(13,BE,1,2,"app-topic-detail",8),c()()),t&2&&(l(2),_(r.selectedGroup?2:-1),l(),C("routerLink",R(5,yE,r.topicId)),l(7),_(r.isLoading?10:11),l(2),_(r.solutionTopicList.length!==0||r.reloadList?12:-1),l(),_(r.showTopicDetail?13:-1));},dependencies:[K,lt,Ae,Qe,ve,An,ht,ft],styles:[".solution-list-container[_ngcontent-%COMP%]{width:1906px;padding-top:50px;padding-bottom:32px;margin:0 auto}.solution-list-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{box-sizing:border-box;position:fixed;width:310px;padding-top:24px;padding-right:60px;display:flex;flex-direction:column;align-items:flex-end;font-family:PingFangSC-Medium}.solution-list-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:16px;outline:none}.solution-list-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]{cursor:pointer;margin-bottom:24px}.solution-list-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{height:22px;line-height:22px;color:var(--dweb-text-faint, #C5C6CB);margin-left:12px}.solution-list-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .highlight[_ngcontent-%COMP%]{text-align:center}.solution-list-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .highlight[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{height:22px;line-height:22px;color:var(--dweb-brand, #16B998);margin-left:12px}.solution-list-container[_ngcontent-%COMP%]   .solution-list-main[_ngcontent-%COMP%]{margin:10px 343px 0}.solution-list-container[_ngcontent-%COMP%]   .solution-list-main[_ngcontent-%COMP%]   .skeleton-container[_ngcontent-%COMP%]{margin-top:10px}.solution-list-container[_ngcontent-%COMP%]   .solution-list-main[_ngcontent-%COMP%]   .solution-list-header[_ngcontent-%COMP%]{background:var(--dweb-bg-panel, #FFFFFF);border-radius:4px 4px 0 0;display:flex;justify-content:space-between;align-items:center;padding:0 20px;border-bottom:1px solid rgba(0,0,0,.05);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.solution-list-container[_ngcontent-%COMP%]   .solution-list-main[_ngcontent-%COMP%]   .solution-list-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{height:40px;line-height:40px;font-family:PingFangSC-Medium;font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}.solution-list-container[_ngcontent-%COMP%]   .solution-list-main[_ngcontent-%COMP%]   .solution-list-header[_ngcontent-%COMP%]   .sort[_ngcontent-%COMP%]{display:flex;width:80px;border-radius:3px}.solution-list-container[_ngcontent-%COMP%]   .solution-list-main[_ngcontent-%COMP%]   .solution-list-header[_ngcontent-%COMP%]   .sort[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{cursor:pointer;height:22px;line-height:22px;text-align:center;flex:1;font-family:PingFangSC-Medium;font-size:12px;color:var(--dweb-text-muted);border:1px solid var(--dweb-disabled)}.solution-list-container[_ngcontent-%COMP%]   .solution-list-main[_ngcontent-%COMP%]   .solution-list-header[_ngcontent-%COMP%]   .sort[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{border-right:none;border-radius:3px 0 0 3px}.solution-list-container[_ngcontent-%COMP%]   .solution-list-main[_ngcontent-%COMP%]   .solution-list-header[_ngcontent-%COMP%]   .sort[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-child{border-left:none;border-radius:0 3px 3px 0}.solution-list-container[_ngcontent-%COMP%]   .solution-list-main[_ngcontent-%COMP%]   .solution-list-header[_ngcontent-%COMP%]   .sort[_ngcontent-%COMP%]   span.active[_ngcontent-%COMP%]{background:var(--dweb-text-secondary);color:#fff;border-color:var(--dweb-text-secondary)}@media screen and (max-width:2000px){.solution-list-container[_ngcontent-%COMP%]{width:1526px}.solution-list-container[_ngcontent-%COMP%]   .solution-list-main[_ngcontent-%COMP%]{margin:10px 303px 0}}@media screen and (max-width:1550px){.solution-list-container[_ngcontent-%COMP%]{width:1326px}.solution-list-container[_ngcontent-%COMP%]   .solution-list-main[_ngcontent-%COMP%]{margin:10px 303px 0}}"]});let o=n;return o;})();var gh=(()=>{let n=class n{constructor(e,t){this.http=e,this.message=t,this._examinations$=new U(),this.examinations$=this._examinations$.asObservable(),this._examinationStatus$=new U(),this.examinationStatus$=this._examinationStatus$.asObservable();}getExaminations(e){this.http.get(j.getExaminations(e)).subscribe(t=>{t.succeeded?this._examinations$.next(t.resp_data.examinations):this.http.handleExceptionCode(t,"\u83B7\u53D6\u661F\u7403\u5BA1\u6279\u9879\u5931\u8D25");});}setExamination(e,t,r){let a={req_data:{examination_ids:[e],status:t}};this.http.put(j.examination,a).subscribe(p=>
146{p.succeeded?(this._examinationStatus$.next(!0),t==="allowed"?this.message.info({content:`\u64CD\u4F5C\u6210\u529F\uFF0C\u5DF2\u5141\u8BB8${r}\u52A0\u5165\u661F\u7403`,type:"success"}):this.message.info({content:`\u64CD\u4F5C\u6210\u529F\uFF0C\u5DF2\u5FFD\u7565${r}\u7684\u8BF7\u6C42`,type:"success"})):this.http.handleExceptionCode(p,"\u5BA1\u6279\u661F\u7403\u65B0\u6210\u5458\u5931\u8D25");});}};n.ɵfac=function(t){return new(t||n)(re(W),re(le));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var zE=o=>["/group/",o],GE=o=>({display:o}),jE=o=>[o];function $E(o,n){if(o&1&&(s(0,"a",2)(1,"div",4),g(2),c()()),o&2){let i=d();C("routerLink",R(2,zE,i.selectedGroup.group_id)),l(2),A(i.selectedGroup.name);}}function HE(o,n){o&1&&M(0,"app-skeleton");}function UE(o,n){if(o&1&&(s(0,"div",6),B(1,HE,1,0,"app-skeleton",null,Y),c()),o&2){let i=d();l(),N(i.skeletonArray);}}function qE(o,n){if(o&1&&M(0,"app-image-gallery",17),o&2){let i=d().$implicit;C("images",R(1,jE,i.image));}}function QE(o,n){if(o&1){let i=y();s(0,"li")(1,"div"),M(2,"img",11),$(3,"transformTopicAvatar"),c(),s(4,"div",12),M(5,"span",13),$(6,"transformOwner"),s(7,"span",14),g(8),$(9,"transformFullTime"),c(),s(10,"div",15),M(11,"div",16),c(),h(12,qE,1,3,"app-image-gallery",17),s(13,"div",18)(14,"span",19),f("click",function(){let t=b(i).$index,r=d(2);return P(r.handleExamination("ignored",t));}),g(15,"\u5FFD\u7565"),c(),s(16,"span",19),f("click",function(){let t=b(i).$index,r=d(2);return P(r.handleExamination("allowed",t));}),g(17,"\u540C\u610F"),c()()()();}if(o&2){let i=n.$implicit;l(2),C("src",Z(3,6,i),se),l(3),C("parseName",Z(6,8,i)),l(3),A(Z(9,10,i.create_time)),l(3),C("ngStyle",R(12,GE,i.message?"":"none"))("parseHtml",i.message),l(),_(i.image?12:-1);}}function WE(o,n){if(o&1&&(s(0,"div",7)(1,"div",8),g(2,"\u5168\u90E8\u5BA1\u6279\u8BF7\u6C42"),c(),s(3,"div",9),B(4,QE,18,14,"li",null,hn),c(),s(6,"div",10),g(7,"\u6CA1\u6709\u66F4\u591A\u4E86"),c()()),o&2){let i=d();l(4),N(i.examinationList);}}var uh=(()=>{let n=class n{constructor(e,t,r){this.route=e,this.examinationListService=t,this.indexService=r,this.subscriptions=[],this.isLoading=!0,this.skeletonArray=[1,2,3],this.examinationList=[];}ngOnInit(){this.groupId=Number(this.route.snapshot.paramMap.get("id")),this.doSubscribe(),this.selectedGroup=this.indexService.getTargetGroup(),this.selectedGroup&&this.fetchData(this.groupId);}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}doSubscribe(){let e=this.examinationListService.examinations$.subscribe(r=>{this.isLoading=!1,r.forEach(a=>{a.type="examination",a.message||(a.message="\u7533\u8BF7\u52A0\u5165\uFF0C\u8BF7\u5BA1\u6279");}),this.examinationList=r;}),t=this.examinationListService.examinationStatus$.subscribe(r=>{this.examinationList.splice(this.targetIndex,1);});this.subscriptions.push(e,t);}fetchData(e){this.examinationListService.getExaminations(e);}handleExamination(e,t){this.targetIndex=t,this.examinationListService.setExamination(this.examinationList[t].examination_id,e,this.examinationList[t].invitee.name);}};n.ɵfac=function(t){return new(t||n)(O(ke),O(gh),O(q));},n.ɵcmp=F({type:n,selectors:[["app-examination-list"]],standalone:!1,decls:9,vars:2,consts:[[1,"examination-list-container"],[1,"left"],[1,"index","item",3,"routerLink"],[1,"examination","item"],[1,"text"],[1,"examination-list-main"],[1,"skeleton-container"],[1,"examination"],[1,"title"],[1,"list"],[1,"footer"],[1,"avatar",3,"src"],[2,"width","100%","position","relative"],[1,"name",3,"parseName"],[1,"time"],[1,"content"],[1,"text",3,"ngStyle","parseHtml"],[3,"images"],[1,"operate-btn"],[3,"click"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1),h(2,$E,3,4,"a",2),s(3,"div",3)(4,"div",4),g(5,"\u5BA1\u6279\u8BF7\u6C42"),c()()(),s(6,"div",5),h(7,UE,3,0,"div",6)(8,WE,8,0,"div",7),c()()),t&2&&(l(2),_(r.selectedGroup?2:-1),l(5),_(r.isLoading?7:8));},dependencies:[De,lt,kt,xt,ve,ze,Xt,Si,St],styles:[".examination-list-container[_ngcontent-%COMP%]{width:1906px;padding-top:50px;padding-bottom:32px;margin:0 auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.examination-list-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{box-sizing:border-box;position:fixed;width:310px;padding-top:24px;padding-right:60px;display:flex;flex-direction:column;align-items:flex-end;font-family:PingFangSC-Medium}.examination-list-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:16px}.examination-list-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]{cursor:pointer;margin-bottom:24px}.examination-list-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{height:22px;line-height:22px;color:var(--dweb-text-faint, #C5C6CB);margin-left:12px}.examination-list-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .examination[_ngcontent-%COMP%]{text-align:center}.examination-list-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .examination[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{height:22px;line-height:22px;color:var(--dweb-brand, #16B998);margin-left:12px}.examination-list-container[_ngcontent-%COMP%]   .examination-list-main[_ngcontent-%COMP%]{margin:0 343px}.examination-list-container[_ngcontent-%COMP%]   .examination-list-main[_ngcontent-%COMP%]   .skeleton-container[_ngcontent-%COMP%]{margin-top:10px}.examination-list-container[_ngcontent-%COMP%]   .examination-list-main[_ngcontent-%COMP%]   .examination[_ngcontent-%COMP%]{margin-top:10px;background:var(--dweb-bg-panel, #FFFFFF);border-radius:4px}.examination-list-container[_ngcontent-%COMP%]   .examination-list-main[_ngcontent-%COMP%]   .examination[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{height:40px;line-height:40px;padding-left:20px;font-family:PingFangSC-Medium;font-size:12px;color:var(--dweb-text-faint, #C5C6CB);border-bottom:1px solid rgba(0,0,0,.05)}.examination-list-container[_ngcontent-%COMP%]   .examination-list-main[_ngcontent-%COMP%]   .examination[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding-bottom:20px;margin:20px 20px 0;list-style:none;display:flex;border-bottom:1px solid rgba(0,0,0,.05)}.examination-list-container[_ngcontent-%COMP%]   .examination-list-main[_ngcontent-%COMP%]   .examination[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .avatar[_ng
146content-%COMP%]{height:30px;width:30px;border-radius:50%;background-color:var(--dweb-bg-subtle, #F5F6F7);margin-right:15px}.examination-list-container[_ngcontent-%COMP%]   .examination-list-main[_ngcontent-%COMP%]   .examination[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{position:relative}.examination-list-container[_ngcontent-%COMP%]   .examination-list-main[_ngcontent-%COMP%]   .examination[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%], .examination-list-container[_ngcontent-%COMP%]   .examination-list-main[_ngcontent-%COMP%]   .examination[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .time[_ngcontent-%COMP%]{font-family:PingFangSC-Regular;font-size:12px;color:var(--dweb-text-faint)}.examination-list-container[_ngcontent-%COMP%]   .examination-list-main[_ngcontent-%COMP%]   .examination[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{margin-right:10px}.examination-list-container[_ngcontent-%COMP%]   .examination-list-main[_ngcontent-%COMP%]   .examination[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{margin-top:6px;font-family:PingFangSC-Regular;font-size:14px;color:var(--dweb-text-primary);line-height:21px;margin-right:150px}.examination-list-container[_ngcontent-%COMP%]   .examination-list-main[_ngcontent-%COMP%]   .examination[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .operate-btn[_ngcontent-%COMP%]{position:absolute;right:0;top:50%;transform:translateY(-50%)}.examination-list-container[_ngcontent-%COMP%]   .examination-list-main[_ngcontent-%COMP%]   .examination[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .operate-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;font-family:PingFangSC-Medium;font-size:16px;color:gray;text-align:center}.examination-list-container[_ngcontent-%COMP%]   .examination-list-main[_ngcontent-%COMP%]   .examination[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .operate-btn[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:last-child{color:#fff;width:70px;height:32px;line-height:32px;background:var(--dweb-brand);box-shadow:0 1px 2px #0000000d;border-radius:2px;margin-left:30px}.examination-list-container[_ngcontent-%COMP%]   .examination-list-main[_ngcontent-%COMP%]   .examination[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]{padding:20px 0;font-size:12px;color:var(--dweb-text-faint, #C5C6CB);text-align:center}@media screen and (max-width:2000px){.examination-list-container[_ngcontent-%COMP%]{width:1526px}.examination-list-container[_ngcontent-%COMP%]   .examination-list-main[_ngcontent-%COMP%]{margin:0 303px}}@media screen and (max-width:1550px){.examination-list-container[_ngcontent-%COMP%]{width:1326px}.examination-list-container[_ngcontent-%COMP%]   .examination-list-main[_ngcontent-%COMP%]{margin:0 303px}}"]});let o=n;return o;})();var Dr=(()=>{let n=class n{constructor(e,t,r){this.router=e,this.http=t,this.indexService=r;}canActivate(e){let t=window.location.href,r=()=>t.match(/#\/index\/\d{6,}/g)?(window.location.replace(t.replace("#/index/","group/")),!1):t.match(/dweb2\/index\/group\/\d{6,}/g)?(window.location.replace(t.replace("dweb2/index/group/","group/")),!1):t.match(/index\/group\/\d{6,}/g)?(window.location.replace(t.replace("index/group/","group/")),!1):t.match(/dweb2\/index\/topic_detail\//g)?(window.location.replace(t.replace("dweb2/index/topic_detail/","topic/")),!1):t.match(/index\/topic_detail\//g)?(window.location.replace(t.replace("index/topic_detail/","topic/")),!1):t.match(/\/index\//g)?(window.location.replace(t.replace("/index/","/")),!1):!0,a=()=>{var m,v;let p=sessionStorage.getItem("groupID_Mweb");if(t.includes("type=group")){let x=new RegExp(/\/group\/(\d+)\?type\=group/),w=zp("group_id")||Number(t.match(x)[1]);window.location.href=`${ie.SEO_GROUP_URL}${w}.html?${location.href.split("?")[1]}`;}else if(t.includes("/topic/")&&p&&p!=="undefined")sessionStorage.removeItem("groupID_Mweb"),window.location.href=`${ie.SEO_GROUP_URL}${p}.html`;else{sessionStorage.setItem("enterablePage",location.href);let x=(v=(m=e.data)==null?void 0:m.loginRoute)!=null?v:["login"];this.router.navigate(x);}};if(Np()){let p=[{included:"/topic_detail",searchString:"topic_detail/",mwebURL:m=>`${ie.MWEB_URL}topicdetail/topicdetail.html?topic_id=${m}`},{included:"/topic",searchString:"topic/",mwebURL:m=>`${ie.MWEB_URL}topicdetail/topicdetail.html?topic_id=${m}`},{included:"/digests",searchString:"/digests/",mwebURL:m=>`${ie.MWEB_URL}digests/index.html?group_id=${m}`},{included:"/group",searchString:"/group/",mwebURL:m=>`${ie.MWEB_URL}topic/topic.html?group_id=${m}`}];for(let m of p)if(t.includes(m.included)){let v=t.indexOf(m.searchString)+m.searchString.length,x=t.lastIndexOf("?");return x===-1&&(x=t.length),window.location.replace(m.mwebURL(t.substring(v,x))),!1;}}if(this.indexService.hasUserInfo())return r();if(!t.includes("/topic/")){if(!t.includes("/group/")){if(!t.includes("/rankings/")){if(!t.includes("/footprint/"))return this.http.get(j.self,!0,!0).pipe(Dt(p=>
146{if(p.succeeded)this.indexService.setUserInfo(p.resp_data);else if(p.code===401)return a(),!1;return r();}));}}}}};n.ɵfac=function(t){return new(t||n)(re(ue),re(W),re(q));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var XE=o=>({active:o});function JE(o,n){o&1&&M(0,"i",10);}function YE(o,n){if(o&1){let i=y();s(0,"div",9),h(1,JE,1,0,"i",10),s(2,"span",11),f("click",function(){let t=b(i),r=t.$implicit,a=t.$index,p=d(4);return P(p.breadcrumbClick(r,a));}),g(3),c()();}if(o&2){let i=n.$implicit,e=n.$index,t=d(4);l(),_(e!==0?1:-1),l(),C("ngClass",R(3,XE,e===t.breadcrumbs.length-1)),l(),A(i.title);}}function KE(o,n){if(o&1&&(s(0,"div",5),B(1,YE,4,5,"div",9,Y),c()),o&2){let i=d(3);l(),N(i.breadcrumbs);}}function ZE(o,n){if(o&1&&(s(0,"div",6)(1,"div",12),M(2,"i"),s(3,"span"),g(4,"\u5185\u5BB9\u6982\u89C8"),c()(),s(5,"div",13),g(6),c()()),o&2){let i=d(3);l(6),V(" ",i.publicPreviewTopic.ai_content.abstract," ");}}function e5(o,n){if(o&1&&M(0,"app-topic-detail-public",8),o&2){let i=d(3);C("topic",i.publicPreviewTopic)("groupInfo",i.publicGroupInfo);}}function t5(o,n){if(o&1&&(s(0,"div",4),h(1,KE,3,0,"div",5),c(),h(2,ZE,7,1,"div",6),M(3,"app-skeleton",7),h(4,e5,1,2,"app-topic-detail-public",8)),o&2){let i=d(2);l(),_(i.breadcrumbs.length?1:-1),l(),_(i.publicPreviewTopic&&i.publicPreviewTopic.ai_content?2:-1),l(),C("hidden",i.publicPreviewTopic),l(),_(i.publicPreviewTopic?4:-1);}}function n5(o,n){if(o&1){let i=y();s(0,"div",3),M(1,"div",14),s(2,"div",15),f("click",function(){b(i);let t=d(2);return P(t.toLogin());}),g(3,"\u767B\u5F55\u540E\u67E5\u770B"),c(),s(4,"footer"),M(5,"div",16)(6,"div",17)(7,"div",16),c()();}}function i5(o,n){if(o&1&&(s(0,"div",1),h(1,t5,5,4)(2,n5,8,0,"div",3),c()),o&2){let i=d();l(),_(i.isError?2:1);}}function o5(o,n){if(o&1){let i=y();s(0,"span",19),M(1,"i",23),s(2,"span",24),f("click",function(){b(i);let t=d(2);return P(t.backToGroupPage(t.groupInfo.group_id));}),g(3),c()();}if(o&2){let i=d(2);l(3),V("\u8FD4\u56DE ",i.groupInfo.name);}}function r5(o,n){if(o&1&&M(0,"app-topic-detail",21),o&2){let i=d(2);C("topicData",i.topic);}}function a5(o,n){if(o&1&&M(0,"app-topic-detail-preview",22),o&2){let i=d(2);C("topicData",i.previewTopic.topic)("groupInfo",i.publicGroupInfo)("topicPreviewMode",i.previewTopic.mode);}}function s5(o,n){if(o&1&&(s(0,"div",18)(1,"span"),g(2,"\u8BE6\u60C5"),c(),h(3,o5,4,1,"span",19),c(),s(4,"div",20),M(5,"app-skeleton",7),h(6,r5,1,1,"app-topic-detail",21),h(7,a5,1,3,"app-topic-detail-preview",22),c()),o&2){let i=d();l(3),_(i.groupInfo?3:-1),l(2),C("hidden",i.groupInfo||i.previewTopic||i.publicPreviewTopic),l(),_(i.groupInfo?6:-1),l(),_(i.previewTopic?7:-1);}}function c5(o,n){if(o&1){let i=y();s(0,"div",2),M(1,"app-group-info-card",25),s(2,"span",26)(3,"span",24),f("click",function(){b(i);let t=d();return P(t.backToGroupPage(t.groupInfoCardGroupId));}),g(4,"\u8FDB\u5165\u661F\u7403\u4E3B\u9875"),c(),M(5,"span",27),c()();}if(o&2){let i=d();l(),C("groupId",i.groupInfoCardGroupId);}}var Il=(()=>{let n=class n{constructor(e,t,r,a,p,m,v,x,w){this.topicDetailPageService=e,this.topicDetailService=t,this.groupListService=r,this.indexService=a,this.topicOwnService=p,this.groupOverviewService=m,this.meta=v,this.titleService=x,this.router=w,this.allowCopy=!1,this.subscriptions=[],this.isNoLogin=!1,this.isError=!1,this.isLabelError=!1,this.breadcrumbs=[],this.publicLabels=[],this.metaKeywords="";}ngOnInit(){this.indexService.topicPreviewReferrer=document.referrer,this.getTopicId(),this.doSubscribe(),this.getTopicDetail();}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}get groupInfoCardGroupId(){var e,t;return((e=this.publicGroupInfo)==null?void 0:e.group_id)||((t=this.breadcrumbs[this.breadcrumbs.length-1])==null?void 0:t.group_id);}getTopicId(){let e=/topic\/([0-9]+)/,t=window.location.href,r=e.exec(t);if(!r||r.length<2){console.error("not found topicid");return;}this.topicId=r[1];}getTopicDetail(){this.indexService.hasUserInfo()?this.topicDetailPageService.getTopic(this.topicId):(this.isNoLogin=!0,this.topicDetailPageService.getPublicTopic(this.topicId));}doSubscribe(){let e=this.topicDetailPageService.topicDetail$.subscribe(k=>{k.openType="detail",this.topic=k,this.setMetaTags(k),this.handleSensor({group_id:k.group.group_id,topic_id:this.topicId},!1);}),t=this.topicDetailPageService.previewTopicDetail$.subscribe(k=>{this.topicDetailPageService.getPublicGroupInfo(k.topic.group.group_id),this.setMetaTags(k.topic),this.handleSensor({group_id:k.topic.group.group_id,topic_id:this.topicId},!1),k.mode==="preview_omitted"&&k.topic.answered&&(k.topic.answer={owner:k.topic.question.questionee}),this.groupListService.setSelectedGroup(k.topic.group),this.previewTopic={topic:k.topic,mode:k.mode};}),r=this.topicDetailPageService.publicGroupInfo$.subscribe(k=>{this.publicGroupInfo=k;}
146),a=this.topicDetailPageService.noLoginPreviewTopicDetail$.subscribe(k=>{k==="error"?this.isError=!0:(this.publicPreviewTopic=k,this.setMetaTags(k),this.topicDetailPageService.getPublicLabel(k.group_id),this.groupOverviewService.getPublicPreviewInfo(k.group_id)),this.handleSensor({group_id:k==="error"?0:k.group_id,topic_id:this.topicId},!0);}),p=this.groupOverviewService.previewInfo$.subscribe(k=>{this.publicGroupInfo=k;}),m=this.topicDetailPageService.noLoginLabel$.subscribe(k=>{this.publicLabels=k,this.breadcrumbs=[{title:"\u5168\u90E8"},{title:this.publicPreviewTopic.group_name,group_id:this.publicPreviewTopic.group_id}],k[0]&&this.breadcrumbs.splice(1,0,k[0]);}),v=this.topicDetailPageService.groupInfo$.subscribe(k=>{this.groupListService.setSelectedGroup(k),this.groupInfo=k,this.topicDetailService.getComments(this.topicId,""),this.updatePageUrl();}),x=this.indexService.editedTopic$.subscribe(k=>{let S=this.topic.type==="q&a"?"answer":this.topic.type;k.process_status&&(this.topic.process_status=k.process_status),this.topic[S]=k[S];}),w=this.topicDetailPageService.metaTags$.subscribe(k=>{let S=k.map(E=>decodeURIComponent(E.name)).join(",");this.meta.updateTag({name:"keywords",content:`${S}\u3001${this.metaKeywords}`});});this.subscriptions.push(e,t,v,x,r,a,p,m,w);}breadcrumbClick(e,t){t===0?window.open(`${ie.SEO_GROUP_URL}index.html`):t===1?window.open(`${ie.SEO_GROUP_URL}index.html?label=${e.label_id}`):ne(`group/${e.group_id}`);}backToGroupPage(e){window.location.href=`${location.origin}/group/${e}`;}updatePageUrl(){if(!this.groupInfo.group_id)return;let e=window.location.href;if(e.indexOf(`group/${this.groupInfo.group_id}/topic`)!==-1)return;let t=e;e.indexOf("group/")===-1?t=e.replace(/topic/,`group/${this.groupInfo.group_id}/topic`):t=e.replace(/group\/(\d+)\/topic/,`group/${this.groupInfo.group_id}/topic`),window.history.replaceState(null,"",t);}setMetaTags(e){var a,p,m;let t="\u77E5\u8BC6\u661F\u7403\u662F\u521B\u4F5C\u8005\u8FDE\u63A5\u94C1\u6746\u7C89\u4E1D\uFF0C\u5B9E\u73B0\u77E5\u8BC6\u53D8\u73B0\u7684\u5DE5\u5177\u3002\u4EFB\u4F55\u4ECE\u4E8B\u521B\u4F5C\u6216\u827A\u672F\u7684\u4EBA\uFF0C\u4F8B\u5982\u827A\u672F\u5BB6\u3001\u5DE5\u5320\u3001\u6559\u5E08\u3001\u5B66\u672F\u7814\u7A76\u3001\u79D1\u666E\u7B49\uFF0C\u53EA\u8981\u80FD\u83B7\u5F97\u4E00\u5343\u4F4D\u94C1\u6746\u7C89\u4E1D\uFF0C\u5C31\u8DB3\u591F\u751F\u8BA1\u65E0\u5FE7\uFF0C\u81EA\u7531\u521B\u4F5C\u3002\u793E\u7FA4\u7BA1\u7406\u3001\u5185\u5BB9\u6C89\u6DC0\u3001\u94FE\u63A5\u7C89\u4E1D\u7B49\u5C31\u5728\u77E5\u8BC6\u661F\u7403\u3002",r=e.type==="talk"&&(a=e==null?void 0:e.talk)!=null&&a.article?(p=e==null?void 0:e.talk)==null?void 0:p.article.title:"";this.titleService.setTitle(`${e.title||r||((m=e==null?void 0:e.ai_content)==null?void 0:m.title)||t}-\u77E5\u8BC6\u661F\u7403`),e.ai_content&&this.meta.updateTag({name:"description",content:e.ai_content.abstract}),this.metaKeywords=`${e.group?e.group.name:e.group_name}${e.ai_content?"\u3001"+e.ai_content.keywords:""}`,this.meta.updateTag({name:"keywords",content:this.metaKeywords});}handleSensor(e,t){!document.referrer.includes(ie.BASE_URL)&&document.referrer&&$e("VisitorMode_TopicDetailsView_Visit",e,t);}toLogin(){this.router.navigate(["login"],{queryParams:{topicdetail_nologin:1,topic_id:this.topicId}});}};n.ɵfac=function(t){return new(t||n)(O(Qp),O(Te),O(ce),O(q),O(Ye),O(hd),O(Xr),O(Jn),O(ue));},n.ɵcmp=F({type:n,selectors:[["app-topic-detail-page"]],standalone:!1,decls:4,vars:2,consts:[[1,"topic-detail-page"],[1,"public-detail"],[1,"group-info-card"],[1,"error-detail"],[1,"header-container"],[1,"breadcrumbs"],[1,"ai-container"],[3,"hidden"],[3,"topic","groupInfo"],[1,"breadcrumbs-item"],[1,"breadcrumb-arrow"],[1,"breadcrumb-title",3,"click","ngClass"],[1,"title-container"],[1,"ai-content"],[1,"no-permission-icon"],[1,"to-login",3,"click"],[1,"horizon-line"],[1,"logo"],[1,"enter-group"],[1,"group-name"],[1,"container"],[3,"topicData"],["fromWhere","topic-detail-page",3,"topicData","groupInfo","topicPreviewMode"],[1,"icon"],[3,"click"],[3,"groupId"],[1,"enter-group-btn"],[1,"enter-group-icon"]],template:function(t,r){t&1&&(s(0,"div",0),h(1,i5,3,1,"div",1)(2,s5,8,4),c(),h(3,c5,6,1,"div",2)),t&2&&(l(),_(r.isNoLogin?1:2),l(2),_(r.groupInfoCardGroupId?3:-1));},dependencies:[K,ve,Od,_d,ft,fs],styles:['.topic-detail-page[_ngcontent-%COMP%]{max-width:880px;min-width:600px;padding:50px 60px 32px;margin:0 auto;box-sizing:border-box;background-color:var(--dweb-bg-panel)}.topic-detail-page[_ngcontent-%COMP%]   .enter-group-btn[_ngcontent-%COMP%]{font-size:14px;color:var(--dweb-info);font-style:normal;cursor:pointer}.enter-group-icon[_ngcontent-%COMP%]{width:12px;height:12px;display:inline-block;margin-left:5px;position:relative;top:1px;background-image:url("./media/[email protected]");background-position:-909px -474px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.enter-group-icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]");background-size:1024px 1057px}}.enter-group[_ngcontent-%COMP%]{height:59px;line-height:59px;margin-bottom:30px;font-family:PingFangSC-Medium;font-size:16px;color:var(--dweb-text-muted);display:flex;justify-content:space-between;border-bottom:1px solid var(--dweb-border-faint-6);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
146.enter-group[_ngcontent-%COMP%]   .group-name[_ngcontent-%COMP%]{cursor:pointer}.enter-group[_ngcontent-%COMP%]   .group-name[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{display:inline-block;width:18px;height:12px;background-image:url("./media/[email protected]");background-position:-440px -500px;margin-right:9px}.public-detail[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding-top:24px}.public-detail[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]   .breadcrumbs[_ngcontent-%COMP%], .public-detail[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]   .breadcrumbs[_ngcontent-%COMP%]   .breadcrumbs-item[_ngcontent-%COMP%]{display:flex;align-items:center}.public-detail[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]   .breadcrumbs[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:0 6px;width:12px;height:12px;background-image:url("./media/breadcrumb_arrow-KC6DSUVZ.png")}.public-detail[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]   .breadcrumbs[_ngcontent-%COMP%]   .breadcrumb-title[_ngcontent-%COMP%]{font-weight:500;font-size:16px;color:var(--dweb-text-secondary);cursor:pointer}.public-detail[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]   .breadcrumbs[_ngcontent-%COMP%]   .breadcrumb-title.active[_ngcontent-%COMP%]{color:var(--dweb-info)}.public-detail[_ngcontent-%COMP%]   .ai-container[_ngcontent-%COMP%]{width:100%;background:linear-gradient(180deg,var(--dweb-bg-brand-tint) 0%,var(--dweb-bg-brand-tint-end) 100%);border-radius:16px;border:2px solid var(--dweb-border-brand-tint);margin-top:24px;padding:20px 16px;box-sizing:border-box}.public-detail[_ngcontent-%COMP%]   .ai-container[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px}.public-detail[_ngcontent-%COMP%]   .ai-container[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{width:16px;height:16px;margin-right:8px;background-image:url("./media/decoration_icon-JSCE2B4N.png")}.public-detail[_ngcontent-%COMP%]   .ai-container[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:500;font-size:16px;color:var(--dweb-brand)}.public-detail[_ngcontent-%COMP%]   .ai-container[_ngcontent-%COMP%]   .ai-content[_ngcontent-%COMP%]{line-height:26px;font-size:15px;color:var(--dweb-text-primary);white-space:pre-line}.public-detail[_ngcontent-%COMP%]   .error-detail[_ngcontent-%COMP%]{min-height:calc(100vh - 82px);display:flex;justify-content:center;align-items:center;flex-direction:column}.public-detail[_ngcontent-%COMP%]   .error-detail[_ngcontent-%COMP%]   .no-permission-icon[_ngcontent-%COMP%]{width:112px;height:62px;background-image:url("./media/[email protected]");background-position:-341px -65px}.public-detail[_ngcontent-%COMP%]   .error-detail[_ngcontent-%COMP%]   .to-login[_ngcontent-%COMP%]{width:120px;height:30px;line-height:30px;background:var(--dweb-brand);border-radius:4px;text-align:center;font-weight:500;font-size:14px;color:#fff;margin-top:30px;cursor:pointer}.public-detail[_ngcontent-%COMP%]   .error-detail[_ngcontent-%COMP%]   footer[_ngcontent-%COMP%]{margin-top:100px;display:flex;align-items:center}.public-detail[_ngcontent-%COMP%]   .error-detail[_ngcontent-%COMP%]   footer[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{background-image:url("./media/[email protected]");background-position:-96px -28px;height:20px;width:114px;margin:0 15px}.public-detail[_ngcontent-%COMP%]   .error-detail[_ngcontent-%COMP%]   footer[_ngcontent-%COMP%]   .horizon-line[_ngcontent-%COMP%]{border-bottom:1px solid var(--dweb-border-tooltip);width:50px}.topic-detail-page[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail, .topic-detail-page[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail-preview{position:static;background-color:var(--dweb-bg-panel);overflow-y:inherit}.topic-detail-page[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail .enter-group, .topic-detail-page[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail-preview .enter-group{dis
146play:none!important}.topic-detail-page[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail .topic-detail-panel, .topic-detail-page[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail-preview .topic-detail-panel{padding:0!important}.topic-detail-page[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail .topic-detail-panel .header-container .homework, .topic-detail-page[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail-preview .topic-detail-panel .header-container .homework{top:-30px!important;right:0!important}.topic-detail-page[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail>.content, .topic-detail-page[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail-preview>.content{width:100%;margin-top:0;margin-bottom:0}.topic-detail-page[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail .video-area, .topic-detail-page[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail .processing, .topic-detail-page[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail-preview .video-area, .topic-detail-page[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail-preview .processing{width:540px}.topic-detail-page[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .skeleton{padding:0}.group-info-card[_ngcontent-%COMP%]{position:fixed;top:51px;left:50%;transform:translate(-50%);margin-left:580px}.group-info-card[_ngcontent-%COMP%]   .enter-group-btn[_ngcontent-%COMP%]{font-size:14px;color:var(--dweb-info);font-style:normal;cursor:pointer;display:flex;justify-content:center;margin-top:20px}.group-info-card[_ngcontent-%COMP%]   .enter-group-btn[_ngcontent-%COMP%]   .enter-group-icon[_ngcontent-%COMP%]{width:12px;height:12px;display:inline-block;margin-left:5px;position:relative;top:4px;background-image:url("./media/[email protected]");background-position:-909px -474px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.group-info-card[_ngcontent-%COMP%]   .enter-group-btn[_ngcontent-%COMP%]   .enter-group-icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]");background-size:1024px 1057px}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.group-name[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .no-permission-icon[_ngcontent-%COMP%], footer[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.title-container[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:100%}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.breadcrumbs[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:100%}}']});let o=n;return o;})();var mh=(()=>{let n=class n{constructor(e,t,r){this.http=e,this.mainService=t,this.groupListService=r,this._groupInfo$=new U(),this.groupInfo$=this._groupInfo$.asObservable(),this._searchResult$=new U(),this.searchResult$=this._searchResult$.asObservable(),this._hashtags$=new U(),this.hashtags$=this._hashtags$.asObservable(),this._editTopicId$=new U(),this.editTopicId$=this._editTopicId$.asObservable();}getGroup(e){this.http.get(j.getGroup(e)).subscribe(t=>{t.succeeded?(this.mainService.setupUserRole(t.resp_data.group),this._groupInfo$.next(t.resp_data.group),this.groupListService.setSelectedGroup(t.resp_data.group)):this.http.handleExceptionCode(t,"\u83B7\u53D6\u661F\u7403\u5931\u8D25");});}getHashTags(e){this.http.get(j.getHashTags(e,"default")).subscribe(t=>{t.succeeded?this._hashtags$.next(t.resp_data.hashtags):(this._hashtags$.next([]),this.http.handleExceptionCode(t,"\u83B7\u53D6\u661F\u7403\u7CBE\u534E\u4E3B\u9898\u6807\u7B7E\u5217\u8868\u5931\u8D25"));});}searchDigestTopic(e){this.http.get(j.searchDigestTopic(e)).subscribe(t=>{t.succeeded?this._searchResult$.next(t.resp_data):(this._searchResult$.next(null),this.http.handleExceptionCode(t,"\u
146641C\u7D22\u661F\u7403\u7CBE\u534E\u4E3B\u9898\u5931\u8D25"));});}getDigestsByTag(e){this.http.get(j.getDigestsByTag(e)).subscribe(t=>{t.succeeded?this._searchResult$.next(t.resp_data):(this._searchResult$.next(null),this.http.handleExceptionCode(t,"\u83B7\u53D6\u661F\u7403\u7CBE\u534E\u4E3B\u9898\u5217\u8868\u5931\u8D25"));});}editTopicTitle(e,t){let r={req_data:{title:t}};this.http.put(j.setTopicTitle(e),r).subscribe(a=>{a.succeeded?this._editTopicId$.next(e):(this._editTopicId$.next(0),this.http.handleExceptionCode(a,"\u8BBE\u7F6E\u7CBE\u534E\u4E3B\u9898\u6807\u9898\u5931\u8D25"));});}};n.ɵfac=function(t){return new(t||n)(re(W),re(oe),re(ce));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var p5=(o,n)=>({"page-item-active":o,loading:n}),d5=(o,n)=>({"page-prev-disabled":o,loading:n}),g5=(o,n)=>({"page-next-disabled":o,loading:n}),hh=(()=>{let n=class n{constructor(){this.isLoading=!1,this.pageChange=new H(),this.currentPage=1,this.pageIndex=[0],this.isLast=!0;}ngOnChanges(e){e.nextIndex&&(this.nextIndex?this.pageIndex.push(this.nextIndex):this.currentPage!==1&&(this.currentPage-=1),this.isLast=!e.nextIndex.currentValue);}changePage(e){this.currentPage=e;let t=this.pageIndex[e-1];window.scrollTo(0,0),this.pageChange.emit(t);}prev(){let e=this.currentPage;if(e<=1||this.isLoading)return!1;this.changePage(e-1);}next(){let e=this.currentPage;if(this.isLast||this.isLoading)return!1;this.changePage(e+1);}toFirstPage(){if(this.isLoading)return!1;this.pageIndex=[0],this.changePage(1);}};n.ɵfac=function(t){return new(t||n)();},n.ɵcmp=F({type:n,selectors:[["app-paginator"]],inputs:{nextIndex:"nextIndex",isLoading:"isLoading"},outputs:{pageChange:"page-change"},standalone:!1,features:[It],decls:7,vars:12,consts:[[1,"paginator"],[1,"page-item",3,"click","ngClass"],[1,"page-prev",3,"click","ngClass"],[1,"icon","prev"],[1,"page-next",3,"click","ngClass"],[1,"icon","next"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"li",1),f("click",function(){return r.toFirstPage();}),g(2," \u9996\u9875 "),c(),s(3,"li",2),f("click",function(){return r.prev();}),M(4,"i",3),c(),s(5,"li",4),f("click",function(){return r.next();}),M(6,"i",5),c()()),t&2&&(l(),C("ngClass",qe(3,p5,r.currentPage===1,r.isLoading)),l(2),C("ngClass",qe(6,d5,r.currentPage===1,r.isLoading)),l(2),C("ngClass",qe(9,g5,r.isLast,r.isLoading)));},dependencies:[K],styles:['.paginator[_ngcontent-%COMP%]{height:36px}.paginator[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:PingFangSC-Medium;font-size:14px;color:var(--dweb-text-muted);float:left;list-style:none;height:36px;width:36px;line-height:36px;margin-right:6px;background:var(--dweb-bg-soft);border-radius:4px;cursor:pointer;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;text-align:center;display:flex;justify-content:center;align-items:center}.paginator[_ngcontent-%COMP%]   .page-item[_ngcontent-%COMP%]:hover{background-color:#e4e5e6}.paginator[_ngcontent-%COMP%]   .page-item-active[_ngcontent-%COMP%]{pointer-events:none;background-color:var(--dweb-brand);color:#fff}.paginator[_ngcontent-%COMP%]   .page-item-active[_ngcontent-%COMP%]:hover{background-color:#14a689}.paginator[_ngcontent-%COMP%]   .page-prev-disabled[_ngcontent-%COMP%], .paginator[_ngcontent-%COMP%]   .page-next-disabled[_ngcontent-%COMP%]{pointer-events:none}.paginator[_ngcontent-%COMP%]   .page-prev-disabled[_ngcontent-%COMP%]   .prev[_ngcontent-%COMP%], .paginator[_ngcontent-%COMP%]   .page-next-disabled[_ngcontent-%COMP%]   .prev[_ngcontent-%COMP%]{background-position:-746px -474px}.paginator[_ngcontent-%COMP%]   .page-prev-disabled[_ngcontent-%COMP%]   .next[_ngcontent-%COMP%], .paginator[_ngcontent-%COMP%]   .page-next-disabled[_ngcontent-%COMP%]   .next[_ngcontent-%COMP%]{background-position:-881px -474px}.paginator[_ngcontent-%COMP%]   .page-prev[_ngcontent-%COMP%]:hover, .paginator[_ngcontent-%COMP%]   .page-next[_ngcontent-%COMP%]:hover{background-color:#e4e5e6}.paginator[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]");height:13px;width:8px}.paginator[_ngcontent-%COMP%]   .icon.prev[_ngcontent-%COMP%]{background-position:-718px -474px}.paginator[_ngcontent-%COMP%]   .icon.next[_ngcontent-%COMP%]{background-position:-909px -474px}.paginator[_ngcontent-%COMP%]   .loading[_ngcontent-%COMP%]{cursor:wait}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.paginator[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var m5=o=>
146({hide:o}),h5=o=>({actived:o}),_5=o=>({active:o});function f5(o,n){if(o&1){let i=y();s(0,"span",10),f("click",function(){let t=b(i).$implicit,r=d(2);return P(r.changeTag(t.hashtag_id));}),g(1),c();}if(o&2){let i=n.$implicit,e=d(2);C("ngClass",R(2,h5,i.hashtag_id===e.currentHashtagId)),l(),A(i.title);}}function C5(o,n){if(o&1&&(s(0,"div",1),B(1,f5,2,4,"span",9,Y),c()),o&2){let i=d();l(),N(i.hashtagList);}}function x5(o,n){if(o&1){let i=y();s(0,"a",11),f("click",function(){let t=b(i).$implicit,r=d();return P(r.changeSort(t));}),g(1),c();}if(o&2){let i=n.$implicit,e=d();C("ngClass",R(2,_5,e.currentSort.isDesc===(i.direction==="desc"))),l(),A(i.name);}}var _h=(()=>{let n=class n{constructor(){this.filterChange=new H(),this.searchInput="",this.currentHashtagId="all",this.sortItems=[{type:"by_create_time",name:"\u6700\u65B0\u53D1\u5E03",direction:"desc"},{type:"by_create_time",name:"\u6700\u65E9\u53D1\u5E03",direction:"asc"}],this.currentSort={type:"by_create_time",isDesc:!0},this.delBtnVisible=!1,this.isSearch=!1;}changeSort(e){this.currentSort={type:e.type,isDesc:e.direction==="desc"},this.emitFilter();}handleBlur(){this.searchInput.length===0&&(this.delBtnVisible=!1);}handleKeyup(e){e.keyCode===13&&(e.target.blur(),this.emitSearch());}delInput(){this.searchInput="",this.delBtnVisible=!1,this.emitSearch();}emitSearch(){this.isSearch=!0,this.currentHashtagId="all",this.currentSort={type:"by_create_time",isDesc:!0},this.emitFilter();}changeTag(e){this.searchInput="",this.delBtnVisible=!1,this.isSearch=!1,this.currentHashtagId=e,this.currentSort={type:"by_create_time",isDesc:!0},this.emitFilter();}emitFilter(){let e=this.searchInput.trim();this.filterChange.emit({hashtag_id:this.currentHashtagId,sort:this.currentSort.type,direction:this.currentSort.isDesc?"desc":"asc",keyword:e,from:this.isSearch?"search":"tag"});}};n.ɵfac=function(t){return new(t||n)();},n.ɵcmp=F({type:n,selectors:[["app-digest-topic-filter"]],inputs:{hashtagList:"hashtagList"},outputs:{filterChange:"filter-change"},standalone:!1,decls:10,vars:5,consts:[[1,"digest-topic-filter"],[1,"hashtag-list"],[1,"filter"],[1,"sort"],[1,"active",3,"ngClass"],[1,"search"],["type","text","placeholder","\u641C\u7D22\u7CBE\u534E\u4E3B\u9898","autocomplete","off","maxlength","128",3,"ngModelChange","keyup","focus","blur","ngModel"],[1,"icon","del-btn",3,"click","ngClass"],[1,"icon","search-btn",3,"click"],[1,"hashtag",3,"ngClass"],[1,"hashtag",3,"click","ngClass"],[1,"active",3,"click","ngClass"]],template:function(t,r){t&1&&(s(0,"div",0),h(1,C5,3,0,"div",1),s(2,"div",2)(3,"div",3),B(4,x5,2,4,"a",4,Y),c(),s(6,"div",5)(7,"input",6),On("ngModelChange",function(p){return Mn(r.searchInput,p)||(r.searchInput=p),p;}),f("keyup",function(p){return r.handleKeyup(p);})("focus",function(){return r.delBtnVisible=!0;})("blur",function(){return r.handleBlur();}),c(),s(8,"i",7),f("click",function(){return r.delInput();}
146),c(),s(9,"i",8),f("click",function(){return r.emitSearch();}),c()()()()),t&2&&(l(),_(r.hashtagList.length!==1?1:-1),l(3),N(r.sortItems),l(3),Pn("ngModel",r.searchInput),l(),C("ngClass",R(3,m5,!r.delBtnVisible)));},dependencies:[K,yn,kn,ki,Sn],styles:['.digest-topic-filter[_ngcontent-%COMP%]   .hashtag-list[_ngcontent-%COMP%]{position:relative;left:-10px;box-sizing:border-box;padding:16px 16px 6px;font-family:PingFangSC-Medium;font-size:14px;color:var(--dweb-text-secondary);line-height:18px;background:var(--dweb-bg-panel);border:1px solid var(--dweb-border-subtle);box-shadow:0 10px 24px #5a5c660f;border-radius:6px;height:fit-content;width:calc(100% + 20px);margin-bottom:20px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.digest-topic-filter[_ngcontent-%COMP%]   .hashtag-list[_ngcontent-%COMP%]   .hashtag[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;width:72px;height:32px;line-height:32px;text-align:center;font-size:14px;color:var(--dweb-text-secondary);border-radius:6px;margin-right:10px;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.digest-topic-filter[_ngcontent-%COMP%]   .hashtag-list[_ngcontent-%COMP%]   .hashtag[_ngcontent-%COMP%]:hover{background-color:var(--dweb-bg-soft)}.digest-topic-filter[_ngcontent-%COMP%]   .hashtag-list[_ngcontent-%COMP%]   .hashtag.actived[_ngcontent-%COMP%]{background:var(--dweb-brand);color:#fff}.digest-topic-filter[_ngcontent-%COMP%]   .hashtag-list[_ngcontent-%COMP%]   .hashtag.actived[_ngcontent-%COMP%]:hover{background-color:#14a689}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]{margin:6px 0 16px;display:flex;align-items:center;justify-content:space-between}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .sort[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;font-family:PingFangSC-Medium;font-size:14px;color:var(--dweb-text-muted);line-height:18px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .sort[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-right:30px}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .sort[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{position:relative;top:1px;display:inline-block;width:5px;height:12px;background-image:url("./media/[email protected]");background-position:-668px -475px;margin-left:5px}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .sort[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%]{color:var(--dweb-brand)}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .sort[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-position:-653px -475px}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .sort[_ngcontent-%COMP%]   a.active.desc[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-position:-683px -475px}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]{display:flex;align-items:center;box-sizing:border-box;padding:12px;width:200px;height:26px;line-height:26px;border:1px solid var(--dweb-border-subtle);border-radius:13px}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]:focus-within{border-color:var(--dweb-brand)}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-family:PingFangSC-Regular;font-size:13px;background:none;outline:none;border:none;padding:0;color:var(--dweb-text-primary);width:calc(100% - 28px)}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{border:none}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:var(--dweb-disabled)}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-moz-placeholder{color:var(--dweb-disabled)}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:-ms-input-placeholder{color:var(--dweb-disabled)}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:-moz-placeholder{color:var(--dweb-disabled)}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{cursor:pointer;width:13px;height:12px;margin-left:6px;background-image:url("./media/[email protected]")}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]   .icon.search-btn[_ngcontent-%COMP%]{background-position:-108px -421px}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]   .icon.search-btn[_ngcontent-%COMP%]:hover{background-position:-108px -443px}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]   .icon.del-btn[_ngcontent-%COMP%]{background-position:-540px -416px}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]   .icon.del-btn[_ngcontent-%COMP%]:hover{background-position:-570px -416px}.digest-topic-filter[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]   .icon.del-btn.hide[_ngcontent-%COMP%]{background-position:0 0}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.digest-topic-filter[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var b5=["paginator"],P5=(o,n)=>n.topic_id;function M5(o,n){if(o&1&&(s(0,"span"),g(1),c()),o&2){let i=d();l(),V("\uFF08",i.groupInfo.statistics.topics.digests_count,"\uFF09");}}function O5(o,n){if(o&1){let i=y();s(0,"span",8),f("click",function(){b(i);let t=d();return P(t.backToGroupPage());}),M(1,"i",9),s(2,"span"),g(3),c()();}if(o&2){let i=d();l(3),V("\u8FD4\u56DE ",i.groupInfo.name);}}function w5(o,n){o&1&&(s(0,"div",4),g(1,"\u5185\u5BB9\u52A0\u8F7D\u4E2D..."),c());}function y5(o,n){o&1&&(s(0,"div",5),M(1,"i",9),s(2,"span"),g(3,"\u8FD9\u91CC\u8FD8\u6CA1\u6709\u7CBE\u534E\u4E3B\u9898"),c()());}function k5(o,n){o&1&&(s(0,"div",12),M(1,"i",9),s(2,"span"),g(3,"\u65E0\u76F8\u5173\u5185\u5BB9"),c()());}function S5(o,n){if(o&1){let i=y();s(0,"div",27),f("click",function(t){b(i);let r=d().$implicit,a=d(2);return P(a.editTitle(t,r));}),g(1," \u7F16\u8F91\u6807\u9898 "),c();}}function T5(o,n){if(o&1){let i=y();s(0,"div",28),f("click",function(t){b(i);let r=d().$index,a=d(2);return P(a.collect(t,r));}),g(1,"\u6536\u8FDB\u4E13\u680F"),c();}}function E5(o,n){if(o&1){let i=y();s(0,"app-columns-dialog",29),f("column-emitter",function(t){b(i);let r=d(3);return P(r.close(t));}),c();}if(o&2){let i=d().$implicit;C("topic",i);}}function D5(o,n){if(o&1){let i=y();s(0,"div",14),f("click",function(){let t=b(i).$implicit,r=d(2);return P(r.toTopicDetailPage(r.groupId,t.topic_id));}),s(1,"div",15)(2,"div",16)(3,"span",17),g(4),c()(),s(5,"div",18)(6,"span",19),g(7,"\u8D5E\xA0"),s(8,"span"),g(9),$(10,"formatCount"),c()(),s(11,"span",20),g(12,"\u8BC4\u8BBA\xA0"),s(13,"span"),g(14),$(15,"formatCount"),c()(),M(16,"span",21),$(17,"transformOwner"),s(18,"span",22),g(19),c()()(),s(20,"div",23),h(21,S5,2,0,"div",24),h(22,T5,2,0,"div",25),h(23,E5,1,1,"app-columns-dialog",26),c()();}if(o&2){let i=n.$implicit,e=n.$index,t=d(2);
146l(4),A(i.title),l(5),V("",Z(10,8,i.likes_count),"\uFF1B"),l(5),A(Z(15,10,i.comments_count)),l(2),C("parseName",Z(17,12,i)),l(3),V("\xA0\xB7\xA0",i.create_time),l(2),_(t.canEditTitle?21:-1),l(),_(t.indexService.hasColumn?22:-1),l(),_(t.columnVisible===e?23:-1);}}function I5(o,n){if(o&1){let i=y();s(0,"app-digest-topic-filter",10),f("filter-change",function(t){b(i);let r=d();return P(r.filterChange(t));}),c(),s(1,"div",11),h(2,k5,4,0,"div",12),B(3,D5,24,14,"div",13,P5),c();}if(o&2){let i=d();C("hashtagList",i.hashtagList),l(2),_(i.noData?2:-1),l(),N(i.digestTopics);}}function F5(o,n){if(o&1){let i=y();s(0,"app-edit-title-dialog",30),f("handle-edit-cancel",function(){b(i);let t=d();return P(t.cancelChangeTitle());})("handle-edit-confirm",function(t){b(i);let r=d();return P(r.changeTitle(t));}),c();}if(o&2){let i=d();C("title-input",i.titleInput);}}var fh=(()=>{let n=class n{constructor(e,t,r,a){this.indexService=e,this.groupListService=t,this.digestPageService=r,this.message=a,this.subscriptions=[],this.digestTopics=[],this.hashtagList=[],this.firstLoad=!0,this.noData=!1,this.nextIndex=0,this.paginatorLoading=!1,this.isFilterPage=!1,this.filter={direction:"desc",from:"tag",hashtag_id:"all",keyword:"",sort:"by_create_time"},this.canEditTitle=!1,this.editTitleVisible=!1,this.titleInput="",this.columnVisible=-1,this.hasColumn=!1,this.topicText={talk:"talk",task:"task",solution:"solution","q&a":"question"};}ngOnInit(){this.getGroupId(),this.getGroupInfo(),this.getHashTag(),this.goSearch(0),this.doSubscribe();}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}getGroupId(){let e=/digests\/([0-9]+)/,t=window.location.href,r=e.exec(t);if(!r||r.length<2){console.error("not found groupid");return;}this.groupId=Number(r[1]);}getGroupInfo(){var r;let e=this.groupListService.getSelectedGroup(),t=!!((r=e==null?void 0:e.statistics)!=null&&r.topics)&&!!e.owner;e&&this.groupId===e.group_id&&t?(this.groupInfo=e,this.indexService.getColumnAbstract(this.groupId),this.setEditTitlePermission()):this.digestPageService.getGroup(this.groupId);}doSubscribe(){let e=this.digestPageService.groupInfo$.subscribe(p=>{this.groupInfo=p,this.indexService.getColumnAbstract(p.group_id),this.setEditTitlePermission();}),t=this.digestPageService.hashtags$.subscribe(p=>{this.hashtagList=this.handleHashtag(p);}),r=this.digestPageService.searchResult$.subscribe(p=>{var m;(m=p==null?void 0:p.topics)!=null&&m.length?(this.noData=!1,this.firstLoad=!1,this.nextIndex=p.index,this.digestTopics=this.formatTopics(p.topics)):((this.isFilterPage||this.firstLoad)&&(this.noData=!0,this.digestTopics=[]),this.nextIndex=0),this.paginatorLoading=!1,this.isFilterPage=!1;}),a=this.digestPageService.editTopicId$.subscribe(p=>{p&&this.digestTopics.forEach(m=>{m.topic_id===p&&(m.title=this.titleInput.trim());}),this.titleInput="",this.editTitleVisible=!1;});this.subscriptions.push(e,t,r,a);}backToGroupPage(){let e=location.origin+"/";window.location.href=`${e}group/${this.groupInfo.group_id}`;}toTopicDetailPage(e,t){ne(`group/${e}/topic/${t}`);}filterChange(e){this.isFilterPage=!0,this.filter=e,this.paginator.toFirstPage();}pageChange(e){this.goSearch(e);}getHashTag(){this.digestPageService.getHashTags(this.groupId);}handleHashtag(e){e.forEach(r=>{r.title=r.title.replace(/(^#)|(#$)/g,"");});let t={hashtag_id:"all",title:"\u5168\u90E8",owner:{}};return e.unshift(t),e;}goSearch(e){if(this.paginatorLoading=!0,this.filter.from==="tag"){let t={groupId:this.groupId,sort:this.filter.sort,direction:this.filter.direction,index:e};this.filter.hashtag_id!=="all"&&(t.hashtag_id=this.filter.hashtag_id),this.digestPageService.getDigestsByTag(t);}else{let t={groupId:this.groupId,keyword:this.filter.keyword,sort:this.filter.sort,direction:this.filter.direction,index:e};this.digestPageService.searchDigestTopic(t);}}setEditTitlePermission(){var r,a,p,m;let e=this.indexService.getSelfInfo("user_id"),t=(a=(r=this.groupInfo)==null?void 0:r.owner)==null?void 0:a.user_id;this.canEditTitle=((m=(p=this.groupInfo)==null?void 0:p.admin_ids)==null?void 0:m.includes(e))||!!t&&t===e;}editTitle(e,t){e.stopPropagation();let r=/(<e)[^(<ε)]*(\/>)/g;if(t.type==="talk"&&t.talk.article)this.titleInput=t.talk.article.title.replace(r,"").split(/\n|\r/)[0].substring(0,60);else{let a=this.topicText[t.type];this.titleInput=t.title?t.title.replace(r,"").substring(0,60):t[a].text.replace(r,"").split(/\n|\r/)[0].substring(0,60);}this.editTitleVisible=!0,this.editTopicId=t.topic_id;}changeTitle(e){this.titleInput=e.trim(),this.titleInput.length>0?this.digestPageService.editTopicTitle(this.editTopicId,this.titleInput):this.message.info({content:"\u8BF7\u8F93\u5165\u6807\u9898"});}cancelChangeTitle(){this.editTitleVisible=!1,this.titleInput="";}formatTopics(e){return e.forEach(t=>{t.create_time=Fe(ge(t.create_time),"yyyy/MM/dd");}),e;}collect(e,t){this.columnVisible=t,e.stopPropagation();}checkUserRole(){let e=!1,t=!1,r=!1,a=this.indexService.getSelfInfo("user_id"),p=this.groupInfo;return a===p.owner.user_id?e=!0:p.partner_ids&&p.partner_ids.indexOf(a)!==-1?t=!0:p.admin_ids&&p.admin_ids.indexOf(a)!==-1&&(r=!0),e||t||r;}clickFunc(){this.columnVisible=-1;}close(e){this.columnVisible=-1;}};n.ɵfac=function(t){return new(t||n)(O(q),O(ce),O(mh),O(le));}
146,n.ɵcmp=F({type:n,selectors:[["app-digest-topic-page"]],viewQuery:function(t,r){if(t&1&&_e(b5,5),t&2){let a;ee(a=te())&&(r.paginator=a.first);}},hostBindings:function(t,r){t&1&&f("click",function(){return r.clickFunc();},wt);},standalone:!1,decls:14,vars:8,consts:[["paginator",""],[1,"digest-topic-page"],[1,"enter-group"],[1,"group-name"],[1,"loading"],[1,"no-data-container"],[3,"page-change","isLoading","nextIndex"],[3,"title-input"],[1,"group-name",3,"click"],[1,"icon"],[3,"filter-change","hashtagList"],[1,"digest-topic-list"],[1,"no-data"],[1,"digest-topic"],[1,"digest-topic",3,"click"],[1,"digest-topic-item"],[1,"topic-content"],[1,"title"],[1,"topic-info"],[1,"like"],[1,"comment"],[1,"name",3,"parseName"],[1,"date"],[1,"operation"],[1,"edit-title","btn"],[1,"collect","btn"],[3,"topic"],[1,"edit-title","btn",3,"click"],[1,"collect","btn",3,"click"],[3,"column-emitter","topic"],[3,"handle-edit-cancel","handle-edit-confirm","title-input"]],template:function(t,r){t&1&&(s(0,"div",1)(1,"div",2)(2,"div"),g(3," \u7CBE\u534E\u4E3B\u9898"),h(4,M5,2,1,"span"),c(),h(5,O5,4,1,"span",3),c(),s(6,"main"),h(7,w5,2,0,"div",4),h(8,y5,4,0,"div",5),h(9,I5,5,2),c(),s(10,"footer")(11,"app-paginator",6,0),f("page-change",function(p){return r.pageChange(p);}),c()(),h(13,F5,1,1,"app-edit-title-dialog",7),c()),t&2&&(l(4),_(!(r.groupInfo==null||r.groupInfo.statistics==null)&&r.groupInfo.statistics.topics?4:-1),l(),_(r.groupInfo?5:-1),l(2),_(r.firstLoad&&!r.noData?7:-1),l(),_(r.firstLoad&&r.noData?8:-1),l(),_(r.firstLoad?-1:9),l(2),C("isLoading",r.paginatorLoading)("nextIndex",r.nextIndex),l(2),_(r.editTitleVisible?13:-1));},dependencies:[xt,hh,_h,Ka,Za,od,St],styles:['.digest-topic-page[_ngcontent-%COMP%]{position:relative;min-height:100vh;max-width:1200px;min-width:720px;padding:50px 40px 30px;margin:0 auto;box-sizing:border-box;background-color:var(--dweb-bg-panel)}.digest-topic-page[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]{margin-bottom:67px}.digest-topic-page[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   .loading[_ngcontent-%COMP%]{font-size:14px;color:var(--dweb-text-faint);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.digest-topic-page[_ngcontent-%COMP%]   .enter-group[_ngcontent-%COMP%]{height:59px;line-height:59px;font-family:PingFangSC-Medium;font-size:16px;color:var(--dweb-text-muted);display:flex;justify-content:space-between;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.digest-topic-page[_ngcontent-%COMP%]   .enter-group[_ngcontent-%COMP%]   .group-name[_ngcontent-%COMP%]{cursor:pointer}.digest-topic-page[_ngcontent-%COMP%]   .enter-group[_ngcontent-%COMP%]   .group-name[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{display:inline-block;width:18px;height:12px;background-image:url("./media/[email protected]");background-position:-440px -500px;margin-right:9px}.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;min-height:434px}.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]{position:relative;top:260px;color:var(--dweb-text-faint-legacy);display:flex;flex-direction:column;align-items:center}.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:87px;height:71px;background-image:url("./media/[email protected]");background-position:-87px -929px;margin-bottom:15px}.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic[_ngcontent-%COMP%]{cursor:pointer;font-size:14px;padding:12px 12px 12px 10px;border:1px solid rgba(197,198,203,.2);border-radius:6px;margin-bottom:8px;min-width:660px;display:flex;justify-content:space-between}.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic[_ngcontent-%COMP%]:hover{background:#f5f6f780}.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic-item[_ngcontent-%COMP%]   .to
146pic-content[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:10px}.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic-item[_ngcontent-%COMP%]   .topic-content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:var(--dweb-info);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic-item[_ngcontent-%COMP%]   .topic-content[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{display:none;cursor:pointer;flex-shrink:0;margin-left:20px;width:17px;height:14px;background-image:url("./media/[email protected]");background-position:-767px -599px}.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic-item[_ngcontent-%COMP%]   .topic-info[_ngcontent-%COMP%]{display:flex;align-items:center;color:var(--dweb-text-faint);margin-top:8px;font-size:13px}.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic-item[_ngcontent-%COMP%]   .topic-info[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{text-align:left;max-width:68px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:16px}.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic-item[_ngcontent-%COMP%]   .topic-info[_ngcontent-%COMP%]   .like[_ngcontent-%COMP%]{display:flex;align-items:center}.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic-item[_ngcontent-%COMP%]   .topic-info[_ngcontent-%COMP%]   .like[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:19px;height:18px;background-image:url("./media/[email protected]");background-position:-109px -307px;margin-right:6.5px}.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic-item[_ngcontent-%COMP%]   .topic-info[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]{display:flex;align-items:center}.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic-item[_ngcontent-%COMP%]   .topic-info[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:18px;height:18px;background-image:url("./media/[email protected]");background-position:-158px -308px;margin-right:6.5px}@media(max-width:720px){.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic-item[_ngcontent-%COMP%]   .topic-content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{max-width:476px}}@media(min-width:720px)and (max-width:1025px){.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic-item[_ngcontent-%COMP%]   .topic-content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{max-width:676px}}.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:right;position:relative;width:146px}.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{width:68px;height:30px;line-height:30px;text-align:center;border-radius:4px;border:1px solid rgba(197,198,203,.5);font-size:13px;font-weight:400;color:var(--dweb-text-secondary)}.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .collect[_ngcontent-%COMP%]{margin-left:10px}.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover{background:#f5f6f780}.digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]     .column-container{right:0;top:39px}.digest-topic-page[_ngcontent-%COMP%]   .no-data-container[_ngcontent-%COMP%]{color:var(--dweb-text-faint-legacy);display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.digest-topic-page[_ngcontent-%COMP%]   .no-data-container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:87px;height:71px;background-image:url("./media/[email protected]");background-position:-87px -929px;margin-bottom:15px}
146.digest-topic-page[_ngcontent-%COMP%]   footer[_ngcontent-%COMP%]{position:absolute;left:40px;right:40px;bottom:30px;border-top:1px solid rgba(0,0,0,.06);padding-top:30px}html[data-theme=dark][_nghost-%COMP%]   .digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic[_ngcontent-%COMP%]{border-color:var(--dweb-border-strong)}html[data-theme=dark][_nghost-%COMP%]   .digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic[_ngcontent-%COMP%]:hover, html[data-theme=dark]   [_nghost-%COMP%]   .digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic[_ngcontent-%COMP%]:hover{background:var(--dweb-bg-panel-2)}html[data-theme=dark][_nghost-%COMP%]   .digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{border-color:var(--dweb-border)}html[data-theme=dark][_nghost-%COMP%]   .digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:hover, html[data-theme=dark]   [_nghost-%COMP%]   .digest-topic-page[_ngcontent-%COMP%]   .digest-topic-list[_ngcontent-%COMP%]   .digest-topic[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:hover{color:var(--dweb-brand);background:var(--dweb-bg-brand-tint)}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.digest-topic-page[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();function A5(o,n){if(o&1){let i=y();s(0,"div",2)(1,"span",5),f("click",function(){b(i);let t=d();return P(t.modifyScheduledJob.emit(t.index));}),g(2,"\u4FEE\u6539"),c(),M(3,"i"),s(4,"span",5),f("click",function(){b(i);let t=d();return P(t.post.emit(t.index));}),g(5,"\u7ACB\u5373\u53D1\u5E03"),c()();}}function V5(o,n){if(o&1&&M(0,"app-talk-content",3),o&2){let i=d();C("data",i.scheduledTopic.topic);}}function R5(o,n){if(o&1&&M(0,"app-answer-content",3),o&2){let i=d();C("data",i.scheduledTopic.topic);}}var Ch=(()=>{let n=class n{constructor(e){this.topicOwnService=e,this.handleDel=new H(),this.modifyScheduledJob=new H(),this.post=new H();}};n.ɵfac=function(t){return new(t||n)(O(Ye));},n.ɵcmp=F({type:n,selectors:[["app-scheduled-topic"]],inputs:{index:"index",scheduledTopic:[0,"topic","scheduledTopic"]},outputs:{handleDel:"del",modifyScheduledJob:"modify",post:"post"},standalone:!1,features:[ot([Ye])],decls:6,vars:9,consts:[[1,"scheduled-topic"],[3,"handle-dialog","topicData","mode","index"],["name","slot",1,"operation"],[3,"data"],[2,"margin-bottom","10px",3,"tags","topic","fromWhere"],[3,"click"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"app-topic-header",1),f("handle-dialog",function(p){return r.handleDel.emit(p);}),h(2,A5,6,0,"div",2),c(),h(3,V5,1,1,"app-talk-content",3),h(4,R5,1,1,"app-answer-content",3),M(5,"app-tag-container",4),c()),t&2&&(l(),C("topicData",r.scheduledTopic.topic)("mode","scheduled")("index",r.index),l(),_(r.scheduledTopic.topic.process_status?-1:2),l(),_(r.scheduledTopic.topic.type==="talk"?3:-1),l(),_(r.scheduledTopic.topic.type==="q&a"?4:-1),l(),C("tags",r.topicOwnService.tagsArray)("topic",r.scheduledTopic.topic)("fromWhere","scheduled"));},dependencies:[ko,pn,ti,En],styles:[".scheduled-topic[_ngcontent-%COMP%]{background-color:var(--dweb-bg-panel);padding:10px;border-radius:4px;margin-bottom:10px}.scheduled-topic[_ngcontent-%COMP%]     .tag-container{margin-bottom:4px}.scheduled-topic[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]{font-family:PingFangSC-Medium;font-size:12px;color:var(--dweb-info);display:flex;align-items:center}.scheduled-topic[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{cursor:pointer}.scheduled-topic[_ngcontent-%COMP%]   .operation[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{width:1px;height:10px;background:#d6d6d6;margin:0 8px}"]});let o=n;return o;})();var B5=o=>["/group/",o],N5=(o,n)=>n.job_id;function z5(o,n){if(o&1&&(s(0,"a",2)(1,"div",4),g(2),c()()),o&2){let i=d();C("routerLink",R(2,B5,i.selectedGroup.group_id)),l(2),A(i.selectedGroup.name);}}function G5(o,n){o&1&&M(0,"app-skeleton");}function j5(o,n){if(o&1&&(s(0,"div",6),B(1,G5,1,0,"app-skeleton",null,Y),c()),o&2){let i=d();l(),N(i.skeletonArray);}}function $5(o,n){if(o&1){let i=y();s(0,"app-scheduled-topic",14),f("del",function(t){b(i);let r=d(3);return P(r.handleDel(t));})("modify",function(t){b(i);let r=d(3);return P(r.modifyScheduledJob(t));})("post",function(t){b(i);let r=d(3);return P(r.showQuickPost(t));}),c();}if(o&2){let i=n.$implicit,e=n.$index;C("topic",i)("index",e);}}function H5(o,n){if(o&1&&(s(0,"div",10),B(1,$5,1,2,"app-scheduled-topic",12,N5),s(3,"div",13),g(4,"\u6CA1\u6709\u66F4\u591A\u4E86"),c()()),o&2){let i=d(2);l(),N(i.scheduledJobsList);}}function U5(o,n){o&1&&(s(0,"div",11),M(1,"i",15),s(2,"span"),g(3,"\u65E0\u76F8\u5173\u5185\u5BB9"),c()());}function q5(o,n){if(o&1&&(s(0,"div",9),g(1),c(),h(2,H5,5,0,"div",10)(3,U5,4,0,"div",11)),o&2){let i=d();l(),V("\u5B9A\u65F6\u53D1\u5E03 (",i.scheduledJobsList.length,"/50)"),l(),_(i.scheduledJobsList.length>0?2:3);}}function Q5(o,n){if(o&1){let i=y();s(0,"app-topic-detail",16),f("handle-topic-detail",function(){b(i);let t=d();return P(t.closeTopicDetail());}),c();}if(o&2){let i=d();C("topicData",i.selectedTopic)("topicHeaderMode","scheduled");}}function W5(o,n){if(o&1){let i=y();s(0,"app-dialog",17),f("dialog-confirm",function(){b(i);let t=d();return P(t.postScheduledJob());})("dialog-cancel",function(){b(i);let t=d();return P(t.quickPostVisible=!1);}),s(1,"div"),g(2),c()();}if(o&2){let i=d();l(2),V("\u786E\u5B9A\u8981\u7ACB\u5373\u53D1\u5E03",i.postScheduledJobTypeStr||"\u4E3B\u9898","\uFF1F");}}var xh=(()=>{let n=class n{constructor(e,t,r,a,p,m,v){this.allScheduledJobsService=e,this.route=t,this.cdr=r,this.indexService=a,this.mainService=p,this.topicDetailService=m,this.message=v,this.isLoading=!0,this.skeletonArray=[1,2,3,4],this.subscriptions=[],this.scheduledJobsList=[],this.updateTimer=null,this.quickPostVisible=!1,this.postScheduledJobTypeStr="\u4E3B\u9898";}ngOnInit(){document.body.scrollTop=document.documentElement.scrollTop=0,this.groupId=Number(this.route.
146snapshot.paramMap.get("group_id")),this.doSubscribe(),this.fetchData();}ngOnDestroy(){clearTimeout(this.updateTimer),this.subscriptions.forEach(e=>e.unsubscribe());}doSubscribe(){let e=this.allScheduledJobsService.group$.subscribe(p=>{this.indexService.setTargetGroup(p),this.selectedGroup=p,this.getScheduledJobsList();}),t=this.allScheduledJobsService.list$.subscribe(p=>{if(this.isLoading=!1,p){clearTimeout(this.updateTimer);let m=new Date(),v=7*86400;p.forEach(x=>{x.topic.create_time=Fe(ge(x.scheduled_time),"yyyy/MM/dd HH:mm");let w=ca(ge(x.scheduled_time),m);w>0&&w<=v&&(v=w);}),this.updateTimer=setTimeout(()=>{this.getScheduledJobsList();},v*1e3);}this.scheduledJobsList=p,this.cdr.detectChanges();}),r=this.allScheduledJobsService.postFlag$.subscribe(p=>{p&&this.scheduledJobsList.splice(this.targetIndex,1);}),a=this.allScheduledJobsService.delJob$.subscribe(p=>{this.scheduledJobsList=this.scheduledJobsList.filter(m=>m.job_id!==p);});this.subscriptions.push(e,t,r,a);}fetchData(){this.allScheduledJobsService.getGroup(this.groupId);}getScheduledJobsList(){this.allScheduledJobsService.getScheduledJobsList(this.groupId);}handleDel(e){var p;let t=this.scheduledJobsList[e.index].job_id,r=(p=this.scheduledJobsList[e.index].topic.talk)==null?void 0:p.article,a=this.scheduledJobsList[e.index].topic.answer;this.postScheduledJobTypeStr=r?"\u6587\u7AE0":a?"\u56DE\u7B54":"\u4E3B\u9898",this.allScheduledJobsService.delScheduledJob(this.groupId,t,this.postScheduledJobTypeStr);}modifyScheduledJob(e){var v;let t=this.scheduledJobsList[e].job_id,r=this.scheduledJobsList[e].topic;r.job={id:t,scheduled_time:this.scheduledJobsList[e].scheduled_time};let a=(v=this.scheduledJobsList[e].topic.talk)==null?void 0:v.article,p=this.scheduledJobsList[e].topic.answer,m=p==null?void 0:p.voice;a?(this.postScheduledJobTypeStr="\u6587\u7AE0",ne(`article?groupId=${this.groupId}&articleId=${a.article_id}&jobId=${t}&groupName=${r.group.name}&scheduledTime=${encodeURIComponent(r.job.scheduled_time)}`)):m?this.message.info({content:"\u8BED\u97F3\u56DE\u7B54\u4E0D\u652F\u6301\u4FEE\u6539\u7B54\u6848",type:"warning"}):p?(this.postScheduledJobTypeStr="\u56DE\u7B54",r.fromModify=!0,this.mainService.setModifyTopic(r,"QA"),this.topicDetailService.setAnswerInputStatus(!0,"scheduledJobs"),this.selectedTopic=r,this.indexService.spareScrollbarSpace(),this.showTopicDetail=!0):this.indexService.setModifyTopic(r);}showQuickPost(e){var a;let t=(a=this.scheduledJobsList[e].topic.talk)==null?void 0:a.article,r=this.scheduledJobsList[e].topic.answer;this.targetIndex=e,this.quickPostVisible=!0,this.postScheduledJobTypeStr=t?"\u6587\u7AE0":r?"\u56DE\u7B54":"\u4E3B\u9898";}postScheduledJob(){let e=this.scheduledJobsList[this.targetIndex].job_id,t=!!this.scheduledJobsList[this.targetIndex].topic.answer,r={};if(t){let a=this.scheduledJobsList[this.targetIndex].topic.answer,p=this.scheduledJobsList[this.targetIndex].topic.topic_uid||this.scheduledJobsList[this.targetIndex].topic.topic_id;r=this.handleScheduledJobAnswerData(a,p),r.postScheduledJobTypeStr=this.postScheduledJobTypeStr;}else{let a=this.scheduledJobsList[this.targetIndex].topic.talk;r=this.handleScheduledJobTopicData(a),r.postScheduledJobTypeStr=this.postScheduledJobTypeStr;}this.allScheduledJobsService.postScheduledJob(this.groupId,e,r),this.quickPostVisible=!1;}handleScheduledJobTopicData(e){let t={text:e.text};if(e.files){let r=[];e.files.forEach(a=>{r.push(a.file_id);}),t.file_ids=r;}if(e.images){let r=[];e.images.forEach(a=>{r.push(a.image_id);}),t.image_ids=r;}return e.video&&(t.video_id={video_id:e.video.video_id}),e.article&&(t.article_id=e.article.article_id),{req_data:{scheduled_time:Fe(dc(new Date(),1),"yyyy-MM-dd'T'HH:mm:ss.SSSXX"),topic:t}};}handleScheduledJobAnswerData(e,t){let r={topic_id:t,text:e.text};if(e.images){let a=[];e.images.forEach(p=>{a.push(p.image_id);}),r.image_ids=a;}return e.voice&&(r.voice={voice_id:e.voice.voice_id}),{req_data:{scheduled_time:Fe(dc(new Date(),1),"yyyy-MM-dd'T'HH:mm:ss.SSSXX"),answer:r}};}closeTopicDetail(){this.indexService.remainScrollbarStyle(),this.showTopicDetail=!1,this.selectedTopic=null;}};n.ɵfac=function(t){return new(t||n)(O(Di),O(ke),O(on),O(q),O(oe),O(Te),O(le));},n.ɵcmp=F({type:n,selectors:[["app-all-scheduled-jobs"]],standalone:!1,decls:11,vars:4,consts:[[1,"all-scheduled-jobs"],[1,"left"],[1,"index","item",3,"routerLink"],[1,"title","item"],[1,"text"],[1,"scheduled-jobs-main"],[1,"skeleton-container"],[3,"topicData","topicHeaderMode"],["title","\u53D1\u5E03\u63D0\u793A","type","common"],[1,"title"],[1,"scheduled-jobs"],[1,"n
146o-data"],[3,"topic","index"],[1,"no-more"],[3,"del","modify","post","topic","index"],[1,"icon"],[3,"handle-topic-detail","topicData","topicHeaderMode"],["title","\u53D1\u5E03\u63D0\u793A","type","common",3,"dialog-confirm","dialog-cancel"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1),h(2,z5,3,4,"a",2),s(3,"div",3)(4,"div",4),g(5,"\u5B9A\u65F6\u53D1\u5E03\u7BA1\u7406"),c()()(),s(6,"div",5),h(7,j5,3,0,"div",6)(8,q5,4,2),h(9,Q5,1,2,"app-topic-detail",7),c(),h(10,W5,3,1,"app-dialog",8),c()),t&2&&(l(2),_(r.selectedGroup?2:-1),l(5),_(r.isLoading?7:8),l(2),_(r.showTopicDetail?9:-1),l(),_(r.quickPostVisible?10:-1));},dependencies:[lt,Ze,ve,ft,Ch],styles:['.all-scheduled-jobs[_ngcontent-%COMP%]{width:1906px;padding-top:50px;padding-bottom:32px;margin:0 auto}.all-scheduled-jobs[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{box-sizing:border-box;position:fixed;width:310px;padding-top:24px;padding-right:60px;display:flex;flex-direction:column;align-items:flex-end;font-family:PingFangSC-Medium}.all-scheduled-jobs[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:16px}.all-scheduled-jobs[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]{cursor:pointer;margin-bottom:24px}.all-scheduled-jobs[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{height:22px;line-height:22px;color:var(--dweb-text-faint, #C5C6CB);margin-left:12px}.all-scheduled-jobs[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{text-align:center}.all-scheduled-jobs[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{height:22px;line-height:22px;color:var(--dweb-brand, #16B998);margin-left:12px}.all-scheduled-jobs[_ngcontent-%COMP%]   .scheduled-jobs-main[_ngcontent-%COMP%]{margin:10px 343px 0;border-radius:4px}.all-scheduled-jobs[_ngcontent-%COMP%]   .scheduled-jobs-main[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{background-color:var(--dweb-bg-panel);height:40px;line-height:40px;padding-left:20px;font-family:PingFangSC-Medium;font-size:12px;color:var(--dweb-text-faint, #C5C6CB);border-bottom:1px solid rgba(0,0,0,.05);border-top-left-radius:4px;border-top-right-radius:4px}.all-scheduled-jobs[_ngcontent-%COMP%]   .scheduled-jobs-main[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]{background-color:var(--dweb-bg-panel);padding:60px 0;color:var(--dweb-text-faint-legacy);display:flex;flex-direction:column;align-items:center;border-radius:0 0 4px 4px}.all-scheduled-jobs[_ngcontent-%COMP%]   .scheduled-jobs-main[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:87px;height:71px;background-image:url("./media/[email protected]");background-position:-87px -929px;margin-bottom:15px}.all-scheduled-jobs[_ngcontent-%COMP%]   .scheduled-jobs-main[_ngcontent-%COMP%]   .scheduled-jobs[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:first-child     .scheduled-topic{border-radius:0 0 4px 4px}.all-scheduled-jobs[_ngcontent-%COMP%]   .scheduled-jobs-main[_ngcontent-%COMP%]   .scheduled-jobs[_ngcontent-%COMP%]   .no-more[_ngcontent-%COMP%]{padding:20px 0;text-align:center;font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}@media screen and (max-width:2000px){.all-scheduled-jobs[_ngcontent-%COMP%]{width:1526px}.all-scheduled-jobs[_ngcontent-%COMP%]   .scheduled-jobs-main[_ngcontent-%COMP%]{margin:0 303px}}@media screen and (max-width:1550px){.all-scheduled-jobs[_ngcontent-%COMP%]{width:1326px}.all-scheduled-jobs[_ngcontent-%COMP%]   .scheduled-jobs-main[_ngcontent-%COMP%]{margin:0 303px}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.all-scheduled-jobs[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var vh=(()=>{let n=class n{constructor(e){this.http=e,this._topics$=new U(),this.topics$=this._topics$.asObservable();}getTopics(e,t,r=""){this.http.get(j.getCheckinTopics(e,t,r)).subscribe(a=>{a.succeeded?this._topics$.next(a.resp_data.topics):(this._topics$.next([]),this.http.handleExceptionCode(a,"\u83B7\u53D6\u6253\u5361\u4
146E3B\u9898\u5217\u8868"));});}};n.ɵfac=function(t){return new(t||n)(re(W));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var J5=o=>["/group/",o],Y5=(o,n)=>n.topic_id;function K5(o,n){if(o&1&&(s(0,"a",2)(1,"div",4),g(2),c()()),o&2){let i=d();C("routerLink",R(2,J5,i.selectedGroup.group_id)),l(2),A(i.selectedGroup.name);}}function Z5(o,n){if(o&1&&(s(0,"div",4),g(1),c()),o&2){let i=d();l(),A(i.topicList[0].checkin.title);}}function e6(o,n){o&1&&M(0,"app-skeleton");}function t6(o,n){if(o&1&&(s(0,"div",6),B(1,e6,1,0,"app-skeleton",null,Y),c()),o&2){let i=d();l(),N(i.skeletonArray);}}function n6(o,n){if(o&1){let i=y();s(0,"app-topic",12),f("view-topic-detail",function(t){b(i);let r=d(3);return P(r.receiveTopic(t));}),c();}if(o&2){let i=n.$implicit,e=n.$index;C("topicData",i)("index",e);}}function i6(o,n){if(o&1&&(s(0,"div"),B(1,n6,1,2,"app-topic",11,Y5),c()),o&2){let i=d(2);l(),N(i.topicList);}}function o6(o,n){o&1&&(s(0,"div",10),M(1,"i",8),s(2,"span"),g(3,"\u65E0\u76F8\u5173\u5185\u5BB9"),c()());}function r6(o,n){if(o&1&&h(0,i6,3,0,"div")(1,o6,4,0,"div",10),o&2){let i=d();_(i.topicList.length?0:1);}}function a6(o,n){if(o&1){let i=y();s(0,"app-lottie-loading",13),f("infinite",function(t){b(i);let r=d();return P(r.getTopics(t));}),g(1," \u4E3B\u9898\u52A0\u8F7D\u4E2D... "),c();}}function s6(o,n){if(o&1){let i=y();s(0,"app-topic-detail",14),f("handle-topic-detail",function(){b(i);let t=d();return P(t.closeTopicDetail());}),c();}if(o&2){let i=d();C("topicData",i.selectedTopic)("hasWaterMark",i.hasWaterMark);}}var bh=(()=>{let n=class n{constructor(e,t,r,a,p,m){this.route=e,this.indexService=t,this.groupListService=r,this.checkinTopicsService=a,this.topicService=p,this.topicDetailService=m,this.groupId=Number(wn("groupId")),this.checkinId=Number(this.route.snapshot.paramMap.get("id")),this.subscriptions=[],this.skeletonArray=[1,2,3],this.endTime="",this.isLoading=!0,this.topicList=[],this.noMoreTopic=!1;}ngOnInit(){this.doSubscribe(),this.selectedGroup=this.indexService.getTargetGroup(!0),this.selectedGroup&&(this.indexService.setTargetGroup(this.selectedGroup),this.groupListService.goBack=!0,this.indexService.currentList="checkin-topics",this.fetchData());}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}doSubscribe(){let e=this.topicDetailService.hasWatermark$.subscribe(a=>{this.hasWaterMark=a,this.showTopicDetail=!0,this.topicDetailService.getComments(this.selectedTopic.topic_id,this.topicDetailService.commentBeginTime);}),t=this.checkinTopicsService.topics$.subscribe(a=>{this.isLoading=!1,a&&a.length>0?(a.forEach(p=>{p.openType="checkin";}),this.endTime=mt(a[a.length-1].create_time),this.topicList=this.topicList.concat(a)):this.noMoreTopic=!0,this.infiniteFinishCallback&&this.infiniteFinishCallback(this.noMoreTopic);}),r=this.topicService.topicOperation$.subscribe(({type:a,topic:p})=>{if(a==="delete"){this.showTopicDetail&&this.closeTopicDetail();let m=this.topicList.findIndex(v=>v.topic_id===p.topic_id);this.topicList.splice(m,1);}});this.subscriptions.push(e,t,r);}fetchData(){this.indexService.getColumnAbstract(this.groupId),this.getTopics();}getTopics(e=null){this.checkinTopicsService.getTopics(this.groupId,this.checkinId,this.endTime),this.infiniteFinishCallback=e;}receiveTopic(e){this.indexService.spareScrollbarSpace(),e.comments=[],this.selectedTopic=Object.assign({},e),this.selectedTopic.openType="detail",this.topicDetailService.commentBeginTime="",this.topicDetailService.getGroupWaterMark(e.group.group_id);}closeTopicDetail(){this.indexService.remainScrollbarStyle(),this.showTopicDetail=!1;}};n.ɵfac=function(t){return new(t||n)(O(ke),O(q),O(ce),O(vh),O(Oe),O(Te));},n.ɵcmp=F({type:n,selectors:[["app-checkin-topics"]],standalone:!1,decls:12,vars:5,consts:[[1,"checkin-topics-container"],[1,"left"],[1,"index","item",3,"routerLink"],[1,"checkin","item"],[1,"text"],[1,"checkin-main"],[1,"skeleton-container"],["id","js-gotop","goto-top","",1,"go-top-btn"],[1,"icon"],[3,"topicData","hasWaterMark"],[1,"no-data"],["type","flow",3,"topicData","index"],["type","flow",3,"view-topic-detail","topicData","index"],[3,"infinite"],[3,"handle-topic-detail","topicData","hasWaterMark"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1),h(2,K5,3,4,"a",2),s(3,"div",3),h(4,Z5,2,1,"div",4),c()(),s(5,"div",5),h(6,t6,3,0,"div",6)(7,r6,2,1),h(8,a6,2,0,"app-lottie-loading"),s(9,"div",7),M(10,"div",8),c(),h(11,s6,1,2,"app-topic-detail",9),c()()),t&2&&(l(2),_(r.selectedGroup?2:-1),l(2),_(r.topicList.length?4:-1),l(2),_(r.isLoading?6:7
146),l(2),_(!r.noMoreTopic&&!r.isLoading?8:-1),l(3),_(r.showTopicDetail?11:-1));},dependencies:[lt,Ae,Qe,ve,An,ht,ft],styles:['.checkin-topics-container[_ngcontent-%COMP%]{width:1906px;padding-top:50px;padding-bottom:32px;margin:0 auto}.checkin-topics-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{box-sizing:border-box;position:fixed;width:310px;padding-top:24px;padding-right:60px;display:flex;flex-direction:column;align-items:flex-end;font-family:PingFangSC-Medium}.checkin-topics-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:16px}.checkin-topics-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]{cursor:pointer;margin-bottom:24px}.checkin-topics-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{height:22px;line-height:22px;color:var(--dweb-text-faint, #C5C6CB);margin-left:12px}.checkin-topics-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .checkin[_ngcontent-%COMP%]{text-align:center}.checkin-topics-container[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .checkin[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{height:22px;line-height:22px;color:var(--dweb-brand, #16B998);margin-left:12px}.checkin-topics-container[_ngcontent-%COMP%]   .checkin-main[_ngcontent-%COMP%]{margin:10px 343px 0}.checkin-topics-container[_ngcontent-%COMP%]   .checkin-main[_ngcontent-%COMP%]   .skeleton-container[_ngcontent-%COMP%]{margin-top:10px}.checkin-topics-container[_ngcontent-%COMP%]   .checkin-main[_ngcontent-%COMP%]   .checkin-topics[_ngcontent-%COMP%]{margin-top:10px;background:var(--dweb-bg-panel, #FFFFFF);border-radius:4px}.checkin-topics-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]{background-color:var(--dweb-bg-panel);padding:60px 0;color:var(--dweb-text-faint-legacy);display:flex;flex-direction:column;align-items:center;border-radius:0 0 4px 4px}.checkin-topics-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:87px;height:71px;background-image:url("./media/[email protected]");background-position:-87px -929px;margin-bottom:15px}@media screen and (max-width:2000px){.checkin-topics-container[_ngcontent-%COMP%]{width:1526px}.checkin-topics-container[_ngcontent-%COMP%]   .checkin-main[_ngcontent-%COMP%]{margin:10px 303px 0}}@media screen and (max-width:1550px){.checkin-topics-container[_ngcontent-%COMP%]{width:1326px}.checkin-topics-container[_ngcontent-%COMP%]   .checkin-main[_ngcontent-%COMP%]{margin:10px 303px 0}}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();function Vl(o){let n=o.cloneNode(!0),i=n.querySelectorAll("[id]"),e=o.nodeName.toLowerCase();n.removeAttribute("id");for(let t=0;t<i.length;t++)i[t].removeAttribute("id");return e==="canvas"?Oh(o,n):(e==="input"||e==="select"||e==="textarea")&&Mh(o,n),Ph("canvas",o,n,Oh),Ph("input, textarea, select",o,n,Mh),n;}function Ph(o,n,i,e){let t=n.querySelectorAll(o);if(t.length){let r=i.querySelectorAll(o);for(let a=0;a<t.length;a++)e(t[a],r[a]);}}var c6=0;function Mh(o,n){n.type!=="file"&&(n.value=o.value),n.type==="radio"&&n.name&&(n.name=`mat-clone-${n.name}-${c6++}`);}function Oh(o,n){let i=n.getContext("2d");if(i)try{i.drawImage(o,0,0);}catch(e){}}function Gl(o){let n=o.getBoundingClientRect();return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,x:n.x,y:n.y};}function Rl(o,n,i){let{top:e,bottom:t,left:r,right:a}=o;return i>=e&&i<=t&&n>=r&&n<=a;}function l6(o,n){let i=n.left<o.left,e=n.left+n.width>o.right,t=n.top<o.top,r=n.top+n.height>o.bottom;return i||e||t||r;}function Ar(o,n,i){o.top+=n,o.bottom=o.top+o.height,o.left+=i,o.right=o.left+o.width;}
146function wh(o,n,i,e){let{top:t,right:r,bottom:a,left:p,width:m,height:v}=o,x=m*n,w=v*n;return e>t-w&&e<a+w&&i>p-x&&i<r+x;}var Vs=class{constructor(n){u(this,"_document");u(this,"positions",new Map());this._document=n;}clear(){this.positions.clear();}cache(n){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),n.forEach(i=>{this.positions.set(i,{scrollPosition:{top:i.scrollTop,left:i.scrollLeft},clientRect:Gl(i)});});}handleScroll(n){let i=Ni(n),e=this.positions.get(i);if(!e)return null;let t=e.scrollPosition,r,a;if(i===this._document){let v=this.getViewportScrollPosition();r=v.top,a=v.left;}else r=i.scrollTop,a=i.scrollLeft;let p=t.top-r,m=t.left-a;return this.positions.forEach((v,x)=>{v.clientRect&&i!==x&&i.contains(x)&&Ar(v.clientRect,p,m);}),t.top=r,t.left=a,{top:p,left:m};}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX};}};function Bh(o,n){let i=o.rootNodes;if(i.length===1&&i[0].nodeType===n.ELEMENT_NODE)return i[0];let e=n.createElement("div");return i.forEach(t=>e.appendChild(t)),e;}function jl(o,n,i){for(let e in n)if(n.hasOwnProperty(e)){let t=n[e];t?o.setProperty(e,t,i!=null&&i.has(e)?"important":""):o.removeProperty(e);}return o;}function Jo(o,n){let i=n?"":"none";jl(o.style,{"touch-action":n?"":"none","-webkit-user-drag":n?"":"none","-webkit-tap-highlight-color":n?"":"transparent","user-select":i,"-ms-user-select":i,"-webkit-user-select":i,"-moz-user-select":i});}function yh(o,n,i){jl(o.style,{position:n?"":"fixed",top:n?"":"0",opacity:n?"":"0",left:n?"":"-999em"},i);}function Rs(o,n){return n&&n!="none"?o+" "+n:o;}function kh(o,n){o.style.width=`${n.width}px`,o.style.height=`${n.height}px`,o.style.transform=Vr(n.left,n.top);}function Vr(o,n){return`translate3d(${Math.round(o)}px, ${Math.round(n)}px, 0)`;}var Ir={capture:!0},Fl={passive:!1,capture:!0},p6=(()=>{let n=class n{};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275cmp",F({type:n,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(t,r){},styles:[`@layer cdk-resets {
147  .cdk-drag-preview {
148    background: none;
149    border: none;
150    padding: 0;
151    color: inherit;
152    inset: auto;
153  }
154}
155.cdk-drag-placeholder *,
156.cdk-drag-preview * {
157  pointer-events: none !important;
158}
159`],encapsulation:2,changeDetection:0}));let o=n;return o;})(),$l=(()=>{let n=class n{constructor(){u(this,"_ngZone",Q(dt));u(this,"_document",Q(Be));u(this,"_styleLoader",Q(Mr));u(this,"_renderer",Q(bn).createRenderer(null,null));u(this,"_cleanupDocumentTouchmove");u(this,"_scroll",new U());u(this,"_dropInstances",new Set());u(this,"_dragInstances",new Set());u(this,"_activeDragInstances",mn([]));u(this,"_globalListeners");u(this,"_draggingPredicate",e=>e.isDragging());u(this,"_domNodesToDirectives",null);u(this,"pointerMove",new U());u(this,"pointerUp",new U());u(this,"_preventDefaultWhileDragging",e=>{this._activeDragInstances().length>0&&e.preventDefault();});u(this,"_persistentTouchmoveListener",e=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e));});}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e);}registerDragItem(e){this._dragInstances.add(e),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{var t;(t=this._cleanupDocumentTouchmove)==null||t.call(this),this._cleanupDocumentTouchmove=this._renderer.listen(this._document,"touchmove",this._persistentTouchmoveListener,Fl);});}removeDropContainer(e){this._dropInstances.delete(e);}removeDragItem(e){var t;this._dragInstances.delete(e),this.stopDragging(e),this._dragInstances.size===0&&((t=this._cleanupDocumentTouchmove)==null||t.call(this));}startDragging(e,t){if(!(this._activeDragInstances().indexOf(e)>-1)&&(this._styleLoader.load(p6),this._activeDragInstances.update(r=>[...r,e]),this._activeDragInstances().length===1)){let r=t.type.startsWith("touch"),a=m=>this.pointerUp.next(m),p=[["scroll",m=>this._scroll.next(m),Ir],["selectstart",this._preventDefaultWhileDragging,Fl]];r?p.push(["touchend",a,Ir],["touchcancel",a,Ir]):p.push(["mouseup",a,Ir]),r||p.push(["mousemove",m=>this.pointerMove.next(m),Fl]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=p.map(([m,v,x])=>this._renderer.listen(this._document,m,v,x));});}}stopDragging(e){this._activeDragInstances.update(t=>{let r=t.indexOf(e);return r>-1?(t.splice(r,1),[...t]):t;}),this._activeDragInstances().length===0&&this._clearGlobalListeners();}isDragging(e){return this._activeDragInstances().indexOf(e)>-1;}scrolled(e){let t=[this._scroll];return e&&e!==this._document&&t.push(new Yi(r=>this._ngZone.runOutsideAngular(()=>{let a=this._renderer.listen(e,"scroll",p=>{this._activeDragInstances().length&&r.next(p);},Ir);return()=>{a();};}))),uo(...t);}registerDirectiveNode(e,t){var r;
159(r=this._domNodesToDirectives)!=null||(this._domNodesToDirectives=new WeakMap()),this._domNodesToDirectives.set(e,t);}removeDirectiveNode(e){var t;(t=this._domNodesToDirectives)==null||t.delete(e);}getDragDirectiveForNode(e){var t;return((t=this._domNodesToDirectives)==null?void 0:t.get(e))||null;}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete();}_clearGlobalListeners(){var e;(e=this._globalListeners)==null||e.forEach(t=>t()),this._globalListeners=void 0;}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})();function Sh(o){let n=o.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(o)*n;}function d6(o){let n=getComputedStyle(o),i=Al(n,"transition-property"),e=i.find(p=>p==="transform"||p==="all");if(!e)return 0;let t=i.indexOf(e),r=Al(n,"transition-duration"),a=Al(n,"transition-delay");return Sh(r[t])+Sh(a[t]);}function Al(o,n){return o.getPropertyValue(n).split(",").map(e=>e.trim());}var g6=new Set(["position"]),Ll=class{constructor(n,i,e,t,r,a,p,m,v,x){u(this,"_document");u(this,"_rootElement");u(this,"_direction");u(this,"_initialDomRect");u(this,"_previewTemplate");u(this,"_previewClass");u(this,"_pickupPositionOnPage");u(this,"_initialTransform");u(this,"_zIndex");u(this,"_renderer");u(this,"_previewEmbeddedView",null);u(this,"_preview");this._document=n,this._rootElement=i,this._direction=e,this._initialDomRect=t,this._previewTemplate=r,this._previewClass=a,this._pickupPositionOnPage=p,this._initialTransform=m,this._zIndex=v,this._renderer=x;}get element(){return this._preview;}attach(n){this._preview=this._createPreview(),n.appendChild(this._preview),Th(this._preview)&&this._preview.showPopover();}destroy(){var n;this._preview.remove(),(n=this._previewEmbeddedView)==null||n.destroy(),this._preview=this._previewEmbeddedView=null;}setTransform(n){this._preview.style.transform=n;}getBoundingClientRect(){return this._preview.getBoundingClientRect();}addClass(n){this._preview.classList.add(n);}getTransitionDuration(){return d6(this._preview);}addEventListener(n,i){return this._renderer.listen(this._preview,n,i);}_createPreview(){let n=this._previewTemplate,i=this._previewClass,e=n?n.template:null,t;if(e&&n){let r=n.matchSize?this._initialDomRect:null,a=n.viewContainer.createEmbeddedView(e,n.context);a.detectChanges(),t=Bh(a,this._document),this._previewEmbeddedView=a,n.matchSize?kh(t,r):t.style.transform=Vr(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y);}else t=Vl(this._rootElement),kh(t,this._initialDomRect),this._initialTransform&&(t.style.transform=this._initialTransform);return jl(t.style,{"pointer-events":"none",margin:Th(t)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},g6),Jo(t,!1),t.classList.add("cdk-drag-preview"),t.setAttribute("popover","manual"),t.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach(r=>t.classList.add(r)):t.classList.add(i)),t;}};function Th(o){return"showPopover"in o;}var u6={passive:!0},Eh={passive:!1},m6={passive:!1,capture:!0},h6=800,Dh="cdk-drag-placeholder",Ih=new Set(["position"]);function Nh(o,n,i={dragStartThreshold:5,pointerDirectionChangeThreshold:5}){let e=o.get(Ki,null,{optional:!0})||o.get(bn).createRenderer(null,null);return new Bl(n,i,o.get(Be),o.get(dt),o.get(Hi),o.get($l),e);}var Bl=class{constructor(n,i,e,t,r,a,p){u(this,"_config");u(this,"_document");u(this,"_ngZone");u(this,"_viewportRuler");u(this,"_dragDropRegistry");u(this,"_renderer");u(this,"_rootElementCleanups");u(this,"_cleanupShadowRootSelectStart");u(this,"_preview",null);u(this,"_previewContainer");u(this,"_placeholderRef",null);u(this,"_placeholder");u(this,"_pickupPositionInElement");u(this,"_pickupPositionOnPage");u(this,"_marker");u(this,"_anchor",null);u(this,"_passiveTransform",{x:0,y:0});u(this,"_activeTransform",{x:0,y:0});u(this,"_initialTransform");u(this,"_hasStartedDragging",mn(!1));u(this,"_hasMoved",!1);u(this,"_initialContainer");u(this,"_initialIndex");u(this,"_parentPositions");u(this,"_moveEvents",new U());u(this,"_pointerDirectionDelta");u(this,"_pointerPositionAtLastDirectionChange");u(this,"_lastKnownPointerPosition");u(this,"_rootElement");u(this,"_ownerSVGElement",null);u(this,"_rootElementTapHighlight");u(this,"_pointerMoveSubscription",qn.EMPTY);u(this,"_pointerUpSubscription",qn.EMPTY);u(this,"_scrollSubscription",qn.EMPTY);u(this,"_resizeSubscription",qn.EMPTY);u(this,"_lastTouchEventTime");u(this,"_dragStartTime");u(this,"_boundaryElement",null);u(this,"_nativeInteractionsEnabled",!0);u(this,"_initialDomRect");u(this,"_previewRect");u(this,"_boundaryRect");u(this,"_previewTemplate");u(this,"_placeholderTemplate");u(this,"_handles",[]);u(this,"_disabledHandles",new Set());u(this,"_dropContainer");u(this,"_direction","ltr");u(this,"_parentDragRef",null);u(this,"_cachedShadowRoot");u(this,"lockAxis",null);u(this,"dragStartDelay",0);u(this,"previewClass");u(this,"scale",1);u(this,"_disabled",!1);u(this,"beforeStarted",new U());u(this,"started",new U());u(this,"released",new U());u(this,"ended",new U());u(this,"entered",new U());u(this,"exited",new U());u(this,"dropped",new U());u(this,"moved",this._moveEvents);u(this,"data");u(this,"constrainPosition");u(this,"_pointerDown",n=>{if(this.beforeStarted.next(),this._handles.length){let i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&this._initializeDragSequence(i,n);}else this.disabled||this._initializeDragSequence(this._rootElement,n);});
159u(this,"_pointerMove",n=>{let i=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging()){let t=Math.abs(i.x-this._pickupPositionOnPage.x),r=Math.abs(i.y-this._pickupPositionOnPage.y);if(t+r>=this._config.dragStartThreshold){let p=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),m=this._dropContainer;if(!p){this._endDragSequence(n);return;}(!m||!m.isDragging()&&!m.isReceiving())&&(n.cancelable&&n.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(n)));}return;}n.cancelable&&n.preventDefault();let e=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(e),this._dropContainer)this._updateActiveDropContainer(e,i);else{let t=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,r=this._activeTransform;r.x=e.x-t.x+this._passiveTransform.x,r.y=e.y-t.y+this._passiveTransform.y,this._applyRootElementTransform(r.x,r.y);}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:e,event:n,distance:this._getDragDistance(e),delta:this._pointerDirectionDelta});});});u(this,"_pointerUp",n=>{this._endDragSequence(n);});u(this,"_nativeDragStart",n=>{if(this._handles.length){let i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&n.preventDefault();}else this.disabled||n.preventDefault();});this._config=i,this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=a,this._renderer=p,this.withRootElement(n).withParent(i.parentDragRef||null),this._parentPositions=new Vs(e),a.registerDragItem(this);}get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled);}set disabled(n){n!==this._disabled&&(this._disabled=n,this._toggleNativeDragInteractions(),this._handles.forEach(i=>Jo(i,n)));}getPlaceholderElement(){return this._placeholder;}getRootElement(){return this._rootElement;}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement();}withHandles(n){this._handles=n.map(e=>In(e)),this._handles.forEach(e=>Jo(e,this.disabled)),this._toggleNativeDragInteractions();let i=new Set();return this._disabledHandles.forEach(e=>{this._handles.indexOf(e)>-1&&i.add(e);}),this._disabledHandles=i,this;}withPreviewTemplate(n){return this._previewTemplate=n,this;}withPlaceholderTemplate(n){return this._placeholderTemplate=n,this;}withRootElement(n){let i=In(n);if(i!==this._rootElement){this._removeRootElementListeners();let e=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[e.listen(i,"mousedown",this._pointerDown,Eh),e.listen(i,"touchstart",this._pointerDown,u6),e.listen(i,"dragstart",this._nativeDragStart,Eh)]),this._initialTransform=void 0,this._rootElement=i;}return typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this;}withBoundaryElement(n){return this._boundaryElement=n?In(n):null,this._resizeSubscription.unsubscribe(),n&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this;}withParent(n){return this._parentDragRef=n,this;}dispose(){var n,i;this._removeRootElementListeners(),this.isDragging()&&((n=this._rootElement)==null||n.remove()),(i=this._marker)==null||i.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._marker=this._parentDragRef=null;}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this);}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0};}resetToBoundary(){if(this._boundaryElement&&this._rootElement&&l6(this._boundaryElement.getBoundingClientRect(),this._rootElement.getBoundingClientRect())){let n=this._boundaryElement.getBoundingClientRect(),i=this._rootElement.getBoundingClientRect(),e=0,t=0;i.left<n.left?e=n.left-i.left:i.right>n.right&&(e=n.right-i.right),i.top<n.top?t=n.top-i.top:i.bottom>n.bottom&&(t=n.bottom-i.bottom);let r=this._activeTransform.x,a=this._activeTransform.y,p=r+e,m=a+t;this._rootElement.style.transform=Vr(p,m),this._activeTransform={x:p,y:m},this._passiveTransform={x:p,y:m};}}disableHandle(n){!this._disabledHandles.has(n)&&this._handles.indexOf(n)>-1&&(this._disabledHandles.add(n),Jo(n,!0));}enableHandle(n){this._disabledHandles.has(n)&&(this._disabledHandles.delete(n),Jo(n,this.disabled));}withDirection(n){return this._direction=n,this;}_withDropContainer(n){this._dropContainer=n;}getFreeDragPosition(){let n=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:n.x,y:n.y};}setFreeDragPosition(n){return this._activeTransform={x:0,y:0},this._passiveTransform.x=n.x,this._passiveTransform.y=n.y,this._dropContainer||this._applyRootElementTransform(n.x,n.y),this;}withPreviewContainer(n){return this._previewContainer=n,this;}_sortFromLastPointerPosition(){let n=this._lastKnownPointerPosition;n&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(n),n);}_removeListeners(){var n;this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),(n=this._cleanupShadowRootSelectStart)==null||n.call(this),this._cleanupShadowRootSelectStart=void 0;}_destroyPreview(){var n;(n=this._preview)==null||n.destroy(),this._preview=null;}_destroyPlaceholder(){var n,i,e;(n=this._anchor)==null||n.remove(),(i=this._placeholder)==null||i.remove(),(e=this._placeholderRef)==null||e.destroy(),this._placeholder=this._anchor=this._placeholderRef=null;}_endDragSequence(n){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:n}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(n),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this);});else{this._passiveTransform.x=this._activeTransform.x;let i=this._getPointerPositionOnPage(n);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(i),dropPoint:i,event:n});}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this);}}
vendor: 7,147 bytes, line 159
159_startDragSequence(n){Fr(n)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let i=this._getShadowRoot(),e=this._dropContainer;if(i&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=this._renderer.listen(i,"selectstart",_6,m6);}),e){let t=this._rootElement,r=t.parentNode,a=this._placeholder=this._createPlaceholderElement(),p=this._marker=this._marker||this._document.createComment("");r.insertBefore(p,t),this._initialTransform=t.style.transform||"",this._preview=new Ll(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(r,i)),yh(t,!1,Ih),this._document.body.appendChild(r.replaceChild(a,t)),this.started.next({source:this,event:n}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this);}else this.started.next({source:this,event:n}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[]);}_initializeDragSequence(n,i){this._parentDragRef&&i.stopPropagation();let e=this.isDragging(),t=Fr(i),r=!t&&i.button!==0,a=this._rootElement,p=Ni(i),m=!t&&this._lastTouchEventTime&&this._lastTouchEventTime+h6>Date.now(),v=t?xu(i):Cu(i);if(p&&p.draggable&&i.type==="mousedown"&&i.preventDefault(),e||r||m||v)return;if(this._handles.length){let k=a.style;this._rootElementTapHighlight=k.webkitTapHighlightColor||"",k.webkitTapHighlightColor="transparent";}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(k=>this._updateOnScroll(k)),this._boundaryElement&&(this._boundaryRect=Gl(this._boundaryElement));let x=this._previewTemplate;this._pickupPositionInElement=x&&x.template&&!x.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,n,i);let w=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(i);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:w.x,y:w.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,i);}_cleanupDragArtifacts(n){yh(this._rootElement,!0,Ih),this._marker.parentNode.replaceChild(this._rootElement,this._marker),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let i=this._dropContainer,e=i.getItemIndex(this),t=this._getPointerPositionOnPage(n),r=this._getDragDistance(t),a=i._isOverContainer(t.x,t.y);this.ended.next({source:this,distance:r,dropPoint:t,event:n}),this.dropped.next({item:this,currentIndex:e,previousIndex:this._initialIndex,container:i,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:r,dropPoint:t,event:n}),i.drop(this,e,this._initialIndex,this._initialContainer,a,r,t,n),this._dropContainer=this._initialContainer;});}_updateActiveDropContainer({x:n,y:i},{x:e,y:t}){let r=this._initialContainer._getSiblingContainerFromPosition(this,n,i);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,i)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{var m;let a=this._dropContainer.getItemIndex(this),p=((m=this._dropContainer.getItemAtIndex(a+1))==null?void 0:m.getVisibleElement())||null;this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._conditionallyInsertAnchor(r,this._dropContainer,p),this._dropContainer=r,this._dropContainer.enter(this,n,i,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)});}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(e,t),this._dropContainer._sortItem(this,n,i,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(n,i):this._applyPreviewTransform(n-this._pickupPositionInElement.x,i-this._pickupPositionInElement.y));}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let n=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(n.left,n.top);let i=this._preview.getTransitionDuration();return i===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(e=>{let t=p=>{(!p||this._preview&&Ni(p)===this._preview.element&&p.propertyName==="transform")&&(a(),e(),clearTimeout(r));},r=setTimeout(t,i*1.5),a=this._preview.addEventListener("transitionend",t);}));}_createPlaceholderElement(){let n=this._placeholderTemplate,i=n?n.template:null,e;return i?(this._placeholderRef=n.viewContainer.createEmbeddedView(i,n.context),this._placeholderRef.detectChanges(),e=Bh(this._placeholderRef,this._document)):e=Vl(this._rootElement),e.style.pointerEvents="none",e.classList.add(Dh),e;}_getPointerPositionInElement(n,i,e){let t=i===this._rootElement?null:i,r=t?t.getBoundingClientRect():n,a=Fr(e)?e.targetTouches[0]:e,p=this._getViewportScrollPosition(),m=a.pageX-r.left-p.left,v=a.pageY-r.top-p.top;return{x:r.left-n.left+m,y:r.top-n.top+v};}_getPointerPositionOnPage(n){let i=this._getViewportScrollPosition(),e=Fr(n)?n.touches[0]||n.changedTouches[0]||{pageX:0,pageY:0}:n,t=e.pageX-i.left,r=e.pageY-i.top;if(this._ownerSVGElement){let a=this._ownerSVGElement.getScreenCTM();if(a){let p=this._ownerSVGElement.createSVGPoint();return p.x=t,p.y=r,p.matrixTransform(a.inverse());}}return{x:t,y:r};}_getConstrainedPointerPosition(n){let i=this._dropContainer?this._dropContainer.lockAxis:null,{x:e,y:t}=this.constrainPosition?this.constrainPosition(n,this,this._initialDomRect,this._pickupPositionInElement):n;if(this.lockAxis==="x"||i==="x"?t=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||i==="y")&&(e=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:r,y:a}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,p=this._boundaryRect,{width:m,height:v}=this._getPreviewRect(),x=p.top+a,w=p.bottom-(v-a),k=p.left+r,S=p.right-(m-r);e=Fh(e,k,S),t=Fh(t,x,w);}return{x:e,y:t};}_updatePointerDirectionDelta(n){let{x:i,y:e}=n,t=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,a=Math.abs(i-r.x),p=Math.abs(e-r.y);return a>this._config.pointerDirectionChangeThreshold&&(t.x=i>r.x?1:-1,r.x=i),p>this._config.pointerDirectionChangeThreshold&&(t.y=e>r.y?1:-1,r.y=e),t;}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let n=this._handles.length>0||!this.isDragging();n!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=n,Jo(this._rootElement,n));}_removeRootElementListeners(){var n;
159(n=this._rootElementCleanups)==null||n.forEach(i=>i()),this._rootElementCleanups=void 0;}_applyRootElementTransform(n,i){let e=1/this.scale,t=Vr(n*e,i*e),r=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=r.transform&&r.transform!="none"?r.transform:""),r.transform=Rs(t,this._initialTransform);}_applyPreviewTransform(n,i){var r;let e=(r=this._previewTemplate)!=null&&r.template?void 0:this._initialTransform,t=Vr(n,i);this._preview.setTransform(Rs(t,e));}_getDragDistance(n){let i=this._pickupPositionOnPage;return i?{x:n.x-i.x,y:n.y-i.y}:{x:0,y:0};}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear();}_containInsideBoundaryOnResize(){let{x:n,y:i}=this._passiveTransform;if(n===0&&i===0||this.isDragging()||!this._boundaryElement)return;let e=this._rootElement.getBoundingClientRect(),t=this._boundaryElement.getBoundingClientRect();if(t.width===0&&t.height===0||e.width===0&&e.height===0)return;let r=t.left-e.left,a=e.right-t.right,p=t.top-e.top,m=e.bottom-t.bottom;t.width>e.width?(r>0&&(n+=r),a>0&&(n-=a)):n=0,t.height>e.height?(p>0&&(i+=p),m>0&&(i-=m)):i=0,(n!==this._passiveTransform.x||i!==this._passiveTransform.y)&&this.setFreeDragPosition({y:i,x:n});}_getDragStartDelay(n){let i=this.dragStartDelay;return typeof i=="number"?i:Fr(n)?i.touch:i?i.mouse:0;}_updateOnScroll(n){let i=this._parentPositions.handleScroll(n);if(i){let e=Ni(n);this._boundaryRect&&e!==this._boundaryElement&&e.contains(this._boundaryElement)&&Ar(this._boundaryRect,i.top,i.left),this._pickupPositionOnPage.x+=i.left,this._pickupPositionOnPage.y+=i.top,this._dropContainer||(this._activeTransform.x-=i.left,this._activeTransform.y-=i.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y));}}_getViewportScrollPosition(){var n;return((n=this._parentPositions.positions.get(this._document))==null?void 0:n.scrollPosition)||this._parentPositions.getViewportScrollPosition();}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=es(this._rootElement)),this._cachedShadowRoot;}_getPreviewInsertionPoint(n,i){let e=this._previewContainer||"global";if(e==="parent")return n;if(e==="global"){let t=this._document;return i||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body;}return In(e);}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect;}_getTargetHandle(n){return this._handles.find(i=>n.target&&(n.target===i||i.contains(n.target)));}_conditionallyInsertAnchor(n,i,e){var t,r;if(n===this._initialContainer)(t=this._anchor)==null||t.remove(),this._anchor=null;else if(i===this._initialContainer&&i.hasAnchor){let a=(r=this._anchor)!=null?r:this._anchor=Vl(this._placeholder);a.classList.remove(Dh),a.classList.add("cdk-drag-anchor"),a.style.transform="",e?e.before(a):In(i.element).appendChild(a);}}};function Fh(o,n,i){return Math.max(n,Math.min(i,o));}function Fr(o){return o.type[0]==="t";}function _6(o){o.preventDefault();}function Bs(o,n,i){let e=Ah(n,o.length-1),t=Ah(i,o.length-1);if(e===t)return;let r=o[e],a=t<e?-1:1;for(let p=e;p!==t;p+=a)o[p]=o[p+a];o[t]=r;}function Ah(o,n){return Math.max(0,Math.min(n,o));}var Ls=class{constructor(n){u(this,"_dragDropRegistry");u(this,"_element");u(this,"_sortPredicate");u(this,"_itemPositions",[]);u(this,"_activeDraggables");u(this,"orientation","vertical");u(this,"direction","ltr");u(this,"_previousSwap",{drag:null,delta:0,overlaps:!1});this._dragDropRegistry=n;}start(n){this.withItems(n);}sort(n,i,e,t){let r=this._itemPositions,a=this._getItemIndexFromPointerPosition(n,i,e,t);if(a===-1&&r.length>0)return null;let p=this.orientation==="horizontal",m=r.findIndex(T=>T.drag===n),v=r[a],x=r[m].clientRect,w=v.clientRect,k=m>a?1:-1,S=this._getItemOffsetPx(x,w,k),E=this._getSiblingOffsetPx(m,r,k),I=r.slice();return Bs(r,m,a),r.forEach((T,D)=>{if(I[D]===T)return;let L=T.drag===n,J=L?S:E,G=L?n.getPlaceholderElement():T.drag.getRootElement();T.offset+=J;
159let pe=Math.round(T.offset*(1/T.drag.scale));p?(G.style.transform=Rs(`translate3d(${pe}px, 0, 0)`,T.initialTransform),Ar(T.clientRect,0,J)):(G.style.transform=Rs(`translate3d(0, ${pe}px, 0)`,T.initialTransform),Ar(T.clientRect,J,0));}),this._previousSwap.overlaps=Rl(w,i,e),this._previousSwap.drag=v.drag,this._previousSwap.delta=p?t.x:t.y,{previousIndex:m,currentIndex:a};}enter(n,i,e,t){let r=this._activeDraggables,a=r.indexOf(n),p=n.getPlaceholderElement();a>-1&&r.splice(a,1);let m=t==null||t<0?this._getItemIndexFromPointerPosition(n,i,e):t,v=r[m];if(v===n&&(v=r[m+1]),!v&&(m==null||m===-1||m<r.length-1)&&this._shouldEnterAsFirstChild(i,e)&&(v=r[0]),v&&!this._dragDropRegistry.isDragging(v)){let x=v.getRootElement();x.parentElement.insertBefore(p,x),r.splice(m,0,n);}else this._element.appendChild(p),r.push(n);p.style.transform="",this._cacheItemPositions();}withItems(n){this._activeDraggables=n.slice(),this._cacheItemPositions();}withSortPredicate(n){this._sortPredicate=n;}reset(){var n;(n=this._activeDraggables)==null||n.forEach(i=>{var t;let e=i.getRootElement();if(e){let r=(t=this._itemPositions.find(a=>a.drag===i))==null?void 0:t.initialTransform;e.style.transform=r||"";}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1;}getActiveItemsSnapshot(){return this._activeDraggables;}getItemIndex(n){return this._getVisualItemPositions().findIndex(i=>i.drag===n);}getItemAtIndex(n){var i;return((i=this._getVisualItemPositions()[n])==null?void 0:i.drag)||null;}updateOnScroll(n,i){this._itemPositions.forEach(({clientRect:e})=>{Ar(e,n,i);}),this._itemPositions.forEach(({drag:e})=>{this._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition();});}withElementContainer(n){this._element=n;}_cacheItemPositions(){let n=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(i=>{let e=i.getVisibleElement();return{drag:i,offset:0,initialTransform:e.style.transform||"",clientRect:Gl(e)};}).sort((i,e)=>n?i.clientRect.left-e.clientRect.left:i.clientRect.top-e.clientRect.top);}_getVisualItemPositions(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions;}_getItemOffsetPx(n,i,e){let t=this.orientation==="horizontal",r=t?i.left-n.left:i.top-n.top;return e===-1&&(r+=t?i.width-n.width:i.height-n.height),r;}_getSiblingOffsetPx(n,i,e){let t=this.orientation==="horizontal",r=i[n].clientRect,a=i[n+e*-1],p=r[t?"width":"height"]*e;if(a){let m=t?"left":"top",v=t?"right":"bottom";e===-1?p-=a.clientRect[m]-r[v]:p+=r[m]-a.clientRect[v];}return p;}_shouldEnterAsFirstChild(n,i){if(!this._activeDraggables.length)return!1;let e=this._itemPositions,t=this.orientation==="horizontal";if(e[0].drag!==this._activeDraggables[0]){let a=e[e.length-1].clientRect;return t?n>=a.right:i>=a.bottom;}else{let a=e[0].clientRect;return t?n<=a.left:i<=a.top;}}_getItemIndexFromPointerPosition(n,i,e,t){let r=this.orientation==="horizontal",a=this._itemPositions.findIndex(({drag:p,clientRect:m})=>{if(p===n)return!1;if(t){let v=r?t.x:t.y;if(p===this._previousSwap.drag&&this._previousSwap.overlaps&&v===this._previousSwap.delta)return!1;}return r?i>=Math.floor(m.left)&&i<Math.floor(m.right):e>=Math.floor(m.top)&&e<Math.floor(m.bottom);});return a===-1||!this._sortPredicate(a,n)?-1:a;}},Nl=class{constructor(n,i){u(this,"_document");u(this,"_dragDropRegistry");u(this,"_element");u(this,"_sortPredicate");u(this,"_rootNode");u(this,"_activeItems");u(this,"_previousSwap",{drag:null,deltaX:0,deltaY:0,overlaps:!1});u(this,"_relatedNodes",[]);this._document=n,this._dragDropRegistry=i;}start(n){let i=this._element.childNodes;this._relatedNodes=[];for(let e=0;e<i.length;e++){let t=i[e];this._relatedNodes.push([t,t.nextSibling]);}this.withItems(n);}sort(n,i,e,t){let r=this._getItemIndexFromPointerPosition(n,i,e),a=this._previousSwap;if(r===-1||this._activeItems[r]===n)return null;let p=this._activeItems[r];if(a.drag===p&&a.overlaps&&a.deltaX===t.x&&a.deltaY===t.y)return null;let m=this.getItemIndex(n),v=n.getPlaceholderElement(),x=p.getRootElement();r>m?x.after(v):x.before(v),Bs(this._activeItems,m,r);let w=this._getRootNode().elementFromPoint(i,e);return a.deltaX=t.x,a.deltaY=t.y,a.drag=p,a.overlaps=x===w||x.contains(w),{previousIndex:m,currentIndex:r};}enter(n,i,e,t){let r=this._activeItems.indexOf(n);r>-1&&this._activeItems.splice(r,1);let a=t==null||t<0?this._getItemIndexFromPointerPosition(n,i,e):t;a===-1&&(a=this._getClosestItemIndexToPointer(n,i,e));let p=this._activeItems[a];p&&!this._dragDropRegistry.isDragging(p)?(this._activeItems.splice(a,0,n),p.getRootElement().before(n.getPlaceholderElement())):(this._activeItems.push(n),this._element.appendChild(n.getPlaceholderElement()));}withItems(n){this._activeItems=n.slice();}withSortPredicate(n){this._sortPredicate=n;}reset(){let n=this._element,i=this._previousSwap;for(let e=this._relatedNodes.length-1;e>-1;e--){let[t,r]=this._relatedNodes[e];t.parentNode===n&&t.nextSibling!==r&&(r===null?n.appendChild(t):r.parentNode===n&&n.insertBefore(t,r));}this._relatedNodes=[],this._activeItems=[],i.drag=null,i.deltaX=i.deltaY=0,i.overlaps=!1;}getActiveItemsSnapshot(){return this._activeItems;}getItemIndex(n){return this._activeItems.indexOf(n);}getItemAtIndex(n){return this._activeItems[n]||null;}
159updateOnScroll(){this._activeItems.forEach(n=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition();});}withElementContainer(n){n!==this._element&&(this._element=n,this._rootNode=void 0);}_getItemIndexFromPointerPosition(n,i,e){let t=this._getRootNode().elementFromPoint(Math.floor(i),Math.floor(e)),r=t?this._activeItems.findIndex(a=>{let p=a.getRootElement();return t===p||p.contains(t);}):-1;return r===-1||!this._sortPredicate(r,n)?-1:r;}_getRootNode(){return this._rootNode||(this._rootNode=es(this._element)||this._document),this._rootNode;}_getClosestItemIndexToPointer(n,i,e){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let t=1/0,r=-1;for(let a=0;a<this._activeItems.length;a++){let p=this._activeItems[a];if(p!==n){let{x:m,y:v}=p.getRootElement().getBoundingClientRect(),x=Math.hypot(i-m,e-v);x<t&&(t=x,r=a);}}return r;}},Vh=.05,zh=.05,Vn=function(o){return o[o.NONE=0]="NONE",o[o.UP=1]="UP",o[o.DOWN=2]="DOWN",o;}(Vn||{}),en=function(o){return o[o.NONE=0]="NONE",o[o.LEFT=1]="LEFT",o[o.RIGHT=2]="RIGHT",o;}(en||{});function Gh(o,n){return new zl(n,o.get($l),o.get(Be),o.get(dt),o.get(Hi));}var zl=class{constructor(n,i,e,t,r){u(this,"_dragDropRegistry");u(this,"_ngZone");u(this,"_viewportRuler");u(this,"element");u(this,"disabled",!1);u(this,"sortingDisabled",!1);u(this,"lockAxis",null);u(this,"autoScrollDisabled",!1);u(this,"autoScrollStep",2);u(this,"hasAnchor",!1);u(this,"enterPredicate",()=>!0);u(this,"sortPredicate",()=>!0);u(this,"beforeStarted",new U());u(this,"entered",new U());u(this,"exited",new U());u(this,"dropped",new U());u(this,"sorted",new U());u(this,"receivingStarted",new U());u(this,"receivingStopped",new U());u(this,"data");u(this,"_container");u(this,"_isDragging",!1);u(this,"_parentPositions");u(this,"_sortStrategy");u(this,"_domRect");u(this,"_draggables",[]);u(this,"_siblings",[]);u(this,"_activeSiblings",new Set());u(this,"_viewportScrollSubscription",qn.EMPTY);u(this,"_verticalScrollDirection",Vn.NONE);u(this,"_horizontalScrollDirection",en.NONE);u(this,"_scrollNode");u(this,"_stopScrollTimers",new U());u(this,"_cachedShadowRoot",null);u(this,"_document");u(this,"_scrollableElements",[]);u(this,"_initialScrollSnap");u(this,"_direction","ltr");u(this,"_startScrollInterval",()=>{this._stopScrolling(),rp(0,Js).pipe(Ht(this._stopScrollTimers)).subscribe(()=>{let n=this._scrollNode,i=this.autoScrollStep;this._verticalScrollDirection===Vn.UP?n.scrollBy(0,-i):this._verticalScrollDirection===Vn.DOWN&&n.scrollBy(0,i),this._horizontalScrollDirection===en.LEFT?n.scrollBy(-i,0):this._horizontalScrollDirection===en.RIGHT&&n.scrollBy(i,0);});});this._dragDropRegistry=i,this._ngZone=t,this._viewportRuler=r;let a=this.element=In(n);this._document=e,this.withOrientation("vertical").withElementContainer(a),i.registerDropContainer(this),this._parentPositions=new Vs(e);}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this);}isDragging(){return this._isDragging;}start(){this._draggingStarted(),this._notifyReceivingSiblings();}enter(n,i,e,t){this._draggingStarted(),t==null&&this.sortingDisabled&&(t=this._draggables.indexOf(n)),this._sortStrategy.enter(n,i,e,t),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:n,container:this,currentIndex:this.getItemIndex(n)});}exit(n){this._reset(),this.exited.next({item:n,container:this});}drop(n,i,e,t,r,a,p,m={}){this._reset(),this.dropped.next({item:n,currentIndex:i,previousIndex:e,container:this,previousContainer:t,isPointerOverContainer:r,distance:a,dropPoint:p,event:m});}withItems(n){let i=this._draggables;return this._draggables=n,n.forEach(e=>e._withDropContainer(this)),this.isDragging()&&(i.filter(t=>t.isDragging()).every(t=>n.indexOf(t)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this;}withDirection(n){return this._direction=n,this._sortStrategy instanceof Ls&&(this._sortStrategy.direction=n),this;}connectedTo(n){return this._siblings=n.slice(),this;}withOrientation(n){if(n==="mixed")this._sortStrategy=new Nl(this._document,this._dragDropRegistry);else{let i=new Ls(this._dragDropRegistry);i.direction=this._direction,i.orientation=n,this._sortStrategy=i;}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((i,e)=>this.sortPredicate(i,e,this)),this;}withScrollableParents(n){let i=this._container;return this._scrollableElements=n.indexOf(i)===-1?[i,...n]:n.slice(),this;}withElementContainer(n){if(n===this._container)return this;let i=In(this.element),e=this._scrollableElements.indexOf(this._container),t=this._scrollableElements.indexOf(n);return e>-1&&this._scrollableElements.splice(e,1),t>-1&&this._scrollableElements.splice(t,1),this._sortStrategy&&this._sortStrategy.withElementContainer(n),this._cachedShadowRoot=null,this._scrollableElements.unshift(n),this._container=n,this;}getScrollableParents(){return this._scrollableElements;}getItemIndex(n){return this._isDragging?this._sortStrategy.getItemIndex(n):this._draggables.indexOf(n);}getItemAtIndex(n){return this._isDragging?this._sortStrategy.getItemAtIndex(n):this._draggables[n]||null;}isReceiving(){return this._activeSiblings.size>0;}_sortItem(n,i,e,t){if(this.sortingDisabled||!this._domRect||!wh(this._domRect,Vh,i,e))return;let r=this._sortStrategy.sort(n,i,e,t);r&&this.sorted.next({previousIndex:r.previousIndex,currentIndex:r.currentIndex,container:this,item:n});}
159_startScrollingIfNecessary(n,i){if(this.autoScrollDisabled)return;let e,t=Vn.NONE,r=en.NONE;if(this._parentPositions.positions.forEach((a,p)=>{p===this._document||!a.clientRect||e||wh(a.clientRect,Vh,n,i)&&([t,r]=f6(p,a.clientRect,this._direction,n,i),(t||r)&&(e=p));}),!t&&!r){let{width:a,height:p}=this._viewportRuler.getViewportSize(),m={width:a,height:p,top:0,right:a,bottom:p,left:0};t=jh(m,i),r=$h(m,n),e=window;}e&&(t!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||e!==this._scrollNode)&&(this._verticalScrollDirection=t,this._horizontalScrollDirection=r,this._scrollNode=e,(t||r)&&e?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling());}_stopScrolling(){this._stopScrollTimers.next();}_draggingStarted(){let n=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=n.msScrollSnapType||n.scrollSnapType||"",n.scrollSnapType=n.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents();}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect;}_reset(){this._isDragging=!1;let n=this._container.style;n.scrollSnapType=n.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(i=>i._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear();}_isOverContainer(n,i){return this._domRect!=null&&Rl(this._domRect,n,i);}_getSiblingContainerFromPosition(n,i,e){return this._siblings.find(t=>t._canReceive(n,i,e));}_canReceive(n,i,e){if(!this._domRect||!Rl(this._domRect,i,e)||!this.enterPredicate(n,this))return!1;let t=this._getShadowRoot().elementFromPoint(i,e);return t?t===this._container||this._container.contains(t):!1;}_startReceiving(n,i){let e=this._activeSiblings;!e.has(n)&&i.every(t=>this.enterPredicate(t,this)||this._draggables.indexOf(t)>-1)&&(e.add(n),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:n,receiver:this,items:i}));}_stopReceiving(n){this._activeSiblings.delete(n),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:n,receiver:this});}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(n=>{if(this.isDragging()){let i=this._parentPositions.handleScroll(n);i&&this._sortStrategy.updateOnScroll(i.top,i.left);}else this.isReceiving()&&this._cacheParentPositions();});}_getShadowRoot(){if(!this._cachedShadowRoot){let n=es(this._container);this._cachedShadowRoot=n||this._document;}return this._cachedShadowRoot;}_notifyReceivingSiblings(){let n=this._sortStrategy.getActiveItemsSnapshot().filter(i=>i.isDragging());this._siblings.forEach(i=>i._startReceiving(this,n));}};function jh(o,n){let{top:i,bottom:e,height:t}=o,r=t*zh;return n>=i-r&&n<=i+r?Vn.UP:n>=e-r&&n<=e+r?Vn.DOWN:Vn.NONE;}function $h(o,n){let{left:i,right:e,width:t}=o,r=t*zh;return n>=i-r&&n<=i+r?en.LEFT:n>=e-r&&n<=e+r?en.RIGHT:en.NONE;}function f6(o,n,i,e,t){let r=jh(n,t),a=$h(n,e),p=Vn.NONE,m=en.NONE;if(r){let v=o.scrollTop;r===Vn.UP?v>0&&(p=Vn.UP):o.scrollHeight-v>o.clientHeight&&(p=Vn.DOWN);}if(a){let v=o.scrollLeft;i==="rtl"?a===en.RIGHT?v<0&&(m=en.RIGHT):o.scrollWidth+v>o.clientWidth&&(m=en.LEFT):a===en.LEFT?v>0&&(m=en.LEFT):o.scrollWidth-v>o.clientWidth&&(m=en.RIGHT);}return[p,m];}var C6=(()=>{let n=class n{constructor(){u(this,"_injector",Q(Vt));}createDrag(e,t){return Nh(this._injector,e,t);}createDropList(e){return Gh(this._injector,e);}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275prov",X({token:n,factory:n.ɵfac,providedIn:"root"}));let o=n;return o;})(),Rh=new Ut("CDK_DRAG_PARENT");var x6=new Ut("CdkDragHandle");var Hh=new Ut("CDK_DRAG_CONFIG"),Uh=new Ut("CdkDropList"),qh=(()=>{let n=class n{constructor(){u(this,"element",Q(Re));u(this,"dropContainer",Q(Uh,{optional:!0,skipSelf:!0}));u(this,"_ngZone",Q(dt));u(this,"_viewContainerRef",Q(nn));u(this,"_dir",Q(ji,{optional:!0}));u(this,"_changeDetectorRef",Q(on));u(this,"_selfHandle",Q(x6,{optional:!0,self:!0}));u(this,"_parentDrag",Q(Rh,{optional:!0,skipSelf:!0}));u(this,"_dragDropRegistry",Q($l));u(this,"_destroyed",new U());u(this,"_handles",new jr([]));u(this,"_previewTemplate",null);u(this,"_placeholderTemplate",null);u(this,"_dragRef");u(this,"data");u(this,"lockAxis",null);u(this,"rootElementSelector");u(this,"boundaryElement");u(this,"dragStartDelay");u(this,"freeDragPosition");u(this,"_disabled",!1);u(this,"constrainPosition");u(this,"previewClass");u(this,"previewContainer");u(this,"scale",1);u(this,"started",new H());u(this,"released",new H());u(this,"ended",new H());u(this,"entered",new H());u(this,"exited",new H());u(this,"dropped",new H());u(this,"moved",new Yi(e=>{let t=this._dragRef.moved.pipe(Dt(r=>({source:this,pointerPosition:r.pointerPosition,event:r.event,delta:r.delta,distance:r.distance}))).subscribe(e);return()=>{t.unsubscribe();};}));u(this,"_injector",Q(Vt));let e=this.dropContainer,t=Q(Hh,{optional:!0});this._dragRef=Nh(this._injector,this.element,{dragStartThreshold:t&&t.dragStartThreshold!=null?t.dragStartThreshold:5,pointerDirectionChangeThreshold:t&&t.pointerDirectionChangeThreshold!=null?t.pointerDirectionChangeThreshold:5,zIndex:t==null?void 0:t.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),t&&this._assignDefaults(t),e&&(e.addItem(this),e._dropListRef.beforeStarted.pipe(Ht(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale;})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef);}get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled);}set disabled(e){this._disabled=e,this._dragRef.disabled=this._disabled;}getPlaceholderElement(){return this._dragRef.getPlaceholderElement();}getRootElement(){return this._dragRef.getRootElement();}reset(){this._dragRef.reset();}resetToBoundary(){this._dragRef.resetToBoundary();}getFreeDragPosition(){return this._dragRef.getFreeDragPosition();}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e);}ngAfterViewInit(){Pi(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition);},{injector:this._injector});}ngOnChanges(e){let t=e.rootElementSelector,r=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition);}
159ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose();});}_addHandle(e){let t=this._handles.getValue();t.push(e),this._handles.next(t);}_removeHandle(e){let t=this._handles.getValue(),r=t.indexOf(e);r>-1&&(t.splice(r,1),this._handles.next(t));}_setPreviewTemplate(e){this._previewTemplate=e;}_resetPreviewTemplate(e){e===this._previewTemplate&&(this._previewTemplate=null);}_setPlaceholderTemplate(e){this._placeholderTemplate=e;}_resetPlaceholderTemplate(e){e===this._placeholderTemplate&&(this._placeholderTemplate=null);}_updateRootElement(){var r;let e=this.element.nativeElement,t=e;this.rootElementSelector&&(t=e.closest!==void 0?e.closest(this.rootElementSelector):(r=e.parentElement)==null?void 0:r.closest(this.rootElementSelector)),this._dragRef.withRootElement(t||e);}_getBoundaryElement(){let e=this.boundaryElement;return e?typeof e=="string"?this.element.nativeElement.closest(e):In(e):null;}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){let t=this._dir,r=this.dragStartDelay,a=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,p=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.scale=this.scale,e.dragStartDelay=typeof r=="object"&&r?r:Gi(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(a).withPreviewTemplate(p).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value);}}),e.beforeStarted.pipe(ho(1)).subscribe(()=>{if(this._parentDrag){e.withParent(this._parentDrag._dragRef);return;}let t=this.element.nativeElement.parentElement;for(;t;){let r=this._dragDropRegistry.getDragDirectiveForNode(t);if(r){e.withParent(r._dragRef);break;}t=t.parentElement;}});}_handleEvents(e){e.started.subscribe(t=>{this.started.emit({source:this,event:t.event}),this._changeDetectorRef.markForCheck();}),e.released.subscribe(t=>{this.released.emit({source:this,event:t.event});}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck();}),e.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex});}),e.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this});}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event});});}_assignDefaults(e){let{lockAxis:t,dragStartDelay:r,constrainPosition:a,previewClass:p,boundaryElement:m,draggingDisabled:v,rootElementSelector:x,previewContainer:w}=e;this.disabled=v==null?!1:v,this.dragStartDelay=r||0,this.lockAxis=t||null,a&&(this.constrainPosition=a),p&&(this.previewClass=p),m&&(this.boundaryElement=m),x&&(this.rootElementSelector=x),w&&(this.previewContainer=w);}_setupHandlesListener(){this._handles.pipe(ir(e=>{let t=e.map(r=>r.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t);}),bi(e=>uo(...e.map(t=>t._stateChanges.pipe(Qn(t))))),Ht(this._destroyed)).subscribe(e=>{let t=this._dragRef,r=e.element.nativeElement;e.disabled?t.disableHandle(r):t.enableHandle(r);});}};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275dir",Bt({type:n,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,r){t&2&&zt("cdk-drag-disabled",r.disabled)("cdk-drag-dragging",r._dragRef.isDragging());},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boun
159daryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",pi],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",Cp]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[ot([{provide:Rh,useExisting:n}]),It]}));let o=n;return o;})(),Lh=new Ut("CdkDropListGroup");var Qh=(()=>{let n=class n{constructor(){u(this,"element",Q(Re));u(this,"_changeDetectorRef",Q(on));u(this,"_scrollDispatcher",Q(Or));u(this,"_dir",Q(ji,{optional:!0}));u(this,"_group",Q(Lh,{optional:!0,skipSelf:!0}));u(this,"_latestSortedRefs");u(this,"_destroyed",new U());u(this,"_scrollableParentsResolved",!1);u(this,"_dropListRef");u(this,"connectedTo",[]);u(this,"data");u(this,"orientation","vertical");u(this,"id",Q(zo).getId("cdk-drop-list-"));u(this,"lockAxis",null);u(this,"_disabled",!1);u(this,"sortingDisabled",!1);u(this,"enterPredicate",()=>!0);u(this,"sortPredicate",()=>!0);u(this,"autoScrollDisabled",!1);u(this,"autoScrollStep");u(this,"elementContainerSelector",null);u(this,"hasAnchor",!1);u(this,"dropped",new H());u(this,"entered",new H());u(this,"exited",new H());u(this,"sorted",new H());u(this,"_unsortedItems",new Set());let e=Q(Hh,{optional:!0}),t=Q(Vt);this._dropListRef=Gh(t,this.element),this._dropListRef.data=this,e&&this._assignDefaults(e),this._dropListRef.enterPredicate=(r,a)=>this.enterPredicate(r.data,a.data),this._dropListRef.sortPredicate=(r,a,p)=>this.sortPredicate(r,a.data,p.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),this._group&&this._group._items.add(this);}get disabled(){return this._disabled||!!this._group&&this._group.disabled;}set disabled(e){this._dropListRef.disabled=this._disabled=e;}addItem(e){this._unsortedItems.add(e),e._dragRef._withDropContainer(this._dropListRef),this._dropListRef.isDragging()&&this._syncItemsWithRef(this.getSortedItems().map(t=>t._dragRef));}removeItem(e){if(this._unsortedItems.delete(e),this._latestSortedRefs){let t=this._latestSortedRefs.indexOf(e._dragRef);t>-1&&(this._latestSortedRefs.splice(t,1),this._syncItemsWithRef(this._latestSortedRefs));}}getSortedItems(){return Array.from(this._unsortedItems).sort((e,t)=>e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);}ngOnDestroy(){let e=n._dropLists.indexOf(this);e>-1&&n._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._latestSortedRefs=void 0,this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete();}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(Qn(this._dir.value),Ht(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{let t=zi(this.connectedTo).map(r=>{if(typeof r=="string"){let a=n._dropLists.find(p=>p.id===r);return a;}return r;});if(this._group&&this._group._items.forEach(r=>{t.indexOf(r)===-1&&t.push(r);}),!this._scrollableParentsResolved){let r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(a=>a.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0;}if(this.elementContainerSelector){let r=this.element.nativeElement.querySelector(this.elementContainerSelector);e.withElementContainer(r);}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=this.sortingDisabled,e.autoScrollDisabled=this.autoScrollDisabled,e.autoScrollStep=Gi(this.autoScrollStep,2),e.hasAnchor=this.hasAnchor,e.connectedTo(t.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation);});}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(this.getSortedItems().map(t=>t._dragRef)),this._changeDetectorRef.markForCheck();}),e.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex});}),e.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck();}),e.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data});}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck();}),uo(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck());}_assignDefaults(e){let{lockAxis:t,draggingDisabled:r,sortingDisabled:a,listAutoScrollDisabled:p,listOrientation:m}=e;this.disabled=r==null?!1:r,this.sortingDisabled=a==null?!1:a,this.autoScrollDisabled=p==null?!1:p,this.orientation=m||"vertical",this.lockAxis=t||null;}_syncItemsWithRef(e){this._latestSortedRefs=e,this._dropListRef.withItems(e);}};u(n,"_dropLists",[]),u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275dir",Bt({type:n,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,r){t&2&&(si("id",r.id),zt("cdk-drop-list-disabled",r.disabled)("cdk-drop-list-dragging",r._dropListRef.isDragging())("cdk-drop-list-receiving",r._dropListRef.isReceiving()));},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis","lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",pi],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",pi],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",pi],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"],hasAnchor:[2,"cdkDropListHasAnchor","hasAnchor",pi]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[ot([{provide:Lh,useValue:void 0},{provide:Uh,useExisting:n}])]}));let o=n;return o;})();var Wh=(()=>{let n=class n{};u(n,"\u0275fac",function(t){return new(t||n)();}),u(n,"\u0275mod",it({type:n})),u(n,"\u0275inj",nt({providers:[C6],imports:[ns]}));let o=n;return o;})();var Xh=(()=>{let n=class n{constructor(e,t,r,a,p){this.router=e,this.http=t,this.mainService=r,this.groupListService=a,this.indexService=p,this._topicDetail$=new U(),this.topicDetail$=this._topicDetail$.asObservable(),this._previewTopicDetail$=new U(),this.previewTopicDetail$=this._previewTopicDetail$.asObservable(),this._groupInfo$=new U(),this.groupInfo$=this._groupInfo$.asObservable(),this._columnAbstract$=new U(),this.columnAbstract$=this._columnAbstract$.asObservable(),this._sortColumnTopics$=new U(),this.sortColumnTopics$=this._sortColumnTopics$.asObservable();}getTopic(e){this.http.get(j.getTopicPublicInfo(e)).subscribe(t=>
159{if(t.succeeded){let r=t.resp_data.type;if(r==="all"){let a=t.resp_data.topic,p=a.group.group_id;this.indexService.getTestModules(p),this.getGroup(p),this._topicDetail$.next(a);}else this.getGroup(t.resp_data.preview.group.group_id),this._previewTopicDetail$.next({mode:r,topic:t.resp_data.preview});}else t.code&&(t.code===1007?this._topicDetail$.next(null):this.router.navigate(["/join_group"],{queryParams:{topicStatus:"error"}}));});}getGroup(e,t){let r=this.groupListService.getSelectedGroup();r&&e===r.group_id?(this._groupInfo$.next({group:r,type:t}),this.indexService.getColumnAbstract(e)):this.http.get(j.getGroup(e)).subscribe(a=>{a.succeeded?(this.mainService.setupUserRole(a.resp_data.group),this._groupInfo$.next({group:a.resp_data.group,type:t}),this.indexService.getColumnAbstract(e)):this.http.handleExceptionCode(a,"\u83B7\u53D6\u661F\u7403\u5931\u8D25");});}setColumnTopics(e,t,r){this.http.put(j.sortColumnTopics(e,t),r).subscribe(a=>{a.succeeded?this._sortColumnTopics$.next("success"):this.http.handleExceptionCode(a,"\u4E13\u680F\u4E3B\u9898\u6392\u5E8F\u5931\u8D25");});}};n.ɵfac=function(t){return new(t||n)(re(ue),re(W),re(oe),re(ce),re(q));},n.ɵprov=X({token:n,factory:n.ɵfac,providedIn:"root"});let o=n;return o;})();var P6=["topicDetail"],M6=o=>({"min-height":o}),O6=o=>({selected:o}),w6=o=>({hide:o}),y6=o=>({show:o}),k6=(o,n)=>({selected:o,readed:n}),S6=(o,n)=>n.column_id,Jh=(o,n)=>n.topic_id;function T6(o,n){if(o&1){let i=y();s(0,"div",22),f("click",function(t){let r=b(i).$index,a=d(2);return P(a.handleSort(t,r));}),g(1),c();}if(o&2){let i=n.$implicit,e=n.$index,t=d(2);C("ngClass",R(2,O6,e===t.selectedSortIndex)),l(),V(" ",i," ");}}function E6(o,n){if(o&1&&(s(0,"div",12),B(1,T6,2,4,"div",21,Y),c()),o&2){let i=d();l(),N(i.sortOptions);}}function D6(o,n){if(o&1){let i=y();s(0,"div",27),f("click",function(){b(i);let t=d(),r=t.$implicit,a=t.$index,p=d();return P(p.showSortDialog(a,r.column_id));}),g(1," \u6392\u5E8F "),c();}}function I6(o,n){if(o&1){let i=y();s(0,"div",29),f("click",function(){let t=b(i).$implicit,r=d(3).$index,a=d();return P(a.selectTopic(t.topic_id,r));}),M(1,"div",30),s(2,"div",31),g(3),c()();}if(o&2){let i=n.$implicit,e=d(4);l(),C("ngClass",R(3,y6,e.topicId===i.topic_id)),l(),C("ngClass",qe(5,k6,e.topicId===i.topic_id,e.hasReadedTopic[i.topic_id])),l(),V(" ",i.title?i.title:i.text," ");}}function F6(o,n){if(o&1&&(s(0,"div"),B(1,I6,4,8,"div",28,Jh),c()),o&2){let i=d(2).$implicit;l(),N(i.topic);}}function A6(o,n){o&1&&(s(0,"div",32),g(1,"\u8FD9\u91CC\u7A7A\u7A7A\u5982\u4E5F"),c());}function V6(o,n){if(o&1&&h(0,A6,2,0,"div",32),o&2){let i=d(2).$implicit;_(i.loading?-1:0);}}function R6(o,n){if(o&1&&(s(0,"div"),h(1,F6,3,0,"div")(2,V6,1,1),c()),o&2){let i=d().$implicit;l(),_(i.topic!=null&&i.topic.length?1:2);}}function L6(o,n){if(o&1){let i=y();s(0,"div",14)(1,"div",6)(2,"div",23),f("click",function(){let t=b(i),r=t.$implicit,a=t.$index,p=d();return P(p.toggle(a,r.column_id));}),M(3,"div",24),s(4,"div",25),g(5),c()(),h(6,D6,2,0,"div",26),c(),h(7,R6,3,1,"div"),c();}if(o&2){let i=n.$implicit,e=n.$index,t=d();l(3),C("ngClass",R(5,w6,!t.columns[e].isSelected)),l(2),Gt(" ",i.name,"\uFF08",i.statistics.topics_count,"\uFF09 "),l(),_(i.statistics.topics_count>0&&t.sortButtonVisible?6:-1),l(),_(t.columns[e].isSelected?7:-1);}}function B6(o,n){if(o&1&&M(0,"app-topic-detail",18),o&2){let i=d();C("topicData",i.currentTopic);}}function N6(o,n){if(o&1&&(s(0,"div",19),M(1,"div",5),s(2,"div",33),g(3),c()()),o&2){let i=d();l(3),V(" ",i.errorText," ");}}function z6(o,n){if(o&1){let i=y();s(0,"div",41),M(1,"div",5),s(2,"div",33),g(3),c(),s(4,"div",42)(5,"div",43),f("click",function(){let t=b(i).$index,r=d(3);return P(r.moveToTop(t));}),c(),s(6,"div",44),f("click",function(){let t=b(i).$index,r=d(3);return P(r.moveToBottom(t));}),c()()();}if(o&2){let i=n.$implicit;l(3),A(i.title?i.title:i.text);}}function G6(o,n){if(o&1){let i=y();s(0,"div",40),f("cdkDropListDropped",function(t){b(i);let r=d(2);return P(r.drop(t,r.titleIndex));}),B(1,z6,7,1,"div",41,Jh),c();}if(o&2){let i=d(2);l(),N(i.columns[i.titleIndex].topic);}}function j6(o,n){if(o&1){let i=y();s(0,"div",20)(1,"div",34)(2,"div",4),g(3),c(),s(4,"div",35),g(5,"\u62D6\u52A8\u6392\u5E8F\u6216\u4E00\u952E\u7F6E\u9876/\u7F6E\u5E95"),c(),h(6,G6,3,0,"div",36),s(7,"div",37)(8,"div",38),f("click",function(){b(i);let t=d();return P(t.hideDialog());}),g(9,"\u53D6\u6D88"),c(),s(10,"div",39),f("click",function(){b(i);let t=d();return P(t.sortTopics());}),g(11,"\u4FDD\u5B58\u6392\u5E8F"),c()()()();}if(o&2){let i=d();l(3),Gt(" ",i.columns[i.titleIndex]==null?null:i.columns[i.titleIndex].name,"\uFF08",(i.columns[i.titleIndex]==null||i.columns[i.titleIndex].statistics==null?null:i.columns[i.titleIndex].statistics.topics_count)||0,"\uFF09 "),l(3),_(i.columns[i.titleIndex]!=null&&i.columns[i.titleIndex].topic&&i.columns[i.titleIndex].topic.length>0?6:-1);}}var Yh=(()=>{let n=class n{constructor(e,t,r,a,p,m,v,x,w){this.columnsPageService=e,this.topicDetailService=t,this.groupListService=r,this.indexService=a,this.topicService=p,this.message=m,this.http=v,this.route=x,this.router=w,this.navType="default",this.titleIndex=0,this.subtitleIndex=0,this.subscriptions=[],this.columnAbstractTitle="",this.columnsLength=0,this.showErrorStatus=!1,this.errorText="",this.firstEnter=!0,this.firstEmpty=!1,this.topicsLoading=!0,this.rankType={new:"desc",earlist:"asc",default:"desc"},this.sortOptions=["\u9ED8\u8BA4\u6392\u5E8F","\u6700\u65E9\u53D1\u5E03","\u6700\u65B0\u53D1\u5E03"],this.selectedSortIndex=0,this.sortOptionsVisible=!1,this.selectedTopicId=0,this.dialogVisible=!1,this.selectedSortList=[],this.sortButtonVisible=!1,this.hasReadedTopic={},this.urlQueryColumnId=0;}ngOnInit(){let e=window.location.href,t=/columns\/(\d+)/,r=e.match(t);this.groupId=`${r[1]}`||"",this.indexService.currentList="columnPage",this.doSubscribe(),this.getColumnsList();}ngAfterViewInit(){this.observer(),document.body.style.backgroundColor="var(--dweb-bg-panel)";}
159ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe()),document.body.style.backgroundColor="";}clickFunc(){this.hideSortOptions();}getTopicDetail(){this.hasReadedTopic[this.topicId]=!0,this.columnsPageService.getTopic(this.topicId);}getColumnsList(){this.topicService.getColumnsList(this.groupId),this.columnsPageService.getGroup(Number(this.groupId),"forSort");}getColumnTopicList(){this.http.get(j.getColumnTopicList(this.groupId,this.columnId,this.rankType[this.navType],this.navType==="default"?"default":"create_time")).subscribe(e=>{var t;e.succeeded?(this.topics=e.resp_data.topics.forEach(r=>{let a=/#\/(\S*)\/#/g;if(!r.title){let p=r.text.trim().replace(a,"").split(/\n|\r/)[0].substring(0,60);r.text=p||"[\u65E0\u6807\u9898]";}}),this.columns[this.titleIndex].topic=e.resp_data.topics,this.columns[this.titleIndex].loading=!1,this.firstEnter&&(this.topicId=e.resp_data.topics.length?(t=e.resp_data.topics[0])==null?void 0:t.topic_id:0,this.topicId?this.getTopicDetail():(this.indexService.getColumnAbstract(this.groupId),this.firstEmpty=!0,this.errorText="\u7A7A\u7A7A\u5982\u4E5F"))):this.http.handleExceptionCode(e,"\u83B7\u53D6\u4E13\u680F\u4E3B\u9898\u5217\u8868\u5931\u8D25");});}doSubscribe(){this.route.queryParams.subscribe(w=>{this.urlQueryColumnId=Number(w==null?void 0:w.column_id)||0;});let e=this.columnsPageService.topicDetail$.subscribe(w=>{this.currentTopicIsDeleted=w===null,w===null?(this.currentTopic=null,this.errorText="\u4E3B\u9898\u5DF2\u88AB\u5220\u9664",this.showErrorStatus=!0):(w.openType="detail",this.currentTopic=w),this.getReaded();}),t=this.columnsPageService.previewTopicDetail$.subscribe(w=>{w.mode==="preview_omitted"&&w.topic.answered&&(w.topic.answer={owner:w.topic.question.questionee}),this.previewTopic={topic:w.topic,mode:w.mode},this.getReaded();}),r=this.columnsPageService.groupInfo$.subscribe(w=>{this.groupListService.setSelectedGroup(w.group),this.groupInfo=w.group,w.type&&w.type==="forSort"?this.checkRole(this.groupInfo):(this.topicDetailService.getComments(this.topicId,""),this.showErrorStatus=this.judgeStatus());}),a=this.indexService.editedTopic$.subscribe(w=>{let k=this.currentTopic.type==="q&a"?"answer":this.currentTopic.type;w.process_status&&(this.currentTopic.process_status=w.process_status),this.currentTopic[k]=w[k];}),p=this.topicService.getColumnsList$.subscribe(w=>{if(w!=null&&w.length){this.columns=w.map(S=>(S.isSelected=!1,S)),this.columnsLength=w.length;let k=!1;this.urlQueryColumnId&&this.columns.forEach((S,E)=>{S.column_id===this.urlQueryColumnId&&(this.titleIndex=E,this.columnId=this.urlQueryColumnId,this.columns[E].isSelected=!0,this.columns[E].loading=!0,k=!0);}),k||(this.columnId=w[0].column_id,this.columns[0].isSelected=!0,this.columns[0].loading=!0),this.getColumnTopicList();}}),m=this.indexService.editTitle$.subscribe(w=>{this.columns[this.titleIndex].topic.map(k=>{k.topic_id===w.topic_id&&(k.title=w.title);});}),v=this.indexService.columnAbstract$.subscribe(w=>{this.columnAbstractTitle=w.title?w.title:"\u661F\u7403\u4E13\u680F";}),x=this.columnsPageService.sortColumnTopics$.subscribe(w=>{w==="success"&&(this.message.info({content:"\u4E13\u680F\u6392\u5E8F\u6210\u529F",type:"success"}),this.dialogVisible=!1);});this.subscriptions.push(e,t,r,a,p,m,v,x);}judgeStatus(){var a;let{user_specific:e,policies:t}=this.groupListService.getSelectedGroup(),r=gi(this.groupListService.getSelectedGroup());if((a=e==null?void 0:e.membership)!=null&&a.need_renew)return this.errorText="\u7EED\u671F\u540E\uFF0C\u624D\u53EF\u67E5\u770B\u4E3B\u9898\u8BE6\u60C5",!0;if(t.hasOwnProperty("new_members_limit_days")&&t.new_members_limit_days>0&&r)return this.errorText="\u52A0\u5165\u6EE1 72 \u5C0F\u65F6\u540E\uFF0C\u624D\u53EF\u67E5\u770B\u4E3B\u9898\u8BE6\u60C5",!0;if(e!=null&&e.hasOwnProperty("trial"))return this.errorText="\u8D2D\u4E70\u661F\u7403\u540E\uFF0C\u624D\u53EF\u67E5\u770B\u4E3B\u9898\u8BE6\u60C5",!0;if(this.currentTopicIsDeleted)return this.errorText="\u4E3B\u9898\u5DF2\u88AB\u5220\u9664",!0;}toggleNav(e){this.navType=e,this.titleIndex=0,this.firstEnter=!0,this.getColumnsList();}toggle(e,t){this.columnId=t,this.columns[e].isSelected=!this.columns[e].isSelected,this.titleIndex!==e&&!this.columns[e].topic&&(this.titleIndex=e,this.columns[e].loading=!0,this.router.navigate([],{queryParams:{column_id:t},queryParamsHandling:"merge"}),this.getColumnTopicList());}selectSubtitle(e,t){this.subtitleIndex=e,this.titleIndex=t,this.topicId=e,this.firstEnter=!1,this.firstEmpty=!1,this.groupInfo=null,this.previewTopic=null,this.getTopicDetail();}observer(){let e=document.querySelector(".column-topic-detail");new MutationObserver(()=>{e.offsetHeight>document.body.clientHeight-70?this.indexService.remainScrollbarStyle():(window.scrollTo(0,0),this.indexService.spareScrollbarSpace());}).observe(e,{attributes:!0,childList:!0,subtree:!0});}getReaded(){this.columns[this.titleIndex].topic.map(e=>{e.topic_id===this.topicId&&(e.readed=!0);});}handleSort(e,t){this.selectedSortIndex=t,this.sortOptionsVisible=!1,this.currentTopic=null;let r=t===0?"default":t===1?"earlist":"new";this.toggleNav(r),e.stopPropagation();}changeSortVisible(e){this.sortOptionsVisible=!this.sortOptionsVisible,e.stopPropagation();}hideSortOptions(){this.sortOptionsVisible=!1;}selectTopic(e,t){this.subtitleIndex=e,this.titleIndex=t,this.topicId=e,this.firstEnter=!1,this.firstEmpty=!1,this.groupInfo=null,this.previewTopic=null,this.selectedTopicId=e,this.topicId=e,this.getTopicDetail();}showSortDialog(e,t){if(this.titleIndex=e,this.columnId=t,this.columns[e].topic)this.dialogVisible=!0;else{this.columns[e].loading=!0,this.columns[e].isSelected=!0,this.getColumnTopicList();let r=setInterval(()=>{this.columns[e].topic&&this.columns[e].topic.length>0?(clearInterval(r),this.dialogVisible=!0):this.columns[e].loading||(clearInterval(r),this.message.info({content:"\u8BE5\u4E13\u680F\u6682\u65E0\u4E3B\u9898",type:"warning"}));},100);}}drop(e,t){Bs(this.columns[t].topic,e.previousIndex,e.currentIndex);}moveToTop(e){let t=this.columns[this.titleIndex].topic,r=t.splice(e,1)[0];t.unshift(r);}moveToBottom(e){let t=this.columns[this.titleIndex].topic,r=t.splice(e,1)[0];t.push(r);}sortTopics(){var a;let e=(a=this.columns[this.titleIndex])==null?void 0:a.topic;if(!e||e.length===0){this.message.info({content:"\u6682\u65E0\u4E3B\u9898\u53EF\u6392\u5E8F",type:"warning"});return;}let r={req_data:{sorts:e.map(p=>p.topic_id)}};this.columnsPageService.setColumnTopics(this.groupId,this.columns[this.titleIndex].column_id,r);}hideDialog(){this.dialogVisible=!1;}checkRole(e){var m,v;let t=Number(localStorage.getItem("user_id")),r=e.owner.user_id===t,a=(m=e.partner_ids)==null?void 0:m.includes(t),p=(v=e.admin_ids)==null?void 0:v.includes(t);this.sortButtonVisible=r||a||p;}};n.ɵfac=function(t){return new(t||n)(O(Xh),O(Te),O(ce),O(q),O(Oe),O(le),O(W),O(ke),O(ue));},n.ɵcmp=F({type:n,selectors:[["app-columns-page"]],viewQuery:function(t,r){if(t&1&&_e(P6,5),t&2){let a;ee(a=te())&&(r.topicDetail=a.first);}},hostBindings:function(t,r){t&1&&f("click",function(){return r.clickFunc();},wt);},standalone:!1,decls:26,vars:11,consts:[["topicDetail",""],[1,"columns-page",3,"click"],[1,"nav-tab"],[1,"top"],[1,"title"],[1,"icon"],[1,"info"],[1,"group-name"],[1,"sum"],[1,"sort-container"],[1,"sort",3,"click"],[1,"desc"],[1,"options"],[1,"list-container"],[1,"list"],[1,"column-topic-detail",3,"ngClass"],[1,"container"],[3,"hidden"],[3,"topicData"],[1,"error"],[1,"sort-dialog"],[1,"option",3,"ngClass"],[1,"option",3,"click","ngClass"],[1,"container",3,"click"],[1,"icon",3,"ngClass"],[1,"name"],[1,"sort-operation"],[1,"sort-operation",3,"click"],[1,"topic-item"],[1,"topic-item",3,"click"],[1,"circle",3,"ngClass"],[1,"content",3,"ngClass"],[1,"empty-column"],[1,"text"],[1,"content"],[1,"tip"],["cdkDropList","","cdkDragBoundary",".topics",1,"topics"],[1,"button-container"],[1,"cancel",3,"click"],[1,"confirm",3,"click"],["cdkDropList","","cdkDragBoundary",".topics",1,"topics",3,"cdkDropListDropped"],["cdkDrag","",1,"topic-sort-item"],[1,"operations"],[1,"top","icon",3,"click"],[1,"bottom","icon",3,"click"]],template:function(t,r){t&1&&(s(0,"div",1),f("click",function(){return r.hideSortOptions();}),s(1,"div",2)(2,"div",3)(3,"div",4),M(4,"div",5),s(5,"div",6)(6,"div",7),g(7),c(),s(8,"div",8),g(9),c()()(),s(10,"div",9)(11,"div",10),f("click",function(p){return r.changeSortVisible(p);}),M(12,"div",5),s(13,"div",11),g(14),c()(),h(15,E6,3,0,"div",12),c()(),s(16,"div",13),B(17,L6,8,7,"div",14,S6),c()(),s(19,"div",15,0)(21,"div",16),M(22,"app-skeleton",17),h(23,B6,1,1,"app-topic-detail",18),h(24,N6,4,1,"div",19),c()()(),h(25,j6,12,3,"div",20)),t&2&&(l(7),A(r.columnAbstractTitle),l(2),V("\u5171 ",r.columnsLength," \u4E2A\u4E13\u680F"),l(5),V(" ",r.sortOptions[r.selectedSortIndex]," "),l(),_(r.sortOptionsVisible?15:-1),l(2),N(r.columns),l(2),C("ngClass",R(9,M6,r.groupInfo&&r.showErrorStatus||r.firstEmpty||r.currentTopicIsDeleted)),l(3),C("hidden",r.groupInfo||r.previewTopic||r.firstEmpty||r.currentTopicIsDeleted),l(),_(r.groupInfo&&!r.showErrorStatus&&r.currentTopic&&!r.currentTopicIsDeleted?23:-1),l(),_(r.groupInfo&&r.showErrorStatus||r.firstEmpty||r.currentTopicIsDeleted?24:-1),l(),_(r.dialogVisible?25:-1));},dependencies:[K,ve,Qh,qh,ft],styles:['[_nghost-%COMP%]{display:block;min-height:100vh;background:var(--dweb-bg-panel)}.columns-page[_ngcontent-%COMP%]{width:1148px;min-height:calc(100vh - 60px);margin:50px auto 10px;background-color:var(--dweb-bg-panel)}.nav-tab[_ngcontent-%COMP%]{width:313px;height:calc(100vh - 66px);background:var(--dweb-bg-panel);float:left;position:fixed;overflow-y:auto;padding-right:24px;border-right:1px solid var(--dweb-border-subtle);scrollbar-width:none}.nav-tab[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}
159.nav-tab[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]{margin-top:30px}.nav-tab[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{display:flex;align-items:center}.nav-tab[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:34px;height:40px;margin-right:13px;background-image:url("./media/[email protected]");background-position:-870px -932px}.nav-tab[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .group-name[_ngcontent-%COMP%]{font-size:17px;font-weight:700;color:var(--dweb-text-primary);line-height:24px}.nav-tab[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .sum[_ngcontent-%COMP%]{font-size:13px;color:var(--dweb-text-muted);line-height:19px}.nav-tab[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .sort-container[_ngcontent-%COMP%]{position:relative;border-bottom:1px solid var(--dweb-border-subtle);padding-bottom:13px}.nav-tab[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .sort-container[_ngcontent-%COMP%]   .sort[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:24px;cursor:pointer}.nav-tab[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .sort-container[_ngcontent-%COMP%]   .sort[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:16px;height:16px;margin-right:6px;background-image:url("./media/[email protected]");background-position:-922px -933px}.nav-tab[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .sort-container[_ngcontent-%COMP%]   .sort[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;color:var(--dweb-text-secondary)}.nav-tab[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .sort-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]{position:absolute;width:312px;left:0;top:28px;padding:14px 0;background:var(--dweb-bg-panel);z-index:8;box-shadow:0 20px 50px 0 var(--dweb-shadow-soft);border-radius:0 0 8px 8px}.nav-tab[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .sort-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .option[_ngcontent-%COMP%]{height:39px;line-height:39px;padding:0 22px;cursor:pointer;font-weight:700;color:var(--dweb-text-primary)}.nav-tab[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .sort-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .option[_ngcontent-%COMP%]:hover{background:var(--dweb-bg-brand-hover-soft)}.nav-tab[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .sort-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]{color:var(--dweb-brand)}.nav-tab[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]{height:calc(100vh - 197px);overflow-y:scroll;overscroll-behavior:contain;scrollbar-width:none;-ms-overflow-style:none}.nav-tab[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.nav-tab[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-top:40px;font-size:15px;font-weight:500;color:var(--dweb-text-primary)}.nav-tab[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center}.nav-tab[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:12px;height:6px;margin-right:11px;background-image:url("./media/[email protected]");background-position:-164px -243px;-webkit-transition:all .5s ease-out;-moz-transition:all .5s ease-out;-o-transition:all .5s ease-out;transition:all .5s ease-out}.nav-tab[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]   .icon.hide[_ngcontent-%COMP%]{-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg)}.nav-tab[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .sort-operation[_ngcontent-%COMP%]{font-size:13px;color:var(--dweb-info);cursor:pointer;flex-shrink:0}.nav-tab[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .to
159pic-item[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:20px;cursor:pointer}.nav-tab[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .topic-item[_ngcontent-%COMP%]   .circle[_ngcontent-%COMP%]{width:6px;height:6px;background:var(--dweb-brand);border-radius:50%;margin-right:15px;margin-left:2px;visibility:hidden}.nav-tab[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .topic-item[_ngcontent-%COMP%]   .show[_ngcontent-%COMP%]{visibility:visible}.nav-tab[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .topic-item[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{width:290px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:19px;font-size:14px;line-height:19px;color:var(--dweb-text-secondary)}.nav-tab[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .topic-item[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]:hover{color:var(--dweb-brand)}.nav-tab[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .topic-item[_ngcontent-%COMP%]   .readed[_ngcontent-%COMP%]{color:var(--dweb-text-placeholder)}.nav-tab[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .topic-item[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]{color:var(--dweb-brand);font-weight:700}.nav-tab[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .empty-column[_ngcontent-%COMP%]{font-size:13px;color:var(--dweb-text-placeholder);margin-top:20px;margin-left:23px}.nav-tab[_ngcontent-%COMP%]   .columns-container[_ngcontent-%COMP%]{margin-top:150px;height:calc(100vh - 184px);overflow-y:scroll;overscroll-behavior:contain;scrollbar-width:none;-ms-overflow-style:none}.nav-tab[_ngcontent-%COMP%]   .columns-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.nav-tab[_ngcontent-%COMP%]   .shadow[_ngcontent-%COMP%]{width:100%;height:16px;-webkit-transition:all .5s ease-out;-moz-transition:all .5s ease-out;-o-transition:all .5s ease-out;transition:all .5s ease-out;background:linear-gradient(180deg,var(--dweb-shadow-gradient-start) 0%,var(--dweb-shadow-gradient-end) 100%)}.nav-tab[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{display:flex;padding:8px 16px 0 19px}.nav-tab[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]   .cricle[_ngcontent-%COMP%]{width:4px;height:4px;border-radius:50%;background:var(--dweb-text-body);margin-top:7px;margin-right:15px}.nav-tab[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]   .cricle.subtitle-select[_ngcontent-%COMP%]{background:var(--dweb-brand)}.nav-tab[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]   .cricle.readed[_ngcontent-%COMP%]{background:var(--dweb-disabled)}.nav-tab[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]   .topic-title[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{width:246px;font-size:14px;font-weight:400;color:var(--dweb-text-secondary);line-height:19px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;cursor:pointer}.nav-tab[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]   .topic-title[_ngcontent-%COMP%]   .content.subtitle-select[_ngcontent-%COMP%]{color:var(--dweb-brand)}.nav-tab[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]   .topic-title[_ngcontent-%COMP%]   .content.readed[_ngcontent-%COMP%]{color:var(--dweb-disabled)}.nav-tab[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]   .topic-title[_ngcontent-%COMP%]   .dashed[_ngcontent-%COMP%]{width:246px;height:.1px;margin-top:16px;margin-bottom:8px;background:linear-gradient(to left,transparent 0%,transparent 50%,var(--dweb-border-dashed) 50%,var(--dweb-border-dashed) 100%);background-size:10px 1px;background-repeat:repeat-x}.nav-tab[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]:hover   .cricle[_ngcontent-%COMP%]{background:var(--dweb-brand)}.nav-tab[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]:hover   .topic-title[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{color:var(--dweb-brand)}.nav-tab[_ngcontent-%COMP%]   .loading-box[_ngcontent-%COMP%]{width:224px;height:36px;display:flex;background:var(--dweb-bg-loading);border-radius:6px;margin:0 auto}.nav-tab[_ngcontent-%COMP%]   .loading[_ngcontent-%COMP%]{width:24px;height:24px;margin:auto;position:relative}.nav-tab[_ngcontent-%COMP%]   .loading[_ngcontent-%COMP%]:before{content:"";width:4px;height:4px;border-radius:100%;color:var(--dweb-loading-dot);box-shadow:0 -10px var(--dweb-loading-dot),10px 0,0 10px,-10px 0 var(--dweb-loading-dot),-7px -7px var(--dweb-loading-dot),7px -7px var(--dweb-loading-dot-strong),7px 7px,-7px 7px;animation:_ngcontent-%COMP%_spin 1s steps(8) infinite;position:absolute;top:0;right:0;bottom:0;left:0;margin:auto}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.nav-tab[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]{width:224px;height:36px;line-height:36px;text-align:center;background:var(--dweb-bg-loading);border-radius:6px;font-size:13px;color:var(--dweb-text-placeholder);margin:0 auto}.sort-dialog[_ngcontent-%COMP%]{position:fixed;display:flex;left:0;right:0;top:0;bottom:0;background:var(--dweb-overlay-strong)}.sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{width:800px;margin:auto;background:var(--dweb-bg-page);border-radius:4px;display:flex;flex-direction:column;align-items:center}.sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;color:var(--dweb-text-primary);line-height:30px;margin-top:30px}.sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .tip[_ngcontent-%COMP%]{margin-top:6px;font-size:14px;color:var(--dweb-text-muted)}
159.sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]{margin-top:30px;max-height:calc(100vh - 340px);overflow-y:scroll;overscroll-behavior:contain;scrollbar-width:none;-ms-overflow-style:none}.sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .topics[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;width:100%;height:80px}.sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{font-weight:500;color:var(--dweb-text-neutral);cursor:pointer}.sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]   .confirm[_ngcontent-%COMP%]{margin-right:40px;margin-left:30px;width:84px;height:32px;line-height:32px;text-align:center;background:var(--dweb-brand);border-radius:2px;font-size:16px;font-weight:700;color:var(--dweb-text-on-color);cursor:pointer;box-shadow:0 1px 2px 0 var(--dweb-shadow-subtle)}.cdk-drag-preview[_ngcontent-%COMP%]{box-shadow:0 15px 30px 0 var(--dweb-shadow-soft);border-radius:8px;border:1px solid red}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-preview[_ngcontent-%COMP%], .topic-sort-item[_ngcontent-%COMP%]{margin-top:10px;display:flex;align-items:center;height:48px;background:var(--dweb-bg-panel);border-radius:8px;cursor:pointer;border:1px solid transparent;box-sizing:border-box}.cdk-drag-preview[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .topic-sort-item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:20px;height:20px;margin:0 16px;background-image:url("./media/[email protected]");background-position:-920px -957px}.cdk-drag-preview[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%], .topic-sort-item[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{width:610px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cdk-drag-preview[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%], .topic-sort-item[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]{visibility:hidden;display:flex}.cdk-drag-preview[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%], .topic-sort-item[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:0;background-image:url("./media/[email protected]");background-position:-950px -929px}.cdk-drag-preview[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%], .topic-sort-item[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]{width:20px;height:20px;margin-left:10px;margin-right:16px;background-image:url("./media/[email protected]");background-position:-950px -958px}.cdk-drag-preview[_ngcontent-%COMP%]:hover, .topic-sort-item[_ngcontent-%COMP%]:hover{border:1px solid var(--dweb-border-brand-active)}.cdk-drag-preview[_ngcontent-%COMP%]:hover   .operations[_ngcontent-%COMP%], .topic-sort-item[_ngcontent-%COMP%]:hover   .operations[_ngcontent-%COMP%]{visibility:visible}.cdk-drag-preview[_ngcontent-%COMP%]{border:1px solid var(--dweb-border-brand-active)}html[data-theme=dark][_nghost-%COMP%]   .sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{border:1px solid var(--dweb-border-subtle);box-shadow:0 16px 40px var(--dweb-shadow-popover)}html[data-theme=dark][_nghost-%COMP%]   .sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%], html[data-theme=dark][_nghost-%COMP%]   .sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]   .confirm[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]   .confirm[_ngcontent-%COMP%]{transition:color .15s ease,background-color .15s ease,border-color .15s ease}html[data-theme=dark][_nghost-%COMP%]   .sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]:hover, html[data-theme=dark]   [_nghost-%COMP%]   .sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]:hover{color:var(--dweb-text-primary)}html[data-theme=dark][_nghost-%COMP%]   .sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]:active, html[data-theme=dark]   [_nghost-%COMP%]   .sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]:active{color:var(--dweb-text-secondary)}html[data-theme=dark][_nghost-%COMP%]   .sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]   .confirm[_ngcontent-%COMP%]:hover, html[data-theme=dark]   [_nghost-%COMP%]   .sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]   .confirm[_ngcontent-%COMP%]:hover{background:var(--dweb-brand-hover)}html[data-theme=dark][_nghost-%COMP%]   .sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]   .confirm[_ngcontent-%COMP%]:active, html[data-theme=dark]   [_nghost-%COMP%]   .sort-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]   .confirm[_ngcontent-%COMP%]:active{background:var(--dweb-brand-hover-strong)}
159html[data-theme=dark][_nghost-%COMP%]   .topic-sort-item[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .topic-sort-item[_ngcontent-%COMP%]{border-color:var(--dweb-border-faint);transition:background-color .15s ease,border-color .15s ease}html[data-theme=dark][_nghost-%COMP%]   .topic-sort-item[_ngcontent-%COMP%] > .icon[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .topic-sort-item[_ngcontent-%COMP%] > .icon[_ngcontent-%COMP%]{opacity:.72}html[data-theme=dark][_nghost-%COMP%]   .topic-sort-item[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], html[data-theme=dark]   [_nghost-%COMP%]   .topic-sort-item[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{opacity:.72;transition:opacity .15s ease}html[data-theme=dark][_nghost-%COMP%]   .topic-sort-item[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]:hover, html[data-theme=dark]   [_nghost-%COMP%]   .topic-sort-item[_ngcontent-%COMP%]   .operations[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]:hover{opacity:1}html[data-theme=dark][_nghost-%COMP%]   .topic-sort-item[_ngcontent-%COMP%]:hover, html[data-theme=dark]   [_nghost-%COMP%]   .topic-sort-item[_ngcontent-%COMP%]:hover{background:var(--dweb-bg-panel-2);border-color:var(--dweb-border-brand-active)}.column-topic-detail[_ngcontent-%COMP%]{margin-left:347px;width:800px;background:var(--dweb-bg-panel);border-radius:4px;padding:30px;box-sizing:border-box}.column-topic-detail[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail, .column-topic-detail[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail-preview{position:static;overflow-y:inherit;background:var(--dweb-bg-panel)}.column-topic-detail[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail .enter-group, .column-topic-detail[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail-preview .enter-group{display:none!important}.column-topic-detail[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail .topic-detail-panel, .column-topic-detail[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail-preview .topic-detail-panel{padding:0!important}.column-topic-detail[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail .topic-detail-panel .header-container .homework, .column-topic-detail[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail-preview .topic-detail-panel .header-container .homework{top:-30px!important;right:0!important}.column-topic-detail[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail>.content, .column-topic-detail[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail-preview>.content{width:100%;margin-top:0;margin-bottom:0}.column-topic-detail[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail .video-area, .column-topic-detail[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail .processing, .column-topic-detail[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail-preview .video-area, .column-topic-detail[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .topic-detail-preview .processing{width:540px}.column-topic-detail[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]     .skeleton{padding:0}.column-topic-detail[_ngcontent-%COMP%]   .error[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.column-topic-detail[_ngcontent-%COMP%]   .error[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:63px;height:66px;margin:0 auto 24px;background-image:url("./media/[email protected]");background-position:-235px -931px}.column-topic-detail[_ngcontent-%COMP%]   .error[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{height:25px;font-size:18px;font-weight:400;color:var(--dweb-text-faint);line-height:25px}.column-topic-detail.min-height[_ngcontent-%COMP%]{height:calc(100vh - 70px);display:flex;flex-direction:column;justify-content:center;align-items:center}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.fold[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .nav-tab[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .sort-dialog[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();function $6(o,n){if(o&1&&(s(0,"div",1),g(1),c()),o&2){let i=d();l(),A(i.groupInfo.group_name);}}var H6=wn("app_id"),Kh=wn("group_id"),U6=wn("group_number"),q6=wn("redirect_url"),Q6=wn("timestamp"),W6=wn("signature"),X6=wn("extra"),Zh=(()=>{let n=class n{constructor(e){this.sanitizer=e,this.subscriptions=[],this.dialogVisible=!0,this.iframeUrl=this.sanitizer.bypassSecurityTrustResourceUrl(""),this.getGroup=t=>ye(this,null,function*(){return yield this.request(`${ie.CRM_API_URL}/group_info?group_id=${t}`,"get");});}
159ngOnInit(){return ye(this,null,function*(){this.INNER_URL_PARAMS={app_id:H6,group_id:Kh,group_number:U6,redirect_url:q6,timestamp:Q6,signature:W6,extra:X6},this.groupInfo=yield this.getGroup(Number(Kh));});}setIframeUrl(){return ye(this,null,function*(){let e=(yield import("./chunk-R3X3H3RC.js")).default,t=gd();if(!t)return;let r=window.location.protocol==="https:"?ie.REDIRECT_URI_S:ie.REDIRECT_URI,a=encodeURIComponent(r),p=a+"&#wechat_redirect";new window.WxLogin({id:"login_container",appid:ie.APPID,scope:"snsapi_login",state:t,redirect_uri:a,href:"data:text/css;base64,LmltcG93ZXJCb3ggLnFyY29kZSB7d2lkdGg6IDEyMHB4OyBib3JkZXI6IDA7IHBvc2l0aW9uOiBhYnNvbHV0ZTt0b3A6IC0xOHB4O2xlZnQ6IDA7bWFyZ2luLXRvcDogMDsgfQouaW1wb3dlckJveCAudGl0bGUge2Rpc3BsYXk6IG5vbmU7fQouaW1wb3dlckJveCAuaW5mbyB7ZGlzcGxheTogbm9uZTt9"});});}request(e,t){return ye(this,null,function*(){let r=yield fetch(e,{method:t}),a=yield this.handleResponse(r.json());return a?a.resp_data:null;});}handleResponse(e){return ye(this,null,function*(){return e.ok?null:yield e;});}gotoCRMInner(e){let t=Object.keys(e).reduce((r,a)=>r+(r?"&":"?")+(e[a]?`${a}=${e[a]}`:""),"");location.href=`${ie.CRM_API_URL}/identify_member_with_login${t}`;}confirm(){let e=Ot(Ue({},this.INNER_URL_PARAMS),{authorized:!0});this.gotoCRMInner(e);}disagree(){let e=Ot(Ue({},this.INNER_URL_PARAMS),{authorized:!1});this.gotoCRMInner(e);}handleDialogClose(){this.dialogVisible=!1;}};n.ɵfac=function(t){return new(t||n)(O(Jr));},n.ɵcmp=F({type:n,selectors:[["app-crm-page"]],standalone:!1,decls:33,vars:1,consts:[[1,"crm-page"],[1,"group-name"],[1,"tip-1"],[1,"tips-2"],[1,"list-info"],[1,"operate"],[1,"agree","btn",3,"click"],[1,"cancel","btn","js_cancel",3,"click"],[1,"link"],["href","https://support.zsxq.com/index.html"],["href","https://support.zsxq.com/privacy.html"]],template:function(t,r){t&1&&(s(0,"div",0),h(1,$6,2,1,"div",1),s(2,"div",2),g(3," \u7533\u8BF7\u83B7\u53D6\u4F60\u5728\u77E5\u8BC6\u661F\u7403\u7684\u4EE5\u4E0B\u6570\u636E\u4EE5\u4FBF\u6838\u5B9E\u4F60\u7684\u6210\u5458\u8EAB\u4EFD\uFF0C\u63D0\u4F9B\u66F4\u4F18\u8D28\u7684\u670D\u52A1\u3002 "),c(),s(4,"div",3),g(5,"\u5176\u627F\u8BFA\u5177\u6709\u76F8\u5E94\u7684\u6570\u636E\u5B89\u5168\u80FD\u529B\uFF0C\u4EE5\u786E\u4FDD\u6570\u636E\u5B89\u5168"),c(),s(6,"ul",4)(7,"li"),g(8,"\u7528\u6237ID"),c(),s(9,"li"),g(10,"\u6210\u5458\u7F16\u53F7"),c(),s(11,"li"),g(12,"\u6210\u5458\u5934\u50CF"),c(),s(13,"li"),g(14,"\u77E5\u8BC6\u661F\u7403\u6635\u79F0"),c(),s(15,"li"),g(16,"\u6210\u5458\u8EAB\u4EFD"),c(),s(17,"li"),g(18,"\u52A0\u5165\u661F\u7403\u65F6\u95F4"),c(),s(19,"li"),g(20,"\u6709\u6548\u671F\u622A\u6B62\u65F6\u95F4"),c()(),s(21,"div",5)(22,"button",6),f("click",function(){return r.confirm();}),g(23,"\u540C\u610F"),c(),s(24,"button",7),f("click",function(){return r.disagree();}),g(25,"\u4E0D\u5141\u8BB8"),c(),s(26,"div",8),g(27," \u6388\u6743\u540E\u5373\u8868\u660E\u4F60\u5DF2\u540C\u610F"),s(28,"a",9),g(29,"\u300A\u7528\u6237\u534F\u8BAE\u300B"),c(),g(30,"\u548C"),s(31,"a",10),g(32,"\u300A\u9690\u79C1\u653F\u7B56\u300B"),c()()()()),t&2&&(l(),_(r.groupInfo?1:-1));},styles:['.crm-page[_ngcontent-%COMP%]{margin:50px auto 0;box-sizing:border-box;width:800px;height:100vh;min-height:700px;padding:68px 60px;background:var(--dweb-bg-panel)}.crm-page[_ngcontent-%COMP%]   .group-name[_ngcontent-%COMP%]{height:30px;font-size:24px;font-family:PingFangSC,PingFang SC;font-weight:600;color:var(--dweb-text-primary);line-height:30px;margin-bottom:20px}.crm-page[_ngcontent-%COMP%]   .tip-1[_ngcontent-%COMP%]{height:22px;font-size:15px;font-family:PingFangSC,PingFang SC;font-weight:500;color:var(--dweb-text-secondary);line-height:22px}.crm-page[_ngcontent-%COMP%]   .tips-2[_ngcontent-%COMP%]{height:22px;font-size:13px;font-family:PingFangSC,PingFang SC;font-weight:400;color:var(--dweb-text-muted);line-height:22px;margin:8px 0 32px}.crm-page[_ngcontent-%COMP%]   .list-info[_ngcontent-%COMP%]{list-style-type:none}.crm-page[_ngcontent-%COMP%]   .list-info[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:8px;font-family:PingFangSC,PingFang SC;font-weight:500;color:var(--dweb-text-secondary)}.crm-page[_ngcontent-%COMP%]   .list-info[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{margin-right:12px;content:" ";width:4px;height:4px;border-radius:50%;background-color:var(--dweb-text-secondary)}.crm-page[_ngcontent-%COMP%]   .operate[_ngcontent-%COMP%]{margin-top:48px}.crm-page[_ngcontent-%COMP%]   .operate[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{border:0;outline:0;box-sizing:border-box;display:inline-block;width:100px;height:36px;line-height:35px;text-align:center;border-radius:2px;font-size:16px;font-family:PingFangSC,PingFang SC;font-weight:500;
159box-shadow:0 1px 2px 0 var(--dweb-shadow-subtle)}.crm-page[_ngcontent-%COMP%]   .operate[_ngcontent-%COMP%]   .agree[_ngcontent-%COMP%]{background:var(--dweb-brand);color:var(--dweb-text-on-color);cursor:pointer;margin-right:16px}.crm-page[_ngcontent-%COMP%]   .operate[_ngcontent-%COMP%]   .agree[_ngcontent-%COMP%]:active{background-color:var(--dweb-brand-hover)}.crm-page[_ngcontent-%COMP%]   .operate[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{background:var(--dweb-bg-panel);border:1px solid var(--dweb-border-control-legacy);color:var(--dweb-text-muted);cursor:pointer}.crm-page[_ngcontent-%COMP%]   .operate[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]:active{background-color:var(--dweb-bg-subtle)}.crm-page[_ngcontent-%COMP%]   .operate[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{font-size:13px;font-family:PingFangSC,PingFang SC;font-weight:400;color:var(--dweb-text-muted);margin-top:16px}.crm-page[_ngcontent-%COMP%]   .operate[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--dweb-info)}.qrcode-box[_ngcontent-%COMP%]   .tips[_ngcontent-%COMP%]{height:22px;font-size:16px;font-family:PingFangSC,PingFang SC;font-weight:400;color:var(--dweb-text-muted);line-height:22px;text-align:center}.qrcode-box[_ngcontent-%COMP%]   .qrcode[_ngcontent-%COMP%]{width:120px;height:120px;margin:30px auto 0;overflow:hidden}']});let o=n;return o;})();var Hl=o=>({colorMediumSeaGreen:o}),J6=()=>[1,2,3,4],Y6=o=>({cursor:o}),K6=(o,n)=>n.topic_id;function Z6(o,n){o&1&&M(0,"app-skeleton");}function e4(o,n){o&1&&B(0,Z6,1,0,"app-skeleton",null,Y),o&2&&N(Qt(0,J6));}function t4(o,n){o&1&&M(0,"span",18);}function n4(o,n){o&1&&(s(0,"span",26),g(1,"(\u8BE5\u4ED8\u8D39\u63D0\u95EE\u8D85 72 \u5C0F\u65F6\u672A\u88AB\u56DE\u7B54\uFF0C\u8D39\u7528\u5DF2\u539F\u8DEF\u9000\u8FD8\u7528\u6237)"),c());}function i4(o,n){if(o&1&&M(0,"app-image-gallery",29),o&2){let i=d().$implicit;C("images",i.question.images);}}function o4(o,n){if(o&1){let i=y();s(0,"div",36),f("click",function(t){b(i);let r=d().$implicit,a=d(2);return P(a.goAnswer(t,r));}),g(1," \u53BB\u56DE\u7B54 "),c();}}function r4(o,n){o&1&&(s(0,"div",34),M(1,"span",37),s(2,"span"),g(3,"\u5DF2\u5B9A\u65F6\u56DE\u7B54"),c()());}function a4(o,n){o&1&&(s(0,"div",35),M(1,"span",38),s(2,"span"),g(3,"\u5DF2\u56DE\u7B54"),c()());}function s4(o,n){if(o&1){let i=y();s(0,"div",17),f("click",function(){let t=b(i).$implicit,r=d(2);return P(r.goPage(t));}),h(1,t4,1,0,"span",18),M(2,"img",19),s(3,"div",20)(4,"div",21)(5,"span",22),$(6,"transformUserNameClass"),g(7),$(8,"filterRLOLRO"),c(),s(9,"span",23),g(10),$(11,"questionHeader"),c(),s(12,"span",24),g(13),$(14,"questionHeader"),c()(),s(15,"div",25)(16,"span"),g(17),c(),s(18,"span"),g(19),c(),h(20,n4,2,0,"span",26),c(),s(21,"div",27),M(22,"span",28),$(23,"filterEmptyLines"),c(),h(24,i4,1,1,"app-image-gallery",29),s(25,"div",30)(26,"div",31)(27,"span"),g(28),$(29,"transformTime"),c(),s(30,"span"),g(31),c()(),s(32,"div",32),h(33,o4,2,0,"div",33),h(34,r4,4,0,"div",34),h(35,a4,4,0,"div",35),c()()()();}if(o&2){let i=n.$implicit,e=d(2);C("ngClass",R(33,Y6,!e.handleShow(i).showGoAnswer)),l(),_(i.silenced?1:-1),l(),C("src",e.avatar(i),se),l(3),C("ngClass",Pe(6,18,i,e.currentGroup(i))),l(2),A(Z(8,21,i.question.anonymous?"\u533F\u540D\u7528\u6237":i.question.owner.name)),l(3),A(Pe(11,23,i,"fee")),l(3),A(Pe(14,26,i,"owner")),l(4),V("\u52A0\u5165\u65F6\u95F4\uFF1A",e.formatJoinTime(i.question.owner_detail,i.question.anonymous),";"),l(2),V("\u63D0\u95EE\u6B21\u6570\uFF1A",i.question.owner_detail.questions_count),l(),_(i.question.fee&&i.question.expired&&!i.answered?20:-1),l(2),C("parseHtml",Z(23,29,i.question.text))("annotations",i.annotation),l(2),_(i.question.images&&i.question.images.length>0?24:-1),l(4),A(Z(29,31,i.create_time)),l(3),V("\u6765\u81EA\uFF1A",i.group.name),l(2),_(e.handleShow(i).showGoAnswer?33:-1),l(),_(e.handleShow(i).showShceduleAnswer?34:-1),l(),_(e.handleShow(i).hasA
159nswered?35:-1);}}function c4(o,n){if(o&1){let i=y();s(0,"app-lottie-loading",39),f("infinite",function(){b(i);let t=d(2);return P(t.getAnswerlist(t.currentFilterFreeOrPayType));}),g(1," \u63D0\u95EE\u52A0\u8F7D\u4E2D... "),c();}}function l4(o,n){o&1&&(s(0,"div",16),g(1,"\u6CA1\u6709\u66F4\u591A\u4E86"),c());}function p4(o,n){if(o&1&&(s(0,"div",13),g(1),c(),h(2,e4,2,1),s(3,"div",14),B(4,s4,36,35,"div",15,K6),c(),h(6,c4,2,0,"app-lottie-loading"),h(7,l4,2,0,"div",16)),o&2){let i=d();l(),A(i.title),l(),_(!i.noMoreAnswer&&!i.allAnswerList.length?2:-1),l(2),N(i.allAnswerList),l(2),_(i.noMoreAnswer?-1:6),l(),_(i.noMoreAnswer?7:-1);}}function d4(o,n){o&1&&(s(0,"div",11),M(1,"i",40),s(2,"span"),g(3,"\u8FD9\u91CC\u7A7A\u7A7A\u5982\u4E5F"),c()());}function g4(o,n){if(o&1){let i=y();s(0,"app-topic-detail",41),f("handle-topic-detail",function(){b(i);let t=d();return P(t.closeDialog());}),c();}if(o&2){let i=d();C("topicData",i.answerQuestionTopic);}}var Ns=30,e_=(()=>{let n=class n{constructor(e,t,r,a,p){this.router=e,this.answerlistService=t,this.groupListService=r,this.topicDetailService=a,this.mainContentService=p,this.groups=[],this.subs=[],this.noMoreAnswer=!1,this.isLoading=!1,this.unAnswerlist=[],this.answerEdList=[],this.currentFilterFreeOrPayType="",this.showAnswerDialog=!1;}ngOnInit(){this.doSubcrible(),this.init();}init(){this.groupListService.getGroups(),this.getAnswerlist(this.currentFilterFreeOrPayType);}doSubcrible(){let e=this.groupListService.group$.subscribe(({groups:p})=>{this.groups=p;}),t=this.answerlistService.updateAnswerList$.subscribe(p=>{this.updateMsg(p);}),r=this.mainContentService.deleteMember$.subscribe(p=>{this.updateMsg({userId:p,type:"deleteMember"});}),a=mo(this.answerlistService.unAnswersList$,this.answerlistService.unswersEdList$).subscribe(([p,m])=>{this.isLoading=!1,p.length<Ns&&m.length<Ns&&(this.noMoreAnswer=!0),this.unAnswerlist=this.unAnswerlist.concat(p),this.answerEdList=this.answerEdList.concat(m);});this.subs=[a,t,e,r];}get allAnswerList(){return[...this.unAnswerlist,...this.answerEdList];}avatar(e){return e.question.anonymous?Vp:e.question.owner.avatar_url;}currentGroup(e){return this.groups.find(t=>t.group_id===e.group.group_id);}get title(){switch(this.currentFilterFreeOrPayType){case"":return"\u5168\u90E8\u63D0\u95EE";case"free":return"\u514D\u8D39\u63D0\u95EE";case"pay":return"\u4ED8\u8D39\u63D0\u95EE";}}handleShow(e){return{showGoAnswer:!e.answered&&!e.scheduled,showShceduleAnswer:e.scheduled,hasAnswered:e.answered&&!e.scheduled};}formatJoinTime(e,t){return ia(e,t);}getAnswerlist(e){var t,r;this.isLoading||(this.isLoading=!0,this.answerlistService.getUnAnswersList({count:Ns,filter_free_or_pay:e,end_time:(t=this.unAnswerlist[this.unAnswerlist.length-1])==null?void 0:t.create_time}),this.answerlistService.getAnswersEdList({count:Ns,filter_free_or_pay:e,end_time:(r=this.answerEdList[this.answerEdList.length-1])==null?void 0:r.create_time}));}tabClick(e){this.currentFilterFreeOrPayType!==e&&(this.currentFilterFreeOrPayType=e,this.noMoreAnswer=!1,this.unAnswerlist=[],this.answerEdList=[],this.getAnswerlist(this.currentFilterFreeOrPayType));}goAnswer(e,t){e.stopPropagation(),document.body.style.overflow="hidden",this.oldTargeGroup=this.groupListService.getSelectedGroup(),this.showAnswerDialog=!0,this.answerQuestionTopic=Ot(Ue({},t),{openType:'"question"'}),this.topicDetailService.setAnswerInputStatus(!0),this.groupListService.setSelectedGroup(this.currentGroup(t));}closeDialog(){document.body.style.overflow="scroll",this.showAnswerDialog=!1,this.groupListService.setSelectedGroup(this.oldTargeGroup);}updateMsg(e){let{topicId:t,type:r,silenced:a}=e,p=this.unAnswerlist.find(m=>(m.topic_uid||m.topic_id)===t);r==="normal"&&(p.answered=!0),r==="scheduled"&&(p.scheduled={answer_time:Fe(new Date(),"yyyy-MM-dd'T'HH:mm:ss.SSSXX")}),r==="ignore"&&(this.unAnswerlist=this.unAnswerlist.filter(m=>(m.topic_uid||m.topic_id)!==t)),r==="deleteMember"&&(this.unAnswerlist=this.unAnswerlist.filter(m=>m.question.owner.user_id!==e.userId),this.answerEdList=this.answerEdList.filter(m=>
159m.question.owner.user_id!==e.userId)),a&&(p.silenced=!0);}goPage(e){let t=this.currentGroup(e).group_id;this.handleShow(e).showShceduleAnswer&&this.router.navigate(["scheduled_jobs/",t]),this.handleShow(e).hasAnswered&&this.router.navigate(["topic/",e.topic_id]);}ngOnDestroy(){this.subs.forEach(e=>e.unsubscribe());}};n.ɵfac=function(t){return new(t||n)(O(ue),O(No),O(ce),O(Te),O(oe));},n.ɵcmp=F({type:n,selectors:[["app-answerlist"]],standalone:!1,decls:23,vars:11,consts:[[1,"answerlist-page"],[1,"nav-container"],["routerLink","/group/init",1,"navItem","mb24"],[1,"home-icon"],[1,"answerlist","navItem","mb24"],[1,"answerlist-icon"],[1,"colorMediumSeaGreen"],[1,"navItem","mb20","cursor"],[3,"click","ngClass"],[1,"navItem","cursor"],[1,"answerlist-page-main"],[1,"no-data"],[3,"topicData"],[1,"mian-title"],[1,"answer-item-container"],[1,"answer-item",3,"ngClass"],[1,"no-more"],[1,"answer-item",3,"click","ngClass"],[1,"onlyReminder"],["alt","",1,"avatar",3,"src"],[1,"main"],[1,"head"],[1,"role",3,"ngClass"],[2,"color","#f57f59"],[2,"color","#b3b3b3"],[1,"join-info"],[2,"color","#c5c6cb"],[1,"text"],[3,"parseHtml","annotations"],[3,"images"],[1,"questioninfo-handle"],[1,"questioninfo"],[1,"handle"],[1,"toanswer","cursor"],[1,"shceduleAnswer"],[1,"hasanswer"],[1,"toanswer","cursor",3,"click"],[1,"shceduleAnswerIcon"],[1,"hasanswerIcon"],[3,"infinite"],[1,"icon"],[3,"handle-topic-detail","topicData"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1)(2,"a",2),M(3,"div",3),s(4,"div"),g(5,"\u661F\u7403\u9996\u9875"),c()(),s(6,"div",4),M(7,"div",5),s(8,"div",6),g(9,"\u7B49\u6211\u56DE\u7B54"),c()(),s(10,"div",7)(11,"div",8),f("click",function(){return r.tabClick("");}),g(12," \u5168\u90E8\u63D0\u95EE "),c()(),s(13,"div",7)(14,"div",8),f("click",function(){return r.tabClick("pay");}),g(15," \u4ED8\u8D39\u63D0\u95EE "),c()(),s(16,"div",9)(17,"div",8),f("click",function(){return r.tabClick("free");}),g(18," \u514D\u8D39\u63D0\u95EE "),c()()(),s(19,"div",10),h(20,p4,8,4)(21,d4,4,0,"div",11),c(),h(22,g4,1,1,"app-topic-detail",12),c()),t&2&&(l(11),C("ngClass",R(5,Hl,!r.currentFilterFreeOrPayType)),l(3),C("ngClass",R(7,Hl,r.currentFilterFreeOrPayType==="pay")),l(3),C("ngClass",R(9,Hl,r.currentFilterFreeOrPayType==="free")),l(3),_(!r.noMoreAnswer||r.allAnswerList.length?20:21),l(2),_(r.showAnswerDialog?22:-1));},dependencies:[K,lt,Ae,kt,Qe,ve,ze,ft,Oo,Jt,Kp,ha,bo],styles:['.colorMediumSeaGreen[_ngcontent-%COMP%]{color:var(--dweb-brand, #16B998)}.mb24[_ngcontent-%COMP%]{margin-bottom:24px}.mb20[_ngcontent-%COMP%]{margin-bottom:20px}.cursor[_ngcontent-%COMP%]{cursor:pointer}.answerlist-page[_ngcontent-%COMP%]{width:1906px;padding-top:50px;padding-bottom:32px;margin:0 auto;font-family:PingFangSC,PingFang SC}.answerlist-page[_ngcontent-%COMP%]  .enter-group{display:none!important}.answerlist-page[_ngcontent-%COMP%]  .answer-question{display:none!important}.nav-container[_ngcontent-%COMP%]{position:fixed;box-sizing:border-box;width:310px;padding-top:24px;padding-right:60px;font-family:PingFangSC-Medium}.nav-container[_ngcontent-%COMP%]   .navItem[_ngcontent-%COMP%]{display:flex;font-size:16px;align-items:center;color:var(--dweb-text-faint, #C5C6CB)}.nav-container[_ngcontent-%COMP%]   .navItem[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-left:10px}.nav-container[_ngcontent-%COMP%]   .navItem[_ngcontent-%COMP%]:before{content:"";flex:1}.nav-container[_ngcontent-%COMP%]   .home-icon[_ngcontent-%COMP%]{height:16px;width:16px;position:relative;top:-1px;background-position:-103px -571px}.nav-container[_ngcontent-%COMP%]   .answerlist-icon[_ngcontent-%COMP%]{height:16px;width:16px;background-image:url("./media/wait-answer-icon-W2H2JUK5.png");background-size:100%}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.nav-container[_ngcontent-%COMP%]   .answerlist-icon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important}}.answerlist-page-main[_ngcontent-%COMP%]{margin:0 353px;overflow:visible;border-radius:4px;position:relative}.answerlist-page-main[_ngcontent-%COMP%]   .mian-title[_ngcontent-%COMP%]{margin-top:10px;padding:0 20px;box-sizing:border-box;height:40px;line-height:40px;background:var(--dweb-bg-panel);border-radius:4px 4px 0 0;border-bottom:1px solid rgba(0,0,0,.05);font-weight:500;font-size:12px;color:var(--dweb-text-faint);font-style:normal}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]{position:relative}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .onlyReminder[_ngcontent-%COMP%]{width:89px;height:25px;background-size:100%;position:absolute;top:0;right:-3px;background-image:url("./media/onlyReminderIcon-FS3HOACU.png")}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .onlyReminder[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important}}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]{padding:20px;background-color:var(--dweb-bg-panel);display:flex;border-radius:0 0 4px 4px}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .avatar[_ng
159content-%COMP%]{width:36px;height:36px;margin-right:16px;border-radius:50%;object-fit:cover}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]{flex:1}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{font-size:14px;display:flex;align-items:center;padding-bottom:10px;border-bottom:1px solid rgba(0,0,0,.05)}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-right:8px}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .role[_ngcontent-%COMP%]{color:var(--dweb-info)}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .owner[_ngcontent-%COMP%], .answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .partner[_ngcontent-%COMP%]{color:var(--dweb-warning, #FDA956)}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%]{color:var(--dweb-copper, #D28057)}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .self[_ngcontent-%COMP%]{color:var(--dweb-brand, #16B998)}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .member[_ngcontent-%COMP%]{color:var(--dweb-info, #567895)}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .anonymous[_ngcontent-%COMP%]{color:var(--dweb-text-faint, #C5C6CB)}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .join-info[_ngcontent-%COMP%]{display:flex;align-items:center;height:31px;font-size:12px;color:var(--dweb-text-muted);box-sizing:border-box;border-bottom:1px solid rgba(0,0,0,.05)}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .join-info[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-right:6px}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{padding:16px 0;font-weight:400;font-size:14px;color:var(--dweb-text-primary);line-height:25px;text-align:justify;font-style:normal;white-space:pre-wrap;word-wrap:break-word}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .questioninfo-handle[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .questioninfo-handle[_ngcontent-%COMP%]   .questioninfo[_ngcontent-%COMP%]{display:flex;font-size:12px;color:var(--dweb-text-faint)}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .questioninfo-handle[_ngcontent-%COMP%]   .questioninfo[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-right:12px}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .questioninfo-handle[_ngcontent-%COMP%]   .handle[_ngcontent-%COMP%]   .toanswer[_ngcontent-%COMP%]{padding:4px 7px;background:var(--dweb-brand);box-shadow:0 1px 2px #0000000d;border-radius:4px;font-weight:500;font-size:12px;color:#fff;font-style:normal}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .questioninfo-handle[_ngcontent-%COMP%]   .handle[_ngcontent-%COMP%]   .shceduleAnswer[_ngcontent-%COMP%]{display:flex;align-items:center;font-weight:500;font-size:12px;color:var(--dweb-brand)}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .questioninfo-handle[_ngcontent-%COMP%]   .handle[_ngcontent-%COMP%]   .shceduleAnswer[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-right:4px}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .questioninfo-handle[_ngcontent-%COMP%]   .handle[_ngcontent-%COMP%]   .shceduleAnswer[_ngcontent-%COMP%]   .shceduleAnswerIcon[_ngcontent-%COMP%]{width:11px;height:12px;background-size:100%;background-image:url("./media/shceduleIcon-MEBUKBSU.png")}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .questioninfo-handle[_ngcontent-%COMP%]   .handle[_ngcontent-%COMP%]   .shceduleAnswer[_ngcontent-%COMP%]   .shceduleAnswerIcon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important}}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .questioninfo-handle[_ngcontent-%COMP%]   .handle[_ngcontent-%COMP%]   .hasanswer[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:12px;color:var(--dweb-text-faint)}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .questioninfo-handle[_ngcontent-%COMP%]   .handle[_ngcontent-%COMP%]   .hasanswer[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-right:4px}.answerlist-page-main[_ngcontent-%COMP%]   .answer-item-container[_ngcontent-%COMP%]   .answer-item[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .questioninfo-handle[_ngcontent-%COMP%]   .handle[_ngcontent-%COMP%]   .hasanswer[_ngcontent-%COMP%]   .hasanswerIcon[_ngcontent-%COMP%]{width:10px;height:10px;background-position:-671px -381px}.answerlist-page-main[_ngcontent-%COMP%]   .no-more[_ngcontent-%COMP%]{padding:20px 0;text-align:center;font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}.no-data[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--dweb-text-placeholder);height:calc(100vh - 50px);background-color:var(--dweb-bg-panel)}.no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:87px;height:71px;background-position:-87px -929px;margin-bottom:15px}@media screen and (max-width:2000px){.answerlist-page[_ngcontent-%COMP%]{width:1526px}.answerlist-page[_ngcontent-%COMP%]   .answerlist-page-main[_ngcontent-%COMP%]{margin:0 313px}.answerlist-page[_ngcontent-%COMP%]  .answer-question-dialog{width:900px;margin-left:auto;margin-right:auto}}@media screen and (max-width:1550px){.answerlist-page[_ngcontent-%COMP%]{width:1326px}.answerlist-page[_ngcontent-%COMP%]   .answerlist-page-main[_ngcontent-%COMP%]{margin:0 313px}.answerlist-page[_ngcontent-%COMP%]  .answer-question-dialog{width:700px;margin-left:auto;margin-right:auto}}.home-icon[_ngcontent-%COMP%], .icon[_ngcontent-%COMP%], .hasanswerIcon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.home-icon[_ngcontent-%COMP%], .icon[_ngcontent-%COMP%], .hasanswerIcon[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var Ul=(()=>{let n=class n{constructor(){}ngOnInit(){}};n.ɵfac=function(t){return new(t||n)();},n.ɵcmp=F({type:n,selectors:[["app-chat-page"]],standalone:!1,decls:2,vars:0,consts:[[1,"chat-page"]],template:function(t,r){t&1&&(s(0,"div",0),M(1,"app-ch
159at"),c());},dependencies:[wd],styles:[".chat-page[_ngcontent-%COMP%]{width:100vw;height:100vh;background:var(--dweb-bg-chat-page);display:flex;align-items:center;justify-content:center}"]});let o=n;return o;})();var Lr=o=>({"top-three-item":o}),Br=(o,n,i,e)=>({"top-three":o,"rank-first":n,"rank-second":i,"rank-third":e}),Nr=o=>({url:o}),Rr=(o,n)=>n.uid;function u4(o,n){o&1&&M(0,"div",38);}function m4(o,n){if(o&1&&(s(0,"div",37),h(1,u4,1,0,"div",38),g(2),c()),o&2){let i=n.$implicit,e=n.$index;l(),_(e!==0?1:-1),l(),V("",i," ");}}function h4(o,n){if(o&1&&(s(0,"div",35),B(1,m4,3,2,"div",37,Y),c()),o&2){let i=d().$implicit,e=d();l(),N(e.getGroupTags(i.uid,e.orderRankingData));}}function _4(o,n){if(o&1){let i=y();s(0,"div",30),f("click",function(){let t=b(i),r=t.$implicit,a=t.$index,p=d();return P(p.goGroupPage(r.uid,a,"\u7545\u9500\u699C"));}),s(1,"div",31),g(2),c(),M(3,"img",32),s(4,"div",33)(5,"div",34),g(6),c(),h(7,h4,3,0,"div",35),c(),M(8,"i",36),c();}if(o&2){let i=n.$implicit,e=n.$index,t=d();C("ngClass",R(7,Lr,e<3))("title",i.name),l(),C("ngClass",Xn(9,Br,e<3,e===0,e===1,e===2)),l(),V(" ",e+1," "),l(),C("transform-image-src",R(14,Nr,i.background_url)),l(3),A(i.name),l(),_(e<3&&t.getGroupTags(i.uid,t.orderRankingData).length>0?7:-1);}}function f4(o,n){if(o&1){let i=y();s(0,"div",39),f("click",function(){b(i);let t=d();return P(t.goRankingsDetail("order"));}),g(1," \u67E5\u770B\u66F4\u591A "),c();}}function C4(o,n){if(o&1){let i=y();s(0,"div",40),f("click",function(){b(i);let t=d();return P(t.showRankingRules("order"));}),g(1," \u5982\u4F55\u4E0A\u699C "),c();}}function x4(o,n){o&1&&M(0,"div",38);}function v4(o,n){if(o&1&&(s(0,"div",37),h(1,x4,1,0,"div",38),g(2),c()),o&2){let i=n.$implicit,e=n.$index;l(),_(e!==0?1:-1),l(),V("",i," ");}}function b4(o,n){if(o&1&&(s(0,"div",35),B(1,v4,3,2,"div",37,Y),c()),o&2){let i=d().$implicit,e=d();l(),N(e.getGroupTags(i.uid,e.payRankingData));}}function P4(o,n){if(o&1){let i=y();s(0,"div",30),f("click",function(){let t=b(i),r=t.$implicit,a=t.$index,p=d();return P(p.goGroupPage(r.uid,a,"\u5B9E\u529B\u699C"));}),s(1,"div",31),g(2),c(),M(3,"img",32),s(4,"div",33)(5,"div",34),g(6),c(),h(7,b4,3,0,"div",35),c(),M(8,"i",36),c();}if(o&2){let i=n.$implicit,e=n.$index,t=d();C("ngClass",R(7,Lr,e<3))("title",i.name),l(),C("ngClass",Xn(9,Br,e<3,e===0,e===1,e===2)),l(),V(" ",e+1," "),l(),C("transform-image-src",R(14,Nr,i.background_url)),l(3),A(i.name),l(),_(e<3&&t.getGroupTags(i.uid,t.payRankingData).length>0?7:-1);}}function M4(o,n){if(o&1){let i=y();s(0,"div",39),f("click",function(){b(i);let t=d();return P(t.goRankingsDetail("pay"));}),g(1," \u67E5\u770B\u66F4\u591A "),c();}}function O4(o,n){if(o&1){let i=y();s(0,"div",40),f("click",function(){b(i);let t=d();return P(t.showRankingRules("pay"));}),g(1," \u5982\u4F55\u4E0A\u699C "),c();}}function w4(o,n){o&1&&M(0,"div",38);}function y4(o,n){if(o&1&&(s(0,"div",37),h(1,w4,1,0,"div",38),g(2),c()),o&2){let i=n.$implicit,e=n.$index;l(),_(e!==0?1:-1),l(),V("",i," ");}}function k4(o,n){if(o&1&&(s(0,"div",35),B(1,y4,3,2,"div",37,Y),c()),o&2){let i=d().$implicit,e=d();l(),N(e.getGroupTags(i.uid,e.renewalRankingData));}}function S4(o,n){if(o&1){let i=y();s(0,"div",30),f("click",function(){let t=b(i),r=t.$implicit,a=t.$index,p=d();return P(p.goGroupPage(r.uid,a,"\u7EED\u671F\u699C"));}),s(1,"div",31),g(2),c(),M(3,"img",32),s(4,"div",33)(5,"div",34),g(6),c(),h(7,k4,3,0,"div",35),c(),M(8,"i",36),c();}if(o&2){let i=n.$implicit,e=n.$index,t=d();C("ngClass",R(7,Lr,e<3))("title",i.name),l(),C("ngClass",Xn(9,Br,e<3,e===0,e===1,e===2)),l(),V(" ",e+1," "),l(),C("transform-image-src",R(14,Nr,i.background_url)),l(3),A(i.name),l(),_(e<3&&t.getGroupTags(i.uid,t.renewalRankingData).length>0?7:-1);}}function T4(o,n){if(o&1){let i=y();s(0,"div",39),f("click",function(){b(i);let t=d();return P(t.goRankingsDetail("renewal"));}),g(1," \u67E5\u770B\u66F4\u591A "),c();}}function E4(o,n){if(o&1){let i=y();s(0,"div",40),f("click",function(){b(i);let t=d();return P(t.showRankingRules("renewal"));}),g(1," \u5982\u4F55\u4E0A\u699C "),c();}}function D4(o,n){o&1&&M(0,"div",38);}function I4(o,n){if(o&1&&(s(0,"div",37),h(1,D4,1,0,"div",38),g(2),c()),o&2){let i=n.$implicit,e=n.$index;l(),_(e!==0?1:-1),l(),V("",i," ");}}
159function F4(o,n){if(o&1&&(s(0,"div",35),B(1,I4,3,2,"div",37,Y),c()),o&2){let i=d().$implicit,e=d();l(),N(e.getGroupTags(i.uid,e.livenessRankingData));}}function A4(o,n){if(o&1){let i=y();s(0,"div",30),f("click",function(){let t=b(i),r=t.$implicit,a=t.$index,p=d();return P(p.goGroupPage(r.uid,a,"\u6D3B\u8DC3\u699C"));}),s(1,"div",31),g(2),c(),M(3,"img",32),s(4,"div",33)(5,"div",34),g(6),c(),h(7,F4,3,0,"div",35),c(),M(8,"i",36),c();}if(o&2){let i=n.$implicit,e=n.$index,t=d();C("ngClass",R(7,Lr,e<3))("title",i.name),l(),C("ngClass",Xn(9,Br,e<3,e===0,e===1,e===2)),l(),V(" ",e+1," "),l(),C("transform-image-src",R(14,Nr,i.background_url)),l(3),A(i.name),l(),_(e<3&&t.getGroupTags(i.uid,t.livenessRankingData).length>0?7:-1);}}function V4(o,n){if(o&1){let i=y();s(0,"div",39),f("click",function(){b(i);let t=d();return P(t.goRankingsDetail("liveness"));}),g(1," \u67E5\u770B\u66F4\u591A "),c();}}function R4(o,n){if(o&1){let i=y();s(0,"div",40),f("click",function(){b(i);let t=d();return P(t.showRankingRules("liveness"));}),g(1," \u5982\u4F55\u4E0A\u699C "),c();}}function L4(o,n){o&1&&M(0,"div",38);}function B4(o,n){if(o&1&&(s(0,"div",37),h(1,L4,1,0,"div",38),g(2),c()),o&2){let i=n.$implicit,e=n.$index;l(),_(e!==0?1:-1),l(),V("",i," ");}}function N4(o,n){if(o&1&&(s(0,"div",35),B(1,B4,3,2,"div",37,Y),c()),o&2){let i=d().$implicit,e=d();l(),N(e.getGroupTags(i.uid,e.newstarRankingData));}}function z4(o,n){if(o&1){let i=y();s(0,"div",30),f("click",function(){let t=b(i),r=t.$implicit,a=t.$index,p=d();return P(p.goGroupPage(r.uid,a,"\u65B0\u661F\u699C"));}),s(1,"div",31),g(2),c(),M(3,"img",32),s(4,"div",33)(5,"div",34),g(6),c(),h(7,N4,3,0,"div",35),c(),M(8,"i",36),c();}if(o&2){let i=n.$implicit,e=n.$index,t=d();C("ngClass",R(7,Lr,e<3))("title",i.name),l(),C("ngClass",Xn(9,Br,e<3,e===0,e===1,e===2)),l(),V(" ",e+1," "),l(),C("transform-image-src",R(14,Nr,i.background_url)),l(3),A(i.name),l(),_(e<3&&t.getGroupTags(i.uid,t.newstarRankingData).length>0?7:-1);}}function G4(o,n){if(o&1){let i=y();s(0,"div",39),f("click",function(){b(i);let t=d();return P(t.goRankingsDetail("newstar"));}),g(1," \u67E5\u770B\u66F4\u591A "),c();}}function j4(o,n){if(o&1){let i=y();s(0,"div",40),f("click",function(){b(i);let t=d();return P(t.showRankingRules("newstar"));}),g(1," \u5982\u4F55\u4E0A\u699C "),c();}}function $4(o,n){o&1&&(s(0,"p",43),g(1,"\u672C\u5468\u9500\u91CF\u6392\u540D\u524D 50 \u540D"),c());}function H4(o,n){o&1&&(s(0,"p",43),g(1,"\u672C\u5468\u9500\u552E\u989D\u6392\u540D\u524D 50 \u540D"),c());}function U4(o,n){o&1&&(s(0,"p",43),g(1,"\u6D3B\u8DC3\u5EA6\u6392\u540D\u524D 50 \u7684\u4ED8\u8D39\u661F\u7403"),c());}function q4(o,n){o&1&&(s(0,"p",43),g(1,'\u8FD1\u534A\u5E74\u5185\u6210\u529F\u901A\u8FC7\u4E86"\u8BD5\u8FD0\u8425\u5BA1\u6838"'),c());}function Q4(o,n){o&1&&(s(0,"p",43),g(1,'\u672C\u6708"\u52A0\u5165\u661F\u7403"\u7684\u9500\u91CF\u6392\u540D\u524D 50 \u540D'),c());}function W4(o,n){o&1&&(s(0,"p",43),g(1,"\u8FD1\u671F\u7EED\u671F\u7387\u6392\u540D\u524D 50"),c());}function X4(o,n){o&1&&(s(0,"p",43),g(1,"\u8FD1\u671F\u7EED\u671F\u4EBA\u6570 >20 \u4EBA"),c());}function J4(o,n){o&1&&(s(0,"p",43),g(1," \u9500\u91CF\u7EDF\u8BA1\u8303\u56F4\uFF1A\u4ED8\u8D39\u52A0\u5165\u661F\u7403\u3001\u4ED8\u8D39\u7EED\u671F\u661F\u7403\u3001\u901A\u8FC7\u793C\u54C1\u5361\u52A0\u5165\u661F\u7403\u3001\u901A\u8FC7\u661F\u7403\u94FE\u63A5\u52A0\u5165\u661F\u7403\u3001\u901A\u8FC7\u661F\u7403\u94FE\u63A5\u7EED\u671F\u661F\u7403 "),c());}function Y4(o,n){o&1&&(s(0,"p",43),g(1," \u9500\u552E\u989D\u7EDF\u8BA1\u8303\u56F4\uFF1A\u4ED8\u8D39\u52A0\u5165\u661F\u7403\u3001\u4ED8\u8D39\u7EED\u671F\u661F\u7403\u3001\u901A\u8FC7\u793C\u54C1\u5361\u52A0\u5165\u661F\u7403 "),c());}function K4(o,n){o&1&&(s(0,"p",43),g(1,"\u6D3B\u8DC3\u5EA6\u5305\u542B\u4EE5\u4E0B\u884C\u4E3A\uFF1A\u53D1\u8868\u4E3B\u9898\u3001\u8BC4\u8BBA\uFF0C\u4EE5\u53CA\u70B9\u8D5E"),c());}function Z4(o,n){o&1&&(s(0,"p",43),g(1," \u7EDF\u8BA1\u8303\u56F4\uFF1A\u4ED8\u8D39\u52A0\u5165\u661F\u7403\u3001\u901A\u8FC7\u793C\u54C1\u5361\u52A0\u5165\u661F\u7403\u3001\u901A\u8FC7\u661F\u7403\u94FE\u63A5\u52A0\u5165\u661F\u7403 "),c());}function eD(o,n){if(o&1){let i=y();s(0,"app-dialog",41),f("dialog-confirm",function(){b(i);let t=d();return P(t.rankingRulesDialogVisible=!1);}),s(1,"div",42),h(2,$4,2,0,"p",43),h(3,H4,2,0,"p",43),h(4,U4,2,0,"p",43),h(5,q4,2,0,"p",43),h(6,Q4,2,0,"p",43),h(7,W4,2,0,"p",43),h(8,X4,2,0,"p",43),h(9,J4,2,0,"p",43),h(10,Y4,2,0,"p",43),h(11,K4,2,0,"p",43),h(12,Z4,2,0,"p",43),c()();}if(o&2){let i=d();C("title",i.rankingRulesDialogType==="order"?"\u7545\u9500\u699C\u4E0A\u699C\u6761\u4EF6":i.rankingRulesDialogType==="pay"?"\u5B9E\u529B\u699C\u4E0A\u699C\u6761\u4EF6":i.rankingRulesDialogType==="liveness"?"\u6D3B\u8DC3\u699C\u4E0A\u699C\u6761\u4EF6":i.rankingRulesDialogType==="renewal"?"\u7EED\u671F\u699C\u4E0A\u699C\u6761\u4EF6":"\u65B0\u661F\u699C\u4E0A\u699C\u6761\u4EF6"),l(2),_(i.rankingRulesDialogType==="order"?2:-1),l(),_(i.rankingRulesDialogType==="pay"?3:-1),l(),_(i.rankingRulesDialogType==="liveness"?4:-1),l(),_(i.rankingRulesDialogType==="newstar"?5:-1),l(),_(i.rankingRulesDialogType==="newstar"?6:-1),l(),_(i.rankingRulesDialogType==="renewal"?7:-1),l(),_(i.rankingRulesDialogType==="renewal"?8:-1),l(),_(i.rankingRulesDialogType==="order"?9:-1),l(),_(i.rankingRulesDialogType==="pay"?10:-1),l(),_(i.rankingRulesDialogType==="liveness"?11:-1),l(),_(i.rankingRulesDialogType==="newstar"?12:-1);}}var t_=(()=>{let n=class n{constructor(e){this.mainContentService=e,this.orderRankingList=[],this.payRankingList=[],this.livenessRankingList=[],this.newstarRankingList=[],this.renewalRankingList=[],this.orderRankingData=null,this.payRankingData=null,this.livenessRankingData=null,this.newstarRankingData=null,this.renewalRankingData=null,this.subscriptions=[],this.rankingRulesDialogVisible=!1,this.rankingRulesDialogType="order";}ngOnInit(){this.doSubscribe(),this.mainContentService.getOrderRankingList(15),this.mainContentService.getPayRankingList(15),this.mainContentService.getLivenessRankingList(15),this.mainContentService.getNewStarRankingList(15),this.mainContentService.getRenewalRankingList(15),$e("RankingboardtView_Visit",{source:"DWebRankinglist",item_type:"DWeb\u603B\u699C"});}doSubscribe(){let e=this.mainContentService.orderRankingList$.subscribe(m=>{this.orderRankingList=m.groups,this.orderRankingData=m;}),t=this.mainContentService.payRankingList$.subscribe(m=>{this.payRankingList=m.groups,this.payRankingData=m;}),r=this.mainContentService.livenessRankingList$.subscribe(m=>{this.livenessRankingList=m.groups,this.livenessRankingData=m;}),a=this.mainContentService.newStarRankingList$.subscribe(m=>{this.newstarRankingList=m.groups,this.newstarRankingData=m;}),p=this.mainContentService.renewalRankingList$.subscribe(m=>{this.renewalRankingList=m.groups,this.renewalRankingData=m;});this.subscriptions.push(e,t,r,a,p);}
159ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}goDiscoverPage(){window.location.href=`${ie.SEO_GROUP_URL}index.html`;}goGroupPage(e,t,r){$e("RankingboardView_GroupClick",{source:"DWebRankingList",group_id:e,index:t,item_type:r}),ne(`/group/${e}`);}goRankingsDetail(e){window.location.href=`${ie.BASE_URL}/rankings/${e}`;}goMoreRankings(){$e("RankingboardView_ShowMoreButton_Click"),setTimeout(()=>{window.location.href=`${ie.BASE_URL}/rankings/hot`;},300);}getGroupTags(e,t){if(!t||!t.recommendations)return[];let r=t.recommendations.find(a=>a.group_uid===e);return r?r.tags.map(a=>a.text):[];}showRankingRules(e){this.rankingRulesDialogType=e,this.rankingRulesDialogVisible=!0;}};n.ɵfac=function(t){return new(t||n)(O(oe));},n.ɵcmp=F({type:n,selectors:[["app-group-rankings-summary"]],standalone:!1,decls:67,vars:11,consts:[[1,"group-rankings-summary"],[1,"rankings-wrapper"],[1,"rankings-header"],[1,"rankings-title-wrapper"],[1,"rankings-title"],[1,"official-text"],[1,"leaf-icon"],[1,"official-description"],[1,"leaf-icon","mirrored"],[1,"more-rankings-btn",3,"click"],[1,"ranking-list-wrapper"],[1,"ranking-list","order"],[1,"list-header","order",3,"click"],[1,"list-icon"],[1,"list-title"],[1,"list-content"],[1,"list-item",3,"ngClass","title"],[1,"view-more"],[1,"ranking-rules"],[1,"ranking-list","pay"],[1,"list-header","pay",3,"click"],[1,"ranking-list","renewal"],[1,"list-header","renewal",3,"click"],[1,"ranking-list-wrapper","second-row"],[1,"ranking-list","liveness"],[1,"list-header","liveness",3,"click"],[1,"ranking-list","newstar"],[1,"list-header","newstar",3,"click"],[1,"ranking-list","placeholder"],["type","confirm","confirmBtnText","\u77E5\u9053\u4E86",3,"title"],[1,"list-item",3,"click","ngClass","title"],[1,"rank-number",3,"ngClass"],[1,"group-bg",3,"transform-image-src"],[1,"group-info"],[1,"group-name"],[1,"group-tags"],[1,"arrow-right"],[1,"tag"],[1,"divider"],[1,"view-more",3,"click"],[1,"ranking-rules",3,"click"],["type","confirm","confirmBtnText","\u77E5\u9053\u4E86",3,"dialog-confirm","title"],[1,"ranking-rules-dialog-content"],[1,"rule-item"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3)(4,"div",4),g(5,"\u661F\u7403\u6392\u884C\u699C"),c()(),s(6,"div",5),M(7,"div",6),s(8,"span",7),g(9,"\u5B98\u65B9\u699C\u5355 \xB7 \u771F\u5B9E\u6570\u636E \xB7 \u5B9A\u671F\u66F4\u65B0"),c(),M(10,"div",8),c(),s(11,"div",9),f("click",function(){return r.goMoreRankings();}),g(12,"\u66F4\u591A\u699C\u5355"),c()(),s(13,"div",10)(14,"div",11)(15,"div",12),f("click",function(){return r.goRankingsDetail("order");}),M(16,"div",13),s(17,"div",14),g(18,"\u7545\u9500\u699C"),c()(),s(19,"div",15),B(20,_4,9,16,"div",16,Rr),h(22,f4,2,0,"div",17),h(23,C4,2,0,"div",18),c()(),s(24,"div",19)(25,"div",20),f("click",function(){return r.goRankingsDetail("pay");}),M(26,"div",13),s(27,"div",14),g(28,"\u5B9E\u529B\u699C"),c()(),s(29,"div",15),B(30,P4,9,16,"div",16,Rr),h(32,M4,2,0,"div",17),h(33,O4,2,0,"div",18),c()(),s(34,"div",21)(35,"div",22),f("click",function(){return r.goRankingsDetail("renewal");}),M(36,"div",13),s(37,"div",14),g(38,"\u7EED\u671F\u699C"),c()(),s(39,"div",15),B(40,S4,9,16,"div",16,Rr),h(42,T4,2,0,"div",17),h(43,E4,2,0,"div",18),c()()(),s(44,"div",23)(45,"div",24)(46,"div",25),f("click",function(){return r.goRankingsDetail("liveness");}),M(47,"div",13),s(48,"div",14),g(49,"\u6D3B\u8DC3\u699C"),c()(),s(50,"div",15),B(51,A4,9,16,"div",16,Rr),h(53,V4,2,0,"div",17),h(54,R4,2,0,"div",18),c()(),s(55,"div",26)(56,"div",27),f("click",function(){return r.goRankingsDetail("newstar");}),M(57,"div",13),s(58,"div",14),g(59,"\u65B0\u661F\u699C"),c()(),s(60,"div",15),B(61,z4,9,16,"div",16,Rr),h(63,G4,2,0,"div",17),h(64,j4,2,0,"div",18),c()(),M(65,"div",28),c()()(),h(66,eD,13,12,"app-dialog",29)),t&2&&(l(20),N(r.orderRankingList),l(2),_(r.orderRankingList.length>0?22:-1),l(),_(r.orderRankingList.length>0?23:-1),l(7),N(r.payRankingList),l(2),_(r.payRankingList.length>0?32:-1),l(),_(r.payRankingList.length>0?33:-1),l(7),N(r.renewalRankingList),l(2),_(r.renewalRankingList.length>0?42:-1),l(),_(r.renewalRankingList.length>0?43:-1),l(8),N(r.livenessRankingList),l(2),_(r.livenessRankingList.length>0?53:-1),l(),_(r.livenessRankingList.length>0?54:-1),l(7),N(r.newstarRankingList),l(2),_(r.newstarRankingList.length>0?63:-1),l(),_(r.newstarRankingList.length>0?64:-1),l(2),_(r.rankingRulesDialogVisible?66:-1));},dependencies:[K,Ze,Wt],styles:['@charset "UTF-8";.group-rankings-summary[_ngcontent-%COMP%]{max-width:1168px;margin:0 auto;padding:32px 0;position:relative}.group-rankings-summary[_ngcontent-%COMP%]:before{position:absolute;content:"";top:0;left:24px;right:24px;height:319px;background-image:url("./media/group_rankings_index_decorate-C5HVGO3I.png");background-size:contain}.group-rankings-summary[_ngcontent-%COMP%]   .rankings-wrapper[_ngcontent-%COMP%]{padding:0 24px;position:relative}.group-rankings-summary[_ngcontent-%COMP%]   .rankings-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:32px}.group-rankings-summary[_ngcontent-%COMP%]   .rankings-header[_ngcontent-%COMP%]   .rankings-title-wrapper[_ngcontent-%COMP%]{background:url("./media/group_rankings_tab_bg-RDBMGUID.png");width:145px;height:37px;background-size:cover;position:relative}.group-rankings-summary[_ngcontent-%COMP%]   .rankings-header[_ngcontent-%COMP%]   .rankings-title-wrapper[_ngcontent-%COMP%]   .rankings-title[_ngcontent-%COMP%]{position:absolute;font-weight:500;font-size:16px;color:var(--dweb-text-on-color);top:10px;left:53px}.group-rankings-summary[_ngcontent-%COMP%]   .rankings-header[_ngcontent-%COMP%]   .official-text[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:16px;position:relative;top:3px}.group-rankings-summary[_ngcontent-%COMP%]   .rankings-header[_ngcontent-%COMP%]   .official-text[_ngcontent-%COMP%]   .leaf-icon[_ngcontent-%COMP%]{width:21px;height:21px;background:url("./media/icon_group_rankings_leaf-X76INZSL.png") center center no-repeat;background-size:contain}.group-rankings-summary[_ngcontent-%COMP%]   .rankings-header[_ngcontent-%COMP%]   .official-text[_ngcontent-%COMP%]   .leaf-icon.mirrored[_ngcontent-%COMP%]{transform:scale
159X(-1)}.group-rankings-summary[_ngcontent-%COMP%]   .rankings-header[_ngcontent-%COMP%]   .official-text[_ngcontent-%COMP%]   .official-description[_ngcontent-%COMP%]{font-size:15px;color:var(--dweb-copper)}.group-rankings-summary[_ngcontent-%COMP%]   .rankings-header[_ngcontent-%COMP%]   .more-rankings-btn[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:var(--dweb-text-primary);margin-left:auto;display:flex;align-items:center;cursor:pointer}.group-rankings-summary[_ngcontent-%COMP%]   .rankings-header[_ngcontent-%COMP%]   .more-rankings-btn[_ngcontent-%COMP%]:after{content:"";display:inline-block;background:url("./media/group_rankings_arrow_right-NOUTFF3X.png");background-size:cover;width:14px;height:14px;margin-left:8px}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]{display:flex}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper.second-row[_ngcontent-%COMP%]{margin-top:20px;align-items:flex-start}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]{flex:1 0 0;background:var(--dweb-bg-panel);border-radius:8px;min-width:300px;box-sizing:border-box;position:relative}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]:not(:last-child){margin-right:20px}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list.order[_ngcontent-%COMP%]:before{content:"";position:absolute;top:2px;left:2px;right:2px;height:312px;background:linear-gradient(180deg,var(--dweb-bg-ranking-order) 0%,var(--dweb-bg-panel) 100%);border-radius:6px 6px 0 0;z-index:0}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list.pay[_ngcontent-%COMP%]:before{content:"";position:absolute;top:2px;left:2px;right:2px;height:312px;background:linear-gradient(180deg,var(--dweb-bg-ranking-pay) 0%,var(--dweb-bg-panel) 100%);border-radius:6px 6px 0 0;z-index:0}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list.liveness[_ngcontent-%COMP%]:before{content:"";position:absolute;top:2px;left:2px;right:2px;height:312px;background:linear-gradient(180deg,var(--dweb-bg-ranking-liveness) 0%,var(--dweb-bg-panel) 100%);border-radius:6px 6px 0 0;z-index:0}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list.newstar[_ngcontent-%COMP%]:before{content:"";position:absolute;top:2px;left:2px;right:2px;height:312px;background:linear-gradient(180deg,var(--dweb-bg-ranking-newstar) 0%,var(--dweb-bg-panel) 100%);border-radius:6px 6px 0 0;z-index:0}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list.placeholder[_ngcontent-%COMP%]{background:transparent;box-shadow:none;pointer-events:none}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list.renewal[_ngcontent-%COMP%]:before{content:"";position:absolute;top:2px;left:2px;right:2px;height:312px;background:linear-gradient(180deg,var(--dweb-bg-ranking-renewal) 0%,var(--dweb-bg-panel) 100%);border-radius:6px 6px 0 0;z-index:0}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin:2px 2px 0;height:63px;border-radius:8px;padding:22px 16px;box-sizing:border-box;cursor:pointer;position:relative;z-index:1}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-header.order[_ngcontent-%COMP%]   .list-icon[_ngcontent-%COMP%]{background:url("./media/groupinfo_ranking_order-GCF4RYAB.png") center center no-repeat;background-size:contain}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-header.pay[_ngcontent-%COMP%]   .list-icon[_ngcontent-%COMP%]{background:url("./media/groupinfo_ranking_pay-WEHX6NFN.png") center center no-repeat;background-size:contain}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-header.liveness[_ngcontent-%COMP%]   .list-icon[_ngcontent-%COMP%]{background:url("./media/groupinfo_ranking_liveness-GEWWT75P.png") center center no-repeat;background-size:contain}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-header.newstar[_ng
159content-%COMP%]   .list-icon[_ngcontent-%COMP%]{background:url("./media/groupinfo_ranking_newstar-EQOZCDDN.png") center center no-repeat;background-size:contain}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-header.renewal[_ngcontent-%COMP%]   .list-icon[_ngcontent-%COMP%]{background:url("./media/groupinfo_ranking_renewal-SG56WCJ6.png") center center no-repeat;background-size:contain}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-header[_ngcontent-%COMP%]   .list-icon[_ngcontent-%COMP%]{margin-right:10px;width:20px;height:20px}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-header[_ngcontent-%COMP%]   .list-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;position:relative;display:flex;align-items:center}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-header[_ngcontent-%COMP%]   .list-title[_ngcontent-%COMP%]:after{content:"";display:inline-block;background:url("./media/icon_group_rankings_header_arrow-OL5VRBDC.png") center center no-repeat;background-size:contain;width:11px;height:11px;margin-left:4px}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-content[_ngcontent-%COMP%]{position:relative;z-index:1}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-content[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]{display:flex;align-items:center;padding:16px 10px 16px 20px;cursor:pointer;position:relative;background:var(--dweb-bg-panel);margin:0 12px;border-radius:12px;transition:transform .5s}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-content[_ngcontent-%COMP%]   .list-item.top-three-item[_ngcontent-%COMP%]:hover{transform:scale(1.03)}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-content[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]:not(.top-three-item):hover{background:var(--dweb-bg-hover-translucent-strong)}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-content[_ngcontent-%COMP%]   .list-item.top-three-item[_ngcontent-%COMP%]{margin-bottom:8px;box-shadow:0 5px 15px 0 var(--dweb-shadow-subtle);min-height:72px;box-sizing:border-box}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-content[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]:not(.top-three-item):after{position:absolute;content:"";bottom:0;left:12px;right:12px;height:1px;width:calc(100% - 24px);background:var(--dweb-border-faint)}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-content[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .rank-number[_ngcontent-%COMP%]{width:20px;height:20px;font-weight:600;font-size:15px;color:var(--dweb-text-secondary);text-align:center;display:flex;align-items:center;justify-content:center}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-content[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .rank-number.top-three[_ngcontent-%COMP%]{color:var(--dweb-text-on-color);font-size:13px;border-radius:4px}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-content[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .rank-number.rank-first[_ngcontent-%COMP%]{background:linear-gradient(180deg,#fda831,#fabf16)}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-content[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .rank-number.rank-second[_ngcontent-%COMP%]{background:linear-gradient(180deg,#89b3f6,#9ac0ee)}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-content[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .rank-number.rank-third[_ngcontent-%COMP%]{background:linear-gradient(180deg,#f18274,#f4936a)}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-content[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .group-bg[_ngcontent-%COMP%]{width:30px;height:30px;background:var(--dweb-bg-canvas);border-radius:4px;margin:0 15px 0 23px}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-content[_ngcontent-%COMP%]   .list-item.to
159p-three-item[_ngcontent-%COMP%]   .group-bg[_ngcontent-%COMP%]{width:36px;height:36px;margin:0 12px 0 20px}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-content[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]{flex:1;min-width:0}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-content[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .group-name[_ngcontent-%COMP%]{font-size:15px;color:var(--dweb-text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-content[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .group-tags[_ngcontent-%COMP%]{font-size:12px;color:var(--dweb-text-muted);margin-top:2px;overflow:hidden;text-overflow:ellipsis;line-height:1.3;height:1.3em}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-content[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .group-tags[_ngcontent-%COMP%]   .tag[_ngcontent-%COMP%]{display:inline-block}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-content[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .group-tags[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{margin:0 5px;display:inline-block;width:1px;height:8px;background:var(--dweb-text-muted)}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .list-content[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .arrow-right[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;background-image:url("./media/[email protected]");background-position:-297px -197px;margin:0 8px}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .view-more[_ngcontent-%COMP%]{cursor:pointer;font-size:15px;color:var(--dweb-info);text-align:center;padding:13px 0;margin:16px 24px;background:var(--dweb-bg-panel);border-radius:8px;border:1px solid var(--dweb-border-control);position:relative;z-index:1}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .view-more[_ngcontent-%COMP%]:hover{background:var(--dweb-bg-hover-translucent-strong)}.group-rankings-summary[_ngcontent-%COMP%]   .ranking-list-wrapper[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .ranking-rules[_ngcontent-%COMP%]{cursor:pointer;color:var(--dweb-text-muted);text-align:center;margin:14px auto;font-size:13px;width:fit-content}html[data-theme=dark][_nghost-%COMP%]   .group-rankings-summary[_ngcontent-%COMP%]:before, html[data-theme=dark]   [_nghost-%COMP%]   .group-rankings-summary[_ngcontent-%COMP%]:before{display:none}.ranking-rules-dialog-content[_ngcontent-%COMP%]{text-align:left}.ranking-rules-dialog-content[_ngcontent-%COMP%]   .rule-item[_ngcontent-%COMP%]{font-size:14px;margin-bottom:6px;padding-left:17px;position:relative;line-height:24px;color:var(--dweb-text-secondary)}.ranking-rules-dialog-content[_ngcontent-%COMP%]   .rule-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.ranking-rules-dialog-content[_ngcontent-%COMP%]   .rule-item[_ngcontent-%COMP%]:before{content:"\\2022";color:var(--dweb-text-muted);position:absolute;left:0;top:0}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (-ms-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.ranking-list[_ngcontent-%COMP%]   .arrow-right[_ngcontent-%COMP%]{background-image:url("./media/[email protected]")!important;background-size:1024px 1057px}}']});let o=n;return o;})();var nD=o=>({"sticky-small":o}),iD=(o,n,i,e)=>({"top-three":o,"rank-first":n,"rank-second":i,"rank-third":e}),oD=o=>({url:o}),rD=o=>({"no-description":o}),n_=(o,n)=>n.uid;function aD(o,n){o&1&&M(0,"img",3);}function sD(o,n){o&1&&M(0,"img",4);}function cD(o,n){o&1&&M(0,"img",5);}function lD(o,n){o&1&&M(0,"img",6);}function pD(o,n){o&1&&M(0,"img",7);}function dD(o,n){if(o&1&&(s(0,"div",10),g(1),c()),o&2){let i=d(2);l(),V("\uFF08",i.rankFrequency,"\uFF09");}}function gD(o,n){if(o&1&&(s(0,"div",10),g(1),c()),o&2){let i=d(2);l(),up(" ",i.formatDate(i.beginTime)," - ",i.formatDate(i.endTime)," \uFF08",i.rankFrequency,"\uFF09 ");}}function uD(o,n){if(o&1&&h(0,dD,2,1,"div",10)(1,gD,2,3,"div",10),o&2){let i=d();_(i.type==="liveness"?0:1);}}function mD(o,n){if(o&1&&(s(0,"span",19),g(1),c()),o&2){let i=d().$implicit,e=d(2);l(),A(e.getGroupTags(i.uid)[0]);}}function hD(o,n){if(o&1&&(s(0,"span"),g(1),c()),o&2){let i=n.$implicit;l(),V(" | ",i);}}function _D(o,n){if(o&1&&B(0,hD,2,1,"span",null,Y),o&2){let i=d().$implicit,e=d(2);N(e.getGroupTags(i.uid).slice(1));}}function fD(o,n){if(o&1&&(s(0,"div",20),g(1),c()),o&2){let i=d().$implicit;l(),A(i.description);}}function CD(o,n){if(o&1){let i=y();s(0,"div",13),f("click",function(){let t=b(i).$implicit,r=d(2);return P(r.toGroupPage(t.uid));}),s(1,"div",14),g(2),c(),M(3,"img",15),s(4,"div",16)(5,"div",17),g(6),c(),s(7,"div",18),h(8,mD,2,1,"span",19),g(9),h(10,_D,2,0),c(),h(11,fD,2,1,"div",20),c(),s(12,"div",21)(13,"span"),g(14,"\uFFE5"),c(),g(15),c()();}if(o&2){let i=n.$implicit,e=n.$index,t=d(2);l(),C("ngClass",Xn(10,iD,e<3,e===0,e===1,e===2)),l(),V(" ",e+1," "),l(),C("transform-image-src",R(15,oD,i.background_url)),l(3),A(i.name),l(2),_(t.getGroupTags(i.uid).length>0?8:-1),l(),V("\u661F\u4E3B",(i.owner==null?null:i.owner.name)||(i.owner==null?null:i.owner.alias)),l(),_(t.getGroupTags(i.uid).length>1?10:-1),l(),_(i.description?11:-1),l(),C("ngClass",R(17,rD,!i.description)),l(3),
159V("",(i.policies==null||i.policies.payment==null?null:i.policies.payment.amount)/100," ");}}function xD(o,n){if(o&1&&(s(0,"div",12),g(1),c()),o&2){let i=d(2);l(),V("\u4EC5\u5C55\u793A\u524D ",i.rankingList.length," \u4F4D\u661F\u7403");}}function vD(o,n){if(o&1&&(s(0,"div",8),B(1,CD,16,19,"div",11,n_),h(3,xD,2,1,"div",12),c()),o&2){let i=d();l(),N(i.rankingList),l(2),_(i.dataLoaded?3:-1);}}function bD(o,n){if(o&1){let i=y();s(0,"div",26),f("click",function(){let t=b(i).$implicit,r=d(2);return P(r.toCategoryRanking(t));}),s(1,"span",27),g(2),c()();}if(o&2){let i=n.$implicit;l(2),A(i.name);}}function PD(o,n){if(o&1){let i=y();s(0,"div",9)(1,"div",22)(2,"div",23),f("click",function(){b(i);let t=d();return P(t.onMoreRankingsClick());}),g(3," \u66F4\u591A\u699C\u5355 "),c()(),s(4,"div",24),B(5,bD,3,1,"div",25,n_),c()();}if(o&2){let i=d();l(5),N(i.rankingCategories);}}var i_=(()=>{let n=class n{get rankFrequency(){return this.type==="liveness"?"\u6BCF 6 \u5C0F\u65F6\u66F4\u65B0":this.type==="renewal"?"\u6BCF\u65E50\u70B9\u66F4\u65B0":"\u6BCF\u5C0F\u65F6\u66F4\u65B0";}constructor(e){this.mainContentService=e,this.type="",this.rankingList=[],this.rankingData=null,this.rankingCategories=[],this.beginTime="",this.endTime="",this.dataLoaded=!1,this.isSticky=!1;}onWindowScroll(){let e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;this.isSticky=e>80;}ngOnInit(){this.doSubscribe(),this.loadRankingCategories(),this.type==="order"?(this.mainContentService.getOrderRankingList(),$e("RankingboardtView_Visit",{source:"DWebRankinglist",item_type:"\u7545\u9500\u699C"})):this.type==="pay"?(this.mainContentService.getPayRankingList(),$e("RankingboardtView_Visit",{source:"DWebRankinglist",item_type:"\u5B9E\u529B\u699C"})):this.type==="liveness"?(this.mainContentService.getLivenessRankingList(),$e("RankingboardtView_Visit",{source:"DWebRankinglist",item_type:"\u6D3B\u8DC3\u699C"})):this.type==="newstar"?(this.mainContentService.getNewStarRankingList(),$e("RankingboardtView_Visit",{source:"DWebRankinglist",item_type:"\u65B0\u661F\u699C"})):this.type==="renewal"&&(this.mainContentService.getRenewalRankingList(),$e("RankingboardtView_Visit",{source:"DWebRankinglist",item_type:"\u7EED\u671F\u699C"}));}doSubscribe(){this.type==="order"?this.mainContentService.orderRankingList$.subscribe(e=>{this.rankingList=e.groups,this.rankingData=e,this.beginTime=e.period.begin_time,this.endTime=e.period.end_time,this.dataLoaded=!0;}):this.type==="pay"?this.mainContentService.payRankingList$.subscribe(e=>{this.rankingList=e.groups,this.rankingData=e,this.beginTime=e.period.begin_time,this.endTime=e.period.end_time,this.dataLoaded=!0;}):this.type==="liveness"?this.mainContentService.livenessRankingList$.subscribe(e=>{this.rankingList=e.groups,this.rankingData=e,this.dataLoaded=!0;}):this.type==="newstar"?this.mainContentService.newStarRankingList$.subscribe(e=>{var t,r;this.rankingList=e.groups,this.rankingData=e,this.beginTime=(t=e.period)==null?void 0:t.begin_time,this.endTime=(r=e.period)==null?void 0:r.end_time,this.dataLoaded=!0;}):this.type==="renewal"&&this.mainContentService.renewalRankingList$.subscribe(e=>{var t,r;this.rankingList=e.groups,this.rankingData=e,this.beginTime=(t=e.period)==null?void 0:t.begin_time,this.endTime=(r=e.period)==null?void 0:r.end_time,this.dataLoaded=!0;});}loadRankingCategories(){this.mainContentService.getHotRankingCategories(),this.mainContentService.hotRankingCategories$.subscribe(e=>{e&&e.categories&&(this.rankingCategories=e.categories);});}onMoreRankingsClick(){$e("RankingboardView_ShowMoreButton_Click"),setTimeout(()=>{window.location.href=ie.BASE_URL+"/rankings/hot";},300);}toCategoryRanking(e){window.location.href=`${ie.BASE_URL}/rankings/hot/${e.uid}`;}toGroupPage(e){window.location.href=`${ie.BASE_URL}/group/${e}`;}formatDate(e){return e&&Fe(ge(e),"yyyy/MM/dd");}formatDays(e){return fn(new Date(),ge(e))+1;}getGroupTags(e){if(!this.rankingData||!this.rankingData.recommendations)return[];let t=this.rankingData.recommendations.find(r=>r.group_uid===e);return t?t.tags.map(r=>r.text):[];}};n.ɵfac=function(t){return new(t||n)(O(oe));},n.ɵcmp=F({type:n,selectors:[["app-group-rankings-detail"]],hostBindings:function(t,r){t&1&&f("scroll",function(){return r.onWindowScroll();},lp);},inputs:{type:"type"},standalone:!1,decls:11,vars:11,consts:[[1,"ranking-detail"],[1,"ranking-detail-wrapper"],[1,"ranking-title",3,"ngClass"],["src","../../../assets_dweb/images/group_rankings_title_order.png","alt","\u6807\u9898_\u661F\u7403\u7545\u9500\u5468\u699C",1,"title-image"],["src","../../../assets_dweb/images/group_rankings_title_pay.png","alt","\u6807\u9898_\u661F\u7403\u5B9E\u529B\u5468\u699C",1,"title-image"],["src","../../../assets_dweb/images/group_rankings_title_liveness.png","alt","\u6807\u9898_\u4ED8\u8D39\u661F\u7403\u6D3B\u8DC3\u699C",1,"title-image"],["src","../../../assets_dweb/images/group_rankings_title_newstar.png","alt","\u6807\u9898_\u65B0\u661F\u7403\u7545\u9500\u6708\u699C",1,"title-image"],["src","../../../assets_dweb/images/group_rankings_title_renewal.png","alt","\u6807\u9898_\u7EED\u671F\u661F\u7403\u4F18\u9009\u699C",1,"title-image"],[1,"ranking-list"],[1,"more-rankings"],[1,"ranking-info"],[1,"group-item"],[1,"no-more"],[1,"group-item",3,"click"],[1,"number",3,"ngClass"],[1,"group-bg",3,"transform-image-src"],[1,"group-info"],[1,"group-name"],[1,"group-summary"],[1,"first-tag"],[1,"description"],[1,"group-price",3,"ngClass"],[2,"text-align","center"],[1,"more-rankings-title",3,"click"],[1,"categories-grid"],[1,"category-item"],[1,"category-item",3,"click"],[1,"category-name"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1)(2,"h2",2),h(3,aD,1,0,"img",3),h(4,sD,1,0,"img",4),h(5,cD,1,0,"img",5),h(6,lD,1,0,"img",6),h(7,pD,1,0,"img",7),c(),h(8,uD,2,1),h(9,vD,4,1,"div",8),h(10,PD,7,0,"div",9),c()()),t&2&&(l(2),C("ngClass",R(9,nD,r.isSticky)),l(),_(r.type==="order"?3:-1),l(),_(r.type==="pay"?4:-1),l(),_(r.type==="liveness"?5:-1),l(),_(r.type==="newstar"?6:-1),l(),_(r.type==="renewal"?7:-1),l(),_(r.dataLoaded?8:-1),l(),_(r.rankingList.length>0?9:-1),l(),_(r.dataLoaded&&r.rankingCategories.length>0?10:-1));},dependencies:[K,Wt],styles:['.ranking-detail[_ngcontent-%COMP%]{max-width:1168px;margin:0 auto;padding:32px 0;position:relative}.ranking-detail[_ngcontent-%COMP%]:before{position:absolute;content:"";top:0;left:24px;right:24px;height:319px;background-image:url("./media/group_rankings_index_decorate_plus-74QMT23Q.png");background-size:contain}.ranking-detail[_ngcontent-%COMP%]   .ranking-detail-wrapper[_ngcontent-%COMP%]{padding:0 24px;position:relative}.ranking-detail[_ngcontent-%COMP%]   .ranking-title[_ngcontent-%COMP%]{margin-bottom:8px;display:flex;justify-content:center;align-items:center;position:sticky;top:0}.ranking-detail[_ngcontent-%COMP%]   .ranking-title.sticky-small[_ngcontent-%COMP%]{margin:0;z-index:1000;height:50px}.ranking-detail[_ngcontent-%COMP%]   .ranking-title.sticky-small[_ngcontent-%COMP%]   .title-image[_ngcontent-%COMP%]{transform:scale(.6)}.ranking-detail[_ngcontent-%COMP%]   .ranking-title[_ngcontent-%COMP%]   .title-image[_ngcontent-%COMP%]{height:40px}.ranking-detail[_ngcontent-%COMP%]   .ranking-info[_ngcontent-%COMP%]{text-align:center;font-size:14px;color:var(--dweb-copper);margin-bottom:16px}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]{background:var(--dweb-bg-panel);border-radius:8px;display:flex;flex-direction:column;padding:20px 10px 0}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;padding:20px 128px 20px 32px;position:relative;transition:background-color .2s ease;border-radius:16px}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]:hover{background:var(--dweb-bg-hover-translucent)}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]:before{content:"";position:absolute;
159left:128px;bottom:0;width:calc(100% - 256px);height:1px;background:var(--dweb-border-faint-6)}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{font-size:18px;width:68px;color:var(--dweb-text-secondary);margin-right:47px;text-align:center}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .number.top-three[_ngcontent-%COMP%]{color:var(--dweb-text-on-color);border-radius:4px;width:26px;height:26px;display:flex;align-items:center;justify-content:center;margin-right:68px;margin-left:21px;font-size:18px;font-weight:700}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .number.rank-first[_ngcontent-%COMP%]{background:linear-gradient(180deg,#fda831,#fabf16)}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .number.rank-second[_ngcontent-%COMP%]{background:linear-gradient(180deg,#89b3f6,#9ac0ee)}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .number.rank-third[_ngcontent-%COMP%]{background:linear-gradient(180deg,#f18274,#f4936a)}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-bg[_ngcontent-%COMP%]{width:80px;height:80px;border-radius:8px;object-fit:cover}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]{flex:1;margin-left:24px;min-width:0}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .group-name[_ngcontent-%COMP%]{margin-bottom:8px;font-weight:500;font-size:20px;color:var(--dweb-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:100px}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .group-summary[_ngcontent-%COMP%]{font-weight:500;color:var(--dweb-text-secondary);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .group-summary[_ngcontent-%COMP%]   .first-tag[_ngcontent-%COMP%]{background:linear-gradient(270deg,var(--dweb-bg-ranking-tag-start) 0%,var(--dweb-bg-ranking-tag-end) 100%);border-radius:4px;font-size:13px;color:var(--dweb-text-ranking-tag);padding:0 3px;height:22px;line-height:22px;display:inline-block;margin-right:8px}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{color:var(--dweb-text-muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:15px;margin-top:8px}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .description.empty[_ngcontent-%COMP%]{color:var(--dweb-text-faint)}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-price[_ngcontent-%COMP%]{position:absolute;right:128px;top:20px;margin:0 16px;background:var(--dweb-bg-danger-tint);border-radius:15px;font-weight:500;font-size:16px;color:var(--dweb-danger);padding:5px 15px;align-self:flex-start}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-price.no-description[_ngcontent-%COMP%]{top:28px}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-price[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:12px;margin-right:2px}.ranking-detail[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .no-more[_ngcontent-%COMP%]{text-align:center;padding:40px 0;font-size:14px;color:var(--dweb-text-muted)}.ranking-detail[_ngcontent-%COMP%]   .more-rankings[_ngcontent-%COMP%]{margin-top:10px;background:var(--dweb-bg-panel);border-radius:8px;padding:24px 68px 40px}.ranking-detail[_ngcontent-%COMP%]   .more-rankings[_ngcontent-%COMP%]   .more-rankings-title[_ngcontent-%COMP%]{font-size:18px;color:var(--dweb-text-primary);margin-bottom:32px;text-align:center;display:inline-block;cursor:pointer;position:relative;font-weight:500;padding:4px 30px 4px 16px;border-radius:16px;transition:background-color .2s ease}.ranking-detail[_ngcontent-%COMP%]   .more-rankings[_ngcontent-%COMP%]   .more-rankings-title[_ngcontent-%COMP%]:hover{background:var(--dweb-bg-hover-translucent)}.ranking-detail[_ngcontent-%COMP%]   .more-rankings[_ngcontent-%COMP%]   .more-rankings-title[_ngcontent-%COMP%]:after{content:"";position:absolute;right:14px;top:50%;transform:translateY(-50%);width:11px;height:11px;
159background-image:url("./media/icon_arrow_right-OL5VRBDC.png");background-size:contain;background-repeat:no-repeat}.ranking-detail[_ngcontent-%COMP%]   .more-rankings[_ngcontent-%COMP%]   .categories-grid[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;line-height:1;max-height:88px;overflow:hidden}.ranking-detail[_ngcontent-%COMP%]   .more-rankings[_ngcontent-%COMP%]   .categories-grid[_ngcontent-%COMP%]   .category-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:36px;min-width:68px;padding:7px 16px;box-sizing:border-box;background:var(--dweb-bg-soft);border-radius:4px;cursor:pointer;white-space:nowrap;margin-right:16px;margin-bottom:16px;transition:background-color .2s ease}.ranking-detail[_ngcontent-%COMP%]   .more-rankings[_ngcontent-%COMP%]   .categories-grid[_ngcontent-%COMP%]   .category-item[_ngcontent-%COMP%]:hover{background:var(--dweb-bg-ranking-divider)}.ranking-detail[_ngcontent-%COMP%]   .more-rankings[_ngcontent-%COMP%]   .categories-grid[_ngcontent-%COMP%]   .category-item[_ngcontent-%COMP%]   .category-name[_ngcontent-%COMP%]{font-size:16px;color:var(--dweb-text-primary)}']});let o=n;return o;})();function OD(o,n){o&1&&M(0,"app-group-rankings-summary");}function wD(o,n){if(o&1&&M(0,"app-group-rankings-detail",1),o&2){let i=d();C("type",i.currentType);}}var o_=(()=>{let n=class n{constructor(e,t,r){this.titleService=e,this.route=t,this.router=r,this.currentType="index",this.validTypes=["index","order","pay","liveness","newstar","renewal"],this.titleMap={index:"\u661F\u7403\u6392\u884C\u699C",order:"\u661F\u7403\u7545\u9500\u5468\u699C",pay:"\u661F\u7403\u5B9E\u529B\u5468\u699C",liveness:"\u4ED8\u8D39\u661F\u7403\u6D3B\u8DC3\u699C",newstar:"\u65B0\u661F\u7403\u7545\u9500\u6708\u699C",renewal:"\u7EED\u671F\u661F\u7403\u4F18\u9009\u699C"};}ngOnInit(){this.route.params.subscribe(e=>{let t=e.ranking_type;if(!this.validTypes.includes(t)){this.router.navigate(["/rankings/index"]);return;}this.currentType=t,this.titleService.setTitle(`${this.titleMap[t]}-\u77E5\u8BC6\u661F\u7403`);});}};n.ɵfac=function(t){return new(t||n)(O(Jn),O(ke),O(ue));},n.ɵcmp=F({type:n,selectors:[["app-group-rankings-page"]],standalone:!1,decls:3,vars:2,consts:[[1,"group-rankings-page"],[3,"type"]],template:function(t,r){t&1&&(s(0,"div",0),h(1,OD,1,0,"app-group-rankings-summary"),h(2,wD,1,1,"app-group-rankings-detail",1),c()),t&2&&(l(),_(r.currentType==="index"?1:-1),l(),_(r.currentType!=="index"?2:-1));},dependencies:[t_,i_],styles:[".group-rankings-page[_ngcontent-%COMP%]{background:linear-gradient(180deg,var(--dweb-bg-browse-top) 0%,var(--dweb-bg-page) 100%);padding-top:50px}"]});let o=n;return o;})();var yD=["categoryContainer"],kD=(o,n,i,e)=>({"top-three":o,"rank-first":n,"rank-second":i,"rank-third":e}),SD=o=>({url:o}),TD=o=>({"no-desc":o}),r_=(o,n)=>n.uid;function ED(o,n){if(o&1){let i=y();s(0,"div",19),f("click",function(){let t=b(i).$implicit,r=d();return P(r.selectCategory(t.uid));}),g(1),c();}if(o&2){let i=n.$implicit,e=d();zt("active",e.selectedCategoryUid===i.uid),l(),V(" ",i.name," ");}}function DD(o,n){if(o&1&&(s(0,"span",27),g(1),c()),o&2){let i=d().$implicit,e=d(2);l(),A(e.getGroupTags(i.uid)[0]);}}function ID(o,n){if(o&1&&(s(0,"span"),g(1),c()),o&2){let i=n.$implicit;l(),V(" | ",i);}}function FD(o,n){if(o&1&&B(0,ID,2,1,"span",null,Y),o&2){let i=d().$implicit,e=d(2);N(e.getGroupTags(i.uid).slice(1));}}function AD(o,n){if(o&1&&(s(0,"div",28),g(1),c()),o&2){let i=d().$implicit;l(),A(i.description);}}function VD(o,n){if(o&1){let i=y();s(0,"div",21),f("click",function(){let t=b(i).$implicit,r=d(2);return P(r.goGroupPage(t.uid));}),s(1,"div",22),g(2),c(),M(3,"img",23),s(4,"div",24)(5,"div",25),g(6),c(),s(7,"div",26),h(8,DD,2,1,"span",27),g(9),h(10,FD,2,0),c(),h(11,AD,2,1,"div",28),c(),s(12,"div",29)(13,"span"),g(14,"\uFFE5"),c(),g(15),c()();}if(o&2){let i=n.$implicit,e=n.$index,t=d(2);l(),C("ngClass",Xn(10,kD,e<3,e===0,e===1,e===2)),l(),V(" ",e+1," "),l(),C("transform-image-src",R(15,SD,i.background_url)),l(3),A(i.name),l(2),_(t.getGroupTags(i.uid).length>0?8:-1),l(),V("\u661F\u4E3B",(i.owner==null?null:i.owner.name)||(i.owner==null?null:i.owner.alias)),l(),_(t.getGroupTags(i.uid).length>1?10:-1),l(),_(i.description?11:-1),l(),C("ngClass",R(17,TD,!i.description)),l(3),
159V("",(i.policies==null||i.policies.payment==null?null:i.policies.payment.amount)/100," ");}}function RD(o,n){if(o&1&&(s(0,"div",16),B(1,VD,16,19,"div",20,r_),c()),o&2){let i=d();l(),N(i.rankingList);}}function LD(o,n){o&1&&(s(0,"div",17),g(1,"\u52A0\u8F7D\u4E2D..."),c());}function BD(o,n){o&1&&(s(0,"div",18),g(1,"-- \u6839\u636E\u8FD1 7 \u65E5\u9500\u91CF\u8FDB\u884C\u6392\u540D --"),c());}var ql=(()=>{let n=class n{constructor(e,t,r){this.mainContentService=e,this.route=t,this.router=r,this.categories=[],this.selectedCategoryUid="",this.urlCategoryUid="",this.rankingList=[],this.rankingData=null,this.loading=!1,this.hasMore=!0,this.currentIndex=0,this.pageSize=30,this.dataLoaded=!1,this.subscriptions=[];}ngOnInit(){this.urlCategoryUid=this.route.snapshot.paramMap.get("categoryUid")||"",this.setupSubscriptions(),this.loadCategories(),$e("RankingboardtView_Visit",{source:"DWebRankinglist",item_type:"\u70ED\u95E8\u699C"});}getSourceByReferrer(){let e=document.referrer;return e.includes("/rankings/")?"MorePremiumGroup":e.includes("/search/")?"GlobalSearch":"";}setupSubscriptions(){let e=this.mainContentService.hotRankingCategories$.subscribe(r=>{this.categories=r.categories||[],this.categories.length>0&&!this.selectedCategoryUid&&(this.urlCategoryUid&&this.categories.find(a=>a.uid===this.urlCategoryUid)?this.selectedCategoryUid=this.urlCategoryUid:this.selectedCategoryUid=this.categories[0].uid,this.loadCategoryRankings(),setTimeout(()=>{this.scrollToSelectedCategory();},100));}),t=this.mainContentService.categoryRankingList$.subscribe(r=>{if(r.groups&&r.groups.length>0){if(this.rankingList=[...this.rankingList,...r.groups],this.rankingData&&this.rankingData.recommendations&&r.recommendations){let a=this.rankingData.recommendations,p=r.recommendations,m=[...a];p.forEach(v=>{a.find(x=>x.group_uid===v.group_uid)||m.push(v);}),this.rankingData=Ot(Ue({},r),{groups:this.rankingList,recommendations:m});}else this.rankingData=Ot(Ue({},r),{groups:this.rankingList});this.currentIndex+=r.groups.length,this.hasMore=r.groups.length>=this.pageSize;}else this.hasMore=!1;this.loading=!1,this.dataLoaded=!0;});this.subscriptions.push(e,t);}ngAfterViewInit(){this.selectedCategoryUid&&this.categories.length>0&&this.scrollToSelectedCategory();}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}loadCategories(){this.mainContentService.getHotRankingCategories();}selectCategory(e){this.selectedCategoryUid!==e&&(this.selectedCategoryUid=e,this.rankingList=[],this.rankingData=null,this.currentIndex=0,this.hasMore=!0,this.dataLoaded=!1,this.router.navigate(["/rankings/hot",e],{replaceUrl:!0}),this.loadCategoryRankings());}loadCategoryRankings(){this.loading||!this.hasMore||!this.selectedCategoryUid||(this.loading=!0,this.mainContentService.getCategoryRankingList(this.selectedCategoryUid,this.currentIndex,this.pageSize));}onScroll(e){let t=e.target;t.scrollHeight-t.scrollTop<t.clientHeight+50&&this.loadCategoryRankings();}goGroupPage(e){var p;let t=this.rankingList.findIndex(m=>m.uid===e),r=((p=this.categories.find(m=>m.uid===this.selectedCategoryUid))==null?void 0:p.name)||"",a=this.getSourceByReferrer();$e("RankingboardShowMoreView_Click",{group_id:e,index:t,source:a,param1:r}),ne(`/group/${e}`);}getGroupTags(e){if(!this.rankingData||!this.rankingData.recommendations)return[];let t=this.rankingData.recommendations.find(r=>r.group_uid===e);return t?t.tags.map(r=>r.text):[];}formatDate(e){return e&&Fe(ge(e),"yyyy/MM/dd");}scrollToSelectedCategory(){if(!this.categoryContainer||!this.selectedCategoryUid)return;let e=this.categoryContainer.nativeElement,t=this.categories.findIndex(a=>a.uid===this.selectedCategoryUid);if(t===-1)return;let r=e.querySelectorAll(".category-item");r[t]&&r[t].scrollIntoView({behavior:"smooth",block:"center"});}};n.ɵfac=function(t){return new(t||n)(O(oe),O(ke),O(ue));},n.ɵcmp=F({type:n,selectors:[["app-group-rankings-hot"]],viewQuery:function(t,r){if(t&1&&_e(yD,5),t&2){let a;ee(a=te())&&(r.categoryContainer=a.first);}},standalone:!1,decls:21,vars:3,consts:[["categoryContainer",""],[1,"group-rankings-hot"],[1,"group-rankings-hot-main"],[1,"rankings-wrapper"],[1,"rankings-header"],[1,"rankings-title-wrapper"],["src","../../../assets_dweb/images/group_rankings_title_hot.png","alt","\u6807\u9898_\u70ED\u95E8\u661F\u7403\u6392\u884C",1,"title-image"],[1,"official-text"],[1,"leaf-icon"],[1,"official-description"],[1,"leaf-icon","mirrored"],[1,"content-wrapper"],[1,"category-sidebar"],[1,"category-item",3,"active"],[1,"rankings-content"],[1,"ranking-list-container",3,"scroll"],[1,"ranking-list"],[1,"loading-indicator"],[1,"ranking-footer"],[1,"category-item",3,"click"],[1,"group-item"],[1,"group-item",3,"click"],[1,"number",3,"ngClass"],[1,"group-bg",3,"transform-image-src"],[1,"group-info"],[1,"group-name"],[1,"group-summary"],[1,"first-tag"],[1,"description"],[1,"group-price",3,"ngClass"]],template:function(t,r){t&1&&(s(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h2",5),M(5,"img",6),c(),s(6,"div",7),M(7,"div",8),s(8,"span",9),g(9,"\u5B98\u65B9\u699C\u5355 \xB7 \u771F\u5B9E\u6570\u636E \xB7 \u5B9A\u671F\u66F4\u65B0"),c(),M(10,"div",10),c()(),s(11,"div",11)(12,"div",12,0),B(14,ED,2,3,"div",13,r_),c(),s(16,"div",14)(17,"div",15),f("scroll",function(p){return r.onScroll(p);}),h(18,RD,3,0,"div",16),h(19,LD,2,0,"div",17),h(20,BD,2,0,"div",18),c()()()()()()),t&2&&(l(14),N(r.categories),l(4),_(r.rankingList.length>0?18:-1),l(),_(r.loading?19:-1),l(),_(!r.hasMore&&r.rankingList.length>0?20:-1));},dependencies:[K,Wt],styles:['@charset "UTF-8";
159.group-rankings-hot[_ngcontent-%COMP%]{background:linear-gradient(180deg,var(--dweb-bg-browse-top) 0%,var(--dweb-bg-page) 100%);padding-top:50px}.group-rankings-hot-main[_ngcontent-%COMP%]{max-width:1168px;margin:0 auto;padding-top:24px;padding-bottom:15px;position:relative}.group-rankings-hot-main[_ngcontent-%COMP%]:before{position:absolute;content:"";top:0;left:24px;right:24px;height:319px;background-image:url("./media/group_rankings_index_decorate_plus-74QMT23Q.png");background-size:contain}.group-rankings-hot-main[_ngcontent-%COMP%]   .rankings-wrapper[_ngcontent-%COMP%]{padding:0 24px;position:relative}.group-rankings-hot-main[_ngcontent-%COMP%]   .rankings-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-bottom:16px}.group-rankings-hot-main[_ngcontent-%COMP%]   .rankings-header[_ngcontent-%COMP%]   .rankings-title-wrapper[_ngcontent-%COMP%]{margin-bottom:8px;display:flex;justify-content:center}.group-rankings-hot-main[_ngcontent-%COMP%]   .rankings-header[_ngcontent-%COMP%]   .rankings-title-wrapper[_ngcontent-%COMP%]   .title-image[_ngcontent-%COMP%]{height:40px}.group-rankings-hot-main[_ngcontent-%COMP%]   .rankings-header[_ngcontent-%COMP%]   .official-text[_ngcontent-%COMP%]{display:flex;align-items:center}.group-rankings-hot-main[_ngcontent-%COMP%]   .rankings-header[_ngcontent-%COMP%]   .official-text[_ngcontent-%COMP%]   .leaf-icon[_ngcontent-%COMP%]{width:21px;height:21px;background:url("./media/icon_group_rankings_leaf-X76INZSL.png") center center no-repeat;background-size:contain}.group-rankings-hot-main[_ngcontent-%COMP%]   .rankings-header[_ngcontent-%COMP%]   .official-text[_ngcontent-%COMP%]   .leaf-icon.mirrored[_ngcontent-%COMP%]{transform:scaleX(-1)}.group-rankings-hot-main[_ngcontent-%COMP%]   .rankings-header[_ngcontent-%COMP%]   .official-text[_ngcontent-%COMP%]   .official-description[_ngcontent-%COMP%]{font-size:15px;color:var(--dweb-copper);margin:0 8px}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]{display:flex;height:calc(100vh - 180px);min-height:600px;padding-left:8px;border-radius:8px;background:var(--dweb-bg-panel)}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .category-sidebar[_ngcontent-%COMP%]{width:132px;margin:20px 0;flex-shrink:0;display:flex;flex-direction:column;max-height:100%;background:var(--dweb-bg-hover-translucent);border-radius:16px;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .category-sidebar[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .category-sidebar[_ngcontent-%COMP%]   .category-item[_ngcontent-%COMP%]{padding-left:16px;cursor:pointer;transition:all .2s ease;font-size:16px;color:var(--dweb-text-secondary);height:54px;line-height:54px;box-sizing:border-box}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .category-sidebar[_ngcontent-%COMP%]   .category-item[_ngcontent-%COMP%]:hover:not(.active){background:var(--dweb-bg-panel)}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .category-sidebar[_ngcontent-%COMP%]   .category-item.active[_ngcontent-%COMP%]{background:var(--dweb-bg-panel);color:var(--dweb-brand);font-weight:600;font-size:18px;position:relative}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .category-sidebar[_ngcontent-%COMP%]   .category-item.active[_ngcontent-%COMP%]:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:4px;height:20px;background:var(--dweb-brand);border-radius:2px}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;min-width:0;height:100%}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]{flex:1;overflow-y:auto;min-height:0;scrollbar-width:none;-ms-overflow-style:none}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]{padding:20px 10px 0}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;padding:20px 32px 20px 16px;position:relative;border-radius:16px;transition:background-color .2s ease}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]:hover{background:var(--dweb-bg-hover-translucent)}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]:before{content:"";position:absolute;
159left:98px;bottom:0;width:calc(100% - 130px);height:1px;background:var(--dweb-border-faint-6)}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{font-size:18px;width:40px;color:var(--dweb-text-secondary);margin-right:47px;margin-left:14px;text-align:center}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .number.top-three[_ngcontent-%COMP%]{color:var(--dweb-text-on-color);border-radius:4px;width:26px;height:26px;display:flex;align-items:center;justify-content:center;margin-left:21px;margin-right:50px;font-size:18px;font-weight:700}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .number.rank-first[_ngcontent-%COMP%]{background:linear-gradient(180deg,#fda831,#fabf16)}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .number.rank-second[_ngcontent-%COMP%]{background:linear-gradient(180deg,#89b3f6,#9ac0ee)}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .number.rank-third[_ngcontent-%COMP%]{background:linear-gradient(180deg,#f18274,#f4936a)}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-bg[_ngcontent-%COMP%]{width:80px;height:80px;border-radius:8px;object-fit:cover}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]{flex:1;margin-left:24px;min-width:0}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .group-name[_ngcontent-%COMP%]{margin-bottom:8px;font-weight:500;font-size:18px;color:var(--dweb-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:100px}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .group-summary[_ngcontent-%COMP%]{font-weight:500;color:var(--dweb-text-secondary);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .group-summary[_ngcontent-%COMP%]   .first-tag[_ngcontent-%COMP%]{background:linear-gradient(270deg,var(--dweb-bg-ranking-tag-start) 0%,var(--dweb-bg-ranking-tag-end) 100%);border-radius:4px;font-size:13px;color:var(--dweb-text-ranking-tag);padding:0 3px;height:22px;line-height:22px;display:inline-block;margin-right:8px}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-info[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{color:var(--dweb-text-muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:15px;margin-top:8px}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-price[_ngcontent-%COMP%]{position:absolute;right:32px;top:20px;margin:0 5px;background:var(--dweb-bg-danger-tint);border-radius:15px;font-weight:500;font-size:16px;color:var(--dweb-danger);padding:5px 15px;align-self:flex-start}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-price.no-desc[_ngcontent-%COMP%]{margin-top:10px}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .ranking-list[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]   .group-price[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:12px;margin-right:2px}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .loading-indicator[_ngcontent-%COMP%]{text-align:center;padding:20px;font-size:14px;color:var(--dweb-text-muted)}.group-rankings-hot-main[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .rankings-content[_ngcontent-%COMP%]   .ranking-list-container[_ngcontent-%COMP%]   .ranking-footer[_ngcontent-%COMP%]{text-align:center;font-size:14px;color:var(--dweb-text-muted);padding:40px 0}html[data-theme=dark][_nghost-%COMP%]   .group-rankings-hot-main[_ngcontent-%COMP%]:before, html[data-theme=dark]   [_nghost-%COMP%]   .group-rankings-hot-main[_ngcontent-%COMP%]:before{display:none}']});let o=n;return o;})();var g_=xi(d_(),1);var ND=["ngx-masonry",""],zD=["*"],Wl=(()=>{class o{constructor(i,e){this.platformId=i,this._element=e,this.updateLayout=!1,this.ordered=!1,this.layoutComplete=new H(),this.removeComplete=new H(),this.itemsLoaded=new H(),this.pendingItems=[];}ngOnInit(){this.options||(this.options={}),this.options.itemSelector||(this.options.itemSelector="[ngxMasonryItem], ngxMasonryItem"),this.options.transitionDuration="0s",Co(this.platformId)&&(this.masonryInstance=new g_.default(this._element.nativeElement,this.options),this.masonryInstance.on("layoutComplete",i=>{this.layoutComplete.emit(i);}),this.masonryInstance.on("removeComplete",i=>{this.removeComplete.emit(i);}),this.masonryInstance.items=[]);}
159ngOnChanges(i){i.updateLayout&&(i.updateLayout.firstChange||this.layout());}ngOnDestroy(){this.masonryInstance&&this.masonryInstance.destroy();}layout(){setTimeout(()=>{this.masonryInstance.layout();});}reloadItems(){setTimeout(()=>{this.masonryInstance.reloadItems();});}addPendingItem(i){this.pendingItems.push(i);}add(i){if(this.ordered){for(let[e,t]of this.pendingItems.entries())if(t)if(t.images&&t.images.size===0)this.pendingItems[e]=void 0,this.itemLoaded(t),e+1===this.pendingItems.length&&(this.itemsLoaded.emit(this.pendingItems.length),this.pendingItems=[]);else return;}else this.itemLoaded(i);}itemLoaded(i){Co(this.platformId)&&(i.prepend?this.masonryInstance.prepended(i.element.nativeElement):this.masonryInstance.appended(i.element.nativeElement),this.masonryInstance.items.length===1&&this.masonryInstance.layout(),i.playAnimation(!0));}remove(i){Co(this.platformId)&&(this.masonryInstance.remove(i),this.layout());}}return o.ɵfac=function(i){return new(i||o)(O($r),O(Re));},o.ɵcmp=F({type:o,selectors:[["","ngx-masonry",""],["ngx-masonry"]],inputs:{options:"options",updateLayout:"updateLayout",ordered:"ordered"},outputs:{layoutComplete:"layoutComplete",removeComplete:"removeComplete",itemsLoaded:"itemsLoaded"},standalone:!1,features:[It],attrs:ND,ngContentSelectors:zD,decls:1,vars:0,template:function(i,e){i&1&&(Zt(),Nt(0));},styles:["[_nghost-%COMP%]{display:block}"]}),o;})(),u_=(()=>{class o{constructor(i,e,t,r){this.element=i,this.builder=e,this.parent=t,this.renderer=r,this.prepend=!1,this.animations={show:[rn({opacity:0}),xo("400ms ease-in",rn({opacity:1}))],hide:[rn({opacity:"*"}),xo("400ms ease-in",rn({opacity:0}))]};}ngOnInit(){this.parent.options.animations!==void 0&&(this.animations=this.parent.options.animations),this.renderer.setStyle(this.element.nativeElement,"position","fixed"),this.renderer.setStyle(this.element.nativeElement,"right","-150vw"),this.parent.addPendingItem(this);}ngAfterViewInit(){let i=Array.from(this.element.nativeElement.getElementsByTagName("img"));if(this.images=new Set(i),i.length===0)setTimeout(()=>{this.parent.add(this);});else for(let e of i)e.hasAttribute("masonryLazy")?this.imageLoaded(e):(this.renderer.listen(e,"load",t=>{this.imageLoaded(e);}),this.renderer.listen(e,"error",t=>{this.imageLoaded(e);}));}ngOnDestroy(){this.images&&this.images.size===0&&this.element.nativeElement.parentNode&&(this.playAnimation(!1),this.parent.remove(this.element.nativeElement));}imageLoaded(i){this.images.delete(i),this.images.size===0&&this.parent.add(this);}playAnimation(i){let e=i?this.animations.show:this.animations.hide;e&&this.builder.build(e).create(this.element.nativeElement).play();}}return o.ɵfac=function(i){return new(i||o)(O(Re),O(cd),O(Zs(()=>Wl)),O(Ki));},o.ɵdir=Bt({type:o,selectors:[["","ngxMasonryItem",""],["ngxMasonryItem"]],inputs:{prepend:"prepend"},standalone:!1}),o;})(),m_=(()=>{class o{}return o.ɵfac=function(i){return new(i||o)();},o.ɵmod=it({type:o}),o.ɵinj=nt({}),o;})();var jD=(o,n)=>n.topic_id;function $D(o,n){o&1&&(s(0,"app-lottie-loading"),g(1,"\u52A0\u8F7D\u4E2D..."),c());}function HD(o,n){if(o&1&&(s(0,"div",5),M(1,"app-recommend-topic",6),c()),o&2){let i=n.$implicit,e=n.$index,t=d(2);l(),C("topic",i)("index",e)("userGroupsCount",t.userGroupsCount);}}function UD(o,n){if(o&1&&(s(0,"ngx-masonry",4),B(1,HD,2,3,"div",5,jD),c()),o&2){let i=d();C("options",i.masonryOptions),l(),N(i.recommendedTopics);}}function qD(o,n){o&1&&(s(0,"app-lottie-loading"),g(1,"\u52A0\u8F7D\u66F4\u591A..."),c());}function QD(o,n){if(o&1){let i=y();s(0,"div",9),f("click",function(){b(i);let t=d(4);return P(t.retryLoad());}),g(1,"\u70B9\u51FB\u91CD\u8BD5"),c();}}function WD(o,n){o&1&&(s(0,"div",10),g(1,"\u6CA1\u6709\u66F4\u591A\u4E86"),c());}function XD(o,n){if(o&1&&h(0,WD,2,0,"div",10),o&2){let i=d(4);_(i.hasMore?-1:0);}}function JD(o,n){if(o&1&&h(0,QD,2,0,"div",8)(1,XD,1,1),o&2){let i=d(3);_(i.error?0:1);}}function YD(o,n){if(o&1&&(h(0,qD,2,0,"app-lottie-loading"),h(1,JD,2,1)),o&2){let i=d(2);_(i.isLoadingMore&&i.hasMore?0:-1),l(),_(i.isLoadingMore?-1:1);}}
159function KD(o,n){o&1&&(s(0,"div",7),M(1,"i",11),s(2,"span"),g(3,"\u6682\u65E0\u63A8\u8350\u5185\u5BB9"),c()());}function ZD(o,n){if(o&1&&h(0,YD,2,2)(1,KD,4,0,"div",7),o&2){let i=d();_(i.recommendedTopics.length>0?0:1);}}var h_=(()=>{let n=class n{constructor(e,t,r){this.mainService=e,this.groupListService=t,this.titleService=r,this.recommendedTopics=[],this.isInitialLoading=!0,this.isLoadingMore=!1,this.hasMore=!0,this.error=null,this.subscriptions=[],this.previousScrollTop=0,this.pageSize=15,this.nextIndex=1,this.userGroupsCount=0,this.masonryOptions={gutter:16,resize:!0,initLayout:!0,fitWidth:!1,percentPosition:!0,horizontalOrder:!0};}ngOnInit(){this.titleService.setTitle("\u53D1\u73B0\u4F18\u8D28\u5185\u5BB9-\u77E5\u8BC6\u661F\u7403"),this.initUserGroupsCount();let e=this.mainService.recommendationTopics$.subscribe(r=>{if(r&&r.length>0){let a=r.filter(v=>v.type==="talk"),p=new Set(this.recommendedTopics.map(v=>v.topic_id)),m=a.filter(v=>!p.has(v.topic_id));m.length>0?this.recommendedTopics=this.recommendedTopics.concat(m):this.hasMore=!1,this.error=null;}else this.hasMore=!1;this.isInitialLoading=!1,this.isLoadingMore=!1;}),t=this.mainService.recommendationTopicsIndex$.subscribe(r=>{this.nextIndex=r||1;});this.subscriptions.push(e),this.subscriptions.push(t),this.loadTopics();}ngAfterViewInit(){setTimeout(()=>{this.initScrollObservable();},1e3);}initScrollObservable(){this.pageScroll$=At(window,"scroll").pipe(Dt(()=>window.scrollY||window.pageYOffset),ut(t=>{if(t>this.previousScrollTop){let r=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight);return this.previousScrollTop=t,t>=r-window.innerHeight-1e3;}else return this.previousScrollTop=t,!1;}),Ct(100));let e=this.pageScroll$.subscribe(()=>{this.loadMore();});this.subscriptions.push(e);}loadTopics(){this.mainService.getRecommendationTopics(this.pageSize,this.nextIndex);}loadMore(){!this.isLoadingMore&&this.hasMore&&!this.isInitialLoading&&(this.isLoadingMore=!0,this.loadTopics());}retryLoad(){this.error=null,this.isLoadingMore=!0,this.hasMore=!0,this.loadTopics();}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe());}initUserGroupsCount(){let e=this.groupListService.getAllGroups();if(e&&e.length>0){this.userGroupsCount=e.length;return;}let t=this.groupListService.group$.subscribe(r=>{r&&r.groups&&(this.userGroupsCount=r.groups.length);});this.subscriptions.push(t),this.groupListService.getGroups();}};n.ɵfac=function(t){return new(t||n)(O(oe),O(ce),O(Jn));},n.ɵcmp=F({type:n,selectors:[["app-recommend-topics"]],standalone:!1,decls:7,vars:3,consts:[[1,"recommend-topics-page"],[1,"page-header"],["src","assets_dweb/images/recommends_title.png","alt","\u53D1\u73B0\u66F4\u591A\u4F18\u8D28\u5185\u5BB9","width","242","height","40",1,"page-title"],[1,"topics-container"],[1,"topics-masonry",3,"options"],["ngxMasonryItem","",1,"topic-card-item"],[3,"topic","index","userGroupsCount"],[1,"no-data"],[1,"retry-bar"],[1,"retry-bar",3,"click"],[1,"no-more"],[1,"icon"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"div",1),M(2,"img",2),c(),s(3,"div",3),h(4,$D,2,0,"app-lottie-loading"),h(5,UD,3,1,"ngx-masonry",4),h(6,ZD,2,1),c()()),t&2&&(l(4),_(r.isInitialLoading?4:-1),l(),_(r.isInitialLoading?-1:5),l(),_(r.isInitialLoading?-1:6));},dependencies:[Ae,xa,Wl,u_],styles:['.recommend-topics-page[_ngcontent-%COMP%]{background:linear-gradient(180deg,var(--dweb-bg-browse-top) 0%,var(--dweb-bg-page) 100%);background-attachment:fixed;min-height:100vh;padding:50px 0 40px}.recommend-topics-page[_ngcontent-%COMP%]   .page-header[_ngcontent-%COMP%]{max-width:1168px;margin:0 auto;padding:24px;position:relative}.recommend-topics-page[_ngcontent-%COMP%]   .page-header[_ngcontent-%COMP%]:before{position:absolute;content:"";top:0;left:24px;right:24px;height:319px;background-image:url("./media/recommends_decorate-SPZUKO2N.png");background-size:contain;background-repeat:no-repeat;pointer-events:none}.recommend-topics-page[_ngcontent-%COMP%]   .page-header[_ngcontent-%COMP%]   .page-title[_ngcontent-%COMP%]{display:block;margin:0 auto;position:relative;width:242px;height:40px}
159.recommend-topics-page[_ngcontent-%COMP%]   .topics-container[_ngcontent-%COMP%]{max-width:1168px;margin:0 auto;padding:0 24px;min-height:400px}.recommend-topics-page[_ngcontent-%COMP%]   .topics-container[_ngcontent-%COMP%]   .topics-masonry[_ngcontent-%COMP%]   .topic-card-item[_ngcontent-%COMP%]{width:calc(33.333% - 11px);margin-bottom:16px}.recommend-topics-page[_ngcontent-%COMP%]   .topics-container[_ngcontent-%COMP%]   .retry-bar[_ngcontent-%COMP%]{cursor:pointer;padding:20px 0;text-align:center;font-size:14px;color:var(--dweb-text-faint, #C5C6CB);transition:color .2s}.recommend-topics-page[_ngcontent-%COMP%]   .topics-container[_ngcontent-%COMP%]   .retry-bar[_ngcontent-%COMP%]:hover{color:var(--dweb-text-secondary)}.recommend-topics-page[_ngcontent-%COMP%]   .topics-container[_ngcontent-%COMP%]   .no-more[_ngcontent-%COMP%]{padding:20px 0;text-align:center;font-size:12px;color:var(--dweb-text-faint, #C5C6CB)}.recommend-topics-page[_ngcontent-%COMP%]   .topics-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]{height:400px;background:var(--dweb-bg-panel);display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--dweb-text-placeholder);border-radius:4px}.recommend-topics-page[_ngcontent-%COMP%]   .topics-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:87px;height:71px;background-image:url("./media/[email protected]");background-position:-87px -929px;margin-bottom:15px}.recommend-topics-page[_ngcontent-%COMP%]   .topics-container[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}html[data-theme=dark][_nghost-%COMP%]   .recommend-topics-page[_ngcontent-%COMP%]   .page-header[_ngcontent-%COMP%]:before, html[data-theme=dark]   [_nghost-%COMP%]   .recommend-topics-page[_ngcontent-%COMP%]   .page-header[_ngcontent-%COMP%]:before{display:none}@media screen and (max-width:1200px){.recommend-topics-page[_ngcontent-%COMP%]   .topics-container[_ngcontent-%COMP%]   .topics-masonry[_ngcontent-%COMP%]   .topic-card-item[_ngcontent-%COMP%]{width:calc(50% - 8px)}}@media screen and (max-width:768px){.recommend-topics-page[_ngcontent-%COMP%]{padding:50px 0 40px}.recommend-topics-page[_ngcontent-%COMP%]   .topics-container[_ngcontent-%COMP%]{padding:0 16px}.recommend-topics-page[_ngcontent-%COMP%]   .topics-container[_ngcontent-%COMP%]   .topics-masonry[_ngcontent-%COMP%]   .topic-card-item[_ngcontent-%COMP%]{width:calc(50% - 8px);margin-bottom:12px}}']});let o=n;return o;})();var eI=[{path:"load",component:cm},{path:"login",loadChildren:()=>import("./chunk-ITGCLUVO.js").then(o=>o.LoginModule)},{path:"article",loadChildren:()=>import("./chunk-X2YKHLA2.js").then(o=>o.ArticleModule)},{path:"join_group",loadChildren:()=>import("./chunk-ZSSAK34E.js").then(o=>o.JoingroupModule)},{path:"dashboard",loadChildren:()=>import("./chunk-N7M6NDLS.js").then(o=>o.DashboardModule)},{path:"note",loadChildren:()=>import("./chunk-L6NVNHZ2.js").then(o=>o.NoteModule)},{path:"wxstore/authorize",canActivate:[Dr],data:{loginRoute:["login","wxstore"]},loadComponent:()=>import("./chunk-5XUJZNYG.js").then(o=>o.WxstoreAuthorizeComponent)},{path:"",component:sm,canActivate:[Dr],children:[{path:"dynamics",component:fm},{path:"group",component:Sm,children:[{path:":group_id",component:Nm}]},{path:"group/:group_id/topic/:id",component:Il},{path:"search",component:Gm,children:[{path:":keyword",component:Wm},{path:":keyword/allgroups",component:Xm,data:{subtitle:"\u5168\u90E8\u661F\u7403"}},{path:":keyword/allusers",component:Jm,data:{subtitle:"\u5168\u90E8\u7528\u6237"}},{path:":keyword/allfiles",component:Fs,data:{subtitle:"\u5168\u90E8\u6587\u4EF6"}},{path:":keyword/alltopics",component:As,data:{subtitle:"\u5168\u90E8\u4E3B\u9898"}}]},{path:"footprint",component:Km},{path:"footprint/:user_id",component:nh},{path:"favorites",component:ih},{path:"answerlist",component:e_},{path:"group_data",loadChildren:()=>import("./chunk-RMRPV7ER.js").then(o=>o.GroupDataModule)},{path:"digests/:group_id",component:fh},{path:"files",component:oh},{path:"homework/:id",component:ah},{path:"homework_list/:id",component:ch},{path:"solution_list/:id",component:dh},{path:"tags/:name/:hid",component:rh},{path:"examination_list/:id",component:uh},{path:"topic/:id",component:Il},{path:"scheduled_jobs/:group_id",component:xh},{path:"checkin/:id",component:bh},{path:"columns/:group_id",component:Yh},{path:"crm_page",component:Zh},{path:"chat",component:Ul},{path:"chat/:user_uid",component:Ul},{path:"rankings/hot/:categoryUid",component:ql},{path:"rankings/hot",component:ql},{path:"rankings/:ranking_type",component:o_},{path:"recommend-topics",component:h_},{path:"**",redirectTo:"/group/init"}]},{path:"**",redirectTo:"/login"}],__=(()=>{let n=class n{};n.ɵfac=function(t){return new(t||n)();},n.ɵmod=it({type:n}),n.ɵinj=nt({imports:[dr.forRoot(eI),dr]});let o=n;return o;})();var f_=(()=>{let n=class n{};n.ɵfac=function(t){return new(t||n)();},n.ɵmod=it({type:n}),n.ɵinj=nt({imports:[Zi,pa,dr,dd,yd,Wh,Ss,Lu,m_]});let o=n;return o;})();
159var C_=(()=>{let n=class n{constructor(e){this.http=e;}intercept(e,t){return t.handle(e).pipe(ip(r=>{if(r.headers){let a=r.headers.get("x-expire-in");a&&a<600&&this.http.setOvertime(Number(a));}return Kt(r);}));}};n.ɵfac=function(t){return new(t||n)(re(W));},n.ɵprov=X({token:n,factory:n.ɵfac});let o=n;return o;})();var x_=(()=>{let n=class n{};n.ɵfac=function(t){return new(t||n)();},n.ɵmod=it({type:n,bootstrap:[Sg]}),n.ɵinj=nt({providers:[{provide:yp,useClass:C_,multi:!0},Dr,kp(Sp())],imports:[Wr,Og,f_,__]});let o=n;return o;})();Ip.production&&void 0;Mp().bootstrapModule(x_,{applicationProviders:[qr()]}).catch(o=>console.log(o));/*! Bundled license information:
160
161get-size/get-size.js:
162  (*!
163   * getSize v2.0.3
164   * measure size of elements
165   * MIT license
166   *)
167
168outlayer/outlayer.js:
169  (*!
170   * Outlayer v2.1.1
171   * the brains and guts of a layout library
172   * MIT license
173   *)
174
175masonry-layout/masonry.js:
176  (*!
177   * Masonry v4.2.2
178   * Cascading grid layout library
179   * https://masonry.desandro.com
180   * MIT License
181   * by David DeSandro
182   *)
183
184@angular/animations/fesm2022/_util-chunk.mjs:
185@angular/animations/fesm2022/browser.mjs:
186@angular/platform-browser/fesm2022/animations.mjs:
187  (**
188   * @license Angular v21.2.19
189   * (c) 2010-2026 Google LLC. https://angular.dev/
190   * License: MIT
191   *)
192*/

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.