PageSourceSearch

https://andalusiaksa.com/_nuxt/Yiqf3Wae.js

js andalusiaksa.com collected 2026-10-09 05:16:32 UTC 14,322 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DzcaEV3W.js","./1d5GO-a5.js","./entry.B6UX6uhr.css","./XfQF6peo.js","./DFKlnXnz.js","./BheWnx7M.js","./Cia9my44.js","./CW8l1gGj.js","./BAtCSq7A.js","./c-52nb3f.js","./bBTuCjX8.js","./x_rD_Ya3.js","./BI9D1KOV.js","./DI26JROH.js","./H43L1Up5.js","./CddqZ4xA.js","./C-Vt_iC5.js","./DzGoKxq4.js","./CWln4YmY.js","./1ONEWr3k.js","./BS1yx3q9.js","./BwzcvXaT.js","./CakHmv20.js","./D2fI5mo5.js","./BsyZYzQk.js","./BFNkS6Ak.js","./DkCi-HQQ.js","./DzvPlxDd.js","./RelatedSection.BjeDBr_7.css"])))=>i.map(i=>d[i]);
2import{c as y,O as be,P as we,Q as Oe,R as Pe,S as Ee,q as Ce,T as Se,I as Ie,U as Re,r as V,V as Y,W as Be,X as Te,Y as Le,f as s,Z as ze,$ as Ne,L as Ve,t as je,E as ke,J as ne,v as Fe,u as Z,s as Me,a0 as He,M as $e,w as Ge,p as K,D as Ue,b as T,g as P,d as g,h as H,e as ee,y as N,F as te,z as Ae,i as ae,j as C,_ as S,o as E,A as We,a1 as qe}from"./1d5GO-a5.js";import{u as Je}from"./CddqZ4xA.js";import{u as Qe}from"./Dy_40vUN.js";import{u as Xe}from"./dL_8wqrP.js";import{c as Ye}from"./BCE9WK35.js";import{u as Ze}from"./C2KVriA4.js";import"./C-Vt_iC5.js";const Ke={trailing:!0};function et(e,t=25,i={}){if(i={...Ke,...i},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let n,o,r=[],a,v;const p=(D,c)=>(a=tt(e,D,c),a.finally(()=>{if(a=null,i.trailing&&v&&!o){const f=p(D,v);return v=null,f}}),a);return function(...D){return a?(i.trailing&&(v=D),a):new Promise(c=>{const f=!o&&i.leading;clearTimeout(o),o=setTimeout(()=>{o=null;const l=i.leading?n:p(this,D);for(const u of r)u(l);r=[]},t),f?(n=p(this,D),c(n)):r.push(c)})}}async function tt(e,t,i){return await e.apply(t,i)}function at(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;st(e[0],e[1])&&e.unshift(t);let[i,n,o={}]=e;const r=y(()=>be(i));if(typeof r.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a string.");if(typeof n!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const a=we();o.server??=!0,o.default??=nt,o.getCachedData??=le,o.lazy??=!1,o.immediate??=!0,o.deep??=Oe.deep,o.dedupe??="cancel",o._functionName,a._asyncData[r.value];const v={cause:"initial",dedupe:o.dedupe};a._asyncData[r.value]?._init||(v.cachedData=o.getCachedData(r.value,a,{cause:"initial"}),a._asyncData[r.value]=se(a,r.value,n,o,v.cachedData));const p=a._asyncData[r.value];p._deps++;const D=()=>a._asyncData[r.value].execute(v),c=o.server!==!1&&a.payload.serverRendered;{let u=function(_){const m=a._asyncData[_];m?._deps&&(m._deps--,m._deps===0&&m?._off())};const d=Pe();if(d&&c&&o.immediate&&!d.sp&&(d.sp=[]),d&&!d._nuxtOnBeforeMountCbs){d._nuxtOnBeforeMountCbs=[];const _=d._nuxtOnBeforeMountCbs;Ee(()=>{_.forEach(m=>{m()}),_.splice(0,_.length)}),Ce(()=>_.splice(0,_.length))}const O=d&&(d._nuxtClientOnly||Se(Ye,!1));c&&a.isHydrating&&(p.error.value||p.data.value!==void 0)?p.status.value=p.error.value?"error":"success":d&&(!O&&a.payload.serverRendered&&a.isHydrating||o.lazy)&&o.immediate?d._nuxtOnBeforeMountCbs.push(D):o.immediate&&p.status.value!=="success"&&D();const x=ze(),b=Ie([r,...o.watch||[]],([_],[m])=>{if((_||m)&&_!==m){const h=a._asyncData[m]?.data.value!==void 0,j=a._asyncDataPromises[m]!==void 0;m&&u(m);const I={cause:"initial",dedupe:o.dedupe};if(!a._asyncData[_]?._init){let R;m&&h?R=a._asyncData[m]?.data.value:(R=o.getCachedData(_,a,{cause:"initial"}),I.cachedData=R),a._asyncData[_]=se(a,_,n,o,R)}a._asyncData[_]._deps++,(o.immediate||h||j)&&a._asyncData[_].execute(I)}else p._execute({cause:"watch",dedupe:o.dedupe})},{flush:"sync"});x&&Re(()=>{b(),u(r.value)})}const f={data:$(()=>a._asyncData[r.value]?.data),pending:$(()=>a._asyncData[r.value]?.pending),status:$(()=>a._asyncData[r.value]?.status),error:$(()=>a._asyncData[r.value]?.error),refresh:(...u)=>a._asyncData[r.value].execute(...u),execute:(...u)=>a._asyncData[r.value].execute(...u),clear:()=>re(a,r.value)},l=Promise.resolve(a._asyncDataPromises[r.value]).then(()=>f);return Object.assign(l,f),l}function $(e){return y({get(){return e()?.value},set(t){const i=e();i&&(i.value=t)}})}function st(e,t){return!(typeof e=="string"||typeof e=="object"&&e!==null||typeof e=="function"&&typeof t=="function")}function re(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=void 0),e._asyncData[t]&&(e._asyncData[t].data.value=s(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}function ot(e,t){const i={};for(const n of t)i[n]=e[n];return i}function se(e,t,i,n,o){e.payload._errors[t]??=void 0;const r=n.getCachedData!==le,a=i,v=n.deep?V:Y,p=o!==void 0,D=e.hook("app:data:refresh",async f=>{(!f||f.includes(t))&&await c.execute({cause:"refresh:hook"})}),c={data:v(p?o:n.default()),pending:y(()=>c.status.value==="pending"),error:Be(e.payload._errors,t),status:Y("idle"),execute:(...f)=>{const[l,u=void 0]=f,d=l&&u===void 0&&typeof l=="object"?l:{};if(e._asyncDataPromises[t]){if((d.dedupe??n.dedupe)==="defer")return e._asyncDataPromises[t];e._asyncDataPromises[t].cancelled=!0}{const x="cachedData"in d?d.cachedData:n.getCachedData(t,e,{cause:d.cause??"refresh:manual"});if(x!==void 0)return e.payload.data[t]=c.data.value=x,c.error.value=void 0,c.status.value="success",Promise.resolve(x)}c.status.value="pending";const O=new Promise((x,b)=>{try{x(a(e))}catch(_){b(_)}}).then(async x=>{if(O.cancelled)return e._asyncDataPromises[t];let b=x;n.transform&&(b=await n.transform(x)),n.pick&&(b=ot(b,n.pick)),e.payload.data[t]=b,c.data.value=b,c.error.value=void 0,c.status.value="success"}).catch(x=>
2{if(O.cancelled)return e._asyncDataPromises[t];c.error.value=Le(x),c.data.value=s(n.default()),c.status.value="error"}).finally(()=>{O.cancelled||delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=O,e._asyncDataPromises[t]},_execute:et((...f)=>c.execute(...f),0,{leading:!0}),_default:n.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{D(),e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),r||Te(()=>{e._asyncData[t]?._init||(re(e,t),c.execute=()=>Promise.resolve())})}};return c}const nt=()=>{},le=(e,t,i)=>{if(t.isHydrating)return t.payload.data[e];if(i.cause!=="refresh:manual"&&i.cause!=="refresh:hook")return t.static.data[e]},rt=Ne("offersDetailsStore",()=>{const e=ke(),{mobileFetch:t}=Ve(),{isServerDownError:i}=je(),n=e.public.mobileApiBase,o=ne(),r=y(()=>o.selectedCountry),a=Je(),{user:v}=Fe(a);return{fetchOfferDetails:async({OFFERID:f})=>{const l=`${n}/api/Promotion/GetOfferById?OfferId=${f}`;return t(l,{method:"GET"})},fetchRelatedOffers:async f=>{if(!r.value?.id)return[];const l=`${n}/api/Promotion/GetRecommendedOffer?CountryId=${r.value.id}&OfferId=${f}`;return((await t(l,{method:"GET"}))?.Data?.filter(O=>O.Id!==f)||[]).slice(0,3)},submitOfferBooking:async(f,l)=>{try{const u=await t("/api/offers/book",{method:"POST",body:{OfferId:f.value?.Id,UserId:v.value?.id||null,PatientName:l.firstName+" "+l.lastName,PatientPhone:l.phone,PaymentMethodId:1,FromWebsite:!0,CountryId:r.value.id,GenderId:null,EndDateCalendarId:null,TwoDaysBeforeEndDateCalendarId:null,BusinessunitId:l.branches}});return{success:u.IsSuccess,data:u}}catch(u){return console.error("Booking error:",u),i(u)?{success:!1,error:null,isServerDown:!0}:{success:!1,error:u?.data?.Message||u?.message||"Booking failed"}}}}}),lt=C(()=>S(()=>import("./DzcaEV3W.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>e.default||e)),it=C(()=>S(()=>import("./XfQF6peo.js"),__vite__mapDeps([3,1,2]),import.meta.url).then(e=>e.default||e)),ct=C(()=>S(()=>import("./DFKlnXnz.js"),__vite__mapDeps([4,1,2,5]),import.meta.url).then(e=>e.default||e)),ut=C(()=>S(()=>import("./Cia9my44.js"),__vite__mapDeps([6,1,2,7,8]),import.meta.url).then(e=>e.default||e)),ft=C(()=>S(()=>import("./c-52nb3f.js"),__vite__mapDeps([9,1,2,10,11]),import.meta.url).then(e=>e.default||e)),dt=C(()=>S(()=>import("./BI9D1KOV.js"),__vite__mapDeps([12,1,2]),import.meta.url).then(e=>e.default||e)),_t=C(()=>S(()=>import("./DI26JROH.js").then(e=>e.B),__vite__mapDeps([13,1,2,14,15,16,17,18,19]),import.meta.url).then(e=>e.default||e)),mt=C(()=>S(()=>import("./BS1yx3q9.js"),__vite__mapDeps([20,1,2,21,22]),import.meta.url).then(e=>e.default||e)),pt=C(()=>S(()=>import("./D2fI5mo5.js"),__vite__mapDeps([23,1,2,24,25,26,27,28]),import.meta.url).then(e=>e.default||e)),ht={key:0,class:"w-full px-5 lg:px-20 py-5 lg:pt-10"},gt={key:1,class:"w-full px-5 lg:px-20 py-5 lg:pt-10"},yt={class:"px-5 lg:px-20 pt-5"},vt={key:0},Dt=["src","alt"],xt={class:"w-full grid grid-cols-1 xl:grid-cols-[1fr,411px] gap-5"},bt={class:""},wt={class:"text-2xl truncate font-bold text-black-600"},Ot={class:"flex flex-col flex-wrap xl:flex-nowrap xl:flex-row justify-between items-start lg:items-center gap-4"},Pt={key:0,class:"w-full flex flex-nowrap gap-2"},Et={class:"py-3 sm:py-4 px-4 sm:px-6 lg:px-10 flex flex-col sm:flex-row justify-between items-start sm:items-center gap-3 sm:gap-4"},Ct={class:"flex items-center gap-2 sm:gap-3 lg:gap-4 w-full sm:w-auto"},St=["src","alt"],It={class:"text-black-600 text-sm sm:text-base lg:text-[20px] font-bold capitalize line-clamp-2"},Rt={class:"flex items-center gap-4 sm:gap-6 lg:gap-10 w-full sm:w-auto justify-between sm:justify-end sm:me-10"},Bt={class:"flex items-center gap-2"},Tt={class:"bg-gold-gradient bg-clip-text text-transparent font-bold text-lg sm:text-2xl lg:text-[32px]"},Lt={class:"text-xs sm:text-sm lg:text-base"},zt={class:"text-black-500 font-semibold capitalize text-[10px] sm:text-xs"},Nt={class:"text-black-500 font-medium leading-8"},Vt=["dir"],oe="/images/blog-default-image.png",Ut={__name:"[slug]",async setup(e){let t,i;const{t:n}=Z();Me("offer-details");const{locale:o,t:r}=Z(),a=rt(),v=He(),p=$e("isPageLoaded"),D=v.params.slug,{updatePageSlugs:c}=Qe();c({slug_ar:v.params.slug,slug_en:v.params.slug});const{shouldHideExpireDate:f,getOfferValue:l}
2=Xe(),u=typeof D=="string"?parseInt(D.split("-").pop()):null;u||(p.value=!0);const d=V(!0),O=ne(),x=y(()=>O.selectedCountry),{data:b,error:_,refresh:m}=([t,i]=Ge(async()=>at(`offer-${u}`,async()=>{const B=(await a.fetchOfferDetails({OFFERID:u}))?.Data?.Offer??null;let M=[];if(B&&u)try{M=await a.fetchRelatedOffers(u)||[]}catch(G){console.error("Related offers fetch error:",G)}return{offer:B,relatedOffers:M}},{server:!0,lazy:!1,default:()=>({offer:null,relatedOffers:[]})})),t=await t,i(),t),h=y(()=>b.value?.offer??null),j=y(()=>b.value?.relatedOffers??[]);_.value&&u?m().finally(()=>{d.value=!1}):K(()=>{d.value=!1,h.value&&!j.value?.length&&m().catch(()=>{})});const I=y(()=>l(h,"image")),R=y(()=>l(h,"imageAlt")),L=y(()=>l(h,"name")),ie=y(()=>l(h,"keywords")),k=y(()=>l(h,"description")),A=V(!1),ce=y(()=>A.value||!I.value?oe:I.value),ue=()=>{A.value=!0};qe("offerName",L),K(()=>{setTimeout(()=>{p.value=!0},500)}),Ue({title:L,meta:[{name:"description",content:k},{property:"og:title",content:L},{property:"og:description",content:k},{property:"og:image",content:I}]});const fe=y(()=>[{id:1,icon:"PersonalData",title:n("offers.personalData"),subtitle:n("offers.enterData"),componentPath:"Offers/Booking/PersonalData",componentProps:{branches:w.value?.Hospitals||[]}},{id:2,icon:"Confirmation",title:n("offers.confirmation"),subtitle:n("offers.confirmation"),componentPath:"Offers/Booking/Confirmation",componentProps:{}}]),F=V(!1),w=V(null),W=y(()=>l(w,"image")),q=V(!1),de=y(()=>q.value||!W.value?oe:W.value),_e=()=>{q.value=!0},J=z=>{F.value=!0,z&&(w.value=z)},me=async z=>await a.submitOfferBooking(w,z),pe=y(()=>({title:L,description:k,keywords:ie||L,image:I,image_alt:R}));return Ze({seoData:pe,isFullPathImage:!0}),(z,B)=>{const M=lt,G=it,Q=ct,X=ut,he=ft,ge=dt,ye=_t,ve=mt,De=pt;return s(d)?(E(),T("div",ht,[P(M)])):s(h)?(E(),T(te,{key:2},[g("article",yt,[s(h)?(E(),T("div",vt,[g("img",{src:s(ce),alt:s(R),onError:ue,class:"w-full rounded-3xl h-96 object-[unset] object-center my-12"},null,40,Dt),g("div",xt,[g("section",bt,[g("h1",wt,N(s(L)),1),g("section",Ot,[s(h).Hospitals?.length?(E(),T("div",Pt,[(E(!0),T(te,null,Ae(s(h).Hospitals,(U,xe)=>(E(),ee(Q,{key:xe,icon:"Location","icon-class":"w-3 me-[6px]",iconClass:"flex-shrink-0 w-4 h-4",tag:s(o)==="ar"?U.NameAr:U.NameEn,customClass:"flex gap-1.5 bg-gold-50 !text-gold-500 w-fit font-semi-bold !text-[12px] !py-2.5 px-3 mt-5"},null,8,["tag"]))),128)),P(Q,{icon:"Specialty","icon-class":"w-3 me-[6px]",tag:s(o)==="ar"?s(h)?.OfferSpecialty?.NameAr:s(h)?.OfferSpecialty?.NameEn,iconClass:"flex-shrink-0 w-4 h-4",customClass:"flex gap-1.5 bg-gold-50 !text-gold-500 w-fit font-semi-bold !text-[12px] !py-2.5 px-3 mt-5"},null,8,["tag"])])):H("",!0),P(X,{"share-text":s(n)("offers.share"),class:"border-none !my-0 !p-0"},{right:ae(()=>[...B[1]||(B[1]=[])]),_:1},8,["share-text"])]),P(he,{isExpireDateHidden:s(f)(s(h)?.ToDate),offer:s(h),onHandleBooking:J},null,8,["isExpireDateHidden","offer"]),s(F)?(E(),ee(ye,{key:0,"initial-is-open":s(F),image:s(l)(s(w),"image"),name:s(l)(s(w),"name"),"sub-title":s(l)(s(w),"description"),"booking-type":"offers","modal-data":s(w),"total-wizard-steps":2,"steps-configuration":s(fe),"custom-header":"",onHandleBookingSubmit:me,onCloseModal:B[0]||(B[0]=U=>F.value=!1)},{header:ae(()=>[g("header",Et,[g("section",Ct,[g("img",{src:s(de),alt:s(l)(s(w),"imagealt"),onError:_e,class:"w-20 h-14 sm:w-28 sm:h-20 lg:w-[189px] lg:h-[110px] rounded-lg sm:rounded-xl object-cover object-center flex-shrink-0"},null,40,St),g("b",It,N(s(l)(s(w),"name")),1)]),g("div",Rt,[g("div",Bt,[P(ge,{class:"w-6 h-6 sm:w-8 sm:h-8 lg:w-10 lg:h-10 stroke-0 flex-shrink-0"}),g("div",null,[g("p",Tt,[We(N(s(w).NewPrice)+" ",1),g("span",Lt,N(s(n)("offers.currency."+s(x).slug)),1)]),g("p",zt,N(s(n)("pricing.priceAfterTax")),1)])])])])]),_:1}
2,8,["initial-is-open","image","name","sub-title","modal-data","steps-configuration"])):H("",!0),g("p",Nt,N(s(k)),1)]),P(ve,{class:"hidden xl:block"}),P(X)])])):H("",!0)]),s(j)?.length?(E(),T("div",{key:0,class:"flex justify-center w-full mx-auto mt-10",dir:s(o)==="ar"?"rtl":"ltr"},[P(De,{title:s(r)("offers.otherOffers"),items:s(j),seeAllText:s(r)("offers.viewAll"),itemType:"offer",onBookOffer:J},null,8,["title","items","seeAllText"])],8,Vt)):H("",!0)],64)):(E(),T("div",gt,[P(G,{subtitle:"no-data"})]))}}};export{Ut 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.