1"use strict";(self.webpackChunksushishop_gatsby=self.webpackChunksushishop_gatsby||[]).push([[1479],{4538:function(e,t,n){var a=n(2784),o=n(66185),r=n(3920);t.Z=()=>{const e=(0,o.I0)();(0,a.useEffect)((()=>(e(r.Ao.actions.hideOrderTracking()),()=>{e(r.Ao.actions.showOrderTracking())})),[])}},88571:function(e,t,n){var a=n(38777),o=n(2784),r=n(68270),i=n(39765),c=n(25353);const s=i.SY,l={}.GATSBY_APPLE_ITUNES_APP||"";t.Z=e=>{const{pageContext:t,children:n,title:u="",description:_="",noindex:m=!1}=e,{intl:p,meta_title:d=""}=t,{language:h,alternates:E=[]}=p,{_META_TITLE_:g,_META_DESCRIPTION_:f,_GOOGLE_SITE_VERIF_:T,_FACEBOOK_URL_:I,_INSTAGRAM_URL_:R,_TWITTER_URL_:y,_YOUTUBE_URL_:L,_LINKEDIN_URL_:v,_PINTEREST_URL_:k}=(e=>{const t=(0,r.useStaticQuery)("1781025575"),n=(t,n)=>{var a;let{nodes:o}=t;return(null===(a=o.find((t=>t.lang===e)))||void 0===a?void 0:a.value)||n};return{_META_TITLE_:n(t._META_TITLE_,"Sushi Shop"),_META_DESCRIPTION_:n(t._META_DESCRIPTION_,""),_GOOGLE_SITE_VERIF_:n(t._GOOGLE_SITE_VERIF_,""),_FACEBOOK_URL_:n(t._FACEBOOK_URL_,""),_INSTAGRAM_URL_:n(t._INSTAGRAM_URL_,""),_TWITTER_URL_:n(t._TWITTER_URL_,""),_YOUTUBE_URL_:n(t._YOUTUBE_URL_,""),_LINKEDIN_URL_:n(t._LINKEDIN_URL_,""),_PINTEREST_URL_:n(t._PINTEREST_URL_,"")}})(h);let U=u||d||g,x=_||f;const O=s+"/static/favicons/",S=["57x57","60x60","72x72","76x76","114x114","120x120","144x144","152x152","180x180"].map((e=>({sizes:e,rel:"apple-touch-icon",href:O+"apple-touch-icon-"+e+".png"}))),A=["16x16","32x32","96x96","192x192","favicon.ico"].map((e=>{let t="icon",n="favicon-"+e+".png",a="image/png";"favicon.ico"===e?(t="shortcut icon",n="favicon.ico",a="image/x-icon"):"192x192"===e&&(n="android-chrome-192x192.png");
1return{sizes:e,rel:t,href:""+O+n,type:a}})),C=[].concat((0,a.Z)(A),(0,a.Z)(S)),w=[I,R,y,L,v,k].filter(Boolean);return o.createElement(o.Fragment,null,o.createElement(c.Z,{type:"WebSite",rawDatas:{name:i.mL,url:s,publisher:{"@type":"Organization",name:i.mL,logo:{"@type":"ImageObject",url:(0,r.withAssetPrefix)("/medias/seo/logo-hero.jpg"),width:600,height:60},...w.length>0&&{sameAs:w}}}}),o.createElement("html",{lang:h}),o.createElement("title",{key:"default_meta_title"},U),m&&o.createElement("meta",{key:"robots",name:"robots",content:"noindex, nofollow"}),o.createElement("meta",{key:"og:title",property:"og:title",content:U}),o.createElement("meta",{key:"description",name:"description",content:x}),o.createElement("meta",{key:"og:description",name:"og:description",content:x}),o.createElement("div",{dangerouslySetInnerHTML:{__html:T}}),null==E?void 0:E.map(((e,t)=>{let{lang:n,uri:a}=e;return o.createElement("link",Object.assign({key:t,href:s+a},n===h?{rel:"canonical"}:{rel:"alternate",hrefLang:n}))})),l&&o.createElement("meta",{key:"apple-itunes-app",name:"apple-itunes-app",content:l}),C.map(((e,t)=>o.createElement("link",Object.assign({key:t},e)))),n)}},83384:function(e,t,n){n.r(t),n.d(t,{Head:function(){return R},default:function(){return I}});var a=n(2784),o=n(41195),r=n(36613),i=n(88781),c=n(25868);const s=(0,o.default)("div").withConfig({displayName:"CheckoutPending___CheckoutErrorRoot",componentId:"sc-13n0dqm-0"})((()=>({display:"flex",justifyContent:"center",padding:"71px 16px",minHeight:"80vh",width:540,maxWidth:"100%",margin:"0 auto"}))),l=(0,o.default)("div").withConfig({displayName:"CheckoutPending___CheckoutErrorWrapper",componentId:"sc-13n0dqm-1"})((()=>({width:"100%",maxWidth:720,margin:"0 auto",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:24})));var u=e=>{const{title:t,subtitle:n,description:o,footer:u}=e;return a.createElement(s,null,a.createElement(l,null,a.createElement(c.Z,{icon:"logo_sushi_shop",size:96}),a.createElement(r.Z,{variant:"h5",align:"center",style:{position:"relative"}},a.createElement(i.Z,{style:{verticalAlign:"initial"}})," ",t,a.createElement("br",null),n),a.createElement(r.Z,{variant:"subtitle2",align:"center",style:{minHeight:"6em"}},o,a.createElement("br",null),u)))},_=n(10514),m=n(4538),p=n(41040),d=n(88571),h=n(62096),E=n(19935);let g;const f=Number("4"),T=Number("30");var I=e=>{const{t:t}=(0,_.$)(["Checkout","UI"]);(0,m.Z)(),(0,p.Z)();const n=(0,a.useRef)(0),o=(0,a.useRef)((new Date).getTime()),r=1e3*f,i=1e3*T,{0:c,1:s}=(0,a.useState)(t("Votre paiement est en cours de traitement, nous vous confirmerons votre commande dans quelques instants.","Checkout")),l=(e,a,c)=>(g&&clearTimeout(g),g=setTimeout((function(){(0,h.Z)("OrderPending",null,{payment_action_id:c,action:a}).then((e=>{const{state:u}=e;switch(u){case"error":return window.location.href="/checkout/error";case"confirmation":return window.location.href="/checkout/confirmation";default:n.current++,l(n.current*r,a,c)}const _=(new Date).getTime()-o.current;s(t(_<i?"Cela ne devrait prendre plus que quelques instantsâ¦":"Le traitement est plus long que prévu, nous attendons la confirmation de votre paiementâ¦","Checkout"))})).catch((function(e){n.current++,l(n.current*r,a,c)}))}),e));(0,a.useEffect)((()=>{if((0,E.Z)()){const e=new URLSearchParams(window.location.search),n=e.get("paymentId"),a=e.get("hostedCheckoutId"),o=n?"paymentid":a?"hostedcheckoutid":"";o?l(r,o,n||a||""):s(t("Une erreur inconnue semble être apparue.","UI"))}}),[]);const d=t("Veuillez patienter","Checkout"),I=t("votre paiement est en cours de traitement.","Checkout"),R=c,y=t("Merci de ne pas quitter cette page.","Checkout");return a.createElement(u,{title:d,subtitle:I,description:R,footer:y})};const R=e=>a.createElement(d.Z,e)},41040:function(e,t,n){var a=n(2784),o=n(66185),r=n(3920);t.Z=()=>{const e=(0,o.I0)();(0,a.useEffect)((()=>(e(r.Ao.actions.hideTopDeliveryStatus()),()=>{e(r.Ao.actions.showTopDeliveryStatus())})),[])}},25353:function(e,t,n){var a=n(2784);t.Z=e=>a.createElement("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":e.type,...e.rawDatas})}})}}]); 2//# sourceMappingURL=component---src-page-templates-checkout-pending-page-tsx-e9d434f9c40b59d84d8c.js.map
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.