1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[183,8609],{25234:function(e){var t;t=function(){"use strict";var e="millisecond",t="second",n="minute",a="hour",s="week",i="month",l="quarter",r="year",c="date",o="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(n)+e},A="en",p={};p[A]=h;var f=function(e){return e instanceof x},g=function e(t,n,a){var s;if(!t)return A;if("string"==typeof t){var i=t.toLowerCase();p[i]&&(s=i),n&&(p[i]=n,s=i);var l=t.split("-");if(!s&&l.length>1)return e(l[0])}else{var r=t.name;p[r]=t,s=r}return!a&&s&&(A=s),s||!a&&A},v=function(e,t){if(f(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new x(n)},y={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+m(Math.floor(n/60),2,"0")+":"+m(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var a=12*(n.year()-t.year())+(n.month()-t.month()),s=t.clone().add(a,i),l=n-s<0,r=t.clone().add(a+(l?-1:1),i);return+(-(a+(n-s)/(l?s-r:r-s))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(o){return({M:i,y:r,w:s,d:"day",D:c,h:a,m:n,s:t,ms:e,Q:l})[o]||String(o||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};y.l=g,y.i=f,y.w=function(e,t){return v(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var x=function(){function h(e){this.$L=g(e.locale,null,!0),this.parse(e)}var m=h.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(y.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(d);if(a){var s=a[2]-1||0,i=(a[7]||"0").substring(0,3);return n?new Date(Date.UTC(a[1],s,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)):new Date(a[1],s,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return y},m.isValid=function(){return this.$d.toString()!==o},m.isSame=function(e,t){var n=v(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return v(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<v(e)},m.$g=function(e,t,n){return y.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,l){var o=this,d=!!y.u(l)||l,u=y.p(e),h=function(e,t){var n=y.w(o.$u?Date.UTC(o.$y,t,e):new Date(o.$y,t,e),o);return d?n:n.endOf("day")},m=function(e,t){return y.w(o.toDate()[e].apply(o.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(t)),o)},A=this.$W,p=this.$M,f=this.$D,g="set"+(this.$u?"UTC":"");switch(u){case r:return d?h(1,0):h(31,11);case i:return d?h(1,p):h(0,p+1);case s:var v=this.$locale().weekStart||0,x=(A<v?A+7:A)-v;return h(d?f-x:f+(6-x),p);case"day":case c:return m(g+"Hours",0);case a:return m(g+"Minutes",1);case n:return m(g+"Seconds",2);case t:return m(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(s,l){var o,d=y.p(s),u="set"+(this.$u?"UTC":""),h=((o={}).day=u+"Date",o[c]=u+"Date",o[i]=u+"Month",o[r]=u+"FullYear",o[a]=u+"Hours",o[n]=u+"Minutes",o[t]=u+"Seconds",o[e]=u+"Milliseconds",o)[d],m="day"===d?this.$D+(l-this.$W):l;if(d===i||d===r){var A=this.clone().set(c,1);A.$d[h](m),A.init(),this.$d=A.set(c,Math.min(this.$D,A.daysInMonth())).$d}else h&&this.$d[h](m);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[y.p(e)]()},m.add=function(e,l){var c,o=this;e=Number(e);
1var d=y.p(l),u=function(t){var n=v(o);return y.w(n.date(n.date()+Math.round(t*e)),o)};if(d===i)return this.set(i,this.$M+e);if(d===r)return this.set(r,this.$y+e);if("day"===d)return u(1);if(d===s)return u(7);var h=((c={})[n]=6e4,c[a]=36e5,c[t]=1e3,c)[d]||1,m=this.$d.getTime()+e*h;return y.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||o;var a=e||"YYYY-MM-DDTHH:mm:ssZ",s=y.z(this),i=this.$H,l=this.$m,r=this.$M,c=n.weekdays,d=n.months,h=function(e,n,s,i){return e&&(e[n]||e(t,a))||s[n].slice(0,i)},m=function(e){return y.s(i%12||12,e,"0")},A=n.meridiem||function(e,t,n){var a=e<12?"AM":"PM";return n?a.toLowerCase():a},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:r+1,MM:y.s(r+1,2,"0"),MMM:h(n.monthsShort,r,d,3),MMMM:h(d,r),D:this.$D,DD:y.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,c,2),ddd:h(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(i),HH:y.s(i,2,"0"),h:m(1),hh:m(2),a:A(i,l,!0),A:A(i,l,!1),m:String(l),mm:y.s(l,2,"0"),s:String(this.$s),ss:y.s(this.$s,2,"0"),SSS:y.s(this.$ms,3,"0"),Z:s};return a.replace(u,function(e,t){return t||p[e]||s.replace(":","")})},m.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},m.diff=function(e,c,o){var d,u=y.p(c),h=v(e),m=(h.utcOffset()-this.utcOffset())*6e4,A=this-h,p=y.m(this,h);return p=((d={})[r]=p/12,d[i]=p,d[l]=p/3,d[s]=(A-m)/6048e5,d.day=(A-m)/864e5,d[a]=A/36e5,d[n]=A/6e4,d[t]=A/1e3,d)[u]||A,o?p:y.a(p)},m.daysInMonth=function(){return this.endOf(i).$D},m.$locale=function(){return p[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),a=g(e,t,!0);return a&&(n.$L=a),n},m.clone=function(){return y.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},h}(),_=x.prototype;return v.prototype=_,[["$ms",e],["$s",t],["$m",n],["$H",a],["$W","day"],["$M",i],["$y",r],["$D",c]].forEach(function(e){_[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),v.extend=function(e,t){return e.$i||(e(t,x,v),e.$i=!0),v},v.locale=g,v.isDayjs=f,v.unix=function(e){return v(1e3*e)},v.en=p[A],v.Ls=p,v.p={},v},e.exports=t()},78176:function(e,t,n){var a;a=function(e){"use strict";var t,n={name:"id",weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),weekStart:1,formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},ordinal:function(e){return e+"."}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(n,null,!0),n},e.exports=a(n(25234))},15670:function(e){var t;t=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},l=function(e){return(e=+e)+(e>68?1900:2e3)},r=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||"Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],o=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,a=i.meridiem;if(a){for(var s=1;s<=24;s+=1)if(e.indexOf(a(s,0,t))>-1){n=s>12;break}}else n=e===(t?"pm":"PM");return n},u={A:[s,function(e){this.afternoon=d(e,!1)}],a:[s,function(e){this.afternoon=d(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[a,r("seconds")],ss:[a,r("seconds")],m:[a,r("minutes")],mm:[a,r("minutes")],H:[a,r("hours")],h:[a,r("hours")],HH:[a,r("hours")],hh:[a,r("hours")],D:[a,r("day")],DD:[n,r("day")],Do:[s,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var a=1;a<=31;a+=1)t(a).replace(/\[|\]/g,"")===e&&(this.day=a)}
1],M:[a,r("month")],MM:[n,r("month")],MMM:[s,function(e){var t=o("months"),n=(o("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[s,function(e){var t=o("months").indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,r("year")],YY:[n,function(e){this.year=l(e)}],YYYY:[/\d{4}/,r("year")],Z:c,ZZ:c};return function(n,a,s){s.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(l=n.parseTwoDigitYear);var r=a.prototype,c=r.parse;r.parse=function(n){var a=n.date,l=n.utc,r=n.args;this.$u=l;var o=r[1];if("string"==typeof o){var d=!0===r[2],h=!0===r[3],m=r[2];h&&(m=r[2]),i=this.$locale(),!d&&m&&(i=s.Ls[m]),this.$d=function(n,a,s){try{if(["x","X"].indexOf(a)>-1)return new Date(("X"===a?1e3:1)*n);var l=(function(n){var a,s;a=n,s=i&&i.formats;for(var l=(n=a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,a){var i=a&&a.toUpperCase();return n||s[a]||e[a]||s[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),r=l.length,c=0;c<r;c+=1){var o=l[c],d=u[o],h=d&&d[0],m=d&&d[1];l[c]=m?{regex:h,parser:m}:o.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,a=0;n<r;n+=1){var s=l[n];if("string"==typeof s)a+=s.length;else{var i=s.regex,c=s.parser,o=e.slice(a),d=i.exec(o)[0];c.call(t,d),e=e.replace(d,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}})(a)(n),r=l.year,c=l.month,o=l.day,d=l.hours,h=l.minutes,m=l.seconds,A=l.milliseconds,p=l.zone,f=new Date,g=o||(r||c?1:f.getDate()),v=r||f.getFullYear(),y=0;r&&!c||(y=c>0?c-1:f.getMonth());var x=d||0,_=h||0,b=m||0,j=A||0;return p?new Date(Date.UTC(v,y,g,x,_,b,j+60*p.offset*1e3)):s?new Date(Date.UTC(v,y,g,x,_,b,j)):new Date(v,y,g,x,_,b,j)}catch(k){return new Date("")}}(a,o,l),this.init(),m&&!0!==m&&(this.$L=this.locale(m).$L),(d||h)&&a!=this.format(o)&&(this.$d=new Date("")),i={}}else if(o instanceof Array)for(var A=o.length,p=1;p<=A;p+=1){r[1]=o[p-1];var f=s.apply(this,r);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}p===A&&(this.$d=new Date(""))}else c.call(this,n)}}},e.exports=t()},94035:function(e,t,n){"use strict";var a=n(849),s=n(18588),i=n(12939),l=n.n(i),r=function(e){var t=e.show,n=e.setShow,i=e.children,r=e.customWidth;return(0,a.jsx)(s.fC,{open:t,onOpenChange:n,children:(0,a.jsx)(s.h_,{children:(0,a.jsx)(s.aV,{className:l().bgFixed,children:(0,a.jsx)(s.VY,{className:l().bgContent,style:{maxWidth:r},children:i})})})})};t.Z=r},58609:function(e,t,n){"use strict";n.r(t);var a=n(849);n(16863);var s=n(54409),i=n.n(s),l=n(17969);t.default=function(e){var t=e.show,n=e.handleClose,s=e.onClick,r=e.closeIcon,c=e.children,o=e.btnTitle,d=e.btnClass,u=e.modalClass;return(0,a.jsxs)(l.Z,{show:t,onHide:n,children:[r&&(0,a.jsx)(l.Z.Header,{className:"border-0 d-flex justify-content-end pb-0",children:(0,a.jsx)("div",{style:{cursor:"pointer"},onClick:n,children:(0,a.jsx)(i(),{src:"/jepa-konseling/close.png",width:24,height:24,alt:"close"})})}),(0,a.jsxs)(l.Z.Body,{className:u,children:[c,(0,a.jsx)("button",{className:d,onClick:s,children:o})]})]})}},71812:function(e,t,n){"use strict";var a=n(849);n(16863);var s=n(65549);t.Z=function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"d-flex mb-3",children:[(0,a.jsx)(s.Z,{style:{width:"80px"},height:80,circle:!0,className:"mr-3"}),(0,a.jsxs)("div",{className:"w-100",children:[(0,a.jsx)(s.Z,{}),(0,a.jsx)(s.Z,{}),(0,a.jsx)(s.Z,{})]})]}),(0,a.jsxs)("div",{className:"w-100",children:[(0,a.jsx)(s.Z,{}),(0,a.jsx)(s.Z,{}),(0,a.jsx)(s.Z,{})]})]})}},55817:function(e,t,n){"use strict";var a=n(849),s=n(15051),i=n.n(s),l=function(e){var t=e.id,n=e.name,s=e.handleChange,l=e.type,r=e.className,c=e.selected,o=e.onClick;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"d-flex ".concat(r||"mb-2"),children:(0,a.jsxs)("label",{htmlFor:t,className:"topic-radio ".concat(i().platform),style:{color:c==t?"#044B77":"#5887a4"},children:[(0,a.jsx)("input",{type:"radio",name:l,value:t,onChange:function(e){s(e.target.value)},checked:c&&c==t,onClick:o,id:t}),(0,a.jsx)("span",{className:"checkmark"}),n]})})})};t.Z=l},90183:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return R}});var a=n(31169),s=n(17405),i=n(76895),l=n(22482),r=n(849),c=n(60605),o=n(88812),d=n(59805),u=n(16863),h=n(44909),m=n(92187),A=n(24634),p=n(26279),f=n(4859),g=n(15051),v=n.n(g),y=function(){var e=(0,p.Z)().lang,t=(0,u.useContext)(o.V).auth,n=(0,u.useContext)(A.nN),i=n[0],h=n[3],m=(0,u.useState)(null),g=m[0],y=m[1],x=(0,s.Z)((0,d._)("voucherType"),1)[0],_=(0,s.Z)((0,d._)("voucher_code"),1)[0],b=(0,s.Z)((0,d._)("redeemDisc"),1)[0],j=(0,s.Z)((0,d._)("redeemPercent"),1)[
10],k=(0,u.useState)(null),N=(k[0],k[1]),M=(0,u.useState)([]),w=(M[0],M[1]);return(0,u.useEffect)(function(){h()},[]),(0,u.useEffect)(function(){y(i.dataDetailPackage)},[i.dataDetailPackage]),(0,u.useEffect)((0,a.Z)(function(){var e,n;return(0,l.__generator)(this,function(a){switch(a.label){case 0:if(!_)return[3,2];return[4,(0,c.Z)({method:"GET",token:t.token,url:"/vouchers/user-check/".concat(_)})];case 1:w(null==(e=a.sent())?void 0:e.contents),N(void 0!==(n=e.contents.find(function(e){var t;return(null==e?void 0:null===(t=e.package)||void 0===t?void 0:t.packageType)==="meditasi"}))?n:null),a.label=2;case 2:return[2]}})}),[]),(0,r.jsx)("div",{children:x&&(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"d-flex align-items-center justify-content-between ".concat(v().boxTotal),children:[(0,r.jsxs)("div",{className:"flex-grow-1",children:[(0,r.jsxs)("span",{className:"mb-0 ".concat(v().titleName),children:["Voucher/","en"===e?"Discount":"Potongan"]}),(0,r.jsxs)("span",{className:v().subtitlePrice,children:["en"===e?"You save":"Kamu hemat"," ","free"===x?"Rp".concat((0,f.z)(null==g?void 0:g.priceTotal)):"fixed"===x||"percentage"===x?"Rp".concat((0,f.z)(Number(b))):0]})]}),(0,r.jsx)("div",{className:v().discount,children:(0,r.jsx)("span",{className:v().textDiscount,children:"free"===x?"en"===e?"FREE PACKAGE":"FREE PAKET":"fixed"===x?"Rp".concat((0,f.z)(Number(j))):"percentage"===x?"".concat("en"===e?"DISCOUNT":"DISKON").concat(Number(j),"%"):""})})]})})})},x=n(71812),_=n(35641),b=n(25234),j=n.n(b),k=n(54409),N=n.n(k),M=function(e){var t=e.packageType,n=e.name,a=e.price,s=e.expDay,i=(0,p.Z)().lang,l=(0,u.useContext)(m.F);return(0,r.jsxs)("div",{className:"".concat(v().boxInfo),style:{marginTop:16},children:[(0,r.jsxs)("div",{className:"d-flex align-items-center",children:[(0,r.jsx)("div",{className:"mr-2 mr-md-3",children:(0,r.jsx)(N(),{src:"/jepa-konseling/".concat("text"===t?"blue-chat":"call"===t?"blue-call":"video"===t?"blue-vidcall":"meditasi",".webp"),width:l?36:48,height:l?36:48})}),(0,r.jsxs)("div",{className:"flex-grow-1",children:[(0,r.jsx)("h5",{className:v().subtitle,children:n}),(0,r.jsx)("span",{className:v().subPackage,children:"en"===i?"One Time":"Sekali Beli"})]})]}),(0,r.jsxs)("span",{className:v().guarantee,children:["en"===i?"Access to all Meditation and Sleep content for":"Akses ke semua konten Meditasi dan Lelap selama"," ",parseInt(s)>=30?"".concat(Math.ceil(parseInt(s)/30)," ").concat("en"===i?"month":"bulan"):7>parseInt(s)?"".concat(Math.ceil(parseInt(s))," ").concat("en"===i?"day":"hari"):"".concat(Math.ceil(parseInt(s)/7)," ").concat("en"===i?"week":"minggu")]}),(0,r.jsx)("hr",{}),(0,r.jsxs)("div",{className:"d-flex align-items-center justify-content-between",children:[(0,r.jsx)("h6",{className:"mb-0 ".concat(v().subtitle),children:"en"===i?"Package Price":"Harga Paket"}),(0,r.jsxs)("h5",{className:v().packagePrice,children:["Rp",(0,f.z)(a)]})]})]})},w=function(e){var t=e.title,n=e.desc;return(0,r.jsxs)("tr",{className:v().detail,children:[(0,r.jsx)("td",{children:t}),(0,r.jsx)("td",{className:v().divider,children:":"}),(0,r.jsx)("td",{style:{fontWeight:500},children:n})]})};n(78176);var T=n(15670);j().extend(T);var S=function(){var e,t,n,i,h,g,y,b,k=(0,p.Z)().lang,T=(0,u.useContext)(m.F),S=(0,u.useContext)(o.V).auth,D=(0,u.useContext)(A.nN),P=D[0],C=D[1],Z=D[3],$=(0,u.useContext)(_.uQ),Y=$[0],I=$[3],L=(0,s.Z)((0,d._)("counselingType"),1)[0],E=(0,s.Z)((0,d._)("topicName"),1)[
10],O=(0,s.Z)((0,d._)("date"),1)[0],R=(0,s.Z)((0,d._)("hour"),1)[0],F=(0,s.Z)((0,d._)("voucher_code"),1)[0],H=(0,u.useState)(null),B=H[0],W=H[1],z=(0,u.useState)(null),V=z[0],K=z[1],J=(0,u.useState)(null),U=J[0],G=J[1],Q=(0,u.useState)("/jepa-konseling/dummy.webp"),X=Q[0],q=Q[1],ee=(0,u.useState)([]),et=ee[0],en=ee[1];(0,u.useEffect)(function(){Z(),I()},[]),(0,u.useEffect)(function(){if(F){var e;(e=(0,a.Z)(function(){var e,t,n,a;return(0,l.__generator)(this,function(s){switch(s.label){case 0:return[4,(0,c.Z)({method:"GET",token:S.token,url:"/vouchers/user-check/".concat(F)})];case 1:return en(null==(n=s.sent())?void 0:n.contents),G(void 0!==(a=n.contents.find(function(e){var t;return(null==e?void 0:null===(t=e.package)||void 0===t?void 0:t.packageType)==="meditasi"}))?a:null),(null===(e=null==n?void 0:n.contents[0])||void 0===e?void 0:null===(t=e.package)||void 0===t?void 0:t.packageType)==="meditasi"&&(W(null),C({type:"PACKAGES_DETAIL_ERROR"})),[2]}})}),function(){return e.apply(this,arguments)})()}else en([{package:{packageType:"counseling"}},])},[]),(0,u.useEffect)(function(){var e,t;W(null==P?void 0:P.dataDetailPackage),K(Y.detailCounseling.length?null==Y?void 0:Y.detailCounseling[0]:[]),q(null===(e=Y.detailCounseling[0])||void 0===e?void 0:null===(t=e.psycholog)||void 0===t?void 0:t.profileLink)},[P.dataDetailPackage,Y.detailCounseling]);var ea=j()("".concat(R,":00"),"HH:mm:ss").add(null==B?void 0:B.duration,"m").format("HH:mm"),es=j()(new Date).locale("id").format("YYYY-MM-DD"),ei=j()(es).add(null==B?void 0:B.expiredDays,"d").locale("en"===k?"en":"id").format("dddd, DD MMM YYYY");return P.loadingDetailPackage?(0,r.jsx)(x.Z,{}):(0,r.jsxs)(r.Fragment,{children:[null!==B&&"object"==typeof B&&(null===(e=et[0])||void 0===e?void 0:null===(t=e.package)||void 0===t?void 0:t.packageType)!=="meditasi"?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:v().boxInfo,children:[(0,r.jsx)("h3",{className:v().titlePayment,children:"en"===k?"Your Order Package":"Paket Pemesanan"}),(0,r.jsxs)("div",{className:v().topInfo,children:[(0,r.jsxs)("div",{className:"d-flex align-items-center justify-content-between",style:{gap:12},children:[(0,r.jsx)("div",{style:{width:T?36:40,height:T?36:40},children:(0,r.jsx)(N(),{src:"/jepa-konseling/".concat((null==B?void 0:B.packageType)==="text"?"blue-chat":(null==B?void 0:B.packageType)==="call"?"blue-call":(null==B?void 0:B.packageType)==="meditasi"?"meditasi":"blue-vidcall",".webp"),width:T?36:40,height:T?36:40})}),(0,r.jsxs)("div",{className:"flex-1",children:[(null==B?void 0:B.packageType)!=="meditasi"?(0,r.jsxs)("span",{className:v().subtitle,children:["en"===k?"Counseling":"Konseling"," ",L]}):(0,r.jsx)("span",{className:v().subtitle,children:(null==B?void 0:B.subscriptionInterval)===0?"Sekali Beli":"Langganan"}),(0,r.jsxs)("h5",{className:v().subPackage,children:[null==B?void 0:B.name," ",(null==B?void 0:B.packageType)!=="meditasi"&&(0,r.jsxs)("span",{className:"".concat(v().typePackage),children:["(",null==B?void 0:B.category,")"]})]})]}),!T&&(0,r.jsxs)("div",{className:"text-right",children:[(0,r.jsx)("h4",{className:v().titlePricePackage,children:"en"===k?"Price":"Harga"}),(0,r.jsxs)("h5",{className:v().packagePrice,children:["Rp",(0,f.z)(null==B?void 0:B.priceTotal)]})]})]}),T&&(0,r.jsxs)("div",{className:"d-flex align-items-center justify-content-between",style:{marginTop:12},children:[(0,r.jsx)("h4",{className:v().titlePricePackage,children:"en"===k?"Price":"Harga"}),(0,r.jsxs)("h5",{className:v().packagePrice,children:["Rp",(0,f.z)(null==B?void 0:B.priceTotal)]})]})]})]}),(0,r.jsx)("div",{className:v().boxInfo,style:{marginTop:16},children:(null==B?void 0:B.packageType)!=="meditasi"?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"d-flex align-items-center",style:{gap:16},children:[(0,r.jsx)("div",{style:{width:T?60:80,height:T?60:80},children:(0,r.jsx)(N(),{src:X,onError:function(){return q("/jepa-konseling/img-notfound.png")},width:T?60:80,height:T?60:80,objectFit:"cover",className:"rounded-circle",placeholder:"blur",blurDataURL:"data:image/webp;base64,UklGRpQCAABXRUJQVlA4WAoAAAAgAAAAagAAagAASUNDUBgCAAAAAAIYAAAAAAQwAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAl
1kZXNjAAAA8AAAAHRyWFlaAAABZAAAABRnWFlaAAABeAAAABRiWFlaAAABjAAAABRyVFJDAAABoAAAAChnVFJDAAABoAAAAChiVFJDAAABoAAAACh3dHB0AAAByAAAABRjcHJ0AAAB3AAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAFgAAAAcAHMAUgBHAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAABvogAAOPUAAAOQWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAJKAAAA+EAAC2z3BhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABYWVogAAAAAAAA9tYAAQAAAADTLW1sdWMAAAAAAAAAAQAAAAxlblVTAAAAIAAAABwARwBvAG8AZwBsAGUAIABJAG4AYwAuACAAMgAwADEANlZQOCBWAAAAEAYAnQEqawBrAD7RaLBTKCYkoqCoAQAaCWlu4XPw04OAAxtdTe4jF/VY7ZsscWXkmpvcReWAa6loAP78p3mLjzAKvVGzcjZr1nFzxRYBAPhclmyAAAA="})}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("h5",{className:v().titleName,children:null==V?void 0:null===(n=V.psycholog)||void 0===n?void 0:n.name}),(0,r.jsxs)("div",{className:"d-flex",style:{gap:8,marginTop:T?8:16},children:[(0,r.jsxs)("div",{className:"d-flex align-items-center ".concat(v().boxRating),style:{gap:4},children:[(0,r.jsx)(N(),{src:"/jepa-konseling/icons/ic-star.svg",width:16,height:16}),(0,r.jsx)("span",{className:v().expRating,children:null==V?void 0:null===(i=V.rating)||void 0===i?void 0:i.toFixed(1)})]}),(0,r.jsxs)("div",{className:"d-flex align-items-center ".concat(v().boxRating),style:{gap:4},children:[(0,r.jsx)(N(),{src:"/jepa-konseling/icons/ic-exp.svg",width:16,height:16}),(0,r.jsxs)("span",{className:v().expRating,children:[Math.ceil(null==V?void 0:V.expYear)," ","en"===k?"Years":"Tahun"]})]})]})]})]}),(0,r.jsx)("hr",{}),(0,r.jsx)("h5",{className:v().titleName,children:"en"===k?"Counseling Details":"Detail Konseling"}),(0,r.jsx)("table",{style:{marginTop:T?8:12},children:(0,r.jsxs)("tbody",{children:[(0,r.jsx)(w,{title:"en"===k?"Counseling Topic":"Topik Konseling",desc:E}),(0,r.jsx)(w,{title:"en"===k?"Counseling Method":"Metode Konseling",desc:(null==B?void 0:B.packageType)==="text"?"Chat":(null==B?void 0:B.packageType)==="call"?"Call":"Video Call"}),(0,r.jsx)(w,{title:"en"===k?"Number of Sessions":"Jumlah Sesi",desc:"".concat(null==B?void 0:B.totalSession," ").concat((null==B?void 0:B.totalSession)>1&&"en"===k?"sessions":"en"===k?"session":"kali sesi")}),(0,r.jsx)(w,{title:"en"===k?"Counseling Duration":"Durasi Konseling",desc:"".concat(null==B?void 0:B.duration," ").concat("en"===k?"minutes":"menit")}),(0,r.jsx)(w,{title:"en"===k?"Session Schedule":"Jadwal Sesi 1",desc:j()(O).locale("en"===k?"en":"id").format("dddd, DD MMM YYYY")}),(0,r.jsx)(w,{title:"en"===k?"Session Time":"Waktu Sesi 1",desc:"".concat(R," - ").concat(ea)}),(0,r.jsx)(w,{title:"en"===k?"Expiration":"Kedaluwarsa",desc:ei}),(0,r.jsx)(w,{title:"en"===k?"Package Benefits":"Benefit Paket"})]})}),((null==B?void 0:B.changablePsycholog)||(null==B?void 0:B.category)==="premium")&&(0,r.jsxs)("div",{children:[(null==B?void 0:B.category)==="premium"&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"d-flex align-items-center",style:{gap:8},children:[(0,r.jsx)("div",{className:v().bullet,children:(0,r.jsx)("img",{src:"/jepa-konseling/icons/ic-check-round.svg",alt:"ic-check",className:"w-100"})}),"en"===k?(0,r.jsx)("span",{className:v().benefit,children:"+1 month access to Riliv self-care services"}):(0,r.jsxs)("span",{className:v().benefit,children:["+ 1 bulan akses premium ke layanan"," ",(0,r.jsx)("i",{children:"self-care"})," Riliv"]})]}),(0,r.jsxs)("div",{className:"d-flex align-items-center",style:{gap:8},children:[(0,r.jsx)("div",{className:v().bullet,children:(0,r.jsx)("img",{src:"/jepa-konseling/icons/ic-check-round.svg",alt:"ic-check",className:"w-100"})}),"en"===k?(0,r.jsx)("span",{className:v().benefit,children:"Free follow-up between sessions."}):(0,r.jsxs)("span",{className:v().benefit,children:[(0,r.jsx)("i",{children:"Free follow-up"})," antar sesi"]})]})]}),(null==B?void 0:B.changablePsycholog)&&(0,r.jsxs)("div",{className:"d-flex align-items-center",style:{gap:8},children:[(0,r.jsx)("div",{className:v().bullet,children:(0,r.jsx)("img",{src:"/jepa-konseling/icons/ic-check-round.svg",alt:"ic-check",className:"w-100"})}),(0,r.jsx)("span",{className:v().benefit,children:"en"===k?"Psychologist replacement guarantee":"Garansi ganti psikolog"})]})]})]}):(0,r.jsx)("p",{className:"mb-0 ".concat(v().detail),children:null==B?void 0:B.description})})]}):null,null!==U&&(0,r.jsx)(M,{name:null==U?void 0:null===(h=U.package)||void 0===h?void 0:h.name,packageType:null==U?void 0:null===(g=U.package)||void 0===g?void 0:g.packageType,price:null==U?void 0:null===(y=U.package)||void 0===y?void 0:y.priceTotal,expDay:null==U?void 0:null===(b=U.package)||void 0===b?void 0:b.expiredDays})]})};n(58609);var D=n(70614),P=n(27596),C=n(21566),Z=n(94035),$=function(e){var t=e.platform,n=e.paymentMethod,i=e.payMethodType,h=e.payMethodLabel,g=e.payMethodValue,y=e.platformType,x=(0,D.useRouter)(),_=
1x.query.type,b=(0,p.Z)(),j=b.lang,k=(0,b.t)("tnc:termconditions",{},{returnObjects:!0}),M=(0,u.useContext)(m.F),w=(0,u.useContext)(o.V).auth,T=(0,C.Z)(),S=(0,u.useContext)(A.nN),$=S[0],Y=S[3],I=(0,s.Z)((0,d._)("categoryId"),1)[0],L=(0,s.Z)((0,d._)("psychologId"),1)[0],E=(0,s.Z)((0,d._)("topic"),1)[0],O=(0,s.Z)((0,d._)("scheduleId"),1)[0],R=(0,s.Z)((0,d._)("scheduleHourId"),1)[0],F=(0,s.Z)((0,d._)("voucherType"),1)[0],H=(0,s.Z)((0,d._)("voucher_code"),1)[0],B=(0,s.Z)((0,d._)("voucherId"),1)[0],W=(0,s.Z)((0,d._)("redeemPrice"),1)[0];(0,s.Z)((0,d._)("redeemPercent"),1)[0];var z=(0,s.Z)((0,d._)("packageRedeemType"),1)[0],V=(0,u.useState)(!1),K=V[0],J=V[1],U=(0,u.useState)(!1),G=U[0],Q=U[1],X=(0,u.useState)(!1),q=X[0],ee=X[1],et=(0,u.useState)(null),en=et[0],ea=et[1],es=(0,u.useState)(!1),ei=es[0],el=es[1];(0,u.useEffect)(function(){Y()},[]),(0,u.useEffect)(function(){ea($.dataDetailPackage)},[$.dataDetailPackage]);var er,ec=function(){J(!0),T.logEvent("click_syarat_ketentuan_pembayaran")},eo=function(){return J(!1)},ed=function(){J(!1),localStorage.removeItem("platform"),localStorage.removeItem("payMethod"),localStorage.removeItem("cardToken"),x.back()},eu=function(){ee(!0)},eh=(er=(0,a.Z)(function(){var e,t,n,a,s,r,o;return(0,l.__generator)(this,function(l){switch(l.label){case 0:el(!0),l.label=1;case 1:if(l.trys.push([1,9,,10]),T.logEvent("click_lanjut_pembayaran",{platform:y,metode:h}),"cc"!==i)return[3,2];return x.push("/checkout/method/cc?type=".concat(_),null,{shallow:!0}),[3,8];case 2:if(e={packageId:parseInt(I),csCategoryId:parseInt(E),paymentType:i,platform:y,psychologId:z?null:parseInt(L),sourcePlatform:"homepage",scheduleOpId:z?null:O,scheduleOpHourId:z?null:R,voucherId:parseInt(B)||null},t={packageId:parseInt(I),paymentType:i,voucherId:parseInt(B)||null},n="meditasi"===_?t:e,"free"!==F)return[3,4];return[4,(0,c.Z)({token:w.token,url:"/vouchers/redeem",method:"POST",data:{code:H.trim(),counselingCat:parseInt(E),tempPsychologId:z?null:parseInt(L),scheduleOpId:z?null:O,scheduleOpHourId:z?null:R}}).then(function(){x.push("/thankyou?type=".concat(_)),el(!1)})];case 3:return l.sent(),[3,8];case 4:return[4,(0,c.Z)({token:w.token,url:"/payments/store",method:"POST",data:n})];case 5:return a=l.sent(),[4,(0,c.Z)({token:w.token,url:"/payment-methods/store",method:"POST",data:{paymentId:null==a?void 0:a.id,payMethodId:g,sourcePlatform:"homepage"}})];case 6:return s=l.sent(),[4,(0,c.Z)({token:w.token,url:"/payments/midtrans-charge",method:"POST",data:{userPayMethod:null==s?void 0:s.id}})];case 7:r=l.sent(),void 0===a&&void 0===s&&"meditasi"!==_&&(Q(!0),el(!1)),r?("meditasi"!==_?x.push("/payment?type=".concat(_,"&paymentId=").concat(a.id,"&tier=").concat(localStorage.getItem("tier"),"&packageName=").concat(localStorage.getItem("packageTypeName"),"&category=").concat(localStorage.getItem("packageTypeCategory"))):x.push("/payment?type=".concat(_,"&paymentId=").concat(a.id,"&packageName=").concat(en.name,"&category=").concat(en.packageType)),el(!1)):((0,P.p4)("Pembayaran sedang bermasalah, mohon ulangi beberapa saat lagi."),el(!1)),l.label=8;case 8:return[3,10];case 9:return(o=l.sent()).response&&(0,P.p4)(o.response.data.message),el(!1),[3,10];case 10:return[2]}})}),function(){return er.apply(this,arguments)});return(0,r.jsxs)("div",{className:v().payment,children:[(0,r.jsxs)("div",{className:"d-flex flex-wrap justify-content-between align-items-center",children:[(0,r.jsx)("div",{className:"flex-grow-1",children:(0,r.jsx)("h5",{className:"mb-0 ".concat(v().totalPriceTitle),children:"en"===j?"Total Cost":"Total Biaya"})}),(0,r.jsx)("span",{className:v().totalPrice,children:"free"===F?0:"fixed"===F||"percentage"===F?"Rp".concat((0,f.z)(parseInt(W))):"Rp".concat((0,f.z)(null==en?void 0:en.priceTotal))})]}),"meditasi"!==_&&(0,r.jsxs)("div",{className:"d-flex flex-wrap align-items-center",style:{marginTop:M?24:55},children:[(0,r.jsxs)("label",{className:"checkbox-term mb-0 ".concat(v().termCondition),children:["en"===j?"I have read and agree to the":"Saya telah membaca dan menyetujui"," ",(0,r.jsx)("input",{type:"checkbox",onChange:eu}),(0,r.jsx)("span",{className:"checkmark-check"})]}),(0,r.jsx)("span",{className:v().popupTerm,onClick:ec,children:"en"===j?"terms and conditions.":"syarat dan ketentuan"})]}),"free"===F?(0,r.jsx)("button",{className:"".concat(t&&q&&!ei||"meditasi"===_?"enable-btn":"disable-btn"," ").concat(v().btnPayment),disabled:(!t||!q||!!ei)&&"meditasi"!==_,onClick:eh,children:ei?"Loading...":"".concat("en"===j?"Next":"Lanjutkan")}):"meditasi"===_?(0,r.jsx)("button",{className:"".concat(n&&!ei?"enable-btn":"disable-btn"," ").concat(v().btnPayment),disabled:!n||!!ei,onClick:eh,children:ei?"Loading...":"".concat("en"===j?"Pay":"Bayar")}):(0,r.jsx)("button",{className:"".concat(t&&n&&q&&!ei?"enable-btn":"disable-btn"," ").concat(v().btnPayment),disabled:!t||!n||!q||!!ei,onClick:eh,children:ei?"Loading...":"".concat("en"===j?"Pay":"Bayar")}),(0,r.jsxs)(Z.Z,{customWidth:M?312:420,show:G,children:[(0,r.jsx)("h2",{className:"text-center ".concat(v().modalTitle),children:"en"===j?"Your Chosen Schedule is Unavailable":"Maaf, jadwal sudah tidak tersedia lagi"}),(0,r.jsx)("p",{className:"text-center ".concat(v().modalSub),children:"en"===j?"It seems the schedule has been booked by another client. Please choose another schedule.":"Jadwal psikolog yang kamu pilih sudah dipesan klien lain. Pilih jadwal yang lain, yuk."}),(0,r.jsx)("button",{className:"border-btn w-100",style:{borderRadius:100,marginTop:32,padding:"10px 24px"}
1,onClick:ed,children:"en"===j?"View Other Schedules":"Pilih Jadwal Lainnya"})]}),(0,r.jsxs)(Z.Z,{show:K,customWidth:M?312:531,children:[(0,r.jsxs)("div",{className:"d-flex align-items-center justify-content-between",children:[(0,r.jsx)("h3",{className:"flex-grow-1 ".concat(v().modalTitle),children:"en"===j?"Terms & Conditions":"Syarat & Ketentuan"}),(0,r.jsx)("div",{onClick:eo,style:{cursor:"pointer"},children:(0,r.jsx)(N(),{src:"/jepa-konseling/icons/ic-close.svg",width:24,height:24})})]}),(0,r.jsx)("hr",{style:{margin:"12px 0"}}),(0,r.jsx)("h4",{className:"font-weight-semibold ".concat(v().modalSub),children:k[0].title}),(0,r.jsx)("ul",{className:"pl-0 d-flex flex-column",style:{gap:4,listStyle:"none",marginTop:8},children:k[0].subtitle.map(function(e,t){return(0,r.jsxs)("li",{className:"d-flex align-items-start",style:{gap:8},children:[(0,r.jsx)("div",{className:v().icModal,children:(0,r.jsx)(N(),{src:"/jepa-konseling/icons/ic-check-round.svg",width:M?16:20,height:M?16:20})}),(0,r.jsx)("span",{className:"w-100 flex-grow-1 ".concat(v().modalSubDesc),children:e})]},t)})})]})]})},Y=n(55817),I=n(68314),L=n(84985),E={option:function(e,t){var n=t.isSelected;return(0,L.Z)((0,I.Z)({},e),{fontSize:"13px",lineHeight:"20px",color:n?"#fff":"#5887A4",background:n?"#02BBDD":"#fff","&:hover":{background:"#02BBDD",cursor:"pointer",color:"#fff"}})},placeholder:function(e){return(0,u.useContext)(m.F),(0,L.Z)((0,I.Z)({},e),{color:"#ABC3D2",fontSize:"12px",lineHeight:"18px",fontWeight:400,marginRight:0,marginLeft:0})},control:function(e){return(0,L.Z)((0,I.Z)({},e),{padding:"3px 16px",border:"1px solid #E2ECF4",boxShadow:"none",borderRadius:"6px",fontWeight:400,fontSize:"12px",lineHeight:"18px",height:"42px",color:"#044B77",cursor:"pointer","&:hover":{boxShadow:"none"}})},singleValue:function(e){return(0,L.Z)((0,I.Z)({},e),{fontSize:"12px",lineHeight:"18px",fontWeight:"500",color:"#044B77"})},indicatorSeparator:function(){return{display:"none"}},dropdownIndicator:function(){return{width:"18px",height:"18px",color:"#ABC3D2"}}},O=function(){var e,t,n,i,h,g,y,x,_,b,j,k=(0,p.Z)().lang,N=(0,u.useContext)(m.F),M=(0,u.useContext)(o.V).auth,w=(0,u.useContext)(A.nN),T=w[0],S=w[3],D=(0,u.useState)(null),P=D[0],C=D[1],Z=(0,s.Z)((0,d._)("voucherType"),1)[0],$=(0,s.Z)((0,d._)("voucher_code"),1)[0],Y=(0,s.Z)((0,d._)("redeemDisc"),1)[0];(0,s.Z)((0,d._)("redeemPercent"),1)[0];var I=(0,u.useState)(null),L=I[0],E=I[1],O=(0,u.useState)([]),R=O[0],F=O[1];return(0,u.useEffect)(function(){S()},[]),(0,u.useEffect)(function(){C(T.dataDetailPackage)},[T.dataDetailPackage]),(0,u.useEffect)((0,a.Z)(function(){var e,t;return(0,l.__generator)(this,function(n){switch(n.label){case 0:if(!$)return[3,2];return[4,(0,c.Z)({method:"GET",token:M.token,url:"/vouchers/user-check/".concat($)})];case 1:F(null==(e=n.sent())?void 0:e.contents),E(void 0!==(t=e.contents.find(function(e){var t;return(null==e?void 0:null===(t=e.package)||void 0===t?void 0:t.packageType)==="meditasi"}))?t:null),n.label=2;case 2:return[2]}})}),[]),(0,r.jsxs)("div",{className:"d-flex flex-column",style:{gap:N?8:12,marginTop:N?12:24},children:[(0,r.jsxs)("div",{className:"d-flex align-items-center justify-content-between",style:{gap:16},children:[(0,r.jsx)("span",{className:"flex-grow-1 ".concat(v().subtitleTotal),children:"en"===k?"Total Package Price":"Total Harga Paket"}),(0,r.jsx)("span",{className:v().price,children:null!==L&&(null===(e=R[0])||void 0===e?void 0:null===(t=e.package)||void 0===t?void 0:t.packageType)!=="meditasi"?"Rp".concat((0,f.z)((null==P?void 0:P.priceTotal)+(null==L?void 0:null===(n=L.package)||void 0===n?void 0:n.priceTotal))):(null===(i=R[0])||void 0===i?void 0:null===(h=i.package)||void 0===h?void 0:h.packageType)==="meditasi"?"Rp".concat((0,f.z)(null==L?void 0:null===(g=L.package)||void 0===g?void 0:g.priceTotal)):"Rp".concat((0,f.z)(null==P?void 0:P.priceTotal))})]}),Z&&(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"d-flex align-items-center justify-content-between",style:{gap:16},children:[(0,r.jsxs)("span",{className:"flex-grow-1 ".concat(v().subtitleTotal),children:["Voucher/","en"===k?"Discount":"Diskon"]}),(0,r.jsx)("span",{className:v().price,children:null!==L&&"free"===Z&&(null===(y=R[0])||void 0===y?void 0:null===(x=y.package)||void 0===x?void 0:x.packageType)!=="meditasi"?"- Rp".concat((0,f.z)((null==P?void 0:P.priceTotal)+(null==L?void 0:null===(_=L.package)||void 0===_?void 0:_.priceTotal))):null!==L&&"free"===Z&&(null===(b=R[0])||void 0===b?void 0:null===(j=b.package)||void 0===j?void 0:j.packageType)==="meditasi"?"- Rp".concat((0,f.z)(null==P?void 0:P.priceTotal)):"free"===Z&&null===L?"- Rp".concat((0,f.z)(null==P?void 0:P.priceTotal)):"fixed"===Z||"percentage"===Z?"- Rp".concat((0,f.z)(Number(Y))):0})]})})]})},R=function(){var e=(0,p.Z)().lang,t=(0,u.useContext)(o.V).auth,n=(0,D.useRouter)(),A=(0,u.useContext)(m.F),f=(0,s.Z)((0,d._)("platform"),2),g=f[0],x=f[1],_=(0,s.Z)((0,d._)("payMethod"),2),b=_[0],j=_[1],k=(0,s.Z)((0,d._)("voucherType"),1)[0],N=(0,u.useState)([]),M=N[0],w=N[1],T=(0,u.useState)({}),P=T[0],C=T[1],Z=(0,u.useState)(""),I=Z[0],L=Z[1],R=(0,u.useCallback)((0,a.Z)(function(){var e;return(0,l.__generator)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,(0,c.Z)({token:t.token,url:"/payment-methods/list",method:"GET"})];case 1:return e.sent().map(function(e){var t=[];e.methods.map(function(n){return t.push({type:e.identifier,value:n.id,label:n.name,image:n.logoLink})}),w(function(n){return(0,i.Z)(n).concat([{label:e.name,options:t},])})}),[3,3];case 2:return e.sent(),[3,3];case 3:return[2]}})}),[]);(0,u.useEffect)(function(){R()},[]);var F=function(e){L(e),x(e)},H=function(e){C(e),j(e)};return(0,r.jsxs)("div",{style:{marginBottom:60},children:[(0,r.jsx)("h1",{className:v().sectionTitle,children:"en"===e?"Order Details":"Pemesanan"}),(0,r.jsxs)("p",{className:v().sectionDesc,children:["en"===e?"This is the final page of your ordering process. Please make sure everything is correct. :)":" Ini halaman terakhir dari proses pemesananmu. Pastikan semua sudah benar, ya. :)"," "]}),(0,r.jsxs)("div",{className:"d-flex flex-column flex-md-row justify-content-between",style:{marginTop:24,gap:24},children:[(0,r.jsx)("div",{className:v().right,children:(0,r.jsx)(S,{})}),(0,r.jsxs)("div",{className:"flex-1 ".concat(v().left),children:[(0,r.jsx)("h3",{className:"".concat(v().titlePayment," mb-0"),children:"en"===e?"Payment":"Pembayaran"}),(0,r.jsx)(y,{}),"meditasi"!==n.query.type&&(0,r.jsxs)("div",{style:{marginTop:A?12:24},children:[(0,r.jsx)("h5",{className:"".concat(v().titleName),style:{marginBottom:12},children:"en"===e?"Select Platform":"Pilih Platform"}),(0,r.jsx)("div",{className:"d-flex justify-content-between justify-content-lg-start",style:{gap:A?16:42},children:[{label:"Handphone Android",value:"adr"},{label:"Handphone iOS",value:"ios"},].map(function(e,t){return(0,r.jsx)(Y.Z,{id:e.value,name:e.label,selected:g,type:"platform",handleChange:F},t)})})]}),"free"!==k&&(0,r.jsxs)("div",{style:{marginTop:A?12:24},children:[(0,r.jsx)("h5",{className:"mb-0 ".concat(v().titleName),children:"en"===e?"Payment Method":"Pilih Metode Pembayaran"}),(0,r.jsx)(h.ZP,{defaultValue:b,onChange:H,options:M,styles:E,getOptionLabel:function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("img",{src:e.image,className:"mr-4 img-fluid",width:40}),e.label]})},isClearable:!1,isSearchable:!1,placeholder:"en"===e?"Choose Payment Method":"Pilih metode pembayaran",className:v().cho
1osePayment})]}),(0,r.jsx)(O,{}),(0,r.jsx)("hr",{style:{margin:A?"16px 0":"24px 0",width:"100%",height:1,background:"#E2ECF4"}}),(0,r.jsx)($,{platform:!!g,paymentMethod:!!b,payMethodType:b?b.type:P.type,payMethodValue:b?b.value:P.value,payMethodLabel:P.label,platformType:g||I})]})]})]})}},27596:function(e,t,n){"use strict";n.d(t,{KO:function(){return r},p4:function(){return l}});var a=n(849),s=n(58609),i=n(29372);function l(e){i.Am.error(e,{position:"top-center",autoClose:3e3,theme:"colored",hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0})}function r(e){return(0,a.jsx)(s.default,{modalClass:"p-4",btnTitle:"Coba Lagi",btnClass:"enable-btn w-100 border-0 rounded",onClick:function(){return window.location.reload()},show:!1,children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("img",{src:"/jepa-konseling/internet-error.webp",width:226,height:144}),(0,a.jsxs)("div",{className:"my-5",children:[(0,a.jsx)("h2",{className:"mb-0 font-medium",style:{fontSize:"20px",lineHeight:"28px"},children:"Ada Sedikit Gangguan, nih"}),(0,a.jsx)("p",{className:"mb-0 text-grey",style:{fontSize:"16px",lineHeight:"24px"},children:"Sistem sedang kami perbaiki. Tunggu sebentar atau coba lagi nanti, ya"})]})]})})}},4859:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});var a=function(e){return new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR",minimumFractionDigits:0,currencyDisplay:"code"}).format(e).replace("IDR","").trim()}},12939:function(e){e.exports={bgFixed:"modal_bgFixed__qZxwi",bgContent:"modal_bgContent__6QEBt"}},15051:function(e){e.exports={left:"style_left__z9SxO",right:"style_right___iENF",rightTop:"style_rightTop__23WEj",sectionTitle:"style_sectionTitle__a2UGq",sectionDesc:"style_sectionDesc__s8mJz",boxRating:"style_boxRating__97PO4",expRating:"style_expRating__3Mot5",titlePayment:"style_titlePayment__cpth_",topInfo:"style_topInfo__zslm9",title:"style_title__rvyLC",titleName:"style_titleName__5Lz06",subtitle:"style_subtitle__vgLhY",platform:"style_platform__FGU7P",boxTotal:"style_boxTotal__K8jAw",subtitleTotal:"style_subtitleTotal__ewcfb",titlePrice:"style_titlePrice__RKmIX",price:"style_price__lVSP_",titlePricePackage:"style_titlePricePackage__3o5Kw",packagePrice:"style_packagePrice___KT12",subtitlePrice:"style_subtitlePrice__0h4dP",discount:"style_discount__mhgWX",textDiscount:"style_textDiscount__PtnTg",termCondition:"style_termCondition__ptiYF",popupTerm:"style_popupTerm__9Pl8I",totalPriceTitle:"style_totalPriceTitle__1vBEG",totalPrice:"style_totalPrice__VE5nV",btnPayment:"style_btnPayment___ldNA",boxInfo:"style_boxInfo__2tGrb",package:"style_package__FcsVR",subPackage:"style_subPackage___QjTP",typePackage:"style_typePackage__tKcys",typePackageInActive:"style_typePackageInActive__T10Xk",typePackageActive:"style_typePackageActive__xmZVo",detail:"style_detail__MCFWH",divider:"style_divider__nZ2yP",benefit:"style_benefit__B8x7V",guarantee:"style_guarantee__ARekC",bullet:"style_bullet__FO5_v",modal:"style_modal__kjsro",modalTitle:"style_modalTitle__qgYSv",modalSub:"style_modalSub__2q9yS",modalSubDesc:"style_modalSubDesc__wCd_F",icModal:"style_icModal__kEuWX",choosePayment:"style_choosePayment__FPINf"}},76895:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var a=n(54136),s=n(93410),i=n(60808);function l(e){return function(e){if(Array.isArray(e))return(0,a.Z)(e)}(e)||(0,s.Z)(e)||(0,i.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},65549:function(e,t,n){"use strict";n.d(t,{Z:function(){return i},y:function(){return l}});var a=n(16863);let s=a.createContext({});function i({count:e=1,wrapper:t,className:n,containerClassName:i,containerTestId:l,circle:r=!1,style:c,...o}){var d,u,h;let m=a.useContext(s),A={...o};for(let[p,f]of Object.entries(o))void 0===f&&delete A[p];let g={...m,...A,circle:r},v={...c,...function({baseColor:e,highlightColor:t,width:n,height:a,borderRadius:s,circle:i,direction:l,duration:r,enableAnimation:c=!0}){let o={};return"rtl"===l&&(o["--animation-direction"]="reverse"),"number"==typeof r&&(o["--animation-duration"]=`${r}s`),c||(o["--pseudo-element-display"]="none"),("string"==typeof n||"number"==typeof n)&&(o.width=n),("string"==typeof a||"number"==typeof a)&&(o.height=a),("string"==typeof s||"number"==typeof s)&&(o.borderRadius=s),i&&(o.borderRadius="50%"),void 0!==e&&(o["--base-color"]=e),void 0!==t&&(o["--highlight-color"]=t),o}(g)},y="react-loading-skeleton";n&&(y+=` ${n}`);let x=null!==(d=g.inline)&&void 0!==d&&d,_=[],b=Math.ceil(e);for(let j=0;j<b;j++){let k=v;if(b>e&&j===b-1){let N=null!==(u=k.width)&&void 0!==u?u:"100%",M=e%1,w="number"==typeof N?N*M:`calc(${N} * ${M})`;k={...k,width:w}}let T=a.createElement("span",{className:y,style:k,key:j},"â");x?_.push(T):_.push(a.createElement(a.Fragment,{key:j},T,a.createElement("br",null)))}return a.createElement("span",{className:i,"data-testid":l,"aria-live":"polite","aria-busy":null===(h=g.enableAnimation)||void 0===h||h},t?_.map((e,n)=>a.createElement(t,{key:n},e)):_)}function l({children:e,...t}){return a.createElement(s.Provider,{value:t},e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.