1var _global;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="19f08fc4-53b7-4dc5-bce5-2ae7e5679d50",e._sentryDebugIdIdentifier="sentry-dbid-19f08fc4-53b7-4dc5-bce5-2ae7e5679d50")}catch(e){}}(),(_global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"1.30.3.5"},function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="19f08fc4-53b7-4dc5-bce5-2ae7e5679d50",e._sentryDebugIdIdentifier="sentry-dbid-19f08fc4-53b7-4dc5-bce5-2ae7e5679d50")}catch(e){}}(),(_global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"94c52878174d063fe834ad5b32e500e278fea03b"},(self.webpackChunkbiesse_website=self.webpackChunkbiesse_website||[]).push([[323],{61164:function(e,t,n){n.d(t,{y:function(){return i}});var r=n(90512);const i=e=>{let{variant:t,size:n,fullWidth:i,disabled:l,customClassName:s}=e;return(0,r.Z)("rounded-lg transition-all whitespace-nowrap","neutral"===t&&"bg-black text-white","neutral-outline"===t&&"text-black","neutral-light"===t&&"bg-neutral-light text-black hover:bg-white hover:text-primary","primary"===t&&"bg-primary text-white hover:bg-black","primary-light"===t&&"bg-primary text-white hover:bg-white hover:text-primary","primary-inverted"===t&&"bg-white text-primary hover:bg-primary hover:text-white","primary-outline"===t&&"bg-transparent border border-primary text-primary","light"===t&&"bg-white text-primary hover:bg-black hover:text-white","light-outline"===t&&"bg-transparent border border-white text-white","neutral-outline"===t&&"bg-transparent border border-black text-black","lg"===n&&"px-10 h-[75px] text-xl font-medium hover:rounded-4xl","md"===n&&"px-10 h-12 md:px-12 md:h-14 md:text-xl font-medium hover:rounded-[30px]","sm"===n&&"px-4 h-10 md:px-6 text-sm hover:rounded-[20px]",i&&"w-full",l&&"pointer-events-none opacity-75",s)}},20757:function(e,t,n){n.d(t,{z:function(){return a},b:function(){return s}});var r=n(90512),i=n(61164),l=n(85893);const s=e=>{let{children:t,inverted:n=!1}=e;return(0,l.jsxs)("div",{className:(0,r.Z)("btn--watermark shadow-md",n&&"btn--watermark--inverted"),children:[t,(0,l.jsx)("div",{className:"btn--watermark--plus"})]})},a=e=>{var t;let{variant:n="neutral",size:r="md",className:a,children:o,fullWidth:d,disabled:u,...c}=e;const f=(0,i.y)({size:r,variant:n,fullWidth:d,disabled:u,customClassName:a}),b=(0,l.jsx)("button",{className:f,type:null!==(t=null==c?void 0:c.type)&&void 0!==t?t:"button",disabled:u,...c,children:o});return"watermarked"===n?(0,l.jsx)(s,{children:o}):b}},63659:function(e,t,n){n.d(t,{$:function(){return l}});var r=n(90512),i=n(85893);const l=e=>{let{size:t="small",className:n}=e;return(0,i.jsx)("div",{className:(0,r.Z)("border-gray-300 animate-spin rounded-full border-4 border-t-primary","small"===t&&"w-6 h-6","large"===t&&"h-16 w-16",n)})}},23619:function(e,t,n){n.r(t),n.d(t,{default:function(){return u}});var r=n(14160),i=n(67294),l=n(20757),s=n(63659);let a=function(e){return e[e.HAS_FILE=0]="HAS_FILE",e[e.HAS_LINK=1]="HAS_LINK",e[e.HAS_EXTERNAL_LINK=2]="HAS_EXTERNAL_LINK",e[e.NONE=3]="NONE",e}({});function o(){const e="undefined"!=typeof window,t=(t,n)=>{var r;return e&&null!==(r=localStorage.getItem(t))&&void 0!==r?r:n};return{CONTENTFUL_ACCESS_TOKEN:t("CONTENTFUL_ACCESS_TOKEN","qrCD_gtiCb42gBBnEIfBvlYkQ9jX9CgGwST0Gczx2Ns"),CONTENTFUL_SPACE_ID:t("CONTENTFUL_SPACE_ID","bdj0rlksezwc"),CONTENTFUL_ENVIRONMENT_ID:t("CONTENTFUL_ENVIRONMENT_ID","master"),CONTENTFUL_HOST:t("CONTENTFUL_HOST","cdn.contentful.com"),AUTO_REDIRECT:t("AUTO_REDIRECT",!0)}}var d=n(85893);var u=e=>{var t,n;let{location:u,pageContext:{localizedUrls:c,locale:f}}=e;console.group("index.tsx > QRPage - line 19 at 01/09/2026 10:14:31"),console.debug(u,f),console.groupEnd();const{AUTO_REDIRECT:b}=o(),h=null!==(t=null===(n=u.pathname.split("/qr/")[1])||void 0===n?void 0:n.replace(/\/$/,""))&&void 0!==t?t:"",[N,E]=(0,i.useState)(null),p=async e=>{const t=await async function(e){const{CONTENTFUL_ACCESS_TOKEN:t,CONTENTFUL_SPACE_ID:n,CONTENTFUL_ENVIRONMENT_ID:r,CONTENTFUL_HOST:i}=o(),l=new URL(`https://${i}
1/spaces/${n}/environments/${r}/entries`);l.searchParams.set("content_type","shortLink"),l.searchParams.set("fields.slug",e),l.searchParams.set("include","10");const s=await fetch(l,{headers:{Authorization:`Bearer ${t}`}});if(!s.ok)throw new Error(`Contentful request failed: ${s.status}`);return s.json()}(`${e}`),n=function(e){var t,n;const r=null!==(t=null===(n=e.items)||void 0===n?void 0:n[0].fields)&&void 0!==t?t:null,i={data:null,status:a.NONE};if(null!=r){if("file"in r&&null!=r.file)return i.status=a.HAS_FILE,i.data=r.file.sys,i;if("entry"in r&&null!=r.entry)return i.status=a.HAS_LINK,i.data=r.entry.sys,i;if("externalUrl"in r&&null!=r.externalUrl)return i.status=a.HAS_EXTERNAL_LINK,i.data=r.externalUrl,i}return i}(t);switch(n.status){case a.HAS_FILE:{const e=await async function(e){const{CONTENTFUL_ACCESS_TOKEN:t,CONTENTFUL_SPACE_ID:n,CONTENTFUL_ENVIRONMENT_ID:r,CONTENTFUL_HOST:i}=o(),l=new URL(`https://${i}/spaces/${n}/environments/${r}/assets/${e}`),s=await fetch(l,{headers:{Authorization:`Bearer ${t}`}});if(!s.ok)throw new Error(`Contentful request failed: ${s.status}`);const a=await s.json();return`https:${null==a?void 0:a.fields.file.url}`}(n.data.id);E(`${e}`);break}case a.HAS_LINK:{const e=function(e){var t,n,r,i,l,s,a;const o=[...null!==(t=e.items)&&void 0!==t?t:[],...null!==(n=null===(r=e.includes)||void 0===r?void 0:r.Entry)&&void 0!==n?n:[]],d=new Map(o.map((e=>[e.sys.id,e]))),u=null===(i=e.items)||void 0===i?void 0:i[0],c=null==u||null===(l=u.fields)||void 0===l||null===(s=l.entry)||void 0===s||null===(a=s.sys)||void 0===a?void 0:a.id,f=[],b=new Set;let h=d.get(c);for(;h;){var N,E,p;if(b.has(h.sys.id))throw new Error(`Circular reference detected: ${h.sys.id}`);b.add(h.sys.id),f.push(h);const e=null===(N=h.fields)||void 0===N||null===(E=N.parentPage)||void 0===E||null===(p=E.sys)||void 0===p?void 0:p.id;if(!e)break;if(h=d.get(e),!h){console.warn(`Parent ${e} was not included`);break}}return null==f?void 0:f[0].fields.slug}(t);E(`/${e}`);break}case a.HAS_EXTERNAL_LINK:E(`${n.data}`);break;default:return(0,r.navigate)("/404")}};(0,i.useEffect)((function(){h&&p(h)}),[h]);const v=()=>{N&&window.open(N,"_self","noopener,noreferrer")};return(0,i.useEffect)((function(){N&&b&&v()}),[N]),(0,d.jsxs)("main",{style:{color:"#111",background:"#fff",minHeight:"100vh"},children:[b&&(0,d.jsxs)("div",{className:"flex justify-center items-center h-screen flex-col",children:[(0,d.jsx)(s.$,{size:"large",className:"m-10"}),(0,d.jsx)("p",{children:"Redirecting..."})]}),!b&&(0,d.jsxs)("div",{children:[(0,d.jsx)("h1",{children:"QR"}),(0,d.jsxs)("p",{children:["Code: ",h||"missing"]}),(0,d.jsxs)("p",{children:["Slug found: ",N||"fetching"]}),(0,d.jsx)(l.z,{onClick:v,disabled:null==N,children:"Redirect"})]})]})}},90512:function(e,t,n){function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function i(){for(var e,t,n=0,i="",l=arguments.length;n<l;n++)(e=arguments[n])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}n.d(t,{W:function(){return i}}),t.Z=i}}]); 2//# sourceMappingURL=component---src-templates-qr-index-tsx-ea360386a717321a6dc1.js.map
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.