text: !function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n=window.cmsWebpackJsonp;window.cmsWebpackJsonp=function(r,a){for(var o,c,u=0,l=[];u<r.length;u++)c=r[u],i[c]&&l.push.apply(l,i[c]),i[c]=0;for(o in a)t[o]=a[o];for(n&&n(r,a);l.length;)l.shift().call(null,e)};var r={},i={3:0};return e.e=function(t,n){if(0===i[t])return n.call(null,e);if(void 0!==i[t])i[t].push(n);else{i[t]=[n];var r=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.src=e.p+"bundle."+({0:"admin.widget"}[t]||t)+".min.js",r.appendChild(a)}},e.m=t,e.c=r,e.p="",e(0)}({0:function(t,e,n){n.p=n(6)("bundle.forms.pagesmartlinkwidget"),n.e(0,function(t){var e=window.CMS||{},r=n(1),i=n(3);n(47),e.PageSmartLinkWidget=new i({initialize:function(t){this.options=r.extend(!0,{},this.options,t),this._setup(t)},_setup:function(t){r("#"+t.id).select2({placeholder:t.text,allowClear:!0,multiple:!1,ajax:{url:t.url,dataType:"json",data:function(e){return{q:e,language_code:t.lang}},results:function(t){return{more:!1,results:r.map(t,function(t){return{id:t.redirect_url,text:t.title+" (/"+t.path+")"}})}}},createSearchChoice:function(t,e){return 0===r(e).filter(function(){return 0===this.text.localeCompare(t)}).length?{id:t,text:t}:void 0},initSelection:function(t,e){e({id:t.val(),text:t.val()})}})}}),r(function(){e.Widgets._pageSmartLinkWidgets.forEach(function(t){new e.PageSmartLinkWidget(t)})})})},6:function(t,e){var n=function(t){var e=new RegExp(t+".*$","gi");if(document.currentScript)return document.currentScript.src.replace(e,"");var n,r,i=function(e,n){for(var r,i,a=0;a<e.length;a++)if(i=null,void 0!==e[a].getAttribute.length&&(i=e[a].getAttribute(n,2)),i&&(r=i,r=r.split("?")[0].split("/").pop(),r===t))return i};return n=document.getElementsByTagName("script"),r=i(n,"src"),r?r.replace(e,""):""};t.exports=n}});