PageSourceSearch

https://roomspacecreativelab.com/_nuxt/DwjC1VLA.js

js roomspacecreativelab.com collected 2026-10-04 22:53:03 UTC 3,671 bytes, 1 lines download raw bytes

1import{g as y,r as c,V as d}from"./B4ypCauD.js";const n=c([]),l=c(!1),u=c(null),v=c(!1),f=new Map,w=s=>{if(!s)return null;const a=typeof s.terms=="string"&&s.terms.includes("<")?s.terms:b(s.features||s.terms||{});return{id:s.id??s.slug??s.shortName??s.name,slug:s.slug??s.id??null,name:s.name,shortName:s.shortName||s.short_name||s.name,priceMultiplier:s.basePrice?1:Number(s.priceMultiplier??s.price_multiplier??1),price:s.basePrice?Number(s.basePrice):s.price?Number(s.price):null,description:s.description??"",terms:a,limitations:Array.isArray(s.limitations)?s.limitations:[],expiration:s.expiration??"Perpetual",order:s.order??0,filePath:s.filePath||s.file_path||null}},b=s=>{if(!s)return{};const e=typeof s=="string"?{}:{...s};return{users:e.users??e.user??e.userCount??"Unlimited",computers:e.computers??e.devices??"Unlimited",salesPrints:e.salesPrints??e.prints??"Unlimited",websites:e.websites??e.domains??"Unlimited",views:e.views??e.pageViews??"Unlimited",viewsPeriod:e.viewsPeriod??e.period??null,apps:e.apps??null,servers:e.servers??null,broadcast:e.broadcast??null}},P=s=>{if(!s?.terms)return s?.description||"";const e=s.terms,a=[];if(e.users){const i=e.users==="Unlimited"?"Unlimited users":`${e.users} user${e.users!=="1"?"s":""}`;a.push(i)}if(e.computers){const i=e.computers==="Unlimited"?"unlimited computers":`${e.computers} computer${e.computers!=="1"?"s":""}`;a.push(i)}if(e.websites){const i=e.websites==="Unlimited"?"unlimited websites":`${e.websites} website${e.websites!=="1"?"s":""}`;a.push(i)}if(e.views&&e.views!=="N/A"){const i=e.views==="Unlimited"?"unlimited pageviews":`${e.views} pageviews${e.viewsPeriod?"/"+e.viewsPeriod.toLowerCase():""}`;a.push(i)}if(e.salesPrints&&e.salesPrints!=="N/A"){const i=e.salesPrints==="Unlimited"?"unlimited sales/prints":`${e.salesPrints} sales/prints`;a.push(i)}if(e.apps){const i=e.apps==="Unlimited"?"unlimited apps":`${e.apps} app${e.apps!=="1"?"s":""}`;a.push(i)}if(e.servers){const i=e.servers==="Unlimited"?"unlimited servers":`${e.servers} server${e.servers!=="1"?"s":""}`;a.push(i)}return e.broadcast&&a.push(`${e.broadcast.toLowerCase()} broadcast`),a.length===0?s?.description||"":`Includes ${a.join(", ")}`},$=(s,e)=>{if(!e)return Number(s||0);if(e.price)return Number(e.price);const a=Number(s||0),i=Number(e.priceMultiplier||1);return a*i},h=s=>Array.isArray(s)?s:[],U=()=>{const s=async()=>{l.value=!0,u.value=null;try{const r=await d.getAll(),t=r?.data?.licenses||r?.licenses||r,o=h(t).map(w).filter(Boolean).sort((m,p)=>(m.order??0)-(p.order??0));return n.value=o,v.value=!0,o}catch(r){throw u.value=r.message||"Failed to load licenses",r}finally{l.value=!1}},e=async()=>{if(!v.value&&!l.value)try{await s()}catch{}return n.value},a=r=>{if(!r)return null;const t=r.toString().toLowerCase();return n.value.find(o=>o.id?.toString().toLowerCase()===t||o.slug?.toLowerCase()===t||o.shortName?.toLowerCase()===t)},i=async r=>{if(!r)return null;try{const t=await d.getBySlug(r),o=t?.data?.license||t?.license||t;return w(o)}catch(t){throw u.value=t.message||"Failed to load license",t}},g=async r=>{if(!r)return[];const t=r.toLowerCase();if(f.has(t))return f.get(t);try{const o=await d.getForFont(r),m=o?.data?.licenses||o?.licenses||[],p=h(m).map(w).filter(Boolean);return f.set(t,p),p}catch(o){throw u.value=o.message||"Failed to load font licenses",o}},L=y(()=>{const r={};return n.value.forEach(t=>{t?.id&&(r[t.id]=t),t?.slug&&(r[t.slug]=t)}),r});return{licenses:n,loading:l,error:u,licenseMap:L,fetchAllLicenses:s,ensureLicensesLoaded:e,fetchFontLicenses:g,fetchLicenseBySlug:i,getLicenseById:a,calculateLicensePrice:$,formatLicenseFeatures:b,formatLicenseDescription:P}};export{U as u};

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.