1(self["webpackChunk_novel_vendor_storefront"]=self["webpackChunk_novel_vendor_storefront"]||[]).push([[208],{16208:function(e,n,t){function o(e){const{isHeadless:n}=(0,a.j)(),t=(0,u.b)(e=>e.shopRoute.routeId),o=(0,a.g)(),v=(0,a.h)(),g=(0,u.b)(e=>e.storefrontAuth.initialLoadHasCompleted),b=(0,a.d)(),p=(0,u.b)(e=>e.storefrontNovelUi.unlockedGateIds),y=(0,r.useCallback)(e=>p.includes(e.unversionedId),[p]),E=(0,a.e)(),I=(0,u.a)(),_=(0,r.useCallback)(()=>{I((0,l.c)())},[I]),k=(0,r.useCallback)(e=>I((0,l.d)(e)),[I]),m=(0,r.useCallback)(()=>I((0,l.b)()),[I]),A=(0,u.b)(e=>e.storefrontData.gatedExperiences);return(0,a.c)(),(0,r.useEffect)(()=>{I((0,c.c)())},[I,n]),(0,r.useEffect)(()=>(o&&!y(o.gate)&&"page"===o.trigger&&k({unversionedId:o.gate.unversionedId,blockPage:"page"===o.trigger}),()=>{m()}),[null==o?void 0:o.gate.id,t]),(0,r.useEffect)(()=>{(null==o?void 0:o.gate.unversionedId)&&v&&I((0,l.e)(o.gate.unversionedId))},[I,null==o?void 0:o.gate.unversionedId,g,t]),(0,r.useEffect)(()=>{o&&Array.from(document.querySelectorAll(".shopify-payment-button")).forEach(e=>{const n=e;(null==n?void 0:n.style)&&(n.style.display="none")})},[o,t]),(0,r.useEffect)(()=>{(0,i.a)(_);const e=(0,s.b)(e=>{d.a.removeDisconnectedElements(),(0,i.a)(_,e)}),n=b.map(({gate:e,product:n,isGatedContentPage:t})=>{var o;const r=k.bind(null,{unversionedId:e.unversionedId,blockPage:!1}),a=!!(0,f.b)(e).length&&!n&&!t;if(a)return void((null===(o=e.triggerConfig)||void 0===o?void 0:o.bannerEnabled)||(0,i.b)(e,E,r,a));if(y(e))return;(0,i.b)(e,E,r);const u=(0,s.b)(n=>{d.a.removeDisconnectedElements(),(0,i.b)(e,E,r,!1,n)});return()=>{u(),d.a.revertAllOperations()}});return()=>{n.forEach(e=>e&&e()),e()}},[b,E,_,k,A,y,o,t]),r.createElement(r.Fragment,null)}t.r(n),t.d(n,{GateTrigger:function(){return o}});var r=t(63696),a=t(21379),d=t(79152),u=t(74278),l=t(49083),i=t(42503),s=t(13985),c=t(81020),f=t(78884)},49083:function(e,n,t){t.d(n,{a:function(){return u},b:function(){return r},c:function(){return d},d:function(){return o},e:function(){return a}});const o=e=>({type:"SHOW_GATE",payload:e}),r=()=>({type:"HIDE_GATE",payload:void 0}),a=e=>({type:"UNLOCK_GATE",payload:{unversionedGateId:e}}),d=()=>({type:"SHOW_AUTH_MODAL",payload:void 0}),u=()=>({type:"HIDE_AUTH_MODAL",payload:void 0})}}]);
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.