1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="24746f5c-7614-9e7b-e6c1-13cb8950a5fc")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,817118,e=>{e.v({"horizontal-rule":"HorizontalRule-module-scss-module__-vRJva__horizontal-rule","horizontal-rule--left":"HorizontalRule-module-scss-module__-vRJva__horizontal-rule--left","horizontal-rule--short":"HorizontalRule-module-scss-module__-vRJva__horizontal-rule--short"})},662567,e=>{"use strict";var t=e.i(391398),r=e.i(272043),a=e.i(817118);e.s(["default",0,({className:e,short:l,left:n,...s})=>(0,t.jsx)("hr",{className:(0,r.default)(a.default["horizontal-rule"],{[e||""]:e,[a.default["horizontal-rule--short"]]:l,[a.default["horizontal-rule--left"]]:n}),...s})])},204625,e=>{e.v({clickAndCollectModal__container:"ClickAndCollectModal-module-scss-module__buHXsG__clickAndCollectModal__container",clickAndCollectModal__content:"ClickAndCollectModal-module-scss-module__buHXsG__clickAndCollectModal__content",clickAndCollectModal__footer:"ClickAndCollectModal-module-scss-module__buHXsG__clickAndCollectModal__footer",clickAndCollectModal__footer__button:"ClickAndCollectModal-module-scss-module__buHXsG__clickAndCollectModal__footer__button",clickAndCollectModal__header:"ClickAndCollectModal-module-scss-module__buHXsG__clickAndCollectModal__header"})},781462,e=>{e.v({contentBlock__buttons:"ContentBlock-module-scss-module__q1DCdG__contentBlock__buttons",contentBlock__buttonsContainer:"ContentBlock-module-scss-module__q1DCdG__contentBlock__buttonsContainer",contentBlock__image:"ContentBlock-module-scss-module__q1DCdG__contentBlock__image",contentBlock__image__reverse:"ContentBlock-module-scss-module__q1DCdG__contentBlock__image__reverse",contentBlock__image__vertical:"ContentBlock-module-scss-module__q1DCdG__contentBlock__image__vertical"})},198424,e=>{"use strict";var t=e.i(391398),r=e.i(272043),a=e.i(471168),l=e.i(39556),n=e.i(608747),s=e.i(326779),o=e.i(158646),i=e.i(111892),d=e.i(696994),u=e.i(781462),c=e.i(106986);e.s(["default",0,({image:e,title:_,titleTag:f="h2",text:m,buttons:p,badge:h,variant:g="gray",layout:v="rich-card-large",orientation:x=!0})=>{let y=(0,t.jsx)(n.Card.Illustration,{className:(0,r.default)(u.default.contentBlock__image,{[u.default.contentBlock__image__vertical]:"rich-card"===v,[u.default.contentBlock__image__reverse]:!x&&"rich-card-large"===v}),inset:"all",children:(0,t.jsx)(o.Image,{src:e.url,alt:e.title,loading:"lazy"})}),b=(0,t.jsxs)(t.Fragment,{children:[h&&(0,t.jsx)(n.Card.Slot,{children:(0,t.jsx)(c.default,{color:h.color,textColor:h.textColor,name:h.text})}),(0,t.jsxs)(n.Card.Content,{children:[(0,t.jsx)(n.Card.Heading,{as:f,children:_}),(0,t.jsx)(d.TextSpacing,{children:(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:m}})}),p&&(0,t.jsx)("div",{className:u.default.contentBlock__buttonsContainer,children:p.map(e=>"link"===e.kind?(0,t.jsx)(a.Box,{mt:"200",children:(0,t.jsxs)(i.Link,{href:e.url,variant:"text",children:[e.text,(0,t.jsx)(s.Icon,{name:"arrow-right","aria-hidden":"true",focusable:"false"})]})},e.id):(0,t.jsxs)(l.Button,{onClick:()=>{e.url&&window.location.assign(e.url)},className:u.default.contentBlock__buttons,variant:e.kind,children:[(0,t.jsx)("span",{children:e.text})," ",(0,t.jsx)(s.Icon,{name:"arrow-right","aria-hidden":"true",focusable:"false"})]},e.id))})]})]});return(0,t.jsxs)(n.Card,{className:u.default.contentBlock,layout:v,variant:g,children:[x?y:b,x?b:y]})}])},53701,e=>{"use strict";var t=e.i(391398),r=e.i(126019);e.s(["default",0,({energyClassBadge:e})=>e?(0,t.jsx)(r.default,{width:55,height:30,src:{A:"/product-assets-public/static/icons/A-energyClass.svg",B:"/product-assets-public/static/icons/B-energyClass.svg",C:"/product-assets-public/static/icons/C-energyClass.svg",D:"/product-assets-public/static/icons/D-energyClass.svg",E:"/product-assets-public/static/icons/E-energyClass.svg",F:"/product-assets-public/static/icons/F-energyClass.svg",G:"/product-assets-public/static/icons/G-energyClass.svg"}[e],alt:`Energiklasse: ${e}`}):null])},200420,e=>{e.v({flashText:"FlashText-module-scss-module__c-eDsW__flashText",flashText__content:"FlashText-module-scss-module__c-eDsW__flashText__content"})},106986,e=>{"use strict";var t=e.i(391398),r=e.i(200420);e.s(["default",0,({color:e,textColor:a,name:l})=>(0,t.jsx)("div",{className:r.default.flashText,children:(0,t.jsx)("div",{className:r.default.flashText__content,style:{backgroundColor:e,color:a||"#fff"},children:l})})])},410276,e=>{e.v({loginCard:"LoginCard-module-scss-module__-ZBIgW__loginCard",loginCardSkeleton:"LoginCard-module-scss-module__-ZBIgW__loginCardSkeleton",loginCardSkeleton__button:"LoginCard-module-scss-module__-ZBIgW__loginCardSkeleton__button",loginCardSkeleton__heading:"LoginCard-module-scss-module__-ZBIgW__loginCardSkeleton__heading",loginCardSkeleton__icon:"LoginCard-module-scss-module__-ZBIgW__loginCardSkeleton__icon",loginCardSkeleton__line:"LoginCard-module-scss-module__-ZBIgW__loginCardSkeleton__line",loginCardSkeleton__lineShort:"LoginCard-module-scss-module__-ZBIgW__loginCardSkeleton__lineShort",loginCard__heading:"LoginCard-module-scss-module__-ZBIgW__loginCard__heading",loginCard__text:"LoginCard-module-scss-module__-ZBIgW__loginCard__text"})},530055,665677,e=>{"use strict";var t=e.i(391398),r=e.i(39556),a=e.i(608747),l=e.i(326779),n=e.i(136549),s=e.i(828764),o=e.i(734587),i=e.i(515747),d=e.i(191788),u=e.i(56206),c=e.i(471168);let _="_teddy-skeleton_11jot_1",f=d.default.forwardRef(({className:e,radius:r="md",loading:a=!0,...l},n)=>{let s=(0,u.default)([_],e);return a?(0,t.jsx)(c.Box,{"aria-hidden":!0,...l,radius:r,ref:n,className:s}):l.children});f.displayName="Root",f.displayName="Skeleton",e.s(["Skeleton",0,f],665677);var m=e.i(410276);e.i(596970);var p=e.i(890158);e.s(["default",0,({onClick:e=()=>void 0,variant:d="gray",children:u,version:c="old",content:_,icon:h,isLoading:g=!1,title:v})=>{let x=(0,p.useGetIdentityProfile)();return"new"===c&&g?(0,t.jsxs)(a.Card,{variant:d,layout:"navigation-horizontal-small",className:m.default.loginCardSkeleton,"aria-hidden":!0,
2children:[(0,t.jsx)(a.Card.Illustration,{children:(0,t.jsx)(f,{className:m.default.loginCardSkeleton__icon})}),(0,t.jsx)(a.Card.Heading,{children:(0,t.jsx)(f,{className:m.default.loginCardSkeleton__heading})}),(0,t.jsxs)(a.Card.Content,{children:[(0,t.jsx)(f,{className:m.default.loginCardSkeleton__line}),(0,t.jsx)(f,{className:m.default.loginCardSkeleton__lineShort})]}),(0,t.jsx)(a.Card.Button,{className:m.default.loginCardSkeleton__button,"aria-label":"Laster innloggingskort",iconOnly:!0,disabled:!0,children:(0,t.jsx)(i.VisuallyHidden,{children:"Laster innloggingskort"})})]}):"new"===c?(0,t.jsxs)(a.Card,{variant:d,layout:"navigation-horizontal-small",children:[(0,t.jsx)(a.Card.Illustration,{children:(0,t.jsx)(l.Icon,{name:h,size:"lg",color:"telia-logo"===h?"#990AE3":void 0,"aria-hidden":"true",focusable:"false"})}),(0,t.jsx)(a.Card.Heading,{children:v}),_&&(0,t.jsx)(a.Card.Content,{children:(0,t.jsx)(n.Text,{asChild:!0,variant:"paragraph-100",children:(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:_}})})}),(0,t.jsx)(a.Card.Button,{asChild:!0,"aria-label":"Logg inn",iconOnly:!0,children:(0,t.jsxs)(r.Button,{size:"md",onClick:async()=>{await e(),await x.signIn()},children:[(0,t.jsx)(i.VisuallyHidden,{children:"Logg inn"}),(0,t.jsx)(l.Icon,{name:"arrow-right","aria-hidden":"true",focusable:"false"})]})})]}):(0,t.jsxs)("section",{className:m.default.loginCard,children:[(0,t.jsx)(o.Heading,{className:m.default.loginCard__heading,as:"h2",children:"Allerede kunde?"}),(0,t.jsx)(a.Card,{variant:d,children:(0,t.jsxs)(a.Card.Content,{children:[(0,t.jsx)(n.Text,{className:m.default.loginCard__text,variant:"paragraph-100",children:"Logg inn for å se hvilke fordeler og rabatter du kan få."}),(0,t.jsx)(s.Flex,{width:"100%",justify:"start",mt:"200",mb:"200",children:(0,t.jsxs)(r.Button,{variant:"secondary",size:"md",onClick:async()=>{await e(),await x.signIn()},children:[(0,t.jsx)("span",{children:"Logg inn"}),(0,t.jsx)(l.Icon,{name:"login","aria-hidden":"true",focusable:"false"})]})}),u]})})]})}],530055)},618399,463376,e=>{"use strict";var t=e.i(391398),r=e.i(272043),a=e.i(906184);let l=({backgroundColor:e="grey",color:l="purple",noMarginTop:n,noMarginBottom:s})=>(0,t.jsx)("div",{className:(0,r.default)(a.default.animatedProgressBar,{[a.default[`animatedProgressBarColor__${e}`]]:e,[a.default.animatedProgressBar__noMarginTop]:n,[a.default.animatedProgressBar__noMarginBottom]:s}),children:(0,t.jsx)("div",{className:(0,r.default)(a.default.indeterminate,{[a.default[`animatedProgressBarColor__${l}`]]:l})})});e.s(["default",0,({isFetchingData:e,backgroundColor:r="lightGrey",standByColor:a="white",noMarginTop:n,noMarginBottom:s})=>(0,t.jsxs)(t.Fragment,{children:[e&&(0,t.jsx)(l,{backgroundColor:r,noMarginTop:n,noMarginBottom:s}),!e&&(0,t.jsx)(l,{backgroundColor:a,color:a,noMarginTop:n,noMarginBottom:s})]})],618399);var n=e.i(116142),s=e.i(958678);e.i(135947);let o="I Telia sin nettbutikk for bedrifter får du et stort utvalg av mobiltelefoner fra Apple, Samsung, Sony og Huawei.",i="Telia, nettbutikk, iPhone, Samsung, Huawei, Sony, mobiletelefoner, handsets";e.i(459499);var d=e.i(854137);e.s(["default",0,({title:e,realm:r,description:a=o,keywords:l=i,canonicalUrl:u,urlPath:c,imageUrl:_,useDefaultImage:f=!1,useDefaultTitle:m=!0,isFrontpage:p=!1,useNoIndex:h=!1,productGeneral:g,productRating:v,productReview:x,productOffer:y,productBreadcrumbs:b,productListItems:S,productGroupSchema:C,howToSchema:w,faqSchema:j,webPageSchema:k,contentCreatedAt:I,contentUpdatedAt:T})=>{let N,B,E,R="https://www.telia.no",L=r===d.Realm.B2B?" | Telia Bedrift Nettbutikk":" | Telia",P=`${R}${c}`;L=m?L:"";let M=p?L:`${e}${L}`,A=f?`${R}/public/images/telia-logo.png`:_,D=[{name:"description",content:a},{content:l,name:"keywords"},{name:"og:title",content:M},{name:"og:type",content:"website"},{name:"og:locale",content:"nb_NO"},{name:"og:description",content:a},{name:"og:url",content:P}],O=[{rel:"dns-prefetch",href:"https://s3.amazonaws.com"},{rel:"dns-prefetch",href:"https://images.ctfassets.net"},{rel:"preconnect",href:"https://s3.amazonaws.com",crossOrigin:"anonymous"}
2,{rel:"preconnect",href:"https://images.ctfassets.net",crossOrigin:"anonymous"},...u?[{rel:"canonical",href:u}]:[]];A&&("//"===A.substring(0,2)&&(A=`https:${A}`),D=D.concat([{name:"og:image",content:A}])),h&&(D=D.concat([{name:"robots",content:"noindex"}]));let $={},H={},V={},F=null,G=null,W=null;g&&(v||x||y)&&(G={"@context":"https://schema.org","@id":g.id,"@type":"Product",brand:{"@type":"Brand",name:g.brand},name:g.name,url:g.url,sku:g.sku,gtin:g.gtin,description:g.description||"",color:g.colors||[],image:g.images||[]}),v&&($={aggregateRating:{"@type":"AggregateRating",bestRating:5,ratingCount:`${v.ratingCount}`,ratingValue:v.rating,reviewCount:parseInt(`${v.reviewCount}`,10)>0?`${v.reviewCount}`:void 0,worstRating:1}}),x&&(H={review:(0,n.default)(x.reviews,0,5).map(e=>({"@type":"Review",author:{"@type":"Person",name:e.customerName},datePublished:e.reviewDate,isBasedOn:x.url,reviewBody:e.review,reviewRating:{"@type":"Rating",bestRating:5,ratingValue:e.rating,worstRating:1}}))}),y&&(V={offers:{"@type":"Offer",url:y.url,price:y.price||"",priceCurrency:"NOK",availability:y.availability,itemCondition:y.condition}},y.lowPrice&&y.highPrice&&(V.offers={...V.offers,"@type":"AggregateOffer",price:void 0,lowPrice:y.lowPrice,highPrice:y.highPrice})),b&&(F={"@context":"https://schema.org","@type":"BreadcrumbList","@id":`https://www.telia.no${c}#breadcrumb`,itemListElement:b.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.name,item:`https://www.telia.no${e.link}`}))}),S&&(W={"@context":"https://schema.org","@type":"ItemList",itemListElement:S.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.name,url:`https://www.telia.no${e.url}`}))});let z=b?`https://www.telia.no${c}#breadcrumb`:void 0,K=k||(N="https://www.telia.no",B=`${N}${c}`,E={"@context":"https://schema.org","@type":"WebPage","@id":`${B}#webpage`,name:M,description:a,url:B,inLanguage:"nb",isPartOf:{"@type":"WebSite","@id":`${N}/#website`,name:"Telia"},...I&&{datePublished:I.split("T")[0]},...T&&{dateModified:T.split("T")[0]}},_&&(E.primaryImageOfPage={"@type":"ImageObject",url:_}),z&&(E.breadcrumb={"@id":z}),E);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s.default,{children:[(0,t.jsx)("title",{children:M}),D.map(e=>(0,t.jsx)("meta",{name:e.name,content:e.content},e.name)),O.map(e=>(0,t.jsx)("link",{rel:e.rel,href:e.href,crossOrigin:e.crossOrigin},`${e.rel}${e.href}`))]}),G&&(0,t.jsx)("script",{id:"product-ldjson",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({...G,...$,...V,...H})}},"ld+json-schema"),F&&(0,t.jsx)("script",{id:"breadcrumbs-ldjson",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({...F})}},"ld+json-schema-breadcrumbs"),W&&(0,t.jsx)("script",{id:"listitems-ldjson",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({...W})}},"ld+json-schema-list-items"),C&&(0,t.jsx)("script",{id:"product-group-ldjson",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(C)}},"ld+json-product-group"),w&&(0,t.jsx)("script",{id:"howto-ldjson",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(w)}},"ld+json-howto"),j&&(0,t.jsx)("script",{id:"faq-ldjson",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(j)}},"ld+json-faq"),(0,t.jsx)("script",{id:"webpage-ldjson",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(K)}},"ld+json-webpage")]})}],463376)},324773,e=>{e.v({flexSelfStart:"SubscriptionTextBlock-module-scss-module__albxSq__flexSelfStart",subscriptionTextBlock:"SubscriptionTextBlock-module-scss-module__albxSq__subscriptionTextBlock",subscriptionTextBlock__backgroundBorder:"SubscriptionTextBlock-module-scss-module__albxSq__subscriptionTextBlock__backgroundBorder",subscriptionTextBlock__backgroundColor:"SubscriptionTextBlock-module-scss-module__albxSq__subscriptionTextBlock__backgroundColor",subscriptionTextBlock__desktopCenter:"SubscriptionTextBlock-module-scss-module__albxSq__subscriptionTextBlock__desktopCenter",subscriptionTextBlock__heading:"SubscriptionTextBlock-module-scss-module__albxSq__subscriptionTextBlock__heading",subscriptionTextBlock__headingContainer:"SubscriptionTextBlock-module-scss-module__albxSq__subscriptionTextBlock__headingContainer",subscriptionTextBlock__headingIcon:"SubscriptionTextBlock-module-scss-module__albxSq__subscriptionTextBlock__headingIcon",subscriptionTextBlock__uspIcon:"SubscriptionTextBlock-module-scss-module__albxSq__subscriptionTextBlock__uspIcon",subscriptionTextBlock__uspItem:"SubscriptionTextBlock-module-scss-module__albxSq__subscriptionTextBlock__uspItem",subscriptionTextBlock__usps:"SubscriptionTextBlock-module-scss-module__albxSq__subscriptionTextBlock__usps",subscriptionTextBlock__usps__grid:"SubscriptionTextBlock-module-scss-module__albxSq__subscriptionTextBlock__usps__grid",subscriptionTextBlock__usps__row:"SubscriptionTextBlock-module-scss-module__albxSq__subscriptionTextBlock__usps__row"})},523416,e=>{"use strict";var t=e.i(391398),r=e.i(191788),a=e.i(734587),l=e.i(326779),n=e.i(39556),s=e.i(272043),o=e.i(961572);e.i(135947);var i=e.i(845295);e.i(596970);var d=e.i(918473),u=e.i(324773),c=e.i(203828);let _=({textBlock:e,usp:r,setModal:a,subscriptionSpeed:n,doubleSpeed:s})=>{var o;let i=(({subscriptionSpeed:e,doubleSpeed:t,description:r=""})=>{let a=/\[\$\$\$.*\]/gm.exec(r);if(a&&a.length>0){let e=a[0]||"",[,t,l,n]=e.substring(1,e.length-1).split(":");if("MODAL"===t)return r.replace(a[0],`<a data-modal-id="${l}" class="link" href="#">${n}</a>`)}return r.includes("[SPEED]")?t?r.replace("[SPEED]",`<span class="subscriptionSpeedStrikethrough">${e?.amount} ${e?.unit}</span>
3 <span>${t} ${e?.unit}</span> 4 `):r.replace("[SPEED]",`${e?.amount} ${e?.unit}`):r})({subscriptionSpeed:n,doubleSpeed:s,description:(o=r.title||r.heading)?o.replace(/\[\$xplora\$\]/gi,"").replace(/\s{2,}/g," ").trim():o});return(0,t.jsxs)("div",{className:u.default.subscriptionTextBlock__uspItem,children:[(0,t.jsx)("span",{children:(0,t.jsx)(l.Icon,{className:u.default.subscriptionTextBlock__uspIcon,name:r.icon,"aria-hidden":"true",focusable:"false"})}),i&&(0,t.jsx)("div",{onClick:e=>{let t=e.target.closest("a");if(t&&e.currentTarget.contains(t)){let e=t.getAttribute("data-modal-id");a&&e&&a(e)}},dangerouslySetInnerHTML:{__html:i}})]},`${e.heading}-usp-${r.heading}`)},f={xs:"title-100",s:"title-200",m:"title-300",l:"title-400",xl:"title-500"};e.s(["default",0,({textBlock:e,headingSize:m,headingTag:p,showExistingGetOffer:h,subscriptionSpeed:g,doubleSpeed:v,className:x="",shouldCenterOnDesktop:y=!1,setModal:b,isXploraWatch:S=!1})=>{let C="grid"===e.uspLayout,w="row"===e.uspLayout,{width:j}=(0,d.useViewport)(),k=h&&e.contentTeliaSamlet||e.content,I=h&&e.headingTeliaSamlet||e.heading,T=h&&e.buttonTeliaSamlet||e.button,N=h&&!(0,o.default)(e.uspListTeliaSamlet)?e.uspListTeliaSamlet:e.uspList,{asPath:B}=(0,c.useRouter)(),E=(0,r.useMemo)(()=>N?.filter(e=>{let t,r;return(!e.onlyShowForUrl?.length||e.onlyShowForUrl.includes(B.split(/[?#]/)[0]))&&(t=e,r=S,!(t.heading||"").toLowerCase().includes("[$xplora$]")||r)}),[N,B,S]);return(0,t.jsxs)("div",{className:(0,s.default)(u.default.subscriptionTextBlock,{[u.default.subscriptionTextBlock__desktopCenter]:y,[u.default.subscriptionTextBlock__backgroundColor]:!!e.contentBackgroundColor,[u.default.subscriptionTextBlock__backgroundBorder]:!!e.shouldShowBorder,[x]:x}),style:{background:e.contentBackgroundColor||"none"},"data-cy":"sub-text-block",children:[I&&(0,t.jsxs)("div",{className:u.default.subscriptionTextBlock__headingContainer,children:[e.headingIcon&&(0,t.jsx)(l.Icon,{className:u.default.subscriptionTextBlock__headingIcon,name:e.headingIcon,"aria-hidden":"true",focusable:"false"}),(0,t.jsx)(a.Heading,{as:p||"h2",variant:f[m||"s"],className:(0,s.default)({[u.default.flexSelfStart]:!0,[u.default.subscriptionTextBlock__heading]:!0}),style:{color:e.headingTextColor||"black"},children:(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:I}})})]}),k&&(0,t.jsx)("div",{className:u.default.flexSelfStart,dangerouslySetInnerHTML:{__html:k},style:{color:j<i.SUBSCRIPTION_TEXTBLOCK_BREAKPOINT?e.contentTextColorMobile:e.contentTextColor||"#222"}}),!(0,o.default)(E)&&(0,t.jsx)("div",{className:(0,s.default)(u.default.subscriptionTextBlock__usps,{[u.default.subscriptionTextBlock__usps__grid]:C,[u.default.subscriptionTextBlock__usps__row]:w}
4),style:{color:e.contentTextColor||"#222"},children:E?.map(r=>(0,t.jsx)(_,{textBlock:e,usp:r,subscriptionSpeed:g,doubleSpeed:v,setModal:b},`${e.heading}-usp-${r.heading||r.icon}`))}),T&&(0,t.jsx)(n.Button,{variant:T.kind,children:(0,t.jsx)("span",{children:T.text})})]})}],523416)},539630,e=>{e.v({deliveryInfo:"VariantStatus-module-scss-module__kMI56a__deliveryInfo",deliveryInfo__earliestDelivery:"VariantStatus-module-scss-module__kMI56a__deliveryInfo__earliestDelivery",deliveryInfo__earliestDelivery__button:"VariantStatus-module-scss-module__kMI56a__deliveryInfo__earliestDelivery__button",deliveryInfo__earliestDelivery__deliveryText:"VariantStatus-module-scss-module__kMI56a__deliveryInfo__earliestDelivery__deliveryText",deliveryInfo__earliestDelivery__text:"VariantStatus-module-scss-module__kMI56a__deliveryInfo__earliestDelivery__text",deliveryInfo__heading:"VariantStatus-module-scss-module__kMI56a__deliveryInfo__heading",deliveryInfo__searchfield:"VariantStatus-module-scss-module__kMI56a__deliveryInfo__searchfield",deliveryInfo__searchfield__label:"VariantStatus-module-scss-module__kMI56a__deliveryInfo__searchfield__label",variantStatus:"VariantStatus-module-scss-module__kMI56a__variantStatus",variantStatus__continueButton:"VariantStatus-module-scss-module__kMI56a__variantStatus__continueButton",variantStatus__deliveryLink:"VariantStatus-module-scss-module__kMI56a__variantStatus__deliveryLink",variantStatus__spinner:"VariantStatus-module-scss-module__kMI56a__variantStatus__spinner",variantStatus__statusAndDeliveryWrapper:"VariantStatus-module-scss-module__kMI56a__variantStatus__statusAndDeliveryWrapper",variantStatus__statusBox:"VariantStatus-module-scss-module__kMI56a__variantStatus__statusBox",variantStatus__statusBox__loading:"VariantStatus-module-scss-module__kMI56a__variantStatus__statusBox__loading",variantStatus__statusBox__time:"VariantStatus-module-scss-module__kMI56a__variantStatus__statusBox__time",variantStatus__statusContainer:"VariantStatus-module-scss-module__kMI56a__variantStatus__statusContainer",variantStatus__statusIcon__blue:"VariantStatus-module-scss-module__kMI56a__variantStatus__statusIcon__blue",variantStatus__statusIcon__green:"VariantStatus-module-scss-module__kMI56a__variantStatus__statusIcon__green",variantStatus__statusIcon__red:"VariantStatus-module-scss-module__kMI56a__variantStatus__statusIcon__red",variantStatus__statusIcon__yellow:"VariantStatus-module-scss-module__kMI56a__variantStatus__statusIcon__yellow",variantStatus__ukkoHeading:"VariantStatus-module-scss-module__kMI56a__variantStatus__ukkoHeading"})},75945,e=>{"use strict";var t=e.i(391398),r=e.i(191788),a=e.i(734587),l=e.i(136549),n=e.i(508123),s=e.i(326779),o=e.i(39556),i=e.i(141880),d=e.i(961572),u=e.i(771596),c=e.i(592211),_=e.i(102298),f=e.i(204625),m=e.i(694244);e.i(596970);var p=e.i(54299),h=e.i(12395);let g=({availabilityStatus:e,shopsAvailability:a,deliveryAvailability:n,setIncludeDeliveryTime:s,setDeliveryLocationError:i,includeDeliveryTime:g,zipCode:v,showModal:x,setShowModal:y})=>{let b=(0,p.useIsClientSide)(),[S,C]=(0,r.useState)({lat:59.9126854,lng:10.75262,place:"Oslo"});return((0,r.useEffect)(()=>{v&&4===(0,_.default)(v)&&(0,h.clickAndCollectNearby)(v,e=>{e?C(e):i("Ugyldig postnummer")})},[v]),b)?(0,t.jsx)(u.Modal,{open:x,onOpenChange:()=>y(!1),children:(0,t.jsx)(u.Modal.Overlay,{className:f.default.clickAndCollectModal__container,children:(0,t.jsxs)(u.Modal.Content,{useRoundedCorners:!0,className:f.default.clickAndCollectModal__content,children:[(0,t.jsxs)(u.Modal.Group,{className:f.default.clickAndCollectModal__header,variant:"title",children:[(0,t.jsx)(u.Modal.Title,{as:"h3",children:!(0,d.default)(n)&&g?"Leveringsmuligheter":"Finn butikk"}),(0,t.jsx)(u.Modal.Close,{"aria-label":"lukk",slot:"floating"})]}),(0,t.jsx)(m.default,{includeDeliveryTime:g,setIncludeDeliveryTime:s,deliveryAvailability:n,shopAvailability:a||[],defaultLocation:S}),(0,t.jsxs)(u.Modal.Group,{className:f.default.clickAndCollectModal__footer,variant:"action",children:[e?.lcmStatus==="GlobalPhasedOutStocking"&&0===e.dcQtyAvailable?(0,t.jsxs)(c.Notification,{type:"tile",variant:"information",children:[(0,t.jsx)(c.Notification.Icon,{}),(0,t.jsx)(c.Notification.Text,{children:"Dette produktet er kun tilgjengelig for henting i butikk. Du velger butikk på siste steg i kassen."})]}):(0,t.jsx)(l.Text,{variant:"paragraph-100",children:"Levering velger du på siste steg i kassen"}),(0,t.jsx)(u.Modal.Close,{slot:"content",children:(0,t.jsx)(o.Button,{className:f.default.clickAndCollectModal__footer__button,variant:"primary",onClick:()=>y(!1),children:(0,t.jsx)("span",{children:"Tilbake til produkt"})})})]})]})})}):null};var v=e.i(298961);e.i(459499);var x=e.i(854137),y=e.i(976021),b=e.i(539630);let S={green:b.default.variantStatus__statusIcon__green,red:b.default.variantStatus__statusIcon__red,blue:b.default.variantStatus__statusIcon__blue,yellow:b.default.variantStatus__statusIcon__yellow},C=({icon:e,iconClass:r,text:a,className:l})=>a?a.trim()?(0,t.jsxs)("div",{className:`${b.default.variantStatus__statusBox} ${l}`,children:[(0,t.jsx)(s.Icon,{name:e,className:S[r],"aria-hidden":"true",focusable:"false"}),(0,t.jsx)("span",{children:a})]}):null:(0,t.jsx)("div",{className:`${b.default.variantStatus__statusBox} ${l}`,children:(0,t.jsxs)("div",{className:b.default.variantStatus__statusBox__loading,children:[(0,t.jsx)(i.Spinner,{className:b.default.variantStatus__spinner,type:"sm"}),(0,t.jsx)("span",{children:"Henter lagerstatus"})]})}),w=({shopsAvailability:e=[],setIncludeDeliveryTime:r,setShowModal:a,isProcessing:l=!1,className:n})=>l?"":e.length>0?(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:`${b.default.variantStatus__statusBox} ${n}`,children:[(0,t.jsx)(s.Icon,{name:"check-circle",className:S.green,"aria-hidden":"true",focusable:"false"}),(0,t.jsxs)("span",{children:[v.default.CLICK_AND_COLLECT_PRODUCT_AVAILABLE," "]}),(0,t.jsx)("span",{children:(0,t.jsx)(o.Button,{size:"sm",variant:"text-underline",onClick:()=>{a(!0),r(!1)},children:(0,t.jsx)("span",{children:v.default.CLICK_AND_COLLECT_PRODUCT_AVAILABLE_NUMBER_OF_STORES(e.length)})})})]})}):(0,t.jsx)("div",{className:`${b.default.variantStatus__statusBox} ${n}`,children:(0,t.jsxs)("div",{className:b.default.variantStatus__statusBox__loading,children:[(0,t.jsx)(s.Icon,{name:"error",className:S.yellow,"aria-hidden":"true",focusable:"false"}),(0,t.jsx)("span",{children:v.default.CLICK_AND_COLLECT_PRODUCT_NOT_AVAILABLE})]})}),j=({setShowModal:e,isFetchingDeliveryTime:i,deliveryLocationError:u,setDeliveryLocationError:c,deliveryOptions:_,url:f,setIncludeDeliveryTime:m,showModal:p,onSearchDeliveryOptions:h})=>{let[g,v]=(0,r.useState)("");return(0,r.useEffect)(()=>{c("")},[g]),(0,t.jsxs)("div",{className:b.default.deliveryInfo,children:[(0,t.jsx)(a.Heading,{as:"h2",className:b.default.deliveryInfo__heading,children:"Levering"}),(0,t.jsxs)(n.TextField,{errors:(0,d.default)(u)?[]:[u],isLoading:i,className:b.default.deliveryInfo__searchfield,children:[(0,t.jsx)(n.TextField.Label,{className:b.default.deliveryInfo__searchfield__label,children:(0,t.jsx)(l.Text,{variant:"paragraph-100",children:"Sjekk levering til ditt område"})}),(0,t.jsxs)(n.TextField.InputGroup,{children:[(0,t.jsx)(s.Icon,{name:"search","aria-hidden":"true",focusable:"false"}),(0,t.jsx)(n.TextField.Input,{placeholder:"Postnummer",inputMode:"numeric",maxLength:4,onKeyDown:e=>"Enter"===e.key?h(g):null,onChange:e=>v(e.target.value)}),!i&&(0,t.jsx)(n.TextField.ClearButton,{}),(0,t.jsx)(n.TextField.Indicator,{})]}),(0,t.jsx)(n.TextField.Button,{onClick:()=>{h(g)},variant:"attached",iconOnly:!0,"aria-label":"Søk etter leveringsalternativer",children:(0,t.jsx)(s.Icon,{name:"search","aria-hidden":"true",focusable:"false"})}),(0,t.jsx)(n.TextField.ErrorList,{})]}),!(0,d.default)(_)&&(0,t.jsxs)("div",{className:b.default.deliveryInfo__earliestDelivery,children:[(0,t.jsxs)(l.Text,{className:b.default.deliveryInfo__earliestDelivery__text,children:["Raskeste levering er:"," ",(0,t.jsxs)("span",{className:b.default.deliveryInfo__earliestDelivery__deliveryText,children:[_[0].estimatedDeliveryDate,"."]})]}),(0,t.jsx)(o.Button,{size:"sm",className:b.default.deliveryInfo__earliestDelivery__button,onClick:()=>{e(!p),m(!0),(0,y.trackShowDeliveryMethods)(f)},variant:"text-underline",children:(0,t.jsx)("span",{children:"Se alle leveringsmuligheter"})})]})]})};e.s(["StatusInfo",0,C,"default",0,({currentAvailabilityStatus:e,zipCode:l,isFetchingDeliveryTime:n,isAccessory:s,url:o,shopsAvailability:i=[],deliveryOptions:d=[],realm:u,onSearchDeliveryOptions:c})=>{let[_,f]=(0,r.useState)(!1),[m,p]=(0,r.useState)(!0),[h,v]=(0,r.useState)(""),y=u===x.Realm.UKKO,S="GlobalPhasedOutStocking"===e.lcmStatus&&0===e.dcQtyAvailable;return(0,t.jsxs)("div",{className:b.default.variantStatus,children:[!S&&!s&&!y&&(0,t.jsx)(j,{setDeliveryLocationError:v,deliveryLocationError:h,isFetchingDeliveryTime:n,onSearchDeliveryOptions:c,setShowModal:f,showModal:_,url:o,setIncludeDeliveryTime:p,deliveryOptions:d}),y&&(0,t.jsx)(a.Heading,{className:b.default.variantStatus__ukkoHeading,as:"h2",variant:"subsection-100",children:"Lager
4status"}),(0,t.jsx)("div",{className:b.default.variantStatus__statusContainer,children:(0,t.jsx)(C,{...e})}),!y&&(0,t.jsx)("div",{className:b.default.variantStatus__statusContainer,children:(0,t.jsx)(w,{isProcessing:!e.text,shopsAvailability:i,setIncludeDeliveryTime:p,setShowModal:f})}),!y&&(0,t.jsx)(g,{availabilityStatus:e,showModal:_,zipCode:l,includeDeliveryTime:m,setIncludeDeliveryTime:p,setDeliveryLocationError:v,deliveryAvailability:d,setShowModal:f,shopsAvailability:i})]})}],75945)},906184,e=>{e.v({animatedProgressBar:"AnimatedProgressBar-module-scss-module__GIlNwG__animatedProgressBar",animatedProgressBarColor__black:"AnimatedProgressBar-module-scss-module__GIlNwG__animatedProgressBarColor__black",animatedProgressBarColor__grey:"AnimatedProgressBar-module-scss-module__GIlNwG__animatedProgressBarColor__grey",animatedProgressBarColor__lightGrey:"AnimatedProgressBar-module-scss-module__GIlNwG__animatedProgressBarColor__lightGrey",animatedProgressBarColor__purple:"AnimatedProgressBar-module-scss-module__GIlNwG__animatedProgressBarColor__purple",animatedProgressBarColor__white:"AnimatedProgressBar-module-scss-module__GIlNwG__animatedProgressBarColor__white",animatedProgressBar__noMarginBottom:"AnimatedProgressBar-module-scss-module__GIlNwG__animatedProgressBar__noMarginBottom",animatedProgressBar__noMarginTop:"AnimatedProgressBar-module-scss-module__GIlNwG__animatedProgressBar__noMarginTop",indeterminate:"AnimatedProgressBar-module-scss-module__GIlNwG__indeterminate","indeterminate-short":"AnimatedProgressBar-module-scss-module__GIlNwG__indeterminate-short"})},312915,e=>{"use strict";let t;var r,a=e.i(391398),l=e.i(191788),n=e.i(730943),s=e.i(998847);function o(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),!1===r||!a.defaultPrevented)return t?.(a)}}var i=e.i(479293),d=e.i(357006);function u(e){var t;let r,n=(t=e,(r=l.forwardRef((e,t)=>{let{children:r,...a}=e;if(l.isValidElement(r)){var n;let e,s,o=(n=r,(s=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.ref:(s=(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.props.ref:n.props.ref||n.ref),i=function(e,t){let r={...t};for(let a in t){let l=e[a],n=t[a];/^on[A-Z]/.test(a)?l&&n?r[a]=(...e)=>{n(...e),l(...e)}:l&&(r[a]=l):"style"===a?r[a]={...l,...n}:"className"===a&&(r[a]=[l,n].filter(Boolean).join(" "))}return{...e,...r}}(a,r.props);return r.type!==l.Fragment&&(i.ref=t?(0,d.composeRefs)(t,o):o),l.cloneElement(r,i)}return l.Children.count(r)>1?l.Children.only(null):null})).displayName=`${t}.SlotClone`,r),s=l.forwardRef((e,t)=>{let{children:r,...s}=e,o=l.Children.toArray(r),i=o.find(_);if(i){let e=i.props.children,r=o.map(t=>t!==i?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,a.jsx)(n,{...s,ref:t,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,a.jsx)(n,{...s,ref:t,children:r})});return s.displayName=`${e}.Slot`,s}var c=Symbol("radix.slottable");function _(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}var f=e.i(724537),m=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=u(`Primitive.${t}`),n=l.forwardRef((e,l)=>{let{asChild:n,...s}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(n?r:t,{...s,ref:l})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),p=e.i(998657),h=e.i(74529),g="dismissableLayer.update",v=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),x=l.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:u,onInteractOutside:c,onDismiss:_,...f}=e,x=l.useContext(v),[S,C]=l.useState(null),w=S?.ownerDocument??globalThis?.document,[,j]=l.useState({}),k=(0,d.useComposedRefs)(t,e=>C(e)),I=Array.from(x.layers),[T]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),N=I.indexOf(T),B=S?I.indexOf(S):-1,E=x.layersWithOutsidePointerEventsDisabled.size>0,R=B>=N,L=function(e,t=globalThis?.document){let r=(0,p.useCallbackRef)(e),a=l.useRef(!1),n=l.useRef(()=>{});return l.useEffect(()=>{let e=e=>{if(e.target&&!a.current){let a=function(){b("dismissableLayer.pointerDownOutside",r,l,{discrete:!0})},l={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",n.current),n.current=a,t.addEventListener("click",n.current,{once:!0})):a()}else t.removeEventListener("click",n.current);a.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",e),t.removeEventListener("click",n.current)}},[t,r]),{onPointerDownCapture:()=>a.current=!0}}(e=>{let t=e.target,r=[...x.branches].some(e=>e.contains(t));R&&!r&&(i?.(e),c?.(e),e.defaultPrevented||_?.())},w),P=function(e,t=globalThis?.document){let r=(0,p.useCallbackRef)(e),a=l.useRef(!1);return l.useEffect(()=>{let e=e=>{e.target&&!a.current&&b("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}(e=>{let t=e.target;![...x.branches].some(e=>e.contains(t))&&(u?.(e),c?.(e),e.defaultPrevented||_?.())},w);
4return(0,h.useEscapeKeydown)(e=>{B===x.layers.size-1&&(s?.(e),!e.defaultPrevented&&_&&(e.preventDefault(),_()))},w),l.useEffect(()=>{if(S)return n&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(r=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(S)),x.layers.add(S),y(),()=>{n&&1===x.layersWithOutsidePointerEventsDisabled.size&&(w.body.style.pointerEvents=r)}},[S,w,n,x]),l.useEffect(()=>()=>{S&&(x.layers.delete(S),x.layersWithOutsidePointerEventsDisabled.delete(S),y())},[S,x]),l.useEffect(()=>{let e=()=>j({});return document.addEventListener(g,e),()=>document.removeEventListener(g,e)},[]),(0,a.jsx)(m.div,{...f,ref:k,style:{pointerEvents:E?R?"auto":"none":void 0,...e.style},onFocusCapture:o(e.onFocusCapture,P.onFocusCapture),onBlurCapture:o(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:o(e.onPointerDownCapture,L.onPointerDownCapture)})});function y(){let e=new CustomEvent(g);document.dispatchEvent(e)}function b(e,t,r,{discrete:a}){let l=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});if(t&&l.addEventListener(e,t,{once:!0}),a)l&&n.flushSync(()=>l.dispatchEvent(s));else l.dispatchEvent(s)}x.displayName="DismissableLayer",l.forwardRef((e,t)=>{let r=l.useContext(v),n=l.useRef(null),s=(0,d.useComposedRefs)(t,n);return l.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,a.jsx)(m.div,{...e,ref:s})}).displayName="DismissableLayerBranch";var S=0;function C(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var w="focusScope.autoFocusOnMount",j="focusScope.autoFocusOnUnmount",k={bubbles:!1,cancelable:!0},I=l.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...i}=e,[u,c]=l.useState(null),_=(0,p.useCallbackRef)(s),f=(0,p.useCallbackRef)(o),h=l.useRef(null),g=(0,d.useComposedRefs)(t,e=>c(e)),v=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let e=function(e){if(v.paused||!u)return;let t=e.target;u.contains(t)?h.current=t:B(h.current,{select:!0})},t=function(e){if(v.paused||!u)return;let t=e.relatedTarget;null!==t&&(u.contains(t)||B(h.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&B(u)});return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,u,v.paused]),l.useEffect(()=>{if(u){E.add(v);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(w,k);u.addEventListener(w,_),u.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let a of e)if(B(a,{select:t}),document.activeElement!==r)return}(T(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&B(u))}return()=>{u.removeEventListener(w,_),setTimeout(()=>{let t=new CustomEvent(j,k);u.addEventListener(j,f),u.dispatchEvent(t),t.defaultPrevented||B(e??document.body,{select:!0}),u.removeEventListener(j,f),E.remove(v)},0)}}},[u,_,f,v]);let x=l.useCallback(e=>{if(!r&&!n||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){var l;let t,n=e.currentTarget,[s,o]=[N(t=T(l=n),l),N(t.reverse(),l)];s&&o?e.shiftKey||a!==o?e.shiftKey&&a===s&&(e.preventDefault(),r&&B(o,{select:!0})):(e.preventDefault(),r&&B(s,{select:!0})):a===n&&e.preventDefault()}},[r,n,v.paused]);return(0,a.jsx)(m.div,{tabIndex:-1,...i,ref:g,onKeyDown:x})});function T(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function N(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function B(e,{select:t=!1}={}){if(e&&e.focus){var r;let a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}I.displayName="FocusScope";var E=(t=[],{add(e){let r=t[0];e!==r&&r?.pause(),(t=R(t,e)).unshift(e)},remove(e){t=R(t,e),t[0]?.resume()}});function R(e,t){let r=[...e],a=r.indexOf(t);return -1!==a&&r.splice(a,1),r}var L=e.i(64592),P=e.i(195600),M=e.i(95963),A=l.forwardRef((e,t)=>
4{let{children:r,width:l=10,height:n=5,...s}=e;return(0,a.jsx)(m.svg,{...s,ref:t,width:l,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,a.jsx)("polygon",{points:"0,0 30,0 15,10"})})});A.displayName="Arrow";var D=e.i(776833),O=e.i(474864),$="Popper",[H,V]=(0,i.createContextScope)($),[F,G]=H($),W=e=>{let{__scopePopper:t,children:r}=e,[n,s]=l.useState(null);return(0,a.jsx)(F,{scope:t,anchor:n,onAnchorChange:s,children:r})};W.displayName=$;var z="PopperAnchor",K=l.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:n,...s}=e,o=G(z,r),i=l.useRef(null),u=(0,d.useComposedRefs)(t,i);return l.useEffect(()=>{o.onAnchorChange(n?.current||i.current)}),n?null:(0,a.jsx)(m.div,{...s,ref:u})});K.displayName=z;var q="PopperContent",[U,X]=H(q),Z=l.forwardRef((e,t)=>{let{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:o="center",alignOffset:i=0,arrowPadding:u=0,avoidCollisions:c=!0,collisionBoundary:_=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:g=!1,updatePositionStrategy:v="optimized",onPlaced:x,...y}=e,b=G(q,r),[S,C]=l.useState(null),w=(0,d.useComposedRefs)(t,e=>C(e)),[j,k]=l.useState(null),I=(0,O.useSize)(j),T=I?.width??0,N=I?.height??0,B="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},E=Array.isArray(_)?_:[_],R=E.length>0,L={padding:B,boundary:E.filter(ee),altBoundary:R},{refs:A,floatingStyles:$,placement:H,isPositioned:V,middlewareData:F}=(0,P.useFloating)({strategy:"fixed",placement:n+("center"!==o?"-"+o:""),whileElementsMounted:(...e)=>(0,M.autoUpdate)(...e,{animationFrame:"always"===v}),elements:{reference:b.anchor},middleware:[(0,P.offset)({mainAxis:s+N,alignmentAxis:i}),c&&(0,P.shift)({mainAxis:!0,crossAxis:!1,limiter:"partial"===h?(0,P.limitShift)():void 0,...L}),c&&(0,P.flip)({...L}),(0,P.size)({...L,apply:({elements:e,rects:t,availableWidth:r,availableHeight:a})=>{let{width:l,height:n}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${r}px`),s.setProperty("--radix-popper-available-height",`${a}px`),s.setProperty("--radix-popper-anchor-width",`${l}px`),s.setProperty("--radix-popper-anchor-height",`${n}px`)}}),j&&(0,P.arrow)({element:j,padding:u}),et({arrowWidth:T,arrowHeight:N}),g&&(0,P.hide)({strategy:"referenceHidden",...L})]}),[W,z]=er(H),K=(0,p.useCallbackRef)(x);(0,D.useLayoutEffect)(()=>{V&&K?.()},[V,K]);let X=F.arrow?.x,Z=F.arrow?.y,J=F.arrow?.centerOffset!==0,[Y,Q]=l.useState();return(0,D.useLayoutEffect)(()=>{S&&Q(window.getComputedStyle(S).zIndex)},[S]),(0,a.jsx)("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:V?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,a.jsx)(U,{scope:r,placedSide:W,onArrowChange:k,arrowX:X,arrowY:Z,shouldHideArrow:J,children:(0,a.jsx)(m.div,{"data-side":W,"data-align":z,...y,ref:w,style:{...y.style,animation:V?void 0:"none"}})})})});Z.displayName=q;var J="PopperArrow",Y={top:"bottom",right:"left",bottom:"top",left:"right"},Q=l.forwardRef(function(e,t){let{__scopePopper:r,...l}=e,n=X(J,r),s=Y[n.placedSide];return(0,a.jsx)("span",{ref:n.onArrowChange,style:{position:"absolute",left:n.arrowX,top:n.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[n.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[n.placedSide],visibility:n.shouldHideArrow?"hidden":void 0},children:(0,a.jsx)(A,{...l,ref:t,style:{...l.style,display:"block"}})})});function ee(e){return null!==e}Q.displayName=J;var et=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:a,middlewareData:l}=t,n=l.arrow?.centerOffset!==0,s=n?0:e.arrowWidth,o=n?0:e.arrowHeight,[i,d]=er(r),u={start:"0%",center:"50%",end:"100%"}[d],c=(l.arrow?.x??0)+s/2,_=(l.arrow?.y??0)+o/2,f="",m="";return"bottom"===i?(f=n?u:`${c}px`,m=`${-o}px`):"top"===i?(f=n?u:`${c}px`,m=`${a.floating.height+o}px`):"right"===i?(f=`${-o}px`,m=n?u:`${_}px`):"left"===i&&(f=`${a.floating.width+o}px`,m=n?u:`${_}px`),{data:{x:f,y:m}}}});function er(e){let[t,r="center"]=e.split("-");return[t,r]}var ea=l.forwardRef((e,t)=>
4{let{container:r,...s}=e,[o,i]=l.useState(!1);(0,D.useLayoutEffect)(()=>i(!0),[]);let d=r||o&&globalThis?.document?.body;return d?n.default.createPortal((0,a.jsx)(m.div,{...s,ref:t}),d):null});ea.displayName="Portal";var el=e.i(55037),en=e.i(593427),es=l.forwardRef((e,t)=>(0,a.jsx)(m.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));es.displayName="VisuallyHidden";var eo=e.i(369131),ei=e.i(865823),ed=[" ","Enter","ArrowUp","ArrowDown"],eu=[" ","Enter"],ec="Select",[e_,ef,em]=function(e){let t=e+"CollectionProvider",[r,n]=(0,i.createContextScope)(t),[s,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:t,children:r}=e,n=l.default.useRef(null),o=l.default.useRef(new Map).current;return(0,a.jsx)(s,{scope:t,itemMap:o,collectionRef:n,children:r})};c.displayName=t;let _=e+"CollectionSlot",f=u(_),m=l.default.forwardRef((e,t)=>{let{scope:r,children:l}=e,n=o(_,r),s=(0,d.useComposedRefs)(t,n.collectionRef);return(0,a.jsx)(f,{ref:s,children:l})});m.displayName=_;let p=e+"CollectionItemSlot",h="data-radix-collection-item",g=u(p),v=l.default.forwardRef((e,t)=>{let{scope:r,children:n,...s}=e,i=l.default.useRef(null),u=(0,d.useComposedRefs)(t,i),c=o(p,r);return l.default.useEffect(()=>(c.itemMap.set(i,{ref:i,...s}),()=>void c.itemMap.delete(i))),(0,a.jsx)(g,{...{[h]:""},ref:u,children:n})});return v.displayName=p,[{Provider:c,Slot:m,ItemSlot:v},function(t){let r=o(e+"CollectionConsumer",t);return l.default.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}(ec),[ep,eh]=(0,i.createContextScope)(ec,[em,V]),eg=V(),[ev,ex]=ep(ec),[ey,eb]=ep(ec),eS=e=>{let{__scopeSelect:t,children:r,open:n,defaultOpen:s,onOpenChange:o,value:i,defaultValue:d,onValueChange:u,dir:c,name:_,autoComplete:m,disabled:p,required:h,form:g}=e,v=eg(t),[x,y]=l.useState(null),[b,S]=l.useState(null),[C,w]=l.useState(!1),j=(0,f.useDirection)(c),[k=!1,I]=(0,el.useControllableState)({prop:n,defaultProp:s,onChange:o}),[T,N]=(0,el.useControllableState)({prop:i,defaultProp:d,onChange:u}),B=l.useRef(null),E=!x||g||!!x.closest("form"),[R,P]=l.useState(new Set),M=Array.from(R).map(e=>e.props.value).join(";");return(0,a.jsx)(W,{...v,children:(0,a.jsxs)(ev,{required:h,scope:t,trigger:x,onTriggerChange:y,valueNode:b,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:w,contentId:(0,L.useId)(),value:T,onValueChange:N,open:k,onOpenChange:I,dir:j,triggerPointerDownPosRef:B,disabled:p,children:[(0,a.jsx)(e_.Provider,{scope:t,children:(0,a.jsx)(ey,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(e=>{P(t=>new Set(t).add(e))},[]),onNativeOptionRemove:l.useCallback(e=>{P(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),E?(0,a.jsxs)(e2,{"aria-hidden":!0,required:h,tabIndex:-1,name:_,autoComplete:m,value:T,onChange:e=>N(e.target.value),disabled:p,form:g,children:[void 0===T?(0,a.jsx)("option",{value:""}):null,Array.from(R)]},M):null]})})};eS.displayName=ec;var eC="SelectTrigger",ew=l.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:n=!1,...s}=e,i=eg(r),u=ex(eC,r),c=u.disabled||n,_=(0,d.useComposedRefs)(t,u.onTriggerChange),f=ef(r),p=l.useRef("touch"),[h,g,v]=e4(e=>{let t=f().filter(e=>!e.disabled),r=t.find(e=>e.value===u.value),a=e8(t,e,r);void 0!==a&&u.onValueChange(a.value)}),x=e=>{c||(u.onOpenChange(!0),v()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,a.jsx)(K,{asChild:!0,...i,children:(0,a.jsx)(m.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":e9(u.value)?"":void 0,...s,ref:_,onClick:o(s.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&x(e)}),onPointerDown:o(s.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(x(e),e.preventDefault())}),onKeyDown:o(s.onKeyDown,e=>{let t=""!==h.current;
4e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||g(e.key),(!t||" "!==e.key)&&ed.includes(e.key)&&(x(),e.preventDefault())})})})});ew.displayName=eC;var ej="SelectValue",ek=l.forwardRef((e,t)=>{let{__scopeSelect:r,className:l,style:n,children:s,placeholder:o="",...i}=e,u=ex(ej,r),{onValueNodeHasChildrenChange:c}=u,_=void 0!==s,f=(0,d.useComposedRefs)(t,u.onValueNodeChange);return(0,D.useLayoutEffect)(()=>{c(_)},[c,_]),(0,a.jsx)(m.span,{...i,ref:f,style:{pointerEvents:"none"},children:e9(u.value)?(0,a.jsx)(a.Fragment,{children:o}):s})});ek.displayName=ej;var eI=l.forwardRef((e,t)=>{let{__scopeSelect:r,children:l,...n}=e;return(0,a.jsx)(m.span,{"aria-hidden":!0,...n,ref:t,children:l||"â¼"})});eI.displayName="SelectIcon";var eT=e=>(0,a.jsx)(ea,{asChild:!0,...e});eT.displayName="SelectPortal";var eN="SelectContent",eB=l.forwardRef((e,t)=>{let r=ex(eN,e.__scopeSelect),[s,o]=l.useState();return((0,D.useLayoutEffect)(()=>{o(new DocumentFragment)},[]),r.open)?(0,a.jsx)(eP,{...e,ref:t}):s?n.createPortal((0,a.jsx)(eE,{scope:e.__scopeSelect,children:(0,a.jsx)(e_.Slot,{scope:e.__scopeSelect,children:(0,a.jsx)("div",{children:e.children})})}),s):null});eB.displayName=eN;var[eE,eR]=ep(eN),eL=u("SelectContent.RemoveScroll"),eP=l.forwardRef((e,t)=>{let{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:u,side:c,sideOffset:_,align:f,alignOffset:m,arrowPadding:p,collisionBoundary:h,collisionPadding:g,sticky:v,hideWhenDetached:y,avoidCollisions:b,...w}=e,j=ex(eN,r),[k,T]=l.useState(null),[N,B]=l.useState(null),E=(0,d.useComposedRefs)(t,e=>T(e)),[R,L]=l.useState(null),[P,M]=l.useState(null),A=ef(r),[D,O]=l.useState(!1),$=l.useRef(!1);l.useEffect(()=>{if(k)return(0,eo.hideOthers)(k)},[k]),l.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??C()),document.body.insertAdjacentElement("beforeend",e[1]??C()),S++,()=>{1===S&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),S--}},[]);let H=l.useCallback(e=>{let[t,...r]=A().map(e=>e.ref.current),[a]=r.slice(-1),l=document.activeElement;for(let r of e)if(r===l||(r?.scrollIntoView({block:"nearest"}),r===t&&N&&(N.scrollTop=0),r===a&&N&&(N.scrollTop=N.scrollHeight),r?.focus(),document.activeElement!==l))return},[A,N]),V=l.useCallback(()=>H([R,k]),[H,R,k]);l.useEffect(()=>{D&&V()},[D,V]);let{onOpenChange:F,triggerPointerDownPosRef:G}=j;l.useEffect(()=>{if(k){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(G.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(G.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():k.contains(r.target)||F(!1),document.removeEventListener("pointermove",t),G.current=null};return null!==G.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[k,F,G]),l.useEffect(()=>{let e=()=>F(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[F]);let[W,z]=e4(e=>{let t=A().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),a=e8(t,e,r);a&&setTimeout(()=>a.ref.current.focus())}),K=l.useCallback((e,t,r)=>{let a=!$.current&&!r;(void 0!==j.value&&j.value===t||a)&&(L(e),a&&($.current=!0))},[j.value]),q=l.useCallback(()=>k?.focus(),[k]),U=l.useCallback((e,t,r)=>{let a=!$.current&&!r;(void 0!==j.value&&j.value===t||a)&&M(e)},[j.value]),X="popper"===n?eA:eM,Z=X===eA?{side:c,sideOffset:_,align:f,alignOffset:m,arrowPadding:p,collisionBoundary:h,collisionPadding:g,sticky:v,hideWhenDetached:y,avoidCollisions:b}:{};return(0,a.jsx)(eE,{scope:r,content:k,viewport:N,onViewportChange:B,itemRefCallback:K,selectedItem:R,onItemLeave:q,itemTextRefCallback:U,focusSelectedItem:V,selectedItemText:P,position:n,isPositioned:D,searchRef:W,children:(0,a.jsx)(ei.RemoveScroll,{as:eL,allowPinchZoom:!0,children:(0,a.jsx)(I,{asChild:!0,trapped:j.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:o(s,e=>{j.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,a.jsx)(x,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:(0,a.jsx)(X,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:e=>e.preventDefault(),...w,...Z,onPlaced:()=>O(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:o(w.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;
4if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=A().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,a=t.indexOf(r);t=t.slice(a+1)}setTimeout(()=>H(t)),e.preventDefault()}})})})})})})});eP.displayName="SelectContentImpl";var eM=l.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:n,...o}=e,i=ex(eN,r),u=eR(eN,r),[c,_]=l.useState(null),[f,p]=l.useState(null),h=(0,d.useComposedRefs)(t,e=>p(e)),g=ef(r),v=l.useRef(!1),x=l.useRef(!0),{viewport:y,selectedItem:b,selectedItemText:S,focusSelectedItem:C}=u,w=l.useCallback(()=>{if(i.trigger&&i.valueNode&&c&&f&&y&&b&&S){let e=i.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),r=i.valueNode.getBoundingClientRect(),a=S.getBoundingClientRect();if("rtl"!==i.dir){let l=a.left-t.left,n=r.left-l,o=e.left-n,i=e.width+o,d=Math.max(i,t.width),u=window.innerWidth-10,_=(0,s.clamp)(n,[10,Math.max(10,u-d)]);c.style.minWidth=i+"px",c.style.left=_+"px"}else{let l=t.right-a.right,n=window.innerWidth-r.right-l,o=window.innerWidth-e.right-n,i=e.width+o,d=Math.max(i,t.width),u=window.innerWidth-10,_=(0,s.clamp)(n,[10,Math.max(10,u-d)]);c.style.minWidth=i+"px",c.style.right=_+"px"}let l=g(),o=window.innerHeight-20,d=y.scrollHeight,u=window.getComputedStyle(f),_=parseInt(u.borderTopWidth,10),m=parseInt(u.paddingTop,10),p=parseInt(u.borderBottomWidth,10),h=_+m+d+parseInt(u.paddingBottom,10)+p,x=Math.min(5*b.offsetHeight,h),C=window.getComputedStyle(y),w=parseInt(C.paddingTop,10),j=parseInt(C.paddingBottom,10),k=e.top+e.height/2-10,I=b.offsetHeight/2,T=_+m+(b.offsetTop+I);if(T<=k){let e=l.length>0&&b===l[l.length-1].ref.current;c.style.bottom="0px";let t=Math.max(o-k,I+(e?j:0)+(f.clientHeight-y.offsetTop-y.offsetHeight)+p);c.style.height=T+t+"px"}else{let e=l.length>0&&b===l[0].ref.current;c.style.top="0px";let t=Math.max(k,_+y.offsetTop+(e?w:0)+I);c.style.height=t+(h-T)+"px",y.scrollTop=T-k+y.offsetTop}c.style.margin="10px 0",c.style.minHeight=x+"px",c.style.maxHeight=o+"px",n?.(),requestAnimationFrame(()=>v.current=!0)}},[g,i.trigger,i.valueNode,c,f,y,b,S,i.dir,n]);(0,D.useLayoutEffect)(()=>w(),[w]);let[j,k]=l.useState();(0,D.useLayoutEffect)(()=>{f&&k(window.getComputedStyle(f).zIndex)},[f]);let I=l.useCallback(e=>{e&&!0===x.current&&(w(),C?.(),x.current=!1)},[w,C]);return(0,a.jsx)(eD,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:v,onScrollButtonChange:I,children:(0,a.jsx)("div",{ref:_,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:(0,a.jsx)(m.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});eM.displayName="SelectItemAlignedPosition";var eA=l.forwardRef((e,t)=>{let{__scopeSelect:r,align:l="start",collisionPadding:n=10,...s}=e,o=eg(r);return(0,a.jsx)(Z,{...o,...s,ref:t,align:l,collisionPadding:n,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});eA.displayName="SelectPopperPosition";var[eD,eO]=ep(eN,{}),e$="SelectViewport",eH=l.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:n,...s}=e,i=eR(e$,r),u=eO(e$,r),c=(0,d.useComposedRefs)(t,i.onViewportChange),_=l.useRef(0);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),(0,a.jsx)(e_.Slot,{scope:r,children:(0,a.jsx)(m.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:o(s.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:a}=u;if(a?.current&&r){let e=Math.abs(_.current-t.scrollTop);if(e>0){let a=window.innerHeight-20,l=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(l<a){let n=l+e,s=Math.min(a,n),o=n-s;r.style.height=s+"px","0px"===r.style.bottom&&(t.scrollTop=o>0?o:0,r.style.justifyContent="flex-end")}}}_.current=t.scrollTop})})})]})});eH.displayName=e$;var eV="SelectGroup",[eF,eG]=ep(eV),eW=l.forwardRef((e,t)=>
4{let{__scopeSelect:r,...l}=e,n=(0,L.useId)();return(0,a.jsx)(eF,{scope:r,id:n,children:(0,a.jsx)(m.div,{role:"group","aria-labelledby":n,...l,ref:t})})});eW.displayName=eV;var ez="SelectLabel",eK=l.forwardRef((e,t)=>{let{__scopeSelect:r,...l}=e,n=eG(ez,r);return(0,a.jsx)(m.div,{id:n.id,...l,ref:t})});eK.displayName=ez;var eq="SelectItem",[eU,eX]=ep(eq),eZ=l.forwardRef((e,t)=>{let{__scopeSelect:r,value:n,disabled:s=!1,textValue:i,...u}=e,c=ex(eq,r),_=eR(eq,r),f=c.value===n,[p,h]=l.useState(i??""),[g,v]=l.useState(!1),x=(0,d.useComposedRefs)(t,e=>_.itemRefCallback?.(e,n,s)),y=(0,L.useId)(),b=l.useRef("touch"),S=()=>{s||(c.onValueChange(n),c.onOpenChange(!1))};if(""===n)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,a.jsx)(eU,{scope:r,value:n,disabled:s,textId:y,isSelected:f,onItemTextChange:l.useCallback(e=>{h(t=>t||(e?.textContent??"").trim())},[]),children:(0,a.jsx)(e_.ItemSlot,{scope:r,value:n,disabled:s,textValue:p,children:(0,a.jsx)(m.div,{role:"option","aria-labelledby":y,"data-highlighted":g?"":void 0,"aria-selected":f&&g,"data-state":f?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...u,ref:x,onFocus:o(u.onFocus,()=>v(!0)),onBlur:o(u.onBlur,()=>v(!1)),onClick:o(u.onClick,()=>{"mouse"!==b.current&&S()}),onPointerUp:o(u.onPointerUp,()=>{"mouse"===b.current&&S()}),onPointerDown:o(u.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:o(u.onPointerMove,e=>{b.current=e.pointerType,s?_.onItemLeave?.():"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:o(u.onPointerLeave,e=>{e.currentTarget===document.activeElement&&_.onItemLeave?.()}),onKeyDown:o(u.onKeyDown,e=>{(_.searchRef?.current===""||" "!==e.key)&&(eu.includes(e.key)&&S()," "===e.key&&e.preventDefault())})})})})});eZ.displayName=eq;var eJ="SelectItemText",eY=l.forwardRef((e,t)=>{let{__scopeSelect:r,className:s,style:o,...i}=e,u=ex(eJ,r),c=eR(eJ,r),_=eX(eJ,r),f=eb(eJ,r),[p,h]=l.useState(null),g=(0,d.useComposedRefs)(t,e=>h(e),_.onItemTextChange,e=>c.itemTextRefCallback?.(e,_.value,_.disabled)),v=p?.textContent,x=l.useMemo(()=>(0,a.jsx)("option",{value:_.value,disabled:_.disabled,children:v},_.value),[_.disabled,_.value,v]),{onNativeOptionAdd:y,onNativeOptionRemove:b}=f;return(0,D.useLayoutEffect)(()=>(y(x),()=>b(x)),[y,b,x]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.span,{id:_.textId,...i,ref:g}),_.isSelected&&u.valueNode&&!u.valueNodeHasChildren?n.createPortal(i.children,u.valueNode):null]})});eY.displayName=eJ;var eQ="SelectItemIndicator",e0=l.forwardRef((e,t)=>{let{__scopeSelect:r,...l}=e;return eX(eQ,r).isSelected?(0,a.jsx)(m.span,{"aria-hidden":!0,...l,ref:t}):null});e0.displayName=eQ;var e1="SelectScrollUpButton";l.forwardRef((e,t)=>{let r=eR(e1,e.__scopeSelect),n=eO(e1,e.__scopeSelect),[s,o]=l.useState(!1),i=(0,d.useComposedRefs)(t,n.onScrollButtonChange);return(0,D.useLayoutEffect)(()=>{if(r.viewport&&r.isPositioned){let e=function(){o(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),s?(0,a.jsx)(e6,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null}).displayName=e1;var e5="SelectScrollDownButton";l.forwardRef((e,t)=>{let r=eR(e5,e.__scopeSelect),n=eO(e5,e.__scopeSelect),[s,o]=l.useState(!1),i=(0,d.useComposedRefs)(t,n.onScrollButtonChange);return(0,D.useLayoutEffect)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;o(Math.ceil(t.scrollTop)<e)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),s?(0,a.jsx)(e6,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null}).displayName=e5;var e6=l.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:n,...s}=e,i=eR("SelectScrollButton",r),d=l.useRef(null),u=ef(r),c=l.useCallback(()=>{null!==d.current&&(window.clearInterval(d.current),d.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),(0,D.useLayoutEffect)(()=>{let e=u().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[u]),(0,a.jsx)(m.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:o(s.onPointerDown,()=>{null===d.current&&(d.current=window.setInterval(n,50))}),onPointerMove:o(s.onPointerMove,()=>{i.onItemLeave?.(),null===d.current&&(d.current=window.setInterval(n,50))}),onPointerLeave:o(s.onPointerLeave,()=>{c()})})}),e3=l.forwardRef((e,t)=>
4{let{__scopeSelect:r,...l}=e;return(0,a.jsx)(m.div,{"aria-hidden":!0,...l,ref:t})});e3.displayName="SelectSeparator";var e7="SelectArrow";function e9(e){return""===e||void 0===e}l.forwardRef((e,t)=>{let{__scopeSelect:r,...l}=e,n=eg(r),s=ex(e7,r),o=eR(e7,r);return s.open&&"popper"===o.position?(0,a.jsx)(Q,{...n,...l,ref:t}):null}).displayName=e7;var e2=l.forwardRef((e,t)=>{let{value:r,...n}=e,s=l.useRef(null),o=(0,d.useComposedRefs)(t,s),i=(0,en.usePrevious)(r);return l.useEffect(()=>{let e=s.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(i!==r&&t){let a=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(a)}},[i,r]),(0,a.jsx)(es,{asChild:!0,children:(0,a.jsx)("select",{...n,ref:o,defaultValue:r})})});function e4(e){let t=(0,p.useCallbackRef)(e),r=l.useRef(""),a=l.useRef(0),n=l.useCallback(e=>{let l=r.current+e;t(l),function e(t){r.current=t,window.clearTimeout(a.current),""!==t&&(a.current=window.setTimeout(()=>e(""),1e3))}(l)},[t]),s=l.useCallback(()=>{r.current="",window.clearTimeout(a.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(a.current),[]),[r,n,s]}function e8(e,t,r){var a,l;let n=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,s=r?e.indexOf(r):-1,o=(a=e,l=Math.max(s,0),a.map((e,t)=>a[(l+t)%a.length]));1===n.length&&(o=o.filter(e=>e!==r));let i=o.find(e=>e.textValue.toLowerCase().startsWith(n.toLowerCase()));return i!==r?i:void 0}e2.displayName="BubbleSelect";var te=e.i(366906),tt=e.i(833369),tr=e.i(429506),ta=e.i(56206);let tl={"teddy-select":"_teddy-select_d7s5u_1","teddy-select__trigger":"_teddy-select__trigger_d7s5u_12","teddy-select__icon":"_teddy-select__icon_d7s5u_30","teddy-select__trigger--error":"_teddy-select__trigger--error_d7s5u_44","teddy-select__trigger--disabled":"_teddy-select__trigger--disabled_d7s5u_48","teddy-select__trigger--readonly":"_teddy-select__trigger--readonly_d7s5u_54","teddy-select__content":"_teddy-select__content_d7s5u_62","teddy-select__item":"_teddy-select__item_d7s5u_73","teddy-select__item-indicator":"_teddy-select__item-indicator_d7s5u_94","teddy-select__separator":"_teddy-select__separator_d7s5u_105","teddy-select__label":"_teddy-select__label_d7s5u_110","teddy-select__scroll-area-root":"_teddy-select__scroll-area-root_d7s5u_118","teddy-select__scroll-area-viewport":"_teddy-select__scroll-area-viewport_d7s5u_122","teddy-select__scroll-area-scrollbar":"_teddy-select__scroll-area-scrollbar_d7s5u_131","teddy-select__scroll-area-thumb":"_teddy-select__scroll-area-thumb_d7s5u_137"},tn=l.default.createContext({isDirty:!1,setIsDirty:()=>null,inputRef:{current:null},options:[]}),ts="teddy-select",to=l.default.forwardRef(({className:e,children:t,onValueChange:r,frameClassName:n,value:s,label:o,disabled:i,helperText:d,validationState:u,errorText:c,options:_,maxHeight:f,...m},p)=>{let h=(0,ta.default)([tl[`${ts}`]],e),g=l.default.useRef(null),[v,x]=l.default.useState(!1),[y,b]=l.default.useState("");return(0,a.jsxs)("div",{...m,ref:p,className:h,children:[(0,a.jsx)(tn.Provider,{value:{isDirty:v,setIsDirty:x,inputRef:g,options:_,maxHeight:f},children:(0,a.jsxs)(eS,{...m,onValueChange:e=>(r&&r(e),b(e),e),value:s||y,children:[o&&(0,a.jsx)(te.Label,{disabled:i,children:o}),t,d&&(0,a.jsx)(tt.HelperText,{children:d}),"invalid"===u&&c&&(0,a.jsxs)(tr.FieldErrorText,{children:[(0,a.jsx)(tr.FieldErrorText.Indicator,{}),c]})]})}),(0,a.jsx)("div",{className:(0,ta.default)(tl[`${ts}__frame`],n)})]})});to.displayName="Select";var ti=e.i(326779);let td=l.default.forwardRef(({className:e,children:t,name:r,...l},n)=>(0,a.jsx)(ti.Icon,{"aria-hidden":!0,name:"chevron-up"===r?"chevron-up":"chevron-down",size:l.size||"sm",...l,ref:n,className:(0,ta.clsx)(tl[`${ts}__icon`],e),children:t}));td.displayName="Indicator";let tu=l.default.forwardRef(({children:e,...t},r)=>(0,a.jsxs)(eZ,{className:tl[`${ts}__item`],...t,ref:r,children:[(0,a.jsx)(eY,{children:e}),(0,a.jsx)(e0,{className:tl[`${ts}__item-indicator`],children:(0,a.jsx)(td,{name:"chevron-down",size:"xs"})})]}));tu.displayName="Select.Item";let tc=l.default.forwardRef(({children:e,options:t,label:r,...l},n)=>(0,a.jsxs)(eW,{...l,ref:n,className:tl[`${ts}__group`],children:[r&&(0,a.jsx)(eK,{className:tl[`${ts}__label`],children:r}),null==t?void 0:t.map(e=>(0,a.jsx)(tu,{value:e,children:e})),e]}));tc.displayName="Select.Group";var t_=e.i(489179);let tf=l.default.forwardRef(({children:e,style:t,...r},n)=>{let{maxHeight:s}=l.default.useContext(tn),{maxHeight:o,...i}=t||{},d=s??o;return(0,a.jsxs)(t_.Root,{type:"auto",className:tl[`${ts}__scroll-area-root`],children:[(0,a.jsx)(eH,{asChild:!0,children:(0,a.jsx)(t_.Viewport,{...r,ref:n,className:tl[`${ts}__scroll-area-viewport`],style:{...i,...null!=d?{maxHeight:d}:{}},children:e})}),(0,a.jsx)(t_.Scrollbar,{orientation:"vertical",className:tl[`${ts}__scroll-area-scrollbar`],children:(0,a.jsx)(t_.Thumb,{className:tl[`${ts}__scroll-area-thumb`]})})]})});tf.displayName="Select.Viewport";let tm=l.default.forwardRef((e,t)=>
4(0,a.jsx)(eB,{...e,ref:t,position:"popper",className:tl[`${ts}__content`]}));tm.displayName="Select.Content";let tp=l.default.forwardRef(({placeholder:e,...t},r)=>(0,a.jsx)(ek,{...t,placeholder:e,ref:r}));tp.displayName="Select.Value";let th=l.default.forwardRef(({className:e,readonly:t,validationState:r,name:n,children:s,...o},i)=>{let{disabled:d=!1}=(0,l.useContext)(tn),u=(0,ta.default)([tl[`${ts}__trigger`],{[tl[`${ts}__trigger--valid`]]:"valid"===r,[tl[`${ts}__trigger--error`]]:"invalid"===r},{[tl[`${ts}__trigger--readonly`]]:t},{[tl[`${ts}__trigger--disabled`]]:d}],e);return(0,a.jsxs)(ew,{...o,className:u,"aria-label":n,disabled:d||t,ref:i,children:[s,(0,a.jsx)(eI,{className:tl[`${ts}__icon`],asChild:!0,children:(0,a.jsx)(td,{})})]})});th.displayName="Select.Trigger";let tg=l.default.forwardRef(({...e})=>(0,a.jsx)(eT,{...e}));tg.displayName="Select.Portal";let tv=l.default.forwardRef(({...e},t)=>(0,a.jsx)(e3,{className:tl[`${ts}__separator`],...e,ref:t}));tv.displayName="Select.Separator",to.displayName="Select",tu.displayName="Select.Item",tc.displayName="Select.Group",tf.displayName="Select.Viewport",tm.displayName="Select.Content",tp.displayName="Select.Value",th.displayName="Select.Trigger",tg.displayName="Select.Portal",td.displayName="Select.Indicator",tv.displayName="Select.Separator";let tx=Object.assign(to,{Indicator:td,Item:tu,Group:tc,Viewport:tf,Content:tm,Value:tp,Trigger:th,Portal:tg,Separator:tv});e.s(["Select",0,tx],312915)},397844,e=>{"use strict";var t=e.i(391398),r=e.i(56206),a=e.i(326779);let l={video:"_video_e37ft_1",iframeWrapper:"_iframeWrapper_e37ft_5",iframe:"_iframe_e37ft_5",customDetails:"_customDetails_e37ft_24",thumbnail:"_thumbnail_e37ft_51",details:"_details_e37ft_57",icon:"_icon_e37ft_67"};e.s(["Video",0,({className:e,src:n,allowFullScreen:s,img:o,description:i,videoTitle:d,autoplay:u,...c})=>(0,t.jsxs)("div",{className:(0,r.default)(o?l.withCustomThumbnail:l.video,e),...c,children:[(0,t.jsxs)("div",{className:l.iframeWrapper,children:[o&&!u&&(0,t.jsxs)("div",{className:l.customDetails,children:[(0,t.jsx)("img",{src:o,alt:"",className:l.thumbnail}),(0,t.jsxs)("div",{className:l.details,children:[(0,t.jsx)(a.Icon,{className:l.icon,name:"play",color:"white"}),(0,t.jsx)("h2",{className:l.title,children:i})]})]}),(0,t.jsx)("iframe",{src:n+(u?"?rel=0&autoplay=1":""),className:l.iframe,allowFullScreen:s,title:d})]}),!o&&(0,t.jsx)("div",{className:l.caption,children:i})]})],397844)},464163,(e,t,r)=>{var a=e.r(340682),l=e.r(687378),n=e.r(231853);t.exports=a&&1/n(new a([,-0]))[1]==1/0?function(e){return new a(e)}:l},681708,(e,t,r)=>{var a=e.r(650119),l=e.r(679617),n=e.r(734403),s=e.r(33483),o=e.r(464163),i=e.r(231853);t.exports=function(e,t,r){var d=-1,u=l,c=e.length,_=!0,f=[],m=f;if(r)_=!1,u=n;else if(c>=200){var p=t?null:o(e);if(p)return i(p);_=!1,u=s,m=new a}else m=t?[]:f;e:for(;++d<c;){var h=e[d],g=t?t(h):h;if(h=r||0!==h?h:0,_&&g==g){for(var v=m.length;v--;)if(m[v]===g)continue e;t&&m.push(g),f.push(h)}else u(m,g,r)||(m!==f&&m.push(g),f.push(h))}return f}},687378,(e,t,r)=>{t.exports=function(){}},116142,(e,t,r)=>{var a=e.r(49554),l=e.r(622986),n=e.r(372285);t.exports=function(e,t,r){var s=null==e?0:e.length;return s?(r&&"number"!=typeof r&&l(e,t,r)?(t=0,r=s):(t=null==t?0:n(t),r=void 0===r?s:n(r)),a(e,t,r)):[]}}]); 5 6//# debugId=24746f5c-7614-9e7b-e6c1-13cb8950a5fc
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.