PageSourceSearch

https://www.countrysideautorepair.net/member/6611.3d4c7a0764fcffef.js

js countrysideautorepair.net collected 2026-10-02 02:05:55 UTC 16,771 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6611],{86611:(io,P,p)=>{p.r(P),p.d(P,{UsedCouponsPageModule:()=>oo});var x=p(96814),Z=p(56223),_=p(23498),T=p(81896),U=p(15861),I=p(31418),o=p(65879),y=p(25472),k=p(27823),J=p(20781),E=p(69222),M=p(22090),S=p(31413),q=p(30042);const w=["content"];function Q(n,r){if(1&n){const i=o.EpF();o.TgZ(0,"ion-buttons",14)(1,"ion-button",15),o.NdJ("click",function(){o.CHM(i);const e=o.oxw();return o.KtG(e.go_to_activate_code_page("used"))}),o.TgZ(2,"span"),o._uU(3,"Activate Code"),o.qZA(),o._UZ(4,"i",16),o.qZA()()}}function Y(n,r){1&n&&(o.TgZ(0,"ion-item")(1,"ion-text",19),o._UZ(2,"ion-skeleton-text",20),o.qZA(),o.TgZ(3,"ion-avatar",19),o._UZ(4,"ion-skeleton-text",21),o.qZA(),o.TgZ(5,"ion-label")(6,"h2"),o._UZ(7,"ion-skeleton-text",21),o.qZA(),o.TgZ(8,"h3"),o._UZ(9,"ion-skeleton-text",21),o.qZA(),o.TgZ(10,"p"),o._UZ(11,"ion-skeleton-text",21),o.qZA()()())}function D(n,r){if(1&n&&(o.TgZ(0,"div",17)(1,"ion-list"),o.YNc(2,Y,12,0,"ion-item",18),o.qZA()()),2&n){const i=o.oxw();o.xp6(2),o.Q6J("ngForOf",i.common.empty_array)}}function N(n,r){1&n&&o._UZ(0,"i",36)}function B(n,r){1&n&&o._UZ(0,"i",36),2&n&&o.Udp("visibility","hidden")}function O(n,r){if(1&n&&(o.TgZ(0,"ion-avatar",19),o._UZ(1,"img",37),o.qZA()),2&n){const i=o.oxw().$implicit;o.xp6(1),o.Q6J("src",i.coupon_image_src,o.LSH)}}function R(n,r){if(1&n&&(o.TgZ(0,"ion-thumbnail",19),o._UZ(1,"img",37),o.qZA()),2&n){const i=o.oxw(2).$implicit;o.xp6(1),o.Q6J("src",i.vehicle_make_logo,o.LSH)}}function F(n,r){if(1&n&&(o.TgZ(0,"p",31),o._uU(1),o.qZA()),2&n){const i=o.oxw(2).$implicit;o.xp6(1),o.Oqu(i.vehicle_trim)}}function G(n,r){if(1&n&&(o.TgZ(0,"ion-item",38),o.YNc(1,R,2,1,"ion-thumbnail",29),o.TgZ(2,"ion-label",39)(3,"h4")(4,"strong"),o._uU(5),o.qZA()(),o.YNc(6,F,2,1,"p",40),o.qZA()()),2&n){const i=o.oxw().$implicit;o.xp6(1),o.Q6J("ngIf",""!=i.vehicle_make_logo),o.xp6(4),o.lnq("",i.vehicle_year,"/",i.vehicle_make,"/",i.vehicle_model,""),o.xp6(1),o.Q6J("ngIf",""!=i.vehicle_trim)}}function H(n,r){if(1&n){const i=o.EpF();o.TgZ(0,"ion-item-option",41),o.NdJ("click",function(){o.CHM(i);const e=o.oxw().$implicit,c=o.oxw(2);return o.KtG(c.confirm_coupon_mark_as_used(e.id,e.voucher_act_id,e.used_msg,e.coupon_status,e.promo_code))}),o.TgZ(1,"ion-label",31),o._UZ(2,"i",42),o.TgZ(3,"p"),o._uU(4,"Mark As"),o._UZ(5,"br"),o._uU(6,"Used"),o.qZA()()()}}const K=function(n){return{"no-image":n}};function L(n,r){if(1&n){const i=o.EpF();o.ynx(0),o.TgZ(1,"ion-item-sliding")(2,"ion-item",25),o.NdJ("click",function(){const c=o.CHM(i).$implicit,s=o.oxw(2);return o.KtG(s.go_to_coupon_detail_page(c.id))}),o.TgZ(3,"ion-text",26),o.YNc(4,N,1,0,"i",27),o.YNc(5,B,1,2,"i",28),o.qZA(),o.YNc(6,O,2,1,"ion-avatar",29),o.TgZ(7,"ion-label")(8,"h2")(9,"ion-text",30)(10,"strong",31),o._uU(11),o.qZA()()(),o.TgZ(12,"h3",31),o._uU(13),o.qZA(),o.TgZ(14,"div",31)(15,"ion-text",32)(16,"small"),o._uU(17),o.qZA()()(),o.TgZ(18,"div",31)(19,"ion-text",32)(20,"small"),o._uU(21),o.qZA()()(),o.YNc(22,G,7,5,"ion-item",33),o.qZA()(),o.TgZ(23,"ion-item-options",34),o.YNc(24,H,7,0,"ion-item-option",35),o.qZA()(),o.BQk()}if(2&n){const i=r.$implicit;o.xp6(2),o.Q6J("ngClass",o.VKq(10,K,""==i.coupon_image_src)),o.xp6(2),o.Q6J("ngIf","1"==i.status),o.xp6(1),o.Q6J("ngIf","1"!=i.status),o.xp6(1),o.Q6J("ngIf",i.coupon_image_src&&""!=i.coupon_image_src),o.xp6(5),o.Oqu(i.Qty),o.xp6(2),o.Oqu(i.coupon_title),o.xp6(4),o.hij("Expires: ",i.expire_date,""),o.xp6(4),o.Oqu(i.coupon_name),o.xp6(1),o.Q6J("ngIf",i.is_vehicle_voucher_activated_case),o.xp6(2),o.Q6J("ngIf","member_signup"!=i.coupon_type&&"0"==i.status)}}function $(n,r){1&n&&(o.TgZ(0,"ion-item",43)(1,"ion-label"),o._uU(2," No expired or used coupons "),o.qZA()())}function j(n,r){if(1&n&&(o.TgZ(0,"ion-list",22),o.YNc(1,L,25,12,"ng-container",23),o.YNc(2,$,3,0,"ion-item",24),o.qZA()),2&n){const i=o.oxw();o.xp6(1),o.Q6J("ngForOf",i.coupon_list_data)("ngForTrackBy",i.trackByListFn),o.xp6(1),o.Q6J("ngIf",i.coupon_list_data&&0===i.coupon_list_data.length)}}function z(n,r){if(1&n){const i=o.EpF();o.TgZ(0,"ion-infinite-scroll",44),o.NdJ("ionInfinite",function(e){o.CHM(i);const c=o.oxw();return o.KtG(c.load_coupons(e))}
1),o._UZ(1,"ion-infinite-scroll-content"),o.qZA()}}const V=[{path:"",component:(()=>{var n;class r{constructor(t,e,c,s,m,a,l,u,d){this.nav=t,this.activatedroute=e,this.constant=c,this.common=s,this.applicationStorage=m,this.events=a,this.alertCtrl=l,this.platform=u,this.changeRef=d,this.is_show_fetch_loading_icon=!0,this.coupon_list_data=null,this.page=1,this.is_more_coupon=!1,this.is_background_load=!1,this.mode="used"}register_back_button(){this.platform.backButton.subscribeWithPriority(10,()=>{this.common.openModelArray&&this.common.openModelArray.length>0?(this.common.openModelArray.forEach((t,e)=>{t.dismiss()}),setTimeout(()=>{this.common.openModelArray=[]},100)):this.go_to_MemberHomePage()})}go_to_MemberHomePage(){this.nav.navigateRoot("/member-home",{queryParams:{},animated:!1,animationDirection:"forward"})}logged_in_callback(t){this.common.subscriber_id=t.subscriber_id,this.common.customer_id=t.customer_id,this.common.subscriber_data=t.subscriber_data,this.common.customer_data=t.customer_data}get_profile_details(t){this.common.get_logged_in_user_data(e=>{t&&setTimeout(()=>{t.target.complete()},0),this.logged_in_callback(e)})}load_coupons(t){var e=!1,c=this.is_background_load,s=this.page;c&&(s=this.common.current_used_coupon_page_no),this.common.used_coupon_list_page_scroll_from_top&&""!=this.common.used_coupon_list_page_scroll_from_top&&(e=!0);var m={subscriber_id:this.common.subscriber_id,customer_id:this.common.customer_id,page:s,mode:this.mode,is_background_load:c};this.is_background_load=!1,this.common.post("get_coupons",{post_data:m}).subscribe(a=>{this.is_show_fetch_loading_icon=!1;var l={};if(t&&setTimeout(()=>{t.target.complete()},0),"success"==a.status){this.common.unread_msg_count=a.unread_msg_count,this.common.unread_chat_msg_count=a.unread_chat_msg_count,this.common.total_unread_count=a.total_unread_count,this.common.open_invoice_count=a.open_invoice_count,this.common.unread_coupon_count=a.unread_coupon_count,this.common.top_gear_count=parseInt(this.common.open_invoice_count)+parseInt(this.common.unread_coupon_count),this.common.SetBadge(this.common.total_unread_count);var u=a.coupon_list_data;if(null==this.coupon_list_data||"1"==s||c)this.coupon_list_data=u;else for(let b of u){var d=!0;for(let C of this.coupon_list_data)C.id==b.id&&(d=!1);d&&this.coupon_list_data.push(b)}if(this.is_more_coupon=a.is_more_coupon,this.page=a.next_page,this.common.is_more_used_coupon=a.is_more_coupon,this.common.current_used_coupon_page_no=s,e){var h=this.common.used_coupon_list_page_scroll_from_top;setTimeout(()=>{this.content.scrollToPoint(0,h,0)}),this.common.used_coupon_list_page_scroll_from_top=""}this.common.used_coupon_list_data=[];var g=0,f=this.coupon_list_data.length,v=this.common.global_var_max_length;for(f<v&&(v=f),g=0;g<v;g++)this.common.used_coupon_list_data.push(this.coupon_list_data[g]);this.common.is_used_coupon_list_loaded=!0}else"member_not_found"==a.status?(a.email&&""!=a.email&&(this.common.loginform_email=a.email),this.events.publish("on_logout",{message:a.message})):(l.message=a.message,l.status="error",this.common.show_toast_success_error_msg(l))},a=>{this.is_show_fetch_loading_icon=!1,t&&setTimeout(()=>{t.target.complete()},0)})}onScroll(){}change_coupon_list_mode(t){"unused"==t?this.go_to_unused_coupons_page():this.go_to_used_coupons_page()}go_to_unused_coupons_page(){this.nav.navigateRoot("/unused-coupons",{queryParams:{},animated:!1,animationDirection:"forward"})}go_to_used_coupons_page(){this.nav.navigateRoot("/used-coupons",{queryParams:{},animated:!1,animationDirection:"forward"})}refresh_coupon_list(t){t&&"show_icon"==t&&(this.is_show_fetch_loading_icon=!0,t=""),this.page=1,this.is_more_coupon=!1,this.load_coupons(t)}go_to_coupon_detail_page(t){var e=this;return(0,U.Z)(function*(){const c=yield e.content.getScrollElement();e.common.used_coupon_list_page_scroll_from_top=c.scrollTop,e.common.used_coupon_list_data=e.coupon_list_data;var s={};
1s.coupon_id=t,e.nav.navigateRoot("/coupon-detail",{queryParams:s,animated:!1,animationDirection:"forward"})})()}textToBase64Barcode(t){var e=document.createElement("canvas");return I(e,t,{format:"CODE128",displayValue:!1}),e.toDataURL("image/png")}confirm_coupon_mark_as_used(t,e,c,s,m){var a=this;return(0,U.Z)(function*(){var l='<div class="coupon-popup-tag ion-text-center">';if(""!=m){let h=a.textToBase64Barcode(m);l+='<div class="coupon-popup-head"><div class="footnote-text">Present at the time of payment</div></div>',""!=h&&(l+='<img class="barcode-image" src='+h+" />"),l+='<p class="promo-code">'+m+"</p>"}l+="<h2>Are you sure you want to mark this coupon as USED?</h2>",l+="<p><small>This cannot be undone</small></p>",l+="</div>",(yield a.alertCtrl.create({message:l,buttons:[{text:"Cancel",role:"cancel",cssClass:"button-cancel",handler:()=>{a.slidingItem.closeOpened()}},{text:"Yes, I'm Sure",handler:()=>{a.slidingItem.closeOpened();const h=a.coupon_list_data.findIndex(g=>g.id==t);if(h>=0){let g=a.coupon_list_data[h];g.status="1",a.coupon_list_data[h]=g;const f=a.common.used_coupon_list_data.findIndex(v=>v.id==t);f>=0&&(a.common.used_coupon_list_data[f]=g),a.changeRef.detectChanges(),a.coupon_mark_as_used(t,e,s)}}}]})).present()})()}coupon_mark_as_used(t,m,c){var s=this;""!=t&&this.common.post("coupon_mark_as_used",{post_data:{subscriber_id:this.common.subscriber_id,customer_id:this.common.customer_id,id:t,voucher_act_id:m}}).subscribe(function(){var l=(0,U.Z)(function*(u){s.common.hideLoading();var d={};"success"==u.status?(s.common.unread_msg_count=u.unread_msg_count,s.common.unread_chat_msg_count=u.unread_chat_msg_count,s.common.total_unread_count=u.total_unread_count,s.common.open_invoice_count=u.open_invoice_count,s.common.unread_coupon_count=u.unread_coupon_count,s.common.top_gear_count=parseInt(s.common.open_invoice_count)+parseInt(s.common.unread_coupon_count),s.common.SetBadge(s.common.total_unread_count),d.message=u.message,d.status="success",s.common.show_toast_success_error_msg(d),s.get_profile_details()):"member_not_found"==u.status?(u.email&&""!=u.email&&(s.common.loginform_email=u.email),s.events.publish("on_logout",{message:u.message})):(d.message=u.message,d.status="error",s.common.show_toast_success_error_msg(d))});return function(u){return l.apply(this,arguments)}}(),l=>{this.common.hideLoading()})}go_to_activate_code_page(t){this.common.prev_page_type=t,this.nav.navigateRoot("/activate-code",{queryParams:{},animated:!1,animationDirection:"forward"})}ionViewDidEnter(){this.common.activeBarName="couponmenu"}ngOnInit(){this.activatedroute.queryParams.subscribe(t=>{this.common.current_page_url="/used-coupons",this.common.current_page_name="UsedCouponsPage",this.common.current_page_params=t,this.events.publish("CHECK_PRIVATE_PAGE_TOKENDATA");var e=this.applicationStorage.getAppData(),c=this.applicationStorage.getToken(),s=this.applicationStorage.getPushwooshToken(),m=this.applicationStorage.isPushEnabled(),a=this.applicationStorage.getSubscriberData(),l=this.applicationStorage.getSubscriberId(),u=this.applicationStorage.getCustomerData(),d=this.applicationStorage.getCustomerId();Promise.all([e,c,s,m,a,l,u,d]).then(([h,g,f,v,b,C,to,no])=>{if(this.common.appData=h||null,this.common.token=g,this.common.push_token=f,this.common.isPushEnabled=v,this.common.subscriber_id=C,this.common.customer_id=no,this.common.subscriber_data=b,this.common.customer_data=to,this.common.appData&&(this.common.appData.shop_info&&(this.common.shop_info=this.common.appData.shop_info,this.common.signup_coupon_data=this.common.shop_info.signup_coupon_data,this.common.birthday_coupon_data=this.common.shop_info.birthday_coupon_data,this.common.smstext_coupon_data=this.common.shop_info.smstext_coupon_data,this.common.reward_coupon_data=this.common.shop_info.reward_coupon_data,this.common.referral_reward_coupon=this.common.shop_info.referral_reward_coupon,this.common.datasyncsettings=this.common.shop_info.datasyncsettings),this.common.appData.css_info&&this.common.applyCss(this.common.appData.css_info),this.get_profile_details()),this.common.is_used_coupon_list_loaded)if(this.is_show_fetch_loading_icon=!1,null==this.common.used_coupon_list_data||this.common.isEmptyObject(this.common.used_coupon_list_data))this.coupon_list_data=[];else{this.coupon_list_data=this.common.used_coupon_list_data;var A="";if(this.common.is_more_used_coupon&&(A=parseInt(this.common.current_used_coupon_page_no)+1),this.page=A,this.is_more_coupon=this.common.is_more_used_coupon,this.is_background_load=!0,this.common.used_coupon_list_page_scroll_from_top&&""!=this.common.used_coupon_list_page_scroll_from_top){var eo=this.common.used_coupon_list_page_scroll_from_top;setTimeout(()=>{this.content.scrollToPoint(0,eo,0)}),this.common.used_coupon_list_page_scroll_from_top=""}}this.load_coupons()}),this.events.publish("clear_signup_data"),this.register_back_button(),this.common.hide_open_model()})}trackByListFn(t,e){return e?e.id:t}}return(n=r).\u0275fac=function(t){return new(t||n)(o.Y36(y.SH),o.Y36(T.gz),o.Y36(k.y),o.Y36(J.v),o.Y36(E.g),o.Y36(M.n),o.Y36(_.Br),o.Y36(y.t4),o.Y36(o.sBO))},n.\u0275cmp=o.Xpm({type:n,selectors:[["app-used-coupons"]],viewQuery:function(t,e){if(1&t&&(
1o.Gf(w,5),o.Gf(_.td,5)),2&t){let c;o.iGM(c=o.CRH())&&(e.content=c.first),o.iGM(c=o.CRH())&&(e.slidingItem=c.first)}},decls:21,vars:6,consts:[[1,"secondary"],["size","large"],[1,"secondary","segment-bar"],["slot","start",3,"ngModel","ngModelChange"],["icon-start","","value","unused"],["icon-end","","value","used"],["slot","end",4,"ngIf"],[3,"scrollEvents","ionScroll","ionScrollStart","ionScrollEnd"],["content",""],["slot","fixed",3,"ionRefresh"],["pullingText","Refresh Coupon List"],["class","custom-skeleton-text",4,"ngIf"],["class","used-coupon-list instant-list",4,"ngIf"],[3,"ionInfinite",4,"ngIf"],["slot","end"],[3,"click"],[1,"fas","fa-plus-circle","end","large"],[1,"custom-skeleton-text"],[4,"ngFor","ngForOf"],["slot","start"],["animated","",1,"icon"],["animated",""],[1,"used-coupon-list","instant-list"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","no-item","lines","none",4,"ngIf"],["button","",3,"ngClass","click"],["color","danger","slot","start"],["class","fa fa-check-circle",4,"ngIf"],["class","fa fa-check-circle",3,"visibility",4,"ngIf"],["slot","start",4,"ngIf"],["color","danger"],[1,"ion-text-wrap"],["color","medium"],["lines","none","class","ion-no-padding bg-none short-vehicle-details",4,"ngIf"],["side","end"],["color","danger",3,"click",4,"ngIf"],[1,"fa","fa-check-circle"],[3,"src"],["lines","none",1,"ion-no-padding","bg-none","short-vehicle-details"],[1,"ion-no-margin","ion-text-wrap"],["class","ion-text-wrap",4,"ngIf"],["color","danger",3,"click"],[1,"fas","fa-check-circle"],["lines","none",1,"no-item"],[3,"ionInfinite"]],template:function(t,e){if(1&t){const c=o.EpF();o.TgZ(0,"ion-header"),o._UZ(1,"private-header-top-bar"),o.TgZ(2,"ion-toolbar",0)(3,"ion-title",1),o._uU(4,"Coupons"),o.qZA()(),o.TgZ(5,"ion-toolbar",2)(6,"ion-segment",3),o.NdJ("ngModelChange",function(m){return e.change_coupon_list_mode(m)}),o.TgZ(7,"ion-segment-button",4),o._uU(8,"Unused"),o.qZA(),o.TgZ(9,"ion-segment-button",5),o._uU(10,"Used/Exp."),o.qZA()(),o.YNc(11,Q,5,0,"ion-buttons",6),o.qZA()(),o.TgZ(12,"ion-content",7,8),o.NdJ("ionScroll",function(){return e.onScroll()})("ionScrollStart",function(){o.CHM(c);const m=o.MAs(13);return o.KtG(e.common.on_scroll_ion_content(m))})("ionScrollEnd",function(){o.CHM(c);const m=o.MAs(13);return o.KtG(e.common.on_scroll_ion_content(m))}),o.TgZ(14,"ion-refresher",9),o.NdJ("ionRefresh",function(m){return e.refresh_coupon_list(m)}),o._UZ(15,"ion-refresher-content",10),o.qZA(),o.YNc(16,D,3,1,"div",11),o.YNc(17,j,3,3,"ion-list",12),o.YNc(18,z,2,0,"ion-infinite-scroll",13),o.qZA(),o.TgZ(19,"ion-footer"),o._UZ(20,"private-bottom-bar"),o.qZA()}2&t&&(o.xp6(6),o.Q6J("ngModel",e.mode),o.xp6(5),o.Q6J("ngIf",e.common.shop_info.is_show_activate_code_menu),o.xp6(1),o.Q6J("scrollEvents",!0),o.xp6(4),o.Q6J("ngIf",e.is_show_fetch_loading_icon),o.xp6(1),o.Q6J("ngIf",!e.is_show_fetch_loading_icon),o.xp6(1),o.Q6J("ngIf",e.is_more_coupon))},dependencies:[x.mk,x.sg,x.O5,Z.JJ,Z.On,_.BJ,_.YG,_.Sm,_.W2,_.fr,_.Gu,_.ju,_.MB,_.Ie,_.u8,_.IK,_.td,_.Q$,_.q_,_.nJ,_.Wo,_.cJ,_.GO,_.CK,_.yW,_.Bs,_.wd,_.sr,_.QI,S.t,q.O]}),r})()}];let W=(()=>{var n;class r{}return(n=r).\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({imports:[T.Bz.forChild(V),T.Bz]}),r})();var X=p(10822);let oo=(()=>{var n;class r{}return(n=r).\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({imports:[x.ez,Z.u5,_.Pc,W,X.K]}),r})()}}]);

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.