mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
1 line
2.6 MiB
JavaScript
1 line
2.6 MiB
JavaScript
|
|
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[179],{98255:function(e){function t(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=function(){return[]},t.resolve=t,t.id=98255,e.exports=t},25653:function(e,t,n){"use strict";n.d(t,{ab:function(){return Se},fM:function(){return Ce},g2:function(){return at},AB:function(){return tt},EC:function(){return ct},K:function(){return yt},Yy:function(){return ot}});var i=n(87636),r=n(37716),s=n(43220),a=n(10826),o=n(79765),c=n(66682),l=n(72458),u=n(36461),h=n(15257),d=n(39761),f=n(46782),m=n(54395),p=n(45435),_=n(39490),v=n(58203),g=n(38583),y=n(22238),b=n(3679),M=n(49983),z=n(51095),w=n(25917),L=n(40205),x=n(35758),C=n(68307),S=n(88002),k=n(5304),H=n(68939),D=n(78345),T=n(91841),A=n(39075);const V=["*"];function Y(e){return Error(`Unable to find icon with the name "${e}"`)}function N(e){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${e}".`)}function E(e){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${e}".`)}class O{constructor(e,t,n){this.url=e,this.svgText=t,this.options=n}}let P=(()=>{class e{constructor(e,t,n,i){this._httpClient=e,this._sanitizer=t,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}addSvgIconLiteral(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}addSvgIconInNamespace(e,t,n,i){return this._addSvgIconConfig(e,t,new O(n,null,i))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,n,i){const s=this._sanitizer.sanitize(r.q3G.HTML,n);if(!s)throw E(n);return this._addSvgIconConfig(e,t,new O("",s,i))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,n){return this._addSvgIconSetConfig(e,new O(t,null,n))}addSvgIconSetLiteralInNamespace(e,t,n){const i=this._sanitizer.sanitize(r.q3G.HTML,t);if(!i)throw E(t);return this._addSvgIconSetConfig(e,new O("",i,n))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(r.q3G.RESOURCE_URL,e);if(!t)throw N(e);const n=this._cachedIconsByUrl.get(t);return n?(0,w.of)(I(n)):this._loadSvgIconFromConfig(new O(e,null)).pipe((0,C.b)(e=>this._cachedIconsByUrl.set(t,e)),(0,S.U)(e=>I(e)))}getNamedSvgIcon(e,t=""){const n=j(t,e);let i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e),i)return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);const r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):(0,L._)(Y(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,w.of)(I(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,S.U)(e=>I(e)))}_getSvgFromIconSetConfigs(e,t){const n=this._extractIconWithNameFromAnySet(e,t);if(n)return(0,w.of)(n);const i=t.filter(e=>!e.svgText).map(e=>this._loadSvgIconSetFromConfig(e).pipe((0,k.K)(t=>{const n=this._sanitizer.sanitize(r.q3G.RESOURCE_URL,e.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${t.message}`)),(0,w.of)(null)})));return(0,x.D)(i).pipe((0,S.U)(()=>{const n=this._extractIconWithNameFromAnySet(e,t);if(!n)throw Y(e);return n}))}_extractIconWithNameFromAnySet(e,t){
|