1"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["3290"],{26342(t,e,r){r.r(e),r.d(e,{default:()=>a});var n=r(86871),o=r(55413);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}let l=class extends n.xI{constructor(){super(...arguments),this.onDestroy=t=>{t.preventDefault(),o.A.delete(`/api/v3/front_api/my/favorite_collections/${this.props.id}`).then(()=>this.el.remove())},this.onEdit=async t=>{var e;t.preventDefault();let n=function(t){if(Array.isArray(t))return t}(e=await Promise.all([o.A.get(`/api/v3/front_api/my/favorite_collections/${this.props.id}/edit`),r.e("6372").then(r.bind(r,97958))]))||function(t){var e=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,n,o,i,l=[],a=!0,c=!1;try{o=(e=e.call(t)).next,!1;for(;!(a=(r=o.call(e)).done)&&(l.push(r.value),2!==l.length);a=!0);}catch(t){c=!0,n=t}finally{try{if(!a&&null!=e.return&&(i=e.return(),Object(i)!==i))return}finally{if(c)throw n}}return l}}(e)||function(t){if(t){if("string"==typeof t)return i(t,2);var e=({}).toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?i(t,2):void 0}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=n[0];(0,n[1].EditFavCollectionModal)({props:{title:l.title,description:l.description},callbacks:{CALLBACK_SAVE:t=>{let e=t.title,r=t.description;return o.A.put(`/api/v3/front_api/my/favorite_collections/${this.props.id}`,{data:{favorite_collection:{title:e,description:r}}}).then(()=>{let t=this.findElement("%{c-FavCollectionPreview/title}");t&&(t.textContent=e)})}}})}}get nativeListeners(){return[{selector:"%{c-FavCollectionPreview/edit}",event:"click",handler:this.onEdit},{selector:"%{c-FavCollectionPreview/destroy}",event:"click",handler:this.onDestroy}]}},a=l=function(t,e,r,n){var o,i=arguments.length,l=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(l=(i<3?o(l):i>3?o(e,r,l):o(e,r))||l);return i>3&&l&&Object.defineProperty(e,r,l),l}([(0,n.kz)("FavCollectionPreview")],l)}}]); 2//# sourceMappingURL=sourcemap.chunk.3290.893c2f6d0e0a7a82.9d76248f.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.