PageSourceSearch

https://members.ciro.org/1499.bca95d10e2256d18.js

js ciro.org collected 2026-10-06 15:13:40 UTC 4,989 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkVeryConnect=self.webpackChunkVeryConnect||[]).push([[1499],{71499:(K,d,e)=>{e.r(d),e.d(d,{SoftDeleteConfirmModal:()=>Z});var m=e(82668),t=e(14026),i=e(52805),u=e(49037),g=e(19807),E=e(55324),D=e(13449),p=e(98992),M=e(97482),h=e(54074),_=e(64177),C=e(85868),O=e(10218),c=e(3814),P=e(62441),v=e(22009),A=e(50339),f=e(72922),T=e(61958),I=e(37666),U=e(39805),x=e(64683),L=e(27527);function y(o,l){if(1&o){const a=t.EpF();t._UZ(0,"label",11,12),t.TgZ(2,"input",13),t.NdJ("ngModelChange",function(r){t.CHM(a);const s=t.oxw();return t.KtG(s.reason=r)}),t.qZA()}if(2&o){const a=t.MAs(1),n=t.oxw();t.Q6J("autoId",!1)("for",a.id)("translate","whySoftDelete")("tr-placeholders",n.targetCtx),t.xp6(2),t.Q6J("id",a.id)("ngModel",n.reason)("focusOnInit",!0)}}function S(o,l){if(1&o&&(t.TgZ(0,"p",14),t._UZ(1,"i",15),t.TgZ(2,"span"),t._uU(3),t.ALo(4,"applyTrPlaceholders"),t.ALo(5,"translateCount"),t.ALo(6,"tr"),t.qZA(),t.TgZ(7,"span"),t._uU(8),t.ALo(9,"tr"),t.qZA()()),2&o){const a=t.oxw();t.xp6(3),t.AsE("",t.xi3(4,3,t.xi3(5,6,t.lcZ(6,9,"targetHasFiles1"),a.nNotableFiles.n),a.nNotableFiles),";"," ",""),t.xp6(5),t.Oqu(t.xi3(9,11,"targetHasFiles2",a.targetCtx))}}function R(o,l){if(1&o&&t._uU(0),2&o){const a=t.oxw();t.Oqu(a.error.detail)}}function B(o,l){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"tr"),t.qZA(),t._UZ(3,"a",16),t.TgZ(4,"span"),t._uU(5,"."),t.qZA()),2&o){const a=t.oxw();t.xp6(1),t.AsE("",t.lcZ(2,5,"softDeleteHasInvoices"),""," ",""),t.xp6(2),t.Q6J("uiSref","admin.invoicing.list.draft")("uiParams",a.error.detail)("translate","softDeleteViewInvoices")}}let Z=(()=>{class o{constructor(){this.reason="",this.alert=(0,t.f3M)(g.c),this.cdr=(0,t.f3M)(t.sBO),this.ref=(0,t.f3M)(u.UZ),this.tr=(0,t.f3M)(h.D)}cancel(){this.submitting?this.cdr.detectChanges():this.ref.hide()}confirm(a){a?.preventDefault(),this.submitting?this.cdr.detectChanges():(this.submitting=!0,this.error={ty:"none"},this.cdr.markForCheck(),this.target.$drop(this.reason?{params:{reason:this.reason}}:void 0).subscribe({error:r=>{if(this.submitting=!1,this.cdr.markForCheck(),"E_HAS_SENDABLE_INVOICE"===r.error)return void(this.error={detail:{[this.targetCtx.kind]:this.target.id},ty:"sendable_invoice"});if("string"!=typeof r?.error)return void this.alert.negotiate(r);const s=this.tr.getNamespace("soft-delete-err").get(r.error);s&&(this.error={detail:s,ty:"basic"})},next:()=>{this.alert.alertSuccess({key:"softDeleteOk",ns:"soft-delete",placeholders:this.targetCtx}),(0,m.t)(this.subscriber)}}))}ngOnDestroy(){this.subscriber.complete()}ngOnInit(){this.error={ty:"none"};const a=this.fileStats;if(!a)return;const r=["profile-pic","wysiwyg"].reduce((s,b)=>s-(a.categorised[b]??0),a.total);r&&(this.nNotableFiles={n:r,target:this.targetCtx.target})}}return o.\u0275fac=function(a){return new(a||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["tg-soft-delete-user-confirm-modal"]],standalone:!0,features:[t._Bn([],[{provide:M.z,useValue:"soft-delete"}]),t.jDz],decls:16,vars:20,consts:[[3,"hide"],[3,"translate","tr-placeholders"],[1,"modal-body",3,"submit"],[3,"ngIf"],[1,"mt-3",3,"translate","tr-placeholders"],["class","mt-3",4,"ngIf"],[1,"alert","alert-danger","mt-3","hide-empty",3,"ngSwitch"],[3,"ngSwitchCase"],[1,"modal-footer"],[1,"btn","btn-default",3,"disabled","focusOnInit","click.passive"],[1,"btn","btn-primary",3,"disabled","click.passive"],[3,"autoId","for","translate","tr-placeholders"],["idReason","id"],["name","reason",1,"form-control",3,"id","ngModel","focusOnInit","ngModelChange"],[1,"mt-3"],[1,"fa","fa-exclamation-triangle","text-warning"],["target","_blank",3,"uiSref","uiParams","translate"]],template:function(a,n){1&a&&(t.TgZ(0,"tg-modal-header",0),t.NdJ("hide",function(){return n.cancel()}),t._UZ(1,"span",1),t.qZA(),t.TgZ(2,"form",2),t.NdJ("submit",function(s){return n.confirm(s)}),t.YNc(3,y,3,7,"ng-template",3),t._UZ(4,"p",4),t.YNc(5,S,10,14,"p",5),t.TgZ(6,"div",6),t.YNc(7,R,1,1,"ng-template",7),t.YNc(8,B,6,7,"ng-template",7),t.qZA()(),t.TgZ(9,"footer",8)(10,"button",9),t.NdJ("click.passive",function(){return n.cancel()}),t._uU(11),t.ALo(12,"tr"),t.qZA(),t.TgZ(13,"button",10),t.NdJ("click.passive",function(){return n.confirm()}),t._uU(14),t.ALo(15,"tr"),t.qZA()()),2&a&&(t.xp6(1),t.Q6J("translate","confirmSoftDelete")("tr-placeholders",n.targetCtx),t.xp6(2),t.Q6J("ngIf",n.demandReason),t.xp6(1),t.Q6J("translate","softDeleteCommon")("tr-placeholders",n.targetCtx),t.xp6(1),t.Q6J("ngIf",n.nNotableFiles),t.xp6(1),t.Q6J("ngSwitch",n.error.ty),t.xp6(1),t.Q6J("ngSwitchCase","basic"),t.xp6(1),t.Q6J("ngSwitchCase","sendable_invoice"),t.xp6(2),t.Q6J("disabled",n.submitting)("focusOnInit",!n.demandReason),t.xp6(1),t.Oqu(t.xi3(12,14,"close","common")),t.xp6(2),t.Q6J("disabled",n.submitting),t.xp6(1),t.Oqu(t.xi3(15,17,"continue","common")))},dependencies:[E.GlobalModule,_.O5,_.RF,_.n9,C.G,O.P,c.u0,c.k6,P.h,v.a,A.k,f.UISref,f.AnchorUISref,T.y,I.d,U.v,x.H,i.u5,i._Y,i.Fj,i.JJ,i.JL,i.On,i.F,p.b,L.R,D.V],encapsulation:2,changeDetection:0}),o})()}}]);

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.