1import{a as li,c as Qe}from"./chunk-AFVSMPBC.js";import{a as ai}from"./chunk-SOEAT6PN.js";import{a as oi}from"./chunk-VZDUNVSE.js";import{a as ri}from"./chunk-DGH55HEQ.js";import"./chunk-BYXBJQAS.js";import{a as ei}from"./chunk-N6VQVEHM.js";import{a as ni}from"./chunk-GA2ZYG54.js";import"./chunk-VYULK3Y3.js";import{a as Qt}from"./chunk-QN3GDSSY.js";import{a as St}from"./chunk-ZMMM2NJV.js";import{a as Zt,b as Kt}from"./chunk-X5FQST2K.js";import{b as Ut}from"./chunk-EONF3GVN.js";import{i as Fe}from"./chunk-ZV7NG4F4.js";import"./chunk-DJ5AJG3T.js";import"./chunk-6EF6RNOO.js";import"./chunk-T3DWPM4S.js";import"./chunk-K6QYQNRN.js";import{a as Ht,b as je}from"./chunk-KYVCMV2E.js";import"./chunk-HWZZ5RQT.js";import"./chunk-ZNR7QNVV.js";import{a as Jt,b as Xt}from"./chunk-N3YFX76I.js";import{b as Yt,f as ie}from"./chunk-GRCQVGMD.js";import{a as rt,b as qt,c as jt,e as Ye}from"./chunk-DYFCQ3R3.js";import{a as Gt,b as $t}from"./chunk-IRE2CVIC.js";import"./chunk-JS6LICOA.js";import{a as Nt}from"./chunk-GQ2RX7RJ.js";import{a as Ot}from"./chunk-WF4KZOYP.js";import{a as Mt}from"./chunk-EB6TJ75L.js";import"./chunk-QI7CEGT6.js";import{a as $e,b as qe}from"./chunk-6ND7557V.js";import{D as be,E as Wt,b as kt,c as Ce,e as pe,g as xe,h as It,i as Et,k as Se,l as Ue,m as Tt,p as Rt,q as Vt,s as At,u as Dt,v as Lt,z as Bt}from"./chunk-FOJCKIWO.js";import{a as zt,b as Ft}from"./chunk-3AIY57KH.js";import{a as X}from"./chunk-AB6CKZTE.js";import{a as ti,b as ii}from"./chunk-5SQFN2EX.js";import{a as at}from"./chunk-SOZ227GM.js";import{b as K,c as te}from"./chunk-H66TAOKK.js";import"./chunk-Z64D265S.js";import"./chunk-K5O3OQFW.js";import"./chunk-2DRXLVRR.js";import{c as Ne,d as Ge,e as ee}from"./chunk-RQJZECR4.js";import"./chunk-G3G5OK6Q.js";import"./chunk-AERMLNF3.js";import"./chunk-QHMYZ6SM.js";import"./chunk-PJPLTBJX.js";import"./chunk-DLIVM562.js";import"./chunk-CV2ZWZQE.js";import"./chunk-H4HD3LNW.js";import{ja as He}from"./chunk-AQEWHUN5.js";import{c as ze,d as N,e as Q}from"./chunk-YQZAETCE.js";import{e as vt,o as Pt,r as yt,s as we,x as wt}from"./chunk-EO42E46J.js";import{h as Le}from"./chunk-3QVSKJ3X.js";import{D as We,G as he,I as Y,c as M,f as xt,p as J,s as bt,y as Be}from"./chunk-ERUCNOOT.js";import{$b as y,Ba as $,Cc as E,Dc as T,Ec as R,Fa as q,Fb as Re,Gb as Ve,Gc as D,Hb as Ae,Hc as de,Ib as ue,Ic as De,Jb as x,Jc as ft,Kb as dt,Lb as V,Mb as F,Nb as pt,Pb as fe,Qb as g,Qc as p,Rb as _t,Rc as _,Sb as ye,Sc as L,Tb as k,Ub as I,Uc as ht,Vb as a,Wb as l,Xb as m,Z as Ie,Za as Te,Zc as Ct,_a as z,da as S,db as r,fc as b,fd as A,gc as c,ka as Ee,la as f,ma as h,mc as oe,na as se,nc as re,oa as ge,oc as ae,p as ot,sb as j,tc as d,uc as v,va as W,vc as u,wa as st,wc as H,xc as mt,yb as C,yc as gt,zc as ut}from"./chunk-DBE7WQEG.js";import{a as B,b as G,g as U}from"./chunk-W7GRJBO5.js";var Ci=()=>({width:"480px",maxWidth:"95vw"});function xi(i,t){if(i&1){let e=y();a(0,"div",3)(1,"div",4),m(2,"i",5),l(),a(3,"h3"),d(4),p(5,"translate"),l(),a(6,"p"),d(7),p(8,"translate"),l(),a(9,"p",6),d(10),p(11,"translate"),a(12,"strong"),d(13),l()(),a(14,"p",7),d(15),p(16,"translate"),l(),a(17,"button",8),p(18,"translate"),b("click",function(){f(e);let o=c();return h(o.onHide())}),l()()}if(i&2){let e=c();r(4),v(_(5,6,"REPORT_DIALOG.SUCCESS_TITLE")),r(3),v(_(8,8,"REPORT_DIALOG.SUCCESS_MESSAGE")),r(3),u(" ",_(11,10,"REPORT_DIALOG.TICKET_NUMBER")," "),r(3),u("#",e.ticketNumber,""),r(2),v(_(16,12,"REPORT_DIALOG.SUCCESS_HINT")),r(2),x("label",_(18,14,"REPORT_DIALOG.CLOSE"))}}function bi(i,t){i&1&&(a(0,"small",27),d(1),p(2,"translate"),l()),i&2&&(r(),u(" ",_(2,1,"REPORT_DIALOG.ERROR_EMAIL_REQUIRED")," "))}function vi(i,t){i&1&&(a(0,"small",27),d(1),p(2,"translate"),l()),i&2&&(r(),u(" ",_(2,1,"REPORT_DIALOG.ERROR_EMAIL_INVALID")," "))}function Pi(i,t){if(i&1&&(d(0),p(1,"translate")),i&2){let e=t.$implicit;u(" ",_(1,1,"REPORT_DIALOG.REASON_"+e.toUpperCase())," ")}}function yi(i,t){if(i&1&&(d(0),p(1,"translate")),i&2){let e=t.$implicit;u(" ",_(1,1,"REPORT_DIALOG.REASON_"+e.toUpperCase())," ")}}function wi(i,t){i&1&&(a(0,"small",27),d(1),p(2,"translate"),l()),i&2&&(r(),u(" ",_(2,1,"REPORT_DIALOG.ERROR_REASON_REQUIRED")," "))}function Si(i,t){i&1&&(a(0,"small",27),d(1),p(2,"translate"),l()),i&2&&(r(),u(" ",_(2,1,"REPORT_DIALOG.ERROR_MESSAGE_REQUIRED")," "))}function Oi(i,t){i&1&&(a(0,"small",27),d(1),p(2,"translate"),l()),i&2&&(r(),u(" ",_(2,1,"REPORT_DIALOG.ERROR_MESSAGE_MIN")," "))}function Mi(i,t){if(i&1&&(a(0,"div",28),m(1,"i",29),d(2),l()),i&2){let e=c(2);r(2),u("",e.error," ")}}function ki(i,t){if(i&1){let e=y();a(0,"form",9),b("ngSubmit",function(){f(e);let o=c();return h(o.onSubmit())}),a(1,"p",10),d(2),p(3,"translate"),l(),a(4,"div",11),m(5,"input",12),l(),a(6,"div",13)(7,"label",14),d(8),p(9,"translate"),l(),m(10,"input",15),p(11,"translate"),C(12,bi,3,3,"small",16)(13,vi,3,3,"small",16),l(),a(14,"div",13)(15,"label",17),d(16),p(17,"translate"),l(),a(18,"p-select",18),p(19,"translate"),C(20,Pi,2,3,"ng-template",19)(21,yi,2,3,"ng-template",20),l(),C(22,wi,3,3,"small",16),l(),a(23,"div",13)(24,"label",21),d(25),p(26,"translate"),l(),m(27,"textarea",22),p(28,"translate"),C(29,Si,3,3,"small",16)(30,Oi,3,3,"small",16),l(),C(31,Mi,3,1,"div",23),a(32,"div",24)(33,"button",25),p(34,"translate"),b("click",function(){f(e);let o=c();return h(o.onHide())}),l(),m(35,"button",26),p(36,"translate"),l()()}if(i&2){let e=c();x("formGroup",e.form),r(2),v(_(3,20,"REPORT_DIALOG.INTRO")),r(3),x("formControl",e.honeypot),r(3),u("",_(9,22,"REPORT_DIALOG.EMAIL_LABEL")," *"),r(2),x("placeholder",_(11,24,"REPORT_DIALOG.EMAIL_PLACEHOLDER")),r(2),x("ngIf",e.submitted&&(e.form.controls.email.errors==null?null:e.form.controls.email.errors.required)),r(),x("ngIf",e.submitted&&(e.form.controls.email.errors==null?null:e.form.controls.email.errors.email)),r(3),u("",_(17,26,"REPORT_DIALOG.REASON_LABEL")," *"),r(2),x("options",e.reasons)("placeholder",_(19,28,"REPORT_DIALOG.REASON_PLACEHOLDER")),r(4),x("ngIf",e.submitted&&(e.form.controls.reason.errors==null?null:e.form.controls.reason.errors.required)),r(3),u("",_(26,30,"REPORT_DIALOG.MESSAGE_LABEL")," *"),r(2),x("placeholder",_(28,32,"REPORT_DIALOG.MESSAGE_PLACEHOLDER")),r(2),x("ngIf",e.submitted&&(e.form.controls.message.errors==null?null:e.form.controls.message.errors.required)),r(),x("ngIf",e.submitted&&(e.form.controls.message.errors==null?null:e.form.controls.message.errors.minlength)),r(),x("ngIf",e.error),r(2),x("label",_(34,34,"REPORT_DIALOG.CANCEL"))("disabled",e.loading),r(2),x("label",_(36,36,"REPORT_DIALOG.SUBMIT"))("loading",e.loading)}}var Ze=class i{ticketService=S(ri);formHelper=S(Nt);visible=!1;config={pageUrl:"",reportedUsername:""};visibleChange=new W;loading=!1;submitted=!1;success=!1;ticketNumber=null;error=null;honeypot=new Se("");openedAt=0;reasons=["inappropriate","spam","impersonation","phishing","claim","other"];form=new Et({email:new Se("",[pe.required,pe.email]),reason:new Se(null,[pe.required]),message:new Se("",[pe.required,pe.minLength(10),pe.maxLength(5e3)])});bridge=$t(this.form,{preset:Gt()});onShow(){this.openedAt=Date.now(),this.resetState()}onHide(){this.visibleChange.emit(!1),setTimeout(()=>this.resetState(),300)}onSubmit(){return U(this,null,function*(){this.submitted=!0;let t=this.formHelper.startSubmit(this.form);if(t){if(this.honeypot.value){this.fakeSuccess();return}if(this.openedAt&&Date.now()-this.openedAt<3e3){this.fakeSuccess();return}this.loading=!0,this.error=null;try{let e=yield this.ticketService.createPublic({name:t.email.split("@")[0],email:t.email,subject:`Signalement : @${this.config.reportedUsername}`,category:"abuse",message:`[${this.getReasonLabel(t.reason)}] 2 3${t.message}`,pageUrl:this.config.pageUrl});this.success=!0,this.ticketNumber=e.ticketNumber}catch(e){this.form.enable(),e?.error&&this.bridge.applyApiErrors(e.error),this.error=this.bridge.firstErrorSignal()?.message||e?.error?.message||e?.message||null}finally{this.loading=!1}}})}getReasonLabel(t){return{inappropriate:"Contenu inapproprie",spam:"Spam",impersonation:"Usurpation d'identite",phishing:"Phishing / Arnaque",claim:"Revendication de propriete",other:"Autre"}[t]||t}resetState(){this.form.reset(),this.form.enable(),this.honeypot.reset(),this.submitted=!1,this.success=!1,this.ticketNumber=null,this.error=null,this.loading=!1}fakeSuccess(){this.success=!0,this.ticketNumber=999999,this.loading=!1}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=j({type:i,selectors:[["app-widget-report-dialog"]],inputs:{visible:"visible",config:"config"},outputs:{visibleChange:"visibleChange"},decls:4,vars:12,consts:[[3,"visibleChange","onShow","onHide","header","visible","modal","dismissableMask","draggable"],["class","report-success",4,"ngIf"],["class","report-form",3,"formGroup","ngSubmit",4,"ngIf"],[1,"report-success"],[1,"success-icon"],[1,"pi","pi-check-circle"],[1,"ticket-number"],[1,"success-hint"],["pButton","",1,"p-button-outlined","w-100","mt-3",3,"click","label"],[1,"report-form",3,"ngSubmit","formGroup"],[1,"report-intro"],["aria-hidden","true","tabindex","-1",1,"hp-field"],["type","text","autocomplete","off","tabindex","-1",3,"formControl"],[1,"field"],["for","report-email"],["id","report-email","type","email","pInputText","","formControlName","email",1,"w-100",3,"placeholder"],["class","p-error",4,"ngIf"],["for","report-reason"],["id","report-reason","formControlName","reason","styleClass","w-100",3,"options","placeholder"],["pTemplate","item"],["pTemplate","selectedItem"],["for","report-message"],["id","report-message","pTextarea","","formControlName","message","rows","4",1,"w-100",3,"placeholder"],["class","p-message p-message-error mb-3",4,"ngIf"],[1,"d-flex","justify-content-end","gap-2"],["pButton","","type","button",1,"p-button-text",3,"click","label","disabled"],["pButton","","type","submit","icon","pi pi-send",3,"label","loading"],[1,"p-error"],[1,"p-message","p-message-error","mb-3"],[1,"pi","pi-times-circle","me-2"]],template:function(e,n){e&1&&(a(0,"p-dialog",0),p(1,"translate"),R("visibleChange",function(s){return T(n.visible,s)||(n.visible=s),s}),b("onShow",function(){return n.onShow()})("onHide",function(){return n.onHide()}),C(2,xi,19,16,"div",1)(3,ki,37,38,"form",2),l()),e&2&&(F(D(11,Ci)),x("header",_(1,9,"REPORT_DIALOG.TITLE")),E("visible",n.visible),x("modal",!0)("dismissableMask",!0)("draggable",!1),r(2),x("ngIf",n.success),r(),x("ngIf",!n.success))},dependencies:[Y,bt,Wt,Tt,Ce,xe,It,Rt,Vt,At,te,K,He,ee,Ne,je,Ht,qe,$e,Xt,Jt,Q,N],styles:[".report-form[_ngcontent-%COMP%] .field[_ngcontent-%COMP%]{margin-bottom:1rem}.report-form[_ngcontent-%COMP%] .field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font-size:.875rem;font-weight:500;margin-bottom:.375rem;color:var(--text-color)}.report-form[_ngcontent-%COMP%] .p-error[_ngcontent-%COMP%]{display:block;margin-top:.25rem;font-size:.8rem}.report-intro[_ngcontent-%COMP%]{font-size:.9rem;color:var(--text-color-secondary);margin-bottom:1.25rem;line-height:1.5}.hp-field[_ngcontent-%COMP%]{position:absolute;
3left:-9999px;top:-9999px;opacity:0;height:0;width:0;overflow:hidden;pointer-events:none}.hp-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{height:0;padding:0;margin:0;border:0}.report-success[_ngcontent-%COMP%]{text-align:center;padding:1rem 0}.report-success[_ngcontent-%COMP%] .success-icon[_ngcontent-%COMP%]{margin-bottom:1rem}.report-success[_ngcontent-%COMP%] .success-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:3rem;color:var(--green-500)}.report-success[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;margin-bottom:.5rem}.report-success[_ngcontent-%COMP%] .ticket-number[_ngcontent-%COMP%]{font-size:.95rem;color:var(--text-color-secondary);margin-top:.75rem}.report-success[_ngcontent-%COMP%] .ticket-number[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--primary-color);font-size:1.1rem}.report-success[_ngcontent-%COMP%] .success-hint[_ngcontent-%COMP%]{font-size:.85rem;color:var(--text-color-secondary);margin-top:.5rem;font-style:italic}.p-message-error[_ngcontent-%COMP%]{background:var(--red-50);border:1px solid var(--red-200);color:var(--red-700);padding:.75rem 1rem;border-radius:6px;font-size:.875rem;display:flex;align-items:center}"]})};var Ii=["scrollSentinel"],di=(i,t)=>t.index;function Ei(i,t){if(i&1&&m(0,"img",10),i&2){let e=c(2);x("src",e.thumbnailUrl,z)("alt",e.title)}}function Ti(i,t){if(i&1&&(a(0,"div",1),C(1,Ei,1,2,"img",10),a(2,"h4",11),d(3),l()()),i&2){let e=c();r(),g(e.thumbnailUrl?1:-1),r(2),v(e.title)}}function Ri(i,t){if(i&1&&m(0,"i",13),i&2){let e=t.$implicit;x("ngClass",e.full?"pi-star-fill":e.half?"pi-star-half-fill":"pi-star")}}function Vi(i,t){if(i&1&&(a(0,"div",2)(1,"span",12),k(2,Ri,1,1,"i",13,di),l(),a(4,"span",14),d(5),p(6,"number"),l(),a(7,"span",15),d(8),p(9,"translate"),l()()),i&2){let e=c();r(2),I(e.getStarsArray(e.sellerReviewStats.averageRating)),r(3),v(L(6,3,e.sellerReviewStats.averageRating,"1.1-1")),r(3),H("(",e.sellerReviewStats.totalReviews," ",_(9,6,"PROFILE_PAGE.SHOP.REVIEWS_LABEL"),")")}}function Ai(i,t){if(i&1){let e=y();a(0,"div",3)(1,"button",16),b("click",function(){f(e);let o=c();return h(o.selectType("shop"))}),d(2),p(3,"translate"),l(),a(4,"button",16),b("click",function(){f(e);let o=c();return h(o.selectType("live"))}),d(5),p(6,"translate"),l()()}if(i&2){let e=c();r(),V("active",e.activeType!=="live"),r(),u(" ",_(3,6,"PROFILE_PAGE.SHOP.TAB_SHOP")," "),r(2),V("active",e.activeType==="live"),r(),u(" ",_(6,8,"PROFILE_PAGE.SHOP.TAB_LIVE")," ")}}function Di(i,t){i&1&&(a(0,"div",4),m(1,"i",17),a(2,"div")(3,"strong"),d(4),p(5,"translate"),l(),a(6,"p"),d(7),p(8,"translate"),l()()()),i&2&&(r(4),v(_(5,2,"PROFILE_PAGE.SHOP.LIVE_NOTICE_TITLE")),r(3),v(_(8,4,"PROFILE_PAGE.SHOP.LIVE_NOTICE_BODY")))}function Li(i,t){if(i&1){let e=y();a(0,"button",16),b("click",function(){let o=f(e).$implicit,s=c(2);return h(s.selectCollection(o.id))}),d(1),l()}if(i&2){let e=t.$implicit,n=c(2);V("active",n.activeCollectionId===e.id),r(),u(" ",e.title," ")}}function Bi(i,t){if(i&1){let e=y();a(0,"div",5)(1,"button",16),b("click",function(){f(e);let o=c();return h(o.selectCollection(null))}),d(2),p(3,"translate"),l(),k(4,Li,2,3,"button",18,fe().trackByCollection,!0),l()}if(i&2){let e=c();r(),V("active",e.activeCollectionId===null),r(),u(" ",_(3,3,"PROFILE_PAGE.SHOP.ALL")," "),r(2),I(e.visibleCollections)}}function Wi(i,t){i&1&&(a(0,"div",6),m(1,"div",19),l())}function zi(i,t){if(i&1&&m(0,"img",23),i&2){let e=c().$implicit;x("src",e.imageUrl,z)("alt",e.title)}}function Fi(i,t){i&1&&(a(0,"div",24),m(1,"i",37),l())}function Ui(i,t){if(i&1&&(a(0,"span",25),d(1),l()),i&2){let e=c().$implicit,n=c(2);r(),u("-",n.getDiscountPercent(e),"%")}}function Hi(i,t){if(i&1&&(a(0,"span",26),d(1),p(2,"translate"),l()),i&2){let e=c().$implicit,n=c(2);r(),u(" ",_(2,1,n.getStockLabel(e))," ")}}function Ni(i,t){if(i&1&&(a(0,"p",29),d(1),l()),i&2){let e=c().$implicit;r(),u(" ",e.shortDescription," ")}}function Gi(i,t){if(i&1&&m(0,"i",13),i&2){let e=t.$implicit;x("ngClass",e.full?"pi-star-fill":e.half?"pi-star-half-fill":"pi-star")}}function $i(i,t){if(i&1){let e=y();a(0,"div",38),b("click",function(o){f(e);let s=c().$implicit,P=c(2);return h(P.onReviewsClick(o,s))}),a(1,"span",39),k(2,Gi,1,1,"i",13,di),l(),a(4,"span",40),d(5),p(6,"number"),l(),a(7,"span",41),d(8),l()()}if(i&2){let e=c().$implicit,n=c(2);r(2),I(n.getStarsArray(e.averageRating)),r(3),v(L(6,2,e.averageRating,"1.1-1")),r(3),u("(",e.reviewCount,")")}}function qi(i,t){i&1&&(a(0,"span",32),d(1),p(2,"translate"),l()),i&2&&(r(),v(_(2,1,"PROFILE_PAGE.SHOP.PRICE_FROM")))}function ji(i,t){if(i&1&&(a(0,"span",34),d(1),l()),i&2){let e=c().$implicit,n=c(2);r(),v(n.formatPrice(n.getCompareAtPriceCents(e),e.currency))}}function Yi(i,t){i&1&&(d(0),p(1,"translate")),i&2&&u(" ",_(1,1,"PROFILE_PAGE.SHOP.CHOOSE_OPTIONS")," ")}function Qi(i,t){i&1&&(d(0),p(1,"translate")),i&2&&u(" ",_(1,1,"PROFILE_PAGE.ADD_TO_CART")," ")}function Zi(i,t){if(i&1){let e=y();a(0,"div",21),b("click",function(){let o=f(e).$implicit,s=c(2);return h(s.onProductClick(o))}),a(1,"div",22),C(2,zi,1,2,"img",23)(3,Fi,2,0,"div",24)(4,Ui,2,1,"span",25)(5,Hi,3,3,"span",26),l(),a(6,"div",27)(7,"h3",28),d(8),l(),C(9,Ni,2,1,"p",29)(10,$i,9,5,"div",30),a(11,"div",31),C(12,qi,3,3,"span",32),a(13,"span",33),d(14),l(),C(15,ji,2,1,"span",34),l(),a(16,"button",35),b("click",function(o){let s=f(e).$implicit,P=c(2);return h(P.onAddToCartClick(o,s))}),m(17,"i",36),C(18,Yi,2,3)(19,Qi,2,3),l()()()}if(i&2){let e=t.$implicit,n=c(2);r(2),g(e.imageUrl?2:3),r(2),g(n.getDiscountPercent(e)!==null?4:-1),r(),g(n.getStockLabel(e)?5:-1),r(),x("ngStyle",n.textStyle),r(2),v(e.title),r(),g(e.shortDe
3scription?9:-1),r(),g(e.reviewCount>0&&e.averageRating?10:-1),r(2),g(n.hasVariantPriceRange(e)?12:-1),r(2),v(n.formatPrice(n.getDisplayPriceCents(e),e.currency)),r(),g(n.getCompareAtPriceCents(e)!=null?15:-1),r(3),g(n.hasVariants(e)?18:19)}}function Ki(i,t){if(i&1&&(a(0,"div",7),k(1,Zi,20,11,"div",20,fe().trackByProduct,!0),l()),i&2){let e=c();r(),I(e.inStockProducts)}}function Ji(i,t){if(i&1&&(a(0,"div",8),m(1,"i",42),a(2,"p"),d(3),p(4,"translate"),l()()),i&2){let e=c();x("ngStyle",e.textStyle),r(3),v(_(4,2,"PROFILE_PAGE.SHOP.EMPTY"))}}function Xi(i,t){i&1&&m(0,"div",19)}function en(i,t){if(i&1&&(a(0,"div",9,0),C(2,Xi,1,0,"div",19),l()),i&2){let e=c();r(2),g(e.loading?2:-1)}}var Je=class i{platformId=S(q);products=[];collections=[];total=0;loading=!1;textStyle={};title=null;thumbnailUrl=null;showTitle=!0;sellerReviewStats=null;typeCounts=null;collectionSelected=new W;typeSelected=new W;loadMore=new W;productClicked=new W;quickAddToCart=new W;reviewsClicked=new W;activeCollectionId=null;activeType=null;get hasLiveProducts(){return(this.typeCounts?.live??0)>0}get showLiveNotice(){return this.activeType==="live"}scrollSentinel;scrollObserver=null;sentinelAttached=!1;get inStockProducts(){return this.products.filter(t=>this.isProductInStock(t))}get visibleCollections(){return this.collections.filter(t=>t.isVisible!==!1&&(t.productCount==null||t.productCount>0)&&t.title?.toLowerCase()!=="uncategorized")}get hasMore(){return this.inStockProducts.length<this.total}ngOnInit(){}ngOnChanges(t){}ngAfterViewChecked(){!this.sentinelAttached&&this.scrollSentinel?.nativeElement&&M(this.platformId)&&(this.setupScrollObserver(),this.sentinelAttached=!0)}ngOnDestroy(){this.scrollObserver?.disconnect(),this.scrollObserver=null}setupScrollObserver(){this.scrollObserver=new IntersectionObserver(t=>{t[0]?.isIntersecting&&this.hasMore&&!this.loading&&this.loadMore.emit()},{rootMargin:"0px 0px 400px 0px"}),this.scrollObserver.observe(this.scrollSentinel.nativeElement)}selectCollection(t){this.activeCollectionId=t,this.sentinelAttached=!1,this.collectionSelected.emit(t)}selectType(t){this.activeType!==t&&(this.activeType=t,this.activeCollectionId=null,this.sentinelAttached=!1,this.typeSelected.emit(t))}onProductClick(t){this.productClicked.emit(t)}formatPrice(t,e){let n=t/100;try{return new Intl.NumberFormat("fr-FR",{style:"currency",currency:e||"EUR",minimumFractionDigits:n%1===0?0:2,maximumFractionDigits:2}).format(n)}catch{return`${n.toFixed(2)} \u20AC`}}getDiscountPercent(t){return!t.salePriceCents||t.salePriceCents>=t.priceCents?null:Math.round((1-t.salePriceCents/t.priceCents)*100)}getDisplayPriceCents(t){if(t.variants?.length){let e=t.variants.filter(n=>n.isActive);if(e.length>0)return Math.min(...e.map(n=>n.salePriceCents??n.priceCents))}return t.salePriceCents??t.priceCents}hasVariantPriceRange(t){if(!t.variants?.length)return!1;let e=t.variants.filter(o=>o.isActive);return e.length<=1?!1:new Set(e.map(o=>o.priceCents)).size>1}isProductInStock(t){return t.trackStock?t.variants?.length?t.variants.some(e=>e.isActive&&(e.stockQuantity??0)>0):(t.stockQuantity??0)>0:!0}hasVariants(t){return!!(t.options?.length&&t.variants?.length)}onAddToCartClick(t,e){t.stopPropagation(),this.hasVariants(e)?this.productClicked.emit(e):this.quickAddToCart.emit(e)}getCompareAtPriceCents(t){if(t.variants?.length){let e=t.variants.filter(o=>o.isActive);return e.filter(o=>o.salePriceCents!=null&&o.salePriceCents<o.priceCents).length>0?Math.min(...e.map(o=>o.priceCents)):null}return t.salePriceCents&&t.salePriceCents<t.priceCents?t.priceCents:null}getStockLabel(t){if(!t.trackStock)return null;if(t.variants?.length){let e=t.variants.filter(n=>n.isActive).reduce((n,o)=>n+(o.stockQuantity??0),0);return e===0?"PROFILE_PAGE.SHOP.OUT_OF_STOCK":e<=5?"PROFILE_PAGE.SHOP.LOW_STOCK":null}return t.stockQuantity===0?"PROFILE_PAGE.SHOP.OUT_OF_STOCK":t.stockQuantity!==void 0&&t.stockQuantity!==null&&t.stockQuantity<=5?"PROFILE_PAGE.SHOP.LOW_STOCK":null}trackByProduct(t,e){return e.id}trackByCollection(t,e){return e.id}getStarsArray(t){return[0,1,2,3,4].map(e=>({index:e,full:t>=e+.75,half:t>=e+.25&&t<e+.75}))}onReviewsClick(t,e){t.stopPropagation(),this.reviewsClicked.emit
3(e)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=j({type:i,selectors:[["app-widget-bio-shop"]],viewQuery:function(e,n){if(e&1&&oe(Ii,5),e&2){let o;re(o=ae())&&(n.scrollSentinel=o.first)}},inputs:{products:"products",collections:"collections",total:"total",loading:"loading",textStyle:"textStyle",title:"title",thumbnailUrl:"thumbnailUrl",showTitle:"showTitle",sellerReviewStats:"sellerReviewStats",typeCounts:"typeCounts"},outputs:{collectionSelected:"collectionSelected",typeSelected:"typeSelected",loadMore:"loadMore",productClicked:"productClicked",quickAddToCart:"quickAddToCart",reviewsClicked:"reviewsClicked"},features:[Ee],decls:9,vars:9,consts:[["scrollSentinel",""],[1,"shop-catalog-header"],[1,"shop-seller-rating"],[1,"shop-collections","shop-types"],[1,"shop-live-notice"],[1,"shop-collections"],[1,"shop-loading"],[1,"shop-products-grid"],[1,"shop-empty",3,"ngStyle"],[1,"shop-scroll-sentinel"],["loading","lazy",1,"shop-catalog-thumb",3,"src","alt"],[1,"shop-catalog-title"],[1,"shop-seller-stars"],[1,"pi",3,"ngClass"],[1,"shop-seller-rating-score"],[1,"shop-seller-rating-count"],[1,"shop-collection-pill",3,"click"],[1,"pi","pi-info-circle"],[1,"shop-collection-pill",3,"active"],[1,"css-spinner"],[1,"shop-product-card"],[1,"shop-product-card",3,"click"],[1,"shop-product-image"],["loading","lazy","width","300","height","300",3,"src","alt"],[1,"shop-product-no-image"],[1,"shop-badge","shop-badge--sale"],[1,"shop-badge","shop-badge--stock"],[1,"shop-product-info",3,"ngStyle"],[1,"shop-product-title"],[1,"shop-product-desc"],[1,"shop-product-rating"],[1,"shop-product-price"],[1,"shop-price-from"],[1,"shop-price-current"],[1,"shop-price-compare"],[1,"shop-product-cart-btn",3,"click"],[1,"pi","pi-shopping-cart"],[1,"pi","pi-box"],[1,"shop-product-rating",3,"click"],[1,"shop-product-stars"],[1,"shop-product-rating-score"],[1,"shop-product-rating-count"],[1,"pi","pi-shopping-bag"]],template:function(e,n){e&1&&C(0,Ti,4,2,"div",1)(1,Vi,10,8,"div",2)(2,Ai,7,10,"div",3)(3,Di,9,6,"div",4)(4,Bi,6,5,"div",5)(5,Wi,2,0,"div",6)(6,Ki,3,0,"div",7)(7,Ji,5,4,"div",8)(8,en,3,1,"div",9),e&2&&(g(n.showTitle&&n.title?0:-1),r(),g(n.sellerReviewStats&&n.sellerReviewStats.totalReviews>0?1:-1),r(),g(n.hasLiveProducts?2:-1),r(),g(n.showLiveNotice?3:-1),r(),g(n.visibleCollections.length>0&&n.activeType!=="live"?4:-1),r(),g(n.loading&&n.products.length===0?5:-1),r(),g(n.inStockProducts.length>0?6:-1),r(),g(!n.loading&&n.inStockProducts.length===0?7:-1),r(),g(n.hasMore?8:-1))},dependencies:[Y,J,Be,he,Q,N],styles:['[_nghost-%COMP%]{display:block;width:100%;color:var(--bio-text-color, inherit)}.shop-catalog-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:.5rem;margin:0 0 .75rem}.shop-catalog-thumb[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:6px;object-fit:cover;flex-shrink:0}.shop-catalog-title[_ngcontent-%COMP%]{font-size:var(--bio-font-size, .85rem);font-weight:700;margin:0}.shop-collections[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;padding:0 4px 12px}.shop-collection-pill[_ngcontent-%COMP%]{background:transparent;border:1px solid currentColor;border-radius:var(--bio-btn-radius, 20px);padding:5px 14px;font-size:var(--bio-secondary-font-size, .8rem);font-weight:500;cursor:pointer;transition:all .2s;color:inherit;opacity:.6}.shop-collection-pill[_ngcontent-%COMP%]:hover{opacity:.8}.shop-collection-pill.active[_ngcontent-%COMP%]{background:var(--bio-btn-bg, #3b82f6);color:var(--bio-btn-text, #ffffff);border-color:var(--bio-btn-bg, #3b82f6);font-weight:600;opacity:1}.shop-types[_ngcontent-%COMP%]{padding-bottom:8px}.shop-live-notice[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px;margin:0 4px 12px;padding:10px 12px;border-radius:12px;background:#fb6a001f;border:1px solid rgba(251,106,0,.3);text-align:left}.shop-live-notice[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{flex:none;margin-top:2px;color:#fb6a00;font-size:.95rem}.shop-live-notice[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block;font-size:var(--bio-secondary-font-size, .8rem);font-weight:700}.shop-live-notice[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:2px 0 0;font-size:var(--bio-secondary-font-size, .8rem);line-height:1.4;
3opacity:.8}.shop-seller-rating[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:6px;padding:0 4px 10px;font-size:var(--bio-secondary-font-size, .8rem);opacity:.85}.shop-seller-stars[_ngcontent-%COMP%]{display:inline-flex;gap:1px;color:#f59e0b}.shop-seller-stars[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:.85rem}.shop-seller-rating-score[_ngcontent-%COMP%]{font-weight:600}.shop-seller-rating-count[_ngcontent-%COMP%]{opacity:.7}.shop-loading[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:40px 0}.shop-loading[_ngcontent-%COMP%] .css-spinner[_ngcontent-%COMP%]{width:32px;height:32px;border:3px solid rgba(255,255,255,.2);border-top-color:#fffc;border-radius:50%;animation:_ngcontent-%COMP%_spin .7s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}.shop-products-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:0 4px}.shop-product-card[_ngcontent-%COMP%]{position:relative;background:transparent;border:none;border-radius:12px;overflow:hidden;cursor:pointer;transition:all .2s ease;text-align:left;color:var(--bio-shop-card-text, var(--bio-text-color, inherit));padding:0;display:flex;flex-direction:column}.shop-product-card[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;z-index:0;border-radius:inherit;background:var(--bio-shop-card-bg, var(--bio-block-bg, rgba(255, 255, 255, .1)));backdrop-filter:blur(var(--bio-shop-card-blur, var(--bio-btn-blur, 10px)));-webkit-backdrop-filter:blur(var(--bio-shop-card-blur, var(--bio-btn-blur, 10px)));opacity:var(--bio-shop-card-opacity, 1)}.shop-product-card[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{position:relative;z-index:1}.shop-product-card[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 8px 24px #00000026}.shop-product-card[_ngcontent-%COMP%]:active{transform:translateY(0)}.shop-product-image[_ngcontent-%COMP%]{position:relative;width:100%;padding-top:100%;overflow:hidden;background:#ffffff0d}.shop-product-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}.shop-product-card[_ngcontent-%COMP%]:hover .shop-product-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{transform:scale(1.05)}.shop-product-no-image[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:inherit;opacity:.3;font-size:2rem}.shop-badge[_ngcontent-%COMP%]{position:absolute;top:8px;font-size:.7rem;font-weight:700;padding:3px 8px;border-radius:4px;text-transform:uppercase;letter-spacing:.5px}.shop-badge--sale[_ngcontent-%COMP%]{left:8px;background:#ef4444;color:#fff}.shop-badge--stock[_ngcontent-%COMP%]{right:8px;background:#0009;color:#fbbf24;backdrop-filter:blur(4px)}.shop-badge--sold-out[_ngcontent-%COMP%]{color:#ef4444}.shop-product-info[_ngcontent-%COMP%]{padding:10px 12px 14px;display:flex;flex-direction:column;gap:4px;flex:1}.shop-product-title[_ngcontent-%COMP%]{font-size:.85rem;font-weight:600;line-height:1.3;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.shop-product-desc[_ngcontent-%COMP%]{font-size:.75rem;opacity:.7;line-height:1.3;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.shop-product-price[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;margin-top:auto;padding-top:4px}.shop-product-rating[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;cursor:pointer;transition:opacity .2s}.shop-product-rating[_ngcontent-%COMP%]:hover{opacity:.8}.shop-product-stars[_ngcontent-%COMP%]{display:flex;gap:1px}.shop-product-stars[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:.7rem;color:#fbbf24}.shop-product-rating-score[_ngcontent-%COMP%]{font-size:.75rem;font-weight:600}.shop-product-rating-count[_ngcontent-%COMP%]{font-size:.7rem;opacity:.6}.shop-price-current[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700}.shop-price-compare[_ngcontent-%COMP%]{font-size:.75rem;text-decoration:line-through;opacity:.5}.shop-price-from[_ngcontent-%COMP%]{font-size:.7rem;opacity:.7}.shop-product-cart-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:6px 10px;border-radius:var(--bio-btn-radius, 8px);background:var(--bio-btn-bg, #3b82f6);color:var(--bio-btn-text, #ffffff);font-size:.75rem;font-weight:600;border:1px solid rgba(128,128,128,.15);cursor:pointer;transition:filter .2s,opacity .2s;margin-top:6px}.shop-product-cart-btn[_ngcontent-%COMP%]:hover{filter:brightness(1.1)}.shop-product-cart-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}.shop-product-cart-btn[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:.7rem}.shop-empty[_ngcontent-%COMP%]{text-align:center;padding:40px 20px;opacity:.6}.shop-empty[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:2.5rem;margin-bottom:12px;display:block}.shop-empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.9rem;margin:0}.shop-scroll-sentinel[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:20px 0 8px;min-height:1px}']})};var Xe="houla_cart",ve=class i{platformId=S(q);isBrowser=M(this.platformId);http=S(Le);_cart=$(null);_promoCode=$(null);_promoDiscount=$(0);_promoValidation=$(null);_promoLoading=$(!1);_isLocalPickup=$(!1);_shippingEstimate=$(null);_shippingLoading=$(!1);_selectedCountry=$("FR");_detectedCountry=$(null);_countryUnsupported=$(!1);items=A(()=>this._cart()?.items??[]);itemCount=A(()=>this.items().reduce((t,e)=>t+e.quantity,0));subtotalCents=A(()=>this.items().reduce((t,e)=>t+e.priceCents*e.quantity,0));discountCents=A(()=>this._promoDiscount());totalCents=A(()=>Math.max(0,this.subtotalCents()-this.discountCents()));promoCode=A(()=>this._promoCode());promoValidation=A(()=>this._promoValidation());promoLoading=A(()=>this._promoLoading());currency=A(()=>this.items()[0]?.currency??"EUR");isDigitalOnly=A(()=>{let t=this.items();return t.length===0?!1:t.every(e=>e.requiresShipping===!1||e.productType==="digital"||e.productType==="service")});hasPhysicalItems=A(()=>this.items().some(t=>t.requiresShipping!==!1&&t.productType!=="digital"&&t.productType!=="service"));bioPageId=A(()=>this._cart()?.bioPageId??null);hasItems=A(()=>this.items().length>0);isLocalPickup=A(()=>this._isLocalPickup());shippingEstimate=A(()=>this._shippingEstimate());shippingLoading=A(()=>this._shippingLoading());selectedCountry=A(()=>this._selectedCountry());detectedCountry=A(()=>this._detectedCountry());countryUnsupported=A(()=>this._countryUnsupported());setLocalPickup(t){this._isLocalPickup.set(t)}setSelectedCountry(t,e,n){if(this._selectedCountry.set(t),t==="OTHER"){this._countryUnsupported.set(!0),this._shippingEstimate.set(null);return}if(n?.length&&!n.includes(t)&&!(li.has(t)&&n.includes("FR"))){this._countryUnsupported.set(!0),this._shippingEstimate.set(null);return}this._countryUnsupported.set(!1),this.fetchShippingEstimate(e,t)}setDetectedCountry(t){this._detectedCountry.set(t)}setCountryUnsupported(t){this._countryUnsupported.set(t)}fetchShippingEstimate(t,e){return U(this,null,function*(){let n=typeof t=="string"?{username:t}:t,o=qt(n,typeof t=="string"?t:void 0),s=this.items();if(s.length===0){this._shippingEstimate.set(null);return}this._shippingLoading.set(!0);try{let P={items:s.map(O=>({productId:O.productId,variantId:O.variantId,quantity:O.quantity}))};if(e&&(P.buyerCountry=e),this.isBrowser){let O=localStorage.getItem(`houla_buyer_email_${o}`);O&&(P.buyerEmail=O)}let w=yield ot(this.http.post(`${rt(n)}/shipping-estimate`,P));this._shippingEstimate.set(w),!e&&w.buyerCountry&&this._selectedCountry.set(w.buyerCountry)}catch{this._shippingEstimate.set(null)}finally{this._shippingLoading.set(!1)}})}constructor(){this.isBrowser&&this.loadFromStorage()}addItem(t,e,n=1){let o=this._cart();o&&o.bioPageId!==t&&(o=null),o||(o={bioPageId:t,items:[],createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()});let s=o.items.findIndex(P=>P.productId===e.productId&&P.variantId===e.variantId);s>=0?o.items[s]=G(B({},o.items[s]),{quantity:o.items[s].quantity+n,priceCents:e.priceCents,compareAtPriceCents:e.compareAtPriceCents,productType:e.productType,requiresShipping:e.requiresShipping}):o.items.push(G(B({},e),{quantity:n})),o.updatedAt=new Date().toISOString(),this._cart.set(G(B({},o),{items:[...o.items]})),this.saveToStorage()}removeItem(t,e){let n=this._cart();if(n){if(n.items=n.items.filter(o=>!(o.productId===t&&o.variantId===e)),n.updatedAt=new Date().toISOString(),n.items.length===0){this._cart.set(null),this.removeFromStorage();return}this._cart.set(B({},n)),this.saveToStorage()}}updateQuantity(t,e,n){if(n<=0){this.removeItem(t,e);return}let o=this._cart();if(!o)return;let s=o.items.findIndex(w=>w.productId===t&&w.variantId===e);if(s<0)return;let P=o.items.map((w,O)=>O===s?G(B({},w),{quantity:n}):w);this._cart.set(G(B({},o),{items:P,updatedAt:new Date().toISOString()})),this.saveToStorage()}clearCart(){this._cart.set(null),this._isLocalPickup.set(!1),this._shippingEstimate.set(null),this._detectedCountry.set(null),this._countryUnsupported.set(!1),this.clearPromoCode(),this.removeFromStorage()}applyPromoCode(t,e){return U(this,null,function*(){let n=typeof e=="string"?{username:e}:e;this._promoLoading.set(!0);try{let o=yield ot(this.http.post(`${rt(n)}/promo-code/validate`,{code:t,subtotalCents:this.subtotalCents()}));return this._promoValidation.set(o),o.valid?(this._promoCode.set(o.code??t.toUpperCase()),this._promoDiscount.set(o.discountCents??0)):(this._promoCode.set(null),this._promoDiscount.set(0)),o}catch{let o={valid:!1,reason:"Erreur de validation"};return this._promoValidation.set(o),this._promoCode.set(null),this._promoDiscount.set(0),o}finally{this._promoLoading.set(!1)}})}clearPromoCode(){this._promoCode.set(null),this._promoDiscount.set(0),this._promoValidation.set(null)}loadForShop(t){let e=this._cart();e&&e.bioPageId}enrichItemsFromProducts(t){let e=this._cart();if(!e)return;let n=new Map(t.map(s=>[s.id,s])),o=!1;for(let s of e.items){if(s.productType!==void 0&&s.requiresShipping!==void 0)continue;let P=n.get(s.productId);P&&(s.productType===void 0&&P.productType!==void 0&&(s.productType=P.productType,o=!0),s.requiresShipping===void 0&&P.requiresShipping!==void 0&&(s.requiresShipping=P.requiresShipping,o=!0))}o&&(this._cart.set(G(B({},e),{items:[...e.items]})),this.saveToStorage())}loadFromStorage(){if(this.isBrowser)try{let t=localStorage.getItem(Xe);if(t){let e=JSON.parse(t);e.bioPageId&&Array.isArray(e.items)&&this._cart.set(e)}}catch{localStorage.removeItem(Xe)}}saveToStorage(){if(!this.isBrowser)return;let t=this._cart();if(t)try{localStorage.setItem(Xe,JSON.stringify(t))}catch{}}removeFromStorage(){this.isBrowser&&localStorage.removeItem(Xe)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Ie({token:i,factory:i.\u0275fac,providedIn:"root"})};var tn=()=>({width:"380px"}),nn=i=>({country:i}),on=(i,t)=>({min:i,max:t}),pi=i=>({date:i}
3),rn=i=>({amount:i}),an=()=>({width:"420px",maxWidth:"95vw"}),ln=()=>({width:"420px",maxWidth:"95vw",maxHeight:"80vh"}),cn=(i,t)=>t.productId+(t.variantId||""),sn=(i,t)=>t[0],dn=(i,t)=>t.value,pn=(i,t)=>t.sendcloudMethodId,_n=(i,t)=>t.id;function mn(i,t){if(i&1){let e=y();a(0,"div",5),b("click",function(o){return f(e),h(o.stopPropagation())}),a(1,"h3",6),m(2,"i",7),d(3),p(4,"translate"),a(5,"span",8),d(6),l()(),a(7,"button",9),b("click",function(){f(e);let o=c();return h(o.onClose())}),m(8,"i",10),l()()}if(i&2){let e=c();r(3),u(" ",_(4,2,"SHOP.CART.TITLE")," "),r(3),u("(",e.cartService.itemCount(),")")}}function gn(i,t){if(i&1&&m(0,"img",15),i&2){let e=c().$implicit;x("src",e.imageUrl,z)("alt",e.title)}}function un(i,t){i&1&&(a(0,"div",16),m(1,"i",30),l())}function fn(i,t){if(i&1&&(a(0,"span",31),d(1),l()),i&2){let e=t.$implicit;r(),H("",e[0],": ",e[1],"")}}function hn(i,t){if(i&1&&(a(0,"div",19),k(1,fn,2,2,"span",31,sn),l()),i&2){let e=c().$implicit,n=c(3);r(),I(n.getOptionsEntries(e.options))}}function Cn(i,t){if(i&1&&(a(0,"span",21),d(1),l()),i&2){let e=c().$implicit,n=c(3);r(),v(n.formatPrice(e.compareAtPriceCents,e.currency))}}function xn(i,t){i&1&&m(0,"i",28)}function bn(i,t){i&1&&m(0,"i",29)}function vn(i,t){if(i&1){let e=y();a(0,"div",14),C(1,gn,1,2,"img",15)(2,un,2,0,"div",16),a(3,"div",17)(4,"div",18),d(5),l(),C(6,hn,3,0,"div",19),a(7,"div",20),C(8,Cn,2,1,"span",21),d(9),l(),a(10,"div",22)(11,"button",23),b("click",function(){let o=f(e).$implicit,s=c(3);return h(s.decrementQuantity(o))}),m(12,"i",24),l(),a(13,"span",25),d(14),l(),a(15,"button",23),b("click",function(){let o=f(e).$implicit,s=c(3);return h(s.incrementQuantity(o))}),m(16,"i",26),l(),a(17,"button",27),b("click",function(){let o=f(e).$implicit,s=c(3);return h(s.removeItem(o))}),C(18,xn,1,0,"i",28)(19,bn,1,0,"i",29),l()()()()}if(i&2){let e=t.$implicit,n=c(3);r(),g(e.imageUrl?1:2),r(4),u(" ",e.title," "),r(),g(e.options?6:-1),r(2),g(e.compareAtPriceCents?8:-1),r(),u(" ",n.formatPrice(e.priceCents,e.currency)," "),r(5),v(e.quantity),r(3),V("cart-item__remove--confirm",n.isConfirmingRemove(e)),r(),g(n.isConfirmingRemove(e)?18:19)}}function Pn(i,t){if(i&1&&(a(0,"div",12),k(1,vn,20,9,"div",14,cn),l()),i&2){let e=c(2);r(),I(e.cartService.items())}}function yn(i,t){if(i&1){let e=y();a(0,"div",13),m(1,"i",32),a(2,"p",33),d(3),p(4,"translate"),l(),a(5,"a",34),b("click",function(){f(e);let o=c(2);return h(o.onClose())}),m(6,"i",35),d(7),p(8,"translate"),l()()}i&2&&(r(3),u(" ",_(4,2,"SHOP.CART.EMPTY")," "),r(4),u("",_(8,4,"WIDGET.HEADER.MY_PURCHASES")," "))}function wn(i,t){if(i&1){let e=y();a(0,"div",11),b("click",function(o){return f(e),h(o.stopPropagation())}),C(1,Pn,3,0,"div",12)(2,yn,9,6,"div",13),l()}if(i&2){let e=c();r(),g(e.cartService.hasItems()?1:2)}}function Sn(i,t){if(i&1){let e=y();a(0,"div",40)(1,"span",52),m(2,"i",53),d(3),l(),a(4,"span",54),d(5),l(),a(6,"button",55),b("click",function(){f(e);let o=c(3);return h(o.removePromoCode())}),m(7,"i",10),l()()}if(i&2){let e=c(3);r(3),u("",e.cartService.promoCode()," "),r(2),u("-",e.formatPrice(e.cartService.discountCents(),e.cartService.currency()),"")}}function On(i,t){i&1&&m(0,"i",59)}function Mn(i,t){i&1&&(d(0),p(1,"translate")),i&2&&u(" ",_(1,1,"SHOP.CART.PROMO_APPLY")," ")}function kn(i,t){if(i&1&&(a(0,"div",60),d(1),l()),i&2){let e,n=c(4);r(),u(" ",(e=n.cartService.promoValidation())==null?null:e.reason," ")}}function In(i,t){if(i&1){let e=y();a(0,"div",56)(1,"input",57),p(2,"translate"),R("ngModelChange",function(o){f(e);let s=c(3);return T(s.promoCodeInput,o)||(s.promoCodeInput=o),h(o)}),b("keydown.enter",function(){f(e);let o=c(3);return h(o.applyPromoCode())}),l(),a(3,"button",58),b("click",function(){f(e);let o=c(3);return h(o.applyPromoCode())}),C(4,On,1,0,"i",59)(5,Mn,2,3),l()(),C(6,kn,2,1,"div",60)}if(i&2){let e,n=c(3);r(),E("ngModel",n.promoCodeInput),x("placeholder",_(2,5,"SHOP.CART.PROMO_PLACEHOLDER")),r(2),x("disabled",!n.promoCodeInput||n.cartService.promoLoading()),r(),g(n.cartService.promoLoading()?4:5),r(2),g(((e=n.cartService.promoValidation())==null?null:e.valid)===!1?6:-1)}}function En(i,t){if(i&1&&(a(0,"div",41)(1,"span"),d(2),p(3,"translate"),l(),a(4,"span",38),d(5),l()()),i&2){let e=c(3);r(2),v(_(3,2,"SHOP.CART.TOTAL")),r(3),v(e.formatPrice(e.cartService.totalCents(),e.cartService.currency()))}}function Tn(i,t){i&1&&(a(0,"div",42),m(1,"i",61),a(2,"span"),d(3),p(4,"translate"),l()()),i&2&&(r(3),v(_(4,1,"SHOP.CART.DIGITAL_ONLY_MESSAGE")))}function Rn(i,t){if(i&1&&d(0),i&2){let e=c(6);u(" ",e.localPickupAddress.line1," ")}}function Vn(i,t){if(i&1&&d(0),i&2){let e=c(6);u(" , ",e.localPickupAddress.line2," ")}}function An(i,t){if(i&1&&(m(0,"br"),d(1)),i&2){let e=c(6);r(),H("",e.localPickupAddress.postalCode," ",e.localPickupAddress.city," ")}}function Dn(i,t){if(i&1&&d(0),i&2){let e=c(6);u(" , ",e.localPickupAddress.country," ")}}function Ln(i,t){if(i&1&&(a(0,"div",70),m(1,"i",71),a(2,"span"),d(3),l()()),i&2){let e=c(6);r(3),v(e.localPickupInstructions)}}function Bn(i,t){if(i&1&&(a(0,"div",69),m(1,"i",68),a(2,"span"),C(3,Rn,1,1)(4,Vn,1,1)(5,An,2,2)(6,Dn,1,1),l()(),C(7,Ln,4,1,"div",70)),i&2){let e=c(5);r(3),g(e.localPickupAddress.line1?3:-1),r(),g(e.localPickupAddress.line2?4:-1),r(),g(e.localPickupAddress.postalCode||e.localPickupAddress.city?5:-1),r(),g(e.localPickupAddress.country?6:-1),r(),g(e.localPickupInstructions?7:-1)}}function Wn(i,t){if(i&1){let e=y();a(0,"div",62)(1,"div",64),d(2),p(3,"translate"),l(),a(4,"div",65)(5,"button",66),b("click",function(){f(e);let o=c(4);return h(o.setDeliveryMethod(!1))}),m(6,"i",67),d(7),p(8,"translate"),l(),a(9,"button",66),b("click",function(){f(e);let o=c(4);return h(o.setDeliveryMethod(!0))}),m(10,"i",68),d(11),p(12,"translate"),l()(),C(13,Bn,8,5),l()}if(i&2){let e=c(4);r(2),u(" ",_(3,8,"SHOP.CART.DELIVERY_METHOD")," "),r(3),V("cart-footer__delivery-option--active",!e.cartService.isLocalPickup()),r(2),u(" ",_(8,10,"SHOP.CART.DELIVERY_SHIPPING")," "),r(2),V("c
3art-footer__delivery-option--active",e.cartService.isLocalPickup()),r(2),u(" ",_(12,12,"SHOP.CART.DELIVERY_PICKUP")," "),r(2),g(e.cartService.isLocalPickup()&&e.localPickupAddress?13:-1)}}function zn(i,t){if(i&1&&m(0,"span",76),i&2){let e=c(5);x("ngClass","fp-"+e.cartService.selectedCountry().toLowerCase())}}function Fn(i,t){i&1&&m(0,"i",77)}function Un(i,t){if(i&1&&(a(0,"option",79),d(1),l()),i&2){let e=t.$implicit;x("value",e.value),r(),u(" ",e.label," ")}}function Hn(i,t){i&1&&(a(0,"span",82),m(1,"i",83),l())}function Nn(i,t){i&1&&m(0,"i",59)}function Gn(i,t){if(i&1&&(a(0,"span",85),m(1,"i",86),d(2),l()),i&2){let e=c(8);r(2),u("",e.formatPrice(0,e.cartService.currency())," ")}}function $n(i,t){if(i&1&&(a(0,"span"),d(1),p(2,"translate"),l()),i&2){let e=c(),n=c(7);r(),H("",_(2,2,"SHOP.CART.SHIPPING_FROM_PREFIX")," ",n.formatPrice(e.shippingCents,n.cartService.currency()),"")}}function qn(i,t){i&1&&(a(0,"span",84),d(1),p(2,"translate"),l()),i&2&&(r(),v(_(2,1,"SHOP.CART.SHIPPING_AT_CHECKOUT")))}function jn(i,t){if(i&1&&C(0,Gn,3,1,"span",85)(1,$n,3,4,"span")(2,qn,3,3,"span",84),i&2){let e=t;g(e.freeShipping?0:e.shippingCents>0?1:2)}}function Yn(i,t){i&1&&(a(0,"span",84),d(1),p(2,"translate"),l()),i&2&&(r(),v(_(2,1,"SHOP.CART.SHIPPING_AT_CHECKOUT")))}function Qn(i,t){if(i&1&&C(0,jn,3,1)(1,Yn,3,3,"span",84),i&2){let e,n=c(6);g((e=n.cartService.shippingEstimate())?0:1,e)}}function Zn(i,t){if(i&1&&(a(0,"div",80),C(1,Hn,2,0,"span",82)(2,Nn,1,0,"i",59)(3,Qn,2,1),l()),i&2){let e=c(5);r(),g(e.cartService.countryUnsupported()?1:e.cartService.shippingLoading()?2:3)}}function Kn(i,t){if(i&1&&(d(0),p(1,"translate")),i&2){let e=c(6);u(" ",L(1,1,"SHOP.CART.COUNTRY_NOT_SUPPORTED_DETECTED",de(4,nn,e.detectedCountryLabel))," ")}}function Jn(i,t){i&1&&(d(0),p(1,"translate")),i&2&&u(" ",_(1,1,"SHOP.CART.COUNTRY_NOT_SUPPORTED")," ")}function Xn(i,t){if(i&1&&(a(0,"div",81),m(1,"i",87),C(2,Kn,2,6)(3,Jn,2,3),l()),i&2){let e=c(5);r(2),g(e.cartService.selectedCountry()==="OTHER"&&e.detectedCountryLabel?2:3)}}function eo(i,t){if(i&1&&(a(0,"div",81),m(1,"i",91),d(2),p(3,"translate"),l()),i&2){let e=c(2);r(2),u(" ",L(3,1,"SHOP.CART.DELIVERY_ESTIMATE_VACATION",de(4,pi,e.deliveryEstimate.sellerVacationEnd))," ")}}function to(i,t){if(i&1&&(a(0,"div",89),m(1,"i",90),d(2),p(3,"translate"),l(),C(4,eo,4,6,"div",81)),i&2){let e=c();r(2),u(" ",L(3,2,"SHOP.CART.DELIVERY_ESTIMATE_RANGE",De(5,on,e.deliveryEstimate.minDeliveryLabel,e.deliveryEstimate.maxDeliveryLabel))," "),r(2),g(e.deliveryEstimate.sellerVacationApplied?4:-1)}}function io(i,t){if(i&1&&(a(0,"div",89),d(1),p(2,"translate"),l()),i&2){let e=c(),n=c(7);r(),u(" ",L(2,1,"SHOP.CART.FREE_SHIPPING_FROM",de(4,rn,n.formatPrice(e.freeShippingThresholdCents,n.cartService.currency())))," ")}}function no(i,t){if(i&1&&C(0,to,5,8)(1,io,3,6,"div",89),i&2){let e=t;g(e.deliveryEstimate?0:-1),r(),g(e.freeShippingThresholdCents&&!e.freeShipping&&e.freeShippingThresholdCents>0?1:-1)}}function oo(i,t){if(i&1&&C(0,no,2,2),i&2){let e,n=c(6);g((e=n.cartService.shippingEstimate())?0:-1,e)}}function ro(i,t){i&1&&m(0,"i",59)}function ao(i,t){i&1&&m(0,"i",95)}function lo(i,t){if(i&1&&(a(0,"span",85),m(1,"i",86),d(2),l()),i&2){let e=c(9);r(2),u("",e.formatPrice(0,e.cartService.currency())," ")}}function co(i,t){if(i&1&&d(0),i&2){let e=c().$implicit,n=c(8);u(" ",n.formatPrice(e.priceCents,n.cartService.currency())," ")}}function so(i,t){if(i&1){let e=y();a(0,"button",100),b("click",function(){let o=f(e).$implicit,s=c(8);return h(s.onSelectSendcloudRate(o))}),a(1,"div",101)(2,"strong"),d(3),l(),a(4,"span",102),d(5),l(),a(6,"span",103),d(7),p(8,"translate"),l()(),a(9,"div",104),C(10,lo,3,1,"span",85)(11,co,1,1),l()()}if(i&2){let e=t.$implicit,n=c(8);V("sendcloud-section__rate--selected",(n.sendcloudSelectedRate==null?null:n.sendcloudSelectedRate.sendcloudMethodId)===e.sendcloudMethodId),r(3),v(e.carrierLabel),r(2),v(e.serviceName),r(2),mt(" ",e.estimatedMinDays,"-",e.estimatedMaxDays," ",_(8,8,"SHOP.CART.SENDCLOUD_DAYS")," "),r(3),g(e.priceCents===0?10:11)}}function po(i,t){if(i&1&&(a(0,"div",96),k(1,so,12,10,"button",99,pn),l()),i&2){let e=c(7);r(),I(e.sendcloudRates)}}function _o(i,t){i&1&&(a(0,"div",97),d(1),p(2,"translate"),l()),i&2&&(r(),u(" ",_(2,1,"SHOP.CART.SENDCLOUD_NO_RATES")," "))}function mo(i,t){if(i&1){let e=y();a(0,"div",105),m(1,"i",68),a(2,"span"),d(3),l(),a(4,"button",107),b("click",function(){f(e);let o=c(8);return h(o.fetchServicePoints(o.sendcloudSelectedRate.carrier))}),d(5),p(6,"translate"),l()()}if(i&2){let e=c(8);r(3),ut("",e.sendcloudSelectedServicePoint.name," - ",e.sendcloudSelectedServicePoint.street," ",e.sendcloudSelectedServicePoint.house_number,", ",e.sendcloudSelectedServicePoint.postal_code," ",e.sendcloudSelectedServicePoint.city,""),r(2),u(" ",_(6,6,"SHOP.CART.SENDCLOUD_CHANGE_POINT")," ")}}function go(i,t){i&1&&m(0,"i",109)}function uo(i,t){i&1&&m(0,"i",68)}function fo(i,t){if(i&1){let e=y();a(0,"button",108),b("click",function(){f(e);let o=c(8);return h(o.fetchServicePoints(o.sendcloudSelectedRate.carrier))}),C(1,go,1,0,"i",109)(2,uo,1,0,"i",68),d(3),p(4,"translate"),l()}if(i&2){let e=c(8);x("disabled",e.sendcloudServicePointsLoading),r(),g(e.sendcloudServicePointsLoading?1:2),r(2),u(" ",_(4,3,"SHOP.CART.SENDCLOUD_SELECT_POINT")," ")}}function ho(i,t){if(i&1&&(a(0,"div",98),C(1,mo,7,8,"div",105)(2,fo,5,5,"button",106),l()),i&2){let e=c(7);r(),g(e.sendcloudSelectedServicePoint?1:2)}}function Co(i,t){if(i&1){let e=y();a(0,"div",88)(1,"div",92)(2,"input",93),p(3,"translate"),R("ngModelChange",function(o){f(e);let s=c(6);return T(s.sendcloudPostalCode,o)||(s.sendcloudPostalCode=o),h(o)}),b("keydown.enter",function(){f(e);let o=c(6);return h(o.fetchSendcloudRates())}),l(),a(4,"button",94),b("click",function(){f(e);let o=c(6);return h(o.fetchSendcloudRates())}),C(5,ro,1,0,"i",59)(6,ao,1,0,"i",95),l()(),C(7,po,3,0,"div",96)(8,_o,3,3,"div",97)(9,ho,3,1,"div",98),l()}if(i&2){let e=c(6);r(2),E("ngModel",e.sendcloudPostalCode),x("placeholder",_(3,6,"SHOP.CART.SENDCLOUD_POSTAL_CODE")),r(2),x("disabled",!e.sendcloudPostalCode||e.sendcloudRatesLoading),r(),g(e.sendcloudRatesLoading?5:6),r(2),g(e.sendcloudRates.length>0?7:!e.sendcloudRatesLoading&&e.sendcloudPostalCode?8:-1),r(2),g((e.sendcloudSelectedRate==null?null:e.sendcloudSelectedRate.servicePointInput)==="required"?9:-1)}}function xo(i,t){if(i&1&&C(0,oo,1,1)(1,Co,10,8,"div",88),i&2){let e=c(5);g(e.shippingMode!=="sendcloud"&&e.shippingMode!=="houla_shipping"?0:-1),r(),g(e.shippingMode==="sendcloud"||e.shippingMode==="houla_shipping"?1:-1)}}function bo(i,t){if(i&1){let e=y();a(0,"div",63)(1,"div",72),m(2,"i",73),d(3),p(4,"translate"),l(),a(5,"div",74)(6,"div",75),C(7,zn,1,1,"span",76)(8,Fn,1,0,"i",77
3),a(9,"select",78),b("change",function(o){f(e);let s=c(4);return h(s.onCountryChange(o))}),k(10,Un,2,2,"option",79,dn),l()(),C(12,Zn,4,1,"div",80),l(),C(13,Xn,4,1,"div",81)(14,xo,2,2),l()}if(i&2){let e=c(4);r(3),u(" ",_(4,6,"SHOP.CART.SHIPPING_COST")," "),r(4),g(e.cartService.selectedCountry()!=="OTHER"?7:8),r(2),x("value",e.cartService.selectedCountry()),r(),I(e.availableCountries),r(2),g(e.shippingMode!=="sendcloud"&&e.shippingMode!=="houla_shipping"?12:-1),r(),g(e.cartService.countryUnsupported()?13:-1),r(),g(e.cartService.countryUnsupported()?-1:14)}}function vo(i,t){if(i&1&&(a(0,"div",43),C(1,Wn,14,14,"div",62)(2,bo,15,8,"div",63),l()),i&2){let e=c(3);r(),g(e.localPickupEnabled?1:-1),r(),g(e.cartService.isLocalPickup()?-1:2)}}function Po(i,t){if(i&1&&(d(0),p(1,"translate")),i&2){let e=c(4);u(" ",L(1,1,"SHOP.CART.OPEN_CART_BANNER_DESC_WITH_DATE",de(4,pi,e.formatCartCloseDate(e.cartService.shippingEstimate().deliveryEstimate.cartCloseDate)))," ")}}function yo(i,t){i&1&&(d(0),p(1,"translate")),i&2&&u(" ",_(1,1,"SHOP.CART.OPEN_CART_BANNER_DESC")," ")}function wo(i,t){if(i&1){let e=y();a(0,"div",44)(1,"div",110),m(2,"i",111),l(),a(3,"div",112)(4,"div",113),d(5),p(6,"translate"),l(),a(7,"div",114),C(8,Po,2,6)(9,yo,2,3),a(10,"a",115),b("click",function(){f(e);let o=c(3);return h(o.showMergeInfoDialog=!0)}),d(11),p(12,"translate"),l()()()()}if(i&2){let e,n=c(3);r(5),u(" ",_(6,3,"SHOP.CART.OPEN_CART_BANNER_TITLE")," "),r(3),g(!((e=n.cartService.shippingEstimate())==null||e.deliveryEstimate==null)&&e.deliveryEstimate.cartCloseDate?8:9),r(3),v(_(12,5,"SHOP.CART.MERGE_LEARN_MORE"))}}function So(i,t){i&1&&m(0,"i",46)}function Oo(i,t){i&1&&(a(0,"div",47),m(1,"i",87),d(2),p(3,"translate"),l()),i&2&&(r(2),u(" ",_(3,1,"SHOP.CART.CHECKOUT_ERROR")," "))}function Mo(i,t){if(i&1){let e=y();
3a(0,"div",36)(1,"div",37)(2,"span"),d(3),p(4,"translate"),l(),a(5,"span",38),d(6),l()(),a(7,"div",39),C(8,Sn,8,2,"div",40)(9,In,7,7),l(),C(10,En,6,4,"div",41)(11,Tn,5,3,"div",42)(12,vo,3,2,"div",43)(13,wo,13,7,"div",44),a(14,"button",45),b("click",function(){f(e);let o=c(2);return h(o.onCheckout())}),C(15,So,1,0,"i",46),d(16),p(17,"translate"),l(),C(18,Oo,4,3,"div",47),a(19,"div",48)(20,"button",49),b("click",function(){f(e);let o=c(2);return h(o.onClose())}),d(21),p(22,"translate"),l(),a(23,"a",50),b("click",function(){f(e);let o=c(2);return h(o.onClose())}),m(24,"i",51),d(25),p(26,"translate"),l()()()}if(i&2){let e=c(2);r(3),v(_(4,13,"SHOP.CART.SUBTOTAL")),r(3),v(e.formatPrice(e.cartService.subtotalCents(),e.cartService.currency())),r(2),g(e.cartService.promoCode()?8:9),r(2),g(e.cartService.discountCents()>0?10:-1),r(),g(e.cartService.isDigitalOnly()?11:-1),r(),g(e.cartService.hasPhysicalItems()?12:-1),r(),g(e.openCartEnabled&&e.cartService.hasPhysicalItems()?13:-1),r(),x("disabled",e.checkoutLoading||!e.cartService.isDigitalOnly()&&e.cartService.countryUnsupported()||!e.cartService.isDigitalOnly()&&!e.sendcloudCheckoutReady),r(),g(e.checkoutLoading?15:-1),r(),u(" ",_(17,15,"SHOP.CART.CHECKOUT")," "),r(2),g(e.checkoutError?18:-1),r(3),u(" ",_(22,17,"SHOP.CART.CONTINUE_SHOPPING")," "),r(4),u("",_(26,19,"SHOP.CART.VIEW_MY_ORDERS")," ")}}function ko(i,t){if(i&1){let e=y();a(0,"div",11),b("click",function(o){return f(e),h(o.stopPropagation())}),C(1,Mo,27,21,"div",36),l()}if(i&2){let e=c();r(),g(e.cartService.hasItems()?1:-1)}}function Io(i,t){i&1&&(a(0,"div",121),m(1,"i",126),d(2),p(3,"translate"),l()),i&2&&(r(2),u(" ",_(3,1,"SHOP.CART.MERGE_DIALOG_SELLER_ENABLED")," "))}function Eo(i,t){if(i&1){let e=y();a(0,"p-dialog",116),p(1,"translate"),R("visibleChange",function(o){f(e);let s=c();return T(s.showMergeInfoDialog,o)||(s.showMergeInfoDialog=o),h(o)}),a(2,"div",117)(3,"div",118),m(4,"i",119),l(),a(5,"p",120),d(6),p(7,"translate"),l(),C(8,Io,4,3,"div",121),a(9,"div",122)(10,"div",123),m(11,"i",124),a(12,"div")(13,"strong"),d(14),p(15,"translate"),l(),a(16,"p"),d(17),p(18,"translate"),l()()(),a(19,"div",123),m(20,"i",73),a(21,"div")(22,"strong"),d(23),p(24,"translate"),l(),a(25,"p"),d(26),p(27,"translate"),l()()(),a(28,"div",123),m(29,"i",125),a(30,"div")(31,"strong"),d(32),p(33,"translate"),l(),a(34,"p"),d(35),p(36,"translate"),l()()()()()()}if(i&2){let e=c();F(D(30,an)),E("visible",e.showMergeInfoDialog),x("modal",!0)("closable",!0)("header",_(1,14,"SHOP.CART.MERGE_DIALOG_TITLE")),r(6),u(" ",_(7,16,"SHOP.CART.MERGE_DIALOG_INTRO")," "),r(2),g(e.openCartEnabled?8:-1),r(6),v(_(15,18,"SHOP.CART.MERGE_DIALOG_FEAT1_TITLE")),r(3),u(" ",_(18,20,"SHOP.CART.MERGE_DIALOG_FEAT1_DESC")," "),r(6),v(_(24,22,"SHOP.CART.MERGE_DIALOG_FEAT2_TITLE")),r(3),u(" ",_(27,24,"SHOP.CART.MERGE_DIALOG_FEAT2_DESC")," "),r(6),v(_(33,26,"SHOP.CART.MERGE_DIALOG_FEAT3_TITLE")),r(3),u(" ",_(36,28,"SHOP.CART.MERGE_DIALOG_FEAT3_DESC")," ")}}function To(i,t){i&1&&(a(0,"div",128),m(1,"i",131),l())}function Ro(i,t){i&1&&(a(0,"div",129),d(1),p(2,"translate"),l()),i&2&&(r(),u(" ",_(2,1,"SHOP.CART.SENDCLOUD_NO_SERVICE_POINTS")," "))}function Vo(i,t){if(i&1&&(a(0,"div",136),d(1),l()),i&2){let e=c().$implicit;r(),u(" ",(e.distance/1e3).toFixed(1)," km ")}}function Ao(i,t){if(i&1){let e=y();a(0,"button",133),b("click",function(){let o=f(e).$implicit,s=c(3);return h(s.selectServicePoint(o))}),a(1,"div",134),d(2),l(),a(3,"div",135),d(4),l(),C(5,Vo,2,1,"div",136),l()}if(i&2){let e=t.$implicit,n=c(3);V("sp-dialog-item--selected",(n.sendcloudSelectedServicePoint==null?null:n.sendcloudSelectedServicePoint.id)===e.id),r(2),u(" ",e.name," "),r(2),gt(" ",e.street," ",e.house_number,", ",e.postal_code," ",e.city," "),r(),g(e.distance?5:-1)}}function Do(i,t){if(i&1&&(a(0,"div",130),k(1,Ao,6,8,"button",132,_n),l()),i&2){let e=c(2);r(),I(e.sendcloudServicePoints)}}function Lo(i,t){if(i&1){let e=y();a(0,"p-dialog",116),p(1,"translate"),R("visibleChange",function(o){f(e);let s=c();return T(s.showServicePointDialog,o)||(s.showServicePointDialog=o),h(o)}),a(2,"div",127),C(3,To,2,0,"div",128)(4,Ro,3,3,"div",129)(5,Do,3,0,"div",130),l()()}if(i&2){let e=c();F(D(9,ln)),E("visible",e.showServicePointDialog),x("modal",!0)("closable",!0)("header",_(1,7,"SHOP.CART.SENDCLOUD_SERVICE_POINTS_TITLE")),r(3),g(e.sendcloudServicePointsLoading?3:e.sendcloudServicePoints.length===0?4:5)}}var et=class i{cartService=S(ve);platformId=S(q);translate=S(ze);profileService=S(Ye);visible=!1;username="";workspaceId="";checkoutLoading=!1;checkoutError="";localPickupEnabled=!1;localPickupAddress=null;localPickupInstructions=null;shippingCountries=[];openCartEnabled=!0;shippingMode="manual";visibleChange=new W;checkoutRequested=new W;promoCodeInput="";showMergeInfoDialog=!1;get shop(){return jt(this.workspaceId,this.username)}get hasShop(){return!!this.workspaceId||!!this.username}sendcloudPostalCode="";sendcloudRates=[];sendcloudRatesLoading=!1;sendcloudSelectedRate=null;sendcloudServicePoints=[];sendcloudServicePointsLoading=!1;sendcloudSelectedServicePoint=null;showServicePointDialog=!1;get availableCountries(){let t=this.shippingCountries.length>0,n=(t?this.shippingCountries:Object.keys(Qe)).map(o=>({value:o,label:Qe[o]||o}));return t&&n.push({value:"OTHER",label:this.otherCountryLabel}),n}get otherCountryLabel(){return this.translate.instant("SHOP.CART.OTHER_COUNTRY")||"Autre pays"}get detectedCountryLabel(){let t=this.cartService.detectedCountry();return t?Qe[t]||t:""}confirmingRemoveId=null;confirmingRemoveTimer=null;confirmingClear=!1;confirmingClearTimer=null;onClose(){this.visible=!1,this.visibleChange.emit(!1)}getOptionsEntries(t){return Object.entries(t)}formatPrice(t,e){return`${(t/100).toFixed(2)} ${e==="EUR"?"EUR":e}`}incrementQuantity(t){this.cartService.updateQuantity(t.productId,t.variantId,t.quantity+1),this.refreshShippingEstimate()}decrementQuantity(t){this.cartService.updateQuantity(t.productId,t.variantId,t.quantity-1),this.refreshShippingEstimate()}isConfirmingRemove(t){return this.confirmingRemoveId===t.productId+(t.variantId||"")}removeItem(t){let e=t.productId+(t.variantId||"");this.confirmingRemoveId===e?(this.cartService.removeItem(t.productId,t.variantId),this.confirmingRemoveId=null,this.confirmingRemoveTimer&&clearTimeout(this.confirmingRemoveTimer)):(this.confirmingRemoveId=e,this.confirmingRemoveTimer&&clearTimeout(this.confirmingRemoveTimer),this.confirmingRemoveTimer=setTimeout(()=>{this.confirmingRemoveId=null},3e3))}onClearCart(){this.confirmingClear?(this.cartService.clearCart(),this.confirmingClear=!1,this.confirmingClearTimer&&clearTimeout(this.confirmingClearTimer)):(this.confirmingClear=!0,this.confirmingClearTimer&&clearTimeout(this.confirmingClearTimer),this.confirmingClearTimer=setTimeout(()=>{this.confirmingClear=!1},3e3))}applyPromoCode(){!this.promoCodeInput||!this.hasShop||this.cartService.applyPromoCode(this.promoCodeInput.trim().toUpperCase(),this.shop)}removePromoCode(){this.promoCodeInput="",this.cartService.clearPromoCode()}setDeliveryMethod(t){this.cartService.setLocalPickup(t)}onCountryChange(t){let e=t.target;e.value&&this.hasShop&&this.cartService.setSelectedCountry(e.value,this.shop,this.shippingCountries)}refreshShippingEstimate(){!this.hasShop||this.cartService.isLocalPickup()||this.cartService.countryUnsupported()||this.cartService.fetchShippingEstimate(this.shop,this.cartService.selectedCountry())}onCheckout(){if(!this.checkoutLoading)if((this.shippingMode==="sendcloud"||this.shippingMode==="houla_shipping")&&!this.cartService.isLocalPickup()){if
3(!this.sendcloudSelectedRate||this.sendcloudSelectedRate.servicePointInput==="required"&&!this.sendcloudSelectedServicePoint)return;let t={sendcloudMethodId:this.sendcloudSelectedRate.sendcloudMethodId,sendcloudPriceCents:this.sendcloudSelectedRate.priceCents};this.sendcloudSelectedServicePoint&&(t.servicePointId=this.sendcloudSelectedServicePoint.id.toString(),t.servicePointAddress={name:this.sendcloudSelectedServicePoint.name,street:this.sendcloudSelectedServicePoint.street,houseNumber:this.sendcloudSelectedServicePoint.house_number,postalCode:this.sendcloudSelectedServicePoint.postal_code,city:this.sendcloudSelectedServicePoint.city,country:this.sendcloudSelectedServicePoint.country}),this.checkoutRequested.emit(t)}else this.checkoutRequested.emit(null)}get sendcloudCheckoutReady(){return this.shippingMode!=="sendcloud"&&this.shippingMode!=="houla_shipping"||this.cartService.isLocalPickup()?!0:!(!this.sendcloudSelectedRate||this.sendcloudSelectedRate.servicePointInput==="required"&&!this.sendcloudSelectedServicePoint)}fetchSendcloudRates(){return U(this,null,function*(){if(!this.hasShop||!this.sendcloudPostalCode)return;let t=this.cartService.selectedCountry();if(!t||t==="OTHER")return;let e=this.cartService.shippingEstimate(),n=e?.weightGrams||e?.cartWeightGrams||500,o=this.cartService.subtotalCents();this.sendcloudRatesLoading=!0,this.sendcloudRates=[],this.sendcloudSelectedRate=null,this.sendcloudSelectedServicePoint=null;try{let s=yield this.profileService.getSendcloudRates(this.shop,t,this.sendcloudPostalCode,n,o);this.sendcloudRates=s.rates}catch{this.sendcloudRates=[]}finally{this.sendcloudRatesLoading=!1}})}onSelectSendcloudRate(t){this.sendcloudSelectedRate=t,this.sendcloudSelectedServicePoint=null,t.servicePointInput==="required"&&this.fetchServicePoints(t.carrier)}fetchServicePoints(t){return U(this,null,function*(){if(!this.hasShop||!this.sendcloudPostalCode)return;let e=this.cartService.selectedCountry();if(!(!e||e==="OTHER")){this.sendcloudServicePointsLoading=!0,this.sendcloudServicePoints=[];try{let n=yield this.profileService.getSendcloudServicePoints(this.shop,t,e,this.sendcloudPostalCode);this.sendcloudServicePoints=n.servicePoints,this.sendcloudServicePoints.length>0&&(this.showServicePointDialog=!0)}catch{this.sendcloudServicePoints=[]}finally{this.sendcloudServicePointsLoading=!1}}})}selectServicePoint(t){this.sendcloudSelectedServicePoint=t,this.showServicePointDialog=!1}formatCartCloseDate(t){try{let e=new Date(t),n=this.translate.currentLang||"fr",o=n==="fr"?"fr-FR":"en-GB",s=e.toLocaleDateString(o,{weekday:"long",day:"numeric",month:"long"});if(e.getHours()===0&&e.getMinutes()===0)return s;let P=e.getHours().toString().padStart(2,"0"),w=e.getMinutes().toString().padStart(2,"0");return n==="fr"?`${s} \xE0 ${P}h${w}`:`${s} at ${P}:${w}`}catch{return t}}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=j({type:i,selectors:[["app-widget-cart-drawer"]],inputs:{visible:"visible",username:"username",workspaceId:"workspaceId",checkoutLoading:"checkoutLoading",checkoutError:"checkoutError",localPickupEnabled:"localPickupEnabled",localPickupAddress:"localPickupAddress",localPickupInstructions:"localPickupInstructions",shippingCountries:"shippingCountries",openCartEnabled:"openCartEnabled",shippingMode:"shippingMode"},outputs:{visibleChange:"visibleChange",checkoutRequested:"checkoutRequested"},decls:6,vars:8,consts:[["position","right",3,"visibleChange","onHide","visible","modal","showCloseIcon"],["pTemplate","header"],["pTemplate","content"],["pTemplate","footer"],[3,"visible","modal","closable","style","header"],[1,"cart-drawer-header",3,"click"],[1,"cart-drawer-title"],[1,"pi","pi-shopping-cart","me-2"],[1,"cart-drawer-count"],[1,"cart-drawer-close",3,"click"],[1,"pi","pi-times"],[3,"click"],[1,"cart-items"],[1,"cart-empty"],[1,"cart-item"],["loading","lazy",1,"cart-item__image",3,"src","alt"],[1,"cart-item__image","cart-item__image--placeholder"],[1,"cart-item__info"],[1,"cart-item__title"],[1,"cart-item__options"],[1,"cart-item__price"],[1,"cart-item__price--original"],[1,"cart-item__quantity"],[1,"cart-item__qty-btn",3,"click"],[1,"pi","pi-minus"],[1,"cart-item__qty-value"],[1,"pi","pi-plus"],[1,"cart-item__remove",3,"click"],[1,"pi","pi-check"],[1,"pi","pi-trash"],[1,"pi","pi-box"],[1,"cart-item__option"],[1,"pi","pi-shopping-cart","cart
3-empty__icon"],[1,"cart-empty__text"],["routerLink","/studio/purchases",1,"cart-empty__orders-link",3,"click"],[1,"pi","pi-shopping-bag","me-1"],[1,"cart-footer"],[1,"cart-footer__subtotal"],[1,"cart-footer__total-price"],[1,"cart-footer__promo"],[1,"cart-footer__promo-applied"],[1,"cart-footer__total"],[1,"cart-footer__digital-only"],[1,"cart-footer__shipping"],[1,"cart-footer__open-cart-banner"],[1,"cart-footer__checkout-btn",3,"click","disabled"],[1,"pi","pi-spinner","pi-spin","me-2"],[1,"cart-footer__error"],[1,"cart-footer__bottom-links"],[1,"cart-footer__clear-btn",3,"click"],["routerLink","/studio/purchases",1,"cart-footer__orders-link",3,"click"],[1,"pi","pi-list","me-1"],[1,"cart-footer__promo-badge"],[1,"pi","pi-ticket","me-1"],[1,"cart-footer__promo-discount"],[1,"cart-footer__promo-remove",3,"click"],[1,"cart-footer__promo-input"],["pInputText","",1,"cart-footer__promo-field",2,"text-transform","uppercase",3,"ngModelChange","keydown.enter","ngModel","placeholder"],[1,"cart-footer__promo-apply",3,"click","disabled"],[1,"pi","pi-spin","pi-spinner"],[1,"cart-footer__promo-error"],[1,"pi","pi-download"],[1,"cart-footer__delivery-method"],[1,"cart-footer__estimate"],[1,"cart-footer__delivery-label"],[1,"cart-footer__delivery-options"],[1,"cart-footer__delivery-option",3,"click"],[1,"pi","pi-truck","me-1"],[1,"pi","pi-map-marker","me-1"],[1,"cart-footer__pickup-address"],[1,"cart-footer__pickup-address","mt-2"],[1,"pi","pi-info-circle","me-1"],[1,"cart-footer__shipping-label"],[1,"pi","pi-truck"],[1,"cart-footer__estimate-row"],[1,"cart-footer__estimate-country"],[1,"fp","fp-rounded",3,"ngClass"],[1,"pi","pi-globe"],[1,"cart-footer__country-select",3,"change","value"],[3,"value"],[1,"cart-footer__estimate-price"],[1,"cart-footer__country-blocked"],[1,"cart-footer__no-shipping"],[1,"pi","pi-times-circle"],[1,"cart-footer__shipping-note"],[1,"cart-footer__free-shipping"],[1,"pi","pi-check-circle","me-1"],[1,"pi","pi-exclamation-triangle","me-1"],[1,"sendcloud-section","mt-2"],[1,"cart-footer__free-threshold"],[1,"pi","pi-calendar","me-1"],[1,"pi","pi-briefcase","me-1"],[1,"d-flex","gap-2","mb-2"],["pInputText","","type","text",1,"sendcloud-section__postal-input",3,"ngModelChange","keydown.enter","ngModel","placeholder"],[1,"sendcloud-section__fetch-btn",3,"click","disabled"],[1,"pi","pi-search"],[1,"sendcloud-section__rates"],[1,"sendcloud-section__no-rates"],[1,"sendcloud-section__service-point","mt-2"],[1,"sendcloud-section__rate",3,"sendcloud-section__rate--selected"],[1,"sendcloud-section__rate",3,"click"],[1,"sendcloud-section__rate-info"],[1,"sendcloud-section__rate-service"],[1,"sendcloud-section__rate-days"],[1,"sendcloud-section__rate-price"],[1,"sendcloud-section__sp-selected"],[1,"sendcloud-section__sp-btn",3,"disabled"],[1,"sendcloud-section__sp-change",3,"click"],[1,"sendcloud-section__sp-btn",3,"click","disabled"],[1,"pi","pi-spin","pi-spinner","me-1"],[1,"cart-footer__open-cart-icon"],[1,"pi","pi-clock"],[1,"cart-footer__open-cart-body"],[1,"cart-footer__open-cart-title"],[1,"cart-footer__open-cart-desc"],[1,"cart-footer__open-cart-link",3,"click"],[3,"visibleChange","visible","modal","closable","header"],[1,"merge-dialog-content"],[1,"merge-dialog-hero"],[1,"pi","pi-sync"],[1,"merge-dialog-intro"],[1,"merge-dialog-seller-badge"],[1,"merge-dialog-features"],[1,"merge-dialog-feature"],[1,"pi","pi-shopping-cart"],[1,"pi","pi-lock"],[1,"pi","pi-check-circle"],[1,"sp-dialog-content"],[1,"text-center","p-4"],[1,"text-center","p-4","text-muted"],[1,"sp-dialog-list"],[1,"pi","pi-spin","pi-spinner",2,"font-size","1.5rem"],[1,"sp-dialog-item",3,"sp-dialog-item--selected"],[1,"sp-dialog-item",3,"click"],[1,"sp-dialog-item__name"],[1,"sp-dialog-item__address"],[1,"sp-dialog-item__distance"]],template:function(e,n){e&1&&(a(0,"p-sidebar",0),R("visibleChange",function(s){return T(n.visible,s)||(n.visible=s),s}),b("onHide",function(){return n.onClose()}),C(1,mn,9,4,"ng-template",1)(2,wn,3,1,"ng-template",2)(3,ko,2,1,"ng-template",3),l(),C(4,Eo,37,31,"p-dialog",4)(5,Lo,6,10,"p-dialog",4)),e&2&&(F(D(7,tn)),E("visible",n.visible),x("modal",!0)("showCloseIcon",!1),r(4),g(n.showMergeInfoDialog?4:-1),r(),g(n.showServicePointDialog?5:-1))},dependencies:[Y,J,Q,N,Kt,Zt,He,ee,Ut,qe,$e,te,K,be,Dt,Lt,Ce,xe,Ue,wt,we],styles:["[_nghost-%COMP%]{display:block}
3.cart-drawer-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%;padding:0}.cart-drawer-title[_ngcontent-%COMP%]{font-size:1.1rem;font-weight:600;margin:0;display:flex;align-items:center}.cart-drawer-count[_ngcontent-%COMP%]{font-weight:400;color:var(--text-color-secondary);margin-left:4px}.cart-drawer-close[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:8px;border-radius:50%;color:var(--p-text-color-secondary, #6b7280);transition:background .2s}.cart-drawer-close[_ngcontent-%COMP%]:hover{background:var(--p-surface-hover, #f3f4f6)}.cart-items[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;position:relative}[_nghost-%COMP%] .p-sidebar-content{overflow-y:auto;mask-image:linear-gradient(to bottom,transparent 0,black 8px,black calc(100% - 8px),transparent 100%);-webkit-mask-image:linear-gradient(to bottom,transparent 0,black 8px,black calc(100% - 8px),transparent 100%)}.cart-item[_ngcontent-%COMP%]{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--surface-border)}.cart-item[_ngcontent-%COMP%]:last-child{border-bottom:none}.cart-item__image[_ngcontent-%COMP%]{width:64px;height:64px;border-radius:8px;object-fit:cover;flex-shrink:0;background:var(--p-surface-100, #f3f4f6)}.cart-item__image--placeholder[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;color:var(--p-text-color-secondary, #6b7280);font-size:1.5rem}.cart-item__info[_ngcontent-%COMP%]{flex:1;min-width:0}.cart-item__title[_ngcontent-%COMP%]{font-weight:600;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:2px}.cart-item__options[_ngcontent-%COMP%]{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:4px}.cart-item__option[_ngcontent-%COMP%]{font-size:.75rem;color:var(--p-text-color-secondary, #6b7280);background:var(--p-surface-100, #f3f4f6);padding:1px 6px;border-radius:4px}.cart-item__price[_ngcontent-%COMP%]{font-weight:600;font-size:.9rem;color:#10b981;margin-bottom:6px}.cart-item__price--original[_ngcontent-%COMP%]{text-decoration:line-through;color:var(--p-text-color-secondary, #6b7280);font-weight:400;margin-right:6px}.cart-item__quantity[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.cart-item__qty-btn[_ngcontent-%COMP%]{width:28px;height:28px;border-radius:6px;border:1px solid var(--p-surface-border, #e5e7eb);background:var(--p-surface-ground, #fff);color:var(--p-text-color, #1f2937);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.7rem;transition:border-color .2s}.cart-item__qty-btn[_ngcontent-%COMP%]:hover{border-color:#10b981}.cart-item__qty-value[_ngcontent-%COMP%]{font-weight:600;min-width:20px;text-align:center}.cart-item__remove[_ngcontent-%COMP%]{margin-left:auto;background:none;border:none;cursor:pointer;color:#ef4444;padding:4px 6px;border-radius:4px;font-size:.85rem;transition:background .2s,color .2s}.cart-item__remove[_ngcontent-%COMP%]:hover{background:#fef2f2}.cart-item__remove--confirm[_ngcontent-%COMP%]{background:#ef4444;color:#fff;border-radius:4px;animation:_ngcontent-%COMP%_confirm-pulse .3s ease}.cart-item__remove--confirm[_ngcontent-%COMP%]:hover{background:#dc2626}@keyframes _ngcontent-%COMP%_confirm-pulse{0%{transform:scale(1)}50%{transform:scale(1.15)}to{transform:scale(1)}}.cart-empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center}.cart-empty__icon[_ngcontent-%COMP%]{font-size:3rem;color:var(--p-surface-400, #9ca3af);margin-bottom:16px}.cart-empty__text[_ngcontent-%COMP%]{color:var(--p-text-color-secondary, #6b7280);font-size:.95rem}.cart-empty__orders-link[_ngcontent-%COMP%]{margin-top:20px;display:inline-flex;align-items:center;padding:10px 20px;border-radius:8px;background:var(--p-surface-100, #f3f4f6);color:var(--p-text-color, #374151);text-decoration:none;font-size:.9rem;font-weight:500;transition:background .2s,color .2s}.cart-empty__orders-link[_ngcontent-%COMP%]:hover{background:var(--p-primary-color, #3b82f6);color:#fff}.cart-footer[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.cart-footer__subtotal[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:.95rem;font-weight:500;padding:4px 0 0;color:var(--p-text-color-secondary, #6b7280)}.cart-footer__total-price[_ngcontent-%COMP%]{color:var(--p-text-color, #1f2937);font-weight:600}.cart-footer__total[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:1.1rem;font-weight:700;padding:8px 0 4px;border-top:2px solid var(--p-surface-border, #e5e7eb)}.cart-footer__promo[_ngcontent-%COMP%]{padding:4px 0}.cart-footer__promo-input[_ngcontent-%COMP%]{display:flex;gap:6px}.cart-footer__promo-field[_ngcontent-%COMP%]{flex:1;font-size:.85rem;padding:6px 10px;font-family:monospace}.cart-footer__promo-apply[_ngcontent-%COMP%]{padding:6px 14px;background:#10b981;color:#fff;border:none;border-radius:6px;font-size:.85rem;font-weight:600;cursor:pointer;white-space:nowrap}.cart-footer__promo-apply[_ngcontent-%COMP%]:hover:not(:disabled){background:#059669}.cart-footer__promo-apply[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}.cart-footer__promo-error[_ngcontent-%COMP%]{font-size:.8rem;color:#ef4444;margin-top:4px}.cart-footer__promo-applied[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;background:#f0fdf4;border:1px solid #86efac;border-radius:6px;padding:6px 10px}.cart-footer__promo-badge[_ngcontent-%COMP%]{font-family:monospace;font-weight:600;font-size:.85rem;color:#15803d;flex:1}.cart-footer__promo-discount[_ngcontent-%COMP%]{font-weight:600;color:#15803d;font-size:.9rem}.cart-footer__promo-remove[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;color:var(--p-text-color-secondary, #6b7280);padding:2px;font-size:.8rem}.cart-footer__promo-remove[_ngcontent-%COMP%]:hover{color:#ef4444}.cart-footer__shipping[_ngcontent-%COMP%]{font-size:.8rem;color:var(--p-text-color-secondary, #6b7280);text-align:center}.cart-footer__delivery-method[_ngcontent-%COMP%]{text-align:left}.cart-footer__delivery-label[_ngcontent-%COMP%]{font-size:.8rem;font-weight:600;margin-bottom:6px;color:var(--p-text-color, #1f2937)}.cart-footer__delivery-options[_ngcontent-%COMP%]{display:flex;gap:6px;margin-bottom:6px}.cart-footer__delivery-option[_ngcontent-%COMP%]{flex:1;padding:8px 10px;border:1px solid var(--p-surface-border, #e5e7eb);border-radius:6px;background:var(--p-surface-ground, #fff);color:var(--p-text-color-secondary, #6b7280);font-size:.8rem;font-weight:500;cursor:pointer;transition:border-color .2s,color .2s,background .2s;text-align:center}.cart-footer__delivery-option[_ngcontent-%COMP%]:hover{border-color:#10b981;color:#10b981}.cart-footer__delivery-option--active[_ngcontent-%COMP%]{border-color:#10b981;color:#10b981;background:#f0fdf4;font-weight:600}.cart-footer__pickup-address[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:4px;font-size:.75rem;color:var(--p-text-color-secondary, #6b7280);background:#f0fdf4;border-radius:6px;padding:8px 10px;margin-top:4px}.cart-footer__pickup-address[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#10b981;margin-top:2px;flex-shrink:0}.cart-footer__shipping[_ngcontent-%COMP%]{padding-top:8px;border-top:1px solid var(--p-surface-border, #e5e7eb)}.cart-footer__digital-only[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:10px 12px;background:linear-gradient(135deg,#eff6ff,#eef2ff);border:1px solid #bfdbfe;border-radius:8px;font-size:.82rem;color:#1e40af;font-weight:500;line-height:1.4}.cart-footer__digital-only[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem;color:#3b82f6;flex-shrink:0}.cart-footer__shipping-note[_ngcontent-%COMP%]{font-size:.75rem;color:var(--p-text-color-secondary, #6b7280);text-align:right;white-space:nowrap}.cart-footer__estimate[_ngcontent-%COMP%]{margin-top:4px}.cart-footer__shipping-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;font-size:.8rem;font-weight:600;color:var(--p-text-color, #1f2937);margin-bottom:4px}.cart-footer__shipping-label[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:var(--p-text-color-secondary, #6b7280);font-size:.85rem}
3.cart-footer__estimate-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.cart-footer__estimate-country[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;min-width:0;flex:1 1 0;overflow:hidden}.cart-footer__estimate-country[_ngcontent-%COMP%] .fp[_ngcontent-%COMP%]{flex-shrink:0;width:20px;height:15px}.cart-footer__country-select[_ngcontent-%COMP%]{background:var(--p-surface-ground, #fff);border:1px solid var(--p-surface-border, #e5e7eb);border-radius:4px;min-width:0;width:100%;padding:4px 8px;font-size:.8rem;color:var(--p-text-color, #1f2937);cursor:pointer;outline:none;text-overflow:ellipsis}.cart-footer__country-select[_ngcontent-%COMP%]:hover, .cart-footer__country-select[_ngcontent-%COMP%]:focus{border-color:#10b981}.cart-footer__estimate-price[_ngcontent-%COMP%]{flex-shrink:0;font-size:.82rem;font-weight:600;color:var(--p-text-color, #1f2937);white-space:nowrap;text-align:right}.cart-footer__free-shipping[_ngcontent-%COMP%]{color:#10b981;font-weight:600}.cart-footer__free-threshold[_ngcontent-%COMP%]{font-size:.72rem;color:#10b981;text-align:left;margin-top:6px;display:flex;align-items:center;gap:4px;line-height:1.3}.cart-footer__no-shipping[_ngcontent-%COMP%]{color:#ef4444;font-weight:600}.cart-footer__country-blocked[_ngcontent-%COMP%]{font-size:.78rem;color:#ef4444;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;padding:8px 10px;margin-top:6px;line-height:1.4}.cart-footer__country-blocked[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#ef4444}.cart-footer__open-cart-banner[_ngcontent-%COMP%]{display:flex;gap:10px;padding:10px 12px;background:linear-gradient(135deg,#f0fdf4,#ecfdf5);border:1px solid #bbf7d0;border-radius:8px;align-items:flex-start}.cart-footer__open-cart-icon[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:50%;background:#10b981;color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:.9rem}.cart-footer__open-cart-body[_ngcontent-%COMP%]{flex:1;min-width:0}.cart-footer__open-cart-title[_ngcontent-%COMP%]{font-size:.8rem;font-weight:700;color:#166534;margin-bottom:2px}.cart-footer__open-cart-desc[_ngcontent-%COMP%]{font-size:.72rem;color:#4b5563;line-height:1.45}.cart-footer__open-cart-link[_ngcontent-%COMP%]{color:#10b981;cursor:pointer;text-decoration:underline;font-size:.72rem;font-weight:500;margin-left:2px}.cart-footer__open-cart-link[_ngcontent-%COMP%]:hover{color:#059669}.cart-footer__checkout-btn[_ngcontent-%COMP%]{width:100%;padding:14px;background:#10b981;color:#fff;border:none;border-radius:10px;font-weight:600;font-size:1rem;cursor:pointer;transition:background .2s;margin-top:4px;letter-spacing:.01em}.cart-footer__checkout-btn[_ngcontent-%COMP%]:hover{background:#059669}.cart-footer__checkout-btn[_ngcontent-%COMP%]:disabled{opacity:.7;cursor:not-allowed}.cart-footer__error[_ngcontent-%COMP%]{font-size:.85rem;color:#ef4444;text-align:center;padding:4px 0}.cart-footer__clear-btn[_ngcontent-%COMP%]{width:100%;padding:8px;background:none;border:none;color:var(--p-text-color-secondary, #6b7280);cursor:pointer;font-size:.85rem;transition:color .2s}.cart-footer__clear-btn[_ngcontent-%COMP%]:hover{color:var(--p-text-color, #1f2937)}.cart-footer__bottom-links[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:4px}.cart-footer__orders-link[_ngcontent-%COMP%]{font-size:.8rem;color:var(--p-primary-color, #10b981);text-decoration:none;cursor:pointer;transition:color .2s;display:flex;align-items:center}.cart-footer__orders-link[_ngcontent-%COMP%]:hover{color:var(--p-primary-700, #059669);text-decoration:underline}.cart-footer__learn-more[_ngcontent-%COMP%]{color:var(--p-primary-color, #10b981);cursor:pointer;text-decoration:underline;font-size:.75rem}.cart-footer__learn-more[_ngcontent-%COMP%]:hover{color:var(--p-primary-700, #059669)}.merge-dialog-content[_ngcontent-%COMP%]{text-align:center;padding-top:12px}.merge-dialog-hero[_ngcontent-%COMP%]{margin-bottom:16px}.merge-dialog-hero[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:2.5rem;color:#10b981}.merge-dialog-intro[_ngcontent-%COMP%]{font-size:.95rem;color:var(--p-text-color, #1f2937);line-height:1.5;margin-bottom:20px}.merge-dialog-seller-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;background:#f0fdf4;border:1px solid #86efac;border-radius:8px;padding:8px 14px;font-size:.85rem;font-weight:600;color:#15803d;margin-bottom:16px}.merge-dialog-seller-badge[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#10b981}.merge-dialog-features[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;text-align:left}.merge-dialog-feature[_ngcontent-%COMP%]{display:flex;gap:12px;align-items:flex-start}.merge-dialog-feature[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{font-size:1.2rem;color:#10b981;margin-top:2px;flex-shrink:0}.merge-dialog-feature[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:.9rem;display:block;margin-bottom:2px}.merge-dialog-feature[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.82rem;color:var(--p-text-color-secondary, #6b7280);margin:0;line-height:1.4}.sendcloud-section__postal-input[_ngcontent-%COMP%]{flex:1;font-size:.85rem;padding:6px 10px}.sendcloud-section__fetch-btn[_ngcontent-%COMP%]{padding:6px 12px;background:#10b981;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.85rem;transition:background .2s}.sendcloud-section__fetch-btn[_ngcontent-%COMP%]:hover:not(:disabled){background:#059669}.sendcloud-section__fetch-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}.sendcloud-section__rates[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}.sendcloud-section__rate[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border:1px solid var(--p-surface-border, #e5e7eb);border-radius:6px;background:var(--p-surface-ground, #fff);cursor:pointer;text-align:left;transition:border-color .2s,background .2s}.sendcloud-section__rate[_ngcontent-%COMP%]:hover{border-color:#10b981}.sendcloud-section__rate--selected[_ngcontent-%COMP%]{border-color:#10b981;background:#f0fdf4}.sendcloud-section__rate-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1px}.sendcloud-section__rate-info[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:.82rem}.sendcloud-section__rate-service[_ngcontent-%COMP%]{font-size:.75rem;color:var(--p-text-color-secondary, #6b7280)}.sendcloud-section__rate-days[_ngcontent-%COMP%]{font-size:.7rem;color:var(--p-text-color-secondary, #6b7280)}.sendcloud-section__rate-price[_ngcontent-%COMP%]{font-weight:600;font-size:.85rem;white-space:nowrap}.sendcloud-section__no-rates[_ngcontent-%COMP%]{font-size:.8rem;color:var(--p-text-color-secondary, #6b7280);text-align:center;padding:8px 0}.sendcloud-section__sp-btn[_ngcontent-%COMP%]{width:100%;padding:8px 10px;border:1px dashed #10b981;border-radius:6px;background:#f0fdf4;color:#15803d;font-size:.82rem;font-weight:500;cursor:pointer;transition:background .2s}.sendcloud-section__sp-btn[_ngcontent-%COMP%]:hover:not(:disabled){background:#dcfce7}.sendcloud-section__sp-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}.sendcloud-section__sp-selected[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:.78rem;background:#f0fdf4;border:1px solid #86efac;border-radius:6px;padding:6px 10px;color:#15803d}.sendcloud-section__sp-selected[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{flex-shrink:0}.sendcloud-section__sp-selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{flex:1}.sendcloud-section__sp-change[_ngcontent-%COMP%]{background:none;border:none;color:#10b981;cursor:pointer;font-size:.75rem;text-decoration:underline;padding:0}.sendcloud-section__sp-change[_ngcontent-%COMP%]:hover{color:#059669}.sp-dialog-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;max-height:400px;overflow-y:auto}.sp-dialog-item[_ngcontent-%COMP%]{display:block;width:100%;text-align:left;padding:10px 12px;border:1px solid var(--p-surface-border, #e5e7eb);border-radius:6px;background:var(--p-surface-ground, #fff);cursor:pointer;transition:border-color .2s,background .2s}.sp-dialog-item[_ngcontent-%COMP%]:hover{border-color:#10b981}.sp-dialog-item--selected[_ngcontent-%COMP%]{border-color:#10b981;background:#f0fdf4}.sp-dialog-item__name[_ngcontent-%COMP%]{font-weight:600;font-size:.85rem;margin-bottom:2px}.sp-dialog-item__address[_ngcontent-%COMP%]{font-size:.78rem;color:var(--p-text-color-secondary, #6b7280)}.sp-dialog-item__distance[_ngcontent-%COMP%]{font-size:.72rem;color:#10b981;margin-top:2px}"]})};var Bo=()=>({width:"520px",maxHeight:"90vh"}),Wo=()=>({"600px":"95vw"}),zo=i=>({processingDays:i}),Fo=(i,t)=>t.index,Uo=(i,t)=>t.name;function Ho(i,t){if(i&1&&(a(0,"div",28),m(1,"img",32),l()),i&2){let e=t.$implicit,n=t.$index,o=c(3);r(),x("src",e,z)("alt",o.product.title)("loading",n<=1?"eager":"lazy")}}function No(i,t){if(i&1&&(a(0,"span",29),d(1),l()),i&2){let e=c(3);r(),u("-",e.discountPercent,"%")}}function Go(i,t){i&1&&(a(0,"span",30),d(1),p(2,"translate"),l()),i&2&&(r(),v(_(2,1,"PROFILE_PAGE.SHOP.OUT_OF_STOCK")))}function $o(i,t){if(i&1){let e=y();a(0,"button",34),b("click",function(){let o=f(e).$index,s=c(4);return h(s.selectImage(o))}),m(1,"img",35),l()}if(i&2){let e=t.$implicit,n=t.$index,o=c(4);V("product-gallery__thumb--active",n===o.selectedImageIndex),r(),x("src",e,z)("alt",o.product.title+" "+(n+1))}}function qo(i,t){if(i&1&&(a(0,"div",31),k(1,$o,2,4,"button",33,ye),l()),i&2){let e=c(3);r(),I(e.allImages)}}function jo(i,t){if(i&1){let e=y();a(0,"div",26),b("touchstart",function(o){f(e);let s=c(2);return h(s.onTouchStart(o))})("touchmove",function(o){f(e);let s=c(2);return h(s.onTouchMove(o))})("touchend",function(){f(e);let o=c(2);return h(o.onTouchEnd())}),a(1,"div",27),b("transitionend",function(){f(e);let o=c(2);return h(o.onTrackTransitionEnd())}),k(2,Ho,2,3,"div",28,_t),l(),C(4,No,2,1,"span",29)(5,Go,3,3,"span",30)(6,qo,3,0,"div",31),l()}if(i&2){let e=c(2);r(),dt("transform",e.trackTransform),V("product-gallery__track--animated",e.slideAnimated),r(),I(e.trackImages),r(2),g(e.discountPercent!==null?4:-1),r(),g(e.isOutOfStock?5:-1),r(),g(e.allImages.length>1?6:-1)}}function Yo(i,t){i&1&&(a(0,"div",6),m(1,"i",36),l())}function Qo(i,t){if(i&1&&m(0,"img",37),i&2){let e=c(3);x("src",e.shopAvatarUrl,z)("alt",e.shopName)}}function Zo(i,t){if(i&1&&(a(0,"span",38),d(1),l()),i&2){let e=c(3);r(),v(e.shopName.charAt(0))}}function Ko(i,t){if(i&1&&m(0,"i",44),i&2){let e=t.$implicit;x("ngClass",e.full?"pi-star-fill":e.half?"pi-star-half-fill":"pi-star")}}function Jo(i,t){if(i&1&&(a(0,"span",41)(1,"span",43),k(2,Ko,1,1,"i",44,Fo),l(),a(4,"span",45),d(5),p(6,"number"),l(),a(7,"span",46),d(8),l()()),i&2){let e=c(3);r(2),I(e.starsArray),r(3),v(L(6,2,e.displayRating,"1.1-1")),r(3),u("(",e.displayReviewCount,")")}}function Xo(i,t){i&1&&(a(0,"span",42),d(1),p(2,"translate"),l()),i&2&&(r(),v(_(2,1,"PROFILE_PAGE.SHOP.NEW_BADGE")))}function er(i,t){if(i&1&&(a(0,"div",8),C(1,Qo,1,2,"img",37)(2,Zo,2,1,"span",38),a(3,"span",39),d(4),l(),a(5,"span",40),d(6,"\xB7"),l(),C(7,Jo,9,5,"span",41)(8,Xo,3,3,"span",42),l()),i&2){let e=c(2);r(),g(e.shopAvatarUrl?1:2),r(3),v(e.shopName),r(3),g(e.displayReviewCount>0&&e.displayRating?7:8)}}function tr(i,t){if(i&1&&(a(0,"span",11),d(1),l()),i&2){let e=c(2);r(),H(" ",e.formatPrice(e.currentPriceCents)," \u2013 ",e.formatPrice(e.maxPriceCents)," ")}}function ir(i,t){i&1&&(a(0,"span",47),d(1),p(2,"translate"),l()),i&2&&(r(),v(_(2,1,"PROFILE_PAGE.SHOP.PRICE_FROM")))}function nr(i,t){if(i&1&&(a(0,"span",48),d(1),l()),i&2){let e=c(3);r(),v(e.formatPrice(e.currentCompareAtPriceCents))}}function or(i,t){if(i&1&&(C(0,ir,3,3,"span",47),a(1,"span",11),d(2),l(),C(3,nr,2,1,"span",48)),i&2){let e=c(2);g(e.hasVariants&&!e.selectedVariant?0:-1),r(2),v(e.formatPrice(e.currentPriceCents)),r(),g(e.currentCompareAtPriceCents?3:-1)}}function rr(i,t){if(i&1&&(m(0,"div",12),p(1,"sanitizeHtml")),i&2){let e=c(2);x("innerHTML",_(1,1,e.product.description),Te)}}function ar(i,t){if(i&1&&(a(0,"p",13),d(1),l()),i&2){let e=c(2);
3r(),u(" ",e.product.shortDescription," ")}}function lr(i,t){i&1&&(a(0,"p",14),m(1,"i",49),d(2),p(3,"translate"),l()),i&2&&(r(2),u(" ",_(3,1,"PROFILE_PAGE.SHOP.LOW_STOCK")," "))}function cr(i,t){if(i&1&&(a(0,"p",15),m(1,"i",50),d(2),p(3,"translate"),l()),i&2){let e=c(2);r(2),u(" ",L(3,1,"PROFILE_PAGE.SHOP.DELIVERY_ESTIMATE_IN_CART",de(4,zo,e.processingDays))," ")}}function sr(i,t){if(i&1){let e=y();a(0,"button",55),b("click",function(){let o=f(e).$implicit,s=c().$implicit,P=c(3);return h(P.selectOption(s.name,o))}),d(1),l()}if(i&2){let e=t.$implicit,n=c().$implicit,o=c(3);V("product-variant-btn--active",o.selectedOptions[n.name]===e)("product-variant-btn--oos",o.isOptionValueOutOfStock(n.name,e)),r(),u(" ",e," ")}}function dr(i,t){if(i&1&&(a(0,"div",51)(1,"label",52),d(2),l(),a(3,"div",53),k(4,sr,2,5,"button",54,ye),l()()),i&2){let e=t.$implicit;r(2),v(e.name),r(2),I(e.values)}}function pr(i,t){if(i&1&&(a(0,"div",17),k(1,dr,6,1,"div",51,Uo),l()),i&2){let e=c(2);r(),I(e.product.options)}}function _r(i,t){i&1&&(m(0,"i",56),d(1),p(2,"translate")),i&2&&(r(),u(" ",_(2,1,"PROFILE_PAGE.SHOP.OUT_OF_STOCK")," "))}function mr(i,t){i&1&&(m(0,"i",57),d(1),p(2,"translate")),i&2&&(r(),u(" ",_(2,1,"PROFILE_PAGE.ADD_TO_CART")," "))}function gr(i,t){if(i&1){let e=y();a(0,"div",1)(1,"div",2)(2,"button",3),b("click",function(){f(e);let o=c();return h(o.onHide())}),m(3,"i",4),l(),C(4,jo,7,7,"div",5)(5,Yo,2,0,"div",6),l(),a(6,"div",7),C(7,er,9,3,"div",8),a(8,"h2",9),d(9),l(),a(10,"div",10),C(11,tr,2,2,"span",11)(12,or,4,3),l(),C(13,rr,2,3,"div",12)(14,ar,2,1,"p",13)(15,lr,4,3,"p",14)(16,cr,4,6,"p",15),l(),a(17,"div",16),C(18,pr,3,0,"div",17),a(19,"div",18)(20,"div",19)(21,"button",20),b("click",function(){f(e);let o=c();return h(o.decrementQuantity())}),m(22,"i",21),l(),a(23,"span",22),d(24),l(),a(25,"button",23),b("click",function(){f(e);let o=c();return h(o.incrementQuantity())}),m(26,"i",24),l()(),a(27,"button",25),b("click",function(){f(e);let o=c();return h(o.onAddToCart())}),C(28,_r,3,3)(29,mr,3,3),l()()()()}if(i&2){let e=c();r(4),g(e.allImages.length>0?4:5),r(3),g(e.shopName?7:-1),r(2),v(e.product.title),r(2),g(e.hasPriceRange?11:12),r(2),g(e.product.description?13:e.product.shortDescription?14:-1),r(2),g(e.product.trackStock&&e.currentStock!==null&&e.currentStock>0&&e.currentStock<=5?15:-1),r(),g(e.processingDays?16:-1),r(2),g(e.hasVariants&&e.product.options?18:-1),r(3),x("disabled",e.quantity<=1),r(3),v(e.quantity),r(3),V("product-add-to-cart--oos",e.isOutOfStock),x("disabled",!e.canAddToCart),r(),g(e.isOutOfStock?28:29)}}var tt=class i{platformId=S(q);toastService=S(Mt);translateService=S(ze);product=null;visible=!1;processingDays=null;shopName=null;shopAvatarUrl=null;sellerAverageRating=0;sellerReviewCount=0;visibleChange=new W;addToCart=new W;selectedImageIndex=0;slideAnimated=!1;trackOffsetPx=0;galleryWidth=0;_trackIndex=1;touchStartX=0;isSwiping=!1;SWIPE_THRESHOLD=30;get trackImages(){let t=this.allImages;return t.length<=1?t:[t[t.length-1],...t,t[0]]}get trackTransform(){let t=this._trackIndex*100;return this.trackOffsetPx!==0&&this.galleryWidth>0?`translateX(calc(-${t}% + ${this.trackOffsetPx}px))`:`translateX(-${t}%)`}selectedOptions={};quantity=1;get starsArray(){let t=this.displayRating;return[0,1,2,3,4].map(e=>({index:e,full:t>=e+.75,half:t>=e+.25&&t<e+.75}))}get displayRating(){return this.product?.averageRating&&this.product.reviewCount>0?this.product.averageRating:this.sellerAverageRating}get displayReviewCount(){return this.product?.reviewCount&&this.product.reviewCount>0?this.product.reviewCount:this.sellerReviewCount}get allImages(){if(!this.product)return[];let t=[];if(this.product.imageUrl&&t.push(this.product.imageUrl),this.product.galleryUrls)for(let e of this.product.galleryUrls)t.includes(e)||t.push(e);if(this.product.variants)for(let e of this.product.variants)e.imageUrl&&!t.includes(e.imageUrl)&&t.push(e.imageUrl);return t}get hasVariants(){return!!(this.product?.options&&this.product.options.length>0&&this.product.variants&&this.product.variants.length>0)}get selectedVariant(){return!this.hasVariants||!this.product?.variants?null:this.product.variants.find(t=>t.isActive&&Object.entries(this.selectedOptions).every(([e,n])=>t.options[e]===n))||null}get currentPriceCents(){if(!this.product)return 0;let t=this.selectedVariant;if(t)return t.salePriceCents??t.priceCents;if(this.hasVariants&&this.product.variants){let e=this.product.variants.filter(n=>n.isActive);if(e.length>0)return Math.min(...e.map(n=>n.salePriceCents??n.priceCents))}return this.product.salePriceCents??this.product.priceCents}get maxPriceCents(){if(!this.product?.variants)return this.currentPriceCents;let t=this.product.variants.filter(e=>e.isActive);return t.length===0?this.currentPriceCents:Math.max(...t.map(e=>e.salePriceCents??e.priceCents))}get hasPriceRange(){if(this.selectedVariant||!this.product?.variants?.length)return!1;let t=this.product.variants.filter(n=>n.isActive);return t.length<=1?!1:new Set(t.map(n=>n.salePriceCents??n.priceCents)).size>1}get currentCompareAtPriceCents(){if(!this.product)return null;let t=this.selectedVariant,e=t?.salePriceCents??this.product.salePriceCents;if(!e)return null;let n=t?t.priceCents:this.product.priceCents;return n>e?n:null}get discountPercent(){let t=this.currentCompareAtPriceCents;return t?Math.round((1-this.currentPriceCents/t)*100):null}get isOutOfStock(){if(!this.product?.trackStock)return!1;if(this.hasVariants){let t=this.selectedVariant;return t?(t.stockQuantity??0)<=0:!1}return(this.product.stockQuantity??0)<=0}get currentStock(){return this.product?.trackStock?this.hasVariants?this.selectedVariant?.stockQuantity??null:this.product.stockQuantity??null:null}get canAddToCart(){return!(!this.product||this.isOutOfStock)}get needsVariantSelection(){return this.hasVariants&&!this.selectedVariant}isOptionValueOutOfStock(t,e){if(!this.product?.trackStock||!this.product.variants)return!1;let n=this.product.variants.filter(o=>o.isActive&&o.options[t]===e);return n.length===0?!1:n.every(o=>(o.stockQuantity??0)<=0)}onShow(){this.selectedImageIndex=0,this._trackIndex=this.allImages.length>1?1:0,this.slideAnimated=!1,this.trackOffsetPx=0,this.quantity=1,this.selectedOptions={}}onHide(){this.visible=!1,this.visibleChange.emit(!1)}selectOption(t,e){this.selectedOptions[t]=e;let n=this.selectedVariant;if(n?.imageUrl){let o=this.allImages.indexOf(n.imageUrl);o>=0&&this.selectImage(o)}}selectImage(t){this.slideAnimated=!0,this.trackOffsetPx=0,this.selectedImageIndex=t,this._trackIndex=this.allImages.length>1?t+1:t}onTouchStart(t){this.touchStartX=t.touches[0].clientX,this.trackOffsetPx=0,this.isSwiping=!1,this.slideAnimated=!1;let e=t.currentTarget;this.galleryWidth=e.offsetWidth||1}onTouchMove(t){let e=t.touches[0].clientX-this.touchStartX;Math.abs(e)>5&&(this.isSwiping=!0),this.isSwiping&&(this.trackOffsetPx=e*.7)}onTouchEnd(){let t=this.trackOffsetPx;
3if(this.trackOffsetPx=0,this.slideAnimated=!0,Math.abs(t)>this.SWIPE_THRESHOLD){let e=this.allImages.length;if(e<=1){this.isSwiping=!1;return}t<0?this.selectedImageIndex===e-1?(this._trackIndex=e+1,this.selectedImageIndex=0):(this.selectedImageIndex++,this._trackIndex=this.selectedImageIndex+1):this.selectedImageIndex===0?(this._trackIndex=0,this.selectedImageIndex=e-1):(this.selectedImageIndex--,this._trackIndex=this.selectedImageIndex+1)}this.isSwiping=!1}onTrackTransitionEnd(){let t=this.allImages.length;t<=1||(this._trackIndex===0?(this.slideAnimated=!1,this._trackIndex=t):this._trackIndex===t+1&&(this.slideAnimated=!1,this._trackIndex=1))}incrementQuantity(){let t=this.product?.maxPerOrder||99;this.quantity<t&&this.quantity++}decrementQuantity(){this.quantity>1&&this.quantity--}onAddToCart(){if(!(!this.product||!this.canAddToCart)){if(this.needsVariantSelection){this.toastService.info(this.translateService.instant("PROFILE_PAGE.SHOP.SELECT_VARIANT_FIRST"));return}this.addToCart.emit({product:this.product,variant:this.selectedVariant??void 0,quantity:this.quantity,options:this.hasVariants?B({},this.selectedOptions):void 0}),this.onHide()}}formatPrice(t,e){let n=t/100,o=e||this.product?.currency||"EUR";try{return new Intl.NumberFormat("fr-FR",{style:"currency",currency:o,minimumFractionDigits:n%1===0?0:2,maximumFractionDigits:2}).format(n)}catch{return`${n.toFixed(2)} \u20AC`}}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=j({type:i,selectors:[["app-widget-product-detail-modal"]],inputs:{product:"product",visible:"visible",processingDays:"processingDays",shopName:"shopName",shopAvatarUrl:"shopAvatarUrl",sellerAverageRating:"sellerAverageRating",sellerReviewCount:"sellerReviewCount"},outputs:{visibleChange:"visibleChange",addToCart:"addToCart"},decls:2,vars:14,consts:[["styleClass","product-detail-dialog",3,"visibleChange","onShow","onHide","visible","modal","dismissableMask","closable","draggable","resizable","showHeader","baseZIndex","breakpoints"],[1,"product-detail"],[1,"product-gallery"],[1,"product-gallery__close",3,"click"],[1,"pi","pi-times"],[1,"product-gallery__main"],[1,"product-gallery__placeholder"],[1,"product-body"],[1,"product-shop-info"],[1,"product-info__title"],[1,"product-info__price"],[1,"product-price-current"],[1,"product-info__description",3,"innerHTML"],[1,"product-info__description"],[1,"product-info__stock-low"],[1,"product-info__delivery"],[1,"product-footer"],[1,"product-variants"],[1,"product-actions"],[1,"product-quantity"],[1,"product-qty-btn",3,"click","disabled"],[1,"pi","pi-minus"],[1,"product-qty-value"],[1,"product-qty-btn",3,"click"],[1,"pi","pi-plus"],[1,"product-add-to-cart",3,"click","disabled"],[1,"product-gallery__main",3,"touchstart","touchmove","touchend"],[1,"product-gallery__track",3,"transitionend"],[1,"product-gallery__slide"],[1,"product-badge","product-badge--sale"],[1,"product-badge","product-badge--sold-out"],[1,"product-gallery__thumbs"],[1,"product-gallery__image",3,"src","alt","loading"],[1,"product-gallery__thumb",3,"product-gallery__thumb--active"],[1,"product-gallery__thumb",3,"click"],["loading","lazy",3,"src","alt"],[1,"pi","pi-box"],[1,"product-shop-info__avatar",3,"src","alt"],[1,"product-shop-info__initials"],[1,"product-shop-info__name"],[1,"product-shop-info__separator"],[1,"product-shop-info__rating"],[1,"product-shop-info__new"],[1,"product-shop-info__stars"],[1,"pi",3,"ngClass"],[1,"product-shop-info__score"],[1,"product-shop-info__count"],[1,"product-price-from"],[1,"product-price-compare"],[1,"pi","pi-exclamation-triangle","me-1"],[1,"pi","pi-truck","me-1"],[1,"product-variant-group"],[1,"product-variant-label"],[1,"product-variant-options"],[1,"product-variant-btn",3,"product-variant-btn--active","product-variant-btn--oos"],[1,"product-variant-btn",3,"click"],[1,"pi","pi-ban","me-2"],[1,"pi","pi-shopping-cart","me-2"]],template:function(e,n){e&1&&(a(0,"p-dialog",0),R("visibleChange",function(s){return T(n.visible,s)||(n.visible=s),s}),b("onShow",function(){return n.onShow()})("onHide",function(){return n.onHide()}),C(1,gr,30,14,"div",1),l()),e&2&&(F(D(12,Bo)),E("visible",n.visible),x("modal",!0)("dismissableMask",!0)("closable",!1)("draggable",!1)("resizable",!1)("showHeader",!1)("baseZIndex",10001)("breakpoints",D(13,Wo)),r(),g(n.product?1:-1))},dependencies:[Y,J,he,be,Q,N,te,K,ee,je,oi],styles:["[_nghost-%COMP%] .product-detail-dialog .p-dialog-content{padding:0!important;overflow:hidden;border-radius:12px}[_nghost-%COMP%] .product-detail-dialog .p-dialog-header{display:none!important}.product-detail[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:90vh}.product-gallery[_ngcontent-%COMP%]{position:relative;flex-shrink:0}.product-gallery__close[_ngcontent-%COMP%]{position:absolute;top:10px;right:10px;z-index:10;width:32px;height:32px;border-radius:50%;border:none;background:#00000073;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.85rem;transition:background .2s;backdrop-filter:blur(4px)}.product-gallery__close[_ngcontent-%COMP%]:hover{background:#000000b3}.product-gallery__main[_ngcontent-%COMP%]{position:relative;width:100%;aspect-ratio:1/1;background:var(--p-surface-100, var(--surface-100, #f3f4f6));overflow:hidden;touch-action:pan-y pinch-zoom}.product-gallery__track[_ngcontent-%COMP%]{display:flex;width:100%;height:100%;will-change:transform}.product-gallery__track--animated[_ngcontent-%COMP%]{transition:transform .3s ease}.product-gallery__slide[_ngcontent-%COMP%]{flex:0 0 100%;width:100%;height:100%}.product-gallery__image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;display:block;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.product-gallery__placeholder[_ngcontent-%COMP%]{width:100%;aspect-ratio:1/1;background:var(--p-surface-100, var(--surface-100, #f3f4f6));display:flex;align-items:center;justify-content:center;color:var(--p-surface-400, var(--surface-400, #9ca3af));font-size:3rem}.product-gallery__thumbs[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:6px;padding:12px 10px 10px;overflow-x:auto;-webkit-overflow-scrolling:touch;background:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.15) 30%,rgba(0,0,0,.5) 100%);z-index:5}.product-gallery__thumbs[_ngcontent-%COMP%]::-webkit-scrollbar{height:0}.product-gallery__thumb[_ngcontent-%COMP%]{width:44px;height:44px;border-radius:6px;overflow:hidden;border:2px solid rgba(255,255,255,.5);cursor:pointer;flex-shrink:0;padding:0;background:#0003;transition:border-color .2s}.product-gallery__thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.product-gallery__thumb--active[_ngcontent-%COMP%]{border-color:#fff;box-shadow:0 0 0 1px #0000004d}.product-gallery__thumb[_ngcontent-%COMP%]:hover:not(.product-gallery__thumb--active){border-color:#fffc}.product-badge[_ngcontent-%COMP%]{position:absolute;top:12px;font-size:.75rem;font-weight:600;padding:3px 10px;border-radius:4px;text-transform:uppercase;z-index:4}.product-badge--sale[_ngcontent-%COMP%]{left:12px;background:#ef4444;color:#fff}.product-badge--sold-out[_ngcontent-%COMP%]{right:52px;background:#000000b3;color:#fff}
3.product-shop-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding-bottom:8px;border-bottom:1px solid var(--p-surface-border, var(--surface-border, #e5e7eb))}.product-shop-info__avatar[_ngcontent-%COMP%]{width:28px;height:28px;border-radius:50%;object-fit:cover;flex-shrink:0}.product-shop-info__initials[_ngcontent-%COMP%]{width:28px;height:28px;border-radius:50%;background:#10b981;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.8rem;flex-shrink:0;text-transform:uppercase}.product-shop-info__name[_ngcontent-%COMP%]{font-size:.8rem;font-weight:600;color:var(--p-text-color-secondary, var(--text-color-secondary, #6b7280));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-shop-info__separator[_ngcontent-%COMP%]{color:var(--p-surface-400, var(--surface-400, #9ca3af));font-size:.75rem;flex-shrink:0;margin:0 -2px}.product-shop-info__rating[_ngcontent-%COMP%]{display:flex;align-items:center;gap:3px;flex-shrink:0}.product-shop-info__stars[_ngcontent-%COMP%]{display:flex;gap:1px}.product-shop-info__stars[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:.6rem;color:#f59e0b}.product-shop-info__score[_ngcontent-%COMP%]{font-size:.72rem;font-weight:700;color:var(--p-text-color, var(--text-color, #1f2937))}.product-shop-info__count[_ngcontent-%COMP%]{font-size:.68rem;color:var(--p-text-color-secondary, var(--text-color-secondary, #6b7280))}.product-shop-info__new[_ngcontent-%COMP%]{font-size:.68rem;font-weight:600;color:#10b981;background:#10b9811a;padding:1px 6px;border-radius:4px}.product-body[_ngcontent-%COMP%]{padding:16px 20px 12px;overflow-y:auto;flex:1;min-height:0;display:flex;flex-direction:column;gap:8px}.product-info__title[_ngcontent-%COMP%]{font-size:1.15rem;font-weight:700;margin:0;line-height:1.3;color:var(--p-text-color, var(--text-color, #1f2937))}.product-info__price[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:8px}.product-info__description[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-color-secondary, var(--text-color-secondary, #6b7280));line-height:1.5;margin:0;position:relative}.product-info__description[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 6px}.product-info__description[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .product-info__description[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:0 0 6px;padding-left:20px}.product-info__stock-low[_ngcontent-%COMP%]{font-size:.78rem;color:#f59e0b;margin:0;font-weight:500}.product-info__delivery[_ngcontent-%COMP%]{font-size:.78rem;color:#22c55e;margin:0;font-weight:500}.product-price-current[_ngcontent-%COMP%]{font-size:1.3rem;font-weight:700;color:#10b981}.product-price-from[_ngcontent-%COMP%]{font-size:.85rem;font-weight:500;color:var(--p-text-color-secondary, var(--text-color-secondary, #6b7280));margin-right:4px}.product-price-compare[_ngcontent-%COMP%]{font-size:.9rem;color:var(--p-text-color-secondary, var(--text-color-secondary, #6b7280));text-decoration:line-through}.product-footer[_ngcontent-%COMP%]{flex-shrink:0;padding:12px 20px 16px;border-top:1px solid var(--p-surface-border, var(--surface-border, #e5e7eb));background:var(--p-surface-0, var(--surface-0, #fff));display:flex;flex-direction:column;gap:10px}.product-variants[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.product-variant-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.product-variant-label[_ngcontent-%COMP%]{font-size:.8rem;font-weight:600;color:var(--p-text-color, var(--text-color, #1f2937))}.product-variant-options[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:5px}.product-variant-btn[_ngcontent-%COMP%]{padding:5px 12px;border:1px solid var(--p-surface-border, var(--surface-border, #e5e7eb));border-radius:6px;background:var(--p-surface-ground, var(--surface-ground, #fff));color:var(--p-text-color, var(--text-color, #1f2937));font-size:.8rem;cursor:pointer;transition:border-color .2s,background .2s}.product-variant-btn[_ngcontent-%COMP%]:hover{border-color:#10b981}.product-variant-btn--active[_ngcontent-%COMP%]{border-color:#10b981;background:#10b981;color:#fff;font-weight:600}.product-variant-btn--oos[_ngcontent-%COMP%]{opacity:.45;text-decoration:line-through;cursor:not-allowed;position:relative}.product-variant-btn--oos[_ngcontent-%COMP%]:hover{border-color:var(--p-surface-border, var(--surface-border, #e5e7eb))}.product-variant-btn--oos.product-variant-btn--active[_ngcontent-%COMP%]{background:#9ca3af;border-color:#9ca3af}.product-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.product-quantity[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;border:1px solid var(--p-surface-border, var(--surface-border, #e5e7eb));border-radius:8px;padding:3px}.product-qty-btn[_ngcontent-%COMP%]{width:30px;height:30px;border:none;border-radius:6px;background:var(--p-surface-100, var(--surface-100, #f3f4f6));color:var(--p-text-color, var(--text-color, #1f2937));cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.7rem;transition:background .2s}.product-qty-btn[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--p-surface-200, var(--surface-200, #e5e7eb))}.product-qty-btn[_ngcontent-%COMP%]:disabled{opacity:.4;cursor:default}.product-qty-value[_ngcontent-%COMP%]{font-weight:600;min-width:20px;text-align:center;font-size:.9rem}.product-add-to-cart[_ngcontent-%COMP%]{flex:1;padding:10px 16px;background:#10b981;color:#fff;border:none;border-radius:8px;font-weight:600;font-size:.95rem;cursor:pointer;transition:background .2s;display:flex;align-items:center;justify-content:center}.product-add-to-cart[_ngcontent-%COMP%]:hover:not(:disabled){background:#059669}.product-add-to-cart[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}.product-add-to-cart--oos[_ngcontent-%COMP%]{background:#9ca3af}.product-add-to-cart--oos[_ngcontent-%COMP%]:disabled{opacity:.7}"]})};var ur=()=>({width:"500px",maxWidth:"95vw"}),fr=(i,t)=>t.id,_i=(i,t)=>t.index;function hr(i,t){if(i&1&&m(0,"i",10),i&2){let e=t.$implicit;x("ngClass",e.full?"pi-star-fill":e.half?"pi-star-half-fill":"pi-star")}}function Cr(i,t){if(i&1&&(a(0,"div",1)(1,"div",7)(2,"span",8),d(3),p(4,"number"),l(),a(5,"span",9),k(6,hr,1,1,"i",10,_i),l()(),a(8,"span",11),d(9),p(10,"translate"),l()()),i&2){let e=c();r(3),v(L(4,3,e.averageRating,"1.1-1")),r(3),I(e.getStarsArray(e.averageRating)),r(3),H("",e.total," ",_(10,6,"PROFILE_PAGE.SHOP.REVIEWS_LABEL"),"")}}function xr(i,t){i&1&&(m(0,"i",15),p(1,"translate")),i&2&&x("pTooltip",_(1,1,"PROFILE_PAGE.SHOP.VERIFIED_PURCHASE"))}function br(i,t){if(i&1&&m(0,"i",10),i&2){let e=t.$implicit;x("ngClass",e.full?"pi-star-fill":e.half?"pi-star-half-fill":"pi-star")}}function vr(i,t){if(i&1&&(a(0,"p",18),d(1),l()),i&2){let e=c().$implicit;r(),v(e.comment)}}function Pr(i,t){if(i&1&&m(0,"img",24),i&2){let e=t.$implicit;x("src",e,z)}}function yr(i,t){if(i&1&&(a(0,"div",19),k(1,Pr,1,1,"img",24,ye),l()),i&2){let e=c().$implicit;r(),I(e.photoUrls)}}function wr(i,t){if(i&1&&(a(0,"div",20)(1,"span",25),d(2),p(3,"translate"),l(),a(4,"p",26),d(5),l()()),i&2){let e=c().$implicit;r(2),v(_(3,2,"PROFILE_PAGE.SHOP.SELLER_REPLY")),r(3),v(e.sellerReply)}}function Sr(i,t){if(i&1&&d(0),i&2){let e=c().$implicit;u(" (",e.helpfulCount,") ")}}function Or(i,t){if(i&1){let e=y();a(0,"div",3)(1,"div",12)(2,"div",13)(3,"span",14),d(4),l(),C(5,xr,2,3,"i",15),l(),a(6,"span",16),d(7),p(8,"date"),l()(),a(9,"div",17),k(10,br,1,1,"i",10,_i),l(),C(12,vr,2,1,"p",18)(13,yr,3,0,"div",19)(14,wr,6,4,"div",20),a(15,"div",21)(16,"button",22),b("click",function(){let o=f(e).$implicit,s=c();return h(s.onMarkHelpful(o))}),m(17,"i",23),d(18),p(19,"translate"),C(20,Sr,1,1),l()()()}if(i&2){let e=t.$implicit,n=c();r(4),v(e.authorName),r(),g(e.isVerified?5:-1),r(2),v(L(8,8,e.createdAt,"mediumDate")),r(3),I(n.getStarsArray(e.rating)),r(2),g(e.comment?12:-1),r(),g(e.photoUrls!=null&&e.photoUrls.length?13:-1),r(),g(e.sellerReply?14:-1),r(4),u(" ",_(19,11,"PROFILE_PAGE.SHOP.HELPFUL")," "),r(2),g(e.helpfulCount>0?20:-1)}}function Mr(i,t){i&1&&(a(0,"div",4),m(1,"i",27),l())}function kr(i,t){i&1&&(a(0,"div",5),m(1,"i",28),a(2,"p"),d(3),p(4,"translate"),l()()),i&2&&(r(3),v(_(4,1,"PROFILE_PAGE.SHOP.NO_REVIEWS")))}function Ir(i,t){if(i&1){let e=y();a(0,"div",6)(1,"p-button",29),p(2,"translate"),b("onClick",function(){f(e);let o=c();return h(o.loadMore())}),l()()}i&2&&(r(),x("label",_(2,2,"PROFILE_PAGE.SHOP.LOAD_MORE_REVIEWS"))("outlined",!0))}var it=class i{reviewService=S(ai);product=null;visible=!1;visibleChange=new W;reviews=[];total=0;averageRating=0;loading=!1;page=1;limit=10;ngOnChanges(t){t.visible&&this.visible&&this.product&&(this.page=1,this.reviews=[],this.loadReviews())}onHide(){this.visibleChange.emit(!1)}loadReviews(){!this.product||this.loading||(this.loading=!0,this.reviewService.getProductReviews(this.product.id,this.page,this.limit,"re
3cent").subscribe({next:t=>{this.reviews=this.page===1?t.reviews:[...this.reviews,...t.reviews],this.total=t.total,this.averageRating=t.averageRating,this.loading=!1},error:()=>{this.loading=!1}}))}loadMore(){this.page++,this.loadReviews()}get hasMore(){return this.reviews.length<this.total}getStarsArray(t){return[0,1,2,3,4].map(e=>({index:e,full:t>=e+.75,half:t>=e+.25&&t<e+.75}))}onMarkHelpful(t){this.reviewService.markHelpful(t.id).subscribe({next:()=>{t.helpfulCount++}})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=j({type:i,selectors:[["app-widget-product-reviews-modal"]],inputs:{product:"product",visible:"visible"},outputs:{visibleChange:"visibleChange"},features:[Ee],decls:8,vars:12,consts:[["styleClass","product-reviews-dialog",3,"visibleChange","header","visible","modal","dismissableMask","draggable"],[1,"reviews-summary"],[1,"reviews-list"],[1,"review-item"],[1,"reviews-loading"],[1,"reviews-empty"],[1,"reviews-load-more"],[1,"reviews-summary-rating"],[1,"reviews-summary-score"],[1,"reviews-summary-stars"],[1,"pi",3,"ngClass"],[1,"reviews-summary-count"],[1,"review-header"],[1,"review-author"],[1,"review-author-name"],[1,"pi","pi-verified","review-verified",3,"pTooltip"],[1,"review-date"],[1,"review-stars"],[1,"review-comment"],[1,"review-photos"],[1,"review-seller-reply"],[1,"review-footer"],[1,"review-helpful-btn",3,"click"],[1,"pi","pi-thumbs-up"],["alt","","loading","lazy",1,"review-photo",3,"src"],[1,"review-seller-reply-label"],[1,"review-seller-reply-text"],[1,"pi","pi-spin","pi-spinner"],[1,"pi","pi-star"],["severity","secondary","size","small",3,"onClick","label","outlined"]],template:function(e,n){e&1&&(a(0,"p-dialog",0),b("visibleChange",function(){return n.onHide()}),C(1,Cr,11,8,"div",1),a(2,"div",2),k(3,Or,21,13,"div",3,fr),C(5,Mr,2,0,"div",4)(6,kr,5,3,"div",5),l(),C(7,Ir,3,4,"div",6),l()),e&2&&(F(D(11,ur)),x("header",(n.product==null?null:n.product.title)||"")("visible",n.visible)("modal",!0)("dismissableMask",!0)("draggable",!1),r(),g(n.averageRating>0?1:-1),r(2),I(n.reviews),r(2),g(n.loading?5:-1),r(),g(!n.loading&&n.reviews.length===0?6:-1),r(),g(n.hasMore&&!n.loading?7:-1))},dependencies:[Y,J,he,We,Q,N,te,K,ee,Ge,Ft,zt],styles:[".reviews-summary[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding-bottom:1rem;margin-bottom:1rem;border-bottom:1px solid var(--surface-border, #e5e7eb)}.reviews-summary-rating[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.reviews-summary-score[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:700}.reviews-summary-stars[_ngcontent-%COMP%]{display:flex;gap:2px}.reviews-summary-stars[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:1rem;color:#fbbf24}.reviews-summary-count[_ngcontent-%COMP%]{font-size:.85rem;opacity:.7}.reviews-list[_ngcontent-%COMP%]{max-height:60vh;overflow-y:auto}.review-item[_ngcontent-%COMP%]{padding:1rem 0;border-bottom:1px solid var(--surface-border, #e5e7eb)}.review-item[_ngcontent-%COMP%]:last-child{border-bottom:none}.review-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.review-author[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}
3.review-author-name[_ngcontent-%COMP%]{font-weight:600;font-size:.9rem}.review-verified[_ngcontent-%COMP%]{color:#22c55e;font-size:.85rem}.review-date[_ngcontent-%COMP%]{font-size:.75rem;opacity:.6}.review-stars[_ngcontent-%COMP%]{display:flex;gap:2px;margin-bottom:6px}.review-stars[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:.8rem;color:#fbbf24}.review-comment[_ngcontent-%COMP%]{font-size:.9rem;line-height:1.5;margin:0 0 8px}.review-photos[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}.review-photo[_ngcontent-%COMP%]{width:64px;height:64px;object-fit:cover;border-radius:6px}.review-seller-reply[_ngcontent-%COMP%]{background:var(--surface-ground, #f3f4f6);border-radius:8px;padding:10px 12px;margin-bottom:8px}.review-seller-reply-label[_ngcontent-%COMP%]{font-weight:600;font-size:.8rem;display:block;margin-bottom:4px}.review-seller-reply-text[_ngcontent-%COMP%]{font-size:.85rem;margin:0;line-height:1.4}.review-footer[_ngcontent-%COMP%]{display:flex}.review-helpful-btn[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;color:var(--text-color-secondary, #6b7280);font-size:.8rem;display:flex;align-items:center;gap:4px;padding:2px 6px;border-radius:4px;transition:background-color .2s}.review-helpful-btn[_ngcontent-%COMP%]:hover{background:var(--surface-hover, #f3f4f6)}.review-helpful-btn[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:.8rem}.reviews-loading[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:2rem}.reviews-loading[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:1.5rem;opacity:.5}.reviews-empty[_ngcontent-%COMP%]{text-align:center;padding:2rem;opacity:.6}.reviews-empty[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:2rem;display:block;margin-bottom:.5rem}.reviews-empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:.9rem}.reviews-load-more[_ngcontent-%COMP%]{display:flex;justify-content:center;padding-top:1rem}"]})};var nt=class i{http=S(Le);platformId=S(q);loginService=S(Fe);apiBase=X.api+"/api/shop";sessionId=null;getSessionId(){if(this.sessionId)return this.sessionId;if(!M(this.platformId))return"ssr-noop";let t="houla_shop_session",e=localStorage.getItem(t);return e||(e=crypto.randomUUID(),localStorage.setItem(t,e)),this.sessionId=e,e}track(t,e,n){if(!M(this.platformId))return;let o=B({sessionId:this.getSessionId(),eventType:e},n),s=this.loginService.getToken();if(s)try{let P=JSON.parse(atob(s.split(".")[1]));P?.sub&&(o.metadata=G(B({},o.metadata),{userId:P.sub}))}catch{}this.http.post(`${this.apiBase}/${t}/events`,o).subscribe({error:()=>{}})}trackPageView(t){this.track(t,"page_view")}trackProductView(t,e){this.track(t,"product_view",{productId:e})}trackAddToCart(t,e,n){this.track(t,"add_to_cart",{productId:e,variantId:n})}trackCheckoutStart(t,e){this.track(t,"checkout_start",{totalCents:e})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Ie({token:i,factory:i.\u0275fac,providedIn:"root"})};var Er=["headerActionsSentinel"],Tr=["profileWrapper"],Rr=["backgroundLayer"],Vr=["scrollImageWrapper"],Ar=["loadMoreSentinel"],Dr=()=>[Ze,import("./chunk-GSH4G6LQ.js").then(i=>i.WidgetLightboxComponent)],Lr=()=>[ti,N],Br=()=>[we,Ce,kt,xe,Bt,Ue,K,Ne,N,at,import("./chunk-KGJ65LUU.js").then(i=>i.WidgetShareModalComponent)],Wr=(i,t,e)=>[i,t,e],zr=(i,t)=>({amount:i,currency:t}),Fr=()=>({width:"90vw","max-width":"400px"}),Ur=()=>({width:"90vw","max-width":"420px"}),Hr=()=>({width:"90vw","max-width":"500px"}),Nr=()=>[],Gr=()=>({width:"380px"}),$r=()=>({width:"400px"}),qr=(i,t)=>t.platform,jr=(i,t)=>t.id;function Yr(i,t){i&1&&(a(0,"div",6)(1,"div",12)(2,"div",13),m(3,"div",14),a(4,"p",15),d(5),p(6,"translate"),l()()()()),i&2&&(r(5),v(_(6,1,"PROFILE_PAGE.LOADING")))}function Qr(i,t){i&1&&m(0,"i",24)}function Zr(i,t){i&1&&m(0,"i",25)}function Kr(i,t){if(i&1&&(a(0,"div",7)(1,"div",16),m(2,"div",17)(3,"div",18)(4,"div",19),l(),a(5,"div",20)(6,"a",21),m(7,"img",22),l(),a(8,"div",23),C(9,Qr,1,0,"i",24)(10,Zr,1,0,"i",25),l(),a(11,"h1",26),d(12),l(),a(13,"p",27),d(14),p(15,"translate"),l(),a(16,"div",28)(17,"a",29),m(18,"i",30),d(19),p(20,"translate"),l(),a(21,"a",31),m(22,"i",32),d(23),p(24,"translate"),l()(),a(25,"div",33)(26,"h2",34),d(27),p(28,"translate"),l(),a(29,"p",35),d(30),p(31,"translate"),l(),a(32,"div",36)(33,"div",37),m(34,"i",32),a(35,"span"),d(36),p(37,"translate"),l()(),a(38,"div",37),m(39,"i",38),a(40,"span"),d(41),p(42,"translate"),l()(),a(43,"div",37),m(44,"i",39),a(45,"span"),d(46),p(47,"translate"),l()(),a(48,"div",37),m(49,"i",40),a(50,"span"),d(51),p(52,"translate"),l()()(),a(53,"a",41),m(54,"i",42),d(55),p(56,"translate"),l()()()()),i&2){let e=c();r(9),g(e.error==="Ce profil n'est pas public"?9:10),r(3),v(e.error),r(2),u(" ",_(15,12,"PROFILE_PAGE.ERROR_SUBTITLE")," "),r(5),u(" ",_(20,14,"PROFILE_PAGE.BACK_HOME")," "),r(4),u(" ",_(24,16,"PROFILE_PAGE.ERROR_CREATE_LINK")," "),r(4),u(" ",_(28,18,"PROFILE_PAGE.ERROR_PROMO_TITLE")," "),r(3),u(" ",_(31,20,"PROFILE_PAGE.ERROR_PROMO_SUBTITLE")," "),r(6),v(_(37,22,"PROFILE_PAGE.ERROR_FEAT_L
3INKS")),r(5),v(_(42,24,"PROFILE_PAGE.ERROR_FEAT_QR")),r(5),v(_(47,26,"PROFILE_PAGE.ERROR_FEAT_BIO")),r(5),v(_(52,28,"PROFILE_PAGE.ERROR_FEAT_STATS")),r(4),u(" ",_(56,30,"PROFILE_PAGE.ERROR_CTA_SIGNUP")," ")}}function Jr(i,t){if(i&1&&m(0,"div",77,2)(2,"div",78),i&2){let e=c(2);x("ngStyle",e.getBackgroundLayerStyle()),r(2),x("ngStyle",e.getOverlayStyle())}}function Xr(i,t){i&1&&m(0,"div",58)}function ea(i,t){if(i&1&&m(0,"div",80),i&2){let e=c(3);x("ngStyle",e.getScrollGradientStyle())}}function ta(i,t){if(i&1&&(a(0,"div",59,3),m(2,"img",79),C(3,ea,1,1,"div",80),l()),i&2){let e=c(2);r(2),x("src",e.profile.backgroundImageUrl,z)("alt",e.profile.displayName),r(),g(e.getScrollGradientStyle()?3:-1)}}function ia(i,t){if(i&1&&(a(0,"div",62),m(1,"app-widget-linkinbio-avatar",81),l()),i&2){let e=c(2);r(),x("avatarUrl",e.profile.avatarUrl)("displayName",e.profile.displayName)("size",96)("customStyle",e.getAvatarStyle())}}function na(i,t){i&1&&(a(0,"span",82),p(1,"translate"),se(),a(2,"svg",83)(3,"defs")(4,"linearGradient",84),m(5,"stop",85)(6,"stop",86),l()(),m(7,"path",87)(8,"path",88),l()()),i&2&&x("title",_(1,1,"PROFILE_PAGE.VERIFIED"))}function oa(i,t){if(i&1&&(a(0,"h1",63),d(1),C(2,na,9,3,"span",82),l()),i&2){let e=c(2);x("ngStyle",e.getTextStyle()),r(),u(" ",e.profile.displayName," "),r(),g(e.profile.isVerified?2:-1)}}function ra(i,t){if(i&1&&(a(0,"p",64),d(1),l()),i&2){let e=c(2);x("ngStyle",e.getTextStyle()),r(),u(" @",e.profile.username," ")}}function aa(i,t){if(i&1&&(a(0,"p",65),d(1),l()),i&2){let e=c(2);x("ngStyle",e.getTextStyle()),r(),u(" ",e.profile.bio," ")}}function la(i,t){if(i&1&&m(0,"span",90),i&2){let e=c().$implicit;x("innerHTML",e.svgIcon,Te)}}function ca(i,t){if(i&1&&m(0,"i"),i&2){let e=c().$implicit;pt("pi "+e.icon)}}function sa(i,t){if(i&1&&(a(0,"a",89),C(1,la,1,1,"span",90)(2,ca,1,2,"i",91),l()),i&2){let e=t.$implicit,n=c(3);x("href",e.url,z)("title",e.label)("ngStyle",n.getSocialIconStyle()),r(),g(e.svgIcon?1:2)}}function da(i,t){if(i&1&&(a(0,"div",66),k(1,sa,3,4,"a",89,qr),l()),i&2){let e=c(2);r(),I(e.socialLinksWithConfig)}}function pa(i,t){if(i&1){let e=y();a(0,"div",92),m(1,"div",93),a(2,"button",94),b("click",function(){f(e);let o=c(2);return h(o.switchView("content"))}),d(3),p(4,"translate"),l(),a(5,"button",94),b("click",function(){f(e);let o=c(2);return h(o.switchView("shop"))}),d(6),p(7,"translate"),l()()}if(i&2){let e=c(2);V("bio-view-switch--shop-active",e.activeView==="shop"),r(2),V("bio-view-switch__tab--active",e.activeView==="content"),r(),u(" ",e.profile.contentTabLabel||_(4,8,"PROFILE_PAGE.TAB_CONTENT")," "),r(2),V("bio-view-switch__tab--active",e.activeView==="shop"),r(),u(" ",e.profile.shopTabLabel||_(7,10,"PROFILE_PAGE.TAB_SHOP")," ")}}function _a(i,t){if(i&1){let e=y();a(0,"app-widget-bio-block-renderer",99),b("linkClicked",function(o){f(e);let s=c(4);return h(s.trackLinkClick(o))})("emailSignup",function(o){f(e);let s=c(4);return h(s.handleEmailSignup(o.link,o.email))})("contentUnlocked",function(o){f(e);let s=c(4);return h(s.handleContentUnlocked(o))})("copyRequest",function(o){f(e);let s=c(4);return h(s.copyToClipboard(o))})("applyPromoToCart",function(o){f(e);let s=c(4);return h(s.applyPromoToCart(o))})("lightboxOpened",function(o){f(e);let s=c(4);return h(s.handleLightboxOpen(o))})("shareRequested",function(o){f(e);let s=c(4);return h(s.openWidgetShareModal(o))})("featuredProductClicked",function(o){f(e);let s=c(4);return h(s.onFeaturedProductClick(o))})("quickAddToCart",function(o){f(e);let s=c(4);return h(s.onQuickAddToCart(o))})("gridHeroOverlayOpened",function(o){f(e);let s=c(4);return h(s.handleGridHeroOverlayOpen(o))}),l()}if(i&2){let e=t.$implicit,n=c(4);x("link",e)("linkStyle",n.getLinkStyle(e))("textStyle",n.getTextStyle())("blockStyle",n.getBlockStyle())("dividerStyle",n.getDividerStyle())("previewMode",!1)("emailSignupState",n.getEmailSignupState(e))("featuredProducts",n.featuredProducts)("collectionProductsMap",n.collectionProductsMap)("dynamicProductsMap",n.dynamicProductsMap)("shopProductsMap",n.shopProductsMap)}}function ma(i,t){i&1&&m(0,"div",98,4)}function ga(i,t){if(i&1&&(a(0,"div",95),k(1,_a,1,11,"app-widget-bio-block-renderer",97,fe().trackByLink,!0),C(3,ma,2,0,"div",98),l()),i&2){let e=c(3);x("ngStyle",e.getContainerVars()),r(),I(e.visibleLinks),r(2),g(e.allLinksLoaded?-1:3)}}function ua(i,t){if(i&1&&(a(0,"div",96)(1,"p"),d(2),p(3,"translate"),l()()),i&2){let e=c(3);x("ngStyle",e.getTextStyle()),r(2),v(_(3,2,"PROFILE_PAGE.NO_LINKS"))}}function fa(i,t){if(i&1&&C(0,ga,4,2,"div",95)(1,ua,4,4,"div",96),i&2){let e=c(2);g(e.profile.links&&e.profile.links.length>0?0:-1),r(),g(!e.profile.links||e.profile.links.length===0?1:-1)}}function ha(i,t){if(i&1){let e=y();a(0,"app-widget-bio-shop",102),b("collectionSelected",function(o){f(e);let s=c(5);return h(s.onShopCollectionSelected(o))})("typeSelected",function(o){f(e);let s=c(5);return h(s.onShopTypeSelected(o))}
3)("loadMore",function(){f(e);let o=c(5);return h(o.onShopLoadMore())})("productClicked",function(o){f(e);let s=c(5);return h(s.onShopProductClicked(o))})("quickAddToCart",function(o){f(e);let s=c(5);return h(s.onQuickAddToCart(o))})("reviewsClicked",function(o){f(e);let s=c(5);return h(s.onProductReviewsClicked(o))}),l()}if(i&2){let e=c().$implicit,n=c(4);x("products",n.shopProducts)("collections",n.shopCollections)("total",n.shopTotal)("loading",n.shopLoading)("textStyle",n.getTextStyle())("title",e.title)("thumbnailUrl",e.thumbnailUrl)("showTitle",(e.metadata==null?null:e.metadata.showTitle)!==!1)("sellerReviewStats",n.sellerReviewStats)("typeCounts",n.shopTypeCounts)}}function Ca(i,t){if(i&1){let e=y();a(0,"app-widget-bio-block-renderer",103),b("linkClicked",function(o){f(e);let s=c(5);return h(s.trackLinkClick(o))})("copyRequest",function(o){f(e);let s=c(5);return h(s.copyToClipboard(o))})("applyPromoToCart",function(o){f(e);let s=c(5);return h(s.applyPromoToCart(o))})("featuredProductClicked",function(o){f(e);let s=c(5);return h(s.onFeaturedProductClick(o))})("quickAddToCart",function(o){f(e);let s=c(5);return h(s.onQuickAddToCart(o))})("productReviewsClicked",function(o){f(e);let s=c(5);return h(s.onProductReviewsClicked(o))})("gridHeroOverlayOpened",function(o){f(e);let s=c(5);return h(s.handleGridHeroOverlayOpen(o))}),l()}if(i&2){let e=c().$implicit,n=c(4);x("link",e)("linkStyle",n.getLinkStyle(e))("textStyle",n.getTextStyle())("blockStyle",n.getBlockStyle())("dividerStyle",n.getDividerStyle())("previewMode",!1)("featuredProducts",n.featuredProducts)("collectionProductsMap",n.collectionProductsMap)("dynamicProductsMap",n.dynamicProductsMap)("shopProductsMap",n.shopProductsMap)}}function xa(i,t){if(i&1&&C(0,ha,1,10,"app-widget-bio-shop",100)(1,Ca,1,10,"app-widget-bio-block-renderer",101),i&2){let e=t.$implicit;g(e.embedType==="shop-catalog"?0:1)}}function ba(i,t){if(i&1&&(a(0,"div",95),k(1,xa,2,1,null,null,fe().trackByLink,!0),l()),i&2){let e=c(3);x("ngStyle",e.getContainerVars()),r(),I(e.shopBlockLinks)}}function va(i,t){if(i&1&&C(0,ba,3,1,"div",95),i&2){let e=c(2);g(e.shopBlockLinks.length>0?0:-1)}}function Pa(i,t){if(i&1){let e=y();a(0,"div",69)(1,"button",104),p(2,"translate"),b("click",function(){f(e);let o=c(2);return h(o.dismissPendingBanner())}),m(3,"i",105),l(),a(4,"div",106)(5,"div",107),m(6,"i",108),l(),a(7,"div",109)(8,"span",110),d(9),p(10,"translate"),l(),a(11,"button",111),b("click",function(){f(e);let o=c(2);return h(o.resumePendingOrder())}),m(12,"i",112),d(13),p(14,"translate"),l()()()()}if(i&2){let e=c(2);r(),ue("aria-label",_(2,3,"SHOP.CART.PENDING_BANNER_DISMISS")),r(8),u(" ",L(10,5,"SHOP.CART.PENDING_BANNER",De(10,zr,(e.pendingOrderInfo.totalCents/100).toFixed(2),e.pendingOrderInfo.currency))," "),r(4),u(" ",_(14,8,"SHOP.CART.PENDING_BANNER_CTA")," ")}}function ya(i,t){if(i&1&&(a(0,"span",114),d(1),l()),i&2){let e=c(3);r(),v(e.cartService.itemCount())}}function wa(i,t){if(i&1){let e=y();a(0,"button",113),p(1,"translate"),b("click",function(){f(e);let o=c(2);return h(o.openCart())}),m(2,"i",108),C(3,ya,2,1,"span",114),l()}if(i&2){let e=c(2);V("cart-fab--empty",!e.cartService.hasItems()),ue("aria-label",_(1,4,"SHOP.CART.TITLE")),r(3),g(e.cartService.hasItems()?3:-1)}}function Sa(i,t){if(i&1){let e=y();a(0,"button",115),b("click",function(){f(e);let o=c(2);return h(o.openPromoModal())}),a(1,"span"),d(2),p(3,"translate"),l(),m(4,"i",116),l(),a(5,"a",117),p(6,"translate"),a(7,"span",118),d(8,"hou.la"),l()()}i&2&&(r(2),v(_(3,2,"PROFILE_PAGE.FOOTER_CTA")),r(3),x("title",_(6,4,"PROFILE_PAGE.CREATE_YOUR_PAGE")))}function Oa(i,t){if(i&1&&(a(0,"div",120)(1,"div",121),m(2,"qrcode",122),a(3,"p",123),d(4),p(5,"translate"),l(),a(6,"a",124),d(7),p(8,"translate"),l()()()),i&2){let e=c(3);V("qr-code-container--left",e.profile.shopEnabled),r(2),x("qrdata",e.profileUrl)("width",100)("errorCorrectionLevel","M")("margin",1)("cssClass","qr-code-img")("elementType","img")("alt","QR code "+e.profile.displayName)("ariaLabel","QR code "+e.profile.displayName),r(2),u(" ",_(5,13,"PROFILE_PAGE.SCAN_TO")," "),r(2),x("href",e.profileUrl,z),r(),v(_(8,15,"PROFILE_PAGE.OPEN_MOBILE"))}}function Ma(i,t){if(i&1&&C(0,Oa,9,17,"div",119),i&2){let e=c(2);g(e.showQrCode&&e.profileUrl?0:-1)}}function ka(i,t){if(i&1){let e=y();a(0,"app-widget-share-modal",174),R("visibleChange",function(o){f(e);let s=c(3);return T(s.showWidgetShareModal,o)||(s.showWidgetShareModal=o),h(o)}),l()}if(i&2){let e=c(3);
3E("visible",e.showWidgetShareModal),x("shareUrl",e.getWidgetShareUrl(e.widgetToShare))("displayName",e.profile.displayName)("avatarUrl",e.profile.avatarUrl)("backgroundImageUrl",e.profile.backgroundImageUrl)("bannerStyle",e.getProfileStyle())("avatarStyle",e.getAvatarStyle())("shortUrl","hou.la/@"+e.profile.username+"/bio")("itemTitle",e.widgetToShare.title)("showPromoSection",!0)}}function Ia(i,t){if(i&1){let e=y();a(0,"div",129)(1,"div",175),m(2,"i",176),l(),a(3,"h3"),d(4),p(5,"translate"),l(),a(6,"p"),d(7),p(8,"translate"),l(),a(9,"button",177),b("click",function(){f(e);let o=c(3);return h(o.closeSubscribeModal())}),d(10),p(11,"translate"),l()()}i&2&&(r(4),u(" ",_(5,3,"PROFILE_PAGE.SUBSCRIBE_SUCCESS_TITLE")," "),r(3),u(" ",_(8,5,"PROFILE_PAGE.SUBSCRIBE_SUCCESS_DESC")," "),r(3),u(" ",_(11,7,"PROFILE_PAGE.SUBSCRIBE_DONE")," "))}function Ea(i,t){if(i&1&&(a(0,"div",182),m(1,"i",188),a(2,"span"),d(3),l()()),i&2){let e=c(4);r(3),v(e.loggedInEmail)}}function Ta(i,t){if(i&1){let e=y();a(0,"input",189),p(1,"translate"),R("ngModelChange",function(o){f(e);let s=c(4);return T(s.subscribeEmail,o)||(s.subscribeEmail=o),h(o)}),b("keyup.enter",function(){f(e);let o=c(4);return h(o.submitSubscribe())}),l()}if(i&2){let e=c(4);E("ngModel",e.subscribeEmail),x("placeholder",_(1,3,"PROFILE_PAGE.SUBSCRIBE_EMAIL_PLACEHOLDER"))("disabled",e.subscribing)}}function Ra(i,t){i&1&&(a(0,"p",184),d(1),p(2,"translate"),l()),i&2&&(r(),u(" ",_(2,1,"PROFILE_PAGE.SUBSCRIBE_EMAIL_INVALID")," "))}function Va(i,t){i&1&&(a(0,"p",184),d(1),p(2,"translate"),l()),i&2&&(r(),u(" ",_(2,1,"PROFILE_PAGE.SUBSCRIBE_ERROR")," "))}function Aa(i,t){i&1&&m(0,"i",186)}function Da(i,t){i&1&&(d(0),p(1,"translate")),i&2&&u(" ",_(1,1,"PROFILE_PAGE.SUBSCRIBE_SUBMIT")," ")}function La(i,t){if(i&1){let e=y();m(0,"app-widget-linkinbio-avatar",178),a(1,"h3",179),d(2),p(3,"translate"),l(),a(4,"p",180),d(5),p(6,"translate"),l(),a(7,"div",181),C(8,Ea,4,1,"div",182)(9,Ta,2,5,"input",183)(10,Ra,3,3,"p",184)(11,Va,3,3,"p",184),a(12,"button",185),b("click",function(){f(e);let o=c(3);return h(o.submitSubscribe())}),C(13,Aa,1,0,"i",186)(14,Da,2,3),l()(),a(15,"p",187),d(16),p(17,"translate"),l()}if(i&2){let e=c(3);x("avatarUrl",e.profile.avatarUrl)("displayName",e.profile.displayName)("size",64)("customStyle",e.getAvatarStyle()),r(2),H(" ",_(3,12,"PROFILE_PAGE.SUBSCRIBE_TO")," @",e.profile.username," "),r(3),u(" ",_(6,14,"PROFILE_PAGE.SUBSCRIBE_DESC")," "),r(3),g(e.loggedInEmail?8:9),r(2),g(e.subscribeError==="EMAIL_INVALID"?10:e.subscribeError?11:-1),r(2),x("disabled",e.subscribing),r(),g(e.subscribing?13:14),r(3),u(" ",_(17,16,"PROFILE_PAGE.SUBSCRIBE_PRIVACY")," ")}}function Ba(i,t){if(i&1){let e=y();a(0,"div",170)(1,"div",190)(2,"div",191)(3,"span",192),d(4),p(5,"translate"),l(),a(6,"span",193),d(7),p(8,"translate"),l()(),a(9,"p",194),d(10),p(11,"translate"),l()(),a(12,"div",190)(13,"div",191)(14,"span",192),d(15),p(16,"translate"),l(),a(17,"label",195)(18,"input",196),R("ngModelChange",function(o){f(e);let s=c(3);return T(s.cookieConsent.performance,o)||(s.cookieConsent.performance=o),h(o)}),l(),m(19,"span",197),l()(),a(20,"p",194),d(21),p(22,"translate"),l()(),a(23,"div",190)(24,"div",191)(25,"span",192),d(26),p(27,"translate"),l(),a(28,"label",195)(29,"input",196),R("ngModelChange",function(o){f(e);let s=c(3);return T(s.cookieConsent.functional,o)||(s.cookieConsent.functional=o),h(o)}),l(),m(30,"span",197),l()(),a(31,"p",194),d(32),p(33,"translate"),l()(),a(34,"div",190)(35,"div",191)(36,"span",192),d(37),p(38,"translate"),l(),a(39,"label",195)(40,"input",196),R("ngModelChange",function(o){f(e);let s=c(3);return T(s.cookieConsent.advertising,o)||(s.cookieConsent.advertising=o),h(o)}),l(),m(41,"span",197),l()(),a(42,"p",194),d(43),p(44,"translate"),l()()()}if(i&2){let e=c(3);r(4),v(_(5,12,"PROFILE_PAGE.COOKIE_NECESSARY")),r(3),v(_(8,14,"PROFILE_PAGE.COOKIE_ALWAYS_ON")),r(3),u(" ",_(11,16,"PROFILE_PAGE.COOKIE_NECESSARY_DESC")," "),r(5),v(_(16,18,"PROFILE_PAGE.COOKIE_PERFORMANCE")),r(3),E("ngModel",e.cookieConsent.performance),r(3),u(" ",_(22,20,"PROFILE_PAGE.COOKIE_PERFORMANCE_DESC")," "),r(5),v(_(27,22,"PROFILE_PAGE.COOKIE_FUNCTIONAL")),r(3),E("ngModel",e.cookieConsent.functional),r(3),u(" ",_(33,24,"PROFILE_PAGE.COOKIE_FUNCTIONAL_DESC")," "),r(5),v(_(38,26,"PROFILE_PAGE.COOKIE_ADVERTISING")),r(3),E("ngModel",e.cookieConsent.advertising),r(3),u(" ",_(44,28,"PROFILE_PAGE.COOKIE_ADVERTISING_DESC")," ")}}function Wa(i,t){if(i&1){let e=y();a(0,"app-widget-share-modal",125),R("visibleChange",function(o){f(e);let s=c(2);return T(s.showShareModal,o)||(s.showShareModal=o),h(o)}),l(),C(1,ka,1,10,"app-widget-share-modal",126),a(2,"p-dialog",127),R("visibleChange",function(o){f(e);let s=c(2);return T(s.showSubscribeModal,o)||(s.showSubscribeModal=o),h(o)}),a(3,"div",128),C(4,Ia,12,9,"div",129)(5,La,18,18),l()(),a(6,"p-dialog",130),R("visibleChange",function(o){f(e);let s=c(2);return T(s.showPromoModal,o)||(s.showPromoModal=o),h(o)}),a(7,"div",131)(8,"button",132),b("click",function(){f(e);let o=c(2);return h(o.closePromoModal())}),m(9,"i",105),l(),a(10,"div",133),m(11,"div",134),a(12,"div",135),m(13,"div",136)(14,"div",137),a(15,"div",138),m(16,"div",139)(17,"div",139)(18,"div",139),l()()(),a(19,"div",140)(20,"div",141),m(21,"i",142),l(),a(22,"div",143),se(),a(23,"svg",144),m(24,"path",145),l()(),ge(),a(25,"div",146),m(26,"i",147),l(),a(27,"div",148),se(),a(28,"svg",149),m(29,"path",150),l()()()(),ge(),a(30,"div",151)(31,"h2",152),d(32),p(33,"translate"),l(),a(34,"p",153),d(35),p(36,"translate"),l(),a(37,"div",154)(38,"label",155),d(39),p(40,"translate"),l(),a(41,"div",156)(42,"span",157),d(43,"hou.la/@"),l(),a(44,"input",158),p(45,"translate"),b("ngModelChange",function(o){f(e);let s=c(2);return h(s.onPromoPageNameChange(o))})("keydown.enter",function(){f(e);let o=c(2);return h(o.goToSignup())}),l()()(),a(46,"button",159),b("click",function(){f(e);let o=c(2);return h(o.goToSignup())}),d(47),p(48,"translate"),m(49,"i",160),l(),a(50,"div",161)(51,"div",162),m(52,"i",163),a(53,"div",164)(54,"strong"),d(55),p(56,"translate"),l(),a(57,"span"),d(58),p(59,"translate"),l()()(),a(60,"div",162),m(61,"i",165),a(62,"div",164)(63,"strong"),d(64),p(65,"translate"),l(),a(66,"span"),d(67),p(68,"translate"),l()()(),a(69,"div",162),m(70,"i",166),a(71,"div",164)(72,"strong"),d(73),p(74,"translate"),l(),a(75,"span"),d(76),p(77,"translate"),l()()()(),a(78,"a",167),b("click",function(){f(e);let o=c(2);return h(o.closePromoModal())}),d(79),p(80,"translate"),m(81,"i",160),l()()(),a(82,"p-dialog",168),p(83,"translate"),R("visibleChange",function(o){f(e);let s=c(2);return T(s.showCookieModal,o)||(s.showCookieModal=o),h(o)}),a(84,"p",169),d(85),p(86,"translate"),l(),C(87,Ba,45,30,"div",170),a(88,"div",171)(89,"button",172),p(90,"translate"),b("click",function(){f(e);let o=c(2);return h(o.saveCookieConsent())}),l(),a(91,"button",173),p(92,"translate"),b("click",function(){f(e);let o=c(2);return h(o.acceptAllCookies())}),l()()()}if(i&2){let e=c(2);E("visible",e.showShareModal),x("shareUrl",e.profileUrl)("displayName",e.profile.displayName)("avatarUrl",e.profile.avatarUrl)("backgroundImageUrl",e.profile.backgroundImageUrl)("bannerStyle",e.getProfileStyle())("avatarStyle",e.getAvatarStyle())("shortUrl","hou.la/@"+e.profile.username+"/bio")("showPromoSection",!0),r(),g(e.widgetToShare?1:-1),r(),F(D(84,Fr)),E("visible",e.showSubscribeModal),x("modal",!0)("dismissableMask",!0)("draggable",!1)("resizable",!1)("showHeader",!1),r(2),g(e.subscribeSuccess?4:5),r(2),F(D(85,Ur)),E("visible",e.showPromoModal),x("modal",!0)("dismissableMask",!0)("draggable",!1)("resizable",!1)("showHeader",!1),r(26),u(" ",_(33,52,"PROFILE_PAGE.PROMO_TITLE")," "),r(3),u(" ",_(36,54,"PROFILE_PAGE.PROMO_DESCRIPTION")," "),r(4),v(_(40,56,"PROFILE_PAGE.PROMO_CLAIM_LABEL")),r(5),x("ngModel",e.promoPageName)("placeholder",_(45,58,"PROFILE_PAGE.PROMO_CLAIM_PLACEHOLDER")),r(3),u(" ",_(48,60,"PROFILE_PAGE.PROMO_CTA")," "),r(8),v(_(56,62,"PROFILE_PAGE.PROMO_READY_2MIN")),r(3),v(_(59,64,"PROFILE_PAGE.PROMO_READY_2MIN_DESC")),r(6),v(_(65,66,"PROFILE_PAGE.PROMO_CUSTOMIZABLE")),r(3),v(_(68,68,"PROFILE_PAGE.PROMO_CUSTOMIZABLE_DESC")),r(6),v(_(74,70,"PROFILE_PAGE.PROMO_STATS")),r(3),v(_(77,72,"PROFILE_PAGE.PROMO_STATS_DESC")),r(3),u(" ",_(80,74,"PROFILE_PAGE.PROMO_LEARN_MORE")," "),r(3),F(D(86,Hr)),E("visible",e.showCookieModal),x("modal",!0)("dismissableMask",!0)("draggable",!1)("resizable",!1)("header",_(83,76,"PROFILE_PAGE.COOKIE_TITLE")),r(3),u(" ",_(86,78,"PROFILE_PAGE.COOKIE_INTRO")," "),r(2),g(e.cookieConsent?87:-1),r(2),x("label",_(90,80,"PROFILE_PAGE.COOKIE_SAVE")),r(2),x("label",_(92,82,"PROFILE_PAGE.COOKIE_ACCEPT_ALL"))}}function za(i,t){if(i&1){let e=y();a(0,"div",43,0)(2,"div",44)(3,"div",45)(4,"button",46),p(5,"translate"),p(6,"translate"),b("click",function(){f(e);let o=c();return h(o.openPromoModal())}),se(),a(7,"svg",47),m(8,"path",48),l()(),ge(),a(9,"div",49)(10,"button",50),p(11,"translate"),p(12,"translate"),b("click",function(){f(e);let o=c();return h(o.openSubscribeModal())}),se(),a(13,"svg",51),m(14,"path",52)(15,"path",53),l()(),ge(),a(16,"button",54),p(17,"translate"),p(18,"translate"),b("click",function(){f(e);let o=c();return h(o.openShareModal())}),se(),a(19,"svg",51),m(20,"path",55)(21,"polyline",56)(22,"line",57
3),l()()()(),C(23,Jr,3,2)(24,Xr,1,0,"div",58)(25,ta,4,3,"div",59),ge(),a(26,"div",60)(27,"div",61),C(28,ia,2,4,"div",62)(29,oa,3,3,"h1",63)(30,ra,2,2,"p",64)(31,aa,2,2,"p",65),l(),C(32,da,3,0,"div",66),m(33,"div",67,1),C(35,pa,8,12,"div",68)(36,fa,2,2)(37,va,1,1)(38,Pa,15,13,"div",69)(39,wa,4,6,"button",70),a(40,"div",71),C(41,Sa,9,6),a(42,"div",72)(43,"button",73),b("click",function(){f(e);let o=c();return h(o.openCookieModal())}),d(44),p(45,"translate"),l(),a(46,"span",74),d(47,"\u2022"),l(),a(48,"a",75),d(49),p(50,"translate"),l(),a(51,"span",74),d(52,"\u2022"),l(),a(53,"a",76),d(54),p(55,"translate"),l(),a(56,"span",74),d(57,"\u2022"),l(),a(58,"button",73),b("click",function(){f(e);let o=c();return h(o.openReportDialog())}),d(59),p(60,"translate"),l()()()(),C(61,Ma,1,1),Re(62,61,Lr),Ae(),l()(),C(64,Wa,93,87),Re(65,64,Br),Ae()}if(i&2){let e=c();x("ngStyle",e.getWrapperStyle()),r(2),x("ngClass",ft(52,Wr,e.getThemeClass(),e.hasCustomBackground()?"has-custom-bg":"",e.isScrollLayout()?"scroll-layout":""))("ngStyle",e.getProfileStyle()),r(),V("header-actions-hidden",!e.headerActionsVisible),r(),ue("title",_(5,32,"PROFILE_PAGE.TOOLTIP_CREATE"))("aria-label",_(6,34,"PROFILE_PAGE.TOOLTIP_CREATE")),r(6),ue("title",_(11,36,"PROFILE_PAGE.TOOLTIP_SUBSCRIBE"))("aria-label",_(12,38,"PROFILE_PAGE.TOOLTIP_SUBSCRIBE")),r(6),ue("title",_(17,40,"PROFILE_PAGE.TOOLTIP_SHARE"))("aria-label",_(18,42,"PROFILE_PAGE.TOOLTIP_SHARE")),r(7),g(e.profile.backgroundImageUrl&&!e.isScrollLayout()?23:-1),r(),g(e.profile.backgroundNoise?24:-1),r(),g(e.profile.backgroundImageUrl&&e.isScrollLayout()?25:-1),r(3),g(e.profile.showAvatar?28:-1),r(),g(e.profile.showDisplayName!==!1?29:-1),r(),g(e.profile.showUsername!==!1?30:-1),r(),g(e.profile.bio?31:-1),r(),g(e.socialLinksWithConfig.length>0?32:-1),r(3),g(e.profile.shopEnabled?35:-1),r(),g(e.activeView==="content"?36:-1),r(),g(e.activeView==="shop"?37:-1),r(),g(e.pendingOrderInfo&&!e.pendingBannerDismissed?38:-1),r(),g(e.profile.shopEnabled&&e.activeView==="shop"?39:-1),r(),x("ngStyle",e.getTextStyle()),r(),g(e.profile.showBranding!==!1?41:-1),r(3),u(" ",_(45,44,"PROFILE_PAGE.COOKIES")," "),r(5),v(_(50,46,"PROFILE_PAGE.PRIVACY")),r(5),v(_(55,48,"PROFILE_PAGE.TERMS")),r(5),u(" ",_(60,50,"PROFILE_PAGE.REPORT")," "),r(3),Ve(e.showQrCode),r(3),Ve(e.showShareModal||e.showWidgetShareModal||e.showSubscribeModal||e.showPromoModal||e.showCookieModal)}}function Fa(i,t){if(i&1){let e=y();a(0,"app-widget-cart-drawer",198),R("visibleChange",function(o){f(e);let s=c();return T(s.showCartDrawer,o)||(s.showCartDrawer=o),h(o)}),b("checkoutRequested",function(o){f(e);let s=c();return h(s.onCheckoutRequested(o))}),l()}if(i&2){let e=c();E("visible",e.showCartDrawer),x("username",(e.profile==null?null:e.profile.username)||"")("workspaceId",e.shopWorkspaceId)("checkoutLoading",e.checkoutLoading)("checkoutError",e.checkoutError)("localPickupEnabled",!!(e.profile!=null&&e.profile.localPickupEnabled))("localPickupAddress",(e.profile==null?null:e.profile.localPickupAddress)||null)("localPickupInstructions",(e.profile==null?null:e.profile.localPickupInstructions)||null)("shippingCountries",(e.profile==null?null:e.profile.shippingCountries)||D(11,Nr))("openCartEnabled",(e.profile==null?null:e.profile.openCartEnabled)!==!1)("shippingMode",(e.profile==null?null:e.profile.shippingMode)||"manual")}}function Ua(i,t){if(i&1){let e=y();a(0,"app-widget-product-detail-modal",199),R("visibleChange",function(o){f(e);let s=c();return T(s.showProductDetail,o)||(s.showProductDetail=o),h(o)}),b("addToCart",function(o){f(e);let s=c();return h(s.onProductAddToCart(o))}),l(),a(1,"app-widget-product-reviews-modal",200),R("visibleChange",function(o){f(e);let s=c();return T(s.showReviewsModal,o)||(s.showReviewsModal=o),h(o)}),l()}if(i&2){let e,n,o,s=c();x("product",s.selectedProduct),E("visible",s.showProductDetail),x("processingDays",(e=s.profile==null?null:s.profile.processingDays)!==null&&e!==void 0?e:null)("shopName",(n=s.profile==null?null:s.profile.displayName)!==null&&n!==void 0?n:null)("shopAvatarUrl",(o=s.profile==null?null:s.profile.avatarUrl)!==null&&o!==void 0?o:null)("sellerAverageRating",s.sellerReviewStats.averageRating)("sellerReviewCount",s.sellerReviewStats.totalReviews),r(),x("product",s.reviewsProduct),E("visible",s.showReviewsModal)}}function Ha(i,t){if(i&1){let e=y();a(0,"button",209),b("click",function(){f(e);let o=c(2);
3return h(o.selectPaymentMethod("stripe"))}),m(1,"i",210),d(2),p(3,"translate"),l()}i&2&&(r(2),u(" ",_(3,1,"SHOP.CART.PAY_WITH_CARD")," "))}function Na(i,t){if(i&1){let e=y();a(0,"p-dialog",201),R("visibleChange",function(o){f(e);let s=c();return T(s.showPaymentMethodDialog,o)||(s.showPaymentMethodDialog=o),h(o)}),a(1,"div",202)(2,"div",203),m(3,"i",204),l(),a(4,"h3",205),d(5),p(6,"translate"),l(),a(7,"p",206),d(8),p(9,"translate"),l(),a(10,"div",207),C(11,Ha,4,3,"button",208),l()()()}if(i&2){let e=c();F(D(13,Gr)),E("visible",e.showPaymentMethodDialog),x("modal",!0)("closable",!0)("showHeader",!1),r(5),u(" ",_(6,9,"SHOP.CART.PAYMENT_METHOD_TITLE")," "),r(3),u(" ",_(9,11,"SHOP.CART.PAYMENT_METHOD_DESC")," "),r(3),g(e.availablePaymentMethods.includes("stripe")?11:-1)}}function Ga(i,t){if(i&1&&(a(0,"div",219),m(1,"i",220),d(2),p(3,"translate"),p(4,"date"),l()),i&2){let e=c(3);r(2),H(" ",_(3,2,"SHOP.CART.OPEN_CART_UNTIL")," ",L(4,4,e.openCartUntil,"dd/MM/yyyy HH:mm")," ")}}function $a(i,t){if(i&1&&(a(0,"div",214)(1,"div",216),m(2,"i",217),d(3),p(4,"translate"),l(),a(5,"p",218),d(6),p(7,"translate"),l(),C(8,Ga,5,7,"div",219),l()),i&2){let e=c(2);r(3),u("",_(4,3,"SHOP.CART.OPEN_CART_TITLE")," "),r(3),u(" ",_(7,5,"SHOP.CART.OPEN_CART_DESC")," "),r(2),g(e.openCartUntil?8:-1)}}function qa(i,t){i&1&&(a(0,"div",215)(1,"div",221),m(2,"i",222),d(3),p(4,"translate"),l()()),i&2&&(r(3),u("",_(4,1,"SHOP.CART.CART_CLOSED_SUCCESS")," "))}function ja(i,t){if(i&1){let e=y();a(0,"p-button",227),p(1,"translate"),b("onClick",function(){f(e);let o=c(3);return h(o.closeCartNow())}),l()}if(i&2){let e=c(3);x("label",_(1,3,"SHOP.CART.CLOSE_CART_NOW"))("outlined",!0)("loading",e.closingCart)}}function Ya(i,t){if(i&1){let e=y();a(0,"div",223)(1,"p-button",224),p(2,"translate"),b("onClick",function(){f(e);let o=c(2);return h(o.showOrderConfirmation=!1)}),l(),C(3,ja,2,5,"p-button",225),a(4,"a",226),d(5),p(6,"translate"),l()()}if(i&2){let e=c(2);r(),x("label",_(2,3,"SHOP.CART.CONTINUE_SHOPPING")),r(2),g(e.isOpenCart&&!e.cartClosed?3:-1),r(2),u(" ",_(6,5,"SHOP.CART.VIEW_MY_ORDERS")," ")}}function Qa(i,t){if(i&1){let e=y();a(0,"p-dialog",211),p(1,"translate"),R("visibleChange",function(o){f(e);let s=c();return T(s.showOrderConfirmation,o)||(s.showOrderConfirmation=o),h(o)}),a(2,"div",202),m(3,"i",212),a(4,"p",213),d(5),p(6,"translate"),l()(),C(7,$a,9,7,"div",214)(8,qa,5,3,"div",215)(9,Ya,7,7,"ng-template",null,5,ht),l()}if(i&2){let e=c();F(D(13,$r)),E("visible",e.showOrderConfirmation),x("modal",!0)("closable",!0)("header",_(1,9,"SHOP.CART.ORDER_CONFIRMED")),r(5),u(" ",_(6,11,"SHOP.CART.ORDER_CONFIRMED_MESSAGE")," "),r(2),g(e.isOpenCart&&!e.cartClosed?7:-1),r(),g(e.cartClosed?8:-1)}}function Za(i,t){if(i&1&&(a(0,"h2",232),d(1),l()),i&2){let e=c(2);r(),u(" ",e.gridHeroOverlay.title," ")}}function Ka(i,t){if(i&1&&m(0,"img",238),i&2){let e=c().$implicit;x("src",e.imageUrl,z)("alt",e.title)}}function Ja(i,t){i&1&&(a(0,"div",239),m(1,"i",245),l())}function Xa(i,t){i&1&&(a(0,"span",240),d(1),l()),i&2&&(r(),u("-",t,"%"))}function el(i,t){if(i&1&&(a(0,"span",247),d(1),l()),i&2){let e=c(2).$implicit,n=c(2);r(),v(n.getOverlayComparePrice(e))}}function tl(i,t){if(i&1&&(a(0,"div",243)(1,"span",246),d(2),l(),C(3,el,2,1,"span",247),l()),i&2){let e=c().$implicit,n=c(2);r(2),v(n.getOverlayDisplayPrice(e)),r(),g(n.getOverlayComparePrice(e)?3:-1)}}function il(i,t){i&1&&(d(0),p(1,"translate")),i&2&&u(" ",_(1,1,"PROFILE_PAGE.SHOP.CHOOSE_OPTIONS")," ")}function nl(i,t){i&1&&(d(0),p(1,"translate")),i&2&&u(" ",_(1,1,"PROFILE_PAGE.ADD_TO_CART")," ")}function ol(i,t){if(i&1){let e=y();a(0,"div",236),b("click",function(){let o=f(e).$implicit,s=c(2);return h(s.onFeaturedProductClick(o))}),a(1,"div",237),C(2,Ka,1,2,"img",238)(3,Ja,2,0,"div",239)(4,Xa,2,1,"span",240),l(),a(5,"div",241)(6,"h3",242),d(7),l(),C(8,tl,4,2,"div",243),a(9,"button",244),b("click",function(o){let s=f(e).$implicit,P=c(2);return h(P.onOverlayAddToCart(o,s))}),m(10,"i",108),C(11,il,2,3)(12,nl,2,3),l()()()}if(i&2){let e,n=t.$implicit,o=c(2);r(2),g(n.imageUrl?2:3),r(2),g((e=o.getOverlayDiscountPercent(n))?4:-1,e),r(3),u(" ",n.title," "),r(),g(o.getOverlayDisplayPrice(n)?8:-1),r(3),g(n.options!=null&&n.options.length&&(n.variants!=null&&n.variants.length)?11:12)}}function rl(i,t){if(i&1){let e=y();a(0,"div",228),b("click",function(){f(e);let o=c();return h(o.closeGridHeroOverlay())}),a(1,"div",229),b("click",function(o){return f(e),h(o.stopPropagation())}),a(2,"button",230),b("click",function(){f(e);let o=c();return h(o.closeGridHeroOverlay())}
3),m(3,"i",105),l(),a(4,"div",231),C(5,Za,2,1,"h2",232),a(6,"span",233),d(7),p(8,"translate"),l()(),a(9,"div",234),k(10,ol,13,5,"div",235,jr),l()()()}if(i&2){let e=c();x("ngStyle",e.getContainerVars()),r(5),g(e.gridHeroOverlay.title?5:-1),r(2),H("",e.gridHeroOverlay.products.length," ",_(8,4,"PROFILE_PAGE.SHOP.PRODUCTS"),""),r(3),I(e.gridHeroOverlay.products)}}function al(i,t){if(i&1){let e=y();a(0,"app-widget-report-dialog",248),R("visibleChange",function(o){f(e);let s=c();return T(s.showReportDialog,o)||(s.showReportDialog=o),h(o)}),l(),a(1,"app-widget-lightbox",249),b("closed",function(){f(e);let o=c();return h(o.handleLightboxClose())}),l()}if(i&2){let e=c();E("visible",e.showReportDialog),x("config",e.reportConfig),r(),x("images",e.lightboxImages)("activeIndex",e.lightboxIndex)("visible",e.lightboxVisible)}}var mi=class i{route=S(Pt);router=S(yt);profileService=S(Ye);seoService=S(St);structuredDataService=S(Qt);platformId=S(q);sanitizer=S(vt);document=S(xt);ngZone=S(st);cdr=S(Ct);loginService=S(Fe);userService=S(Ot);cartService=S(ve);shopTracking=S(nt);userAddressService=S(ni);profile=null;loading=!0;error=null;showQrCode=!1;profileUrl="";showShareModal=!1;showWidgetShareModal=!1;widgetToShare=null;showSubscribeModal=!1;showPromoModal=!1;showCookieModal=!1;showReportDialog=!1;reportConfig={pageUrl:"",reportedUsername:""};linkCopied=!1;headerActionsVisible=!0;headerActionsSentinel;profileWrapper;backgroundLayer;scrollImageWrapper;scrollHandler=null;_imageNaturalSize=null;subscribeEmail="";subscribing=!1;subscribeSuccess=!1;subscribeError="";avatarBroken=!1;loggedInEmail=null;promoPageName="";cookieConsent=null;lightboxImages=[];lightboxIndex=0;lightboxVisible=!1;gridHeroOverlay={visible:!1,title:"",products:[]};socialLinksWithConfig=[];activeView="content";shopProducts=[];shopCollections=[];shopTotal=0;shopWorkspaceId="";shopLoading=!1;shopPage=1;shopActiveCollectionId=null;shopActiveType=null;shopTypeCounts=null;featuredProducts=[];collectionProductsMap={};dynamicProductsMap={};shopProductsMap={};showCartDrawer=!1;selectedProduct=null;showProductDetail=!1;sellerReviewStats={totalReviews:0,averageRating:0};reviewsProduct=null;showReviewsModal=!1;showOrderConfirmation=!1;checkoutLoading=!1;checkoutError="";appUrl=X.app;hasRecentOrder=!1;recentOrderCount=0;showPaymentMethodDialog=!1;availablePaymentMethods=[];isOpenCart=!1;openCartUntil=null;closingCart=!1;cartClosed=!1;checkoutSessionId=null;checkoutUsername=null;pendingOrderInfo=null;pendingBannerDismissed=!1;LINKS_BATCH_SIZE=30;visibleLinksCount=this.LINKS_BATCH_SIZE;allLinksLoaded=!1;loadMoreSentinel;loadMoreObserver=null;get visibleLinks(){return this.profile?.links?this.profile.links.filter(e=>!e.section||e.section==="content").slice(0,this.visibleLinksCount):[]}get shopBlockLinks(){return this.profile?.links?this.profile.links.filter(t=>t.section==="shop"):[]}get hasShopCatalog(){return this.shopBlockLinks.some(t=>t.embedType==="shop-catalog")}subscribedLinks=new Set;subscribingLinks=new Set;openReportDialog(){this.profile&&(this.reportConfig={pageUrl:this.profileUrl,reportedUsername:this.profile.username},this.showReportDialog=!0)}closeCartNow(){return U(this,null,function*(){if(!this.checkoutUsername||!this.checkoutSessionId||this.closingCart)return;this.closingCart=!0;let t=yield this.profileService.closeCartFromCheckout(this.checkoutUsername,this.checkoutSessionId);this.closingCart=!1,t&&(this.cartClosed=!0,this.isOpenCart=!1)})}ngOnInit(){let t=this.route.snapshot.paramMap.get("username");if(!t){this.router.navigate(["/404"]);return}if(M(this.platformId)&&(this.showQrCode=window.innerWidth>=1024,this.checkCookieConsent(),this.detectLoggedInUser()),this.loadProfile(t),M(this.platformId)){if(this.route.snapshot.queryParamMap.get("order")==="success"){this.showOrderConfirmation=!0,this.hasRecentOrder=!0,this.cartService.clearCart(),localStorage.setItem(`houla_recent_order_${t}`,Date.now().toString());let n=parseInt(localStorage.getItem(`houla_order_count_${t}`)||"0",10);this.recentOrderCount=n+1,localStorage.setItem(`houla_order_count_${t}`,this.recentOrderCount.toString()),localStorage.removeItem(`houla_checkout_${t}`);
3let o=this.route.snapshot.queryParamMap.get("session_id");o&&(this.checkoutSessionId=o,this.checkoutUsername=t,this.profileService.getCheckoutEmail(t,o).then(s=>{s&&localStorage.setItem(`houla_buyer_email_${t}`,s)}),this.profileService.getCheckoutInfo(t,o).then(s=>{s.isOpenCart&&(this.isOpenCart=!0,this.openCartUntil=s.openUntil)})),this.router.navigate([],{relativeTo:this.route,queryParams:{v:"shop",order:null,session_id:null},queryParamsHandling:"merge",replaceUrl:!0})}if(!this.hasRecentOrder){let n=localStorage.getItem(`houla_recent_order_${t}`);n&&(Date.now()-parseInt(n,10)<24*60*60*1e3?(this.hasRecentOrder=!0,this.recentOrderCount=parseInt(localStorage.getItem(`houla_order_count_${t}`)||"1",10)):(localStorage.removeItem(`houla_recent_order_${t}`),localStorage.removeItem(`houla_order_count_${t}`)))}}}ngAfterViewInit(){}ngOnDestroy(){this.cleanupScrollListener(),this.cleanupLoadMoreObserver(),this.structuredDataService.removeJsonLd("profile-data")}cleanupScrollListener(){this.scrollHandler&&this.profileWrapper?.nativeElement&&(this.profileWrapper.nativeElement.removeEventListener("scroll",this.scrollHandler),this.scrollHandler=null)}cleanupLoadMoreObserver(){this.loadMoreObserver&&(this.loadMoreObserver.disconnect(),this.loadMoreObserver=null)}setupLoadMoreObserver(){!M(this.platformId)||this.allLinksLoaded||setTimeout(()=>{let t=this.loadMoreSentinel?.nativeElement,e=this.profileWrapper?.nativeElement;!t||!e||this.ngZone.runOutsideAngular(()=>{this.loadMoreObserver=new IntersectionObserver(n=>{n[0]?.isIntersecting&&!this.allLinksLoaded&&this.ngZone.run(()=>this.loadMoreLinks())},{root:e,rootMargin:"400px",threshold:0}),this.loadMoreObserver.observe(t)})})}loadMoreLinks(){!this.profile?.links||this.allLinksLoaded||(this.visibleLinksCount=Math.min(this.visibleLinksCount+this.LINKS_BATCH_SIZE,this.profile.links.length),this.allLinksLoaded=this.visibleLinksCount>=this.profile.links.length,this.cdr.markForCheck(),this.allLinksLoaded&&this.cleanupLoadMoreObserver())}setupHeaderScrollListener(){M(this.platformId)&&setTimeout(()=>{let t=this.profileWrapper?.nativeElement,e=this.headerActionsSentinel?.nativeElement;!t||!e||(this.scrollHandler=()=>{let n=t.getBoundingClientRect().top,s=e.getBoundingClientRect().top>=n+200;s!==this.headerActionsVisible&&this.ngZone.run(()=>{this.headerActionsVisible=s,this.cdr.markForCheck()});let P=this.profile?.backgroundAnimation,w=this.isScrollLayout(),O=w?this.scrollImageWrapper?.nativeElement:this.backgroundLayer?.nativeElement;if(P&&O){let Z=t.scrollTop,le=t.clientHeight*.4,ne=Math.min(Z/le,1),me=this.profile?.backgroundBlur||0;if(P==="scroll-fade")O.style.opacity=(1-ne).toString();else if(P==="scroll-parallax")O.style.opacity=(1-ne).toString(),w&&(O.style.transform=`translateY(${Z*.4}px)`);else if(P==="scroll-blur"){let ce=ne*20,Pe=me+ce;O.style.filter=`blur(${Pe}px)`}else if(P==="scroll-zoom"){let ce=1+ne*.3,Pe=me>0?1.1:1;O.style.transform=`scale(${Pe*ce})`}}},this.ngZone.runOutsideAngular(()=>{t.addEventListener("scroll",this.scrollHandler,{passive:!0})}))})}loadProfile(t){this.profileService.getPublicProfile(t).subscribe({next:e=>{e.links=e.links||[],e.socialLinks=e.socialLinks||[],this.profile=e,this.loading=!1,this.profileUrl=`${X.app}/@${e.username}/bio`,this.prepareSocialLinks(e),this.updateMeta(e),this.recordView(t),this.setupHeaderScrollListener(),this.loadBackgroundImageDimensions(),this.visibleLinksCount=Math.min(this.LINKS_BATCH_SIZE,e.links?.length||0),this.allLinksLoaded=(e.links?.length||0)<=this.LINKS_BATCH_SIZE,this.setupLoadMoreObserver(),this.scrollToWidgetFromFragment(),this.initShopView(e),this.checkPendingOrder(t),this.cdr.markForCheck()},error:e=>{this.loading=!1,e.status===404?this.router.navigate(["/404"]):e.status===403?this.error="Ce profil n'est pas public":this.error="Une erreur est survenue",this.cdr.markForCheck()}})}recordView(t){if(M(this.platformId)){let e=`${X.api}/api/profile/${encodeURIComponent(t)}/hit`,n={type:"view",referrer:document.referrer||null};fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).catch(()=>{})}}initShopView(t){if(!t.shopEnabled)return;this.shopTracking.trackPageView(t.username),this.loadFeaturedProducts(t.username),this.loadCollectionWidgetProducts(t),this.loadDynamicWidgetProducts(t),this.loadShopProductWidgetProducts(t);
3let e=this.route.snapshot.queryParamMap.get("v");e==="shop"?this.activeView="shop":e==="content"?this.activeView="content":this.activeView=t.defaultView||"content";let n=this.route.snapshot.queryParamMap.get("id");n&&this.scrollToWidgetBySlug(t,n),this.activeView==="shop"&&this.hasShopCatalog&&this.loadShopProducts(),this.initBuyerCountry(t.username)}initBuyerCountry(t){if(!M(this.platformId))return;let e=this.profile?.shippingCountries||[];this.loginService.isLoggedIn?this.userAddressService.getAll().subscribe({next:n=>{let o=n.find(s=>s.isDefault&&s.isShipping)||n.find(s=>s.isShipping)||n[0];o?.country?(this.cartService.setDetectedCountry(o.country),this.resolveCountrySelection(o.country,t,e)):this.fetchAndResolveCountry(t,e)},error:()=>{this.fetchAndResolveCountry(t,e)}}):this.fetchAndResolveCountry(t,e)}fetchAndResolveCountry(t,e){return U(this,null,function*(){yield this.cartService.fetchShippingEstimate(t);let n=this.cartService.selectedCountry();n&&(this.cartService.setDetectedCountry(n),e.length>0&&!e.includes(n)&&(this.cartService.setCountryUnsupported(!0),this.cartService.setSelectedCountry("OTHER",t,e)))})}resolveCountrySelection(t,e,n){n.length>0&&!n.includes(t)?this.cartService.setSelectedCountry("OTHER",e,n):this.cartService.setSelectedCountry(t,e,n)}loadFeaturedProducts(t){this.profileService.getFeaturedProducts(t).subscribe({next:e=>{this.featuredProducts=e.products||[]},error:()=>{this.featuredProducts=[]}})}loadCollectionWidgetProducts(t){let e=["shop-collection","shop-carousel","shop-grid-hero","shop-list"],n=new Set;for(let o of t.links||[])e.includes(o.embedType)&&o.metadata?.collectionId&&n.add(o.metadata.collectionId);n.forEach(o=>{this.profileService.getPublicShop(t.username,o,1,12).subscribe({next:s=>{this.collectionProductsMap=G(B({},this.collectionProductsMap),{[o]:s.products||[]}),s.sellerReviewStats&&!this.sellerReviewStats.totalReviews&&(this.sellerReviewStats=s.sellerReviewStats)},error:()=>{}})})}loadDynamicWidgetProducts(t){let e=new Set,o=(t.links||[]).find(P=>P.embedType==="shop-catalog")?.metadata?.sortOrder||"newest";for(let P of t.links||[])["shop-sale","shop-trending","shop-nouveautes","shop-stock-limit","shop-catalog"].includes(P.embedType)&&e.add(P.embedType);let s={"shop-sale":(P,w)=>this.profileService.getSaleProducts(P,w),"shop-trending":(P,w)=>this.profileService.getTrendingProducts(P,w),"shop-nouveautes":(P,w)=>this.profileService.getNewProducts(P,w),"shop-stock-limit":(P,w)=>this.profileService.getLowStockProducts(P,w),"shop-catalog":(P,w)=>this.profileService.getCatalogProducts(P,w,o)};e.forEach(P=>{let w=s[P];w&&w(t.username,12).subscribe({next:O=>{this.dynamicProductsMap=G(B({},this.dynamicProductsMap),{[P]:O.products||[]})},error:()=>{}})})}loadShopProductWidgetProducts(t){let e=new Set;for(let n of t.links||[])n.embedType==="shop-product"&&n.metadata?.productId&&e.add(n.metadata.productId);e.forEach(n=>{this.profileService.getPublicProduct(t.username,n).subscribe({next:o=>{o.product&&(this.shopProductsMap=G(B({},this.shopProductsMap),{[n]:o.product}))},error:()=>{}})})}onFeaturedProductClick(t){this.selectedProduct=t,this.showProductDetail=!0}switchView(t){this.activeView!==t&&(this.activeView=t,this.router.navigate([],{queryParams:{v:t},queryParamsHandling:"merge",replaceUrl:!0}),t==="shop"&&this.hasShopCatalog&&this.shopProducts.length===0&&!this.shopLoading&&this.loadShopProducts())}loadShopProducts(t=!0){this.profile&&(this.shopLoading=!0,t&&(this.shopPage=1,this.shopProducts=[]),this.profileService.getPublicShop(this.profile.username,this.shopActiveCollectionId||void 0,this.shopPage,24,this.shopActiveType||void 0).subscribe({next:e=>{if(t?this.shopProducts=e.products:this.shopProducts=[...this.shopProducts,...e.products],this.shopCollections=e.collections,this.shopTotal=e.total,e.typeCounts&&(this.shopTypeCounts=e.typeCounts,e.typeCounts.live>0&&this.shopActiveType===null)){this.shopActiveType="shop",this.shopLoading=!1,this.loadShopProducts(!0);return}let n=e?.seller?.workspaceId;n&&(this.shopWorkspaceId=n),e.sellerReviewStats&&(this.sellerReviewStats=e.sellerReviewStats),this.cartService.enrichItemsFromProducts(this.shopProducts),this.shopLoading=!1,this.cdr.markForCheck()},error:()=>{this.shopLoading=!1,this.cdr.markForCheck()}}))}onShopCollectionSelected(t){this.shopActiveCollectionId=t,this.loadShopProducts(!0)}onShopTypeSelected(t){this.shopActiveType=t,this.shopActiveCollectionId=null,this.loadShopProducts(!0)}onShopLoadMore(){this.shopPage++,this.loadShopProducts(!1)}onShopProductClicked(t){this.profile&&this.shopTracking.trackProductView(this.profile.username,t.id),this.selectedProduct=t,this.showProductDetail=!0}onProductReviewsClicked(t){this.reviewsProduct=t,this.showReviewsModal=!0}onProductAddToCart(t){if(!this.profile)return;this.shopTracking.trackAddToCart(this.profile.username,t.product.id,t.variant?.id);let e=t.variant?t.variant.salePriceCents??t.variant.priceCents:t.product.salePriceCents??t.product.priceCents,n=t.variant?t.variant.salePriceCents?t.variant.priceCents:void 0:t.product.salePriceCents?t.product.priceCents:void 0;this.cartService.addItem(this.profile.username,{productId:t.product.id,priceCents:e,compareAtPriceCents:n,title:t.product.title,imageUrl:t.product.imageUrl||void 0,currency:t.product.currency||"EUR",variantId:t.variant?.id,options:t.options,productType:t.product.productType,requiresShipping:t.product.requiresShipping},t.quantity),this.openCart()}addProductToCart(t){this.profile&&(this.shopTracking.trackAddToCart(this.profile.username,t.id),this.cartService.addItem(this.profile.username,{productId:t.id,priceCents:t.salePriceCents??t.priceCents,compareAtPriceCents:t.salePriceCents?t.priceCents:void 0,title:t.title,imageUrl:t.imageUrl||void 0,currency:t.currency||"EUR",productType:t.productType,requiresShipping:t.requiresShipping}),this.openCart())}
3onQuickAddToCart(t){this.profile&&(this.shopTracking.trackAddToCart(this.profile.username,t.id),this.cartService.addItem(this.profile.username,{productId:t.id,priceCents:t.salePriceCents??t.priceCents,compareAtPriceCents:t.salePriceCents?t.priceCents:void 0,title:t.title,imageUrl:t.imageUrl||void 0,currency:t.currency||"EUR",productType:t.productType,requiresShipping:t.requiresShipping}),this.openCart())}onBlockAddToCart(t){if(!this.profile)return;let e=t.metadata||{},n=e.productId||t.id;this.shopTracking.trackAddToCart(this.profile.username,n),this.cartService.addItem(this.profile.username,{productId:n,priceCents:parseInt(e.priceCents||"0",10)||0,title:e.productName||t.title||"",imageUrl:e.productImage||void 0,currency:e.currency||"EUR",productType:e.productType||void 0,requiresShipping:e.requiresShipping!=="false"}),this.openCart()}openCart(){this.showCartDrawer=!0,this.profile&&this.cartService.hasItems()&&this.cartService.hasPhysicalItems()&&!this.cartService.countryUnsupported()&&this.cartService.fetchShippingEstimate(this.profile.username,this.cartService.selectedCountry()||void 0)}onCheckoutRequested(t){!this.profile||!M(this.platformId)||(this._pendingSendcloudData=t,this.startCheckoutFlow())}_pendingSendcloudData=null;startCheckoutFlow(){return U(this,null,function*(){if(this.profile)try{let{methods:t}=yield this.profileService.getPaymentMethods(this.profile.username);this.availablePaymentMethods=t||["stripe"],this.availablePaymentMethods.length>1?this.showPaymentMethodDialog=!0:this.initiateCheckout(this.availablePaymentMethods[0])}catch{this.initiateCheckout("stripe")}})}selectPaymentMethod(t){this.showPaymentMethodDialog=!1,this.initiateCheckout(t)}initiateCheckout(t="stripe"){return U(this,null,function*(){if(!this.profile)return;let e=this.cartService.items();if(e.length===0)return;let n=e.reduce((o,s)=>o+s.priceCents*s.quantity,0);this.shopTracking.trackCheckoutStart(this.profile.username,n),this.checkoutLoading=!0,this.checkoutError="";try{let o,s=this.cartService.selectedCountry()||void 0;this.loggedInEmail?o=this.loggedInEmail:M(this.platformId)&&(o=localStorage.getItem(`houla_buyer_email_${this.profile.username}`)||void 0);let P=yield this.profileService.shopCheckout(this.profile.username,e.map(w=>({productId:w.productId,variantId:w.variantId,quantity:w.quantity})),this.cartService.promoCode()||void 0,this.cartService.isLocalPickup()||void 0,s,o,t,void 0,this.shopTracking.getSessionId(),this._pendingSendcloudData?.sendcloudMethodId,this._pendingSendcloudData?.sendcloudPriceCents,this._pendingSendcloudData?.servicePointId,this._pendingSendcloudData?.servicePointAddress);P.checkoutUrl&&M(this.platformId)&&(P.checkoutToken&&localStorage.setItem(`houla_checkout_${this.profile.username}`,P.checkoutToken),window.location.href=P.checkoutUrl)}catch(o){console.error("Checkout failed:",o),this.checkoutLoading=!1,this.checkoutError=o?.error?.message||o?.message||"SHOP.CART.CHECKOUT_ERROR"}})}checkPendingOrder(t){return U(this,null,function*(){if(!M(this.platformId))return;let e=localStorage.getItem(`houla_checkout_${t}`);if(e)try{let{pendingOrder:n}=yield this.profileService.checkPendingOrder(t,e);n?.checkoutUrl?this.pendingOrderInfo=n:localStorage.removeItem(`houla_checkout_${t}`)}catch{}})}dismissPendingBanner(){this.pendingBannerDismissed=!0}resumePendingOrder(){!this.pendingOrderInfo?.checkoutUrl||!M(this.platformId)||(window.location.href=this.pendingOrderInfo.checkoutUrl)}prepareSocialLinks(t){if(!t.socialLinks){this.socialLinksWithConfig=[];return}this.socialLinksWithConfig=t.socialLinks.map(e=>{let n=Yt(e.platform);return{platform:e.platform,url:e.url,label:n?.label||e.platform,icon:n?.icon||"pi-globe",svgIcon:n?.svgIcon?this.sanitizer.bypassSecurityTrustHtml(n.svgIcon):null}})}updateMeta(t){this.seoService.setProfilePageMeta({displayName:t.displayName,username:t.username,bio:t.bio,avatarUrl:t.avatarUrl});let e=t.bio||`Retrouvez tous les liens de ${t.displayName}`,n=t.avatarUrl||void 0;n&&n.includes("=s96-c")&&(n=n.replace("=s96-c","=s512-c")),this.structuredDataService.setProfilePageData({name:t.displayName,username:t.username,description:e,url:`${X.app}/@${t.username}/bio`,image:n,socialLinks:t.socialLinks?.map(o=>({platform:o.platform,url:o.url}))})}trackLinkClick(t){if(!(!this.profile||!M(this.platformId))){if(t.embedType==="shop-product"){this.onBlockAddToCart(t);return}if(t.type==="dedicated"||!t.shortKey){let e={type:"link_click",linkOrderId:t.id||null,referrer:document.referrer||null},n=`${X.api}/api/profile/${encodeURIComponent(this.profile.username)}/hit`;fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),keepalive:!0}
3).catch(()=>{})}}}getThemeClass(){return this.profile?`theme-${this.profile.theme}`:"theme-minimal-light"}getWrapperStyle(){if(!this.profile)return{};if(this.profile.backgroundColor)return{background:this.profile.backgroundColor};let t=ie(this.profile.theme);return t?.backgroundStyle?{background:t.backgroundStyle}:t?.defaultBackgroundColor?{background:t.defaultBackgroundColor}:{background:"linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%)"}}getBackgroundLayerStyle(){if(!this.profile?.backgroundImageUrl)return{};let t=this.profile.backgroundPosition||"center",e=this.profile.backgroundSize||"cover",n=e==="contain"||t==="contain",o={"background-image":`url(${this.profile.backgroundImageUrl})`,"background-size":n?"contain":e==="auto"?"auto":"cover","background-position":n||t==="cover"?"center":t,"background-repeat":"no-repeat"},s=this.profile.backgroundBlur||0;return s>0&&(o.filter=`blur(${s}px)`,o.transform="scale(1.1)"),this.profile.backgroundParallax&&(o["background-attachment"]="fixed"),o}getOverlayStyle(){if(!this.profile)return{};let t=(this.profile.backgroundOverlayOpacity??40)/100,e=ie(this.profile.theme),n=this.profile.backgroundColor||e?.backgroundStyle||e?.defaultBackgroundColor||"#3b82f6",o=w=>{let O=w.replace("#","");return O.length===3?O[0]+O[0]+O[1]+O[1]+O[2]+O[2]:O},s=(w,O)=>{let Z=o(w),le=parseInt(Z.substr(0,2),16),ne=parseInt(Z.substr(2,2),16),me=parseInt(Z.substr(4,2),16);return isNaN(le)||isNaN(ne)||isNaN(me)?`rgba(0, 0, 0, ${O})`:`rgba(${le}, ${ne}, ${me}, ${O})`};if(this.profile.backgroundEffect==="gradient-fade"&&n.startsWith("#")){let w=s(n,1),O=s(n,0),Z=60,le=100;if(((this.profile.backgroundSize||"cover")==="contain"||this.profile.backgroundPosition==="contain")&&this._imageNaturalSize){let ce=this.profileWrapper?.nativeElement;if(ce){let Pe=ce.clientWidth,lt=ce.clientHeight,gi=this._imageNaturalSize.width,ui=this._imageNaturalSize.height,ct=Math.min(Pe*(ui/gi),lt)/lt*100;Z=Math.max(ct-20,5),le=Math.min(ct+5,100)}}return{background:`linear-gradient(to bottom, ${O} 0%, ${O} ${Z}%, ${w} ${le}%)`}}if(n.includes("gradient"))return{background:n.replace(/#([0-9A-Fa-f]{3,8})/g,O=>s(O,t))};let P=`rgba(0, 0, 0, ${t})`;return n.startsWith("#")?P=s(n,t):n.startsWith("rgba")&&(P=n.replace(/rgba\(([^,]+),([^,]+),([^,]+),[^)]+\)/,`rgba($1,$2,$3,${t})`)),{background:P}}isScrollLayout(){return this.profile?.backgroundSize==="scroll"}loadBackgroundImageDimensions(){if(!M(this.platformId))return;let t=this.profile?.backgroundImageUrl;if(!t){this._imageNaturalSize=null;return}let e=new Image;e.onload=()=>{this._imageNaturalSize={width:e.naturalWidth,height:e.naturalHeight}},e.src=t}scrollToWidgetFromFragment(){M(this.platformId)&&setTimeout(()=>{let t=this.route.snapshot.fragment;if(!t||!t.startsWith("widget-"))return;let e=this.document.getElementById(t);e&&(e.scrollIntoView({behavior:"smooth",block:"center"}),e.classList.add("highlight-widget"),setTimeout(()=>{e.classList.remove("highlight-widget")},2e3))},500)}scrollToWidgetBySlug(t,e){if(!M(this.platformId)||!t.links?.length)return;let n=t.links.find(o=>o.slug===e);n&&(this.visibleLinksCount=t.links.length,this.allLinksLoaded=!0,setTimeout(()=>{let o=this.document.getElementById(`widget-${n.id}`);o&&(o.scrollIntoView({behavior:"smooth",block:"center"}),o.classList.add("highlight-widget"),setTimeout(()=>o.classList.remove("highlight-widget"),2e3))},600))}getScrollGradientStyle(){if(!this.profile?.backgroundImageUrl||this.profile.backgroundEffect!=="gradient-fade")return null;let t=ie(this.profile.theme),e=this.profile.backgroundColor||t?.backgroundStyle||t?.defaultBackgroundColor||"#000000";if(!e.startsWith("#"))return null;let n=e.replace("#",""),o=n.length===3?n[0]+n[0]+n[1]+n[1]+n[2]+n[2]:n,s=parseInt(o.substring(0,2),16),P=parseInt(o.substring(2,4),16),w=parseInt(o.substring(4,6),16),O=`rgba(${s}, ${P}, ${w}, 0)`,Z=`rgba(${s}, ${P}, ${w}, 1)`;return{background:`linear-gradient(to bottom, ${O} 0%, ${O} 30%, ${Z} 100%)`}}getProfileStyle(){if(!this.profile)return{};let t=ie(this.profile.theme),e={};return this.profile.backgroundImageUrl?(e.background="transparent",e):this.profile.backgroundColor?(e.background=this.profile.backgroundColor,e):(t?.backgroundSize&&(e["background-size"]=t.backgroundSize),e)}
3hasCustomBackground(){return!!(this.profile?.backgroundColor||this.profile?.backgroundImageUrl)}getThemeTextColor(){return(this.profile?.theme?ie(this.profile.theme):void 0)?.textColor==="dark"?"#1f2937":"#ffffff"}getThemeButtonColor(){return(this.profile?.theme?ie(this.profile.theme):void 0)?.defaultButtonColor||"rgba(255, 255, 255, 0.15)"}getThemeButtonTextColor(){return(this.profile?.theme?ie(this.profile.theme):void 0)?.defaultButtonTextColor||"#ffffff"}getTextStyle(){return this.profile?{color:this.profile.textColor||this.getThemeTextColor()}:{}}getAvatarStyle(){if(!this.profile)return null;let t={};return this.profile.avatarBorder&&this.profile.avatarBorder!=="none"?t.border=this.profile.avatarBorder:t.border="3px solid rgba(255, 255, 255, 0.3)",this.profile.avatarShadow&&this.profile.avatarShadow!=="none"?t["box-shadow"]=this.profile.avatarShadow:t["box-shadow"]="0 4px 12px rgba(0, 0, 0, 0.15)",t}getSocialIconStyle(){if(!this.profile)return{};let t={};t.background=this.profile.buttonColor||this.getThemeButtonColor(),t.color=this.profile.buttonTextColor||this.getThemeButtonTextColor();let e=this.profile.buttonBlur??10;return e>0?(t["backdrop-filter"]=`blur(${e}px)`,t["-webkit-backdrop-filter"]=`blur(${e}px)`):(t["backdrop-filter"]="none",t["-webkit-backdrop-filter"]="none"),t}getContainerVars(){if(!this.profile)return{};let t=this.profile.buttonColor||this.getThemeButtonColor(),e=this.profile.buttonTextColor||this.getThemeButtonTextColor(),n=this.profile.textColor||this.getThemeTextColor();return{gap:`${this.profile.linkSpacing??12}px`,"--bio-link-height":"56px","--bio-link-padding":"0 1rem","--bio-link-font-family":"Inter, system-ui, sans-serif","--bio-btn-bg":t,"--bio-btn-text":e,"--bio-btn-radius":`${this.profile.borderRadius??12}px`,"--bio-btn-opacity":((this.profile.buttonOpacity??100)/100).toString(),"--bio-btn-blur":`${this.profile.buttonBlur??10}px`,"--bio-btn-featured-bg":this.profile.primaryColor||"#3b82f6","--bio-btn-outline-color":this.profile.buttonTextColor||n,"--bio-block-bg":this.hexToRgba(t,.15),"--bio-block-text":this.profile.buttonTextColor||n,"--bio-text-color":n,"--bio-font-size":`${this.profile.fontSize||14}px`,"--bio-secondary-font-size":`${this.profile.secondaryFontSize||12}px`,"--bio-divider-color":n,"--bio-shop-card-bg":this.profile.shopCardBg||this.hexToRgba(t,.15),"--bio-shop-card-text":this.profile.shopCardText||"","--bio-shop-card-blur":`${this.profile.shopCardBlur??this.profile.buttonBlur??10}px`,"--bio-shop-card-opacity":((this.profile.shopCardOpacity??100)/100).toString()}}getLinkStyle(t){return{}}getDominantColor(){if(!this.profile)return"#3b82f6";if(this.profile.primaryColor)return this.profile.primaryColor;if(this.profile.backgroundColor)return this.extractFirstColor(this.profile.backgroundColor);let t=ie(this.profile.theme);return t?t.backgroundStyle?this.extractFirstColor(t.backgroundStyle):t.defaultPrimaryColor:"#3b82f6"}getHeaderActionStyle(){return{color:this.profile?.buttonTextColor||this.getThemeButtonTextColor()}}extractFirstColor(t){let e=t.match(/#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})\b/);return e?e[0]:"#3b82f6"}trackByLink(t,e){return e.id}openShareModal(){this.showShareModal=!0,this.linkCopied=!1}openWidgetShareModal(t){this.widgetToShare=t,this.showWidgetShareModal=!0}getWidgetShareUrl(t){return t.slug&&t.section?`${this.profileUrl}?v=${t.section}&id=${t.slug}`:`${this.profileUrl}#widget-${t.id}`}openSubscribeModal(){this.showSubscribeModal=!0,this.subscribeEmail=this.loggedInEmail||"",this.subscribing=!1,this.subscribeSuccess=!1,this.subscribeError=""}closeSubscribeModal(){this.showSubscribeModal=!1}onAvatarError(){this.avatarBroken=!0}detectLoggedInUser(){this.loginService.isLoggedIn&&this.userService.getMe().then(t=>{t.subscribe({next:e=>{e?.email&&(this.loggedInEmail=e.email)},error:()=>{this.loggedInEmail=null}})}).catch(()=>{this.loggedInEmail=null})}submitSubscribe(){if(!this.profile||!M(this.platformId))return;if(!this.subscribeEmail||!this.subscribeEmail.includes("@")){this.subscribeError="EMAIL_INVALID";return}if(this.subscribing)return;this.subscribing=!0,this.subscribeError="";let t=this.profile.username,e=`${X.api}/api/profile/${encodeURIComponent(t)}/subscribe`;fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:this.subscribeEmail,source:"page-subscribe"})}).then(n=>{this.subscribing=!1,n.ok?this.subscribeSuccess=!0:n.json().then(o=>{this.subscribeError=o?.message||"ERROR"}).catch(()=>{this.subscribeError="ERROR"})}).catch(()=>{this.subscribing=!1,this.subscribeError="ERROR"})}copyProfileLink(){M(this.platformId)&&navigator.clipboard.writeText(this.profileUrl).then(()=>{this.linkCopied=!0,setTimeout(()=>this.linkCopied=!1,2e3)})}shareOnTwitter(){let t=`D\xE9couvrez le profil de ${this.profile?.displayName} sur Hou.la`,e=`https://twitter.com/intent/tweet?text=${encodeURIComponent(t)}&url=${encodeURIComponent(this.profileUrl)}`;this.openShareWindow(e)}shareOnFacebook(){let t=`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(this.profileUrl)}`;this.openShareWindow(t)}shareOnWhatsApp(){let t=`D\xE9couvrez ${this.profile?.displayName} : ${this.profileUrl}`,e=`https://wa.me/?text=${encodeURIComponent(t)}`;this.openShareWindow(e)}shareOnLinkedIn(){let t=`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(this.profileUrl)}`;this.openShareWindow(t)}shareOnTelegram(){let t=`D\xE9couvrez ${this.profile?.displayName}`,e=`https://t.me/share/url?url=${encodeURIComponent(this.profileUrl)}&text=${encodeURIComponent(t)}`;this.openShareWindow(e)}shareByEmail(){let t=`D\xE9couvrez le profil de ${this.profile?.displayName}`,e=`Je te recommande ce profil : ${this.profileUrl}`;window.location.href=`mailto:?subject=${encodeURIComponent(t)}&body=${encodeURIComponent(e)}`}shareOnMessenger(){let t=`https://www.facebook.com/dialog/send?link=${encodeURIComponent(this.profileUrl)}&app_id=966242223397117&redirect_uri=${encodeURIComponent(this.profileUrl)}`;this.openShareWindow(t)}shareOnSnapchat(){let t=`https://www.snapchat.com/scan?attachmentUrl=${encodeURIComponent(this.profileUrl)}`;this.openShareWindow(t)}openShareWindow(t){M(this.platformId)&&window.open(t,"_blank","width=600,height=400")}openPromoModal(){this.promoPageName="",this.showPromoModal=!0}closePromoModal(){this.showPromoModal=!1}onPromoPageNameChange(t){this.promoPageName=t.toLowerCase().replace(/[^a-z0-9-]/g,"").replace(/--+/g,"-").replace(/^-/,"")}goToSignup(){let t=this.promoPageName.trim();t&&(this.router.navigate(["/signup"],{queryParams:{pageName:t}}),this.closePromoModal())}checkCookieConsent(){if(!M(this.platformId))return;let t=localStorage.getItem("houla_cookie_consent");t&&(this.cookieConsent=JSON.parse(t))}openCookieModal(){this.showCookieModal=!0,this.cookieConsent||(this.cookieConsent={necessary:!0,performance:!0,functional:!0,advertising:!1})}saveCookieConsent(){!M(this.platformId)||!this.cookieConsent||(localStorage.setItem("houla_cookie_consent",JSON.stringify(this.cookieConsent)),this.showCookieModal=!1)}acceptAllCookies(){this.cookieConsent={necessary:!0,performance:!0,functional:!0,advertising:!0},this.saveCookieConsent()}rejectNonEssentialCookies(){this.cookieConsent={necessary:!0,performance:!1,functional:!1,advertising:!1},this.saveCookieConsent()}getBlockStyle(){return{}}handleEmailSignup(t,e){if(!e||!e.includes("@")||!this.profile||!M(this.platformId)||this.subscribingLinks.has(t.id))return;this.subscribingLinks.add(t.id),this.trackLinkClick(t);let n=this.profile.username,o=`${X.api}/api/profile/${encodeURIComponent(n)}/subscribe`;fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,source:"email-signup",linkId:t.id})}).then(P=>{this.subscribingLinks.delete(t.id),P.ok&&this.subscribedLinks.add(t.id)}).catch(()=>{this.subscribingLinks.delete(t.id)});let s=t.metadata?.webhookUrl;s&&fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,source:"houla-bio",linkId:t.id})}).catch(()=>{})}getEmailSignupState(t){return this.subscribedLinks.has(t.id)?"subscribed":this.subscribingLinks.has(t.id)?"submitting":"idle"}handleContentUnlocked(t){let e=t.metadata?.lockedUrl||t.url;e&&M(this.platformId)&&(this.trackLinkClick(t),window.open(e,"_blank"))}handleLightboxOpen(t){M(this.platformId)&&t.images?.length&&(this.lightboxImages=t.images,this.lightboxIndex=t.index,this.lightboxVisible=!0)}handleLightboxClose(){this.lightboxVisible=!1,this.lightboxImages=[],this.lightboxIndex=0}handleGridHeroOverlayOpen(t){M(this.platformId)&&t.products?.length&&(this.gridHeroOverlay={visible:!0,title:t.title,products:t.products})}closeGridHeroOverlay(){this.gridHeroOverlay={visible:!1,title:"",products:[]}}getOverlayDiscountPercent(t){return!t.salePriceCents||!t.priceCents?0:Math.round((1-t.salePriceCents/t.priceCents)*100)}getOverlayDisplayPrice(t){let e=t.salePriceCents??t.priceCents;if(t.variants?.length){let n=t.variants.filter(o=>o.isActive);n.length>0&&(e=Math.min(...n.map(o=>o.salePriceCents??o.priceCents)))}return e?this.formatOverlayPrice(e,t.currency):""}getOverlayComparePrice(t){if(t.variants?.length){let e=t.variants.filter(o=>o.isActive);return e.filter(o=>o.salePriceCents&&o.salePriceCents<o.priceCents).length>0?this.formatOverlayPrice(Math.min(...e.map(o=>o.priceCents)),t.currency):""}return t.salePriceCents&&t.salePriceCents<t.priceCents?this.formatOverlayPrice(t.priceCents,t.currency):""}formatOverlayPrice(t,e){let n=t/100;try{return new Intl.NumberFormat("fr-FR",{style:"currency",currency:e||"EUR",minimumFractionDigits:n%1===0?0:2,maximumFractionDigits:2}).format(n)}catch{return`${n.toFixed(2)} \u20AC`}}onOverlayAddToCart(t,e){t.stopPropagation(),e.options?.length&&e.variants?.length?this.onFeaturedProductClick(e):this.onQuickAddToCart(e)}getDividerStyle(){return{}}hexToRgba(t,e){if(!t)return`rgba(255, 255, 255, ${e})`;if(t.startsWith("rgba"))return t.replace(/,\s*[\d.]+\)/,`, ${e})`);if(t.startsWith("rgb("))return t.replace("rgb(","rgba(").replace(")",`, ${e})`);if(t.includes("gradient")){let w=t.match(/#[0-9a-fA-F]{3,8}/);return w?this.hexToRgba(w[0],e):`rgba(255, 255, 255, ${e})`}if(!t.startsWith("#"))return`rgba(255, 255, 255, ${e})`;let n=t.replace("#",""),o=parseInt(n.substring(0,2),16),s=parseInt(n.substring(2,4),16),P=parseInt(n.substring(4,6),16);return`rgba(${o}, ${s}, ${P}, ${e})`}copyToClipboard(t){!M(this.platformId)||!t||navigator.clipboard.writeText(t)}
3applyPromoToCart(t){return U(this,null,function*(){!this.profile||!t||(yield this.cartService.applyPromoCode(t.trim().toUpperCase(),this.profile.username),this.openCart())})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=j({type:i,selectors:[["app-view-me-profil"]],viewQuery:function(e,n){if(e&1&&(oe(Er,5),oe(Tr,5),oe(Rr,5),oe(Vr,5),oe(Ar,5)),e&2){let o;re(o=ae())&&(n.headerActionsSentinel=o.first),re(o=ae())&&(n.profileWrapper=o.first),re(o=ae())&&(n.backgroundLayer=o.first),re(o=ae())&&(n.scrollImageWrapper=o.first),re(o=ae())&&(n.loadMoreSentinel=o.first)}},decls:11,vars:9,consts:[["profileWrapper",""],["headerActionsSentinel",""],["backgroundLayer",""],["scrollImageWrapper",""],["loadMoreSentinel",""],["footer",""],[1,"profile-wrapper"],[1,"error-page"],[3,"visible","username","workspaceId","checkoutLoading","checkoutError","localPickupEnabled","localPickupAddress","localPickupInstructions","shippingCountries","openCartEnabled","shippingMode"],["styleClass","payment-method-dialog",3,"visible","modal","closable","style","showHeader"],[3,"visible","modal","closable","style","header"],[1,"grid-hero-overlay",3,"ngStyle"],[1,"profile-page","theme-minimal-light"],[1,"loading-container"],["role","status","aria-label","Loading",1,"css-spinner"],[1,"mt-3"],[1,"error-gradient-bg"],[1,"error-gradient-layer","error-gradient-1"],[1,"error-gradient-layer","error-gradient-2"],[1,"error-gradient-layer","error-gradient-3"],[1,"error-content"],["routerLink","/",1,"error-logo-link"],["src","assets/images/hou.la-logo-light.svg","alt","Hou.la","width","907","height","390",1,"error-logo"],[1,"error-icon-wrapper"],[1,"pi","pi-lock"],[1,"pi","pi-exclamation-circle"],[1,"error-title"],[1,"error-subtitle"],[1,"error-cta-group"],["routerLink","/",1,"error-btn-cta","error-btn-cta-primary"],[1,"pi","pi-home"],["routerLink","/","fragment","generator",1,"error-btn-cta","error-btn-cta-outline"],[1,"pi","pi-link"],[1,"error-promo-section"],[1,"error-promo-title"],[1,"error-promo-subtitle"],[1,"error-feature-pills"],[1,"error-feature-pill"],[1,"pi","pi-qrcode"],[1,"pi","pi-user"],[1,"pi","pi-chart-bar"],["routerLink","/creation-de-compte",1,"error-btn-cta-accent"],[1,"pi","pi-user-plus"],[1,"profile-wrapper",3,"ngStyle"],[1,"profile-page",3,"ngClass","ngStyle"],[1,"profile-header-actions"],[1,"header-action-btn","promo-btn",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","22","height","10","viewBox","0 0 511 232"],["fill","#333333","fill-rule","evenodd","d","M3000.84,882.084c10.31,14.507,30.54,47.716,30.54,47.716s-44,58.924-120.25,36.264S2821.47,864,2834.79,821.007s53.06-86.627,120.24-80.162c61.34,5.9,91.61,66.8,91.61,66.8s49.8,75.828,53.45,80.163,28.47,40.655,70.62,26.72c35.53-11.748,36.26-45.807,36.26-45.807V739.57h51.53s0.74,126.445,0,136.788-15.43,80.675-83.98,91.614c-66.17,10.176-102.79-30.564-114.52-47.716s-70.61-104.975-70.61-104.975-31.48-40.278-80.17-13.36c-36.65,20.264-27.67,64.493-22.9,80.163,5.79,14.988,28.02,50.835,78.25,34.355C2990.27,904.888,2991.81,895.946,3000.84,882.084Zm62.98-99.249,32.45,49.624,30.54-45.807s8.23-18.838-11.45-32.447-32.45,0-32.45,0Zm248.12,131.878a28.63,28.63,0,1,1-28.62,28.63A28.625,28.625,0,0,1,3311.94,914.713Z","transform","translate(-2830 -740)"],[1,"header-actions-right"],[1,"header-action-btn","subscribe-btn",3,"click"],["width","20","height","20","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2"],["d","M18 8A6 6 0 006 8c0 7-3 9-3 9h18s-3-2-3-9"],["d","M13.73 21a2 2 0 01-3.46 0"],[1,"header-action-btn","share-btn",3,"click"],["d","M4 12v8a2 2 0 002 2h12a2 2 0 002-2v-8"],["points","16,6 12,2 8,6"],["x1","12","y1","2","x2","12","y2","15"],[1,"background-noise-layer"],[1,"scroll-bg-image-wrapper"],[1,"profile-container"],[1,"profile-header"],[1,"avatar-wrapper"],[1,"profile-name",3,"ngStyle"],[1,"profile-username",3,"ngStyle"],[1,"profile-bio",3,"ngStyle"],[1,"social-icons"],[1,"header-actions-sentinel"],[1,"bio-view-switch",3,"bio-view-switch--shop-active"],[1,"pending-banner"],[1,"cart-fab",3,"cart-fab--empty"],[1,"profile-footer",3,"ngStyle"],[1,"footer-links"],[1,"footer-link",3,"click"],[1,"footer-separator"],["routerLink","/privacy",1,"footer-link"],["routerLink","/terms-of-use",1,"footer-link"],[1,"background-layer",3,"ngStyle"],[1,"background-overlay",3,"ngStyle"],["width","1200","height","630",1,"scroll-bg-image",3,"src","alt"],[1,"scroll-bg-gradient",3,"ngStyle"],[3,"avatarUrl","displayName","size","customStyle"],[1,"verified-badge",3,"title"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg","width","20","height","20",2,"width","20px","height","20px","flex-shrink","0"],["id","verifiedGrad","x1","0%","y1","0%","x2","100%","y2","100%"],["offset","0%","stop-color","#1d9bf0"],["offset","100%","stop-color","#6366f1"],["fill","url(#verifiedGrad)","d","M22.5 12.5c0-1.58-.875-2.95-2.148-3.6.154-.435.238-.905.238-1.4 0-2.21-1.71-3.998-3.818-3.998-.47 0-.92.084-1.336.25C14.818 2.415 13.51 1.5 12 1.5s-2.816.917-3.437 2.25c-.415-.165-.866-.25-1.336-.25-2.11 0-3.818 1.79-3.818 4 0 .494.083.964.237 1.4-1.272.65-2.147 2.018-2.147 3.6 0 1.495.782 2.798 1.942 3.486-.02.17-.032.34-.032.514 0 2.21 1.708 4 3.818 4 .47 0 .92-.086 1.335-.25.62 1.334 1.926 2.25 3.437 2.25 1.512 0 2.818-.916 3.437-2.25.415.163.865.248 1.336.248 2.11 0 3.818-1.79 3.818-4 0-.174-.012-.344-.033-.513 1.158-.687 1.943-1.99 1.943-3.484z"],["fill","#ffffff","d","M10.884 16.834a.9.9 0 0 1-.625-.252l-.115-.094-2.415-2.415a.75.75 0 0 1 1.06-1.06l1.77 1.767 3.825-5.74a.75.75 0 0 1 1.25.833l-4.334 6.5a.75.75 0 0 1-.625.334l.209.127z"],["target","_blank","rel","noopener noreferrer",1,"social-icon",3,"href","title","ngStyle"],[1,"social-svg",3,"innerHTML"],[3,"class"],[1,"bio-view-switch"],[1,"bio-view-switch__indicator"],[1,"bio-view-switch__tab",3,"click"],[1,"profile-links",3,"ngStyle"],[1,"empty-links",3,"ngStyle"],[3,"link","linkStyle","textStyle","blockStyle","dividerStyle","previewMode","emailSignupState","featuredProducts","collectionProductsMap","dynamicProductsMap","shopProductsMap"],[1,"load-more-sentinel"],[3,"linkClicked","emailSignup","contentUnlocked","copyRequest","applyPromoToCart","lightboxOpened","shareRequested","featuredProductClicked","quickAddToCart","gridHeroOverlayOpened","link","linkStyle","textStyle","blockStyle","dividerStyle","previewMode","emailSignupState","featuredProducts","collectionProductsMap","dynamicProductsMap","shopProductsMap"],[3,"products","collections","total","loading","textStyle","title","thumbnailUrl","showTitle","sellerReviewStats","typeCounts"],[3,"link","linkStyle","textStyle","blockStyle","dividerStyle","previewMode","featuredProducts","collectionProductsMap","dynamicProductsMap","shopProductsMap"],[3,"collectionSelected","typeSelected","loadMore","productClicked","quickAddToCart","reviewsClicked","products","collections","total","loading","textStyle","title","thumbnailUrl","showTitle","sellerReviewStats","typeCounts"],[3,"linkClicked","copyRequest","applyPromoToCart","featuredProductClicked","quickAddToCart","productReviewsClicked","gridHeroOverlayOpened","link","linkStyle","textStyle","blockStyle","dividerStyle","previewMode","featuredProducts","collectionProductsMap","dynamicProductsMap","shopProductsMap"],[1,"pending-banner__dismiss",3,"click"],[1,"pi","pi-times"],[1,"pending-banner__inner"],[1,"pending-banner__icon-wrap"],[1,"pi","pi-shopping-cart"],[1,"pending-banner__body"],[1,"pending-banner__text"],[1,"pending-banner__cta",3,"click"],[1,"pi","pi-credit-card"],[1,"cart-fab",3,"click"],[1,"cart-fab__badge"],[1,"footer-cta",3,"click"],[1,"pi","pi-arrow-right","footer-cta-arrow"],["routerLink","/",1,"branding-link",3,"title"],[1,"branding-text"],[1,"qr-code-container",3,"qr-code-container--left"],[1,"qr-code-container"],[1,"qr-code-card"],[3,"qrdata","width","errorCorrectionLevel","margin","cssClass","elementType","alt","ariaLabel"],[1,"qr-code-label"],["target","_blank",1,"qr-code-link",3,"href"],[3,"visibleChange","visible","shareUrl","displayName","avatarUrl","backgroundImageUrl","bannerStyle","avatarStyle","shortUrl","showPromoSection"],[3,"visible","shareUrl","displayName","avatarUrl","backgroundImageUrl","bannerStyle","avatarStyle","shortUrl","itemTitle","showPromoSection"],["styleClass","subscribe-modal",3,"visibleChange","visible","modal","dismissableMask","draggable","resizable","showHeader"],[1,"subscribe-content"],[1,"subscribe-success"],["styleClass","promo-modal",3,"visibleChange","visible","modal","dismissableMask","draggable","resizable","showHeader"],[1,"promo-banner"],[1,"promo-close",3,"click"],[1,"promo-phone"],[1,"promo-phone-notch"],[1,"promo-phone-screen"],[1,"promo-phone-avatar"],[1,"promo-phone-name"],[1,"promo-phone-links"],[1,"promo-phone-link"],[1,"promo-social-icons"],[1,"promo-social-icon","instagram"],[1,"pi","pi-instagram"],[1,"promo-social-icon","tiktok"],["viewBox","0 0 24 24","fill","currentColor","width","14","height","14"],["d","M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5 20.1a6.34
36.34 0 0 0 10.86-4.43v-7a8.16 8.16 0 0 0 4.77 1.52v-3.4a4.85 4.85 0 0 1-1-.1z"],[1,"promo-social-icon","youtube"],[1,"pi","pi-youtube"],[1,"promo-social-icon","twitter"],["viewBox","0 0 24 24","fill","currentColor","width","12","height","12"],["d","M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"],[1,"promo-body"],[1,"promo-title"],[1,"promo-description"],[1,"promo-claim"],[1,"promo-claim-label"],[1,"promo-claim-input-wrapper"],[1,"promo-claim-prefix"],["type","text","maxlength","60","autocomplete","off","spellcheck","false",1,"promo-claim-input",3,"ngModelChange","keydown.enter","ngModel","placeholder"],["pButton","",1,"p-button-lg","promo-cta",3,"click"],[1,"pi","pi-arrow-right"],[1,"promo-features"],[1,"promo-feature"],[1,"pi","pi-bolt"],[1,"promo-feature-text"],[1,"pi","pi-palette"],[1,"pi","pi-chart-line"],["routerLink","/",1,"promo-learn-more",3,"click"],["styleClass","cookie-modal",3,"visibleChange","visible","modal","dismissableMask","draggable","resizable","header"],[1,"cookie-intro"],[1,"cookie-options"],[1,"cookie-actions"],["pButton","",1,"p-button-outlined",3,"click","label"],["pButton","",3,"click","label"],[3,"visibleChange","visible","shareUrl","displayName","avatarUrl","backgroundImageUrl","bannerStyle","avatarStyle","shortUrl","itemTitle","showPromoSection"],[1,"subscribe-success-icon"],[1,"pi","pi-check-circle"],[1,"subscribe-done-btn",3,"click"],[1,"subscribe-avatar-wrapper",3,"avatarUrl","displayName","size","customStyle"],[1,"subscribe-title"],[1,"subscribe-desc"],[1,"subscribe-form"],[1,"subscribe-prefilled"],["type","email",1,"subscribe-input",3,"ngModel","placeholder","disabled"],[1,"subscribe-error"],[1,"subscribe-submit-btn",3,"click","disabled"],[1,"pi","pi-spinner","pi-spin"],[1,"subscribe-privacy"],[1,"pi","pi-check-circle",2,"color","var(--green-500)","margin-right","6px"],["type","email",1,"subscribe-input",3,"ngModelChange","keyup.enter","ngModel","placeholder","disabled"],[1,"cookie-option"],[1,"cookie-option-header"],[1,"cookie-option-title"],[1,"cookie-always-on"],[1,"cookie-option-desc"],[1,"cookie-toggle"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"cookie-toggle-slider"],[3,"visibleChange","checkoutRequested","visible","username","workspaceId","checkoutLoading","checkoutError","localPickupEnabled","localPickupAddress","localPickupInstructions","shippingCountries","openCartEnabled","shippingMode"],[3,"visibleChange","addToCart","product","visible","processingDays","shopName","shopAvatarUrl","sellerAverageRating","sellerReviewCount"],[3,"visibleChange","product","visible"],["styleClass","payment-method-dialog",3,"visibleChange","visible","modal","closable","showHeader"],[1,"text-center","py-3"],[1,"mb-3"],[1,"pi","pi-wallet",2,"font-size","2rem","color","var(--p-primary-color)"],[1,"fw-bold","mb-2"],[1,"text-muted","small","mb-4"],[1,"d-flex","flex-column","gap-2"],["type","button",1,"payment-method-btn"],["type","button",1,"payment-method-btn",3,"click"],[1,"pi","pi-credit-card","me-2"],[3,"visibleChange","visible","modal","closable","header"],[1,"pi","pi-check-circle",2,"font-size","3rem","color","var(--p-primary-color)"],[1,"mt-3","mb-0"],[1,"mt-3","p-3",2,"background","#eff6ff","border","1px solid #93c5fd","border-radius","8px"],[1,"mt-3","p-3",2,"background","#f0fdf4","border","1px solid #4ade80","border-radius","8px"],[1,"fw-bold","mb-1",2,"color","#1e40af","font-size","0.95rem"],[1,"pi","pi-truck","me-2"],[1,"mb-0","small",2,"color","#1e3a5f","line-height","1.5"],[1,"mt-2","small","fw-semibold","d-flex","align-items-center","gap-1",2,"color","#1e40af"],[1,"pi","pi-clock",2,"font-size","0.8rem"],[1,"fw-semibold",2,"color","#166534"],[1,"pi","pi-check","me-2"],[1,"d-flex","flex-column","gap-2","w-100"],["icon","pi pi-shopping-bag","severity","success","styleClass","w-100",3,"onClick","label"],["icon","pi pi-lock","severity","secondary","styleClass","w-100",3,"label","outlined","loading"],["routerLink","/studio/purchases",1,"text-center","small","mt-1",2,"color","#6b7280","text-decoration","underline","cursor","pointer"],["icon","pi pi-lock","severity","secondary","styleClass","w-100",3,"onClick","label","outlined","loading"],[1,"grid-hero-overlay",3,"click","ngStyle"],[1,"grid-hero-overlay-content",3,"click"],[1,"grid-hero-overlay-close",3,"click"],[1,"grid-hero-overlay-header"],[1,"grid-hero-overlay-title"],[1,"grid-hero-overlay-count"],[1,"grid-hero-overlay-grid"],[1,"grid-hero-overlay-card"],[1,"grid-hero-overlay-card",3,"click"],[1,"grid-hero-overlay-card-image"],["loading","lazy","width","300","height","300",3,"src","alt"],[1,"grid-hero-overlay-card-no-image"],[1,"grid-hero-overlay-badge"],[1,"grid-hero-overlay-card-info"],[1,"grid-hero-overlay-card-title"],[1,"grid-hero-overlay-card-price"],[1,"grid-hero-overlay-card-btn",3,"click"],[1,"pi","pi-box"],[1,"grid-hero-overlay-price-current"],[1,"grid-hero-overlay-price-compare"],[3,"visibleChange","visible","config"],[3,"closed","images","activeIndex","visible"]],template:function(e,n){e&1&&(C(0,Yr,7,3,"div",6)(1,Kr,57,32,"div",7)(2,za,67,56)(3,Fa,1,12,"app-widget-cart-drawer",8)(4,Ua,2,9)(5,Na,12,14,"p-dialog",9)(6,Qa,11,14,"p-dialog",10)(7,rl,12,6,"div",11)(8,al,2,5),Re(9,8,Dr),Ae()),e&2&&(g(n.loading?0:-1),r(),g(n.error&&!n.loading?1:-1),r(),g(n.profile&&!n.loading&&!n.error?2:-1),r(),g(n.profile!=null&&n.profile.shopEnabled?3:-1),r(),g(n.profile!=null&&n.profile.shopEnabled?4:-1),r(),g(n.showPaymentMethodDialog?5:-1),r(),g(n.showOrderConfirmation?6:-1),r(),g(n.gridHeroOverlay.visible?7:-1),r(2),Ve(n.showReportDialog||n.lightboxVisible))},dependencies:[Y,J,Be,We,we,be,te,K,ee,Ge,ii,Q,N,ei,at,Je,et,tt,it],styles:['.profile-wrapper[_ngcontent-%COMP%]{position:fixed;inset:0;display:flex;justify-content:center;align-items:flex-start;padding:0;overflow-y:auto;overflow-x:hidden;z-index:10}@media (min-width: 768px){.profile-wrapper[_ngcontent-%COMP%]{padding:50px 2rem 2rem}}.profile-page[_ngcontent-%COMP%]{width:100%;min-height:100%;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;padding:2rem 1rem;position:relative;z-index:2;transition:background .3s ease;overflow:hidden}.profile-page.scroll-layout[_ngcontent-%COMP%]{padding-top:0;padding-left:0;padding-right:0}.profile-page.scroll-layout[_ngcontent-%COMP%] .profile-container[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}@media (min-width: 768px){.profile-page[_ngcontent-%COMP%]{width:100%;max-width:580px;min-height:auto;border-radius:1.5rem;padding:2.5rem 2rem;box-shadow:0 25px 50px -12px #00000040,0 0 0 9999px #0003;margin-top:0;margin-bottom:auto}.profile-page.scroll-layout[_ngcontent-%COMP%]{padding-top:0;padding-left:0;padding-right:0}.profile-page.scroll-layout[_ngcontent-%COMP%] .profile-container[_ngcontent-%COMP%]{padding-left:2rem;padding-right:2rem}}.profile-page[_ngcontent-%COMP%] .background-layer[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:0;border-radius:inherit}.profile-page[_ngcontent-%COMP%] .background-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1;border-radius:inherit}.profile-page[_ngcontent-%COMP%] .background-noise-layer[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:2;border-radius:inherit;pointer-events:none;opacity:.04;mix-blend-mode:overlay;background-image:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PScwIDAgNTEyIDUxMicgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KICA8ZmlsdGVyIGlkPSdub2lzZUZpbHRlcic+CiAgICA8ZmVUdXJidWxlbmNlIAogICAgICB0eX
3BlPSdmcmFjdGFsTm9pc2UnIAogICAgICBiYXNlRnJlcXVlbmN5PScwLjcnCiAgICAgIG51bU9jdGF2ZXM9JzMnIAogICAgICBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+CiAgICA8ZmVDb2xvck1hdHJpeCBpbj0idHVyYnVsZW5jZSIgdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPgoKICAgIDxmZUNvbXBvbmVudFRyYW5zZmVyPgogICAgICA8ZmVGdW5jUiB0eXBlPSJkaXNjcmV0ZSIgdGFibGVWYWx1ZXM9IjAgMSIgLz4KICAgICAgPGZlRnVuY0cgdHlwZT0iZGlzY3JldGUiIHRhYmxlVmFsdWVzPSIwIDEiIC8+CiAgICAgIDxmZUZ1bmNCIHR5cGU9ImRpc2NyZXRlIiB0YWJsZVZhbHVlcz0iMCAxIiAvPgogICAgPC9mZUNvbXBvbmVudFRyYW5zZmVyPgogIDwvZmlsdGVyPgogIAogIDxyZWN0IHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnIGZpbHRlcj0ndXJsKCNub2lzZUZpbHRlciknLz4KPC9zdmc+);background-size:512px 512px;background-repeat:repeat}.profile-page[_ngcontent-%COMP%] .scroll-bg-image-wrapper[_ngcontent-%COMP%]{width:100%;position:relative;z-index:2;flex-shrink:0}.profile-page[_ngcontent-%COMP%] .scroll-bg-image[_ngcontent-%COMP%]{width:100%;height:auto;display:block;object-fit:contain;border-radius:inherit}.profile-page[_ngcontent-%COMP%] .scroll-bg-gradient[_ngcontent-%COMP%]{position:absolute;left:0;right:0;bottom:-1px;height:70%;pointer-events:none;border-radius:inherit}.profile-page.has-custom-bg[_ngcontent-%COMP%]{background:transparent!important}.profile-page.theme-minimal-light[_ngcontent-%COMP%]{background:#fff;color:#1f2937}.profile-page.theme-minimal-dark[_ngcontent-%COMP%]{background:#111827;color:#f9fafb}.profile-page.theme-minimal-dark[_ngcontent-%COMP%] .branding-text[_ngcontent-%COMP%]{opacity:.7}.profile-page.theme-gradient-sunset[_ngcontent-%COMP%]{background:linear-gradient(135deg,#f97316,#ec4899);color:#fff}.profile-page.theme-gradient-ocean[_ngcontent-%COMP%]{background:linear-gradient(135deg,#3b82f6,#06b6d4);color:#fff}.profile-page.theme-gradient-forest[_ngcontent-%COMP%]{background:linear-gradient(135deg,#22c55e,#10b981);color:#fff}.profile-page.theme-gradient-purple[_ngcontent-%COMP%]{background:linear-gradient(135deg,#8b5cf6,#6366f1);color:#fff}.profile-page.theme-gradient-rose[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ec4899,#be185d);color:#fff}.profile-page.theme-gradient-gold[_ngcontent-%COMP%]{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff}.profile-page.theme-gradient-midnight[_ngcontent-%COMP%]{background:linear-gradient(135deg,#1e1b4b,#312e81);color:#fff}.profile-page.theme-neon-glow[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0f0f23,#1a1a3e);color:#0f8}.profile-page.theme-glassmorphism[_ngcontent-%COMP%]{background:#ffffff1a;backdrop-filter:blur(20px);color:#fff;border:1px solid rgba(255,255,255,.2)}.profile-page.theme-aurora[_ngcontent-%COMP%]{background:linear-gradient(135deg,#0c4a6e,#7c3aed,#ec4899);color:#fff}.profile-page.theme-candy[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ff6b9d,#c084fc,#60a5fa);color:#fff}.profile-page.theme-sunset-beach[_ngcontent-%COMP%]{background:linear-gradient(135deg,#fb923c,#f472b6,#a78bfa);color:#fff}.profile-page.theme-monochrome[_ngcontent-%COMP%]{background:#18181b;color:#fafafa}.profile-page.theme-pattern-dots[_ngcontent-%COMP%], .profile-page.theme-pattern-waves[_ngcontent-%COMP%], .profile-page.theme-pattern-geometric[_ngcontent-%COMP%], .profile-page.theme-pattern-stripes[_ngcontent-%COMP%], .profile-page.theme-pattern-gri
3d[_ngcontent-%COMP%], .profile-page.theme-pattern-confetti[_ngcontent-%COMP%]{color:#1f2937}.profile-container[_ngcontent-%COMP%]{width:100%;max-width:500px;display:flex;flex-direction:column;align-items:center;flex:1;position:relative;z-index:2}@media (max-width: 480px){.profile-page[_ngcontent-%COMP%]{padding:1.5rem .75rem}.profile-name[_ngcontent-%COMP%]{font-size:1.25rem}.profile-bio[_ngcontent-%COMP%]{font-size:.9rem}.profile-link[_ngcontent-%COMP%]{height:48px;min-height:48px;max-height:48px;font-size:.9rem}.link-thumbnail-wrapper[_ngcontent-%COMP%]{width:48px;height:48px;min-width:48px}.social-icon[_ngcontent-%COMP%]{width:2.5rem;height:2.5rem}.social-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.1rem}.social-icon[_ngcontent-%COMP%] .social-svg[_ngcontent-%COMP%]{width:1.1rem;height:1.1rem}}.loading-container[_ngcontent-%COMP%], .error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;text-align:center}.loading-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .error-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:500}.css-spinner[_ngcontent-%COMP%]{width:50px;height:50px;border:4px solid rgba(0,0,0,.1);border-top-color:#667eea;border-radius:50%;animation:_ngcontent-%COMP%_css-spin .8s linear infinite}@keyframes _ngcontent-%COMP%_css-spin{to{transform:rotate(360deg)}}.back-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;color:inherit;text-decoration:none;opacity:.8;transition:opacity .2s ease}.back-link[_ngcontent-%COMP%]:hover{opacity:1}.profile-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;margin-bottom:1.5rem}.avatar-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.profile-avatar[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.profile-name[_ngcontent-%COMP%]{font-family:Inter,system-ui,sans-serif;font-size:1.5rem;font-weight:700;margin:1rem 0 .25rem;line-height:1.2;display:flex;align-items:center;justify-content:center;gap:.35rem}.verified-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;flex-shrink:0;line-height:1;transition:transform .2s ease;cursor:default}.verified-badge[_ngcontent-%COMP%]:hover{transform:scale(1.15)}.verified-badge[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{display:block;width:20px;height:20px;flex-shrink:0}.profile-username[_ngcontent-%COMP%]{font-size:.875rem;opacity:.7;margin:0}.profile-bio[_ngcontent-%COMP%]{font-size:.95rem;margin:1rem 0 0;max-width:400px;line-height:1.5;opacity:.9;white-space:pre-line}.social-icons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem;margin-bottom:1.5rem}.social-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;border-radius:50%;color:inherit;text-decoration:none;background:#ffffff26;backdrop-filter:blur(10px);transition:all .2s ease}.social-icon[_ngcontent-%COMP%]:hover{transform:scale(1.1);background:#ffffff40}.social-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.25rem}.social-icon[_ngcontent-%COMP%] .social-svg[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem;display:flex;align-items:center;justify-content:center}.social-icon[_ngcontent-%COMP%] .social-svg[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:100%;height:100%;fill:currentColor}.profile-links[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;margin-bottom:2rem}.link-header-section[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;padding:.75rem 0 .25rem;margin-top:.25rem;color:var(--bio-text-color, #ffffff)}.link-header-section[_ngcontent-%COMP%] .link-header-text[_ngcontent-%COMP%]{font-size:var(--bio-font-size, 14px);font-weight:700;text-transform:uppercase;letter-spacing:.12em;opacity:.85;font-family:var(--bio-link-font-family, Inter, system-ui, sans-serif)} app-widget-bio-block-renderer .profile-link{cursor:pointer;overflow:hidden;position:relative} app-widget-bio-block-renderer .profile-link:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026} app-widget-bio-block-renderer .profile-link:active{transform:translateY(0)} app-widget-bio-block-renderer .profile-link.has-thumbnail{padding-left:0} app-widget-bio-block-renderer .profile-link.style-featured:hover{filter:brightness(1.1)} app-widget-bio-block-renderer .profile-link.style-outline:hover{background:#ffffff1a!important}
3 app-widget-bio-block-renderer .link-divider hr{border-top-color:var(--bio-divider-color, #ffffff);opacity:.3}.load-more-sentinel[_ngcontent-%COMP%]{width:100%;height:1px;pointer-events:none}.empty-links[_ngcontent-%COMP%]{text-align:center;padding:2rem;opacity:.6}.empty-links[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.profile-footer[_ngcontent-%COMP%]{margin-top:auto;padding-top:2rem}.branding-link[_ngcontent-%COMP%]{display:inline-flex;text-decoration:none;transition:all .2s ease}.branding-link[_ngcontent-%COMP%]:hover{transform:scale(1.05)}.branding-link[_ngcontent-%COMP%]:hover .branding-text[_ngcontent-%COMP%]{opacity:1}.branding-text[_ngcontent-%COMP%]{font-family:Inter,system-ui,sans-serif;font-size:.875rem;font-weight:700;letter-spacing:.1em;opacity:.5;transition:opacity .2s ease}.qr-code-container[_ngcontent-%COMP%]{position:fixed;bottom:2rem;right:2rem;z-index:100}.qr-code-container--left[_ngcontent-%COMP%]{right:auto;left:2rem}@media (max-width: 1023px){.qr-code-container[_ngcontent-%COMP%]{display:none}}.qr-code-card[_ngcontent-%COMP%]{background:#fff;border-radius:.75rem;padding:.75rem;box-shadow:0 10px 40px #0003;text-align:center}.qr-code-card[_ngcontent-%COMP%] .qr-code-img{border-radius:.25rem;display:block}.qr-code-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.qr-code-wrapper[_ngcontent-%COMP%] canvas[_ngcontent-%COMP%]{border-radius:.5rem}.qr-code-label[_ngcontent-%COMP%]{margin:.5rem 0 0;font-size:.7rem;color:#6b7280;font-weight:500}.qr-code-link[_ngcontent-%COMP%]{display:block;margin-top:.25rem;font-size:.65rem;color:#3b82f6;text-decoration:none;font-weight:500}.qr-code-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.profile-footer[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding-top:1.5rem}.profile-footer[_ngcontent-%COMP%] .branding-link[_ngcontent-%COMP%]{text-decoration:none;transition:opacity .2s ease}.profile-footer[_ngcontent-%COMP%] .branding-link[_ngcontent-%COMP%]:hover{opacity:.8}.profile-footer[_ngcontent-%COMP%] .branding-text[_ngcontent-%COMP%]{font-size:.85rem;font-weight:500;opacity:.7}.footer-cta[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.45rem;padding:.5rem 1.15rem;background:#ffffffe6;backdrop-filter:blur(10px);border:none;border-radius:50rem;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 8px #00000026;color:#374151;font-family:inherit;font-size:.75rem;font-weight:600}.footer-cta[_ngcontent-%COMP%] .pi-sparkles[_ngcontent-%COMP%]{font-size:.7rem}.footer-cta[_ngcontent-%COMP%] .footer-cta-arrow[_ngcontent-%COMP%]{font-size:.55rem;opacity:.6;transition:transform .2s ease}.footer-cta[_ngcontent-%COMP%]:hover{background:#fff;transform:scale(1.05);box-shadow:0 4px 12px #0003;color:#111827}.footer-cta[_ngcontent-%COMP%]:hover .footer-cta-arrow[_ngcontent-%COMP%]{transform:translate(2px)}.footer-cta[_ngcontent-%COMP%]:active{transform:scale(.98)}.footer-links[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;justify-content:center}.footer-link[_ngcontent-%COMP%]{background:none;border:none;padding:0;font-size:.6rem;color:inherit!important;opacity:.5;cursor:pointer;text-decoration:none;transition:opacity .2s ease}.footer-link[_ngcontent-%COMP%]:hover{opacity:.8}.branding-link[_ngcontent-%COMP%]{color:inherit!important;text-decoration:none}.branding-link[_ngcontent-%COMP%] .branding-text[_ngcontent-%COMP%]{color:inherit!important;font-weight:400;font-size:.6rem;opacity:.7}
3.footer-separator[_ngcontent-%COMP%]{font-size:.6rem;opacity:.3}.header-actions-sentinel[_ngcontent-%COMP%]{width:100%;height:0;margin:0;padding:0;border:none}.profile-header-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;z-index:100;pointer-events:none;opacity:1;transition:opacity .4s cubic-bezier(.4,0,.2,1),transform .4s cubic-bezier(.4,0,.2,1);position:fixed;top:1rem;left:1rem;right:1rem}@media (min-width: 768px){.profile-header-actions[_ngcontent-%COMP%]{top:calc(50px + 1rem);left:50%;right:auto;transform:translate(-50%);width:calc(100% - 4rem);max-width:516px;padding:0}}.profile-header-actions.header-actions-hidden[_ngcontent-%COMP%]{opacity:0;pointer-events:none!important}.profile-header-actions.header-actions-hidden[_ngcontent-%COMP%] .header-action-btn[_ngcontent-%COMP%]{pointer-events:none!important}@media (min-width: 768px){.profile-header-actions.header-actions-hidden[_ngcontent-%COMP%]{transform:translate(-50%) translateY(-20px)}}@media (max-width: 767px){.profile-header-actions.header-actions-hidden[_ngcontent-%COMP%]{transform:translateY(-20px)}}.header-actions-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.header-action-btn[_ngcontent-%COMP%]{pointer-events:auto;width:40px;height:40px;border-radius:50%;border:none;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;opacity:.7;transition:opacity .25s ease,transform .2s ease,box-shadow .25s ease;box-shadow:0 2px 8px #00000026}.header-action-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:18px;height:18px;color:#333;fill:#333}.header-action-btn[_ngcontent-%COMP%]:hover{opacity:1;transform:scale(1.05);box-shadow:0 4px 12px #0003}.header-action-btn[_ngcontent-%COMP%]:active{transform:scale(.98)}.promo-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:22px;height:auto}.promo-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:#333!important}.promo-btn[_ngcontent-%COMP%]:hover{transform:scale(1.08)}.share-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{color:#333}.subscribe-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{color:#333}.bio-view-switch[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:0;margin:12px auto 16px;background:#ffffff1a;border-radius:10px;padding:3px;width:fit-content;min-width:220px;backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.12);position:relative}.bio-view-switch__indicator[_ngcontent-%COMP%]{position:absolute;top:3px;bottom:3px;left:3px;width:calc(50% - 3px);background:#ffffffd9;border-radius:8px;box-shadow:0 2px 8px #0000001a;transition:transform .3s cubic-bezier(.4,0,.2,1);z-index:0;pointer-events:none}.bio-view-switch--shop-active[_ngcontent-%COMP%] .bio-view-switch__indicator[_ngcontent-%COMP%]{transform:translate(100%)}.bio-view-switch__tab[_ngcontent-%COMP%]{flex:1;padding:8px 20px;font-size:.85rem;font-weight:500;border:none;border-radius:8px;cursor:pointer;transition:color .25s ease,opacity .25s ease;background:transparent;color:#ffffffa6;white-space:nowrap;min-width:90px;text-align:center;position:relative;z-index:1}.bio-view-switch__tab[_ngcontent-%COMP%]:hover{color:#ffffffd9}.bio-view-switch__tab--active[_ngcontent-%COMP%]{color:#1a1a2e;opacity:1;font-weight:600} .share-modal .p-dialog-header{display:none} .share-modal .p-dialog{max-height:90vh} .share-modal .p-dialog-content{padding:0;border-radius:1rem;overflow-y:auto;max-height:85vh}.share-banner[_ngcontent-%COMP%]{position:relative;padding:2rem 1.5rem 1.5rem;display:flex;flex-direction:column;align-items:center;min-height:140px;overflow:hidden}.share-banner-bg[_ngcontent-%COMP%]{position:absolute;inset:0;background-size:cover;background-position:center;filter:blur(4px)}.share-banner-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background:#00000059}.share-banner-content[_ngcontent-%COMP%]{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:.35rem}.share-banner-avatar[_ngcontent-%COMP%]{width:56px;height:56px;border-radius:50%;object-fit:cover;border:3px solid rgba(255,255,255,.6);box-shadow:0 4px 12px #0003}.share-banner-avatar-placeholder[_ngcontent-%COMP%]{width:56px;height:56px;border-radius:50%;background:#fff3;backdrop-filter:blur(8px);border:3px solid rgba(255,255,255,.6);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:1.25rem}
3.share-banner-name[_ngcontent-%COMP%]{color:#fff;font-size:1rem;font-weight:600;text-shadow:0 1px 3px rgba(0,0,0,.3)}.share-banner-url[_ngcontent-%COMP%]{color:#fffc;font-size:.8rem;text-shadow:0 1px 3px rgba(0,0,0,.3)}.share-body[_ngcontent-%COMP%]{padding:1.25rem 1.5rem 1.5rem}.share-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem;margin-bottom:1.5rem}.share-option[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:.75rem .5rem;background:var(--surface-50);border:1px solid var(--surface-200);border-radius:.75rem;cursor:pointer;transition:all .2s ease}.share-option[_ngcontent-%COMP%]:hover{background:var(--surface-100);border-color:var(--surface-300);transform:translateY(-2px)}.share-option[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.7rem;font-weight:500;color:var(--text-color)}.share-icon[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff}.share-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.15rem}.share-icon.copy-icon[_ngcontent-%COMP%]{background:linear-gradient(135deg,#6b7280,#4b5563)}.share-icon.copy-icon.copied[_ngcontent-%COMP%]{background:linear-gradient(135deg,#22c55e,#16a34a)}.share-icon.x-icon[_ngcontent-%COMP%]{background:#000}.share-icon.facebook-icon[_ngcontent-%COMP%]{background:#1877f2}.share-icon.whatsapp-icon[_ngcontent-%COMP%]{background:#25d366}.share-icon.linkedin-icon[_ngcontent-%COMP%]{background:#0a66c2}.share-icon.messenger-icon[_ngcontent-%COMP%]{background:linear-gradient(135deg,#00b2ff,#006aff)}.share-icon.snapchat-icon[_ngcontent-%COMP%]{background:#fffc00;color:#000}.share-icon.email-icon[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ea4335,#d93025)}.share-icon.telegram-icon[_ngcontent-%COMP%]{background:#08c}.share-qr[_ngcontent-%COMP%]{text-align:center;padding-top:1rem;border-top:1px solid var(--surface-200)}.share-qr-label[_ngcontent-%COMP%]{font-size:.8rem;color:var(--text-color-secondary);margin-bottom:1rem}.share-qr-code[_ngcontent-%COMP%]{display:inline-block;padding:.75rem;background:#fff;border-radius:.75rem;box-shadow:0 2px 8px #00000014} .subscribe-modal .p-dialog-header{display:none} .subscribe-modal .p-dialog{max-height:90vh} .subscribe-modal .p-dialog-content{padding:0;border-radius:1rem;overflow-y:auto;max-height:85vh}.subscribe-content[_ngcontent-%COMP%]{padding:2rem 1.75rem;text-align:center}.subscribe-avatar[_ngcontent-%COMP%]{width:72px;height:72px;border-radius:50%;object-fit:cover;margin-bottom:1rem;box-shadow:0 4px 12px #0000001a}.subscribe-avatar-placeholder[_ngcontent-%COMP%]{width:72px;height:72px;border-radius:50%;background:linear-gradient(135deg,var(--primary-color),var(--primary-600));color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:1.5rem;margin-bottom:1rem;box-shadow:0 4px 12px #0000001a}.subscribe-title[_ngcontent-%COMP%]{font-size:1.15rem;font-weight:600;margin:0 0 .5rem;color:var(--text-color)}.subscribe-desc[_ngcontent-%COMP%]{font-size:.85rem;color:var(--text-color-secondary);margin:0 0 1.25rem;line-height:1.4}.subscribe-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.subscribe-input[_ngcontent-%COMP%]{width:100%;padding:.75rem 1rem;border:1px solid var(--surface-300);border-radius:.5rem;font-size:.95rem;background:var(--surface-0);color:var(--text-color);outline:none;transition:border-color .2s;box-sizing:border-box}.subscribe-input[_ngcontent-%COMP%]:focus{border-color:var(--primary-color);box-shadow:0 0 0 2px rgba(var(--primary-color-rgb, 59, 130, 246),.15)}.subscribe-input[_ngcontent-%COMP%]::placeholder{color:var(--text-color-secondary)}.subscribe-prefilled[_ngcontent-%COMP%]{display:flex;align-items:center;padding:.75rem 1rem;border:1px solid var(--green-200, #bbf7d0);border-radius:.5rem;background:var(--green-50, #f0fdf4);color:var(--text-color);font-size:.95rem}.subscribe-error[_ngcontent-%COMP%]{font-size:.8rem;color:#ef4444;margin:0;text-align:left}.subscribe-submit-btn[_ngcontent-%COMP%]{width:100%;padding:.75rem;background:var(--primary-color, #3b82f6);color:#fff;border:none;border-radius:.5rem;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .2s ease}.subscribe-submit-btn[_ngcontent-%COMP%]:hover:not(:disabled){filter:brightness(1.1);transform:translateY(-1px)}.subscribe-submit-btn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.subscribe-submit-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.subscribe-privacy[_ngcontent-%COMP%]{font-size:.7rem;color:var(--text-color-secondary);margin:1rem 0 0;line-height:1.4;
3opacity:.7}.subscribe-success[_ngcontent-%COMP%]{padding:1rem 0}.subscribe-success[_ngcontent-%COMP%] .subscribe-success-icon[_ngcontent-%COMP%]{margin-bottom:1rem}.subscribe-success[_ngcontent-%COMP%] .subscribe-success-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:3rem;color:#22c55e}.subscribe-success[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1.15rem;font-weight:600;margin:0 0 .5rem;color:var(--text-color)}.subscribe-success[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.85rem;color:var(--text-color-secondary);margin:0 0 1.5rem}.subscribe-done-btn[_ngcontent-%COMP%]{padding:.6rem 2rem;background:var(--surface-100);color:var(--text-color);border:1px solid var(--surface-300);border-radius:.5rem;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s ease}.subscribe-done-btn[_ngcontent-%COMP%]:hover{background:var(--surface-200)} .promo-modal .p-dialog{border-radius:1.25rem;overflow:hidden;box-shadow:0 25px 60px #0000004d;max-height:90vh} .promo-modal .p-dialog-content{padding:0;overflow-y:auto;max-height:85vh}.promo-banner[_ngcontent-%COMP%]{position:relative;background:linear-gradient(135deg,#6366f1,#8b5cf6 40%,#a78bfa);padding:1.5rem 1.5rem 2rem;display:flex;justify-content:center;align-items:center;min-height:150px;overflow:hidden}.promo-banner[_ngcontent-%COMP%]:before, .promo-banner[_ngcontent-%COMP%]:after{content:"";position:absolute;border-radius:50%;background:#ffffff14}.promo-banner[_ngcontent-%COMP%]:before{width:200px;height:200px;top:-60px;right:-40px}.promo-banner[_ngcontent-%COMP%]:after{width:140px;height:140px;bottom:-40px;left:-30px}.promo-close[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem;width:32px;height:32px;border-radius:50%;border:none;background:#fff3;backdrop-filter:blur(8px);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;z-index:10}.promo-close[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:.85rem;color:#fff}.promo-close[_ngcontent-%COMP%]:hover{background:#ffffff59}.promo-phone[_ngcontent-%COMP%]{position:relative;z-index:2;width:72px;height:128px;background:#1a1a2e;border-radius:16px;padding:3px;box-shadow:0 20px 40px #0000004d}.promo-phone-notch[_ngcontent-%COMP%]{width:28px;height:4px;background:#2a2a3e;border-radius:2px;margin:4px auto 2px}.promo-phone-screen[_ngcontent-%COMP%]{width:100%;height:calc(100% - 10px);background:linear-gradient(180deg,#f8fafc,#f1f5f9);border-radius:12px;padding:10px 6px 8px;display:flex;flex-direction:column;align-items:center;gap:5px}.promo-phone-avatar[_ngcontent-%COMP%]{width:22px;height:22px;border-radius:50%;background:linear-gradient(135deg,#6366f1,#8b5cf6)}.promo-phone-name[_ngcontent-%COMP%]{width:32px;height:4px;border-radius:2px;background:#cbd5e1}.promo-phone-links[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;gap:4px;padding:0 2px;margin-top:4px}.promo-phone-link[_ngcontent-%COMP%]{height:10px;border-radius:5px;background:linear-gradient(90deg,#e0e7ff,#c7d2fe)}.promo-phone-link[_ngcontent-%COMP%]:nth-child(2){background:linear-gradient(90deg,#ede9fe,#ddd6fe)}.promo-phone-link[_ngcontent-%COMP%]:nth-child(3){background:linear-gradient(90deg,#fce7f3,#fbcfe8)}.promo-social-icons[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;top:0;left:0;pointer-events:none;z-index:1}.promo-social-icon[_ngcontent-%COMP%]{position:absolute;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 4px 16px #0003;animation:_ngcontent-%COMP%_promo-float 4s ease-in-out infinite}.promo-social-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .promo-social-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-size:14px}.promo-social-icon.instagram[_ngcontent-%COMP%]{background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);top:18%;left:12%;animation-delay:0s}.promo-social-icon.tiktok[_ngcontent-%COMP%]{background:#000;top:12%;right:14%;animation-delay:.7s}.promo-social-icon.youtube[_ngcontent-%COMP%]{background:red;bottom:22%;left:8%;animation-delay:1.4s}.promo-social-icon.twitter[_ngcontent-%COMP%]{background:#000;bottom:18%;right:10%;animation-delay:2.1s}@keyframes _ngcontent-%COMP%_promo-float{0%,to{transform:translateY(0) scale(1)}50%{transform:translateY(-8px) scale(1.05)}}.promo-body[_ngcontent-%COMP%]{padding:1.75rem 1.5rem 1.5rem;text-align:center}.promo-title[_ngcontent-%COMP%]{font-size:1.35rem;font-weight:700;line-height:1.3;margin-bottom:.5rem;color:var(--text-color)}.promo-description[_ngcontent-%COMP%]{font-size:.88rem;color:var(--text-color-secondary);line-height:1.5;margin-bottom:1.25rem}.promo-features[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:0;margin-bottom:1.5rem;text-align:left}.promo-feature[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;padding:.65rem .75rem;border-radius:.625rem;transition:background .15s ease}.promo-feature[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{width:32px;height:32px;min-width:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:.85rem;color:#6366f1;background:#eef2ff}.promo-feature[_ngcontent-%COMP%]:hover{background:var(--surface-50)}.promo-feature-text[_ngcontent-%COMP%]{display:flex;flex-direction:column}.promo-feature-text[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:.82rem;font-weight:600;color:var(--text-color);line-height:1.3}.promo-feature-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.73rem;color:var(--text-color-secondary);line-height:1.3}.promo-claim[_ngcontent-%COMP%]{margin-bottom:1.25rem;text-align:left;background:linear-gradient(135deg,#eef2ff,#f0ecff);border:1.5px solid #c7d2fe;border-radius:.875rem;padding:1rem 1.25rem;position:relative}.promo-claim[_ngcontent-%COMP%]:before{content:"\\e99c";font-family:primeicons;position:absolute;top:-10px;right:12px;width:22px;height:22px;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.55rem}.promo-claim-label[_ngcontent-%COMP%]{display:block;font-size:.85rem;font-weight:700;color:#4338ca;margin-bottom:.5rem}.promo-claim-input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;background:#fff;border:2px solid #a5b4fc;border-radius:.75rem;overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease}.promo-claim-input-wrapper[_ngcontent-%COMP%]:focus-within{border-color:#6366f1;box-shadow:0 0 0 4px #6366f126}.promo-claim-prefix[_ngcontent-%COMP%]{padding:0 0 0 .85rem;font-size:.95rem;font-weight:600;color:#6366f1;white-space:nowrap;-webkit-user-select:none;user-select:none}.promo-claim-input[_ngcontent-%COMP%]{flex:1;border:none;background:transparent;padding:.75rem .85rem .75rem .25rem;font-size:.95rem;font-weight:500;color:var(--text-color);outline:none;font-family:inherit;min-width:0}.promo-claim-input[_ngcontent-%COMP%]::placeholder{color:var(--text-color-secondary);opacity:.45}.promo-cta[_ngcontent-%COMP%]{width:100%;font-weight:600;font-size:.95rem;display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 1.5rem;background:linear-gradient(135deg,#6366f1,#8b5cf6)!important;border:none!important;border-radius:.75rem!important;box-shadow:0 4px 14px #6366f166;transition:all .2s ease;margin-bottom:.75rem}.promo-cta[_ngcontent-%COMP%]:hover{box-shadow:0 6px 20px #6366f180;transform:translateY(-1px)}.promo-cta[_ngcontent-%COMP%]:active{transform:translateY(0)}.promo-learn-more[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;font-size:.82rem;color:var(--text-color-secondary);text-decoration:none;transition:all .2s ease;padding:.25rem 0}.promo-learn-more[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:.65rem;transition:transform .2s ease}.promo-learn-more[_ngcontent-%COMP%]:hover{color:#6366f1}.promo-learn-more[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%]{transform:translate(3px)} .cookie-modal .p-dialog-header{padding:1.5rem 1.5rem .5rem} .cookie-modal .p-dialog-header .p-dialog-title{font-size:1.1rem;font-weight:600} .cookie-modal .p-dialog-content{padding:.5rem 1.5rem 1.5rem}
3.cookie-intro[_ngcontent-%COMP%]{font-size:.9rem;color:var(--text-color-secondary);line-height:1.5;margin-bottom:1.5rem}.cookie-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;margin-bottom:1.5rem}.cookie-option[_ngcontent-%COMP%]{padding:1rem;background:var(--surface-50);border-radius:.75rem;border:1px solid var(--surface-200)}.cookie-option-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:.25rem}.cookie-option-title[_ngcontent-%COMP%]{font-size:.9rem;font-weight:600;color:var(--text-color)}.cookie-always-on[_ngcontent-%COMP%]{font-size:.75rem;color:#22c55e;font-weight:500}.cookie-option-desc[_ngcontent-%COMP%]{font-size:.8rem;color:var(--text-color-secondary);margin:0}.cookie-toggle[_ngcontent-%COMP%]{position:relative;display:inline-block;width:44px;height:24px}.cookie-toggle[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.cookie-toggle[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + .cookie-toggle-slider[_ngcontent-%COMP%]{background:var(--primary-color)}.cookie-toggle[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + .cookie-toggle-slider[_ngcontent-%COMP%]:before{transform:translate(20px)}.cookie-toggle-slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background:var(--surface-300);border-radius:24px;transition:.3s}.cookie-toggle-slider[_ngcontent-%COMP%]:before{content:"";position:absolute;height:18px;width:18px;left:3px;bottom:3px;background:#fff;border-radius:50%;transition:.3s}.cookie-actions[_ngcontent-%COMP%]{display:flex;gap:.75rem;flex-wrap:wrap}.cookie-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1;min-width:140px}.error-page[_ngcontent-%COMP%]{width:100%;min-height:100vh;min-height:100dvh;position:relative;display:flex;align-items:center;justify-content:center;padding:24px;background:#0a0a14}.error-gradient-bg[_ngcontent-%COMP%]{position:absolute;inset:0;overflow:hidden;z-index:0}.error-gradient-layer[_ngcontent-%COMP%]{position:absolute;border-radius:50%;filter:blur(110px);opacity:.7;animation:_ngcontent-%COMP%_errorAuroraFloat 20s ease-in-out infinite}.error-gradient-1[_ngcontent-%COMP%]{width:65%;height:65%;background:radial-gradient(circle,rgba(47,142,239,.35) 0%,rgba(47,142,239,.1) 40%,transparent 70%);top:-22%;right:-12%;animation-delay:0s}.error-gradient-2[_ngcontent-%COMP%]{width:55%;height:55%;background:radial-gradient(circle,rgba(84,166,246,.28) 0%,rgba(84,166,246,.07) 40%,transparent 70%);bottom:-12%;left:-8%;animation-delay:-7s}.error-gradient-3[_ngcontent-%COMP%]{width:50%;height:50%;background:radial-gradient(circle,rgba(79,172,254,.26) 0%,rgba(79,172,254,.07) 40%,transparent 70%);top:38%;left:28%;animation-delay:-14s}@keyframes _ngcontent-%COMP%_errorAuroraFloat{0%,to{transform:translate(0) scale(1)}25%{transform:translate(30px,-20px) scale(1.05)}50%{transform:translate(-20px,30px) scale(.98)}75%{transform:translate(15px,-10px) scale(1.02)}}.error-content[_ngcontent-%COMP%]{position:relative;z-index:1;text-align:center;padding:48px 0;max-width:480px;width:100%}.error-logo-link[_ngcontent-%COMP%]{display:inline-block;margin-bottom:40px}.error-logo[_ngcontent-%COMP%]{height:36px;width:auto}.error-icon-wrapper[_ngcontent-%COMP%]{width:80px;height:80px;margin:0 auto 24px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#2f8eef2e,#54a6f624);border-radius:50%}.error-icon-wrapper[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:32px;background:linear-gradient(135deg,#2f8eef,#54a6f6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.error-title[_ngcontent-%COMP%]{font-size:24px;font-weight:700;color:#fff;margin-bottom:8px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.error-subtitle[_ngcontent-%COMP%]{font-size:15px;color:#ffffffa8;line-height:1.6;margin-bottom:32px}.error-cta-group[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:48px}.error-btn-cta[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;border-radius:10px;font-size:15px;font-weight:600;text-decoration:none;transition:all .2s ease;cursor:pointer;border:none}.error-btn-cta[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:14px}.error-btn-cta-primary[_ngcontent-%COMP%]{background:#2f8eef;color:#fff}.error-btn-cta-primary[_ngcontent-%COMP%]:hover{background:#127ae4;transform:translateY(-1px);box-shadow:0 4px 12px #2f8eef59}.error-btn-cta-outline[_ngcontent-%COMP%]{background:#2f8eef14;color:#2f8eef;border:1px solid rgba(47,142,239,.2)}.error-btn-cta-outline[_ngcontent-%COMP%]:hover{background:#2f8eef24;transform:translateY(-1px)}.error-promo-section[_ngcontent-%COMP%]{background:#12121e;border-radius:20px;padding:32px 24px;border:1px solid rgba(255,255,255,.07)}.error-promo-title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;color:#fff;margin-bottom:4px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.error-promo-subtitle[_ngcontent-%COMP%]{font-size:14px;color:#ffffff73;margin-bottom:20px}.error-feature-pills[_ngcontent-%COMP%]{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-bottom:24px}.error-feature-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;background:#2f8eef0f;border:1px solid rgba(47,142,239,.12);border-radius:50px;font-size:13px;font-weight:500;color:#2f8eef}.error-feature-pill[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:14px}
3.error-btn-cta-accent[_ngcontent-%COMP%]{background:linear-gradient(135deg,#2f8eef,#54a6f6);color:#fff;padding:12px 28px;display:inline-flex;align-items:center;gap:8px;border-radius:10px;font-size:15px;font-weight:600;text-decoration:none;transition:all .2s ease;cursor:pointer;border:none}.error-btn-cta-accent[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:14px}.error-btn-cta-accent[_ngcontent-%COMP%]:hover{transform:translateY(-1px);box-shadow:0 4px 16px #2f8eef66;color:#fff}@media (max-width: 576px){.error-page[_ngcontent-%COMP%]{padding:16px}.error-content[_ngcontent-%COMP%]{padding:32px 0}.error-logo-link[_ngcontent-%COMP%]{margin-bottom:24px}.error-icon-wrapper[_ngcontent-%COMP%]{width:64px;height:64px;margin-bottom:20px}.error-icon-wrapper[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:26px}.error-title[_ngcontent-%COMP%]{font-size:20px}.error-cta-group[_ngcontent-%COMP%]{flex-direction:column}.error-cta-group[_ngcontent-%COMP%] .error-btn-cta[_ngcontent-%COMP%]{justify-content:center}.error-promo-section[_ngcontent-%COMP%]{padding:24px 16px}.error-feature-pills[_ngcontent-%COMP%]{gap:8px}.error-feature-pill[_ngcontent-%COMP%]{font-size:12px;padding:6px 12px}}.cart-fab[_ngcontent-%COMP%]{position:fixed;bottom:24px;right:24px;z-index:1000;width:56px;height:56px;border-radius:50%;background:var(--bio-btn-bg, #3b82f6);color:var(--bio-btn-text, #ffffff);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1.3rem;box-shadow:0 4px 16px #0003;transition:transform .2s,box-shadow .2s;animation:_ngcontent-%COMP%_cart-fab-enter .3s ease-out}.cart-fab[_ngcontent-%COMP%]:hover{transform:scale(1.08);box-shadow:0 6px 24px #00000040}.cart-fab[_ngcontent-%COMP%]:active{transform:scale(.95)}.cart-fab--empty[_ngcontent-%COMP%]{background:#ffffffd9;color:#333;opacity:.7;box-shadow:0 2px 8px #0000001f}.cart-fab--empty[_ngcontent-%COMP%]:hover{opacity:1;box-shadow:0 4px 16px #0000002e}.cart-fab__badge[_ngcontent-%COMP%]{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;border-radius:11px;background:#ef4444;color:#fff;font-size:.75rem;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 5px;line-height:1}@keyframes _ngcontent-%COMP%_cart-fab-enter{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@media (max-width: 767px){.cart-fab[_ngcontent-%COMP%]{bottom:16px;right:16px;width:52px;height:52px}}.pending-banner[_ngcontent-%COMP%]{position:fixed;bottom:16px;left:50%;transform:translate(-50%);z-index:1050;width:calc(100% - 32px);max-width:420px;padding:16px 40px 16px 18px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:16px;box-shadow:0 8px 32px #667eea59,0 2px 8px #00000026;animation:_ngcontent-%COMP%_pendingSlideUp .4s cubic-bezier(.16,1,.3,1)}.pending-banner__dismiss[_ngcontent-%COMP%]{position:absolute;top:10px;right:10px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;border-radius:50%;background:#ffffff26;color:#ffffffb3;cursor:pointer;font-size:11px;transition:background .2s,color .2s}.pending-banner__dismiss[_ngcontent-%COMP%]:hover{background:#ffffff4d;color:#fff}.pending-banner__inner[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:14px}.pending-banner__icon-wrap[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;background:#ffffff2e;font-size:18px}.pending-banner__body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;min-width:0}.pending-banner__text[_ngcontent-%COMP%]{font-size:13px;line-height:1.4;font-weight:500}.pending-banner__cta[_ngcontent-%COMP%]{display:inline-flex;align-items:center;align-self:flex-start;gap:8px;padding:8px 20px;border:none;border-radius:10px;background:#fff;color:#667eea;font-weight:700;font-size:13px;cursor:pointer;white-space:nowrap;transition:transform .15s,box-shadow .15s;box-shadow:0 2px 8px #0000001a}.pending-banner__cta[_ngcontent-%COMP%]:hover{transform:translateY(-1px);box-shadow:0 4px 14px #00000026}.pending-banner__cta[_ngcontent-%COMP%]:active{transform:translateY(0)}.pending-banner__cta[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:14px}
3@keyframes _ngcontent-%COMP%_pendingSlideUp{0%{transform:translate(-50%) translateY(100%);opacity:0}to{transform:translate(-50%) translateY(0);opacity:1}}.grid-hero-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:10000;background:#000000b3;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);animation:_ngcontent-%COMP%_gridHeroFadeIn .25s ease;overflow-y:auto;-webkit-overflow-scrolling:touch}.grid-hero-overlay-content[_ngcontent-%COMP%]{width:100%;max-width:680px;margin:0 auto;padding:0 12px 2rem}.grid-hero-overlay-close[_ngcontent-%COMP%]{position:fixed;right:16px;top:16px;z-index:10001;width:40px;height:40px;border-radius:50%;border:none;background:#ffffff26;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;font-size:1.1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s}.grid-hero-overlay-close[_ngcontent-%COMP%]:hover{background:#ffffff4d}.grid-hero-overlay-header[_ngcontent-%COMP%]{text-align:center;padding:3.5rem 3rem 1.5rem}.grid-hero-overlay-title[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:700;color:#fff;margin:0 0 .25rem}.grid-hero-overlay-count[_ngcontent-%COMP%]{font-size:.85rem;color:#ffffff80}.grid-hero-overlay-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.grid-hero-overlay-card[_ngcontent-%COMP%]{position:relative;border-radius:var(--bio-btn-radius, 12px);overflow:hidden;cursor:pointer;transition:transform .2s,box-shadow .2s;display:flex;flex-direction:column;color:var(--bio-text-color, inherit)}.grid-hero-overlay-card[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;z-index:0;border-radius:inherit;background:var(--bio-shop-card-bg, var(--bio-block-bg, rgba(255, 255, 255, .1)));backdrop-filter:blur(var(--bio-shop-card-blur, var(--bio-btn-blur, 10px)));-webkit-backdrop-filter:blur(var(--bio-shop-card-blur, var(--bio-btn-blur, 10px)));opacity:var(--bio-shop-card-opacity, 1)}.grid-hero-overlay-card[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{position:relative;z-index:1}.grid-hero-overlay-card[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 8px 24px #0003}.grid-hero-overlay-card-image[_ngcontent-%COMP%]{position:relative;width:100%;padding-top:100%;overflow:hidden;background:#ffffff0d}.grid-hero-overlay-card-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}.grid-hero-overlay-card[_ngcontent-%COMP%]:hover .grid-hero-overlay-card-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{transform:scale(1.05)}.grid-hero-overlay-card-no-image[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#ffffff4d;font-size:2rem}.grid-hero-overlay-badge[_ngcontent-%COMP%]{position:absolute;top:8px;left:8px;background:#ef4444;color:#fff;font-size:.7rem;font-weight:700;padding:3px 8px;border-radius:4px}.grid-hero-overlay-card-info[_ngcontent-%COMP%]{padding:10px 12px 14px;display:flex;flex-direction:column;gap:4px;flex:1}.grid-hero-overlay-card-title[_ngcontent-%COMP%]{font-size:var(--bio-font-size, .85rem);font-weight:600;line-height:1.3;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(var(--bio-font-size, .85rem) * 1.3 * 2)}.grid-hero-overlay-card-price[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;margin-top:auto;padding-top:4px}.grid-hero-overlay-price-current[_ngcontent-%COMP%]{font-size:var(--bio-font-size, .9rem);font-weight:700}.grid-hero-overlay-price-compare[_ngcontent-%COMP%]{font-size:var(--bio-secondary-font-size, .75rem);text-decoration:line-through;opacity:.5}.grid-hero-overlay-card-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:6px 10px;border-radius:var(--bio-btn-radius, 8px);background:var(--bio-btn-bg, #10b981);color:var(--bio-btn-text, white);font-size:.75rem;font-weight:600;border:none;cursor:pointer;transition:filter .2s;margin-top:6px}.grid-hero-overlay-card-btn[_ngcontent-%COMP%]:hover{filter:brightness(.85)}.grid-hero-overlay-card-btn[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:.7rem}@keyframes _ngcontent-%COMP%_gridHeroFadeIn{0%{opacity:0}
3to{opacity:1}}.payment-method-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:.875rem 1.5rem;border:2px solid var(--p-surface-border);border-radius:12px;background:var(--p-surface-card);color:var(--p-text-color);font-size:.95rem;font-weight:600;cursor:pointer;transition:all .15s}.payment-method-btn[_ngcontent-%COMP%]:hover{border-color:var(--p-primary-color);background:#3b82f60a}'],changeDetection:0})};export{mi as ViewMeProfilComponent};
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.