@kelbyone/components
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -1,2 +0,2 @@ | ||
(("undefined"!==typeof self?self:this)["webpackJsonpSSCObject"]=("undefined"!==typeof self?self:this)["webpackJsonpSSCObject"]||[]).push([[10],{"042b":function(e,t,c){},1336:function(e,t){e.exports="data:image/gif;base64,R0lGODlhZAA6AOYAAMuqWfHx8vT19XZzdP/imry+wKyrq9HS1OXm56yusaeprKiPU/n6+tPU1f7EJtTW18LExv/qtunp6kpISf/x0v/XeLq5uSMgIbi6vNzd3v/KOtTV187P0GNkZ5KUl87Gs7K0tv/sxeHi4+Di4+7u78m6mdXX2La4u//dkVVWWP/lq9jZ2//GHcjJy3x+gP/57e7v79fY2Tc1N9rc3f/MS//Zaf7QXP/ahf/Sa8rLzZ+hpGhlZj87PGNcTf/0356dnYiKjDEtLv/KLFpYWFZRR8rMzn1xVMbIyv/BDf/BDsfIypOVmObn6Kepq8jHx5GPj1pXWLu9v+Pk5d7f4MfJy//ghuDh49bV1ePj4//ww/v8/P/34f/78ISBgoeJjP/opP/RSpGPkOzt7u3u7ru9wLy9wHBxdL2/wff398zOz/f4+MfJytbCkePUtK+kiuvs7aCipNXNveLEgebOmt/g4W1ucfTx6UdDPtrb3eDg4dDS1JOBVfDCViMfIP/CDv///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjEgNjQuMTQwOTQ5LCAyMDEwLzEyLzA3LTEwOjU3OjAxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0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NrQPGG1qRbta1Z62CFRQAhUyYM1JcKEKZXVUifxggzY84AEm+K1whwtc4gZXuMcl7nCT+1vmKte4WBiDczQRgRpA0Y9aYYENCECKyHq3EL7Iwkq/S97ymve86E2velEzhcM2II6NCMAn1guLMzRgEAo4LBGDwAM2mcIJF9jEGQAKAQYwoAUKwAAMVsCBbU5BAGdgAP8HEqBgGJzBvlMAAQjqkmEN3zeBZ0hAhCEghT9wYAWCAPA2nGCAAfzBCUO4AhQmwIMB8IAHWJBxEHYQAAPs4MZXCAUUrtCFIEzgFk/grwEQoYAWSCEBHGgBCKTQggRIIb8JXsGGrQwBCEiAjU9uwAoUAIMmhxm/Z5AACFrQgjMIIL+CwEIQ+gAFC2ChD0HeAYANMIEgWIAHT8BCGJL8gyT/+QkG6IMTLNAHC9h4Fj/4wZIPAec22zcqZKYwBhLMgfcd8MsM+DL8RhjHSydwmSMpMwdAUAgL7KAPWIDCDvwM4D88YQh/gMITnrCKC4QhDKzQ9SxszZswMK8RTSBxAhq2UGUqT6gFTZjCpmEwBSvT5ct/YACUpdAAbbeg2h/+QxMwIIU1/+EMCkCxIP5sgB/A2gAX4MGL+2DrYN9az0HYtb33PAsD+BvShWbyhVtgYCmfYR4SiPAU2mhiEJxBChYWhBRI0uCJD7gughjwgA28gibA9w8BGAAUoBAGkAehC3+Q8R8MgPIuGMACI9+Bv1tugADsANdPmMAElpzznTNZv9cTYoMRAeAg/Im+SE+60pfO9KZ7NxAAOw=="},3499:function(e,t,c){"use strict";var a=c("7a23");const s=Object(a["u"])("data-v-6e809c3c");Object(a["l"])("data-v-6e809c3c");const o={class:"koc-block koc-purchase-next-payment-block"},i={class:"koc-card"},n=Object(a["h"])("h2",null,"Next Auto Payment",-1),d={class:"koc-details"},r={key:0,class:"koc-item"},l={key:1,class:"koc-item"},b={key:2,class:"koc-item"},j={key:3,class:"koc-price"},p={key:4,class:"koc-price"},u=Object(a["h"])("p",{class:"koc-disclaimer"}," This will be automatically charged to your credit card unless you cancel before the next auto-payment date. ",-1);Object(a["k"])();const h=s((e,t,c,s,h,O)=>(Object(a["j"])(),Object(a["d"])("div",o,[Object(a["h"])("div",i,[n,Object(a["h"])("div",d,["create"===e.preview.intent?(Object(a["j"])(),Object(a["d"])("p",r,Object(a["r"])(e.formatDate(e.preview.next.dates.end)),1)):"equivalent"!==e.preview.intent?(Object(a["j"])(),Object(a["d"])("p",l,Object(a["r"])(e.formatDate(e.preview.next.dates.start)),1)):(Object(a["j"])(),Object(a["d"])("p",b,Object(a["r"])(e.formatDate(e.preview.next.dates.start)),1)),0===e.preview.next.payment.product?(Object(a["j"])(),Object(a["d"])("p",j,Object(a["r"])(e.formatProductPrice(e.preview.next.product.handle))+" + tax ",1)):(Object(a["j"])(),Object(a["d"])("p",p,Object(a["r"])(e.formatPrice(e.preview.next.payment.product))+" + tax ",1))]),u])])));var O=c("c1df"),m=c.n(O),f={name:"PurchaseNextPaymentComponent",props:{preview:{type:Object,required:!1,default:null},products:{type:Object,required:!1,default:null}},setup(){const e=Object(a["m"])({}),t=e=>{const t=(e/100).toFixed(2),c=t.split(".");return"00"===c[1]?"$"+c[0]:"$"+t},c=e=>m()(String(e)).format("MMM. D, YYYY"),s=e=>{const t=products.options.find(t=>t.value===e);return t?t.price:"$0"};return{state:e,formatPrice:t,formatDate:c,formatProductPrice:s}},methods:{}};c("f816");f.render=h,f.__scopeId="data-v-6e809c3c";t["a"]=f},"3c35":function(e,t,c){},"43ee":function(e,t,c){},4678:function(e,t,c){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function s(e){var t=o(e);return c(t)}function o(e){if(!c.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}s.keys=function(){return Object.keys(a)},s.resolve=o,e.exports=s,s.id="4678"},"65a0":function(e,t,c){"use strict";c("6e81")},"6e81":function(e,t,c){},7007:function(e,t,c){"use strict";var a=c("7a23");const s=Object(a["u"])("data-v-56e4bda4");Object(a["l"])("data-v-56e4bda4");const o={class:"koc-block koc-purchase-summary-block"},i=Object(a["h"])("header",null,[Object(a["h"])("h2",null,"Product"),Object(a["h"])("h2",null,"Total")],-1),n={class:"koc-product koc-row"},d={class:"koc-item"},r={key:0,class:"koc-price"},l={key:1,class:"koc-price"},b={key:0,class:"koc-savings koc-row"},j={class:"koc-item"},p={class:"koc-price"},u={key:1,class:"koc-adjustment koc-row"},h=Object(a["h"])("p",{class:"koc-item"}," Prorated Adjustment ",-1),O={class:"koc-price"},m={key:2,class:"koc-credit koc-row"},f=Object(a["h"])("p",{class:"koc-item"}," Existing Account Credit ",-1),g={class:"koc-price"},k={key:3,class:"koc-taxes koc-row"},A=Object(a["h"])("p",{class:"koc-item"}," Tax ",-1),v={class:"koc-price"},w={class:"koc-total koc-row"},y=Object(a["h"])("p",{class:"koc-item"}," Total Due Today ",-1),C={key:0,class:"koc-price"},P={key:1,class:"koc-price"};Object(a["k"])();const E=s((e,t,c,s,E,x)=>(Object(a["j"])(),Object(a["d"])("div",o,[i,Object(a["h"])("div",n,[Object(a["h"])("p",d,Object(a["r"])(e.formatProduct(e.preview.next.product.handle)),1),0===e.preview.next.payment.product?(Object(a["j"])(),Object(a["d"])("p",r,Object(a["r"])(e.formatProductPrice(e.preview.next.product.handle)),1)):(Object(a["j"])(),Object(a["d"])("p",l,Object(a["r"])(e.formatPrice(e.preview.next.payment.product)),1))]),0!==e.preview.next.payment.savings?(Object(a["j"])(),Object(a["d"])("div",b,[Object(a["h"])("p",j," Applied Savings For Coupon Code ("+Object(a["r"])(e.preview.next.coupon.code)+") ",1),Object(a["h"])("p",p,Object(a["r"])(e.formatPrice(e.preview.next.payment.savings)),1)])):Object(a["e"])("",!0),0!==e.preview.next.payment.adjustment?(Object(a["j"])(),Object(a["d"])("div",u,[h,Object(a["h"])("p",O,Object(a["r"])(e.formatPrice(e.preview.next.payment.adjustment)),1)])):Object(a["e"])("",!0),0!==e.preview.next.payment.credit?(Object(a["j"])(),Object(a["d"])("div",m,[f,Object(a["h"])("p",g,Object(a["r"])(e.formatPrice(e.preview.next.payment.credit)),1)])):Object(a["e"])("",!0),0!==e.preview.next.payment.taxes?(Object(a["j"])(),Object(a["d"])("div",k,[A,Object(a["h"])("p",v,Object(a["r"])(e.formatPrice(e.preview.next.payment.taxes)),1)])):Object(a["e"])("",!0),Object(a["h"])("div",w,[y,"equivalent"!==e.preview.intent&&"change-plan"!==e.preview.intent&&"renew"!==e.preview.intent?(Object(a["j"])(),Object(a["d"])("p",C,Object(a["r"])(e.formatPrice(e.preview.next.payment.total)),1)):(Object(a["j"])(),Object(a["d"])("p",P," $0 "))])])));var x={name:"PurchaseSummaryComponent",props:{preview:{type:Object,required:!1,default:null},products:{type:Object,required:!1,default:null}},setup(){const e=props.products,t=Object(a["m"])({}),c=e=>{const t=(e/100).toFixed(2),c=t.split(".");return"00"===c[1]?"$"+c[0]:"$"+t},s=t=>{const c=e.options.find(e=>e.product.handle===t);return c?`KelbyOne ${c.title} ${c.description||""}`:"Product"},o=t=>{const c=e.options.find(e=>e.value===t);return c?c.price:"$0"};return{state:t,formatPrice:c,formatProduct:s,formatProductPrice:o}},methods:{}};c("875c");x.render=E,x.__scopeId="data-v-56e4bda4";t["a"]=x},"822d":function(e,t,c){"use strict";c("042b")},"875c":function(e,t,c){"use strict";c("e5ea")},"99dd":function(e,t,c){"use strict";c.r(t);var a=c("7a23"),s=c("1336"),o=c.n(s);const i=Object(a["u"])("data-v-5aebec6b");Object(a["l"])("data-v-5aebec6b");const n={class:"koc-view koc-purchase-gift-view","data-observe-resize":""},d={class:"koc-accordion-wrapper-component"},r={class:"koc-accordion-panel-component"},l=Object(a["g"])(" Loading Product Details... "),b=Object(a["g"])(" Plan Selection "),j={class:"koc-header-end"},p={key:0,class:"koc-accordion-panel-component"},u=Object(a["g"])(" Loading User Details... "),h=Object(a["g"])(" Login | Sign Up "),O={class:"koc-header-end"},m={key:1,class:"koc-accordion-panel-component"},f={class:"koc-header-end"},g={class:"koc-accordion-panel-component"},k={class:"koc-header-end"},A={class:"koc-summary koc-full"},v={class:"koc-footer"},w={class:"koc-accept-submit koc-full"},y={class:"koc-half"},C={for:"terms",class:"koc-option koc-terms"},P={class:"koc-check"},E=Object(a["h"])("div",{class:"koc-box"},null,-1),x=Object(a["g"])(" I have read and accept the "),I=Object(a["h"])("a",{href:"https://kelbyone.com/online-course-terms-of-use",target:"_blank"},"terms & conditions",-1),B={class:"koc-half"},R=Object(a["h"])("div",{class:"koc-image float-right"},[Object(a["h"])("img",{src:o.a})],-1),Q={class:"koc-submit float-right"},M={class:"koc-full"},N={key:0,class:"koc-warning koc-row float-right"},S={key:2,class:"koc-notification koc-full"};Object(a["k"])();const U=i((e,t,c,s,o,i)=>{const U=Object(a["q"])("purchase-product-select-component"),D=Object(a["q"])("purchase-recipient-component"),z=Object(a["q"])("auth-login-register-component"),L=Object(a["q"])("payment-billing-details-component"),G=Object(a["q"])("purchase-summary-component");return Object(a["j"])(),Object(a["d"])("div",n,[Object(a["h"])("div",d,[Object(a["h"])("main",null,[Object(a["h"])("div",r,[Object(a["h"])("header",{class:{expanded:1===e.state.expanded,completed:e.isCompleted(1)}},[Object(a["h"])("section",{class:"koc-header-start",onClick:t[1]||(t[1]=t=>e.toggleExpanded(1))}," 1 "),Object(a["h"])("section",{class:"koc-header-main",onClick:t[2]||(t[2]=t=>e.toggleExpanded(1))},[e.state.isLoadingProducts?(Object(a["j"])(),Object(a["d"])(a["a"],{key:0},[l],64)):(Object(a["j"])(),Object(a["d"])(a["a"],{key:1},[b],64))]),Object(a["h"])("section",j,[Object(a["h"])("div",{class:"koc-toggle",onClick:t[3]||(t[3]=t=>e.toggleExpanded(1))})])],2),Object(a["h"])("main",{class:{expanded:1===e.state.expanded}},[Object(a["h"])(U,{options:e.products.options,selected:e.state.selected,onProductChange:e.updateProduct},null,8,["options","selected","onProductChange"]),Object(a["h"])(D,{onUpdateRecipient:e.updateRecipient},null,8,["onUpdateRecipient"])],2)]),e.state.user?(Object(a["j"])(),Object(a["d"])("div",m,[Object(a["h"])("header",{class:{expanded:2===e.state.expanded,completed:e.isCompleted(2)}},[Object(a["h"])("section",{class:"koc-header-start",onClick:t[7]||(t[7]=t=>e.toggleExpanded(2))}," 2 "),Object(a["h"])("section",{class:"koc-header-main",onClick:t[8]||(t[8]=t=>e.toggleExpanded(2))}," Billing Details "),Object(a["h"])("section",f,[Object(a["h"])("div",{class:"koc-toggle",onClick:t[9]||(t[9]=t=>e.toggleExpanded(2))})])],2),Object(a["h"])("main",{class:{expanded:2===e.state.expanded}},[Object(a["h"])(L,{profiles:e.state.profiles,"default-profile":e.state.defaultProfile,"selected-profile":e.state.selectedProfile,onActivate:e.updatePayment,onRemove:e.removePayment,onCreate:e.createPayment},null,8,["profiles","default-profile","selected-profile","onActivate","onRemove","onCreate"])],2)])):(Object(a["j"])(),Object(a["d"])("div",p,[Object(a["h"])("header",{class:{expanded:2===e.state.expanded,completed:e.isCompleted(2)}},[Object(a["h"])("section",{class:"koc-header-start",onClick:t[4]||(t[4]=t=>e.toggleExpanded(2))}," 2 "),Object(a["h"])("section",{class:"koc-header-main",onClick:t[5]||(t[5]=t=>e.toggleExpanded(2))},[e.state.isLoadingUser?(Object(a["j"])(),Object(a["d"])(a["a"],{key:0},[u],64)):(Object(a["j"])(),Object(a["d"])(a["a"],{key:1},[h],64))]),Object(a["h"])("section",O,[Object(a["h"])("div",{class:"koc-toggle",onClick:t[6]||(t[6]=t=>e.toggleExpanded(2))})])],2),Object(a["h"])("main",{class:{expanded:2===e.state.expanded}},[Object(a["h"])(z,{onRegister:e.register,onLogin:e.login},null,8,["onRegister","onLogin"])],2)])),Object(a["h"])("div",g,[Object(a["h"])("header",{class:{expanded:3===e.state.expanded,completed:e.isCompleted(3)}},[Object(a["h"])("section",{class:"koc-header-start",onClick:t[10]||(t[10]=t=>e.toggleExpanded(3))}," 3 "),Object(a["h"])("section",{class:"koc-header-main",onClick:t[11]||(t[11]=t=>e.toggleExpanded(3))}," Summary "),Object(a["h"])("section",k,[Object(a["h"])("div",{class:"koc-toggle",onClick:t[12]||(t[12]=t=>e.toggleExpanded(3))})])],2),Object(a["h"])("main",{class:{expanded:3===e.state.expanded}},[Object(a["h"])("div",A,[e.state.preview?(Object(a["j"])(),Object(a["d"])(G,{key:0,preview:e.state.preview,options:e.products.options},null,8,["preview","options"])):Object(a["e"])("",!0)])],2),Object(a["h"])("footer",{class:{expanded:3===e.state.expanded}},[Object(a["h"])("section",v,[Object(a["h"])("div",w,[Object(a["h"])("div",y,[Object(a["h"])("label",C,[Object(a["h"])("div",P,[Object(a["t"])(Object(a["h"])("input",{id:"terms","onUpdate:modelValue":t[13]||(t[13]=t=>e.state.terms=t),type:"checkbox",name:"terms"},null,512),[[a["s"],e.state.terms]]),E]),x,I])]),Object(a["h"])("div",B,[R,Object(a["h"])("div",Q,[Object(a["h"])("button",{class:"koc-button koc-ripple float-right",disabled:!e.state.canSubmit,onClick:t[14]||(t[14]=(...t)=>e.purchase&&e.purchase(...t))}," CONFIRM PAYMENT ",8,["disabled"])])])]),Object(a["h"])("div",M,[e.missingFields()?(Object(a["j"])(),Object(a["d"])("p",N,Object(a["r"])(e.missingFields()),1)):Object(a["e"])("",!0)])])],2)]),e.state.showNotification?(Object(a["j"])(),Object(a["d"])("div",S,[Object(a["h"])("h3",null,Object(a["r"])(e.state.notification),1),Object(a["h"])("div",{class:"koc-close",onClick:t[15]||(t[15]=(...t)=>e.clearNotification&&e.clearNotification(...t))})])):Object(a["e"])("",!0)])])])});var D=c("c1d8"),z=c("a06e"),L=c("48f2"),G=c("7007"),T=c("3499");const Y=Object(a["u"])("data-v-e1dc58a4");Object(a["l"])("data-v-e1dc58a4");const H={class:"koc-block koc-purchase-recipient-block"},J={class:"koc-full"},Z={class:"koc-input"},F={class:"koc-submit"},q=Object(a["h"])("div",{class:"koc-full"},[Object(a["h"])("p",null," An email will be sent to this email address immediately after purchase with steps on how to redeem the gift membership. ")],-1);Object(a["k"])();const K=Y((e,t,c,s,o,i)=>{const n=Object(a["q"])("form-input-component");return Object(a["j"])(),Object(a["d"])("div",H,[Object(a["h"])("div",J,[Object(a["h"])("div",Z,[Object(a["h"])(n,{name:"recipient",type:"text",label:"Gift Recipient's Email",value:e.recipient,onUpdate:e.state.update},null,8,["value","onUpdate"])]),Object(a["h"])("div",F,[Object(a["h"])("button",{class:"koc-button koc-ripple",disabled:!e.state.recipient,onClick:t[1]||(t[1]=(...t)=>e.updateRecipient&&e.updateRecipient(...t))}," Save ",8,["disabled"])])]),q])});var V=c("edf4"),W={name:"PurchaseRecipientComponent",components:{FormInputComponent:V["a"]},props:{coupon:{type:String,required:!1}},setup(){const e=Object(a["m"])({recipient:Object(a["o"])(null),update:async t=>{const{key:c,value:a}=t;e[c]=a}});return{state:e}},methods:{updateRecipient:async function(){const{recipient:e}=this.state;this.$emit("updateRecipient",e)}}};c("822d");W.render=K,W.__scopeId="data-v-e1dc58a4";var X=W,$={name:"PurchaseGiftView",props:{config:{type:Object,required:!1,default:null},user:{type:Object,required:!1,default:null},products:{type:Object,required:!1,default:null}},components:{AuthLoginRegisterComponent:D["a"],PurchaseProductSelectComponent:z["a"],PaymentBillingDetailsComponent:L["a"],PurchaseSummaryComponent:G["a"],PurchaseNextPaymentComponent:T["a"],PurchaseRecipientComponent:X},setup(){let e=Object(a["i"])("config");e={...e,...props.config};const t=Object(a["i"])("authProvider"),c=Object(a["i"])("customerProvider"),s=Object(a["i"])("subscriptionProvider"),o=Object(a["m"])({expanded:Object(a["o"])(1),showNotification:Object(a["o"])(!1),notification:Object(a["o"])(null),terms:Object(a["o"])(!1),user:Object(a["b"])(()=>t().getUser),isLoadingUser:Object(a["b"])(()=>t().isLoading),selected:Object(a["b"])(()=>s().getProduct),recipient:Object(a["b"])(()=>s().getRecipient),payment:Object(a["b"])(()=>s().getProfile),preview:Object(a["b"])(()=>s().getPreview),hasProfiles:Object(a["b"])(()=>c().hasProfiles),profiles:Object(a["b"])(()=>c().getProfiles),defaultProfile:Object(a["b"])(()=>c().getDefaultProfile),selectedProfile:Object(a["b"])(()=>s().getProfile),canSubmit:Object(a["b"])(()=>o.selected&&o.recipient&&o.payment&&o.terms)}),i=e=>{const t=[];return o.selected&&o.recipient&&t.push(1),o.payment&&t.push(2),o.terms&&t.push(3),t.includes(e)},n=()=>o.selected?o.recipient?o.user?o.payment?!o.terms&&"Please read and accept the terms & conditions!":"Please select the payment method you would like to use!":"Please login or signup to continue!":"Please provide the gift recipient's email address!":"Please select the plan you would like to purchase!",d=async e=>{"error"===e.status?(o.showNotification=!0,o.notification=e.data.message||e.data.data.message||e.data.data):(o.showNotification=!1,o.notification=null)},r=async(t,c=!0)=>{o.showNotification=!0,o.notification="Updating Selection...";const a=await s().updateProduct(t,props.products.options,e);await d(a),"success"===a.status&&c&&(o.expanded=2)};props.products.selected&&r(props.products.selected,!1);const l=async(t,a)=>{o.showNotification=!0,o.notification="Loading Customer...",await c().loadCustomer(t,a,e),o.showNotification=!0,o.notification="Updating Customer...";let i=await s().updateCustomer(t,a,e);if(c().hasCustomerMembership){o.showNotification=!0,o.notification="Loading Membership...";const t=await c().getCustomerMembership;i=await s().updateMembership(t,e)}await d(i)},b=async c=>{o.showNotification=!0,o.notification="Loading User...";const{id:a,token:s}=c;let i=await t().loadUser(a,s,e);if(await d(i),"success"===i.status){const{data:e}=i.data;i=await l(e.customer.id,e.token)}};props.user?b(props.user):o.isExpanded=!0;const j=async c=>{o.showNotification=!0,o.notification="Validating Credentials...";const{username:a,password:s}=c,i=await t().login(a,s,e);if(await d(i),"success"===i.status){const{data:e}=i.data;await l(e.customer.id,e.token)}},p=async c=>{o.showNotification=!0,o.notification="Creating Account...";const{firstname:a,lastname:s,email:i,username:n,password:r,confirm:b}=c,j=await t().register(a,s,i,n,r,b,e);if(await d(j),"success"===j.status){const{data:e}=j.data;j=await l(e.customer.id,e.token)}},u=async t=>{o.showNotification=!0,o.notification="Creating Payment Method...";const a=await c().createPayment(t,o.user.token,e);await d(a)},h=async t=>{o.showNotification=!0,o.notification="Updating Payment Method...";const c=await s().updateProfile(t.id,e);await d(c),k(3)},O=async t=>{o.showNotification=!0,o.notification="Updating Gift Recipient's Email...";const c=await s().updateRecipient(t,e);await d(c),k(2)},m=async t=>{o.showNotification=!0,o.notification="Removing Payment Method...";const a=await c().removePayment(t.id,o.user.token,e);await d(a)},f=async()=>{o.showNotification=!0,o.notification="Purchasing...";const t=await s().purchase(e);await d(t)},g=async()=>o.showNotification=!1,k=async e=>e===o.expanded?o.expanded=0:o.expanded=e;return{login:j,register:p,updateProduct:r,createPayment:u,updatePayment:h,removePayment:m,updateRecipient:O,purchase:f,clearNotification:g,toggleExpanded:k,isCompleted:i,missingFields:n,state:o}}};c("65a0");$.render=U,$.__scopeId="data-v-5aebec6b";t["default"]=$},a06e:function(e,t,c){"use strict";var a=c("7a23");const s=Object(a["u"])("data-v-5f708f18");Object(a["l"])("data-v-5f708f18");const o={class:"koc-block koc-purchase-product-select-block"},i={class:"koc-full"},n={key:0,class:"koc-tabs"},d={class:"koc-button active"},r={class:"koc-options"},l={class:"koc-check"},b=Object(a["h"])("div",{class:"koc-box"},null,-1),j={key:1},p=Object(a["g"])(" | "),u={key:0};Object(a["k"])();const h=s((e,t,c,s,h,O)=>(Object(a["j"])(),Object(a["d"])("div",o,[Object(a["h"])("div",i,[e.title?(Object(a["j"])(),Object(a["d"])("div",n,[Object(a["h"])("span",d,Object(a["r"])(e.title),1)])):Object(a["e"])("",!0),Object(a["h"])("div",r,[(Object(a["j"])(!0),Object(a["d"])(a["a"],null,Object(a["p"])(e.options,t=>(Object(a["j"])(),Object(a["d"])("label",{key:t.product.handle,class:["koc-option koc-ripple",{active:t.product.handle===e.selected}]},[Object(a["h"])("div",l,[Object(a["h"])("input",{id:t.product.handle,checked:t.product.handle===e.selected,type:"radio",name:"option",value:t.product.handle,onChange:c=>e.change(t.product.handle)},null,40,["id","checked","value","onChange"]),b]),Object(a["h"])("h2",null,[Object(a["h"])("b",null,Object(a["r"])(t.title),1),Object(a["g"])(" "+Object(a["r"])(t.description)+" ",1),t.cta?Object(a["e"])("",!0):(Object(a["j"])(),Object(a["d"])(a["a"],{key:0},[Object(a["g"])(" | "+Object(a["r"])(e.formatPrice(t.product.price)),1)],64))]),Object(a["h"])("h4",null,[t.duration?(Object(a["j"])(),Object(a["d"])(a["a"],{key:0},[Object(a["g"])(Object(a["r"])(e.formatPrice(t.product.price))+"/"+Object(a["r"])(t.duration),1)],64)):Object(a["e"])("",!0),t.cta?(Object(a["j"])(),Object(a["d"])("span",j,[p,Object(a["h"])("b",null,Object(a["r"])(t.cta),1)])):Object(a["e"])("",!0)]),t.recurring?(Object(a["j"])(),Object(a["d"])("p",u,[Object(a["h"])("i",null,Object(a["r"])(t.recurring),1)])):Object(a["e"])("",!0)],2))),128))])])])));var O={name:"PurchaseProductSelectComponent",props:{options:{type:Array,required:!0},selected:{type:String,required:!1},title:{type:String,required:!1}},setup(){const e=Object(a["m"])({}),t=e=>{const t=(e/100).toFixed(2),c=t.split(".");return"00"===c[1]?"$"+c[0]:"$"+t};return{state:e,formatPrice:t}},methods:{change:async function(e){this.$emit("product-change",e)}}};c("e3e0");O.render=h,O.__scopeId="data-v-5f708f18";t["a"]=O},e3e0:function(e,t,c){"use strict";c("43ee")},e5ea:function(e,t,c){},f816:function(e,t,c){"use strict";c("3c35")}}]); | ||
(("undefined"!==typeof self?self:this)["webpackJsonpSSCObject"]=("undefined"!==typeof self?self:this)["webpackJsonpSSCObject"]||[]).push([[10],{"042b":function(e,t,c){},1336:function(e,t){e.exports="data:image/gif;base64,R0lGODlhZAA6AOYAAMuqWfHx8vT19XZzdP/imry+wKyrq9HS1OXm56yusaeprKiPU/n6+tPU1f7EJtTW18LExv/qtunp6kpISf/x0v/XeLq5uSMgIbi6vNzd3v/KOtTV187P0GNkZ5KUl87Gs7K0tv/sxeHi4+Di4+7u78m6mdXX2La4u//dkVVWWP/lq9jZ2//GHcjJy3x+gP/57e7v79fY2Tc1N9rc3f/MS//Zaf7QXP/ahf/Sa8rLzZ+hpGhlZj87PGNcTf/0356dnYiKjDEtLv/KLFpYWFZRR8rMzn1xVMbIyv/BDf/BDsfIypOVmObn6Kepq8jHx5GPj1pXWLu9v+Pk5d7f4MfJy//ghuDh49bV1ePj4//ww/v8/P/34f/78ISBgoeJjP/opP/RSpGPkOzt7u3u7ru9wLy9wHBxdL2/wff398zOz/f4+MfJytbCkePUtK+kiuvs7aCipNXNveLEgebOmt/g4W1ucfTx6UdDPtrb3eDg4dDS1JOBVfDCViMfIP/CDv///yH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w8BGAAUoBAGkAehC3+Q8R8MgPIuGMACI9+Bv1tugADsANdPmMAElpzznTNZv9cTYoMRAeAg/Im+SE+60pfO9KZ7NxAAOw=="},3499:function(e,t,c){"use strict";var a=c("7a23");const s=Object(a["u"])("data-v-6e809c3c");Object(a["l"])("data-v-6e809c3c");const o={class:"koc-block koc-purchase-next-payment-block"},i={class:"koc-card"},n=Object(a["h"])("h2",null,"Next Auto Payment",-1),d={class:"koc-details"},r={key:0,class:"koc-item"},l={key:1,class:"koc-item"},b={key:2,class:"koc-item"},j={key:3,class:"koc-price"},p={key:4,class:"koc-price"},u=Object(a["h"])("p",{class:"koc-disclaimer"}," This will be automatically charged to your credit card unless you cancel before the next auto-payment date. ",-1);Object(a["k"])();const h=s((e,t,c,s,h,O)=>(Object(a["j"])(),Object(a["d"])("div",o,[Object(a["h"])("div",i,[n,Object(a["h"])("div",d,["create"===e.preview.intent?(Object(a["j"])(),Object(a["d"])("p",r,Object(a["r"])(e.formatDate(e.preview.next.dates.end)),1)):"equivalent"!==e.preview.intent?(Object(a["j"])(),Object(a["d"])("p",l,Object(a["r"])(e.formatDate(e.preview.next.dates.start)),1)):(Object(a["j"])(),Object(a["d"])("p",b,Object(a["r"])(e.formatDate(e.preview.next.dates.start)),1)),0===e.preview.next.payment.product?(Object(a["j"])(),Object(a["d"])("p",j,Object(a["r"])(e.formatProductPrice(e.preview.next.product.handle))+" + tax ",1)):(Object(a["j"])(),Object(a["d"])("p",p,Object(a["r"])(e.formatPrice(e.preview.next.payment.product))+" + tax ",1))]),u])])));var O=c("c1df"),m=c.n(O),f={name:"PurchaseNextPaymentComponent",props:{preview:{type:Object,required:!1,default:null},products:{type:Object,required:!1,default:null}},setup(){const e=Object(a["m"])({}),t=e=>{const t=(e/100).toFixed(2),c=t.split(".");return"00"===c[1]?"$"+c[0]:"$"+t},c=e=>m()(String(e)).format("MMM. D, YYYY"),s=e=>{const t=products.options.find(t=>t.value===e);return t?t.price:"$0"};return{state:e,formatPrice:t,formatDate:c,formatProductPrice:s}},methods:{}};c("f816");f.render=h,f.__scopeId="data-v-6e809c3c";t["a"]=f},"3c35":function(e,t,c){},"43ee":function(e,t,c){},4678:function(e,t,c){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function s(e){var t=o(e);return c(t)}function o(e){if(!c.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}s.keys=function(){return Object.keys(a)},s.resolve=o,e.exports=s,s.id="4678"},"65a0":function(e,t,c){"use strict";c("6e81")},"6e81":function(e,t,c){},7007:function(e,t,c){"use strict";var a=c("7a23");const s=Object(a["u"])("data-v-56e4bda4");Object(a["l"])("data-v-56e4bda4");const o={class:"koc-block koc-purchase-summary-block"},i=Object(a["h"])("header",null,[Object(a["h"])("h2",null,"Product"),Object(a["h"])("h2",null,"Total")],-1),n={class:"koc-product koc-row"},d={class:"koc-item"},r={key:0,class:"koc-price"},l={key:1,class:"koc-price"},b={key:0,class:"koc-savings koc-row"},j={class:"koc-item"},p={class:"koc-price"},u={key:1,class:"koc-adjustment koc-row"},h=Object(a["h"])("p",{class:"koc-item"}," Prorated Adjustment ",-1),O={class:"koc-price"},m={key:2,class:"koc-credit koc-row"},f=Object(a["h"])("p",{class:"koc-item"}," Existing Account Credit ",-1),g={class:"koc-price"},k={key:3,class:"koc-taxes koc-row"},A=Object(a["h"])("p",{class:"koc-item"}," Tax ",-1),v={class:"koc-price"},w={class:"koc-total koc-row"},y=Object(a["h"])("p",{class:"koc-item"}," Total Due Today ",-1),C={key:0,class:"koc-price"},P={key:1,class:"koc-price"};Object(a["k"])();const E=s((e,t,c,s,E,x)=>(Object(a["j"])(),Object(a["d"])("div",o,[i,Object(a["h"])("div",n,[Object(a["h"])("p",d,Object(a["r"])(e.formatProduct(e.preview.next.product.handle)),1),0===e.preview.next.payment.product?(Object(a["j"])(),Object(a["d"])("p",r,Object(a["r"])(e.formatProductPrice(e.preview.next.product.handle)),1)):(Object(a["j"])(),Object(a["d"])("p",l,Object(a["r"])(e.formatPrice(e.preview.next.payment.product)),1))]),0!==e.preview.next.payment.savings?(Object(a["j"])(),Object(a["d"])("div",b,[Object(a["h"])("p",j," Applied Savings For Coupon Code ("+Object(a["r"])(e.preview.next.coupon.code)+") ",1),Object(a["h"])("p",p,Object(a["r"])(e.formatPrice(e.preview.next.payment.savings)),1)])):Object(a["e"])("",!0),0!==e.preview.next.payment.adjustment?(Object(a["j"])(),Object(a["d"])("div",u,[h,Object(a["h"])("p",O,Object(a["r"])(e.formatPrice(e.preview.next.payment.adjustment)),1)])):Object(a["e"])("",!0),0!==e.preview.next.payment.credit?(Object(a["j"])(),Object(a["d"])("div",m,[f,Object(a["h"])("p",g,Object(a["r"])(e.formatPrice(e.preview.next.payment.credit)),1)])):Object(a["e"])("",!0),0!==e.preview.next.payment.taxes?(Object(a["j"])(),Object(a["d"])("div",k,[A,Object(a["h"])("p",v,Object(a["r"])(e.formatPrice(e.preview.next.payment.taxes)),1)])):Object(a["e"])("",!0),Object(a["h"])("div",w,[y,"equivalent"!==e.preview.intent&&"change-plan"!==e.preview.intent&&"renew"!==e.preview.intent?(Object(a["j"])(),Object(a["d"])("p",C,Object(a["r"])(e.formatPrice(e.preview.next.payment.total)),1)):(Object(a["j"])(),Object(a["d"])("p",P," $0 "))])])));var x={name:"PurchaseSummaryComponent",props:{preview:{type:Object,required:!1,default:null},products:{type:Object,required:!1,default:null}},setup(){const e=props.products,t=Object(a["m"])({}),c=e=>{const t=(e/100).toFixed(2),c=t.split(".");return"00"===c[1]?"$"+c[0]:"$"+t},s=t=>{const c=e.options.find(e=>e.product.handle===t);return c?`KelbyOne ${c.title} ${c.description||""}`:"Product"},o=t=>{const c=e.options.find(e=>e.value===t);return c?c.price:"$0"};return{state:t,formatPrice:c,formatProduct:s,formatProductPrice:o}},methods:{}};c("875c");x.render=E,x.__scopeId="data-v-56e4bda4";t["a"]=x},"822d":function(e,t,c){"use strict";c("042b")},"875c":function(e,t,c){"use strict";c("e5ea")},"99dd":function(e,t,c){"use strict";c.r(t);var a=c("7a23"),s=c("1336"),o=c.n(s);const i=Object(a["u"])("data-v-5aebec6b");Object(a["l"])("data-v-5aebec6b");const n={class:"koc-view koc-purchase-gift-view","data-observe-resize":""},d={class:"koc-accordion-wrapper-component"},r={class:"koc-accordion-panel-component"},l=Object(a["g"])(" Loading Product Details... "),b=Object(a["g"])(" Plan Selection "),j={class:"koc-header-end"},p={key:0,class:"koc-accordion-panel-component"},u=Object(a["g"])(" Loading User Details... "),h=Object(a["g"])(" Login | Sign Up "),O={class:"koc-header-end"},m={key:1,class:"koc-accordion-panel-component"},f={class:"koc-header-end"},g={class:"koc-accordion-panel-component"},k={class:"koc-header-end"},A={class:"koc-summary koc-full"},v={class:"koc-footer"},w={class:"koc-accept-submit koc-full"},y={class:"koc-half"},C={for:"terms",class:"koc-option koc-terms"},P={class:"koc-check"},E=Object(a["h"])("div",{class:"koc-box"},null,-1),x=Object(a["g"])(" I have read and accept the "),I=Object(a["h"])("a",{href:"https://kelbyone.com/online-course-terms-of-use",target:"_blank"},"terms & conditions",-1),B={class:"koc-half"},R=Object(a["h"])("div",{class:"koc-image float-right"},[Object(a["h"])("img",{src:o.a})],-1),Q={class:"koc-submit float-right"},M={class:"koc-full"},N={key:0,class:"koc-warning koc-row float-right"},S={key:2,class:"koc-notification koc-full"};Object(a["k"])();const U=i((e,t,c,s,o,i)=>{const U=Object(a["q"])("purchase-product-select-component"),D=Object(a["q"])("purchase-recipient-component"),z=Object(a["q"])("auth-login-register-component"),L=Object(a["q"])("payment-billing-details-component"),G=Object(a["q"])("purchase-summary-component");return Object(a["j"])(),Object(a["d"])("div",n,[Object(a["h"])("div",d,[Object(a["h"])("main",null,[Object(a["h"])("div",r,[Object(a["h"])("header",{class:{expanded:1===e.state.expanded,completed:e.isCompleted(1)}},[Object(a["h"])("section",{class:"koc-header-start",onClick:t[1]||(t[1]=t=>e.toggleExpanded(1))}," 1 "),Object(a["h"])("section",{class:"koc-header-main",onClick:t[2]||(t[2]=t=>e.toggleExpanded(1))},[e.state.isLoadingProducts?(Object(a["j"])(),Object(a["d"])(a["a"],{key:0},[l],64)):(Object(a["j"])(),Object(a["d"])(a["a"],{key:1},[b],64))]),Object(a["h"])("section",j,[Object(a["h"])("div",{class:"koc-toggle",onClick:t[3]||(t[3]=t=>e.toggleExpanded(1))})])],2),Object(a["h"])("main",{class:{expanded:1===e.state.expanded}},[Object(a["h"])(U,{options:e.products.options,selected:e.state.selected,onProductChange:e.updateProduct},null,8,["options","selected","onProductChange"]),Object(a["h"])(D,{onUpdateRecipient:e.updateRecipient},null,8,["onUpdateRecipient"])],2)]),e.state.user?(Object(a["j"])(),Object(a["d"])("div",m,[Object(a["h"])("header",{class:{expanded:2===e.state.expanded,completed:e.isCompleted(2)}},[Object(a["h"])("section",{class:"koc-header-start",onClick:t[7]||(t[7]=t=>e.toggleExpanded(2))}," 2 "),Object(a["h"])("section",{class:"koc-header-main",onClick:t[8]||(t[8]=t=>e.toggleExpanded(2))}," Billing Details "),Object(a["h"])("section",f,[Object(a["h"])("div",{class:"koc-toggle",onClick:t[9]||(t[9]=t=>e.toggleExpanded(2))})])],2),Object(a["h"])("main",{class:{expanded:2===e.state.expanded}},[Object(a["h"])(L,{profiles:e.state.profiles,"default-profile":e.state.defaultProfile,"selected-profile":e.state.selectedProfile,onActivate:e.updatePayment,onRemove:e.removePayment,onCreate:e.createPayment},null,8,["profiles","default-profile","selected-profile","onActivate","onRemove","onCreate"])],2)])):(Object(a["j"])(),Object(a["d"])("div",p,[Object(a["h"])("header",{class:{expanded:2===e.state.expanded,completed:e.isCompleted(2)}},[Object(a["h"])("section",{class:"koc-header-start",onClick:t[4]||(t[4]=t=>e.toggleExpanded(2))}," 2 "),Object(a["h"])("section",{class:"koc-header-main",onClick:t[5]||(t[5]=t=>e.toggleExpanded(2))},[e.state.isLoadingUser?(Object(a["j"])(),Object(a["d"])(a["a"],{key:0},[u],64)):(Object(a["j"])(),Object(a["d"])(a["a"],{key:1},[h],64))]),Object(a["h"])("section",O,[Object(a["h"])("div",{class:"koc-toggle",onClick:t[6]||(t[6]=t=>e.toggleExpanded(2))})])],2),Object(a["h"])("main",{class:{expanded:2===e.state.expanded}},[Object(a["h"])(z,{onRegister:e.register,onLogin:e.login},null,8,["onRegister","onLogin"])],2)])),Object(a["h"])("div",g,[Object(a["h"])("header",{class:{expanded:3===e.state.expanded,completed:e.isCompleted(3)}},[Object(a["h"])("section",{class:"koc-header-start",onClick:t[10]||(t[10]=t=>e.toggleExpanded(3))}," 3 "),Object(a["h"])("section",{class:"koc-header-main",onClick:t[11]||(t[11]=t=>e.toggleExpanded(3))}," Summary "),Object(a["h"])("section",k,[Object(a["h"])("div",{class:"koc-toggle",onClick:t[12]||(t[12]=t=>e.toggleExpanded(3))})])],2),Object(a["h"])("main",{class:{expanded:3===e.state.expanded}},[Object(a["h"])("div",A,[e.state.preview?(Object(a["j"])(),Object(a["d"])(G,{key:0,preview:e.state.preview,options:e.products.options},null,8,["preview","options"])):Object(a["e"])("",!0)])],2),Object(a["h"])("footer",{class:{expanded:3===e.state.expanded}},[Object(a["h"])("section",v,[Object(a["h"])("div",w,[Object(a["h"])("div",y,[Object(a["h"])("label",C,[Object(a["h"])("div",P,[Object(a["t"])(Object(a["h"])("input",{id:"terms","onUpdate:modelValue":t[13]||(t[13]=t=>e.state.terms=t),type:"checkbox",name:"terms"},null,512),[[a["s"],e.state.terms]]),E]),x,I])]),Object(a["h"])("div",B,[R,Object(a["h"])("div",Q,[Object(a["h"])("button",{class:"koc-button koc-ripple float-right",disabled:!e.state.canSubmit,onClick:t[14]||(t[14]=(...t)=>e.purchase&&e.purchase(...t))}," CONFIRM PAYMENT ",8,["disabled"])])])]),Object(a["h"])("div",M,[e.missingFields()?(Object(a["j"])(),Object(a["d"])("p",N,Object(a["r"])(e.missingFields()),1)):Object(a["e"])("",!0)])])],2)]),e.state.showNotification?(Object(a["j"])(),Object(a["d"])("div",S,[Object(a["h"])("h3",null,Object(a["r"])(e.state.notification),1),Object(a["h"])("div",{class:"koc-close",onClick:t[15]||(t[15]=(...t)=>e.clearNotification&&e.clearNotification(...t))})])):Object(a["e"])("",!0)])])])});var D=c("c1d8"),z=c("a06e"),L=c("48f2"),G=c("7007"),T=c("3499");const Y=Object(a["u"])("data-v-e1dc58a4");Object(a["l"])("data-v-e1dc58a4");const H={class:"koc-block koc-purchase-recipient-block"},J={class:"koc-full"},Z={class:"koc-input"},F={class:"koc-submit"},q=Object(a["h"])("div",{class:"koc-full"},[Object(a["h"])("p",null," An email will be sent to this email address immediately after purchase with steps on how to redeem the gift membership. ")],-1);Object(a["k"])();const K=Y((e,t,c,s,o,i)=>{const n=Object(a["q"])("form-input-component");return Object(a["j"])(),Object(a["d"])("div",H,[Object(a["h"])("div",J,[Object(a["h"])("div",Z,[Object(a["h"])(n,{name:"recipient",type:"text",label:"Gift Recipient's Email",value:e.recipient,onUpdate:e.state.update},null,8,["value","onUpdate"])]),Object(a["h"])("div",F,[Object(a["h"])("button",{class:"koc-button koc-ripple",disabled:!e.state.recipient,onClick:t[1]||(t[1]=(...t)=>e.updateRecipient&&e.updateRecipient(...t))}," Save ",8,["disabled"])])]),q])});var V=c("edf4"),W={name:"PurchaseRecipientComponent",components:{FormInputComponent:V["a"]},props:{coupon:{type:String,required:!1}},setup(){const e=Object(a["m"])({recipient:Object(a["o"])(null),update:async t=>{const{key:c,value:a}=t;e[c]=a}});return{state:e}},methods:{updateRecipient:async function(){const{recipient:e}=this.state;this.$emit("updateRecipient",e)}}};c("822d");W.render=K,W.__scopeId="data-v-e1dc58a4";var X=W,$={name:"PurchaseGiftView",props:{config:{type:Object,required:!1,default:null},user:{type:Object,required:!1,default:null},products:{type:Object,required:!1,default:null}},components:{AuthLoginRegisterComponent:D["a"],PurchaseProductSelectComponent:z["a"],PaymentBillingDetailsComponent:L["a"],PurchaseSummaryComponent:G["a"],PurchaseNextPaymentComponent:T["a"],PurchaseRecipientComponent:X},setup(){let e=Object(a["i"])("config");e={...e,...props.config};const t=Object(a["i"])("authProvider"),c=Object(a["i"])("customerProvider"),s=Object(a["i"])("subscriptionProvider"),o=Object(a["m"])({expanded:Object(a["o"])(1),showNotification:Object(a["o"])(!1),notification:Object(a["o"])(null),terms:Object(a["o"])(!1),user:Object(a["b"])(()=>t().getUser),isLoadingUser:Object(a["b"])(()=>t().isLoading),selected:Object(a["b"])(()=>s().getProduct),recipient:Object(a["b"])(()=>s().getRecipient),payment:Object(a["b"])(()=>s().getProfile),preview:Object(a["b"])(()=>s().getPreview),hasProfiles:Object(a["b"])(()=>c().hasProfiles),profiles:Object(a["b"])(()=>c().getProfiles),defaultProfile:Object(a["b"])(()=>c().getDefaultProfile),selectedProfile:Object(a["b"])(()=>s().getProfile),canSubmit:Object(a["b"])(()=>o.selected&&o.recipient&&o.payment&&o.terms)}),i=e=>{const t=[];return o.selected&&o.recipient&&t.push(1),o.payment&&t.push(2),o.terms&&t.push(3),t.includes(e)},n=()=>o.selected?o.recipient?o.user?o.payment?!o.terms&&"Please read and accept the terms & conditions!":"Please select the payment method you would like to use!":"Please login or signup to continue!":"Please provide the gift recipient's email address!":"Please select the plan you would like to purchase!",d=async e=>{"error"===e.status?(o.showNotification=!0,o.notification=e.data.message||e.data.data.message||e.data.data):(o.showNotification=!1,o.notification=null)},r=async(t,c=!0)=>{o.showNotification=!0,o.notification="Updating Selection...";const a=await s().updateProduct(t,props.products.options,e);await d(a),"success"===a.status&&c&&(o.expanded=2)};props.products.selected&&r(props.products.selected,!1);const l=async(t,a)=>{o.showNotification=!0,o.notification="Loading Customer...",await c().loadCustomer(t,a,e),o.showNotification=!0,o.notification="Updating Customer...";let i=await s().updateCustomer(t,a,e);if(c().hasCustomerMembership){o.showNotification=!0,o.notification="Loading Membership...";const t=await c().getCustomerMembership;i=await s().updateMembership(t,e)}await d(i)},b=async c=>{o.showNotification=!0,o.notification="Loading User...";const{id:a,token:s}=c;let i=await t().loadUser(a,s,e);if(await d(i),"success"===i.status){const{data:e}=i.data;i=await l(e.customer.id,e.token)}};props.user?b(props.user):o.isExpanded=!0;const j=async c=>{o.showNotification=!0,o.notification="Validating Credentials...";const{username:a,password:s}=c,i=await t().login(a,s,e);if(await d(i),"success"===i.status){const{data:e}=i.data;await l(e.customer.id,e.token)}},p=async c=>{o.showNotification=!0,o.notification="Creating Account...";const{firstname:a,lastname:s,email:i,username:n,password:r,confirm:b}=c,j=await t().register(a,s,i,n,r,b,e);if(await d(j),"success"===j.status){const{data:e}=j.data;j=await l(e.customer.id,e.token)}},u=async t=>{o.showNotification=!0,o.notification="Creating Payment Method...";const a=await c().createPayment(t,o.user.token,e);if(await d(a),"success"===a.status){const{data:e}=a.data;await h(e)}},h=async t=>{o.showNotification=!0,o.notification="Updating Payment Method...";const c=await s().updateProfile(t.id,e);await d(c),k(3)},O=async t=>{o.showNotification=!0,o.notification="Updating Gift Recipient's Email...";const c=await s().updateRecipient(t,e);await d(c),k(2)},m=async t=>{o.showNotification=!0,o.notification="Removing Payment Method...";const a=await c().removePayment(t.id,o.user.token,e);await d(a)},f=async()=>{o.showNotification=!0,o.notification="Purchasing...";const t=await s().purchase(e);await d(t)},g=async()=>o.showNotification=!1,k=async e=>e===o.expanded?o.expanded=0:o.expanded=e;return{login:j,register:p,updateProduct:r,createPayment:u,updatePayment:h,removePayment:m,updateRecipient:O,purchase:f,clearNotification:g,toggleExpanded:k,isCompleted:i,missingFields:n,state:o}}};c("65a0");$.render=U,$.__scopeId="data-v-5aebec6b";t["default"]=$},a06e:function(e,t,c){"use strict";var a=c("7a23");const s=Object(a["u"])("data-v-5f708f18");Object(a["l"])("data-v-5f708f18");const o={class:"koc-block koc-purchase-product-select-block"},i={class:"koc-full"},n={key:0,class:"koc-tabs"},d={class:"koc-button active"},r={class:"koc-options"},l={class:"koc-check"},b=Object(a["h"])("div",{class:"koc-box"},null,-1),j={key:1},p=Object(a["g"])(" | "),u={key:0};Object(a["k"])();const h=s((e,t,c,s,h,O)=>(Object(a["j"])(),Object(a["d"])("div",o,[Object(a["h"])("div",i,[e.title?(Object(a["j"])(),Object(a["d"])("div",n,[Object(a["h"])("span",d,Object(a["r"])(e.title),1)])):Object(a["e"])("",!0),Object(a["h"])("div",r,[(Object(a["j"])(!0),Object(a["d"])(a["a"],null,Object(a["p"])(e.options,t=>(Object(a["j"])(),Object(a["d"])("label",{key:t.product.handle,class:["koc-option koc-ripple",{active:t.product.handle===e.selected}]},[Object(a["h"])("div",l,[Object(a["h"])("input",{id:t.product.handle,checked:t.product.handle===e.selected,type:"radio",name:"option",value:t.product.handle,onChange:c=>e.change(t.product.handle)},null,40,["id","checked","value","onChange"]),b]),Object(a["h"])("h2",null,[Object(a["h"])("b",null,Object(a["r"])(t.title),1),Object(a["g"])(" "+Object(a["r"])(t.description)+" ",1),t.cta?Object(a["e"])("",!0):(Object(a["j"])(),Object(a["d"])(a["a"],{key:0},[Object(a["g"])(" | "+Object(a["r"])(e.formatPrice(t.product.price)),1)],64))]),Object(a["h"])("h4",null,[t.duration?(Object(a["j"])(),Object(a["d"])(a["a"],{key:0},[Object(a["g"])(Object(a["r"])(e.formatPrice(t.product.price))+"/"+Object(a["r"])(t.duration),1)],64)):Object(a["e"])("",!0),t.cta?(Object(a["j"])(),Object(a["d"])("span",j,[p,Object(a["h"])("b",null,Object(a["r"])(t.cta),1)])):Object(a["e"])("",!0)]),t.recurring?(Object(a["j"])(),Object(a["d"])("p",u,[Object(a["h"])("i",null,Object(a["r"])(t.recurring),1)])):Object(a["e"])("",!0)],2))),128))])])])));var O={name:"PurchaseProductSelectComponent",props:{options:{type:Array,required:!0},selected:{type:String,required:!1},title:{type:String,required:!1}},setup(){const e=Object(a["m"])({}),t=e=>{const t=(e/100).toFixed(2),c=t.split(".");return"00"===c[1]?"$"+c[0]:"$"+t};return{state:e,formatPrice:t}},methods:{change:async function(e){this.$emit("product-change",e)}}};c("e3e0");O.render=h,O.__scopeId="data-v-5f708f18";t["a"]=O},e3e0:function(e,t,c){"use strict";c("43ee")},e5ea:function(e,t,c){},f816:function(e,t,c){"use strict";c("3c35")}}]); | ||
//# sourceMappingURL=koc.umd.min.purchase-gift-view.js.map |
{ | ||
"name": "@kelbyone/components", | ||
"version": "0.1.05", | ||
"version": "0.1.06", | ||
"description": "KelbyOne Components", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
@@ -206,2 +206,7 @@ import { reactive, inject, ref, computed } from 'vue'; | ||
await handleResponse(response); | ||
if ('success' === response.status) { | ||
const { data } = response.data; | ||
await updatePayment(data) | ||
} | ||
} | ||
@@ -208,0 +213,0 @@ |
@@ -108,3 +108,2 @@ import { | ||
const { customer } = state | ||
console.log('createPayment', state, customer) | ||
@@ -121,3 +120,4 @@ let url = `${config.api.uri}/${config.api.version}/customers/${state.customer.id}/profiles?token=${token}&now=${Date.now()}`; | ||
} | ||
return await loadCustomer(state.customer.id, token, config); | ||
await loadCustomer(state.customer.id, token, config); | ||
return response; | ||
} | ||
@@ -124,0 +124,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
3343746
7965