PageSourceSearch

https://www.iss.it/o/frontend-js-web/__liferay__/index.js

js iss.it collected 2026-09-24 08:29:36 UTC 56,963 bytes, 13 lines download raw bytes

1var _t=Object.defineProperty;var Ir=Object.getOwnPropertyDescriptor;var Sr=Object.getOwnPropertyNames;var jr=Object.prototype.hasOwnProperty;var G=(t,e)=>{for(var r in e)_t(t,r,{get:e[r],enumerable:!0})},bt=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Sr(e))!jr.call(t,o)&&o!==r&&_t(t,o,{get:()=>e[o],enumerable:!(a=Ir(e,o))||a.enumerable});return t},d=(t,e,r)=>(bt(t,e,"default"),r&&bt(r,e,"default"));{/*removed: await import('@liferay/language...')*/};function k(t){let e=typeof t;return e==="object"&&t!==null||e==="function"}{/*removed: await import('@liferay/language...')*/};function pe(t={},e=new FormData,r){return Object.entries(t).forEach(([a,o])=>{let n=r?`${r}[${a}]`:a;Array.isArray(o)?o.forEach(i=>{pe({[n]:i},e)}):k(o)&&!(o instanceof File)?pe(o,e,n):e.append(n,o)}),e}{/*removed: await import('@liferay/language...')*/};function wt(t){return typeof t=="string"&&(t=document.querySelector(t)),t}var Xe=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:r,portletNamespace:a,rootNode:o}=e;r&&(this.namespace=r),a&&(this.portletNamespace=a),o&&(this.rootNode=o),this.created(e),this.attached(e)}dispose(){this.disposeInternal(),this.detached(),this.disposed()}attached(){}created(){}detached(){}disposed(){}disposeInternal(){}emit(e,r){let a=this._EVENTS_[e];if(a&&a.length)for(let o=0;o<a.length;o++)a[o](r)}on(e,r){this._EVENTS_[e]||(this._EVENTS_[e]=[]),this._EVENTS_[e].push(r)}},Ke=class extends Xe{all(e,r){return r=wt(r)||this.rootNode||document,r.querySelectorAll(this.namespaceSelectors_(this.portletNamespace||this.namespace,e))}fetch(e,r){let a=this.getRequestBody_(r);return fetch(e,{body:a,credentials:"include",method:"POST"})}getRequestBody_(e){let r;return e instanceof FormData?r=e:e instanceof HTMLFormElement?r=new FormData(e):typeof e=="object"?r=pe(this.ns(e)):r=e,r}namespaceSelectors_(e,r){return r.replace(new RegExp(`(#|\\[id=(\\"|\\'))(?!`+e+")","g"),"$1"+e)}ns(e){return Liferay.Util.ns(this.portletNamespace||this.namespace,e)}one(e,r){return r=wt(r)||this.rootNode||document,r.querySelector(this.namespaceSelectors_(this.portletNamespace||this.namespace,e))}},Ce=Ke;{/*removed: await import('@liferay/language...')*/};var Je=class extends Ce{callAction(e){let r=e.data.item.data;r&&r.action&&this[r.action]&&this[r.action](r)}handleActionItemClicked(e){this.callAction(e)}handleCreationButtonClicked(e){let r=e.data.data;r&&r.action&&this[r.action]&&this[r.action](r)}handleCreationMenuItemClicked(e){this.callAction(e)}handleFilterItemClicked(e){this.callAction(e)}handleItemClicked(e){this.callAction(e)}},Dr=Je;{/*removed: await import('@liferay/language...')*/};var Nr={blur:!0,error:!0,focus:!0,invalid:!0,load:!0,scroll:!0};function Ar(t){return!!(t.disabled||t.closest("[disabled]"))}function $r(t,e,r,a){let o=n=>{let{defaultPrevented:i,target:s}=n;if(i||e==="click"&&Ar(s))return;let l=s.closest(r);l&&(n.delegateTarget=l,a(n))};return t.addEventListener(e,o,!!Nr[e]),{dispose(){t.removeEventListener(e,o)}}}var me=$r;{/*removed: await import('@liferay/language...')*/};var Ze=class extends Ce{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,r){let a=document.createElement("li");a.innerHTML=`<a class="dropdown-item" href="${this.getHREF_(r)}"><span class="sr-only">${'Pagina'}&nbsp;</span>${r}</a>`,r++,e.appendChild(a),e.setAttribute("data-page-index",r),a.addEventListener("click",this.handleListItemClick_)}getHREF_(e){let{curParam:r,formName:a,jsCall:o,namespace:n,url:i,urlAnchor:s}=this,l=`javascript:document.${a}.${n}${r}.value = "${e}; ${o}`;return this.url!==null&&(l=`${i}&${n}${r}=${e}${s}`),l}getNumber_(e){return Number(e??0)}handleListItemClick_(e){if(this.forcePost){e.preventDefault();
1let{curParam:r,namespace:a,randomNamespace:o}=this,n=document.getElementById(o+a+"pageIteratorFm");n.elements[a+r].value=e.currentTarget.textContent,n.submit()}}onScroll_(e){let{cur:r,initialPages:a,pages:o}=this,{target:n}=e;if(n.nodeName!=="UL")return;let i=this.getNumber_(n.dataset.pageIndex),s=this.getNumber_(n.dataset.maxIndex);if(i===0){let l=this.getNumber_(n.dataset.currentIndex);l===0?i=a:i=l+a}s===0&&(s=o),r<=o&&i<s&&n.scrollTop>=n.scrollHeight-300&&this.addListItem_(n,i)}},Pr=Ze;function Ie(t){return t&&typeof t=="object"&&t.nodeType===9}function Se(t){return t&&t===t.window}function vr(t,e){let r=t;return Se(t)&&(r=t.document.documentElement),Ie(t)&&(r=t.documentElement),r[`client${e}`]}function Or(t){let e=Mr(t),r=Br(t);return Qe(e,e,0,r,0,r)}function Mr(t){return Tt(t,"Height")}function kr(t,e){return t.offsetLeft+(e?0:Et(t).left)}function Rr(t,e){return t.offsetTop+(e?0:Et(t).top)}function Oe(t,e){return t?Ie(t)||Se(t)?Or(t):zr(t.getBoundingClientRect(),e):{bottom:0,height:0,left:0,right:0,top:0,width:0}}function Hr(t){return Se(t)?t.pageXOffset:Ie(t)?t.defaultView.pageXOffset:t.scrollLeft}function Fr(t){return Se(t)?t.pageYOffset:Ie(t)?t.defaultView.pageYOffset:t.scrollTop}function Tt(t,e){if(Se(t))return vr(t,e);if(Ie(t)){let r=t.documentElement;return Math.max(t.body[`scroll${e}`],r[`scroll${e}`],t.body[`offset${e}`],r[`offset${e}`],r[`client${e}`])}return Math.max(t[`client${e}`],t[`scroll${e}`],t[`offset${e}`])}function Ur(t){let e=getComputedStyle(t),r=e.mozTransform||e.msTransform||e.transform;if(r!=="none"){let a=[],o=/([\d-.\s]+)/g,n=o.exec(r);for(;n;)a.push(n[1]),n=o.exec(r);return a}}function Et(t){let e=Ur(t),r={left:0,top:0};return e&&(r.left=parseFloat(e.length===6?e[4]:e[13]),r.top=parseFloat(e.length===6?e[5]:e[14])),r}function Br(t){return Tt(t,"Width")}function xt(t,e){return Vr(t.top,t.left,t.bottom,t.right,e.top,e.left,e.bottom,e.right)}function Vr(t,e,r,a,o,n,i,s){return!(o>r||i<t||n>a||s<e)}function qr(t,e){return e.top>=t.top&&e.bottom<=t.bottom&&e.right<=t.right&&e.left>=t.left}function Wr(t){return qr(Oe(window),t)}function Yr(t,e){if(!xt(t,e))return null;let r=Math.min(t.bottom,e.bottom),a=Math.min(t.right,e.right),o=Math.max(t.left,e.left),n=Math.max(t.top,e.top);return Qe(r,r-n,o,a,n,a-o)}function Qe(t,e,r,a,o,n){return{bottom:t,height:e,left:r,right:a,top:o,width:n}}function zr(t,e=!1){let r=e?Hr(document):0,a=e?Fr(document):0;return Qe(t.bottom+a,t.height,t.left+r,t.right+r,t.top+a,t.width)}var S={BottomCenter:4,BottomLeft:5,BottomRight:3,LeftCenter:6,RightCenter:2,TopCenter:0,TopLeft:7,TopRight:1};S.Bottom=S.BottomCenter;S.Left=S.LeftCenter;S.Right=S.RightCenter;S.Top=S.TopCenter;function Gr(t,e,r,a=!0){let o;if(a){let i=et(t,e,r);r=i.position,o=i.region}else o=Me(t,e,r);if(window.getComputedStyle(t).getPropertyValue("position")!=="fixed"){o.top+=window.pageYOffset,o.left+=window.pageXOffset;let i=t;for(;i=i.offsetParent;)o.top-=Rr(i),o.left-=kr(i)}return t.style.top=o.top+"px",t.style.left=o.left+"px",r}function Xr(t,e,r){return et(t,e,r).region}function Me(t,e,r){let a=Oe(e),o=Oe(t),n=0,i=0;switch(r){case S.TopCenter:n=a.top-o.height,i=a.left+a.width/2-o.width/2;break;case S.RightCenter:n=a.top+a.height/2-o.height/2,i=a.left+a.width;break;case S.BottomCenter:n=a.bottom,i=a.left+a.width/2-o.width/2;break;case S.LeftCenter:n=a.top+a.height/2-o.height/2,i=a.left-o.width;break;case S.TopRight:n=a.top-o.height,i=a.right-o.width;break;case S.BottomRight:n=a.bottom,i=a.right-o.width;break;case S.BottomLeft:n=a.bottom,i=a.left;break;case S.TopLeft:n=a.top-o.height,i=a.left;break;default:break}return{bottom:n+o.height,height:o.height,left:i,right:i+o.width,top:n,width:o.width}}function et(t,e,r){let a=0,o=r,n=Me(t,e,o),i=o,s=n,l=Oe(window);for(let c=0;c<8;){if(xt(l,s)){let g=Yr(l,s),h=g.width*g.height;if(h>a&&(a=h,n=s,o=i),Wr(s))break}i=(r+ ++c)%8,s=Me(t,e,i)}return{position:o,region:n}}var Ct="alterReturn",tt="halt",It="__METAL_AOP__",St="prevent",rt=class t{constructor(e,r){this.after_=[],this.before_=[],this.fnName_=r,this.fn_=e[r],this.obj_=e}createHandle(e,r){return{detach:this.detach_.bind(this,e,r)}}detach_(e,r){let a=r?this.before_:this.after_;a.splice(a.indexOf(e),1)}exec(...e){let r,a=!1,o;for(let n=0;n<this.before_.length;n++)if(r=this.before_[n].apply(this.obj_,e),r&&r.type){if(r.type===tt)return r.value;
1r.type===St&&(a=!0)}a||(o=this.fn_.apply(this.obj_,e)),t.currentRetVal=o,t.originalRetVal=o;for(let n=0;n<this.after_.length;n++)if(r=this.after_[n].apply(this.obj_,e),r&&r.type){if(r.type===tt)return r.value;r.type===Ct&&(o=r.value,t.currentRetVal=o)}return o}register(e,r){return r?this.before_.push(e):this.after_.push(e),this.createHandle(e,r)}static after(e,r,a){return t.inject(!1,e,r,a)}static alterReturn(e){return t.modify_(Ct,e)}static before(e,r,a){return t.inject(!0,e,r,a)}static halt(e){return t.modify_(tt,e)}static inject(e,r,a,o){let n=a[It];return n||(n=a[It]={}),n[o]||(n[o]=new t(a,o),a[o]=function(...i){return n[o].exec(...i)}),n[o].register(r,e)}static modify_(e,r){return{type:e,value:r}}static prevent(){return t.modify_(St)}},Kr=rt;{/*removed: await import('@liferay/language...')*/};var at={'"':"&#034;","&":"&amp;","'":"&#039;","/":"&#047;","<":"&lt;",">":"&gt;","`":"&#096;"};var Jr={};Object.entries(at).forEach(([t,e])=>{Jr[e]=t});var Zr=Object.keys(at),Qr=new RegExp(`[${Zr.join("")}]`,"g"),ea=/&([^\s;]+);/g;function ne(t){return t.replace(Qr,e=>at[e])}function ta(t){return t.replace(ea,e=>new DOMParser().parseFromString(e,"text/html").documentElement.textContent)}var jt="&nbsp;&nbsp;",ot=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 r=document.createElement("pre");return r.style.clip="rect(0, 0, 0, 0) !important",r.style.left="0",r.style.overflowWrap="break-word",r.style.position="absolute",r.style.top="0",r.style.transform="scale(0)",r.style.whiteSpace="pre-wrap",r.style.wordBreak="break-word",r.style.fontFamily=e.fontFamily,r.style.fontSize=e.fontSize,r.style.fontStyle=e.fontStyle,r.style.fontWeight=e.fontWeight,r.style.lineHeight=e.lineHeight,r.style.letterSpacing=e.letterSpacing,r.style.textTransform=e.textTransform,r.style.width=e.width,r.textContent=jt,r}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=ne(e.value)+jt,e.style.height=`${this.template.scrollHeight+this.paddingHeight<this.minHeight?this.minHeight:this.template.scrollHeight+this.paddingHeight}px`}},ra=ot;var je={PHONE:768,TABLET:980};function aa(t,e){return function r(){let a=arguments;Dt(r),r.id=setTimeout(()=>{t(...a)},e)}}function Dt(t){clearTimeout(t.id)}{/*removed: await import('@liferay/language...')*/};var nt=class{constructor(){this._disposed=!1}dispose(){this._disposed||(this.disposeInternal(),this._disposed=!0)}disposeInternal(){}isDisposed(){return this._disposed}},ie=nt;{/*removed: await import('@liferay/language...')*/};var it=class extends ie{constructor(e,r,a){super(),this._emitter=e,this._event=r,this._listener=a}disposeInternal(){this.removeListener(),this._emitter=null,this._listener=null}removeListener(){this._emitter.isDisposed()||this._emitter.removeListener(this._event,this._listener)}},st=it;{/*removed: await import('@liferay/language...')*/};var Nt=[0],lt=class extends ie{constructor(){super(),this._events=null,this._listenerHandlers=null,this._shouldUseFacade=!1}_addHandler(e,r){return e?(Array.isArray(e)||(e=[e]),e.push(r)):e=r,e}addListener(e,r,a){this._validateListener(r);let o=this._toEventsArray(e);for(let n=0;n<o.length;n++)this._addSingleListener(o[n],r,a);return new st(this,e,r)}_addSingleListener(e,r,a,o){this._runListenerHandlers(e),(a||o)&&(r={default:a,fn:r,origin:o}),this._events=this._events||{},this._events[e]=this._addHandler(this._events[e],r)}_buildFacade(e){if(this.getShouldUseFacade()){let r={preventDefault(){r.preventedDefault=!0},target:this,type:e};return r}}disposeInternal(){this._events=null}emit(e){let r=this._getRawListeners(e);if(!r.length)return!1;
1let a=Array.prototype.slice.call(arguments,1);return this._runListeners(r,a,this._buildFacade(e)),!0}_getRawListeners(e){return ke(this._events&&this._events[e]).concat(ke(this._events&&this._events["*"]))}getShouldUseFacade(){return this._shouldUseFacade}listeners(e){return this._getRawListeners(e).map(r=>r.fn?r.fn:r)}many(e,r,a){let o=this._toEventsArray(e);for(let n=0;n<o.length;n++)this._many(o[n],r,a);return new st(this,e,a)}_many(e,r,a){let o=this;if(r<=0)return;function n(){--r===0&&o.removeListener(e,n),a.apply(o,arguments)}o._addSingleListener(e,n,!1,a)}_matchesListener(e,r){return(e.fn||e)===r||e.origin&&e.origin===r}off(e,r){if(this._validateListener(r),!this._events)return this;let a=this._toEventsArray(e);for(let o=0;o<a.length;o++)this._events[a[o]]=this._removeMatchingListenerObjs(ke(this._events[a[o]]),r);return this}on(){return this.addListener.apply(this,arguments)}onListener(e){this._listenerHandlers=this._addHandler(this._listenerHandlers,e)}once(e,r){return this.many(e,1,r)}removeAllListeners(e){if(this._events)if(e){let r=this._toEventsArray(e);for(let a=0;a<r.length;a++)this._events[r[a]]=null}else this._events=null;return this}_removeMatchingListenerObjs(e,r){let a=[];for(let o=0;o<e.length;o++)this._matchesListener(e[o],r)||a.push(e[o]);return a.length?a:null}removeListener(){return this.off.apply(this,arguments)}_runListenerHandlers(e){let r=this._listenerHandlers;if(r){r=ke(r);for(let a=0;a<r.length;a++)r[a](e)}}_runListeners(e,r,a){a&&r.push(a);let o=[];for(let n=0;n<e.length;n++){let i=e[n].fn||e[n];e[n].default?o.push(i):i.apply(this,r)}if(!a||!a.preventedDefault)for(let n=0;n<o.length;n++)o[n].apply(this,r)}setShouldUseFacade(e){return this._shouldUseFacade=e,this}_toEventsArray(e){return typeof e=="string"&&(Nt[0]=e,e=Nt),e}_validateListener(e){if(typeof e!="function")throw new TypeError("Listener must be a function")}};function ke(t){return t=t||[],Array.isArray(t)?t:[t]}var oa=lt;{/*removed: await import('@liferay/language...')*/};var ft=class extends ie{constructor(){super(),this._eventHandles=[]}add(...e){for(let r=0;r<e.length;r++)this._eventHandles.push(e[r])}disposeInternal(){this._eventHandles=null}removeAllListeners(){for(let e=0;e<this._eventHandles.length;e++)this._eventHandles[e].removeListener();this._eventHandles=[]}},na=ft;var se={};G(se,{default:()=>K});d(se,ko);import*as ko from"../../frontend-taglib-clay/__liferay__/exports/@clayui$button.js";import ia from"../../frontend-taglib-clay/__liferay__/exports/@clayui$button.js";var K=ia;var ge={};G(ge,{default:()=>dt});d(ge,Ho);import*as Ho from"../../frontend-taglib-clay/__liferay__/exports/@clayui$loading-indicator.js";import sa from"../../frontend-taglib-clay/__liferay__/exports/@clayui$loading-indicator.js";var dt=sa;var F={};G(F,{default:()=>q});d(F,Uo);import*as Uo from"../../frontend-taglib-clay/__liferay__/exports/@clayui$modal.js";import la from"../../frontend-taglib-clay/__liferay__/exports/@clayui$modal.js";var q=la;var A={};d(A,Bo);import*as Bo from"../../frontend-js-react-web/__liferay__/index.js";var le={};G(le,{default:()=>he});d(le,qo);import*as qo from"../../frontend-js-react-web/__liferay__/exports/classnames.js";import fa from"../../frontend-js-react-web/__liferay__/exports/classnames.js";var he=fa;var ye={};G(ye,{default:()=>p});d(ye,Yo);import*as Yo from"../../frontend-js-react-web/__liferay__/exports/prop-types.js";import da from"../../frontend-js-react-web/__liferay__/exports/prop-types.js";var p=da;var m={};G(m,{default:()=>f});d(m,Go);import*as Go from"../../frontend-js-react-web/__liferay__/exports/react.js";import ca from"../../frontend-js-react-web/__liferay__/exports/react.js";var f=ca;var De=document.createElement("link");De.setAttribute("rel","stylesheet");De.setAttribute("type","text/css");De.setAttribute("href",Liferay.ThemeDisplay.getPathContext()+"/o/frontend-js-web/liferay/modal/Modal.css");Liferay.CSP&&De.setAttribute("nonce",Liferay.CSP.nonce);document.querySelector("head").appendChild(De);{/*removed: await import('@liferay/language...')*/};function X(t,e){let r=t;t?.constructor?.name==="URL"&&(r=String(t)),Liferay.SPA?.app?.canNavigate(r)?(Liferay.SPA.app.navigate(r),e&&Object.keys(e).forEach(a=>{Liferay.once(a,e[a])})):ua(r)&&(window.location.href=r)}function ua(t){let e;
1try{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 At=({bodyComponent:t,bodyHTML:e,buttons:r,center:a,className:o,containerProps:n={className:"cadmin"},contentComponent:i,customEvents:s,disableAutoClose:l,disableHeader:c,footerCssClass:g,headerCssClass:h,headerHTML:T,height:Y,id:E,iframeBodyCssClass:D,iframeProps:H={},onClose:x,onOpen:w,role:U="dialog",size:$,status:re,title:ae,url:P,zIndex:C})=>{let[v,R]=(0,m.useState)(!0),{observer:O,onOpenChange:L,open:u}=(0,F.useModal)({onClose:()=>j()});(0,m.useEffect)(()=>{L(!0)},[L]);let b=(0,m.useRef)([]),j=(0,m.useCallback)(()=>{if(!u)return;L(!1),document.body.classList.remove("modal-open");let _=b.current;_.forEach(N=>{N.detach()}),_.splice(0,_.length),x&&x()},[b,x,L,u]),Ge=({formId:_,onClick:N,type:y})=>{let B=M=>{M.requestSubmit?M.requestSubmit():M.dispatchEvent(new Event("submit",{cancelable:!0}))&&M.submit()};if(y==="cancel")j();else if(P&&y==="submit"){let M=document.querySelector(".liferay-modal iframe");if(M){let z=M.contentWindow.document,I=z.querySelectorAll("form");if(I.length,_){let oe=z.getElementById(_);oe&&B(oe)}else I.length>=1&&B(I[0])}}N&&N({processClose:j})},ve=({component:_,html:N})=>{let y=(0,m.useRef)();return(0,m.useEffect)(()=>{if(N){let B=document.createRange().createContextualFragment(N);y.current.innerHTML="",y.current.appendChild(B)}w&&w({container:y.current,processClose:j})},[N]),f.createElement("div",{className:"liferay-modal-body",ref:y},_&&f.createElement(_,{closeModal:j}))};return(0,m.useEffect)(()=>{let _=b.current;s&&s.forEach(y=>{if(y.name&&y.onEvent){let B=Liferay.on(y.name,M=>{y.onEvent(M)});_.push(B)}});let N=Liferay.on("closeModal",y=>{y.id&&E&&y.id!==E||(j(),y.redirect&&X(y.redirect))});return _.push(N),()=>{_.forEach(y=>{y.detach()}),_.splice(0,_.length)}},[s,b,E,x,w,j]),f.createElement(f.Fragment,null,u&&f.createElement(q,{center:a,className:he("liferay-modal",o),containerProps:{...n},disableAutoClose:l,id:E,observer:O,role:U,size:P&&!$?"full-screen":$,status:re,zIndex:C},i?f.createElement(i,{closeModal:j}):f.createElement(f.Fragment,null,!c&&f.createElement(q.Header,{className:h},T?f.createElement("div",{dangerouslySetInnerHTML:{__html:T}}):ae,v&&f.createElement("span",{className:"sr-only"},"- ",'Caricando')),f.createElement("div",{className:he("modal-body",{"modal-body-iframe":P}),style:{height:Y}},P&&f.createElement(f.Fragment,null,v&&f.createElement(dt,null),f.createElement(pa,{loading:v}),f.createElement(ct,{iframeBodyCssClass:D,iframeProps:{id:E&&`${E}_iframe_`||"modalIframe",...H},onOpen:w,processClose:j,title:ae,updateLoading:_=>{R(_)},url:P})),e&&f.createElement(ve,{html:e}),t&&f.createElement(ve,{component:t})),r&&f.createElement(q.Footer,{className:g,last:f.createElement(K.Group,{spaced:!0},r.map(({displayType:_,formId:N,id:y,label:B,onClick:M,type:z,...I},oe)=>f.createElement(K,{displayType:_,id:y,key:oe,onClick:()=>{Ge({formId:N,onClick:M,type:z})},type:z==="cancel"?"button":z,...I},B)))}))))},pa=({loading:t})=>{let[e,r]=(0,m.useState)(!0);return(0,m.useEffect)(()=>{t||setTimeout(()=>r(!1),1e3)},[t]),e?f.createElement("span",{className:"sr-only",role:"status"},!t&&'Loaded'):null},fe=t=>{t&&t.url&&t.bodyHTML,(0,A.render)(At,t,document.createElement("div"))},$t=({containerProps:t,footerCssClass:e,headerCssClass:r,iframeBodyCssClass:a,onClose:o,portletSelector:n,subTitle:i,title:s,url:l})=>{let c=document.querySelector(n);if(c&&l){let g=c.querySelector(".portlet-title")||c.querySelector(".portlet-title-default");if(g)if(c.querySelector("#cpPortletTitle")){let T=g.querySelector(".portlet-title-text");T&&(s=`${T.outerHTML} - ${s}`)}else s=`${g.textContent} - ${s}`;let h;i&&(h=`${s}<div class="portlet-configuration-subtitle small"><span class="portlet-configuration-subtitle-text">${i}</span></div>`),fe({containerProps:t,footerCssClass:e,headerCssClass:r,headerHTML:h,iframeBodyCssClass:a,onClose:o,title:s,url:l})}},ma=({bodyCssClass:t,portlet:e,uri:r,...a})=>{$t({iframeBodyCssClass:t,portletSelector:e,url:r,...a})},Ne=({buttonAddLabel:t='Aggiungi',buttonCancelLabel:e='Annulla',containerProps:r,customSelectEvent:a=!1,getSelectedItemsOnly:o=!0,height:n,id:i,iframeBodyCssClass:s,multiple:l=!1,onClose:c,onSelect:g,selectEventName:h,selectedData:T,selectedDataCheckboxesDisabled:Y=!1,size:E,title:D,url:H,zIndex:x})=>{let w=[],U,$,re,ae=()=>{if(l&&!re){let C=U.document.querySelector(".searchcontainer");C?U.Liferay.componentReady(C.id).then(v=>{let O=(o?v.select.getAllSelectedElements():v.select._getAllElements(!1)).getDOMNodes();g(O.map(L=>{let u={};L.value&&(u.value=L.value),!o&&L.checked&&(u.checked=L.checked);let b=L.closest("dd, tr, li");return b&&Object.keys(b.dataset).length&&(u={...u,...b.dataset}),u})),$()}):$()}else g(re),$()},P={};if(T){let C=[],v=[],R=[];T.forEach(O=>{let{externalReferenceCode:L,id:u,label:b}=O;L&&C.push(L),u&&v.push(u),b&&R.push(b)}),C.length&&(P["data-selecteditemsercs"]=C.join(",")),v.length&&(P["data-selecteditemsids"]=v.join(",")),R.length&&(P["data-selecteditemslabels"]=R.join(","))}fe({buttons:l?[{displayType:"secondary",label:e,type:"cancel"},{label:t,onClick:ae}]:null,containerProps:r,height:n,id:i||h,iframeBodyCssClass:s,iframeProps:P,onClose:()=>
1{w.forEach(C=>{C.detach()}),w.splice(0,w.length),c&&c()},onOpen:({iframeWindow:C,processClose:v})=>{U=C,$=v;let R=C.document.body,O=R.querySelectorAll(".selector-button");if(T){let L=new Set(T);if(O.forEach(u=>{let b=u.dataset.entityid||u.dataset.entityname;L.has(b)?(u.disabled=!0,u.classList.add("disabled")):(u.disabled=!1,u.classList.remove("disabled"))}),l)for(let u of R.querySelectorAll(".searchcontainer tr")){let b=u.dataset.entityid||u.dataset.entityname;if(L.has(b)){let j=u.querySelector('input[type="checkbox"]');if(!j)continue;j.checked=!0,Y&&(j.disabled=!0)}}}if(h){let L=Liferay.on(h,u=>{re=u.data||u,l||ae()});w.push(L),a||R.addEventListener("click",u=>{let b=u.target?.closest(".selector-button");b&&Liferay.fire(h,b.dataset)})}},size:E,title:D,url:H,zIndex:x})},Re="dialog-iframe-popup",ct=class extends f.Component{constructor(e){super(e),this.delegateHandlers=[],this.iframeRef=f.createRef();let r=new URL(e.url),a=r.searchParams.get("p_p_id"),o=e.iframeBodyCssClass||e.iframeBodyCssClass===""?`${Re} ${e.iframeBodyCssClass}`:`cadmin ${Re}`;r.searchParams.set(`_${a}_bodyCssClass`,o),this.state={src:r.toString()}}componentWillUnmount(){this.spaNavigationHandlers&&this.spaNavigationHandlers.forEach(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",r=>{r.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})}};At.propTypes={bodyHTML:p.string,buttons:p.arrayOf(p.shape({displayType:p.oneOf(["danger","info","link",null,"primary","secondary","success","unstyled","warning"]),formId:p.string,id:p.string,label:p.string,onClick:p.func,type:p.oneOf(["cancel","submit"])})),center:p.bool,containerProps:p.object,contentComponent:p.elementType,customEvents:p.arrayOf(p.shape({name:p.string,onEvent:p.func})),disableHeader:p.bool,headerHTML:p.string,height:p.string,id:p.string,iframeProps:p.object,onClose:p.func,onOpen:p.func,role:p.string,size:p.oneOf(["full-screen","lg","md","sm"]),status:p.string,title:p.string,url:p.string};var de={};G(de,{default:()=>Ae});d(de,fn);import*as fn from"../../frontend-taglib-clay/__liferay__/exports/@clayui$alert.js";import ga from"../../frontend-taglib-clay/__liferay__/exports/@clayui$alert.js";var Ae=ga;var W={};G(W,{default:()=>ut});d(W,cn);import*as cn from"../../frontend-taglib-clay/__liferay__/exports/@clayui$form.js";import ha from"../../frontend-taglib-clay/__liferay__/exports/@clayui$form.js";var ut=ha;var Le={};G(Le,{default:()=>He});d(Le,pn);import*as pn from"../../frontend-taglib-clay/__liferay__/exports/@clayui$icon.js";import ya from"../../frontend-taglib-clay/__liferay__/exports/@clayui$icon.js";var He=ya;{/*removed: await import('@liferay/language...')*/};function Pt(t,e){return typeof t=="string"?t=e:t instanceof URL?t=new URL(e):t instanceof Request?t=new Request(e,t):console.warn("Resource passed to `fetch()` must either be a string, Request, or URL."),t}function ce(t,e={}){t||(t="/o/");let r=t.url?t.url:t.toString();if(r.startsWith("/")){let i=Liferay.ThemeDisplay.getPathContext();i&&!r.startsWith(i)&&(r=i+r,t=Pt(t,r)),r=window.location.origin+r}let a=new URL(r),o=new Headers({}),n={};if(a.origin===window.location.origin){o.set("x-csrf-token",Liferay.authToken),n.credentials="include";let i=Liferay.ThemeDisplay.getDoAsUserIdEncoded();i&&(a.searchParams.set("doAsUserId",i),r=a.toString(),t=Pt(t,r))}return new Headers(e.headers||{}
1).forEach((i,s)=>{o.set(s,i)}),fetch(t,{...n,...e,headers:o})}{/*removed: await import('@liferay/language...')*/};var La=({alert:t,buttonSubmitLabel:e='Salva',center:r,checkboxFieldLabel:a,checkboxFieldName:o,checkboxFieldValue:n,closeModal:i,dialogTitle:s,formSubmitURL:l,idFieldName:c,idFieldValue:g,initialVisible:h,mainFieldComponent:T,mainFieldLabel:Y,mainFieldName:E,mainFieldPlaceholder:D,mainFieldValue:H="",method:x="POST",namespace:w,onFormSuccess:U,required:$=!0,size:re="md"})=>{let ae=(0,A.useIsMounted)(),[P,C]=(0,m.useState)(),[v,R]=(0,m.useState)(!1),[O,L]=(0,m.useState)(!1),[u,b]=(0,m.useState)(h),[j,Ge]=(0,m.useState)(H),[ve,_]=(0,m.useState)(n),N=I=>{C(I.error||"")},y=I=>{I&&H&&!v&&(I.setSelectionRange(0,H.length),R(!0))},B=I=>{I.preventDefault();let oe=j?"":'Questo\x20campo\x20è\x20obbligatorio\x2e';if(oe&&$){C(oe);return}L(!0);let Cr=new FormData(document.querySelector(`#${w}form`));ce(l,{body:Cr,method:x}).then(V=>V.json()).then(V=>{ae()&&(V.error?(L(!1),N(V)):(b(!1),i(),V.redirectURL?X(V.redirectURL):U&&U({...V,redirectURL:V.redirectURL||""})))}).catch(V=>{N(V)})},{observer:M,onClose:z}=(0,F.useModal)({onClose:()=>{b(!1),i()}});return u&&f.createElement(q,{center:r,observer:M,size:re},f.createElement(q.Header,null,s),f.createElement(ut,{id:`${w}form`,noValidate:!0,onSubmit:B},f.createElement(q.Body,null,t&&t.message&&t.title&&f.createElement(Ae,{displayType:t.style,title:t.title},t.message),f.createElement("input",{name:`${w}${c}`,type:"hidden",value:g}),f.createElement("div",{className:`form-group ${P?"has-error":""}`},f.createElement("label",{className:"control-label",htmlFor:`${w}${E}`},Y,$?f.createElement("span",{className:"reference-mark"},f.createElement(He,{symbol:"asterisk"})):null),f.createElement(W.ClayInput,{autoFocus:!0,className:"form-control",component:T,disabled:O,id:`${w}${E}`,name:`${w}${E}`,onChange:I=>{$&&C(I.target.value?"":'Questo\x20campo\x20è\x20obbligatorio\x2e'),Ge(I.target.value)},placeholder:D,ref:y,required:$,type:"text",value:j}),P&&f.createElement("div",{className:"form-feedback-item",role:"alert"},f.createElement(He,{className:"inline-item inline-item-before",symbol:"exclamation-full"}),P)),o&&a&&f.createElement("div",{className:"form-check"},f.createElement(W.ClayCheckbox,{checked:ve,disabled:O,label:a,name:`${w}${o}`,onChange:()=>_(I=>!I)}))),f.createElement(q.Footer,{last:f.createElement(K.Group,{spaced:!0},f.createElement(K,{disabled:O,displayType:"secondary",onClick:z},'Annulla'),f.createElement(K,{disabled:O,displayType:"primary",type:"submit"},O&&f.createElement("span",{className:"inline-item inline-item-before"},f.createElement("span",{"aria-hidden":"true",className:"loading-animation"})),e))})))},vt=La;{/*removed: await import('@liferay/language...')*/};var ba="modalContainer",_a={portletId:"UNKNOWN_PORTLET_ID"},J,Fe;function wa({alert:t,buttonSubmitLabel:e,center:r,checkboxFieldLabel:a,checkboxFieldName:o,checkboxFieldValue:n,dialogTitle:i,formSubmitURL:s,idFieldName:l,idFieldValue:c,mainFieldComponent:g,mainFieldLabel:h,mainFieldName:T,mainFieldPlaceholder:Y,mainFieldValue:E,method:D,namespace:H,onFormSuccess:x,required:w,size:U}){let $=()=>{J&&Fe&&(Fe.unmount(),document.body.removeChild(J),Fe=null,J=null)};J||(J=document.createElement("div"),J.id=ba,document.body.appendChild(J)),Fe=(0,A.render)(f.createElement(vt,{alert:t,buttonSubmitLabel:e,center:r,checkboxFieldLabel:a,checkboxFieldName:o,checkboxFieldValue:n,closeModal:$,dialogTitle:i,formSubmitURL:s,idFieldName:l,idFieldValue:c,initialVisible:"true",mainFieldComponent:g,mainFieldLabel:h,mainFieldName:T,mainFieldPlaceholder:Y,mainFieldValue:E,method:D,namespace:H,onFormSuccess:x,required:w,size:U}),_a,J)}var Ta=wa;{/*removed: await import('@liferay/language...')*/};function be(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 r=e.startsWith("/")?new URL(e,location.href):new URL(e);return typeof t=="object"?Object.entries(t).forEach(([a,o])=>{r.searchParams.append(a,o)}
1):new URLSearchParams(t.trim()).forEach((o,n)=>{o?r.searchParams.append(n,o):r.searchParams.append(n,"")}),r.toString()}{/*removed: await import('@liferay/language...')*/};function Ot({onSelect:t,portletNamespace:e,redirectURL:r,selectCategoryURL:a,title:o}){Ne({buttonAddLabel:'Seleziona',height:"70vh",iframeBodyCssClass:"",multiple:!0,onSelect:n=>{if(t){t(n);return}if(!Object.keys(n).length)return;let i=new URL(r),s=`_${i.searchParams.get("p_p_id")}_resetCur`;i.searchParams.set(s,"true");let l=Object.keys(n),c=i.href;l.forEach(g=>{c=be(`${e}assetCategoryId=${n[g].categoryId}`,c)}),X(c)},selectEventName:`${e}selectedAssetCategory`,size:"md",title:o||'Filter\x20by\x20Categories',url:a})}{/*removed: await import('@liferay/language...')*/};function Mt({portletNamespace:t,redirectURL:e,selectTagURL:r,title:a}){Ne({buttonAddLabel:'Seleziona',height:"70vh",iframeBodyCssClass:"",multiple:!0,onSelect:o=>{if(!o.length)return;let n=new URL(e),i=`_${n.searchParams.get("p_p_id")}_resetCur`;n.searchParams.set(i,"true");let s=o.map(c=>c.value),l=n.href;s.forEach(c=>{let g=JSON.parse(c);l=be(`${t}assetTagId=${g.tagName}`,l)}),X(l)},selectEventName:`${t}selectedAssetTag`,size:"lg",title:a||'Filtra\x20per\x20Tag',url:r})}{/*removed: await import('@liferay/language...')*/};var Ea=({message:t})=>{Liferay.CustomDialogs.enabled?fe({bodyHTML:ne(t),buttons:[{autoFocus:!0,label:'Ok',onClick:({processClose:e})=>{e()}}],center:!0,disableHeader:!0}):alert(t)},xa=Ea;{/*removed: await import('@liferay/language...')*/};var Ca=({message:t,onConfirm:e,status:r,title:a})=>{Liferay.CustomDialogs.enabled?fe({bodyHTML:ne(t),buttons:[{displayType:"secondary",label:'Annulla',type:"cancel"},{autoFocus:!0,displayType:r||"primary",label:'Ok',onClick:({processClose:o})=>{o(),e(!0)}}],disableHeader:!a,footerCssClass:"border-0",headerCssClass:"border-0",onClose:()=>e(!1),role:"alertdialog",status:r,title:a}):e(confirm(t))},Ia=Ca;{/*removed: await import('@liferay/language...')*/};var Sa={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};{/*removed: await import('@liferay/language...')*/};function kt(t,e){let r=null,a;return function(...o){let n=this,i=Date.now(),s=()=>{r=setTimeout(()=>{r=null},e),a=i,t.apply(n,o)};if(r===null)s();else{let l=Math.max(a+e-i,0);clearTimeout(r),r=setTimeout(s,l)}}}var _e={};d(_e,Yn);import*as Yn from"../../frontend-js-dependencies-web/__liferay__/exports/uuid.js";{/*removed: await import('@liferay/language...')*/};function Ue(t){let e=document.createElement("div");e.innerHTML=`<br>${t}`,e.removeChild(e.firstChild);let r=document.createDocumentFragment();for(;e.firstChild;)r.appendChild(e.firstChild);return r}var $e=document.createElement("link");$e.setAttribute("rel","stylesheet");$e.setAttribute("type","text/css");$e.setAttribute("href",Liferay.ThemeDisplay.getPathContext()+"/o/frontend-js-web/css/notification.css");Liferay.CSP&&$e.setAttribute("nonce",Liferay.CSP.nonce);document.querySelector("head").appendChild($e);{/*removed: await import('@liferay/language...')*/};var Rt="ToastAlertContainer",ja={portletId:"UNKNOWN_PORTLET_ID"},Da={danger:'Errore',info:'Informazioni',success:'Successo',warning:'Attenzione'},Na=5e3,Aa=`
2	<div class="alert-container cadmin container">
3		<div class="alert-notifications alert-notifications-fixed" id=${Rt}></div>
4	</div>
5`,$a=({container:t,containerId:e})=>{if((t||e)&&(t=t||document.getElementById(e),t)){let o=document.createElement("div");return t.appendChild(o),o}let r=document.getElementById(Rt);return r||(r=Ue(Aa).querySelector(".alert-container.container"),r=document.body.appendChild(r)),t=document.createElement("div"),document.querySelector(".alert-notifications.alert-notifications-fixed").appendChild(t),t},Be=new Map;function Pa({autoClose:t=Na,container:e,containerId:r,message:a="",onClick:o=()=>{},onClose:n=()=>{},renderData:i=ja,title:s,toastProps:l={},type:c="success",variant:g}){let h=(0,_e.v4)(),T=$a({container:e,containerId:r}),Y=()=>{Be.has(h)&&(Be.get(h).unmount(),Be.delete(h))},E=x=>{n&&n({event:x}),(!x||!x.defaultPrevented)&&((!e||!r)&&T.parentNode.removeChild(T),Y())},D=s===void 0?Da[c]:s;D?(D=D.replace(/:$/,""),D=`<strong class="lead">${D}:</strong>`):D="";let H=(0,A.render)(f.createElement(Ae,{autoClose:t,displayType:c,onClick:x=>o({event:x,onClose:E}),onClose:E,variant:g,...l,className:he("mb-3",l?.className)},f.createElement("div",{dangerouslySetInnerHTML:{__html:`${D}${a}`}})),i,T);Be.set(h,H)}{/*removed: await import('@liferay/language...')*/};function Ht(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)}{/*removed: await import('@liferay/language...')*/};function Ft(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)}{/*removed: await import('@liferay/language...')*/};var Ut=(t,e,r={})=>{let a=`${t}=${e}`;r.path||(a+="; path=/"),!r.expires&&!("max-age"in r)&&(a+=`; max-age=${365*24*60*60}`);for(let[o,n]of Object.entries(r))n!==!1&&(n===!0?a+=`; ${o}`:a+=`; ${o}=${n}`);return a};function pt(t,e){if(Z(e))return document.cookie.split("; ").find(r=>r.startsWith(`${t}=`))?.split("=")[1]}function va(t){document.cookie=Ut(t,"",{"max-age":0})}function Oa(t,e,r,a){return Z(r)?(document.cookie=Ut(t,e,a),!0):!1}{/*removed: await import('@liferay/language...')*/};var we={FUNCTIONAL:"CONSENT_TYPE_FUNCTIONAL",NECESSARY:"CONSENT_TYPE_NECESSARY",PERFORMANCE:"CONSENT_TYPE_PERFORMANCE",PERSONALIZATION:"CONSENT_TYPE_PERSONALIZATION"};function Z(t){return t===we.NECESSARY||pt(t,we.NECESSARY)!=="false"}{/*removed: await import('@liferay/language...')*/};function mt(t){return t._node||t._nodes?t.nodeType?t:t._node||null:t}{/*removed: await import('@liferay/language...')*/};function Te(t){let e=mt(t);return typeof e=="string"?document.querySelector(e):e.jquery?e[0]:e}{/*removed: await import('@liferay/language...')*/};function Pe(t,e,r){let a=!1;if(t=Te(t),t){r||(r=t.getBoundingClientRect(),r={left:r.left+window.scrollX,top:r.top+window.scrollY}
5,r.bottom=r.top+t.offsetHeight,r.right=r.left+t.offsetWidth),e||(e=window),e=Te(e);let o={};if(o.left=e.scrollX,o.right=o.left+e.innerWidth,o.top=e.scrollY,o.bottom=o.top+e.innerHeight,a=r.bottom<=o.bottom&&r.left>=o.left&&r.right<=o.right&&r.top>=o.top,a){let n=e.frameElement;if(n){let i=n.getBoundingClientRect();i={left:i.left+window.scrollX,top:i.top+window.scrollY};let s=i.left-o.left;r.left+=s,r.right+=s;let l=i.top-o.top;r.top+=l,r.bottom+=l,a=Pe(t,e.parent,r)}}}return a}{/*removed: await import('@liferay/language...')*/};function Ma(t){let e=[];for(;t.parentElement;)t.parentElement.getAttribute("disabled")&&e.push(t.parentElement),t=t.parentElement;return e}function Bt(t){if(t=Te(t),Pe(t)){let e=Ma(t),r=!t.getAttribute("disabled")&&t.offsetWidth>0&&t.offsetHeight>0&&!e.length,a=t.closest("form");if(!a||r)t.focus();else if(a){let n=a.dataset.fmNamespace+"formReady",i=s=>{let l=a.getAttribute("name"),c=s.formName;l===c&&(t.focus(),Liferay.detach(n,i))};Liferay.on(n,i)}}}{/*removed: await import('@liferay/language...')*/};function Ve(t,e){let r=null;if(t!==void 0&&t.nodeName==="FORM"&&typeof e=="string"){let a=t.dataset.fmNamespace||"";r=t.elements[a+e]||null}return r}{/*removed: await import('@liferay/language...')*/};function qe(t,e){if(t===void 0||t.nodeName!=="FORM"||!k(e))return;Object.entries(e).forEach(([a,o])=>{let n=Ve(t,a);n&&(n.value=o)})}{/*removed: await import('@liferay/language...')*/};function Vt(t,e){if(typeof t=="string"&&(t=document.querySelector(t)),t&&t.nodeName==="FORM")if(t.setAttribute("method","post"),k(e)){let{data:r,url:a}=e;if(k(r))qe(t,r);else return;a===void 0?submitForm(t):typeof a=="string"&&submitForm(t,a)}else submitForm(t)}{/*removed: await import('@liferay/language...')*/};var ka={addSpaceBeforeSuffix:!1,decimalSeparator:".",denominator:1024,suffixGB:"GB",suffixKB:"KB",suffixMB:"MB"};function qt(t,e={}){let{addSpaceBeforeSuffix:r,decimalSeparator:a,denominator:o,suffixGB:n,suffixKB:i,suffixMB:s}={...ka,...e};if(typeof t!="number")throw new TypeError("Parameter size must be a number");let l=0,c=i;t/=o,t>=o&&(c=s,t/=o,l=1),t>=o&&(c=n,t/=o,l=1);let g=t.toFixed(l);return a!=="."&&(g=g.replace(/\./,a)),g+(r?" ":"")+c}{/*removed: await import('@liferay/language...')*/};function Wt(t,e,r,a){typeof t=="string"?t=document.querySelector(t):t=t._node||t;let o="input[type=checkbox]";r&&(o+=`[name=${r}]`);let n=Array.from(t.querySelectorAll(o));return n.length?n.reduce((i,s)=>{let{checked:l,disabled:c,name:g,value:h}=s;return h&&g!==e&&l===a&&!c&&i.push(h),i},[]).join():""}function Ra(t,e,r){return Wt(t,e,r,!0)}function Ha(t,e,r){return Wt(t,e,r,!1)}{/*removed: await import('@liferay/language...')*/};function Yt(t,e){if(!k(t)||k(t)&&t.tagName!=="IMG")throw new TypeError("Parameter imagePreview must be an image");if(!k(e))throw new TypeError("Parameter region must be an object");let r=t.naturalWidth/t.offsetWidth,a=t.naturalHeight/t.offsetHeight,o=e.height?e.height*a:t.naturalHeight,n=e.width?e.width*r:t.naturalWidth,i=e.x?Math.max(e.x*r,0):0,s=e.y?Math.max(e.y*a,0):0;return{height:o,width:n,x:i,y:s}}{/*removed: await import('@liferay/language...')*/};function zt(t,e,r){t&&navigator.geolocation?navigator.geolocation.getCurrentPosition(a=>{t(a.coords.latitude,a.coords.longitude,a)},e,r):e&&e()}{/*removed: await import('@liferay/language...')*/};function We(t,e=""){if(!t)throw new TypeError("Parameter icon must be provided");function r(n,i){return`<svg
6				aria-hidden="true"
7				class="lexicon-icon lexicon-icon-${n} ${i}"
8				focusable="false"
9				role="presentation"
10			>
11				<use href="${Liferay.Icons.spritemap}#${n}" />
12			</svg>`}let a=r(t,e),o=document.createElement("div");return o.innerHTML=a,o.firstChild}{/*removed: await import('@liferay/language...')*/};function Gt(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>`}{/*removed: await import('@liferay/language...')*/};var Fa="simulationDeviceIframe",Xt;function Q(){let t=Xt;if(!t){let e=window.parent,r;for(;e!==window;){try{if(typeof e.location.href>"u")break;r=e.themeDisplay}catch{break}if(!r||window.name===Fa)break;if(!r.isStatePopUp()||e===e.parent){t=e;break}e=e.parent}t||(t=window),Xt=t}return t}{/*removed: await import('@liferay/language...')*/};var Kt;function Jt(){let t=Kt;if(!t){let e=Q().Liferay.Util,r=window.name,a=e.Window.getById(r);a&&(t=a._opener,Kt=t)}return t||window.opener||window.parent}{/*removed: await import('@liferay/language...')*/};var Ua=/^(?:p_p_id)?_(.*)_.*$/;function Zt(t){return t.replace(Ua,"$1")}{/*removed: await import('@liferay/language...')*/};function Ye(t){if(typeof t!="string")throw new TypeError("portletId must be a string");return`_${t}_`}{/*removed: await import('@liferay/language...')*/};function Qt(t,e=","){return Array.from(t.getElementsByTagName("option")).reduce((a,o)=>{let{value:n}=o;return n&&a.push(n),a},[]).join(e)}{/*removed: await import('@liferay/language...')*/};function er(t=window.name){return Q().Liferay.Util.Window.getById(t)}{/*removed: await import('@liferay/language...')*/};function tr(){return window.innerWidth<je.PHONE}{/*removed: await import('@liferay/language...')*/};function rr(){return window.innerWidth<je.TABLET}{/*removed: await import('@liferay/language...')*/};var ue=class{constructor(e){this.storage=e}clear(){return this.storage.clear()}getItem(e,r){return Z(r)?this.storage.getItem(e):null}key(e,r){return Z(r)?this.storage.key(e):null}removeItem(e){return this.storage.removeItem(e)}setItem(e,r,a){return Z(a)?(this.storage.setItem(e,r),!0):!1}get length(){return this.storage.length}TYPES=we};{/*removed: await import('@liferay/language...')*/};var Ba=new ue(localStorage);{/*removed: await import('@liferay/language...')*/};function ar(t){if(typeof t!="function")throw new TypeError("Parameter fn must be a function");let e=new Map,r=(...a)=>{let o;if(a.find(n=>typeof n=="object")){let n=a.filter(i=>typeof i=="object");o=n.map(i=>JSON.stringify(i)),a.length>1&&n.length<a.length&&a.forEach(i=>
12typeof i!="object"&&o.push(i)),o=o.join(",")}else o=a.length>1?a.join(","):a[0];if(e.has(o))return e.get(o);{let n=t.apply(null,a);return e.set(o,n),n}};return r.getCache=()=>e,r}{/*removed: await import('@liferay/language...')*/};function or(t){if(typeof t!="string")throw new TypeError("parameter text must be a string");return t.replace(/[^a-z0-9_-]/gi,"-").replace(/^-+/,"").replace(/--+/,"-").toLowerCase()}{/*removed: await import('@liferay/language...')*/};function nr(t,e){let r=Q();t.openingWindow=window,r.Liferay.Util._openWindowProvider(t,e)}{/*removed: await import('@liferay/language...')*/};var Va=/^[a-z][a-z0-9+.-]*:/i;function qa(t){return Va.test(t)}function ee(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 r=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&&!qa(t)&&(t.indexOf("/")!==0?t=`${Liferay.ThemeDisplay.getPortalURL()}/${t}`:t=Liferay.ThemeDisplay.getPortalURL()+t);let a=new URL(t),o=new URLSearchParams(a.search),n=e.p_p_id||o.get("p_p_id");if(Object.entries(e).length&&!n)throw new TypeError("Portlet ID must not be null if parameters are provided");let i="";return Object.entries(e).length&&(i=Ye(n)),Object.keys(e).forEach(s=>{let l;r.has(s)?l=s:l=`${i}${s}`,o.set(l,e[s])}),a.search=o.toString(),a}{/*removed: await import('@liferay/language...')*/};function ir(t,e={}){return ee(t,{...e,p_p_lifecycle:"1"})}{/*removed: await import('@liferay/language...')*/};function sr(t,e={}){return ee(t,{...e,p_p_lifecycle:"0"})}{/*removed: await import('@liferay/language...')*/};function lr(t,e={}){return ee(t,{...e,p_p_lifecycle:"2"})}{/*removed: await import('@liferay/language...')*/};var fr={directories:0,height:480,left:80,location:1,menubar:1,resizable:1,scrollbars:"yes",status:0,toolbar:0,top:180,width:640};function dr(t,e=fr){let r={...fr,...e},o=Object.entries(r).map((n,i)=>`${n}=${i}`).join(",");window.open(t,"",o)}var te={};d(te,ns);import*as ns from"../../accessibility-settings-state-web/__liferay__/index.js";var Ee={};d(Ee,is);import*as is from"../../frontend-js-state-web/__liferay__/index.js";{/*removed: await import('@liferay/language...')*/};function Wa(){return Ee.State.read(te.accessibilityMenuAtom)[te.CONSTANTS.ACCESSIBILITY_SETTING_REDUCED_MOTION]?.value?!0:window.matchMedia("(prefers-reduced-motion: reduce)").matches}{/*removed: await import('@liferay/language...')*/};function xe(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(r=>{r.disabled=e,e?r.classList.add("disabled"):r.classList.remove("disabled")})}{/*removed: await import('@liferay/language...')*/};function cr(t,e,r,a){let o=document.getElementById(`${a}${t}`);o&&(o.value=0);let n=document.getElementById(`${a}${e}`);n&&(n.value=""),xe(r,!0),Liferay.fire("entitySelectionRemoved")}{/*removed: await import('@liferay/language...')*/};function Ya(t,e,r){let{text:a,type:o}=t,n=document.createElement("script");Liferay.CSP.nonce&&n.setAttribute("nonce",Liferay.CSP.nonce),n.text=a,n.type=o,r?r(n):document.head.appendChild(n),n.remove(),e()}function za(t,e,r){let{src:a,type:o}=t,n=document.createElement("script");Liferay.CSP.nonce&&n.setAttribute("nonce",Liferay.CSP.nonce),n.src=a,n.type=o;let i=function(){n.remove(),e()};n.addEventListener("load",i,{once:!0}),n.addEventListener("error",i,{once:!0}),r?r(n):document.head.appendChild(n)}function ur(t,e,r,a){let o=t[e],n=()=>{e<t.length-1?ur(t,e+1,r,a):r&&setTimeout(r)};if(o)o.type&&o.type!=="text/javascript"&&o.type!=="module"&&o.type!=="module-shim"?n():(o.remove(),o.src?za(o,n,a):Ya(o,n,a));else return}function Ga(t,e,r){let a=t.querySelectorAll("script");
12if(!a.length&&e){setTimeout(e);return}ur(a,0,e,r)}{/*removed: await import('@liferay/language...')*/};function pr(t,e){let r=document.getElementById(`${e}${t.idString}`);r&&(r.value=t.idValue);let a=document.getElementById(`${e}${t.nameString}`);a&&(a.value=Liferay.Util.unescape(t.nameValue));let o=document.getElementById(`${e}removeFolderButton`);o&&xe(o,!1)}{/*removed: await import('@liferay/language...')*/};var gt="serialize://";function mr(t){let e=Liferay.ThemeDisplay.getDoAsUserIdEncoded(),r=new FormData;return r.append("cmd",t),r.append("p_auth",Liferay.authToken),e&&r.append("doAsUserId",e),r}function gr(){return`${Liferay.ThemeDisplay.getPortalURL()}${Liferay.ThemeDisplay.getPathMain()}/portal/session_click`}function Xa(t,e={}){let r=mr("get");return r.append("key",t),e.useHttpSession&&r.append("useHttpSession",!0),ce(gr(),{body:r,method:"POST"}).then(a=>a.text()).then(a=>{if(a.startsWith(gt)){let o=a.substring(gt.length);a=JSON.parse(o)}return a})}function ht(t,e,r={}){let a=mr("set");return e&&typeof e=="object"&&(e=gt+JSON.stringify(e)),a.append(t,e),r.useHttpSession&&a.append("useHttpSession",!0),ce(gr(),{body:a,method:"POST"})}{/*removed: await import('@liferay/language...')*/};var Ka=new ue(sessionStorage);{/*removed: await import('@liferay/language...')*/};function hr(t,e){let r=document.getElementById(e);r&&(r.style.display="none",t.getModifierState("CapsLock")&&(r.style.display=""))}{/*removed: await import('@liferay/language...')*/};var Ja=/({\d+})/g;function yr(t,...e){let r=e.reduce((o,n)=>Array.isArray(n)?[...o,...n]:[...o,n],[]),a=t.split(Ja).filter(o=>o.length!==0);for(let o=0;o<r.length;o++){let n=r[o],i=`{${o}}`,s=a.indexOf(i);for(;s>=0;)a.splice(s,1,n),s=a.indexOf(i)}return a.some(o=>o&&typeof o=="object")?a:a.join("")}{/*removed: await import('@liferay/language...')*/};function Lr(t,e,r,a){let o=document.getElementById(t),n=document.getElementById(e);if(o&&n){let i=o.checked;r&&(i=!i),i?n.classList.remove("hide"):n.classList.add("hide"),o.addEventListener("click",()=>{n.classList.toggle("hide"),a&&n.querySelectorAll("input[type=checkbox]").forEach(l=>{l.checked=o.checked})})}}{/*removed: await import('@liferay/language...')*/};var br={false:{cssClass:"controls-hidden",iconCssClass:"hidden",state:"hidden"},true:{cssClass:"controls-visible",iconCssClass:"view",state:"visible"}};function _r(t){let e=document.body;t=t._node||e;let r=t.querySelector(".toggle-controls");if(!r)return;let a=Liferay._editControlsState==="visible",o=br[a],n=r.querySelector(".lexicon-icon");n&&(o.icon=n),e.classList.add(o.cssClass),Liferay.fire("toggleControls",{enabled:a}),r.addEventListener("click",()=>{a=!a;let i=o;o=br[a],e.classList.toggle(i.cssClass),e.classList.toggle(o.cssClass);let s=o.iconCssClass,l=o.state,c=We(s);o.icon=c,n.replaceWith(c),n=c,Liferay._editControlsState=l,ht("com.liferay.frontend.js.web_toggleControls",l),Liferay.fire("toggleControls",{enabled:a,src:"ui"})})}{/*removed: await import('@liferay/language...')*/};function wr(t,e,r){let a=document.getElementById(t);if(a){let o;e&&(Array.isArray(e)&&(e=e.join(",#")),o=document.querySelectorAll(`#${e}`),o.forEach(n=>{a.checked?n.classList.remove("hide"):n.classList.add("hide")})),a.addEventListener("change",()=>{o&&o.forEach(n=>{n.classList.remove("hide")}),r&&(Array.isArray(r)&&(r=r.join(",#")),document.querySelectorAll(`#${r}`).forEach(i=>{i.classList.add("hide")}))})}}{/*removed: await import('@liferay/language...')*/};var Tr=(t,e,r,a)=>{let o=t.value,n=r?a(o,a):a===o;e.classList.toggle("hide",!n)};function Er(t,e,r){let a=document.getElementById(t),o=document.getElementById(r);if(!a||!o)return;let n=typeof e=="function";Tr(a,o,n,e),a.addEventListener("change",()=>Tr(a,o,n,e))}{/*removed: await import('@liferay/language...')*/};var Za={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};{/*removed: await import('@liferay/language...')*/};async function yt(t){if(t.includes(" from ")){let[e,r]=Qa(t);return(await import(e))[r]}else return new Promise((e,r)=>{Liferay.Loader.require(t,a=>e(a.default||a),a=>r(a))})}function Qa(t){let e=t.split(" from "),r=e[1].trim(),a=e[0].trim();return a.startsWith("{")&&a.endsWith("}")&&(a=a.substring(1,a.length-1).trim()),[r,a]}{/*removed: await import('@liferay/language...')*/};function ze(t){for(let{clientExtensionDefinitions:e,onLoad:r}of t){if(!e.length)continue;let a=e.map(({context:o,importDeclaration:n})=>yt(n).then(i=>({binding:i,context:o})).catch(i=>({context:o,error:i})));Promise.all(a).then(r)}}{/*removed: await import('@liferay/language...')*/};function xr({config:t,onLoad:e}){ze([{clientExtensionDefinitions:t.editorTransformerURLs.map(r=>({importDeclaration:`default from ${r}`})),onLoad:r=>{let a=JSON.parse(JSON.stringify(t));r.forEach(({binding:o,error:n})=>{let i=o?.editorConfigTransformer;i&&(a=i(a))}),e({transformedConfig:a})}}])}{/*removed: await import('@liferay/language...')*/};function eo(t,e){return t.setDate(t.getDate()-e),t}function to(t,e){return t.setMonth(t.getMonth()-e),t}function ro(t){return!isNaN((t instanceof Date?t:new Date(t)).getTime())}var Lt=(t,e)=>{let a=new Intl.DateTimeFormat(e,{day:"2-digit",month:"2-digit",year:"numeric"}).formatToParts(t),o=a.find(s=>s.type==="year")?.value,n=a.find(s=>s.type==="month")?.value;return{day:a.find(s=>s.type==="day")?.value,month:n,year:o}},ao={"MM/dd/yyyy":(t,e)=>{let{day:r,month:a,year:o}=Lt(t,e);return`${a}/${r}/${o}`},P:(t,e)=>new Intl.DateTimeFormat(e,{day:"2-digit",month:"2-digit",year:"numeric"}).format(t),"P p":(t,e)=>new Intl.DateTimeFormat(e,{day:"2-digit",hour:"2-digit",minute:"2-digit",month:"2-digit",second:"2-digit",year:"numeric"}).format(t),"PP p":(t,e)=>new Intl.DateTimeFormat(e,{day:"numeric",hour:"numeric",minute:"numeric",month:"short",year:"numeric"}).format(t),p:(t,e)=>new Intl.DateTimeFormat(e,{hour:"numeric",minute:"numeric"}).format(t),"yyyy/MM/dd":(t,e)=>{let{day:r,month:a,year:o}=Lt(t,e);return`${o}/${a}/${r}`},"yyyy-MM-dd":(t,e)=>{let{day:r,month:a,year:o}=Lt(t,e);return`${o}-${a}-${r}`}};function oo(t,e,r=Liferay.ThemeDisplay.getBCP47LanguageId()){let a=ao[e];return a||console.log(`No formatter found for ${e}`),t instanceof Date||(t=new Date(t)),a(t,r)}var no={"MM/dd/yyyy":t=>{let[e,r,a]=t.split("/");return new Date(Number(a),Number(e)-1,Number(r))},P:(t,e)=>{let r=new Intl.DateTimeFormat(e,{day:"2-digit",month:"2-digit",year:"numeric"}).format(new Date(2e3,0,2)).replace("2000","yyyy").replace("01","MM").replace("02","dd"),a=t.substr(r.indexOf("d"),2),o=t.substr(r.indexOf("M"),2),n=t.substr(r.indexOf("y"),4);return new Date(Number(n),Number(o)-1,Number(a))},"yyyy/MM/dd":t=>{let[e,r,a]=t.split("/");return new Date(Number(e),Number(r)-1,Number(a))},"yyyy-MM-dd":t=>{let[e,r,a]=t.split("-");return new Date(Number(e),Number(r)-1,Number(a))}};function io(t,e,r=Liferay.ThemeDisplay.getBCP47LanguageId()){let a=no[e];return a||console.log(`No parser found for ${e}`),a(t,r)}var so={format:oo,isValid:ro,parse:io,subDays:eo,subMonths:to};export{S as ALIGN_POSITIONS,Kr as AOP,je as BREAKPOINTS,we as COOKIE_TYPES,Dr as DefaultEventHandler,ie as Disposable,Pr as DynamicInlineScroll,oa as EventEmitter,na as EventHandler,Ce as PortletBase,Sa as STATUS_CODE,be as addParams,Gr as align,ra as autoSize,Ue as buildFragment,Dt as cancelDebounce,Z as checkConsent,ir as createActionURL,ee as createPortletURL,sr as createRenderURL,lr as createResourceURL,so as dateUtils,aa as debounce,me as delegate,ne as escapeHTML,ce as fetch,Bt as focusFormField,qt as formatStorage,Xr as getAlignBestRegion,Me as getAlignRegion,Ra as getCheckedCheckboxes,pt as getCookie,Ht as getCountries,Yt as getCropRegion,Ve as getFormElement,zt as getGeolocation,We as getLexiconIcon,Gt as getLexiconIconTpl,Jt as getOpener,Zt as getPortletId,Ye as getPortletNamespace,Ft as getRegions,Qt as getSelectedOptionValues,Xa as getSessionValue,Q as getTop,Ha as getUncheckedCheckboxes,er as getW
12indow,Pe as inBrowserView,k as isObject,tr as isPhone,Wa as isReducedMotion,rr as isTablet,ze as loadClientExtensions,xr as loadEditorClientExtensions,yt as loadModule,Ba as localStorage,ar as memoize,X as navigate,or as normalizeFriendlyURL,pe as objectToFormData,xa as openAlertModal,Ot as openCategorySelectionModal,Ia as openConfirmModal,fe as openModal,$t as openPortletModal,ma as openPortletWindow,Ne as openSelectionModal,Ta as openSimpleInputModal,Mt as openTagSelectionModal,Pa as openToast,nr as openWindow,Vt as postForm,dr as printPage,va as removeCookie,cr as removeEntitySelection,Ga as runScriptsInElement,pr as selectFolder,Ka as sessionStorage,Oa as setCookie,qe as setFormValues,ht as setSessionValue,hr as showCapsLock,yr as sub,et as suggestAlignBestRegion,kt as throttle,Lr as toggleBoxes,_r as toggleControls,xe as toggleDisabled,wr as toggleRadio,Er as toggleSelectBox,ta as unescapeHTML,Za 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.