PageSourceSearch

https://citymall.jo/_nuxt/CboRciZG.js

js citymall.jo collected 2026-10-08 21:10:53 UTC 17,441 bytes, 1 lines download raw bytes

1import{A as w}from"./CV8my98T.js";import{A as C}from"./F3UJAS_G.js";import{_ as L}from"./BvP8tgBy.js";import{i as p,a1 as s,o as r,l as o,n as a,ag as d,s as h,aB as g,r as f,_ as y,ae as m,b as S,a6 as A,X as b,q as B,m as O,c as G}from"./CLzH4E3X.js";import M from"./BUZqm8dT.js";import{G as x}from"./BEIwxRWS.js";import{d as N}from"./B9fk8b1n.js";import{u as P}from"./C4ARSDOJ.js";import"./Dv8NwZPC.js";import"./B-AQYmdw.js";import"./CEAajiB4.js";import"./DzeUZ6eV.js";const R="/images/gift-card/gift-voucher-banner.png",W="/search?is_gift_voucher_applicable=true",$={name:"GiftCardBannerHeroSection",props:{section:{type:Object,default:null},contactUsLabel:{type:String,default:"Contact Us"},contactUsLabelAr:{type:String,default:"تواصل معنا"},contactUsTo:{type:String,default:"/contact"},applicableStoresLabel:{type:String,default:"Applicable Stores"},applicableStoresLabelAr:{type:String,default:"المتاجر المشاركة"},applicableStoresTo:{type:[String,Object],default:()=>W}},computed:{isRtl(){return this.$store.lang.lang==="ar"},displayContactUsLabel(){return this.isRtl?this.contactUsLabelAr:this.contactUsLabel},displayApplicableStoresLabel(){return this.isRtl?this.applicableStoresLabelAr:this.applicableStoresLabel},block(){const t=this.section?.blocks;return!Array.isArray(t)||!t.length?null:t.find(Boolean)||null},title(){return this.block?.title||""},descriptionHtml(){return m(this.block?.description||this.block?.short_description||this.block?.subtitle)},bannerImageSrc(){const t=this.block?.image;return t?this.imgPath(t):R},hasContent(){return!!(this.title||this.descriptionHtml||this.bannerImageSrc)}}},U={key:0,class:"gift-card-banner-hero","aria-labelledby":"gift-card-hero-title"},j={class:"gift-card-banner-hero__banner"},D={key:0,class:"gift-card-banner-hero__banner-media"},F=["src"],V={class:"gift-card-banner-hero__content"},q={class:"gift-card-banner-hero__copy"},Y={key:0,id:"gift-card-hero-title",class:"gift-card-banner-hero__title"},z=["innerHTML"],Q={class:"gift-card-banner-hero__actions"};function X(t,i,c,_,u,e){const n=y;return e.hasContent?(s(),r("section",U,[o("div",j,[e.bannerImageSrc?(s(),r("div",D,[o("img",{src:e.bannerImageSrc,alt:"",class:"gift-card-banner-hero__banner-img",loading:"eager",decoding:"async"},null,8,F)])):a("",!0),i[0]||(i[0]=o("div",{class:"gift-card-banner-hero__overlay","aria-hidden":"true"},null,-1)),o("div",V,[o("div",q,[e.title?(s(),r("h1",Y,d(e.title),1)):a("",!0),e.descriptionHtml?(s(),r("div",{key:1,class:"gift-card-banner-hero__description",innerHTML:e.descriptionHtml},null,8,z)):a("",!0)]),o("div",Q,[h(n,{to:c.contactUsTo,class:"gift-card-banner-hero__btn gift-card-banner-hero__btn--primary"},{default:g(()=>[f(d(e.displayContactUsLabel),1)]),_:1},8,["to"]),h(n,{to:c.applicableStoresTo,class:"gift-card-banner-hero__btn gift-card-banner-hero__btn--secondary"},{default:g(()=>[f(d(e.displayApplicableStoresLabel),1)]),_:1},8,["to"])])])])])):a("",!0)}const H=Object.assign(p($,[["render",X],["__scopeId","data-v-74e6c1d7"]]),{__name:"GiftCardBannerHeroSection"}),Z={name:"GiftCardHowItWorksSection",props:{headerSection:{type:Object,default:null},cardSections:{type:Array,default:()=>[]}},computed:{headerBlock(){const t=this.headerSection?.blocks;return!Array.isArray(t)||!t.length?null:t.find(Boolean)||null},heading(){return(this.headerBlock?.title||"").trim()}
1,subtitle(){return(this.headerBlock?.subtitle||this.headerBlock?.short_description||"").trim()},hasHeader(){return!!(this.heading||this.subtitle)},cards(){return Array.isArray(this.cardSections)?this.cardSections.filter(Boolean).map(t=>this.parseCardSection(t)).filter(t=>t.title||t.text||t.imageSrc):[]},hasContent(){return this.hasHeader||this.cards.length>0}},methods:{parseCardSection(t){const i=Array.isArray(t?.blocks)?t.blocks.find(Boolean):null;if(!i)return{id:t?.id,title:"",text:"",imageSrc:""};const c=m(i.description||""),_=c.match(/<h3[^>]*>([\s\S]*?)<\/h3>/i),u=_?this.stripHtml(_[1]):this.stripHtml(i.title||""),e=c.replace(/<h3[^>]*>[\s\S]*?<\/h3>/i,"").trim(),n=this.stripHtml(e),l=i.image;return{id:t.id||i.id,title:u,text:n,imageSrc:l?this.imgPath(l):""}},stripHtml(t){if(!t)return"";if(typeof document<"u"){const i=document.createElement("div");return i.innerHTML=t,(i.textContent||i.innerText||"").replace(/\s+/g," ").trim()}return t.replace(/<[^>]*>/g," ").replace(/&nbsp;/gi," ").replace(/&amp;/gi,"&").replace(/\s+/g," ").trim()}}},K={key:0,id:"gift-card-get-started",class:"gift-card-how-it-works","aria-labelledby":"gift-card-how-it-works-title"},J={class:"gift-card-how-it-works__inner"},tt={key:0,class:"gift-card-how-it-works__header"},et={key:0,id:"gift-card-how-it-works-title",class:"gift-card-how-it-works__title"},it={key:1,class:"gift-card-how-it-works__subtitle"},st={key:1,class:"gift-card-how-it-works__cards"},rt={key:0,class:"gift-card-how-it-works__card-title"},at={key:1,class:"gift-card-how-it-works__card-list"},nt={class:"gift-card-how-it-works__card-list-item"},ct={key:0,class:"gift-card-how-it-works__card-media"},ot=["src"];function lt(t,i,c,_,u,e){return e.hasContent?(s(),r("section",K,[o("div",J,[e.hasHeader?(s(),r("header",tt,[e.heading?(s(),r("h2",et,d(e.heading),1)):a("",!0),e.subtitle?(s(),r("p",it,d(e.subtitle),1)):a("",!0)])):a("",!0),e.cards.length?(s(),r("ul",st,[(s(!0),r(S,null,A(e.cards,n=>(s(),r("li",{key:n.id,class:b(["gift-card-how-it-works__card",{"gift-card-how-it-works__card--no-title":!n.title}])},[o("div",{class:b(["gift-card-how-it-works__card-copy",{"gift-card-how-it-works__card-copy--no-title":!n.title}])},[n.title?(s(),r("h3",rt,d(n.title),1)):a("",!0),n.text?(s(),r("ul",at,[o("li",nt,d(n.text),1)])):a("",!0)],2),n.imageSrc?(s(),r("div",ct,[o("img",{src:n.imageSrc,alt:"",class:"gift-card-how-it-works__card-img",loading:"lazy",decoding:"async"},null,8,ot)])):a("",!0)],2))),128))])):a("",!0)])])):a("",!0)}
1const T=Object.assign(p(Z,[["render",lt],["__scopeId","data-v-2783c04b"]]),{__name:"GiftCardHowItWorksSection"}),dt="title",ht={name:"GiftCardWhyChooseSection",props:{headerSection:{type:Object,default:null},cardSections:{type:Array,default:()=>[]},showCta:{type:Boolean,default:!1},ctaLabel:{type:String,default:"Explore Your Options"},ctaLabelAr:{type:String,default:"استكشف خياراتك"},ctaTo:{type:[String,Object],default:"/search?is_gift_voucher_applicable=true"}},computed:{isRtl(){return this.$store.lang.lang==="ar"},displayCtaLabel(){return this.isRtl?this.ctaLabelAr:this.ctaLabel},headerBlock(){const t=this.headerSection?.blocks;return!Array.isArray(t)||!t.length?null:t.find(Boolean)||null},heading(){return(this.headerBlock?.title||this.headerSection?.name||"").trim()},subtitle(){return(this.headerBlock?.subtitle||this.headerBlock?.short_description||"").trim()},hasHeader(){return!!(this.heading||this.subtitle)},cards(){return Array.isArray(this.cardSections)?this.cardSections.filter(Boolean).map(t=>this.parseCardSection(t)).filter(t=>t.title||t.text||t.iconSrc).sort((t,i)=>t.sortOrder-i.sortOrder):[]},hasContent(){return this.hasHeader||this.cards.length>0||this.showCta}},methods:{parseCardSection(t){const i=Array.isArray(t?.blocks)?t.blocks.find(Boolean):null;if(!i)return{id:t?.id,sortOrder:this.extractCardSortOrder(t?.name),title:"",text:"",iconSrc:""};const c=m(i.description||""),_=c.match(/<h3[^>]*>([\s\S]*?)<\/h3>/i),u=_?this.stripHtml(_[1]):this.stripHtml(i.title||""),e=u.toLowerCase()===dt?"":u,n=c.replace(/<h3[^>]*>[\s\S]*?<\/h3>/i,"").trim(),l=this.stripHtml(n),k=i.image;return{id:t.id||i.id,sortOrder:this.extractCardSortOrder(t?.name),title:e,text:l,iconSrc:k?this.imgPath(k):""}},extractCardSortOrder(t){const i=String(t||"").match(/card\s*(\d+)/i);return i?Number.parseInt(i[1],10):Number.MAX_SAFE_INTEGER},stripHtml(t){if(!t)return"";if(typeof document<"u"){const i=document.createElement("div");return i.innerHTML=t,(i.textContent||i.innerText||"").replace(/\s+/g," ").trim()}return t.replace(/<[^>]*>/g," ").replace(/&nbsp;/gi," ").replace(/&amp;/gi,"&").replace(/\s+/g," ").trim()}}},_t={key:0,id:"gift-card-features",class:"gift-card-why-choose","aria-labelledby":"gift-card-why-choose-title"},ut={class:"gift-card-why-choose__inner"},gt={key:0,class:"gift-card-why-choose__header"},ft={key:0,id:"gift-card-why-choose-title",class:"gift-card-why-choose__title"},pt={key:1,class:"gift-card-why-choose__subtitle"},mt={key:1,class:"gift-card-why-choose__cards"},bt={key:0,class:"gift-card-why-choose__card-icon"},yt=["src"],St={key:0,class:"gift-card-why-choose__card-title"},kt={key:1,class:"gift-card-why-choose__card-text"},wt={key:2,class:"gift-card-why-choose__actions"};function Ct(t,i,c,_,u,e){const n=y;return e.hasContent?(s(),r("section",_t,[o("div",ut,[e.hasHeader?(s(),r("header",gt,[e.heading?(s(),r("h2",ft,d(e.heading),1)):a("",!0),e.subtitle?(s(),r("p",pt,d(e.subtitle),1)):a("",!0)])):a("",!0),e.cards.length?(s(),r("ul",mt,[(s(!0),r(S,null,A(e.cards,l=>(s(),r("li",{key:l.id,class:b(["gift-card-why-choose__card",{"gift-card-why-choose__card--no-title":!l.title}])},[l.iconSrc?(s(),r("div",bt,[o("img",{src:l.iconSrc,alt:"",class:"gift-card-why-choose__card-icon-img",loading:"lazy",decoding:"async"},null,8,yt)])):a("",!0),o("div",{class:b(["gift-card-why-choose__card-copy",{"gift-card-why-choose__card-copy--no-title":!l.title}])},[l.title?(s(),r("h3",St,d(l.title),1)):a("",!0),l.text?(s(),r("p",kt,d(l.text),1)):a("",!0)],2)],2))),128))])):a("",!0),c.showCta?(s(),r("div",wt,[h(n,{to:c.ctaTo,class:"gift-card-why-choose__btn"},{default:g(()=>[f(d(e.displayCtaLabel),1)]),_:1},8,["to"])])):a("",!0)])])):a("",!0)}const v=Object.assign(p(ht,[["render",Ct],["__scopeId","data-v-c666dcc9"]]),{__name:"GiftCardWhyChooseSection"}),Lt={name:"GiftCardBusinessGiftingSection",props:{section:{type:Object,default:null}},computed:{block(){const t=this.section?.blocks;return!Array.isArray(t)||!t.length?null:t.find(Boolean)||null},title(){return(this.block?.title||this.section?.name||"").trim()},descriptionHtml(){const t=this.block?.description||this.block?.short_description||this.block?.subt
1itle;return t?m(t):""},imageSrc(){const t=this.block?.image;return t?this.imgPath(t):""},hasCopy(){return!!(this.title||this.descriptionHtml)},hasContent(){return this.hasCopy||!!this.imageSrc}}},At={key:0,class:"gift-card-business-gifting","aria-labelledby":"gift-card-business-gifting-title"},Ht={class:"gift-card-business-gifting__inner"},Tt={key:0,class:"gift-card-business-gifting__media"},vt=["src"],It={key:1,class:"gift-card-business-gifting__content"},Et={class:"gift-card-business-gifting__copy"},Bt={key:0,id:"gift-card-business-gifting-title",class:"gift-card-business-gifting__title"},Ot=["innerHTML"];function Gt(t,i,c,_,u,e){return e.hasContent?(s(),r("section",At,[o("div",Ht,[e.imageSrc?(s(),r("div",Tt,[o("img",{src:e.imageSrc,alt:"",class:"gift-card-business-gifting__img",loading:"lazy",decoding:"async"},null,8,vt)])):a("",!0),e.hasCopy?(s(),r("div",It,[o("div",Et,[e.title?(s(),r("h2",Bt,d(e.title),1)):a("",!0),e.descriptionHtml?(s(),r("div",{key:1,class:"gift-card-business-gifting__description",innerHTML:e.descriptionHtml},null,8,Ot)):a("",!0)])])):a("",!0)])])):a("",!0)}const I=Object.assign(p(Lt,[["render",Gt],["__scopeId","data-v-494451fe"]]),{__name:"GiftCardBusinessGiftingSection"}),Mt="/search?is_gift_voucher_applicable=true",xt={name:"GiftCardWhereToUseSection",props:{section:{type:Object,default:null},showActions:{type:Boolean,default:!0},storesListLabel:{type:String,default:"View Stores List"},storesListLabelAr:{type:String,default:"عرض قائمة المحلات"},storesListTo:{type:[String,Object],default:()=>Mt},mallMapLabel:{type:String,default:"Mall Map"},mallMapLabelAr:{type:String,default:"خريطة المول"},mallMapTo:{type:[String,Object],default:"/map"}},computed:{isRtl(){return this.$store.lang.lang==="ar"},displayStoresListLabel(){return this.isRtl?this.storesListLabelAr:this.storesListLabel},displayMallMapLabel(){return this.isRtl?this.mallMapLabelAr:this.mallMapLabel},block(){const t=this.section?.blocks;return!Array.isArray(t)||!t.length?null:t.find(Boolean)||null},title(){return(this.block?.title||"").trim()},descriptionHtml(){const t=this.block?.description||this.block?.short_description||this.block?.subtitle;return t?m(t):""},imageSrc(){const t=this.block?.image;return t?this.imgPath(t):""},hasCopy(){return!!(this.title||this.descriptionHtml)},hasContent(){return this.hasCopy||this.imageSrc||this.showActions}}},Nt={key:0,class:"gift-card-where-to-use","aria-labelledby":"gift-card-where-to-use-title"},Pt={class:"gift-card-where-to-use__inner"},Rt={key:0,class:"gift-card-where-to-use__content"},Wt={key:0,class:"gift-card-where-to-use__copy"},$t={key:0,id:"gift-card-where-to-use-title",class:"gift-card-where-to-use__title"},Ut=["innerHTML"],jt={key:1,class:"gift-card-where-to-use__actions"},Dt={key:1,class:"gift-card-where-to-use__media"},Ft=["src"];function Vt(t,i,c,_,u,e){const n=y,l=M;return e.hasContent?(s(),r("section",Nt,[o("div",Pt,[e.hasCopy||c.showActions?(s(),r("div",Rt,[e.hasCopy?(s(),r("div",Wt,[e.title?(s(),r("h2",$t,d(e.title),1)):a("",!0),e.descriptionHtml?(s(),r("div",{key:1,class:"gift-card-where-to-use__description",innerHTML:e.descriptionHtml},null,8,Ut)):a("",!0)])):a("",!0),c.showActions?(s(),r("div",jt,[h(n,{to:c.storesListTo,class:"gift-card-where-to-use__btn gift-card-where-to-use__btn--primary"},{default:g(()=>[f(d(e.displayStoresListLabel),1)]),_:1},8,["to"]),h(n,{to:c.mallMapTo,class:"gift-card-where-to-use__btn gift-card-where-to-use__btn--secondary"},{default:g(()=>[h(l,{class:"gift-card-where-to-use__btn-icon"}),f(" "+d(e.displayMallMapLabel),1)]),_:1},8,["to"])])):a("",!0)])):a("",!0),e.imageSrc?(s(),r("div",Dt,[o("img",{src:e.imageSrc,alt:"",class:"gift-card-where-to-use__img",loading:"lazy",decoding:"async"},null,8,Ft)])):a("",!0)]),i[0]||(i[0]=B('<svg width="0" height="0" class="gift-card-where-to-use__clip-defs" aria-hidden="true" data-v-68ffc0cd><defs data-v-68ffc0cd><clipPath id="gift-card-where-to-use-clip" clipPathUnits="objectBoundingBox" data-v-68ffc0cd><path d="M1 0 H0 Q0.10 0.5 0 1 H1 Z" data-v-68ffc0cd></path></clipPath><clipPath id="gift-card-where-to-use-clip-ar" clipPathUnits="objectBoundingBox" data-v-68ffc0cd><path d="M0 0 H1 Q0.90 0.5 1 1 H0 Z" data-v-68ffc0cd></path></clipPath></defs></svg>',1))])):a("",!0)}const E=Object.assign(p(xt,[["render",Vt],["__scopeId","data-v-68ffc0cd"]]),{__name:"GiftCardWhereToUseSection"}),qt={class:"gift-card-page"}
1,Yt="82",zt="83",Qt="How it works - Card",Xt="87",Zt="Why City Mall Vouchers - Card",Kt="92",Jt="93",te=[{id:"get-started",targetId:"gift-card-get-started",labelEn:"Get Started",labelAr:"ابدأ الآن"},{id:"features",targetId:"gift-card-features",labelEn:"Features & Benefits",labelAr:"الميزات والفوائد"},{id:"faq",targetId:"gift-card-faq",labelEn:"FAQs & Support",labelAr:"الأسئلة الشائعة والدعم"}],ee=N({name:"GiftCardPage",components:{AppFaqSection:w,AppInlineLoader:C,PageTopline:L,GiftCardBannerHeroSection:H,GiftCardHowItWorksSection:T,GiftCardWhyChooseSection:v,GiftCardBusinessGiftingSection:I,GiftCardWhereToUseSection:E},data(){return{loading:!0,pageContent:null}},computed:{sections(){return Array.isArray(this.pageContent)?this.pageContent.filter(Boolean):[]},heroSection(){return this.sections.find(t=>String(t?.id)===Yt)||null},howItWorksHeaderSection(){return this.sections.find(t=>String(t?.id)===zt)||null},howItWorksCardSections(){return this.sections.filter(t=>(t?.name||"").trim().toLowerCase().startsWith(Qt.toLowerCase()))},whyChooseHeaderSection(){return this.sections.find(t=>String(t?.id)===Xt)||null},whyChooseCardSections(){return this.sections.filter(t=>(t?.name||"").trim().toLowerCase().startsWith(Zt.toLowerCase()))},whereToUseSection(){return this.sections.find(t=>String(t?.id)===Kt)||null},businessGiftingSection(){return this.sections.find(t=>String(t?.id)===Jt)||null},toplineLinks(){return te}},async created(){await this.loadPageContent()},methods:{async loadPageContent(){try{const{data:t}=await this.$apollo.query({query:x,variables:{page:G.GiftVoucher},fetchPolicy:"no-cache"});this.pageContent=t?.getMobilePageContent??null}catch{this.$store.sm.show({text:"Failed to load gift card page content.",type:"danger",autoclose:!0})}finally{this.loading=!1}}}},"$yYfEGZnyZ0"),ge=Object.assign(ee,{setup(t){return P({en:"Gift Card",ar:"بطاقة الهدايا"}),(i,c)=>(s(),r("div",qt,[i.loading?(s(),O(C,{key:0,"min-height":"320px"})):(s(),r(S,{key:1},[h(L,{links:i.toplineLinks},null,8,["links"]),h(H,{section:i.heroSection},null,8,["section"]),h(T,{"header-section":i.howItWorksHeaderSection,"card-sections":i.howItWorksCardSections},null,8,["header-section","card-sections"]),h(v,{"header-section":i.whyChooseHeaderSection,"card-sections":i.whyChooseCardSections},null,8,["header-section","card-sections"]),h(E,{section:i.whereToUseSection},null,8,["section"]),h(I,{section:i.businessGiftingSection},null,8,["section"]),h(w,{"section-id":"gift-card-faq","category-id":"68",title:"Answers to Your Gift Card Questions",subtitle:"Find everything you need to know about using your City Mall Gift Card.","title-ar":"إجابات عن استفساراتك حول بطاقة الإهداء","subtitle-ar":"اعثر على كل ما تحتاج معرفته حول استخدام بطاقة الإهداء الخاصة بسيتي مول.","load-error-message":"Failed to load gift card FAQ."})],64))]))}});export{ge 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.