1import{a as q}from"./chunk-IYBOAFIT.js";import{a as j}from"./chunk-ATQR4XGA.js";import{a as W}from"./chunk-35NEUDFQ.js";import{c as L}from"./chunk-67SEPKBD.js";import{a as c,c as P,h as A,i as X}from"./chunk-WKG7T2L3.js";import{a as z}from"./chunk-7DNSTI5F.js";import{x as F}from"./chunk-EUYBSYOA.js";import"./chunk-DIDLRAH3.js";import{a as B,e as w}from"./chunk-XKT2KTPG.js";import"./chunk-WHMWAO7D.js";import"./chunk-QFPV6C6J.js";import"./chunk-EBJTDOWZ.js";import{L as N,Q as O}from"./chunk-Z77QN6CK.js";import"./chunk-IO46VJ7U.js";import"./chunk-PK3REKAC.js";import"./chunk-JRQFPDYR.js";import"./chunk-CDAHPDFA.js";import"./chunk-FPPZ4BUR.js";import{$c as M,Fb as C,J as v,Kc as l,Lc as E,Mc as x,ba as k,c as b,ea as u,ec as D,fc as r,fd as s,gc as a,gd as d,l as h,mb as o,od as T,qa as i,qd as y,tc as m,v as S,xd as I}from"./chunk-WLGXONUO.js";import"./chunk-TTLSD7JL.js";var _={loading:!1,error:null,deletedExtensionId:null};var f=P(X(_),A((e,H=i(q))=>({delete:W(b(u(()=>c(e,{loading:!0,error:null,deletedExtensionId:null})),k(t=>H.delete(t).pipe(S(()=>t),v(n=>(c(e,{loading:!1,error:n,deletedExtensionId:null}),h)))),u(t=>c(e,{loading:!1,error:null,deletedExtensionId:t})))),reset(){c(e,_)}})));var de=(()=>{class e{store=i(f);#e=i(F);#i=i(w,{optional:!0});#t=i(N);#n=i(L);extensionId=I.required();constructor(){this.#i?.paddingStyle?.set(B.HIDE),this.#o()}dismissModal(){this.#e.back()}deleteExtension(){this.store.delete(this.extensionId())}#o(){y(()=>{let t=this.store.deletedExtensionId(),n=this.store.error();T(()=>{t?(this.store.reset(),this.#n.addSuccessNotification(this.#t.translate("MODALS.DELETE_EXTENSION.SUCCESS")),this.#e.closeThenNavigate(["tools",j.EXTENSIONS])):n&&(this.store.reset(),this.#n.addErrorNotification(this.#t.translate("MODALS.DELETE_EXTENSION.FAIL")))})})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=C({type:e,selectors:[["modal-warning-delete-extension"]],inputs:{extensionId:[1,"extensionId"]},features:[M([f])],decls:17,vars:13,consts:[[1,"flex","w-screen","max-w-[27rem]","flex-col","gap-4","rounded-2xl","bg-grey-100","p-6","xs-only:pb-8","dark:bg-grey-600","xsm:gap-6"],[1,"relative","text-center","text-2xl","font-medium","text-grey-600","dark:text-grey-100"],["aria-label","dismiss-btn",1,"ph","ph-x","absolute","right-0","hidden","cursor-pointer","text-2xl/6","text-grey-400","transition-opacity","hover:opacity-65","xsm:inline",3,"click"],[1,"flex","flex-col","text-center","text-base","font-normal","text-grey-400","dark:text-grey-200"],[1,"flex","flex-col","gap-4","xsm:flex-row"],[1,"style_secondary","size_big","!w-full",3,"buttonClick"],[1,"style_primary","size_big","!w-full",3,"buttonClick","disabled"]],template:function(n,p){n&1&&(r(0,"div",0)(1,"div",1)(2,"span"),l(3),s(4,"transloco"),a(),r(5,"i",2),m("click",function(){return p.dismissModal()}),a()(),r(6,"div",3)(7,"span"),l(8),s(9,"transloco"),a()(),r(10,"div",4)(11,"app-ui-button",5),m("buttonClick",function(){return p.dismissModal()}),l(12),s(13,"transloco"),a(),r(14,"app-ui-button",6),m("buttonClick",function(){return p.deleteExtension()}),l(15),s(16,"transloco"),a()()()),n&2&&(o(3),E(d(4,5,"MODALS.DELETE_EXTENSION.TITLE")),o(5),E(d(9,7,"MODALS.DELETE_EXTENSION.TEXT")),o(4),x(" ",d(13,9,"COMMON.CANCEL")," "),o(2),D("disabled",p.store.loading()),o(),x(" ",d(16,11,"COMMON.DELETE")," "))},dependencies:[z,O],styles:["[_nghost-%COMP%] app-ui-button.size_big[_ngcontent-%COMP%]{--button__height: 2.75rem}[_nghost-%COMP%] app-ui-button.style_primary[_ngcontent-%COMP%]{--button__dark-background-color-start: #FB4B57;--button__dark-background-color-end: #FB4B57;--button__dark-background-color-start_hover: #FF6B75;--button__dark-background-color-end_hover: #FF6B75;--button__dark-background-color-start_active: #dc2626;--button__dark-background-color-end_active: #dc2626}"],changeDetection:0})}return e})();export{de as WarningDeleteExtensionComponent};
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.