PageSourceSearch

https://yusupov-palace.ru/_nuxt/Jbdw76ys.js

js yusupov-palace.ru collected 2026-10-02 05:08:45 UTC 7,978 bytes, 13 lines download raw bytes

1import{m as $,a7 as B,C as j,B as N,aj as T,H as r,g as n,d as e,i as P,$ as s,ao as x,ap as g,y as m,X as y,f as b,an as K,ai as z,u as D,N as h,b as V,_ as I,F as O,O as L}from"./DyBThVhF.js";import{C as H}from"./DU5CX6iw.js";import{o as F}from"./DQeHqHse.js";import{h as R}from"./QjQOytMV.js";import{f as C}from"./Dua0iCl8.js";const A=["aria-expanded","onKeydown"],W=["value","placeholder"],Y={key:0,class:"text-sm text-[#FF1010]"},E={class:"fixed top-0 left-0 z-50 h-screen w-full overflow-y-auto rounded-2xl bg-white shadow-md md:absolute md:top-auto md:h-auto md:w-fit"},U={class:"font-body mb-4 flex h-16 w-full items-center justify-between border-b pr-4 pl-3 md:hidden"},X={class:"ms-2"},Z=["src"],q={class:"flex items-center justify-center md:block md:w-fit"},G={class:"pb-8 md:pb-0"},J={class:"w-full pb-4 md:hidden"},Q={class:"excursion-vanilla-calendar"},ee=$({__name:"BaseDatePicker",props:D({placeholder:{},error:{}},{modelValue:{default:null},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const a=B(o,"modelValue"),p=h(null),t=h(null),d=h(!1);let c=null;const f=V(()=>a.value?C(a.value,"dd.MM.yyyy"):"");F(p,()=>{d.value=!1}),j(()=>{w()}),N(()=>{c?.destroy()}),T(a,()=>{k()});function v(){d.value=!d.value}function w(){t.value&&(c=new H(t.value,{locale:"ru",displayDatesOutside:!1,selectionDatesMode:"single",selectionMonthsMode:"only-arrows",selectionYearsMode:"only-arrows",disableDatesPast:!0,selectedTheme:"light",selectedDates:a.value?[C(a.value,"yyyy-MM-dd")]:[],layouts:{default:`
2        <div class="flex flex-col font-body p-6 pb-8 border rounded-2xl md:border-none">
3          <div data-vc="header" role="toolbar">
4            <#ArrowPrev [month] />
5            <div class="flex items-center justify-center gap-1" data-vc-header="content"><#Month /> <#Year /></div>
6            <#ArrowNext [month] />
7          </div>
8          <div data-vc="wrapper">
9            <#WeekNumbers />
10            <div class="c-no-grow" data-vc="content"><#Week /> <#Dates /> <#DateRangeTooltip /></div>
11          </div>
12        </div>
13      `},onClickDate:i=>{const l=i.context.selectedDates[0];a.value=l?new Date(`${l}T00:00:00`):null,d.value=!1}}),c.init())}function k(){c&&c.set({selectedDates:a.value?[C(a.value,"yyyy-MM-dd")]:[]},{year:!0,month:!0,dates:!0})}return(i,l)=>(r(),n("div",{ref_key:"root",ref:p,class:"relative w-full"},[e("div",{class:m(["hover:border-yus-gray-1 focus:border-yus-gray-1 mb-2 flex w-full cursor-pointer items-center border-b outline-none",{"border-yus-gray-1":s(d)}]),role:"button",tabindex:"0","aria-expanded":s(d),onClick:v,onKeydown:[x(g(v,["prevent"]),["enter"]),x(g(v,["prevent"]),["space"])]},[l[1]||(l[1]=P('<svg viewBox="0 0 24 24" fill="none" class="mb-4 h-6 w-6 shrink-0" xmlns="http://www.w3.org/2000/svg" data-v-e8c42961><rect x="3" y="6" width="18" height="15" rx="2" stroke="#231F20" data-v-e8c42961></rect><path d="M3 11L21 11" stroke="#231F20" stroke-linecap="round" data-v-e8c42961></path><path d="M9 16H15" stroke="#231F20" stroke-linecap="round" data-v-e8c42961></path><path d="M8 3L8 7" stroke="#231F20" stroke-linecap="round" data-v-e8c42961></path><path d="M16 3L16 7" stroke="#231F20" stroke-linecap="round" data-v-e8c42961></path></svg>',1)),e("input",{type:"text",class:"placeholder:text-yus-gray-1 w-full cursor-pointer pb-4 pl-3 outline-none",value:s(f),placeholder:o.placeholder,readonly:"",autocomplete:"off",tabindex:"-1"},null,8,W)],42,A),o.error?(r(),n("div",Y,y(o.error),1)):b("",!0),K(e("div",E,[e("div",U,[e("div",X,[e("img",{src:s(R),alt:"",class:"h-10 w-auto"},null,8,Z)]),e("button",{type:"button","aria-label":"Закрыть календарь",onClick:l[0]||(l[0]=u=>d.value=!1)},[...l[2]||(l[2]=[e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M18 6L6 18",stroke:"#231F20","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M6 6L18 18",stroke:"#231F20","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])]),e("div",q,[e("div",G,[e("div",J,y(o.placeholder.replace("*","")),1),e("div",Q,[e("div",{ref_key:"calendarRef",ref:t,class:"p-0"},null,512)])])])],512),[[z,s(d)]])],512))}}),xe=Object.assign(I(ee,[["__scopeId","data-v-e8c42961"]]),{__name:"BaseDatePicker"}),te=["aria-expanded","onKeydown"],oe={key:0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"mb-4 h-6 w-6 shrink-0",xmlns:"http://www.w3.org/2000/svg"},le=["value","placeholder","aria-label"],ae={key:0,class:"absolute z-20 w-full overflow-hidden rounded-2xl bg-white py-4 shadow-lg"},se={class:"max-h-36 overflow-y-auto"},re=["onClick"],ne=$({__name:"BaseTimePicker",props:D({placeholder:{},showIcon:{type:Boolean}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const a=B(o,"modelValue"),p=h(null),t=h(!1),d=V(()=>v("09:30","21:00",30));F(p,()=>{t.value=!1});function c(i){a.value=i,t.value=!1}function f(){t.value=!t.value}function v(i,l,u){const _=[];let M=w(i);const S=w(l);for(;M<=S;)_.push(k(M)),M+=u;return _}function w(i){const[l="0",u="0"]=i.split(":");return Number(l)*60+Number(u)}function k(i){const l=Math.floor(i/60),u=i%60;return`${String(l).padStart(2,"0")}
13:${String(u).padStart(2,"0")}`}return(i,l)=>(r(),n("div",{ref_key:"root",ref:p,class:"relative w-full"},[e("div",{class:m(["hover:border-yus-gray-1 focus:border-yus-gray-1 flex w-full cursor-pointer items-center border-b outline-none",{"border-yus-gray-1":s(t)}]),role:"button",tabindex:"0","aria-expanded":s(t),onClick:f,onKeydown:[x(g(f,["prevent"]),["enter"]),x(g(f,["prevent"]),["space"])]},[o.showIcon?(r(),n("svg",oe,[...l[0]||(l[0]=[e("circle",{cx:"12",cy:"12",r:"8.5",stroke:"#231F20"},null,-1),e("path",{d:"M16.5 12H12.25C12.1119 12 12 11.8881 12 11.75V8.5",stroke:"#231F20","stroke-linecap":"round"},null,-1)])])):b("",!0),e("input",{type:"text",class:m(["placeholder:text-yus-gray-1 w-full cursor-pointer pb-4 outline-none",o.showIcon?"pl-3":""]),value:a.value,placeholder:o.placeholder,readonly:"",autocomplete:"off",tabindex:"-1","aria-label":o.placeholder},null,10,le)],42,te),s(t)?(r(),n("div",ae,[e("div",se,[(r(!0),n(O,null,L(s(d),u=>(r(),n("button",{key:u,type:"button",class:m(["hover:bg-yus-gray-4 block w-full cursor-pointer px-6 py-2 text-left",{"bg-yus-gray-4":u===a.value}]),onClick:_=>c(u)},y(u),11,re))),128))])])):b("",!0)],512))}}),ge=Object.assign(ne,{__name:"BaseTimePicker"}),de=["aria-expanded"],ie={class:"flex-1"},ue={key:0,class:"absolute z-20 w-full overflow-hidden rounded-2xl bg-white py-4 shadow-lg"},ce={class:"max-h-36 overflow-y-auto"},fe=["onClick"],ve={key:1,class:"text-sm text-[#FF1010]"},pe=$({__name:"BaseSelect",props:D({options:{},placeholder:{},error:{}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const a=B(o,"modelValue"),p=h(null),t=h(!1);F(p,()=>{t.value=!1});function d(c){a.value=c,t.value=!1}return(c,f)=>(r(),n("div",{ref_key:"root",ref:p,class:"relative w-full"},[e("button",{type:"button",class:m(["hover:border-yus-gray-1 focus:border-yus-gray-1 flex w-full border-b pb-4 text-left outline-none",{"border-yus-gray-1":s(t),"mb-2":o.error}]),"aria-expanded":s(t),onClick:f[0]||(f[0]=v=>t.value=!s(t))},[e("span",ie,y(a.value||o.placeholder),1),(r(),n("svg",{viewBox:"0 0 24 24",fill:"none",class:m(["h-6 w-6 shrink-0 duration-300",{"rotate-180":s(t)}]),xmlns:"http://www.w3.org/2000/svg"},[...f[1]||(f[1]=[e("path",{d:"M11.8079 14.7695L8.09346 10.3121C7.65924 9.79109 8.02976 9 8.70803 9L15.292 9C15.9702 9 16.3408 9.79108 15.9065 10.3121L12.1921 14.7695C12.0921 14.8895 11.9079 14.8895 11.8079 14.7695Z",fill:"currentColor"},null,-1)])],2))],10,de),s(t)?(r(),n("div",ue,[e("div",ce,[(r(!0),n(O,null,L(o.options,v=>(r(),n("button",{key:v,type:"button",class:"hover:bg-yus-gray-4 block w-full cursor-pointer px-6 py-2 text-left",onClick:w=>d(v)},y(v),9,fe))),128))])])):b("",!0),o.error?(r(),n("div",ve,y(o.error),1)):b("",!0)],512))}}),ke=Object.assign(pe,{__name:"BaseSelect"});export{ke as _,xe as a,ge as b};

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.