1import {r as re$1,x as xe}from'./chunk-BaR2wJ0J.js';import {Z as Zt}from'./chunk-Bk4Rnyd8.js';import {N as Nr}from'./chunk-Bdpn2DQY.js';import'./chunk-BNoCOWRe.js';import {w}from'./chunk-1qrgrnve.js';import {p as p$1,aC as $t$1,c as bt$1,L,b,aE as rt$1,a5 as Ri,o as oe,ah as Ag,a9 as m,aa as l$1,m as mf,ab as ND,A as qn,ao as jn,aP as nn,D as Du,b7 as re,aq as ze$1,bB as F,ay as KM,i as bT,q as qa,h as hc,w as wf,f as fc,v as v_,g as Ig,C as Cg,S as ST,T as Tb,n as cv,X as Nf,V as gc,H as PT,P as P_,a0 as lg,J as HT,a1 as dg,ar as mS,I as Iv,K as c_,ae as j_,as as vS,M as MT,G as NT,bb as TT,R as Rv,aB as x_,Z as _T,r as R_,aQ as T_,a3 as sy}from'./main-XS2VIG2R.js';import {g}from'./chunk-CI_eiGS5.js';import {V}from'./chunk-CvHzVDD8.js';import {U}from'./chunk-C8pRGevG.js';var q=a=>["/analytics/ad-performance",a],we=()=>["more than","at least","exact"],Oe=(a,s)=>s.key,Se=(a,s)=>s.subCat._id,ke=(a,s)=>s._id;function Ve(a,s){a&1&&(qa(0,"div",0)(1,"aside",35),fc(2,"div",36),qa(3,"div",37),fc(4,"div",38)(5,"div",39)(6,"div",39)(7,"div",39)(8,"div",39),wf()(),qa(9,"main",40),fc(10,"div",41),qa(11,"div",42),fc(12,"div",43)(13,"div",44),wf(),qa(14,"div",42),fc(15,"div",43),qa(16,"div",45),fc(17,"div",44)(18,"div",44)(19,"div",44)(20,"div",44),wf()(),qa(21,"div",42),fc(22,"div",43)(23,"div",46),wf(),qa(24,"div",42),fc(25,"div",43)(26,"div",47),wf(),fc(27,"div",48),wf(),qa(28,"aside",49),fc(29,"div",50),qa(30,"div",51),fc(31,"div",52)(32,"div",53)(33,"div",54),wf(),qa(34,"div",55),fc(35,"div",43),qa(36,"div",56),fc(37,"div",44)(38,"div",44)(39,"div",44)(40,"div",44),wf()()()());}function Ae(a,s){a&1&&(fc(0,"span",139),qa(1,"span",140),v_(2,"Saving changes..."),wf());}function Te(a,s){a&1&&(qa(0,"span",141),v_(1,"\u2713"),wf(),qa(2,"span",140),v_(3,"All changes saved"),wf());}function Ie(a,s){a&1&&(qa(0,"div",75),fc(1,"span",142),qa(2,"span"),v_(3,"Loading performance..."),wf()());}function De(a,s){if(a&1&&(qa(0,"div",143)(1,"div",144)(2,"div",145)(3,"span",146),v_(4),wf(),qa(5,"span",147),v_(6,"Views"),wf()(),qa(7,"div",148),Ig(),qa(8,"svg",149),fc(9,"path",150)(10,"circle",109),wf()()(),Cg(),qa(11,"div",144)(12,"div",145)(13,"span",146),v_(14),wf(),qa(15,"span",147),v_(16,"Buyer Contacts"),wf()(),qa(17,"div",151),Ig(),qa(18,"svg",149),fc(19,"path",152),wf()()(),Cg(),qa(20,"div",144)(21,"div",145)(22,"span",146),v_(23),wf(),qa(24,"span",147),v_(25,"Wishlist Saves"),wf()(),qa(26,"div",153),Ig(),qa(27,"svg",149),fc(28,"path",154),wf()()(),Cg(),qa(29,"div",144)(30,"div",145)(31,"span",146),v_(32),wf(),qa(33,"span",147),v_(34,"Shares"),wf()(),qa(35,"div",155),Ig(),qa(36,"svg",149),fc(37,"circle",156)(38,"circle",157)(39,"circle",158)(40,"line",159)(41,"line",160),wf()()()(),Cg(),fc(42,"div",161),qa(43,"a",162)(44,"span"),v_(45,"View Complete Ad Analytics"),wf(),Ig(),qa(46,"svg",127),fc(47,"path",163)(48,"path",164),wf()()),a&2){let e=HT(2);Tb(4),Rv(e.formatMetric(e.perfMetrics()?.views)),Tb(10),Rv(e.formatMetric(e.perfMetrics()?.contacts)),Tb(9),Rv(e.formatMetric(e.perfMetrics()?.saves)),Tb(9),Rv(e.formatMetric(e.perfMetrics()?.shares)),Tb(11),cv("routerLink",x_(5,q,e.adDetail()?.slug||e.adId()));}}function Le(a,s){if(a&1&&(qa(0,"span",165),v_(1),wf()),a&2){let e=HT(3);Tb(),Rv(e.categoryName());}}function Ne(a,s){a&1&&(Ig(),qa(0,"svg",166),fc(1,"polyline",170),wf());}function ze(a,s){if(a&1&&(qa(0,"span",167),v_(1),wf()),a&2){let e=HT(3);Tb(),Rv(e.subCategoryName());}}function Re(a,s){if(a&1){let e=PT();qa(0,"div",81),bT(1,Le,2,1,"span",165),bT(2,Ne,2,0,":svg:svg",166),bT(3,ze,2,1,"span",167),qa(4,"button",168),hc("click",function(){lg(e);let i=HT(2);return dg(i.openCategoryModal())}),Ig(),qa(5,"svg",94),fc(6,"path",169),wf(),v_(7," Change "),wf()();}if(a&2){let e=HT(2);Tb(),ST(e.categoryName()?1:-1),Tb(),ST(e.categoryName()&&e.subCategoryName()?2:-1),Tb(),ST(e.subCategoryName()?3:-1);}}function Be(a,s){if(a&1){let e=PT();qa(0,"div",82)(1,"span",171),v_(2,"No Category Selected"),wf(),qa(3,"button",172),hc("click",function(){lg(e);let i=HT(2);return dg(i.openCategoryModal())}),v_(4," Select Category "),wf()();}}function Ue(a,s){if(a&1){let e=PT();qa(0,"button",173),hc("click",function(){lg(e);let i=HT(2);return dg(i.cancelTitleEdit())}),v_(1," \u2715 Cancel "),wf(),qa(2,"button",174),hc("click",function(){lg(e);let i=HT(2);return dg(i.saveTitleEdit())}),v_(3," \u2713 Save "),wf();}}function $e(a,s){if(a&1){let e=PT();qa(0,"button",93),hc("click",function(){lg(e);let i=HT(2);return dg(i.isEditingTitle.set(true))}),Ig(),qa(1,"svg",94),fc(2,"path",169),wf(),v_(3," Edit Title "),wf();}}function Fe(a,s){if(a&1){let e=PT();qa(0,"div",88)(1,"app-input",175),hc("ngModelChange",function(i){lg(e);let c=HT(2);return dg(c.title.set(i))}),wf(),mS(),wf();}if(a&2){let e=HT(2);Tb(),cv("ngModel",e.title()),vS();}}function He(a,s){if(a&1&&(qa(0,"h1",89),v_(1),wf()),a&2){let e=HT(2);Tb(),Rv(e.title()||"Untitled Ad");}}function je(a,s){if(a&1&&(qa(0,"span",92),v_(1),wf()),a&2){let e=HT(2);Tb(),Nf(" \u{1F4F7} ",e.imageUrls().length," Photos Uploaded \u2022 Analyzed for Search Optimization ");}}function Ge(a,s){if(a&1){let e=PT();qa(0,"div",178),hc("click",function(){lg(e);let i=HT(4);return dg(i.isEditingMedia.set(true))}),fc(1,"img",179),wf();}if(a&2){let e=HT(),t=e.$implicit,i=e.$index;Iv("primary",i===0),Tb(),cv("src",t,sy)("alt","Product photo "+(i+1));}}function Qe(a,s){if(a&1&&bT(0,Ge,2,4,"div",177),a&2){let e=s.$index;ST(e<5?0:-1);}}function We(a,s){if(a&1){let e=PT();qa(0,"div",180),hc("click",function(){lg(e);let i=HT(3);return dg(i.isEditingMedia.set(true))}),qa(1,"span"),v_(2),wf()();}if(a&2){let e=HT(3);Tb(2),Nf("+",e.imageUrls().length-5);}}function Ye(a,s){if(a&1&&(qa(0,"div",98),MT(1,Qe,1,1,null,null,_T),bT(3,We,3,1,"div",176),wf()),a&2){let e=HT(2);Tb(),NT(e.imageUrls()),Tb(2),ST(e.imageUrls().length>5?3:-1);}}function qe(a,s){if(a&1&&(qa(0,"div",99)(1,"label",181),v_(2,"Product Video"),wf(),fc(3,"video",182),wf()),a&2){let e=HT(2);Tb(3),cv("src",e.videoUrl(),sy);}}
1function Je(a,s){a&1&&(Ig(),qa(0,"svg",191),fc(1,"polyline",192),wf());}function Xe(a,s){if(a&1){let e=PT();qa(0,"button",190),hc("click",function(){let i=lg(e).$implicit,c=HT(2).$index,m=HT(3);return dg(m.selectOption(c,i))}),bT(1,Je,2,0,":svg:svg",191),v_(2),wf();}if(a&2){let e=s.$implicit,t=HT(2).$implicit;Iv("selected",t.value===e),Tb(),ST(t.value===e?1:-1),Tb(),Nf(" ",e," ");}}function Ke(a,s){if(a&1&&(qa(0,"div",187),MT(1,Xe,3,4,"button",189,_T),wf()),a&2){let e=HT().$implicit;Tb(),NT(e.options);}}function Ze(a,s){if(a&1&&(qa(0,"span",193),v_(1),wf()),a&2){let e=s.$implicit;Tb(),Rv(e);}}function et(a,s){if(a&1&&(qa(0,"div",187),MT(1,Ze,2,1,"span",193,_T),wf()),a&2){let e=HT().$implicit,t=HT(3);Tb(),NT(t.splitMultiValue(e.value));}}function tt(a,s){if(a&1&&(qa(0,"span",194),v_(1),wf()),a&2){let e=HT().$implicit,t=HT(3);Iv("null-value",e.value==="null"),Tb(),Nf(" ",t.formatSpecDisplay(e.value)," ");}}function nt(a,s){if(a&1&&(qa(0,"div",185)(1,"span",186),v_(2),wf(),bT(3,Ke,3,0,"div",187)(4,et,3,0,"div",187)(5,tt,2,3,"span",188),wf()),a&2){let e=s.$implicit,t=HT(3);Iv("full-width",e.value&&e.value.length>45||e.key.toLowerCase().includes("feature")),Tb(2),Rv(e.key),Tb(),ST(e.isUnsure&&e.options?.length?3:t.isMultiValue(e.value)?4:5);}}function it(a,s){if(a&1){let e=PT();qa(0,"div",100)(1,"div",84)(2,"label",85),v_(3,"Specifications"),wf(),qa(4,"button",93),hc("click",function(){lg(e);let i=HT(2);return dg(i.isEditingSpecs.set(true))}),Ig(),qa(5,"svg",94),fc(6,"path",169),wf(),v_(7," Edit Specs "),wf()(),Cg(),qa(8,"div",183),MT(9,nt,6,4,"div",184,Oe),wf()();}if(a&2){let e=HT(2);Tb(9),NT(e.specs());}}function ot(a,s){if(a&1){let e=PT();qa(0,"button",173),hc("click",function(){lg(e);let i=HT(2);return dg(i.cancelDescriptionEdit())}),v_(1," \u2715 Cancel "),wf(),qa(2,"button",174),hc("click",function(){lg(e);let i=HT(2);return dg(i.saveDescriptionEdit())}),v_(3," \u2713 Save Description "),wf();}}function at(a,s){if(a&1){let e=PT();qa(0,"button",93),hc("click",function(){lg(e);let i=HT(2);return dg(i.isEditingDescription.set(true))}),Ig(),qa(1,"svg",94),fc(2,"path",169),wf(),v_(3," Edit Description "),wf();}}function rt(a,s){if(a&1){let e=PT();qa(0,"div",102)(1,"app-textarea",195),hc("ngModelChange",function(i){lg(e);let c=HT(2);return dg(c.description.set(i))}),wf(),mS(),wf();}if(a&2){let e=HT(2);Tb(),cv("ngModel",e.description())("minHeight",80)("maxHeight",200)("maxLength",1e3),vS();}}function lt(a,s){if(a&1&&(qa(0,"p",103),v_(1),wf()),a&2){let e=HT(2);Tb(),Rv(e.description());}}function ct(a,s){a&1&&(qa(0,"p",104),v_(1,'No description provided. Click "Edit Description" to add one.'),wf());}function dt(a,s){if(a&1&&(qa(0,"span",108),v_(1," \u{1F4A1} Market: "),qa(2,"strong"),v_(3),P_(4,"number"),wf(),v_(5," \u2013 "),qa(6,"strong"),v_(7),P_(8,"number"),wf()()),a&2){let e=s;Tb(3),Nf("\u20A6",j_(4,2,e.min,"1.0-0")),Tb(4),Nf("\u20A6",j_(8,5,e.max,"1.0-0"));}}function st(a,s){a&1&&(qa(0,"span",196),v_(1,"\u2713 Negotiable"),wf());}function pt(a,s){a&1&&(qa(0,"span",196),v_(1,"\u2713 Bulk Pricing Enabled"),wf());}function mt(a,s){if(a&1&&(qa(0,"div",114),bT(1,st,2,0,"span",196),bT(2,pt,2,0,"span",196),wf()),a&2){let e=HT(2);Tb(),ST(e.isNegotiable()?1:-1),Tb(),ST(e.isBulkPricingEnabled()?2:-1);}}function gt(a,s){a&1&&(qa(0,"span",121),v_(1," \u26A0\uFE0F A location is required to save updates to this ad. "),wf());}function ut(a,s){if(a&1){let e=PT();qa(0,"button",197),hc("click",function(){lg(e);let i=HT(2);return dg(i.openShareModal())}),Ig(),qa(1,"svg",127),fc(2,"circle",156)(3,"circle",157)(4,"circle",158)(5,"line",159)(6,"line",160),wf(),Cg(),qa(7,"span"),v_(8,"Share Ad"),wf()(),qa(9,"a",198),Ig(),qa(10,"svg",127),fc(11,"line",70)(12,"line",71)(13,"line",72),wf(),Cg(),qa(14,"span"),v_(15,"Go to Analytics"),wf()();}if(a&2){let e=HT(2);Tb(9),cv("routerLink",x_(1,q,e.adDetail()?.slug||e.adId()));}}function _t(a,s){a&1&&(Ig(),qa(0,"svg",127),fc(1,"path",199)(2,"line",200),wf(),Cg(),qa(3,"span"),v_(4,"Unpublish Ad"),wf());}function ft(a,s){a&1&&(Ig(),qa(0,"svg",127),fc(1,"path",150)(2,"circle",109),wf(),Cg(),qa(3,"span"),v_(4,"Publish Ad"),wf());}function Ct(a,s){if(a&1){let e=PT();qa(0,"button",197),hc("click",function(){lg(e);let i=HT(2);return dg(i.openShareModal())}),Ig(),qa(1,"svg",127),fc(2,"circle",156)(3,"circle",157)(4,"circle",158)(5,"line",159)(6,"line",160),wf(),
1Cg(),qa(7,"span"),v_(8,"Share Ad"),wf()(),qa(9,"a",198),Ig(),qa(10,"svg",127),fc(11,"line",70)(12,"line",71)(13,"line",72),wf(),Cg(),qa(14,"span"),v_(15,"Go to Analytics"),wf()();}if(a&2){let e=HT(2);Tb(9),cv("routerLink",x_(1,q,e.adDetail()?.slug||e.adId()));}}function bt(a,s){a&1&&(Ig(),qa(0,"svg",127),fc(1,"path",199)(2,"line",200),wf(),Cg(),qa(3,"span"),v_(4,"Unpublish Ad"),wf());}function ht(a,s){a&1&&(Ig(),qa(0,"svg",127),fc(1,"path",150)(2,"circle",109),wf(),Cg(),qa(3,"span"),v_(4,"Publish Ad"),wf());}function xt(a,s){if(a&1){let e=PT();qa(0,"div",201),hc("click",function(){lg(e);let i=HT(2);return dg(i.toggleMobileSidebar())}),wf();}}function vt(a,s){if(a&1){let e=PT();qa(0,"div",1)(1,"div",57),bT(2,Ae,3,0)(3,Te,4,0),wf(),qa(4,"aside",58)(5,"div",59)(6,"a",60),Ig(),qa(7,"svg",61),fc(8,"path",62)(9,"path",63),wf(),v_(10," Back to My Ads "),wf()(),Cg(),qa(11,"div",64)(12,"h3"),v_(13,"Ad Performance"),wf(),qa(14,"button",65),hc("click",function(){lg(e);let i=HT();return dg(i.toggleMobileSidebar())}),v_(15,"\xD7"),wf()(),qa(16,"section",66)(17,"div",67)(18,"div",68),Ig(),qa(19,"svg",69),fc(20,"line",70)(21,"line",71)(22,"line",72),wf(),Cg(),qa(23,"h3",73),v_(24,"Ad Performance"),wf()(),qa(25,"span",74),v_(26,"Last 30 days"),wf()(),bT(27,Ie,4,0,"div",75)(28,De,49,7),wf()(),qa(29,"main",76)(30,"div",77)(31,"div",78)(32,"span",79),fc(33,"span",80),v_(34),wf(),bT(35,Re,8,3,"div",81)(36,Be,5,0,"div",82),wf(),qa(37,"div",83)(38,"div",84)(39,"label",85),v_(40,"Ad Title"),wf(),qa(41,"div",86),bT(42,Ue,4,0)(43,$e,4,0,"button",87),wf()(),bT(44,Fe,2,1,"div",88)(45,He,2,1,"h1",89),wf(),qa(46,"div",90)(47,"div",84)(48,"div",91)(49,"label",85),v_(50,"Photos & Video"),wf(),bT(51,je,2,1,"span",92),wf(),qa(52,"button",93),hc("click",function(){lg(e);let i=HT();return dg(i.isEditingMedia.set(true))}),Ig(),qa(53,"svg",94),fc(54,"path",95)(55,"circle",96),wf(),v_(56," Manage Photos & Video "),wf()(),Cg(),qa(57,"div",97),bT(58,Ye,4,1,"div",98),bT(59,qe,4,1,"div",99),wf()(),bT(60,it,11,0,"div",100),qa(61,"div",101)(62,"div",84)(63,"label",85),v_(64,"Description"),wf(),qa(65,"div",86),bT(66,ot,4,0)(67,at,4,0,"button",87),wf()(),bT(68,rt,2,4,"div",102)(69,lt,2,1,"p",103)(70,ct,2,0,"p",104),wf(),qa(71,"div",105)(72,"div",106)(73,"div",107)(74,"label",85),v_(75,"Price"),wf(),bT(76,dt,9,8,"span",108),wf(),qa(77,"button",93),hc("click",function(){lg(e);let i=HT();return dg(i.openPricingOptionsModal())}),Ig(),qa(78,"svg",94),fc(79,"circle",109)(80,"path",110),wf(),v_(81," Pricing Options "),wf()(),Cg(),qa(82,"div",111)(83,"span",112),v_(84,"\u20A6"),wf(),qa(85,"input",113),P_(86,"number"),hc("input",function(i){lg(e);let c=HT();return dg(c.onPriceInputChange(i))})("blur",function(){lg(e);let i=HT();return dg(i.onPriceBlur())}),wf()(),bT(87,mt,3,2,"div",114),wf(),qa(88,"div",115)(89,"div",84)(90,"label",85),v_(91,"Location"),wf(),qa(92,"button",116),hc("click",function(){lg(e);let i=HT();return dg(i.selectCurrentLocation())}),Ig(),qa(93,"svg",117),fc(94,"circle",118)(95,"circle",109),wf(),v_(96," Use Current Location "),wf()(),Cg(),qa(97,"div",119)(98,"app-location-select",120),hc("ngModelChange",function(i){lg(e);let c=HT();return dg(c.onLocationSelected(i))}),wf(),mS(),wf(),bT(99,gt,2,0,"span",121),wf(),qa(100,"div",122)(101,"h4",123),v_(102,"Ad Actions"),wf(),qa(103,"div",124),bT(104,ut,16,3),qa(105,"button",125),hc("click",function(){lg(e);let i=HT();return dg(i.confirmPublishStatusToggle())}),bT(106,_t,5,0)(107,ft,5,0),wf(),qa(108,"button",126),hc("click",function(){lg(e);let i=HT();return dg(i.openDeleteConfirmModal())}),Ig(),qa(109,"svg",127),fc(110,"polyline",128)(111,"path",129),wf(),Cg(),qa(112,"span"),v_(113,"Delete Ad"),wf()()()(),qa(114,"div",130)(115,"app-button",131),hc("buttonClick",function(){lg(e);let i=HT();return dg(i.onMainSaveButtonClick())}),v_(116),wf()()()(),qa(117,"aside",132)(118,"div",133)(119,"h4"),v_(120,"How buyers see your ad"),wf(),fc(121,"app-search-preview-card",134),qa(122,"div",135)(123,"h4",123),v_(124,"Ad Actions"),wf(),qa(125,"div",124),bT(126,Ct,16,3),qa(127,"button",125),hc("click",function(){lg(e);let i=HT();return dg(i.confirmPublishStatusToggle())}),bT(128,bt,5,0)(129,ht,5,0),wf(),qa(130,"button",126),hc("click",function(){lg(e);let i=HT();return dg(i.openDeleteConfirmModal())}),Ig(),qa(131,"svg",127),fc(132,"polyline",128)(133,"path",129),wf(),Cg(),qa(134,"span"),v_(135,"Delete Ad"),wf()()()()()(),qa(136,"button",136),hc("click",function(){lg(e);let i=HT();return dg(i.toggleMobileSidebar())}),qa(137,"span",137),v_(138,"\u{1F4CA}"),wf(),v_(139," Performance "),wf(),bT(140,xt,1,0,"div",138),wf();}if(a&2){let e,t=HT();Tb(),Iv("is-saving",t.isSaving())("is-saved",t.isJustSaved()),Tb(),ST(t.isSaving()?2:t.isJustSaved()?3:-1),Tb(2),Iv("mobile-open",t.mobileSidebarOpen()),Tb(23),ST(t.isLoadingMetrics()?27:28),Tb(5),c_(t.statusClass()),Tb(2),Nf(" ",t.statusLabel()," "),Tb(),ST(t.categoryName()||t.subCategoryName()?35:36),Tb(7),ST(t.isEditingTitle()?42
1:43),Tb(2),ST(t.isEditingTitle()?44:45),Tb(7),ST(t.imageUrls().length?51:-1),Tb(7),ST(t.imageUrls().length?58:-1),Tb(),ST(t.videoUrl()?59:-1),Tb(),ST(t.specs().length?60:-1),Tb(6),ST(t.isEditingDescription()?66:67),Tb(2),ST(t.isEditingDescription()?68:t.description()?69:70),Tb(8),ST((e=t.marketPriceRange())?76:-1,e),Tb(9),cv("value",t.price()?j_(86,42,t.price(),"1.0-0"):""),Tb(2),ST(t.isNegotiable()||t.isBulkPricingEnabled()?87:-1),Tb(11),cv("ngModel",t.locationId())("displayLocationName",t.locationName()),vS(),Tb(),ST(t.locationName()?-1:99),Tb(5),ST(t.isPublished()&&t.isApproved()?104:-1),Tb(),Iv("is-published",t.isPublished()),Tb(),ST(t.isPublished()?106:107),Tb(9),cv("loading",t.isSaving())("disabled",t.isSaving()),Tb(),Nf(" ",t.isPublished()?"Save & Update Ad":"Save & Publish Ad"," "),Tb(5),cv("title",t.previewTitle())("price",t.previewPrice())("imageUrl",t.primaryImageUrl())("location",t.previewLocation()),Tb(5),ST(t.isPublished()&&t.isApproved()?126:-1),Tb(),Iv("is-published",t.isPublished()),Tb(),ST(t.isPublished()?128:129),Tb(12),ST(t.mobileSidebarOpen()?140:-1);}}function Mt(a,s){if(a&1){let e=PT();qa(0,"button",210),hc("click",function(){lg(e);let i=HT(2);return dg(i.selectedCategoryForModal.set(null))}),v_(1," \u2190 "),wf(),v_(2);}a&2&&(Tb(2),Nf(" ",s.name," "));}function Pt(a,s){a&1&&v_(0," Select Category ");}function yt(a,s){a&1&&(qa(0,"div",209),fc(1,"div",211),qa(2,"p"),v_(3,"Loading categories..."),wf()());}function Ot(a,s){if(a&1){let e=PT();qa(0,"div",215),hc("click",function(){let i=lg(e).$implicit,c=HT(4);return dg(c.selectSubCategory(i.cat,i.subCat))}),qa(1,"div",216)(2,"span",217),v_(3),wf(),qa(4,"span",218),v_(5),wf()(),qa(6,"span",219),v_(7,"\u203A"),wf()();}if(a&2){let e=s.$implicit;Tb(3),Rv(e.subCat.name),Tb(2),Nf("in ",e.cat.name);}}function kt(a,s){if(a&1&&(qa(0,"div",214),v_(1),wf()),a&2){let e=HT(4);Tb(),Nf('No categories found matching "',e.categorySearchQuery(),'"');}}function Et(a,s){if(a&1&&(qa(0,"div",212),MT(1,Ot,8,2,"div",213,Se),bT(3,kt,2,1,"div",214),wf()),a&2){let e=HT(3);Tb(),NT(e.filteredSearchResults()),Tb(2),ST(e.filteredSearchResults().length===0?3:-1);}}function wt(a,s){if(a&1){let e=PT();qa(0,"div",215),hc("click",function(){let i=lg(e).$implicit,c=HT(),m=HT(3);return dg(m.selectSubCategory(c,i))}),qa(1,"span",217),v_(2),wf(),qa(3,"span",219),v_(4,"\u203A"),wf()();}if(a&2){let e=s.$implicit;Tb(2),Rv(e.name);}}function St(a,s){if(a&1&&(qa(0,"div",214),v_(1),wf()),a&2){let e=HT();Tb(),Nf("No subcategories found in ",e.name,".");}}function Vt(a,s){if(a&1&&(qa(0,"div",212),MT(1,wt,5,1,"div",213,ke),bT(3,St,2,1,"div",214),wf()),a&2){let e=s;Tb(),NT(e.subCategories),Tb(2),ST(e.subCategories?.length?-1:3);}}function At(a,s){if(a&1){let e=PT();qa(0,"div",221),hc("click",function(){let i=lg(e).$implicit,c=HT(4);return dg(c.selectCategoryInModal(i))}),qa(1,"div",216)(2,"span",222),v_(3),wf(),qa(4,"span",218),v_(5),wf()(),qa(6,"span",219),v_(7,"\u203A"),wf()();}if(a&2){let e=s.$implicit;Tb(3),Rv(e.name),Tb(2),Nf("",e.subCategories?.length||0," subcategories");}}function Tt(a,s){if(a&1&&(qa(0,"div",212),MT(1,At,8,2,"div",220,ke),wf()),a&2){let e=HT(3);Tb(),NT(e.allCategories());}}function It(a,s){if(a&1&&bT(0,Et,4,1,"div",212)(1,Vt,4,1,"div",212)(2,Tt,3,0,"div",212),a&2){let e,t=HT(2);ST(t.categorySearchQuery().trim()?0:(e=t.selectedCategoryForModal())?1:2,e);}}function Dt(a,s){if(a&1){let e=PT();qa(0,"div",202),hc("click",function(){lg(e);let i=HT();return dg(i.closeCategoryModal())}),qa(1,"div",203),hc("click",function(i){return i.stopPropagation()}),qa(2,"div",204)(3,"h3"),bT(4,Mt,3,1)(5,Pt,1,0),wf(),qa(6,"button",205),hc("click",function(){lg(e);let i=HT();return dg(i.closeCategoryModal())}
1),v_(7,"\u2715"),wf()(),qa(8,"div",206)(9,"input",207),hc("input",function(i){lg(e);let c=HT();return dg(c.categorySearchQuery.set(i.target.value))}),wf()(),qa(10,"div",208),bT(11,yt,4,0,"div",209)(12,It,3,1),wf()()();}if(a&2){let e,t=HT();Tb(4),ST((e=t.selectedCategoryForModal())?4:5,e),Tb(5),cv("value",t.categorySearchQuery()),Tb(2),ST(t.isCategoriesLoading()?11:12);}}function Lt(a,s){if(a&1){let e=PT();qa(0,"div",4)(1,"app-media-upload",223),hc("imagesChanged",function(){lg(e);let i=HT();return dg(i.onMediaChanged())})("videoChanged",function(){lg(e);let i=HT();return dg(i.onMediaChanged())}),wf()();}if(a&2){let e=HT();Tb(),cv("adDetail",e.mediaAdDetail())("targetSection",e.mediaTargetSection());}}function Nt(a,s){if(a&1){let e=PT();qa(0,"div",229)(1,"app-select",230),hc("ngModelChange",function(i){lg(e);let c=HT().$index,m=HT(2);return dg(m.updateSpecValue(c,i))}),wf(),mS(),wf();}if(a&2){let e=HT().$implicit;Tb(),cv("placeholder",T_("Select ",e.key))("options",e.options)("ngModel",e.value)("type",e.type==="MULTIPLE_SELECT"?"multiple":"single"),vS();}}function zt(a,s){if(a&1){let e=PT();qa(0,"div",229)(1,"app-input",231),hc("ngModelChange",function(i){lg(e);let c=HT().$index,m=HT(2);return dg(m.updateSpecValue(c,i))}),wf(),mS(),wf();}if(a&2){let e=HT().$implicit;Tb(),cv("placeholder",T_("Enter ",e.key))("ngModel",e.value==="null"?"":e.value),vS();}}function Rt(a,s){if(a&1&&(qa(0,"div",225)(1,"span",186),v_(2),wf(),bT(3,Nt,2,5,"div",229)(4,zt,2,3,"div",229),wf()),a&2){let e=s.$implicit;Tb(2),Rv(e.key),Tb(),ST(e.options?.length?3:4);}}function Bt(a,s){if(a&1){let e=PT();qa(0,"div",6)(1,"div",224),MT(2,Rt,5,2,"div",225,Oe),wf(),qa(4,"div",226)(5,"button",227),hc("click",function(){lg(e);let i=HT();return dg(i.cancelSpecsEdit())}),v_(6," Cancel "),wf(),qa(7,"button",228),hc("click",function(){lg(e);let i=HT();return dg(i.saveSpecsEdit())}),v_(8," \u2713 Save Specifications "),wf()()();}if(a&2){let e=HT();Tb(2),NT(e.specs());}}function Ut(a,s){if(a&1){let e=PT();qa(0,"div",240)(1,"div",244)(2,"span",245),v_(3),wf(),qa(4,"button",246),hc("click",function(){let i=lg(e).$index,c=HT(2);return dg(c.removeBulkPricingRule(i))}),v_(5," \u2715 Remove "),wf()(),qa(6,"div",247)(7,"div",248)(8,"label",249),v_(9,"If items are"),wf(),qa(10,"app-select",250),hc("ngModelChange",function(i){let c=lg(e).$index,m=HT(2);return dg(m.updateBulkPricingRule(c,"condition",i))}),wf(),mS(),wf(),qa(11,"div",248)(12,"label",249),v_(13,"Quantity"),wf(),qa(14,"app-input",251),hc("ngModelChange",function(i){let c=lg(e).$index,m=HT(2);return dg(m.updateBulkPricingRule(c,"minQuantity",i))}),wf(),mS(),wf(),qa(15,"div",248)(16,"label",249),v_(17,"Cost per item"),wf(),qa(18,"div",252)(19,"span",112),v_(20,"\u20A6"),wf(),qa(21,"input",253),P_(22,"number"),hc("input",function(i){let c=lg(e).$index,m=HT(2);return dg(m.onRulePriceInput(c,i))}),wf()()()()();}if(a&2){let e=s.$implicit,t=s.$index;Tb(3),Nf("Rule #",t+1),Tb(7),cv("options",R_(8,we))("ngModel",e.condition),vS(),Tb(4),cv("ngModel",e.minQuantity),vS(),Tb(7),cv("value",e.pricePerItem?j_(22,5,e.pricePerItem,"1.0-0"):"");}}function $t(a,s){if(a&1){let e=PT();qa(0,"div",8)(1,"div",232)(2,"div",233)(3,"span",234),v_(4,"Price is Negotiable"),wf(),qa(5,"span",235),v_(6,"Allow buyers to submit price offers on this item."),wf()(),qa(7,"label",236)(8,"input",237),hc("change",function(i){lg(e);let c=HT();return dg(c.onNegotiableChange(i.target.checked))}),wf(),qa(9,"span",238),v_(10,"Enable"),wf()()(),qa(11,"div",239),MT(12,Ut,23,9,"div",240,TT),qa(14,"div",241)(15,"button",242),hc("click",function(){lg(e);let i=HT();return dg(i.addBulkPricingRule())}),v_(16," + Add New Pricing Rule "),wf()()(),qa(17,"div",226)(18,"button",227),hc("click",function(){lg(e);let i=HT();return dg(i.closePricingOptionsModal())}),v_(19," Cancel "),wf(),qa(20,"button",243),hc("click",function(){lg(e);let i=HT();return dg(i.closePricingOptionsModal())}),v_(21," Save Rules "),wf()()();}if(a&2){let e=HT();Tb(8),cv("checked",e.isNegotiable()),Tb(4),NT(e.bulkPricingRules());}}function Ft(a,s){a&1&&v_(0," Unpublishing will temporarily hide this ad from public search results and buyers on Naiya. You can re-publish it anytime. ");}function Ht(a,s){a&1&&v_(0," Publishing will make this ad live and visible to buyers searching on Naiya. ");}var _n=(()=>{class a{constructor(){this.route=p$1($t$1),this.router=p$1(bt$1),this.adsService=p$1(L),this.intelligenceService=p$1(g),this.analyticsService=p$1(V),this.appState=p$1(b),this.toast=p$1(rt$1),this.storeId=Ri(()=>this.appState.defaultStore()?.id??""),this.adId=oe(""),this.adDetail=oe(null),this.isLoading=oe(true),this.isSaving=oe(false),this.perfMetrics=oe(null),this.isLoadingMetrics=oe(true),this.mobileSidebarOpen=oe(false),this.isShareModalOpen=oe(false),this.isDeleteModalOpen=oe(false),this.isPublishConfirmModalOpen=oe(false),this.isDeletingAd=oe(false),this.isPublishingAd=oe(false),this.isCopied=oe(false),this.limitReachedInfo=oe(null),this.isPublished=Ri(()=>{let e=this.adDetail()?.status,t=this.adDetail()?.isPublished;return e==="ACTIVE"||e==="PUBLISHED"||e==="APPROVED"||t===true}),this.isApproved=Ri(()=>{let e=this.adDetail()?.status;return e==="APPROVED"||e==="ACTIVE"}),this.statusLabel=Ri(()=>{let e=this.adDetail()?.status;return this.adDetail()?.isPublished===true?e==="APPROVED"||e==="ACTIVE"?"Published \u2022 Approved":e==="PENDING_APPROVAL"||e==="PENDING"?"Published \u2022 Pending Approval":e==="REJECTED"?"Published \u2022 Rejected":"Published":e==="APPROVED"||e==="ACTIVE"?"Approved":e==="PENDING_APPROVAL"||e==="PENDING"?"Pending Review":e==="REJECTED"?"Rejected":e==="ARCHIVED"?"Archived":"Draft"}),this.statusClass=Ri(()=>`status-${this.statusLabel().toLowerCase().replace(/[^a-z0-9]+/g,"-")}`),this.shareUrl=Ri(()=>`https://naiya.ng/ad/${this.adDetail()?.slug||this.adId()}`),this.title=oe(""),this.description=oe(""),this.categoryName=oe(""),this.subCategoryName=oe(""),this.price=oe(0),this.isNegotiable=oe(false),this.isPricingOptionsModalOpen=oe(false),this.isBulkPricingEnabled=oe(false),this.bulkPricingRules=oe([]),this.specs=oe([]),this.subCategoryFields=oe([]),this.locationName=oe(""),this.locationId=oe(""),this.locationPath=oe([]),this.isJustSaved=oe(false),this.isEditingTitle=oe(false),this.isEditingSpecs=oe(false),this.isEditingDescription=oe(false),this.isEditingMedia=oe(false),this.mediaTargetSection=oe(null),this.videoUrl=Ri(()=>{let e=this.adDetail();return e?.videoUrl??e?.video??null}
1),this.mediaAdDetail=Ri(()=>{let e=this.adDetail();if(!e)return null;let t=this.adId()||e._id||e.id||"",i=this.storeId()||e.storeId||"";return {adId:t,storeId:i,images:e.images??e.media??[],video:e.videoUrl??e.video??null}}),this.imageUrls=Ri(()=>{let e=this.adDetail();return e?(e.images??e.media??[]).map(t=>t.url).filter(Boolean):[]}),this.primaryImageUrl=Ri(()=>this.imageUrls()[0]??""),this.previewTitle=Ri(()=>this.title()||"Untitled Listing"),this.previewPrice=Ri(()=>this.price()),this.previewLocation=Ri(()=>this.locationName()),this.marketPriceRange=oe(null),this.recommendedPrice=Ri(()=>{let e=this.marketPriceRange();return e?Math.round((e.min+e.max)/2):null}),this.isCategoryModalOpen=oe(false),this.isCategoriesLoading=oe(false),this.allCategories=oe([]),this.selectedCategoryForModal=oe(null),this.categorySearchQuery=oe(""),this.filteredSearchResults=Ri(()=>{let e=this.categorySearchQuery().toLowerCase().trim();if(!e)return [];let t=[];for(let i of this.allCategories())if(i.name?.toLowerCase().includes(e))for(let c of i.subCategories??[])t.push({cat:i,subCat:c});else for(let c of i.subCategories??[])c.name?.toLowerCase().includes(e)&&t.push({cat:i,subCat:c});return t}),this.globalAutoSaveTimer=null,this.priceAutoSaveTimer=null,this.lastSavedPrice=null,Ag(()=>{this.videoUrl()&&setTimeout(()=>this.initializePlyrPlayer(),300);});}closeLimitModal(){this.limitReachedInfo.set(null);}navigateToSubscription(){this.router.navigate(["/subscription/plans"]);}isMultiValue(e){return e?e.includes(",")||e.startsWith("[")&&e.endsWith("]"):false}splitMultiValue(e){return e?e.replace(/^\[|\]$/g,"").split(",").map(t=>t.trim().replace(/^"|"$/g,"")).filter(Boolean):[]}ngOnInit(){let e=this.route.snapshot.paramMap.get("adId");e?(this.adId.set(e),this.loadAd(e)):(this.toast.error("Error","Invalid Listing ID"),this.router.navigate(["/ads"]));}loadAd(e){this.isLoading.set(true),this.adsService.getAdById(e).subscribe({next:t=>{if(!t){this.isLoading.set(false),this.router.navigate(["/ads"]);return}let i=this.storeId(),c=t.storeId||t.store?.id||t.store?._id||"";if(i&&c&&c!==i){this.toast.error("Permission Denied","You do not have permission to edit this listing."),this.router.navigate(["/ads"]);return}this.adDetail.set(t),this.title.set(t.title??""),this.description.set(t.description??""),this.price.set(t.price??0),this.isNegotiable.set(t.isNegotiable??false);let m=t.bulkPricingRules||t.bulkPricing;Array.isArray(m)&&m.length>0?(this.bulkPricingRules.set(m),this.isBulkPricingEnabled.set(true)):this.isBulkPricingEnabled.set(false),this.categoryName.set(t.categoryName??t.category?.name??t.subCategory?.category?.name??""),this.subCategoryName.set(t.subCategoryName??t.subCategory?.name??"");let x=t.location||t.locationName||"",f=t.locationId||"",y=t.locationPath||[];x&&f?(this.locationName.set(x),this.locationId.set(f),this.locationPath.set(y)):this.resolveDefaultLocation();let A=t.subCategory?.slug||t.subCategorySlug;A&&this.loadMarketPrice(A),this.buildSpecs(t),this.isLoading.set(false),this.loadAdPerformanceMetrics(t.slug||e);},error:()=>{this.isLoading.set(false),this.toast.error("Error","Failed to load listing details."),this.router.navigate(["/ads"]);}});}loadAdPerformanceMetrics(e){e&&(this.isLoadingMetrics.set(true),this.analyticsService.getAdPerformanceData("30",e).subscribe({next:t=>{let i=t?.data||t,c=i?.overview?.views??0,m=i?.buyerActions?.total??(i?.buyerActions?.phoneViews??0)+(i?.buyerActions?.naiyaChats??0)+(i?.buyerActions?.instantChats??0),x=i?.overview?.wishlistSaves??i?.buyerActions?.wishlistSaves??0,f=i?.socialShares?.total??0;this.perfMetrics.set({views:c,contacts:m,saves:x,shares:f}),this.isLoadingMetrics.set(false);},error:()=>{this.perfMetrics.set({views:0,contacts:0,saves:0,shares:0}),this.isLoadingMetrics.set(false);}}));}formatMetric(e){return e==null?"0":Number(e).toLocaleString()}loadMarketPrice(e){let t=this.storeId();t&&this.intelligenceService.getMarketPrice(t,e).subscribe({next:i=>{if(i){let c=i.min!==void 0?i.min:i.minPrice,m=i.max!==void 0?i.max:i.maxPrice;c!==void 0&&m!==void 0&&this.marketPriceRange.set({min:c,max:m});}},error:()=>{}});}resolveDefaultLocation(){let e=this.appState.defaultStore();if(e?.locationId&&e?.location){this.setLocation(e.location,e.locationId,e.locationPath||[]);return}this.selectCurrentLocation(true);}selectCurrentLocation(e=false){navigator.geolocation&&(e||this.toast.info("Fetching your location...","Please wait."),navigator.geolocation.getCurrentPosition(t=>{let i=t.coords.latitude,c=t.coords.longitude;this.adsService.getNearestLocation(i,c).subscribe({next:m=>{let x=m?.data||m;x&&(x.displayName||x.name)&&(this.setLocation(x.displayName||x.name,x._id||x.id,x.parentIds||[]),this.saveLocation(),this.toast.success("Location Updated",`Location updated to ${x.displayName||x.name}`));},error:()=>{}});},()=>{}));}setLocation(e,t,i){this.locationName.set(e),this.locationId.set(t),this.locationPath.set(i);}onLocationSelected(e){e&&this.adsService.getLocationById(e).subscribe({next:t=>{t&&(this.setLocation(t.displayName||t.name,t._id||t.id,t.parentIds||[]),this.saveLocation());}});}saveLocation(){this.saveAd(true);}buildSpecs(e){let t=e.specifications??[],i=e.aiRecommendations,c=e.subCategory?.fields??[];this.subCategoryFields.set(c);let m=t.map(f=>{let y=f.key??f.name??"",A=f.value??"",E=c.find(w=>(w.name??w.key??"").toLowerCase()===y.toLowerCase()),B,T=false,U=E?.type??"TEXT",Ee=E?.dataList;if((E?.type==="multipleSelect"||E?.type==="MULTIPLE_SELECT"||E?.type==="multiple"||E?.isMultiple===true)&&(U="MULTIPLE_SELECT"),E?.dataList?.length?(B=E.dataList.map(w=>
1typeof w=="string"?w:w.name??w.value??"").filter(Boolean),U==="TEXT"&&(U="SELECT")):E?.options?.length&&(B=E.options.map(w=>typeof w=="string"?w:w.name??w.value??"").filter(Boolean),U==="TEXT"&&(U="SELECT")),i?.specifications){let w=i.specifications.find(J=>(J.key??J.name??"").toLowerCase()===y.toLowerCase());w?.options&&w.options.length>1&&((!B||B.length===0)&&(B=w.options),T=true);}return {key:y,value:A,options:B,isUnsure:T,type:U,dataListRaw:Ee}}),x=new Set(m.map(f=>(f.key??"").toLowerCase()));c.forEach(f=>{let y=f.name??f.key??"";if(!y||x.has(y.toLowerCase()))return;let A,E=f.type??"TEXT";(f.type==="multipleSelect"||f.type==="MULTIPLE_SELECT"||f.type==="multiple"||f.isMultiple===true)&&(E="MULTIPLE_SELECT"),f.dataList?.length?(A=f.dataList.map(T=>typeof T=="string"?T:T.name??T.value??"").filter(Boolean),E==="TEXT"&&(E="SELECT")):f.options?.length&&(A=f.options.map(T=>typeof T=="string"?T:T.name??T.value??"").filter(Boolean),E==="TEXT"&&(E="SELECT")),m.push({key:y,value:"",options:A,isUnsure:false,type:E,dataListRaw:f.dataList});}),this.specs.set(m);}formatSpecDisplay(e){return !e||e==="null"?"\u2014":Array.isArray(e)?e.join(", "):String(e)}selectOption(e,t){this.updateSpecValue(e,t);}triggerAutoSave(e=800){this.isLoading()||(this.globalAutoSaveTimer&&clearTimeout(this.globalAutoSaveTimer),this.globalAutoSaveTimer=setTimeout(()=>{this.price()>0&&this.locationId()&&this.saveAd(true);},e));}updateSpecValue(e,t){this.specs.update(i=>i.map((c,m$1)=>m$1===e?m(l$1({},c),{value:t}):c)),this.triggerAutoSave(600);}saveTitleEdit(){this.saveAd(true),this.isEditingTitle.set(false);}cancelTitleEdit(){let e=this.adDetail()?.title??"";this.title.set(e),this.isEditingTitle.set(false);}saveSpecsEdit(){this.saveAd(true),this.isEditingSpecs.set(false);}cancelSpecsEdit(){this.adDetail()&&this.buildSpecs(this.adDetail()),this.isEditingSpecs.set(false);}saveDescriptionEdit(){this.saveAd(true),this.isEditingDescription.set(false);}cancelDescriptionEdit(){let e=this.adDetail()?.description??"";this.description.set(e),this.isEditingDescription.set(false);}toggleMediaEdit(){this.isEditingMedia.update(e=>!e);}onMediaChanged(){let e=this.adId();e&&this.adsService.getAdById(e).subscribe({next:t=>{t&&this.adDetail.set(t);}});}saveTitleSilently(){let e=this.adId();e&&this.adsService.updateAds({title:this.title()},e).subscribe({next:()=>{this.toast.success("Title Saved","Listing title updated.");}});}saveSpecsSilently(){let e=this.adId();if(!e)return;let t={specifications:this.specs().map(i=>{let c=i.value;return Array.isArray(c)&&(c=c.join(", ")),{key:i.key,value:c==="null"?null:c}})};this.adsService.updateAds(t,e).subscribe({next:()=>{this.toast.success("Specifications Saved","Specifications updated.");}});}saveDescriptionSilently(){let e=this.adId();e&&this.adsService.updateAds({description:this.description()},e).subscribe({next:()=>{this.toast.success("Description Saved","Description updated.");}});}onPriceInputChange(e){let t=e.target,i=t.selectionStart,c=t.value.length,m=t.value.replace(/\D/g,""),x=m?parseInt(m,10):0;this.price.set(x);let f=x?x.toLocaleString("en-US"):"";if(t.value=f,i!==null){let y=f.length,A=Math.max(0,i+(y-c));setTimeout(()=>{t.setSelectionRange(A,A);},0);}this.priceAutoSaveTimer&&clearTimeout(this.priceAutoSaveTimer),x>0&&x!==this.lastSavedPrice&&(this.priceAutoSaveTimer=setTimeout(()=>{this.autoSavePrice();},1e3));}onPriceBlur(){this.priceAutoSaveTimer&&clearTimeout(this.priceAutoSaveTimer),this.price()>0&&this.price()!==this.lastSavedPrice&&this.autoSavePrice();}autoSavePrice(){let e=this.price();!e||e<=0||e===this.lastSavedPrice||(this.lastSavedPrice=e,this.saveAd(true));}onNegotiableChange(e){this.isNegotiable.set(e),this.saveAd(true);}openPricingOptionsModal(){this.isPricingOptionsModalOpen.set(true);}closePricingOptionsModal(){this.isPricingOptionsModalOpen.set(false);}addBulkPricingRule(){this.bulkPricingRules.update(e=>[...e,{condition:"more than",minQuantity:null,pricePerItem:null}]),this.isBulkPricingEnabled.set(true);}removeBulkPricingRule(e){this.bulkPricingRules.update(t=>{let i=t.filter((c,m)=>m!==e);return i.length===0&&this.isBulkPricingEnabled.set(false),i});}updateBulkPricingRule(e,t,i){this.bulkPricingRules.update(c=>{let m$1=[...c];return m$1[e]=m(l$1({},m$1[e]),{[t]:i}),m$1}),this.isBulkPricingEnabled.set(true);}onRulePriceInput(e,t){let c=t.target.value.replace(/[^0-9]/g,""),m=c?parseInt(c,10):null;this.updateBulkPricingRule(e,"pricePerItem",m);}openCategoryModal(){this.isCategoryModalOpen.set(true),this.selectedCategoryForModal.set(null),this.categorySearchQuery.set(""),this.allCategories().length===0&&(this.isCategoriesLoading.set(true),this.adsService.getCategoriesAndSubCategoriesWithoutFields().subscribe({next:e=>{let t=e.data??e??[];this.allCategories.set(t),this.isCategoriesLoading.set(false);},error:()=>{this.isCategoriesLoading.set(false),this.toast.error("Error","Failed to load categories.");}}));}closeCategoryModal(){this.isCategoryModalOpen.set(false);}selectCategoryInModal(e){this.selectedCategoryForModal.set(e);}selectSubCategory(e,t){let i=this.adId();if(!i)return;let c=t._id||t.id,m=this.imageUrls();this.closeCategoryModal(),this.categoryName.set(e.name),this.subCategoryName.set(t.name),this.toast.info("Re-analyzing Product",`Analyzing product for ${e.name} > ${t.name}...`),this.isLoading.set(true);let x={imageUrls:m,subCategoryId:c,adId:i,storeId:this.storeId(),forceRefresh:true};
1this.adsService.generateAdDetailsFromImages(x).subscribe({next:f=>{this.adsService.updateAds(f,i).subscribe({next:()=>{this.adsService.getAdById(i).subscribe({next:y=>{this.adDetail.set(y),y.title&&this.title.set(y.title),y.description&&this.description.set(y.description),this.buildSpecs(y),t.slug&&this.loadMarketPrice(t.slug),this.isLoading.set(false),this.toast.success("Re-analysis Complete",`Specifications updated for ${e.name} > ${t.name}!`);},error:()=>this.isLoading.set(false)});},error:y=>{this.isLoading.set(false);let A=y?.error?.message||y?.message||"Failed to update category.";this.toast.error("Category Limit Reached",A);}});},error:()=>{this.adsService.updateAds({subCategoryId:c},i).subscribe({next:()=>{this.adsService.getAdById(i).subscribe({next:f=>{this.adDetail.set(f),this.buildSpecs(f),t.slug&&this.loadMarketPrice(t.slug),this.isLoading.set(false),this.toast.warning("Category Changed",`Category set to ${e.name} > ${t.name}.`);},error:()=>this.isLoading.set(false)});},error:f=>{this.isLoading.set(false);let y=f?.error?.message||f?.message||"Failed to update category.";this.toast.error("Category Limit Reached",y);}});}});}onMainSaveButtonClick(){this.isPublished()?this.saveAd():this.saveAndPublishAd();}saveAndPublishAd(){let e=this.adId(),t=this.storeId();if(!e)return;if(!this.price()||this.price()<=0){this.toast.error("Price Required","Please enter a price for your ad.");return}if(!this.locationId()){this.toast.error("Location Required","Please select a location for your ad.");return}this.isSaving.set(true);let i={title:this.title(),description:this.description(),price:this.price(),isNegotiable:this.isNegotiable(),isBulkPricingEnabled:this.isBulkPricingEnabled()&&this.bulkPricingRules().length>0,bulkPricingRules:this.isBulkPricingEnabled()?this.bulkPricingRules():[],specifications:this.specs().map(c=>{let m=c.value;return Array.isArray(m)&&(m=m.join(", ")),{key:c.key,value:m==="null"?null:m}}),locationId:this.locationId(),location:this.locationName(),locationPath:this.locationPath()};this.adsService.updateAds(i,e).subscribe({next:()=>{let c={storeId:t||null,adId:e,isPublished:true};this.adsService.publishAd(c).subscribe({next:()=>{this.isSaving.set(false),this.lastSavedPrice=this.price(),this.toast.success("Ad Published","Your ad changes have been saved and published live on Naiya!"),this.adDetail.update(m$1=>m$1?m(l$1({},m$1),{status:"ACTIVE",isPublished:true}):null),this.triggerSavedFeedback();},error:m=>{this.isSaving.set(false);let x=m;if(x?.status===403||x?.error?.statusCode===403||x?.error?.error==="PUBLISH_ENTITLEMENT_REQUIRED"||x?.error?.reason){let f=x?.error||{};this.limitReachedInfo.set(f);}else this.toast.error("Error",x?.error?.message||"Ad saved, but failed to publish live.");}});},error:()=>{this.isSaving.set(false),this.toast.error("Error","Failed to save ad changes.");}});}triggerSavedFeedback(){this.isJustSaved.set(true),setTimeout(()=>{this.isJustSaved.set(false);},2500);}saveAd(e=false){let t=this.adId();if(!t)return;if(!this.price()||this.price()<=0){e||this.toast.error("Price Required","Please enter a price for your ad.");return}if(!this.locationId()){e||this.toast.error("Location Required","Please select a location for your ad.");return}this.isSaving.set(true);let i={title:this.title(),description:this.description(),price:this.price(),isNegotiable:this.isNegotiable(),isBulkPricingEnabled:this.isBulkPricingEnabled()&&this.bulkPricingRules().length>0,bulkPricingRules:this.isBulkPricingEnabled()?this.bulkPricingRules():[],specifications:this.specs().map(c=>{let m=c.value;return Array.isArray(m)&&(m=m.join(", ")),{key:c.key,value:m==="null"?null:m}}),locationId:this.locationId(),location:this.locationName(),locationPath:this.locationPath()};this.adsService.updateAds(i,t).subscribe({next:()=>{this.isSaving.set(false),this.lastSavedPrice=this.price(),this.triggerSavedFeedback(),this.toast.success(e?"Price Saved":"Ad Updated",e?"Ad price saved automatically.":"Your ad changes have been saved.");},error:()=>{this.isSaving.set(false),e||this.toast.error("Error","Failed to update ad.");}});}toggleMobileSidebar(){this.mobileSidebarOpen.update(e=>!e);}openShareModal(){this.isShareModalOpen.set(true);}copyShareLink(){typeof navigator<"u"&&navigator.clipboard&&navigator.clipboard.writeText(this.shareUrl()).then(()=>{this.isCopied.set(true),this.toast.success("Link Copied","Ad link copied to clipboard."),setTimeout(()=>this.isCopied.set(false),2500);});}shareOnWhatsApp(){let t=`${this.title()||"Check out this listing"} 2${this.shareUrl()}`;
2window.open(`https://api.whatsapp.com/send?text=${encodeURIComponent(t)}`,"_blank");}shareOnFacebook(){window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(this.shareUrl())}`,"_blank");}shareOnTwitter(){let e=`${this.title()||"Check out this listing"} on Naiya:`;window.open(`https://twitter.com/intent/tweet?url=${encodeURIComponent(this.shareUrl())}&text=${encodeURIComponent(e)}`,"_blank");}shareOnTelegram(){let e=`${this.title()||"Check out this listing"} 3${this.shareUrl()}`;window.open(`https://telegram.me/share/url?url=${encodeURIComponent(this.shareUrl())}&text=${encodeURIComponent(e)}`,"_blank");}confirmPublishStatusToggle(){this.isPublishConfirmModalOpen.set(true);}executePublishToggle(){let t=!this.isPublished(),i=this.storeId(),c=this.adId();if(!c)return;this.isPublishingAd.set(true);let m$1={storeId:i||null,adId:c,isPublished:t};this.adsService.publishAd(m$1).subscribe({next:()=>{this.isPublishingAd.set(false),this.isPublishConfirmModalOpen.set(false);let x=t?"published":"unpublished";this.toast.success("Success",`Ad ${x} successfully.`),this.adDetail.update(f=>f?m(l$1({},f),{status:t?"ACTIVE":"INACTIVE",isPublished:t}):null);},error:x=>{this.isPublishingAd.set(false),this.isPublishConfirmModalOpen.set(false);let f=x;if(f?.status===403||f?.error?.statusCode===403||f?.error?.error==="PUBLISH_ENTITLEMENT_REQUIRED"||f?.error?.reason){let y=f?.error||{};this.limitReachedInfo.set(y);}else this.toast.error("Error",f?.error?.message||"Failed to update publication status.");}});}openDeleteConfirmModal(){this.isDeleteModalOpen.set(true);}executeDeleteAd(){let e=this.adId();e&&(this.isDeletingAd.set(true),this.adsService.deleteAd(e).subscribe({next:()=>{this.isDeletingAd.set(false),this.toast.success("Deleted","Ad deleted successfully."),this.isDeleteModalOpen.set(false),this.router.navigate(["/ads"]);},error:()=>{this.isDeletingAd.set(false),this.toast.error("Error","Failed to delete ad.");}}));}initializePlyrPlayer(){if(typeof window>"u")return;let e=()=>{if(!document.getElementById("plyr-css")){let t=document.createElement("link");t.id="plyr-css",t.rel="stylesheet",t.href="https://cdn.plyr.io/3.7.8/plyr.css",document.head.appendChild(t);}if(!window.Plyr&&!document.getElementById("plyr-js")){let t=document.createElement("script");t.id="plyr-js",t.src="https://cdn.plyr.io/3.7.8/plyr.js",t.onload=()=>this.createPlyrPlayerInstance(),document.body.appendChild(t);}else window.Plyr?this.createPlyrPlayerInstance():setTimeout(e,200);};e();}createPlyrPlayerInstance(){let e=document.querySelector(".preview-video-player");if(e&&window.Plyr){e.plyr&&e.plyr.destroy();let t=new window.Plyr(e,{controls:["play-large","play","progress","current-time","mute","volume","fullscreen"],hideControls:false});e.plyr=t;}}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275cmp=mf({type:a,selectors:[["app-ad-edit-v2"]],decls:59,vars:25,consts:[[1,"edit-skeleton-container"],[1,"edit-v2-container"],[1,"modal-backdrop"],["title","Manage Photos & Video","subtitle","Upload, reorder, or remove product images and video","maxWidth","840px",3,"closed","isOpen"],[1,"modal-media-wrapper"],["title","Edit Specifications","subtitle","Update specifications for your item","maxWidth","680px",3,"closed","isOpen"],[1,"modal-specs-container"],["title","Bulk Pricing Rules","subtitle","Set special pricing for customers who purchase in bulk quantities","maxWidth","640px",3,"closed","isOpen"],[1,"pricing-modal-body"],["title","Share Your Advertisement","subtitle","Share this ad across social platforms or copy link","maxWidth","480px",3,"closed","isOpen"],[1,"share-modal-body"],[1,"copy-link-box"],["type","text","readonly","",1,"share-url-input",3,"value"],["type","button",1,"copy-btn",3,"click"],[1,"share-social-grid"],["type","button",1,"social-share-item","whatsapp",3,"click"],["width","20","height","20","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"social-outline-svg"],["d","M3 21l1.9-5.7a8.5 8.5 0 1 1 3.8 3.8L3 21z"],["d","M9.5 9c0 2 2.5 4.5 4.5 4.5.3 0 .7-.2.9-.4l.7-.7c.2-.2.2-.5 0-.7l-1.2-1.2c-.2-.2-.5-.2-.7 0l-.5.5c-.3.3-.8.3-1.1 0l-.8-.8c-.3-.3-.3-.8 0-1.1l.5-.5c.2-.2.2-.5 0-.7L10.6 8.2c-.2-.2-.5-.2-.7 0l-.7.7c-.2.2-.4.6-.4.9z"],["type","button",1,"social-share-item","facebook",3,"click"],["d","M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"],["type","button",1,"social-share-item","twitter",3,"click"],["d","M4 4l11.733 16h4.267l-11.733 -16z"],["d","M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"],["type","button",1,"social-share-item","telegram",3,"click"],["x1","22","y1","2","x2","11","y2","13"],["points","22 2 15 22 11 13 2 9 22 2"],["maxWidth","440px",3,"closed","isOpen","title","subtitle"],[1,"delete-modal-body"],[1,"delete-warning-text"],[1,"delete-modal-actions"],["type","button",1,"cancel-modal-btn",3,"click"],["type","button",1,"confirm-delete-btn",3,"click","disabled"],["title","Delete Advertisement","subtitle","Are you sure you want to permanently delete this ad?","maxWidth","440px",3,"closed","isOpen"],[3,"closed","isOpen","limitInfo","storeId"],[1,"skeleton-sidebar"],[1,"skeleton-pill","back-skeleton"],[1,"skeleton-card","perf-skeleton"],[1,"skeleton-line","medium","mb-12"],[1,"skeleton-box"],[1,"skeleton-main"],[1,"skeleton-pill","category-skeleton"],[1,"skeleton-card","form-section-skeleton"],[1,"skeleton-line","label-skeleton"],[1,"skeleton-input-box"],[1,"skeleton-grid"],[1,"skeleton-textarea-box"],[1,"skeleton-input-box","short"],[1,"skeleton-save-btn"],[1,"skeleton-right-sidebar"],[1,"skeleton-line","label-skeleton","mb-12"],[1,"skeleton-card","preview-card-skeleton"],[1,"skeleton-image-box"],[1,"skeleton-line","medium"],[1,"skeleton-line","short"],[1,"skeleton-card","actions-card-skeleton"],[1,"skeleton-actions-grid"],[1,"save-micro-status-pill"],[1,"advisor-sidebar"],[1,"page-header"],["routerLink","/ads",1,"back-button"],["width","20","height","20","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M19 12H5"],["d","M12 19l-7-7 7-7"],[1,"sidebar-header","mobile-only"],["type","button",1,"close-btn",3,"click"],[1,"performance-summary-card"],[1,"perf-card-header"],[1,"perf-title-row"],["width","20","height","20","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"perf-header-icon"],["x1","18","y1","20","x2","18","y2","10"],["x1","12","y1","20","x2","12","y2","4"],["x1","6","y1","20","x2","6","y2","14"],[1,"perf-card-title"],[1,"perf-timeframe-pill"],[1,"perf-loading-container"],[1,"edit-form-panel"],[1,"main-content"],[1,"header-status-row"],[1,"status-indicator-pill"],[1,"status-dot"],[1,"category-breadcrumb"],[1,"category-breadcrumb","warning"],[1,"field-section"],[1,"field-label-row"],[1,"field-label"],[1,"section-actions"],["type","button",1,"section-edit-btn"],[1,"inline-input-wrapper"],[1,"display-title"],[1,"media-section"],[1,"media-label-with-count"],[1,"media-count-badge"],["type","button",1,"section-edit-btn",3,"click"],["width","13","height","13","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"],["cx","12","cy","13","r","4"],[1,"media-preview-container"],[1,"image-gallery"],[1,"video-preview-block"],[1,"specs-section"],[1,"description-section"],[1,"inline-textarea-wrapper"],[1,"description-text"],[1,"description-text","empty"],[1,"price-section","compact-card"],[1,"field-label-row","price-header-row"],[1,"price-label-with-market"],[1,"market-range-inline"],["cx","12","cy","12","r","3"],["d","M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2
30 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"],[1,"price-input-wrapper","compact"],[1,"currency-prefix"],["type","text","placeholder","Enter price","inputmode","numeric",1,"price-input","compact",3,"input","blur","value"],[1,"pricing-badges-row"],[1,"location-section","compact-card"],["type","button",1,"use-geo-btn","compact",3,"click"],["width","12","height","12","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2",2,"margin-right","4px"],["cx","12","cy","12","r","10"],[1,"location-picker-wrapper"],["placeholder","Select location",3,"ngModelChange","ngModel","displayLocationName"],[1,"location-warning-hint"],[1,"ad-actions-card","mobile-actions-card"],[1,"actions-card-title"],[1,"actions-grid"],["type","button",1,"action-btn","publish-btn",3,"click"],["type","button",1,"action-btn","delete-btn",3,"click"],["width","16","height","16","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["points","3 6 5 6 21 6"],["d","M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"],[1,"save-action-section"],["type","primary","size","large",3,"buttonClick","loading","disabled"],[1,"preview-sidebar","hidden-on-mobile"],[1,"preview-sticky"],[3,"title","price","imageUrl","location"],[1,"ad-actions-card","desktop-actions-card"],["type","button",1,"fab-advisor","mobile-only",3,"click"],[1,"icon"],[1,"mobile-overlay"],[1,"pulse-ring-dot"],[1,"pill-text"],[1,"check-sparkle"],[1,"spinner-small"],[1,"metrics-vertical-list"],[1,"metric-item"],[1,"metric-info"],[1,"metric-num"],[1,"metric-title"],[1,"metric-icon-badge","views-badge"],["width","18","height","18","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2"],["d","M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"],[1,"metric-icon-badge","contacts-badge"],["d","M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"],[1,"metric-icon-badge","saves-badge"],["d","M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"],[1,"metric-icon-badge","shares-badge"],["cx","18","cy","5","r","3"],["cx","6","cy","12","r","3"],["cx","18","cy","19","r","3"],["x1","8.59","y1","13.51","x2","15.42","y2","17.49"],["x1","15.41","y1","6.51","x2","8.59","y2","10.49"],[1,"perf-divider"],[1,"btn-view-complete-analytics",3,"routerLink"],["d","M5 12h14"],["d","M12 5l7 7-7 7"],[1,"category-chip"],["width","14","height","14","viewBox","0 0 24 24","fill","none","stroke","#9ca3af","stroke-width","2"],[1,"category-chip","active"],["type","button",1,"change-cat-btn",3,"click"],["d","M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"],["points","9 18 15 12 9 6"],[1,"category-chip","warning"],["type","button",1,"change-cat-btn","primary",3,"click"],["type","button",1,"section-edit-btn","cancel",3,"click"],["type","button",1,"section-edit-btn","save",3,"click"],["placeholder","Enter ad title...",3,"ngModelChange","ngModel"],["title","Click to manage photos & video",1,"gallery-thumb","more-count",2,"cursor","pointer"],["title","Click to manage photos & video",1,"gallery-thumb",2,"cursor","pointer",3,"primary"],["title","Click to manage photos & video",1,"gallery-thumb",2,"cursor","pointer",3,"click"],[3,"src","alt"],["t
3itle","Click to manage photos & video",1,"gallery-thumb","more-count",2,"cursor","pointer",3,"click"],[1,"sub-label"],["controls","",1,"preview-video-player",3,"src"],[1,"specs-grid"],[1,"spec-row",3,"full-width"],[1,"spec-row"],[1,"spec-key"],[1,"chip-group"],[1,"spec-value",3,"null-value"],["type","button",1,"option-chip",3,"selected"],["type","button",1,"option-chip",3,"click"],["width","14","height","14","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","3"],["points","20 6 9 17 4 12"],[1,"static-pill"],[1,"spec-value"],["placeholder","Enter detailed description of your product...",3,"ngModelChange","ngModel","minHeight","maxHeight","maxLength"],[1,"pricing-option-tag"],["type","button",1,"action-btn","share-btn",3,"click"],[1,"action-btn","analytics-btn",3,"routerLink"],["d","M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"],["x1","1","y1","1","x2","23","y2","23"],[1,"mobile-overlay",3,"click"],[1,"modal-backdrop",3,"click"],[1,"modal-container","cat-modal",3,"click"],[1,"modal-header"],["type","button",1,"modal-close-btn",3,"click"],[1,"modal-search"],["type","text","placeholder","Search for a category or subcategory...",1,"cat-search-input",3,"input","value"],[1,"modal-body"],[1,"modal-loading"],["type","button",1,"modal-back-btn",3,"click"],[1,"spinner"],[1,"cat-list"],[1,"cat-item","subcat-item"],[1,"empty-state"],[1,"cat-item","subcat-item",3,"click"],[1,"cat-info"],[1,"subcat-title"],[1,"cat-subtitle"],[1,"select-arrow"],[1,"cat-item"],[1,"cat-item",3,"click"],[1,"cat-title"],[3,"imagesChanged","videoChanged","adDetail","targetSection"],[1,"modal-specs-list"],[1,"spec-row","editing"],[1,"modal-footer-actions"],["type","button",1,"modal-btn","cancel",3,"click"],["type","button",1,"modal-btn","save",3,"click"],[1,"spec-input-wrapper"],[3,"ngModelChange","options","ngModel","type","placeholder"],["type","text",3,"ngModelChange","ngModel","placeholder"],[1,"pricing-setting-card"],[1,"setting-info"],[1,"setting-title"],[1,"setting-desc"],[1,"setting-checkbox-label"],["type","checkbox",3,"change","checked"],[1,"checkbox-text"],[1,"bulk-rules-container"],[1,"bulk-rule-card"],[1,"add-rule-action-row"],["type","button",1,"add-rule-btn",3,"click"],["type","button",1,"modal-btn","save-rules-btn",3,"click"],[1,"rule-card-header"],[1,"rule-title"],["type","button",1,"remove-rule-btn",3,"click"],[1,"rule-card-inputs"],[1,"rule-field"],[1,"rule-field-label"],[3,"ngModelChange","options","ngModel"],["placeholder","30","type","text",3,"ngModelChange","ngModel"],[1,"rule-price-input-wrapper"],["type","text","placeholder","10,000","inputmode","numeric",1,"rule-price-input",3,"input","value"]],template:function(t,i){t&1&&(bT(0,Ve,41,0,"div",0)(1,vt,141,45,"div",1),bT(2,Dt,13,3,"div",2),qa(3,"app-modal",3),hc("closed",function(){return i.isEditingMedia.set(false),i.onMediaChanged()}),bT(4,Lt,2,2,"div",4),wf(),qa(5,"app-modal",5),hc("closed",function(){return i.cancelSpecsEdit()}),bT(6,Bt,9,0,"div",6),wf(),qa(7,"app-modal",7),hc("closed",function(){return i.closePricingOptionsModal()}),bT(8,$t,22,1,"div",8),wf(),qa(9,"app-modal",9),hc("closed",function(){return i.isShareModalOpen.set(false)}),qa(10,"div",10)(11,"div",11),fc(12,"input",12),qa(13,"button",13),hc("click",function(){return i.copyShareLink()}),v_(14),wf()(),qa(15,"div",14)(16,"button",15),hc("click",function(){return i.shareOnWhatsApp()}),Ig(),qa(17,"svg",16),fc(18,"path",17)(19,"path",18),wf(),Cg(),qa(20,"span"),v_(21,"WhatsApp"),wf()(),qa(22,"button",19),hc("click",function(){return i.shareOnFacebook()}),Ig(),qa(23,"svg",16),fc(24,"path",20),wf(),Cg(),qa(25,"span"),v_(26,"Facebook"),wf()(),qa(27,"button",21),hc("click",function(){return i.shareOnTwitter()}),Ig(),qa(28,"svg",16),fc(29,"path",22)(30,"path",23),wf(),Cg(),qa(31,"span"),v_(32,"Twitter / X"),wf()(),qa(33,"button",24),hc("click",function(){return i.shareOnTelegram()}),Ig(),qa(34,"svg",16),fc(35,"line",25)(36,"polygon",26),wf(),Cg(),qa(37,"span"),v_(38,"Telegram"),wf()()()()(),qa(39,"app-modal",27),hc("closed",function(){return i.isPublishConfirmModalOpen.set(false)}),qa(40,"div",28)(41,"p",29),bT(42,Ft,1,0)(43,Ht,1,0),wf(),qa(44,"div",30)(45,"button",31),hc("click",function(){return i.isPublishConfirmModalOpen.set(false)}),v_(46,"Cancel"),wf(),qa(47,"button",32),hc("click",function(){return i.executePublishToggle()}),v_(48),wf()()()(),qa(49,"app-modal",33),hc("closed",function(){return i.isDeleteModalOpen.set(false)}),qa(50,"div",28)(51,"p",29),v_(52," This action cannot be undone. All views, stats, images, and customer inquiries for this ad will be permanently deleted. "),wf(),qa(53,"div",30)(54,"button",31),hc("click",function(){return i.isDeleteModalOpen.set(false)}),v_(55,"Cancel"),wf(),qa(56,"button",32),hc("click",function(){return i.executeDeleteAd()}),v_(57),wf()()()(),qa(58,"app-subscription-limit-modal",34),hc("closed",function(){return i.closeLimitModal()}),wf()),t&2&&(ST(i.isLoading()?0:1),Tb(2),ST(i.isCategoryModalOpen()?2:-1),Tb(),cv("isOpen",i.isEditingMedia()),Tb(),ST(i.isEditingMedia()&&i.mediaAdDetail()?4:-1),Tb(),cv("isOpen",i.isEditingSpecs()),Tb(),ST(i.isEditingSpecs()?6:-1),Tb(),cv("isOpen",i.isPricingOptionsModalOpen()),Tb(),ST(i.isPricingOptionsModalOpen()?8:-1),Tb(),cv("isOpen",i.isShareModalOpen()),Tb(3),cv("value",i.shareUrl()),Tb(2),Nf(" ",i.isCopied()?"Copied!":"Copy Link"," "),Tb(25),cv("isOpen",i.isPublishConfirmModalOpen())("title",i.isPublished()?"Unpublish Advertisement":"Publish Advertisement")("subtitle",i.isPublished()?"Are you sure you want to unpublish this ad?":"Are you sure you want to publish this ad?"),Tb(3),ST(i.isPublished()?42:43),Tb(5),gc("background",i.isPublished()?"#f59e0b":"#10b981"),cv("disabled",i.isPublishingAd()),Tb(),Nf(" ",i.isPublishingAd()?"Processing...":i.isPublished()?"Unpublish Ad":"Publish Ad"," "),Tb(),cv("isOpen",i.isDeleteModalOpen()),Tb(7),cv("disabled",i.isDeletingAd()),Tb(),Nf(" ",i.isDeletingAd()?"Deleting...":"Delete Ad"," "),Tb(),cv("isOpen",i.limitReachedInfo()!==null)("limitInfo",i.limitReachedInfo())("storeId",i.storeId()||i.ad
3Detail()?.storeId||""));},dependencies:[ND,qn,jn,nn,Du,w,re,ze$1,F,Zt,re$1,Nr,U,xe,KM],styles:["[_nghost-%COMP%]{display:block;min-height:100vh;font-family:var(--font-family, system-ui, -apple-system, sans-serif)}.save-micro-status-pill[_ngcontent-%COMP%]{position:fixed;top:20px;left:50%;transform:translate(-50%) translateY(-16px) scale(.95);z-index:999999;display:flex;align-items:center;gap:8px;padding:8px 22px;border-radius:30px;font-size:.8125rem;font-weight:700;background:#fff;border:1.5px solid #e2e8f0;box-shadow:0 8px 24px #0000001f;opacity:0;pointer-events:none;transition:all .3s cubic-bezier(.16,1,.3,1)}.save-micro-status-pill.is-saving[_ngcontent-%COMP%]{opacity:1;transform:translate(-50%) translateY(0) scale(1);color:#f90047;border-color:#f900474d;background:#fff5f7}.save-micro-status-pill.is-saving[_ngcontent-%COMP%] .pulse-ring-dot[_ngcontent-%COMP%]{width:8px;height:8px;border-radius:50%;background-color:#f90047;box-shadow:0 0 #f90047b3;animation:_ngcontent-%COMP%_pulseDot 1.2s infinite}.save-micro-status-pill.is-saved[_ngcontent-%COMP%]{opacity:1;transform:translate(-50%) translateY(0) scale(1);color:#047857;border-color:#a7f3d0;background:#ecfdf5}.save-micro-status-pill.is-saved[_ngcontent-%COMP%] .check-sparkle[_ngcontent-%COMP%]{font-weight:800;animation:_ngcontent-%COMP%_popCheck .3s cubic-bezier(.175,.885,.32,1.275)}@keyframes _ngcontent-%COMP%_pulseDot{0%{transform:scale(.95);box-shadow:0 0 #f90047b3}70%{transform:scale(1);box-shadow:0 0 0 8px #f9004700}to{transform:scale(.95);box-shadow:0 0 #f9004700}}@keyframes _ngcontent-%COMP%_popCheck{0%{transform:scale(.4);opacity:0}
3to{transform:scale(1);opacity:1}}.edit-skeleton-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:300px minmax(0,1fr) 320px;gap:24px;max-width:1600px;margin:0 auto;padding:24px 24px 40px}@media(max-width:1200px){.edit-skeleton-container[_ngcontent-%COMP%]{grid-template-columns:300px minmax(0,1fr)}}@media(max-width:900px){.edit-skeleton-container[_ngcontent-%COMP%]{grid-template-columns:1fr}}.skeleton-sidebar[_ngcontent-%COMP%], .skeleton-main[_ngcontent-%COMP%], .skeleton-right-sidebar[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.skeleton-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;border:1px solid #e2e8f0;padding:20px;display:flex;flex-direction:column;gap:12px}.skeleton-pill[_ngcontent-%COMP%], .skeleton-circle[_ngcontent-%COMP%], .skeleton-line[_ngcontent-%COMP%], .skeleton-box[_ngcontent-%COMP%], .skeleton-input-box[_ngcontent-%COMP%], .skeleton-textarea-box[_ngcontent-%COMP%], .skeleton-save-btn[_ngcontent-%COMP%], .skeleton-image-box[_ngcontent-%COMP%]{background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0,#f1f5f9 75%);background-size:200% 100%;animation:_ngcontent-%COMP%_shimmer 1.5s infinite;border-radius:8px}.skeleton-pill[_ngcontent-%COMP%]{height:28px;border-radius:20px}.skeleton-pill.back-skeleton[_ngcontent-%COMP%]{width:120px}.skeleton-pill.category-skeleton[_ngcontent-%COMP%]{width:180px;height:32px}.health-skeleton[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:16px}.skeleton-circle[_ngcontent-%COMP%]{width:56px;height:56px;border-radius:50%;flex-shrink:0}.skeleton-text-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;flex:1}.skeleton-line[_ngcontent-%COMP%]{height:14px;width:100%}.skeleton-line.short[_ngcontent-%COMP%]{width:40%}.skeleton-line.medium[_ngcontent-%COMP%]{width:70%}.skeleton-line.label-skeleton[_ngcontent-%COMP%]{width:100px;height:16px;margin-bottom:4px}.skeleton-line.mb-12[_ngcontent-%COMP%]{margin-bottom:12px}.skeleton-box[_ngcontent-%COMP%]{height:48px;border-radius:12px}.button-skeleton[_ngcontent-%COMP%]{height:46px;border-radius:12px;padding:0}.skeleton-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.skeleton-input-box[_ngcontent-%COMP%]{height:42px;border-radius:10px}.skeleton-input-box.short[_ngcontent-%COMP%]{width:220px}.skeleton-textarea-box[_ngcontent-%COMP%]{height:110px;border-radius:12px}.skeleton-save-btn[_ngcontent-%COMP%]{height:48px;width:200px;align-self:center;border-radius:12px;margin-top:10px}.skeleton-image-box[_ngcontent-%COMP%]{height:180px;border-radius:12px;width:100%}.skeleton-actions-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}@keyframes _ngcontent-%COMP%_shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.spinner-small[_ngcontent-%COMP%]{display:inline-block;width:16px;height:16px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:_ngcontent-%COMP%_spin 1s linear infinite;margin-right:8px}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}.edit-v2-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:300px minmax(0,1fr) 320px;gap:24px;max-width:1600px;margin:0 auto;padding:24px 24px 40px}.advisor-sidebar[_ngcontent-%COMP%]{position:sticky;top:24px;height:calc(100vh - 48px);overflow-y:auto;display:flex;flex-direction:column;gap:20px;padding-right:4px}.advisor-sidebar[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px}.advisor-sidebar[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}.advisor-sidebar[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.advisor-sidebar[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-bottom:2px}@media(max-width:1024px){.advisor-sidebar[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{display:none!important}}.advisor-sidebar[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;background:none;border:none;font-size:14px;font-weight:600;color:#6b7280;cursor:pointer;text-decoration:none;padding:6px 0;transition:color .15s ease}.advisor-sidebar[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]:hover{color:#f90047}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:20px;box-shadow:0 1px 3px #0000000a;display:flex;flex-direction:column;gap:16px}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .perf-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .perf-card-header[_ngcontent-%COMP%] .perf-title-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .perf-card-header[_ngcontent-%COMP%] .perf-title-row[_ngcontent-%COMP%] .perf-header-icon[_ngcontent-%COMP%]{color:#f90047}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .perf-card-header[_ngcontent-%COMP%] .perf-title-row[_ngcontent-%COMP%] .perf-card-title[_ngcontent-%COMP%]{margin:0;font-size:1rem;font-weight:700;color:#111827}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .perf-card-header[_ngcontent-%COMP%] .perf-timeframe-pill[_ngcontent-%COMP%]{font-size:11px;font-weight:600;color:#6b7280;background:#f3f4f6;padding:3px 8px;border-radius:9999px}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .perf-loading-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:10px;padding:32px 0;color:#9ca3af;font-size:13px}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .metrics-vertical-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .metrics-vertical-list[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:#f9fafb;border:1px solid #f3f4f6;border-radius:12px;transition:all .15s ease}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .metrics-vertical-list[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%]:hover{background:#f3f4f6;border-color:#e5e7eb}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .metrics-vertical-list[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%] .metric-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .metrics-vertical-list[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%] .metric-info[_ngcontent-%COMP%] .metric-num[_ng
3content-%COMP%]{font-size:1.25rem;font-weight:800;color:#111827;letter-spacing:-.02em}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .metrics-vertical-list[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%] .metric-info[_ngcontent-%COMP%] .metric-title[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#6b7280}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .metrics-vertical-list[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%] .metric-icon-badge[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .metrics-vertical-list[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%] .metric-icon-badge.views-badge[_ngcontent-%COMP%]{background:#eff6ff;color:#2563eb}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .metrics-vertical-list[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%] .metric-icon-badge.contacts-badge[_ngcontent-%COMP%]{background:#f0fdf4;color:#16a34a}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .metrics-vertical-list[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%] .metric-icon-badge.saves-badge[_ngcontent-%COMP%]{background:#fef2f2;color:#dc2626}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .metrics-vertical-list[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%] .metric-icon-badge.shares-badge[_ngcontent-%COMP%]{background:#faf5ff;color:#9333ea}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .perf-divider[_ngcontent-%COMP%]{height:1px;background:#f3f4f6;margin:2px 0}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .btn-view-complete-analytics[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px 16px;border-radius:12px;background:#fff;border:1.5px solid #e5e7eb;color:#374151;font-size:13px;font-weight:600;text-decoration:none;cursor:pointer;transition:all .15s ease}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .btn-view-complete-analytics[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{color:#9ca3af;transition:transform .15s ease,color .15s ease}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .btn-view-complete-analytics[_ngcontent-%COMP%]:hover{background:#f9fafb;border-color:#f90047;color:#f90047}.advisor-sidebar[_ngcontent-%COMP%] .performance-summary-card[_ngcontent-%COMP%] .btn-view-complete-analytics[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%]{color:#f90047;transform:translate(3px)}.edit-form-panel[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.edit-form-panel[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-bottom:4px}.edit-form-panel[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;background:none;border:none;font-size:14px;font-weight:500;color:#6b7280;cursor:pointer;text-decoration:none;padding:4px 0;transition:color .15s}.edit-form-panel[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]:hover{color:#111827}.edit-form-panel[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.field-section[_ngcontent-%COMP%]{padding:18px 22px;background:#fff;border-radius:14px;border:1px solid #e5e7eb}.field-label-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.field-label[_ngcontent-%COMP%]{display:block;font-size:12px;font-weight:600;color:#9ca3af;text-transform:uppercase;letter-spacing:.06em;margin-bottom:0}.section-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.section-edit-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;background:#f3f4f6;border:1px solid #d1d5db;color:#374151;font-size:12px;font-weight:600;padding:4px 12px;border-radius:14px;cursor:pointer;transition:all .15s ease}.section-edit-btn[_ngcontent-%COMP%]:hover{background:#e5e7eb;color:#111827}
3.section-edit-btn.save[_ngcontent-%COMP%]{background:#059669;color:#fff;border-color:#059669}.section-edit-btn.save[_ngcontent-%COMP%]:hover{background:#047857;border-color:#047857}.section-edit-btn.cancel[_ngcontent-%COMP%]{background:#fee2e2;color:#dc2626;border-color:#fca5a5}.section-edit-btn.cancel[_ngcontent-%COMP%]:hover{background:#fecaca;color:#b91c1c}.category-breadcrumb[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.change-cat-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;background:#fff;border:1px solid #d1d5db;color:#374151;font-size:12px;font-weight:600;padding:3px 10px;border-radius:16px;cursor:pointer;margin-left:6px;transition:all .15s ease}.change-cat-btn[_ngcontent-%COMP%]:hover{background:#f3f4f6;color:#111827;border-color:#9ca3af}.change-cat-btn.primary[_ngcontent-%COMP%]{background:#f90047;color:#fff;border-color:#f90047}.change-cat-btn.primary[_ngcontent-%COMP%]:hover{background:#e00040}.category-chip[_ngcontent-%COMP%]{font-size:13px;font-weight:500;color:#6b7280;background:#f3f4f6;padding:4px 12px;border-radius:20px}.category-chip.active[_ngcontent-%COMP%]{color:#f90047;background:#fef2f2;font-weight:600}.header-status-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}.status-indicator-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:20px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.status-indicator-pill[_ngcontent-%COMP%] .status-dot[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:50%}.status-indicator-pill.status-published[_ngcontent-%COMP%]{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}.status-indicator-pill.status-published[_ngcontent-%COMP%] .status-dot[_ngcontent-%COMP%]{background:#10b981}.status-indicator-pill.status-pending-review[_ngcontent-%COMP%]{background:#fffbeb;color:#92400e;border:1px solid #fde68a}.status-indicator-pill.status-pending-review[_ngcontent-%COMP%] .status-dot[_ngcontent-%COMP%]{background:#f59e0b}.status-indicator-pill.status-draft[_ngcontent-%COMP%]{background:#f1f5f9;color:#475569;border:1px solid #cbd5e1}.status-indicator-pill.status-draft[_ngcontent-%COMP%] .status-dot[_ngcontent-%COMP%]{background:#64748b}.status-indicator-pill.status-rejected[_ngcontent-%COMP%]{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.status-indicator-pill.status-rejected[_ngcontent-%COMP%] .status-dot[_ngcontent-%COMP%]{background:#ef4444}.status-indicator-pill.status-archived[_ngcontent-%COMP%]{background:#f3f4f6;color:#6b7280;border:1px solid #e5e7eb}.status-indicator-pill.status-archived[_ngcontent-%COMP%] .status-dot[_ngcontent-%COMP%]{background:#9ca3af}.display-title[_ngcontent-%COMP%]{font-size:clamp(20px,3.5vw,26px);font-weight:800;color:#111827;line-height:1.25;margin:0}.media-section[_ngcontent-%COMP%]{padding:18px 22px;background:#fff;border-radius:14px;border:1px solid #e5e7eb}.media-label-with-count[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.media-label-with-count[_ngcontent-%COMP%] .field-label[_ngcontent-%COMP%]{margin-bottom:0}.media-count-badge[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#0369a1;background:#f0f9ff;border:1px solid #bae6fd;padding:2px 10px;border-radius:14px}.media-preview-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.image-gallery[_ngcontent-%COMP%]{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}.gallery-thumb[_ngcontent-%COMP%]{flex-shrink:0;width:72px;height:72px;border-radius:10px;overflow:hidden;border:2px solid transparent;transition:border-color .15s}.gallery-thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.gallery-thumb.primary[_ngcontent-%COMP%]{border-color:#f90047}.gallery-thumb.more-count[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;background:#f3f4f6;border:1px solid #e5e7eb}.gallery-thumb.more-count[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#6b7280}.video-preview-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;margin-top:8px}.video-preview-block[_ngcontent-%COMP%] .sub-label[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.5px}.video-preview-block[_ngcontent-%COMP%] .preview-video-player[_ngcontent-%COMP%]{width:100%;max-height:280px;border-radius:10px;background:#000;object-fit:contain}.specs-section[_ngcontent-%COMP%]{padding:20px 24px;background:#fff;border-radius:14px;border:1px solid #e5e7eb}.specs-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:12px 16px}@media(max-width:640px){.specs-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.spec-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;padding:10px 14px;background:#f8fafc;border-radius:10px;border:1px solid #f1f5f9}.spec-row.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.spec-key[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:#9ca3af;text-transform:uppercase;letter-spacing:.04em}.spec-value[_ngcontent-%COMP%]{font-size:15px;font-weight:700;color:#111827}.spec-value.null-value[_ngcontent-%COMP%]{color:#9ca3af;font-style:italic;font-weight:500}.chip-group[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}.static-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:6px 12px;font-size:13px;font-weight:500;border-radius:16px;background:var(--surface-2, #f1f5f9);color:var(--text-primary, #1e293b);border:1px solid var(--border-color, #e2e8f0)}.option-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;padding:6px 14px;font-size:13px;font-weight:500;border-radius:20px;cursor:pointer;transition:all .2s ease;border:1.5px solid #d1d5db;background:transparent;color:#374151}.option-chip[_ngcontent-%COMP%]:hover{border-color:#f90047;color:#f90047;transform:translateY(-1px);box-shadow:0 2px 8px #f900471a}.option-chip.selected[_ngcontent-%COMP%]{background:#f90047;color:#fff;border-color:#f90047;font-weight:600}.option-chip.selected[_ngcontent-%COMP%]:hover{background:#e00040;transform:translateY(-1px);box-shadow:0 4px 12px #f9004740}.description-section[_ngcontent-%COMP%]{padding:18px 22px;background:#fff;border-radius:14px;border:1px solid #e5e7eb}.description-section[_ngcontent-%COMP%] .description-text[_ngcontent-%COMP%]{font-size:15px;line-height:1.65;color:#374151;white-space:pre-wrap;word-break:break-word;margin:4px 0 0}.description-section[_ngcontent-%COMP%] .description-text.empty[_ngcontent-%COMP%]{color:#9ca3af;font-style:italic}.price-label-with-market[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.market-range-inline[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#15803d;background:#f0fdf4;border:1px solid #bbf7d0;padding:2px 10px;border-radius:14px}.market-range-inline[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:700;color:#166534}.pricing-badges-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:4px}.pricing-option-tag[_ngcontent-%COMP%]{font-size:11px;font-weight:600;color:#059669;background:#ecfdf5;border:1px solid #a7f3d0;padding:2px 8px;border-radius:12px}.compact-card[_ngcontent-%COMP%]{padding:16px 20px;background:#fff;border-radius:14px;border:1px solid #e5e7eb;display:flex;flex-direction:column;gap:10px}.price-input-wrapper.compact[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;background:#f9fafb;border:2px solid #e5e7eb;border-radius:12px;padding:4px 14px;transition:border-color .2s}.price-input-wrapper.compact[_ngcontent-%COMP%]:focus-within{border-color:#f90047;background:#fff}.currency-prefix[_ngcontent-%COMP%]{font-size:18px;font-weight:700;color:#111827;flex-shrink:0}.price-input.compact[_ngcontent-%COMP%]{flex:1;border:none;background:transparent;font-size:20px;font-weight:700;color:#111827;outline:none;padding:8px 0;min-width:0}.use-geo-btn.compact[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;background:#f3f4f6;border:1px solid #d1d5db;color:#4b5563;font-size:12px;font-weight:600;padding:3px 10px;border-radius:14px;cursor:pointer;transition:all .15s ease}.use-geo-btn.compact[_ngcontent-%COMP%]:hover{background:#e5e7eb;color:#111827}.location-picker-wrapper[_ngcontent-%COMP%]{width:100%}.location-warning-hint[_ngcontent-%COMP%]{font-size:13px;color:#dc2626;font-weight:500}.save-action-section[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin:32px auto 16px;width:100%;text-align:center}.save-action-section[_ngcontent-%COMP%] app-button[_ngcontent-%COMP%]{min-width:280px}@media(max-width:640px){.save-action-section[_ngcontent-%COMP%] app-button[_ngcontent-%COMP%]{min-width:240px;margin:0 auto}}.preview-sidebar[_ngcontent-%COMP%] .preview-sticky[_ngcontent-%COMP%]{position:sticky;top:24px}.preview-sidebar[_ngcontent-%COMP%] .preview-sticky[_ngcontent-%COMP%] h4[_ng
3content-%COMP%]{margin:0 0 16px;font-size:1rem;font-weight:600;color:var(--text-color-secondary, #64748b)}.modal-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;background:#00000080;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px}.modal-container.cat-modal[_ngcontent-%COMP%]{background:#fff;width:100%;max-width:520px;border-radius:16px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;display:flex;flex-direction:column;max-height:85vh;overflow:hidden}.modal-container.cat-modal[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #f3f4f6}.modal-container.cat-modal[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:17px;font-weight:700;color:#111827;margin:0;display:flex;align-items:center;gap:10px}.modal-container.cat-modal[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .modal-back-btn[_ngcontent-%COMP%]{background:#f3f4f6;border:none;font-size:16px;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer}.modal-container.cat-modal[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .modal-back-btn[_ngcontent-%COMP%]:hover{background:#e5e7eb}.modal-container.cat-modal[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .modal-close-btn[_ngcontent-%COMP%]{background:none;border:none;font-size:18px;color:#9ca3af;cursor:pointer;padding:4px}.modal-container.cat-modal[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .modal-close-btn[_ngcontent-%COMP%]:hover{color:#111827}.modal-container.cat-modal[_ngcontent-%COMP%] .modal-search[_ngcontent-%COMP%]{padding:14px 24px;border-bottom:1px solid #f3f4f6}.modal-container.cat-modal[_ngcontent-%COMP%] .modal-search[_ngcontent-%COMP%] .cat-search-input[_ngcontent-%COMP%]{width:100%;padding:10px 14px;background:#f9fafb;border:1.5px solid #e5e7eb;border-radius:10px;font-size:14px;outline:none;transition:border-color .2s}.modal-container.cat-modal[_ngcontent-%COMP%] .modal-search[_ngcontent-%COMP%] .cat-search-input[_ngcontent-%COMP%]:focus{border-color:#f90047;background:#fff}.modal-container.cat-modal[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:12px 16px 20px}.modal-container.cat-modal[_ngcontent-%COMP%] .modal-loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 0;gap:12px;color:#6b7280}.modal-container.cat-modal[_ngcontent-%COMP%] .cat-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.modal-container.cat-modal[_ngcontent-%COMP%] .cat-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-radius:10px;cursor:pointer;transition:background .15s}.modal-container.cat-modal[_ngcontent-%COMP%] .cat-item[_ngcontent-%COMP%]:hover{background:#f9fafb}.modal-container.cat-modal[_ngcontent-%COMP%] .cat-item[_ngcontent-%COMP%]:hover .select-arrow[_ngcontent-%COMP%]{color:#f90047;transform:translate(2px)}.modal-container.cat-modal[_ngcontent-%COMP%] .cat-item[_ngcontent-%COMP%] .cat-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.modal-container.cat-modal[_ngcontent-%COMP%] .cat-item[_ngcontent-%COMP%] .cat-title[_ngcontent-%COMP%], .modal
3-container.cat-modal[_ngcontent-%COMP%] .cat-item[_ngcontent-%COMP%] .subcat-title[_ngcontent-%COMP%]{font-size:15px;font-weight:600;color:#111827}.modal-container.cat-modal[_ngcontent-%COMP%] .cat-item[_ngcontent-%COMP%] .cat-subtitle[_ngcontent-%COMP%]{font-size:12px;color:#6b7280}.modal-container.cat-modal[_ngcontent-%COMP%] .cat-item[_ngcontent-%COMP%] .select-arrow[_ngcontent-%COMP%]{font-size:18px;color:#d1d5db;transition:all .15s}.modal-container.cat-modal[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%]{text-align:center;padding:32px 16px;color:#6b7280;font-size:14px}.modal-media-wrapper[_ngcontent-%COMP%]{max-height:75vh;overflow-y:auto;padding:4px}.modal-specs-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px;max-height:70vh;padding:4px}.modal-specs-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;max-height:55vh;overflow-y:auto;padding-right:6px}.modal-footer-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding-top:16px;border-top:1px solid #e5e7eb}.modal-footer-actions[_ngcontent-%COMP%] .modal-btn[_ngcontent-%COMP%]{padding:8px 18px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .15s ease}.modal-footer-actions[_ngcontent-%COMP%] .modal-btn.cancel[_ngcontent-%COMP%]{background:#f3f4f6;border:1px solid #d1d5db;color:#374151}.modal-footer-actions[_ngcontent-%COMP%] .modal-btn.cancel[_ngcontent-%COMP%]:hover{background:#e5e7eb}.modal-footer-actions[_ngcontent-%COMP%] .modal-btn.save[_ngcontent-%COMP%]{background:#059669;border:1px solid #059669;color:#fff}.modal-footer-actions[_ngcontent-%COMP%] .modal-btn.save[_ngcontent-%COMP%]:hover{background:#047857}.pricing-modal-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;padding:4px}.pricing-setting-card[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px}.pricing-setting-card[_ngcontent-%COMP%] .setting-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.pricing-setting-card[_ngcontent-%COMP%] .setting-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700;color:#1e293b}.pricing-setting-card[_ngcontent-%COMP%] .setting-desc[_ngcontent-%COMP%]{font-size:12px;color:#64748b}.pricing-setting-card[_ngcontent-%COMP%] .setting-checkbox-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;cursor:pointer;font-size:13px;font-weight:600;color:#334155}.pricing-setting-card[_ngcontent-%COMP%] .setting-checkbox-label[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{width:18px;height:18px;accent-color:#F90047;cursor:pointer}.bulk-rules-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.bulk-rule-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;padding:16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px}.bulk-rule-card[_ngcontent-%COMP%] .rule-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.bulk-rule-card[_ngcontent-%COMP%] .rule-card-header[_ngcontent-%COMP%] .rule-title[_ngcontent-%COMP%]{font-size:13px;font-weight:700;color:#6366f1}.bulk-rule-card[_ngcontent-%COMP%] .rule-card-header[_ngcontent-%COMP%] .remove-rule-btn[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:#e11d48;background:transparent;border:none;cursor:pointer;padding:0}.bulk-rule-card[_ngcontent-%COMP%] .rule-card-header[_ngcontent-%COMP%] .remove-rule-btn[_ngcontent-%COMP%]:hover{text-decoration:underline}.bulk-rule-card[_ngcontent-%COMP%] .rule-card-inputs[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:12px;align-items:flex-end}@media(max-width:600px){.bulk-rule-card[_ngcontent-%COMP%] .rule-card-inputs[_ngcontent-%COMP%]{grid-template-columns:1fr}}.bulk-rule-card[_ngcontent-%COMP%] .rule-card-inputs[_ngcontent-%COMP%] .rule-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}.bulk-rule-card[_ngcontent-%COMP%] .rule-card-inputs[_ngcontent-%COMP%] .rule-field-label[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:#64748b}.bulk-rule-card[_ngcontent-%COMP%] .rule-card-inputs[_ngcontent-%COMP%] .rule-price-input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:6px 10px;height:38px}.bulk-rule-card[_ngcontent-%COMP%] .rule-card-inputs[_ngcontent-%COMP%] .rule-price-input-wrapper[_ngcontent-%COMP%]:focus-within{border-color:#f90047}.bulk-rule-card[_ngcontent-%COMP%] .rule-card-inputs[_ngcontent-%COMP%] .rule-price-input-wrapper[_ngcontent-%COMP%] .currency-prefix[_ngcontent-%COMP%]{font-size:14px;font-weight:700;color:#374151}.bulk-rule-card[_ngcontent-%COMP%] .rule-card-inputs[_ngcontent-%COMP%] .rule-price-input-wrapper[_ngcontent-%COMP%] .rule-price-input[_ngcontent-%COMP%]{width:100%;border:none;outline:none;font-size:14px;font-weight:600;color:#111827;background:transparent}.bulk-rule-card[_ngcontent-%COMP%] .rule-card-inputs[_ngcontent-%COMP%] .rule-price-input-wrapper[_ngcontent-%COMP%] .rule-price-input[_ngcontent-%COMP%]::placeholder{color:#9ca3af;font-weight:400}.add-rule-action-row[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:4px}.add-rule-btn[_ngcontent-%COMP%]{background:#fff;border:1px solid #d1d5db;color:#374151;font-size:13px;font-weight:600;padding:8px 20px;border-radius:8px;
3cursor:pointer;transition:all .2s ease}.add-rule-btn[_ngcontent-%COMP%]:hover{background:#f8fafc;border-color:#9ca3af;color:#111827}.save-rules-btn[_ngcontent-%COMP%]{background:#f90047!important;border-color:#f90047!important;color:#fff!important;font-weight:600!important}.save-rules-btn[_ngcontent-%COMP%]:hover{background:#e00040!important}.mobile-only[_ngcontent-%COMP%], .fab-advisor[_ngcontent-%COMP%], .mobile-overlay[_ngcontent-%COMP%]{display:none}@media(max-width:1200px){.edit-v2-container[_ngcontent-%COMP%]{grid-template-columns:300px minmax(0,1fr)}.hidden-on-mobile[_ngcontent-%COMP%]{display:none}}@media(max-width:900px){.edit-v2-container[_ngcontent-%COMP%]{grid-template-columns:1fr;padding:12px 12px 110px;gap:16px;width:100%;max-width:100vw;box-sizing:border-box;overflow-x:hidden}.edit-form-panel[_ngcontent-%COMP%], .main-content[_ngcontent-%COMP%]{width:100%;max-width:100%;box-sizing:border-box;overflow-x:hidden}.form-card[_ngcontent-%COMP%], .specs-section[_ngcontent-%COMP%], .location-section[_ngcontent-%COMP%], .pricing-section[_ngcontent-%COMP%], .video-preview-block[_ngcontent-%COMP%], .photos-preview-block[_ngcontent-%COMP%]{width:100%;max-width:100%;box-sizing:border-box;padding:16px}.advisor-sidebar[_ngcontent-%COMP%]{position:fixed;top:0;right:-100%;bottom:0;width:85%;max-width:360px;height:100vh;z-index:1000;background:#f4f6f8;padding:20px;transition:right .3s cubic-bezier(.4,0,.2,1);box-shadow:-4px 0 24px #0000001a}.advisor-sidebar.mobile-open[_ngcontent-%COMP%]{right:0}.advisor-sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.advisor-sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.2rem}.advisor-sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]{background:none;border:none;font-size:24px;color:#64748b;cursor:pointer}.mobile-only[_ngcontent-%COMP%]{display:flex}.mobile-overlay[_ngcontent-%COMP%]{display:block;position:fixed;inset:0;background:#00000080;z-index:999;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.fab-advisor[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;position:fixed;bottom:20px;right:16px;background:var(--text-color, #1e293b);color:#fff;border:none;padding:10px 16px;border-radius:30px;font-size:.85rem;font-weight:600;box-shadow:0 4px 16px #00000040;z-index:99;cursor:pointer}}.mobile-actions-card[_ngcontent-%COMP%]{display:none}@media(max-width:1200px){.mobile-actions-card[_ngcontent-%COMP%]{display:block;margin-top:24px}.desktop-actions-card[_ngcontent-%COMP%]{display:none}}.ad-actions-card[_ngcontent-%COMP%]{margin-top:20px;background:#fff;border-radius:16px;border:1px solid #e2e8f0;padding:20px;box-shadow:0 4px 20px #00000008}.ad-actions-card[_ngcontent-%COMP%] .actions-card-title[_ngcontent-%COMP%]{margin:0 0 16px;font-size:.9rem;font-weight:700;color:#1e293b;text-transform:uppercase;letter-spacing:.5px}.ad-actions-card[_ngcontent-%COMP%] .actions-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.ad-actions-card[_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:10px;font-size:.85rem;font-weight:600;border:1px solid #e2e8f0;background:#f8fafc;color:#334155;cursor:pointer;text-decoration:none;transition:all .2s ease;width:100%}.ad-actions-card[_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{flex-shrink:0}.ad-actions-card[_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]:hover{background:#f1f5f9;color:#0f172a;border-color:#cbd5e1;transform:translateY(-1px)}.ad-actions-card[_ngcontent-%COMP%] .action-btn.share-btn[_ngcontent-%COMP%]{color:#0284c7;background:#f0f9ff;border-color:#bae6fd}.ad-actions-card[_ngcontent-%COMP%] .action-btn.share-btn[_ngcontent-%COMP%]:hover{background:#e0f2fe;color:#0369a1}.ad-actions-card[_ngcontent-%COMP%] .action-btn.analytics-btn[_ngcontent-%COMP%]{color:#7c3aed;background:#f5f3ff;border-color:#ddd6fe}.ad-actions-card[_ngcontent-%COMP%] .action-btn.analytics-btn[_ngcontent-%COMP%]:hover{background:#ede9fe;color:#6d28d9}.ad-actions-card[_ngcontent-%COMP%] .action-btn.publish-btn[_ngcontent-%COMP%]{color:#059669;background:#ecfdf5;border-color:#a7f3d0}.ad-actions-card[_ngcontent-%COMP%] .action-btn.publish-btn[_ngcontent-%COMP%]:hover{background:#d1fae5;color:#047857}.ad-actions-card[_ngcontent-%COMP%] .action-btn.publish-btn.is-published[_ngcontent-%COMP%]{color:#d97706;background:#fffbeb;border-color:#fde68a}.ad-actions-card[_ngcontent-%COMP%] .action-btn.publish-btn.is-published[_ngcontent-%COMP%]:hover{background:#fef3c7;color:#b45309}.ad-actions-card[_ngcontent-%COMP%] .action-btn.delete-btn[_ngcontent-%COMP%]{color:#dc2626;background:#fef2f2;border-color:#fecaca}.ad-actions-card[_ngcontent-%COMP%] .action-btn.delete-btn[_ngcontent-%COMP%]:hover{background:#fee2e2;color:#b91c1c}.share-modal-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px;padding:8px 0}.share-modal-body[_ngcontent-%COMP%] .copy-link-box[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.share-modal-body[_ngcontent-%COMP%] .copy-link-box[_ngcontent-%COMP%] .share-url-input[_ngcontent-%COMP%]{flex:1;padding:10px 14px;border-radius:10px;border:1px solid #e2e8f0;background:#f8fafc;font-size:.85rem;color:#334155}.share-modal-body[_ngcontent-%COMP%] .copy-link-box[_ngcontent-%COMP%] .copy-btn[_ngcontent-%COMP%]{padding:10px 16px;border-radius:10px;border:none;background:#f90047;color:#fff;font-weight:600;font-size:.85rem;cursor:pointer;white-space:nowrap;transition:background .2s}.share-modal-body[_ngcontent-%COMP%] .copy-link-box[_ngcontent-%COMP%] .copy-btn[_ngcontent-%COMP%]:hover{background:#d0003b}.share-modal-body[_ngcontent-%COMP%] .share-social-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.share-modal-body[_ngcontent-%COMP%] .share-social-grid[_ngcontent-%COMP%] .social-share-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:10px;border:1px solid #e2e8f0;background:#fff;font-size:.9rem;font-weight:600;color:#1e293b;cursor:pointer;transition:all .2s ease}.share-modal-body[_ngcontent-%COMP%] .share-social-grid[_ngcontent-%COMP%] .social-share-item[_ngcontent-%COMP%] .social-outline-svg[_ngcontent-%COMP%]{flex-shrink:0;transition:stroke .2s ease,transform .2s ease}.share-modal-body[_ngcontent-%COMP%] .share-social-grid[_ngcontent-%COMP%] .social-share-item.whatsapp[_ngcontent-%COMP%]:hover{background:#f0fdf4;border-color:#86efac;color:#15803d}.share-modal-body[_ngcontent-%COMP%] .share-social-grid[_ngcontent-%COMP%] .social-share-item.whatsapp[_ngcontent-%COMP%]:hover .social-outline-svg[_ngcontent-%COMP%]{stroke:#25d366}.share-modal-body[_ngcontent-%COMP%] .share-social-grid[_ngcontent-%COMP%] .social-share-item.facebook[_ngcontent-%COMP%]:hover{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8}.share-modal-body[_ngcontent-%COMP%] .share-social-grid[_ngcontent-%COMP%] .social-share-item.facebook[_ngcontent-%COMP%]:hover .social-outline-svg[_ngcontent-%COMP%]{stroke:#1877f2}.share-modal-body[_ngcontent-%COMP%] .share-social-grid[_ngcontent-%COMP%] .social-share-item.twitter[_ngcontent-%COMP%]:hover{background:#f8fafc;border-color:#cbd5e1;color:#0f172a}.share-modal-body[_ngcontent-%COMP%] .share-social-grid[_ngcontent-%COMP%] .social-share-item.twitter[_ngcontent-%COMP%]:hover .social-outline-svg[_ngcontent-%COMP%]{stroke:#0f172a}.share-modal-body[_ngcontent-%COMP%] .share-social-grid[_ngcontent-%COMP%] .social-share-item.telegram[_ngcontent-%COMP%]:hover{background:#f0f9ff;border-color:#7dd3fc;color:#0369a1}.share-modal-body[_ngcontent-%COMP%] .share-social-grid[_ngcontent-%COMP%] .social-share-item.telegram[_ngcontent-%COMP%]:hover .social-outline-svg[_ngcontent-%COMP%]{stroke:#08c}.delete-modal-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;padding:8px 0}.delete-modal-body[_ngcontent-%COMP%] .delete-warning-text[_ngcontent-%COMP%]{margin:0;font-size:.92rem;line-height:1.5;color:#475569}.delete-modal-body[_ngcontent-%COMP%] .delete-modal-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;
3gap:12px}.delete-modal-body[_ngcontent-%COMP%] .delete-modal-actions[_ngcontent-%COMP%] .cancel-modal-btn[_ngcontent-%COMP%]{padding:10px 18px;border-radius:10px;border:1px solid #cbd5e1;background:#fff;color:#475569;font-weight:600;font-size:.9rem;cursor:pointer}.delete-modal-body[_ngcontent-%COMP%] .delete-modal-actions[_ngcontent-%COMP%] .cancel-modal-btn[_ngcontent-%COMP%]:hover{background:#f8fafc}.delete-modal-body[_ngcontent-%COMP%] .delete-modal-actions[_ngcontent-%COMP%] .confirm-delete-btn[_ngcontent-%COMP%]{padding:10px 20px;border-radius:10px;border:none;background:#ef4444;color:#fff;font-weight:600;font-size:.9rem;cursor:pointer;transition:background .2s}.delete-modal-body[_ngcontent-%COMP%] .delete-modal-actions[_ngcontent-%COMP%] .confirm-delete-btn[_ngcontent-%COMP%]:hover:not(:disabled){background:#dc2626}.delete-modal-body[_ngcontent-%COMP%] .delete-modal-actions[_ngcontent-%COMP%] .confirm-delete-btn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}"]});}}return a})(); 4export{_n as AdEditV2Component};
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.