"use strict";(self.webpackChunkhws_plugin_payment_gateway_stripe=self.webpackChunkhws_plugin_payment_gateway_stripe||[]).push([[548],{8548(e,t,n){n.r(t),n.d(t,{default:()=>d});var o=n(4848),r=n(6782),s=n(2943),a=n(7963),c=n(4196),i=n(742),l=n(2597),_=n(8231);const u=e=>{var t,n,o;return null!==(o=null===(n=null===(t=null===window||void 0===window?void 0:window.HWS)||void 0===t?void 0:t.I18n)||void 0===n?void 0:n.t(e))&&void 0!==o?o:e},d=()=>{const[e]=(0,s.useSearchParams)();return(0,r.useEffect)(()=>{const t=e.get("session_id");t&&(0,i.G8)(_.D.AbandonCheckout.action,(0,_.H)({SessionId:t})).catch(()=>{})},[e]),(0,o.jsx)(a.Box,Object.assign({className:"min-h-full flex items-center justify-center p-24"},{children:(0,o.jsx)(c.motion.div,Object.assign({initial:{opacity:0,y:20},animate:{opacity:1,y:0,transition:{delay:.2}}},{children:(0,o.jsx)(a.Card,Object.assign({className:"w-full max-w-420 rounded-16 shadow-6"},{children:(0,o.jsx)(a.CardContent,Object.assign({className:"p-32 text-center"},{children:(0,o.jsxs)(a.Stack,Object.assign({spacing:2,alignItems:"center"},{children:[(0,o.jsx)(i.ri,Object.assign({size:72,className:"text-red-600"},{children:"heroicons-outline:x-circle"})),(0,o.jsx)(a.Typography,Object.assign({className:"text-20 font-bold"},{children:u("HWS_PLUGIN_PAYMENT_GATEWAY_STRIPE_PAYMENT_CANCELLED_TITLE")})),(0,o.jsx)(a.Chip,{label:u("HWS_PLUGIN_PAYMENT_GATEWAY_STRIPE_STATUS_CANCELLED"),color:"error"}),(0,o.jsx)(a.Typography,Object.assign({variant:"body2",color:"text.secondary",className:"px-16"},{children:u("HWS_PLUGIN_PAYMENT_GATEWAY_STRIPE_PAYMENT_CANCELLED_MESSAGE")})),(0,o.jsxs)(a.Stack,Object.assign({spacing:1.5,className:"w-full mt-16"},{children:[(0,o.jsx)(a.Button,Object.assign({fullWidth:!0,variant:"contained",color:"secondary",component:i.jZ,to:l.mN,startIcon:(0,o.jsx)(i.ri,Object.assign({size:18},{children:"heroicons-outline:refresh"})),className:"rounded-12 py-12"},{children:u("HWS_PLUGIN_PAYMENT_GATEWAY_STRIPE_BACK_TO_CATALOG")})),(0,o.jsx)(a.Button,Object.assign({fullWidth:!0,variant:"outlined",component:s.Link,to:"/",startIcon:(0,o.jsx)(i.ri,Object.assign({size:18},{children:"heroicons-outline:home"}))},{children:u("HWS_PLUGIN_PAYMENT_GATEWAY_STRIPE_GO_HOME")}))]}))]}))}))}))}))}))}},742(e,t,n){function o(e){const t=window;if(t.core&&t.core[e])return t.core[e];console.warn(`[coreExports] window.core.${String(e)} not ready`)}n.d(t,{Eb:()=>a,G8:()=>d,Gy:()=>c,Ow:()=>s,RL:()=>_,jZ:()=>l,mg:()=>r,qZ:()=>u,ri:()=>i});const r=o("Error404Page"),s=o("FusePageCarded"),a=o("FuseLoading"),c=o("FuseDialog"),i=o("FuseSvgIcon"),l=(o("FusePageSimple"),o("FuseSplashScreen"),o("NavLinkAdapter")),_=(o("Store"),o("UnAuthorized")),u=(o("useThemeMediaQuery"),o("ErrorBoundary"),o("FuseLayout"),o("FuseTheme"),o("ThemeLayouts"),o("BrowserRouter"),o("FuseUtils"),o("WithRouter"),o("History"),o("HUIDynamic")),d=(o("HWSRoutes"),o("HWSContext"),o("HorizechWorkspaceProvider"),o("useHorizechWorkspace"),o("RunAction"));o("RunFormAction"),o("APIResult")},8231(e,t,n){n.d(t,{D:()=>r,H:()=>s});var o=n(2597);const r={GetProducts:{action:"HWS_PROVIDER_PAYMENT_GATEWAY_GET_PRODUCTS"},GetPrices:{action:"HWS_PROVIDER_PAYMENT_GATEWAY_GET_PRICES"},GetProduct:{action:"HWS_PROVIDER_PAYMENT_GATEWAY_GET_PRODUCT"},CreateProduct:{action:"HWS_PROVIDER_PAYMENT_GATEWAY_CREATE_PRODUCT"},UpdateProduct:{action:"HWS_PROVIDER_PAYMENT_GATEWAY_UPDATE_PRODUCT"},DeleteProduct:{action:"HWS_PROVIDER_PAYMENT_GATEWAY_DELETE_PRODUCT"},CreatePayment:{action:"HWS_PROVIDER_PAYMENT_GATEWAY_CREATE_PAYMENT"},VerifyPayment:{action:"HWS_PROVIDER_PAYMENT_GATEWAY_VERIFY_PAYMENT"},AbandonCheckout:{action:"HWS_PROVIDER_PAYMENT_GATEWAY_ABANDON_CHECKOUT"}};function s(e){return Object.assign({Plugin:o.eb},e)}},2597(e,t,n){n.d(t,{Dt:()=>c,Qn:()=>d,VP:()=>E,bt:()=>a,eb:()=>o,in:()=>r,l5:()=>i,mN:()=>s,qn:()=>l,up:()=>A,wl:()=>_,yR:()=>u});const o="HWS_PLUGIN_PAYMENT_GATEWAY_STRIPE",r="/plugin/stripe",s=`${r}/catalog`,a=`${r}/create-product`,c=`${r}/edit-product`,i=`${r}/stores`,l="store_id",_="hws_payment_gateway_selected_store",u=[{code:"usd",label:"USD — US Dollar",symbol:"$"},{code:"eur",label:"EUR — Euro",symbol:"€"},{code:"gbp",label:"GBP — British Pound",symbol:"£"},{code:"cad",label:"CAD — Canadian Dollar",symbol:"CA$"},{code:"aud",label:"AUD — Australian Dollar",symbol:"A$"}];function d(e="usd"){var t,n;const o=u.find(t=>t.code===e.toLowerCase());return o?o.symbol:null!==(n=null===(t=new Intl.NumberFormat(void 0,{style:"currency",currency:e.toUpperCase(),currencyDisplay:"narrowSymbol"}).formatToParts(0).find(e=>"currency"===e.type))||void 0===t?void 0:t.value)&&void 0!==n?n:e.toUpperCase()}function E(e){try{const t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch(e){return!1}}function A(e,t="usd"){return null==e?"—":new Intl.NumberFormat(void 0,{style:"currency",currency:t.toUpperCase()}).format(e/100)}}}]);