1import{u as j,j as e,H as w,r as c}from"../index.js";import"./_sentry-release-injection-file-R7Zre5ID.js";import{L as I}from"./SiteLogo-CfepEXqF.js";import{c as f}from"./InertiaLink-Cnua6G15.js";try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="d289f915-ff99-4b60-b023-4201000d0587",t._sentryDebugIdIdentifier="sentry-dbid-d289f915-ff99-4b60-b023-4201000d0587")}catch{}const _=({title:t,children:i})=>{const s=j().props;return e.jsxs(w,{children:[e.jsx("title",{children:t?`${t} | ${s.title}`:s.title}),e.jsx("meta",{"head-key":"og:title",property:"og:title",content:t?`${t} | ${s.title}`:s.title}),s.metadata.map(o=>{const n=o.as||"meta";return e.jsx(n,{"head-key":o.name,...o.props},o.name)}),s.schema&&e.jsx("script",{"head-key":"schema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(s.schema)}}),i]})};function M(t){return e.jsx("div",{className:f("overflow-hidden bg-white p-5",t.className),style:t.style,children:t.children})}const $=c.memo(({className:t,style:i,width:s,height:o})=>{const n=t!==void 0||i!==void 0||s!==void 0||o!==void 0;return e.jsx("div",{className:f("flex aspect-[auto_981_/_1500] max-h-full max-w-full items-center justify-center p-4",n?t:"w-[235px] lg:w-[300px]"),style:{width:s,height:o,...i},children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 723.05 436.95",className:"max-h-full w-36 max-w-full fill-brand-sand",children:e.jsxs("g",{children:[e.jsx("path",{d:"M656.45,0c-57.48,3.04-111.71,11.05-161.36,23.86-47.95,12.36-90.03,29.06-122.19,48.44v356.76c69.74-38.29,171.19-63.01,283.56-68.83V0Z"}),e.jsx("path",{d:"M66.61,0v360.22c112.36,5.83,213.82,30.54,283.56,68.83V72.3c-32.16-19.38-74.24-36.08-122.19-48.44C178.32,11.05,124.08,3.04,66.61,0Z"}),e.jsx("path",{d:"M54.78,382.42c-6.09-.25-10.9-5.26-10.9-11.35V47.27c-14.47,1.99-29.1,4.21-43.88,6.66v383.02c110.25-18.28,213.01-24.33,290.69-10.21-19.36-7.46-40.41-14.16-62.72-19.91-53.05-13.68-111.32-21.89-173.19-24.41Z"}),e.jsx("path",{d:"M679.17,47.27v323.8c0,6.1-4.81,11.1-10.9,11.35-61.87,2.52-120.14,10.73-173.19,24.41-22.32,5.75-43.36,12.45-62.72,19.91,77.68-14.12,180.44-8.07,290.69,10.21V53.93c-14.78-2.45-29.41-4.67-43.88-6.66Z"})]})})})}),N=c.memo(function({product:i,prefetch:s,size:o,...n}){const r=i?I(i):void 0,[x,g]=c.useState(),u=c.useMemo(()=>{let a=[];if(!r)return a;switch(o){case"card":a.push(`${r.primaryImage(210,"webp")} 1x`),a.push(`${r.primaryImage(420,"webp")} 2x`);break;case"thumbnail":a.push(`${r.primaryImage(120,"webp")} 1x`),a.push(`${r.primaryImage(240,"webp")} 2x`);break;case"full":a.push(`${r.primaryImage(1e3,"webp")} 1x`),a.push(`${r.primaryImage(1e3*2,"webp")} 2x`);break;default:a.push(`${r.primaryImage(500,"webp")} 1x`),a.push(`${r.primaryImage(500*2,"webp")} 2x`);break}return a},[r,o]),h=c.useMemo(()=>{if(!r)return"Product Image";if(typeof r=="string")return r;const a=r.contributor()?.[0]?.name,d=r.data.name?.trim(),l=r.data.ean?.trim();return!d||d===l?`ISBN: ${l}`||"Product Image":`${d}${a?` by ${a}`:""}${l?` - ISBN: ${l}`:""}`},[r]),m=`${r?.primaryImage()}|${u.join(", ")}`,p=x===m,y=c.useCallback(a=>{a?.complete&&a.naturalWidth===0&&g(m)},[m]),b=c.useCallback(a=>{g(m),n.onError?.(a)},[m,n.onError]);return r?s?p?e.jsx(e.Fragment,{}):e.jsx("link",{rel:"preload",imageSrcSet:u.join(", "),as:"image"}):p?e.jsx($,{...n}):e.jsxs("picture",{children:[e.jsx("source",{srcSet:u.join(", "),type:"image/webp"}),e.jsx("img",{className:n.className,src:r.primaryImage(),alt:h,loading:n.loading??"lazy",fetchPriority:n.fetchPriority??"auto",...n,ref:y,onError:b})]}):e.jsx(e.Fragment,{})});export{_ as H,M as P,N as a}; 2//# sourceMappingURL=https://staging.thenile.com.au/build/assets/ProductImage-Ck7nP3Sd.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.