PageSourceSearch

https://ibis-gear.com/_nuxt/qss3hK4O.js

js ibis-gear.com collected 2026-10-08 07:21:40 UTC 5,043 bytes, 1 lines download raw bytes

1import{_ as s}from"./BCAKNTdi.js";import{_ as t}from"./CNAHBxWn.js";import{_ as a}from"./CF9103r0.js";import{_ as e}from"./D_RI5pI4.js";import{_ as l,q as n,x as o,v as i,w as r,ao as c,a9 as p,a8 as m,P as d,u,ak as x,ab as f,c as v,F as h,ad as w,r as g,ac as y,R as b,aa as k,E as _,ae as j}from"./DWaT-nfm.js";import{_ as C}from"./DbwAV2AD.js";import{n as S,f as $,C as A}from"./B7ccFUPv.js";import{e as B}from"./CAfoXNGp.js";import{Y as I,G as L,a as M}from"./SB_aEqEL.js";const P={viewBox:"0 0 14 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const q=Object.assign(l({},[["render",function(s,t){return o(),n("svg",P,[...t[0]||(t[0]=[i("path",{d:"M1.50862 0.8125L7 6.40022M7 6.40022L12.6875 12.1875M7 6.40022L1.3125 12.1875M7 6.40022L12.4914 0.812509",stroke:"currentColor","stroke-linecap":"round"},null,-1)])])}]]),{__name:"IconsProductNotAvailable"}),z={class:"fixed inset-0 z-10 overflow-y-auto"},E={class:"flex md:min-h-fit min-h-full justify-center text-center p-0"},F={class:"flex flex-col gap-5 min-h-fit"},O={class:"text-xl font-bold max-w-[80%]"},R={class:"flex flex-col gap-2.5"},V={class:"text-xs font-bold"},D={class:"grid sm:grid-cols-[1fr_110px_100px] sm:items-center sm:gap-10 gap-2.5 py-1.5 items-start"},G={class:"flex text-xs max-w-[360px]"},N={class:"flex justify-start items-center text-xs text-green-ibis gap-1 sm:ml-0 shrink-0 ml-0"},T={class:"flex items-center text-xs gap-1 shrink-0 text-orange"},U={class:"text-xs font-bold"},Y={class:"flex text-xs max-w-[360px]"},H={class:"flex items-center text-xs text-green-ibis gap-1 shrink-0"},J={class:"flex items-center text-xs gap-1 shrink-0 text-orange"},K={__name:"AppDialogsAvailability",props:{show:{type:Boolean,default:!1},variantCode:{type:String,default:null}},emits:["update:show"],setup(l,{emit:y}){const b=S(),k=l,_=y,j=()=>{_("update:show",!1)},P=async()=>(await b.addVariantToCart(k.variantCode),j(),b.openCart()),K=g(!1),Q=g([]);r(()=>k.show,()=>{k.show&&(async()=>{await $().productInventories.getAll({"productVariant.code":k.variantCode},{onRequest:()=>{K.value=!0},onSuccess:s=>{Q.value=new A(s)?.data},onFinally:()=>{K.value=!1}})})()});const W=v(()=>B(Q.value?.filter(({chainStore:s})=>s?.city).map(({chainStore:s})=>s.city),"id")),X=v(()=>Q.value?.find(s=>null===s.chainStore?.city));return(r,v)=>{const g=t,y=a,b=s,k=e,_=q,S=C,$=c("loading");return o(),p(u(M),{as:"template",show:l.show},{default:m(()=>[d(u(I),{as:"div",class:"relative z-10",onClose:j},{default:m(()=>[d(g),i("div",z,[i("div",E,[d(S,null,{default:m(()=>[d(u(L),{class:"transform rounded-0 bg-white p-3.5 mt-0 text-left transition-all w-full relative md:mt-32 md:rounded-md md:w-[728px] md:p-5"},{default:m(()=>[d(y,{class:"absolute right-5 top-5 md:top-6",onClick:j}),x((o(),n("div",F,[i("h2",O,f(r.$t("Наявність у містах і магазинах")),1),i("div",R,[i("p",V,f(r.$t("Інтернет-магазин")),1),i("div",D,[i("div",G,f(u(X)?.chainStore?.name),1),u(X)?.inStock?(o(),n(h,{key:0},[i("div",N,[d(b,{class:"h-2.25 w-3.5"}),i("span",null,f(r.$t("Є в наявності")),1)]),i("button",{type:"button",class:"btn btn-primary text-xs sm:!px-2.5 sm:!py-2 !px-5 !py-2.5 flex items-center gap-2.5 uppercase mr-auto",onClick:P},[d(k,{class:"w-3 h-3"}),i("span",null,f(r.$t("Купити")),1)])],64)):(o(),n(h,{key:1},[i("div",T,[d(_,{class:"h-2.5"}),i("span",null,f(r.$t("Немає")),1)]),v[0]||(v[0]=i("div",{class:"w-20 sm:ml-10 ml-6"},null,-1))],64))])]),(o(!0),n(h,null,w(u(W),s=>(o(),n("div",{key:s,class:"flex flex-col gap-2.5"},[i("p",U,f(s.name),1),(o(!0),n(h,null,w(u(Q).filter(t=>t?.chainStore?.city?.id===s.id&&t?.chainStore?.address),s=>(o(),n("div",{key:s.id,class:"grid sm:grid-cols-[1fr_110px_100px] sm:items-center sm:gap-10 gap-2.5 py-1.5 items-start"},[i("div",Y,f(s?.chainStore?.address),1),s.inStock?(o(),n(h,{key:0},[i("div",H,[d(b,{class:"h-2.25 w-3.5"}),i("span",null,f(r.$t("Є в наявності")),1)]),i("button",{type:"button",class:"btn btn-primary text-xs sm:!px-2.5 sm:!py-2 !px-5 !py-2.5 flex items-center gap-2.5 uppercase mr-auto",onClick:P},[d(k,{class:"w-3 h-3"}),i("span",null,f(r.$t("Купити")),1)])],64)):(o(),n(h,{key:1},[i("div",J,[d(_,{class:"h-2.5"}),i("span",null,f(r.$t("Немає")),1)]),v[1]||(v[1]=i("div",{class:"w-20 sm:ml-10 ml-6"},null,-1))],64))]))),128))]))),128))])),[[$,u(K)]])]),_:1})]),_:1})])])]),_:1})]),_:1},8,["show"])}}},Q={__name:"ProductAvailability",props:{variant:{type:Object,default:()=>{}},showIcon:{type:Boolean,default:!1}},setup(t){const a=g(!1),e=()=>{a.value=!0};return(l,i)=>{const r=s,c=K;return o(),n("div",{role:"button",class:"flex items-center gap-x-2 link-green-dots cursor-pointer text-[16px] mb-4 lg:mb-0",onClick:j(e,["stop","prevent"])},[t.showIcon?(o(),p(r,{key:0,class:"h-2.25 w-3.5"})):y("",!0),b(l.$slots,"default",{},()=>[k(f(l.$t("Є в наявності в магазинах")),1)]),d(c,{show:u(a),"onUpdate:show":i[0]||(i[0]=s=>_(a)?a.value=s:null),"variant-code":t.variant.code},null,8,["show","variant-code"])])}}};export{Q as _,q as a};

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.