PageSourceSearch

https://www.syn.is/_next/static/chunks/76970-cf447c8938dcdd73.js

js syn.is collected 2026-09-24 09:40:35 UTC 86,498 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[76970],{4437:(e,l,i)=>{"use strict";i.d(l,{A:()=>y});var t=i(33736);i(91844);var s=i(14717),a=i(22379),n=i(39995),d=i(44316),r=i(18705),c=i(3638),o=i(15930),u=i(29895),x=i.n(u),m=i(10524),h=i(69323),v=i(86780),p=i.n(v),j=i(13664);let f=e=>{let{color:l=j.Tj.primary.red}=e;return(0,t.jsx)("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("ellipse",{id:"Ellipse 137",cx:"4",cy:"4",rx:"4",ry:"4",fill:l})})},g=e=>{let{children:l,classes:i}=e;return(0,t.jsxs)("li",{className:"".concat(i," flex w-full items-center text-black-100"),children:[(0,t.jsx)("div",{className:"mt-2 self-start px-8 py-8 text-black-100",children:(0,t.jsx)(f,{})}),l]})},b=p()(()=>Promise.all([i.e(1412),i.e(25753),i.e(29950)]).then(i.bind(i,50862)),{loadableGenerated:{webpack:()=>[50862]},ssr:!1}),y=e=>{let{data:l,textAlignment:i="right-text",isFilloutStandardEmbed:u=!1,paragraphVariant:v="medium"}=e,p="text-left col-span-10 text-black-50 md:break-words [word-break:break-word] [overflow-wrap:anywhere] ".concat((0,c.A)({"text-center":"Center Align"===i})),j=null==l?void 0:l.json,f=null==j?void 0:j.content.reduce((e,l,i)=>{if("embedded-entry-block"===l.nodeType){var t;(null==(t=j.content[i+1])?void 0:t.nodeType)==="embedded-entry-block"&&e.push(j.content[i+1].data.target.sys.id,l.data.target.sys.id)}return e},[]),y=e=>{let{children:l}=e;return(0,t.jsx)("span",{className:"font-bold",children:l})};return(0,t.jsx)("div",{className:"rich-text-container",children:(0,s.i)(l.json,{renderMark:{[a.MARKS.BOLD]:e=>(0,t.jsx)(y,{children:e})},renderNode:{[a.BLOCKS.HEADING_6]:(e,l)=>(0,t.jsx)(o.R2,{classes:"".concat(p),children:l}),[a.BLOCKS.HEADING_5]:(e,l)=>(0,t.jsx)(o.DZ,{classes:p,variant:"xs",children:l}),[a.BLOCKS.HEADING_4]:(e,l)=>(0,t.jsx)(o.DZ,{classes:p,variant:"small",children:l}),[a.BLOCKS.HEADING_3]:(e,l)=>(0,t.jsx)(o.DZ,{classes:p,variant:"medium",children:l}),[a.BLOCKS.HEADING_2]:(e,l)=>(0,t.jsx)(o.DZ,{classes:p,variant:"large",children:l}),[a.BLOCKS.HEADING_1]:(e,l)=>(0,t.jsx)(o.DZ,{classes:p,variant:"xl",children:l}),[a.BLOCKS.PARAGRAPH]:(e,l)=>u?(0,t.jsx)(n._t,{filloutId:"".concat(l),dynamicResize:!0}):(0,t.jsx)(o.fz,{variant:v,classes:p,children:l}),[a.BLOCKS.QUOTE]:(e,l)=>(0,t.jsx)("div",{className:p,children:l}),[a.INLINES.HYPERLINK]:(e,l)=>(0,t.jsx)(x(),{href:(0,r.u3)(e.data.uri),className:"".concat(p,' hover:decoration-red-100" text-red-100 hover:underline'),children:l}),[a.BLOCKS.HR]:(e,l)=>(0,t.jsx)("div",{children:l}),[a.BLOCKS.UL_LIST]:(e,l)=>(0,t.jsx)(m.A,{classes:"col-span-10 list-disc text-red-100",children:l}),[a.BLOCKS.LIST_ITEM]:(e,l)=>(0,t.jsx)(g,{children:l}),[a.BLOCKS.EMBEDDED_ENTRY]:e=>{let i=((e,l)=>{if(null==e?void 0:e.links.entries.block)return e.links.entries.block.find(e=>(null==e?void 0:e.sys.id)===l)})(l,e.data.target.sys.id);if((null==i?void 0:i.__typename)==="ImageWithFocalPoint"){var s,a;let l=f.includes(e.data.target.sys.id);return i.keepImageRatio?(0,t.jsx)("div",{className:(0,c.A)("col-span-10",{"md:col-span-5":l}),children:(0,t.jsx)("div",{className:"relative w-full overflow-hidden rounded-28",style:{aspectRatio:(null==(s=i.image)?void 0:s.width)&&(null==(a=i.image)?void 0:a.height)?"".concat(i.image.width," / ").concat(i.image.height):"16 / 9"},children:(0,t.jsx)(d.t,{image:i,sectionId:i.id,className:"object-contain object-center"})})},i.sys.id):(0,t.jsx)("div",{className:"relative col-span-10 h-[360px] lg:h-[496px] ".concat((0,c.A)({"md:col-span-5":l})),children:(0,t.jsx)(d.t,{image:i,sectionId:i.id,className:"rounded-28"})},i.sys.id)}return(null==i?void 0:i.__typename)==="Video"?(0,t.jsx)("div",{className:"relative col-span-10 h-[360px] lg:h-[496px]",children:(0,t.jsx)(h.A,{videoId:i.youtubeId,autoPlay:i.autoplay,muted:i.muted,loop:i.loop})},i.sys.id):(null==i?void 0:i.__typename)==="VideoJs"?(0,t.jsx)("div",{className:"relative col-span-10 h-full w-full",children:(0,t.jsx)(b,{options:{sources:[{src:i.mediaFileUrl,type:"application/x-mpegURL"}],...i}})},i.sys.id):null}}})})}},5925:(e,l,i)=>{"use strict";i.d(l,{A:()=>n});var t=i(33736),s=i(3638),a=i(15930);let n=e=>{let{label:l,type:i,colorVariant:n}=e;return(0,t.jsx)("div",{className:"h-fit w-fit px-8 py-4 text-center ".concat((0,s.A)({"rounded-full":"pill"===i,"rounded-4":"tag"===i})," ").concat(((e,l)=>{let i="red"===l,t="violet"===l,a="aubergine"===l,n="redBorder"===l;return"pill"===e?(0,s.A)({"bg-red-0":i,"bg-red-violet-25":t,"bg-aubergine-25":a,"bg-orange-25":"orange"===l,"body-md h-32 w-[50px] bg-[#D3E3E5] px-8 text-black-50":"lightBlue"===l,"body-md w-[50px] border-1 border-[#
1E1E2E3] bg-transparent px-8 text-[#505057]":"disabled"===l,"border-1 border-red-100 bg-transparent":n}):(0,s.A)({"border-1 border-red-100":i||n,"border-1 border-aubergine-100":a,"border-1 border-red-violet-100":t,"border-1 border-black-100":"black"===l})})(i,n)," "),children:(0,t.jsx)(a.fz,{variant:"small",classes:(0,s.A)({"text-red-100":"red"===n||"redBorder"===n,"text-red-violet-100":"violet"===n,"text-aubergine-100":"aubergine"===n,"text-orange-100":"orange"===n,"text-black-100":"black"===n}),children:l})})}},10524:(e,l,i)=>{"use strict";i.d(l,{A:()=>s});var t=i(33736);i(91844);let s=e=>{let{children:l,classes:i=""}=e;return(0,t.jsx)("ul",{className:"flex flex-col gap-2 ".concat(i),children:l})}},53898:(e,l,i)=>{"use strict";i.d(l,{Ay:()=>O,Rf:()=>P,Zq:()=>D});var t=i(33736),s=i(91844),a=i(10105),n=i(87386),d=i(15930),r=i(48571),c=i(3638),o=i(44316);let u=e=>{let{images:l}=e,i=l[0],s=l[1],a=l[2];return(0,t.jsxs)("div",{className:"relative flex flex-col gap-24 md:grid md:h-[450px] md:grid-cols-3 md:grid-rows-2",children:[i&&(0,t.jsx)("div",{className:(0,c.A)("relative h-[276px] md:col-span-2 md:row-span-2 md:h-full",{"md:col-span-3":!s&&!a}),children:(0,t.jsx)(o.t,{image:i,className:"rounded-28",sizes:{breakpoints:{md:"800px"}}})}),s&&(0,t.jsx)("div",{className:(0,c.A)("relative col-start-3",{"row-span-2 h-full":!a,"h-[215px]":a}),children:(0,t.jsx)(o.t,{image:s,className:"rounded-28",sizes:{breakpoints:{md:"400px"}}})}),a&&(0,t.jsx)("div",{className:"relative col-start-3 row-start-2 h-[215px]",children:(0,t.jsx)(o.t,{image:a,className:"rounded-28",sizes:{breakpoints:{md:"400px"}}})})]})};var x=i(48608),m=i(84647),h=i(26104),v=i(16766),p=i(63043);let j=e=>{var l,i,s,a,n,r;let{data:c}=e,o=(0,v.Xr)(p.iv),u=!(null==(l=c.addButton)?void 0:l.uri);return c.price||c.addButton||(null==(i=c.moreInfoLink)?void 0:i.uri)?(0,t.jsxs)("div",{className:"mt-32 flex flex-col items-center justify-between gap-32 rounded-28 bg-white-15 px-16 py-32 md:flex-row md:px-32 md:py-16",children:[(null==(s=c.moreInfoLink)?void 0:s.uri)&&(null==(a=c.moreInfoLink)?void 0:a.title)&&(0,t.jsx)(x.SI,{href:null==(n=c.moreInfoLink)?void 0:n.uri,label:null==(r=c.moreInfoLink)?void 0:r.title,bold:!0,size:"large"}),(0,t.jsxs)("div",{className:"flex w-full flex-col items-center gap-16 md:w-auto md:flex-row",children:[c.price&&(0,t.jsxs)("div",{className:"flex items-end",children:[(0,t.jsx)(m.A,{value:c.price,showPrefix:u,renderText:e=>(0,t.jsx)(d.DZ,{variant:"xs",classes:"!text-xl-fixed text-black-100",children:e})}),(0,t.jsx)(d.fz,{classes:"ml-8 text-black-100",children:"/m\xe1n"})]}),c.addButton&&(0,t.jsx)(h.A,{buttonData:c.addButton,autoWidth:!0,onClick:()=>{c.id&&o({id:c.id,change:1})}})]})]}):null},f=e=>{var l;let{data:i}=e,a=(0,v.Xr)(p.TM);return s.useEffect(()=>{let e={id:null==i?void 0:i.id,title:i.title,price:i.price,multiselect:!1};e&&a([e])},[a,i]),(0,t.jsxs)("div",{className:"mt-64",children:[(0,t.jsx)(d.fz,{classes:"mb-32 text-black-100",children:(0,n.M)(i.description,"")}),(null==(l=i.imagesCollection)?void 0:l.items)&&(0,t.jsx)(u,{images:i.imagesCollection.items}),(0,t.jsx)(j,{data:i})]})};var g=i(56418),b=i(75617),y=i(5925),w=i(56632),N=i.n(w),k=i(84461),A=i(14717),C=i(22379),S=i(95466);let E=e=>{var l,i,a;let{data:r}=e,{setActiveCard:c}=(0,k.u)(),[o,u]=(0,s.useState)(!1),{asPath:x,replace:m}=(0,S.useRouter)(),h=(0,s.useRef)(null),v=x.split("#");return(0,s.useEffect)(()=>{if(v.length>1){let e=decodeURIComponent(v[1]);r.id===e&&h.current&&(m(v[0],void 0,{shallow:!0}).catch(e=>{if(!e.cancelled)throw e}),h.current.scrollIntoView(),setTimeout(()=>{u(!0)},100),setTimeout(()=>{u(!1)},2e3))}},[r,v,m,c,u,h]),(0,t.jsxs)("div",{ref:h,className:"col-span-full flex min-h-[388px] flex-col justify-between rounded-40 border-1 bg-white-100 transition duration-500\n       ease-out sm:col-span-3 md:col-span-4\n       ".concat(o?"border-primary-red shadow-lg":"border-black-25"),children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"relative h-[160px]",children:(null==(l=r.image)?void 0:l.url)&&(0,t.jsx)(N(),{src:r.image.url,alt:"",fill:!0,sizes:"750px",className:"h-auto w-full rounded-t-40 object-cover"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-medium p-lg",children:[(0,t.jsx)(d.DZ,{variant:"medium",classes:"text-black-50",children:(0,n.M)(r.companyName,"")}),(0,t.jsx)(d.R2,{classes:"title-lg text-black-50",children:(0,n.M)(r.title,"")}),(null==(i=r.description)?void 0:i.json)&&(0,A.i)(r.description.json,{renderNode:{[C.BLOCKS.PARAGRAPH]:(e,l)=>(0,t.jsx)(d.fz,{variant:"small",classes:"body-md text-black-50 empty:h-16",children:l})}})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-medium p-lg",children:[r.address&&(0,t.jsx)("div",{className:"flex gap-x-16",children:(0,t.jsx)(d.fz,{variant:"small",classes:"my-auto text-black-50",children:r.address})}),r.time&&(0,t.jsx)("div",{className:"flex gap-x-16",children:(0,t.jsx)(d.fz,{variant:"small",classes:"my-auto select-none text-black-50",children:r.time})}),(0,t.jsx)("div",{className:"flex gap-8",children:r.days&&(a=r.days,(0,t.jsx)("span",{className:"flex select-none flex-wrap gap-8",children:["M\xe1n","\xderi","Mi\xf0","Fim","F\xf6s","Lau","Sun"].map(e=>(0,t.jsx)(y.A,{label:e,type:"pill",colorVariant:a.some(l=>l===e)?"lightBlue":"disabled"},e))}))}),(0,t.jsx)(b.A,{label:"Virkja tilbo\xf0",variant:"primary",autoWidth:!1,classes:"mt-16",labelClasses:"!font-medium",onClick:()=>c(r)})]})]})};var I=i(18705),L=i(22910),T=i(29895),_=i.n(T),F=i(4437),B=i(83234);let P=(e,l)=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"".concat(a.yE," mt-40 gap-y-16"),children:e.map(e=>(null==e?void 0:e.__typename)==="PackageCard"?(0,t.jsx)(g.A,{data:e,hasDisclaimer:!!l},e.id):(null==e?void 0:e.__typename)==="Card2F1"?(0,t.jsx)(E,{data:e},e.id):void 0)}),l&&(0,t.jsxs)("div",{className:"mt-24 rounded-28 bg-white-15  p-8 lg:p-16",children:[(0,t.jsx)(d.fz,{classes:"inline text-red-100",variant:"small",children:"*"}),(0,t.jsx)(d.fz,{variant:"small",classes:"inline text-black-100",children:l})]})]}),D=e=>{var l,i,s,a,d,r,c,o,u;if(null==e);else if((null==(l=e.content)?void 0:l.__typename)==="CardCollection")return(null==e||null==(r=e.content)||null==(d=r.cardCollection)?void 0:d.items)&&P(null==(c=e.content.cardCollection)?void 0:c.items,e.content.disclaimer);else if((null==(i=e.content)?void 0:i.__typename)==="LargeAddOn")return(0,t.jsx)(f,{data:e.content});else if((null==(s=e.content)?void 0:s.__typename)==="Table"){let l=null==(o=e.content.table)?void 0:o.json,i=null==(u=e.content.table)?void 0:u.links,s=e.content.headerColor;return B.t.info("tab content",e.content),(0,A.i)(l,{renderNode:{[C.BLOCKS.TABLE]:(e,l)=>{var i,s,a,n;if(!Array.isArray(l))return;let d=(null==(a=l[0])||null==(s=a.props)||null==(i=s.children)?void 0:i.length)||0,[r,...c]=l;return(0,t.jsx)("div",{className:"grid-span-full grid rounded-16 bg-white-100",children:(0,t.jsxs)("div",{style:{gridTemplateColumns:"repeat(".concat(d,", 1fr)")},className:"content-table-container grid justify-between overflow-y-scroll",children:[(0,t.jsx)("div",{className:"content-header-row contents",children:null==r||null==(n=r.props)?void 0:n.children}),c.map((e,l)=>{var i;return(0,t.jsx)("div",{className:"content-body-row contents",children:null==e||null==(i=e.props)?void 0:i.children},l)})]})})},[C.BLOCKS.TABLE_ROW]:(e,l)=>{if(Array.isArray(l))return(0,t.jsx)(t.Fragment,{children:l})},[C.BLOCKS.TABLE_HEADER_CELL]:(e,l)=>(0,t.jsx)("div",{className:"content-header-cell-container flex bg-".concat(s," px-24 py-24 text-md font-bold"),style:{color:"red-100"===s?"white":""},children:l}),[C.BLOCKS.TABLE_CELL]:(e,l)=>(0,t.jsx)("div",{className:"flex px-24 py-24 text-md",children:l}),[C.INLINES.HYPERLINK]:(e,l)=>(0,t.jsx)(_(),{href:(0,I.u3)(e.data.uri),className:"text-md text-red-100 hover:underline hover:decoration-red-100",target:"_blank",rel:"noreferrer",children:l}),[C.BLOCKS.PARAGRAPH]:(e,l)=>(0,t.jsx)("div",{style:{marginTop:"10px",marginBottom:"10px"},children:l}),[C.INLINES.ASSET_HYPERLINK]:e=>{var l;let s=null==(l=e.data.target.sys)?void 0:l.id,a=null==i?void 0:i.assets.hyperlink,d="";
1return a&&a.forEach(e=>{(null==e?void 0:e.sys.id)===s&&(d=(0,n.M)(null==e?void 0:e.url,""))}),(0,t.jsx)("a",{href:d,download:!0,children:(0,t.jsx)(L.sT,{})})}}})}else if((null==(a=e.content)?void 0:a.__typename)==="ContentTypeRichText"&&e.content.richText)return(0,t.jsx)(F.A,{data:e.content.richText||{},isFilloutStandardEmbed:e.content.isFilloutStandardEmbed||!1,textAlignment:e.content.textAlignment})},O=e=>{var l;let{data:i}=e,[a,d]=s.useState(0),o=i.showAllTitle,u=null==(l=i.tabsCollection)?void 0:l.items,x=+!!o,m=e=>{d(e)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.tU,{classes:(0,c.A)({hidden:(null==u?void 0:u.length)&&u.length<=1}),children:[o&&(0,t.jsx)(r.Ay,{index:0,label:o,selected:0===a,onClick:m}),u&&(o||u.length>1)&&(null==u?void 0:u.map((e,l)=>(0,t.jsx)(r.Ay,{index:l+x,buttonlayoutId:"tab-section-".concat(i.title),label:(0,n.M)(null==e?void 0:e.title,""),selected:a===l+x,onClick:m},"".concat(null==e?void 0:e.title,"-").concat(l))))]}),o&&(0,t.jsx)(r.Kp,{value:a,index:0,children:(e=>{var l;let{data:i}=e,t=null==(l=i.tabsCollection)?void 0:l.items;if(null!=t)return P(t.reduce((e,l)=>{var i,t;if((null==l||null==(i=l.content)?void 0:i.__typename)==="CardCollection"){let i=null==(t=l.content.cardCollection)?void 0:t.items;e=e.concat(null!=i?i:[])}return e},[]))})({data:i})}),null==u?void 0:u.map((e,l)=>(0,t.jsx)(r.Kp,{value:a,index:l+x,children:D(e)},"".concat(null==e?void 0:e.title,"-").concat(l)))]})}},53932:(e,l,i)=>{"use strict";i.d(l,{A:()=>d});var t=i(33736),s=i(10105),a=i(43527),n=i(98324);let d=e=>{var l;let{data:i}=e,d=[];return(null==i||null==(l=i.newsEntriesCollection)?void 0:l.items)&&i.newsEntriesCollection.items.map(e=>{i.title&&e&&d.push((0,t.jsx)(n.A,{sectionTitle:i.title,item:e}))}),(0,t.jsx)("div",{className:s.yE,children:(0,t.jsx)(a.A,{cards:d})})}},58036:(e,l,i)=>{"use strict";i.d(l,{A:()=>s});var t=i(91844);let s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:768,[l,i]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let l=()=>{i(window.innerWidth<e)};return l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[e]),l}},58500:(e,l,i)=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FaqSectionById"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"faqSection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sys"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"FaqSectionFields"},directives:[]}]}}]}}],loc:{start:0,end:160}};t.loc.source={body:'#import "./PageSectionsBySystemId.graphql"\n\nquery FaqSectionById($id: String!) {\n  faqSection(id: $id) {\n    sys {\n      id\n    }\n    ...FaqSectionFields\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var s={};t.definitions=t.definitions.concat(i(23339).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var l=e.name.value;return!s[l]&&(s[l]=!0,!0)}));var a={};function n(e,l){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==l)return t}}t.definitions.forEach(function(e){if(e.name){var l=new Set;!function e(l,i){if("FragmentSpread"===l.kind)i.add(l.name.value);else if("VariableDefinition"===l.kind){var t=l.type;"NamedType"===t.kind&&i.add(t.name.value)}l.selectionSet&&l.selectionSet.selections.forEach(function(l){e(l,i)}),l.variableDefinitions&&l.variableDefinitions.forEach(function(l){e(l,i)}),l.definitions&&l.definitions.forEach(function(l){e(l,i)})}(e,l),a[e.name.value]=l}}),e.exports=t,e.exports.FaqSectionById=function(e,l){var i={kind:e.kind,definitions:[n(e,l)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var t=a[l]||new Set,s=new Set,d=new Set;for(t.forEach(function(e){d.add(e)});d.size>0;){var r=d;d=new Set,r.forEach(function(e){s.has(e)||(s.add(e),(a[e]||new Set).forEach(function(e){d.add(e)}))})}
1return s.forEach(function(l){var t=n(e,l);t&&i.definitions.push(t)}),i}(t,"FaqSectionById")},76970:(e,l,i)=>{"use strict";i.d(l,{XX:()=>lf,D8:()=>lv,rH:()=>lp,YN:()=>lj});var t=i(33736),s=i(30548),a=i(58500),n=i(15930),d=i(91844),r=i(14717),c=i(22379),o=i(18705),u=i(56632),x=i.n(u),m=i(87386);let h=e=>{let{data:l}=e,i=d.useMemo(()=>"QAndAQuestion"===l.__typename?"text-black-50":"text-neutral-10",[l.__typename]);return(0,t.jsx)(t.Fragment,{children:(0,r.i)(l.json,{renderNode:{[c.BLOCKS.HEADING_6]:(e,l)=>(0,t.jsx)(n.R2,{classes:i,children:l}),[c.BLOCKS.HEADING_5]:(e,l)=>(0,t.jsx)(n.DZ,{classes:i,variant:"xs",children:l}),[c.BLOCKS.HEADING_4]:(e,l)=>(0,t.jsx)(n.DZ,{classes:i,variant:"small",children:l}),[c.BLOCKS.HEADING_3]:(e,l)=>(0,t.jsx)(n.DZ,{classes:i,variant:"medium",children:l}),[c.BLOCKS.UL_LIST]:(e,l)=>(0,t.jsx)("ul",{className:"flex list-disc flex-col gap-2",children:l}),[c.BLOCKS.HEADING_2]:(e,l)=>(0,t.jsx)(n.DZ,{classes:i,variant:"large",children:l}),[c.BLOCKS.HEADING_1]:(e,l)=>(0,t.jsx)(n.DZ,{classes:i,variant:"xl",children:l}),[c.BLOCKS.PARAGRAPH]:(e,l)=>(0,t.jsx)(n.fz,{classes:"whitespace-break-spaces empty:h-24 ".concat(i),children:l}),[c.INLINES.HYPERLINK]:(e,l)=>(0,t.jsx)("a",{href:(0,o.u3)(e.data.uri),className:"body-lg text-red-75 hover:underline hover:decoration-red-100",children:l}),[c.BLOCKS.EMBEDDED_ENTRY]:e=>{let i="QAndAAnswer"===l.__typename&&((e,l)=>{if(e.links.entries.block)return e.links.entries.block.find(e=>(null==e?void 0:e.sys.id)===l)})(l,e.data.target.sys.id)||void 0;if((null==i?void 0:i.__typename)==="ImageWithFocalPoint"){var s;return(0,t.jsx)(x(),{src:(0,m.M)(null==(s=i.image)?void 0:s.url,""),alt:"",width:"0",height:"0",sizes:"800px",className:"h-auto w-full rounded-28"})}return null}}})})};var v=i(3778);let p=()=>(0,t.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("g",{id:"Icons - Arrows 32px",children:(0,t.jsx)("g",{id:"Group",children:(0,t.jsx)("path",{id:"Vector",d:"M21.5 12.5L15.5 18.5L9.5 12.5",stroke:"#4A4D4E",strokeLinecap:"round",strokeLinejoin:"round"})})})}),j=e=>{let{title:l,description:i}=e;return(0,t.jsxs)("details",{className:"group relative rounded-28 bg-white-100 after:absolute after:left-0 after:top-0 after:-z-10 after:h-full after:w-full after:rounded-28 after:opacity-0 after:shadow-md after:transition-opacity open:after:opacity-100 hover:after:opacity-100",children:[(0,t.jsxs)("summary",{className:"[&::-webkit-details-marker]:display-none title-lg flex cursor-pointer list-none items-center justify-between px-32 py-16",children:[l,(0,t.jsx)("div",{className:"transition-transform group-open:rotate-180",children:(0,t.jsx)(p,{})})]}),(0,t.jsx)("div",{className:"pt-5 body-lg px-32 pb-32 text-neutral-10",children:i})]})};var f=i(10105),g=i(70101),b=i(83234);let y=e=>{var l,i,s,d,r,c;let{id:o}=e,{error:u,data:x}=(0,g.IT)(a.FaqSectionById,{variables:{id:o}});return u?(b.t.error("Error in FaqSection",u),(0,t.jsx)("div",{className:f.yE})):(0,t.jsx)("div",{id:v.rA,className:f.m1,children:(0,t.jsxs)("div",{className:"col-span-full col-start-1 my-64 grid items-stretch space-y-32 rounded-28 lg:col-span-8 lg:col-start-3",children:[(null==x||null==(l=x.faqSection)?void 0:l.title)&&(0,t.jsx)(n.DZ,{variant:"xs",classes:"justify-self-center text-black-50",children:null==x||null==(i=x.faqSection)?void 0:i.title}),(0,t.jsx)("div",{className:"grid space-y-16",children:(null==x||null==(s=x.faqSection)?void 0:s.id)&&(null==x||null==(r=x.faqSection)||null==(d=r.qaCollection)?void 0:d.items)&&(null==x||null==(c=x.faqSection)?void 0:c.qaCollection.items.map(e=>{if(e&&e.question&&e.answer){var l;return((e,l)=>{let{question:i,answer:s,id:a}=e;return i&&s&&a&&l?(0,t.jsx)(j,{title:(0,t.jsx)(h,{data:i}),description:(0,t.jsx)(h,{data:s})},"qa-".concat(l,"-").concat(a)):null})(e,null==x||null==(l=x.faqSection)?void 0:l.id)}return null}))})]})})};var w=i(29895),N=i.n(w);let k=e=>{var l;let{data:i}=e;return(null==(l=i.shortcutLinkCollection)?void 0:l.items)===void 0?null:(0,t.jsx)("div",{className:"flex flex-wrap place-content-center gap-24",children:i.shortcutLinkCollection.items.map((e,l)=>{let i=(0,m.M)(null==e?void 0:e.title,""),s=(0,m.M)(null==e?void 0:e.subt
1itle,""),a=(0,m.M)(null==e?void 0:e.hideText,!1),n=(0,m.M)(null==e?void 0:e.uri,"/"),d=(0,m.M)(null==e?void 0:e.isFullImage,!1);return((e,l,i,s,a,n,d)=>(0,t.jsx)(N(),{href:a,className:"max-w-[280px] flex-1 rounded-28 bg-white-100 text-center transition-all hover:scale-105 hover:cursor-pointer",children:(0,t.jsx)("div",{tabIndex:0,className:"flex h-full items-center justify-center px-big pb-xbig pt-48",children:(0,t.jsxs)("div",{className:"grid min-w-[256px] gap-24",children:[n&&n.image&&n.image.url&&(d?(0,t.jsx)(x(),{alt:n.title||"",src:n.image.url,width:160,height:160}):(0,t.jsx)("div",{className:"relative m-auto flex h-100 w-100 items-center justify-center rounded-full bg-red-100",children:(0,t.jsx)("div",{className:"h-64 w-64",children:(0,t.jsx)(x(),{alt:n.title||"",src:n.image.url,width:64,height:64})})})),(0,t.jsxs)("div",{className:"".concat(s?"hidden":"block"),children:[(0,t.jsx)("p",{className:"headline-lg text-red-100",children:l}),(0,t.jsx)("p",{className:"title-lg text-red-100",children:i})]})]})})},e))(l,i,s,a,n,null==e?void 0:e.image,d)})})};var A=i(47102),C=i(53932),S=i(3638),E=i(75617),I=i(681),L=i(63043),T=i(16766);let _=e=>{var l;let{data:i}=e,s=(0,T.Xr)(L.JQ);if(null==(l=i.buttonsCollection)?void 0:l.items)return(0,t.jsx)("div",{className:"mt-24 grid gap-8 lg:mt-48 lg:flex",children:i.buttonsCollection.items.map((e,l)=>(null==e?void 0:e.uri)?(0,t.jsx)("a",{href:(0,m.M)(null==e?void 0:e.uri,"/"),children:(0,t.jsx)(E.A,{label:(0,m.M)(null==e?void 0:e.label,""),labelClasses:"!font-medium",variant:(0,E.D)(null==e?void 0:e.variant),classes:"w-full"})},l):(0,t.jsx)(E.A,{label:(0,m.M)(null==e?void 0:e.label,""),variant:(0,E.D)(null==e?void 0:e.variant),onClick:()=>{I.Ay.doBusinessWithUsButtonClicked({placement:I.W.PhotoAndTextCard,title:I.hE.KomduÍViðskipti}),s(!0)}},l))})};var F=i(26763);let B=e=>{var l,i;let{data:s}=e;return(null==(i=s.listItems)||null==(l=i.itemCollection)?void 0:l.items)&&(0,t.jsx)(F.B,{children:s.listItems.itemCollection.items.map((e,l)=>{var i;return(0,t.jsx)(F.A,{id:(0,m.M)(null==e?void 0:e.title,l.toString()),text:(0,m.M)(null==e?void 0:e.title,""),icon:(0,t.jsx)(x(),{src:(0,m.M)(null==e||null==(i=e.icon)?void 0:i.url,""),fill:!0,alt:(0,m.M)(null==e?void 0:e.title,"icon")})},l)})})};var P=i(44316),D=i(86780),O=i.n(D),M=i(69323);let z=O()(()=>Promise.all([i.e(1412),i.e(25753),i.e(13217)]).then(i.bind(i,50862)),{loadableGenerated:{webpack:()=>[50862]},ssr:!1}),R=e=>{var l;let{data:i}=e;return(null==i||null==(l=i.video)?void 0:l.__typename)==="VideoJs"&&(0,t.jsx)("div",{className:"grid w-full place-items-center overflow-hidden rounded-28",children:(0,t.jsx)(z,{options:{sources:[{src:i.video.mediaFileUrl,type:"application/x-mpegURL"}],...i.video}})})},q=e=>{var l;let{data:i}=e;return(null==i||null==(l=i.video)?void 0:l.__typename)==="Video"&&(0,t.jsx)("div",{className:"grid h-full w-full overflow-hidden rounded-28",children:(0,t.jsx)(M.A,{videoId:i.video.youtubeId,autoPlay:i.video.autoplay,muted:i.video.muted,loop:i.video.loop})})},H=e=>{var l,i,s,a;let{data:n}=e,d=(null==n||null==(l=n.video)?void 0:l.__typename)==="Video"||(null==n||null==(i=n.video)?void 0:i.__typename)==="VideoJs";if(!n.image&&!d)return;let r=e=>(0,t.jsx)("div",{className:"relative col-span-5 mb-32 grid h-[272px] transition-all sm:h-[384px] md:hidden",children:e.children});return(null==n||null==(s=n.video)?void 0:s.__typename)==="VideoJs"?(0,t.jsx)(e=>(0,t.jsx)("div",{className:"relative col-span-5 mb-32 transition-all md:hidden",children:e.children}),{children:(0,t.jsx)(R,{data:n})}):(null==n||null==(a=n.video)?void 0:a.__typename)==="Video"?(0,t.jsx)(r,{children:(0,t.jsx)(q,{data:n})}):(0,t.jsx)(r,{children:(null==n?void 0:n.image)&&(0,t.jsx)(P.t,{image:n.image,sectionId:n.image.id,className:"rounded-28 object-cover",sizes:{default:"".concat(v.LO.md,"px")}})})},K=e=>{var l,i,s,a;let{data:n}=e,d=(null==n||null==(l=n.video)?void 0:l.__typename)==="Video"||(null==n||null==(i=n.video)?void 0:i.__typename)==="VideoJs";if(!n.image&&!d)return;let r=e=>{let{data:l,children:i}=e;return(0,t.jsx)("div",{className:"relative col-span-6 transition-all max-[767px]:hidden md:grid md:aspect-square ".concat("right"!==l.imagePosition?"mr-48":"ml-48"," ").concat((0,S.A)({"col-start-7":"right"===l.imagePosition})),children:i})};return(null==n||null==(s=n.video)?void 0:s.__typename)==="VideoJs"?(0,t.jsx)(e=>{let{data:l,children:i}=e;return(0,t.jsx)("div",{className:"relative col-span-6 transition-all max-[767px]:hidden md:grid md:aspect-square ".concat("right"!==l.imagePosition?"mr-48":"ml-48"," ").concat((0,S.A)({"col-start-7":"right"===l.imagePosition})),children:i})},{data:n,children:(0,t.jsx)(R,{data:n})}):(null==n||null==(a=n.video)?void 0:a.__typename)==="Video"?(0,t.jsx)(r,{data:n,children:(0,t.jsx)(q,{data:n})}):(0,t.jsx)(r,{data:n,children:n.image&&!d&&(0,t.jsx)(P.t,{image:n.image,sectionId:n.image.id,className:"rounded-28",width:500,height:500})})},V=e=>{let{data:l}=e;return l.disclaimer&&(0,t.jsx)(n.fz,{variant:"small",classes:"mt-16 pl-32 pr-32 text-center md:col-span-8 md:col-start-2 md:mt-32 md:p-0",children:l.disclaimer})};var Z=i(80522),W=i(84647),U=i(4437),G=i(58036);let Q=e=>{var l,i,s,a,d;let{data:r}=e,c=(0,G.A)();return(0,t.jsxs)(t.Fragment,{children:[r.subheading&&(0,t.jsx)(n.R2,{small:!0,classes:"mb-8",children:r.subheading}),(null==(l=r.heading)?void 0:l.text)&&(0,t.jsx)("div",{className:"mb-16 break-words",children:(0,t.jsx)(Z.A,{heading:r.heading.text.json,color:r.heading.color,headingVariant:c?"mobile-xl":"xl",textColor:"black-50"})}),r.underHeading&&(0,t.jsx)(n.R2,{classes:"mb-16",bold:!0,children:r.underHeading}),r.richTextDescription&&(0,t.jsx)("div",{className:"whitespace-break-spaces text-black-50",children:(null==(i=r.richTextDescription)?void 0:i.richText)&&(0,t.jsx)("div",{className:"flex flex-col gap-16",children:(0,t.jsx)(U.A,{data:null==(s=r.richTextDescription)?void 0:s.richText,textAlignment:null==(a=r.richTextDescription)?void 0:a.textAlignment,isFilloutStandardEmbed:!!(null==(d=r.richTextDescription)?void 0:d.isFilloutStandardEmbed),paragraphVariant:"medium"})})}),r.price&&(0,t.jsxs)("div",{className:"mt-16 flex items-center gap-x-8",children:[(0,t.jsx)(W.A,{value:r.price,renderText:e=>(0,t.jsx)(n.fz,{variant:"large",classes:"!font-bold text-black-50",children:e})}),r.priceSuffix&&(0,t.jsx)(n.fz,{variant:"medium",classes:"text-black-50",children:r.priceSuffix})]})]})};var J=i(29622);let X=e=>{let{data:l}=e,i=!!(l.image||l.video);return(0,t.jsxs)("div",{className:"col-span-full w-full overflow-hidden md:col-span-12 md:col-start-2 md:grid md:grid-cols-12",children:[(0,t.jsx)(H,{data:l}),"left"===l.imagePosition&&(0,t.jsx)(K,{data:l}
1),(0,t.jsxs)("div",{className:(0,S.A)("w-full self-center md:pl-24 md:pr-24",{"col-span-6":i,"col-span-full md:col-span-12":!i,"md:col-start-7":i&&"left"===l.imagePosition}),children:[(0,t.jsxs)(J.A,{children:[(0,t.jsx)(Q,{data:l}),(0,t.jsx)(B,{data:l})]}),(0,t.jsx)(_,{data:l})]}),"right"===l.imagePosition&&(0,t.jsx)(K,{data:l}),(0,t.jsx)(V,{data:l})]},l.id)};var Y=i(61997);let $=e=>{let{progress:l=0,classes:i=""}=e;return(0,t.jsx)("div",{className:"h-8 w-full overflow-hidden rounded-16 bg-black-25",children:(0,t.jsx)("div",{className:"h-full rounded-full bg-red-100 transition-width ".concat(i),style:{maxWidth:"100%",width:"".concat(l,"%")}})})};var ee=i(15694),el=i(97127);i(16100);let ei=e=>{var l,i,s;let{data:a}=e,[r,c]=(0,d.useState)(-1),[o,u]=(0,d.useState)(),[x,m]=(0,d.useState)(!1),h=(null==(l=a.bannerCollection)?void 0:l.items.length)||0;return d.useEffect(()=>{c(0)},[]),(0,t.jsx)("div",{className:f.m1,children:(0,t.jsxs)("div",{className:"col-span-full",children:[(0,t.jsx)(ee.RC,{onSwiper:u,modules:[el.Ij],autoplay:!x&&{delay:7e3},onActiveIndexChange:e=>c(e.activeIndex),onAutoplayStart:()=>m(!1),onAutoplayStop:()=>m(!0),children:null==(i=a.bannerCollection)?void 0:i.items.map((e,l)=>(0,t.jsx)(ee.qr,{children:(0,t.jsx)(Y.A,{data:e,priority:0===l})},l))}),h>=2&&(0,t.jsx)("div",{className:"flex justify-center gap-x-24 px-32 pb-24 pt-24 md:pt-40 ",children:null==(s=a.bannerCollection)?void 0:s.items.map((e,l)=>{var i,s;return(0,t.jsxs)("div",{onClick:()=>{null==o||o.slideTo(l)},className:"w-full max-w-[56px] cursor-pointer select-none md:max-w-[336px]",children:[(0,t.jsx)($,{progress:100*(l===r),classes:(0,S.A)("duration-[7000ms] ease-linear",{"!transition-none":l!==r||x})}),(0,t.jsx)(n.fz,{classes:"mt-16 hidden text-black-100 transition-all md:flex ".concat((0,S.A)({"font-semibold":l===r})),children:(e=>{if(!e)return"";let l=[];return e.content.forEach(e=>e.content.forEach(e=>{l.push(e.value)})),l.join("")})(null==e||null==(s=e.heading)||null==(i=s.text)?void 0:i.json)})]},l)})})]})})};var et=i(3337),es=i(95410),ea=i(9391),en=i(36507);let ed=e=>{var l;let{data:i}=e,s=(0,T.Xr)(L.TM),a=(0,T.Xr)(L.iv),[r,c]=d.useState(!1),[o,u]=d.useState({x:0,y:0}),[x,h]=d.useState({x:0,y:0});d.useEffect(()=>{let e=()=>{let e=document.getElementById("cart-position");if(e){let l=e.getBoundingClientRect();h({x:l.left+l.width/2,y:l.top+l.height/2})}};e(),window.addEventListener("resize",e);let l=setInterval(e,1e3);return()=>{window.removeEventListener("resize",e),clearInterval(l)}},[]),d.useEffect(()=>{var e,l;let t=null==(l=i.addOnCardsCollection)||null==(e=l.items)?void 0:e.map(e=>({id:null==e?void 0:e.id,title:null==e?void 0:e.title,price:null==e?void 0:e.price,multiselect:!!(null==e?void 0:e.multiselect)}));t&&s(t)},[i.addOnCardsCollection,s,i]);let v=null==(l=i.addOnCardsCollection)?void 0:l.items;return(0,t.jsxs)("div",{className:f.yE,children:[(0,t.jsxs)("div",{className:"col-span-full md:-mx-16",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-between py-24 md:flex-row",children:[(0,t.jsxs)("div",{children:[i.tagline&&(0,t.jsx)(n.JU,{classes:"text-black-75",children:i.tagline}),(0,t.jsx)(n.DZ,{variant:"medium",classes:"text-black-10 mb-16",children:(0,m.M)(i.title,"")})]}),i.description&&(0,t.jsx)("div",{className:"flex flex-col items-start md:justify-end",children:(0,t.jsx)(n.R2,{bold:!0,classes:"text-black-10 mb-16 max-w-[462px]",children:i.description})})]}),v&&(0,t.jsx)(en.A,{cards:null==v?void 0:v.flatMap(e=>e?(0,t.jsx)(et.A,{card:e,onClick:()=>{e.id&&(e=>{if(r)return;let l=document.getElementById(e);if(l){let e=l.getBoundingClientRect();u({x:e.left+e.width/2,y:e.top+e.height/2});let i=document.getElementById("cart-position");if(i){let e=i.getBoundingClientRect();h({x:e.left+e.width/2,y:e.top+e.height/2})}}c(!0),setTimeout(()=>{a({id:e,change:1}),c(!1)},500);let i=new CustomEvent("addToCart",{detail:{productId:Date.now()}});document.dispatchEvent(i)})(e.id)}},null==e?void 0:e.id):[])})]}),(0,t.jsx)(es.N,{children:r&&(0,t.jsx)(ea.P.div,{className:"card-elevation-1 fixed z-50 flex h-32 w-32 rounded-full bg-red-100",style:{to
1p:0,left:0,marginLeft:"-12px",marginTop:"-12px"},initial:{x:o.x,y:o.y,scale:0},animate:{x:[o.x,o.x,x.x,x.x],y:[o.y,o.y,x.y,x.y],scale:[0,1.2,1,0]},transition:{duration:.8,ease:"easeInOut"}})})]})};var er=i(84825);let ec=e=>{var l,i,s,a,d,r,c;let{data:o}=e,[u]=(0,T.fp)(L.sP),[,x]=(0,T.fp)(L.oF);return(0,t.jsxs)("div",{className:"mb-32 grid gap-y-32 text-black-100 md:pt-64",children:[(null==(l=o.mediaVideo)?void 0:l.url)&&(null==(i=o.mainImage)?void 0:i.id)?(0,t.jsxs)("div",{className:"absolute inset-0 z-10 h-full w-full",children:[(0,t.jsx)("div",{className:"absolute inset-0 z-10"}),(0,t.jsx)(er.A,{urlLink:o.mediaVideo.url})]}):o.mainImage&&(null==(s=o.mainImage)?void 0:s.id)&&(0,t.jsxs)("div",{className:"absolute inset-0 z-10 h-full w-full",children:[(0,t.jsx)("div",{className:"absolute inset-0 z-10"}),(0,t.jsx)(P.t,{image:o.mainImage,sectionId:o.mainImage.id,priority:!0})]}),(0,t.jsxs)("div",{className:"z-20 col-span-full mx-24 flex flex-col gap-y-16 justify-self-center pt-160 md:px-56",children:[(0,t.jsx)(Z.A,{containerClasses:"text-center",heading:null==(d=o.heading)||null==(a=d.text)?void 0:a.json,color:null==(r=o.heading)?void 0:r.color,textColor:"white-75",headingVariant:"xl"}),o.subHeading&&(0,t.jsx)(n.R2,{classes:"text-center text-white-75",bold:!0,children:o.subHeading}),(null==o?void 0:o.description)&&(0,t.jsx)(n.R2,{classes:"text-center text-white-75",small:!0,children:o.description}),u>0&&(0,t.jsxs)("div",{className:"col-span-full grid grid-flow-col place-content-center items-baseline gap-x-8",children:[(0,t.jsx)(W.A,{value:u,renderText:e=>(0,t.jsx)(n.DZ,{classes:"display-sm text-white-75",variant:"small",children:e})}),(0,t.jsx)(n.fz,{classes:"mb-4 text-white-75",children:"/m\xe1n"})]})]}),o.pantaButton&&o.pantaButton.label&&(0,t.jsx)("div",{className:"z-20 col-span-full w-full justify-self-center md:w-[152px]",children:(0,t.jsx)(E.A,{label:null==(c=o.pantaButton)?void 0:c.label,variant:(0,E.D)(o.pantaButton.variant),autoWidth:!1,onClick:e=>{e.preventDefault(),document.getElementById(v.Nb)&&x(!0)}})})]})};var eo=i(53898);let eu=e=>{let{data:l}=e;return(0,t.jsxs)("div",{className:"w-full",children:[l.tagline&&(0,t.jsx)(n.JU,{classes:"text-black-75",children:l.tagline}),(0,t.jsx)(n.DZ,{variant:"xs",classes:"text-black-10 mb-16",children:(0,m.M)(l.title,"")}),l.description&&(0,t.jsx)(n.fz,{classes:"mb-32 max-w-[500px] text-black-100",children:l.description}),(0,t.jsx)(eo.Ay,{data:l})]})};var ex=i(22910),em=i(13664);let eh=e=>{var l,i;let{trait:s}=e;return(null==s?void 0:s.id)&&(0,t.jsxs)("div",{className:(0,S.A)(f.t4,"col-span-full flex md:col-span-6 md:p-16 lg:col-span-4"),children:[(null==s?void 0:s.image)&&(null==s||null==(l=s.image)?void 0:l.id)&&(0,t.jsx)("div",{className:"relative aspect-square h-[40px] w-[40px] rounded-28",children:(0,t.jsx)(P.t,{className:"",image:s.image,sectionId:s.id,sizes:{default:"80px"}})}),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(null==s?void 0:s.title)&&(0,t.jsx)(n.R2,{bold:!0,small:!0,classes:"text-black-10",children:null==s?void 0:s.title}),(null==s?void 0:s.description)&&(0,t.jsx)(n.fz,{classes:"text-primary-faded-text-100",children:null==s?void 0:s.description}),null==s||null==(i=s.checkPoints)?void 0:i.map(e=>e&&(0,t.jsxs)("div",{className:"grid grid-flow-col items-center justify-start gap-8",children:[(0,t.jsx)(ex.Jl,{color:em.Tj.primary.grey}),(0,t.jsx)(n.fz,{children:e})]},"".concat(s.id,"-").concat(e)))]})]},s.id)},ev=e=>{var l,i,s,a;let{data:d}=e;return(null==(i=d.listOfTraitsCollection)||null==(l=i.items)?void 0:l.length)===0?null:(0,t.jsx)("div",{className:"my-32 gap-y-64 text-black-50",children:(0,t.jsxs)("div",{className:(0,S.A)(f.t4,"col-span-full grid grid-cols-6 !gap-y-64 md:col-span-10 md:col-start-2 md:grid-cols-10"),children:[d.title&&(0,t.jsx)("div",{className:"col-span-full",children:(0,t.jsx)(n.DZ,{variant:"xs",classes:"text-center",children:d.title})}),(0,t.jsx)("div",{className:(0,S.A)(f.t4,"!md:gap-y-64 col-span-full grid grid-cols-6 !gap-y-24 md:grid-cols-12"),children:null==(a=d.listOfTraitsCollection)||null==(s=a.items)?void 0:s.map(e=>(0,t.jsx)(eh,{trait:e},null==e?void 0:e.id))})]})})}
1,ep=e=>{var l;let{data:i,onStartClick:s}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"col-span-6 col-start-2 self-center md:col-span-4 md:col-start-3",children:[(0,t.jsxs)(J.A,{direction:"right",children:[i.subheading&&(0,t.jsx)(n.R2,{classes:"mb-8 text-white-100",small:!0,children:i.subheading}),i.title&&(0,t.jsx)(n.DZ,{variant:"small",classes:"text-white-100",children:i.title}),i.description&&(0,t.jsx)(n.fz,{classes:"mt-16 text-white-100",children:i.description})]}),(0,t.jsx)(E.A,{label:"Byrja",variant:"tertiary",classes:"mt-56 w-full md:w-auto",onClick:()=>{var e,l,t;I.Ay.packageSuggestionStepViewed({step:1,stepTitle:(0,m.M)(null==(t=i.inputFormsCollection)||null==(l=t.items)||null==(e=l[0])?void 0:e.title,"Enginn titill fyrir skref")}),s()}})]}),(0,t.jsx)("div",{className:"relative col-span-full col-start-8 hidden bg-black-25 md:grid",children:i.image&&(0,t.jsx)(P.t,{image:i.image,sectionId:null==(l=i.image)?void 0:l.id,sizes:{breakpoints:{md:"50vw"}}})})]})},ej=e=>(0,t.jsx)("div",{className:"m-auto h-2 w-24 rotate-180 transition-colors ease-linear first:hidden last:hidden lg:h-24 lg:w-2 ".concat((0,S.$)({"bg-red-100":e,"bg-black-25":!e}))}),ef=e=>{let{step:l,currentStep:i}=e,s=l<=i,a=l===i;return(0,t.jsxs)(t.Fragment,{children:[ej(s),(0,t.jsx)("div",{className:"flex h-32 w-32 justify-center rounded-full transition-all ease-linear ".concat((0,S.$)({"border-2 border-red-100 bg-white-100":a,"bg-red-100":s,"border-white-100 bg-black-25":!s})),children:(0,t.jsx)("div",{className:"flex h-24 w-24 justify-center self-center rounded-full transition-colors ease-linear ".concat((0,S.$)({"bg-black-25":!s,"bg-red-100":s})),children:(0,t.jsx)(n.JU,{classes:"justify-center self-center text-white-100",children:l.toString()})})}),ej(s)]})};var eg=i(3733),eb=i(97310),ey=i(87768),ew=i(42627);let eN=(0,d.createContext)(void 0),ek=()=>{let e=(0,d.useContext)(eN);if(!e)throw Error("usePackageSuggestion must be used within a PackageSuggestionProvider");return e},eA=e=>{let{children:l}=e,[i,s]=(0,d.useReducer)(eS,eC);return(0,t.jsx)(eN.Provider,{value:{state:i,dispatch:s},children:l})},eC={watchList:{},inputForms:{}},eS=(e,l)=>{switch(l.type){case"UPDATE_WATCHLIST":let{id:i,checked:t}=l.payload;return{...e,watchList:{...e.watchList,[i]:t}};case"UPDATE_INPUT_FORMS":let{id:s,value:a}=l.payload;return{...e,inputForms:{...e.inputForms,[s]:a}};default:return e}};var eE=i(1244);let eI=e=>{let{data:l,buttonText:i,canContinue:s,onNextClick:a}=e,{state:n,dispatch:d}=ek(),r=n.inputForms,c=n.watchList,o=(0,eE.r8)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"grid grid-cols-1 gap-x-16 gap-y-8 sm:grid-cols-3 ",children:l.map(e=>{if(!(e.title&&e.id))return null;if("dropdown"===e.inputType){var l;let i=null==(l=e.values)?void 0:l.reduce((e,l)=>(l&&e.push({value:l,label:l}),e),[]),s=r[e.id]?{value:r[e.id],label:r[e.id]}:null;return(0,t.jsx)("div",{className:"col-span-full max-w-[264px] md:col-span-1",children:(0,t.jsx)(ey.A,{id:e.id,label:e.title,placeholder:(0,m.M)(e.placeholder,""),options:(0,m.M)(i,[]),onChange:l=>{(null==l?void 0:l.label)&&e.id&&d({type:"UPDATE_INPUT_FORMS",payload:{id:e.id,value:l.label}})},selectedOption:s,isSearchable:o},e.id)},e.id)}return"checkbox"===e.inputType?(0,t.jsx)(ew.A,{label:e.title,id:e.id,onChange:e=>{d({type:"UPDATE_WATCHLIST",payload:{id:e.target.id,checked:e.target.checked}})},checked:c[e.id],large:!0},e.id):(0,t.jsx)("div",{className:"col-span-2",children:(0,t.jsx)(eb.A,{label:e.title,id:e.id,placeholder:(0,m.M)(e.placeholder,""),type:(0,m.M)(e.inputType,"text"),onChange:l=>{e.id&&d({type:"UPDATE_INPUT_FORMS",payload:{id:e.id,value:l}})},value:r[e.id]||""},e.id)},e.id)})}),(0,t.jsx)(E.A,{label:i,variant:"primary",classes:"mt-56 w-full lg:w-auto",onClick:a,disabled:!s})]})},eL=(e,l)=>(0,t.jsxs)("button",{onClick:()=>e(l-1),className:"flex",children:[(0,t.jsx)(eg.A,{}),(0,t.jsx)(n.JU,{classes:"my-auto ml-4 inline !text-md text-red-100 lg:ml-8 lg:!text-sm",children:"Til baka"})]}),eT=e=>{var l,i,s;let{data:a,onClick:r,step:c,numberOfQuestions:o}=e,{state:u}=ek(),x=c-1,h=null==a?void 0:a.items[x<0?1:x],v=d.useMemo(()=>{var e;return((null==h||null==(e=h.inputFieldsCollection)?void 0:e.items)||[]).map(e=>{let l=u.inputForms;return(null==e?void 0:e.id)==="heimilisfang"||(null==e?void 0:e.id)==="postnumer"||(null==e?void 0:e.inputType)==="checkbox"||null!=e&&!!e.id&&void 0!==l[e.id]&&""!==l[e.id]}).every(Boolean)},[u,null==h||null==(l=h.inputFieldsCollection)?void 0:l.items]);if(null==a?void 0:a.items)return(0,t.jsxs)("div",{className:"".concat(f.yE," self-center"),children:[(0,t.jsx)("div",{className:"col-span-full lg:hidden",children:eL(r,c)}),(0,t.jsx)("div",{className:"col-span-full col-start-1 my-40 grid grid-flow-col justify-center self-center lg:col-span-1 lg:my-0 lg:grid-flow-row",children:[...Array(o)].map((e,l)=>(0,t.jsx)(ef,{step:l+1,currentStep:c},l))}),(0,t.jsxs)("div",{className:"col-span-full lg:col-span-5 lg:col-start-2 lg:self-ce
1nter",children:[(0,t.jsx)("div",{className:"mb-16 hidden lg:flex",children:eL(r,c)}),(0,t.jsx)(n.R2,{classes:"mb-8 text-black-75",small:!0,bold:!0,children:"Skref ".concat(c)}),(0,t.jsxs)("div",{children:[(null==h?void 0:h.title)&&(0,t.jsx)(n.DZ,{variant:"small",classes:"text-black-100",children:h.title}),(null==h?void 0:h.description)&&(0,t.jsx)(n.R2,{classes:"mt-16 text-black-100",children:h.description}),(0,t.jsx)("div",{className:"mt-32",children:(0,t.jsx)(eI,{data:null==h||null==(i=h.inputFieldsCollection)?void 0:i.items,buttonText:(0,m.M)(null==h||null==(s=h.button)?void 0:s.label,"N\xe6sta"),canContinue:v,onNextClick:()=>{var e,l;let i=c+1,t=i<=o?(0,m.M)(null==(l=a.items)||null==(e=l[i-1])?void 0:e.title,"Enginn titill fyrir skref"):"Tillaga a\xf0 pakka";I.Ay.packageSuggestionStepViewed({step:i,stepTitle:t}),r(i)}})})]},null==h?void 0:h.id)]})]})};var e_=i(56418);let eF=e=>{let{data:l,onStartAgainClick:i}=e,{state:s}=ek(),a=Number(s.inputForms["veldu-fjolda-fullordna"]),d=((e,l,i)=>{let t=["check-islenskt-sport"].some(e=>!0===i[e]),s=["check-meistaradeildin","check-pila","check-formulan","check-nfl"].some(e=>!0===i[e]),a=["check-islenskt","check-thaettir","check-biomyndir","check-barnaefni","check-frettir","check-idol","check-fraedsla"].some(e=>!0===i[e]);if(e>=2&&l>=1&&a&&t&&s);else if(e>=2&&l>=1&&a&&!t&&s)return"pakki-net-skemmtun-og-erlent-sport";else if(e>=2&&l>=1&&a&&t&&!s)return"pakki-net-skemmtun-og-islenskt-sport";else if(e>=2&&l>=1&&a&&!t&&!s)return"pakki-fjolskyldupakkinn";else if(e>=2&&l>=1&&!a&&!t&&!s)return"pakki-net-og-simi";else if(a&&!t&&!s)return"pakki-net-og-skemmtun";else if(!a&&!t&&!s)return"pakki-net-og-simi";else if(t&&s)return"pakki-net-skemmtun-og-allt-sport";else if(!t&&s)return"pakki-net-skemmtun-og-erlent-sport";else if(t&&!s)return"pakki-net-skemmtun-og-islenskt-sport";return"pakki-allt-i-voda"})(a,Number(s.inputForms["veldu-fjolda-barna"]),s.watchList),r=null==l?void 0:l.items.find(e=>(null==e?void 0:e.id)===d);return r&&(0,t.jsxs)("div",{className:"".concat(f.yE),children:[(0,t.jsxs)("div",{className:"col-span-6 col-start-1 self-center lg:col-start-2",children:[r.subheading&&(0,t.jsx)(n.R2,{classes:"mb-8 text-white-100",small:!0,children:r.subheading}),r.title&&(0,t.jsx)(n.DZ,{variant:"small",classes:"text-white-100",children:r.title}),r.description&&(0,t.jsx)(n.fz,{classes:"mt-16 whitespace-break-spaces text-white-100",children:r.description}),(0,t.jsx)("div",{className:"m-auto my-48 w-[304px] md:hidden",children:r.packageCard&&(0,t.jsx)(e_.A,{data:r.packageCard})}),(0,t.jsx)(E.A,{label:"Byrja upp \xe1 n\xfdtt",variant:"primary",classes:"mt-24 w-full md:w-auto lg:mt-56",onClick:i})]}),(0,t.jsx)("div",{className:"hidden w-[304px] self-center md:col-start-8 md:grid lg:col-start-9",children:r.packageCard&&(0,t.jsx)(e_.A,{data:r.packageCard,source:I.kL.PackageSuggestionForm})})]})},eB=e=>{var l;let{data:i}=e,[s,a]=d.useState(0),n=(null==(l=i.inputFormsCollection)?void 0:l.items)?i.inputFormsCollection.items.length:0,r=n+1===s,c=s<=0;return(0,t.jsx)(eA,{children:(0,t.jsx)("div",{className:"".concat(f.uz," relative left-0 h-fit min-h-[560px] w-screen bg-white-100 transition-all md:min-h-[704px] ").concat((0,S.A)({"bg-gradient-to-tr from-[#820000] to-red-100":c||r,"py-32":!c})),children:((e,l,i,s,a,n)=>n?(0,t.jsx)(ep,{data:e,onStartClick:()=>i(1)}):a?(0,t.jsx)(eF,{data:e.packageSuggestionsCollection,onStartAgainClick:()=>i(1)}):s>=1?(0,t.jsx)(eT,{data:e.inputFormsCollection,onClick:e=>i(e),step:l,numberOfQuestions:s}):(0,t.jsx)(t.Fragment,{}))(i,s,a,n,r,c)})})};var eP=i(77887);let eD=e=>(0,eP.KP)(e.toString(),{thousandSeparator:".",decimalScale:0,displayType:"text",suffix:" kr."}),eO=(e,l)=>Object.values(e).reduce((e,l)=>{let{addOn:i,quantity:t}=l;return i.price?e+i.price*t:e},l),eM=e=>{let{color:l}=e;return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,t.jsx)("path",{d:"M6.46967 11.6023C6.17678 11.8219 6.17678 12.1781 6.46967 12.3977C6.76256 12.6174 7.23744 12.6174 7.53033 12.3978L11.5303 9.39778C11.671 9.29226 11.75 9.14916 11.75 8.99998C11.75 8.85081 11.671 8.70778 11.5303 8.60226L7.53033 5.60225C7.23744 5.38258 6.76256 5.38258 6.46967 5.60225C6.17678 5.82192 6.17678 6.17808 6.46967 6.39775L9.93934 8.99998L6.46967 11.6023Z",fill:l})})},ez={initial:e=>({x:"increase"===e?10:-10,opacity:0,scale:.8}),animate:{x:0,opacity:1,scale:1},exit:e=>({x:"increase"===e?-10:10,opacity:0,scale:.8})},eR=e=>{let{children:l,disabled:i,onClick:s}=e;return(0,t.jsx)(ea.P.button,{whileTap:{scale:1.5},type:"button",disabled:i,className:(0,S.A)("flex h-16 w-16 items-center justify-center rounded-full transition-colors disabled:pointer-events-none disabled:cursor-not-allowed",{"opacity-10":i,"opacity-100":!i}),onClick:s,children:l})},eq=e=>
1{let{value:l,onChange:i}=e,[s,a]=d.useState("");return(0,t.jsxs)("div",{className:"flex items-center gap-8 rounded-28 border-1 border-black-25 px-8 py-4",children:[(0,t.jsx)(eR,{disabled:l<=0,onClick:()=>{i(-1),a("decrease")},children:(0,t.jsx)(eg.A,{color:em.Tj.neutral[10]})}),(0,t.jsx)(es.N,{mode:"popLayout",initial:!1,custom:s,children:(0,t.jsx)(ea.P.div,{custom:s,variants:ez,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.2},children:(0,t.jsx)(n.fz,{classes:"min-w-[11px] text-center",children:l.toString()})},l)}),(0,t.jsx)(eR,{disabled:l>=9,onClick:()=>{i(1),a("increase")},children:(0,t.jsx)(eM,{color:em.Tj.neutral[10]})})]})};var eH=i(92193),eK=i(65938),eV=i(83700);let eZ=e=>{let{data:l,addOns:i,hasAddons:s,singleAddOns:a,multiAddOns:d,isCartOpen:r,packageQuantity:c,setIsCartOpen:o,handleCheckboxChange:u}=e,x=(0,G.A)(),m=(0,T.Xr)(L.iv),[h,v]=(0,T.fp)(L.oF);return(0,t.jsxs)(ea.P.div,{className:(0,S.A)("pointer-events-none fixed bottom-24 left-0 right-0 z-50 mx-16 flex justify-center md:left-auto md:right-24 md:mx-0"),children:[(0,t.jsx)(ea.P.div,{layout:"position",transition:{duration:.2},id:"cart-position",className:(0,S.A)("pointer-events-auto",r&&"absolute -top-16 md:-left-16"),children:(0,t.jsxs)(ea.P.div,{initial:{scale:1.2},animate:{scale:1},className:(0,S.A)("relative",h&&"opacity-0"),children:[(0,t.jsx)(E.A,{icon:r?x?(0,t.jsx)(eV.A,{stroke:em.Tj.red[100]}):(0,t.jsx)(eK.A,{color:em.Tj.red[100]}):(0,t.jsx)(eH.A,{color:em.Tj.primary.white}),label:"",variant:r?"surface":"primary",classes:(0,S.A)("card-elevation-1 ",r?"!h-40 !p-8":"!p-16"),onClick:()=>{s?o(!r):v(!0)}}),!r&&c>0&&(0,t.jsx)("div",{className:"label-sm absolute right-0 top-0 flex h-16 w-16 items-center justify-center rounded-full bg-white-75 text-red-100",children:c})]},c)}),r&&(0,t.jsx)(ea.P.div,{layout:!0,className:"pointer-events-auto max-w-[430px] overflow-hidden rounded-28 bg-white-50",children:(0,t.jsxs)(ea.P.div,{layout:"position",className:"col-span-full grid gap-y-16 rounded-28 p-24 md:col-span-6",children:[(0,t.jsxs)("div",{className:"rounded-16 bg-monochrome-2",children:[s&&(0,t.jsx)(n.DZ,{variant:"xs",classes:"label-lg px-16 py-8 !font-bold text-red-100",children:"Vi\xf0b\xe6tur"}),(0,t.jsxs)("div",{className:(0,S.A)(f.t4,"grid grid-cols-1 gap-y-16"),children:[(0,t.jsx)("div",{className:"col-start-1 flex flex-col gap-16",children:a.map(e=>{var l;let{addOn:s}=e;return s.id&&(0,t.jsx)(ew.A,{label:"".concat(s.title," ").concat(s.price?eD(s.price):""),id:s.id,onChange:u,checked:(null==(l=i[s.id])?void 0:l.quantity)>0,large:!0},s.id)})}),(0,t.jsx)("div",{className:"flex flex-col gap-16",children:d.map(e=>{let{addOn:l,quantity:i}=e;return(0,t.jsxs)("div",{className:"flex flex-row items-center justify-between gap-8 p-16 md:flex-row",children:[(0,t.jsx)(n.fz,{variant:"label",children:"".concat(l.title," ").concat(l.price?eD(l.price):"")}),(0,t.jsx)(eq,{value:i,onChange:e=>{l.id&&m({id:l.id,change:e})}})]},l.id)})})]})]}),(0,t.jsxs)("div",{className:"col-span-full grid w-full grid-flow-col items-center gap-16 md:justify-between",children:[(0,t.jsx)("div",{className:"grid grid-flow-row items-start justify-self-center md:items-end",children:l.packagePrice&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.fz,{variant:"xs",classes:"text-primary-faded-text-100",children:"kr. \xe1 m\xe1nu\xf0i"}),(0,t.jsx)(W.A,{value:eO(i,l.packagePrice||0),renderText:e=>(0,t.jsx)(ea.P.div,{initial:{scale:1.1},animate:{scale:1},children:(0,t.jsx)(n.DZ,{classes:"headline-sm !font-bold",variant:"xs",children:e})},c)})]})}),(0,t.jsx)("div",{className:"flex flex-col items-center gap-16 lg:flex-row",children:(0,t.jsx)(E.A,{autoWidth:!1,label:"Panta",variant:"primary",onClick:()=>{o(!1),v(!0)}})})]})]})})]})};var eW=i(89232),eU=i(63266),eG=i(14951);let eQ=e=>{let{data:l,setError:i,onChange:s}=e;return l.title&&l.id?(0,t.jsx)("div",{className:"grid grid-flow-row",children:"kennitala"===l.inputType?(0,t.jsx)(eW.A,{id:l.id,name:(0,m.M)(l.name,""),label:l.title,setValidationError:i,placeholder:(0,m.M)(l.placeholder,""),onChange:s}):"tel"===l.inputType?(0,t.jsx)(eU.A,{id:l.id,name:(0,m.M)(l.name,""),label:l.title,placeholder:(0,m.M)(l.placeholder,""),onChange:s}):(0,t.jsx)(eG.A,{label:l.title,id:l.id,name:(0,m.M)(l.name,""),placeholder:(0,m.M)(l.placeholder,""),type:l.inputType,onCh
1ange:s})}):null};var eJ=i(11993),eX=i(27692),eY=i(9893);let e$=e=>{var l,i,s,a,r,c,o,u,x,h;let{data:v,addOns:p,hasAddons:j,singleAddOns:g,multiAddOns:b,packageQuantity:y,formStep:w,packageDescription:N,handleCheckboxChange:k,setIsCartOpen:A,setFormStep:C}=e,_=d.createRef(),F=(0,G.A)(),B=(0,T.Xr)(L.iv),[P,D]=(0,T.fp)(L.oF),[O,M]=d.useState(null),[z,R]=d.useState(!1),[q,H]=d.useState((null==(i=v.inputFieldsCollection)||null==(l=i.items)?void 0:l.reduce((e,l)=>(e[(0,m.M)(null==l?void 0:l.id,"NO_ID")]="",e),{}))||{}),K=d.useMemo(()=>{let e=Object.values(q).some(e=>!e.trim());return z||e||!O},[q,z,O]);return d.useEffect(()=>{P?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden")},[P]),(0,t.jsx)(es.N,{children:P&&(0,t.jsx)(ea.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:(0,S.A)(f.uz,"fixed left-1/2 top-1/2 z-[200] h-full w-full -translate-x-1/2 -translate-y-1/2  gap-y-16 backdrop-blur-md transition-filter"),children:(0,t.jsxs)(ea.P.form,{layout:!0,initial:{opacity:0,translateY:"20%"},animate:{opacity:1,translateY:0},exit:{opacity:0,translateY:"20%"},className:"red-bottom-shadow no-scrollbar relative col-span-full mx-16 my-auto grid max-h-[90%] max-w-screen-xl overflow-hidden overflow-y-scroll rounded-28 bg-white-50 lg:mx-auto",action:"https://".concat("login",".salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8&orgId=").concat("00D09000001JU2o"),method:"POST",onSubmit:()=>{_.current&&_.current.execute(),I.Ay.packageFormSubmitted({package:(0,m.M)(v.title,"Ekkert nafn \xe1 pakka")})},children:[(0,t.jsxs)("div",{className:"flex items-center justify-between p-24 pb-0",children:[(0,t.jsx)(E.A,{label:1===w?"Loka":"Til baka",variant:"text",labelClasses:"label-sm",icon:1===w?(0,t.jsx)(eY.A,{color:em.Tj.neutral[10],size:"18"}):(0,t.jsx)(eg.A,{color:em.Tj.neutral[10]}),onClick:()=>{1===w&&(D(!1),A(!1)),C(1)}}),j&&(0,t.jsx)(n.fz,{classes:"flex px-24 md:hidden",variant:"small",children:"Skref ".concat(w)})]}),(0,t.jsx)(eX.A,{verifiedTimestamp:O,isB2B:!1}),(0,t.jsxs)(ea.P.div,{layout:"position",className:"col-span-full grid grid-cols-12",children:[1===w&&(0,t.jsxs)("div",{className:(0,S.A)("col-span-full grid gap-y-16 px-24 md:px-40",j&&"md:col-span-6"),children:[(0,t.jsxs)("div",{className:"md:py-24",children:[v.subtitle&&(0,t.jsx)(n.JU,{classes:"text-black-75",children:v.subtitle}),v.title&&(0,t.jsx)(n.DZ,{variant:"xs",classes:"!font-bold",children:v.title})]}),(0,t.jsx)("div",{className:(0,S.A)(f.t4,"grid grid-cols-1 gap-y-8"),children:null==(a=v.inputFieldsCollection)||null==(s=a.items)?void 0:s.map(e=>(0,t.jsx)(eQ,{data:e,setError:R,onChange:l=>((e,l)=>{H(i=>({...i,[(0,m.M)(null==e?void 0:e.id,"NO_ID")]:l}))})(e,l)},null==e?void 0:e.id))}),(0,t.jsx)("div",{className:"md: flex justify-center md:justify-start",children:(0,t.jsx)(eJ.A,{ref:_,sitekey:"6LcNNkIoAAAAAE7lWgx8dsvRXvQrE3g6YTgOqXQe",onChange:()=>M(JSON.stringify(new Date().getTime())),onExpired:()=>M(null),onErrored:()=>M(null)})})]}),j&&(2===w||!F)&&(0,t.jsxs)(ea.P.div,{layout:"position",className:"col-span-full grid gap-y-16 rounded-28 p-24 md:col-span-6 md:mx-24 md:bg-white-75 lg:mx-40",children:[j&&(0,t.jsx)(n.DZ,{variant:"xs",classes:"label-lg flex items-end px-16 !font-bold text-red-100",children:"Vi\xf0b\xe6tur"}),(0,t.jsxs)("div",{className:(0,S.A)(f.t4,"grid grid-cols-1 gap-y-16"),children:[g.length>0&&(0,t.jsx)("div",{className:"col-start-1 flex flex-col gap-16",children:g.map(e=>{var l;let{addOn:i}=e;return i.id&&(0,t.jsx)(ew.A,{label:"".concat(i.title," ").concat(i.price?eD(i.price):""),id:i.id,onChange:k,checked:(null==(l=p[i.id])?void 0:l.quantity)>0,large:!0},i.id)})}),b.length>0&&(0,t.jsx)("div",{className:"flex flex-col gap-16",children:b.map(e=>{let{addOn:l,quantity:i}=e;return(0,t.jsxs)("div",{className:"flex flex-row items-center justify-between gap-8 p-16 md:flex-row",children:[(0,t.jsx)(n.fz,{variant:"label",children:"".concat(l.title," ").concat(l.price?eD(l.price):"")}),(0,t.jsx)(eq,{value:i,onChange:e=>{l.id&&B({id:l.id,change:e})}})]},l.id)})})]})]}),(0,t.jsx)("textarea",{hidden:!0,id:"description",name:"description",value:N,readOnly:!0}),(0,t.jsxs)("div",{className:"col-span-full flex w-full grid-flow-col items-center justify-between gap-16 p-24 md:p-40 md:py-24",children:[(0,t.jsx)("div",{className:"grid grid-flow-col items-baseline space-x-8 justify-self-center",children:v.packagePrice&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(W.A,{value:eO(p,v.packagePrice||0),renderText:e=>(0,t.jsx)(ea.P.div,{initial:{scale:1.1},animate:{scale:1},children:(0,t.jsx)(n.DZ,{classes:"!font-bold",variant:"xs",children:e})},y)}),(0,t.jsx)(n.fz,{children:"/m\xe1n"})]})}),(0,t.jsx)("div",{className:"flex flex-col items-center gap-16 lg:flex-row",children:j&&(null==(r=v.button)?void 0:r.label)&&(null==(c=v.button)?void 0:c.variant)&&F?(0,t.jsxs)(t.Fragment,{children:[1===w&&(0,t.jsx)(E.A,{autoWidth:!1,label:"\xc1fram",variant:"primary",disabled:K,onClick:()=>{C(2)}}),2===w&&(null==(o=v.button)?void 0:o.label)&&(null==(u=v.button)?void 0:u.variant)&&(0,t.jsx)(E.A,{type:"submit",autoWidth:!1,label:(0,m.M)(v.button.label,""),variant:(0,E.D)(v.button.variant),disabled:K})]}):(0,t.jsx)(t.Fragment,{children:(null==(x=v.button)?void 0:x.label)&&(null==(h=v.button)?void 0:h.variant)&&(0,t.jsx)(E.A,{type:"submit",autoWidth:!1,label:(0,m.M)(v.button.label,""),variant:(0,E.D)(v.button.variant),disabled:K})})})]})]})]})})})},e0=e=>{let{data:l}=e,[i]=(0,T.fp)(L.T8),s=(0,T.Xr)(L.aU),a=(0,T.Xr)(L.dJ),n=(0,T.Xr)(L.iv),[r,c]=(0,T.fp)(L.oF),[o,u]=d.useState(Object.values(i).filter(e=>{let{addOn:l}=e;return l.multiselect})),[x,m]=d.useState(Object.values(i).filter(e=>{let{addOn:l}=e;return!l.multiselect})),[h,p]=d.useState(Object.values(i).length>0),j=d.useMemo(()=>((e,l)=>{let i=Object.values(e).filter(e=>{let{quantity:l}=e;return l>0}).map(e=>{let{addOn:l,quantity:i}=e;return"Vi\xf0b\xf3t: ".concat(l.title,", fj\xf6ldi: ").concat(i)}).join("\n");return"".concat("Pakki: ".concat(l),"\n").concat(i)})(i,l.title||""),[l.title,i]),f=d.useMemo(()=>Object.values(i).reduce((e,l)=>{let{quantity:i}=l;return e+i}
1,0),[i]),[g,b]=d.useState(!1),[y,w]=d.useState(1),[N,k]=d.useState(!0),A=d.useRef(!1),C=e=>{n({id:e.target.id,change:e.target.checked?1:-1})};return((0,d.useEffect)(()=>{l.packagePrice&&l.id&&s({id:l.id,basePrice:l.packagePrice,title:l.title||""})},[l.packagePrice,l.id,l.title,s]),(0,d.useEffect)(()=>()=>{A.current&&(a(),c(!1),b(!1),w(1))},[a,c]),(0,d.useEffect)(()=>()=>{A.current=!0},[]),(0,d.useEffect)(()=>{i&&(u(Object.values(i).filter(e=>{let{addOn:l}=e;return l.multiselect})),m(Object.values(i).filter(e=>{let{addOn:l}=e;return!l.multiselect})),p(Object.values(i).length>0)),k(!1)},[i]),(0,d.useEffect)(()=>{r&&b(!1)},[r]),(0,d.useEffect)(()=>{let e=new MutationObserver(()=>{let l=document.getElementById("chat-launcher-container");l&&(l.classList.add("hidden"),e.disconnect())});return e.observe(document.body,{childList:!0,subtree:!0}),()=>{let l=document.getElementById("chat-launcher-container");l&&l.classList.remove("hidden"),e.disconnect()}},[]),N)?(0,t.jsx)(t.Fragment,{}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eZ,{data:l,addOns:i,hasAddons:h,singleAddOns:x,multiAddOns:o,isCartOpen:g,isFormVisible:r,packageQuantity:f,setIsCartOpen:b,handleCheckboxChange:C}),(0,t.jsx)("div",{id:v.Nb,children:(0,t.jsx)(e$,{data:l,addOns:i,hasAddons:h,singleAddOns:x,multiAddOns:o,packageQuantity:f,formStep:y,packageDescription:j,handleCheckboxChange:C,setIsCartOpen:b,setFormStep:w})})]})};var e1=i(82114),e2=i(99376);let e6=e=>{let{data:l}=e,i=l.mediasCollection;return(0,t.jsx)("div",{className:"gid-flow-row md:grid-flow-column gap-16",children:(null==i?void 0:i.items)&&i.items.map(function(e){return(null==e?void 0:e.__typename)==="ImageWithFocalPoint"?(0,t.jsx)("div",{className:"relative h-[330px] ".concat((0,S.A)({"col-span-full md:col-span-4":3===i.items.length,"col-span-6":2===i.items.length,"col-span-full":1===i.items.length})),children:(0,t.jsx)(P.t,{image:e,sectionId:e.id,className:"rounded-28",priority:!1})}):void 0})})},e3=e=>{let{title:l="",discription:i,icon:s="",leftAligned:a}=e;return(0,t.jsxs)("div",{className:"col-span-7 row-span-2 grid grid-cols-[40px_repeat(11,1fr)] grid-rows-[40px_1fr] gap-0 gap-x-24 py-32 ".concat((0,S.A)({"md:col-start-6":a})),children:[(0,t.jsx)("div",{className:"col-span-1 row-span-1 grid rounded-full bg-red-100",children:(0,t.jsx)(x(),{src:(0,m.M)(s,""),alt:(0,m.M)(l,""),width:0,height:0,sizes:"40px",className:" h-1/2 w-full self-center"})}),(0,t.jsxs)("div",{className:"col-span-full col-start-2 row-span-3 self-center",children:[(0,t.jsx)(n.DZ,{classes:"pt-8",variant:"xxs",children:l}),(0,t.jsx)("div",{children:i&&(0,r.i)(i.json,{renderNode:{[c.BLOCKS.PARAGRAPH]:(e,l)=>(0,t.jsx)(n.fz,{variant:"medium",classes:"text-black-100",children:l})}})})]})]})},e4=e=>{let{data:l}=e,i=l.listItemsCollection;return(0,t.jsx)("div",{className:"".concat(f.yE," gid-flow-row md:grid-flow-column gap-16"),children:(null==i?void 0:i.items)&&i.items.map(function(e,l){var i;return e&&(0,t.jsx)(e3,{title:e.title?null==e?void 0:e.title:"",discription:null==e?void 0:e.description,icon:e.icon?null==e||null==(i=e.icon)?void 0:i.url:"",leftAligned:l%2==1})})})};var e8=i(5173),e5=i(53592),e7=i(67290);let e9=()=>(0,t.jsx)("div",{className:"h-full w-full animate-pulse rounded-28 bg-black-25 bg-opacity-30"}),le=e=>{let{data:l}=e,i=(0,d.useMemo)(()=>{var e;return(null==l||null==(e=l.items)?void 0:e.slice(0,3).map(e=>{var l;return null==e||null==(l=e.sys)?void 0:l.id}))||[]},[l]),[s,a]=(0,d.useState)([]);return((0,d.useEffect)(()=>{(async()=>{if(i.length){let e=await (0,e7.Q2)(i);e&&a(e)}})()},[i]),s.length<3)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block min-h-[70vh] w-full md:hidden",children:(0,t.jsx)(e9,{})}),(0,t.jsxs)("div",{className:"hidden min-h-[70vh] w-full md:flex",children:[(0,t.jsx)("div",{className:"w-1/3",children:(0,t.jsx)(e9,{})}),(0,t.jsx)("div",{className:"mx-16 w-1/3",children:(0,t.jsx)(e9,{})}),(0,t.jsx)("div",{className:"w-1/3",children:(0,t.jsx)(e9,{})})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block min-h-[70vh] w-full md:hidden",children:(0,t.jsx)(e5.A,{box:s[0]})}),(0,t.jsxs)("div",{className:"hidden min-h-[70vh] w-full md:flex",children:[(0,t.jsx)("div",{className:"w-1/3",children:(0,t.jsx)(e5.A,{box:s[0]})}),(0,t.jsx)("div",{className:"mx-16 w-1/3",children:(0,t.jsx)(e5.A,{box:s[1]})}),(0,t.jsx)("div",{className:"w-1/3",children:(0,t.jsx)(e5.A,{box:s[2]})})]})]})},ll=e=>{let{data:l}=e,i=(0,d.useMemo)(()=>{var e;return(null==l||null==(e=l.items)?void 0:e.slice(0,3).map(e=>{var l;return null==e||null==(l=e.sys)?void 0:l.id}))||[]},[l]),[s,a]=(0,d.useState)([]);return((0,d.useEffect)(()=>{(async()=>
1{if(i.length){let e=await (0,e7.Q2)(i);e&&a(e)}})()},[i]),s.length<3)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block min-h-[70vh] w-full md:hidden",children:(0,t.jsx)(e9,{})}),(0,t.jsxs)("div",{className:"hidden min-h-[70vh] w-full md:flex",children:[(0,t.jsx)("div",{className:"w-2/3",children:(0,t.jsx)(e9,{})}),(0,t.jsxs)("div",{className:"mx-16 flex h-full w-1/3 flex-col",children:[(0,t.jsx)("div",{style:{height:"calc((100% - 16px) / 3)"},children:(0,t.jsx)(e9,{})}),(0,t.jsx)("div",{style:{height:"16px"}}),(0,t.jsx)("div",{style:{height:"calc(((100% - 16px) / 3) * 2)"},children:(0,t.jsx)(e9,{})})]})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block min-h-[70vh] w-full md:hidden",children:(0,t.jsx)(e5.A,{box:s[0]})}),(0,t.jsxs)("div",{className:"hidden min-h-[70vh] w-full md:flex",children:[(0,t.jsx)("div",{className:"w-2/3",children:(0,t.jsx)(e5.A,{box:s[0]})}),(0,t.jsxs)("div",{className:"mx-16 flex h-full w-1/3 flex-col",children:[(0,t.jsx)("div",{style:{height:"calc((100% - 16px) / 3)"},children:(0,t.jsx)(e5.A,{box:s[1]})}),(0,t.jsx)("div",{style:{height:"16px"}}),(0,t.jsx)("div",{style:{height:"calc(((100% - 16px) / 3) * 2)"},children:(0,t.jsx)(e5.A,{box:s[2]})})]})]})]})},li=e=>{let{data:l}=e,i=(0,d.useMemo)(()=>{var e;return(null==l||null==(e=l.items)?void 0:e.slice(0,3).map(e=>{var l;return null==e||null==(l=e.sys)?void 0:l.id}))||[]},[l]),[s,a]=(0,d.useState)([]);return((0,d.useEffect)(()=>{(async()=>{if(i.length){let e=await (0,e7.Q2)(i);e&&a(e)}})()},[i]),s.length<3)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block min-h-[70vh] w-full md:hidden",children:(0,t.jsx)(e9,{})}),(0,t.jsxs)("div",{className:"hidden min-h-[70vh] w-full md:flex",children:[(0,t.jsx)("div",{className:"w-3/4",children:(0,t.jsx)(e9,{})}),(0,t.jsxs)("div",{className:"mx-16 flex h-full w-1/4 flex-col",children:[(0,t.jsx)("div",{style:{height:"calc((100% - 16px) / 3)"},children:(0,t.jsx)(e9,{})}),(0,t.jsx)("div",{style:{height:"16px"}}),(0,t.jsx)("div",{style:{height:"calc(((100% - 16px) / 3) * 2)"},children:(0,t.jsx)(e9,{})})]})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block min-h-[70vh] w-full md:hidden",children:(0,t.jsx)(e5.A,{box:s[0]})}),(0,t.jsxs)("div",{className:"hidden min-h-[70vh] w-full md:flex",children:[(0,t.jsx)("div",{className:"w-3/4",children:(0,t.jsx)(e5.A,{box:s[0]})}),(0,t.jsxs)("div",{className:"mx-16 flex h-full w-1/4 flex-col",children:[(0,t.jsx)("div",{style:{height:"calc((100% - 16px) / 3)"},children:(0,t.jsx)(e5.A,{box:s[1]})}),(0,t.jsx)("div",{style:{height:"16px"}}),(0,t.jsx)("div",{style:{height:"calc(((100% - 16px) / 3) * 2)"},children:(0,t.jsx)(e5.A,{box:s[2]})})]})]})]})},lt=e=>{let{data:l}=e,i=(0,d.useMemo)(()=>{var e;return(null==l||null==(e=l.items)?void 0:e.slice(0,2).map(e=>{var l;return null==e||null==(l=e.sys)?void 0:l.id}))||[]},[l]),[s,a]=(0,d.useState)([]);return((0,d.useEffect)(()=>{(async()=>{if(i.length){let e=await (0,e7.Q2)(i);e&&a(e)}})()},[i]),s.length<2)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block min-h-[70vh] w-full md:hidden",children:(0,t.jsx)(e9,{})}),(0,t.jsxs)("div",{className:"hidden min-h-[70vh] w-full md:flex",children:[(0,t.jsx)("div",{className:"w-3/5",children:(0,t.jsx)(e9,{})}),(0,t.jsx)("div",{className:"mx-16 w-2/5",children:(0,t.jsx)(e9,{})})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block min-h-[70vh] w-full md:hidden",children:(0,t.jsx)(e5.A,{box:s[0]})}),(0,t.jsxs)("div",{className:"hidden min-h-[70vh] w-full md:flex",children:[(0,t.jsx)("div",{className:"w-3/5",children:(0,t.jsx)(e5.A,{box:s[0]})}),(0,t.jsx)("div",{className:"mx-16 w-2/5",children:(0,t.jsx)(e5.A,{box:s[1]})})]})]})},ls=e=>{let{data:l}=e,i=(0,d.useMemo)(()=>{var e;return(null==l||null==(e=l.items)?void 0:e.slice(0,4).map(e=>{var l;return null==e||null==(l=e.sys)?void 0:l.id}))||[]},[l]),[s,a]=(0,d.useState)([]);return((0,d.useEffect)(()=>{(async()=>{if(i.length){let e=await (0,e7.Q2)(i);e&&a(e)}})()},[i]),s.length<4)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block min-h-[70vh] w-full md:hidden",children:(0,t.jsx)(e9,{})}),(0,t.jsxs)("div",{className:"hidden min-h-[70vh] w-full md:flex",children:[(0,t.jsx)("div",{className:"w-3/5",children:(0,t.jsx)(e9,{})}
1),(0,t.jsxs)("div",{className:"mx-16 flex h-full w-2/5 flex-col",children:[(0,t.jsx)("div",{style:{height:"calc((100% - 32px) / 3)"},children:(0,t.jsx)(e9,{})}),(0,t.jsx)("div",{style:{height:"16px"}}),(0,t.jsx)("div",{style:{height:"calc((100% - 32px) / 3)"},children:(0,t.jsx)(e9,{})}),(0,t.jsx)("div",{style:{height:"16px"}}),(0,t.jsx)("div",{style:{height:"calc((100% - 32px) / 3)"},children:(0,t.jsx)(e9,{})})]})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block min-h-[70vh] w-full md:hidden",children:(0,t.jsx)(e5.A,{box:s[0]})}),(0,t.jsxs)("div",{className:"hidden min-h-[70vh] w-full md:flex",children:[(0,t.jsx)("div",{className:"w-3/5",children:(0,t.jsx)(e5.A,{box:s[0]})}),(0,t.jsxs)("div",{className:"mx-16 flex h-full w-2/5 flex-col",children:[(0,t.jsx)("div",{style:{height:"calc((100% - 32px) / 3)"},children:(0,t.jsx)(e5.A,{box:s[1]})}),(0,t.jsx)("div",{style:{height:"16px"}}),(0,t.jsx)("div",{style:{height:"calc((100% - 32px) / 3)"},children:(0,t.jsx)(e5.A,{box:s[2]})}),(0,t.jsx)("div",{style:{height:"16px"}}),(0,t.jsx)("div",{style:{height:"calc((100% - 32px) / 3)"},children:(0,t.jsx)(e5.A,{box:s[3]})})]})]})]})},la=e=>{let{data:l}=e,i=(0,d.useMemo)(()=>{var e;return(null==l||null==(e=l.items)?void 0:e.slice(0,2).map(e=>{var l;return null==e||null==(l=e.sys)?void 0:l.id}))||[]},[l]),[s,a]=(0,d.useState)([]);return((0,d.useEffect)(()=>{(async()=>{if(i.length){let e=await (0,e7.Q2)(i);e&&a(e)}})()},[i]),s.length<2)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block min-h-[70vh] w-full md:hidden",children:(0,t.jsx)(e9,{})}),(0,t.jsxs)("div",{className:"hidden min-h-[70vh] w-full flex-col md:flex",children:[(0,t.jsx)("div",{className:"w-full",style:{height:"calc(((100% - 16px) / 3) * 2)"},children:(0,t.jsx)(e9,{})}),(0,t.jsx)("div",{style:{height:"16px"}}),(0,t.jsx)("div",{className:"w-full",style:{height:"calc((100% - 16px) / 3)"},children:(0,t.jsx)(e9,{})})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block min-h-[70vh] w-full md:hidden",children:(0,t.jsx)(e5.A,{box:s[0]})}),(0,t.jsxs)("div",{className:"hidden min-h-[70vh] w-full flex-col md:flex",children:[(0,t.jsx)("div",{className:"w-full",style:{height:"calc(((100% - 16px) / 3) * 2)"},children:(0,t.jsx)(e5.A,{box:s[0]})}),(0,t.jsx)("div",{style:{height:"16px"}}),(0,t.jsx)("div",{className:"w-full",style:{height:"calc((100% - 16px) / 3)"},children:(0,t.jsx)(e5.A,{box:s[1]})})]})]})},ln=e=>{let{data:l}=e,i=(0,d.useMemo)(()=>{var e;return(null==l||null==(e=l.items)?void 0:e.slice(0,3).map(e=>{var l;return null==e||null==(l=e.sys)?void 0:l.id}))||[]},[l]),[s,a]=(0,d.useState)([]);return((0,d.useEffect)(()=>{(async()=>{if(i.length){let e=await (0,e7.Q2)(i);e&&a(e)}})()},[i]),s.length<3)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block min-h-[70vh] w-full md:hidden",children:(0,t.jsx)(e9,{})}),(0,t.jsxs)("div",{className:"hidden min-h-[70vh] w-full md:flex",children:[(0,t.jsx)("div",{className:"w-3/5",children:(0,t.jsx)(e9,{})}),(0,t.jsxs)("div",{className:"ml-16 flex h-full w-2/5 flex-col",children:[(0,t.jsx)("div",{style:{height:"calc(((100% - 16px) / 5) * 3)"},children:(0,t.jsx)(e9,{})}),(0,t.jsx)("div",{style:{height:"16px"}}),(0,t.jsx)("div",{style:{height:"calc(((100% - 16px) / 5) * 2)"},children:(0,t.jsx)(e9,{})})]})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block min-h-[70vh] w-full md:hidden",children:(0,t.jsx)(e5.A,{box:s[0]})}),(0,t.jsxs)("div",{className:"hidden min-h-[70vh] w-full md:flex",children:[(0,t.jsx)("div",{className:"w-3/5",children:(0,t.jsx)(e5.A,{box:s[0]})}),(0,t.jsxs)("div",{className:"ml-16 flex h-full w-2/5 flex-col",children:[(0,t.jsx)("div",{style:{height:"calc(((100% - 16px) / 5) * 3)"},children:(0,t.jsx)(e5.A,{box:s[1]})}),(0,t.jsx)("div",{style:{height:"16px"}}),(0,t.jsx)("div",{style:{height:"calc(((100% - 16px) / 5) * 2)"},children:(0,t.jsx)(e5.A,{box:s[2]})})]})]})]})},ld=e=>{let{data:l}=e,i=(0,d.useMemo)(()=>{var e;return(null==l||null==(e=l.items)?void 0:e.slice(0,4).map(e=>{var l;return null==e||null==(l=e.sys)?void 0:l.id}))||[]},[l]),[s,a]=(0,d.useState)([]);return((0,d.useEffect)(()=>{(async()=>
1{if(i.length){let e=await (0,e7.Q2)(i);e&&a(e)}})()},[i]),s.length<4)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block min-h-[70vh] w-full md:hidden",children:(0,t.jsx)(e9,{})}),(0,t.jsxs)("div",{className:"hidden min-h-[70vh] w-full md:flex",children:[(0,t.jsx)("div",{className:"w-3/5",children:(0,t.jsx)(e9,{})}),(0,t.jsxs)("div",{className:"mx-16 flex h-full w-2/5 flex-col",children:[(0,t.jsx)("div",{style:{height:"calc(((100% - 16px) / 2))"},children:(0,t.jsx)(e9,{})}),(0,t.jsx)("div",{style:{height:"16px"}}),(0,t.jsx)("div",{style:{height:"calc(((100% - 16px) / 2))"},children:(0,t.jsxs)("div",{className:"flex h-full w-full",children:[(0,t.jsx)("div",{style:{width:"calc(((100% - 16px) / 5) * 3)"},children:(0,t.jsx)(e9,{})}),(0,t.jsx)("div",{style:{width:"16px"}}),(0,t.jsx)("div",{style:{width:"calc(((100% - 16px) / 5) * 2)"},children:(0,t.jsx)(e9,{})})]})})]})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block min-h-[70vh] w-full md:hidden",children:(0,t.jsx)(e5.A,{box:s[0]})}),(0,t.jsxs)("div",{className:"hidden min-h-[70vh] w-full md:flex",children:[(0,t.jsx)("div",{className:"w-3/5",children:(0,t.jsx)(e5.A,{box:s[0]})}),(0,t.jsxs)("div",{className:"mx-16 flex h-full w-2/5 flex-col",children:[(0,t.jsx)("div",{style:{height:"calc(((100% - 16px) / 2))"},children:(0,t.jsx)(e5.A,{box:s[1]})}),(0,t.jsx)("div",{style:{height:"16px"}}),(0,t.jsx)("div",{style:{height:"calc(((100% - 16px) / 2))"},children:(0,t.jsxs)("div",{className:"flex h-full w-full",children:[(0,t.jsx)("div",{style:{width:"calc(((100% - 16px) / 5) * 3)"},children:(0,t.jsx)(e5.A,{box:s[2]})}),(0,t.jsx)("div",{style:{width:"16px"}}),(0,t.jsx)("div",{style:{width:"calc(((100% - 16px) / 5) * 2)"},children:(0,t.jsx)(e5.A,{box:s[3]})})]})})]})]})]})},lr=e=>{let{data:l}=e,i=(0,d.useMemo)(()=>{var e;return(null==l||null==(e=l.items)?void 0:e.slice(0,3).map(e=>{var l;return null==e||null==(l=e.sys)?void 0:l.id}))||[]},[l]),[s,a]=(0,d.useState)([]);return((0,d.useEffect)(()=>{(async()=>{if(i.length){let e=await (0,e7.Q2)(i);e&&a(e)}})()},[i]),s.length<3)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block min-h-[70vh] w-full md:hidden",children:(0,t.jsx)(e9,{})}),(0,t.jsxs)("div",{className:"hidden min-h-[70vh] w-full flex-col md:flex",children:[(0,t.jsx)("div",{className:"w-full",style:{height:"calc(((100% - 16px) / 3) * 2)"},children:(0,t.jsx)(e9,{})}),(0,t.jsx)("div",{style:{height:"16px"}}),(0,t.jsxs)("div",{className:"flex w-full",style:{height:"calc((100% - 16px) / 3)"},children:[(0,t.jsx)("div",{className:"h-full",style:{width:"calc(((100% - 16px) / 5) * 3)"},children:(0,t.jsx)(e9,{})}),(0,t.jsx)("div",{style:{width:"16px"}}),(0,t.jsx)("div",{className:"h-full",style:{width:"calc(((100% - 16px) / 5) * 2)"},children:(0,t.jsx)(e9,{})})]})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block min-h-[70vh] w-full md:hidden",children:(0,t.jsx)(e5.A,{box:s[0]})}),(0,t.jsxs)("div",{className:"hidden min-h-[70vh] w-full flex-col md:flex",children:[(0,t.jsx)("div",{className:"w-full",style:{height:"calc(((100% - 16px) / 3) * 2)"},children:(0,t.jsx)(e5.A,{box:s[0]})}),(0,t.jsx)("div",{style:{height:"16px"}}),(0,t.jsxs)("div",{className:"flex w-full",style:{height:"calc((100% - 16px) / 3)"},children:[(0,t.jsx)("div",{className:"h-full",style:{width:"calc(((100% - 16px) / 5) * 3)"},children:(0,t.jsx)(e5.A,{box:s[1]})}),(0,t.jsx)("div",{style:{width:"16px"}}),(0,t.jsx)("div",{className:"h-full",style:{width:"calc(((100% - 16px) / 5) * 2)"},children:(0,t.jsx)(e5.A,{box:s[2]})})]})]})]})};var lc=i(69898);let lo=e=>{var l,i;let s=null==(i=e.data.items[0])||null==(l=i.sys)?void 0:l.id,[a,n]=(0,d.useState)({}),[r,c]=(0,T.fp)(L._$),[o,u]=(0,T.fp)(L.u4),x=d.useRef(null),m=(0,lc.W)(x,{once:!1,amount:"all"});(0,d.useEffect)(()=>{m&&!r?u(!0):u(!1)},[s,m,r,u]),(0,d.useEffect)(()=>{(async()=>{if(s){let e=await (0,e7.yb)(s);e&&n(e)}})().then()},[s]);let h=()=>{r||c(!0),setTimeout(()=>{document.removeEventListener("scroll",h),document.removeEventListener("click",h),document.removeEventListener("touchstart",h),document.removeEventListener("touchmove",h),document.removeEventListener("touchend",h),document.body.classList.remove("overflow-y-hidden")},300)};return(r||(document.addEventListener("scroll",h),document.addEventListener("click",h),document.addEventListener("touchstart",h),document.addEventListener("touchmove",h),document.addEventListener("touchend",h),document.body.classList.add("overflow-y-hidden")),a)?(0,t.jsx)("div",{ref:x,className:"min-h-[70vh] w-full",children:(0,t.jsx)(es.N,{mode:"popLayout",children:(0,t.jsx)(ea.P.div,{layoutId:"bento-box-".concat(s),layout:!0,initial:{scale:.8},animate:{scale:1},className:"".concat(o?"absolute inset-0 z-20 flex items-center justify-center":"relative h-full w-full overflow-hidden"),onWheel:h,children:(0,t.jsx)(e5.A,{box:a,isFullscreen:o,OnClick:()=>{c(!0),u(!1)}})})})}):(0,t.jsx)("p",{children:"Loading bento box..."})},lu=e=>{var l,i,s,a,n;let{data:d}=e;return(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{children:"Default Dynamic Layout"}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Layout Entry ID:"})," ",null==d||null==(l=d.sys)?void 0:l.id]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Bento Boxes:"})," ",(null==d||null==(s=d.bentoBoxCollection)||null==(i=s.items)?void 0:i.length)||0]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Layout ID:"})," ",null==d||null==(a=d.layout)?void 0:a.id]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Layout Title:"})," ",null==d||null==(n=d.layout)?void 0:n.title]})]})},lx=e=>{var l,i,s,a;switch(null==(i=e.data)||null==(l=i.layout)?void 0:l.id){case 1:return(0,t.jsx)(e8.A,{data:e.data.bentoBoxCollection});case 2:return(0,t.jsx)(le,{data:e.data.bentoBoxCollection});case 3:return(0,t.jsx)(ll,{data:e.data.bentoBoxCollection});case 4:return(0,t.jsx)(li,{data:e.data.bentoBoxCollection});case 5:return(0,t.jsx)(lt,{data:e.data.bentoBoxCollection});case 6:return(0,t.jsx)(ls,{data:e.data.bentoBoxCollection});case 7:return(0,t.jsx)(la,{data:e.data.bentoBoxCollection});case 8:return(0,t.jsx)(ln,{data:e.data.bentoBoxCollection});case 9:return(0,t.jsx)(ld,{data:e.data.bentoBoxCollection});case 10:return(0,t.jsx)(lr,{data:e.data.bentoBoxCollection});case 11:return(0,t.jsx)(lo,{data:e.data.bentoBoxCollection},null==(a=e.data.bentoBoxCollection.items[0])||null==(s=a.sys)?void 0:s.id);default:return(0,t.jsx)(lu,{data:e.data})}},lm=e=>{let{data:l}=e,[i,s]=(0,d.useState)([]),[a,n]=(0,d.useState)(0),r=(0,d.useRef)(null);(0,d.useEffect)(()=>
1{if(0===i.length)return;let e=setInterval(()=>{c((a+1)%i.length)},5e3);return()=>clearInterval(e)},[a,i]),(0,d.useEffect)(()=>{(async()=>{var e;let i=((null==l||null==(e=l.layoutCollection)?void 0:e.items)||[]).filter(e=>{var l;return null!==e&&!!(null==e||null==(l=e.sys)?void 0:l.id)});s((await Promise.all(i.map(async e=>{var l,i;let t=null==e||null==(l=e.sys)?void 0:l.id,s=null==e?void 0:e.__typename;if(!t||!s)return null;if("HeroLayoutCarousel"===s){let e=await fetch("https://graphql.contentful.com/content/v1/spaces/u0ns9p1dn2b1/environments/syn",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer 7WTIzcAbrIzpI6OMPEqnZiZdELbNQTJWNXTvXlKBJYw"},body:JSON.stringify({query:"\n                  query GetHeroLayoutCarousel($id: String!) {\n                    heroLayoutCarousel(id: $id) {\n                      sys { id }\n                      id\n                      layout {\n                        __typename\n                        sys { id }\n                        id\n                        title\n                      }\n                      bentoBoxCollection {\n                        items {\n                          __typename\n                          sys { id }\n                        }\n                      }\n                    }\n                  }\n                ",variables:{id:t}})}),l=await e.json();return(null==l||null==(i=l.data)?void 0:i.heroLayoutCarousel)?{typename:s,data:l.data.heroLayoutCarousel}:null}return null}))).filter(e=>null!==e))})()},[l]);let c=e=>{if(r.current){let l=r.current.offsetWidth;r.current.scrollTo({left:e*l,behavior:"smooth"}),n(e)}};return(0,t.jsxs)("div",{className:"min-h-[70vh] w-full overflow-hidden pb-24",children:[(0,t.jsx)("div",{ref:r,onScroll:()=>{r.current&&n(Math.round(r.current.scrollLeft/r.current.offsetWidth))},style:{display:"flex",overflowX:"scroll",scrollSnapType:"x mandatory",scrollBehavior:"smooth",scrollbarWidth:"none",msOverflowStyle:"none"},className:"hide-scrollbar",children:i.map((e,l)=>(0,t.jsx)("div",{style:{flex:"0 0 100%",scrollSnapAlign:"start",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",borderRadius:"28px",boxSizing:"border-box",minHeight:"70vh",background:"HeroLayoutCarousel"===e.typename?"#f0f0f0":"#ffdddd"},children:"HeroLayoutCarousel"===e.typename?(0,t.jsx)(lx,{data:e.data}):(0,t.jsxs)("p",{children:["Unknown layout type: ",e.typename]})},l))}),i.length>1&&(0,t.jsx)("div",{className:"mx-auto flex w-full max-w-[936px] flex-col items-center justify-center rounded-full bg-[#E8E8E8] py-4",children:(0,t.jsx)("div",{className:"flex w-full gap-2 px-4",children:i.map((e,l)=>(0,t.jsx)("span",{onClick:()=>c(l),className:"h-[10px] flex-1 cursor-pointer rounded-full transition-colors ".concat(l===a?"bg-[var(--Schemes-Primary,#F14157)]":"bg-[rgba(44,45,48,0.12)]")},l))})})]})};i(67814),i(13496);let lh=e=>{let{data:l}=e,[i,s]=(0,d.useState)(0),a=(0,d.useRef)(null),o=l.quotesCollection;return(0,t.jsxs)("div",{className:"relative grid grid-cols-12 md:gap-x-24",children:[(0,t.jsx)("div",{className:"col-span-12 col-start-1 grid grid-cols-6 self-start px-16 py-16 md:col-span-6 md:col-start-1 ".concat((0,S.A)({"rounded-28 bg-white-100 !px-32 py-32 md:!col-span-12":null===l.sideImage})),children:(0,t.jsx)(ee.RC,{ref:a,onSlideChange:e=>s(e.realIndex),modules:[el.dK,el.Jq,el.Ij],pagination:{clickable:!0},mousewheel:{forceToAxis:!0},effect:"cards",autoplay:{delay:1e3*(0,m.M)(l.delay,10)},spaceBetween:0,slidesPerView:1,className:"!col-span-full !-mx-32 !flex [&_.swiper-pagination-bullet]:!w-[12px] [&_.swiper-pagination-bullets]:mx-16 [&_.swiper-pagination-bullets]:text-left [&_.swiper-pagination]:row-start-3 ".concat((0,S.A)({"[&_.swiper-pagination-bullets]:lg:mx-128":null===l.sideImage}),"\n          "),children:(null==o?void 0:o.items)&&o.items.map(function(e,i){return e&&e.name&&(0,t.jsx)(ee.qr,{children:(0,t.jsxs)("div",{className:"col-span-full mx-16 grid grid-cols-[80px_1fr] grid-rows-[80px_1fr] gap-x-16 ".concat((0,S.A)({"lg:mx-128":null===l.sideImage})).concat((0,S.A)({"!grid-cols-1 !grid-rows-1 ":null===e.image}),"\n                      "),children:[e.image&&(0,t.jsx)("div",{className:"relative col-start-1 row-start-1 h-80 w-80",children:(0,t.jsx)(P.t,{image:e.image,sectionId:e.image.id,className:"self-center rounded-full",sizes:{default:"80px"}})}),(0,t.jsxs)("div",{className:"col-start-2 row-start-1 self-center ".concat((0,S.A)({"!col-start-1 ":null===e.image}),"\n                      "),children:[(0,t.jsx)(n.R2,{bold:!0,classes:"text-black-100",children:e.name}
1),e.title&&(0,t.jsx)(n.fz,{variant:"medium",classes:"text-black-100",children:e.title})]}),(0,t.jsx)("div",{className:"col-span-2 col-start-1 pt-16",children:e.quote&&(0,r.i)(e.quote.json,{renderNode:{[c.BLOCKS.PARAGRAPH]:(e,l)=>(0,t.jsx)(n.fz,{variant:"medium",classes:"text-black-100",children:l})}})})]})},i)})})}),(0,t.jsx)("div",{className:"absolute bottom-0 left-0 z-50 flex w-full justify-center md:left-0 md:w-auto md:justify-start",children:null==o?void 0:o.items.map((e,l)=>(0,t.jsx)("div",{onClick:()=>{var e;return null==(e=a.current)?void 0:e.swiper.slideTo(l)},className:"cursor-pointer",style:{padding:"5px"},children:(0,t.jsx)("div",{style:{minHeight:"10px",minWidth:"10px",backgroundColor:l===i?"#F14157":"#D2D2D3",borderRadius:"50%"}})},l))}),l.sideImage&&(0,t.jsx)("div",{className:"relative col-span-12 my-32 grid h-[330px] items-center justify-items-center self-start md:col-span-6",children:(0,t.jsx)(P.t,{image:l.sideImage,sectionId:l.sideImage.id,className:"rounded-28"})})]})};function lv(e){return(0,t.jsx)(Y.A,{data:e})}function lp(e){return(0,t.jsx)(X,{data:e})}function lj(e,l){var i,a,n,d,r,c,o,u,x,h,v,p,j,f,g,w,N,S,E;let I=(null==(i=e.children)?void 0:i.__typename)||"",L=null;switch(I){case"SynCarousel":n=e.children,L=(0,t.jsx)(lm,{data:n});break;case"Banner":L=lv(e.children);break;case"ShortcutLinks":d=e.children,L=(0,t.jsx)(k,{data:d});break;case"CardCollection":r=e.children.sys.id,L=(0,t.jsx)(A.A,{cardCollectionId:r});break;case"FaqSection":c=e.children.sys.id,L=(0,t.jsx)(y,{id:c});break;case"NewsSection":o=e.children,L=(0,t.jsx)(C.A,{data:o});break;case"PhotoAndTextCard":L=lp(e.children);break;case"HeroBannerCarousel":u=e.children,L=(0,t.jsx)(ei,{data:u});break;case"ExtraAddOns":x=e.children,L=(0,t.jsx)(ed,{data:x});break;case"SinglePackageHeader":h=e.children,L=(0,t.jsx)(ec,{data:h});break;case"TabGroup":v=e.children,L=(0,t.jsx)(eu,{data:v});break;case"TraitsList":p=e.children,L=(0,t.jsx)(ev,{data:p});break;case"PackageSuggestionForm":j=e.children,L=(0,t.jsx)(eB,{data:j});break;case"OrderPackageForm":f=e.children,L=(0,t.jsx)(e0,{data:f});break;case"InfoSet":g=e.children.sys.id,L=(0,t.jsx)(e1.A,{infoSetId:g});break;case"RichTextSection":w=e.children,L=(0,t.jsx)(e2.A,{data:w});break;case"MediaContainer":N=e.children,L=(0,t.jsx)(e6,{data:N});break;case"StaggeredList":S=e.children,L=(0,t.jsx)(e4,{data:S});break;case"QuoteContainer":E=e.children,L=(0,t.jsx)(lh,{data:E});break;default:throw b.t.info("no rendering found for contentful type ".concat(I)),Error("no rendering found for contentful type ".concat(I))}return(0,t.jsx)(s.A,{childrenTypeName:null==(a=e.children)?void 0:a.__typename,sectionId:(0,m.M)(e.id,void 0),theme:(0,m.M)(e.background,""),marginTop:0===e.marginTop?e.marginTop:(null==e?void 0:e.marginTop)||(l?128:32),marginBottom:0===e.marginBottom?e.marginBottom:(null==e?void 0:e.marginBottom)||32,gridType:(0,m.M)(e.gridType,"full"),children:L})}function lf(e,l){let i=e.flatMap(e=>{var l;return null==(l=e.pageSectionCollection)?void 0:l.items});return i.sort((e,i)=>l.indexOf(e.sys.id)-l.indexOf(i.sys.id)),i.map((e,l)=>lj(e,0===l))}},84461:(e,l,i)=>{"use strict";i.d(l,{P:()=>d,u:()=>n});var t=i(33736),s=i(91844);let a=(0,s.createContext)(void 0),n=()=>{let e=(0,s.useContext)(a);if(!e)throw Error("useTwoForOneContext must be used within a TwoForOneProvider");return e},d=e=>{let{children:l}=e,[i,n]=(0,s.useState)(null);return(0,t.jsx)(a.Provider,{value:{activeCard:i,setActiveCard:n},children:l})}},84825:(e,l,i)=>{"use strict";i.d(l,{A:()=>s});var t=i(33736);i(91844);let s=e=>{let{urlLink:l}=e;return(0,t.jsx)(t.Fragment,{children:l&&(0,t.jsx)("video",{playsInline:!0,autoPlay:!0,loop:!0,muted:!0,id:"background-media",style:{minWidth:"100%",minHeight:"100%",objectFit:"cover",width:"100%",height:"100%",top:"50%",left:0,right:0,transform:" translateY(-50%)",position:"absolute"},children:(0,t.jsx)("source",{src:l,type:"video/mp4"})})})}},98324:(e,l,i)=>{"use strict";i.d(l,{A:()=>u});var t=i(33736);i(91844);var s=i(15930),a=i(5925),n=i(44316),d=i(29895),r=i.n(d),c=i(87386),o=i(3638);let u=e=>{var l,i;let{sectionTitle:d,item:u}=e;return u&&u.title?(0,t.jsx)("div",{className:"col-span-12 flex flex-col md:col-span-4",children:(0,t.jsxs)(r
1(),{href:{pathname:"/frettir/[slug]",query:{slug:(0,c.M)(u.slug,"")}},className:"space-y-16",children:[(0,t.jsx)("div",{className:"relative aspect-square",children:u.heroImage&&(0,t.jsx)(n.t,{image:u.thumbnailImage?u.thumbnailImage:u.heroImage,sectionId:d,className:"rounded-28",sizes:{default:"400px"}})}),(0,t.jsx)("div",{className:"flex gap-8 ".concat((0,o.A)({"!h-24":null==u||null==(l=u.tagsCollection)?void 0:l.items})),children:null==u||null==(i=u.tagsCollection)?void 0:i.items.map(e=>(null==e?void 0:e.title)&&(0,t.jsx)(a.A,{label:e.title,type:"pill",colorVariant:"red"},"".concat(d,"-").concat(u.title,"-tag-").concat(e.title)))}),(0,t.jsx)(s.R2,{classes:"justify-self-start",bold:!0,children:u.title})]})}):null}},99376:(e,l,i)=>{"use strict";i.d(l,{A:()=>n});var t=i(33736);i(91844);var s=i(4437),a=i(3638);let n=e=>{let{data:l}=e,i=l.richTextsCollection;return i&&(0,t.jsx)(t.Fragment,{children:(null==i?void 0:i.items)&&(0,t.jsx)("div",{className:"".concat((0,a.A)({"grid lg:grid-flow-col":i.items.length>1})),children:i.items.map(function(e,l){return(null==e?void 0:e.richText)&&(null==e?void 0:e.textAlignment)&&(0,t.jsx)("div",{className:"grid gap-16 py-24 ".concat((0,a.A)({"lg:px-12":i.items.length>1})),children:(0,t.jsx)(s.A,{data:e.richText,textAlignment:e.textAlignment,isFilloutStandardEmbed:!!(null==e?void 0:e.isFilloutStandardEmbed)},l)})})})})}}}]);
2//# sourceMappingURL=76970-cf447c8938dcdd73.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.