1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5c1f0380-4fad-5bff-9a09-2e9857a173ba")}catch(e){}}(); 3(self.rspackChunk=self.rspackChunk||[]).push([[10374],{25388(e,t,r){r.r(t);var n=r(1326),a=r(34630),o=r(5517),i=r(57265),l=r(46373),u=r(62293),s=r(45787);function c(e,t,r,n,a,o,i){try{var l=e[o](i),u=l.value}catch(e){r(e);return}l.done?t(u):Promise.resolve(u).then(n,a)}r.d(t,{},{default:function(e){var t,r=e.getState,p=e.dispatch;return(t=function(){var e,t,c,f,d,y,h;return function(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(i,"next",{value:u(0)}),l(i,"throw",{value:u(1)}),l(i,"return",{value:u(2)}),"function"==typeof Symbol&&l(i,Symbol.iterator,{value:function(){return this}}),i;function u(l){return function(u){var s=[l,u];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&s[0]?n.return:s[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,s[1])).done)return a;switch(n=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}
3if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}(this,function(b){switch(b.label){case 0:if(c=(t=r().gallery).items,null===(f=t.uploadingId))return p((0,s._W)()),0===r().gallery.items.length&&((0,l.H)(["trackEvent","Gallery","upload"]),p((0,o.od)({id:"gallery.upload",messageKey:"uploadModal.success",messageLoader:u.d,timeout:5e3,style:"info"})),p((0,a._1)(null))),[2];if(!(d=c.find(function(e){return e.id===f})))return[2];(y=new FormData).append("image",d.file),y.append("meta",JSON.stringify({title:d.title,description:d.description,position:(0,i.j)(d.dirtyPosition),azimuth:d.azimuth,takenAt:null==(e=d.takenAt)?void 0:e.toISOString(),tags:d.tags,premium:d.premium,license:d.license})),b.label=1;case 1:return b.trys.push([1,3,,4]),[4,(0,n.aj)({getState:r,method:"POST",url:"/gallery/pictures",body:y,expectedStatus:201,cancelActions:[a._1]})];case 2:return b.sent(),p((0,s.U2)(d.id)),p((0,s.S)()),[3,4];case 3:var m;return h=b.sent(),p((0,s.OH)({id:d.id,error:"~".concat((null!=(m=Error)&&"u">typeof Symbol&&m[Symbol.hasInstance]?!!m[Symbol.hasInstance](h):h instanceof m)?h.message:String(h))})),p((0,s.S)()),[3,4];case 4:return[2]}})},function(){var e=this,r=arguments;return new Promise(function(n,a){var o=t.apply(e,r);function i(e){c(o,n,a,i,l,"next",e)}function l(e){c(o,n,a,i,l,"throw",e)}i(void 0)})})()}})}}]); 4//# sourceMappingURL=gallery-item-upload-processor-handler.95886ae466d0526f.js.map 5//# debugId=5c1f0380-4fad-5bff-9a09-2e9857a173ba
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.