diff --git a/dist/mockup/bundle.min.js b/dist/mockup/bundle.min.js index 978b38ce4..1218c0746 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+"*"),R=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&&(R.test(e)||F.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,F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function R(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(R(this,e||[],!1))},not:function(e){return this.pushStack(R(this,e||[],!0))},is:function(e){return!!R(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)),F.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 Re(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||Re(this,e).appendChild(e)}))},prepend:function(){return Ve(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(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,Ft=/#.*$/,Rt=/([?&])_=[^&]*/,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(Ft,""),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(Rt,"$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\n\n{#if $showContentBrowser}\n
\n scrollToRight()}\n use:clickOutside\n on:click_outside={cancelSelection}\n >\n
\n
\n \n
\n {#if $config.uploadEnabled}\n upload files to {$currentPath}\n {/if}\n cancelSelection()}\n >\n
\n {#await $contentItems}\n

...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 i > 0 && level.selectable}\n selectItem(level)}\n >\n select {level.path}\n \n {/if}\n
\n {#if !level.gridView}\n \n {:else}\n \n {/if}\n
\n
\n {#each (level.results || []) as item, n}\n changePath(item)}\n on:click={() => changePath(item)}\n >\n {#if level.gridView}\n
\n {#if item.getIcon}\n {item.Title}\n {:else}\n \n {/if}\n {item.Title}\n
\n {:else}\n
\n \n {item.Title}\n
\n {/if}\n {#if item.is_folderish}\n \n {/if}\n
\n {/each}\n {#if level.total == 0}\n
\n

no items found.

\n
\n {/if}\n
\n {/each}\n {#if previewItem.UID}\n
\n
\n selectItem(previewItem)}\n >select \"{previewItem.path.split(\"/\").pop()}\"\n
\n
\n {#if previewItem.portal_type === \"Image\"}\n
\n \n
\n {/if}\n

{previewItem.Title}

\n

{previewItem.Description}

\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","import { writable, get } from \"svelte/store\";\n\nexport default function (config, pathCache) {\n const store = writable([]);\n\n store.request = async ({\n method = \"GET\",\n path = null,\n uids = null,\n params = null,\n searchTerm = null,\n levelInfoPath = null,\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 (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 let url = `${config.vocabularyUrl}&query=${JSON.stringify(\n vocabQuery\n )}&attributes=${JSON.stringify(config.attributes)}&batch=${JSON.stringify({\n page: 1,\n size: 100,\n })}`;\n\n let headers = new Headers();\n headers.set(\"Accept\", \"application/json\");\n const body = params ? JSON.stringify(params) : undefined;\n\n const response = await fetch(url, { method, body, headers });\n const json = await response.json();\n\n if (response.ok) {\n if(config.selectableTypes.length) {\n // we iter through response and filter out non-selectable\n // types but keeping 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(config.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\n store.get = async (path, searchTerm, updateCache) => {\n let parts = path.split(\"/\") || [];\n const depth = parts.length >= config.maxDepth ? config.maxDepth : parts.length;\n let paths = [];\n\n let partsToShow = parts.slice(parts.length - depth, parts.length);\n let partsToHide = parts.slice(0, parts.length - depth);\n const pathPrefix = partsToHide.join(\"/\");\n while (partsToShow.length > 0) {\n let sub_path = partsToShow.join(\"/\");\n if (!sub_path.startsWith(\"/\")) sub_path = \"/\" + sub_path;\n sub_path = pathPrefix + sub_path;\n const poped = partsToShow.pop();\n if (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 skipCache = isFirstPath && (searchTerm || updateCache);\n let level = {};\n const c = get(pathCache);\n if (Object.keys(c).indexOf(p) === -1 || skipCache) {\n let query = {\n method: \"GET\"\n };\n let queryPath = config.basePath;\n if (queryPath === \"/\") {\n queryPath = \"\";\n }\n queryPath = queryPath + p;\n query[\"path\"] = queryPath;\n if(isFirstPath && searchTerm){\n query[\"searchTerm\"] = \"*\" + searchTerm + \"*\";\n }\n if(config.selectableTypes.length) {\n query[\"selectableTypes\"] = config.selectableTypes;\n }\n level = await store.request(query);\n\n // do not update cache when searching\n if(!searchTerm) {\n const levelInfo = await store.request({\n \"levelInfoPath\": queryPath,\n });\n if (levelInfo.total) {\n level.UID = levelInfo.results[0].UID;\n level.Title = levelInfo.results[0].Title;\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 level.path = p;\n pathCache.update((n) => {\n n[p] = level;\n return n;\n });\n }\n } else {\n level = c[p];\n }\n levels = [level, ...levels];\n }\n store.set(levels);\n };\n\n return store;\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 \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 = function top_head_insert(el) {\n // Insert element at the top of \n // Used for injecting CSS via webpack before any other CSS\n // Note:\n // Keep code compatible with IE11 as long as we support it.\n var first_child = document.head.querySelectorAll(\"*\")[0];\n if (first_child) {\n document.head.insertBefore(el, first_child);\n } else {\n document.head.append(el);\n }\n};\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

loading selected items

\n {/if}\n
\n 0 &&\n ($selectedItems.length || 0) >= $config.maximumSelectionSize}\n on:click|preventDefault={() => ($showContentBrowser = true)}\n >{#if $config.maximumSelectionSize == 1}choose{:else}add{/if}\n\n\n\n","\nexport async function request({\n method = \"GET\",\n vocabularyUrl = \"\",\n attributes = {},\n path = null,\n uids = null,\n params = null,\n}) {\n let vocabQuery;\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 (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 let url = `${vocabularyUrl}&query=${JSON.stringify(\n vocabQuery\n )}&attributes=${JSON.stringify(attributes)}&batch=${JSON.stringify({\n page: 1,\n size: 100,\n })}`;\n\n let headers = new Headers();\n // headers.set(\"Content-type\", \"application/json\");\n headers.set(\"Accept\", \"application/json\");\n const body = params ? JSON.stringify(params) : undefined;\n\n const response = await fetch(url, { method, body, headers });\n const json = await response.json();\n\n if (response.ok) {\n return json;\n } else {\n return json.errors;\n }\n}\n","\n\n\n\n"],"names":["___CSS_LOADER_EXPORT___","push","module","id","clickOutside","node","handleClick","event","contains","target","dispatchEvent","CustomEvent","document","addEventListener","destroy","removeEventListener","async","resolveIcon","_ref","iconName","iconCode","utils","getIcon","outerHTML","currentPath","writable","options","styleTagTransform","setAttributes","insert","el","first_child","head","querySelectorAll","insertBefore","append","domAPI","insertStyleElement","locals","uploadEnabled","x","opacity","message","path","UID","Title","portal_type","toLowerCase","replace","getURL","gridView","is_folderish","selectable","results","total","duration","split","pop","Description","scrollX","container","config","pathCache","showContentBrowser","selectedItems","selectedUids","contentItems","store","request","method","uids","params","searchTerm","levelInfoPath","vocabQuery","criteria","i","o","v","sort_on","sort_order","url","vocabularyUrl","JSON","stringify","attributes","page","size","headers","Headers","set","body","undefined","response","fetch","json","ok","selectableTypes","length","filtered_response","it","indexOf","errors","get","updateCache","parts","depth","maxDepth","paths","partsToShow","slice","pathPrefix","join","sub_path","startsWith","levels","pathCounter","p","isFirstPath","skipCache","level","c","Object","keys","query","queryPath","basePath","levelInfo","update","n","$config","showUpload","previewItem","currentLevelData","vw","Math","max","documentElement","clientWidth","window","innerWidth","changePath","item","pathParts","folderPath","scrollToRight","selectItem","console","log","fieldId","$selectedItems","map","$showContentBrowser","$selectedUids","cancelSelection","scrollContainer","querySelector","scrollWidth","$currentPath","timeout","uploadEl","classList","add","baseUrl","base_url","relativePath","allowPathSelection","hiddenInputContainer","success","fileUpload","obj","timeoutId","clearTimeout","setTimeout","this","value","maximumSelectionSize","ref","initializing","selectedItemsNode","getElementById","unselectItem","splice","initializeSorting","previousSibling","draggable","animation","onUpdate","e","sortedUuids","children","dataset","setNodeValue","node_val","separator","initialValue","selection","selectedItemsUids","selectedItemsFromUids","getSelectedItemsUids","initializeSelectedItemsStore","items","forEach","selectedUidsFromSelectedItems","name","detail","content","bubbles","event_dispatch","contextPath","upload","recentlyUsed","recentlyUsedKey","setContext","setConfig","setPathCache","selItems","setSelectedItems","setShowContentBrowser","selUids","setSelectedUids"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/mockup/chunks/22483.3763d767e156aa45d789.min.js b/dist/mockup/chunks/22483.3763d767e156aa45d789.min.js new file mode 100644 index 000000000..144e6a612 --- /dev/null +++ b/dist/mockup/chunks/22483.3763d767e156aa45d789.min.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_plone_mockup=self.webpackChunk_plone_mockup||[]).push([[22483],{44278:function(A,g,I){var C=I(71354),e=I.n(C),l=I(76314),t=I.n(l)()(e());t.push([A.id,".content-browser-position-wrapper.svelte-1asobia.svelte-1asobia.svelte-1asobia{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)}.content-browser.svelte-1asobia.svelte-1asobia.svelte-1asobia{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-1asobia.svelte-1asobia.svelte-1asobia{background-color:var(--bs-primary);padding:.325rem .75rem;color:var(--bs-light);width:100%;display:flex;justify-content:end}.toolBar.svelte-1asobia>.upload.svelte-1asobia.svelte-1asobia{margin:0 1rem 0 2rem}.toolBar.svelte-1asobia svg{vertical-align:-0.125em}.levelColumns.svelte-1asobia.svelte-1asobia.svelte-1asobia{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)}.levelColumn.svelte-1asobia.svelte-1asobia.svelte-1asobia{min-width:320px;overflow-x:auto;border-right:var(--bs-border-style) var(--bs-border-width) var(--bs-border-color)}.levelToolbar.svelte-1asobia.svelte-1asobia.svelte-1asobia{width:100%;height:2.8rem;display:flex;justify-content:space-between;padding:.375rem;border-bottom:var(--bs-border-style) var(--bs-border-width) var(--bs-border-color)}.levelToolbar.svelte-1asobia>.levelActions.svelte-1asobia.svelte-1asobia{margin-left:auto}.contentItem.svelte-1asobia.svelte-1asobia.svelte-1asobia{display:flex;align-items:center;justify-content:space-between;font-size:90%;min-height:2rem;padding-right:.375rem}.contentItem.even.svelte-1asobia.svelte-1asobia.svelte-1asobia{background-color:var(--bs-secondary-bg)}.contentItem.inPath.svelte-1asobia.svelte-1asobia.svelte-1asobia{background-color:rgba(var(--bs-primary-rgb), 0.15)}.contentItem.currentItem.svelte-1asobia.svelte-1asobia.svelte-1asobia{background-color:var(--bs-primary);color:var(--bs-body-bg)}.contentItem.svelte-1asobia>.svelte-1asobia.svelte-1asobia{padding:.5rem;white-space:nowrap;max-width:100%}.contentItem.svelte-1asobia .grid-preview.svelte-1asobia>img.svelte-1asobia{width:95px;height:95px;object-fit:cover;float:left;margin-right:1rem}.preview.svelte-1asobia.svelte-1asobia.svelte-1asobia{min-width:320px;max-width:500px;min-height:300px;display:flex;flex-direction:column;align-items:center}.preview.svelte-1asobia .info.svelte-1asobia.svelte-1asobia{padding:.5rem;width:100%}.preview.svelte-1asobia h4.svelte-1asobia.svelte-1asobia{font-size:1.2 rem}.preview.svelte-1asobia img.svelte-1asobia.svelte-1asobia{max-width:100%;max-width:100%;margin-bottom:.5rem}.upload-wrapper.svelte-1asobia.svelte-1asobia.svelte-1asobia{padding:1rem;width:590px;overflow-x:auto}","",{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,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,mBAAA,CAAA,8DAAA,oBAAA,CAAA,4BAAA,uBAAA,CAAA,2DAAA,YAAA,CAAA,gBAAA,CAAA,UAAA,CAAA,eAAA,CAAA,WAAA,CAAA,gFAAA,CAAA,0DAAA,eAAA,CAAA,eAAA,CAAA,iFAAA,CACmC,2DAAA,UAAA,CAAA,aAAA,CAAA,YAAA,CAAA,6BAAA,CAAA,eAAA,CAAA,kFAAA,CACA,yEAAA,gBAAA,CAAA,0DAAA,YAAA,CAAA,kBAAA,CAAA,6BAAA,CAAA,aAAA,CAAA,eAAA,CAAA,qBAAA,CAAA,+DAAA,uCAAA,CAAA,iEAAA,kDAAA,CAAA,sEAAA,kCAAA,CAAA,uBAAA,CAAA,2DAAA,aAAA,CAAA,kBAAA,CAAA,cAAA,CAAA,4EAAA,UAAA,CAAA,WAAA,CAAA,gBAAA,CAAA,UAAA,CAAA,iBAAA,CAAA,sDAAA,eAAA,CAAA,eAAA,CAAA,gBAAA,CAAA,YAAA,CAAA,qBAAA,CAAA,kBAAA,CAAA,4DAAA,aAAA,CAAA,UAAA,CAAA,yDAAA,iBAAA,CAAA,0DAAA,cAAA,CAAA,cAAA,CAAA,mBAAA,CAAA,6DAAA,YAAA,CAAA,WAAA,CAAA,eAAA",sourcesContent:[".content-browser-position-wrapper.svelte-1asobia.svelte-1asobia.svelte-1asobia{position:fixed;top:0;right:0;display:flex;justify-content:end;z-index:1500;width:100%;height:100vh;background-color:rgba(0, 0, 0, 0.25)}.content-browser.svelte-1asobia.svelte-1asobia.svelte-1asobia{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-1asobia.svelte-1asobia.svelte-1asobia{background-color:var(--bs-primary);padding:0.325rem 0.75rem;color:var(--bs-light);width:100%;display:flex;justify-content:end}.toolBar.svelte-1asobia>.upload.svelte-1asobia.svelte-1asobia{margin:0 1rem 0 2rem}.toolBar.svelte-1asobia svg{vertical-align:-0.125em}.levelColumns.svelte-1asobia.svelte-1asobia.svelte-1asobia{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)}.levelColumn.svelte-1asobia.svelte-1asobia.svelte-1asobia{min-width:320px;overflow-x:auto;border-right:var(--bs-border-style) var(--bs-border-width)\n var(--bs-border-color)}.levelToolbar.svelte-1asobia.svelte-1asobia.svelte-1asobia{width:100%;height:2.8rem;display:flex;justify-content:space-between;padding:0.375rem;border-bottom:var(--bs-border-style) var(--bs-border-width)\n var(--bs-border-color)}.levelToolbar.svelte-1asobia>.levelActions.svelte-1asobia.svelte-1asobia{margin-left:auto}.contentItem.svelte-1asobia.svelte-1asobia.svelte-1asobia{display:flex;align-items:center;justify-content:space-between;font-size:90%;min-height:2rem;padding-right:0.375rem}.contentItem.even.svelte-1asobia.svelte-1asobia.svelte-1asobia{background-color:var(--bs-secondary-bg)}.contentItem.inPath.svelte-1asobia.svelte-1asobia.svelte-1asobia{background-color:rgba(var(--bs-primary-rgb), 0.15)}.contentItem.currentItem.svelte-1asobia.svelte-1asobia.svelte-1asobia{background-color:var(--bs-primary);color:var(--bs-body-bg)}.contentItem.svelte-1asobia>.svelte-1asobia.svelte-1asobia{padding:0.5rem;white-space:nowrap;max-width:100%}.contentItem.svelte-1asobia .grid-preview.svelte-1asobia>img.svelte-1asobia{width:95px;height:95px;object-fit:cover;float:left;margin-right:1rem}.preview.svelte-1asobia.svelte-1asobia.svelte-1asobia{min-width:320px;max-width:500px;min-height:300px;display:flex;flex-direction:column;align-items:center}.preview.svelte-1asobia .info.svelte-1asobia.svelte-1asobia{padding:0.5rem;width:100%}.preview.svelte-1asobia h4.svelte-1asobia.svelte-1asobia{font-size:1.2 rem}.preview.svelte-1asobia img.svelte-1asobia.svelte-1asobia{max-width:100%;max-width:100%;margin-bottom:0.5rem}.upload-wrapper.svelte-1asobia.svelte-1asobia.svelte-1asobia{padding:1rem;width:590px;overflow-x:auto}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29udGVudEJyb3dzZXIuc3ZlbHRlIiwic291cmNlcyI6WyJDb250ZW50QnJvd3Nlci5zdmVsdGUiXSwic291cmNlc0NvbnRlbnQiOlsiPHNjcmlwdD5cbiAgICBpbXBvcnQgdXRpbHMgZnJvbSBcIkBwYXR0ZXJuc2xpYi9wYXR0ZXJuc2xpYi9zcmMvY29yZS91dGl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c3QgcGF0VXBsb2FkID0gbmV3IFVwbG9hZCh1cGxvYWRFbCwge1xuICAgICAgICAgICAgYmFzZVVybDogY29uZmlnLmJhc2VfdXJsLFxuICAgICAgICAgICAgY3VycmVudFBhdGg6ICRjdXJyZW50UGF0aCxcbiAgICAgICAgICAgIHJlbGF0aXZlUGF0aDogXCJAQGZpbGVVcGxvYWRcIixcbiAgICAgICAgICAgIGFsbG93UGF0aFNlbGVjdGlvbjogZmFsc2UsXG4gICAgICAgICAgICBoaWRkZW5JbnB1dENvbnRhaW5lcjogXCIudXBsb2FkLXdyYXBwZXJcIixcbiAgICAgICAgICAgIHN1Y2Nlc3M6IChmaWxlVXBsb2FkLCBvYmopID0+IHtcbiAgICAgICAgICAgICAgICBjb250ZW50SXRlbXMuZ2V0KCRjdXJyZW50UGF0aCwgbnVsbCwgdHJ1ZSk7XG4gICAgICAgICAgICB9LFxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBmdW5jdGlvbiBjaGFuZ2VQYXRoKGl0ZW0pIHtcbiAgICAgICAgc2hvd1VwbG9hZCA9IGZhbHNlO1xuICAgICAgICBjdXJyZW50TGV2ZWxEYXRhID0ge307XG4gICAgICAgIGlmIChpdGVtID09PSBcIi9cIikge1xuICAgICAgICAgICAgY3VycmVudFBhdGguc2V0KGl0ZW0pO1xuICAgICAgICAgICAgcHJldmlld0l0ZW0gPSB7IFVJRDogXCJcIiB9O1xuICAgICAgICB9IGVsc2UgaWYgKGl0ZW0uaXNfZm9sZGVyaXNoKSB7XG4gICAgICAgICAgICBjdXJyZW50UGF0aC5zZXQoaXRlbS5nZXRQYXRoKTtcbiAgICAgICAgICAgIHByZXZpZXdJdGVtID0geyBVSUQ6IFwiXCIgfTtcbiAgICAgICAgICAgIGN1cnJlbnRMZXZlbERhdGEgPSB7XG4gICAgICAgICAgICAgICAgVUlEOiBpdGVtLlVJRCxcbiAgICAgICAgICAgICAgICBUaXRsZTogaXRlbS5UaXRsZSxcbiAgICAgICAgICAgIH07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AgICAgICAgICA+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgeyNpZiAkY29uZmlnLnVwbG9hZEVuYWJsZWR9XG4gICAgICAgICAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJ1cGxvYWQgYnRuIGJ0bi1zZWNvbmRhcnkgYnRuLXNtXCJcbiAgICAgICAgICAgICAgICAgICAgdGFiaW5kZXg9XCIwXCJcbiAgICAgICAgICAgICAgICAgICAgb246a2V5ZG93bj17dXBsb2FkfVxuICAgICAgICAgICAgICAgICAgICBvbjpjbGljaz17dXBsb2FkfVxuICAgICAgICAgICAgICAgICAgICA+PHN2ZyB1c2U6cmVzb2x2ZUljb249e3sgaWNvbk5hbWU6IFwidXBsb2FkXCIgfX0gLz4gdXBsb2FkIGZpbGVzIHRvIHskY3VycmVudFBhdGh9PC9idXR0b25cbiAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgey9pZn1cbiAgICAgICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgICAgIGNsYXNzPVwiYnRuIGJ0bi1saW5rIHRleHQtd2hpdGVcIlxuICAgICAgICAgICAgICAgICAgICB0YWJpbmRleD1cIjBcIlxuICAgICAgICAgICAgICAgICAgICBvbjpjbGlja3xwcmV2ZW50RGVmYXVsdD17KCkgPT4gY2FuY2VsU2VsZWN0aW9uKCl9XG4gICAgICAgICAgICAgICAgICAgID48c3ZnIHVzZTpyZXNvbHZlSWNvbj17eyBpY29uTmFtZTogXCJ4LWNpcmNsZVwiIH19IC8+PC9idXR0b25cbiAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIHsjYXdhaXQgJGNvbnRlbnRJdGVtc31cbiAgICAgICAgICAgICAgICA8cD4uLi5sb2FkaW5nIGNvbnRlbnQgaXRlbXM8L3A+XG4gICAgICAgICAgICB7OnRoZW4gbGV2ZWxzfVxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJsZXZlbENvbHVtbnNcIj5cbiAgICAgICAgICAgICAgICAgICAgeyNlYWNoIGxldmVscyBhcyBsZXZlbCwgaSAobGV2ZWwucGF0aCl9XG4gICAgICAgICAgICAgICAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJsZXZlbENvbHVtbntpICUgMiA9PSAwID8gJyBvZGQnIDogJyBldmVuJ31cIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGluOmZseXxsb2NhbD17eyBkdXJhdGlvbjogMzAwIH19XG4gICAgICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImxldmVsVG9vbGJhclwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7I2lmIGkgPT0gMH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzcz1cImJ0biBidG4tbGluayBidG4tc21cIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRhYmluZGV4PVwiMFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb246a2V5ZG93bj17KCkgPT4gY2hhbmdlUGF0aChcIi9cIil9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb246Y2xpY2s9eygpID0+IGNoYW5nZVBhdGgoXCIvXCIpfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID48c3ZnIHVzZTpyZXNvbHZlSWNvbj17eyBpY29uTmFtZTogXCJob3VzZVwiIH19IC8+PC9idXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgey9pZn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeyNpZiBpID4gMCAmJiBsZXZlbC5zZWxlY3RhYmxlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzPVwiYnRuIGJ0bi1wcmltYXJ5IGJ0bi1zbVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGlzYWJsZWQ9eyFpc1NlbGVjdGFibGUobGV2ZWwpfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uOmNsaWNrfHByZXZlbnREZWZhdWx0PXsoKSA9PiBzZWxlY3RJdGVtKGxldmVsKX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxlY3Qge2xldmVsLnBhdGh9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2J1dHRvbj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgey9pZn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImxldmVsQWN0aW9uc1wiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeyNpZiAhbGV2ZWwuZ3JpZFZpZXd9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YnV0dG9uIGNsYXNzPVwiYnRuIGJ0bi1saW5rIGJ0bi1zbSBncmlkLXZpZXdcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uOmNsaWNrPXsoKSA9PiAobGV2ZWwuZ3JpZFZpZXcgPSB0cnVlKX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3ZnIHVzZTpyZXNvbHZlSWNvbj17eyBpY29uTmFtZTogXCJncmlkXCIgfX0gLz5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvYnV0dG9uPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgezplbHNlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGJ1dHRvbiBjbGFzcz1cImJ0biBidG4tbGluayBidG4tc20gZ3JpZC12aWV3XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbjpjbGljaz17KCkgPT4gKGxldmVsLmdyaWRWaWV3ID0gZmFsc2UpfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzdmcgdXNlOnJlc29sdmVJY29uPXt7IGljb25OYW1lOiBcImxpc3RcIiB9fSAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9idXR0b24+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7L2lmfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7I2VhY2ggKGxldmVsLml0ZW1zIHx8IFtdKSBhcyBpdGVtLCBufVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzcz1cImNvbnRlbnRJdGVte24gJSAyID09IDBcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA/ICcgb2RkJ1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogJyBldmVuJ317aXRlbUluUGF0aChpdGVtKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID8gJyBpblBhdGgnXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOiAnJ317cHJldmlld0l0ZW0uVUlEID09PSBpdGVtLlVJRFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID8gJyBjdXJyZW50SXRlbSdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA6ICcnfXshaXNTZWxlY3RhYmxlKGl0ZW0pID8gJyB0ZXh0LW11dGVkJyA6ICcnfVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByb2xlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRhYmluZGV4PVwiMFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbjprZXlkb3duPXsoKSA9PiBjaGFuZ2VQYXRoKGl0ZW0pfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb246Y2xpY2s9eygpID0+IGNoYW5nZVBhdGgoaXRlbSl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsjaWYgbGV2ZWwuZ3JpZFZpZXd9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiZ3JpZC1wcmV2aWV3XCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeyNpZiBpdGVtLmdldEljb259XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGltZyBzcmM9e2Ake2l0ZW0uZ2V0VVJMfS9AQGltYWdlcy9pbWFnZS90aHVtYmB9IGFsdD17aXRlbS5UaXRsZX0+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgezplbHNlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzdmdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdXNlOnJlc29sdmVJY29uPXt7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpY29uTmFtZTogYGNvbnRlbnR0eXBlLyR7aXRlbS5wb3J0YWxfdHlwZS50b0xvd2VyQ2FzZSgpLnJlcGxhY2UoL1xcLnwgL2csIFwiLVwiKX1gLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgey9pZn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7aXRlbS5UaXRsZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgezplbHNlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiB0aXRsZT17aXRlbS5wb3J0YWxfdHlwZX0+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHN2Z1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1c2U6cmVzb2x2ZUljb249e3tcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGljb25OYW1lOiBgY29udGVudHR5cGUvJHtpdGVtLnBvcnRhbF90eXBlLnRvTG93ZXJDYXNlKCkucmVwbGFjZSgvXFwufCAvZywgXCItXCIpfWAsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH19XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7aXRlbS5UaXRsZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgey9pZn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsjaWYgaXRlbS5pc19mb2xkZXJpc2h9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHN2Z1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1c2U6cmVzb2x2ZUljb249e3tcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGljb25OYW1lOiBcImFycm93LXJpZ2h0LWNpcmNsZVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7L2lmfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7L2VhY2h9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgeyNpZiBsZXZlbC5pdGVtc190b3RhbCA9PSAwfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjb250ZW50SXRlbVwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cD5ubyBpdGVtcyBmb3VuZC48L3A+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgey9pZn1cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICB7L2VhY2h9XG4gICAgICAgICAgICAgICAgICAgIHsjaWYgcHJldmlld0l0ZW0uVUlEfVxuICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cInByZXZpZXdcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwibGV2ZWxUb29sYmFyXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzPVwiYnRuIGJ0bi1wcmltYXJ5IGJ0bi1zbVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkaXNhYmxlZD17IWlzU2VsZWN0YWJsZShwcmV2aWV3SXRlbSl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbjpjbGlja3xwcmV2ZW50RGVmYXVsdD17KCkgPT4gc2VsZWN0SXRlbShwcmV2aWV3SXRlbSl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA+c2VsZWN0IFwie3ByZXZpZXdJdGVtLmdldFBhdGguc3BsaXQoXCIvXCIpLnBvcCgpfVwiPC9idXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJpbmZvXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsjaWYgcHJldmlld0l0ZW0ucG9ydGFsX3R5cGUgPT09IFwiSW1hZ2VcIn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXY+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGltZ1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzcmM9XCJ7cHJldmlld0l0ZW0uZ2V0VVJMfS9AQGltYWdlcy9pbWFnZS9wcmV2aWV3XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWx0PXtwcmV2aWV3SXRlbS5UaXRsZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsvaWZ9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoND57cHJldmlld0l0ZW0uVGl0bGV9PC9oND5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHA+e3ByZXZpZXdJdGVtLkRlc2NyaXB0aW9ufTwvcD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICB7L2lmfVxuICAgICAgICAgICAgICAgICAgICB7I2lmIHNob3dVcGxvYWR9XG4gICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwidXBsb2FkLXdyYXBwZXJcIj48L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgey9pZn1cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIHs6Y2F0Y2ggZXJyb3J9XG4gICAgICAgICAgICAgICAgPHAgc3R5bGU9XCJjb2xvcjogcmVkXCI+e2Vycm9yLm1lc3NhZ2V9PC9wPlxuICAgICAgICAgICAgey9hd2FpdH1cbiAgICAgICAgPC9uYXY+XG4gICAgPC9kaXY+XG57L2lmfVxuXG48c3R5bGU+XG4gICAgLmNvbnRlbnQtYnJvd3Nlci1wb3NpdGlvbi13cmFwcGVyIHtcbiAgICAgICAgcG9zaXRpb246IGZpeGVkO1xuICAgICAgICB0b3A6IDA7XG4gICAgICAgIHJpZ2h0OiAwO1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBqdXN0aWZ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UFJLFlBQVksQ0FBQyxDQUNuQyxLQUFLLENBQUUsSUFBSSxZQUFZLENBQzNCLENBQ0EsMkJBQVksQ0FBRyw4QkFBRSxDQUNiLE9BQU8sQ0FBRSxNQUFNLENBQ2YsV0FBVyxDQUFFLE1BQU0sQ0FDbkIsU0FBUyxDQUFFLElBQ2YsQ0FFQSwyQkFBWSxDQUFDLDRCQUFhLENBQUcsa0JBQUksQ0FDN0IsTUFBTSxJQUFJLENBQ1YsT0FBTyxJQUFJLENBQ1gsV0FBVyxLQUFLLENBQ2hCLEtBQUssQ0FBRSxJQUFJLENBQ1gsWUFBWSxDQUFFLElBQ2xCLENBQ0EscURBQVMsQ0FDTCxTQUFTLENBQUUsS0FBSyxDQUNoQixTQUFTLENBQUUsS0FBSyxDQUNoQixVQUFVLENBQUUsS0FBSyxDQUNqQixPQUFPLENBQUUsSUFBSSxDQUNiLGNBQWMsQ0FBRSxNQUFNLENBQ3RCLFdBQVcsQ0FBRSxNQUNqQixDQUNBLHVCQUFRLENBQUMsbUNBQU0sQ0FDWCxPQUFPLENBQUUsTUFBTSxDQUNmLEtBQUssQ0FBRSxJQUNYLENBQ0EsdUJBQVEsQ0FBQyxnQ0FBRyxDQUNSLFNBQVMsQ0FBRSxHQUFHLENBQUMsR0FDbkIsQ0FDQSx1QkFBUSxDQUFDLGlDQUFJLENBQ1QsU0FBUyxDQUFFLElBQUksQ0FDZixTQUFTLENBQUUsSUFBSSxDQUNmLGFBQWEsQ0FBRSxNQUNuQixDQUVBLDREQUFnQixDQUNaLE9BQU8sQ0FBRSxJQUFJLENBQ2IsS0FBSyxDQUFFLEtBQUssQ0FDWixVQUFVLENBQUUsSUFDaEIifQ==*/"],sourceRoot:""}]),g.A=t},94441:function(A,g,I){var C=I(71354),e=I.n(C),l=I(76314),t=I.n(l)()(e());t.push([A.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",sourcesContent:[".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:0.5rem 0.5rem 0 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:0.5rem;margin-bottom:0.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:0.5rem;display:block}.content-browser-selected-items.svelte-bljrxf .selected-item button.svelte-bljrxf.svelte-bljrxf{cursor:pointer;padding:0 0.375rem 0.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}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2VsZWN0ZWRJdGVtcy5zdmVsdGUiLCJzb3VyY2VzIjpbIlNlbGVjdGVkSXRlbXMuc3ZlbHRlIl0sInNvdXJjZXNDb250ZW50IjpbIjxzY3JpcHQ+XG4gICAgaW1wb3J0IHsgZ2V0Q29udGV4dCwgb25Nb3VudCB9IGZyb20gXCJzdmVsdGVcIjtcbiAgICBpbXBvcnQgeyBmbGlwIH0gZnJvbSBcInN2ZWx0ZS9hbmltYXRlXCI7XG4gICAgaW1wb3J0IHsgcmVxdWVzdCB9IGZyb20gXCIuL2FwaS5qc1wiO1xuICAgIGltcG9ydCB7IHJlc29sdmVJY29uIH0gZnJvbSBcIi4vcmVzb2x2ZUljb24uanNc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ubWFwKCh4KSA9PiB4LlVJRCkpO1xuICAgIH1cblxuICAgIGZ1bmN0aW9uIGluaXRpYWxpemVTb3J0aW5nKCkge1xuICAgICAgICBpZiAoJGNvbmZpZy5tYXhpbXVtU2VsZWN0aW9uU2l6ZSAhPT0gMSAmJiAkc2VsZWN0ZWRJdGVtcy5sZW5ndGggPiAxKSB7XG4gICAgICAgICAgICBTb3J0YWJsZS5jcmVhdGUoXG4gICAgICAgICAgICAgICAgc2VsZWN0ZWRJdGVtc05vZGUucHJldmlvdXNTaWJsaW5nLnF1ZXJ5U2VsZWN0b3IoXG4gICAgICAgICAgICAgICAgICAgIFwiLmNvbnRlbnQtYnJvd3Nlci1zZWxlY3RlZC1pdGVtc1wiLFxuICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICBkcmFnZ2FibGU6IFwiLnNlbGVjdGVkLWl0ZW1cIixcbiAgICAgICAgICAgICAgICAgICAgYW5pbWF0aW9uOiAyMDAsXG4gICAgICAgICAgICAgICAgICAgIG9uVXBkYXRlOiAoZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHNvcnRlZFV1aWRzID0gW107XG4gICAgICAgICAgICAgICAgICAgICAgICBmb3IgKGNvbnN0IGVsIG9mIGUudGFyZ2V0LmNoaWxkcmVuKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc29ydGVkVXVpZHMucHVzaChlbC5kYXRhc2V0W1widXVpZFwiXSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICBzZXROb2RlVmFsdWUoc29ydGVkVXVpZHMpO1xuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICApO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZnVuY3Rpb24gc2VsZWN0ZWRVaWRzRnJvbVNlbGVjdGVkSXRlbXMoKSB7XG4gICAgICAgIGxld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zLXdyYXBwZXJcIiBiaW5kOnRoaXM9e3JlZn0+XG4gICAgPCEtLSB7bWF4U2VsZWN0aW9uc2l6ZX0gLS0+XG4gICAgPGRpdiBjbGFzcz1cImNvbnRlbnQtYnJvd3Nlci1zZWxlY3RlZC1pdGVtc1wiPlxuICAgICAgICB7I2lmICRzZWxlY3RlZEl0ZW1zfVxuICAgICAgICAgICAgeyNlYWNoICRzZWxlY3RlZEl0ZW1zIGFzIHNlbEl0ZW0sIGkgKHNlbEl0ZW0uVUlEKX1cbiAgICAgICAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICAgICAgICAgIGNsYXNzPVwic2VsZWN0ZWQtaXRlbVwiXG4gICAgICAgICAgICAgICAgICAgIGFuaW1hdGU6ZmxpcD17eyBkdXJhdGlvbjogNTAwIH19XG4gICAgICAgICAgICAgICAgICAgIGRhdGEtdXVpZD17c2VsSXRlbS5VSUR9XG4gICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiaXRlbS1pbmZvXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICA8IS0tIHN2ZWx0ZS1pZ25vcmUgYTExeS1taXNzaW5nLWF0dHJpYnV0ZSAtLT5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzcz1cImJ0biBidG4tbGluayBidG4tc20gbGluay1zZWNvbmRhcnlcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uOmNsaWNrPXsoKSA9PiB1bnNlbGVjdEl0ZW0oaSl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPjxzdmcgdXNlOnJlc29sdmVJY29uPXt7IGljb25OYW1lOiBcIngtY2lyY2xlXCIgfX0gLz48L2J1dHRvblxuICAgICAgICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cIml0ZW0tdGl0bGVcIj57c2VsSXRlbS5UaXRsZX08L3NwYW4+PGJyIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJzbWFsbFwiPntzZWxJdGVtLmdldFBhdGh9PC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICB7I2lmIHNlbEl0ZW0uZ2V0VVJMICYmIChzZWxJdGVtLmdldEljb24gfHwgc2VsSXRlbS5wb3J0YWxfdHlwZSA9PT0gXCJJbWFnZVwiKX08aW1nXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3JjPVwie3NlbEl0ZW0uZ2V0VVJMfS9AQGltYWdlcy9pbWFnZS9taW5pXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbHQ9e3NlbEl0ZW0uVGl0bGV9XG4gICAgICAgICAgICAgICAgICAgICAgICAvPnsvaWZ9XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICB7L2VhY2h9XG4gICAgICAgIHsvaWZ9XG4gICAgICAgIHsjaWYgISRzZWxlY3RlZEl0ZW1zfVxuICAgICAgICAgICAgPHA+bG9hZGluZyBzZWxlY3RlZCBpdGVtczwvcD5cbiAgICAgICAgey9pZn1cbiAgICA8L2Rpdj5cbiAgICA8YnV0dG9uXG4gICAgICAgIGNsYXNzPVwiYnRuIGJ0bi1wcmltYXJ5XCJcbiAgICAgICAgc3R5bGU9XCJib3JkZXItcmFkaXVzOjAgdmFyKC0tYnMtYm9yZGVyLXJhZGl1cykgdmFyKC0tYnMtYm9yZGVyLXJhZGl1cykgMFwiXG4gICAgICAgIGRpc2FibGVkPXskY29uZmlnLm1heGltdW1TZWxlY3Rpb25TaXplID4gMCAmJlxuICAgICAgICAgICAgKCRzZWxlY3RlZEl0ZW1zLmxlbmd0aCB8fCAwKSA+PSAkY29u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WUFBWSxDQUFFLE1BQU0sQ0FDcEIsT0FBTyxDQUFFLEtBQ2IsQ0FDQSw2Q0FBK0IsQ0FBQyxjQUFjLENBQUMsa0NBQU8sQ0FDbEQsTUFBTSxDQUFFLE9BQU8sQ0FDZixPQUFPLENBQUUsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxRQUFRLENBQUMsQ0FDakMsQ0FDQSw2Q0FBK0IsQ0FBQyxjQUFjLENBQUMsc0NBQVcsQ0FDdEQsT0FBTyxDQUFFLElBQUksQ0FDYixXQUFXLENBQUUsS0FDakIsQ0FDQSw2Q0FBK0IsQ0FBQyw0QkFBYyxDQUFHLGlCQUFJLENBQ2pELFVBQVUsQ0FBRSxLQUFLLENBQ2pCLEtBQUssQ0FBRSxJQUFJLENBQ1gsTUFBTSxDQUFFLElBQ1oifQ==*/"],sourceRoot:""}]),g.A=t},22483:function(A,g,I){I.r(g),I.d(g,{default:function(){return BA}});var C=I(43467),e=(I(2531),I(41949)),l=I(8633),t=I(78836),s=I(95669),i=I(54603);async function c(A){let{method:g="GET",path:I=null,uids:C=[],searchTerm:e=null,levelInfoPath:l=null,base_url:t=null,selectableTypes:s=[]}=A,i=new URLSearchParams;if(I?(i.set("path.query",I),i.set("path.depth",1),i.set("sort_on","getObjPositionInParent"),i.set("sort_order","ascending")):l&&(i.set("path.query",l),i.set("path.depth",0)),C.length)for(const A of C)i.append("UID",A);e&&i.set("SearchableText",e),i.set("metadata_fields","_all");const c=`${t}/@search?${i.toString()}`;console.log(c);let b=new Headers;b.set("Accept","application/json");const a=await fetch(c,{method:g,headers:b}),n=await a.json();if(a.ok){if(s.length){const A={items:[],items_total:n.items_total};for(const g of n.items)(-1!=s.indexOf(g.portal_type)||g.is_folderish)&&A.items.push(g);return A}return n}return{items:[],items_total:0,errors:n.errors}}function b(A){const g=g=>{A&&!A.contains(g.target)&&A.dispatchEvent(new CustomEvent("click_outside",A))};return document.addEventListener("click",g,!0),{destroy(){document.removeEventListener("click",g,!0)}}}var a=I(49264);async function n(A,g){let{iconName:I}=g;const C=await async function(A){return await a.A.resolveIcon(A)}(I);return A.outerHTML=C,{destroy(){}}}var o=I(8936);const d=(0,i.T5)("/");(0,i.T5)(!1);var u=I(85072),r=I.n(u),G=I(97825),B=I.n(G),Z=I(55056),m=I.n(Z),x=I(10540),X=I.n(x),Q=I(41113),F=I.n(Q),p=I(44278),V={};V.styleTagTransform=F(),V.setAttributes=m(),V.insert=function(A){var g=document.head.querySelectorAll("*")[0];g?document.head.insertBefore(A,g):document.head.append(A)},V.domAPI=B(),V.insertStyleElement=X();r()(p.A,V),p.A&&p.A.locals&&p.A.locals;function W(A,g,I){const C=A.slice();return C[35]=g[I],C[36]=g,C[37]=I,C}function v(A,g,I){const C=A.slice();return C[38]=g[I],C[40]=I,C}function N(A){let g,I,e,l,t,i,c,a,o,d,u,r,G,B,Z,m,x,X,Q,F,p,V=A[5].uploadEnabled&&U(A),W={ctx:A,current:null,token:null,hasCatch:!0,pending:O,then:R,catch:y,value:34,error:41};return(0,C.vBd)(m=A[0],W),{c(){g=(0,C.ND4)("div"),I=(0,C.ND4)("nav"),e=(0,C.ND4)("div"),l=(0,C.ND4)("div"),t=(0,C.ND4)("input"),i=(0,C.xem)(),c=(0,C.ND4)("label"),a=(0,C.QQy)("svg"),d=(0,C.xem)(),V&&V.c(),u=(0,C.xem)(),r=(0,C.ND4)("button"),G=(0,C.QQy)("svg"),Z=(0,C.xem)(),W.block.c(),(0,C.CFu)(t,"type","text"),(0,C.CFu)(t,"name","filter"),(0,C.CFu)(c,"for","filter"),(0,C.CFu)(l,"class","filter"),(0,C.CFu)(r,"class","btn btn-link text-white"),(0,C.CFu)(r,"tabindex","0"),(0,C.CFu)(e,"class","toolBar navbar svelte-1asobia"),(0,C.CFu)(I,"class","content-browser svelte-1asobia"),(0,C.CFu)(g,"class","content-browser-position-wrapper svelte-1asobia")},m(s,m){(0,C.Yry)(s,g,m),(0,C.BCw)(g,I),(0,C.BCw)(I,e),(0,C.BCw)(e,l),(0,C.BCw)(l,t),(0,C.BCw)(l,i),(0,C.BCw)(l,c),(0,C.BCw)(c,a),(0,C.BCw)(e,d),V&&V.m(e,null),(0,C.BCw)(e,u),(0,C.BCw)(e,r),(0,C.BCw)(r,G),(0,C.BCw)(I,Z),W.block.m(I,W.anchor=null),W.mount=()=>I,W.anchor=null,Q=!0,F||(p=[(0,C.KTR)(t,"input",A[19]),(0,C.hGc)(o=n.call(null,a,{iconName:"search"})),(0,C.hGc)(B=n.call(null,G,{iconName:"x-circle"})),(0,C.KTR)(r,"click",(0,C.xZN)(A[20])),(0,C.KTR)(I,"introend",A[29]),(0,C.hGc)(x=b.call(null,I)),(0,C.KTR)(I,"click_outside",A[15])],F=!0)},p(g,I){(A=g)[5].uploadEnabled?V?V.p(A,I):(V=U(A),V.c(),V.m(e,u)):V&&(V.d(1),V=null),W.ctx=A,1&I[0]&&m!==(m=A[0])&&(0,C.vBd)(m,W)||(0,C._6B)(W,A,I)},i(g){Q||(g&&(0,C.Dti)((()=>{Q&&(X||(X=(0,C.h86)(I,s._J,{x:A[11]/100*94,opacity:1},!0)),X.run(1))})),Q=!0)},o(g){g&&(X||(X=(0,C.h86)(I,s._J,{x:A[11]/100*94,opacity:1},!1)),X.run(0)),Q=!1},d(A){A&&(0,C.YoD)(g),V&&V.d(),W.block.d(),W.token=null,W=null,A&&X&&X.end(),F=!1,(0,C.oOW)(p)}}}function U(A){let g,I,e,l,t,s,i;return{c(){g=(0,C.ND4)("button"),I=(0,C.QQy)("svg"),l=(0,C.Qq7)(" upload files to "),t=(0,C.Qq7)(A[1]),(0,C.CFu)(g,"type","button"),(0,C.CFu)(g,"class","upload btn btn-secondary btn-sm svelte-1asobia"),(0,C.CFu)(g,"tabindex","0")},m(c,b){(0,C.Yry)(c,g,b),(0,C.BCw)(g,I),(0,C.BCw)(g,l),(0,C.BCw)(g,t),s||(i=[(0,C.hGc)(e=n.call(null,I,{iconName:"upload"})),(0,C.KTR)(g,"keydown",A[12]),(0,C.KTR)(g,"click",A[12])],s=!0)},p(A,g){2&g[0]&&(0,C.iQh)(t,A[1])},d(A){A&&(0,C.YoD)(g),s=!1,(0,C.oOW)(i)}}}function y(A){let g,I,e=A[41].message+"";return{c(){g=(0,C.ND4)("p"),I=(0,C.Qq7)(e),(0,C.hgi)(g,"color","red")},m(A,e){(0,C.Yry)(A,g,e),(0,C.BCw)(g,I)},p(A,g){1&g[0]&&e!==(e=A[41].message+"")&&(0,C.iQh)(I,e)},d(A){A&&(0,C.YoD)(g)}}}function R(A){let g,I,e,l=[],t=new Map,s=(0,C.rv_)(A[34]);const i=A=>A[35].path;for(let g=0;gno items found.

',(0,C.CFu)(g,"class","contentItem svelte-1asobia")},m(A,I){(0,C.Yry)(A,g,I)},d(A){A&&(0,C.YoD)(g)}}}function H(A,g){let I,e,l,t,i,c,b,a,n,o=0==g[37]&&Y(g),d=g[37]>0&&g[35].selectable&&D(g);function u(A,g){return A[35].gridView?h:L}let r=u(g),G=r(g),B=(0,C.rv_)(g[35].items||[]),Z=[];for(let A=0;A0&&g[35].selectable?d?d.p(g,s):(d=D(g),d.c(),d.m(e,t)):d&&(d.d(1),d=null),r===(r=u(g))&&G?G.p(g,s):(G.d(1),G=r(g),G&&(G.c(),G.m(i,null))),335881&s[0]){let A;for(B=(0,C.rv_)(g[35].items||[]),A=0;A{n=(0,C.b7f)(I,s._J,{duration:300}),n.start()})))},o:C.lQ1,d(A){A&&(0,C.YoD)(I),o&&o.d(),d&&d.d(),G.d(),(0,C.ppq)(Z,A),m&&m.d()}}}function z(A){let g,I,e,l,t,s,i,c,b,a,n,o,d,u,r,G,B,Z=A[3].getPath.split("/").pop()+"",m=A[3].Title+"",x=A[3].Description+"",X="Image"===A[3].portal_type&&T(A);return{c(){g=(0,C.ND4)("div"),I=(0,C.ND4)("div"),e=(0,C.ND4)("button"),l=(0,C.Qq7)('select "'),t=(0,C.Qq7)(Z),s=(0,C.Qq7)('"'),c=(0,C.xem)(),b=(0,C.ND4)("div"),X&&X.c(),a=(0,C.xem)(),n=(0,C.ND4)("h4"),o=(0,C.Qq7)(m),d=(0,C.xem)(),u=(0,C.ND4)("p"),r=(0,C.Qq7)(x),(0,C.CFu)(e,"class","btn btn-primary btn-sm"),e.disabled=i=!A[16](A[3]),(0,C.CFu)(I,"class","levelToolbar svelte-1asobia"),(0,C.CFu)(n,"class","svelte-1asobia"),(0,C.CFu)(b,"class","info svelte-1asobia"),(0,C.CFu)(g,"class","preview svelte-1asobia")},m(i,Z){(0,C.Yry)(i,g,Z),(0,C.BCw)(g,I),(0,C.BCw)(I,e),(0,C.BCw)(e,l),(0,C.BCw)(e,t),(0,C.BCw)(e,s),(0,C.BCw)(g,c),(0,C.BCw)(g,b),X&&X.m(b,null),(0,C.BCw)(b,a),(0,C.BCw)(b,n),(0,C.BCw)(n,o),(0,C.BCw)(b,d),(0,C.BCw)(b,u),(0,C.BCw)(u,r),G||(B=(0,C.KTR)(e,"click",(0,C.xZN)(A[28])),G=!0)},p(A,g){8&g[0]&&Z!==(Z=A[3].getPath.split("/").pop()+"")&&(0,C.iQh)(t,Z),8&g[0]&&i!==(i=!A[16](A[3]))&&(e.disabled=i),"Image"===A[3].portal_type?X?X.p(A,g):(X=T(A),X.c(),X.m(b,a)):X&&(X.d(1),X=null),8&g[0]&&m!==(m=A[3].Title+"")&&(0,C.iQh)(o,m),8&g[0]&&x!==(x=A[3].Description+"")&&(0,C.iQh)(r,x)},d(A){A&&(0,C.YoD)(g),X&&X.d(),G=!1,B()}}}function T(A){let g,I,e,l;return{c(){g=(0,C.ND4)("div"),I=(0,C.ND4)("img"),(0,C.mq_)(I.src,e=A[3].getURL+"/@@images/image/preview")||(0,C.CFu)(I,"src",e),(0,C.CFu)(I,"alt",l=A[3].Title),(0,C.CFu)(I,"class","svelte-1asobia")},m(A,e){(0,C.Yry)(A,g,e),(0,C.BCw)(g,I)},p(A,g){8&g[0]&&!(0,C.mq_)(I.src,e=A[3].getURL+"/@@images/image/preview")&&(0,C.CFu)(I,"src",e),8&g[0]&&l!==(l=A[3].Title)&&(0,C.CFu)(I,"alt",l)},d(A){A&&(0,C.YoD)(g)}}}function P(A){let g;return{c(){g=(0,C.ND4)("div"),(0,C.CFu)(g,"class","upload-wrapper svelte-1asobia")},m(A,I){(0,C.Yry)(A,g,I)},d(A){A&&(0,C.YoD)(g)}}}function O(A){let g;return{c(){g=(0,C.ND4)("p"),g.textContent="...loading content items"},m(A,I){(0,C.Yry)(A,g,I)},p:C.lQ1,d(A){A&&(0,C.YoD)(g)}}}function M(A){let g,I=A[4]&&N(A);return{c(){I&&I.c(),g=(0,C.Iex)()},m(A,e){I&&I.m(A,e),(0,C.Yry)(A,g,e)},p(A,e){A[4]?I?(I.p(A,e),16&e[0]&&(0,C.c7F)(I,1)):(I=N(A),I.c(),(0,C.c7F)(I,1),I.m(g.parentNode,g)):I&&((0,C.V44)(),(0,C.Tn8)(I,1,1,(()=>{I=null})),(0,C.GYV)())},i(A){(0,C.c7F)(I)},o(A){(0,C.Tn8)(I)},d(A){A&&(0,C.YoD)(g),I&&I.d(A)}}}function K(A,g,I){let s,b,a,n,u,r;(0,C.j0C)(A,d,(A=>I(1,b=A))),t.ih({scrollX:!0,container:".levelColumns",duration:500});const G=(0,e.SD)("config");(0,C.j0C)(A,G,(A=>I(5,r=A)));const B=(0,e.SD)("pathCache"),Z=(0,e.SD)("showContentBrowser");(0,C.j0C)(A,Z,(A=>I(4,n=A)));const m=(0,e.SD)("selectedItems");(0,C.j0C)(A,m,(A=>I(32,u=A)));const x=(0,e.SD)("selectedUids");(0,C.j0C)(A,x,(A=>I(31,a=A)));const X=function(A,g){const I=(0,i.T5)([]);return I.get=async(C,e,l)=>{const t=new URL(A.base_url).pathname;let s=(C=C.replace(new RegExp(`^${t}`),"")).split("/")||[];const b=s.length>=A.maxDepth?A.maxDepth:s.length;let a=[],n=s.slice(s.length-b,s.length);const o=t+s.slice(0,s.length-b).join("/");for(;n.length>0;){let A=n.join("/").replace(/^\//,"");A=o+(""!=n.pop()?`/${A}`:""),-1===a.indexOf(A)&&a.push(A)}let d=[],u=0;for(var r of a){u++;const I=1==u;let C=I&&(e||l),t={};const s=(0,i.Jt)(g);if(-1===Object.keys(s).indexOf(r)||C){let C={base_url:A.base_url,path:r};if(I&&e&&(C.searchTerm="*"+e+"*"),A.selectableTypes.length&&(C.selectableTypes=A.selectableTypes),t=await c(C),!e){const I=await c({base_url:A.base_url,levelInfoPath:r});I.items_total&&(t.UID=I.items[0].UID,t.Title=I.items[0].Title,t.selectable=!A.selectableTypes.length||-1!=A.selectableTypes.indexOf(I.items[0].portal_type)),t.gridView=!1,t.path=r,g.update((A=>(A[r]=t,A)))}}else t=s[r];d=[t,...d]}I.set(d)},I}(r,B);(0,C.j0C)(A,X,(A=>I(0,s=A)));let Q=!1,F={UID:""},p={},V=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0);function W(A){if(I(2,Q=!1),p={},"/"===A)d.set(A),I(3,F={UID:""});else if(A.is_folderish)d.set(A.getPath),I(3,F={UID:""}),p={UID:A.UID,Title:A.Title};else{const g=A.getPath.split("/"),C=g.slice(0,g.length-1).join("/");d.set(C),I(3,F=A)}U()}async function v(A){console.log(`add ${JSON.stringify(A)} to ${r.fieldId}`),m.update((g=>[...g,A])),x.update((()=>u.map((A=>A.UID)))),(0,C.vu6)(Z,n=!1,n),I(3,F={UID:""}),console.log(u),console.log(a)}function N(){(0,C.vu6)(Z,n=!1,n),I(3,F={UID:""})}function U(){const A=document.querySelector(".levelColumns");A&&t.VG({x:A.scrollWidth+100})}(0,e.Rc)((()=>{console.log(`ContentBrowser initialized reactive context config: ${JSON.stringify(r)}`)}));return A.$$.update=()=>{2&A.$$.dirty[0]&&X.get(b,null,!0),1&A.$$.dirty[0]&&U()},[s,b,Q,F,n,r,G,Z,m,x,X,V,async function(){I(3,F={UID:""}),I(2,Q=!0),await l.A.timeout(1);const A=document.querySelector(".upload-wrapper");A.classList.add("pat-upload"),new o.default(A,{baseUrl:G.base_url,currentPath:b,relativePath:"@@fileUpload",allowPathSelection:!1,hiddenInputContainer:".upload-wrapper",success:(A,g)=>{X.get(b,null,!0)}})},W,v,N,function(A){return-1===a.indexOf(A.UID)},U,function(A){return-1!=b.indexOf(A.getPath)},function(){let A;A&&clearTimeout(A),A=setTimeout((()=>{X.get(b,this.value)}),300)},()=>N(),()=>W("/"),()=>W("/"),A=>v(A),(A,g,I)=>(0,C.vu6)(X,g[I].gridView=!0,s),(A,g,I)=>(0,C.vu6)(X,g[I].gridView=!1,s),A=>W(A),A=>W(A),()=>v(F),()=>U()]}class _ extends C.r7T{constructor(A){super(),(0,C.TsN)(this,A,K,M,C.jXN,{},null,[-1,-1])}}var $=_,q=I(81557),AA=I(93536),gA=I.n(AA),IA=I(94441),CA={};CA.styleTagTransform=F(),CA.setAttributes=m(),CA.insert=function(A){var g=document.head.querySelectorAll("*")[0];g?document.head.insertBefore(A,g):document.head.append(A)},CA.domAPI=B(),CA.insertStyleElement=X();r()(IA.A,CA),IA.A&&IA.A.locals&&IA.A.locals;function eA(A,g,I){const C=A.slice();return C[21]=g[I],C[23]=I,C}function lA(A){let g,I=[],e=new Map,l=(0,C.rv_)(A[0]);const t=A=>A[21].UID;for(let g=0;g0&&(A[0].length||0)>=A[2].maximumSelectionSize,(0,C.CFu)(g,"class","content-browser-selected-items-wrapper svelte-bljrxf")},m(s,n){(0,C.Yry)(s,g,n),(0,C.BCw)(g,I),b&&b.m(I,null),(0,C.BCw)(I,e),a&&a.m(I,null),(0,C.BCw)(g,l),(0,C.BCw)(g,t),d.m(t,null),A[12](g),i||(c=(0,C.KTR)(t,"click",(0,C.xZN)(A[11])),i=!0)},p(A,[g]){A[0]?b?b.p(A,g):(b=lA(A),b.c(),b.m(I,e)):b&&(b.d(1),b=null),A[0]?a&&(a.d(1),a=null):a||(a=iA(),a.c(),a.m(I,null)),o!==(o=n(A))&&(d.d(1),d=o(A),d&&(d.c(),d.m(t,null))),5&g&&s!==(s=A[2].maximumSelectionSize>0&&(A[0].length||0)>=A[2].maximumSelectionSize)&&(t.disabled=s)},i:C.lQ1,o:C.lQ1,d(I){I&&(0,C.YoD)(g),b&&b.d(),a&&a.d(),d.d(),A[12](null),i=!1,c()}}}function nA(A,g,I){let l,t,s,i,b,a=!0;const n=(0,e.SD)("config");(0,C.j0C)(A,n,(A=>I(2,t=A)));const o=t.fieldId,d=document.getElementById(o);console.log(`${o} get context config: ${JSON.stringify(t)}`);const u=(0,e.SD)("selectedItems");(0,C.j0C)(A,u,(A=>I(0,l=A)));const r=(0,e.SD)("selectedUids");(0,C.j0C)(A,r,(A=>I(14,s=A))),console.log(`${o} initialized reactive context store`);const G=(0,e.SD)("showContentBrowser");function B(A){u.update((g=>(g.splice(A,1),g))),r.update((()=>l.map((A=>A.UID)))),console.log(`Unselected i=${A}, new value: ${JSON.stringify(s)}`)}function Z(){1!==t.maximumSelectionSize&&l.length>1&&gA().create(d.previousSibling.querySelector(".content-browser-selected-items"),{draggable:".selected-item",animation:200,onUpdate:A=>{let g=[];for(const I of A.target.children)g.push(I.dataset.uuid);m(g)}})}function m(A){const g=A.join(t.separator);console.log(`set value of ${o} to ${g}`),d.value=g}(0,C.j0C)(A,G,(A=>I(3,i=A))),(0,e.Rc)((async()=>{console.log(`${o} start onMount()`),await async function(){const A=t.selection.length?t.selection:d?.value?d.value.split(t.separator):[];if(!A.length)return;const g=await async function(A){if(console.log(`${o} getSelectedItemsUids ${A}`),!A)return[];const g=await c({method:"GET",base_url:t.base_url,uids:A});return await(g?.items)||[]}(A);(0,C.vu6)(u,l=g,l),r.update((()=>g.map((A=>A.UID))))}(),Z(),console.log(`${o} end onMount(). $selectedItems: ${JSON.stringify(l)}`),I(9,a=!1)}));return A.$$.update=()=>{513&A.$$.dirty&&(console.log(`${o} reactive change in $selectedItems: ${JSON.stringify(l)}`),!l.length&&a||(m(function(){let A=[];return l.forEach((g=>{A.push(g.UID)})),A}()),Z(),function(A,g){const I=new CustomEvent(A,{detail:{content:g},bubbles:!0});document.dispatchEvent(I)}("updateSelection",r)))},[l,b,t,i,n,u,r,G,B,a,A=>B(A),()=>(0,C.vu6)(G,i=!0,i),function(A){C.Dnk[A?"unshift":"push"]((()=>{b=A,I(1,b)}))}]}class oA extends C.r7T{constructor(A){super(),(0,C.TsN)(this,A,nA,aA,C.jXN,{})}}var dA=oA;function uA(A){let g,I,e,l;return g=new $({}),e=new dA({}),{c(){(0,C.N0i)(g.$$.fragment),I=(0,C.xem)(),(0,C.N0i)(e.$$.fragment)},m(A,t){(0,C.wSR)(g,A,t),(0,C.Yry)(A,I,t),(0,C.wSR)(e,A,t),l=!0},p:C.lQ1,i(A){l||((0,C.c7F)(g.$$.fragment,A),(0,C.c7F)(e.$$.fragment,A),l=!0)},o(A){(0,C.Tn8)(g.$$.fragment,A),(0,C.Tn8)(e.$$.fragment,A),l=!1},d(A){A&&(0,C.YoD)(I),(0,C.Hbl)(g,A),(0,C.Hbl)(e,A)}}}function rA(A,g,I){let l,{maxDepth:t}=g,{mode:s}=g,{basePath:c=""}=g,{selectableTypes:b=[]}=g,{maximumSelectionSize:a=-1}=g,{separator:n}=g,{selection:o=[]}=g,{query:d={}}=g,{fieldId:u}=g,{upload:r}=g,{recentlyUsed:G}=g,{recentlyUsedKey:B}=g;!function(){let A=(0,i.T5)({});(0,e.o)("config",A)}(),function(){let A=(0,i.T5)({});(0,e.o)("pathCache",A)}(),function(){let A=(0,i.T5)([]);(0,e.o)("selectedItems",A)}(),function(){let A=(0,i.T5)(!1);(0,e.o)("showContentBrowser",A)}(),function(){let A=(0,i.T5)([]);(0,e.o)("selectedUids",A)}();const Z=document.body.getAttribute("data-portal-url");let m=(0,e.SD)("config");return(0,C.j0C)(A,m,(A=>I(13,l=A))),(0,C.vu6)(m,l={mode:s,maxDepth:t,basePath:c,selectableTypes:b,maximumSelectionSize:a,separator:n,selection:o,query:d,fieldId:u,uploadEnabled:r,recentlyUsed:G,recentlyUsedKey:B,base_url:Z},l),console.log(`Initialized App<${u}> with config ${JSON.stringify(l)}`),A.$$set=A=>{"maxDepth"in A&&I(1,t=A.maxDepth),"mode"in A&&I(2,s=A.mode),"basePath"in A&&I(3,c=A.basePath),"selectableTypes"in A&&I(4,b=A.selectableTypes),"maximumSelectionSize"in A&&I(5,a=A.maximumSelectionSize),"separator"in A&&I(6,n=A.separator),"selection"in A&&I(7,o=A.selection),"query"in A&&I(8,d=A.query),"fieldId"in A&&I(9,u=A.fieldId),"upload"in A&&I(10,r=A.upload),"recentlyUsed"in A&&I(11,G=A.recentlyUsed),"recentlyUsedKey"in A&&I(12,B=A.recentlyUsedKey)},[m,t,s,c,b,a,n,o,d,u,r,G,B]}class GA extends C.r7T{constructor(A){super(),(0,C.TsN)(this,A,rA,uA,C.jXN,{maxDepth:1,mode:2,basePath:3,selectableTypes:4,maximumSelectionSize:5,separator:6,selection:7,query:8,fieldId:9,upload:10,recentlyUsed:11,recentlyUsedKey:12})}}var BA=GA}}]); +//# sourceMappingURL=22483.3763d767e156aa45d789.min.js.map \ No newline at end of file diff --git a/dist/mockup/chunks/22483.3763d767e156aa45d789.min.js.map b/dist/mockup/chunks/22483.3763d767e156aa45d789.min.js.map new file mode 100644 index 000000000..ea5982e9b --- /dev/null +++ b/dist/mockup/chunks/22483.3763d767e156aa45d789.min.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunks/22483.3763d767e156aa45d789.min.js","mappings":"yJAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,gtFAAitF,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,gEAAgE,MAAQ,GAAG,SAAW,q3BAAq3B,eAAiB,CAAC,s82BAAs82B,WAAa,MAErs+B,K,2DCJIH,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,uzCAAwzC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,+DAA+D,MAAQ,GAAG,SAAW,qVAAqV,eAAiB,CAAC,ogaAAoga,WAAa,MAEz0d,K,qJCNOC,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AAY,IAAH,G,MACT9K,EAAQ,CAAC,GAAJ,G,QACL+H,GAAO,G,OACP6D,GAAM,G,aACNC,GAAY,G,gBACZC,GAAe,GNNvB,WACH,IAAIpH,GAAS/B,EAAAA,EAAAA,IAAS,CAAC,IACvBoJ,EAAAA,EAAAA,GAAW,SAAUrH,EACzB,CMMIsH,GNpBG,WACH,IAAIrH,GAAYhC,EAAAA,EAAAA,IAAS,CAAC,IAC1BoJ,EAAAA,EAAAA,GAAW,YAAapH,EAC5B,CMkBIsH,GNfG,WACH,IAAIC,GAAWvJ,EAAAA,EAAAA,IAAS,KACxBoJ,EAAAA,EAAAA,GAAW,gBAAiBG,EAChC,CMaIC,GNNG,WACH,IAAIvH,GAAqBjC,EAAAA,EAAAA,KAAS,IAClCoJ,EAAAA,EAAAA,GAAW,qBAAsBnH,EACrC,CMIIwH,GNFG,WACH,IAAIC,GAAU1J,EAAAA,EAAAA,IAAS,KACvBoJ,EAAAA,EAAAA,GAAW,eAAgBM,EAC/B,CMAIC,G,MAEMxM,EAAWkC,SAASuK,KAAKC,aAAa,mB,IACxC9H,GAAS,QAAW,U,gDACxBkC,EAAU,CACA8E,OACIjG,WACAkG,WACO5L,kBACK0J,uBACXmB,YACAE,YACJ9K,QACE+H,UACTvE,cAAeoI,EACDC,eACGC,kBACPhM,Y,GAGdU,QAAQC,IAAI,mBAAmBsH,kBAAwBF,KAAKC,UAAUlB,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/api.js","webpack://@plone/mockup/./src/pat/contentbrowser/src/clickOutside.js","webpack://@plone/mockup/./src/pat/contentbrowser/src/resolveIcon.js","webpack://@plone/mockup/./src/pat/contentbrowser/src/stores.js","webpack://@plone/mockup/./src/pat/contentbrowser/src/ContentBrowser.svelte?b874","webpack://@plone/mockup/ContentBrowser.svelte","webpack://@plone/mockup/./src/pat/contentbrowser/src/ContentStore.js","webpack://@plone/mockup/./src/pat/contentbrowser/src/SelectedItems.svelte?e8bf","webpack://@plone/mockup/SelectedItems.svelte","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-1asobia.svelte-1asobia.svelte-1asobia{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)}.content-browser.svelte-1asobia.svelte-1asobia.svelte-1asobia{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-1asobia.svelte-1asobia.svelte-1asobia{background-color:var(--bs-primary);padding:.325rem .75rem;color:var(--bs-light);width:100%;display:flex;justify-content:end}.toolBar.svelte-1asobia>.upload.svelte-1asobia.svelte-1asobia{margin:0 1rem 0 2rem}.toolBar.svelte-1asobia svg{vertical-align:-0.125em}.levelColumns.svelte-1asobia.svelte-1asobia.svelte-1asobia{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)}.levelColumn.svelte-1asobia.svelte-1asobia.svelte-1asobia{min-width:320px;overflow-x:auto;border-right:var(--bs-border-style) var(--bs-border-width) var(--bs-border-color)}.levelToolbar.svelte-1asobia.svelte-1asobia.svelte-1asobia{width:100%;height:2.8rem;display:flex;justify-content:space-between;padding:.375rem;border-bottom:var(--bs-border-style) var(--bs-border-width) var(--bs-border-color)}.levelToolbar.svelte-1asobia>.levelActions.svelte-1asobia.svelte-1asobia{margin-left:auto}.contentItem.svelte-1asobia.svelte-1asobia.svelte-1asobia{display:flex;align-items:center;justify-content:space-between;font-size:90%;min-height:2rem;padding-right:.375rem}.contentItem.even.svelte-1asobia.svelte-1asobia.svelte-1asobia{background-color:var(--bs-secondary-bg)}.contentItem.inPath.svelte-1asobia.svelte-1asobia.svelte-1asobia{background-color:rgba(var(--bs-primary-rgb), 0.15)}.contentItem.currentItem.svelte-1asobia.svelte-1asobia.svelte-1asobia{background-color:var(--bs-primary);color:var(--bs-body-bg)}.contentItem.svelte-1asobia>.svelte-1asobia.svelte-1asobia{padding:.5rem;white-space:nowrap;max-width:100%}.contentItem.svelte-1asobia .grid-preview.svelte-1asobia>img.svelte-1asobia{width:95px;height:95px;object-fit:cover;float:left;margin-right:1rem}.preview.svelte-1asobia.svelte-1asobia.svelte-1asobia{min-width:320px;max-width:500px;min-height:300px;display:flex;flex-direction:column;align-items:center}.preview.svelte-1asobia .info.svelte-1asobia.svelte-1asobia{padding:.5rem;width:100%}.preview.svelte-1asobia h4.svelte-1asobia.svelte-1asobia{font-size:1.2 rem}.preview.svelte-1asobia img.svelte-1asobia.svelte-1asobia{max-width:100%;max-width:100%;margin-bottom:.5rem}.upload-wrapper.svelte-1asobia.svelte-1asobia.svelte-1asobia{padding:1rem;width:590px;overflow-x:auto}\", \"\",{\"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,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,mBAAA,CAAA,8DAAA,oBAAA,CAAA,4BAAA,uBAAA,CAAA,2DAAA,YAAA,CAAA,gBAAA,CAAA,UAAA,CAAA,eAAA,CAAA,WAAA,CAAA,gFAAA,CAAA,0DAAA,eAAA,CAAA,eAAA,CAAA,iFAAA,CACmC,2DAAA,UAAA,CAAA,aAAA,CAAA,YAAA,CAAA,6BAAA,CAAA,eAAA,CAAA,kFAAA,CACA,yEAAA,gBAAA,CAAA,0DAAA,YAAA,CAAA,kBAAA,CAAA,6BAAA,CAAA,aAAA,CAAA,eAAA,CAAA,qBAAA,CAAA,+DAAA,uCAAA,CAAA,iEAAA,kDAAA,CAAA,sEAAA,kCAAA,CAAA,uBAAA,CAAA,2DAAA,aAAA,CAAA,kBAAA,CAAA,cAAA,CAAA,4EAAA,UAAA,CAAA,WAAA,CAAA,gBAAA,CAAA,UAAA,CAAA,iBAAA,CAAA,sDAAA,eAAA,CAAA,eAAA,CAAA,gBAAA,CAAA,YAAA,CAAA,qBAAA,CAAA,kBAAA,CAAA,4DAAA,aAAA,CAAA,UAAA,CAAA,yDAAA,iBAAA,CAAA,0DAAA,cAAA,CAAA,cAAA,CAAA,mBAAA,CAAA,6DAAA,YAAA,CAAA,WAAA,CAAA,eAAA\",\"sourcesContent\":[\".content-browser-position-wrapper.svelte-1asobia.svelte-1asobia.svelte-1asobia{position:fixed;top:0;right:0;display:flex;justify-content:end;z-index:1500;width:100%;height:100vh;background-color:rgba(0, 0, 0, 0.25)}.content-browser.svelte-1asobia.svelte-1asobia.svelte-1asobia{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-1asobia.svelte-1asobia.svelte-1asobia{background-color:var(--bs-primary);padding:0.325rem 0.75rem;color:var(--bs-light);width:100%;display:flex;justify-content:end}.toolBar.svelte-1asobia>.upload.svelte-1asobia.svelte-1asobia{margin:0 1rem 0 2rem}.toolBar.svelte-1asobia svg{vertical-align:-0.125em}.levelColumns.svelte-1asobia.svelte-1asobia.svelte-1asobia{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)}.levelColumn.svelte-1asobia.svelte-1asobia.svelte-1asobia{min-width:320px;overflow-x:auto;border-right:var(--bs-border-style) var(--bs-border-width)\\n var(--bs-border-color)}.levelToolbar.svelte-1asobia.svelte-1asobia.svelte-1asobia{width:100%;height:2.8rem;display:flex;justify-content:space-between;padding:0.375rem;border-bottom:var(--bs-border-style) var(--bs-border-width)\\n var(--bs-border-color)}.levelToolbar.svelte-1asobia>.levelActions.svelte-1asobia.svelte-1asobia{margin-left:auto}.contentItem.svelte-1asobia.svelte-1asobia.svelte-1asobia{display:flex;align-items:center;justify-content:space-between;font-size:90%;min-height:2rem;padding-right:0.375rem}.contentItem.even.svelte-1asobia.svelte-1asobia.svelte-1asobia{background-color:var(--bs-secondary-bg)}.contentItem.inPath.svelte-1asobia.svelte-1asobia.svelte-1asobia{background-color:rgba(var(--bs-primary-rgb), 0.15)}.contentItem.currentItem.svelte-1asobia.svelte-1asobia.svelte-1asobia{background-color:var(--bs-primary);color:var(--bs-body-bg)}.contentItem.svelte-1asobia>.svelte-1asobia.svelte-1asobia{padding:0.5rem;white-space:nowrap;max-width:100%}.contentItem.svelte-1asobia .grid-preview.svelte-1asobia>img.svelte-1asobia{width:95px;height:95px;object-fit:cover;float:left;margin-right:1rem}.preview.svelte-1asobia.svelte-1asobia.svelte-1asobia{min-width:320px;max-width:500px;min-height:300px;display:flex;flex-direction:column;align-items:center}.preview.svelte-1asobia .info.svelte-1asobia.svelte-1asobia{padding:0.5rem;width:100%}.preview.svelte-1asobia h4.svelte-1asobia.svelte-1asobia{font-size:1.2 rem}.preview.svelte-1asobia img.svelte-1asobia.svelte-1asobia{max-width:100%;max-width:100%;margin-bottom:0.5rem}.upload-wrapper.svelte-1asobia.svelte-1asobia.svelte-1asobia{padding:1rem;width:590px;overflow-x:auto}\\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29udGVudEJyb3dzZXIuc3ZlbHRlIiwic291cmNlcyI6WyJDb250ZW50QnJvd3Nlci5zdmVsdGUiXSwic291cmNlc0NvbnRlbnQiOlsiPHNjcmlwdD5cbiAgICBpbXBvcnQgdXRpbHMgZnJvbSBcIkBwYXR0ZXJuc2xpYi9wYXR0ZXJuc2xpYi9zcmMvY29yZS91dGlsc1wiO1xuICAgIGltcG9ydCB7IGdldENvbnRleHQsIG9uTW91bnQgfSBmcm9tIFwic3ZlbHRlXCI7XG4gICAgaW1wb3J0ICogYXMgYW5pbWF0ZVNjcm9sbCBmcm9tIFwic3ZlbHRlLXNjcm9sbHRvXCI7XG4gICAgaW1wb3J0IHsgZmx5IH0gZnJvbSBcInN2ZWx0ZS90cmFuc2l0aW9uXCI7XG4gICAgaW1wb3J0IGNvbnRlbnRTdG9yZSBmcm9tIFwiLi9Db250ZW50U3RvcmVcIjtcbiAgICBpbXBvcnQgeyBjbGlja091dHNpZGUgfSBmcm9tIFwiLi9jbGlja091dHNpZGVcIjtcbiAgICBpbXBvcnQgeyByZXNvbHZlSWNvbiB9IGZyb20gXCIuL3Jlc29sdmVJY29uLmpzXCI7XG4gICAgaW1wb3J0IFVwbG9hZCBmcm9tIFwiLi4vLi4vdXBsb2FkL3VwbG9hZFwiO1xuXG4gICAgaW1wb3J0IHtcbiAgICAgICAgY3VycmVudFBhdGgsXG4gICAgfSBmcm9tIFwiLi9zdG9yZXMuanNcIjtcbiAgICAvLyBpbXBvcnQgS2V5ZG93biBmcm9tIFwic3ZlbHRlLWtleWRvd25cIjtcblxuICAgIGFuaW1hdGVTY3JvbGwuc2V0R2xvYmFsT3B0aW9ucyh7XG4gICAgICAgIHNjcm9sbFg6IHRydWUsXG4gICAgICAgIGNvbnRhaW5lcjogXCIubGV2ZWxDb2x1bW5zXCIsXG4gICAgICAgIGR1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XG4gICAgICAgICAgICAgICAgICAgIDxpbnB1dCB0eXBlPVwidGV4dFwiIG5hbWU9XCJmaWx0ZXJcIiBvbjppbnB1dD17ZmlsdGVySXRlbXN9IC8+XG4gICAgICAgICAgICAgICAgICAgIDxsYWJlbCBmb3I9XCJmaWx0ZXJcIlxuICAgICAgICAgICAgICAgICAgICAgICAgPjxzdmcgdXNlOnJlc29sdmVJY29uPXt7IGljb25OYW1lOiBcInNlYXJjaFwiIH19IC8+PC9sYWJlbFxuICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgeyNpZiAkY29uZmlnLnVwbG9hZEVuYWJsZWR9XG4gICAgICAgICAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJ1cGxvYWQgYnRuIGJ0bi1zZWNvbmRhcnkgYnRuLXNtXCJcbiAgICAgICAgICAgICAgICAgICAgdGFiaW5kZXg9XCIwXCJcbiAgICAgICAgICAgICAgICAgICAgb246a2V5ZG93bj17dXBsb2FkfVxuICAgICAgICAgICAgICAgICAgICBvbjpjbGljaz17dXBsb2FkfVxuICAgICAgICAgICAgICAgICAgICA+PHN2ZyB1c2U6cmVzb2x2ZUljb249e3sgaWNvbk5hbWU6IFwidXBsb2FkXCIgfX0gLz4gdXBsb2FkIGZpbGVzIHRvIHskY3VycmVudFBhdGh9PC9idXR0b25cbiAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgey9pZn1cbiAgICAgICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgICAgIGNsYXNzPVwiYnRuIGJ0bi1saW5rIHRleHQtd2hpdGVcIlxuICAgICAgICAgICAgICAgICAgICB0YWJpbmRleD1cIjBcIlxuICAgICAgICAgICAgICAgICAgICBvbjpjbGlja3xwcmV2ZW50RGVmYXVsdD17KCkgPT4gY2FuY2VsU2VsZWN0aW9uKCl9XG4gICAgICAgICAgICAgICAgICAgID48c3ZnIHVzZTpyZXNvbHZlSWNvbj17eyBpY29uTmFtZTogXCJ4LWNpcmNsZVwiIH19IC8+PC9idXR0b25cbiAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIHsjYXdhaXQgJGNvbnRlbnRJdGVtc31cbiAgICAgICAgICAgICAgICA8cD4uLi5sb2FkaW5nIGNvbnRlbnQgaXRlbXM8L3A+XG4gICAgICAgICAgICB7OnRoZW4gbGV2ZWxzfVxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJsZXZlbENvbHVtbnNcIj5cbiAgICAgICAgICAgICAgICAgICAgeyNlYWNoIGxldmVscyBhcyBsZXZlbCwgaSAobGV2ZWwucGF0aCl9XG4gICAgICAgICAgICAgICAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJsZXZlbENvbHVtbntpICUgMiA9PSAwID8gJyBvZGQnIDogJyBldmVuJ31cIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGluOmZseXxsb2NhbD17eyBkdXJhdGlvbjogMzAwIH19XG4gICAgICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImxldmVsVG9vbGJhclwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7I2lmIGkgPT0gMH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzcz1cImJ0biBidG4tbGluayBidG4tc21cIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRhYmluZGV4PVwiMFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb246a2V5ZG93bj17KCkgPT4gY2hhbmdlUGF0aChcIi9cIil9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb246Y2xpY2s9eygpID0+IGNoYW5nZVBhdGgoXCIvXCIpfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID48c3ZnIHVzZTpyZXNvbHZlSWNvbj17eyBpY29uTmFtZTogXCJob3VzZVwiIH19IC8+PC9idXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgey9pZn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeyNpZiBpID4gMCAmJiBsZXZlbC5zZWxlY3RhYmxlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzPVwiYnRuIGJ0bi1wcmltYXJ5IGJ0bi1zbVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGlzYWJsZWQ9eyFpc1NlbGVjdGFibGUobGV2ZWwpfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uOmNsaWNrfHByZXZlbnREZWZhdWx0PXsoKSA9PiBzZWxlY3RJdGVtKGxldmVsKX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxlY3Qge2xldmVsLnBhdGh9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2J1dHRvbj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgey9pZn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImxldmVsQWN0aW9uc1wiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeyNpZiAhbGV2ZWwuZ3JpZFZpZXd9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YnV0dG9uIGNsYXNzPVwiYnRuIGJ0bi1saW5rIGJ0bi1zbSBncmlkLXZpZXdcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uOmNsaWNrPXsoKSA9PiAobGV2ZWwuZ3JpZFZpZXcgPSB0cnVlKX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3ZnIHVzZTpyZXNvbHZlSWNvbj17eyBpY29uTmFtZTogXCJncmlkXCIgfX0gLz5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvYnV0dG9uPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgezplbHNlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGJ1dHRvbiBjbGFzcz1cImJ0biBidG4tbGluayBidG4tc20gZ3JpZC12aWV3XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbjpjbGljaz17KCkgPT4gKGxldmVsLmdyaWRWaWV3ID0gZmFsc2UpfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzdmcgdXNlOnJlc29sdmVJY29uPXt7IGljb25OYW1lOiBcImxpc3RcIiB9fSAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9idXR0b24+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7L2lmfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7I2VhY2ggKGxldmVsLml0ZW1zIHx8IFtdKSBhcyBpdGVtLCBufVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzcz1cImNvbnRlbnRJdGVte24gJSAyID09IDBcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA/ICcgb2RkJ1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogJyBldmVuJ317aXRlbUluUGF0aChpdGVtKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID8gJyBpblBhdGgnXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOiAnJ317cHJldmlld0l0ZW0uVUlEID09PSBpdGVtLlVJRFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID8gJyBjdXJyZW50SXRlbSdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA6ICcnfXshaXNTZWxlY3RhYmxlKGl0ZW0pID8gJyB0ZXh0LW11dGVkJyA6ICcnfVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByb2xlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRhYmluZGV4PVwiMFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbjprZXlkb3duPXsoKSA9PiBjaGFuZ2VQYXRoKGl0ZW0pfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb246Y2xpY2s9eygpID0+IGNoYW5nZVBhdGgoaXRlbSl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsjaWYgbGV2ZWwuZ3JpZFZpZXd9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiZ3JpZC1wcmV2aWV3XCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeyNpZiBpdGVtLmdldEljb259XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGltZyBzcmM9e2Ake2l0ZW0uZ2V0VVJMfS9AQGltYWdlcy9pbWFnZS90aHVtYmB9IGFsdD17aXRlbS5UaXRsZX0+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgezplbHNlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzdmdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdXNlOnJlc29sdmVJY29uPXt7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpY29uTmFtZTogYGNvbnRlbnR0eXBlLyR7aXRlbS5wb3J0YWxfdHlwZS50b0xvd2VyQ2FzZSgpLnJlcGxhY2UoL1xcLnwgL2csIFwiLVwiKX1gLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgey9pZn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7aXRlbS5UaXRsZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgezplbHNlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiB0aXRsZT17aXRlbS5wb3J0YWxfdHlwZX0+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHN2Z1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1c2U6cmVzb2x2ZUljb249e3tcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGljb25OYW1lOiBgY29udGVudHR5cGUvJHtpdGVtLnBvcnRhbF90eXBlLnRvTG93ZXJDYXNlKCkucmVwbGFjZSgvXFwufCAvZywgXCItXCIpfWAsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH19XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7aXRlbS5UaXRsZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgey9pZn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsjaWYgaXRlbS5pc19mb2xkZXJpc2h9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHN2Z1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1c2U6cmVzb2x2ZUljb249e3tcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGljb25OYW1lOiBcImFycm93LXJpZ2h0LWNpcmNsZVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7L2lmfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7L2VhY2h9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgeyNpZiBsZXZlbC5pdGVtc190b3RhbCA9PSAwfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjb250ZW50SXRlbVwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cD5ubyBpdGVtcyBmb3VuZC48L3A+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgey9pZn1cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICB7L2VhY2h9XG4gICAgICAgICAgICAgICAgICAgIHsjaWYgcHJldmlld0l0ZW0uVUlEfVxuICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cInByZXZpZXdcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwibGV2ZWxUb29sYmFyXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzPVwiYnRuIGJ0bi1wcmltYXJ5IGJ0bi1zbVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkaXNhYmxlZD17IWlzU2VsZWN0YWJsZShwcmV2aWV3SXRlbSl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbjpjbGlja3xwcmV2ZW50RGVmYXVsdD17KCkgPT4gc2VsZWN0SXRlbShwcmV2aWV3SXRlbSl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA+c2VsZWN0IFwie3ByZXZpZXdJdGVtLmdldFBhdGguc3BsaXQoXCIvXCIpLnBvcCgpfVwiPC9idXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJpbmZvXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsjaWYgcHJldmlld0l0ZW0ucG9ydGFsX3R5cGUgPT09IFwiSW1hZ2VcIn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXY+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGltZ1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzcmM9XCJ7cHJldmlld0l0ZW0uZ2V0VVJMfS9AQGltYWdlcy9pbWFnZS9wcmV2aWV3XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWx0PXtwcmV2aWV3SXRlbS5UaXRsZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsvaWZ9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoND57cHJldmlld0l0ZW0uVGl0bGV9PC9oND5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHA+e3ByZXZpZXdJdGVtLkRlc2NyaXB0aW9ufTwvcD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICB7L2lmfVxuICAgICAgICAgICAgICAgICAgICB7I2lmIHNob3dVcGxvYWR9XG4gICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwidXBsb2FkLXdyYXBwZXJcIj48L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgey9pZn1cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIHs6Y2F0Y2ggZXJyb3J9XG4gICAgICAgICAgICAgICAgPHAgc3R5bGU9XCJjb2xvcjogcmVkXCI+e2Vycm9yLm1lc3N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0FBRSxNQUNuQixDQUVBLDREQUFnQixDQUNaLE9BQU8sQ0FBRSxJQUFJLENBQ2IsS0FBSyxDQUFFLEtBQUssQ0FDWixVQUFVLENBQUUsSUFDaEIifQ==*/\"],\"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\",\"sourcesContent\":[\".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:0.5rem 0.5rem 0 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:0.5rem;margin-bottom:0.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:0.5rem;display:block}.content-browser-selected-items.svelte-bljrxf .selected-item button.svelte-bljrxf.svelte-bljrxf{cursor:pointer;padding:0 0.375rem 0.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}\\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2VsZWN0ZWRJdGVtcy5zdmVsdGUiLCJzb3VyY2VzIjpbIlNlbGVjdGVkSXRlbXMuc3ZlbHRlIl0sInNvdXJjZXNDb250ZW50IjpbIjxzY3JpcHQ+XG4gICAgaW1wb3J0IHsgZ2V0Q29udGV4dCwgb25Nb3VudCB9IGZyb20gXCJzdmVsdGVcIjtcbiAgICBpbXBvcnQgeyBmbGlwIH0gZnJvbSBcInN2ZWx0ZS9hbmltYXRlXCI7XG4gICAgaW1wb3J0IHsgcmVxdWVzdCB9IGZyb20gXCIuL2FwaS5qc1wiO1xuICAgIGltcG9ydCB7IHJlc29sdmVJY29uIH0gZnJvbSBcIi4vcmVzb2x2ZUljb24uanNcIjtcbiAgICBpbXBvcnQgU29ydGFibGUgZnJvbSBcInNvcnRhYmxlanNcIjtcblxuICAgIGxldCByZWY7XG4gICAgbGV0IGluaXRpYWxpemluZyA9IHRydWU7XG5cbiAgICAvLyBnZXQgcmVhY3RpdmUgY29udGV4dCBjb25maWdcbiAgICBjb25zdCBjb25maWcgPSBnZXRDb250ZXh0KFwiY29uZmlnXCIpO1xuICAgIGNvbnN0IGZpZWxkSWQgPSAkY29uZmlnLmZpZWxkSWQ7XG4gICAgY29uc3Qgc2VsZWN0ZWRJdGVtc05vZGUgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZChmaWVsZElkKTtcblxuICAgIGNvbnNvbGUubG9nKGAke2ZpZWxkSWR9IGdldCBjb250ZXh0IGNvbmZpZzogJHtKU09OLnN0cmluZ2lmeSgkY29uZmlnKX1gKTtcblxuICAgIC8vIGdldCByZWFjdGl2ZSBjb250ZXh0IHN0b3JlXG4gICAgY29uc3Qgc2VsZWN0ZWRJdGVtcyA9IGdldENvbnR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gICAgICAgICAgICAgICAgIG9uVXBkYXRlOiAoZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHNvcnRlZFV1aWRzID0gW107XG4gICAgICAgICAgICAgICAgICAgICAgICBmb3IgKGNvbnN0IGVsIG9mIGUudGFyZ2V0LmNoaWxkcmVuKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc29ydGVkVXVpZHMucHVzaChlbC5kYXRhc2V0W1widXVpZFwiXSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICBzZXROb2RlVmFsdWUoc29ydGVkVXVpZHMpO1xuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICApO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZnVuY3Rpb24gc2VsZWN0ZWRVaWRzRnJvbVNlbGVjdGVkSXRlbXMoKSB7XG4gICAgICAgIGxldCBpdGVtcyA9IFtdO1xuICAgICAgICAkc2VsZWN0ZWRJdGVtcy5mb3JFYWNoKChpdGVtKSA9PiB7XG4gICAgICAgICAgICBpdGVtcy5wdXNoKGl0ZW0uVUlEKTtcbiAgICAgICAgfSk7XG4gICAgICAgIHJldHVybiBpdGVtcztcbiAgICB9XG5cbiAgICBmdW5jdGlvbiBzZXROb2RlVmFsdWUoc2VsZWN0ZWRVaWRzKSB7XG4gICAgICAgIGNvbnN0IG5vZGVfdmFsID0gc2VsZWN0ZWRVaWRzLmpvaW4oJGNvbmZpZy5zZXBhcmF0b3IpO1xuICAgICAgICBjb25zb2xlLmxvZyhgc2V0IHZhbHVlIG9mICR7ZmllbGRJZH0gdG8gJHtub2RlX3ZhbH1gKTtcbiAgICAgICAgc2VsZWN0ZWRJdGVtc05vZGUudmFsdWUgPSBub2RlX3ZhbDtcbiAgICB9XG5cbiAgICAkOiB7XG4gICAgICAgICRzZWxlY3RlZEl0ZW1zO1xuICAgICAgICBjb25zb2xlLmxvZyhc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aXRlbS1pbmZvXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICA8IS0tIHN2ZWx0ZS1pZ25vcmUgYTExeS1taXNzaW5nLWF0dHJpYnV0ZSAtLT5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzcz1cImJ0biBidG4tbGluayBidG4tc20gbGluay1zZWNvbmRhcnlcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uOmNsaWNrPXsoKSA9PiB1bnNlbGVjdEl0ZW0oaSl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPjxzdmcgdXNlOnJlc29sdmVJY29uPXt7IGljb25OYW1lOiBcIngtY2lyY2xlXCIgfX0gLz48L2J1dHRvblxuICAgICAgICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cIml0ZW0tdGl0bGVcIj57c2VsSXRlbS5UaXRsZX08L3NwYW4+PGJyIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJzbWFsbFwiPntzZWxJdGVtLmdldFBhdGh9PC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICB7I2lmIHNlbEl0ZW0uZ2V0VVJMICYmIChzZWxJdGVtLmdldEljb24gfHwgc2VsSXRlbS5wb3J0YWxfdHlwZSA9PT0gXCJJbWFnZVwiKX08aW1nXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3JjPVwie3NlbEl0ZW0uZ2V0VVJMfS9AQGltYWdlcy9pbWFnZS9taW5pXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbHQ9e3NlbEl0ZW0uVGl0bGV9XG4gICAgICAgICAgICAgICAgICAgICAgICAvP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foPath = null,\n base_url = null,\n selectableTypes = [],\n}) {\n let query = new URLSearchParams();\n if (path) {\n query.set(\"path.query\", path);\n query.set(\"path.depth\", 1);\n query.set(\"sort_on\", \"getObjPositionInParent\");\n query.set(\"sort_order\", \"ascending\");\n }\n else if (levelInfoPath) {\n query.set(\"path.query\", levelInfoPath);\n query.set(\"path.depth\", 0);\n }\n if (uids.length) {\n for(const uid of uids) {\n query.append(\"UID\", uid);\n }\n }\n if (searchTerm) {\n query.set(\"SearchableText\", searchTerm);\n }\n\n query.set(\"metadata_fields\", \"_all\");\n\n const url = `${base_url}/@search?${query.toString()}`;\n console.log(url);\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 (selectableTypes.length) {\n // we iter through response and filter out non-selectable\n // types but keeping folderish types to maintain browsing\n // the content structure.\n const filtered_response = {\n items: [],\n items_total: json.items_total,\n }\n for (const it of json.items) {\n if (selectableTypes.indexOf(it.portal_type) != -1 || it.is_folderish) {\n filtered_response.items.push(it);\n }\n }\n return filtered_response;\n }\n return json;\n } else {\n return {\n items: [],\n items_total: 0,\n errors: json.errors,\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","/** use Plone resolveIcon to load a SVG icon and replace node with icon code */\nimport utils from \"../../../core/utils.js\";\n\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","import { setContext } from 'svelte';\nimport { writable } from 'svelte/store';\n\nexport const currentPath = writable('/');\nexport const gridView = writable(false);\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","\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 \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 = function top_head_insert(el) {\n // Insert element at the top of \n // Used for injecting CSS via webpack before any other CSS\n // Note:\n // Keep code compatible with IE11 as long as we support it.\n var first_child = document.head.querySelectorAll(\"*\")[0];\n if (first_child) {\n document.head.insertBefore(el, first_child);\n } else {\n document.head.append(el);\n }\n};\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\n\n{#if $showContentBrowser}\n
\n scrollToRight()}\n use:clickOutside\n on:click_outside={cancelSelection}\n >\n
\n
\n \n
\n {#if $config.uploadEnabled}\n upload files to {$currentPath}\n {/if}\n cancelSelection()}\n >\n
\n {#await $contentItems}\n

...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 i > 0 && level.selectable}\n selectItem(level)}\n >\n select {level.path}\n \n {/if}\n
\n {#if !level.gridView}\n \n {:else}\n \n {/if}\n
\n
\n {#each (level.items || []) as item, n}\n changePath(item)}\n on:click={() => changePath(item)}\n >\n {#if level.gridView}\n
\n {#if item.getIcon}\n {item.Title}\n {:else}\n \n {/if}\n {item.Title}\n
\n {:else}\n
\n \n {item.Title}\n
\n {/if}\n {#if item.is_folderish}\n \n {/if}\n
\n {/each}\n {#if level.items_total == 0}\n
\n

no items found.

\n
\n {/if}\n
\n {/each}\n {#if previewItem.UID}\n
\n
\n selectItem(previewItem)}\n >select \"{previewItem.getPath.split(\"/\").pop()}\"\n
\n
\n {#if previewItem.portal_type === \"Image\"}\n
\n \n
\n {/if}\n

{previewItem.Title}

\n

{previewItem.Description}

\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","import { writable, get } from \"svelte/store\";\nimport { request } from \"./api.js\";\n\nexport default function (config, pathCache) {\n const store = writable([]);\n\n store.get = async (path, searchTerm, updateCache) => {\n const base_url = new URL(config.base_url);\n const portalPath = base_url.pathname;\n path = path.replace(new RegExp(`^${portalPath}`), \"\");\n\n let parts = path.split(\"/\") || [];\n const depth = parts.length >= config.maxDepth ? config.maxDepth : parts.length;\n let paths = [];\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\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 skipCache = isFirstPath && (searchTerm || updateCache);\n let level = {};\n const c = get(pathCache);\n if (Object.keys(c).indexOf(p) === -1 || skipCache) {\n let query = {\n base_url: config.base_url,\n path: p,\n };\n\n if(isFirstPath && searchTerm){\n query[\"searchTerm\"] = \"*\" + searchTerm + \"*\";\n }\n if(config.selectableTypes.length) {\n query[\"selectableTypes\"] = config.selectableTypes;\n }\n\n level = await request(query);\n\n // do not update cache when searching\n if(!searchTerm) {\n const levelInfo = await request({\n base_url: config.base_url,\n levelInfoPath: p,\n });\n if (levelInfo.items_total) {\n level.UID = levelInfo.items[0].UID;\n level.Title = levelInfo.items[0].Title;\n // check if level is selectable (config.selectableTypes)\n level.selectable = (!config.selectableTypes.length || config.selectableTypes.indexOf(levelInfo.items[0].portal_type) != -1);\n }\n level.gridView = false;\n level.path = p;\n pathCache.update((n) => {\n n[p] = level;\n return n;\n });\n }\n } else {\n level = c[p];\n }\n levels = [level, ...levels];\n }\n store.set(levels);\n };\n\n return store;\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 \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 = function top_head_insert(el) {\n // Insert element at the top of \n // Used for injecting CSS via webpack before any other CSS\n // Note:\n // Keep code compatible with IE11 as long as we support it.\n var first_child = document.head.querySelectorAll(\"*\")[0];\n if (first_child) {\n document.head.insertBefore(el, first_child);\n } else {\n document.head.append(el);\n }\n};\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.getPath}\n
\n
\n {#if selItem.getURL && (selItem.getIcon || selItem.portal_type === \"Image\")}{/if}\n
\n {/each}\n {/if}\n {#if !$selectedItems}\n

loading selected items

\n {/if}\n
\n 0 &&\n ($selectedItems.length || 0) >= $config.maximumSelectionSize}\n on:click|preventDefault={() => ($showContentBrowser = true)}\n >{#if $config.maximumSelectionSize == 1}choose{:else}add{/if}\n\n\n\n","\n\n\n\n"],"names":["___CSS_LOADER_EXPORT___","push","module","id","async","request","_ref","method","path","uids","searchTerm","levelInfoPath","base_url","selectableTypes","query","URLSearchParams","set","length","uid","append","url","toString","console","log","headers","Headers","response","fetch","json","ok","filtered_response","items","items_total","it","indexOf","portal_type","is_folderish","errors","clickOutside","node","handleClick","event","contains","target","dispatchEvent","CustomEvent","document","addEventListener","destroy","removeEventListener","resolveIcon","iconName","iconCode","utils","getIcon","outerHTML","currentPath","writable","options","styleTagTransform","setAttributes","insert","el","first_child","head","querySelectorAll","insertBefore","domAPI","insertStyleElement","locals","uploadEnabled","x","opacity","message","UID","Title","toLowerCase","replace","getURL","gridView","selectable","duration","getPath","split","pop","Description","scrollX","container","config","pathCache","showContentBrowser","selectedItems","selectedUids","contentItems","store","get","updateCache","portalPath","URL","pathname","parts","RegExp","depth","maxDepth","paths","partsToShow","slice","pathPrefix","join","sub_path","levels","pathCounter","p","isFirstPath","skipCache","level","c","Object","keys","levelInfo","update","n","$config","showUpload","previewItem","currentLevelData","vw","Math","max","documentElement","clientWidth","window","innerWidth","changePath","item","pathParts","folderPath","scrollToRight","selectItem","JSON","stringify","fieldId","$selectedItems","map","$showContentBrowser","$selectedUids","cancelSelection","scrollContainer","querySelector","scrollWidth","$currentPath","timeout","uploadEl","classList","add","baseUrl","relativePath","allowPathSelection","hiddenInputContainer","success","fileUpload","obj","timeoutId","clearTimeout","setTimeout","this","value","maximumSelectionSize","ref","initializing","selectedItemsNode","getElementById","unselectItem","i","splice","initializeSorting","previousSibling","draggable","animation","onUpdate","e","sortedUuids","children","dataset","setNodeValue","node_val","separator","initialValue","selection","selectedItemsUids","selectedItemsFromUids","getSelectedItemsUids","initializeSelectedItemsStore","forEach","selectedUidsFromSelectedItems","name","detail","content","bubbles","event_dispatch","mode","basePath","upload","recentlyUsed","recentlyUsedKey","setContext","setConfig","setPathCache","selItems","setSelectedItems","setShowContentBrowser","selUids","setSelectedUids","body","getAttribute"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/mockup/chunks/40245.a0c8f70679af624ddf10.min.js b/dist/mockup/chunks/40245.a0c8f70679af624ddf10.min.js deleted file mode 100644 index 052cb94af..000000000 --- a/dist/mockup/chunks/40245.a0c8f70679af624ddf10.min.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunk_plone_mockup=self.webpackChunk_plone_mockup||[]).push([[40245],{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()("