PageSourceSearch

https://members.myiep.uk/1970.ae01007dcee7265c.js

js myiep.uk collected 2026-10-04 08:45:57 UTC 4,885 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkVeryConnect=self.webpackChunkVeryConnect||[]).push([[1970],{61970:(nt,v,e)=>{e.r(v),e.d(v,{AdminLegalModule:()=>g,AdminPrivacyPolicyRouteModule:()=>H,AdminTOSRouteModule:()=>$});var r=e(52805),m=e(72922),u=e(15859),d=e(60611),L=e(80733),h=e(8239),w=e(4962),f=e(50245),Z=e(40697),E=e(64966),p=e(49857),y=e(28095),l=e(74174),P=e(17639),C=e(87638),R=e(45302),S=e(16733),F=e(5296),J=e(89969),O=e(97482),Y=e(51248),t=e(14026),I=e(19807),x=e(64177),U=e(85868),B=e(10218),Q=e(26495),A=e(4678),N=e(62441),V=e(92341),D=e(36635);function b(n,i){if(1&n&&t._UZ(0,"tg-wysiwyg-viewer",9),2&n){const o=t.oxw();t.Q6J("content",o.previewContent)}}function j(n,i){if(1&n&&(t.TgZ(0,"tg-help-block-container"),t._UZ(1,"tg-wysiwyg-editor",10),t.qZA()),2&n){const o=t.oxw();t.xp6(1),t.Q6J("formControl",o.ctrl)("cfg",o.froalaCfg)}}const c="legal.admin";let T=(()=>{class n{constructor(o,a,s,X,K,k,q,_,tt){this.cdr=o,this.template=a,this.froalaCfg=s,this.orgCfg=X,this.routing=K,this.fb=k,this.legalSvc=q,this.alert=_,this.cfgRes=tt,this.previewContent=null,this.saving=!1}get invalid(){return this.ctrl.invalid}ngOnDestroy(){(0,Y.unsubscribeFromAll)(this._sub)}ngOnInit(){this.ctrl=this.fb.control(this.template),this.which=this.routing.current.data.which,this._sub=[]}save(){this.saving||(this.saving=!0,this._sub.push(this.cfgRes.update({id:this.which,value:this.ctrl.value?.trim()||""}).pipe((0,S.d)(()=>this.cfgRes.clearCached.get(this.which)),(0,J.b)({error:()=>{this.alert.alertError({key:`update_err_${this.which}`,ns:c})},next:()=>{this.alert.alertSuccess({key:`update_ok_${this.which}`,ns:c})}}),(0,F.H)("[AdminLegalEdit.save]")).subscribe((0,R.d)(()=>{this.saving=!1,this.cdr.markForCheck()}))))}togglePreview(){this.previewContent=this.previewContent?null:this.legalSvc.replaceMergeFields(this.ctrl.value,this.orgCfg)}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(t.sBO),t.Y36(l.wp),t.Y36(l.zy),t.Y36(l.$z),t.Y36(d.Z),t.Y36(r.QS),t.Y36(y.d),t.Y36(I.c),t.Y36(p.s))},n.\u0275cmp=t.Xpm({type:n,selectors:[["tg-admin-legal-edit"]],features:[t._Bn([{provide:O.z,useValue:c}])],decls:13,vars:8,consts:[[1,"page-header"],[3,"translate"],[1,"btns-container"],[1,"btn","btn-primary",3,"translate","click.passive"],[1,"btn","btn-default",3,"disabled","translate","tr-namespace","click.passive"],[3,"content",4,"ngIf","ngIfElse"],["tplEditor",""],[1,"text-info"],[1,"fa","fa-fw","fa-info-circle"],[3,"content"],[3,"formControl","cfg"]],template:function(o,a){if(1&o&&(t.TgZ(0,"header",0),t._UZ(1,"h2",1),t.qZA(),t.TgZ(2,"div",2)(3,"button",3),t.NdJ("click.passive",function(){return a.togglePreview()}),t.qZA(),t.TgZ(4,"button",4),t.NdJ("click.passive",function(){return a.save()}),t.qZA()(),t.TgZ(5,"tg-panel")(6,"tg-panel-body"),t.YNc(7,b,1,1,"tg-wysiwyg-viewer",5),t.qZA()(),t.YNc(8,j,2,2,"ng-template",null,6,t.W1O),t.TgZ(10,"p",7),t._UZ(11,"i",8)(12,"span",1),t.qZA()),2&o){const s=t.MAs(9);t.xp6(1),t.Q6J("translate","edit_"+a.which),t.xp6(2),t.Q6J("translate",a.previewContent?"exitPreview":"preview"),t.xp6(1),t.Q6J("disabled",a.saving||a.invalid)("translate","save")("tr-namespace","common"),t.xp6(3),t.Q6J("ngIf",a.previewContent)("ngIfElse",s),t.xp6(5),t.Q6J("translate","infoButton")}},dependencies:[x.O5,U.G,B.P,Q.f,A.jl,A.Av,N.h,r.JJ,r.oH,V.Z,D.n],styles:["[_nghost-%COMP%]{display:block}.btns-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:15px}"],changeDetection:0}),n})();var z=e(11953);const M=[P.resolveOrganisationConfig,{deps:[],resolveFn:()=>(0,f.n)(z._),token:"_awaitLegalLoaded"},{deps:[E.C,"_awaitLegalLoaded"],resolveFn:n=>(0,h.Z)(function*(){const i=yield(0,Z.z)(n.latestForLoggedInUser());return n.addButtons(i,null,"TgLegalTplButtons")})(),token:l.zy},{deps:[w.Transition,p.s,y.d,"_awaitLegalLoaded"],resolveFn:(n,i,o)=>(0,h.Z)(function*(){const a=n.to().data.which;return(yield(0,f.n)(i.get(a,{cache:{strategy:1}}))).$value.value||o.getTemplate(a)})(),token:l.wp}],G=[{abstract:!0,component:C.J9,name:"admin.termsandconditions",url:"/termsandconditions"},{component:T,data:{which:"termsandconditions"},name:"admin.termsandconditions.edit",resolve:M,url:"/edit"}],W=[{abstract:!0,component:C.J9,name:"admin.privacypolicy",url:"/privacy"},{component:T,data:{which:"privacypolicy"},name:"admin.privacypolicy.edit",resolve:M,url:"/edit"}];let g=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[u.GlobalModule,r.UX,L.x,u.GlobalModule]}),n})(),$=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g,m.UIRouterModule.forChild({config:d.Z.config(G)})]}),n})(),H=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g,m.UIRouterModule.forChild({config:d.Z.config(W)})]}),n})()}}]);

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.