PageSourceSearch

https://www.sdcivicartcollection.com/portals/civic-art-collection/…?3.19.9.5ce6b1f8b.1788641030714

js sdcivicartcollection.com collected 2026-10-08 05:08:07 UTC 67,556 bytes, 2 lines download raw bytes

1(self.rspackChunkmono_repo=self.rspackChunkmono_repo||[]).push([[9543],{12334(e,t,n){e.exports=function(){var e=n(/*! ./select */34559),t=n(/*! ../utils */26919),i=n(/*! jquery */78074);function r(e,t){this._dataToConvert=t.get("data")||[],r.__super__.constructor.call(this,e,t)}return t.Extend(r,e),r.prototype.bind=function(e,t){r.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},r.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,n){return n.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),r.__super__.select.call(this,e)},r.prototype.convertToOptions=function(e){var n=this,r=this.$element.find("option"),o=r.map(function(){return n.item(i(this)).id}).get(),s=[];function a(e){return function(){return i(this).val()==e.id}}for(var l=0;l<e.length;l++){var c=this._normalizeItem(e[l]);if(i.inArray(c.id,o)>=0){var u=r.filter(a(c)),p=this.item(u),d=i.extend(!0,{},c,p),h=this.option(d);u.replaceWith(h);continue}var f=this.option(c);if(c.children){var m=this.convertToOptions(c.children);t.appendMany(f,m)}s.push(f)}return s},r}()},26022(e,t,n){e.exports=function(){var e=n(/*! ../utils */26919);function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=t.id+"-result-";return i+=e.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+e.generateChars(4),i},t}()},65971(e){e.exports=function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){if(t.term=t.term||"",t.term.length<this.minimumInputLength){this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}});return}e.call(this,t,n)},e}()},34559(e,t,n){e.exports=function(){var e=n(/*! ./base */26022),t=n(/*! ../utils */26919),i=n(/*! jquery */78074);function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,e),r.prototype.current=function(e){var t=[],n=this;this.$element.find(":selected").each(function(){var e=i(this),r=n.item(e);t.push(r)}),e(t)},r.prototype.select=function(e){var t=this;if(e.selected=!0,i(e.element).is("option")){e.element.selected=!0,this.$element.trigger("input").trigger("change");return}if(this.$element.prop("multiple"))this.current(function(n){var r=[];(e=[e]).push.apply(e,n);for(var o=0;o<e.length;o++){var s=e[o].id;-1===i.inArray(s,r)&&r.push(s)}t.$element.val(r),t.$element.trigger("input").trigger("change")});else{var n=e.id;this.$element.val(n),this.$element.trigger("input").trigger("change")}},r.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,i(e.element).is("option")){e.element.selected=!1,this.$element.trigger("input").trigger("change");return}this.current(function(n){for(var r=[],o=0;o<n.length;o++){var s=n[o].id;s!==e.id&&-1===i.inArray(s,r)&&r.push(s)}t.$element.val(r),t.$element.trigger("input").trigger("change")})}},r.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},r.prototype.destroy=function(){this.$element.find("*").each(function(){t.RemoveData(this)})},r.prototype.query=function(e,t){var n=[],r=this;this.$element.children().each(function(){var t=i(this);if(t.is("option")||t.is("optgroup")){var o=r.item(t),s=r.matches(e,o);null!==s&&n.push(s)}}),t({results:n})},r.prototype.addOptions=function(e){t.appendMany(this.$element,e)},r.prototype.option=function(e){e.children?(n=document.createElement("optgroup")).label=e.text:void 0!==(n=document.createElement("option")).textContent?n.textContent=e.text:n.innerText=e.text,void 0!==e.id&&(n.value=e.id),e.disabled&&(n.disabled=!0),e.selected&&(n.selected=!0),e.title&&(n.title=e.title);var n,r=i(n),o=this._normalizeItem(e);return o.element=n,t.StoreData(n,"data",o),r},r.prototype.item=function(e){var n={};if(null!=(n=t.GetData(e[0],"data")))return n;if(e.is("option"))n={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){n={text:e.prop("label"),children:[],title:e.prop("title")};for(var r=e.children("option"),o=[],s=0;s<r.length;s++){var a=i(r[s]),l=this.item(a);o.push(l)}n.children=o}return(n=this._normalizeItem(n)).element=e[0],t.StoreData(e[0],"data",n),n},r.prototype._normalizeItem=function(e){return e!==Object(e)&&(e={id:e,text:e}),null!=(e=i.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),i.extend({},{selected:!1,disabled:!1},e)},r.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},r}()}
1,24138(e,t,n){e.exports=function(){var e=n(/*! jquery */78074);function t(t,n,i){var r=i.get("tags"),o=i.get("createTag");void 0!==o&&(this.createTag=o);var s=i.get("insertTag");if(void 0!==s&&(this.insertTag=s),t.call(this,n,i),e.isArray(r))for(var a=0;a<r.length;a++){var l=r[a],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return t.prototype.query=function(e,t,n){var i=this;if(this._removeOldTags(),null==t.term||null!=t.page){e.call(this,t,n);return}function r(e,o){for(var s=e.results,a=0;a<s.length;a++){var l=s[a],c=null!=l.children&&!r({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c){if(o)return!1;e.data=s,n(e);return}}if(o)return!0;var u=i.createTag(t);if(null!=u){var p=i.option(u);p.attr("data-select2-tag",!0),i.addOptions([p]),i.insertTag(s,u)}e.results=s,n(e)}e.call(this,t,r)},t.prototype.createTag=function(t,n){var i=e.trim(n.term);return""===i?null:{id:i,text:i}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this.$element.find("option[data-select2-tag]").each(function(){this.selected||e(this).remove()})},t}()},505(e,t,n){e.exports=function(){var e=n(/*! jquery */78074),t=n(/*! ./utils */26919);function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},i.prototype.bind=function(){},i.prototype.position=function(e,t){},i.prototype.destroy=function(){this.$dropdown.remove()},i}()},27493(e,t,n){e.exports=function(){var e=n(/*! jquery */78074),t=n(/*! ../utils */26919);function i(t,n,i){this.$dropdownParent=e(i.get("dropdownParent")||document.body),t.call(this,n,i)}return i.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},i.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},i.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},i.prototype.render=function(t){var n=e("<span></span>"),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},i.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},i.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},i.prototype._attachPositioningHandler=function(n,i){var r=this,o="scroll.
1select2."+i.id,s="resize.select2."+i.id,a="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(o,function(n){var i=t.GetData(this,"select2-scroll-position");e(this).scrollTop(i.y)}),e(window).on(o+" "+s+" "+a,function(e){r._positionDropdown(),r._resizeDropdown()})},i.prototype._detachPositioningHandler=function(n,i){var r="scroll.select2."+i.id,o="resize.select2."+i.id,s="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(r),e(window).off(r+" "+o+" "+s)},i.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),r=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=o.top,s.bottom=o.top+s.height;var a={height:this.$dropdown.outerHeight(!1)},l={top:t.scrollTop(),bottom:t.scrollTop()+t.height()},c=l.top<o.top-a.height,u=l.bottom>o.bottom+a.height,p={left:o.left,top:s.bottom},d=this.$dropdownParent;"static"===d.css("position")&&(d=d.offsetParent());var h={top:0,left:0};(e.contains(document.body,d[0])||d[0].isConnected)&&(h=d.offset()),p.top-=h.top,p.left-=h.left,n||i||(r="below"),u||!c||n?!c&&u&&n&&(r="below"):r="above",("above"==r||n&&"below"!==r)&&(p.top=s.top-h.top-a.height),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(p)},i.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},i.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i}()},29502(e){e.exports=function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t.addClass("select2-dropdown--below"),n.addClass("select2-container--below")},e}()},38867(e){e.exports=function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}()},80935(e){e.exports=function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e}()},79064(e,t,n){e.exports=function(){var e=n(/*! jquery */78074);function t(){}return n(/*! ../utils */26919),t.prototype.render=function(t){var n=t.call(this),i=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),n.prepend(i),n},t.prototype.bind=function(t,n,i){var r=this,o=n.id+"-results";t.call(this,n,i),this.$search.on("keydown",function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(t){e(this).off("keyup")}),this.$search.on("keyup input",function(e){r.handleSearch(e)}),n.on("open",function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",o),r.$search.trigger("focus"),window.setTimeout(function(){r.$search.trigger("focus")},0)}),n.on("close",function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")}),n.on("focus",function(){n.isOpen()||r.$search.trigger("focus")}),n.on("results:all",function(e){(null==e.query.term||""===e.query.term)&&(r.showSearch(e)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))}),n.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}()}
1,39341(e,t,n){e.exports=function(){var e=n(/*! ../utils */26919);function t(){}return t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},t.prototype._handleSelectOnClose=function(t,n){if(n&&null!=n.originalSelect2Event){var i=n.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var o=e.GetData(r[0],"data");null!=o.element&&o.element.selected||null==o.element&&o.selected||this.trigger("select",{data:o})}},t}()},820(e){e.exports={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}},41700(e,t,n){e.exports=function(){var e=n(/*! jquery */78074),t=n(/*! ./utils */26919);function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(t.message);i.append(n(r(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null==e.results||0===e.results.length){0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"});return}e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],r=this.option(i);t.push(r)}this.$results.append(t)},i.prototype.position=function(e,t){t.find(".select2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var n=this;this.data.current(function(i){var r=e.map(i,function(e){return e.id.toString()});n.$results.find(".select2-results__option[aria-selected]").each(function(){var n=e(this),i=t.GetData(this,"data"),o=""+i.id;null!=i.element&&i.element.selected||null==i.element&&e.inArray(o,r)>-1?n.attr("aria-selected","true"):n.attr("aria-selected","false")})})},i.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(n){var i=document.createElement("li");i.className="select2-results__option";var r={role:"option","aria-selected":"false"},o=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var s in(null!=n.element&&o.call(n.element,":disabled")||null==n.element&&n.disabled)&&(delete r["aria-selected"],r["aria-disabled"]="true"),null==n.id&&delete r["aria-selected"],null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(r.role="group",r["aria-label"]=n.text,delete r["aria-selected"]),r){var a=r[s];i.setAttribute(s,a)}if(n.children){var l=e(i),c=document.createElement("strong");c.className="select2-results__group",e(c),this.template(n,c);for(var u=[],p=0;p<n.children.length;p++){var d=n.children[p],h=this.option(d);u.push(h)}var f=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});f.append(u),l.append(c),l.append(f)}else this.template(n,i);return t.StoreData(i,"data",n),i},i.prototype.bind=function(n,i){var r=this,o=n.id+"-results";this.$results.attr("id",o),n.on("results:all",function(e){r.clear(),r.append(e.data),n.isOpen()&&(r.setClasses(),r.highlightFirstItem())}),n.on("results:append",function(e){r.append(e.data),n.isOpen()&&r.setClasses()}),n.on("query",function(e){r.hideMessages(),r.showLoading(e)}
1),n.on("select",function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())}),n.on("unselect",function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())}),n.on("open",function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()}),n.on("close",function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")}),n.on("results:toggle",function(){var e=r.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),n.on("results:select",function(){var e=r.getHighlightedResults();if(0!==e.length){var n=t.GetData(e[0],"data");"true"==e.attr("aria-selected")?r.trigger("close",{}):r.trigger("select",{data:n})}}),n.on("results:previous",function(){var e=r.getHighlightedResults(),t=r.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var o=t.eq(i);o.trigger("mouseenter");var s=r.$results.offset().top,a=o.offset().top,l=r.$results.scrollTop()+(a-s);0===i?r.$results.scrollTop(0):a-s<0&&r.$results.scrollTop(l)}}),n.on("results:next",function(){var e=r.getHighlightedResults(),t=r.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var o=r.$results.offset().top+r.$results.outerHeight(!1),s=i.offset().top+i.outerHeight(!1),a=r.$results.scrollTop()+s-o;0===n?r.$results.scrollTop(0):s>o&&r.$results.scrollTop(a)}}),n.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),n.on("results:message",function(e){r.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=r.$results.scrollTop(),n=r.$results.get(0).scrollHeight-t+e.deltaY,i=e.deltaY>0&&t-e.deltaY<=0,o=e.deltaY<0&&n<=r.$results.height();i?(r.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):o&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(n){var i=e(this),o=t.GetData(this,"data");if("true"===i.attr("aria-selected")){r.options.get("multiple")?r.trigger("unselect",{originalEvent:n,data:o}):r.trigger("close",{});return}r.trigger("select",{originalEvent:n,data:o})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(n){var i=t.GetData(this,"data");r.getHighlightedResults().removeClass("select2-results__option--highlighted"),r.trigger("results:focus",{data:i,element:e(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,i=e.offset().top,r=this.$results.scrollTop()+(i-n),o=i-n;r-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},i.prototype.template=function(t,n){var i=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),o=i(t,n);null==o?n.style.display="none":"string"==typeof o?n.innerHTML=r(o):e(n).append(o)},i}()},65173(e,t,n){e.exports=function(){var e=n(/*! jquery */78074),t=n(/*! ../keys */820),i=n(/*! ../utils */26919);function r(){}return r.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},r.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var r=i.GetData(n[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var s={data:r};if(this.trigger("clear",s),s.prevented){this.$element.val(o);return}for(var a=0;a<r.length;a++)if(s={data:r[a]},this.trigger("unselect",s),s.prevented){this.$element.val(o);return}this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}},r.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},r.prototype.update=function(t,n){if(t.call(this,n),!(this.$selection.find(".select2-selection__placeholder").length>0)&&0!==n.length){var r=e('<span class="select2-selection__clear" title="'+this.options.get("translations").get("removeAllItems")()+'">&times;</span>');i.StoreData(r[0],"data",n),this.$selection.find(".select2-selection__rendered").prepend(r)}},r}()}
1,20322(e,t,n){e.exports=function(){var e=n(/*! jquery */78074),t=n(/*! ../utils */26919),i=n(/*! ../keys */820);function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,t.Observable),r.prototype.render=function(){var n=e('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n,n},r.prototype.bind=function(e,t){var n=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},r.prototype._handleBlur=function(t){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)},1)},r.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,function(n){var i=e(n.target).closest(".select2");e(".select2.select2-container--open").each(function(){this!=i[0]&&t.GetData(this,"element").select2("close")})})},r.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},r.prototype.position=function(e,t){t.find(".selection").append(e)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(e){throw Error("The `update` method must be defined in child classes.")},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r}()},20038(e,t,n){e.exports=function(){var e=n(/*! jquery */78074);function t(){}return t.prototype.bind=function(t,n,i){var r=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],s=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,i),n.on("*",function(t,n){if(-1!==e.inArray(t,o)){n=n||{};var i=e.Event("select2:"+t,{params:n});r.$element.trigger(i),-1!==e.inArray(t,s)&&(n.prevented=i.isDefaultPrevented())}})},t}()},80007(e,t,n){e.exports=function(){var e=n(/*! jquery */78074),t=n(/*! ./base */20322),i=n(/*! ../utils */26919);function r(e,t){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},r.prototype.bind=function(t,n){var o=this;r.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){o.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!o.isDisabled()){var n=e(this).parent(),r=i.GetData(n[0],"data");o.trigger("unselect",{originalEvent:t,data:r})}})},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},r.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var r=e[n],o=this.selectionContainer(),s=this.display(r,o);o.append(s);var a=r.title||r.text;
1a&&o.attr("title",a),i.StoreData(o[0],"data",r),t.push(o)}var l=this.$selection.find(".select2-selection__rendered");i.appendMany(l,t)}},r}()},99666(e,t,n){e.exports=function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return n(/*! ../utils */26919),e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e}()},48460(e,t,n){e.exports=function(){var e=n(/*! jquery */78074),t=n(/*! ../utils */26919),i=n(/*! ../keys */820);function r(e,t,n){e.call(this,t,n)}return r.prototype.render=function(t){var n=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var i=t.call(this);return this._transferTabIndex(),i},r.prototype.bind=function(e,n,r){var o=this,s=n.id+"-results";e.call(this,n,r),n.on("open",function(){o.$search.attr("aria-controls",s),o.$search.trigger("focus")}),n.on("close",function(){o.$search.val(""),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")}),n.on("enable",function(){o.$search.prop("disabled",!1),o._transferTabIndex()}),n.on("disable",function(){o.$search.prop("disabled",!0)}),n.on("focus",function(e){o.$search.trigger("focus")}),n.on("results:focus",function(e){e.data._resultId?o.$search.attr("aria-activedescendant",e.data._resultId):o.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){o.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){o._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented(),e.which===i.BACKSPACE&&""===o.$search.val()){var n=o.$searchContainer.prev(".select2-selection__choice");if(n.length>0){var r=t.GetData(n[0],"data");o.searchRemoveChoice(r),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){o.$search.val()&&e.stopPropagation()});var a=document.documentMode,l=a&&a<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){if(l){o.$selection.off("input.search input.searchcheck");return}o.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(l&&"input"===e.type){o.$selection.off("input.search input.searchcheck");return}var t=e.which;t!=i.SHIFT&&t!=i.CTRL&&t!=i.ALT&&t!=i.TAB&&o.handleSearch(e)})},r.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},r.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},r.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";e=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").width():.75*(this.$search.val().length+1)+"em",this.$search.css("width",e)},r}()}
1,90799(e,t,n){e.exports=function(){var e=n(/*! jquery */78074),t=n(/*! ./base */20322),i=n(/*! ../utils */26919);function r(){r.__super__.constructor.apply(this,arguments)}return n(/*! ../keys */820),i.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),e.on("focus",function(t){e.isOpen()||n.$selection.trigger("focus")})},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){if(0===e.length){this.clear();return}var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i);var r=t.title||t.text;r?n.attr("title",r):n.removeAttr("title")},r}()},26919(e,t,n){e.exports=function(){var e=n(/*! jquery */78074),t={};function i(e){var t=e.prototype,n=[];for(var i in t)"function"==typeof t[i]&&"constructor"!==i&&n.push(i);return n}t.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},t.Decorate=function(e,t){var n=i(t),r=i(e);function o(){var n=Array.prototype.unshift,i=t.prototype.constructor.length,r=e.prototype.constructor;i>0&&(n.call(arguments,e.prototype.constructor),r=t.prototype.constructor),r.apply(this,arguments)}function s(){this.constructor=o}t.displayName=e.displayName,o.prototype=new s;for(var a=0;a<r.length;a++){var l=r[a];o.prototype[l]=e.prototype[l]}for(var c=0;c<n.length;c++){var u=n[c];o.prototype[u]=function(e){var n=function(){};e in o.prototype&&(n=o.prototype[e]);var i=t.prototype[e];return function(){return Array.prototype.unshift.call(arguments,n),i.apply(this,arguments)}}(u)}return o};var r=function(){this.listeners={}};r.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},r.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},r.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},t.Observable=r,t.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var r=0;r<n.length;r++){var o=n[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),r==n.length-1&&(i[o]=e[t]),i=i[o]}delete e[t]}}return e},t.hasScroll=function(t,n){var i=e(n),r=n.style.overflowX,o=n.style.overflowY;return(r!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===r||"scroll"===o||i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth)},t.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},t.appendMany=function(t,n){if("1.7"===e.fn.jquery.substr(0,3)){var i=e();e.map(n,function(e){i=i.add(e)}),n=i}t.append(n)},t.__cache={};var o=0;return t.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++o),t=o.toString())),t},t.StoreData=function(e,n,i){var r=t.GetUniqueElementId(e);t.__cache[r]||(t.__cache[r]={}),t.__cache[r][n]=i},t.GetData=function(n,i){var r=t.GetUniqueElementId(n);return i?t.__cache[r]&&null!=t.__cache[r][i]?t.__cache[r][i]:e(n).data(i):t.__cache[r]},t.RemoveData=function(e){var n=t.GetUniqueElementId(e);null!=t.__cache[n]&&delete t.__cache[n],e.removeAttribute("data-select2-id")},t}()},46450(){/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/de",[],function(){return{errorLoading:function(){return"Die Ergebnisse konnten nicht geladen werden."},inputTooLong:function(e){return"Bitte "+(e.input.length-e.maximum)+" Zeichen weniger eingeben"},inputTooShort:function(e){return"Bitte "+(e.minimum-e.input.length)+" Zeichen mehr eingeben"},loadingMore:function(){return"Lade mehr Ergebnisse…"},maximumSelected:function(e){var t="Sie können nur "+e.maximum+" Element";return 1!=e.maximum&&(t+="e"),t+=" auswählen"},noResults:function(){return"Keine Übereinstimmungen gefunden"},searching:function(){return"Suche…"},removeAllItems:function(){return"Entferne alle Elemente"}}}),e.define,e.require}()},69953(){/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/es",[],function(){return{errorLoading:function(){return"No se pudieron cargar los resultados"},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Por favor, elimine "+t+" car"+(1==t?"ácter":"acteres")},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Por favor, introduzca "+t+" car"+(1==t?"ácter":"acteres")},loadingMore:function(){return"Cargando más resultados…"},maximumSelected:function(e){var t="Sólo puede seleccionar "+e.maximum+" elemento";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No se encontraron resultados"}
1,searching:function(){return"Buscando…"},removeAllItems:function(){return"Eliminar todos los elementos"}}}),e.define,e.require}()},85049(){/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/fr",[],function(){return{errorLoading:function(){return"Les résultats ne peuvent pas être chargés."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Supprimez "+t+" caractère"+(t>1?"s":"")},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Saisissez au moins "+t+" caractère"+(t>1?"s":"")},loadingMore:function(){return"Chargement de résultats supplémentaires…"},maximumSelected:function(e){return"Vous pouvez seulement sélectionner "+e.maximum+" élément"+(e.maximum>1?"s":"")},noResults:function(){return"Aucun résultat trouvé"},searching:function(){return"Recherche en cours…"},removeAllItems:function(){return"Supprimer tous les éléments"}}}),e.define,e.require}()},62732(){/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ja",[],function(){return{errorLoading:function(){return"結果が読み込まれませんでした"},inputTooLong:function(e){return e.input.length-e.maximum+" 文字を削除してください"},inputTooShort:function(e){return"少なくとも "+(e.minimum-e.input.length)+" 文字を入力してください"},loadingMore:function(){return"読み込み中…"},maximumSelected:function(e){return e.maximum+" 件しか選択できません"},noResults:function(){return"対象が見つかりません"},searching:function(){return"検索しています…"},removeAllItems:function(){return"すべてのアイテムを削除"}}}),e.define,e.require}()},81199(){/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ko",[],function(){return{errorLoading:function(){return"결과를 불러올 수 없습니다."},inputTooLong:function(e){return"너무 깁니다. "+(e.input.length-e.maximum)+" 글자 지워주세요."},inputTooShort:function(e){return"너무 짧습니다. "+(e.minimum-e.input.length)+" 글자 더 입력해주세요."},loadingMore:function(){return"불러오는 중…"},maximumSelected:function(e){return"최대 "+e.maximum+"개까지만 선택 가능합니다."},noResults:function(){return"결과가 없습니다."},searching:function(){return"검색 중…"},removeAllItems:function(){return"모든 항목 삭제"}}}),e.define,e.require}()},36675(){/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/nl",[],function(){return{errorLoading:function(){return"De resultaten konden niet worden geladen."},inputTooLong:function(e){return"Gelieve "+(e.input.length-e.maximum)+" karakters te verwijderen"},inputTooShort:function(e){return"Gelieve "+(e.minimum-e.input.length)+" of meer karakters in te voeren"},loadingMore:function(){return"Meer resultaten laden…"},maximumSelected:function(e){var t="Er "+(1==e.maximum?"kan":"kunnen")+" maar "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t+=" worden geselecteerd"},noResults:function(){return"Geen resultaten gevonden…"},searching:function(){return"Zoeken…"},removeAllItems:function(){return"Verwijder alle items"}}}),e.define,e.require}()},33725(){/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/zh-CN",[],function(){return{errorLoading:function(){return"无法载入结果。"},inputTooLong:function(e){return"请删除"+(e.input.length-e.maximum)+"个字符"},inputTooShort:function(e){return"请再输入至少"+(e.minimum-e.input.length)+"个字符"}
1,loadingMore:function(){return"载入更多结果…"},maximumSelected:function(e){return"最多只能选择"+e.maximum+"个项目"},noResults:function(){return"未找到结果"},searching:function(){return"搜索中…"},removeAllItems:function(){return"删除所有项目"}}}),e.define,e.require}()},57556(module){module.exports=function(obj){var __t,__p="",__j=Array.prototype.join;with(obj||{})__p+='\n<!-- build-targets/portal/packages/core-cms/src/templates/CMSActionEditView.html -->\n<div class="container">\n	<form id="cms-action-edit-view-form" role="form" data-nx-validate-form>\n\n		<header class="header">\n			<h2 class="title"><span class="text">'+(null==(__t=headerTitle)?"":_.escape(__t))+'</span></h2>\n		</header>\n\n		<div class="container-fluid">\n			<div class="control-group">\n				<div name="target-select" class="controls">\n					<!-- Need logic to disable this for when editing and not adding -->\n\n					<div>\n						<div class="form-group">\n							<label class="control-label form-group" for="type">\n								<span data-i18n="i18n.linkType">i18n.linkType</span>\n							</label>\n							<select name="type" class="form-control">\n								 ',_.each(types,function(e){__p+='\n								<option name="'+(null==(__t=e)?"":_.escape(__t))+'"\n									value="'+(null==(__t=e)?"":_.escape(__t))+'"\n									data-i18n="i18n.'+(null==(__t=_.toCamelCase(e))?"":_.escape(__t))+'"\n									'+(null==(__t=type==e?" selected":"")?"":__t)+" >\n									"+(null==(__t=e)?"":__t)+"\n								</option>\n								"}),__p+='\n							 </select>\n						</div>\n\n							<div data-nx-group class="form-group">\n								<label class="control-label" for="link-asset" data-i18n="i18n.asset">i18n.asset</label>\n								<select name="link-asset" data-autocomplete="asset" data-nx-autocomplete-container="body">\n									<option value="0" data-i18n="i18n.selectAnAsset">i18n.selectAnAsset</option>\n									',type===types.asset&&contentId&&(__p+='\n									<option value="'+(null==(__t=contentId)?"":_.escape(__t))+'" selected="selected">'+(null==(__t=assetName)?"":_.escape(__t))+"</option>\n									"),__p+='\n								</select>\n								<input class="hidden" name="asset-name" value="'+(null==(__t=assetName)?"":_.escape(__t))+'">\n							</div>\n							<div data-nx-group class="form-group">\n								<label class="control-label" for="link-category" data-i18n="i18n.folder">Folder</label>\n								<select name="link-category" data-autocomplete="category" data-nx-autocomplete-container="body">\n									<option value="0" data-i18n="i18n.selectACategory">i18n.selectACategory</option>\n									',type===types.category&&contentId&&(__p+='\n									<option value="'+(null==(__t=contentId)?"":_.escape(__t))+'" selected>'+(null==(__t=label)?"":_.escape(__t))+"</option>\n									"),__p+='\n									</select>\n							</div>\n							<div data-nx-group class="form-group">\n								<label class="control-label" for="link-url" data-i18n="i18n.url">i18n.url</label>\n								<input required type="text" name="link-url" class="form-control" value="'+(null==(__t=type===types.url&&contentId?contentId:"")?"":_.escape(__t))+'" >\n							</div>\n							<div data-nx-group class="form-group">\n								<label class="control-label" for="link-action" data-i18n="i18n.action">i18n.action</label>\n								<input required type="text" name="link-action" class="form-control" value="'+(null==(__t=type===types.action&&contentId?contentId:"")?"":_.escape(__t))+'" >\n							</div>\n							<!--\n							<div>\n								<label class="control-label" for="link-name" data-i18n="i18n.name">Name</label>\n								<input type="text" name="link-name" class="form-control" required>\n							</div>\n							-->\n							<div class="form-group">\n								<label class="control-label" for="link-label" data-i18n="i18n.label">i18n.label</label>\n								<input type="text" name="link-label" class="form-control" value="'+(null==(__t=label)?"":_.escape(__t))+'" required>\n							</div>\n\n					</div>\n				</div>\n			</div>\n		</div>\n\n		<footer>\n			<div class="actions">\n				<aside>\n					<button type="button" class="btn btn-default cancel nx-cancel" data-nx-control
1="cancel"><span class="text" data-i18n="i18n.cancel">i18n.cancel</span></button>\n				</aside>\n				<bside>\n					<button type="submit" class="btn btn-save submit" data-nx-control="save"><span class="text" data-i18n="i18n.save">i18n.save</span></button>\n				</bside>\n			</div>\n		</footer>\n\n	</form>\n</div>\n';return __p}},78687(e,t,n){"use strict";n(/*! core-libs/formValidation/dist/js/formValidation */39278),n(/*! core-libs/formValidation/dist/js/framework/bootstrap */76570);var i=n(/*! @netx/core/lib/underscore-netx */97899),r=n(/*! @netx/core/lib/netx-autocomplete */70601);let o=function(e){return e=_.sortBy(e,e=>e.label),_.map(e,e=>({id:e.value,text:e.label}))};FormValidation.Validator.regexp.validate=function(e,t,n){var i,r,o;return""===(o=e.getFieldValue(t,"regexp"))||(i=t.attr("data-nx-fv-caseInsensitive"),_.isString(n.regexp)?r=i?RegExp(n.regexp,"i"):new RegExp(n.regexp):r=n.regexp,r.test(o))},FormValidation.Validator.lookup={html5Attributes:{message:"message",completion:"completion"},validate(e,t,n,i){let s=e.getFieldValue(t,i).toLowerCase().trim();if(""===s)return!0;let a=new $.Deferred,l=(0,r.pQ)({completion:n.completion,LVBHandler:o});return(0,r.ky)(l.completion,s,l.extra,l).then(e=>{if(e.some(t=>e[0].text.toLowerCase()===s)){a.resolve(t,i,{valid:!1,message:n.message||"Name already exists"});return}a.resolve(t,i,{valid:!0})}),a}},FormValidation.Validator.attributeProfile={validate:function(e,t,n,r){var o=(n=n||{}).message,s=e.getFieldValue(t,r),a=!0,l=t.closest(".form-group").find('[data-nx-control="clear-toggle"]:checked').length>0;return(0,i.Po)(s)&&!l&&(o=i18n.t("app:i18n.validationProfileAttributeInvalid"),a=!1),{valid:a,message:o}}},FormValidation.Validator.numberAttr={html5Attributes:{message:"message",trim:"trim",size:"size",type:"type",spec1:"spec1",spec2:"spec2"},validate:function(e,t,n){n=n||{};var i=e.getFieldValue(t,"numberAttr");if((!0===n.trim||"true"===n.trim)&&(i=$.trim(i)),""===i)return!0;var r,o=!0,s=(e.getLocale(),n.message||i18n.t("i18n.validationNumberInvalidLength")),a=$.isNumeric(n.size)?n.size:e.getDynamicOption(t,n.size),l=$.isNumeric(n.type)?n.type:e.getDynamicOption(t,n.type),c=$.isNumeric(n.spec1)?n.spec1:e.getDynamicOption(t,n.spec1),u=$.isNumeric(n.spec2)?n.spec2:e.getDynamicOption(t,n.spec2);return c&&!a&&(a=c),u&&!l&&(l=u),!_.isNumeric(l)||((0==l||5==l)&&_.isNumeric(a)&&a>0&&(r=i.replace(".","").length,a&&r>parseInt(a,10)&&(o=!1,s=n.message||i18n.t("i18n.validationNumberLessDigits",{count:parseInt(a,10)}))),{valid:o,message:s})}};let s=FormValidation.Validator.stringLength.validate;FormValidation.Validator.stringLength.validate=(e,t,n,i)=>{let r=s.call(FormValidation.Validator.stringLength,e,t,n,i);if(!0!==r&&!0!==r.valid&&"password"===t.attr("type")){let i=$.isNumeric(n.min)?n.min:e.getDynamicOption(t,n.min);r.message=i18n.t("i18n.pleaseEnterAtLeastNCharacters",{count:i})}return r},FormValidation.Framework.Bootstrap.prototype.disableSubmitButtons=function(){return this},FormValidation.Base.prototype.destroy=FormValidation.Framework.Bootstrap.prototype.destroy=_.wrap(FormValidation.Base.prototype.destroy,function(e){for(var t in this.options.fields){var n=this.getFieldElements(t);this.options.fields[t].row||this.options.row.selector;for(var i=0;i<n.length;i++){var r=n.eq(i);r.data("fv.messages")||r.data("fv.messages",$())}}return e.apply(this,_.rest(arguments))}),FormValidation.Base.prototype.updateStatus=FormValidation.Framework.Bootstrap.prototype.updateStatus=_.wrap(FormValidation.Base.prototype.updateStatus,function(e){for(var t in this.options.fields){var n=this.getFieldElements(t);this.options.fields[t].row||this.options.row.selector;for(var i=0;i<n.length;i++){var r=n.eq(i);r.data("fv.messages")||r.data("fv.messages",$())}}return e.apply(this,_.rest(arguments))})},76570(){var e;e=jQuery,FormValidation.Framework.Bootstrap=function(t,n,i){n=e.extend(!0,{button:{selector:'[type="submit"]:not([formnovalidate])',disabled:"disabled"},err:{clazz:"help-block",parent:"^(.*)col-(xs|sm|md|lg)-(offset-){0,1}[0-9]+(.*)$"},icon:{valid:null,invalid:null,validating:null,feedback:"form-control-feedback"}
1,row:{selector:".form-group",valid:"has-success",invalid:"has-error",feedback:"has-feedback"}},n),FormValidation.Base.apply(this,[t,n,i])},FormValidation.Framework.Bootstrap.prototype=e.extend({},FormValidation.Base.prototype,{_fixIcon:function(e,t){var n=this._namespace,i=e.attr("type"),r=e.attr("data-"+n+"-field"),o=this.options.fields[r].row||this.options.row.selector,s=e.closest(o);if("checkbox"===i||"radio"===i){var a=e.parent();a.hasClass(i)?t.insertAfter(a):a.parent().hasClass(i)&&t.insertAfter(a.parent())}0===s.find("label").length&&t.addClass("fv-icon-no-label"),0!==s.find(".input-group").length&&t.addClass("fv-bootstrap-icon-input-group").insertAfter(s.find(".input-group").eq(0))},_createTooltip:function(e,t,n){var i=this._namespace,r=e.data(i+".icon");r&&("popover"===n?r.css({cursor:"pointer","pointer-events":"auto"}).popover("destroy").popover({container:"body",content:t,html:!0,placement:"auto top",trigger:"hover click"}):r.css({cursor:"pointer","pointer-events":"auto"}).tooltip("destroy").tooltip({container:"body",html:!0,placement:"auto top",title:t}))},_destroyTooltip:function(e,t){var n=this._namespace,i=e.data(n+".icon");i&&("popover"===t?i.css({cursor:"","pointer-events":"none"}).popover("destroy"):i.css({cursor:"","pointer-events":"none"}).tooltip("destroy"))},_hideTooltip:function(e,t){var n=this._namespace,i=e.data(n+".icon");i&&("popover"===t?i.popover("hide"):i.tooltip("hide"))},_showTooltip:function(e,t){var n=this._namespace,i=e.data(n+".icon");i&&("popover"===t?i.popover("show"):i.tooltip("show"))}}),e.fn.bootstrapValidator=function(t){var n=arguments;return this.each(function(){var i=e(this),r=i.data("formValidation")||i.data("bootstrapValidator");r||(r=new FormValidation.Framework.Bootstrap(this,e.extend({},{events:{formInit:"init.form.bv",formPreValidate:"prevalidate.form.bv",formError:"error.form.bv",formSuccess:"success.form.bv",fieldAdded:"added.field.bv",fieldRemoved:"removed.field.bv",fieldInit:"init.field.bv",fieldError:"error.field.bv",fieldSuccess:"success.field.bv",fieldStatus:"status.field.bv",localeChanged:"changed.locale.bv",validatorError:"error.validator.bv",validatorSuccess:"success.validator.bv"}},"object"==typeof t&&t),"bv"),i.addClass("fv-form-bootstrap").data("formValidation",r).data("bootstrapValidator",r)),"string"==typeof t&&r[t].apply(r,Array.prototype.slice.call(n,1))})},e.fn.bootstrapValidator.Constructor=FormValidation.Framework.Bootstrap},37633(e,t,n){"use strict";n.d(t,{A:()=>V});var i=n(70601),r=n(93694),o=n.n(r),s=n(12334),a=n.n(s),l=n(65971),c=n.n(l),u=n(24138),p=n.n(u),d=n(505),h=n.n(d),f=n(27493),m=n.n(f),g=n(29502),v=n.n(g),y=n(38867),b=n.n(y),w=n(79064),x=n.n(w);n(46450),n(69953),n(85049),n(62732),n(81199),n(36675),n(33725);var C=n(26919),k=n.n(C);let A="select2",S=function(e){return e=_.sortBy(e,e=>e.label),_.map(e,e=>({id:e.value,text:e.label}))},D=function(e){return e=_.sortBy(e,e=>e.name),_.map(e,e=>({id:e.id,text:e.name}))},T=function(e){return _.map(e,e=>({id:_.isUndefined(e.label)?e:e.label,text:_.isUndefined(e.label)?e:e.label}))},E=m().prototype;E._positionDropdown=_.wrap(E._positionDropdown,function(e){e.call(this);var t=this.$dropdown;if(t.hasClass("select2-dropdown--above")){var n=this.$container,i=this.$dropdownContainer,r=n.offset().top+n.height()-i.height()-2;i.css("top",r);return}let o=t.offset(),s=t.height(),a=window.innerHeight;o.top+s>a&&(t.removeClass("select2-dropdown--below").addClass("select2-dropdown--above"),this._positionDropdown())});let I=function(e,t,n,r){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this,e,t)}k().Extend(o,a()),"userOrGroup"===(n=(0,i.pQ)({completion:e,extra:t,INBHandler:D,LVBHandler:S,stringHandler:T,...n})).completion?o.prototype.query=function(e,t){return $.when((0,i.ky)("user",e.term,null,n,r),(0,i.ky)("group",e.term,null,n,r)).then(function(e,n){let i=_.map(e,e=>_.extend(e,{type:"user",text:i18n.t("i18n.user")+": "+e.text})),r=_.map(n,e=>_.extend(e,{type:"group",text:i18n.t("i18n.group")+": "+e.text}));return t({results:_.sortBy(i.concat(r),function(e){return e.text.split(/: /)[1].toLowerCase()})})})}:o.prototype.query=function(e,t){return(0,i.ky)(n.completion,e.term,n.extra,_.omit(n,"completion","extra"),r).then(function(e){return t({results:e})})};let s=k().Decorate(o,c());if(n.flexible&&(s=k().Decorate(s,p())),!n.multiple&&!n.dropdownAdapter){let e=k().Decorate(h(),"body"==n.container?m():v());e=k().Decorate(e,x()),e=k().Decorate(e,b()),n.dropdownAdapter=e}return{dataAdapter:s,minimumInputLength:n["minimum-length"]||1,allowClear:"false"!==n["allow-clear"],autocompleteSearchable:n.autocompleteSearchable||!1,placeholder:n.placeholder||"",selectOnClose:!1!==n.selectOnClose,selectionAdapter:n.selectionAdapter,dropdownAdapter:n.dropdownAdapter,resultsAdapter:n.resultsAdapter,language:n.language||i18n.lnaguage}},L={cleanUpSelect2(){this.Plugins.Destroy("select2")},filterAutocompleteResults:e=>(Array.isArray(e)&&(e=e.filter(e=>"string"==typeof e||e?.text!=="... and more; please add more criteria.")),e),_prepareSelect2(e,t,n){let i=I(t,null,n,this);return i&&e?this.Plugins&&this.Plugins.Initialize("select2",e,i):e&&console.warn(`${n.plugin} autocomplete plugin could not be loaded`),e&&e.setAttribute("data-autocomplete-added","true"),i},prepareSelect2(){(0,i.II)(this.el,"s2").map(e=>{let t={};_.each(["allow-clear","container","template-id","dataset-id","flexible","minimum-length","plugin","placeholder","resource-name","semantic-object-type-id","permission","permission-matrix-level","vocabulary-id"],n=>{t[n]=e.getAttribute(`data-autocomplete-${n}`),"permission-matrix-level"===n&&(t[n]=parseInt(t[n]))}),t.flexible="true"===t.flexible;let n=e.getAttribute("data-autocomplete");e.getAttribute("multiple")&&(t.multiple=!0),t.container=e.getAttribute("data-nx-autocomplete-container"),this._prepareSelect2(e,n,t)})}};function V(e){return!e||e.hasFunctionality(A)||(e.extendFunctionality(L),e.addInitializer((e,t={})=>{e.Plugins.Register({select2:{name:"select2",multiple:!0,destroyMethod(e){e.destroy()},initializeMethod(e,t,n,i){let r=new(n.select2?n.select2:o())(t,{...e.options,..._.omit(n,"select2")});i(r),r.options.multiple||r.on("open",e=>{r.trigger("query",{term:'""'})})},options:{width:"100%"}}}),e.on("preRenderHook",e.cleanUpSelect2).on("postRenderHook",e.prepareSelect2).on("removeHook",e.cleanUpSelect2)},A)),e}(window.Netx=window.Netx||{}).getSelect2Options=L._prepareSelect2;var F=n(65173),P=n.n(F),H=n(20038),R=n.n(H),j=n(80935),O=n.n(j),q=n(99666),z=n.n(q),Q=n(41700),M=n.n(Q),B=n(39341),N=n.n(B),G=n(90799),U=n.n(G),K=n(48460),W=n.n(K),Y=n(80007),Z=n.n(Y),J=n(37107),X=n(15685);let ee={faSearch:(0,J.Kk)(X.MjD).html,faTimes:(0,J.Kk)(X.GRI).html},et=m().prototype;et.position=_.wrap(et.position,function(e,t,n,i){e.call(this,t,n,i),this.options.get("multiple")&&n.removeClass("mdc-text-field__input").addClass("select2-dropdown-wrapper--multiple")}
1),et._positionDropdown=_.wrap(et._positionDropdown,function(e){if(e.call(this),this.$dropdown.hasClass("select2-dropdown--below"))return;let t=this.$container,n=t.closest(".scrollable");if(!n.length)return;let i=t.offset().top-n.offset().top;if(i>=0)return;let r=this.$dropdownContainer;r.css({top:Math.max(parseInt(r.css("top"),10)-i,0)})});let en=c().prototype;en.query=_.wrap(en.query,function(e,t,n,i){let r=e.call(this,t,n,i),o=this.container,s=o&&o.dropdown;if(s&&"function"==typeof s._positionDropdown)return s._positionDropdown(),r}),Z().prototype.render=function(){let e=Z().__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered mdc-chip-set"></ul>'),e};let ei=o().prototype;ei._registerEvents=_.wrap(ei._registerEvents,function(e){if(e.call(this),!this.options.get("multiple"))return;let t=this.$container.parent()[0],n=t.querySelector(".mdc-floating-label"),i=t.querySelector(".mdc-notched-outline__notch");t.classList.contains("mdc-text-field--always-float-label");let r=n&&n.classList.contains("mdc-floating-label--float-above"),o=_.throttle(()=>{if(i&&n){let e=n.offsetWidth;if(!e)return _.delay(()=>{o()},25);!r&&e&&(i.style.width=`${.75*e+8}px`,r=!0)}t&&t.classList.toggle("mdc-notched-outline--notched",!0),n&&n.classList.toggle("mdc-floating-label--float-above",!0)},50),s=e=>{this.isFocused=e=!0===e,t.classList.toggle("mdc-text-field--focused",e),o()};this.hasValue=!_.isEmpty(this.$element.val()),this.isFocused=!1,o(),this.on("blur",()=>{this.isOpen()||s(!1)}),this.on("focus",()=>{s(!0)}),this.on("open",function(){s(!0)}),this.on("select",function(){this.hasValue=!_.isEmpty(this.$element.val()),o()}),this.on("unselect",function(){this.hasValue=!_.isEmpty(this.$element.val()),o()}),this.on("close",function(){this.hasFocus()||s(!1)})}),ei.render=_.wrap(ei.render,function(e){let t=e.apply(this);return this.options.get("multiple")&&t.addClass("mdc-text-field__input"),t});let er=function(e={}){function t(e,n){t.__super__.constructor.call(this,e,n)}k().Extend(t,Z()),t.prototype.update=function(e){if(this.clear(),0===e.length)return;let t=[];for(let n=0;n<e.length;n++){let i=e[n],r=this.selectionContainer(),o=this.display(i,r);r.find(".mdc-chip__text").html(o),r.prop("title",i.title||i.text),r.data("data",i),t.push(r)}let n=this.$selection.find(".select2-selection__rendered");k().appendMany(n,t)},t.prototype.selectionContainer=function(){let e=this.options.get("autocompleteSearchable"),t=[];return e&&(t=t.concat([`<span class="select2-selection__choice__search mdc-chip__icon mdc-chip__icon--leading" role="presentation" title="${i18n.t("i18n.search")}">`,ee.faSearch,"</span>"])),$(['<li class="select2-selection__choice mdc-chip has-delete">',t.join(""),'<span class="mdc-chip__text"></span>','<span class="select2-selection__choice__remove remove mdc-chip__icon mdc-chip__icon--trailing" role="presentation" title="Remove">',ee.faTimes,"</span>","</li>"].join(""))},t.prototype.bind=function(e,t){let n=this;Z().__super__.bind.call(this,e,t),this.$selection.on("click",".select2-selection__choice__remove svg",function(e){if(n.options.get("disabled"))return;let t=$(this).closest(".select2-selection__choice");n.trigger("unselect",{originalEvent:e,data:t.data("data")})}),this.$selection.on("mouseenter",".select2-selection__choice__remove svg",function(e){n.options.get("disabled")||$(this).closest(".select2-selection__choice").addClass("remove-entered")}),this.$selection.on("mouseleave",".select2-selection__choice__remove svg",function(e){n.options.get("disabled")||$(this).closest(".select2-selection__choice").removeClass("remove-entered")}),this.options.get("autocompleteSearchable")&&this.$selection.on("click",".select2-selection__choice__search svg",function(e){let t=$(this).closest(".select2-selection__choice").data("data");n.$element.trigger("select2:searchChip",t)})};let n=k().Decorate(t,z());n=k().Decorate(n,W()),n=k().Decorate(n,R());let i=k().Decorate(h(),m()),r=m();return i=k().Decorate(h(),r),{selectionAdapter:n,dropdownAdapter:i=k().Decorate(i,b()),width:"100%",select2:o()}};window.select2chips=er;var eo=n(54878);let es={faCaretDown:(0,J.Kk)(eo.xBV).html};U().prototype.render=_.wrap(U().prototype.render,function(e){let t=e.apply(this);return t.addClass("dropdown-toggle"),t.find(".select2-selection__arrow").addClass("bs-caret").html(es.faCaretDown),t.on("focus",function(e){t.closest(".mdc-select").addClass("mdc-select--focused")}).on("blur",function(e){t.closest(".mdc-select").removeClass("mdc-select--focused")}),t}),U().prototype.destroy=_.wrap(U().prototype.destroy,function(e){this.$selection.off(),e.apply(this)}),M().prototype.render=function(){let e=$('<ul class="select2-results__options mdc-list" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e,e},M().prototype.option=_.wrap(M().prototype.option,function(e,t){let n=e.call(this,t);return n.classList.add("mdc-list-item"),n}),L._prepareSelect2=_.wrap(L._prepareSelect2,function(e,t,n,i){i.multiple=!!(i.multiple||t.getAttribute("multiple")),i.allowClear=i.allowClear||t&&"false"!==t.getAttribute("data-autocomplete-allow-clear");let r={},o=M();
1if(null!=i.placeholder&&(o=k().Decorate(o,O())),i.selectOnClose&&(o=k().Decorate(o,N())),r.resultsAdapter=o,i.multiple)r={...r,...er(i)};else{let e=U();null!=i.placeholder&&(e=k().Decorate(e,z())),i.allowClear&&(e=k().Decorate(e,P())),e=k().Decorate(e,R()),r.selectionAdapter=e}return e.call(this,t,n,{...r,...i})})},59115(e,t,n){"use strict";n.d(t,{A:()=>c});var i=n(63971),r=n(33622),o=n.n(r),s=n(69861);class a extends i.A{gotoInput(e){this.model.get("input").focus()}static get __name__(){return"FormErrorListItemView"}constructor(e={}){e.events=_.extend({click:"gotoInput"},e.events),e.template=e.template||o(),super(e)}}class l extends i.A{gotoInput(e){this.model.get("input").focus()}static get __name__(){return"FormErrorListView"}constructor(e={}){e.childView=_.extend({viewClass:a},e.childView),e.loadingClassObjects=e.loadingClassObjects||["collection"],e.template=e.template||o(),super(e)}}(0,s.A)(l);let c=l},13222(e,t,n){"use strict";var i=n(/*! @netx/core/lib/netx-view */63971),r=n(/*! ../templates/CMSActionEditView.html */57556),o=n.n(r),s=n(/*! @netx/core/functionality/form */42557),a=n(/*! @netx/core/functionality/select2 */37633),l=n(/*! ../properties/cms */9638);class c extends i.A{preRender(){super.preRender(),_.extend(this.templateVars,this.model.attributes,{pages:this.pages,types:this.linkTypes,type:void 0,contentId:void 0},this.model.parseLink({edit:!0}))}postRender(){super.postRender(),this.showContentId(!1)}showContentId(e){_.isUndefined(e)&&(e=!0),_.each(this.linkTypes,(t,n,i)=>{let r=this.$(`select[name="link-${t}"], input[name="link-${t}"]`);if(this.inputs.$type.val()!==i[t]){this.hideField(r.closest("[data-nx-group]"));return}this.showField(r.closest("[data-nx-group]")),e&&r.val(r.is("select")?0:"").trigger("change")})}submitReady(){let e=this.inputs.$type.val(),t=this.inputs["$link-"+e].val();return!!(t&&"0"!==t&&this.inputs["$link-label"].val())}suggestLabel(e){let t;let n=this.$(e.target),i=n.val();if(!i||"0"===i){this.updateLinkLabel("");return}this.$('[name="content-label"]').val(this.$('[value="'+i+'"]').html());let r=this.inputs&&this.inputs.$type&&this.inputs.$type.val();t=n.is("select")&&e.target.selectedOptions?e.target.selectedOptions[0].innerHTML:$(n.find(`[value="${i}"]`)[0]).html();let o="";if(t||"url"===r){switch(r){case"asset":o=t.replace(/\.\w+$/,"");break;case"category":case"page":o=t;break;case"url":o=i.replace(/^\w+:\/\//,"")}this.updateLinkLabel(o)}}updateLinkLabel(e){let t=this.inputs["$link-label"];t&&t.val(e)}static get __name__(){return"CMSActionEditView"}constructor(e={}){e.eventStr=e.eventStr||"cms:action:edit",e.events=_.extend({'change [name="type"]':"showContentId",'change [name="link-asset"]':"suggestLabel",'change [name="link-category"]':"suggestLabel",'change [name="link-page"]':"suggestLabel",'change [name="link-url"]':"suggestLabel"},e.events),e.hideOnSubmit=!1!==e.hideOnSubmit,e.id=e.id||"cms-action-edit-view",e.removeOnHide=!1!==e.removeOnHide,e.requiresChanges=!1!==e.requiresChanges,e.template=e.template||o(),super(e),this.linkTypes=_.omit(l.yJ.types,"page"),_.each(this.linkTypes,e=>{this.validator.fields[`link-${e}`]={validators:{callback:{callback(t,n,i){return!this.inputs||(i.is("select")&&"0"===t?{valid:!1,message:i18n.t("i18n.requiredErrorString")}:!!this.model.isUniqueLink(this.model.makeLink(e,t))||{valid:!1,message:i18n.t("i18n."+e+"ActionExists",{defaultValue:"A link to that __type__ already exists",type:i18n.t(`i18n.${e}`)})})}}}}}),this.headerTitle=this.model.isNew()?i18n.t("i18n.addLink"):i18n.t("i18n.editLink")}}(0,s.A)(c),(0,a.A)(c),n.d(t,{default:()=>c})},70601(e,t,n){"use strict";var i=n(/*! core-libs/backbone.rpc */69136),r=n.n(i),o=n(/*! @netx/core-app/properties/autocomplete */51607),s=new(r());n.d(t,{},{II:function(e,t){let n=[...e.querySelectorAll("[data-autocomplete]:not([data-autocomplete-added])")];return!n.length&&e.getAttribute("data-autocomplete")&&!e.getAttribute("data-autocomplete-added")&&(n=[e]),n.filter(e=>t===e.getAttribute("data-autocomplete-plugin"))},ky:function(e,t,n,i,r){var a=new $.Deferred,l=o.S[e];_.isFunction(l)&&(l=l(i));let c=i.stringHandler;switch(l.return){case"userAutoListItemToLvb":c=e=>e.map(e=>({id:e.id.toString(),text:e.name}));break;case"lvb":c=i.LVBHandler;break;case"inb":c=i.INBHandler}if(!_.isFunction(c))throw Error("Handler not defined or is invali
1d for autocomplete: "+i.plugin+' - "'+e+'" : '+("lvb"==l.return?"LVB":"String"));if(t){if(!_.isUndefined(l.data)&&_.isUndefined(l.api)){t=t.toLowerCase();var u=c(_.filter(l.data,function(e){return e.label.toLowerCase().includes(t)}));return _.isUndefined(n)||(u=_.map(u,function(e){return _.extend(e,n)})),r&&_.isFunction(r.filterAutocompleteResults)&&(u=r.filterAutocompleteResults(u,e,t)),a.resolve(u)}s.query(l.api,_.map(l.args,function(e){return"_TERM_"==e?t:e}),function(i){var o=c(i);return _.isUndefined(n)||(o=_.map(o,function(e){return _.extend(e,n)})),r&&_.isFunction(r.filterAutocompleteResults)&&(o=r.filterAutocompleteResults(o,e,t)),a.resolve(o)})}else a.resolve([]);return a.promise()},pQ:function(e){switch(e.completion){case"group":return{...e,extra:{type:"group"}};case"tag":return{...e,completion:"tag",tags:!0};case"user":case"users":return{...e,completion:"user",extra:{type:"user"}};case"user/group":case"userOrGroup":return{...e,completion:"userOrGroup"}}return e}})}}]);
2//# sourceMappingURL=95436bc1f0d4a95d280e.js.map?3.19.9.5ce6b1f8b.1788641030714

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.