1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6305],{27946:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/draft-order",function(){return n(97658)}])},97658:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var a=n(85893),r=n(36808),c=n.n(r),o=n(43103),i=n(67294),s=n(19755),u=n.n(s),l=n(48764).Buffer;function d(){return(0,i.useEffect)((function(){var e=new URL(window.location.href),t=e.searchParams.get("action");if(""!=t&&"loadSavedQuote"==t){var n=e.searchParams.get("quoteToken").split("."),a=JSON.parse(l.from(n[1],"base64").toString("utf-8")),r=a.iss,i=a.domain.cart.id,s="";s=o.Qo==r+"/"?"en-ca":"en-gb";var d="eu";o.Qo==r+"/"&&(d="us");var f="/api/zoleo/cart/draftorders/".concat(d,"/").concat(s,"/").concat(i);fetch(f).then((function(e){return e.json()})).then((function(e){if(c().remove("basketeu"),c().remove("basketeudetails"),c().remove("basketus"),c().remove("basketusdetails"),localStorage.removeItem("order_confirmation"),e.status&&404==e.status)return u()("body .container h2").html("Please contact Zoleo support team <br />if you have any trouble placing an order."),!1;for(var t=e.locale,n=e.checkout.data.cart.id,a=e.checkout.data.cart.line_items.physical_items,r=e.checkout.data.cart.currency.code,i=0,s=0;s<a.length;s++)i+=a[s].quantity;var l={l:t,currency_code:r,id:n,item_count:i};c().set("basket"+d,JSON.stringify(l),{expires:2});var f="".concat(o.kA.replace(/\/?$/,"/"),"login?response_type=token&client_id=").concat(o.Ec,"&redirect_uri=").concat(o.s8,"en-gb/sso/&state=").concat(t,"_").concat(d,"_draftOrder");window.location.href=f}))}})),(0,a.jsx)("div",{className:"container",children:(0,a.jsx)("h2",{style:{height:"100vh",display:"flex",textAlign:"center",alignItems:"center",justifyContent:"center",margin:"0",color:"#ccc",fontSize:"25px"},children:"Please wait..."})})}}},function(e){e.O(0,[571,8764,9774,2888,179],(function(){return t=27946,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.