1import{b as ke}from"./chunk-P3OHJ2W2.js";import{a as ve}from"./chunk-FDUZADCJ.js";import{a as xe,b as Ce}from"./chunk-V76Q43ZU.js";import{a as ye}from"./chunk-RRFSBXZN.js";import{a as fe}from"./chunk-WW2UPQJZ.js";import{a as he}from"./chunk-3H2WL65Q.js";import{a as ne,b as ie}from"./chunk-EC7VLHHY.js";import{e as pe}from"./chunk-PN3GECNF.js";import{b as me}from"./chunk-GPEC6VJP.js";import{c as oe}from"./chunk-R25KTVHQ.js";import"./chunk-ITOS33SH.js";import"./chunk-3LMP3UP7.js";import{a as ue,b as be}from"./chunk-MMW666QN.js";import{a as ce,b as se}from"./chunk-FFOK5RQA.js";import"./chunk-JKNXKJOZ.js";import"./chunk-X4HZDNWH.js";import{d as te}from"./chunk-GAAUDWOS.js";import{c as ge}from"./chunk-NLHEG4CX.js";import{a as de,b as le}from"./chunk-PUYSTUAB.js";import{b as ae}from"./chunk-LBXZFWKK.js";import"./chunk-53KW4VLF.js";import"./chunk-XERKMMT2.js";import"./chunk-PO3XBGFC.js";import{H as Z,I as ee,J as re,c as V,e as O,g as K,h as U,k as W,m as C,o as H,u as J,v as Y,w as Q,x as X}from"./chunk-CCOJ7BNB.js";import{b as $}from"./chunk-5GMKJTPL.js";import"./chunk-EQNTF3BT.js";import"./chunk-6JEXTFK5.js";import{f as q,h as G,m as A}from"./chunk-K6J2HUER.js";import{b as D,c as j,e as L}from"./chunk-V5LT7TML.js";import{p as T,y as R}from"./chunk-QYGDJBKY.js";import"./chunk-LDIQNLNJ.js";import{Kb as h,Mb as v,Nb as B,Pb as F,Qb as N,Rb as m,Sb as n,Tb as i,Ub as s,Uc as l,Vc as c,Wc as x,Xa as z,ab as o,ba as b,fc as _,hc as y,ja as S,ka as I,sb as E,wc as d,xc as p,yc as f,zc as M}from"./chunk-GLE6WFTR.js";import{a as P,b as w}from"./chunk-RKVZCO54.js";function _e(a,u){if(a&1&&s(0,"img",31),a&2){let r=y().$implicit;m("src",(r==null?null:r.value.thumbnail)||(r==null?null:r.value.image)||"https://placehold.co/64x64",z)("alt",r.value.name)}}function Me(a,u){a&1&&s(0,"span",32)}function Oe(a,u){if(a&1&&(n(0,"li",15)(1,"div",30),h(2,_e,1,2,"img",31)(3,Me,1,0,"span",32),n(4,"div")(5,"div")(6,"h6"),d(7),l(8,"titlecase"),i(),s(9,"app-product-label",33),i(),n(10,"div",23)(11,"span"),d(12),l(13,"appMoney"),i()()()(),n(14,"div",34)(15,"div"),s(16,"p-inputNumber",35),n(17,"span",36),d(18),i()(),n(19,"span",36),d(20),l(21,"appMoney"),i()()()),a&2){let r=u.$implicit,t=u.$index,e=y();m("formGroupName",t),o(2),v(r!=null&&r.value.image?2:3),o(5),p(c(8,12,r.value.name)),o(2),m("label",r==null||r.value==null?null:r.value.variantLabel),o(3),M("",x(13,14,e.order==null||e.order.items[t]==null?null:e.order.items[t].price,e.storeCurrency)," \xD7 ",e.order==null||e.order.items[t]==null?null:e.order.items[t].quantity," "),o(4),m("min",0)("max",e.order==null||e.order.items[t]==null?null:e.order.items[t].quantity)("useGrouping",!1)("showButtons",!0),o(2),p("/ "+(e.order==null||e.order.items[t]==null?null:e.order.items[t].quantity)),o(2),f(" ",x(21,17,r.value.price*r.value.quantity,e.storeCurrency)," ")}}function Pe(a,u){a&1&&(s(0,"p-divider"),n(1,"div",25),s(2,"p-checkbox",37),n(3,"label",38),d(4),l(5,"translate"),i()()),a&2&&(o(2),m("binary",!0),o(2),p(c(5,2,"orders.restockItem")))}function we(a,u){if(a&1&&(n(0,"div",22)(1,"span"),d(2),l(3,"translate"),i(),n(4,"span"),d(5),l(6,"appMoney"),i()()),a&2){let r=y();o(2),M("",c(3,3,"orders.itemSubtotal")," (",r.totalItemsCount(),")"),o(3),p(x(6,5,r.totalSubtotalAmount(),r.storeCurrency))}}function Se(a,u){a&1&&(n(0,"h6"),d(1),l(2,"translate"),i()),a&2&&(o(),p(c(2,1,"orders.noItemsSelected")))}var dr=(()=>{class a{backToOrder(){this.router.navigate([`/orders/order-details/${this.orderId}`])}ordersService=b(he);route=b(q);translate=b(D);fb=b(Z);router=b(G);sharedService=b($);order=null;isSubmitted=!1;orderId="";restockForm=new W({});storeCurrency=JSON.parse(localStorage.getItem("user")??"{}")?.data?.store?.settings?.currency;constructor(){this.route.params.subscribe(r=>{this.orderId=r.id,this.orderId&&this.getViewOrder()})}ngOnInit(){this.setRestockForm()}setRestockForm(){this.restockForm=this.fb.group({items:this.fb.array([]),sendEmail:new C(!0),reason:new C(null),restockItems:new C(!0)})}get products(){return this.restockForm.get("items")}getViewOrder(){this.ordersService.getSingleOrder(this.orderId).subscribe({next:r=>{this.order=r?.data,this.patchProducts(this.order.items)},error:r=>{let t=r?.status===404?this.translate.instant("orders.orderNotFound"):r?.error?.message||this.translate.instant("orders.failedToLoadOrder");this.sharedService.showError(t),this.router.navigate([`/orders/order-details/${this.orderId}`])}})}patchProducts(r){let t=r.map(g=>this.fb.group({name:[g?.name],price:[g?.price],quantity:[0,[O.required,O.min(0)]],image:[g?.image],itemId:[g?._id],variantLabel:[g?.variantLabel||null]})),e=this.fb.array(t);this.restockForm.setControl("items",e)}restockSubmit(){let r=w(P({},this.restockForm.value),{items:this.restockForm.value.items.map(t=>({itemId:t.itemId,quantity:t.quantity}))});r=this.removeNullKeys(r),this.restockForm.valid&&(this.isSubmitted=!0,this.ordersService.restockOrder(this.orderId,r).subscribe({next:()=>{this.router.navigate([`/orders/order-details/${this.orderId}`]),this.sharedService.showSuccess(this.translate.instant("orders.updateRestockSuccessfully")),this.isSubmitted=!1},error:t=>{this.sharedService.showError(t?.error?.message||this.translate.instant("common.somethingWentWrong")),this.isSubmitted=!1}}))}totalSubtotalAmount(){return this.restockForm.get("items").controls.reduce((t,e)=>{let g=e.get("price")?.value||0,k=e.get("quantity")?.value||0;return t+g*k},0)}totalItemsCount(){return this.restockForm.get("items").controls.reduce((t,e)=>{let g=e.get("quantity")?.value||0;return t+g},0)}removeNullKeys(r){return Array.isArray(r)?r.map(t=>this.removeNullKeys(t)):r&&typeof r=="object"?Object.fromEntries(Object.entries(r).filter(([t,e])=>e!==null).map(([t,e])=>[t,this.removeNullKeys(e)])):r}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=E({type:a,selectors:[["app-order-restock"]],decls:66,vars:45,consts:[[1,"order-restock"],[3,"ngSubmit","formGroup"],["type","button",1,"page-back",3,"click"],["width","15","height","15","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","aria-hidden","true",1,"back-icon","rtl-rotate-180"],["d","M14 6l-6 6 6 6"],[1,"header"],["dir","ltr"],[1,"grid-container"],[1,"left"],[1,"grid-item","box-shadow","products"],[1,"flex","items-center","justify-between"],[1,"flex","items-center"],[3,"severity","value","icon"],[1,"products-card"],["formArrayName","items",1,"product-list"],[3,"formGroupName"],[1,"grid-item","box-shadow","reason-refund"],[1,"title"],[1,"input-filed","w-100","mt-4"],["formControlName","reason","rows","5","inputStyleClass","w-100",1,"input","w-100"],[1,"right"],[1,"grid-item","box-shadow","summary"],[1,"mt-4","flex","items-center","justify-between"],[1,"mt-2"],[1,"mt-4"],[1,"flex","items-center","mt-4"],["formControlName","sendEmail","inputId","taxable",3,"binary"],["for","taxable",1,"label","ms-1"],[1,"mt-4","w-100"],["type","submit","severity","contrast",3,"disabled","label","loading"],[1,"product-name"],[1,"product-image",3,"src","alt"],[1,"product-image","pi","pi-image"],[3,"label"],[1,"flex","items-center","gap-2"],["formControlName","quantity","locale","en-US","inputStyleClass","w-12 text-center",3,"min","max","useGrouping","showButtons"],[1,"ms-1"],["formControlName","restockItems","inputId","restockItems",3,"binary"],["for","restockItems",1,"label","ms-1"]],template:function(t,e){t&1&&(n(0,"section",0)(1,"form",1),_("ngSubmit",function(k){return k.preventDefault(),e.restockSubmit()}),n(2,"button",2),_("click",function(){return e.backToOrder()}),S(),n(3,"svg",3),s(4,"path",4),i(),d(5),l(6,"translate"),i(),I(),n(7,"div",5)(8,"ul")(9,"li",6),d(10),i(),n(11,"li")(12,"h4"),d(13),l(14,"translate"),i()()()(),n(15,"div",7)(16,"div",8)(17,"div",9)(18,"div",10)(19,"div",11),s(20,"p-tag",12),l(21,"titlecase"),i(),n(22,"span"),d(23),l(24,"translate"),i()(),n(25,"div",13)(26,"ul",14),F(27,Oe,22,20,"li",15,B),i()(),n(29,"span"),d(30),l(31,"translate"),i(),h(32,Pe,6,4),i(),n(33,"div",16)(34,"h3",17),d(35),l(36,"translate"),i(),n(37,"div",18),s(38,"textarea",19),i(),n(39,"span"),d(40),l(41,"translate"),i()()(),n(42,"div",20)(43,"div",21)(44,"h3",17),d(45),l(46,"translate"),i(),h(47,we,7,8,"div",22)(48,Se,3,3,"h6"),n(49,"div",23),s(50,"p-divider"),i(),n(51,"div",24)(52,"h3",17),d(53),l(54,"translate"),i(),n(55,"h6"),d(56),l(57,"translate"),i()(),n(58,"div",25),s(59,"p-checkbox",26),n(60,"label",27),d(61),l(62,"translate"),i()(),n(63,"div",28),s(64,"p-button",29),l(65,"translate"),i()()()()()()),t&2&&(o(),m("formGroup",e.restockForm),o(4),f(" ",c(6,21,"orders.backToOrder")," "),o(5),f("#",e.order==null?null:e.order.orderId),o(3),p(c(14,23,"orders.restock")),o(7),m("severity",e.sharedService.getPaymentStatusSeverity(e.order==null||e.order.payment==null?null:e.order.payment.paymentStatus))("value",c(21,25,e.sharedService.getDisplayPaymentStatus(e.order==null||e.order.payment==null?null:e.order.payment.paymentStatus)))("icon",e.sharedService.getPaymentStatusIcon(e.order==null||e.order.payment==null?null:e.order.payment.paymentStatus)),o(3),p(c(24,27,"orders.shopLocationTitle")),o(4),N(e.products.controls),o(3),f(" ",c(31,29,"orders.refundedItemsRemovedOrder")),o(2),v(e.totalItemsCount()?32:-1),o(3),p(c(36,31,"orders.reasonRefund")),o(5),f(" ",c(41,33,"orders.onlyStaffReason")," "),o(5),p(c(46,35,"orders.summary")),o(2),v(e.totalItemsCount()?47:48),o(6),p(c(54,37,"orders.refundAmount")),o(3),p(c(57,39,"orders.orderPendingPayment")),o(3),m("binary",!0),o(2),p(c(62,41,"orders.sendNotificationRefund")),o(3),m("disabled",e.restockForm.invali
1d||e.totalItemsCount()===0||e.isSubmitted)("label",c(65,43,"orders.restockItems"))("loading",e.isSubmitted))},dependencies:[R,L,ae,ve,le,de,me,be,ue,ge,re,H,V,K,U,X,Q,J,Y,A,oe,pe,se,ce,ee,Ce,xe,ie,ne,te,ke,ye,T,j,fe],styles:[".page-back[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.375rem;margin-block-end:.625rem;padding:0;border:none;background:none;font:inherit;font-size:.815rem;font-weight:600;color:var(--light-gray-color);cursor:pointer}.page-back[_ngcontent-%COMP%]:hover{color:var(--black-color)}.header[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:flex-start;gap:1rem;margin-block-end:1.25rem}.header[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none;min-inline-size:0}.header[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0}.header[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-child{font-size:.815rem;font-weight:600;color:var(--light-gray-color)}.header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:.125rem 0 0;font-size:1.375rem;font-weight:700;color:var(--black-color);letter-spacing:-.02em}[dir=rtl][_ngcontent-%COMP%] .header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{letter-spacing:normal}.header[_ngcontent-%COMP%] > p-button[_ngcontent-%COMP%], .header[_ngcontent-%COMP%] > .header-actions[_ngcontent-%COMP%]{margin-inline-start:auto}.grid-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) 23.25rem;gap:1rem;align-items:start}@media(width<=64rem){.grid-container[_ngcontent-%COMP%]{grid-template-columns:1fr}}.grid-container[_ngcontent-%COMP%] .left[_ngcontent-%COMP%], .grid-container[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;min-inline-size:0}.grid-item[_ngcontent-%COMP%]{padding:1rem 1.125rem;background:rgb(var(--bkg-white));border:1px solid rgba(var(--border-color-rgb),1);border-radius:.875rem;
1box-shadow:var(--box-shadow-sm)}.box-shadow[_ngcontent-%COMP%]{box-shadow:var(--box-shadow-sm)}.title[_ngcontent-%COMP%]{margin:0 0 .625rem;margin:0;font-size:.9rem;font-weight:700;color:var(--black-color);letter-spacing:-.01em}[dir=rtl][_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{letter-spacing:normal}.products-card[_ngcontent-%COMP%]{margin-block-start:.5rem}.delivery-method[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.delivery-method[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0;font-size:.845rem;font-weight:600;color:var(--black-color)}.product-list[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}.product-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.875rem;padding-block:.875rem}.product-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]{border-block-start:1px solid rgba(var(--border-color-rgb),1)}.product-name[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.875rem;min-inline-size:0}.product-name[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{margin:0;font-size:.9rem;font-weight:600;color:var(--black-color)}.product-image[_ngcontent-%COMP%]{flex:none;inline-size:3.25rem;block-size:3.25rem;display:grid;place-items:center;border:1px solid rgba(var(--border-color-rgb),1);border-radius:.625rem;background:var(--bkg-gray);color:var(--light-gray-color);object-fit:cover}.summary-box[_ngcontent-%COMP%] .row[_ngcontent-%COMP%], .summary[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding-block:.55rem;font-size:.845rem;color:var(--black-color)}.summary-box[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child, .summary[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child{margin-inline-start:auto;font-variant-numeric:tabular-nums;text-align:end;white-space:nowrap}.summary-box[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] + .row[_ngcontent-%COMP%], .summary[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] + .row[_ngcontent-%COMP%]{border-block-start:1px solid rgba(var(--border-color-rgb),.6)}.summary-box[_ngcontent-%COMP%] .row.total[_ngcontent-%COMP%], .summary[_ngcontent-%COMP%] .row.total[_ngcontent-%COMP%]{border-block-start:1px solid rgba(var(--border-color-rgb),1);font-weight:700}.summary-box[_ngcontent-%COMP%] .row.total[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .summary[_ngcontent-%COMP%] .row.total[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}.summary-box[_ngcontent-%COMP%] .bold[_ngcontent-%COMP%], .summary[_ngcontent-%COMP%] .bold[_ngcontent-%COMP%]{font-weight:700;color:var(--black-color)}.summary-box[_ngcontent-%COMP%] .faded[_ngcontent-%COMP%], .summary-box[_ngcontent-%COMP%] .faded[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:not(.black-color):not(.info-color), .summary[_ngcontent-%COMP%] .faded[_ngcontent-%COMP%], .summary[_ngcontent-%COMP%] .faded[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:not(.black-color):not(.info-color){color:var(--light-gray-color)}.summary-box[_ngcontent-%COMP%] .black-color[_ngcontent-%COMP%], .summary[_ngcontent-%COMP%] .black-color[_ngcontent-%COMP%]{color:var(--black-color)}.summary-box[_ngcontent-%COMP%] .info-color[_ngcontent-%COMP%], .summary[_ngcontent-%COMP%] .info-color[_ngcontent-%COMP%]{color:var(--main-color-dark);font-weight:600;cursor:pointer}.summary-box[_ngcontent-%COMP%] .info-color[_ngcontent-%COMP%]:hover, .summary[_ngcontent-%COMP%] .info-color[_ngcontent-%COMP%]:hover{text-decoration:underline}.payment-box[_ngcontent-%COMP%]{margin-block-start:.25rem}.footer-text[_ngcontent-%COMP%]{margin-block-start:.75rem;font-size:.78rem;color:var(--light-gray-color)}.total-price[_ngcontent-%COMP%]{margin:0;font-variant-numeric:tabular-nums;text-align:end;white-space:nowrap}.quiet-button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.4375rem;block-size:2.25rem;padding-inline:.8rem;border:1px solid rgba(var(--border-color-rgb),1);border-radius:.5625rem;background:rgb(var(--bkg-white));color:var(--black-color);font:inherit;font-size:.8rem;font-weight:600;cursor:pointer;
1box-shadow:var(--box-shadow-sm)}.quiet-button[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--bkg-gray);border-color:var(--input-border)}.quiet-button[_ngcontent-%COMP%]:disabled{opacity:.55;cursor:not-allowed}.quiet-button[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--main-color);outline-offset:2px}.loud-button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.4375rem;block-size:2.25rem;padding-inline:.8rem;border:1px solid rgba(var(--border-color-rgb),1);border-radius:.5625rem;background:rgb(var(--bkg-white));color:var(--black-color);font:inherit;font-size:.8rem;font-weight:600;cursor:pointer;box-shadow:var(--box-shadow-sm)}.loud-button[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--bkg-gray);border-color:var(--input-border)}.loud-button[_ngcontent-%COMP%]:disabled{opacity:.55;cursor:not-allowed}.loud-button[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--main-color);outline-offset:2px}.loud-button[_ngcontent-%COMP%]{border-color:transparent;background:var(--main-color);color:var(--white-color)}.loud-button[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--main-color-dark);border-color:transparent}.icon-button[_ngcontent-%COMP%]{inline-size:2rem;block-size:2rem;flex:none;display:grid;place-items:center;padding:0;border:1px solid rgba(var(--border-color-rgb),1);border-radius:.5625rem;background:rgb(var(--bkg-white));color:var(--light-gray-color);cursor:pointer}.icon-button[_ngcontent-%COMP%]:hover{background:var(--bkg-gray);border-color:var(--input-border);color:var(--black-color)}.icon-button[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--main-color);outline-offset:2px} .modern-order-dialog .p-dialog, .add-products-dialog .p-dialog{border-radius:1rem;overflow:hidden;border:1px solid rgba(var(--border-color-rgb),1);
1box-shadow:var(--box-shadow-lg)} .modern-order-dialog .p-dialog-header, .add-products-dialog .p-dialog-header{padding:1.125rem 1.25rem;border-bottom:1px solid rgba(var(--border-color-rgb),1);background:rgb(var(--bkg-white));color:var(--black-color)} .modern-order-dialog .p-dialog-header .p-dialog-title, .add-products-dialog .p-dialog-header .p-dialog-title{font-size:1rem;font-weight:700;color:var(--black-color);letter-spacing:-.01em}[dir=rtl][_ngcontent-%COMP%] .modern-order-dialog .p-dialog-header .p-dialog-title, [dir=rtl][_ngcontent-%COMP%] .add-products-dialog .p-dialog-header .p-dialog-title{letter-spacing:normal} .modern-order-dialog .p-dialog-header .p-dialog-header-icons button, .add-products-dialog .p-dialog-header .p-dialog-header-icons button{color:var(--light-gray-color)} .modern-order-dialog .p-dialog-header .p-dialog-header-icons button:hover, .add-products-dialog .p-dialog-header .p-dialog-header-icons button:hover{background:var(--bkg-gray);color:var(--black-color)} .modern-order-dialog .p-dialog-content, .add-products-dialog .p-dialog-content{padding:1.25rem;background:rgb(var(--bkg-white));max-height:calc(100vh - 14rem);overflow-y:auto} .modern-order-dialog .p-dialog-footer, .add-products-dialog .p-dialog-footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem;padding:.875rem 1.25rem;border-top:1px solid rgba(var(--border-color-rgb),1);background:var(--bkg-gray)} .modern-order-dialog label, .modern-order-dialog .field-label, .add-products-dialog label, .add-products-dialog .field-label{display:block;margin-bottom:.375rem;font-size:.8rem;font-weight:600;color:var(--black-color)} .modern-order-dialog input[type=text], .modern-order-dialog input[type=number], .modern-order-dialog input[type=email], .modern-order-dialog textarea, .modern-order-dialog .p-inputtext, .modern-order-dialog .p-select, .modern-order-dialog .p-inputnumber-input, .add-products-dialog input[type=text], .add-products-dialog input[type=number], .add-products-dialog input[type=email], .add-products-dialog textarea, .add-products-dialog .p-inputtext, .add-products-dialog .p-select, .add-products-dialog .p-inputnumber-input{inline-size:100%;box-sizing:border-box;padding:.55rem .75rem;border:1px solid var(--input-border)!important;border-radius:.5625rem;font:inherit;font-size:.815rem;color:var(--black-color);background:rgb(var(--bkg-white));outline:none} .modern-order-dialog input[type=text]:focus, .modern-order-dialog input[type=number]:focus, .modern-order-dialog input[type=email]:focus, .modern-order-dialog textarea:focus, .modern-order-dialog .p-inputtext:focus, .modern-order-dialog .p-select:focus, .modern-order-dialog .p-inputnumber-input:focus, .add-products-dialog input[type=text]:focus, .add-products-dialog input[type=number]:focus, .add-products-dialog input[type=email]:focus, .add-products-dialog textarea:focus, .add-products-dialog .p-inputtext:focus, .add-products-dialog .p-select:focus, .add-products-dialog .p-inputnumber-input:focus{border-color:var(--main-color)!important;box-shadow:0 0 0 3px rgba(var(--main-color-rgb),.15)} .modern-order-dialog input[type=text]::placeholder, .modern-order-dialog input[type=number]::placeholder, .modern-order-dialog input[type=email]::placeholder, .modern-order-dialog textarea::placeholder, .modern-order-dialog .p-inputtext::placeholder, .modern-order-dialog .p-select::placeholder, .modern-order-dialog .p-inputnumber-input::placeholder, .add-products-dialog input[type=text]::placeholder, .add-products-dialog input[type=number]::placeholder, .add-products-dialog input[type=email]::placeholder, .add-products-dialog textarea::placeholder, .add-products-dialog .p-inputtext::placeholder, .add-products-dialog .p-select::placeholder, .add-products-dialog .p-inputnumber-input::placeholder{color:var(--light-gray-color)} .modern-order-dialog textarea, .add-products-dialog textarea{line-height:1.55;resize:vertical} .modern-order-dialog .p-select, .add-products-dialog .p-select{display:flex;align-items:center} .modern-order-dialog .dialog-callout{display:flex;align-items:flex-start;gap:.625rem;padding:.75rem .875rem;border:1px solid rgba(var(--border-color-rgb),1);border-radius:.625rem;background:var(--bkg-gray);font-size:.815rem;line-height:1.55;color:var(--light-gray-color)} .modern-order-dialog .dialog-figure{display:flex;align-items:center;gap:.75rem;padding:.875rem 1rem;border:1px solid rgba(var(--border-color-rgb),1);border-radius:.75rem;background:var(--bkg-gray)} .modern-order-dialog .dialog-figure .figure-label{font-size:.69rem;font-weight:700;letter-spacing:.06em;color:var(--light-gray-color);text-transform:uppercase}[dir=rtl][_ngcontent-%COMP%] .modern-order-dialog .dialog-figure .figure-label{letter-spacing:normal} .modern-order-dialog .dialog-figure .figure-value{font-size:1.125rem;font-weight:700;color:var(--black-color);font-variant-numeric:tabular-nums}
1 .modern-order-dialog .dialog-field{display:flex;flex-direction:column;gap:.375rem} .modern-order-dialog .dialog-callout{margin:0;display:flex;align-items:flex-start;gap:.625rem;padding:.75rem .875rem;border:1px solid rgba(var(--border-color-rgb),1);border-radius:.625rem;background:var(--bkg-gray);font-size:.815rem;line-height:1.55;color:var(--light-gray-color)} .modern-order-dialog .dialog-callout.is-warning{border-color:rgba(var(--warning-color-rgb),.35);background:rgba(var(--warning-color-rgb),.1);color:var(--warning-color)} .modern-order-dialog .dialog-callout.is-danger{border-color:rgba(var(--danger-color-rgb),.35);background:rgba(var(--danger-color-rgb),.1);color:var(--danger-color)} .modern-order-dialog .section-title, .modern-order-dialog .form-section-title{display:flex;align-items:center;gap:.5rem;margin:0 0 .75rem;margin:0;font-size:.9rem;font-weight:700;color:var(--black-color);letter-spacing:-.01em}[dir=rtl][_ngcontent-%COMP%] .modern-order-dialog .section-title, [dir=rtl][_ngcontent-%COMP%] .modern-order-dialog .form-section-title{letter-spacing:normal} .modern-order-dialog .dialog-section+.dialog-section{margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid rgba(var(--border-color-rgb),1)} .add-products-dialog .p-dialog-content{padding:0;max-height:none;display:flex;flex-direction:column} .add-products-dialog .add-products-form{display:flex;flex-direction:column;flex:1;min-height:0} .add-products-dialog .search-section{display:flex;flex-wrap:wrap;gap:.625rem;padding:.875rem 1.25rem;border-bottom:1px solid rgba(var(--border-color-rgb),1)} .add-products-dialog .search-section .search-input-group{flex:2;min-width:14rem} .add-products-dialog .search-section .search-filter-group{flex:1;min-width:10rem} .add-products-dialog .search-section .search-field{display:block;width:100%} .add-products-dialog .products-container{flex:1;min-height:10rem;max-height:min(55vh,34rem);overflow-y:auto;padding:1rem 1.25rem;background:var(--bkg-gray)} .add-products-dialog .products-grid{display:flex;flex-direction:column;gap:.625rem} .add-products-dialog .product-card{background:rgb(var(--bkg-white));border:1px solid rgba(var(--border-color-rgb),1);border-radius:.625rem;overflow:hidden;transition:border-color .15s ease} .add-products-dialog .product-card:hover{border-color:var(--input-border)} .add-products-dialog .product-card:has(.p-checkbox-checked){border-color:rgba(var(--main-color-rgb),.55);background:rgba(var(--main-color-rgb),.04)} .add-products-dialog .product-header{display:flex;align-items:center;gap:.75rem;padding:.75rem .875rem} .add-products-dialog .product-select{display:flex;align-items:center;flex-shrink:0} .add-products-dialog .product-image-wrapper{width:2.5rem;height:2.5rem;flex-shrink:0;border-radius:.5rem;overflow:hidden;background:var(--bkg-gray);border:1px solid rgba(var(--border-color-rgb),.5)} .add-products-dialog .product-image-wrapper .product-image{width:100%;height:100%;object-fit:cover;display:block} .add-products-dialog .product-details{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:.75rem} .add-products-dialog .product-details .product-title{margin:0;font-size:.875rem;font-weight:600;color:var(--black-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .add-products-dialog .product-details .product-price-badge{font-size:.8125rem;font-weight:700;color:var(--black-color);font-variant-numeric:tabular-nums;white-space:nowrap} .add-products-dialog .variants-section{border-top:1px solid rgba(var(--border-color-rgb),.5);padding:.125rem .875rem .375rem;padding-inline-start:2.375rem} .add-products-dialog .variant-item+.variant-item{border-top:1px solid rgba(var(--border-color-rgb),.5)} .add-products-dialog .variant-content{display:flex;align-items:center;gap:.625rem;padding:.5625rem 0} .add-products-dialog .variant-details{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:.75rem} .add-products-dialog .variant-options{display:inline-flex;align-items:center;flex-wrap:wrap;gap:.25rem;font-size:.8125rem;color:var(--light-gray-color)} .add-products-dialog .variant-options strong{font-weight:600;color:var(--black-color)}
1 .add-products-dialog .variant-options .variant-option{display:inline-flex;align-items:center;gap:.25rem} .add-products-dialog .variant-options .color-swatch{display:inline-block;width:.875rem;height:.875rem;border-radius:50%;border:1px solid rgba(var(--border-color-rgb),1)} .add-products-dialog .variant-options .separator{opacity:.45} .add-products-dialog .variant-price{font-size:.8125rem;font-weight:600;color:var(--black-color);font-variant-numeric:tabular-nums;white-space:nowrap} .add-products-dialog .disabled-checkbox{opacity:.45;pointer-events:none} .add-products-dialog .empty-state-modern{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:3rem 1.5rem;color:var(--light-gray-color)} .add-products-dialog .empty-state-modern .empty-icon svg{color:var(--light-gray-color);opacity:.7} .add-products-dialog .empty-state-modern .empty-title{margin:.875rem 0 .25rem;font-size:.9375rem;font-weight:700;color:var(--black-color)} .add-products-dialog .empty-state-modern .empty-message{margin:0;font-size:.8125rem} .add-products-dialog .dialog-footer-custom{position:sticky;bottom:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;padding:.875rem 1.25rem;border-top:1px solid rgba(var(--border-color-rgb),1);background:var(--bkg-gray)} .add-products-dialog .dialog-footer-custom .dialog-actions{display:flex;gap:.5rem} .add-products-dialog .dialog-footer-custom .selection-chip{background:rgb(var(--bkg-white));border:1px solid rgba(var(--border-color-rgb),1);color:var(--black-color);font-size:.8rem;font-weight:600}.order-restock[_ngcontent-%COMP%]{max-width:80rem;margin-inline:auto;min-height:calc(100vh - 200px)}@media screen and (max-width:768px){.order-restock[_ngcontent-%COMP%] .tracking[_ngcontent-%COMP%]{flex-wrap:wrap}.order-restock[_ngcontent-%COMP%] .tracking[_ngcontent-%COMP%] .w-50[_ngcontent-%COMP%]{width:100%!important}}.order-restock[_ngcontent-%COMP%] .summary[_ngcontent-%COMP%]{color:var(--black-color)}.order-restock[_ngcontent-%COMP%] .summary[_ngcontent-%COMP%] p-button[_ngcontent-%COMP%]{width:100%!important}.order-restock[_ngcontent-%COMP%] .summary[_ngcontent-%COMP%] p-button[_ngcontent-%COMP%] .p-button{width:100%!important;border-radius:.5rem!important;font-weight:600!important;transition:all .2s ease!important}.order-restock[_ngcontent-%COMP%] .summary[_ngcontent-%COMP%] p-button[_ngcontent-%COMP%] .p-button:hover{transform:translateY(-2px)!important}.order-restock[_ngcontent-%COMP%] .p-inputnumber{position:relative;height:2rem}.order-restock[_ngcontent-%COMP%] .p-inputnumber .p-inputnumber-button{width:2rem;border-radius:.5rem;transition:all .2s ease}.order-restock[_ngcontent-%COMP%] .p-inputnumber .p-inputnumber-button:hover{background:var(--main-color)!important;color:#fff!important}.order-restock[_ngcontent-%COMP%] .p-inputnumber .p-inputtext{width:3.75rem;text-align:center;border-radius:.5rem}.order-restock[_ngcontent-%COMP%] .p-dialog{border-radius:1rem;overflow:hidden;border:1px solid rgba(var(--border-color-rgb),1);
1box-shadow:var(--box-shadow-lg)}.order-restock[_ngcontent-%COMP%] .p-dialog-header{padding:1.125rem 1.25rem;border-bottom:1px solid rgba(var(--border-color-rgb),1);background:rgb(var(--bkg-white));color:var(--black-color)}.order-restock[_ngcontent-%COMP%] .p-dialog-header .p-dialog-title{font-size:1rem;font-weight:700;color:var(--black-color);letter-spacing:-.01em}[dir=rtl][_ngcontent-%COMP%] .order-restock[_ngcontent-%COMP%] .p-dialog-header .p-dialog-title{letter-spacing:normal}.order-restock[_ngcontent-%COMP%] .p-dialog-header .p-dialog-header-icons button{color:var(--light-gray-color)}.order-restock[_ngcontent-%COMP%] .p-dialog-header .p-dialog-header-icons button:hover{background:var(--bkg-gray);color:var(--black-color)}.order-restock[_ngcontent-%COMP%] .p-dialog-content{padding:1.25rem;background:rgb(var(--bkg-white));max-height:calc(100vh - 14rem);overflow-y:auto}.order-restock[_ngcontent-%COMP%] .p-dialog-footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem;padding:.875rem 1.25rem;border-top:1px solid rgba(var(--border-color-rgb),1);background:var(--bkg-gray)}.order-restock[_ngcontent-%COMP%] .p-dialog-header{padding-bottom:0;border-bottom:none}.order-restock[_ngcontent-%COMP%] .p-confirm-dialog-message{font-size:.875rem;line-height:1.6;color:var(--light-gray-color)}"]})}return a})();export{dr as OrderRestockComponent};
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.