1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="92c52118-6be4-4592-8216-9b4ceae788f7",e._sentryDebugIdIdentifier="sentry-dbid-92c52118-6be4-4592-8216-9b4ceae788f7")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2259,9119],{47995:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>p,HS:()=>c,hS:()=>d,un:()=>u});var n=r(18847),i=r.n(n),o=r(4484),l=r(60944),a=r(40645),s=r(50408);function u(){return"undefined"!=typeof navigator&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||navigator.maxTouchPoints>1&&/Macintosh/.test(navigator.userAgent))}function c(e){let t=document.createElement("a");t.rel="ar",t.href=e;let r=document.createElement("img");r.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQI12NgAAIABQABNjN9GQAAAABJRU5ErkJggg==",t.appendChild(r),document.body.appendChild(t),t.click(),document.body.removeChild(t)}function d(e){let t=new URL(window.location.href);t.searchParams.delete("ar");let r=encodeURIComponent(t.toString()),n=encodeURIComponent(e),i=`intent://arvr.google.com/scene-viewer/1.0?file=${n}&mode=ar_only#Intent;scheme=https;package=com.google.ar.core;action=android.intent.action.VIEW;S.browser_fallback_url=${r};end;`,o=document.createElement("a");o.href=i,document.body.appendChild(o),o.click(),document.body.removeChild(o)}function f(e){let{src:t,alt:n,iosSrc:i,label:d,className:f,buttonStyleType:p="outline",notSupportedTitle:h,notSupportedDesc:m,display3dModelIfNotSupported:g,modelViewerRef:b}=e;r(87187);let v=(0,o.useRef)(null),{0:y,1:w}=(0,o.useState)(!0),{0:A,1:x}=(0,o.useState)(!1);(0,o.useEffect)(()=>{v.current&&(v.current.activateAR=v.current.activateAR)},[y]);let E=async()=>{if(u()&&i){c(i);return}try{var e;y||(w(!0),await new Promise(e=>setTimeout(e,100)));let t=v.current;if(!t){console.error("Model viewer reference not found");return}if(!t.canActivateAR){x(!0);return}await (null===(e=t.activateAR)||void 0===e?void 0:e.call(t))}catch(e){console.error("Error activating AR:",e),x(!0)}},S=`/api/proxy?url=${encodeURIComponent(t)}`;return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(l.$n,{styleType:p,onClick:E,className:f,children:d||"View in AR"}),y&&(0,s.jsx)("model-viewer",{ref:e=>{v.current=e,b&&(b.current=e)},src:S,alt:n,ar:!0,"ar-modes":"webxr scene-viewer quick-look","shadow-intensity":"1","camera-controls":!0,"auto-rotate":!0,style:{width:"100%",height:"400px",visibility:"hidden",position:"absolute"}}),A&&(0,s.jsxs)(a.A,{onClose:x,title:h||"AR not supported",children:[m&&(0,s.jsx)("p",{children:m}),g&&(0,s.jsx)("div",{children:(0,s.jsx)("model-viewer",{src:S,alt:n,ar:!1,"camera-controls":!0,style:{width:"100%",height:"400px"}})})]})]})}let p=i()(()=>Promise.resolve(f),{ssr:!1})},52259:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var n=r(86649),i=r(89099),o=r(4484),l=r(45709),a=r(15039),s=r.n(a),u=r(22691),c=r(40645),d=r(78295),f=r(6333);let p=["secondary","tertiary","outline"];function h(e){return null!=e&&p.includes(e)}function m(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(let t of r){let r=e[t.toLowerCase()];if(void 0!==r&&""!==r)return r}}var g=r(50408);function b(){return(0,g.jsx)("span",{className:"inline-flex flex-wrap items-center gap-3 my-4 not-prose","aria-busy":"true",children:(0,g.jsx)("span",{className:s()("inline-block min-w-[160px] min-h-[3.25rem] rounded-[40px] border-2 border-gray-100","bg-gray-100 animate-pulse"),"aria-hidden":"true"})})}function v(e){let{attrs:t,arPost:r,arDataPending:i=!1}=e,{0:a,1:p}=(0,o.useState)(!1);if(i)return(0,g.jsx)(b,{});if(!r)return null;let v=function(e,t){var r,n,i,o;let a=(null==e?void 0:e.arFields)??{},s=m(t,"glb_file_url")??a.glbFileUrl??"",u=m(t,"usdz_file_url")??a.usdzFileUrl??"";if(!s.trim()||!u.trim())return null;let c=m(t,"title"),d=(null==c?void 0:c.trim())||(null===(r=a.defaultButtonLabel)||void 0===r?void 0:r.trim())||(null==e||null===(n=e.title)||void 0===n?void 0:n.trim())||"View in AR",f=m(t,"style"),p=null==f?void 0:f.toLowerCase().trim(),g=null==a.buttonStyle?void 0:a.buttonStyle.toLowerCase().trim(),b="outline";h(p)?b=p:h(g)&&(b=g);let v=function(e){var t=e.showInfoModal??e.show_info_modal;if(!0===t)return!0;
1if(!1===t||null==t)return!1;if("number"==typeof t)return 1===t;if("string"==typeof t){let e=t.trim().toLowerCase();return"1"===e||"true"===e||"yes"===e||"on"===e}return!1}(a),y=function(e){if(void 0===e||""===e)return;let t=e.toLowerCase().trim();return!!["1","true","yes","on"].includes(t)||!["0","false","no","off"].includes(t)&&void 0}(m(t,"show_info","info_modal"));return void 0!==y&&(v=y),{buttonText:d,variant:b,glbFileUrl:s,usdzFileUrl:u,qrDescription:m(t,"qr_description")??a.qrDescription??void 0,arNotSupportedTitle:m(t,"ar_not_supported_title")??a.arNotSupportedTitle??void 0,arNotSupportedDescription:m(t,"ar_not_supported_description")??a.arNotSupportedDescription??void 0,display3dModelIfArNotSupported:a.display3dModelIfArNotSupported??!1,infoIconEnabled:v,infoTitle:(null===(i=a.infoTitle)||void 0===i?void 0:i.trim())||void 0,infoContent:null!=(o=a.infoContent)&&String(o).trim()&&(0,l.$J)(String(o)).replace(/\u00a0/g," ").trim().length>0?a.infoContent??void 0:void 0}}(r,t);if(!v)return null;let{buttonText:y,variant:w,glbFileUrl:A,usdzFileUrl:x,qrDescription:E,arNotSupportedTitle:S,arNotSupportedDescription:j,display3dModelIfArNotSupported:N,infoIconEnabled:C,infoTitle:O,infoContent:I}=v,_=C&&(!!(null==O?void 0:O.trim())||!!(null==I?void 0:I.trim()));return(0,g.jsxs)("span",{className:"inline-flex flex-wrap items-center gap-3 my-4 not-prose",children:[(0,g.jsx)(d.A,{usdzUrl:x,glbUrl:A,buttonText:y,qrDescription:E,notSupportedTitle:S,notSupportedDesc:j,display3dModelIfArNotSupported:N,color:"black",variant:w,arId:r.databaseId}),_?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("button",{type:"button",className:s()("border-2 border-gray-900 rounded-full p-1 w-12 h-12","flex justify-center items-center shrink-0","hover:bg-gray-100"),"aria-label":O||"Info",onClick:()=>p(!0),children:(0,g.jsx)(u.A,{})}),a&&(0,g.jsx)(c.A,{onClose:p,title:O||"",children:(0,g.jsx)(f.UC,{children:I?(0,n.Ay)(I,l.qA):null})})]}):null]})}var y=r(89119),w=r(82909).Buffer,A=r(65364);let x=`#graphql 2 query ArItemsForWysiwyg($in: [ID!]!) { 3 arItems(where: { in: $in }, first: 100) { 4 nodes { 5 databaseId 6 title 7 arFields { 8 defaultButtonLabel 9 buttonStyle 10 glbFileUrl 11 usdzFileUrl 12 arNotSupportedTitle 13 qrDescription 14 arNotSupportedDescription 15 display3dModelIfArNotSupported 16 showInfoModal 17 infoTitle 18 infoContent 19 } 20 } 21 } 22 } 23`;function E(e){let t=`post:${e}`;return void 0!==w?w.from(t,"utf8").toString("base64"):btoa(t)}async function S(e,t){var r,n;let i=`${(0,y.getEndpointUrl)(e??"")}/graphql`,o=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json","x-vercel-serverless":A.env.VERCEL_SERVERLESS_SECRET??"true"},body:JSON.stringify({query:x,variables:{in:t}})});if(!o.ok)return[];let l=await o.json();return null!==(r=l.errors)&&void 0!==r&&r.length?[]:(null===(n=l.data)||void 0===n||null===(n=n.arItems)||void 0===n?void 0:n.nodes)??[]}async function j(e,t){if(0===t.length)return{};let r=t.map(E),n=await S(e,r);0===n.length&&(n=await S(e,t.map(String)));let i={};for(let e of n)(null==e?void 0:e.databaseId)!=null&&(i[e.databaseId]=e);return i}async function N(e,t){if(0===t.length)return{};try{let r=await fetch("/api/ar-items",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({locale:e??"",ids:t})});if(!r.ok)return{};return await r.json()}catch{return{}}return j(e,t)}function C(e){var t,r;let n,i=(function(e){let t=e;for(let e=0;e<4;e++)t=t.replace(/&/gi,"&");return(t=(t=(t=(t=(t=(t=(t=t.replace(/\\"/g,'"')).replace(/\\'/g,"'")).replace(/"/gi,'"')).replace(/'/gi,"'")).replace(/[\uff02\u201c\u201d\u201f]/g,'"')).replace(/[\u2018\u2019]/g,"'")).replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(Number.parseInt(t,10)))).replace(/&#x([0-9a-f]+);/gi,(e,t)=>String.fromCharCode(Number.parseInt(t,16)))})(e).replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000]/g," ").trim();i=function(e){let t=e.trim(),r=t.match(/^=\s*(?:"([^"]*)"|'([^']*)'|(\S+))\s*$/i);if(r){let e=(r[1]??r[2]??r[3]??"").trim();if(e)return`id=${e}`}let n=t.match(/^(?:"([^"]*)"|'([^']*)'|(\d+))\s*$/i);if(n){let e=(n[1]??n[2]??n[3]??"").trim();if(e)return`id=${e}`}return e}(i);let o={},l=/(\w+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\S+))/g;for(;null!==(n=l.exec(i));){let e=n[1].toLowerCase(),t=(n[2]??n[3]??n[4]??"").trim();o[e]=function(e){let t=e.trim();if(t.length>=2){let e=t[0],r=t[t.length-1];if('"'===e&&'"'===r||"'"===e&&"'"===r)return t.slice(1,-1).trim()}return t}(t)}if(!o.id&&null!==(t=o.ar)&&void 0!==t&&t.trim()&&(o.id=o.ar.trim()),!(null!==(r=o.id)&&void 0!==r&&r.trim())){let e=i.match(/\bid\s*=\s*[^\d]*?(\d+)/i);null!=e&&e[1]&&(o.id=e[1])}let a=function(e){var t;if(null==e)return;let r=String(e).trim();if(!r)return;let n=Number.parseInt(r,10);return Number.isNaN(n)?null===(t=r.match(/\d+/))||void 0===t?void 0:t[0]:String(n)}(o.id);return a?o.id=a:null!=o.id&&delete o.id,o}let O=/\[ar\b\s*([^\]]*)\]/gi;function I(e){return!!e&&/\[ar\b/i.test(e)}function _(e){let t,r=new Set,n=RegExp(O.source,"gi");for(;null!==(t=n.exec(e));){let e=C(t[1]);if(e.id){let t=Number.parseInt(e.id,10);Number.isNaN(t)||r.add(t)}}return Array.from(r)}function T(e){return e.replace(/�*91;/g,"[").replace(/�*93;/g,"]").replace(/[/gi,"[").replace(/]/gi,"]")}function R(e){let t=e;for(let e=0;e<4;e++)t=t.replace(/&/gi,"&");return t}function k(e){let{wysiwyg:t,className:r,id:a,skipArShortcodes:s=!1}=e,{locale:u}
23=(0,i.useRouter)(),{0:c,1:d}=(0,o.useState)(!1),{0:p,1:h}=(0,o.useState)({}),{0:m,1:b}=(0,o.useState)(!1),y=(0,o.useMemo)(()=>t?function(e){if(!e||_(e).length>0)return e;for(let t of[T(e),R(e),T(R(e))])if(_(t).length>0)return t;return e}(t):"",[t]),w=(0,o.useMemo)(()=>y?_(y):[],[y]),A=(0,o.useMemo)(()=>[...w].sort((e,t)=>e-t).join(","),[w]),x=!!t&&(I(t)||I(y)),E=!s&&x&&w.length>0;if((0,o.useEffect)(()=>{d(!0)},[]),(0,o.useEffect)(()=>{if(!E||0===w.length){h({}),b(!0);return}b(!1),h({});let e=!1;return N(u,w).then(t=>{e||(h(t),b(!0))}),()=>{e=!0}},[u,E,w,A]),!t)return null;if(s||!x)return(0,g.jsx)(f.UC,{id:a,className:r,children:(0,n.Ay)(t,l.qA)});if(!(c&&E&&w.length>0)){let e=y.replace(/\[ar\b\s*[^\]]*\]/gi,"").trim();return(0,g.jsx)(f.UC,{id:a,className:r,children:e?(0,n.Ay)(e,l.qA):null})}let S=function(e){let t;if(!e||!I(e))return[{kind:"html",value:e}];let r=[],n=0,i=RegExp(O.source,"gi");for(;null!==(t=i.exec(e));){t.index>n&&r.push({kind:"html",value:e.slice(n,t.index)});let o=C(t[1]),l=o.id?Number.parseInt(o.id,10):Number.NaN;r.push({kind:"ar",postId:l,attrs:o}),n=i.lastIndex}return n<e.length&&r.push({kind:"html",value:e.slice(n)}),r}(y),j=!m;return(0,g.jsx)(f.UC,{id:a,className:r,children:S.map((e,t)=>"html"===e.kind?(0,g.jsx)(o.Fragment,{children:e.value?(0,n.Ay)(e.value,l.qA):null},`html-${t}`):Number.isNaN(e.postId)?(0,g.jsx)(o.Fragment,{},`ar-invalid-${t}`):(0,g.jsx)(v,{attrs:e.attrs,arPost:p[e.postId],arDataPending:j},`ar-${e.postId}-${t}`))})}},53945:e=>{e.exports={getTraceMetadata:()=>({})}},78295:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(15039),i=r.n(n),o=r(89099),l=r(4484),a=r(82746),s=r(60944),u=r(40645),c=r(47995),d=r(10581),f=r(50408);function p(e){let{usdzUrl:t,glbUrl:r,buttonText:n,qrDescription:p,notSupportedTitle:h,notSupportedDesc:m,display3dModelIfArNotSupported:g,color:b="white",variant:v="outline",arId:y}=e,w=(0,o.useRouter)(),{0:A,1:x}=(0,l.useState)(""),{0:E,1:S}=(0,l.useState)(!1),j=(0,d.U)("(max-width: 640px)"),N=(0,l.useRef)(null),C=(0,l.useMemo)(()=>null!=y?String(y):function(e){let t=0;for(let r=0;r<e.length;r++)t=Math.imul(31,t)+e.charCodeAt(r)|0;return Math.abs(t).toString(36)}(r),[y,r]);(0,l.useEffect)(()=>{{let e=new URL(window.location.href);e.searchParams.set("ar",C),x(e.toString())}},[w.asPath,C]),(0,l.useEffect)(()=>{let e=new URLSearchParams(window.location.search);if(e.get("ar")!==C)return;e.delete("ar");let n=e.toString(),i=window.location.pathname+(n?`?${n}`:"");w.replace(i,void 0,{shallow:!0}),(0,c.un)()&&t?(0,c.HS)(t):!(0,c.un)()&&r&&(0,c.hS)(r)},[t,r,C,w]);let O=a.Ay,I="outline"===v;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{className:"",children:j?(0,f.jsx)(c.Ay,{label:n,src:r||"",alt:"3D model",iosSrc:t||"",buttonStyleType:v,className:i()({"bg-transparent hover:bg-white hover:text-black border":I,"border-black text-black":I&&"black"===b,"border-white text-white":I&&"white"===b}),notSupportedTitle:h,notSupportedDesc:m,display3dModelIfNotSupported:g,modelViewerRef:N}):(0,f.jsx)(s.$n,{onClick:()=>S(!E),styleType:v,className:i()({"bg-transparent border-black text-black hover:bg-black hover:text-white":I&&"black"===b,"bg-transparent border-white text-white hover:bg-white hover:text-black":I&&"white"===b}),children:n})}),E&&!j&&(0,f.jsxs)(u.A,{onClose:S,title:n,children:[p&&(0,f.jsx)("p",{children:p}),A&&(0,f.jsx)("div",{className:"flex justify-center",children:(0,f.jsx)(O,{value:A})})]})]})}},89119:(e,t,r)=>{"use strict";r.r(t),r.d(t,{client:()=>q,createHttpLink:()=>U,getEndpointUrl:()=>w,mutationClient:()=>V,previewClient:()=>H,uploadClient:()=>F});var n=r(66284),i=r(22868),o=r(16799),l=r(13628),a=r(31283),s=r(26537),u=r(54466),c=r(23951),d=r(47192),f=r(677),p=r(40161);r(65364);var h=r(65364);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEac
23h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let{i18n:b}=r(90130),v=(0,u.e)({sha256:f.sc,useGETForHashedQueries:!0}),y=(0,s.o)((e,t)=>{let{headers:r}=t;return{headers:g(g({},r),{},{"x-vercel-serverless":h.env.VERCEL_SERVERLESS_SECRET||"true"})}}),w=e=>{let t=(null==b?void 0:b.defaultLocale)||"en-001";return e&&""!==e&&p.aI[e]?p.aI[e]:p.aI[t]},A={};"production"!==h.env.VERCEL_ENV&&(A={agent:new(r(58184)).Agent({rejectUnauthorized:!1})});let x=Number(h.env.NEXT_GRAPHQL_MAX_CONCURRENT)||6;class E{active=0;waiters=[];constructor(e){this.max=e}async acquire(){return this.active<this.max?(this.active++,()=>this.release()):new Promise(e=>{this.waiters.push(()=>{this.active++,e(()=>this.release())})})}release(){this.active--;let e=this.waiters.shift();e&&e()}}let S=new E(x);class j extends Error{constructor(e){super(`Upstream GraphQL returned ${e}`),this.name="UpstreamError",this.statusCode=e}}let N=Number(h.env.NEXT_GRAPHQL_FETCH_TIMEOUT_MS)||15e3,C=Number(h.env.NEXT_GRAPHQL_MUTATION_FETCH_TIMEOUT_MS)||3e4,O=Number(h.env.NEXT_GRAPHQL_PREVIEW_FETCH_TIMEOUT_MS)||45e3;class I extends Error{constructor(e){super(`Upstream GraphQL request aborted after ${e}ms`),this.name="UpstreamTimeoutError"}}let _=e=>async(t,r)=>{let n=await S.acquire(),i=new AbortController,o=setTimeout(()=>i.abort(),e),l=null==r?void 0:r.signal;l&&(l.aborted?i.abort():l.addEventListener("abort",()=>i.abort(),{once:!0}));try{let e=new Headers((null==r?void 0:r.headers)||{});for(let[t,r]of Object.entries({}))e.set(t,r);let n=await fetch(t,g(g({},r),{},{headers:e,signal:i.signal}));if(n.status>=500)throw new j(n.status);return n}catch(t){if(i.signal.aborted||(null==t?void 0:t.name)==="AbortError")throw new I(e);throw t}finally{clearTimeout(o),n()}},T=_(N),R=_(C),k=_(O),P=new c.z({delay:{initial:500,max:4e3,jitter:!0},attempts:{max:2,retryIf:(e,t)=>{var r;if(!e||"UpstreamTimeoutError"===e.name||"AbortError"===e.name)return!1;let n=e.statusCode??(null===(r=e.response)||void 0===r?void 0:r.status),i="FetchError"===e.name||"TypeError"===e.name||/fetch failed|network|ECONN|ETIMEDOUT|socket hang up/i.test(e.message||""),o="number"==typeof n&&n>=500||i;return o&&console.warn(`[GraphQL] Retrying ${t.operationName||"(anonymous)"} after error: ${e.message||n}`),o}}}),U=e=>new i.P({uri:e=>`${w(e.getContext().locale)}/graphql`,fetch:e}),D=U(T),L=U(R),M=U(k),$=(0,d.A)({uri:e=>`${w(e.getContext().locale)}/graphql`,fetchOptions:A}),q=new o.R({link:l.C.from([P,v,y,D]),cache:new a.D({dataIdFromObject:()=>!1}),defaultOptions:{query:{fetchPolicy:"no-cache"}}}),F=new o.R({link:y.concat($),cache:new a.D,defaultOptions:{query:{fetchPolicy:"no-cache"}}}),V=new o.R({link:y.concat(L),cache:new a.D,defaultOptions:{query:{fetchPolicy:"no-cache"}}}),H=new o.R({link:l.C.from([P,y,M]),cache:new a.D({dataIdFromObject:()=>!1}),defaultOptions:{query:{fetchPolicy:"no-cache"}}})},90130:(e,t,r)=>{var n=r(65364),i=r(83095);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}n.env.VERCEL_ENV,e.exports={i18n:l(l({},{locales:["en-001"],defaultLocale:"en-001"}),{},{localeDetection:!1}),lowerCaseLng:!0,localePath:r(79052).resolve("./public/locales")}}}]);
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.