1function __vite__mapDeps(indexes) { 2 if (!__vite__mapDeps.viteFileDeps) { 3 __vite__mapDeps.viteFileDeps = ["assets/EditProfile-C2s2GCGK.js","assets/vendor-D5DhX2JT.js","assets/EditProfile-B7ZeIv7K.css"] 4 } 5 return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) 6} 7import{o as Fe,r as f,u as Ds,w as z,c as L,n as Pe,g as Le,T as ea,S as No,a as Ns,b as c,t as Dn,d as l,e as r,f as s,h as Ct,i as Oe,j as B,k as x,l as h,m as k,p as N,q as U,s as he,F as Q,v as oe,x as ne,y as se,z as P,A as $n,B as we,C as Lo,D as In,E as yn,G as ta,H as Us,I as be,J as na,K as yo,L as St,M as re,N as eo,O as to,P as ms,Q as oa,R as xt,U as jt,V as kt,W as sa,X as _n,Y as Nn,Z as gs,_ as la,$ as aa,a0 as Rs,a1 as Bt,a2 as zs,a3 as Un,a4 as js,a5 as Sn,a6 as Rn,a7 as Zt,a8 as ia,a9 as ra,aa as Wt,ab as ua,ac as qs,ad as ys,ae as Uo,af as ca,ag as da,ah as va,ai as Ys,aj as fa,ak as pa,al as Ro,am as zo,an as ha,ao as ma,ap as ga}from"./vendor-D5DhX2JT.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const u of i.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function t(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(a){if(a.ep)return;a.ep=!0;const i=t(a);fetch(a.href,i)}})();const ya="modulepreload",_a=function(e){return"/app/themes/tg/dist/"+e},_s={},ba=function(n,t,o){let a=Promise.resolve();if(t&&t.length>0){const i=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),d=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));a=Promise.all(t.map(m=>{if(m=_a(m),m in _s)return;_s[m]=!0;const v=m.endsWith(".css"),p=v?'[rel="stylesheet"]':"";if(!!o)for(let b=i.length-1;b>=0;b--){const w=i[b];if(w.href===m&&(!v||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${m}"]${p}`))return;const g=document.createElement("link");if(g.rel=v?"stylesheet":ya,v||(g.as="script",g.crossOrigin=""),g.href=m,d&&g.setAttribute("nonce",d),document.head.appendChild(g),v)return new Promise((b,w)=>{g.addEventListener("load",b),g.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${m}`)))})}))}return a.then(()=>n()).catch(i=>{const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=i,window.dispatchEvent(u),!u.defaultPrevented)throw i})},zn="https://api.typographicposters.com",jo="cgtk",qo="cgrk";function Ks(){return localStorage.getItem(jo)}function Yo(){return localStorage.getItem(qo)}function Gs(e,n){e&&localStorage.setItem(jo,e),n&&localStorage.setItem(qo,n)}function no(){localStorage.removeItem(jo),localStorage.removeItem(qo)}function ka(){return!!Ks()}let xn=null;async function $a(){const e=Yo();if(!e)throw new Error("No refresh token");const n=await Fe(`${zn}/auth/refresh`,{method:"POST",body:{refreshToken:e}});if(n.accessToken)return Gs(n.accessToken,n.refreshToken||e),n.accessToken;throw new Error("Refresh failed")}async function J(e,n={}){var a;const t=Ks(),o={};t&&(o.Authorization=`Bearer ${t}`);try{return await Fe(`${zn}${e}`,{method:"POST",headers:o,body:n})}catch(i){if(((a=i==null?void 0:i.response)==null?void 0:a.status)===401&&Yo()){xn||(xn=$a().finally(()=>{xn=null}));try{const u=await xn;return await Fe(`${zn}${e}`,{method:"POST",headers:{Authorization:`Bearer ${u}`},body:n})}catch{throw no(),i}}throw i}}async function Rt(e,n={}){return await Fe(`${zn}${e}`,{method:"POST",body:n})}const _e={userData:()=>J("/user/data"),userProfileUpdate:e=>J("/user/profile-update",e),userPictureAdd:e=>J("/user/picture-add",e),userDeleteProfilePicture:e=>J("/user/delete-profile-picture",e),userProductRequest:e=>J("/user/product-request",e),userLikeToggle:e=>J("/user/like-toggle",e),userLikesGetAll:()=>J("/user/likes-get-all"),userCollectionsCreate:e=>J("/user/collections-create",e),userCollectionsDelete:e=>J("/user/collections-delete",e),userCollectionsGet:e=>J("/user/collections-get",e),userCollectionsFetchAll:()=>J("/user/collections-fetch-all"),userCollectionsUpdate:e=>J("/user/collections-update",e),userCollectionsToggleStatus:e=>J("/user/collections-toggle-status",e),userCollectionsReorder:e=>J("/user/collections-reorder",e),userCollectionsUpdateOrder:e=>J("/user/collections-update-order",e),userCollectionsPosterAdd:e=>J("/user/collections-poster-add",e),userCollectionsPosterRemove:e=>J("/user/collections-poster-remove",e),userGetCollectionLikes:e=>J("/user/get-collection-likes",e),profileGet:e=>J("/profile/get",e),profileGetAll:()=>J("/profile/get-all"),profileUpdate:e=>J("/profile/update",e),profileUpdateValues:e=>J("/profile/update-values",e),profileUpdatePoster:e=>J("/profile/update-poster",e),profileUpdatePosterValues:e=>J("/profile/update-poster-values",e),profilePosterAdd:e=>J("/profile/poster-add",e),profilePosterReplace:e=>J("/profile/poster-replace",e),profileDeletePoster:e=>J("/profile/delete-poster",e),profileReorderPosters:e=>J("/profile/reorder-posters",e),profileImageAdd:e=>J("/profile/image-add",e),profileImageDelete:e=>J("/profile/image-delete",e),profilePictureAdd:e=>J("/profile/picture-add",e),profileDeleteProfilePicture:e=>J("/profile/delete-profile-picture",e),profileStudioAdd:e=>J("/profile/studio-add",e),profileDeleteStudioPicture:e=>J("/profile/delete-studio-picture",e),profilePosterImageListAdd:e=>J("/profile/poster-image-list-add",e),profilePosterImageListReorder:e=>J("/profile/poster-image-list-reorder",e),profilePosterImageListDelete:e=>J("/profile/poster-image-list-delete",e),profileMediaAdd:e=>J("/profile/media-add",e),profileMediaRemove:e=>J("/profile/media-remove",e),profileMediaUpdate:e=>J("/profile/media-update",e),profileMediaReorder:e=>J("/profile/media-reorder",e),profileAnimatedAdd:e=>J("/profile/animated-add",e),profileAnimatedRemove:e=>J("/profile/animated-remove",e),profileEditionsPictureAdd:e=>J("/profile/editions-picture-add",e),profileEditionsPictureDelete:e=>J("/profile/editions-picture-delete",e),profileLinkUpdate:e=>J("/profile/link-update",e),profileLinkToggleType:e=>J("/profile/link-toggle-type",e),profileAuthorsList:e=>J("/profile/authors-list",e),profileAwardsList:e=>J("/profile/awards-list",e),profileGetUserLikes:e=>J("/profile/get-user-likes",e),profileGetUserCollections:e=>J("/profile/get-user-collections",e),profileUpdateStats:e=>J("/profile/update-stats",e),uploadRequest:e=>J("/user/upload-request",e),stripeGetBilling:()=>J("/user/get-billing"),managerStoreInstagramToken:e=>J("/manager/store-instagram-token",e),embed:e=>Rt("/embed",e)},Re=f(ka()?{loggedIn:!0}:null),S=f(null),Ge=f(!1),Et=Ds("aky",null);z(S,()=>{var e;Et.value=(e=S.value)==null?void 0:e.aky});const ae=L(()=>!!Re.value),Kt=L(()=>Re.value&&S.value&&(S.value.editProfileSelect||S.value.editProfileId)),Zs=L(()=>S.value?S.value.editProfileSelect?"/edit-profiles":S.value.editProfileId?`/author-area/${S.value.editProfileId}`:"/author-area":""),st=L(()=>{var e;return!!(Re.value&&((e=S.value)!=null&&e.isAdmin))}),dt=L(()=>{var e;return!!(Re.value&&Array.isArray((e=S.value)==null?void 0:e.allowedProfiles)&&S.value.allowedProfiles.length)});function Ws(e){return e&&dt.value&&S.value.allowedProfiles.includes(e)}const Ft=L(()=>{var e;return!!(Re.value&&((e=S.value)!=null&&e.isSubscriptionActive))}),Ko=L(()=>{var e;return!!(Re.value&&((e=S.value)!=null&&e.isPastDue))}),Ne=L(()=>!!(Re.value&&Et.value)),Js=L(()=>!0),wa=L(()=>!0),oo=f(!1);Qs();async function qe(){return new Promise(e=>{Ge.value&&e();const n=z(Ge,t=>{t&&(n(),e())})})}async function Qs(){if(S.value){Ge.value=!0;return}if(!Re.value){Ge.value=!0;return}try{S.value=await _e.userData()}catch{ct&&(Re.value=null,no())}finally{Ge.value=!0}}async function Go(e,n,t){Gs(e,n),Re.value={loggedIn:!0},Ge.value=!1,S.value=null,t||await Qs()}async function Ma(e,n,t){var u;fe.value=!0;let o="fail",a=0,i="";e=String(e).toLowerCase();try{const d=await Rt("/auth/login",{email:e,password:n});if(d.accessToken&&d.refreshToken)o="success",await Go(d.accessToken,d.refreshToken,t);else return d}catch(d){const m=(d==null?void 0:d.data)||{};a=((u=d==null?void 0:d.response)==null?void 0:u.status)||(d==null?void 0:d.statusCode)||0,i=m.error||m.message||d.message||""}finally{fe.value=!1}return{status:o,code:a,error:i}}async function bs(){if(Ge.value=!1,S.value=null,Re.value){fe.value=!0;try{await Rt("/auth/logout",{refreshToken:Yo()})}catch{}Re.value=null,no(),fe.value=!1}localStorage.clear(),sessionStorage.clear(),window.location.href="/"}async function Ta(e){var a,i;fe.value=!0;let n="fail",t=0,o="";try{fe.value=!0,await J("/user/account/delete",{password:e}),n="success",Re.value=null,Ge.value=!1,S.value=null,no(),localStorage.clear(),sessionStorage.clear()}catch(u){t=((a=u==null?void 0:u.response)==null?void 0:a.status)||(u==null?void 0:u.statusCode)||0,o=((i=u==null?void 0:u.data)==null?void 0:i.error)||u.message||""}finally{fe.value=!1}return{status:n,code:t,error:o}}async function La(e,n,t,o,a){var u;fe.value=!0;let i="";e=String(e).toLowerCase();try{await Rt("/auth/sign-up",{email:e,password:n,newsletters:t,location:o,membershipIntent:a})}catch(d){i=((u=d==null?void 0:d.data)==null?void 0:u.message)||d.message||""}finally{fe.value=!1}return{errorMessage:i}}async function Zo(e,n,t){var a;fe.value=!0;let o="";try{const i=await Rt("/auth/confirm-code",{email:e,password:n,code:t});i.accessToken&&i.refreshToken&&await Go(i.accessToken,i.refreshToken)}catch(i){o=((a=i==null?void 0:i.data)==null?void 0:a.message)||i.message||""}finally{fe.value=!1}return{errorMessage:o}}async function Ca(e){var o;fe.value=!0;let n="",t="";e=String(e).toLowerCase();try{t=(await Rt("/auth/password-reset-request",{email:e})).status||""}catch(a){n=((o=a==null?void 0:a.data)==null?void 0:o.message)||a.message||""}finally{fe.value=!1}return{errorMessage:n,status:t}}async function Aa(e,n,t){var a;fe.value=!0;let o="";try{const i=await Rt("/auth/password-reset-confirm",{email:e,password:n,code:t});i.accessToken&&i.refreshToken&&await Go(i.accessToken,i.refreshToken),await Pe(),window.location.href="/account"}catch(i){o=((a=i==null?void 0:i.data)==null?void 0:a.message)||i.message||""}finally{fe.value=!1}return{errorMessage:o}}async function Sa(e,n){var o;let t="";fe.value=!0;try{await J("/user/account/change-password",{password:e,newPassword:n}),window.location.href="/account"}catch(a){t=((o=a==null?void 0:a.data)==null?void 0:o.message)||a.message||""}finally{fe.value=!1}return{errorMessage:t}}Le.registerPlugin(ea,No);function xa(e){const n=Ns({});for(const t in e)n[t]=!1;n.current=L(()=>{const t=[];
7for(const o in n)o!=="current"&&n[o]&&t.push(o);return t.join(",")});for(const t in e){const o=window.matchMedia(e[t]),a=({matches:i})=>{n[t]=i};o.addListener(a),a(o)}return n}function Jt(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const n=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return e.preventDefault&&e.preventDefault(),!0}}function je(e){var n,t;if((n=e==null?void 0:e.data)!=null&&n.message)return e.data.message;if((t=e==null?void 0:e.data)!=null&&t.error)return String(e.data.error);if(e!=null&&e.error)try{return JSON.parse(e.error).message}catch{return String(e.error)}return e!=null&&e.message?e.message:"An error occurred"}function Pa(e,n){if(!e)return 0;let t=0,o=0;e=e instanceof HTMLElement?[e]:Array.from(e);e:for(const a of e)if(a.children){for(const i of a.children)if(t+=i.offsetHeight,n&&++o>=n)break e}return t}function Xs(e){if(e=Dn(e),!e)return[];let n=[];if(Array.isArray(e))for(const t of e)n=n.concat(Array.from(t.getElementsByTagName("img")));else n=Array.from(e.getElementsByTagName("img"));return n}function Wo(e,n,t){const o=Xs(e);if(!o.length){t&&n();return}o.forEach(a=>{a.complete?n(a):(a.addEventListener("load",()=>{n(a)}),a.addEventListener("error",()=>{n(a)}))})}function Ha(e,n,t){const o=Xs(e);if(!o.length){t&&n(o);return}let a=o.length;const i=()=>{a--,a<=0&&n(o)};o.forEach(u=>{u.complete?i():(u.addEventListener("load",i),u.addEventListener("error",i))})}function Ia(e,n){if(e=c(e),!e)return!1;const t=window.document;let{top:o,right:a,bottom:i,left:u,width:d,height:m}=e.getBoundingClientRect();const v=window.innerWidth||t.documentElement.clientWidth,p=window.innerHeight||t.documentElement.clientHeight;n!=null&&n.offsetY&&(o-=n.offsetY,i-=n.offsetY);const y=o<=p&&u<=v&&i>=0&&a>=0,g=o>=0&&u>=0&&i<=p&&a<=v,b=o<0&&i>p&&m>p;return{isVisible:y,isInside:g,isOverflowY:b,pastTop:i<p}}function Ba(e){return e&&(new DOMParser().parseFromString(e,"text/html").body.textContent||"")}function Co(e){let n=String(e);return n=/[<&]/.test(n)?Ba(n):n.replace(/\s+/g," ").trim(),n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function vt(e){return e&&(e=e.replace(/(?:\r\n|\r|\n)/g,"<br>"),e)}function Ea(e){if(!e)return"";const n=e.split(" ");let t=n[0].substring(0,1);return n.length>1&&(t+=n[n.length-1].substring(0,1)),t}function Ao(e,n,t){if(!Array.isArray(e))return String(e);t||(t=n);const o=[];for(let i of e)i===null||i===!1||(i=String(i),i!==""&&o.push(i));let a="";for(let i=0;i<o.length;i++)i&&(a+=i===o.length-1?t:n),a+=o[i];return a}function Dt(e){if(e.country)return Ao(e.country,", "," & ");if(Array.isArray(e.locations)){const n=e.locations.map(t=>t.country);return Ao(n.filter(Boolean),", "," & ")}return""}function Va(e){if(Array.isArray(e.locations)){const n=e.locations.map(t=>{const o=t.city||t.locality||"";return de(o,t.country,", ")});return Ao(n," & ")}return Dt(e)}function de(e,n,t,o,a,i){return[].concat(n).forEach(u=>{u=el(u,o,a,i),u&&(e&&t&&(e+=t),e+=u)}),e}function Jo(e,n,t,o,a,i){return[].concat(n).forEach(u=>{u=el(u,o,a,i),u&&(e&&t&&(e=t+e),e=u+e)}),e}function el(e,n,t,o){return e?(n||"")+e+(t||""):o}function Oa(){let e=12,n="col-1";Vo&&(e=2,n="col-6");const t=document.body;if(!t.baselineGrid){let a="";a+='<div class="baseline-grid-lines-y"></div>',a+='<div class="baseline-grid-lines-x">',a+='<div class="container">',a+='<div class="row">';const i=`<div class="${n}"><div class="baseline-grid-col-content"></div></div>`;for(let u=0;u<e;u++)a+=i;a+="</div>",a+="</div>",a+="</div>",a+='<div class="control-baseline"></div>',t.baselineGrid=document.createElement("div"),t.baselineGrid.className="baseline-grid",t.baselineGrid.innerHTML=a,t.baselineGridY=t.baselineGrid.getElementsByClassName("baseline-grid-lines-y")[0],t.baselineLineY=document.createElement("div"),t.baselineLineY.className="baseline-line-y ",t.controlBaseline=t.baselineGrid.getElementsByClassName("control-baseline")[0],t.appendChild(t.baselineGrid)}const o=t.offsetHeight;if(t.classList.contains("baseline-grid-active"))for(t.classList.remove("baseline-grid-active");t.baselineGridY.lastChild;)t.baselineGridY.removeChild(t.baselineGridY.lastChild);else{t.classList.add("baseline-grid-active");const a=t.controlBaseline.offsetHeight,i=Math.ceil(o/a);for(let u=0;u<i;u++)t.baselineGridY.appendChild(t.baselineLineY.cloneNode())}}function Fa(){const e=document.body.offsetWidth/8,n=16,t=4,o=document.body;if(!o.grid){let i="";i+='<div class="grid-lines-y"></div>',i+='<div class="grid-lines-x">';let u=!1,d=!1;for(let m=-3;m<e-3;m++)u=m%n===0,d=m%t!==0,i+=`<div class="grid-line-x ${u?"hit":""} ${d?"subhit":""}"></div>`;i+="</div>",o.grid=document.createElement("div"),o.grid.className="grid",o.grid.innerHTML=i,o.gridY=o.grid.getElementsByClassName("grid-lines-y")[0],o.lineY=document.createElement("div"),o.lineY.className="grid-line-y",o.appendChild(o.grid)}const a=o.offsetHeight;if(o.classList.contains("grid-active"))for(o.classList.remove("grid-active");o.gridY.lastChild;)o.gridY.removeChild(o.gridY.lastChild);else{o.classList.add("grid-active");const i=o.grid.getElementsByClassName("grid-line-x")[0].offsetWidth;let u=Math.ceil(a/i);u<12&&(u=12);for(let d=0;d<u;d++)o.gridY.appendChild(o.lineY.cloneNode())}}const $e=!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch);function Da(){document.addEventListener("DOMContentLoaded",()=>{document.readyState==="interactive"&&document.body.addEventListener("keydown",e=>{e.code==="KeyW"&&(e.shiftKey&&e.altKey?Fa():e.altKey&&Oa())})})}const tl=[{name:"xxl",minWidth:1400},{name:"xl",minWidth:1200},{name:"lg",minWidth:992},{name:"md",minWidth:768},{name:"sm",minWidth:576},{name:"default"}],Na=window.matchMedia("(color-gamut: p3)").matches;function Ua(e){return e=Ra(e),e?(e.startsWith("/")&&(e=e.substring(1)),`https://assets.typographicposters.com/animated-poster/${e}`):""}function Ra(e){if(!e||!e.includes("."))return"";const n=e.split(".");return n.pop(),n.push("jpg"),n.join(".")}function ft(e,n,t,o){return e?e.imageTag?e.imageTag:`<picture>${Qt(e,n,t,o)}</picture>`:""}function za(e){const{image:n}=e;return n?n.imageTag?n.imageTag:`<picture>${ja(e)}</picture>`:""}function ja({image:e,size:n="thumb",lazy:t,alt:o,extension:a,priority:i,class:u,no2x:d,role:m,cdn:v}){if(!e||(typeof e=="string"&&(e={path:e}),!e.path))return"";const p=typeof n=="string"?{default:n}:n;a=(!a||a==="jpg")&&e.hasTransparency?"png":a;let y="";for(const g of tl){if(!p[g.name])continue;const b=p[g.name],w=typeof b=="string"?b:(b==null?void 0:b.name)||"thumb",M=typeof b=="string"||(b==null?void 0:b.no2x)===void 0?d:b.no2x,_=g.minWidth?` media="(min-width: ${g.minWidth}px)"`:"";a||(y+=`<source type="image/avif" srcset="${Gt(e.path,w,"avif",M,!1,v)}"${_}>`),g.name==="default"?y+=`<img decoding="async" srcset="${Gt(e.path,w,a,M,void 0,v)}"${t?' loading="lazy"':""} alt="${Co(o||(e==null?void 0:e.caption)||"")}"${_}${e!=null&&e.width?` width="${e.width}"`:""}${e!=null&&e.height?` height="${e.height}"`:""}${i?` fetchpriority="${i}"`:""}${u?` class="${u}"`:""}${m?` role="${m}"`:""}>`:y+=`<source srcset="${Gt(e.path,w,a,M,void 0,v)}"${_}>`}return y}function Qt(e,n,t,o){if(!e)return"";(typeof e=="string"||e instanceof String)&&(e={path:e}),typeof n=="string"&&(n={default:n});let a="";for(const i of tl){if(!n[i.name])continue;const u=n[i.name],d=i.minWidth?` media="(min-width: ${i.minWidth}px)"`:"",m=V.xxl||V.xxxl?u==="thumb"?1:2:void 0;V.xxl||V.xxxl?a+='<source type="image/avif" srcset="'+lt(e.path,u,m,"avif")+'"'+d+">":a+='<source type="image/avif" srcset="'+Gt(e.path,u,"avif")+'"'+d+">",i.name==="default"?V.xxl||V.xxxl?a+=`<img decoding="async" src="${lt(e.path,u,m)}
7"${t?' loading="lazy"':""} alt="${Co(o||e.caption||"")}"${d}${e.width?` width="${e.width}"`:""}${e.height?` height="${e.height}"`:""}>`:a+=`<img decoding="async" srcset="${Gt(e.path,u)}"${t?' loading="lazy"':""} alt="${Co(o||e.caption||"")}"${d}${e.width?` width="${e.width}"`:""}${e.height?` height="${e.height}"`:""}>`:V.xxl||V.xxxl?a+=`<source srcset="${lt(e.path,u,m)}"${d}>`:a+=`<source srcset="${Gt(e.path,u)}"${d}>`}return a}function Gt(e,n,t,o,a,i){return n==="original"||n==="animated-poster"||n==="thumb"||n==="search-mobile"||o?lt(e,n,1,t,n==="original"||n==="animated-poster"?!1:a,i):`${lt(e,n,1,t,a,i)} 1x, ${lt(e,n,2,t,a,i)} 2x`}new Date().getDate();function lt(e,n,t,o,a,i){if(!e)return"";e.startsWith("/")&&(e=e.substring(1));const u=[];t||(t=1),t>=2&&n==="search-large"&&(n="search"),n==="animated-poster"&&(a=!1);const d=a!==void 0?a:Na;if(u.push(n+(t!==1?`-${t}x`:"")+(d&&n!=="thumb"?"-p3":"")),o||(o="jpg"),o){const m=e.split(".");m.pop(),m.push(o),u.push(m.join("."))}else u.push(e);return i||((n==="poster"||n==="animated-poster"||n==="search"&&t>=2)&&(i="assets"),n==="thumb"&&(i="images"),ae.value&&(i="media")),`https://${i||"images"}.typographicposters.com/${u.join("/")}`}function bn(e,n){const t=e.lastIndexOf(".");return`${e.substr(0,t<0?e.length:t)}.${n}`}function At(e,n){return e?`${n?"https://www.typographicposters.com":""}/collections/${e.id}`:""}function nl(e,n){return e?e.userId?`${n?"https://www.typographicposters.com":""}/collections/user/${e.userId}`:At(e,n):""}function qa(){return"My collections on typo/graphic posters"}function Ya(e){if(!e)return"";let n=` 8 9`;return n+="Check out my collections typo/graphic posters:",n+=` 10${nl(e,!0)}`,n}function Ka(e){return!e||!e.icon?"":lt(e.icon,"poster",1,"jpg",!0)}function Ga(e){return e?`Poster collection â${e.name}â on typo/graphic posters`:""}function Za(e){if(!e)return"";let n=` 11 12`;return n+=`Check out this collection on typo/graphic posters: 13 14`,n+=e.name,n+=` 15${At(e,!0)}`,n}const le=(e,n)=>{const t=e.__vccOpts||e;for(const[o,a]of n)t[o]=a;return t},Wa={},Ja={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon share-icon"},Qa=s("path",{d:"M20.59 9.41 17 5.83V18h-2V5.83l-3.59 3.58L10 8l6-6 6 6-1.41 1.41z"},null,-1),Xa=s("path",{d:"M24 13h-3v2h3v11H8V15h3v-2H8c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V15c0-1.1-.9-2-2-2Z"},null,-1),ei=s("title",null,"Share",-1),ti=[Qa,Xa,ei];function ni(e,n){return l(),r("svg",Ja,ti)}const ol=le(Wa,[["render",ni]]);function oi(e,n){return new Intl.NumberFormat(n==="brl"?"pt-BR":"en-US",{style:"currency",currency:n}).format(e/100)}function fn(e,n){return e?(typeof e=="string"?e=new Date(e):typeof e=="number"&&(e=new Date(e*1e3)),new Intl.DateTimeFormat("en-GB",n||{dateStyle:"long",timeStyle:"long"}).format(new Date(e))):""}function so(e){return e?(e=String(e),e.startsWith("http")||(e=`http://${e}`),e):""}const si=["facebook","instagram","twitter","pinterest","linkedin"];function Qo(e){if(e=so(e),!e)return"";let n="";try{e=new URL(e),n=e.hostname.toLowerCase();for(const t of si)if(n.includes(t)){n=t;break}n.startsWith("www.")&&(n=n.slice(4))}catch{}return n}function Bn(e,n){return e?n&&e.id?`/${e.id}`:e.website?so(e.website):e.instagramUser?`https://www.instagram.com/${e.instagramUser}`:e.twitterUser?`https://twitter.com/${e.twitterUser}`:"":""}function lo(e,n){return`${n?"https://www.typographicposters.com":""}/${e.id}${e.linkYear?`?year=${e.linkYear}`:""}`}function li(e){if(!e)return"";let n="";switch(e.category){case"studio":n="studio profile";break;case"designer":break;default:e.category&&(n=e.category.replace("-"," "));break}return n}function sl(e){if(!e)return"";let n="";return e.category==="designer"?(n=de(n,e.year,"","* "),n=de(n,e.deceasedYear," ","â ")):e.endYear&&e.year?n=`est. ${e.year}â${e.endYear}`:n=de(n,e.year,"","established in "),n=de(n,e.formattedDate,"<br>"),n=de(n,ll(e)," / "),n=Jo(n,vt(e.directors),"<br>"),n}function ai(e){if(!e)return"";let n="";return e.category==="designer"?(n=de(n,e.year),n=de(n,e.deceasedYear,"","â")):e.endYear&&e.year?n=`est. ${e.year}â${e.endYear}`:n=de(n,e.year,"","est. "),n}function ll(e){if(!e)return"";if(e.cityCountry)return e.cityCountry;let n="";return n=de(n,e.city),n=de(n,Dt(e),", "),n}function ii(e){var o;if(!e)return"";let n="";const t=Array.isArray(e.websites)?e.websites.slice():[];
15e.instagramUser&&!e.instagramHidden&&t.push(`https://www.instagram.com/${e.instagramUser}`),e.twitterUser&&!e.twitterHidden&&t.push(`https://twitter.com/${e.twitterUser}`);for(let a of t){a=so(a);const i=Qo(a);try{a=new URL(a),n=de(n,i," / ",`<a href="${a.href}" rel="noopener" target="_blank">`,"</a>")}catch{}}return(o=e.typographicStore)!=null&&o.id&&(n=de(n,"typographic.store"," / ",`<a href="https://typographic.store/${e.typographicStore.id}" rel="noopener" target="_blank" class="profile-tg-store-link">`,"</a>")),n}function IL(e){if(e)switch(e.category){case"exhibition":return"Exhibition Profile";case"museum":return"Museum Profile";case"art-gallery":return"Gallery Profile";case"music-venue":return"Venue Profile";case"studio":return"Studio Profile"}return"Profile"}function BL(e,n){if(e)switch(e.category){case"designer":return n?"Date of Decease":"Birth Date";case"exhibition":return n?"Closing Date":"Opening Date";default:return n?"Closure Date":"Establishment Date"}return n?"End Date":"Start Date"}function EL(e,n){if(e)switch(e.category){case"designer":return n?"Year of Decease":"Birth Year";default:return n?"Closure Year":"Establishment Year"}return n?"End Year":"Start Year"}function al(e){return!e||!e.studioPicture?"":ft({path:e.studioPicture,width:800,height:494},{default:"studio-mobile",md:"studio"},!1,`design studio of ${e.name}, ${ll(e)}`)}function ri(e){return e!=null&&e.studioPicture?lt(e.studioPicture,"studio",2,"jpg",!0):""}function ui(e){return`${e.name} - typo/graphic posters`}function ci(e){if(!e)return"";let n=` 16 17`;return n+=e.name,n+=` 18${lo(e,!0)}`,n}function ao(e,n){return e?`${n?"https://www.typographicposters.com":""}/${e.profileId}/${e.id}`:""}function Xo(e,n){if(!e)return"";let t="";if(e.profileName&&!n&&(!e.profileCategory||e.profileCategory==="designer"||e.profileCategory==="studio")&&(t+=e.profileName),Array.isArray(e.authors))for(let o=0;o<e.authors.length;o++){const a=e.authors[o];a.name&&(t&&(t+=o===e.authors.length-1?" & ":", "),t+=a.name)}return t}function jn(e,n){var o,a;if(!e)return"";let t="";if(e.profileId==="kieler-woche"||!e.title&&((o=e.crosslinkFromValues)==null?void 0:o.id)==="kieler-woche"){if((a=e.awards)!=null&&a.find(i=>i.id==="kieler-woche")?t=de(t,"winner","",n?"<b>":"",n?"</b>":""):t=de(t,"proposal"),e.year===2021)return"adjusted design from 2020"}else t=de(t,e.title,"","â","â");return t=de(t,e.year,", "),t}function il(e,n,t){if(!e)return"";let o="";return["digital","not printed"].includes(e.printProcess)||(o=de(o,e.printProcess)),o=de(o,rl(e,n),", "),o=de(o,t?Va(e):Dt(e),n?` 19`:"<br>"),o}function VL(e){if(!e)return"";let n="";return n=de(n,e.year," "),n=de(n,Xo(e),e.year?", ":" ",""),n}function di(e,n){if(!e)return"";let t="";return["digital","not printed"].includes(e.printProcess)||(t=de(t,e.printProcess)),t=de(t,rl(e,!0,!0),", "),n||(t=Jo(t,Dt(e)," / ")),t}function ks(e,n){let t="";const o=String((e==null?void 0:e.profileCategory)||"designer");if(n)switch(o){case"exhibition":t="as seen on the ";break;case"designer":case"studio":t="with ";break;default:t="for ";break}return o==="education"?"":o==="competition"?"view more of":`${t}${o.replace("-"," ")}`}function rl(e,n,t){if(!e)return"";let o="";if(e.sizeW&&e.sizeH&&(o+=`${e.sizeW} à ${e.sizeH}${t?"":" mm"}`),e.size&&e.size!=="custom"){let a;switch(t?"none":e.size){case"f4":a="F4 Weltformat";break;case"f200":a="F200 Cityformat";break;case"f200l":a="F200L Cityformat";break;case"f12":a="F12 Billboard";break;case"clp":a="City Lights";break;case"2a0":a="Double A0";break;default:a=e.size.toUpperCase();break}o=de(o,a," ","(",")")}return!n&&o&&(o=`<span class="lining-numbers">${o}</span>`),o}function vi(e){if(!e)return"";let n="©";return n=de(n,e.year," "),n=de(n,Xo(e),e.year?", ":" ",""),n+=". all rights reserved.",n}function ul(e){if(!e)return"";const n=Xo(e);if(!n)return"";let t="";return t=de(t,e.title,"","â","â"),t=de(t,e.year,", "),t=de(t,n,", ","by "),e.profileCategory&&e.profileCategory!=="designer"&&e.profileCategory!=="studio"&&(t=de(t,e.profileName," ","for ")),t}function fi(e){var n,t,o;return e.filePath||(n=e.image)!=null&&n.path?e.filePath||((t=e.image)==null?void 0:t.path):`${e.profileId}/${e.fileName||((o=e.image)==null?void 0:o.fileName)}`}function yt(e,n,t,o){return e?(n||(n="poster"),Qt(e.image,n,!t,o?"":ul(e))):""}function pi(e){return e?lt(fi(e),"poster",1,"jpg",!0):""}function hi(e){return e?`${ul(e)} - typo/graphic posters`:""}function mi(e){if(!e)return"";let n=` 20 21${e.profileName} 22${jn(e)}`;return n=de(n,il(e,!0),` 23`),n+=` 24 25${ao(e,!0)}`,n}const dn=f(null),$s=L(()=>!!dn.value);function on({isOpen:e,popup:n,button:t,offsetParent:o,offsetParentPosition:a}){const i=f(0),u=f(!0),d=Math.floor(Math.random()*1e5),m=Ct(()=>{if(!n.value||u.value)return;const g=t.value.getBoundingClientRect(),b=g.left+g.width/2,w=n.value.offsetWidth/2,M=Math.ceil(b+w+8),_=Math.ceil(b-w-8);M>window.innerWidth?i.value=Math.ceil(window.innerWidth-M):_<0?i.value=_*-1:i.value=0,o&&(a.value==="bottom"?n.value.parentElement.style.top=`${g.bottom+window.scrollY}px`:n.value.parentElement.style.top=`${g.top+window.scrollY}px`,n.value.parentElement.style.left=`${b}px`)},100);Oe("resize",m),Oe(document.body,"click",()=>{e.value=!1,dn.value=null}),z(dn,()=>{dn.value!==d&&(e.value=!1)});const v=()=>{!o||!n.value||Le.to(n.value.parentElement,{duration:.24,opacity:0,y:8})},p=g=>{!o||!n.value||(g?Le.fromTo(n.value.parentElement,{opacity:0,y:8},{duration:.24,opacity:1,y:0}):Le.to(n.value.parentElement,{duration:.24,opacity:1,y:0}))},y=()=>{e.value?(Pe(m),p()):v()};return z(e,()=>{e.value&&(u.value=!1,dn.value=d),y()},{immediate:!0}),z(t,()=>{e.value?(Pe(m),p(!0)):v()}),{offset:i,neverOpened:u,refresh:y}}const gi={props:{title:{type:String,default:"Share on Instagram"}}},yi={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"social-icon instagram"},_i=s("circle",{cx:"22.406",cy:"9.594",r:"1.44"},null,-1),bi=s("path",{d:"M16 9.838A6.162 6.162 0 1022.162 16 6.162 6.162 0 0016 9.838zM16 20a4 4 0 114-4 4 4 0 01-4 4z"},null,-1),ki=s("path",{d:"M16 6.162c3.204 0 3.584.012 4.849.07a6.642 6.642 0 012.228.413 3.975 3.975 0 012.278 2.278 6.642 6.642 0 01.413 2.228c.058 1.265.07 1.645.07 4.85s-.012 3.583-.07 4.848a6.642 6.642 0 01-.413 2.228 3.975 3.975 0 01-2.278 2.278 6.642 6.642 0 01-2.228.413c-1.265.058-1.645.07-4.849.07s-3.584-.012-4.849-.07a6.642 6.642 0 01-2.228-.413 3.975 3.975 0 01-2.278-2.278 6.642 6.642 0 01-.413-2.228c-.058-1.265-.07-1.645-.07-4.849s.012-3.584.07-4.849a6.642 6.642 0 01.413-2.228 3.975 3.975 0 012.278-2.278 6.642 6.642 0 012.228-.413c1.265-.058 1.645-.07 4.849-.07M16 4c-3.259
250-3.668.014-4.948.072a8.807 8.807 0 00-2.912.558 6.136 6.136 0 00-3.51 3.51 8.807 8.807 0 00-.558 2.913C4.014 12.333 4 12.74 4 16s.014 3.668.072 4.948a8.807 8.807 0 00.558 2.912 6.136 6.136 0 003.51 3.51 8.807 8.807 0 002.913.558c1.28.058 1.688.072 4.947.072s3.668-.014 4.948-.072a8.807 8.807 0 002.913-.558 6.136 6.136 0 003.51-3.51 8.807 8.807 0 00.557-2.913C27.986 19.667 28 19.26 28 16s-.014-3.668-.072-4.948a8.807 8.807 0 00-.558-2.912 6.136 6.136 0 00-3.51-3.51 8.807 8.807 0 00-2.913-.557C19.667 4.013 19.26 4 16 4z"},null,-1);function $i(e,n,t,o,a,i){return l(),r("svg",yi,[_i,bi,ki,s("title",null,B(t.title),1)])}const qn=le(gi,[["render",$i]]),wi={props:{title:{type:String,default:"Share on Facebook"}}},Mi={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"social-icon"},Ti=s("path",{d:"M26.67 4H5.33A1.34 1.34 0 004 5.33v21.34A1.34 1.34 0 005.33 28h11.49v-9.28H13.7v-3.63h3.12v-2.67c0-3.1 1.89-4.79 4.67-4.79.93 0 1.86 0 2.79.14V11h-1.91c-1.51 0-1.8.72-1.8 1.77v2.31h3.6l-.47 3.63h-3.13V28h6.1A1.34 1.34 0 0028 26.67V5.33A1.34 1.34 0 0026.67 4z"},null,-1);function Li(e,n,t,o,a,i){return l(),r("svg",Mi,[Ti,s("title",null,B(t.title),1)])}const cl=le(wi,[["render",Li]]),Ci={props:{title:{type:String,default:"Share on Twitter"}}},Ai={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"social-icon twitter"},Si=s("path",{d:"M11.92 24.94A12.76 12.76 0 0024.76 12.1v-.59A9.4 9.4 0 0027 9.18a9.31 9.31 0 01-2.59.71 4.56 4.56 0 002-2.5 8.89 8.89 0 01-2.86 1.1 4.52 4.52 0 00-7.7 4.11 12.79 12.79 0 01-9.3-4.71 4.51 4.51 0 001.4 6 4.47 4.47 0 01-2-.56v.05a4.53 4.53 0 003.55 4.45 4.53 4.53 0 01-2 .08A4.51 4.51 0 0011.68 21a9.05 9.05 0 01-5.61 2A9.77 9.77 0 015 22.91a12.77 12.77 0 006.92 2"},null,-1);function xi(e,n,t,o,a,i){return l(),r("svg",Ai,[Si,s("title",null,B(t.title),1)])}const dl=le(Ci,[["render",xi]]),Pi={props:{title:{type:String,default:"Share on Pinterest"}}},Hi={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"social-icon"},Ii=s("path",{d:"M16 2a14 14 0 00-5.1 27 13.24 13.24 0 010-4l1.65-7a5.05 5.05 0 01-.38-2c0-1.94 1.13-3.4 2.53-3.4a1.76 1.76 0 011.77 2c0 1.2-.76 3-1.16 4.66a2 2 0 002.08 2.53c2.48 0 4.4-2.63 4.4-6.41a5.53 5.53 0 00-5.85-5.7 6.06 6.06 0 00-6.32 6.08 5.42 5.42 0 001 3.19.44.44 0 01.1.4c-.11.44-.35 1.4-.39 1.59s-.21.31-.47.19c-1.75-.82-2.84-3.37-2.84-5.43 0-4.41 3.21-8.47 9.25-8.47 4.85 0 8.63 3.46 8.63 8.09 0 4.82-3 8.7-7.27 8.7a3.76 3.76 0 01-3.21-1.6l-.87 3.33a15.55 15.55 0 01-1.74 3.67A14.17 14.17 0 0016 30a14 14 0 000-28"},null,-1);function Bi(e,n,t,o,a,i){return l(),r("svg",Hi,[Ii,s("title",null,B(t.title),1)])}const vl=le(Pi,[["render",Bi]]),Ei={props:{title:{type:String,default:"Share on Tumblr"}}},Vi={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"social-icon"},Oi=s("path",{d:"M22.6 28h-4c-3.59 0-6.3-1.86-6.3-6.3v-7.12H9v-3.86A7.17 7.17 0 0 0 14.3 4h3.76v6.12h4.36v4.46h-4.36v6.2c0 1.86.94 2.49 2.42 2.49h2.12Z"},null,-1);function Fi(e,n,t,o,a,i){return l(),r("svg",Vi,[Oi,s("title",null,B(t.title),1)])}const Di=le(Ei,[["render",Fi]]),Ni={props:{title:{type:String,default:"Send by Email"}}},Ui={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"social-icon"},Ri=s("path",{d:"M28 6H4a2 2 0 00-2 2v16a2 2 0 002 2h24a2 2 0 002-2V8a2 2 0 00-2-2zm-2.2 2L16 14.78 6.2 8zM4 24V8.91l11.43 7.91a1 1 0 001.14 0L28 8.91V24z"},null,-1);function zi(e,n,t,o,a,i){return l(),r("svg",Ui,[Ri,s("title",null,B(t.title),1)])}const ji=le(Ni,[["render",zi]]),qi={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon close-icon"},Yi=s("polygon",{points:"24 9.4 22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4"},null,-1),Ki=["innerHTML"],Xt={__name:"CloseIcon",props:{title:{type:String,default:"Close"}},setup(e){return(n,t)=>(l(),r("svg",qi,[Yi,s("title",{innerHTML:e.title},null,8,Ki)]))}},Gi={class:"copy-text"},Zi=["innerHTML"],Wi={class:"copy-message"}
25,Ji=["innerHTML"],Qi={key:1},Xi={__name:"CopyText",props:{text:String,label:{type:String,default:"copy"},escapeText:Boolean},setup(e){const n=e,t=!!(navigator!=null&&navigator.clipboard),o=f(!1),a=L(()=>o.value?"copied!":n.label);let i=null;const u=async()=>{try{const d="text/plain",m=new Blob([n.text.replace("<br>","\r")],{type:d}),v=[new ClipboardItem({[d]:m})];await navigator.clipboard.write(v),o.value=!0,i&&clearTimeout(i),i=setTimeout(()=>{o.value=!1},2e3)}catch{}};return(d,m)=>(l(),r("div",Gi,[t?(l(),r("button",{key:0,class:x(["copy-button",{success:o.value}]),type:"button",onClick:u,innerHTML:a.value},null,10,Zi)):h("",!0),s("h6",Wi,[e.escapeText?(l(),r("span",Qi,B(e.text),1)):(l(),r("span",{key:0,innerHTML:e.text},null,8,Ji))])]))}},er={props:{title:{type:String,default:"Copy Link"}}},tr={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"social-icon"},nr=s("path",{d:"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"},null,-1),or=s("path",{d:"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"},null,-1);function sr(e,n,t,o,a,i){return l(),r("svg",tr,[nr,or,s("title",null,B(t.title),1)])}const lr=le(er,[["render",sr]]),ar=["href"],ir={class:"popup-icon animated"},rr={__name:"ShareCopyLink",props:{url:String},setup(e){const n=e,t=!!(navigator!=null&&navigator.clipboard),o=f(!1),a=L(()=>o.value?"copied!":"copy link");let i=null;const u=async d=>{if(Jt(d),!t){We.push(n.url);return}try{const m="text/plain",v=new Blob([n.url],{type:m}),p=[new ClipboardItem({[m]:v})];await navigator.clipboard.write(p),o.value=!0,i&&clearTimeout(i),i=setTimeout(()=>{o.value=!1},2e3)}catch{}};return(d,m)=>(l(),r("a",{href:e.url,onClick:U(u,["stop"])},[s("button",{type:"button",class:x(["popup-pill",{green:o.value}])},[s("div",ir,[k(lr)]),N(" "+B(a.value),1)],2)],8,ar))}},ws={ShareIcon:ol,ShareInstagram:qn,ShareFacebook:cl,ShareTwitter:dl,SharePinterest:vl,ShareTumblr:Di,ShareEmail:ji,CopyText:Xi,ShareCopyLink:rr,CloseIcon:Xt},te=f(null),En=f(null),es=f("top"),So=f(null),io=f(!1),ro=f(!1),ts=f(null),fl=f(null),Lt=f(null),It=f(""),Be=f(null),Ke=f(null),vn=f(""),Te="https://images.typographicposters.com",{offset:ur,refresh:ns}=on({isOpen:ro,popup:ts,button:fl,offsetParent:!0,offsetParentPosition:es});function cr(e){En.value=e.intent,es.value=e.position||"top",So.value=c(e.scrollTarget),fl.value=c(e.button),te.value=c(e.item),ro.value=!0,io.value=!1,ns()}function dr(){ro.value=!1}function vr(){io.value=!1,ns()}function fr(e,n){e.stopPropagation(),n==="Instagram"&&(e.preventDefault(),io.value=!0,$e&&(So.value?Le.to(So.value,{duration:.42,scrollTo:{y:0}}):Le.to(window,{duration:.42,scrollTo:{y:ts.value,offsetY:98}})),ns())}z(te,()=>{var d,m,v,p;if(Lt.value=[],It.value="",Be.value=[],Ke.value=[],vn.value="",!te.value)return;let e="",n="",t="";switch(En.value){case"poster":It.value=ao(te.value,!0),e=hi(te.value),n=pi(te.value),t=mi(te.value);break;case"profile":It.value=lo(te.value,!0),e=ui(te.value),n=ri(te.value),t=ci(te.value);break;case"collection":It.value=At(te.value,!0),e=Ga(te.value),n=Ka(te.value),t=Za(te.value);break;case"my-collections":It.value=nl(te.value,!0),e=qa(),n=null,t=Ya(te.value);break}const o=encodeURIComponent(It.value);let a=[].concat(te.value.tags,te.value.profileId,"typographic","poster","typography");if(a=a.filter(y=>y),a=a.map(y=>String(y).toLowerCase().replaceAll("-","").replaceAll(" ","")),a=[...new Set(a
25)],En.value==="profile")Be.value.push(`${Te}/instagram-grid-white-p3/${te.value.id}.jpg`),Be.value.push(`${Te}/instagram-grid-gray-p3/${te.value.id}.jpg`),Be.value.push(`${Te}/instagram-grid-dark-p3/${te.value.id}.jpg`),Be.value.push(`${Te}/instagram-grid-black-p3/${te.value.id}.jpg`),Ke.value.push(`${Te}/instagram-story-grid-white-p3/${te.value.id}.jpg`),Ke.value.push(`${Te}/instagram-story-grid-gray-p3/${te.value.id}.jpg`),Ke.value.push(`${Te}/instagram-story-grid-dark-p3/${te.value.id}.jpg`),Ke.value.push(`${Te}/instagram-story-grid-black-p3/${te.value.id}.jpg`);else if(En.value==="poster"){if(Be.value.push(`${Te}/instagram-white-p3/${te.value.id}.jpg`),Be.value.push(`${Te}/instagram-gray-p3/${te.value.id}.jpg`),Be.value.push(`${Te}/instagram-dark-p3/${te.value.id}.jpg`),Be.value.push(`${Te}/instagram-black-p3/${te.value.id}.jpg`),(d=te.value.series)!=null&&d.length)for(let y=1;y<=Math.min(te.value.series.length,7);y++)Be.value.push(`${Te}/instagram-white-p3/${te.value.id}-series${y}.jpg`),Be.value.push(`${Te}/instagram-gray-p3/${te.value.id}-series${y}.jpg`),Be.value.push(`${Te}/instagram-dark-p3/${te.value.id}-series${y}.jpg`),Be.value.push(`${Te}/instagram-black-p3/${te.value.id}-series${y}.jpg`);if(Ke.value.push(`${Te}/instagram-story-white-p3/${te.value.id}.jpg`),Ke.value.push(`${Te}/instagram-story-gray-p3/${te.value.id}.jpg`),Ke.value.push(`${Te}/instagram-story-dark-p3/${te.value.id}.jpg`),Ke.value.push(`${Te}/instagram-story-black-p3/${te.value.id}.jpg`),(m=te.value.series)!=null&&m.length)for(let y=1;y<=Math.min(te.value.series.length,7);y++)Ke.value.push(`${Te}/instagram-story-white-p3/${te.value.id}-series${y}.jpg`),Ke.value.push(`${Te}/instagram-story-gray-p3/${te.value.id}-series${y}.jpg`),Ke.value.push(`${Te}/instagram-story-dark-p3/${te.value.id}-series${y}.jpg`),Ke.value.push(`${Te}/instagram-story-black-p3/${te.value.id}-series${y}.jpg`)}te.value.instagramUser&&(vn.value=`by @${te.value.instagramUser}`),vn.value=de(vn.value,"Visit the entire collection at @typographicposters","<br>"),(v=Be.value)!=null&&v[0]&&Lt.value.push({key:"Instagram",isExternal:!0,href:Be.value[0]});let i=`https://www.pinterest.com/pin/create/button/?url=${o}`;n&&(i+=`&media=${encodeURIComponent(n)}`),e&&(i+=`&description=${encodeURIComponent(e)}`),Lt.value.push({key:"Pinterest",isExternal:!0,href:i});let u=`https://twitter.com/intent/tweet?url=${o}&lang=en&via=tgposters`;if(a.length&&(u+=`&hashtags=${encodeURIComponent(a.join(","))}`),e&&(u+=`&text=${encodeURIComponent(e)}`,te.value.twitterUser&&(u+=encodeURIComponent(` @${te.value.twitterUser}`))),Lt.value.push({key:"Twitter",isExternal:!0,href:u}),(p=Be.value)!=null&&p[1]){let y=`https://www.tumblr.com/widgets/share/tool?shareSource=legacy&canonicalUrl=${o}`;y+=`&posttype=photo&content=${encodeURIComponent(Be.value[1])}`,e&&(y+=`&caption=${encodeURIComponent(e)}`),y+=`&tags=${encodeURIComponent(a.join(","))}`,Lt.value.push({key:"Tumblr",isExternal:!0,href:y})}Lt.value.push({key:"Facebook",isExternal:!0,href:`https://www.facebook.com/sharer/sharer.php?u=${o}`}),Lt.value.push({key:"Email",href:`mailto:?subject=${e}&body=${encodeURIComponent(t)}`})});const pr={components:ws,setup(){return z(rn,dr),{pills:Lt,url:It,instagramPosts:Be,instagramStories:Ke,instagramMessage:vn,popup:ts,offset:ur,position:es,isOpen:ro,click:fr,isActiveInstagram:io,closeIntagram:vr,components:ws,isTouch:$e}}},hr=["href","target","onClick"],mr={type:"button",class:"popup-pill"},gr={class:"popup-icon animated"},yr={key:0,class:"instagram-share"},_r={class:"no-spacingf"},br=s("small",null,"Square post (1:1)",-1),kr=["src"],$r={key:0},wr=["src"],Mr=s("small",{class:"no-spacing padding-bottom-1"}," also please add this credits: ",-1);function Tr(e,n,t,o,a,i){const u=he("ShareCopyLink"),d=he("CloseIcon"),m=he("CopyText");return l(),r("div",{class:"share-popup-wrap",onClick:n[1]||(n[1]=U(()=>{},["stop","prevent"]))},[s("div",{ref:"popup",class:x(["popup flex share-popup",[o.position,{open:o.isOpen}]]),style:we({"--offset":`${o.offset}px`})},[(l(!0),r(Q,null,oe(o.pills,v=>ne((l(),r("a",{key:v.key,href:v.href,target:v.isExternal?"_blank":"_self",rel:"noopener",onClick:p=>o.click(p,v.key)},[s("button",mr,[s("div",gr,[(l(),P($n(o.components[`Share${v.key}`])))]),N(" "+B(v.key),1)])],8,hr)),[[se,!o.isActiveInstagram]])),128)),ne(k(u,{url:o.url},null,8,["url"]),[[se,!o.isActiveInstagram]]),o.isActiveInstagram?(l(),r("div",yr,[s("button",{type:"button",class:"close-button",onClick:n[0]||(n[0]=U((...v)=>o.closeIntagram&&o.closeIntagram(...v),["stop"]))},[k(d)]),s("p",_r," To share, save "+B(o.instagramPosts.length>1?"any of these images":"this image")+" to your "+B(o.isTouch?"device":"computer")+", then publish on Instagram. ",1),br,s("div",{class:x(["images",{single:o.instagramPosts.length<=2}])},[(l(!0),r(Q,null,oe(o.instagramPosts,v=>(l(),r("img",{key:v,src:v},null,8,kr))),128))],2),o.instagramStories.length?(l(),r("small",$r,"Instagram Story (16:9)")):h("",!0),o.instagramStories.length?(l(),r("div",{key:1,class:x(["images",{single:o.instagramStories.length<=2,several:o.instagramStories.length>4}])},[(l(!0),r(Q,null,oe(o.instagramStories,v=>(l(),r("img",{key:v,src:v},null,8,wr))),128))],2)):h("",!0),Mr,k(m,{text:o.instagramMessage},null,8,["text"])])):h("",!0)],6)])}const Lr=le(pr,[["render",Tr]]),Nt={__name:"ShareButton",props:{item:Object,intent:String,position:String,iconOnly:Boolean,scrollTarget:null},setup(e){const n=f(null);return(t,o)=>(l(),r("div",{ref_key:"button",ref:n,class:"share-button color-link",onClick:o[0]||(o[0]=U(a=>c(cr)({item:e.item,intent:e.intent,position:e.position,scrollTarget:e.scrollTarget,button:n.value}),["stop","prevent"]))},[N(B(e.iconOnly?"":"Share"),1),k(ol)],512))}},cn=f(null),pn=f(null),xo=f(null);let _o=null,Ms=null;function pl(){Et.value?(!cn.value||Ms!==Et.value)&&(Ms=Et.value,cn.value=Lo("MG8QIS8HDX",Et.value),pn.value=cn.value.initIndex("posters"),xo.value=cn.value.initIndex("profiles")):(_o||(_o=Lo("MG8QIS8HDX","832c2cdfc2c58375ac695a7fb7204978").initIndex("profiles")),cn.value=null,pn.value=null,xo.value=_o)}z(Et,pl);const ie=Ds("view",{size:"medium",sizeProfiles:"medium",sizeProfilesPhotos:"medium",sizeCollections:"medium",animated:"click",
25searchMode:"semantic"});function Cr(){ie.value.size=ie.value.size==="small"?"medium":ie.value.size==="medium"?"large":"small"}function Ar(){ie.value.sizeProfiles=ie.value.sizeProfiles==="small"?"medium":ie.value.sizeProfiles==="medium"?"large":"small"}function Sr(){ie.value.sizeProfilesPhotos=ie.value.sizeProfilesPhotos==="small"?"medium":ie.value.sizeProfilesPhotos==="medium"?"large":"small"}function xr(){ie.value.sizeCollections=ie.value.sizeCollections==="small"?"medium":ie.value.sizeCollections==="medium"?"large":"small"}function Ts(){ie.value.animated=ie.value.animated==="always"?"click":"always"}const Pr=L(()=>ie.value.animated==="click"?"only on click":ie.value.animated);function uo({intent:e,features:n,items:t,total:o,appendTarget:a,tagChoices:i,activeTags:u,defaultMessage:d,layout:m,forceSortOrder:v}){var wt,zt,Ie,it,rt,pe,tt,Mt;pl();let p=null,y=null;n||(n={}),n.q&&(p=In("q"),y=f(p.value||""));let g=null,b=null,w=null;if(n.tags){const ye=n.tagsKey||"tags",Ae=n.tagsAllowMultiple!==void 0?!!n.tagsAllowMultiple:!0;w=In(ye),g=f(w.value?`${w.value}`.split(","):[]),i=i||[],b=me=>{const j=g.value.indexOf(me);Ae?j>=0?g.value.splice(j,1):g.value.push(me):(g.value=[],j===-1&&g.value.push(me))},yn(()=>{w.value=g.value.length?g.value.join(","):void 0})}let M=null,_=null,T=null,C=null;n.colors&&(C=In("color"),M=f(C.value?String(C.value).split(","):[]),_=ye=>{const Ae=M.value.indexOf(ye);Ae>=0?M.value.splice(Ae,1):M.value.push(ye)},T=(ye,Ae)=>{M.value.length>ye&&(M.value[ye]=Ae)},yn(()=>{C.value=M.value.length?M.value.join(","):void 0}));const $=f(!1),A=L(()=>!Ne.value&&!Ft.value&&!["profiles","profile-posters"].includes(e)||!ae.value?!1:!!(n.q&&(y!=null&&y.value)||n.filters&&u.value.length||n.tags&&g.value.length||n.colors&&M.value.length)),H=L(()=>
25{if(v!=null&&v.value)return 999;if(e==="profiles")return 1e3;if(e==="collections")return 12;let ye=ie.value.size;return e==="profile-posters"&&(ye=ie.value.sizeProfiles),V.xxxl?ye==="large"?32:ye==="small"?42:30:V.md||V.mobile||ye==="large"?24:ye==="small"?30:32}),R=ta([]);!A.value&&t&&(R.value=t),R.value.length&&R.value.length>H.value&&(R.value=R.value.slice(0,H.value));const W=f(+o),q=f(0),G=L(()=>q.value*H.value),ve=L(()=>W.value?Math.floor(W.value/H.value):0),F=L(()=>q.value<ve.value),D=(Ie=(zt=(wt=ue.value)==null?void 0:wt.stats)==null?void 0:zt.profilesCount)==null?void 0:Ie.toLocaleString(),I=(pe=(rt=(it=ue.value)==null?void 0:it.stats)==null?void 0:rt.postersCount)==null?void 0:pe.toLocaleString(),E=(Mt=(tt=ue.value)==null?void 0:tt.stats)==null?void 0:Mt.countriesCount,X=L(()=>{var ye,Ae,me;if($.value)return"searching...";if(e==="profiles"){if(A.value)return(m==null?void 0:m.value)==="photos"?W.value===1?"1 profile with studio photo found":W.value>1?!y.value&&u.value.length===1?`${W.value} profiles with studio photos`:`${W.value} profiles with studio photos found`:"No profiles with studio photos found":W.value===1?"1 profile found":W.value>1?`${W.value} profiles found`:"No profiles found";if(d)return d;if(D&&E)return`${D} profiles from ${E} different countries`}if(e==="collections")return d||"listing all public collections ordered by last update";if(A.value){const j=(ye=u==null?void 0:u.value)!=null&&ye.length?u.value.map(ke=>ke.label).join(" + "):"",Y=(Ae=M==null?void 0:M.value)!=null&&Ae.length?M.value.map(ke=>`<div class="color-label" style="background-color: #${ke}"></div>`).join(" + "):"",O=[y.value?`â${y.value}
25â`:"",j,Y].filter(Boolean).join(" + ");return((me=M==null?void 0:M.value)==null?void 0:me.length)&&W.value>=1e3?e==="posters"&&ie.value.searchMode==="semantic"?`1000+ posters most relevant to ${O}`:`1000+ posters matched ${O}`:W.value>1?e==="posters"&&ie.value.searchMode==="semantic"?`${W.value} posters most relevant to ${O}`:`${W.value} posters matched ${O}`:W.value===1?`1 poster matched ${O}`:`No posters matched ${O}`}return d||(I&&E?`${I} posters from ${E} different countries`:"")}),ee=f(""),Z=L(()=>ee.value?'<span style="color: red;">'+ee.value+"</span>":X.value),ge=L(()=>"");let Ce=null;y&&z(y,()=>{Ce&&clearTimeout(Ce),Ce=setTimeout(()=>{p.value=y.value||void 0,He()},ie.value.searchMode==="semantic"?500:300)});let ze=0,Xe=null;const Me=f(null);async function He(ye){var j,Y;$.value=!0,ee.value="",!Ne.value&&e!=="profiles"&&await qe(),ye?q.value++:(q.value=0,ze=0);const Ae=`${y==null?void 0:y.value}_${Math.floor(Math.random()*1e7)}`;Me.value=Ae,_t.value=null;let me;try{me=await Xe(Ae)}catch(O){ee.value=((j=O==null?void 0:O.data)==null?void 0:j.message)|(O==null?void 0:O.message)||"An error occurred while searching"}if(!(Ae!==Me.value&&!ye)){if(_t.value=(me==null?void 0:me.queryID)||null,(Y=me==null?void 0:me.hits)!=null&&Y.length){if(me.hits=me.hits.map(O=>(O.objectID&&(O.id=O.objectID),O.position=++ze,O)),ye)if(me.hits=me.hits.filter(O=>!R.value.find(ce=>ce.id===O.id)),a)if(me.hits=me.hits.filter(O=>!a.value.find(ce=>ce.id===O.id)),R.value.length<H.value){const O=H.value-R.value.length,ce=me.hits.slice(0,O),ke=me.hits.slice(O);R.value=R.value.concat(ce),a.value=a.value.concat(ke)}else a.value=a.value.concat(me.hits);else R.value=R.value.concat(me.hits);else R.value=me.hits,a&&(a.value=[]);W.value=me.total||me.nbHits}else ye||pt();$.value=!1}}const pt=()=>{R.value=[],a&&(a.value=[]),q.value=0,W.value=0},$t=()=>{y&&(y.value="",p.value=void 0),M&&(M.value=[],C.value=void 0),g&&(g.value=[],w.value=void 0),u&&(u.value=[])},at=()=>{He(!0)},Pt=()=>{!$.value&&F.value&&at()};async function Ht(ye){for(;F.value&&!ye(R.value);)await He(!0)}const ht=ye=>{var Ae,me,j;Xe=ye,(!R.value.length||y!=null&&y.value||(Ae=M==null?void 0:M.value)!=null&&Ae.length||(me=g==null?void 0:g.value)!=null&&me.length||(j=u==null?void 0:u.value)!=null&&j.length)&&(pt(),He()),M&&z([M,M.value],()=>{He()}),g&&z([g,g.value],()=>{He()}),u&&z(u,()=>{He()})};if(!ae.value){const ye=z(ae,()=>{ae.value&&(He(),ye())})}return{q:y,tags:g,tagChoices:i,setTag:b,colors:M,setColor:_,changeColor:T,currentItems:R,currentPage:q,itemsPerPage:H,skip:G,loadMore:at,tryToLoadMore:Pt,hasMorePages:F,loadAllUntil:Ht,message:Z,caption:ge,isSearching:A,isLoading:$,setSearchHandler:ht,targetRequestId:Me,search:He,resetSearch:$t}}let Pn=!1;async function Hr(){var e;return ct?Pn||(await qe(),(e=S.value)!=null&&e.aky&&(Us("init",{appId:"MG8QIS8HDX",apiKey:S.value.aky}),Pn=!0),Pn):!1}async function Ir(e,n,t,o){let a="Poster Clicked";t?a=`Profile;${a}`:o&&(a=`Collection;${a}`),await co({event:"click",target:"posters",posterId:e,profileId:t,collectionId:o,algoliaIndex:"posters",eventName:a,position:n})}async function Br(e,n,t){await co({event:"collect",target:"posters",posterId:n,collectionId:e,algoliaIndex:"posters",eventName:"Poster Collected",position:t})}async function Er(e,n,t){await co({event:"like",target:e,posterId:e==="posters"?n:null,profileId:e==="profiles"?n:null,algoliaIndex:e,eventName:"Like",position:t})}async function Po(e,n){await co({event:"click",target:"profiles",profileId:e,algoliaIndex:"profiles",eventName:"Profile Clicked",position:n})}async function co(e){var t;if(!(!await Hr()||!((t=S.value)!=null&&t.id)||!Re.value)&&["posters","profiles"].includes(e.algoliaIndex)&&e.eventName){const o=e.algoliaIndex==="posters"?e.posterId:e.profileId,a={userToken:S.value.id,index:e.algoliaIndex,eventName:e.eventName,objectIDs:[o]};let i;switch(e.event){case"view":i="viewedObjectIDs";break;case"click":i="clickedObjectIDs",e.position&&_t.value&&(a.queryID=_t.value,a.positions=[e.position],i="clickedObjectIDsAfterSearch");break;
25case"collect":case"like":i="convertedObjectIDs",_t.value&&(a.queryID=_t.value,i="convertedObjectIDsAfterSearch");break}i&&o&&Us(i,a)}}const Vr={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon like-icon"},Or=s("path",{d:"M22.45 6a5.47 5.47 0 0 1 3.91 1.64 5.7 5.7 0 0 1 0 8L16 26.13 5.64 15.64a5.7 5.7 0 0 1 0-8 5.48 5.48 0 0 1 7.82 0l2.54 2.6 2.53-2.58A5.44 5.44 0 0 1 22.45 6m0-2a7.47 7.47 0 0 0-5.34 2.24L16 7.36l-1.11-1.12a7.49 7.49 0 0 0-10.68 0 7.72 7.72 0 0 0 0 10.82L16 29l11.79-11.94a7.72 7.72 0 0 0 0-10.82A7.49 7.49 0 0 0 22.45 4Z"},null,-1),Fr=["innerHTML"],Ot={__name:"LikeIcon",props:{title:{type:String,default:"Click to Like"}},setup(e){return(n,t)=>(l(),r("svg",Vr,[Or,e.title?(l(),r("title",{key:0,innerHTML:e.title},null,8,Fr)):h("",!0)]))}},Dr={},Nr={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon"},Ur=s("path",{d:"M22.5 4c-2 0-3.9.8-5.3 2.2L16 7.4l-1.1-1.1c-2.9-3-7.7-3-10.6-.1l-.1.1c-3 3-3 7.8 0 10.8L16 29l11.8-11.9c3-3 3-7.8 0-10.8C26.4 4.8 24.5 4 22.5 4z"},null,-1),Rr=s("title",null,"You liked!",-1),zr=[Ur,Rr];function jr(e,n){return l(),r("svg",Nr,zr)}const Ls=le(Dr,[["render",jr]]),qr={type:"button",class:"tag no-spacing"},Yr=["innerHTML"],wn={__name:"Like",props:{target:String,id:String,posterPosition:Number,pill:Boolean,textAndIcon:Boolean},setup(e){const n=e,t=L(()=>{var d,m;return!ae.value||!((m=(d=S.value)==null?void 0:d.likes)!=null&&m[n.target])?!1:S.value.likes[n.target].indexOf(n.id)!==-1}),o=f(!1),a=f("");async function i(){if(!o.value){if(!ae.value){De();return}a.value="",o.value=!0;try{if(await _e.userLikeToggle({target:n.target,id:n.id,fromSearch:!!_t.value}))t.value||(S.value.likes[n.target]||(S.value.likes[n.target]=[]),S.value.likes[n.target].unshift(n.id),Er(n.target,n.id,n.posterPosition));else if(t.value){const d=S.value.likes[n.target].indexOf(n.id);S.value.likes[n.target].splice(d,1)}}catch(u){a.value=je(u)}o.value=!1}}return(u,d)=>(l(),r("div",{class:x(["like",{disabled:c(ae)&&!c(S),loading:o.value,"toggle-active":t.value}])},[e.textAndIcon?(l(),r("div",{key:0,class:"toggle-like-pill color-link",onClick:U(i,["stop","prevent"])},[N(B(o.value?"wait":t.value?"liked":"like")+" ",1),ne(k(Ot,null,null,512),[[se,!t.value]]),ne(k(Ls,null,null,512),[[se,t.value]])])):e.pill?(l(),r("div",{key:2,class:"toggle-like-pill color-link",onClick:U(i,["stop","prevent"])},[ne(s("div",null,[N(" Like "),k(Ot)],512),[[se,!t.value]]),ne(s("button",qr," Liked ",512),[[se,t.value]])])):(l(),r("div",{key:1,class:"toggle-like",onClick:U(i,["stop","prevent"])},[ne(k(Ot,null,null,512),[[se,!t.value]]),ne(k(Ls,null,null,512),[[se,t.value]])])),a.value?(l(),r("small",{key:3,innerHTML:a.value},null,8,Yr)):h("",!0)],2))}},Kr={},Gr={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon"},Zr=s("polygon",{points:"26,20 24,20 24,24 20,24 20,26 24,26 24,30 26,30 26,26 30,26 30,24 26,24"},null,-1),Wr=s("path",{d:"M28,8H16l-3.4-3.4C12.2,4.2,11.7,4,11.2,4H4C2.9,4,2,4.9,2,6v20c0,1.1,0.9,2,2,2h14v-2H4V6h7.2l3.4,3.4l0.6,0.6H28v8h2v-8 C30,8.9,29.1,8,28,8z"},null,-1),Jr=s("title",null,"Add to your Collection",-1),Qr=[Zr,Wr,Jr];function Xr(e,n){return l(),r("svg",Gr,Qr)}const Cs=le(Kr,[["render",Xr]]),eu={},tu={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon"},nu=s("path",{d:"M11.2 4H4c-1.1 0-2 .9-2 2v20c0 1.1.9 2 2 2h24c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2H16l-3.4-3.4c-.4-.4-.9-.6-1.4-.6z"},null,-1),ou=s("title",null,"Already on your collection",-1),su=[nu,ou];function lu(e,n){return l(),r("svg",tu,su)}const au=le(eu,[["render",lu]]),iu={},ru={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon"},uu=s("path",{d:"M30.94 15.66A16.69 16.69 0 0 0 16 5 16.69 16.69 0 0 0 1.06 15.66a1 1 0 0 0 0 .68A16.69 16.69 0 0 0 16 27a16.69 16.69 0 0 0 14.94-10.66 1 1 0 0 0 0-.68ZM16 25c-5.3 0-10.9-3.93-12.93-9C5.1 10.93 10.7 7 16 7s10.9 3.93 12.93 9C26.9 21.07 21.3 25 16 25Z"},null,-1),cu=s("path",{d:"M16 10a6 6 0 1 0 6 6 6 6 0 0 0-6-6Zm0 10a4 4 0 1 1 4-4 4 4 0 0 1-4 4Z"},null,-1),du=[uu,cu];function vu(e,n){return l(),r("svg",ru,du)}const fu=le(iu,[["render",vu]]),pu={},hu={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon"},mu=s("path",{d:"m5.24 22.51 1.43-1.42A14.06 14.06 0 0 1 3.07 16C5.1 10.93 10.7 7 16 7a12.38 12.38 0 0 1 4 .72l1.55-1.56A14.72 14.72 0 0 0 16 5 16.69 16.69 0 0 0 1.06 15.66a1 1 0 0 0 0 .68 16 16 0 0 0 4.18 6.17Z"},null,-1),gu=s("path",{d:"M12 15.73a4 4 0 0 1 3.7-3.7l1.81-1.82a6 6 0 0 0-7.33 7.33ZM30.94 15.66a16.4 16.4 0 0 0-5.74-7.44L30 3.41 28.59 2 2 28.59 3.41 30l5.1-5.1A15.29 15.29 0 0 0 16 27a16.69 16.69 0 0 0 14.94-10.66 1 1 0 0 0 0-.68ZM20 16a4 4 0 0 1-6 3.44L19.44 14a4 4 0 0 1 .56 2Zm-4 9a13.05 13.05 0 0 1-6-1.58l2.54-2.54a6 6 0 0 0 8.35-8.35l2.87-2.87A14.54 14.54 0 0 1 28.93 16C26.9 21.07 21.3 25 16 25Z"},null,-1),yu=[mu,gu];function _u(e,n){return l(),r("svg",hu,yu)}const bu=le(pu,[["render",_u]]),Yn=f(!1),bo=f(null),ku=f([]);let As=!1;async function OL(e){if(!As)try{ku.value=await _e.profileAwardsList({profileId:e}),As=!0}catch{}}const $u=f([]);let Ss=!1;async function FL(e){if(!Ss)try{$u.value=await _e.profileAuthorsList({profileId:e}),Ss=!0}catch{}}function sn({props:e,emit:n,valueIn:t,valueOut:o,watchValue:a,isEmpty:i}){t||(t=w=>w),o||(o=w=>w),i||(i=L(()=>Array.isArray(u.value)&&u.value.length===0?!0:!u.value));const u=L(()=>t(Dn(e.modelValue))),d=`${e.name}_${e.type}_${Math.floor(Math.random()*1e5)}`,m=L(()=>e.label+(e.tooltip?` <span class="hint--${e.tooltipPosition} hint--${e.tooltipSize}" aria-label="${e.tooltip}">(info)</span>`:"")+(e.required&&e.requiredLabel&&i.value?'<span class="form-required"> required</span>':"")+(e.errorMessage?` <span class="form-error-message">${e.errorMessage}</span>`:""));e.defaultValue!==""&&e.defaultValue!==void 0&&(e.modelValue===null||e.modelValue===void 0||e.modelValue==="")&&v(e.defaultValue);const v=w=>{n("update:modelValue",o(Dn(w)))},p=w=>{v(w.target.value)},y=w=>{Yn.value=!1,n("blur",w.target)},g=w=>{Yn.value=!0};a&&z(u,a);const b=f(null);return e.focusOnMounted&&!$e&&be(()=>{setTimeout(()=>{b.value&&b.value.focus()},200)}),{uniqueId:d,labelComputed:m,value:u,update:v,onInput:p,onBlur:y,onFocus:g,isEmpty:i,input:b}}const vo={inheritAttrs:!1,emits:os(),props:ss()};function os(){return["update:modelValue","blur"]}function ss(){return{classes:{type:String,default:""},modelValue:{type:null,required:!0},defaultValue:{type:null,default:""},type:{type:String,default:"text"},name:{type:String,default:""},label:{type:String,default:""},instructions:{type:String,default:""},tooltip:{type:String,default:""},tooltipPosition:{type:String,default:"top"},tooltipSize:{type:String,default:"medium"},required:Boolean,requiredLabel:{type:Boolean,default:!0},autocomplete:{type:String,default:""},disabled:Boolean,maxlength:{type:Number,default:null},prepend:{type:String,default:""},append:{type:String,default:""},placeholder:{type:String,default:""},errorField:{type:String,default:""},errorMessage:{type:String,default:""},focusOnMounted:Boolean,canHide:Boolean,hide:Boolean}}const wu=["for","innerHTML"],Mu=["innerHTML"],Tu={class:"field-input-row"},Lu=["innerHTML"],Cu=["id","value","name","type","required","disabled","autocomplete","placeholder","maxlength"],Au=["aria-label"],Su={class:"icons"},Se={__name:"TextField",props:{...ss(),useHidden:Boolean,hidden:Boolean}
25,emits:os().concat("update:hidden"),setup(e,{emit:n}){const t=e,o=n,{uniqueId:a,labelComputed:i,value:u,onInput:d,onBlur:m,onFocus:v,input:p}=sn({props:t,emit:o});function y(){o("update:hidden",!t.hidden)}return(g,b)=>(l(),r("div",{class:x(["field text-field",{active:!!g.modelValue,error:g.errorField&&g.errorField===g.name,"with-instructions":!!g.instructions,"can-hide":g.canHide,hide:g.hide}])},[c(i)?(l(),r("label",{key:0,for:c(a),innerHTML:c(i)},null,8,wu)):h("",!0),g.instructions?(l(),r("h6",{key:1,class:"instructions",innerHTML:g.instructions},null,8,Mu)):h("",!0),s("div",Tu,[g.prepend?(l(),r("div",{key:0,class:"field-input-prepend",innerHTML:g.prepend},null,8,Lu)):h("",!0),na(g.$slots,"prepend"),s("input",{id:c(a),ref_key:"input",ref:p,value:c(u),name:g.name,class:"field-input",type:g.type?g.type:"text",required:g.required,disabled:g.disabled?g.disabled:null,autocomplete:g.autocomplete?g.autocomplete:null,autocorrect:"off",spellcheck:"false",placeholder:g.placeholder,maxlength:g.maxlength||null,onInput:b[0]||(b[0]=(...w)=>c(d)&&c(d)(...w)),onBlur:b[1]||(b[1]=(...w)=>c(m)&&c(m)(...w)),onFocus:b[2]||(b[2]=(...w)=>c(v)&&c(v)(...w))},null,40,Cu),e.useHidden?(l(),r("button",{key:1,class:"field-input-toggle hint--left hint--medium-large",type:"button","aria-label":e.hidden?"will be hidden on your page":"will be visible on your page",onClick:y},[s("div",Su,[ne(k(fu,null,null,512),[[se,!e.hidden]]),ne(k(bu,null,null,512),[[se,e.hidden]])])],8,Au)):h("",!0)])],2))}},xu=["innerHTML"],Pu=["onClick","innerHTML"],Hu={__name:"Dropdown",props:{value:null,options:[Array,Object],instructions:String,filterByValue:null,watchInput:null},emits:["select"],setup(e,{expose:n,emit:t}){const o=e,a=t,i=f(!1),u=Math.floor(Math.random()*1e5);n({open:y,close:g,toggle:b,isOpen:i});const d=L(()=>{if(Array.isArray(o.options))return o.options.map(T=>({value:T,label:T,lookup:o.filterByValue?yo(T).toLowerCase():null}));const _=[];for(const T in o.options)_.push({value:T,label:o.options[T],lookup:o.filterByValue?yo(o.options[T]).toLowerCase():null});return _}),m=L(()=>{if(!o.filterByValue||d.value.find(C=>C.value===o.filterByValue))return d.value;const T=yo(String(o.filterByValue).trim()).toLowerCase().split(" ");return T.length?d.value.filter(C=>{let $=!0;for(const A of T)C.lookup.includes(A)||($=!1);return $}):d.value});function v(_){a("select",_),g()}let p;function y(_){bo.value=u,p&&(clearTimeout(p),p=null),_&&_.stopPropagation(),i.value=!0}function g(){i.value=!1}function b(){i.value?g():y()}function w(){p&&(clearTimeout(p),p=null),p=setTimeout(g,1e3)}const M=z(bo,()=>{bo.value!==u&&g()});return document.body.addEventListener("click",g),be(async()=>{await Pe(),o.watchInput&&(o.watchInput.addEventListener("focus",y),o.watchInput.addEventListener("input",y),o.watchInput.addEventListener("click",y))}),St(()=>{M(),document.body.removeEventListener("click",g),o.watchInput&&(o.watchInput.removeEventListener("focus",y),o.watchInput.removeEventListener("input",y),o.watchInput.removeEventListener("click",y))}),(_,T)=>(l(),r("div",{class:x(["dropdown-list",{open:i.value&&m.value.length}]),onMouseenter:y,onMouseleave:w},[e.instructions?(l(),r("div",{key:0,class:"item instructions",innerHTML:e.instructions},null,8,xu)):h("",!0),(l(!0),r(Q,null,oe(m.value,C=>(l(),r("div",{key:C.value,class:x(["item",{selected:Array.isArray(e.value)?e.value.includes(C.value):e.value===C.value}]),onClick:U(()=>{v(C.value)},["stop","prevent"]),innerHTML:C.label},null,10,Pu))),128))],34))}},Iu=["for","innerHTML"],Bu=["innerHTML"],Eu={class:"tag"},Vu={class:"name"},Ou=["onClick"],Fu=["id","name"],hl={__name:"TagsField",props:{...ss(),options:[Array,Object],optionsInstructions:String},emits:os(),setup(e,{emit:n}){const t=e,o=n,{uniqueId:a,labelComputed:i,value:u,update:d,onInput:m,isEmpty:v,input:p}=sn({props:t,emit:o,valueIn($){return Array.isArray($)?$:[]},valueOut($){return $.map(A=>String(A).trim()).filter(A=>!!A)}});function y(){d(u.value)}const g=f("");function b(){if(g.value){const $=u.value.slice();$.push(g.value),d($),g.value=""}}function w($){const A=u.value.slice();A.splice($,1),d(A)}function M(){p.value.removeEventListener("keydown",T),b()}function _(){p.value.addEventListener("keydown",T)}function T($){$.code==="Enter"&&($.preventDefault(),b())}St(()=>{p.value.removeEventListener("keydown",T)});function C($){const A=u.value.slice();A.push($),d(A)}return($,A)=>(l(),r("div",{class:x(["field tags-field",[$.classes,{active:!!$.modelValue,error:$.errorField&&$.errorField===$.name,"with-instructions":!!$.instructions,"can-hide":$.canHide,hide:$.hide}]])},[c(i)?(l(),r("label",{key:0,for:c(a),innerHTML:c(i)},null,8,Iu)):h("",!0),$.instructions?(l(),r("h6",{key:1,class:"instructions",innerHTML:$.instructions},null,8,Bu)):h("",!0),k(c(to),{class:"tags",list:c(u),"item-key":"name",handle:".name","force-fallback":!0,"fallback-tolerance":2,onEnd:y},{item:re(({element:H,index:R})=>[s("div",Eu,[s("div",Vu,B(H),1),s("div",{class:"remove",onClick:U(W=>w(R),["stop"])}," Ã ",8,Ou)])]),footer:re(()=>[ne(s("input",{id:c(a),ref_key:"input",ref:p,"onUpdate:modelValue":A[0]||(A[0]=H=>g.value=H),name:$.name,class:"input",type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false",onBlur:M,onFocus:_},null,40,Fu),[[eo,g.value]])]),_:1}
25,8,["list"]),e.options?(l(),P(Hu,{key:2,options:e.options,instructions:e.optionsInstructions,"filter-by-value":g.value,"watch-input":c(p),value:c(u),onSelect:C},null,8,["options","instructions","filter-by-value","watch-input","value"])):h("",!0)],2))}},Du={mixins:[vo],props:{rows:{type:Number,default:1}},setup(e,{emit:n}){const t=sn({props:e,emit:n}),o=f(null);return be(()=>{o.value&&(ms(o.value),z(t.value,()=>{Pe(()=>{ms.update(o.value)})}))}),{textarea:o,...t}}},Nu=["for","innerHTML"],Uu=["innerHTML"],Ru=["id","value","name","rows","required","disabled"];function zu(e,n,t,o,a,i){return l(),r("div",{class:x(["field textarea-field",[e.classes,{active:!!e.modelValue,error:e.errorField&&e.errorField===e.name,"with-instructions":!!e.instructions}]])},[e.labelComputed?(l(),r("label",{key:0,for:e.uniqueId,innerHTML:e.labelComputed},null,8,Nu)):h("",!0),e.instructions?(l(),r("h6",{key:1,class:"instructions",innerHTML:e.instructions},null,8,Uu)):h("",!0),s("textarea",{id:e.uniqueId,ref:"textarea",value:e.value,name:e.name,rows:t.rows,class:"field-input",required:e.required,disabled:e.disabled?e.disabled:null,onInput:n[0]||(n[0]=(...u)=>e.onInput&&e.onInput(...u)),onBlur:n[1]||(n[1]=(...u)=>e.onBlur&&e.onBlur(...u)),onFocus:n[2]||(n[2]=(...u)=>e.onFocus&&e.onFocus(...u))},null,40,Ru)],2)}const ml=le(Du,[["render",zu]]),ju={mixins:[vo],props:{enabledLabel:{type:String,default:"On"},disabledLabel:{type:String,default:"Off"},noColor:Boolean},setup(e,{emit:n}){const t=sn({props:e,emit:n,valueIn:a=>!!a});return{...t,onChange:a=>{t.update(a.target.checked)}}}},qu=["for","innerHTML"],Yu=["innerHTML"],Ku={class:"field-input-row"},Gu=["innerHTML"],Zu=["id","name","disabled","checked"],Wu=["for","innerHTML"];function Ju(e,n,t,o,a,i){return l(),r("div",{class:x(["field boolean-field",{active:!!e.modelValue,error:e.errorField&&e.errorField===e.name,"with-instructions":!!e.instructions}])},[e.labelComputed?(l(),r("label",{key:0,for:e.uniqueId,innerHTML:e.labelComputed},null,8,qu)):h("",!0),e.instructions?(l(),r("h6",{key:1,class:"instructions",innerHTML:e.instructions},null,8,Yu)):h("",!0),s("div",Ku,[e.prepend?(l(),r("div",{key:0,class:"field-input-prepend",innerHTML:e.prepend},null,8,Gu)):h("",!0),s("input",{id:e.uniqueId,name:e.name,class:x(["field-input",{"no-color":t.noColor}]),type:"checkbox",disabled:e.disabled?e.disabled:null,checked:e.value?"checked":null,onChange:n[0]||(n[0]=(...u)=>o.onChange&&o.onChange(...u)),onBlur:n[1]||(n[1]=(...u)=>e.onBlur&&e.onBlur(...u)),onFocus:n[2]||(n[2]=(...u)=>e.onFocus&&e.onFocus(...u))},null,42,Zu),s("label",{for:e.uniqueId,innerHTML:e.value?t.enabledLabel:t.disabledLabel},null,8,Wu)])],2)}const Kn=le(ju,[["render",Ju]]),Qu={components:{TextField:Se,TagsField:hl,TextAreaField:ml,BooleanField:Kn},props:{posterId:{type:String,required:!0}},emits:["created"],setup(e,{emit:n}){const t=f(""),o=f([]),a=f(""),i=f(!0),u=f(""),d=f(!1);z(t,()=>{u.value=""});const m=L(()=>!d.value&&t.value&&o.value&&o.value.length),v=L(()=>d.value?"wait...":t.value?!o.value||!o.value.length?"Choose a tag":"Create new Collection":"Fill name");return{name:t,tags:o,description:a,isPublic:i,buttonReady:m,buttonLabel:v,submit:async()=>{if(m.value){u.value="",d.value=!0;try{const y=await _e.userCollectionsCreate({name:t.value,description:a.value,tags:o.value,posterId:e.posterId,isPublic:i.value});S.value.collections||(S.value.collections=[]),S.value.collections.unshift(y),n("created")}catch(y){u.value=je(y)}d.value=!1}},errorMessage:u,isLoading:d}}},Xu=["disabled","innerHTML"],ec=["innerHTML"];function tc(e,n,t,o,a,i){const u=he("TextField"),d=he("TagsField"),m=he("TextAreaField"),v=he("BooleanField");return l(),r("form",{class:x(["add-to-collection-form",{loading:o.isLoading}]),autocomplete:"off",onSubmit:n[4]||(n[4]=U((...p)=>o.submit&&o.submit(...p),["prevent"]))},[k(u,{modelValue:o.name,"onUpdate:modelValue":n[0]||(n[0]=p=>o.name=p),label:"Collection Name",autocomplete:"off"},null,8,["modelValue"]),(l(),P(d,{key:t.posterId,modelValue:o.tags,"onUpdate:modelValue":n[1]||(n[1]=p=>o.tags=p),options:["inspiration","research","references for new job","just for fun"],label:"Tags","options-instructions":"tags below are suggestions, you can enter your own tags"},null,8,["modelValue"])),k(m,{modelValue:o.description,"onUpdate:modelValue":n[2]||(n[2]=p=>o.description=p),label:"Description"},null,8,["modelValue"]),k(v,{modelValue:o.isPublic,"onUpdate:modelValue":n[3]||(n[3]=p=>o.isPublic=p),label:"Public collection","enabled-label":"yes, make it public","disabled-label":"not yet, keep private"},null,8,["modelValue"]),s("button",{class:"add-to-collection-button",disabled:!o.buttonReady,innerHTML:o.buttonLabel},null,8,Xu),o.errorMessage?(l(),r("small",{key:0,class:"color-error",innerHTML:o.errorMessage},null,8,ec)):h("",!0)],34)}const nc=le(Qu,[["render",tc]]),oc={},sc={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon icon-remove"},lc=s("polygon",{points:"24 9.4 22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4"},null,-1),ac=s("title",null,"Remove from this Collection",-1),ic=[lc,ac];function rc(e,n){return l(),r("svg",sc,ic)}const uc=le(oc,[["render",rc]]),cc={},dc={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon"},vc=s("polygon",{points:"12,21.2 4.9,14.1 3.5,15.5 10.6,22.6 12,24 26.1,9.9 24.7,8.4"},null,-1),fc=s("title",null,"Already in this Collection",-1),pc=[vc,fc];function hc(e,n){return l(),r("svg",dc,pc)}const mc=le(cc,[["render",hc]]),gc={},yc={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon"},_c=s("polygon",{points:"17,15 17,8 15,8 15,15 8,15 8,17 15,17 15,24 17,24 17,17 24,17 24,15 "},null,-1),bc=s("title",null,"Add to this Collection",-1),kc=[_c,bc];function $c(e,n){return l(),r("svg",yc,kc)}const wc=le(gc,[["render",$c]]),Mc={},Tc={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon"},Lc=s("path",{d:"M10 6h4v4h-4zM18 6h4v4h-4zM10 14h4v4h-4zM18 14h4v4h-4zM10 22h4v4h-4zM18 22h4v4h-4z"},null,-1),Cc=s("title",null,"Drag to reorder",-1),Ac=[Lc,Cc];function Sc(e,n){return l(),r("svg",Tc,Ac)}const xc=le(Mc,[["render",Sc]]),ls=f("top"),mt=f(null),gl=f(0),as=f(!1),ln=f(!1),yl=f(null),_l=f(null),{offset:Pc,neverOpened:Hc}=on({isOpen:ln,popup:yl,button:_l,offsetParent:!0,offsetParentPosition:ls});async function xs(e){if(_l.value=c(e.button),ls.value=e.position||"top",mt.value=e.posterId,gl.value=+e.posterPosition,await qe(),!ae.value){De();return}ln.value=!0,as.value=!1}function Ic(){ln.value=!1}const Vn=f(!1),Gn=f(""),Ut=f([]),Ho=f(null),Bc=L(()=>We.currentRoute.value.name!=="my-collections"),Ec=L(()=>Ut.value.length>1);function is(){if(Gn.value="",ln.value)if(!S.value||!ae.value)Ut.value=[];else{const e=oa(S.value.collections);for(const n of e)n.hasPoster=n.posters.includes(mt.value),n.justAdded=!1;Ut.value=e}}z([ln,mt],is);async function Vc(e,n){if(Vn.value)return;Gn.value="",Vn.value=!0;let t=null;const o=S.value.collections.findIndex(i=>i.id===e),a=S.value.collections[o];try{let i;if(n){i=await _e.userCollectionsPosterRemove({collectionId:e,posterId:mt.value});const u=a.posters.indexOf(mt.value);u>=0&&a.posters.splice(u,1),rn.value++}else i=await _e.userCollectionsPosterAdd({collectionId:e,posterId:mt.value,fromSearch:_t.value}),Br(e,mt.value,gl.value),a.posters.unshift(mt.value),t=e;if(i&&i.icon&&(a.res=i.icon),is(),t){const u=Ut.value.findIndex(d=>d.id===t);u!==-1&&(Ut.value[u].justAdded=!0)}}catch(i){Gn.value=je(i)}Vn.value=!1}function Oc(){var e;as.value=!1,is(),(e=Ho.value)!=null&&e.$el&&Pe(()=>{Le.to(Ho.value.$el,{duration:.42,scrollTo:{autoKill:!1,y:0}})})}const Io=f(!1);async function Fc(){Io.value=!0;const e=[];for(const n of Ut.value)e.push(n.id);try{const n=await _e.userCollectionsReorder({order:e})}catch{}Io.value=!1}const Dc={components:{AddToCollectionForm:nc,CollectionsPopupRemoveIcon:uc,CollectionsPopupCheckIcon:mc,CollectionsPopupAddIcon:wc,CollectionsPopupDragIcon:xc,Draggable:to},setup(){return z(rn,Ic),{position:ls,posterId:mt,showJoinUs:nn,showLogin:De,isLoggedIn:ae,canCollect:Js,canCreateNewCollections:wa,popup:yl,offset:Pc,isOpen:ln,neverOpened:Hc,collections:Ut,pillScroll:Ho,canShowViewAll:Bc,canDrag:Ec,toggle:Vc,isLoading:Vn,errorMessage:Gn,newCollectionForm:as,onCreatedNewCollection:Oc,onDragEnd:Fc,reorderSaving:Io,pictureTag:ft}}},Nc=["onClick","onMouseleave"],Uc=["innerHTML"],Rc={class:"name"},zc=s("span",{class:"name-poster-remove"},"à remove poster",-1),jc={class:"popup-arrow"},qc={key:0,class:"popup-drag"},Yc=["innerHTML"],Kc={key:2,class:"popup-warning active-links"},Gc=s("small",null,"To save your favorite posters is an exclusive feature of our members",-1),Zc={key:0,style:{"padding-top":"6px"}},Wc={key:3,class:"popup-warning active-links padding-top-2"},Jc=s("small",null,"To create new collections you need to have an active membership",-1),Qc=s("button",{type:"button",class:"text-only padding-top-1-5 padding-bottom-1 small"}," View all â ",-1);function Xc(e,n,t,o,a,i){const u=he("CollectionsPopupAddIcon"),d=he("CollectionsPopupRemoveIcon"),m=he("CollectionsPopupCheckIcon"),v=he("CollectionsPopupDragIcon"),p=he("Draggable"),y=he("router-link"),g=he("AddToCollectionForm");
25return l(),r("div",{class:x(["add-to-collection-popup",{loading:o.isLoading}])},[s("div",{ref:"popup",class:x(["popup flex",[o.position,{open:o.isOpen,"never-opened":o.neverOpened}]]),style:we({"--offset":`${o.offset}px`})},[o.collections.length?ne((l(),P(p,{key:0,ref:"pillScroll",list:o.collections,"item-key":"id",class:x(["add-to-collection-list",{"can-drag":o.canDrag,loading:o.reorderSaving}]),handle:".popup-drag","force-fallback":!0,"fallback-tolerance":2,onEnd:o.onDragEnd},{item:re(({element:b})=>[s("button",{class:x(["popup-pill",{active:b.hasPoster,"just-added":b.justAdded}]),type:"button",onClick:U(w=>o.toggle(b.id,b.hasPoster),["stop","prevent"]),onMouseleave:w=>b.justAdded=!1},[s("div",{class:"popup-icon",innerHTML:o.pictureTag(b.icon,"icon")},null,8,Uc),s("span",Rc,B(b.name),1),zc,s("div",jc,[ne(k(u,{class:"hover-icon"},null,512),[[se,!b.hasPoster]]),ne(k(d,{class:"hover-icon"},null,512),[[se,b.hasPoster]]),ne(k(m,{class:"active-icon"},null,512),[[se,b.hasPoster]])]),o.canDrag?(l(),r("div",qc,[k(v,{class:"hover-icon"})])):h("",!0)],42,Nc)]),_:1},8,["list","class","onEnd"])),[[se,!o.newCollectionForm]]):h("",!0),o.errorMessage?(l(),r("small",{key:1,class:"color-error padding-top-1",innerHTML:o.errorMessage},null,8,Yc)):h("",!0),o.canCollect?o.canCreateNewCollections?!o.newCollectionForm&&!o.collections.length?(l(),r("button",{key:4,class:"popup-pill no-icon",type:"button",onClick:n[3]||(n[3]=U(b=>o.newCollectionForm=!0,["stop","prevent"]))}," Create new Collection ")):!o.newCollectionForm&&o.collections.length?(l(),r("button",{key:5,type:"button",class:x(["text-only padding-top-2 padding-bottom-1",{"padding-bottom-2":!o.canShowViewAll}]),onClick:n[4]||(n[4]=U(b=>o.newCollectionForm=!0,["stop","prevent"]))}," New Collection + ",2)):h("",!0):(l(),r("div",Wc,[Jc,s("button",{class:"popup-pill no-icon blue",type:"button",onClick:n[2]||(n[2]=(...b)=>o.showJoinUs&&o.showJoinUs(...b))}," Learn more ")])):(l(),r("div",Kc,[Gc,s("button",{class:"popup-pill no-icon blue",type:"button",onClick:n[0]||(n[0]=(...b)=>o.showJoinUs&&o.showJoinUs(...b))}," Learn more "),o.isLoggedIn?h("",!0):(l(),r("small",Zc,[N("Already a member, "),s("a",{href:"/login",onClick:n[1]||(n[1]=U((...b)=>o.showLogin&&o.showLogin(...b),["prevent"]))},"login here")]))])),!o.newCollectionForm&&o.collections.length&&o.canShowViewAll?(l(),P(y,{key:6,to:"/collections/my"},{default:re(()=>[Qc]),_:1})):h("",!0),o.newCollectionForm?(l(),P(g,{key:7,"poster-id":o.posterId,onCreated:o.onCreatedNewCollection,onClick:n[5]||(n[5]=U(()=>{},["stop"]))},null,8,["poster-id","onCreated"])):h("",!0),o.newCollectionForm?(l(),r("button",{key:8,type:"button",class:"text-only padding-top-1 padding-bottom-1",style:{"font-size":"13px"},onClick:n[6]||(n[6]=U(b=>o.newCollectionForm=!1,["stop","prevent"]))}," Ã cancel ")):h("",!0)],6)],2)}const ed=le(Dc,[["render",Xc]]),td={type:"button",class:"tag no-spacing"},bl={__name:"AddToCollection",props:{posterId:String,posterPosition:Number,position:{type:String,default:"top"},pill:Boolean},setup(e){const n=e,t=f(null),o=L(()=>{var i;return!ae.value||!((i=S.value)!=null&&i.collections)?!1:S.value.collections.findIndex(u=>u.posters.includes(n.posterId))!==-1});return(a,i)=>(l(),r("div",{class:x(["add-to-collection",{disabled:c(ae)&&!c(S),"toggle-active":o.value}])},[e.pill?(l(),r("div",{key:1,ref_key:"button",ref:t,class:"toggle-collection-pill color-link",onClick:i[1]||(i[1]=U(u=>c(xs)({button:t.value,position:e.position,posterId:e.posterId,posterPosition:e.posterPosition}),["stop","prevent"]))},[ne(s("div",null,[N(" collect "),k(Cs,{style:{"margin-left":"1px"}})],512),[[se,!o.value]]),ne(s("button",td," collected ",512),[[se,o.value]])],512)):(l(),r("div",{key:0,ref_key:"button",ref:t,class:"toggle-collection",onClick:i[0]||(i[0]=U(u=>c(xs)({button:t.value,position:e.position,posterId:e.posterId,posterPosition:e.posterPosition}),["stop","prevent"]))},[ne(k(Cs,null,null,512),[[se,!o.value]]),ne(k(au,null,null,512),[[se,o.value]])],512))],2))}},nd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",class:"play-pause"},od={key:0,d:"M12 6h-2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2ZM22 6h-2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2Z"},sd={key:1,d:"M7 28a1 1 0 0 1-1-1V5a1 1 0 0 1 1.482-.876l20 11a1 1 0 0 1 0 1.752l-20 11A1 1 0 0 1 7 28Z"},kn={__name:"PlayPause",props:{pause:Boolean},setup(e){return(n,t)=>(l(),r("svg",nd,[e.pause?(l(),r("path",od)):(l(),r("path",sd))]))}},ld={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",class:"sound"},ad={key:0,d:"M31 12.41 29.59 11 26 14.59 22.41 11 21 12.41 24.59 16 21 19.59 22.41 21 26 17.41 29.59 21 31 19.59 27.41 16 31 12.41zM18 30a1 1 0 0 1-.71-.3L9.67 22H3a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h6.67l7.62-7.7a1 1 0 0 1 1.41 0 1 1 0 0 1 .3.7v26a1 1 0 0 1-1 1Z"},id={key:1},rd=s("path",{d:"m27.16 8.08-1.53 1.29a10 10 0 0 1-.29 13.23l1.47 1.4a12 12 0 0 0 .35-15.88Z"},null,-1),ud=s("path",{d:"M21.58 12a6 6 0 0 1-.18 7.94l1.47 1.36a8 8 0 0 0 .23-10.59Z"},null,-1),cd=s("path",{d:"M18 30a1 1 0 0 1-.71-.3L9.67 22H3a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h6.67l7.62-7.7a1 1 0 0 1 1.41 0 1 1 0 0 1 .3.7v26a1 1 0 0 1-1 1Z"},null,-1),dd=[rd,ud,cd],vd={__name:"Sound",props:{off:Boolean},setup(e){return(n,t)=>(l(),r("svg",ld,[e.off?(l(),r("path",ad)):(l(),r("g",id,dd))]))}},fd=["innerHTML"],fo=Object.assign({inheritAttrs:!1},{__name:"PictureTag",props:{image:[Object,null],imageMobile:[Object,null],size:[String,Object,null],sizeMobile:[String,Object,null],lazy:Boolean,outline:Boolean,rounded:Boolean},setup(e){return(n,t)=>(l(),r("div",{class:x(["picture-tag",{outline:e.outline,rounded:e.rounded}
25]),innerHTML:c(ft)(c(V).mobile&&e.imageMobile||e.image,c(V).mobile&&e.sizeMobile||e.size,e.lazy)},null,10,fd))}}),pd={class:"player-controls-toolbar"},hd={class:"player-timer"},md=s("div",{class:"player-progress-bkg"},null,-1),gd={__name:"PlayerControls",props:{media:null,title:String,description:String,initialDuration:Number,withFullscreen:Boolean,withRewind:Boolean,fullscreenTarget:null,autoHide:Boolean,image:null,noAudio:Boolean},emits:["enabled","ready","fullscreen"],setup(e,{expose:n,emit:t}){const o=e,a=t;n({play:ve,pause:F,enableSound:ee});const i=xt(o,"media"),u=f(!1),d=Math.floor(Math.random()*1e5),m=f(!1),v=f(!1),p=f(0),y=f(0),g=f(!1),b=f(!1),w=f(!1),M=f(0),_=f(0),T=f(!1),C=f(!1),$=f(!1),A=f("00:00"),H=f(""),R=f(!1),W=f(!1);z(W,()=>{a("fullscreen",W.value)}),o.initialDuration&&(A.value=new Date(1e3*Math.round(o.initialDuration)).toISOString().substring(14,19));function q(){y.value>=.1&&(A.value=new Date(1e3*Math.round(y.value)).toISOString().substring(14,19)),p.value&&(y.value===0&&!v.value&&(A.value=new Date(1e3*Math.round(p.value)).toISOString().substring(14,19)),M.value=y.value/p.value)}const G=L(()=>o.image?!!(!v.value&&(y.value<.1||p.value&&y.value>=p.value)):!1);function ve(){i.value&&(Mo.value=d,i.value.play(),q(),Ie())}function F(){i.value&&(i.value.pause(),Ie())}async function D(pe){if(pe.stopPropagation(),!i.value){await Ce(),ve();return}i.value.paused||i.value.ended?ve():F()}function I(pe){!i.value||!i.value.seekable||(i.value.currentTime=p.value*pe,ve())}function E(pe){!i.value||!i.value.seekable||(i.value.currentTime+=pe,ve())}function X(){E(-10)}function ee(){C.value=!0,i.value&&(i.value.muted=!1,T.value=!1)}function Z(){i.value&&(T.value=!T.value,i.value.muted=T.value)}function ge(){jt.fullscreenElement?jt.exitFullscreen():jt.requestFullscreen(o.fullscreenTarget||i.value)}async function Ce(){u.value||(u.value=!0,a("enabled"),await Pe(),ze(),z(y,q),q())}function ze(){T.value=!!i.value.muted,i.value.addEventListener("play",pe=>{v.value=!pe.target.paused&&!pe.target.ended,q(),b.value=!0,C.value&&(C.value=!1,i.value.muted=!1,T.value=!1)}),i.value.addEventListener("pause",pe=>{v.value=!pe.target.paused&&!pe.target.ended,q()}),i.value.addEventListener("timeupdate",pe=>{y.value=pe.target.currentTime,w.value=!1}),i.value.addEventListener("durationchange",pe=>{p.value=pe.target.duration,q()}),i.value.addEventListener("canplaythrough",()=>{g.value=!0}),i.value.addEventListener("loadedmetadata",()=>{m.value=!0,a("ready"),it()}),i.value.addEventListener("loadeddata",()=>{it()}),i.value.addEventListener("ended",()=>{w.value=!0}),i.value.addEventListener("progress",function(){if(w.value||g.value){_.value=1;return}let pe=0;const tt=this.buffered,Mt=this.currentTime;try{for(;!(tt.start(pe)<=Mt&&Mt<=tt.end(pe));)pe+=1;const ye=tt.start(pe)/this.duration,Ae=tt.end(pe)/this.duration;_.value=Ae-ye}catch{}}),o.withFullscreen&&(R.value=jt.fullscreenEnabled,R.value&&jt.addEventListener("fullscreenchange",()=>{W.value=(o.fullscreenTarget||i.value)===jt.fullscreenElement}))}be(()=>{i.value?Ce():z(i,Ce)}),z(Mo,()=>{Mo.value!==d&&F()});const Xe=f(!1),Me=f(0),He=f(null);function pt(){$e||(Xe.value=!0)}function $t(){Xe.value=!1}function at(pe){$e||(Me.value=pe.offsetX/He.value.offsetWidth,H.value=new Date(1e3*Math.round(p.value*Me.value)).toISOString().substring(14,19))}function Pt(){I(Me.value)}function Ht(pe){Me.value=pe.layerX/He.value.offsetWidth,I(Me.value)}const ht=f(!1);let wt=null;const zt=V.mobile?1e3:800;function Ie(){!o.autoHide||!b.value||(wt&&clearTimeout(wt),ht.value=!1,wt=setTimeout(()=>{ht.value=!w.value,G.value&&(ht.value=!1),!v.value&&V.mobile&&(ht.value=!1)},zt))}z(b,Ie),z(w,Ie);function it(){var pe;$.value=!o.noAudio&&i.value&&(i.value.mozHasAudio||!!i.value.webkitAudioDecodedByteCount||!!((pe=i.value.audioTracks)!=null&&pe.length))}const rt=f(null);return be(()=>{$e||rt.value.addEventListener("click",D)}),(pe,tt)=>(l(),r("div",{ref_key:"el",ref:rt,class:x(["player-controls",{hide:!m.value||ht.value}]),onMouseenter:Ie,onMousemove:Ie,onMouseleave:Ie,onTouchstart:Ie,onTouchend:Ie},[e.image?(l(),r("div",{key:0,class:x(["player-cover",{active:G.value}]),onClick:U(D,["stop"])},[k(fo,{image:e.image,size:"large"},null,8,["image"])],2)):h("",!0),s("div",pd,[s("button",{type:"button",class:"player-button",onClick:U(D,["stop"])},[k(kn,{pause:v.value}
25,null,8,["pause"])]),$.value?(l(),r("button",{key:0,type:"button",class:"player-button",onClick:U(Z,["stop"])},[k(vd,{off:T.value},null,8,["off"])])):h("",!0),s("div",hd,B(A.value),1),s("div",{ref_key:"progressTrack",ref:He,class:x(["player-progress",{active:u.value}]),onMouseenter:pt,onMousemove:at,onMouseleave:$t,onTouchend:Ht,onClick:U(Pt,["stop"])},[md,s("div",{class:"player-progress-loaded",style:we({width:`${_.value*100}%`})},null,4),s("div",{class:"player-progress-bar",style:we({width:`${M.value*100}%`})},null,4),s("div",{class:"player-progress-pin",style:we({left:`${Me.value*100}%`,opacity:+Xe.value})},[s("div",{class:x(["player-pin-timer",{right:Me.value>.84}])},B(H.value),3)],4)],34),e.withRewind?(l(),r("button",{key:1,type:"button",onClick:U(X,["stop"])}," rewind ")):h("",!0),e.withFullscreen&&R.value?(l(),r("button",{key:2,type:"button",onClick:U(ge,["stop"])}," fullscreen ")):h("",!0)])],34))}},yd=["innerHTML"],_d=["muted","loop","autoplay","width","height","poster"],bd=["src"],kd=["src"],po=Object.assign({inheritAttrs:!1},{__name:"VideoPlayer",props:{type:String,loop:Boolean,autoplay:Boolean,controls:Boolean,mute:Boolean,video:[String,Boolean],videoMobile:[String,Boolean],videoHevc:[String,Boolean],videoHevcMobile:[String,Boolean],width:Number,height:Number,forcePreload:Boolean,oembed:[String,Boolean],ratioW:Number,ratioH:Number,image:null,poster:String,outline:Boolean},setup(e,{expose:n}){const t=e,o=f(null);n({playerControls:o});const a=f(null),i=L(()=>{let d=V.mobile&&t.videoMobile?t.videoMobile:t.video;return t.forcePreload&&(d+="#t=0.001"),d}),u=L(()=>{let d=V.mobile&&t.videoHevcMobile?t.videoHevcMobile:t.videoHevc;return t.forcePreload&&(d+="#t=0.001"),d});return(d,m)=>e.type==="oembed"?(l(),r("div",{key:0,class:"video-iframe",style:we({"--rw":e.ratioW||16,"--rh":e.ratioH||9}),innerHTML:e.oembed},null,12,yd)):(l(),r("div",{key:1,class:x(["video-player",{outline:e.outline}]),style:we({aspectRatio:e.width&&e.height?`auto ${e.width} / ${e.height}`:null})},[s("video",{ref_key:"media",ref:a,playsinline:"",muted:e.autoplay||e.mute,loop:e.loop,autoplay:e.autoplay,class:"video",oncontextmenu:"return false;",width:e.width||null,height:e.height||null,poster:e.poster||null},[u.value?(l(),r("source",{key:0,src:u.value,type:"video/mp4; codecs=hvc1"},null,8,bd)):h("",!0),s("source",{src:i.value},null,8,kd)],8,_d),e.controls?(l(),P(gd,{key:0,ref_key:"playerControls",ref:o,media:a.value,"auto-hide":!0,image:e.image,"no-audio":e.mute},null,8,["media","image","no-audio"])):h("",!0)],6))}}),$d={key:0,class:"processing-message"},wd=s("br",null,null,-1),Md=["src","width","height"],Yt={__name:"AnimatedPoster",props:{path:String,imagePath:String,width:null,height:null,size:{type:String,default:"animated-poster"},controls:Boolean,checkExists:Boolean,useImg:Boolean,autoplay:{type:Boolean,default:!0},play:Boolean},setup(e,{expose:n}){const t=e,o=f(null);n({videoPlayer:o});const a=f(!1),i=L(()=>{let p=t.path;return p?(p=`${p.substring(0,p.lastIndexOf("."))}.mp4`,`https://assets.typographicposters.com/${t.size}${p}`):""}),u=L(()=>{if(!t.imagePath)return"";if(t.imagePath.startsWith("http"))return t.imagePath;let p="search-large";return V.mobile?p="search-mobile-2x":V.md&&(p="search"),lt(t.imagePath,p)}),d=xt(t,"play");z(d,p=>{var y;(y=o.value)!=null&&y.playerControls&&(p?o.value.playerControls.play():o.value.playerControls.pause())}),be(()=>{t.play&&o.value.playerControls.play()});let m=null;async function v(){try{await Fe(i.value,{method:"HEAD"}),clearInterval(m),m=null,a.value=!0}catch{}}return kt(async()=>{t.checkExists?(v(),m=setInterval(v,5e3)):a.value=!0}),(p,y)=>(l(),r("div",{class:x(["animated-poster",{processing:!a.value}])},[a.value?e.useImg?(l(),r("img",{key:1,src:i.value,width:e.width||0,height:e.height||0},null,8,Md)):(l(),P(po,{key:2,ref_key:"videoPlayer",ref:o,video:i.value,width:e.width||0,height:e.height||0,controls:e.controls,autoplay:e.autoplay,loop:!0,poster:u.value},null,8,["video","width","height","controls","autoplay","poster"])):(l(),r("small",$d,[N(" processing video..."),wd,N(" you can safely close this tab or the browser ")]))],2))}},Td={},Ld={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon external-link-icon"},Cd=s("path",{d:"M26 28H6a2.003 2.003 0 0 1-2-2V6a2.003 2.003 0 0 1 2-2h10v2H6v20h20V16h2v10a2.003 2.003 0 0 1-2 2Z"},null,-1),Ad=s("path",{d:"M20 2v2h6.586L18 12.586 19.414 14 28 5.414V12h2V2H20z"},null,-1),Sd=[Cd,Ad];
25function xd(e,n){return l(),r("svg",Ld,Sd)}const Bo=le(Td,[["render",xd]]),Pd={key:0,class:"title"},Hd={key:0,class:"slash"},Id={key:1},Bd=["href"],Ed={key:4},Ps={__name:"PosterItemAuthors",props:{authors:Array,position:null,forPages:Boolean},setup(e){return(n,t)=>{var a;const o=he("router-link");return(a=e.authors)!=null&&a.length?(l(),r("h2",Pd,[s("strong",null,[(l(!0),r(Q,null,oe(e.authors,(i,u)=>(l(),r("span",{key:`${i.name}${u}`},[e.forPages?(l(),r("span",Hd," / ")):u?(l(),r("span",Id,B(u===e.authors.length-1?" & ":", "),1)):h("",!0),i.id?(l(),P(o,{key:2,to:`/${i.id}`,onClick:d=>c(Po)(i.id,e.position),onMouseenter:d=>c(Ee)({name:"profile",id:i.id})},{default:re(()=>[N(B(i.name),1)]),_:2},1032,["to","onClick","onMouseenter"])):i.url?(l(),r("a",{key:3,href:i.url,rel:"noopener",target:"_blank",class:"external-link"},[N(B(i.name),1),k(Bo)],8,Bd)):(l(),r("span",Ed,B(i.name),1))]))),128))])])):h("",!0)}}},rs=f(null),us=f("top"),Vd=f(null),Mn=f(!1),kl=f(null),$l=f(null),{offset:Od,refresh:wl}=on({isOpen:Mn,popup:kl,button:$l,offsetParent:!0,offsetParentPosition:us});function Fd(e){us.value=e.position||"top",Vd.value=c(e.scrollTarget),$l.value=c(e.button),rs.value=c(e.item),Mn.value=!0,wl()}function Dd(){Mn.value=!1}const cs=f(!1),On=f(!1),Zn=f("");z(rs,()=>{cs.value=!1,Zn.value=""});async function Ml(){var e;if(!On.value){On.value=!0,Zn.value="";try{await _e.userProductRequest({id:(e=rs.value)==null?void 0:e.id}),cs.value=!0}catch(n){Zn.value=je(n)}finally{On.value=!1}}}function Nd(){bt.value=async()=>{un(),Mn.value=!0,wl(),await Ml()},De()}const Ud={setup(){return z(rn,Dd),{popup:kl,offset:Od,position:us,isOpen:Mn,isTouch:$e,login:Nd,submit:Ml,errorMessage:Zn,isLoggedIn:ae,isLoading:On,isSuccess:cs}}},Rd={key:0},zd=s("h6",null,[s("b",null,"Great!"),N(" your interest is noted. We will get back to you as soon as the poster is ready at our store.")],-1),jd=[zd],qd={key:1},Yd=s("h6",null,"interested in buying this poster? as soon as the poster is ready we'll let you know.",-1),Kd=["innerHTML"];function Gd(e,n,t,o,a,i){return l(),r("div",{class:"buy-popup-wrap",onClick:n[2]||(n[2]=U(()=>{},["stop","prevent"]))},[s("div",{ref:"popup",class:x(["popup flex buy-popup",[o.position,{open:o.isOpen,"wait-child":o.isLoading,success:o.isSuccess}]]),style:we({"--offset":`${o.offset}px`})},[o.isSuccess?(l(),r("div",Rd,jd)):(l(),r("div",qd,[Yd,o.isLoggedIn?(l(),r("button",{key:1,class:"store-request",type:"button",onClick:n[1]||(n[1]=U((...u)=>o.submit&&o.submit(...u),["stop"]))}," request to buy ")):(l(),r("button",{key:0,class:"store-request",type:"button",onClick:n[0]||(n[0]=U((...u)=>o.login&&o.login(...u),["stop"]))}," login to mark interest ")),o.errorMessage?(l(),r("p",{key:2,class:"color-error padding-top-1",innerHTML:o.errorMessage},null,8,Kd)):h("",!0)]))],6)])}const Zd=le(Ud,[["render",Gd]]),Wd={},Jd={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon"},Qd=s("path",{d:"M28.76 11.35A1 1 0 0 0 28 11h-6V7a3 3 0 0 0-3-3h-6a3 3 0 0 0-3 3v4H4a1 1 0 0 0-1 1.15L4.88 24.3a2 2 0 0 0 2 1.7h18.26a2 2 0 0 0 2-1.7L29 12.15a1 1 0 0 0-.24-.8M12 7a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4h-8Zm13.14 17H6.86L5.17 13h21.66Z"},null,-1),Xd=s("title",null,"typo/graphic store",-1),ev=[Qd,Xd];function tv(e,n){return l(),r("svg",Jd,ev)}const Eo=le(Wd,[["render",tv]]),nv=["href"],ov={class:"on-store-pill"},sv={class:"on-store-pill request"},Tl={__name:"BuyButton",props:{item:Object,position:String,iconOnly:Boolean,scrollTarget:null},setup(e){const{item:n}=e,t=f(null),o=L(()=>!(!n||n.notForSale));return(a,i)=>o.value?(l(),r(Q,{key:0},[e.item.typographicStore?(l(),r("a",{key:0,href:`https://typographic.store/catalog/${e.item.typographicStore.slug||e.item.typographicStore.id}`,target:"_blank",rel:"noopener"},[s("div",{class:x(["buy-button",{"icon-only":e.iconOnly}])},[s("div",ov,[N(B(e.iconOnly?"":"Buy"),1),k(Eo)])],2)],8,nv)):(l(),r("div",{key:1,ref_key:"button",ref:t,class:x(["buy-button",{"icon-only":e.iconOnly}]),onClick:i[0]||(i[0]=U(u=>c(Fd)({item:e.item,position:e.position,scrollTarget:e.scrollTarget,button:t.value}),["stop","prevent"]))},[s("div",sv,[N(B(e.iconOnly?"":"Request"),1),k(Eo)])],2))],64)):h("",!0)}},lv=["href"],av={key:1},iv={key:0,class:"play-icon"},rv=["innerHTML"],uv=["href"],cv={key:1},dv={key:0,class:"play-icon"},vv=["innerHTML"],fv={key:2,class:"poster-item-info"},pv={key:0,class:"common-links"},hv=["innerHTML"],mv={key:3,class:"caption lining-numbers"},gv={key:1,class:"icons"},Fn={__name:"PosterItem",props:{poster:Object,forProfile:Boolean,routeTo:String,dontTrack:Boolean,fromCollectionId:String,size:String,noAnimated:Boolean,noInfo:Boolean,noIcons:Boolean,fadeLike:Boolean,bkgLightness:{type:Number,default:97},layout:String,forceAnimated:Boolean,withBuyButton:Boolean},emits:["clickPoster"],setup(e,{emit:n}){var R,W,q,G,ve,F,D,I,E,X,ee;const t=e,o=n;let a=[];t.layout==="photos"?a=t.poster.gallery||[]:(R=t.poster.series)!=null&&R.length&&(a=[].concat([{animated:t.poster.animated,...t.poster.image}],t.poster.series)),a.length&&(a=a.filter(Z=>!Z.type||Z.type!=="video"));const i=f(t.layout==="photos"?"1 / 1":(q=(W=t.poster)==null?void 0:W.image)!=null&&q.width&&((ve=(G=t.poster)==null?void 0:G.image)!=null&&ve.height)?`${t.poster.image.width} / ${t.poster.image.height}`:"210 / 297"),u=f(null);function d(){let Z=0,ge=0;Wo(u,()=>{if(u.value){Z=u.value.offsetWidth;for(const Ce of u.value.children){const ze=Ce.offsetTop+Ce.offsetHeight;ze>ge&&(ge=ze),i.value=`${Z} / ${ge}`}}})}(t.layout==="photos"||a.length>1)&&be(async()=>{await Pe(),d()});const m=L(()=>{let Z="search";return V.mobile?Z="search-mobile":V.xxl||V.xxxl?t.size==="large"?Z="poster":t.size==="medium"?Z="search-large":Z="search":t.size==="large"?Z="search-large":Z="search",Z}),v=L(()=>
25{if(!a.length)return 0;if(V.mobile)return 10;const Z=t.forProfile?"sizeProfiles":"size";return ie.value[Z]==="large"?30:ie.value[Z]==="medium"?24:16});z(v,d);const p=t.routeTo||ao(t.poster),y=!((F=t.poster)!=null&&F.profileCategory)||((D=t.poster)==null?void 0:D.profileCategory)==="designer"||((I=t.poster)==null?void 0:I.profileCategory)==="studio";let g="";t.forProfile&&["kieler-woche","ame"].includes(t.poster.profileId)||(t.forProfile&&["neubad"].includes(t.poster.profileId)?t.poster.articleNumber&&(g=`article #${t.poster.articleNumber}`):g=di(t.poster,t.forProfile&&y));const b=[],w=[],M=[];if((E=t.poster.authors)!=null&&E.length)for(const Z of t.poster.authors)Z!=null&&Z.name&&M.push({name:Z.name,id:Z.id,url:Bn(Z)});if(t.forProfile)M.length&&!y&&b.push(...M);else if(y||!M.length?b.push({name:t.poster.profileName,id:t.poster.profileId}):w.push({name:t.poster.profileName,id:t.poster.profileId}),M.length&&b.push(...M),(X=t.poster.crosslinkTo)!=null&&X.length)for(const Z of t.poster.crosslinkTo)["designer","studio","exhibition"].includes(Z.profileCategory)||w.push({name:Z.profileName||Z.name,id:Z.profileId||Z.id});w.length&&w.sort((Z,ge)=>Z.profileCategory==="competition"?0:-1);let _;t.poster.profileId==="kieler-woche"?_=jn(t.poster,!0):(_=jn(t.poster),((ee=t.poster.series)!=null&&ee.length||t.poster.isExpanded)&&(_=Jo(_,"series",": ")));function T(Z){if(t.dontTrack||Ir(t.poster.id,t.poster.position,t.forProfile?t.poster.profileId:null,t.fromCollectionId),Z.metaKey&&(Z.shiftKey||Z.altKey)&&(st.value||Ws(t.poster.profileId))){window.open(`/author-area/${t.poster.profileId}/posters?id=${t.poster.id}`,"_blank").focus(),Z.preventDefault();return}if(t.routeTo){Z.preventDefault(),We.push(t.routeTo);return}Jt(Z)&&o("clickPoster")}const C=L(()=>{var ge,Ce;return!t.fadeLike||!ae.value||!((Ce=(ge=S.value)==null?void 0:ge.likes)!=null&&Ce.posters)?!1:S.value.likes.posters.indexOf(t.poster.crosslinkFrom||t.poster.id)!==-1}),$=L(()=>{var Z,ge;return!((Z=t.poster.image)!=null&&Z.width)||!((ge=t.poster.image)!=null&&ge.height)?!1:t.poster.image.width/t.poster.image.height<.6}),A=L(()=>t.poster.edgeLightness===void 0?!1:t.poster.edgeLightness>t.bkgLightness-16&&t.poster.edgeLightness<t.bkgLightness+16),H=L(()=>t.forceAnimated?!0:ie.value.animated==="always"&&!t.noAnimated&&!V.mobile);return(Z,ge)=>{var Ce,ze,Xe;return l(),r("article",{class:x(["poster-item",{"no-info":e.noInfo&&e.noIcons,"fade-like":e.fadeLike&&!C.value,tall:$.value}])},[c(a).length&&!e.poster.skipSeries?(l(),r("a",{key:0,ref_key:"deck",ref:u,href:c(p),class:x(["poster-item-link with-deck",{"with-outline":A.value}]),style:we({"--offset":`${v.value}px`,"--deck-count":c(a).length>=4?4:c(a).length,"aspect-ratio":i.value}),onClick:T},[(l(!0),r(Q,null,oe(c(a).slice(0,4),(Me,He)=>{var pt,$t,at;return l(),r("div",{key:Me.path||Me.id,class:"poster-deckitem",style:we({"--i":He})},[(pt=Me.animated)!=null&&pt.path&&H.value?(l(),P(Yt,{key:0,"image-path":($t=Me.image)==null?void 0:$t.path,path:Me.animated.path,width:Me.animated.width,height:Me.animated.height},null,8,["image-path","path","width","height"])):(l(),r("div",av,[(at=Me.animated)!=null&&at.path||He===0&&e.poster.withVideos?(l(),r("div",iv,[k(kn)])):h("",!0),s("picture",{innerHTML:c(Qt)(Me,m.value)},null,8,rv)]))],4)}),128))],14,lv)):(l(),r("a",{key:1,href:c(p),class:x(["poster-item-link",{"with-outline":A.value}]),onClick:T},[(Ce=e.poster.animated)!=null&&Ce.path&&H.value?(l(),P(Yt,{key:0,"image-path":(ze=e.poster.image)==null?void 0:ze.path,path:e.poster.animated.path,width:e.poster.animated.width,height:e.poster.animated.height},null,8,["image-path","path","width","height"])):(l(),r("div",cv,[(Xe=e.poster.animated)!=null&&Xe.path||e.poster.withVideos?(l(),r("div",dv,[k(kn)])):h("",!0),s("picture",{innerHTML:c(yt)(e.poster,m.value)},null,8,vv)]))],10,uv)),!e.noInfo||!e.noIcons?(l(),r("div",fv,[e.noInfo?h("",!0):(l(),r("span",pv,[b.length&&(!e.forProfile||e.poster.profileId!=="ame")?(l(),P(Ps,{key:0,authors:b,position:e.poster.position},null,8,["position"])):h("",!0),w.length?(l(),P(Ps,{key:1,authors:w,position:e.poster.position,"for-pages":!0},null,8,["position"])):h("",!0),c(_)?(l(),r("h1",{key:2,class:"title",innerHTML:c(_)},null,8,hv)):h("",!0),c(g)?(l(),r("small",mv,B(c(g)),1)):h("",!0)])),e.noIcons?h("",!0):(l(),r("div",gv,[k(wn,{id:e.poster.crosslinkFrom||e.poster.id,target:"posters","poster-position":e.poster.position},null,8,["id","poster-position"]),k(bl,{"poster-id":e.poster.crosslinkFrom||e.poster.id,"poster-position":e.poster.position},null,8,["poster-id","poster-position"]),e.withBuyButton?(l(),P(Tl,{key:e.poster.id,item:e.poster,"icon-only":!0},null,8,["item"])):h("",!0)]))])):h("",!0)],2)}}},yv=["title","innerHTML"],et={__name:"ProfileIcon",props:{name:String,title:String,imagePath:String,noLetters:Boolean,classes:null},setup(e){const n=e,t=L(()=>n.imagePath&&n.imagePath!=="undefined"?ft(n.imagePath,"icon"):n.noLetters?"":`<div class="profile-icon-letters">${Ea(n.name||n.title)}</div>`);return(o,a)=>(l(),r("div",{class:x(["profile-icon",e.classes]),title:e.title||null,innerHTML:t.value},null,10,yv))}},_v=["title"],bv={class:"no-spacing"},kv=s("p",{class:"no-spacing"}," login ",-1),en={__name:"UserPill",props:{name:String,title:String,profilePicture:String,useCurrent:Boolean,forSideMenu:Boolean,small:Boolean,noPill:Boolean,link:String},setup(e){const n=e,t=L(()=>!!n.useCurrent&&!!Re.value);function o(u){if(n.link){u.stopPropagation(),u.preventDefault(),We.push(n.link);return}t.value&&c4()}const a=L(()=>t.value?S.value&&S.value.firstName?`${S.value.firstName} ${S.value.lastName||""}`:"":n.name?n.name:""),i=L(()=>t.value?S.value?S.value.profilePicture:"":n.profilePicture?n.profilePicture:"");return(u,d)=>t.value||a.value||i.value?(l(),r("div",{key:0,class:x(["user-pill",{"with-link":t.value||e.link,"for-side-menu":e.forSideMenu,small:e.small,"no-pill":e.noPill}]),title:e.title||null,onClick:o},[k(et,{name:a.value,"image-path":i.value,classes:{small:e.small}},null,8,["name","image-path","classes"]),s("p",bv,B(e.forSideMenu?"account":a.value),1)],10,_v)):e.forSideMenu?(l(),r("div",{key:1,class:"user-pill with-link for-side-menu",onClick:d[0]||(d[0]=(...m)=>c(De)&&c(De)(...m))},[k(et,{"image-path":"_assets/icon-circle.png"}),kv])):h("",!0)}},$v={class:"module-collection white-theme"},wv={class:"collection-info"},Mv={class:"collection-info-heading"},Tv={class:"collection-titles"},Lv={key:0,class:"collection-heading"},Cv={class:"big"},Av={class:"collection-description"},Sv=["innerHTML"],xv=s("div",{class:"collection-arrow"},[s("span",{class:"arrow-text show"},"â")],-1),Pv={class:"collection-info-footer"},Hv={key:0},Iv={class:"collection-footer-links"},Bv={class:"container padding-top-1"},Ev={class:"row"},Vv={__name:"ModuleCollection",props:{collection:Object},setup(e){return(n,t)=>{const o=he("router-link");return l(),r("div",$v,[k(o,{to:c(At)(e.collection),class:"collection-header active",onMouseenter:t[0]||(t[0]=a=>c(Ee)({name:"collection",id:e.collection.id}))},{default:re(()=>[s("div",wv,[s("div",Mv,[s("div",Tv,[e.collection.heading||Array.isArray(e.collection.tags)?(l(),r("p",Lv,B(e.collection.heading?e.collection.heading:e.collection.tags.join(", ")),1)):h("",!0),s("h1",Cv,B(e.collection.name),1)]),s("div",Av,[e.collection.description?(l(),r("p",{key:0,innerHTML:c(vt)(e.collection.description)},null,8,Sv)):h("",!0),k(en,{name:e.collection.userName,"profile-picture":e.collection.userProfilePicture,link:e.collection.userLink,small:!0,"no-pill":!0},null,8,["name","profile-picture","link"])]),xv]),s("div",Pv,[e.collection.postersCount?(l(),r("small",Hv,B(e.collection.postersCount)+" "+B(e.collection.postersCount>1?"posters":"poster"),1)):h("",!0),s("div",Iv,[k(wn,{id:e.collection.id,target:"collections","text-and-icon":!0},null,8,["id"]),k(Nt,{intent:"collection",position:"bottom",item:e.collection},null,8,["item"])])])])]),_:1},8,["to"]),s("div",Bv,[s("div",Ev,[(l(!0),r(Q,null,oe(e.collection.posters,a=>(l(),P(Fn,{key:a.id,size:"small","route-to":c(At)(e.collection),poster:a,class:"col-6 col-md-2","no-animated":!0},null,8,["route-to","poster"]))),128))])])])}}},Ov={class:"module-profiles gray-theme container"},Fv={class:"row"},Dv={class:"col-12 padding-top-1-5"},Nv={class:"highlight tight side-title-home"},Uv={class:"col-12 padding-top-2"},Rv={class:"row module-profiles-row"},zv={class:"col-12 col-lg-4"},jv={class:"module-profiles-name"},qv={class:"big"},Yv={key:0},Kv=s("span",{class:"arrow-text"},"â",-1),Gv={class:"col-12 col-lg-8"},Zv={class:"module-profiles-posters"},Wv=["innerHTML"],Jv={__name:"ModuleProfiles",props:{profiles:Array,title:String},setup(e){const n=e,t=n.title||`new profile${n.profiles.length>
251?"s":""}`;return(o,a)=>{const i=he("router-link");return l(),r("div",Ov,[s("div",Fv,[s("div",Dv,[s("h1",Nv,B(c(t)),1)]),s("div",Uv,[(l(!0),r(Q,null,oe(e.profiles,u=>(l(),P(i,{key:u.id,to:c(lo)(u),class:"module-profiles-link",onMouseenter:d=>c(Ee)({name:"profile",id:u.id})},{default:re(()=>[s("div",Rv,[s("div",zv,[s("div",jv,[s("div",null,[s("h1",qv,B(u.name),1),u.category!=="competition"?(l(),r("h6",Yv,B(u.country),1)):h("",!0)]),s("div",null,[Kv,k(et,{classes:"large",name:u.name,"image-path":u.profilePicture},null,8,["name","image-path"])])])]),s("div",Gv,[s("div",Zv,[(l(!0),r(Q,null,oe(c(V).mobile?u.posters.slice(0,6):u.posters,(d,m)=>(l(),r("picture",{key:m,innerHTML:c(yt)(d,"search-mobile")},null,8,Wv))),128))])])])]),_:2},1032,["to","onMouseenter"]))),128))])])])}}},Qv={},Xv={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon collections-icon"},ef=s("polygon",{points:"26,20 24,20 24,24 20,24 20,26 24,26 24,30 26,30 26,26 30,26 30,24 26,24"},null,-1),tf=s("path",{d:"M28,8H16l-3.4-3.4C12.2,4.2,11.7,4,11.2,4H4C2.9,4,2,4.9,2,6v20c0,1.1,0.9,2,2,2h14v-2H4V6h7.2l3.4,3.4l0.6,0.6H28v8h2v-8 C30,8.9,29.1,8,28,8z"},null,-1),nf=s("title",null,"Collections",-1),of=[ef,tf,nf];function sf(e,n){return l(),r("svg",Xv,of)}const ho=le(Qv,[["render",sf]]),lf={class:"module-posters-feature color-links large"},af={class:"posters"},rf=["innerHTML"],uf={key:0,class:"container"},cf={class:"row"},df=s("div",{class:"col-12 col-lg-4"},null,-1),vf={class:"col-12 col-lg-8 texts"},ff=s("div",null,null,-1),pf={class:"follow-combo"},hf={href:"https://www.instagram.com/typographicposters",target:"_blank",rel:"noopener"},mf={href:"https://www.instagram.com/typographic.store",target:"_blank",rel:"noopener"},gf={__name:"ModulePostersFeature",props:{posters:Array,text:String},setup(e){const n=e,t=L(()=>V.mobile?n.posters.slice(0,60).filter(a=>{var i;return!!((i=a.image)!=null&&i.path)}):n.posters.filter(a=>{var i;return!!((i=a.image)!=null&&i.path)}));function o(a){ae.value||(a.preventDefault(),a.stopPropagation(),De(),bt.value=()=>{We.push("archive")})}return(a,i)=>{const u=he("router-link");return l(),r("div",lf,[k(u,{to:"/archive",class:"posters-wrap",onMouseenter:i[0]||(i[0]=d=>c(Ee)("archive"))},{default:re(()=>[s("div",af,[(l(!0),r(Q,null,oe(t.value,(d,m)=>(l(),r("div",{key:m,class:"poster",innerHTML:c(za)({image:d.image,cdn:"videos"})},null,8,rf))),128))])]),_:1}),k(u,{to:"/archive"},{default:re(()=>[s("button",{type:"button",class:"large-pill blue with-icon right",onClick:o},[N(" start your own collections "),k(ho)])]),_:1}),(l(),r("div",uf,[s("div",cf,[df,s("div",vf,[ff,s("div",pf,[N(" follow us "),s("a",hf,[k(qn,{title:"instagram t/g posters"}),N(" t/g posters ")]),s("a",mf,[k(qn,{title:"instagram t/g store"}),N(" t/g store ")])])])])]))])}}},yf={class:"module-store-feature color-links"},_f={class:"container infos"},bf={class:"row"},kf={class:"col-12"},$f={class:"small"},wf=["innerHTML"],Mf=["href"],Tf={class:"wrap"},Lf=["href"],Cf=["src"],Af=["src"],Sf={__name:"ModuleStoreFeature",props:{text:String,link:String,linkText:String,videoPath:String,videoPathMobile:String,image:String,imageMobile:String,imageLink:String},setup(e){return(n,t)=>(l(),r("div",yf,[s("div",_f,[s("div",bf,[s("div",kf,[s("h1",$f,[s("span",{innerHTML:e.text},null,8,wf),e.linkText&&e.link?(l(),r(Q,{key:0},[N(" > "),s("a",{href:e.link,target:"_blank",rel:"noopener",class:"bold"},B(e.linkText),9,Mf)],64)):h("",!0)])])])]),s("div",Tf,[s("a",{target:"_blank",rel:"noopener",class:"feature-link",href:e.imageLink},[e.videoPath&&e.videoPathMobile?(l(),r("video",{key:0,class:"full-img",src:c(V).mobile?`https://assets.typographicposters.com/animated-poster${e.videoPathMobile}`:`https://assets.typographicposters.com/animated-poster${e.videoPath}`,autoplay:"",loop:"",muted:"",playsinline:""},null,8,Cf)):(l(),r("img",{key:1,class:"full-img",src:c(V).mobile&&e.imageMobile?e.imageMobile:e.image,alt:"typo/graphic store"},null,8,Af))],8,Lf)])]))}},xf={class:"module-profiles gray-theme container"},Pf={class:"row"},Hf={class:"col-12 padding-top-1-5"},If=["innerHTML"],Bf={key:0,class:"col-12 padding-top-2"},Ef={class:"row module-profiles-row"},Vf={class:"col-12 col-lg-4"},Of={class:"module-profiles-name"},Ff=["innerHTML"],Df=["innerHTML"],Nf=s("span",{class:"arrow-text"},"â",-1),Uf={class:"col-12 col-lg-8"},Rf={class:"module-profiles-posters"},zf=["innerHTML"],jf={__name:"ModuleFeaturedAuthors",props:{profiles:[Array,Object],title:String},setup(e){return(n,t)=>{var a;const o=he("router-link");return l(),r("div",xf,[s("div",Pf,[s("div",Hf,[e.title?(l(),r("h1",{key:0,class:"highlight tight side-title-home",innerHTML:e.title},null,8,If)):h("",!0)]),(a=e.profiles)!=null&&a.length?(l(),r("div",Bf,[(l(!0),r(Q,null,oe(e.profiles,i=>(l(),P(o,{key:i.id,to:c(lo)(i),class:"module-profiles-link",onMouseenter:u=>c(Ee)({name:"profile",id:i.id})},{default:re(()=>[s("div",Ef,[s("div",Vf,[s("div",Of,[s("div",null,[s("h1",{class:"big",innerHTML:i.name},null,8,Ff),s("h6",{innerHTML:c(sl)(i)},null,8,Df)]),s("div",null,[Nf,k(et,{classes:"large",name:i.name,"image-path":i.profilePicture},null,8,["name","image-path"])])])]),s("div",Uf,[s("div",Rf,[(l(!0),r(Q,null,oe(c(V).mobile?i.images.slice(0,6):i.images,(u,d)=>(l(),r("picture",{key:d,innerHTML:c(yt)(u,"search")},null,8,zf))),128))])])])]),_:2},1032,["to","onMouseenter"]))),128))])):h("",!0)])])}}},qf={props:{messages:{type:Array,default:()=>[]}}},Yf={class:"white-theme w-imgs margin-bottom-4"},Kf={class:"container"},Gf=["href"],Zf={class:"message-item"},Wf=["innerHTML"],Jf={class:"col-12 col-md-6"},Qf=["innerHTML"],Xf=["innerHTML"];function ep(e,n,t,o,a,i){return l(),r("div",Yf,[s("div",Kf,[s("div",{class:x(["row messages-row",{tight:t.messages.length===4}])},[(l(!0),r(Q,null,oe(t.messages,u=>(l(),r("div",{key:u.id,class:x(["col-12 col-lg-6 margin-bottom-3",{"col-xxl-6":t.messages.length===4||t.messages.length===2,"col-xxl-4":t.messages.length!==4&&t.messages.length!==2}])},[s("a",{href:u.url,rel:"noopener",target:"_blank"},[s("div",Zf,[u.image?(l(),r("div",{key:0,class:"col-12 col-md-6",innerHTML:u.image.imageTag},null,8,Wf)):h("",!0),s("div",Jf,[s("h1",{class:"padding-bottom-2",innerHTML:u.title},null,8,Qf),s("div",{class:"content-style padding-bottom-1",innerHTML:u.content},null,8,Xf)])])],8,Gf)],2))),128))],2)])])}const tp=le(qf,[["render",ep]]),np="AS",op="EU",sp="AF",lp="EU",ap="EU",ip="NA",rp="OC",up="NA",cp="NA",dp="AS",vp="SA",fp="AS",pp="AF",hp="AF",mp="AS",gp="NA",yp="AN",_p="AF",bp="OC",kp="NA",$p="SA",wp="NA",Mp="EU",Tp="EU",Lp="NA",Cp="EU",Ap="AF",Sp="EU",xp="OC",Pp="AF",Hp="AS",Ip="AS",Bp="EU",Ep="OC",Vp="AF",Op="OC",Fp="NA",Dp="AN",Np="EU",Up="AF",Rp="NA",zp="AS",jp="SA",qp="EU",Yp="SA",Kp="AS",Gp="NA",Zp="EU",Wp="AF",Jp="NA",Qp="AF",Xp="AF",eh="NA",th="EU",nh="AF",oh="AS",sh="AF",lh="AS",ah="EU",ih="NA",rh="EU",uh="AS",ch="NA",dh="AN",vh="SA",fh="NA",ph="AS",hh="OC",mh="EU",gh="EU",yh="SA",_h="AS",bh="NA",kh="OC",$h="OC",wh="SA",Mh="AS",Th="AS",Lh="OC",Ch="EU",Ah="NA",Sh="AF",xh="AF",Ph="EU",Hh="AF",Ih="AF",Bh="SA",Eh="EU",Vh="AS",Oh="OC",Fh="AF",Dh="AF",Nh="AF",Uh="AS",Rh="EU",zh="AF",jh="EU",qh="EU",Yh="AF",Kh="NA",Gh="AF",Zh="EU",Wh="AS",Jh="AS",Qh="AF",Xh="AS",em="AS",tm="OC",nm="EU",om="AF",sm="EU",lm="AF",am="AS",im="NA",rm="OC",um="NA",cm="AF",dm="EU",vm="AF",fm="AF",pm="AS",hm="NA",mm="AS",gm="EU",ym="AS",_m="AF",bm="EU",km="OC",$m="SA",wm="OC",Mm="EU",Tm="NA",Lm="EU",Cm="EU",Am="AF",Sm="OC",xm="OC",Pm="AF",Hm="OC",Im="AF",Bm="OC",Em="AS",Vm="OC",Om="OC",Fm="OC",Dm="EU",Nm="AF",Um="EU",Rm="SA",zm="AS",jm="AF",qm="SA",Ym="AS",Km="NA",Gm="AF",Zm="AF",Wm="AF",Jm="EU",Qm="EU",Xm="AS",e1="NA",t1="NA",n1="AF",o1="NA",s1="AF",l1="AS",a1="NA",i1="AS",r1="AF",u1="AF",c1="SA",d1="OC",v1="AS",f1="NA",p1="AF",h1="AF",m1="EU",g1="AS",y1="EU",_1="AS",b1="AS",k1="AF",$1="EU",w1="AF",M1="AF",T1="AS",L1="NA",C1="AS",A1="EU",S1="AF",x1="NA",P1="NA",H1="AF",I1="EU",B1="NA",E1="EU",V1="AS",O1="AF",F1="NA",D1="SA",N1="AF",U1="OC",R1="AS",z1="NA",j1="AS",q1="OC",Y1="AS",K1="NA",G1="AS",Z1="AS",W1="EU",J1="EU",Q1="OC",X1="EU",eg="EU",tg="AF",ng="AF",og="AS",sg="AN",lg="AF",ag="AF",ig="NA",rg="AF",ug="EU",cg="NA",dg="AS",vg="EU",fg="NA",pg="AS",hg="NA",mg="NA",gg="EU",yg="AS",_g="AS",bg="EU",kg="AF",$g="AN",wg="OC",Mg="SA",Tg="OC",Lg="EU",Cg="NA",Ag="AS",Sg="EU",xg="AS",Pg="EU",Hg="AS",Ig="EU",Bg="AS",Eg="AF",Vg={BD:np,BE:op,BF:sp,BG:lp,BA:ap,BB:ip,WF:rp,BL:up,BM:cp,BN:dp,BO:vp,BH:fp,BI:pp,BJ:hp,BT:mp,JM:gp,BV:yp,BW:_p,WS:bp,BQ:kp,BR:$p,BS:wp,JE:Mp,BY:Tp,BZ:Lp,RU:Cp,RW:Ap,RS:Sp,TL:xp,RE:Pp,TM:Hp,TJ:Ip,RO:Bp,TK:Ep,GW:Vp,GU:Op,GT:Fp,GS:Dp,GR:Np,GQ:Up,GP:Rp,JP:zp,GY:jp,GG:qp,GF:Yp,GE:Kp,GD:Gp,GB:Zp,GA:Wp,SV:Jp,GN:Qp,GM:Xp,GL:eh,GI:th,GH:nh,OM:oh,TN:sh,JO:lh,HR:ah,HT:ih,HU:rh,HK:uh,HN:ch,HM:dh,VE:vh,PR:fh,PS:ph,PW:hh,PT:mh,SJ:gh,PY:yh,IQ:_h,PA:bh,PF:kh,PG:$h,PE:wh,PK:Mh,PH:Th,PN:Lh,PL:Ch,PM:Ah,ZM:Sh,EH:xh,EE:Ph,EG:Hh,ZA:Ih,EC:Bh,IT:Eh,VN:Vh,SB:Oh,ET:Fh,SO:Dh,ZW:Nh,SA:Uh,ES:Rh,ER:zh,ME:jh,MD:qh,MG:Yh,MF:Kh,MA:Gh,MC:Zh,UZ:Wh,MM:Jh,ML:Qh,MO:Xh,MN:em,MH:tm,MK:nm,MU:om,MT:sm,MW:lm,MV:am,MQ:im,MP:rm,MS:um,MR:cm,IM:dm,UG:vm,TZ:fm,MY:pm,MX:hm,IL:mm,FR:gm,IO:ym,SH:_m,FI:bm,FJ:km,FK:$m,FM:wm,FO:Mm,NI:Tm,NL:Lm,NO:Cm,NA:Am,VU:Sm,NC:xm,NE:Pm,NF:Hm,NG:Im,NZ:Bm,NP:Em,
25NR:Vm,NU:Om,CK:Fm,XK:Dm,CI:Nm,CH:Um,CO:Rm,CN:zm,CM:jm,CL:qm,CC:Ym,CA:Km,CG:Gm,CF:Zm,CD:Wm,CZ:Jm,CY:Qm,CX:Xm,CR:e1,CW:t1,CV:n1,CU:o1,SZ:s1,SY:l1,SX:a1,KG:i1,KE:r1,SS:u1,SR:c1,KI:d1,KH:v1,KN:f1,KM:p1,ST:h1,SK:m1,KR:g1,SI:y1,KP:_1,KW:b1,SN:k1,SM:$1,SL:w1,SC:M1,KZ:T1,KY:L1,SG:C1,SE:A1,SD:S1,DO:x1,DM:P1,DJ:H1,DK:I1,VG:B1,DE:E1,YE:V1,DZ:O1,US:F1,UY:D1,YT:N1,UM:U1,LB:R1,LC:z1,LA:j1,TV:q1,TW:Y1,TT:K1,TR:G1,LK:Z1,LI:W1,LV:J1,TO:Q1,LT:X1,LU:eg,LR:tg,LS:ng,TH:og,TF:sg,TG:lg,TD:ag,TC:ig,LY:rg,VA:ug,VC:cg,AE:dg,AD:vg,AG:fg,AF:pg,AI:hg,VI:mg,IS:gg,IR:yg,AM:_g,AL:bg,AO:kg,AQ:$g,AS:wg,AR:Mg,AU:Tg,AT:Lg,AW:Cg,IN:Ag,AX:Sg,AZ:xg,IE:Pg,ID:Hg,UA:Ig,QA:Bg,MZ:Eg},Og={AF:"Africa",NA:"North America",OC:"Oceania",AN:"Antarctica",AS:"Asia",EU:"Europe",SA:"South America"};function Fg(e){e=String(e).toUpperCase();const n=Vg[e]||null;return n?{code:n,name:Og[n]}:null}const Dg={mixins:[vo],props:{initialAddress:{type:String,default:""},types:{type:Array,default:()=>["(cities)"]}},setup(e,{emit:n}){const t=f(null),o=f(""),a=f(!1);let i=null;yn(()=>{var v;e.types[0]==="(cities)"&&e.modelValue.city&&e.modelValue.country?o.value=e.modelValue.city+", "+e.modelValue.country:o.value=(v=e.modelValue)==null?void 0:v.address});const u=sn({props:e,emit:n,isEmpty:L(()=>!o.value)});z(o,()=>{o.value||u.update("")});const d=v=>{if(!v||!v.geometry)return null;const p={placeId:v.place_id,address:v.formatted_address,name:v.name,geopoint:{type:"Point",coordinates:[v.geometry.location.lng(),v.geometry.location.lat()]}};if(v.address_components){for(const y of v.address_components)switch(y.types[0]){case"country":p.country=y.long_name,p.countryCode=y.short_name;break;case"administrative_area_level_1":p.region=y.long_name;break;case"administrative_area_level_2":case"locality":p.city||(p.city=y.long_name);break;case"postal_town":p.city=y.long_name;break;case"route":p.route=y.long_name;break;case"street_number":p.streetNumber=y.long_name;break;case"postal_code":p.postalCode=y.long_name;break}if(p.countryCode){const y=Fg(p.countryCode);y&&(p.continent=y.name,p.continentCode=y.code)}}return p},m=()=>{const v=i.getPlace();u.update(d(v))};return be(async()=>{a.value=await d4(),i=new window.google.maps.places.Autocomplete(t.value,{types:e.types,language:"en"}),i.addListener("place_changed",m),e.focusOnMounted&&!$e&&setTimeout(()=>{t.value.focus()},200)}),sa(()=>{i=null}),{...u,input:t,address:o,loadedGoogleMaps:a}}},Ng=["for","innerHTML"],Ug=["innerHTML"],Rg=["id","name","required","disabled","autocomplete","placeholder"];function zg(e,n,t,o,a,i){return l(),r("div",{class:x(["field",{active:!!e.modelValue,error:e.errorField&&e.errorField===e.name,"with-instructions":!!e.instructions}])},[e.labelComputed?(l(),r("label",{key:0,for:e.uniqueId,innerHTML:e.labelComputed},null,8,Ng)):h("",!0),e.instructions?(l(),r("h6",{key:1,class:"instructions",innerHTML:e.instructions},null,8,Ug)):h("",!0),ne(s("input",{id:e.uniqueId,ref:"input","onUpdate:modelValue":n[0]||(n[0]=u=>o.address=u),name:e.name,class:"field-input",type:"text",required:o.loadedGoogleMaps?e.required:!1,disabled:e.disabled?e.disabled:null,autocomplete:e.autocomplete?e.autocomplete:null,placeholder:e.placeholder?e.placeholder:null,autocorrect:"off",spellcheck:"false",onBlur:n[1]||(n[1]=(...u)=>e.onBlur&&e.onBlur(...u)),onFocus:n[2]||(n[2]=(...u)=>e.onFocus&&e.onFocus(...u))},null,40,Rg),[[eo,o.address]])],2)}const Ll=le(Dg,[["render",zg]]),jg={key:0},qg={key:0},Yg={class:"margin-top-2"},Kg=["innerHTML"],Gg={class:"button-group"},Zg=["disabled","innerHTML"],Wg=["innerHTML"],Jg={class:"margin-top-5"},Qg={key:0,class:"inline-block margin-bottom-2 active-links"},Xg=s("br",null,null,-1),ey={key:1},ty={key:1,class:"active-links"},ny=s("p",null,"Please enter the verification code sent to your email:",-1),oy=s("button",{class:"large-pill more-pad stateful margin-top-2",innerHTML:"confirm"},null,-1),sy=["innerHTML"],ds={__name:"CreateAccount",props:{formOnly:Boolean},setup(e){function n(C){gn.value="create",K.value=C}const t=f(""),o=f(""),a=f(!1),i=f(null),u=f(!1),d=f(""),m=f(""),v=f(!1);function p(C){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(C)}z(t,()=>{u.value=p(t.value)}),be(()=>{setTimeout(()=>{const C=new URLSearchParams(window.location.search);t.value=C.get("email")||""}
25,120)});const y=L(()=>(fe.value||!u.value,"")),g=L(()=>!fe.value&&u.value&&o.value.length>=8),b=L(()=>fe.value?"please wait":u.value?o.value.length<8?"Fill your password":"Create account":"Fill your e-mail"),w=L(()=>u.value);async function M(){if(!g.value)return;m.value="";const C=await La(t.value,o.value,a.value,i.value,oo.value);m.value=C.errorMessage||"",m.value=m.value.replace("Password did not conform with policy: ","").replace("User already exists","User already exists, please go back and login instead"),v.value=!m.value}const _=L(()=>o.value.length&&o.value.length<8?"mininum 8 characters":"");async function T(){m.value="";const C=await Zo(t.value,o.value,d.value);m.value=C.errorMessage||"",m.value||await Oo()}return(C,$)=>(l(),r(Q,null,[v.value?h("",!0):(l(),r("div",jg,[e.formOnly?h("",!0):(l(),r("p",qg," create your typo/graphic account ")),s("form",{onSubmit:U(M,["prevent"])},[k(Se,{modelValue:t.value,"onUpdate:modelValue":$[0]||($[0]=A=>t.value=A),label:"E-mail",type:"email"},null,8,["modelValue"]),k(_n,{name:"list"},{default:re(()=>[w.value?(l(),P(Se,{key:0,modelValue:o.value,"onUpdate:modelValue":$[1]||($[1]=A=>o.value=A),label:"Password",type:"password",autocomplete:"new-password","error-message":_.value},null,8,["modelValue","error-message"])):h("",!0),w.value?(l(),P(Kn,{key:1,modelValue:a.value,"onUpdate:modelValue":$[2]||($[2]=A=>a.value=A),label:"Newsletters","enabled-label":"will subscribe","disabled-label":"will not subscribe"},null,8,["modelValue"])):h("",!0),w.value?(l(),P(Ll,{key:2,modelValue:i.value,"onUpdate:modelValue":$[3]||($[3]=A=>i.value=A),label:"Country",types:["country"],placeholder:" "},null,8,["modelValue"])):h("",!0)]),_:1}),s("div",Yg,[ne(s("p",{class:"padding-top-3",innerHTML:y.value},null,8,Kg),[[se,y.value]]),s("div",Gg,[s("button",{class:"large-pill more-pad stateful",disabled:!g.value,innerHTML:b.value},null,8,Zg)]),ne(s("p",{class:"padding-top-2 color-error",innerHTML:m.value},null,8,Wg),[[se,m.value]])])],32),s("div",Jg,[!e.formOnly||w.value?(l(),r("small",Qg,[N("By creating an account you agree to our"),Xg,s("a",{href:"/terms-of-service",onClick:$[4]||($[4]=U(A=>n("terms-of-service"),["prevent"]))},"Terms of Service"),N(" and "),s("a",{href:"/privacy-policy",onClick:$[5]||($[5]=U(A=>n("privacy-policy"),["prevent"]))},"Privacy Policy"),N(".")])):h("",!0),e.formOnly?h("",!0):(l(),r("div",ey,[s("small",{class:"color-link inline-block",onClick:$[6]||($[6]=(...A)=>c(ot)&&c(ot)(...A))}," â back ")]))])])),v.value?(l(),r("div",ty,[ny,s("form",{onSubmit:U(T,["prevent"])},[k(Se,{modelValue:d.value,"onUpdate:modelValue":$[7]||($[7]=A=>d.value=A),type:null,required:!0,label:"Verification code",autocomplete:"one-time-code",register:""},null,8,["modelValue"]),oy,ne(s("p",{class:"padding-top-2 color-error",innerHTML:m.value},null,8,sy),[[se,m.value]])],32),s("small",{class:"color-link inline-block padding-top-5",onClick:$[8]||($[8]=(...A)=>c(ot)&&c(ot)(...A))}," â back ")])):h("",!0)],64))}},ly={key:0,class:"white-theme margin-bottom-4 padding-top-3 padding-bottom-1"},ay={class:"container"},iy={class:"row"},ry={class:"col-12 col-lg-3 content-style padding-top-1 padding-bottom-2 active-links"},uy=s("h2",{class:"padding-bottom-2"}," Create your account (it's free) ",-1),cy=["innerHTML"],dy={style:{"padding-top":"16px"}},vy=s("div",{class:"col-12 col-lg-1"},null,-1),fy={class:"col-12 col-lg-4 padding-top-1"},py=s("div",{class:"col-12 col-lg-3 content-style padding-top-1 padding-bottom-2"},null,-1),hy={__name:"ModuleCreateAccount",props:{content:String},setup(e){return(n,t)=>c(ae)?h("",!0):(l(),r("div",ly,[s("div",ay,[s("div",iy,[s("div",ry,[uy,s("span",{innerHTML:e.content},null,8,cy),s("small",dy,[N("Already have an account, "),s("a",{href:"/login",onClick:t[0]||(t[0]=U((...o)=>c(De)&&c(De)(...o),["prevent"]))},"login here")])]),vy,s("div",fy,[k(ds,{"form-only":!0})]),py])])]))}},my={key:0},gy={class:"container home-archive-call color-links"},Qe={__name:"Home",setup(e){const n={ModulePostersFeature:gf,ModuleStoreFeature:Sf,ModuleCollection:Vv,ModuleProfiles:Jv,ModuleFeaturedAuthors:jf,ModuleMessageBoard:tp,ModuleCreateAccount:hy};return(t,o)=>(l(),r("div",null,[c(ue).home?(l(),r("div",my,[(l(!0),r(Q,null,oe(c(ue).home.modules,(a,i)=>(l(),P($n(n[a.component]),Nn({key:a.component+i},a),null,16))),128))])):h("",!0),s("div",gy,[s("h1",null,[s("a",{href:"/join",onClick:o[0]||(o[0]=U((...a)=>c(nn)&&c(nn)(...a),["prevent"]))}," support us â ")])])]))}},yy={}
25,_y={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon search-icon"},by=s("path",{d:"M30,28.59,22.45,21A11,11,0,1,0,21,22.45L28.59,30ZM5,14a9,9,0,1,1,9,9A9,9,0,0,1,5,14Z"},null,-1),ky=s("title",null,"Search",-1),$y=[by,ky];function wy(e,n){return l(),r("svg",_y,$y)}const vs=le(yy,[["render",wy]]);async function Cl(e){}const My={},Ty={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon icon-awards"},Ly=s("path",{d:"M16,6.52l2.76,5.58.46,1,1,.15,6.16.89L22,18.44l-.75.73.18,1,1.05,6.13-5.51-2.89L16,23l-.93.49L9.56,26.34l1-6.13.18-1L10,18.44,5.58,14.09l6.16-.89,1-.15.46-1L16,6.52M16,2l-4.55,9.22L1.28,12.69l7.36,7.18L6.9,30,16,25.22,25.1,30,23.36,19.87l7.36-7.17L20.55,11.22Z"},null,-1),Cy=s("title",null,"Awards",-1),Ay=[Ly,Cy];function Sy(e,n){return l(),r("svg",Ty,Ay)}const xy=le(My,[["render",Sy]]),Py={key:0,class:"poster-canvas-infos"},Hy={class:"toolbar"},Iy={class:"poster-canvas-infos-scroll content-style"},By={class:"padding-bottom-2",style:{"padding-top":"3px"}},Ey=["innerHTML"],Vy=["innerHTML"],Oy=["aria-label","innerHTML"],Fy={key:1,class:"lining-numbers small"},Dy={key:0,class:"padding-bottom-2 active-links"},Ny=s("hr",null,null,-1),Uy=["innerHTML"],Ry={key:1,class:"padding-bottom-2"},zy=s("hr",null,null,-1),jy=["innerHTML"],qy={key:1,class:"padding-top-1"},Yy=["innerHTML"],Ky=["innerHTML"],Gy=["innerHTML"],Zy={key:2,class:"padding-bottom-2 common-links"},Wy=s("hr",null,null,-1),Jy={class:"bold"},Qy={key:0},Xy=["href","innerHTML"],e0=["href","innerHTML"],t0=["innerHTML"],n0=s("hr",null,null,-1),o0={key:0,class:"padding-bottom-2"},s0={key:0},l0={key:0},a0=["href"],i0={key:3},r0={key:1},u0={class:"split-h padding-bottom-2"},c0={class:"author-label"},d0=["innerHTML"],v0={key:0},f0={key:1,class:"padding-bottom-2"},p0={class:"author-label"},h0=["href"],m0={key:1},g0=s("hr",null,null,-1),y0={class:"color-links"},_0=["innerHTML"],b0={__name:"PosterCanvasInfos",props:{poster:[Object,null],forProfile:Boolean,canvas:null},setup(e){const n=e,t=L(()=>V.mobile||V.md?"top":"bottom"),o=L(()=>V.mobile||V.md?n.canvas:null);function a(m,v){v&&(Po(v,n.poster.position),v===n.poster.profileId&&(Jn.value++,m.stopPropagation(),m.preventDefault()))}const i=L(()=>!n.poster.profileCategory||n.poster.profileCategory==="designer"||n.poster.profileCategory==="studio"),u=L(()=>{var y;const m=[].concat(n.poster.crosslinkTo||[],n.poster.crosslinkFromValues||[]);i.value||m.unshift({id:n.poster.profileId,name:n.poster.profileName,profilePicture:n.poster.profilePicture,profileCategory:n.poster.profileCategory});const v=[];for(const g of m){if(g.id===n.poster.profileId&&i.value)continue;((y=n.poster.authors)==null?void 0:y.find(w=>w.id===g.id))||v.findIndex(w=>w.id===g.id||w.name===g.name)&&v.push(g)}const p=["designer","studio","music-venue","museum","art-gallery","cultural-center","project","education","festival","competition","exhibition","type-foundry"];return v.length&&v.sort((g,b)=>{const w=p.findIndex(_=>_===g.profileCategory),M=p.findIndex(_=>_===b.profileCategory);return w>M?1:0}),v}),d=L(()=>{var p;const m=[],v=[];if(i.value&&v.push({id:n.poster.profileId,name:n.poster.profileName,profilePicture:n.poster.profilePicture,profileCategory:n.poster.profileCategory}),(p=n.poster.authors)!=null&&p.length)for(const y of n.poster.authors)y.name&&v.push({id:y.id,name:y.name,url:Bn(y),profilePicture:y.profilePicture});v.length&&m.push({authors:v,isAuthor:!0});for(const y of u.value)m.push({authors:[y]});return m});return(m,v)=>{const p=he("RouterLink"),y=he("router-link");return e.poster?(l(),r("div",Py,[s("div",Hy,[k(wn,{id:e.poster.crosslinkFrom||e.poster.id,pill:!0,target:"posters","poster-position":e.poster.position,position:t.value},null,8,["id","poster-position","position"]),k(bl,{pill:!0,position:t.value,"poster-id":e.poster.crosslinkFrom||e.poster.id,"poster-position":e.poster.position},null,8,["position","poster-id","poster-position"]),(l(),P(Nt,{key:e.poster.id,intent:"poster",position:t.value,item:e.poster,"scroll-target":o.value},null,8,["position","item","scroll-target"])),(l(),P(Tl,{key:e.poster.id,position:t.value,item:e.poster,"scroll-target":o.value},null,8,["position","item","scroll-target"]))]),s("div",Iy,[s("div",By,[s("h1",{innerHTML:c(jn)(e.poster)},null,8,Ey),s("h6",{innerHTML:c(il)(e.poster,!1,!0)},null,8,Vy),e.poster.categoryLabel&&e.forProfile&&e.poster.profileId==="100besteplakate"?(l(),r("h6",{key:0,"aria-label":e.poster.categoryLabel.tooltip,class:x(e.poster.categoryLabel.tooltipClass),innerHTML:e.poster.categoryLabel.name},null,10,Oy)):h("",!0),e.poster.articleNumber?(l(),r("h6",Fy," article #"+B(e.poster.articleNumber),1)):h("",!0)]),e.poster.notice?(l(),r("div",Dy,[Ny,s("span",{innerHTML:e.poster.notice},null,8,Uy)])):h("",!0),e.poster.description||e.poster.details||e.poster.printedBy||e.poster.client?(l(),r("div",Ry,[zy,e.poster.description?(l(),r("p",{key:0,class:"content-pad-top",innerHTML:c(vt)(e.poster.description)},null,8,jy)):(l(),r("div",qy)),e.poster.client?(l(),r("h6",{key:2,innerHTML:`client: ${e.poster.client}`},null,8,Yy)):h("",!0),e.poster.details?(l(),r("h6",{key:3,innerHTML:c(vt)(e.poster.details)},null,8,Ky)):h("",!0),e.poster.printedBy?(l(),r("h6",{key:4,innerHTML:`printed by: ${e.poster.printedBy}`},null,8,Gy)):h("",!0)])):h("",!0),Array.isArray(e.poster.awards)&&e.poster.awards.length?(l(),r("div",Zy,[Wy,s("h6",Jy,[k(xy),N(" awards ")]),s("p",null,[(l(!0),r(Q,null,oe(e.poster.awards,(g,b)=>(l(),r("span",{key:g.name+b},[b>0?(l(),r("br",Qy)):h("",!0),N(" . "),e.forProfile&&e.poster.profileId===g.id?(l(),r("a",{key:1,href:`/${g.id}`,onClick:v[0]||(v[0]=U(w=>Jn.value++,["stop","prevent"])),innerHTML:g.name},null,8,Xy)):g.id?(l(),P(p,{key:2,to:`/${g.id}`,onClick:w=>c(Po)(g.id,e.poster.position),onMouseenter:w=>c(Ee)({name:"profile",id:g.id}),innerHTML:g.name},null,8,["to","onClick","onMouseenter","innerHTML"])):c(Bn)(g)?(l(),r("a",{key:3,href:c(Bn)(g),target:"_blank",rel:"noopener",innerHTML:g.name},null,8,e0)):(l(),r("span",{key:4,innerHTML:g.name},null,8,t0))]))),128))])])):h("",!0),(l(!0),r(Q,null,oe(d.value,(g,b)=>(l(),r("div",{key:e.poster.id+b,class:"color-links"},[n0,g.authors.length>1?(l(),r("div",o0,[g.isAuthor?(l(),r("h6",s0," authors ")):h("",!0),s("h2",null,[(l(!0),r(Q,null,oe(g.authors,(w,M)=>(l(),r("span",{key:w.name+M+b+e.poster.id},[M?(l(),r("span",l0,B(M===g.authors.length-1?" & ":", "),1)):h("",!0),w.id?(l(),P(y,{key:1,to:`/${w.id}`,onClick:_=>a(_,w.id),onMouseenter:_=>c(Ee)({name:"profile",id:w.id}),innerHTML:w.name},null,8,["to","onClick","onMouseenter","innerHTML"])):w.url?(l(),r("a",{key:2,href:w.url,rel:"noopener",target:"_blank",class:"external-link"},[N(B(w.name),1),k(Bo)],8,a0)):(l(),r("span",i0,B(w.name),1))]))),128))])])):(l(),r("span",r0,[g.authors[0].id?(l(),P(y,{key:0,to:`/${g.authors[0].id}`,onClick:w=>a(w,g.authors[0].id),onMouseenter:w=>c(Ee)({name:"profile",id:g.authors[0].id})},{default:re(()=>[s("div",u0,[s("div",null,[s("h6",c0,B(g.isAuthor?"author":c(ks)(g.authors[0],!0)),1),s("h2",{innerHTML:g.authors[0].name},null,8,d0),b===0&&!e.forProfile?(l(),r("small",v0,"view full profile â")):h("",!0)]),g.authors[0].profilePicture?(l(),P(et,{key:0,"image-path":g.authors[0].profilePicture},null,8,["image-path"])):h("",!0)])]),_:2},1032,["to","onClick","onMouseenter"])):(l(),r("div",f0,[s("h6",p0,B(g.isAuthor?"author":c(ks)(g.authors[0],!0)),1),s("h2",null,[g.authors[0].url?(l(),r("a",{key:0,href:g.authors[0].url,rel:"noopener",target:"_blank",class:"external-link"},[N(B(g.authors[0].name),1),k(Bo)],8,h0)):(l(),r("span",m0,B(g.authors[0].name),1))])]))]))]))),128)),g0,s("small",y0,[s("a",{href:"/terms-of-use",onClick:v[1]||(v[1]=U((...g)=>c(Vs)&&c(Vs)(...g),["prevent"])),innerHTML:c(vi)(e.poster)},null,8,_0)])])])):h("",!0)}}},k0={class:"poster-canvas-tools"},$0={class:"arrows"},w0=["disabled"],M0=["disabled"],T0={__name:"PosterCanvasTools",props:{index:Number,total:Number,isOpen:Boolean,canNext:Boolean,canPrev:Boolean},emits:["open","close","next","prev"],setup(e,{emit:n}){const t=n;return Oe("keydown",o=>{switch(o.code){case"Escape":case"Backquote":t("close");break;case"ArrowLeft":t("prev");break;case"ArrowRight":t("next");break}}),(o,a)=>(l(),r("div",k0,[s("button",{type:"button",class:"close",onClick:a[0]||(a[0]=i=>t("close"))},[k(Xt)]),s("div",$0,[s("button",{class:"arrow",title:"use keyboard arrows too",disabled:!e.canPrev,onClick:a[1]||(a[1]=i=>t("prev"))}," â ",8,w0),s("button",{class:"arrow",title:"use keyboard arrows too",disabled:!e.canNext,onClick:a[2]||(a[2]=i=>t("next"))}," â ",8,M0)])]))}},L0={class:"poster-canvas-thumbs",title:"you can use keyboard up/down too"},C0=s("hr",{class:"line"},null,-1),A0=["innerHTML"],S0=["onClick"],x0={key:0,class:"scroll-icon"},P0=["src"],H0=["innerHTML"],I0={__name:"PosterCanvasThumbs",props:{poster:Object,imageList:Array,index:Number,isOpen:Boolean},emits:["index"],setup(e,{emit:n}){const t=e,o=n;return Oe("keydown",a=>{if(t.isOpen)switch(a.code){case"ArrowDown":a.preventDefault(),t.index<t.imageList.length-1&&o("index",t.index+1);break;case"ArrowUp":a.preventDefault(),t.index>-1&&o("index",t.index-1);break}}),(a,i)=>(l(),r("div",L0,[C0,s("div",{class:x(["poster-canvas-thumbs-item",{selected:e.index===-1}]),onClick:i[0]||(i[0]=u=>o("index",-1)),innerHTML:c(ft)(e.poster.image,"poster")},null,10,A0),(l(!0),r(Q,null,oe(e.imageList,(u,d)=>(l(),r("div",{key:u.path+d,class:x(["poster-canvas-thumbs-item",{selected:e.index===d}]),onClick:m=>o("index",d)},[u.animated||u.type==="video"?(l(),r("div",x0,[k(kn)])):h("",!0),u.type==="video"?(l(),r("img",{key:1,src:c(Ua)(u.path),alt:""},null,8,P0)):(l(),r("span",{key:2,innerHTML:c(ft)(u.path,"poster")},null,8,H0))],10,S0))),128))]))}},B0={class:"poster-canvas-area"},E0=["innerHTML"],V0=["innerHTML"],O0={key:1,class:"poster-canvas-stage"},F0={class:"poster-canvas-poster"},D0=["innerHTML"],N0={key:1},U0=["innerHTML"],R0=["innerHTML"],z0=["innerHTML"],j0={__name:"PosterCanvasArea",props:{poster:Object,nextPoster:null,prevPoster:null,isOpen:Boolean},setup(e){const n=e,t=xt(n,"poster"),o=f(null),a=f(-1),i=f([]),u=L(()=>!!i.value.length);return z(t,()=>{var v,p,y,g,b,w,M,_,T;a.value=-1,o.value&&(o.value.scrollLeft=0);const d=[];if((p=(v=n.poster)==null?void 0:v.series)!=null&&p.length)for(const C of n.poster.series)C.path&&d.push({path:C.path});const m=["alternates","gallery"];for(const C of m)if((g=(y=n.poster)==null?void 0:y[C])!=null&&g.length)for(const $ of n.poster[C])$.path&&d.push($);if((w=(b=n.poster)==null?void 0:b.animated)!=null&&w.path&&d.push({path:(M=n.poster.image)==null?void 0:M.path,animated:n.poster.animated}),(T=(_=n.poster)==null?void 0:_.series)!=null&&T.length)for(const C of n.poster.series)C.animated&&d.push(C);i.value=d},{immediate:!0}),(d,m)=>(l(),r("div",B0,[c(V).mobile||c(V).md?(l(),r("div",{key:0,ref_key:"scroll",ref:o,class:"poster-canvas-scroll"},[s("picture",{class:"item",innerHTML:c(yt)(t.value,"poster",!0)},null,8,E0),(l(!0),r(Q,null,oe(i.value,v=>(l(),r("div",{key:v.path,class:"item"},[v.animated?(l(),P(Yt,{key:0,"image-path":v.path,path:v.animated.path,width:v.animated.width,height:v.animated.height,controls:!0},null,8,["image-path","path","width","height"])):v.type==="video"?(l(),P(Yt,{key:1,"image-path":t.value.image.path,path:v.path,width:v.width,height:v.height,controls:!0},null,8,["image-path","path","width","height"])):(l(),r("span",{key:2,innerHTML:c(
25Qt)(v.path,"poster",!1)},null,8,V0))]))),128))],512)):(l(),r("div",O0,[s("div",F0,[u.value?(l(),r("span",N0,[(l(!0),r(Q,null,oe(i.value,(v,p)=>(l(),r("span",{key:v.path},[v.animated?ne((l(),P(Yt,{key:0,path:v.animated.path,width:v.animated.width,height:v.animated.height,controls:!0,play:a.value===p,autoplay:!1},null,8,["path","width","height","play"])),[[se,a.value===p]]):v.type==="video"?ne((l(),P(Yt,{key:1,path:v.path,width:v.width,height:v.height,controls:!0,play:a.value===p,autoplay:!1},null,8,["path","width","height","play"])),[[se,a.value===p]]):h("",!0)]))),128)),a.value===-1?(l(),r("picture",{key:0,innerHTML:c(yt)(t.value,"poster",!0)},null,8,U0)):h("",!0),a.value>=0&&!i.value[a.value].animated&&i.value[a.value].type!=="video"?(l(),r("picture",{key:1,innerHTML:c(Qt)(i.value[a.value].path,"poster",!1)},null,8,R0)):h("",!0)])):(l(),r("picture",{key:0,innerHTML:c(yt)(t.value,"poster",!0)},null,8,D0))]),u.value?(l(),P(I0,{key:0,poster:t.value,"image-list":i.value,index:a.value,"is-open":e.isOpen,onIndex:m[0]||(m[0]=v=>a.value=v)},null,8,["poster","image-list","index","is-open"])):h("",!0),e.nextPoster&&!c(V).mobile&&!c(V).md?(l(),r("picture",{key:1,class:"preload-poster",innerHTML:c(yt)(e.nextPoster,"poster",!0)},null,8,z0)):h("",!0)]))]))}},q0={__name:"PosterCanvas",props:{items:Array,id:String,forProfile:Boolean},emits:["end"],setup(e,{expose:n,emit:t}){const o=e,a=t;n({open:H});const i=f(null),u=f(-1),d=f(!0),m=f(!1),v=f($e),p=f(!1),y=xt(o,"items"),g=f(null),b=f(null),w=f(null),M=f(null);z(M,async()=>{await Cl({path:ao(g.value)})});function _(){p.value=!1}z(Jn,_),z(p,async()=>{p.value?(await Pe(),Qn.value=!0):Qn.value=!1}),z([p,u],()=>{rn.value++});const T=L(()=>u.value<0||!y.value.length?!1:u.value+1<y.value.length),C=L(()=>u.value<0||!y.value.length?!1:u.value>0);function $(){T.value&&p.value&&u.value++}function A(){C.value&&p.value&&u.value--}async function H(E){u.value=-1,await Pe(),u.value=y.value.findIndex(X=>X.id===E),p.value=u.value>=0}function R(E){i.value&&(E?Le.to(i.value,{duration:.24,top:window.scrollY,scrollTo:0}):(i.value.style.top=`${window.scrollY}px`,i.value.scrollTop=0))}let W=0;const q=Ct(E=>{p.value?E.deltaY<-3?(m.value=!1,$s.value||(p.value=!1)):E.deltaY>3&&(m.value=!0,$s.value||(p.value=!1)):Math.abs(E.deltaY)>W+5&&document.body.classList.remove("noscroll"),W=Math.abs(E.deltaY)},100),G=Ct(E=>{if(p.value){const ee=i.value.children[0].offsetHeight+i.value.children[0].offsetTop-i.value.offsetHeight;i.value.scrollTop<-60?(m.value=!1,p.value=!1):i.value.scrollTop>ee+60&&(m.value=!0,p.value=!1)}},100);let ve=null;function F(){ve&&(clearTimeout(ve),ve=null),document.body.classList.add("noscroll"),$e&&(v.value=!1)}function D(){$e?(document.body.classList.remove("noscroll"),ve=setTimeout(()=>{v.value=!0},800)):ve=setTimeout(()=>{document.body.classList.remove("noscroll")},850)}z(p,()=>{p.value?(F(),R(),setTimeout(R,400),setTimeout(R,810),$e&&(Wn.value=!0)):(D(),$e&&(Wn.value=!1))},{immediate:!0}),z(u,(E,X)=>{var ee,Z,ge;(ee=y.value)!=null&&ee[E]&&(g.value=y.value[E],M.value=g.value.id),b.value=(Z=y.value)==null?void 0:Z[E+1],w.value=(ge=y.value)==null?void 0:ge[E-1],R(!0),d.value=E>=X,E===y.value.length-1&&a("end")}),be(()=>{$e?(Oe(window,"scroll",_,{capture:!1,passive:!0}),Oe(window,"orientationchange",_),V.mobile||V.md?(Oe(i,"scroll",G,{capture:!1,passive:!0}),gs(i,{onSwipeEnd(E,X){}})):gs(i,{onSwipeEnd(E,X){switch(X){case"RIGHT":A();break;case"LEFT":$();break;case"UP":m.value=!0,p.value=!1;break;case"DOWN":m.value=!1,p.value=!1;break}}})):Oe(document.body,"wheel",q,{capture:!1,passive:!0})});const I=L(()=>{var X;const E=(X=g.value)==null?void 0:X.edgeLightness;return E>77&&E<86});return z([p,y],async()=>{if(!p.value)return;const E=[];for(const X of y.value)X.hydrated||E.push(X.id);if(E.length)try{const X=new FormData;X.append("ids",E);const ee=await Fe("/api/tg/posters-hydrate",{method:"POST",body:X});if(ee!=null&&ee.length){for(const Z of ee){const ge=y.value.find(Ce=>Ce.id===Z.id);if(ge){for(const Ce of Object.keys(Z))ge[Ce]=Z[Ce];ge.hydrated=!0}}g.value&&(g.value={...g.value})}}catch{}},{immediate:!0}),(E,X)=>{var ee;return l(),r("div",{ref_key:"canvas",ref:i,class:x(["poster-canvas",{active:p.value,up:m.value,hidden:v.value,touch:c($e),"not-touch":!c($e)}])},[s("div",{class:x(["poster-board",{"bkg-too-close":I.value}])},[k(T0,{"is-open":p.value,index:u.value,total:e.items.length,"can-prev":C.value,"can-next":T.value,onOpen:X[0]||(X[0]=Z=>p.value=!0),onClose:_,onPrev:A,onNext:$},null,8,["is-open","index","total","can-prev","can-next"]),(l(),P(j0,{key:((ee=g.value)==null?void 0:ee.id)||"none",poster:g.value,"next-poster":b.value,"prev-poster":w.value,"is-open":p.value},null,8,["poster","next-poster","prev-poster","is-open"])),k(b0,{poster:g.value,"for-profile":e.forProfile,canvas:i.value},null,8,["poster","for-profile","canvas"])],2)],2)}}},Y0={key:1},K0=["innerHTML"],an={__name:"Posters",props:{items:Array,initiallyOpen:String,loadAllUntil:Function,forProfile:Boolean,noInfo:Boolean,noIcons:Boolean,dontTrack:Boolean,fromCollectionId:String,size:String,fadeLike:Boolean,withReorder:B
25oolean,bkgLightness:{type:Number,default:97},layoutFeatures:Object,isSearching:Boolean,layout:String,forceAnimated:Boolean,withBuyButton:Boolean},emits:["end","reorder"],setup(e,{emit:n}){const t=e,o=n,a=f(null),i=L(()=>{var p;if(!t.forProfile)return t.items;const v=[];for(let y=0;y<t.items.length;y++){const g=t.items[y];if(g.expandSeries&&((p=g.series)!=null&&p.length)){g.skipSeries=!0,v.push(g);for(const b of g.series)b.path&&v.push({...g,isExpanded:!0,image:{path:b.path}})}else v.push(g)}return v}),u=L(()=>{var y;if(!((y=t.layoutFeatures)!=null&&y.yearMarkers)||t.isSearching)return null;const v=la(i.value,"year"),p=aa(v,(g,b)=>({year:b,posters:g}));return Rs(p,"year").reverse()}),d=L(()=>{const v=t.size;return V.mobile?v==="tiny"?3:2:V.md?v==="large"?2:v==="small"?4:v==="tiny"?6:3:V.xxxl?v==="large"?4:v==="small"?7:v==="tiny"?10:5:v==="large"?3:v==="small"?5:v==="tiny"?8:4}),m=L(()=>{const v=t.size;return V.mobile||V.md||v==="tiny"?!1:V.lg?v!=="small":!(d.value>5)});return t.initiallyOpen&&be(async()=>{t.loadAllUntil&&await t.loadAllUntil(v=>v.findIndex(p=>p.id===t.initiallyOpen)>=0),a.value.open(t.initiallyOpen)}),(v,p)=>(l(),r("div",null,[k(q0,{ref_key:"canvas",ref:a,"initially-open":e.initiallyOpen,items:e.items,"for-profile":e.forProfile,onEnd:p[0]||(p[0]=y=>o("end"))},null,8,["initially-open","items","for-profile"]),e.withReorder?(l(),r("span",{key:0,style:we({"--columns":d.value})},[k(c(to),{list:e.items,"item-key":"id",handle:".poster-item-link","force-fallback":!0,"fallback-tolerance":2,class:x(["posters-list with-reorder",{spaced:m.value}]),onEnd:p[1]||(p[1]=y=>o("reorder",e.items))},{item:re(({element:y})=>[k(Fn,{poster:y,size:e.size,"for-profile":e.forProfile,"no-info":e.noInfo,"no-icons":e.noIcons,"dont-track":e.dontTrack,"from-collection-id":e.fromCollectionId,"fade-like":e.fadeLike,"with-buy-button":e.withBuyButton,onClickPoster:g=>a.value.open(y.id)},null,8,["poster","size","for-profile","no-info","no-icons","dont-track","from-collection-id","fade-like","with-buy-button","onClickPoster"])]),_:1},8,["list","class"])],4)):u.value?(l(),r("section",Y0,[(l(!0),r(Q,null,oe(u.value,y=>(l(),r("div",{key:y.year,class:x(["posters-list with-year",{spaced:m.value,small:e.size==="small"}]),style:we({"--columns":d.value})},[s("h1",{class:"large poster-archive-year",innerHTML:y.year},null,8,K0),(l(!0),r(Q,null,oe(y.posters,g=>(l(),P(Fn,{key:(g.isExpanded?g.image.path:g.id)+e.layout,poster:g,size:e.size,"for-profile":e.forProfile,"no-info":e.noInfo,"no-icons":e.noIcons,"dont-track":e.dontTrack||g.isExpanded,"from-collection-id":e.fromCollectionId,"fade-like":e.fadeLike,"bkg-lightness":e.bkgLightness,layout:e.layout,"force-animated":e.forceAnimated,"with-buy-button":e.withBuyButton,onClickPoster:b=>a.value.open(g.id)},null,8,["poster","size","for-profile","no-info","no-icons","dont-track","from-collection-id","fade-like","bkg-lightness","layout","force-animated","with-buy-button","onClickPoster"]))),128))],6))),128))])):(l(),r("div",{key:2,class:x(["posters-list",{spaced:m.value}]),style:we({"--columns":d.value})},[(l(!0),r(Q,null,oe(i.value,y=>(l(),P(Fn,{key:(y.isExpanded?y.image.path:y.id)+e.layout,poster:y,size:e.size,"for-profile":e.forProfile,"no-info":e.noInfo,"no-icons":e.noIcons,"dont-track":e.dontTrack||y.isExpanded,"from-collection-id":e.fromCollectionId,"fade-like":e.fadeLike,"bkg-lightness":e.bkgLightness,layout:e.layout,"force-animated":e.forceAnimated,"with-buy-button":e.withBuyButton,onClickPoster:g=>a.value.open(y.id)},null,8,["poster","size","for-profile","no-info","no-icons","dont-track","from-collection-id","fade-like","bkg-lightness","layout","force-animated","with-buy-button","onClickPoster"]))),128))],6))]))}},G0=["onClick"],Z0={__name:"ColorStripHex",emits:["color"],setup(e,{emit:n}){const t=n,o=f(0),a=f(0),i=Ct(()=>{const m=V.mobile?32:44,v=Math.ceil(window.innerWidth/m);v>25?o.value=8:v>15?o.value=6:o.value=3,a.value=v-o.value});Oe("resize",i),i();const u=L(()=>{const m=[];for(let v=0;v<a.value;v++){const p=333/(a.value-1)*v;m.push({hex:Bt.hsv.hex(p,95,95).toLowerCase()})}for(let v=o.value-1;v>=0;v--){const p=100/(o.value-1)*v;m.push({hex:Bt.gray.hex(p).toLowerCase()})}return m}),d=L(()=>`${100/u.value.length}vw`);return(m,v)=>(l(),r("div",{class:x(["color-strip",{"fully-disable":!c(Ft)}])},[(l(!0),r(Q,null,oe(u.value,p=>(l(),r("div",{key:p.hex,class:"color-swatch",style:we({backgroundColor:`#${p.hex}`,width:d.value,height:d.value}),onClick:U(y=>t("color",p.hex),["stop"])},null,12,G0))),128))],2))}},W0={setup(){return{goToTop:()=>{Le.to(window,{duration:.8,scrollTo:0})}}}},J0={class:"back-to-top"};function Q0(e,n,t,o,a,i){return l(),r("div",J0,[s("button",{type:"button",class:"text",onClick:n[0]||(n[0]=(...u)=>o.goToTop&&o.goToTop(...u))}," Back to top â ")])}const mo=le(W0,[["render",Q0]]),X0=["disabled","innerHTML"],go={__name:"LoadMore",props:{autoLoad:{type:Boolean,default:!0},currentPage:Number,hasMorePages:Boolean,isLoading:Boolean},emits:["loadMore"],setup(e,{emit:n}){const t=e,o=n,a=f(null),i=L(()=>t.isLoading?t.currentPage>0?"loading more...":"":!t.autoLoad&&t.hasMorePages?"load more â"
25:""),u=L(()=>t.isLoading||t.autoLoad?!1:!!i.value),d=Ct(()=>{t.isLoading||!t.hasMorePages||!a.value||m(a.value)&&o("loadMore")},200);function m(v){const p=v.getBoundingClientRect();return p.top-window.innerHeight<window.innerHeight&&p.bottom>=0}return t.autoLoad&&(Oe("scroll",d,{capture:!1,passive:!0}),d()),(v,p)=>ne((l(),r("div",{ref_key:"el",ref:a,class:"container load-more-container"},[ne(s("button",{type:"button",class:"text",disabled:!u.value,onClick:p[0]||(p[0]=y=>o("loadMore")),innerHTML:i.value},null,8,X0),[[se,i.value]])],512)),[[se,e.hasMorePages]])}},e2={key:0,style:{"padding-top":"6px"}},t2=["innerHTML"],n2={__name:"SearchLockedMessage",props:{message:String},setup(e){return(n,t)=>(l(),r("div",{class:x(["search-block active-links search-locked",{"logged-in":c(ae)}])},[s("button",{type:"button",class:"large-pill blue with-icon",onClick:t[0]||(t[0]=(...o)=>c(nn)&&c(nn)(...o))},[k(vs),N(" Search is exclusive for members ")]),c(ae)?h("",!0):(l(),r("small",e2,[N("Already a member, "),s("a",{href:"/login",onClick:t[1]||(t[1]=U((...o)=>c(De)&&c(De)(...o),["prevent"]))},"login here")])),e.message?(l(),r("p",{key:1,class:"header-message margin-top- padding-top-4",innerHTML:e.message},null,8,t2)):h("",!0)],2))}},Al=f(0),ko=()=>{Al.value++},Sl=()=>{ko(),setTimeout(ko,500),setTimeout(ko,1e3)};function o2(e){const n=f(null),t=f(!1),o=f(!1),a=f(!1),i=f(!1),u=Ct(()=>{if(!n.value)return;const v=Ia(n,e);t.value=v.isVisible,o.value=v.isInside,a.value=v.isOverflowY,e!=null&&e.debug&&console.log("in viewport",v,n.value.getBoundingClientRect())}),d={capture:!1,passive:!0},m=()=>{i.value=!0,e!=null&&e.ready?t.value=!0:(window.addEventListener("scroll",u,d),u())};return be(()=>{var v;Sl(),(v=e==null?void 0:e.video)!=null&&v.value?e.video.value.addEventListener("canplay",m):Ha(n.value,m)}),St(()=>{window.removeEventListener("scroll",u,d)}),z(Al,()=>{!(e!=null&&e.ready)&&i.value&&u()}),{el:n,isVisible:t,isInside:o,isOverflowY:a,loaded:i}}Le.registerPlugin(No);function fs(e){const n=f(null),t=f(0),o=f(!1);e={self:!1,scrollOnOpen:!1,scrollOnOpenOffsetMobile:0,scrollOnOpenOffset:0,scrollOnClose:!1,scrollOnCloseOffsetMobile:"center",scrollOnCloseOffset:"center",...e};const a=Ct(()=>{n.value&&(e.self?t.value=n.value.offsetHeight:t.value=Pa(n.value.children))}),i=()=>{Pe(()=>{a(),Wo(n.value,a)}),setTimeout(a,500),setTimeout(a,1e3),setTimeout(a,5e3)};be(()=>{i(),window.addEventListener("orientationchange",a),$e||window.addEventListener("resize",a)}),St(()=>{window.removeEventListener("orientationchange",a),$e||window.removeEventListener("resize",a)});function u(y){return y==="center"?window.innerHeight/2:0}const d=()=>{Pe(()=>{Sl(),o.value&&e.scrollOnOpen&&Le.to(window,{duration:.84,scrollTo:{autoKill:!1,y:c(e.scrollOnOpenRef||n),offsetY:u(V.mobile?e.scrollOnOpenOffsetMobile:e.scrollOnOpenOffset)}}),!o.value&&e.scrollOnClose&&Le.to(window,{duration:.84,scrollTo:{autoKill:!1,y:c(e.scrollOnCloseRef||n),offsetY:u(V.mobile?e.scrollOnCloseOffsetMobile:e.scrollOnCloseOffset)}})})};return{content:n,height:t,refresh:a,refreshOnImagesLoaded:i,isExpanded:o,toggle:()=>{o.value=!o.value,d()},open:()=>{o.value=!0,d()},close:()=>{o.value=!1,d()}}}const s2={},l2={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",class:"icon settings-icon"},a2=s("path",{d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30V8zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3zM2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3z"},null,-1),i2=s("title",null,"Settings",-1),r2=[a2,i2];function u2(e,n){return l(),r("svg",l2,r2)}const c2=le(s2,[["render",u2]]),d2=s("div",{class:"label"}," size ",-1),v2={class:"text"},f2=s("div",{class:"label"}," animated posters ",-1),p2={class:"text"},h2={class:"popup-warning active-links"},m2=s("small",null,"To use the view options login or create a free account",-1),Tn={__name:"ViewOptions",props:{for:String,animated:{type:Boolean,default:!0}},setup(e){const n=e,t=f(!1),o=f(!1),a=f(null),i=f(null),{offset:u,neverOpened:d}=on({isOpen:o,popup:a,button:i});function m(){ae.value?t.value=!t.value:o.value=!0}const v=L(()=>{switch(n.for){case"profiles":return Ar;case"profiles-photos":return Sr;case"collections":return xr}return Cr}),p=L(()=>{switch(n.for){case"profiles":return ie.value.sizeProfiles;case"profiles-photos":return ie.value.sizeProfilesPhotos;case"collections":return ie.value.sizeCollections}return ie.value.size});return Oe(document.body,"click",()=>{t.value=!1,o.value=!1}),(y,g)=>(l(),r("div",{class:x(["view-options",{open:t.value}])},[s("button",{ref_key:"button",ref:i,type:"button",class:"settings-toggle",onClick:U(m,["stop"])},[k(c2)],512),s("button",{type:"button",class:"toggle text-toggle",onClick:g[0]||(g[0]=U((...b)=>v.value&&v.value(...b),["stop"]))},[d2,s("small",v2,B(p.value),1)]),e.animated?(l(),r("button",{key:0,t
25ype:"button",class:"toggle text-toggle",onClick:g[1]||(g[1]=U((...b)=>c(Ts)&&c(Ts)(...b),["stop"]))},[f2,s("small",p2,B(c(Pr)),1)])):h("",!0),s("div",{ref_key:"popup",ref:a,class:x(["popup bottom",[{open:o.value,"never-opened":c(d)}]]),style:we({"--offset":`${c(u)}px`})},[s("div",h2,[m2,s("button",{class:"popup-pill no-icon blue",type:"button",onClick:g[2]||(g[2]=(...b)=>c(De)&&c(De)(...b))}," Login ")])],6)],2))}},g2={class:"tag-filters"},y2={key:0,class:"filters"},_2=["onClick","innerHTML"],b2={class:"toolbar-view-options"},k2={key:1,class:"spacer"},$2=["aria-label","onClick","innerHTML"],xl={__name:"TagFilters",props:zs({filters:Array,disable:Boolean,openOnQuery:Boolean,removeOnClose:Boolean,singleOnly:Boolean,withSearch:Boolean,withViewOptions:String,viewOptionsAnimated:Boolean,scrollTo:null},{modelValue:{},modelModifiers:{},q:{},qModifiers:{}}),emits:["update:modelValue","update:q"],setup(e,{expose:n}){const t=e,o=Un(e,"modelValue"),a=Un(e,"q");n({toggleTag:v});const i={},u=f(null),d=L(()=>t.filters.find(_=>_.key===u.value));for(const _ of t.filters){const T=In(_.key),C=f(T.value?String(T.value).split(","):[]);t.openOnQuery&&C.value.length&&(u.value=_.key),yn(()=>{T.value=C.value.length?C.value.join(","):void 0}),i[_.key]={activeTags:C,queryTags:T}}function m(_){_.toggle?(v({key:"1",label:_.label,filterKey:_.key}),i[_.key].activeTags.value.length&&(u.value=_.key)):(t.removeOnClose&&u.value===_.key&&(i[_.key].activeTags.value=[],y()),u.value=u.value===_.key?null:_.key)}function v({key:_,filterKey:T,allowMultiple:C}){if(t.singleOnly)for(const H of Object.keys(i))H!==T&&(i[H].activeTags.value=[]);let $=i[T].activeTags.value;$=[...new Set($)];const A=$.findIndex(H=>H===_);C?A>=0?$.splice(A,1):$.push(_):($=[],A===-1&&$.push(_)),i[T].activeTags.value=$,y()}z(o,_=>{if(!(_!=null&&_.length))for(const T of Object.keys(i))i[T].activeTags.value.length&&(i[T].activeTags.value=[])});const p=fs({self:!0});z(u,p.refreshOnImagesLoaded);function y(){var T;const _=[];for(const C of t.filters)for(const $ of i[C.key].activeTags.value)_.push({key:$,label:((T=C==null?void 0:C.tags)==null?void 0:T[$])||C.label,filterKey:C.key,allowMultiple:C.allowMultiple,toggle:C.toggle});(_.length||o.value.length)&&(o.value=_)}t.filters.length===1&&(u.value=t.filters[0].key),y();const g=f(!!a.value),b=f(null);async function w(){g.value||(g.value=!0,await Pe(),b.value.focus())}function M(){a.value="",g.value=!1}return Oe(document.body,"click",()=>{a.value===""&&(g.value=!1)}),be(async()=>{await Pe(),t.scrollTo&&z([o,a],()=>{Le.to(window,{duration:.84,ease:"Power2.easeInOut",scrollTo:{autoKill:!0,y:Dn(t.scrollTo),offsetY:V.mobile?59:44}})})}),(_,T)=>{var C;return l(),r("div",g2,[e.filters.length>1?(l(),r("div",y2,[(l(!0),r(Q,null,oe(e.filters,$=>(l(),r("button",{key:$.key,class:x(["tag",{active:!$.toggle&&u.value===$.key||$.toggle&&i[$.key].activeTags.value.length,"fully-disable":e.disable&&$.toggle}]),onClick:A=>m($),innerHTML:$.label},null,10,_2))),128)),e.withSearch?(l(),r("div",{key:0,class:x(["toolbar-search",{open:g.value,active:!!a.value}]),onClick:U(w,["stop"])},[ne(s("input",{ref_key:"searchInput",ref:b,"onUpdate:modelValue":T[0]||(T[0]=$=>a.value=$),type:"search",class:"input transparent",autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false"},null,512),[[eo,a.value]]),s("div",{class:"clear",onClick:U(M,["stop"])},[k(Xt)]),k(vs)],2)):h("",!0),s("div",b2,[e.withViewOptions?(l(),P(Tn,{key:0,for:e.withViewOptions,animated:e.viewOptionsAnimated},null,8,["for","animated"])):h("",!0)])])):(l(),r("div",k2)),s("div",{class:x(["sub-filters-wrap",{active:Object.keys(((C=d.value)==null?void 0:C.tags)||{}).length>0}]),style:we({"--h":`${c(p).height.value}px`})},[s("div",{ref:c(p).content,class:"sub-filters"},[k(_n,{name:"list"},{default:re(()=>{var $;return[(l(!0),r(Q,null,oe((($=d.value)==null?void 0:$.tags)||[],(A,H)=>(l(),r("button",{key:H,class:x(["tag",[u.value,A==null?void 0:A.tooltipClass,{active:i[u.value].activeTags.value.indexOf(H)>=0,"fully-disable":e.disable,"hint--bottom hint--large":(A==null?void 0:A.tooltip)&&!(A!=null&&A.tooltipClass)}]]),"aria-label":(A==null?void 0:A.tooltip)||null,onClick:R=>v({key:H,filterKey:u.value,allowMultiple:d.value.allowMultiple}),innerHTML:(A==null?void 0:A.label)||A},null,10,$2))),128))]}),_:1}
25)],512)],6)])}}},w2={mixins:[vo],props:{min:{type:Number,default:null},max:{type:Number,default:null},step:{type:Number,default:null},allowEmpty:{type:Boolean,default:!0}},setup(e,{emit:n}){return{...sn({props:e,emit:n,valueIn:t=>+t||(e.allowEmpty?"":0),valueOut:t=>+t})}}},M2=["for","innerHTML"],T2=["innerHTML"],L2={class:"field-input-row"},C2=["innerHTML"],A2=["id","value","name","required","disabled","autocomplete","min","max","step"],S2=["innerHTML"];function x2(e,n,t,o,a,i){return l(),r("div",{class:x(["field number-field",[e.classes,{active:!!e.modelValue,error:e.errorField&&e.errorField===e.name,"with-instructions":!!e.instructions}]])},[e.labelComputed?(l(),r("label",{key:0,for:e.uniqueId,innerHTML:e.labelComputed},null,8,M2)):h("",!0),e.instructions?(l(),r("h6",{key:1,class:"instructions",innerHTML:e.instructions},null,8,T2)):h("",!0),s("div",L2,[e.prepend?(l(),r("div",{key:0,class:"field-input-prepend",innerHTML:e.prepend},null,8,C2)):h("",!0),s("input",{id:e.uniqueId,value:e.value,name:e.name,class:"field-input",type:"number",required:e.required,disabled:e.disabled?e.disabled:null,autocomplete:e.autocomplete?e.autocomplete:null,autocorrect:"off",spellcheck:"false",min:t.min,max:t.max,step:t.step,onInput:n[0]||(n[0]=(...u)=>e.onInput&&e.onInput(...u)),onBlur:n[1]||(n[1]=(...u)=>e.onBlur&&e.onBlur(...u)),onFocus:n[2]||(n[2]=(...u)=>e.onFocus&&e.onFocus(...u))},null,40,A2),e.append?(l(),r("div",{key:1,class:"field-input-append",innerHTML:e.append},null,8,S2)):h("",!0)])],2)}const Vt=le(w2,[["render",x2]]),P2={class:"color-field"},H2=s("label",null,"RGB",-1),I2={class:"color-field-numbers"},B2={__name:"RgbField",props:{modelValue:null},emits:["update:modelValue"],setup(e,{emit:n}){const t=e,o=n,{modelValue:a}=js(t),i=f(0),u=f(0),d=f(0);return z(a,()=>{var m,v,p;i.value=((m=a.value)==null?void 0:m.r)||0,u.value=((v=a.value)==null?void 0:v.g)||0,d.value=((p=a.value)==null?void 0:p.b)||0},{immediate:!0}),z([i,u,d],()=>{o("update:modelValue",{r:+i.value,g:+u.value,b:+d.value})}),(m,v)=>(l(),r("div",P2,[H2,s("div",I2,[k(Vt,{modelValue:i.value,"onUpdate:modelValue":v[0]||(v[0]=p=>i.value=p),min:0,max:255,step:1,"allow-empty":!1},null,8,["modelValue"]),k(Vt,{modelValue:u.value,"onUpdate:modelValue":v[1]||(v[1]=p=>u.value=p),min:0,max:255,step:1,"allow-empty":!1},null,8,["modelValue"]),k(Vt,{modelValue:d.value,"onUpdate:modelValue":v[2]||(v[2]=p=>d.value=p),min:0,max:255,step:1,"allow-empty":!1},null,8,["modelValue"])])]))}},E2={class:"color-field"},V2=s("label",null,"CMYK",-1),O2={class:"color-field-numbers"},F2={__name:"CmykField",props:{modelValue:null},emits:["update:modelValue"],setup(e,{emit:n}){const t=e,o=n,{modelValue:a}=js(t),i=f(0),u=f(0),d=f(0),m=f(0);return z(a,()=>{var v,p,y,g;i.value=((v=a.value)==null?void 0:v.c)||0,u.value=((p=a.value)==null?void 0:p.m)||0,d.value=((y=a.value)==null?void 0:y.y)||0,m.value=((g=a.value)==null?void 0:g.k)||0},{immediate:!0}),z([i,u,d,m],()=>{o("update:modelValue",{c:+i.value,m:+u.value,y:+d.value,k:+m.value})}),(v,p)=>(l(),r("div",E2,[V2,s("div",O2,[k(Vt,{modelValue:i.value,"onUpdate:modelValue":p[0]||(p[0]=y=>i.value=y),min:0,max:100,step:1,"allow-empty":!1},null,8,["modelValue"]),k(Vt,{modelValue:u.value,"onUpdate:modelValue":p[1]||(p[1]=y=>u.value=y),min:0,max:100,step:1,"allow-empty":!1},null,8,["modelValue"]),k(Vt,{modelValue:d.value,"onUpdate:modelValue":p[2]||(p[2]=y=>d.value=y),min:0,max:100,step:1,"allow-empty":!1},null,8,["modelValue"]),k(Vt,{modelValue:m.value,"onUpdate:modelValue":p[3]||(p[3]=y=>m.value=y),min:0,max:100,step:1,"allow-empty":!1},null,8,["modelValue"])])]))}},D2={class:"color-fields"},N2={__name:"ColorPill",props:{color:String,index:Number,mode:{type:String,default:"dominant"}},emits:["change","remove","mode-change"],setup(e,{emit:n}){const t=e,o=n,a=xt(t,"color"),i=f(!0),u=f(null),d=f(null),{offset:m,neverOpened:v,refresh:p}=on({isOpen:i,popup:u,button:d}),y=A=>{i.value=!0,A.stopPropagation(),A.preventDefault()},g=A=>{A.preventDefault(),A.stopPropagation()},b=()=>{i.value=!0,o("remove",t.color)},w=f(null),M=f(null),_=f(null);let T=null;const C=A=>{T&&clearTimeout(T),A||(A=""),A=A.toLowerCase().replace("#",""),T=setTimeout(()=>{o("change",t.index,A)},200)};z(a,()=>{if(!a.value)return;const A=Bt.hex.rgb(a.value);M.value={r:A[0],g:A[1],b:A[2]};const H=Bt.hex.cmyk(a.value);_.value={c:H[0],m:H[1],y:H[2],k:H[3]}},{immediate:!0}),z(M,()=>{if(!M.value)return;const A=Bt.rgb.hex(M.value.r,M.value.g,M.value.b);C(A)}),z(_,()=>{if(!_.value)return;const A=Bt.cmyk.hex(_.value.c,_.value.m,_.value.y,_.value.k);C(A)});let $;return be(()=>{$=new Sn.ColorPicker(w.value,{width:260,color:`#${t.color}`,layout:[{component:Sn.ui.Slider,options:{sliderType:"hue"}},{component:Sn.ui.Slider,options:{sliderType:"saturation"}},{component:Sn.ui.Slider,options:{sliderType:"value"}}]}
25),$.on("input:change",H=>{C(H.hexString)});const A=H=>{H.stopPropagation(),H.preventDefault(),i.value=!0};$.on("input:start",H=>{document.body.addEventListener("click",A)}),$.on("input:end",H=>{setTimeout(()=>{document.body.removeEventListener("click",A)},100)})}),z(a,()=>{$&&$.setColors([a.value])}),(A,H)=>(l(),r("div",{class:"popup-wrap color-pill-wrap",onClick:g},[s("div",{ref_key:"button",ref:d,class:"color-pill",style:we({backgroundColor:`#${a.value}`}),onClick:y},[s("button",{class:"color-pill-close",type:"button",onClick:U(b,["stop","prevent"])})],4),s("div",{ref_key:"popup",ref:u,class:x(["popup flex",[{top:c(V).mobile,bottom:!c(V).mobile,open:i.value,"never-opened":c(v)}]]),style:we({"--offset":`${c(m)}px`})},[s("div",{ref_key:"colorPickerRef",ref:w},null,512),s("div",D2,[k(B2,{modelValue:M.value,"onUpdate:modelValue":H[0]||(H[0]=R=>M.value=R)},null,8,["modelValue"]),k(F2,{modelValue:_.value,"onUpdate:modelValue":H[1]||(H[1]=R=>_.value=R)},null,8,["modelValue"])]),s("button",{type:"button",class:"text-only",style:{"font-size":"13px"},onClick:U(b,["stop","prevent"])}," Ã remove color ")],6)]))}};function Hs(e){const n=e.replace("#",""),t=parseInt(n.slice(0,2),16),o=parseInt(n.slice(2,4),16),a=parseInt(n.slice(4,6),16),i=$o(t),u=$o(o),d=$o(a),m=.4122214708*i+.5363325363*u+.0514459929*d,v=.2119034982*i+.6806995451*u+.1073969566*d,p=.0883024619*i+.2220049874*u+.6696925508*d,y=Math.cbrt(m),g=Math.cbrt(v),b=Math.cbrt(p);return{l:.2104542553*y+.793617785*g-.0040720468*b,a:1.9779984951*y-2.428592205*g+.4505937099*b,b:.0259040371*y+.7827717662*g-.808675766*b}}function $o(e){return e=e/255,e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}const U2={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon close-large-icon"},R2=s("path",{d:"M17.414 16 26 7.414 24.586 6 16 14.586 7.414 6 6 7.414 14.586 16 6 24.586 7.414 26 16 17.414 24.586 26 26 24.586z"},null,-1),z2=["innerHTML"],j2={__name:"CloseLargeIcon",props:{title:{type:String,default:"Clear"}},setup(e){return(n,t)=>(l(),r("svg",U2,[R2,s("title",{innerHTML:e.title},null,8,z2)]))}};Le.registerPlugin(No);function Pl(e){Le.to(window,{duration:e>=0?e:.84,ease:"Power2.easeInOut",scrollTo:{autoKill:!1,y:0}})}const q2={class:"search-header"},Y2=s("span",{class:"search-archive-icon"},"/",-1),K2=[Y2],G2={key:0,class:"search-mode-text"},Z2=s("span",{class:"hint--bottom hint--large","aria-label":"keyword â match exact terms and names meaning â semantic search, find relevant posters by meaning and visual concepts"},"Â Â â",-1),W2=["onClick","innerHTML"],J2={class:"search-tools"},Q2={class:"search-messages"},X2={key:0,class:"search-mode-text mobile"},e_=s("span",{class:"hint--bottom hint--large","aria-label":"keyword â match exact terms and names meaning â semantic search, find relevant posters by meaning and visual concepts"},"Â Â â",-1),t_=["innerHTML"],n_=["innerHTML"],o_="type here to discover",s_=.05,ut={__name:"ArchiveDiscover",setup(e){var tt,Mt,ye,Ae,me;const n=f(!1),t=(tt=ue.value.archive)==null?void 0:tt.filters,o=f([]),a=f(null),i=L(()=>o.value.find(j=>j.filterKey==="photos")?"photos":null),u=L(()=>!!o.value.find(j=>j.filterKey==="animated")),{q:d,colors:m,setColor:v,changeColor:p,currentItems:y,currentPage:g,itemsPerPage:b,loadMore:w,tryToLoadMore:M,hasMorePages:_,message:T,caption:C,isSearching:$,isLoading:A,setSearchHandler:H,targetRequestId:R,search:W,resetSearch:q}=uo({intent:"posters",features:{q:!0,colors:!0,filters:!0},items:(ye=(Mt=ue.value.archive)==null?void 0:Mt.recents)==null?void 0:ye.hits,total:(me=(Ae=ue.value.archive)==null?void 0:Ae.recents)==null?void 0:me.total,activeTags:o,layout:i}),G=f(null),ve=["two typographic systems collide on the same","reading becomes an act of reassembly","layers fight for the same surface","deep blue field","massive sans-serif letterforms spelling","swimming pool turned cultural","sound made visible","don't stop the music","letting the title break apart","turns the act of reading into the act","vortex that pulls the eye","diagonal seabed"];let F=null;be(()=>{!G.value||d.value||(F=Le.timeline().to(G.value,{delay:.55,text:{value:ve[Math.floor(Math.random()*ve.length)],speed:2},ease:"none"}).to(G.value,{delay:1,text:{value:o_,type:"diff",speed:2},ease:"none"}).to(G.value,{delay:1.3,text:"",ease:"none"}))}),St(()=>{F&&(F.kill(),F=null)}),z(d,()=>{F&&(F.kill(),F=null,Le.to(G.value,{duration:.3,text:"",ease:"none"}))});const D=f(null),I=f("100%"),E=async()=>
25{if(!$.value||V.mobile){I.value="100%";return}await Pe();const j=D.value;j&&(I.value=`${Math.ceil(j.getBoundingClientRect().width)+32}px`,await Pe(),Ie.value&&(Ie.value.scrollLeft=0))};async function X(){var j;(j=document.fonts)!=null&&j.ready&&await document.fonts.ready,await E()}be(X),z(Ne,X),z(d,E),z([m,o],E,{deep:!0}),z(R,()=>{g.value===0&&Pl()});const ee=f(i.value);z([i,A],()=>{A.value||(ee.value=i.value)});const Z=f("dominant"),ge=f([]);z([m,m.value],()=>{ge.value=m.value.map((j,Y)=>ge.value[Y]??Z.value)},{immediate:!0});function Ce(j,Y){ge.value=m.value.map((O,ce)=>ce===j?Y:ge.value[ce]??Z.value),Ht.value=null,W()}const ze={continent:"locations.continentCode",country:"locations.countryCode","print-process":"printProcess",format:"size",year:"year",tag:"tag",category:"category",animated:"animated",awarded:"awarded",series:"series",photos:"photos",store:"store",typography:"taxonomy.typography",typefaces:"taxonomy.typefaces",mood:"taxonomy.mood",composition:"taxonomy.composition",subject:"taxonomy.subject",technique:"taxonomy.technique",graphicElements:"taxonomy.graphicElements",graphicInteractions:"taxonomy.graphicInteractions",colorUsage:"taxonomy.colorUsage",concept:"taxonomy.concept",legibility:"taxonomy.legibility",movement:"taxonomy.movement",geographicSchool:"taxonomy.geographicSchool",typographicRole:"taxonomy.typographicRole",rhetoricalFigure:"taxonomy.rhetoricalFigure",signTypology:"taxonomy.signTypology",expressiveRegister:"taxonomy.expressiveRegister",iconography:"taxonomy.iconography",scriptSystem:"taxonomy.scriptSystem"};function Xe(){const j={};if(!o.value.length)return j;const Y={animated:"withAnimated",awarded:"withAwards",series:"withSeries",photos:"withPhotos",store:"inStore"};for(const O of o.value){const ce=ze[O.filterKey];if(ce){if(Y[O.filterKey]){j[Y[O.filterKey]]=!0;continue}if(O.filterKey==="year"){j.year=Number(O.key);continue}Array.isArray(j[ce])||(j[ce]=[]),j[ce].push(O.key),O.filterKey==="print-process"&&O.key==="silkscreen"&&j[ce].push("silkscreen-on-offset","silkscreen-on-digital")}}return j}function Me(){const j=["status:public","isCrosslink:false"];if(o.value.length){const Y={};for(const O of o.value)Y[O.filterKey]||(Y[O.filterKey]=[]),Y[O.filterKey].push(O.key),O.filterKey==="print-process"&&O.key==="silkscreen"&&Y[O.filterKey].push("silkscreen-on-offset","silkscreen-on-digital");for(const O in Y)if(ze[O])switch(ze[O]){case"animated":j.push("withAnimated:true");break;case"awarded":j.push("withAwards:true");break;case"series":j.push("withSeries:true");break;case"photos":j.push("withPhotos:true");break;case"store":j.push("inStore:true");break;case"tag":{const ce=[].concat(Y[O].map(ke=>`tags:"${ke}"<score=2>`),Y[O].map(ke=>`autoTags:"${ke}"<score=2>`),Y[O].map(ke=>`taxonomy:"${ke}"<score=3>`));j.push(ce.join(" OR "));break}default:j.push(Y[O].map(ce=>`${ze[O]}:"${ce}"`).join(" OR "));break}}return j.join(" AND ")}function He(){if(!m.value.length)return"";const j=m.value[0],Y=Hs(j),O=ge.value[0]??Z.value,ke=Math.sqrt(Y.a**2+Y.b**2)<.02,xe=ke?.03:.05,Ve=ke?.02:.05,Ye=`colors.${O}Rank`,Tt=[`${Ye}.primary.lab.l:${Y.l-xe} TO ${Y.l+xe}`,`${Ye}.primary.lab.a:${Y.a-Ve} TO ${Y.a+Ve}`,`${Ye}.primary.lab.b:${Y.b-Ve} TO ${Y.b+Ve}`],Je=[`${Ye}.secondary.lab.l:${Y.l-xe} TO ${Y.l+xe}`,`${Ye}.secondary.lab.a:${Y.a-Ve} TO ${Y.a+Ve}`,`${Ye}.secondary.lab.b:${Y.b-Ve} TO ${Y.b+Ve}`],Cn=[];for(const An of Tt)for(const Xl of Je)Cn.push(`(${An} OR ${Xl})`);return Cn.join(" AND ")}function pt(j=!1){var ce;const Y={page:g.value,hitsPerPage:b.value,analytics:ct,clickAnalytics:ct,attributesToHighlight:[]};(ce=S.value)!=null&&ce.id&&(Y.userToken=S.value.id);const O=Me();return{...Y,filters:O.length?O:void 0,...j?{facets:["taxonomy.*"],maxValuesPerFacet:5}:{}}}function $t(j,Y){return Math.sqrt((j.l-Y.l)**2+(j.a-Y.a)**2+(j.b-Y.b)**2)}function at(j){var O,ce;let Y=0;for(let ke=0;ke<m.value.length;ke++){const xe=Hs(m.value[ke]),Ve=ge.value[ke]??Z.value,Ye=Ve==="dominant"?((O=j.colors)==null?void 0:O.dominant)??[]:((ce=j.colors)==null?void 0:ce.predominant)??[];let Tt=1/0;for(const Je of Ye)if(Je!=null&&Je.lab){const Cn=Ve==="dominant"?(Je.score??0)/100:(Je.percentage??0)
25/100,An=$t(xe,Je.lab)/(Cn+s_);An<Tt&&(Tt=An)}Y+=Tt}return Y}const Pt=f([]),Ht=f(null);function ht(){return JSON.stringify({colors:m.value.slice(),colorModes:ge.value.slice(),q:d.value,tags:o.value.map(j=>j.key).sort(),mode:ie.value.searchMode})}async function wt(j){var Ye;const Y=pn.value,O=Me(),ce=He(),ke=`${O} AND ${ce}`,xe={analytics:ct,clickAnalytics:ct,filters:ke,hitsPerPage:1e3,page:0};(Ye=S.value)!=null&&Ye.id&&(xe.userToken=S.value.id);const Ve=await Y.search(d==null?void 0:d.value,xe);return j!==R.value?null:(Ve.hits.sort((Tt,Je)=>at(Tt)-at(Je)),Ve.hits)}async function zt(j){const Y=m.value.map((ce,ke)=>({hex:ce,mode:ge.value[ke]??Z.value}));if(j!==R.value)return null;const O=await J("/user/discover",{query:d.value,filters:Xe(),colors:Y});return j!==R.value?null:(O==null?void 0:O.hits)??[]}H(async j=>{var Y,O,ce,ke;if($.value&&pn.value){n.value=!0;try{let xe;if(m.value.length){const Ve=ht();if(g.value===0||Ve!==Ht.value){Ht.value=Ve;const Je=await(ie.value.searchMode==="semantic"?zt:wt)(j);if(Je===null)return null;Pt.value=Je}const Ye=g.value*b.value;xe={hits:Pt.value.slice(Ye,Ye+b.value),nbHits:Pt.value.length},console.log(xe.nbHits,"hits")}else ie.value.searchMode==="semantic"&&d.value?xe=await J("/user/discover",{query:d.value,filters:Xe()}):(xe=await pn.value.search(d==null?void 0:d.value,pt()),d.value&&xe.facets&&xe.nbHits>=15);return xe}catch{return null}}if(g.value===0)return{hits:(O=(Y=ue.value.archive)==null?void 0:Y.recents)==null?void 0:O.hits,total:(ke=(ce=ue.value.archive)==null?void 0:ce.recents)==null?void 0:ke.total};try{return await Fe(`/api/tg/posters-recent?page=${g.value}&itemsPerPage=${b.value}`)}catch(xe){return console.error("Fetch error",xe),null}});const Ie=f(null);function it(){var j,Y;Ne.value&&((j=Ie.value)==null||j.focus(),(Y=Ie.value)==null||Y.select())}function rt(j){if(ie.value.searchMode!==j){if(ie.value.searchMode=j,!Ne.value)return;W()}}Oe("keydown",j=>{if(!(Qn.value||!Ne.value)&&!(j.altKey||j.ctrlKey||j.metaKey||j.shiftKey))switch(j.code){case"Slash":j.preventDefault(),it();break;case"Escape":j.preventDefault(),q(),it();break}});function pe(){!Ne.value&&Ge.value&&nn()}return(j,Y)=>(l(),r("div",{class:x(["poster-archive",{"options-with-search":!c(Ge)||c(Ne),"options-outside":c(Ge)&&!c(Ne)}])},[s("div",q2,[k(Z0,{onColor:c(v)},null,8,["onColor"]),s("div",{class:x(["search-area",{wait:!c(Ge)&&!c(Ne)}]),onClick:pe},[c(V).desktop?(l(),r("div",{key:0,class:x(["hint--bottom-right hint--large",{wait:!c(Ne)}]),"aria-label":"with your keyboard hit / to try a new search and [esc] to clear",onClick:it},K2,2)):(l(),r("div",{key:1,class:x(["search-icons",{wait:!c(Ne)}])},[c(d)?(l(),P(j2,{key:1,onClick:Y[0]||(Y[0]=O=>d.value="")})):(l(),P(vs,{key:0,onClick:it}))],2)),c(Ne)?(l(),r(Q,{key:2},[ne(s("input",{"onUpdate:modelValue":Y[1]||(Y[1]=O=>Rn(d)?d.value=O:null),type:"search",name:"q",class:x(["search-field transparent",{active:!!c(d)}]),autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",size:"1",ref_key:"searchField",ref:Ie,"data-1p-ignore":"","data-lpignore":"true","data-form-type":"other",style:we({width:I.value})},null,6),[[eo,c(d)]]),s("span",{ref_key:"searchFieldMirror",ref:D,class:"search-field-mirror","aria-hidden":"true"},B(c(d)||" "),513)],64)):h("",!0),s("div",{ref_key:"welcomeSearchText",ref:G,class:"welcome-search-text","aria-hidden":"true"},null,512),c(Ne)?(l(),r("div",{key:3,class:x(["search-active-filters",{"with-colors":!!c(m).length}])},[c(V).desktop?ne((l(),r("div",G2,[N(" discover by "),s("span",{class:x(["btn",{active:c(ie).searchMode==="keyword"}]),onClick:Y[2]||(Y[2]=O=>rt("keyword"))},"keywords",2),N(" / "),s("span",{class:x(["btn",{active:c(ie).searchMode==="semantic"}]),onClick:Y[3]||(Y[3]=O=>rt("semantic"))},"meaning",2),Z2],512)),[[se,c(d)||c(m).length]]):h("",!0),k(_n,{name:"list"},{default:re(()=>[(l(!0),r(Q,null,oe(c(m),(O,ce)=>(l(),P(N2,{key:`c${ce}`,color:O,index:ce,mode:ge.value[ce]??Z.value,onChange:c(p),onRemove:c(v),onModeChange:Ce},null,8,["color","index","mode","onChange","onRemove"]))),128)),(l(!0),r(Q,null,oe(o.value,O=>(l(),r("button",{key:O.key,class:"tag",type:"button",onClick:ce=>a.value.toggleTag(O),innerHTML:O.label},null,8,W2))),128))]),_:1})],2)):h("",!0),s("div",J2,[k(Tn)])],2)]),k(xl,{ref_key:"tagFilters",ref:a,modelValue:o.value,"onUpdate:modelValue":Y[4]||(Y[4]=O=>o.value=O),disable:!c(Ne),filters:c(t),"view-options-animated":!0},null,8,["modelValue","disable","filters"]),s("div",Q2,[c(V).mobile?ne((l(),r("div",X2,[N(" discover by "),s("span",{class:x(["btn",{active:c(ie).searchMode==="keyword"}]),onClick:Y[5]||(Y[5]=O=>rt("keyword"))},"keywords",2),N(" / "),s("span",{class:x(["btn",{active:c(ie).searchMode==="semantic"}]),onClick:Y[6]||(Y[6]=O=>rt("semantic"))},"meaning",2),e_],512)),[[se,c(d)||c(m).length]]):h("",!0),s("p",{class:"search-message",innerHTML:c(T)},null,8,t_),s("small",{class:x(["search-caption",{active:c(C)}]),innerHTML:c(C)},null,10,n_),c(Ne)?h("",!0):(l(),P(n2,{key:1}))]),k(an,{items:c(y),layout:ee.value,size:c(ie).size,"force-animated":u.value,"with-buy-button":o.value.some(O=>O.filterKey==="store"),onEnd:c(M)},null,8,["items","layout","size","force-animated","with-buy-button","onEnd"]),k(go,{"current-page":c(g),"has-more-pages":c(_),"is-loading":c(A),onLoadMore:c(M)},null,8,["current-page","has-more-pages","is-loading","onLoadMore"]),ne(k(mo,null,null,512),[[se,!c(A)&&!c(_)&&c(y).length>4]])],2))}},l_={class:"list-row"},a_={class:"arrow-icon"},i_=s("h1",{class:"arrow"}," â ",-1),r_={class:"title"},u_={class:"col-12 col-md-1-5 list-item info"},c_={class:"col-12 col-md-1 list-item info"},d_={key:0},v_={class:"col-12 col-md-1 list-item info"},f_=["innerHTML"],p_={class:"col-12 col-md-2 list-item info common-links"},h_=["href"],m_=Object.assign({inheritAttrs:!1},{__name:"ProfileListItem",props:{id:String,name:String,profilePicture:String,country:String,category:String,website:String,host:String,year:String},setup(e){return(n,t)=>{const o=he("router-link");return t[0]||(Zt(-1),t[0]=s("article",{class:"profile-list-item",onMouseenter:a=>c(Ee)({name:"profile",id:e.id})},[s("div",l_,[k(o,{to:`/${e.id}`,class:"col-12 col-md-6 list-item name"},{default:re(()=>[s("div",a_,[i_,k(et,{classes:"large",name:e.name,"no-letters":!0,"image-path":e.profilePicture},null,8,["name","image-path"])]),s("h1",r_,B(e.name),1)]),_:1}
25,8,["to"]),s("div",u_,[s("h6",null,B(e.country),1)]),s("div",c_,[e.category?(l(),r("h6",d_,B(e.category.replace("-"," ")),1)):h("",!0)]),s("div",v_,[s("h6",{innerHTML:e.year},null,8,f_)]),s("div",p_,[s("h6",null,[e.website?(l(),r("a",{key:0,href:e.website,target:"_blank",rel:"noopener"},B(e.host),9,h_)):h("",!0)])])])],40,["onMouseenter"]),Zt(1),t[0])}}}),g_=["innerHTML"],qt={__name:"SortToggle",props:{name:String,id:String,modelValue:{type:Object,required:!0},noDisable:Boolean,multiple:Boolean},emits:["update:modelValue"],setup(e,{emit:n}){const t=e,o=n,a=xt(t,"modelValue"),i=()=>{if(!t.multiple)for(const u in a.value)u!==t.id&&(a.value[u]=0);a.value[t.id]===1?a.value[t.id]=-1:a.value[t.id]===-1&&!t.noDisable?a.value[t.id]=0:a.value[t.id]=1,o("update:modelValue",a.value)};return(u,d)=>(l(),r("button",{type:"button",class:x(["list-toggle",{active:a.value[e.id],down:a.value[e.id]===1,up:a.value[e.id]===-1}]),onClick:i},[s("span",{class:"sort-arrow",innerHTML:e.name},null,8,g_)],2))}},y_={class:"list-item icon"},__={class:"list-item name"},b_={class:"title"},k_={class:"list-item country"},$_={class:"country-text"},w_=Object.assign({inheritAttrs:!1},{__name:"ProfileListItemMobile",props:{id:String,name:String,profilePicture:String,country:String,category:String,website:String,host:String,year:String},setup(e){return(n,t)=>{const o=he("router-link");return t[0]||(Zt(-1),t[0]=s("article",{class:"profile-list-item-mobile"},[k(o,{to:`/${e.id}`,class:"list-row"},{default:re(()=>[s("div",y_,[k(et,{name:e.name,"no-letters":!0,"image-path":e.profilePicture},null,8,["name","image-path"])]),s("div",__,[s("h1",b_,B(e.name),1)]),s("div",k_,[s("h6",$_,B(e.country),1)])]),_:1},8,["to"])]),Zt(1),t[0])}}}),M_=["innerHTML"],T_={key:0,class:"active-links padding-bottom-1"},L_=s("a",{href:"/login"},"login to enable",-1),Hl={__name:"ProfileArchiveToolbar",props:zs({filters:Array||null,withSearch:Boolean,withViewOptions:String,viewOptionsAnimated:Boolean,message:String},{tags:{}
25,tagsModifiers:{},q:{},qModifiers:{}}),emits:["update:tags","update:q"],setup(e){const n=Un(e,"tags"),t=Un(e,"q"),o=f(null);function a(b){ae.value||(b.stopPropagation(),b.preventDefault(),De())}const{directions:i}=ia(window),u=f(!1),d=f(!1),m=L(()=>i.top||u.value||d.value);function v(){u.value=!0}function p(){u.value=!1}let y=null;function g(){y&&clearTimeout(y),y=setTimeout(()=>{d.value=!1},1e3),d.value=!0}return(b,w)=>(l(),r("span",{ref_key:"toolbar",ref:o},[s("div",{class:x(["profile-archive-toolbar",{"login-lock":!c(ae)}]),onClick:a,onMouseenter:v,onMouseleave:p,onTouchstart:g,onTouchend:g},[s("div",{class:x(["pills",{wait:!c(Ge)}])},[e.filters?(l(),P(xl,{key:0,modelValue:n.value,"onUpdate:modelValue":w[0]||(w[0]=M=>n.value=M),q:t.value,"onUpdate:q":w[1]||(w[1]=M=>t.value=M),disable:!c(Ge),filters:e.filters,"open-on-query":!0,"remove-on-close":!0,"single-only":!0,"with-search":!0,"with-view-options":e.withViewOptions,"view-options-animated":e.viewOptionsAnimated,"scroll-to":o.value},null,8,["modelValue","q","disable","filters","with-view-options","view-options-animated","scroll-to"])):h("",!0)],2),s("div",{class:x(["toolbar-bkg",{active:m.value}])},null,2)],34),s("div",{class:"toolbar-message",onClick:a},[s("p",{class:"message",innerHTML:e.message},null,8,M_),c(ae)?h("",!0):(l(),r("small",T_,[N("search is open, "),L_]))])],512))}},C_=["innerHTML"],A_=["innerHTML"],S_={class:"caption"},x_=["innerHTML"],P_=["href","innerHTML"],H_={__name:"ProfilePhotoItem",props:{profile:Object},setup(e){const n=e,t=Dt(n.profile);function o(a){a.metaKey&&(a.shiftKey||a.altKey)&&(st.value||Ws(n.profile.id))&&(window.open(`/author-area/${n.profile.id}/profile`,"_blank").focus(),a.preventDefault())}return(a,i)=>{const u=he("router-link");return i[0]||(Zt(-1),i[0]=s("article",{class:"profile-photo-item",onMouseenter:d=>c(Ee)({name:"profile",id:e.profile.id})},[k(u,{to:`/${e.profile.id}`,class:"link",onClick:o},{default:re(()=>[s("div",{class:"photo",innerHTML:c(al)(e.profile)},null,8,C_),s("h1",{class:"name",innerHTML:e.profile.name},null,8,A_)]),_:1},8,["to"]),s("small",S_,[c(t)?(l(),r("span",{key:0,innerHTML:c(t)},null,8,x_)):h("",!0),e.profile.website?(l(),r("a",{key:1,class:x(["site common-link",{spacer:!!c(t)}]),href:e.profile.website,target:"_blank",rel:"noopener",innerHTML:c(Qo)(e.profile.website)},null,10,P_)):h("",!0)])],40,["onMouseenter"]),Zt(1),i[0])}}},I_={key:1,class:"padding-bottom-3 padding-top-2 profiles-list-wrap"},B_={key:0,class:"profile-list-item-mobile"},E_={class:"list-row header"},V_=s("div",{class:"list-item icon"},null,-1),O_={class:"list-item name"},F_={class:"list-item country"},D_={key:1,class:"profile-list-item"},N_={class:"list-row header"},U_={class:"col-12 col-md-6 list-item name"},R_=s("div",{class:"arrow-icon"},null,-1),z_={class:"col-12 col-md-1-5 list-item"},j_={class:"col-12 col-md-1 list-item"},q_={class:"col-12 col-md-1 list-item"},Y_=s("div",{class:"col-12 col-md-2 list-item"},[s("small",null,"Website")],-1),K_={__name:"ProfilesList",setup(e){var R,W,q,G,ve;const n=(R=ue.value.profiles)==null?void 0:R.filters,t=f([]),o=L(()=>t.value.find(F=>F.filterKey==="studio-photos")?"photos":null),{q:a,currentItems:i,currentPage:u,itemsPerPage:d,tryToLoadMore:m,hasMorePages:v,message:p,isSearching:y,isLoading:g,setSearchHandler:b}=uo({intent:"profiles",features:{q:!0,filters:!!n},items:(q=(W=ue.value.profiles)==null?void 0:W.az)==null?void 0:q.hits,total:(ve=(G=ue.value.profiles)==null?void 0:G.az)==null?void 0:ve.total,layout:o,activeTags:t}),w=f(o.value);z([o,g],()=>{g.value||(w.value=o.value)});const M=L(()=>!a.value&&t.value.length===1&&["studio-photos"].includes(t.value[0].filterKey)),_={continent:"locations.continentCode",country:"locations.countryCode",category:"category","studio-photos":"studio-photos"};function T(){var I;const F={page:u.value,hitsPerPage:d.value,analytics:ct,clickAnalytics:ct};(I=S.value)!=null&&I.id&&(F.userToken=S.value.id);let D=[];if(t.value.length){const E={};for(const X of t.value)E[X.filterKey]||(E[X.filterKey]=[]),E[X.filterKey].push(X.key),X.filterKey==="category"&&X.key==="other"&&E[X.filterKey].push("music-venue","museum","art-gallery","cultural-center","project","education","festival","type-foundry");for(const X in E)if(_[X])switch(_[X]){case"studio-photos":D.push("withStudioPhoto:true");break;default:D.push(E[X].map(ee=>`${_[X]}:"${ee}"`).join(" OR "));break}}return D=D.join(" AND "),{...F,filters:D||void 0}}b(async()=>{var F,D,I,E;if(y.value)try{return M.value?await Fe(`/api/tg/profiles-az?page=${u.value}&itemsPerPage=${d.value}&withStudioPhoto=1`):await xo.value.search(a==null?void 0:a.value,T())}catch{return null}if(u.value===0)return{hits:(D=(F=ue.value.profiles)==null?void 0:F.az)==null?void 0:D.hits,total:(E=(I=ue.value.profiles)==null?void 0:I.az)==null?void 0:E.total};try{return await Fe(`/api/tg/profiles-az?page=${u.value}&itemsPerPage=${d.value}`)}catch{return null}});const C=f({id:0,country:0,category:0,year:0,host:0}),$=L(()=>i.value.concat().map(F=>(F.did||(F.did=!0,V.mobile?(F.country=Dt(F),delete F.year,delete F.website,delete F.category):(
25F.year=ai(F),F.country=Dt(F),F.website=so(F.website),F.host=Qo(F.website))),F))),A=L(()=>{const F=[],D=[];for(const E in C.value)if(C.value[E]){const X=C.value[E];F.push(ee=>ee[E]||(X===-1?"":"z")),D.push(X===-1?"desc":"asc")}return F.length?ra($.value,F,D):$.value}),H=L(()=>{const F=ie.value.sizeProfilesPhotos;if(V.mobile)return 1;switch(F){case"small":return 4;case"medium":return 3;case"large":return 2}return 3});return(F,D)=>(l(),r("div",null,[k(Hl,{tags:t.value,"onUpdate:tags":D[0]||(D[0]=I=>t.value=I),q:c(a),"onUpdate:q":D[1]||(D[1]=I=>Rn(a)?a.value=I:null),filters:c(n),"with-search":!0,"with-view-options":o.value==="photos"?"profiles-photos":"","view-options-animated":!1,message:c(p)},null,8,["tags","q","filters","with-view-options","message"]),w.value==="photos"?(l(),r("div",{key:0,class:"padding-bottom-3 padding-top-2 profiles-studio-photos",style:we({"--columns":H.value})},[(l(!0),r(Q,null,oe(c(i),I=>(l(),P(H_,{key:I.id+o.value,profile:I},null,8,["profile"]))),128))],4)):(l(),r("div",I_,[c(V).mobile?(l(),r("div",B_,[s("div",E_,[V_,s("div",O_,[k(qt,{id:"id",modelValue:C.value,"onUpdate:modelValue":D[2]||(D[2]=I=>C.value=I),name:"Name"},null,8,["modelValue"])]),s("div",F_,[k(qt,{id:"country",modelValue:C.value,"onUpdate:modelValue":D[3]||(D[3]=I=>C.value=I),name:"Country"},null,8,["modelValue"])])])])):(l(),r("div",D_,[s("div",N_,[s("div",U_,[R_,k(qt,{id:"id",modelValue:C.value,"onUpdate:modelValue":D[4]||(D[4]=I=>C.value=I),name:"Name"},null,8,["modelValue"])]),s("div",z_,[k(qt,{id:"country",modelValue:C.value,"onUpdate:modelValue":D[5]||(D[5]=I=>C.value=I),name:"Country"},null,8,["modelValue"])]),s("div",j_,[k(qt,{id:"category",modelValue:C.value,"onUpdate:modelValue":D[6]||(D[6]=I=>C.value=I),name:"Category"},null,8,["modelValue"])]),s("div",q_,[k(qt,{id:"year",modelValue:C.value,"onUpdate:modelValue":D[7]||(D[7]=I=>C.value=I),name:"Birth / Est. Date"},null,8,["modelValue"])]),Y_])])),c(V).mobile?(l(),P(_n,{key:2,name:"list"},{default:re(()=>[(l(!0),r(Q,null,oe(A.value,I=>(l(),P(w_,Nn({key:I.id},I),null,16))),128))]),_:1})):(l(),P(_n,{key:3,name:"list"},{default:re(()=>[(l(!0),r(Q,null,oe(A.value,I=>(l(),P(m_,Nn({key:I.id},I),null,16))),128))]),_:1}))])),k(go,{"current-page":c(u),"has-more-pages":c(v),"is-loading":c(g),onLoadMore:c(m)},null,8,["current-page","has-more-pages","is-loading","onLoadMore"]),ne(k(mo,null,null,512),[[se,!c(g)&&!c(v)&&c(i).length>100]])]))}},G_=["href"],Z_={class:"collection-info"},W_={class:"collection-info-heading"},J_={class:"collection-titles"},Q_={key:0,class:"collection-heading"},X_={class:"big"},eb={class:"collection-description"},tb=["innerHTML"],nb={key:0,class:"collection-arrow"},ob=s("span",{class:"arrow-text"},"â",-1),sb=s("span",{class:"arrow-close"},"Ã",-1),lb=[ob,sb],ab={class:"collection-info-footer"},ib={key:0},rb={key:1},ub={key:2,class:"collection-footer-links"},cb={key:0,class:"collection-summary"},db=["innerHTML"],vb={key:0,class:"arrow-text"},fb={key:1,class:"arrow-close"},pb={key:0,class:"padding-top-1"},ps={__name:"MyCollection",props:{collection:Object,open:Boolean,noShare:Boolean,noUser:Boolean},emits:["deleted"],setup(e){const n=e,t=f(n.open),o=f(t.value),a=L(()=>t.value?[]:n.collection.posters.slice(0,10)),i=m=>{if(t.value){m.preventDefault();return}Jt(m)&&(o.value=!o.value)},u=f(null),d=()=>{u.value&&Le.to(window,{duration:.42,scrollTo:{autoKill:!1,y:u.value,offsetY:V.mobile?92:76}})};return z(o,()=>{o.value&&(setTimeout(d,50),setTimeout(d,700))}),(m,v)=>(l(),r("div",{ref_key:"wrap",ref:u,class:x(["my-collection white-theme margin-bottom-4",{active:o.value}])},[s("a",{href:t.value?"":c(At)(e.collection),class:x(["collection-header",{active:o.value,"no-link":t.value}]),onClick:i},[s("div",Z_,[s("div",W_,[s("div",J_,[e.collection.heading||Array.isArray(e.collection.tags)?(l(),r("p",Q_,B(e.collection.heading?e.collection.heading:e.collection.tags.join(", ")),1)):h("",!0),s("h1",X_,B(e.collection.name),1)]),s("div",eb,[e.collection.description?(l(),r("p",{key:0,innerHTML:c(vt)(e.collection.description)},null,8,tb)):h("",!0),e.noUser?h("",!0):(l(),P(en,{key:1,name:e.collection.userName,"profile-picture":e.collection.userProfilePicture,link:e.collection.userLink,small:!0,"no-pill":!0},null,8,["name","profile-picture","link"]))]),!e.open&&!c(V).mobile&&!c(V).md?(l(),r("div",nb,lb)):h("",!0)]),s("div",ab,[e.collection.posters.length>0?(l(),r("small",ib,B(e.collection.posters.length)+" "+B(e.collection.posters.length>1?"posters":"poster"),1)):(l(),r("small",rb,"no posters yet")),e.collection.status==="public"?(l(),r("div",ub,[k(wn,{id:e.collection.id,target:"collections","text-and-icon":!0},null,8,["id"]),e.noShare?h("",!0):(l(),P(Nt,{key:0,intent:"collection",position:"bottom",item:e.collection},null,8,["item"]))])):h("",!0)])]),!c(V).mobile&&!c(V).md?(l(),r("div",cb,[(l(!0),r(Q,null,oe(a.value,p=>(l(),r("div",{key:p.id,class:"collection-summary-item"},[s("picture",{innerHTML:c(yt)(p,"search")},null,8,db)]))),128))])):h("",!0)],10,G_),(c(V).mobile||c(V).md)&&!e.open?(l(),r("div",{key:0,class:"collection-arrow",onClick:i},[o.value?h("",!0):(l(),r("span",vb,"â")),o.value?(l(),r("span",fb,"Ã")):h("",!0)])):h("",!0),k(Wt,{name:"fade"},{default:re(()=>[o.value?(l(),r("div",pb,[k(an,{items:e.collection.posters,"from-collection-id":e.collection.id,size:c(ie).sizeCollections,"bkg-lightness":255},null,8,["items","from-collection-id","size"])])):h("",!0)]),_:1})],2))}},hb={class:"collections-header"},mb={class:"collections-tab-menu"},gb={key:0},yb={class:"no-flex"},_b={key:1,class:"split-baseline"},bb=s("div",{class:"share-spacer"},null,-1),kb={class:"no-flex"},$b=s("h1",null,"  / ",-1),wb={key:1,class:"share-spacer"},Mb={class:"collections-header-tools"},Tb=["innerHTML"],Il={__name:"CollectionsHeader",props:{collections:[Array,null],message:String},setup(e){return(n,t)=>{var a,i,u,d;const o=he("router-link");return l(),r("div",null,[s("div",hb,[s("div",mb,[c(V).mobile?(l(),r("div",gb,[s("h1",yb,[k(o,{to:"/collections"},{default:re(()=>[N(" Public Collections ")]),_:1})]),s("h1",{class:x(["padding-top-2 my-collections-tab-item",{"split-baseline":(a=e.collections)==null?void 0:a.length}]),style:we({paddingLeft:(i=e.collections)!=null&&i.length?"10px":0}
25)},[k(o,{to:"/collections/my"},{default:re(()=>[N(" My Collections ")]),_:1}),(u=e.collections)!=null&&u.length?(l(),P(Nt,{key:0,intent:"my-collections",position:"bottom",item:e.collections[0],"icon-only":!0},null,8,["item"])):h("",!0)],6)])):(l(),r("div",_b,[bb,s("h1",kb,[k(o,{to:"/collections"},{default:re(()=>[N(" Public Collections ")]),_:1})]),$b,s("h1",null,[k(o,{to:"/collections/my"},{default:re(()=>[N(" My Collections ")]),_:1})]),(d=e.collections)!=null&&d.length?(l(),P(Nt,{key:0,intent:"my-collections",position:"bottom",item:e.collections[0],"icon-only":!0},null,8,["item"])):(l(),r("div",wb))]))]),s("div",Mb,[k(Tn,{for:"collections"})])]),e.message?(l(),r("small",{key:0,class:"header-message margin-bottom-2",innerHTML:e.message},null,8,Tb)):h("",!0)])}}},Lb={class:"collections-archive"},Cb={__name:"CollectionsArchive",setup(e){var b,w,M,_;const{currentItems:n,currentPage:t,itemsPerPage:o,skip:a,loadMore:i,tryToLoadMore:u,hasMorePages:d,message:m,caption:v,isSearching:p,isLoading:y,setSearchHandler:g}=uo({intent:"collections",items:(w=(b=ue.value.collections)==null?void 0:b.recents)==null?void 0:w.hits,total:(_=(M=ue.value.collections)==null?void 0:M.recents)==null?void 0:_.total});return g(async T=>{var C,$,A,H,R,W;if(t.value===0&&(($=(C=ue.value.collections)==null?void 0:C.recents)!=null&&$.hits))return{hits:(H=(A=ue.value.collections)==null?void 0:A.recents)==null?void 0:H.hits,total:(W=(R=ue.value.collections)==null?void 0:R.recents)==null?void 0:W.total};try{return await Fe(`/api/tg/collections-recent?page=${t.value}&itemsPerPage=${o.value}`)}catch{return null}}),(T,C)=>(l(),r("div",Lb,[k(Il,{message:c(m)},null,8,["message"]),(l(!0),r(Q,null,oe(c(n),$=>(l(),P(ps,{key:$.id,collection:$},null,8,["collection"]))),128)),k(go,{"current-page":c(t),"has-more-pages":c(d),"is-loading":c(y),onLoadMore:c(u)},null,8,["current-page","has-more-pages","is-loading","onLoadMore"]),ne(k(mo,null,null,512),[[se,!c(y)&&!c(d)&&c(n).length>4]])]))}},Ab={class:"container footer-collection"},Sb=s("p",null," create your collection too! ",-1),xb={type:"button",class:"large-pill stateful with-icon"},Bl={__name:"FooterCollection",setup(e){return(n,t)=>{const o=he("router-link");return l(),r("div",Ab,[Sb,k(o,{to:"/archive"},{default:re(()=>[s("button",xb,[N(" Look for this icon "),k(ho)])]),_:1})])}}},Pb={class:"collections-header"},Hb={class:"collections-header-info"},Ib={key:0,class:"flex-center"},Bb=s("p",null,"You're viewing all posters collections of",-1),Eb={key:1,class:"flex-center"},Vb=s("p",null,"No public collections yet",-1),Ob={key:0,class:"margin-bottom-5"},Fb={__name:"MyPublicCollections",props:{id:String},setup(e){const n=e,t=ue.value[`user-collections/${n.id}`];let o=t==null?void 0:t.collections;const a=t==null?void 0:t.userName,i=t==null?void 0:t.userProfilePicture;(!Array.isArray(o)||!o.length)&&(o=null);const u=L(()=>{var d;return(o==null?void 0:o.length)&&((d=S.value)==null?void 0:d.id)===o[0].userId});return(d,m)=>(l(),r("div",null,[s("div",Pb,[s("div",Hb,[c(o)?(l(),r("div",Ib,[Bb,k(en,{name:c(a),"profile-picture":c(i)},null,8,["name","profile-picture"])])):(l(),r("div",Eb,[Vb,k(en,{name:c(a),"profile-picture":c(i)},null,8,["name","profile-picture"])]))])]),c(o)?(l(),r("div",Ob,[(l(!0),r(Q,null,oe(c(o),v=>(l(),P(ps,{key:v.id,collection:v,"no-user":!0},null,8,["collection"]))),128))])):h("",!0),u.value?h("",!0):(l(),P(Bl,{key:1}))]))}},Db={props:{label:{type:String,required:!0},submit:{type:Function,required:!0},confirmMessage:{type:String,default:"are you sure?"},confirmState:{type:String,default:""},waitMessage:{type:String,default:"wait..."},type:{type:String,default:null}},emits:["success","error"],setup(e,{emit:n}){const t=f(!1),o=f(!1),a=f(""),i=L(()=>!t.value),u=L(()=>t.value?e.waitMessage:o.value?e.confirmMessage:e.label);return{buttonReady:i,buttonLabel:u,confirm:o,handle:async()=>{if(i.value){if(a.value="",!o.value){o.value=!0;return}t.value=!0,o.value=!1;try{await e.submit(),n("success")}catch(m){a.value=je(m),n("error")}t.value=!1}},errorMessage:a,isLoading:t}}},Nb={class:"button-confirm"},Ub=["type","disabled","innerHTML"],Rb=["innerHTML"];function zb(e,n,t,o,a,i){return l(),r("div",Nb,[s("button",{type:t.type,disabled:!o.buttonReady,class:x(["button-confirm-btn",[`state-${t.confirmState}`,{confirm:o.confirm,wait:o.isLoading}]]),onClick:n[0]||(n[0]=U((...u)=>o.handle&&o.handle(...u),["stop","prevent"])),innerHTML:o.buttonLabel},null,10,Ub),o.errorMessage?(l(),r("small",{key:0,class:"error-message",innerHTML:o.errorMessage},null,8,Rb)):h("",!0)])}const jb=le(Db,[["render",zb]]),qb={},Yb={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"status-icon"},Kb=s("circle",{cx:"16",cy:"25",r:"2"},null,-1),Gb=s("path",{d:"m10.47 19.233 1.414 1.413a5.969 5.969 0 0 1 8.223-.009l1.413-1.413a7.963 7.963 0 0 0-11.05.01Z"},null,-1),Zb=s("path",{d:"m6.229 14.993 1.414 1.413a11.955 11.955 0 0 1 16.704-.01l1.413-1.413a13.951 13.951 0 0 0-19.531.01Z"},null,-1),Wb=s("path",{d:"M30 10.741a19.94 19.94 0 0 0-28 0v.023l1.404 1.404a17.934 17.934 0 0 1 25.181-.01L30 10.743Z"},null,-1),Jb=s("title",null,"Public",-1),Qb=[Kb,Gb,Zb,Wb,Jb];function Xb(e,n){return l(),r("svg",Yb,Qb)}const Is=le(qb,[["render",Xb]]),ek={}
25,tk={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"status-icon"},nk=s("path",{d:"M24 14h-2V8a6 6 0 00-12 0v6H8a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V16a2 2 0 00-2-2zM12 8a4 4 0 018 0v6h-8zm12 20H8V16h16z"},null,-1),ok=s("title",null,"Private",-1),sk=[nk,ok];function lk(e,n){return l(),r("svg",tk,sk)}const Bs=le(ek,[["render",lk]]),ak={},ik={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"edit-icon"},rk=s("path",{d:"M16 20h14v2H16zM16 24h14v2H16zM16 28h7v2h-7z"},null,-1),uk=s("path",{d:"M14 26H4V6h7.17l3.42 3.41.58.59H28v8h2v-8a2 2 0 00-2-2H16l-3.41-3.41A2 2 0 0011.17 4H4a2 2 0 00-2 2v20a2 2 0 002 2h10z"},null,-1),ck=s("title",null,"Edit",-1),dk=[rk,uk,ck];function vk(e,n){return l(),r("svg",ik,dk)}const fk=le(ak,[["render",vk]]),pk={},hk={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon"},mk=s("path",{d:"M10 6h4v4h-4zM18 6h4v4h-4zM10 14h4v4h-4zM18 14h4v4h-4zM10 22h4v4h-4zM18 22h4v4h-4z"},null,-1),gk=s("title",null,"Drag",-1),yk=[mk,gk];function _k(e,n){return l(),r("svg",hk,yk)}const bk=le(pk,[["render",_k]]),kk={key:0,class:"dash-head"},$k={class:"title padding-top-1"},wk=["aria-label"],Mk={class:"dash-content"},Tk={key:0,class:"stats-box"},Lk={class:"big"},Ck=["innerHTML"],Ak={key:1,class:"margin-bottom-5 margin-top-1"},Sk={class:"padding-bottom-2 padding-top-1"},xk={class:"col poster w-imgs"},Pk=["href"],Hk=["src"],Ik={class:"col name"},Bk={class:"col count"},Ek={class:"stats-count"},Vk=["innerHTML"],Ok={key:0,class:"col poster w-imgs"},Fk=["href"],Dk=["innerHTML"],Nk={key:1,class:"col name"},Uk=s("br",null,null,-1),Rk={key:2,class:"col user-picture"},zk=["href"],jk={key:3,class:"col user"},qk=["href"],Yk={class:"hover-text"},Kk={key:0},Gk=s("br",null,null,-1),Zk=["disabled","innerHTML"],Wk=["innerHTML"],Jk={__name:"DashBoxProfileStats",props:{id:String,stats:Object,title:String,infoLabel:String,listTitle:String,intent:String,noHeader:Boolean,noPoster:Boolean,postersTitle:String},setup(e){var $,A;const n=e;let t="";switch(n.intent){case"likes":t="profileGetUserLikes";break;case"collection-likes":t="userGetCollectionLikes";break;default:t="profileGetUserCollections";break}const o=L(()=>{if(n.noHeader)return"";if(n.intent==="likes"){if(n.stats.count<=1)return"like";let R=n.stats.count<=1?"poster liked":"posters liked";return R=de(R,n.stats.usersCount,"<br>","by ",n.stats.usersCount<=1?" user":" different users"),R}if(n.stats.postersCount<=1)return"poster collected";let H=n.stats.postersCount<=1?"poster collected":"posters collected";return H=de(H,n.stats.usersCount,"<br>","by ",n.stats.usersCount<=1?" user":" different users"),H=de(H,n.stats.count,"<br>","in ",n.stats.count<=1?" collection":" different collections"),H}),a=f([]),i=f(-1);let u=0,d=10,m=0,v=!0;const p=f(!1),y=f(""),g=L(()=>a.value.length<i.value||i.value===-1),b=L(()=>p.value?"loading...":g.value?"load more":a.value.length>0?`loaded all ${a.value.length}`:"no activity yet"),w=L(()=>!p.value&&g.value);async function M(){if(w.value){p.value=!0,y.value="";try{const H=await _e[t]({id:n.id,skip:m,page:u,itemsPerPage:d});a.value=a.value.concat((H==null?void 0:H.items)||[]),i.value=(H==null?void 0:H.total)||0,u++,v&&(v=!1,u=0,m=a.value.length,d=30)}catch(H){y.value=je(H)}p.value=!1}}be(async()=>{await M()});const _=f(((A=($=n.stats)==null?void 0:$.posters)==null?void 0:A.length)<=10),T=L(()=>{var R;const H=((R=n.stats)==null?void 0:R.posters)||[];return _.value?H:H.slice(0,10)});function C(){_.value=!0}return(H,R)=>{var W;return(W=e.stats)!=null&&W.count?(l(),r("div",{key:0,class:x(["dash-box",{"no-header":e.noHeader}])},[e.noHeader?h("",!0):(l(),r("div",kk,[s("h6",$k,[N(B(e.title)+" ",1),e.infoLabel?(l(),r("span",{key:0,class:"hint--bottom hint--medium","aria-label":e.infoLabel},"â",8,wk)):h("",!0)])])),s("div",Mk,[e.noHeader?h("",!0):(l(),r("div",Tk,[s("div",Lk,[s("div",null,B(e.intent==="collections"?e.stats.postersCount:e.stats.count),1),s("div",{class:"big-caption",innerHTML:o.value},null,8,Ck)])])),T.value.length?(l(),r("div",Ak,[s("h6",Sk,B(e.postersTitle),1),(l(!0),r(Q,null,oe(T.value,q=>(l(),r("div",{key:q._id,class:"col-activity-item most"},[s("div",xk,[s("a",{href:`/edit-profile/${e.id}/posters?id=${q._id}`,target:"_blank"},[s("img",{src:c(lt)(q.imagePath,"thumb")},null,8,Hk)],8,Pk)]),s("div",Ik," â"+B(q.title)+"â ",1),s("div",Bk,[s("p",Ek,B(q.count),1)])]))),128)),_.value?h("",!0):(l(),r("button",{key:0,t
25ype:"button",class:"pill margin-top-2",onClick:C,innerHTML:"view all"}))])):h("",!0),s("div",null,[e.listTitle?(l(),r("h6",{key:0,class:"padding-bottom-2 padding-top-1",innerHTML:e.listTitle},null,8,Vk)):h("",!0),(l(!0),r(Q,null,oe(a.value,q=>(l(),r("div",{key:q.id,class:"col-activity-item"},[e.noPoster?h("",!0):(l(),r("div",Ok,[s("a",{href:`/${q.profileId}/${q.posterId}`,target:"_blank"},[s("span",{innerHTML:c(ft)(q.posterImage,"thumb")},null,8,Dk)],8,Fk)])),e.noPoster?h("",!0):(l(),r("div",Nk,[N(B(c(fn)(q.createdAt,{dateStyle:"short",timeStyle:"short"})),1),Uk,N(" "+B(q.name?`â${q.name}â`:""),1)])),q.user?(l(),r("div",Rk,[s("a",{href:`/collections/user/${q.user.id}`,target:"_blank"},[k(et,{classes:"small",name:q.user.firstName,"image-path":q.user.profilePicture},null,8,["name","image-path"])],8,zk)])):h("",!0),q.user?(l(),r("div",jk,[s("a",{href:`/collections/user/${q.user.id}`,target:"_blank"},[s("span",Yk,B(q.user.firstName||"â")+" "+B(q.user.country?" / ":"")+" "+B(q.user.country),1),e.noPoster?(l(),r("span",Kk,[Gk,N(" "+B(c(fn)(q.createdAt,{dateStyle:"short",timeStyle:"short"})),1)])):h("",!0)],8,qk)])):h("",!0)]))),128)),s("button",{type:"button",class:"pill margin-top-2",disabled:!g.value,onClick:M,innerHTML:b.value},null,8,Zk),y.value?(l(),r("small",{key:1,class:"color-error padding-top-1",innerHTML:y.value},null,8,Wk)):h("",!0)])])],2)):h("",!0)}}},Qk={__name:"CollectionLikes",props:{id:String,stats:Object},setup(e){const n=f(!1),t=f(null),o=f(null),{offset:a,neverOpened:i,refresh:u}=on({isOpen:n,popup:t,button:o}),d=m=>{n.value=!0};return(m,v)=>(l(),r("div",{class:"popup-wrap",onClick:v[2]||(v[2]=(...p)=>c(Jt)&&c(Jt)(...p))},[s("small",{ref_key:"button",ref:o,class:"collection-like-count bold",onClick:U(d,["stop","prevent"])},B(e.stats.count)+" "+B(e.stats.count>1?"likes":"like"),513),s("div",{ref_key:"popup",ref:t,class:x(["popup flex bottom",[{open:n.value,"never-opened":c(i)}]]),style:we({"--offset":`${c(a)}px`,"--offset-y-bottom":"8px"}),onClick:v[0]||(v[0]=U(p=>n.value=!0,["stop"]))},[k(Jk,{id:e.id,stats:e.stats,intent:"collection-likes","no-header":!0,"no-poster":!0},null,8,["id","stats"])],6),c($e)?(l(),r("div",{key:0,class:x(["side-menu-bkg",{open:n.value}]),onClick:v[1]||(v[1]=p=>n.value=!1)},null,2)):h("",!0)]))}},Xk={class:"collection-info"},e$=["href"],t$={class:"collection-titles"},n$={key:0,class:"collection-heading"},o$={class:"big"},s$={class:"collection-description"},l$=["innerHTML"],a$={key:0,class:"collection-arrow"},i$=s("span",{class:"arrow-text"},"â",-1),r$=s("span",{class:"arrow-close"},"Ã",-1),u$=[i$,r$],c$={class:"collection-info-footer"},d$={key:0,class:"split-baseline"},v$={key:0},f$={key:1},p$={class:"collection-footer-links"},h$={class:"hover-text"},m$={key:0},g$={key:1},y$=["innerHTML"],_$={class:"active-text"},b$={key:0},k$=["innerHTML"],$$=["href"],w$=["innerHTML"],M$={class:"padding-top-1"},T$={class:"row"},L$={class:"col-12 col-lg-6 padding-top-2"},C$={class:"col-12 col-lg-2 padding-bottom-1 form-buttons padding-top-2"},A$=["disabled"],S$=["innerHTML"],x$={key:0,class:"arrow-text"},P$={key:1,class:"arrow-close"},El={__name:"EditMyCollection",props:{collection:Object,open:Boolean,canDrag:Boolean},emits:["deleted"],setup(e){const n=e,t=xt(n,"collection"),o=L(()=>{let q=t.value.posters.slice(0);if(!S.value||!S.value.collections)return q;const G=S.value.collections.findIndex(ve=>ve.id===t.value.id);if(G!==-1){const ve=S.value.collections[G].posters;q=q.filter(F=>ve.includes(F.id))}return q}),a=f(n.open),i=f(n.open),u=f(!1),d=L(()=>o.value.slice(0,20)),m=f(!1),v=f(!1),p=f(""),y=f(!1);z(t.value,()=>{y.value=!0},{deep:!0});const g=L(()=>!v.value&&y.value);async function b(){if(g.value){v.value=!0,p.value="";try{const q=await _e.userCollectionsUpdate({id:t.value.id,name:t.value.name,heading:t.value.heading,tags:t.value.tags,description:t.value.description});Pe(()=>{y.value=!1})}catch(q){p.value=je(q)}v.value=!1}}async function w(){await _e.userCollectionsDelete({id:t.value.id})}const M=f(!1);async function _(){if(M.value)return;M.value=!0,p.value="";const q=y.value;try{const G=await _e.userCollectionsToggleStatus({id:t.value.id});t.value.status=G.status,Pe(()=>{y.value=q})}catch(G){p.value=je(G)}M.value=!1}const T=f(!1);async function C(q){const G=[];for(const F of q)G.push(F.id);T.value=!0;const ve=t.value.posters;t.value.posters=q.slice();try{const F=await _e.userCollectionsUpdateOrder({id:t.value.id,order:G});if(F.icon){const D=S.value.collections.findIndex(I=>I.id===t.value.id);D!==-1&&(S.value.collections[D].icon=F.icon)}}catch{t.value.posters=ve}T.value=!1}function $(q){if(Jt(q)){if(n.open)return;u.value&&W(),a.value=!a.value,i.value=a.value}}const A=f(null);function H(){A.value&&Le.to(window,{duration:.42,scrollTo:{autoKill:!1,y:A.value,offsetY:V.mobile?92:76}})}z(a,()=>{a.value&&(setTimeout(H,50),setTimeout(H,700))}),z(u,()=>{u.value&&(setTimeout(H,50),setTimeout(H,700)),m.value=!1,setTimeout(()=>{m.value=u.value},500)});function R(){u.value=!0,a.value=!0,i.value=!0}function W(){u.value=!1,a.value=!0,i.value=!0}return(q,G)=>{var ve,F,D,I,E,X;return l(),r("div",{ref_key:"wrap",ref:A,class:x(["edit-my-collection white-theme",{active:a.value,"light-gray-theme":t.value.status==="private","white-theme":t.value.status==="public"}])},[s("div",{class:x(["collection-header",{active:a.value}])},[s("div",Xk,[s("a",{class:"collection-info-heading",href:t.value.status==="private"?null:c(At)(t.value),onClick:$},[s("div",t$,[t.value.heading||Array.isArray(t.value.tags)?(l(),r("p",n$,B(t.value.heading?t.value.heading:t.value.tags.join(", ")),1)):h("",!0),s("h1",o$,B(t.value.name),1)]),s("div",s$,[t.value.description?(l(),r("p",{key:0,innerHTML:c(vt)(t.value.description)},null,8,l$)):h("",!0)]),!e.open&&!c(V).mobile&&!c(V).md?(l(),r("div",a$,u$)):h("",!0)],8,e$),s("div",c$,[o.value.length?(l(),r("div",d$,[s("small",null,B(o.value.length)+" "+B(o.value.length>1?"posters":"poster"),1),(D=(F=(ve=t.value)==null?void 0:ve.stats)==null?void 0:F.like
25s)!=null&&D.count?(l(),r("small",v$," / ")):h("",!0),(X=(E=(I=t.value)==null?void 0:I.stats)==null?void 0:E.likes)!=null&&X.count?(l(),P(Qk,{key:1,id:t.value.id,stats:t.value.stats.likes},null,8,["id","stats"])):h("",!0)])):(l(),r("small",f$,"no posters yet")),s("div",p$,[s("button",{type:"button",class:x(["tag no-spacing with-icon with-hover status-switch-btn",[t.value.status]]),onClick:U(_,["prevent"])},[s("span",h$,[M.value?(l(),r("span",m$,"wait...")):(l(),r("span",g$,[N("switch to "),s("span",{innerHTML:t.value.status==="private"?"public":"private"},null,8,y$)])),t.value.status==="private"?(l(),P(Is,{key:2})):(l(),P(Bs,{key:3}))]),s("span",_$,[M.value?(l(),r("span",b$,"wait...")):(l(),r("span",{key:1,innerHTML:t.value.status},null,8,k$)),t.value.status==="public"?(l(),P(Is,{key:2})):(l(),P(Bs,{key:3}))])],2),t.value.status==="public"?(l(),P(Nt,{key:0,intent:"collection",position:"bottom",item:t.value},null,8,["item"])):h("",!0),e.canDrag?(l(),r("div",{key:1,class:x(["color-link share-button reorder-button hint--large",{"hint--top":!a.value,"hint--top-left":a.value}]),"aria-label":"to reorder between collections drag here. to reoder the posters just drag them.",onClick:G[0]||(G[0]=U(()=>{},["stop","prevent"]))},[N(" order "),k(bk)],2)):h("",!0),s("div",{class:"color-link share-button edit-button",onClick:U(R,["prevent"])},[N(" edit "),k(fk)])])])]),!c(V).mobile&&!c(V).md?(l(),r("a",{key:0,class:"collection-summary",href:t.value.status==="private"?null:c(At)(t.value),onClick:$},[(l(!0),r(Q,null,oe(d.value,ee=>(l(),r("div",{key:ee.id,class:"collection-summary-item"},[s("picture",{innerHTML:c(yt)(ee,"search")},null,8,w$)]))),128))],8,$$)):h("",!0)],2),a.value?(l(),r("div",{key:0,class:x(["edit-collection-form container gray-theme",{active:u.value,"with-heading":c(st),visible:m.value}])},[s("div",M$,[s("button",{type:"button",class:"tool",onClick:W},[k(Xt)])]),s("form",{onSubmit:U(b,["prevent"])},[s("div",T$,[s("div",L$,[k(Se,{modelValue:t.value.name,"onUpdate:modelValue":G[1]||(G[1]=ee=>t.value.name=ee),label:"Collection Name"},null,8,["modelValue"]),c(st)?(l(),P(Se,{key:0,modelValue:t.value.heading,"onUpdate:modelValue":G[2]||(G[2]=ee=>t.value.heading=ee),label:"Heading"},null,8,["modelValue"])):h("",!0),(l(),P(hl,{key:t.value.id,modelValue:t.value.tags,"onUpdate:modelValue":G[3]||(G[3]=ee=>t.value.tags=ee),options:["inspiration","research","references for new job","just for fun"],label:"Tags","options-instructions":"tags below are suggestions, you can enter your own tags"},null,8,["modelValue"])),k(ml,{modelValue:t.value.description,"onUpdate:modelValue":G[4]||(G[4]=ee=>t.value.description=ee),label:"Description",rows:4},null,8,["modelValue"])]),s("div",C$,[s("button",{disabled:!g.value,class:"large-pill more-pad stateful outlined margin-bottom-2"}," update ",8,A$),k(jb,{type:"button",label:"Delete","confirm-state":"red",submit:w,onSuccess:G[5]||(G[5]=ee=>q.$emit("deleted",t.value.id))}),p.value?(l(),r("small",{key:0,class:"color-error padding-top-2",innerHTML:p.value},null,8,S$)):h("",!0)])])],32)],2)):h("",!0),(c(V).mobile||c(V).md)&&!e.open?(l(),r("div",{key:1,class:"collection-arrow",onClick:$},[i.value?h("",!0):(l(),r("span",x$,"â")),i.value?(l(),r("span",P$,"Ã")):h("",!0)])):h("",!0),k(Wt,{name:"fade"},{default:re(()=>[i.value?(l(),r("div",{key:0,class:x(["padding-top-1 padding-bottom-5",{"wait-child":T.value}])},[k(an,{items:o.value,"dont-track":!0,size:c(ie).sizeCollections,"with-reorder":!0,onReorder:C},null,8,["items","size"])],2)):h("",!0)]),_:1})],2)}}},H$={class:"collections-header"},I$={class:"collections-header-info"},B$={key:0},E$={key:1,class:"flex-center"},V$=s("p",{class:"no-spacing padding-bottom-1 padding-top-2"}," This is your private collection ",-1),O$=s("small",null,"Only you have access",-1),F$={key:2,class:"flex-center"},D$=s("p",null,"You're viewing a poster collection by",-1),N$={key:0,class:"color-links padding-top-2"},U$=s("span",{class:"link-arrow"},"â",-1),R$={key:3,class:"padding-top-4"},z$={key:0,class:"collections-header-tools"},j$={key:0,class:"margin-bottom-5"},q$={__name:"Collection",props:{id:String},setup(e){const n=e,t=f(ue.value[`collection/${n.id}`]),o=f(!1),a=f(!1),i=f(!1);!t.value&&n.id&&ae.value&&kt(async()=>{await qe(),a.value=!0;try{t.value=await _e.userCollectionsGet({collectionId:n.id}),o.value=!0}catch{}a.value=!1,i.value=!0});const u=L(()=>{var d;return t.value&&((d=S.value)==null?void 0:d.id)===t.value.userId});return(d,m)=>{const v=he("router-link");return l(),r("div",null,[s("div",H$,[s("div",I$,[a.value?(l(),r("p",B$," loading... ")):t.value&&t.value.status!=="public"?(l(),r("div",E$,[k(en,{name:t.value.userName,"profile-picture":t.value.userProfilePicture,"use-current":o.value},null,8,["name","profile-picture","use-current"]),V$,O$])):t.value?(l(),r("div",F$,[D$,k(en,{name:t.value.userName,"profile-picture":t.value.userProfilePicture,"use-current":o.value},null,8,["name","profile-picture","use-current"]),t.value.userLink?(l(),r("small",N$,[k(v,{to:t.value.userLink,onMouseenter:m[0]||(m[0]=p=>c(Ee)({name:"user-collections",id:t.value.userId}))},{default:re(()=>[N("View all "),U$]),_:1},8,["to"])])):h("",!0)])):(l(),r("p",R$," Collection not found "))]),t.value?(l(),r("div",z$,[k(Tn,{for:"collections"})])):h("",!0)]),t.value?(l(),r("div",j$,[u.value?(l(),P(El,{key:0,collection:t.value,open:!0},null,8,["collection"])):(l(),P(ps,{key:1,collection:t.value,open:!0,"no-user":!0},null,8,["collection"]))])):h("",!0),u.value?h("",!0):(l(),P(Bl,{key:1}))])}}},Y$=["onClick"],K$={key:0,class:"scroll-icon"},G$=["src"],Z$=["innerHTML"],W$={__name:"MediaGalleryThumbs",props:{items:Array,index:Number}
25,emits:["key","click"],setup(e,{emit:n}){const t=e,o=n;Oe("keydown",u=>{switch(u.code){case"ArrowRight":u.preventDefault(),t.index<t.items.length-1&&o("key",t.index+1);break;case"ArrowLeft":u.preventDefault(),t.index>0&&o("key",t.index-1);break}});const a=xt(t,"index"),i=f(null);return z(a,u=>{const d=i.value.children[u];d&&(d.offsetLeft+d.offsetWidth>i.value.offsetWidth+i.value.scrollLeft||d.offsetLeft-d.offsetWidth<i.value.scrollLeft)&&Le.to(i.value,{scrollTo:{x:d,offsetX:i.value.offsetWidth/2-d.offsetWidth/2-8},duration:.3})}),(u,d)=>(l(),r("div",{ref_key:"scroll",ref:i,class:"media-gallery-thumbs"},[(l(!0),r(Q,null,oe(e.items,(m,v)=>(l(),r("div",{key:m.path,class:x(["item",{selected:a.value===v,video:m.type==="video"}]),onClick:p=>o("click",v)},[m.type==="video"?(l(),r("div",K$,[k(kn)])):h("",!0),m.type==="video"?(l(),r("img",{key:1,src:`https://assets.typographicposters.com/animated-poster${c(bn)(m.path,"jpg")}`},null,8,G$)):(l(),r("span",{key:2,innerHTML:c(ft)(m.path,"poster")},null,8,Z$))],10,Y$))),128))],512))}},J$={key:1,class:"tools"},Q$={class:"numbers"},X$={class:"arrows"},ew=["disabled"],tw=["disabled"],nw={key:2,class:"media-gallery-area"},ow={class:"item"},sw=["innerHTML"],lw={__name:"MediaGallery",props:{items:Array},setup(e){const n=e,t=f(0),o=L(()=>{var b;return(b=n.items)==null?void 0:b[t.value]}),a=L(()=>{var b;return(b=n.items)==null?void 0:b[t.value-1]}),i=L(()=>{var b;return(b=n.items)==null?void 0:b[t.value+1]}),u=L(()=>n.items.some(b=>b.caption||b.copyright)),d=L(()=>{var w,M,_;let b="";return b=de(b,vt((w=o.value)==null?void 0:w.caption)),b=de(b,(M=o.value)==null?void 0:M.copyright,"<br>"),(_=o.value)!=null&&_.caption||(b+="<br> "),b}),{el:m,isVisible:v,isInside:p,isOverflowY:y}=o2({debug:!1,offsetY:44});function g(b){Qn.value||v.value&&(t.value=b,!p.value&&!y.value&&Le.to(window,{scrollTo:{y:m.value,offsetY:44}}))}return z(t,b=>{}),(b,w)=>(l(),r("div",{ref_key:"el",ref:m,class:"media-gallery"},[s("div",{class:x(["media-gallery-view",{"has-captions":u.value,"single-item":e.items.length===1}])},[e.items.length>1?(l(),P(W$,{key:0,items:e.items,index:t.value,onKey:w[0]||(w[0]=M=>g(M)),onClick:w[1]||(w[1]=M=>g(M))},null,8,["items","index"])):h("",!0),e.items.length>1?(l(),r("div",J$,[s("div",Q$,B(t.value+1)+"/"+B(e.items.length),1),s("div",X$,[s("button",{class:"arrow",title:"use keyboard arrows too",disabled:!a.value,onClick:w[2]||(w[2]=()=>g(t.value-1))}," â ",8,ew),s("button",{class:"arrow",title:"use keyboard arrows too",disabled:!i.value,onClick:w[3]||(w[3]=()=>g(t.value+1))}," â ",8,tw)])])):h("",!0),o.value?(l(),r("div",nw,[s("div",ow,[o.value.type==="video"?(l(),P(po,{key:0,class:"scroll-icon",video:`https://assets.typographicposters.com/animated-poster${c(bn)(o.value.path,"mp4")}`,poster:`https://assets.typographicposters.com/animated-poster${c(bn)(o.value.path,"jpg")}`,controls:!0,loop:!0,width:o.value.width||0,height:o.value.height||0},null,8,["video","poster","width","height"])):(l(),P(fo,{key:1,image:o.value,size:"poster"},null,8,["image"]))])])):h("",!0),u.value?(l(),r("small",{key:3,class:"caption active-links",innerHTML:d.value},null,8,sw)):h("",!0)],2)],512))}},aw={class:"media-gallery-mobile"},iw={class:"scroll"},rw=["innerHTML"],uw={__name:"MediaGalleryMobile",props:{items:Array},setup(e){return(n,t)=>(l(),r("div",aw,[s("div",iw,[(l(!0),r(Q,null,oe(e.items,o=>(l(),r("div",{key:o.path,class:"item"},[o.type==="video"?(l(),P(po,{key:0,video:`https://assets.typographicposters.com/animated-poster${c(bn)(o.path,"mp4")}`,poster:`https://assets.typographicposters.com/animated-poster${c(bn)(o.path,"jpg")}`,controls:!0,loop:!0,width:o.width||0,height:o.height||0},null,8,["video","poster","width","height"])):(l(),P(fo,{key:1,image:o,size:"poster"},null,8,["image"])),o.caption||o.copyright?(l(),r("small",{key:2,class:"caption active-links",innerHTML:(o.caption?`${c(vt)(o.caption)}<br>`:"")+o.copyright||""},null,8,rw)):h("",!0)]))),128))])]))}};function cw({profile:e}){const n=Lo("MG8QIS8HDX",e.searchKey).initIndex("posters"),t=f([]),o=L(()=>t.value.length===1&&["awarded","year","animated","country"].includes(t.value[0].filterKey)),{q:a,colors:i,currentItems:u,currentPage:d,itemsPerPage:m,loadMore:v,tryToLoadMore:p,hasMorePages:y,loadAllUntil:g,message:b,isSearching:w,isLoading:M,setSearchHandler:_,targetRequestId:T}=uo({intent:"profile-posters",features:{q:!0,colors:!0,filters:!!e.filters},items:e.posters,total:e.postersCount,activeTags:t,defaultMessage:e.postersYears,forceSortOrder:o}),C=["primary","secondary","tertiary","quaternary","quinary"],$=f(0),A=L(()=>$.value<C.length-1);z([i,i.value,a],()=>{$.value=0});const H={continent:"locations.continentCode",country:"locations.countryCode","print-process":"printProcess",format:"size",year:"year",tag:"tag",category:"category",animated:"animated",awarded:"awarded"};function R(W){var ve;const q={page:d.value,hitsPerPage:m.value,analytics:ct,clickAnalytics:ct};(ve=S.value)!=null&&ve.id&&(q.userToken=S.value.id);let G=[];if(t.value.length){const F={};for(const D of t.value)F[D.filterKey]||(F[D.filterKey]=[]),F[D.filterKey].push(D.key),D.filterKey==="print-process"&&D.key==="silkscreen"&&F[D.filterKey].push("silkscreen-on-offset","silkscreen-on-digital");for(const D in F)if(H[D])switch(H[D]){case"animated":G.push("withAnimated:true");break;case"awarded":G.push("withAwards:true");break;case"tag":{const I=[].concat(F[D].map(E=>`tags:"${E}"<score=2>`),F[D].map(E=>`autoTags:"${E}"<score=2>`),F[D].map(E=>`visionLabels:"${E}"<score=1>`),F[D].map(E=>`visionLogo:"${E}
25"<score=1>`),F[D].map(E=>`visionLandmark:"${E}"<score=1>`),F[D].map(E=>`visionWeb:"${E}"<score=1>`),F[D].map(E=>`visionObjects:"${E}"<score=1>`));G.push(I.join(" OR "))}break;default:G.push(F[D].map(I=>`${H[D]}:"${I}"`).join(" OR "));break}}if(i.value.length)for(let F=0;F<i.value.length;F++){const D=i.value[F],I=Bt.hex.lab(D),X=I[1]===0&&I[2]===0?10:20,ee=20;if(F===0){const Z=`(colors.${W}.lab.l:${I[0]-X} TO ${I[0]+X} AND colors.${W}.lab.a:${I[1]-ee} TO ${I[1]+ee} AND colors.${W}.lab.b:${I[2]-ee} TO ${I[2]+ee})`;G.push(Z)}else G.push(`(labColors.l:${I[0]-X} TO ${I[0]+X} AND labColors.a:${I[1]-ee} TO ${I[1]+ee} AND labColors.b:${I[2]-ee} TO ${I[2]+ee})`)}return G=G.join(" AND "),{...q,filters:G||void 0}}return _(async W=>{var q;if(w.value)try{let G;if(i.value.length){for(G={hits:[],nbHits:0},($.value===0||y.value)&&(G=await n.search(a==null?void 0:a.value,R(C[$.value])));G.hits.length===0&&A.value;)d.value=0,G=await n.search(a==null?void 0:a.value,R(C[++$.value]));G.hits.length<m.value&&A.value&&setTimeout(()=>{W===T.value&&v()},50)}else o.value?(G=await n.search(a==null?void 0:a.value,R()),(q=G==null?void 0:G.hits)!=null&&q.length&&(G.hits=Rs(G.hits,"sortOrder"))):G=await n.search(a==null?void 0:a.value,R());return G}catch{return null}if(d.value===0)return{hits:e.posters,total:e.postersCount};try{return await Fe(`/api/tg/profile-posters?id=${e.id}&page=${d.value}&itemsPerPage=${m.value}`)}catch{return null}}),{q:a,colors:i,activeTags:t,currentItems:u,currentPage:d,tryToLoadMore:p,loadAllUntil:g,hasMorePages:y,hasMoreColors:A,message:b,isSearching:w,isLoading:M}}const dw={__name:"ProfileArchive",props:{profile:Object,initiallyOpen:String,layoutFeatures:Object},setup(e){const n=e,{q:t,colors:o,activeTags:a,currentItems:i,message:u,isSearching:d,isLoading:m,currentPage:v,tryToLoadMore:p,loadAllUntil:y,hasMorePages:g,hasMoreColors:b}=cw({profile:n.profile}),w=L(()=>!!a.value.find(T=>T.filterKey==="animated")),M=f(null);function _(){Le.to(window,{duration:.84,ease:"Power2.easeInOut",scrollTo:{autoKill:!0,y:M.value,offsetY:V.mobile?59:40}})}return be(()=>{setTimeout(()=>{d.value&&(m.value?ua(m,_):_())},850)}),(T,C)=>{var $;return l(),r("div",{ref_key:"el",ref:M},[k(Hl,{tags:c(a),"onUpdate:tags":C[0]||(C[0]=A=>Rn(a)?a.value=A:null),q:c(t),"onUpdate:q":C[1]||(C[1]=A=>Rn(t)?t.value=A:null),filters:e.profile.filters,"with-search":!!(($=e.profile.searchFeatures)!=null&&$.q),"with-view-options":"profiles","view-options-animated":!0,message:c(u)},null,8,["tags","q","filters","with-search","message"]),k(an,{"for-profile":!0,items:c(i),"initially-open":e.initiallyOpen,"load-all-until":c(y),size:c(ie).sizeProfiles,"layout-features":e.layoutFeatures,"is-searching":c(d),"force-animated":w.value,onEnd:c(p)},null,8,["items","initially-open","load-all-until","size","layout-features","is-searching","force-animated","onEnd"]),k(go,{"current-page":c(v),"has-more-pages":c(g)||!!(c(o).length&&c(b)),"is-loading":c(m),onLoadMore:c(p)},null,8,["current-page","has-more-pages","is-loading","onLoadMore"]),ne(k(mo,null,null,512),[[se,!c(m)&&!c(g)&&c(i).length>4]])],512)}}},vw=s("hr",null,null,-1),fw=["innerHTML"],Hn=22,pw={__name:"ProfileDescription",props:{description:String,head:null,footer:null,image:null,withImage:Boolean},setup(e){const n=e,t=fs({self:!0,scrollOnClose:!0}),o=f(0),a=Ct(()=>{if(V.mobile||V.md)o.value=Hn*6;else if(!n.withImage)o.value=Hn*12;else{const u=n.head.offsetHeight+32,d=n.footer.offsetHeight+8+36+42,m=n.image.getElementsByTagName("img")[0].offsetHeight;o.value=m-u-d,o.value=Math.floor(o.value/Hn)*Hn}o.value+=3}),i=L(()=>t.height.value>o.value);return be(async()=>{await Pe(),n.withImage&&Wo(n.image,a),a(),Oe("resize",a),Oe("orientationchange",a)}),(u,d)=>(l(),r("div",null,[vw,s("div",{style:we({"--min-height":`${o.value}px`,"--h":`${c(t).height.value}px`}),class:x([{open:!i.value||c(t).isExpanded.value},"profile-description active-links"])},[s("div",{ref:c(t).content,class:"content-pad"},[s("p",{innerHTML:c(vt)(e.description)},null,8,fw)],512)],6),i.value?(l(),r("button",{key:0,type:"button",class:"text-p",onClick:d[0]||(d[0]=(...m)=>c(t).toggle&&c(t).toggle(...m))},B(c(t).isExpanded.value?"Close â":"Read More â"),1)):h("",!0)]))}},hw={class:"container margin-top-6 margin-bottom-5 common-links"},mw=["href"],Vl={__name:"NotFound",setup(e){const n=qs(),t=n.params.pathMatch?`/archive?q=${n.params.pathMatch[0]}`:"/archive";return(o,a)=>(l(),r("div",hw,[s("h1",null,[N("Page not found, "),s("a",{href:c(t)},"try searching",8,mw),N(" â")])]))}},gw={key:1},yw={key:0,class:"private-profile-message common-links"},_w={class:"container white-theme profile"},bw={class:"row"},kw={class:"col-12 col-lg-6 profile-info"},$w=s("hr",null,null,-1),ww=["innerHTML"],Mw=["innerHTML"],Tw=["innerHTML"],Lw=s("hr",null,null,-1),Cw=["innerHTML"],Aw={key:1},Sw=["innerHTML"],xw={key:1,class:"upload-remember common-links"},Pw={key:2,class:"gray-theme container"},Hw={class:"exhibition-welcome"},Iw={key:0,class:"text-center common-links padding-bottom-1"},Bw=s("h1",{class:"white-text"}," this exhibition is currently open for visitation ",-1),Ew={class:"no-spacing padding-top-1"},Vw={key:0,class:"no-spacing"},Ow={key:1,class:"no-spacing"},Fw=["href"],Dw=["href"],Nw={class:"buy-book"},Uw=["innerHTML"],Rw={class:"book-infos"},zw=s("small",{class:"store-blue-text"},"book available",-1),jw=["innerHTML"],qw=["innerHTML"],Yw={key:3},Kw={key:5},Gw={key:0,class:"posters-years lining-numbers"},Zw=["innerHTML"],Ww={class:"padding-top-3 margin-bottom-5"},Jw={key:6,class:"footer-collection padding-top-3 color-links"}
25,Qw={key:0},Xw={key:1},e3={key:7,class:"footer-collection"},t3=s("p",null,"waiting for the posters",-1),n3=[t3],Es={__name:"Profile",props:{id:String,posterId:String},setup(e){const n=e,t=L(()=>{const M=ue.value[`profile/${n.id}`];if((M==null?void 0:M.status)==="private"){if(st.value)return M;if(!dt.value||!S.value||!S.value.allowedProfiles.find(_=>_.id===n.id))return null}return M}),o=f(""),a=f(""),i=f(""),u=f(""),d=f("");z(t,async()=>{var M;o.value=li(t.value),a.value=sl(t.value),i.value=ii(t.value),u.value=al(t.value),d.value=(((M=t.value)==null?void 0:M.name)||"").replace("+","+<wbr>")},{immediate:!0});const m=f(null),v=f(null),p=f(null),y=f(!!ys.get("hide_author_reminder")),g=L(()=>ae.value&&!$e&&!y.value&&dt.value&&S.value.allowedProfiles.find(M=>M.id===n.id));function b(){y.value=!0,ys.set("hide_author_reminder",1,{secure:!0,expires:7,sameSite:"strict"})}const w=L(()=>{var M,_;if((M=t.value)!=null&&M.startDate&&((_=t.value)!=null&&_.endDate)){const T=new Date,C=new Date(t.value.startDate);C.setHours(0,0,0,0);const $=new Date(t.value.endDate);return $.setHours(23,59,59,999),T>=C&&T<=$}return!1});return(M,_)=>{var C,$,A,H,R;const T=he("router-link");return t.value?(l(),r("div",gw,[t.value.status==="private"?(l(),r("div",yw,[s("h6",null," this is a private page. only you"+B((C=c(S))!=null&&C.firstName?`, ${c(S).firstName},`:"")+" can view while logged in. ",1)])):h("",!0),s("main",_w,[s("div",bw,[s("div",kw,[$w,s("div",{ref_key:"profileHead",ref:m,class:"split-h padding-bottom-2"},[s("div",null,[o.value?(l(),r("h6",{key:0,class:"bold",innerHTML:o.value},null,8,ww)):h("",!0),s("h1",{class:"big",innerHTML:d.value},null,8,Mw),a.value?(l(),r("h6",{key:1,innerHTML:a.value},null,8,Tw)):h("",!0)]),k(et,{classes:"margin-top-0-5 margin-left-1 large",name:t.value.name,"image-path":t.value.profilePicture},null,8,["name","image-path"])],512),t.value.description?(l(),P(pw,{key:t.value.id,description:t.value.description,head:m.value,footer:v.value,image:p.value,"with-image":!!u.value},null,8,["description","head","footer","image","with-image"])):h("",!0),Lw,s("div",{ref_key:"profileFooter",ref:v,class:"split-baseline"},[i.value?(l(),r("h6",{key:0,class:"color-links",innerHTML:i.value},null,8,Cw)):(l(),r("span",Aw," ")),k(Nt,{item:t.value,intent:"profile",position:"bottom"},null,8,["item"])],512)]),s("div",{ref_key:"profileImage",ref:p,class:"profile-studio-picture w-imgs",innerHTML:u.value},null,8,Sw)])]),g.value?(l(),r("div",xw,[s("h6",null,[N(" Hello"+B(($=c(S))!=null&&$.firstName?` ${c(S).firstName}`:"")+", hope to find you well â To upload new posters just drag and drop anywhere â ",1),k(T,{to:`/author-area/${e.id}`},{default:re(()=>[N(" To enter your author area click here ")]),_:1},8,["to"])]),s("h6",{class:"close-remember common-link",onClick:b}," à close ")])):h("",!0),t.value.bookThumb&&t.value.bookUrl||w.value?(l(),r("div",Pw,[s("div",Hw,[w.value?(l(),r("div",Iw,[Bw,s("p",Ew," from "+B(t.value.formattedDate)+" at ",1),t.value.address?(l(),r("p",Vw,B(t.value.address),1)):h("",!0),(A=t.value.websites)!=null&&A.length?(l(),r("p",Ow,[s("a",{href:t.value.websites[0],target:"_blank",rel:"noopener"}," more info â ",8,Fw)])):h("",!0)])):h("",!0),t.value.bookUrl&&t.value.bookThumb?(l(),r("a",{key:1,href:t.value.bookUrl,target:"_blank",rel:"noopener",class:"buy-book-link"},[s("div",Nw,[s("div",{class:"book-pill",innerHTML:c(ft)(t.value.bookThumb,"search")}
25,null,8,Uw),s("div",Rw,[zw,t.value.bookTitle?(l(),r("p",{key:0,class:"tight short-spacing",innerHTML:t.value.bookTitle},null,8,jw)):h("",!0),t.value.bookDetails?(l(),r("small",{key:1,innerHTML:c(vt)(t.value.bookDetails)},null,8,qw)):h("",!0)])])],8,Dw)):h("",!0)])])):h("",!0),(H=t.value.media)!=null&&H.length?(l(),r("span",Yw,[c(V).mobile||c(V).md?(l(),P(uw,{key:0,items:t.value.media},null,8,["items"])):(l(),P(lw,{key:1,items:t.value.media},null,8,["items"]))])):h("",!0),t.value.withSearch?(l(),P(dw,{key:t.value.id,profile:t.value,"initially-open":e.posterId,"layout-features":t.value.layoutFeatures},null,8,["profile","initially-open","layout-features"])):(l(),r("span",Kw,[t.value.postersYears?(l(),r("div",Gw,[s("small",{innerHTML:t.value.postersYears},null,8,Zw),k(Tn,{for:"profiles"})])):h("",!0),s("div",Ww,[k(an,{"for-profile":!0,items:t.value.posters,"initially-open":e.posterId,size:c(ie).sizeProfiles,"layout-features":t.value.layoutFeatures},null,8,["items","initially-open","size","layout-features"])])])),(R=t.value.posters)!=null&&R.length?(l(),r("div",Jw,[g.value?(l(),r("p",Qw," have a nice day"+B(c(S).firstName?` ${c(S).firstName}`:""),1)):t.value.withSearch?h("",!0):(l(),r("p",Xw,[k(T,{to:"/profiles",onMouseenter:_[0]||(_[0]=W=>c(Ee)("profiles"))},{default:re(()=>[N(" view all profiles â ")]),_:1})]))])):["public","unlisted"].includes(t.value.status)?h("",!0):(l(),r("div",e3,n3))])):(l(),P(Vl,{key:0}))}}},o3={key:0,class:"container margin-top-7"},s3=s("p",null,"loading...",-1),l3=[s3],a3={key:1,class:"container edit-profiles common-links"},i3=s("p",null,"Select the profile to edit:",-1),r3=["href"],u3={key:2,class:"container margin-top-7 active-links"},c3=s("h2",null,"Your user is not authorized to this",-1),d3=s("p",null,[s("br"),N("if you believe something is wrong please contact us")],-1),v3=[c3,d3],f3={__name:"EditProfileSelect",setup(e){const n=f([]),t=f(!1);return kt(async()=>{if(Re.value){fe.value=!0;try{n.value=await _e.profileGetAll()}catch{}fe.value=!1}t.value=!0}),(o,a)=>(l(),r("div",null,[t.value?n.value&&n.value.length?(l(),r("div",a3,[i3,(l(!0),r(Q,null,oe(n.value,i=>(l(),r("div",{key:i.id,class:"edit-profiles-item"},[s("h1",null,[s("a",{href:`/author-area/${i.id}`},B(i.name?i.name:i.id),9,r3)])]))),128))])):(l(),r("div",u3,v3)):(l(),r("div",o3,l3))]))}},p3={},h3={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon icon-login"},m3=Uo('<path d="M7,5.21a.77.77,0,0,1-.46-1.38A15.46,15.46,0,0,1,16,1c2.66,0,6.48.45,9.5,2.62a.77.77,0,0,1,.18,1.07.78.78,0,0,1-1.08.17A15,15,0,0,0,16,2.53,14,14,0,0,0,7.5,5.05.74.74,0,0,1,7,5.21Z"></path><path d="M28.23,12.26a.78.78,0,0,1-.63-.33C25.87,9.49,22.78,6.24,16,6.24a14,14,0,0,0-11.63,5.7.77.77,0,0,1-1.07.17A.76.76,0,0,1,3.15,11,15.54,15.54,0,0,1,16,4.71c5.61,0,9.81,2.08,12.84,6.34a.77.77,0,0,1-.19,1.07A.79.79,0,0,1,28.23,12.26Z"></path><path d="M12.28,31a.78.78,0,0,1-.72-.49.75.75,0,0,1,.44-1c4.37-1.68,7-5.12,7-9.21a2.8,2.8,0,0,0-3-3c-1.86,0-2.76,1-3,3.35a4.27,4.27,0,0,1-4.52,3.83,4.27,4.27,0,0,1-4.32-4.59A11.71,11.71,0,0,1,16,8.39a12,12,0,0,1,12,11.93,18.66,18.66,0,0,1-1.39,6.5.78.78,0,0,1-1,.41.76.76,0,0,1-.41-1,17.25,17.25,0,0,0,1.27-5.91A10.45,10.45,0,0,0,16,9.92a10.18,10.18,0,0,0-10.38,10,2.77,2.77,0,0,0,2.79,3.06,2.74,2.74,0,0,0,3-2.48c.36-3.11,1.89-4.69,4.56-4.69a4.31,4.31,0,0,1,4.52,4.56c0,4.74-3,8.72-8,10.63A.92.92,0,0,1,12.28,31Z"></path><path d="M19.77,30.28a.81.81,0,0,1-.52-.2.76.76,0,0,1,0-1.08,12.63,12.63,0,0,0,3.54-8.68c0-1.56-.48-6.65-6.7-6.65a6.83,6.83,0,0,0-4.94,1.87A6.17,6.17,0,0,0,9.32,20a.77.77,0,0,1-.77.76h0A.76.76,0,0,1,7.78,20,7.73,7.73,0,0,1,10,14.46a8.34,8.34,0,0,1,6-2.32c6.08,0,8.24,4.4,8.24,8.18A14.09,14.09,0,0,1,20.34,30,.75.75,0,0,1,19.77,30.28Z"></path><path d="M8.66,27.74a14.14,14.14,0,0,1-1.56-.09.76.76,0,1,1,.17-1.52c2.49.28,4.45-.16,5.84-1.32a6.37,6.37,0,0,0,2.12-4.53.75.75,0,0,1,.82-.71.78.78,0,0,1,.72.81A7.89,7.89,0,0,1,14.09,26,8.2,8.2,0,0,1,8.66,27.74Z"></path><title>Account</title>',6),g3=[m3];function y3(e,n){return l(),r("svg",h3,g3)}const Ol=le(p3,[["render",y3]]),_3=s("hr",null,null,-1),b3={class:"head"},k3={class:"title"},$3={key:0},w3={key:1,class:"posters"},M3=["innerHTML"],T3={__name:"MyLikedCollection",props:{collection:Object},setup(e){const n=e,t=L(()=>{var a,i;return!ae.value||!((i=(a=S.value)==null?void 0:a.likes)!=null&&i.collections)?!1:S.value.likes.collections.indexOf(n.collection.id)!==-1});return(o,a)=>{const i=he("RouterLink"),u=he("router-link");return l(),P(u,{to:`/collections/${e.collection.id}`,class:"my-liked-collection-link"},{default:re(()=>[s("div",{class:x(["my-liked-collection",{"fade-like":!t.value}])},[_3,s("div",b3,[k(wn,{id:e.collection.id,target:"collections"},null,8,["id"]),s("p",k3,B(e.collection.name),1),k(i,{to:`/collections/user/${e.collection.user.id}`,class:"profile-link"},{default:re(()=>[k(et,{title:`${e.collection.user.firstName||""} ${e.collection.user.lastName||""}`,"image-path":e.collection.user.profilePicture,classes:"micro"},null,8,["title","image-path"])]),_:1},8,["to"])]),e.collection.posters?(l(),r("hr",$3)):h("",!0),e.collection.posters?(l(),r("div",w3,[(l(!0),r(Q,null,oe(e.collection.posters,d=>(l(),r("div",{key:d.id,class:"poster"}
25,[s("picture",{innerHTML:c(Qt)(d.imagePath,"search")},null,8,M3)]))),128))])):h("",!0)],2)]),_:1},8,["to"])}}},L3={key:0,class:"collections-header"},C3={class:"collections-header-info"},A3={key:0},S3={key:1},x3=s("p",null," to view your likes you need to ",-1),P3={key:2},H3=s("p",null," show love for the posters that touched you ",-1),I3={href:"/archive"},B3={type:"button",class:"large-pill stateful with-icon"},E3=["innerHTML"],V3={key:1},O3=s("div",{class:"collections-header"},[s("div",{class:"collections-header-info"},[s("div",{class:"flex-center"},[s("h1",null," my liked collections ")])])],-1),F3={class:"container"},D3={class:"row"},N3={key:2,class:"padding-bottom-5 my-liked-posters"},U3=s("div",{class:"collections-header"},[s("div",{class:"collections-header-info"},[s("div",{class:"flex-center"},[s("h1",null,[N(" my liked posters "),s("span",{class:"hint--bottom hint--large circle-info","aria-label":"here you can find every poster you liked ordered by date. if you need to organize by folders use the collections feature."},"(i)")])])])],-1),R3={__name:"MyLikes",setup(e){const n=f(!1),t=f(null),o=f(!ae.value),a=f("");async function i(){if(!ae.value){t.value=null;return}n.value=!0,a.value="";try{t.value=await _e.userLikesGetAll(),t.value=ca(t.value)?null:t.value}catch(u){a.value=je(u)}n.value=!1,o.value=!0}return z(ae,i,{immediate:!0}),(u,d)=>{var m,v;return l(),r("div",null,[n.value||!t.value?(l(),r("div",L3,[s("div",C3,[n.value?(l(),r("p",A3," loading... ")):h("",!0),!n.value&&!c(ae)?(l(),r("div",S3,[x3,s("button",{type:"button",class:"large-pill stateful with-icon",onClick:d[0]||(d[0]=(...p)=>c(De)&&c(De)(...p))},[N(" Login "),k(Ol)])])):h("",!0),!n.value&&c(ae)&&!t.value?(l(),r("div",P3,[H3,s("a",I3,[s("button",B3,[N(" Look for this icon "),k(Ot)])])])):h("",!0),a.value?(l(),r("h6",{key:3,class:"color-error padding-top-2",innerHTML:a.value},null,8,E3)):h("",!0)])])):h("",!0),(m=t.value)!=null&&m.collections?(l(),r("div",V3,[O3,s("div",F3,[s("div",D3,[(l(!0),r(Q,null,oe(t.value.collections,p=>(l(),r("div",{key:p.id,class:"col-6 col-md-3 col-xl-2"},[k(T3,{collection:p},null,8,["collection"])]))),128))])])])):h("",!0),(v=t.value)!=null&&v.posters?(l(),r("div",N3,[U3,k(an,{items:t.value.posters,"dont-track":!0,size:"tiny","no-info":!0,"fade-like":!0},null,8,["items"])])):h("",!0)])}}};function z3(){return new Promise((e,n)=>{window.FB.login(t=>{var a;const o=(a=t.authResponse)==null?void 0:a.accessToken;o?e(o):n(new Error("Token not available"))},{scope:"instagram_basic,instagram_content_publish,instagram_manage_comments,pages_show_list"})})}async function j3(){return await qe(),new Promise((e,n)=>{if(!st.value){n(new Error("Unauthorized"));return}if(window.FB){e();return}window.fbAsyncInit=function(){window.FB.init({appId:S.value.fbAppId,autoLogAppEvents:!0,xfbml:!0,version:"v15.0"}),e()},function(t,o,a){const i=t.getElementsByTagName(o)[0];if(t.getElementById(a))return;const u=t.createElement(o);u.id=a,u.src="https://connect.facebook.net/en_US/sdk.js",i.parentNode.insertBefore(u,i)}(document,"script","facebook-jssdk")})}const q3={class:"container padding-top-4"},Y3={key:0},K3=["innerHTML"],G3={key:2},Z3={__name:"InstagramAuth",setup(e){const n=f(!0),t=f(!1),o=f("");async function a(){n.value=!0;try{const i=await z3();await _e.managerStoreInstagramToken({token:i}),t.value=!0}catch(i){o.value=je(i)}n.value=!1}return be(async()=>{try{await j3()}catch(i){o.value=i.message}n.value=!1}),(i,u)=>(l(),r("div",q3,[n.value?(l(),r("p",Y3," loading... ")):o.value?(l(),r("p",{key:1,innerHTML:o.value},null,8,K3)):t.value?(l(),r("h1",G3," ok! ")):(l(),r("button",{key:3,type:"button",class:"pill",onClick:a}," login "))]))}},W3={key:0,class:"collections-header-info"},J3={key:0},Q3={key:1,class:"padding-top-1"},X3=s("p",null," organize your favorite posters in collections for research and inspiration ",-1),e4=s("small",null,"collections can be either public or private",-1),t4={href:"/archive"},n4={type:"button",class:"large-pill stateful margin-top-3 with-icon"},o4=["innerHTML"],s4={__name:"EditMyCollections",setup(e){const n=f(!1),t=f([]),o=f(!ae.value),a=f("");async function i(){if(!ae.value){t.value=[];return}n.value=!0,a.value="";try{t.value=await _e.userCollectionsFetchAll()}catch(p){a.value=je(p)}n.value=!1,o.value=!0}z(ae,i),i();function u(p){let y=t.value.findIndex(g=>g.id===p);y!==-1&&t.value.splice(y,1),y=S.value.collections.findIndex(g=>g.id===p),y!==-1&&S.value.collections.splice(y,1)}const d=L(()=>t.value.length>1),m=f(!1);async function v(){m.value=!0;const p=[];for(const y of t.value)p.push(y.id);try{const y=await _e.userCollectionsReorder({order:p});S.value.collections.sort((g,b)=>p.indexOf(g.id)-p.indexOf(b.id))}catch{}m.value=!1}return(p,y)=>(l(),r("div",null,[k(Il,{collections:t.value},null,8,["collections"]),n.value||o.value&&!t.value.length||a.value?(l(),r("div",W3,[n.value?(l(),r("p",J3," loading... ")):h("",!0),o.value&&!t.value.length?(l(),r("div",Q3,[X3,e4,s("a",t4,[s("button",n4,[N(" Look for this icon "),k(ho)])])])):h("",!0),a.value?(l(),r("h6",{key:2,class:"color-error padding-top-2",innerHTML:a.value},null,8,o4)):h("",!0)])):h("",!0),s("div",{class:x(["padding-bottom-5 edit-collections",{"can-drag":d.value,loading:m.value}])},[t.value.length?(l(),P(c(to),{key:0,list:t.value,"item-key":"id",handle:".reorder-button","force-fallback":!0,"fallback-tolerance":2,onEnd:v},{item:re(({element:g})=>[k(El,{"can-drag":d.value,collection:g,onDeleted:u},null,8,["can-drag","collection"])]),_:1},8,["list"])):h("",!0)],2)]))}},wo=()=>ba(()=>import("./EditProfile-C2s2GCGK.js"),__vite__mapDeps([0,1,2])),We=da({history:va(),scrollBehavior(e,n,t){if(e.path!==n.path)return{top:0}},routes:[{path:"/about",name:"about",component:ut,meta:{isSide:!0,name:"pages"}},{path:"/apply",name:"apply",component:ut,meta:{isSide:!0,name:"pages"}},{path:"/contact",name:"contact",component:ut,meta:{isSide:!0,name:"pages"}},{path:"/credits",name:"credits",component:Qe,meta:{isSide:!0,name:"pages"}},{path:"/join",name:"join",component:ut,meta:{isSide:!0,name:"pages",useAccountMenu:!0}},{path:"/faq",name:"faq",component:Qe,meta:{isSide:!0,name:"pages",useAccountMenu:!0}},{path:"/refund",name:"refund",component:ut,meta:{isSide:!0,name:"pages",useAccountMenu:!0}},{path:"/membership",name:"membership",component:Qe,meta:{isSide:!0,name:"pages",useAccountMenu:!0}},{path:"/payment-confirm",name:"payment-confirm",component:Qe,meta:{isSide:!0,name:"pages",useAccountMenu:!0}},{path:"/donation-confirm",name:"donation-confirm",component:Qe,meta:{isSide:!0,name:"pages",useAccountMenu:!0}},{path:"/account",name:"account",component:Qe,meta:{isSide:!0,name:"pages",useAccountMenu:!0}},{path:"/message",name:"message",component:Qe,meta:{isSide:!0,name:"pages",useAccountMenu:!0}}
25,{path:"/login",name:"login",component:Qe,meta:{isSide:!0,name:"pages",useAccountMenu:!0},children:[{path:"/login/create",name:"create",component:Qe},{path:"/login/request",name:"request",component:Qe},{path:"/login/change-password",name:"change-password",component:Qe},{path:"/login/delete",name:"delete",component:Qe}]},{path:"/terms-of-use",name:"terms-of-use",component:ut,meta:{isSide:!0,name:"pages"}},{path:"/cookie-policy",name:"cookie-policy",component:ut,meta:{isSide:!0,name:"pages"}},{path:"/terms-of-service",name:"terms-of-service",component:ut,meta:{isSide:!0,name:"pages"}},{path:"/privacy-policy",name:"privacy-policy",component:ut,meta:{isSide:!0,name:"pages"}},{path:"/archive",name:"archive",component:ut},{path:"/profiles",name:"profiles",component:K_},{path:"/:id",name:"profile",component:Es,props:!0,children:[{path:":posterId",component:Es,name:"poster"}]},{path:"/author-area",name:"author-area",component:wo,props:!0,meta:{name:"author-area",keep:!0},children:[{path:":profileId",component:wo,name:"author-area-of",meta:{name:"author-area",keep:!0},redirect:e=>({name:"author-area-of-tab",params:{profileId:e.params.profileId,tab:"posters"}}),children:[{path:":tab",props:!0,component:wo,name:"author-area-of-tab",meta:{name:"author-area",keep:!0}}]}]},{path:"/edit-profiles",name:"edit-profiles",component:f3,meta:{name:"author-area"}},{path:"/collections/user/:id",props:!0,name:"user-collections",component:Fb},{path:"/collections/:id",props:!0,name:"collection",component:q$},{path:"/collections/my",name:"my-collections",component:s4},{path:"/collections",name:"collections",component:Cb},{path:"/likes",name:"likes",component:R3},{path:"/instagram-auth",name:"instagram-auth",component:Z3},{path:"/",name:"home",component:Qe},{path:"/:pathMatch(.*)*",component:Vl,name:"is-404"}]});We.beforeEach(async(e,n,t)=>{var a;await Cl(),_t.value=null,Jn.value++,rn.value++,Wn.value=!1;const o={...e.params,...e.meta};if(!o.name&&e.name&&(o.name=e.name),await i4(o),!ae.value&&["account","delete","change-password","membership","author-area","author-area-of","author-area-of-tab","edit-profiles","instagram-auth"].includes(e.name)){bt.value=()=>{We.push(e)},t({name:"login"});return}if(e.meta.isSide?(e.meta.useAccountMenu?(Ue.value=!1,Ze.value=!0):(Ue.value=!0,Ze.value=!1),K.value=e.name):(Ue.value=!1,Ze.value=!1,K.value=null),e.name!=="is-404"&&((a=Dl.value)!=null&&a.is404)){t({name:"is-404",params:{pathMatch:e.path.split("/").slice(1)}});return}t()});const ue=f(window.__TG_STATE__||{}),Fl=f(""),Dl=L(()=>ue.value[Fl.value]),ct=!!window.__STATE__.app.isProduction,Vo=!!window.__STATE__.app.isMobile,fe=f(!1),l4=f(!1),gt={},a4=f(!1),bt=f(null),_t=f(null),Mo=f(null),DL=f(0);async function Ee(e){var t;let n=r4(e);if(!n||ue.value[n])return n;try{Ys(e)&&(e={name:e}),ue.value[n]=await Fe("/api/tg/content",{params:e})||null,(t=ue.value[n])!=null&&t.is404&&(ue.value["is-404"]=ue.value[n],n="is-404")}catch{}return n}async function i4(e){Fl.value=await Ee(e)}function r4(e){let n=Ys(e)?e:e.name;return n?(e.id&&(n+=`/${e.id}`),e.posterId&&(n+=`/${e.posterId}`),n):""}const Ue=f(!1),Ze=f(!1),K=f(""),Wn=f(!1),hn=L(()=>Ue.value||Ze.value||K.value),Jn=f(0),Qn=f(!1),rn=f(0);z(K,async()=>{K.value&&await Ee("pages")});const mn=L(()=>["join","faq","refund","membership","payment-confirm","donation-confirm","account","login","create","confirm","request","reset","delete","message","terms-of-use","terms-of-service","privacy-policy","cookie-policy","legal"].includes(K.value)),gn=f(null);function nt(e,n){gn.value=null,K.value=e}function tn(){un(),We.currentRoute.value.meta.isSide&&We.replace({name:"home"})}function un(){Ue.value=!1,Ze.value=!1,K.value=null}function u4(){Ue.value=!0,Ze.value=!1,K.value="about"}function De(){Ue.value=!1,Ze.value=!0,K.value="login",oo.value=!1}function nn(){Ue.value=!1,Ze.value=!0,K.value="join"}function c4(){Ue.value=!1,Ze.value=!0,K.value="account"}function Vs(){Ue.value=!1,Ze.value=!1,K.value="terms-of-use"}function ot(){Ue.value=!1,Ze.value=!0,ae.value?Ft.value?K.value="account":Ko.value?K.value="membership":K.value="join":K.value="login"}const V=xa({mobile:"(max-width: 767.98px)",desktop:"(min-width: 768px)",md:"(min-width: 768px) and (max-width: 991.98px)",lg:"(min-width: 992px) and (max-width: 1199.98px)",xl:"
25(min-width: 1200px) and (max-width: 1479.98px)",xxl:"(min-width: 1480px) and (max-width: 1899.98px)",xxxl:"(min-width: 1900px)"});async function d4(){try{return await new fa({apiKey:"AIzaSyDGJaw7E7NBWcf5rx7WKX8igI2IwV5KPiQ",libraries:["places"],language:"en-US"}).load(),!0}catch{}return!1}async function Oo(){var e,n,t;bt.value?(K.value="account",await bt.value(),bt.value=null):V.mobile?un():Ft.value?nt("account"):Ko.value?nt("membership"):(e=S.value)!=null&&e.membershipIntent?nt("join"):!((n=S.value)!=null&&n.firstName)&&!((t=S.value)!=null&&t.lastName)?nt("account"):nt("join")}const v4={},f4={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"38",height:"32",viewBox:"0 0 38 32","aria-hidden":"true",class:"icon"},p4=s("path",{d:"M8.6 19.1h18.9V21H8.6z"},null,-1),h4=s("path",{d:"M1 3v24.6c0 1 .9 1.9 1.9 1.9h30.2c1 0 1.9-.9 1.9-1.9V3H1zm32.1 24.6H2.9V16.2h30.2v11.4zm0-13.3H2.9v-3.8h30.2v3.8zM2.9 8.7V4.9h30.2v3.8H2.9z"},null,-1),m4=s("title",null,"Archive",-1),g4=[p4,h4,m4];function y4(e,n){return l(),r("svg",f4,g4)}const _4=le(v4,[["render",y4]]),b4={},k4={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon"},$4=s("rect",{width:"24",height:"2",x:"4",y:"24"},null,-1),w4=s("rect",{width:"24",height:"2",x:"4",y:"12"},null,-1),M4=s("rect",{width:"24",height:"2",x:"4",y:"18"},null,-1),T4=s("rect",{width:"24",height:"2",x:"4",y:"6"},null,-1),L4=s("title",null,"Menu",-1),C4=[$4,w4,M4,T4,L4];function A4(e,n){return l(),r("svg",k4,C4)}const S4=le(b4,[["render",A4]]),x4={},P4={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon"},H4=s("path",{d:"M31,30H29V27a3,3,0,0,0-3-3H22a3,3,0,0,0-3,3v3H17V27a5,5,0,0,1,5-5h4a5,5,0,0,1,5,5Z"},null,-1),I4=s("path",{d:"M24,12a3,3,0,1,1-3,3,3,3,0,0,1,3-3m0-2a5,5,0,1,0,5,5A5,5,0,0,0,24,10Z"},null,-1),B4=s("path",{d:"M15,22H13V19a3,3,0,0,0-3-3H6a3,3,0,0,0-3,3v3H1V19a5,5,0,0,1,5-5h4a5,5,0,0,1,5,5Z"},null,-1),E4=s("path",{d:"M8,4A3,3,0,1,1,5,7,3,3,0,0,1,8,4M8,2a5,5,0,1,0,5,5A5,5,0,0,0,8,2Z"},null,-1),V4=s("title",null,"Authors",-1),O4=[H4,I4,B4,E4,V4];function F4(e,n){return l(),r("svg",P4,O4)}const D4=le(x4,[["render",F4]]),N4={__name:"AccountIcon",setup(e){const n=L(()=>{var o,a;return((o=S.value)==null?void 0:o.profilePicture)||((a=S.value)==null?void 0:a.editProfilePicture)||""}),t=L(()=>!S.value||!S.value.firstName?"":`${S.value.firstName||""} ${S.value.lastName||""}`);return(o,a)=>t.value||n.value?(l(),P(et,{key:0,name:t.value,"image-path":n.value},null,8,["name","image-path"])):(l(),P(Ol,{key:1}))}},U4={id:"menu",class:"container split"},R4={class:"menu-left color-links"},z4=["innerHTML"],j4=["href"],q4={class:"menu-right"},Y4={href:"https://typographic.store",target:"_blank",rel:"noopener",class:"store-menu-icon"},K4={__name:"AppMenu",setup(e){const n=qs(),t=L(()=>V.mobile?"/":"typo/graphic posters"),o=f(null),a={archive:"Archive",authors:"Authors",author:"Author",profiles:"Profiles",profile:"Profiles",posters:"Posters",poster:"Posters",collections:"Collections",collection:"Collections","user-collections":"Collections","my-collections":"My Collections",likes:"My Likes",about:"About",more:"About (more)",apply:"Apply",menu:"Menu",credits:"Credits",support:"Support",account:"Account",login:"Account",reset:"Reset Password",request:"Request Access",create:"Create your account",refund:"Refund Policy",legal:"Legal","author-area":"Author Area","edit-profiles":"Select Author","author-area-of":"Author Area","author-area-of-tab":"Author Area",newsletters:"Newsletters","terms-of-use":"Terms of Use","privacy-policy":"Privacy Policy","terms-of-service":"Terms of Service","cookie-policy":"Cookie Policy",membership:"Membership","payment-confirm":"Payment Confirmation","donation-confirm":"Donation Confirmation",faq:"FAQ",contact:"Contact us",join:"Join us"},i=f(null),u=f(0),d=L(()=>{var M,_;return V.mobile||u.value<115?!1:n.name==="profile"?(M=ue.value[`profile/${n.params.id}`])==null?void 0:M.name:n.name==="poster"?(_=ue.value[`poster/${n.params.id}/${n.params.posterId}`])==null?void 0:_.profileName:!1});$e||(u.value=window.scrollY,Oe("scroll",()=>{u.value=window.scrollY},{capture:!1,passive:!0}));const m=L(()=>o.value?`â ${a[o.value]}`:K.value?a[K.value]?`â ${a[K.value]}`:"":d.value?`â ${d.value}`:n.meta.isSide?"":n.name==="poster"?"â profiles":a[n.name]?`â ${a[n.name]}`:""),v=L(()=>
25{if(K.value)return"";if(d.value)return"#top";switch(n.name){case"profile":case"author":return"/profiles";case"poster":return"/profiles";case"author-area":case"author-area-of":case"author-area-of-tab":case"edit-profiles":return"";case"user-collections":case"collection":return"/collections"}return`/${n.name}`});function p(){d.value?Pl():We.push(v.value)}be(()=>{i.value&&z(m,()=>{Le.killTweensOf(i.value),Le.to(i.value,{text:{value:m.value,type:"diff",speed:2},ease:"none"})},{immediate:!0})});function y(M){o.value=M,(M==="account"||M==="menu")&&(M="pages"),Ee(M)}function g(){o.value=""}function b(){Ue.value?tn():u4()}function w(){Ze.value?tn():ot()}return(M,_)=>{const T=he("router-link");return l(),r("header",U4,[s("div",R4,[k(T,{to:"/",onMouseenter:_[0]||(_[0]=C=>c(Ee)("home"))},{default:re(()=>[s("h4",{class:"site-title",innerHTML:t.value},null,8,z4)]),_:1}),c(V).mobile?h("",!0):(l(),r("a",{key:0,href:v.value,class:x({"events-disabled":!v.value}),onClick:U(p,["prevent","stop"])},[s("h4",{ref_key:"titleTyper",ref:i,class:"title-typer"},null,512)],10,j4))]),s("div",q4,[k(T,{to:"/archive",class:"menu-icon archive",onMouseenter:_[1]||(_[1]=C=>y("archive")),onMouseleave:g},{default:re(()=>[k(_4)]),_:1}),k(T,{to:"/profiles",class:"menu-icon",onMouseenter:_[2]||(_[2]=C=>y("profiles")),onMouseleave:g},{default:re(()=>[k(D4)]),_:1}),k(T,{to:"/collections",class:"menu-icon",onMouseenter:_[3]||(_[3]=C=>y("collections")),onMouseleave:g},{default:re(()=>[k(ho)]),_:1}),s("a",{href:"/account",class:"account-toggle",onMouseenter:_[4]||(_[4]=C=>y("account")),onMouseleave:g,onClick:U(w,["prevent"])},[ne(k(N4,null,null,512),[[se,!c(Ze)]]),ne(k(Xt,{title:"Account"},null,512),[[se,c(Ze)]])],32),s("div",{class:"menu-toggle",onClick:b,onMouseenter:_[5]||(_[5]=C=>y("menu")),onMouseleave:g},[ne(k(S4,null,null,512),[[se,!c(Ue)]]),ne(k(Xt,{title:"Menu"},null,512),[[se,c(Ue)]])],32),s("a",Y4,[k(Eo)])])])}}},G4={key:0},Z4=s("p",null,"Please enter the verification code sent to your email:",-1),W4=s("button",{class:"large-pill more-pad stateful margin-top-2",innerHTML:"confirm"},null,-1),J4=["innerHTML"],Q4={key:1},X4=s("p",null,"New to typo/graphic posters?",-1),e8={class:"margin-top-5"},t8=s("hr",{class:"bkg off-content-pad"},null,-1),n8=s("p",null,"returning? login here",-1),o8={class:"split margin-top-2"},s8=["disabled","innerHTML"],l8=["innerHTML"],a8=s("div",{class:"status-tip common-links"},[N(" we've improved the login process. if you need any help contact us "),s("a",{href:"mailto:[email protected]"},"[email protected]")],-1),Nl={__name:"Login",setup(e){const n=f(""),t=f(""),o=f(!1),a=f(""),i=f(""),u=f("error");z(o,()=>{i.value="",u.value="error"});const d=f(!1);function m(b){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(b)}z(n,()=>{d.value=m(n.value)});const v=L(()=>!fe.value&&d.value&&t.value.length>=8),p=L(()=>fe.value?"please wait":d.value?t.value.length<8?"Fill your password":"Sign in":"Fill your e-mail");z([n,t],()=>{i.value="",u.value="error"});async function y(){if(!v.value)return;i.value="";const b=await Ma(n.value,t.value),w=b.status==="success";b.status==="confirmAuthCode"?(o.value=!0,a.value=""):w||(i.value=b.error||"Invalid e-mail/password",i.value=i.value.replace("Password did not conform with policy: ","")),w&&await Oo()}async function g(){const b=await Zo(n.value,t.value,a.value);i.value=b.errorMessage||"",i.value||await Oo()}return(b,w)=>o.value?(l(),r("div",G4,[Z4,s("form",{onSubmit:U(g,["prevent"])},[k(Se,{modelValue:a.value,"onUpdate:modelValue":w[0]||(w[0]=M=>a.value=M),type:null,required:!0,label:"Verification code",autocomplete:"one-time-code"},null,8,["modelValue"]),W4,ne(s("p",{class:"padding-top-2 color-error",innerHTML:i.value},null,8,J4),[[se,i.value]])],32),s("small",{class:"color-link margin-top-5",onClick:w[1]||(w[1]=M=>o.value=!1)},"â back")])):(l(),r("div",Q4,[X4,s("button",{type:"button",class:"large-pill stateful",onClick:w[2]||(w[2]=M=>c(nt)("create"))}," Create Account "),s("div",e8,[t8,n8,s("form",{onSubmit:U(y,["prevent"])},[k(Se,{modelValue:n.value,"onUpdate:modelValue":w[3]||(w[3]=M=>n.value=M),label:"E-mail",type:"email",autocomplete:"username","focus-on-mounted":!0},null,8,["modelValue"]),k(Se,{modelValue:t.value,"onUpdate:modelValue":w[4]||(w[4]=M=>t.value=M),label:"Password",type:"password",autocomplete:"current-password"},null,8,["modelValue"]),s("div",o8,[s("button",{class:"large-pill more-pad stateful",disabled:!v.value,innerHTML:p.value},null,8,s8),s("small",{class:"color-link inline-block",onClick:w[5]||(w[5]=M=>c(nt)("request"))},"â reset password")]),ne(s("p",{class:x(["padding-top-3",[`color-${u.value}`]]),innerHTML:i.value},null,10,l8),[[se,i.value]])],32)]),a8]))}},i8={key:0},r8=s("p",{class:"color-success"},"Password successfully reset",-1),u8=[r8],c8=s("p",null,"Please enter the verification code sent to your email:",-1),d8=s("button",{class:"large-pill more-pad stateful margin-top-2",innerHTML:"confirm"},null,-1),v8=["innerHTML"],f8=s("p",null,"Reset password",-1),p8={key:0},h8={class:"margin-top-2"},m8=["disabled","innerHTML"],g8=["innerHTML"],Ul={__name:"RequestNewPassword",props:{title:String},setup(e){const n=f(""),t=f(""),o=f(""),a=f(""),i=f(""),u=f(!1),d=f(""),m=f(!1),v=f(!1),p=f(!1);kt(async()=>{var _;
25ae.value&&(await qe(),(_=S.value)!=null&&_.email&&(t.value=S.value.email,p.value=!0))});const y=_=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(_);z(t,()=>{u.value=y(t.value)});const g=L(()=>!fe.value&&u.value),b=L(()=>fe.value?"please wait":g.value?m.value?"reset":"request":"fill your e-mail"),w=async()=>{if(!g.value)return;if(d.value="",!m.value){const T=await Ca(t.value);d.value=T.errorMessage||"",n.value=T.status||"",!d.value&&T.status!=="confirmAuthCode"&&(m.value=!0,o.value="");return}const _=await Aa(t.value,a.value,o.value);d.value=_.errorMessage||"",d.value||(v.value=!0)};async function M(){const _=await Zo(t.value,a.value,o.value);d.value=_.errorMessage||"",d.value||(n.value="")}return(_,T)=>(l(),r("div",null,[v.value?(l(),r("div",i8,u8)):n.value==="confirmAuthCode"?(l(),r("form",{key:1,onSubmit:U(M,["prevent"])},[c8,k(Se,{modelValue:o.value,"onUpdate:modelValue":T[0]||(T[0]=C=>o.value=C),type:null,required:!0,label:"Verification code",autocomplete:"one-time-code"},null,8,["modelValue"]),d8,ne(s("p",{class:"padding-top-2 color-error",innerHTML:d.value},null,8,v8),[[se,d.value]])],32)):(l(),r("form",{key:2,onSubmit:U(w,["prevent"])},[f8,k(Se,{modelValue:t.value,"onUpdate:modelValue":T[1]||(T[1]=C=>t.value=C),label:p.value?"We'll send an email to":"E-mail",type:"email",autocomplete:"username",disabled:p.value},null,8,["modelValue","label","disabled"]),m.value?(l(),r("div",p8,[k(Se,{modelValue:a.value,"onUpdate:modelValue":T[2]||(T[2]=C=>a.value=C),label:"New password",type:"password",autocomplete:"new-password","focus-on-mounted":!0,required:!0},null,8,["modelValue"]),k(Se,{modelValue:i.value,"onUpdate:modelValue":T[3]||(T[3]=C=>i.value=C),label:"Confirm new Password",type:"password",autocomplete:"new-password",required:!0},null,8,["modelValue"]),k(Se,{modelValue:o.value,"onUpdate:modelValue":T[4]||(T[4]=C=>o.value=C),type:null,required:!0,label:"Verification code (check your email)",autocomplete:"one-time-code"},null,8,["modelValue"])])):h("",!0),s("div",h8,[s("button",{class:"large-pill more-pad stateful",disabled:!g.value,innerHTML:b.value},null,8,m8)]),d.value?(l(),r("h6",{key:1,class:"color-error padding-top-3",innerHTML:d.value},null,8,g8)):h("",!0)],32)),s("small",{class:"color-link margin-top-7 inline-block",onClick:T[5]||(T[5]=(...C)=>c(ot)&&c(ot)(...C))},"â back")]))}},y8={},_8={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"upload-icon"},b8=s("polygon",{points:"6 17 7.41 18.41 15 10.83 15 30 17 30 17 10.83 24.59 18.41 26 17 16 7 6 17"},null,-1),k8=s("path",{d:"M6,8V4H26V8h2V4a2,2,0,0,0-2-2H6A2,2,0,0,0,4,4V8Z"},null,-1),$8=s("title",null,"Upload",-1),w8=[b8,k8,$8];function M8(e,n){return l(),r("svg",_8,w8)}const T8=le(y8,[["render",M8]]),L8={class:"upload-pill-icon"},C8={key:0,class:"upload-pill-spinner"},A8=["innerHTML"],S8=["innerHTML"],x8=["name","accept","multiple"],P8={__name:"UploadPill",props:{uploadMessage:{type:String,default:"upload"},upload:{type:Function,required:!0},requestParams:{type:Object,required:!0},mimeTypes:{type:Array,default:()=>["image/jpeg","image/png"]},maxSize:{type:Number,default:50},multiple:Boolean,name:{type:String,default:"file"},errorPositionSide:Boolean,watchFileDrop:String,drop:Boolean,dropAnywhere:Boolean,dontAddDropMessage:Boolean,dontAddDropColor:Boolean},emits:["uploading","isUploadingMultiple"],setup(e,{emit:n}){const t=e,o=n,a=f(!1),i=f(!1),u=f([]),d=L(()=>a.value?"uploading...":i.value&&!t.dontAddDropMessage?`${t.uploadMessage}<br>drop here`:t.uploadMessage),m={"image/jpeg":["jpg"],"image/png":["png"],"video/mp4":["mp4","m4v","mov"],"video/m4v":["mp4","m4v","mov"],"video/quicktime":["mp4","m4v","mov"]},v=L(()=>{if(!u.value.length)return"";let $="";for(const A of u.value)switch($&&($+="<br>"),$+=`(${A.file.name}) `,A.type){case"size":$+=`file too large, maximum of ${t.maxSize} Mb`;break;case"extension":$+="only jpg or png";break;case"mimeType":{const H=[];for(const R of t.mimeTypes)m[R].forEach(W=>{H.includes(W)||H.push(W)});H.length>2?$+=`only ${H.slice(0,-1).join(", ")} or ${H.slice(-1)}`:$=`only ${H.join(" or ")}`}break;default:A.message?$+=A.message:$+="error, please try again";break}return $});function p($,A){let{type:H,message:R,error:W}=$;if(W)try{R=JSON.parse(W).message}catch{R=String(W)}u.value.push({type:H,message:R,file:A})}const y=`file${Math.ceil(Math.random()*99999)}`;async function g($){if(!$||!$.length)return;i.value=!1,a.value=!0,o("uploading"),o("isUploadingMultiple",$.length>1),u.value=[];let A=0;for(const H of $){if(A++,A>=$.length&&o("isUploadingMultiple",!1),t.maxSize&&H.size>t.maxSize*1024*1024){p({type:"size"},H);continue}if(!t.mimeTypes.includes(H.type)){p({type:"mimeType"},H);continue}
25try{const R=await _e.uploadRequest({...t.requestParams,mimeType:H.type}),W=await Fe(R.url,{method:"PUT",body:H});await t.upload(R)}catch(R){p(R,H)}}a.value=!1}async function b($){await g($.target.files)}t.watchFileDrop&&(gt[t.watchFileDrop]||(gt[t.watchFileDrop]=f([])),yn(()=>{gt[t.watchFileDrop].value.length&&(g(gt[t.watchFileDrop].value),gt[t.watchFileDrop].value=[])}));const w=f(null);async function M($){$.preventDefault(),i.value=!0}function _($){$.preventDefault(),i.value=!1}function T($){i.value=!1}async function C($,A){if(_($),$.dataTransfer.items){const H=[];for(const R of $.dataTransfer.items)R.kind==="file"&&H.push(R.getAsFile());await g(H)}}return t.drop&&!$e&&(be(()=>{window.addEventListener("dragenter",M),window.addEventListener("click",T),w.value.addEventListener("dragenter",M),w.value.addEventListener("dragover",M),w.value.addEventListener("drop",C)}),St(()=>{window.removeEventListener("dragenter",M),window.removeEventListener("click",T),w.value.removeEventListener("dragenter",M),w.value.removeEventListener("dragover",M),w.value.removeEventListener("drop",C)})),($,A)=>(l(),r("div",{class:x(["upload-pill-group",{side:e.errorPositionSide,"is-dropping":i.value&&!e.dontAddDropColor,"is-uploading":a.value}])},[e.drop&&e.dropAnywhere&&!c($e)?(l(),r("div",{key:0,class:x(["drop-anywhere",{active:i.value}]),onDragenter:A[0]||(A[0]=U(()=>{},["prevent"])),onDragover:A[1]||(A[1]=U(()=>{},["prevent"])),onDragleave:U(_,["prevent"]),onDrop:U(C,["prevent"])},null,34)):h("",!0),s("label",{for:y},[s("div",{ref_key:"pill",ref:w,class:"upload-pill"},[s("div",L8,[a.value?(l(),r("div",C8)):h("",!0),k(T8)]),s("div",null,[s("h6",{class:"upload-pill-message",innerHTML:d.value},null,8,A8)])],512)]),ne(s("small",{class:"upload-pill-error-message",innerHTML:v.value},null,8,S8),[[se,v.value]]),s("input",{id:y,name:e.name,class:"upload-pill-input",type:"file",accept:e.mimeTypes.join(),multiple:e.multiple,onChange:b},null,40,x8)],2))}},H8={class:"profile-picture-pill-icon"},I8=["innerHTML"],B8={class:"profile-picture-pill-message"},E8=["innerHTML"],V8=["innerHTML"],O8={__name:"ProfilePictureUpload",props:{uploadMessage:{type:String,default:"upload your<br>profile picture"},removeMessage:{type:String,default:"remove picture"},message:{type:String,default:"profile picture"},intent:String,profileId:String,profilePicture:String},emits:["uploaded","deleted"],setup(e,{emit:n}){const t=e,o=n,a=f(Vo),i=f(!1),u=L(()=>{var g;return t.profileId?t.profilePicture:(g=S.value)==null?void 0:g.profilePicture}),d=L(()=>!i.value&&(a.value||Vo)),m=L(()=>i.value?"wait ...":t.message),v=L(()=>t.intent&&t.profileId?{intent:t.intent,profileId:t.profileId}:t.profileId?{intent:"profile-picture",profileId:t.profileId}:{intent:"user-picture"});async function p(g){let b=null;i.value=!0,t.profileId&&t.intent?b=await _e.profileImageAdd({...g,profileId:t.profileId,intent:t.intent}):t.profileId?(b=await _e.profilePictureAdd({...g,profileId:t.profileId}),S.value.editProfileId===t.profileId&&(S.value.editProfilePicture=b.filePath)):(b=await _e.userPictureAdd(g),S.value.profilePicture=b.filePath),o("uploaded",b==null?void 0:b.filePath),i.value=!1}async function y(){i.value=!0,t.profileId&&t.intent?await _e.profileImageDelete({profileId:t.profileId,intent:t.intent}):t.profileId?(await _e.profileDeleteProfilePicture({profileId:t.profileId}),S.value.editProfileId===t.profileId&&(S.value.editProfilePicture=null)):(await _e.userDeleteProfilePicture(),S.value.profilePicture=null),o("deleted"),i.value=!1}return(g,b)=>(l(),r(Q,null,[ne(s("div",{class:x(["profile-picture-pill",{wait:i.value}]),onMouseenter:b[0]||(b[0]=w=>a.value=!0),onMouseleave:b[1]||(b[1]=w=>a.value=!1)},[s("div",H8,[s("div",{innerHTML:c(ft)(u.value,"icon")},null,8,I8)]),s("div",null,[s("h6",B8,[ne(s("span",{class:"color-link error-hover",onClick:y,innerHTML:e.removeMessage},null,8,E8),[[se,d.value]]),ne(s("span",{innerHTML:m.value},null,8,V8),[[se,!d.value]])])])],34),[[se,u.value]]),u.value?h("",!0):(l(),P(P8,{key:0,"upload-message":e.uploadMessage,upload:p,drop:!0,"request-params":v.value},null,8,["upload-message","request-params"]))],64))}},F8={key:0},D8={key:1},N8={key:0,class:"edit-profile-block"},U8=s("small",{class:"account-heading"},"my typo/graphic profile",-1),R8={class:"edit-profile-pill"},z8={key:1,class:"account-heading"},j8={key:2,class:"padding-bottom-2"},q8=s("br",null,null,-1),Y8={class:"margin-top-2"},K8={class:"split margin-top-2"},G8=["disabled","innerHTML"],Z8={key:0,class:"color-error"},W8={class:"margin-top-5"},J8={class:"margin-top-1"},Q8={class:"margin-top-1"},Rl={__name:"Account",setup(e){const n=f(!1),t=Ns({firstName:"",lastName:"",newsletters:!1,location:null}),o=f(!1),a=f(!1),i=f(!1),u=f(!1),d=L(()=>!fe.value&&i.value),m=L(()=>fe.value?"wait...":d.value?"update":u.value?"thanks!":"keep your info updated");async function v(){fe.value=!0,a.value=!1;try{dt.value?(await _e.userProfileUpdate({...t,canMessage:o.value}),S.value.canMessage=o.value):await _e.userProfileUpdate(t),i.value=!1,u.value=!0,S.value.firstName=t.firstName,S.value.lastName=t.lastName,S.value.newsletters=t.newsletters}catch{a.value=!0}fe.value=!1}async function p(){d.value&&v()}const y=f(!1),g=f(!1);return kt(async()=>{var b,w,M,_,T;await qe(),y.value=!0,t.firstName=(b=S.value)==null?void 0:b.firstName,t.lastName=(w=S.value)==null?void 0:w.lastName,t.newsletters=!!((M=S.value)!=null&&M.newsletters),t.location=(_=S.value)==null?void 0:_.location,n.value=t.newsletters,g.value=!t.firstName&&!t.lastName,dt.value&&(o.value=!!((T=S.value)!=null&&T.canMessage)),z(t,()=>{i.value=!0,a.value=!1,n.value=t.newsletters},!0),z([n,o],v)}),(b,w)=>{const M=he("router-link");return l(),r(Q,null,[y.value?h("",!0):(l(),r("p",F8," loading ... ")),y.value?(l(),r("div",D8,[c(Kt)&&!c(V).mobile?(l(),r("div",N8,[U8,k(M,{to:c(Zs),class:"edit-profile-pill-link"},{default:re(()=>[s("div",R8,[k(et,{name:c(S).editProfileName,"image-path":c(S).editProfilePicture},null,8,["name","image-path"]),s("h6",null,"Edit Profile"+B(c(S).editProfileSelect?"s":""),1)])]),_:1},8,["to"])])):h("",!0),c(Kt)&&!c(V).mobile?(l(),r("small",z8,"My Account")):h("",!0),g.value?(l(),r("p",j8,[N(" Welcome!"),q8,N("Please provide some basic info about you: ")])):h("",!0),k(O8,{message:"my picture","upload-message":"upload your<br>picture"}),s("div",Y8,[s("form",{onSubmit:U(p,["prevent"])},[k(Se,{modelValue:t.firstName,"onUpdate:modelValue":w[0]||(w[0]=_=>t.firstName=_),label:"First Name",autocomplete:"given-name"},null,8,["modelValue"]),k(Se,{modelValue:t.lastName,"onUpdate:modelValue":w[1]||(w[1]=_=>t.lastName=_),label:"Last Name",autocomplete:"family-name"},null,8,["modelValue"]),k(Ll,{modelValue:t.location,"onUpdate:modelValue":w[2]||(w[2]=_=>t.location=_),label:"Country",types:["country"],placeholder:"Fill the country you live in"},null,8,["modelValue"]),k(Kn,{modelValue:t.newsletters,"onUpdate:modelValue":w[3]||(w[3]=_
25=>t.newsletters=_),label:"Newsletters","enabled-label":"Subscribed","disabled-label":"Unsubscribed"},null,8,["modelValue"]),c(dt)?(l(),P(Kn,{key:0,modelValue:o.value,"onUpdate:modelValue":w[4]||(w[4]=_=>o.value=_),label:"internal messages from typo/graphic posters","enabled-label":"Allowed","disabled-label":"Disabled"},null,8,["modelValue"])):h("",!0),s("div",K8,[s("button",{disabled:!d.value,class:"large-pill more-pad stateful",innerHTML:m.value},null,8,G8),a.value?(l(),r("small",Z8,"an error occured")):h("",!0)])],32),s("div",W8,[s("small",{class:"color-link inline-block",onClick:w[5]||(w[5]=(..._)=>c(bs)&&c(bs)(..._))},"â logout")]),s("div",J8,[s("small",{class:"color-link inline-block",onClick:w[6]||(w[6]=_=>c(nt)("change-password"))},"â change password")]),s("div",Q8,[s("small",{class:"color-link inline-block error-hover",onClick:w[7]||(w[7]=_=>c(nt)("delete"))},"â delete account")])])])):h("",!0)],64)}}},X8={key:0,class:"nav-ul"},eM=["href","target","rel","innerHTML"],tM=["href","onClick","innerHTML"],nM=["href","onClick","innerHTML"],Xn={__name:"SideMenuItems",props:{items:Array},setup(e){return(n,t)=>{const o=he("router-link");return e.items.length?(l(),r("ul",X8,[(l(!0),r(Q,null,oe(e.items,a=>(l(),r("li",{key:a.key,class:x(["nav-li",{break:a.break,active:c(K)===a.key||(c(K)==="payment-confirm"||c(K)==="membership")&&(a.key==="membership"||a.key==="join")}]),role:"list"},[a.routeTo?(l(),P(o,{key:0,to:a.routeTo,onMouseenter:i=>c(Ee)(a.key),onClick:c(un),innerHTML:a.name},null,8,["to","onMouseenter","onClick","innerHTML"])):a.url?(l(),r("a",{key:1,href:a.url,target:a.self?null:"_blank",rel:a.self?null:"noopener",innerHTML:a.name},null,8,eM)):a.method?(l(),r("a",{key:2,href:"/"+a.key,onClick:U(a.method,["prevent"]),innerHTML:a.name},null,8,tM)):(l(),r("a",{key:3,href:"/"+a.key,onClick:U(i=>c(nt)(a.key),["prevent"]),innerHTML:a.name},null,8,nM))],2))),128))])):h("",!0)}}},oM={props:{title:{type:String,default:"RSS"}}},sM={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"social-icon"},lM=s("path",{d:"M8 18c-3.3 0-6 2.7-6 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6zm0 10c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4zm22-4h-2C28 13 19 4 8 4V2c12.1 0 22 9.9 22 22z"},null,-1),aM=s("path",{d:"M22 24h-2c0-6.6-5.4-12-12-12v-2c7.7 0 14 6.3 14 14z"},null,-1);function iM(e,n,t,o,a,i){return l(),r("svg",sM,[lM,aM,s("title",null,B(t.title),1)])}const rM=le(oM,[["render",iM]]),uM={components:{SharePinterest:vl,ShareTwitter:dl,ShareInstagram:qn,ShareFacebook:cl,ShareRss:rM},props:{items:{type:Array,required:!0}}},cM={class:"social-icons-wrap"},dM={class:"social-icons"},vM=["href"];function fM(e,n,t,o,a,i){return l(),r("div",cM,[s("div",dM,[(l(!0),r(Q,null,oe(t.items,u=>(l(),r("div",{key:u.key,class:"social-icon"},[s("a",{href:u.url,target:"_blank",rel:"noopener"},[(l(),P($n(`Share${u.name}`),{class:x(u.key),title:u.name},null,8,["class","title"]))],8,vM)]))),128))])])}const zl=le(uM,[["render",fM]]),pM={key:0},hM={key:0},mM={class:"color-error padding-bottom-3"},gM=s("br",null,null,-1),yM={key:0},_M=s("br",null,null,-1),bM=s("b",null,"That is irreversible.",-1),kM={class:"margin-top-2"},$M=["disabled","innerHTML"],wM={key:1,class:"margin-top-8 active-links"},MM=s("small",null,"Note:",-1),TM=s("a",{href:"mailto:[email protected]"},"contact André directly",-1),LM={key:1},CM=s("p",{class:"color-success color-error"}," Account deleted successfully ",-1),AM={key:2},SM=s("p",{class:"color-error"}," Error ",-1),xM=s("p",null,"An error ocurred, please",-1),PM=s("a",{href:"/login/delete"},[s("button",{type:"button",class:"large-pill more-pad stateful"}," Try again ")],-1),HM=[SM,xM,PM],jl={__name:"DeleteAccount",setup(e){const n=f(""),t=f(""),o=f(!1),a=f(!1),i=L(()=>!fe.value&&t.value),u=L(()=>fe.value?"please wait":i.value?"delete account":"enter your password"),d=async()=>{if(!i.value)return;const m=await Ta(t.value);o.value=m.status==="success",a.value=!o.value};return kt(async()=>{var m;await qe(),(m=S.value)!=null&&m.email&&(n.value=S.value.email)}),(m,v)=>(l(),r(Q,null,[!a.value&&!o.value?(l(),r("div",pM,[s("p",null,[N("delete your account "),c(Ft)?(l(),r("span",hM,"& cancel membership")):h("",!0)]),s("h5",mM,[N(" This will completely wipe your account and all your saved data."),gM,c(Ft)?(l(),r("span",yM,[N("Also will cancel your membership right away."),_M])):h("",!0),bM]),n.value?(l(),P(Se,{key:0,modelValue:n.value,"onUpdate:modelValue":v[0]||(v[0]=p=>n.value=p),label:"E-mail",type:"email",disabled:!0},null,8,["modelValue"])):h("",!0),k(Se,{modelValue:t.value,"onUpdate:modelValue":v[1]||(v[1]=p=>t.value=p),label:"Re-enter your Password",type:"password",autocomplete:"current-password"},null,8,["modelValue"]),s("div",kM,[s("button",{class:"large-pill more-pad stateful warning",disabled:!i.value,onClick:d,innerHTML:u.value},null,8,$M)]),c(Kt)&&!c(S).isAdmin?(l(),r("p",wM,[MM,N(" Your profile"+B(c(S).allowedProfiles.length>
251?"s":"")+' "'+B(c(S).allowedProfiles.map(p=>p.name).join('" and "'))+'" will not be deleted, only your user account will. To delete your profile and posters please ',1),TM,N(". ")])):h("",!0),s("small",{class:x(["color-link inline-block",{"margin-top-7":!c(Kt),"margin-top-2":c(Kt)}]),onClick:v[2]||(v[2]=(...p)=>c(ot)&&c(ot)(...p))},"â back",2)])):h("",!0),o.value?(l(),r("div",LM,[CM,s("small",{class:"color-link inline-block",onClick:v[3]||(v[3]=(...p)=>c(tn)&&c(tn)(...p))},"â close")])):h("",!0),a.value?(l(),r("div",AM,HM)):h("",!0)],64))}};let To;async function Ln(){return window.__STATE__.stripe?(To||(To=await pa(window.__STATE__.stripe,{locale:"en"})),To):null}const IM={theme:"flat",labels:"floating",variables:{colorPrimary:"#000",colorBackground:"#f5f5f5",colorText:"#000",fontFamily:"system-ui, sans-serif",spacingUnit:"4px",fontSizeBase:"14px",borderRadius:"0"},rules:{".Input":{paddingTop:"11px",paddingBottom:"11px"},".Input:focus":{boxShadow:0},".Tab--selected:focus":{boxShadow:0},".Tab:focus":{boxShadow:0}}},BM={},EM={href:"https://stripe.com/",target:"_blank",rel:"noopener noreferrer",class:"hint--top-left hint--large","aria-label":"Payment information go straight to Stripe and do not touch our servers. Stripe is certified PCI Level 1, the highest level of certification in the payments industry."},VM=s("svg",{class:"stripe-powered","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 34",fill:"#635bff"},[s("path",{d:"M146 0H3.73A3.73 3.73 0 0 0 0 3.73v26.54A3.73 3.73 0 0 0 3.73 34H146a4 4 0 0 0 4-4V4a4 4 0 0 0-4-4Zm3 30a3 3 0 0 1-3 3H3.73A2.74 2.74 0 0 1 1 30.27V3.73A2.74 2.74 0 0 1 3.73 1H146a3 3 0 0 1 3 3Z"}),s("path",{d:"M17.07 11.24h-4.3V22h1.92v-4.16h2.38c2.4 0 3.9-1.16 3.9-3.3s-1.5-3.3-3.9-3.3Zm-.1 5h-2.28v-3.3H17c1.38 0 2.11.59 2.11 1.65s-.76 1.6-2.11 1.6ZM25.1 14a3.77 3.77 0 0 0-3.8 4.09 3.81 3.81 0 1 0 7.59 0A3.76 3.76 0 0 0 25.1 14Zm0 6.67c-1.22 0-2-1-2-2.58s.76-2.58 2-2.58 2 1 2 2.58-.79 2.57-2 2.57ZM36.78 19.35l-1.41-5.22h-1.48l-1.4 5.22-1.42-5.22h-1.85l2.37 7.88h1.56l1.44-5.16 1.44 5.16h1.56l2.37-7.88h-1.78l-1.4 5.22zM44 14a3.83 3.83 0 0 0-3.75 4.09 3.79 3.79 0 0 0 3.83 4.09A3.47 3.47 0 0 0 47.49 20L46 19.38a1.78 1.78 0 0 1-1.83 1.26A2.12 2.12 0 0 1 42 18.47h5.52v-.6C47.54 15.71 46.32 14 44 14Zm-1.93 3.13A1.92 1.92 0 0 1 44 15.5a1.56 1.56 0 0 1 1.69 1.62ZM50.69 15.3v-1.17h-1.8V22h1.8v-4.13a1.89 1.89 0 0 1 2-2 4.68 4.68 0 0 1 .66 0v-1.8h-.51a2.29 2.29 0 0 0-2.15 1.23ZM57.48 14a3.83 3.83 0 0 0-3.75 4.09 3.79 3.79 0 0 0 3.83 4.09A3.47 3.47 0 0 0 60.93 20l-1.54-.59a1.78 1.78 0 0 1-1.83 1.26 2.12 2.12 0 0 1-2.1-2.17H61v-.6c0-2.19-1.24-3.9-3.52-3.9Zm-1.93 3.13a1.92 1.92 0 0 1 1.92-1.62 1.56 1.56 0 0 1 1.69 1.62ZM67.56 15a2.85 2.85 0 0 0-2.26-1c-2.21 0-3.47 1.85-3.47 4.09s1.26 4.09 3.47 4.09a2.82 2.82 0 0 0 2.26-1V22h1.8V11.24h-1.8Zm0 3.35a2 2 0 0 1-2 2.28c-1.31 0-2-1-2-2.52s.7-2.52 2-2.52c1.11 0 2 .81 2 2.29ZM79.31 14A2.88 2.88 0 0 0 77 15v-3.76h-1.8V22H77v-.83a2.86 2.86 0 0 0 2.27 1c2.2 0 3.46-1.86 3.46-4.09S81.51 14 79.31 14ZM79 20.6a2 2 0 0 1-2-2.28v-.47c0-1.48.84-2.29 2-2.29 1.3 0 2 1 2 2.52s-.75 2.52-2 2.52ZM86.93 19.66 85 14.13h-1.9l2.9 7.59-.3.74a1 1 0 0 1-1.14.79 4.12 4.12 0 0 1-.6 0v1.51a4.62 4.62 0 0 0 .73.05 2.67 2.67 0 0 0 2.78-2l3.24-8.62h-1.89ZM125 12.43a3 3 0 0 0-2.13.87l-.14-.69h-2.39v12.92l2.72-.59v-3.13a3 3 0 0 0 1.93.7c1.94 0 3.72-1.59 3.72-5.11 0-3.22-1.8-4.97-3.71-4.97Zm-.65 7.63a1.61 1.61 0 0 1-1.28-.52v-4.11a1.64 1.64 0 0 1 1.3-.55c1 0 1.68 1.13 1.68 2.58s-.69 2.6-1.7 2.6ZM133.73 12.43c-2.62 0-4.21 2.26-4.21 5.11 0 3.37 1.88 5.08 4.56 5.08a6.12 6.12 0 0 0 3-.73v-2.25a5.79 5.79 0 0 1-2.7.62c-1.08 0-2-.39-2.14-1.7h5.38v-1c.09-2.87-1.27-5.13-3.89-5.13Zm-1.47 4.07c0-1.26.77-1.79 1.45-1.79s1.4.53 1.4 1.79ZM113 13.36l-.17-.82h-2.32v9.71h2.68v-6.58a1.87 1.87 0 0 1 2.05-.58v-2.55a1.8 1.8 0 0 0-2.24.82ZM99.46 15.46c0-.44.36-.61.93-.61a5.9 5.9 0 0 1 2.7.72v-2.63a7 7 0 0 0-2.7-.51c-2.21 0-3.68 1.18-3.68 3.16 0 3.1 4.14 2.6 4.14 3.93 0 .52-.44.69-1 .69a6.78 6.78 0 0 1-3-.9V22a7.38 7.38 0 0 0 3 .64c2.26 0 3.82-1.15 3.82-3.16-.05-3.36-4.21-2.76-4.21-4.02ZM107.28 10.24l-2.65.58v8.93a2.77 2.77 0 0 0 2.82 2.87 4.16 4.16 0 0 0 1.91-.37V20c-.35.15-2.06.66-2.06-1v-4h2.06v-2.34h-2.06ZM116.25 11.7l2.73-.57V8.97l-2.73.57v2.16zM116.25 12.61h2.73v9.64h-2.73z"})],-1),OM=[VM];function FM(e,n){return l(),r("a",EM,OM)}const Fo=le(BM,[["render",FM]]),DM={class:"money-field"},NM={class:"amount"},UM=["value"],RM={key:0,class:"currency-select"},zM=["onClick"],jM={__name:"MoneyField",props:{modelValue:{type:Number,required:!0},currencies:{type:Object,required:!0},currency:{type:String,required:!0},focusOnMounted:{type:Boolean,default:!1}},emits:["update:modelValue","update:currency"],setup(e,{emit:n}){const t=e,o=n,a=`amount_${Math.floor(Math.random()*1e5)}`,i=f(null),u=f(+t.modelValue),d=f(u.value?u.value/100:""),m=L(()=>t.currency==="brl"?500:100);function v(){o("update:modelValue",u.value===0?0:Math.max(u.value,m.value))}let p;function y(M){let _=M.target.value;_=+_.replace(/[^0-9.]/g,"").replace(/(\..*)\./g,"$1"),d.value=_||"",u.value=_*100,p&&(clearTimeout(p),p=null),p=setTimeout(v,800)}function g(){p&&(clearTimeout(p),p=null),v(),Yn.value=!1}function b(){Yn.value=!0}function w(M){const _=M.which?M.which:M.keyCode;return _>31&&(_<48||_>57)?(M.preventDefault(),!1):!0}return t.focusOnMounted&&!$e&&be(()=>{setTimeout(()=>{i.value&&i.value.focus()},300)}),(M,_)=>(l(),r("div",DM,[s("div",NM,[s("label",{for:a},B(e.currencies[e.currency].letterShort),1),s("input",{id:a,ref_key:"inputField",ref:i,value:d.value,class:"amount-input",type:"text",autocorrect:"off",spellcheck:"false",onKeypress:w,onInput:y,onBlur:g,onF
25ocus:b},null,40,UM)]),Object.keys(e.currencies).length>1?(l(),r("div",RM,[(l(!0),r(Q,null,oe(e.currencies,(T,C)=>(l(),r("div",{key:C,class:x(["currency-button",{selected:e.currency===C,"not-selected":e.currency&&e.currency!==C}]),onClick:$=>M.$emit("update:currency",C)},B(C),11,zM))),128))])):h("",!0)]))}},qM=["innerHTML"],YM={class:"donation-form"},KM={key:0,class:"donation-love"},GM={class:"button-group spread margin-top-2"},ZM=["disabled","innerHTML"],WM=["innerHTML"],Do=Object.assign({inheritAttrs:!1},{__name:"Donation",props:{content:String},setup(e){const n=f(!1),t=f(0),o=f("eur"),a=f(null),i={eur:{letter:"â¬",letterShort:"â¬"}};let u=null;const d=f(null),m=f(null),v=f(null),p=f(null),y=f(!1),g=f(!1),b=f(!1),w=f(!1),M=f("");let _,T;async function C(){var D,I,E,X,ee;n.value||(u||(u=await Ln()),await qe(),y.value=!0,Object.keys(i).length>1&&(((I=(D=S.value)==null?void 0:D.location)==null?void 0:I.continentCode)==="SA"?o.value="brl":((X=(E=S.value)==null?void 0:E.location)==null?void 0:X.continentCode)==="EU"&&(o.value="eur")),a.value=(ee=S.value)==null?void 0:ee.email),n.value=!0}const $=L(()=>v.value==="succeeded"||v.value==="processing");St(A);function A(){T&&(T.destroy(),T=null),_&&(_=null),p.value=null}z([o,t],W);const H=f({}),R=L(()=>H.value.amount?oi(H.value.amount,H.value.currency):"");async function W(){if(M.value="",!o.value||!t.value||H.value.currency===o.value&&H.value.amount===t.value&&H.value.email===a.value)return;b.value=!0;const D={amount:t.value,currency:o.value,email:a.value};try{if(_&&p.value){const I=await Fe("/api/tg/stripe-payment-intent-update",{params:{...D,id:p.value}});if(!I||(I==null?void 0:I.status)==="error")throw new Error((I==null?void 0:I.message)||"An error ocurred, please try again");if(I.status==="requires_payment_method"){const{error:E}=await _.fetchUpdates();if(E!=null&&E.message)throw new Error(E==null?void 0:E.message)}}else{const I=await Fe("/api/tg/stripe-payment-intent",{params:{...D,description:"Donation to support typo/graphic posters",type:"donation"}}),E=I==null?void 0:I.clientSecret;if(p.value=I==null?void 0:I.paymentIntentId,!E)throw new Error((I==null?void 0:I.message)||"An error ocurred, please try again");_=u.elements({clientSecret:E,appearance:IM}),T=_.create("payment"),T.mount(d.value)}H.value=D,g.value=!0}catch(I){M.value=je(I)}finally{b.value=!1}}async function q(){b.value=!0,w.value=!0,M.value="";try{const{error:D,paymentIntent:I}=await u.confirmPayment({elements:_,confirmParams:{return_url:"https://www.typographicposters.com/donation-confirm"},redirect:"if_required"});v.value=(I==null?void 0:I.status)||"error",M.value=D==null?void 0:D.message}catch(D){M.value=je(D)}finally{b.value=!1,w.value=!1}}const G=L(()=>!b.value&&o.value&&t.value&&a.value),ve=L(()=>{if(b.value)return"please wait";if(!o.value)return"choose your currency";if(!t.value)return"choose how much";if(!a.value)return"fill email for the receipt";if(!v.value)return`Donate ${R.value}`;switch(v.value){case"succeeded":return"Thank you!";case"processing":return"Donation processing";case"requires_payment_method":return"Try another payment method"}return"Try again"}),F=L(()=>
25{if(w.value||b.value)return"";if(M.value)return M.value;if(!v.value)return"";switch(v.value){case"succeeded":return"Success! Donation received.<br><br>Thank you for supporting us. Your donation will help enormously our journey to improve the platform for all.";case"processing":return"Payment processing. We'll send a receipt once received.<br><br>Thank you for supporting us. Your donation will help enormously our journey to improve the platform for all.";case"requires_payment_method":return"Payment failed. Try again."}return""});return(D,I)=>(l(),r("div",{class:x(["padding-bottom-4",{"wait-child":b.value}])},[e.content?(l(),r("div",{key:0,class:"content-style active-links padding-bottom-1",innerHTML:e.content},null,8,qM)):h("",!0),n.value?h("",!0):(l(),r("button",{key:1,type:"button",class:"outline serif",onClick:C}," Donate ")),ne(s("div",YM,[$.value?(l(),r("div",KM,[k(Ot,{title:""})])):h("",!0),n.value&&!$.value?(l(),P(jM,{key:1,modelValue:t.value,"onUpdate:modelValue":I[0]||(I[0]=E=>t.value=E),currency:o.value,"onUpdate:currency":I[1]||(I[1]=E=>o.value=E),currencies:i,"focus-on-mounted":!0},null,8,["modelValue","currency"])):h("",!0),ne(s("form",{class:x(["donation-stripe-form",{loaded:g.value}]),onSubmit:U(q,["prevent"])},[s("div",{ref_key:"formEmail",ref:m,class:"stripe-email-field"},null,512),s("div",{ref_key:"form",ref:d},null,512),s("div",GM,[s("button",{class:"large-pill more-pad stateful",disabled:!G.value,innerHTML:ve.value},null,8,ZM),s("div",null,[k(Fo)])])],34),[[se,!$.value]]),F.value?(l(),r("p",{key:2,class:x([{"color-error":M.value,"color-blue":$.value,small:M.value},"active-links padding-top-1 padding-bottom-2"]),innerHTML:F.value},null,10,WM)):h("",!0)],512),[[se,y.value]])],2))}}),JM=Object.freeze(Object.defineProperty({__proto__:null,default:Do},Symbol.toStringTag,{value:"Module"})),QM={focusable:"false",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",class:"icon open-close-icon"},XM={d:"M17 15V5.7h-2V15H5.7v2H15v9.3h2V17h9.3v-2z"},e6={d:"M5.7 15h20.6v2H5.7z"},t6=["innerHTML"],n6={__name:"OpenCloseIcon",props:{title:{type:String,default:"Toggle"},close:Boolean},setup(e){return(n,t)=>(l(),r("svg",QM,[ne(s("path",XM,null,512),[[se,!e.close]]),ne(s("path",e6,null,512),[[se,e.close]]),s("title",{innerHTML:e.title},null,8,t6)]))}},o6=s("hr",{class:"bkg"},null,-1),s6=["innerHTML"],l6={class:"content-style"},a6=["innerHTML"],ql={__name:"FaqItem",props:{question:String,answer:String,index:Number,length:Number},setup(e){const n=fs({self:!1,scrollOnClose:!1});return(t,o)=>(l(),r("li",{class:x(["faq-item",{active:c(n).isExpanded.value}])},[s("div",{class:"faq-header",onClick:o[0]||(o[0]=(...a)=>c(n).toggle&&c(n).toggle(...a))},[o6,s("h2",{class:"faq-question",innerHTML:e.question},null,8,s6),k(n6,{title:"Toggle answer",close:c(n).isExpanded.value},null,8,["close"])]),s("div",{ref:c(n).content,class:"faq-content",style:we({"--h":`${c(n).height.value}px`})},[s("div",l6,[s("div",{class:"faq-answer",innerHTML:e.answer},null,8,a6)])],4)],2))}},i6=Object.freeze(Object.defineProperty({__proto__:null,default:ql},Symbol.toStringTag,{value:"Module"})),r6={class:"active-links"},u6={class:"faq-list"},c6={class:"padding-top-2"},d6=["href"],v6=Object.assign({inheritAttrs:!1},{__name:"Faq",props:{items:Array},setup(e){const n=f("");return be(()=>{setTimeout(()=>{n.value="moc.sretsopcihpargopyt@troppus".split("").reverse().join("")},100)}),(t,o)=>(l(),r("div",r6,[s("ul",u6,[(l(!0),r(Q,null,oe(e.items,(a,i)=>(l(),P(ql,Nn({key:`a${i}`},a,{index:i,length:e.items.length}),null,16,["index","length"]))),128))]),s("p",c6,[N(" Any questions contact us at "),s("a",{href:`mailto:${n.value}`},B(n.value),9,d6)])]))}}),f6=Object.freeze(Object.defineProperty({__proto__:null,default:v6},Symbol.toStringTag,{value:"Module"})),p6={class:"w-imgs"},h6=["innerHTML"],m6=["innerHTML"],g6=Object.assign({inheritAttrs:!1},{__name:"Image",props:{title:String,image:Object,imageMobile:Object,caption:String,outline:Boolean,rounded:Boolean,titleInsideCol:Boolean,largeCaption:Boolean},setup(e){const n=e;return(t,o)=>(l(),r("figure",p6,[e.title?(l(),r("h1",{key:0,class:x(["figtitle",{"inside-col":e.titleInsideCol}]),innerHTML:e.title},null,10,h6)):h("",!0),k(fo,Ro(zo(n)),null,16),e.caption?(l(),r("figcaption",{key:1,class:x({large:e.largeCaption}),innerHTML:e.caption},null,10,m6)):h("",!0)]))}}),y6=Object.freeze(Object.defineProperty({__proto__:null,default:g6},Symbol.toStringTag,{value:"Module"})),_6=["innerHTML"],b6=Object.assign({inheritAttrs:!1},{__name:"JoinUs",props:{content:String},setup(e){return(n,t)=>(l(),r("div",null,[e.content?(l(),r("div",{key:0,class:"content-style active-links padding-bottom-1",innerHTML:e.content},null,8,_6)):h("",!0),s("button",{type:"button",class:"outline serif",onClick:t[0]||(t[0]=o=>c(nt)("join"))}," Learn more ")]))}}),k6=Object.freeze(Object.defineProperty({__proto__:null,default:b
256},Symbol.toStringTag,{value:"Module"})),$6=Uo('<h1>typo/graphic membership</h1><div class="price"> ⬠<span class="number">6</span> /month </div><div class="price-note"> â¬54/year (save 25%) </div><ul class="feature-list common-links"><li>Search 12,000+ posters by what they look, feel, and mean</li><li>push typo/graphic posters forward</li></ul><button class="large-pill stateful success" type="button"> Join us! </button>',5),w6=[$6],M6=Object.assign({inheritAttrs:!1},{__name:"SubscriptionCard",setup(e){kt(async()=>{await qe(),await Ln()});function n(){ae.value?K.value="membership":(bt.value=()=>{K.value="membership"},K.value="login",oo.value=!0)}return(t,o)=>(l(),r("div",{class:"subscription-card",onClick:n},w6))}}),T6=Object.freeze(Object.defineProperty({__proto__:null,default:M6},Symbol.toStringTag,{value:"Module"})),L6=Uo('<h1>typo/graphic membership</h1><div class="price"> ⬠<span class="number">6</span> /month </div><div class="price-note"> get 25% discount if you subscribe yearly </div><ul class="feature-list common-links"><li>Unlock the poster search</li><li>Support us to <b>push typo/graphic posters forward</b></li></ul><button class="large-pill stateful success" type="button"> Join us! </button>',5),C6=[L6],A6=Object.assign({inheritAttrs:!1},{__name:"SubscriptionCard_WithLargePrice",setup(e){kt(async()=>{await qe(),await Ln()});function n(){ae.value?K.value="membership":(bt.value=()=>{K.value="membership"},K.value="login",oo.value=!0)}return(t,o)=>(l(),r("div",{class:"subscription-card",onClick:n},C6))}}),S6=Object.freeze(Object.defineProperty({__proto__:null,default:A6},Symbol.toStringTag,{value:"Module"})),x6={class:"text-split"},P6=["innerHTML"],H6=["innerHTML"],I6=["innerHTML"],B6=Object.assign({inheritAttrs:!1},{__name:"Text",props:{title:String,caption:String,content:String,larger:Boolean},setup(e){return(n,t)=>(l(),r("div",x6,[e.title?(l(),r("h1",{key:0,class:x(["figtitle",{medium:e.larger}]),innerHTML:e.title},null,10,P6)):h("",!0),e.caption?(l(),r("figcaption",{key:1,innerHTML:e.caption},null,8,H6)):h("",!0),e.content?(l(),r("div",{key:2,class:"content-style active-links",innerHTML:e.content},null,8,I6)):h("",!0)]))}}),E6=Object.freeze(Object.defineProperty({__proto__:null,default:B6},Symbol.toStringTag,{value:"Module"})),V6=["innerHTML"],O6=["innerHTML"],F6=Object.assign({inheritAttrs:!1},{__name:"Video",props:{video:String,videoHevc:String,videoMobile:String,videoHevcMobile:String,forcePreload:Boolean,autoplay:Boolean,loop:Boolean,controls:Boolean,mute:Boolean,image:Object,title:String,caption:String,ratioW:Number,ratioH:Number,oembed:String,outline:Boolean},setup(e){const n=e;return(t,o)=>(l(),r("figure",null,[e.title?(l(),r("h1",{key:0,class:"figtitle",innerHTML:e.title},null,8,V6)):h("",!0),e.caption?(l(),r("figcaption",{key:1,innerHTML:e.caption},null,8,O6)):h("",!0),k(po,Ro(zo(n)),null,16)]))}}),D6=Object.freeze(Object.defineProperty({__proto__:null,default:F6},Symbol.toStringTag,{value:"Module"})),N6={key:0,class:"modules"},Yl={__name:"Modules",props:{modules:Array},setup(e){const n={},t=Object.assign({"./modules/Donation.vue":JM,"./modules/Faq.vue":f6,"./modules/FaqItem.vue":i6,"./modules/Image.vue":y6,"./modules/JoinUs.vue":k6,"./modules/SubscriptionCard.vue":T6,"./modules/SubscriptionCard_WithLargePrice.vue":S6,"./modules/Text.vue":E6,"./modules/Video.vue":D6});for(const o in t)n[t[o].default.__name]=t[o].default;return(o,a)=>e.modules.length?(l(),r("div",N6,[(l(!0),r(Q,null,oe(e.modules,i=>(l(),r("div",{key:i.id,class:x([[`${i.module}-module`],"module"]),style:we({"--bkg-color":i.bkgColor||null,"--text-color":i.textColor||null,marginTop:`${c(V).mobile?i.spacingTopMobile:i.spacingTop}px`})},[(l(),P($n(n[i.component]),Ro(zo(i)),null,16))],6))),128))])):h("",!0)}},U6={class:"padding-bottom-5"},R6={class:"donation-love green margin-bottom-1 margin-top-1"},z6=s("p",{class:"active-links color-success"}," Success! Payment received. ",-1),j6=s("p",null,"Your typo/graphic membership is active!",-1),q6=s("p",null,"We hope you discover good references here, and always have good moments as if you were reading a good book.",-1),Y
256=s("a",{href:"/archive"},[s("button",{class:"large-pill more-pad stateful margin-top-1 success",type:"button"}," Start now ")],-1),Kl={__name:"PaymentSuccessMessage",setup(e){return(n,t)=>(l(),r("div",U6,[s("div",R6,[k(Ot,{title:""})]),z6,j6,q6,Y6]))}},K6={key:0},G6={key:0,class:"payment-summary"},Z6={class:"payment-header"},W6=["innerHTML"],J6={key:0,class:"payment-interval-cards"},Q6=s("h1",null,"yearly",-1),X6={class:"price"},eT={class:"number"},tT={class:"price-note"},nT=s("br",null,null,-1),oT=s("h1",null,"monthly",-1),sT={class:"price"},lT={class:"number"},aT={class:"suffix"},iT=["innerHTML"],rT=["innerHTML"],uT={class:"sizer"},cT={key:3,class:"payment-footer"},dT={class:"color-link"},vT={__name:"Payment",setup(e){const n={letter:"â¬",letterShort:"â¬",monthly:6,yearly:54},t=f("");let o=null;const a=f(null),i=f(null),u=f(null),d=f(!1),m=f(!1),v=f(""),p=L(()=>u.value==="succeeded"||u.value==="processing"),y=L(()=>u.value==="succeeded"),g=L(()=>t.value?"review and pay":"choose your preferred billing interval"),b=L(()=>{if(m.value)return"loading ...";if(v.value)return v.value;if(!u.value)return"";switch(u.value){case"succeeded":return"Success! Payment received.";case"processing":return"Payment processing. We'll update you when payment is received. Meanwhile:";case"requires_payment_method":return"Payment failed. Try again."}return"Something went wrong. Confirm you have been charged and visit the membership page to check the status."});async function w(C){t.value!==C&&(t.value=C,await M())}be(async()=>{o=await Ln(),await qe(),d.value=!0}),St(T);async function M(){if(v.value="",T(),!!t.value){m.value=!0;try{a.value=await o.initEmbeddedCheckout({fetchClientSecret:_,onComplete:()=>{u.value="succeeded"}}),a.value.mount(i.value)}catch(C){v.value=je(C)}finally{m.value=!1}}}async function _(){const C=await Fe("/api/tg/stripe-checkout",{method:"POST",body:{interval:t.value,email:S.value.email}}),{clientSecret:$,status:A,message:H}=C;if(A==="error")throw new Error(H);return $}function T(){a.value&&(a.value.destroy(),a.value=null)}return(C,$)=>(l(),r("div",{class:x({"wait-payment-form":m.value})},[d.value?h("",!0):(l(),r("p",K6," loading ... ")),ne(s("div",null,[p.value?h("",!0):(l(),r("div",G6,[s("div",Z6,[s("p",{innerHTML:g.value},null,8,W6)]),t.value?h("",!0):(l(),r("div",J6,[s("div",{class:x(["subscription-card",{selected:t.value==="yearly","not-selected":t.value&&t.value!=="yearly"}]),onClick:$[0]||($[0]=A=>w("yearly"))},[Q6,s("div",X6,[N(B(n.letter)+" ",1),s("span",eT,B(n.yearly),1),N(" /year ")]),s("div",tT,[N(" you will be saving 25% "),nT,N("("+B(n.letterShort)+B(n.yearly/12)+"/month) ",1)])],2),s("div",{class:x(["subscription-card",{selected:t.value==="monthly","not-selected":t.value&&t.value!=="monthly"}]),onClick:$[1]||($[1]=A=>w("monthly"))},[oT,s("div",sT,[N(B(n.letter)+" ",1),s("span",lT,B(n.monthly),1),N(),s("div",aT,[N(" /month "),n.monthlyCents?(l(),r("div",{key:0,class:"cents",innerHTML:n.monthlyCents},null,8,iT)):h("",!0)])])],2)]))])),y.value?(l(),P(Kl,{key:1})):b.value?(l(),r("p",{key:2,class:x([{"color-error":v.value,"color-success":u.value==="succeeded",small:v.value},"active-links padding-top-2"]),innerHTML:b.value},null,10,rT)):h("",!0),s("div",{class:x({"checkout-wrap":!!a.value})},[s("div",uT,[s("div",{ref_key:"embedEl",ref:i},null,512)])],2),!y.value&&t.value?(l(),r("div",cT,[s("p",dT,[s("span",{onClick:$[2]||($[2]=()=>w(""))},"â back")])])):h("",!0)],512),[[se,d.value]])],2))}},fT={key:0},pT={class:"blue-text"},hT=["innerHTML"],mT=s("p",null," If you want to support us, you can still subscribe. Otherwise it's not needed, you already have full access. ",-1),gT=s("div",{class:"summary-row no-bottom-pad"},null,-1),yT={key:1,class:"active-links content-style"},_T=s("p",{class:"blue-text"}
25," Thank you for your interest in the membership program. Although As an author, you already have full access. ",-1),bT={key:0},kT=s("a",{href:"mailto:[email protected]"},"email us",-1),$T=s("p",null," The best way to support us is by sharing with your friends. Still, if you want, you can subscribe too. ",-1),wT=s("div",{class:"summary-row no-bottom-pad"},null,-1),MT=["innerHTML"],TT={key:3},LT={key:0},CT={key:1,class:"payment-summary"},AT={key:0,class:"margin-bottom-1"},ST={key:0},xT=s("span",{class:"blue-text"},"Your subscription is canceled",-1),PT=s("br",null,null,-1),HT={class:"button-group spread margin-top-2 margin-bottom-1"},IT=["href"],BT=s("button",{class:"large-pill blue",type:"button"},"re-subscribe",-1),ET=[BT],VT=s("div",{class:"summary-row margin-top-2"},[s("small",{class:"active-links"},[N("Any help reach us at "),s("a",{href:"mailto:[email protected]"},"[email protected]")])],-1),OT={key:1},FT={key:0},DT=s("span",{style:{color:"#00f"}},"thank you!",-1),NT={key:1},UT={class:"summary-row"},RT={class:"no-spacing"},zT=s("b",null,"typo/graphic membership",-1),jT=s("br",null,null,-1),qT={class:"number"},YT={class:"summary-row"},KT={key:0},GT={key:1,class:"blue-text"},ZT={class:"button-group spread margin-top-1 margin-bottom-2"},WT=["href"],JT=s("button",{class:"large-pill blue",type:"button"},"billing portal",-1),QT=[JT],XT=s("div",{class:"summary-row"},[s("h6",{class:"spaced"}," use your billing portal to update or cancel your subscription, change payment method and download invoices. "),s("h6",{class:"active-links"},[N(" Any help reach us at "),s("a",{href:"mailto:[email protected]"},"[email protected]")])],-1),Gl={__name:"Membership",setup(e){const n=f(!1),t=f(""),o=f({}),a=L(()=>n.value?t.value?t.value:"":"loading ..."),i=L(()=>{var u,d;return(d=(u=o.value)==null?void 0:u.subscriptions)==null?void 0:d[0]});return be(async()=>{await qe();try{o.value=await _e.stripeGetBilling()}catch(u){t.value=je(u)}n.value=!0}),(u,d)=>{var m,v;return l(),r("div",null,[(m=c(S))!=null&&m.complimentary&&!c(dt)&&!c(st)&&!i.value&&n.value?(l(),r("div",fT,[s("p",pT,[N(" You have a complimentary membership"),c(S).complimentaryUntil?(l(),r("span",{key:0,innerHTML:`, valid until ${c(fn)(c(S).complimentaryUntil,{dateStyle:"long"}).replace(/\s/g,"Â ")}`},null,8,hT)):h("",!0),N(". ")]),mT,k(Do,{content:"<p>for one-time donations click here:</p>"}),gT])):h("",!0),(c(dt)||c(st))&&!i.value&&n.value?(l(),r("div",yT,[_T,(v=c(S))!=null&&v.isStudio?(l(),r("p",bT,[N(" You can also grant a free membership for your studio team, just "),kT,N(". ")])):h("",!0),$T,k(Do,{content:"<p>for one-time donations click here:</p>"}),wT])):h("",!0),a.value?(l(),r("p",{key:2,class:x({"color-error":t.value,small:t.value}),innerHTML:a.value},null,10,MT)):h("",!0),n.value?(l(),r("div",TT,[i.value?(l(),r("div",CT,[o.value.isActive&&i.value.cancelAtEnd?(l(),r("div",AT,[i.value.end?(l(),r("p",ST,[xT,PT,N(" still active until "+B(c(fn)(i.value.end,{dateStyle:"long"})),1)])):h("",!0),s("div",HT,[s("a",{href:o.value.portalUrl,target:"_blank"},ET,8,IT),k(Fo)]),VT])):(l(),r("div",OT,[o.value.isActive?(l(),r("p",FT,[N(" Your membership is active, "),DT])):o.value.isPastDue?(l(),r("p",NT," Your membership is past due, use the button below to pay. ")):h("",!0),s("div",UT,[s("p",RT,[zT,jT,s("span",qT,B(new Intl.NumberFormat("en-US",{style:"currency",currency:i.value.currency}).format(i.value.value)),1),N("/"+B(i.value.interval),1)])]),s("div",YT,[i.value.end?(l(),r("h6",KT,B(o.value.isPastDue?"Due date:":"Next Payment:")+" "+B(c(fn)(i.value.end,{dateStyle:"long"})),1)):h("",!0),i.value.interval==="month"?(l(),r("h6",GT," upgrade to yearly subscription and save 25% ")):h("",!0)]),s("div",ZT,[s("a",{href:o.value.portalUrl,target:"_blank"},QT,8,WT),k(Fo)]),XT]))])):(l(),r("div",LT,[k(vT)]))])):h("",!0)])}}},eL={class:""},tL={key:0},nL={key:1,class:"active-links"},oL=["innerHTML"],sL=s("p",null,[N("Please "),s("a",{href:"/contact"},"contact us"),N(" for support.")],-1),Zl={__name:"PaymentConfirm",setup(e){const n=f(!0),t=f(!1),o=f(null),i=new URLSearchParams(window.location.search).get("session_id"),u=Fe("/api/tg/stripe-checkout-session",{method:"POST",body:{session_id:i}});return be(async()=>{const d=await u,{status:m,message:v}=d;m==="error"?(o.value=`error: ${v}`,i||window.location.replace("/join")):m==="open"?window.location.replace("/membership"):m==="complete"&&(t.value=!0),n.value=!1}),(d,m)=>(l(),r("div",eL,[n.value?(l(),r("p",tL," loading ")):h("",!0),o.value?(l(),r("div",nL,[s("p",{innerHTML:o.value},null,8,oL),sL])):h("",!0),t.value?(l(),P(Kl,{key:2})):h("",!0)]))}},lL=["innerHTML"],aL=["innerHTML"],iL=["innerHTML"],Wl={__name:"ApiMessage",setup(e){const n=new URLSearchParams(window.location.search),t=n.get("error")||"",o=n.get("success")||"",a=n.get("message")||"";return(i,u)=>(l(),r("div",null,[c(a)?(l(),r("p",{key:0,innerHTML:c(a)},null,8,lL)):h("",!0),c(o)?(l(),r("p",{key:1,class:"color-success",innerHTML:c(o)},null,8,aL)):h("",!0),c(t)?(l(),r("p",{key:2,class:"color-error",innerHTML:c(t)},null,8,iL)):h("",!0),s("button",{type:"button",class:"text-only no-pad margin-top-2",onClick:u[0]||(u[0]=(...d)=>c(tn)&&c(tn)(...d))}
25," â close ")]))}},rL={key:0,class:"donation-love"},uL=["innerHTML"],Jl={__name:"DonationConfirm",setup(e){const n=new URLSearchParams(window.location.search).get("payment_intent_client_secret"),t=f("succeeded"),o=L(()=>{if(!t.value)return"loading ...";switch(t.value){case"succeeded":return"Success! Payment received.<br><br>Thank you for supporting us. Your donation will help enormously our journey to improve the platform for all.";case"processing":return"Payment processing. We'll update you when payment is received.";case"requires_payment_method":return"Payment failed. Try another payment method."}return"Something went wrong. Confirm you have been charged and visit the membership page to check the status."});return be(async()=>{const a=await Ln();try{const{paymentIntent:i}=await a.retrievePaymentIntent(n);t.value=(i==null?void 0:i.status)||"error"}catch{t.value="error"}}),(a,i)=>(l(),r("div",null,[t.value==="succeeded"?(l(),r("div",rL,[k(Ot,{title:""})])):h("",!0),s("p",{class:x({"color-blue":t.value==="succeeded","padding-top-1":t.value==="succeeded"}),innerHTML:o.value},null,10,uL)]))}},cL=s("p",null,"change password",-1),dL={class:"margin-top-2"},vL=["disabled","innerHTML"],fL=["innerHTML"],Ql={__name:"ChangePassword",props:{title:String},setup(e){const n=f(""),t=f(""),o=f(""),a=f("");kt(async()=>{var m;await qe(),(m=S.value)!=null&&m.email?n.value=S.value.email:window.location.href="/login"});const i=L(()=>!fe.value&&t.value.length>0&&o.value.length>0),u=L(()=>fe.value?"please wait":i.value?"change password":"fill your current and new password"),d=async()=>{if(!i.value)return;const m=await Sa(t.value,o.value);a.value=m.errorMessage||"",a.value=a.value.replace("Password did not conform with policy: ","").replace("Incorrect username or password.","your current password is incorrect")};return(m,v)=>(l(),r("div",null,[cL,k(Se,{modelValue:n.value,"onUpdate:modelValue":v[0]||(v[0]=p=>n.value=p),label:"changing password of",type:"email",autocomplete:"username",disabled:!0},null,8,["modelValue"]),k(Se,{modelValue:t.value,"onUpdate:modelValue":v[1]||(v[1]=p=>t.value=p),label:"current password",type:"password",required:"",autocomplete:"current-password"},null,8,["modelValue"]),k(Se,{modelValue:o.value,"onUpdate:modelValue":v[2]||(v[2]=p=>o.value=p),label:"new password",type:"password",required:"",autocomplete:"new-password"},null,8,["modelValue"]),s("div",dL,[s("button",{class:"large-pill more-pad stateful",disabled:!i.value,onClick:d,innerHTML:u.value},null,8,vL)]),a.value?(l(),r("h6",{key:0,class:"color-error padding-top-3",innerHTML:a.value},null,8,fL)):h("",!0),s("small",{class:"color-link margin-top-5 inline-block",onClick:v[3]||(v[3]=(...p)=>c(ot)&&c(ot)(...p))},"â back")]))}},pL=["innerHTML"],hL={__name:"SideMenuDesktop",props:{items:Array,headerItems:Array,accountItems:Array,socialItems:Array,extraItems:Array,extraItemsAccount:Array,currentContent:Object,delayDomForms:Boolean},setup(e){const n=e,t=L(()=>K.value==="payment-confirm");function o(d){t.value?d.preventDefault():un()}const a=L(()=>K.value==="join");function i(){K.value=gn.value,gn.value=null}const u=L(()=>mn.value?n.accountItems:[].concat(n.items).concat([{key:"spacer2",type:"spacer"}]).concat(n.headerItems));return(d,m)=>(l(),r(Q,null,[s("aside",{id:"side-menu",class:x(["white-theme color-links",{open:c(hn)}])},[s("div",null,[s("nav",null,[k(Xn,{items:u.value},null,8,["items"]),k(zl,{items:e.socialItems},null,8,["items"]),k(Xn,{items:c(mn)?e.extraItemsAccount:e.extraItems,class:"extra-items"},null,8,["items"])])])],2),s("div",{class:x(["side-menu-line",{open:c(hn)}])},null,2),s("div",{class:x(["side-menu-bkg",{open:c(hn),cant:t.value}]),onClick:o},null,2),s("div",{id:"side-menu-content",class:x(["white-theme",{open:c(K),wide:a.value}])},[k(Wt,{name:"side",mode:"out-in"},{default:re(()=>{var v,p;return[(l(),r("div",{id:"side-menu-content-wrap",key:c(K),class:x({wide:a.value})},[(v=e.currentContent)!=null&&v.content?(l(),r("span",{key:0,class:"content-style page active-links",innerHTML:e.currentContent.content},null,8,pL)):h("",!0),(p=e.currentContent)!=null&&p.modules?(l(),P(Yl,{
25key:1,modules:e.currentContent.modules},null,8,["modules"])):h("",!0),c(gn)?(l(),r("small",{key:2,class:"color-link margin-top-2 inline-block",onClick:i}," â back ")):h("",!0),c(K)==="membership"&&!e.delayDomForms?(l(),P(Gl,{key:3})):h("",!0),c(K)==="payment-confirm"&&!e.delayDomForms?(l(),P(Zl,{key:4})):h("",!0),c(K)==="donation-confirm"&&!e.delayDomForms?(l(),P(Jl,{key:5})):h("",!0),c(K)==="login"&&!e.delayDomForms?(l(),P(Nl,{key:6})):h("",!0),c(K)==="request"&&!e.delayDomForms?(l(),P(Ul,{key:7})):h("",!0),c(K)==="change-password"&&!e.delayDomForms?(l(),P(Ql,{key:8})):h("",!0),c(K)==="account"&&!e.delayDomForms?(l(),P(Rl,{key:9})):h("",!0),c(K)==="create"&&!e.delayDomForms?(l(),P(ds,{key:10})):h("",!0),c(K)==="delete"&&!e.delayDomForms?(l(),P(jl,{key:11})):h("",!0),c(K)==="message"?(l(),P(Wl,{key:12})):h("",!0)],2))]}),_:1})],2)],64))}},mL=s("hr",{class:"bkg no-spacing"},null,-1),gL=["innerHTML"],yL={class:"padding-bottom-5"},_L={key:0},bL={key:2},kL=s("hr",{class:"bkg"},null,-1),$L=["innerHTML"],wL={__name:"SideMenuMobile",props:{items:Array,headerItems:Array,accountItems:Array,socialItems:Array,extraItems:Array,extraItemsAccount:Array,currentContent:Object,delayDomForms:Boolean},setup(e){const n=e,t=L(()=>K.value==="payment-confirm");function o(d){t.value?d.preventDefault():un()}const a=L(()=>["terms-of-use","terms-of-service","privacy-policy","cookie-policy"].includes(K.value)),i=f(null);z(K,()=>{i.value.scrollTo(0,0)});const u=L(()=>{if(mn.value){const d=[].concat(n.accountItems);return Kt.value&&V.mobile&&d.push({key:"edit-profile",routeTo:Zs.value,self:!0,name:"Edit my profile"}),d}return[].concat(n.items)});return(d,m)=>(l(),r(Q,null,[s("aside",{id:"side-menu-mobile",ref_key:"menu",ref:i,class:x(["white-theme",{open:c(hn)}])},[mL,s("div",null,[k(Wt,{name:"view",mode:"out-in"},{default:re(()=>{var v,p;return[a.value?h("",!0):(l(),r("div",{id:"side-menu-content-mobile",key:c(K),class:"container padding-top-3 padding-bottom-5"},[(v=e.currentContent)!=null&&v.content?(l(),r("div",{key:0,class:"content-style page active-links",innerHTML:e.currentContent.content},null,8,gL)):h("",!0),(p=e.currentContent)!=null&&p.modules?(l(),P(Yl,{key:1,modules:e.currentContent.modules},null,8,["modules"])):h("",!0),c(K)==="membership"&&!e.delayDomForms?(l(),P(Gl,{key:2})):h("",!0),c(K)==="payment-confirm"&&!e.delayDomForms?(l(),P(Zl,{key:3})):h("",!0),c(K)==="donation-confirm"&&!e.delayDomForms?(l(),P(Jl,{key:4})):h("",!0),c(K)==="login"&&!e.delayDomForms?(l(),P(Nl,{key:5})):h("",!0),c(K)==="request"&&!e.delayDomForms?(l(),P(Ul,{key:6}
25)):h("",!0),c(K)==="change-password"&&!e.delayDomForms?(l(),P(Ql,{key:7})):h("",!0),c(K)==="account"&&!e.delayDomForms?(l(),P(Rl,{key:8})):h("",!0),c(K)==="create"&&!e.delayDomForms?(l(),P(ds,{key:9})):h("",!0),c(K)==="delete"&&!e.delayDomForms?(l(),P(jl,{key:10})):h("",!0),c(K)==="message"?(l(),P(Wl,{key:11})):h("",!0)]))]}),_:1}),s("footer",yL,[u.value.length?(l(),r("nav",_L,[k(Xn,{items:u.value},null,8,["items"])])):h("",!0),c(mn)?h("",!0):(l(),P(zl,{key:1,items:e.socialItems},null,8,["items"])),k(Xn,{items:c(mn)?e.extraItemsAccount:e.extraItems,class:"extra-items"},null,8,["items"]),e.currentContent&&a.value?(l(),r("div",bL,[kL,k(Wt,{name:"view",mode:"out-in"},{default:re(()=>{var v;return[(v=e.currentContent)!=null&&v.content?(l(),r("div",{key:c(K),class:"container content-style page active-links padding-top-2 padding-bottom-5",innerHTML:e.currentContent.content},null,8,$L)):h("",!0)]}),_:1})])):h("",!0)])])],2),s("div",{class:x(["side-menu-bkg",{open:c(hn),cant:t.value}]),onClick:o},null,2)],64))}},ML={__name:"SideMenu",setup(e){const n=[{key:"about",name:"About"},{key:"apply",name:"Apply"},{key:"contact",name:"Contact"}],t=[{key:"archive",routeTo:"/archive",self:!0,name:"Poster Archive"},{key:"profiles",routeTo:"/profiles",self:!0,name:"profiles"}],o=L(()=>{if(ae.value){const y=[];return y.push({key:"account",name:"Account"}),Ft.value?y.push({key:"membership",name:"Membership"}):Ko.value?(y.push({key:"membership",name:"Renew you Membership"}),y.push({key:"join",name:"More info"})):y.push({key:"join",name:"membership"}),Js.value&&y.push({key:"my-collections",routeTo:"/collections/my",self:!0,name:"My Collections"}),y.push({key:"likes",routeTo:"/likes",self:!0,name:"My Likes"}),y.push({key:"faq",name:"FAQ"}),y}return[{key:"login",name:"Login"},{key:"join",name:"membership"},{key:"faq",name:"FAQ"}]}),a=[{key:"instagram",name:"Instagram",url:"https://www.instagram.com/typographicposters"},{key:"twitter",name:"Twitter",url:"https://twitter.com/tgposters"},{key:"pinterest",name:"Pinterest",url:"https://www.pinterest.com/typographicposters/"},{key:"facebook",name:"Facebook",url:"https://www.facebook.com/typographicposters"}],i=[],u=[{key:"terms-of-use",name:"Terms of Use"},{key:"terms-of-service",name:"Terms of Service"},{key:"privacy-policy",name:"Privacy Policy"},{key:"cookie-policy",name:"Cookie Policy"},{key:"legal",name:"Legal"}],d=f(!!ue.value.pages);d.value&&setTimeout(()=>{d.value=!1},200);let m=!1,v=!1;const p=L(()=>ue.value.pages&&K.value&&ue.value.pages[K.value]?(K.value==="about"&&!m&&(m=!0,ue.value.pages.about.content=ue.value.pages.about.content.replace("this email",`<a href="mailto:${"moc.sretsopcihpargopyt@yeh".split("").reverse().join("")}">this email</a>`)),K.value==="contact"&&!v&&(v=!0,ue.value.pages.contact.content=ue.value.pages.contact.content.replace("this email",`<a href="mailto:${"moc.sretsopcihpargopyt@yeh".split("").reverse().join("")}">this email</a>`)),ue.value.pages[K.value]):null);return(y,g)=>(l(),r(Q,null,[c(V).mobile?h("",!0):(l(),P(hL,{key:0,items:n,"header-items":t,"account-items":o.value,"social-items":a,"extra-items":i,"extra-items-account":u,"current-content":p.value,"delay-dom-forms":d.value},null,8,["account-items","current-content","delay-dom-forms"])),c(V).mobile?(l(),P(wL,{key:1,items:n,"header-items":t,"account-items":o.value,"social-items":a,"extra-items":i,"extra-items-account":u,"current-content":p.value,"delay-dom-forms":d.value},null,8,["account-items","current-content","delay-dom-forms"])):h("",!0)],64))}},TL=["innerHTML"],LL=["innerHTML"],CL=["onDragenter","onDragover","onDrop"],AL=["innerHTML"],Os="max size 20MB, min height 1600px<br>RGB with AdobeRGB and DisplayP3 are preferred",SL={__name:"FileDrop",setup(e){const n=f(!1),t=f(!1),o=f(!1),a=f(null),i=L(()=>{var _,T;return ae.value&&((T=(_=S.value)==null?void 0:_.allowedProfiles)==null?void 0:T.length)}),u=L(()=>{var _,T;return(T=(_=We.currentRoute.value)==null?void 0:_.params)==null?void 0:T.profileId}),d=L(()=>{var _;return ae.value&&((_=S.value)==null?void 0:_.editProfileSelect)&&!u.value}),m=L(()=>{var _,T;return d.value?!0:!st.value&&!dt.value?!1:ae.value&&!((_=S.value)!=null&&_.editProfileSelect)&&!((T=S.value)!=null&&T.editProfileId)&&t.value});async function v(){var _,T;o.value||(o.value=!0,await qe(),i.value&&await Ee("author-area"),(_=S.value)!=null&&_.isAdmin&&!((T=S.value)!=null&&T.allowedProfiles)&&(S.value.allowedProfiles=await _e.profileGetAll()),o.value=!1)}async function p(_){var T;if(_.preventDefault(),t.value=!1,!a4.value&&K.value!=="account"){if((T=_.dataTransfer.items)!=null&&T.length){let C=!0;for(const $ of _.dataTransfer.items)if($.kind==="file"){C=!1;break}if(C)return}Ue.value=!1,n.value=!0,await v()}}function y(_){n.value=!1}be(()=>{window.addEventListener("dragenter",p)});function g(_,T){var C;if(!(!_||!_.length)){if(T||(T=u.value),T||(T=(C=S.value)==null?void 0:C.editProfileId),!st.value&&!(S.value.allowedProfiles||[]).find($=>
25$.id===T)&&(T=!1),!T){n.value=!0;return}gt[T]||(gt[T]=f([])),gt[T].value=gt[T].value.concat(_),We.push({name:"author-area-of-tab",params:{profileId:T,tab:"posters"}})}}async function b(_,T){_.preventDefault(),t.value=!0;const C=[];if(_.dataTransfer.items){for(const $ of _.dataTransfer.items)if($.kind==="file"){const A=$.getAsFile();C.push(A)}}if(!ae.value){De(),n.value=!1,bt.value=async()=>{K.value=null,await v(),t.value=!0,g(C,T),n.value=!1};return}g(C,T),n.value=!1}function w(_){n.value=!0,a.value=null}const M=L(()=>{var _,T;return o.value?"loading...":ae.value?d.value?`Hello${(_=S.value)!=null&&_.firstName?` ${S.value.firstName}`:""}!<br>Drop the poster into the profile you want to upload to.`:st.value||dt.value?`Hello${(T=S.value)!=null&&T.firstName?` ${S.value.firstName}`:""}!<br>Just drop the file and we'll upload for you.`:"Only members of the site can upload new posters.<br>In case you are, contact us and we'll help you in. ":"You need to login first.<br>Just drop the file and we'll redirect you there."});return(_,T)=>{var C;return l(),r(Q,null,[s("div",{class:x(["file-drop-null",{active:n.value}]),onDragenter:T[0]||(T[0]=U(()=>{},["prevent"])),onDragover:T[1]||(T[1]=U(()=>{},["prevent"])),onDragleave:T[2]||(T[2]=U(()=>{},["prevent"])),onDrop:U(y,["prevent"]),onClick:y},null,34),d.value?(l(),r("div",{key:1,class:x(["file-drop-multi",{active:n.value}])},[s("div",{class:"header",onDragenter:T[5]||(T[5]=U(()=>{},["prevent"])),onDragover:T[6]||(T[6]=U(()=>{}
25,["prevent"])),onDragleave:T[7]||(T[7]=U(()=>{},["prevent"])),onDrop:U(y,["prevent"])},[s("p",{class:"pointer-events-none",innerHTML:M.value},null,8,LL),i.value?(l(),r("small",{key:0,class:"text-none pointer-events-none",innerHTML:Os})):h("",!0),m.value?(l(),r("h6",{key:1,class:"close",onClick:y}," Close ")):h("",!0)],32),(C=c(S))!=null&&C.allowedProfiles?(l(),r("div",{key:0,class:x(["list",{long:c(S).allowedProfiles.length>20}]),style:we({"--profile-count":c(S).allowedProfiles.length})},[(l(!0),r(Q,null,oe(c(S).allowedProfiles,$=>(l(),r("div",{key:$.id,class:x(["item",{active:a.value===$.id}]),onDragenter:U(A=>a.value=$.id,["prevent"]),onDragover:U(A=>a.value=$.id,["prevent"]),onDragleave:U(w,["prevent"]),onDrop:U(A=>b(A,$.id),["prevent"])},[s("h1",{innerHTML:$.name},null,8,AL)],42,CL))),128))],6)):h("",!0)],2)):(l(),r("div",{key:0,class:x(["file-drop",{active:n.value}]),onDragenter:T[3]||(T[3]=U(()=>{},["prevent"])),onDragover:T[4]||(T[4]=U(()=>{},["prevent"])),onDragleave:U(y,["prevent"]),onDrop:U(b,["prevent"])},[s("p",{class:"message pointer-events-none",innerHTML:M.value},null,8,TL),i.value?(l(),r("small",{key:0,class:"text-none pointer-events-none",innerHTML:Os})):h("",!0),m.value?(l(),r("h6",{key:1,class:"close",onClick:y}," Close ")):h("",!0)],34))],64)}}},Fs="typo/graphic posters",xL={__name:"App",setup(e){return ha({title:L(()=>{var n,t,o,a,i,u;return K.value?((a=(o=(t=(n=ue.value)==null?void 0:n.pages)==null?void 0:t[K.value])==null?void 0:o.meta)==null?void 0:a.title)||Fs:((u=(i=Dl.value)==null?void 0:i.meta)==null?void 0:u.title)||Fs})}),(n,t)=>{const o=he("router-view");return l(),r("div",{class:x({loading:c(fe)||c(l4),"menu-can-hide":c($e),"menu-hidden":c(Wn)})},[k(K4),k(ML),c($e)?h("",!0):(l(),P(SL,{key:0})),k(ed),k(Lr),k(Zd),s("div",{class:x(["view",{blur:c(Ue)}])},[k(o,null,{default:re(({Component:a,route:i})=>[k(Wt,{mode:"out-in",name:"view"},{default:re(()=>[(l(),P($n(a),{key:i.meta.keep?i.name:i.path}))]),_:2},1024)]),_:1})],2)],2)}}},hs=ma(xL);hs.use(We);const PL=ga();hs.use(PL);Da();We.isReady().then(()=>hs.mount("#app"));export{ae as $,Nt as A,Kn as B,O8 as C,bk as D,BL as E,vo as F,EL as G,Jk as H,IL as I,lo as J,ue as K,Ll as L,on as M,Vt as N,Xo as O,Ha as P,Xi as Q,Gt as R,DL as S,ml as T,bn as U,Dt as V,Vo as W,OL as X,Yn as Y,tn as Z,P8 as _,de as a,bt as a0,De as a1,qe as a2,S as a3,fe as a4,FL as a5,Qt as b,je as c,jb as d,Yt as e,_e as f,Jt as g,ft as h,ss as i,os as j,Hu as k,ao as l,V as m,le as n,et as o,yt as p,Se as q,hl as r,$u as s,ku as t,sn as u,Ua as v,a4 as w,We as x,VL as y,Xt as z};
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.