index of
/
home
/
thefkyzp
/
hulmvisaadvisor.com
/
wp-content
/
plugins
/
surecart
/
dist
/
File: /home/thefkyzp/hulmvisaadvisor.com/wp-content/plugins/surecart/dist/6387.js
"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[6387],{581:function(n,e,r){r.d(e,{o:function(){return i}});var t=r(1346),i=function(n,e,r){void 0===r&&(r=!0);var i="Function"===n.constructor.name?n.prototype:n,o=i.componentWillLoad;i.componentWillLoad=function(){var n,i=this,c=(0,t.a)(this),a={promise:new Promise((function(e){n=e})),resolve:n},u=new CustomEvent("openWormhole",{bubbles:!0,composed:!0,detail:{consumer:this,fields:e,updater:function(n,e){(n in c?c:i)[n]=e},onOpen:a}});c.dispatchEvent(u);var l=function(){if(o)return o.call(i)};return r?a.promise.then((function(){return l()})):l()}}},488:function(n,e,r){r.d(e,{i:function(){return o},m:function(){return i},z:function(){return t}});var t=["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(n,e){return o(e)?n:n/100},o=function(n){var e;return t.includes(null===(e=null==n?void 0:n.toLowerCase)||void 0===e?void 0:e.call(n))}},8037:function(n,e,r){r.d(e,{c:function(){return c},g:function(){return a},h:function(){return l},i:function(){return u}});var t=r(4467);function i(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function o(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){(0,t.A)(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}var c=function(n){return((null==n?void 0:n.data)||[]).map((function(n){var e;return o(o({},(null==n?void 0:n.id)?{id:n.id}:{}),{},{price_id:n.price.id,quantity:n.quantity,variant_id:null===(e=n.variant)||void 0===e?void 0:e.id})}))},a=function(n,e){return((null==n?void 0:n.data)||[]).find((function(n){return n.price.id===e}))},u=function(n,e){var r;return!!((null==(r=null==e?void 0:e.line_items)?void 0:r.data)||[]).map((function(n){return n.price.id})).find((function(e){return(null==n?void 0:n.id)===e}))},l=function(n){var e,r,t;return!!(null===(r=null===(e=null==n?void 0:n.line_items)||void 0===e?void 0:e.data)||void 0===r?void 0:r.length)&&(null===(t=null==n?void 0:n.line_items.data)||void 0===t?void 0:t.some((function(n){var e;return null===(e=null==n?void 0:n.price)||void 0===e?void 0:e.recurring_interval_count})))}},1517:function(n,e,r){r.d(e,{a:function(){return i},b:function(){return s},c:function(){return v},d:function(){return c},g:function(){return o},i:function(){return u},p:function(){return p},t:function(){return a}});var t=r(488),i=function(n){return(null==n?void 0:n.amount_off)&&(null==n?void 0:n.currency)?o({amount:n.amount_off,currency:n.currency}):(null==n?void 0:n.percent_off)?wp.i18n.sprintf(wp.i18n.__("%1d%% off","surecart"),0|n.percent_off):""},o=function(n){var e=n.amount,r=n.currency,i=function(n,e){return t.z.includes(e)?n:n/100}(e,r);return"".concat(new Intl.NumberFormat(void 0,{style:"currency",currency:r}).format(parseFloat(i.toFixed(2))))},c=function(){var n,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"usd";return null===(n=new Intl.NumberFormat(void 0,{style:"currency",currency:e}).formatToParts().find((function(n){return"currency"===n.type})))||void 0===n?void 0:n.value},a=function(n,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wp.i18n.__("every","surecart"),t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:wp.i18n.__("once","surecart"),i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];switch(e){case"day":return"".concat(r," ").concat(wp.i18n.sprintf(i?wp.i18n._n("%d day","%d days",n,"surecart"):wp.i18n._n("day","%d days",n,"surecart"),n));case"week":return"".concat(r," ").concat(wp.i18n.sprintf(i?wp.i18n._n("%d week","%d weeks",n,"surecart"):wp.i18n._n("week","%d weeks",n,"surecart"),n));case"month":return"".concat(r," ").concat(wp.i18n.sprintf(i?wp.i18n._n("%d month","%d months",n,"surecart"):wp.i18n._n("month","%d months",n,"surecart"),n));case"year":return"".concat(r," ").concat(wp.i18n.sprintf(i?wp.i18n._n("%d year","%d years",n,"surecart"):wp.i18n._n("year","%d years",n,"surecart"),n));default:return t}},u=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!n)return"";var r=e.showOnce,t=e.labels,i=e.abbreviate,o=(t||{}).interval,c=void 0===o?wp.i18n.__("every","surecart"):o;return"".concat(l(n,c,r?wp.i18n.__("once","surecart"):"",i)," ").concat(d(n,i))},l=function(n,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wp.i18n.__("once","surecart"),t=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return n.recurring_interval_count&&n.recurring_interval&&1!==(null==n?void 0:n.recurring_period_count)?t?function(n,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wp.i18n.__("once","surecart"),t=arguments.length>3&&void 0!==arguments[3]&&arguments[3];switch(e){case"day":return" / ".concat(wp.i18n.sprintf(t?wp.i18n._n("%d day","%d days",n,"surecart"):wp.i18n._n("day","%d days",n,"surecart"),n));case"week":return" / ".concat(wp.i18n.sprintf(t?wp.i18n._n("%d wk","%d wks",n,"surecart"):wp.i18n._n("wk","%d wks",n,"surecart"),n));case"month":return" / ".concat(wp.i18n.sprintf(t?wp.i18n._n("%d mo","%d months",n,"surecart"):wp.i18n._n("mo","%d mos",n,"surecart"),n));case"year":return" / ".concat(wp.i18n.sprintf(t?wp.i18n._n("%d yr","%d yrs",n,"surecart"):wp.i18n._n("yr","%d yrs",n,"surecart"),n));default:return r}}(n.recurring_interval_count,n.recurring_interval,r):a(n.recurring_interval_count,n.recurring_interval," ".concat(e),r):""},d=function(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(null==n?void 0:n.recurring_period_count)&&1!==(null==n?void 0:n.recurring_period_count)?e?"x ".concat(n.recurring_period_count):" (".concat(wp.i18n.sprintf(wp.i18n._n("%d payment","%d payments",n.recurring_period_count,"surecart"),n.recurring_period_count),")"):""},s=function(n){return wp.i18n.sprintf(wp.i18n._n("%d payment remaining","%d payments remaining",n,"surecart"),n)},p=function(n){var e;return n?"".concat(null===(e=null==n?void 0:n.product)||void 0===e?void 0:e.name," ").concat((null==n?void 0:n.name)?"— ".concat(n.name):""):""},v=function(n){switch(n){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")}}},6387:function(n,e,r){r.r(e),r.d(e,{sc_order_confirmation_line_items:function(){return d},sc_order_confirmation_totals:function(){return s}});var t=r(3029),i=r(2901),o=r(1346),c=r(581),a=r(8037),u=r(1517),l=r(8674),d=function(){return(0,i.A)((function n(e){(0,t.A)(this,n),(0,o.r)(this,e),this.order=void 0,this.loading=void 0}),[{key:"render",value:function(){var n,e,r=this;return this.loading?(0,o.h)("sc-line-item",null,(0,o.h)("sc-skeleton",{style:{width:"50px",height:"50px","--border-radius":"0"},slot:"image"}),(0,o.h)("sc-skeleton",{slot:"title",style:{width:"120px",display:"inline-block"}}),(0,o.h)("sc-skeleton",{slot:"description",style:{width:"60px",display:"inline-block"}}),(0,o.h)("sc-skeleton",{style:{width:"120px",display:"inline-block"},slot:"price"}),(0,o.h)("sc-skeleton",{style:{width:"60px",display:"inline-block"},slot:"price-description"})):(0,o.h)("div",{class:{"confirmation-summary":!0}},(0,o.h)("div",{class:"line-items",part:"line-items"},null===(e=null===(n=this.order)||void 0===n?void 0:n.line_items)||void 0===e?void 0:e.data.map((function(n){var e,t,i,c,l,d,s,p;return(0,o.h)("div",{class:"line-item"},(0,o.h)("sc-product-line-item",{key:n.id,image:null===(t=null===(e=null==n?void 0:n.price)||void 0===e?void 0:e.product)||void 0===t?void 0:t.line_item_image,name:"".concat(null===(c=null===(i=null==n?void 0:n.price)||void 0===i?void 0:i.product)||void 0===c?void 0:c.name),priceName:null===(l=null==n?void 0:n.price)||void 0===l?void 0:l.name,variantLabel:((null==n?void 0:n.variant_options)||[]).filter(Boolean).join(" / ")||null,editable:!1,removable:!1,quantity:n.quantity,fees:null===(d=null==n?void 0:n.fees)||void 0===d?void 0:d.data,amount:null!==n.ad_hoc_amount?n.ad_hoc_amount:n.subtotal_amount,currency:null===(s=r.order)||void 0===s?void 0:s.currency,trialDurationDays:null===(p=null==n?void 0:n.price)||void 0===p?void 0:p.trial_duration_days,interval:(0,u.i)(null==n?void 0:n.price,{showOnce:(0,a.h)(r.order)}),purchasableStatusDisplay:null==n?void 0:n.purchasable_status_display}))}))))}}])}();(0,c.o)(d,["order","busy","loading","empty"],!1),d.style=":host{display:block}.line-items{display:grid;gap:var(--sc-spacing-small)}.line-item{display:grid;gap:var(--sc-spacing-small)}.fee__description{opacity:0.75}";var s=function(){return(0,i.A)((function n(e){(0,t.A)(this,n),(0,o.r)(this,e),this.order=void 0}),[{key:"renderDiscountLine",value:function(){var n,e,r,t,i,c,a,l,d,s,p,v,f,_,m;if(!(null===(r=null===(e=null===(n=this.order)||void 0===n?void 0:n.discount)||void 0===e?void 0:e.promotion)||void 0===r?void 0:r.code))return null;var y="";return(null===(i=null===(t=this.order)||void 0===t?void 0:t.discount)||void 0===i?void 0:i.coupon)&&(y=(0,u.a)(null===(a=null===(c=this.order)||void 0===c?void 0:c.discount)||void 0===a?void 0:a.coupon)),(0,o.h)("sc-line-item",{style:{marginTop:"var(--sc-spacing-small)"}},(0,o.h)("span",{slot:"description"},wp.i18n.__("Discount","surecart"),(0,o.h)("br",null),(null===(s=null===(d=null===(l=this.order)||void 0===l?void 0:l.discount)||void 0===d?void 0:d.promotion)||void 0===s?void 0:s.code)&&(0,o.h)("sc-tag",{type:"success",size:"small"},null===(f=null===(v=null===(p=this.order)||void 0===p?void 0:p.discount)||void 0===v?void 0:v.promotion)||void 0===f?void 0:f.code)),y&&(0,o.h)("span",{class:"coupon-human-discount",slot:"price-description"},"(",y,")"),(0,o.h)("sc-format-number",{slot:"price",type:"currency",currency:null===(_=this.order)||void 0===_?void 0:_.currency,value:-(null===(m=this.order)||void 0===m?void 0:m.discount_amount)}))}},{key:"render",value:function(){var n,e,r,t,i,c,a,u,d,s;return(0,o.h)("div",{key:"6f135194bb15e9512e4c4b476d74966601bcfc95",class:{"line-item-totals":!0}},(0,o.h)("sc-line-item-total",{key:"fe7a0e6f1b3c22db8f8d102794e835110af9733c",checkout:this.order,total:"subtotal"},(0,o.h)("span",{key:"9c7dffdebd0dcea146649396642cc6c575c04e6f",slot:"description"},wp.i18n.__("Subtotal","surecart"))),this.renderDiscountLine(),!!(null===(n=this.order)||void 0===n?void 0:n.bump_amount)&&(0,o.h)("sc-line-item",{key:"8d1539531739cf0afeddf4ca7552efeb04482cbf",style:{marginTop:"var(--sc-spacing-small)"}},(0,o.h)("span",{key:"a822494d9eeb1ceec4b5c70d39bdbed907a87ea1",slot:"description"},wp.i18n.__("Bundle Discount","surecart")),(0,o.h)("sc-format-number",{key:"ef7cde22b517b05c801a6fc8d9cd7abedead1bfd",slot:"price",type:"currency",currency:null===(e=this.order)||void 0===e?void 0:e.currency,value:null===(r=this.order)||void 0===r?void 0:r.bump_amount})),!!(null===(t=this.order)||void 0===t?void 0:t.shipping_amount)&&(0,o.h)("sc-line-item",{key:"7d15cd38efe245392261809c645ba5162ffbea6b",style:{marginTop:"var(--sc-spacing-small)"}},(0,o.h)("span",{key:"16438cd11eb26631d5f12ffbc8ffd3b49f4982ea",slot:"description"},wp.i18n.__("Shipping","surecart")),(0,o.h)("sc-format-number",{key:"e1f996f04a93862003a6800e4b1e1ef8e6a43d54",slot:"price",type:"currency",currency:null===(i=this.order)||void 0===i?void 0:i.currency,value:null===(c=this.order)||void 0===c?void 0:c.shipping_amount})),!!(null===(a=this.order)||void 0===a?void 0:a.tax_amount)&&(0,o.h)("sc-line-item",{key:"ae4ac9e8a5a33576ea925f167124035bf599bd87",style:{marginTop:"var(--sc-spacing-small)"}},(0,o.h)("span",{key:"036446ff1d775232e38dc3ab8b1ce18f0ba2d6e7",slot:"description"},(0,l.f)(null===(u=this.order)||void 0===u?void 0:u.tax_label)," ","(".concat(this.order.tax_percent,"%)")),(0,o.h)("sc-format-number",{key:"c16ec750084c14c1b8ec05423218bff95805ffbc",slot:"price",type:"currency",currency:null===(d=this.order)||void 0===d?void 0:d.currency,value:null===(s=this.order)||void 0===s?void 0:s.tax_amount})),(0,o.h)("sc-divider",{key:"b6feba619e53fc855333b3c47187a0513f9639e1",style:{"--spacing":"var(--sc-spacing-small)"}}),(0,o.h)("sc-line-item-total",{key:"640ab08aed8edbfb72099454ebc07ae239e20d9a",checkout:this.order,size:"large","show-currency":!0},(0,o.h)("span",{key:"1e1512e02cb97abf907ae1e95e58dd8e1ea93570",slot:"description"},wp.i18n.__("Total","surecart"))))}}])}();(0,c.o)(s,["order","busy","loading","empty"],!1),s.style=":host{display:block}"},8674:function(n,e,r){r.d(e,{f:function(){return i},z:function(){return t}});var t={ca_gst:{label:wp.i18n.__("GST Number","surecart"),label_small:wp.i18n.__("CA GST","surecart")},au_abn:{label:wp.i18n.__("ABN Number","surecart"),label_small:wp.i18n.__("AU ABN","surecart")},gb_vat:{label:wp.i18n.__("VAT Number","surecart"),label_small:wp.i18n.__("UK VAT","surecart")},eu_vat:{label:wp.i18n.__("VAT Number","surecart"),label_small:wp.i18n.__("EU VAT","surecart")},other:{label:wp.i18n.__("Tax ID","surecart"),label_small:wp.i18n.__("Other","surecart")}},i=function(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?wp.i18n.__("Estimated Tax","surecart"):wp.i18n.__("Tax","surecart");return n?"".concat(e,": ").concat(n):e}}}]);