PageSourceSearch

https://book.tez-tour.ro/_nuxt/BU6dl3ny.js

js tez-tour.ro collected 2026-10-02 22:01:26 UTC 9,395 bytes, 4 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d71d44ce-c838-53a4-ba75-81b8ef15120f")}catch(e){}}();
3import{y as e}from"./Cy8rZ4Dq.js";import{$t as t,Bn as n,Bt as r,Dn as i,E as a,F as ee,Gt as o,Ht as s,In as c,Jt as l,K as u,Kt as d,L as f,Mt as te,Nn as p,On as m,Q as h,R as g,Ut as ne,V as re,Vt as _,Y as ie,br as v,et as y,h as ae,pn as b,qn as x,rn as oe,tr as S,z as C,zt as w}from"./CRN0ZWjI.js";import{d as T,n as E}from"./jD4CS3Jy.js";import{a as D,t as O}from"#entry";import{t as se}from"./ByefBsgd.js";import{t as k}from"./CVUfgejn.js";import{n as ce}from"./D21ptbWx.js";import{t as le}from"./C7n-eKQe.js";import{a as ue,i as de,n as fe,t as pe}from"./Df2ZHyom.js";import{t as me}from"./DWV8wce9.js";import{a as he,t as A}from"./DdqA65FP.js";import{t as j}from"./qeukarGz.js";import{t as M}from"./BmvA3-OH.js";import{t as N}from"./ChE8uDfY.js";import{t as P}from"./CDtBlv51.js";var F=[{value:`name`,title:`hotels.table.name`,sortable:!0,width:`360`,show:!0},{value:`country`,title:`hotels.table.country`,sortable:!0,width:`172`,maxWidth:`172`,show:!0}
3,{value:`region`,title:`hotels.table.region`,sortable:!0,width:`172`,maxWidth:`172`,show:!0},{value:`location`,title:`hotels.table.location`,sortable:!0,width:`172`,maxWidth:`172`,show:!0},{value:`show_content`,title:`hotels.table.show_content`,sortable:!0,width:`140`,maxWidth:`140`,show:!0},{value:`has_prices`,title:`hotels.table.has_prices`,sortable:!0,width:`140`,maxWidth:`140`,show:!0},{value:`has_content`,title:`hotels.table.has_content`,sortable:!1,width:`140`,maxWidth:`140`,show:!0},{value:`giata_id`,title:`hotels.table.giata_id`,sortable:!0,width:`140`,maxWidth:`140`,show:!0},{value:`created_at`,title:`hotels.table.created_at`,sortable:!0,width:`180`,maxWidth:`180`,show:!0},{value:`updated_at`,title:`hotels.table.updated_at`,sortable:!0,width:`180`,maxWidth:`180`,show:!0},{value:`content_updated_at`,title:`hotels.table.content_updated_at`,sortable:!0,width:`180`,maxWidth:`180`,show:!0},{value:`_actions`,width:`54`,maxWidth:`54`,title:``,sortable:!1,fixed:!0,align:`center`,show:!0}],I=[{text:`global.labels.search`,value:`search`,type:`search`},{text:`hotels.table.country`,value:`country_id`,type:`select`,items:[]},{text:`hotels.table.has_prices`,value:`has_prices`,type:`select`,items:[]},{text:`hotels.table.show_content`,value:`show_content`,type:`select`,items:[]},{text:`hotels.table.has_content`,value:`has_content`,type:`select`,items:[]},{text:`hotels.table.content_updated_at`,value:`content_updated_at`,type:`date`}];p(),t(),S();var L={class:`d-flex align-center py-4 ps-0 ps-md-4 pe-0`},R={class:`text-title-large text-md-headline-small font-weight-medium text-white`},ge={class:`mx-6 hidden-sm-and-down`},_e={class:`hidden-sm-and-down`},ve={class:`d-flex`},ye={class:`text-body-medium text-gray-1 font-weight-bold mb-1`},be={class:`d-flex align-center`},xe={key:0,class:`text-body-small text-gray-1 font-weight-medium me-2`},Se={class:`text-body-small text-gray-3`},Ce={class:`text-primary d-flex align-center cursor-pointer`},we={class:`font-weight-medium`},Te={key:1},z=`hotels`,B=O(l({__name:`index`,async setup(t){let l,p,S=he(),O=k(),B=D(),{t:V}=E(),{headers:H,visibleHeaders:Ee,items:U,selected:W,page:G,meta:K,filter:q,sort:J,setSort:De,setMeta:Oe,setCurrentFilter:ke,resetFilter:Ae,getRequestFilter:je,exportTable:Y,loadSettings:Me,saveSettings:Ne,resetSettings:Pe}=pe({moduleName:z,filterFields:I,defaultHeaders:F}),X=n(!1),Z=n(),Q=n(I.map(e=>({...e,text:V(e.text)}))),Fe=()=>{B.setBreadcrumbs([{link:`/hotels`,title:V(`hotels.title`)}])},$=async()=>{X.value=!0;try{let e=await S.get({filter:je(),page:G.value,sort:J.value});U.value=e.data,Oe(e.meta),ke(),Z.value&&Z.value.scrollTop(),W.value=[]}catch(e){Ae(),O.show({title:e?.message,type:`error`})}X.value=!1},Ie=j(),Le=async()=>{try{return Ie.options()}catch(e){return O.show({title:e?.message,type:`error`}),[]}},Re=e=>{switch(e){case`country_id`:return Le();case`has_prices`:case`show_content`:case`has_content`:return[{value:!0,title:V(`global.labels.yes`)},{value:!1,title:V(`global.labels.no`)}];default:return[]}},ze=()=>{G.value.number=1,$()};return[l,p]=i(()=>Me()),await l,p(),[l,p]=i(()=>Promise.all([$()])),await l,p(),Fe(),T({title:V(`hotels.title`)}),(t,n)=>{let i=se,l=le,p=ue,S=ce,T=M,E=A,D=de,O=fe,k=me;return b(),r(k,null,{prepend:m(()=>[w(`div`,L,[w(`div`,R,v(t.$t(`hotels.title`)),1),w(`div`,ge,[d(a,{height:`26`,width:`1`,variant:`flat`,color:`#EBE9F1`})]),w(`div`,_e,[d(i)]),d(ae),d(ee,{offset:[4,0]},{activator:m(({props:e})=>[d(ie,oe({class:`text-primary d-flex align-center`,width:`40`,color:`rgba(var(--v-theme-surface), 0.15)`,"min-width":`40`,height:`40`,variant:`flat`},e),{default:m(()=>[d(h,{size:`20`,color:`white`},{default:m(()=>[...n[9]||=[o(`uil-ellipsis-v`,-1)]]),_:1})]),_:1},16)]),default:m(()=>[d(f,{"min-width":`180`,lines:!1,density:`compact`,class:`pa-0`,variant:`flat`,slim:``},{default:m(()=>[d(g,{height:`40`,class:`px-4 py-0 mb-0`,color:`primary`,onClick:n[0]||=e=>x(Y)()},{prepend:m(()=>[d(h,{size:`20`},{default:m(()=>[...n[10]||=[o(`uil-edit-alt`,-1)]]),_:1})]),default:m(()=>[d(C,{class:`text-title-small`},{default:m(()=>[o(v(t.$t(`global.buttons.export`)),1)]),_:1})]),_:1})]),_:1})]),_:1})])]),table:m(()=>[d(O,{ref_key:`table`,ref:Z,modelValue:x(W),"onUpdate:modelValue":n[6]||=e=>c(W)?W.value=e:null,class:`crud-table`,"visible-headers":x(Ee),"items-per-page":x(G).size,"page-number":x(G).number,loading:x(X),items:x(U),sort:x(J),meta:x(K),"onUpdate:sort":n[7]||=e=>{x(De)(e),$()}}
3,ne({top:m(()=>[w(`div`,null,[x(Q)?(b(),r(l,{key:0,modelValue:x(q),"onUpdate:modelValue":[n[1]||=e=>c(q)?q.value=e:null,n[2]||=e=>ze()],"load-select":Re,schema:x(Q),"module-name":z},null,8,[`modelValue`,`schema`])):_(``,!0)])]),"header._actions":m(()=>[d(p,{modelValue:x(H),"onUpdate:modelValue":[n[3]||=e=>c(H)?H.value=e:null,x(Ne)],onReset:x(Pe)},null,8,[`modelValue`,`onUpdate:modelValue`,`onReset`])]),"item.name":m(({item:e})=>[w(`div`,ve,[d(u,{size:`32`,class:`me-3 rounded`},{default:m(()=>[e.cover_image?(b(),r(S,{key:0,images:[e.cover_image]},{default:m(()=>[d(y,{src:e.cover_image,height:`32`,width:`32`,cover:``,alt:`Hotel`},null,8,[`src`])]),_:2},1032,[`images`])):(b(),r(y,{key:1,src:N,alt:`Hotel`}))]),_:2},1024),w(`div`,null,[w(`div`,ye,v(e.name),1),w(`div`,be,[e.category?(b(),s(`div`,xe,[e.category.title.substr(1,1)===`*`?(b(),r(T,{key:0,ratio:+e.category.title.substr(0,1),short:``},null,8,[`ratio`])):(b(),s(te,{key:1},[o(v(e.category.title),1)],64))])):_(``,!0),w(`div`,Se,v(e.city.title),1)])])])]),"item.city":m(({item:e})=>[o(v(e.city?e.city.title:`-`),1)]),"item.category":m(({item:e})=>[o(v(e.category?e.category.title:`-`),1)]),"item.country":m(({item:e})=>[o(v(e.country?e.country.title:`-`),1)]),"item.region":m(({item:e})=>[o(v(e.region?e.region.title:`-`),1)]),"item.has_prices":m(({item:e})=>[e.has_prices?(b(),r(h,{key:0,color:`success`},{default:m(()=>[...n[11]||=[o(` uil-check-circle `,-1)]]),_:1})):(b(),r(h,{key:1,color:`error`},{default:m(()=>[...n[12]||=[o(` uil-times-circle `,-1)]]),_:1}))]),"item.show_content":m(({item:e})=>[e.content_updated_at?(b(),r(h,{key:0,color:`success`},{default:m(()=>[...n[13]||=[o(` uil-check-circle `,-1)]]),_:1})):(b(),r(h,{key:1,color:`error`},{default:m(()=>[...n[14]||=[o(` uil-times-circle `,-1)]]),_:1}))]),"item.has_content":m(({item:e})=>[e.has_content?(b(),r(h,{key:0,color:`success`},{default:m(()=>[...n[15]||=[o(` uil-check-circle `,-1)]]),_:1})):(b(),r(h,{key:1,color:`error`},{default:m(()=>[...n[16]||=[o(` uil-times-circle `,-1)]]),_:1}))]),"item.location":m(({item:e})=>[e.latitude&&e.longitude?(b(),r(E,{key:0,location:[e.longitude,e.latitude]},{default:m(()=>[w(`div`,Ce,[w(`div`,we,v(t.$t(`hotels.table.show_on_map`)),1)])]),_:1},8,[`location`])):(b(),s(`div`,Te,`-`))]),bottom:m(()=>[d(re),d(D,{modelValue:x(G),"onUpdate:modelValue":n[4]||=e=>c(G)?G.value=e:null,meta:x(K),onChange:n[5]||=e=>$()},null,8,[`modelValue`,`meta`])]),_:2},[x(K).permissions?{name:`context-menu`,fn:m(({item:r})=>[d(a,{"min-width":`200`},{default:m(()=>[d(f,{lines:!1,density:`compact`,class:`pa-0`,slim:``},{default:m(()=>[d(g,{height:`40`,class:`px-4 py-0 mb-0`,color:`primary`,onClick:n=>t.$router.push({query:{...(t._.provides[e]||t.$route).query,details:r.id}})},{prepend:m(()=>[d(h,{size:`20`},{default:m(()=>[...n[17]||=[o(`uil-apps`,-1)]]),_:1})]),default:m(()=>[d(C,{class:`text-title-small`},{default:m(()=>[o(v(t.$t(`hotels.table.details`)),1)]),_:1})]),_:1},8,[`onClick`]),d(g,{height:`40`,class:`px-4 py-0 mb-0`,color:`primary`,to:`/hotels/${r.id}/properties`},{prepend:m(()=>[d(h,{size:`20`},{default:m(()=>[...n[18]||=[o(`uil-edit-alt`,-1)]]),_:1})]),default:m(()=>[d(C,{class:`text-title-small`},{default:m(()=>[o(v(t.$t(`hotels.edit.title`)),1)]),_:1})]),_:1},8,[`to`])]),_:2},1024)]),_:2},1024)]),key:`0`}:void 0]),1032,[`modelValue`,`visible-headers`,`items-per-page`,`page-number`,`loading`,`items`,`sort`,`meta`]),(t._.provides[e]||t.$route).query.details?(b(),r(P,{key:0,item:Number((t._.provides[e]||t.$route).query.details),onSubmit:n[8]||=e=>$()},null,8,[`item`])):_(``,!0)]),_:1})}}}),[[`__scopeId`,`data-v-0cd3894a`]]);export{B as default};
4//# debugId=d71d44ce-c838-53a4-ba75-81b8ef15120f

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.