import{a as G}from"./chunk-KNMWXIQN.js";import{G as U,_a as q,vb as z}from"./chunk-ROXKKVPK.js";import{A as d,Fa as l,Ga as s,Ha as f,Hc as R,Ic as W,Ja as T,Jc as H,Ka as b,Kb as C,La as L,Ma as u,Nb as B,Qb as P,Rc as j,S as n,Ta as t,Ua as i,X as v,Xc as A,bc as k,bd as K,cc as w,fb as x,fc as E,ic as D,ja as _,ka as e,kc as F,la as o,lc as N,ma as g,ne as h,oc as O,ta as I,xb as y}from"./chunk-ZVAMPSQU.js";import{j as S}from"./chunk-FB5LSH2R.js";var se=(()=>{let r=class r{constructor(){this.modalCtrl=d(H),this.preferencesService=d(G),this.ignoreItemTitles=this.preferencesService.preferences[h.IgnoreItemTitles],z({closeOutline:U,saveOutline:q})}save(){return S(this,null,function*(){this.preferencesService.preferences[h.IgnoreItemTitles]=this.ignoreItemTitles,this.preferencesService.save()})}close(){this.modalCtrl.dismiss()}};r.\u0275fac=function(p){return new(p||r)},r.\u0275cmp=v({type:r,selectors:[["page-shopping-list-ignore-modal"]],decls:28,vars:24,consts:[["slot","end"],[3,"click"],["name","close-outline","slot","icon-only"],[1,"ion-padding"],[1,"ion-no-padding"],[1,"ion-text-wrap"],["labelPlacement","stacked","rows","8","auto-grow","true",3,"ngModelChange","label","placeholder","ngModel"],["expand","block",3,"click"],["name","save-outline","slot","start"]],template:function(p,a){p&1&&(e(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),l(3),t(4,"translate"),o(),e(5,"ion-buttons",0)(6,"ion-button",1),I("click",function(){return a.close()}),g(7,"ion-icon",2),o()()()(),e(8,"ion-content",3)(9,"ion-item",4)(10,"ion-label",5),l(11),t(12,"translate"),e(13,"p"),l(14),t(15,"translate"),o(),e(16,"p"),l(17),t(18,"translate"),o()()(),e(19,"ion-textarea",6),t(20,"translate"),t(21,"translate"),L("ngModelChange",function(c){return b(a.ignoreItemTitles,c)||(a.ignoreItemTitles=c),c}),o()(),e(22,"ion-footer",3)(23,"ion-button",7),I("click",function(){return a.save(),a.close()}),g(24,"ion-icon",8),e(25,"ion-label"),l(26),t(27,"translate"),o()()()),p&2&&(n(3),s(i(4,10,"pages.shoppingListIgnoreModal.title")),n(8),f(" ",i(12,12,"pages.shoppingListIgnoreModal.description")," "),n(3),s(i(15,14,"pages.shoppingListIgnoreModal.instructions")),n(3),s(i(18,16,"pages.shoppingListIgnoreModal.scopeNote")),n(2),_("label",u(i(20,18,"pages.shoppingListIgnoreModal.label")))("placeholder",u(i(21,20,"pages.shoppingListIgnoreModal.placeholder"))),T("ngModel",a.ignoreItemTitles),n(7),f(" ",i(27,22,"generic.save")," "))},dependencies:[x,P,C,B,y,F,W,R,w,k,j,E,N,O,A,D,K],encapsulation:2});let m=r;return m})();export{se as a};
