"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[31022],{31022:(e,o,n)=>{n.r(o),n.d(o,{AddonUserProfileFieldMenuComponent:()=>f});var t=n(25266),r=n(86654),i=n(54438),l=n(60177),s=n(89417),d=n(2910),c=n(25880),a=n(17778),m=n(58197),p=n(73955);const _c0=e=>({header:e});function AddonUserProfileFieldMenuComponent_ion_item_0_Template(e,o){if(1&e&&(i.j41(0,"ion-item")(1,"ion-label")(2,"p",2),i.nrm(3,"core-format-text",3),i.k0s(),i.j41(4,"p"),i.nrm(5,"core-format-text",3),i.k0s()()()),2&e){const e=i.XpG();i.R7$(3),i.Y8G("text",e.field.name)("contextLevel",e.contextLevel)("contextInstanceId",e.contextInstanceId)("courseId",e.courseId)("wsNotFiltered",!0),i.R7$(2),i.Y8G("text",e.value)("contextLevel",e.contextLevel)("contextInstanceId",e.contextInstanceId)("courseId",e.courseId)("wsNotFiltered",e.valueNotFiltered)}}function AddonUserProfileFieldMenuComponent_ion_item_1_ion_select_option_9_Template(e,o){if(1&e&&(i.j41(0,"ion-select-option",10),i.EFF(1),i.k0s()),2&e){const e=o.$implicit;i.Y8G("value",e),i.R7$(),i.JRh(e)}}function AddonUserProfileFieldMenuComponent_ion_item_1_Template(e,o){if(1&e&&(i.j41(0,"ion-item",4)(1,"ion-select",5),i.nI1(2,"translate"),i.nI1(3,"translate"),i.j41(4,"div",6),i.nrm(5,"core-format-text",3),i.k0s(),i.j41(6,"ion-select-option",7),i.EFF(7),i.nI1(8,"translate"),i.k0s(),i.DNE(9,AddonUserProfileFieldMenuComponent_ion_item_1_ion_select_option_9_Template,2,2,"ion-select-option",8),i.k0s(),i.nrm(10,"core-input-errors",9),i.k0s()),2&e){const e=i.XpG();i.Y8G("formGroup",e.form),i.R7$(),i.Y8G("formControlName",e.modelName)("placeholder",i.bMT(2,14,"core.choosedots"))("cancelText",i.bMT(3,16,"core.cancel"))("interfaceOptions",i.eq3(20,_c0,e.field.name)),i.R7$(3),i.Y8G("core-mark-required",e.required),i.R7$(),i.Y8G("text",e.field.name)("contextLevel",e.contextLevel)("contextInstanceId",e.contextInstanceId)("courseId",e.courseId)("wsNotFiltered",!0),i.R7$(2),i.JRh(i.bMT(8,18,"core.choosedots")),i.R7$(2),i.Y8G("ngForOf",e.options),i.R7$(),i.Y8G("control",e.form.controls[e.modelName])}}let f=(()=>{var e;class AddonUserProfileFieldMenuComponent extends t.k{initForEdit(e){super.initForEdit(e),this.options=e.param1?e.param1.split(/\r\n|\r|\n/g):[]}}return(e=AddonUserProfileFieldMenuComponent).ɵfac=(()=>{let o;return function AddonUserProfileFieldMenuComponent_Factory(n){return(o||(o=i.xGo(e)))(n||e)}})(),e.ɵcmp=i.VBU({type:e,selectors:[["addon-user-profile-field-menu"]],standalone:!0,features:[i.Vt3,i.aNF],decls:2,vars:2,consts:[[4,"ngIf"],["class","ion-text-wrap",3,"formGroup",4,"ngIf"],[1,"item-heading"],[3,"text","contextLevel","contextInstanceId","courseId","wsNotFiltered"],[1,"ion-text-wrap",3,"formGroup"],["labelPlacement","stacked","interface","action-sheet",3,"formControlName","placeholder","cancelText","interfaceOptions"],["slot","label",3,"core-mark-required"],["value",""],[3,"value",4,"ngFor","ngForOf"],[3,"control"],[3,"value"]],template:function AddonUserProfileFieldMenuComponent_Template(e,o){1&e&&i.DNE(0,AddonUserProfileFieldMenuComponent_ion_item_0_Template,6,10,"ion-item",0)(1,AddonUserProfileFieldMenuComponent_ion_item_1_Template,11,22,"ion-item",1),2&e&&(i.Y8G("ngIf",!o.edit&&o.field&&o.field.name),i.R7$(),i.Y8G("ngIf",o.edit&&o.field&&o.field.shortname&&o.form))},dependencies:[r.n,l.Sq,l.bT,s.BC,s.cb,d.uz,d.he,d.Nm,d.Ip,d.Je,s.j4,s.JD,c.q,a.j,m.B,p.D9],styles:[".item-heading[_ngcontent-%COMP%]{white-space:normal}"]}),AddonUserProfileFieldMenuComponent})()}}]);