PageSourceSearch

https://saremhospital.org/_nuxt/DGVHLnq_.js

js saremhospital.org collected 2026-10-04 13:27:19 UTC 10,759 bytes, 1 lines download raw bytes

vendor: 1,890 bytes, line 1
1import{_ as J}from"./BJz6k-k4.js";import{k as F,t as K,z as e,G as ee,p as te,b as v,w as ae,ad as se,Q as f,R as w,U as a,Y as o,a1 as i,$ as E,a3 as M,F as O,a2 as G,u,Z as X,a4 as U,X as le,ab as ne,a7 as oe,a9 as re,a8 as ie,ac as ce,a5 as de,a6 as ue}from"./BjkNzLDZ.js";import{p as W,g as fe,I as _e,m as me,h as pe,U as ve,W as ye,X as xe,Y as ge,Z as we,j as he,k as be,$ as ke,n as Ce,r as Ve,q as Pe,a0 as $e,R as ze,a1 as Se,a2 as Be,a3 as Ie,a4 as je,a5 as Te,G as Ae,o as Re,a6 as De,V as Le,B as Y,f as H,u as Ne,x as Fe,a as Ee,b as Me,a7 as Oe,_ as Ue}from"./D5FAwWCd.js";import{_ as qe}from"./mdYCa3Sz.js";import{_ as Ge}from"./DfYnkfWu.js";import{u as Xe}from"./-pI9FhSw.js";import{k as Ye,V as z,a as S,b as c,c as h,d as B,f as Ze,g as Qe,j as We}from"./Bu5EdTVt.js";const Z=W("/news.png"),Q=W("/news_1.png"),He=Ye("v-alert-title"),Je=["success","info","warning","error"],Ke=fe({border:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["top","end","bottom","start"].includes(t)},borderColor:String,closable:Boolean,closeIcon:{type:_e,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:t=>Je.includes(t)},...me(),...pe(),...ve(),...ye(),...xe(),...ge(),...we(),...he(),...be(),...ke({variant:"flat"})},"VAlert"),et=Ce()({name:"VAlert",props:Ke(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0},setup(t,q){let{emit:_,slots:l}=q;const b=Ve(t,"modelValue"),m=F(()=>{if(t.icon!==!1)return t.type?t.icon??`$${t.type}`:t.icon}),y=F(()=>({color:t.color??t.type,variant:t.variant})),{themeClasses:k}=Pe(t),{colorClasses:C,colorStyles:x,variantClasses:I}=$e(y),{densityClasses:R}=ze(t),{dimensionStyles:D}=Se(t),{elevationClasses:p}=Be(t),{locationStyles:j}=Ie(t),{positionClasses:L}
1=je(t),{roundedClasses:T}=Te(t),{textColorClasses:N,textColorStyles:s}=Ae(K(t,"borderColor")),{t:n}=Re(),A=F(()=>({"aria-label":n(t.closeLabel),onClick(r){b.value=!1,_("click:close",r)}}));return()=>{const r=!!(l.prepend||m.value),g=!!(l.title||t.title),V=!!(l.close||t.closable);return b.value&&e(t.tag,{class:["v-alert",t.border&&{"v-alert--border":!!t.border,[`v-alert--border-${t.border===!0?"start":t.border}`]:!0},{"v-alert--prominent":t.prominent},k.value,C.value,R.value,p.value,L.value,T.value,I.value,t.class],style:[x.value,D.value,j.value,t.style],role:"alert"},{default:()=>{var d,P;return[De(!1,"v-alert"),t.border&&e("div",{key:"border",class:["v-alert__border",N.value],style:s.value},null),r&&e("div",{key:"prepend",class:"v-alert__prepend"},[l.prepend?e(Y,{key:"prepend-defaults",disabled:!m.value,defaults:{VIcon:{density:t.density,icon:m.value,size:t.prominent?44:28}}},l.prepend):e(Le,{key:"prepend-icon",density:t.density,icon:m.value,size:t.prominent?44:28},null)]),e("div",{class:"v-alert__content"},[g&&e(He,{key:"title"},{default:()=>{var $;return[(($=l.title)==null?void 0:$.call(l))??t.title]}}),((d=l.text)==null?void 0:d.call(l))??t.text,(P=l.default)==null?void 0:P.call(l)]),l.append&&e("div",{key:"append",class:"v-alert__append"},[l.append()]),V&&e("div",{key:"close",class:"v-alert__close"},[l.close?e(Y,{key:"close-defaults",defaults:{VBtn:{icon:t.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var $;return[($=l.close)==null?void 0:$.call(l,{props:A.value})]}}):e(H,ee({key:"close-btn",icon:t.closeIcon,size:"x-small",variant:"text"},A.value),null)])]}})}}}),tt={class:"text-h5 text-justify text-s-grey-3 font-weight-bold text-wrap w-100 w-md-50 float-right px-10 px-xs-0",style:{"line-height":"1.5"}},at={class:"text-s-grey-2-p font-weight-bold mt-6"},st={class:"text-h6 font-weight-bold mt-10"},lt={class:"text-h4 font-weight-bold mb-8"},nt={class:"font-weight-bold text-justify text-subtitle-1"},ot={class:"text-h6 text-s-grey-2-p font-weight-bold text-center",style:{"line-height":"1.5"}},rt={class:"text-center mt-10"},it={class:"text-h4 font-weight-bold"},ct={class:"text-body-1 text-s-grey-2-p font-weight-bold my-4"},dt={class:"news-item-content"},ut={class:"news-item-title"},ft=te({__name:"news",setup(t){const{t:q,locale:_}=Ne(),l=Fe(),{request:b}=Xe(),m=Ee();Me();const y=v([]),k=v({}),C=v(!1),x=v(null),I=v({}),R=(s,n)=>{I.value[s]=(n==null?void 0:n.$el)||n},D=v([{image:"/news_card_1.png",alt:"news_card_1",title:"success_stories",index:3},{image:"/news_card_2.png",alt:"news_card_2",title:"educational_articles",index:1},{image:"/news_card_3.png",alt:"news_card_3",title:"events",index:4},{image:"/news_card_4.png",alt:"news_card_4",title:"featured_magazine",index:2}]),p=v({image:"/news_card_5.png",alt:"news_card_5",title:"hospital_news",index:0});async function j(){try{C.value=!0,x.value=null;const{data:s}=await b("primary",`news/category?lang=${_.value}`);y.value=s,await Promise.all(y.value.map(n=>L(n.key)))}catch(s){console.log(s),x.value="Failed to load news data."}finally{C.value=!1}}async function L(s){try{const{data:n}=await b("primary",`news?lang=${_.value}&category=${s}&page=1&per_page=20`);k.value[s]=n}catch{console.log()}}function T(s){if(s>=0&&s<y.value.length){const n=I.value[s];n&&n.scrollIntoView({behavior:"smooth",block:"start"})}}function N(s){return Math.min(s*110,560)}return ae(_,s=>{j()}),se(()=>{j()}),(s,n)=>{const A=J;return f(),w(z,{fluid:""},{default:a(()=>[e(h,null,{default:a(()=>[e(S,{src:Z,"lazy-src":Z,cover:"","min-height":"400px",width:"100%","content-class":"d-flex align-center"},{default:a(()=>[e(c,{cols:"12",class:"mx-auto mx-md-4"},{default:a(()=>[o("h4",tt,[o("span",null,i(s.$t("header")),1),n[1]||(n[1]=o("br",null,null,-1)),o("span",null,i(s.$t("sub_header")),1)])]),_:1})]),_:1})]),_:1}),e(h,{class:"pa-0 position-relative",style:{top:"-250px"}},{default:a(()=>[e(z,{class:"position-relative",style:{top:"300px"}},{default:a(()=>[e(h,{class:"flex-column position-relative overflow-hidden"},{default:a(()=>[e(c,{cols:"12",md:"10",lg:"8",xl:"6",class:"text-center mx-auto",style:{"z-index":"2"}},{default:a(()=>[o("p",at,i(s.$t("news_section_description")),1),o("h6",st,i(s.$t("news_access_info")),1)]),_:1}),e(c,{cols:"12",xl:"8",class:"mx-auto pa-0 mt-16 mb-4",style:{"z-index":"2"}},{default:a(()=>[e(B,{class:"bg-s-blue-1-dark border border-grey-100 pa-2 rounded-xl d-flex flex-wrap"},{default:a(()=>[e(c,{cols:"12",md:"6",class:"d-flex flex-wrap pa-0"},{default:a(()=>[(f(!0),E(O,null,M(D.value,(r,g)=>(f(),w(c,{key:g,cols:"12",sm:"6",class:""},{default:a(()=>[e(B,{class:"s-card rounded-xl cursor-pointer",height:"300px",elevation:"4",onClick:V=>T(r.index)},{default:a(()=>[e(S,{class:"h-100",src:r.image,"lazy-src":r.image,alt:r.alt,cover:""},{default:a(()=>[o("div",{class:G(["d-flex flex-column align-center text-center",[u(m).global.name.value=="dark"?"s-card-subtitle-dark":"s-card-subtitle"]])},[o("h3",null,i(s.$t(r.title)),1)],2)]),_:2}
1,1032,["src","lazy-src","alt"])]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1}),e(c,{cols:"12",md:"6",class:"pa-0"},{default:a(()=>[e(c,{cols:"12"},{default:a(()=>[e(B,{class:"s-card rounded-xl cursor-pointer",height:"624px",elevation:"4",onClick:n[0]||(n[0]=r=>T(p.value.index))},{default:a(()=>[e(S,{class:"h-100",src:p.value.image,"lazy-src":p.value.image,alt:p.value.alt,cover:""},{default:a(()=>[o("div",{class:G(["d-flex flex-column align-center text-center",[u(m).global.name.value=="dark"?"s-card-subtitle-dark":"s-card-subtitle"]])},[o("h3",null,i(s.$t(p.value.title)),1)],2)]),_:1},8,["src","lazy-src","alt"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),e(c,{cols:"12",class:"pa-0 position-relative",style:{top:"100px","z-index":"1"}},{default:a(()=>[e(S,{src:Q,"lazy-src":Q,alt:"news_1","min-height":"900px","content-class":"d-flex align-center justify-center w-100",cover:""},{default:a(()=>[e(c,{cols:"12",md:"10",lg:"8",class:"d-flex flex-wrap justify-center align-center"},{default:a(()=>[e(c,{cols:"12",class:"text-black pl-md-16"},{default:a(()=>[o("h4",lt,i(s.$t("stay_informed")),1),o("p",nt,i(s.$t("news_section_purpose")),1)]),_:1})]),_:1})]),_:1})]),_:1}),e(c,{cols:"12",class:"d-flex justify-center mt-8 position-relative",style:{"z-index":"99"}},{default:a(()=>[e(c,{cols:"11",sm:"8",md:"6",lg:"4",xl:"3"},{default:a(()=>[e(B,{class:"d-flex align-center justify-center bg-s-yellow-1-dark rounded-xl pa-8 border border-grey-100",elevation:"6"},{default:a(()=>[o("h4",ot,i(s.$t("contact_us")),1)]),_:1})]),_:1})]),_:1}),e(z,null,{default:a(()=>[e(h,null,{default:a(()=>[(f(!0),E(O,null,M(y.value,(r,g)=>{var V;return le((f(),w(c,{cols:"12",key:g,class:"mb-10",ref_for:!0,ref:d=>R(g,d)},{default:a(()=>[o("div",rt,[o("h4",it,i(r.name),1),o("p",ct,i(r.description),1)]),e(A,null,{default:a(()=>[e(u(ne),{modules:[u(oe),u(re),u(ie)],autoplay:{delay:4e3,disableOnInteraction:!1},pagination:{clickable:!0},loop:!0,dir:u(_)==="fa"||u(_)==="ar"?"rtl":"ltr",breakpoints:{0:{slidesPerView:1,spaceBetween:20},600:{slidesPerView:2,spaceBetween:20},980:{slidesPerView:3,spaceBetween:20},1440:{slidesPerView:3,spaceBetween:30}},class:"news-swiper"},{default:a(()=>[(f(!0),E(O,null,M(k.value[r.key],(d,P)=>(f(),w(u(ce),{key:P,class:"py-2 news-slide"},{default:a(()=>[e(B,{class:"news-item-card bg-s-blue-2-dark w-100 pa-0 rounded-xl border border-custom",style:de({animationDelay:`${N(P)}ms`})},{default:a(()=>[e(S,{height:"200px",class:"ma-3 rounded-xl news-item-image",src:d.photo,"lazy-src":d.photo,alt:"news_card_6",cover:"",position:"100% 0"},null,8,["src","lazy-src"]),o("div",dt,[e(Ze,{class:"text-wrap mt-2 pb-0 px-4"},{default:a(()=>[o("h5",ut,i(d.title),1)]),_:2},1024),e(Qe,{class:"text-right text-wrap news-item-subtitle px-4"},{default:a(()=>[U(i(d.subtitle),1)]),_:2},1024)]),e(We,{class:"news-item-actions d-flex justify-center text-capitalize pt-0 mt-auto"},{default:a(()=>[e(H,{class:"news-read-more-btn text-center rounded-pill px-5",color:"dark",variant:"tonal",to:u(l)(`/news-detail
1s/${d.key}`)},{default:a(()=>[U(i(s.$t("read_more")),1)]),_:2},1032,["to"])]),_:2},1024)]),_:2},1032,["style"])]),_:2},1024))),128))]),_:2},1032,["modules","dir"])]),_:2},1024)]),_:2},1024)),[[ue,((V=k.value[r==null?void 0:r.key])==null?void 0:V.length)>0]])}),128))]),_:1})]),_:1}),C.value?(f(),w(z,{key:0},{default:a(()=>[e(h,{justify:"center"},{default:a(()=>[e(c,{cols:"auto"},{default:a(()=>[e(Oe,{indeterminate:"",color:"primary"})]),_:1})]),_:1})]),_:1})):X("",!0),x.value?(f(),w(z,{key:1},{default:a(()=>[e(h,{justify:"center"},{default:a(()=>[e(c,{cols:"auto"},{default:a(()=>[e(et,{type:"error"},{default:a(()=>[U(i(x.value),1)]),_:1})]),_:1})]),_:1})]),_:1})):X("",!0),e(Ge,{class:"position-relative",style:{top:"200px"}}),e(qe,{class:"position-relative",style:{top:"250px"}})]),_:1})]),_:1})}}}),wt=Ue(ft,[["__scopeId","data-v-28eb1f62"]]);export{wt 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.