"use strict";(self.webpackChunkhws_plugin_payment_gateway_stripe=self.webpackChunkhws_plugin_payment_gateway_stripe||[]).push([[21],{2597(e,t,n){n.d(t,{Dt:()=>i,Qn:()=>m,VP:()=>p,bt:()=>o,eb:()=>s,in:()=>a,l5:()=>r,mN:()=>l,qn:()=>c,up:()=>y,wl:()=>d,yR:()=>u});const s="HWS_PLUGIN_PAYMENT_GATEWAY_STRIPE",a="/plugin/stripe",l=`${a}/catalog`,o=`${a}/create-product`,i=`${a}/edit-product`,r=`${a}/stores`,c="store_id",d="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 m(e="usd"){var t,n;const s=u.find(t=>t.code===e.toLowerCase());return s?s.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 p(e){try{const t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch(e){return!1}}function y(e,t="usd"){return null==e?"—":new Intl.NumberFormat(void 0,{style:"currency",currency:t.toUpperCase()}).format(e/100)}},6021(e,t,n){n.r(t),n.d(t,{default:()=>d});var s=n(4848),a=n(1629),l=n(5932),o=n(4196),i=n(742),r=n(2597);const c=e=>{var t,n,s;return null!==(s=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!==s?s:e},d=function(){return(0,s.jsxs)("div",Object.assign({className:"flex space-y-12 sm:space-y-0 flex-1 w-full items-center justify-between py-8 sm:py-16 px-16 md:px-24"},{children:[(0,s.jsxs)(o.motion.span,Object.assign({initial:{x:-20},animate:{x:0,transition:{delay:.2}}},{children:[(0,s.jsx)(l.A,Object.assign({className:"text-24 md:text-32 font-extrabold tracking-tight"},{children:c("HWS_PLUGIN_PAYMENT_GATEWAY_STRIPE_STORES")})),(0,s.jsx)(l.A,Object.assign({variant:"body2",color:"text.secondary",className:"mt-4"},{children:c("HWS_PLUGIN_PAYMENT_GATEWAY_STRIPE_STORES_DESCRIPTION")}))]})),(0,s.jsx)("div",Object.assign({className:"flex flex-1 items-center justify-end space-x-8"},{children:(0,s.jsx)(o.motion.div,Object.assign({className:"flex flex-grow-0",initial:{opacity:0,x:20},animate:{opacity:1,x:0,transition:{delay:.2}}},{children:(0,s.jsxs)(a.A,Object.assign({className:"",variant:"contained",color:"secondary",component:i.jZ,to:`${r.l5}?action=create`,size:"medium"},{children:[(0,s.jsx)(i.ri,Object.assign({size:20},{children:"heroicons-outline:plus"})),(0,s.jsx)("span",Object.assign({className:"mx-4 sm:mx-8"},{children:c("HWS_PLUGIN_PAYMENT_GATEWAY_STRIPE_CREATE")}))]}))}))}))]}))}}}]);