import{t as e}from"./rolldown-runtime.Cn0fvqDa.mjs";import{C as t,D as n,I as r,L as i,M as a,N as o,P as s,R as c,a as l,g as u,i as d,j as f,m as p,n as m,r as h,t as g,u as _,x as v}from"./react.2pQjgJca.mjs";import{$ as y,G as b,K as x,U as S,W as C,Y as w,Z as T,_ as E,at as D,bt as O,d as k,ht as A,m as j,p as M,q as N,s as P,tt as F,ut as I,v as L,xt as R}from"./framer.DOxZhXf-.mjs";async function z({routeId:e,pathVariables:t,localeId:r,collectionItemId:i}){let l=H[e].page.preload(),u=_(E,{children:_(k,{children:_(j,{children:_(L,{isWebsite:!0,environment:`site`,routeId:e,pathVariables:t,routes:H,collectionUtils:W,framerSiteId:G,notFoundPage:N(()=>import(`./gS8R5Sp6ZA3otP_aBi7ONlAzglpblCT8HafsTJsWPYg.CCCRNXj0.mjs`)),isReducedMotion:void 0,localeId:r,locales:U,preserveQueryParams:!0,siteCanonicalURL:`https://elmaglux.rs`,EditorBar:c===void 0?void 0:(()=>{if(q){console.log(`[Framer On-Page Editing] Unavailable because navigator is bot`);return}return N(async()=>{c.__framer_editorBarDependencies={__version:3,framer:{useCurrentRoute:D,useLocaleInfo:I,useRouter:A},react:{createElement:_,Fragment:o,memo:p,useCallback:f,useEffect:a,useRef:n,useState:s,useLayoutEffect:v},"react-dom":{createPortal:d}};let{createEditorBar:e}=await import(`https://framer.com/edit/init.mjs`);return{default:e()}})})(),adaptLayoutToTextDirection:!1,loadSnippetsModule:new M(()=>import(`./PVQkDXfGbgImgwhbBOsNVzSxwasvQOyl2lW3onItQSg.kjJyLYj3.mjs`)),initialCollectionItemId:i}),value:{autobahnNavigation:!0,disableCustomCode:!1,editorBarDisableFrameAncestorsSecurity:!1,motionDivToDiv:!1,onPageLocalizationSupport:!0,onPageMoveTool:!0,synchronousNavigationOnDesktop:!1,yieldOnTap:!1}})}),value:{routes:{}}});return await l,u}function B(){K&&c.__framer_events.push(arguments)}async function V(e,t){function n(e,t,n=!0){if(e.caught||c.__framer_hadFatalError)return;let r=t?.componentStack;if(n){if(console.warn(`Caught a recoverable error. The site is still functional, but might have some UI flickering or degraded page load performance. If you are the author of this website, update external components and check recently added custom code or code overrides to fix the following server/client mismatches: `,e,r),Math.random()>.01)return}else console.error(`Caught a fatal error. Please report the following to the Framer team via https://www.framer.com/contact/: `,e,r);B(n?`published_site_load_recoverable_error`:`published_site_load_error`,{message:String(e),componentStack:r,stack:r?void 0:e instanceof Error&&typeof e.stack==`string`?e.stack:null})}try{let r,i,a,o,s;if(e)s=JSON.parse(t.dataset.framerHydrateV2),r=s.routeId,i=s.localeId,a=s.pathVariables,o=s.breakpoints,r=T(H,r);else{T(H,void 0);let e=performance.getEntriesByType(`navigation`)[0]?.serverTiming?.find(e=>e.name===`route`)?.description;if(e){let t=new URLSearchParams(e);r=t.get(`id`),i=t.get(`locale`);for(let[e,n]of t.entries())e.startsWith(`var.`)&&(a??={},a[e.slice(4)]=n)}if(!r||!i){let e=S(H,decodeURIComponent(location.pathname),!0,U);r=e.routeId,i=e.localeId,a=e.pathVariables}}let l=z({routeId:r,localeId:i,pathVariables:a,collectionItemId:s?.collectionItemId});c!==void 0&&(async()=>{let e=H[r],t=U.find(({id:e})=>i?e===i:e===`default`).code,n=s?.collectionItemId??null;if(n===null&&e?.collectionId&&W){let r=await W[e.collectionId]?.(),[i]=Object.values(a);r&&typeof i==`string`&&(n=await r.getRecordIdBySlug(i,t||void 0)??null)}let o=Intl.DateTimeFormat().resolvedOptions(),l=o.timeZone,u=o.locale;await new Promise(e=>{document.prerendering?document.addEventListener(`prerenderingchange`,e,{once:!0}):e()}),c.__framer_events.push([`published_site_pageview`,{framerSiteId:G??null,version:2,routePath:e?.path||`/`,collectionItemId:n,framerLocale:t||null,webPageId:e?.abTestingVariantId??r,abTestId:e?.abTestId,referrer:document.referrer||null,url:c.location.href,hostname:c.location.hostname||null,pathname:c.location.pathname||null,hash:c.location.hash||null,search:c.location.search||null,timezone:l,locale:u},`eager`]),await R({priority:`background`,ensureContinueBeforeUnload:!0,continueAfter:`paint`}),document.dispatchEvent(new CustomEvent(`framer:pageview`,{detail:{framerLocale:t||null}}))})();let d=await l;e?(O(`framer-rewrite-breakpoints`,()=>{y(o),c.__framer_onRewriteBreakpoints?.(o)}),(q?e=>e():u)(()=>{w(),F(),g(t,d,{onRecoverableError:n})})):h(t,{onRecoverableError:n}).render(d)}catch(e){throw n(e,void 0,!1),e}}var H,U,W,G,K,q;e((()=>{if(r(),b(),t(),l(),m(),H={augiA20Il:{elements:{tuWH1wSmW:`hero`},page:N(()=>import(`./Z8RkATupVPx4QyOjnS3GRWZva5EaqOID7XDG0JTu1jE.7G7kUku0.mjs`)),path:`/`},cenTNMOyr:{elements:{},page:N(()=>import(`./trxdg4NbDsQbkJDlWwPOeZle4vI7gqbCOkUFpGbBms8.D6wL1bEY.mjs`)),path:`/about`},nMC2ceUgS:{elements:{},page:N(()=>import(`./KsCvdEJT-PLQYNsQuU8arKRAeOEc77IQ1dn-EP3oq6Y.D5S_R3Xg.mjs`)),path:`/stanovi`},DNmIZVS2E:{elements:{},page:N(()=>import(`./A1glyT3Gs5sVlFdsgYADV4OwA-pkBCL_UAaon3sxQOw.iInPAIp1.mjs`)),path:`/galerija`},wvHOEx01r:{elements:{},page:N(()=>import(`./N2SsqjG7eU6OaOcJlaOfsyQU2dBIzNUmq-kE57RVGts.B2rx9Yb7.mjs`)),path:`/contact`},iaKrF39z4:{elements:{},page:N(()=>import(`./ro_urjtD076VBxfpEyPCY-CSvfTJ-d9KVMWXwjgxdM4.C8-TAnXV.mjs`)),path:`/location`},No8Ecsogq:{elements:{},page:N(()=>import(`./gS8R5Sp6ZA3otP_aBi7ONlAzglpblCT8HafsTJsWPYg.CCCRNXj0.mjs`)),path:`/404`},XOHbk2FKi:{collectionId:`YoftM61y3`,elements:{},page:N(()=>import(`./Wj0fh0NH7PjrsR_o79t_Bup7phei3MIOPj3t25B4IBw.CAei78GL.mjs`)),path:`/stanovi/:iHzaeDVYE`},MN7oGY_op:{collectionId:`bJxTSBfne`,elements:{},page:N(()=>import(`./6VI3V46PgyT0uO7aWtncP6KmkrpRIqKx3Z9d5iGb5Ys.BgSwkQyV.mjs`)),path:`/galerija/:B9bcvlsbx`}},U=[{code:`sr-Latn-RS`,id:`default`,name:`Serbian`,slug:``,textDirection:`ltr`}],W={bJxTSBfne:async()=>(await import(`./fpnOBPsv5lCLiXGUTxPzd_VNfKk0-nL-alM2mZMSpNY.DBmMLs4R.mjs`))?.utils,YoftM61y3:async()=>(await import(`./fUU5fAjl6g2fvFaeY_OO9x0-FUvrDsGObsdyGqDT0Rk.Cx5V6jAu.mjs`))?.utils},G=`645bf250a525bd23533f250bed14236281221e258120e310eb72ee74285f5514`,K=typeof document<`u`,q=K&&/bot|-google|google-|yandex|ia_archiver|crawl|spider/iu.test(i.userAgent),K){c.__framer_importFromPackage=(e,t)=>()=>_(P,{error:`Package component not supported: "`+t+`" in "`+e+`"`}),c.__framer_events=c.__framer_events||[],C(),x();let e=document.getElementById(`main`);`framerHydrateV2`in e.dataset?V(!0,e):V(!1,e)}}))();export{z as getPageRoot}; //# sourceMappingURL=script_main.bpt_O8Pw.mjs.map