diff --git a/dist/mockup/bundle.min.js b/dist/mockup/bundle.min.js index baacb8586..80dc3e36c 100644 --- a/dist/mockup/bundle.min.js +++ b/dist/mockup/bundle.min.js @@ -14,5 +14,5 @@ const y=new Map,_={set(e,t,n){y.has(e)||y.set(e,new Map);const a=y.get(e);a.has( * https://jquery.org/license * * Date: 2023-08-28T13:37Z - */!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(a,c){"use strict";var r=[],i=Object.getPrototypeOf,f=r.slice,o=r.flat?function(e){return r.flat.call(e)}:function(e){return r.concat.apply([],e)},d=r.push,s=r.indexOf,b={},u=b.toString,l=b.hasOwnProperty,h=l.toString,p=h.call(Object),g={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},v=function(e){return null!=e&&e===e.window},y=a.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var a,c,r=(n=n||y).createElement("script");if(r.text=e,t)for(a in _)(c=t[a]||t.getAttribute&&t.getAttribute(a))&&r.setAttribute(a,c);n.head.appendChild(r).parentNode.removeChild(r)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?b[u.call(e)]||"object":typeof e}var A="3.7.1",T=/HTML$/i,E=function(e,t){return new E.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!m(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function k(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}E.fn=E.prototype={jquery:A,constructor:E,length:0,toArray:function(){return f.call(this)},get:function(e){return null==e?f.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=E.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return E.each(this,e)},map:function(e){return this.pushStack(E.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(E.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n+~]|"+j+")"+j+"*"),F=new RegExp(j+"|>"),W=new RegExp(I),B=new RegExp("^"+N+"$"),z={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+C+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},U=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,G=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\r\\n\\f])","g"),Y=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},K=function(){oe()},J=ue((function(e){return!0===e.disabled&&k(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{p.apply(r=f.call(M.childNodes),M.childNodes),r[M.childNodes.length].nodeType}catch(e){p={apply:function(e,t){$.apply(e,f.call(t))},call:function(e){$.apply(e,f.call(arguments,1))}}}function Z(e,t,n,a){var c,r,i,f,d,s,l,h=t&&t.ownerDocument,v=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==v&&9!==v&&11!==v)return n;if(!a&&(oe(t),t=t||o,b)){if(11!==v&&(d=X.exec(e)))if(c=d[1]){if(9===v){if(!(i=t.getElementById(c)))return n;if(i.id===c)return p.call(n,i),n}else if(h&&(i=h.getElementById(c))&&Z.contains(t,i)&&i.id===c)return p.call(n,i),n}else{if(d[2])return p.apply(n,t.getElementsByTagName(e)),n;if((c=d[3])&&t.getElementsByClassName)return p.apply(n,t.getElementsByClassName(c)),n}if(!(A[e+" "]||u&&u.test(e))){if(l=e,h=t,1===v&&(F.test(e)||R.test(e))){for((h=Q.test(e)&&fe(t.parentNode)||t)==t&&g.scope||((f=t.getAttribute("id"))?f=E.escapeSelector(f):t.setAttribute("id",f=m)),r=(s=se(e)).length;r--;)s[r]=(f?"#"+f:":scope")+" "+be(s[r]);l=s.join(",")}try{return p.apply(n,h.querySelectorAll(l)),n}catch(t){A(e,!0)}finally{f===m&&t.removeAttribute("id")}}}return ve(e.replace(L,"$1"),t,n,a)}function ee(){var e=[];return function n(a,c){return e.push(a+" ")>t.cacheLength&&delete n[e.shift()],n[a+" "]=c}}function te(e){return e[m]=!0,e}function ne(e){var t=o.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ae(e){return function(t){return k(t,"input")&&t.type===e}}function ce(e){return function(t){return(k(t,"input")||k(t,"button"))&&t.type===e}}function re(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&J(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ie(e){return te((function(t){return t=+t,te((function(n,a){for(var c,r=e([],n.length,t),i=r.length;i--;)n[c=r[i]]&&(n[c]=!(a[c]=n[c]))}))}))}function fe(e){return e&&void 0!==e.getElementsByTagName&&e}function oe(e){var n,a=e?e.ownerDocument||e:M;return a!=o&&9===a.nodeType&&a.documentElement?(d=(o=a).documentElement,b=!E.isXMLDoc(o),h=d.matches||d.webkitMatchesSelector||d.msMatchesSelector,d.msMatchesSelector&&M!=o&&(n=o.defaultView)&&n.top!==n&&n.addEventListener("unload",K),g.getById=ne((function(e){return d.appendChild(e).id=E.expando,!o.getElementsByName||!o.getElementsByName(E.expando).length})),g.disconnectedMatch=ne((function(e){return h.call(e,"*")})),g.scope=ne((function(){return o.querySelectorAll(":scope")})),g.cssHas=ne((function(){try{return o.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),g.getById?(t.filter.ID=function(e){var t=e.replace(G,Y);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&b){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(G,Y);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&b){var n,a,c,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(c=t.getElementsByName(e),a=0;r=c[a++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&b)return t.getElementsByClassName(e)},u=[],ne((function(e){var t;d.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||u.push("\\["+j+"*(?:value|"+C+")"),e.querySelectorAll("[id~="+m+"-]").length||u.push("~="),e.querySelectorAll("a#"+m+"+*").length||u.push(".#.+[+~]"),e.querySelectorAll(":checked").length||u.push(":checked"),(t=o.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),d.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&u.push(":enabled",":disabled"),(t=o.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||u.push("\\["+j+"*name"+j+"*="+j+"*(?:''|\"\")")})),g.cssHas||u.push(":has"),u=u.length&&new RegExp(u.join("|")),T=function(e,t){if(e===t)return i=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===n?e===o||e.ownerDocument==M&&Z.contains(M,e)?-1:t===o||t.ownerDocument==M&&Z.contains(M,t)?1:c?s.call(c,e)-s.call(c,t):0:4&n?-1:1)},o):o}for(e in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(oe(e),b&&!A[t+" "]&&(!u||!u.test(t)))try{var n=h.call(e,t);if(n||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return Z(t,o,null,[e]).length>0},Z.contains=function(e,t){return(e.ownerDocument||e)!=o&&oe(e),E.contains(e,t)},Z.attr=function(e,n){(e.ownerDocument||e)!=o&&oe(e);var a=t.attrHandle[n.toLowerCase()],c=a&&l.call(t.attrHandle,n.toLowerCase())?a(e,n,!b):void 0;return void 0!==c?c:e.getAttribute(n)},Z.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},E.uniqueSort=function(e){var t,n=[],a=0,r=0;if(i=!g.sortStable,c=!g.sortStable&&f.call(e,0),O.call(e,T),i){for(;t=e[r++];)t===e[r]&&(a=n.push(r));for(;a--;)D.call(e,n[a],1)}return c=null,e},E.fn.uniqueSort=function(){return this.pushStack(E.uniqueSort(f.apply(this)))},t=E.expr={cacheLength:50,createPseudo:te,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(G,Y),e[3]=(e[3]||e[4]||e[5]||"").replace(G,Y),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Z.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Z.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=se(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(G,Y).toLowerCase();return"*"===e?function(){return!0}:function(e){return k(e,t)}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+j+")"+e+"("+j+"|$)"))&&_(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(a){var c=Z.attr(a,e);return null==c?"!="===t:!t||(c+="","="===t?c===n:"!="===t?c!==n:"^="===t?n&&0===c.indexOf(n):"*="===t?n&&c.indexOf(n)>-1:"$="===t?n&&c.slice(-n.length)===n:"~="===t?(" "+c.replace(q," ")+" ").indexOf(n)>-1:"|="===t&&(c===n||c.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,a,c){var r="nth"!==e.slice(0,3),i="last"!==e.slice(-4),f="of-type"===t;return 1===a&&0===c?function(e){return!!e.parentNode}:function(t,n,o){var d,s,b,u,l,h=r!==i?"nextSibling":"previousSibling",p=t.parentNode,g=f&&t.nodeName.toLowerCase(),y=!o&&!f,_=!1;if(p){if(r){for(;h;){for(b=t;b=b[h];)if(f?k(b,g):1===b.nodeType)return!1;l=h="only"===e&&!l&&"nextSibling"}return!0}if(l=[i?p.firstChild:p.lastChild],i&&y){for(_=(u=(d=(s=p[m]||(p[m]={}))[e]||[])[0]===v&&d[1])&&d[2],b=u&&p.childNodes[u];b=++u&&b&&b[h]||(_=u=0)||l.pop();)if(1===b.nodeType&&++_&&b===t){s[e]=[v,u,_];break}}else if(y&&(_=u=(d=(s=t[m]||(t[m]={}))[e]||[])[0]===v&&d[1]),!1===_)for(;(b=++u&&b&&b[h]||(_=u=0)||l.pop())&&(!(f?k(b,g):1===b.nodeType)||!++_||(y&&((s=b[m]||(b[m]={}))[e]=[v,_]),b!==t)););return(_-=c)===a||_%a==0&&_/a>=0}}},PSEUDO:function(e,n){var a,c=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Z.error("unsupported pseudo: "+e);return c[m]?c(n):c.length>1?(a=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var a,r=c(e,n),i=r.length;i--;)e[a=s.call(e,r[i])]=!(t[a]=r[i])})):function(e){return c(e,0,a)}):c}},pseudos:{not:te((function(e){var t=[],n=[],a=me(e.replace(L,"$1"));return a[m]?te((function(e,t,n,c){for(var r,i=a(e,null,c,[]),f=e.length;f--;)(r=i[f])&&(e[f]=!(t[f]=r))})):function(e,c,r){return t[0]=e,a(t,null,r,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return Z(e,t).length>0}})),contains:te((function(e){return e=e.replace(G,Y),function(t){return(t.textContent||E.text(t)).indexOf(e)>-1}})),lang:te((function(e){return B.test(e||"")||Z.error("unsupported lang: "+e),e=e.replace(G,Y).toLowerCase(),function(t){var n;do{if(n=b?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=a.location&&a.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===d},focus:function(e){return e===function(){try{return o.activeElement}catch(e){}}()&&o.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:re(!1),disabled:re(!0),checked:function(e){return k(e,"input")&&!!e.checked||k(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return V.test(e.nodeName)},input:function(e){return U.test(e.nodeName)},button:function(e){return k(e,"input")&&"button"===e.type||k(e,"button")},text:function(e){var t;return k(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ie((function(){return[0]})),last:ie((function(e,t){return[t-1]})),eq:ie((function(e,t,n){return[n<0?n+t:n]})),even:ie((function(e,t){for(var n=0;nt?t:n;--a>=0;)e.push(a);return e})),gt:ie((function(e,t,n){for(var a=n<0?n+t:n;++a1?function(t,n,a){for(var c=e.length;c--;)if(!e[c](t,n,a))return!1;return!0}:e[0]}function he(e,t,n,a,c){for(var r,i=[],f=0,o=e.length,d=null!=t;f-1&&(r[d]=!(i[d]=u))}}else l=he(l===i?l.splice(m,l.length):l),c?c(null,i,l,o):p.apply(i,l)}))}function ge(e){for(var a,c,r,i=e.length,f=t.relative[e[0].type],o=f||t.relative[" "],d=f?1:0,b=ue((function(e){return e===a}),o,!0),u=ue((function(e){return s.call(a,e)>-1}),o,!0),l=[function(e,t,c){var r=!f&&(c||t!=n)||((a=t).nodeType?b(e,t,c):u(e,t,c));return a=null,r}];d1&&le(l),d>1&&be(e.slice(0,d-1).concat({value:" "===e[d-2].type?"*":""})).replace(L,"$1"),c,d0,r=e.length>0,i=function(i,f,d,s,u){var l,h,g,m=0,y="0",_=i&&[],w=[],x=n,A=i||r&&t.find.TAG("*",u),T=v+=null==x?1:Math.random()||.1,C=A.length;for(u&&(n=f==o||f||u);y!==C&&null!=(l=A[y]);y++){if(r&&l){for(h=0,f||l.ownerDocument==o||(oe(l),d=!b);g=e[h++];)if(g(l,f||o,d)){p.call(s,l);break}u&&(v=T)}c&&((l=!g&&l)&&m--,i&&_.push(l))}if(m+=y,c&&y!==m){for(h=0;g=a[h++];)g(_,w,f,d);if(i){if(m>0)for(;y--;)_[y]||w[y]||(w[y]=S.call(s));w=he(w)}p.apply(s,w),u&&!i&&w.length>0&&m+a.length>1&&E.uniqueSort(s)}return u&&(v=T,n=x),_};return c?te(i):i}(i,r)),f.selector=e}return f}function ve(e,n,a,c){var r,i,f,o,d,s="function"==typeof e&&e,u=!c&&se(e=s.selector||e);if(a=a||[],1===u.length){if((i=u[0]=u[0].slice(0)).length>2&&"ID"===(f=i[0]).type&&9===n.nodeType&&b&&t.relative[i[1].type]){if(!(n=(t.find.ID(f.matches[0].replace(G,Y),n)||[])[0]))return a;s&&(n=n.parentNode),e=e.slice(i.shift().value.length)}for(r=z.needsContext.test(e)?0:i.length;r--&&(f=i[r],!t.relative[o=f.type]);)if((d=t.find[o])&&(c=d(f.matches[0].replace(G,Y),Q.test(i[0].type)&&fe(n.parentNode)||n))){if(i.splice(r,1),!(e=c.length&&be(i)))return p.apply(a,c),a;break}}return(s||me(e,u))(c,n,!b,a,!n||Q.test(e)&&fe(n.parentNode)||n),a}de.prototype=t.filters=t.pseudos,t.setFilters=new de,g.sortStable=m.split("").sort(T).join("")===m,oe(),g.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(o.createElement("fieldset"))})),E.find=Z,E.expr[":"]=E.expr.pseudos,E.unique=E.uniqueSort,Z.compile=me,Z.select=ve,Z.setDocument=oe,Z.tokenize=se,Z.escape=E.escapeSelector,Z.getText=E.text,Z.isXML=E.isXMLDoc,Z.selectors=E.expr,Z.support=E.support,Z.uniqueSort=E.uniqueSort}();var I=function(e,t,n){for(var a=[],c=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(c&&E(e).is(n))break;a.push(e)}return a},q=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},H=E.expr.match.needsContext,R=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function F(e,t,n){return m(t)?E.grep(e,(function(e,a){return!!t.call(e,a,e)!==n})):t.nodeType?E.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?E.grep(e,(function(e){return s.call(t,e)>-1!==n})):E.filter(t,e,n)}E.filter=function(e,t,n){var a=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===a.nodeType?E.find.matchesSelector(a,e)?[a]:[]:E.find.matches(e,E.grep(t,(function(e){return 1===e.nodeType})))},E.fn.extend({find:function(e){var t,n,a=this.length,c=this;if("string"!=typeof e)return this.pushStack(E(e).filter((function(){for(t=0;t1?E.uniqueSort(n):n},filter:function(e){return this.pushStack(F(this,e||[],!1))},not:function(e){return this.pushStack(F(this,e||[],!0))},is:function(e){return!!F(this,"string"==typeof e&&H.test(e)?E(e):e||[],!1).length}});var W,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var a,c;if(!e)return this;if(n=n||W,"string"==typeof e){if(!(a="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:B.exec(e))||!a[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(a[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(a[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),R.test(a[1])&&E.isPlainObject(t))for(a in t)m(this[a])?this[a](t[a]):this.attr(a,t[a]);return this}return(c=y.getElementById(a[2]))&&(this[0]=c,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this)}).prototype=E.fn,W=E(y);var z=/^(?:parents|prev(?:Until|All))/,U={children:!0,contents:!0,next:!0,prev:!0};function V(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter((function(){for(var e=0;e-1:1===n.nodeType&&E.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?E.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?s.call(E(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),E.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return I(e,"parentNode")},parentsUntil:function(e,t,n){return I(e,"parentNode",n)},next:function(e){return V(e,"nextSibling")},prev:function(e){return V(e,"previousSibling")},nextAll:function(e){return I(e,"nextSibling")},prevAll:function(e){return I(e,"previousSibling")},nextUntil:function(e,t,n){return I(e,"nextSibling",n)},prevUntil:function(e,t,n){return I(e,"previousSibling",n)},siblings:function(e){return q((e.parentNode||{}).firstChild,e)},children:function(e){return q(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:(k(e,"template")&&(e=e.content||e),E.merge([],e.childNodes))}},(function(e,t){E.fn[e]=function(n,a){var c=E.map(this,t,n);return"Until"!==e.slice(-5)&&(a=n),a&&"string"==typeof a&&(c=E.filter(a,c)),this.length>1&&(U[e]||E.uniqueSort(c),z.test(e)&&c.reverse()),this.pushStack(c)}}));var X=/[^\x20\t\r\n\f]+/g;function Q(e){return e}function G(e){throw e}function Y(e,t,n,a){var c;try{e&&m(c=e.promise)?c.call(e).done(t).fail(n):e&&m(c=e.then)?c.call(e,t,n):t.apply(void 0,[e].slice(a))}catch(e){n.apply(void 0,[e])}}E.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return E.each(e.match(X)||[],(function(e,n){t[n]=!0})),t}(e):E.extend({},e);var t,n,a,c,r=[],i=[],f=-1,o=function(){for(c=c||e.once,a=t=!0;i.length;f=-1)for(n=i.shift();++f-1;)r.splice(n,1),n<=f&&f--})),this},has:function(e){return e?E.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return c=i=[],r=n="",this},disabled:function(){return!r},lock:function(){return c=i=[],n||t||(r=n=""),this},locked:function(){return!!c},fireWith:function(e,n){return c||(n=[e,(n=n||[]).slice?n.slice():n],i.push(n),t||o()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!a}};return d},E.extend({Deferred:function(e){var t=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],n="pending",c={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return c.then(null,e)},pipe:function(){var e=arguments;return E.Deferred((function(n){E.each(t,(function(t,a){var c=m(e[a[4]])&&e[a[4]];r[a[1]]((function(){var e=c&&c.apply(this,arguments);e&&m(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[a[0]+"With"](this,c?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,c){var r=0;function i(e,t,n,c){return function(){var f=this,o=arguments,d=function(){var a,d;if(!(e=r&&(n!==G&&(f=void 0,o=[a]),t.rejectWith(f,o))}};e?s():(E.Deferred.getErrorHook?s.error=E.Deferred.getErrorHook():E.Deferred.getStackHook&&(s.error=E.Deferred.getStackHook()),a.setTimeout(s))}}return E.Deferred((function(a){t[0][3].add(i(0,a,m(c)?c:Q,a.notifyWith)),t[1][3].add(i(0,a,m(e)?e:Q)),t[2][3].add(i(0,a,m(n)?n:G))})).promise()},promise:function(e){return null!=e?E.extend(e,c):c}},r={};return E.each(t,(function(e,a){var i=a[2],f=a[5];c[a[1]]=i.add,f&&i.add((function(){n=f}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),i.add(a[3].fire),r[a[0]]=function(){return r[a[0]+"With"](this===r?void 0:this,arguments),this},r[a[0]+"With"]=i.fireWith})),c.promise(r),e&&e.call(r,r),r},when:function(e){var t=arguments.length,n=t,a=Array(n),c=f.call(arguments),r=E.Deferred(),i=function(e){return function(n){a[e]=this,c[e]=arguments.length>1?f.call(arguments):n,--t||r.resolveWith(a,c)}};if(t<=1&&(Y(e,r.done(i(n)).resolve,r.reject,!t),"pending"===r.state()||m(c[n]&&c[n].then)))return r.then();for(;n--;)Y(c[n],i(n),r.reject);return r.promise()}});var K=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(e,t){a.console&&a.console.warn&&e&&K.test(e.name)&&a.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},E.readyException=function(e){a.setTimeout((function(){throw e}))};var J=E.Deferred();function Z(){y.removeEventListener("DOMContentLoaded",Z),a.removeEventListener("load",Z),E.ready()}E.fn.ready=function(e){return J.then(e).catch((function(e){E.readyException(e)})),this},E.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--E.readyWait:E.isReady)||(E.isReady=!0,!0!==e&&--E.readyWait>0||J.resolveWith(y,[E]))}}),E.ready.then=J.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?a.setTimeout(E.ready):(y.addEventListener("DOMContentLoaded",Z),a.addEventListener("load",Z));var ee=function(e,t,n,a,c,r,i){var f=0,o=e.length,d=null==n;if("object"===x(n))for(f in c=!0,n)ee(e,t,f,n[f],!0,r,i);else if(void 0!==a&&(c=!0,m(a)||(i=!0),d&&(i?(t.call(e,a),t=null):(d=t,t=function(e,t,n){return d.call(E(e),n)})),t))for(;f1,null,!0)},removeData:function(e){return this.each((function(){oe.remove(this,e)}))}}),E.extend({queue:function(e,t,n){var a;if(e)return t=(t||"fx")+"queue",a=fe.get(e,t),n&&(!a||Array.isArray(n)?a=fe.access(e,t,E.makeArray(n)):a.push(n)),a||[]},dequeue:function(e,t){t=t||"fx";var n=E.queue(e,t),a=n.length,c=n.shift(),r=E._queueHooks(e,t);"inprogress"===c&&(c=n.shift(),a--),c&&("fx"===t&&n.unshift("inprogress"),delete r.stop,c.call(e,(function(){E.dequeue(e,t)}),r)),!a&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return fe.get(e,n)||fe.access(e,n,{empty:E.Callbacks("once memory").add((function(){fe.remove(e,[t+"queue",n])}))})}}),E.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,ke=/^$|^module$|\/(?:java|ecma)script/i;Ae=y.createDocumentFragment().appendChild(y.createElement("div")),(Te=y.createElement("input")).setAttribute("type","radio"),Te.setAttribute("checked","checked"),Te.setAttribute("name","t"),Ae.appendChild(Te),g.checkClone=Ae.cloneNode(!0).cloneNode(!0).lastChild.checked,Ae.innerHTML="",g.noCloneChecked=!!Ae.cloneNode(!0).lastChild.defaultValue,Ae.innerHTML="",g.option=!!Ae.lastChild;var Se={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Oe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k(e,t)?E.merge([e],n):n}function De(e,t){for(var n=0,a=e.length;n",""]);var je=/<|&#?\w+;/;function Le(e,t,n,a,c){for(var r,i,f,o,d,s,b=t.createDocumentFragment(),u=[],l=0,h=e.length;l-1)c&&c.push(r);else if(d=ge(r),i=Oe(b.appendChild(r),"script"),d&&De(i),n)for(s=0;r=i[s++];)ke.test(r.type||"")&&n.push(r);return b}var Ne=/^([^.]*)(?:\.(.+)|)/;function Pe(){return!0}function Me(){return!1}function $e(e,t,n,a,c,r){var i,f;if("object"==typeof t){for(f in"string"!=typeof n&&(a=a||n,n=void 0),t)$e(e,f,n,a,t[f],r);return e}if(null==a&&null==c?(c=n,a=n=void 0):null==c&&("string"==typeof n?(c=a,a=void 0):(c=a,a=n,n=void 0)),!1===c)c=Me;else if(!c)return e;return 1===r&&(i=c,c=function(e){return E().off(e),i.apply(this,arguments)},c.guid=i.guid||(i.guid=E.guid++)),e.each((function(){E.event.add(this,t,c,a,n)}))}function Ie(e,t,n){n?(fe.set(e,t,!1),E.event.add(e,t,{namespace:!1,handler:function(e){var n,a=fe.get(this,t);if(1&e.isTrigger&&this[t]){if(a)(E.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=f.call(arguments),fe.set(this,t,a),this[t](),n=fe.get(this,t),fe.set(this,t,!1),a!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else a&&(fe.set(this,t,E.event.trigger(a[0],a.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Pe)}})):void 0===fe.get(e,t)&&E.event.add(e,t,Pe)}E.event={global:{},add:function(e,t,n,a,c){var r,i,f,o,d,s,b,u,l,h,p,g=fe.get(e);if(re(e))for(n.handler&&(n=(r=n).handler,c=r.selector),c&&E.find.matchesSelector(pe,c),n.guid||(n.guid=E.guid++),(o=g.events)||(o=g.events=Object.create(null)),(i=g.handle)||(i=g.handle=function(t){return void 0!==E&&E.event.triggered!==t.type?E.event.dispatch.apply(e,arguments):void 0}),d=(t=(t||"").match(X)||[""]).length;d--;)l=p=(f=Ne.exec(t[d])||[])[1],h=(f[2]||"").split(".").sort(),l&&(b=E.event.special[l]||{},l=(c?b.delegateType:b.bindType)||l,b=E.event.special[l]||{},s=E.extend({type:l,origType:p,data:a,handler:n,guid:n.guid,selector:c,needsContext:c&&E.expr.match.needsContext.test(c),namespace:h.join(".")},r),(u=o[l])||((u=o[l]=[]).delegateCount=0,b.setup&&!1!==b.setup.call(e,a,h,i)||e.addEventListener&&e.addEventListener(l,i)),b.add&&(b.add.call(e,s),s.handler.guid||(s.handler.guid=n.guid)),c?u.splice(u.delegateCount++,0,s):u.push(s),E.event.global[l]=!0)},remove:function(e,t,n,a,c){var r,i,f,o,d,s,b,u,l,h,p,g=fe.hasData(e)&&fe.get(e);if(g&&(o=g.events)){for(d=(t=(t||"").match(X)||[""]).length;d--;)if(l=p=(f=Ne.exec(t[d])||[])[1],h=(f[2]||"").split(".").sort(),l){for(b=E.event.special[l]||{},u=o[l=(a?b.delegateType:b.bindType)||l]||[],f=f[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=r=u.length;r--;)s=u[r],!c&&p!==s.origType||n&&n.guid!==s.guid||f&&!f.test(s.namespace)||a&&a!==s.selector&&("**"!==a||!s.selector)||(u.splice(r,1),s.selector&&u.delegateCount--,b.remove&&b.remove.call(e,s));i&&!u.length&&(b.teardown&&!1!==b.teardown.call(e,h,g.handle)||E.removeEvent(e,l,g.handle),delete o[l])}else for(l in o)E.event.remove(e,l+t[d],n,a,!0);E.isEmptyObject(o)&&fe.remove(e,"handle events")}},dispatch:function(e){var t,n,a,c,r,i,f=new Array(arguments.length),o=E.event.fix(e),d=(fe.get(this,"events")||Object.create(null))[o.type]||[],s=E.event.special[o.type]||{};for(f[0]=o,t=1;t=1))for(;d!==this;d=d.parentNode||this)if(1===d.nodeType&&("click"!==e.type||!0!==d.disabled)){for(r=[],i={},n=0;n-1:E.find(c,this,null,[d]).length),i[c]&&r.push(a);r.length&&f.push({elem:d,handlers:r})}return d=this,o\s*$/g;function Fe(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function We(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Be(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ze(e,t){var n,a,c,r,i,f;if(1===t.nodeType){if(fe.hasData(e)&&(f=fe.get(e).events))for(c in fe.remove(t,"handle events"),f)for(n=0,a=f[c].length;n1&&"string"==typeof h&&!g.checkClone&&He.test(h))return e.each((function(c){var r=e.eq(c);p&&(t[0]=h.call(this,c,r.html())),Ve(r,t,n,a)}));if(u&&(r=(c=Le(t,e[0].ownerDocument,!1,e,a)).firstChild,1===c.childNodes.length&&(c=r),r||a)){for(f=(i=E.map(Oe(c,"script"),We)).length;b0&&De(i,!o&&Oe(e,"script")),f},cleanData:function(e){for(var t,n,a,c=E.event.special,r=0;void 0!==(n=e[r]);r++)if(re(n)){if(t=n[fe.expando]){if(t.events)for(a in t.events)c[a]?E.event.remove(n,a):E.removeEvent(n,a,t.handle);n[fe.expando]=void 0}n[oe.expando]&&(n[oe.expando]=void 0)}}}),E.fn.extend({detach:function(e){return Xe(this,e,!0)},remove:function(e){return Xe(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?E.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ve(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Fe(this,e).appendChild(e)}))},prepend:function(){return Ve(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Fe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ve(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ve(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(E.cleanData(Oe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return E.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,a=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!qe.test(e)&&!Se[(Ce.exec(e)||["",""])[1].toLowerCase()]){e=E.htmlPrefilter(e);try{for(;n=0&&(o+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-o-f-.5))||0),o+d}function st(e,t,n){var a=Ye(e),c=(!g.boxSizingReliable()||n)&&"border-box"===E.css(e,"boxSizing",!1,a),r=c,i=Ze(e,t,a),f="offset"+t[0].toUpperCase()+t.slice(1);if(Qe.test(i)){if(!n)return i;i="auto"}return(!g.boxSizingReliable()&&c||!g.reliableTrDimensions()&&k(e,"tr")||"auto"===i||!parseFloat(i)&&"inline"===E.css(e,"display",!1,a))&&e.getClientRects().length&&(c="border-box"===E.css(e,"boxSizing",!1,a),(r=f in e)&&(i=e[f])),(i=parseFloat(i)||0)+dt(e,t,n||(c?"border":"content"),r,a,i)+"px"}function bt(e,t,n,a,c){return new bt.prototype.init(e,t,n,a,c)}E.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,a){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var c,r,i,f=ce(t),o=Ge.test(t),d=e.style;if(o||(t=ct(f)),i=E.cssHooks[t]||E.cssHooks[f],void 0===n)return i&&"get"in i&&void 0!==(c=i.get(e,!1,a))?c:d[t];"string"===(r=typeof n)&&(c=le.exec(n))&&c[1]&&(n=ye(e,t,c),r="number"),null!=n&&n==n&&("number"!==r||o||(n+=c&&c[3]||(E.cssNumber[f]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(d[t]="inherit"),i&&"set"in i&&void 0===(n=i.set(e,n,a))||(o?d.setProperty(t,n):d[t]=n))}},css:function(e,t,n,a){var c,r,i,f=ce(t);return Ge.test(t)||(t=ct(f)),(i=E.cssHooks[t]||E.cssHooks[f])&&"get"in i&&(c=i.get(e,!0,n)),void 0===c&&(c=Ze(e,t,a)),"normal"===c&&t in ft&&(c=ft[t]),""===n||n?(r=parseFloat(c),!0===n||isFinite(r)?r||0:c):c}}),E.each(["height","width"],(function(e,t){E.cssHooks[t]={get:function(e,n,a){if(n)return!rt.test(E.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?st(e,t,a):Ke(e,it,(function(){return st(e,t,a)}))},set:function(e,n,a){var c,r=Ye(e),i=!g.scrollboxSize()&&"absolute"===r.position,f=(i||a)&&"border-box"===E.css(e,"boxSizing",!1,r),o=a?dt(e,t,a,f,r):0;return f&&i&&(o-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-dt(e,t,"border",!1,r)-.5)),o&&(c=le.exec(n))&&"px"!==(c[3]||"px")&&(e.style[t]=n,n=E.css(e,t)),ot(0,n,o)}}})),E.cssHooks.marginLeft=et(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ze(e,"marginLeft"))||e.getBoundingClientRect().left-Ke(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),E.each({margin:"",padding:"",border:"Width"},(function(e,t){E.cssHooks[e+t]={expand:function(n){for(var a=0,c={},r="string"==typeof n?n.split(" "):[n];a<4;a++)c[e+he[a]+t]=r[a]||r[a-2]||r[0];return c}},"margin"!==e&&(E.cssHooks[e+t].set=ot)})),E.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var a,c,r={},i=0;if(Array.isArray(t)){for(a=Ye(e),c=t.length;i1)}}),E.Tween=bt,bt.prototype={constructor:bt,init:function(e,t,n,a,c,r){this.elem=e,this.prop=n,this.easing=c||E.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=a,this.unit=r||(E.cssNumber[n]?"":"px")},cur:function(){var e=bt.propHooks[this.prop];return e&&e.get?e.get(this):bt.propHooks._default.get(this)},run:function(e){var t,n=bt.propHooks[this.prop];return this.options.duration?this.pos=t=E.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):bt.propHooks._default.set(this),this}},bt.prototype.init.prototype=bt.prototype,bt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=E.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){E.fx.step[e.prop]?E.fx.step[e.prop](e):1!==e.elem.nodeType||!E.cssHooks[e.prop]&&null==e.elem.style[ct(e.prop)]?e.elem[e.prop]=e.now:E.style(e.elem,e.prop,e.now+e.unit)}}},bt.propHooks.scrollTop=bt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},E.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},E.fx=bt.prototype.init,E.fx.step={};var ut,lt,ht=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function gt(){lt&&(!1===y.hidden&&a.requestAnimationFrame?a.requestAnimationFrame(gt):a.setTimeout(gt,E.fx.interval),E.fx.tick())}function mt(){return a.setTimeout((function(){ut=void 0})),ut=Date.now()}function vt(e,t){var n,a=0,c={height:e};for(t=t?1:0;a<4;a+=2-t)c["margin"+(n=he[a])]=c["padding"+n]=e;return t&&(c.opacity=c.width=e),c}function yt(e,t,n){for(var a,c=(_t.tweeners[t]||[]).concat(_t.tweeners["*"]),r=0,i=c.length;r1)},removeAttr:function(e){return this.each((function(){E.removeAttr(this,e)}))}}),E.extend({attr:function(e,t,n){var a,c,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?E.prop(e,t,n):(1===r&&E.isXMLDoc(e)||(c=E.attrHooks[t.toLowerCase()]||(E.expr.match.bool.test(t)?wt:void 0)),void 0!==n?null===n?void E.removeAttr(e,t):c&&"set"in c&&void 0!==(a=c.set(e,n,t))?a:(e.setAttribute(t,n+""),n):c&&"get"in c&&null!==(a=c.get(e,t))?a:null==(a=E.find.attr(e,t))?void 0:a)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&k(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,a=0,c=t&&t.match(X);if(c&&1===e.nodeType)for(;n=c[a++];)e.removeAttribute(n)}}),wt={set:function(e,t,n){return!1===t?E.removeAttr(e,n):e.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=xt[t]||E.find.attr;xt[t]=function(e,t,a){var c,r,i=t.toLowerCase();return a||(r=xt[i],xt[i]=c,c=null!=n(e,t,a)?i:null,xt[i]=r),c}}));var At=/^(?:input|select|textarea|button)$/i,Tt=/^(?:a|area)$/i;function Et(e){return(e.match(X)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(X)||[]}E.fn.extend({prop:function(e,t){return ee(this,E.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[E.propFix[e]||e]}))}}),E.extend({prop:function(e,t,n){var a,c,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&E.isXMLDoc(e)||(t=E.propFix[t]||t,c=E.propHooks[t]),void 0!==n?c&&"set"in c&&void 0!==(a=c.set(e,n,t))?a:e[t]=n:c&&"get"in c&&null!==(a=c.get(e,t))?a:e[t]},propHooks:{tabIndex:{get:function(e){var t=E.find.attr(e,"tabindex");return t?parseInt(t,10):At.test(e.nodeName)||Tt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(E.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){E.propFix[this.toLowerCase()]=this})),E.fn.extend({addClass:function(e){var t,n,a,c,r,i;return m(e)?this.each((function(t){E(this).addClass(e.call(this,t,Ct(this)))})):(t=kt(e)).length?this.each((function(){if(a=Ct(this),n=1===this.nodeType&&" "+Et(a)+" "){for(r=0;r-1;)n=n.replace(" "+c+" "," ");i=Et(n),a!==i&&this.setAttribute("class",i)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,a,c,r,i=typeof e,f="string"===i||Array.isArray(e);return m(e)?this.each((function(n){E(this).toggleClass(e.call(this,n,Ct(this),t),t)})):"boolean"==typeof t&&f?t?this.addClass(e):this.removeClass(e):(n=kt(e),this.each((function(){if(f)for(r=E(this),c=0;c-1)return!0;return!1}});var St=/\r/g;E.fn.extend({val:function(e){var t,n,a,c=this[0];return arguments.length?(a=m(e),this.each((function(n){var c;1===this.nodeType&&(null==(c=a?e.call(this,n,E(this).val()):e)?c="":"number"==typeof c?c+="":Array.isArray(c)&&(c=E.map(c,(function(e){return null==e?"":e+""}))),(t=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,c,"value")||(this.value=c))}))):c?(t=E.valHooks[c.type]||E.valHooks[c.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(c,"value"))?n:"string"==typeof(n=c.value)?n.replace(St,""):null==n?"":n:void 0}}),E.extend({valHooks:{option:{get:function(e){var t=E.find.attr(e,"value");return null!=t?t:Et(E.text(e))}},select:{get:function(e){var t,n,a,c=e.options,r=e.selectedIndex,i="select-one"===e.type,f=i?null:[],o=i?r+1:c.length;for(a=r<0?o:i?r:0;a-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),E.each(["radio","checkbox"],(function(){E.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=E.inArray(E(e).val(),t)>-1}},g.checkOn||(E.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Ot=a.location,Dt={guid:Date.now()},jt=/\?/;E.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new a.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||E.error("Invalid XML: "+(n?E.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Lt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};E.extend(E.event,{trigger:function(e,t,n,c){var r,i,f,o,d,s,b,u,h=[n||y],p=l.call(e,"type")?e.type:e,g=l.call(e,"namespace")?e.namespace.split("."):[];if(i=u=f=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!Lt.test(p+E.event.triggered)&&(p.indexOf(".")>-1&&(g=p.split("."),p=g.shift(),g.sort()),d=p.indexOf(":")<0&&"on"+p,(e=e[E.expando]?e:new E.Event(p,"object"==typeof e&&e)).isTrigger=c?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:E.makeArray(t,[e]),b=E.event.special[p]||{},c||!b.trigger||!1!==b.trigger.apply(n,t))){if(!c&&!b.noBubble&&!v(n)){for(o=b.delegateType||p,Lt.test(o+p)||(i=i.parentNode);i;i=i.parentNode)h.push(i),f=i;f===(n.ownerDocument||y)&&h.push(f.defaultView||f.parentWindow||a)}for(r=0;(i=h[r++])&&!e.isPropagationStopped();)u=i,e.type=r>1?o:b.bindType||p,(s=(fe.get(i,"events")||Object.create(null))[e.type]&&fe.get(i,"handle"))&&s.apply(i,t),(s=d&&i[d])&&s.apply&&re(i)&&(e.result=s.apply(i,t),!1===e.result&&e.preventDefault());return e.type=p,c||e.isDefaultPrevented()||b._default&&!1!==b._default.apply(h.pop(),t)||!re(n)||d&&m(n[p])&&!v(n)&&((f=n[d])&&(n[d]=null),E.event.triggered=p,e.isPropagationStopped()&&u.addEventListener(p,Nt),n[p](),e.isPropagationStopped()&&u.removeEventListener(p,Nt),E.event.triggered=void 0,f&&(n[d]=f)),e.result}},simulate:function(e,t,n){var a=E.extend(new E.Event,n,{type:e,isSimulated:!0});E.event.trigger(a,null,t)}}),E.fn.extend({trigger:function(e,t){return this.each((function(){E.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return E.event.trigger(e,t,n,!0)}});var Pt=/\[\]$/,Mt=/\r?\n/g,$t=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;function qt(e,t,n,a){var c;if(Array.isArray(t))E.each(t,(function(t,c){n||Pt.test(e)?a(e,c):qt(e+"["+("object"==typeof c&&null!=c?t:"")+"]",c,n,a)}));else if(n||"object"!==x(t))a(e,t);else for(c in t)qt(e+"["+c+"]",t[c],n,a)}E.param=function(e,t){var n,a=[],c=function(e,t){var n=m(t)?t():t;a[a.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!E.isPlainObject(e))E.each(e,(function(){c(this.name,this.value)}));else for(n in e)qt(n,e[n],t,c);return a.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=E.prop(this,"elements");return e?E.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!E(this).is(":disabled")&&It.test(this.nodeName)&&!$t.test(e)&&(this.checked||!Ee.test(e))})).map((function(e,t){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,(function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}})):{name:t.name,value:n.replace(Mt,"\r\n")}})).get()}});var Ht=/%20/g,Rt=/#.*$/,Ft=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Bt=/^(?:GET|HEAD)$/,zt=/^\/\//,Ut={},Vt={},Xt="*/".concat("*"),Qt=y.createElement("a");function Gt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var a,c=0,r=t.toLowerCase().match(X)||[];if(m(n))for(;a=r[c++];)"+"===a[0]?(a=a.slice(1)||"*",(e[a]=e[a]||[]).unshift(n)):(e[a]=e[a]||[]).push(n)}}function Yt(e,t,n,a){var c={},r=e===Vt;function i(f){var o;return c[f]=!0,E.each(e[f]||[],(function(e,f){var d=f(t,n,a);return"string"!=typeof d||r||c[d]?r?!(o=d):void 0:(t.dataTypes.unshift(d),i(d),!1)})),o}return i(t.dataTypes[0])||!c["*"]&&i("*")}function Kt(e,t){var n,a,c=E.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((c[n]?e:a||(a={}))[n]=t[n]);return a&&E.extend(!0,e,a),e}Qt.href=Ot.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ot.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ot.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Kt(Kt(e,E.ajaxSettings),t):Kt(E.ajaxSettings,e)},ajaxPrefilter:Gt(Ut),ajaxTransport:Gt(Vt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,c,r,i,f,o,d,s,b,u,l=E.ajaxSetup({},t),h=l.context||l,p=l.context&&(h.nodeType||h.jquery)?E(h):E.event,g=E.Deferred(),m=E.Callbacks("once memory"),v=l.statusCode||{},_={},w={},x="canceled",A={readyState:0,getResponseHeader:function(e){var t;if(d){if(!i)for(i={};t=Wt.exec(r);)i[t[1].toLowerCase()+" "]=(i[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=i[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return d?r:null},setRequestHeader:function(e,t){return null==d&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==d&&(l.mimeType=e),this},statusCode:function(e){var t;if(e)if(d)A.always(e[A.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||x;return n&&n.abort(t),T(0,t),this}};if(g.promise(A),l.url=((e||l.url||Ot.href)+"").replace(zt,Ot.protocol+"//"),l.type=t.method||t.type||l.method||l.type,l.dataTypes=(l.dataType||"*").toLowerCase().match(X)||[""],null==l.crossDomain){o=y.createElement("a");try{o.href=l.url,o.href=o.href,l.crossDomain=Qt.protocol+"//"+Qt.host!=o.protocol+"//"+o.host}catch(e){l.crossDomain=!0}}if(l.data&&l.processData&&"string"!=typeof l.data&&(l.data=E.param(l.data,l.traditional)),Yt(Ut,l,t,A),d)return A;for(b in(s=E.event&&l.global)&&0==E.active++&&E.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Bt.test(l.type),c=l.url.replace(Rt,""),l.hasContent?l.data&&l.processData&&0===(l.contentType||"").indexOf("application/x-www-form-urlencoded")&&(l.data=l.data.replace(Ht,"+")):(u=l.url.slice(c.length),l.data&&(l.processData||"string"==typeof l.data)&&(c+=(jt.test(c)?"&":"?")+l.data,delete l.data),!1===l.cache&&(c=c.replace(Ft,"$1"),u=(jt.test(c)?"&":"?")+"_="+Dt.guid+++u),l.url=c+u),l.ifModified&&(E.lastModified[c]&&A.setRequestHeader("If-Modified-Since",E.lastModified[c]),E.etag[c]&&A.setRequestHeader("If-None-Match",E.etag[c])),(l.data&&l.hasContent&&!1!==l.contentType||t.contentType)&&A.setRequestHeader("Content-Type",l.contentType),A.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+Xt+"; q=0.01":""):l.accepts["*"]),l.headers)A.setRequestHeader(b,l.headers[b]);if(l.beforeSend&&(!1===l.beforeSend.call(h,A,l)||d))return A.abort();if(x="abort",m.add(l.complete),A.done(l.success),A.fail(l.error),n=Yt(Vt,l,t,A)){if(A.readyState=1,s&&p.trigger("ajaxSend",[A,l]),d)return A;l.async&&l.timeout>0&&(f=a.setTimeout((function(){A.abort("timeout")}),l.timeout));try{d=!1,n.send(_,T)}catch(e){if(d)throw e;T(-1,e)}}else T(-1,"No Transport");function T(e,t,i,o){var b,u,y,_,w,x=t;d||(d=!0,f&&a.clearTimeout(f),n=void 0,r=o||"",A.readyState=e>0?4:0,b=e>=200&&e<300||304===e,i&&(_=function(e,t,n){for(var a,c,r,i,f=e.contents,o=e.dataTypes;"*"===o[0];)o.shift(),void 0===a&&(a=e.mimeType||t.getResponseHeader("Content-Type"));if(a)for(c in f)if(f[c]&&f[c].test(a)){o.unshift(c);break}if(o[0]in n)r=o[0];else{for(c in n){if(!o[0]||e.converters[c+" "+o[0]]){r=c;break}i||(i=c)}r=r||i}if(r)return r!==o[0]&&o.unshift(r),n[r]}(l,A,i)),!b&&E.inArray("script",l.dataTypes)>-1&&E.inArray("json",l.dataTypes)<0&&(l.converters["text script"]=function(){}),_=function(e,t,n,a){var c,r,i,f,o,d={},s=e.dataTypes.slice();if(s[1])for(i in e.converters)d[i.toLowerCase()]=e.converters[i];for(r=s.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!o&&a&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),o=r,r=s.shift())if("*"===r)r=o;else if("*"!==o&&o!==r){if(!(i=d[o+" "+r]||d["* "+r]))for(c in d)if((f=c.split(" "))[1]===r&&(i=d[o+" "+f[0]]||d["* "+f[0]])){!0===i?i=d[c]:!0!==d[c]&&(r=f[0],s.unshift(f[1]));break}if(!0!==i)if(i&&e.throws)t=i(t);else try{t=i(t)}catch(e){return{state:"parsererror",error:i?e:"No conversion from "+o+" to "+r}}}return{state:"success",data:t}}(l,_,A,b),b?(l.ifModified&&((w=A.getResponseHeader("Last-Modified"))&&(E.lastModified[c]=w),(w=A.getResponseHeader("etag"))&&(E.etag[c]=w)),204===e||"HEAD"===l.type?x="nocontent":304===e?x="notmodified":(x=_.state,u=_.data,b=!(y=_.error))):(y=x,!e&&x||(x="error",e<0&&(e=0))),A.status=e,A.statusText=(t||x)+"",b?g.resolveWith(h,[u,x,A]):g.rejectWith(h,[A,x,y]),A.statusCode(v),v=void 0,s&&p.trigger(b?"ajaxSuccess":"ajaxError",[A,l,b?u:y]),m.fireWith(h,[A,x]),s&&(p.trigger("ajaxComplete",[A,l]),--E.active||E.event.trigger("ajaxStop")))}return A},getJSON:function(e,t,n){return E.get(e,t,n,"json")},getScript:function(e,t){return E.get(e,void 0,t,"script")}}),E.each(["get","post"],(function(e,t){E[t]=function(e,n,a,c){return m(n)&&(c=c||a,a=n,n=void 0),E.ajax(E.extend({url:e,type:t,dataType:c,data:n,success:a},E.isPlainObject(e)&&e))}})),E.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),E._evalUrl=function(e,t,n){return E.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){E.globalEval(e,t,n)}})},E.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=E(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return m(e)?this.each((function(t){E(this).wrapInner(e.call(this,t))})):this.each((function(){var t=E(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=m(e);return this.each((function(n){E(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){E(this).replaceWith(this.childNodes)})),this}}),E.expr.pseudos.hidden=function(e){return!E.expr.pseudos.visible(e)},E.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(e){}};var Jt={0:200,1223:204},Zt=E.ajaxSettings.xhr();g.cors=!!Zt&&"withCredentials"in Zt,g.ajax=Zt=!!Zt,E.ajaxTransport((function(e){var t,n;if(g.cors||Zt&&!e.crossDomain)return{send:function(c,r){var i,f=e.xhr();if(f.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)f[i]=e.xhrFields[i];for(i in e.mimeType&&f.overrideMimeType&&f.overrideMimeType(e.mimeType),e.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest"),c)f.setRequestHeader(i,c[i]);t=function(e){return function(){t&&(t=n=f.onload=f.onerror=f.onabort=f.ontimeout=f.onreadystatechange=null,"abort"===e?f.abort():"error"===e?"number"!=typeof f.status?r(0,"error"):r(f.status,f.statusText):r(Jt[f.status]||f.status,f.statusText,"text"!==(f.responseType||"text")||"string"!=typeof f.responseText?{binary:f.response}:{text:f.responseText},f.getAllResponseHeaders()))}},f.onload=t(),n=f.onerror=f.ontimeout=t("error"),void 0!==f.onabort?f.onabort=n:f.onreadystatechange=function(){4===f.readyState&&a.setTimeout((function(){t&&n()}))},t=t("abort");try{f.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),E.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return E.globalEval(e),e}}}),E.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),E.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(a,c){t=E("\n\n{#if $config?.favorites}\n
\n \n \n {_t(\"Favorites\")}\n \n \n
\n{/if}\n","\n\n{#if $config.recentlyUsed && items.length}\n
\n \n \n {_t(\"Recently Used\")}\n \n
    \n {#each items.reverse() as recentlyUsed}\n
  • \n select(recentlyUsed)}\n class=\"dropdown-item\"\n >\n \n {recentlyUsed.Title}\n \n
  • \n {/each}\n
\n
\n{/if}\n","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"../../../../node_modules/@patternslib/dev/webpack/style-inserter.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/svelte-loader/index.js?cssPath=/home/runner/work/mockup/mockup/src/pat/contentbrowser/src/ContentBrowser.svelte.0.css!./ContentBrowser.svelte\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn;\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/svelte-loader/index.js?cssPath=/home/runner/work/mockup/mockup/src/pat/contentbrowser/src/ContentBrowser.svelte.0.css!./ContentBrowser.svelte\";\n export default content && content.locals ? content.locals : undefined;\n","\n\n{#if $showContentBrowser}\n
\n {\n scrollToRight();\n initKeyboardNav();\n }}\n use:clickOutside\n on:click_outside={cancelSelection}\n >\n
\n
\n \n
\n \n \n {#if $config.uploadEnabled}\n
\n \n {_t(\"upload to ${current_path}\", {\n current_path: $currentPath,\n })}\n
\n {/if}\n cancelSelection()}\n >\n
\n {#await $contentItems}\n

{_t(\"loading content items\")}

\n {:then levels}\n
\n {#each levels as level, i (level.path)}\n \n
\n {#if i == 0 && $config.mode == \"browse\"}\n changePath($config.rootPath)}\n on:click={() => changePath($config.rootPath)}\n >\n {/if}\n {#if level.selectable}\n addItem(level)}\n >\n {_t(\"select ${level_path}\", {\n level_path: level.displayPath,\n })}\n \n {/if}\n
\n {#if !level.gridView}\n (level.gridView = true)}\n >\n \n \n {:else}\n (level.gridView = false)}\n >\n \n \n {/if}\n
\n
\n
\n {#each level.results || [] as item, n}\n \n \n keyboardNavigation(item, e)}\n on:click={(e) => clickItem(item, e)}\n >\n {#if level.gridView}\n
\n {#if item.getIcon}\n \n {:else}\n \n {/if}\n {item.Title}\n
\n {:else}\n \n \n {item.Title}\n
\n {/if}\n {#if item.is_folderish && $config.mode == \"browse\"}\n
\n \n
\n {/if}\n
\n {/each}\n {#if level.more}\n \n
\n
\n {/if}\n {#if level.total == 0}\n
\n

{_t(\"no results found\")}

\n
\n {/if}\n \n \n {/each}\n {#if previewItem?.UID && $previewUids.length == 1}\n
\n
\n addItem(previewItem)}\n >{_t(\"select ${preview_path}\", {\n preview_path: previewItem.path.split(\"/\").pop(),\n })}\n
\n
\n {#if previewItem.getIcon}\n
\n \n
\n {:else}\n
\n \n
\n {/if}\n

{previewItem.Title}

\n

{previewItem.Description}

\n
\n
\n {/if}\n {#if $previewUids.length > 1}\n
\n
\n {_t(\"add selected items\")}\n
\n
\n \n
\n
\n {/if}\n {#if showUpload}\n
\n {/if}\n \n {:catch error}\n

{error.message}

\n {/await}\n \n \n{/if}\n\n\n","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"../../../../node_modules/@patternslib/dev/webpack/style-inserter.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/svelte-loader/index.js?cssPath=/home/runner/work/mockup/mockup/src/pat/contentbrowser/src/SelectedItems.svelte.1.css!./SelectedItems.svelte\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn;\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/svelte-loader/index.js?cssPath=/home/runner/work/mockup/mockup/src/pat/contentbrowser/src/SelectedItems.svelte.1.css!./SelectedItems.svelte\";\n export default content && content.locals ? content.locals : undefined;\n","\n\n\n \n
\n {#if $selectedItems}\n {#each $selectedItems as selItem, i (selItem.UID)}\n \n
\n \n unselectItem(i)}\n >\n
\n {selItem.Title}
\n {selItem.path}\n
\n
\n {#if selItem.getURL && (selItem.getIcon || selItem.portal_type === \"Image\")}{/if}\n
\n {/each}\n {/if}\n {#if !$selectedItems}\n

{_t(\"loading selected items\")}

\n {/if}\n \n ($showContentBrowser = true)}\n >{_t(\"Select\")}\n\n\n\n","import { setContext } from 'svelte';\nimport { writable } from 'svelte/store';\n\nexport const gridView = writable(false);\n\nexport function setCurrentPath() {\n let currentPath = writable('');\n setContext('currentPath', currentPath);\n}\n\nexport function setPathCache() {\n let pathCache = writable({});\n setContext('pathCache', pathCache);\n}\n\n// reactive context stores\nexport function setSelectedItems() {\n let selItems = writable([]);\n setContext('selectedItems', selItems);\n}\n\nexport function setConfig() {\n let config = writable({});\n setContext('config', config);\n}\n\nexport function setShowContentBrowser() {\n let showContentBrowser = writable(false);\n setContext('showContentBrowser', showContentBrowser);\n}\n\nexport function setSelectedUids() {\n let selUids = writable([]);\n setContext(\"selectedUids\", selUids);\n}\n\nexport function setPreviewUids() {\n let prevUids = writable([]);\n setContext(\"previewUids\", prevUids);\n}\n","\n\n\n\n"],"names":["___CSS_LOADER_EXPORT___","push","module","id","async","request","_ref","method","vocabularyUrl","attributes","path","uids","searchTerm","searchPath","levelInfoPath","selectableTypes","pageSize","page","vocabQuery","criteria","i","o","v","sort_on","sort_order","length","results","total","url","JSON","stringify","size","headers","Headers","set","response","fetch","ok","errors","json","filtered_response","it","indexOf","portal_type","is_folderish","get_items_from_uids","config","selectedItemsFromUids","sort","a","b","UID","resolveIcon","node","_ref2","iconName","iconCode","utils","getIcon","outerHTML","destroy","clickOutside","handleClick","event","contains","target","dispatchEvent","CustomEvent","document","addEventListener","removeEventListener","recentlyUsedItems","filterItems","ret","storage","get","recentlyUsedKey","slice","filter","max","parseInt","recentlyUsedMaxItems","pathCache","store","writable","load","query","updateCache","loadMorePath","mode","rootPath","level","update","levels","has_more","more","selectable","gridView","search","pC","p","forEach","l","nextBatch","rootPathParts","replace","split","physicalPath","hideRootPath","startsWith","pathParts","overlapIdx","idx","includes","join","concat","paths","parts","maxDepth","Math","min","partsToShow","pathPrefix","sub_path","pop","pathCounter","isFirstPath","displayPath","RegExp","levelInfo","Title","n","browse","favorites","title","dispatch","select","item","favorite","reverse","getURL","toLowerCase","recentlyUsed","items","$config","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","uploadEnabled","x","opacity","current_path","message","level_path","duration","preview_path","Description","scrollX","container","currentPath","showContentBrowser","selectedItems","selectedUids","previewUids","contentItems","showUpload","previewItem","keyboardNavInitialized","shiftKey","vw","documentElement","clientWidth","window","innerWidth","updatePreview","data","uuid","action","$previewUids","maximumSelectionSize","splice","changePath","e","folderPath","scrollToRight","showPreview","clickItem","levelWrapper","currentTarget","closest","prevSelection","querySelectorAll","el","children","dataset","metaKey","ctrlKey","map","classList","remove","focus","add","initKeyboardNav","possibleFocusEls","querySelector","keyboardNavigation","key","cancelSelection","nextElementSibling","click","previousElementSibling","currCol","nxtCol","prevCol","isSelectable","addItem","addSelectedItems","$selectedItems","alreadyPresent","updateRecentlyUsed","$showContentBrowser","previewItems","$selectedUids","scrollContainer","scrollWidth","$currentPath","timeout","uploadEl","baseUrl","rootUrl","relativePath","allowPathSelection","hiddenInputContainer","success","fileUpload","obj","detail","alert","timeoutId","clearTimeout","setTimeout","this","value","observer","IntersectionObserver","entries","entry","isIntersecting","levelPath","levelNextPage","threshold","root","margin","observe","width","ref","initializing","fieldId","selectedItemsNode","getElementById","unselectItem","initializeSorting","previousSibling","draggable","animation","onUpdate","sortedUuids","setNodeValue","node_val","separator","events","change_event","initialValue","selection","initializeSelectedItemsStore","selectedUidsFromSelectedItems","contextPath","basePath","upload","bSize","log","getLogger","setContext","setCurrentPath","setConfig","setPathCache","selItems","setSelectedItems","setShowContentBrowser","selUids","setSelectedUids","prevUids","setPreviewUids","debug"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/mockup/chunks/18085.d23f998b1658183bee88.min.js b/dist/mockup/chunks/18085.d23f998b1658183bee88.min.js deleted file mode 100644 index 356a28370..000000000 --- a/dist/mockup/chunks/18085.d23f998b1658183bee88.min.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunk_plone_mockup=self.webpackChunk_plone_mockup||[]).push([[18085],{44278:function(e,t,l){var n=l(71354),r=l.n(n),s=l(76314),c=l.n(s)()(r());c.push([e.id,".content-browser-position-wrapper.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{position:fixed;top:0;right:0;display:flex;justify-content:end;z-index:1500;width:100%;height:100vh;background-color:rgba(0,0,0,.25)}.btn-xs.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{--bs-btn-padding-y:0.15rem;--bs-btn-padding-x:0.5rem;--bs-btn-font-size:0.75rem}.content-browser.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{height:100vh;min-width:550px;background-color:var(--bs-light-bg-subtle);border-left:var(--bs-border-style) var(--bs-border-width) #fff;z-index:1500;display:flex;flex-direction:column}.toolBar.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{background-color:var(--bs-primary);padding:.325rem .75rem;color:var(--bs-light);width:100%;display:flex;justify-content:start}.toolBar.svelte-1lcbp2k svg{vertical-align:-0.125em}.levelColumns.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{display:flex;flex-wrap:nowrap;width:100%;overflow:hidden;flex-grow:3;border-left:var(--bs-border-style) var(--bs-border-color) var(--bs-border-width);user-select:none}.levelColumn.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{width:320px;border-right:var(--bs-border-style) var(--bs-border-width) var(--bs-border-color);display:flex;flex-direction:column}.levelToolbar.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{width:100%;height:2.5rem;display:flex;justify-content:space-between;padding:.375rem;border-bottom:var(--bs-border-style) var(--bs-border-width) var(--bs-border-color)}.levelToolbar.svelte-1lcbp2k>.levelActions.svelte-1lcbp2k.svelte-1lcbp2k{margin-left:auto}.levelItems.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{overflow-x:auto}.contentItem.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{display:flex;align-items:center;justify-content:space-between;font-size:90%;min-height:2rem}.contentItem.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k:focus-visible{outline:none}.contentItem.even.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{background-color:rgba(var(--bs-secondary-bg-rgb), 0.4)}.contentItem.inPath.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k,.contentItem.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k:focus{background-color:rgba(var(--bs-primary-rgb), 0.15)}.contentItem.selectedItem.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{background-color:var(--bs-primary);color:var(--bs-body-bg)}.contentItem.svelte-1lcbp2k>.svelte-1lcbp2k.svelte-1lcbp2k{padding:.5rem;white-space:nowrap;max-width:450px;text-overflow:ellipsis;overflow:hidden}.contentItem.svelte-1lcbp2k>.browseSub.svelte-1lcbp2k.svelte-1lcbp2k{flex-shrink:0}.contentItem.svelte-1lcbp2k .grid-preview.svelte-1lcbp2k>img.svelte-1lcbp2k{width:95px;height:95px;object-fit:cover;float:left;margin-right:1rem}.preview.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{width:320px;min-height:300px;display:flex;flex-direction:column;align-items:center}.preview.svelte-1lcbp2k .info.svelte-1lcbp2k.svelte-1lcbp2k{padding:.5rem;width:100%;word-wrap:anywhere}.preview.svelte-1lcbp2k .info .previewIcon.svelte-1lcbp2k.svelte-1lcbp2k{margin:0 auto 1rem auto}.preview.svelte-1lcbp2k .info .previewIcon svg.svelte-1lcbp2k.svelte-1lcbp2k{width:50px !important;height:50px !important}.preview.svelte-1lcbp2k h4.svelte-1lcbp2k.svelte-1lcbp2k{font-size:1.2 rem}.preview.svelte-1lcbp2k img.svelte-1lcbp2k.svelte-1lcbp2k{max-width:100%;max-width:100%;margin-bottom:.5rem}.upload-wrapper.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{padding:1rem;width:590px;overflow-x:auto}.loadmore.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{text-align:center;padding:.25rem 0}","",{version:3,sources:["webpack://./src/pat/contentbrowser/src/ContentBrowser.svelte"],names:[],mappings:"AAAA,+EAAA,cAAA,CAAA,KAAA,CAAA,OAAA,CAAA,YAAA,CAAA,mBAAA,CAAA,YAAA,CAAA,UAAA,CAAA,YAAA,CAAA,gCAAA,CAAA,qDAAA,0BAAA,CAAA,yBAAA,CAAA,0BAAA,CAAA,8DAAA,YAAA,CAAA,eAAA,CAAA,0CAAA,CAAA,8DAAA,CAAA,YAAA,CAAA,YAAA,CAAA,qBAAA,CAAA,sDAAA,kCAAA,CAAA,sBAAA,CAAA,qBAAA,CAAA,UAAA,CAAA,YAAA,CAAA,qBAAA,CAAA,4BAAA,uBAAA,CAAA,2DAAA,YAAA,CAAA,gBAAA,CAAA,UAAA,CAAA,eAAA,CAAA,WAAA,CAAA,gFAAA,CAAA,gBAAA,CAAA,0DAAA,WAAA,CAAA,iFAAA,CACmC,YAAA,CAAA,qBAAA,CAAA,2DAAA,UAAA,CAAA,aAAA,CAAA,YAAA,CAAA,6BAAA,CAAA,eAAA,CAAA,kFAAA,CACA,yEAAA,gBAAA,CAAA,yDAAA,eAAA,CAAA,0DAAA,YAAA,CAAA,kBAAA,CAAA,6BAAA,CAAA,aAAA,CAAA,eAAA,CAAA,wEAAA,YAAA,CAAA,+DAAA,sDAAA,CAAA,iIAAA,kDAAA,CAAA,uEAAA,kCAAA,CAAA,uBAAA,CAAA,2DAAA,aAAA,CAAA,kBAAA,CAAA,eAAA,CAAA,sBAAA,CAAA,eAAA,CAAA,qEAAA,aAAA,CAAA,4EAAA,UAAA,CAAA,WAAA,CAAA,gBAAA,CAAA,UAAA,CAAA,iBAAA,CAAA,sDAAA,WAAA,CAAA,gBAAA,CAAA,YAAA,CAAA,qBAAA,CAAA,kBAAA,CAAA,4DAAA,aAAA,CAAA,UAAA,CAAA,kBAAA,CAAA,yEAAA,uBAAA,CAAA,6EAAA,qBAAA,CAAA,sBAAA,CAAA,yDAAA,iBAAA,CAAA,0DAAA,cAAA,CAAA,cAAA,CAAA,mBAAA,CAAA,6DAAA,YAAA,CAAA,WAAA,CAAA,eAAA,CAAA,uDAAA,iBAAA,CAAA,gBAAA",sourceRoot:""}]),t.A=c},94441:function(e,t,l){var n=l(71354),r=l.n(n),s=l(76314),c=l.n(s)()(r());c.push([e.id,".content-browser-selected-items-wrapper.svelte-bljrxf.svelte-bljrxf.svelte-bljrxf{display:flex;align-items:start}.content-browser-selected-items.svelte-bljrxf.svelte-bljrxf.svelte-bljrxf{list-style:none;background-color:var(--bs-body-bg);border-radius:var(--bs-border-radius) 0 0 var(--bs-border-radius);border:var(--bs-border-style) var(--bs-border-color) var(--bs-border-width);min-height:2.4rem;padding:.5rem .5rem 0 .5rem;flex:1 1 auto}.content-browser-selected-items.svelte-bljrxf .selected-item.svelte-bljrxf.svelte-bljrxf{border-radius:var(--bs-border-radius);background-color:var(--bs-tertiary-bg);border:var(--bs-border-style) var(--bs-border-color) var(--bs-border-width);padding:.5rem;margin-bottom:.5rem;display:flex;flex-wrap:nowrap;align-items:start;justify-content:space-between;cursor:move}.content-browser-selected-items.svelte-bljrxf .selected-item.svelte-bljrxf>.svelte-bljrxf{margin-right:.5rem;display:block}.content-browser-selected-items.svelte-bljrxf .selected-item button.svelte-bljrxf.svelte-bljrxf{cursor:pointer;padding:0 .375rem .374rem 0}.content-browser-selected-items.svelte-bljrxf .selected-item .item-info.svelte-bljrxf.svelte-bljrxf{display:flex;align-items:start}.content-browser-selected-items.svelte-bljrxf .selected-item.svelte-bljrxf>img.svelte-bljrxf{object-fit:cover;width:95px;height:95px}","",{version:3,sources:["webpack://./src/pat/contentbrowser/src/SelectedItems.svelte"],names:[],mappings:"AAAA,kFAAA,YAAA,CAAA,iBAAA,CAAA,0EAAA,eAAA,CAAA,kCAAA,CAAA,iEAAA,CAAA,2EAAA,CAAA,iBAAA,CAAA,2BAAA,CAAA,aAAA,CAAA,yFAAA,qCAAA,CAAA,sCAAA,CAAA,2EAAA,CAAA,aAAA,CAAA,mBAAA,CAAA,YAAA,CAAA,gBAAA,CAAA,iBAAA,CAAA,6BAAA,CAAA,WAAA,CAAA,0FAAA,kBAAA,CAAA,aAAA,CAAA,gGAAA,cAAA,CAAA,2BAAA,CAAA,oGAAA,YAAA,CAAA,iBAAA,CAAA,6FAAA,gBAAA,CAAA,UAAA,CAAA,WAAA",sourceRoot:""}]),t.A=c},18085:function(e,t,l){l.r(t),l.d(t,{default:function(){return Pe}});var n=l(43467),r=(l(2531),l(23505)),s=l(41949),c=l(8633),o=l(78836),i=l(95669),a=l(61751),A=l(8936),u=l(54603),p=l(49264);async function d(e){let{method:t="GET",vocabularyUrl:l=null,attributes:n=[],path:r=null,uids:s=null,searchTerm:c=null,searchPath:o=null,levelInfoPath:i=null,selectableTypes:a=[],pageSize:A=100,page:u=1}=e,p={criteria:[]};if(r&&(p={criteria:[{i:"path",o:"plone.app.querystring.operation.string.path",v:`${r}::1`}],sort_on:"getObjPositionInParent",sort_order:"ascending"}),i&&(p={criteria:[{i:"path",o:"plone.app.querystring.operation.string.path",v:`${i}::0`}]}),o&&(p={criteria:[{i:"path",o:"plone.app.querystring.operation.string.path",v:o}]},a&&p.criteria.push({i:"portal_type",o:"plone.app.querystring.operation.list.contains",v:a})),s&&(p={criteria:[{i:"UID",o:"plone.app.querystring.operation.list.contains",v:s}]}),c&&p.criteria.push({i:"SearchableText",o:"plone.app.querystring.operation.string.contains",v:`${c}`}),!p.criteria.length)return{results:[],total:0};let d=`${l}&query=${JSON.stringify(p)}&attributes=${JSON.stringify(n)}&batch=${JSON.stringify({page:u,size:A})}`,m=new Headers;m.set("Accept","application/json");const b=await fetch(d,{method:t,headers:m}),v=await b.json();if(b.ok){if(!o&&!i&&a.length){const e={results:[],total:v.total};for(const t of v.results)(-1!=a.indexOf(t.portal_type)||t.is_folderish)&&e.results.push(t);return e}return v}return{results:[],total:0,errors:v.errors}}async function m(e,t){if(!e)return[];const l=await d({vocabularyUrl:t.vocabularyUrl,attributes:t.attributes,uids:e});let n=await(l?.results)||[];return n.sort(((t,l)=>e.indexOf(t.UID)-e.indexOf(l.UID))),n}async function b(e,t){let{iconName:l}=t;const n=await async function(e){return await p.A.resolveIcon(e)}(l);return e.outerHTML=n,{destroy(){}}}function v(e){const t=t=>{e&&!e.contains(t.target)&&e.dispatchEvent(new CustomEvent("click_outside",e))};return document.addEventListener("click",t,!0),{destroy(){document.removeEventListener("click",t,!0)}}}function C(e,t){let l=p.A.storage.get(t.recentlyUsedKey)||[];l=l.slice(l.length-1e3,l.length),e&&t?.selectableTypes.length&&(l=l.filter((e=>-1!=t.selectableTypes.indexOf(e.portal_type))));const n=parseInt(t.recentlyUsedMaxItems,10);return n&&(l=l.slice(l.length-n,l.length)),l}function f(e,t){const l=(0,u.T5)([]),n=async t=>(t={...{vocabularyUrl:e.vocabularyUrl,attributes:e.attributes,pageSize:e.pageSize},...t},e.selectableTypes.length&&(t.selectableTypes=e.selectableTypes),await d(t));return l.get=async r=>{let{path:s="",searchTerm:c="",updateCache:o=!1,loadMorePath:i="",page:a=1}=r;const A=new URL(e.base_url).pathname;if("search"===e.mode)await(async(t,r,s)=>{let c={searchPath:t,page:s};r&&(c.searchTerm="*"+r+"*");let o=await n(c);o.page=s,o.searchTerm=r,l.update((t=>{const l=s*e.pageSizes.page&&await(async(t,r,s)=>{let c={path:t,page:r};s&&(c.searchTerm="*"+s+"*");let o=await n(c);o.more=r*e.pageSize(e.forEach((e=>{if(e.path!=t)return e;e.page=o.page,e.more=o.more,e.results=[...e.results,...o.results]})),e)))})(i,a,s.searchTerm)}else s&&(s=s.replace(new RegExp(`^${A}`),""),await(async(r,s,c,o)=>{let i=[],a=s.split("/")||[];const A=a.length>=e.maxDepth?e.maxDepth:a.length;let p=a.slice(a.length-A,a.length);const d=r+a.slice(0,a.length-A).join("/"),m=(0,u.Jt)(t);for(;p.length>0;){let e=p.join("/").replace(/^\//,"");e=d+(""!=p.pop()?`/${e}`:""),-1===i.indexOf(e)&&i.push(e)}let b=[],v=0;for(var C of i){v++;const l=1==v;let s={};if(!(C in m)||l&&c||o){let o={path:C};if(l&&c&&(o.searchTerm="*"+c+"*"),s=await n(o),s.more=e.pageSize(e[C]=s,e)))}}else s=m[C];b=[s,...b]}l.set(b)})(A,s,c,o))},l}function h(e,t,l){const n=e.slice();return n[5]=t[l],n}function g(e){let t,l,r,s,c,o,i,A,u,p,d=(0,a.Ay)("Favorites")+"",m=(0,n.rv_)(e[0].favorites),v=[];for(let t=0;tl(0,r=e)));const o=(0,s.ur)();function i(e){o("selectItem",{item:e})}return[r,c,i,e=>i(e)]}class k extends n.r7T{constructor(e){super(),(0,n.TsN)(this,e,x,y,n.jXN,{})}}var D=k;function B(e,t,l){const n=e.slice();return n[6]=t[l],n}function F(e){let t,l,r,s,c,o,i,A,u,p,d=(0,a.Ay)("Recently Used")+"",m=(0,n.rv_)(e[2].reverse()),v=[];for(let t=0;tl(0,r=e)));const o=C(!0,r),i=(0,s.ur)();function a(e){i("selectItem",{item:e})}return[r,c,o,a,e=>a(e)]}class U extends n.r7T{constructor(e){super(),(0,n.TsN)(this,e,T,I,n.jXN,{})}}var Y=U,S=l(85072),$=l.n(S),Q=l(97825),_=l.n(Q),j=l(57722),q=l.n(j),R=l(55056),P=l.n(R),E=l(10540),K=l.n(E),O=l(41113),z=l.n(O),L=l(44278),G={};G.styleTagTransform=z(),G.setAttributes=P(),G.insert=q(),G.domAPI=_(),G.insertStyleElement=K();$()(L.A,G),L.A&&L.A.locals&&L.A.locals;function W(e,t,l){const n=e.slice();return n[48]=t[l],n[49]=t,n[50]=l,n}function M(e,t,l){const n=e.slice();return n[51]=t[l],n[53]=l,n}function J(e){let t,l,r,s,c,o,a,A,u,p,d,m,C,f,h,g,w,y,x,k,B,F,N,I,T;d=new Y({}),d.$on("selectItem",e[22]),C=new D({}),C.$on("selectItem",e[23]);let U=e[6].uploadEnabled&&V(e),S={ctx:e,current:null,token:null,hasCatch:!0,pending:Ce,then:H,catch:Z,value:47,error:54};return(0,n.vBd)(k=e[1],S),{c(){t=(0,n.ND4)("div"),l=(0,n.ND4)("nav"),r=(0,n.ND4)("div"),s=(0,n.ND4)("div"),c=(0,n.ND4)("input"),o=(0,n.xem)(),a=(0,n.ND4)("label"),A=(0,n.QQy)("svg"),p=(0,n.xem)(),(0,n.N0i)(d.$$.fragment),m=(0,n.xem)(),(0,n.N0i)(C.$$.fragment),f=(0,n.xem)(),U&&U.c(),h=(0,n.xem)(),g=(0,n.ND4)("button"),w=(0,n.QQy)("svg"),x=(0,n.xem)(),S.block.c(),(0,n.CFu)(c,"type","text"),(0,n.CFu)(c,"name","filter"),(0,n.CFu)(a,"for","filter"),(0,n.CFu)(s,"class","filter me-3"),(0,n.CFu)(g,"class","btn btn-link text-white ms-auto"),(0,n.CFu)(g,"tabindex","0"),(0,n.CFu)(r,"class","toolBar navbar svelte-1lcbp2k"),(0,n.CFu)(l,"class","content-browser svelte-1lcbp2k"),(0,n.CFu)(t,"class","content-browser-position-wrapper svelte-1lcbp2k")},m(i,k){(0,n.Yry)(i,t,k),(0,n.BCw)(t,l),(0,n.BCw)(l,r),(0,n.BCw)(r,s),(0,n.BCw)(s,c),(0,n.BCw)(s,o),(0,n.BCw)(s,a),(0,n.BCw)(a,A),(0,n.BCw)(r,p),(0,n.wSR)(d,r,null),(0,n.BCw)(r,m),(0,n.wSR)(C,r,null),(0,n.BCw)(r,f),U&&U.m(r,null),(0,n.BCw)(r,h),(0,n.BCw)(r,g),(0,n.BCw)(g,w),(0,n.BCw)(l,x),S.block.m(l,S.anchor=null),S.mount=()=>l,S.anchor=null,N=!0,I||(T=[(0,n.KTR)(c,"input",e[28]),(0,n.hGc)(u=b.call(null,A,{iconName:"search"})),(0,n.hGc)(y=b.call(null,w,{iconName:"x-circle"})),(0,n.KTR)(g,"click",(0,n.xZN)(e[30])),(0,n.KTR)(l,"introend",e[39]),(0,n.hGc)(B=v.call(null,l)),(0,n.KTR)(l,"click_outside",e[24])],I=!0)},p(t,l){(e=t)[6].uploadEnabled?U?U.p(e,l):(U=V(e),U.c(),U.m(r,h)):U&&(U.d(1),U=null),S.ctx=e,2&l[0]&&k!==(k=e[1])&&(0,n.vBd)(k,S)||(0,n._6B)(S,e,l)},i(t){N||((0,n.c7F)(d.$$.fragment,t),(0,n.c7F)(C.$$.fragment,t),t&&(0,n.Dti)((()=>{N&&(F||(F=(0,n.h86)(l,i._J,{x:e[14]/100*94,opacity:1},!0)),F.run(1))})),N=!0)},o(t){(0,n.Tn8)(d.$$.fragment,t),(0,n.Tn8)(C.$$.fragment,t),t&&(F||(F=(0,n.h86)(l,i._J,{x:e[14]/100*94,opacity:1},!1)),F.run(0)),N=!1},d(e){e&&(0,n.YoD)(t),(0,n.Hbl)(d),(0,n.Hbl)(C),U&&U.d(),S.block.d(),S.token=null,S=null,e&&F&&F.end(),I=!1,(0,n.oOW)(T)}}}function V(e){let t,l,r,s,c,o,i,A,u=(0,a.Ay)("upload to ${current_path}",{current_path:e[2]})+"";return{c(){t=(0,n.ND4)("div"),l=(0,n.ND4)("button"),r=(0,n.QQy)("svg"),c=(0,n.xem)(),o=(0,n.Qq7)(u),(0,n.CFu)(l,"type","button"),(0,n.CFu)(l,"class","upload btn btn-outline-light btn-sm"),(0,n.CFu)(l,"tabindex","0"),(0,n.CFu)(t,"class","ms-2")},m(a,u){(0,n.Yry)(a,t,u),(0,n.BCw)(t,l),(0,n.BCw)(l,r),(0,n.BCw)(l,c),(0,n.BCw)(l,o),i||(A=[(0,n.hGc)(s=b.call(null,r,{iconName:"upload"})),(0,n.KTR)(l,"keydown",e[15]),(0,n.KTR)(l,"click",e[15])],i=!0)},p(e,t){4&t[0]&&u!==(u=(0,a.Ay)("upload to ${current_path}",{current_path:e[2]})+"")&&(0,n.iQh)(o,u)},d(e){e&&(0,n.YoD)(t),i=!1,(0,n.oOW)(A)}}}function Z(e){let t,l,r=e[54].message+"";return{c(){t=(0,n.ND4)("p"),l=(0,n.Qq7)(r),(0,n.hgi)(t,"color","red")},m(e,r){(0,n.Yry)(e,t,r),(0,n.BCw)(t,l)},p(e,t){2&t[0]&&r!==(r=e[54].message+"")&&(0,n.iQh)(l,r)},d(e){e&&(0,n.YoD)(t)}}}function H(e){let t,l,r,s,c=[],o=new Map,i=(0,n.rv_)(e[47]);const a=e=>e[48].path;for(let t=0;t1&&be(e),p=e[4]&&ve(e);return{c(){t=(0,n.ND4)("div");for(let e=0;e1?u?u.p(e,d):(u=be(e),u.c(),u.m(t,s)):u&&(u.d(1),u=null),e[4]?p||(p=ve(e),p.c(),p.m(t,null)):p&&(p.d(1),p=null)},d(e){e&&(0,n.YoD)(t);for(let e=0;e{m=(0,n.b7f)(l,i._J,{duration:300}),m.start()})))},o:n.lQ1,d(e){e&&(0,n.YoD)(l),b&&b.d(),v&&v.d(),h.d(),(0,n.ppq)(w,e),y&&y.d(),x&&x.d()}}}function pe(e){let t,l,r,s,c,o,i,A,u,p,d,m,b,v,C,f=(0,a.Ay)("select ${preview_path}",{preview_path:e[5].path.split("/").pop()})+"",h=e[5].Title+"",g=e[5].Description+"";function w(e,t){return e[5].getIcon?me:de}let y=w(e),x=y(e);return{c(){t=(0,n.ND4)("div"),l=(0,n.ND4)("div"),r=(0,n.ND4)("button"),s=(0,n.Qq7)(f),o=(0,n.xem)(),i=(0,n.ND4)("div"),x.c(),A=(0,n.xem)(),u=(0,n.ND4)("h4"),p=(0,n.Qq7)(h),d=(0,n.xem)(),m=(0,n.ND4)("p"),b=(0,n.Qq7)(g),(0,n.CFu)(r,"class","btn btn-primary btn-xs svelte-1lcbp2k"),r.disabled=c=!e[25](e[5]),(0,n.CFu)(l,"class","levelToolbar svelte-1lcbp2k"),(0,n.CFu)(u,"class","svelte-1lcbp2k"),(0,n.CFu)(i,"class","info svelte-1lcbp2k"),(0,n.CFu)(t,"class","preview svelte-1lcbp2k")},m(c,a){(0,n.Yry)(c,t,a),(0,n.BCw)(t,l),(0,n.BCw)(l,r),(0,n.BCw)(r,s),(0,n.BCw)(t,o),(0,n.BCw)(t,i),x.m(i,null),(0,n.BCw)(i,A),(0,n.BCw)(i,u),(0,n.BCw)(u,p),(0,n.BCw)(i,d),(0,n.BCw)(i,m),(0,n.BCw)(m,b),v||(C=(0,n.KTR)(r,"click",(0,n.xZN)(e[38])),v=!0)},p(e,t){32&t[0]&&f!==(f=(0,a.Ay)("select ${preview_path}",{preview_path:e[5].path.split("/").pop()})+"")&&(0,n.iQh)(s,f),32&t[0]&&c!==(c=!e[25](e[5]))&&(r.disabled=c),y===(y=w(e))&&x?x.p(e,t):(x.d(1),x=y(e),x&&(x.c(),x.m(i,A))),32&t[0]&&h!==(h=e[5].Title+"")&&(0,n.iQh)(p,h),32&t[0]&&g!==(g=e[5].Description+"")&&(0,n.iQh)(b,g)},d(e){e&&(0,n.YoD)(t),x.d(),v=!1,C()}}}function de(e){let t,l,r,s,c;return{c(){t=(0,n.ND4)("div"),l=(0,n.QQy)("svg"),(0,n.CFu)(l,"class","svelte-1lcbp2k"),(0,n.CFu)(t,"class","previewIcon svelte-1lcbp2k")},m(o,i){(0,n.Yry)(o,t,i),(0,n.BCw)(t,l),s||(c=(0,n.hGc)(r=b.call(null,l,{iconName:`contenttype/${e[5].portal_type.toLowerCase().replace(/\.| /g,"-")}`})),s=!0)},p(e,t){r&&(0,n.Qk1)(r.update)&&32&t[0]&&r.update.call(null,{iconName:`contenttype/${e[5].portal_type.toLowerCase().replace(/\.| /g,"-")}`})},d(e){e&&(0,n.YoD)(t),s=!1,c()}}}function me(e){let t,l,r,s;return{c(){t=(0,n.ND4)("div"),l=(0,n.ND4)("img"),(0,n.mq_)(l.src,r=e[5].getURL+"/@@images/image/preview")||(0,n.CFu)(l,"src",r),(0,n.CFu)(l,"alt",s=e[5].Title),(0,n.CFu)(l,"class","svelte-1lcbp2k"),(0,n.CFu)(t,"class","previewImage")},m(e,r){(0,n.Yry)(e,t,r),(0,n.BCw)(t,l)},p(e,t){32&t[0]&&!(0,n.mq_)(l.src,r=e[5].getURL+"/@@images/image/preview")&&(0,n.CFu)(l,"src",r),32&t[0]&&s!==(s=e[5].Title)&&(0,n.CFu)(l,"alt",s)},d(e){e&&(0,n.YoD)(t)}}}function be(e){let t,l,r,s,c,o,i,A,u;return{c(){t=(0,n.ND4)("div"),l=(0,n.ND4)("div"),r=(0,n.ND4)("button"),r.textContent=`${(0,a.Ay)("add selected items")}`,s=(0,n.xem)(),c=(0,n.ND4)("div"),o=(0,n.QQy)("svg"),(0,n.CFu)(r,"class","btn btn-primary btn-xs svelte-1lcbp2k"),(0,n.CFu)(l,"class","levelToolbar svelte-1lcbp2k"),(0,n.CFu)(o,"class","svelte-1lcbp2k"),(0,n.CFu)(c,"class","info svelte-1lcbp2k"),(0,n.CFu)(t,"class","preview svelte-1lcbp2k")},m(a,p){(0,n.Yry)(a,t,p),(0,n.BCw)(t,l),(0,n.BCw)(l,r),(0,n.BCw)(t,s),(0,n.BCw)(t,c),(0,n.BCw)(c,o),A||(u=[(0,n.KTR)(r,"click",(0,n.xZN)(e[21])),(0,n.hGc)(i=b.call(null,o,{iconName:"files"}))],A=!0)},p:n.lQ1,d(e){e&&(0,n.YoD)(t),A=!1,(0,n.oOW)(u)}}}function ve(e){let t;return{c(){t=(0,n.ND4)("div"),(0,n.CFu)(t,"class","upload-wrapper svelte-1lcbp2k")},m(e,l){(0,n.Yry)(e,t,l)},d(e){e&&(0,n.YoD)(t)}}}function Ce(e){let t;return{c(){t=(0,n.ND4)("p"),t.textContent=`${(0,a.Ay)("loading content items")}`},m(e,l){(0,n.Yry)(e,t,l)},p:n.lQ1,d(e){e&&(0,n.YoD)(t)}}}function fe(e){let t,l,r=e[3]&&J(e);return{c(){r&&r.c(),t=(0,n.Iex)()},m(e,s){r&&r.m(e,s),(0,n.Yry)(e,t,s),l=!0},p(e,l){e[3]?r?(r.p(e,l),8&l[0]&&(0,n.c7F)(r,1)):(r=J(e),r.c(),(0,n.c7F)(r,1),r.m(t.parentNode,t)):r&&((0,n.V44)(),(0,n.Tn8)(r,1,1,(()=>{r=null})),(0,n.GYV)())},i(e){l||((0,n.c7F)(r),l=!0)},o(e){(0,n.Tn8)(r),l=!1},d(e){e&&(0,n.YoD)(t),r&&r.d(e)}}}function he(e,t,l){let r,i,a,u,b,v,h;o.ih({scrollX:!0,container:".levelColumns",duration:500});const g=(0,s.SD)("currentPath");(0,n.j0C)(e,g,(e=>l(2,a=e)));const w=(0,s.SD)("config");(0,n.j0C)(e,w,(e=>l(6,v=e)));const y=(0,s.SD)("pathCache"),x=(0,s.SD)("showContentBrowser");(0,n.j0C)(e,x,(e=>l(3,u=e)));const k=(0,s.SD)("selectedItems");(0,n.j0C)(e,k,(e=>l(43,h=e)));const D=(0,s.SD)("selectedUids");(0,n.j0C)(e,D,(e=>l(42,b=e)));const B=(0,s.SD)("previewUids");(0,n.j0C)(e,B,(e=>l(0,r=e)));const F=f(v,y);(0,n.j0C)(e,F,(e=>l(1,i=e)));let N=!1,I={},T=!1,U=!1,Y=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0);function S({data:e=null,uuid:t=null,action:s="show"}){if(e&&"show"==s)l(5,I=e),(0,n.vu6)(B,r=[e.UID],r);else if(t&&"add"==s&&-1===r.indexOf(t)){if(v.maximumSelectionSize>0&&r.length>=v.maximumSelectionSize)return;(0,n.vu6)(B,r=[...r,t],r)}else t&&"remove"==s&&-1!==r.indexOf(t)?B.update((e=>(e.splice(e.indexOf(t),1),e))):"clear"==s&&(l(5,I={}),(0,n.vu6)(B,r=[],r))}function $(e,t){l(4,N=!1),S({action:"clear"}),"/"!==e?function(e){if("search"==v.mode)S({data:e});else if(e.is_folderish)g.set(e.path);else{const t=e.path.split("/"),l=t.slice(0,t.length-1).join("/");g.set(l||"/"),S({data:e})}K()}(e):g.set(e)}function Q(e,t){T||(T=!0);const l=t.currentTarget.closest(".levelItems"),n=l.querySelectorAll(".selectedItem");if(n.length&&1!=v.maximumSelectionSize)if(U||t?.shiftKey){let t=!1;for(const n of l.children){if(-1!==[e.UID,I.UID].indexOf(n.dataset.uuid)){if(t){S({uuid:n.dataset.uuid,action:"add"}),t=!1;continue}t=!0}S({uuid:n.dataset.uuid,action:t?"add":"remove"})}}else t?.metaKey||t?.ctrlKey?S({uuid:e.UID,action:-1==r.indexOf(e.UID)?"add":"remove"}):([...n].map((e=>e.classList.remove("selectedItem"))),$(e));else $(e);t.currentTarget.focus(),t.currentTarget.classList.add("selectedItem")}function _(){if(T)return;const e=[...document.querySelectorAll(".levelColumn .inPath"),...document.querySelectorAll(".levelColumn .selectedItem"),document.querySelector(".levelColumn .contentItem")];e.length&&(T=!0,e[0].focus())}function j(e,t){const l=t.currentTarget;if(U=t.shiftKey,"Escape"==t.key&&P(),"ArrowDown"==t.key&&l?.nextElementSibling?.classList.contains("contentItem")&&l.nextElementSibling.click(),"ArrowUp"==t.key&&l?.previousElementSibling?.classList.contains("contentItem")&&l.previousElementSibling.click(),"ArrowRight"==t.key){const e=t.target.closest(".levelColumn"),l=e?.nextElementSibling;if(!l||!l.classList.contains("levelColumn"))return;l.querySelector(".contentItem")?.click()}if("ArrowLeft"==t.key){const e=t.target.closest(".levelColumn"),l=e?.previousElementSibling;if(!l||!l.classList.contains("levelColumn"))return;l.querySelector(".inPath").click()}"Space"==t.key&&Q(e,t),"Enter"==t.key&&E(e)&&(1==v.maximumSelectionSize?q(e):R())}async function q(e){1==v.maximumSelectionSize?(k.set([e]),D.set([e.UID])):(k.update((t=>[...t,e])),D.update((()=>h.map((e=>e.UID))))),function(e,t){if(!t.recentlyUsed)return;const l=C(!1,t),n=l.filter((t=>t.UID===e.UID));n.length>0&&l.splice(l.indexOf(n[0]),1),l.push(e),p.A.storage.set(t.recentlyUsedKey,l)}(e,v),S({action:"clear"}),(0,n.vu6)(x,u=!1,u),T=!1}async function R(){const e=await m(r,v);k.update((t=>{for(const l of e)-1==b.indexOf(l.UID)&&t.push(l);return t})),D.update((()=>h.map((e=>e.UID)))),S({action:"clear"}),(0,n.vu6)(x,u=!1,u),T=!1}function P(){(0,n.vu6)(x,u=!1,u),T=!1,S({action:"clear"})}function E(e){return-1===b.indexOf(e.UID)}function K(){const e=document.querySelector(".levelColumns");e&&o.VG({x:e.scrollWidth+100})}return e.$$.update=()=>{12&e.$$.dirty[0]&&u&&F.get({path:a}),2&e.$$.dirty[0]&&K(),e.$$.dirty[0]},[r,i,a,u,N,I,v,g,w,x,k,D,B,F,Y,async function(){S({action:"clear"}),l(4,N=!0),await c.A.timeout(1);const e=document.querySelector(".upload-wrapper");e.classList.add("pat-upload"),new A.default(e,{baseUrl:v.base_url,currentPath:a,relativePath:"@@fileUpload",allowPathSelection:!1,hiddenInputContainer:".upload-wrapper",success:(e,t)=>{F.get({path:a,updateCache:!0})}})},$,Q,_,j,q,R,function(e){q(e.detail.item)},async function(e){const t=e.detail.item.path,l=await d({vocabularyUrl:v.vocabularyUrl,attributes:v.attributes,levelInfoPath:t});if(!l.total)return void alert(`${t} not found!`);const n=l.results[0];n.path||(n.path="/"),$(n)},P,E,K,function(e){return-1!=a.indexOf(e.path)},function(){let e;e&&clearTimeout(e),e=setTimeout((()=>{F.get({path:a,searchTerm:this.value})}),300)},function(e){const t=new IntersectionObserver((t=>{for(const l of t)if(l.isIntersecting){const t=e.dataset.levelPath,l=parseInt(e.dataset.levelNextPage);F.get({loadMorePath:t,page:l})}}),{threshold:0,root:null,margin:"0px"});window.setTimeout((()=>{t.observe(e)}),500)},()=>P(),()=>$("/"),()=>$("/"),e=>q(e),(e,t,l)=>(0,n.vu6)(F,t[l].gridView=!0,i),(e,t,l)=>(0,n.vu6)(F,t[l].gridView=!1,i),(e,t)=>j(e,t),(e,t)=>Q(e,t),()=>q(I),()=>{K(),_()}]}class ge extends n.r7T{constructor(e){super(),(0,n.TsN)(this,e,he,fe,n.jXN,{},null,[-1,-1])}}var we=ge,ye=l(81557),xe=l(44423),ke=l.n(xe),De=l(44563),Be=l(94441),Fe={};Fe.styleTagTransform=z(),Fe.setAttributes=P(),Fe.insert=q(),Fe.domAPI=_(),Fe.insertStyleElement=K();$()(Be.A,Fe),Be.A&&Be.A.locals&&Be.A.locals;function Ne(e,t,l){const n=e.slice();return n[19]=t[l],n[21]=l,n}function Ie(e){let t,l=[],r=new Map,s=(0,n.rv_)(e[0]);const c=e=>e[19].UID;for(let t=0;tl(2,c=e)));const u=c.fieldId,p=document.getElementById(u),d=(0,s.SD)("selectedItems");(0,n.j0C)(e,d,(e=>l(0,r=e)));const b=(0,s.SD)("selectedUids"),v=(0,s.SD)("showContentBrowser");function C(e){d.update((t=>(t.splice(e,1),t))),b.update((()=>r.map((e=>e.UID))))}function f(){1!==c.maximumSelectionSize&&r.length>1&&ke().create(p.previousSibling.querySelector(".content-browser-selected-items"),{draggable:".selected-item",animation:200,onUpdate:e=>{let t=[];for(const l of e.target.children)t.push(l.dataset.uuid);h(t)}})}function h(e){const t=e.join(c.separator);p.value=t,p.dispatchEvent(De.A.change_event())}(0,n.j0C)(e,v,(e=>l(3,o=e))),(0,s.Rc)((async()=>{await async function(){const e=c.selection.length?c.selection:p?.value?p.value.split(c.separator):[];if(!e.length)return;const t=await m(e,c);(0,n.vu6)(d,r=t,r),b.update((()=>t.map((e=>e.UID))))}(),f(),l(8,a=!1)}));return e.$$.update=()=>{257&e.$$.dirty&&(!r.length&&a||(h(function(){let e=[];return r.forEach((t=>{e.push(t.UID)})),e}()),f()))},[r,i,c,o,A,d,v,C,a,e=>C(e),()=>(0,n.vu6)(v,o=!0,o),function(e){n.Dnk[e?"unshift":"push"]((()=>{i=e,l(1,i)}))}]}class Qe extends n.r7T{constructor(e){super(),(0,n.TsN)(this,e,$e,Se,n.jXN,{})}}var _e=Qe;(0,u.T5)(!1);function je(e){let t,l,r,s;return t=new we({}),r=new _e({}),{c(){(0,n.N0i)(t.$$.fragment),l=(0,n.xem)(),(0,n.N0i)(r.$$.fragment)},m(e,c){(0,n.wSR)(t,e,c),(0,n.Yry)(e,l,c),(0,n.wSR)(r,e,c),s=!0},p:n.lQ1,i(e){s||((0,n.c7F)(t.$$.fragment,e),(0,n.c7F)(r.$$.fragment,e),s=!0)},o(e){(0,n.Tn8)(t.$$.fragment,e),(0,n.Tn8)(r.$$.fragment,e),s=!1},d(e){e&&(0,n.YoD)(l),(0,n.Hbl)(t,e),(0,n.Hbl)(r,e)}}}function qe(e,t,l){let c,o,{maxDepth:i}=t,{width:a}=t,{attributes:A}=t,{contextPath:p}=t,{vocabularyUrl:d}=t,{mode:m="browse"}=t,{basePath:b=""}=t,{selectableTypes:v=[]}=t,{maximumSelectionSize:C=-1}=t,{separator:f}=t,{selection:h=[]}=t,{query:g={}}=t,{fieldId:w}=t,{upload:y}=t,{favorites:x}=t,{recentlyUsed:k}=t,{recentlyUsedKey:D}=t,{recentlyUsedMaxItems:B}=t,{bSize:F=20}=t;const N=r.A.getLogger("pat-contentbrowser");!function(){let e=(0,u.T5)("");(0,s.o)("currentPath",e)}(),function(){let e=(0,u.T5)({});(0,s.o)("config",e)}(),function(){let e=(0,u.T5)({});(0,s.o)("pathCache",e)}(),function(){let e=(0,u.T5)([]);(0,s.o)("selectedItems",e)}(),function(){let e=(0,u.T5)(!1);(0,s.o)("showContentBrowser",e)}(),function(){let e=(0,u.T5)([]);(0,s.o)("selectedUids",e)}(),function(){let e=(0,u.T5)([]);(0,s.o)("previewUids",e)}();const I=(0,s.SD)("currentPath");(0,n.j0C)(e,I,(e=>l(22,o=e))),o||(0,n.vu6)(I,o=b||"/",o);const T=document.body.getAttribute("data-portal-url");let U=(0,s.SD)("config");return(0,n.j0C)(e,U,(e=>l(21,c=e))),(0,n.vu6)(U,c={mode:m,attributes:A,contextPath:p,vocabularyUrl:d,width:a,maxDepth:i,basePath:b,selectableTypes:v,maximumSelectionSize:C,separator:f,selection:h,query:g,fieldId:w,uploadEnabled:y,favorites:x,recentlyUsed:k,recentlyUsedKey:D,recentlyUsedMaxItems:B,base_url:T,pageSize:F},c),N.debug(`Initialized App<${w}> with config ${JSON.stringify(c)}`),e.$$set=e=>{"maxDepth"in e&&l(2,i=e.maxDepth),"width"in e&&l(3,a=e.width),"attributes"in e&&l(4,A=e.attributes),"contextPath"in e&&l(5,p=e.contextPath),"vocabularyUrl"in e&&l(6,d=e.vocabularyUrl),"mode"in e&&l(7,m=e.mode),"basePath"in e&&l(8,b=e.basePath),"selectableTypes"in e&&l(9,v=e.selectableTypes),"maximumSelectionSize"in e&&l(10,C=e.maximumSelectionSize),"separator"in e&&l(11,f=e.separator),"selection"in e&&l(12,h=e.selection),"query"in e&&l(13,g=e.query),"fieldId"in e&&l(14,w=e.fieldId),"upload"in e&&l(15,y=e.upload),"favorites"in e&&l(16,x=e.favorites),"recentlyUsed"in e&&l(17,k=e.recentlyUsed),"recentlyUsedKey"in e&&l(18,D=e.recentlyUsedKey),"recentlyUsedMaxItems"in e&&l(19,B=e.recentlyUsedMaxItems),"bSize"in e&&l(20,F=e.bSize)},[I,U,i,a,A,p,d,m,b,v,C,f,h,g,w,y,x,k,D,B,F]}class Re extends n.r7T{constructor(e){super(),(0,n.TsN)(this,e,qe,je,n.jXN,{maxDepth:2,width:3,attributes:4,contextPath:5,vocabularyUrl:6,mode:7,basePath:8,selectableTypes:9,maximumSelectionSize:10,separator:11,selection:12,query:13,fieldId:14,upload:15,favorites:16,recentlyUsed:17,recentlyUsedKey:18,recentlyUsedMaxItems:19,bSize:20})}}var Pe=Re}}]); -//# sourceMappingURL=18085.d23f998b1658183bee88.min.js.map \ No newline at end of file diff --git a/dist/mockup/chunks/18085.d23f998b1658183bee88.min.js.map b/dist/mockup/chunks/18085.d23f998b1658183bee88.min.js.map deleted file mode 100644 index e1a8ded81..000000000 --- a/dist/mockup/chunks/18085.d23f998b1658183bee88.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunks/18085.d23f998b1658183bee88.min.js","mappings":"yJAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,26GAA46G,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,gEAAgE,MAAQ,GAAG,SAAW,qiCAAqiC,WAAa,MAExnJ,K,2DCJIH,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,uzCAAwzC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,+DAA+D,MAAQ,GAAG,SAAW,qVAAqV,WAAa,MAEnzD,K,gMCLOC,eAAeC,EAAOC,GAY1B,IAZ2B,OAC1BC,EAAS,MAAK,cACdC,EAAgB,KAAI,WACpBC,EAAa,GAAE,KACfC,EAAO,KAAI,KACXC,EAAO,KAAI,WACXC,EAAa,KAAI,WACjBC,EAAa,KAAI,cACjBC,EAAgB,KAAI,gBACpBC,EAAkB,GAAE,SACpBC,EAAW,IAAG,KACdC,EAAO,GACVX,EACOY,EAAa,CACbC,SAAU,IAiEd,GA/DIT,IACAQ,EAAa,CACTC,SAAU,CACN,CACIC,EAAG,OACHC,EAAG,8CACHC,EAAG,GAAGZ,SAGda,QAAS,yBACTC,WAAY,cAGhBV,IACAI,EAAa,CACTC,SAAU,CACN,CACIC,EAAG,OACHC,EAA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AA,EAAAA,IAAS,KAC3BsM,EAAAA,EAAAA,GAAW,cAAe5H,EAC9B,CC8BI6H,GDjBG,WACH,IAAI7O,GAASsC,EAAAA,EAAAA,IAAS,CAAC,IACvBsM,EAAAA,EAAAA,GAAW,SAAU5O,EACzB,CCeI8O,GD7BG,WACH,IAAI1M,GAAYE,EAAAA,EAAAA,IAAS,CAAC,IAC1BsM,EAAAA,EAAAA,GAAW,YAAaxM,EAC5B,CC2BI2M,GDxBG,WACH,IAAIC,GAAW1M,EAAAA,EAAAA,IAAS,KACxBsM,EAAAA,EAAAA,GAAW,gBAAiBI,EAChC,CCsBIC,GDfG,WACH,IAAIhI,GAAqB3E,EAAAA,EAAAA,KAAS,IAClCsM,EAAAA,EAAAA,GAAW,qBAAsB3H,EACrC,CCaIiI,GDXG,WACH,IAAIC,GAAU7M,EAAAA,EAAAA,IAAS,KACvBsM,EAAAA,EAAAA,GAAW,eAAgBO,EAC/B,CCSIC,GDPG,WACH,IAAIC,GAAW/M,EAAAA,EAAAA,IAAS,KACxBsM,EAAAA,EAAAA,GAAW,cAAeS,EAC9B,CCKIC,G,MAGMtI,GAAc,QAAW,gB,6BAE1BoE,I,WACDA,EAAeoD,GAAY,IAAG,G,MAI5B3L,EAAWvB,SAASiO,KAAKC,aAAa,mB,IAExCxP,GAAS,QAAW,U,gDACxB6F,EAAU,CACA9C,OACMpF,aACC4Q,cACE7Q,gBACRsP,QACG7I,WACAqK,WACOvQ,kBACKoK,uBACX0F,YACAI,YACJ3L,QACE2K,UACT9G,cAAeoI,EACJzJ,YACGW,eACG7D,kBACKK,uBACZU,WACV3E,SAAUwQ,G,GAGdjJ,EAAIgK,MAAM,mBAAmBtC,kBAAwBpO,KAAKC,UAAU6G,M","sources":["webpack://@plone/mockup/./src/pat/contentbrowser/src/ContentBrowser.svelte","webpack://@plone/mockup/./src/pat/contentbrowser/src/SelectedItems.svelte","webpack://@plone/mockup/./src/pat/contentbrowser/src/utils.js","webpack://@plone/mockup/./src/pat/contentbrowser/src/ContentStore.js","webpack://@plone/mockup/Favorites.svelte","webpack://@plone/mockup/RecentlyUsed.svelte","webpack://@plone/mockup/./src/pat/contentbrowser/src/ContentBrowser.svelte?b874","webpack://@plone/mockup/ContentBrowser.svelte","webpack://@plone/mockup/./src/pat/contentbrowser/src/SelectedItems.svelte?e8bf","webpack://@plone/mockup/SelectedItems.svelte","webpack://@plone/mockup/./src/pat/contentbrowser/src/stores.js","webpack://@plone/mockup/App.svelte"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".content-browser-position-wrapper.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{position:fixed;top:0;right:0;display:flex;justify-content:end;z-index:1500;width:100%;height:100vh;background-color:rgba(0,0,0,.25)}.btn-xs.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{--bs-btn-padding-y:0.15rem;--bs-btn-padding-x:0.5rem;--bs-btn-font-size:0.75rem}.content-browser.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{height:100vh;min-width:550px;background-color:var(--bs-light-bg-subtle);border-left:var(--bs-border-style) var(--bs-border-width) #fff;z-index:1500;display:flex;flex-direction:column}.toolBar.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{background-color:var(--bs-primary);padding:.325rem .75rem;color:var(--bs-light);width:100%;display:flex;justify-content:start}.toolBar.svelte-1lcbp2k svg{vertical-align:-0.125em}.levelColumns.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{display:flex;flex-wrap:nowrap;width:100%;overflow:hidden;flex-grow:3;border-left:var(--bs-border-style) var(--bs-border-color) var(--bs-border-width);user-select:none}.levelColumn.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{width:320px;border-right:var(--bs-border-style) var(--bs-border-width) var(--bs-border-color);display:flex;flex-direction:column}.levelToolbar.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{width:100%;height:2.5rem;display:flex;justify-content:space-between;padding:.375rem;border-bottom:var(--bs-border-style) var(--bs-border-width) var(--bs-border-color)}.levelToolbar.svelte-1lcbp2k>.levelActions.svelte-1lcbp2k.svelte-1lcbp2k{margin-left:auto}.levelItems.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{overflow-x:auto}.contentItem.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{display:flex;align-items:center;justify-content:space-between;font-size:90%;min-height:2rem}.contentItem.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k:focus-visible{outline:none}.contentItem.even.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{background-color:rgba(var(--bs-secondary-bg-rgb), 0.4)}.contentItem.inPath.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k,.contentItem.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k:focus{background-color:rgba(var(--bs-primary-rgb), 0.15)}.contentItem.selectedItem.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{background-color:var(--bs-primary);color:var(--bs-body-bg)}.contentItem.svelte-1lcbp2k>.svelte-1lcbp2k.svelte-1lcbp2k{padding:.5rem;white-space:nowrap;max-width:450px;text-overflow:ellipsis;overflow:hidden}.contentItem.svelte-1lcbp2k>.browseSub.svelte-1lcbp2k.svelte-1lcbp2k{flex-shrink:0}.contentItem.svelte-1lcbp2k .grid-preview.svelte-1lcbp2k>img.svelte-1lcbp2k{width:95px;height:95px;object-fit:cover;float:left;margin-right:1rem}.preview.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{width:320px;min-height:300px;display:flex;flex-direction:column;align-items:center}.preview.svelte-1lcbp2k .info.svelte-1lcbp2k.svelte-1lcbp2k{padding:.5rem;width:100%;word-wrap:anywhere}.preview.svelte-1lcbp2k .info .previewIcon.svelte-1lcbp2k.svelte-1lcbp2k{margin:0 auto 1rem auto}.preview.svelte-1lcbp2k .info .previewIcon svg.svelte-1lcbp2k.svelte-1lcbp2k{width:50px !important;height:50px !important}.preview.svelte-1lcbp2k h4.svelte-1lcbp2k.svelte-1lcbp2k{font-size:1.2 rem}.preview.svelte-1lcbp2k img.svelte-1lcbp2k.svelte-1lcbp2k{max-width:100%;max-width:100%;margin-bottom:.5rem}.upload-wrapper.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{padding:1rem;width:590px;overflow-x:auto}.loadmore.svelte-1lcbp2k.svelte-1lcbp2k.svelte-1lcbp2k{text-align:center;padding:.25rem 0}\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/pat/contentbrowser/src/ContentBrowser.svelte\"],\"names\":[],\"mappings\":\"AAAA,+EAAA,cAAA,CAAA,KAAA,CAAA,OAAA,CAAA,YAAA,CAAA,mBAAA,CAAA,YAAA,CAAA,UAAA,CAAA,YAAA,CAAA,gCAAA,CAAA,qDAAA,0BAAA,CAAA,yBAAA,CAAA,0BAAA,CAAA,8DAAA,YAAA,CAAA,eAAA,CAAA,0CAAA,CAAA,8DAAA,CAAA,YAAA,CAAA,YAAA,CAAA,qBAAA,CAAA,sDAAA,kCAAA,CAAA,sBAAA,CAAA,qBAAA,CAAA,UAAA,CAAA,YAAA,CAAA,qBAAA,CAAA,4BAAA,uBAAA,CAAA,2DAAA,YAAA,CAAA,gBAAA,CAAA,UAAA,CAAA,eAAA,CAAA,WAAA,CAAA,gFAAA,CAAA,gBAAA,CAAA,0DAAA,WAAA,CAAA,iFAAA,CACmC,YAAA,CAAA,qBAAA,CAAA,2DAAA,UAAA,CAAA,aAAA,CAAA,YAAA,CAAA,6BAAA,CAAA,eAAA,CAAA,kFAAA,CACA,yEAAA,gBAAA,CAAA,yDAAA,eAAA,CAAA,0DAAA,YAAA,CAAA,kBAAA,CAAA,6BAAA,CAAA,aAAA,CAAA,eAAA,CAAA,wEAAA,YAAA,CAAA,+DAAA,sDAAA,CAAA,iIAAA,kDAAA,CAAA,uEAAA,kCAAA,CAAA,uBAAA,CAAA,2DAAA,aAAA,CAAA,kBAAA,CAAA,eAAA,CAAA,sBAAA,CAAA,eAAA,CAAA,qEAAA,aAAA,CAAA,4EAAA,UAAA,CAAA,WAAA,CAAA,gBAAA,CAAA,UAAA,CAAA,iBAAA,CAAA,sDAAA,WAAA,CAAA,gBAAA,CAAA,YAAA,CAAA,qBAAA,CAAA,kBAAA,CAAA,4DAAA,aAAA,CAAA,UAAA,CAAA,kBAAA,CAAA,yEAAA,uBAAA,CAAA,6EAAA,qBAAA,CAAA,sBAAA,CAAA,yDAAA,iBAAA,CAAA,0DAAA,cAAA,CAAA,cAAA,CAAA,mBAAA,CAAA,6DAAA,YAAA,CAAA,WAAA,CAAA,eAAA,CAAA,uDAAA,iBAAA,CAAA,gBAAA\",\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".content-browser-selected-items-wrapper.svelte-bljrxf.svelte-bljrxf.svelte-bljrxf{display:flex;align-items:start}.content-browser-selected-items.svelte-bljrxf.svelte-bljrxf.svelte-bljrxf{list-style:none;background-color:var(--bs-body-bg);border-radius:var(--bs-border-radius) 0 0 var(--bs-border-radius);border:var(--bs-border-style) var(--bs-border-color) var(--bs-border-width);min-height:2.4rem;padding:.5rem .5rem 0 .5rem;flex:1 1 auto}.content-browser-selected-items.svelte-bljrxf .selected-item.svelte-bljrxf.svelte-bljrxf{border-radius:var(--bs-border-radius);background-color:var(--bs-tertiary-bg);border:var(--bs-border-style) var(--bs-border-color) var(--bs-border-width);padding:.5rem;margin-bottom:.5rem;display:flex;flex-wrap:nowrap;align-items:start;justify-content:space-between;cursor:move}.content-browser-selected-items.svelte-bljrxf .selected-item.svelte-bljrxf>.svelte-bljrxf{margin-right:.5rem;display:block}.content-browser-selected-items.svelte-bljrxf .selected-item button.svelte-bljrxf.svelte-bljrxf{cursor:pointer;padding:0 .375rem .374rem 0}.content-browser-selected-items.svelte-bljrxf .selected-item .item-info.svelte-bljrxf.svelte-bljrxf{display:flex;align-items:start}.content-browser-selected-items.svelte-bljrxf .selected-item.svelte-bljrxf>img.svelte-bljrxf{object-fit:cover;width:95px;height:95px}\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/pat/contentbrowser/src/SelectedItems.svelte\"],\"names\":[],\"mappings\":\"AAAA,kFAAA,YAAA,CAAA,iBAAA,CAAA,0EAAA,eAAA,CAAA,kCAAA,CAAA,iEAAA,CAAA,2EAAA,CAAA,iBAAA,CAAA,2BAAA,CAAA,aAAA,CAAA,yFAAA,qCAAA,CAAA,sCAAA,CAAA,2EAAA,CAAA,aAAA,CAAA,mBAAA,CAAA,YAAA,CAAA,gBAAA,CAAA,iBAAA,CAAA,6BAAA,CAAA,WAAA,CAAA,0FAAA,kBAAA,CAAA,aAAA,CAAA,gGAAA,cAAA,CAAA,2BAAA,CAAA,oGAAA,YAAA,CAAA,iBAAA,CAAA,6FAAA,gBAAA,CAAA,UAAA,CAAA,WAAA\",\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","import utils from \"../../../core/utils.js\";\n\nexport async function request({\n method = \"GET\",\n vocabularyUrl = null,\n attributes = [],\n path = null,\n uids = null,\n searchTerm = null,\n searchPath = null,\n levelInfoPath = null,\n selectableTypes = [],\n pageSize = 100,\n page = 1,\n}) {\n let vocabQuery = {\n criteria: [],\n };\n if (path) {\n vocabQuery = {\n criteria: [\n {\n i: \"path\",\n o: \"plone.app.querystring.operation.string.path\",\n v: `${path}::1`,\n },\n ],\n sort_on: \"getObjPositionInParent\",\n sort_order: \"ascending\",\n };\n }\n if (levelInfoPath) {\n vocabQuery = {\n criteria: [\n {\n i: \"path\",\n o: \"plone.app.querystring.operation.string.path\",\n v: `${levelInfoPath}::0`,\n },\n ],\n };\n }\n if (searchPath) {\n // search from searchPath down\n vocabQuery = {\n criteria: [\n {\n i: \"path\",\n o: \"plone.app.querystring.operation.string.path\",\n v: searchPath,\n },\n ],\n };\n if (selectableTypes) {\n vocabQuery.criteria.push({\n i: \"portal_type\",\n o: \"plone.app.querystring.operation.list.contains\",\n v: selectableTypes,\n })\n }\n }\n if (uids) {\n vocabQuery = {\n criteria: [\n {\n i: \"UID\",\n o: \"plone.app.querystring.operation.list.contains\",\n v: uids,\n },\n ],\n };\n }\n if (searchTerm) {\n vocabQuery.criteria.push({\n i: \"SearchableText\",\n o: \"plone.app.querystring.operation.string.contains\",\n v: `${searchTerm}`,\n\n })\n }\n\n if (!vocabQuery.criteria.length) {\n return {\n results: [],\n total: 0,\n }\n };\n let url = `${vocabularyUrl}&query=${JSON.stringify(\n vocabQuery\n )}&attributes=${JSON.stringify(attributes)}&batch=${JSON.stringify({\n page: page,\n size: pageSize,\n })}`;\n\n let headers = new Headers();\n headers.set(\"Accept\", \"application/json\");\n\n const response = await fetch(url, {\n method: method,\n headers: headers,\n });\n const json = await response.json();\n\n if (response.ok) {\n if (!searchPath && !levelInfoPath && selectableTypes.length) {\n // we iter through response and filter out non-selectable\n // types but keep folderish types to maintain browsing\n // the content structure.\n const filtered_response = {\n results: [],\n total: json.total,\n }\n for (const it of json.results) {\n if (selectableTypes.indexOf(it.portal_type) != -1 || it.is_folderish) {\n filtered_response.results.push(it);\n }\n }\n return filtered_response;\n }\n return json;\n } else {\n return {\n results: [],\n total: 0,\n errors: json.errors,\n };\n }\n}\n\nexport async function get_items_from_uids(uids, config) {\n if (!uids) {\n return [];\n }\n const selectedItemsFromUids = await request({\n vocabularyUrl: config.vocabularyUrl,\n attributes: config.attributes,\n uids: uids,\n });\n let results = (await selectedItemsFromUids?.results) || [];\n // resort the results based on the order of uids\n results.sort((a, b) => {\n return uids.indexOf(a.UID) - uids.indexOf(b.UID);\n })\n return results;\n}\n\n\n/** use Plone resolveIcon to load a SVG icon and replace node with icon code */\nexport async function resolveIcon(node, { iconName }) {\n\n async function getIcon(iconName) {\n const icon = await utils.resolveIcon(iconName)\n return icon;\n }\n const iconCode = await getIcon(iconName);\n node.outerHTML = iconCode;\n return {\n destroy() { },\n };\n}\n\n/** Dispatch event on click outside of node */\nexport function clickOutside(node) {\n const handleClick = (event) => {\n if (node && !node.contains(event.target)) {\n node.dispatchEvent(new CustomEvent(\"click_outside\", node));\n }\n };\n\n document.addEventListener(\"click\", handleClick, true);\n\n return {\n destroy() {\n document.removeEventListener(\"click\", handleClick, true);\n },\n };\n}\n\nexport function recentlyUsedItems(filterItems, config) {\n let ret = utils.storage.get(config.recentlyUsedKey) || [];\n // hard-limit to 1000 entries\n ret = ret.slice(ret.length - 1000, ret.length);\n if (filterItems && config?.selectableTypes.length) {\n ret = ret.filter((it) => {\n return config.selectableTypes.indexOf(it.portal_type) != -1;\n });\n }\n // max is applied AFTER filtering selectable items.\n const max = parseInt(config.recentlyUsedMaxItems, 10);\n if (max) {\n // return the slice from the end, as we want to display newest items first.\n ret = ret.slice(ret.length - max, ret.length);\n }\n return ret;\n}\n\nexport function updateRecentlyUsed(item, config) {\n if (!config.recentlyUsed) {\n return;\n }\n // add to recently added items\n const recentlyUsed = recentlyUsedItems(false, config); // do not filter for selectable but get all. append to that list the new item.\n const alreadyPresent = recentlyUsed.filter((it) => {\n return it.UID === item.UID;\n });\n if (alreadyPresent.length > 0) {\n recentlyUsed.splice(recentlyUsed.indexOf(alreadyPresent[0]), 1);\n }\n recentlyUsed.push(item);\n utils.storage.set(config.recentlyUsedKey, recentlyUsed);\n}\n","import { writable, get } from \"svelte/store\";\nimport { request } from \"./utils.js\";\n\nexport default function (config, pathCache) {\n const store = writable([]);\n\n const load = async (query) => {\n let defaults = {\n vocabularyUrl: config.vocabularyUrl,\n attributes: config.attributes,\n pageSize: config.pageSize,\n };\n query = {\n ...defaults,\n ...query,\n }\n if (config.selectableTypes.length) {\n query[\"selectableTypes\"] = config.selectableTypes;\n }\n return await request(query);\n }\n\n const browse = async (portalPath, path, searchTerm, updateCache) => {\n let paths = [];\n let parts = path.split(\"/\") || [];\n const depth = parts.length >= config.maxDepth ? config.maxDepth : parts.length;\n\n let partsToShow = parts.slice(parts.length - depth, parts.length);\n let partsToHide = parts.slice(0, parts.length - depth);\n const pathPrefix = portalPath + partsToHide.join(\"/\");\n const pC = get(pathCache);\n\n while (partsToShow.length > 0) {\n let sub_path = partsToShow.join(\"/\").replace(/^\\//, \"\");\n const poped = partsToShow.pop();\n sub_path = pathPrefix + ((poped != \"\") ? `/${sub_path}` : \"\");\n if (paths.indexOf(sub_path) === -1) paths.push(sub_path);\n }\n\n let levels = [];\n let pathCounter = 0;\n\n for (var p of paths) {\n pathCounter++;\n const isFirstPath = pathCounter == 1;\n let level = {};\n if (\n !(p in pC) || // new path not found in cache\n (isFirstPath && searchTerm) || // filtering the level\n updateCache // manual cache update request\n ) {\n let query = {\n path: p,\n };\n\n if (isFirstPath && searchTerm) {\n query[\"searchTerm\"] = \"*\" + searchTerm + \"*\";\n }\n\n level = await load(query);\n\n // check if there is more than the current batch\n level.more = config.pageSize < level.total;\n // save possible search filter for later batch loading\n level.searchTerm = searchTerm;\n level.page = 1;\n level.path = p;\n level.absPath = p.replace(portalPath, \"\");\n\n // do not update cache when searching\n if (!searchTerm) {\n const levelInfo = await load({\n levelInfoPath: p,\n });\n if (levelInfo.total) {\n level.UID = levelInfo.results[0].UID;\n level.Title = levelInfo.results[0].Title;\n level.portal_type = levelInfo.results[0].portal_type;\n level.getIcon = levelInfo.results[0].getIcon;\n // check if level is selectable (config.selectableTypes)\n level.selectable = (!config.selectableTypes.length || config.selectableTypes.indexOf(levelInfo.results[0].portal_type) != -1);\n }\n level.gridView = false;\n pathCache.update((n) => {\n n[p] = level;\n return n;\n });\n }\n } else {\n level = pC[p];\n }\n levels = [level, ...levels];\n }\n store.set(levels);\n }\n\n const search = async (portalPath, searchTerm, page) => {\n let query = {\n searchPath: portalPath,\n page: page,\n };\n if (searchTerm) {\n query[\"searchTerm\"] = \"*\" + searchTerm + \"*\";\n }\n let level = await load(query);\n level.page = page;\n level.searchTerm = searchTerm;\n\n store.update((levels) => {\n const has_more = (page * config.pageSize) < level.total;\n\n // first time or new search\n if (levels.length == 0 || levels[0].searchTerm != searchTerm) {\n level.more = has_more;\n level.selectable = false;\n level.gridView = false;\n return [level,];\n }\n\n // has more ?\n levels[0].more = has_more;\n levels[0].page = level.page;\n\n // append new batch\n levels[0].results = [\n ...levels[0].results,\n ...level.results,\n ];\n return levels;\n });\n }\n\n const nextBatch = async (p, page, searchTerm) => {\n let query = {\n path: p,\n page: page,\n };\n\n if (searchTerm) {\n query[\"searchTerm\"] = \"*\" + searchTerm + \"*\";\n }\n\n let level = await load(query);\n level.more = (page * config.pageSize) < level.total;\n level.page = page;\n\n store.update((levels) => {\n levels.forEach((l) => {\n if (l.path != p) {\n return l;\n }\n l.page = level.page;\n l.more = level.more;\n l.results = [\n ...l.results,\n ...level.results,\n ]\n });\n return levels;\n });\n }\n\n store.get = async ({\n path = \"\",\n searchTerm = \"\",\n updateCache = false,\n loadMorePath = \"\",\n page = 1,\n }) => {\n const base_url = new URL(config.base_url);\n const portalPath = base_url.pathname;\n\n if (config.mode === \"search\") {\n await search(portalPath, searchTerm, page)\n } else if (loadMorePath) {\n const pC = get(pathCache);\n if (!(loadMorePath in pC)) {\n return;\n }\n let level = pC[loadMorePath];\n if (page > level.page) {\n await nextBatch(loadMorePath, page, level.searchTerm);\n }\n } else if (path) {\n path = path.replace(new RegExp(`^${portalPath}`), \"\");\n await browse(portalPath, path, searchTerm, updateCache);\n }\n\n };\n\n return store;\n}\n","\n\n{#if $config?.favorites}\n
\n \n \n {_t(\"Favorites\")}\n \n \n
\n{/if}\n","\n\n{#if $config.recentlyUsed && items.length}\n
\n \n \n {_t(\"Recently Used\")}\n \n
    \n {#each items.reverse() as recentlyUsed}\n
  • \n select(recentlyUsed)}\n class=\"dropdown-item\"\n >\n \n {recentlyUsed.Title}\n \n
  • \n {/each}\n
\n
\n{/if}\n","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"../../../../node_modules/@patternslib/dev/webpack/style-inserter.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/svelte-loader/index.js?cssPath=/home/runner/work/mockup/mockup/src/pat/contentbrowser/src/ContentBrowser.svelte.0.css!./ContentBrowser.svelte\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn;\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/svelte-loader/index.js?cssPath=/home/runner/work/mockup/mockup/src/pat/contentbrowser/src/ContentBrowser.svelte.0.css!./ContentBrowser.svelte\";\n export default content && content.locals ? content.locals : undefined;\n","\n\n{#if $showContentBrowser}\n
\n {\n scrollToRight();\n initKeyboardNav();\n }}\n use:clickOutside\n on:click_outside={cancelSelection}\n >\n
\n
\n \n
\n \n \n {#if $config.uploadEnabled}\n
\n \n {_t(\"upload to ${current_path}\", {\n current_path: $currentPath,\n })}\n
\n {/if}\n cancelSelection()}\n >\n
\n {#await $contentItems}\n

{_t(\"loading content items\")}

\n {:then levels}\n
\n {#each levels as level, i (level.path)}\n \n
\n {#if i == 0}\n changePath(\"/\")}\n on:click={() => changePath(\"/\")}\n >\n {/if}\n {#if level.selectable}\n addItem(level)}\n >\n {_t(\"select ${level_path}\", {\n level_path: level.absPath || \"/\",\n })}\n \n {/if}\n
\n {#if !level.gridView}\n (level.gridView = true)}\n >\n \n \n {:else}\n (level.gridView = false)}\n >\n \n \n {/if}\n
\n
\n
\n {#each level.results || [] as item, n}\n \n \n keyboardNavigation(item, e)}\n on:click={(e) => clickItem(item, e)}\n >\n {#if level.gridView}\n
\n {#if item.getIcon}\n \n {:else}\n \n {/if}\n {item.Title}\n
\n {:else}\n \n \n {item.Title}\n
\n {/if}\n {#if item.is_folderish && $config.mode == \"browse\"}\n
\n \n
\n {/if}\n
\n {/each}\n {#if level.more}\n \n
\n
\n {/if}\n {#if level.total == 0}\n
\n

{_t(\"no results found\")}

\n
\n {/if}\n \n \n {/each}\n {#if previewItem?.UID && $previewUids.length == 1}\n
\n
\n addItem(previewItem)}\n >{_t(\"select ${preview_path}\", {\n preview_path: previewItem.path.split(\"/\").pop(),\n })}\n
\n
\n {#if previewItem.getIcon}\n
\n \n
\n {:else}\n
\n \n
\n {/if}\n

{previewItem.Title}

\n

{previewItem.Description}

\n
\n
\n {/if}\n {#if $previewUids.length > 1}\n
\n
\n {_t(\"add selected items\")}\n
\n
\n \n
\n
\n {/if}\n {#if showUpload}\n
\n {/if}\n \n {:catch error}\n

{error.message}

\n {/await}\n \n \n{/if}\n\n\n","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"../../../../node_modules/@patternslib/dev/webpack/style-inserter.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/svelte-loader/index.js?cssPath=/home/runner/work/mockup/mockup/src/pat/contentbrowser/src/SelectedItems.svelte.1.css!./SelectedItems.svelte\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn;\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/svelte-loader/index.js?cssPath=/home/runner/work/mockup/mockup/src/pat/contentbrowser/src/SelectedItems.svelte.1.css!./SelectedItems.svelte\";\n export default content && content.locals ? content.locals : undefined;\n","\n\n\n \n
\n {#if $selectedItems}\n {#each $selectedItems as selItem, i (selItem.UID)}\n \n
\n \n unselectItem(i)}\n >\n
\n {selItem.Title}
\n {selItem.path}\n
\n
\n {#if selItem.getURL && (selItem.getIcon || selItem.portal_type === \"Image\")}{/if}\n
\n {/each}\n {/if}\n {#if !$selectedItems}\n

{_t(\"loading selected items\")}

\n {/if}\n \n ($showContentBrowser = true)}\n >{_t(\"Select\")}\n\n\n\n","import { setContext } from 'svelte';\nimport { writable } from 'svelte/store';\n\nexport const gridView = writable(false);\n\nexport function setCurrentPath() {\n let currentPath = writable('');\n setContext('currentPath', currentPath);\n}\n\nexport function setPathCache() {\n let pathCache = writable({});\n setContext('pathCache', pathCache);\n}\n\n// reactive context stores\nexport function setSelectedItems() {\n let selItems = writable([]);\n setContext('selectedItems', selItems);\n}\n\nexport function setConfig() {\n let config = writable({});\n setContext('config', config);\n}\n\nexport function setShowContentBrowser() {\n let showContentBrowser = writable(false);\n setContext('showContentBrowser', showContentBrowser);\n}\n\nexport function setSelectedUids() {\n let selUids = writable([]);\n setContext(\"selectedUids\", selUids);\n}\n\nexport function setPreviewUids() {\n let prevUids = writable([]);\n setContext(\"previewUids\", prevUids);\n}\n","\n\n\n\n"],"names":["___CSS_LOADER_EXPORT___","push","module","id","async","request","_ref","method","vocabularyUrl","attributes","path","uids","searchTerm","searchPath","levelInfoPath","selectableTypes","pageSize","page","vocabQuery","criteria","i","o","v","sort_on","sort_order","length","results","total","url","JSON","stringify","size","headers","Headers","set","response","fetch","json","ok","filtered_response","it","indexOf","portal_type","is_folderish","errors","get_items_from_uids","config","selectedItemsFromUids","sort","a","b","UID","resolveIcon","node","_ref2","iconName","iconCode","utils","getIcon","outerHTML","destroy","clickOutside","handleClick","event","contains","target","dispatchEvent","CustomEvent","document","addEventListener","removeEventListener","recentlyUsedItems","filterItems","ret","storage","get","recentlyUsedKey","slice","filter","max","parseInt","recentlyUsedMaxItems","pathCache","store","writable","load","query","updateCache","loadMorePath","portalPath","URL","base_url","pathname","mode","level","update","levels","has_more","more","selectable","gridView","search","pC","p","forEach","l","nextBatch","replace","RegExp","paths","parts","split","depth","maxDepth","partsToShow","pathPrefix","join","sub_path","pop","pathCounter","isFirstPath","absPath","levelInfo","Title","n","browse","favorites","title","dispatch","select","item","favorite","reverse","getURL","console","log","toLowerCase","recentlyUsed","items","$config","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","uploadEnabled","x","opacity","current_path","message","level_path","duration","preview_path","Description","scrollX","container","currentPath","showContentBrowser","selectedItems","selectedUids","previewUids","contentItems","showUpload","previewItem","keyboardNavInitialized","shiftKey","vw","Math","documentElement","clientWidth","window","innerWidth","updatePreview","data","uuid","action","$previewUids","maximumSelectionSize","splice","changePath","e","pathParts","folderPath","scrollToRight","showPreview","clickItem","levelWrapper","currentTarget","closest","prevSelection","querySelectorAll","el","children","dataset","metaKey","ctrlKey","map","classList","remove","focus","add","initKeyboardNav","possibleFocusEls","querySelector","keyboardNavigation","key","cancelSelection","nextElementSibling","click","previousElementSibling","currCol","nxtCol","prevCol","isSelectable","addItem","addSelectedItems","$selectedItems","alreadyPresent","updateRecentlyUsed","$showContentBrowser","previewItems","$selectedUids","scrollContainer","scrollWidth","$currentPath","timeout","uploadEl","baseUrl","relativePath","allowPathSelection","hiddenInputContainer","success","fileUpload","obj","detail","alert","timeoutId","clearTimeout","setTimeout","this","value","observer","IntersectionObserver","entries","entry","isIntersecting","levelPath","levelNextPage","threshold","root","margin","observe","width","ref","initializing","fieldId","selectedItemsNode","getElementById","unselectItem","initializeSorting","previousSibling","draggable","animation","onUpdate","sortedUuids","setNodeValue","node_val","separator","events","change_event","initialValue","selection","selectedItemsUids","initializeSelectedItemsStore","selectedUidsFromSelectedItems","contextPath","basePath","upload","bSize","getLogger","setContext","setCurrentPath","setConfig","setPathCache","selItems","setSelectedItems","setShowContentBrowser","selUids","setSelectedUids","prevUids","setPreviewUids","body","getAttribute","debug"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/mockup/chunks/18361.1189118d4463f13e1c6a.min.js b/dist/mockup/chunks/18361.1189118d4463f13e1c6a.min.js new file mode 100644 index 000000000..b6f7f1056 --- /dev/null +++ b/dist/mockup/chunks/18361.1189118d4463f13e1c6a.min.js @@ -0,0 +1,2 @@ +(self.webpackChunk_plone_mockup=self.webpackChunk_plone_mockup||[]).push([[18361],{61751:function(e,t,s){"use strict";s.d(t,{YA:function(){return o}});var a=s(67545);let l={plone:null,widgets:null};const i=function(e,t,s){if(null===l[e]){var i=new a.A;i.loadCatalog(e),l[e]=i.MessageFactory(e)}return l[e](t,s)},o=function(e,t){return i("plone",e,t)};t.Ay=function(e,t){return i("widgets",e,t)}},67545:function(e,t,s){"use strict";var a=s(35686),l=s.n(a);t.A=function(){var e=this;e.baseUrl=l()("body").attr("data-i18ncatalogurl"),e.currentLanguage=l()("html").attr("lang")||"en",e.currentLanguage.split("-").length>1&&(e.currentLanguage=e.currentLanguage.split("-")[0]+"_"+e.currentLanguage.split("-")[1].toUpperCase()),e.storage=null,e.catalogs={},e.ttl=864e5,Date.now||(Date.now=function(){return(new Date).valueOf()});try{"localStorage"in window&&null!==window.localStorage&&"JSON"in window&&null!==window.JSON&&(e.storage=window.localStorage)}catch(e){console.log("Failed to set local storage")}e.configure=function(t){for(var s in t)e[s]=t[s]},e._setCatalog=function(t,s,a){t in e.catalogs||(e.catalogs[t]={}),e.catalogs[t][s]=a},e._storeCatalog=function(t,s,a){var l=t+"-"+s;null!==e.storage&&null!==a&&(e.storage.setItem(l,JSON.stringify(a)),e.storage.setItem(l+"-updated",Date.now()))},e.getUrl=function(t,s){return e.baseUrl+"?domain="+t+"&language="+s},e.loadCatalog=function(t,s){if(void 0===s&&(s=e.currentLanguage),null!==e.storage){var a=t+"-"+s;if(a in e.storage&&Date.now()-parseInt(e.storage.getItem(a+"-updated"),10)
"),t.$el.addClass(t.className).hide().appendTo("body"))},t.show=function(e){t.init(),t.$el.show(),t.$el.css("position","absolute"),t.$el.css("top","50%"),t.$el.css("left","50%");var s=t.options.zIndex;"function"==typeof s?s=Math.max(s(),10005):(s=10005,l()(".modal-wrapper,.-modal-backdrop").each((function(){s=Math.max(s,l()(this).css("zIndex")||10005)})),s+=1),t.$el.css("zIndex",s),void 0===e&&(e=!0),t.options.backdrop&&(t.options.backdrop.closeOnClick=e,t.options.backdrop.closeOnEsc=e,t.options.backdrop.init(),t.options.backdrop.show())},t.hide=function(){t.init(),t.$el.hide()},t},n=function(e){return void 0===e&&(e="id"),e+Math.floor(65536*(1+Math.random())).toString(16).substring(1)},r={dragAndDrop:function(){return"draggable"in document.createElement("span")},fileApi:function(){return"undefined"!=typeof FileReader},history:function(){return!(!window.history||!window.history.pushState)}},c={get:function(e){if(window.localStorage){var t=window.localStorage[e];return"string"==typeof t?JSON.parse(t):void 0}},set:function(e,t){window.localStorage&&(window.localStorage[e]=JSON.stringify(t))}};const d=new Map;t.A={bool:function(e){return"string"==typeof e&&(e=e.trim(e).toLowerCase()),-1===["false",!1,"0",0,"",void 0,null].indexOf(e)},escapeHTML:function(e){return l()("
").text(e).html()},removeHTML:function(e){return e.replace(/<[^>]+>/gi,"")},featureSupport:r,generateId:n,getAuthenticator:function(){var e=l()('input[name="_authenticator"]');return 0===e.length?(e=l()('a[href*="_authenticator"]')).length>0?e.attr("href").split("_authenticator=")[1]:"":e.val()},getWindow:function(){var e=window;return e.parent!==window&&(e=e.parent),e},Loading:o,loading:new o,parseBodyTag:function(e){return l()(/]*>[^]*<\/body>/im.exec(e)[0].replace("","
")).eq(0).html()},QueryHelper:function(e){var t=this;return t.options=l().extend({},{pattern:null,vocabularyUrl:null,searchParam:"SearchableText",pathOperator:"plone.app.querystring.operation.string.path",attributes:["UID","Title","Description","getURL","portal_type"],batchSize:10,baseCriteria:[],sort_on:"is_folderish",sort_order:"reverse",pathDepth:1},e),t.pattern=t.options.pattern,void 0!==t.pattern&&null!==t.pattern||(t.pattern={browsing:!1,basePath:"/"}),t.options.url&&!t.options.vocabularyUrl?t.options.vocabularyUrl=t.options.url:t.pattern.vocabularyUrl&&(t.options.vocabularyUrl=t.pattern.vocabularyUrl),t.valid=Boolean(t.options.vocabularyUrl),t.getBatch=function(e){return{page:e||1,size:t.options.batchSize}},t.getCurrentPath=function(){var e,s=t.pattern;"function"==typeof(e=t.currentPath?t.currentPath:s.currentPath)&&(e=e());var a=e;return a||(a=s.basePath?s.basePath:s.options.basePath?s.options.basePath:"/"),a},t.getCriterias=function(e,s){void 0===s&&(s={});var a=[];return(s=l().extend({},{useBaseCriteria:!0,additionalCriterias:[]},s)).useBaseCriteria&&(a=t.options.baseCriteria.slice(0)),e&&(e+="*",a.push({i:t.options.searchParam,o:"plone.app.querystring.operation.string.contains",v:e})),s.searchPath?a.push({i:"path",o:t.options.pathOperator,v:s.searchPath+"::"+t.options.pathDepth}):t.pattern.browsing&&a.push({i:"path",o:t.options.pathOperator,v:t.getCurrentPath()+"::"+t.options.pathDepth}),a=a.concat(s.additionalCriterias)},t.getQueryData=function(e,s){var a={query:JSON.stringify({criteria:t.getCriterias(e),sort_on:t.options.sort_on,sort_order:t.options.sort_order}),attributes:JSON.stringify(t.options.attributes)};return s&&(a.batch=JSON.stringify(t.getBatch(s))),a},t.getUrl=function(){var e=t.options.vocabularyUrl;return-1===e.indexOf("?")?e+="?":e+="&",e+l().param(t.getQueryData())},t.selectAjax=function(){return{url:t.options.vocabularyUrl,dataType:"JSON",quietMillis:100,data:function(e,s){return t.getQueryData(e,s)},results:function(e,t){var s=10*ts.abort()),5e3);const l=await fetch(`${t}/${e}`,{signal:s.signal});a=await l.text()}catch(s){i.warn(`Loading icon "${e}" from URL ${t} failed.`),console.warn(s)}}if(!a){e=t;try{s.e(86550).then(s.bind(s,86550));const t=await s.e(10598).then(s.t.bind(s,10598,19)),l=t[e]?.split?.("/");l[0].includes("bootstrap-icons")&&(a=await s(59145)(`./${l[1]}`),a=a?.default)}catch(e){i.warn(`Loading icon "${t}" failed from fallback.`),console.warn(e)}}return a}()),i.debug(`Loading icon "${t}"`)),await d.get(a)},setId:function(e,t){void 0===t&&(t="id");var s=e.attr("id");return s=void 0===s?n(t):s.replace(/\./g,"-"),e.attr("id",s),s},storage:c}},90416:function(e,t,s){"use strict";var a=s(35686),l=s.n(a);s(71553).A.extend({name:"autotoc",trigger:".pat-autotoc",parser:"mockup",defaults:{section:"section",levels:"h1,h2,h3",IDPrefix:"autotoc-item-",classTOCName:"autotoc-nav",classSectionName:"autotoc-section",classLevelPrefixName:"autotoc-level-",classActiveName:"active",scrollDuration:"slow",scrollEasing:"swing"},init:function(){s.e(36906).then(s.bind(s,14525));var e=this;e.$toc=l()("