"use strict";(self.webpackChunkdotcms_ui=self.webpackChunkdotcms_ui||[]).push([[650],{10650:(A,c,o)=>{o.r(c),o.d(c,{DotFormBuilderModule:()=>S});var i=o(36895),r=o(87904),d=o(9319),a=o(21086),u=o(87545),p=o(72986),f=o(20113),g=o(38131),e=o(86353);let m=(()=>{class t{constructor(n,l){this.dotLicenseService=n,this.dotMessageService=l}resolve(n){return this.dotLicenseService.isEnterprise().pipe((0,u.w)(l=>l?(0,a.of)(null):this.getUnlicensePortlet()),(0,p.q)(1))}getUnlicensePortlet(){return(0,a.of)({title:this.dotMessageService.get("Forms-and-Form-Builder"),description:this.dotMessageService.get("Forms-and-Form-Builder-in-Enterprise"),links:[{text:this.dotMessageService.get("Learn-more-about-dotCMS-Enterprise"),link:"https://dotcms.com/product/features/feature-list"},{text:this.dotMessageService.get("Contact-Us-for-more-Information"),link:"https://dotcms.com/contact-us/"}]})}}return t.\u0275fac=function(n){return new(n||t)(e.LFG(f._),e.LFG(g.l))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac}),t})();var h=o(90373),v=o(8284),F=o(70047),D=o(48778);function M(t,s){if(1&t&&(e.TgZ(0,"li")(1,"a",4),e._uU(2),e.qZA()()),2&t){const n=s.$implicit;e.xp6(1),e.Q6J("href",n.link,e.LSH),e.xp6(1),e.Oqu(n.text)}}let y=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["dot-unlicensed-porlet"]],inputs:{data:"data"},decls:8,vars:7,consts:[["name","business",3,"size"],[3,"innerHTML"],[4,"ngFor","ngForOf"],["href","https://dotcms.com/licensing/request-a-license-3/index","target","_blank",1,"ui-link",3,"innerText"],["target","_blank",3,"href"]],template:function(n,l){1&n&&(e._UZ(0,"dot-icon",0)(1,"h4",1)(2,"p",1),e.TgZ(3,"ul"),e.YNc(4,M,3,2,"li",2),e.qZA(),e.TgZ(5,"p"),e._UZ(6,"a",3),e.ALo(7,"dm"),e.qZA()),2&n&&(e.Q6J("size",120),e.xp6(1),e.Q6J("innerHTML",l.data.title,e.oJD),e.xp6(1),e.Q6J("innerHTML",l.data.description,e.oJD),e.xp6(2),e.Q6J("ngForOf",l.data.links),e.xp6(2),e.Q6J("innerText",e.lcZ(7,5,"request.a.trial.license")))},dependencies:[i.sg,F.L,D.t],styles:["[_nghost-%COMP%]{align-items:center;background-color:#fff;box-shadow:0 2px 4px #0000001a;display:flex;flex-direction:column;height:calc(100vh - 108px);justify-content:center;margin:1.5rem;padding:4.5rem}h4[_ngcontent-%COMP%]{margin:0}dot-icon[_ngcontent-%COMP%]  .material-icons, h4[_ngcontent-%COMP%]{color:#b3b1b8}"]}),t})();function C(t,s){1&t&&e._UZ(0,"dot-unlicensed-porlet",2),2&t&&e.Q6J("data",s.ngIf)}function B(t,s){1&t&&e._UZ(0,"dot-content-types")}const T=[{component:(()=>{class t{constructor(n){this.route=n}ngOnInit(){this.unlicensed$=this.route.data.pipe((0,h.j)("unlicensed"))}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(r.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["dot-form-builder"]],decls:4,vars:4,consts:[[3,"data",4,"ngIf","ngIfElse"],["licensed",""],[3,"data"]],template:function(n,l){if(1&n&&(e.YNc(0,C,1,1,"dot-unlicensed-porlet",0),e.ALo(1,"async"),e.YNc(2,B,1,0,"ng-template",null,1,e.W1O)),2&n){const Z=e.MAs(3);e.Q6J("ngIf",e.lcZ(1,2,l.unlicensed$))("ngIfElse",Z)}},dependencies:[i.O5,v.J,y,i.Ov]}),t})(),path:"",resolve:{unlicensed:m},data:{filterBy:"FORM"}},{loadChildren:()=>Promise.all([o.e(7892),o.e(3238),o.e(8592),o.e(8984)]).then(o.bind(o,98984)).then(t=>t.DotContentTypesEditModule),path:"create",resolve:{contentType:d.b}},{path:"edit",redirectTo:"",pathMatch:"full"},{loadChildren:()=>Promise.all([o.e(7892),o.e(3238),o.e(8592),o.e(8984)]).then(o.bind(o,98984)).then(t=>t.DotContentTypesEditModule),path:"edit/:id",resolve:{contentType:d.b}}];let x=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[d.b],imports:[r.Bz.forChild(T),r.Bz]}),t})();var P=o(14614),U=o(35593),J=o(18889),L=o(2218);let O=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[i.ez,U.hJ,J.T,L.b]}),t})(),S=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[m],imports:[i.ez,P.w,x,O]}),t})()}}]);