"use strict";(self.webpackChunkbookmarks=self.webpackChunkbookmarks||[]).push([["src_components_CustomPickerElement_vue"],{78201:(e,t,s)=>{s.d(t,{default:()=>i});var c=s(55268),r=s(47845),a=s(79753);const o={name:"CustomPickerElement",components:{NcSearch:c.WL},mounted(){setTimeout((()=>{this.$refs.picker?.focus()}),300)},methods:{cancelSearch(){this.$emit("cancel")},async submitLink(e){const t=await r.Z.get((0,a.generateUrl)("/apps/bookmarks/bookmark/"+e.slice(e.lastIndexOf("/")+1)));this.$emit("submit",t.data.item.url)}}};const i=(0,s(51900).Z)(o,(function(){var e=this,t=e._self._c;return t("div",{staticStyle:{width:"100%"}},[t("NcSearch",{ref:"picker",attrs:{provider:{search_providers_ids:["bookmarks"],title:e.t("bookmarks","Bookmarks")}},on:{cancel:e.cancelSearch,submit:e.submitLink}})],1)}),[],!1,null,null,null).exports}}]);
//# sourceMappingURL=bookmarks-src_components_CustomPickerElement_vue.js.map?v=e7c93b147e3670ee95f3