PageSourceSearch

https://www.imtilak.net/build/assets/KSAForeignOwnershipBanner-65404199.js

js imtilak.net collected 2026-10-02 11:27:15 UTC 6,192 bytes, 1 lines download raw bytes

1import{_ as R,u as N,o as x,r as z,a as l,f as P,l as g,i as v,g as c,b as s,d as r,q as Y,e as p,c as w,w as U,h as j,j as i,t as J}from"./app-3768782b.js";import{g as Q}from"./getTransactionId-bc166b8f.js";import{S as T,a as W}from"./swiper-vue-193d37bd.js";/* empty css                      */import{z as X}from"./vue-tel-input-9423bd83.js";/* empty css               */import"./_commonjsHelpers-23102255.js";import"./swiper-core-7d0b8ebe.js";const G={class:"ksa-ownership-wrapper"},Z=["innerHTML"],ee={class:"description"},oe={class:"mb-0 contact-slide"},se={class:"wrapper form-wrapper"},te=["innerHTML"],ne={class:"description"},ae={class:"form-fields"},re={key:1,class:"validation-error"},ie=["disabled"],le={key:0},ce={key:1},ue={key:2,class:"consent turkey-etk-consent"},pe=["id","name"],de=["for","innerHTML"],me={class:"thank-you-slide"},_e={class:"thank-you-title"},he={class:"thank-you-description"},fe={__name:"KSAForeignOwnershipBanner",props:{index:Number,campaign_city:String},setup(d){const F=d,M=[],n=N(),m=i(""),_=i(null),h=i(!0),f=i(!1),k=i(!1),u=i(!1),O={"Content-Type":"application/json","X-localization":n.props.locale,"X-CSRF-TOKEN":n.props.csrfToken},A=`/assets/global_assets/pdf/ksa_foreign_ownership_guide/${n.props.locale}.pdf`,C=i(!1);function B(o){_.value=o}function $(o){const e=String(o??"").replace(/\s/g,"");return e.startsWith("+")?`+${e.slice(1).replace(/\D/g,"")}`:e.replace(/\D/g,"")}x(()=>{typeof window<"u"&&(C.value=!0)});function H(){var a;const o=$((a=_.value)==null?void 0:a.formatted),e=$(m.value);return o||e}function V(){var e;const o=H();if(console.log(o),!o){h.value=!1;return}if(h.value=((e=_.value)==null?void 0:e.valid)===!0||L(o),!!h.value){if(n.props.country==="turkey"&&!k.value){alert(J("common.accept_consent"));return}E(o)}}async function E(o){u.value=!0;let e="";try{typeof grecaptcha<"u"&&grecaptcha.enterprise&&(e=await new Promise((t,K)=>{grecaptcha.enterprise.ready(async()=>{try{const b=await grecaptcha.enterprise.execute(n.props.recaptchaSiteKey,{action:"CONTACT_FORM"});t(b)}catch(b){K(b)}})}))}catch(t){console.error("reCAPTCHA error:",t),u.value=!1;return}const a={name:"ksa foreign ownership guide",mobile_number:o,_token:n.props.csrfToken,locale:n.props.locale,message:"",source_form:"ksa_foreign_ownership_banner",fullsrc:n.props.baseHost+n.url,g_recaptcha_response:e,_campaign_city:F.campaign_city};q(`/${n.props.locale}/message`,a)}function L(o){return/^(\+\d{1,3})?\d{8,}$/.test(o)}function q(o,e){const a=e.transaction_id||Q();e.transaction_id=a,fetch(o,{method:"POST",headers:O,body:JSON.stringify(e)}).then(()=>{dataLayer.push({event:"form_submission",transaction_id:a}),f.value=!0,m.value="",_.value=null,u.value=!1;const t=document.createElement("a");t.setAttribute("download",`ksa_foreign_ownership_guide_${n.props.locale}`),t.href=A,document.body.appendChild(t),t.click(),document.body.removeChild(t),setTimeout(()=>{f.value=!1},1500),S(2)}).catch(t=>{console.error("Error:",t),u.value=!1})}const y=i();function D(o){y.value=o}function S(o){var e;(e=y.value)==null||e.slideTo(o)}function I(){y.value.slidePrev()}return(o,e)=>{const a=z("TurkishExplicitConsent");return l(),P(c(W),{ref:"swiper",allowTouchMove:!1,modules:M,navigation:!1,pagination:!1,scrollbar:!1,class:"home_uae-form-slider quick-cta-slider w-100","slides-per-view":1,"space-between":0,onSwiper:D},{default:g(()=>[v(c(T),{class:"swiper-slide home_uae-form-slider-slide slide-1 w-100",dir:"ltr"},{default:g(()=>[s("div",G,[s("p",{class:"title",innerHTML:o.$t("common.can_non_saudi_own_property")},null,8,Z),e[5]||(e[5]=s("div",{class:"ksa-ownership-img"},[s("img",{src:"/assets/img/ksa-ownership.png",alt:""})],-1)),s("p",ee,r(o.$t("common.can_non_saudi_own_property_description")),1),s("button",{class:"primary-btn",onClick:e[0]||(e[0]=t=>S(1))},[e[4]||(e[4]=s("img",{src:"/assets/icons/get-guide.svg",alt:"arrow right",class:"get-guide-icon"},null,-1)),Y(" "+r(o.$t("common.get_the_guide")),1)])])]),_:1}),v(c(T),{class:"swiper-slide home_uae-form-slider-slide slide-2 w-100",dir:"ltr"},{default:g(()=>[s("div",oe,[s("div",se,[s("p",{class:"title",innerHTML:o.$t("common.can_non_saudi_own_property")},null,8,te),e[6]||(e[6]=s("div",{class:"ksa-ownership-img"},[s("img",{src:"/assets/img/ksa-ownership.png",alt:""})],-1)),s("p",ne,r(o.$t("common.easily_get_the_guide")),1),s("div",ae,[C.value?(l(),P(c(X),{key:0,modelValue:m.value,"onUpdate:modelValue":e[1]||(e[1]=t=>m.value=t),styleClasses:"quick-cta-phone",defaultCountry:c(N)().props.HTTP_CF_IPCOUNTRY,"dropdown-options":{showSearchBox:!0,show
1Flags:!0},"preferred-countries":["SA","QA","TR","IQ","KW","BH","AE","YE","JO","DZ","TN","LY","EG","SD","OM","SY"],validCharactersOnly:!0,"input-options":{mode:"national",type:"tel",autoFormat:!1,showDialCode:!0,placeholder:o.$t("common.enter_phone")},onValidate:B},null,8,["modelValue","defaultCountry","input-options"])):p("",!0),h.value?p("",!0):(l(),w("p",re,r(o.$t("common.wrong_phone_format")),1)),s("button",{disabled:u.value,class:"call-me primary-btn",type:"button",onClick:V},[f.value?p("",!0):(l(),w("span",le,r(o.$t("common.submit_the_request_now")),1)),f.value?(l(),w("span",ce,r(o.$t("common.sent"))+" ✅",1)):p("",!0)],8,ie),o.$page.props.country==="turkey"||o.$page.props.turkishFormConsent?(l(),w("div",ue,[U(s("input",{id:`quick-cta-consent${d.index}`,"onUpdate:modelValue":e[2]||(e[2]=t=>k.value=t),name:`consent${d.index}`,required:"",type:"checkbox"},null,8,pe),[[j,k.value]]),s("label",{class:"consent-label",for:`quick-cta-consent${d.index}`,innerHTML:o.$t("common.turkey_etk_consent")},null,8,de),v(a)])):p("",!0),s("img",{alt:"go back",class:"mx-auto go-back",height:"24",loading:"lazy",src:"/assets/global_assets/img/icons/goback.svg",width:"24",onClick:e[3]||(e[3]=t=>I())})])])])]),_:1}),v(c(T),{class:"swiper-slide home_uae-form-slider-slide slide-4 w-100",dir:"ltr"},{default:g(()=>[s("div",me,[s("p",_e,r(o.$t("common.thank_you")),1),e[7]||(e[7]=s("div",{class:"ksa-ownership-img"},[s("img",{src:"/assets/img/ksa-ownership.png",alt:""})],-1)),s("p",he,r(o.$t("common.ksa_foreign_ownership_guide_thank_you_description")),1)])]),_:1})]),_:1},512)}}},$e=R(fe,[["__scopeId","data-v-9506a0b4"]]);export{$e 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.