import{T as I}from"./track-visibility-v2-C0HoblVN-v01.js";import{s as N}from"./assets/index-BNjSWYXN.js";import{a as k}from"./getyourguide-compass-B98GQnia-v01.js";import{o,c as t,e as i,t as L,r as V,a as C,m as B,d as y,f as u,F as m,u as _,j as S,w,b as a,i as r,n as q}from"./vendors-vue-framework-CuaTXQR4-v01.js";import{P as v}from"./master-3SAbsRMJ-v01.js";import"./vendors-osSClPPM-v01.js";import"./commons-store-Cok8Mfin-v01.js";import"./getyourguide-framework-C8ECdvZH-v01.js";import"./vendors-framework-StFOZgBK-v01.js";import"./vendors-sentry-DL-ZUUbF-v01.js";const O={name:"GygPillCounter",props:{href:{type:String,required:!0},count:{type:Number,required:!0},label:{type:String,default:"",required:!1}}},H={class:"gyg-pill-counter"},z={class:"gyg-pill-counter__count"},D=["href"],P={class:"gyg-pill-counter__label"};function j(e,n,l,p,g,h){return o(),t("div",H,[i("span",z,L(l.count),1),i("a",B({href:l.href},e.$attrs),[i("span",P,[V(e.$slots,"label",{},()=>[C(L(l.label),1)])])],16,D)])}const E=k(O,[["render",j]]),T=y({name:"SeoLocationLinkSection",components:{GygPillCounter:E},props:{seoLinkSection:{type:Object,required:!0},locale:{type:String,required:!0}},computed:{showLinkSection(){return this.seoLinkSection&&!!this.seoLinkSection?.sections?.length}},methods:{sanitizeHtml:N,getUrl(e){return e?.url??""},isValidLink(e){return!!e&&!!e?.label},trackClick(){this.$analyticsLogger.logTravelerUIClick("seo-links","seo-links",{})}}}),M={key:0,"data-test-id":"seo-location-link-section"},U={class:"seo-location-links-title","data-test-id":"seo-location-links-title"},G={class:"seo-location-items"},Z=["innerHTML"];function R(e,n,l,p,g,h){const s=u("GygPillCounter");return e.showLinkSection?(o(),t("section",M,[(o(!0),t(m,null,_(e.seoLinkSection.sections,(c,f)=>(o(),t(m,null,[c.items.length?(o(),t("div",{class:"seo-location-links-group",key:`link-section-${f}`},[i("h2",U,L(c.name),1),i("ul",G,[(o(!0),t(m,null,_(c.items,(d,$)=>(o(),t("li",{class:"seo-location-item",key:$,onClick:n[0]||(n[0]=(...F)=>e.trackClick&&e.trackClick(...F))},[e.isValidLink(d)?(o(),S(s,{key:0,href:e.$gyglink(e.getUrl(d)),count:$+1},{label:w(()=>[i("span",{innerHTML:e.sanitizeHtml(d.label)},null,8,Z)]),_:2},1032,["href","count"])):a("",!0)]))),128))])])):a("",!0)],64))),256))])):a("",!0)}const A=k(T,[["render",R]]),W=y({name:"SeoLocationLinks",components:{SeoLocationLinkSection:A},mixins:[I],props:{seoLinks:{type:Object,required:!0},locationId:{type:Number,required:!1,default:0},categoryId:{type:Number,required:!1,default:0},countryId:{type:Number,required:!1,default:0},activityId:{type:Number,required:!1,default:0},locale:{type:String,required:!0}},computed:{customPayload(){return{target:"seo-links",id:"seo-links",metadata:{}}}},mounted(){new v(this.$store.state,this.$route,this.$refs?.seoLocationLinks)}}),J={key:0,class:"seo-location-links container","data-test-id":"seo-location-links",ref:"seoLocationLinks"};function K(e,n,l,p,g,h){const s=u("SeoLocationLinkSection");return e.seoLinks?(o(),t("section",J,[r(s,{"seo-link-section":e.seoLinks.poi,locale:e.locale},null,8,["seo-link-section","locale"]),r(s,{"seo-link-section":e.seoLinks.locationCategories,locale:e.locale},null,8,["seo-link-section","locale"]),r(s,{"seo-link-section":e.seoLinks.cities,locale:e.locale},null,8,["seo-link-section","locale"]),r(s,{"seo-link-section":e.seoLinks.ttds,locale:e.locale},null,8,["seo-link-section","locale"]),r(s,{"seo-link-section":e.seoLinks.areas,locale:e.locale},null,8,["seo-link-section","locale"]),r(s,{"seo-link-section":e.seoLinks.locationCategoryParent,locale:e.locale},null,8,["seo-link-section","locale"]),e.activityId?(o(),S(s,{key:0,"seo-link-section":e.seoLinks.activities,locale:e.locale},null,8,["seo-link-section","locale"])):a("",!0),r(s,{"seo-link-section":e.seoLinks.dayTrips,locale:e.locale},null,8,["seo-link-section","locale"])],512)):a("",!0)}const Q=k(W,[["render",K]]),b={"basking-yellow":"#FFD938","flamingo-pink":"#FFE5EE","glacial-blue":"#CCECFF","guiding-red":"#FF5533","hillside-green":"#00CA6D","lagoon-green":"#025B61","midnight-blue":"#1A2B49","offroad-brown":"#985545","outback-orange":"#FF8C41","peppermint-green":"#D7FFDC","poolside-blue":"#81BEFF","sorbet-yellow":"#FBFFD7"},X=y({name:"Separator",props:{type:{type:String,required:!1,default:"zigzag",validator:e=>["zigzag","stroke","dashed"].indexOf(e)!==-1},color:{type:String,required:!1,default:"guiding-red",validator:e=>Object.keys(b).indexOf(e)!==-1},padding:{type:String,required:!1,default:"none",validator:e=>["none","top","bottom","both"].indexOf(e)!==-1}},methods:{getColor(e){return b[e]??b["guiding-red"]}}}),Y={key:0,width:"37",height:"3",fill:"none",viewBox:"0 0 37 3",xmlns:"http://www.w3.org/2000/svg"},x=["fill"],ee={key:1,width:"40",height:"4",fill:"none",viewBox:"0 0 40 4",xmlns:"http://www.w3.org/2000/svg"},oe=["fill"],te={key:2,fill:"none",width:"35",height:"10",viewBox:"0 0 35 10",xmlns:"http://www.w3.org/2000/svg"},se=["fill"];function ne(e,n,l,p,g,h){return o(),t("span",{class:q(["separator",`${e.type}-separator`,`separator-p-${e.padding}`])},[e.type==="stroke"?(o(),t("svg",Y,[i("rect",{width:"37",height:"3",fill:e.getColor(e.color)},null,8,x)])):e.type==="dashed"?(o(),t("svg",ee,[i("path",{d:"M0 0H12V4H0V0ZM14 0H26V4H14V0ZM40 0H28V4H40V0Z","clip-rule":"evenodd",fill:e.getColor(e.color),"fill-rule":"evenodd"},null,8,oe)])):(o(),t("svg",te,[i("path",{d:"M6.83833 0L12.2482 5.45455L17.658 0L23.0678 5.45455L28.4777 0L34.775 6.34939L33 8.10987L28.4777 3.55017L23.0678 9.00472L17.658 3.55017L12.2482 9.00472L6.83833 3.55017L1.77503 8.65533L0 6.89485L6.83833 0Z","clip-rule":"evenodd",fill:e.getColor(e.color),"fill-rule":"evenodd"},null,8,se)]))],2)}const ie=k(X,[["render",ne]]),le=y({name:"SeoLinks",props:{links:{type:Object,required:!0},locationId:{type:Number,required:!0},countryId:{type:Number,required:!1,default:0},categoryId:{type:Number,required:!1,default:0},locale:{type:String,required:!0},isGeneric:{type:Boolean,required:!1,default:!0}},computed:{linkSections(){if(!this.links.seoLinks?.general?.sections)return[];if(this.isGeneric)return this.links.seoLinks?.general?.sections??[];const{poi:e,cities:n,locationCategories:l}=this.links.seoLinks;return!e?.sections||!n?.sections||!l?.sections?this.links.seoLinks?.general?.sections??[]:[...e.sections,...n.sections,...l.sections]}},mounted(){new v(this.$store.state,this.$route,this.$refs?.seoLinks)},methods:{getLinkUrl(e){return e.url??""}}}),re={key:0,class:q(["seo-links container"]),"data-test-id":"seo-links",ref:"seoLinks"},ae={class:"seo-links-title"},ce={class:"seo-links-list"};function de(e,n,l,p,g,h){const s=u("Link");return e.links.isLoading?a("",!0):(o(),t("section",re,[e.linkSections.length?(o(!0),t(m,{key:0},_(e.linkSections,(c,f)=>(o(),t("div",{class:"seo-links-group",key:f},[i("p",ae,L(c.name),1),i("ul",ce,[c.items?(o(!0),t(m,{key:0},_(c.items,(d,$)=>(o(),t("li",{key:$},[d.label?(o(),S(s,{key:0,class:"seo-links-link adp__link",href:e.getLinkUrl(d)},{default:w(()=>[C(L(d.label),1)]),_:2},1032,["href"])):a("",!0)]))),128)):a("",!0)])]))),128)):a("",!0)],512))}const ue=k(le,[["render",de],["__scopeId","data-v-6947fb0a"]]),ke=y({name:"SeoContent",components:{SeoLocationLinks:Q,SeoLinks:ue,Separator:ie},props:{seoLinks:{type:Object,required:!0},locationId:{type:Number,required:!1,default:0},countryId:{type:Number,required:!1,default:0},activityId:{type:Number,required:!1,default:0},locale:{type:String,required:!0}},computed:{locationIdWithFallback(){return this.locationId||0},shouldRender(){const e=Object.values(this.seoLinks.seoLinks??{}).some(n=>n.sections.length);return!this.seoLinks.isLoading&&e},seoLinksData(){return this.seoLinks.seoLinks}},mounted(){new v(this.$store.state,this.$route,this.$refs?.seoContent)}}),pe={key:0,ref:"seoContent"},ge={"data-track":"link-box"};function he(e,n,l,p,g,h){const s=u("Separator"),c=u("SeoLocationLinks"),f=u("SeoLinks");return e.shouldRender?(o(),t("section",pe,[i("div",null,[r(s,{color:"basking-yellow",type:"zigzag",padding:"both"}),r(c,{"location-id":e.locationId,"country-id":e.countryId,"seo-links":e.seoLinksData,locale:e.locale,"activity-id":e.activityId},null,8,["location-id","country-id","seo-links","locale","activity-id"]),r(s,{color:"guiding-red",type:"dashed",padding:"both"})]),i("div",ge,[r(f,{links:e.seoLinks,locale:e.locale,"location-id":e.locationIdWithFallback,"country-id":e.countryId},null,8,["links","locale","location-id","country-id"])])],512)):a("",!0)}const we=k(ke,[["render",he]]);export{we as default};
//# sourceMappingURL=seo-content-XIydvyN0-v01.js.map
