"use strict";(self.webpackChunkOne=self.webpackChunkOne||[]).push([["8436"],{43989:function(e,t,a){a.d(t,{Z:()=>s});var n,l=a(67294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),n||(n=l.createElement("path",{d:"M22.22 12.6H3.885a62.128 62.128 0 0 0 10.025 6.825l-.56 1.075a63.672 63.672 0 0 1-10.97-7.61l-.2-.18v-1.405l.18-.175A46.636 46.636 0 0 1 13.365 3.5l.53 1.08a46.881 46.881 0 0 0-10.06 6.82H22.22v1.2z"})))},60221:function(e,t,a){a.d(t,{Z:()=>s});var n,l=a(67294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),n||(n=l.createElement("path",{d:"M15.5 20.725 6.35 12l9.15-8.725 1.38 1.45L9.245 12l7.635 7.275-1.38 1.45z"})))},24190:function(e,t,a){a.d(t,{Z:()=>s});var n,l=a(67294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),n||(n=l.createElement("path",{d:"M8.5 20.725 17.65 12 8.5 3.275l-1.38 1.45L14.755 12 7.12 19.275l1.38 1.45z"})))},82420:function(e,t,a){a.d(t,{Z:()=>s});var n,l=a(67294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),n||(n=l.createElement("path",{d:"M17.533 4.223 6.03 19.219l.952.73L18.485 4.954l-.952-.73zM13.67 6.215l-.325 1.155A4.845 4.845 0 0 0 12 7.185h-.275A4.915 4.915 0 0 0 7.1 12.08a4.855 4.855 0 0 0 .795 2.67l-1 .655a6.065 6.065 0 0 1 .135-6.84 25.702 25.702 0 0 0-4.925 3.285v.455A26.192 26.192 0 0 0 6.78 15.5l-.55 1.065a26.703 26.703 0 0 1-5.125-3.5l-.2-.18V11.32l.2-.18c.225-.205 5.5-4.955 10.585-5.145h.315a6.03 6.03 0 0 1 1.665.22zm9.435 5.105v1.53l-.195.18c-.225.205-5.5 4.955-10.59 5.145h-.315a6.182 6.182 0 0 1-1.66-.23l.325-1.155c.432.13.88.2 1.33.21h.275a4.91 4.91 0 0 0 3.835-7.57l1-.655c.65.99.997 2.146 1 3.33a6.025 6.025 0 0 1-1.125 3.5 25.496 25.496 0 0 0 4.925-3.295v-.455A25.791 25.791 0 0 0 17.1 8.62l.54-1.07a26.433 26.433 0 0 1 5.275 3.59l.19.18z"})))},61103:function(e,t,a){a.d(t,{Z:()=>s});var n,l=a(67294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),n||(n=l.createElement("path",{fillRule:"evenodd",d:"M15.51 4.055a8.105 8.105 0 0 1 .625 11.23l5.79 5.79-.85.85-5.79-5.79a8.105 8.105 0 1 1 .224-12.08zM10 3.1a6.9 6.9 0 1 0 0 13.8 6.9 6.9 0 0 0 0-13.8z",clipRule:"evenodd"})))},29713:function(e,t,a){a.d(t,{Z:()=>i});var n,l,r=a(67294);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),n||(n=r.createElement("path",{d:"M14.5 12.25a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0z"})),l||(l=r.createElement("path",{fillRule:"evenodd",d:"m22.854 11.396.146.147v1.414l-.146.147c-.063.062-.26.266-.475.489l-.002.001c-.242.251-.51.528-.637.657a23.506 23.506 0 0 1-1.612 1.498C17.676 17.81 15.038 19 12 19c-3.039 0-5.676-1.191-8.128-3.25a23.505 23.505 0 0 1-1.612-1.5c-.128-.129-.395-.405-.638-.656a46.644 46.644 0 0 0-.476-.49L1 12.957v-1.414l.146-.147c.063-.062.26-.266.476-.49.243-.25.51-.527.638-.657A23.531 23.531 0 0 1 3.872 8.75C6.324 6.691 8.962 5.5 12 5.5c3.039 0 5.676 1.191 8.128 3.25.548.461 1.062.943 1.612 1.5.128.128.394.404.637.655l.001.002c.216.223.413.427.476.49zM4.516 14.984c.761.64 1.538 1.188 2.338 1.634A6.723 6.723 0 0 1 5.25 12.25c0-1.666.604-3.191 1.604-4.368-.8.446-1.577.994-2.338 1.634-.523.44-1.015.9-1.545 1.437-.121.122-.377.387-.616.634L2 11.954v.592l.354.366c.24.248.496.513.617.635.53.537 1.022.998 1.545 1.437zM6.25 12.25a5.75 5.75 0 1 0 11.5 0 5.75 5.75 0 0 0-11.5 0zm12.5 0a6.723 6.723 0 0 0-1.604-4.369c.8.447 1.577.995 2.338 1.635.523.44 1.015.9 1.545 1.437.12.122.377.387.616.634h.001l.354.367v.592l-.35.363-.004.003c-.24.248-.496.513-.617.635a22.37 22.37 0 0 1-1.544 1.437 15.07 15.07 0 0 1-2.34 1.635 6.723 6.723 0 0 0 1.605-4.369z",clipRule:"evenodd"})))},56955:function(e,t,a){a.d(t,{Z:()=>c});var n=a(85893),l=a(81722),r=a(27361),s=a.n(r),i=a(60221),o=a(24190);let c=(0,l.$j)(({page:e})=>({isRtl:s()(e,"data.siteParams.rtl",!1)}))(({isRtl:e,className:t})=>{let a=e?o.Z:i.Z;return(0,n.jsx)(a,{className:t})})},89117:function(e,t,a){a.d(t,{r:()=>i});var n=a(85893),l=a(67294),r=a(63387),s=a.n(r);let i=({value:e=!1,onChange:t,leftIcon:a,rightIcon:r,disabled:i,name:o,id:c,size:d="medium",isInverted:u,withOnOffLabels:p})=>(0,n.jsxs)("div",{className:s()("Switch",{"has-icons":!!a&&!!r,"is-disabled":i,"is-large":"large"===d,"is-medium":"medium"===d,"is-small":"small"===d,"is-checked":e,"is-inverted":u,"has-on-off-labels":p}),children:[(0,n.jsx)("input",{className:"Switch__input",type:"checkbox",checked:e,onChange:()=>{t(!e)},name:o,id:c,disabled:i}),(0,n.jsx)("div",{className:"Switch__slider",children:a&&r&&(0,n.jsxs)(l.Fragment,{children:[(0,n.jsx)(a,{className:"Switch__icon"}),(0,n.jsx)(r,{className:"Switch__icon"})]})}),(0,n.jsx)("label",{className:"Switch__switch",htmlFor:c})]})},31706:function(e,t,a){a.d(t,{z:()=>s});var n=a(85893),l=a(63387),r=a.n(l);let s=({variant:e})=>(0,n.jsx)("div",{className:r()("Indicator",{"is-success":"success"===e,"is-error":"error"===e,"is-tick":"tick"===e}),children:(0,n.jsx)("div",{className:"Indicator__status"})})},72592:function(e,t,a){a.d(t,{I:()=>g});var n=a(85893),l=a(67294),r=a(63387),s=a.n(r),i=a(31706),o=a(85978),c=a(77091),d=a(55546),u=a(57950),p=a(82420),h=a(61103),m=a(29713);let g=(0,l.forwardRef)(({autoComplete:e,errorLabel:t,hasError:a,disabled:r=!1,id:g,infoDialog:v,isBoxed:f=!1,isMandatory:x=!1,label:_,legalLabel:j,min:b,maxLength:w=100,name:y,onBlur:N,onChange:S,onFocus:k,onKeyDown:I,onDelete:C,placeholder:O,showStatus:F=!1,isLoading:M=!1,type:P="text",value:T,hasGlass:B,hideNumberArrows:E=!1},R)=>{let[$,Z]=(0,l.useState)(!1),[L,z]=(0,l.useState)(!1),{title:A,content:V}=v||{},H="password"===P,Q="date"===P,q="search"===P,D=!!T&&!!T?.length;return(0,n.jsxs)("div",{className:s()("Input",{"is-filled":!!T,"has-error":a,"has-label":!!_,"has-status":F,"is-disabled":r,"is-boxed":f,"is-date":"date"===P,"is-password":"password"===P,"has-no-arrows":E}),children:[(0,n.jsxs)("div",{className:"Input__wrapper",children:[F&&(0,n.jsx)("div",{className:"Input__status",children:(0,n.jsx)(i.z,{variant:a?"error":"success"})}),(0,n.jsx)("input",{className:"Input__input",id:g,name:y,value:T,onChange:e=>{S(e.target.value)},onBlur:()=>{N?.()},onFocus:()=>{k?.()},onKeyDown:I,type:L?"text":P,placeholder:O,disabled:r,maxLength:w,min:b,autoComplete:e,ref:R,"aria-required":x,"aria-invalid":a,"aria-describedby":`${g}--error ${g}--legal`}),_&&(0,n.jsxs)("label",{className:"Input__label",htmlFor:g,children:[_," ",x&&!_.endsWith("*")&&(0,n.jsx)("span",{className:"Input__mandatory","aria-hidden":!0,children:"*"})]}),(0,n.jsxs)("div",{className:s()({Input__indicator:!Q}),children:[q&&(0,n.jsxs)(l.Fragment,{children:[!M&&!D&&B&&(0,n.jsx)(h.Z,{className:"Input__indicatorIcon"}),!M&&D&&(0,n.jsx)("button",{className:"Input__indicatorButton",type:"button",onClick:C,children:(0,n.jsx)(u.Z,{className:"Input__indicatorIcon"})}),M&&(0,n.jsx)("div",{className:"Input__loadingBox",children:(0,n.jsx)("span",{className:"Input__loading"})})]}),H&&(0,n.jsxs)("button",{className:"Input__indicatorButton",onClick:()=>z(e=>!e),type:"button",children:[!L&&(0,n.jsx)(m.Z,{className:"Input__indicatorIcon"}),L&&(0,n.jsx)(p.Z,{className:"Input__indicatorIcon"})]}),!H&&!Q&&!q&&v&&(0,n.jsx)("button",{className:"Input__indicatorButton",onClick:()=>Z(!0),type:"button",children:(0,n.jsx)(d.s,{size:"xlarge"})}),$?(0,n.jsx)(c.V,{onClose:()=>Z(!1),title:A,children:V}):null]})]}),a&&(0,n.jsx)(o.v,{variant:"error",id:`${g}--error`,role:"alert",children:t}),(0,n.jsx)(o.v,{variant:"legal",id:`${g}--legal`,children:j})]})})},85978:function(e,t,a){a.d(t,{v:()=>s});var n=a(85893),l=a(63387),r=a.n(l);let s=({children:e,variant:t,id:a,role:l})=>e?(0,n.jsx)("span",{id:a,role:l,className:r()("Message",{"is-error":"error"===t,"is-introduction":"introduction"===t,"is-legal":"legal"===t,"is-paragraph":"paragraph"===t}),children:e}):null},96407:function(e,t,a){a.d(t,{r:()=>n.r});var n=a(89117)},55546:function(e,t,a){a.d(t,{s:()=>s});var n=a(85893),l=a(86619);let r=e=>{switch(e){case"xlarge":return 20;case"large":return 18;case"small":return 14;default:return 16}},s=({size:e="medium"})=>{let t={"--InfoIcon-size-default":"string"==typeof e?`${r(e)}px`:`${r(e[0])}px`,"--InfoIcon-size-medium":"string"==typeof e?`${r(e)}px`:`${r(e[1])}px`,"--InfoIcon-size-large":"string"==typeof e?`${r(e)}px`:`${r(e[2])}px`};return(0,n.jsx)(l.Z,{style:t,className:"InfoIcon"})}},77647:function(e,t,a){a.d(t,{Z:()=>d});var n=a(85893),l=a(81722),r=a(63387),s=a.n(r),i=a(43989),o=a(56955),c=a(98839);let d=(0,l.$j)(({page:e})=>({brand:e.data?.siteParams?.brand||""}))(({className:e,url:t,title:a="",locationInPage:l="breadcrumb-link",onClickHandler:r=()=>{},brand:d,isDarkMode:u=!1})=>{let p="alpine"===d?i.Z:o.Z;return(0,n.jsx)("div",{className:s()("BackButton",e),children:(0,n.jsxs)(c.ZP,{className:s()("BackButton__back",{"is-darkMode":u}),url:t,title:a,onClick:r,"data-track":"click","data-track-button-text":a,"data-track-destination":t,"data-track-location-in-page":l,"data-track-event":"navigationClick",useButtonMarkup:!0,children:[(0,n.jsx)(p,{className:"BackButton__icon"}),a]})})})},91870:function(e,t,a){a.r(t),a.d(t,{default:()=>M});var n=a(85893),l=a(67294),r=a(81722),s=a(80430),i=a(63387),o=a.n(i),c=a(77091),d=a(61228),u=a(95650),p=a(92885),h=a(72319),m=a(19350),g=a(91530),v=a(85608),f=a(44845),x=a(78601),_=a(94966),j=a(77647),b=a(96407),w=a(98839),y=a(72592);let N=({registrationNumberPlaceholder:e="",registrationNumberState:t="",handleRegistrationNumberChange:a=()=>{},handleFunnelLinkClick:l=()=>{},isLoading:r=!1})=>(0,n.jsxs)("div",{className:"RegistrationNumberForm__form",children:[(0,n.jsx)(y.I,{id:"registrationNumber",type:"text",placeholder:e,value:t,onChange:e=>a(e)}),(0,n.jsx)(d.e,{variant:"cta-super-primary",isLoading:r,title:(0,m.re)("wording.ok"),disabled:!t||r,onClick:l,useButtonMarkup:!0})]}),S=({title:e,funnelMethods:t=[],toggleProfile:a=!1,profile:l,registrationNumberState:r,registrationNumberLabel:s,registrationNumberPlaceholder:i,detailedEstimateTitle:o,professionalVehicleOptinLabel:c,dontKnowRegistrationNumberCtaLabel:d,isLoading:u=!1,handleRegistrationNumberChange:p,handleOnToggleProfile:h,handleFunnelLinkClick:m})=>(0,n.jsxs)("div",{className:"FunnelMethodSelect",children:[(0,n.jsx)("p",{className:"FunnelMethodSelect__title",children:e}),a&&(0,n.jsxs)("div",{className:"FunnelMethodSelect__professionalVehicleOptin",children:[(0,n.jsx)("div",{className:"FunnelMethodSelect__ToggleButton",children:(0,n.jsx)(b.r,{id:"is-pro",name:"is-pro",onChange:h,value:l===_.$f,size:"small"})}),(0,n.jsx)("div",{className:"FunnelMethodSelect__ToggleButtonLabel",children:(0,n.jsx)("p",{className:"FunnelMethodSelect__professionalVehicleOptinLabel",children:c})})]}),(0,n.jsx)("div",{className:"FunnelMethodSelect__registration",children:t.map(e=>{let t=e===_.$E;return(0,n.jsxs)("div",{className:t?"FunnelMethodSelect__registration__withPlate":"FunnelMethodSelect__registration__withoutPlate",children:[(0,n.jsx)("p",{className:"FunnelMethodSelect__registration__label",children:t?s:o}),t&&(0,n.jsx)(N,{registrationNumberPlaceholder:i,registrationNumberState:r,handleFunnelLinkClick:()=>m(_.$E,r),handleRegistrationNumberChange:p,isLoading:u}),!t&&(0,n.jsx)(w.ZP,{title:d,design:"cta-primary",onClick:()=>m(_._h),useButtonMarkup:!0})]},e)})})]}),k=()=>(0,n.jsx)("div",{className:"ChoiceWording",children:(0,m.re)("wording.or")}),I=({title:e="",funnelTypes:t=[],standardDescription:a="",detailedDescription:l="",standardQuotationCtaLabel:r="",detailedQuotationCtaLabel:s="",handleTypeSelect:i=()=>{}})=>(0,n.jsxs)("div",{className:"FunnelTypeSelect",children:[e&&(0,n.jsx)("p",{className:"FunnelTypeSelect__title",children:e}),(0,n.jsx)("div",{className:"FunnelTypeSelect__contentStep",children:t.map((e,c)=>{let d=e===_.Qo?a:l||"",u=e===_.Qo?r:s||"",p=e===_.Qo?"Button_primary":"Button_superPrimary";return(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"FunnelTypeSelect__description",children:d}),(0,n.jsx)(w.ZP,{className:o()("Button FunnelTypeSelect__CTA",p),onClick:()=>i(e,u),title:u,useButtonMarkup:!0}),t.length>0&&c<1&&(0,n.jsx)(k,{})]},e)})})]}),C={setNotification:a(59870).sc},O=(0,r.$j)(({page:{location:{queryParams:e},data:t}})=>({queryParamFrom:e?.from?.toUpperCase(),isiFrame:e?.isiFrame,locale:t?.siteParams?.locale,brand:t?.siteParams?.brand}),C),F=e=>e?.some(e=>e?.profiles?.some(e=>e.profile===_.Su)),M=O(({general:e,standardQuotation:t,data:a=[],error:r,isiFrame:i,editContext:b,queryParamFrom:w,brand:y,locale:N,setNotification:k})=>{let{detailed:C,standard:O,title:M}=e||{},{detailedEstimateTitle:P="",detailedQuotationTitle:T="",dontKnowRegistrationNumberCtaLabel:B="",professionalVehicleOptinLabel:E="",quickQuotationTitle:R="",registrationNumberLabel:$="",registrationNumberPlaceholder:Z=""}=t||{},{ipMaxError:L="",popin:z,errorMessage:A}=r||{},{errorDescription:V,title:H}=z||{},[Q,q]=(0,l.useState)(!1),[D,W]=(0,l.useState)(1===a.length&&a[0]?.funnelType?a[0]?.funnelType:""),[G,J]=(0,l.useState)(F(a)?_.Su:_.$f),[K,U]=(0,l.useState)(""),[X,Y]=(0,l.useState)(!1);(0,l.useEffect)(()=>{(0,g.bZ)(_.s9,"sessionStorage")},[]);let{description:ee="",quotationCtaLabel:et="",bodyCopy:ea}=C||{},{description:en="",quotationCtaLabel:el="",funnelCtaLink:er}=O||{},es=(w||h.as(er)?.from)===x.V6.RVP,ei=(0,l.useMemo)(()=>[...a].map(e=>e?.funnelType).sort(e=>"SHORT"===e?-1:1)||[],[a]),eo=a?.find(e=>e?.funnelType===D),[ec,ed]=(0,l.useMemo)(()=>{let e=!0,t=[];if(D){let a=eo?.profiles||[];1===a.length&&(J(a[0]?.profile),e=!1),t=a?.find(e=>e.profile===G)?.funnelMethods||[],t=t?.length>1?[_.$E,_._h]:t}return[e,t]},[eo?.profiles,D,G]),eu=async(e,t)=>{Y(!0);try{await s.Z.post("/agg/v1/tradein/questions",{locale:N,registrationNumber:t,profile:G,funnelType:D,funnelMethod:e,context:y});let a=(0,h.dx)(er||"",{funnelType:D,profile:G,funnelMethod:e,registrationNumber:t,from:es?x.V6.RVP:void 0,isiFrame:i});(0,p.y_)({event:"navigationClick",buttonText:t?(0,m.re)("wording.ok"):B,destination:a,locationInPage:"tradeIn"}),(0,f.tt)(a)}catch(t){let e=t?.response?.data?.messages?.[0]?.parameters?.ecoceaErrorCode;"F6"===e||"F7"===e||"P1"===e?("F6"===e&&k&&k({level:v.hF.ERROR,emitter:"tradeinv2-wrapper-send-answers",message:L}),q(["F7","P1"].includes(e))):k&&k({level:v.hF.ERROR,emitter:"tradeinv2-wrapper-send-answers",message:A})}finally{Y(!1)}},ep=(0,l.useCallback)((e,t)=>{W(e);let n=a.find(t=>t?.funnelType===e)?.profiles||[],l=n[0]||{};if(G&&n.some(e=>e.profile===G)||J(l.profile||""),1===n.length&&l.funnelMethods?.length===1&&l.funnelMethods[0]===_._h&&er){let a=(0,h.dx)(er||"",{funnelType:e,profile:l.profile,funnelMethod:_._h,from:es?x.V6.RVP:void 0,isiFrame:i});(0,p.y_)({event:"navigationClick",buttonText:t,destination:a,locationInPage:"tradeIn"}),(0,f.tt)(a)}},[a,er,es,i,G]),eh=(0,l.useCallback)(()=>{(0,p.y_)({event:"toggleInteraction"}),J(G===_.Su?_.$f:_.Su)},[G]),em=(0,l.useCallback)(e=>{U(e)},[]);return(0,n.jsxs)("div",{className:"FunnelHomePage",children:[D&&(0,n.jsxs)(l.Fragment,{children:[(0,n.jsx)(j.Z,{className:o()("FunnelHomePage__back",{"is-not-visible":1===ei.length}),onClickHandler:()=>W(""),title:(0,m.re)("wording.previous"),locationInPage:"tradeIn"}),(0,n.jsx)(S,{title:D===_.Qo?R:T,funnelMethods:ed,toggleProfile:ec,profile:G,registrationNumberState:K,registrationNumberLabel:$,registrationNumberPlaceholder:Z,detailedEstimateTitle:P,professionalVehicleOptinLabel:E,dontKnowRegistrationNumberCtaLabel:B,handleRegistrationNumberChange:em,handleOnToggleProfile:eh,handleFunnelLinkClick:eu,isLoading:X}),Q&&(0,n.jsxs)(c.V,{onClose:()=>q(!1),title:H,children:[(0,n.jsxs)("p",{className:"FunnelHomePage__portalModalDescription",children:[" ",V]}),(0,n.jsx)(c.k,{children:(0,n.jsx)(d.e,{onClick:()=>eu(_._h),useButtonMarkup:!0,variant:"cta-primary",children:(0,m.re)("wording.validateCTA")})})]})]}),!D&&(0,n.jsx)(I,{title:M,funnelTypes:ei.filter(Boolean),standardDescription:en,detailedDescription:ee,standardQuotationCtaLabel:el,detailedQuotationCtaLabel:et,handleTypeSelect:ep}),ea&&(0,n.jsx)("p",{className:"FunnelHomePage__detailedBodyCopy",children:ea}),(0,n.jsx)(u.Cq,{editContext:b})]})})},94966:function(e,t,a){a.d(t,{$E:()=>l,$f:()=>i,Qo:()=>n,Su:()=>s,_h:()=>r,s9:()=>o});let n="SHORT",l="WITH_REGISTRATION_PLATE",r="WITHOUT_REGISTRATION_PLATE",s="PRIVATE",i="PRO",o="tradein"},91530:function(e,t,a){a.d(t,{ai:()=>h,bZ:()=>u,fp:()=>c,pj:()=>d});var n=a(27361),l=a.n(n),r=a(36968),s=a.n(r);let i=(e="localStorage")=>{if("undefined"==typeof window||!l()(window,e))throw Error(`window.${e} not available`)},o=e=>{try{return JSON.parse(e)}catch(t){return e}},c=(e,t="localStorage")=>{try{i(t);let a=l()(window,t).getItem(e);if("string"!=typeof a)return;return o(a)}catch(e){console.error(`${t} not available`);return}},d=(e,t,a="localStorage")=>{try{i(a),l()(window,a).setItem(e,"string"==typeof t?t:JSON.stringify(t))}catch(e){console.error(`${a} not available`)}},u=(e,t="localStorage")=>{try{i(t),l()(window,t).removeItem(e)}catch(e){console.error(`${t} not available`)}},p=(e,t,a,n="localStorage")=>{let l=c(e,n)||{};s()(l,t,a),d(e,l,n)},h=(e,t,a="localStorage")=>{p(e,t,void 0,a)}}}]);