index of
/
home
/
thefkyzp
/
hulmvisaadvisor.com
/
wp-content
/
plugins
/
surecart
/
dist
/
File: /home/thefkyzp/hulmvisaadvisor.com/wp-content/plugins/surecart/dist/7882.js
"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[7882],{2846:function(r,n,t){t.d(n,{i:function(){return a},m:function(){return i},z:function(){return e}});var e=["bif","byr","clp","djf","gnf","isk","jpy","kmf","krw","pyg","rwf","ugx","vnd","vuv","xaf","xag","xau","xba","xbb","xbc","xbd","xdr","xof","xpd","xpf","xpt","xts"],i=function(r,n){return a(n)?r:r/100},a=function(r){var n;return e.includes(null===(n=null==r?void 0:r.toLowerCase)||void 0===n?void 0:n.call(r))}},2400:function(r,n,t){t.d(n,{a:function(){return i},b:function(){return d},c:function(){return h},d:function(){return c},g:function(){return a},i:function(){return o},p:function(){return _},t:function(){return u}});var e=t(2846),i=function(r){return(null==r?void 0:r.amount_off)&&(null==r?void 0:r.currency)?a({amount:r.amount_off,currency:r.currency}):(null==r?void 0:r.percent_off)?wp.i18n.sprintf(wp.i18n.__("%1d%% off","surecart"),0|r.percent_off):""},a=function(r){var n=r.amount,t=r.currency,i=function(r,n){return e.z.includes(n)?r:r/100}(n,t);return"".concat(new Intl.NumberFormat(void 0,{style:"currency",currency:t}).format(parseFloat(i.toFixed(2))))},c=function(){var r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"usd",t=new Intl.NumberFormat(void 0,{style:"currency",currency:n}).formatToParts();return null===(r=t.find((function(r){return"currency"===r.type})))||void 0===r?void 0:r.value},u=function(r,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wp.i18n.__("every","surecart"),e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:wp.i18n.__("once","surecart"),i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];switch(n){case"day":return"".concat(t," ").concat(wp.i18n.sprintf(i?wp.i18n._n("%d day","%d days",r,"surecart"):wp.i18n._n("day","%d days",r,"surecart"),r));case"week":return"".concat(t," ").concat(wp.i18n.sprintf(i?wp.i18n._n("%d week","%d weeks",r,"surecart"):wp.i18n._n("week","%d weeks",r,"surecart"),r));case"month":return"".concat(t," ").concat(wp.i18n.sprintf(i?wp.i18n._n("%d month","%d months",r,"surecart"):wp.i18n._n("month","%d months",r,"surecart"),r));case"year":return"".concat(t," ").concat(wp.i18n.sprintf(i?wp.i18n._n("%d year","%d years",r,"surecart"):wp.i18n._n("year","%d years",r,"surecart"),r));default:return e}},s=function(r,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wp.i18n.__("once","surecart"),e=arguments.length>3&&void 0!==arguments[3]&&arguments[3];switch(n){case"day":return" / ".concat(wp.i18n.sprintf(e?wp.i18n._n("%d day","%d days",r,"surecart"):wp.i18n._n("day","%d days",r,"surecart"),r));case"week":return" / ".concat(wp.i18n.sprintf(e?wp.i18n._n("%d wk","%d wks",r,"surecart"):wp.i18n._n("wk","%d wks",r,"surecart"),r));case"month":return" / ".concat(wp.i18n.sprintf(e?wp.i18n._n("%d mo","%d months",r,"surecart"):wp.i18n._n("mo","%d mos",r,"surecart"),r));case"year":return" / ".concat(wp.i18n.sprintf(e?wp.i18n._n("%d yr","%d yrs",r,"surecart"):wp.i18n._n("yr","%d yrs",r,"surecart"),r));default:return t}},o=function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!r)return"";var t=n.showOnce,e=n.labels,i=n.abbreviate,a=e||{},c=a.interval,u=void 0===c?wp.i18n.__("every","surecart"):c;return"".concat(l(r,u,t?wp.i18n.__("once","surecart"):"",i)," ").concat(p(r,i))},l=function(r,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wp.i18n.__("once","surecart"),e=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return r.recurring_interval_count&&r.recurring_interval&&1!==(null==r?void 0:r.recurring_period_count)?e?s(r.recurring_interval_count,r.recurring_interval,t):u(r.recurring_interval_count,r.recurring_interval," ".concat(n),t):""},p=function(r){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(null==r?void 0:r.recurring_period_count)&&1!==(null==r?void 0:r.recurring_period_count)?n?"x ".concat(r.recurring_period_count):" (".concat(wp.i18n.sprintf(wp.i18n._n("%d payment","%d payments",r.recurring_period_count,"surecart"),r.recurring_period_count),")"):""},d=function(r){return wp.i18n.sprintf(wp.i18n._n("%d payment remaining","%d payments remaining",r,"surecart"),r)},_=function(r){var n;return r?"".concat(null===(n=null==r?void 0:r.product)||void 0===n?void 0:n.name," ").concat((null==r?void 0:r.name)?"— ".concat(r.name):""):""},h=function(r){switch(r){case"invalid":return wp.i18n.__("Not valid","surecart");case"expired":return wp.i18n.__("Expired","surecart");case"gone":return wp.i18n.__("Not available","surecart");case"less_than_min_subtotal_amount":return wp.i18n.__("Minimum not met","surecart");case"greater_than_max_subtotal_amount":return wp.i18n.__("Order too large","surecart");case"not_applicable":return wp.i18n.__("Product(s) not eligible","surecart");case"not_applicable_to_customer":return wp.i18n.__("Not eligible","surecart");case"":return"";default:return wp.i18n.__("Not redeemable","surecart")}}},7882:function(r,n,t){t.r(n),t.d(n,{sc_price:function(){return u}});var e=t(5671),i=t(3144),a=t(8860),c=t(2400),u=function(){function r(n){(0,e.Z)(this,r),(0,a.r)(this,n),this.currency=void 0,this.amount=void 0,this.scratchAmount=void 0,this.saleText=void 0,this.adHoc=void 0,this.recurringPeriodCount=void 0,this.recurringIntervalCount=void 0,this.recurringInterval=void 0,this.setupFeeAmount=void 0,this.trialDurationDays=void 0,this.setupFeeName=void 0}return(0,i.Z)(r,[{key:"render",value:function(){return this.adHoc?(0,a.h)(a.H,{role:"paragraph"},wp.i18n.__("Custom Amount","surecart")):(0,a.h)(a.H,{role:"paragraph"},(0,a.h)("div",{class:"price",id:"price"},(0,a.h)("div",{class:"price__amounts"},!!this.scratchAmount&&this.scratchAmount!==this.amount&&(0,a.h)(a.F,null,0===this.scratchAmount?wp.i18n.__("Free","surecart"):(0,a.h)(a.F,null,(0,a.h)("sc-visually-hidden",null,wp.i18n.__("The price was","surecart")," "),(0,a.h)("sc-format-number",{class:"price__scratch",part:"price__scratch",type:"currency",currency:this.currency,value:this.scratchAmount}),(0,a.h)("sc-visually-hidden",null," ",wp.i18n.__("now discounted to","surecart")))),0===this.amount?wp.i18n.__("Free","surecart"):(0,a.h)("sc-format-number",{class:"price__amount",type:"currency",value:this.amount,currency:this.currency}),(0,a.h)("div",{class:"price__interval"},this.recurringPeriodCount&&1<this.recurringPeriodCount&&(0,a.h)("sc-visually-hidden",null," ",wp.i18n.__("This is a repeating price. Payment will happen","surecart")," ",(0,c.i)({recurring_interval_count:this.recurringIntervalCount,recurring_interval:this.recurringInterval,recurring_period_count:this.recurringPeriodCount},{showOnce:!0,abbreviate:!1,labels:{interval:wp.i18n.__("every","surecart"),period: /** translators: used as in time period: "for 3 months" */ wp.i18n.__("for","surecart")}})),(0,a.h)("span",{"aria-hidden":"true"},(0,c.i)({recurring_interval_count:this.recurringIntervalCount,recurring_interval:this.recurringInterval,recurring_period_count:this.recurringPeriodCount},{showOnce:!0,abbreviate:!1,labels:{interval:"/",period: /** translators: used as in time period: "for 3 months" */ wp.i18n.__("for","surecart")}}))),!!this.scratchAmount&&(0,a.h)("sc-tag",{type:"primary",pill:!0,class:"price__sale-badge"},this.saleText||(0,a.h)(a.F,null,(0,a.h)("sc-visually-hidden",null,wp.i18n.__("This product is available for sale.","surecart")," "),(0,a.h)("span",{"aria-hidden":"true"},wp.i18n.__("Sale","surecart"))))),(!!(null==this?void 0:this.trialDurationDays)||!!(null==this?void 0:this.setupFeeAmount))&&(0,a.h)("div",{class:"price__details"},!!(null==this?void 0:this.trialDurationDays)&&(0,a.h)(a.F,null,(0,a.h)("sc-visually-hidden",null,wp.i18n.sprintf(wp.i18n.__("You have a %d-day trial before payment becomes necessary.","surecart"),null==this?void 0:this.trialDurationDays)),(0,a.h)("span",{class:"price__trial","aria-hidden":"true"},wp.i18n.sprintf(wp.i18n._n("Starting in %s day.","Starting in %s days.",null==this?void 0:this.trialDurationDays,"surecart"),null==this?void 0:this.trialDurationDays))),!!(null==this?void 0:this.setupFeeAmount)&&(0,a.h)("span",{class:"price__setup-fee"},(0,a.h)("sc-visually-hidden",null,wp.i18n.__("This product has","surecart")," ")," ",(0,a.h)("sc-format-number",{type:"currency",value:null==this?void 0:this.setupFeeAmount,currency:this.currency})," ",(null==this?void 0:this.setupFeeName)||wp.i18n.__("Setup Fee","surecart"),"."))))}}]),r}();u.style=":host{display:block}.price{display:inline-flex;flex-direction:column;gap:var(--sc-spacing-xxx-small);text-align:var(--sc-product-price-alignment, left);justify-content:var(--sc-product-price-alignment, left)}.price__amounts{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:var(--sc-spacing-xx-small);justify-content:var(--sc-product-price-alignment, left);text-align:var(--sc-product-price-alignment, left)}.price__scratch{text-decoration:line-through;opacity:0.75}.price__interval{font-size:min(var(--sc-font-size-small), 16px);opacity:0.75}.price__details{font-size:min(var(--sc-font-size-small), 16px);opacity:0.75}.price__sale-badge{font-size:min(1em, 14px);align-self:center}"}}]);