1"use strict";(self.webpackChunkrubics_service=self.webpackChunkrubics_service||[]).push([[822],{58747:(e,t,n)=>{n.d(t,{Z:()=>o});const a=new Intl.NumberFormat("nb-NO",{style:"currency",currency:"NOK"}),r=new Intl.DateTimeFormat("nb-NO",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",weekday:"short"}),i=new Intl.DateTimeFormat("nb-NO",{hour:"2-digit",minute:"2-digit"});const o=class{static currency(e){return a.format(e)}static dateTime(e){return r.format(e)}static time(e){return i.format(e)}static dateTimeParts(e){const t={day:"",month:"",weekday:""},n=r.formatToParts(e),a=n.find((e=>"day"===e.type)),i=n.find((e=>"month"===e.type)),o=n.find((e=>"weekday"===e.type));return a&&(t.day=a.value),i&&(t.month=i.value),o&&(t.weekday=o.value),t}}},81002:(e,t,n)=>{n.d(t,{K:()=>g,Z:()=>h});var a=n(67294),r=n(1868),i=n(1721),o=n(38094),l=n(31581),d=n(30513),c=n(70350),m=n(23256),s=n(58747),p=n(95870);const g=({order:e})=>{const t=(0,a.useMemo)((()=>{if((e.payments||[]).length>0)return e.payments[0].reference}),[e]),n=(0,a.useMemo)((()=>(e.payments||[]).reduce(((e,t)=>t.reserved?e+t.reservedSum:e),0)),[e]),i=a.useMemo((()=>0===e.total&&e.orderLines.every((e=>0===e.total&&e.priceType===r.PriceType.ByAppointment))),[e]),c=e.total-n,p=(e.payments||[]).length>1;return a.createElement(a.Fragment,null,!!t&&a.createElement(o.Z,null,a.createElement(l.ZP,{bold:!0},"Betalingsreferanse: ",t)),a.createElement(o.Z,null,a.createElement(d.lX,null,a.createElement(m.i,{variant:"b"},a.createElement("thead",null,a.createElement("tr",null,a.createElement("th",
1null,"Produkt"),a.createElement("th",{align:"right"},"Antall"),a.createElement("th",{align:"right"},"Pris"),a.createElement("th",{align:"right"},"Totalt"))),a.createElement("tbody",null,e.orderLines.map((e=>a.createElement("tr",{key:e._id},a.createElement("td",null,e.name,e.booking&&a.createElement(m.m,null,a.createElement("tr",null,a.createElement("td",null,a.createElement(l.ZP,{variant:"secondary"},a.createElement("em",null,s.Z.dateTime(new Date(e.booking.start))," ","â ",s.Z.time(new Date(e.booking.end))))))),e.productAttributes.length>0&&a.createElement(m.m,null,e.productAttributes.map((e=>a.createElement("tr",{key:e._id},a.createElement("td",null,a.createElement(l.ZP,{variant:"secondary",element:"span"},e.name,": ",e.value)))))),e.customizations.length>0&&a.createElement(m.m,null,e.customizations.map((e=>{let t=e.value;return t&&"object"==typeof t&&"url"in t&&(t=a.createElement("a",{href:e.value.url,target:"_blank",rel:"noopener noreferrer"},e.value.filename)),a.createElement("tr",{key:e._id},a.createElement("td",null,a.createElement(l.ZP,{variant:"secondary",element:"span"},e.label,": ",t,e.total?` (${s.Z.currency(e.total)})`:null)))})))),a.createElement("td",null,e.amount),a.createElement("td",null,0===e.total&&e.priceType===r.PriceType.ByAppointment?"Etter avtale":s.Z.currency(e.subtotal+e.subtotalTax),e.discount>0&&a.createElement(l.ZP,{variant:"secondary"},"- ",s.Z.currency(e.discount)," rabatt")),a.createElement("td",null,0===e.total&&e.priceType===r.PriceType.ByAppointment?"Etter avtale":s.Z.currency(e.total+e.totalTax)))))),a.createElement("tfoot",null,a.createElement("tr",null,a.createElement("td",{className:"right",colSpan:3},a.createElement(l.ZP,{element:"span",bold:!0},"Netto")),a.createElement("td",null,a.createElement(l.ZP,{element:"span",bold:!0},i?"Etter avtale":s.Z.currency(e.orderLines.reduce(((e,t)=>e+t.total),0))))),a.createElement("tr",null,a.createElement("td",{className:"right p-0",colSpan:3},a.createElement(l.ZP,{element:"span",bold:!0},"Frakt")),a.createElement("td",{className:"p-0"},a.createElement(l.ZP,{element:"span",bold:!0},s.Z.currency(e.totalShipping-e.totalShippingTax)))),a.createElement("tr",null,a.createElement("td",{className:"right p-0",colSpan:3},a.createElement(l.ZP,{element:"span",bold:!0},"MVA")),a.createElement("td",{className:"p-0"},a.createElement(l.ZP,{element:"span",bold:!0},s.Z.currency(e.totalTax)))),a.createElement("tr",null,a.createElement("td",{className:"right p-0",colSpan:3},a.createElement(l.ZP,{element:"span",bold:!0},"Total")),a.createElement("td",{className:"p-0"},a.createElement(l.ZP,{element:"span",bold:!0},i?"Etter avtale":s.Z.currency(e.total)))),p&&n>0&&a.createElement("tr",null,a.createElement("td",{className:"right p-0",colSpan:3},a.createElement(l.ZP,{element:"span",bold:!0},"Betalt")),a.createElement("td",{className:"p-0"},a.createElement(l.ZP,{element:"span",bold:!0},s.Z.currency(n)))),p&&a.createElement("tr",null,a.createElement("td",{className:"right p-0",colSpan:3},a.createElement(l.ZP,{element:"span",bold:!0},"Resterende Ã¥ betale")),a.createElement("td",{className:"p-0"},a.createElement(l.ZP,{element:"span",bold:!0},s.Z.currency(c)))))))))},h=({store:e,mockedOrder:t})=>{const[n,m]=(0,a.useState)(null),s=t||n,h=a.useCallback((async()=>{const t=await r.RubicsRequest.fetch({endpoint:`${r.STOREFRONT_ENDPOINT}/orders/latest`});if(m(t),"true"===e.pageContext.query.track){const e=3e5;new Date(t.timestamp).getTime()>Date.now()-e&&await r.Tracker.purchase(t)}}),[]);return(0,a.useEffect)((()=>{h()}),[]),a.useEffect((()=>{document.dispatchEvent(new CustomEvent("receipt-ready"))}),[]),a.createElement(d.PQ,null,a.createElement(d.P6,null,a.createElement(d.$V,null,a.createElement(i.Z,null,a.createElement(o.Z,null,a.createElement(l.ZP,{variant:"title"},"Takk for handelen"),a.createElement(l.ZP,{variant:"secondary",bottomGutter:"normal"},"Oversikt over din bestilling"),a.createElement(c.Z,null)),s&&a.createElement(g,{order:s})),a.createElement(d.On,null,a.createElement("a",{href:"/"},p.x,a.createElement("span",null,"Til forsiden"))))))}},30513:(e,t,n)=>{n.d(t,{$V:()=>d,AP:()=>E,AS:()=>f,Eh:()=>x,IB:()=>k,JT:()=>D,KW:()=>P,OT:()=>u,On:()=>j,P6:()=>c,PQ:()=>m,PY:()=>Z,S4:()=>S,TR:()=>p,UU:()=>B,UV:()=>N,VY:()=>y,WB:()=>w,Xn:()=>b,YT:()=>C,bE:()=>v,h4:()=>s,hS:()=>i,im:()=>l,lX:()=>G,mx:()=>z,nz:()=>o,ou:()=>O,pP:()=>h,qN:()=>T,rj:()=>g,wY:()=>I});var a=n(12788);const r="700px",i="1000px",o=(0,a.createGlobalStyle)(["html{line-height:1.5;}body{margin:0;padding:0;background-color:#fff;color:rgba(0,0,0,0.95);-webkit-font-smoothing:antialiased;font-family:'Open Sans',sans-serif;}a{text-decoration:none;}*{box-sizing:border-box;}input,textarea,button,label,a,::placeholder{font-family:'Open Sans',sans-serif;font-size:1rem;}"]),l=a.default.div.withConfig({componentId:"sc-9b0x30-0"})(["width:100%;margin:0 auto;"]),d=(0,a.default)(l).withConfig({componentId:"sc-9b0x30-1"})(["max-width:1200px;"]),c=a.default.div.withConfig({componentId:"sc-9b0x30-2"})(["margin:0 ",";@media all and (min-width:","){margin:0 ",";}"],(e=>e.theme.spacing.normal),i,(e=>e.theme.spacing.large)),m=a.default.div.withConfig({componentId:"sc-9b0x30-3"})(["margin:"," 0;@media all and (min-width:","){margin:"," 0;}"],(e=>e.theme.spacing.normal),i,(e=>e.theme.spacing.large)),s=a.default.div.withConfig({componentId:"sc-9b0x30-4"})(["display:flex;align-items:flex-end;padding:",";width:100%;@media all and (min-width:","){max-width:",";}"],(e=>e.theme.spacing.normal),i,r),p=a.default.img.withConfig({componentId:"sc-9b0x30-5"})(["display:block;width:100px;margin:0 auto;@media all and (min-width:","){height:36px;width:auto;margin:0 "," 0 0;}"],i,(e=>e.theme.spacing.normal)),g=a.default.div.withConfig({componentId:"sc-9b0x30-6"})(["display:grid;background-color:",";min-height:100vh;grid-template-areas:'summary' 'header' 'content' '.';grid-template-rows:min-content min-content 1fr max-content;> :nth-child(1){grid-area:header;}> :nth-child(3){grid-area:content;}> :nth-child(4){grid-area:summary;}@media all and (min-width:","){grid-template-areas:'header .' 'content summary';grid-template-rows:100px 1fr;grid-template-columns:0.7fr 0.5fr;}"],(e=>e.theme.color.background),i),h=a.default.div.withConfig({componentId:"sc-9b0x30-7"})(["display:flex;justify-content:flex-end;background-color:",";border-right:2px solid ",";"],(e=>
1e.theme.color.contentBackground),(e=>e.theme.color.dimBorder)),u=a.default.div.withConfig({componentId:"sc-9b0x30-8"})(["width:100%;padding:",";@media all and (min-width:","){padding:",";padding-right:",";max-width:",";}"],(e=>e.theme.spacing.small),i,(e=>e.theme.spacing.normal),(e=>e.theme.spacing.large),r),f=a.default.div.withConfig({componentId:"sc-9b0x30-9"})(["@media all and (min-width:","){display:flex;justify-content:flex-start;}"],i),b=a.default.div.withConfig({componentId:"sc-9b0x30-10"})(["width:100%;padding:",";@media all and (min-width:","){padding:",";padding-left:",";max-width:",";}"],(e=>e.theme.spacing.small),i,(e=>e.theme.spacing.normal),(e=>e.theme.spacing.large),"500px"),w=a.default.a.withConfig({componentId:"sc-9b0x30-11"})(["width:100%;border-bottom:1px solid rgba(0,0,0,0.05);text-decoration:none;padding:",";display:flex;justify-content:space-between;align-items:center;cursor:pointer;background-color:#fff;div{display:flex;align-items:center;}@media all and (min-width:","){display:none;}"],(e=>e.theme.spacing.normal),i),x=a.default.div.withConfig({componentId:"sc-9b0x30-12"})(["margin-right:0.5rem;svg{transition:0.15s ease-in-out;transform:rotate(",");width:15px;height:15px;}"],(e=>e.open?"180deg":"0deg")),y=a.default.div.withConfig({componentId:"sc-9b0x30-13"})(["width:100%;max-width:100%;",";",";@media all and (min-width:","){padding:0;}"],(e=>e.right&&(0,a.css)(["margin-top:",";@media all and (min-width:","){margin-top:0;}"],(e=>e.theme.spacing.normal),i)),(e=>e.hideOnMobile&&(0,a.css)(["display:none;@media all and (min-width:","){display:block;}",";"],i,e.open&&(0,a.css)(["display:block;"]))),i),E=a.default.ul.withConfig({componentId:"sc-9b0x30-14"})(["list-style-type:none;margin:0;padding:0;"]),v=a.default.li.withConfig({componentId:"sc-9b0x30-15"})(["display:flex;padding:"," 0;&:not(:last-child){border-bottom:1px solid rgba(0,0,0,0.05);}&:first-child{padding-top:0;}&:last-child{padding-bottom:0;}"],(e=>e.theme.spacing.normal)),k=a.default.div.withConfig({componentId:"sc-9b0x30-16"})(["margin-top:",";padding:",";background-color:#fff;display:flex;align-items:center;.icon{margin-right:1rem;height:25px;width:25px;display:flex;justify-content:center;align-items:center;border:1px solid ",";border-radius:50%;svg{width:15px;height:15px;fill:",";}}"],(e=>e.theme.spacing.normal),(e=>e.theme.spacing.normal),(e=>e.theme.color.success),(e=>e.theme.color.success)),C=a.default.ul.withConfig({componentId:"sc-9b0x30-17"})(["padding:0;list-style:none;"]),I=a.default.span.withConfig({componentId:"sc-9b0x30-18"})(["display:flex;justify-content:space-between;"]),Z=a.default.div.withConfig({componentId:"sc-9b0x30-19"})(["width:60px;height:60px;"]),P=a.default.div.withConfig({componentId:"sc-9b0x30-20"})(["position:relative;margin-right:1rem;span{position:absolute;display:flex;justify-content:center;align-items:center;height:20px;width:20px;border-radius:50%;background-color:rgb(120,120,120);color:#fff;top:-5px;right:-5px;font-size:0.65rem;font-weight:bold;}"]),T=a.default.img.withConfig({componentId:"sc-9b0x30-21"})(["display:block;border:1px solid rgba(0,0,0,0.05);border-radius:4px;"]),N=a.default.div.withConfig({componentId:"sc-9b0x30-22"})(["margin-right:0.64rem;width:100%;"]),z=a.default.div.withConfig({componentId:"sc-9b0x30-23"})(["display:flex;"]),O=a.default.div.withConfig({componentId:"sc-9b0x30-24"})(["margin-left:auto;"]),S=a.default.div.withConfig({componentId:"sc-9b0x30-25"})([""]),B=a.default.div.withConfig({componentId:"sc-9b0x30-26"})(["display:flex;justify-content:space-between;"]),D=a.default.div.withConfig({componentId:"sc-9b0x30-27"})(["display:flex;input{flex:1;}button{margin-left:0.5rem;}"]),j=a.default.div.withConfig({componentId:"sc-9b0x30-28"})(["margin-top:1rem;a{color:",";display:flex;align-items:center;svg{height:12px;width:12px;transform:rotate(90deg);margin-right:0.5rem;fill:",";}}"],(e=>e.theme.color.primary),(e=>e.theme.color.primary)),G=a.default.div.withConfig({componentId:"sc-9b0x30-29"})(["overflow-x:auto;overflow-y:hidden;white-space:nowrap;"])},93053:(e,t,n)=>{n.d(t,{hE:()=>o,zx:()=>i});var a=n(12788);const r=(0,a.css)(["padding:0.5rem 0.9rem;text-decoration:none;cursor:pointer;border:1px solid ",";background:",";color:",";font-weight:700;border-radius:4px;transition:background 0.15s ease-in-out,color 0.15s ease-in-out;&:disabled{pointer-events:none;opacity:0.5;}&:hover{background:transparent;color:",";}",";"],(e=>e.theme.color.primary),(e=>e.theme.color.primary),(e=>e.theme.color.onPrimary),(e=>e.theme.color.primary),(e=>e.outlined&&(0,a.css)(["background:transparent;color:",";&:hover{background:",";color:",";}"],(e=>e.theme.color.primary),(e=>e.theme.color.primary),(e=>e.theme.color.onPrimary)))),i=a.default.button.withConfig({componentId:"sc-1gpzcgr-0"})(["",";"],r),o=(a.default.a.withConfig({componentId:"sc-1gpzcgr-1"})(["",";"],r),a.default.div.withConfig({componentId:"sc-1gpzcgr-2"})(["display:flex;justify-content:",";width:100%;",";",";button{&:not(:last-of-type){margin-right:0.75rem;}}"],(e=>e.align?e.align:"flex-start"),(e=>e.topGutter&&(0,a.css)(["margin-top:1rem;"])),(e=>e.bottomGutter&&(0,a.css)(["margin-bottom:1rem;"]))))},1721:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(12788),r=n(30513);const i=a.default.div.withConfig({componentId:"sc-1gd3zhx-0"})(["border:1px solid rgba(0,0,0,0.05);background-color:#ffffff;border-radius:4px;padding:",";",";",";",";@media all and (min-width:","){padding:",";}"],(e=>e.theme.spacing.small),(e=>e.outlined&&(0,a.css)(["background-color:transparent;"])),(e=>e.noBorder&&(0,a.css)(["border:none;"])),(e=>"status"===e.variant&&(0,a.css)(["background-color:",";"],e.theme.color.success)),r.hS,(e=>e.theme.spacing.normal))},70350:(e,t,n)=>{n.d(t,{Z:()=>a});const a=n(12788).default.div.withConfig({componentId:"sc-1k5ni6l-0"})(["width:100%;height:1px;background-color:rgba(0,0,0,0.05);margin:"," 0;"],(e=>e.theme.spacing.normal))},38094:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(12788);const r=a.default.div.withConfig({componentId:"sc-17bzxy1-0"})(["margin:1rem 0;",";"],(e=>e.hugTop&&(0,a.css)(["margin-top:0;"])))},23256:(e,t,n)=>{n.d(t,{i:()=>r,m:()=>i});var a=n(12788);const r=a.default.table.withConfig({componentId:"sc-sql3zk-0"})(["border-collapse:collapse;width:100%;td,th{text-align:left;padding:"," ",";vertical-align:middle;border:1px solid transparent;border-bottom-color:rgba(0,0,0,0.05);@media all and (min-width:600px){padding:"," 0;}",";&:not(:first-child){padding-left:0;}&:last-child{text-align:right;}}"," "," td.right,th.right{text-align:right;}td.p-0,th.p-0{padding-top:0;}tfoot{td{border-bottom-color:transparent;padding-bottom:0;padding-top:",";}}"],(e=>e.theme.spacing.small),(e=>e.theme.spacing.normal),(e=>e.theme.spacing.small),(e=>"b"===e.variant&&(0,a.css)(["@media all and (min-width:600px){padding:"," ",";}"],(e=>e.theme.spacing.small),(e=>e.theme.spacing.normal))),(e=>"a"===e.variant&&(0,a.css)(["margin:0 -","rem;width:calc(100% + "," * 2);@media all and (min-width:600px){margin:0;width:100%;}"],(e=>e.theme.spacing.normal),(e=>e.theme.spacing.normal))),(e=>"b"===e.variant&&(0,a.css)(["thead{background-color:",";}td,th{vertical-align:top;&:first-child{padding-left:0;}&:last-child{padding-right:0;}}"],(e=>e.theme.color.background))),(e=>e.theme.spacing.small)),i=a.default.table.withConfig({componentId:"sc-sql3zk-1"})(["border-collapse:collapse;max-width:400px;td{padding:0;vertical-align:bottom;border:none !important;padding:0 !important;text-align:left !important;}"])},31581:(e,t,n)=>{n.d(t,{ZP:()=>c,gk:()=>d});var a=n(67294),r=n(12788);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i.apply(this,arguments)}const o=(0,r.css)(["",";",";",";",";"],(e=>!!e.topGutter&&(0,r.css)(["margin-top:",";"],e.theme.spacing[e.topGutter])),(e=>!!e.topGutterDesktop&&(0,r.css)(["@media all and (min-width:600px){margin-top:",";}"],e.theme.spacing[e.topGutterDesktop])),(e=>!!e.bottomGutter&&(0,r.css)(["margin-bottom:",";"],e.theme.spacing[e.bottomGutter])),(e=>!!e.bottomGutterDesktop&&(0,r.css)(["@media all and (min-width:600px){margin-bottom:",";}"],e.theme.spacing[e.bottomGutterDesktop]))),l=r.default.p.withConfig({componentId:"sc-hqe5yi-0"})(["display:block;margin:0;font-weight:400;font-size:1em;",";color:",";",";",";",";",";",";"],o,(e=>
1e.theme.color.onContentBackground),(e=>"title"===e.variant&&(0,r.css)(["font-size:1.465em;font-weight:700;a{font-size:1.465em;font-weight:700;}"])),(e=>"secondary"===e.variant&&(0,r.css)(["font-size:0.8em;font-weight:400;a{font-size:inherit;font-weight:inherit;}"])),(e=>e.textAlign&&(0,r.css)(["text-align:",";"],e.textAlign)),(e=>e.bold&&(0,r.css)(["font-weight:700;a{font-weight:inherit;}"])),(e=>e.color&&(0,r.css)(["color:",";"],e.theme.color[e.color]))),d=r.default.span.withConfig({componentId:"sc-hqe5yi-1"})(["color:red;"]),c=({element:e,className:t,children:n,...r})=>a.createElement(l,i({as:e||"p",className:t},r),n)},83801:(e,t,n)=>{function a(e){return{color:{primary:e&&e.color.primary||"#1D7E81",onPrimary:e&&e.color.onPrimary||"#ffffff",secondary:e&&e.color.secondary||"#1D7E81",background:"#f7f7f7",contentBackground:"#ffffff",onContentBackground:"rgba(0,0,0,0.95)",onContentBackgroundDim:"rgba(0,0,0,0.6)",border:"rgba(0, 0, 0, 0.2)",dimBorder:"rgba(0, 0, 0, 0.08)",error:"#D6170C",success:"#70b77e"},spacing:{small:"0.5rem",normal:"1rem",large:"1.5rem"}}}n.d(t,{Z:()=>a})},95870:(e,t,n)=>{n.d(t,{e:()=>i,x:()=>r});var a=n(67294);const r=a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":!0},a.createElement("path",{d:"M19.1 6.6L12 13.7 4.9 6.6 2.1 9.5l9.9 9.9 9.9-9.9z"})),i=a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":!0},a.createElement("style",null),a.createElement("path",{d:"M19.62 4.28L8.16 15.75l-4.14-4.13-1.86 1.86 6 6L21.49 6.15l-1.87-1.87",id:"Layer_2"}))}}]);
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.