1(()=>{var t={443(t,e,n){var i;void 0===(i=function(){"use strict";return window.$svjq}.call(e,n,e,t))||(t.exports=i)},913(t,e,n){var i;void 0===(i=function(){"use strict";return window._sv}.call(e,n,e,t))||(t.exports=i)},419(t,e){!function(){var n=Array.prototype.forEach,i=Object.prototype.hasOwnProperty,r=Array.prototype.slice,s=0;var o,a={keys:Object.keys||function(t){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("keys() called on a non-object");var e,n=[];for(e in t)t.hasOwnProperty(e)&&(n[n.length]=e);return n},uniqueId:function(t){var e=++s+"";return t?t+e:e},has:function(t,e){return i.call(t,e)},each:function(t,e,i){if(null!=t)if(n&&t.forEach===n)t.forEach(e,i);else if(t.length===+t.length)for(var r=0,s=t.length;r<s;r++)e.call(i,t[r],r,t);else for(var o in t)this.has(t,o)&&e.call(i,t[o],o,t)},once:function(t){var e,n=!1;return function(){return n||(n=!0,e=t.apply(this,arguments),t=null),e}}};o={on:function(t,e,n){return u(this,"on",t,[e,n])&&e?(this._events||(this._events={}),(this._events[t]||(this._events[t]=[])).push({callback:e,context:n,ctx:n||this}),this):this},once:function(t,e,n){if(!u(this,"once",t,[e,n])||!e)return this;var i=this,r=a.once(function(){i.off(t,r),e.apply(this,arguments)});return r._callback=e,this.on(t,r,n)},off:function(t,e,n){var i,r,s,o,c,h,l,d;if(!this._events||!u(this,"off",t,[e,n]))return this;if(!t&&!e&&!n)return this._events={},this;for(c=0,h=(o=t?[t]:a.keys(this._events)).length;c<h;c++)if(t=o[c],s=this._events[t]){if(this._events[t]=i=[],e||n)for(l=0,d=s.length;l<d;l++)r=s[l],(e&&e!==r.callback&&e!==r.callback._callback||n&&n!==r.context)&&i.push(r);i.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=r.call(arguments,1);if(!u(this,"trigger",t,e))return this;var n=this._events[t],i=this._events.all;return n&&h(n,e),i&&h(i,arguments),this},stopListening:function(t,e,n){var i=this._listeners;if(!i)return this;var r=!e&&!n;for(var s in"object"==typeof e&&(n=this),t&&((i={})[t._listenerId]=t),i)i[s].off(e,n,this),r&&delete this._listeners[s];return this}};var c=/\s+/,u=function(t,e,n,i){if(!n)return!0;if("object"==typeof n){for(var r in n)t[e].apply(t,[r,n[r]].concat(i));return!1}if(c.test(n)){for(var s=n.split(c),o=0,a=s.length;o<a;o++)t[e].apply(t,[s[o]].concat(i));return!1}return!0},h=function(t,e){var n,i=-1,r=t.length,s=e[0],o=e[1],a=e[2];switch(e.length){case 0:for(;++i<r;)(n=t[i]).callback.call(n.ctx);return;case 1:for(;++i<r;)(n=t[i]).callback.call(n.ctx,s);return;case 2:for(;++i<r;)(n=t[i]).callback.call(n.ctx,s,o);return;case 3:for(;++i<r;)(n=t[i]).callback.call(n.ctx,s,o,a);return;default:for(;++i<r;)(n=t[i]).callback.apply(n.ctx,e)}};a.each({listenTo:"on",listenToOnce:"once"},function(t,e){o[e]=function(e,n,i){return(this._listeners||(this._listeners={}))[e._listenerId||(e._listenerId=a.uniqueId("l"))]=e,"object"==typeof n&&(i=this),e[t](n,i,this),this}}),o.bind=o.on,o.unbind=o.off,o.mixin=function(t){return a.each(["on","once","off","trigger","stopListening","listenTo","listenToOnce","bind","unbind"],function(e){t[e]=this[e]},this),t},t.exports&&(e=t.exports=o),e.BackboneEvents=o}()},370(t,e,n){t.exports=n(419)},714(t){"use strict";(t.exports=function(){}).extend=function(t,e){const n=this;let i;i=t&&Object.prototype.hasOwnProperty.call(t,"constructor")?t.constructor:function(){return n.apply(this,arguments)};Object.assign(i,n,e),i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}
1),t&&Object.assign(i.prototype,t);return i.__super__=n.prototype,i}},899(t,e,n){"use strict";n.d(e,{A:()=>i}),t=n.hmd(t);const i=function(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:t)}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={id:i,loaded:!1,exports:{}};return t[i].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t={};n.r(t),n.d(t,{captcha:()=>M,csrf:()=>L});var e={};n.r(e),n.d(e,{doDelete:()=>Q,doGet:()=>H,doPatch:()=>W,doPost:()=>F,doPut:()=>B});var i={};n.r(i),n.d(i,{publish:()=>K});var r={};n.r(r),n.d(r,{__DO_NOT_USE__ActionTypes:()=>X,applyMiddleware:()=>at,bindActionCreators:()=>rt,combineReducers:()=>nt,compose:()=>ot,createStore:()=>tt});var s=n(443),o=n.n(s),a=n(913),c=n.n(a),u=n(714),h=n.n(u),l=n(370),d=n.n(l);const p=/^(\S+)\s*(.*)$/,f=(()=>{const t=()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1);return()=>`${t()}${t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`})();function m(t,e,n){t&&Object.entries(t).forEach(function([t,i]){var r=t.match(p);e.call(n,r[1],r[2],i)})}function b(t,e,n){t&&Object.entries(t).forEach(function([t,i]){n.listenTo(e,t,n[i])})}function g(t,e,n){t&&Object.entries(t).forEach(function([t,i]){n.stopListening(e,t,n[i])})}function v(t){t.forEach(function(t){t._unbindEvents(),t._subComponents&&t._subComponents.length&&v(t._subComponents)})}var y=function(){var t=/(^|:)(\w)/gi;function e(t,e,n){return n.toUpperCase()}return function(n,i,r){var s=arguments.length<3;s&&(i=(r=i)[0]);var o,a=n["on"+i.replace(t,e)];return"function"==typeof a&&(o=a.apply(n,s?c().rest(r):r)),"function"==typeof n.trigger&&(s+r.length>1?n.trigger.apply(n,s?r:[i].concat(c().drop(r,0))):n.trigger(i)),o}}();const w=function(t,e,n,i,r,s,a){return h().extend(Object.assign({tagName:"div",isRendered:!1,constructor:function(t,e){var i;if(e?(this.$el=e.$el,this.cid=e.cid,i=e.serverRendered,this.options=e.options):e={},this.cid||(this.cid=f()),this._bindEvents(),this.state=t,this._subComponents=[],this.listenToOnce(n,"components:loaded",function(t){var n=e.subComponents;n&&(this._subComponents=n.map(function(e){return t[e]}))}),this.on("attached",this._bindDOMEvents),this.triggerMethod("init"),i){var r={serverRendered:i};this.triggerMethod("rendered",r),this.triggerMethod("attached",r)}},filterState:function(){return{}},$:function(t){return this.$el.find(t)},_bindEvents:function(){this.events&&(b(this.events.app,n,this),b(this.events.router,i,this),b(this.events.global,s,this),function(t,e,n){t&&(n._unsubscribe=e.subscribe(()=>{var i=n.filterState(e.getState(),n.options);c().isEqual(n.state,i)||n[t](i)}))}(this.events.store,a,this),function(t,e){t&&Object.entries(t).forEach(function([t,n]){e.on(t,e[n])})}(this.events.self,this))},_bindDOMEvents:function(){this.events&&m(this.events.dom,function(t,e,n){this.$el.off(t,e,this[n]).on(t,e,o().proxy(this[n],this))},this)},_unbindEvents:function(){this.events&&(g(this.events.app,n,this),g(this.events.router,i,this),function(t,e){t&&Object.entries(t).forEach(function([t,n]){e.off(t,e[n])})}(this.events.self,this),function(t){t._unsubscribe&&t._unsubscribe()}(this),m(this.events.dom,function(t,e,n){this.$el.off(t,e,this[n])},this))},_templateFunctions:function(){var s=this.renderTemplate.bind(this),o=this;return{renderer:{renderPartial:function(t,n){var i=e(t);return s(i,n)},renderComponent:(t,n)=>{var i=e("/component/"+t),r=i.prototype.filterState(a.getState(),n),s=new i(r,{options:n});o._subComponents.push(s),o.renderedSubComponents[s.cid]=s;var u=c().escape(c().result(s,"tagName"));return"<"+u+' data-cid="'+s.cid+'"></'+u+">"}},getUrl:i.getUrl.bind(i),getStandaloneUrl:i.getStandaloneUrl.bind(i),getResourceUrl:function(t){return"/"===t.charAt(0)&&(t=t.substring(1)),"/webapp-files/"+window.sv.PageContext.pageId+"/"+n.webAppAopId+"/"+n.webAppImportTime+"/"+t},i18n:r,appContext:{getWebAppNamespace:function(e){return e+t.portletId.replace(".","_")}}}},_ensureEl:function(){this.$el||(this.$el=o()("<"+c().escape(c().result(this,"tagName"))+"/>").data("cid",this.cid))},getTemplate:function(){return this.template},renderTemplate:function(t,e){return t(Object.assign(this._templateFunctions(),c().result(this,"templateFunctions"),e))},render:function(){var t,e;return this.renderedSubComponents={},v(this._subComponents),this._subComponents=[],this._ensureEl(),(e=c().escape(c().result(this,"className")))&&this.$el.addClass(e),(t=c().result(this,"attributes"))&&this.$el.attr(t),this.$el.html(this.renderTemplate(this.getTemplate(),this.state)),this.isRendered=!0,this.triggerMethod("rendered"),Object.entries(this.renderedSubComponents).forEac
1h(function([t,e]){this.$el.find('[data-cid="'+t+'"]').replaceWith(e.render().$el)},this),this.triggerMethod("attached"),this},destroy:function(){this.triggerMethod("destroy"),this._unbindEvents(),v(this._subComponents),this.$el&&this.$el.remove()},setState:function(t,e,n){var i,r={};"object"==typeof t?(i=t,n=e):(i={})[t]=e,n||(n={}),Object.entries(i).forEach(function([t,e]){this.state[t]!==e&&(this.state[t]=e,r[t]=e)},this),Object.entries(r).forEach(function([t,e]){this.triggerMethod("state:changed:"+t,e,n)},this),this.triggerMethod("state:changed",r,n)},triggerMethod:function(){y(this,arguments)}},d()))};function _(t){t.forEach(function(t){t._unbindEvents(),t._subComponents&&t._subComponents.length&&_(t._subComponents)})}const E=function(t,e,n){return t.extend({addItem:function(t,e){const n=this._createChildComponent(t,e&&e.options);this.$el[e&&e.prepend?"prepend":"append"](n.render().$el)},_createChildComponent:function(t,i){if(!this.childComponentPath)throw new Error("No child component specified");this.ChildComponent||(this.ChildComponent=e("/component/"+this.childComponentPath)),i=Object.assign({},i,{id:t.id}),t=Object.assign(t,this.ChildComponent.prototype.filterState(n.getState(),i));const r=new this.ChildComponent(t,{options:i});return this._subComponents.push(r),r},triggerChildren:function(t,e){this._subComponents.forEach(function(n){n.trigger(t,e)})},getChildAt:function(t){return this._subComponents[t]},getChildById:function(t){return this._subComponents.find(function(e){return e.state.id===t})},removeChildById:function(t){const e=this.getChildById(t);e&&(this._subComponents=this._subComponents.filter(t=>t!==e),e.destroy())},render:function(){const t=o()("<div></div>"),e=c().result(this,"className"),n=c().result(this,"attributes"),i=c().result(this,"childOptions",{});return _(this._subComponents),this._subComponents=[],this._ensureEl(),this.$el.removeClass(),e&&this.$el.addClass(e),n&&this.$el.attr(n),this.state[this.childProperty].forEach(function(e){t.append(this._createChildComponent(e,i).render().$el)},this),this.$el.html("").append(t.children()),this.isRendered=!0,this.triggerMethod("rendered"),this.triggerMethod("attached"),this}})};function C(t,e){var n=[];return Object.entries(e).forEach(function([e,i]){t[e]!==i&&n.push(e)}),Object.keys(t).forEach(function(t){Object.hasOwn(e,t)||n.push(t)}),n}function O(t,e){var n=t.length?t.slice(1).split("&"):[],i={};return n.forEach(function(t){t=t.split("="),i[t[0]]=decodeURIComponent(t[1]||"")}),Object.fromEntries(Object.entries(i).filter(([t])=>"sv.target"!==t&&t!==e))}function j(t,e){var n=t.substring(t.indexOf("?")+1).split("&").find(function(t){return 0===t.indexOf(e)}),i=n?n.split("=")[1]:"/";return decodeURIComponent(i)}function x(t){return null==t||0===t.trim().length}const S=h().extend(Object.assign({constructor:function(t){this.history=window.history,this.location=window.location,this.portletId=t.portletId,this.pathParameterName="sv."+this.portletId+".route",this.currentQueryString=this.location.search,this.currentPath=j(this.location.href,this.pathParameterName),window.addEventListener("popstate",this._handleRouteChange.bind(this),!1)},_handleRouteChange:function(){var t=j(this.location.href,this.pathParameterName),e=O(this.location.search,this.pathParameterName),n=C(O(this.currentQueryString,this.pathParameterName),e);if(t!==this.currentPath&&(this.currentPath=t,this.trigger("path:changed",{path:t,url:this.location.search})),this.currentQueryString=this.location.search,n.length){var i={queryParams:e,url:this.location.search};n.forEach(function(t){this.trigger("query:changed:"+t,i)},this),n.length&&this.trigger("query:changed",i)}},getUrl:function(t,e){const n=x(t)?j(this.location.search,this.pathParameterName):t;let i="?sv.target="+this.portletId+"&"+this.pathParameterName+"="+n;return e&&Object.entries(e).forEach(function([t,e]){i+="&"+(!0===e?encodeURIComponent(t):encodeURIComponent(t)+"="+encodeURIComponent(e))}),i},getStandaloneUrl:function(t,e){var n=window.sv.PageContext.pageId;if(!n)return"/";var i,r,s,o=window.sv.PageContext.dashboardId;return o?i="/edit-dashboard/"+n+"/"+o+"/"+this.portletId+t:(i="/appresource/"+n+"/"+this.portletId+t,window.sv.PageContext.
1inEdit&&!i.includes("version=")&&(e=e||{},e=Object.assign({version:0},e))),e&&(i+="?"+(r=e,s=[],Object.entries(r).forEach(function([t,e]){s.push(encodeURIComponent(t)+"="+encodeURIComponent(e))}),s.join("&"))),i},parseQueryString:function(){return O(this.location.search,this.pathParameterName)},navigate:function(t,e){const n=x(t)?j(this.location.href,this.pathParameterName):j(t,this.pathParameterName),i=e&&e.queryParams,r=e&&e.replace,s=this.getUrl(n,i),o=O(s,this.pathParameterName),a=C(O(this.location.search,this.pathParameterName),o);if(this.history[r?"replaceState":"pushState"]({},document.title,s),n!==this.currentPath&&(this.currentPath=n,this.trigger("path:changed",{path:n,url:s})),this.currentQueryString=s,a.length){var c={queryParams:o,url:s};a.forEach(function(t){this.trigger("query:changed:"+t,c)},this),this.trigger("query:changed",c)}}},d()));function I(t){return t.split("-")[0]}const k=h().extend({constructor:function(t,e,n){this.defaultLocale=e,this.bundles=n,this.bundle=function(t,e,n){const i=Object.assign({},n[e]);if(t===e)return i;let r;const s=I(t).toLowerCase();return Object.keys(n).find(function(e){const i=I(e).toLowerCase();if(s===i&&(r=n[e],t===e))return!0}),r&&Object.assign(i,r),i}(t,e,n)},get:function(t){if(1===arguments.length)return this.bundle[t]||t;const e=Array.prototype.slice.call(arguments,1);let n=this.bundle[t];for(var i=0;i<e.length;i++){var r=new RegExp("\\{"+i+"\\}","gm");n=n.replace(r,e[i])}return n||t},forLocale:function(t){if(t)return new this.constructor(t,this.defaultLocale,this.bundles)}}),A=h().extend(Object.assign({constructor:function(t){this.$el=o()("#"+t.htmlElementId),this.portletId=t.portletId,this.route=t.route,this.locale=t.locale,this.defaultLocale=t.defaultLocale,this.webAppId=t.webAppId,this.webAppVersion=t.webAppVersion,this.webAppAopId=t.webAppAopId,this.webAppImportTime=t.webAppImportTime,this.childComponentStateExtractionStrategy=t.childComponentStateExtractionStrategy}},d())),T=Object.assign({},d()),P="[data-sv-captcha-provider][data-sv-captcha-state]",N=function(t){const e=t.getAttribute("data-sv-captcha-state");return{captchaId:t.id,widget:t,provider:t.getAttribute("data-sv-captcha-provider"),state:e,valid:"verified"===e}},R=function(t){const e=function(t){if("string"==typeof t)return document.getElementById(t);if(null==t)return null;if(!(t instanceof Element))throw new TypeError("Captcha container must be an HTMLElement or a DOM element id");return t}(t);if(!e)return null;const n=[];if(e.matches(P)&&n.push(e),e.querySelectorAll(P).forEach(function(t){n.push(t)}),n.length>1)throw new Error("Captcha container contains multiple widgets; use a narrower container");return n[0]||null};document.addEventListener("SVWebAppCaptchaStateChanged",function(t){const e=t.target;e instanceof Element&&e.matches(P)&&T.trigger("svCaptcha:stateChanged",N(e))});const L={getToken:function(){return window.sv.PageContext.csrfToken||null},getParameterName:function(){return"sv.csrfToken"},getHeaderName:function(){return"X-CSRF-Token"}},M={init:()=>{document.dispatchEvent(new Event("SVInitCaptchaTrigger"))},getState:t=>{const e=R(t);return e?N(e):null}};function $(t){let e=!1;if(t.fileUpload&&/put|post|patch/i.test(t.type)?(t.processData=!1,t.contentType=!1):t.data&&"object"!=typeof t.data||(e=!0,t.data=t.data||{},t.data.svAjaxReqParam="ajax"),!/get/i.test(t.type)&&e&&!1!==t.processData&&(t.processData=!1,t.data=JSON.stringify(t.data)),/put|post|patch|delete/i.test(t.type)){const e=L.getToken();e&&(t.headers=t.headers||{},t.headers[L.getHeaderName()]=e)}return o().ajax(t)}const q={type:"get",dataType:"json"},U=Object.assign({},{contentType:"application/json; charset=utf-8"},q),D={get:Object.assign({},q),put:Object.assign({},U,{type:"put"}),post:Object.assign({},U,{type:"post"}),delete:Object.assign({},U,{type:"delete"}),patch:Object.assign({},U,{type:"patch"})},H=function(t){return $(Object.assign({},D.get,t))},B=function(t){return $(Object.assign({},D.put,t))},F=function(t){return $(Object.assign({},D.post,t))},Q=function(t){return $(Object.assign({},D.delete,t))},W=function(t){return $(Object.assign({},D.patch,t))},Y=window.sv.i18n,V={type:"",alertRole:!0},G=function(){const t={delay:4,showCheckmark:!1,classes:{base:"sv-toast__container",prefix:"env-toast--",toast:"env-toast",bottomLeft:"sv-bottom-left",visible:"env-toast--visible",hidden:"env-toast--hide",close:"env-toast__close"}};let e;const n=[],i=t.classes,r=i.base;function s(t){for(;
1t.lastChild;)t.removeChild(t.lastChild)}const o=function(){let t,e,n=!1;const i={animation:"animationend",OAnimation:"oAnimationEnd oanimationend",msAnimation:"MSAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(t in i)if(void 0!==document.documentElement.style[t]){e=i[t],n=!0;break}return{type:e,supported:n}}();function a(n){n.__internal||(n.__internal={delay:t.delay},e=document.createElement("DIV"),e.className=r,e.classList.add(i.bottomLeft)),e.parentNode!==document.body&&document.body.appendChild(e)}function c(t,r){function a(t,e){"close"===t.target.getAttribute("data-dismiss")&&e.dismiss(!0)}function c(t,n){n.element.removeEventListener(o.type,c),e.removeChild(n.element)}function u(t,e){return function(){if(arguments.length>0){const n=[];for(let t=0;t<arguments.length;t+=1)n.push(arguments[t]);return n.push(t),e.apply(t,n)}return e.apply(t,[null,t])}}function h(t){clearTimeout(t.__internal.timer),clearTimeout(t.__internal.transitionTimeout)}return l={element:t,push:function(t,r,s,o){if(!this.__internal.pushed){let c,u;switch((a=this).__internal.pushed=!0,n.push(a),h(this),arguments.length){case 0:u=this.__internal.delay;break;case 1:"number"==typeof t?u=t:(c=t,u=this.__internal.delay);break;case 2:c=t,u=r;break;case 3:case 4:c=t,u=r,this.__internal.showCheckmark=s}return void 0!==c&&this.setContent(c,o),e.appendChild(this.element),function(t){void 0===t&&(t=document.documentElement),t.offsetHeight}(this.element),this.element.classList.add(i.visible),this.element.addEventListener("click",this.__internal.clickHandler),this.delay(u)}var a;return this},ondismiss:function(){},callback:r,dismiss:function(t){var r;return this.__internal.pushed&&(h(this),"function"==typeof this.ondismiss&&!1===this.ondismiss.call(this)||(this.element.removeEventListener("click",this.__internal.clickHandler),void 0!==this.element&&this.element.parentNode===e&&(this.__internal.transitionTimeout=setTimeout(this.__internal.transitionEndHandler,o.supported?1e3:100),this.element.classList.add(i.hidden),"function"==typeof this.callback&&this.callback.call(this,t)),r=this,n.splice(n.indexOf(r),1),r.__internal.pushed=!1)),this},delay:function(t){if(h(this),this.__internal.delay=void 0===t||isNaN(+t)?G.__internal.delay:+t,this.__internal.delay>0){const t=this;this.__internal.timer=setTimeout(function(){t.dismiss()},1e3*this.__internal.delay)}return this},setContent:function(t,e){const n=document.createElement("div");n.classList.add("env-toast__content"),e&&n.setAttribute("role","alert"),"string"==typeof t?(s(this.element),n.innerHTML=t):t instanceof window.HTMLElement&&n.firstChild!==t&&(s(this.element),n.appendChild(t)),this.element.appendChild(n),this.__internal.showCheckmark&&this.element.insertAdjacentHTML("afterbegin",'<div class="sv-toast-checkmark env-m-left--medium"><svg class="env-icon env-icon--small">\n <use xlink:href="/sitevision/envision-icons.svg#icon-check-done"></use>\n </svg></div>');const r=document.createElement("button");return r.classList.add(i.close),r.insertAdjacentHTML("beforeend",'<svg data-dismiss="close" class="env-icon env-icon--small">\n <use data-dismiss="close" xlink:href="/sitevision/envision-icons.svg#icon-delete"></use>\n </svg>'),r.setAttribute("aria-label",Y.getText("common","close")),r.setAttribute("data-dismiss","close"),this.element.appendChild(r),this}},l.__internal||(l.__internal={pushed:!1,delay:void 0,timer:void 0,clickHandler:void 0,transitionEndHandler:void 0,transitionTimeout:void 0,showCheckmark:void 0},l.__internal.clickHandler=u(l,a),l.__internal.transitionEndHandler=u(l,c)),l;var l}return{create:function(t,e){a(this);const n=document.createElement("div");return n.className=i.toast+("string"==typeof t&&""!==t?" "+i.prefix+t:""),c(n,e)}}}();document.addEventListener("sv-publish-toast",t=>{const e=t.detail;var n,i;e.heading&&(e.message=(n=e.heading,i=e.message,"<strong>"+n+"</strong> "+i)),G.create(e.type,e.callback).push(e.message,e.ttl,e.checkmark,e.alertRole)});const K=t=>{try{const e=new CustomEvent("sv-publish-toast",{detail:Object.assign({},V,t)}
1);document.dispatchEvent(e)}catch{window.console.log("Something went wrong! Failed to create Toast!")}};var z=n(899),J=function(){return Math.random().toString(36).substring(7).split("").join(".")},X={INIT:"@@redux/INIT"+J(),REPLACE:"@@redux/REPLACE"+J(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+J()}};function Z(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function tt(t,e,n){var i;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function");if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(tt)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var r=t,s=e,o=[],a=o,c=!1;function u(){a===o&&(a=o.slice())}function h(){if(c)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function l(t){if("function"!=typeof t)throw new Error("Expected the listener to be a function.");if(c)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var e=!0;return u(),a.push(t),function(){if(e){if(c)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");e=!1,u();var n=a.indexOf(t);a.splice(n,1)}}}function d(t){if(!Z(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(c)throw new Error("Reducers may not dispatch actions.");try{c=!0,s=r(s,t)}finally{c=!1}for(var e=o=a,n=0;n<e.length;n++){(0,e[n])()}return t}return d({type:X.INIT}),(i={dispatch:d,subscribe:l,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");r=t,d({type:X.REPLACE})}})[z.A]=function(){var t,e=l;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new TypeError("Expected the observer to be an object.");function n(){t.next&&t.next(h())}return n(),{unsubscribe:e(n)}}})[z.A]=function(){return this},t},i}function et(t,e){var n=e&&e.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function nt(t){for(var e=Object.keys(t),n={},i=0;i<e.length;i++){var r=e[i];0,"function"==typeof t[r]&&(n[r]=t[r])}var s,o=Object.keys(n);try{!function(t){Object.keys(t).forEach(function(e){var n=t[e];if(void 0===n(void 0,{type:X.INIT}))throw new Error('Reducer "'+e+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:X.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+e+"\" returned undefined when probed with a random type. Don't try to handle "+X.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(n)}catch(t){s=t}return function(t,e){if(void 0===t&&(t={}),s)throw s;for(var i=!1,r={},a=0;a<o.length;a++){var c=o[a],u=n[c],h=t[c],l=u(h,e);if(void 0===l){var d=et(c,e);throw new Error(d)}r[c]=l,i=i||l!==h}return i?r:t}}function it(t,e){return function(){return e(t.apply(this,arguments))}}function rt(t,e){if("function"==typeof t)return it(t,e);if("object"!=typeof t||null===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(t),i={},r=0;r<n.length;r++){var s=n[r],o=t[s];"function"==typeof o&&(i[s]=it(o,e))}return i}function st(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ot(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce(function(t,e){return function(){return t(e.apply(void 0,arguments))}})}function at(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),i=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},r={getState:n.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=e.map(function(t){return t(r)});return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}
1))),i.forEach(function(e){st(t,e,n[e])})}return t}({},n,{dispatch:i=ot.apply(void 0,s)(n.dispatch)})}}}const ct=window.AppRegistry,ut=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,ht=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,lt=/^(react|react-dom|react-dom\/client|react\/jsx-runtime)$/,dt=function(t){return t},pt=function(t){const e=t.split("."),n=e[0],i=e[1];return window.sv.UNSAFE_MAY_CHANGE_AT_ANY_GIVEN_TIME_webAppExternals["react_"+n+"_"+i]},ft=h().extend({constructor:function(n,s,a){this.requiredLibs=n.requiredLibs,this.app=new A(n),this.router=new S(n);const u=new k(n.locale,n.defaultLocale,s);this.i18n=u.get.bind(u),this.i18n.get=u.get.bind(u),this.initialState=ct.getInitialState(this.app.portletId),this.store=tt(dt,this.initialState),this.agnosticRender=a&&a.AGNOSTIC_RENDERER;const h=w(n,this.require.bind(this),this.app,this.router,this.i18n,T,this.store);this.bootstrapData=a,this.modules={app:this.app,router:this.router,i18n:this.i18n,events:T,requester:{...e},toasts:{...i},security:{...t},url:{get:this.router.getUrl.bind(this.router)}}
1,this.agnosticRender||Object.assign(this.modules,{underscore:c(),jquery:o(),Component:h,ListComponent:E(h,this.require.bind(this),this.store),redux:{...r},store:this.store}),this.definitions={},this.definitionQue=[]},start:function(){if(this.startModules(),this.agnosticRender){const t=this.require("/main"),e='[data-cid="'+this.app.portletId+'"]',n=this.app.$el.find(e)[0]||document.querySelector(e);t.default?t.default(this.initialState,n):"function"==typeof t&&t(this.initialState,n)}else this.setUpReducer(),this.setUpComponents()},setUpReducer:function(){const t=this.require("/reducer");t&&this.modules.store.replaceReducer(t)},setUpComponents:function(){const t={},e=this.modules.store.getState(),n=this.app.childComponentStateExtractionStrategy;this.bootstrapData&&Object.entries(this.bootstrapData).forEach(function([i,r]){let s;if(s="main"===i?this.require("/"+i):this.require("/component/"+i),!s)return void window.console.error("Error in: "+this.app.webAppId+". Could not load component with name "+i);let a=0;Object.entries(r).forEach(function([i,r]){const c=o()('[data-cid="'+i+'"]'),u=s.prototype.filterState(e,r.options);if("BY_PARENT_PROPERTY"===n&&r.options&&r.options._parentProperty){const t=e[r.options._parentProperty];t&&Object.assign(u,t[a++])}t[i]=new s(u,{$el:c,serverRendered:!0,cid:i,subComponents:r.subComponents,options:r.options})})},this),this.app.trigger("components:loaded",t)},require:function(t){return this.requiredLibs.react&<.test(t)?pt(this.requiredLibs.react)[t]:this.modules[t]},define:function(t,e,n){let i=!1;n||(n=e,e=void 0,i=!0),e||"function"!=typeof n||(e=[],n.length&&n.toString().replace(ht,"").replace(ut,function(t,n){e.push(n)})),this.definitions[t]={path:t,callback:n,deps:e,usesRequireFunction:i},this.definitionQue.push({path:t,deps:e,callback:n,usesRequireFunction:i})},startModule:function(t){this.modules[t.path]||(t.deps.forEach(function(e){let n;-1===Object.keys(this.modules).indexOf(e)&&(lt.test(e)||(n=this.definitions[e],n?this.startModule(this.definitions[e]):window.console.error("Error in: "+this.app.webAppId+'. Missing dependency "'+e+'" in module '+t.path)))},this),t.usesRequireFunction?this.modules[t.path]=t.callback(this.require.bind(this)):this.modules[t.path]=t.callback.apply(null,t.deps.map(function(t){return this.requiredLibs.react&<.test(t)?pt(this.requiredLibs.react)[t]:this.modules[t]}.bind(this))))},startModules:function(){this.definitionQue.forEach(this.startModule,this)},createDefine:function(t){return Object.assign(this.define.bind(this,t),{amd:{jQuery:!0}})}}),mt=window.AppRegistry;({start:function(t){t=t||mt.getRegistry(),mt.setAppStarter(this),Object.values(t).forEach(function(t){t.instances.forEach(function(e){const n=new ft(e,t.bundle,mt.getBootstrapData(e.portletId));Object.entries(t.modules).forEach(function([t,e]){e.module(n.createDefine(t))}),n.start()})})}}).start()})()})(); 2//# sourceMappingURL=webapp_sdk-legacy.js.map
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.