"use strict";!function(i){i.events.on("openItemPicker",function(t,e){if("widgetkit"===e.module){t.stopPropagation();var n=t.origin.$modal({render:function(t){return t("div",{attrs:{"uk-overflow-auto":""},on:{resize:function(t){t.target.firstElementChild.style.height=t.target.style.maxHeight}}},[t("iframe",{attrs:{src:i.url(window.widgetkit.config.route,{p:"/picker",tmpl:"component"})},on:{load:function(t){t.target.contentDocument.body.style.padding="30px"}},style:"width: 100%"})])}});return window.selectWidget=function(t){n.resolve(t.id),delete window.selectWidget},n.show({container:!0})}},5),i.events.on("resolveItemTitle",function(t,e){if("widgetkit"===t.origin.field.module){t.stopPropagation();var n=window.widgetkit;return t.origin.$http.get(n.config.route,{params:{p:"/content/"+e.id},headers:{"X-XSRF-TOKEN":n.config.csrf}}).then(function(t){return t.body.name})}},5)}(window.Vue);