1"use strict";(self.webpackChunkcitizen_web=self.webpackChunkcitizen_web||[]).push([[690],{7690:(H,d,u)=>{u.r(d),u.d(d,{PolicyRequestCreateModule:()=>U});var s=u(8583),r=u(3679),g=u(9245),C=u(2654),h=u(6676),e=u(8720);let y=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[],imports:[[s.ez,h.O,r.UX,r.u5,C.j,g.ZX]]}),t})();var p=u(1834),l=u(4762),x=u(4672),P=u(6215),f=u(4985),v=u(6231);let B=(()=>{class t{constructor(n,i,a){this.snackBar=n,this.router=i,this.policyRequestRepository=a,this.loading$=new P.X(!1)}execute(n,i,a){return(0,l.mG)(this,void 0,void 0,function*(){if(a){this.loading$.next(!0);try{const c=yield this.policyRequestRepository.create({title:n,body:i,citizen_account_id:a._id,citizen:x.KJ.convertRebunduntPolicyRequestCitizen(a)});this.snackBar.open("\u9001\u4fe1\u6210\u529f\u3057\u307e\u3057\u305f"),this.router.navigate(["policy-requests","create","complete"],{queryParams:{policy_request_id:c}})}catch(c){console.error(c),this.snackBar.openWithError("\u9001\u4fe1\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002\u6642\u9593\u3092\u304a\u3044\u3066\u518d\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044")}finally{this.loading$.next(!1)}}else this.snackBar.openWithError("\u9001\u4fe1\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002\u30da\u30fc\u30b8\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u3066\u518d\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044")})}}return t.\u0275fac=function(n){return new(n||t)(e.LFG(f.c),e.LFG(p.F0),e.LFG(v.r))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var b=u(5978),F=u(7605);let m=(()=>{class t{constructor(n,i,a,c,w){this.usecase=n,this.accountRepository=i,this.formBuilder=a,this.signInAnonymous=c,this.snackBar=w}initialize(){return(0,l.mG)(this,void 0,void 0,function*(){try{yield this.signInAnonymous.execute()}catch(n){console.error(n),this.snackBar.openWithError("\u8a8d\u8a3c\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002\u30da\u30fc\u30b8\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u3066\u518d\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044")}})}form(){return this.formBuilder.group({text1:[null,r.kI.required],text2:[null]})}loading(){return this.usecase.loading$}account(){return this.accountRepository.myAccount$()}post(n,i,a){return(0,l.mG)(this,void 0,void 0,function*(){yield this.usecase.execute(n,i,a)})}}return t.\u0275fac=function(n){return new(n||t)(e.LFG(B),e.LFG(b.P),e.LFG(r.qu),e.LFG(F.h),e.LFG(f.c))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var A=u(8433);let M=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-title"]],decls:10,vars:0,consts:[[1,"item"],["src","assets/images/pages/policy-requests/create/request_policy.svg","loading","lazy","alt","\u653f\u7b56\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u3067\u304d\u308b",1,"item-img"],[1,"item-title"],[1,"item-text"]],template:function(n,i){1&n&&(e.TgZ(0,"div",0),e._UZ(1,"img",1),e.TgZ(2,"p",2),e._uU(3,"\u65b0\u3057\u3044\u653f\u7b56\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u4f5c\u6210"),e.qZA(),e.TgZ(4,"p",3),e._uU(5," \u65b0\u3057\u304f\u653f\u6cbb\u5bb6\u306b\u53d6\u308a\u7d44\u3093\u3067\u307b\u3057\u3044\u653f\u7b56\u304c\u3042\u308b\u6642\u306f\u3001\u65b0\u3057\u3044\u653f\u7b56\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002"),e._UZ(6,"br"),e._uU(7," \u653f\u7b56\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u3001\u4e0d\u9069\u5207\u306a\u5185\u5bb9\u304c\u306a\u3044\u304b\u904b\u55b6\u304c\u30c1\u30a7\u30c3\u30af\u3057\u305f\u5f8c\u306b\u516c\u958b\u3055\u308c\u307e\u3059\u3002"),e._UZ(8,"br"),e._uU(9," \u591a\u304f\u306e\u4eba\u306e\u8cdb\u540c\u3092\u96c6\u3081\u305f\u653f\u7b56\u30ea\u30af\u30a8\u30b9\u30c8\u307b\u3069\u653f\u6cbb\u5bb6\u306b\u53d6\u308a\u7d44\u3093\u3067\u3082\u3089\u3044\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002 "),e.qZA(),e.qZA())},styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.item[_ngcontent-%COMP%]{display:flex;flex-direction:column}.item-img[_ngcontent-%COMP%]{height:auto;margin:0 auto 16px;width:100px}@media all and (min-width: 600px){.item-img[_ngcontent-%COMP%]{width:150px}}.item-text[_ngcontent-%COMP%]{margin-bottom:8px;color:#1f1a1b;font-family:Hiragino Kaku Gothic Pro;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.25px}.item-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:18px;line-height:24px;letter-spacing:.25px;font-weight:700}@media all and (min-width: 600px){.item-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:.25px;font-weight:700}}'],changeDetection:0}),t})();const q=["*"];let O=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-base-form-label"]],inputs:{label:"label"},ngContentSelectors:q,decls:5,vars:1,consts:[[1,"wrapper"],[1,"label"],[1,"input-wrapper"]],template:function(n,i){1&n&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"label",1),e._uU(2),e.qZA(),e.TgZ(3,"div",2),e.Hsn(4),e.qZA(),e.qZA()),2&n&&(e.xp6(2),e.Oqu(i.label))},styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0;width:100%}.wrapper[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{margin-bottom:8px}.label[_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-size:14px;line-height:21px;letter-spacing:.25px;font-weight:700}@media all and (min-width: 600px){.label[_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;font-weight:700}}.input-wrapper[_ngcontent-%COMP%]{padding:0;position:relative}'],changeDetection:0}),t})();var Z=u(5066);let R=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-note"]],decls:6,vars:0,consts:[[2,"display","grid"],[1,"item"],[1,"item-note"],[1,"br-min-md"]],template:function(n,i){1&n&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"p",2),e._uU(3," \u653f\u6cbb\u5bb6\u304c\u5fc5\u305a\u8981\u671b\u306b\u5fdc\u3048\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u653f\u6cbb\u5bb6\u3078\u306e\u8ab9\u8b17\u4e2d\u50b7\u306a\u3069\u904b\u55b6\u304c\u4e0d\u9069\u5207\u3068\u5224\u65ad\u3057\u305f\u5834\u5408\u306f\u516c\u958b\u3055\u308c\u307e\u305b\u3093\u3002"),e._UZ(4,"br",3),e._uU(5,"\u307e\u305f\u3001\u8a18\u5165\u3057\u305f\u5185\u5bb9\u306fPoliPoli\u306eSNS\u306a\u3069\u3067\u7d39\u4ecb\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 "),e.qZA(),e.qZA(),e.qZA())},styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.item[_ngcontent-%COMP%]{display:flex;flex-direction:column}.item-note[_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:normal;font-size:12px;line-height:16px;letter-spacing:.25px;text-align:center}@media all and (max-width: 767px){.br-min-md[_ngcontent-%COMP%]{display:none}}'],changeDetection:0}),t})(),T=(()=>{class t{constructor(){this.appOnClick=new e.vpe,this.form={},this.loading=!1}ngOnInit(){}onClick(){var n,i;const a=null===(n=this.form.get("text1"))||void 0===n?void 0:n.value,c=null===(i=this.form.get("text2"))||void 0===i?void 0:i.value;this.appOnClick.emit({title:a,body:c,account:this.account})}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-policy-request-create-presentation"]],inputs:{account:"account",loading:"loading",form:"form"},outputs:{appOnClick:"appOnClick"},decls:13,vars:7,consts:[[1,"section"],[2,"margin-bottom","24px"],[1,"form",3,"formGroup"],[3,"label"],["formControlName","text1","type","text",1,"form-input"],[2,"height","24px"],["formControlName","text2","type","text",1,"form-textarea",3,"formControlName"],[2,"height","40px"],[2,"height","40px",3,"loading","isDisabled","buttonSecondaryName","tapped"],[2,"height","16px"]],template:function(n,i){1&n&&(e._UZ(0,"app-header"),e.TgZ(1,"section",0),e._UZ(2,"app-title",1),e.TgZ(3,"form",2),e.TgZ(4,"app-base-form-label",3),e._UZ(5,"input",4),e.qZA(),e._UZ(6,"div",5),e.TgZ(7,"app-base-form-label",3),e._UZ(8,"textarea",6),e.qZA(),e._UZ(9,"div",7),e.TgZ(10,"app-button-secondary",8),e.NdJ("tapped",function(){return i.onClick()}),e.qZA(),e._UZ(11,"div",9),e._UZ(12,"app-note"),e.qZA(),e.qZA()),2&n&&(e.xp6(3),e.Q6J("formGroup",i.form),e.xp6(1),e.Q6J("label","\u53d6\u308a\u7d44\u3093\u3067\u6b32\u3057\u3044\u653f\u7b56\u306e\u5185\u5bb9"),e.xp6(3),e.Q6J("label","\u53d6\u308a\u7d44\u3093\u3067\u6b32\u3057\u3044\u7406\u7531(\u4efb\u610f)"),e.xp6(1),e.Q6J("formControlName","text2"),e.xp6(2),e.Q6J("loading",i.loading)("isDisabled",i.form.invali
1d)("buttonSecondaryName","\u653f\u7b56\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u308b"))},directives:[A.G,M,r._Y,r.JL,r.sg,O,r.Fj,r.JJ,r.u,Z.A,R],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.loading[_ngcontent-%COMP%]{padding:24px}.section[_ngcontent-%COMP%]{max-width:1040px;margin:0 auto;padding:16px}@media (min-width: 768px) and (max-width: 1199px){.section[_ngcontent-%COMP%]{padding-left:40px;padding-right:40px}}@media all and (min-width: 1200px){.section[_ngcontent-%COMP%]{padding-left:80px;padding-right:80px}}.form[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-input[_ngcontent-%COMP%]{border:solid 1px #dbd9d9;border-radius:4px;box-sizing:border-box;padding:7px 12px;width:100%;background:#ffffff;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:16px;line-height:22px;letter-spacing:.25px;font-weight:300}.form-input[_ngcontent-%COMP%]:focus{outline:0;border:solid 1px #04856a}.form-input.ng-invalid.ng-dirty[_ngcontent-%COMP%]{border:solid 1px #990f24}.form-input.ng-invalid.ng-touched[_ngcontent-%COMP%]{border:solid 1px #990f24}.form-textarea[_ngcontent-%COMP%]{border:1px solid #dbd9d9;border-radius:4px;box-sizing:border-box;height:160px;min-height:135px;padding:12px;resize:none;width:100%;background:#ffffff;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}.form-textarea[_ngcontent-%COMP%]:focus{outline:0}'],changeDetection:0}),t})();function _(t,o){if(1&t){const n=e.EpF();e.ynx(0),e.TgZ(1,"app-policy-request-create-presentation",1),e.NdJ("appOnClick",function(a){return e.CHM(n),e.oxw().onClick(a)}),e.ALo(2,"async"),e.qZA(),e.BQk()}if(2&t){const n=o.ngIf,i=e.oxw();e.xp6(1),e.Q6J("loading",n.value)("account",e.lcZ(2,3,i.account$))("form",i.formGroup)}}const E=function(t){return{value:t}};let z=(()=>{class t{constructor(n){this.page=n,this.formGroup=this.page.form(),this.account$=this.page.account(),this.loading$=this.page.loading()}ngOnInit(){this.page.initialize()}onClick(n){return(0,l.mG)(this,void 0,void 0,function*(){yield this.page.post(n.title,n.body,n.account)})}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(m))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-policy-request-create-container"]],decls:2,vars:5,consts:[[4,"ngIf"],[3,"loading","account","form","appOnClick"]],template:function(n,i){1&n&&(e.YNc(0,_,3,5,"ng-container",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.VKq(3,E,e.lcZ(1,1,i.loading$)))},directives:[s.O5,T],pipes:[s.Ov],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),t})();const D=[{path:"",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-policy-request-create"]],decls:1,vars:0,template:function(n,i){1&n&&e._UZ(0,"app-policy-request-create-container")},directives:[z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),t})()},{path:"complete",loadChildren:()=>u.e(577).then(u.bind(u,1577)).then(t=>t.PolicyRequestCreateCompleteModule)}];let G=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[p.Bz.forChild(D)],p.Bz]}),t})(),U=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[m],imports:[[s.ez,G,y]]}),t})()}}]);
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.