PageSourceSearch

https://www.popsy.app/chunk-O67JMNKE.js

js popsy.app collected 2026-09-24 12:43:54 UTC 55,260 bytes, 1 lines download raw bytes

1import{b as me}from"./chunk-H3I3VFV3.js";import{a as Ce}from"./chunk-XHUVSLX7.js";import{a as he}from"./chunk-2SZXY4L2.js";import{a as ge}from"./chunk-HFPWNV5C.js";import{a as _e}from"./chunk-X3ORAXST.js";import"./chunk-IXBRKA7B.js";import"./chunk-IEHCM4IJ.js";import{a as ue}from"./chunk-JBJJGOUI.js";import"./chunk-MH6QPXXQ.js";import"./chunk-6PDG6MLW.js";import{a as de}from"./chunk-2IRMWN6Y.js";import"./chunk-OKPKEIEC.js";import"./chunk-O7ZYT2BH.js";import"./chunk-K4P2HW3F.js";import"./chunk-YVH7KYD4.js";import"./chunk-VNSN2FFP.js";import{a as pe}from"./chunk-6JKXDCMX.js";import"./chunk-OXSDDBCX.js";import"./chunk-7KSKAG6N.js";import"./chunk-I254FUCD.js";import"./chunk-W4SAIHPH.js";import"./chunk-5OX52UMD.js";import"./chunk-MXHRVII7.js";import"./chunk-4QTQVH57.js";import"./chunk-MS4JTPVI.js";import{a as le}from"./chunk-2EWLA452.js";import"./chunk-EYJYNVRF.js";import{a as ae}from"./chunk-R5NE3VC4.js";import{a as ce,b as se}from"./chunk-WWLVSB7G.js";import{a as re}from"./chunk-OCB4RFIZ.js";import"./chunk-JZOTZR4V.js";import"./chunk-PROHUK77.js";import"./chunk-JZQTF6AY.js";import"./chunk-M5ZOELTG.js";import"./chunk-4X43S6HD.js";import{b as oe}from"./chunk-BTFFCKQN.js";import"./chunk-LJEKTB7Y.js";import{a as fe}from"./chunk-MUYYMWZ2.js";import"./chunk-NXGNWZUJ.js";import"./chunk-HNHEWTOH.js";import{c as ht}from"./chunk-4TLFZBIT.js";import"./chunk-Y7UKFOBD.js";import{a as nt}from"./chunk-DAJ4XMZ3.js";import"./chunk-E4OOEWH6.js";import"./chunk-ZCRYBQQX.js";import"./chunk-T7KQE6HW.js";import{b as gt,d as it}from"./chunk-UDVNABZO.js";import{c as te}from"./chunk-CK4L6HJX.js";import"./chunk-UWROHWTK.js";import"./chunk-GSYJEAVZ.js";import"./chunk-I4YYPFKR.js";import"./chunk-VZS7PRIT.js";import"./chunk-WJK2THVF.js";import"./chunk-TNYTWBPN.js";import"./chunk-KI5KWZ6P.js";import"./chunk-PEU67C6J.js";import{a as ee}from"./chunk-4RQKLANU.js";import"./chunk-U37OFNKH.js";import{a as ie}from"./chunk-PVHJVFG4.js";import"./chunk-2TXMBPSO.js";import{a as ne}from"./chunk-MR6SBMUW.js";import{e as Xt}from"./chunk-624RHLPA.js";import{a as Jt}from"./chunk-I6TFQSWG.js";import"./chunk-JSCSFFY6.js";import"./chunk-A3KR7GWF.js";import"./chunk-5BEEXEIJ.js";import"./chunk-BECIFPPZ.js";import{c as bt,k as qt}from"./chunk-ZH66IXOP.js";import"./chunk-F25Q44KB.js";import{u as Wt}from"./chunk-UGA564ZN.js";import"./chunk-SNPCKK7E.js";import"./chunk-A7LDNCFW.js";import"./chunk-DNYG7EM7.js";import"./chunk-TEFUAKT2.js";import"./chunk-A4GYQBFW.js";import"./chunk-ETNMBXFH.js";import"./chunk-WJZYPAXF.js";import"./chunk-5MKXZXTK.js";import"./chunk-IAHJFMAZ.js";import"./chunk-DF7G2DJU.js";import{a as Yt}from"./chunk-NXU5XRGR.js";import{h as pt,k as ut,m as mt,o as tt}from"./chunk-IJGV6PEH.js";import"./chunk-UXFYXNZB.js";import{b as et}from"./chunk-2PZQVO5M.js";import"./chunk-YSEUWOBF.js";import"./chunk-5UOHIPKD.js";import"./chunk-XTGJWW32.js";import"./chunk-5J364GZE.js";import{q as Zt}from"./chunk-24RBYWHK.js";import{x as Kt}from"./chunk-LYGGRJPP.js";import"./chunk-CLFYICNC.js";import"./chunk-U7N5LJKI.js";import"./chunk-65TISXPA.js";import"./chunk-2MNCRMEG.js";import"./chunk-WAKOINC4.js";import{m as Ut}from"./chunk-CQVGPCJN.js";import"./chunk-2JZU3INV.js";import"./chunk-VU6FXXNN.js";import"./chunk-R65BPLEU.js";import"./chunk-WTQLJPFM.js";import{a as Gt}from"./chunk-66W4FRMO.js";import"./chunk-Q2HHPJLL.js";import"./chunk-WCZ7ODOR.js";import{d as R}from"./chunk-MRPA26HF.js";import"./chunk-QPY6YZD2.js";import"./chunk-YNOYMHTV.js";import"./chunk-RYYSJJVE.js";import{$ as W,f as Ht}from"./chunk-DSTH3QV4.js";import{Ab as r,Bb as m,C as Mt,Cb as Ft,Db as $t,Eb as Lt,Fb as U,Gb as H,Ha as Et,K as wt,Ka as i,Kb as z,Kc as E,Mb as v,N as St,Na as Qt,O as J,Ob as d,Oc as dt,P as Ct,Qa as l,Rb as Vt,Sa as Dt,Sb as zt,Tb as Nt,Wb as _,Ya as M,Yb as s,Zb as P,_b as B,a as $,c as Pt,ca as y,d as N,da as b,ea as Tt,eb as Rt,fb as I,fd as w,hc as yt,hd as Y,id as Q,jc as p,jd as D,ka as At,kc as u,o as L,oa as V,p as st,pb as jt,qb as _t,rb as g,ta as It,tb as h,ua as X,w as Ot,wb as ft,xb as xt,xc as lt,ya as Bt,yb as S,zb as o}from"./chunk-6KO6CXQN.js";import{a as j,b as F}from"./chunk-Q5ZUIUCT.js";function Ie(e,c){if(e&1&&(o(0,"strong",9),s(1),p(2,"amount"),r()),e&2){let t=d(3);i(),B(" ","Trade-in Credit: "+u(2,1,t.buybackOrder?.price??null)," ")}}function Be(e,c){if(e&1&&(o(0,"strong",9),s(1),p(2,"amount"),r()),e&2){let t=d(3);i(),B(" ","\u0631\u0635\u064A\u062F \u0627\u0644\u062A\u062C\u0627\u0631\u0629: "+u(2,1,t.buybackOrder?.price??null)," ")}}function Ee(e,c){e&1&&(o(0,"span",10),s(1,"Send your device within 21 days of receiving your trade-in offer."),r())}function Qe(e,c){e&1&&(o(0,"span",10),s(1,"\u0623\u0631\u0633\u0644 \u062
1C\u0647\u0627\u0632\u0643 \u0641\u064A \u063A\u0636\u0648\u0646 21 \u064A\u0648\u0645\u064B\u0627 \u0645\u0646 \u0627\u0633\u062A\u0644\u0627\u0645 \u0639\u0631\u0636 \u0627\u0644\u062A\u062C\u0627\u0631\u0629 \u0627\u0644\u062E\u0627\u0635 \u0628\u0643."),r())}function De(e,c){e&1&&(o(0,"span",10),s(1,"Get paid in your popsy Wallet once your device is inspected."),r())}function Re(e,c){e&1&&(o(0,"span",10),s(1,"\u0627\u062D\u0635\u0644 \u0639\u0644\u0649 \u0623\u0645\u0648\u0627\u0644\u0643 \u0641\u064A \u0645\u062D\u0641\u0638\u0629 popsy \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643 \u0628\u0645\u062C\u0631\u062F \u0641\u062D\u0635 \u062C\u0647\u0627\u0632\u0643."),r())}function je(e,c){e&1&&s(0," DELETE ")}function Fe(e,c){e&1&&s(0," \u062D\u0630\u0641 ")}function $e(e,c){if(e&1){let t=z();o(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5),m(4,"app-picture",6),r(),m(5,"popsy-icon-trade-arrows",7),o(6,"div",8),g(7,Ie,3,3,"strong",9)(8,Be,3,3,"strong",9),o(9,"span",10),s(10),r()()(),m(11,"span",11)(12,"span",12)(13,"span",11),o(14,"div",13)(15,"div",14),m(16,"popsy-icon-trade-icon-v2-1",7),g(17,Ee,2,0,"span",10)(18,Qe,2,0,"span",10),m(19,"popsy-icon-trade-save",7),g(20,De,2,0,"span",10)(21,Re,2,0,"span",10),r(),m(22,"div",8),r(),m(23,"span",11),o(24,"div",15)(25,"button",16),v("click",function(){y(t);let a=d(2);return b(a.emitRemoveBuyback())}),g(26,je,1,0)(27,Fe,1,0),r()()(),m(28,"span",17),r()}if(e&2){let t=d(2);i(4),S("alt",t.buybackOrder?.product?.title||"")("pictureUrl",t.buybackOrder?.product?.images?.[0]||"")("width","124px")("height","124px"),i(3),h(t.lang!=="ar"?7:8),i(3),P(t.buybackOrder?.bbTitle),i(7),h(t.lang!=="ar"?17:18),i(3),h(t.lang!=="ar"?20:21),i(6),h(t.lang!=="ar"?26:27)}}function Le(e,c){e&1&&(o(0,"h4"),s(1,"Want to save even more with Trade-In?"),r())}function Ve(e,c){e&1&&(o(0,"h4"),s(1,"\u0647\u0644 \u062A\u0631\u064A\u062F \u062A\u0648\u0641\u064A\u0631 \u0627\u0644\u0645\u0632\u064A\u062F \u0645\u0639 Trade-In\u061F"),r())}function ze(e,c){if(e&1&&(o(0,"span"),s(1,"Get up to "),o(2,"strong"),s(3),p(4,"amount"),r(),s(5," when you trade in."),r()),e&2){let t=d(4);i(3),P(u(4,1,t.tradeAmount()))}}function Ne(e,c){if(e&1&&(o(0,"div",8)(1,"span",10),s(2,"Receive an offer in just 2 minutes! "),r(),g(3,ze,6,3,"span"),r()),e&2){let t=d(3);i(3),h(t.tradeAmount().amount?3:-1)}}function Ue(e,c){if(e&1&&(o(0,"span"),s(1,"\u0627\u062D\u0635\u0644 \u0639\u0644\u0649 \u0645\u0627 \u064A\u0635\u0644 \u0625\u0644\u0649 "),o(2,"strong"),s(3),p(4,"amount"),r(),s(5," \u0639\u0646\u062F \u0627\u0644\u062A\u062C\u0627\u0631\u0629."),r()),e&2){let t=d(4);i(3),P(u(4,1,t.tradeAmount()))}}function He(e,c){if(e&1&&(o(0,"div",8)(1,"span",10),s(2,"\u0627\u062D\u0635\u0644 \u0639\u0644\u0649 \u0639\u0631\u0636 \u0641\u064A \u062F\u0642\u064A\u0642\u062A\u064A\u0646 \u0641\u0642\u0637! "),r(),g(3,Ue,6,3,"span"),r()),e&2){let t=d(3);i(3),h(t.tradeAmount().amount?3:-1)}}function Ze(e,c){e&1&&s(0," Yes, give me my trade-in credits! ")}function Ge(e,c){e&1&&s(0," \u0646\u0639\u0645\u060C \u0623\u0639\u0637\u0646\u064A \u0631\u0635\u064A\u062F \u0627\u0644\u062A\u062C\u0627\u0631\u0629 \u0627\u0644\u062E\u0627\u0635 \u0628\u064A! ")}function Ke(e,c){if(e&1){let t=z();o(0,"div",2),g(1,Le,2,0,"h4")(2,Ve,2,0,"h4"),o(3,"div",3)(4,"div",18),m(5,"popsy-icon-trade-arrows",7),g(6,Ne,4,1,"div",8)(7,He,4,1,"div",8),o(8,"popsy-icon-information-circle",19),v("click",function(){y(t);let a=d(2);return b(a.openBuybackPromo(!0))}),r()(),m(9,"span",11),o(10,"button",20),v("click",function(){y(t);let a=d(2);return b(a.openBuybackPromo())}),g(11,Ze,1,0)(12,Ge,1,0),r()()()}if(e&2){let t=d(2);i(),h(t.lang!=="ar"?1:2),i(5),h(t.lang!=="ar"?6:7),i(5),h(t.lang!=="ar"?11:12)}}function Ye(e,c){if(e&1&&(U(0),o(1,"section",1),p(2,"async"),g(3,$e,29,9,"div",2)(4,Ke,13,3,"div",2),r(),H()),e&2){let t=d();i(),_("widescreen",u(2,3,t.biggerThan$)?.sm),i(2),h(t.buybackOrder!==null?3:4)}}var ye=(()=>{class e{constructor(t,n,a,C,x,q,Z){this.changeDetector=t,this.akitaScreenQuery=n,this.translocoService=a,this.akitaProductsQuery=C,this.akitaBuybackQuery=x,this.akitaBuybackService=q,this.buybackOverlayDynamicService=Z,this.buybackProductOffers=V(null),this.showingCartOverlay=!1,this.subscriptions=new $,this.destroySubject=ne
1w N,this.biggerThan$=this.akitaScreenQuery.selectBiggerThan(),this.lang=this.translocoService.getActiveLang(),this.removeBuyback=new At,this.tradeAmount=V({amount:0,currency:Ht[this.akitaProductsQuery.country]}),this.buybackProductOffers=w(this.akitaProductsQuery.selectCountry().pipe(St(G=>{if(!Xt.includes(G))return[];let K=F(j({},new bt),{country:G});return this.akitaBuybackQuery.selectProductOffers(K).pipe(L(f=>{f?.sort((T,A)=>(A.price?.amount||0)-(T.price?.amount||0));let k=f?.reduce((T,A)=>(T.some(O=>O.model===A.model)||T.push(A),T.slice(0,1)),[]);return k&&k.length>0&&this.tradeAmount.set(k[0].price||null),k||[]}))})),{initialValue:null})}ngOnInit(){let t=F(j({},new bt),{country:this.akitaProductsQuery.country});this.subscriptions.add(this.akitaBuybackService.searchBuybackProducts(t).subscribe({next:()=>{},error:()=>{}}))}emitRemoveBuyback(){this.removeBuyback.emit(!0)}openBuybackPromo(t){this.openCartOverlaySubscription&&this.openCartOverlaySubscription.unsubscribe(),this.openCartOverlaySubscription=this.buybackOverlayDynamicService.observe.pipe(J(this.destroySubject)).subscribe({next:n=>{this.showingCartOverlay=!!n,this.changeDetector.markForCheck(),this.buybackOverlayDynamicService.offerSelected}}),this.buybackOverlayDynamicService.open({data:{source:"cart",mode:t?"info":"flow"},isBrowser:!0})}ngOnDestroy(){this.openCartOverlaySubscription&&this.openCartOverlaySubscription.unsubscribe(),this.subscriptions.unsubscribe(),this.destroySubject.next(),this.destroySubject.complete()}static{this.\u0275fac=function(n){return new(n||e)(l(lt),l(R),l(Y),l(tt),l(qt),l(Jt),l(le))}}static{this.\u0275cmp=M({type:e,selectors:[["app-cart-buyback-card"]],inputs:{buybackOrder:"buybackOrder"},outputs:{removeBuyback:"removeBuyback"},decls:1,vars:0,consts:[[4,"transloco"],[1,"cart-buyback-card"],[1,"buy-back-product"],[1,"popsy-card","p-16"],[1,"flex","header","margin-0-auto","justify-start","align-center","gap-16"],[1,"media-col"],[1,"picture",3,"alt","pictureUrl","width","height"],[1,"trade-icon"],[1,"flex","flex-col"],[1,""],[1,"subtitle"],[1,"fixed-space-16"],[1,"line"],[1,"flex","margin-0-auto","justify-center","gap-16"],[1,"subsection"],[1,"flex","justify-end"],[1,"popsy-button-option",3,"click"],[1,"fixed-space-32"],[1,"flex","flex-row","gap-8","justify-around"],[1,"icon","cursor-pointer",3,"click"],[1,"popsy-button-secondary","blue","margin-0-auto","full-width",3,"click"]],template:function(n,a){n&1&&I(0,Ye,5,5,"ng-container",0)},dependencies:[D,Q,de,ge,he,te,pe,E,et],styles:["@keyframes _ngcontent-%COMP%_loading{0%{transform:translate(-45%)}to{transform:translate(345%)}}.cart-buyback-card[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;padding:0 32px;max-width:750px;margin:0 auto}.cart-buyback-card[_ngcontent-%COMP%]   .buy-back-product[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%}.cart-buyback-card[_ngcontent-%COMP%]   .buy-back-product[_ngcontent-%COMP%]   .popsy-card[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{font-size:14px}.cart-buyback-card[_ngcontent-%COMP%]   .buy-back-product[_ngcontent-%COMP%]   .subsection[_ngcontent-%COMP%]{display:grid;position:relative;box-sizing:border-box;gap:8px;grid-template-columns:1fr 18fr;align-items:center;margin:0 auto}.cart-buyback-card[_ngcontent-%COMP%]   .buy-back-product[_ngcontent-%COMP%]   .trade-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;min-height:32px;max-height:32px;width:32px;min-width:32px;max-width:32px;line-height:32px;color:#172b4d}.cart-buyback-card[_ngcontent-%COMP%]   .media-col[_ngcontent-%COMP%]{position:relative;flex:0;width:fit-content;height:100%;min-width:64px;min-height:64px}.cart-buyback-card[_ngcontent-%COMP%]   .media-col[_ngcontent-%COMP%]   .picture[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;padding:0;width:64px;height:64px;max-width:64px;max-height:64px;min-width:64px;min-height:64px;object-fit:cover;object-position:center;border:2px solid #f4f4f4;border-radius:8px;overflow:hidden;cursor:pointer}.cart-buyback-card[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:16px;height:16px;min-height:16px;max-height:16px;width:16px;min-width:16px;max-width:16px;line-height:16px}"]})}}return e})();var be=(()=>{class e extends Gt{constructor(t,n){super(),this.element=t,this.renderer=n}ngOnChanges(t){t?.aspectRatio&&this.applyAspectRatio()}ngAfterViewInit(){this.applyAspectRatio()}applyAspectRatio(){this.element?.nativeElement?.firstChild&&(this.aspectRatio==="fill"?this.renderer?.setAttribute&&this.element?.nativeElement?.firstChild?.setAttribute&&typeof this.renderer?.setAttribute=="function"&&this.renderer.setAttribute(this.element.nativeElement.firstChild,"preserveAspectRatio","xMinYMin slice"):this.renderer?.removeAttribute&&this.element?.nativeElement?.firstChild?.removeAttribute&&typeof this.renderer?.removeAttribute=="function"&&this.renderer.removeAttribute(this.element.nativeElement.firstChild,"preserveAspectRatio"))}static{this.\u0275fac=function(n){return new(n||e)(l(Bt),l(Qt))}}
1static{this.\u0275cmp=M({type:e,selectors:[["popsy-icon-shopping-bag-smile"]],inputs:{aspectRatio:"aspectRatio"},features:[Rt,X],decls:4,vars:0,consts:[["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg","width","100%","height","100%"],["stroke-linecap","round","stroke-width","1.5","stroke","#000","fill","none","stroke-linejoin","round"],["d","M8.982 11.517h0a.375.375 0 11-.375.375h0c0-.207.168-.375.375-.375m6 0h0a.375.375 0 11-.375.375h0c0-.207.168-.375.375-.375m1.206 4.983h0a5.064 5.064 0 01-8.42 0"],["d","M19.049 6.75H4.936h0A1.4 1.4 0 003.5 7.907l-2 13.915h0a1.357 1.357 0 001.437 1.428h18.111a1.356 1.356 0 001.436-1.428l-2-13.915h0a1.4 1.4 0 00-1.435-1.157zm-3.387-2.943h0A3.765 3.765 0 0011.976.75v0h0A3.763 3.763 0 008.3 3.788"]],template:function(n,a){n&1&&(Tt(),Ft(0,"svg",0)(1,"g",1),Lt(2,"path",2)(3,"path",3),$t()())},encapsulation:2})}}return e})();function We(e,c){e&1&&(o(0,"h4"),s(1,"Your cart is locked"),r())}function qe(e,c){e&1&&(o(0,"h4"),s(1,"\u0639\u0631\u0628\u0629 \u0627\u0644\u062A\u0633\u0648\u0642 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643 \u0645\u0642\u0641\u0644\u0629"),r())}function Je(e,c){e&1&&(o(0,"span"),s(1,"But don\u2019t worry \u2014 you can continue your previous checkout or start a new cart by browsing our deals. "),r())}function Xe(e,c){e&1&&(o(0,"span"),s(1,"\u0644\u0627 \u062A\u0642\u0644\u0642 - \u064A\u0645\u0643\u0646\u0643 \u0645\u062A\u0627\u0628\u0639\u0629 \u0639\u0645\u0644\u064A\u0629 \u0627\u0644\u062F\u0641\u0639 \u0627\u0644\u0633\u0627\u0628\u0642\u0629 \u0623\u0648 \u0628\u062F\u0621 \u0639\u0631\u0628\u0629 \u062C\u062F\u064A\u062F\u0629 \u0645\u0646 \u062E\u0644\u0627\u0644 \u062A\u0635\u0641\u062D \u0639\u0631\u0648\u0636\u0646\u0627. "),r())}function tn(e,c){e&1&&s(0," Continue with your Checkout ")}function en(e,c){e&1&&s(0," \u0645\u062A\u0627\u0628\u0639\u0629 \u0639\u0645\u0644\u064A\u0629 \u0627\u0644\u062F\u0641\u0639 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643 ")}function nn(e,c){e&1&&s(0," Start a new shopping ")}function on(e,c){e&1&&s(0," \u0627\u0628\u062F\u0623 \u062A\u0633\u0648\u0642\u064B\u0627 \u062C\u062F\u064A\u062F\u064B\u0627 ")}function rn(e,c){if(e&1){let t=z();U(0),m(1,"span",1),o(2,"section",2),p(3,"async"),o(4,"div",3),p(5,"async"),o(6,"div",4),p(7,"async"),o(8,"div",5),m(9,"popsy-icon-shopping-bag-smile",6),g(10,We,2,0,"h4")(11,qe,2,0,"h4"),r(),g(12,Je,2,0,"span")(13,Xe,2,0,"span"),r(),o(14,"div",7)(15,"button",8),v("click",function(){y(t);let a=d();return b(a.onLeavingCartToCheckout())}),g(16,tn,1,0)(17,en,1,0),r(),o(18,"button",9),v("click",function(){y(t);let a=d();return b(a.navigateToBestDeals())}),g(19,nn,1,0)(20,on,1,0),r()()()(),H()}if(e&2){let t=d();i(2),_("widescreen",u(3,10,t.biggerThan$)?.sm),i(2),_("flex-col",!u(5,12,t.b
1iggerThan$)?.sm),i(2),_("align-center",!u(7,14,t.biggerThan$)?.sm),i(4),h(t.lang!=="ar"?10:11),i(2),h(t.lang!=="ar"?12:13),i(4),h(t.lang!=="ar"?16:17),i(3),h(t.lang!=="ar"?19:20)}}var Pe=(()=>{class e{constructor(t,n,a,C,x){this.akitaScreenQuery=t,this.translocoService=n,this.akitaCheckoutQuery=a,this.akitaRouterService=C,this.akitaCartService=x,this.subscriptions=new $,this.destroySubject=new N,this.biggerThan$=this.akitaScreenQuery.selectBiggerThan(),this.lang=this.translocoService.getActiveLang()}onLeavingCartToCheckout(){let t=this.akitaCheckoutQuery.session?.id||null;t&&this.akitaRouterService.navigate(["checkout",t,"overview"],{})}navigateToBestDeals(){this.akitaCartService.reset(),this.akitaRouterService.navigate(["best-deals"],{})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.destroySubject.next(),this.destroySubject.complete()}static{this.\u0275fac=function(n){return new(n||e)(l(R),l(Y),l(Yt),l(nt),l(it))}}static{this.\u0275cmp=M({type:e,selectors:[["app-cart-locked-card"]],decls:1,vars:0,consts:[[4,"transloco"],["aria-hidden","true",1,"fixed-space-24"],[1,"cart-locked-card"],[1,"popsy-card","flex","full-width","justify-between","gap-16"],[1,"flex","flex-col","header"],[1,"flex","flex-col","align-center","fit-width"],[1,"icon","gray-01"],[1,"flex","flex-col","gap-8","justify-center"],[1,"button","popsy-button-primary","highlight",3,"click"],[1,"button","popsy-button-secondary",3,"click"]],template:function(n,a){n&1&&I(0,rn,21,16,"ng-container",0)},dependencies:[D,Q,be,E],styles:["@keyframes _ngcontent-%COMP%_loading{0%{transform:translate(-45%)}to{transform:translate(345%)}}.cart-locked-card[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;padding:0 32px;max-width:750px;margin:0 auto}.cart-locked-card[_ngcontent-%COMP%]   .buy-back-product[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%}.cart-locked-card[_ngcontent-%COMP%]   .buy-back-product[_ngcontent-%COMP%]   .popsy-card[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{font-size:14px}.cart-locked-card[_ngcontent-%COMP%]   .buy-back-product[_ngcontent-%COMP%]   .subsection[_ngcontent-%COMP%]{display:grid;position:relative;box-sizing:border-box;gap:8px;grid-template-columns:1fr 18fr;align-items:center;margin:0 auto}.cart-locked-card[_ngcontent-%COMP%]   .buy-back-product[_ngcontent-%COMP%]   .trade-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;min-height:32px;max-height:32px;width:32px;min-width:32px;max-width:32px;line-height:32px;color:#172b4d}.cart-locked-card[_ngcontent-%COMP%]   .media-col[_ngcontent-%COMP%]{position:relative;flex:0;width:fit-content;height:100%;min-width:64px;min-height:64px}.cart-locked-card[_ngcontent-%COMP%]   .media-col[_ngcontent-%COMP%]   .picture[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;padding:0;width:64px;height:64px;max-width:64px;max-height:64px;min-width:64px;min-height:64px;object-fit:cover;object-position:center;border:2px solid #f4f4f4;border-radius:8px;overflow:hidden;cursor:pointer}.cart-locked-card[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:35px;height:35px;min-height:35px;max-height:35px;width:35px;min-width:35px;max-width:35px;line-height:35px}.header[_ngcontent-%COMP%]{max-width:380px}"]})}}return e})();function ln(e,c){if(e&1&&(o(0,"h2",5),s(1),r()),e&2){let t=d().$implicit;i(),P(t("message_empty_cart"))}}function dn(e,c){e&1&&m(0,"app-cart-locked-card")}function pn(e,c){if(e&1){let t=z();o(0,"app-cart-list",6),p(1,"async"),v("addItem",function(a){y(t);let C=d(2);return b(C.onAdd(a))})("addInsurance",function(a){y(t);let C=d(2);return b(C.onAddInsurance(a))})("remove",function(a){y(t);let C=d(2);return b(C.onRemove(a))})("removeInsurance",function(a){y(t);let C=d(2);return b(C.onRemoveInsurance(a))})("openItem",function(a){y(t);let C=d(2);return b(C.onOpenItem(a))}),r(),o(2,"app-cart-buyback-card",7),v("removeBuyback",function(){y(t);let a=d(2);return b(a.onRemoveBuyBackProduct())}),r()}if(e&2){let t=d(2);S("items",u(1,3,t.cartItems$))("expandedMode",!0),i(2),S("buybackOrder",t.buyBackProduct())}}
1function un(e,c){if(e&1&&(o(0,"div",1),p(1,"async"),p(2,"async"),o(3,"div",2)(4,"div",3)(5,"strong"),s(6),r()()(),o(7,"div",4),g(8,ln,2,1,"h2",5),p(9,"async"),g(10,dn,1,0,"app-cart-locked-card"),g(11,pn,3,5),p(12,"async"),p(13,"async"),r()()),e&2){let t=c.$implicit,n=d();_("rtl",u(1,8,n.rtlMode$))("phone",u(2,10,n.lessThan$)?.mobileL===!0),i(6),B(" ",t("label_cart")," "),i(2),h((u(9,12,n.cartItems$)?.length||0)<=0?8:-1),i(2),h(n.isCartLocked()===!0?10:-1),i(),h((u(12,14,n.cartItems$)?.length||0)>0&&!u(13,16,n.updatingCart$)?11:-1)}}var Oe=(()=>{class e{constructor(t,n,a,C,x,q,Z,G,K){this.analytics=t,this.akitaCartQuery=n,this.akitaCartService=a,this.akitaRouterQuery=C,this.akitaScreenQuery=x,this.akitaRouterService=q,this.dateUtilsService=Z,this.akitaCheckoutService=G,this.translocoService=K,this.cartTotalPrice=null,this.loadingCartItems$=this.akitaCartQuery.selectLoadingCartItems(),this.updatingCart$=this.akitaCartQuery.selectUpdatingCart(),this.rtlMode$=this.akitaRouterQuery.selectIsRtlLayout(),this.lessThan$=this.akitaScreenQuery.selectLessThan(),this.lang=this.translocoService.getActiveLang(),this.onBuySubscription=new $,this.destroySubject=new N,this.hideTidioChat(),this.queryParamsToKeep$=this.akitaRouterQuery.selectQueryParamsToKeep(),this.cartItems$=this.akitaCartQuery.selectCartItems(),this.isCartLocked=w(this.akitaCartQuery.selectIsLocked(),{initialValue:null}),this.buyBackProduct=w(this.akitaCartQuery.selectBuybackOrder(),{initialValue:null}),this.previousCartSessionId$=this.akitaCartQuery.selectLastSessionId()}handleKeydown(){}ngOnChanges(){this.cartItems$=this.akitaCartQuery.selectCartItems()}onOpenItem(t){let n=this.akitaRouterQuery.getProductUrlFragment(t.product.id,t.product.titleEn);return this.akitaRouterService.navigate(n),!1}onRemove(t){this.akitaCartService.removeQtyFromCartAsync(t.product.id)}onAdd(t){this.akitaCartService.increaseQtyFromCartAsync(t.product.id)}onAddInsurance(t){t&&t.id&&t.productId&&this.akitaCartService.addInsuranceToCartAsync(t,"cart")}onRemoveInsurance(t){t&&t.id&&t.productId&&this.akitaCartService.removeInsuranceFromCartAsync(t,"cart")}onRemoveBuyBackProduct(){this.akitaCartService.removeBuybackFromCartAsync()}onGoToCart(){let t=this.akitaRouterQuery.homeUrlFragment;return t.push("cart"),this.akitaRouterService.navigate(t),!1}onGoToCheckout(){let t=this.akitaCartQuery.getSessionId();if(t){let n=this.akitaRouterQuery.getCheckoutUrlFragment(t);this.akitaRouterService.navigate(n)}else this.onBuySubscription.add(this.akitaCheckoutService.createSession().pipe(J(this.destroySubject)).subscribe({next:n=>{if(n){let a=this.akitaRouterQuery.getCheckoutUrlFragment(n.id);this.akitaRouterService.navigate(a)}}}));return!1}onGoToPreviousCheckout(t){if(t){let n=this.akitaRouterQuery.getCheckoutUrlFragment(t);this.akitaRouterService.navigate(n)}return!1}onBuyNowButtonLoaded(){Zt(this.analytics.logEventWrapper,"detail")}hideTidioChat(){try{window.tidioChatApi.hide()}catch(t){}}preventEventBubbling(t){return t&&t.stopPropagation&&(t.stopPropagation(),t.stopImmediatePropagation()),!1}ngOnDestroy(){this.onBuySubscription.unsubscribe(),this.destroySubject.next(),this.destroySubject.complete()}static{this.\u0275fac=function(n){return new(n||e)(l(Kt),l(gt),l(it),l(W),l(R),l(nt),l(Ce),l(ht),l(Y))}}static{this.\u0275cmp=M({type:e,selectors:[["app-cart-expanded"]],hostBindings:function(n,a){n&1&&v("keydown.escape",function(){return a.handleKeydown()},Et)},features:[X],decls:1,vars:0,consts:[["class","options-dialog popsy-car",3,"rtl","phone",4,"transloco"],[1,"options-dialog","popsy-car"],[1,"header"],[1,"title"],[1,"content","flex","flex-col","justify-between"],[1,"empty-cart"],[3,"addItem","addInsurance","remove","removeInsurance","openItem","items","expandedMode"],[3,"removeBuyback","buybackOrder"]],template:function(n,a){n&1&&I(0,un,14,18,"div",0)},dependencies:[D,Q,dt,me,ye,Pe,E],styles:["@keyframes _ngcontent-%COMP%_loading{0%{transform:translate(-45%)}to{transform:translate(345%)}}.options-dialog[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;display:flex;flex-direction:column;width:-webkit-fill-available;width:stretch;padding:0;border-radius:9px;background-color:#fff}.options-dialog.rtl[_ngcontent-%COMP%]   mat-card-content[_ngcontent-%COMP%]   mat-action-list[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-left:16px;margin-right:inherit!important}.options-dialog.rtl[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{transform:rotateY(-180deg);backface-visibility:visible}.options-dialog[_ngcontent-%COMP%]   .trade-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;min-height:32px;max-height:32px;width:32px;min-width:32px;max-width:32px;line-height:32px;color:#172b4d}.options-dialog[_ngcontent-%COMP%]     .mat-card-header-text{width:100%;border-bottom:2px solid #f4f4f4;margin:0;padding:0}.options-dialog[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:16px;line-height:24px;font-weight:700;min-height:16px;font-display:swap;color:#172b4d;padding:8px 16px;max-width:720px;margin:0 auto;text-align:start;border-bottom:1px solid #f4f4f4}.phone.options-dialog[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{text-align:center}.options-dialog[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]{width:24px;height:24px;min-width:24px;padding:0;line-height:24px;border:0}.options-dialog[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:16px;height:16px;min-height:16px;max-height:16px;width:16px;min-width:16px;max-width:16px;line-height:16px}.options-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{height:100%;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;background-color:#f4f4f4;margin:0}.options-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .empty-cart[_ngcontent-%COMP%]{font-size:14px;line-height:21px;min-height:15px;font-display:swap;padding:16px;margin:0;width:100%;text-align:center;color:#42526e}.options-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   mat-list[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;padding:16px}.options-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   mat-list[_ngcontent-%COMP%]     .mat-mdc-list-item{height:fit-content}.options-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   mat-list[_ngcontent-%COMP%]     .mat-list-item-content{padding:0;width:100%}.options-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;display:flex;align-items:center;justify-content:center;width:100%;height:64px;cursor:pointer}.options-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .row.actions-row[_ngcontent-%COMP%]{height:fit-content;justify-content:flex-end}.options-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%], .options-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .cart
1-item[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%}.options-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .media-col[_ngcontent-%COMP%]{flex:0;width:fit-content;height:100%;min-width:64px;min-height:64px}.options-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .media-col[_ngcontent-%COMP%]   .picture[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;padding:0;width:64px;height:64px;max-width:64px;max-height:64px;min-width:64px;min-height:64px;object-fit:cover;object-position:center;border-radius:5px;overflow:hidden}.options-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .info-col[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;flex:1;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;width:100%;height:100%;min-width:100px}.options-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .info-col[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:14px;line-height:21px;min-height:15px;font-display:swap;font-weight:400;margin:0;padding:0;text-overflow:ellipsis;word-break:break-all;white-space:nowrap;overflow:hidden;max-width:100%;color:#172b4d}.options-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .info-col[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{font-size:14px;line-height:21px;min-height:15px;font-display:swap;font-weight:700;margin:0;padding:0;text-overflow:ellipsis;word-break:break-all;white-space:nowrap;overflow:hidden;font-size:18px;color:#172b4d;max-width:100%}.options-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .info-col[_ngcontent-%COMP%]   .added-on[_ngcontent-%COMP%]{line-height:21px;min-height:15px;font-display:swap;text-overflow:ellipsis;word-break:break-all;white-space:nowrap;overflow:hidden;font-weight:400;font-size:14px;color:#6b778c;max-width:100%}.options-dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .actions-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-start;min-width:100px}.options-dialog[_ngcontent-%COMP%]   .centered-card[_ngcontent-%COMP%]{padding:16px;max-width:750px;margin:0 auto;width:-webkit-fill-available;width:stretch}.options-dialog[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:flex-end;width:100%;margin:0;padding:8px;background-color:#e5e7eb}"]})}}return e})();var Me=e=>({var1:e});function mn(e,c){if(e&1&&(U(0),o(1,"section",1),p(2,"async"),o(3,"ul",2)(4,"li",3),m(5,"popsy-icon-warranty-dark",4)(6,"span",5),o(7,"span",6),s(8),r()(),m(9,"span",7),o(10,"li",3),m(11,"popsy-icon-return-dark",4)(12,"span",5),o(13,"span",8),s(14),r()(),m(15,"span",7),o(16,"li",3),m(17,"popsy-icon-installments-dark",4)(18,"span",5),o(19,"span",6)(20,"span",6),s(21),r(),o(22,"strong",6),s(23),p(24,"amount"),r(),o(25,"span",6),s(26),r()()()()(),H()),e&2){let t=c.$implicit,n=d();i(),_("widescreen",u(2,27,n.biggerThan$)?.sm),i(2),_("center-align",n.centerAlign),i(),_("center-align",n.centerAlign),i(),_("fill-gray-light",n.darkMode),i(2),_("text-gray-light",n.darkMode),i(),B(" ",t("title_featured_warranty_variable",yt(31,Me,n.months))),i(2),_("center-align",n.centerAlign),i(),_("fill-gray-light",n.darkMode),i(2),_("text-gray-light",n.darkMode),i(),B(" ",t("about_return_title")," "),i(2),_("center-align",n.centerAlign),i(),_("fill-gray-light",n.darkMode),i(2),_("text-gray-light",n.darkMode),i(2),P(t("label_pay")),i(2),B(" ",u(24,29,n.instalmentPrice)),i(3),B(" ",t("label_n_installments",yt(33,Me,n.installments)))}}var gn="12",hn=36,we=4,Se=(()=>{class e{constructor(t,n){this.akitaScreenQuery=t,this.akitaRouterQuery=n,this.darkMode=!1,this.blueMode=!1,this.centerAlign=!1,this.installments=we,this.biggerThan$=this.akitaScreenQuery.selectBiggerThan(),this.months=gn,this.installments=this.akitaRouterQuery.country.toLowerCase()==="sa"?hn:we}get instalmentPrice(){return{currency:this.totalPrice?.currency||"",amount:(this.totalPrice?.amount||0)/this.installments||0}}onShowMoreInfo(){return!1}static{this.\u0275fac=function(n){return new(n||e)(l(R),l(W))}}static{this.\u0275cmp=M({type:e,selectors:[["app-cart-highlights"]],inputs:{country:"country",totalPrice:"totalPrice",darkMode:"darkMode",blueMode:"blueMode",centerAlign:"centerAlign"},decls:1,vars:0,consts:[[4,"transloco"],[1,"cart-highlights"],[1,"list"],[1,"item"],[1,"icon"],["aria-hidden","true",1,"fixed-space-8"],[1,"label"],["aria-hidden","true",1,"fixed-space-16"],[1,"label","large"]],template:function(n,a){n&1&&I(0,mn,27,35,"ng-container",0)},dependencies:[D,Q,ce,se,ae,E,et],styles:["@keyframes _ngcontent-%COMP%_loading{0%{transform:translate(-45%)}to{transform:translate(345%)}}.cart-highlights[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%}.cart-highlights[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;max-width:1200px;margin:0 auto;display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;list-style:none;padding:0}.cart-highlights[_ngcontent-%COMP%]   .list.center-align[_ngcontent-%COMP%]{justify-content:center}.cart-highlights[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;align-items:center;justify-content:center;height:fit-content;text-align:center;color:#172b4d}.widescreen.cart-highlights[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{justify-content:flex-start;flex-direction:row;flex:.3}.widescreen.cart-highlights[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{min-width:90px}.widescreen.cart-highlights[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .label.large[_ng
1content-%COMP%]{min-width:125px}.widescreen.cart-highlights[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .item.center-align[_ngcontent-%COMP%]{text-align:inherit;justify-content:center}.cart-highlights[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:14px;line-height:18px}.cart-highlights[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;font-size:50px;height:50px;min-height:50px;max-height:50px;width:50px;min-width:50px;max-width:50px;line-height:50px;max-width:unset}"]})}}return e})();function Cn(e,c){if(e&1&&m(0,"app-best-seller-card",7),e&2){let t=c.$implicit;S("product",t)}}function _n(e,c){if(e&1&&(o(0,"section",6),ft(1,Cn,1,1,"app-best-seller-card",7,_t().trackByKey,!0),r()),e&2){let t=d(2);i(),xt(t.bestSellersApi())}}function fn(e,c){if(e&1&&m(0,"app-best-seller-card",8),e&2){let t=c.$implicit;S("product",t)("smallerThumb",!0)}}function xn(e,c){if(e&1&&(o(0,"section",6),ft(1,fn,1,2,"app-best-seller-card",8,_t().trackByKey,!0),r()),e&2){let t=d(2);i(),xt(t.bestSellersPerCategory())}}function yn(e,c){if(e&1&&(U(0),o(1,"section",1),p(2,"async"),p(3,"async"),o(4,"div",2)(5,"h3"),s(6),r()(),m(7,"span",3),o(8,"div",4)(9,"div",5),g(10,_n,3,0,"section",6)(11,xn,3,0,"section",6),r()()(),H()),e&2){let t=c.$implicit,n=d();i(),_("widescreen",u(2,6,n.biggerThan$)?.mobileL)("largescreen",u(3,8,n.biggerThan$)?.sm),i(5),P(t("title_recommended_deals")),i(4),h(n.filteredCategory()===null||n.bestSellersPerCategory().length===0?10:11)}}var vt=["SMARTPHONE","TABLET","LAPTOP","WATCH"],bn="https://firebasestorage.googleapis.com/v0/b/popsygae.appspot.com/o/HomePageBanners%2FBestDealsBanner%2F",kn="_v2.png?alt=media&token=829995d9-4e62-4320-96f9-c76105a876b9",Te=(()=>{class e{constructor(t,n,a,C,x,q){this.translationService=t,this.akitaScreenQuery=n,this.akitaProductsService=a,this.akitaProductsQuery=C,this.akitaFeaturedQuery=x,this.akitaRouterQuery=q,this.popularDevices$=new Pt,this.bestSellers=new Array(0),this.filteredBrand=V("Apple"),this.filteredCategory=V("SMARTPHONE"),this.bestSellersPerCategory=V([]),this.productCategories=V(["SMARTPHONE","LAPTOP","TABLET","ACCESSORIES"]),this.destroySubject=new N,this.subscriptions=new $,this.language$=this.translationService.langChanges$,this.biggerThan$=this.akitaScreenQuery.selectBiggerThan(),this.queryParamsToKeep$=this.akitaRouterQuery.selectQueryParamsToKeep(),this.countDownTimer=w(Ot(1e3).pipe(L(()=>this.akitaFeaturedQuery.getTimerCountDown()),wt({bufferSize:1,refCount:!0})),{initialValue:this.akitaFeaturedQuery.getTimerCountDown()});let Z=F(j({},new ut),{country:this.akitaProductsQuery.country,language:this.akitaProductsQuery.language,sorting:pt,limit:7}),G=F(j({},new ut),{country:this.akitaProductsQuery.country,language:this.akitaProductsQuery.language,sorting:pt,category:["SMARTPHONE"],brand:["Apple"],limit:7}),K=F(j({},new ut),{country:this.akitaProductsQuery.country,language:this.akitaProductsQuery.language,sorting:pt,category:["SMARTPHONE"],brand:["Samsung"],limit:7});this.subscriptions.add(this.akitaProductsService.search(Z).subscribe({next:()=>{},error:()=>{}})),this.subscriptions.add(this.akitaProductsService.search(G).subscribe({next:()=>{},error:()=>{}})),this.subscriptions.add(this.akitaProductsService.search(K).subscribe({next:()=>{},error:()=>{}})),this.bestSellersApi=w(st([this.akitaProductsQuery.selectSearch(mt(Z)),this.akitaProductsQuery.selectSearch(mt(G)),this.akitaProductsQuery.selectSearch(mt(K))]).pipe(L(([f,k,T])=>{let A=f.filter(O=>vt.includes(O.category)).sort((O,ct)=>vt.indexOf(O.category)-vt.indexOf(ct.category)).reduce((O,ct)=>(O.some(Ae=>Ae.category===ct.category)||O.push(ct),O),[]);return A.push(k[1]),A.push(T[0]),A})),{initialValue:null}),It(()=>{if(this.filteredCategory()!==null){let f=new Array;f.push(this.filteredCategory()||""),this.bestSellersPerCategory.set([]),this.subscriptions.add(this.akitaProductsService.search(F(j({},Z),{category:f})).subscribe({next:k=>this.bestSellersPerCategory.set(k.results.filter(T=>T.category===this.filteredCategory())),error:()=>{}}))}}),this.bannerLink=w(this.biggerThan$.pipe(L(f=>{let k=f.sm?"large":"big";return`${bn}${k}${kn}`})),{initialValue:null})}switchCategory(t){this.filteredCategory()===t?this.filteredCategory.set(null):this.filteredCategory.set(t)}capitalizeCategory(t){return t.charAt(0).toUpperCase().concat(t.slice(1).replace(/ /g,"_").toLowerCase())}getSortedBrands(t){return t.pipe(L(n=>{let a=n.brand;if(!n.brand.length)return null;let C=[...a].filter(x=>x!=="Apple"&&x!=="Samsung");return[...a.filter(x=>
1x==="Samsung")].reverse().forEach(x=>{C.unshift(x)}),[...a.filter(x=>x==="Apple")].reverse().forEach(x=>{C.unshift(x)}),C}))}informationPageUrlFragment(t){let n=this.akitaRouterQuery.homeUrlFragment;return n.push(t),n}trackByModel(t,n){return n?.id||n||`${t}`}trackByKey(t,n){return`${n?.id||t}`}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.subscriptions&&this.subscriptions.unsubscribe()}static{this.\u0275fac=function(n){return new(n||e)(l(Y),l(R),l(ne),l(tt),l(oe),l(W))}}static{this.\u0275cmp=M({type:e,selectors:[["app-cart-deals-picker"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"cart-deals-picker-component"],[1,"flex","justify-between","full-width","align-base"],["aria-hidden","true",1,"fixed-space-8"],[1,"cards"],[1,"card","flex","flex-col"],[1,"content"],[3,"product"],[3,"product","smallerThumb"]],template:function(n,a){n&1&&I(0,yn,12,10,"ng-container",0)},dependencies:[dt,D,Q,Ut,re,E],styles:["@keyframes _ngcontent-%COMP%_loading{0%{transform:translate(-45%)}to{transform:translate(345%)}}.cart-deals-picker-component[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;text-align:start;padding:12px 16px;max-width:1200px;margin:0 auto}.cart-deals-picker-component.widescreen[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:16px;font-size:30px;line-height:40px}.cart-deals-picker-component[_ngcontent-%COMP%]   .cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;min-height:220px}.cart-deals-picker-component[_ngcontent-%COMP%]   .image-banner[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;max-height:50vw}.largescreen.cart-deals-picker-component[_ngcontent-%COMP%]   .image-banner[_ngcontent-%COMP%]{max-height:unset}.cart-deals-picker-component[_ngcontent-%COMP%]   .banner-head[_ngcontent-%COMP%]{position:absolute;top:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4vw 0;width:100%}.largescreen.cart-deals-picker-component[_ngcontent-%COMP%]   .banner-head[_ngcontent-%COMP%]{margin-top:18%}.widescreen.cart-deals-picker-component[_ngcontent-%COMP%]   .banner-head[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{font-size:35px;margin:12px 0}.widescreen.cart-deals-picker-component[_ngcontent-%COMP%]   .banner-head[_ngcontent-%COMP%]   .timer[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:40px}.cart-deals-picker-component[_ngcontent-%COMP%]   .banner-head[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{margin:0}.cart-deals-picker-component[_ngcontent-%COMP%]   .banner-head[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]{cursor:pointer;margin:6px;padding:8px 16px;border-radius:20px;background-color:#31abf7;color:#fff;text-transform:capitalize}.cart-deals-picker-component[_ngcontent-%COMP%]   .banner-head[_ngcontent-%COMP%]   .bottom.reverse[_ngcontent-%COMP%]{right:unset;left:0}.cart-deals-picker-component[_ngcontent-%COMP%]   .brand[_ngcontent-%COMP%]{font-size:14px;text-transform:uppercase;color:#6d7789;font-weight:600;cursor:pointer}.cart-deals-picker-component[_ngcontent-%COMP%]   .brand[_ngcontent-%COMP%]:hover{color:#f46fb1}.cart-deals-picker-component[_ngcontent-%COMP%]   .brand.selected[_ngcontent-%COMP%]{color:#d43864}.cart-deals-picker-component[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]{scrollbar-width:thin;scrollbar-color:#a5adba #f4f4f4}.cart-deals-picker-component[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]::-webkit-scrollbar{height:6px}.cart-deals-picker-component[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f4f4f4}.cart-deals-picker-component[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a5adba;border-radius:20px;border:1px solid #f4f4f4}.cart-deals-picker-component[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:baseline;justify-content:flex-start;overflow-y:auto;padding-bottom:12px}.cart-deals-picker-component[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{cursor:pointer;font-size:16px;color:#6d7789;padding:8px 12px;border-radius:20px;background-color:#f5f5f5;white-space:nowrap}
1.cart-deals-picker-component[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .badge.selected[_ngcontent-%COMP%]{color:#fff;background-color:#a5adba}.cart-deals-picker-component[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{grid-gap:20px;text-align:center;display:flex;overflow:auto;padding:16px 0}"]})}}return e})();var vn=["componentWrapper"];function Pn(e,c){if(e&1&&(m(0,"app-cart-expanded"),o(1,"div",14)(2,"div")(3,"div",15)(4,"h4"),s(5),r(),o(6,"div",16),m(7,"app-cart-highlights",17),p(8,"async"),r()()()(),m(9,"span",18)),e&2){let t=d(2).$implicit,n=d();i(5),P(t("label_your_benefits")),i(2),S("centerAlign",!0)("totalPrice",u(8,3,n.cartTotalPrice$))}}function On(e,c){if(e&1){let t=z();o(0,"div",13)(1,"app-checkout-order-summary",19),p(2,"async"),p(3,"async"),p(4,"async"),p(5,"async"),p(6,"async"),v("leaveToCheckout",function(){y(t);let a=d(3);return b(a.onLeavingCartToCheckout())}),r(),m(7,"popsy-shipping-estimate-card",20),p(8,"async"),m(9,"span",21)(10,"app-payment-methods-line")(11,"span",21),r()}if(e&2){let t=d(3);i(),S("deliveryProducts",u(2,12,t.cartProducts$))("insurances",u(3,14,t.cartInsurances$))("bbCart",t.bbCart())("productCountry",u(4,16,t.country$))("total",u(5,18,t.cartTotalPrice$))("deliveryPrice",null)("deliveryFee",null)("alwaysShowTamaraTabbyPromos",!0)("isCart",!0)("isDesktop",u(6,20,t.biggerThan$)?.sm??null),i(6),S("currency",u(8,22,t.cartTotalPrice$)?.currency||"SAR")("estimatedDeliveryDays",t.estimatedDeliveryDays())}}function Mn(e,c){if(e&1&&(o(0,"div",7)(1,"div",12),g(2,Pn,10,5),p(3,"async"),r(),g(4,On,12,24,"div",13),p(5,"async"),p(6,"async"),r()),e&2){let t=d(2);i(2),h(u(3,2,t.cartProducts$)?.length?2:-1),i(2),h(u(5,4,t.biggerThan$)?.sm&&u(6,6,t.cartProducts$)?.length?4:-1)}}function wn(e,c){e&1&&m(0,"app-loading",8)}function Sn(e,c){if(e&1){let t=z();o(0,"div",9)(1,"div",12),m(2,"span",10),o(3,"div",22),p(4,"async"),o(5,"div",23)(6,"h3"),s(7),r(),m(8,"span",24),o(9,"button",25),v("click",function(){y(t);let a=d(2);return b(a.goToProducts())}),o(10,"span",26),s(11),r()()()(),m(12,"span",10)(13,"app-cart-deals-picker")(14,"span",24)(15,"app-category-picker",27)(16,"span",21),r()()}if(e&2){let t=d().$implicit,n=d();i(3),_("flex-row",u(4,5,n.biggerThan$)?.mobileL),i(4),P(t("message_empty_cart")),i(4),B(" ",t("featured_banner_action")," "),i(4),S("forceRow",!0)}}function Tn(e,c){if(e&1){let t=z();o(0,"div",11)(1,"div",23)(2,"div"),s(3,"Cart Total"),r(),o(4,"strong"),s(5),p(6,"async"),p(7,"amount"),r()(),o(8,"button",28,2),v("click",function(){y(t);let a=d(2);return b(a.onLeavingCartToCheckout())}),o(10,"span",29),s(11),r()()()}if(e&2){let t=d().$implicit,n=d();i(5),P(u(7,5,u(6,3,n.cartTotalPrice$))),i(3),jt("aria-label",t("action_buy_now")),i(3),P(t("hint_checkout"))}}function An(e,c){if(e&1&&(U(0),o(1,"div",4,0),p(3,"async"),p(4,"async"),o(5,"div",5,1)(7,"main",6),g(8,Mn,7,8,"div",7),g(9,wn,1,0,"app-loading",8),p(10,"async"),p(11,"async"),g(12,Sn,17,7,"div",9),p(13,"async"),p(14,"async"),m(15,"span",10),r(),g(16,Tn,12,7,"div",11),p(17,"async"),p(18,"async"),r()(),H()),e&2){let t=d();i(),_("widescreen",u(3,8,t.biggerThan$)?.sm)("single-header",u(4,10,t.biggerThan$)?.mobileL),i(7),h(t.loadingCart()?-1:8),i(),h(t.loadingCart()&&(!u(10,12,t.cartProducts$)||!u(11,14,t.cartProducts$)?.length)?9:-1),i(3),h(!t.loadingCart()&&u(13,16,t.cartProducts$)&&!u(14,18,t.cartProducts$)?.length?12:-1),i(4),h(!u(17,20,t.biggerThan$)?.sm&&u(18,22,t.cartProducts$)?.length?16:-1)}}var lo=(()=>{class e{constructor(t,n,a,C,x,q,Z,G,K){this.changeDetector=t,this.akitaScreenQuery=n,this.akitaRouterQuery=a,this.akitaRouterService=C,this.akitaCheckoutService=x,this.akitaProductsQuery=q,this.akitaCartQuery=Z,this.akitaCartService=G,this.insuranceConfirmOverlay=K,this.enablePopsyProtection=!1,this.shouldAskForInsurance=V(null),this.askForInsurancePrice=null,this.askForInsuranceProduct=null,this.bbCart=V(null),this.onBuySubscription=new $,this.destroySubject=new N,this.overlayOpened=!1,this.overlayObserver=new $,this.isBrowser=this.akitaRouterQuery.isBrowser,this.biggerThan$=this.akitaScreenQuery.selectBiggerThan(),this.cartTotalPrice$=this.akitaCartQuery.selectTotalPrice(),this.cartProducts$=this.akitaCartQuery.selectCartItems().pipe(L(f=>f.map(k=>F(j({},k.product),{quantity:k.quantity}))),Ct(()=>{})),this.cartID$=this.akitaCartQuery.selectId(),this.cartInsurances$=this.akitaCartQuery.selectCartInsurances(),this.cartProtectionPrice$=this.akitaCartQuery.selectProtectionPrice(),this.bbCart=w(this.akitaCartQuery.selectBuybackOrder(),{initialValue:null}),this.isCartProtected$=this.akitaCartQuery.selectIsCartProtected(),this.estimatedDeliveryDays=w(this.akitaCartQuery.selectEstimatedDeliveryDays(),{initialValue:null}),this.country$=this.akitaRouterQuery.selectCountry(),this.loadingCart=w(this.akitaCartQuery.selectLoadingCartItems().pipe(Mt(1e3)),{initialValue:!0}),this.shouldAskForInsurance=w(st([this.cartProducts$,this.cartInsurances$]).pipe(L(([f,k])=>{if(!f||f.length>1||!f[0]||!f[0]?.insuranceIds||!f[0].insuranceIds?.length||f[0].insuranceIds?.length&&k?.length)return!1;if(f[0].insuranceIds&&f[0].insuranceIds.length){let T=new Array(0);f[0].insuranceIds.forEach(A=>{let O=this.akitaProductsQuery.getInsurance(A);O&&T.push(O)}),this.askForInsurancePrice=T.sort((A,O)=>O.price.amount-A.price.amount)[0]?.price||null,this.askForInsuranceProduct=f[0]}return!!this.askForInsurancePrice})),{initialValue:null}),this.setupRefreshListener()}ngOnChanges(){this.cartTotalPrice$=this.akitaCartQuery.selectTotalPrice(),this.cartProducts$=this.akitaCartQuery.selectCartItems().pipe(L(t=>t.map(n=>F(j({},n.product),{quantity:n.quantity}))),Ct(()=>{this.changeDetector.markForCheck(),this.changeDetector.detectChanges()})),this.cartInsurances$=this.akitaCartQuery.selectCartInsurances(),this.cartProtectionPrice$=this.akitaCartQuery.selectProtectionPrice(),this.country$=this.akitaRouterQuery.selectCountry()}onGoToCheckout(){let t=this.akitaCartQuery.getSessionId();if(t){let n=this.akitaRouterQuery.getCheckoutUrlFragment(t);this.akitaRouterService.navigate(n)}else this.onBuySubscription.add(this.akitaCheckoutService.createSession().pipe(J(this.destroySubject)).subscribe({next:n=>{if(n){let a=this.akitaRouterQuery.getCheckoutUrlFragment(n.id);this.akitaRouterService.navigate(a)}},error:()=>{}}));return!1}onLeavingCartToCheckout(){if(this.shouldAskForInsurance()===!1)this.onGoToCheckout();else{let t=this.askForInsuranceProduct;if(!t)return this.onGoToCheckout(),!1;this.overlayObserver&&this.overlayObserver.unsubscribe(),this.insuranceConfirmOverlay.open({elementRef:null,data:{product:t},isBrowser:this.akitaRouterQuery.isBrowser}).then(n=>{this.overlayOpened=!0,this.overlayObserver=n.closed.pipe(J(this.destroySubject)).subscribe({next:a=>{this.overlayOpened=!1,a&&this.onGoToCheckout(),this.changeDetector.markForCheck()},error:()=>{}})})}return!1}goToProducts(){let t=this.akitaRouterQuery.homeUrlFragment;t.push("products"),this.akitaRouterService.navigate(t)}
1setupRefreshListener(){if(typeof BroadcastChannel<"u"){let t=new BroadcastChannel("cart-refresh");t.onmessage=n=>{n.data.type==="REFRESH_CART"&&(this.akitaCartService.reset(),this.changeDetector.markForCheck(),this.changeDetector.detectChanges())}}this.akitaRouterQuery.isBrowser&&window.addEventListener("storage",t=>{t.key==="refresh-cart"&&(this.akitaCartService.reset(),this.changeDetector.markForCheck(),this.changeDetector.detectChanges())})}ngOnDestroy(){this.onBuySubscription.unsubscribe(),this.destroySubject.next(),this.destroySubject.complete(),this.overlayObserver&&this.overlayObserver.unsubscribe()}static{this.\u0275fac=function(n){return new(n||e)(l(lt),l(R),l(W),l(nt),l(ht),l(tt),l(gt),l(it),l(fe))}}static{this.\u0275cmp=M({type:e,selectors:[["app-cart-view"]],viewQuery:function(n,a){if(n&1&&Vt(vn,5,Dt),n&2){let C;zt(C=Nt())&&(a.componentWrapper=C.first)}},features:[X],decls:1,vars:0,consts:[["componentWrapper",""],["scrollElement",""],["buyButton",""],[4,"transloco"],[1,"content"],["id","mainAppScroll","cdk-scrollable","",1,"main-scroll"],[1,"wrapper"],[1,"columns"],[1,"loading"],[1,"columns","empty"],["aria-hidden","true",1,"fixed-space-64"],[1,"actions"],[1,"cart"],[1,"flex","flex-col","p-32"],[1,"centered-card"],[1,"p-16"],[1,"popsy-card","p-32"],[3,"centerAlign","totalPrice"],["aria-hidden","true",1,"fixed-space-24"],[3,"leaveToCheckout","deliveryProducts","insurances","bbCart","productCountry","total","deliveryPrice","deliveryFee","alwaysShowTamaraTabbyPromos","isCart","isDesktop"],[3,"currency","estimatedDeliveryDays"],["aria-hidden","true",1,"fixed-space-32"],[1,"flex","align-center","justify-between","flex-col"],[1,"flex","flex-col"],["aria-hidden","true",1,"fixed-space-16"],[1,"button","popsy-button-primary","highlight",3,"click"],[1,"link"],[3,"forceRow"],["appElementLoaded","","href","#",1,"button","popsy-button-primary","highlight","buy-button","full-width",3,"click","disabled"],[1,"text"]],template:function(n,a){n&1&&I(0,An,19,24,"ng-container",3)},dependencies:[D,Q,Oe,ue,_e,Wt,Se,Te,ie,ee,E,et],styles:["@keyframes _ngcontent-%COMP%_loading{0%{transform:translate(-45%)}to{transform:translate(345%)}}.content[_ngcontent-%COMP%]{display:block;box-sizing:border-box;width:100%;height:100%;min-height:100%;max-height:100%;margin:0 auto;padding-top:128px}.content.single-header[_ngcontent-%COMP%]{padding-top:64px}.content[_ngcontent-%COMP%]   .loading[_ngcontent-%COMP%]{display:block;height:100px}.content[_ngcontent-%COMP%]   .main-scroll[_ngcontent-%COMP%]{height:100%;max-height:100%;overflow-x:hidden!important;overflow-y:scroll!important;-webkit-overflow-scrolling:touch}.content[_ngcontent-%COMP%]   .main-scroll[_ngcontent-%COMP%]   .wrapper[_ngcontent-%COMP%]{display:block;box-sizing:border-box;height:100%;min-height:100%;max-height:100%;margin:0 auto}.content[_ngcontent-%COMP%]   .main-scroll[_ngcontent-%COMP%]   .wrapper[_ngcontent-%COMP%]   .columns[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:32px}.widescreen.content[_ngcontent-%COMP%]   .main-scroll[_ngcontent-%COMP%]   .wrapper[_ngcontent-%COMP%]   .columns[_ngcontent-%COMP%]{grid-template-columns:2.7fr 1fr}.widescreen.content[_ngcontent-%COMP%]   .main-scroll[_ngcontent-%COMP%]   .wrapper[_ngcontent-%COMP%]   .columns[_ngcontent-%COMP%]   .img[_ngcontent-%COMP%]{width:50vw;max-width:800px}.content[_ngcontent-%COMP%]   .main-scroll[_ngcontent-%COMP%]   .wrapper[_ngcontent-%COMP%]   .columns.empty[_ngcontent-%COMP%]{position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;padding:0 16px;max-width:1200px;margin:0 auto;display:block}.content[_ngcontent-%COMP%]   .main-scroll[_ngcontent-%COMP%]   .wrapper[_ngcontent-%COMP%]   .columns[_ngcontent-%COMP%]   .cart[_ngcontent-%COMP%]{background-color:#f4f4f4}.content[_ngcontent-%COMP%]   .main-scroll[_ngcontent-%COMP%]   .wrapper[_ngcontent-%COMP%]   .columns[_ngcontent-%COMP%]   .img[_ngcontent-%COMP%]{width:100%}.centered-card[_ngcontent-%COMP%]{display:flex;padding:0 16px;flex-direction:column;max-width:717px;margin:0 auto}.actions[_ngcontent-%COMP%]{position:absolute;width:-webkit-fill-available;width:stretch;bottom:0;padding:16px;display:grid;align-items:center;grid-template-columns:1fr 3fr;gap:8px;background-color:#fff;box-shadow:0 3px 16px -3px #0000001f}.actions[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{justify-self:flex-end;max-width:416px}h1[_ngcontent-%COMP%]{margin:0}.link[_ngcontent-%COMP%]{text-decoration:none;color:inherit}"]})}}return e})();export{lo as CartViewComponent};

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.