1(()=>{var e={1373:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(33202),o=r(27746),s=r(12807),i=r(9030),a=r(98582),c=r.n(a);const d=(0,s.A)(o.A,[["render",n.X],["__scopeId","data-v-7b55af3e"]]),u=d;c()(o.A,"components",{QIcon:i.A})},2268:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(86909),o=r(50468),s=r(31924),i=r(63591);const a={namespaced:!0,getters:o.A,mutations:s,actions:i,state:n.A}},2344:(e,t,r)=>{"use strict";r(50310),r(5962),r(6724);var n=r(29104),o=r(48743),s=r(54512),i=(r(19916),r(8669));const a="/";async function c({app:e,router:t,store:r,storeKey:n},s){!0!==o.S&&void 0!==window.__INITIAL_STATE__&&(r.replaceState(window.__INITIAL_STATE__),delete window.__INITIAL_STATE__);let c=!1;const d=e=>{try{return t.resolve(e).href}catch(e){}return Object(e)===e?null:e},u=e=>{if(c=!0,"string"===typeof e&&/^https?:\/\//.test(e))return void(window.location.href=e);const t=d(e);null!==t&&(window.location.href=t)},l=window.location.href.replace(window.location.origin,"");for(let n=0;!1===c&&n<s.length;n++)try{await s[n]({app:e,router:t,store:r,ssrContext:null,redirect:u,urlPath:l,publicPath:a})}catch(e){return e&&e.url?void u(e.url):void console.error("[Quasar] boot error:",e)}!0!==c&&(e.use(t),e.use(r,n),!0===o.S?((0,i.V)({router:t,ssrIsRunningOnClientPWA:o.S,store:r}),e.mount("#q-app")):t.isReady().then(()=>{(0,i.V)({router:t,store:r,publicPath:a}),e.mount("#q-app")}))}(0,o.A)(o.S?n.Ef:n.m1,s.A).then(e=>{const[t,n]=void 0!==Promise.allSettled?["allSettled",e=>e.map(e=>{if("rejected"!==e.status)return e.value.default;console.error("[Quasar] boot error:",e.reason)})]:["all",e=>e.map(e=>e.default)];return Promise[t]([Promise.resolve().then(r.bind(r,34520)),Promise.resolve().then(r.bind(r,29388)),Promise.resolve().then(r.bind(r,65883)),Promise.resolve().then(r.bind(r,9373)),Promise.resolve().then(r.bind(r,52782)),Promise.resolve().then(r.bind(r,14162)),Promise.resolve().then(r.bind(r,2453))]).then(t=>{const r=n(t).filter(e=>"function"===typeof e);c(e,r)})})},2453:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(38607),o=r.n(n),s=r(94563);const i=(0,s.zj)(({app:e,router:t})=>{e.use(o(),{id:48434603,router:t,env:"production",triggerEvent:!0})})},4623:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(36771),o=r(89605),s=r(69904),i=r(89056),a=r(2268),c=r(20526),d=r(54920),u=r(9293),l=r(27593),m=r(71552),p=r(28299);function f({ssrContext:e}){const t="undefined"!==typeof window;t&&(0,i.bx)();const r=(0,n.y$)({modules:{order:a.A,promotions:c.A,menus:d.A,interiors:u.A,contacts:l.A,cabinetInfo:m.A,telegram:p.A},plugins:[(0,o.A)({key:"app-state",paths:["order.currentOrder","cabinetInfo"],filter:e=>!e.type.startsWith("@@"),storage:{getItem:e=>{if(!t||"app-state"!==e)return null;try{const t=localStorage.getItem(e);if(!t)return null;const r=JSON.parse(t),n=(0,s.WQ)(r);return n?JSON.stringify(n):(localStorage.removeItem(e),null)}catch(e){return console.error("Error reading persisted state:",e),null}},setItem:(e,r)=>{if("app-state"===e)try{if(!t)return;const n=r.length,o=(n/1024).toFixed(2),i=localStorage.getItem(e);if(i&&i.length>8e3&&n<.45*i.length&&n<6e3)return console.warn(`â ï¸ PREVENTED overwrite! Trying to save ${o} KB over ${(i.length/1024).toFixed(2)} KB`),void console.warn("This usually means state was reset. Keeping existing data.");try{const t=JSON.parse(r),n=(0,s.be)(t),o=JSON.stringify(n);localStorage.setItem(e,o)}catch(t){console.error("â Version wrapping error:",t),localStorage.setItem(e,r)}}catch(t){if("QuotaExceededError"===t.name){console.error("â localStorage quota exceeded! Clearing old data...");try{localStorage.removeItem(e),localStorage.setItem(e,r)}catch(e){console.error("â Failed to save even after cleanup:",e)}}else console.error("Error saving to localStorage:",t)}},removeItem:e=>{if("app-state"===e)try{if(!t)return;localStorage.removeItem(e)}catch(e){console.error("Error removing from localStorage:",e)}}}})],strict:!1});return r}},8669:(e,t,r)=>{"use strict";r.d(t,{V:()=>i});r(50310),r(5962),r(6724),r(92802);var n=r(79443);let o="function"===typeof n.A.preFetch?n.A.preFetch:void 0!==n.A.__c&&"function"===typeof n.A.__c.preFetch&&n.A.__c.preFetch;function s(e,t){const r=e?e.matched?e:t.resolve(e).route:t.currentRoute.value;if(!r)return[];const n=r.matched.filter(e=>void 0!==e.components);return 0===n.length?[]:Array.prototype.concat.apply([],n.map(e=>Object.keys(e.components).map(t=>{const r=e.components[t];return{path:e.path,c:r}})))}function i({router:e,ssrIsRunningOnClientPWA:t,store:r,publicPath:n}){e.beforeResolve((i,a,c)=>{const d=window.location.href.replace(window.location.origin,""),u=s(i,e),l=s(a,e);let m=!1;
1const p=u.filter((e,t)=>m||(m=!l[t]||l[t].c!==e.c||e.path.indexOf("/:")>-1)).filter(e=>void 0!==e.c&&("function"===typeof e.c.preFetch||void 0!==e.c.__c&&"function"===typeof e.c.__c.preFetch)).map(e=>void 0!==e.c.__c?e.c.__c.preFetch:e.c.preFetch);if(!0===t&&!1!==o&&(p.unshift(o),o=!1),0===p.length)return c();let f=!1;const h=e=>{f=!0,c(e)},g=()=>{!1===f&&c()};p.reduce((e,t)=>e.then(()=>!1===f&&t({store:r,currentRoute:i,previousRoute:a,redirect:h,urlPath:d,publicPath:n})),Promise.resolve()).then(g).catch(e=>{console.error(e),g()})})}},9293:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(49584),o=r(75829),s=r(17533),i=r(83582);const a={namespaced:!0,getters:o,mutations:s,actions:i,state:n.A}},9373:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(91141);const o=async({app:e,ssrContext:t})=>{const r=t?t.$q:e.config.globalProperties.$q;n.J.setQuasar(r),e.config.globalProperties.$firebase=n.J}},9553:(e,t,r)=>{"use strict";r.r(t),r.d(t,{mapIsLoad:()=>i,setContacts:()=>o,setMap:()=>s});var n=r(22582);function o(e,t){t=(0,n.A)(t),e.canOrderMake=1===t.canMakeOrder,e.canDelivery=1===t.canDelivery,e.repairText=t.repairText,e.caption=t.caption,e.mainPhone=t.phone,e.vk=t.vk,e.blind=JSON.parse(t.blind),e.mainSeo=JSON.parse(t.mainSeo),e.promoSeo=JSON.parse(t.promoSeo),e.feedbackSeo=JSON.parse(t.feedbackSeo),e.deliveryZoneSeo=JSON.parse(t.deliveryZoneSeo),e.basketSeo=JSON.parse(t.deliverySeo),e.companyName=t.companyName,e.lawCompanyName=t.lawCompanyName,e.qualityControlTG=t.qualityControl,e.qualityControlMAX=t.qualityControl2,e.email=t.email}function s(e,t){e.deliveryZones=t}function i(e){e.mapLoad=!0}},14162:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(94563),o=r(53862),s=r(1373);const i=o.Pz.PluginSettings={apikey:"8342d24f-9d59-400e-b569-efee84870e2d"},a=(0,n.zj)(({app:e})=>{e.use((0,o.b0)(i)),e.component("DeliveryMap",s.A)})},14841:(e,t,r)=>{"use strict";function n(){return{menus:[]}}r.d(t,{A:()=>n})},17533:(e,t,r)=>{"use strict";function n(e,t){e.interiors=[...t]}r.r(t),r.d(t,{setInterior:()=>n})},19916:(e,t,r)=>{"use strict";var n=r(29012);(0,n.k)("/service-worker.js",{ready(){},registered(){},cached(){},updatefound(){},updated(){},offline(){},error(){}})},20526:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(42615),o=r(46310),s=r(64270),i=r(52909);const a={namespaced:!0,getters:o,mutations:s,actions:i,state:n.A}},20870:(e,t,r)=>{"use strict";r.d(t,{A:()=>n.A});var n=r(74801)},22582:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});r(50310),r(90095),r(6724);const n=e=>e.replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),o=function(e){return e===Object(e)&&!Array.isArray(e)&&"function"!==typeof e},s=function(e){if(o(e)){const t={};return Object.keys(e).forEach(r=>{t[n(r)]=s(e[r])}),t}return Array.isArray(e)?e.map(e=>s(e)):e},i=s},24961:(e,t,r)=>{"use strict";r(50310),r(5962);function n(){try{localStorage.removeItem("app-state"),console.log("â
State reset. Reloading page..."),setTimeout(()=>{window.location.reload()},500)}catch(e){console.error("â Failed to reset state:",e)}}function o(){try{const e=localStorage.getItem("app-state");if(!e)return console.warn("â ï¸ No state to export"),null;const t=JSON.parse(e);return console.log("ð¦ State exported"),t}catch(e){return console.error("â Failed to export state:",e),null}}function s(e){try{return e?(localStorage.setItem("app-state",JSON.stringify(e)),console.log("â
State imported. Reloading page..."),setTimeout(()=>{window.location.reload()},500),!0):(console.error("â No state data provided"),!1)}catch(e){return console.error("â Failed to import state:",e),!1}}function i(){try{const e=localStorage.getItem("app-state");if(!e)return console.log("â¹ï¸ No state found"),null;const t=JSON.parse(e),r={version:t.__version||"unknown",savedAt:t.__timestamp?new Date(t.__timestamp).toLocaleString():"unknown",size:e.length,sizeKB:(e.length/1024).toFixed(2),productsInCart:t.order?.currentOrder?.products?.length||0,keys:Object.keys(t).filter(e=>!e.startsWith("__"))};return console.log("ð State Info:"),console.table(r),r}catch(e){return console.error("â Failed to get state info:",e),null}}function a(e){try{const t=localStorage.getItem("app-state");if(!t)return console.warn("â ï¸ No state to migrate"),!1;const r=JSON.parse(t);return r.__version=e,r.__timestamp=Date.now(),localStorage.setItem("app-state",JSON.stringify(r)),console.log(`â
State version changed to v${e}. Reloading...`),setTimeout(()=>{window.location.reload()},500),!0}catch(e){return console.error("â Failed to force migration:",e),!1}}"undefined"!==typeof window&&(window.resetAppState=n,window.exportAppState=o,window.importAppState=s,window.getStateInfo=i,window.forceStateMigration=a)},26817:(e,t,r)=>{"use strict";function n(){return{clientInfo:{},balance:0,rang:"FUN",token:null,name:""}}r.d(t,{A:()=>n})},27593:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});
1var n=r(84748),o=r(9553),s=r(28778);const i={namespaced:!0,mutations:o,actions:s,state:n.A}},27746:(e,t,r)=>{"use strict";r.d(t,{A:()=>n.A});var n=r(33751)},27907:(e,t,r)=>{"use strict";r.d(t,{X:()=>s});r(50310),r(6724);var n=r(61758);const o=["innerHTML"];function s(e,t,r,s,i,a){const c=(0,n.g2)("yandex-map-default-scheme-layer"),d=(0,n.g2)("yandex-map-default-features-layer"),u=(0,n.g2)("yandex-map-zoom-control"),l=(0,n.g2)("q-icon"),m=(0,n.g2)("yandex-map-control-button"),p=(0,n.g2)("yandex-map-controls"),f=(0,n.g2)("yandex-map-listener"),h=(0,n.g2)("yandex-map-default-marker"),g=(0,n.g2)("yandex-map-feature"),y=(0,n.g2)("yandex-map-hint"),v=(0,n.g2)("yandex-map");return(0,n.uX)(),(0,n.Wv)(v,{modelValue:i.map,"onUpdate:modelValue":t[0]||(t[0]=e=>i.map=e),settings:a.settings},{default:(0,n.k6)(()=>[(0,n.bF)(c,{settings:{}}),(0,n.bF)(d),(0,n.bF)(p,{settings:{position:"right"}},{default:(0,n.k6)(()=>[(0,n.bF)(u),(0,n.bF)(m,{settings:{onClick:()=>a.setCenterMap(i.defaultMapCenter)}},{default:(0,n.k6)(()=>[(0,n.bF)(l,{style:{width:"24px",height:"24px"},name:"home",size:"1.5rem",color:i.isCenterMap?"red":"black"},null,8,["color"])]),_:1},8,["settings"])]),_:1}),(0,n.bF)(f,{settings:{onUpdate:e=>a.updateIsCenter(e)}},null,8,["settings"]),r.markers.length>0?((0,n.uX)(!0),(0,n.CE)(n.FK,{key:0},(0,n.pI)(r.markers,(e,t)=>((0,n.uX)(),(0,n.Wv)(h,{key:t,settings:{...e}},null,8,["settings"]))),128)):(0,n.Q3)("",!0),r.deliveryZone?((0,n.uX)(),(0,n.Wv)(g,{key:1,settings:a.getZones(r.deliveryZone,!0)},null,8,["settings"])):(0,n.Q3)("",!0),r.deliveryZones.length>0?((0,n.uX)(!0),(0,n.CE)(n.FK,{key:2},(0,n.pI)(r.deliveryZones,(e,t)=>((0,n.uX)(),(0,n.Wv)(g,{key:`${t}_1`,settings:a.getZones(e,r.useColorsArea)},null,8,["settings"]))),128)):(0,n.Q3)("",!0),r.featureCollection.length>0?((0,n.uX)(!0),(0,n.CE)(n.FK,{key:3},(0,n.pI)(r.featureCollection,(e,t)=>((0,n.uX)(),(0,n.Wv)(g,{key:`${t}_2`,settings:a.getFeature(e)},null,8,["settings"]))),128)):(0,n.Q3)("",!0),(0,n.bF)(y,{"hint-property":"hint"},{default:(0,n.k6)(({content:e})=>[(0,n.Lk)("div",{class:"hint-window",innerHTML:e},null,8,o)]),_:1})]),_:1},8,["modelValue","settings"])}},28299:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={namespaced:!0,state:{isInitialized:!1,platform:null,isTelegram:!1,isMax:!1,user:null,initData:""},mutations:{setMessengerData(e,t){e.isInitialized=!0,e.platform=t.platform||null,e.isTelegram="telegram"===t.platform,e.isMax="max"===t.platform,e.user=t.user||null,e.initData=t.initData||""}},actions:{initializeApp({commit:e}){{const t=!!window.Telegram?.WebApp;if(t){const t=window.Telegram.WebApp,r=()=>{const n=!!t.initData,o=t.initDataUnsafe?.user||null;e("setMessengerData",{platform:n?"telegram":null,user:o,initData:t.initData}),t.ready(),t.offEvent("viewport_changed",r)};return t.onEvent("viewport_changed",r),void(t.initData&&r())}const r=new URLSearchParams(window.location.search),n=r.get("max_data"),o=r.get("max_user_id");if(n||o)return void e("setMessengerData",{platform:"max",user:o?{id:o}:null,initData:n||o})}e("setMessengerData",{platform:null,user:null,initData:""})}},getters:{inTelegram:e=>e.isTelegram||e.isMax,inMessenger:e=>e.isTelegram||e.isMax,platform:e=>e.platform,isTelegram:e=>e.isTelegram,isMax:e=>e.isMax}}},28778:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getContacts:()=>o});var n=r(46637);r(22582);async function o(e){return await n.A.get("/api/main-state").then(({data:t})=>{e.commit("setContacts",t.mainState)}),!0}},28867:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getMenus:()=>o});var n=r(46637);async function o(e){return await n.A.get("/api/rest-menu-active").then(({data:t})=>{e.commit("setMenu",t.restMenus.sort((e,t)=>e.sort_index>t.sort_index?1:-1))}),!0}},29388:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(61758),o=r(89056),s=r(69904);const i="app-state";function a(e,t){if(void 0===t||null===t)return e;if(Array.isArray(t))return t.slice();if("object"!==typeof t)return t;const r={...e};for(const n of Object.keys(t)){const o=t[n],s=e[n];o&&"object"===typeof o&&!Array.isArray(o)&&s&&"object"===typeof s&&!Array.isArray(s)?r[n]=a(s,o):r[n]=o}return r}function c(e){try{const t=localStorage.getItem(i);if(!t)return;const r=JSON.parse(t),n=(0,s.WQ)(r);if(!n)return;e.replaceState({...e.state,order:{...e.state.order,currentOrder:n.order?.currentOrder?a(e.state.order.currentOrder,n.order.currentOrder):e.state.order.currentOrder},cabinetInfo:n.cabinetInfo?a(e.state.cabinetInfo,n.cabinetInfo):e.state.cabinetInfo})}catch(e){console.error("[vuexPersistSsr] Failed to rehydrate from localStorage:",e)}}function d({app:e,store:t}
1){if("undefined"===typeof window)return;let r=!1;const s=e.mount.bind(e);e.mount=e=>{const i=s(e);return(0,n.dY)(()=>{if(!r){r=!0;try{c(t)}finally{(0,o.o)()}}}),i}}},31924:(e,t,r)=>{"use strict";r.r(t),r.d(t,{addProductToBasket:()=>n,addProducts:()=>z,addPromocode:()=>i,addSticks:()=>j,catchDefaultState:()=>c,deleteAllGiftProduct:()=>H,removeDeliveryService:()=>V,removeOneProduct:()=>o,removeProductToBasket:()=>s,removePromoFromBasket:()=>a,setAddressComment:()=>A,setAddressDadata:()=>h,setAddressString:()=>f,setApartment:()=>g,setCaptchaToken:()=>G,setCategoriesMenu:()=>x,setChangeWith:()=>Z,setComment:()=>b,setCostume:()=>T,setDate:()=>S,setDefaultState:()=>d,setDeliveryService:()=>U,setDeliveryType:()=>I,setDeliveryZones:()=>K,setDepartment:()=>J,setDepartments:()=>R,setDiscountSum:()=>W,setEarly:()=>D,setEntrance:()=>k,setFinalPrice:()=>Y,setFloor:()=>v,setForks:()=>_,setIsPersonalHouse:()=>y,setMinSum:()=>B,setName:()=>C,setNearTime:()=>q,setOrderId:()=>$,setOrderMenu:()=>M,setPaymentExternalId:()=>ee,setPaymentLink:()=>m,setPaymentLinkIdempotenceKey:()=>Q,setPaymentMerchantId:()=>ne,setPaymentSumm:()=>p,setPhone:()=>u,setPromoCode:()=>N,setPromoCodeProduct:()=>E,setPromoCodeUsing:()=>L,setPromoOrderMinSum:()=>F,setSourseId:()=>w,setSticks:()=>P,setThanks:()=>te,setTime:()=>O,setZone:()=>X,switchPaymentType:()=>l,syncPricesFromCatalog:()=>re});r(50310),r(30317),r(5962),r(32203),r(6724),r(9240),r(39324);function n(e,t){const r={...t,product:t.product,modifiers:t.modifiers?{...t.modifiers,main:t.modifiers.main?{...t.modifiers.main}:null,size:t.modifiers.size?{...t.modifiers.size}:null,group:t.modifiers.group?[...t.modifiers.group]:null}:null,number:t.number??1,finalPrice:t.finalPrice??t.product.basePrice},n=e.currentOrder.products.findIndex(e=>{const t=e.product.id===r.product.id;if(!t)return!1;const n=void 0!==e.modifiers?.main?.product.id,o=void 0!==r.modifiers?.main?.product.id;let s=!1;n===o&&(s=!n||e.modifiers.main.product.id===r.modifiers.main.product.id);const i=void 0!==e.modifiers?.size?.product.id,a=void 0!==r.modifiers?.size?.product.id;let c=!1;i===a&&(c=!i||e.modifiers.size.product.id===r.modifiers.size.product.id);const d=(e.modifiers?.group||[]).map(e=>e.product.id).sort(),u=(r.modifiers?.group||[]).map(e=>e.product.id).sort();let l=!1;return l=0===d.length&&0===u.length||d.length===u.length&&d.every((e,t)=>e===u[t]),s&&c&&l});n>=0?e.currentOrder.products[n].number+=1:e.currentOrder.products.push(r)}function o(e,t){const r=e.currentOrder.products.findIndex(e=>e.id===t.id);if(e.currentOrder.products[r].number>1){const t=[...e.currentOrder.products];t[r].number-=1,e.currentOrder.products=[...t]}else e.currentOrder.products=e.currentOrder.products.filter(e=>e.id!==t.id)}function s(e,t){e.currentOrder.products=e.currentOrder.products.filter(e=>e.id!==t.id)}function i(e,t){const r={id:`${e.id} ${t.id}`,userModifiers:"ÐлÑдо по пÑомокодÑ",finalPrice:"",comment:"ÐÐÐÐÐ ÐÐ",product:this.promoCode.product,number:1,isGift:!0};r.finalPrice=t.basePrice-t.basePrice/100*e.discount,this.addProductToBasket(r)}function a(){this.promoInputDisabled=!1,this.hidePromoButton=!0;const e=this.state.currentOrder.products.filter(e=>!0===e.isGift);this.removeProductToBasket(e[0])}function c(e){e.defaultState=e.currentOrder}function d(e){e.currentOrder.products=[],e.currentOrder.id=null}function u(e,t){e.currentOrder.clientInfo.phone=t,e.currentOrder.clientInfo.phoneString=t.replace(/[^+\d]/g,"")}function l(e,t){e.currentOrder.payments[0].type=t}function m(e,t){e.currentOrder.payments[0].paymentLink=t}function p(e,t){e.currentOrder.payments[0].sum=t}function f(e,t){e.currentOrder.clientInfo.addressString=t,e.currentOrder.clientInfo.address.dadata=null,e.currentOrder.clientInfo.address.type=""}function h(e,t){e.currentOrder.clientInfo.addressString=t.value,e.currentOrder.clientInfo.address.dadata=t,e.currentOrder.clientInfo.address.type="dadata"}function g(e,t){e.currentOrder.clientInfo.address.apartment=t}function y(e,t){e.currentOrder.clientInfo.address.isPersonalHouse=t,e.currentOrder.clientInfo.address.apartment=null}function v(e,t){e.currentOrder.clientInfo.address.floor=t}function k(e,t){e.currentOrder.clientInfo.address.entrance=t}function I(e,t){e.currentOrder.deliveryInfo.type=t}function S(e,t){e.currentOrder.deliveryInfo.date=t}function O(e,t){e.currentOrder.deliveryInfo.time=t}function b(e,t){e.currentOrder.comment=t}function w(e,t){e.currentOrder.sourceId=t}function A(e,t){e.currentOrder.clientInfo.address.comment=t}function P(e,t){e.currentOrder.sticks=t}function j(e){e.currentOrder.comment+="\nÐÑÐ¶Ð½Ñ Ð¿Ð°Ð»Ð¾Ñки!\r"}function D(e,t){e.currentOrder.early=t}function T(e,t){e.order.isCostume=t}function C(e,t){e.currentOrder.clientInfo.client.name=t}function M(e,t){e.orderMenu=[...t]}function x(e,t){e.categoriesMenu=t}function _(e,t){e.currentOrder.forks=t}function N(e,t){e.promoCode.value=t.toLowerCase()}function E(e,t){e.promoCode.product=t}function Y(e,t){e.currentOrder.products.finalPrice=t}function $(e,t){e.currentOrder.id=t}function z(e){e.orderProducts=[],e.orderProducts=[...e.currentOrder.products]}function L(e,t){e.promoCode.product=t,e.promoCode.hasUsed=!0,e.promoCode.value=null}function F(e,t){e.promoOrderMinSum=t}function H(e){e.currentOrder.products=e.currentOrder.products.filter(e=>!0!==e.isGift)}function B(e,t){e.currentOrder.deliveryInfo.minSum=t}function W(e,t){Number(t)>=0&&(e.currentOrder.discount.sum=Number(t))}function J(e,t){e.currentOrder.deliveryInfo.department=t,t?.isDiscountPickup&&t?.pickupDiscount&&2===e.currentOrder.deliveryInfo.type?(e.discountPickupValue=t.pickupDiscount.percent||0,e.discountPickup=t.pickupDiscount,e.currentOrder.discount={iikoId:e.discountPickup.iikoId,percent:e.discountPickup.percent}):(e.currentOrder.discount=null,e.discountPickupValue=0,e.discountPickup=null)}function R(e,t){e.departments=[...t]}function q(e,t){e.nearTime.time=t}function Z(e,t){e.currentOrder.changeWith=t}function U(e,t){if(t){const r={id:"",modifiers:{add:[],group:[],id:null,main:{product:{}},size:{product:{}}}
1,finalPrice:t.basePrice,product:{...t},isDeliveryService:!0,number:1};e.deliveryService=r}else e.deliveryService=null}function V(e){e.currentOrder.products=e.currentOrder.products.filter(e=>!e?.isDeliveryService)}function K(e,t){e.deliveryZones.push(...t)}function X(e,t){e.currentOrder.deliveryInfo.zone=t}function G(e,t){e.currentOrder.reCaptchaToken=t}function Q(e,t){e.currentOrder.payments[0].paymentLink=t}function ee(e,t){e.currentOrder.payments[0].externalId=t}function te(e,t){e.thanks=t}function re(e,t){e.currentOrder.products=e.currentOrder.products.map(e=>{const r=t.find(t=>{if(t.product.id!==e.product.id)return!1;const r=t.modifiers?.main?.product?.id===e.modifiers?.main?.product?.id,n=t.modifiers?.size?.product?.id===e.modifiers?.size?.product?.id,o=e.modifiers?.add||[],s=t.modifiers?.add||[];if(o.length!==s.length)return!1;const i=o.every(e=>s.some(t=>t.product?.id===e.product?.id));return r&&n&&i});return r?{...e,finalPrice:r.finalPrice,product:r.product}:e})}function ne(e,t){e.currentOrder.payments[0].merchantId=t}},33202:(e,t,r)=>{"use strict";r.d(t,{X:()=>n.X});var n=r(27907)},33751:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(50310),r(6724);var n=r(53862),o=r(38734);const s={name:"DeliveryMap",props:{center:{type:Array,default:()=>[104.310659,52.271776]},zoom:{type:Number,default:12.3},duration:{type:Number,default:800},markers:{type:Array,default:()=>[]},deliveryZone:{type:String,default:null},deliveryZones:{type:Array,default:()=>[]},featureCollection:{type:Array,default:()=>[]},useColorsArea:{type:Boolean,default:()=>!1}},components:{YandexMap:n.a3,YandexMapControls:n.Kk,YandexMapControlButton:n.fA,YandexMapDefaultSchemeLayer:n.HP,YandexMapDefaultFeaturesLayer:n.LH,YandexMapDefaultMarker:n.Nc,YandexMapZoomControl:n.qZ,YandexMapFeature:n.Aj,YandexMapHint:n.p7,YandexMapListener:n.Em},data(){return{map:(0,o.IJ)(null),defaultMapCenter:[104.310659,52.271776],currentCenter:[],isCenterMap:!0}},methods:{updateIsCenter(e){const t=1e-4;this.isCenterMap=Math.abs(e.location.center[0]-this.defaultMapCenter[0])<t&&Math.abs(e.location.center[1]-this.defaultMapCenter[1])<t},getZones(e,t=!1){try{const r=JSON.parse(e.area);if(r.features){r.features.map(r=>(r.id=`${e.id}_${r.id}`,r.properties.hint=r.properties.description,t&&(r.style={fill:r.properties.fill,stroke:[{color:r.properties.stroke,width:2}]}),r));const[n]=r.features;return n}}catch(e){return console.log("Err get Zones",e),null}},getFeature(e){try{return e.id=String(e.id),e.properties.hint=e.properties.description,e.style={fill:e.properties.fill,stroke:[{color:e.properties.stroke,width:2}]},e}catch(e){console.log("Err get Zones",e)}},async setCenterMap(e){this.map&&await this.map.setLocation({center:[...e],zoom:15,duration:800})}},computed:{settings(){return{location:{center:this.center,zoom:this.zoom,duration:this.duration}}}}}},34520:(e,t,r)=>{"use strict";r.r(t),r.d(t,{api:()=>s,default:()=>i});var n=r(94563),o=r(46637);const s=o.A.create(),i=(0,n.zj)(({app:e})=>{o.A.defaults.baseURL="https://pho-me.ru",e.config.globalProperties.$axios=o.A,e.config.globalProperties.$api=s})},35358:(e,t,r)=>{var n={"./af":78188,"./af.js":78188,"./ar":50096,"./ar-dz":28495,"./ar-dz.js":28495,"./ar-kw":85891,"./ar-kw.js":85891,"./ar-ly":13194,"./ar-ly.js":13194,"./ar-ma":42195,"./ar-ma.js":42195,"./ar-ps":17084,"./ar-ps.js":17084,"./ar-sa":29393,"./ar-sa.js":29393,"./ar-tn":21867,"./ar-tn.js":21867,"./ar.js":50096,"./az":43224,"./az.js":43224,"./be":61330,"./be.js":61330,"./bg":85096,"./bg.js":85096,"./bm":28746,"./bm.js":28746,"./bn":29303,"./bn-bd":56554,"./bn-bd.js":56554,"./bn.js":29303,"./bo":30528,"./bo.js":30528,"./br":35499,"./br.js":35499,"./bs":29828,"./bs.js":29828,"./ca":35855,"./ca.js":35855,"./cs":68481,"./cs.js":68481,"./cv":1694,"./cv.js":1694,"./cy":98903,"./cy.js":98903,"./da":95908,"./da.js":95908,"./de":85528,"./de-at":21732,"./de-at.js":21732,"./de-ch":54146,"./de-ch.js":54146,"./de.js":85528,"./dv":81313,"./dv.js":81313,"./el":20138,"./el.js":20138,"./en-au":78067,"./en-au.js":78067,"./en-ca":82545,"./en-ca.js":82545,"./en-gb":50124,"./en-gb.js":50124,"./en-ie":6107,"./en-ie.js":6107,"./en-il":13196,"./en-il.js":13196,"./en-in":1654,"./en-in.js":1654,"./en-nz":79557,"./en-nz.js":79557,"./en-sg":35451,"./en-sg.js":35451,"./eo":21591,"./eo.js":21591,"./es":36843,"./es-do":61009,"./es-do.js":61009,"./es-mx":75169,"./es-mx.js":75169,"./es-us":37224,"./es-us.js":37224,"./es.js":36843,"./et":77058,"./et.js":77058,"./eu":61297,"./eu.js":61297,"./fa":46658,"./fa.js":46658,"./fi":75674,"./fi.js":75674,"./fil":45204,"./fil.js":45204,"./fo":74428,"./fo.js":74428,"./fr":80703,"./fr-ca":27812,"./fr-ca.js":27812,"./fr-ch":9411,"./fr-ch.js":9411,"./fr.js":80703,"./fy":89738,"./fy.js":89738,"./ga":21235,"./ga.js":21235,"./gd":96032,"./gd.js":96032,"./gl":16424,"./gl.js":16424,"./gom-deva":53793,"./gom-deva.js":53793,"./gom-latn":14714,"./gom-latn.js":14714,"./gu":33383,"./gu.js":33383,"./he":46660,"./he.js":46660,"./hi":37264,"./hi.js":37264,"./hr":63201,"./hr.js":63201,"./hu":35604,"./hu.js":35604,"./hy-am":61067,"./hy-am.js":61067,"./id":19262,"./id.js":19262,"./is":53423,"./is.js":53423,"./it":73038,"./it-ch":23512,"./it-ch.js":23512,"./it.js":73038,"./ja":87558,"./ja.js":87558,"./jv":86071,"./jv.js":86071,"./ka":95927,"./ka.js":95927,"./kk":62625,"./kk.js":62625,"./km":25499,"./km.js":25499,"./kn":79486,"./kn.js":79486,"./ko":89405,"./ko.js":89405,"./ku":77155,"./ku-kmr":92516,"./ku-kmr.js":92516,"./ku.js":77155,"./ky":13647,"./ky.js":13647,"./lb":42837,"./lb.js":42837,"./lo":91474,"./lo.js":91474,"./lt":96967,"./lt.js":96967,"./lv":48297,"./lv.js":48297,"./me":1545,"./me.js":1545,"./mi":2573,"./mi.js":2573,"./mk":77259,"./mk.js":77259,"./ml":33826,"./ml.js":33826,"./mn":45368,"./mn.js":45368,"./mr":30860,"./mr.js":30860,"./ms":96947,"./ms-my":99418,"./ms-my.js":99418,"./ms.js":96947,"./mt":76906,"./mt.js":76906,"./my":71837,"./my.js":71837,"./nb":24503,"./nb.js":24503,"./ne":31286,"./ne.js":31286,"./nl":17981,"./nl-be":58103,"./nl-be.js":58103,"./nl.js":17981,"./nn":19387,"./nn.js":19387,"./oc-lnc":30803,"./oc-lnc.js":30803,"./pa-in":66742,"./pa-in.js":66742,"./pl":30075,"./pl.js":30075,"./pt":81731,"./pt-br":23352,"./pt-br.js":23352,"./pt.js":81731,"./ro":21776,"./ro.js":21776,"./ru":5746,"./ru.js":5746,"./sd":74100,"./sd.js":74100,"./se"
1:38395,"./se.js":38395,"./si":8823,"./si.js":8823,"./sk":39385,"./sk.js":39385,"./sl":3852,"./sl.js":3852,"./sq":3247,"./sq.js":3247,"./sr":64290,"./sr-cyrl":26189,"./sr-cyrl.js":26189,"./sr.js":64290,"./ss":32177,"./ss.js":32177,"./sv":49038,"./sv.js":49038,"./sw":9741,"./sw.js":9741,"./ta":86932,"./ta.js":86932,"./te":95784,"./te.js":95784,"./tet":13334,"./tet.js":13334,"./tg":23602,"./tg.js":23602,"./th":16947,"./th.js":16947,"./tk":46774,"./tk.js":46774,"./tl-ph":5868,"./tl-ph.js":5868,"./tlh":16695,"./tlh.js":16695,"./tr":22573,"./tr.js":22573,"./tzl":84509,"./tzl.js":84509,"./tzm":17118,"./tzm-latn":87078,"./tzm-latn.js":87078,"./tzm.js":17118,"./ug-cn":82617,"./ug-cn.js":82617,"./uk":56131,"./uk.js":56131,"./ur":56532,"./ur.js":56532,"./uz":69932,"./uz-latn":27220,"./uz-latn.js":27220,"./uz.js":69932,"./vi":20490,"./vi.js":20490,"./x-pseudo":32154,"./x-pseudo.js":32154,"./yo":49955,"./yo.js":49955,"./zh-cn":68355,"./zh-cn.js":68355,"./zh-hk":89547,"./zh-hk.js":89547,"./zh-mo":70374,"./zh-mo.js":70374,"./zh-tw":979,"./zh-tw.js":979};function o(e){var t=s(e);return r(t)}function s(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=s,e.exports=o,o.id=35358},42615:(e,t,r)=>{"use strict";function n(){return{promotions:[]}}r.d(t,{A:()=>n})},46310:()=>{},48743:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,S:()=>u});var n=r(77959),o=r(38734),s=r(79443),i=r(4623),a=r(65375),c=r(61758);const d=(0,c.pM)({name:"AppWrapper",setup(e){return(0,c.sV)(()=>{const{proxy:{$q:e}}=(0,c.nI)();void 0!==e.onSSRHydrated&&e.onSSRHydrated()}),()=>(0,c.h)(s.A,e)}}),u="undefined"!==typeof window&&null===document.body.getAttribute("data-server-rendered");async function l(e,t,s){const c=e(d);c.use(n.A,t,s);const u="function"===typeof i.A?await(0,i.A)({ssrContext:s}):i.A,{storeKey:l}=await Promise.resolve().then(r.bind(r,4623)),m=(0,o.IG)("function"===typeof a.A?await(0,a.A)({ssrContext:s,store:u}):a.A);return u.$router=m,{app:c,store:u,storeKey:l,router:m}}},49584:(e,t,r)=>{"use strict";function n(){return{interiors:[]}}r.d(t,{A:()=>n})},50468:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(50310),r(5962),r(32203),r(90095),r(6724),r(92802);var n=r(39324),o=r(6445),s=r(85038),i=r.n(s),a=r(5607),c=r(92782);function d(e,t){for(const r of e){const e=r.products?.find(e=>e.id===t);if(e)return e;if(r.subcategory)for(const e of r.subcategory){const r=e.products?.find(e=>e.id===t);if(r)return r}}return null}function u(e,t,r){if(!r?.date)return void(e.isWork=!0);const n=JSON.parse(t.schedule.workTime),o=JSON.parse(t.schedule.workDate),s=i()(`${r.date} ${r.time}`,"DD.MM.YYYY HH:mm");if(o?.start&&o?.end){const t=i()(r.date,"DD.MM.YYYY"),n=i()(o.start,"YYYY-MM-DD"),s=i()(o.end,"YYYY-MM-DD");if(t.isBefore(n,"day")||t.isAfter(s,"day"))return e.isWork=!1,void(n.isSame(s)?e.notWorkText=`доÑÑÑпно ÑолÑко ${n.format("DD.MM.YY")}`:e.notWorkText=`доÑÑÑпно Ñ ${n.format("DD.MM.YY")} по ${s.format("DD.MM.YY")}`)}const a=n.find(e=>e.name.toLowerCase()===s.locale("ru").format("dddd").toLowerCase());if(a?.start&&a?.end){const t=i()(`${r.date} ${a.start}`,"DD.MM.YYYY HH:mm").subtract(1,"minute"),n=i()(`${r.date} ${a.end}`,"DD.MM.YYYY HH:mm").add(1,"minute");e.isWork=s.isBetween(t,n),e.startTime=a.start,e.endTime=a.end,e.notWorkText=e.isWork?null:`доÑÑÑпно c ${a.start} до ${a.end}`}else e.isWork=!1,e.notWorkText=`недоÑÑÑпно на ${r.date}`}const l={minSumOrder:e=>{let t=0;const{zone:r}=e.currentOrder.deliveryInfo,n=i()(e.currentOrder.deliveryInfo.time,"HH:mm");if(r&&n){t=r.minSum2;const e=i()(r.from,"HH").add(-1,"minutes"),o=i()(r.to,"HH").add(1,"minutes");n.isBetween(e,o)&&(t=r.minSum)}return t},orderProductsNum:e=>{let t=0;if(e.currentOrder.products.length>0)for(let r=0;r<e.currentOrder.products.length;r+=1)e.currentOrder.products[r].isDeliveryService?t+=0:t+=e.currentOrder.products[r].number;return t},getTotalSum:(e,t)=>{let r=t.orderProducts.reduce((e,t)=>t?.isDeliveryService?e:e+t.finalPrice*t.number,0);return r-=t.getTotalDiscount,e.currentOrder.useBonus&&(r-=e.currentOrder.useBonus),+r.toFixed(2)},totalSum:(e,t)=>
1t.orderProducts.reduce((e,t)=>t?.isDeliveryService?e:e+parseInt(t.finalPrice,10)*t.number,0),deliveryServiceSum:e=>{let t=0;return e.deliveryService&&1===e.currentOrder.deliveryInfo.type?t+=e.deliveryService.finalPrice:t=0,+t.toFixed(2)},getChangeVariants:(e,t)=>{const r=t.getTotalSum,n=(0,c.C)(r);return n},getTotalDiscount:(e,t)=>{if(null===e.currentOrder.discount)return 0;let r=0;r=2===e.currentOrder.deliveryInfo.type&&t.orderProducts.length>0?t.orderProducts.filter(e=>!e.product.allowDiscount).reduce((e,t)=>e+t.finalPrice*t.number,0):t.orderProducts.reduce((e,t)=>e+t.finalPrice*t.number,0);let n=e.discountPickupValue;const o=r*(n/100);return+o.toFixed(2)},curOrdDeliveryType:e=>e.currentOrder.deliveryInfo.type,mainPaymentType:e=>e.currentOrder.payments[0].type,isValidPhone:e=>null!==e.currentOrder.clientInfo.phoneString&&!(e.currentOrder.clientInfo.phoneString.length<10),hasAddress:e=>null!==e.currentOrder.clientInfo.address.dadata,hasHouse:e=>null===e.currentOrder.clientInfo.address.dadata||null!==e.currentOrder.clientInfo.address.dadata.data.house,isAddressInZone:e=>!!(e.currentOrder.clientInfo.addressString&&e.currentOrder.clientInfo.address.dadata?.data?.house&&e.currentOrder.deliveryInfo.department),hasDate:e=>null!==e.currentOrder.deliveryInfo.date&&!(e.currentOrder.deliveryInfo.date.length<10),hasTime:e=>null!==e.currentOrder.deliveryInfo.time&&!(e.currentOrder.deliveryInfo.time.length<5),isDatePast:e=>{const t=new Date,r=e.currentOrder.deliveryInfo.date,o=e.currentOrder.deliveryInfo.time;if(null===o)return!1;if(o.length<5)return!1;const s=n.Ay.extractDate(`${r} ${o}`,"DD.MM.YYYY HH:mm"),i="minutes",a=n.Ay.getDateDiff(s,t,i);return a<0},isLaterThenNear:e=>{const t=e.nearTime.time,r=e.currentOrder.deliveryInfo.date,o=e.currentOrder.deliveryInfo.time;if(null===o)return!0;if(o.length<5)return!0;const s=n.Ay.extractDate(`${r} ${o}`,"DD.MM.YYYY HH:mm"),i="minutes",a=n.Ay.getDateDiff(s,t,i);return!(a<0)},depWork:e=>{let t=e.currentOrder.deliveryInfo.department?.workTime;const r=i()(e.currentOrder.deliveryInfo.date,"DD.MM.YYYY");return t&&(t=JSON.parse(t),t=t.find(e=>e.name.toLowerCase()===r.locale("ru").format("dddd").toLowerCase()),1===e.currentOrder.deliveryInfo.type?(t.startDelivery=i()(t.start,"HH:mm").add(e.currentOrder.deliveryInfo.department.timeMinDelivery??0,"minutes").format("HH:mm"),t.endDelivery=i()(t.start,"HH:mm").add(e.currentOrder.deliveryInfo.department.timeMinDelivery??0,"minutes").format("HH:mm")):(t.startDelivery=i()(t.start,"HH:mm").add(e.currentOrder.deliveryInfo.department.timeMinPickup??0,"minutes").format("HH:mm"),t.endDelivery=i()(t.start,"HH:mm").add(e.currentOrder.deliveryInfo.department.timeMinPickup??0,"minutes").format("HH:mm"))),t},isTimeInWork:(e,t)=>{const r={before:!1,isWork:!0};if(e.currentOrder.deliveryInfo.department&&e.currentOrder.deliveryInfo.date){const n=e.currentOrder.deliveryInfo.date,o=i()(e.currentOrder.deliveryInfo.date,"DD.MM.YYYY").add(-1,"day"),s=i()(`${n} ${e.currentOrder.deliveryInfo.time}`,"DD.MM.YYYY HH:mm"),a=e.currentOrder.deliveryInfo.department?.workTime;if(a){const c=i()(n,"DD.MM.YYYY").locale("ru").format("dddd"),d=o.locale("ru").format("dddd"),u=JSON.parse(a).find(e=>e.name.toLowerCase()===c.toLowerCase()),l=JSON.parse(a).find(e=>e.name.toLowerCase()===d.toLowerCase()),m=`${n} ${t.depWork.startDelivery}`,p=`${o.format("DD.MM.YYYY")} ${l.start}`,f=`${n} ${u.end}`,h=`${o.format("DD.MM.YYYY")} ${l.end}`,g=i()(m,"DD.MM.YYYY HH:mm").add(-1,"minutes"),y=i()(p,"DD.MM.YYYY HH:mm"),v=i()(f,"DD.MM.YYYY HH:mm").add(1,"minutes"),k=i()(h,"DD.MM.YYYY HH:mm").add(1,"minutes");v.isBefore(g)&&v.add(1,"day"),k.isBefore(y)&&k.add(1,"day"),r.isWork=s.isBetween(g,v)||s.isBetween(y,k);const I=i()(new Date(e.nearTime.time)).add(-1,"minutes");r.before=s.isBefore(I)}}return r},isDateFar:e=>{const t=new Date,r=new Date(`${e.currentOrder.deliveryInfo.date} ${e.currentOrder.deliveryInfo.time}:00`),o="minutes",s=n.Ay.getDateDiff(r,t,o);return s>1440},clientName:e=>{const t=e.currentOrder.clientInfo.client.name;return t},deliveryZoneRight1:e=>{const t=e.departments,r=[];return t.forEach((e,t)=>{r[t]=e.area}),r},isBreak:e=>{let t=!1;return e.blind&&!0===i()().isAfter(e.blind.fromTime)&&!0===i()().isBefore(e.blind.toTime)&&(t=!0),t},idempotenceKey:(e,t)=>{let r=null;return t.getTotalSum>0&&e.currentOrder.deliveryInfo.department&&(r=(0,a.A)()),r},orderProducts:(e,t)=>{const r=t.limitCategory;return e.currentOrder.products.map(n=>{let o=!0,s=d(e.categoriesMenu,n.product.id);const i=n.modifiers.size,a=n.modifiers.group||[];s||(s=n.product,o=!1);let c=s.basePrice;if(void 0!==n.modifiers?.main?.addPrice&&(c+=+n.modifiers.main.addPrice),void 0!==n.modifiers?.size?.addPrice&&(c+=+n.modifiers.size.addPrice),n.modifiers?.add?.length>0)for(let e=0;e<n.modifiers.add.length;e+=1)c+=n.modifiers.add[e].product?.basePrice||0;if(n.modifiers?.group?.length>0)for(let e=0;e<n.modifiers.group.length;e+=1)c+=n.modifiers.group[e].addPrice||0;
1const l={...n,product:s,originalProduct:n,finalPrice:c,isWork:!0,startTime:null,endTime:null,notWorkText:null};if(n.product.name.toLowerCase().includes("доÑÑав"))return l;if(e.currentOrder.deliveryInfo.department){if(r?.length>0){const t=r.find(e=>e.id===s.categoryId);t&&u(l,t,e.currentOrder.deliveryInfo)}if(t.checkInStopList(s)&&(l.isWork=!1,l.notWorkText="бÑÐ´ÐµÑ Ð¿Ð¾Ð·Ð¶Ðµ"),o||(l.isWork=!1,l.notWorkText="болÑÑе не доÑÑÑпно"),l.isWork&&i.product?.id){const e=s.modifiers.find(e=>e.product.id===i.product.id);if(e){const r=t.checkInStopList(e.product);r&&(l.isWork=!1,l.notWorkText=` ${i.name} - вÑеменно неÑ`)}else l.isWork=!1,l.notWorkText=` ${i.name} - болÑÑе не доÑÑÑпно`}l.isWork&&a.length>0&&a.forEach(e=>{const r=s.modifiers.find(t=>t.product.id===e.product.id);if(r){const n=t.checkInStopList(r.product);n&&(l.isWork=!1,l.notWorkText=` ${e.name} - вÑеменно неÑ`)}else l.isWork=!1,l.notWorkText=` ${e.name} - болÑÑе не доÑÑÑпно`})}return l})},limitCategory:e=>e.categoriesMenu.filter(e=>e.schedule),checkInStopList:e=>t=>{let r=!1;if(e.currentOrder.deliveryInfo.department){const{iikoTerminalGroup:n}=e.currentOrder.deliveryInfo.department,o=t.iikoProduct?.iikoStopList||t?.iikoStopList;if(o){const e=o.find(e=>e.terminalGroupId===n);e&&e.balance<=2&&(r=!0)}}return r},checkLimitsProducts:(e,t)=>t.orderProducts.filter(e=>!1===e.isWork),isMobile:()=>!o.A.gt.sm,getPickupDepartments:e=>e.departments.filter(e=>e.canPickUp)}},50477:()=>{},52782:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(38017),o=r(94563);const s=(0,o.zj)(({app:e})=>{e.use(n.VueReCaptcha,{siteKey:"6LfFMNMrAAAAAOHj1V1ykn1OZbyrVP4nHV6cOLdt",loaderOptions:{useRecaptchaNet:!0}})})},52909:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getPromotions:()=>o});var n=r(46637);async function o(e){return await n.A.get("/api/promotions").then(({data:t})=>{e.commit("setPromotions",t.promotions.sort((e,t)=>e.sort_index-t.sort_index))}),!0}},54512:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(63106),o=r(49805),s=r(21011),i=r(82651),a=r(85211),c=r(88769);const d={config:{},lang:n.A,iconSet:o.A,plugins:{Meta:s.Ay,Cookies:i.A,Notify:a.A,Dialog:c.A}}},54920:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14841),o=r(86912),s=r(70411),i=r(28867);const a={namespaced:!0,getters:o,mutations:s,actions:i,state:n.A}},56680:(e,t,r)=>{"use strict";function n(e){return e.clientInfo.phones&&e.clientInfo.phones.length>0?e.clientInfo.phones[0].phone:null}function o(e){return void 0!==e.clientInfo.phones?e.clientInfo.phones[0].id:null}r.r(t),r.d(t,{mainPhone:()=>n,mainPhoneId:()=>o})},58715:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getBonus:()=>i,getCabinetInfo:()=>s,updateCabinetInfo:()=>a});var n=r(22582),o=r(46637);r(31924);async function s(e,t){let r=null;return await o.A.get("/api/user",{headers:{Authorization:`Bearer ${t}`}}).then(({data:t})=>{r=(0,n.A)(t.client),e.commit("setClientInfo",r),e.commit("order/setPhone",t.client.phones[0].phone,{root:!0}),e.commit("order/setName",t.client.name,{root:!0})}).catch(e=>{console.log(e)}),r}function i(e,t){return t?o.A.get(`/api/iiko/bonus?phone=7${e.state.clientInfo.phones[0].phone}`,{headers:{Authorization:`Bearer ${t}`}}).then(({data:t})=>{e.commit("setBalance",t.walletBalances[0].balance),e.commit("setRang",t.categories[0].name)}).catch(e=>{console.log("e",e)}):null}function a(e,t){const r={name:e.state.clientInfo.name,email:e.state.clientInfo.email,bday:e.state.clientInfo.bday,phoneId:e.getters.mainPhoneId,phone:e.getters.mainPhone,token:t};return o.A.post("/api/client/info/update",{clientInfo:r},{headers:{Authorization:`Bearer ${t}`}}).then(({data:e})=>void 0===e.error&&e).catch(e=>e)}},63591:(e,t,r)=>{"use strict";r.r(t),r.d(t,{checkPayment:()=>S,getAddressHints:()=>f,getCoordsByString:()=>h,getDeliveryZones:()=>O,getDepartments:()=>g,getDepatmentByPoint:()=>k,getDepatmentByString:()=>v,getEMenu:()=>c,getNearTime:()=>I,getOrderMenu:()=>a,logIt:()=>w,sendOrder:()=>p,setNeedSendToIiko:()=>b,tryPromoCode:()=>y});r(50310),r(90095);var n=r(22582),o=r(46637),s=r(85038),i=r.n(s);async function a(e){return await o.A.get("/api/menutreeSite-v2").then(({data:t})=>{e.commit("setCategoriesMenu",(0,n.A)(t.categories))}),!0}async function c(e){return await o.A.get("/api/menuESite").then(({data:t})=>{e.commit("setCategoriesMenu",t.categories)}),!0}const d=3e4,u=2e3;function l(e){return"Network Error"===e.message||"ECONNABORTED"===e.code||void 0===e.response&&void 0!==e.request}function m(e){return o.A.post("/api/order-site",{order:e},{timeout:d})}async function p(e){const t=e.getters.orderProducts;e.commit("syncPricesFromCatalog",t);const r=e.state.currentOrder;let n;try{n=JSON.parse(JSON.stringify(r))}catch(e){return console.warn("sendOrder: failed to serialize order",e),{order:{status:"error",message:"ÐÑибка даннÑÑ
заказа. ÐбновиÑе ÑÑÑаниÑÑ Ð¸ попÑобÑйÑе Ñнова."}}}const o=JSON.parse(JSON.stringify(r));o.deliveryInfo=o.deliveryInfo||{},o.deliveryInfo.department=o.deliveryInfo.department?.name??o.deliveryInfo.department,e.dispatch("logIt",{message:`SITE оÑпÑавлÑем заказ: '${JSON.stringify(o)}`,level:"info"});const s=t=>t?.error?{order:{status:"error",message:t.error}}:(e.commit("setOrderId",t.order.id),t),i=e=>(console.warn("sendOrder request failed",e?.message||e),{order:{status:"error",message:e.message||"ÐÑибка ÑеÑи"}});try{const{data:e}=await m(n);return s(e)}catch(t){if(!l(t))return i(t);e.dispatch("logIt",{message:`SITE sendOrder network error, retry after ${u}ms: ${t.message}`,level:"info"}),await new Promise(e=>setTimeout(e,u));try{const{data:e}=await m(n);return s(e)}catch(e){return i(e)}}}async function f(e,t){return e.commit("setAddressString",t),o.A.get(`/api/address/hints?address=${t}`).then(({data:e})=>(0,n.A)(e.hints)).catch(e=>{console.warn(e)})}async function h(e,t){return o.A.get(`/api/address/coord?address=${t}`).then(({data:e})=>e.coords).catch(e=>(console.warn(e),{error:e}))}async function g(e){const t=await o.A.get("/api/departments-active").then(({data:t})=>{t=(0,n.A)(t);const r=[];
1t.departments.forEach((e,t)=>{r[t]=e,r[t].commentUrl=JSON.parse(e.commentUrl);const n=JSON.parse(e.area);n.features&&n.features.forEach((e,o)=>{e.geometry.coordinates.forEach((e,t)=>{e.forEach((e,r)=>{e.splice(0,e.length,e[1],e[0]),n.features[o].geometry.coordinates[t][r]=e})}),r[t].area=n}),r[t].latLong=JSON.parse(e.latLong)}),e.commit("setDepartments",r)});return t}async function y(e,t){const r=e.state.promoCode.value;let s={};return null!==r&&""!==r?await o.A.post("/api/promocode/use",{promoCodeParam:t}).then(({data:t})=>{if(void 0!==t.product){const r=(0,n.A)(t.product);e.commit("setPromoCodeUsing",r),e.commit("deleteAllGiftProduct"),e.commit("setPromoOrderMinSum",t.promoCodeUsing.min_sum);const o={product:r,isGift:!0,number:1,promoId:t.promoCodeUsing.promo_code_id,modifiers:{main:{},size:{},add:[]},finalPrice:0};e.commit("addProductToBasket",o),s=t}s=t}):s.promoCodeError={massage:"ÐÑ Ð½Ðµ заполнили поле пÑомокода"},s}async function v(e,t){const{guid:r}=e.state;await o.A.get(`/api/department-by-address?address=${t}&app=backoffice&guid=${r}`).then(({data:t})=>{const r=(0,n.A)(t);return t.error?(e.commit("setDepartment",null),e.commit("setMinSum",null),e.commit("setZone",null),e.commit("setDeliveryService",null)):(e.commit("setDepartment",r.department),e.commit("setMinSum",r.minSum),e.commit("setZone",r.zone),e.commit("setDeliveryService",r.zone.deliveryService)),t.minSum}).catch(e=>(console.log(e),1e3))}async function k(e,t){if(t.geoLat&&t.geoLon){const r=t.geoLat,s=t.geoLon;o.A.get(`/api/checkPoint?lat=${r}&long=${s}&app=site`).then(({data:t})=>{const r=(0,n.A)(t);t.department?(e.commit("setDepartment",r.department),e.commit("setMinSum",r.minSum),e.commit("setZone",r.zone),e.commit("setDeliveryService",r.zone.deliveryService)):(e.commit("setDepartment",null),e.commit("setMinSum",null),e.commit("setZone",null),e.commit("setDeliveryService",null))}).catch(e=>{console.log("error",e)})}}async function I(e,t=!1){const r=e.state.currentOrder;return o.A.post("/api/order/near-time",{order:r}).then(({data:r})=>{e.commit("setNearTime",i()(r)),e.state.currentOrder.deliveryInfo.time&&!t||(e.commit("setDate",i()(r).format("DD.MM.YYYY")),e.commit("setTime",i()(r).format("HH:mm")))})}async function S(e){return await o.A.post("/api/check-payment",{merchant_id:e.state.currentOrder.payments[0].merchantId,external_id:e.state.currentOrder.payments[0].externalId,order_id:e.state.currentOrder.id})}async function O(e){o.A.get("/api/zones").then(({data:t})=>{e.commit("setDeliveryZones",(0,n.A)(t.deliveryZones))})}async function b(e,t){let r=null;const n=e.state.currentOrder.id;return null!==n&&(r=await o.A.post("/api/order/need-send",{token:t,orderId:n})),r}async function w(e,t){return o.A.get(`api/v2/log-it?message=${t.message}&level=${t.level}`).then(()=>{}).catch(()=>{})}},64270:(e,t,r)=>{"use strict";function n(e,t){e.promotions=[...t]}r.r(t),r.d(t,{setPromotions:()=>n})},65375:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(94563),o=r(60455),s=r(70297);const i=(0,n.wE)(function({store:e}){const t=o.LA,r=(0,o.aE)({scrollBehavior(e,t,r){return r||(e.hash?{el:e.hash,behavior:"smooth"}:void 0)},routes:s.A,history:t("/")});return r.beforeEach((t,r,n)=>{if(!e.state.cabinetInfo.token&&t.path.includes("cabinet"))n("/delivery");else{if(t.path.match(/\.(png|jpg|ico|svg)$/i))return n(!1);n()}}),r})},65883:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(94563);r(24961);const o=(0,n.zj)(()=>{})},69904:(e,t,r)=>{"use strict";r.d(t,{WQ:()=>i,be:()=>s});const n=549846;function o(e){return!(!e||e<0)&&(e===n||(console.log(`ð State version changed (saved: v${e}, current: v${n}), resetting`),!1))}function s(e){return{__version:n,__timestamp:Date.now(),__hash:"26e853b7",...e}}function i(e){if(!e)return null;const t=e.__version||0,r=e.__timestamp,n=e.__hash||"unknown";if(console.log(`ð Loading state v${t} (hash: ${n}, saved ${new Date(r).toLocaleString()})`),!o(t))return console.log("ðï¸ State cleared due to version mismatch"),null;const{__version:s,__timestamp:i,__hash:a,...c}=e;return c}},70297:(e,t,r)=>{"use strict";r.d(t,{A:()=>
1o});const n=[{path:"/",component:()=>Promise.all([r.e(121),r.e(823)]).then(r.bind(r,98823)),children:[{path:"",name:"home",component:()=>Promise.all([r.e(121),r.e(996),r.e(10)]).then(r.bind(r,8010))},{path:"/main",name:"main",component:()=>Promise.all([r.e(121),r.e(996)]).then(r.bind(r,45550)),children:[]},{path:"/main/:section",name:"main-section",component:()=>Promise.all([r.e(121),r.e(996)]).then(r.bind(r,45550)),props:!0},{path:"delivery",component:()=>Promise.all([r.e(121),r.e(996),r.e(214)]).then(r.bind(r,64214))},{path:"cabinet/",component:()=>Promise.all([r.e(121),r.e(996),r.e(128)]).then(r.bind(r,93128)),children:[{path:"profile",component:()=>Promise.all([r.e(121),r.e(996),r.e(712)]).then(r.bind(r,17712))},{path:"adresses",component:()=>Promise.all([r.e(121),r.e(453)]).then(r.bind(r,16453))},{path:"bonus",component:()=>r.e(722).then(r.bind(r,18722))},{path:"orderHistory",component:()=>Promise.all([r.e(121),r.e(510)]).then(r.bind(r,62510))}]}]},{path:"/:catchAll(.*)*",component:()=>r.e(923).then(r.bind(r,77923))}],o=n},70411:(e,t,r)=>{"use strict";function n(e,t){e.menus=[...t]}r.r(t),r.d(t,{setMenu:()=>n})},71552:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(26817),o=r(56680),s=r(84896),i=r(58715);const a={namespaced:!0,state:n.A,getters:o,mutations:s,actions:i}},74801:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(61758);const o=Object.assign({name:"App"},{__name:"App",setup(e){return(e,t)=>{const r=(0,n.g2)("router-view");return(0,n.uX)(),(0,n.Wv)(r)}}})},75829:()=>{},79443:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(20870);const o=n.A,s=o},83582:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getInteriors:()=>o});var n=r(46637);async function o(e){return await n.A.get("/api/photo-list").then(({data:t})=>{e.commit("setInterior",t.photos)}),!0}},84748:(e,t,r)=>{"use strict";function n(){return{canOrderMake:!0,canDelivery:!1,repairText:null,caption:"",mainPhone:"",vk:"",blind:null,mainSeo:{},promoSeo:{},feedbackSeo:{},deliveryZoneSeo:{},basketSeo:{},companyName:"",lawCompanyName:"",email:null,qualityControlTG:"",qualityControlMAX:""}}r.d(t,{A:()=>n})},84896:(e,t,r)=>{"use strict";r.r(t),r.d(t,{logout:()=>p,setBalance:()=>d,setBday:()=>a,setClient:()=>m,setClientInfo:()=>o,setEmail:()=>c,setMainPhone:()=>i,setName:()=>s,setRang:()=>u,setToken:()=>l});var n=r(39324);function o(e,t){if(t.bday){const e=n.Ay.formatDate(t.bday,"DD.MM.YYYY");t.bday=e}e.clientInfo=t}function s(e,t){e.clientInfo.name=t}function i(e,t){e.clientInfo.phones[0].phone=t}function a(e,t){e.clientInfo.bday=t}function c(e,t){e.clientInfo.email=t}function d(e,t){e.balance=t}function u(e,t){e.rang=t}function l(e,t){e.token=t}function m(e,t){e.name=t.name}function p(e){e.token=null,e.name=null}}
1,86909:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(85038),o=r.n(n),s=r(75836),i=r.n(s),a=r(5607);function c(){return{defaultState:{id:null,sourceId:JSON.parse('{"SITE":1, "APP":2, "PHONE": 3, "TG": 4}').SITE,comment:"",isDelete:!1,isApprove:!1,needConfirm:!0,fullForm:!0,sticks:!1,clientInfo:{client:{id:null,name:null,token:null},phone:"+7 (",phoneString:null,addressString:null,address:{id:null,apartment:null,floor:null,entrance:null,dadata:null,type:null}},deliveryInfo:{minSum:0,date:o()(new Date).format("DD.MM.YYYY"),time:null,isCheck:!1,dateCheck:null,type:JSON.parse('{"DELIVERY":1, "PICKUP":2}').DELIVERY,department:null},payments:[{type:{id:JSON.parse('{"CASH":1, "CARD":2, "SITE":3}').CARD},sum:null,paymentLink:null,merchantId:null,externalId:null}],discount:null,orderStatuses:[],products:[],forks:1,early:!1,changeWith:0},orderProducts:[],orderMenu:[],categoriesMenu:[],departments:[],canOrderMake:!0,repairText:null,promoCode:{value:null,product:null,hasUsed:!1},promoOrderMinSum:0,currentOrder:{id:null,sourceId:JSON.parse('{"SITE":1, "APP":2, "PHONE": 3, "TG": 4}').SITE,comment:null,isDelete:!1,isApprove:!1,needConfirm:!1,fullForm:!0,sticks:!1,clientInfo:{client:{id:null,name:null,hash:i()((new Date).toString()).toString(),token:null},phone:"+7 (",phoneString:null,addressString:null,address:{id:null,apartment:null,isPersonalHouse:!1,dadata:null}},deliveryInfo:{minSum:0,zone:null,date:null,time:null,isCheck:!1,dateCheck:null,type:JSON.parse('{"DELIVERY":1, "PICKUP":2}').DELIVERY,department:null},payments:[{type:{id:JSON.parse('{"CASH":1, "CARD":2, "SITE":3}').SITE},sum:null,paymentLink:null,merchantId:null,externalId:null}],discount:null,orderStatuses:[],products:[],useBonus:0,changeWith:0,early:!1,forks:1,reCaptchaToken:null},nearTime:{time:null,date:null},defaultDeliveryTime:60,defaultPickUpTime:30,discountPickupValue:0,discountPickup:null,deliveryService:null,deliveryZones:[],guid:(0,a.A)(),thanks:!1}}},86912:()=>{},89056:(e,t,r)=>{"use strict";r.d(t,{bx:()=>o,o:()=>s});let n=!0;function o(){"undefined"!==typeof window&&(n=!1)}function s(){n=!0}},91141:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});r(50310),r(32203);var n=r(20322),o=r(63835),s=r(85211),i=r(46637);const a={apiKey:"AIzaSyAFqTvORm24wc04TSaS2DqMoFbPunH_iRQ",authDomain:"pho-me-f8394.firebaseapp.com",projectId:"pho-me-f8394",storageBucket:"pho-me-f8394.firebasestorage.app",messagingSenderId:"299005398328",appId:"1:299005398328:web:88904f952dea6cc41f05cd"};class c{constructor(){this.app=(0,n.Wp)(a),this.messaging=null,this.quasar=null,this.init(),this.setupMessageHandler()}setQuasar(e){this.quasar=e}init(){try{"undefined"!==typeof window&&"serviceWorker"in navigator&&(this.messaging=(0,o.dG)(this.app),this.setupMessageListener())}catch(e){console.error("Firebase initialization error:",e)}}async requestPermission(){try{if(!("Notification"in window))throw new Error("ÐÑÐ¾Ñ Ð±ÑаÑÐ·ÐµÑ Ð½Ðµ поддеÑÐ¶Ð¸Ð²Ð°ÐµÑ push-ÑведомлениÑ");if(!("serviceWorker"in navigator))throw new Error("Service Worker не поддеÑживаеÑÑÑ");if(!("PushManager"in window))throw new Error("Push API не поддеÑживаеÑÑÑ");await navigator.serviceWorker.register("/firebase-messaging-sw.js");const e=await Notification.requestPermission();if("granted"===e)try{await this.getPushToken()}catch(e){console.error("Error getting push token:",e)}return e}catch(e){throw console.error("Error requesting permission:",e),e}}async getPushToken(e=null){try{if(!("serviceWorker"in navigator)||!("PushManager"in window))throw new Error("Push notifications not supported in this browser");if(!this.messaging)throw new Error("Firebase messaging not initialized");let t=this.getSavedToken();if(t)try{return await this.sendTokenToServer(t,e),t}catch(e){console.error("Saved token invalid, getting new token:",e),this.removeSavedToken(),t=null}const r=await(0,o.gf)(this.messaging,{vapidKey:"BJowkXKnIovlkDscpNTIZUYq71hiT5O285bGwwcDQunv6UuCiIia5Xh__yO2f7CR_Bf6nOuxTNOOFTKtI4drUBA"});if(r)return this.saveToken(r),await this.sendTokenToServer(r,e),r;throw new Error("Ðе ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ push-token")}catch(e){throw console.error("Error getting push token:",e),e}}async sendTokenToServer(e,t){const r=navigator.userAgent,n=this.detectPlatform();try{await i.A.post("/api/push/token",{push_token:e,platform:n,user_agent:r,userId:t})}
1catch(e){throw console.error("Error sending token to server:",e),e}}async deleteTokenFromServer(e){try{await i.A.delete("/api/push/token",{data:{push_token:e}})}catch(e){throw console.error("Error deleting token from server:",e),e}}saveToken(e){try{const t=this.quasar||("undefined"!==typeof window?window.$q:null);t&&t.cookies?t.cookies.set("firebasePushToken",e,{path:"/",expires:365,sameSite:"Lax"}):"undefined"!==typeof document&&(document.cookie=`firebasePushToken=${e}; path=/; max-age=31536000; SameSite=Lax`),this.saveTokenToIndexedDB(e)}catch(e){console.error("Error saving token:",e)}}getSavedToken(){try{const e=this.quasar||("undefined"!==typeof window?window.$q:null);if(e&&e.cookies){const t=e.cookies.get("firebasePushToken");if(t)return t}else if("undefined"!==typeof document){const e=this.getCookieValue("firebasePushToken");if(e)return e}return null}catch(e){return console.error("Error getting saved token:",e),null}}removeSavedToken(){try{const e=this.quasar||("undefined"!==typeof window?window.$q:null);e&&e.cookies?e.cookies.remove("firebasePushToken",{path:"/"}):"undefined"!==typeof document&&(document.cookie="firebasePushToken=; path=/; max-age=0"),this.removeTokenFromIndexedDB()}catch(e){console.error("Error removing saved token:",e)}}saveTokenToIndexedDB(e){try{const t=indexedDB.open("NotificationSettings",1);t.onerror=()=>{console.error("IndexedDB open error")},t.onsuccess=t=>{const r=t.target.result,n=r.transaction(["tokens"],"readwrite"),o=n.objectStore("tokens"),s=o.put({key:"firebasePushToken",value:e,timestamp:Date.now()});s.onerror=()=>{console.error("IndexedDB put error")}},t.onupgradeneeded=e=>{const t=e.target.result;t.objectStoreNames.contains("permissions")||t.createObjectStore("permissions",{keyPath:"key"}),t.objectStoreNames.contains("tokens")||t.createObjectStore("tokens",{keyPath:"key"})}}catch(e){console.error("Error saving token to IndexedDB:",e)}}removeTokenFromIndexedDB(){try{const e=indexedDB.open("NotificationSettings",1);e.onsuccess=e=>{const t=e.target.result,r=t.transaction(["tokens"],"readwrite"),n=r.objectStore("tokens"),o=n.delete("firebasePushToken");o.onerror=()=>{console.error("IndexedDB delete error")}}}catch(e){console.error("Error removing token from IndexedDB:",e)}}async getCurrentToken(){try{if(!this.messaging)throw new Error("Firebase messaging not initialized");const e=await(0,o.gf)(this.messaging,{vapidKey:"BJowkXKnIovlkDscpNTIZUYq71hiT5O285bGwwcDQunv6UuCiIia5Xh__yO2f7CR_Bf6nOuxTNOOFTKtI4drUBA"});return e}catch(e){return console.error("Error getting current token:",e),null}}async deleteToken(){try{let e=this.getSavedToken();return!e&&this.messaging&&(e=await this.getCurrentToken()),!!e&&(await this.deleteTokenFromServer(e),!0)}catch(e){throw console.error("Error deleting token:",e),e}}detectPlatform(){const e=navigator.userAgent.toLowerCase();return/android/i.test(e)?"android":/iphone|ipad|ipod/i.test(e)?"ios":"web"}setupMessageHandler(){"serviceWorker"in navigator&&navigator.serviceWorker.addEventListener("message",e=>{if("NOTIFICATION_CLICK"===e.data?.type){const t=e.data.url;t&&(window.location.href=t)}else"GET_NOTIFICATION_PERMISSION"===e.data?.type&&this.handlePermissionRequest(e)})}handlePermissionRequest(e){try{const t=this.getCookieValue("permissionNotifyStatus"),r=t||"granted";e.ports&&e.ports[0]?e.ports[0].postMessage({type:"NOTIFICATION_PERMISSION_RESPONSE",permission:r}):e.source&&e.source.postMessage({type:"NOTIFICATION_PERMISSION_RESPONSE",permission:r})}catch(t){console.error("Error handling permission request:",t),e.ports&&e.ports[0]&&e.ports[0].postMessage({type:"NOTIFICATION_PERMISSION_RESPONSE",permission:"granted"})}}getCookieValue(e){try{const t=document.cookie.split(";"),r=t.find(t=>t.trim().startsWith(e+"="));return r?r.split("=")[1]:null}catch(e){return console.error("Error getting cookie value:",e),null}}saveNotificationPermission(e){try{this.saveToIndexedDB(e)}catch(e){console.error("Error saving notification permission:",e)}}getNotificationPermission(){try{return this.getCookieValue("permissionNotifyStatus")}catch(e){return console.error("Error getting notification permission:",e),null}}saveToIndexedDB(e){try{const t=indexedDB.open("NotificationSettings",1);t.onerror=()=>{console.error("IndexedDB open error")},t.onsuccess=t=>{const r=t.target.result,n=r.transaction(["permissions"],"readwrite"),o=n.objectStore("permissions");o.put({key:"notificationPermission",value:e,timestamp:Date.now()})},t.onupgradeneeded=e=>{const t=e.target.result;t.objectStoreNames.contains("permissions")||t.createObjectStore("permissions",{keyPath:"key"})}}catch(e){console.error("Error saving to IndexedDB:",e)}}setupMessageListener(){(0,o.xD)(this.messaging,e=>{const t=this.getCookieValue("permissionNotifyStatus");"denied"!==t&&s.A.create({message:e.data?.title||"Ðовое Ñведомление",caption:e.data?.body,icon:"notifications",iconColor:"warning",color:"green",position:"top",timeout:3e5,actions:[{icon:"close",color:"white"}]})})}}const d=new c},92782:(e,t,r)=>{"use strict";r.d(t,{C:()=>n});const n=(e=1251)=>{const t=[0,100,500,1e3,5e3],r=[];for(let n=0;n<t.length;n+=1){const o=t[n];if(0!==o){const t=e%o;let n=0;t>0&&(n=o-e%o);const s=e+n,i=r.findIndex(e=>e===s);-1===i&&r.push(s)}else r.push(e)}return r}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}r.m=e,(()=>{var e=[];r.O=(t,n,o,s)=>{if(!n){var i=1/0;for(u=0;
1u<e.length;u++){for(var[n,o,s]=e[u],a=!0,c=0;c<n.length;c++)(!1&s||i>=s)&&Object.keys(r.O).every(e=>r.O[e](n[c]))?n.splice(c--,1):(a=!1,s<i&&(i=s));if(a){e.splice(u--,1);var d=o();void 0!==d&&(t=d)}}return t}s=s||0;for(var u=e.length;u>0&&e[u-1][2]>s;u--)e[u]=e[u-1];e[u]=[n,o,s]}})(),(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[]))})(),(()=>{r.u=e=>"js/"+(996===e?"chunk-common":e)+"."+{10:"9c608172",128:"f21d168f",214:"cdb277d5",453:"fecb97f1",510:"236fea48",712:"daa7bea2",722:"69942f20",823:"ed0c53d9",923:"7539bd0b",996:"57e93cb1"}[e]+".js"})(),(()=>{r.miniCssF=e=>"css/"+(996===e?"chunk-common":e)+"."+{10:"98f4d0a3",128:"f2f5f977",214:"ce3f3900",453:"ab274606",510:"9ce7ddbe",823:"88819a19",996:"5763e5fa"}[e]+".css"})(),(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="main_site_v3:";r.l=(n,o,s,i)=>{if(e[n])e[n].push(o);else{var a,c;if(void 0!==s)for(var d=document.getElementsByTagName("script"),u=0;u<d.length;u++){var l=d[u];if(l.getAttribute("src")==n||l.getAttribute("data-webpack")==t+s){a=l;break}}a||(c=!0,a=document.createElement("script"),a.charset="utf-8",r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",t+s),a.src=n),e[n]=[o];var m=(t,r)=>{a.onerror=a.onload=null,clearTimeout(p);var o=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach(e=>e(r)),t)return t(r)},p=setTimeout(m.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=m.bind(null,a.onerror),a.onload=m.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),(()=>{r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e)})(),(()=>{r.p="/"})(),(()=>{if("undefined"!==typeof document){var e=(e,t,n,o,s)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",r.nc&&(i.nonce=r.nc);var a=r=>{if(i.onerror=i.onload=null,"load"===r.type)o();else{var n=r&&r.type,a=r&&r.target&&r.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+": "+a+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=n,c.request=a,i.parentNode&&i.parentNode.removeChild(i),s(c)}};return i.onerror=i.onload=a,i.href=t,n?n.parentNode.insertBefore(i,n.nextSibling):document.head.appendChild(i),i},t=(e,t)=>{for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],s=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(s===e||s===t))return o}var i=document.getElementsByTagName("style");for(n=0;n<i.length;n++){o=i[n],s=o.getAttribute("data-href");if(s===e||s===t)return o}},n=n=>new Promise((o,s)=>{var i=r.miniCssF(n),a=r.p+i;if(t(i,a))return o();e(n,a,null,o,s)}),o={524:0};r.f.miniCss=(e,t)=>{var r={10:1,128:1,214:1,453:1,510:1,823:1,996:1};o[e]?t.push(o[e]):0!==o[e]&&r[e]&&t.push(o[e]=n(e).then(()=>{o[e]=0},t=>{throw delete o[e],t}))}}})(),(()=>{var e={524:0};r.f.j=(t,n)=>{var o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var s=new Promise((r,n)=>o=e[t]=[r,n]);n.push(o[2]=s);var i=r.p+r.u(t),a=new Error,c=n=>{if(r.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){var s=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+s+": "+i+")",a.name="ChunkLoadError",a.type=s,a.request=i,o[1](a)}};r.l(i,c,"chunk-"+t,t)}},r.O.j=t=>0===e[t];var t=(t,n)=>{var o,s,[i,a,c]=n,d=0;if(i.some(t=>0!==e[t])){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(c)var u=c(r)}for(t&&t(n);d<i.length;d++)s=i[d],r.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return r.O(u)},n=globalThis["webpackChunkmain_site_v3"]=globalThis["webpackChunkmain_site_v3"]||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var n=r.O(void 0,[121],()=>r(2344));n=r.O(n)})();
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.