1import{$ as N,A as C,C as n,E as r,M,Mt as t,Rt as o,S as x,X as a,_ as S,dt as B,ft as A,w as F}from"./Br0mZ6sB.js";import{i as y,p as L}from"./BVt2LJTX.js";import{o as s}from"./CUb2D8YP.js";import{n as E}from"./C2YI7jL_.js";import{r as D}from"./DxSRJxRo.js";import{x as I}from"./N2OC_i9O.js";import{t as P}from"./B0-aKTmH.js";import{t as R}from"./DbQQF86Z.js";import{Jt as T,Zt as V}from"./DnH9lQSj.js";import{t as j}from"./BQoOBjNj.js";var H={class:"text-font-primary text-[32px]/[36px] font-semibold md:text-[42px]/[46px]"},J={key:0,class:"mt-8"},X={key:1,class:"mt-8 grid gap-8"},Z={class:"text-font-primary text-[20px]/[28px] font-semibold"},q=["data"],z={class:"rounded-[16px] border border-[#e6e8ec] bg-white p-5"},G={class:"text-font-primary text-[18px]/[24px] font-medium"},K={class:"text-font-secondary mt-2 text-[16px]/[24px]"},O=["href"],Q={key:1,class:"text-font-secondary rounded-[16px] border border-[#e6e8ec] bg-white p-5 text-[16px]/[24px]"},U={key:2,class:"text-font-secondary mt-8 text-[16px]/[24px]"},W=M({__name:"licenses",async setup(Y){let p,m;const c=I();j({auth:!1,headerMode:"dark"});const f=L(),u=Number(f.params.id),_=String(f.params.slug||"");if(!Number.isFinite(u)||!_)throw y({statusCode:404,statusMessage:"Not Found"});const{data:h,pending:$,error:w}=([p,m]=B(async()=>D(`storage-licenses-${u}`,async()=>{const[e,d]=await Promise.all([T(u),V(u)]);return{warehouse:e,storageLicenses:d}})),p=await p,m(),p),i=x(()=>h.value?.warehouse||null),g=x(()=>h.value?.storageLicenses||[]);if(w.value||!i.value?.id||i.value.slug&&i.value.slug!==_)throw y({statusCode:404,statusMessage:"Not Found"});return E(()=>{const e=i.value?.name||"",d=i.value?.address||"";return{title:c("ÐиÑензии {name}, {address}",{name:e,address:d}).trim(),meta:[{name:"description",content:c("ÐиÑензии паÑÑнеÑа кладовки {name} по адÑеÑÑ {address}",{name:e,address:d}).trim()}]}}),(e,d)=>{const b=R,k=P;return a(),F(k,{padding:0,class:"px-4 py-10 md:px-[40px] lg:px-[60px]"},{default:A(()=>[n("h1",H,o(("$t"in e?e.$t:t(s))("СвидеÑелÑÑÑва")),1),t($)?(a(),r("div",J,[C(b,{type:"heading, image, image"})])):g.value.length?(a(),r("div",X,[(a(!0),r(S,null,N(g.value,(l,v)=>(a(),r("article",{key:`license-${v}`,class:"grid gap-4"},[n("h2",Z,o(l.title?("$t"in e?e.$t:t(s))(l.title):("$t"in e?e.$t:t(s))("СвидеÑелÑÑÑво {index}",{index:v+1})),1),l.url?(a(),r("object",{key:0,data:l.url,type:"application/pdf",class:"h-[70vh] w-full rounded-[16px] border border-[#e6e8ec] bg-white"},[n("div",z,[n("h3",G,o(("$t"in e?e.$t:t(s))("Ðе ÑдаÑÑÑÑ Ð¾ÑобÑазиÑÑ ÑекÑÑ")),1),n("div",K,o(("$t"in e?e.$t:t(s))("ÐажмиÑе на ÑÑÑлкÑ, ÑÑÐ¾Ð±Ñ ÑкаÑаÑÑ Ð¸ поÑмоÑÑеÑÑ Ð´Ð¾ÐºÑменÑ")),1
1),n("a",{href:l.url,target:"_blank",rel:"noopener noreferrer",download:"",class:"text-primary mt-2 inline-flex text-[16px]/[24px] underline decoration-[1px] underline-offset-4"},o(("$t"in e?e.$t:t(s))("СкаÑаÑÑ ÑвидеÑелÑÑÑво")),9,O)])],8,q)):(a(),r("div",Q,o(("$t"in e?e.$t:t(s))("У докÑменÑа оÑÑÑÑÑÑвÑÐµÑ ÑÑÑлка")),1))]))),128))])):(a(),r("div",U,o(("$t"in e?e.$t:t(s))("СвидеÑелÑÑÑва оÑÑÑÑÑÑвÑÑÑ")),1))]),_:1})}}}),pe=W;export{pe 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.