1import{Ca as W,Cf as ee,Df as te,Ef as ie,Ia as L,Ub as K,Va as y,ad as J,ef as $,ia as j,ja as q,jd as X,lb as z,ma as Q,ne as Z,pd as Y,qb as G}from"./chunk-XKEW5C3F.js";import{$c as A,Ab as m,Bb as C,Cc as p,Dc as _,Fb as w,Lb as f,Ld as N,Ma as O,Nb as s,Qb as k,Ra as n,Sa as H,Ub as S,Vb as I,Wb as V,Zc as D,ac as v,bb as R,cb as T,cc as u,fb as E,ga as P,ib as x,kc as M,lc as b,mc as B,ob as l,qc as U,ra as d,rb as g,sa as c,zb as a}from"./chunk-BZNCKEIH.js";var ne=["collapse"],re=["formViewItem"];function ae(t,h){t&1&&C(0,"r-loading")}function se(t,h){if(t&1){let e=w();a(0,"div")(1,"r-selection-buttons",16),f("change",function(i){d(e);let r=s(2);return c(r.onChangeCategory(i))}),m(),C(2,"br"),m()}if(t&2){let e=s(2);n(),l("data",e.data.categoryItemBtn)("value",e.data.categoryItemBtn[0])("translateTextFields",!0)("vertical",!1)}}function le(t,h){t&1&&(a(0,"r-message",17),v(1),p(2,"tr"),m()),t&2&&(g("success"),n(),u(" ",_(2,3,"*.UpdateSuccess")," "))}function me(t,h){t&1&&(a(0,"r-message",17),v(1),p(2,"tr"),m()),t&2&&(g("error"),n(),u(" ",_(2,3,"*.UpdateError")," "))}function de(t,h){if(t&1){let e=w();a(0,"div")(1,"r-form-view",18,0),p(3,"tr"),f("afterSubmit",function(i){d(e);let r=s(2);return c(r.EndRegistration(i))})("beforeSubmit",function(i){d(e);let r=s(2);return c(r.saveFourm(i))})("actionButton",function(){d(e);let i=s(2);return c(i.closeForm())}),m()()}if(t&2){let e=s(2);n(),k("actionButtonText",_(3,3,"*.Close")),l("formViewItem",e.FormViewItem)("showActionButton",e.CloseFormBtn)}}function ce(t,h){if(t&1){let e=w();a(0,"div",21)(1,"r-button",22),f("click",function(){d(e);let i=s(3);return c(i.AddNewRecord())}),v(2),p(3,"tr"),m()()}t&2&&(n(),l("type","prominent"),n(),u("",_(3,2,"*.AddBtn")," "))}function pe(t,h){if(t&1){let e=w();a(0,"div"),x(1,ce,4,4,"div",19),a(2,"r-collapsed-view",20,1),f("recordAction",function(i){d(e);let r=s(2);return c(r.onRowCommand(i))}),m()()}if(t&2){let e=s(2);n(),l("ngIf",e.NewRecordBtn),n(),l("collapsedViewItem",e.CollapsedViewItem)}}function _e(t,h){if(t&1){let e=w();a(0,"div",3),x(1,ae,1,0,"r-loading",4)(2,se,3,4,"div",4)(3,le,3,5,"r-message",5)(4,me,3,5,"r-message",5)(5,de,4,5,"div",4)(6,pe,4,2,"div",4),a(7,"r-modal",6),B("shownChange",function(i){d(e);let r=s();return b(r.PliliChkModal,i)||(r.PliliChkModal=i),c(i)}),a(8,"div",7)(9,"div",8),C(10,"div",9),p(11,"safeHtml"),a(12,"div",10)(13,"div",11)(14,"r-checkbox",12),B("ngModelChange",function(i){d(e);let r=s();return b(r.Pliliaprov,i)||(r.Pliliaprov=i),c(i)}),m(),a(15,"div",13),v(16),p(17,"tr"),m()(),a(18,"div")(19,"div",14)(20,"div")(21,"r-button",15),f("click",function(){d(e);let i=s();return c(i.ApprovPlili())}),v(22),p(23,"tr"),m()(),a(24,"div")(25,"r-button",15),f("click",function(){d(e);let i=s();return c(i.CloseApprovPlili())}),v(26),p(27,"tr"),m()()()()()()()()()}if(t&2){let e=s();n(),l("ngIf",e.wait),n(),l("ngIf",e.data.categoryItemBtn),n(),l("ngIf",e.UpdateSuccess),n(),l("ngIf",e.UpdateError),n(),l("ngIf",e.FormViewItem),n(),l("ngIf",e.CollapsedViewItem),n(),M("shown",e.PliliChkModal),n(3),l("innerHtml",_(11,16,e.data.plili.pliliMsg),O),n(4),M("ngModel",e.Pliliaprov),n(2),u(" ",_(17,18,"*.Aprov"),""),n(5),g("accent"),n(),u(" ",_(23,20,"*.Continue")," "),n(3),g("accent"),n(),u(" ",_(27,22,"*.Close")," ")}}var F=(()=>{class t extends K{constructor(e){super(e),this.formService=e,this.categorysubject="Request",this.wait=!1,this.NewRecordBtn=!0,this.CloseFormBtn=!1,this.PliliChkModal=!1,this.Pliliaprov=!1,this.UpdateSuccess=!1,this.UpdateError=!1,this.afterInitData=()=>{this.FormViewItem=this.data.formViewItem,this.Category=this.data.categoryItemBtn.find(o=>o.subject=="Request")}}EndRegistration(e){e.response.msg!=null&&this.formService.info(e.response.msg)}onChangeCategory(e){this.PliliChkModal=!1,this.UpdateSuccess=!1,this.UpdateError=!1,this.CloseFormBtn=!1,this.categorysubject!=e.subject&&(this.categorysubject=e.subject,this.Category=e,this.wait=!0,this.formService.post("GetCategoryData",e,o=>{this.wait=!1,this.FormViewItem=o.formViewItem,this.CollapsedViewItem=o.collapsedViewItem,this.NewRecordBtn=this.Category.allowUpdate}))}AddNewRecord(){this.NewRecordBtn=!1,this.CloseFormBtn=!0,this.formService.post("CategoryNewData",this.Category,e=>{this.FormViewItem=e.formViewItem})}closeForm(){this.FormViewItem=void 0,this.NewRecordBtn=this.Category.allowUpdate,this.CloseFormBtn=!1}saveFourm(e){this.UpdateSuccess=!1,this.UpdateError=!1,e.preventDefault=!0,this.categorysub
1ject=="Request"&&this.data.plili.pliliMsg?(this.Pliliaprov=!1,this.submittedForm=e.submittedForm,this.PliliChkModal=!0):(this.wait=!0,this.formService.post("SaveData",{saveRecord:e.submittedForm,resourceCategory:this.Category},o=>{this.wait=!1,this.CollapsedViewItem=o.collapsedViewItem,this.Category.refresh&&this.closeForm(),this.UpdateSuccess=!0}))}ApprovPlili(){this.Pliliaprov?(this.data.plili.aprovDetails=this.Pliliaprov,this.wait=!0,this.formService.post("SaveData",{saveRecord:this.submittedForm,resourceCategory:this.Category,Plili:this.data.plili},e=>{this.UpdateSuccess=!0,this.UpdateError=!1,this.wait=!1})):(this.UpdateSuccess=!1,this.UpdateError=!0),this.PliliChkModal=!1}CloseApprovPlili(){this.UpdateSuccess=!1,this.UpdateError=!0,this.PliliChkModal=!1,this.Pliliaprov=!1}onRowCommand(e){let o=e.sender,i=e.record;switch(o.href.toUpperCase()){case"EDITMKMAVODA":case"EDIT":this.formService.post("CategoryEditData",{Record:e.sender.routeData,resourceCategory:this.Category},r=>{this.FormViewItem=r.formViewItem,this.CloseFormBtn=!0});break}}static{this.\u0275fac=function(o){return new(o||t)(H(y))}}static{this.\u0275cmp=R({type:t,selectors:[["ng-component"]],viewQuery:function(o,i){if(o&1&&(S(ne,7),S(re,5)),o&2){let r;I(r=V())&&(i.collapse=r.first),I(r=V())&&(i.formViewItem=r.first)}},standalone:!1,features:[U([y]),E],decls:3,vars:1,consts:[["formViewItem",""],["collapse",""],["class","position-relative",4,"ngIf"],[1,"position-relative"],[4,"ngIf"],["type","prominent",3,"style",4,"ngIf"],[2,"scrollbar-arrow-color","aquamarine",3,"shownChange","shown"],[1,"plilice-rmd",2,"overflow-y","scroll"],["calss","plilice-rmd-padding"],[3,"innerHtml"],[2,"text-align","center"],[2,"display","inline-flex","text-align","center"],[2,"text-align","center",3,"ngModelChange","ngModel"],[1,"BoldDetails","text-error-light"],[2,"display","inline-flex"],[3,"click"],["textField","name","ngClass","BB",1,"selection-buttons",3,"change","data","value","translateTextFields","vertical"],["type","prominent"],[3,"afterSubmit","beforeSubmit","actionButton","formViewItem","showActionButton","actionButtonText"],["class","btns",4,"ngIf"],[3,"recordAction","collapsedViewItem"],[1,"btns"],[3,"click","type"]],template:function(o,i){o&1&&(C(0,"form-header"),x(1,_e,28,24,"div",2),C(2,"form-footer")),o&2&&(n(),l("ngIf",i.data.formViewItem))},dependencies:[D,A,z,G,L,J,ee,te,Y,$,q,X,j,Z,W,Q],styles:[".btns[_ngcontent-%COMP%]{margin:1rem -1rem}.btns[_ngcontent-%COMP%] r-button[_ngcontent-%COMP%]{margin:0 1rem}@media (min-width: 1024px) and (max-width: 1439px){.plilice-rmd[_ngcontent-%COMP%]{height:calc(100vh - 20rem);width:750px}}@media (min-width: 1440px) and (max-width: 1919px){.plilice-rmd[_ngcontent-%COMP%]{height:calc(100vh - 20rem);width:750px}}@media (min-width: 1920px){.plilice-rmd[_ngcontent-%COMP%]{height:calc(100vh - 20rem);width:750px}}@media (min-width: 600px) and (max-width: 1023px){.plilice-rmd[_ngcontent-%COMP%]{height:calc(100vh - 14rem)}}@media (max-width: 599px){.plilice-rmd[_ngcontent-%COMP%]{height:calc(100vh - 14rem)}}.plilice-rmd[_ngcontent-%COMP%] plilice-rmd-padding[_ngcontent-%COMP%]{padding:4pt}"]})}}return t})();var he=[{path:"",component:F}],ke=(()=>{class t{static{this.entry=F}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=T({type:t})}static{this.\u0275inj=P({imports:[N.forChild(he),ie]})}}return t})();export{ke as ShlnOvedHoraaModule};
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.