PageSourceSearch

https://satupersen.net/_nuxt/3cb1dc3.js

js satupersen.net collected 2026-09-26 06:58:36 UTC 6,729 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[231],{1352:function(t,e,n){t.exports={}},1829:function(t,e,n){"use strict";n(1352)},2043:function(t,e,n){"use strict";n.r(e);n(63);var r=n(6),o=(n(36),n(98),n(39),n(81),n(62),n(827),n(72),n(22),n(287)),c={name:"EventContent",props:{filterType:{type:String,default:null}},data:function(){return{loading:!1,allEvents:[],now:new Date,countdownInterval:null}},mounted:function(){var t=this;this.countdownInterval=setInterval((function(){t.now=new Date}),1e3)},beforeDestroy:function(){clearInterval(this.countdownInterval)},fetch:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.loading=!0,e.next=4,Object(o.a)("webinar-v-2-s",{display:!0,_limit:100,_sort:"date:DESC"});case 4:n=e.sent,t.allEvents=n.data||[],e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.error("Error fetching events:",e.t0),t.allEvents=[];case 12:return e.prev=12,t.loading=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,8,12,15]])})))()},computed:{upcomingEvents:function(){var t=this;if(!this.allEvents||0===this.allEvents.length)return[];var e=new Date;return this.allEvents.filter((function(n){var r=new Date(n.date);if(!(!0===n.display&&r>=e))return!1;if(t.filterType){var o=t.filterType.toLowerCase(),c=(n.type||"").toLowerCase();return!(!o.startsWith("webinar")||!c.startsWith("webinar"))||(!(!o.startsWith("workshop")||!c.startsWith("workshop"))||c===o)}return!0})).sort((function(a,b){return new Date(a.date)-new Date(b.date)}))},groupedEvents:function(){return this.upcomingEvents&&0!==this.upcomingEvents.length?this.upcomingEvents.reduce((function(t,e){var n=(e.type||"lainnya").toLowerCase();return n.startsWith("webinar")&&(n="webinar"),n.startsWith("workshop")&&(n="workshop"),t[n]||(t[n]=[]),t[n].push(e),t}),{}):{}},displayOrder:function(){var t=Object.keys(this.groupedEvents),e=[];return["webinar","workshop","premium_event","bootcamp","eventoffline"].forEach((function(n){t.includes(n)&&e.push(n)})),t.forEach((function(t){e.includes(t)||e.push(t)})),e}},methods:{formatDate:function(t){return new Date(t).toLocaleDateString("id-ID",{day:"numeric",month:"short",year:"numeric"})},formatTime:function(t){return new Date(t).toLocaleTimeString("id-ID",{hour:"2-digit",minute:"2-digit",hour12:!1})+" WIB"},formatPrice:function(t){return t?new Intl.NumberFormat("id-ID").format(t):"0"},getCountdown:function(t){var e=new Date(t)-this.now;if(e<=0)return{days:"00",hours:"00",minutes:"00",seconds:"00"};var n=Math.floor(e/864e5),r=Math.floor(e%864e5/36e5),o=Math.floor(e%36e5/6e4),c=Math.floor(e%6e4/1e3);return{days:String(n).padStart(2,"0"),hours:String(r).padStart(2,"0"),minutes:String(o).padStart(2,"0"),seconds:String(c).padStart(2,"0")}},beautifyType:function(t){if(!t)return"Event";switch(t.toLowerCase()){case"webinar":return"Webinar";case"workshop":return"Workshop";case"premium_event":return"Premium Event";case"bootcamp":return"Bootcamp";case"eventoffline":return"Coaching Clinic";case"lainnya":return"Event Lainnya";default:return t.replace(/_/g," ").replace(/\b\w/g,(function(t){return t.toUpperCase()}))}},goToDetail:function(t){t&&this.$router.push("/webinar/v2/".concat(t))}}},l=(n(1829),n(15)),component=Object(l.a)(c,(function(){var t=this,e=t._self._c;return e("section",{staticClass:"event-content"},[e("div",{staticClass:"container mx-auto"},[e("div",{staticClass:"event-cards-wrapper"},[t.loading?[t._m(0)]:t._l(t.displayOrder,(function(n){return e("div",{key:n,staticClass:"event-section"},[t.groupedEvents[n]&&t.groupedEvents[n].length>0?[e("h2",{staticClass:"event-content-title"},[t._v("\n              "+t._s(t.beautifyType(n))+" yang akan datang\n            ")]),t._v(" "),e("div",{staticClass:"group-cards"},t._l(t.groupedEvents[n].slice(0,3),(function(n){return e("div",{key:n.id,staticClass:"event-card"},[e("div",{staticClass:"event-card-image"},[e("img",{attrs:{src:n.thumbnail&&n.thumbnail.url||n.thumbnail&&n.thumbnail.thumbnail||n.image,alt:n.title,loading:"lazy",fetchpriority:"low",decoding:"async"}})]),t._v(" "),e("div",{staticClass:"event-card-body"},[e("div",{staticClass:"event-label"},[t._v(t._s(n.type))]),t._v(" "),e("h3",{staticClass:"event-card-title"},[t._v(t._s(n.title))]),t._v(" "),e("div",{staticClass:"event-meta"},[e("div",{staticClass:"meta-item"},[e("i",{staticClass:"material-icons calendar-icon"},[t._v("calendar_month")]),t._v(" "),e("span",[t._v(t._s(t.formatDate(n.date)))])]),t._v(" "),e("div",{staticClass:"meta-item"},[e("i",{staticClass:"material-icons clock-icon"},[t._v("schedule")]),t._v(" "),e("span",[t._v(t._s(t.formatTime(n.date)))])]),t._v(" "),e("div",{staticClass:"event-status"},[t._v("\n                      "+t._s(n.badgeType||"ONLINE")+"\n                    ")])]),t._v(" "),e("div",{staticClass:"countdown-section"},[e("p",{staticClass:"countdown-label"},[t._v("WEBINAR DIMULAI DALAM")]),t._v(" "),e("div",{staticClass:"countdown-timer"},[e("div",{staticClass:"countdown-unit"},[e("span",{staticClass:"countdown-value"},[t._v(t._s(t.getCountdown(n.date).days))]),t._v(" "),e("span",{staticClass:"countdown-unit-label"},[t._v("DAYS")])]),t._v(" "),e("div",{staticClass:"countdown-unit"},[e("span",{staticClass:"countdown-value"},[t._v(t._s(t.getCountdown(n.date).hours))]),t._v(" "),e("span",{staticClass:"countdown-unit-label"},[t._v("HOURS")])]),t._v(" "),e("div",{staticClass:"countdown-unit"},[e("span",{staticClass:"countdown-value"},[t._v(t._s(t.getCountdown(n.date).minutes))]),t._v(" "),e("span",{staticClass:"countdown-unit-label"},[t._v("MIN")])]),t._v(" "),e("div",{staticClass:"countdown-unit"},[e("span",{staticClass:"countdown-value"},[t._v(t._s(t.getCountdown(n.date).seconds))]),t._v(" "),e("span",{staticClass:"countdown-unit-label"},[t._v("SEC")])])])]),t._v(" "),e("div",{staticClass:"event-footer"},[e("div",{staticClass:"event-price"},[e("span",{staticClass:"price-label"},[t._v("Rp "+t._s(t.formatPrice(n.originalPrice)))]),t._v(" "),e("span",{staticClass:"final-price"},[t._v("Rp "+t._s(t.formatPrice(n.currentPrice)))])]),t._v(" "),e("button",{staticClass:"btn-register",on:{click:function(e){return t.goToDetail(n.slug)}}},[t._v("\n                      Daftar Sekarang\n                    ")])])])])})),0),t._v(" "),e("div",{staticClass:"view-more-section"},[e("a",{staticClass:"view-more-link",attrs:{href:"/event/".concat(n)}},[t._v("Lihat lebih lengkap "),e("span",{staticClass:"material-icons arrow"},[t._v("east")])])])]:t._e()],2)}))],2)])])}),[function(){var t=this._self._c;return t("div",{staticClass:"loading-state"},[t("p",[this._v("Loading events...")])])}],!1,null,"5d54bc8f",null);e.default=component.exports}}]);

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.