PageSourceSearch

https://osminog-dostavka.ru/_nuxt/Cyum1vcs.js

js osminog-dostavka.ru collected 2026-10-02 02:06:32 UTC 8,820 bytes, 1 lines download raw bytes

1import{g as G,d as J,c as U,X as z,Y as Z,o as Y}from"./DVs6BNdh.js";var _=function(){return _=Object.assign||function(s){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(s[e]=n[e])}return s},_.apply(this,arguments)};function L(t,s){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&s.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)s.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function X(t,s,n,r){function i(e){return e instanceof n?e:new n(function(a){a(e)})}return new(n||(n=Promise))(function(e,a){function u(c){try{o(r.next(c))}catch(W){a(W)}}function d(c){try{o(r.throw(c))}catch(W){a(W)}}function o(c){c.done?e(c.value):i(c.value).then(u,d)}o((r=r.apply(t,[])).next())})}function $(t,s){var n={label:0,sent:function(){if(e[0]&1)throw e[1];return e[1]},trys:[],ops:[]},r,i,e,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(o){return function(c){return d([o,c])}}function d(o){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(n=0)),n;)try{if(r=1,i&&(e=o[0]&2?i.return:o[0]?i.throw||((e=i.return)&&e.call(i),0):i.next)&&!(e=e.call(i,o[1])).done)return e;switch(i=0,e&&(o=[o[0]&2,e.value]),o[0]){case 0:case 1:e=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(e=n.trys,!(e=e.length>
10&&e[e.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!e||o[1]>e[0]&&o[1]<e[3])){n.label=o[1];break}if(o[0]===6&&n.label<e[1]){n.label=e[1],e=o;break}if(e&&n.label<e[2]){n.label=e[2],n.ops.push(o);break}e[2]&&n.ops.pop(),n.trys.pop();continue}o=s.call(t,n)}catch(c){o=[6,c],i=0}finally{r=e=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function O(t,s,n){for(var r=0,i=s.length,e;r<i;r++)(e||!(r in s))&&(e||(e=Array.prototype.slice.call(s,0,r)),e[r]=s[r]);return t.concat(e||Array.prototype.slice.call(s))}function Q(){return{current:0,next:function(){return++this.current}}}function ee(t){var s=Q(),n={};return{add:function(r,i){var e=i??"".concat(s.next(),"_").concat(t);return n[e]=r,e},resolve:function(r,i,e){var a=n[r];a&&(e(i)?a.resolve(i):a.reject(i),n[r]=null)}}}function te(t,s,n){var r=ee(n);return s(function(i){if(!(!i.detail||!i.detail.data||typeof i.detail.data!="object")&&"request_id"in i.detail.data){var e=i.detail.data,a=e.request_id,u=L(e,["request_id"]);a&&r.resolve(a,u,function(d){return!("error_type"in d)})}}),function(e,a){return a===void 0&&(a={}),new Promise(function(u,d){var o=r.add({resolve:u,reject:d},a.request_id);t(e,_(_({},a),{request_id:o}))})}}function ne(){var t=36,s=2,n=3;return Math.random().toString(t).substring(s,s+n)}var v=typeof window<"u",K=!!(v&&window.AndroidBridge),V=!!(v&&window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.VKWebAppClose),I=!!(v&&window.ReactNativeWebView&&typeof window.ReactNativeWebView.postMessage=="function"),A=v&&!K&&!V,re=A&&/(^\?|&)vk_platform=mobile_web(&|$)/.test(location.search),ie=A&&!re,m=A?"message":"VKWebAppEvent",oe=O(["VKWebAppInit","VKWebAppGetCommunityAuthToken","VKWebAppAddToCommunity","VKWebAppAddToHomeScreenInfo","VKWebAppClose","VKWebAppCopyText","VKWebAppCreateHash","VKWebAppGetUserInfo","VKWebAppSetLocation","VKWebAppSendToClient","VKWebAppGetClientVersion","VKWebAppGetPhoneNumber","VKWebAppGetEmail","VKWebAppGetGroupInfo","VKWebAppGetGeodata","VKWebAppGetCommunityToken","VKWebAppGetConfig","VKWebAppGetLaunchParams","VKWebAppSetTitle","VKWebAppGetAuthToken","VKWebAppCallAPIMethod","VKWebAppJoinGroup","VKWebAppLeaveGroup","VKWebAppAllowMessagesFromGroup","VKWebAppDenyNotifications","VKWebAppAllowNotifications","VKWebAppOpenPayForm","VKWebAppOpenApp","VKWebAppShare","VKWebAppShowWallPostBox","VKWebAppScroll","VKWebAppShowOrderBox","VKWebAppShowLeaderBoardBox","VKWebAppShowInviteBox","VKWebAppShowRequestBox","VKWebAppAddToFavorites","VKWebAppShowStoryBox","VKWebAppStorageGet","VKWebAppStorageGetKeys","VKWebAppStorageSet","VKWebAppFlashGetInfo","VKWebAppSubscribeStoryApp","VKWebAppOpenWallPost","VKWebAppCheckAllowedScopes","VKWebAppCheckBannerAd","VKWebAppHideBannerAd","VKWebAppShowBannerAd","VKWebAppCheckNativeAds","VKWebAppShowNativeAds","VKWebAppRetargetingPixel","VKWebAppConversionHit","VKWebAppShowSubscriptionBox","VKWebAppCheckSurvey","VKWebAppShowSurvey","VKWebAppScrollTop","VKWebAppScrollTopStart","VKWebAppScrollTopStop","VKWebAppShowSlidesSheet","VKWebAppTranslate","VKWebAppRecommend","VKWebAppAddToProfile","VKWebAppGetFriends"],ie?["VKWebAppResizeWindow","VKWebAppAddToMenu","VKWebAppShowInstallPushBox","VKWebAppShowCommunityWidgetPreviewBox","VKWebAppCallStart","VKWebAppCallJoin","VKWebAppCallGetStatus"]:["VKWebAppShowImages"]),w,S=v?window.AndroidBridge:void 0,b=V?window.webkit.messageHandlers:void 0,E=A?parent:void 0;function ae(t){var s=void 0,n=[],r=ne();function i(p,l){S&&S[p]?S[p](JSON.stringify(l)):b&&b[p]&&typeof b[p].postMessage=="function"?b[p].postMessage(l):I?window.ReactNativeWebView.postMessage(JSON.stringify({handler:p,params:l})):E&&typeof E.postMessage=="function"&&E.postMessage({handler:p,params:l,type:"vk-connect",webFrameId:s,connectVersion:t},"*")}function e(p){n.push(p)}function a(p){var l=n.indexOf(p);l>-1&&n.splice(l,1)}function u(p){return K?!!(S&&typeof S[p]=="function"):V?!!(b&&b[p]&&typeof b[p].postMessage=="function"):A?oe.includes(p):!1}function d(p){return console.warn("bridge.supports method is deprecated. Use bridge.supportsAsync instead."),u(p)}function o(){return V||K}function c(){return A&&window.parent!==window}function W(){return o()||c()}function j(){return!W()}
1function h(p){if(V||K)return O([],n).map(function(y){return y.call(null,p)});var l=p==null?void 0:p.data;if(!(!A||!l)){if(I&&typeof l=="string")try{l=JSON.parse(l)}catch{}var f=l.type,P=l.data,q=l.frameId;if(f){if(f==="VKWebAppSettings"){s=q;return}O([],n).map(function(y){return y({detail:{type:f,data:P}})})}}}I&&/(android)/i.test(navigator.userAgent)?document.addEventListener(m,h):typeof window<"u"&&"addEventListener"in window&&window.addEventListener(m,h);var g=te(i,e,r);function F(p){return X(this,void 0,void 0,function(){var l;return $(this,function(f){switch(f.label){case 0:if(K||V)return[2,u(p)];if(w)return[2,w.has(p)];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,g("SetSupportedHandlers")];case 2:return l=f.sent(),w=new Set(l.supportedHandlers),[3,4];case 3:return f.sent(),w=new Set(["VKWebAppInit"]),[3,4];case 4:return[2,w.has(p)]}})})}return e(function(p){if(p.detail)switch(p.detail.type){case"SetSupportedHandlers":w=new Set(p.detail.data.supportedHandlers)}}),{send:g,sendPromise:g,subscribe:e,unsubscribe:a,supports:d,supportsAsync:F,isWebView:o,isIframe:c,isEmbedded:W,isStandalone:j}}var pe="2.15.6",T;(function(t){t.REWARD="reward",t.INTERSTITIAL="interstitial"})(T||(T={}));var B;(function(t){t.RESIZE="resize",t.OVERLAY="overlay"})(B||(B={}));var N;(function(t){t.TOP="top",t.BOTTOM="bottom"})(N||(N={}));var C;(function(t){t.LEFT="left",t.RIGHT="right",t.CENTER="center"})(C||(C={}));var M;(function(t){t.COMPACT="compact",t.REGULAR="regular"})(M||(M={}));var k;(function(t){t.HORIZONTAL="horizontal",t.VERTICAL="vertical"})(k||(k={}));var x;(function(t){t.CAMERA="camera",t.LOCATION="location",t.PHOTO="photo"})(x||(x={}));var D;(function(t){t.RU="ru",t.UK="uk",t.UA="ua",t.EN="en",t.BE="be",t.KZ="kz",t.PT="pt",t.ES="es"})(D||(D={}));var H;(function(t){t.ADMIN="admin",t.EDITOR="editor",t.MEMBER="member",t.MODER="moder",t.NONE="none"})(H||(H={}));var R;(function(t){t.DESKTOP_WEB="desktop_web",t.DESKTOP_WEB_MESSENGER="desktop_web_messenger",t.DESKTOP_APP_MESSENGER="desktop_app_messenger",t.MOBILE_WEB="mobile_web",t.MOBILE_ANDROID="mobile_android",t.MOBILE_ANDROID_MESSENGER="mobile_android_messenger",t.MOBILE_IPHONE="mobile_iphone",t.MOBILE_IPHONE_MESSENGER="mobile_iphone_messenger",t.MOBILE_IPAD="mobile_ipad"})(R||(R={}));var se=ae(pe);const le={__name:"index",setup(t){const s=G(),n=e=>{try{const a=localStorage.getItem(e);return a?JSON.parse(a):null}catch{return null}},r=(e,a=null)=>{if(!e)return;const u=z(e,a);s.push(u)},i=async()=>{const e=await Z.CitiesActions.get();return!e.error&&Array.isArray(e.value)?{cities:e.value,amount:e.value.length}:null};return J(async()=>{se.send("VKWebAppInit").then(d=>{d.result?console.log("Its OK"):console.log("Its NOT OK")}).catch(d=>{console.log(d)});const e=n("city"),a=n("selectedDepartmentSlug");if(e!=null&&e.slug){r(e.slug,a);return}const u=await i();if((u==null?void 0:u.amount)===1){r(u.cities[0].slug);return}s.push("/select-city")}),(e,a)=>(Y(),U("div"))}};export{le as default};

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.