1import{a as ge}from"./chunk-DEAO7SVK.js";import{a as ce}from"./chunk-C35Z3YQA.js";import"./chunk-QTBWJBL6.js";import{a as ue,b as _e}from"./chunk-7D3HORSI.js";import{a as se,b as de}from"./chunk-22WJKAIZ.js";import{b as me}from"./chunk-SLWPYULI.js";import{b as ee}from"./chunk-6S5SATLI.js";import{a as ne,b as ae}from"./chunk-44BDWJO3.js";import{a as re,b as oe}from"./chunk-W6FQLWKF.js";import"./chunk-6MXSXX3N.js";import"./chunk-MT62CIDI.js";import"./chunk-XWDSR7V3.js";import{a as te,b as ie}from"./chunk-OAED5FIG.js";import{a as q,b as X}from"./chunk-P37GQ53N.js";import{b as le,c as pe}from"./chunk-NZ226J7R.js";import"./chunk-7EBKYMB6.js";import"./chunk-YK3HMHC4.js";import"./chunk-2DRXLVRR.js";import{d as Z,e as $}from"./chunk-OFHUO5H7.js";import"./chunk-M3XSAKW4.js";import"./chunk-H76LZNGX.js";import"./chunk-PGR2NPNS.js";import"./chunk-OZD37XM5.js";import"./chunk-DLIVM562.js";import"./chunk-CV2ZWZQE.js";import"./chunk-AVEXXPAT.js";import{ja as j}from"./chunk-FHU4TM37.js";import"./chunk-UUEFXD6N.js";import{D as H,c as U,g as W,l as z,z as Q}from"./chunk-Q2KKZV5J.js";import"./chunk-JICM7NVH.js";import{a as J}from"./chunk-BD6EMWWF.js";import"./chunk-AB6CKZTE.js";import{d as F,e as K}from"./chunk-DIGPPQJE.js";import{x as Y}from"./chunk-EU6HCBUP.js";import"./chunk-KAJMKXZ6.js";import{D as G}from"./chunk-ZAQTNZYS.js";import"./chunk-SRTXE2HR.js";import{Dc as g,Ec as y,Fc as C,Jb as u,Kc as O,Lb as k,Mb as D,Nb as I,Rb as E,Ub as R,Uc as s,Vb as V,Vc as d,Wb as r,Xb as o,Yb as f,_a as w,ac as M,da as v,db as a,gc as h,hc as c,la as P,ma as S,pa as x,sb as N,uc as m,vc as _,wb as b,wc as T,xc as B,yb as A}from"./chunk-NTTV6FWH.js";import{g as L}from"./chunk-W7GRJBO5.js";var Ce=()=>({width:"600px"}),fe=(l,e)=>e.id;function Pe(l,e){if(l&1){let i=M();r(0,"p-button",20),s(1,"translate"),h("onClick",function(){P(i);let p=c();return S(p.openCreateDialog())}),o(),r(2,"p-button",21),s(3,"translate"),h("onClick",function(){P(i);let p=c();return S(p.openStripeDashboard())}),o()}l&2&&(u("label",d(1,3,"MANAGER.PAY_LINKS.BTN_CREATE")),a(2),u("label",d(3,5,"MANAGER.PAY_LINKS.BTN_STRIPE_DASHBOARD"))("outlined",!0))}function Se(l,e){l&1&&f(0,"app-widget-loading")}function he(l,e){if(l&1){let i=M();r(0,"app-widget-api-error",22),h("retry",function(){P(i);let p=c();return S(p.loadData())}),o()}}function Ae(l,e){l&1&&(r(0,"p",32),f(1,"i",35),m(2),s(3,"translate"),o()),l&2&&(a(2),T("",d(3,1,"MANAGER.PAY_LINKS.ONBOARDING_PENDING")," "))}function Ee(l,e){l&1&&(r(0,"p",32),f(1,"i",36),m(2),s(3,"translate"),o()),l&2&&(a(2),T("",d(3,1,"MANAGER.PAY_LINKS.ONBOARDING_RESTRICTED")," "))}function Me(l,e){if(l&1){let i=M();r(0,"div",4)(1,"div",23)(2,"div",24)(3,"div",25)(4,"h2",26),m(5),s(6,"translate"),o(),r(7,"p",27),m(8),s(9,"translate"),o(),r(10,"div",28)(11,"div",29),f(12,"i",30),r(13,"span"),m(14),s(15,"translate"),o()(),r(16,"div",29),f(17,"i",30),r(18,"span"),m(19),s(20,"translate"),o()(),r(21,"div",29),f(22,"i",30),r(23,"span"),m(24),s(25,"translate"),o()()(),r(26,"p-button",31),s(27,"translate"),h("onClick",function(){P(i);let p=c();return S(p.onboardStripeConnect())}),o(),A(28,Ae,4,3,"p",32)(29,Ee,4,3,"p",32),o(),r(30,"div",33),f(31,"i",34),o()()()()}if(l&2){let i=c();a(5),_(d(6,7,"MANAGER.PAY_LINKS.ONBOARDING_TITLE")),a(3),_(d(9,9,"MANAGER.PAY_LINKS.ONBOARDING_DESC")),a(6),_(d(15,11,"MANAGER.PAY_LINKS.ONBOARDING_STEP_1")),a(5),_(d(20,13,"MANAGER.PAY_LINKS.ONBOARDING_STEP_2")),a(5),_(d(25,15,"MANAGER.PAY_LINKS.ONBOARDING_STEP_3")),a(2),u("label",d(27,17,"MANAGER.PAY_LINKS.BTN_CONNECT_STRIPE")),a(2),E(i.stripeConnectStatus==="onboarding"?28:i.stripeConnectStatus==="restricted"?29:-1)}}function Le(l,e){if(l&1){let i=M();r(0,"div",4)(1,"div",23)(2,"div",24)(3,"div",25)(4,"h2",26),m(5),s(6,"translate"),o(),r(7,"p",27),m(8),s(9,"translate"),o(),r(10,"p-button",37),s(11,"translate"),h("onClick",function(){P(i);let p=c();return S(p.openCreateDialog())}),o()(),r(12,"div",33),f(13,"i",38),o()()()()}l&2&&(a(5),_(d(6,3,"MANAGER.PAY_LINKS.EMPTY_TITLE")),a(3),_(d(9,5,"MANAGER.PAY_LINKS.EMPTY_DESC")),a(2),u("label",d(11,7,"MANAGER.PAY_LINKS.BTN_CREATE")))}function Te(l,e){if(l&1&&f(0,"img",42),l&2){let i=c().$implicit;u("src",i.imageUrl,w)("alt",i.title)}}function Ie(l,e){if(l&1&&(r(0,"div",43),f(1,"i",56),o()),l&2){let i=c().$implicit,t=c(2);a(),I(t.getProductTypeIcon(i.productType))}}function ve(l,e){if(l&1&&(r(0,"span",50),m(1),o()),l&2){let i=c().$implicit,t=c(2);a(),_(t.formatPrice(i.compareAtPrice,i.currency))}}function xe(l,e){if(l&1&&m(0),l&2){let i=c().$implicit;T(" / ",i.quantityAvailable," ")}}function we(l,e){if(l&1){let i=M();r(0,"div",40)(1,"div",41),A(2,Te,1,2,"img",42)(3,Ie,2,2,"div",43),o(),r(4,"div",44)(5,"div",45)(6,"span",46),m(7),o(),f(8,"p-tag",47),o(),r(9,"div",48),f(10,"i"),m(11),s(12,"translate"),r(13,"span",49),m(14,"-"),o(),r(15,"strong"),m(16),o(),A(17,ve,2,1,"span",50),o(),r(18,"div",51),m(19),s(20,"translate"),A(21,xe,1,1),o()(),r(22,"div",52)(23,"p-button",53),s(24,"translate"),h("onClick",function(){let p=P(i).$implicit,n=c(2);return S(n.openEditDialog(p))}),o(),r(25,"p-button",54),s(26,"translate"),h("onClick",function(){let p=P(i).$implicit,n=c(2);return S(n.toggleStatus(p))}),o(),r(27,"p-button",55),s(28,"translate"),h("onClick",function(){let p=P(i).$implicit,n=c(2);return S(n.deletePayLink(p))}),o()()()}if(l&2){let i=e.$implicit,t=e.$index,p=e.$count,n=c(2);k("border-bottom",t!==p-1)("rounded-top",t===0),a(2),E(i.imageUrl?2:3),a(5),_(i.title),a(),u("value",n.getStatusLabel(i.status))("severity",n.getStatusSeverity(i.status))("rounded",!0),a(2),I(n.getProductTypeIcon(i.productType)+" me-1"),a(),T(" ",d(12,24,"MANAGER.PAY_LINKS.PRODUCT_TYPE_"+i.productType.toUpperCase())," "),a(5),_(n.formatPrice(i.priceInCents,i.currency)),a(),E(i.compareAtPrice?17:-1),a(2),B(" ",d(20,26,"MANAGER.PAY_LINKS.SOLD_COUNT"),": ",i.quantitySold," "),a(2),E(i.quantityAvailable!==null&&i.quantityAvailable!==void 0?21:-1),a(2),u("text",!0)("pTooltip",d(24,28,"COMMON.EDIT")),a(2),u("icon",i.status==="active"?"pi pi-pause":"pi pi-play")("text",!0)("pTooltip",d(26,30,i.status==="active"?"MANAGER.PAY_LINKS.BTN_PAUSE":"MANAGER.PAY_LINKS.BTN_ACTIVATE")),a(2),u("text",!0)("pTooltip",d(28,32,"COMMON.DELETE"))}}function Ne(l,e){if(l&1&&(r(0,"div",5),R(1,we,29,34,"div",39,fe),o()),l&2){let i=c();a(),V(i.payLinks)}}function be(l,e){if(l&1){let i=M();r(0,"div",12)(1,"label",9),m(2),s(3,"translate"),o(),r(4,"p-inputNumber",14),C("ngModelChange",function(p){P(i);let n=c();return y(n.formShippingCost,p)||(n.formShippingCost=p),S(p)}),o()()}if(l&2){let i=c();a(2),_(d(3,4,"MANAGER.PAY_LINKS.FIELD_SHIPPING_COST")),a(2),g("ngModel",i.formShippingCost),u("min",0)("suffix"," cts")}}function ke(l,e){if(l&1){let i=M();r(0,"div",8)(1,"label",9),m(2),s(3,"translate"),o(),r(4,"input",57),s(5,"translate"),C("ngModelChange",function(p){P(i);let n=c();return y(n.formDigitalFileName,p)||(n.formDigitalFileName=p),S(p)}),o()()}if(l&2){let i=c();a(2),_(d(3,3,"MANAGER.PAY_LINKS.FIELD_DIGITAL_FILE")),a(2),g("ngModel",i.formDigitalFileName),u("placeholder",d(5,5,"MANAGER.PAY_LINKS.PLACEHOLDER_FILE_NAME"))}}function De(l,e){if(l&1){let i=M();r(0,"div",58)(1,"p-button",59),s(2,"translate"),h("onClick",function(){P(i);let p=c();return S(p.showDialog=!1)}),o(),r(3,"p-button",60),s(4,"translate"),h("onClick",function(){P(i);let p=c();return S(p.save())}),o()()}if(l&2){let i=c();a(),u("label",d(2,5,"COMMON.CANCEL"))("outlined",!0),a(2),u("label",d(4,7,i.editMode?"COMMON.SAVE":"COMMON.CREATE"))("loading",i.saving)("disabled",!i.formTitle||i.formPriceInCents<0)}}var ye=class l extends ce{crudService=v(ge);entityLabel="lien de paiement";stripeConnectStatus="not_connected";showDialog=!1;editMode=!1;editId="";saving=!1;formBioPageId="";formTitle="";formDescription="";formImageUrl="";formProductType="physical";formPriceInCents=0;formCurrency="EUR";formCompareAtPrice=null;formQuantityAvailable=null;formMaxPerOrder=1;formShippingCost=null;formDigitalFileUrl="";formDigitalFileName="";formCtaStyle="default";formCtaText="";productTypeOptions=[{label:"MANAGER.PAY_LINKS.PRODUCT_TYPE_PHYSICAL",value:"physical"},{label:"MANAGER.PAY_LINKS.PRODUCT_TYPE_DIGITAL",value:"digital"},{label:"MANAGER.PAY_LINKS.PRODUCT_TYPE_SERVICE",value:"service"},{label:"MANAGER.PAY_LINKS.PRODUCT_TYPE_DONATION",value:"donation"}];currencyOptions=[{label:"EUR",value:"EUR"},{label:"USD",value:"USD"},{label:"GBP",value:"GBP"},{label:"CAD",value:"CAD"},{label:"CHF",value:"CHF"}];ctaStyleOptions=[{label:"MANAGER.PAY_LINKS.CTA_STYLE_DEFAULT",value:"default"},{label:"MANAGER.PAY_LINKS.CTA_STYLE_FEATURED",value:"featured"},{label:"MANAGER.PAY_LINKS.CTA_STYLE_MINIMAL",value:"minimal"}];bioPages=[];get payLinks(){return this.items}fetchItems(){return L(this,null,function*(){return this.crudService.getAll()})}loadData(){return L(this,null,function*(){this.loading=!0,this.error=null;try{let[e,i]=yield Promise.all([this.crudService.getAll(),this.crudService.getStripeConnectStatus().catch(()=>null)]);this.items=e,i&&(this.stripeConnectStatus=i.status)}catch(e){this.error=e?.error?.message||e?.message||"Error"}finally{this.loading=!1}})}get isStripeConnected(){return this.stripeConnectStatus==="active"}openCreateDialog(){this.editMode=!1,this.editId="",this.resetForm(),this.showDialog=!0}openEditDialog(e){this.editMode=!0,this.editId=e.id,this.formBioPageId=e.b
1ioPageId,this.formTitle=e.title,this.formDescription=e.description||"",this.formImageUrl=e.imageUrl||"",this.formProductType=e.productType,this.formPriceInCents=e.priceInCents,this.formCurrency=e.currency,this.formCompareAtPrice=e.compareAtPrice??null,this.formQuantityAvailable=e.quantityAvailable??null,this.formMaxPerOrder=e.maxPerOrder,this.formShippingCost=e.shippingCost??null,this.formDigitalFileName=e.digitalFileName||"",this.formCtaStyle=e.ctaStyle,this.formCtaText=e.ctaText||"",this.showDialog=!0}resetForm(){this.formBioPageId=this.bioPages.length>0?this.bioPages[0].id:"",this.formTitle="",this.formDescription="",this.formImageUrl="",this.formProductType="physical",this.formPriceInCents=0,this.formCurrency="EUR",this.formCompareAtPrice=null,this.formQuantityAvailable=null,this.formMaxPerOrder=1,this.formShippingCost=null,this.formDigitalFileUrl="",this.formDigitalFileName="",this.formCtaStyle="default",this.formCtaText=""}save(){return L(this,null,function*(){this.saving=!0;try{if(this.editMode){let e={title:this.formTitle,description:this.formDescription||void 0,imageUrl:this.formImageUrl||void 0,productType:this.formProductType,priceInCents:this.formPriceInCents,currency:this.formCurrency,compareAtPrice:this.formCompareAtPrice,quantityAvailable:this.formQuantityAvailable,maxPerOrder:this.formMaxPerOrder,shippingCost:this.formShippingCost,digitalFileName:this.formDigitalFileName||void 0,ctaStyle:this.formCtaStyle,ctaText:this.formCtaText||void 0};yield this.crudService.updateAsync(this.editId,e),this.toastService.success(this.translateService.instant("MANAGER.PAY_LINKS.TOAST_UPDATED"))}else{let e={bioPageId:this.formBioPageId,title:this.formTitle,description:this.formDescription||void 0,imageUrl:this.formImageUrl||void 0,productType:this.formProductType,priceInCents:this.formPriceInCents,currency:this.formCurrency,compareAtPrice:this.formCompareAtPrice??void 0,quantityAvailable:this.formQuantityAvailable??void 0,maxPerOrder:this.formMaxPerOrder,shippingCost:this.formShippingCost??void 0,digitalFileUrl:this.formDigitalFileUrl||void 0,digitalFileName:this.formDigitalFileName||void 0,ctaStyle:this.formCtaStyle,ctaText:this.formCtaText||void 0};yield this.crudService.createAsync(e),this.toastService.success(this.translateService.instant("MANAGER.PAY_LINKS.TOAST_CREATED"))}this.showDialog=!1,this.crudService.refresh()}catch(e){this.toastService.error(e?.error?.message||e?.message||"Error")}finally{this.saving=!1}})}deletePayLink(e){return L(this,null,function*(){yield this.deleteItem(e,this.translateService.instant("MANAGER.PAY_LINKS.CONFIRM_DELETE_MSG"),this.translateService.instant("MANAGER.PAY_LINKS.CONFIRM_DELETE_TITLE"))})}toggleStatus(e){return L(this,null,function*(){let i=e.status==="active"?"paused":"active";try{yield this.crudService.updateAsync(e.id,{status:i}),this.crudService.refresh()}catch(t){this.toastService.error(t?.error?.message||t?.message||"Error")}})}onboardStripeConnect(){return L(this,null,function*(){try{let e=yield this.crudService.onboardStripeConnect();window.location.href=e.url}catch(e){this.toastService.error(e?.error?.message||e?.message||"Error")}})}openStripeDashboard(){return L(this,null,function*(){try{let e=yield this.crudService.getStripeDashboardLink();window.open(e.url,"_blank")}catch(e){this.toastService.error(e?.error?.message||e?.message||"Error")}})}formatPrice(e,i){return(e/100).toFixed(2)+" "+i}getStatusSeverity(e){switch(e){case"active":return"success";case"paused":return"warn";case"sold_out":return"danger";case"archived":return"secondary";default:return"info"}}getStatusLabel(e){return this.translateService.instant("MANAGER.PAY_LINKS.STATUS_"+e.toUpperCase())}getProductTypeIcon(e){switch(e){case"physical":return"pi pi-box";case"digital":return"pi pi-file";case"service":return"pi pi-briefcase";case"donation":return"pi pi-heart";default:return"pi pi-tag"}}static \u0275fac=(()=>{let e;return function(t){return(e||(e=x(l)))(t||l)}})();static \u0275cmp=N({type:l,selectors:[["app-view-manager-pay-links"]],features:[b],decls:75,vars:76,consts:[[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"text-light","fs-6"],[1,"pi","pi-shopping-cart","me-2"],[1,"d-flex","align-items-center","gap-2"],[1,"upsell-container"],[1,"border","rounded","container-items","container-fluid","bg-white"],[3,"visibleChange","header","visible","modal","closable"],[1,"row","g-3"],[1,"col-12"],[1,"form-label","fw-semibold"],["type","text","pInputText","","maxlength","120",1,"w-100",3,"ngModelChange","ngModel"],["pTextarea","","rows","3",1,"w-100",3,"ngModelChange","ngModel"],[1,"col-12","col-md-6"],["optionLabel","label","optionValue","value",1,"w-100",3,"ngModelChange","options","ngModel"],[1,"w-100",3,"ngModelChange","ngModel","min","suffix"],[1,"w-100",3,"ngModelChange","ngModel","min","placeholder"],[1,"w-100",3,"ngModelChange","ngModel","min","max"],["type","text","pInputText","","placeholder","https://...",1,"w-100",3,"ngModelChange","ngModel"],["type","text","pInputText","","maxlength","40",1,"w-100",3,"ngModelChange","ngModel","placeholder"],["pTemplate","footer"],["icon","pi pi-plus","severity","primary","size","small",3,"onClick","label"],["icon","pi pi-external-link","severity","secondary","size","small",3,"onClick","label","outlined"],[3,"retry"],[1,"upsell-card"],[1,"upsell-layout"],[1,"upsell-text"],[1,"mb-3"],[1,"text-muted","mb-4"],[1,"mb-4"],[1,"d-flex","align-items-start","mb-3"],[1,"pi","pi-check-circle","text-success","me-3","mt-1"],["
1icon","pi pi-credit-card","severity","primary",3,"onClick","label"],[1,"text-warning","mt-3"],[1,"upsell-illustration"],[1,"pi","pi-wallet",2,"font-size","5rem","color","var(--primary-color)","opacity","0.3"],[1,"pi","pi-info-circle","me-2"],[1,"pi","pi-exclamation-triangle","me-2"],["icon","pi pi-plus","severity","primary",3,"onClick","label"],[1,"pi","pi-shopping-bag",2,"font-size","5rem","color","var(--primary-color)","opacity","0.3"],[1,"row","p-3","align-items-center",3,"border-bottom","rounded-top"],[1,"row","p-3","align-items-center"],[1,"col-auto"],[1,"product-thumbnail","rounded",3,"src","alt"],[1,"product-thumbnail-placeholder","rounded","d-flex","align-items-center","justify-content-center"],[1,"col"],[1,"d-flex","align-items-center","gap-2","mb-1"],[1,"fw-semibold"],[1,"ms-1",3,"value","severity","rounded"],[1,"text-muted","small"],[1,"mx-2"],[1,"text-decoration-line-through","ms-2","text-muted"],[1,"text-muted","small","mt-1"],[1,"col-auto","d-flex","gap-1"],["icon","pi pi-pencil","severity","secondary","size","small",3,"onClick","text","pTooltip"],["severity","secondary","size","small",3,"onClick","icon","text","pTooltip"],["icon","pi pi-trash","severity","danger","size","small",3,"onClick","text","pTooltip"],[2,"font-size","1.5rem","opacity","0.4"],["type","text","pInputText","",1,"w-100",3,"ngModelChange","ngModel","placeholder"],[1,"d-flex","justify-content-end","gap-2"],["severity","secondary",3,"onClick","label","outlined"],["severity","primary",3,"onClick","label","loading","disabled"]],template:function(i,t){i&1&&(r(0,"div",0)(1,"span",1),f(2,"i",2),m(3),s(4,"translate"),o(),r(5,"div",3),A(6,Pe,4,7),o()(),A(7,Se,1,0,"app-widget-loading")(8,he,1,0,"app-widget-api-error")(9,Me,32,19,"div",4)(10,Le,14,9,"div",4)(11,Ne,3,0,"div",5),r(12,"p-dialog",6),s(13,"translate"),C("visibleChange",function(n){return y(t.showDialog,n)||(t.showDialog=n),n}),r(14,"div",7)(15,"div",8)(16,"label",9),m(17),s(18,"translate"),o(),r(19,"input",10),C("ngModelChange",function(n){return y(t.formTitle,n)||(t.formTitle=n),n}),o()(),r(20,"div",8)(21,"label",9),m(22),s(23,"translate"),o(),r(24,"textarea",11),C("ngModelChange",function(n){return y(t.formDescription,n)||(t.formDescription=n),n}),o()(),r(25,"div",12)(26,"label",9),m(27),s(28,"translate"),o(),r(29,"p-select",13),C("ngModelChange",function(n){return y(t.formProductType,n)||(t.formProductType=n),n}),o()(),r(30,"div",12)(31,"label",9),m(32),s(33,"translate"),o(),r(34,"p-select",13),C("ngModelChange",function(n){return y(t.formCurrency,n)||(t.formCurrency=n),n}),o()(),r(35,"div",12)(36,"label",9),m(37),s(38,"translate"),o(),r(39,"p-inputNumber",14),C("ngModelChange",function(n){return y(t.formPriceInCents,n)||(t.formPriceInCents=n),n}),o()(),r(40,"div",12)(41,"label",9),m(42),s(43,"translate"),o(),r(44,"p-inputNumber",14),C("ngModelChange",function(n){return y(t.formCompareAtPrice,n)||(t.formCompareAtPrice=n),n}),o()(),r(45,"div",12)(46,"label",9),m(47),s(48,"translate"),o(),r(49,"p-inputNumber",15),s(50,"translate"),C("ngModelChange",function(n){return y(t.formQuantityAvailable,n)||(t.formQuantityAvailable=n),n}),o()(),r(51,"div",12)(52,"label",9),m(53),s(54,"translate"),o(),r(55,"p-inputNumber",16),C("ngModelChange",function(n){return y(t.formMaxPerOrder,n)||(t.formMaxPerOrder=n),n}),o()(),A(56,be,5,6,"div",12)(57,ke,6,7,"div",8),r(58,"div",8)(59,"label",9),m(60),s(61,"translate"),o(),r(62,"input",17),C("ngModelChange",function(n){return y(t.formImageUrl,n)||(t.formImageUrl=n),n}),o()(),r(63,"div",12)(64,"label",9),m(65),s(66,"translate"),o(),r(67,"p-select",13),C("ngModelChange",function(n){return y(t.formCtaStyle,n)||(t.formCtaStyle=n),n}),o()(),r(68,"div",12)(69,"label",9),m(70),s(71,"translate"),o(),r(72,"input",18),s(73,"translate"),C("ngModelChange",function(n){return y(t.formCtaText,n)||(t.formCtaText=n),n}),o()()(),A(74,De,5,9,"ng-template",19),o()),i&2&&(a(3),T("",d(4,45,"MANAGER.PAY_LINKS.TITLE")," "),a(3),E(t.isStripeConnected?6:-1),a(),E(t.loading?7:t.error?8:t.isStripeConnected?t.payLinks.length===0?10:11:9),a(5),D(O(75,Ce)),u("header",d(13,47,t.editMode?"MANAGER.PAY_LINKS.DIALOG_EDIT_TITLE":"MANAGER.PAY_LINKS.DIALOG_CREATE_TITLE")),g("visible",t.showDialog),u("modal",!0)("closable",!0),a(5),_(d(18,49,"MANAGER.PAY_LINKS.FIELD_TITLE")),a(2),g("ngModel",t.formTitle),a(3),_(d(23,51,"MANAGER.PAY_LINKS.FIELD_DESCRIPTION")),a(2),g("ngModel",t.formDescription),a(3),_(d(28,53,"MANAGER.PAY_LINKS.FIELD_PRODUCT_TYPE")),a(2),u("options",t.productTypeOptions),g("ngModel",t.formProductType),a(3),_(d(33,55,"MANAGER.PAY_LINKS.FIELD_CURRENCY")),a(2),u("options",t.currencyOptions),g("ngModel",t.formCurrency),a(3),_(d(38,57,"MANAGER.PAY_LINKS.FIELD_PRICE")),a(2),g("ngModel",t.formPriceInCents),u("min",0)("suffix"," cts"),a(3),_(d(43,59,"MANAGER.PAY_LINKS.FIELD_COMPARE_PRICE")),a(2),g("ngModel",t.formCompareAtPrice),u("min",0)("suffix"," cts"),a(3),_(d(48,61,"MANAGER.PAY_LINKS.FIELD_QUANTITY")),a(2),g("ngModel",t.formQuantityAvailable),u("min",0)("placeholder",d(50,63,"MANAGER.PAY_LINKS.PLACEHOLDER_UNLIMITED")),a(4),_(d(54,65,"MANAGER.PAY_LINKS.FIELD_MAX_PER_ORDER")),a(2),g("ngModel",t.formMaxPerOrder),u("min",1)("max",100),a(),E(t.formProductType==="physical"?56:-1),a(),E(t.formProductType==="digital"?57:-1),a(3),_(d(61,67,"MANAGER.PAY_LINKS.FIELD_IMAGE_
1URL")),a(2),g("ngModel",t.formImageUrl),a(3),_(d(66,69,"MANAGER.PAY_LINKS.FIELD_CTA_STYLE")),a(2),u("options",t.ctaStyleOptions),g("ngModel",t.formCtaStyle),a(3),_(d(71,71,"MANAGER.PAY_LINKS.FIELD_CTA_TEXT")),a(2),g("ngModel",t.formCtaText),u("placeholder",d(73,73,"MANAGER.PAY_LINKS.PLACEHOLDER_CTA_DEFAULT")))},dependencies:[G,Y,H,U,W,Q,z,K,F,$,Z,j,de,se,X,q,pe,le,ie,te,ae,ne,oe,re,ee,_e,ue,J,me],styles:[".product-thumbnail[_ngcontent-%COMP%]{width:56px;height:56px;object-fit:cover}.product-thumbnail-placeholder[_ngcontent-%COMP%]{width:56px;height:56px;background-color:var(--surface-100)}.upsell-container[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:2rem 0}.upsell-card[_ngcontent-%COMP%]{max-width:700px;width:100%;background:var(--surface-card);border:1px solid var(--surface-border);border-radius:12px;padding:2.5rem}.upsell-layout[_ngcontent-%COMP%]{display:flex;align-items:center;gap:2rem}.upsell-text[_ngcontent-%COMP%]{flex:1}.upsell-illustration[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:120px;height:120px}@media (max-width: 768px){.upsell-layout[_ngcontent-%COMP%]{flex-direction:column;text-align:center}.upsell-illustration[_ngcontent-%COMP%]{display:none}}.container-items[_ngcontent-%COMP%]{overflow:hidden}"]})};export{ye as ViewManagerPayLinksComponent};
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.