1import{a as ct}from"./chunk-63PEZHU5.js";import{a as pt,b as dt}from"./chunk-HUPXWZNX.js";import{a as lt}from"./chunk-IRX2UQRU.js";import{a as A}from"./chunk-YSYXTRXR.js";import{a as st}from"./chunk-JGBTN77D.js";import{a as at}from"./chunk-H4I744GR.js";import{a as it}from"./chunk-KSO3UKYL.js";import"./chunk-2LE2V3KN.js";import{a as Ye,d as tt}from"./chunk-D73H5ZTT.js";import"./chunk-B2BV7KNG.js";import"./chunk-7Y4DC6WN.js";import"./chunk-GDCKFAMC.js";import"./chunk-ESPKRLLI.js";import"./chunk-VHMHIKEP.js";import"./chunk-WQT44MD7.js";import"./chunk-HDADURMY.js";import"./chunk-A66S5AM4.js";import"./chunk-LW7AVU7H.js";import"./chunk-MRDLY4JA.js";import"./chunk-FYFZUKRZ.js";import{a as et}from"./chunk-4LNBNE7X.js";import{a as ot,b as Y}from"./chunk-UNJN2P5H.js";import{a as rt}from"./chunk-BDFM6GPP.js";import{a as nt}from"./chunk-FI245XCG.js";import{a as Le}from"./chunk-3PGXJH2F.js";import"./chunk-RLXK4TFM.js";import{a as Je}from"./chunk-3MG77L7T.js";import{a as Ke,b as Xe}from"./chunk-FJGF5R7Y.js";import{a as X}from"./chunk-3EK2XDFV.js";import"./chunk-CWPG7W6Y.js";import"./chunk-QIDMIG5F.js";import"./chunk-GJF5AC5O.js";import{a as B}from"./chunk-QIMEWAXD.js";import{c as ne,d as We}from"./chunk-F42XWEKX.js";import"./chunk-CQRPW3OH.js";import"./chunk-6YN65EQF.js";import"./chunk-EXZL5JME.js";import"./chunk-DVEBNUMW.js";import"./chunk-VKGM3GRO.js";import"./chunk-IAJ7HYWP.js";import"./chunk-QQBXRA6O.js";import"./chunk-ECYHJRYG.js";import"./chunk-UZT2ORD5.js";import"./chunk-7A7SMHFX.js";import"./chunk-7QJME62Q.js";import"./chunk-RSERUU27.js";import{a as K}from"./chunk-U6VOGTHJ.js";import{h as $e}from"./chunk-AIH5L73K.js";import"./chunk-RTIM7WIE.js";import{a as d}from"./chunk-MQIMP3HX.js";import{a as O}from"./chunk-EJRNXZVZ.js";import{c as Ae,e as U,f as Ve}from"./chunk-4NFJFEMR.js";import{ma as qe,na as W,za as Ee}from"./chunk-R2BOG6GE.js";import{b as Be}from"./chunk-JMH2JNUC.js";import{a as J}from"./chunk-ODFCSELV.js";import{a as T}from"./chunk-RKBTUKSQ.js";import"./chunk-CIVLAGF7.js";import{e as Fe}from"./chunk-4K6EZXBI.js";import"./chunk-GBF3WBMW.js";import"./chunk-SINYUQ3K.js";import{a as F}from"./chunk-CHFMLLSJ.js";import{c as Ie,e as Oe,f as Me,k as Ne,l as L}from"./chunk-LVGX4PN4.js";import{d as Ze}from"./chunk-DHCDKQXP.js";import{a as je,g as He,n as Ue,r as ze,t as Ge,u as Qe}from"./chunk-WVPYIY4K.js";import"./chunk-ZY44SODE.js";import{o as Re,s as Pe}from"./chunk-IWIKS42K.js";import{Ac as Ce,Bc as b,Ca as te,G as C,Lc as H,Nb as $,Oc as k,Pc as E,Qb as y,Qc as De,Rb as S,Sb as M,T as le,U as pe,Ub as N,V as de,Vb as q,Wb as p,X as ce,Xa as ge,Xb as a,Xc as v,Yb as s,Yc as x,Z as l,Zb as m,bb as r,bc as ve,cc as xe,da as R,dc as _e,ea as P,ec as I,gd as ke,ic as w,kc as g,la as ue,nc as ye,oc as Se,pc as G,qc as Q,ra as u,sb as D,tb as fe,td as ie,u as se,ua as me,ud as Te,wb as he,xb as z,xc as we,yb as be,yc as j,za as V,zc as f}from"./chunk-A6TPBFUB.js";import{a as re,b as ae}from"./chunk-VFRXZJJG.js";var ut=` 2 .p-toggleswitch { 3 display: inline-block; 4 width: dt('toggleswitch.width'); 5 height: dt('toggleswitch.height'); 6 } 7 8 .p-toggleswitch-input { 9 cursor: pointer; 10 appearance: none; 11 position: absolute; 12 top: 0; 13 inset-inline-start: 0; 14 width: 100%; 15 height: 100%; 16 padding: 0; 17 margin: 0; 18 opacity: 0; 19 z-index: 1; 20 outline: 0 none; 21 border-radius: dt('toggleswitch.border.radius'); 22 } 23 24 .p-toggleswitch-slider { 25 cursor: pointer; 26 width: 100%; 27 height: 100%; 28 border-width: dt('toggleswitch.border.width'); 29 border-style: solid; 30 border-color: dt('toggleswitch.border.color'); 31 background: dt('toggleswitch.background'); 32 transition: 33 background dt('toggleswitch.transition.duration'), 34 color dt('toggleswitch.transition.duration'), 35 border-color dt('toggleswitch.transition.duration'), 36 outline-color dt('toggleswitch.transition.duration'), 37 box-shadow dt('toggleswitch.transition.duration');
38 border-radius: dt('toggleswitch.border.radius'); 39 outline-color: transparent; 40 box-shadow: dt('toggleswitch.shadow'); 41 } 42 43 .p-toggleswitch-handle { 44 position: absolute; 45 top: 50%; 46 display: flex; 47 justify-content: center; 48 align-items: center; 49 background: dt('toggleswitch.handle.background'); 50 color: dt('toggleswitch.handle.color'); 51 width: dt('toggleswitch.handle.size'); 52 height: dt('toggleswitch.handle.size'); 53 inset-inline-start: dt('toggleswitch.gap'); 54 margin-block-start: calc(-1 * calc(dt('toggleswitch.handle.size') / 2)); 55 border-radius: dt('toggleswitch.handle.border.radius'); 56 transition: 57 background dt('toggleswitch.transition.duration'), 58 color dt('toggleswitch.transition.duration'), 59 inset-inline-start dt('toggleswitch.slide.duration'), 60 box-shadow dt('toggleswitch.slide.duration'); 61 } 62 63 .p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-slider { 64 background: dt('toggleswitch.checked.background'); 65 border-color: dt('toggleswitch.checked.border.color'); 66 } 67 68 .p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-handle { 69 background: dt('toggleswitch.handle.checked.background'); 70 color: dt('toggleswitch.handle.checked.color'); 71 inset-inline-start: calc(dt('toggleswitch.width') - calc(dt('toggleswitch.handle.size') + dt('toggleswitch.gap'))); 72 } 73 74 .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-slider { 75 background: dt('toggleswitch.hover.background'); 76 border-color: dt('toggleswitch.hover.border.color'); 77 } 78 79 .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-handle { 80 background: dt('toggleswitch.handle.hover.background'); 81 color: dt('toggleswitch.handle.hover.color'); 82 } 83 84 .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-slider { 85 background: dt('toggleswitch.checked.hover.background'); 86 border-color: dt('toggleswitch.checked.hover.border.color'); 87 } 88 89 .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-handle { 90 background: dt('toggleswitch.handle.checked.hover.background'); 91 color: dt('toggleswitch.handle.checked.hover.color'); 92 } 93 94 .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:focus-visible) .p-toggleswitch-slider { 95 box-shadow: dt('toggleswitch.focus.ring.shadow'); 96 outline: dt('toggleswitch.focus.ring.width') dt('toggleswitch.focus.ring.style') dt('toggleswitch.focus.ring.color'); 97 outline-offset: dt('toggleswitch.focus.ring.offset'); 98 } 99 100 .p-toggleswitch.p-invalid > .p-toggleswitch-slider { 101 border-color: dt('toggleswitch.invalid.border.color'); 102 } 103 104 .p-toggleswitch.p-disabled { 105 opacity: 1; 106 } 107 108 .p-toggleswitch.p-disabled .p-toggleswitch-slider { 109 background: dt('toggleswitch.disabled.background'); 110 } 111 112 .p-toggleswitch.p-disabled .p-toggleswitch-handle { 113 background: dt('toggleswitch.handle.disabled.background'); 114 } 115`;var yt=["handle"],St=["input"],wt=t=>({checked:t});function Ct(t,n){t&1&&_e(0)}function Dt(t,n){if(t&1&&be(0,Ct,1,0,"ng-container",3),t&2){let e=g();p("ngTemplateOutlet",e.handleTemplate||e._handleTemplate)("ngTemplateOutletContext",De(2,wt,e.checked()))}}var kt=` 116 ${ut} 117 118 p-toggleswitch.ng-invalid.ng-dirty > .p-toggleswitch-slider { 119 border-color: dt('toggleswitch.invalid.border.color'); 120 } 121`,Tt={root:{position:"relative"}},Rt={root:({instance:t})=>["p-toggleswitch p-component",{"p-toggleswitch p-component":!0,"p-toggleswitch-checked":t.checked(),"p-disabled":t.$disabled(),"p-invalid":t.invalid()}],input:"p-toggleswitch-input",slider:"p-toggleswitch-slider",handle:"p-toggleswitch-handle"},mt=(()=>{class t extends Ee{name="toggleswitch";style=kt;classes=Rt;inlineStyles=Tt;static \u0275fac=(()=>{let e;return function(o){return(e||(e=V(t)))(o||t)}})();static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})();var gt=new ce("TOGGLESWITCH_INSTANCE"),Pt={provide:je,useExisting:le(()=>ft),multi:!0},ft=(()=>{class t extends et{componentName="ToggleSwitch";$pcToggleSwitch=l(gt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=l(U,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}styleClass;tabindex;inputId;readonly;trueValue=!0;falseValue=!1;ariaLabel;size=ke();ariaLabelledBy;autofocus;onChange=new ue;input;handleTemplate;_handleTemplate;focused=!1;_componentStyle=l(mt);templates;onHostClick(e){this.onClick(e)}
121onAfterContentInit(){this.templates.forEach(e=>{e.getType()==="handle"?this._handleTemplate=e.template:this._handleTemplate=e.template})}onClick(e){!this.$disabled()&&!this.readonly&&(this.writeModelValue(this.checked()?this.falseValue:this.trueValue),this.onModelChange(this.modelValue()),this.onChange.emit({originalEvent:e,checked:this.modelValue()}),this.input.nativeElement.focus())}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}checked(){return this.modelValue()===this.trueValue}writeControlValue(e,i){i(e),this.cd.markForCheck()}get dataP(){return this.cn({checked:this.checked(),disabled:this.$disabled(),invalid:this.invalid()})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=V(t)))(o||t)}})();static \u0275cmp=D({type:t,selectors:[["p-toggleswitch"],["p-toggleSwitch"],["p-toggle-switch"]],contentQueries:function(i,o,c){if(i&1&&ye(c,yt,4)(c,qe,4),i&2){let h;G(h=Q())&&(o.handleTemplate=h.first),G(h=Q())&&(o.templates=h)}},viewQuery:function(i,o){if(i&1&&Se(St,5),i&2){let c;G(c=Q())&&(o.input=c.first)}},hostVars:7,hostBindings:function(i,o){i&1&&w("click",function(h){return o.onHostClick(h)}),i&2&&($("data-p-checked",o.checked())("data-p-disabled",o.$disabled())("data-p",o.dataP),we(o.sx("root")),j(o.cn(o.cx("root"),o.styleClass)))},inputs:{styleClass:"styleClass",tabindex:[2,"tabindex","tabindex",Te],inputId:"inputId",readonly:[2,"readonly","readonly",ie],trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",size:[1,"size"],ariaLabelledBy:"ariaLabelledBy",autofocus:[2,"autofocus","autofocus",ie]},outputs:{onChange:"onChange"},features:[k([Pt,mt,{provide:gt,useExisting:t},{provide:Ae,useExisting:t}]),he([U]),z],decls:5,vars:22,consts:[["input",""],["type","checkbox","role","switch",3,"focus","blur","checked","pAutoFocus","pBind"],[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){i&1&&(a(0,"input",1,0),w("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),s(),a(2,"div",2)(3,"div",2),y(4,Dt,1,4,"ng-container"),s()()),i&2&&(j(o.cx("input")),p("checked",o.checked())("pAutoFocus",o.autofocus)("pBind",o.ptm("input")),$("id",o.inputId)("required",o.required()?"":void 0)("disabled",o.$disabled()?"":void 0)("aria-checked",o.checked())("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("name",o.name())("tabindex",o.tabindex),r(2),j(o.cx("slider")),p("pBind",o.ptm("slider")),$("data-p",o.dataP),r(),j(o.cx("handle")),p("pBind",o.ptm("handle")),$("data-p",o.dataP),r(),S(o.handleTemplate||o._handleTemplate?4:-1))},dependencies:[Pe,Re,$e,W,Ve,U],encapsulation:2,changeDetection:0})}return t})(),ht=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=fe({type:t});static \u0275inj=de({imports:[ft,W,W]})}return t})();var It=()=>[];function Ot(t,n){if(t&1&&m(0,"app-shared-tag",13),t&2){let e=n.$implicit;p("label",e.extension)}}function Mt(t,n){if(t&1&&N(0,Ot,1,1,"app-shared-tag",13,M),t&2){let e=g().$implicit;q(e==null||e.content==null||e.content.properties==null?null:e.content.properties.fileMedia)}}function Nt(t,n){if(t&1){let e=I();a(0,"app-shared-card",4),ve(1,5),a(2,"div",6)(3,"div",7)(4,"h4",8),f(5),s()(),a(6,"div",9),y(7,Mt,2,0),a(8,"app-shared-button",10),v(9,"TextResource"),w("onClick",function(){let o=R(e).$implicit,c=g(2);return P(c.openPdfFile(o))}),s()()(),xe(),a(10,"div",11),m(11,"shared-img",12),s()()}if(t&2){let e=n.$implicit,i=g(2);r(4),p("title",e==null||e.content==null||e.content.properties==null?null:e.content.properties.fileName),r(),b(" ",e==null||e.content==null||e.content.properties==null?null:e.content.properties.fileName," "),r(2),S(!(e==null||e.content==null||e.content.properties==null||e.content.properties.fileMedia==null)&&e.content.properties.fileMedia.length?7:-1),r(),p("label",H(x(9,6,i.TextResource.downloadFile))),r(3),p("src","/assets/img/etec-watermark.svg")}}function qt(t,n){if(t&1&&(a(0,"div",3),N(1,Nt,12,8,"app-shared-card",4,M),s()),t&2){let e=g();r(),q(e.filteredFiles)}}var Z=class t{TextResource=d;pageData=u(void 0);set _pageData(n){this.pageData.set(n)}_dataAndReportsService=l(A);_unsubscribeService=l(T);_websiteService=l(J);_platformService=l(F);seoContentService=l(B);assetsURL=L?.assetsURL;breadcrumbData=u([]);isLoading=u(!1);ngOnInit(){this.getPage()}get filteredFiles(){let n=this.pageData();return n?.properties?.files?.items?n.properties.files.items:[]}getPage(){this.isLoading.set(!0),this._dataAndReportsService.getOpenDataProcedures().pipe(C(()=>this.isLoading.set(!1)),this._unsubscribeService.takeUntilDestroy()).subscribe({next:n=>{n&&(this.pageData.set(n),this.seoContentService.updatePageMetaData(this.pageData()?.properties),this.breadcrumbData.set([{label:this.pageData()?.properties?.pageTitle}]))}})}openPdfFile(n){if(!this._platformService.isServer()&&n?.content?.properties?.fileMedia&&n.content.properties.fileMedia.length>0){let e=n.content.properties.fileMedia[0],i=`${this.assetsURL}${e.url}`;window.open(i,"_blank")}}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=D({type:t,selectors:[["app-open-data-procedures"]],inputs:{_pageData:[0,"pageData","_pageData"]}
121,features:[k([T])],decls:4,vars:4,consts:[[1,"lg:container"],[1,"flex","flex-col","gap-8"],[3,"title","styleClass"],[1,"grid","lg:grid-cols-3","sm:grid-cols-2","md:gap-6","gap-4"],["styleClass","border border-border-neutral-primary rounded-2xl h-full relative overflow-hidden"],["body",""],[1,"flex","flex-col","justify-between","gap-4","h-full"],[1,"flex","justify-between","gap-2"],[1,"text-ellipsis","whitespace-normal","text-link-primary-default","lg:text-xl","md:text-lg","text-base","lg:font-medium","font-semibold","lg:leading-[30px]","md:leading-8","leading-6",3,"title"],[1,"flex","flex-col","justify-between","gap-4"],["icon","icon-arrow-up-left-01 ltr:rotate-90","severity","secondary","styleClass","",3,"onClick","label"],[1,"absolute","md:top-28","top-[104px]","end-[-15px]","z-10","opacity-30"],["styleClass","h-16 w-[99px]","alt","etec-watermark",3,"src"],["severity","secondary","styleClass","text-xs font-medium leading-[18px]",3,"label"]],template:function(e,i){if(e&1&&(a(0,"div",0)(1,"section",1),m(2,"app-shared-title",2),y(3,qt,3,0,"div",3),s()()),e&2){let o,c;r(2),p("title",((o=i.pageData())==null||o.properties==null?null:o.properties.pageTitle)??"")("styleClass","flex ps-4 text-2xl font-semibold text-text-default border-s-[5px] solid border-border-primary"),r(),S((((c=i.pageData())==null||c.properties==null||c.properties.files==null?null:c.properties.files.items)||E(3,It)).length>0?3:-1)}},dependencies:[X,Ge,ht,ot,K,Je,Y,rt,O],encapsulation:2,changeDetection:0})};var Et=()=>["./follow"],Ft=()=>["./home"],Lt=()=>[];function Bt(t,n){if(t&1&&(a(0,"div",7)(1,"div",14)(2,"div",15)(3,"h2",16),f(4),s(),a(5,"p",17),f(6),s()()(),m(7,"app-shared-button",18),v(8,"TextResource"),s()),t&2){let e=n.$implicit,i=g(3);r(4),b(" ",e==null||e.content==null||e.content.properties==null?null:e.content.properties.sectionTitle," "),r(2),b(" ",e==null||e.content==null||e.content.properties==null?null:e.content.properties.sectionSubTitle," "),r(),p("label",x(8,5,i.TextResource.followPreviousRequest))("severity","contrast")("routerLink",E(7,Et))}}function At(t,n){if(t&1){let e=I();a(0,"div",0),N(1,Bt,9,8,"div",7,M),a(3,"div",8)(4,"p",9),f(5),v(6,"TextResource"),a(7,"span",10),f(8,"*"),s(),f(9),v(10,"TextResource"),s(),a(11,"form",11),w("ngSubmit",function(){R(e);let o=g(2);return P(o.onSubmit())}),m(12,"formly-form",12)(13,"app-shared-button",13),v(14,"TextResource"),s()()()}if(t&2){let e,i=g(2);r(),q((e=i.pageData())==null||e.properties==null||e.properties.pageSections==null?null:e.properties.pageSections.items),r(4),b(" ",x(6,8,i.TextResource.fieldsMarkedWith)," "),r(4),b(" ",x(10,10,i.TextResource.mandatoryFields)),r(2),p("formGroup",i.formly),r(),p("form",i.formly)("fields",i.formlyFields())("model",i.formlyModel()),r(),p("loading",i.isSubmitted())("label",x(14,12,i.TextResource.submitApplication))}}function Vt(t,n){if(t&1){let e=I();a(0,"div",0),m(1,"img",19),a(2,"div",20)(3,"h4",21),f(4),v(5,"TextResource"),s(),a(6,"p",22),f(7),v(8,"TextResource"),s()(),a(9,"div",23)(10,"div",24)(11,"p",9),f(12),v(13,"TextResource"),s(),a(14,"p",25),f(15),s()(),a(16,"app-shared-button",26),w("click",function(){R(e);let o=g(2);return P(o.copyTicketNumber())}),s()(),m(17,"app-shared-button",27),v(18,"TextResource"),s()}if(t&2){let e=g(2);r(4),b(" ",x(5,8,e.TextResource.requestSentSuccessfully)," "),r(3),b(" ",x(8,10,e.TextResource.requestSentSuccessfullyMessage)," "),r(5),b(" ",x(13,12,e.TextResource.ticketNumber)," "),r(3),b(" ",e.ticketNumber()," "),r(),p("severity","contrast")("outlined",!1),r(),p("label",x(18,14,e.TextResource.goHomePage))("routerLink",E(16,Ft))}}function $t(t,n){if(t&1&&(a(0,"section",0)(1,"div",2),m(2,"div",3),a(3,"div",4),m(4,"app-shared-tag",5)(5,"app-shared-button",6),v(6,"TextResource"),s()(),y(7,At,15,14,"div",0)(8,Vt,19,17,"div",0),s()),t&2){let e,i,o=g();r(2),p("innerHTML",(e=o.pageData())==null||e.properties==null||e.properties.contentText==null?null:e.properties.contentText.markup,ge),r(2),p("label",H((i=o.pageData())==null||i.properties==null?null:i.properties.pageSubTitle)),r(),p("label",H(x(6,7,o.TextResource.alternativeChannels)))("link",!1),r(2),S(o.ticketNumber()?8:7)}}function jt(t,n){t&1&&m(0,"p-skeleton",29)}function Ht(t,n){t&1&&(a(0,"div",1)(1,"div",28),N(2,jt,1,0,"p-skeleton",29,M),s()()),t&2&&(r(2),q(E(0,Lt).constructor(20)))}var ee=class t extends Ye{_dataAndReportsStateService=l(st);_dataAndReportsService=l(A);isLoading=u(!1);pageData=u(void 0);TextResource=d;breadcrumbData=u([]);ticketTypes=u([]);countryCodes=u([]);assetsURL=L?.assetsURL;ticketNumber=u("");_pagesService=l(lt);_websiteService=l(Be);_ticketsService=l(pt);dialogService=l(ne);_textResourcePipe=l(O);_ticketStateService=l(dt);
121_toasterNotificationService=l(Le);_platformService=l(F);seoContentService=l(B);ngOnInit(){this.initForm(),this.getPage()}signalEffect=me(()=>{this._ticketStateService.resendOTP&&this.resendOTP()});initForm(){this.formlyFields.set([{fieldGroupClassName:"grid md:grid-cols-2 grid-cols-1 md:gap-8 gap-4",fieldGroup:[{key:"name",type:"input-icon",props:{label:this._textResourcePipe.transform(d.fullName),required:!0,icon:"icon-user",placeholder:this._textResourcePipe.transform(d.fullName)},validators:{validation:["lettersNumbersOnly"]}},{key:"identityNo",type:"input-icon",props:{label:this._textResourcePipe.transform(d.identityNo),icon:"icon-student-card",required:!0},validators:{validation:["idNumber"]}},{key:"gender",type:"select",props:{label:this._textResourcePipe.transform(d.gender),placeholder:this._textResourcePipe.transform(d.gender),options:[{label:this._textResourcePipe.transform(d.male),value:"1"},{label:this._textResourcePipe.transform(d.female),value:"2"}],required:!0}},{key:"email",type:"input-icon",props:{label:this._textResourcePipe.transform(d.email),required:!0,icon:"icon-mail",placeholder:this._textResourcePipe.transform(d.email)},validators:{validation:["email"]}},{key:"mobileNo",type:"phone",props:{label:this._textResourcePipe.transform(d.mobileNo),required:!0,changeDetection:te.OnPush}},{key:"extraField1",type:"input-icon",props:{label:this._textResourcePipe.transform(d.affiliateName),required:!0,icon:"icon-building",placeholder:this._textResourcePipe.transform(d.affiliateNamePlaceholder),maxLength:100},validators:{validation:["lettersNumbersOnly"]}},{key:"extraField2",type:"input-icon",props:{label:this._textResourcePipe.transform(d.typeDataRequired),required:!0,icon:"icon-calendar",placeholder:this._textResourcePipe.transform(d.typeDataRequiredPlaceholder),maxLength:100},validators:{validation:["lettersNumbersOnly"]}},{key:"extraField3",type:"input-icon",props:{label:this._textResourcePipe.transform(d.timeFrameData),required:!0,icon:"icon-calendar",placeholder:this._textResourcePipe.transform(d.timeFrameDataPlaceholder),maxLength:100},validators:{validation:["lettersNumbersOnly"]}},{key:"extraField4",type:"input-icon",props:{label:this._textResourcePipe.transform(d.justificationRequest),required:!0,icon:"icon-bubble-chat-question",placeholder:this._textResourcePipe.transform(d.purposeRequestingData),maxLength:2e3},validators:{validation:["lettersNumbersOnly"]}},{className:"md:col-span-2 col-span-1",fieldGroup:[{key:"description",type:"textarea",props:{label:this._textResourcePipe.transform(d.ticketDescription),placeholder:this._textResourcePipe.transform(d.openDataDescriptionPlaceholder),required:!0,rows:3,cols:5,maxLength:4e3,changeDetection:te.OnPush},validators:{validation:["lettersNumbersOnly"]}}]}]}])}onSubmit(){if(this.formly.invalid){this.formly.markAllAsTouched();return}this.isSubmitted.set(!0),this.formlyModel.update(i=>(i.ticketType="open_data_request",i));let n=this.formlyModel().mobileNo?.e164Number?.replace("+","")||"",e=ae(re({},this.formlyModel()),{mobileNo:n});this._ticketsService.postTicket(e).pipe(C(()=>this.isSubmitted.set(!1)),this._unsubscribeService.takeUntilDestroy()).subscribe({next:i=>{i?.isSuccess&&i?.responseDetails?.tempRequestId?(this._toasterNotificationService.displaySuccess(i?.responseDetails?.message),this._ticketStateService.tempRequestId=i?.responseDetails?.tempRequestId,this.verifyOtp()):this._toasterNotificationService.displayError(i?.responseDetails?.message)}})}verifyOtp(){this.dialogService.open(ct,{width:"35%",closable:!0,data:{mobileNo:this.formlyModel().mobileNo?.e164Number}}).onClose.subscribe(e=>{e?.isSuccess&&(this.isSubmitted.set(!0),this.ticketNumber.set(e.responseDetails.ticketNumber),this._ticketStateService.tempRequestId=0)})}resendOTP(){this._ticketsService.resendOTP(this._ticketStateService.tempRequestId).pipe(C(()=>this.isSubmitted.set(!1)),this._unsubscribeService.takeUntilDestroy()).subscribe({next:n=>{n?.isSuccess&&(this._toasterNotificationService.displaySuccess(n?.responseDetails?.message),this._ticketStateService.resendOTP=!1)}})}copyTicketNumber(){if(!this._platformService.isServer())if(navigator.clipboard)navigator.clipboard.writeText(this.ticketNumber());else{let n=document.createElement("textarea");n.value=this.ticketNumber(),document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}}getPage(){this.isLoading.set(!0),this._dataAndReportsService.getOpenDataRequest().pipe(C(()=>this.isLoading.set(!1)),this._unsubscribeService.takeUntilDestroy()).subscribe({next:n=>{n&&(this.pageData.set(n),this.seoContentService.updatePageMetaData(this.pageData()?.properties),this.breadcrumbData.set([{label:this.pageData()?.properties?.pageTitle}]))}})}static \u0275fac=(()=>{let n;return function(i){return(n||(n=V(t)))(i||t)}})();static \u0275cmp=D({type:t,selectors:[["app-open-data-request"]],features:[
121k([T,ne]),z],decls:2,vars:1,consts:[[1,"flex","flex-col","gap-8"],[1,"lg:container"],[1,"flex","flex-col","gap-4"],[1,"overflow-hidden","text-base","font-normal","leading-6","md:text-lg","md:leading-7","text-text-primaryParagraph","text-ellipsis",3,"innerHTML"],[1,"flex","flex-col","gap-4","justify-center","items-start","md:flex-row","md:justify-between","md:items-center"],["severity","secondary","styleClass","font-sm font-medium",3,"label"],["icon","icon-trailing-icon","styleClass","font-normal",3,"link","label"],[1,"flex","flex-col","gap-4","justify-between","p-4","rounded-2xl","border","solid","border-border-tertiaryLight","bg-background-tertiary25","md:flex-row","md:items-center"],[1,"flex","flex-col","gap-6","items-start"],[1,"text-base","font-normal","text-text-primaryParagraph"],[1,"font-semibold","text-text-error"],[1,"w-full",3,"ngSubmit","formGroup"],[3,"form","fields","model"],["icon","icon-arrow-long-left ltr:rotate-180","type","submit","styleClass","mt-6 md:w-auto w-full",3,"loading","label"],[1,"flex","flex-row","gap-4"],[1,"flex","flex-col","gap-1","items-start"],[1,"text-base","font-semibold","text-text-default"],[1,"text-sm","font-normal","text-text-primaryParagraph"],["styleClass","whitespace-nowrap md:w-auto !w-full",3,"label","severity","routerLink"],["src","./assets/icons-svg/tick-double.svg","alt","",1,"h-[120px]","w-[120px]"],[1,"flex","flex-col","gap-2","items-center"],[1,"text-2xl","font-bold","leading-8","text-text-default"],[1,"text-lg","font-normal","leading-7","text-text-primaryParagraph"],[1,"flex","gap-4","justify-center","px-4","py-2","rounded-full","bg-background-neutral100"],[1,"flex","gap-2","justify-start","items-center"],[1,"text-base","font-bold","text-text-default"],["icon","icon-copy-01","type","submit","styleClass","bg-background-neutral200 border-none p-2 text-base text-text-default rounded-full",3,"click","severity","outlined"],[3,"label","routerLink"],[1,"mx-4","md:mx-8"],["height","2rem","styleClass","mb-2"]],template:function(e,i){e&1&&y(0,$t,9,9,"section",0)(1,Ht,4,1,"div",1),e&2&&S(i.isLoading()?1:0)},dependencies:[Ne,Me,K,tt,Ue,He,ze,Ze,Qe,Xe,Ke,Y,O],encapsulation:2,changeDetection:0})};function Ut(t,n){if(t&1){let e=I();a(0,"app-shared-breadcrumb",1),m(1,"app-shared-title",2),a(2,"p",3),f(3),s()(),a(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"h2",8),f(9),v(10,"TextResource"),s(),a(11,"app-shared-side-menu",9),w("onSelectItem",function(o){R(e);let c=g();return P(c.onSelectItem(o))}),s()(),a(12,"div",10)(13,"div",11),m(14,"app-shared-title",12),a(15,"p",13),f(16),s(),a(17,"article",14),m(18,"p",15),s()(),a(19,"div",16),m(20,"app-open-data-procedures",17),s(),a(21,"div",18),m(22,"app-open-data-request"),s()()()()()}if(t&2){let e,i,o,c,h,_=g();p("data",_.breadcrumbData()),r(),p("title",((e=_.pageData())==null||e.properties==null?null:e.properties.pageTitle)??""),r(2),b(" ",(i=_.pageData())==null||i.properties==null?null:i.properties.pageSubTitle," "),r(6),Ce(x(10,11,_.TextResource.inThisPage)),r(2),p("menuItems",_.menuItems())("selectedItemInput",_.selectedMenuItem()),r(3),p("title",((o=_.pageData())==null||o.properties==null?null:o.properties.pageTitle)??"")("styleClass","flex ps-4 text-2xl font-semibold text-text-default border-s-[5px] solid border-border-primary"),r(2),b(" ",(c=_.pageData())==null||c.properties==null?null:c.properties.pageSubTitle," "),r(2),p("appSanitizeHtml",(h=_.pageData())==null||h.properties==null||h.properties.contentText==null?null:h.properties.contentText.markup),r(2),p("pageData",_.openDataProceduresPage())}}function zt(t,n){t&1&&m(0,"app-shared-skeleton",0),t&2&&p("num",20)}var vt=class t{_dataAndReportsService=l(A);_unsubscribeService=l(T);_websiteService=l(J);router=l(Oe);route=l(Ie);_platformService=l(F);seoContentService=l(B);_langService=l(Fe);TextResource=d;assetsURL=L?.assetsURL;breadcrumbData=u([]);isLoading=u(!1);pageData=u(void 0);openDataProceduresPage=u(void 0);openDataRequestPage=u(void 0);openDataSupportRequestPage=u(void 0);selectedMenuItem=u(void 0);menuItems=u([]);intersectionObserver;ngOnInit(){this.getPage()}ngAfterViewInit(){this._platformService.isBrowser()&&this.menuItems().length>0&&this.setupIntersectionObserver()}setupIntersectionObserver(){this._platformService.isServer()||(this.intersectionObserver&&this.intersectionObserver.disconnect(),setTimeout(()=>{typeof IntersectionObserver<"u"&&(this.intersectionObserver=new IntersectionObserver(n=>
121{n.forEach(e=>{if(e.isIntersecting){let o=e.target.id.replace("section-","");this.updateSelectedMenuItem(o)}})},{root:null,rootMargin:"-20% 0px -70% 0px",threshold:0}),this.menuItems().forEach(n=>{let e=document.getElementById(`section-${n.id}`);e&&this.intersectionObserver?.observe(e)}))},100))}updateSelectedMenuItem(n){let e=this.menuItems().find(i=>i.id===n);e&&this.selectedMenuItem()?.id!==e.id&&this.selectedMenuItem.set(e)}getPage(){this.isLoading.set(!0);let n=this._dataAndReportsService.getOpenDataAndOffice(),e=this._dataAndReportsService.getOpenDataProcedures(),i=this._dataAndReportsService.getContactOpenData(),o=this._dataAndReportsService.getOpenDataRequest(),c=this._dataAndReportsService.getOpenDataSupportRequest();se([n,e,i,o,c]).pipe(C(()=>this.isLoading.set(!1)),this._unsubscribeService.takeUntilDestroy()).subscribe({next:([h,_,Gt,xt,_t])=>{h&&(this.pageData.set(h),this.seoContentService.updatePageMetaData(this.pageData()?.properties),this.breadcrumbData.set([{label:this.pageData()?.properties?.pageTitle}])),this.openDataProceduresPage.set(_),this.openDataRequestPage.set(xt),this.openDataSupportRequestPage.set(_t),this.generateMenuItems()}})}generateMenuItems(){let n=[];n.push({label:this.pageData()?.properties?.pageTitle??"",icon:"pi pi-home",id:"main-content",data:{type:"main"}});let e=this.openDataProceduresPage();e&&n.push({label:e?.properties?.pageTitle??"\u0627\u0644\u0633\u064A\u0627\u0633\u0627\u062A \u0648\u0627\u0644\u0627\u062C\u0631\u0627\u0621\u0627\u062A",icon:"pi pi-file",id:"procedures-section",data:{type:"child",page:e}});let i=this.openDataRequestPage();i&&n.push({label:i?.properties?.pageTitle??"\u0637\u0644\u0628 \u0628\u064A\u0627\u0646\u0627\u062A \u0645\u0641\u062A\u0648\u062D\u0629",icon:"pi pi-send",id:"open-data-request-section",data:{type:"child",page:i}});let o=this.openDataSupportRequestPage();o&&n.push({label:o?.properties?.pageTitle??"\u0637\u0644\u0628 \u0627\u0644\u062F\u0639\u0645",icon:"pi pi-file",id:"open-data-support-request-section",data:{type:"redirect",route:`/${this._langService.getSelectedLanguage()}/support/tickets`}}),this.menuItems.set(n),setTimeout(()=>{this.setupIntersectionObserver()},200)}onSelectItem(n){if(!this._platformService.isServer()){if(n?.data?.type==="redirect"&&n?.data?.route){this.router.navigate([n.data.route]);return}if(this.selectedMenuItem.set(n),this.intersectionObserver&&this.intersectionObserver.disconnect(),!this._platformService.isServer()){let e=n.id,i=document.getElementById(e);i&&i.scrollIntoView({behavior:"smooth",block:"start"})}setTimeout(()=>{this.setupIntersectionObserver()},1e3)}}ngOnDestroy(){this.intersectionObserver&&this.intersectionObserver.disconnect()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=D({type:t,selectors:[["app-open-data-office"]],features:[k([T])],decls:2,vars:1,consts:[[3,"num"],[3,"data"],[3,"title"],[1,"text-sm","font-normal","leading-5","md:text-base","md:leading-6","text-text-default"],[1,"px-4","py-10","bg-background-white","lg:px-20","md:px-10"],[1,"lg:container"],[1,"grid","grid-cols-1","gap-8","md:grid-cols-4"],[1,"hidden","sticky","top-4","flex-col","gap-2","self-start","md:flex","h-fit"],[1,"text-sm","font-medium","leading-5","text-text-primaryParagraph"],[3,"onSelectItem","menuItems","selectedItemInput"],[1,"flex","flex-col","flex-1","col-span-1","gap-12","md:col-span-3"],["id","main-content"],[3,"title","styleClass"],[1,"mt-4","text-base","font-normal","text-text-primaryParagraph"],[1,"text-lg","text-text-primaryParagraph"],[1,"max-w-none","rounded-lg","prose",3,"appSanitizeHtml"],["id","procedures-section"],[3,"pageData"],["id","open-data-request-section"]],template:function(e,i){e&1&&y(0,Ut,23,13)(1,zt,1,1,"app-shared-skeleton",0),e&2&&S(i.isLoading()?1:0)},dependencies:[X,We,it,at,Z,ee,nt,O],styles:["html[_ngcontent-%COMP%]{scroll-behavior:smooth}.content-area[_ngcontent-%COMP%], #main-content[_ngcontent-%COMP%], #procedures-section[_ngcontent-%COMP%], #contact-section[_ngcontent-%COMP%]{scroll-margin-top:2rem}#main-content[_ngcontent-%COMP%]:last-child, #procedures-section[_ngcontent-%COMP%]:last-child, #contact-section[_ngcontent-%COMP%]:last-child{margin-bottom:0}"],changeDetection:0})};export{vt as OpenDataOfficeComponent};
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.