PageSourceSearch

https://simpro.wirelesslogic.com/default-src_app_reusable_reusable…p_services_datat-41e725.d3e45c35d372f4e8.js

js wirelesslogic.com collected 2026-10-02 14:30:30 UTC 18,165 bytes, 1 lines download raw bytes

1try{let v=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=(new v.Error).stack;m&&(v._sentryDebugIds=v._sentryDebugIds||{},v._sentryDebugIds[m]="d088851c-e7c0-49e9-9c59-e8bafd81b5e2",v._sentryDebugIdIdentifier="sentry-dbid-d088851c-e7c0-49e9-9c59-e8bafd81b5e2")}catch{}(typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{}).SENTRY_RELEASE={id:"66ad253bbdd8d7d0c7e490bde3009ca893190125"},(self.webpackChunkSIMPro=self.webpackChunkSIMPro||[]).push([["default-src_app_reusable_reusable_spinner-cog_spinner-cog_component_ts-src_app_services_datat-41e725"],{19942(v,m,a){a.d(m,{U:()=>i});var t=a(20203);let i=(()=>{class r{faSize=3;static \u0275fac=function(n){return new(n||r)};static \u0275cmp=t.\u0275\u0275defineComponent({type:r,selectors:[["app-spinner-cog"]],inputs:{faSize:"faSize"},decls:1,vars:3,consts:[["aria-hidden","true"]],template:function(n,h){1&n&&t.\u0275\u0275domElement(0,"em",0),2&n&&t.\u0275\u0275classMap(t.\u0275\u0275interpolate1("fas fa-cog fa-",h.faSize,"x fa-slow-spin spinner"))},styles:[".spinner[_ngcontent-%COMP%]{opacity:.3}"]})}return r})()},72539(v,m,a){a.d(m,{j:()=>d});var t=a(6078),i=a(20203),r=a(43234),p=a(34857),g=a(40893),n=a(78745),h=a(23127),u=a(42046);let d=(()=>{class l{http=(0,i.inject)(t.Qq);store=(0,i.inject)(h.Store);datatableDataSource=new n.B;datatableData$=this.datatableDataSource.asObservable();getStore(_,y={}){const M=this.getUrlParts(`${r.c.apiUrl}${_}`),T=this.getQsParams(M.params),I=this;return new p.A({...y,load(C){const j={...T,skip:C.skip??0,take:C.take??20,...I.buildSortOptions(C.sort),...I.buildFilter(C.filter)},B=`${M.path}?${g.A(j)}`;return I.store.dispatch(new u.pr(!0)),I.http.get(B).toPromise().then(A=>{const L={data:A.aaData??A.data,totalCount:A.iTotalDisplayRecords??A.count??0};return I.datatableDataSource.next(L),I.store.dispatch(new u.pr(!1)),L})}})}getUrlParts(_){const y=_.split("?");return{path:y[0],params:y[1]}}getQsParams(_){return _?g.q(_):{}}buildSortOptions(_){return _?{orderby:`${_[0].selector}${_[0].desc?" desc":""}`}:null}buildFilter(_){return _?{filter:JSON.stringify(_)}:null}static \u0275fac=function(y){return new(y||l)};static \u0275prov=i.\u0275\u0275defineInjectable({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},34857(v,m,a){a.d(m,{A:()=>i});const i=a(36292).XI},40893(v,m){var a=Object.prototype.hasOwnProperty;function i(n){try{return decodeURIComponent(n.replace(/\+/g," "))}catch{return null}}function r(n){try{return encodeURIComponent(n)}catch{return null}}m.A=function g(n,h){h=h||"";var d,l,u=[];for(l in"string"!=typeof h&&(h="?"),n)if(a.call(n,l)){if(!(d=n[l])&&(null==d||isNaN(d))&&(d=""),l=r(l),d=r(d),null===l||null===d)continue;u.push(l+"="+d)}return u.length?h+u.join("&"):""},m.q=function p(n){for(var d,h=/([^=?#&]+)=?([^&]*)/g,u={};d=h.exec(n);){var l=i(d[1]),N=i(d[2]);null===l||null===N||l in u||(u[l]=N)}return u}},61677(v,m,a){function t(...r){if(r){let p=[];for(let g=0;g<r.length;g++){let n=r[g];if(!n)continue;let h=typeof n;if("string"===h||"number"===h)p.push(n);else if("object"===h){let u=Array.isArray(n)?[t(...n)]:Object.entries(n).map(([d,l])=>l?d:void 0);p=u.length?p.concat(u.filter(d=>!!d)):p}}return p.join(" ").trim()}}a.d(m,{cn:()=>t})},62792(v,m,a){a.d(m,{u:()=>i});var t={};function i(r="pui_id_"){return Object.hasOwn(t,r)||(t[r]=0),t[r]++,`${r}${t[r]}`}},42258(v,m,a){a.d(m,{$G:()=>L,bt:()=>A});var t=a(76900),i=a(63990),r=a(2363),p=a(61677),g=a(62792),n=a(82220),h=Object.defineProperty,u=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,N=(c,b,e)=>b in c?h(c,b,{enumerable:!0,configurable:!0,writable:!0,value:e}):c[b]=e,_=(c,b)=>{for(var e in b||(b={}))d.call(b,e)&&N(c,e,b[e]);if(u)for(var e of u(b))l.call(b,e)&&N(c,e,b[e]);return c};function y(...c){if(c){let b=[];for(let e=0;e<c.length;e++){let s=c[e];if(!s)continue;let o=typeof s;if("string"===o||"number"===o)b.push(s);else if("object"===o){let f=Array.isArray(s)?[y(...s)]:Object.entries(s).map(([P,S])=>S?P:void 0);b=f.length?b.concat(f.filter(P=>!!P)):b}}return b.join(" ").trim()}}function D(c){return"function"==typeof c&&"call"in c&&"apply"in c}function T(...c){return function M({skipUndefined:c=!1},...b){return b?.reduce((e,s={})=>{for(let o in s){let f=s[o];if(!c||void 0!==f)if("style"===o)e.style=_(_({},e.style),s.style);else if("class"===o||"className"===o)e[o]=y(e[o],s[o]);else if(D(f)){let P=e[o];e[o]=P?(...S)=>{P(...S),f(...S)}:f}else e[o]=f}return e},{})}
1({skipUndefined:!1},...c)}var C=a(72e3),j=a(32999);let B=(()=>{class c extends C.j{name="common";static \u0275fac=(()=>{let e;return function(o){return(e||(e=i.\u0275\u0275getInheritedFactory(c)))(o||c)}})();static \u0275prov=i.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})();const A=new i.InjectionToken("PARENT_INSTANCE");let L=(()=>{class c{document=(0,i.inject)(t.DOCUMENT);platformId=(0,i.inject)(i.PLATFORM_ID);el=(0,i.inject)(i.ElementRef);injector=(0,i.inject)(i.Injector);cd=(0,i.inject)(i.ChangeDetectorRef);renderer=(0,i.inject)(i.Renderer2);config=(0,i.inject)(j.tl);$parentInstance=(0,i.inject)(A,{optional:!0,skipSelf:!0})??void 0;baseComponentStyle=(0,i.inject)(B);baseStyle=(0,i.inject)(C.j);scopedStyleEl;parent=this.$params.parent;cn=p.cn;_themeScopedListener;dt=(0,i.input)();unstyled=(0,i.input)();pt=(0,i.input)();ptOptions=(0,i.input)();$attrSelector=(0,g.u)("pc");get $name(){return this.componentName||this.constructor?.name?.replace(/^_/,"")||"UnknownComponent"}get $hostName(){return this.hostName}$unstyled=(0,i.computed)(()=>void 0!==this.unstyled()?this.unstyled():this.config?.unstyled()||!1);$pt=(0,i.computed)(()=>(0,n.hd)(this.pt()||this.directivePT(),this.$params));directivePT=(0,i.signal)(void 0);get $globalPT(){return this._getPT(this.config?.pt(),void 0,e=>(0,n.hd)(e,this.$params))}get $defaultPT(){return this._getPT(this.config?.pt(),void 0,e=>this._getOptionValue(e,this.$hostName||this.$name,this.$params)||(0,n.hd)(e,this.$params))}get $style(){return{theme:void 0,css:void 0,classes:void 0,inlineStyles:void 0,...(this._getHostInstance(this)||{}).$style,...this._componentStyle}}get $styleOptions(){return{nonce:this.config?.csp().nonce}}get $params(){return{instance:this,parent:{instance:this._getHostInstance(this)||this.$parentInstance}}}onInit(){}onChanges(e){}onDoCheck(){}onAfterContentInit(){}onAfterContentChecked(){}onAfterViewInit(){}onAfterViewChecked(){}onDestroy(){}constructor(){(0,i.effect)(e=>{this.document&&!(0,t.isPlatformServer)(this.platformId)&&(r.Fs.off("theme:change",this._themeScopedListener),this.dt()?(this._loadScopedThemeStyles(this.dt()),this._themeScopedListener=()=>this._loadScopedThemeStyles(this.dt()),this._themeChangeListener(this._themeScopedListener)):this._unloadScopedThemeStyles()),e(()=>{r.Fs.off("theme:change",this._themeScopedListener)})}),(0,i.effect)(e=>{this.document&&!(0,t.isPlatformServer)(this.platformId)&&(r.Fs.off("theme:change",this._loadCoreStyles),this.$unstyled()||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))),e(()=>{r.Fs.off("theme:change",this._loadCoreStyles)})}),this._hook("onBeforeInit")}ngOnInit(){this._loadCoreStyles(),this._loadStyles(),this.onInit(),this._hook("onInit")}ngOnChanges(e){this.onChanges(e),this._hook("onChanges",e)}ngDoCheck(){this.onDoCheck(),this._hook("onDoCheck")}ngAfterContentInit(){this.onAfterContentInit(),this._hook("onAfterContentInit")}ngAfterContentChecked(){this.onAfterContentChecked(),this._hook("onAfterContentChecked")}ngAfterViewInit(){this.el?.nativeElement?.setAttribute(this.$attrSelector,""),this.onAfterViewInit(),this._hook("onAfterViewInit")}ngAfterViewChecked(){this.onAfterViewChecked(),this._hook("onAfterViewChecked")}ngOnDestroy(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this.onDestroy(),this._hook("onDestroy")}_mergeProps(e,...s){return(0,n.Tn)(e)?e(...s):T(...s)}_getHostInstance(e){return e?this.$hostName?this.$name===this.$hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0}_getPropValue(e){return this[e]||this._getHostInstance(this)?.[e]}_getOptionValue(e,s="",o={}){return(0,n.fm)(e,s,o)}_hook(e,...s){if(!this.$hostName){const o=this._usePT(this._getPT(this.$pt(),this.$name),this._getOptionValue,`hooks.${e}`),f=this._useDefaultPT(this._getOptionValue,`hooks.${e}`);o?.(...s),f?.(...s)}}_load(){C.C.isStyleNameLoaded("base")||(this.baseStyle.loadBaseCSS(this.$styleOptions),this._loadGlobalStyles(),C.C.setLoadedStyleName("base")),this._loadThemeStyles()}_loadStyles(){this._load(),this._themeChangeListener(()=>this._load())}_loadGlobalStyles(){const e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);(0,n.hj)(e)&&this.baseStyle.load(e,{name:"global",...this.$styleOptions})}_loadCoreStyles(){!C.C.isStyleNameLoaded(this.$style?.name)&&this.$style?.name&&(this.baseComponentStyle.loadCSS(this.$styleOptions),this.$style.loadCSS(this.$styleOptions),C.C.setLoa
1dedStyleName(this.$style.name))}_loadThemeStyles(){if(!this.$unstyled()&&"none"!==this.config?.theme()){if(!r.Sx.isStyleNameLoaded("common")){const{primitive:e,semantic:s,global:o,style:f}=this.$style?.getCommonTheme?.()||{};this.baseStyle.load(e?.css,{name:"primitive-variables",...this.$styleOptions}),this.baseStyle.load(s?.css,{name:"semantic-variables",...this.$styleOptions}),this.baseStyle.load(o?.css,{name:"global-variables",...this.$styleOptions}),this.baseStyle.loadBaseStyle({name:"global-style",...this.$styleOptions},f),r.Sx.setLoadedStyleName("common")}if(!r.Sx.isStyleNameLoaded(this.$style?.name)&&this.$style?.name){const{css:e,style:s}=this.$style?.getComponentTheme?.()||{};this.$style?.load(e,{name:`${this.$style?.name}-variables`,...this.$styleOptions}),this.$style?.loadStyle({name:`${this.$style?.name}-style`,...this.$styleOptions},s),r.Sx.setLoadedStyleName(this.$style?.name)}if(!r.Sx.isStyleNameLoaded("layer-order")){const e=this.$style?.getLayerOrderThemeCSS?.();this.baseStyle.load(e,{name:"layer-order",first:!0,...this.$styleOptions}),r.Sx.setLoadedStyleName("layer-order")}}}_loadScopedThemeStyles(e){const{css:s}=this.$style?.getPresetTheme?.(e,`[${this.$attrSelector}]`)||{},o=this.$style?.load(s,{name:`${this.$attrSelector}-${this.$style?.name}`,...this.$styleOptions});this.scopedStyleEl=o?.el}_unloadScopedThemeStyles(){this.scopedStyleEl?.remove()}_themeChangeListener(e=()=>{}){C.C.clearLoadedStyleNames(),r.Fs.on("theme:change",e.bind(this))}_removeThemeListeners(){r.Fs.off("theme:change",this._loadCoreStyles),r.Fs.off("theme:change",this._load),r.Fs.off("theme:change",this._themeScopedListener)}_getPTValue(e={},s="",o={},f=!0){const P=/./g.test(s)&&!!o[s.split(".")[0]],{mergeSections:S=!0,mergeProps:E=!1}=this._getPropValue("ptOptions")?.()||this.config?.ptOptions?.()||{},O=f?P?this._useGlobalPT(this._getPTClassValue,s,o):this._useDefaultPT(this._getPTClassValue,s,o):void 0,$=P?void 0:this._usePT(this._getPT(e,this.$hostName||this.$name),this._getPTClassValue,s,{...o,global:O||{}}),w=this._getPTDatasets(s);return S||!S&&$?E?this._mergeProps(E,O,$,w):{...O,...$,...w}:{...$,...w}}_getPTDatasets(e=""){const s="data-pc-",o="root"===e&&(0,n.hj)(this.$pt()?.["data-pc-section"]);return"transition"!==e&&{..."root"===e&&{[`${s}name`]:(0,n.qd)(o?this.$pt()?.["data-pc-section"]:this.$name),...o&&{[`${s}extend`]:(0,n.qd)(this.$name)},[`${this.$attrSelector}`]:""},[`${s}section`]:(0,n.qd)(e.includes(".")?e.split(".").at(-1)??"":e)}}_getPTClassValue(e,s,o){const f=this._getOptionValue(e,s,o);return(0,n.Kg)(f)||(0,n.cy)(f)?{class:f}:f}_getPT(e,s="",o){const f=(P,S=!1)=>{const E=o?o(P):P,O=(0,n.qd)(s),$=(0,n.qd)(this.$hostName||this.$name);return(S?O!==$?E?.[O]:void 0:E?.[O])??E};return e?.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:f(e.originalValue),value:f(e.value)}:f(e,!0)}_usePT(e,s,o,f){const P=S=>s?.call(this,S,o,f);if(e?.hasOwnProperty("_usept")){const{mergeSections:S=!0,mergeProps:E=!1}=e._usept||this.config?.ptOptions()||{},O=P(e.originalValue),$=P(e.value);return void 0===O&&void 0===$?void 0:(0,n.Kg)($)?$:(0,n.Kg)(O)?O:S||!S&&$?E?this._mergeProps(E,O,$):{...O,...$}:$}return P(e)}_useGlobalPT(e,s,o){return this._usePT(this.$globalPT,e,s,o)}_useDefaultPT(e,s,o){return this._usePT(this.$defaultPT,e,s,o)}ptm(e="",s={}){return this._getPTValue(this.$pt(),e,{...this.$params,...s})}ptms(e,s={}){return e.reduce((o,f)=>T(o,this.ptm(f,s))||{},{})}ptmo(e={},s="",o={}){return this._getPTValue(e,s,{instance:this,...o},!1)}cx(e,s={}){return this.$unstyled()?void 0:(0,p.cn)(this._getOptionValue(this.$style.classes,e,{...this.$params,...s}))}sx(e="",s=!0,o={}){if(s){const f=this._getOptionValue(this.$style.inlineStyles,e,{...this.$params,...o});return{...this._getOptionValue(this.baseComponentStyle.inlineStyles,e,{...this.$params,...o}),...f}}}static \u0275fac=function(s){return new(s||c)};static \u0275dir=i.\u0275\u0275defineDirective({type:c,inputs:{dt:[1,"dt"],unstyled:[1,"unstyled"],pt:[1,"pt"],ptOptions:[1,"ptOptions"]},features:[i.\u0275\u0275ProvidersFeature([B,C.j]),i.\u0275\u0275NgOnChangesFeature]})}return c})()}
1,57604(v,m,a){a.d(m,{k:()=>r});var t=a(63990),i=a(38759);let r=(()=>{class p extends i.V{required=(0,t.input)(void 0,{transform:t.booleanAttribute});invalid=(0,t.input)(void 0,{transform:t.booleanAttribute});disabled=(0,t.input)(void 0,{transform:t.booleanAttribute});name=(0,t.input)();_disabled=(0,t.signal)(!1);$disabled=(0,t.computed)(()=>this.disabled()||this._disabled());onModelChange=()=>{};onModelTouched=()=>{};writeDisabledState(n){this._disabled.set(n)}writeControlValue(n,h){}writeValue(n){this.writeControlValue(n,this.writeModelValue.bind(this))}registerOnChange(n){this.onModelChange=n}registerOnTouched(n){this.onModelTouched=n}setDisabledState(n){this.writeDisabledState(n),this.cd.markForCheck()}static \u0275fac=(()=>{let n;return function(u){return(n||(n=t.\u0275\u0275getInheritedFactory(p)))(u||p)}})();static \u0275dir=t.\u0275\u0275defineDirective({type:p,inputs:{required:[1,"required"],invalid:[1,"invalid"],disabled:[1,"disabled"],name:[1,"name"]},features:[t.\u0275\u0275InheritDefinitionFeature]})}return p})()},38759(v,m,a){a.d(m,{V:()=>p});var t=a(63990),i=a(82220),r=a(42258);let p=(()=>{class g extends r.$G{modelValue=(0,t.signal)(void 0);$filled=(0,t.computed)(()=>(0,i.hj)(this.modelValue()));writeModelValue(h){this.modelValue.set(h)}static \u0275fac=(()=>{let h;return function(d){return(h||(h=t.\u0275\u0275getInheritedFactory(g)))(d||g)}})();static \u0275dir=t.\u0275\u0275defineDirective({type:g,features:[t.\u0275\u0275InheritDefinitionFeature]})}return g})()},37e3(v,m,a){a.d(m,{C:()=>g,Y:()=>p});var t=a(63990),i=a(61677),r=a(82220);let p=(()=>{class n{el;renderer;pBind=(0,t.input)(void 0);_attrs=(0,t.signal)(void 0);attrs=(0,t.computed)(()=>this._attrs()||this.pBind());styles=(0,t.computed)(()=>this.attrs()?.style);classes=(0,t.computed)(()=>(0,i.cn)(this.attrs()?.class));listeners=[];constructor(u,d){this.el=u,this.renderer=d,(0,t.effect)(()=>{const{style:l,class:N,..._}=this.attrs()||{};for(const[y,D]of Object.entries(_))if(y.startsWith("on")&&"function"==typeof D){const M=y.slice(2).toLowerCase();if(!this.listeners.some(T=>T.eventName===M)){const T=this.renderer.listen(this.el.nativeElement,M,D);this.listeners.push({eventName:M,unlisten:T})}}else null==D?this.renderer.removeAttribute(this.el.nativeElement,y):(this.renderer.setAttribute(this.el.nativeElement,y,D.toString()),y in this.el.nativeElement&&(this.el.nativeElement[y]=D))})}ngOnDestroy(){this.clearListeners()}setAttrs(u){(0,r.aI)(this._attrs(),u)||this._attrs.set(u)}clearListeners(){this.listeners.forEach(({unlisten:u})=>u()),this.listeners=[]}static \u0275fac=function(d){return new(d||n)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2))};static \u0275dir=t.\u0275\u0275defineDirective({type:n,selectors:[["","pBind",""]],hostVars:4,hostBindings:function(d,l){2&d&&(t.\u0275\u0275styleMap(l.styles()),t.\u0275\u0275classMap(l.classes()))},inputs:{pBind:[1,"pBind"]}})}return n})(),g=(()=>{class n{static \u0275fac=function(d){return new(d||n)};static \u0275mod=t.\u0275\u0275defineNgModule({type:n});static \u0275inj=t.\u0275\u0275defineInjector({})}return n})()},68446(v,m,a){a.d(m,{h_:()=>d});var t=a(63990),i=a(61677),r=a(42258),p=a(72e3);const g=["*"];let h=(()=>{class l extends p.j{name="baseicon";css="\n.p-icon {\n    display: inline-block;\n    vertical-align: baseline;\n    flex-shrink: 0;\n}\n\n.p-icon-spin {\n    -webkit-animation: p-icon-spin 2s infinite linear;\n    animation: p-icon-spin 2s infinite linear;\n}\n\n@-webkit-keyframes p-icon-spin {\n    0% {\n        -webkit-transform: rotate(0deg);\n        transform: rotate(0deg);\n    }\n    100% {\n        -webkit-transform: rotate(359deg);\n        transform: rotate(359deg);\n    }\n}\n\n@keyframes p-icon-spin {\n    0% {\n        -webkit-transform: rotate(0deg);\n        transform: rotate(0deg);\n    }\n    100% {\n        -webkit-transform: rotate(359deg);\n        transform: rotate(359deg);\n    }\n}\n";static \u0275fac=(()=>{let _;return function(D){return(_||(_=t.\u0275\u0275getInheritedFactory(l)))(D||l)}})();static \u0275prov=t.\u0275\u0275defineInjectable({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),d=(()=>{class l extends r.$G{spin=!1;_componentStyle=(0,t.inject)(h);getClassNames(){return(0,i.cn)("p-icon",{"p-icon-spin":this.spin})}static \u0275fac=(()=>{let _;
1return function(D){return(_||(_=t.\u0275\u0275getInheritedFactory(l)))(D||l)}})();static \u0275cmp=t.\u0275\u0275defineComponent({type:l,selectors:[["ng-component"]],hostAttrs:["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],hostVars:2,hostBindings:function(y,D){2&y&&t.\u0275\u0275classMap(D.getClassNames())},inputs:{spin:[2,"spin","spin",t.booleanAttribute]},features:[t.\u0275\u0275ProvidersFeature([h]),t.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:g,decls:1,vars:0,template:function(y,D){1&y&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0})}return l})()}}]);

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.