PageSourceSearch

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

js hou.la collected 2026-09-25 03:32:46 UTC 7,608 bytes, 1 lines download raw bytes

1import{a as ie}from"./chunk-T3PZLYMY.js";import{a as te}from"./chunk-HI3BBQYM.js";import"./chunk-BYXBJQAS.js";import{a as J,f as Q}from"./chunk-B3QJM2RM.js";import"./chunk-M6OZBIKI.js";import"./chunk-XQLXGKEK.js";import"./chunk-IXD6ECVB.js";import"./chunk-RRCBQ55K.js";import"./chunk-DQRROS2B.js";import"./chunk-EONF3GVN.js";import"./chunk-5LMG4TVJ.js";import"./chunk-Z2TVBXTG.js";import{a as q,b as H}from"./chunk-KYVCMV2E.js";import"./chunk-HWZZ5RQT.js";import"./chunk-ZNR7QNVV.js";import"./chunk-WGAXTYG2.js";import"./chunk-U3Z5BGA7.js";import{a as X,b as Z}from"./chunk-M6YDMVQ7.js";import{a as ee}from"./chunk-OTMVSU27.js";import"./chunk-QI7CEGT6.js";import"./chunk-6ND7557V.js";import{D as $,g as z,l as W}from"./chunk-FOJCKIWO.js";import{a as G}from"./chunk-NBMUSEX4.js";import"./chunk-3AIY57KH.js";import"./chunk-AB6CKZTE.js";import"./chunk-K5O3OQFW.js";import"./chunk-2DRXLVRR.js";import{d as K,e as Y}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 j}from"./chunk-AQEWHUN5.js";import{c as F,d as B,e as k}from"./chunk-YQZAETCE.js";import{s as V,x as N}from"./chunk-EO42E46J.js";import"./chunk-3QVSKJ3X.js";import{D as R,I as A}from"./chunk-ERUCNOOT.js";import{$b as D,Cc as M,Dc as I,Ec as b,Gc as x,Hc as O,Jb as E,Lb as L,Mb as P,Qb as d,Qc as m,Rc as c,Sc as U,Vb as r,Wb as o,Xb as u,da as f,db as a,fc as C,gc as p,la as h,ma as T,sb as y,tc as s,uc as l,vc as v,yb as _}from"./chunk-DBE7WQEG.js";import{g as w}from"./chunk-W7GRJBO5.js";var ae=()=>({minWidth:"200px"}),oe=()=>[10,25,50],re=t=>["/studio/shop/disputes",t];function se(t,i){t&1&&u(0,"app-widget-loading")}function pe(t,i){if(t&1){let e=D();r(0,"app-widget-api-error",5),C("retry",function(){h(e);let S=p();return T(S.loadData())}),o()}}function le(t,i){t&1&&u(0,"app-widget-manager-empty-state",3)}function de(t,i){t&1&&(r(0,"tr")(1,"th"),s(2),m(3,"translate"),o(),r(4,"th"),s(5),m(6,"translate"),o(),r(7,"th"),s(8),m(9,"translate"),o(),r(10,"th"),s(11),m(12,"translate"),o(),r(13,"th"),s(14),m(15,"translate"),o(),u(16,"th"),o()),t&2&&(a(2),l(c(3,5,"DISPUTES.COL_TICKET")),a(3),l(c(6,7,"DISPUTES.COL_REASON")),a(3),l(c(9,9,"DISPUTES.COL_STATUS")),a(3),l(c(12,11,"DISPUTES.COL_AMOUNT")),a(3),l(c(15,13,"DISPUTES.COL_DATE")))}function me(t,i){if(t&1&&(r(0,"span",11),s(1),o()),t&2){let e=p().$implicit,n=p(2);a(),l(n.getReasonLabel(e.disputeReason))}}function ue(t,i){if(t&1&&u(0,"p-tag",12),t&2){let e=p().$implicit,n=p(2);E("severity",n.getStatusSeverity(e.disputeStatus))("value",n.getStatusLabel(e.disputeStatus))}}function ce(t,i){t&1&&(r(0,"span",13),u(1,"i",17),o())}function _e(t,i){if(t&1&&(r(0,"span",9),s(1),o()),t&2){let e=p().$implicit,n=p(2);a(),l(n.formatPrice(e.disputeAmountCents))}}function Se(t,i){if(t&1&&(r(0,"tr")(1,"td")(2,"span",9),s(3),o(),r(4,"div",10),s(5),o()(),r(6,"td"),_(7,me,2,1,"span",11),o(),r(8,"td"),_(9,ue,1,2,"p-tag",12)(10,ce,2,0,"span",13),o(),r(11,"td"),_(12,_e,2,1,"span",9),o(),r(13,"td")(14,"span",14),s(15),m(16,"date"),o()(),r(17,"td",15),u(18,"p-button",16),o()()),t&2){let e=i.$implicit,n=p(2);L("table-warning",n.needsAction(e)),a(3),v("#",e.ticketNumber,""),a(2),v(" ",e.subject," "),a(2),d(e.disputeReason?7:-1),a(2),d(e.disputeStatus?9:-1),a(),d(n.needsAction(e)?10:-1),a(2),d(e.disputeAmountCents?12:-1),a(3),l(U(16,12,e.createdAt,"dd/MM/yyyy")),a(3),E("text",!0)("rounded",!0)("routerLink",O(15,re,e.id))}}function ge(t,i){if(t&1){let e=D();r(0,"p-table",6),C("onLazyLoad",function(S){h(e);let g=p();return T(g.onPageChange(S))}),_(1,de,17,15,"ng-template",7)(2,Se,19,17,"ng-template",8),o()}if(t&2){let e=p();E("value",e.disputes)("lazy",!0)("paginator",!0)("rows",e.limit)("totalRecords",e.total)("first",(e.page-1)*e.limit)("rowsPerPageOptions",x(7,oe))}}var ne=class t{disputeService=f(te);t=f(F);loading=!0;error=null;disputes=[];total=0;page=1;limit=10;statusFilter="";statusOptions=[];ngOnInit(){this.statusOptions=[{label:this.t.instant("DISPUTES.FILTER_ALL"),value:""},{label:this.t.instant("DISPUTES.STATUS_OPEN"),value:"open"},{label:this.t.instant("DISPUTES.STATUS_SELLER_RESPONSE_PENDING"),value:"seller_response_pending"},{label:this.t.instant("DISPUTES.STATUS_SELLER_RESPONDED"),value:"seller_responded"},{label:this.t.instant("DISPUTES.STATUS_ESCALATED"),value:"escalated"},{label:this.t.instant("DISPUTES.STATUS_ADMIN_RESOLVED"),value:"admin_resolved"},{label:this.t.instant("DISPUTES.STATUS_CLOSED"),value:"closed"}],this.loadData()}loadData(){return w(this,null,function*(){this.loading=!0,this.error=null;try{let i=yield this.disputeService.listSellerDisputes({page:this.page,limit:this.limit,status:this.statusFilter||void 0});this.disputes=i.data,this.total=i.total}catch{this.error="load"}finally{this.loading=!1}})}onFilterChange(){this.page=1,this.loadData()}onPageChange(i){this.page=Math.floor(i.first/i.rows)+1,this.limit=i.rows,this.loadData()}getStatusSeverity(i){return{open:"warn",seller_response_pending:"danger",seller_responded:"info",escalated:"danger",admin_resolved:"success",closed:"secondary"}[i]||"info"}getStatusLabel(i){return this.t.instant(`DISPUTES.STATUS_${i.toUpperCase()}`)}getReasonLabel(i){return this.t.instant(`DISPUTES.REASON_${i.toUpperCase()}`)}needsAction(i){return i.disputeStatus==="open"||i.disputeStatus==="seller_response_pending"}formatPrice(i,e="EUR"){return(i/100).toFixed(2)+" "+e.toUpperCase()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-view-manager-shop-disputes"]],decls:10,vars:12,consts:[[1,"d-flex","justify-content-between","align-items-center","mb-3","flex-wrap","gap-2"],[1,"mb-0"],["optionLabel","label","optionValue","value",3,"ngModelChange","onChange","ngModel","options"],["icon","pi pi-shield","titleKey","DISPUTES.SELLER_EMPTY_TITLE","descriptionKey","DISPUTES.SELLER_EMPTY_DESC"],["styleClass","p-datatable-sm p-datatable-striped","responsiveLayout","scroll",3,"value","lazy","paginator","rows","totalRecords","first","rowsPerPageOptions"],[3,"retry"],["styleClass","p-datatable-sm p-datatable-striped","responsiveLayout","scroll",3,"onLazyLoad","value","lazy","paginator","rows","totalRecords","first","rowsPerPageOptions"],["pTemplate","header"],["pTemplate","body"],[1,"fw-semibold"],[1,"text-muted","small","text-truncate",2,"max-width","200px"],[1,"small"],["size","small",3,"severity","value"],[1,"ms-1","text-danger","small","fw-bold"],[1,"small","text-muted"],[1,"text-end"],["icon","pi pi-eye","severity","secondary",3,"text","rounded","routerLink"],[1,"pi","pi-exclamation-circle"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"div")(2,"h5",1),s(3),m(4,"translate"),o()(),r(5,"p-select",2),b("ngModelChange",function(g){return I(n.statusFilter,g)||(n.statusFilter=g),g}),C("onChange",function(){return n.onFilterChange()}),o()(),_(6,se,1,0,"app-widget-loading")(7,pe,1,0,"app-widget-api-error")(8,le,1,0,"app-widget-manager-empty-state",3)(9,ge,3,8,"p-table",4)),e&2&&(a(3),l(c(4,9,"DISPUTES.SELLER_TIT
1LE")),a(2),P(x(11,ae)),M("ngModel",n.statusFilter),E("options",n.statusOptions),a(),d(n.loading?6:-1),a(),d(!n.loading&&n.error?7:-1),a(),d(!n.loading&&!n.error&&n.disputes.length===0?8:-1),a(),d(!n.loading&&!n.error&&n.disputes.length>0?9:-1))},dependencies:[A,R,N,V,$,z,W,k,B,Y,K,j,Z,X,Q,J,H,q,G,ee,ie],styles:["[_nghost-%COMP%]     p-table .p-datatable-tbody>tr>td{vertical-align:middle}.table-warning[_ngcontent-%COMP%]{background:rgba(var(--p-yellow-500-rgb, 234, 179, 8),.05)!important}"]})};export{ne as ViewManagerShopDisputesComponent};

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.