"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[78370],{1487:(e,t,l)=>{l.d(t,{m:()=>n});var n=function(e){return e.SIDETREAD="sidetread",e.SIDEWALL="sidewall",e.TREADFULL="treadfull",e.TREADONLY="treadonly",e}({})},4061:(e,t,l)=>{l.d(t,{A:()=>a,G:()=>r});var n=l(14232),i=l(1487);function r(e){let t={[i.m.SIDETREAD]:-1,[i.m.SIDEWALL]:-1,[i.m.TREADFULL]:-1,[i.m.TREADONLY]:-1};return(e.forEach((e,l)=>{t[e.productImageType]=l}),t[i.m.SIDETREAD]>=0)?e[t[i.m.SIDETREAD]].image:t[i.m.TREADFULL]>=0?e[t[i.m.TREADFULL]].image:t[i.m.SIDEWALL]>=0?e[t[i.m.SIDEWALL]].image:e.length>0?e[0].image:{src:"https://images.simpletire.com/image/upload/v1617286846/steer/common/s-tire-skeleton.svg",altText:"No Product Image"}}function a(e){return(0,n.useMemo)(()=>r(e),[e])}},7080:(e,t,l)=>{l.d(t,{A:()=>i});var n=l(14232);function i(e,t,l){let i=(0,n.useRef)(!1);(0,n.useEffect)(()=>{!i.current&&l(t)&&(e(),i.current=!0)},[t])}},15501:(e,t,l)=>{l.d(t,{JW:()=>u,s9:()=>d});var n=l(29747),i=l(14232),r=l(52980),a=l(36307);let o=(0,a.q6)();function d(e){let{children:t}=e,l=function(){let[e,t]=(0,i.useState)(!1);return{isGTMScriptLoaded:e,onGTMScriptLoad:(0,i.useCallback)(()=>{r.A.initialize(),r.A.onScriptLoaded(),t(!0)},[])}}();return(0,n.Y)(o.Provider,{value:l,"data-element":"unknown","data-component":"GTMScriptContextProvider",children:t})}let u=(e,t)=>(0,a.i7)(o,e,t)},66541:(e,t,l)=>{l.d(t,{R8:()=>T,u2:()=>P,tf:()=>g});var n=l(29747),i=l(42486),r=l(14e3),a=l(14232),o=l(88772),d=l(72747),u=l(86089);async function s(e){let{query:t,signal:l}=e;return await (0,u.q$)({endpoint:"/users/recent-search",includeAuthorization:!0,includeUserRegion:!0,includeUserSSOUid:!0,includeUserTime:!0,includeUserZip:!0,method:"get",query:t,signal:l})}async function c(e){let{query:t,signal:l}=e;return await (0,u.q$)({endpoint:"/users/recent-search",includeAuthorization:!0,includeUserRegion:!0,includeUserSSOUid:!0,includeUserTime:!0,includeUserZip:!0,method:"post",query:t,signal:l})}var v=l(79478),m=l(938),p=l(36307),f=l(91066),S=l(84473),P=function(e){return e.CATALOG="catalog",e.HOME="home",e.OTHER="",e.PDP="pdp",e}({});let y=(0,p.q6)();function T(e){let{children:t}=e,l=function(){let[e,t]=(0,a.useState)(),l=(0,r.usePathname)(),n=(0,r.useParams)(),u=(0,d.A)(),p=(0,o.J)(e=>{var t,l,n;return null!==(n=null===(l=e.userPersonalizationData)||void 0===l?void 0:null===(t=l.userLocation)||void 0===t?void 0:t.zip)&&void 0!==n?n:""}),P=(0,a.useCallback)(async e=>{if(p){let l=await s({query:e});l.isSuccess&&t(l.data)}},[p]),y=(0,a.useCallback)(async(e,l)=>{let n=await c({query:{dateOfVisit:(0,i.GP)(new Date,"yyyy-MM-dd"),itemId:e,source:l||""}});n.isSuccess&&t(n.data)},[]);return(0,a.useEffect)(()=>{let e=(0,m.j)(),t=window.location.hash.split("#").pop(),i=(0,f.Tv)(null!=l?l:"")===v.ph[v.bw.HOME],r=(null==e?void 0:e.get("itemId"))||(null==t?void 0:t.includes("itemId")),a=u===v.ph[v.bw.VEHICLE_CATALOG],o=u===v.ph[v.bw.TIRE_SIZE_CATALOG_OR_CATEGORY];if(i)P({source:"home"});else if(r)P({source:"pdp"});else if(a){let t=null==n?void 0:n.make,l=null==n?void 0:n.model,i=null==n?void 0:n.year,r=null==e?void 0:e.get("oem"),a=null==e?void 0:e.get("trim");"string"==typeof t&&"string"==typeof l&&"string"==typeof i&&"string"==typeof r&&"string"==typeof a&&P({make:(0,S.kM)(t),model:l,oem:r,source:"catalog",trim:a,year:i})}else if(o){let e=null==n?void 0:n.size;"string"==typeof e&&P({source:"catalog",size:e})}},[l,n,u,P]),{createRecentTire:y,recentlyViewedTires:e,setRecentlyViewedTires:t,fetchRecentTires:P}}();return(0,n.Y)(y.Provider,{value:l,"data-element":"unknown","data-component":"RecentlyViewedTiresProvider",children:t})}let g=(e,t)=>(0,p.i7)(y,e,t)},78370:(e,t,l)=>{l.r(t),l.d(t,{default:()=>er});var n=l(29747),i=l(96866),r=l(14232),a=l(62122),o=l(70441),d=l(78096),u=l(29215),s=l(20027);function c(){let{isLoading:e,isProductApiCalledFromClient:t,productId:l}=(0,u.i)(e=>({isLoading:e.isLoading,isProductApiCalledFromClient:e.isProductApiCalledFromClient,productId:e.productId})),n=(0,s.T2)(),i=(0,r.useCallback)(async e=>{let t=await (0,o.LA)({detailLabel:null,itemId:e,label:"",link:null,type:"paid"});t.isSuccess||d.A.error(t.error.message)},[]);return(0,r.useEffect)(()=>{t&&!1===e&&l&&n&&i(l)},[i,e,n,t,l]),null}c.displayName="AddPaidPdpParamsToPastSearchEffect";let v=(0,a.A)(c);var m=l(72480),p=l(7080),f=l(20721);function S(){let e=(0,m.n)(e=>e.isFirstLoadedPage),t=(0,s.T2)(),{deliveryDay:l,isLoading:n,isProductApiCalledFromClient:i,queryParams:r}=(0,u.i)(e=>{var t;return{deliveryDay:null===(t=e.productInfo.siteProduct.siteProductInsights)||void 0===t?void 0:t.deliveryDay,isLoading:e.isLoading,isProductApiCalledFromClient:e.isProductApiCalledFromClient,queryParams:e.queryParams}});return(0,p.A)(()=>{e&&i&&!1===n&&t&&l&&r.delivery!==l&&(0,f.CG)("delivery",l)},{isFirstLoadedPage:e,isProductApiCalledFromClient:i,isLoading:n},e=>{let{isFirstLoadedPage:t,isProductApiCalledFromClient:l,isLoading:n}=e;return t&&l&&!1===n}),null}S.displayName="AppendQueryParamEffect";let P=(0,a.A)(S);var y=l(88772),T=l(86990);function g(){let{autoScrollToInstallation:e,currentSizeIndex:t,setAutoScrollToInstallation:l,isLoading:n}=(0,u.i)(e=>({autoScrollToInstallation:e.autoScrollToInstallation,currentSizeIndex:e.currentSizeIndex,setAutoScrollToInstallation:e.setAutoScrollToInstallation,isLoading:e.isLoading})),i=(0,y.J)(e=>{var t,l;return!!(null===(l=e.userPersonalizationData)||void 0===l?void 0:null===(t=l.userLocation)||void 0===t?void 0:t.zip)});return(0,r.useEffect)(()=>{if(!n&&-1!==t&&i&&e){let e=document.querySelector("#".concat(T.Z.INSTALLATION_ANCHOR));e&&e.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}),l(!1)}},[t,n,e,i,l]),null}g.displayName="AutoScrollToInstallationEffect";let I=(0,a.A)(g);var E=l(92418);function b(){let{currentSizeIndex:e,minQuantityAllowedForCart:t,rearSize:l,setCurrentSizeIndex:n,setQuantity:i,setShowSelectError:a,siteProductLineSizeDetailInvalid:o}=(0,u.i)(e=>({currentSizeIndex:e.currentSizeIndex,minQuantityAllowedForCart:e.minQuantityAllowedForCart,rearSize:e.queryParams.rearSize,setCurrentSizeIndex:e.setCurrentSizeIndex,setQuantity:e.setQuantity,setShowSelectError:e.setShowSelectError,siteProductLineSizeDetailInvalid:!e.productInfo.siteProduct.siteProductLineSizeDetail}));return(0,r.useEffect)(()=>{-1!=e&&i((0,E.Xv)(l,t))},[e,i,l,t]),(0,r.useEffect)(()=>{o&&-1!==e&&n(-1)},[e,n,o]),(0,r.useEffect)(()=>{e>-1&&a(!1)},[e,a]),null}b.displayName="CurrentSizeIndexEffect";let D=(0,a.A)(b);var _=l(82562);function A(){let e=(0,r.useCallback)(()=>{window.scrollTo({top:0})},[]);return(0,r.useEffect)(()=>(_.o.hashChangeComplete.on(e),()=>{_.o.hashChangeComplete.off(e)}),[e]),null}A.displayName="HashChangeAutoScrollEffect";let L=(0,a.A)(A);var h=l(96040),w=l(15501),C=l(84473),O=l(31369),R=l(4061);let N={ABANDON_SITE:"pe2624449_abandon_site"};function U(){let{prodImageUrl:e,productName:t,brandLabel:l,productSize:n,recirculation:i}=(0,u.i)(e=>{let t=e.assetList.find(e=>e.type===h.uq.SiteCatalogProductImage&&e.productImageType!==h.w7.Unavailable);return{brandLabel:e.productInfo.brand.label,prodImageUrl:(null==t?void 0:t.type)===h.uq.SiteCatalogProductImage?t.image.src:void 0,productName:e.productInfo.productName,productSize:e.productInfo.size,recirculation:e.recirculation}}),{isHubspotScriptLoaded:a,trackEvent:o}=function(){let e=(0,w.JW)(e=>e.isGTMScriptLoaded),{hubspotIdentity:t}=function(){let e=(0,y.J)(e=>{var t;return null===(t=e.userDetail)||void 0===t?void 0:t.username}),t=(0,O.A)(),l=(0,r.useMemo)(()=>(0,C.TV)("email",t)||null,[t]);return{hubspotIdentity:(0,r.useMemo)(()=>null!=e?e:l,[e,l])}}(),[l,n]=(0,r.useState)(!1),i=(0,r.useRef)(void 0),a=(0,r.useRef)(void 0),o=(0,r.useCallback)(e=>{let{name:l,properties:n}=e;i.current&&(t&&(i.current.push(["identify",{email:t,...n}]),i.current.push(["trackPageView"])),i.current.push(["trackCustomBehavioralEvent",{name:l,properties:n}]))},[t]);return(0,r.useEffect)(()=>{if(e){let e=()=>{a.current=setTimeout(()=>{let t=window._hsq;t?(i.current=t,n(!0)):e()},100)};return e(),()=>{clearTimeout(a.current)}}},[e]),{isHubspotScriptLoaded:l,trackEvent:o}}();return(0,r.useEffect)(()=>{if(a&&n){let a={},d=(0,E.Sq)(window.location.href);if(!d)return;l&&(a.pdp_browse_prod_brand=l),e&&(a.pdp_browse_prod_img=e),a.pdp_browse_prod_line=t,a.pdp_browse_prod_size=n,a.pdp_browse_prod_url=d;let u=null==i?void 0:i.find(e=>"top-picks"===e.id);if(u)for(let e=0;e{let e=J.ds.getItem(z.W[z.y.SOURCE_PLP]),t=J.ds.getItem(z.W[z.y.SOURCE_CATEGORY]),r=J.ds.getItem(z.W[z.y.SOURCE_PDP]),a=e?JSON.parse(e):void 0,o=t?JSON.parse(t):void 0,d=r?JSON.parse(r):void 0,c="Category"==l.siteProductSpecs[0].name,v=l&&c?l.siteProductSpecs[0].values.toString():"",m=l&&c?l.siteProductSpecs[1].values.toString():l.siteProductSpecs[0].values.toString();if(null==n?void 0:n.match(Y.aX[Y.bw.PRODUCT_DETAIL_PLA]))J.ds.setItem(z.W[z.y.PRODUCT_DETAILS],JSON.stringify({brand:u,brandDateTime:(0,k.GP)(new Date,s),brandSource:"PAID_PDP",brandTier:l.siteProductLine.brandTier,brandTierDateTime:(0,k.GP)(new Date,s),brandTierSource:"PAID_PDP",category:v&&v||(null==a?void 0:a.category)||(null==o?void 0:o.category)||(null==d?void 0:d.category)||"",categoryDateTime:v&&(0,k.GP)(new Date,s)||(null==a?void 0:a.dateTime)||(null==o?void 0:o.dateTime)||(null==d?void 0:d.dateTime)||"",categorySource:v&&"PAID_PDP"||(null==a?void 0:a.source)||(null==o?void 0:o.source)||(null==d?void 0:d.source)||"",subtype:m,subtypeDateTime:(0,k.GP)(new Date,s),subtypeSource:"PAID_PDP"})),J.ds.setItem(z.W[z.y.SOURCE_PAID_PDP],JSON.stringify({brand:u,brandTier:l.siteProductLine.brandTier,category:v,dateTime:(0,k.GP)(new Date,s),source:"PAID_PDP",subtype:m}));else if(i.includes("#")){let e=J.ds.getItem(z.W[z.y.SOURCE_PAID_PDP]),t=J.ds.getItem(z.W[z.y.SOURCE_PLP]),n=J.ds.getItem(z.W[z.y.SOURCE_BRAND]),i=J.ds.getItem(z.W[z.y.SOURCE_CATEGORY]),r=J.ds.getItem(z.W[z.y.SOURCE_SUBTYPE]),a=e?JSON.parse(e):void 0,o=t?JSON.parse(t):void 0,d=n?JSON.parse(n):void 0,c=i?JSON.parse(i):void 0,p=r?JSON.parse(r):void 0,f=null==a?void 0:a.category;J.ds.setItem(z.W[z.y.PRODUCT_DETAILS],JSON.stringify({brand:(null==a?void 0:a.brand)||(null==o?void 0:o.brand)||(null==d?void 0:d.brand)||u,brandDateTime:(null==a?void 0:a.dateTime)||(null==o?void 0:o.dateTime)||(null==d?void 0:d.dateTime)||(0,k.GP)(new Date,s),brandSource:(null==a?void 0:a.source)||(null==o?void 0:o.source)||(null==d?void 0:d.source)||"PDP",brandTier:(null==a?void 0:a.brandTier)||(null==o?void 0:o.brandTier)||(null==d?void 0:d.brandTier)||l.siteProductLine.brandTier,brandTierDateTime:(null==a?void 0:a.dateTime)||(null==o?void 0:o.dateTime)||(null==d?void 0:d.dateTime)||(0,k.GP)(new Date,s),brandTierSource:(null==a?void 0:a.source)||(null==o?void 0:o.source)||(null==d?void 0:d.source)||"PDP",category:(null==a?void 0:a.category)||(null==o?void 0:o.category)||(null==c?void 0:c.category)||v,categoryDateTime:f&&(null==a?void 0:a.dateTime)||(null==o?void 0:o.dateTime)||(null==c?void 0:c.dateTime)||(0,k.GP)(new Date,s),categorySource:f&&(null==a?void 0:a.source)||(null==o?void 0:o.source)||(null==c?void 0:c.source)||"PDP",subtype:(null==a?void 0:a.subtype)||(null==o?void 0:o.subtype)||(null==p?void 0:p.subtype)||m,subtypeDateTime:(null==a?void 0:a.dateTime)||(null==o?void 0:o.dateTime)||(null==p?void 0:p.dateTime)||(0,k.GP)(new Date,s),subtypeSource:(null==a?void 0:a.source)||(null==o?void 0:o.source)||(null==p?void 0:p.source)||"PDP"})),J.ds.setItem(z.W[z.y.SOURCE_PDP],JSON.stringify({brand:u,brandTier:l.siteProductLine.brandTier,category:v,dateTime:(0,k.GP)(new Date,s),source:"PDP",subtype:m}))}else{let e=J.ds.getItem(z.W[z.y.SOURCE_PAID_PDP]),t=J.ds.getItem(z.W[z.y.SOURCE_CATEGORY]),n=e?JSON.parse(e):void 0,i=t?JSON.parse(t):void 0,r=null==n?void 0:n.category;J.ds.setItem(z.W[z.y.PRODUCT_DETAILS],JSON.stringify({brand:(null==n?void 0:n.brand)||u,brandDateTime:(null==n?void 0:n.dateTime)||(0,k.GP)(new Date,s),brandSource:(null==n?void 0:n.source)||"PLP",brandTier:(null==n?void 0:n.brandTier)||l.siteProductLine.brandTier,brandTierDateTime:(null==n?void 0:n.dateTime)||(0,k.GP)(new Date,s),brandTierSource:(null==n?void 0:n.source)||"PLP",category:(null==n?void 0:n.category)||v,categoryDateTime:r&&(null==n?void 0:n.dateTime)||(0,k.GP)(new Date,s),categorySource:r&&(null==n?void 0:n.source)||(null==i?void 0:i.source)||"PLP",subtype:(null==n?void 0:n.subtype)||m,subtypeDateTime:(null==n?void 0:n.dateTime)||(0,k.GP)(new Date,s),subtypeSource:(null==n?void 0:n.source)||"PLP"})),J.ds.setItem(z.W[z.y.SOURCE_PLP],JSON.stringify({brand:u,brandTier:l.siteProductLine.brandTier,category:v,dateTime:(0,k.GP)(new Date,s),source:"PLP",subtype:m}))}},[i,u,n,l]),null}q.displayName="LocalStorageDataEffect";let M=(0,a.A)(q);var V=l(72219);function F(){let e=(0,V.a)(e=>e.addPastSearch),t=(0,s.T2)(),{brandURL:l,brandLabel:n,category:i}=(0,u.i)(e=>{var t,l,n,i,r,a;return{brandURL:e.productInfo.brandURL,brandLabel:e.productInfo.brand.label,category:null!==(a=null===(n=(null!==(r=null===(i=e.technicalSpecs)||void 0===i?void 0:i.specs)&&void 0!==r?r:[]).filter(e=>"Category"===e.label))||void 0===n?void 0:null===(l=n[0])||void 0===l?void 0:null===(t=l.value)||void 0===t?void 0:t[0])&&void 0!==a?a:null}});return(0,r.useEffect)(()=>{if(t&&(e({action:{link:{href:l,isExternal:!1},type:"SiteSearchResultActionLink"},detailLabel:null,label:null!=n?n:null,labelSegments:[],type:"SiteSearchResultTextItem",typeName:"brand"}),i)){let t=(0,C.Yv)(i);e({action:{link:{href:"categories/".concat(t),isExternal:!1},type:"SiteSearchResultActionLink"},detailLabel:null,label:null!=i?i:null,labelSegments:[],type:"SiteSearchResultTextItem",typeName:"category"})}},[e,i,t,n,l]),null}F.displayName="PastSearchEffect";let x=(0,a.A)(F);var H=l(66541);function B(){let e=(0,H.tf)(e=>e.createRecentTire),t=(0,u.i)(e=>e.productId);return(0,r.useEffect)(()=>{t&&e(t,H.u2.PDP)},[e,t]),null}B.displayName="RecentTireEffect";let Q=(0,a.A)(B);function Z(){let e=e=>{let{persisted:t}=e;t&&window.location.reload()};return(0,r.useEffect)(()=>(window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}),[]),null}Z.displayName="ReloadPageIfPersistedEffect";let j=(0,a.A)(Z);function K(){let e=(0,G.usePathname)(),t=(0,G.useSearchParams)(),l=(0,s.T2)();return(0,p.A)(()=>{let t=window.location.search.split("?").pop();window.history.replaceState(null,"","".concat(e,"#").concat(t))},{isPLA:l,searchParams:t},e=>{let{isPLA:t,searchParams:l}=e;return!t&&!!l&&l.toString().length>0}),null}K.displayName="RerouteQueryParametersToHashEffect";let X=(0,a.A)(K);var $=l(55005),ee=l(45882);function et(){let{category:e,prodImageUrl:t,productName:l,brandLabel:n,productSize:i,productId:a,startingPrice:o,hasVideo:d}=(0,u.i)(e=>{var t,l,n,i,r,a;let o=e.assetList.find(e=>e.type===h.uq.SiteCatalogProductImage&&e.productImageType!==h.w7.Unavailable),d=e.assetList.find(e=>e.type===h.L0.SiteYouTubeVideo);return{brandLabel:e.productInfo.brand.label,category:null!==(a=null===(n=(null!==(r=null===(i=e.technicalSpecs)||void 0===i?void 0:i.specs)&&void 0!==r?r:[]).filter(e=>"Category"===e.label))||void 0===n?void 0:null===(l=n[0])||void 0===l?void 0:null===(t=l.value)||void 0===t?void 0:t[0])&&void 0!==a?a:null,hasVideo:d,prodImageUrl:(null==o?void 0:o.type)===h.uq.SiteCatalogProductImage?o.image.src:void 0,productId:e.productId,productName:e.productInfo.productName,productSize:e.productInfo.size,startingPrice:e.productInfo.startingPrice}}),s=(0,r.useRef)(!1),c=(0,r.useCallback)((r,u)=>{(0,$.uj)(u,{brand:null!=n?n:"",category:null!=e?e:"",currency:"USD",has_video:d?"yes":"no",image_url:null!=t?t:"",name:null!=l?l:"",price:null!=o?o:"",product_id:a,quantity:4,sku:null!=r?r:"",url:r||"",variant:null!=i?i:""})},[n,e,d,t,l,o,a,i]);return(0,r.useEffect)(()=>{let i=(0,E.Sq)(window.location.href);if(a&&!s.current){if(!i)return;s.current=!0,c(i,ee.B.PRODUCT_VIEWED),window.VWO=window.VWO||[],window.VWO.event=window.VWO.event||function(){window.VWO.push(["event"].concat([].slice.call(arguments)))},window.VWO.event("rudder.PRODUCT_VIEWED",{brand:n,category:e,currency:"USD",has_video:d?"yes":"no",image_url:null!=t?t:"",name:null!=l?l:"",price:null!=o?o:"",product_id:a,quantity:4,sku:null!=i?i:""})}let r=()=>c(null!=i?i:window.location.href,ee.B.VIDEO_CLICKED);return _.o.videoEvent.on(r),()=>{_.o.videoEvent.off(r)}},[n,e,d,t,a,l,o,c]),null}et.displayName="RudderstackEffect";let el=(0,a.A)(et);function en(){let e=(0,O.A)();return(0,r.useEffect)(()=>{J.ds.setItem(z.W[z.y.LAST_PDP_PATH],JSON.stringify(e))},[e]),null}en.displayName="SetLastPdpPathEffect";let ei=(0,a.A)(en),er=function(e){let{serverData:t}=e;return(0,n.FD)(n.FK,{children:[(0,n.Y)(M,{siteProduct:t.siteProduct,"data-element":"LocalStorageDataEffect"}),(0,n.Y)(i.F,{"data-element":"WidgetAppConfigEffect"}),(0,n.Y)(L,{"data-element":"HashChangeAutoScrollEffect"}),(0,n.Y)(ei,{"data-element":"SetLastPdpPathEffect"}),(0,n.Y)(j,{"data-element":"ReloadPageIfPersistedEffect"}),(0,n.Y)(Q,{"data-element":"RecentTireEffect"}),(0,n.Y)(x,{"data-element":"PastSearchEffect"}),(0,n.Y)(W,{"data-element":"HubspotEffect"}),(0,n.Y)(el,{"data-element":"RudderstackEffect"}),(0,n.Y)(I,{"data-element":"AutoScrollToInstallationEffect"}),(0,n.Y)(D,{"data-element":"CurrentSizeIndexEffect"}),(0,n.Y)(v,{"data-element":"AddPaidPdpParamsToPastSearchEffect"}),(0,n.Y)(P,{"data-element":"AppendQueryParamEffect"}),(0,n.Y)(X,{"data-element":"RerouteQueryParametersToHashEffect"})]})}},96866:(e,t,l)=>{l.d(t,{F:()=>c});var n=l(37393),i=l(14232),r=l(1613),a=l(84859),o=l(75482),d=l(53303),u=l(3297),s=l(32384);function c(){let e=(0,a._)(e=>1===Number(e.isSimpleShop)),t=(0,i.useCallback)(async()=>{let e=await (0,o.s)({query:{identifier:"simpleshop",subDomain:window.location.origin}});if(e.isSuccess){var t,l,i,a,c;let o=null===(t=e.data)||void 0===t?void 0:t.installerId,v=null===(l=e.data)||void 0===l?void 0:l.isMobileInstaller,m=null===(i=e.data)||void 0===i?void 0:i.id.toString(),p=null===(a=e.data)||void 0===a?void 0:a.name,f=null===(c=e.data)||void 0===c?void 0:c.orderSubSourceId.toString();!s._v.getItem(u.v.INSTALLER_IDS)&&o&&s._v.setItem(u.v.INSTALLER_IDS,o),!s._v.getItem(u.v.IS_MOBILE_INSTALL)&&v&&s._v.setItem(u.v.IS_MOBILE_INSTALL,v+""),!s._v.getItem(u.v.WIDGET_SOURCE_ID)&&m&&s._v.setItem(u.v.WIDGET_SOURCE_ID,m),!s._v.getItem(u.v.SUB_SOURCE)&&f&&s._v.setItem(u.v.SUB_SOURCE,"7"),(0,n.TV)(null,d.A.SIMPLE_SHOP_ID,p,r.v)}},[]);return(0,i.useEffect)(()=>{e&&t()},[e,t]),null}}}]);