1var gt=Object.defineProperty;var wo=Object.getOwnPropertyDescriptor;var No=Object.getOwnPropertyNames;var Ao=Object.prototype.hasOwnProperty;var V=(t,e)=>{for(var o in e)gt(t,o,{get:e[o],enumerable:!0})},ht=(t,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of No(e))!Ao.call(t,n)&&n!==o&>(t,n,{get:()=>e[n],enumerable:!(r=wo(e,n))||r.enumerable});return t},c=(t,e,o)=>(ht(t,e,"default"),o&&ht(o,e,"default"));function Te(t){return t&&typeof t=="object"&&t.nodeType===9}function Se(t){return t&&t===t.window}function Io(t,e){let o=t;return Se(t)&&(o=t.document.documentElement),Te(t)&&(o=t.documentElement),o[`client${e}`]}function vo(t){let e=Po(t),o=Ho(t);return Ye(e,e,0,o,0,o)}function Po(t){return yt(t,"Height")}function Oo(t,e){return t.offsetLeft+(e?0:_t(t).left)}function Mo(t,e){return t.offsetTop+(e?0:_t(t).top)}function Oe(t,e){return t?Te(t)||Se(t)?vo(t):jo(t.getBoundingClientRect(),e):{bottom:0,height:0,left:0,right:0,top:0,width:0}}function ko(t){return Se(t)?t.pageXOffset:Te(t)?t.defaultView.pageXOffset:t.scrollLeft}function Do(t){return Se(t)?t.pageYOffset:Te(t)?t.defaultView.pageYOffset:t.scrollTop}function yt(t,e){if(Se(t))return Io(t,e);if(Te(t)){let o=t.documentElement;return Math.max(t.body[`scroll${e}`],o[`scroll${e}`],t.body[`offset${e}`],o[`offset${e}`],o[`client${e}`])}return Math.max(t[`client${e}`],t[`scroll${e}`],t[`offset${e}`])}function $o(t){let e=getComputedStyle(t),o=e.mozTransform||e.msTransform||e.transform;if(o!=="none"){let r=[],n=/([\d-.\s]+)/g,i=n.exec(o);for(;i;)r.push(i[1]),i=n.exec(o);return r}}function _t(t){let e=$o(t),o={left:0,top:0};return e&&(o.left=parseFloat(e.length===6?e[4]:e[13]),o.top=parseFloat(e.length===6?e[5]:e[14])),o}function Ho(t){return yt(t,"Width")}function Et(t,e){return Ro(t.top,t.left,t.bottom,t.right,e.top,e.left,e.bottom,e.right)}function Ro(t,e,o,r,n,i,s,a){return!(n>o||s<t||i>r||a<e)}function Uo(t,e){return e.top>=t.top&&e.bottom<=t.bottom&&e.right<=t.right&&e.left>=t.left}function Fo(t){return Uo(Oe(window),t)}function Bo(t,e){if(!Et(t,e))return null;let o=Math.min(t.bottom,e.bottom),r=Math.min(t.right,e.right),n=Math.max(t.left,e.left),i=Math.max(t.top,e.top);return Ye(o,o-i,n,r,i,r-n)}function Ye(t,e,o,r,n,i){return{bottom:t,height:e,left:o,right:r,top:n,width:i}}function jo(t,e=!1){let o=e?ko(document):0,r=e?Do(document):0;return Ye(t.bottom+r,t.height,t.left+o,t.right+o,t.top+r,t.width)}var T={BottomCenter:4,BottomLeft:5,BottomRight:3,LeftCenter:6,RightCenter:2,TopCenter:0,TopLeft:7,TopRight:1};T.Bottom=T.BottomCenter;T.Left=T.LeftCenter;T.Right=T.RightCenter;T.Top=T.TopCenter;function Vo(t,e,o,r=!0){let n;if(r){let s=ze(t,e,o);o=s.position,n=s.region}else n=Me(t,e,o);if(window.getComputedStyle(t).getPropertyValue("position")!=="fixed"){n.top+=window.pageYOffset,n.left+=window.pageXOffset;let s=t;for(;s=s.offsetParent;)n.top-=Mo(s),n.left-=Oo(s)}return t.style.top=n.top+"px",t.style.left=n.left+"px",o}function qo(t,e,o){return ze(t,e,o).region}function Me(t,e,o){let r=Oe(e),n=Oe(t),i=0,s=0;switch(o){case T.TopCenter:i=r.top-n.height,s=r.left+r.width/2-n.width/2;break;case T.RightCenter:i=r.top+r.height/2-n.height/2,s=r.left+r.width;break;case T.BottomCenter:i=r.bottom,s=r.left+r.width/2-n.width/2;break;case T.LeftCenter:i=r.top+r.height/2-n.height/2,s=r.left-n.width;break;case T.TopRight:i=r.top-n.height,s=r.right-n.width;break;case T.BottomRight:i=r.bottom,s=r.right-n.width;break;case T.BottomLeft:i=r.bottom,s=r.left;break;case T.TopLeft:i=r.top-n.height,s=r.left;break;default:break}return{bottom:i+n.height,height:n.height,left:s,right:s+n.width,top:i,width:n.width}}function ze(t,e,o){let r=0,n=o,i=Me(t,e,n),s=n,a=i,l=Oe(window);for(let d=0;d<8;){if(Et(l,a)){let h=Bo(l,a),g=h.width*h.height;if(g>r&&(r=g,i=a,n=s),Fo(a))break}s=(o+ ++d)%8,a=Me(t,e,s)}return{position:n,region:i}}var Lt="alterReturn",Ge="halt",xt="__METAL_AOP__",bt="prevent",Xe=class t{constructor(e,o){this.after_=[],this.before_=[],this.fnName_=o,this.fn_=e[o],this.obj_=e}createHandle(e,o){return{detach:this.detach_.bind(this,e,o)}}detach_(e,o){let r=o?this.before_:this.after_;r.splice(r.indexOf(e),1)}exec(...e){let o,r=!1,n;for(let i=0;i<this.before_.length;i++)if(o=this.before_[i].apply(this.obj_,e),o&&o.type){if(o.type===Ge)return o.value;o.type===bt&&(r=!0)}r||(n=this.fn_.apply(this.obj_,e)),t.currentRetVal=n,t.originalRetVal=n;for(let i=0;i<this.after_.length;i++)if(o=this.after_[i].apply(this.obj_,e),o&&o.type){if(o.type===Ge)return o.value;o.type===Lt&&(n=o.value,t.currentRetVal=n)}return n}register(e,o){return o?this.before_.push(e):this.after_.push(e),this.createHandle(e,o)}static after(e,o,r){return t.inject(!1,e,o,r)}static alterReturn(e){return t.modify_(Lt,e)}static before(e,o,r){return t.inject(!0,e,o,r)}static halt(e){return t.modify_(Ge,e)}static inject(e,o,r,n){let i=r[xt];
1return i||(i=r[xt]={}),i[n]||(i[n]=new t(r,n),r[n]=function(...s){return i[n].exec(...s)}),i[n].register(o,e)}static modify_(e,o){return{type:e,value:o}}static prevent(){return t.modify_(bt)}},Wo=Xe;var Ke={'"':""","&":"&","'":"'","/":"/","<":"<",">":">","`":"`"};var Yo={};Object.entries(Ke).forEach(([t,e])=>{Yo[e]=t});var zo=Object.keys(Ke),Go=new RegExp(`[${zo.join("")}]`,"g"),Xo=/&([^\s;]+);/g;function ie(t){return t.replace(Go,e=>Ke[e])}function Ko(t){return t.replace(Xo,e=>new DOMParser().parseFromString(e,"text/html").documentElement.textContent)}var Ct=" ",Je=class{constructor(e){this.inputElement=e,this.computedStyle=getComputedStyle(this.inputElement),this.minHeight=parseInt(this.computedStyle.height.replace("px",""),10),this.paddingHeight=parseInt(this.computedStyle.paddingTop.replace("px",""),10)+parseInt(this.computedStyle.paddingBottom.replace("px",""),10),this.template=this.createTemplate(this.computedStyle),document.body.appendChild(this.template),this.inputElement.addEventListener("input",this.handleInput),this._resizeInput(this.inputElement)}createTemplate(e){let o=document.createElement("pre");return o.style.clip="rect(0, 0, 0, 0) !important",o.style.left="0",o.style.overflowWrap="break-word",o.style.position="absolute",o.style.top="0",o.style.transform="scale(0)",o.style.whiteSpace="pre-wrap",o.style.wordBreak="break-word",o.style.fontFamily=e.fontFamily,o.style.fontSize=e.fontSize,o.style.fontStyle=e.fontStyle,o.style.fontWeight=e.fontWeight,o.style.lineHeight=e.lineHeight,o.style.letterSpacing=e.letterSpacing,o.style.textTransform=e.textTransform,o.style.width=e.width,o.textContent=Ct,o}handleInput=e=>{requestAnimationFrame(()=>{this._resizeInput(e.target)})};_resizeInput(e){this.template.style.width!==this.computedStyle.width&&(this.template.style.width=this.computedStyle.width),this.template.innerHTML=ie(e.value)+Ct,e.style.height=`${this.template.scrollHeight+this.paddingHeight<this.minHeight?this.minHeight:this.template.scrollHeight+this.paddingHeight}px`}},Jo=Je;var Tt=(t,e,o={})=>{let r=`${t}=${e}`;o.path||(r+="; path=/"),!o.expires&&!("max-age"in o)&&(r+=`; max-age=${365*24*60*60}`);for(let[n,i]of Object.entries(o))i!==!1&&(i===!0?r+=`; ${n}`:r+=`; ${n}=${i}`);return r};function Ze(t,e){if(X(e))return document.cookie.split("; ").find(o=>o.startsWith(`${t}=`))?.split("=")[1]}function Zo(t){document.cookie=Tt(t,"",{"max-age":0})}function Qo(t,e,o,r){return X(o)?(document.cookie=Tt(t,e,r),!0):!1}var pe={FUNCTIONAL:"CONSENT_TYPE_FUNCTIONAL",NECESSARY:"CONSENT_TYPE_NECESSARY",PERFORMANCE:"CONSENT_TYPE_PERFORMANCE",PERSONALIZATION:"CONSENT_TYPE_PERSONALIZATION"};function X(t){return t===pe.NECESSARY||Ze(t,pe.NECESSARY)!=="false"}function er(t,e){return function o(){let r=arguments;St(o),o.id=setTimeout(()=>{t(...r)},e)}}function St(t){clearTimeout(t.id)}var tr={blur:!0,error:!0,focus:!0,invalid:!0,load:!0,scroll:!0};function or(t){return!!(t.disabled||t.closest("[disabled]"))}function rr(t,e,o,r){let n=i=>{let{defaultPrevented:s,target:a}=i;if(s||e==="click"&&or(a))return;let l=a.closest(o);l&&(i.delegateTarget=l,r(i))};return t.addEventListener(e,n,!!tr[e]),{dispose(){t.removeEventListener(e,n)}}}var me=rr;function P(t){let e=typeof t;return e==="object"&&t!==null||e==="function"}function he(t={},e=new FormData,o){return Object.entries(t).forEach(([r,n])=>{let i=o?`${o}[${r}]`:r;Array.isArray(n)?n.forEach(s=>{he({[i]:s},e)}):P(n)&&!(n instanceof File)?he(n,e,i):e.append(i,n)}),e}function wt(t){return typeof t=="string"&&(t=document.querySelector(t)),t}var Qe=class{get namespace(){return this._STATE_.namespace}get portletNamespace(){return this._STATE_.portletNamespace}get rootNode(){return this._STATE_.rootNode}set portletNamespace(e){this.rootNode=`#p_p_id${e}`,this._STATE_.portletNamespace=e}set namespace(e){this.rootNode=`#p_p_id${e}`,this._STATE_.namespace=e}set rootNode(e){typeof e=="string"&&(e=document.getElementById(e[0]==="#"?e.slice(1):e)),this._STATE_.rootNode=e}constructor(e){this._EVENTS_={},this._STATE_={namespace:null,portletNamespace:null,rootNode:null};let{namespace:o,portletNamespace:r,rootNode:n}=e;o&&(this.namespace=o),r&&(this.portletNamespace=r),n&&(this.rootNode=n),this.created(e),this.attached(e)}dispose(){this.disposeInternal(),this.detached(),this.disposed()}attached(){}created(){}detached(){}disposed(){}disposeInternal(){}emit(e,o){let r=this._EVENTS_[e];if(r&&r.length)for(let n=0;n<r.length;n++)r[n](o)}on(e,o){this._EVENTS_[e]||(this._EVENTS_[e]=[]),this._EVENTS_[e].push(o)}},et=class extends Qe{all(e,o){return o=wt(o)||this.rootNode||document,o.querySelectorAll(this.namespaceSelectors_(this.portletNamespace||this.namespace,e))}fetch(e,o){let r=this.getRequestBody_(o);return fetch(e,{body:r,credentials:"include",method:"POST"})}getRequestBody_(e){let o;return e instanceof FormData?o=e:e instanceof HTMLFormElement?o=new FormData(e):typeof e=="object"?o=he(this.ns(e)):o=e,o}namespaceSelectors_(e,o){return o.replace(new RegExp(`(#|\\[id=(\\"|\\'))(?!`+e+")","g"),"$1"+e)}ns(e){return Liferay.Util.ns(this.portletNamespace||this.namespace,e)}one(e,o){return o=wt(o)||this.rootNode||document,o.querySelector(this.namespaceSelectors_(this.portletNamespace||this.namespace,e))}},we=et;{/*removed: await import('@liferay/language...')*/};var tt=class extends we{attached(){let{rootNode:e}=this;e=e||document.body,this.inlineScrollEventHandler_=me(e,"scroll","ul.pagination ul.inline-scroller",this.onScroll_.bind(this))}created(e){this.cur=Number(e.cur),this.curParam=e.curParam,this.forcePost=e.forcePost,this.formName=e.formName,this.initialPages=Number(e.initialPages),this.jsCall=e.jsCall,this.namespace=e.namespace,this.pages=Number(e.pages),this.randomNamespace=e.randomNamespace,this.url=e.url,this.urlAnchor=e.urlAnchor,this.handleListItemClick_=this.handleListItemClick_.bind(this)}detached(){super.detached(),this.inlineScrollEventHandler_.dispose(),document.createElement("li").removeEventListener("click",this.handleListItemClick_)}addListItem_(e,o){let r=document.createElement("li");r.innerHTML=`<a class="dropdown-item" href="${this.getHREF_(o)}"><span class="sr-only">${'Page'} </span>${o}</a>`,o++,e.appendChild(r),e.setAttribute("data-page-index",o),r.addEventListener("click",this.handleListItemClick_)}getHREF_(e){let{curParam:o,formName:r,jsCall:n,namespace:i,url:s,urlAnchor:a}=this,l=`javascript:document.${r}.${i}${o}.value = "${e}; ${n}`;return this.url!==null&&(l=`${s}&${i}${o}=${e}${a}`),l}getNumber_(e){return Number(e??0)}handleListItemClick_(e){if(this.forcePost){e.preventDefault();let{curParam:o,namespace:r,randomNamespace:n}=this,i=document.getElementById(n+r+"pageIteratorFm");i.elements[r+o].value=e.currentTarget.textContent,i.submit()}}onScroll_(e){let{cur:o,initialPages:r,pages:n}=this,{target:i}=e;if(i.nodeName!=="UL")return;let s=this.getNumber_(i.dataset.pageIndex),a=this.getNumber_(i.dataset.maxIndex);if(s===0){let l=this.getNumber_(i.dataset.currentIndex);l===0?s=r:s=l+r}a===0&&(a=n),o<=n&&s<a&&i.scrollTop>=i.scrollHeight-300&&this.addListItem_(i,s)}},nr=tt;function ke(t,e){let o=null;if(t!==void 0&&t.nodeName==="FORM"&&typeof e=="string"){let r=t.dataset.fmNamespace||"";o=t.elements[r+e]||null}return o}function De(t,e){if(t===void 0||t.nodeName!=="FORM"||!P(e))return;Object.entries(e).forEach(([r,n])=>{let i=ke(t,r);
1i&&(i.value=n)})}function Nt(t,e){if(typeof t=="string"&&(t=document.querySelector(t)),t&&t.nodeName==="FORM")if(t.setAttribute("method","post"),P(e)){let{data:o,url:r}=e;if(P(o))De(t,o);else return;r===void 0?submitForm(t):typeof r=="string"&&submitForm(t,r)}else submitForm(t)}var Ne={PHONE:768,TABLET:980};var ir={BAD_REQUEST:400,INTERNAL_SERVER_ERROR:500,OK:200,SC_DUPLICATE_FILE_EXCEPTION:490,SC_FILE_ANTIVIRUS_EXCEPTION:494,SC_FILE_CUSTOM_EXCEPTION:499,SC_FILE_EXTENSION_EXCEPTION:491,SC_FILE_NAME_EXCEPTION:492,SC_FILE_SIZE_EXCEPTION:493,SC_UPLOAD_REQUEST_SIZE_EXCEPTION:495};var sr={ALERT:430,DOCK:10,DOCK_PARENT:20,DRAG_ITEM:460,DROP_AREA:440,DROP_POSITION:450,MENU:5e3,OVERLAY:1e3,POPOVER:1600,TOOLTIP:1e4,WINDOW:1200};var ot=class extends we{callAction(e){let o=e.data.item.data;o&&o.action&&this[o.action]&&this[o.action](o)}handleActionItemClicked(e){this.callAction(e)}handleCreationButtonClicked(e){let o=e.data.data;o&&o.action&&this[o.action]&&this[o.action](o)}handleCreationMenuItemClicked(e){this.callAction(e)}handleFilterItemClicked(e){this.callAction(e)}handleItemClicked(e){this.callAction(e)}},ar=ot;var rt=class{constructor(){this._disposed=!1}dispose(){this._disposed||(this.disposeInternal(),this._disposed=!0)}disposeInternal(){}isDisposed(){return this._disposed}},se=rt;var nt=class extends se{constructor(e,o,r){super(),this._emitter=e,this._event=o,this._listener=r}disposeInternal(){this.removeListener(),this._emitter=null,this._listener=null}removeListener(){this._emitter.isDisposed()||this._emitter.removeListener(this._event,this._listener)}},it=nt;var At=[0],st=class extends se{constructor(){super(),this._events=null,this._listenerHandlers=null,this._shouldUseFacade=!1}_addHandler(e,o){return e?(Array.isArray(e)||(e=[e]),e.push(o)):e=o,e}addListener(e,o,r){this._validateListener(o);let n=this._toEventsArray(e);for(let i=0;i<n.length;i++)this._addSingleListener(n[i],o,r);return new it(this,e,o)}_addSingleListener(e,o,r,n){this._runListenerHandlers(e),(r||n)&&(o={default:r,fn:o,origin:n}),this._events=this._events||{},this._events[e]=this._addHandler(this._events[e],o)}_buildFacade(e){if(this.getShouldUseFacade()){let o={preventDefault(){o.preventedDefault=!0},target:this,type:e};return o}}disposeInternal(){this._events=null}emit(e){let o=this._getRawListeners(e);if(!o.length)return!1;let r=Array.prototype.slice.call(arguments,1);return this._runListeners(o,r,this._buildFacade(e)),!0}_getRawListeners(e){return $e(this._events&&this._events[e]).concat($e(this._events&&this._events["*"]))}getShouldUseFacade(){return this._shouldUseFacade}listeners(e){return this._getRawListeners(e).map(o=>o.fn?o.fn:o)}many(e,o,r){let n=this._toEventsArray(e);for(let i=0;i<n.length;i++)this._many(n[i],o,r);return new it(this,e,r)}_many(e,o,r){let n=this;if(o<=0)return;function i(){--o===0&&n.removeListener(e,i),r.apply(n,arguments)}n._addSingleListener(e,i,!1,r)}_matchesListener(e,o){return(e.fn||e)===o||e.origin&&e.origin===o}off(e,o){if(this._validateListener(o),!this._events)return this;let r=this._toEventsArray(e);for(let n=0;n<r.length;n++)this._events[r[n]]=this._removeMatchingListenerObjs($e(this._events[r[n]]),o);return this}on(){return this.addListener.apply(this,arguments)}onListener(e){this._listenerHandlers=this._addHandler(this._listenerHandlers,e)}once(e,o){return this.many(e,1,o)}removeAllListeners(e){if(this._events)if(e){let o=this._toEventsArray(e);for(let r=0;r<o.length;r++)this._events[o[r]]=null}else this._events=null;return this}_removeMatchingListenerObjs(e,o){let r=[];for(let n=0;n<e.length;n++)this._matchesListener(e[n],o)||r.push(e[n]);return r.length?r:null}removeListener(){return this.off.apply(this,arguments)}_runListenerHandlers(e){let o=this._listenerHandlers;if(o){o=$e(o);for(let r=0;r<o.length;r++)o[r](e)}}_runListeners(e,o,r){r&&o.push(r);let n=[];for(let i=0;i<e.length;i++){let s=e[i].fn||e[i];e[i].default?n.push(s):s.apply(this,o)}if(!r||!r.preventedDefault)for(let i=0;i<n.length;i++)n[i].apply(this,o)}setShouldUseFacade(e){return this._shouldUseFacade=e,this}_toEventsArray(e){return typeof e=="string"&&(At[0]=e,e=At),e}_validateListener(e){if(typeof e!="function")throw new TypeError("Listener must be a function")}};function $e(t){return t=t||[],Array.isArray(t)?t:[t]}var lr=st;var at=class extends se{constructor(){super(),this._eventHandles=[]}add(...e){for(let o=0;o<e.length;o++)this._eventHandles.push(e[o])}disposeInternal(){this._eventHandles=null}removeAllListeners(){for(let e=0;e<this._eventHandles.length;e++)this._eventHandles[e].removeListener();this._eventHandles=[]}},fr=at;var ae={};V(ae,{default:()=>K});c(ae,Vn);import*as Vn from"../../frontend-taglib-clay/__liferay__/exports/@clayui$button.js";
1import cr from"../../frontend-taglib-clay/__liferay__/exports/@clayui$button.js";var K=cr;var ge={};V(ge,{default:()=>lt});c(ge,Wn);import*as Wn from"../../frontend-taglib-clay/__liferay__/exports/@clayui$loading-indicator.js";import dr from"../../frontend-taglib-clay/__liferay__/exports/@clayui$loading-indicator.js";var lt=dr;var $={};V($,{default:()=>q});c($,zn);import*as zn from"../../frontend-taglib-clay/__liferay__/exports/@clayui$modal.js";import ur from"../../frontend-taglib-clay/__liferay__/exports/@clayui$modal.js";var q=ur;var I={};c(I,Gn);import*as Gn from"../../frontend-js-react-web/__liferay__/index.js";var le={};V(le,{default:()=>ye});c(le,Kn);import*as Kn from"../../frontend-js-react-web/__liferay__/exports/classnames.js";import pr from"../../frontend-js-react-web/__liferay__/exports/classnames.js";var ye=pr;var _e={};V(_e,{default:()=>u});c(_e,Zn);import*as Zn from"../../frontend-js-react-web/__liferay__/exports/prop-types.js";import mr from"../../frontend-js-react-web/__liferay__/exports/prop-types.js";var u=mr;var m={};V(m,{default:()=>f});c(m,ei);import*as ei from"../../frontend-js-react-web/__liferay__/exports/react.js";import hr from"../../frontend-js-react-web/__liferay__/exports/react.js";var f=hr;var He=document.createElement("link");He.setAttribute("rel","stylesheet");He.setAttribute("type","text/css");He.setAttribute("href",Liferay.ThemeDisplay.getPathContext()+"/o/frontend-js-web/liferay/modal/Modal.css");document.querySelector("head").appendChild(He);function G(t,e){let o=t;t?.constructor?.name==="URL"&&(o=String(t)),Liferay.SPA?.app?.canNavigate(o)?(Liferay.SPA.app.navigate(o),e&&Object.keys(e).forEach(r=>{Liferay.once(r,e[r])})):gr(o)&&(window.location.href=o)}function gr(t){let e;try{t.startsWith("/")?e=new URL(t,window.location.origin):e=new URL(t)}catch{return!1}return e.protocol==="http:"||e.protocol==="https:"}{/*removed: await import('@liferay/language...')*/};var It=({bodyComponent:t,bodyHTML:e,buttons:o,center:r,className:n,containerProps:i={className:"cadmin"},contentComponent:s,customEvents:a,disableAutoClose:l,disableHeader:d,footerCssClass:h,headerCssClass:g,headerHTML:w,height:N,id:E,iframeBodyCssClass:ee,iframeProps:Y={},onClose:H,onOpen:L,role:R="dialog",size:O,status:te,title:oe,url:b,zIndex:U})=>{let[F,re]=(0,m.useState)(!0),{observer:x,onOpenChange:p,open:S}=(0,$.useModal)({onClose:()=>M()});(0,m.useEffect)(()=>{p(!0)},[p]);let D=(0,m.useRef)([]),M=(0,m.useCallback)(()=>{if(!S)return;p(!1),document.body.classList.remove("modal-open");let _=D.current;_.forEach(A=>{A.detach()}),_.splice(0,_.length),H&&H()},[D,H,p,S]),We=({formId:_,onClick:A,type:y})=>{let B=v=>{v.requestSubmit?v.requestSubmit():v.dispatchEvent(new Event("submit",{cancelable:!0}))&&v.submit()};
1if(y==="cancel")M();else if(b&&y==="submit"){let v=document.querySelector(".liferay-modal iframe");if(v){let z=v.contentWindow.document,C=z.querySelectorAll("form");if(C.length,_){let ne=z.getElementById(_);ne&&B(ne)}else C.length>=1&&B(C[0])}}A&&A({processClose:M})},Pe=({component:_,html:A})=>{let y=(0,m.useRef)();return(0,m.useEffect)(()=>{if(A){let B=document.createRange().createContextualFragment(A);y.current.innerHTML="",y.current.appendChild(B)}L&&L({container:y.current,processClose:M})},[A]),f.createElement("div",{className:"liferay-modal-body",ref:y},_&&f.createElement(_,{closeModal:M}))};return(0,m.useEffect)(()=>{let _=D.current;a&&a.forEach(y=>{if(y.name&&y.onEvent){let B=Liferay.on(y.name,v=>{y.onEvent(v)});_.push(B)}});let A=Liferay.on("closeModal",y=>{y.id&&E&&y.id!==E||(M(),y.redirect&&G(y.redirect))});return _.push(A),()=>{_.forEach(y=>{y.detach()}),_.splice(0,_.length)}},[a,D,E,H,L,M]),f.createElement(f.Fragment,null,S&&f.createElement(q,{center:r,className:ye("liferay-modal",n),containerProps:{...i},disableAutoClose:l,id:E,observer:x,role:R,size:b&&!O?"full-screen":O,status:te,zIndex:U},s?f.createElement(s,{closeModal:M}):f.createElement(f.Fragment,null,!d&&f.createElement(q.Header,{className:g},w?f.createElement("div",{dangerouslySetInnerHTML:{__html:w}}):oe,F&&f.createElement("span",{className:"sr-only"},"- ",'Loading')),f.createElement("div",{className:ye("modal-body",{"modal-body-iframe":b}),style:{height:N}},b&&f.createElement(f.Fragment,null,F&&f.createElement(lt,null),f.createElement(yr,{loading:F}),f.createElement(ft,{iframeBodyCssClass:ee,iframeProps:{id:E&&`${E}_iframe_`||"modalIframe",...Y},onOpen:L,processClose:M,title:oe,updateLoading:_=>{re(_)},url:b})),e&&f.createElement(Pe,{html:e}),t&&f.createElement(Pe,{component:t})),o&&f.createElement(q.Footer,{className:h,last:f.createElement(K.Group,{spaced:!0},o.map(({displayType:_,formId:A,id:y,label:B,onClick:v,type:z,...C},ne)=>f.createElement(K,{displayType:_,id:y,key:ne,onClick:()=>{We({formId:A,onClick:v,type:z})},type:z==="cancel"?"button":z,...C},B)))}))))},yr=({loading:t})=>{let[e,o]=(0,m.useState)(!0);return(0,m.useEffect)(()=>{t||setTimeout(()=>o(!1),1e3)},[t]),e?f.createElement("span",{className:"sr-only",role:"status"},!t&&'Loaded'):null},fe=t=>{t&&t.url&&t.bodyHTML,(0,I.render)(It,t,document.createElement("div"))},vt=({containerProps:t,footerCssClass:e,headerCssClass:o,iframeBodyCssClass:r,onClose:n,portletSelector:i,subTitle:s,title:a,url:l})=>{let d=document.querySelector(i);if(d&&l){let h=d.querySelector(".portlet-title")||d.querySelector(".portlet-title-default");if(h)if(d.querySelector("#cpPortletTitle")){let w=h.querySelector(".portlet-title-text");w&&(a=`${w.outerHTML} - ${a}`)}else a=`${h.textContent} - ${a}`;let g;s&&(g=`${a}<div class="portlet-configuration-subtitle small"><span class="portlet-configuration-subtitle-text">${s}</span></div>`),fe({containerProps:t,footerCssClass:e,headerCssClass:o,headerHTML:g,iframeBodyCssClass:r,onClose:n,title:a,url:l})}},_r=({bodyCssClass:t,portlet:e,uri:o,...r})=>{vt({iframeBodyCssClass:t,portletSelector:e,url:o,...r})},Ae=({buttonAddLabel:t='Add',buttonCancelLabel:e='Cancel',containerProps:o,customSelectEvent:r=!1,getSelectedItemsOnly:n=!0,height:i,id:s,iframeBodyCssClass:a,multiple:l=!1,onClose:d,onSelect:h,selectEventName:g,selectedData:w,selectedDataCheckboxesDisabled:N=!1,size:E,title:ee,url:Y,zIndex:H})=>{let L=[],R,O,te,oe=()=>{if(l&&!te){let b=R.document.querySelector(".searchcontainer");b?R.Liferay.componentReady(b.id).then(U=>{let re=(n?U.select.getAllSelectedElements():U.select._getAllElements(!1)).getDOMNodes();h(re.map(x=>{let p={};x.value&&(p.value=x.value),!n&&x.checked&&(p.checked=x.checked);let S=x.closest("dd, tr, li");return S&&Object.keys(S.dataset).length&&(p={...p,...S.dataset}),p})),O()}):O()}else h(te),O()};fe({buttons:l?[{displayType:"secondary",label:e,type:"cancel"},{label:t,onClick:oe}]:null,containerProps:o,height:i,id:s||g,iframeBodyCssClass:a,onClose:()=>{L.forEach(b=>{b.detach()}),L.splice(0,L.length),d&&d()},onOpen:({iframeWindow:b,processClose:U})=>{R=b,O=U;let F=b.document.body,re=F.querySelectorAll(".selector-button");if(w){let x=new Set(w);if(re.forEach(p=>{let S=p.dataset.entityid||p.dataset.entityname;x.has(S)?(p.disabled=!0,p.classList.add("disabled")):(p.disabled=!1,p.classList.remove("disabled"))}),l)for(let p of F.querySelectorAll(".searchcontainer tr")){let S=p.dataset.entityid||p.dataset.entityname;if(x.has(S)){let D=p.querySelector('input[type="checkbox"]');if(!D)continue;D.checked=!0,N&&(D.disabled=!0)}}}if(g){let x=Liferay.on(g,p=>{te=p.data||p,l||oe()});L.push(x),r||F.addEventListener("click",p=>{let S=p.target?.closest(".selector-button");S&&Liferay.fire(g,S.dataset)})}},size:E,title:ee,url:Y,zIndex:H})},Re="dialog-iframe-popup",ft=class extends f.Component{constructor(e){super(e),this.delegateHandlers=[],this.iframeRef=f.createRef();let o=new URL(e.url),r=o.searchParams.get("p_p_id"),n=e.iframeBodyCssClass||e.iframeBodyCssClass===""?`${Re} ${e.iframeBodyCssClass}`:`cadmin ${Re}`;o.searchParams.set(`_${r}_bodyCssClass`,n),this.state={src:o.toString()}}componentWillUnmount(){this.spaNavigationHandlers&&this.spaNavigationHandlers.forEac
1h(e=>{Liferay.detach(e)}),this.delegateHandlers.length&&(this.delegateHandlers.forEach(({dispose:e})=>e()),this.delegateHandlers=null)}onLoadHandler=()=>{let e=this.iframeRef.current.contentWindow;this.delegateHandlers.push(me(e.document,"click",".btn-cancel,.lfr-hide-dialog",()=>this.props.processClose()),me(e.document,"keydown","body",o=>{o.key==="Escape"&&this.props.processClose()})),e.document.body.classList.add(Re),e.Liferay.SPA&&(this.spaNavigationHandlers=[e.Liferay.on("beforeScreenFlip",()=>{e.document.body.classList.add(Re)})],this.props.onOpen&&this.spaNavigationHandlers.push(e.Liferay.on("screenFlip",()=>{this.props.onOpen({iframeWindow:e,processClose:this.props.processClose})}))),this.props.updateLoading(!1),e.onunload=()=>{this.props.updateLoading(!0)},Liferay.fire("modalIframeLoaded",{src:this.state.src}),this.props.onOpen&&this.props.onOpen({iframeWindow:e,processClose:this.props.processClose})};render(){return f.createElement("iframe",{...this.props.iframeProps,onLoad:this.onLoadHandler,ref:this.iframeRef,src:this.state.src,title:this.props.title})}};It.propTypes={bodyHTML:u.string,buttons:u.arrayOf(u.shape({displayType:u.oneOf(["danger","info","link",null,"primary","secondary","success","unstyled","warning"]),formId:u.string,id:u.string,label:u.string,onClick:u.func,type:u.oneOf(["cancel","submit"])})),center:u.bool,containerProps:u.object,contentComponent:u.elementType,customEvents:u.arrayOf(u.shape({name:u.string,onEvent:u.func})),disableHeader:u.bool,headerHTML:u.string,height:u.string,id:u.string,iframeProps:u.object,onClose:u.func,onOpen:u.func,role:u.string,size:u.oneOf(["full-screen","lg","md","sm"]),status:u.string,title:u.string,url:u.string};{/*removed: await import('@liferay/language...')*/};var Er=({message:t})=>{Liferay.CustomDialogs.enabled?fe({bodyHTML:ie(t),buttons:[{autoFocus:!0,label:'OK',onClick:({processClose:e})=>{e()}}],center:!0,disableHeader:!0}):alert(t)},Lr=Er;function Ee(t,e){if(!t||typeof t!="object"&&typeof t!="string")throw new TypeError("Parameter params must be an object or string");if(typeof e!="string")throw new TypeError("Parameter baseUrl must be a string");let o=e.startsWith("/")?new URL(e,location.href):new URL(e);return typeof t=="object"?Object.entries(t).forEach(([r,n])=>{o.searchParams.append(r,n)}):new URLSearchParams(t.trim()).forEach((n,i)=>{n?o.searchParams.append(i,n):o.searchParams.append(i,"")}),o.toString()}{/*removed: await import('@liferay/language...')*/};function Pt({onSelect:t,portletNamespace:e,redirectURL:o,selectCategoryURL:r,title:n}){Ae({buttonAddLabel:'Select',height:"70vh",iframeBodyCssClass:"",multiple:!0,onSelect:i=>{if(t){t(i);return}if(!Object.keys(i).length)return;let s=new URL(o),a=`_${s.searchParams.get("p_p_id")}_resetCur`;s.searchParams.set(a,"true");let l=Object.keys(i),d=s.href;l.forEach(h=>{d=Ee(`${e}assetCategoryId=${i[h].categoryId}`,d)}),G(d)},selectEventName:`${e}selectedAssetCategory`,size:"md",title:n||'Filter\x20by\x20Categories',url:r})}{/*removed: await import('@liferay/language...')*/};var xr=({message:t,onConfirm:e,status:o,title:r})=>{Liferay.CustomDialogs.enabled?fe({bodyHTML:ie(t),buttons:[{displayType:"secondary",label:'Cancel',type:"cancel"},{autoFocus:!0,displayType:o||"primary",label:'OK',onClick:({processClose:n})=>{n(),e(!0)}}],disableHeader:!r,footerCssClass:"border-0",headerCssClass:"border-0",onClose:()=>e(!1),role:"alertdialog",status:o,title:r}):e(confirm(t))},br=xr;{/*removed: await import('@liferay/language...')*/};function Ot({portletNamespace:t,redirectURL:e,selectTagURL:o,title:r}){Ae({buttonAddLabel:'Select',height:"70vh",iframeBodyCssClass:"",multiple:!0,onSelect:n=>{if(!n.length)return;let i=new URL(e),s=`_${i.searchParams.get("p_p_id")}_resetCur`;i.searchParams.set(s,"true");let a=n.map(d=>d.value),l=i.href;a.forEach(d=>{let h=JSON.parse(d);l=Ee(`${t}assetTagId=${h.tagName}`,l)}),G(l)},selectEventName:`${t}selectedAssetTag`,size:"lg",title:r||'Filter\x20by\x20Tags',url:o})}var k={};V(k,{default:()=>Tr});c(k,Ii);import*as Ii from"../../frontend-js-react-web/__liferay__/exports/react-dom.js";import Cr from"../../frontend-js-react-web/__liferay__/exports/react-dom.js";var Tr=Cr;var ce={};V(ce,{default:()=>Ie});c(ce,Pi);import*as Pi from"../../frontend-taglib-clay/__liferay__/exports/@clayui$alert.js";import Sr from"../../frontend-taglib-clay/__liferay__/exports/@clayui$alert.js";var Ie=Sr;var W={};V(W,{default:()=>ct});c(W,Mi);import*as Mi from"../../frontend-taglib-clay/__liferay__/exports/@clayui$form.js";import wr from"../../frontend-taglib-clay/__liferay__/exports/@clayui$form.js";var ct=wr;var Le={};V(Le,{default:()=>Ue});c(Le,Di);import*as Di from"../../frontend-taglib-clay/__liferay__/exports/@clayui$icon.js";import Nr from"../../frontend-taglib-clay/__liferay__/exports/@clayui$icon.js";var Ue=Nr;function Mt(t,e){return typeof t=="string"?t=e:t instanceof URL?t=new URL(e):t instanceof Request?t=new Request
1(e,t):console.warn("Resource passed to `fetch()` must either be a string, Request, or URL."),t}function de(t,e={}){t||(t="/o/");let o=t.url?t.url:t.toString();if(o.startsWith("/")){let s=Liferay.ThemeDisplay.getPathContext();s&&!o.startsWith(s)&&(o=s+o,t=Mt(t,o)),o=window.location.origin+o}let r=new URL(o),n=new Headers({}),i={};if(r.origin===window.location.origin){n.set("x-csrf-token",Liferay.authToken),i.credentials="include";let s=Liferay.ThemeDisplay.getDoAsUserIdEncoded();s&&(r.searchParams.set("doAsUserId",s),o=r.toString(),t=Mt(t,o))}return new Headers(e.headers||{}).forEach((s,a)=>{n.set(a,s)}),fetch(t,{...i,...e,headers:n})}{/*removed: await import('@liferay/language...')*/};var Ar=({alert:t,buttonSubmitLabel:e='Save',center:o,checkboxFieldLabel:r,checkboxFieldName:n,checkboxFieldValue:i,closeModal:s,dialogTitle:a,formSubmitURL:l,idFieldName:d,idFieldValue:h,initialVisible:g,mainFieldComponent:w,mainFieldLabel:N,mainFieldName:E,mainFieldPlaceholder:ee,mainFieldValue:Y="",method:H="POST",namespace:L,onFormSuccess:R,required:O=!0,size:te="md"})=>{let oe=(0,I.useIsMounted)(),[b,U]=(0,m.useState)(),[F,re]=(0,m.useState)(!1),[x,p]=(0,m.useState)(!1),[S,D]=(0,m.useState)(g),[M,We]=(0,m.useState)(Y),[Pe,_]=(0,m.useState)(i),A=C=>{U(C.error||"")},y=C=>{C&&Y&&!F&&(C.setSelectionRange(0,Y.length),re(!0))},B=C=>{C.preventDefault();let ne=M?"":'This\x20field\x20is\x20required\x2e';if(ne&&O){U(ne);return}p(!0);let So=new FormData(document.querySelector(`#${L}form`));de(l,{body:So,method:H}).then(j=>j.json()).then(j=>{oe()&&(j.error?(p(!1),A(j)):(D(!1),s(),j.redirectURL?G(j.redirectURL):R&&R({...j,redirectURL:j.redirectURL||""})))}).catch(j=>{A(j)})},{observer:v,onClose:z}=(0,$.useModal)({onClose:()=>{D(!1),s()}});return S&&f.createElement(q,{center:o,observer:v,size:te},f.createElement(q.Header,null,a),f.createElement(ct,{id:`${L}form`,noValidate:!0,onSubmit:B},f.createElement(q.Body,null,t&&t.message&&t.title&&f.createElement(Ie,{displayType:t.style,title:t.title},t.message),f.createElement("input",{name:`${L}${d}`,type:"hidden",value:h}),f.createElement("div",{className:`form-group ${b?"has-error":""}`},f.createElement("label",{className:"control-label",htmlFor:`${L}${E}`},N,O?f.createElement("span",{className:"reference-mark"},f.createElement(Ue,{symbol:"asterisk"})):null),f.createElement(W.ClayInput,{autoFocus:!0,className:"form-control",component:w,disabled:x,id:`${L}${E}`,name:`${L}${E}`,onChange:C=>{O&&U(C.target.value?"":'This\x20field\x20is\x20required\x2e'),We(C.target.value)},placeholder:ee,ref:y,required:O,type:"text",value:M}),b&&f.createElement("div",{className:"form-feedback-item",role:"alert"},f.createElement(Ue,{className:"inline-item inline-item-before",symbol:"exclamation-full"}),b)),n&&r&&f.createElement("div",{className:"form-check"},f.createElement(W.ClayCheckbox,{checked:Pe,disabled:x,label:r,name:`${L}${n}`,onChange:()=>_(C=>!C)}))),f.createElement(q.Footer,{last:f.createElement(K.Group,{spaced:!0},f.createElement(K,{disabled:x,displayType:"secondary",onClick:z},'Cancel'),f.createElement(K,{disabled:x,displayType:"primary",type:"submit"},x&&f.createElement("span",{className:"inline-item inline-item-before"},f.createElement("span",{"aria-hidden":"true",className:"loading-animation"})),e))})))},kt=Ar;var Dt="modalContainer",Ir={portletId:"UNKNOWN_PORTLET_ID"};function Ht(){let t=document.getElementById(Dt);return t||(t=document.createElement("div"),t.id=Dt,document.body.appendChild(t)),t}function $t(){(0,k.unmountComponentAtNode)(Ht())}function vr({alert:t,buttonSubmitLabel:e,center:o,checkboxFieldLabel:r,checkboxFieldName:n,checkboxFieldValue:i,dialogTitle:s,formSubmitURL:a,idFieldName:l,idFieldValue:d,mainFieldComponent:h,mainFieldLabel:g,mainFieldName:w,mainFieldPlaceholder:N,mainFieldValue:E,method:ee,namespace:Y,onFormSuccess:H,required:L,size:R}){$t(),(0,I.render)(f.createElement(kt,{alert:t,buttonSubmitLabel:e,center:o,checkboxFieldLabel:r,checkboxFieldName:n,checkboxFieldValue:i,closeModal:$t,dialogTitle:s,formSubmitURL:a,idFieldName:l,idFieldValue:d,initialVisible:"true",mainFieldComponent:h,mainFieldLabel:g,mainFieldName:w,mainFieldPlaceholder:N,mainFieldValue:E,method:ee,namespace:Y,onFormSuccess:H,required:L,size:R}),Ir,Ht())}var Pr=vr;function Fe(t){if(typeof t!="string")throw new TypeError("portletId must be a string");return`_${t}_`}var Or=/^[a-z][a-z0-9+.-]*:/i;function Mr(t){return Or.test(t)}function J(t,e={}){if(typeof t!="string")throw new TypeError("basePortletURL parameter must be a string");if(!e||typeof e!="object")throw new TypeError("parameters argument must be an object");let o=new Set(["doAsGroupId","doAsUserId","doAsUserLanguageId","p_auth","p_auth_secret","p_f_id","p_j_a_id","p_l_id","p_l_reset","p_p_auth","p_p_cacheability","p_p_i_id","p_p_id","p_p_isolated","p_p_lifecycle","p_p_mode","p_p_resource_id","p_p_state","p_p_state_rcv","p_p_static","p_p_url_type","p_p_width","p_t_lifecycle","p_v_l_s_g_id","refererGroupId","refererPlid","saveLastPath","scroll"]);t.indexOf(Liferay.ThemeDisplay.getPortalURL())!==0&&!Mr(t)&&(t.indexOf("/")!==0?t=`${Liferay.ThemeDisplay.getPortalURL()}/${t}`:t=Liferay.ThemeDisplay.getPortalURL()+t);
1let r=new URL(t),n=new URLSearchParams(r.search),i=e.p_p_id||n.get("p_p_id");if(Object.entries(e).length&&!i)throw new TypeError("Portlet ID must not be null if parameters are provided");let s="";return Object.entries(e).length&&(s=Fe(i)),Object.keys(e).forEach(a=>{let l;o.has(a)?l=a:l=`${s}${a}`,n.set(l,e[a])}),r.search=n.toString(),r}function Rt(t,e={}){return J(t,{...e,p_p_lifecycle:"1"})}function Ut(t,e={}){return J(t,{...e,p_p_lifecycle:"0"})}function Ft(t,e={}){return J(t,{...e,p_p_lifecycle:"2"})}async function dt(t){if(t.includes(" from ")){let[e,o]=kr(t);return(await import(e))[o]}else return new Promise((e,o)=>{Liferay.Loader.require(t,r=>e(r.default||r),r=>o(r))})}function kr(t){let e=t.split(" from "),o=e[1].trim(),r=e[0].trim();return r.startsWith("{")&&r.endsWith("}")&&(r=r.substring(1,r.length-1).trim()),[o,r]}function Be(t){for(let{clientExtensionDefinitions:e,onLoad:o}of t){if(!e.length)continue;let r=e.map(({context:n,importDeclaration:i})=>dt(i).then(s=>({binding:s,context:n})).catch(s=>({context:n,error:s})));Promise.all(r).then(o)}}function Bt({config:t,onLoad:e}){Be([{clientExtensionDefinitions:t.editorTransformerURLs.map(o=>({importDeclaration:`default from ${o}`})),onLoad:o=>{let r=JSON.parse(JSON.stringify(t));o.forEach(({binding:n,error:i})=>{let s=n?.editorConfigTransformer;s&&(r=s(r))}),e({transformedConfig:r})}}])}var ut="serialize://";function jt(t){let e=Liferay.ThemeDisplay.getDoAsUserIdEncoded(),o=new FormData;return o.append("cmd",t),o.append("p_auth",Liferay.authToken),e&&o.append("doAsUserId",e),o}function Vt(){return`${Liferay.ThemeDisplay.getPortalURL()}${Liferay.ThemeDisplay.getPathMain()}/portal/session_click`}function Dr(t,e={}){let o=jt("get");return o.append("key",t),e.useHttpSession&&o.append("useHttpSession",!0),de(Vt(),{body:o,method:"POST"}).then(r=>r.text()).then(r=>{if(r.startsWith(ut)){let n=r.substring(ut.length);r=JSON.parse(n)}return r})}function pt(t,e,o={}){let r=jt("set");return e&&typeof e=="object"&&(e=ut+JSON.stringify(e)),r.append(t,e),o.useHttpSession&&r.append("useHttpSession",!0),de(Vt(),{body:r,method:"POST"})}var ue=class{constructor(e){this.storage=e}clear(){return this.storage.clear()}getItem(e,o){return X(o)?this.storage.getItem(e):null}key(e,o){return X(o)?this.storage.key(e):null}removeItem(e){return this.storage.removeItem(e)}setItem(e,o,r){return X(r)?(this.storage.setItem(e,o),!0):!1}get length(){return this.storage.length}TYPES=pe};var $r=new ue(localStorage);var Hr=new ue(sessionStorage);function je(t){let e=document.createElement("div");e.innerHTML=`<br>${t}`,e.removeChild(e.firstChild);let o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.firstChild);return o}var Ve=document.createElement("link");Ve.setAttribute("rel","stylesheet");Ve.setAttribute("type","text/css");Ve.setAttribute("href",Liferay.ThemeDisplay.getPathContext()+"/o/frontend-js-web/css/notification.css");document.querySelector("head").appendChild(Ve);{/*removed: await import('@liferay/language...')*/};var qt="ToastAlertContainer",Rr={portletId:"UNKNOWN_PORTLET_ID"},Ur={danger:'Error',info:'Info\x20\x28email\x29',success:'Success',warning:'Warning'},Fr=5e3,Br=` 2 <div class="alert-container cadmin container"> 3 <div class="alert-notifications alert-notifications-fixed" id=${qt}></div> 4 </div> 5`,jr=({container:t,containerId:e})=>{if((t||e)&&(t=t||document.getElementById(e),t)){let n=document.createElement("div");return t.appendChild(n),n}let o=document.getElementById(qt);return o||(o=je(Br).querySelector(".alert-container.container"),o=document.body.appendChild(o)),t=document.createElement("div"),document.querySelector(".alert-notifications.alert-notifications-fixed").appendChild(t),t};function Vr({autoClose:t=Fr,container:e,containerId:o,message:r="",onClick:n=()=>{},onClose:i=()=>{},renderData:s=Rr,title:a,toastProps:l={},type:d="success",variant:h}){let g=jr({container:e,containerId:o});(0,k.unmountComponentAtNode)(g);let w=E=>{i&&i({event:E}),(!E||!E.defaultPrevented)&&((!e||!o)&&g.parentNode.removeChild(g),(0,k.unmountComponentAtNode)(g))},N=a===void 0?Ur[d]:a;N?(N=N.replace(/:$/,""),N=`<strong class="lead">${N}:</strong>`):N="",(0,I.render)(f.createElement(Ie,{autoClose:t,displayType:d,onClick:E=>n({event:E,onClose:w}),onClose:w,variant:h,...l,className:ye("mb-3",l?.className)},f.createElement("div",{dangerouslySetInnerHTML:{__html:`${N}${r}`}})),s,g)}function Wt(t,e){let o=null,r;return function(...n){let i=this,s=Date.now(),a=()=>{o=setTimeout(()=>{o=null},e),r=s,t.apply(i,n)};if(o===null)a();else{let l=Math.max(r+e-s,0);clearTimeout(o),o=setTimeout(a,l)}}}function mt(t){return t._node||t._nodes?t.nodeType?t:t._node||null:t}function xe(t){let e=mt(t);return typeof e=="string"?document.querySelector(e):e.jquery?e[0]:e}function ve(t,e,o){let r=!1;if(t=xe(t),t){o||(o=t.getBoundingClientRect(),o={left:o.left+window.scrollX,top:o.top+window.scrollY},o.bottom=o.top+t.offsetHeight,o.right=o.left+t.offsetWidth),e||(e=window),e=xe(e);let n={};
5if(n.left=e.scrollX,n.right=n.left+e.innerWidth,n.top=e.scrollY,n.bottom=n.top+e.innerHeight,r=o.bottom<=n.bottom&&o.left>=n.left&&o.right<=n.right&&o.top>=n.top,r){let i=e.frameElement;if(i){let s=i.getBoundingClientRect();s={left:s.left+window.scrollX,top:s.top+window.scrollY};let a=s.left-n.left;o.left+=a,o.right+=a;let l=s.top-n.top;o.top+=l,o.bottom+=l,r=ve(t,e.parent,o)}}}return r}function qr(t){let e=[];for(;t.parentElement;)t.parentElement.getAttribute("disabled")&&e.push(t.parentElement),t=t.parentElement;return e}function Yt(t){if(t=xe(t),ve(t)){let e=qr(t),o=!t.getAttribute("disabled")&&t.offsetWidth>0&&t.offsetHeight>0&&!e.length,r=t.closest("form");if(!r||o)t.focus();else if(r){let i=r.dataset.fmNamespace+"formReady",s=a=>{let l=r.getAttribute("name"),d=a.formName;l===d&&(t.focus(),Liferay.detach(i,s))};Liferay.on(i,s)}}}var Wr={addSpaceBeforeSuffix:!1,decimalSeparator:".",denominator:1024,suffixGB:"GB",suffixKB:"KB",suffixMB:"MB"};function zt(t,e={}){let{addSpaceBeforeSuffix:o,decimalSeparator:r,denominator:n,suffixGB:i,suffixKB:s,suffixMB:a}={...Wr,...e};if(typeof t!="number")throw new TypeError("Parameter size must be a number");let l=0,d=s;t/=n,t>=n&&(d=a,t/=n,l=1),t>=n&&(d=i,t/=n,l=1);let h=t.toFixed(l);return r!=="."&&(h=h.replace(/\./,r)),h+(o?" ":"")+d}function Gt(t){if(typeof t!="function")throw new TypeError("Parameter callback must be a function");Liferay.Service("/country/get-company-countries",{active:!0,companyId:Liferay.ThemeDisplay.getCompanyId()},t)}function Xt(t,e){if(typeof t!="function")throw new TypeError("Parameter callback must be a function");if(typeof e!="string")throw new TypeError("Parameter selectKey must be a string");Liferay.Service("/region/get-regions",{active:!0,countryId:parseInt(e,10)},t)}function Kt(t,e){if(!P(t)||P(t)&&t.tagName!=="IMG")throw new TypeError("Parameter imagePreview must be an image");if(!P(e))throw new TypeError("Parameter region must be an object");let o=t.naturalWidth/t.offsetWidth,r=t.naturalHeight/t.offsetHeight,n=e.height?e.height*r:t.naturalHeight,i=e.width?e.width*o:t.naturalWidth,s=e.x?Math.max(e.x*o,0):0,a=e.y?Math.max(e.y*r,0):0;return{height:n,width:i,x:s,y:a}}function Jt(t,e,o){t&&navigator.geolocation?navigator.geolocation.getCurrentPosition(r=>{t(r.coords.latitude,r.coords.longitude,r)},e,o):e&&e()}function qe(t,e=""){if(!t)throw new TypeError("Parameter icon must be provided");function o(i,s){return`<svg 6 aria-hidden="true" 7 class="lexicon-icon lexicon-icon-${i} ${s}" 8 focusable="false" 9 role="presentation" 10 > 11 <use href="${Liferay.Icons.spritemap}#${i}" /> 12 </svg>`}let r=o(t,e),n=document.createElement("div");return n.innerHTML=r,n.firstChild}function Zt(t,e=""){return`<svg aria-hidden="true" class="lexicon-icon lexicon-icon-${t} ${e}" focusable="false" role="presentation"><use href="${Liferay.Icons.spritemap}#${t}" /></svg>`}var Yr=/^(?:p_p_id)?_(.*)_.*$/;function Qt(t){return t.replace(Yr,"$1")}var zr="simulationDeviceIframe",eo;function Z(){let t=eo;if(!t){let e=window.parent,o;for(;e!==window;){try{if(typeof e.location.href>"u")break;o=e.themeDisplay}catch{break}if(!o||window.name===zr)break;if(!o.isStatePopUp()||e===e.parent){t=e;break}e=e.parent}t||(t=window),eo=t}return t}var to;function oo(){let t=to;if(!t){let e=Z().Liferay.Util,o=window.name,r=e.Window.getById(o);r&&(t=r._opener,to=t)}return t||window.opener||window.parent}function ro(t=window.name){return Z().Liferay.Util.Window.getById(t)}function no(){return window.innerWidth<Ne.PHONE}function io(){return window.innerWidth<Ne.TABLET}function so(t,e=","){return Array.from(t.getElementsByTagName("option")).reduce((r,n)=>{let{value:i}=n;return i&&r.push(i),r},[]).join(e)}function ao(t){if(typeof t!="function")throw new TypeError("Parameter fn must be a function");let e=new Map,o=(...r)=>{let n;if(r.find(i=>typeof i=="object")){let i=r.filter(s=>typeof s=="object");n=i.map(s=>JSON.stringify(s)),r.length>1&&i.length<r.length&&r.forEach(s=>typeof s!="object"&&n.push(s)),n=n.join(",")}else n=r.length>1?r.join(","):r[0];if(e.has(n))return e.get(n);{let i=t.apply(null,r);return e.set(n,i),i}};return o.getCache=()=>e,o}function lo(t){if(typeof t!="string")throw new TypeError("parameter text must be a string");return t.replace(/[^a-z0-9_-]/gi,"-").replace(/^-+/,"").replace(/--+/,"-").toLowerCase()}function fo(t,e){let o=Z();t.openingWindow=window,o.Liferay.Util._openWindowProvider(t,e)}var co={directories:0,height:480,left:80,location:1,menubar:1,resizable:1,scrollbars:"yes",status:0,toolbar:0,top:180,width:640};function uo(t,e=co){let o={...co,...e},n=Object.entries(o).map((i,s)=>`${i}=${s}`).join(",");window.open(t,"",n)}function be(t,e){typeof t=="string"?t=document.querySelectorAll(t):t._node?t=[t._node]:t._nodes?t=t._nodes:t.nodeType===Node.ELEMENT_NODE&&(t=[t]),t.forEach(o=>{o.disabled=e,e?o.classList.add("disabled"):o.classList.remove("disabled")})}function po(t,e,o,r){let n=document.getElementById(`${r}${t}`);n&&(n.value=0);let i=document.getElementById(`${r}${e}`);i&&(i.value=""),be(o,!0),Liferay.fire("entitySelectionRemoved")}function mo(t,e){let o=document.getElementById(e);o&&(o.style.display="none",t.getModifierState("CapsLock")&&(o.style.display=""))}function Gr(t,e,o){let{text:r,type:n}=t,i=document.createElement("script");Liferay.CSP.nonce&&i.setAttribute("nonce",Liferay.CSP.nonce),i.text=r,i.type=n,o?o(i):document.head.appendChild(i),i.remove(),e()}function Xr(t,e,o){let{src:r,type:n}=t,i=document.createElement("script");Liferay.CSP.nonce&&i.setAttribute("nonce",Liferay.CSP.nonce),i.src=r,i.type=n;let s=function(){i.remove(),e()};i.addEventListener("load",s,{once:!0}),i.addEventListener("error",s,{once:!0}),o?o(i):document.head.appendChild(i)}function ho(t,e,o,r){let n=t[e],i=()=>{e<t.length-1?ho(t,e+1,o,r):o&&setTimeout(o)};if(n)n.type&&n.type!=="text/javascript"&&n.type!=="module"&&n.type!=="module-shim"?i():(n.remove(),n.src?Xr(n,i,r):Gr(n,i,r));else return}function Kr(t,e,o){let r=t.querySelectorAll("script");
12if(!r.length&&e){setTimeout(e);return}ho(r,0,e,o)}function go(t,e){let o=document.getElementById(`${e}${t.idString}`);o&&(o.value=t.idValue);let r=document.getElementById(`${e}${t.nameString}`);r&&(r.value=Liferay.Util.unescape(t.nameValue));let n=document.getElementById(`${e}removeFolderButton`);n&&be(n,!1)}var Jr=/({\d+})/g;function yo(t,...e){let o=e.reduce((n,i)=>Array.isArray(i)?[...n,...i]:[...n,i],[]),r=t.split(Jr).filter(n=>n.length!==0);for(let n=0;n<o.length;n++){let i=o[n],s=`{${n}}`,a=r.indexOf(s);for(;a>=0;)r.splice(a,1,i),a=r.indexOf(s)}return r.some(n=>n&&typeof n=="object")?r:r.join("")}function _o(t,e,o,r){let n=document.getElementById(t),i=document.getElementById(e);if(n&&i){let s=n.checked;o&&(s=!s),s?i.classList.remove("hide"):i.classList.add("hide"),n.addEventListener("click",()=>{i.classList.toggle("hide"),r&&i.querySelectorAll("input[type=checkbox]").forEach(l=>{l.checked=n.checked})})}}var Eo={false:{cssClass:"controls-hidden",iconCssClass:"hidden",state:"hidden"},true:{cssClass:"controls-visible",iconCssClass:"view",state:"visible"}};function Lo(t){let e=document.body;t=t._node||e;let o=t.querySelector(".toggle-controls");if(!o)return;let r=Liferay._editControlsState==="visible",n=Eo[r],i=o.querySelector(".lexicon-icon");i&&(n.icon=i),e.classList.add(n.cssClass),Liferay.fire("toggleControls",{enabled:r}),o.addEventListener("click",()=>{r=!r;let s=n;n=Eo[r],e.classList.toggle(s.cssClass),e.classList.toggle(n.cssClass);let a=n.iconCssClass,l=n.state,d=qe(a);n.icon=d,i.replaceWith(d),i=d,Liferay._editControlsState=l,pt("com.liferay.frontend.js.web_toggleControls",l),Liferay.fire("toggleControls",{enabled:r,src:"ui"})})}function xo(t,e,o){let r=document.getElementById(t);if(r){let n;e&&(Array.isArray(e)&&(e=e.join(",#")),n=document.querySelectorAll(`#${e}`),n.forEach(i=>{r.checked?i.classList.remove("hide"):i.classList.add("hide")})),r.addEventListener("change",()=>{n&&n.forEach(i=>{i.classList.remove("hide")}),o&&(Array.isArray(o)&&(o=o.join(",#")),document.querySelectorAll(`#${o}`).forEach(s=>{s.classList.add("hide")}))})}}var bo=(t,e,o,r)=>{let n=t.value,i=o?r(n,r):r===n;e.classList.toggle("hide",!i)};function Co(t,e,o){let r=document.getElementById(t),n=document.getElementById(o);if(!r||!n)return;let i=typeof e=="function";bo(r,n,i,e),r.addEventListener("change",()=>bo(r,n,i,e))}var Q={};c(Q,ba);import*as ba from"../../accessibility-settings-state-web/__liferay__/index.js";var Ce={};c(Ce,Ca);import*as Ca from"../../frontend-js-state-web/__liferay__/index.js";function Zr(){return Ce.State.read(Q.accessibilityMenuAtom)[Q.CONSTANTS.ACCESSIBILITY_SETTING_REDUCED_MOTION]?.value?!0:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function To(t,e,o,r){typeof t=="string"?t=document.querySelector(t):t=t._node||t;let n="input[type=checkbox]";o&&(n+=`[name=${o}]`);let i=Array.from(t.querySelectorAll(n));return i.length?i.reduce((s,a)=>{let{checked:l,disabled:d,name:h,value:g}=a;return g&&h!==e&&l===r&&!d&&s.push(g),s},[]).join():""}function Qr(t,e,o){return To(t,e,o,!0)}function en(t,e,o){return To(t,e,o,!1)}export{T as ALIGN_POSITIONS,Wo as AOP,Ne as BREAKPOINTS,pe as COOKIE_TYPES,ar as DefaultEventHandler,se as Disposable,nr as DynamicInlineScroll,lr as EventEmitter,fr as EventHandler,we as PortletBase,ir as STATUS_CODE,Ee as addParams,Vo as align,Jo as autoSize,je as buildFragment,St as cancelDebounce,X as checkConsent,Rt as createActionURL,J as createPortletURL,Ut as createRenderURL,Ft as createResourceURL,er as debounce,me as delegate,ie as escapeHTML,de as fetch,Yt as focusFormField,zt as formatStorage,qo as getAlignBestRegion,Me as getAlignRegion,Qr as getCheckedCheckboxes,Ze as getCookie,Gt as getCountries,Kt as getCropRegion,ke as getFormElement,Jt as getGeolocation,qe as getLexiconIcon,Zt as getLexiconIconTpl,oo as getOpener,Qt as getPortletId,Fe as getPortletNamespace,Xt as getRegions,so as getSelectedOptionValues,Dr as getSessionValue,Z as getTop,en as getUncheckedCheckboxes,ro as getWindow,ve as inBrowserView,P as isObject,no as isPhone,Zr as isReducedMotion,io as isTablet,Be as loadClientExtensions,Bt as loadEditorClientExtensions,dt as loadModule,$r as localStorage,ao as memoize,G as navigate,lo as normalizeFriendlyURL,he as objectToFormData,Lr as openAlertModal,Pt as openCategorySelectionModal,br as openConfirmModal,fe as openModal,vt as openPortletModal,_r as openPortletWindow,Ae as openSelectionModal,Pr as openSimpleInputModal,Ot as openTagSelectionModal,Vr as openToast,fo as openWindow,Nt as postForm,uo as printPage,Zo as removeCookie,po as removeEntitySelection,Kr as runScriptsInElement,go as selectFolder,Hr as sessionStorage,Qo as setCookie,De as setFormValues,pt as setSessionValue,mo as showCapsLock,yo as sub,ze as suggestAlignBestRegion,Wt as throttle,_o as toggleBoxes,Lo as toggleControls,be as toggleDisabled,xo as toggleRadio,Co as toggleSelectBox,Ko as unescapeHTML,sr as zIndex}; 13//# sourceMappingURL=index.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.