1"use strict";(self.webpackChunkDCP_Web=self.webpackChunkDCP_Web||[]).push([["libs_general-pages_src_lib_components_our-partner_components_partner-discounts_partner-discou-cf4a82"],{45821:(w,l,a)=>{a.r(l),a.d(l,{PartnerDiscountsComponent:()=>A});var t=a(23214),c=a(98434),p=a(83801),m=a(92947),_=a(68018),u=a(29040),f=a(56132),E=a(86182),d=a(20786),b=a(76603),R=a(70011),h=a(39644),C=a(39890),O=a(13382),g=a(38109);const M=(o,i)=>({"border-1px-main-light-blue":o,"border-1px-text-light-gray":i});function P(o,i){if(1&o){const n=t.RV6();t.qex(0),t.j41(1,"div",18),t.bIt("click",function(){const r=t.eBV(n).$implicit,s=t.XpG();return t.Njj(s.selectedCategory(r))})("keydown.enter",function(){const r=t.eBV(n).$implicit,s=t.XpG();return t.Njj(s.selectedCategory(r))}),t.nrm(2,"art-icon",19)(3,"div",20),t.k0s(),t.bVm()}if(2&o){const n=i.$implicit,e=t.XpG();t.R7$(),t.Y8G("ngClass",t.l_i(4,M,n.category_id===e.selectedCategoryId,n.category_id!==e.selectedCategoryId)),t.R7$(),t.Y8G("icon",n.icon)("size","md"),t.R7$(),t.Y8G("translate","RM_HOME_PAGE.HEADER.PARTNER."+n.category_id)}}function I(o,i){1&o&&(t.j41(0,"div",21),t.nrm(1,"art-alert",22),t.nI1(2,"translate"),t.k0s()),2&o&&(t.R
17$(),t.Y8G("text",t.bMT(2,1,"CONFIRMATION.COPIED_TO_CLIP_BOARD")))}function T(o,i){if(1&o){const n=t.RV6();t.j41(0,"a",39),t.bIt("click",function(){t.eBV(n);const r=t.XpG(2);return t.Njj(r.goToLogin())})("keydown.enter",function(){t.eBV(n);const r=t.XpG(2);return t.Njj(r.goToLogin())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&o&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"RM_HOME_PAGE.HEADER.PARTNER.LOGIN_FOR_VOUCHER")," "))}function v(o,i){if(1&o){const n=t.RV6();t.j41(0,"div",40)(1,"h4",41),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"p",42)(5,"span",43),t.EFF(6),t.k0s(),t.j41(7,"span",44)(8,"art-svg-icon",45),t.bIt("clickAction",function(){t.eBV(n);const r=t.XpG().$implicit,s=t.XpG();return t.Njj(s.copyToClipBoard(null==r?null:r.voucher_code))}),t.k0s()()()()}if(2&o){const n=t.XpG().$implicit;t.R7$(2),t.SpI(" ",t.bMT(3,2,"RM_HOME_PAGE.HEADER.PARTNER.VOUCHER_CODE")," "),t.R7$(4),t.SpI(" ",n.voucher_code," ")}}function D(o,i){if(1&o&&(t.j41(0,"li"),t.EFF(1),t.k0s()),2&o){const n=i.$implicit;t.R7$(),t.SpI(" ",n.displayText," ")}}function y(o,i){if(1&o&&(t.j41(0,"div",23)(1,"div",24),t.nrm(2,"img",25),t.j41(3,"div")(4,"h5",26),t.EFF(5),t.k0s(),t.j41(6,"p",27),t.EFF(7),t.k0s(),t.DNE(8,T,3,3,"a",28),t.k0s(),t.nrm(9,"img",29),t.DNE(10,v,9,4,"div",30),t.j41(11,"div",31)(12,"h6",32),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.j41(15,"ul",33),t.DNE(16,D,2,1,"li",11),t.k0s()(),t.j41(17,"div")(18,"h6",34),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.j41(21,"span",35),t.nrm(22,"art-icon",36),t.j41(23,"a",37),t.EFF(24),t.k0s()(),t.j41(25,"span",38)(26,"a",37),t.EFF(27),t.nI1(28,"translate"),t.k0s()()()()()),2&o){const n=i.$implicit,e=t.XpG();t.R7$(2),t.Y8G("src",n.logo,t.B4B),t.R7$(3),t.SpI(" ",n.title," "),t.R7$(2),t.SpI(" ",n.discountInfo," "),t.R7$(),t.Y8G("ngIf",!e.showVoucherCode),t.R7$(),t.Y8G("src",n.image,t.B4B),t.R7$(),t.Y8G("ngIf",e.showVoucherCode),t.R7$(3),t.SpI(" ",t.bMT(14,15,"RM_HOME_PAGE.HEADER.PARTNER.OFFERS")," "),t.R7$(3),t.Y8G("ngForOf",n.offers),t.R7$(3),t.SpI(" ",t.bMT(20,17,"RM_HOME_PAGE.HEADER.PARTNER.PARTNERS_CONTACT_INFO")," "),t.R7$(3),t.Y8G("size",e.iconSize)("icon","world-wide-icon-partners"),t.R7$(),t.Y8G("href",n.website,t.B4B),t.R7$(),t.JRh(n.website),t.R7$(2),t.Y8G("href",n.location,t.B4B),t.R7$(),t.SpI(" ",t.bMT(28,19,"RM_HOME_PAGE.HEADER.PARTNER.GET_LOCATION"),"")}}let A=(()=>{class o{clipboard=(0,t.WQX)(p.B0);languageService=(0,t.WQX)(u.g);discountsService=(0,t.WQX)(f.K);router=(0,t.WQX)(m.Ix);currentUrl;iconSize="xs";breadcrumbItems=[{label_ar:"\u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629",label_en:"Home",link:"/"},{label_ar:"\u0634\u0631\u0643\u0627\u0624\u0646\u0627",label_en:"Our Partners",link:"/partner-discounts"}];cardsFromStrapi;AllCategoryItems;partnersCategory=[];selectedCategoryId="all_partners";merchantCategoryList;showVoucherCode=!1;isCopied=!1;constructor(){(0,t.QZP)(()=>{this.getPartnerDiscounts()})}ngOnInit(){this.currentUrl=this.languageService.translateRoute("/partner-discounts"),this.partnersCategory=this.discountsService.partners_Category,this.merchantCategoryList=this.discountsService.partners_Category_list;const n=localStorage.getItem(g.Hh.USER),e=localStorage.getItem(g.Hh.SME_LOGIN);if(n||e){const r=JSON.parse(n),s=JSON.parse(e);this.showVoucherCode=!(!r&&!s)}else this.showVoucherCode=!1}getPartnerDiscounts(){this.discountsService.getPartnerDiscounts(this.languageService.currentLang()).subscribe(n=>{this.cardsFromStrapi=n,this.AllCategoryItems=n})}goToLogin(){localStorage.setItem("loginRedirect",`${this.languageService.currentLang()}${d.hu.PARTNER_DISCOUNTS}`),this.router.navigateByUrl(this.languageService.translateRoute(E.A.LOGIN_INDIVIDUAL))}copyToClipBoard(n){this.clipboard.copy(n),this.isCopied=!0,setTimeout(()=>this.isCopied=!1,1e3)}goToRegister(){this.router.navigateByUrl(this.languageService.translateRoute(d.hu.PARTNER_REGISTER_FORM))}selectedCategory(n){this.cardsFromList(n.category_id)}onSelectItem(n){this.cardsFromList(n.Id)}cardsFromList(n){this.selectedCategoryId=n,this.cardsFromStrapi="all_partners"!=n?this.AllCategoryItems.filter(e=>e.category_id===n):this.AllCategoryItems}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=t.VBU({type:o,selectors:[["art-app-partner-discounts"]],inputs:{iconSize:"iconSize"},decls:30,vars:31,consts:[[1,"partner-discounts","background-bg-white"],[1,"pt-2"],[1,"container","mt-3"],[3,"breadcrumbs","currentUrl"],[1,"my-5"],[1,"partner-discounts__banner","d-flex","justify-content-between","align-items-center","flex-column","flex-sm-row","flex-md-row","flex-lg-row","gap-3","mb-5"],[1,"font-weight-600","font-size-32","color-main-dark-blue","mb-0"],[1,"font-weight-600","font-size-32","color-advanced"],["contentAlignment","center","customClasses","color-white partner-discounts__banner-btn",3,"clickAction","size","text","variant"],[1,"mt-4"],[1,"RMLoginOptionComponent_login-option","d-flex","flex-row","flex-wrap","justify-content-start","gap-3"],[4,"ngFor","ngForOf"],[1,"d-block","d-sm-none","d-md-none","d-lg-none"],["name","merchantCategory",3,"selectEvent","keyEn","keyAr","label","subLabel","options","placeholder"],[1,"py-4"],["class","m-auto w-800px max-width-100",4,"ngIf"],[1,"row","g-4"],["class","col-md-4",4,"ngFor","ngForOf"],["tabindex","0",1,"d-none","d-sm-block","d-md-block","d-lg-block","RMLoginOptionComponent_sme","background-bg-white","font-size-20","font-weight-600","color-text-main","rounded-20","text-start","cursor-pointer","text-capitalize",3,"click","keydown.enter","ngClass"],[3,"icon","size"],[1,"mt-3",3,"translate"],[1,"m-auto","w-800px","max-width-100"],["customClasses","fixed-bottom position-relative",3,"text"],[1,"col-md-4"],[1,"background-bg-card-white","card","gap-2a","h-100","p-3","rounded-4"],["alt","Logo",1,"card-logo-top",3,"src"],[1,"color-main-dark-blue","font-size-3a","font-weight-600","mb-0"],[1,"color-main-dark-blue","font-size-16","font-weight-400","mb-0"],["class","ms-2 font-size-14 font-weight-600 text-decoration-underline","tabindex","0",3,"click","keydown.enter",4,"ngIf"],["alt","card_image",1,"card-img-top","rounded-4",3,"src"],["class","rounded-4 background-bg-light-blue gap-2 p-3 d-flex justify-content-between align-content-start align-items-center",4,"ngIf"],[1,"pt-1"],[1,"font-weight-600","color-main-dark-blue","font-size-16"],[1,"font-size-16","font-weight-400","mb-2","color-text-secondary","offer_list"],[1,"color-main-dark-blue","font-size-16","font-weight-600"],[1,"d-flex"],[3,"size","icon"],["target","_blank",1,"ms-2","font-size-14","font-weight-600","text-decoration-underline",3,"href"],[1,"d-flex","mt-2"],["tabindex","0",1,"ms-2","font-size-14","font-weight-600","text-decoration-underline",3,"click","keydown.enter"],[1,"rounded-4","background-bg-light-blue","gap-2","p-3","d-flex","justify-content-between","align-content-start","align-items-center"],[1,"color-main-dark-blue","font-size-16","font-weight-600","mb-0"],[1,"copyToClipBoard","background-bg-white","py-2","px-3","mb-0","rounded-8","mt-0","d-flex","justify-content-end","gap-1"],[1,"color-main-dark-blue"],["role","button",1,"mx-2"],["size","xs","icon","copy",3,"clickAction"]],template:function(e,r){1&e&&(t.j41(0,"section",0)(1,"div",1)(2,"div",2),t.nrm(3,"art-breadcrumb",3),t.j41(4,"div",4)(5,"div",5)(6,"h1",6),t.EFF(7),t.nI1(8,"translate"),t.j41(9,"span",7),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.nrm(12,"br"),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.j41(15,"art-app-art-button",8),t.nI1(16,"translate"),t.bIt("clickAction",function(){return r.goToRegister()}),t.k0s()(),t.j41(17,"div",9)(18,"div",10),t.DNE(19,P,4,7,"ng-container",11),t.k0s(),t.j41(20,"div",12)(21,"art-custom-dropdown",13),t.nI1(22,"translate"),t.nI1(23,"translate"),t.nI1(24,"translate"),t.bIt("selectEvent",function(x){return r.onSelectItem(x)}),t.k0s()()(),t.j41(25,"div")(26,"div",14),t.DNE(27,I,3,3,"div",15),t.j41(28,"div",16),t.DNE(29,y,29,21,"div",17),t.k0s()()()()()()()),2&e&&(t.R7$(3),t.Y8G("breadcrumbs",r.breadcrumbItems)("currentUrl",r.currentUrl),t.R7$(4),t.SpI(" ",t.bMT(8,17,"RM_HOME_PAGE.HEADER.PARTNER.ENABLING_OUR")," "),t.R7$(3),t.JRh(t.bMT(11,19,"RM_HOME_PAGE.HEADER.PARTNER.PARTNERSHIPS")),t.R7$(3),t.SpI(" ",t.bMT(14,21,"RM_HOME_PAGE.HEADER.PARTNER.TO_MEET_YOUR_REQUIREMENTS")," "),t.R7$(2),t.Y8G("size","md")("text",t.bMT(16,23,"RM_HOME_PAGE.HEADER.PARTNER.BECOME_PARTNER"))("variant","primary"),t.R7$(4),t.Y8G("ngForOf",r.partnersCategory),t.R7$(2),t.Y8G("keyEn","Name_en")("keyAr","Name_ar")("label",t.bMT(22,25,"COMMON.CATEGORY"))("subLabel",t.bMT(23,27,"COMMON.MERCHANT_CATEGORY_PLACEHOLDER"))("options",r.merchantCategoryList)("placeholder",t.bMT(24,29,"MMP.PLEASE_SELECT")),t.R7$(6),t.Y8G("ngIf",r.isCopied),t.R7$(2),t.Y8G("ngForOf",r.cardsFromStrapi))},dependencies:[c.MD,c.YU,c.Sq,c.bT,b.C,R.h,h.D,C.A,O.R,_.h,_.D9,_.Mm],styles:["[_ngcontent-%COMP%]:root{--main-dark-blue: #22447d;--main-light-blue: #009ade;--main-dark-gray: #475973;--bg-light-blue: #f2f9fc;--bg-light-grey: #f7f9fa;--bg-yellow-gray: #f9f9f7;--bg-disabled: #f3f4f6;--bg-card: #f5f7fa;--bg-card-white: #ffffff;--bg-grey: #f3f4f6;--bg-tabby: #edfbf7;--bg-save: #e6f5fc;--bg-white: #ffffff;--bg-tint-gray: #fbfbfb;--text-main: #22447d;--text-secondary: #566880;--text-dark-gray: #aeb8c7;--gold: #a88b38;--calendar-grey-grey-grey-color: rgba(0, 0, 0, .3803921569);--hayatx-color: #de6022;--hayatx-tracking-color: #effaff}.partner-discounts__banner[_ngcontent-%COMP%] art-app-art-button[_ngcontent-%COMP%]{flex-shrink:0;width:100%}@media (min-width: 576px){.partner-discounts__banner[_ngcontent-%COMP%] art-app-art-button[_ngcontent-%COMP%]{width:auto}}@media (max-width: 576px){.partner-discounts__banner[_ngcontent-%COMP%] .partner-discounts__banner-btn{width:100%;min-width:100%}}.card-logo-top[_ngcontent-%COMP%]{width:79.998px;height:35px;flex-shrink:0}.card-img-top[_ngcontent-%COMP%]{height:136.885px;object-fit:cover}.card[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding-left:1rem}.card[_ngcontent-%COMP%] ul.offer_list[_ngcontent-%COMP%]{min-height:100px}a[_ngcontent-%COMP%]{color:#007bff;text-decoration:none;cursor:pointer}a[_ngcontent-%COMP%]:hover{text-decoration:underline}.RMLoginOptionComponent_login-option[_ngcontent-%COMP%] .RMLoginOptionComponent_individual[_ngcontent-%COMP%], .RMLoginOptionComponent_login-option[_ngcontent-%COMP%] .RMLoginOptionComponent_sme[_ng
1content-%COMP%]{width:210px;padding:16px}.copyToClipBoard[_ngcontent-%COMP%]{height:40px;width:fit-content;padding:8px;background-color:#f7f9fa}@media (max-width: 768px){.card-contents[_ngcontent-%COMP%]{flex-direction:column}.end-date[_ngcontent-%COMP%]{margin-left:20px}.copyToClipBoard[_ngcontent-%COMP%]{width:100%;justify-content:space-between!important}.date-payment[_ngcontent-%COMP%]{margin:0!important}.Coverage[_ngcontent-%COMP%]{flex-direction:row-reverse!important;justify-content:start!important}}"]})}return o})()}}]);
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.