{"version":3,"file":"default-projects_desktop_src_app_root_root-main_child-content-judicial-interpret-search_judic-551f68.js","mappings":";;;;;;;;;;;;;AAEM,MAAOA,iCAAP,CAAwC;AAW1CC,cAAY;AACR,WAAO,KAAKC,KAAL,GAAa,CAAb,GACH,KAAKA,KAAL,GAAa,GAAb,GACI,MADJ,GAEM,KAAKA,KAAL,CAAWC,cAAX,EAHH,GAID,EAJN;AAKH;;AAEY,SAANC,MAAM,CACTC,IADS,EAEPC,IAFO,EAGPC,SAHO,EAIPC,IAJO,EAKPC,YALO,EAKa;AAEtB,QAAIC,MAAM,GAAG,IAAIV,iCAAJ,EAAb;AACAU,UAAM,CAACL,IAAP,GAAcA,IAAd;AACAK,UAAM,CAACJ,IAAP,GAAcA,IAAd;AACAI,UAAM,CAACH,SAAP,GAAmBA,SAAnB;AACAG,UAAM,CAACF,IAAP,GAAcA,IAAd;AACAE,UAAM,CAACD,YAAP,GAAsBA,YAAtB;AACAC,UAAM,CAACC,OAAP,GAAiB,KAAjB;AACAD,UAAM,CAACE,MAAP,GAAgB,KAAhB;AACAF,UAAM,CAACR,KAAP,GAAe,CAAf;AACAQ,UAAM,CAACG,SAAP,GAAmB,KAAnB;AAEA,WAAOH,MAAP;AACH;;AAtCyC;;;;;;;;;;;;;;ACFvC,IAAKI,qCASX;AATD,aAAYA,qCAAZ,EAAiD;AAC7CA;AACAA;AACAA;AACAA;AACAA;AACAA;AACAA;AACAA;AACH,GATD,EAAYA,qCAAqC,KAArCA,qCAAqC,MAAjD,CASC;;AAAA,SATWA,qCASX;AAAA,IATD;;;;;;;;;;;;;;;;;;;;ACUA;AACA;AAKA;AACA;;;AAKO,IAAMG,8BAAb;AAAM,QAAOA,8BAAP,CAAqC;AA0YvCC,gBACYC,OADZ,EAC+B;AAAnB;AA1YJ,mBAAQL,6IAAR;AACA,gBAAKd,+HAAL;AACR,yDAAkJ;AAC9IoB,WAAG,EAAE,KAAKC,EAAL,CAAQjB,MAAR,CAAe,KAAKkB,KAAL,C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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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AuBJ,sDAAAA,CAAAA,mEAAAA,GAAAA,sDAAAA,CAAAA,mDAAAA,GAAAA,sDAAAA,CAAAA,yDAAAA;AAAA;;;WAAvBI;AAAuBH,aAAvBG,uBAAuB;AAAAF,gBAFpB;;AAEhB,SAAaE,uBAAb;AAAA","sources":["./projects/desktop/src/app/root/root-main/child-content-judicial-interpret-search/judicial-interpret-result/judicial-interpret-result-type-button.ts","./projects/desktop/src/app/root/root-main/child-content-judicial-interpret-search/judicial-interpret-result/judicial-interpret-search-result-case-type.enum.ts","./projects/desktop/src/app/root/root-main/child-content-judicial-interpret-search/judicial-interpret-search.service.ts","./projects/lwlib/src/succes-tip/success-tip-opener.service.ts"],"sourcesContent":["import { JudicialInterpretSearchResultCaseType } from \"./judicial-interpret-search-result-case-type.enum\";\r\n\r\nexport class JudicialInterpretResultTypeButton {\r\n type: JudicialInterpretSearchResultCaseType;\r\n name: string;\r\n className: string;\r\n icon: string;\r\n iconSelected: string;\r\n loading: boolean;\r\n finish: boolean;\r\n count: number;\r\n countRead: boolean;\r\n\r\n getCountText(): string {\r\n return this.count > 0 ?\r\n this.count > 999 ?\r\n '999+'\r\n : this.count.toLocaleString()\r\n : '';\r\n }\r\n\r\n static create(\r\n type: JudicialInterpretSearchResultCaseType\r\n , name: string\r\n , className: string\r\n , icon: string\r\n , iconSelected: string\r\n ) {\r\n let button = new JudicialInterpretResultTypeButton();\r\n button.type = type;\r\n button.name = name;\r\n button.className = className;\r\n button.icon = icon;\r\n button.iconSelected = iconSelected;\r\n button.loading = false;\r\n button.finish = false;\r\n button.count = 0;\r\n button.countRead = false;\r\n \r\n return button;\r\n }\r\n}\r\n","export enum JudicialInterpretSearchResultCaseType {\r\n All = 0,\r\n Court = 1,\r\n Grand = 7,\r\n Precedent = 2,\r\n Judgment = 3,\r\n Resolution = 4,\r\n Discipline = 5,\r\n Seminar = 6,\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { JudicialInterpretCondition } from './judicial-interpret-condition/judicial-interpret-condition';\r\nimport { JudicialInterpretCaseType } from './judicial-interpret-condition/judicial-interpret-case-type.enum';\r\nimport { JudicialInterpretCaseTypeCourtBlock } from './judicial-interpret-condition/judicial-interpret-case-type-court-block';\r\nimport { JudicialInterpretCourtBlock } from './judicial-interpret-condition/judicial-interpret-court-block';\r\nimport { JudicialInterpretCourt } from './judicial-interpret-condition/judicial-interpret-court';\r\nimport { JudicialInterpretCourtId } from './judicial-interpret-condition/judicial-interpret-court-id.enum';\r\nimport { JudicialInterpretCourtCount } from '../child-content-storage-personal/judicial-interpret/judicial-interpret-court-count';\r\nimport { JudicialInterpretCase } from '../child-content-storage-personal/judicial-interpret/judicial-interpret-case';\r\nimport { JudicialInterpretProperty } from '../child-content-storage-personal/judicial-interpret/judicial-interpret-property.enum';\r\nimport { JudicialInterpretSearchResultCaseType } from './judicial-interpret-result/judicial-interpret-search-result-case-type.enum';\r\nimport { JudicialInterpretResultTypeButton } from './judicial-interpret-result/judicial-interpret-result-type-button';\r\nimport { CourtId } from 'projects/lwlib/src/case-type/court-id.enum';\r\nimport { JudicialInterpretCourtBlockId, JudicialInterpretCourtCatalogId, JudicialInterpretCourtGroupId } from 'projects/lwlib/src/judicial-interpret/judicial-interpret-court';\r\nimport { Observable } from 'rxjs';\r\nimport { AppService } from '../../../app.service';\r\nimport { SearcherKeyword } from 'projects/lwlib/src/keyword-searcher/searcher-keyword';\r\nimport { ComposeType } from 'projects/lwlib/src/compose-search-popup/compose-type';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class JudicialInterpretSearchService {\r\n private rType = JudicialInterpretSearchResultCaseType;\r\n private tb = JudicialInterpretResultTypeButton;\r\n judicialInterpretSearchResultCaseTypeButton: { [key in keyof typeof JudicialInterpretSearchResultCaseType]: JudicialInterpretResultTypeButton } = {\r\n All: this.tb.create(this.rType.All, '全部', 'all', 'all.png', 'all.png'),\r\n Court: this.tb.create(this.rType.Court, '司法院', 'court', 'court.png', 'court_selected.png'),\r\n Grand: this.tb.create(this.rType.Grand, '大法庭', 'court', 'court.png', 'court_selected.png'),\r\n Precedent: this.tb.create(this.rType.Precedent, '判例', 'precedent', 'precedent.png', 'precedent_selected.png'),\r\n Resolution: this.tb.create(this.rType.Resolution, '決議', 'resolution', 'resolution.png', 'resolution_selected.png'),\r\n Judgment: this.tb.create(this.rType.Judgment, '精選裁判', 'judgment', 'judgment.png', 'judgment_selected.png'),\r\n Discipline: this.tb.create(this.rType.Discipline, '公懲', 'discipline', 'discipline.png', 'discipline_selected.png'),\r\n Seminar: this.tb.create(this.rType.Seminar, '座談會', 'seminar', 'seminar.png', 'seminar_selected.png'),\r\n };\r\n // blocks: { [key in keyof typeof JudicialInterpretCaseType]: JudicialInterpretCaseTypeCourtBlock } = {\r\n // Court: JudicialInterpretCaseTypeCourtBlock.create({\r\n // type: JudicialInterpretCaseType.Court, name: '司法院',\r\n // block: [\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '司法院', icon: 'icon/court-blue.png', hasSelectAll: false,\r\n // courtList: [[new JudicialInterpretCourt('司法院解釋 (包含大理院、最高法院、司法院)', JudicialInterpretCourtId.ctypeA)]]\r\n // })],\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '大法官', icon: 'icon/court-green.png', hasSelectAll: false,\r\n // courtList: [[new JudicialInterpretCourt('大法官解釋', JudicialInterpretCourtId.ctypeD)]]\r\n // })],\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '不受理', icon: 'icon/court-red.png', hasSelectAll: false,\r\n // courtList: [[new JudicialInterpretCourt('大法官不受理案件', JudicialInterpretCourtId.ttypeX)]]\r\n // })]\r\n // ]\r\n // }),\r\n // Grand: JudicialInterpretCaseTypeCourtBlock.create({\r\n // type: JudicialInterpretCaseType.Grand, name: '大法庭',\r\n // block: [\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '一般', icon: 'icon/court-blue.png', hasSelectAll: true,\r\n // courtList: [[\r\n // new JudicialInterpretCourt('民事類', JudicialInterpretCourtId.jtype21),\r\n // new JudicialInterpretCourt('刑事類', JudicialInterpretCourtId.jtype22),\r\n // new JudicialInterpretCourt('行政類', JudicialInterpretCourtId.jtype23)\r\n // ]]\r\n // })],\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '', icon: '', hasSelectAll: false,\r\n // courtList: [[]]\r\n // })]\r\n // ]\r\n // }),\r\n // Precedent: JudicialInterpretCaseTypeCourtBlock.create({\r\n // type: JudicialInterpretCaseType.Precedent, name: '判例',\r\n // block: [\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '一般', icon: 'icon/court-blue.png', hasSelectAll: true,\r\n // courtList: [[\r\n // new JudicialInterpretCourt('民事類', JudicialInterpretCourtId.jtypeA),\r\n // new JudicialInterpretCourt('刑事類', JudicialInterpretCourtId.jtypeB),\r\n // new JudicialInterpretCourt('行政類', JudicialInterpretCourtId.jtypeE)\r\n // ]]\r\n // })],\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '停止適用', icon: 'icon/court-red.png', hasSelectAll: true,\r\n // courtList: [[\r\n // new JudicialInterpretCourt('民事類', JudicialInterpretCourtId.jtype1A),\r\n // new JudicialInterpretCourt('刑事類', JudicialInterpretCourtId.jtype1B),\r\n // new JudicialInterpretCourt('行政類', JudicialInterpretCourtId.jtype1E)\r\n // ]]\r\n // })]\r\n // ]\r\n // }),\r\n // Judgment: JudicialInterpretCaseTypeCourtBlock.create({\r\n // type: JudicialInterpretCaseType.Judgment, name: '精選裁判',\r\n // block: [\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '民事', icon: 'icon/court-blue.png', hasSelectAll: true,\r\n // courtList: [\r\n // [new JudicialInterpretCourt('地方法院', JudicialInterpretCourtId.jtypeI)],\r\n // [new JudicialInterpretCourt('高等法院', JudicialInterpretCourtId.jtypeG)],\r\n // [new JudicialInterpretCourt('最高法院', JudicialInterpretCourtId.jtypeC)],\r\n // [new JudicialInterpretCourt('智慧財產法院', JudicialInterpretCourtId.jtypeO)]\r\n // ]\r\n // })],\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '刑事', icon: 'icon/court-green.png', hasSelectAll: true,\r\n // courtList: [\r\n // [new JudicialInterpretCourt('地方法院', JudicialInterpretCourtId.jtypeJ)],\r\n // [new JudicialInterpretCourt('高等法院', JudicialInterpretCourtId.jtypeH)],\r\n // [new JudicialInterpretCourt('最高法院', JudicialInterpretCourtId.jtypeD)],\r\n // [new JudicialInterpretCourt('智慧財產法院', JudicialInterpretCourtId.jtypeP)]\r\n // ]\r\n // })],\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '行政', icon: 'icon/court-red.png', hasSelectAll: true,\r\n // courtList: [\r\n // // [new JudicialInterpretCourt('地方法院', JudicialInterpretCourtId.)],\r\n // [new JudicialInterpretCourt('高等行政法院', JudicialInterpretCourtId.jtypeK)],\r\n // [new JudicialInterpretCourt('最高行政法院', JudicialInterpretCourtId.jtypeF)],\r\n // [new JudicialInterpretCourt('智慧財產法院', JudicialInterpretCourtId.jtypeQ)]\r\n // ]\r\n // })],\r\n // [\r\n // JudicialInterpretCourtBlock.create({\r\n // id: '', title: '最高法院 - 具有參考價值的裁判', icon: 'icon/court-yellow.png', hasSelectAll: false,\r\n // courtList: [[\r\n // new JudicialInterpretCourt('民事類', JudicialInterpretCourtId.jtypeU),\r\n // new JudicialInterpretCourt('刑事類', JudicialInterpretCourtId.jtypeV)\r\n // ]]\r\n // }),\r\n // JudicialInterpretCourtBlock.create({\r\n // id: '', title: '高等法院及所屬法院 - \\n具有參考價值的裁判', icon: 'icon/court-purple.png', hasSelectAll: false,\r\n // courtList: [[\r\n // new JudicialInterpretCourt('民事類', JudicialInterpretCourtId.jtypeS),\r\n // new JudicialInterpretCourt('刑事類', JudicialInterpretCourtId.jtypeT)\r\n // ]]\r\n // })\r\n // ]\r\n // ]\r\n // }),\r\n // Resolution: JudicialInterpretCaseTypeCourtBlock.create({\r\n // type: JudicialInterpretCaseType.Resolution, name: '決議',\r\n // block: [\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '民事', icon: 'icon/court-blue.png', hasSelectAll: false,\r\n // courtList: [[new JudicialInterpretCourt('最高法院決議 (庭推決議)', JudicialInterpretCourtId.dtypeA)]]\r\n // })],\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '刑事', icon: 'icon/court-green.png', hasSelectAll: false,\r\n // courtList: [[new JudicialInterpretCourt('最高法院決議 (庭推決議)', JudicialInterpretCourtId.dtypeB)]]\r\n // })],\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '行政', icon: 'icon/court-red.png', hasSelectAll: false,\r\n // courtList: [[new JudicialInterpretCourt('最高行政法院聯席會議決議', JudicialInterpretCourtId.dtypeC)]]\r\n // })],\r\n // ]\r\n // }),\r\n // Discipline: JudicialInterpretCaseTypeCourtBlock.create({\r\n // type: JudicialInterpretCaseType.Discipline, name: '公懲',\r\n // block: [\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '公懲會議決', icon: 'icon/court-blue.png', hasSelectAll: false,\r\n // courtList: [[new JudicialInterpretCourt('公懲會議決', JudicialInterpretCourtId.jtypeL)]]\r\n // })],\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '', icon: '', hasSelectAll: false,\r\n // courtList: [[]]\r\n // })]\r\n // ]\r\n // }),\r\n // Seminar: JudicialInterpretCaseTypeCourtBlock.create({\r\n // type: JudicialInterpretCaseType.Seminar, name: '座談會',\r\n // block: [\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '民事', icon: 'icon/court-blue.png', hasSelectAll: false,\r\n // courtList: [\r\n // [new JudicialInterpretCourt('民事法律問題座談', JudicialInterpretCourtId.qtypeA)],\r\n // [new JudicialInterpretCourt('公證法律問題研討', JudicialInterpretCourtId.qtypeG)]\r\n // ]\r\n // })],\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '刑事', icon: 'icon/court-green.png', hasSelectAll: false,\r\n // courtList: [[new JudicialInterpretCourt('刑事法律問題座談', JudicialInterpretCourtId.qtypeB)]]\r\n // })],\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '行政', icon: 'icon/court-red.png', hasSelectAll: false,\r\n // courtList: [[new JudicialInterpretCourt('行政法律問題座談', JudicialInterpretCourtId.qtypeC)]]\r\n // })],\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '公懲', icon: 'icon/court-purple.png', hasSelectAll: false,\r\n // courtList: [[new JudicialInterpretCourt('公懲法律問題座談', JudicialInterpretCourtId.qtypeD)]]\r\n // })],\r\n // ]\r\n // }),\r\n // Execute: JudicialInterpretCaseTypeCourtBlock.create({\r\n // type: JudicialInterpretCaseType.Execute, name: '行政函釋',\r\n // block: [\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '行政函釋', icon: 'icon/court-blue.png', hasSelectAll: false,\r\n // courtList: [[new JudicialInterpretCourt('行政函釋', JudicialInterpretCourtId.jtypeL)]]\r\n // })],\r\n // [JudicialInterpretCourtBlock.create({\r\n // id: '', title: '', icon: '', hasSelectAll: false,\r\n // courtList: [[]]\r\n // })]\r\n // ]\r\n // }),\r\n // };\r\n // courtIdCaseTypeName: { [key in keyof typeof JudicialInterpretCourtId]: string } = {\r\n // NONE: '',\r\n // ctypeABC: '司法院',\r\n // ctypeD: '司法院',\r\n // ttypeX: '司法院',\r\n // jtypeA: '判例',\r\n // jtypeB: '判例',\r\n // jtypeE: '判例',\r\n // jtypeI: '精選裁判',\r\n // jtypeG: '精選裁判',\r\n // jtypeC: '精選裁判',\r\n // jtypeO: '精選裁判',\r\n // jtypeJ: '精選裁判',\r\n // jtypeH: '精選裁判',\r\n // jtypeD: '精選裁判',\r\n // jtypeP: '精選裁判',\r\n // jtypeK: '精選裁判',\r\n // jtypeF: '精選裁判',\r\n // jtypeQ: '精選裁判',\r\n // jtypeU: '精選裁判',\r\n // jtypeV: '精選裁判',\r\n // jtypeS: '精選裁判',\r\n // jtypeT: '精選裁判',\r\n // dtypeA: '決議',\r\n // dtypeB: '決議',\r\n // dtypeC: '決議',\r\n // jtypeL: '公懲',\r\n // qtypeA: '座談會',\r\n // qtypeB: '座談會',\r\n // qtypeC: '座談會',\r\n // qtypeD: '座談會',\r\n // jtype1A: '判例',\r\n // jtype1B: '判例',\r\n // jtype1E: '判例',\r\n // jtype21: '大法庭',\r\n // jtype22: '大法庭',\r\n // jtype23: '大法庭',\r\n // qtypeG: '座談會',\r\n // };\r\n // courtLevelName: { [key in keyof typeof JudicialInterpretCourtId]: string } = {\r\n // NONE: '',\r\n // ctypeABC: '司法院', // 司法解釋 (不分民刑事) -- 大理院解釋 / 最高法院解釋 / 司法院解釋\r\n // ctypeD: '大法官', // 司法解釋 (不分民刑事) -- 大法官解釋\r\n // ttypeX: '不受理', // 大法官不受理案件 (不分民刑事) -- 大法官不受理案件\r\n // jtypeA: '一般', // 最高法院判例 -- 最高法院民事判例\r\n // jtypeB: '一般', // 最高法院判例 -- 最高法院刑事判例\r\n // jtypeE: '一般', // 最高行政法院判例(不分民刑事) -- 最高行政法院判例\r\n // jtypeI: '民事', // 地方法院裁判 -- 地方法院民事裁判\r\n // jtypeG: '民事', // 高等法院裁判 -- 高等法院民事裁判\r\n // jtypeC: '民事', // 最高法院裁判 -- 最高法院民事裁判\r\n // jtypeO: '民事', // 智慧財產法院裁判(民刑事) -- 智慧財產法院民事裁判\r\n // jtypeJ: '刑事', // 地方法院裁判 -- 地方法院刑事裁判\r\n // jtypeH: '刑事', // 高等法院裁判 -- 高等法院刑事裁判\r\n // jtypeD: '刑事', // 最高法院裁判 -- 最高法院刑事裁判\r\n // jtypeP: '刑事', // 智慧財產法院裁判(民刑事) -- 智慧財產法院刑事裁判\r\n // jtypeK: '行政', // 高等行政法院裁判 (不分民刑事) -- 高等行政法院裁判\r\n // jtypeF: '行政', // 最高行政法院裁判(不分民刑事) -- 最高行政法院裁判\r\n // jtypeQ: '行政', // 智慧財產法院裁判 (行政) -- 智慧財產法院行政裁判\r\n // jtypeU: '最高法院 - 具有參考價值的裁判', // 最高法院具參考價值裁判 -- 最高法院民事庭具參考價值裁判\r\n // jtypeV: '最高法院 - 具有參考價值的裁判', // 最高法院具參考價值裁判 -- 最高法院刑事庭具參考價值裁判\r\n // jtypeS: '高等法院及所屬法院 - 具有參考價值的裁判', // 高院暨所屬法院具參考價值裁判 -- 高院暨所屬法院民事庭具參考價值裁判\r\n // jtypeT: '高等法院及所屬法院 - 具有參考價值的裁判', // 高院暨所屬法院具參考價值裁判 -- 高院暨所屬法院刑事庭具參考價值裁判\r\n // dtypeA: '民事', // 最高法院決議 -- 最高法院民事決議\r\n // dtypeB: '刑事', // 最高法院決議 -- 最高法院刑事決議\r\n // dtypeC: '行政', // 最高行政法院聯席會議決議 -- 最高行政法院聯席會議決議\r\n // jtypeL: '公懲會議決', // 公懲會議決 (不分民刑事) -- 公懲會議決\r\n // qtypeA: '民事', // 法律問題座談 -- 民事法律問題座談\r\n // qtypeB: '刑事', // 法律問題座談 -- 刑事法律問題座談\r\n // qtypeC: '行政', // 行政法律問題座談(不分民刑事) -- 行政法律問題座談\r\n // qtypeD: '公懲', // 公懲法律問題座談(不分民刑事) -- 公懲法律問題座談\r\n // jtype1A: '停止適用',\r\n // jtype1B: '停止適用',\r\n // jtype1E: '停止適用',\r\n // jtype21: '大法庭',\r\n // jtype22: '大法庭',\r\n // jtype23: '大法庭',\r\n // qtypeG: '民事',\r\n // };\r\n // courtIdName: { [key in keyof typeof JudicialInterpretCourtId]: string } = {\r\n // NONE: '',\r\n // ctypeABC: '司法院解釋', // 司法解釋 (不分民刑事) -- 大理院解釋 / 最高法院解釋 / 司法院解釋\r\n // ctypeD: '大法官解釋', // 司法解釋 (不分民刑事) -- 大法官解釋\r\n // ttypeX: '大法官不受理', // 大法官不受理案件 (不分民刑事) -- 大法官不受理案件\r\n // jtypeA: '民事類', // 最高法院判例 -- 最高法院民事判例\r\n // jtypeB: '刑事類', // 最高法院判例 -- 最高法院刑事判例\r\n // jtypeE: '行政類', // 最高行政法院判例(不分民刑事) -- 最高行政法院判例\r\n // jtypeI: '地方法院', // 地方法院裁判 -- 地方法院民事裁判\r\n // jtypeG: '高等法院', // 高等法院裁判 -- 高等法院民事裁判\r\n // jtypeC: '最高法院', // 最高法院裁判 -- 最高法院民事裁判\r\n // jtypeO: '智慧財產法院', // 智慧財產法院裁判(民刑事) -- 智慧財產法院民事裁判\r\n // jtypeJ: '地方法院', // 地方法院裁判 -- 地方法院刑事裁判\r\n // jtypeH: '高等法院', // 高等法院裁判 -- 高等法院刑事裁判\r\n // jtypeD: '最高法院', // 最高法院裁判 -- 最高法院刑事裁判\r\n // jtypeP: '智慧財產法院', // 智慧財產法院裁判(民刑事) -- 智慧財產法院刑事裁判\r\n // jtypeK: '高等行政法', // 高等行政法院裁判 (不分民刑事) -- 高等行政法院裁判\r\n // jtypeF: '最高行政法', // 最高行政法院裁判(不分民刑事) -- 最高行政法院裁判\r\n // jtypeQ: '智慧財產法院', // 智慧財產法院裁判 (行政) -- 智慧財產法院行政裁判\r\n // jtypeU: '民事類', // 最高法院具參考價值裁判 -- 最高法院民事庭具參考價值裁判\r\n // jtypeV: '刑事類', // 最高法院具參考價值裁判 -- 最高法院刑事庭具參考價值裁判\r\n // jtypeS: '民事類', // 高院暨所屬法院具參考價值裁判 -- 高院暨所屬法院民事庭具參考價值裁判\r\n // jtypeT: '刑事類', // 高院暨所屬法院具參考價值裁判 -- 高院暨所屬法院刑事庭具參考價值裁判\r\n // dtypeA: '最高法院決議', // 最高法院決議 -- 最高法院民事決議\r\n // dtypeB: '最高法院決議', // 最高法院決議 -- 最高法院刑事決議\r\n // dtypeC: '最高行政法院聯席會議決議', // 最高行政法院聯席會議決議 -- 最高行政法院聯席會議決議\r\n // jtypeL: '公懲會議決', // 公懲會議決 (不分民刑事) -- 公懲會議決\r\n // qtypeA: '民事法律問題座談', // 法律問題座談 -- 民事法律問題座談\r\n // qtypeB: '刑事法律問題座談', // 法律問題座談 -- 刑事法律問題座談\r\n // qtypeC: '行政法律問題座談', // 行政法律問題座談(不分民刑事) -- 行政法律問題座談\r\n // qtypeD: '公懲法律問題座談', // 公懲法律問題座談(不分民刑事) -- 公懲法律問題座談\r\n // jtype1A: '民事停止適用判例',\r\n // jtype1B: '刑事停止適用判例',\r\n // jtype1E: '行政停止適用判例',\r\n // jtype21: '民事大法庭',\r\n // jtype22: '刑事大法庭',\r\n // jtype23: '行政大法庭',\r\n // qtypeG: '公證法律問題研討',\r\n // };\r\n // courtIdTitle: { [key in keyof typeof JudicialInterpretCourtId]: (note: JudicialInterpretCase) => string } = {\r\n // NONE: (n) => '',\r\n // ctypeABC: (n) => this.noteTitle_ctypeABC(n),\r\n // ctypeD: (n) => this.noteTitle_ctypeD(n),\r\n // ttypeX: (n) => this.noteTitle_ttypeX(n),\r\n // jtypeA: (n) => this.noteTitle_jtypeA(n),\r\n // jtypeB: (n) => this.noteTitle_jtypeB(n),\r\n // jtypeE: (n) => this.noteTitle_jtypeE(n),\r\n // jtypeI: (n) => this.noteTitle_jtypeI(n),\r\n // jtypeG: (n) => this.noteTitle_jtypeG(n),\r\n // jtypeC: (n) => this.noteTitle_jtypeC(n),\r\n // jtypeO: (n) => this.noteTitle_jtypeO(n),\r\n // jtypeJ: (n) => this.noteTitle_jtypeJ(n),\r\n // jtypeH: (n) => this.noteTitle_jtypeH(n),\r\n // jtypeD: (n) => this.noteTitle_jtypeD(n),\r\n // jtypeP: (n) => this.noteTitle_jtypeP(n),\r\n // jtypeK: (n) => this.noteTitle_jtypeK(n),\r\n // jtypeF: (n) => this.noteTitle_jtypeF(n),\r\n // jtypeQ: (n) => this.noteTitle_jtypeQ(n),\r\n // jtypeU: (n) => this.noteTitle_jtypeU(n),\r\n // jtypeV: (n) => this.noteTitle_jtypeV(n),\r\n // jtypeS: (n) => this.noteTitle_jtypeS(n),\r\n // jtypeT: (n) => this.noteTitle_jtypeT(n),\r\n // dtypeA: (n) => this.noteTitle_dtypeA(n),\r\n // dtypeB: (n) => this.noteTitle_dtypeB(n),\r\n // dtypeC: (n) => this.noteTitle_dtypeC(n),\r\n // jtypeL: (n) => this.noteTitle_jtypeL(n),\r\n // qtypeA: (n) => this.noteTitle_qtypeA(n),\r\n // qtypeB: (n) => this.noteTitle_qtypeB(n),\r\n // qtypeC: (n) => this.noteTitle_qtypeC(n),\r\n // qtypeD: (n) => this.noteTitle_qtypeD(n),\r\n // jtype1A: (n) => this.noteTitle_jtype1A(n),\r\n // jtype1B: (n) => this.noteTitle_jtype1B(n),\r\n // jtype1E: (n) => this.noteTitle_jtype1E(n),\r\n // jtype21: (n) => this.noteTitle_jtype21(n),\r\n // jtype22: (n) => this.noteTitle_jtype22(n),\r\n // jtype23: (n) => this.noteTitle_jtype23(n),\r\n // qtypeG: (n) => this.noteTitle_qtypeG(n),\r\n // };\r\n propertyName: { [key in keyof typeof JudicialInterpretProperty]: string } = {\r\n Unified: '統字',\r\n Solve: '解字',\r\n Yuan: '院字',\r\n YuanSolve: '院解字',\r\n Explain: '釋字',\r\n Reject: '不受理',\r\n XF38: '憲法判決',\r\n XF39: '實體裁定',\r\n XF40: '程序裁定',\r\n Precedent: '判例',\r\n Judgment: '判決',\r\n JudgmentSeuperme: '判決',\r\n Reference: '價值裁判',\r\n Resolution: '決議',\r\n Discipline: '公懲',\r\n Seminar: '座談會',\r\n Grand: '大法庭',\r\n Execute: '行政函令',\r\n };\r\n\r\n\r\n\r\n isProMode: boolean = false;\r\n enableConditionPage: boolean = true;\r\n enableResultPage: boolean = false;\r\n\r\n // resultMode: boolean = false;\r\n\r\n // backToProCondition: boolean;\r\n\r\n // condition: JudicialInterpretCondition;\r\n proCondition: {\r\n catalogId: JudicialInterpretCourtCatalogId,\r\n courtBlocks: { courtBlockId: JudicialInterpretCourtBlockId, courtGroupIds: JudicialInterpretCourtGroupId[] }[],\r\n keyword: [string, string, string, string, string, string],\r\n compose: [string, string, string, string, string, string],\r\n caseDate: [string, string, string, string, string, string],\r\n caseWordWord: string,\r\n caseWordNumber: string,\r\n caseWordMeetNumber: string,\r\n caseWordYear: string,\r\n xfCaseYear: string,\r\n xfCaseWord: string,\r\n xfCaseNumber: string,\r\n caseReason: string,\r\n caseWordMeetYear: string,\r\n caseWordMeetMonth: string,\r\n caseWordAgency: string,\r\n tag: { [key: string]: string[] }\r\n };\r\n simpleKeyword: string = '';\r\n\r\n constructor(\r\n private service: AppService,\r\n ) { }\r\n\r\n onSubmitSimpleSearch(\r\n keyword: string\r\n ): void {\r\n this.simpleKeyword = keyword;\r\n\r\n this.isProMode = false;\r\n this.enableConditionPage = false;\r\n this.enableResultPage = true;\r\n }\r\n onSubmitProSearch(condition: any): void {\r\n this.proCondition = condition;\r\n\r\n this.isProMode = true;\r\n this.enableConditionPage = false;\r\n this.enableResultPage = true;\r\n }\r\n onBackConditionPage(): void {\r\n this.enableConditionPage = true;\r\n this.enableResultPage = false;\r\n\r\n }\r\n getSimpleSearchCourtCatalogCount(condition: any): Observable {\r\n return this.service.post(`judicial_interpret/count_court_simple`, condition);\r\n }\r\n getSimpleSearchCourtCatalogNote(condition: any): Observable {\r\n return this.service.post(`judicial_interpret/search_court_note_simple`, condition);\r\n }\r\n getProSearchCourtGroupCount(condition: any): Observable {\r\n return this.service.post(`judicial_interpret/search_court_count_one`, condition);\r\n }\r\n searchCourtCountMultiObserver(condition: any): Observable {\r\n return this.service.post(`judicial_interpret/search_court_count`, condition);\r\n }\r\n getProSearchCourtGroupNote(condition: any): Observable {\r\n return this.service.post(`judicial_interpret/search_pro_one`, condition);\r\n }\r\n getSearcherKeywordsFromProCondition(): SearcherKeyword[] {\r\n const condition = this.proCondition;\r\n\r\n const sks: SearcherKeyword[] = [];\r\n for (let i = 0; i < condition.compose.length; i++) {\r\n const compose = condition.compose[i];\r\n const keyword = condition.keyword[i];\r\n\r\n const sk = new SearcherKeyword();\r\n sk.index = i;\r\n sk.compose = ComposeType[compose];\r\n if (sk.compose == null) {\r\n sk.compose = ComposeType.And;\r\n }\r\n sk.kind = null;\r\n sk.keyword = keyword;\r\n sk.disable = keyword.length > 0 ? true : false;\r\n sks.push(sk);\r\n }\r\n\r\n return sks;\r\n }\r\n\r\n\r\n\r\n\r\n\r\n // getSimpleSearchTypeCourtList(): string[] {\r\n // const dict: { [key: string]: JudicialInterpretCourtId[] } = {};\r\n // Object.keys(this.blocks)\r\n // .forEach(k => {\r\n // const block: JudicialInterpretCaseTypeCourtBlock = this.blocks[k];\r\n // dict[block.type] = block.getCourtIdList();\r\n // });\r\n\r\n // const simpleSearchCourtIdStringList: string[] = [];\r\n\r\n // let index = 0;\r\n // while (true) {\r\n // let allNull = true;\r\n // Object.keys(dict).forEach(typeIdName => {\r\n // const list = dict[typeIdName];\r\n // if (list[index] != null) {\r\n // simpleSearchCourtIdStringList.push(JudicialInterpretCourtId[list[index]]);\r\n // allNull = false;\r\n // }\r\n // });\r\n\r\n // if (allNull) {\r\n // break;\r\n // }\r\n // index++;\r\n // }\r\n\r\n // return simpleSearchCourtIdStringList;\r\n // }\r\n // getSimpleSearchTypeCountCourtList(): JudicialInterpretCourtCount[] {\r\n // const dict: { [key: number]: JudicialInterpretCourtCount[] } = {};\r\n // Object.keys(this.blocks)\r\n // .forEach(k => {\r\n // const block: JudicialInterpretCaseTypeCourtBlock = this.blocks[k];\r\n // const type = block.type;\r\n // // const typeString = JudicialInterpretCaseType[block.type];\r\n\r\n // const courtIdList = block.getCourtIdList();\r\n // dict[type] = courtIdList.map(cid => JudicialInterpretCourtCount.create(type, cid));\r\n // });\r\n\r\n // const list: JudicialInterpretCourtCount[] = [];\r\n\r\n // let maxLength = 0;\r\n // for (const key of Object.keys(dict)) {\r\n // const length = dict[key].length;\r\n // if (maxLength < length) {\r\n // maxLength = length;\r\n // }\r\n // }\r\n\r\n // for (let i = 0; i < maxLength; i++) {\r\n // Object.keys(dict).forEach(typeNumberString => {\r\n // const type = parseInt(typeNumberString, 10);\r\n // const courtList = dict[type];\r\n\r\n // if (courtList[i] != null) {\r\n // list.push(courtList[i]);\r\n // }\r\n // });\r\n // }\r\n\r\n // // let index = 0;\r\n // // while (true) {\r\n // // let allNull = true;\r\n\r\n\r\n // // if (allNull) {\r\n // // break;\r\n // // }\r\n // // index++;\r\n // // }\r\n\r\n // return list;\r\n // }\r\n // getCourtIdOrderByBlock(): JudicialInterpretCourtId[] {\r\n // const result: JudicialInterpretCourtId[] = [];\r\n // Object.keys(this.blocks)\r\n // .forEach(key => {\r\n // result.push(...this.blocks[key].getCourtIdList());\r\n // });\r\n // return result;\r\n // }\r\n\r\n // enableResultMode(): void {\r\n // this.resultMode = true;\r\n // }\r\n // disableResultMode(): void {\r\n // this.resultMode = false;\r\n // this.condition = null;\r\n // }\r\n\r\n\r\n // enableSearchPro(condition: JudicialInterpretCondition): void {\r\n // // 設定搜尋條件\r\n // this.condition = condition;\r\n // this.isProMode = true;\r\n\r\n // this.condition.page_index = 1;\r\n // this.condition.per_page_amount = 20;\r\n\r\n // // 開啟結果頁面 -> 初始化中搜尋\r\n // this.enableResultMode();\r\n // }\r\n // enableSearchSimple(keyword: string): void {\r\n // // 設定搜尋條件\r\n // this.condition = new JudicialInterpretCondition();\r\n // this.condition.search_keywords[0].keyword = keyword;\r\n // this.isProMode = false;\r\n\r\n // this.condition.page_index = 1;\r\n // this.condition.per_page_amount = 20;\r\n\r\n // // 開啟結果頁面 -> 初始化中搜尋\r\n // this.enableResultMode();\r\n // }\r\n\r\n // /** 清除檢索結果清單 */\r\n // clearSearchResult(): void {\r\n // this.disableResultMode();\r\n\r\n // this.condition = null;\r\n // }\r\n\r\n // /** 標題轉換 */\r\n // noteTitleBase(note: JudicialInterpretCase): string {\r\n // const courtIdString = CourtId[note.court_id];\r\n // const caseTypeName = this.courtIdCaseTypeName[courtIdString];\r\n // const levelName = this.courtLevelName[courtIdString];\r\n // const courtName = this.courtIdName[courtIdString];\r\n\r\n // return courtName + ' , ';\r\n // }\r\n // noteJudgmentTitleBase(note: JudicialInterpretCase): string {\r\n // const courtIdString = CourtId[note.court_id];\r\n // const caseTypeName = this.courtIdCaseTypeName[courtIdString];\r\n // const levelName = this.courtLevelName[courtIdString];\r\n // const courtName = this.courtIdName[courtIdString];\r\n\r\n // return levelName + ' , ' + courtName + ' , ';\r\n // }\r\n // noteTitleCaseName(note: JudicialInterpretCase): string {\r\n // return (note.case_data.case_year != null ? note.case_data.case_year + '年度' : '')\r\n // + (note.case_data.case_word != null ? note.case_data.case_word + '字' : '')\r\n // + (note.case_data.case_number != null ? '第' + note.case_data.case_number + '號' : '')\r\n // // + ' , ' + (this.propertyName[note.propertyString])\r\n // ;\r\n // }\r\n // noteTitle_ctypeABC(note: JudicialInterpretCase): string { return this.noteTitleBase(note) + this.noteTitleCaseName(note); }\r\n // noteTitle_ctypeD(note: JudicialInterpretCase): string { return this.noteTitleBase(note) + this.noteTitleCaseName(note); } // 司法解釋 (不分民刑事) -- 大法官解釋\r\n // noteTitle_ttypeX(note: JudicialInterpretCase): string { return this.noteTitleBase(note) + this.noteTitleCaseName(note); } // 大法官不受理案件 (不分民刑事) -- 大法官不受理案件\r\n // noteTitle_jtypeA(note: JudicialInterpretCase): string { return this.noteTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; } // 最高法院判例 -- 最高法院民事判例\r\n // noteTitle_jtypeB(note: JudicialInterpretCase): string { return this.noteTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; } // 最高法院判例 -- 最高法院刑事判例\r\n // noteTitle_jtypeE(note: JudicialInterpretCase): string { return this.noteTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; } // 最高行政法院判例(不分民刑事) -- 最高行政法院判例\r\n // noteTitle_jtypeI(note: JudicialInterpretCase): string { return this.noteJudgmentTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; } // 地方法院裁判 -- 地方法院民事裁判\r\n // noteTitle_jtypeG(note: JudicialInterpretCase): string { return this.noteJudgmentTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; } // 高等法院裁判 -- 高等法院民事裁判\r\n // noteTitle_jtypeC(note: JudicialInterpretCase): string { return this.noteJudgmentTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; } // 最高法院裁判 -- 最高法院民事裁判\r\n // noteTitle_jtypeO(note: JudicialInterpretCase): string { return this.noteJudgmentTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; } // 智慧財產法院裁判(民刑事) -- 智慧財產法院民事裁判\r\n // noteTitle_jtypeJ(note: JudicialInterpretCase): string { return this.noteJudgmentTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; } // 地方法院裁判 -- 地方法院刑事裁判\r\n // noteTitle_jtypeH(note: JudicialInterpretCase): string { return this.noteJudgmentTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; } // 高等法院裁判 -- 高等法院刑事裁判\r\n // noteTitle_jtypeD(note: JudicialInterpretCase): string { return this.noteJudgmentTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; } // 最高法院裁判 -- 最高法院刑事裁判\r\n // noteTitle_jtypeP(note: JudicialInterpretCase): string { return this.noteJudgmentTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; } // 智慧財產法院裁判(民刑事) -- 智慧財產法院刑事裁判\r\n // noteTitle_jtypeK(note: JudicialInterpretCase): string { return this.noteJudgmentTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; } // 高等行政法院裁判 (不分民刑事) -- 高等行政法院裁判\r\n // noteTitle_jtypeF(note: JudicialInterpretCase): string { return this.noteJudgmentTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; } // 最高行政法院裁判(不分民刑事) -- 最高行政法院裁判\r\n // noteTitle_jtypeQ(note: JudicialInterpretCase): string { return this.noteJudgmentTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; } // 智慧財產法院裁判 (行政) -- 智慧財產法院行政裁判\r\n // noteTitle_jtypeU(note: JudicialInterpretCase): string { return this.noteJudgmentTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; } // 最高法院具參考價值裁判 -- 最高法院民事庭具參考價值裁判\r\n // noteTitle_jtypeV(note: JudicialInterpretCase): string { return this.noteJudgmentTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; } // 最高法院具參考價值裁判 -- 最高法院刑事庭具參考價值裁判\r\n // noteTitle_jtypeS(note: JudicialInterpretCase): string { return this.noteJudgmentTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; } // 高院暨所屬法院具參考價值裁判 -- 高院暨所屬法院民事庭具參考價值裁判\r\n // noteTitle_jtypeT(note: JudicialInterpretCase): string { return this.noteTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; } // 高院暨所屬法院具參考價值裁判 -- 高院暨所屬法院刑事庭具參考價值裁判\r\n // noteTitle_dtypeA(note: JudicialInterpretCase): string { return this.noteJudgmentTitleBase(note) + note.case_data.meet_title; } // 最高法院決議 -- 最高法院民事決議\r\n // noteTitle_dtypeB(note: JudicialInterpretCase): string { return this.noteJudgmentTitleBase(note) + note.case_data.meet_title; } // 最高法院決議 -- 最高法院刑事決議\r\n // noteTitle_dtypeC(note: JudicialInterpretCase): string { return this.noteJudgmentTitleBase(note) + note.case_data.meet_title; } // 最高行政法院聯席會議決議 -- 最高行政法院聯席會議決議\r\n // noteTitle_jtypeL(note: JudicialInterpretCase): string { return this.noteTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; } // 公懲會議決 (不分民刑事) -- 公懲會議決\r\n // noteTitle_qtypeA(note: JudicialInterpretCase): string { return this.noteTitleBase(note) + note.case_data.meet_title; } // 法律問題座談 -- 民事法律問題座談\r\n // noteTitle_qtypeB(note: JudicialInterpretCase): string { return this.noteTitleBase(note) + note.case_data.meet_title; } // 法律問題座談 -- 刑事法律問題座談\r\n // noteTitle_qtypeC(note: JudicialInterpretCase): string { return this.noteTitleBase(note) + note.case_data.meet_title; } // 行政法律問題座談(不分民刑事) -- 行政法律問題座談\r\n // noteTitle_qtypeD(note: JudicialInterpretCase): string { return this.noteTitleBase(note) + note.case_data.meet_title; } // 公懲法律問題座談(不分民刑事) -- 公懲法律問題座談\r\n // noteTitle_jtype1A(note: JudicialInterpretCase): string { return this.noteTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; }\r\n // noteTitle_jtype1B(note: JudicialInterpretCase): string { return this.noteTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; }\r\n // noteTitle_jtype1E(note: JudicialInterpretCase): string { return this.noteTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; }\r\n // noteTitle_jtype21(note: JudicialInterpretCase): string { return this.noteTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; }\r\n // noteTitle_jtype22(note: JudicialInterpretCase): string { return this.noteTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; }\r\n // noteTitle_jtype23(note: JudicialInterpretCase): string { return this.noteTitleBase(note) + this.noteTitleCaseName(note) + ' , ' + note.case_data.reason; }\r\n // noteTitle_qtypeG(note: JudicialInterpretCase): string { return this.noteTitleBase(note) + note.case_data.meet_title; } // 公懲法律問題座談(不分民刑事) -- 公懲法律問題座談\r\n}\r\n","import { Injectable, ComponentFactoryResolver, Injector, ApplicationRef, ComponentRef } from '@angular/core';\r\nimport { SuccesTipComponent } from './succes-tip.component';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class SuccessTipOpenerService {\r\n constructor(\r\n private componentFactoryResolver: ComponentFactoryResolver,\r\n private injector: Injector,\r\n private appRef: ApplicationRef,\r\n // private popupManagerService: PopupManagerService\r\n ) { }\r\n buildPopup(): ComponentRef {\r\n const component = this.componentFactoryResolver\r\n .resolveComponentFactory(SuccesTipComponent)\r\n .create(this.injector);\r\n\r\n component.instance.componentRef = component;\r\n\r\n component.location.nativeElement.setAttribute('poptip', '');\r\n document.body.appendChild(component.location.nativeElement);\r\n\r\n this.appRef.attachView(component.hostView);\r\n\r\n return component;\r\n }\r\n\r\n showPopTip(text: string, time: string = '1000ms'): ComponentRef {\r\n const component = this.buildPopup();\r\n component.instance.play(text, time);\r\n return component;\r\n }\r\n}\r\n"],"names":["JudicialInterpretResultTypeButton","getCountText","count","toLocaleString","create","type","name","className","icon","iconSelected","button","loading","finish","countRead","JudicialInterpretSearchResultCaseType","SearcherKeyword","ComposeType","JudicialInterpretSearchService","constructor","service","All","tb","rType","Court","Grand","Precedent","Resolution","Judgment","Discipline","Seminar","Unified","Solve","Yuan","YuanSolve","Explain","Reject","XF38","XF39","XF40","JudgmentSeuperme","Reference","Execute","onSubmitSimpleSearch","keyword","simpleKeyword","isProMode","enableConditionPage","enableResultPage","onSubmitProSearch","condition","proCondition","onBackConditionPage","getSimpleSearchCourtCatalogCount","post","getSimpleSearchCourtCatalogNote","getProSearchCourtGroupCount","searchCourtCountMultiObserver","getProSearchCourtGroupNote","getSearcherKeywordsFromProCondition","sks","i","compose","length","sk","index","And","kind","disable","push","i0","factory","providedIn","SuccesTipComponent","SuccessTipOpenerService","componentFactoryResolver","injector","appRef","buildPopup","component","resolveComponentFactory","instance","componentRef","location","nativeElement","setAttribute","document","body","appendChild","attachView","hostView","showPopTip","text","time","play"],"sourceRoot":"webpack:///"}