require.config({paths:{"xwiki-selectize":"../../../../../../resources/uicomponents/suggest/xwiki.selectize.js?v=11.10.12"}});define("xwiki-suggestPropertyValues",["jquery","xwiki-selectize"],function(b){var a=function(e){var h=["","rest","wikis",encodeURIComponent(XWiki.currentWiki),"classes",encodeURIComponent(e.attr("data-className")),"properties",encodeURIComponent(e.attr("data-propertyName")),"values"].join("/");var d=function(i){return function(j,k){b.getJSON(h,i(j)).then(function(l){if(l&&b.isArray(l.propertyValues)){return l.propertyValues.map(c)}else{return[]}}).done(k).fail(k)}};var f={create:true,load:d(function(i){return{fp:i,limit:10}}),loadSelected:d(function(i){return{fp:i,exactMatch:true}})};var g=e.attr("data-freeText");if(g){g=g.toLowerCase();if(g==="allowed"){f.createOnBlur=true}else{if(g==="forbidden"){f.create=false}}}return f};var c=function(e){var d=e.metaData||{};return{value:e.value,label:d.label,icon:d.icon,url:d.url,hint:d.hint}};b.fn.suggestPropertyValues=function(){return this.each(function(){b(this).xwikiSelectize(a(b(this)))})}});require(["jquery","xwiki-suggestPropertyValues","xwiki-events-bridge"],function(a){var b=function(d,e){var c=a((e&&e.elements)||document);c.find(".suggest-propertyValues").suggestPropertyValues()};a(document).on("xwiki:dom:updated",b);b()});