1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8524],{94404:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cart/main-cart",function(){return r(23563)}])},54151:function(t,e,r){"use strict";var n=r(85893),o=r(67294),i=r(26787),s=r(41664),c=r.n(s),a=r(11163),l=r(23121),u=r(9778);let p="https://storyloop.com/wp-json",d="wp/v2";e.Z=t=>{let{message:e}=t,{closeAlertPopup:r,alertHeading:s,subId:f,SetHeadingOfAlertPopup:h,SetMessageOfAlertPopup:m}=(0,o.useContext)(i.t),[b,x]=(0,o.useState)(!1),y=(0,o.useRef)(null),g=(0,a.useRouter)(),j=!1;j=(0,u.Z)(),(0,o.useEffect)(()=>{let t=t=>{y.current&&!y.current.contains(t.target)&&r()};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[r]);let w=async()=>{let t=localStorage.getItem("token");if(!t){g.replace("/");return}x(!0);try{let e=await fetch("".concat(p,"/").concat(d,"/user/subscription/cancel"),{method:"POST",headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},body:JSON.stringify({subscription_id:f})});if(403===e.status)throw g.replace("/"),Error("Failed to cancel the subscription");await e.json(),e.ok?(h("Subscription Details"),m("Subscription cancelled successfully."),g.reload()):x(!1)}catch(t){console.error("Error:",t)}},k=async()=>{let t=localStorage.getItem("token");if(!t){g.replace("/");return}x(!0);try{let e=await fetch("".concat(p,"/").concat(d,"/user/subscription/restart"),{method:"POST",headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},body:JSON.stringify({subscription_id:f})});if(403===e.status)throw g.replace("/"),Error("Failed to cancel the subscription");await e.json(),e.ok?(h("Subscription Details"),m("Subscription restarted successfully."),g.reload()):x(!1)}catch(t){console.error("Error:",t)}};return(0,n.jsxs)("div",{className:"info-popup info-active alert-popup-view alert-popup-bg",id:"alert-popup",children:[b&&(0,n.jsx)(l.Z,{}),(0,n.jsx)("div",{className:"info-popup-outer",children:(0,n.jsxs)("div",{className:"info-popup-wrapper",ref:y,children:[(0,n.jsxs)("div",{className:"info-popup-header",children:[(0,n.jsx)("h6",{children:"Information "}),(0,n.jsx)("a",{href:"javascript:void(0)",className:"info-close",onClick:r,children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,n.jsx)("path",{d:"M15 5L5 15",stroke:"#181818","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M5 5L15 15",stroke:"#181818","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"})]})})]}),(0,n.jsxs)("div",{className:"info-popup-form",children:[(0,n.jsx)("h3",{children:s}),/<\/?[a-z][\s\S]*>/i.test(e)?(0,n.jsx)("p",{dangerouslySetInnerHTML:{__html:e}}):(0,n.jsx)("p",{children:e}),(0,n.jsxs)("div",{className:"closing-button",children:[(0,n.jsx)(c(),{href:"Cart Information"===s&&!1===j?"/cart":"javascript:void(0)",onClick:"Cart Information"===s?()=>{"Cart Information"===s&&!1===j&&g.push("/cart"),r()}:"Cancel Subscription"===s?w:"Restart Subscription"===s?k:r,className:"primary-btn cls-btn ",children:"Cart Information"===s&&!1===j?"View Cart":"Cancel Subscription"===s||"Restart Subscription"===s?"Yes":"Got It"}),("Cancel Subscription"===s||"Restart Subscription"===s)&&(0,n.jsx)("a",{onClick:r,className:"primary-btn cls-btn",children:"No"})]})]})]})})]})}},23121:function(t,e,r){"use strict";var n=r(85893),o=r(20726),i=r.n(o);r(67294);var s=r(60215);e.Z=()=>(0,n.jsxs)("div",{className:"jsx-d37a1548c0ea1636 loading-overlay",children:[(0,n.jsx)(s.Z,{color:"#ffffff",size:80}),(0,n.jsx)(i(),{id:"d37a1548c0ea1636",children:".loading-overlay.jsx-d37a1548c0ea1636{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;z-index:9999}"})]})},27569:function(t,e,r){"use strict";function n(t){let e={"’":"'","“":'"',"”":'"',"_":"_","_":"_","&":"&"};return null==t?void 0:t.replace(/&#[0-9]+;/g,t=>e[t]||t)}function o(t){if(!t)return t;let e=new DOMParser,r=e.parseFromString("<!doctype html><body>".concat(t),"text/html").body.textContent;return e.parseFromString("<!doctype html><body>".concat(r),"text/html").body.textContent}r.d(e,{Ez:function(){return s},Fb:function(){return a},Rs:function(){return c},VO:function(){return o},aV:function(){return n},kC:function(){return i}});let i=t=>null==t?void 0:t.split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");function s(t){return t.replace(/-/g," ")}function c(t){return t.replace(/_/g," ")}function a(t){let e;if(!(e=localStorage.getItem("cart-id")))return!1;try{let r=JSON.parse(e);if(!Array.isArray(r))return!1;return r.includes(Number(t))}catch(t){return!1}}},9334:function(t,e,r){"use strict";r(83454);let n=t=>{if("string"==typeof t){let e;return e=t,[{target:"https://staging.storyloop.com/",replacement:"/"},{target:"https://storyloop.com/",replacement:"/"},{target:"https://dev.storyloop.com/",replacement:"/"}
1].forEach(t=>{let{target:r,replacement:n}=t;e=e.replace(r,n)}),e}return Array.isArray(t)?t.map(t=>n(t)):"object"==typeof t&&null!==t?Object.fromEntries(Object.entries(t).map(t=>{let[e,r]=t;return[e,n(r)]})):t};e.ZP=n}},function(t){t.O(0,[1664,5675,726,0,3797,4553,6787,1638,1272,3563,2888,9774,179],function(){return t(t.s=94404)}),_N_E=t.O()}]);
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.