(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[891],{1048:()=>{},4340:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>m,dynamic:()=>d});var i=a(5155),s=a(2115),r=a(5695);a(2015),a(4393),a(8660),a(1048);var o=a(9848),n=a(7485),l=a(3395);let c=e=>{let{isOpen:t,onClose:a}=e,[n,l]=(0,s.useState)([]),c=(0,r.useRouter)(),d=[{id:"character_design",name:"Character Design",basePrice:150,description:"Original character design and concept art",category:"project_type"},{id:"character_render",name:"Character Render",basePrice:100,description:"Detailed character illustration",category:"project_type"},{id:"environment_art",name:"Environment Art",basePrice:200,description:"Background and environment illustrations",category:"project_type"},{id:"concept_art",name:"Concept Art",basePrice:120,description:"Conceptual artwork and ideation",category:"project_type"},{id:"portrait_art",name:"Portrait Art",basePrice:80,description:"Character portraits and headshots",category:"project_type"},{id:"anime_style",name:"Anime Style",basePrice:0,description:"Anime/manga inspired artwork",category:"style"},{id:"cartoon_style",name:"Cartoon Style",basePrice:0,description:"Cartoon and stylized art",category:"style"},{id:"realistic_style",name:"Semi-Realistic Style",basePrice:25,description:"More realistic proportions and rendering",category:"style"},{id:"chibi_style",name:"Chibi Style",basePrice:-20,description:"Cute, simplified chibi characters",category:"style"},{id:"sketch_complexity",name:"Sketch/Line Art",basePrice:0,description:"Basic line art and sketches",category:"complexity"},{id:"flat_colors",name:"Flat Colors",basePrice:30,description:"Simple flat color application",category:"complexity"},{id:"cell_shading",name:"Cell Shading",basePrice:50,description:"Anime-style cell shading",category:"complexity"},{id:"full_render",name:"Full Rendering",basePrice:100,description:"Complete shading and lighting",category:"complexity"},{id:"background_simple",name:"Simple Background",basePrice:20,description:"Basic background elements",category:"addons"},{id:"background_detailed",name:"Detailed Background",basePrice:60,description:"Complex background scene",category:"addons"},{id:"additional_characters",name:"Additional Characters",basePrice:75,description:"Extra characters in the same piece",category:"addons"},{id:"commercial_rights",name:"Commercial Rights",basePrice:150,description:"Rights for commercial use",category:"addons"},{id:"source_files",name:"Source Files",basePrice:25,description:"Original project files and layers",category:"addons"},{id:"rush_delivery",name:"Rush Delivery",basePrice:50,description:"Expedited completion (1-2 weeks)",category:"addons"}],m=(e,t)=>{l(a=>{if("project_type"!==t&&"style"!==t&&"complexity"!==t)return a.includes(e)?a.filter(t=>t!==e):[...a,e];{let i=a.filter(e=>{var a;return!(null==(a=d.find(t=>t.id===e))?void 0:a.category.startsWith(t))});return a.includes(e)?i:[...i,e]}})},h=()=>n.reduce((e,t)=>{let a=d.find(e=>e.id===t);return e+((null==a?void 0:a.basePrice)||0)},0),p=()=>n.find(e=>{var t;return(null==(t=d.find(t=>t.id===e))?void 0:t.category)==="project_type"});return t?(0,i.jsx)("div",{className:"modal-overlay",onClick:a,children:(0,i.jsxs)("div",{className:"art-commission-modal",onClick:e=>e.stopPropagation(),children:[(0,i.jsx)("button",{className:"modal-close-button",onClick:a,"aria-label":"Close art commission quote",children:(0,i.jsx)(o.WQq,{})}),(0,i.jsxs)("div",{className:"art-commission-content",children:[(0,i.jsx)("h2",{className:"art-commission-title",children:"Art Commission Quote"}),(0,i.jsx)("p",{className:"art-commission-description",children:"Select your desired artwork specifications to get an estimated price for your custom art commission."}),(0,i.jsxs)("div",{className:"art-commission-options-container",children:[(0,i.jsxs)("div",{className:"option-category",children:[(0,i.jsx)("h3",{children:"Artwork Type"}),(0,i.jsx)("div",{className:"option-grid",children:d.filter(e=>"project_type"===e.category).map(e=>(0,i.jsxs)("div",{className:"option-card ".concat(n.includes(e.id)?"selected":""),onClick:()=>m(e.id,e.category),children:[(0,i.jsx)("div",{className:"option-name",children:e.name}),(0,i.jsxs)("div",{className:"option-price",children:["$",e.basePrice]}),(0,i.jsx)("div",{className:"option-description",children:e.description})]},e.id))})]}),(0,i.jsxs)("div",{className:"option-category",children:[(0,i.jsx)("h3",{children:"Art Style"}),(0,i.jsx)("div",{className:"option-grid",children:d.filter(e=>"style"===e.category).map(e=>(0,i.jsxs)("div",{className:"option-card ".concat(n.includes(e.id)?"selected":""),onClick:()=>m(e.id,e.category),children:[(0,i.jsx)("div",{className:"option-name",children:e.name}),(0,i.jsx)("div",{className:"option-price",children:0===e.basePrice?"Base Style":e.basePrice>0?"+$".concat(e.basePrice):"$".concat(e.basePrice)}),(0,i.jsx)("div",{className:"option-description",children:e.description})]},e.id))})]}),(0,i.jsxs)("div",{className:"option-category",children:[(0,i.jsx)("h3",{children:"Complexity Level"}),(0,i.jsx)("div",{className:"option-grid",children:d.filter(e=>"complexity"===e.category).map(e=>(0,i.jsxs)("div",{className:"option-card ".concat(n.includes(e.id)?"selected":""),onClick:()=>m(e.id,e.category),children:[(0,i.jsx)("div",{className:"option-name",children:e.name}),(0,i.jsx)("div",{className:"option-price",children:0===e.basePrice?"Base Price":"+$".concat(e.basePrice)}),(0,i.jsx)("div",{className:"option-description",children:e.description})]},e.id))})]}),(0,i.jsxs)("div",{className:"option-category",children:[(0,i.jsx)("h3",{children:"Add-ons & Extras"}),(0,i.jsx)("div",{className:"option-grid",children:d.filter(e=>"addons"===e.category).map(e=>(0,i.jsxs)("div",{className:"option-card ".concat(n.includes(e.id)?"selected":""),onClick:()=>m(e.id,e.category),children:[(0,i.jsx)("div",{className:"option-name",children:e.name}),(0,i.jsxs)("div",{className:"option-price",children:["+$",e.basePrice]}),(0,i.jsx)("div",{className:"option-description",children:e.description})]},e.id))})]})]}),(0,i.jsxs)("div",{className:"quote-summary",children:[(0,i.jsx)("div",{className:"selected-options",children:0===n.length?(0,i.jsx)("p",{className:"no-selection",children:"Select options above to see your quote"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h4",{children:"Selected Options:"}),(0,i.jsx)("ul",{children:n.map(e=>{let t=d.find(t=>t.id===e);return t?(0,i.jsxs)("li",{children:[t.name," - $",t.basePrice>=0?t.basePrice:"".concat(t.basePrice)]},e):null})})]})}),(0,i.jsxs)("div",{className:"quote-total",children:[(0,i.jsxs)("div",{className:"total-price",children:["Estimated Total: ",(0,i.jsxs)("span",{className:"price-amount",children:["$",Math.max(h(),0)]})]}),p()&&(0,i.jsx)("div",{className:"quote-disclaimer",children:"* This is a base estimate. Final pricing may vary based on complexity, revisions, and specific requirements. Rush orders may incur additional fees."})]})]}),n.length>0&&p()&&(0,i.jsx)("div",{className:"contact-commission-section",children:(0,i.jsx)("button",{className:"contact-commission-button",onClick:()=>{let e=new URLSearchParams({type:"art",options:JSON.stringify(n.map(e=>{let t=d.find(t=>t.id===e);return t?"".concat(t.name," - $").concat((t.basePrice,t.basePrice)):""}).filter(Boolean)),total:Math.max(h(),0).toString()});c.push("/contact?".concat(e.toString())),a()},children:"Contact for Commission"})})]})]})}):null},d="force-dynamic",m=function(){return(0,i.jsx)(s.Suspense,{fallback:(0,i.jsx)(p,{}),children:(0,i.jsx)(h,{})})};function h(){var e;let t=(0,r.useSearchParams)(),a=(0,r.useRouter)(),[d,m]=(0,s.useState)(null),h=(0,s.useRef)(!1),p=(0,s.useMemo)(()=>t.get("character"),[t]);(0,s.useEffect)(()=>{p&&!h.current&&(m(p),h.current=!0)},[p]);let[u,g]=(0,s.useState)(null),[y,v]=(0,s.useState)(0),[b,f]=(0,s.useState)(!1),[x,j]=(0,s.useState)(null),[N,w]=(0,s.useState)(!1),C=(0,s.useMemo)(()=>[{id:"yuu",name:"Yuu",pronouns:"they/them",imagePath:"/content/characters/YuuRender.webp",description:"The embodiment of compassion, and a true hero. Yuu is unwaveringly kind, unyeidingly patient, and possesses the purest heart of us all.",storyTheme:"The Fishy Friend",storyColor:"#f3aecb"},{id:"cindred",name:"Cindred",pronouns:"she/her",imagePath:"/content/characters/CindredPortraitTransparent.webp",description:"Cindred's heart aches for a compassion she's never known. Beneath the fire and fury lies a lost soul and a kind heart.",storyTheme:"The Kindred Flame",storyColor:"#ff4500"},{id:"sammi",name:"Sammi",pronouns:"he/him",imagePath:"/content/characters/SearchingSammi-Large.webp",description:"Once a participant in the subjugation of his hometown, he now seeks to better the lives of all.",storyTheme:"The Weak-Willed Warrior",storyColor:"#52b3d1"},{id:"twilight",name:"Twilight",pronouns:"he/him",imagePath:"/content/characters/twilight.webp",description:"A scholar of ecology, and a retired protector of it. Twilight no longer seeks to defend the world, only to observe its' natural course.",storyTheme:"The Floral Fortress",storyColor:"#56ab2f"},{id:"espi-rii",name:"Espi & Rii",pronouns:"they/them",imagePath:"/content/characters/espi-rii.webp",description:"Two halves of a whole that will never again be, bound by the tragedy of their fate. They roam the lands, hoping to one day meet their end.",storyTheme:"The Divided Duo",storyColor:"#667eea"},{id:"roboyuu",name:"Robug",pronouns:"it/its",imagePath:"/content/characters/Robug.webp",description:"Born to fight, yet learnt to love. To defy nature is their nature itself.",storyTheme:"The Fine-Tuned Fighter",storyColor:"#835224"}],[]),k={yuu:{bio:["Yuu is the embodiment of compassion, and a true hero. Yuu is unwaveringly kind, unyeidingly driven, and possesses the purest heart of us all. Yuu is not content to merely dream of what could be, but contains an insatiable drive to change what is.","They’re someone who always sees the good in people’s hearts, no matter how buried it might be, always sees the beauty in everything, and is always the first to offer hugs and encouragement. They're stubborn, steadfast, principled to a fault, and will never hesitate to help with any problem in any way they can.","In their embryonic stage at the ocean floor, Yuu was infected with a parasite, a dark, swirling mass which amplifies their emotions. Yuu experiences pangs of strong emotion as a result of this force, short bursts which cause their emotions to heighten. When their grip on their emotions loosen, heightened negative emotions lead to an eruption of pain which causes them to dispair and rage.","Yuu’s parasite is fundamentally an allegory for being born with borderline personality disorder, and Yuu’s story is a lense into the experience and struggles of having BPD, particularly my own, and how one can learn of it, learn to live with it, and overcome it. The parasite is initially thought of as a flaw, an unfortunate yet immutable trait Yuu was born with which prevents them from ever being able to form connections. Yuu learns to first quit fearing that aspect of themself, be aware of their strong emotions, then to control and restrict them, then to finally reframe it into a positive force, from a desire to break to a drive to build."],funFact:"Yuu’s name arises from a misunderstanding born from a language barrier. They misunderstand repeated calls to a yet named ‘you’ as an expression of naming."},cindred:{bio:["Cindred's heart revels in cruelty and yet aches with grief. She's a troubled soul, her violent nature an way to keep the world at bay, but deep down she has just as much compassion to give as any other.","Beneath the fire and fury, she and Yuu have more in common than she cares to admit. Both were deemed beastly for their frightening appearances and antisocial nature. However, while Yuu's naive and hopeful optimism eventually changed their image and gained them a family and community, she lashed out and rejected the world that rejected her first. She matched each cruel word said by doubling down on her isolationist, retaliatory nature. In her fury, her devastating flame breath has razed settlements and hurt countless, not out of malice, but from the thought that if she hurts them first, when they inevitably abandon her it won't hurt as much. The irony cut deep, wracking her with guilt and trapping her in a cycle she was too lost and confused to break.","Yuu made it their mission to redeem this dragon, relentless, unapologetic kindness brought her walls down, her fiery exterior settled, and her facade crumbled. What she had always wanted was to be accepted, and she could now finally learn how to be loved."],funFact:"Her light dims significantly when she becomes emotionally vulnerable, causing her magma arms to cool and crack, a source of embarrassment she desperately tries to hide."},sammi:{bio:["Still gotta write this !"],funFact:"Still gotta write this !"},twilight:{bio:["Armed with a double-sided wooden staff and the ability to shroud himself in starry void energy, Twilight can transform into a fearsome dragon silhouette that sends enemies running. He much prefers this to actual combat, since his true calling involves protecting people, not hurting them. Originally blessed by celestial gods to guard his forest home, he joined the adventuring party only when a world-threatening evil made isolation impossible. Between adventures, he can be found reading quietly, brewing perfect cups of tea, or dispensing wisdom to anyone who'll listen."],funFact:"Still gotta write this !"},"espi-rii":{bio:["Still gotta write this !"],funFact:"Still gotta write this !"},starpup:{bio:["Still gotta write this !"],funFact:"Still gotta write this !"},ramthoth:{bio:["Still gotta write this !"],funFact:"Still gotta write this !"},roboyuu:{bio:["Still gotta write this !"],funFact:"Still gotta write this !"}},P=d?C.find(e=>e.id===d):null,S=d&&d in k?k[d]:null,Y=e=>{m(e),a.push("/lore?character=".concat(e),{scroll:!1})},T=()=>{m(null),a.push("/lore",{scroll:!1})},_=e=>{g(e),v(0)},F=()=>{g(null),v(0)},A=e=>e.gallery?e.gallery.map(e=>e.imagePath):[],G=e=>[".mp4",".webm",".ogg",".mov",".avi",".mkv",".flv",".wmv"].some(t=>e.toLowerCase().endsWith(t)),R=e=>{if(!u)return;let t=A(u);"prev"===e&&y>0?v(y-1):"next"===e&&y(0,i.jsx)("div",{className:"character-story-card ".concat(t%2==0?"story-left":"story-right"),"data-character":e.id,onClick:t=>{t.preventDefault(),t.stopPropagation(),Y(e.id)},style:{"--story-color":e.storyColor,cursor:"pointer",pointerEvents:"auto",zIndex:10,position:"relative"},children:(0,i.jsxs)("div",{className:"story-content-wrapper",children:[(0,i.jsx)("div",{className:"story-character-visual",children:(0,i.jsx)("img",{src:e.imagePath,alt:e.name,className:"story-character-image"})}),(0,i.jsxs)("div",{className:"story-character-narrative",children:[(0,i.jsx)("div",{className:"story-theme-badge",children:(0,i.jsx)("span",{children:e.storyTheme})}),(0,i.jsx)("h3",{className:"story-character-name",children:e.name}),(0,i.jsx)("p",{className:"story-character-excerpt",children:e.description}),(0,i.jsxs)("div",{className:"story-read-more",children:[(0,i.jsx)("span",{children:"More"}),(0,i.jsx)("div",{className:"story-arrow"})]})]})]})},e.id))})]}),(0,i.jsxs)("section",{className:"world-building-section",children:[(0,i.jsx)("div",{className:"chronicles-section-header",children:(0,i.jsx)("h2",{className:"story-section-title",children:"My Locations"})}),(0,i.jsx)("div",{className:"world-environments-grid",children:[{id:"docile-docks",title:"Driftweed Docks",imagePath:"/content/environments/docks/docks-1.webp",description:"The isolated and subjugated fishing village which begin Yuu's story",coverColor:"#1d6f8f",ribbonColor:"#ffd166",gallery:[{id:"docks-0",imagePath:"/content/environments/docks/docks-1.webp",caption:"Still gotta write this !"},{id:"docks-1",imagePath:"/content/environments/docks/docks-2.webp",caption:"Still gotta write this !"},{id:"docks-2",imagePath:"/content/environments/docks/docks-3.webp",caption:"Still gotta write this !"},{id:"docks-3",imagePath:"/content/environments/docks/docks-4.webp",caption:"Still gotta write this !"},{id:"docks-4",imagePath:"/content/environments/docks/docks-6.webp",caption:"Still gotta write this !"},{id:"docks-5",imagePath:"/content/closure-dockscene.mp4",caption:"Still gotta write this !"}]},{id:"card-paper-plains",title:"Card Paper Plains",imagePath:"/content/YuuGame/dev-screenshots/LoY-Slime.gif",description:"The vast flat expanse of greenery and adventure",coverColor:"#5c8a3c",ribbonColor:"#f2e8c5",gallery:[{id:"card-paper-plains-0",imagePath:"/content/YuuGame/dev-screenshots/LoY-Slime.gif",caption:"Still gotta write this !"},{id:"card-paper-plains-1",imagePath:"/content/games/crossy-yuu/crossyyuu-backgroundvideo.mp4",caption:"Still gotta write this !"},{id:"card-paper-plains-2",imagePath:"/content/YuuGame/dev-screenshots/devscreenshot-3.webp",caption:"Still gotta write this !"}]},{id:"fiery-fields",title:"Forlorn Fissures",imagePath:"/content/YuuGame/dev-screenshots/devscreenshot-2.webp",description:"The fractured fissures which Cindred once called home",coverColor:"#8f2f1e",ribbonColor:"#f7b32b",gallery:[{id:"fiery-fields-0",imagePath:"/content/YuuGame/dev-screenshots/devscreenshot-2.webp",caption:"Crafted Yuu beside a LED fire light"},{id:"fiery-fields-1",imagePath:"/content/YuuGame/ConceptArt/ForlornFissuresConcept.png",caption:"Concept art of the forlorn fissures for 'Yuu'"}]},{id:"gluegard",title:"Gluegard",imagePath:"/content/YuuGame/dev-screenshots/LoY-GradientClay.webp",description:"A city facing a crisis of glue",coverColor:"#9c5f28",ribbonColor:"#efe3c3",gallery:[{id:"gluegard-0",imagePath:"/content/YuuGame/dev-screenshots/LoY-GradientClay.webp",caption:"Yuu amongst the bustling festival markets"},{id:"gluegard-1",imagePath:"/content/YuuGame/dev-screenshots/dev-2.webp",caption:"Yuu hiding out in the sewers below the city"},{id:"gluegard-2",imagePath:"/content/YuuGame/ConceptArt/GluegardConcept.png",caption:"Concept art of Gluegard for 'Yuu'"}]},{id:"clockwork-jungle",title:"Clockwork Jungle",imagePath:"/content/YuuGame/ConceptArt/ClockworkJungleConcept.png",description:"Automaton bugs mechanised this lush forest",coverColor:"#245f4d",ribbonColor:"#cfa35a",gallery:[{id:"clockwork-jungle-0",imagePath:"/content/YuuGame/ConceptArt/ClockworkJungleConcept.png",caption:"Concept art of the Clockwork Jungle for 'Yuu'"}]}].map(e=>(0,i.jsxs)("div",{className:"environment-world-card",onClick:t=>{t.preventDefault(),t.stopPropagation(),_(e)},style:{"--cover-color":e.coverColor,"--ribbon-color":e.ribbonColor,cursor:"pointer",pointerEvents:"auto",position:"relative",zIndex:5},children:[(0,i.jsx)("div",{className:"environment-book-spine","aria-hidden":"true"}),(0,i.jsx)("div",{className:"environment-book-ribbon","aria-hidden":"true"}),(0,i.jsxs)("div",{className:"environment-cover-layout",children:[(0,i.jsx)("h3",{className:"environment-cover-title",children:e.title}),(0,i.jsxs)("div",{className:"environment-photo-frame",children:[(0,i.jsx)("div",{className:"environment-photo-window",children:(0,i.jsx)("img",{src:e.imagePath,alt:e.title,className:"environment-world-image",draggable:!1})}),(0,i.jsx)("div",{className:"environment-photo-corner environment-photo-corner--tl","aria-hidden":"true"}),(0,i.jsx)("div",{className:"environment-photo-corner environment-photo-corner--tr","aria-hidden":"true"}),(0,i.jsx)("div",{className:"environment-photo-corner environment-photo-corner--bl","aria-hidden":"true"}),(0,i.jsx)("div",{className:"environment-photo-corner environment-photo-corner--br","aria-hidden":"true"})]}),(0,i.jsx)("p",{className:"environment-cover-blurb",children:e.description}),(0,i.jsxs)("div",{className:"environment-read-more",children:[(0,i.jsx)("span",{children:"More"}),(0,i.jsx)("div",{className:"environment-arrow"})]})]})]},e.id))})]}),(0,i.jsx)("section",{className:"commission-story-section",children:(0,i.jsx)("div",{className:"commission-story-container",children:(0,i.jsxs)("div",{className:"commission-story-content",children:[(0,i.jsx)("h2",{className:"commission-story-title",children:"Wanna Commision Me ?"}),(0,i.jsx)("button",{className:"commission-story-button",onClick:()=>w(!0),children:"Get A Quote"})]})})}),d&&(0,i.jsx)("div",{className:"modal-overlay story-modal-overlay",onClick:T,style:{"--story-color":(null==P?void 0:P.storyColor)||"#4facfe"},children:(0,i.jsxs)("div",{className:"character-story-modal","data-character":d,onClick:e=>e.stopPropagation(),children:[(0,i.jsx)("button",{className:"story-modal-close",onClick:T,"aria-label":"Close character story",children:(0,i.jsx)(o.WQq,{})}),(0,i.jsxs)("div",{className:"story-modal-content",children:[(0,i.jsxs)("div",{className:"story-modal-header",children:[(0,i.jsx)("div",{className:"story-modal-character-frame",children:(0,i.jsx)("img",{src:(null==P?void 0:P.imagePath)||"",alt:(null==P?void 0:P.name)||"Character",className:"story-modal-character-image"})}),(0,i.jsxs)("div",{className:"story-modal-title-section",children:[(0,i.jsx)("div",{className:"story-theme-badge",children:(null==P?void 0:P.storyTheme)||"Character Story"}),(0,i.jsxs)("h2",{className:"story-modal-character-name",children:[(null==P?void 0:P.name)||"Character"," ",(0,i.jsx)("span",{className:"story-modal-character-pronouns",children:null==P?void 0:P.pronouns})]})]})]}),(0,i.jsx)("div",{className:"story-modal-body",children:(0,i.jsxs)("div",{className:"story-modal-narrative",children:[(0,i.jsxs)("div",{className:"story-modal-bio",children:[(0,i.jsx)("h3",{children:"she/her"===(e=null==P?void 0:P.pronouns)?"about her":"he/him"===e?"about him":"it/its"===e?"about it":"about them"}),Array.isArray(null==S?void 0:S.bio)?S.bio.map((e,t)=>(0,i.jsx)("p",{children:e},t)):(0,i.jsx)("p",{children:null==S?void 0:S.bio})]}),(0,i.jsxs)("div",{className:"story-modal-fun-fact",children:[(0,i.jsx)("h3",{children:"Fun Fact"}),(0,i.jsx)("p",{children:null==S?void 0:S.funFact})]})]})})]})]})}),u&&(0,i.jsx)("div",{className:"modal-overlay story-modal-overlay environment-modal-overlay",onClick:F,children:(0,i.jsxs)("div",{className:"environment-story-modal",onClick:e=>e.stopPropagation(),children:[(0,i.jsx)("button",{className:"story-modal-close",onClick:F,children:(0,i.jsx)(o.WQq,{})}),(0,i.jsxs)("div",{className:"environment-story-content",children:[(0,i.jsxs)("div",{className:"environment-story-image-section",children:[(()=>{let e=A(u)[y];return G(e)?(0,i.jsx)("video",{src:e,className:"environment-story-image",controls:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",style:{backgroundColor:"#000"},title:u.title,onError:()=>{console.warn("Video failed to load:",e)},children:"Your browser does not support the video tag."}):(0,i.jsx)("img",{src:e,alt:u.title,className:"environment-story-image"})})(),A(u).length>1&&(0,i.jsxs)("div",{className:"environment-image-navigation",children:[(0,i.jsx)("button",{className:"environment-nav-button",onClick:()=>R("prev"),disabled:0===y,"aria-label":"Previous image",children:(0,i.jsx)(n.byh,{})}),(0,i.jsx)("button",{className:"environment-nav-button",onClick:()=>R("next"),disabled:y===A(u).length-1,"aria-label":"Next image",children:(0,i.jsx)(n.ree,{})})]})]}),(0,i.jsxs)("div",{className:"environment-story-info",children:[(0,i.jsx)("h2",{className:"environment-story-title",children:u.title}),(0,i.jsx)("p",{className:"environment-story-description",children:u.description}),u.gallery&&u.gallery[y]&&(0,i.jsx)("div",{className:"environment-image-caption",children:(0,i.jsx)("em",{children:u.gallery[y].caption})})]})]})]})}),(0,i.jsx)(e=>{let{isOpen:t,onClose:a,image:s}=e;if(!t||!s)return null;let r=s&&l.m[s]?l.m[s]:{title:"Media Information",description:"No specific information is available for this item.",type:"Unknown",tools:"N/A",timestamp:"Unknown"};return(0,i.jsx)("div",{className:"modal-overlay story-modal-overlay",onClick:a,children:(0,i.jsxs)("div",{className:"character-story-modal image-modal-variant",onClick:e=>e.stopPropagation(),style:{"--story-color":(null==P?void 0:P.storyColor)||"#4facfe"},children:[(0,i.jsx)("div",{className:"story-modal-background",children:(0,i.jsx)("div",{className:"story-modal-pattern"})}),(0,i.jsx)("button",{className:"story-modal-close",onClick:a,"aria-label":"Close image",children:(0,i.jsx)(o.WQq,{})}),(0,i.jsxs)("div",{className:"story-modal-content image-modal-content-layout",children:[(0,i.jsx)("div",{className:"image-modal-left",children:(0,i.jsx)("img",{src:s,alt:r.title,className:"modal-image-large"})}),(0,i.jsxs)("div",{className:"image-modal-right",children:[(0,i.jsxs)("div",{className:"image-modal-header",children:[(0,i.jsx)("div",{className:"story-modal-theme-badge image-type-badge",children:r.type||"Artwork"}),(0,i.jsx)("h2",{className:"story-modal-character-name image-title",children:r.title})]}),(0,i.jsxs)("div",{className:"image-modal-details",children:[(0,i.jsxs)("div",{className:"image-detail-section",children:[(0,i.jsx)("h3",{children:"Description"}),(0,i.jsx)("p",{children:r.description})]}),r.tools&&(0,i.jsxs)("div",{className:"image-detail-section",children:[(0,i.jsx)("h3",{children:"Tools & Materials"}),(0,i.jsx)("p",{children:r.tools})]}),r.timestamp&&(0,i.jsxs)("div",{className:"image-detail-section",children:[(0,i.jsx)("h3",{children:"Created"}),(0,i.jsx)("p",{children:r.timestamp})]})]})]})]})]})})},{isOpen:b,onClose:()=>{f(!1),j(null)},image:x}),(0,i.jsx)(c,{isOpen:N,onClose:()=>w(!1)})]})}function p(){return(0,i.jsx)("div",{className:"story-layout-container",children:(0,i.jsxs)("div",{className:"story-header",children:[(0,i.jsxs)("div",{className:"story-background",children:[(0,i.jsx)("div",{className:"story-pages"}),(0,i.jsx)("div",{className:"story-binding"})]}),(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"50vh"},children:(0,i.jsx)("div",{className:"loading-spinner"})})]})})}},5087:(e,t,a)=>{Promise.resolve().then(a.bind(a,4340))},8660:()=>{}},e=>{var t=t=>e(e.s=t);e.O(0,[9270,4786,6317,8640,5263,2274,8441,1684,7358],()=>t(5087)),_N_E=e.O()}]);