text: !function(e){function t(n){if(i[n])return i[n].exports;var o=i[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n=window.cmsWebpackJsonp;window.cmsWebpackJsonp=function(i,r){for(var c,a,p=0,d=[];p<i.length;p++)a=i[p],o[a]&&d.push.apply(d,o[a]),o[a]=0;for(c in r)e[c]=r[c];for(n&&n(i,r);d.length;)d.shift().call(null,t)};var i={},o={4:0};return t.e=function(e,n){if(0===o[e])return n.call(null,t);if(void 0!==o[e])o[e].push(n);else{o[e]=[n];var i=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.src=t.p+"bundle."+({0:"admin.widget"}[e]||e)+".min.js",i.appendChild(r)}},t.m=e,t.c=i,t.p="",t(0)}([function(e,t,n){n.p=n(4)("bundle.forms.pageselectwidget.min.js"),n.e(0,function(e){var t=window.CMS||{},i=n(1),o=n(3);t.PageSelectWidget=new o({initialize:function(e){this.options=i.extend(!0,{},this.options,e),this._setup(e)},_setup:function(e){var t,n=i("#id_"+e.name+"_0"),o=i("#id_"+e.name+"_1"),r=i("#id_"+e.name+"_2");n.on("change",function(){t=i(this).children(":selected").text(),o.find("optgroup").remove(),o.append(r.find('optgroup[label="'+t+'"]').clone()).change(),setTimeout(function(){o.trigger("change")},0)}).trigger("change"),o.on("change",function(){t=i(this).find("option:selected").val(),t?(r.find("option").prop("selected",!1),r.find('option[value="'+t+'"]').prop("selected",!0)):r.length&&r.find('option[value=""]').prop("selected",!0)}),i("#add_id_"+e.name).hide()}}),i(function(){t.Widgets._pageSelectWidgets.forEach(function(e){new t.PageSelectWidget(e)})})})},,,,function(e,t){var n=function(e){var t=new RegExp(e+"(\\?.*)?$","gi");if(document.currentScript)return document.currentScript.src.replace(t,"");var n,i,o=function(t,n){for(var i,o,r=0;r<t.length;r++)if(o=null,void 0!==t[r].getAttribute.length&&(o=t[r].getAttribute(n,2)),o&&(i=o,i=i.split("?")[0].split("/").pop(),i===e))return o};return n=document.getElementsByTagName("script"),i=o(n,"src"),i?i.replace(t,""):""};e.exports=n}]);