1"use strict";(self.webpackChunkxcams=self.webpackChunkxcams||[]).push([[4876],{14876(t,e,n){n.d(e,{CookieConsentService:()=>a});n(3362);var r,i,o,s=n(85144);class a{static getInstance(){return this.instance||(this.instance=new a),this.instance}async saveConsent(t){const e=s.Q.getInstance();e.setContentTypeModeUrlEncoded();try{const n=await e.post("/cookie-management-update",{complementary:t});return Boolean(n.success)}catch(n){return window.local.log("Cookie consent save error:",n),!1}}}r=a,o=void 0,(i=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(i="instance"))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o},85144(t,e,n){n.d(e,{Q:()=>p});var r;n(3362),n(62953),n(48408);function i(t,e,n){o(t,e),e.set(t,n)}function o(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){return t.get(l(t,e))}function c(t,e,n){return t.set(l(t,e),n),n}function l(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var u=new WeakMap,h=new WeakMap,d=new WeakMap,f=new WeakSet;class p{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";var e,n;if(o(e=this,n=f),n.add(e),i(this,u,"application/x-www-form-urlencoded"),i(this,h,"application/json"),i(this,d,p.CONTENT_TYPE_URL_ENCODED),w._)throw new Error("Use HttpClient.getInstance() to get an instance");this.baseUrl=t,this.defaultHeaders={"X-Requested-With":"XMLHttpRequest",Accept:"application/json"},this.defaultCredentials="include"}setContentTypeModeUrlEncoded(){c(d,this,p.CONTENT_TYPE_URL_ENCODED)}setContentTypeModeJson(){c(d,this,p.CONTENT_TYPE_JSON)}static getInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return w._||(w._=new p(t)),w._}async request(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n="".concat(this.baseUrl).concat(t),r=l(f,this,T).call(this,e),i=this.defaultCredentials,o={...e,headers:r,credentials:i};try{const t=await fetch(n,o);if(!t.ok)throw new Error("HTTP error! status: ".concat(t.status));return await t.json()}catch(s){throw window._local.log("Request failed:",s),s}}async get(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request(t,{...e,method:"GET"})}async post(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request(t,{...n,method:"POST",body:l(f,this,v).call(this,e)})}async put(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request(t,{...n,method:"PUT",body:l(f,this,v).call(this,e)})}async patch(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request(t,{...n,method:"PATCH",body:l(f,this,v).call(this,e)})}async delete(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request(t,{...e,method:"DELETE"})}}function v(t){let e="";return e=a(d,this)===r.CONTENT_TYPE_URL_ENCODED?new URLSearchParams(t):JSON.stringify(t),e}function T(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=a(u,this);a(d,this)===r.CONTENT_TYPE_JSON&&(e=a(h,this));const n={"Content-Type":e};return{...this.defaultHeaders,...n,...t.headers}}r=p;var w={_:null};s(p,"CONTENT_TYPE_URL_ENCODED",1),s(p,"CONTENT_TYPE_JSON",2)}}]);
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.