PageSourceSearch

https://www.rubson.com/etc.clientlibs/heliux/clientlibs/commons/ap…-8bc521070b8daf980b8a77611b2e6afd-lc.min.js

js rubson.com collected 2026-10-02 21:21:03 UTC 18,166 bytes, 1 lines download raw bytes

1"use strict";(self.heliuxModules=self.heliuxModules||[]).push([[7694],{48498(t,e,n){n.d(e,{_:()=>y});var r=n(49530),s=n(23029),i=n(50388),a=n(53954),o=n(85501);function u(t,e,n){return e=(0,a.A)(e),(0,i.A)(t,c()?Reflect.construct(e,n||[],(0,a.A)(t).constructor):e.apply(t,n))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}let h=function(t){function e(t,n,r,i,a={},o){var c;if((0,s.A)(this,e),(c=u(this,e,[t,n,r,i,a,o])).__isConfigString(t)||!t.retryOn)throw new Error("FetchRestRetry needs at least the callback retryOn config");return c.retryOn=t.retryOn,c}return(0,o.A)(e,t),(0,r.A)(e,[{key:"__fetch",value:async function(t,e,n=0){const r=await fetch(t,e);return n<5&&await this.retryOn(r,n)?this.__fetch(t,e,n+1):r}}])}(n(16045).$);var l=n(47533);function _(t,e,n){return e=(0,a.A)(e),(0,i.A)(t,f()?Reflect.construct(e,n||[],(0,a.A)(t).constructor):e.apply(t,n))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}let y=function(t){function e(t,n,r,i,a={},o){return(0,s.A)(this,e),_(this,e,[{...t,retryOn:async(t,e)=>{if(0===e&&401===t.status)try{const e=await t.json();return t.json=()=>e,await(0,l.Fg)(),!0}catch(t){}return!1}},n,r,i,a,o])}return(0,o.A)(e,t),(0,r.A)(e)}(h)},51113(t,e,n){n.d(e,["Q",0,(t,e)=>{if(!e)return{};const{fieldName:n,headerName:r}=e;if(t[n]){const e={[r]:t[n]};return delete t[n],e}return{}}])},67030(t,e,n){n.d(e,{W:()=>i});var r=n(23029),s=n(49530);let i=function(){function t(){(0,r.A)(this,t)}return(0,s.A)(t,null,[{key:"postQuery",value:function(e,n={},r,s=null,i={}){return t.__handleRequest(e,n,r,s,i)}},{key:"getQuery",value:function(e,n={},r=null,s={}){return t.__handleRequest(e,n,r,{method:"GET",...s})}},{key:"__getRequestOptions",value:function(t={},e,n=null,r={},s){const{method:i="POST"}=r,a={operationName:s,...e&&{query:e},...n&&{variables:n}},o={headers:t};return{method:i,..."POST"===i&&{body:JSON.stringify(a)},...o,...r}}},{key:"__handleRequest",value:async function(e,n,r="",s={},i={}){const a=t.__getRequestOptions(n,r,s,i);let o,u,c;try{o=await fetch(e,a)}catch(t){throw new Error(t)}if(!o.ok)try{u=await o.json()}catch(t){throw new Error(t)}if(u){const t=(u.errors||[u])[0]||{},{extensions:e={}}=t;throw new Error(`${e.code}:  ${t.message}`)}try{c=await o.json()}catch(t){throw new Error(t)}return c}},{key:"__validateUrl",value:function(t){const e="/"===t[0]?`https://domain${t}`:t;try{new URL(e)}catch(e){throw new Error(`InvalidParameter: Invalid URL: ${t}`)}}}])}()},16045(t,e,n){n.d(e,{$:()=>p});var r=n(23029),s=n(49530),i=n(50388),a=n(53954),o=n(90991),u=n(85501),c=(n(74423),n(2371)),h=n(12595),l=n(79516);function _(t,e,n){return e=(0,a.A)(e),(0,i.A)(t,f()?Reflect.construct(e,n||[],(0,a.A)(t).constructor):e.apply(t,n))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}function y(t,e,n,r){var s=(0,o.A)((0,a.A)(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof s?function(t){return s.apply(n,t)}:s}const d={};let p=function(t){function e(t,n,s={name:null,cacheTime:null},i={},a){var o;(0,r.A)(this,e);const u=(o=_(this,e,[t,n,i,a])).__isConfigString(),c=u?s.name:t.storeName,h=u?s.cacheTime:t.cacheTime;if(o.storeName=c,o.cacheTime=h||0,o.storeStates=o.__setStoreStates(),o.store={},o.storeName){const t=o.__getInitialStore();o.__initStore(t),!o.auth&&o.store.auth&&o.store.auth.root&&o.store.auth.root.token&&(o.auth=o.__getAuth({...o.store.auth.root}))}return o}return(0,u.A)(e,t),(0,s.A)(e,[{key:"__setStoreStates",value:function(){return{initState:"init",inProgressState:"inProgress",finishedState:"finished"}}},{key:"request",value:async function(t,n={},r,s={},i,a={}){this.__validateMapperWithId(i,a);const o=this.__getStoreOptionsWithDefaults(a,s?.method),u=this.__endpointStoreName(t,n,r);return this.__hasCache(o)?this.__handleGetWithStore(t,n,r,s,y(e,"request",this,1),i,{...o,endpointStoreName:u}):y(e,"request",this,3)([t,n,r,s,i])}},{key:"get",value:async function(t,e={},n={},r,s){return this.request(t,e,null,n,r,s)}},{key:"post",value:async function(t,e={},n,r={},s,i){return this.request(t,e,n,{...r,method:"POST"},s,i)}},{key:"put",value:async function(t,e={},n,r={},s,i){return this.request(t,e,n,{...r,method:"PUT"},s,i)}},{key:"patch",value:async function(t,e={},n,r={},s,i){return this.request(t,e,n,{...r,method:"PATCH"},s,i)}},{key:"delete",value:async function(t,e={},n={},r,s){return this.request(t,e,null,{...n,method:"DELETE"},r,s)}},{key:"__validateMapperWithId",value:function(t,e){const n=this.__hasMapper(t),r=this.__hasCache(e),{responseMapperId:s}=e;if(r&&n&&!s)throw new Error("To cache mapped data the `storeOptions.responseMapperId` param is required")}},{key:"__handleGetWithStore",value:async function(t,e,n,r,s,i,a={}){const o=this.__getStoreOptionsWithDefaults(a,r.method),u=this.__hasCache(a),{endpointStoreName:c}=o;if(u&&!this.store[c]&&this.__setStore(c,{}),!o.skipCache){const a=this.__getDataFromStore(c,i,o);if(a)return setTimeout(()=>{this.__getDataFromStore(c,i,o)&&this.__handleStoreGet(t,e,n,r,s,i,o)},1e3*o.cacheTime),a}return this.__handleStoreGet(t,e,n,r,s,i,o)}},{key:"__handleStoreGet",value:async function(t,e,n,r,s,i,a={}){const{inProgressState:o,finishedState:u}=this.storeStates,c=this.__hasCache(a),{endpointStoreName:h}=a;if(c&&this.store[h]&&this.store[h].status===o)return new Promise(t=>{this.store[h].subscribe(e=>{if(e.value===u){const e=this.__getDataFromStore(h,i,a);t(e)}},"status",!0)});let l;const _=this.__hasMapper(i);this.__setStatus(h,o,a);try{l=await s.call(this,t,e,n,r)}catch(t){throw this.__saveResponse(h,null,null,a),this.__setStatus(h,u,a),t}let f;try{f=_?i(l):null}catch(t){throw this.__saveResponse(h,l,null,a),this.__setStatus(h,u,a),t}return this.__saveResponse(h,l,f,a),this.__setStatus(h,u,a),_?f:l}},{key:"__hasMapper",value:function(t){return"function"==typeof t}}
1,{key:"__cacheExpired",value:function(t){return t<Math.floor((new Date).getTime()/1e3)}},{key:"__getDataFromStore",value:function(t,e,n={}){const r=this.__hasCache(n),s=this.__hasMapper(e),i=this.store[t],a=this.__mappedDataStoreKey(n);if(!i||!i.expiresOn||!r)return null;if(this.__cacheExpired(i.expiresOn))return null;if(i.rawData&&s){if(!i[a]){const t=e(i.rawData);return i[a]=t,t}return i[a]}return i.rawData||i[a]}},{key:"__saveResponse",value:function(t,e,n,r={}){if(this.__hasCache(r)){const{cacheTime:s}=r,i=Math.floor((new Date).getTime()/1e3),a=s?i+s:0,o=this.__mappedDataStoreKey(r);this.__setStore(t,{rawData:e,...n&&{[o]:n},expiresOn:a},{reset:!0})}}},{key:"__mappedDataStoreKey",value:function(t={}){const{responseMapperId:e}=t;return`mappedData-${e}`}},{key:"__setStatus",value:function(t,e,n={}){this.__hasCache(n)&&(this.store[t].status=e)}},{key:"__getStoreOptionsWithDefaults",value:function(t={},e){const n=!e||"GET"===e,{cacheTime:r}=t,s=n?this.cacheTime:0,i="number"==typeof r?r:s;return{...t,cacheTime:i}}},{key:"__hasCache",value:function(t={}){const e=this.__getStoreOptionsWithDefaults(t);return!!e&&this.storeName&&"number"==typeof e.cacheTime&&e.cacheTime>0}},{key:"__getInitialStore",value:function(){const t={...localStorage},e={};return Object.keys(t).forEach(t=>{const n=t.split(this.__getStorePrefix());t.includes(this.storeName)&&n[1]&&(e[n[1]]={})}),e}},{key:"__initStore",value:function(t={},e=!1){Object.keys(t).forEach(t=>{this.__setStore(t,{},{clean:e}),this.__checkAndClearStoreStatus(t)})}},{key:"__checkAndClearStoreStatus",value:function(t){const{inProgressState:e,initState:n}=this.storeStates;this.store[t].status!==e||d[t]||(this.store[t].status=n),d[t]=!0}},{key:"__setStore",value:function(t,e={},n={clean:!1,reset:!1}){const r=this.__getStoreName(t);n.clean&&((0,c.bC)(r),this.store[t]=(0,c.KA)(r,e)),n.reset&&((0,c.zp)(r),Object.keys(e).forEach(n=>{this.store[t][n]=e[n]})),this.store[t]=(0,c.KA)(r,e)}},{key:"__getStoreName",value:function(t){return`${this.__getStorePrefix()}${t}`}},{key:"__getStorePrefix",value:function(){return`${this.storeName}.`}},{key:"getStoreName",value:function(t,e={},n){return this.__endpointStoreName(t,e,n)}},{key:"__endpointStoreName",value:function(t,e,n){const r=(0,h.$N)({},e,n);return this.__getEndpointWithParams(t,r)}},{key:"getStore",value:function(t,e={},n){if(!t)return{...this.store};const r=this.__endpointStoreName(t,e,n);return this.store[r]||{}}},{key:"updateStore",value:function(t,e={},n,r={}){this.__updateStore(t,e,n,r,!0)}},{key:"setStore",value:function(t,e={},n,r={},s){this.__updateStore(t,e,n,r,{merge:!1,...s})}},{key:"deleteStore",value:function(t,e={},n){const r=this.__endpointStoreName(t,e,n);delete this.store[r],(0,c.bC)(r)}},{key:"listenStore",value:function(t,e,n){e&&this.store[e]?this.store[e].subscribe(e=>{t(e)},n):t({})}},{key:"__updateStore",value:function(t,e={},n,r={},s){const i={merge:!0,...s},a=this.__endpointStoreName(t,e,n);if(!t||!this.store[a])return null;const o=i.isDataMapped?this.__mappedDataStoreKey(s):"raw";return i.merge?this.store[a][o]=(0,h.$N)({},this.store[a][o],r):this.store[a][o]=r,this.store[a][o]}}])}(l.E)},79516(t,e,n){n.d(e,{E:()=>c});var r=n(23029),s=n(49530),i=n(12595),a=n(31526),o=n(37252),u=n(71246);let c=function(){return(0,s.A)(function t(e,n,s={},i){(0,r.A)(this,t);const a=this.__isConfigString(e),o=a?e:e.serviceURL,u=a?n:e.auth;this.headers=!a&&e.headers?e.headers:{};const c=a?s:e.getParams,h=a?i:e.errorFormatter;this.errorTypes=this.__setErrorTypes(),a||(this.config=e),this.serviceURL=this.__getCleanUrl(o),this.auth=this.__getAuth(u),this.getParams=c||{},this.errorFormatter=h},[{key:"name",get:function(){return"FetchRestBase"}},{key:"logger",get:function(){return new o.V(this.name)}},{key:"__isConfigString",value:function(t){return t&&"string"==typeof t}},{key:"__setErrorTypes",value:function(){return{requiredParamErrorType:"RequiredParamError",requestErrorType:"RequestError",responseErrorType:"ResponseError",apiErrorType:"APIError",responseDataErrorType:"ResponseDataError",sdkErrorType:"SDKError"}}},{key:"__validateToken",value:async function(t={}){let e=this.auth instanceof Promise?await this.auth:this.auth;e&&e.token&&(this.auth=e);const n=t.token&&"undefined"!==t.token&&this.auth&&t.token===this.auth;if(n)this.logger.log("__validateToken: New Token is equal as existing one. Aborting ...");else{if(t.token&&(!this.auth||!n))return this.logger.log("__validateToken: Saving new token to Fetch auth"),void(this.auth=this.__getAuth(t.token));if(e=this.auth instanceof Promise?await this.auth:this.auth,e&&e.token&&(this.auth=e),!t.token&&!this.auth){this.logger.log("__validateToken: Empty new token, empty Fetch auth. Getting new token ...");const t=await this.__getToken();t&&(this.auth=this.__getAuth(t))}}}},{key:"__getToken",value:async function(t){return this.logger.log("__getToken default"),t}},{key:"request",value:async function(t,e={},n,r={},s){const i=(r.method||"GET").toUpperCase(),a=this.__getBody(n),o=this.__getEndpointWithParams(t,e);await this.__validateToken(r);const u=this.__getRequestOptions(a,{method:i,...r});return this.__handleFetch(this.serviceURL,o,u,s)}},{key:"get",value:async function(t,e={},n={},r){return this.request(t,e,null,n,r)}},{key:"post",value:async function(t,e={},n,r={},s){return this.request(t,e,n,{...r,method:"POST"},s)}},{key:"put",value:async function(t,e={},n,r={},s){return this.request(t,e,n,{...r,method:"PUT"},s)}},{key:"patch",value:async function(t,e={},n,r={},s){return this.request(t,e,n,{...r,method:"PATCH"},s)}},{key:"delete",value:async function(t,e={},n={},r){return this.request(t,e,null,{...n,method:"DELETE"},r)}},{key:"__getBody",value:function(t){return t instanceof FormData?t:t?JSON.stringify(t):null}},{key:"__getEndpointWithParams",value:function(t,e){const n=t.split("?"),r=n[0]||"",s=n[1],i=this.mergeSearchParams(this.getParams,e,s);return`${r}${i&&i.length>0?"?":""}${i}`}},{key:"mergeSearchParams",value:function(t,e,n){const r=[t,e].filter(t=>null!=t&&Object.keys(t).length>0).map(t=>(0,a.FN)(t)).join("&"),s=n?`${r}&${n}`:r;return this.normalizeSearchString(s)}},{key:"normalizeSearchString",value:function(t){const e=t.split("&").map(t=>t.split("=")).map(t=>[decodeURIComponent(t[0]),t[1]?decodeURIComponent(t[1]).split(","):[]]),n={};return e.forEach(t=>{n[t[0]]?n[t[0]]=n[t[0]].concat(t[1]):n[t[0]]=t[1]}),[...Object.keys(n).flatMap(t=>[...new Set(n[t])].map(e=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`)),...Object.keys(n).filter(t=>0===n[t].length).map(t=>encodeURIComponent(t))].sort().join("&")}},{key:"__getAuth",value:function(t,e="Bearer"){return t?"object"==typeof t?t:{type:e,token:t}:null}},{key:"__getAuthHeader",value:function({type:t="Bearer",token:e}){return{Authorization:`${t} ${e}`}}},{key:"__getRequestOptions",value:function(t,e){const{method:n="POST"}=e,{headers:r}=this,s={headers:r};t instanceof FormData||(s.headers={...s.headers,"Content-Type":"application/json"});const a=this.__getAuthOptions(s,e),o=e.abortController;return{method:n,...t&&{body:t},...o&&{signal:o.signal},...(0,i.$N)({},s,a,e)}}},{key:"__getAuthOptions",value:function(t,e){const n={},{token:r,credentials:s}=e,i=r?{token:r}:this.auth;return i&&(n.headers={...t.headers,...this.__getAuthHeader(i)},n.credentials=s||"include"),n}},{key:"__handleFetch",value:async function(t,e,n,r){const s=this.__getCleanEndpoint(e),i=this.__getUrl(t,s);let a,o;this.__validateUrl(i);const{requestErrorType:c,responseErrorType:h,apiErrorType:l,responseDataErrorType:_}=this.errorTypes;try{a=await this.__fetch(i,n)}catch(t){o=(0,u.IM)(t,c,"")}let f,y;if(!o&&!a.ok)try{f=await a.json()}catch(t){if(n.returnResponse)return{body:f,ok:a.ok,status:a.status};o=(0,u.IM)(t,h,a.status)}if(!o&&f){if(n.returnResponse)return{body:f,ok:a.ok,status:a.status};o=(0,u.IM)(f,l,a.status,this.errorFormatter)}if(!o)try{const t=n.readResponseMethod||"json";y=await a[t]()}catch(t){if(n.returnResponse)return a;
1if(n.noDataReturned)return null;o=(0,u.IM)(t,_,a.status)}if(o)throw console.error(o),o;return"function"==typeof r?r(y):y}},{key:"__fetch",value:async function(t,e){return e.credentials="include",fetch(t,e)}},{key:"__getUrl",value:function(t,e){return e.startsWith("http")?e:`${t}${e}`}},{key:"__getCleanEndpoint",value:function(t){return this.serviceURL?t.startsWith("http")||"/"===t[0]||"?"===t[0]||!t?t:`/${t}`:t}},{key:"__getCleanUrl",value:function(t){return t?"/"===t[t.length-1]?t.slice(0,-1):t:""}},{key:"__validateUrl",value:function(t){const e="/"===t[0]?`https://domain${t}`:t,{sdkErrorType:n}=this.errorTypes;try{new URL(e)}catch(e){throw new u.JP("InvalidParameter",n,"",`Invalid URL/path: ${t}`)}}}])}()},76883(t,e,n){var r=n(23029),s=n(49530),i=n(16045);let a=function(){return(0,s.A)(function t(e={}){(0,r.A)(this,t),this.NS=e,this.isValid()?(this.fetchApi=new i.$({store:{storeName:"i18n",cacheTime:3e3}}),this.NS.isInit=!0,this.__setTranslations()):this.NS.isActive=!1},[{key:"isValid",value:function(){return this.NS&&this.NS.endpoint}},{key:"__setTranslations",value:async function(){this.NS.isReady=!1,this.fetchApiPromise=this.fetchApi.get(this.NS.endpoint).then(t=>{this.NS.status="ok",this.NS.items=t||{}}).catch(t=>{this.NS.status="api error",this.NS.apiError=t,this.NS.items={}}).finally(()=>{this.NS.isReady=!0})}},{key:"__getTranslations",value:async function(){return this.isValid()?(void 0===this.NS.isReady&&this.__setTranslations(),!1===this.NS.isReady&&await this.fetchApiPromise,this.NS.items):{}}},{key:"__getTranslationItem",value:async function(t){const e=t?.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9.-\s]/g,"");return(await this.__getTranslations()||{})[e]||{t:e,missing:!0}}},{key:"__getTranslationByType",value:async function(t,e){if(!this.isValid())return t;const n=await this.__getTranslationItem(t);return n.type!==e?t:n.t||n._||t}},{key:"public",value:function(){if(!this.isValid())return{label:t=>t,text:t=>t,image:t=>t,item:t=>t,items:[]};const t=this.__getTranslationByType.bind(this),e=this.__getTranslationItem.bind(this),n=this.__getTranslations.bind(this);return{label:async e=>t(e,"label"),text:async e=>t(e,"text"),image:async e=>t(e,"image"),item:async t=>e(t),items:async()=>n()}}}])}();if(window.i18n=window.i18n||{},!window.i18n.fetch){const t=new a(window.i18n);window.i18n.fetch=t.public()}const o=window.i18n.fetch;n.d(e,["c",0,t=>new a({endpoint:t}).public(),"d",0,o])},71246(t,e,n){n.d(e,{JP:()=>h});var r=n(23029),s=n(49530),i=n(50388),a=n(53954),o=n(85501);function u(t,e,n){return e=(0,a.A)(e),(0,i.A)(t,c()?Reflect.construct(e,n||[],(0,a.A)(t).constructor):e.apply(t,n))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}let h=function(t){function e(t="",n="",s="",i="",a="",o,c="",h=!0){var l;(0,r.A)(this,e),l=u(this,e,[i]);const _=!1!==o?Error.captureStackTrace:()=>{};return _&&_ instanceof Function&&_(l,e),h&&(l.stack=null),l.name=t||l.constructor.name,l.message=i||l.constructor.message,l.type=n||l.constructor.type,l.code=s||l.constructor.code,l.details=a||l.constructor.details,l.statusCode=c||l.constructor.statusCode,l}return(0,o.A)(e,t),(0,s.A)(e,[{key:"toJSON",value:function(){return{name:this.name,type:this.type,code:this.code,message:this.message,details:this.details,stacktrace:this.stack,statusCode:this.statusCode}}}])}((0,n(28614).A)(Error));n.d(e,["IM",0,(t,e,n="",r=t=>t,s)=>{const i=r(t);if("string"==typeof i)return new h(i,e,n,"");const{name:a,type:o,message:u,details:c,code:l,captureStackTrace:_}=i,f=l||n,y=((t,e)=>{if(!t.code||!e)return t.message;const n=t.code.toString();return e[n]||e[`${n[0]}xx`]||t.message})({code:l,message:u},s);return new h(a,o||e,f,y,c,_,n)}])},36606(t,e,n){var r=n(37252);n.d(e,["R",0,(t,e)=>{const n=Object.entries(t)[0],s=n[0],i=n[1],a=new r.V("UTIL.initAPI");return s&&i?(window.raqnAPI=window.raqnAPI||{},window.raqnAPI[s]?(a.info("API already initialized.",s,window.raqnAPI[s].config),window.raqnAPI[s]):(a.info("Initializing API ...",s),window.raqnAPI[s]=new i(e),a.info("API saved",window.raqnAPI[s]),window.raqnAPI[s])):(a.info("Get API Error. API class not val
1id."),null)}])}}]);

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.