PageSourceSearch

https://frontiersnorth.com/_nuxt/B028Ylma.js

js frontiersnorth.com collected 2026-09-24 19:32:50 UTC 4,132 bytes, 1 lines download raw bytes

1import{a2 as O,S as U,as as B,b as J,U as D,r as d,V as c,w as j,c as w,e as b,o as g,k as t,t as n,v as y,y as F,i as l,x as k,a8 as S,F as V,X as N,m as I,f as L,P as R}from"./ClacqbRY.js";const E={class:"[ story-customizer ] w-full lg:w-[24rem] max-w-full block bg-gradient-to-r to-white/95 dark:to-white from-ltblue/50 dark:from-white p-[1px] shadow-lg text-dkblue dark:text-white relative"},P={class:"text-center"},X={class:"font-script font-normal dark:text-dkblue text-[10vw] lg:text-5xl mb-0"},Y={class:"mt-0 text-dkblue/35 dark:text-dkblue"},Z={class:"block my-3"},G={class:"table mb-1"},H={class:"block my-3"},K={class:"table mb-1"},Q=["value"],W={class:"block my-3"},ee={class:"table mb-1"},te=["disabled"],ae={value:null,disabled:""},le=["value"],se=["disabled"],oe={__name:"StoryCustomizer",props:U({item:{type:Object,required:!0},name:{type:String,required:!1,default:"The visitor"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],async setup(i){let m,h;const q=B(),{$directus:x,$readItems:_}=J(),$=D(i,"modelValue"),o=d(c.value.name),s=d(null),r=d(null),f=d(!1),p=d([]);async function C(){s.value&&(p.value=await A())}const T=([m,h]=j(()=>x.request(_("curations",{filter:{status:w()},fields:["category.slug","category.title","tag.slug","tag.title"]}))),m=await m,h(),m).map(u=>u.category),z=Array.from(new Set(T.map(u=>JSON.stringify(u)))).map(u=>JSON.parse(u));async function A(){f.value=!0;const a=(await x.request(_("curations",{filter:{status:w(),category:{slug:{_eq:s.value}}},fields:["tag.slug","tag.title"]}))).map(e=>e.tag),v=Array.from(new Set(a.map(e=>JSON.stringify(e)))).map(e=>JSON.parse(e));return f.value=!1,r.value=null,v}function M(u){u.preventDefault(),o&&s&&r&&(o.value=o.value.replace(/[^a-zA-Z0-9\s.-]/g,"").trim(),c.value.name=o.value,c.value.category=s.value,c.value.tag=r.value,c.value.tagLabel=p.value.find(a=>a.slug===r.value).title,$.value=!0,q.push(`/curated/${s.value}/${r.value}`))}return(u,a)=>{const v=R;return g(),b("section",E,[a[5]||(a[5]=t("svg",{"aria-hidden":"true",class:"-translate-y-full opacity-50",width:"367",height:"30",viewBox:"0 0 490 40"},[t("polygon",{points:"0,40 490,0 490,40 0,40",fill:"white"})],-1)),t("header",P,[t("h1",X,n(i.item.title),1),t("p",Y,n(i.item.subtitle),1)]),t("form",{onSubmit:M,class:"px-8 pb-8 lg:px-12 lg:pb-12 text-base md:text-2lg"},[t("label",Z,[t("span",G,n(i.item.name_label),1),y(t("input",{"onUpdate:modelValue":a[0]||(a[0]=e=>k(o)?o.value=e:null),type:"text",placeholder:"Your Name",required:"",class:"dark:border-2 dark:border-current dark:text-dkblue bg-ltblue/50 lg:bg-white w-full block font-bold px-4 py-3"},null,512),[[F,l(o)]])]),t("label",H,[t("span",K,n(i.item.adventure_category_label),1),y(t("select",{"onUpdate:modelValue":a[1]||(a[1]=e=>k(s)?s.value=e:null),onChange:a[2]||(a[2]=e=>C()),required:"",class:"dark:border-2 dark:border-current dark:text-dkblue w-full block bg-ltblue/50 lg:bg-white font-bold px-4 py-3"},[a[4]||(a[4]=t("option",{value:null,disabled:""},"Select",-1)),(g(!0),b(V,null,N(l(z),e=>(g(),b("option",{key:`story-customizer-category${e.slug}`,value:e.slug},n(e.title),9,Q))),128))],544),[[S,l(s)]])]),t("label",W,[t("span",ee,n(i.item.tour_category_label),1),y(t("select",{"onUpdate:modelValue":a[3]||(a[3]=e=>k(r)?r.value=e:null),disabled:l(f)||l(p).length===0,required:"",class:"dark:border-2 dark:border-current dark:text-dkblue w-full block bg-ltblue/50 lg:bg-white font-bold px-4 py-3"},[t("option",ae,n(l(s)?"Select":"Choose an experience"),1),(g(!0),b(V,null,N(l(p),e=>(g(),b("option",{key:`story-customizer-tag${e.slug}`,value:e.slug},n(e.title),9,le))),128))],8,te),[[S,l(r)]])]),t("button",{disabled:!l(o)||l(o).length===0||!l(s)||!l(r),type:"submit",class:"dark:border-2 dark:border-current text-2lg mt-10 w-full flex justify-between items-center bg-transparent dark:bg-dkblue font-bold leading-none px-8 py-4 border-2 border-green lg:border-white uppercase / hover:bg-white dark:hover:bg-dkblue duration-200"},[I(n(i.item.submit_label)+" ",1),L(v,{name:"arrow-left",width:"48",height:"20"})],8,se)],32)])}}},ne=O(oe,[["__scopeId","data-v-17243b3a"]]);export{ne 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.