1"use strict";(self.webpackChunkcitizen_web=self.webpackChunkcitizen_web||[]).push([[199],{4586:(K,M,o)=>{o.d(M,{$:()=>_});var p=o(465),c=o(8720),x=o(4941),k=o(8583),y=o(1834);function b(m,v){1&m&&c.GkF(0)}function F(m,v){if(1&m){const d=c.EpF();c.ynx(0),c.TgZ(1,"a",3),c.NdJ("click",function(){return c.CHM(d),c.oxw().onClickTargetReport()}),c.YNc(2,b,1,0,"ng-container",4),c.qZA(),c.BQk()}if(2&m){const d=c.oxw(),Z=c.MAs(4);c.xp6(1),c.Q6J("routerLink",d.reportDetailUrl),c.xp6(1),c.Q6J("ngTemplateOutlet",Z)}}function E(m,v){1&m&&c.GkF(0)}function t(m,v){if(1&m&&(c.TgZ(0,"div",5),c.YNc(1,E,1,0,"ng-container",4),c.qZA()),2&m){c.oxw();const d=c.MAs(4);c.xp6(1),c.Q6J("ngTemplateOutlet",d)}}const H=function(){return{from_report_id:void 0}};function O(m,v){1&m&&(c.ynx(0),c.TgZ(1,"button",14),c._UZ(2,"img",15),c.qZA(),c.BQk()),2&m&&(c.xp6(1),c.Q6J("queryParams",c.DdM(1,H)))}function B(m,v){if(1&m&&(c.TgZ(0,"div",6),c._UZ(1,"img",7),c.TgZ(2,"p",8),c._uU(3),c.qZA(),c._UZ(4,"div",9),c.TgZ(5,"p",10),c._uU(6),c.ALo(7,"date"),c.qZA(),c._UZ(8,"span",11),c.YNc(9,O,3,2,"ng-container",12),c.qZA(),c.TgZ(10,"p",13),c._uU(11),c.qZA()),2&m){const d=c.oxw();c.xp6(1),c.s9C("src",d.imageURL,c.LSH),c.xp6(2),c.Oqu(d.politicianName),c.xp6(3),c.hij("",c.xi3(7,5,d.publishedAt,"MM\u6708dd\u65e5"),"\u306e\u9032\u6357"),c.xp6(3),c.Q6J("ngIf",!d.reportDetailUrl),c.xp6(2),c.Oqu(d.title)}}let _=(()=>{class m{constructor(d){this.analytics=d}ngOnInit(){}onClickTargetReport(){this.analytics.logEvent(p.dW.TAPPED_COMMENT_TARGET_REPORT)}}return m.\u0275fac=function(d){return new(d||m)(c.Y36(x.B))},m.\u0275cmp=c.Xpm({type:m,selectors:[["app-comment-target-report"]],inputs:{reportDetailUrl:"reportDetailUrl",imageURL:"imageURL",politicianName:"politicianName",title:"title",publishedAt:"publishedAt"},decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["inFormTemplate",""],["reportInfoTemplate",""],["target","_blank",1,"report-card",3,"routerLink","click"],[4,"ngTemplateOutlet"],[1,"report-card","hover-none"],[1,"report-info"],["width","16px","height","16px","loading","lazy","alt","icon",1,"icon",3,"src"],[1,"politician-name"],[1,"ellipse"],[1,"published-at"],[2,"flex","auto"],[4,"ngIf"],[1,"report-title"],["type","button","queryParamsHandling","merge",1,"close-button",3,"routerLink","queryParams"],["src","assets/images/pages/policies/comment-tab/close.svg","width","9.33px","height","9.33px","loading","lazy","alt","close"]],template:function(d,Z){if(1&d&&(c.YNc(0,F,3,2,"ng-container",0),c.YNc(1,t,2,1,"ng-template",null,1,c.W1O),c.YNc(3,B,12,8,"ng-template",null,2,c.W1O)),2&d){const z=c.MAs(2);c.Q6J("ngIf",Z.reportDetailUrl)("ngIfElse",z)}},directives:[k.O5,y.yS,k.tP,y.rH],pipes:[k.uU],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.report-card[_ngcontent-%COMP%]{display:block;border:1px solid #dbd9d9;border-left-color:#04856a;border-radius:4px;border-width:1px 1px 1px 4px;box-sizing:border-box;position:relative;padding:8px 12px;overflow:hidden;background:#ffffff}.report-card[_ngcontent-%COMP%]:hover{background:#f7f7f7}.report-card[_ngcontent-%COMP%] .report-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.report-card[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-right:4px;border-radius:50%;object-fit:cover}.report-card[_ngcontent-%COMP%] .politician-name[_ngcontent-%COMP%]{color:#1f1a1b;font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-weight:700;font-size:12px;line-height:16px}.report-card[_ngcontent-%COMP%] .ellipse[_ngcontent-%COMP%]{width:2px;height:2px;margin:0 8px;background:#666363}.report-card[_ngcontent-%COMP%] .published-at[_ngcontent-%COMP%]{font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-weight:normal;font-size:12px;line-height:16px;letter-spacing:.25px;color:#666363}.report-card[_ngcontent-%COMP%] .report-title[_ngcontent-%COMP%]{font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-weight:normal;font-size:12px;line-height:16px;letter-spacing:.25px;color:#1f1a1b;margin-top:4px}.hover-none[_ngcontent-%COMP%]:hover{background-color:inherit}.close-button[_ngcontent-%COMP%]{cursor:pointer}'],changeDetection:0}),m})()},8776:(K,M,o)=>{o.d(M,{N:()=>k}
1);var p=o(8583),c=o(1834),x=o(8720);let k=(()=>{class y{}return y.\u0275fac=function(F){return new(F||y)},y.\u0275mod=x.oAB({type:y}),y.\u0275inj=x.cJS({imports:[[p.ez,c.Bz]]}),y})()},199:(K,M,o)=>{o.r(M),o.d(M,{PolicyPageModule:()=>Ie});var p=o(8583),c=o(1834),x=o(4293),k=o(6676),y=o(7403),b=o(951),F=o(5851),E=o(6650),t=o(8720);let H=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[p.ez,E.A,c.Bz]]}),n})();var O=o(9027);let B=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[p.ez]]}),n})();var _=o(9719);let m=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[p.ez]]}),n})();var v=o(2102);let d=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[p.ez,b.I,c.Bz,v.d]]}),n})(),Z=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[p.ez,_.z,O.r,d,m,B,b.I]]}),n})(),z=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[p.ez,c.Bz]]}),n})();var et=o(7933);let nt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[p.ez,et.h]]}),n})();var it=o(8662),L=o(521),f=o(9490),u=(o(9193),o(9765)),g=o(2759),C=o(628),S=o(6782);let ot=(()=>{class n{constructor(e,i,r,s){this._elementRef=e,this._platform=i,this._ngZone=r,this._destroyed=new u.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=l=>{this._hasFocus="focus"===l.type},this._document=s,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=(0,f.su)(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=(0,f.su)(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=(0,f.Ig)(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,this._textareaElement.placeholder=e,this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const e=this._getWindow();(0,g.R)(e,"resize").pipe((0,C.e)(16),(0,S.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,this._textareaElement.parentNode.removeChild(e),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,i=e.style.marginBottom||"",r=this._platform.FIREFOX,s=r&&this._hasFocus,l=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";s&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(l);const h=e.scrollHeight-4;return e.classList.remove(l),s&&(e.style.marginBottom=i),h}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const i=this._elementRef.nativeElement,r=i.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;const s=this._measureScrollHeight(),l=Math.max(s,this._cachedPlaceholderHeight||0);i.style.height=`${l}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:i,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(i,r)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(L.t4),t.Y36(t.R0b),t.Y36(p.K0,8))},n.\u0275dir=t.lG2({type:n,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,i){1&e&&t.NdJ("input",function(){return i._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),n})(),ht=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[L.ud]]}),n})();var R=o(3679);let gt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[p.ez,B]]}),n})(),yt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[p.ez,gt]]}),n})();var vt=o(8776);let _t=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[p.ez,R.u5,yt,ht,vt.N,v.d]]}),n})(),Ct=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[c.Bz,p.ez,z,x.y,k.O,b.I,Z,F.I,_t,H,y.j,nt,it._]]}),n})();var P=o(4762),J=o(6215),ct=o(9112),Q=o(5917),X=o(9773),st=o(8307),lt=o(3190),Y=o(8002),Pt=o(2473),I=o(465),xt=o(3204),bt=o(5621),V=o(5978),Ot=o(5053),q=o(4941),Tt=o(6789),kt=o(7605),D=o(1186),tt=o(4672);let St=(()=>{class n{constructor(e){this.firestore=e}collection(e){return(0,D.hJ)(this.firestore,tt.tw.collectionPath(e))}document(e,i){const r=this.collection(e);return i?(0,D.JU)(r,i):(0,D.JU)(r)}create(e,i){return(0,P.mG)(this,void 0,void 0,function*(){const r=this.document(e),s={citizen_account_id:e,policy_id:i,created_at:(0,D.Bt)()};return yield(0,D.pl)(r,s)})}}
1return n.\u0275fac=function(e){return new(e||n)(t.LFG(D.gg))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Mt=(()=>{class n{constructor(e,i,r,s){this.latestNotificationService=e,this.signInAnonymous=i,this.accountRepo=r,this.policyReadRepo=s}execute(e){return(0,P.mG)(this,void 0,void 0,function*(){this.signInAnonymous.execute(),this.incrementReadCount(e),this.latestNotificationService.execute()})}incrementReadCount(e){return(0,P.mG)(this,void 0,void 0,function*(){const i=yield this.accountRepo.myAccount();i&&this.policyReadRepo.create(i._id,e)})}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Tt.Z),t.LFG(kt.h),t.LFG(V.P),t.LFG(St))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var At=o(9734),Ft=o(4419),Bt=o(8544),pt=o(9736);let ut=(()=>{class n{constructor(){this.is_visible$=new J.X(!0)}update(e){this.is_visible$.next(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var dt=o(9602);let Zt=(()=>{class n{constructor(e,i,r,s,l,h,T,$,Ee,He,Le,Ue,ze,Ne){this.policyRepository=e,this.reportRepository=i,this.accountRepository=r,this.relatedPolicyRepository=s,this.router=l,this.analytics=h,this.usecase=T,this.headService=$,this.location=Ee,this.supportPolicyUsecase=He,this.reportTabReadService=Le,this.commentFormStore=Ue,this.stickyButtonStore=ze,this.precomment=Ne,this.policyID$=new J.X(""),this.reportID$=new J.X(""),this.showsCommentForm$=new J.X(!0)}policy$(){return this.policyID$.pipe((0,X.zg)(e=>this.policyRepository.getByID$(e)),(0,st.b)(e=>this.headService.updateTitleWithSiteName(null==e?void 0:e.title)))}report$(){return(0,ct.aj)([this.policyID$,this.reportID$]).pipe((0,lt.w)(([e,i])=>this.reportRepository.get$(e,i)))}tabs(){return this.policy$().pipe((0,X.zg)(e=>{if(e){const i=`/projects/${e._id}`,s=this.reportTabReadService.getTabSetence(e.report.total_number);return(0,Q.of)([{name:"\u653f\u7b56\u6982\u8981",router_link:`${i}/story`},{name:"\u30b3\u30e1\u30f3\u30c8",router_link:`${i}/comment`},{name:s,router_link:`${i}/report`,is_marked:!1}])}return[]}))}tabClick(){return(0,P.mG)(this,void 0,void 0,function*(){yield this.reportTabReadService.close()})}url(){return(Pt.N.staging?"https://polipoli-ce47d.web.app":"https://polipoli-web.com")+this.location.path()}politician$(){return this.policy$().pipe((0,X.zg)(e=>e?this.accountRepository.getPolitician$(e.politician_account_id):(0,Q.of)(void 0)))}relatedPolicyState$(){return(0,ct.aj)([this.citizen$,this.policyID$]).pipe((0,X.zg)(([e,i])=>e?this.relatedPolicyRepository.getByAccountIdAndPolicyId$({accountID:e._id,policyID:i}):(0,Q.of)(void 0)))}initialize(e,i){var r;null===(r=i.parent)||void 0===r||r.url.pipe((0,S.R)(e),(0,lt.w)(s=>{var l,h;return null!==(h=null===(l=i.firstChild)||void 0===l?void 0:l.url)&&void 0!==h?h:(0,Q.of)(void 0)}),(0,Y.U)(s=>{var l;this.showsCommentForm$.next("report"!==(null===(l=null==s?void 0:s[0])||void 0===l?void 0:l.path))})).subscribe(),i.paramMap.pipe((0,S.R)(e),(0,Y.U)(s=>{const l=s.get("projectId");this.policyID$.next(null!=l?l:""),this.usecase.execute(null!=l?l:"")}),(0,st.b)(s=>this.precomment.reset())).subscribe(),i.queryParams.pipe((0,S.R)(e),(0,Y.U)(s=>{var l;return this.reportID$.next(null!==(l=s.from_report_id)&&void 0!==l?l:"")})).subscribe()}destrory(e){e.unsubscribe()}get citizen$(){return this.accountRepository.myAccount$()}isStickyButton$(){return this.stickyButtonStore.is_visible$}logShareButton(e){this.analytics.logEvent(I.dW.TAPPED_SHARE_BUTTON_IN_POLICY_PAGE,{provider_name:e})}logWebShare(){this.analytics.logEvent(I.dW.TAPPED_WEB_SHARE_BUTTON)}onClickStickyButton(){this.commentFormStore.update(!0)}isReceiveNotificationVisible(){return this.relatedPolicyState$().pipe((0,Y.U)(e=>!e||!e.policy.is_joined))}supportPolicy(e){this.supportPolicyUsecase.execute({policyId:e})}toPoliticianPage(e){this.analytics.logEvent(I.dW.TAPPED_POLITICIAN_ICON),this.router.navigate([`politicians/${e}`])}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(xt.g),t.LFG(bt.z),t.LFG(V.P),t.LFG(Ot.S),t.LFG(c.F0),t.LFG(q.B),t.LFG(Mt),t.LFG(At.k),t.LFG(p.Ye),t.LFG(Ft.r),t.LFG(Bt.L),t.LFG(pt.o),t.LFG(ut),t.LFG(dt.og))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var wt=o(8433),j=o(7368),mt=o(271);let Rt=(()=>{class n{constructor(e){this.dateService=e}isMeetingApplicationPeriod(e){if((null==e?void 0:e.meeting)&&e.meeting.latest_held_at){const i=this.dateService.convert(e.meeting.latest_held_at),r=this.dateService.convert(e.meeting.latest_published_at);return i>(0,j.G)()&&(0,j.G)()>r}return!1}}
1return n.\u0275fac=function(e){return new(e||n)(t.LFG(mt.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),It=(()=>{class n{isCurrentMeetingApplied(e){const i=e.relatedPolicyState.meeting;if(!i)return!1;const r=i.last_joined_at||i.last_joined_id||void 0;return!!r&&e.meetingId===r}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Et=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-to-meeting-banner-able"]],decls:10,vars:0,consts:[[1,"banner"],[1,"banner-content"],["src","assets/images/pages/policies/to_meeting_banner.svg","alt","\u30a4\u30d9\u30f3\u30c8\u7533\u3057\u8fbc\u307f","loading","lazy","width","37.9px","height","48px",1,"banner-content-img",2,"margin-right","24px"],[1,"banner-content-title",2,"display","flex","flex-direction","column","align-items","center","margin-right","24px"],[1,"banner-content-title-sub-sentence",2,"margin-bottom","4px"],[1,"banner-content-title-sentence"],[1,"banner-content-cta"]],template:function(e,i){1&e&&(t.TgZ(0,"section",0),t.TgZ(1,"div",1),t._UZ(2,"img",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t._uU(5,"\u30a4\u30d9\u30f3\u30c8\u958b\u50ac\u6c7a\u5b9a"),t.qZA(),t.TgZ(6,"h2",5),t._uU(7,"\u3053\u306e\u653f\u6cbb\u5bb6\u306b\u4f1a\u3044\u306b\u884c\u304f"),t.qZA(),t.qZA(),t.TgZ(8,"button",6),t._uU(9,"\u8a73\u3057\u304f\u307f\u308b"),t.qZA(),t.qZA(),t.qZA())},styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.banner[_ngcontent-%COMP%]{display:grid;place-items:center;height:64px;background:#e31f3c;cursor:pointer}.banner-content[_ngcontent-%COMP%]{display:flex}@media all and (max-width: 600px){.banner-content-img[_ngcontent-%COMP%]{display:none}}.banner-content-title-sentence[_ngcontent-%COMP%]{color:#fff;font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-weight:700;font-size:18px;line-height:24px;letter-spacing:.25px}.banner-content-title-sub-sentence[_ngcontent-%COMP%]{border-radius:4px;box-shadow:1.5px 1.5px #00000061;padding:2px 8px;width:96px;background:#ffffff;color:#e31f3c;text-align:center;font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-weight:700;font-size:12px;line-height:16px}.banner-content-cta[_ngcontent-%COMP%]{border:1px solid #ffffff;border-radius:4px;margin:auto 0;height:40px;padding:10px 16px;color:#fff;font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-weight:700;font-size:14px;line-height:20px;cursor:pointer}'],changeDetection:0}),n})(),Ht=(()=>{class n{constructor(e){this.date=e}getHeldDateWithTime(e){return this.date.transformOfFromTime(e)}getHeldDate(e){return this.date.transformOfMonthAndDate(e)}getDuration(e){return this.date.getDuration(e.held_at,e.ended_at)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(mt.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Lt=(()=>{class n{constructor(e){this.meetingService=e,this.held_at=(0,j.G)()}ngOnInit(){}sentence(){return`${this.meetingService.getHeldDate(this.held_at)}\u306e\u30a4\u30d9\u30f3\u30c8\u306e\u7533\u3057\u8fbc\u307f\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f`}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ht))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-to-meeting-banner-disable"]],inputs:{held_at:"held_at"},decls:4,vars:1,consts:[[1,"banner",2,"display","flex","justify-content","center","align-items","center"],["src","assets/images/mdi_check_circle.png","alt","\u30c1\u30a7\u30c3\u30af","loading","lazy","width","20px","height","20px",2,"margin-right","8px"],[1,"banner-sentence"]],template:function(e,i){1&e&&(t.TgZ(0,"section",0),t._UZ(1,"img",1),t.TgZ(2,"p",2),t._uU(3),t.qZA(),t.qZA()),2&e&&(t.xp6(3),t.Oqu(i.sentence()))},styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.banner[_ngcontent-%COMP%]{background:#f7f7f7;height:40px}.banner-sentence[_ngcontent-%COMP%]{color:#666363;font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-weight:700;font-size:14px;line-height:20px}'],changeDetection:0}),n})();function Ut(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"a",3),t._UZ(2,"app-to-meeting-banner-able"),t.qZA(),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.hYB("routerLink","/projects/",null==e.policy?null:e.policy._id,"/meetings/",null==e.policy||null==e.policy.meeting?null:e.policy.meeting.latest_id,"")}}function zt(n,a){if(1&n&&t._UZ(0,"app-to-meeting-banner-disable",4),2&n){const e=t.oxw(2);t.Q6J("held_at",null==e.policy||null==e.policy.meeting?null:e.policy.meeting.latest_held_at)}}function Nt(n,a){if(1&n&&(t.ynx(0),t.YNc(1,Ut,3,2,"ng-container",1),t.YNc(2,zt,1,1,"ng-template",null,2,t.W1O),t.BQk()),2&n){const e=t.MAs(3),i=t.oxw();
1t.xp6(1),t.Q6J("ngIf",i.isMeetingAvailable)("ngIfElse",e)}}let Dt=(()=>{class n{constructor(e,i){this.policyEntity=e,this.relatedPolicyStateEntity=i}ngOnInit(){}get isMeetingAvailable(){return!this.isMeetingApplied}get isOnHeld(){return this.policyEntity.isMeetingApplicationPeriod(this.policy)}get isMeetingApplied(){var e;return!(!this.relatedPolicyState||!(null===(e=this.policy)||void 0===e?void 0:e.meeting))&&this.relatedPolicyStateEntity.isCurrentMeetingApplied({relatedPolicyState:this.relatedPolicyState,meetingId:this.policy.meeting.latest_id})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Rt),t.Y36(It))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-to-meeting-banner-container"]],inputs:{policy:"policy",relatedPolicyState:"relatedPolicyState"},decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],["disable",""],[3,"routerLink"],[3,"held_at"]],template:function(e,i){1&e&&t.YNc(0,Nt,4,2,"ng-container",0),2&e&&t.Q6J("ngIf",i.isOnHeld)},directives:[p.O5,c.yS,Et,Lt],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),n})(),Gt=(()=>{class n{constructor(){this.alt="",this.appIconOnClick=new t.vpe}ngOnInit(){}onClick(){this.appIconOnClick.emit()}imageUrl(){var e,i;return null!==(i=null===(e=this.politician)||void 0===e?void 0:e.image_url)&&void 0!==i?i:"assets/images/dummy_icon.svg"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-politician-icon"]],inputs:{politician:"politician",alt:"alt"},outputs:{appIconOnClick:"appIconOnClick"},decls:1,vars:2,consts:[["width","32px","height","32px","loading","lazy",1,"img",3,"src","alt","click"]],template:function(e,i){1&e&&(t.TgZ(0,"img",0),t.NdJ("click",function(){return i.onClick()}),t.qZA()),2&e&&(t.s9C("src",i.imageUrl(),t.LSH),t.s9C("alt",i.alt))},styles:["[_nghost-%COMP%]{display:block}.img[_ngcontent-%COMP%]{border-radius:50%;object-fit:cover}@media all and (min-width: 600px){.img[_ngcontent-%COMP%]{border-radius:40px;height:auto}}"],changeDetection:0}),n})(),Wt=(()=>{class n{constructor(){this.name=""}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-politician-name"]],inputs:{name:"name"},decls:2,vars:1,consts:[[1,"name"]],template:function(e,i){1&e&&(t.TgZ(0,"h2",0),t._uU(1),t.qZA()),2&e&&(t.xp6(1),t.Oqu(i.name))},styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.name[_ngcontent-%COMP%]{margin-bottom:4px;color:#1f1a1b;font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-size:12px;line-height:18px;font-weight:700}@media all and (min-width: 600px){.name[_ngcontent-%COMP%]{font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-size:14px;line-height:21px;font-weight:700}}.name[_ngcontent-%COMP%]:hover{text-decoration:underline}'],changeDetection:0}),n})(),$t=(()=>{class n{constructor(){this.belong=""}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-politician-belong"]],inputs:{belong:"belong"},decls:2,vars:1,consts:[[1,"belong"]],template:function(e,i){1&e&&(t.TgZ(0,"h3",0),t._uU(1),t.qZA()),2&e&&(t.xp6(1),t.Oqu(i.belong))},styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.belong[_ngcontent-%COMP%]{color:#666363;font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-size:10px;line-height:13px;letter-spacing:.15px;font-weight:300}@media all and (min-width: 600px){.belong[_ngcontent-%COMP%]{font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-size:12px;line-height:16px;letter-spacing:.15px;font-weight:300}}'],changeDetection:0}),n})();var Jt=o(6381);let Yt=(()=>{class n{constructor(){this.appOnClickIcon=new t.vpe}ngOnInit(){}getPoliticianName(e){return tt.mR.getName(e)}onClickIcon(){this.appOnClickIcon.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-politician"]],inputs:{politician:"politician"},outputs:{appOnClickIcon:"appOnClickIcon"},decls:6,vars:8,consts:[[1,"politician",3,"routerLink"],[3,"politician","alt","appIconOnClick"],[1,"politician-right"],[3,"name"],[3,"belong"]],template:function(e,i){1&e&&(t.TgZ(0,"a",0),t.TgZ(1,"app-politician-icon",1),t.NdJ("appIconOnClick",function(){return i.onClickIcon()}),t.qZA(),t.TgZ(2,"div",2),t._UZ(3,"app-politician-name",3),t._UZ(4,"app-politician-belong",4),t.ALo(5,"politicianPosition"),t.qZA(),t.qZA()),2&e&&(t.MGl("routerLink","/politicians/",null==i.politician?null:i.politician._id,""),t.xp6(1),t.Q6J("politician",i.politician)("alt",i.getPoliticianName(i.politician)),t.xp6(2),t.Q6J("name",i.getPoliticianName(i.politician)),t.xp6(1),t.Q6J("belong",t.xi3(5,5,i.politician,"\u30fb")))},directives:[c.yS,Gt,Wt,$t],pipes:[Jt.h],styles:[".loading[_ngcontent-%COMP%]{padding:24px}.politician[_ngcontent-%COMP%]{align-items:center;display:flex;cursor:pointer}.politician-right[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-left:8px}"],changeDetection:0}),n})();var jt=o(5274),Kt=o(1777);let Qt=(()=>{class n{constructor(){}getURL(){return this.url||""}ngOnInit(){}onClickShare(){navigator.share?navigator.share({title:this.title||"",text:this.text||"",url:this.getURL()}):alert("\u3053\u306e\u30d6\u30e9\u30a6\u30b6\u306f\u30b7\u30a7\u30a2\u6a5f\u80fd\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u3002")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-web-share"]],inputs:{title:"title",text:"text",url:"url"}
1,decls:1,vars:0,consts:[["src","assets/images/share.svg",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"img",0),t.NdJ("click",function(){return i.onClickShare()}),t.qZA())},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),n})();const Xt=function(){return["PoliPoli"]};let Vt=(()=>{class n{constructor(){this.username="",this.appOnClickWebshare=new t.vpe,this.appOnClickSnsButton=new t.vpe}ngOnInit(){}onClickFacebook(){this.appOnClickSnsButton.emit("facebook")}onClickTwitter(){this.appOnClickSnsButton.emit("twitter")}onClickWebShare(){this.appOnClickWebshare.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-sns"]],inputs:{url:"url",username:"username"},outputs:{appOnClickWebshare:"appOnClickWebshare",appOnClickSnsButton:"appOnClickSnsButton"},decls:5,vars:9,consts:[[1,"sns"],[1,"twitter",3,"url","text","hashtags","via","related","click"],[3,"url","click"],[1,"web-share"],[3,"title","text","url"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"app-twitter-button",1),t.NdJ("click",function(){return i.onClickTwitter()}),t.qZA(),t.TgZ(2,"app-facebook-button",2),t.NdJ("click",function(){return i.onClickFacebook()}),t.qZA(),t.qZA(),t.TgZ(3,"div",3),t._UZ(4,"app-web-share",4),t.qZA()),2&e&&(t.xp6(1),t.Q6J("url",i.url)("text","")("hashtags",t.DdM(8,Xt))("via",i.username)("related","polipoli_vote"),t.xp6(1),t.Q6J("url",i.url),t.xp6(2),t.Q6J("text","")("url",i.url))},directives:[jt.R,Kt._,Qt],styles:["[_nghost-%COMP%]{display:block}.sns[_ngcontent-%COMP%]{display:flex;flex-direction:row}.sns[_ngcontent-%COMP%] .twitter[_ngcontent-%COMP%]{margin-right:12px}@media all and (max-width: 600px){.sns[_ngcontent-%COMP%]{display:none}}.web-share[_ngcontent-%COMP%]{display:none}@media all and (max-width: 600px){.web-share[_ngcontent-%COMP%]{display:initial}}"],changeDetection:0}),n})(),qt=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-realized-label"]],decls:6,vars:0,consts:[[1,"container"],[1,"dark-green"],[1,"button"],["src","assets/images/pages/policies/stars.svg","alt","\u661f","width","12px","height","12px","loading","lazy"],[2,"margin-left","6px"]],template:function(e,i){1&e&&(t.TgZ(0,"button",0),t._UZ(1,"div",1),t.TgZ(2,"button",2),t._UZ(3,"img",3),t.TgZ(4,"span",4),t._uU(5," \u653f\u7b56\u304c\u5b9f\u73fe\u3057\u307e\u3057\u305f\uff01"),t.qZA(),t.qZA(),t.qZA())},styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.container[_ngcontent-%COMP%]{position:relative;box-sizing:border-box;border-radius:4px;margin-bottom:12px;background:#04856a}.button[_ngcontent-%COMP%]{align-items:center;display:flex;position:relative;padding:4px 6px 4px 12px;color:#fff;font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-weight:700;font-size:12px;line-height:16px}.dark-green[_ngcontent-%COMP%]{top:0px;bottom:0px;position:absolute;border-radius:4px 0 0 4px;height:24px;width:5px;background:#036b56}'],changeDetection:0}),n})(),te=(()=>{class n{constructor(){this.appOnClickSupportPolicyButton=new t.vpe}ngOnInit(){}onClickReceiveNotification(){this.appOnClickSupportPolicyButton.emit
1()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-support-policy-button"]],outputs:{appOnClickSupportPolicyButton:"appOnClickSupportPolicyButton"},decls:4,vars:0,consts:[[1,"button",2,"display","flex","justify-content","center","align-items","center",3,"click"],["src","assets/images/pages/policies/summary-tab/bell.svg","loading","lazy","width","16px","height","16px",2,"margin-right","4px"],[1,"button-sentence"]],template:function(e,i){1&e&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return i.onClickReceiveNotification()}),t._UZ(1,"img",1),t.TgZ(2,"p",2),t._uU(3,"\u653f\u7b56\u306b\u53c2\u52a0\u3057\u3066\u901a\u77e5\u3092\u53d7\u3051\u53d6\u308b"),t.qZA(),t.qZA())},styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.button[_ngcontent-%COMP%]{border:1px solid #04856a;box-sizing:border-box;border-radius:4px;margin-top:18px;padding-top:7px;padding-bottom:7px;width:100%;background:#ffffff;color:#04856a;cursor:pointer}.button[_ngcontent-%COMP%]:hover{background:#f7f7f7}.button-sentence[_ngcontent-%COMP%]{font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-size:12px;line-height:18px;font-weight:700}'],changeDetection:0}),n})();function ee(n,a){1&n&&t._UZ(0,"app-realized-label")}function ne(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-support-policy-button",7),t.NdJ("appOnClickSupportPolicyButton",function(){return t.CHM(e),t.oxw().onClickReceiveNotification()}),t.qZA(),t.BQk()}}let ie=(()=>{class n{constructor(){this.appOnClickSupportPolicyButton=new t.vpe,this.appOnClickPoliticianIcon=new t.vpe,this.appOnClickSnsButton=new t.vpe,this.appOnClickWebShare=new t.vpe}ngOnInit(){}username(){var e,i,r;return null!==(r=null===(i=null===(e=this.politician)||void 0===e?void 0:e.twitter)||void 0===i?void 0:i.username)&&void 0!==r?r:"polipoli_vote"}isRealized(){var e,i;return null!==(i=null===(e=this.policy)||void 0===e?void 0:e.admin_changeable.is_realized)&&void 0!==i&&i}onClickReceiveNotification(){this.appOnClickSupportPolicyButton.emit
1()}onClickIcon(){this.appOnClickPoliticianIcon.emit()}onClickSnsButton(e){this.appOnClickSnsButton.emit(e)}onClickWebShare(){this.appOnClickWebShare.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-profile"]],inputs:{url:"url",policy:"policy",isReceiveNotificationvisible:"isReceiveNotificationvisible",politician:"politician"},outputs:{appOnClickSupportPolicyButton:"appOnClickSupportPolicyButton",appOnClickPoliticianIcon:"appOnClickPoliticianIcon",appOnClickSnsButton:"appOnClickSnsButton",appOnClickWebShare:"appOnClickWebShare"},decls:9,vars:6,consts:[[1,"profile"],[4,"ngIf"],[1,"title"],[1,"flex"],[3,"politician","appOnClickIcon"],[1,"fill"],[3,"username","url","appOnClickSnsButton","appOnClickWebshare"],[3,"appOnClickSupportPolicyButton"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,ee,1,0,"app-realized-label",1),t.TgZ(2,"h1",2),t._uU(3),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"app-politician",4),t.NdJ("appOnClickIcon",function(){return i.onClickIcon()}),t.qZA(),t._UZ(6,"span",5),t.TgZ(7,"app-sns",6),t.NdJ("appOnClickSnsButton",function(s){return i.onClickSnsButton(s)})("appOnClickWebshare",function(){return i.onClickWebShare()}),t.qZA(),t.qZA(),t.YNc(8,ne,2,0,"ng-container",1),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",i.isRealized()),t.xp6(2),t.Oqu(null==i.policy?null:i.policy.title),t.xp6(2),t.Q6J("politician",i.politician),t.xp6(2),t.Q6J("username",i.username())("url",i.url),t.xp6(1),t.Q6J("ngIf",i.isReceiveNotificationvisible))},directives:[p.O5,Yt,Vt,qt,te],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block;max-width:1024px;margin:0 auto}.profile[_ngcontent-%COMP%]{margin-bottom:16px;padding:0 24px}@media all and (min-width: 600px){.profile[_ngcontent-%COMP%]{padding:0 32px}}.profile[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:8px;color:#1f1a1b;font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-size:22px;line-height:28px;letter-spacing:.5px;font-weight:700}@media all and (min-width: 600px){.profile[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-size:28px;line-height:36px;letter-spacing:.5px;font-weight:700}}.flex[_ngcontent-%COMP%]{display:flex}.flex[_ngcontent-%COMP%] .fill[_ngcontent-%COMP%]{flex:1 1 auto}'],changeDetection:0}),n})();var oe=o(1703),ae=o(289),at=o(9688),G=o(7054),re=o(9245),ce=o(7219),ft=o(3084);let se=(()=>{class n{constructor(e,i,r,s,l,h){this.snackBar=e,this.router=i,this.authPageService=r,this.commentRepository=s,this.preComment=l,this.accountEntity=h}execute(e,i,r,s,l,h,T){return(0,P.mG)(this,void 0,void 0,function*(){if(!l||l.is_anonymous)return this.preComment.update({body:r,policy_id:i,is_shared:s,report:T}),void this.actionInCaseOfNotAuthorized(i);if(h&&l&&(!l.email||!this.accountEntity.hasSetup(h)))return this.preComment.update({body:r,policy_id:i,is_shared:s,report:T}),void this.actionInCaseOfAuthorizedAndNotSetup();if(h){const $={citizen_account_id:h._id,body:r,policy_id:i,politician_account_id:e,is_shared:s,is_email_read:!1,is_author_concerned:!1,is_suggested:!1,is_check_safe:!1,created_at:(0,j.G)(),updated_at:(0,j.G)(),is_check_irrelevant:!1,citizen:(0,tt.IS)(h),_politician_favorited_count:0,_citizen_favorited_count:0,report:null};T&&($.report=(0,tt.Zq)(T)),yield this.actionInCaseOfAuthorizedAndSetup(h,$)}})}actionInCaseOfNotAuthorized(e){console.log("ok"),this.router.navigate([`projects/${e}/comments/anonymous`])}actionInCaseOfAuthorizedAndSetup(e,i){return(0,P.mG)(this,void 0,void 0,function*(){try{yield this.commentRepository.create(i);const r=`/projects/${i.policy_id}/comments/send`;this.preComment.reset(),this.router.navigate([r]),this.snackBar.open("\u9001\u4fe1\u6210\u529f\u3057\u307e\u3057\u305f",void 0,{duration:500})}catch(r){console.log(r)}})}actionInCaseOfAuthorizedAndNotSetup(){this.authPageService.navigateToAuth(G.p.SET_UP_PAGE,at.t.SUBMIT_BUTTON)}}
1return n.\u0275fac=function(e){return new(e||n)(t.LFG(re.ux),t.LFG(c.F0),t.LFG(G.S),t.LFG(ce.r),t.LFG(dt.og),t.LFG(ft.V))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var le=o(6023),W=o(2238),pe=o(8049),ue=o(4985),rt=o(6299),de=o(2703),me=o(823);let fe=(()=>{class n{constructor(e,i,r,s,l){this.accountRepository=e,this.snackBar=i,this.auth=r,this.privateRepository=s,this.privateEntityService=l}execute(){return(0,P.mG)(this,void 0,void 0,function*(){const e=yield this.cooperateTwitter();if(e){const i=yield this.accountRepository.myAccount$().pipe((0,pe.P)(),(0,Y.U)(s=>{var l;return null!==(l=null==s?void 0:s._id)&&void 0!==l?l:""})).toPromise(),r=this.privateEntityService.generateTwitterAccessToken(e);return yield this.privateRepository.update(i,{twitter:r}),!0}return!1})}cooperateTwitter(){return(0,P.mG)(this,void 0,void 0,function*(){return(yield this.auth.linkWithTwitter().catch(i=>{this.snackBar.openWithError(i.errorMessage,i.actionMessage)}))||void 0})}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(V.P),t.LFG(ue.c),t.LFG(rt.N),t.LFG(de.W),t.LFG(me.S))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function he(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw();
1t.xp6(1),t.Oqu(e.data.cancelButtonName)}}let ge=(()=>{class n{constructor(e,i,r){this.dialogRef=e,this.data=i,this.usecase=r}onClick(){return(0,P.mG)(this,void 0,void 0,function*(){this.dialogRef.close(yield this.usecase.execute())})}onCancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(W.so),t.Y36(W.WI),t.Y36(fe))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-confirm-share-dialog"]],decls:12,vars:4,consts:[[2,"display","flex","flex-direction","column"],["mat-dialog-title",""],[1,"space-10"],["mat-dialog-content",""],["mat-dialog-actions","",2,"display","flex","justify-content","space-between"],["class","cansel",3,"click",4,"ngIf"],[1,"ok",3,"click"],[1,"cansel",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"h1",1),t._uU(2),t.qZA(),t._UZ(3,"div",2),t.TgZ(4,"div",3),t.TgZ(5,"p"),t._uU(6),t.qZA(),t.qZA(),t._UZ(7,"div",2),t.TgZ(8,"div",4),t.YNc(9,he,2,1,"button",5),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.onClick()}),t._uU(11),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(2),t.Oqu(i.data.title),t.xp6(4),t.Oqu(i.data.contentTitle),t.xp6(3),t.Q6J("ngIf",i.data.cancelButtonName),t.xp6(2),t.Oqu(i.data.okButtonName))},directives:[W.uh,W.xY,W.H8,p.O5],styles:['@charset "UTF-8";.dialog[_ngcontent-%COMP%]{width:200px}h1[_ngcontent-%COMP%]{font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-size:16px;line-height:22px;letter-spacing:.25px;font-weight:700}@media all and (min-width: 600px){h1[_ngcontent-%COMP%]{font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-size:20px;line-height:26px;letter-spacing:.25px;font-weight:700}}.space-10[_ngcontent-%COMP%]{height:10px}.cansel[_ngcontent-%COMP%]{color:#666363;font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-size:12px;line-height:18px;font-weight:700;cursor:pointer}@media all and (min-width: 600px){.cansel[_ngcontent-%COMP%]{font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-size:14px;line-height:21px;font-weight:700}}.ok[_ngcontent-%COMP%]{color:#04856a;font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-size:12px;line-height:18px;font-weight:700;cursor:pointer}@media all and (min-width: 600px){.ok[_ngcontent-%COMP%]{font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-size:14px;line-height:21px;font-weight:700}}.ok[_ngcontent-%COMP%]:hover{color:#036b56;text-decoration:underline}p[_ngcontent-%COMP%]{color:#666363;font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-size:14px;line-height:21px;letter-spacing:.25px;font-weight:300}@media all and (min-width: 600px){p[_ngcontent-%COMP%]{font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-size:16px;line-height:22px;letter-spacing:.25px;font-weight:300}}'],changeDetection:0}),n})(),ye=(()=>{class n{constructor(e,i,r,s){this.auth=e,this.authPageService=i,this.analytics=r,this.dialog=s}exec(e){var i;return(0,P.mG)(this,void 0,void 0,function*(){return this.analytics.logEvent(I.dW.TAPPED_SWITCH_TWITTER),(yield this.auth.isLoginPromise())?(yield this.auth.getProvidersPromise()).includes("twitter.com")?!e:null!==(i=yield this.openDialog().afterClosed().toPromise())&&void 0!==i&&i:(this.authPageService.navigateToAuth(G.p.SIGN_UP_PAGE,at.t.SWITCH_TWITTER_BUTTON),!1)})}openDialog(){return this.dialog.open(ge,{autoFocus:!1,data:{title:"Twitter\u9023\u643a\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u305b\u3093",contentTitle:"\u9023\u643a\u3059\u308b\u3068\u30b3\u30e1\u30f3\u30c8\u3092Twitter\u4e0a\u306b\u3082\u914d\u4fe1\u3067\u304d\u307e\u3059",okButtonName:"\u9023\u643a\u3059\u308b",cancelButtonName:"\u5f8c\u3067"}})}}
1return n.\u0275fac=function(e){return new(e||n)(t.LFG(rt.N),t.LFG(G.S),t.LFG(q.B),t.LFG(W.uw))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ve=(()=>{class n{constructor(e,i,r,s,l,h,T,$){this.accountRepository=e,this.postComment=i,this.userRepository=r,this.switchTwitterOptionUsecase=s,this.authPageService=l,this.auth=h,this.commentFormStore=T,this.stikyButtonStore=$,this.isShared$=new J.X(!1)}isLogin$(){return this.auth.isLogin()}isFormFocus$(){return this.commentFormStore.is_focus$}onCommentFocus(){this.stikyButtonStore.update(!1),this.commentFormStore.update(!1)}onCommentFocusOut(){this.stikyButtonStore.update(!0)}account$(){return this.accountRepository.myAccount$()}user$(){return this.userRepository.getCurrentUser$()}onSubmit(e){return(0,P.mG)(this,void 0,void 0,function*(){yield this.postComment.execute(e.politician_account_id,e.policy_id,e.text,e.is_shared,e.user,e.account,e.report)})}onClickTwitterIcon(){return(0,P.mG)(this,void 0,void 0,function*(){const e=yield this.switchTwitterOptionUsecase.exec(this.isShared$.value);this.isShared$.next(e)})}onClickTextareaWithUnRegister(){return(0,P.mG)(this,void 0,void 0,function*(){yield this.authPageService.navigateToAuth(G.p.SET_UP_PAGE,at.t.GENERAL)})}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(V.P),t.LFG(se),t.LFG(le.j),t.LFG(ye),t.LFG(G.S),t.LFG(rt.N),t.LFG(pt.o),t.LFG(ut))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var _e=o(4586),Ce=o(2958);const Pe=["textRef"];function xe(n,a){if(1&n&&(t.ynx(0),t._UZ(1,"app-comment-target-report",15),t.ALo(2,"politicianNameWithTitle"),t.BQk()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("imageURL",null==e.policy||null==e.policy.politician?null:e.policy.politician.image_url)("politicianName",t.lcZ(2,4,null==e.policy?null:e.policy.politician))("title",e.report.title)("publishedAt",e.report.published_at.toDate())}}let be=(()=>{class n{constructor(e,i){this.accountEntity=e,this.analytics=i,this.has_commented=!1,this.appSubmit=new t.vpe,this.appOnClickTwitterIcon=new t.vpe,this.appOnClickTextareaWithUnRegister=new t.vpe,this.appOnFocus=new t.vpe,this.appOnFocusOut=new t.vpe}ngOnInit(){}ngOnChanges(){this.is_focus&&(this.focus(),this.is_focus=!1)}focus(){const e=document.createElement("input");e.setAttribute("type","text"),e.style.position="absolute",e.style.opacity="0",e.style.height="0",e.style.fontSize="16px",document.body.prepend(e),e.focus(),setTimeout(()=>{this.textRef.nativeElement.focus(),e.remove()},100)}onSubmit(e){var i,r,s;e&&(null===(i=this.policy)||void 0===i?void 0:i._id)&&this.policy.politician_account_id&&(this.has_commented=!0,this.appSubmit.emit({policy_id:null===(r=this.policy)||void 0===r?void 0:r._id,politician_account_id:this.policy.politician_account_id,text:e,is_shared:!!this.is_shared,user:this.user,account:this.account,report:null!==(s=this.report)&&void 0!==s?s:void 0}),this.analytics.logEvent(I.dW.TAPPED_POST_COMMENT,{policy_title:this.policy.title,policy_id:this.policy._id}))}onFocus(){this.appOnFocus.emit()}onFocusOut(){this.appOnFocusOut.emit()}onClickTwitterIcon(){this.appOnClickTwitterIcon.emit()}placeholder(){return this.report?"\u3053\u306e\u9032\u6357\u3078\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u9001\u308d\u3046":this.account&&this.is_login?`${this.account.name[0]}\u3068\u3057\u3066\u30b3\u30e1\u30f3\u30c8\u3092\u66f8\u304f`:"\u30ed\u30b0\u30a4\u30f3\u305b\u305a\u306b\u3001\u533f\u540d\u30e6\u30fc\u30b6\u30fc\u3068\u3057\u3066\u30b3\u30e1\u30f3\u30c8\u3092\u9001\u3063\u3066\u653f\u7b56\u306b\u53c2\u52a0\u3057\u3088\u3046\uff01"}onClickTextarea(){var e;this.analytics.logEvent(I.dW.TAPPED_COMMENT_TEXT_AREA),!1===(null===(e=this.user)||void 0===e?void 0:e.is_anonymous)&&this.isUnRegister()}isUnRegister(){var e;this.accountEntity.hasSetup(this.account)&&(null===(e=this.user)||void 0===e?void 0:e.email)||this.appOnClickTextareaWithUnRegister.emit()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(ft.V),t.Y36(q.B))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-comment-form-presentation"]],viewQuery:function(e,i){if(1&e&&t.Gf(Pe,5),2&e){let r;t.iGM(r=t.CRH())&&(i.textRef=r.first)}},inputs:{is_focus:"is_focus",user:"user",account:"account",policy:"policy",is_login:"is_login",is_shared:"is_shared",report:"report"},outputs:{appSubmit:"appSubmit",appOnClickTwitterIcon:"appOnClickTwitterIcon",appOnClickTextareaWithUnRegister:"appOnClickTextareaWithUnRegister",appOnFocus:"appOnFocus",appOnFocusOut:"appOnFocusOut"},features:[t.TTD],decls:16,vars:4,consts:[[1,"comment-form-container"],[1,"card-wrapper"],[1,"card"],[3,"submit"],["formRef","ngForm"],[2,"display","flex","flex-direction","row"],["width","40px","height","40px","loading","lazy","alt","\u30a2\u30a4\u30b3\u30f3",1,"icon",3,"src"],[2,"flex","auto","margin-left","12px"],["cdkTextareaAutosize","","name","text","rows","1","required","","ngModel","",1,"textarea",3,"placeholder","click","focus","focusout"],["textRef",""],[4,"ngIf"],[1,"divider"],[2,"display","flex","flex-direction","row","justify-content","space-between","align-items","center"],[2,"flex","auto"],[1,"button",3,"disabled"],[3,"imageURL","politicianName","title","publishedAt"]],template:function(e,i){if(1&e){const r=t.EpF();t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t.TgZ(3,"form",3,4),t.NdJ("submit",function(){t.CHM(r);const l=t.MAs(9);return i.onSubmit(l.value)}),t.TgZ(5,"div",5),t._UZ(6,"img",6),t.TgZ(7,"div",7),t.TgZ(8,"textarea",8,9),t.NdJ("click",function(){return i.onClickTextarea()})("focus",function(){return i.onFocus()})("focusout",function(){return i.onFocusOut()}),t.qZA(),t.YNc(10,xe,3,6,"ng-container",10),t.qZA(),t.qZA(),t._UZ(11,"div",11),t.TgZ(12,"div",12),t._UZ(13,"span",13),t.TgZ(14,"button",14),t._uU(15,"\u30b3\u30e1\u30f3\u30c8\u3092\u9001\u308b"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&e){const r=t.MAs(4);t.xp6(6),t.Q6J("src",(null==i.account?null:i.account.image_url)||"assets/images/dummy_icon.svg",t.LSH),t.xp6(2),t.Q6J("placeholder",i.placeholder()),t.xp6(2),t.Q6J("ngIf",i.report),t.xp6(4),t.Q6J("disabled",r.invalid)}},directives:[R._Y,R.JL,R.F,ot,R.Fj,R.Q7,R.JJ,R.On,p.O5,_e.$],pipes:[Ce.N],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block;position:relative}.card[_ngcontent-%COMP%]{background:#ffffff;border-radius:8px;padding:16px 24px 0}@media all and (max-width: 600px){.card[_ngcontent-%COMP%]{border-radius:initial}}
1.icon[_ngcontent-%COMP%]{border-radius:50%;object-fit:cover}.textarea[_ngcontent-%COMP%]{min-height:40px;padding-top:10px;width:100%;color:#1f1a1b;font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-weight:normal;font-size:14px;line-height:20px;letter-spacing:.25px}.textarea[_ngcontent-%COMP%]:focus{outline:0}.divider[_ngcontent-%COMP%]{border-bottom:1px solid #dbd9d9;margin-top:16px}.button[_ngcontent-%COMP%]{border-radius:30px;margin:16px 0;padding:10px 16px;background:#e31f3c;color:#fff;font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-weight:700;font-size:12px;line-height:16px;cursor:pointer}.button[_ngcontent-%COMP%]:hover{background:#cd1833}.button[_ngcontent-%COMP%]:disabled{opacity:.4!important;cursor:default}app-comment-target-report[_ngcontent-%COMP%]{margin-top:8px}'],changeDetection:0}),n})(),Oe=(()=>{class n{constructor(e){this.commentFormService=e,this.account$=this.commentFormService.account$(),this.user$=this.commentFormService.user$(),this.isLogin$=this.commentFormService.isLogin$(),this.isShared$=this.commentFormService.isShared$,this.isFocus$=this.commentFormService.isFormFocus$()}ngOnInit(){}onClickTextareaWithUnRegister(){this.commentFormService.onClickTextareaWithUnRegister()}onClickTwitterIcon(){this.commentFormService.onClickTwitterIcon()}onFocus(){this.commentFormService.onCommentFocus()}onFocusOut(){this.commentFormService.onCommentFocusOut()}onSubmit(e){this.commentFormService.onSubmit(e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(ve))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-comment-form"]],inputs:{policy:"policy",report:"report"},decls:6,vars:17,consts:[[3,"account","user","policy","is_login","is_shared","is_focus","report","appOnClickTextareaWithUnRegister","appOnClickTwitterIcon","appOnFocus","appOnFocusOut","appSubmit"]],template:function(e,i){1&e&&(t.TgZ(0,"app-comment-form-presentation",0),t.NdJ("appOnClickTextareaWithUnRegister",function(){return i.onClickTextareaWithUnRegister()})("appOnClickTwitterIcon",function(){return i.onClickTwitterIcon()})("appOnFocus",function(){return i.onFocus()})("appOnFocusOut",function(){return i.onFocusOut()})("appSubmit",function(s){return i.onSubmit(s)}),t.ALo(1,"async"),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.qZA()),2&e&&t.Q6J("account",t.lcZ(1,7,i.account$))("user",t.lcZ(2,9,i.user$))("policy",i.policy)("is_login",t.lcZ(3,11,i.isLogin$))("is_shared",t.lcZ(4,13,i.isShared$))("is_focus",t.lcZ(5,15,i.isFocus$))("report",i.report)},directives:[be],pipes:[p.Ov],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),n})();var Te=o(7595),ke=o(6216);function Se(n,a){if(1&n&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",e,"")}}let Me=(()=>{class n{constructor(e,i){this.analytics=e,this.window=i,this.appOnClickButton=new t.vpe,this.sentences=[],this.buttonSentence="",this.router_link=""}ngOnInit(){}onClick(){this.analytics.logEvent(I.dW.TAPPED_STICKY_BUTTON,{component_name:I.DW.COMMENT_TAB}
1),this.window.scrollTo(0,0),this.appOnClickButton.emit()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(q.B),t.Y36(Te.m9))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-button-sticky"]],inputs:{sentences:"sentences",buttonSentence:"buttonSentence",router_link:"router_link"},outputs:{appOnClickButton:"appOnClickButton"},decls:7,vars:3,consts:[[1,"sticky"],[2,"display","flex","align-items","center","justify-content","space-between"],[1,"sticky-sentence"],[4,"ngFor","ngForOf"],["queryParamsHandling","preserve",1,"sticky-button",3,"routerLink","click"]],template:function(e,i){1&e&&(t.TgZ(0,"app-base-sticky",0),t.TgZ(1,"div",1),t.TgZ(2,"p",2),t.YNc(3,Se,3,1,"ng-container",3),t.qZA(),t.TgZ(4,"button",4),t.NdJ("click",function(){return i.onClick()}),t.TgZ(5,"a"),t._uU(6),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(3),t.Q6J("ngForOf",i.sentences),t.xp6(1),t.Q6J("routerLink",i.router_link),t.xp6(2),t.Oqu(i.buttonSentence))},directives:[ke.w,p.sg,c.rH],styles:['@charset "UTF-8";.sticky[_ngcontent-%COMP%]{border-top:1px solid #dbd9d9;box-shadow:0 -3px 9px #0000000d}.sticky-sentence[_ngcontent-%COMP%]{color:#1f1a1b}@media all and (max-width: 600px){.sticky-sentence[_ngcontent-%COMP%]{max-width:155px;font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-weight:700;font-size:14px;line-height:20px}}@media all and (min-width: 600px){.sticky-sentence[_ngcontent-%COMP%]{font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-weight:700;font-size:18px;line-height:24px;letter-spacing:.25px}}.sticky-button[_ngcontent-%COMP%]{border-radius:4px;padding:9.5px 15.5px;background:#e31f3c;color:#fff;font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:700;cursor:pointer}.sticky-button[_ngcontent-%COMP%]:hover{background:#cd1833}.container[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between}'],changeDetection:0}),n})();function Ae(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"div",10),t._UZ(2,"app-comment-form",11),t.qZA(),t.BQk()),2&n){const e=t.oxw();
1t.xp6(2),t.Q6J("policy",e.policy)("report",e.report)}}const Fe=function(){return["\u653f\u6cbb\u5bb6\u306b\u30b3\u30e1\u30f3\u30c8\u3092\u5c4a\u3051\u3066\u3001\u653f\u7b56\u3092\u9032\u3081\u3088\u3046"]};function Be(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-button-sticky",12),t.NdJ("appOnClickButton",function(){return t.CHM(e),t.oxw().onClickStickyButton()}),t.qZA(),t._UZ(2,"div",13),t.BQk()}if(2&n){const e=t.oxw();t.xp6(1),t.MGl("router_link","/projects/",null==e.policy?null:e.policy._id,"/story"),t.Q6J("sentences",t.DdM(3,Fe))("buttonSentence","\u30b3\u30e1\u30f3\u30c8\u3092\u9001\u308b")}}let Ze=(()=>{class n{constructor(){this.appOnSupportPolicyButton=new t.vpe,this.appOnClickPoliticianIcon=new t.vpe,this.appOnClickSnsButton=new t.vpe,this.appOnClickWebShare=new t.vpe,this.appOnClickMark=new t.vpe,this.appOnClickStickyButton=new t.vpe}ngOnInit(){}onClickSupportPolicyButton(){var e;this.appOnSupportPolicyButton.emit(null===(e=this.policy)||void 0===e?void 0:e._id)}onClickPoliticianIcon(){var e;this.appOnClickPoliticianIcon.emit(null===(e=this.policy)||void 0===e?void 0:e.politician_account_id)}
1onClickSnsButton(e){this.appOnClickSnsButton.emit(e)}onClickWebShare(){this.appOnClickWebShare.emit()}onClickMark(){this.appOnClickMark.emit()}onClickStickyButton(){this.appOnClickStickyButton.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-policy-presentation"]],inputs:{policy:"policy",related_policy_state:"related_policy_state",politician:"politician",current_url:"current_url",showsCommentForm:"showsCommentForm",report:"report",is_sticky_button:"is_sticky_button",is_receive_notification_visible:"is_receive_notification_visible",tabs:"tabs"},outputs:{appOnSupportPolicyButton:"appOnSupportPolicyButton",appOnClickPoliticianIcon:"appOnClickPoliticianIcon",appOnClickSnsButton:"appOnClickSnsButton",appOnClickWebShare:"appOnClickWebShare",appOnClickMark:"appOnClickMark",appOnClickStickyButton:"appOnClickStickyButton"},decls:16,vars:9,consts:[[3,"policy","relatedPolicyState"],[1,"navigation-container"],[1,"navigation"],["routerLink","/",1,"navigation-link"],["src","assets/images/filled/navigation/w5/gd0/arrow_back-gray10.svg","loading","lazy","height","24px","width","24px"],[1,"navigation-text"],[3,"url","policy","politician","isReceiveNotificationvisible","appPoliticianIcon","appOnClickSupportPolicyButton","appOnClickSnsButton","appOnClickWebShare"],[1,"tab"],[3,"tabs","appOnMarkClick"],[4,"ngIf"],[1,"comment-form"],[3,"policy","report"],[3,"sentences","buttonSentence","router_link","appOnClickButton"],[2,"height","63px"]],template:function(e,i){1&e&&(t._UZ(0,"app-header"),t.TgZ(1,"article"),t._UZ(2,"app-to-meeting-banner-container",0),t.TgZ(3,"div",1),t.TgZ(4,"div",2),t.TgZ(5,"a",3),t._UZ(6,"img",4),t.TgZ(7,"p",5),t._uU(8,"\u307b\u304b\u306e\u653f\u7b56\u3092\u898b\u308b"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"app-profile",6),t.NdJ("appPoliticianIcon",function(){return i.onClickPoliticianIcon()})("appOnClickSupportPolicyButton",function(){return i.onClickSupportPolicyButton()})("appOnClickSnsButton",function(s){return i.onClickSnsButton(s)})("appOnClickWebShare",function(){return i.onClickWebShare()}),t.qZA(),t.TgZ(10,"div",7),t.TgZ(11,"app-tab",8),t.NdJ("appOnMarkClick",function(){return i.onClickMark()}),t.qZA(),t.qZA(),t.YNc(12,Ae,3,2,"ng-container",9),t._UZ(13,"router-outlet"),t._UZ(14,"app-footer"),t.YNc(15,Be,3,4,"ng-container",9),t.qZA()),2&e&&(t.xp6(2),t.Q6J("policy",i.policy)("relatedPolicyState",i.related_policy_state),t.xp6(7),t.Q6J("url",i.current_url)("policy",i.policy)("politician",i.politician)("isReceiveNotificationvisible",i.is_receive_notification_visible),t.xp6(2),t.Q6J("tabs",i.tabs),t.xp6(1),t.Q6J("ngIf",i.showsCommentForm),t.xp6(3),t.Q6J("ngIf",i.is_sticky_button))},directives:[wt.G,Dt,c.yS,ie,oe.i,p.O5,c.lC,ae.c,Oe,Me],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.navigation[_ngcontent-%COMP%]{display:inline-block;padding:0 24px}@media all and (min-width: 600px){.navigation[_ngcontent-%COMP%]{padding:0 32px}}.navigation-container[_ngcontent-%COMP%]{max-width:1024px;margin:8px auto 16px}.navigation[_ngcontent-%COMP%]:hover{text-decoration:underline;-webkit-text-decoration-color:#1f1a1b;text-decoration-color:#1f1a1b}.navigation-link[_ngcontent-%COMP%]{display:flex;grid-gap:8px;gap:8px;align-items:center}.navigation-text[_ngcontent-%COMP%]{color:#1f1a1b;font-family:"Helvetica Neue","Arial","Hiragino Kaku Gothic ProN","\\6e38\\30b4\\30b7\\30c3\\30af",sans-serif;font-size:.875rem;line-height:1.25rem;font-weight:700;text-decoration:none}.tab[_ngcontent-%COMP%]{background-color:#fff;position:sticky;top:48px;left:0;z-index:999}.comment-form[_ngcontent-%COMP%]{padding:0 0 8px;background-color:#f7f7f7}@media all and (min-width: 600px){.comment-form[_ngcontent-%COMP%]{padding:16px 32px 0}}app-comment-form[_ngcontent-%COMP%]{max-width:960px;margin:0 auto}'],changeDetection:0}),n})();const we=[{path:"",component:(()=>{class n{constructor(e,i){this.pageService=e,this.activatedRoute=i,this.isReceiveNotificationVisible$=this.pageService.isReceiveNotificationVisible(),this.policy$=this.pageService.policy$(),this.relatedPolicyState$=this.pageService.relatedPolicyState$(),this.tabs$=this.pageService.tabs(),this.politician$=this.pageService.politician$(),this.url=this.pageService.url(),this.showsCommentForm$=this.pageService.showsCommentForm$,this.report$=this.pageService.report$(),this.isStickyButton$=this.pageService.isStickyButton$(),this.onDestroy$=new u.xQ}ngOnInit(){return(0,P.mG)(this,void 0,void 0,function*(){this.pageService.initialize(this.onDestroy$,this.activatedRoute)})}ngOnDestroy(){this.onDestroy$.next()}onClickSupportPolicyButton(e){this.pageService.supportPolicy(e)}onClickTabMark(){this.pageService.tabClick()}
1onClickPoliticianIcon(e){this.pageService.toPoliticianPage(e)}onClickSnsButton(e){this.pageService.logShareButton(e)}onClickWebShare(){this.pageService.logWebShare()}onClickStickyButton(){this.pageService.onClickStickyButton()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Zt),t.Y36(c.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-policy-page"]],decls:9,vars:25,consts:[[3,"policy","politician","current_url","related_policy_state","is_receive_notification_visible","showsCommentForm","report","is_sticky_button","tabs","appOnSupportPolicyButton","appOnClickMark","appOnClickPoliticianIcon","appOnClickSnsButton","appOnClickStickyButton","appOnClickWebShare"]],template:function(e,i){1&e&&(t.TgZ(0,"app-policy-presentation",0),t.NdJ("appOnSupportPolicyButton",function(s){return i.onClickSupportPolicyButton(s)})("appOnClickMark",function(){return i.onClickTabMark()})("appOnClickPoliticianIcon",function(s){return i.onClickPoliticianIcon(s)})("appOnClickSnsButton",function(s){return i.onClickSnsButton(s)})("appOnClickStickyButton",function(){return i.onClickStickyButton()})("appOnClickWebShare",function(){return i.onClickWebShare()}),t.ALo(1,"async"),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.ALo(6,"async"),t.ALo(7,"async"),t.ALo(8,"async"),t.qZA()),2&e&&t.Q6J("policy",t.lcZ(1,9,i.policy$))("politician",t.lcZ(2,11,i.politician$))("current_url",i.url)("related_policy_state",t.lcZ(3,13,i.relatedPolicyState$))("is_receive_notification_visible",t.lcZ(4,15,i.isReceiveNotificationVisible$))("showsCommentForm",t.lcZ(5,17,i.showsCommentForm$))("report",t.lcZ(6,19,i.report$))("is_sticky_button",t.lcZ(7,21,i.isStickyButton$))("tabs",t.lcZ(8,23,i.tabs$))},directives:[Ze],pipes:[p.Ov],styles:[""],changeDetection:0}),n})(),children:[{path:"story",loadChildren:()=>Promise.all([o.e(638),o.e(592),o.e(111)]).then(o.bind(o,1111)).then(n=>n.SummaryTabModule)},{path:"report",loadChildren:()=>Promise.all([o.e(592),o.e(700)]).then(o.bind(o,9700)).then(n=>n.ReportTabModule)},{path:"comment",loadChildren:()=>Promise.all([o.e(592),o.e(972)]).then(o.bind(o,6972)).then(n=>n.CommentTabModule)}]}];let Re=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[c.Bz.forChild(we)],c.Bz]}),n})(),Ie=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[p.ez,Re,Ct]]}),n})()},8544:(K,M,o)=>{o.d(M,{L:()=>H});var p=o(4762),c=o(6215),x=o(4402),k=o(9112),y=o(5917),b=o(8002),F=o(4883),E=o(4672),t=o(8720);let H=(()=>{class O{constructor(_){this.accessDB=_,this.hasRead=new c.X(!1)}close(){return(0,p.mG)(this,void 0,void 0,function*(){(yield this.accessDB.hasEvent("REPORT_TAB"))||(this.hasRead.next(!0),yield this.accessDB.addEvent("REPORT_TAB"))})}getTabSetence(_=0){return"\u9032\u6357"+E.yG.totalNumberSentence(_)}hasMark(_){const m=(0,x.D)(this.accessDB.hasEvent("REPORT_TAB"));return _>0?(0,k.aj)([m,this.hasRead]).pipe((0,b.U)(([v,d])=>!(v||d))):(0,y.of)(!1)}}return O.\u0275fac=function(_){return new(_||O)(t.LFG(F.v))},O.\u0275prov=t.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})()},4419:(K,M,o)=>{o.d(M,{r:()=>L});var p=o(4762),c=o(8049),x=o(465),k=o(9688),y=o(7054),b=o(2238),F=o(7595),E=o(2278),t=o(8720),H=o(7446),O=o(4941),B=o(2840);let _=(()=>{class f{constructor(u,g,C,S,A){this.dialogRef=u,this.twitterIntention=g,this.data=C,this.window=S,this.analytics=A}ngOnInit(){}onClick(){this.analytics.logEvent(x.dW.TAPPED_POLICY_SHARE);const g=this.twitterIntention.generate("",this.data.politicianTwitterAccountId,`${E.H}/projects/${this.data.policyId}/story`);this.window.open(g,"_blank")}close(){this.dialogRef.close()}}return f.\u0275fac=function(u){return new(u||f)(t.Y36(b.so),t.Y36(H.F),t.Y36(b.WI),t.Y36(F.m9),t.Y36(O.B))},f.\u0275cmp=t.Xpm({type:f,selectors:[["app-policy-share-dialog"]],decls:13,vars:2,consts:[[1,"dialog-close",2,"display","flex","align-items","center","justify-content","end"],["src","../../../../../assets/images/cross_white.svg","alt","\u9589\u3058\u308b","loading","lazy","width","14px","height","14px",3,"click"],[1,"dialog",2,"display","flex","flex-direction","column"],["src","../../../../../assets/images/pages/policies/policy_share_dialog.svg","alt","\u653f\u7b56\u306b\u53c2\u52a0\u3057\u307e\u3057\u305f\uff01","loading","lazy","width","277px","height","171px",1,"dialog-img"],[1,"dialog-title"],[1,"dialog-introduction"],[1,"dialog-introduction-body"],[1,"dialog-introduction-body-strong"],[3,"isMain","sentence","click"]],template:function(u,g){1&u&&(t.TgZ(0,"div",0),t.TgZ(1,"img",1),t.NdJ("click",function(){return g.close()}),t.qZA(),t.qZA(),t.TgZ(2,"section",2),t._UZ(3,"img",3),t.TgZ(4,"p",4),t._uU(5,"\u653f\u7b56\u306b\u53c2\u52a0\u3057\u307e\u3057\u305f\uff01"),t.qZA(),t.TgZ(6,"div",5),t.TgZ(7,"p",6),t._uU(8," \u53c2\u52a0\u3057\u3066\u3044\u308b\u653f\u7b56\u3092\u30b7\u30a7\u30a2\u3057\u3066\u3001\u653f\u7b56\u306e\u8a8d\u77e5\u3092\u9ad8\u3081\u3088\u3046\uff01"),t.TgZ(9,"span",7),t._uU(10,"\u8a8d\u77e5\u5ea6\u304c\u4e0a\u304c\u308b\u3068\u3088\u308a\u9032\u307f\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002"),t.qZA(),t._uU(11,"(\u203b\u30c4\u30a4\u30fc\u30c8\u5185\u5bb9\u306f\u7de8\u96c6\u3067\u304d\u307e\u3059) "),t.qZA(),t.qZA(),t.TgZ(12,"app-button-twitter",8),t.
1NdJ("click",function(){return g.onClick()}),t.qZA(),t.qZA()),2&u&&(t.xp6(12),t.Q6J("isMain",!0)("sentence","\u30c4\u30a4\u30fc\u30c8\u3059\u308b"))},directives:[B.p],styles:['@charset "UTF-8";.dialog[_ngcontent-%COMP%]{padding:24px 16px;border-radius:8px;background:#ffffff}.dialog-close[_ngcontent-%COMP%]{padding-bottom:16px;cursor:pointer}.dialog-img[_ngcontent-%COMP%]{margin:0 auto 32px}.dialog-title[_ngcontent-%COMP%]{font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-size:22px;line-height:28px;letter-spacing:.5px;font-weight:700;color:#1f1a1b;text-align:center;margin-bottom:24px}@media all and (min-width: 600px){.dialog-title[_ngcontent-%COMP%]{font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-size:28px;line-height:36px;letter-spacing:.5px;font-weight:700}}.dialog-introduction[_ngcontent-%COMP%]{margin-bottom:24px}.dialog-introduction-body[_ngcontent-%COMP%]{font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-weight:normal;font-size:14px;line-height:20px;letter-spacing:.25px;color:#1f1a1b;text-align:center}.dialog-introduction-body-strong[_ngcontent-%COMP%]{font-weight:bold!important;font-family:"Helvetica","Hiragino Kaku Gothic Pro","\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 Pro W3","\\30e1\\30a4\\30ea\\30aa","Meiryo","\\ff2d\\ff33 \\ff30\\30b4\\30b7\\30c3\\30af","Helvetica Neue","Arial",sans-serif;font-weight:normal;font-size:14px;line-height:20px;letter-spacing:.25px;color:#1f1a1b}'],changeDetection:0}),f})();var m=o(5978),v=o(6299),d=o(1186),Z=o(4672),z=o(7368);let et=(()=>{class f{constructor(u){this.firestore=u}collection(u){return(0,d.hJ)(this.firestore,Z.Hm.collectionPath(u))}document(u,g){const C=this.collection(u);return g?(0,d.JU)(C,g):(0,d.JU)(C)}create(u){return(0,p.mG)(this,void 0,void 0,function*(){const g=this.document(u.account_id);yield(0,d.pl)(g,Object.assign({created_at:(0,z.G)()},u))})}}return f.\u0275fac=function(u){return new(u||f)(t.LFG(d.gg))},f.\u0275prov=t.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();var nt=o(3204),it=o(6023);let L=(()=>{class f{constructor(u,g,C,S,A,U,N,ot){this.accountRepository=u,this.authPageService=g,this.auth=C,this.supportPolicyRepository=S,this.dialog=A,this.analytics=U,this.policyRepository=N,this.userRepository=ot}execute(u){var g,C;return(0,p.mG)(this,void 0,void 0,function*(){if(this.analytics.logEvent(x.dW.TAPPED_SUPPORT_POLICY_BUTTON),yield this.auth.isLoginPromise()){const S=yield this.userRepository.getCurrentUser();if(S&&S.email){const A=yield this.accountRepository.myAccount();yield this.supportPolicyRepository.create({account_id:null!==(g=null==A?void 0:A._id)&&void 0!==g?g:"",policy_id:u.policyId});const U=yield this.policyRepository.getByID$(u.policyId).pipe((0,c.P)()).toPromise();if(U){const N=yield this.accountRepository.getPolitician$(U.politician_account_id).pipe((0,c.P)()).toPromise();yield this.dialog.open(_,{panelClass:"on-boarding-container",maxWidth:"500px",height:"auto",autoFocus:!1,data:{policyId:u.policyId,policyTitle:U.title,politicianTwitterAccountId:null===(C=null==N?void 0:N.twitter)||void 0===C?void 0:C.username}})}}else yield this.authPageService.navigateToAuth(y.p.SET_UP_PAGE,k.t.SUPPORT_BUTTON)}else yield this.authPageService.navigateToAuth(y.p.SIGN_UP_PAGE,k.t.SUPPORT_BUTTON),this.analytics.logEvent(x.dW.MUST_SIGN_UP_FLOW,{to_page:x.kv.SIGN_UP_PAGE})})}}return f.\u0275fac=function(u){return new(u||f)(t.LFG(m.P),t.LFG(y.S),t.LFG(v.N),t.LFG(et),t.LFG(b.uw),t.LFG(O.B),t.LFG(nt.g),t.LFG(it.j))},f.\u0275prov=t.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})()}}]);
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.