PageSourceSearch

https://onceupon.photo/_next/static/chunks/pages/stories/[slug]-d2c22757aee300b8.js

js onceupon.photo collected 2026-09-25 02:53:33 UTC 9,816 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="400f36e0-ada0-4f2e-bf48-3b1d1a468208",e._sentryDebugIdIdentifier="sentry-dbid-400f36e0-ada0-4f2e-bf48-3b1d1a468208")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4271,5330,5910,8848,9985],{405:(e,l,t)=>{"use strict";t.d(l,{A:()=>r});var n=t(55507),a=t(89099),i=t(14232);let r=()=>{let[e,l]=(0,i.useState)(null),[t,r]=(0,i.useState)(null),[o,s]=(0,i.useState)(null),d=(0,a.useRouter)(),u=d.locale;return(0,i.useEffect)(()=>{(async()=>{try{var e,t,a,i,o,c,g,m,f,v,h,p,x,b,j;let y=await n.cL.get("blog-article",{staleCacheSeconds:0,cacheSeconds:0,options:{includeRefs:!0,locale:u},userAttributes:{locale:u},apiKey:"590f4251081d402c96f40922159dcfc5",fields:"createdDate,startDate,data.author.value.data,data.slug,data.tag,data.categories,data.intro,data.title,data.readingTime",query:{"data.slug":d.query.slug}}).toPromise()||null;l(y.createdDate),r(y.startDate),s({author:null==y||null==(a=y.data)||null==(t=a.author)||null==(e=t.value)?void 0:e.data,slug:null!=(v=null==y||null==(i=y.data)?void 0:i.slug)?v:"",tag:null!=(h=null==y||null==(o=y.data)?void 0:o.tag)?h:[],categories:null!=(p=null==y||null==(c=y.data)?void 0:c.categories)?p:[],intro:null!=(x=null==y||null==(g=y.data)?void 0:g.intro)?x:"",title:null!=(b=null==y||null==(m=y.data)?void 0:m.title)?b:"",readingTime:null!=(j=null==y||null==(f=y.data)?void 0:f.readingTime)?j:void 0})}catch(e){l(null),r(null)}})()},["blog-article"]),{createdDate:e,startDate:t,blogData:o}}},11651:(e,l,t)=>{"use strict";t.d(l,{A:()=>m});var n=t(37876),a=t(31392),i=t(33197);t(14232);var r=t(54587),o=t.n(r),s=t(21513),d=t(33583),u=t(89099),c=t(94198),g=t(84715);t(5396);let m=e=>{let{article:l,startDate:t,createdDate:r,fixedImageHeight:m}=e,f=(0,u.useRouter)(),{t:v}=(0,g.i)(),h=new Date((null==l?void 0:l.startDate)?null==l?void 0:l.startDate:(null==l?void 0:l.createdDate)?null==l?void 0:l.createdDate:t||r).toLocaleDateString(f.locale,{year:"numeric",month:"long",day:"numeric"});return(0,n.jsx)(i.N,{href:"/stories/".concat(null==l?void 0:l.slug),children:(0,n.jsxs)(a.az,{position:"relative",style:{breakInside:"avoid",transition:"all 0.7s ease"},className:d.Iw,marginBottom:"l",children:[(0,n.jsx)(o(),{src:null==l?void 0:l.image,alt:"",width:0,height:0,style:{width:"100%",height:m?400:"auto",marginBottom:s.G6.spaces.m,objectFit:"cover"},sizes:"(max-width: ".concat(s.i3.breakpoints.tablet,") 100vw, 50vw"),loading:"lazy",fetchPriority:"low"}),(0,n.jsxs)(a.az,{display:"flex",flexDirection:"column",gap:"s",children:[(0,n.jsxs)(a.EY,{fontSize:"caption_xs",fontWeight:"medium",color:"almostBlack",margin:"none",children:[h," ",(null==l?void 0:l.readingTime)?" / ".concat(null==l?void 0:l.readingTime," ").concat(v("blog_hero_read_2")):""]}),(0,n.jsxs)(a.az,{display:"flex",flexDirection:"column",gap:"xs",children:[(0,n.jsx)(a.EY,{fontSize:"preamble_m",color:"almostBlack",fontWeight:"semibold",margin:"none",children:null==l?void 0:l.title}),(0,n.jsx)(a.EY,{fontSize:"body_s",color:"almostBlack",fontWeight:"normal",margin:"none",children:null==l?void 0:l.intro})]})]}),(0,n.jsx)(c.A,{categoriesNames:null==l?void 0:l.categories,className:"_1chuspb0"})]})},null==l?void 0:l.slug)}},33583:(e,l,t)=>{"use strict";t.d(l,{Iw:()=>i,Wi:()=>a,xD:()=>n}),t(60668),t(73130);var n="zikw451",a="zikw452",i="zikw450"},70230:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/stories/[slug]",function(){return t(71622)}])},71622:(e,l,t)=>{"use strict";t.r(l),t.d(l,{__N_SSG:()=>N,default:()=>E});var n=t(37876),a=t(55507),i=t(14232),r=t(77328),o=t.n(r),s=t(50902),d=t(65488),u=t(31392);t(60668),t(75939);var c=t(405),g=t(33197);let m=()=>{var e;let l=null==(e=(0,c.A)().blogData)?void 0:e.tag;return l&&(null==l?void 0:l.length)!==0?(0,n.jsx)(u.mc,{style:{width:"100%",margin:"0 auto"},display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",paddingRight:"s",paddingLeft:"s",children:(0,n.jsxs)(u.az,{className:"vndwne0",paddingY:"m",display:"flex",flexDirection:"row",gap:"xxs",marginBottom:"xl",children:[(0,n.jsx)(u.EY,{fontWeight:"semibold",fontSize:"body_s",margin:"none",children:"Tags:"}),(0,n.jsx)(u.az,{display:"flex",flexDirection:"row",gap:"xxs",flexWrap:"wrap",children:null==l?void 0:l.map((e,t)=>(0,n.jsx)(g.N,{href:"/stories/search-result?tag=".concat(e),children:(0,n.jsxs)(u.EY,{fontWeight:"normal",fontSize:"body_s",margin:"none",className:"vndwne1",children:[e,t<l.length-1?",":""]})},t))})]})}):null};var f=t(89099);t(68508);
1var v=t(96427),h=t(79350),p=t(14120),x=t(43640),b=t(25944);let j=(0,p.$)({uri:"https://cdn.builder.io/api/v1/graphql/".concat("590f4251081d402c96f40922159dcfc5")}),y=new x.R({link:j,cache:new b.D});function w(){let e=(0,v._)(['\n            {\n              blogArticle(query: {\n                id: "{$in: ','}"\n              }) {\n                data {\n                  title\n                  intro                  \n                  slug\n                  image\n                  imagePosition                 \n                  author\n                  tag\n                  categories\n                }\n                id\n                createdDate\n                startDate\n              }\n            }\n          ']);return w=function(){return e},e}var _=t(11651),D=t(84715);let z=e=>{let{relatedPosts:l}=e,{data:t}=(e=>{let[l,t]=(0,i.useState)(null),[n,a]=(0,i.useState)(!0),[r,o]=(0,i.useState)(null);return(0,i.useEffect)(()=>{let l=async()=>{try{var l;let n=await y.query({query:(0,h.J1)(w(),JSON.stringify(e.map(e=>e)).replace(/"/g,'\\"'))});t(null==n||null==(l=n.data)?void 0:l.blogArticle)}catch(e){o(e)}finally{a(!1)}};(null==e?void 0:e.length)>0&&l()},[e]),{data:l,loading:n,error:r}})(l),{t:a}=(0,D.i)();return t&&0!==t.length?(0,n.jsx)(u.az,{background:"lav3",paddingBottom:"xxl",paddingTop:"xxl",marginBottom:"none",children:(0,n.jsxs)(u.mc,{className:"_5ip1aw0",display:"flex",flexDirection:"column",children:[(0,n.jsx)(u.az,{children:(0,n.jsx)(u.DZ,{as:"h2",fontSize:"title_l",marginBottom:"l",fontWeight:"normal",textAlign:"center",children:a("blog_relatedpost_2")})}),(0,n.jsx)(u.az,{className:"_5ip1aw1",gap:"m",marginBottom:"xxl",children:null==t?void 0:t.map((e,l)=>(0,n.jsx)(_.A,{article:e.data,startDate:null==e?void 0:e.startDate,createdDate:null==e?void 0:e.createdDate,fixedImageHeight:!0},l))}),(0,n.jsx)(g.N,{href:"/stories",className:"_5ip1aw2",children:(0,n.jsx)(u.$n,{variant:"primary",marginBottom:"none",as:"span",children:a("blog_relatedpost_1")})})]})}):null};var S=t(37531);let k=new a.M$("590f4251081d402c96f40922159dcfc5",void 0,void 0,!0);var N=!0;let E=e=>{let{article:l,pageAlternates:t,navHeaders:r,topBanners:u,footerData:c,navigation:g}=e,v=(0,a.Et)(),h=(0,f.useRouter)(),{getCanonicalUrl:p}=(0,d.i)(),{setTitle:x}=(0,S.B)();return(0,i.useEffect)(()=>{v||l||h.push("/stories")},[v,l]),(0,i.useEffect)(()=>{var e;let t=null==l?void 0:l.data,n=null!=(e=null==t?void 0:t.metaTitle)?e:null==t?void 0:t.title;n&&x(n)},[l]),(0,n.jsx)(s.A,{pageAlternates:t,navHeaders:r,topBanners:u,footerData:c,navigation:g,children:(0,n.jsx)(a.Zk,{builder:k,content:l,options:{includeRefs:!0},model:"blog-article",children:(e,l,r)=>{var s,d,u,c,g,f,v;let x=null==r?void 0:r.id,b=null==r||null==(d=r.data)||null==(s=d.relatedposts)?void 0:s.map(e=>{var l;return null==e||null==(l=e.post)?void 0:l.id}),j=p(h.asPath,h.locale,h.defaultLocale);return(0,n.jsxs)(i.Fragment,{children:[(0,n.jsxs)(o(),{children:[(0,n.jsx)("title",{children:null!=(u=null==e?void 0:e.metaTitle)?u:null==e?void 0:e.title}),(0,n.jsx)("meta",{name:"description",content:null!=(c=null==e?void 0:e.metaDescription)?c:null==e?void 0:e.intro}),(0,n.jsx)("meta",{property:"og:description",content:null!=(g=null==e?void 0:e.metaDescription)?g:null==e?void 0:e.intro}),(0,n.jsx)("meta",{property:"og:title",content:null!=(f=null==e?void 0:e.metaTitle)?f:null==e?void 0:e.title}),(0,n.jsx)("meta",{name:"og:image",content:null!=(v=null==e?void 0:e.ogImage)?v:null==e?void 0:e.image}),(0,n.jsx)("link",{rel:"canonical",href:j}),null==t?void 0:t.map((e,l)=>(0,n.jsx)("link",{rel:"alternate",hrefLang:e.hreflang.toLowerCase(),href:e.href.toLowerCase()},"".concat(e.href).concat(l)))]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(a.RZ,{model:"blog-article",content:r,options:{includeRefs:!0},apiKey:"590f4251081d402c96f40922159dcfc5"},x),(0,n.jsx)(m,{})]}),(0,n.jsx)(z,{relatedPosts:b})]})}},null==l?void 0:l.id)})}},93846:(e,l,t)=>{"use strict";t.d(l,{L:()=>n});let n={inspiration:{id:1,name:"Inspiration",color:"ljung2",borderColor:"ljung3"},realLifeStories:{id:2,name:"Real life stories",color:"bl\xe5b\xe4r2",borderColor:"bl\xe5b\xe4r3"},ourFootprint:{id:3,name:"Our footprint",color:"mossa2",borderColor:"mossa3"},behindTheScenes:{id:4,name:"Behind the scenes",color:"\xe4lv2",borderColor:"\xe4lv3"},meetAOnceUponer:{id:5,name:"Meet a Once Uponer",color:"hjortron2",borderColor:"hjortron3"}}},94198:(e,l,t)=>{"use strict";t.d(l,{A:()=>
1o});var n=t(37876);t(60668),t(34389);var a=t(31392),i=t(93846),r=t(14015);let o=e=>{let{categoriesNames:l,isFeatured:t,...o}=e,s=Object.keys(i.L).filter(e=>{var t;return null==l?void 0:l.includes(null==(t=i.L[e])?void 0:t.name)}),d=(0,r.$)(o,{builderBlock:!0,builderState:!0});return(0,n.jsx)(a.az,{...d,display:"flex",gap:"xxxs",className:t?"":"_1taligj0",children:null==s?void 0:s.map(e=>{var l;return(0,n.jsx)(a.$n,{variant:"decorative",size:"s",role:"presentation",tabIndex:-1,children:null==(l=i.L[e])?void 0:l.name},e)})})}}},e=>{e.O(0,[4085,7376,7214,2197,5818,77,2991,4088,636,6593,8792],()=>e(e.s=70230)),_N_E=e.O()}]);
2//# sourceMappingURL=[slug]-d2c22757aee300b8.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.