1import{_ as nt,u as R,P as T,e as ot,o as s,c as g,g as w,w as b,h as c,a as t,t as h,b as u,d as l,m as st,ai as it,F as f,i as _,a1 as A,k as at,C as O,Z as rt,S as lt,j as ct,f as L,aj as dt,ak as k,ag as v}from"./app-2ce2bd1d.js";import{B,C as ut}from"./BlogTag-254b538a.js";import{B as gt}from"./Breadcrumb-ae627376.js";import ht from"./SidebarContactForm-8a5fa36c.js";import{O as pt}from"./OffersBanner-b596468b.js";import{u as mt}from"./utils-607194e3.js";import{S as ft,A as yt}from"./AbyatBanner-cdb92307.js";import{n as wt,b as bt,s as _t,c as kt}from"./schema-6a943699.js";/* empty css */const vt=["content"],$t=["content"],St=["content"],Tt=["content"],At=["content"],Lt=["content"],Ct=["content"],Ot=["content"],Bt=["content"],Et=["content"],Pt=["content"],It=["content"],Nt=["content"],Vt=["content"],jt=["hreflang","href"],Dt=["content"],Mt={class:"article-wrapper"},qt={class:"content-and-sticky-wrapper container container-md"},zt={class:"content-side"},Rt={class:"article-header-wrapper container"},Ht={class:"title"},xt={class:"info"},Ft=["src","alt"],Jt=["innerHTML"],Wt={class:"share-article container d-flex d-md-none"},Qt={class:"share-options"},Ut=["href"],Zt=["href"],Gt=["href"],Kt={class:"share-article container d-none d-md-flex"},Xt={class:"share-options"},Yt=["href"],te=["href"],ee=["href"],ne={key:0,class:"tags-wrapper container single-section"},oe={class:"title"},se={class:"tags"},ie={class:"tags-wrapper single-section container"},ae={key:0,class:"title"},re={key:1,class:"tags"},le={key:1,class:"tags-wrapper single-section container"},ce={class:"title"},de={class:"tags"},ue={class:"sticky-bar container"},ge={class:"categories"},he={class:"categories-head"},pe={class:"categories-items"},me={key:0,class:"more-from-imtilak container"},fe={class:"title"},ye={__name:"SingleArticle",props:{site_name:String,country:String,mautic_category:String,country_id:Number,post:Object,suggestions:Object,similar:Object,categories:Object,breadcrumbs:[String,Object,Array],alternativeMetaTags:Object,allTags:[Object,Array],contentNodes:Array},setup(o){const{delegatedWhatsAppSourceListeners:H}=dt(),E=R(),y=at(""),r=o,x=k(()=>v(()=>import("./BlogCard-fa550165.js"),["assets/BlogCard-fa550165.js","assets/app-2ce2bd1d.js","assets/app-e67457bf.css","assets/BlogCard-cd5eadbc.css"])),F=k(()=>v(()=>import("./MauticBlogBanner-4278799a.js"),["assets/MauticBlogBanner-4278799a.js","assets/app-2ce2bd1d.js","assets/app-e67457bf.css","assets/MauticBlogBanner-3489f0e4.css"])),P=k(()=>v(()=>import("./AppointmentBanner-b4429112.js"),["assets/AppointmentBanner-b4429112.js","assets/app-2ce2bd1d.js","assets/app-e67457bf.css","assets/AppointmentBanner-01991592.css"])),J=k(()=>v(()=>import("./ChatBanner-225d1676.js"),["assets/ChatBanner-225d1676.js","assets/app-2ce2bd1d.js","assets/app-e67457bf.css","assets/ChatBanner-21498bee.css"])),I=k(()=>v(()=>import("./CityBanner-b2aa6040.js"),["assets/CityBanner-b2aa6040.js","assets/app-2ce2bd1d.js","assets/app-e67457bf.css","assets/url-helper-31731ab1.js","assets/CityBanner-ed1c7055.css"])),W=k(()=>v(()=>import("./InvestmentBanner-766abfe5.js"),["assets/InvestmentBanner-766abfe5.js","assets/app-2ce2bd1d.js","assets/app-e67457bf.css","assets/InvestmentBanner-c892d813.css"])),N=k(()=>v(()=>import("./QuickCTA-59277a7f.js"),["assets/QuickCTA-59277a7f.js","assets/app-2ce2bd1d.js","assets/app-e67457bf.css","assets/QuickCTA-5acf76ed.css"])),C=T(()=>{var e;return((e=r.post)==null?void 0:e[`content_${E.props.locale}`])||""}),S=T(()=>Array.isArray(r.contentNodes)&&r.contentNodes.length>0?r.contentNodes:C.value?[C.value]:[]),Q=T(()=>S.value.length>1?Math.max(1,Math.floor(S.value.length/9)):0),U=T(()=>({...r.post,[`content_${E.props.locale}`]:C.value||S.value.join(" ")})),V=T(()=>wt(U.value)),j=bt(r.breadcrumbs),D=_t(),M=kt();function m(e,n){const p=Q.value*n;return p>0&&p<S.value.length&&e===p}ot(()=>{const e=r.alternativeMetaTags;mt(e),y.value=window.location.href,Z(()=>{X(),Y(),tt(),K()})});function Z(e){if(!(typeof window>"u")){if("requestIdleCallback"in window){window.requestIdleCallback(e,{timeout:1500});return}
1window.setTimeout(e,300)}}function G(e){return e.querySelector("strong, b, h1, h2, h3, h4, h5, h6")||e.firstElementChild}function q(){if(typeof window>"u")return;const e=document.querySelectorAll(".mce-toc");e.length&&e.forEach(n=>{if(n.dataset.tocInit==="true")return;const p=G(n),d=n.querySelectorAll("ul");!p||!d.length||(p.addEventListener("click",()=>{d.forEach(a=>a.classList.toggle("show")),p.classList.toggle("show")}),n.dataset.tocInit="true")})}function K(){if(typeof window>"u")return;const e=document.querySelector(".inner-content")||document.body;if(document.querySelector(".mce-toc")){q();return}const n=new MutationObserver(()=>{document.querySelector(".mce-toc")&&(q(),n.disconnect())});n.observe(e,{childList:!0,subtree:!0})}function X(){$(".accordion .card .marker").click(function(){$(this).siblings().find("button").click()}),$(".accordion .card .card-header .btn-link").click(function(){$(this).parent().parent().parent().toggleClass("active").siblings().removeClass("active")}),$(".faq-accordion .card .card-header .btn-link").click(function(){$(this).parent().parent().parent().parent().parent().parent().siblings().find(".collapse").removeClass("show").parent().removeClass("active")})}function Y(){$(".mobile-form-btn").click(function(){$(this).hide(),$(this).siblings().show(300)})}function tt(){const e=O("common.blog.copied"),n=O("common.blog.copy");$(".inner-content h1,.inner-content h2,.inner-content h3,.inner-content h4,.inner-content h5,.inner-content h6").each(function(){if($(this).text().length<=0||this.id===""||$(this).closest(".mce-toc").length||typeof window>"u")return;const d=document.createElement("div");d.id="parent"+this.id,d.className="article-heading-wrap",$(this).addClass("d-inline"),this.before(d),d.append(this),$(d).find("img").length>0&&($(d).find("br").remove(),$(d).after($("#parent"+this.id).find("img"))),$(`<button class="copyToClipboard bg-transparent border-0" 2 id="${this.id}-tooltip" 3 data-bs-target="${this.id}" 4 data-bs-toggle="tooltip" 5 data-bs-placement="auto" 6 title="${n}"> 7 <i class="fas fa-regular fa-link"></i> 8 </button>`).appendTo("#parent"+this.id)}),document.querySelectorAll('[data-bs-toggle="tooltip"]').forEach(d=>new window.bootstrap.Tooltip(d)),$(".copyToClipboard").click(function(){const d=$(this).attr("data-bs-target")||$(this).data("bsTarget"),i=`${window.location.href.split("#")[0]}#${d}`;navigator.clipboard.writeText(i);const z=$(this);z.attr("title",e),setTimeout(()=>{z.attr("title",n)},3e3)})}function et(){if(typeof window>"u")return;const e=document.getElementsByClassName("inner-content")[0];if(!window.getSelection().containsNode(e,!0))return;const n=window.getSelection(),p=n.toString(),d=`<br /><br /> ${O("common.blog.backlink_read_more")+r.post[`title_${R().props.locale}`]} : ${window.location.href.split("#")[0]}`,a=p.slice(0,1e3)+d,i=document.createElement("div");i.style.position="absolute",i.style.left="-99999px",i.innerHTML=a,document.body.appendChild(i),n.selectAllChildren(i),setTimeout(()=>{document.body.removeChild(i)},0)}return typeof window<"u"&&(document.oncopy=et),(e,n)=>{var p,d;return s(),g(f,null,[w(c(rt),null,{default:b(()=>[t("title",null,`\r 9 `+h(o.post[`seo_title_${e.$page.props.locale}`]+" || "+o.site_name)+`\r 10 `,1),t("meta",{content:o.post[`seo_description_${e.$page.props.locale}`],"head-key":"description",name:"description"},null,8,vt),t("meta",{content:o.post[`seo_keywords_${e.$page.props.locale}`],"head-key":"keywords",name:"keywords"},null,8,$t),n[0]||(n[0]=t("meta",{content:"summary_large_image","head-key":"twitter:card",name:"twitter:card"},null,-1)),n[1]||(n[1]=t("meta",{content:"@imtilaktr","head-key":"twitter:site",name:"twitter:site"},null,-1)),n[2]||(n[2]=t("meta",{content:"@imtilaktr","head-key":"twitter:creator",name:"twitter:creator"},null,-1)),t("meta",{content:o.post[`seo_title_${e.$page.props.locale}`],"head-key":"twitter:title",name:"twitter:title"},null,8,St),t("meta",{content:o.post[`seo_description_${e.$page.props.locale}`],"head-key":"twitter:description",name:"twitter:description"},null,8,Tt),n[3]||(n[3]=t("meta",{content:"width=device-width, initial-scale=1",name:"viewport"},null,-1)),t("meta",{content:o.post.imagePath,"head-key":"twitter:image",name:"twitter:image"},null,8,At),n[4]||(n[4]=t("meta",{content:"article",property:"og:type"},null,-1)),t("meta",{content:o.post[`seo_title_${e.$page.props.locale}`],property:"og:title"},null,8,Lt),t("meta",{content:o.post.url,property:"og:url"},null,8,Ct),t("meta",{content:o.site_name,property:"og:site_name"},null,8,Ot),t("meta",{content:o.post.ogImagePath,property:"og:image"},null,8,Bt),t("meta",{content:o.post[`seo_title_${e.$page.props.locale}`],property:"og:image:alt"},null,8,Et),t("meta",{content:o.post[`seo_description_${e.$page.props.locale}`],property:"og:description"},null,8,Pt),t("meta",{property:"article:published_time",content:new Date(o.post.created_at).toISOString()},null,8,It),t("meta",{property:"article:modified_time",content:new Date(o.post.updated_at).toISOString()},null,8,Nt),o.post.section?(s(),g("meta",{key:0,property:"article:section",content:o.post.section},null,8,Vt)):l("",!0),(s(!0),g(f,null,_(o.alternativeMetaTags,(a,i)=>(s(),g("link",{key:i,rel:"alternate",hreflang:i==="en"?"x-default":i,href:a,defer:""},null,8,jt))),128)),t("meta",{name:"csrf-token",content:e.$page.props.csrfToken},null,8,Dt)]),_:1}),w(gt,{class:"container mt-4",items:o.breadcrumbs},null,8,["items"]),t("div",Mt,[t("div",qt,[t("div",zt,[t("div",Rt,[t("h1",Ht,h(o.post[`title_${e.$page.props.locale}`]),1),t("div",xt,[t("p",null,h(new Date(o.post.updated_at).toISOString().slice(0,10)),1),t("p",null,h(o.post.visits+" "+e.$t("common.blog.views")),1)]),t("img",{src:o.post.imagePath,alt:o.post[`title_${e.$page.props.locale}`],class:"article-hero-img",fetchpriority:"high",loading:"eager",decoding:"async",width:"798",height:"469"},null,8,Ft),w(ft),r.country==="syria"?(s(),u(yt,{key:0,class:"inner-banner",index:0})):l("",!0),S.value.length>0?(s(),g("div",st({key:1,class:"inner-content"}
10,it(c(H),!0)),[(s(!0),g(f,null,_(S.value,(a,i)=>(s(),g(f,{key:i},[t("div",{innerHTML:a},null,8,Jt),m(i,1)?(s(),u(c(N),{key:0,class:"inner-banner",index:i},null,8,["index"])):l("",!0),m(i,2)&&r.country!=="ksa"?(s(),u(c(I),{key:1,class:"inner-banner",suggestions:r.suggestions},null,8,["suggestions"])):l("",!0),m(i,3)?(s(),u(c(F),{key:2,country:r.country,category:r.mautic_category,link:`${o.post.banner_link}`,classname:"inner-banner",width:"width: calc(33% - 1rem)",path:`${o.post.banner}`,mobile_path:`${o.post.banner_mobile}`,index:i},null,8,["country","category","link","path","mobile_path","index"])):l("",!0),m(i,4)?(s(),u(c(P),{key:3,class:"inner-banner",index:i},null,8,["index"])):l("",!0),m(i,5)?(s(),u(c(J),{key:4,class:"inner-banner",country:r.country},null,8,["country"])):l("",!0),m(i,6)?(s(),u(c(W),{key:5,suggestions:r.suggestions},null,8,["suggestions"])):l("",!0),m(i,7)?(s(),u(c(I),{key:6,class:"inner-banner",suggestions:r.suggestions},null,8,["suggestions"])):l("",!0),m(i,8)?(s(),u(c(N),{key:7,class:"inner-banner",index:i},null,8,["index"])):l("",!0),m(i,9)?(s(),u(c(P),{key:8,class:"inner-banner",index:i},null,8,["index"])):l("",!0)],64))),128))],16)):l("",!0)]),t("div",Wt,[t("p",null,h(e.$t("common.blog.share_article")),1),t("div",Qt,[t("a",{href:`https://www.facebook.com/sharer/sharer.php?u=${y.value}`},[...n[5]||(n[5]=[t("img",{src:"/assets/global_assets/img/icons/share-article-facebook.svg",alt:"facebook",loading:"lazy",width:"32",height:"32"},null,-1)])],8,Ut),t("a",{href:`https://api.whatsapp.com/send?text=${y.value}`},[...n[6]||(n[6]=[t("img",{src:"/assets/global_assets/img/icons/share-article-whatsapp.svg",alt:"whatsapp",loading:"lazy",width:"32",height:"32"},null,-1)])],8,Zt),t("a",{href:`https://twitter.com/share?url=${y.value}`},[...n[7]||(n[7]=[t("img",{src:"/assets/global_assets/img/icons/share-article-twitter.svg",alt:"twitter",loading:"lazy",width:"32",height:"32"},null,-1)])],8,Gt)])]),t("div",Kt,[t("p",null,h(e.$t("common.blog.share_article")),1),t("div",Xt,[t("a",{href:`https://www.facebook.com/sharer/sharer.php?u=${y.value}`},[...n[8]||(n[8]=[t("img",{src:"/assets/global_assets/img/icons/share-article-facebook.svg",alt:"facebook",loading:"lazy",width:"32",height:"32"},null,-1)])],8,Yt),t("a",{href:`https://api.whatsapp.com/send?text=${y.value}`},[...n[9]||(n[9]=[t("img",{src:"/assets/global_assets/img/icons/share-article-whatsapp.svg",alt:"whatsapp",loading:"lazy",width:"32",height:"32"},null,-1)])],8,te),t("a",{href:`https://twitter.com/share?url=${y.value}`},[...n[10]||(n[10]=[t("img",{src:"/assets/global_assets/img/icons/share-article-twitter.svg",alt:"twitter",loading:"lazy",width:"32",height:"32"},null,-1)])],8,ee)])]),o.post[`source_${e.$page.props.locale}`]?(s(),g("div",ne,[t("p",oe,h(e.$t("common.blog.sources")),1),t("div",se,[(s(!0),g(f,null,_(o.post[`source_${e.$page.props.locale}`],(a,i)=>(s(),u(B,{key:i,hrefLink:a.link,text:a.title,target:"_blank"},null,8,["hrefLink","text"]))),128))])])):l("",!0),t("div",ie,[o.post.tags&&o.post.tags.length>0?(s(),g("p",ae,h(e.$t("common.blog.keywords")),1)):l("",!0),o.post.tags&&o.post.tags.length>0?(s(),g("div",re,[(s(!0),g(f,null,_(o.post.tags,(a,i)=>(s(),u(B,{key:a.id,hrefLink:a.link,text:a.title,target:"_blank"},null,8,["hrefLink","text"]))),128))])):l("",!0)]),((p=r.allTags.data)==null?void 0:p.length)>0?(s(),g("div",le,[t("p",ce,h(e.$t("common.blog.suggested_tags")),1),t("div",de,[(s(!0),g(f,null,_(r.allTags.data,a=>(s(),u(B,{key:a.id,hrefLink:a.link,text:a.title},null,8,["hrefLink","text"]))),128))])])):l("",!0)]),t("div",ue,[w(ht),w(pt,{country:r.country},null,8,["country"]),t("div",ge,[t("p",he,h(e.$t("common.blog.categories")),1),t("div",pe,[(s(!0),g(f,null,_(o.categories.data,(a,i)=>(s(),u(ut,{key:a.id,text:a.title,href:a.link,isActive:!1},null,8,["text","href"]))),128))])])])]),((d=r.similar)==null?void 0:d.length)>0?(s(),g("div",me,[t("p",fe,h(e.$t("common.blog.more_imtilak")),1),w(c(ct),{slidesPerView:3,spaceBetween:10,breakpoints:{350:{slidesPerView:1,spaceBetween:5},768:{slidesPerView:1.5,spaceBetween:10},1024:{slidesPerView:2,spaceBetween:10},1200:{slidesPerView:3,spaceBetween:10}}},{default:b(()=>[(s(!0),g(f,null,_(r.similar,(a,i)=>(s(),u(c(lt),{key:i,class:"slide"},{default:b(()=>[w(c(x),{blogLink:`/${e.$page.props.locale}/articles/${a.slug}`,image:a.image,imageAlt:a.title,tag:a.category,title:a.title,date:a.created_at,views:a.visits,isFeatured:!1,description:""}
10,null,8,["blogLink","image","imageAlt","tag","title","date","views"])]),_:2},1024))),128))]),_:1})])):l("",!0)]),V.value?(s(),u(A("script"),{key:0,"data-schema":"Article",type:"application/ld+json"},{default:b(()=>[L(h(JSON.stringify(V.value)),1)]),_:1})):l("",!0),c(j)?(s(),u(A("script"),{key:1,type:"application/ld+json"},{default:b(()=>[L(h(JSON.stringify(c(j))),1)]),_:1})):l("",!0),c(D)?(s(),u(A("script"),{key:2,type:"application/ld+json"},{default:b(()=>[L(h(JSON.stringify(c(D))),1)]),_:1})):l("",!0),c(M)?(s(),u(A("script"),{key:3,"data-schema":"Organization",type:"application/ld+json"},{default:b(()=>[L(h(JSON.stringify(c(M))),1)]),_:1})):l("",!0)],64)}}},Le=nt(ye,[["__scopeId","data-v-ba2be88b"]]);export{Le 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.