PluginProbe
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments / 4.4.2
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments v4.4.2
4.7.2 4.7.1 4.7.0 4.6.6 4.6.5 4.6.4 4.6.3 4.6.2 4.6.1 4.6.0 4.5.1 4.5.0 4.4.2 4.4.1 4.4.0 4.3.3 4.3.2 4.3.1 4.3.0 4.2.3 4.2.2 4.2.1 1.0.3 1.0.4 1.0.5 All 281 releases
surecart / dist / 475.js
475.js
1 lines 10.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 "use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[475],{8953:function(t,e,o){o.d(e,{a:function(){return a},g:function(){return i},l:function(){return s}});var n={card:{icon:"razorpay",label:function(){return wp.i18n.__("Credit Card","surecart")}},upi:{icon:"upi",label:function(){return wp.i18n.__("UPI","surecart")}}},i=function(t){var e;return t?null===(e=n[t])||void 0===e?void 0:e.label():void 0},a=function(t){var e;return t&&(null===(e=n[t])||void 0===e?void 0:e.icon)||"razorpay"},r=null,l=null,s=function(){return r?Promise.resolve(r):l||(l=new Promise((function(t,e){var o=document.createElement("script");o.src="https://checkout.razorpay.com/v1/checkout.js",o.async=!0,o.onload=function(){r=window.Razorpay,t(r)},o.onerror=function(){l=null,e(new Error(wp.i18n.__("Failed to load Razorpay script.","surecart")))},document.head.appendChild(o)})))}},475:function(t,e,o){o.r(e),o.d(e,{sc_manual_payment_method:function(){return l},sc_payment_method:function(){return s},sc_prose:function(){return d}});var n=o(3029),i=o(2901),a=o(7364),r=o(8953),l=function(){return(0,i.A)((function t(e){(0,n.A)(this,t),(0,a.r)(this,e),this.paymentMethod=void 0,this.showDescription=!1}),[{key:"render",value:function(){var t,e;return(0,a.h)("div",{key:"d755d2b079d5a5d84df3bbf73bde9d5a137f2576",class:"manual-payment-method",part:"card"},(0,a.h)("div",{key:"87db8c1fd9ab9ec4c158366b65dd7705bad8251b",class:"payment-method__title"},null===(t=this.paymentMethod)||void 0===t?void 0:t.name),this.showDescription&&(0,a.h)("sc-prose",{key:"bff9b1075def22ce5c28c68e0323ecda38c918dd",class:"payment-method__description",innerHTML:null===(e=this.paymentMethod)||void 0===e?void 0:e.description}))}}])}();l.style=":host {\n display: block;\n}\n\n.manual-payment-method {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: var(--sc-spacing-x-small);\n flex-wrap: wrap;\n\n &__title {\n font-weight: var(--sc-font-weight-bold);\n color: var(--sc-primary-color-900);\n }\n\n &__description {\n color: var(--sc-primary-color-600);\n }\n}\n";var s=function(){return(0,i.A)((function t(e){(0,n.A)(this,t),(0,a.r)(this,e),this.paymentMethod=void 0,this.full=void 0,this.externalLink=void 0,this.externalLinkTooltipText=void 0}),[{key:"renderBankAccountType",value:function(t){return"checking"===t?wp.i18n.__("Checking","surecart"):"savings"===t?wp.i18n.__("Savings","surecart"):void 0}},{key:"renderExternalLink",value:function(){return!!this.externalLink&&(0,a.h)("sc-tooltip",{text:this.externalLinkTooltipText,type:"text"},(0,a.h)("sc-button",{style:{color:"var(--sc-color-gray-500)"},type:"text",size:"small",href:this.externalLink,target:"_blank"},(0,a.h)("sc-icon",{name:"external-link",style:{fontSize:"16px"}})))}},{key:"render",value:function(){var t,e,o,n,i,l,s,d,c,m,p,h,u,g,v,f,y,b,k,x;if(null===(e=null===(t=this.paymentMethod)||void 0===t?void 0:t.bank_account)||void 0===e?void 0:e.id){var _=null===(o=this.paymentMethod)||void 0===o?void 0:o.bank_account;return(0,a.h)("div",{class:"payment-method",part:"bank"},(0,a.h)("span",null,this.renderBankAccountType(null==_?void 0:_.account_type)),"**** ",null==_?void 0:_.last4,this.renderExternalLink())}if(null===(i=null===(n=null==this?void 0:this.paymentMethod)||void 0===n?void 0:n.payment_instrument)||void 0===i?void 0:i.instrument_type){var w=null===(s=null===(l=null==this?void 0:this.paymentMethod)||void 0===l?void 0:l.payment_instrument)||void 0===s?void 0:s.instrument_type;if(null===(d=null==this?void 0:this.paymentMethod)||void 0===d?void 0:d.payment_method_name)return(0,a.h)("div",{class:"payment-method",part:"instrument"},(0,a.h)("div",{class:"payment-method-icon"},(0,a.h)("sc-icon",{style:{fontSize:"36px","--height":"0.63em"},name:w})),(0,a.h)("span",null,null===(c=null==this?void 0:this.paymentMethod)||void 0===c?void 0:c.payment_method_name),this.renderExternalLink());if("paypal"===w)return(0,a.h)("div",{class:"payment-method",part:"instrument"},(0,a.h)("sc-icon",{style:{fontSize:"56px",lineHeight:"1",height:"28px"},name:"paypal"}));var z=(0,r.g)(w);return z?(0,a.h)("div",{class:"payment-method",part:"instrument"},(0,a.h)("sc-icon",{style:{fontSize:"24px"},name:(0,r.a)(w),"aria-hidden":"true"}),(0,a.h)("span",null,z),this.renderExternalLink()):(0,a.h)("div",{class:"payment-method",part:"instrument"},(0,a.h)("sc-tag",{exportparts:"base:payment_instrument",type:"info",pill:!0},(0,a.h)("span",{style:{textTransform:"capitalize"}},w," ")),this.renderExternalLink())}return(null===(p=null===(m=this.paymentMethod)||void 0===m?void 0:m.card)||void 0===p?void 0:p.brand)?(0,a.h)("div",{class:"payment-method",part:"card"},(0,a.h)("sc-cc-logo",{style:{fontSize:"36px"},brand:null===(u=null===(h=this.paymentMethod)||void 0===h?void 0:h.card)||void 0===u?void 0:u.brand}),(0,a.h)("sc-text",{style:{whiteSpace:"nowrap",paddingRight:"6px"}},"**** ",null===(v=null===(g=this.paymentMethod)||void 0===g?void 0:g.card)||void 0===v?void 0:v.last4),this.renderExternalLink()):(null===(y=null===(f=this.paymentMethod)||void 0===f?void 0:f.paypal_account)||void 0===y?void 0:y.id)?(0,a.h)("div",{class:"payment-method",part:"base",style:{gap:"var(--sc-spacing-small)"}},(0,a.h)("sc-icon",{style:{fontSize:"56px",lineHeight:"1",height:"28px"},name:"paypal"}),this.full&&(0,a.h)("sc-text",{style:{"--font-size":"var(--sc-font-size-small)"},truncate:!0},null===(k=null===(b=this.paymentMethod)||void 0===b?void 0:b.paypal_account)||void 0===k?void 0:k.email),this.renderExternalLink()):null===(x=null==this?void 0:this.paymentMethod)||void 0===x?void 0:x.processor_type}}])}();s.style=":host{display:block}.payment-method{display:flex;align-items:center;justify-content:flex-start;gap:var(--sc-spacing-x-small)}.payment-method-icon{border-radius:var(--sc-cc-border-radius, 4px);line-height:0;overflow:hidden}";var d=function(){return(0,i.A)((function t(e){(0,n.A)(this,t),(0,a.r)(this,e)}),[{key:"render",value:function(){return(0,a.h)(a.H,{key:"94281cf5ea6e42efec744078ab742c377a27455e"},(0,a.h)("slot",{key:"13ac98f4547cdb0be6ac83a66f8a412d5c9ee153"}))}}])}();d.style=":host{display:block}:host{display:block;position:relative;width:100%;font-family:var(--sc-input-font-family);font-weight:var(--sc-input-font-weight);line-height:var(--sc-line-height-normal);letter-spacing:var(--sc-input-letter-spacing)}::slotted(*){}::slotted([class~='lead']){color:var(--sc-input-color);font-size:var(--sc-input-spacing-small);line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}::slotted(strong){font-weight:var(--sc-font-weight-bold)}::slotted(ol){padding:0;margin-top:var(--sc-input-spacing-small);margin-bottom:var(--sc-input-spacing-small)}::slotted(ol>li){position:relative}::slotted(ul>li){position:relative}::slotted(hr){border-color:var(--sc-color-gray-400);border-top-width:1px;margin-top:3em;margin-bottom:3em}::slotted(blockquote){font-weight:var(--sc-font-weight-medium);font-style:italic;color:var(--sc-color-gray-800);border-left-width:0.25rem;border-left-color:var(--sc-color-gray-400);quotes:'\\201C''\\201D''\\2018''\\2019';margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}::slotted(blockquote p:first-of-type::before){content:open-quote}::slotted(blockquote p:last-of-type::after){content:close-quote}::slotted(h1){font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:0.8888889em;line-height:1.1111111}::slotted(h2){font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}::slotted(h3){font-weight:600;font-size:var(--sc-input-spacing-small);margin-top:1.6em;margin-bottom:0.6em;line-height:1.6}::slotted(h4){font-weight:600;margin-top:1.5em;margin-bottom:0.5em;line-height:1.5}::slotted(figure figcaption){color:var(--sc-color-gray-600);font-size:0.875em;line-height:1.4285714;margin-top:0.8571429em}::slotted(code){color:var(--sc-color-gray-900);font-weight:600;font-size:0.875em}::slotted(code::before){content:'`'}::slotted(code::after){content:'`'}::slotted(pre){color:var(--sc-color-gray-300);background-color:var(--sc-color-gray-800);overflow-x:auto;font-size:0.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:0.375rem;padding-top:0.8571429em;padding-right:1.1428571em;padding-bottom:0.8571429em;padding-left:1.1428571em}::slotted(pre code){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:400;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}::slotted(pre code::before){content:''}::slotted(pre code::after){content:''}::slotted(table){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:0.875em;line-height:1.7142857}::slotted(thead){color:#1a202c;font-weight:600;border-bottom-width:1px;border-bottom-color:var(--sc-color-gray-400)}::slotted(thead th){vertical-align:bottom;padding-right:0.5714286em;padding-bottom:0.5714286em;padding-left:0.5714286em}::slotted(tbody tr){border-bottom-width:1px;border-bottom-color:var(--sc-color-gray-400)}::slotted(tbody tr:last-child){border-bottom-width:0}::slotted(tbody td){vertical-align:top;padding-top:0.5714286em;padding-right:0.5714286em;padding-bottom:0.5714286em;padding-left:0.5714286em}::slotted(p),::slotted(img),::slotted(video),::slotted(figure){padding:0 !important;margin-top:var(--sc-input-spacing-small) !important;margin-bottom:var(--sc-input-spacing-small) !important}::slotted(figure>*){margin-top:0;margin-bottom:0}::slotted(h2 code){font-size:0.875em}::slotted(h3 code){font-size:0.9em}::slotted(ul){margin-top:var(--sc-input-spacing-small);margin-bottom:var(--sc-input-spacing-small)}::slotted(li){margin-top:0.5em;margin-bottom:0.5em}::slotted(ul>li p){margin-top:0.75em;margin-bottom:0.75em}::slotted(ul>li>*:first-child){margin-top:var(--sc-input-spacing-small)}::slotted(ul>li>*:last-child){margin-bottom:var(--sc-input-spacing-small)}::slotted(ol>li>*:first-child){margin-top:var(--sc-input-spacing-small)}::slotted(ol>li>*:last-child){margin-bottom:var(--sc-input-spacing-small)}::slotted(ul ul),::slotted(ul ol),::slotted(ol ul),::slotted(ol ol){margin-top:0.75em;margin-bottom:0.75em}::slotted(hr+*){margin-top:0}::slotted(h2+*){margin-top:0}::slotted(h3+*){margin-top:0}::slotted(h4+*){margin-top:0}::slotted(thead th:first-child){padding-left:0}::slotted(thead th:last-child){padding-right:0}::slotted(tbody td:first-child){padding-left:0}::slotted(tbody td:last-child){padding-right:0}::slotted(:first-child){margin-top:0 !important}::slotted(:last-child){margin-bottom:0 !important}"}}]);