PageSourceSearch

https://circleten.org/static/5.15.0/11824/app/en/post-detail.component-3SSPFAPI.js

js circleten.org collected 2026-09-24 09:21:18 UTC 8,283 bytes, 2 lines download raw bytes

1import{a as q,b as Y}from"./chunk-DKOYGT6N.js";import"./chunk-6CCORGDB.js";import"./chunk-HKPA4PH6.js";import"./chunk-GWEAJZKZ.js";import"./chunk-NJT572RS.js";import{a as K}from"./chunk-JNK6WRCQ.js";import"./chunk-I7BUBHW6.js";import{c as X}from"./chunk-G3UZP5GA.js";import"./chunk-IQPDVDVU.js";import"./chunk-TN3MOTX6.js";import"./chunk-GQNZSYKB.js";import"./chunk-6BSJ5NWE.js";import"./chunk-KJZ3WV45.js";import"./chunk-ARR7GREW.js";import"./chunk-PL6OXVJG.js";import"./chunk-EEMXGMY4.js";import"./chunk-XIFODUAE.js";import"./chunk-6FR34JEM.js";import"./chunk-SM23QQGD.js";import{e as Q}from"./chunk-HEAC5MBW.js";import"./chunk-BY44PP3U.js";import"./chunk-ZNPCEI22.js";import"./chunk-XHPKHG63.js";import"./chunk-22DAWFDR.js";import"./chunk-CV2J2TOP.js";import"./chunk-TL4PLB5Y.js";import{q as G,x as W,y as z,z as J}from"./chunk-ASDLLVJH.js";import"./chunk-VDAFC2TV.js";import"./chunk-NN2YSSAG.js";import"./chunk-XA6NBLBH.js";import"./chunk-HTOWA62W.js";import"./chunk-5ADAYVYS.js";import"./chunk-74OFN4QL.js";import"./chunk-7DDGW6BP.js";import"./chunk-DUOOZKQS.js";import"./chunk-32SVFVQA.js";import"./chunk-Y7BWXNRL.js";import"./chunk-PRETZ2FK.js";import"./chunk-73CXSW7Y.js";import"./chunk-NJMWS3DC.js";import"./chunk-QIWTORVK.js";import"./chunk-WRJ2AYBD.js";import"./chunk-I5E7B4F6.js";import"./chunk-FGTLI3TT.js";import"./chunk-7SUUXKCF.js";import"./chunk-FZFZRUEZ.js";import"./chunk-4DLWEGUN.js";import"./chunk-2R2LTWTI.js";import"./chunk-ETA2WEXD.js";import"./chunk-Z5KLOMHA.js";import"./chunk-UTM3UP4S.js";import"./chunk-W5HJERSU.js";import"./chunk-HAQYCC7N.js";import"./chunk-Y2GQKLCQ.js";import"./chunk-TJ7KR3FN.js";import"./chunk-TWCCRCN7.js";import"./chunk-H5YEVHIA.js";import"./chunk-3N3YSUNT.js";import"./chunk-YZLCB3BS.js";import"./chunk-NGN3SPQH.js";import"./chunk-TK7CLJVA.js";import"./chunk-EZRNJN32.js";import"./chunk-O5MWZZ2U.js";import"./chunk-65AF3F6W.js";import"./chunk-L4EI4PLC.js";import"./chunk-5L4G2ZEH.js";import"./chunk-SBDVJQHY.js";import"./chunk-LLLDNBIN.js";import"./chunk-ICTDI6RA.js";import"./chunk-NXJON27C.js";import"./chunk-XZ3GGXJR.js";import"./chunk-RGPN66SI.js";import"./chunk-BAYMVMGU.js";import"./chunk-3EDJFSGX.js";import"./chunk-SM7IWB4C.js";import"./chunk-BDOS3Z2P.js";import"./chunk-J5UUJHOF.js";import"./chunk-KWSEGY4Q.js";import"./chunk-ZUL76H2R.js";import"./chunk-AYG37NLZ.js";import"./chunk-QYKVBVPY.js";import"./chunk-7CURZQOM.js";import"./chunk-DOWLEQZI.js";import"./chunk-MWA4BZ64.js";import"./chunk-4EVLIHPZ.js";import"./chunk-NETK7IZQ.js";import"./chunk-IOCZW6BV.js";import"./chunk-RW3OKKOE.js";import"./chunk-IZ4AWQL2.js";import"./chunk-EYWFI5KB.js";import"./chunk-7FAWB7GH.js";import"./chunk-D3NUSACI.js";import{g as V}from"./chunk-6NOMKPAQ.js";import{B as j,o as H,t as N,x as R}from"./chunk-2JNQDMKS.js";import"./chunk-4KD73PWT.js";import"./chunk-D6Y2QE63.js";import{a as A}from"./chunk-ZWGHVY75.js";import"./chunk-6CNAKM33.js";import{c as v}from"./chunk-JH3G33VN.js";import"./chunk-HIA3C55E.js";import"./chunk-ZJ63B2ZO.js";import"./chunk-J46DYIXO.js";import"./chunk-URJA4TEF.js";import"./chunk-DLTLU2X3.js";import{g as k,i as B}from"./chunk-U56FQC6S.js";import"./chunk-IMK5WATV.js";import"./chunk-V4BD5SGQ.js";import{c as u}from"./chunk-UNUMHETD.js";import"./chunk-PLC6FGDG.js";import"./chunk-452BQI3I.js";import"./chunk-CR7TG7L7.js";import"./chunk-NSWYT6CM.js";import"./chunk-UMSIPUPB.js";import"./chunk-W7IWSIT2.js";import"./chunk-UYHH6E4C.js";import"./chunk-YREJNHQQ.js";import"./chunk-5M6FJUXX.js";import"./chunk-H44CII3F.js";import"./chunk-RONBOCCW.js";import"./chunk-J2J2F6UT.js";import{e as L,i as $}from"./chunk-QZ44TS2P.js";import"./chunk-KY6R7YZ6.js";import{Bd as P,Eb as O,Fc as a,Ja as b,Lb as T,Rc as w,Tb as E,Ub as M,_ as S,ba as x,cc as _,ea as D,ec as h,g as y,gc as F,hc as I,ic as U,jc as l,jd as C,kc as r,lc as c,mc as d,ob as s,pa as p,qd as f,rd as g}from"./chunk-TG5FOCBJ.js";import"./chunk-V6EXFOYO.js";var Z=()=>[import("./post-editor-fab.component-AGZ27XHF.js").then(e=>e.PostEditorFabComponent)],tt=e=>({detail:e}),et=e=>({"landing-page":e});function nt(e,o){if(e&1&&(d(0,"ih-content-body",2),f(1,"hashtag")),e&2){let t=a(2);l("html",g(1,1,t.detail.body))}}function it(e,o){if(e&1&&(r(0,"div",4),d(1,"ih-post-call-to-action-list",5),c()),e&2){let t=a(3);s(),l("post",t.detail)("canPublish",t.detail.canPublish)}}function ot(e,o){if(e&1&&(r(0,"div",4),d(1,"ih-post-location-detail",6),c()),e&2){let t=a(3);s(),l("post",t.detail)}}function at(e,o){if(e&1&&(r(0,"div",4),d(1,"ih-post-photo-detail",6),c()),e&2){let t=a(3);s(),l("post",t.detail)}}function st(e,o){if(e&1&&(r(0,"div",4),d(1,"ih-post-survey-detail",7),c()),e&2){let t=a(3);s(),l("postId",t.detail.contentId)("survey",t.detail.survey)}}function lt(e,o){if(e&1&&(r(0,"div",4),d(1,"ih-post-task-list",5),c()),e&2){let t=a(3);s(),l("post",t.detail)("canPublish",t.detail.canPublish)}}function rt(e,o){if(e&1&&_(0,it,2,2,"div",4)(1,ot,2,1,"div",4)(2,at,2,1,"div",4)(3,st,2,2,"div",4)(4,lt,2,2,"div",4),e&2){let t,n=o.$implicit,i=a(3);h((t=n)===i.POST_MODULES.CallToAction.key?0:t===i.POST_MODULES.Location.key?1:t===i.POST_MODULES.Photos.key?2:t===i.POST_MODULES.Survey.key?3:t===i.POST_MODULES.Tasks.key?4:-1)}}function ct(e,o){if(e&1&&(r(0,"div",1),_(1,nt,2,3,"ih-content-body",2),c(),r(2,"div",3),I(3,rt,5,1,null,null,F),c()),e&2){let t=a();s(),h(t.detail.body?1:-1),s(2),U(t.detail.modules)}}function pt(e,o){if(e&1&&d(0,"ih-post-editor-fab",8),e&2){let t=a(3);l("postEditorDialogOptions",t.fabOptions())}}function dt(e,o){if(e&1&&_(0,pt,1,1,"ih-post-editor-fab",8),e&2){let t=a(2);h(t.showFab()?0:-1)}}function mt(e,o){if(e&1&&(r(0,"ih-detail",0),_(1,ct,5,1),c(),T(2,dt,1,1),E(3,2,Z)),e&2){let t=o,n=a();l("ngClass",C(4,et,t.detail==null?null:t.detail.landingPage))("contentItem",t.detail),s(),h(t.detail?1:-1),s(2),M(n.showFab())}}var It=(()=>{class e{hostClass=!0;authService=p(N);router=p(B);route=p(k);security=p(H);channel=p(j);idle=p(R);postService=p(K);
1isPrerendering=!!this.route.snapshot.queryParams?.prerender;loading$=new y(!1);POST_MODULES=A;post$=this.route.params.pipe(x(t=>this.postService.getPost$(t,this.isPrerendering)),D(()=>{this.loading$.next(!1),window.ready=!0}),S(1));currentUser=u(this.authService.currentUser$);authSynced=u(this.authService.isSynced$,{initialValue:!1});post=u(this.post$);idleSignal=u(this.idle.requestIdle$());channelsSignal=u(this.channel.channels$);showFab=P(()=>{if(!this.idleSignal())return!1;let n=this.currentUser(),i=this.post();if(!i||i.forbidden)return!1;let m=i.author?.authorId===n?.campaign_user_id;return n?.email_verified&&(this.security.canItem(v.PublishScheduleArchive,i.channels,m)||this.security.canItem(v.Create,i.channels,m))});fabOptions=P(()=>{let t=this.post(),n=this.channelsSignal();return!t||!n||!t.channels?null:{postId:t.contentId,channels:t.channels.map(i=>n[i]),instantPublish:!0,landingPage:t.landingPage}});constructor(){b(()=>{let t=this.currentUser(),n=this.post(),i=this.channelsSignal();!n||n.notFound||n.forbidden||i&&this.authSynced()&&(t||n.channels.some(m=>i[m]?.visibleForGuests)||(console.debug("PostDetailComponent: user is not logged in and post is not in any public channels. Navigating to home."),this.router.navigate(["/home"])))})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["ih-post-detail"]],hostVars:2,hostBindings:function(n,i){n&2&&w("ih-post-detail",i.hostClass)},decls:2,vars:5,consts:[["contentType","posts",1,"has-fab",3,"ngClass","contentItem"],[1,"content-body-container"],["ihInterceptHref","",1,"content-body","fr-view",3,"html"],[1,"post-modules","fx-layout-column"],[1,"post-module"],[3,"post","canPublish"],[3,"post"],[3,"postId","survey"],[3,"postEditorDialogOptions"]],template:function(n,i){if(n&1&&(_(0,mt,5,6),f(1,"async")),n&2){let m;h((m=C(3,tt,g(1,1,i.post$)))?0:-1,m)}},dependencies:[L,G,V,Q,W,z,J,X,Y,$,q],styles:[".btn-view-in-google-maps[_ngcontent-%COMP%]{margin:6px 8px}.location-header[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{margin-bottom:0}.post-module[_ngcontent-%COMP%]{margin:0 16px 16px}.post-module[_ngcontent-%COMP%]:last-child{margin:0 16px 16px}.content-body-container[_ngcontent-%COMP%]{padding-bottom:16px}"],changeDetection:0})}return e})();export{It as PostDetailComponent};
2/**i18n:0f1fade16046009adad02f3fd9ac957882d03995a783f16776cfd917e99ccbcd*/

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.