PageSourceSearch

https://hou.la/chunk-JUIXBIDZ.js

js hou.la collected 2026-09-25 03:32:41 UTC 52,094 bytes, 1 lines download raw bytes

1import{a as We}from"./chunk-6ZTPX4UZ.js";import{a as Fe}from"./chunk-SOEAT6PN.js";import{a as Ue}from"./chunk-YQD4VRCP.js";import{a as De}from"./chunk-GIIMJHN6.js";import{a as ze}from"./chunk-VYULK3Y3.js";import{g 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 Ge}from"./chunk-QIOURN4K.js";import{b as Ne}from"./chunk-KYVCMV2E.js";import"./chunk-HWZZ5RQT.js";import"./chunk-ZNR7QNVV.js";import{a as Te,b as ke}from"./chunk-WGAXTYG2.js";import"./chunk-U3Z5BGA7.js";import{a as Be,b as He}from"./chunk-N3YFX76I.js";import{e as Le}from"./chunk-DYFCQ3R3.js";import"./chunk-IRE2CVIC.js";import"./chunk-JS6LICOA.js";import"./chunk-WF4KZOYP.js";import{a as Ve}from"./chunk-OTMVSU27.js";import{a as he}from"./chunk-EB6TJ75L.js";import"./chunk-QI7CEGT6.js";import{a as ye,b as we}from"./chunk-6ND7557V.js";import{D as xe,c as Ce,g as Se,l as ve,z as be}from"./chunk-FOJCKIWO.js";import{a as Oe}from"./chunk-NBMUSEX4.js";import{a as Ae,b as j}from"./chunk-3AIY57KH.js";import"./chunk-AB6CKZTE.js";import{b as Ie,c as Re}from"./chunk-H66TAOKK.js";import"./chunk-Z64D265S.js";import"./chunk-K5O3OQFW.js";import"./chunk-2DRXLVRR.js";import{c as Ee,d as Pe,e as Me}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"./chunk-AQEWHUN5.js";import{c as z,d as W,e as F}from"./chunk-YQZAETCE.js";import{i as H,j as X,k as de,l as me,o as _e,p as ge,r as ue,s as D,x as U}from"./chunk-EO42E46J.js";import"./chunk-3QVSKJ3X.js";import{I as B,c as E}from"./chunk-ERUCNOOT.js";import{$b as A,A as te,B as ie,Cc as w,D as ne,Dc as T,Ec as k,Fa as R,Gc as $,Hc as pe,Ic as ce,Jb as g,Lb as y,Mb as q,Nb as ae,Qb as f,Qc as l,Rc as s,Sc as Q,Tb as V,Ub as G,V as P,Vb as n,Wb as o,Xb as p,Z as oe,da as x,db as a,f as ee,fc as h,gc as m,la as S,ma as v,mc as re,nc as le,oc as se,p as I,sb as L,tc as c,uc as _,vc as C,yb as b}from"./chunk-DBE7WQEG.js";import{a as N,b as Z,g as O}from"./chunk-W7GRJBO5.js";var J="houla_shop_tour_seen",K=class i{translateService=x(z);platformId=x(R);driverInstance=null;get hasSeenTour(){return E(this.platformId)?localStorage.getItem(J)==="1":!0}markAsSeen(){E(this.platformId)&&localStorage.setItem(J,"1")}reset(){E(this.platformId)&&localStorage.removeItem(J)}startTour(){if(!E(this.platformId))return;let t=r=>this.translateService.instant(r),e=this.buildSteps(t);this.driverInstance=Ue({showProgress:!0,animate:!0,allowClose:!0,overlayColor:"rgba(0, 0, 0, 0.6)",stagePadding:8,stageRadius:8,popoverClass:"houla-tour-popover",nextBtnText:t("MANAGER.SHOP.TOUR_BTN_NEXT"),prevBtnText:t("MANAGER.SHOP.TOUR_BTN_PREV"),doneBtnText:t("MANAGER.SHOP.TOUR_BTN_DONE"),progressText:t("MANAGER.SHOP.TOUR_PROGRESS"),onDestroyStarted:()=>{this.markAsSeen(),this.driverInstance?.destroy()},steps:e}),this.driverInstance.drive()}stopTour(){this.driverInstance?.destroy(),this.driverInstance=null}buildSteps(t){let e=[];return document.querySelector(".seller-checklist__header")&&e.push({element:".bg-white.border.rounded-3.p-3.mb-3",popover:{title:t("MANAGER.SHOP.TOUR_CHECKLIST_TITLE"),description:t("MANAGER.SHOP.TOUR_CHECKLIST_DESC"),side:"bottom",align:"start"}}),document.querySelector("app-widget-shop-nav")&&e.push({element:"app-widget-shop-nav",popover:{title:t("MANAGER.SHOP.TOUR_NAV_TITLE"),description:t("MANAGER.SHOP.TOUR_NAV_DESC"),side:"bottom",align:"center"}}),document.querySelector(".shop-tab-content")&&e.push({element:".shop-tab-content",popover:{title:t("MANAGER.SHOP.TOUR_DASHBOARD_TITLE"),description:t("MANAGER.SHOP.TOUR_DASHBOARD_DESC"),side:"top",align:"center"}}),document.querySelector('.shop-header-actions [routerLink="/studio/shop/products/new"]')&&e.push({element:'.shop-header-actions [routerLink="/studio/shop/products/new"]',popover:{title:t("MANAGER.SHOP.TOUR_ADD_PRODUCT_TITLE"),description:t("MANAGER.SHOP.TOUR_ADD_PRODUCT_DESC"),side:"bottom",align:"end"}}),document.querySelector(".live-btn")&&e.push({element:".live-btn",popover:{title:t("MANAGER.SHOP.TOUR_LIVE_PREVIEW_TITLE"),description:t("MANAGER.SHOP.TOUR_LIVE_PREVIEW_DESC"),side:"bottom",align:"end"}}),document.querySelector('[data-tour="stripe-dashboard"]')&&e.push({element:'[data-tour="stripe-dashboard"]',popover:{title:t("MANAGER.SHOP.TOUR_STRIPE_TITLE"),description:t("MANAGER.SHOP.TOUR_STRIPE_DESC"),side:"bottom",align:"end"}}),document.querySelector(".shop-infobox--info")&&e.push({element:".shop-infobox--info",popover:{title:t("MANAGER.SHOP.TOUR_COMMISSION_TITLE"),description:t("MANAGER.SHOP.TOUR_COMMISSION_DESC"),side:"bottom",align:"center"}}),e.push({popover:{title:t("MANAGER.SHOP.TOUR_FINISH_TITLE"),description:t("MANAGER.SHOP.TOUR_FINISH_DESC")}}),e}static \u0275fac=function(e){return new(e||i)};static \u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})};var Qe=(i,t)=>t.key;function Xe(i,t){if(i&1&&(n(0,"span",4),c(1),o()),i&2){let e=m().$implicit,r=m();a(),_(r.badges[e.key])}}function Je(i,t){if(i&1&&(n(0,"a",2),p(1,"i"),n(2,"span",3),c(3),l(4,"translate"),o(),b(5,Xe,2,1,"span",4),o()),i&2){let e=t.$implicit,r=m();y("shop-nav__item--active",r.activeTab===e.key),g("routerLink",e.route),a(),ae(e.icon),a(2),_(s(4,7,e.i18n)),a(2),f(r.badges[e.key]?5:-1)}}var Y=class i{activeTab="dashboard";badges={};tabs=[{key:"dashboard",icon:"pi pi-chart-bar",route:"/studio/shop",i18n:"MANAGER.SHOP.NAV_DASHBOARD"},{key:"products",icon:"pi pi-box",route:"/studio/shop/products",i18n:"MANAGER.SHOP.NAV_PRODUCTS"},{key:"collections",icon:"pi pi-th-large",route:"/studio/shop/collections",i18n:"MANAGER.SHOP.NAV_COLLECTIONS"},{key:"orders",icon:"pi pi-shopping-cart",route:"/studio/shop/orders",i18n:"MANAGER.SHOP.NAV_ORDERS"},{key:"disputes",icon:"pi pi-shield",route:"/studio/shop/disputes",i18n:"MANAGER.SHOP.NAV_DISPUTES"},{key:"reviews",icon:"pi pi-star",route:"/studio/shop/reviews",i18n:"MANAGER.SHOP.NAV_REVIEWS"},{key:"promo-codes",icon:"pi pi-ticket",route:"/studio/shop/promo-codes",i18n:"MANAGER.SHOP.NAV_PROMO_CODES"},{key:"sessions",icon:"pi pi-history",route:"/studio/shop/sessions",i18n:"MANAGER.SHOP.NAV_SESSIONS"},{key:"exports",icon:"pi pi-download",route:"/studio/shop/exports",i18n:"MANAGER.SHOP.NAV_EXPORTS"},{key:"gachapons",icon:"pi pi-gift",route:"/studio/shop/gachapons",i18n:"MANAGER.SHOP.NAV_GACHAPONS"},{key:"settings",icon:"pi pi-cog",route:"/studio/shop/settings",i18n:"MANAGER.SHOP.NAV_SETTINGS"},{key:"payments",icon:"pi pi-wallet",route:"/studio/shop/payments",i18n:"MANAGER.SHOP_PAYMENTS.NAV_PAYMENTS"}];static \u0275fac=function(e){return new(e||i)};static \u0275cmp=L({type:i,selectors:[["app-widget-shop-nav"]],inputs:{activeTab:"activeTab",badges:"badges"},decls:3,vars:0,consts:[[1,"shop-nav"],[1,"shop-nav__item",3,"routerLink","shop-nav__item--active"],[1,"shop-nav__item",3,"routerLink"],[1,"shop-nav__label"],[1,"shop-nav__badge"]],template:function(e,r){e&1&&(n(0,"nav",0),V(1,Je,6,9,"a",1,Qe),o()),e&2&&(a(),G(r.tabs))},dependencies:[B,U,D,F,W,j],styles:[".shop-nav[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;padding:8px;background:#fff;border:1px solid var(--bs-border-color, #e7e7ee);border-radius:12px}.shop-nav__item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:9px 12px;font-size:.86rem;font-weight:500;color:#5a5a6b;text-decoration:none;border-radius:9px;white-space:nowrap;position:relative;transition:background .15s ease,color .15s ease}.shop-nav__item[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:.95rem;width:20px;text-align:center;flex-shrink:0}.shop-nav__item[_ngcontent-%COMP%]:hover{background:#f1f1f6;color:#14141f}.shop-nav__item--active[_ngcontent-%COMP%]{background:#2f8eef1f;color:#2f8eef;font-weight:700}.shop-nav__label[_ngcontent-%COMP%]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.shop-nav__badge[_ngcontent-%COMP%]{display:inline-flex!important;align-items:center;justify-content:center;min-width:18px;height:18px;margin-left:auto;padding:0 5px;border-radius:9px;background:#ef4444;color:#fff;font-size:.65rem;font-weight:700;line-height:1}@media (max-width: 991.98px){.shop-nav[_ngcontent-%COMP%]{flex-direction:row;overflow-x:auto;gap:4px;-webkit-overflow-scrolling:touch}.shop-nav[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.shop-nav__item[_ngcontent-%COMP%]{flex-shrink:0}.shop-nav__badge[_ngcontent-%COMP%]{margin-left:4px}}"]})};var Ze=["modalLegalForm"],et=()=>({width:"560px"}),tt=()=>({width:"520px"}),it=(i,t)=>({percent:i,defaultPercent:t}),nt=i=>({percent:i}),ot=(i,t)=>t.key;function at(i,t){i&1&&p(0,"app-widget-loading")}function rt(i,t){if(i&1){let e=A();n(0,"app-widget-api-error",20),h("retry",function(){S(e);let d=m();
1return v(d.checkStripeStatus())}),o()}}function lt(i,t){i&1&&p(0,"i",37)}function st(i,t){i&1&&p(0,"i",38)}function pt(i,t){i&1&&p(0,"i",37)}function ct(i,t){i&1&&p(0,"i",40)}function dt(i,t){if(i&1){let e=A();n(0,"div",1)(1,"div",21)(2,"div",22)(3,"div",23)(4,"div",24),p(5,"i",25),o(),n(6,"span"),c(7),l(8,"translate"),o()(),p(9,"div",26),n(10,"div",27)(11,"div",24),p(12,"i",28),o(),n(13,"span"),c(14),l(15,"translate"),o()(),p(16,"div",29),n(17,"div",30)(18,"div",24),p(19,"i",31),o(),n(20,"span"),c(21),l(22,"translate"),o()(),p(23,"div",29),n(24,"div",30)(25,"div",24),p(26,"i",32),o(),n(27,"span"),c(28),l(29,"translate"),o()()(),n(30,"div",33)(31,"div",34),p(32,"i",35),o(),n(33,"h2"),c(34),l(35,"translate"),o(),n(36,"p"),c(37),l(38,"translate"),o(),n(39,"button",36),h("click",function(){S(e);let d=m();return v(d.onboardStripeConnect())}),b(40,lt,1,0,"i",37)(41,st,1,0,"i",38),c(42),l(43,"translate"),o(),n(44,"button",39),h("click",function(){S(e);let d=m();return v(d.cancelOnboarding())}),b(45,pt,1,0,"i",37)(46,ct,1,0,"i",40),c(47),l(48,"translate"),o()()()()}if(i&2){let e=m();a(7),_(s(8,12,"MANAGER.SHOP.STEP_ACCOUNT")),a(7),_(s(15,14,"MANAGER.SHOP.STEP_STRIPE")),a(7),_(s(22,16,"MANAGER.SHOP.STEP_KYC")),a(7),_(s(29,18,"MANAGER.SHOP.STEP_SHOP")),a(6),C(" ",s(35,20,"MANAGER.SHOP.ONBOARDING_PENDING_TITLE")," "),a(3),_(s(38,22,"MANAGER.SHOP.ONBOARDING_PENDING")),a(2),g("disabled",e.onboardingLoading),a(),f(e.onboardingLoading?40:41),a(2),C(" ",s(43,24,"MANAGER.SHOP.BTN_CONTINUE_ONBOARDING")," "),a(2),g("disabled",e.cancellingOnboarding),a(),f(e.cancellingOnboarding?45:46),a(2),C(" ",s(48,26,"MANAGER.SHOP.BTN_CANCEL_ONBOARDING")," ")}}function mt(i,t){i&1&&p(0,"i",28)}function _t(i,t){i&1&&p(0,"i",31)}function gt(i,t){i&1&&(n(0,"div",43)(1,"div",44),p(2,"div",45),n(3,"div",46),p(4,"i",47),o()(),n(5,"h2"),c(6),l(7,"translate"),o(),n(8,"p"),c(9),l(10,"translate"),o(),n(11,"div",48),p(12,"div",49),o(),n(13,"div",50),p(14,"i",51),c(15),l(16,"translate"),o()()),i&2&&(a(6),C(" ",s(7,3,"MANAGER.SHOP.AWAITING_ACTIVATION_TITLE")," "),a(3),C(" ",s(10,5,"MANAGER.SHOP.AWAITING_ACTIVATION_DESC")," "),a(6),C(" ",s(16,7,"MANAGER.SHOP.AWAITING_ACTIVATION_HINT")," "))}function ut(i,t){i&1&&p(0,"i",37)}function ht(i,t){i&1&&p(0,"i",54)}function ft(i,t){i&1&&p(0,"i",37)}function Ct(i,t){i&1&&p(0,"i",40)}function St(i,t){if(i&1){let e=A();n(0,"div",33)(1,"div",52),p(2,"i",31),o(),n(3,"h2"),c(4),l(5,"translate"),o(),n(6,"p"),c(7),l(8,"translate"),o(),n(9,"button",53),h("click",function(){S(e);let d=m(2);return v(d.onboardStripeConnect())}),b(10,ut,1,0,"i",37)(11,ht,1,0,"i",54),c(12),l(13,"translate"),o(),n(14,"div",55),p(15,"i",51),c(16),l(17,"translate"),o(),n(18,"button",39),h("click",function(){S(e);let d=m(2);return v(d.cancelOnboarding())}),b(19,ft,1,0,"i",37)(20,Ct,1,0,"i",40),c(21),l(22,"translate"),o()()}if(i&2){let e=m(2);a(4),C(" ",s(5,9,"MANAGER.SHOP.KYC_REQUIRED_TITLE")," "),a(3),C(" ",s(8,11,"MANAGER.SHOP.KYC_REQUIRED_DESC")," "),a(2),g("disabled",e.onboardingLoading),a(),f(e.onboardingLoading?10:11),a(2),C(" ",s(13,13,"MANAGER.SHOP.BTN_COMPLETE_KYC")," "),a(4),C(" ",s(17,15,"MANAGER.SHOP.KYC_REQUIRED_HINT")," "),a(2),g("disabled",e.cancellingOnboarding),a(),f(e.cancellingOnboarding?19:20),a(2),C(" ",s(22,17,"MANAGER.SHOP.BTN_CANCEL_ONBOARDING")," ")}}function vt(i,t){if(i&1&&(n(0,"div",1)(1,"div",41)(2,"div",22)(3,"div",23)(4,"div",24),p(5,"i",25),o(),n(6,"span"),c(7),l(8,"translate"),o()(),p(9,"div",42),n(10,"div",23)(11,"div",24),p(12,"i",25),o(),n(13,"span"),c(14),l(15,"translate"),o()(),p(16,"div",29),n(17,"div",30)(18,"div",24),b(19,mt,1,0,"i",28)(20,_t,1,0,"i",31),o(),n(21,"span"),c(22),l(23,"translate"),o()(),p(24,"div",29),n(25,"div",30)(26,"div",24),p(27,"i",32),o(),n(28,"span"),c(29),l(30,"translate"),o()()(),b(31,gt,17,9,"div",43)(32,St,23,19,"div",33),o()()),i&2){let e=m();a(7),_(s(8,10,"MANAGER.SHOP.STEP_ACCOUNT")),a(7),_(s(15,12,"MANAGER.SHOP.STEP_STRIPE")),a(2),y("stripe-pending-step-line--active",e.awaitingActivation),a(),y("stripe-pending-step--active",!0),a(2),f(e.awaitingActivation?19:20),a(3),_(s(23,14,"MANAGER.SHOP.STEP_KYC")),a(7),_(s(30,16,"MANAGER.SHOP.STEP_SHOP")),a(2),f(e.awaitingActivation?31:32)}}function bt(i,t){i&1&&p(0,"i",37)}function xt(i,t){i&1&&p(0,"i",77)}function At(i,t){if(i&1){let e=A();n(0,"div",2)(1,"div",56)(2,"div",57)(3,"div",58)(4,"div",59),p(5,"i",32),o(),n(6,"h2",60),c(7),l(8,"translate"),o(),n(9,"p",61),c(10),l(11,"translate"),o(),n(12,"div",62)(13,"div",63)(14,"div",64),p(15,"i",65),o(),n(16,"div",66)(17,"div",67),c(18),l(19,"translate"),o()()(),n(20,"div",63)(21,"div",68),p(22,"
1i",69),o(),n(23,"div",66)(24,"div",67),c(25),l(26,"translate"),o()()(),n(27,"div",63)(28,"div",70),p(29,"i",71),o(),n(30,"div",66)(31,"div",67),c(32),l(33,"translate"),o()()(),n(34,"div",63)(35,"div",72),p(36,"i",73),o(),n(37,"div",66)(38,"div",67),c(39),l(40,"translate"),o()()(),n(41,"div",63)(42,"div",74),p(43,"i",75),o(),n(44,"div",66)(45,"div",67),c(46),l(47,"translate"),o()()()(),n(48,"button",76),h("click",function(){S(e);let d=m();return v(d.onboardStripeConnect())}),b(49,bt,1,0,"i",37)(50,xt,1,0,"i",77),c(51),l(52,"translate"),o()(),n(53,"div",78),p(54,"i",79),o()()()()}if(i&2){let e=m();a(7),C(" ",s(8,10,"MANAGER.SHOP.ONBOARDING_TITLE")," "),a(3),C(" ",s(11,12,"MANAGER.SHOP.ONBOARDING_DESC")," "),a(8),C(" ",s(19,14,"MANAGER.SHOP.ONBOARDING_STEP_1")," "),a(7),C(" ",s(26,16,"MANAGER.SHOP.ONBOARDING_STEP_2")," "),a(7),C(" ",s(33,18,"MANAGER.SHOP.ONBOARDING_STEP_3")," "),a(7),C(" ",s(40,20,"MANAGER.SHOP.ONBOARDING_STEP_4")," "),a(7),C(" ",s(47,22,"MANAGER.SHOP.ONBOARDING_STEP_5")," "),a(2),g("disabled",e.onboardingLoading),a(),f(e.onboardingLoading?49:50),a(2),C(" ",s(52,24,"MANAGER.SHOP.BTN_CONNECT_STRIPE")," ")}}function Ot(i,t){if(i&1){let e=A();n(0,"a",95),p(1,"span",96),n(2,"span"),c(3),l(4,"translate"),o()(),n(5,"p-button",97),l(6,"translate"),h("onClick",function(){S(e);let d=m(2);return v(d.openStripeDashboard())}),o(),p(7,"p-button",88),l(8,"translate")}i&2&&(a(3),_(s(4,4,"MANAGER.SHOP.BTN_LIVE")),a(2),g("label",s(6,6,"MANAGER.SHOP.BTN_STRIPE_DASHBOARD"))("outlined",!0),a(2),g("label",s(8,8,"MANAGER.SHOP.BTN_ADD_PRODUCT")))}function Et(i,t){i&1&&(p(0,"p-button",88),l(1,"translate")),i&2&&g("label",s(1,1,"MANAGER.SHOP.BTN_ADD_PRODUCT"))}function Pt(i,t){if(i&1){let e=A();n(0,"p-button",98),l(1,"translate"),h("onClick",function(){S(e);let d=m(2);return v(d.onHeaderCta())}),o()}i&2&&g("label",s(1,1,"MANAGER.SHOP.BTN_ADD_COLLECTION"))}function Mt(i,t){if(i&1){let e=A();n(0,"p-button",98),l(1,"translate"),h("onClick",function(){S(e);let d=m(2);return v(d.onHeaderCta())}),o()}i&2&&g("label",s(1,1,"MANAGER.SHOP.PROMO.CREATE"))}function yt(i,t){if(i&1){let e=A();n(0,"span",105),p(1,"i",106),n(2,"span",107),c(3),l(4,"translate"),o()(),n(5,"a",108),h("click",function(){S(e);let d=m(5);return v(d.publishShop())}),c(6),l(7,"translate"),o()}i&2&&(a(3),_(s(4,2,"MANAGER.SHOP.CHECKLIST_STEP_SHOP_PUBLISHED")),a(3),_(s(7,4,"MANAGER.SHOP.CHECKLIST_ACTION_PUBLISH")))}function wt(i,t){if(i&1&&(n(0,"a",109),p(1,"i",106),n(2,"span",107),c(3),l(4,"translate"),o()(),n(5,"a",110),c(6),l(7,"translate"),o()),i&2){let e=m(2).$implicit,r=m(3);g("routerLink",r.getChecklistStepRoute(e.key))("fragment",r.getChecklistStepFragment(e.key)),a(3),_(s(4,6,"MANAGER.SHOP.CHECKLIST_STEP_"+e.key.toUpperCase())),a(2),g("routerLink",r.getChecklistStepRoute(e.key))("fragment",r.getChecklistStepFragment(e.key)),a(),_(s(7,8,"MANAGER.SHOP.CHECKLIST_ACTION_"+r.getChecklistActionKey(e.key)))}}function Tt(i,t){if(i&1&&b(0,yt,8,6)(1,wt,8,10),i&2){let e=m().$implicit;f(e.key==="shop_published"?0:1)}}function kt(i,t){if(i&1&&(p(0,"i",111),n(1,"span",107),c(2),l(3,"translate"),o()),i&2){let e=m().$implicit;a(2),_(s(3,1,"MANAGER.SHOP.CHECKLIST_STEP_"+e.key.toUpperCase()))}}function Nt(i,t){if(i&1&&(n(0,"div",104),b(1,Tt,2,1)(2,kt,4,3),o()),i&2){let e=t.$implicit;y("seller-checklist__step--done",e.completed),a(),f(e.completed?2:1)}}function It(i,t){if(i&1){let e=A();n(0,"div",103)(1,"p-button",112),l(2,"translate"),h("onClick",function(){S(e);let d=m(3);return v(d.publishShop())}),o()()}if(i&2){let e=m(3);a(),g("label",s(2,2,"MANAGER.SHOP.CHECKLIST_PUBLISH_CTA"))("loading",e.publishingShop)}}function Rt(i,t){if(i&1&&(n(0,"div",90)(1,"div",99),p(2,"i",100),n(3,"span"),c(4),l(5,"translate"),o()(),n(6,"div",101),V(7,Nt,3,3,"div",102,ot),o(),b(9,It,3,4,"div",103),o()),i&2){let e=m(2);a(4),_(s(5,2,"MANAGER.SHOP.CHECKLIST_TITLE")),a(3),G(e.sellerChecklist.steps),a(2),f(e.checklistReadyToPublish?9:-1)}}function Lt(i,t){if(i&1&&(n(0,"span"),c(1),l(2,"translate"),o()),i&2){let e=m(3);a(),_(Q(2,1,"MANAGER.SHOP.COMMISSION_OVERRIDE_ACTIVE",ce(4,it,e.commissionPercent,e.defaultCommissionPercent)))}}function Vt(i,t){if(i&1&&(n(0,"span"),c(1),l(2,"translate"),o()),i&2){let e=m(3);a(),_(Q(2,1,"MANAGER.SHOP.COMMISSION_FIXED",pe(4,nt,e.commissionPercent)))}}function Gt(i,t){if(i&1&&(n(0,"div",91),p(1,"i",113),b(2,Lt,3,7,"span")(3,Vt,3,6,"span"),o()),i&2){let e=m(2);a(2),f(e.commissionOverrideActive?2:3)}}function Bt(i,t){if(i&1){let e=A();n(0,"div",92),p(1,"i",114),n(2,"span"),c(3),l(4,"translate"),o(),n(5,"a",115),h("click",function(){S(e);let d=m(2);
1return v(d.openApplicationDialog())}),c(6),l(7,"translate"),o()()}i&2&&(a(3),_(s(4,2,"MANAGER.SHOP.APPLICATION_BANNER")),a(3),_(s(7,4,"MANAGER.SHOP.APPLICATION_BANNER_CTA")))}function Ht(i,t){i&1&&(n(0,"div",91),p(1,"i",75),n(2,"span"),c(3),l(4,"translate"),o(),n(5,"a",116),c(6),l(7,"translate"),o()()),i&2&&(a(3),_(s(4,2,"MANAGER.SHOP.ECO_BANNER")),a(3),_(s(7,4,"MANAGER.SHOP.ECO_BANNER_CTA")))}function Dt(i,t){i&1&&p(0,"app-widget-loading")}function Ut(i,t){if(i&1){let e=A();n(0,"div",80),p(1,"app-widget-shop-nav",81),o(),n(2,"div",82)(3,"div",83)(4,"span",84),p(5,"i",85),c(6),l(7,"translate"),o()(),n(8,"div",86)(9,"button",87),l(10,"translate"),h("click",function(){S(e);let d=m();return v(d.replayTour())}),o(),b(11,Ot,9,10)(12,Et,2,3,"p-button",88)(13,Pt,2,3,"p-button",89)(14,Mt,2,3,"p-button",89),o()(),b(15,Rt,10,4,"div",90)(16,Gt,4,1,"div",91)(17,Bt,8,6,"div",92)(18,Ht,8,6,"div",91),n(19,"div",93),b(20,Dt,1,0,"app-widget-loading"),n(21,"router-outlet",94),h("activate",function(d){S(e);let u=m();return v(u.onChildActivate(d))}),o()()}if(i&2){let e=m();a(),g("activeTab",e.activeTab)("badges",e.navBadges),a(5),C("",s(7,10,"MANAGER.SHOP.TITLE")," "),a(3),g("pTooltip",s(10,12,"MANAGER.SHOP.TOUR_REPLAY_BTN")),a(2),f(e.activeTab==="dashboard"?11:e.activeTab==="products"?12:e.activeTab==="collections"?13:e.activeTab==="promo-codes"?14:-1),a(4),f(e.sellerChecklist&&!e.sellerChecklist.allCompleted?15:-1),a(),f(e.commissionPercent>0&&e.activeTab==="payments"?16:-1),a(),f(e.applicationNeedsCompletion?17:-1),a(),f(e.ecoRepAcknowledged?-1:18),a(2),f(e.navigating?20:-1)}}function zt(i,t){if(i&1&&(n(0,"div",13),p(1,"i",117),n(2,"span"),c(3),o()()),i&2){let e=m();a(3),_(e.applicationError)}}function Wt(i,t){if(i&1){let e=A();n(0,"div",18)(1,"div",118)(2,"button",119),h("click",function(){S(e);let d=m();return v(d.closeGuide())}),p(3,"i",120),o()(),n(4,"div",121),p(5,"i",25),o(),n(6,"h2"),c(7),l(8,"translate"),o(),n(9,"p"),c(10),l(11,"translate"),o(),n(12,"div",122)(13,"p-button",123),l(14,"translate"),h("onClick",function(){S(e);let d=m();return v(d.goToLegalStep())}),o(),n(15,"p-button",124),l(16,"translate"),h("onClick",function(){S(e);let d=m();return v(d.startGuide())}),o()()()}i&2&&(a(7),_(s(8,5,"MANAGER.SHOP.GUIDE_SUCCESS_TITLE")),a(3),_(s(11,7,"MANAGER.SHOP.GUIDE_SUCCESS_DESC")),a(3),g("label",s(14,9,"MANAGER.SHOP.GUIDE_BTN_LEGAL")),a(2),g("label",s(16,11,"MANAGER.SHOP.GUIDE_BTN_DISCOVER"))("outlined",!0))}function Ft(i,t){if(i&1){let e=A();n(0,"div",19)(1,"div",118)(2,"button",119),h("click",function(){S(e);let d=m();return v(d.closeGuide())}),p(3,"i",120),o()(),n(4,"div",125),p(5,"i",126),o(),n(6,"h2"),c(7),l(8,"translate"),o(),n(9,"p",127),c(10),l(11,"translate"),o(),n(12,"div",128)(13,"app-widget-shop-legal-form",129,0),h("formSave",function(d){S(e);let u=m();return v(u.saveLegalAndContinue(d))}),o()(),n(15,"div",130)(16,"p-button",131),l(17,"translate"),h("onClick",function(){S(e);let d=m();return v(d.skipLegalStep())}),o()()()}if(i&2){let e=m();a(7),_(s(8,8,"MANAGER.SHOP.LEGAL_STEP_TITLE")),a(3),C(" ",s(11,10,"MANAGER.SHOP.LEGAL_STEP_DESC")," "),a(3),g("initialValues",e.legalInfo)("saving",e.savingLegal)("saveButtonSeverity","primary")("saveButtonSize",void 0),a(3),g("label",s(17,12,"MANAGER.SHOP.LEGAL_BTN_SKIP"))("outlined",!0)}}var Ke=class i{router=x(ue);route=x(_e);shopService=x(De);shopReviewService=x(Fe);profileService=x(Le);workspaceService=x(fe);toastService=x(he);confirmService=x(Ge);translateService=x(z);socketService=x(ze);shopTourService=x(K);platformId=x(R);destroy$=new ee;socketCleanup=null;loading=!0;apiError=!1;stripeConnectStatus="not_connected";activeTab="dashboard";navigating=!1;activeChild;navBadges={};activeWorkspace=null;showSuccessModal=!1;guideStep=0;onboardingLoading=!1;cancellingOnboarding=!1;awaitingActivation=!1;legalInfo=null;savingLegal=!1;modalLegalFormRef;sellerChecklist=null;publishingShop=!1;sellerPlan="free";commissionPercent=0;defaultCommissionPercent=0;commissionOverrideActive=!1;ecoRepAcknowledged=!0;shopApplication=null;showApplicationDialog=!1;submittingApplication=!1;applicationError=null;applicationDescription="";applicationPortfolioUrl="";applicationTermsAccepted=!1;get applicationNeedsCompletion(){return this.shopApplication?.needsCompletion===!0}get canSubmitApplication(){return this.applicationTermsAccepted&&this.applicationDescription.trim().length>=50&&!this.submittingApplication}openApplicationDialog(){this.applicationDescription="",this.applicationPortfolioUrl="",this.applicationTermsAccepted=!1,this.applicationError=null,this.showApplicationDialog=!0}submitApplication(){return O(this,null,function*(){if(this.canSubmitApplication){this.submittingApplication=!0,this.applicationError=null;try{let t=this.applicationPortfolioUrl.trim();this.shopApplication=yield this.shopService.completeShopApplication(Z(N({description:this.applicationDescription.trim()},t?{portfolioUrl:t}:{}),{termsAccepted:!0})),this.showApplicationDialog=!1,this.toastService.success(this.translateService.instant("MANAGER.SHOP.APPLICATION_SENT"))}catch(t){let e=t?.error?.message;this.applicationError=Array.isArray(e)?e.join(" "):e||t?.message||"Error"}finally{this.submittingApplication=!1}}})}loadShopApplication(){return O(this,null,function*(){try{let t=yield this.shopService.getShopApplication();this.shopApplication=t.application}catch{this.shopApplication=null}})}get checklistReadyToPublish(){if(!this.sellerChecklist)return!1;let t=this.sellerChecklist.steps,e=t.find(M=>M.key==="legal_info")?.completed,r=t.find(M=>M.key==="first_product")?.completed,d=t.find(M=>M.key==="shipping")?.completed,u=t.find(M=>M.key==="shop_published")?.completed;return!!e&&!!r&&!!d&&!u}getChecklistStepRoute(t){return t==="first_product"?"/studio/shop/products/new":"/studio/shop/settings"}getChecklistStepFragment(t){if(t==="legal_info")return"legal";if(t==="shipping")return"shipping";if(t==="vat_rates")return"vat"}getChecklistActionKey(t){switch(t){case"legal_info":return"LEGAL";case"first_product":return"PRODUCT";case"shipping":return"SHIPPING";case"vat_rates":return"VAT";case"shop_published":return"PUBLISH";default:return"LEGAL"}}
1publishShop(){return O(this,null,function*(){if(!this.publishingShop){this.publishingShop=!0;try{let t=yield I(this.profileService.getMyBioPages()),e=t.find(r=>r.isDefault)||t[0];if(!e){this.toastService.error("Aucune page trouv\xE9e");return}yield I(this.profileService.updateBioPage(e.id,{shopEnabled:!0})),this.toastService.success(this.translateService.instant("MANAGER.SHOP.PUBLISH_SUCCESS")),this.shopService.refreshChecklist(),this.shopService.refresh()}catch(t){this.toastService.error(t?.error?.message||t?.message||"Error")}finally{this.publishingShop=!1}}})}ngOnInit(){this.checkStripeStatus(),this.updateActiveTab(this.router.url),this.workspaceService.activeWorkspaceDetails$.pipe(P(this.destroy$)).subscribe(t=>{let e=this.activeWorkspace?.id!==t?.id;this.activeWorkspace=t,e&&this.checkStripeStatus()}),E(this.platformId)&&this.route.queryParams.pipe(P(this.destroy$)).subscribe(t=>O(this,null,function*(){t.stripe_success==="1"?(yield this.checkStripeStatus(),this.stripeConnectStatus==="active"?this.onStripeActivated():this.stripeConnectStatus==="restricted"&&this.startAwaitingActivation()):t.stripe_refresh==="1"&&(this.toastService.info(this.translateService.instant("MANAGER.SHOP.STRIPE_ONBOARDING_REFRESH")),this.checkStripeStatus())})),this.router.events.pipe(P(this.destroy$),ne(t=>t instanceof H||t instanceof X||t instanceof de||t instanceof me)).subscribe(t=>{t instanceof H&&t.url.startsWith("/studio/shop")?this.navigating=!0:t instanceof H||(this.navigating=!1,t instanceof X&&this.updateActiveTab(t.urlAfterRedirects))}),this.shopService.refresh$.pipe(P(this.destroy$)).subscribe(()=>this.checkStripeStatus()),this.shopService.checklistRefresh$.pipe(P(this.destroy$)).subscribe(()=>this.loadSellerChecklist())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.socketCleanup?.(),this.shopTourService.stopTour()}checkStripeStatus(){return O(this,null,function*(){this.loading=!0,this.apiError=!1;try{let t=yield this.shopService.getStripeConnectStatus();this.stripeConnectStatus=t.status,this.isStripeConnected&&(this.loadNavBadges(),this.loadSellerChecklist(),this.loadShopApplication())}catch{this.apiError=!0}finally{this.loading=!1}})}updateActiveTab(t){let e=t.split("?")[0].split("#")[0];e==="/studio/shop"?this.activeTab="dashboard":e==="/studio/shop/products"?this.activeTab="products":e==="/studio/shop/collections"?this.activeTab="collections":e==="/studio/shop/orders"?this.activeTab="orders":e==="/studio/shop/disputes"?this.activeTab="disputes":e==="/studio/shop/reviews"?this.activeTab="reviews":e==="/studio/shop/promo-codes"?this.activeTab="promo-codes":e==="/studio/shop/sessions"?this.activeTab="sessions":e==="/studio/shop/exports"?this.activeTab="exports":e==="/studio/shop/gachapons"?this.activeTab="gachapons":e==="/studio/shop/settings"?this.activeTab="settings":e==="/studio/shop/payments"&&(this.activeTab="payments")}loadNavBadges(){return O(this,null,function*(){try{let[t,e]=yield Promise.all([this.shopService.getOrderCounts().catch(()=>({})),I(this.shopReviewService.getReviewStats()).catch(()=>null)]),r=(t.paid||0)+(t.processing||0),d=e?.pendingCount||0;this.navBadges=N(N({},r>0?{orders:r}:{}),d>0?{reviews:d}:{})}catch{}})}loadSellerChecklist(){return O(this,null,function*(){try{let t=yield this.shopService.getSellerChecklist();this.sellerPlan=t.plan,this.commissionPercent=t.commissionPercent,this.defaultCommissionPercent=t.defaultCommissionPercent,this.commissionOverrideActive=t.commissionOverrideActive,this.ecoRepAcknowledged=t.ecoRepAcknowledged!==!1,this.sellerChecklist=t.allCompleted?null:t}catch{}})}onChildActivate(t){this.activeChild=t}onHeaderCta(){this.activeChild?.openCreateDialog?.()}get isStripeConnected(){return this.stripeConnectStatus==="active"}get isShopActiveForWorkspace(){return this.isStripeConnected&&this.activeWorkspace?.hasShop!==!1}startAwaitingActivation(){this.awaitingActivation=!0,this.loading=!1,this.socketCleanup?.(),this.socketCleanup=this.socketService.on("shop:stripe-status",t=>{t.status==="active"?this.onStripeActivated():this.stripeConnectStatus=t.status}),ie(5e3).pipe(P(this.destroy$)).subscribe(()=>O(this,null,function*(){if(this.awaitingActivation)try{let t=yield this.shopService.getStripeConnectStatus();this.stripeConnectStatus=t.status,t.status==="active"&&this.onStripeActivated()}catch{}})),te(15e3).pipe(P(this.destroy$)).subscribe(()=>{this.awaitingActivation&&(this.awaitingActivation=!1,this.socketCleanup?.(),this.socketCleanup=null)})}onStripeActivated(){this.awaitingActivation=!1,this.stripeConnectStatus="active",this.socketCleanup?.(),this.socketCleanup=null,this.toastService.success(this.translateService.instant("MANAGER.SHOP.STRIPE_ONBOARDING_SUCCESS")),this.showSuccessModal=!0,this.guideStep=0,this.loadNavBadges(),this.loadSellerChecklist(),this.loadShopApplication()}onboardStripeConnect(){return O(this,null,function*(){this.onboardingLoading=!0;try{let t=yield this.shopService.onboardStripeConnect();E(this.platformId)&&(window.location.href=t.url)}catch(t){this.onboardingLoading=!1,this.toastService.error(t?.error?.message||t?.message||"Error")}})}cancelOnboarding(){return O(this,null,function*(){if(yield this.confirmService.confirm({message:this.translateService.instant("MANAGER.SHOP.CANCEL_ONBOARDING_CONFIRM"),header:this.translateService.instant("MANAGER.SHOP.CANCEL_ONBOARDING_TITLE"),severity:"danger",acceptLabel:this.translateService.instant("MANAGER.SHOP.BTN_CANCEL_ONBOARDING"),rejectLabel:this.translateService.instant("COMMON.CANCEL")})){this.cancellingOnboarding=!0;try{yield this.shopService.cancelStripeOnboarding(),this.toastService.success(this.translateService.instant("MANAGER.SHOP.CANCEL_ONBOARDING_SUCCESS")),this.stripeConnectStatus="not_connected"}catch(e){this.toastService.error(e?.error?.message||e?.message||"Error")}finally{this.cancellingOnboarding=!1}}})}startGuide(){this.showSuccessModal=!1,this.guideStep=0,setTimeout(()=>this.shopTourService.startTour(),300)}goToLegalStep(){this.guideStep=-1}skipLegalStep(){this.showSuccessModal=!1,this.guideStep=0,setTimeout(()=>this.shopTourService.startTour(),300)}saveLegalAndContinue(t){return O(this,null,function*(){this.savingLegal=!0;try{this.modalLegalFormRef?.clearApiErrors();let e=yield this.shopService.updateLegalInfo(t);this.legalInfo=e,this.toastService.success(this.translateService.instant("MANAGER.SHOP.LEGAL_SAVED")),this.loadSellerChecklist(),this.showSuccessModal=!1,this.guideStep=0,setTimeout(()=>this.shopTourService.startTour(),300)}catch(e){e?.error&&this.modalLegalFormRef?.applyApiErrors(e.error);let r=e?.error?.message;Array.isArray(r)||this.toastService.error(r||e?.message||"Error")}finally{this.savingLegal=!1}})}closeGuide(){this.showSuccessModal=!1,this.guideStep=0,this.shopTourService.stopTour(),this.router.navigate(["/studio/shop"],{replaceUrl:!0})}replayTour(){this.shopTourService.reset(),this.shopTourService.startTour()}openStripeDashboard(){return O(this,null,function*(){try{let t=yield this.shopService.getStripeDashboardLink();E(this.platformId)&&window.open(t.url,"_blank")}catch(t){this.toastService.error(t?.error?.message||t?.message||"Error")}})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=L({type:i,selectors:[["app-view-manager-shop-layout"]],viewQuery:function(e,r){if(e&1&&re(Ze,5),e&2){let d;le(d=se())&&(r.modalLegalFormRef=d.first)}},decls:39,vars:55,consts:[["modalLegalForm",""],[1,"stripe-pending-container"],[1,"upsell-container"],[3,"visibleChange","visible","modal","closable","draggable","resizable","header"],[1,"mb-3"],["for","applicationDescription",1,"form-label","fw-semibold"],["
1id","applicationDescription","pTextarea","","rows","5","maxlength","2000",1,"w-100",3,"ngModelChange","ngModel","placeholder"],[1,"text-muted"],["for","applicationPortfolio",1,"form-label","fw-semibold"],["id","applicationPortfolio","pInputText","","type","url","placeholder","https://\u2026",1,"w-100",3,"ngModelChange","ngModel"],[1,"d-flex","align-items-start","gap-2","mb-3"],["inputId","applicationTerms",3,"ngModelChange","binary","ngModel"],["for","applicationTerms",1,"small"],[1,"shop-infobox","shop-infobox--warn","mb-3"],[1,"d-flex","justify-content-end","gap-2"],["severity","secondary",3,"onClick","label","outlined","disabled"],["icon","pi pi-send",3,"onClick","label","loading","disabled"],["styleClass","shop-success-dialog",3,"visibleChange","onHide","visible","modal","closable","draggable","resizable","showHeader"],[1,"guide-success"],[1,"guide-legal"],[3,"retry"],[1,"stripe-pending-card"],[1,"stripe-pending-progress"],[1,"stripe-pending-step","stripe-pending-step--done"],[1,"stripe-pending-step-icon"],[1,"pi","pi-check"],[1,"stripe-pending-step-line","stripe-pending-step-line--active"],[1,"stripe-pending-step","stripe-pending-step--active"],[1,"pi","pi-spin","pi-spinner"],[1,"stripe-pending-step-line"],[1,"stripe-pending-step"],[1,"pi","pi-id-card"],[1,"pi","pi-shop"],[1,"stripe-pending-body"],[1,"stripe-pending-icon-wrapper"],[1,"pi","pi-credit-card"],["type","button",1,"stripe-pending-cta",3,"click","disabled"],[1,"pi","pi-spin","pi-spinner","me-2"],[1,"pi","pi-arrow-right","me-2"],["type","button",1,"stripe-pending-cancel",3,"click","disabled"],[1,"pi","pi-times","me-2"],[1,"stripe-pending-card","stripe-pending-card--restricted"],[1,"stripe-pending-step-line","stripe-pending-step-line--done"],[1,"stripe-pending-body","stripe-pending-body--awaiting"],[1,"stripe-awaiting-animation"],[1,"stripe-awaiting-pulse"],[1,"stripe-awaiting-icon"],[1,"pi","pi-verified"],[1,"stripe-awaiting-progress"],[1,"stripe-awaiting-progress-bar"],[1,"stripe-awaiting-hint"],[1,"pi","pi-info-circle","me-2"],[1,"stripe-pending-icon-wrapper","stripe-pending-icon-wrapper--warn"],["type","button",1,"stripe-pending-cta","stripe-pending-cta--warn",3,"click","disabled"],[1,"pi","pi-id-card","me-2"],[1,"stripe-awaiting-hint","mt-3"],[1,"upsell-card"],[1,"upsell-layout"],[1,"upsell-text"],[1,"upsell-icon-wrapper","upsell-icon--shop","mb-3"],[1,"upsell-title"],[1,"upsell-desc"],[1,"upsell-features"],[1,"upsell-feature"],[1,"upsell-feature-icon","upsell-fi--green"],[1,"pi","pi-lock"],[1,"upsell-feature-text"],[1,"upsell-feature-label"],[1,"upsell-feature-icon","upsell-fi--blue"],[1,"pi","pi-percentage"],[1,"upsell-feature-icon","upsell-fi--orange"],[1,"pi","pi-truck"],[1,"upsell-feature-icon","upsell-fi--purple"],[1,"pi","pi-th-large"],[1,"upsell-feature-icon","upsell-fi--cyan"],[1,"pi","pi-sync"],["type","button",1,"upsell-cta","upsell-cta--shop",3,"click","disabled"],[1,"pi","pi-credit-card","me-2"],[1,"upsell-illustration","upsell-illust--shop"],[1,"upsell-illustration-icon","pi","pi-shop"],[1,"shop-mobile-nav","d-md-none","mb-3"],[3,"activeTab","badges"],[1,"d-flex","justify-content-between","align-items-center","flex-wrap","gap-2","mb-3"],[1,"d-flex","align-items-center","gap-2"],[1,"text-light","fs-6"],[1,"pi","pi-shop","me-2"],[1,"d-flex","align-items-center","gap-2","shop-header-actions"],["pButton","","type","button","icon","pi pi-question-circle","tooltipPosition","bottom",1,"p-button-text","p-button-sm","p-button-secondary",3,"click","pTooltip"],["icon","pi pi-plus","severity","primary","size","small","routerLink","/studio/shop/products/new","queryParamsHandling","preserve",3,"label"],["icon","pi pi-plus","severity","primary","size","small",3,"label"],[1,"bg-white","border","rounded-3","p-3","mb-3"],[1,"shop-infobox","shop-infobox--info"],[1,"shop-infobox","shop-infobox--warn"],[1,"shop-tab-content","bg-white","border"],[3,"activate"],["href","/studio/shop/live","target","_blank","rel","noopener",1,"live-btn"],[1,"live-btn__dot"],["icon","pi pi-external-link","severity","secondary","size","small","styleClass","d-none d-md-inline-flex","data-tour","stripe-dashboard",3,"onClick","label","outlined"],["
1icon","pi pi-plus","severity","primary","size","small",3,"onClick","label"],[1,"seller-checklist__header"],[1,"pi","pi-list-check"],[1,"seller-checklist__steps"],[1,"seller-checklist__step",3,"seller-checklist__step--done"],[1,"seller-checklist__cta","mt-3"],[1,"seller-checklist__step"],[1,"seller-checklist__step-link"],[1,"pi","pi-circle"],[1,"seller-checklist__label"],[1,"seller-checklist__link",2,"cursor","pointer",3,"click"],[1,"seller-checklist__step-link",3,"routerLink","fragment"],[1,"seller-checklist__link",3,"routerLink","fragment"],[1,"pi","pi-check-circle"],["icon","pi pi-megaphone","severity","success",3,"onClick","label","loading"],[1,"pi","pi-bolt"],[1,"pi","pi-exclamation-triangle"],["href","javascript:void(0)",1,"shop-infobox__link",3,"click"],["routerLink","/studio/shop/settings","fragment","eco",1,"ms-2"],[1,"pi","pi-times-circle"],[1,"d-flex","justify-content-end"],["type","button",1,"guide-legal-close",3,"click"],[1,"pi","pi-times"],[1,"guide-success-check"],[1,"d-flex","flex-column","align-items-center","gap-2","mt-4"],["icon","pi pi-building",3,"onClick","label"],["icon","pi pi-compass","severity","secondary",3,"onClick","label","outlined"],[1,"guide-legal-icon"],[1,"pi","pi-building"],[1,"guide-legal-desc"],[1,"guide-legal-form"],["saveButtonKey","MANAGER.SHOP.LEGAL_BTN_SAVE",3,"formSave","initialValues","saving","saveButtonSeverity","saveButtonSize"],[1,"d-flex","justify-content-start","mt-3"],["severity","secondary",3,"onClick","label","outlined"]],template:function(e,r){e&1&&(b(0,at,1,0,"app-widget-loading")(1,rt,1,0,"app-widget-api-error")(2,dt,49,28,"div",1)(3,vt,33,18,"div",1)(4,At,55,26,"div",2)(5,Ut,22,14),n(6,"p-dialog",3),l(7,"translate"),k("visibleChange",function(u){return T(r.showApplicationDialog,u)||(r.showApplicationDialog=u),u}),n(8,"p",4),c(9),l(10,"translate"),o(),n(11,"div",4)(12,"label",5),c(13),l(14,"translate"),o(),n(15,"textarea",6),l(16,"translate"),k("ngModelChange",function(u){return T(r.applicationDescription,u)||(r.applicationDescription=u),u}),o(),n(17,"small",7),c(18),l(19,"translate"),o()(),n(20,"div",4)(21,"label",8),c(22),l(23,"translate"),o(),n(24,"input",9),k("ngModelChange",function(u){return T(r.applicationPortfolioUrl,u)||(r.applicationPortfolioUrl=u),u}),o()(),n(25,"div",10)(26,"p-checkbox",11),k("ngModelChange",function(u){return T(r.applicationTermsAccepted,u)||(r.applicationTermsAccepted=u),u}),o(),n(27,"label",12),c(28),l(29,"translate"),o()(),b(30,zt,4,1,"div",13),n(31,"div",14)(32,"p-button",15),l(33,"translate"),h("onClick",function(){return r.showApplicationDialog=!1}),o(),n(34,"p-button",16),l(35,"translate"),h("onClick",function(){return r.submitApplication()}),o()()(),n(36,"p-dialog",17),k("visibleChange",function(u){return T(r.showSuccessModal,u)||(r.showSuccessModal=u),u}),h("onHide",function(){return r.closeGuide()}),b(37,Wt,17,13,"div",18)(38,Ft,18,14,"div",19),o()),e&2&&(f(r.loading?0:r.apiError?1:r.stripeConnectStatus==="onboarding"?2:r.stripeConnectStatus==="restricted"||r.awaitingActivation?3:r.isStripeConnected?5:4),a(6),q($(53,et)),w("visible",r.showApplicationDialog),g("modal",!0)("closable",!r.submittingApplication)("draggable",!1)("resizable",!1)("header",s(7,35,"MANAGER.SHOP.APPLICATION_TITLE")),a(3),_(s(10,37,"MANAGER.SHOP.APPLICATION_INTRO")),a(4),_(s(14,39,"MANAGER.SHOP.APPLICATION_DESC_LABEL")),a(2),w("ngModel",r.applicationDescription),g("placeholder",s(16,41,"MANAGER.SHOP.APPLICATION_DESC_PLACEHOLDER")),a(3),_(s(19,43,"MANAGER.SHOP.APPLICATION_DESC_HINT")),a(4),_(s(23,45,"MANAGER.SHOP.APPLICATION_PORTFOLIO_LABEL")),a(2),w("ngModel",r.applicationPortfolioUrl),a(2),g("binary",!0),w("ngModel",r.applicationTermsAccepted),a(2),_(s(29,47,"MANAGER.SHOP.APPLICATION_TERMS")),a(2),f(r.applicationError?30:-1),a(2),g("label",s(33,49,"COMMON.CANCEL"))("outlined",!0)("disabled",r.submittingApplication),a(2),g("label",s(35,51,"MANAGER.SHOP.APPLICATION_SUBMIT"))("loading",r.submittingApplication)("disabled",!r.canSubmitApplication),a(2),q($(54,tt)),w("visible",r.showSuccessModal),g("modal",!0)("closable",!0)("draggable",!1)("resizable",!1)("showHeader",!1),a(),f(r.guideStep===0?37:r.guideStep===-1?38:-1))},dependencies:[B,U,ge,D,xe,Ce,Se,be,ve,F,W,Me,Ee,Pe,ke,Te,Re,Ie,we,ye,Ne,He,Be,j,Ae,Oe,Ve,Y,We],styles:[".shop-tab-content[_ngcontent-%COMP%]{background:var(--p-surface-card);border:1px solid var(--p-surface-border);border-radius:10px;padding:1.25rem}.stripe-status-banner[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.5rem;padding:1rem 1.25rem;border-radius:10px;font-size:.9rem}.stripe-status-banner[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-top:2px;font-size:1.1rem}.stripe-status-banner--info[_ngcontent-%COMP%]{background:#3b82f614;border:1px solid rgba(59,130,246,.2);color:var(--p-blue-400)}.stripe-status-banner--warn[_ngcontent-%COMP%]{background:#f59e0b14;border:1px solid rgba(245,158,11,.2);color:var(--p-yellow-500)}.stripe-status-banner--warn[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:var(--p-yellow-400)}.stripe-status-banner--warn[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}
1.stripe-pending-container[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:2rem 1rem}.stripe-pending-card[_ngcontent-%COMP%]{background:var(--p-surface-card);border:1px solid var(--p-surface-border);border-radius:16px;max-width:560px;width:100%;padding:2rem;text-align:center}.stripe-pending-progress[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:0;margin-bottom:2rem;padding:0 1rem}.stripe-pending-step[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:.5rem;min-width:80px}.stripe-pending-step[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.75rem;color:var(--p-text-muted-color);white-space:nowrap}.stripe-pending-step--done[_ngcontent-%COMP%]   .stripe-pending-step-icon[_ngcontent-%COMP%]{background:#22c55e26;color:#22c55e;border-color:#22c55e4d}.stripe-pending-step--done[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#22c55e}.stripe-pending-step--active[_ngcontent-%COMP%]   .stripe-pending-step-icon[_ngcontent-%COMP%]{background:#3b82f61f;color:var(--p-blue-400);border-color:#3b82f64d}.stripe-pending-step--active[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--p-blue-400);font-weight:600}.stripe-pending-step-icon[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--p-surface-ground);border:2px solid var(--p-surface-border);color:var(--p-text-muted-color);font-size:1rem;transition:all .2s}.stripe-pending-step-line[_ngcontent-%COMP%]{flex:1;height:2px;background:var(--p-surface-border);margin:0 .25rem 1.5rem}.stripe-pending-step-line--done[_ngcontent-%COMP%]{background:#22c55e}.stripe-pending-step-line--active[_ngcontent-%COMP%]{background:linear-gradient(90deg,#22c55e,var(--p-blue-400))}.stripe-pending-body[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:700;margin:.75rem 0 .5rem;color:var(--p-text-color)}.stripe-pending-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:.9rem;color:var(--p-text-muted-color);line-height:1.5;margin:0 0 1.5rem;max-width:420px;margin-left:auto;margin-right:auto}.stripe-pending-icon-wrapper[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:#3b82f61f;color:var(--p-blue-400);font-size:1.5rem;margin-bottom:.25rem}.stripe-pending-icon-wrapper--warn[_ngcontent-%COMP%]{background:#f59e0b1f;color:var(--p-yellow-500)}.stripe-pending-cta[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;padding:.75rem 1.75rem;border:none;border-radius:10px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .15s;background:linear-gradient(135deg,#3b82f6,#667eea);color:#fff}.stripe-pending-cta[_ngcontent-%COMP%]:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px)}.stripe-pending-cta[_ngcontent-%COMP%]:disabled{opacity:.7;cursor:not-allowed;transform:none;filter:none}.stripe-pending-cta--warn[_ngcontent-%COMP%]{background:linear-gradient(135deg,#f59e0b,#f97316)}.stripe-pending-cancel[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;padding:.6rem 1.25rem;margin-top:.75rem;border:1px solid var(--p-surface-border);border-radius:10px;font-size:.85rem;font-weight:500;cursor:pointer;transition:all .15s;background:transparent;color:var(--p-text-muted-color)}.stripe-pending-cancel[_ngcontent-%COMP%]:hover:not(:disabled){background:#ef444414;border-color:#ef44444d;color:var(--p-red-400)}.stripe-pending-cancel[_ngcontent-%COMP%]:disabled{opacity:.7;cursor:not-allowed}.stripe-pending-body--awaiting[_ngcontent-%COMP%]{padding-top:1.5rem}.stripe-awaiting-animation[_ngcontent-%COMP%]{position:relative;display:inline-flex;align-items:center;justify-content:center;width:80px;height:80px;margin-bottom:.5rem}.stripe-awaiting-pulse[_ngcontent-%COMP%]{position:absolute;inset:0;border-radius:50%;background:#22c55e26;animation:_ngcontent-%COMP%_awaiting-pulse 2s ease-in-out infinite}.stripe-awaiting-icon[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;font-size:1.5rem;animation:_ngcontent-%COMP%_awaiting-icon-glow 2s ease-in-out infinite}.stripe-awaiting-hint[_ngcontent-%COMP%]{display:inline-flex;align-items:center;font-size:.82rem;color:var(--p-text-muted-color);background:var(--p-surface-ground);padding:.5rem 1rem;border-radius:8px;margin-top:.5rem}@keyframes _ngcontent-%COMP%_awaiting-pulse{0%,to{transform:scale(1);opacity:.6}50%{transform:scale(1.35);opacity:0}
1}@keyframes _ngcontent-%COMP%_awaiting-icon-glow{0%,to{box-shadow:0 0 #22c55e4d}50%{box-shadow:0 0 20px 5px #22c55e26}}.stripe-awaiting-progress[_ngcontent-%COMP%]{width:100%;max-width:280px;height:4px;background:var(--p-surface-border);border-radius:4px;overflow:hidden;margin:1rem auto 0}.stripe-awaiting-progress-bar[_ngcontent-%COMP%]{height:100%;border-radius:4px;background:linear-gradient(90deg,#22c55e,#16a34a);animation:_ngcontent-%COMP%_awaiting-progress 15s linear forwards}@keyframes _ngcontent-%COMP%_awaiting-progress{0%{width:0%}to{width:100%}}.guide-success[_ngcontent-%COMP%]{text-align:center;padding:1.5rem 0 .5rem}.guide-success[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.35rem;font-weight:700;margin:1.25rem 0 .5rem;color:var(--p-text-color)}.guide-success[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:.95rem;color:var(--p-text-muted-color);line-height:1.5;max-width:380px;margin:0 auto}.guide-success-check[_ngcontent-%COMP%]{width:72px;height:72px;border-radius:50%;background:#22c55e1f;display:inline-flex;align-items:center;justify-content:center;animation:_ngcontent-%COMP%_guideCheckPop .5s cubic-bezier(.34,1.56,.64,1)}.guide-success-check[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:2rem;color:#22c55e}@keyframes _ngcontent-%COMP%_guideCheckPop{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}.guide-legal[_ngcontent-%COMP%]{text-align:center;padding:1rem 0 .5rem}.guide-legal[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700;margin:1rem 0 .25rem;color:var(--p-text-color)}.guide-legal-icon[_ngcontent-%COMP%]{width:64px;height:64px;border-radius:50%;background:#f59e0b1f;display:inline-flex;align-items:center;justify-content:center}.guide-legal-icon[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:1.75rem;color:#f59e0b}.guide-legal-desc[_ngcontent-%COMP%]{font-size:.9rem;color:var(--p-text-muted-color);line-height:1.5;max-width:420px;margin:0 auto 1.25rem}.guide-legal-form[_ngcontent-%COMP%]{text-align:left}.guide-legal-label[_ngcontent-%COMP%]{display:block;font-size:.85rem;font-weight:600;color:var(--p-text-color);margin-bottom:.25rem;min-height:1.4em}.guide-legal-close[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;font-size:1.1rem;color:var(--p-text-muted-color);padding:.25rem;line-height:1}.guide-legal-close[_ngcontent-%COMP%]:hover{color:var(--p-text-color)}.seller-checklist__header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-weight:600;font-size:.95rem;color:var(--p-text-color);padding-bottom:.75rem;border-bottom:1px solid var(--p-surface-border);margin-bottom:.5rem}.seller-checklist__header[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:var(--p-primary-color);font-size:1.1rem}.seller-checklist__steps[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:0}.seller-checklist__step[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.625rem;padding:.5rem .25rem;font-size:.875rem}.seller-checklist__step[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{flex-shrink:0;font-size:1.1rem;color:var(--p-text-muted-color)}.seller-checklist__step--done[_ngcontent-%COMP%]{opacity:.5}.seller-checklist__step--done[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{color:#22c55e}.seller-checklist__step--done[_ngcontent-%COMP%]   .seller-checklist__label[_ngcontent-%COMP%]{text-decoration:line-through}.seller-checklist__label[_ngcontent-%COMP%]{flex:1;min-width:0;font-weight:500;color:var(--p-text-color)}.seller-checklist__step-link[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.625rem;flex:1;min-width:0;text-decoration:none;color:inherit;border-radius:.375rem;transition:background-color .15s}.seller-checklist__step-link[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{flex-shrink:0;font-size:1.1rem;color:var(--p-text-muted-color)}.seller-checklist__step-link[_ngcontent-%COMP%]   .seller-checklist__label[_ngcontent-%COMP%]{color:var(--p-text-color)}.seller-checklist__step-link[_ngcontent-%COMP%]:hover   .seller-checklist__label[_ngcontent-%COMP%]{color:var(--p-primary-color);text-decoration:underline}.seller-checklist__link[_ngcontent-%COMP%]{flex-shrink:0;font-size:.8rem;font-weight:600;white-space:nowrap;color:var(--p-primary-color);text-decoration:none}.seller-checklist__link[_ngcontent-%COMP%]:hover{text-decoration:underline}.live-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:8px;font-size:13px;font-weight:600;text-decoration:none;color:#fff;background:linear-gradient(135deg,#ef4444,#dc2626);transition:transform .15s,box-shadow .15s;cursor:pointer}.live-btn[_ngcontent-%COMP%]:hover{transform:translateY(-1px);box-shadow:0 4px 12px #ef444459;color:#fff;text-decoration:none}.live-btn__dot[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background:#fff;animation:_ngcontent-%COMP%_live-pulse 1.5s ease-in-out infinite}@keyframes _ngcontent-%COMP%_live-pulse{0%,to{opacity:1}50%{opacity:.4}}.shop-infobox[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.625rem;margin-bottom:.75rem;padding:.75rem 1.25rem;border-radius:10px;font-size:.875rem}.shop-infobox[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{flex-shrink:0;font-size:1rem}.shop-infobox[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{flex:1;line-height:1.4}.shop-infobox__link[_ngcontent-%COMP%]{flex-shrink:0;font-weight:600;white-space:nowrap;text-decoration:none}.shop-infobox__link[_ngcontent-%COMP%]:hover{text-decoration:underline}.shop-infobox--info[_ngcontent-%COMP%]{background:#eff6ff;border:1px solid #dbeafe;color:#1e40af}.shop-infobox--info[_ngcontent-%COMP%]   .shop-infobox__link[_ngcontent-%COMP%]{color:#1e40af}.shop-infobox--warn[_ngcontent-%COMP%]{background:#fffbeb;border:1px solid #fde68a;color:#92400e}.shop-infobox--warn[_ngcontent-%COMP%]   .shop-infobox__link[_ngcontent-%COMP%]{color:#92400e}.commission-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;padding:.2rem .5rem;border-radius:6px;font-size:.75rem;font-weight:600;line-height:1;cursor:default}.commission-badge[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{font-size:.625rem}.commission-badge--free[_ngcontent-%COMP%]{background:#ef44441a;color:#dc2626;border:1px solid rgba(239,68,68,.2)}.commission-badge--pro[_ngcontent-%COMP%]{background:#3b82f61a;color:#2563eb;border:1px solid rgba(59,130,246,.2)}.commission-badge--business[_ngcontent-%COMP%]{background:#22c55e1a;color:#16a34a;border:1px solid rgba(34,197,94,.2)}"]})};export{Ke as ViewManagerShopLayoutComponent};

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.