1import{_ as O,o as s,c as p,m as u,l as k,b as j,v as A,e as D,a as w,z as v,aF as z,A as M,F as T,p as B,a4 as L,B as y,j as g,t as C,q as _,aG as P,aH as R,aI as F,aE as S,ah as U,r as q,k as $,ae as I,a6 as W,ap as K,ai as V,U as G}from"./CTfKrY_R.js";import{_ as X}from"./BhA03P-H.js";import{_ as J}from"./DqJxEPCS.js";import{u as Q}from"./LXOga0_d.js";import{u as Y}from"./C2WHb6Qt.js";import{_ as Z}from"./CcnoRdU-.js";import{u as tt}from"./CEsirZxF.js";import"./SXsXY9IL.js";import"./DTix-4UL.js";import"./DJOD7J-U.js";import"./tPyrjNmy.js";import"./DCQudEA7.js";import"./DSC6pSeX.js";import"./otPEWk85.js";import"./DffQnMT1.js";import"./BOfojBWM.js";import"./Bmr-QcTK.js";import"./BPyP-huE.js";import"./BYSsnJj8.js";import"./B_udCDg2.js";import"./DsJwaxxK.js";import"./D7YSNKjl.js";import"./COxt5-19.js";const et={},ot={width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nt(n,o){return s(),p("svg",ot,[...o[0]||(o[0]=[u("path",{d:"M1 1L16 16M16 1L1 16",stroke:"black","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])}const st=Object.assign(O(et,[["render",nt]]),{__name:"ProductIconsIconClose"}),it=["onClick"],at=["id","aria-label"],rt=["onClick"],lt={key:0,class:"pr-9 text-lg font-semibold"},ct=["innerHTML"],ut=k({__name:"ModalHost",setup(n){const{modals:o,close:l}=Q(),d=!1;let a=null,f=null;const i=()=>{const t=document.querySelectorAll("[data-modal-panel]");return t.item(t.length-1)},b=t=>Array.from(t.querySelectorAll("button:not([disabled]), a[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex='-1'])")).filter(r=>!r.hasAttribute("hidden")&&r.getAttribute("aria-hidden")!=="true"),c=async()=>{await U();const t=i();if(!t)return;(b(t)[0]??t).focus()},m=()=>{if(a)return;const t=document.documentElement,r=t.style.overflow,e=t.style.paddingRight,h=window.innerWidth-t.clientWidth;t.style.overflow="hidden",h>0&&(t.style.paddingRight=`${h}px`),a=()=>{t.style.overflow=r,t.style.paddingRight=e,a=null}},x=()=>{a?.()},E=t=>{const r=o.value.at(-1);if(!r)return;if(t.key==="Escape"){t.preventDefault(),l(r.id,{reason:"escape"});return}if(t.key!=="Tab")return;const e=i();if(!e)return;const h=b(e);if(!h.length){t.preventDefault(),e.focus();return}const N=h[0],H=h.at(-1);t.shiftKey&&document.activeElement===N?(t.preventDefault(),H?.focus()):!t.shiftKey&&document.activeElement===H&&(t.preventDefault(),N.focus())};return j(()=>o.value.length,async(t,r)=>{if(t>r){r===0&&document.activeElement instanceof HTMLElement&&(f=document.activeElement),m(),await c();return}t===0?(x(),f?.focus(),f=null):await c()}),A(()=>{document.addEventListener("keydown",E),o.value.length&&(m(),c())}),D(()=>{document.removeEventListener("keydown",E),x()}),(t,r)=>(s(),w(S,{to:"body",disabled:g(d)},[v(z,{tag:"div","enter-active-class":"transition-opacity duration-200 ease-out motion-reduce:transition-none","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition-opacity duration-150 ease-in motion-reduce:transition-none","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:M(()=>[(s(!0),p(T,null,B(g(o),e=>(s(),p("div",{key:e.id,class:"fixed inset-0 z-[1000]"},[u("div",{class:"fixed inset-0 z-50 flex h-dvh items-start justify-center overflow-y-auto overscroll-contain bg-black/50 px-3 py-4 lg:items-center lg:px-4",onClick:L(h=>e.options?.closeOnBackdrop!==!1?g(l)(e.id,{reason:"backdrop"}):void 0,["self"])}
1,[u("div",{id:`modal-${e.id}`,"data-modal-panel":"",role:"dialog","aria-modal":"true","aria-label":e.options?.ariaLabel??e.title??"Ðиалоговое окно",tabindex:"-1",class:y(["relative flex max-h-[calc(100dvh-32px)] flex-col overflow-y-auto bg-white outline-none",[e.options?.variant==="callback"?"w-full max-w-[768px] rounded-[5px] shadow-product-card lg:w-[423px] lg:max-w-[423px] lg:rounded-xl":e.options?.variant==="coupon"?"w-full max-w-[904px] overflow-hidden rounded-xl shadow-product-card":"w-full max-w-full rounded-lg p-6 lg:w-auto",{"min-h-[283px] lg:min-h-[430px]":e.options?.autoHeight===!1}]]),onClick:r[0]||(r[0]=L(()=>{},["stop"]))},[u("button",{type:"button",class:y(["absolute z-10 flex size-7 items-center justify-center rounded transition-colors focus-visible:outline-2 focus-visible:outline-hover-link",e.options?.variant==="callback"?"right-2 top-2 flex text-black hover:bg-brand-gray-400 lg:right-[19px] lg:top-8":e.options?.variant==="coupon"?"right-3 top-3 bg-white/85 text-gray-500 hover:bg-white hover:text-gray-700 md:right-4 md:top-4":"right-4 top-4 text-gray-500 hover:bg-brand-gray-400 hover:text-gray-700"]),"aria-label":"ÐакÑÑÑÑ Ð´Ð¸Ð°Ð»Ð¾Ð³",onClick:h=>g(l)(e.id,{reason:"x"})},[v(st)],10,rt),e.title?(s(),p("h2",lt,C(e.title),1)):_("",!0),e.component?(s(),w(P(e.component),R({key:1,ref_for:!0},e.props,F(e.on??{}),{onClose:h=>g(l)(e.id,h)}),null,16,["onClose"])):(s(),p("div",{key:2,innerHTML:e.html??""},null,8,ct))],10,at)],8,it)]))),128))]),_:1})],8,["disabled"]))}}),dt=Object.assign(ut,{__name:"ModalsModalHost"}),mt=["role"],pt={class:"flex items-start gap-3"},ft={class:"mt-1 h-5 w-5 flex-shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},ht=["d"],gt={class:"min-w-0 flex-1"},vt={key:0,class:"text-sm font-semibold leading-5 text-gray-900"},bt=k({__name:"Notification",props:{item:{},defaultDuration:{},onClose:{type:Function}},setup(n){const o=n,l=q(!1);let d=null;const a=()=>{const c=o.item.duration??o.defaultDuration??4e3;c<=0||(f(),d=setTimeout(()=>o.onClose(o.item.id),c))},f=()=>{d&&(clearTimeout(d),d=null)};A(a),D(f),j(l,c=>c?f():a());const i={success:"border-green-300 bg-green-50",info:"border-blue-300 bg-blue-50",warning:"border-amber-300 bg-amber-50",error:"border-red-300 bg-red-50"},b={success:"M5 13l4 4L19 7",info:"M13 16h-1v-4h-1m1-4h.01",warning:"M12 9v4m0 4h.01",error:"M6 18L18 6M6 6l12 12"};return(c,m)=>(s(),p("div",{class:y(["pointer-events-auto w-full max-w-sm rounded-2xl border px-4 py-3 shadow-lg ring-1 ring-black/5",i[n.item.type]]),onMouseenter:m[1]||(m[1]=x=>l.value=!0),onMouseleave:m[2]||(m[2]=x=>l.value=!1),role:n.item.type==="error"||n.item.type==="warning"?"alert":"status","aria-live":"polite"},[u("div",pt,[(s(),p("svg",ft,[u("path",{d:b[n.item.type],"stroke-linecap":"round","stroke-linejoin":"round"},null,8,ht)])),u("div",gt,[n.item.title?(s(),p("p",vt,C(n.item.title),1)):_("",!0),u("p",{class:y(["text-sm leading-5 text-gray-800",n.item.title?"mt-0.5":""])},C(n.item.message),3)]),n.item.dismissible?(s(),p("button",{key:0,type:"button",class:"ml-2 inline-flex h-6 w-6 items-center justify-center rounded-full hover:bg-black/5",onClick:m[0]||(m[0]=x=>n.onClose(n.item.id)),"aria-label":"ÐакÑÑÑÑ Ñведомление"},[...m[3]||(m[3]=[u("span",{"aria-hidden":"true",class:"block h-4 w-4"},"â",-1)])])):_("",!0)])],42,mt))}}),yt=Object.assign(bt,{__name:"UiNotification"}),xt=k({__name:"NotificationCenter",props:{position:{default:"top-right"},max:{default:5},duration:{default:4e3}},setup(n){const o=n,{items:l,remove:d}=Y(),a=$(()=>{const i=l.value.slice(-o.max);return o.position?.startsWith("bottom")?i:i.slice().reverse()}),f=$(()=>{const i="pointer-events-none fixed z-[9999] p-4 sm:p-6";switch(o.position){case"top-left":return`${i} left-0 top-0`;case"top-right":return`${i} right-0 top-0`;case"bottom-left":return`${i} left-0 bottom-0`;default:return`${i} right-0 bottom-0`}});return(i,b)=>(s(),w(S,{to:"body"},[u("div",{class:y(g(f))},[v(z,{tag:"div",class:"flex w-full flex-col gap-3","enter-active-class":"transform transition duration-200","enter-from-class":"opacity-0 translate-y-2","enter-to-class":"opacity-100 translate-y-0","leave-active-class":"transform transition duration-200","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 -translate-y-2"},{default:M(()=>
1[(s(!0),p(T,null,B(g(a),c=>(s(),w(yt,{key:c.id,item:c,defaultDuration:n.duration,onClose:g(d)},null,8,["item","defaultDuration","onClose"]))),128))]),_:1})],2)]))}}),wt=Object.assign(xt,{__name:"UiNotificationCenter"}),_t={class:"flex flex-col min-h-dvh antialiased"},Kt=k({__name:"default",setup(n){const o=G(),l=I(),d=$(()=>l.path==="/");return tt({"@context":"https://schema.org/","@type":"Organization",logo:"https://divine-light.ru/favicon.ico",image:"https://divine-light.ru/assets/img/content/logo.webp",name:"Ðивайн ÐайÑ",telephone:"8 (800) 777-29-80",email:"[email protected]",url:"https://divine-light.ru/",sameAs:["https://t.me/divinelightru","https://vk.com/divinelightru","https://www.youtube.com/channel/UCuSTozEX0xeyCw_fMvwsXqA"],address:{"@type":"PostalAddress",streetAddress:"ÐдеÑÑкаÑ, д. 2",postalCode:"117638",addressCountry:"RU",addressLocality:"ÐоÑква"}}),W({titleTemplate:a=>a?`${a} â ${o.public.siteName}`:o.public.siteName}),(a,f)=>{const i=V;return s(),p(T,null,[u("div",_t,[v(X),u("main",{class:y(["flex-1 pb-6",g(d)?"lg:pb-[26px]":"lg:pb-16"])},[g(d)?_("",!0):(s(),w(Z,{key:0})),K(a.$slots,"default")],2),v(J)]),v(i,null,{default:M(()=>[v(dt),v(wt,{position:"top-right",max:6,duration:4500})]),_:1})],64)}}});export{Kt 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.