manifest 4.17.0 → 4.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/69.61801c6817663bee.js +1 -0
- package/dist/admin/index.html +1 -1
- package/dist/admin/{main.46bd85366cd4caf7.js → main.dc220f9b07885056.js} +1 -1
- package/dist/admin/{runtime.91ef54f7c9b0e57e.js → runtime.39ed6cf9c8b6d7ea.js} +1 -1
- package/dist/manifest/src/manifest/services/entity-manifest.service.js +1 -0
- package/dist/manifest/src/upload/services/upload.service.js +2 -1
- package/package.json +1 -1
- package/dist/admin/69.a82464764900f8b6.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[69],{4493:(Q,D,d)=>{d.d(D,{B:()=>Y});var h=d(2943),M=d(9911),n=d(8428),t=d(8785),$=d(6631),e=d(183),b=d(8284);let Y=(()=>{class G{static{this.\u0275fac=function(x){return new(x||G)}}static{this.\u0275mod=b.$C({type:G})}static{this.\u0275inj=b.G2t({imports:[h.MD,e.iI,M.X1,$.L,n.S,t.x]})}}return G})()},1424:(Q,D,d)=>{d.d(D,{O:()=>oe});var h=d(7431),M=d(9911),n=d(5442),t=d(4782),$=d(7563),e=d(8284),b=d(6119),Y=d(2283),G=d(183),O=d(9879),I=d(818),x=d(2943),k=d(8428);const j=s=>({"is-loading":s}),N=s=>({"is-bordered p-5":s});function B(s,C){if(1&s&&(e.qex(0),e.EFF(1),e.bVm()),2&s){const o=e.XpG(3);e.R7$(),e.SpI("Edit ",o.entityManifest.nameSingular,"")}}function X(s,C){if(1&s&&(e.qex(0),e.EFF(1),e.bVm()),2&s){const o=e.XpG(3);e.R7$(),e.SpI("Edit an existing ",o.entityManifest.nameSingular,"")}}function S(s,C){if(1&s&&(e.qex(0),e.DNE(1,B,2,1,"ng-container",0)(2,X,2,1,"ng-container",0),e.bVm()),2&s){const o=e.XpG(2);e.R7$(),e.Y8G("ngIf",o.singleMode),e.R7$(),e.Y8G("ngIf",!o.singleMode)}}function w(s,C){if(1&s&&(e.qex(0),e.EFF(1),e.bVm()),2&s){const o=e.XpG(2);e.R7$(),e.SpI(" Create a new ",o.entityManifest.nameSingular," ")}}function U(s,C){if(1&s){const o=e.RV6();e.j41(0,"div",15)(1,"div",16)(2,"app-input",17),e.bIt("valueChanged",function(m){const v=e.eBV(o).$implicit,u=e.XpG(3);return e.Njj(u.onChange({propName:v.name,newValue:m}))}),e.k0s()()()}if(2&s){const o=C.$implicit,l=e.XpG(3);e.R7$(2),e.Y8G("prop",o)("entityManifest",l.entityManifest)("value",l.edit?l.item[o.name]:null)("errors",l.errors[o.name])}}function L(s,C){if(1&s){const o=e.RV6();e.j41(0,"div",16)(1,"app-input",19),e.bIt("valueChanged",function(m){e.eBV(o);const v=e.XpG().$implicit,u=e.XpG(3);return e.Njj(u.onRelationChange({relationship:v,newValue:m}))}),e.k0s()()}if(2&s){const o=e.XpG().$implicit,l=e.XpG(3);e.R7$(),e.Y8G("relationship",o)("value",l.edit?l.item[o.name]:null)("errors",l.errors[o.name])}}function V(s,C){if(1&s&&(e.j41(0,"div",15),e.DNE(1,L,2,3,"div",18),e.k0s()),2&s){const o=C.$implicit;e.R7$(),e.Y8G("ngIf","many-to-one"===o.type||"many-to-many"===o.type&&o.owningSide)}}function A(s,C){if(1&s&&(e.j41(0,"p",25),e.EFF(1),e.k0s()),2&s){const o=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",o.helpText," ")}}function K(s,C){if(1&s){const o=e.RV6();e.j41(0,"button",28),e.bIt("click",function(){e.eBV(o);const m=e.XpG(3).$implicit,v=e.XpG(3);return e.Njj(v.addNestedItem(m))}),e.j41(1,"span",29),e.nrm(2,"i",30),e.EFF(3,"- "),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s()()}if(2&s){const o=e.XpG(3).$implicit;e.R7$(5),e.SpI("Add ",o.entity,"")}}function W(s,C){if(1&s&&(e.j41(0,"div",26),e.DNE(1,K,6,1,"button",27),e.k0s()),2&s){const o=e.XpG(2).$implicit,l=e.XpG(3);e.R7$(),e.Y8G("ngIf","one-to-one"!==o.type||null===l.getSingleRelation(o.name))}}function J(s,C){if(1&s&&(e.j41(0,"div",32)(1,"p",33),e.EFF(2),e.k0s(),e.j41(3,"p",34),e.EFF(4),e.k0s()()),2&s){const o=e.XpG(3).$implicit;e.R7$(2),e.SpI(" No ",o.name," added yet. "),e.R7$(2),e.SpI(' Click on "Add ',o.entity,'" to add the item. ')}}function z(s,C){if(1&s){const o=e.RV6();e.j41(0,"div",15)(1,"div",16)(2,"app-input",17),e.bIt("valueChanged",function(m){const v=e.eBV(o).$implicit,u=e.XpG(4).$implicit,y=e.XpG(3);return e.Njj(y.onNestedItemChange({relationship:u,propName:v.name,newValue:m}))}),e.k0s()()()}if(2&s){let o;const l=C.$implicit,m=e.XpG(4).$implicit,v=e.XpG(3);e.R7$(2),e.Y8G("prop",l)("entityManifest",v.nestedEntityManifests[m.name])("value",v.edit?null==(o=v.getSingleRelation(m.name).get(l.name))?null:o.value:null)("errors",v.errors[m.name+"."+l.name])}}function H(s,C){if(1&s){const o=e.RV6();e.qex(0),e.j41(1,"a",35),e.bIt("click",function(){e.eBV(o);const m=e.XpG(3).$implicit,v=e.XpG(3);return e.Njj(v.removeSingleNestedItem(m))}),e.nrm(2,"i",36),e.k0s(),e.DNE(3,z,3,4,"div",14),e.bVm()}if(2&s){const o=e.XpG(3).$implicit,l=e.XpG(3);e.R7$(3),e.Y8G("ngForOf",l.nestedEntityManifests[o.name].properties)}}function Z(s,C){if(1&s&&(e.qex(0),e.DNE(1,J,5,2,"div",31)(2,H,4,1,"ng-container",0),e.bVm()),2&s){const o=e.XpG(2).$implicit,l=e.XpG(3);e.R7$(),e.Y8G("ngIf",!l.getSingleRelation(o.name)),e.R7$(),e.Y8G("ngIf",l.getSingleRelation(o.name))}}function p(s,C){if(1&s){const o=e.RV6();e.j41(0,"button",28),e.bIt("click",function(){e.eBV(o);const m=e.XpG(3).$implicit,v=e.XpG(3);return e.Njj(v.addNestedItem(m))}),e.j41(1,"span",29),e.nrm(2,"i",30),e.EFF(3,"- "),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s()()}if(2&s){const o=e.XpG(3).$implicit;e.R7$(5),e.SpI("Add ",o.entity,"")}}function E(s,C){if(1&s&&(e.qex(0),e.j41(1,"div",32),e.DNE(2,p,6,1,"button",27),e.k0s(),e.bVm()),2&s){const o=e.XpG(2).$implicit,l=e.XpG(3);e.R7$(2),e.Y8G("ngIf","one-to-one"===o.type||null===l.getSingleRelation(o.name))}}function r(s,C){if(1&s&&(e.j41(0,"div",32)(1,"p",33),e.EFF(2),e.k0s(),e.j41(3,"p",34),e.EFF(4),e.k0s()()),2&s){const o=e.XpG(3).$implicit;e.R7$(2),e.SpI(" No ",o.name," yet. "),e.R7$(2),e.SpI(' Click on "Add ',o.entity,'" to add the first item. ')}}function f(s,C){if(1&s){const o=e.RV6();e.j41(0,"div",15)(1,"div",16)(2,"app-input",17),e.bIt("valueChanged",function(m){const v=e.eBV(o).$implicit,u=e.XpG().index,y=e.XpG(3).$implicit,F=e.XpG(3);return e.Njj(F.onNestedItemChange({relationship:y,propName:v.name,index:u,newValue:m}))}),e.k0s()()()}if(2&s){let o;const l=C.$implicit,m=e.XpG(),v=m.$implicit,u=m.index,y=e.XpG(3).$implicit,F=e.XpG(3);e.R7$(2),e.Y8G("prop",l)("entityManifest",F.nestedEntityManifests[y.name])("value",F.edit?null==(o=v.get(l.name))?null:o.value:null)("errors",F.errors[y.name+"["+u+"]."+l.name])}}function R(s,C){if(1&s){const o=e.RV6();e.j41(0,"div",38)(1,"a",35),e.bIt("click",function(){const m=e.eBV(o).index,v=e.XpG(3).$implicit,u=e.XpG(3);return e.Njj(u.removeNestedItem(v,m))}),e.nrm(2,"i",36),e.k0s(),e.DNE(3,f,3,4,"div",14),e.k0s()}if(2&s){const o=e.XpG(3).$implicit,l=e.XpG(3);e.R7$(3),e.Y8G("ngForOf",l.nestedEntityManifests[o.name].properties)}}function T(s,C){if(1&s&&(e.qex(0),e.DNE(1,r,5,2,"div",31)(2,R,4,1,"div",37),e.bVm()),2&s){const o=e.XpG(2).$implicit,l=e.XpG(3);e.R7$(),e.Y8G("ngIf",0===l.getMultipleRelations(o.name).length),e.R7$(),e.Y8G("ngForOf",l.getMultipleRelations(o.name).controls)}}function P(s,C){if(1&s){const o=e.RV6();e.j41(0,"button",28),e.bIt("click",function(){e.eBV(o);const m=e.XpG(3).$implicit,v=e.XpG(3);return e.Njj(v.addNestedItem(m))}),e.j41(1,"span",29),e.nrm(2,"i",30),e.EFF(3,"- "),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s()()}if(2&s){const o=e.XpG(3).$implicit;e.R7$(5),e.SpI("Add ",o.entity,"")}}function q(s,C){if(1&s&&(e.qex(0),e.j41(1,"div",32),e.DNE(2,P,6,1,"button",27),e.k0s(),e.bVm()),2&s){const o=e.XpG(2).$implicit,l=e.XpG(3);e.R7$(2),e.Y8G("ngIf","one-to-one"!==o.type||null===l.getSingleRelation(o.name))}}function ee(s,C){if(1&s&&(e.j41(0,"div",16)(1,"div",20)(2,"div",21)(3,"div")(4,"label"),e.EFF(5),e.k0s(),e.DNE(6,A,2,1,"p",22),e.k0s()(),e.DNE(7,W,2,1,"div",23),e.k0s(),e.j41(8,"div",24),e.DNE(9,Z,3,2,"ng-container",0)(10,E,3,1,"ng-container",0)(11,T,3,2,"ng-container",0)(12,q,3,1,"ng-container",0),e.k0s()()),2&s){const o=e.XpG().$implicit,l=e.XpG(3);e.R7$(5),e.JRh(o.name),e.R7$(),e.Y8G("ngIf",o.helpText),e.R7$(),e.Y8G("ngIf",l.getMultipleRelations(o.name).length>0),e.R7$(),e.Y8G("ngClass",e.eq3(8,N,"one-to-one"===o.type||0===l.getMultipleRelations(o.name).length)),e.R7$(),e.Y8G("ngIf","one-to-one"===o.type),e.R7$(),e.Y8G("ngIf",!l.getSingleRelation(o.name)),e.R7$(),e.Y8G("ngIf","one-to-one"!==o.type),e.R7$(),e.Y8G("ngIf",0===l.getMultipleRelations(o.name).length)}}function te(s,C){if(1&s&&(e.j41(0,"div",15),e.DNE(1,ee,13,10,"div",18),e.k0s()),2&s){const o=C.$implicit;e.R7$(),e.Y8G("ngIf",o.nested)}}function ne(s,C){if(1&s&&(e.j41(0,"form",9)(1,"div",10)(2,"div",11)(3,"div",12)(4,"div",13),e.DNE(5,U,3,4,"div",14)(6,V,2,1,"div",14)(7,te,2,1,"div",14),e.k0s()()()()()),2&s){const o=e.XpG(2);e.Y8G("formGroup",o.form),e.R7$(5),e.Y8G("ngForOf",o.entityManifest.properties),e.R7$(),e.Y8G("ngForOf",o.entityManifest.relationships),e.R7$(),e.Y8G("ngForOf",o.entityManifest.relationships)}}function ie(s,C){if(1&s){const o=e.RV6();e.qex(0),e.j41(1,"section")(2,"div",1)(3,"div",2)(4,"h1",3),e.DNE(5,S,3,2,"ng-container",0)(6,w,2,1,"ng-container",0),e.k0s()(),e.j41(7,"div",4)(8,"button",5),e.bIt("click",function(){e.eBV(o);const m=e.XpG();return e.Njj(m.submit())}),e.EFF(9," Submit "),e.k0s(),e.j41(10,"button",6),e.bIt("click",function(){e.eBV(o);const m=e.XpG();return e.Njj(m.submit())}),e.nrm(11,"i",7),e.k0s()()(),e.DNE(12,ne,8,4,"form",8),e.k0s(),e.bVm()}if(2&s){const o=e.XpG();e.R7$(5),e.Y8G("ngIf",o.edit),e.R7$(),e.Y8G("ngIf",!o.edit),e.R7$(2),e.Y8G("ngClass",e.eq3(5,j,o.loading)),e.R7$(2),e.Y8G("ngClass",e.eq3(7,j,o.loading)),e.R7$(2),e.Y8G("ngIf",o.item||!o.edit)}}let oe=(()=>{class s{constructor(o,l,m,v,u,y,F){this.crudService=o,this.manifestService=l,this.activatedRoute=m,this.router=v,this.formBuilder=u,this.metaService=y,this.flashMessageService=F,this.nestedEntityManifests={},this.errors={},this.form=this.formBuilder.group({}),this.PropType=n.Kk}ngOnInit(){var o=this;return(0,h.A)(function*(){(0,t.z)([o.activatedRoute.params,o.activatedRoute.data]).subscribe(function(){var l=(0,h.A)(function*([m,v]){if(o.edit=v.edit,o.entityManifest=yield o.manifestService.getEntityManifest({slug:m.entitySlug}),o.entityManifest||o.router.navigate(["/404"]),o.singleMode="single"===o.activatedRoute.snapshot.data.mode,o.edit){try{o.item=o.singleMode?yield o.crudService.showSingle(o.entityManifest.slug):yield o.crudService.show(o.entityManifest.slug,m.id,{relations:o.entityManifest.relationships.filter(u=>"one-to-many"!==u.type).filter(u=>"many-to-many"!==u.type||u.owningSide).map(u=>u.name)})}catch{o.router.navigate(["/404"])}o.metaService.setTitle(`Edit ${o.entityManifest.nameSingular}`)}else o.metaService.setTitle(`Create a new ${o.entityManifest.nameSingular}`);o.entityManifest.properties.forEach(u=>{let y=null;o.item?y=o.item[u.name]:u.type===n.Kk.Boolean&&(y=!1),o.form.addControl(u.name,new M.MJ(y))}),o.entityManifest.relationships.filter(u=>"one-to-many"!==u.type&&"one-to-one"!==u.type).filter(u=>"many-to-many"!==u.type||u.owningSide).forEach(u=>{let y=null;"many-to-one"===u.type?y=o.item?o.item[u.name]?.id:null:"many-to-many"===u.type&&(y=o.item?o.item[u.name].map(F=>F.id):[]),o.form.addControl((0,$.yk)(u),new M.MJ(y))}),o.entityManifest.relationships.filter(u=>u.nested).forEach(function(){var u=(0,h.A)(function*(y){const F="one-to-one"!==y.type,ae=yield o.manifestService.getEntityManifest({className:y.entity});o.nestedEntityManifests[y.name]=ae,o.form.addControl(y.name,F?o.formBuilder.array([]):o.formBuilder.group({})),o.edit&&o.item[y.name]&&(Array.isArray(o.item[y.name])?o.item[y.name].forEach(se=>{o.addNestedItem(y,se)}):o.addNestedItem(y,o.item[y.name]))});return function(y){return u.apply(this,arguments)}}())});return function(m){return l.apply(this,arguments)}}())})()}onChange(o){this.form.controls[o.propName].setValue(o.newValue)}onRelationChange(o){return this.onChange({newValue:o.newValue,propName:(0,$.yk)(o.relationship)})}onNestedItemChange(o){let l;l=void 0===o.index?this.form.get(o.relationship.name):this.getMultipleRelations(o.relationship.name).at(o.index),l.controls[o.propName].setValue(o.newValue)}submit(){const o=this.form.value;Object.entries(o).forEach(([l,m])=>{"object"==typeof m&&"{}"===JSON.stringify(m)&&(o[l]=null)}),this.loading=!0,this.edit?(this.singleMode?this.crudService.updateSingle(this.entityManifest.slug,o):this.crudService.update(this.entityManifest.slug,this.item.id,o)).then(()=>{this.loading=!1,this.flashMessageService.success(`The ${this.entityManifest.nameSingular} has been updated`),this.router.navigate([this.singleMode?"/singles":"/collections",this.entityManifest.slug])}).catch(m=>{400===m.status&&(this.errors=this.getErrorMessages(m.error)),this.loading=!1,this.flashMessageService.error(`The ${this.entityManifest.nameSingular} could not be updated`)}):this.crudService.create(this.entityManifest.slug,this.form.value).then(l=>{this.loading=!1,this.flashMessageService.success(`The ${this.entityManifest.nameSingular} has been created successfully`),this.router.navigate(["/collections",this.entityManifest.slug,l.id])}).catch(l=>{400===l.status&&(this.errors=this.getErrorMessages(l.error)),this.loading=!1,this.flashMessageService.error(`Error: the ${this.entityManifest.nameSingular} could not be created:\n ${Object.values(this.errors).join(", ")}\n `)})}addNestedItem(o,l){var m=this;return(0,h.A)(function*(){const v=yield m.createNestedItemFormGroup(o,l);return l&&l.id&&v.addControl("id",new M.MJ(l.id)),"one-to-one"!==o.type?void m.form.get(o.name).push(v):void m.form.setControl(o.name,v)})()}createNestedItemFormGroup(o,l){var m=this;return(0,h.A)(function*(){const v=yield m.manifestService.getEntityManifest({className:o.entity}),u=m.formBuilder.group({});return v.properties.forEach(y=>{u.addControl(y.name,new M.MJ(l?l[y.name]:null))}),u})()}removeNestedItem(o,l){this.form.get(o.name).removeAt(l)}removeSingleNestedItem(o){this.form.setControl(o.name,this.formBuilder.group({}))}getMultipleRelations(o){return this.form.get(o)}getSingleRelation(o){return"{}"===JSON.stringify(this.form.get(o).value)?null:this.form.get(o)}getErrorMessages(o){const l={};return o.forEach(m=>{l[m.property]=Object.values(m.constraints)}),l}static{this.\u0275fac=function(l){return new(l||s)(e.rXU(b.m),e.rXU(Y.x),e.rXU(G.nX),e.rXU(G.Ix),e.rXU(M.ok),e.rXU(O.R),e.rXU(I.L))}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["app-create-edit"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"is-flex","is-justify-content-space-between","is-align-items-center","mb-5"],[1,"left-part"],[1,"title","is-2","has-text-weight-light"],[1,"right-part"],["type","submit",1,"button","is-link","is-hidden-touch",3,"click","ngClass"],["type","submit",1,"button","is-link","is-hidden-desktop","is-circle",3,"click","ngClass"],[1,"icon","icon-save"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"card","is-shadowless","p-4"],[1,"columns"],[1,"column","is-12-touch","is-8-desktop","is-offset-2-desktop","is-6-widescreen","is-offset-3-widescreen","is-6-fullhd","is-offset-3-fullhd"],[1,"form-group"],["class","field mt-2 mb-4",4,"ngFor","ngForOf"],[1,"field","mt-2","mb-4"],[1,"control"],[3,"valueChanged","prop","entityManifest","value","errors"],["class","control",4,"ngIf"],[3,"valueChanged","relationship","value","errors"],[1,"level","mb-0"],[1,"level-left"],["class","help",4,"ngIf"],["class","level-right",4,"ngIf"],[1,"box","is-shadowless","mb-0",3,"ngClass"],[1,"help"],[1,"level-right"],["class","button is-dark is-small has-icon","type","button",3,"click",4,"ngIf"],["type","button",1,"button","is-dark","is-small","has-icon",3,"click"],[1,"icon","is-small"],[1,"icon","icon-plus"],["class","has-text-centered is-fullwidth",4,"ngIf"],[1,"has-text-centered","is-fullwidth"],[1,"is-size-5","has-text-weight-bold"],[1,"mb-4"],[1,"is-inline-flex","is-fullwidth","has-text-dark","is-justify-content-flex-end",3,"click"],[1,"icon","icon-trash-2"],["class","box is-shadowless is-bordered p-5 nested-item",4,"ngFor","ngForOf"],[1,"box","is-shadowless","is-bordered","p-5","nested-item"]],template:function(l,m){1&l&&e.DNE(0,ie,13,9,"ng-container",0),2&l&&e.Y8G("ngIf",m.entityManifest)},dependencies:[x.YU,x.Sq,x.bT,M.qT,M.cb,M.j4,k.S]})}}return s})()},992:(Q,D,d)=>{d.d(D,{R:()=>Z});var h=d(7431),M=d(9e3),n=d(8284),t=d(6119),$=d(2283),e=d(183),b=d(9879),Y=d(2943),G=d(6631),O=d(8785);const I=p=>["/collections",p];function x(p,E){if(1&p&&(n.j41(0,"a",17),n.nrm(1,"i",18),n.k0s()),2&p){const r=n.XpG(2);n.Y8G("routerLink",n.eq3(1,I,r.entityManifest.namePlural))}}function k(p,E){if(1&p&&(n.j41(0,"div",19)(1,"p",20),n.EFF(2),n.k0s(),n.j41(3,"p",21),n.nrm(4,"app-yield",22),n.k0s()()),2&p){const r=E.$implicit,f=n.XpG(2);n.R7$(2),n.SpI(" ",r.name," "),n.R7$(2),n.Y8G("value",f.item[r.name])("prop",r)}}function j(p,E){if(1&p&&n.nrm(0,"app-relation-yield",25),2&p){const r=n.XpG(2).$implicit,f=n.XpG(2);n.Y8G("item",f.item[r.name])("relationship",r)}}function N(p,E){1&p&&(n.qex(0),n.EFF(1,", "),n.bVm())}function B(p,E){if(1&p&&(n.qex(0),n.nrm(1,"app-relation-yield",25),n.DNE(2,N,2,0,"ng-container",0),n.bVm()),2&p){const r=E.$implicit,f=E.last,R=n.XpG(3).$implicit;n.R7$(),n.Y8G("item",r)("relationship",R),n.R7$(),n.Y8G("ngIf",!f)}}function X(p,E){if(1&p&&(n.qex(0),n.DNE(1,B,3,3,"ng-container",26),n.bVm()),2&p){const r=n.XpG(2).$implicit,f=n.XpG(2);n.R7$(),n.Y8G("ngForOf",f.getMultipleRelations(f.item,r))}}function S(p,E){if(1&p&&(n.qex(0),n.j41(1,"p",20),n.EFF(2),n.k0s(),n.j41(3,"p",21),n.DNE(4,j,1,2,"app-relation-yield",24)(5,X,2,1,"ng-container",0),n.k0s(),n.bVm()),2&p){const r=n.XpG().$implicit;n.R7$(2),n.SpI(" ",r.name," "),n.R7$(2),n.Y8G("ngIf","many-to-one"===r.type),n.R7$(),n.Y8G("ngIf","many-to-many"===r.type)}}function w(p,E){1&p&&(n.j41(0,"p"),n.EFF(1,"-"),n.k0s())}function U(p,E){if(1&p&&(n.j41(0,"div",19)(1,"p",20),n.EFF(2),n.k0s(),n.j41(3,"p",21),n.nrm(4,"app-yield",22),n.k0s()()),2&p){const r=E.$implicit,f=n.XpG().$implicit;n.R7$(2),n.SpI(" ",r.name," "),n.R7$(2),n.Y8G("value",f[r.name])("prop",r)}}function L(p,E){if(1&p&&(n.j41(0,"div",29)(1,"div",30),n.DNE(2,U,5,3,"div",15),n.k0s()()),2&p){const r=n.XpG(2).$implicit,f=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",f.nestedEntityManifests[r.name].properties)}}function V(p,E){if(1&p&&(n.qex(0),n.j41(1,"p",20),n.EFF(2),n.k0s(),n.DNE(3,w,2,0,"p",0),n.j41(4,"div",27),n.DNE(5,L,3,1,"div",28),n.k0s(),n.bVm()),2&p){const r=n.XpG().$implicit,f=n.XpG(2);n.R7$(2),n.SpI(" ",r.name," "),n.R7$(),n.Y8G("ngIf",!f.getMultipleRelations(f.item,r).length),n.R7$(2),n.Y8G("ngForOf",f.getMultipleRelations(f.item,r))}}function A(p,E){1&p&&(n.j41(0,"p"),n.EFF(1,"-"),n.k0s())}function K(p,E){if(1&p&&(n.j41(0,"div",19)(1,"p",20),n.EFF(2),n.k0s(),n.j41(3,"p",21),n.nrm(4,"app-yield",22),n.k0s()()),2&p){const r=E.$implicit,f=n.XpG(3).$implicit,R=n.XpG(2);n.R7$(2),n.SpI(" ",r.name," "),n.R7$(2),n.Y8G("value",R.getSingleRelation(R.item,f)[r.name])("prop",r)}}function W(p,E){if(1&p&&(n.j41(0,"div",29)(1,"div",30),n.DNE(2,K,5,3,"div",15),n.k0s()()),2&p){const r=n.XpG(2).$implicit,f=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",f.nestedEntityManifests[r.name].properties)}}function J(p,E){if(1&p&&(n.qex(0),n.j41(1,"p",20),n.EFF(2),n.k0s(),n.DNE(3,A,2,0,"p",0),n.j41(4,"div",27),n.DNE(5,W,3,1,"div",31),n.k0s(),n.bVm()),2&p){const r=n.XpG().$implicit,f=n.XpG(2);n.R7$(2),n.SpI(" ",r.name," "),n.R7$(),n.Y8G("ngIf",!f.item[r.name]),n.R7$(2),n.Y8G("ngIf",f.item[r.name])}}function z(p,E){if(1&p&&(n.j41(0,"div",23),n.DNE(1,S,6,3,"ng-container",0)(2,V,6,3,"ng-container",0)(3,J,6,3,"ng-container",0),n.k0s()),2&p){const r=E.$implicit;n.R7$(),n.Y8G("ngIf","many-to-one"===r.type||"many-to-many"===r.type&&r.owningSide&&!r.nested),n.R7$(),n.Y8G("ngIf",r.nested&&"one-to-many"===r.type),n.R7$(),n.Y8G("ngIf",r.nested&&"one-to-one"===r.type)}}function H(p,E){if(1&p&&(n.j41(0,"section")(1,"div",1)(2,"div",2),n.DNE(3,x,2,3,"a",3),n.j41(4,"h1",4),n.EFF(5),n.k0s()(),n.j41(6,"div",5)(7,"a",6),n.nrm(8,"i",7),n.k0s(),n.j41(9,"a",8),n.EFF(10,"Edit "),n.k0s(),n.j41(11,"a",9),n.nrm(12,"i",10),n.k0s()()(),n.j41(13,"div",11)(14,"div",12)(15,"div",13)(16,"div",14),n.DNE(17,k,5,3,"div",15)(18,z,4,3,"div",16),n.k0s()()()()()),2&p){const r=n.XpG();n.R7$(3),n.Y8G("ngIf",!r.entityManifest.single),n.R7$(2),n.SpI(" ",r.singleMode?r.entityManifest.nameSingular:r.item[r.entityManifest.mainProp]," "),n.R7$(12),n.Y8G("ngForOf",r.entityManifest.properties),n.R7$(),n.Y8G("ngForOf",r.entityManifest.relationships)}}let Z=(()=>{class p{constructor(r,f,R,T,P){this.crudService=r,this.manifestService=f,this.activatedRoute=R,this.metaService=T,this.router=P,this.nestedEntityManifests={}}ngOnInit(){var r=this;this.activatedRoute.params.subscribe(function(){var f=(0,h.A)(function*(R){if(r.entityManifest=yield r.manifestService.getEntityManifest({slug:R.entitySlug}),r.entityManifest.relationships)for(const T of r.entityManifest.relationships)if(T.nested){const P=yield r.manifestService.getEntityManifest({className:T.entity});r.nestedEntityManifests[T.name]=P}r.entityManifest||r.router.navigate(["/404"]),r.singleMode="single"===r.activatedRoute.snapshot.data.mode;try{r.item=r.singleMode?yield r.crudService.showSingle(r.entityManifest.slug):yield r.crudService.show(r.entityManifest.slug,R.id,{relations:r.entityManifest.relationships?.filter(T=>"one-to-many"!==T.type).filter(T=>"many-to-many"!==T.type||T.owningSide).map(T=>T.name)})}catch{r.router.navigate(["/404"])}r.metaService.setTitle((new M.X).transform(r.entityManifest.nameSingular))});return function(R){return f.apply(this,arguments)}}())}getMultipleRelations(r,f){return r[f.name]}getSingleRelation(r,f){return r[f.name]}static{this.\u0275fac=function(f){return new(f||p)(n.rXU(t.m),n.rXU($.x),n.rXU(e.nX),n.rXU(b.R),n.rXU(e.Ix))}}static{this.\u0275cmp=n.VBU({type:p,selectors:[["app-detail"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"is-flex","is-justify-content-space-between","is-align-items-center","mb-5"],[1,"left-part","is-flex","is-flex-wrap-wrap","is-align-items-center"],["class","button is-circle mr-2 button--back",3,"routerLink",4,"ngIf"],[1,"title","is-2","has-text-weight-light"],[1,"right-part","is-flex","is-flex-direction-row"],[1,"button","is-link","is-light","is-hidden-desktop","is-circle"],[1,"icon","icon-trash-2"],["routerLink","edit",1,"button","is-link","ml-2","is-hidden-touch"],["routerLink","edit",1,"button","is-link","ml-2","is-hidden-desktop","is-circle"],[1,"icon","icon-edit"],[1,"card","p-0","mb-6","is-shadowless"],[1,"card-content"],[1,"columns"],[1,"column","is-12-touch","is-8-desktop","is-offset-2-desktop","is-6-widescreen","is-offset-3-widescreen","is-6-fullhd","is-offset-3-fullhd"],["class","properties",4,"ngFor","ngForOf"],["class","relations",4,"ngFor","ngForOf"],[1,"button","is-circle","mr-2","button--back",3,"routerLink"],[1,"icon","icon-arrow-right"],[1,"properties"],[1,"is-property-label","mb-1","is-size-5","has-text-dark","has-text-weight-medium"],[1,"is-property-value"],[3,"value","prop"],[1,"relations"],[3,"item","relationship",4,"ngIf"],[3,"item","relationship"],[4,"ngFor","ngForOf"],[1,"group-wrapper","pl-5"],["class","nested-item",4,"ngFor","ngForOf"],[1,"nested-item"],[1,"box","is-shadowless","is-bordered","p-5","mb-5"],["class","nested-item",4,"ngIf"]],template:function(f,R){1&f&&n.DNE(0,H,19,4,"section",0),2&f&&n.Y8G("ngIf",R.item&&R.entityManifest)},dependencies:[Y.Sq,Y.bT,e.Wk,G.L,O.x],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";.properties[_ngcontent-%COMP%] + div[_ngcontent-%COMP%], .relations[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:16px}@media screen and (min-width: 1000px){.card.is-single-card[_ngcontent-%COMP%]{padding-right:25%!important;padding-left:25%!important}}@media screen and (min-width: 1458px){.card.is-single-card[_ngcontent-%COMP%]{padding-right:33%!important;padding-left:33%!important}}.group-wrapper[_ngcontent-%COMP%]{position:relative;overflow:hidden}.group-wrapper[_ngcontent-%COMP%]:before{position:absolute;left:0;top:-1px;width:2rem;height:2rem;display:inline-block;background-image:url(dot.a0723848e2d7f38a.svg);background-repeat:repeat-y;content:""}.nested-item[_ngcontent-%COMP%]{position:relative}.nested-item[_ngcontent-%COMP%]:before{content:"";position:absolute;left:-2rem;width:2rem;display:inline-block;background-image:url(dot.a0723848e2d7f38a.svg);background-repeat:repeat-y}.nested-item[_ngcontent-%COMP%]:not(:last-child):before{bottom:calc(-4rem - 3px);height:calc(100% + 2rem)}.nested-item[_ngcontent-%COMP%]:after{content:"";position:absolute;top:calc(2rem - 1px);left:-2rem;width:2rem;height:4px;display:inline-block;background-image:url(dot.a0723848e2d7f38a.svg);background-repeat:repeat-x}']})}}return p})()},8785:(Q,D,d)=>{d.d(D,{x:()=>Y});var h=d(2943),M=d(183),n=d(8284),t=d(2283);const $=(G,O)=>["/","collections",G,O];function e(G,O){if(1&G&&(n.j41(0,"a",2)(1,"span"),n.EFF(2),n.k0s()()),2&G){const I=n.XpG();n.Y8G("routerLink",n.l_i(2,$,I.entityManifest.slug,I.item.id)),n.R7$(2),n.JRh(I.item[I.entityManifest.mainProp])}}function b(G,O){1&G&&(n.j41(0,"span"),n.EFF(1,"-"),n.k0s())}let Y=(()=>{class G{constructor(I){this.manifestService=I}ngOnInit(){this.manifestService.getEntityManifest({className:this.relationship.entity}).then(I=>{this.entityManifest=I})}static{this.\u0275fac=function(x){return new(x||G)(n.rXU(t.x))}}static{this.\u0275cmp=n.VBU({type:G,selectors:[["app-relation-yield"]],inputs:{item:"item",relationship:"relationship"},standalone:!0,features:[n.aNF],decls:2,vars:2,consts:[[3,"routerLink",4,"ngIf"],[4,"ngIf"],[3,"routerLink"]],template:function(x,k){1&x&&n.DNE(0,e,3,5,"a",0)(1,b,2,0,"span",1),2&x&&(n.Y8G("ngIf",k.item&&k.entityManifest),n.R7$(),n.Y8G("ngIf",!k.item||!k.entityManifest))},dependencies:[M.iI,M.Wk,h.MD,h.bT]})}}return G})()},6631:(Q,D,d)=>{d.d(D,{L:()=>me});var h=d(2943),M=d(5442),n=function(i){return i[i.Text=0]="Text",i[i.Number=1]="Number",i[i.Link=2]="Link",i[i.Currency=3]="Currency",i[i.Date=4]="Date",i[i.Boolean=5]="Boolean",i[i.Email=6]="Email",i[i.ProgressBar=7]="ProgressBar",i[i.Label=8]="Label",i[i.Location=9]="Location",i}(n||{}),t=d(8284);function $(i,g){1&i&&(t.j41(0,"span"),t.nrm(1,"i",1),t.k0s())}function e(i,g){1&i&&(t.j41(0,"span"),t.EFF(1," - "),t.k0s())}let b=(()=>{class i{static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-boolean-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:3,vars:2,consts:[[4,"ngIf"],[1,"icon","icon-check-circle","has-text-success"]],template:function(_,c){1&_&&(t.j41(0,"div"),t.DNE(1,$,2,0,"span",0)(2,e,2,0,"span",0),t.k0s()),2&_&&(t.R7$(),t.Y8G("ngIf",c.value),t.R7$(),t.Y8G("ngIf",!c.value))},dependencies:[h.MD,h.bT]})}}return i})();function Y(i,g){if(1&i&&(t.j41(0,"span",1),t.EFF(1),t.nI1(2,"currency"),t.k0s()),2&i){const a=t.XpG();t.R7$(),t.SpI(" ",t.i5U(2,1,a.value,a.currency),"")}}function G(i,g){1&i&&(t.j41(0,"span",1),t.EFF(1," - "),t.k0s())}let O=(()=>{class i{static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-currency-yield"]],inputs:{value:"value",currency:"currency"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["class","is-nowrap",4,"ngIf"],[1,"is-nowrap"]],template:function(_,c){1&_&&t.DNE(0,Y,3,4,"span",0)(1,G,2,0,"span",0),2&_&&(t.Y8G("ngIf",c.value),t.R7$(),t.Y8G("ngIf",!c.value))},dependencies:[h.bT,h.oe]})}}return i})();function I(i,g){1&i&&(t.j41(0,"span",0),t.EFF(1," - "),t.k0s())}let x=(()=>{class i{static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-date-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:4,vars:5,consts:[[1,"is-nowrap"],["class","is-nowrap",4,"ngIf"]],template:function(_,c){1&_&&(t.j41(0,"span",0),t.EFF(1),t.nI1(2,"date"),t.k0s(),t.DNE(3,I,2,0,"span",1)),2&_&&(t.R7$(),t.JRh(t.i5U(2,2,c.value,"MM/dd/yy")),t.R7$(2),t.Y8G("ngIf",!c.value))},dependencies:[h.vh,h.bT]})}}return i})(),k=(()=>{class i{static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-email-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:3,vars:1,consts:[[1,"yield"],[1,"yield__value"]],template:function(_,c){1&_&&(t.j41(0,"div",0)(1,"div",1),t.EFF(2),t.k0s()()),2&_&&(t.R7$(2),t.JRh(c.value))}})}}return i})();function j(i,g){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const a=t.XpG();t.ZvI("tag is-rounded is-color-",a.index,""),t.R7$(),t.JRh(a.value)}}function N(i,g){1&i&&(t.j41(0,"span"),t.EFF(1,"-"),t.k0s())}let B=(()=>{class i{ngOnInit(){this.index=this.values.indexOf(this.value)}static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-label-yield"]],inputs:{value:"value",values:"values"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[[3,"class",4,"ngIf"],[4,"ngIf"]],template:function(_,c){1&_&&t.DNE(0,j,2,4,"span",0)(1,N,2,0,"span",1),2&_&&(t.Y8G("ngIf",c.value),t.R7$(),t.Y8G("ngIf",!c.value))},dependencies:[h.MD,h.bT],styles:[".is-color-3[_ngcontent-%COMP%]{background-color:#f50057;color:#fff}.is-color-1[_ngcontent-%COMP%]{background-color:#ff6d00;color:#fff}.is-color-2[_ngcontent-%COMP%]{background-color:#ffd600;color:#000}.is-color-4[_ngcontent-%COMP%]{background-color:#d500f9;color:#fff}.is-color-5[_ngcontent-%COMP%]{background-color:#651fff;color:#fff}.is-color-6[_ngcontent-%COMP%]{background-color:#3d5afe;color:#fff}.is-color-7[_ngcontent-%COMP%]{background-color:#00b0ff;color:#fff}.is-color-8[_ngcontent-%COMP%]{background-color:#00c853;color:#fff}.is-color-9[_ngcontent-%COMP%]{background-color:#64dd17;color:#000}.is-color-10[_ngcontent-%COMP%]{background-color:#a1887f;color:#fff}.is-color-11[_ngcontent-%COMP%]{background-color:#607d8b;color:#fff}.is-color-12[_ngcontent-%COMP%]{background-color:#9e9e9e;color:#fff}"]})}}return i})(),X=(()=>{class i{transform(a,_){return a?.length>_?a.substring(0,_)+"...":a}static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275pipe=t.EJ8({name:"truncate",type:i,pure:!0,standalone:!0})}}return i})();const S=(i,g)=>({"icon-external-link":i,"icon-download":g});function w(i,g){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"truncate"),t.k0s()),2&i){const a=t.XpG(2);t.R7$(),t.JRh(t.i5U(2,1,a.value,44))}}function U(i,g){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const a=t.XpG(2);t.R7$(),t.JRh(a.value)}}function L(i,g){if(1&i&&(t.j41(0,"a",2),t.nrm(1,"i",3),t.DNE(2,w,3,4,"span",4)(3,U,2,1,"span",4),t.k0s()),2&i){const a=t.XpG();t.Y8G("href",a.value,t.B4B)("download",a.isDownload),t.R7$(),t.Y8G("ngClass",t.l_i(5,S,!a.isDownload,a.isDownload)),t.R7$(),t.Y8G("ngIf",a.compact),t.R7$(),t.Y8G("ngIf",!a.compact)}}function V(i,g){1&i&&(t.j41(0,"span",5),t.EFF(1," - "),t.k0s())}let A=(()=>{class i{constructor(){this.compact=!0,this.isDownload=!1}static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-link-yield"]],inputs:{value:"value",compact:"compact",isDownload:"isDownload"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["target","_blank","class","is-inline-flex is-align-items-center",3,"href","download",4,"ngIf"],["class","is-nowrap",4,"ngIf"],["target","_blank",1,"is-inline-flex","is-align-items-center",3,"href","download"],[1,"icon","icon-external-link","mr-1",3,"ngClass"],[4,"ngIf"],[1,"is-nowrap"]],template:function(_,c){1&_&&t.DNE(0,L,4,8,"a",0)(1,V,2,0,"span",1),2&_&&(t.Y8G("ngIf",c.value),t.R7$(),t.Y8G("ngIf",!c.value))},dependencies:[h.bT,h.YU,X]})}}return i})();function K(i,g){if(1&i&&(t.j41(0,"a",2),t.nrm(1,"i",3),t.j41(2,"span"),t.EFF(3,"View on map"),t.k0s()()),2&i){const a=t.XpG();t.FCK("href","https://www.openstreetmap.org/?mlat=",a.value.lat,"&mlon=",a.value.lng,"",t.B4B)}}function W(i,g){1&i&&(t.j41(0,"span"),t.EFF(1,"-"),t.k0s())}let J=(()=>{class i{static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-location-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["target","_blank",3,"href",4,"ngIf"],[4,"ngIf"],["target","_blank",3,"href"],[1,"icon","icon-map-pin","mr-1"]],template:function(_,c){1&_&&t.DNE(0,K,4,3,"a",0)(1,W,2,0,"span",1),2&_&&(t.Y8G("ngIf",(null==c.value?null:c.value.lat)&&(null==c.value?null:c.value.lng)),t.R7$(),t.Y8G("ngIf",!(null!=c.value&&c.value.lat&&null!=c.value&&c.value.lng)))},dependencies:[h.bT]})}}return i})();function z(i,g){if(1&i&&(t.j41(0,"span",1),t.EFF(1),t.k0s()),2&i){const a=t.XpG();t.R7$(),t.SpI(" ",a.value," ")}}function H(i,g){1&i&&(t.j41(0,"span",1),t.EFF(1," - "),t.k0s())}let Z=(()=>{class i{static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-number-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["class","is-nowrap",4,"ngIf"],[1,"is-nowrap"]],template:function(_,c){1&_&&t.DNE(0,z,2,1,"span",0)(1,H,2,0,"span",0),2&_&&(t.Y8G("ngIf",null!==c.value),t.R7$(),t.Y8G("ngIf",null===c.value))},dependencies:[h.bT]})}}return i})();function p(i,g){1&i&&t.nrm(0,"span",4)}function E(i,g){1&i&&t.nrm(0,"span",5)}function r(i,g){if(1&i&&(t.qex(0),t.DNE(1,p,1,0,"span",2)(2,E,1,0,"span",3),t.bVm()),2&i){const a=g.index,_=t.XpG();t.R7$(),t.Y8G("ngIf",_.index>=a),t.R7$(),t.Y8G("ngIf",_.index<a)}}let f=(()=>{class i{constructor(){this.enumAsArray=[]}ngOnInit(){this.index=this.values.indexOf(this.value)}static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-progress-bar-yield"]],inputs:{value:"value",values:"values"},standalone:!0,features:[t.aNF],decls:2,vars:5,consts:[[1,"is-flex","is-align-items-center","is-white-space-nowrap","tooltip","has-tooltip-left"],[4,"ngFor","ngForOf"],["class","bullet",4,"ngIf"],["class","bullet is-grey",4,"ngIf"],[1,"bullet"],[1,"bullet","is-grey"]],template:function(_,c){1&_&&(t.j41(0,"div",0),t.DNE(1,r,3,2,"ng-container",1),t.k0s()),2&_&&(t.ZvI("is-color-",c.index,""),t.BMQ("data-tooltip",c.value||"Unknown"),t.R7$(),t.Y8G("ngForOf",c.values))},dependencies:[h.MD,h.Sq,h.bT]})}}return i})();function R(i,g){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"truncate"),t.k0s()),2&i){const a=t.XpG();t.R7$(),t.JRh(t.i5U(2,1,a.value,44))}}function T(i,g){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const a=t.XpG();t.R7$(),t.JRh(a.value)}}function P(i,g){1&i&&(t.j41(0,"span"),t.EFF(1," - "),t.k0s())}let q=(()=>{class i{constructor(){this.compact=!0}static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-text-yield"]],inputs:{value:"value",compact:"compact"},standalone:!0,features:[t.aNF],decls:3,vars:3,consts:[[4,"ngIf"]],template:function(_,c){1&_&&t.DNE(0,R,3,4,"span",0)(1,T,2,1,"span",0)(2,P,2,0,"span",0),2&_&&(t.Y8G("ngIf",c.compact),t.R7$(),t.Y8G("ngIf",!c.compact),t.R7$(),t.Y8G("ngIf",!c.value))},dependencies:[h.MD,h.bT,X]})}}return i})(),ee=(()=>{class i{static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-timestamp-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:3,vars:4,consts:[[1,"is-nowrap"]],template:function(_,c){1&_&&(t.j41(0,"span",0),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&_&&(t.R7$(),t.JRh(t.i5U(2,1,c.value,"yyyy-MM-dd HH:mm:ss")))},dependencies:[h.vh],encapsulation:2})}}return i})();var te=d(7563);function ne(i,g){if(1&i&&t.nrm(0,"img",2),2&i){const a=t.XpG();t.Y8G("src",a.image,t.B4B)}}function ie(i,g){1&i&&(t.j41(0,"span"),t.EFF(1,"-"),t.k0s())}let oe=(()=>{class i{ngOnInit(){if(this.value){const a=(0,te.Gj)(this.sizes);this.image=this.value[a]}}static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-image-yield"]],inputs:{value:"value",sizes:"sizes",label:"label"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["alt","image","width","36","height","36",3,"src",4,"ngIf"],[4,"ngIf"],["alt","image","width","36","height","36",3,"src"]],template:function(_,c){1&_&&t.DNE(0,ne,1,1,"img",0)(1,ie,2,0,"span",1),2&_&&(t.Y8G("ngIf",c.image),t.R7$(),t.Y8G("ngIf",!c.image))},dependencies:[h.bT],encapsulation:2})}}return i})();function s(i,g){if(1&i&&(t.j41(0,"div",2)(1,"div",3),t.nrm(2,"div",4),t.k0s()()),2&i){const a=t.XpG();t.R7$(2),t.Y8G("innerHTML",a.value,t.npT)}}function C(i,g){1&i&&(t.j41(0,"span"),t.EFF(1,"-"),t.k0s())}let o=(()=>{class i{static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-rich-text-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["class","wrapper",4,"ngIf"],[4,"ngIf"],[1,"wrapper"],[1,"content","is-normal"],[3,"innerHTML"]],template:function(_,c){1&_&&t.DNE(0,s,3,1,"div",0)(1,C,2,0,"span",1),2&_&&(t.Y8G("ngIf",c.value),t.R7$(),t.Y8G("ngIf",!c.value))},dependencies:[h.bT],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";.wrapper[_ngcontent-%COMP%]{border:1px solid #dddde2;background-color:#fff;padding:32px;border-radius:6px}.content[_ngcontent-%COMP%] blockquote[_ngcontent-%COMP%]{border-left:4px solid #39393c;background-color:#fff}']})}}return i})();function l(i,g){if(1&i&&t.nrm(0,"app-text-yield",6),2&i){const a=t.XpG();t.Y8G("value",a.value)("compact",a.compact)}}function m(i,g){if(1&i&&t.nrm(0,"app-rich-text-yield",7),2&i){const a=t.XpG();t.Y8G("value",a.value)}}function v(i,g){if(1&i&&t.nrm(0,"app-number-yield",7),2&i){const a=t.XpG();t.Y8G("value",a.value)}}function u(i,g){if(1&i&&t.nrm(0,"app-link-yield",8),2&i){const a=t.XpG();t.Y8G("value",a.value)("isDownload",a.prop.type===a.PropType.File)("compact",a.compact)}}function y(i,g){if(1&i&&t.nrm(0,"app-boolean-yield",7),2&i){const a=t.XpG();t.Y8G("value",a.value)}}function F(i,g){if(1&i&&t.nrm(0,"app-currency-yield",9),2&i){const a=t.XpG();t.Y8G("currency",null==a.prop.options?null:a.prop.options.currency)("value",a.value)}}function ae(i,g){if(1&i&&t.nrm(0,"app-date-yield",7),2&i){const a=t.XpG();t.Y8G("value",a.value)}}function se(i,g){if(1&i&&t.nrm(0,"app-timestamp-yield",7),2&i){const a=t.XpG();t.Y8G("value",a.value)}}function re(i,g){if(1&i&&t.nrm(0,"app-email-yield",7),2&i){const a=t.XpG();t.Y8G("value",a.value)}}function le(i,g){if(1&i&&t.nrm(0,"app-label-yield",10),2&i){const a=t.XpG();t.Y8G("values",null==a.prop.options?null:a.prop.options.values)("value",a.value)}}function ce(i,g){if(1&i&&t.nrm(0,"app-progress-bar-yield",10),2&i){const a=t.XpG();t.Y8G("values",null==a.prop.options?null:a.prop.options.values)("value",a.value)}}function _e(i,g){if(1&i&&t.nrm(0,"app-location-yield",7),2&i){const a=t.XpG();t.Y8G("value",a.value)}}function pe(i,g){if(1&i&&t.nrm(0,"app-image-yield",11),2&i){const a=t.XpG();t.Y8G("value",a.value)("sizes",null==a.prop.options?null:a.prop.options.sizes)}}let me=(()=>{class i{constructor(){this.compact=!1,this.PropType=M.Kk,this.YieldType=n}static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-yield"]],inputs:{prop:"prop",value:"value",compact:"compact"},standalone:!0,features:[t.aNF],decls:13,vars:13,consts:[[3,"value","compact",4,"ngIf"],[3,"value",4,"ngIf"],[3,"value","isDownload","compact",4,"ngIf"],[3,"currency","value",4,"ngIf"],[3,"values","value",4,"ngIf"],[3,"value","sizes",4,"ngIf"],[3,"value","compact"],[3,"value"],[3,"value","isDownload","compact"],[3,"currency","value"],[3,"values","value"],[3,"value","sizes"]],template:function(_,c){1&_&&t.DNE(0,l,1,2,"app-text-yield",0)(1,m,1,1,"app-rich-text-yield",1)(2,v,1,1,"app-number-yield",1)(3,u,1,3,"app-link-yield",2)(4,y,1,1,"app-boolean-yield",1)(5,F,1,2,"app-currency-yield",3)(6,ae,1,1,"app-date-yield",1)(7,se,1,1,"app-timestamp-yield",1)(8,re,1,1,"app-email-yield",1)(9,le,1,2,"app-label-yield",4)(10,ce,1,2,"app-progress-bar-yield",4)(11,_e,1,1,"app-location-yield",1)(12,pe,1,2,"app-image-yield",5),2&_&&(t.Y8G("ngIf",c.prop.type===c.PropType.String||c.prop.type===c.PropType.Text),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.RichText),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Number),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Link||c.prop.type===c.PropType.File),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Boolean),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Money),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Date),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Timestamp),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Email),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Choice&&!0!==(null==c.prop.options?null:c.prop.options.sequential)),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Choice&&!0===(null==c.prop.options?null:c.prop.options.sequential)),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Location),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Image))},dependencies:[h.MD,h.bT,b,O,x,ee,k,Z,A,q,B,f,J,oe,o],encapsulation:2})}}return i})()}}]);
|
package/dist/admin/index.html
CHANGED
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
<style>@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";@charset "UTF-8";html,body{margin:0;padding:0}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}html{background-color:#fff;font-size:10px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;min-width:300px;overflow-x:hidden;overflow-y:scroll;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{font-family:Rubik,sans-serif}body{color:#535356;font-size:1em;font-weight:400;line-height:1.5}*:focus{outline:none}html{overflow-x:hidden;overflow-y:scroll;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}@media screen and (max-width: 999px){html{font-size:10.22px}}body{text-rendering:optimizeLegibility;overflow:hidden;background:#f5f7f9;color:#303032;font-size:1.2rem}*[href]{cursor:pointer}</style><link rel="stylesheet" href="styles.8ccfc17311992374.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.8ccfc17311992374.css"></noscript></head>
|
|
10
10
|
<body>
|
|
11
11
|
<app-root></app-root>
|
|
12
|
-
<script src="runtime.
|
|
12
|
+
<script src="runtime.39ed6cf9c8b6d7ea.js" type="module"></script><script src="polyfills.2aefc0784c3d32a6.js" type="module"></script><script src="main.dc220f9b07885056.js" type="module"></script></body>
|
|
13
13
|
</html>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @license Angular v17.3.12
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
|
-
*/function $e(N){N||((0,o.Af3)($e),N=(0,o.WQX)(o.abz));const se=new $.c(y=>N.onDestroy(y.next.bind(y)));return y=>y.pipe((0,Ee.Q)(se))}var Tn=b(6852),vr=b(7624),Si=b(7233),ji=b(7412),Sn=b(3575),at=b(5271),Sr=b(2097),yr=b(7236);const Lr=["addListener","removeListener"],Vr=["addEventListener","removeEventListener"],wr=["on","off"];function It(N,se,y,R){if((0,Sr.T)(y)&&(R=y,y=void 0),R)return It(N,se,y).pipe((0,yr.I)(R));const[A,W]=function ar(N){return(0,Sr.T)(N.addEventListener)&&(0,Sr.T)(N.removeEventListener)}(N)?Vr.map(Ne=>rt=>N[Ne](se,rt,y)):function jr(N){return(0,Sr.T)(N.addListener)&&(0,Sr.T)(N.removeListener)}(N)?Lr.map(Zr(N,se)):function _r(N){return(0,Sr.T)(N.on)&&(0,Sr.T)(N.off)}(N)?wr.map(Zr(N,se)):[];if(!A&&(0,at.X)(N))return(0,Sn.Z)(Ne=>It(Ne,se,y))((0,ji.Tg)(N));if(!A)throw new TypeError("Invalid event target");return new $.c(Ne=>{const rt=(...Ot)=>Ne.next(1<Ot.length?Ot:Ot[0]);return A(rt),()=>W(rt)})}function Zr(N,se){return y=>R=>N[y](se,R)}var lr=b(1087);const Ur={now:()=>(Ur.delegate||Date).now(),delegate:void 0};class Br extends lr.B{constructor(se=1/0,y=1/0,R=Ur){super(),this._bufferSize=se,this._windowTime=y,this._timestampProvider=R,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=y===1/0,this._bufferSize=Math.max(1,se),this._windowTime=Math.max(1,y)}next(se){const{isStopped:y,_buffer:R,_infiniteTimeWindow:A,_timestampProvider:W,_windowTime:Ne}=this;y||(R.push(se),!A&&R.push(W.now()+Ne)),this._trimBuffer(),super.next(se)}_subscribe(se){this._throwIfClosed(),this._trimBuffer();const y=this._innerSubscribe(se),{_infiniteTimeWindow:R,_buffer:A}=this,W=A.slice();for(let Ne=0;Ne<W.length&&!se.closed;Ne+=R?1:2)se.next(W[Ne]);return this._checkFinalizedStatuses(se),y}_trimBuffer(){const{_bufferSize:se,_timestampProvider:y,_buffer:R,_infiniteTimeWindow:A}=this,W=(A?1:2)*se;if(se<1/0&&W<R.length&&R.splice(0,R.length-W),!A){const Ne=y.now();let rt=0;for(let Ot=1;Ot<R.length&&R[Ot]<=Ne;Ot+=2)rt=Ot;rt&&R.splice(0,rt+1)}}}var P=b(3173),V=b(1524);function fe(N,se,...y){if(!0===se)return void N();if(!1===se)return;const R=new P.Ms({next:()=>{R.unsubscribe(),N()}});return(0,ji.Tg)(se(...y)).subscribe(R)}class Fe extends Si.yU{constructor(se,y){super()}schedule(se,y=0){return this}}const Le={setInterval(N,se,...y){const{delegate:R}=Le;return R?.setInterval?R.setInterval(N,se,...y):setInterval(N,se,...y)},clearInterval(N){const{delegate:se}=Le;return(se?.clearInterval||clearInterval)(N)},delegate:void 0};var vt=b(2070);class zt{constructor(se,y=zt.now){this.schedulerActionCtor=se,this.now=y}schedule(se,y=0,R){return new this.schedulerActionCtor(this,se).schedule(R,y)}}zt.now=Ur.now;const Gt=new class In extends zt{constructor(se,y=zt.now){super(se,y),this.actions=[],this._active=!1}flush(se){const{actions:y}=this;if(this._active)return void y.push(se);let R;this._active=!0;do{if(R=se.execute(se.state,se.delay))break}while(se=y.shift());if(this._active=!1,R){for(;se=y.shift();)se.unsubscribe();throw R}}}(class ot extends Fe{constructor(se,y){super(se,y),this.scheduler=se,this.work=y,this.pending=!1}schedule(se,y=0){var R;if(this.closed)return this;this.state=se;const A=this.id,W=this.scheduler;return null!=A&&(this.id=this.recycleAsyncId(W,A,y)),this.pending=!0,this.delay=y,this.id=null!==(R=this.id)&&void 0!==R?R:this.requestAsyncId(W,this.id,y),this}requestAsyncId(se,y,R=0){return Le.setInterval(se.flush.bind(se,this),R)}recycleAsyncId(se,y,R=0){if(null!=R&&this.delay===R&&!1===this.pending)return y;null!=y&&Le.clearInterval(y)}execute(se,y){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const R=this._execute(se,y);if(R)return R;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(se,y){let A,R=!1;try{this.work(se)}catch(W){R=!0,A=W||new Error("Scheduled action threw falsy error")}if(R)return this.unsubscribe(),A}unsubscribe(){if(!this.closed){const{id:se,scheduler:y}=this,{actions:R}=y;this.work=this.state=this.scheduler=null,this.pending=!1,(0,vt.o)(R,this),null!=se&&(this.id=this.recycleAsyncId(y,se,null)),this.delay=null,super.unsubscribe()}}});var Un=b(5510);function ct(N,se=Gt){return(0,V.N)((y,R)=>{let A=null,W=null,Ne=null;const rt=()=>{if(A){A.unsubscribe(),A=null;const fn=W;W=null,R.next(fn)}};function Ot(){const fn=Ne+N,Cn=se.now();if(Cn<fn)return A=this.schedule(void 0,fn-Cn),void R.add(A);rt()}y.subscribe((0,Un._)(R,fn=>{W=fn,Ne=se.now(),A||(A=se.schedule(Ot,N),R.add(A))},()=>{rt(),R.complete()},void 0,()=>{W=A=null}))})}const gt=[[["","above-quill-editor-toolbar",""]],[["","quill-editor-toolbar",""]],[["","below-quill-editor-toolbar",""]]],Ft=["[above-quill-editor-toolbar]","[quill-editor-toolbar]","[below-quill-editor-toolbar]"];function tn(N,se){1&N&&o.nrm(0,"div",0)}function dn(N,se){1&N&&o.nrm(0,"div",0)}const Kt=(N,se)=>N||se||"html";let Bn=(()=>{class N{constructor(y,R){var A=this;this.config=R,this.quill$=(0,Tn.v)((0,Se.A)(function*(){if(!A.Quill){const W=A.document.addEventListener;A.document.addEventListener=A.document.__zone_symbol__addEventListener||A.document.addEventListener;const Ne=yield b.e(256).then(b.bind(b,256));A.document.addEventListener=W,A.Quill=Ne.default?.default??Ne.default??Ne}return A.config.customOptions?.forEach(W=>{const Ne=A.Quill.import(W.import);Ne.whitelist=W.whitelist,A.Quill.register(Ne,!0,A.config.suppressGlobalRegisterWarning)}),yield A.registerCustomModules(A.Quill,A.config.customModules,A.config.suppressGlobalRegisterWarning)})).pipe(function ce(N,se,y){let R,A=!1;return N&&"object"==typeof N?({bufferSize:R=1/0,windowTime:se=1/0,refCount:A=!1,scheduler:y}=N):R=N??1/0,function j(N={}){const{connector:se=(()=>new lr.B),resetOnError:y=!0,resetOnComplete:R=!0,resetOnRefCountZero:A=!0}=N;return W=>{let Ne,rt,Ot,fn=0,Cn=!1,ur=!1;const Hn=()=>{rt?.unsubscribe(),rt=void 0},Pn=()=>{Hn(),Ne=Ot=void 0,Cn=ur=!1},Or=()=>{const Nr=Ne;Pn(),Nr?.unsubscribe()};return(0,V.N)((Nr,Fn)=>{fn++,!ur&&!Cn&&Hn();const Gn=Ot=Ot??se();Fn.add(()=>{fn--,0===fn&&!ur&&!Cn&&(rt=fe(Or,A))}),Gn.subscribe(Fn),!Ne&&fn>0&&(Ne=new P.Ms({next:ti=>Gn.next(ti),error:ti=>{ur=!0,Hn(),rt=fe(Pn,y,ti),Gn.error(ti)},complete:()=>{Cn=!0,Hn(),rt=fe(Pn,R),Gn.complete()}}),(0,ji.Tg)(Nr).subscribe(Ne))})(W)}}({connector:()=>new Br(R,se,y),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:A})}({bufferSize:1,refCount:!0})),this.document=y.get(h.qQ),this.config||(this.config={modules:Yr})}getQuill(){return this.quill$}registerCustomModules(y,R,A){return(0,Se.A)(function*(){if(Array.isArray(R))for(let{implementation:W,path:Ne}of R)(0,vr.A)(W)&&(W=yield(0,or._)(W)),y.register(Ne,W,A);return y})()}static{this.\u0275fac=function(R){return new(R||N)(o.KVO(o.zZn),o.KVO(Yn,8))}}static{this.\u0275prov=o.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}}return N})(),zn=(()=>{class N{constructor(){this.format=(0,o.hFB)(void 0),this.theme=(0,o.hFB)(void 0),this.modules=(0,o.hFB)(void 0),this.debug=(0,o.hFB)(!1),this.readOnly=(0,o.hFB)(!1),this.placeholder=(0,o.hFB)(void 0),this.maxLength=(0,o.hFB)(void 0),this.minLength=(0,o.hFB)(void 0),this.required=(0,o.hFB)(!1),this.formats=(0,o.hFB)(void 0),this.customToolbarPosition=(0,o.hFB)("top"),this.sanitize=(0,o.hFB)(!1),this.beforeRender=(0,o.hFB)(void 0),this.styles=(0,o.hFB)(null),this.registry=(0,o.hFB)(void 0),this.bounds=(0,o.hFB)(void 0),this.customOptions=(0,o.hFB)([]),this.customModules=(0,o.hFB)([]),this.trackChanges=(0,o.hFB)(void 0),this.classes=(0,o.hFB)(void 0),this.trimOnValidation=(0,o.hFB)(!1),this.linkPlaceholder=(0,o.hFB)(void 0),this.compareValues=(0,o.hFB)(!1),this.filterNull=(0,o.hFB)(!1),this.debounceTime=(0,o.hFB)(void 0),this.defaultEmptyValue=(0,o.hFB)(null),this.onEditorCreated=new o.bkB,this.onEditorChanged=new o.bkB,this.onContentChanged=new o.bkB,this.onSelectionChanged=new o.bkB,this.onFocus=new o.bkB,this.onBlur=new o.bkB,this.onNativeFocus=new o.bkB,this.onNativeBlur=new o.bkB,this.disabled=!1,this.toolbarPosition=(0,o.vPA)("top"),this.subscription=null,this.quillSubscription=null,this.elementRef=(0,o.WQX)(o.aKT),this.document=(0,o.WQX)(h.qQ),this.cd=(0,o.WQX)(o.gRc),this.domSanitizer=(0,o.WQX)(F.up),this.platformId=(0,o.WQX)(o.Agw),this.renderer=(0,o.WQX)(o.sFG),this.zone=(0,o.WQX)(o.SKi),this.service=(0,o.WQX)(Bn),this.destroyRef=(0,o.WQX)(o.abz),this.valueGetter=(0,o.hFB)(y=>{let R=y.getSemanticHTML();this.isEmptyValue(R)&&(R=this.defaultEmptyValue());let A=R;const W=Kt(this.format(),this.service.config.format);if("text"===W)A=y.getText();else if("object"===W)A=y.getContents();else if("json"===W)try{A=JSON.stringify(y.getContents())}catch{A=y.getText()}return A}),this.valueSetter=(0,o.hFB)((y,R)=>{const A=Kt(this.format(),this.service.config.format);if("html"===A)return([!0,!1].includes(this.sanitize())?this.sanitize():this.service.config.sanitize||!1)&&(R=this.domSanitizer.sanitize(o.WPN.HTML,R)),y.clipboard.convert({html:R});if("json"===A)try{return JSON.parse(R)}catch{return[{insert:R}]}return R}),this.selectionChangeHandler=(y,R,A)=>{const W=this.trackChanges()||this.service.config.trackChanges,Ne=!y&&!!this.onModelTouched&&("user"===A||W&&"all"===W);!this.onBlur.observed&&!this.onFocus.observed&&!this.onSelectionChanged.observed&&!Ne||this.zone.run(()=>{null===y?this.onBlur.emit({editor:this.quillEditor,source:A}):null===R&&this.onFocus.emit({editor:this.quillEditor,source:A}),this.onSelectionChanged.emit({editor:this.quillEditor,oldRange:R,range:y,source:A}),Ne&&this.onModelTouched(),this.cd.markForCheck()})},this.textChangeHandler=(y,R,A)=>{const W=this.quillEditor.getText(),Ne=this.quillEditor.getContents();let rt=this.quillEditor.getSemanticHTML();this.isEmptyValue(rt)&&(rt=this.defaultEmptyValue());const Ot=this.trackChanges()||this.service.config.trackChanges,fn=("user"===A||Ot&&"all"===Ot)&&!!this.onModelChange;!this.onContentChanged.observed&&!fn||this.zone.run(()=>{if(fn){const Cn=this.valueGetter();this.onModelChange(Cn(this.quillEditor))}this.onContentChanged.emit({content:Ne,delta:y,editor:this.quillEditor,html:rt,oldDelta:R,source:A,text:W}),this.cd.markForCheck()})},this.editorChangeHandler=(y,R,A,W)=>{if(this.onEditorChanged.observed)if("text-change"===y){const Ne=this.quillEditor.getText(),rt=this.quillEditor.getContents();let Ot=this.quillEditor.getSemanticHTML();this.isEmptyValue(Ot)&&(Ot=this.defaultEmptyValue()),this.zone.run(()=>{this.onEditorChanged.emit({content:rt,delta:R,editor:this.quillEditor,event:y,html:Ot,oldDelta:A,source:W,text:Ne}),this.cd.markForCheck()})}else this.zone.run(()=>{this.onEditorChanged.emit({editor:this.quillEditor,event:y,oldRange:A,range:R,source:W}),this.cd.markForCheck()})}}static normalizeClassNames(y){return y.trim().split(" ").reduce((A,W)=>{const Ne=W.trim();return Ne&&A.push(Ne),A},[])}ngOnInit(){this.toolbarPosition.set(this.customToolbarPosition())}ngAfterViewInit(){(0,h.Vy)(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe((0,Sn.Z)(y=>{const R=[this.service.registerCustomModules(y,this.customModules())],A=this.beforeRender()??this.service.config.beforeRender;return A&&R.push(A()),Promise.all(R).then(()=>y)})).subscribe(y=>{this.editorElem=this.elementRef.nativeElement.querySelector("[quill-editor-element]");const R=this.elementRef.nativeElement.querySelector("[quill-editor-toolbar]"),A=Object.assign({},this.modules()||this.service.config.modules);R?A.toolbar=R:void 0===A.toolbar&&(A.toolbar=Yr.toolbar);let W=void 0!==this.placeholder()?this.placeholder():this.service.config.placeholder;void 0===W&&(W="Insert text here ...");const Ne=this.styles();Ne&&Object.keys(Ne).forEach(Hn=>{this.renderer.setStyle(this.editorElem,Hn,Ne[Hn])}),this.classes()&&this.addClasses(this.classes()),this.customOptions().forEach(Hn=>{const Pn=y.import(Hn.import);Pn.whitelist=Hn.whitelist,y.register(Pn,!0)});let rt=this.bounds()&&"self"===this.bounds()?this.editorElem:this.bounds();rt||(rt=this.service.config.bounds?this.service.config.bounds:this.document.body);let Ot=this.debug();!Ot&&!1!==Ot&&this.service.config.debug&&(Ot=this.service.config.debug);let fn=this.readOnly();!fn&&!1!==this.readOnly()&&(fn=void 0!==this.service.config.readOnly&&this.service.config.readOnly);let Cn=this.defaultEmptyValue;this.service.config.hasOwnProperty("defaultEmptyValue")&&(Cn=this.service.config.defaultEmptyValue);let ur=this.formats();if(!ur&&void 0===ur&&(ur=this.service.config.formats?[...this.service.config.formats]:null===this.service.config.formats?null:void 0),this.zone.runOutsideAngular(()=>{if(this.quillEditor=new y(this.editorElem,{bounds:rt,debug:Ot,formats:ur,modules:A,placeholder:W,readOnly:fn,defaultEmptyValue:Cn,registry:this.registry(),theme:this.theme()||(this.service.config.theme?this.service.config.theme:"snow")}),this.onNativeBlur.observed&&(this.quillEditor.scroll.domNode.addEventListener("blur",()=>this.onNativeBlur.next({editor:this.quillEditor,source:"dom"})),this.quillEditor.getModule("toolbar").container?.addEventListener("mousedown",Pn=>Pn.preventDefault())),this.onNativeFocus.observed&&this.quillEditor.scroll.domNode.addEventListener("focus",()=>this.onNativeFocus.next({editor:this.quillEditor,source:"dom"})),this.linkPlaceholder()){const Pn=this.quillEditor?.theme?.tooltip?.root?.querySelector("input[data-link]");Pn?.dataset&&(Pn.dataset.link=this.linkPlaceholder())}}),this.content){if("text"===Kt(this.format(),this.service.config.format))this.quillEditor.setText(this.content,"silent");else{const Nr=this.valueSetter()(this.quillEditor,this.content);this.quillEditor.setContents(Nr,"silent")}this.quillEditor.getModule("history").clear()}this.setDisabledState(),this.addQuillEventListeners(),(this.onEditorCreated.observed||this.onValidatorChanged)&&new $.c(N=>{const se=requestAnimationFrame(()=>{N.next(),N.complete()});return()=>cancelAnimationFrame(se)}).pipe($e(this.destroyRef)).subscribe(()=>{this.onValidatorChanged&&this.onValidatorChanged(),this.onEditorCreated.emit(this.quillEditor)})}))}ngOnDestroy(){this.dispose(),this.quillSubscription?.unsubscribe(),this.quillSubscription=null}ngOnChanges(y){if(this.quillEditor){if(y.readOnly&&this.quillEditor.enable(!y.readOnly.currentValue),y.placeholder&&(this.quillEditor.root.dataset.placeholder=y.placeholder.currentValue),y.defaultEmptyValue&&(this.quillEditor.root.dataset.defaultEmptyValue=y.defaultEmptyValue.currentValue),y.styles){const R=y.styles.currentValue,A=y.styles.previousValue;A&&Object.keys(A).forEach(W=>{this.renderer.removeStyle(this.editorElem,W)}),R&&Object.keys(R).forEach(W=>{this.renderer.setStyle(this.editorElem,W,this.styles()[W])})}if(y.classes){const R=y.classes.currentValue,A=y.classes.previousValue;A&&this.removeClasses(A),R&&this.addClasses(R)}y.debounceTime&&this.addQuillEventListeners()}}addClasses(y){N.normalizeClassNames(y).forEach(R=>{this.renderer.addClass(this.editorElem,R)})}removeClasses(y){N.normalizeClassNames(y).forEach(R=>{this.renderer.removeClass(this.editorElem,R)})}writeValue(y){if(this.filterNull()&&null===y||(this.content=y,!this.quillEditor))return;const R=Kt(this.format(),this.service.config.format),W=this.valueSetter()(this.quillEditor,y);if(this.compareValues()){const Ne=this.quillEditor.getContents();if(JSON.stringify(Ne)===JSON.stringify(W))return}y?"text"===R?this.quillEditor.setText(y):this.quillEditor.setContents(W):this.quillEditor.setText("")}setDisabledState(y=this.disabled){this.disabled=y,this.quillEditor&&(y?(this.quillEditor.disable(),this.renderer.setAttribute(this.elementRef.nativeElement,"disabled","disabled")):(this.readOnly()||this.quillEditor.enable(),this.renderer.removeAttribute(this.elementRef.nativeElement,"disabled")))}registerOnChange(y){this.onModelChange=y}registerOnTouched(y){this.onModelTouched=y}registerOnValidatorChange(y){this.onValidatorChanged=y}validate(){if(!this.quillEditor)return null;const y={};let R=!0;const A=this.quillEditor.getText(),W=this.trimOnValidation()?A.trim().length:1===A.length&&0===A.trim().length?0:A.length-1,Ne=this.quillEditor.getContents().ops,rt=!!Ne&&1===Ne.length&&["\n",""].includes(Ne[0].insert?.toString());return this.minLength()&&W&&W<this.minLength()&&(y.minLengthError={given:W,minLength:this.minLength()},R=!1),this.maxLength()&&W>this.maxLength()&&(y.maxLengthError={given:W,maxLength:this.maxLength()},R=!1),this.required()&&!W&&rt&&(y.requiredError={empty:!0},R=!1),R?null:y}addQuillEventListeners(){this.dispose(),this.zone.runOutsideAngular(()=>{this.subscription=new Si.yU,this.subscription.add(It(this.quillEditor,"selection-change").subscribe(([A,W,Ne])=>{this.selectionChangeHandler(A,W,Ne)}));let y=It(this.quillEditor,"text-change"),R=It(this.quillEditor,"editor-change");"number"==typeof this.debounceTime()&&(y=y.pipe(ct(this.debounceTime())),R=R.pipe(ct(this.debounceTime()))),this.subscription.add(y.subscribe(([A,W,Ne])=>{this.textChangeHandler(A,W,Ne)})),this.subscription.add(R.subscribe(([A,W,Ne,rt])=>{this.editorChangeHandler(A,W,Ne,rt)}))})}dispose(){null!==this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}isEmptyValue(y){return"<p></p>"===y||"<div></div>"===y||"<p><br></p>"===y||"<div><br></div>"===y}static{this.\u0275fac=function(R){return new(R||N)}}static{this.\u0275dir=o.FsC({type:N,inputs:{format:[o.Mj6.SignalBased,"format"],theme:[o.Mj6.SignalBased,"theme"],modules:[o.Mj6.SignalBased,"modules"],debug:[o.Mj6.SignalBased,"debug"],readOnly:[o.Mj6.SignalBased,"readOnly"],placeholder:[o.Mj6.SignalBased,"placeholder"],maxLength:[o.Mj6.SignalBased,"maxLength"],minLength:[o.Mj6.SignalBased,"minLength"],required:[o.Mj6.SignalBased,"required"],formats:[o.Mj6.SignalBased,"formats"],customToolbarPosition:[o.Mj6.SignalBased,"customToolbarPosition"],sanitize:[o.Mj6.SignalBased,"sanitize"],beforeRender:[o.Mj6.SignalBased,"beforeRender"],styles:[o.Mj6.SignalBased,"styles"],registry:[o.Mj6.SignalBased,"registry"],bounds:[o.Mj6.SignalBased,"bounds"],customOptions:[o.Mj6.SignalBased,"customOptions"],customModules:[o.Mj6.SignalBased,"customModules"],trackChanges:[o.Mj6.SignalBased,"trackChanges"],classes:[o.Mj6.SignalBased,"classes"],trimOnValidation:[o.Mj6.SignalBased,"trimOnValidation"],linkPlaceholder:[o.Mj6.SignalBased,"linkPlaceholder"],compareValues:[o.Mj6.SignalBased,"compareValues"],filterNull:[o.Mj6.SignalBased,"filterNull"],debounceTime:[o.Mj6.SignalBased,"debounceTime"],defaultEmptyValue:[o.Mj6.SignalBased,"defaultEmptyValue"],valueGetter:[o.Mj6.SignalBased,"valueGetter"],valueSetter:[o.Mj6.SignalBased,"valueSetter"]},outputs:{onEditorCreated:"onEditorCreated",onEditorChanged:"onEditorChanged",onContentChanged:"onContentChanged",onSelectionChanged:"onSelectionChanged",onFocus:"onFocus",onBlur:"onBlur",onNativeFocus:"onNativeFocus",onNativeBlur:"onNativeBlur"},features:[o.OA$]})}}return N})(),ft=(()=>{class N extends zn{static{this.\u0275fac=(()=>{let y;return function(A){return(y||(y=o.xGo(N)))(A||N)}})()}static{this.\u0275cmp=o.VBU({type:N,selectors:[["quill-editor"]],standalone:!0,features:[o.Jv_([{multi:!0,provide:te.kq,useExisting:(0,o.Rfq)(()=>N)},{multi:!0,provide:te.cz,useExisting:(0,o.Rfq)(()=>N)}]),o.Vt3,o.aNF],ngContentSelectors:Ft,decls:5,vars:2,consts:[["quill-editor-element",""]],template:function(R,A){1&R&&(o.NAR(gt),o.DNE(0,tn,1,0,"div",0),o.SdG(1),o.SdG(2,1),o.SdG(3,2),o.DNE(4,dn,1,0,"div",0)),2&R&&(o.vxM(0,"top"!==A.toolbarPosition()?0:-1),o.R7$(4),o.vxM(4,"top"===A.toolbarPosition()?4:-1))},styles:["[_nghost-%COMP%]{display:inline-block}"]})}}return N})(),Cr=(()=>{class N{static forRoot(y){return{ngModule:N,providers:[{provide:Yn,useValue:y}]}}static{this.\u0275fac=function(R){return new(R||N)}}static{this.\u0275mod=o.$C({type:N})}static{this.\u0275inj=o.G2t({})}}return N})();const eo=N=>({"is-danger":N});let to=(()=>{class N{constructor(y){this.formBuilder=y,this.valueChanged=new o.bkB,this.modules={toolbar:[["bold","italic","underline","strike"],["link","blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{header:[1,2,3,4,5,6,!1]}]]}}ngOnInit(){this.form=this.formBuilder.group({editor:[this.value||""]}),this.form.valueChanges.subscribe(y=>{this.valueChanged.emit(y.editor)})}static{this.\u0275fac=function(R){return new(R||N)(o.rXU(te.ok))}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-rich-text-input"]],inputs:{prop:"prop",value:"value",isError:"isError"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.aNF],decls:5,vars:7,consts:[[3,"for"],[3,"formGroup"],[1,"control",3,"ngClass"],["placeholder","","formControlName","editor",3,"modules"]],template:function(R,A){1&R&&(o.j41(0,"label",0),o.EFF(1),o.k0s(),o.j41(2,"form",1)(3,"div",2),o.nrm(4,"quill-editor",3),o.k0s()()),2&R&&(o.Y8G("for",A.prop.name),o.R7$(),o.JRh(A.prop.name),o.R7$(),o.Y8G("formGroup",A.form),o.R7$(),o.Y8G("ngClass",o.eq3(5,eo,A.isError)),o.R7$(),o.Y8G("modules",A.modules))},dependencies:[h.YU,Cr,ft,te.X1,te.qT,te.BC,te.cb,te.j4,te.JD],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";.control[_ngcontent-%COMP%]{min-height:200px}']})}}return N})();function no(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-text-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function mi(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-rich-text-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function kt(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-number-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function vi(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-url-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function Ui(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-textarea-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function $n(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-select-input",7),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("relationship",y.relationship)("value",y.value)("isError",y.isError)}}function yi(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-multi-select-input",7),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("relationship",y.relationship)("value",y.value)("isError",y.isError)}}function ro(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-currency-input",8),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("currency",null==y.prop||null==y.prop.options?null:y.prop.options.currency)("isError",y.isError)}}function Wo(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-boolean-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function Jr(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-email-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function Ar(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-date-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function ei(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-timestamp-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function li(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-password-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function Ai(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-location-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function rr(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-file-input",9),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("entitySlug",y.entityManifest.slug)("value",y.value)("isError",y.isError)}}function $r(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-image-input",9),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("entitySlug",y.entityManifest.slug)("value",y.value)("isError",y.isError)}}function Dr(N,se){if(1&N&&(o.j41(0,"li",11),o.EFF(1),o.k0s()),2&N){const y=se.$implicit;o.R7$(),o.JRh(y)}}function Oi(N,se){if(1&N&&(o.j41(0,"ul"),o.DNE(1,Dr,2,1,"li",10),o.k0s()),2&N){const y=o.XpG();o.R7$(),o.Y8G("ngForOf",y.errors)}}function Er(N,se){if(1&N&&(o.j41(0,"p",12),o.EFF(1),o.k0s()),2&N){const y=o.XpG();o.R7$(),o.SpI(" ",y.helpText," ")}}let Hr=(()=>{class N{constructor(){this.valueChanged=new o.bkB,this.PropType=z.Kk}onChange(y){this.valueChanged.emit(y)}ngOnChanges(){this.isError=!!this.errors?.length,this.helpText=this.prop?.helpText||this.relationship?.helpText}static{this.\u0275fac=function(R){return new(R||N)}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-input"]],inputs:{prop:"prop",entityManifest:"entityManifest",relationship:"relationship",value:"value",errors:"errors"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.OA$,o.aNF],decls:18,vars:18,consts:[[3,"prop","value","isError","valueChanged",4,"ngIf"],[3,"prop","relationship","value","isError","valueChanged",4,"ngIf"],[3,"prop","value","currency","isError","valueChanged",4,"ngIf"],[3,"prop","entitySlug","value","isError","valueChanged",4,"ngIf"],[4,"ngIf"],["class","help",4,"ngIf"],[3,"valueChanged","prop","value","isError"],[3,"valueChanged","prop","relationship","value","isError"],[3,"valueChanged","prop","value","currency","isError"],[3,"valueChanged","prop","entitySlug","value","isError"],["class","has-text-danger",4,"ngFor","ngForOf"],[1,"has-text-danger"],[1,"help"]],template:function(R,A){1&R&&o.DNE(0,no,1,3,"app-text-input",0)(1,mi,1,3,"app-rich-text-input",0)(2,kt,1,3,"app-number-input",0)(3,vi,1,3,"app-url-input",0)(4,Ui,1,3,"app-textarea-input",0)(5,$n,1,4,"app-select-input",1)(6,yi,1,4,"app-multi-select-input",1)(7,ro,1,4,"app-currency-input",2)(8,Wo,1,3,"app-boolean-input",0)(9,Jr,1,3,"app-email-input",0)(10,Ar,1,3,"app-date-input",0)(11,ei,1,3,"app-timestamp-input",0)(12,li,1,3,"app-password-input",0)(13,Ai,1,3,"app-location-input",0)(14,rr,1,4,"app-file-input",3)(15,$r,1,4,"app-image-input",3)(16,Oi,2,1,"ul",4)(17,Er,2,1,"p",5),2&R&&(o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.String),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.RichText),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Number),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Link),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Text),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Choice||"many-to-one"===(null==A.relationship?null:A.relationship.type)),o.R7$(),o.Y8G("ngIf","many-to-many"===(null==A.relationship?null:A.relationship.type)),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Money),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Boolean),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Email),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Date),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Timestamp),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Password),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Location),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.File),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Image),o.R7$(),o.Y8G("ngIf",null==A.errors?null:A.errors.length),o.R7$(),o.Y8G("ngIf",A.helpText))},dependencies:[h.MD,h.Sq,h.bT,J,oe,Oe,_n,He,sn,Ke,Vn,ue,tt,cn,dt,bt,Yt,ai,to],encapsulation:2})}}return N})()},9e3:(Ze,de,b)=>{b.d(de,{X:()=>o});var h=b(8284);let o=(()=>{class z{transform(T){return typeof T>"u"||null===T||""===T?"":T[0].toUpperCase()+T.substr(1).toLowerCase()}static{this.\u0275fac=function(ge){return new(ge||z)}}static{this.\u0275pipe=h.EJ8({name:"capitalizeFirstLetter",type:z,pure:!0,standalone:!0})}}return z})()},818:(Ze,de,b)=>{b.d(de,{L:()=>z});var h=b(1087),o=b(8284);let z=(()=>{class X{constructor(){this.flashMessageTimeOut=5e3,this.flashMessage=new h.B}success(ge){this.flashMessage.next({message:ge,className:"notification is-success"}),this.clear()}error(ge){this.flashMessage.next({message:ge,className:"notification is-danger"}),this.clear()}warning(ge){this.flashMessage.next({message:ge,className:"notification is-warning"}),this.clear()}info(ge){this.flashMessage.next({message:ge,className:"notification is-info"}),this.clear()}clear(){setTimeout(()=>{this.flashMessage.next(null)},this.flashMessageTimeOut)}static{this.\u0275fac=function(J){return new(J||X)}}static{this.\u0275prov=o.jDH({token:X,factory:X.\u0275fac,providedIn:"root"})}}return X})()},2283:(Ze,de,b)=>{b.d(de,{x:()=>ve});var h=b(7431),o=b(8033),z=b(4534),X=b(8128),T=b(9606),ge=b(8284),J=b(7906),ye=b(5640);let ve=(()=>{class oe{constructor(he,Oe){this.authService=he,this.http=Oe,this.manifestPromise=null}getManifest(){return this.manifestPromise||(this.manifestPromise=(0,o._)(this.authService.currentUser$.pipe((0,z.p)(he=>!!he),(0,X.n)(()=>this.http.get(`${T.c.apiBaseUrl}/manifest`)))).catch(he=>{throw this.manifestPromise=null,he})),this.manifestPromise}getAppName(){var he=this;return(0,h.A)(function*(){return(0,o._)(he.http.get(`${T.c.apiBaseUrl}/manifest/app-name`)).then(Oe=>Oe.name).catch(Oe=>{throw Oe})})()}getEntityManifest(he){var Oe=this;return(0,h.A)(function*({slug:q,className:me}){if(!q&&!me)throw new Error("Either slug or className must be provided");return Oe.manifestPromise?Oe.manifestPromise.then(He=>Object.values(He.entities).find(Pe=>Pe.slug===q||Pe.className===me)):(0,o._)(Oe.http.get(`${T.c.apiBaseUrl}/manifest/entities/${q}`))}).apply(this,arguments)}static{this.\u0275fac=function(Oe){return new(Oe||oe)(ge.KVO(J.u),ge.KVO(ye.Qq))}}static{this.\u0275prov=ge.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"})}}return oe})()},9879:(Ze,de,b)=>{b.d(de,{R:()=>X});var h=b(8284),o=b(2283),z=b(7711);let X=(()=>{class T{constructor(J,ye){this.title=ye,this.appName="Manifest",J.getManifest().then(ve=>{this.appName=ve.name})}setTitle(J){this.title.setTitle(`${J} | ${this.appName}`)}static{this.\u0275fac=function(ye){return new(ye||T)(h.KVO(o.x),h.KVO(z.hE))}}static{this.\u0275prov=h.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})()},8023:(Ze,de,b)=>{b.d(de,{G:()=>ge});var h=b(2943),o=b(5640),z=b(8428),X=b(818),T=b(8284);let ge=(()=>{class J{static{this.\u0275fac=function(oe){return new(oe||J)}}static{this.\u0275mod=T.$C({type:J})}static{this.\u0275inj=T.G2t({providers:[X.L],imports:[h.MD,o.q1,z.S]})}}return J})()},4385:(Ze,de,b)=>{b.d(de,{Fr:()=>z,Xw:()=>o,il:()=>h});const h="manifestToken",o="Admin",z={email:"admin@manifest.build",password:"admin"}},9606:(Ze,de,b)=>{b.d(de,{c:()=>h});const h={production:!0,apiBaseUrl:"/api"}},6543:(Ze,de,b)=>{var h=b(7711),o=b(8284),z=b(2943),X=b(2816),T=b(3575),ge=b(6852),J=b(1467),ye=b(5640);const ve=new o.nKC("JWT_OPTIONS");let oe=(()=>{class Y{constructor(K=null){this.tokenGetter=K&&K.tokenGetter||function(){}}urlBase64Decode(K){let pe=K.replace(/-/g,"+").replace(/_/g,"/");switch(pe.length%4){case 0:break;case 2:pe+="==";break;case 3:pe+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(pe)}b64decode(K){let je="";if((K=String(K).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let nt,pt,Yt=0,Pt=0;pt=K.charAt(Pt++);~pt&&(nt=Yt%4?64*nt+pt:pt,Yt++%4)?je+=String.fromCharCode(255&nt>>(-2*Yt&6)):0)pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(pt);return je}b64DecodeUnicode(K){return decodeURIComponent(Array.prototype.map.call(this.b64decode(K),pe=>"%"+("00"+pe.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(K=this.tokenGetter()){return K instanceof Promise?K.then(pe=>this._decodeToken(pe)):this._decodeToken(K)}_decodeToken(K){if(!K||""===K)return null;const pe=K.split(".");if(3!==pe.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");const je=this.urlBase64Decode(pe[1]);if(!je)throw new Error("Cannot decode the token.");return JSON.parse(je)}getTokenExpirationDate(K=this.tokenGetter()){return K instanceof Promise?K.then(pe=>this._getTokenExpirationDate(pe)):this._getTokenExpirationDate(K)}_getTokenExpirationDate(K){let pe;if(pe=this.decodeToken(K),!pe||!pe.hasOwnProperty("exp"))return null;const je=new Date(0);return je.setUTCSeconds(pe.exp),je}isTokenExpired(K=this.tokenGetter(),pe){return K instanceof Promise?K.then(je=>this._isTokenExpired(je,pe)):this._isTokenExpired(K,pe)}_isTokenExpired(K,pe){if(!K||""===K)return!0;const je=this.getTokenExpirationDate(K);return pe=pe||0,null!==je&&!(je.valueOf()>(new Date).valueOf()+1e3*pe)}getAuthScheme(K,pe){return"function"==typeof K?K(pe):K}}return Y.\u0275fac=function(K){return new(K||Y)(o.KVO(ve))},Y.\u0275prov=o.jDH({token:Y,factory:Y.\u0275fac}),Y})();const Q=Y=>Y instanceof Promise?(0,ge.v)(()=>Y):(0,J.of)(Y);let he=(()=>{class Y{constructor(K,pe,je){this.jwtHelper=pe,this.document=je,this.standardPorts=["80","443"],this.tokenGetter=K.tokenGetter,this.headerName=K.headerName||"Authorization",this.authScheme=K.authScheme||""===K.authScheme?K.authScheme:"Bearer ",this.allowedDomains=K.allowedDomains||[],this.disallowedRoutes=K.disallowedRoutes||[],this.throwNoTokenError=K.throwNoTokenError||!1,this.skipWhenExpired=K.skipWhenExpired}isAllowedDomain(K){const pe=new URL(K.url,this.document.location.origin);if(pe.host===this.document.location.host)return!0;const je=`${pe.hostname}${pe.port&&!this.standardPorts.includes(pe.port)?":"+pe.port:""}`;return this.allowedDomains.findIndex(Yt=>"string"==typeof Yt?Yt===je:Yt instanceof RegExp&&Yt.test(je))>-1}isDisallowedRoute(K){const pe=new URL(K.url,this.document.location.origin);return this.disallowedRoutes.findIndex(je=>{if("string"==typeof je){const Yt=new URL(je,this.document.location.origin);return Yt.hostname===pe.hostname&&Yt.pathname===pe.pathname}return je instanceof RegExp&&je.test(K.url)})>-1}handleInterception(K,pe,je){const Yt=this.jwtHelper.getAuthScheme(this.authScheme,pe);if(!K&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");let nt=(0,J.of)(!1);return this.skipWhenExpired&&(nt=K?Q(this.jwtHelper.isTokenExpired(K)):(0,J.of)(!0)),K?nt.pipe((0,X.T)(pt=>pt&&this.skipWhenExpired?pe.clone():pe.clone({setHeaders:{[this.headerName]:`${Yt}${K}`}})),(0,T.Z)(pt=>je.handle(pt))):je.handle(pe)}intercept(K,pe){if(!this.isAllowedDomain(K)||this.isDisallowedRoute(K))return pe.handle(K);const je=this.tokenGetter(K);return Q(je).pipe((0,T.Z)(Yt=>this.handleInterception(Yt,K,pe)))}}return Y.\u0275fac=function(K){return new(K||Y)(o.KVO(ve),o.KVO(oe),o.KVO(z.qQ))},Y.\u0275prov=o.jDH({token:Y,factory:Y.\u0275fac}),Y})(),Oe=(()=>{class Y{constructor(K){if(K)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")}static forRoot(K){return{ngModule:Y,providers:[{provide:ye.a7,useClass:he,multi:!0},K.jwtOptionsProvider||{provide:ve,useValue:K.config},oe]}}}return Y.\u0275fac=function(K){return new(K||Y)(o.KVO(Y,12))},Y.\u0275mod=o.$C({type:Y}),Y.\u0275inj=o.G2t({}),Y})();var q=b(4385),me=b(183),He=b(818);let Pe=(()=>{class Y{constructor(K,pe){this.router=K,this.flashMessageService=pe}canActivate(){return!!localStorage.getItem(q.il)||(this.router.navigate(["/","auth","login"]),this.flashMessageService.info("You need to be logged in to access this page."),!1)}static{this.\u0275fac=function(pe){return new(pe||Y)(o.KVO(me.Ix),o.KVO(He.L))}}static{this.\u0275prov=o.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}}return Y})();var Ye=b(9879);let lt=(()=>{class Y{constructor(K){K.setTitle("Page not found")}static{this.\u0275fac=function(pe){return new(pe||Y)(o.rXU(Ye.R))}}static{this.\u0275cmp=o.VBU({type:Y,selectors:[["app-error404"]],decls:10,vars:0,consts:[[1,"wrapper--basic"],[1,"title","is-1"],[1,"is-size-5","mb-4"],["routerLink","/",1,"button","is-link","mt-3"]],template:function(pe,je){1&pe&&(o.j41(0,"div",0)(1,"span"),o.EFF(2,"404"),o.k0s(),o.j41(3,"h1",1),o.EFF(4,"Page not found"),o.k0s(),o.j41(5,"p",2),o.EFF(6," The page you are looking for doesn't exist or has been moved "),o.k0s(),o.j41(7,"p")(8,"a",3),o.EFF(9," Back to Homepage "),o.k0s()()())},dependencies:[me.Wk],styles:["span[_ngcontent-%COMP%]{font-size:11rem}"]})}}return Y})();var bt=b(2283),Se=b(9e3);const we=Y=>["/collections",Y],Ge=Y=>["/singles",Y,"edit"];function ze(Y,Dt){1&Y&&(o.j41(0,"div",0),o.nrm(1,"hr"),o.j41(2,"div",7)(3,"p",8),o.EFF(4," Resources "),o.k0s()(),o.j41(5,"div",9)(6,"a",10)(7,"div",11)(8,"div",12)(9,"article",13)(10,"figure",14)(11,"p",15),o.nrm(12,"img",16),o.k0s()(),o.j41(13,"div",17)(14,"div",3)(15,"p",18),o.EFF(16," Documentation "),o.k0s(),o.j41(17,"p"),o.EFF(18,"Find out how how to to play with Manifest"),o.k0s()()(),o.j41(19,"figure",19),o.nrm(20,"i",20),o.k0s()()()()()(),o.j41(21,"div",7)(22,"p",8),o.EFF(23," Feedback & Support "),o.k0s()(),o.j41(24,"div",9)(25,"a",21)(26,"div",11)(27,"div",12)(28,"article",13)(29,"figure",14)(30,"p",15),o.nrm(31,"img",22),o.k0s()(),o.j41(32,"div",17)(33,"div",3)(34,"p",18),o.EFF(35," We need you \u{1f64f} "),o.k0s(),o.j41(36,"p"),o.EFF(37,"Share your feedback and suggestions"),o.k0s()()(),o.j41(38,"figure",19),o.nrm(39,"i",20),o.k0s()()()()()(),o.j41(40,"div",9)(41,"a",23)(42,"div",11)(43,"div",12)(44,"article",13)(45,"figure",14)(46,"p",15),o.nrm(47,"img",24),o.k0s()(),o.j41(48,"div",17)(49,"div",3)(50,"p",18),o.EFF(51," Stuck ? "),o.k0s(),o.j41(52,"p"),o.EFF(53,"Get help from the community on our Discord"),o.k0s()()(),o.j41(54,"figure",19),o.nrm(55,"i",20),o.k0s()()()()()()())}function Ve(Y,Dt){if(1&Y&&(o.j41(0,"div",26)(1,"a",27)(2,"div",28)(3,"div",12)(4,"article",13)(5,"div",17)(6,"div",3)(7,"p",18)(8,"span"),o.EFF(9),o.nI1(10,"capitalizeFirstLetter"),o.k0s()()()(),o.j41(11,"figure",19),o.nrm(12,"i",20),o.k0s()()()()()()),2&Y){const K=Dt.$implicit;o.R7$(),o.Y8G("routerLink",o.eq3(4,we,K.slug)),o.R7$(8),o.JRh(o.bMT(10,2,K.namePlural))}}function Ue(Y,Dt){if(1&Y&&(o.j41(0,"div",0)(1,"div",7),o.nrm(2,"hr"),o.j41(3,"p",8),o.EFF(4," Start navigating through your collections "),o.k0s()(),o.DNE(5,Ve,13,6,"div",25),o.k0s()),2&Y){const K=o.XpG(2);o.R7$(5),o.Y8G("ngForOf",K.collections)}}function Qe(Y,Dt){if(1&Y&&(o.j41(0,"div",26)(1,"a",27)(2,"div",28)(3,"div",12)(4,"article",13)(5,"div",17)(6,"div",3)(7,"p",18)(8,"span"),o.EFF(9),o.nI1(10,"capitalizeFirstLetter"),o.k0s()()()(),o.j41(11,"figure",19),o.nrm(12,"i",20),o.k0s()()()()()()),2&Y){const K=Dt.$implicit;o.R7$(),o.Y8G("routerLink",o.eq3(4,Ge,K.slug)),o.R7$(8),o.JRh(o.bMT(10,2,K.nameSingular))}}function it(Y,Dt){if(1&Y&&(o.j41(0,"div",0)(1,"div",7),o.nrm(2,"hr"),o.j41(3,"p",8),o.EFF(4," Edit your single entities "),o.k0s()(),o.DNE(5,Qe,13,6,"div",25),o.k0s()),2&Y){const K=o.XpG(2);o.R7$(5),o.Y8G("ngForOf",K.singles)}}function Je(Y,Dt){if(1&Y&&(o.j41(0,"div",3)(1,"h1"),o.EFF(2),o.k0s(),o.j41(3,"p",4),o.EFF(4," Proudly built with "),o.j41(5,"a",5),o.EFF(6,"Manifest"),o.k0s(),o.EFF(7,". "),o.k0s(),o.j41(8,"div"),o.DNE(9,ze,56,0,"div",6)(10,Ue,6,1,"div",6)(11,it,6,1,"div",6),o.k0s()()),2&Y){const K=o.XpG();o.R7$(2),o.JRh(K.appManifest.name),o.R7$(7),o.Y8G("ngIf",!K.appManifest.production),o.R7$(),o.Y8G("ngIf",null==K.collections?null:K.collections.length),o.R7$(),o.Y8G("ngIf",null==K.singles?null:K.singles.length)}}const ke=[{path:"",component:(()=>{class Y{constructor(K,pe){this.manifestService=K,this.metaService=pe}ngOnInit(){this.manifestService.getManifest().then(K=>{this.appManifest=K,this.collections=Object.values(K.entities||{}).filter(pe=>pe.className!==q.Xw).filter(pe=>!pe.single).filter(pe=>!pe.nested),this.singles=Object.values(K.entities||{}).filter(pe=>pe.single),this.metaService.setTitle("Admin panel")})}static{this.\u0275fac=function(pe){return new(pe||Y)(o.rXU(bt.x),o.rXU(Ye.R))}}static{this.\u0275cmp=o.VBU({type:Y,selectors:[["app-home"]],decls:3,vars:1,consts:[[1,"columns","is-multiline"],[1,"column","is-10-tablet","is-offset-1-tablet","is-8-widescreen","is-offset-2-widescreen","is-6-fullhd","is-offset-3-fullhd"],["class","content",4,"ngIf"],[1,"content"],[1,"is-size-5"],["href","https://manifest.build","target","_blank"],["class","columns is-multiline",4,"ngIf"],[1,"column","is-12","pb-0"],[1,"is-uppercase","has-text-dark","has-text-weight-medium"],[1,"column","is-12"],["href","https://manifest.build/docs","target","_blank",1,"card-link"],[1,"card","p-0","is-overflow-hidden","is-shadowless","is-bordered"],[1,"card-content","p-0"],[1,"media","is-flex","is-align-items-center"],[1,"media-left","m-0"],[1,"image","is-64x64"],["src","/assets/images/ext-link-01.svg"],[1,"media-content","is-flex","is-align-items-center","is-justify-content-flex-start","pl-4","is-fullheight"],[1,"is-size-5","has-text-weight-bold","mb-0"],[1,"media-right","my-0","ml-1","mr-4","is-inline-flex","is-justify-content-center"],[1,"icon","icon-arrow-right"],["href","https://github.com/mnfst/manifest/discussions/categories/feedback","target","_blank",1,"card-link"],["src","/assets/images/ext-link-gh.svg"],["href","https://discord.com/invite/FepAked3W7","target","_blank",1,"card-link"],["src","/assets/images/ext-link-dc.svg"],["class","column is-6",4,"ngFor","ngForOf"],[1,"column","is-6"],["routerLinkActive","is-active",1,"card-link",3,"routerLink"],[1,"card","p-0","is-overflow-hidden","is-shadowless","is-bordered","is-entity-link"]],template:function(pe,je){1&pe&&(o.j41(0,"div",0)(1,"div",1),o.DNE(2,Je,12,4,"div",2),o.k0s()()),2&pe&&(o.R7$(2),o.Y8G("ngIf",je.appManifest))},dependencies:[z.Sq,z.bT,me.Wk,me.wQ,Se.X],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";.is-entity-link[_ngcontent-%COMP%]{height:64px;display:flex;align-items:center}.card-link[_ngcontent-%COMP%]{border-color:#dddde2;transition:border-color .54s cubic-bezier(.165,.84,.44,1)}.card-link[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{display:none}.card-link[_ngcontent-%COMP%]:hover .card[_ngcontent-%COMP%]{transition:border-color .54s cubic-bezier(.165,.84,.44,1);color:#000;border-color:#39393c}']})}}return Y})(),canActivate:[Pe]},{path:"auth",loadChildren:()=>Promise.resolve().then(b.bind(b,4783)).then(Y=>Y.AuthModule)},{path:"collections",loadChildren:()=>Promise.all([b.e(69),b.e(45)]).then(b.bind(b,4045)).then(Y=>Y.CrudCollectionModule),canActivate:[Pe],data:{mode:"collection"}},{path:"singles",loadChildren:()=>Promise.all([b.e(69),b.e(693)]).then(b.bind(b,8693)).then(Y=>Y.CrudSingleModule),canActivate:[Pe]},{path:"404",component:lt,canActivate:[Pe]},{path:"**",redirectTo:"/404"}];let yn=(()=>{class Y{static{this.\u0275fac=function(pe){return new(pe||Y)}}static{this.\u0275mod=o.$C({type:Y})}static{this.\u0275inj=o.G2t({imports:[me.iI.forRoot(ke),me.iI]})}}return Y})();var be=b(7906);function Ke(Y,Dt){if(1&Y&&(o.j41(0,"div",1)(1,"p",2),o.EFF(2),o.k0s()()),2&Y){const K=o.XpG();o.Y8G("ngClass",K.flashMessage.className),o.R7$(2),o.JRh(K.flashMessage.message)}}let mt=(()=>{class Y{constructor(K){this.flashMessageService=K}ngOnInit(){this.flashMessageService.flashMessage.subscribe(K=>{this.flashMessage=K})}static{this.\u0275fac=function(pe){return new(pe||Y)(o.rXU(He.L))}}static{this.\u0275cmp=o.VBU({type:Y,selectors:[["app-flash-message"]],decls:1,vars:1,consts:[["class","flash-messages notification",3,"ngClass",4,"ngIf"],[1,"flash-messages","notification",3,"ngClass"],[1,"is-size-5"]],template:function(pe,je){1&pe&&o.DNE(0,Ke,3,2,"div",0),2&pe&&o.Y8G("ngIf",je.flashMessage)},dependencies:[z.YU,z.bT]})}}return Y})();var Mt=b(4534);const Vn=Y=>({"is-active":Y});function ne(Y,Dt){if(1&Y&&(o.j41(0,"span",9)(1,"strong"),o.EFF(2),o.k0s()()),2&Y){const K=o.XpG();o.R7$(2),o.JRh(K.currentUser.email)}}let re=(()=>{class Y{constructor(K,pe){this.authService=K,this.elementRef=pe,this.showUserMenu=!1}ngOnInit(){this.authService.currentUser$.pipe((0,Mt.p)(K=>!!K)).subscribe(K=>{this.currentUser=K})}onClick(K){this.elementRef.nativeElement.contains(K)||(this.showUserMenu=!1)}static{this.\u0275fac=function(pe){return new(pe||Y)(o.rXU(be.u),o.rXU(o.aKT))}}static{this.\u0275cmp=o.VBU({type:Y,selectors:[["app-user-menu-item"]],hostBindings:function(pe,je){1&pe&&o.bIt("click",function(nt){return je.onClick(nt.target)},!1,o.EBC)},decls:10,vars:4,consts:[[1,"is-flex","is-align-items-center","is-justify-content-flex-start"],[1,"dropdown","is-up",3,"ngClass"],[1,"dropdown-trigger"],[1,"is-flex","is-align-items-center","is-justify-content-flex-start",3,"click"],["src","/assets/images/avatar-default.svg","title","currentUser.name","alt","currentUser.name",1,"avatar"],["class","dropdown-item pr-0",4,"ngIf"],["role","menu",1,"dropdown-menu","is-small"],[1,"dropdown-content"],["routerLink","/auth/logout",1,"dropdown-item",3,"click"],[1,"dropdown-item","pr-0"]],template:function(pe,je){1&pe&&(o.nrm(0,"div",0),o.j41(1,"div",1)(2,"div",2)(3,"a",3),o.bIt("click",function(){return je.showUserMenu=!je.showUserMenu}),o.nrm(4,"img",4),o.DNE(5,ne,3,1,"span",5),o.k0s()(),o.j41(6,"div",6)(7,"div",7)(8,"a",8),o.bIt("click",function(){return je.showUserMenu=!1}),o.EFF(9," Sign out "),o.k0s()()()()),2&pe&&(o.R7$(),o.Y8G("ngClass",o.eq3(2,Vn,je.showUserMenu)),o.R7$(4),o.Y8G("ngIf",je.currentUser))},dependencies:[z.YU,z.bT,me.Wk],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";.dropdown-trigger[_ngcontent-%COMP%]{max-width:100%;min-width:100%}@media screen and (max-width: 1023px){.dropdown-trigger[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{width:100%;height:100%;display:inline-flex;box-sizing:content-box;align-items:center;justify-content:center;margin-right:32px}}@media screen and (max-width: 767px){.dropdown-trigger[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{margin-right:30px}}.dropdown[_ngcontent-%COMP%]{max-width:100%;min-width:100%}.dropdown-item[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;width:100%;overflow:hidden}.avatar[_ngcontent-%COMP%]{border-radius:6px}']})}}return Y})();const ue=Y=>["/singles",Y],te=Y=>["/collections",Y];function Me(Y,Dt){if(1&Y&&(o.j41(0,"li")(1,"a",13)(2,"span"),o.EFF(3),o.nI1(4,"capitalizeFirstLetter"),o.k0s()()()),2&Y){const K=Dt.$implicit;o.R7$(),o.Y8G("routerLink",o.eq3(4,ue,K.slug)),o.R7$(2),o.JRh(o.bMT(4,2,K.nameSingular))}}function Te(Y,Dt){if(1&Y&&(o.qex(0),o.DNE(1,Me,5,6,"li",12),o.nrm(2,"hr"),o.bVm()),2&Y){const K=o.XpG();o.R7$(),o.Y8G("ngForOf",K.singles)}}function tt(Y,Dt){1&Y&&o.nrm(0,"i",15)}function Rt(Y,Dt){1&Y&&o.nrm(0,"i",16)}function Jt(Y,Dt){if(1&Y&&(o.j41(0,"li")(1,"a",13)(2,"span"),o.EFF(3),o.nI1(4,"capitalizeFirstLetter"),o.k0s()()()),2&Y){const K=Dt.$implicit;o.R7$(),o.Y8G("routerLink",o.eq3(4,te,K.slug)),o.R7$(2),o.JRh(o.bMT(4,2,K.namePlural))}}function dt(Y,Dt){1&Y&&(o.j41(0,"li")(1,"a",17)(2,"span"),o.EFF(3,"No collection yet"),o.k0s()()())}function Ut(Y,Dt){if(1&Y&&(o.j41(0,"ul"),o.DNE(1,Jt,5,6,"li",12)(2,dt,4,0,"li",5),o.k0s()),2&Y){const K=o.XpG(2);o.R7$(),o.Y8G("ngForOf",K.collections),o.R7$(),o.Y8G("ngIf",0===K.collections.length)}}function Xe(Y,Dt){if(1&Y){const K=o.RV6();o.j41(0,"li")(1,"a",6),o.bIt("click",function(){o.eBV(K);const je=o.XpG();return o.Njj(je.isCollectionsOpen=!je.isCollectionsOpen)}),o.j41(2,"span",7),o.nrm(3,"i",14),o.j41(4,"span",9),o.EFF(5,"Collections"),o.k0s()(),o.DNE(6,tt,1,0,"i",10)(7,Rt,1,0,"i",11),o.k0s(),o.DNE(8,Ut,3,2,"ul",5),o.k0s()}if(2&Y){const K=o.XpG();o.R7$(6),o.Y8G("ngIf",!K.isCollectionsOpen),o.R7$(),o.Y8G("ngIf",K.isCollectionsOpen),o.R7$(),o.Y8G("ngIf",K.isCollectionsOpen)}}function cn(Y,Dt){1&Y&&o.nrm(0,"i",15)}function Bt(Y,Dt){1&Y&&o.nrm(0,"i",16)}function xt(Y,Dt){1&Y&&(o.j41(0,"ul")(1,"li")(2,"a",18),o.EFF(3,"Admins"),o.k0s()()())}let sn=(()=>{class Y{constructor(K){this.manifestService=K,this.isCollectionsOpen=!1,this.isSettingsOpen=!1}ngOnInit(){this.manifestService.getManifest().then(K=>{this.collections=Object.values(K.entities||{}).filter(pe=>pe.className!==q.Xw).filter(pe=>!pe.single).filter(pe=>!pe.nested),this.singles=Object.values(K.entities||{}).filter(pe=>pe.single)})}static{this.\u0275fac=function(pe){return new(pe||Y)(o.rXU(bt.x))}}static{this.\u0275cmp=o.VBU({type:Y,selectors:[["app-side-menu"]],decls:18,vars:5,consts:[[1,"side-menu-wrapper","is-flex","is-flex-direction-column","is-justify-content-space-between"],[1,"logo-wrapper","is-hidden-touch"],["routerLink","/",1,"logo"],["src","/assets/images/logo.svg","width","155",1,"logo--image"],[1,"menu-list"],[4,"ngIf"],[1,"has-submenu","is-flex","is-justify-content-space-between",3,"click"],[1,"is-inline-flex","is-align-items-center","is-justify-content-space-between"],[1,"icon","mr-2","icon-sliders","is-size-4"],[1,"pl-1"],["class","icon icon-chevron-down",4,"ngIf"],["class","icon icon-chevron-up",4,"ngIf"],[4,"ngFor","ngForOf"],["routerLinkActive","is-active",3,"routerLink"],[1,"icon","mr-2","icon-database","is-size-4"],[1,"icon","icon-chevron-down"],[1,"icon","icon-chevron-up"],[1,"has-background-white-bis","has-text-grey",2,"pointer-events","none"],["routerLink","/collections/admins"]],template:function(pe,je){1&pe&&(o.j41(0,"div",0)(1,"div",1)(2,"a",2),o.nrm(3,"img",3),o.k0s()(),o.j41(4,"ul",4),o.DNE(5,Te,3,1,"ng-container",5)(6,Xe,9,3,"li",5),o.nrm(7,"hr"),o.j41(8,"li")(9,"a",6),o.bIt("click",function(){return je.isSettingsOpen=!je.isSettingsOpen}),o.j41(10,"span",7),o.nrm(11,"i",8),o.j41(12,"span",9),o.EFF(13,"Settings"),o.k0s()(),o.DNE(14,cn,1,0,"i",10)(15,Bt,1,0,"i",11),o.k0s(),o.DNE(16,xt,4,0,"ul",5),o.k0s()(),o.nrm(17,"app-user-menu-item"),o.k0s()),2&pe&&(o.R7$(5),o.Y8G("ngIf",null==je.singles?null:je.singles.length),o.R7$(),o.Y8G("ngIf",je.collections),o.R7$(8),o.Y8G("ngIf",!je.isSettingsOpen),o.R7$(),o.Y8G("ngIf",je.isSettingsOpen),o.R7$(),o.Y8G("ngIf",je.isSettingsOpen))},dependencies:[z.Sq,z.bT,me.Wk,me.wQ,re,Se.X],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";.menu-list[_ngcontent-%COMP%] a.is-active[_ngcontent-%COMP%], .menu-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:#f5f7f9;color:#000}.menu-list[_ngcontent-%COMP%]{--logo-height: 94px;--footer-height: 54px;--margin: 16px;scrollbar-width:none;padding-top:var(--margin);padding-bottom:var(--margin);margin-bottom:var(--footer-height);overflow-y:overlay;overflow-x:hidden}@media screen and (min-width: 1024px){.menu-list[_ngcontent-%COMP%]{height:calc(100vh - var(--logo-height) - var(--footer-height) + 1px - 220px)}}@media screen and (max-width: 1023px){.menu-list[_ngcontent-%COMP%]{height:calc(100vh - 8rem - var(--footer-height) + 1px - 220px)}}.menu-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;display:inline-block;width:100%;font-size:1.5rem;padding:1px 8px}.menu-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:5px 0 0;border-left:0;padding-left:0}.menu-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:0}.menu-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-radius:6px;position:relative;color:#303032;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;align-items:center;justify-content:flex-start;width:100%;min-height:36px;line-height:36px;padding:0 16px;transition:color .35s ease,background-color .05s ease-out}.menu-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{transition:color .35s ease,background-color .05s ease-in}.menu-list[_ngcontent-%COMP%] a.is-active[_ngcontent-%COMP%]:before{background-color:#39393c}.menu-list[_ngcontent-%COMP%] a.logo[_ngcontent-%COMP%]{display:flex;align-items:center;height:98px;justify-content:flex-start}.logo-wrapper[_ngcontent-%COMP%]{padding:1.6rem;border-bottom:1px solid #eaeaef}.flex[_ngcontent-%COMP%]{display:flex}app-user-menu-item[_ngcontent-%COMP%]{border-top:1px solid #eaeaef;border-right:1px solid #eaeaef;z-index:99;padding:8px}@media screen and (min-width: 769px),print{app-user-menu-item[_ngcontent-%COMP%]{position:fixed;bottom:0}}.side-menu-wrapper[_ngcontent-%COMP%]{height:100%}']})}}return Y})();const Re=Y=>({"is-open":Y});let _t=(()=>{class Y{constructor(K,pe){this.renderer=K,this.isOpen=!1,pe.events.subscribe(je=>{je instanceof me.wF&&(this.isOpen=!1)})}toggleMenu(){this.isOpen?(this.isOpen=!1,this.renderer.removeClass(document.querySelector("html"),"is-clipped")):(this.isOpen=!0,this.renderer.addClass(document.querySelector("html"),"is-clipped"))}static{this.\u0275fac=function(pe){return new(pe||Y)(o.rXU(o.sFG),o.rXU(me.Ix))}}static{this.\u0275cmp=o.VBU({type:Y,selectors:[["app-touch-menu"]],decls:12,vars:3,consts:[["role","navigation","aria-label","main navigation",1,"navbar",3,"ngClass"],[1,"navbar-wrapper","is-flex","is-align-items-center","is-justify-content-space-between","is-flex-direction-row-reverse","is-fullheight"],["routerLink","/",1,"logo","is-flex","is-align-items-center","is-justify-content-center","px-0"],["src","/assets/images/logo.svg","width","180",1,"logo-image"],["role","button",1,"navbar-burger","burger","ml-0",3,"click"],["aria-hidden","true"],[1,"hiding-layer",3,"click"],["id","create-dropdown",1,"navbar-menu"],[1,"navbar-end"]],template:function(pe,je){1&pe&&(o.j41(0,"nav",0)(1,"div",1)(2,"a",2),o.nrm(3,"img",3),o.k0s(),o.j41(4,"a",4),o.bIt("click",function(){return je.toggleMenu()}),o.nrm(5,"span",5)(6,"span",5)(7,"span",5),o.k0s()(),o.j41(8,"div",6),o.bIt("click",function(){return je.toggleMenu()}),o.k0s(),o.j41(9,"div",7)(10,"div",8),o.nrm(11,"app-side-menu"),o.k0s()()()),2&pe&&o.Y8G("ngClass",o.eq3(1,Re,je.isOpen))},dependencies:[z.YU,me.Wk,sn],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";nav.navbar[_ngcontent-%COMP%]{position:relative;z-index:9;height:8rem;width:100vw;background-color:#fff}nav.navbar[_ngcontent-%COMP%]:before{position:absolute;content:"";top:0;z-index:-1;height:100%;width:100%;border-bottom:1px solid rgba(48,48,50,.1)}@media screen and (min-width: 769px),print{nav.navbar[_ngcontent-%COMP%]:before{left:0;width:100%}}nav.navbar[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{margin-right:8rem}nav.navbar[_ngcontent-%COMP%] .navbar-burger[_ngcontent-%COMP%]{height:8rem;width:8rem;min-width:8rem;color:#303032}@media screen and (min-width: 769px),print{nav.navbar[_ngcontent-%COMP%] .navbar-burger[_ngcontent-%COMP%]{width:8rem}}nav.navbar[_ngcontent-%COMP%] .navbar-burger[_ngcontent-%COMP%]:hover{background-color:transparent;color:#303032}.navbar-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:unset}.buttons[_ngcontent-%COMP%]{padding-right:110px}.dropdown-menu.is-small[_ngcontent-%COMP%]{border:1px solid #eaeaef}.navbar-menu[_ngcontent-%COMP%]{display:block;height:calc(100vh - 8rem);width:260px;position:absolute;top:8rem;left:-261px;z-index:99999;opacity:0;box-shadow:1px 0 #ffffff1a;padding-bottom:0;background-color:#fff;transition:all .16s cubic-bezier(.53,.25,.75,.5)}@media screen and (max-width: 768px){.navbar-menu[_ngcontent-%COMP%]{width:100vw;left:-100vw}}.is-open[_ngcontent-%COMP%] .navbar-menu[_ngcontent-%COMP%]{left:0;opacity:1;transition:all .16s cubic-bezier(.25,.53,.42,.71)}.navbar-end[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;justify-content:space-between}.hiding-layer[_ngcontent-%COMP%]{display:block;position:absolute;top:8rem;left:0;width:100vw;opacity:0;z-index:9999;visibility:hidden;height:calc(100vh - 8rem);background:#303032;transition:opacity .16s ease-in-out,visibility .01s linear .16s}.is-open[_ngcontent-%COMP%] .hiding-layer[_ngcontent-%COMP%]{opacity:.2;visibility:visible;transition:opacity .16s ease-in-out .01s,visibility .01s linear}app-side-menu[_ngcontent-%COMP%]{height:100%}']})}}return Y})();function _n(Y,Dt){1&Y&&(o.qex(0),o.nrm(1,"app-touch-menu",5),o.bVm())}function or(Y,Dt){1&Y&&(o.j41(0,"aside",6),o.nrm(1,"app-side-menu"),o.k0s())}let kr=(()=>{class Y{constructor(K,pe){this.authService=K,this.router=pe,this.isLogin=!0}ngOnInit(){this.router.events.subscribe(K=>{K instanceof me.wF&&(window.scrollTo(0,0),this.isLogin=K.url.includes("/auth/login")||K.url.includes("/auth/welcome"),this.currentUserSubscription=this.authService.currentUser$.subscribe(pe=>{!pe&&localStorage.getItem(q.il)&&this.authService.loadCurrentUser().subscribe()}))})}ngOnDestroy(){this.currentUserSubscription&&this.currentUserSubscription.unsubscribe()}static{this.\u0275fac=function(pe){return new(pe||Y)(o.rXU(be.u),o.rXU(me.Ix))}}static{this.\u0275cmp=o.VBU({type:Y,selectors:[["app-root"]],decls:8,vars:2,consts:[[4,"ngIf"],[1,"wrapper"],[1,"columns"],["class","column aside menu px-0 is-hidden-touch",4,"ngIf"],[1,"column","main"],[1,"is-hidden-desktop"],[1,"column","aside","menu","px-0","is-hidden-touch"]],template:function(pe,je){1&pe&&(o.DNE(0,_n,2,0,"ng-container",0),o.nrm(1,"app-flash-message"),o.j41(2,"div",1)(3,"div",2),o.DNE(4,or,2,0,"aside",3),o.j41(5,"div",4)(6,"main"),o.nrm(7,"router-outlet"),o.k0s()()()()),2&pe&&(o.Y8G("ngIf",!je.isLogin),o.R7$(4),o.Y8G("ngIf",!je.isLogin))},dependencies:[z.bT,me.n3,mt,sn,_t],encapsulation:2})}}return Y})();var mr=b(4783),Nn=b(8023);let ht=(()=>{class Y{static{this.\u0275fac=function(pe){return new(pe||Y)}}static{this.\u0275mod=o.$C({type:Y})}static{this.\u0275inj=o.G2t({imports:[z.MD,me.iI,Nn.G]})}}return Y})(),Ct=(()=>{class Y{static{this.\u0275fac=function(pe){return new(pe||Y)}}static{this.\u0275mod=o.$C({type:Y,bootstrap:[kr]})}static{this.\u0275inj=o.G2t({imports:[h.Bb,Oe.forRoot({config:{tokenGetter:()=>localStorage.getItem(q.il),allowedDomains:["localhost:1111"]}}),yn,Nn.G,ht,mr.AuthModule]})}}return Y})();h.sG().bootstrapModule(Ct).catch(Y=>console.error(Y))},7563:(Ze,de,b)=>{function J(q){if(q.nested)return q.name;if("many-to-one"===q?.type)return q.name+"Id";if("many-to-many"===q?.type)return q.name.endsWith("s")?q.name.slice(0,-1)+"Ids":q.name+"Id";throw new Error("Unknown relationship")}function oe(q){return Object.keys(q).reduce((me,He)=>{const Pe=q?.[He],Ye=q?.[me];return void 0!==Pe?.width&&void 0!==Ye?.width&&Pe.width<Ye.width?He:me})}b.d(de,{yk:()=>J,Gj:()=>oe}),b(5442)},5442:(Ze,de,b)=>{b.d(de,{Kk:()=>h});var h=function(T){return T.String="string",T.Text="text",T.RichText="richText",T.Number="number",T.Link="link",T.Money="money",T.Date="date",T.Timestamp="timestamp",T.Email="email",T.Boolean="boolean",T.Password="password",T.Choice="choice",T.Location="location",T.File="file",T.Image="image",T.Nested="group",T}(h||{})},2410:(Ze,de,b)=>{b.d(de,{t:()=>o});var h=b(1087);class o extends h.B{constructor(X){super(),this._value=X}get value(){return this.getValue()}_subscribe(X){const T=super._subscribe(X);return!T.closed&&X.next(this._value),T}getValue(){const{hasError:X,thrownError:T,_value:ge}=this;if(X)throw T;return this._throwIfClosed(),ge}next(X){super.next(this._value=X)}}},7787:(Ze,de,b)=>{b.d(de,{c:()=>ye});var h=b(3173),o=b(7233),z=b(1852),X=b(9493),T=b(2904),ge=b(2097),J=b(7112);let ye=(()=>{class he{constructor(q){q&&(this._subscribe=q)}lift(q){const me=new he;return me.source=this,me.operator=q,me}subscribe(q,me,He){const Pe=function Q(he){return he&&he instanceof h.vU||function oe(he){return he&&(0,ge.T)(he.next)&&(0,ge.T)(he.error)&&(0,ge.T)(he.complete)}(he)&&(0,o.Uv)(he)}(q)?q:new h.Ms(q,me,He);return(0,J.Y)(()=>{const{operator:Ye,source:lt}=this;Pe.add(Ye?Ye.call(Pe,lt):lt?this._subscribe(Pe):this._trySubscribe(Pe))}),Pe}_trySubscribe(q){try{return this._subscribe(q)}catch(me){q.error(me)}}forEach(q,me){return new(me=ve(me))((He,Pe)=>{const Ye=new h.Ms({next:lt=>{try{q(lt)}catch(bt){Pe(bt),Ye.unsubscribe()}},error:Pe,complete:He});this.subscribe(Ye)})}_subscribe(q){var me;return null===(me=this.source)||void 0===me?void 0:me.subscribe(q)}[z.s](){return this}pipe(...q){return(0,X.m)(q)(this)}toPromise(q){return new(q=ve(q))((me,He)=>{let Pe;this.subscribe(Ye=>Pe=Ye,Ye=>He(Ye),()=>me(Pe))})}}return he.create=Oe=>new he(Oe),he})();function ve(he){var Oe;return null!==(Oe=he??T.$.Promise)&&void 0!==Oe?Oe:Promise}},1087:(Ze,de,b)=>{b.d(de,{B:()=>J});var h=b(7787),o=b(7233);const X=(0,b(1531).L)(ve=>function(){ve(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var T=b(2070),ge=b(7112);let J=(()=>{class ve extends h.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Q){const he=new ye(this,this);return he.operator=Q,he}_throwIfClosed(){if(this.closed)throw new X}next(Q){(0,ge.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const he of this.currentObservers)he.next(Q)}})}error(Q){(0,ge.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Q;const{observers:he}=this;for(;he.length;)he.shift().error(Q)}})}complete(){(0,ge.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Q}=this;for(;Q.length;)Q.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Q;return(null===(Q=this.observers)||void 0===Q?void 0:Q.length)>0}_trySubscribe(Q){return this._throwIfClosed(),super._trySubscribe(Q)}_subscribe(Q){return this._throwIfClosed(),this._checkFinalizedStatuses(Q),this._innerSubscribe(Q)}_innerSubscribe(Q){const{hasError:he,isStopped:Oe,observers:q}=this;return he||Oe?o.Kn:(this.currentObservers=null,q.push(Q),new o.yU(()=>{this.currentObservers=null,(0,T.o)(q,Q)}))}_checkFinalizedStatuses(Q){const{hasError:he,thrownError:Oe,isStopped:q}=this;he?Q.error(Oe):q&&Q.complete()}asObservable(){const Q=new h.c;return Q.source=this,Q}}return ve.create=(oe,Q)=>new ye(oe,Q),ve})();class ye extends J{constructor(oe,Q){super(),this.destination=oe,this.source=Q}next(oe){var Q,he;null===(he=null===(Q=this.destination)||void 0===Q?void 0:Q.next)||void 0===he||he.call(Q,oe)}error(oe){var Q,he;null===(he=null===(Q=this.destination)||void 0===Q?void 0:Q.error)||void 0===he||he.call(Q,oe)}complete(){var oe,Q;null===(Q=null===(oe=this.destination)||void 0===oe?void 0:oe.complete)||void 0===Q||Q.call(oe)}_subscribe(oe){var Q,he;return null!==(he=null===(Q=this.source)||void 0===Q?void 0:Q.subscribe(oe))&&void 0!==he?he:o.Kn}}},3173:(Ze,de,b)=>{b.d(de,{Ms:()=>He,vU:()=>he});var h=b(2097),o=b(7233),z=b(2904),X=b(8508),T=b(9405);const ge=ve("C",void 0,void 0);function ve(Se,we,Ge){return{kind:Se,value:we,error:Ge}}var oe=b(7680),Q=b(7112);class he extends o.yU{constructor(we){super(),this.isStopped=!1,we?(this.destination=we,(0,o.Uv)(we)&&we.add(this)):this.destination=bt}static create(we,Ge,ze){return new He(we,Ge,ze)}next(we){this.isStopped?lt(function ye(Se){return ve("N",Se,void 0)}(we),this):this._next(we)}error(we){this.isStopped?lt(function J(Se){return ve("E",void 0,Se)}(we),this):(this.isStopped=!0,this._error(we))}complete(){this.isStopped?lt(ge,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(we){this.destination.next(we)}_error(we){try{this.destination.error(we)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Oe=Function.prototype.bind;function q(Se,we){return Oe.call(Se,we)}class me{constructor(we){this.partialObserver=we}next(we){const{partialObserver:Ge}=this;if(Ge.next)try{Ge.next(we)}catch(ze){Pe(ze)}}error(we){const{partialObserver:Ge}=this;if(Ge.error)try{Ge.error(we)}catch(ze){Pe(ze)}else Pe(we)}complete(){const{partialObserver:we}=this;if(we.complete)try{we.complete()}catch(Ge){Pe(Ge)}}}class He extends he{constructor(we,Ge,ze){let Ve;if(super(),(0,h.T)(we)||!we)Ve={next:we??void 0,error:Ge??void 0,complete:ze??void 0};else{let Ue;this&&z.$.useDeprecatedNextContext?(Ue=Object.create(we),Ue.unsubscribe=()=>this.unsubscribe(),Ve={next:we.next&&q(we.next,Ue),error:we.error&&q(we.error,Ue),complete:we.complete&&q(we.complete,Ue)}):Ve=we}this.destination=new me(Ve)}}function Pe(Se){z.$.useDeprecatedSynchronousErrorHandling?(0,Q.l)(Se):(0,X.m)(Se)}function lt(Se,we){const{onStoppedNotification:Ge}=z.$;Ge&&oe.f.setTimeout(()=>Ge(Se,we))}const bt={closed:!0,next:T.l,error:function Ye(Se){throw Se},complete:T.l}},7233:(Ze,de,b)=>{b.d(de,{Kn:()=>ge,yU:()=>T,Uv:()=>J});var h=b(2097);const z=(0,b(1531).L)(ve=>function(Q){ve(this),this.message=Q?`${Q.length} errors occurred during unsubscription:\n${Q.map((he,Oe)=>`${Oe+1}) ${he.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Q});var X=b(2070);class T{constructor(oe){this.initialTeardown=oe,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let oe;if(!this.closed){this.closed=!0;const{_parentage:Q}=this;if(Q)if(this._parentage=null,Array.isArray(Q))for(const q of Q)q.remove(this);else Q.remove(this);const{initialTeardown:he}=this;if((0,h.T)(he))try{he()}catch(q){oe=q instanceof z?q.errors:[q]}const{_finalizers:Oe}=this;if(Oe){this._finalizers=null;for(const q of Oe)try{ye(q)}catch(me){oe=oe??[],me instanceof z?oe=[...oe,...me.errors]:oe.push(me)}}if(oe)throw new z(oe)}}add(oe){var Q;if(oe&&oe!==this)if(this.closed)ye(oe);else{if(oe instanceof T){if(oe.closed||oe._hasParent(this))return;oe._addParent(this)}(this._finalizers=null!==(Q=this._finalizers)&&void 0!==Q?Q:[]).push(oe)}}_hasParent(oe){const{_parentage:Q}=this;return Q===oe||Array.isArray(Q)&&Q.includes(oe)}_addParent(oe){const{_parentage:Q}=this;this._parentage=Array.isArray(Q)?(Q.push(oe),Q):Q?[Q,oe]:oe}_removeParent(oe){const{_parentage:Q}=this;Q===oe?this._parentage=null:Array.isArray(Q)&&(0,X.o)(Q,oe)}remove(oe){const{_finalizers:Q}=this;Q&&(0,X.o)(Q,oe),oe instanceof T&&oe._removeParent(this)}}T.EMPTY=(()=>{const ve=new T;return ve.closed=!0,ve})();const ge=T.EMPTY;function J(ve){return ve instanceof T||ve&&"closed"in ve&&(0,h.T)(ve.remove)&&(0,h.T)(ve.add)&&(0,h.T)(ve.unsubscribe)}function ye(ve){(0,h.T)(ve)?ve():ve.unsubscribe()}},2904:(Ze,de,b)=>{b.d(de,{$:()=>h});const h={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},8033:(Ze,de,b)=>{b.d(de,{_:()=>z});var h=b(4392),o=b(3173);function z(X,T){const ge="object"==typeof T;return new Promise((J,ye)=>{const ve=new o.Ms({next:oe=>{J(oe),ve.unsubscribe()},error:ye,complete:()=>{ge?J(T.defaultValue):ye(new h.G)}});X.subscribe(ve)})}},4782:(Ze,de,b)=>{b.d(de,{z:()=>oe});var h=b(7787),o=b(4047),z=b(4850),X=b(3867),T=b(7236),ge=b(1315),J=b(8746),ye=b(5510),ve=b(1203);function oe(...Oe){const q=(0,ge.lI)(Oe),me=(0,ge.ms)(Oe),{args:He,keys:Pe}=(0,o.D)(Oe);if(0===He.length)return(0,z.H)([],q);const Ye=new h.c(function Q(Oe,q,me=X.D){return He=>{he(q,()=>{const{length:Pe}=Oe,Ye=new Array(Pe);let lt=Pe,bt=Pe;for(let Se=0;Se<Pe;Se++)he(q,()=>{const we=(0,z.H)(Oe[Se],q);let Ge=!1;we.subscribe((0,ye._)(He,ze=>{Ye[Se]=ze,Ge||(Ge=!0,bt--),bt||He.next(me(Ye.slice()))},()=>{--lt||He.complete()}))},He)},He)}}(He,q,Pe?lt=>(0,J.e)(Pe,lt):X.D));return me?Ye.pipe((0,T.I)(me)):Ye}function he(Oe,q,me){Oe?(0,ve.N)(me,Oe,q):q()}},6852:(Ze,de,b)=>{b.d(de,{v:()=>z});var h=b(7787),o=b(7412);function z(X){return new h.c(T=>{(0,o.Tg)(X()).subscribe(T)})}},4850:(Ze,de,b)=>{b.d(de,{H:()=>ze});var h=b(7412),o=b(1203),z=b(1524),X=b(5510);function T(Ve,Ue=0){return(0,z.N)((Qe,it)=>{Qe.subscribe((0,X._)(it,Je=>(0,o.N)(it,Ve,()=>it.next(Je),Ue),()=>(0,o.N)(it,Ve,()=>it.complete(),Ue),Je=>(0,o.N)(it,Ve,()=>it.error(Je),Ue)))})}function ge(Ve,Ue=0){return(0,z.N)((Qe,it)=>{it.add(Ve.schedule(()=>Qe.subscribe(it),Ue))})}var ve=b(7787),Q=b(979),he=b(2097);function q(Ve,Ue){if(!Ve)throw new Error("Iterable cannot be null");return new ve.c(Qe=>{(0,o.N)(Qe,Ue,()=>{const it=Ve[Symbol.asyncIterator]();(0,o.N)(Qe,Ue,()=>{it.next().then(Je=>{Je.done?Qe.complete():Qe.next(Je.value)})},0,!0)})})}var me=b(9533),He=b(4760),Pe=b(5271),Ye=b(8419),lt=b(1391),bt=b(3985),Se=b(8030);function ze(Ve,Ue){return Ue?function Ge(Ve,Ue){if(null!=Ve){if((0,me.l)(Ve))return function J(Ve,Ue){return(0,h.Tg)(Ve).pipe(ge(Ue),T(Ue))}(Ve,Ue);if((0,Pe.X)(Ve))return function oe(Ve,Ue){return new ve.c(Qe=>{let it=0;return Ue.schedule(function(){it===Ve.length?Qe.complete():(Qe.next(Ve[it++]),Qe.closed||this.schedule())})})}(Ve,Ue);if((0,He.y)(Ve))return function ye(Ve,Ue){return(0,h.Tg)(Ve).pipe(ge(Ue),T(Ue))}(Ve,Ue);if((0,lt.T)(Ve))return q(Ve,Ue);if((0,Ye.x)(Ve))return function Oe(Ve,Ue){return new ve.c(Qe=>{let it;return(0,o.N)(Qe,Ue,()=>{it=Ve[Q.l](),(0,o.N)(Qe,Ue,()=>{let Je,nn;try{({value:Je,done:nn}=it.next())}catch(ke){return void Qe.error(ke)}nn?Qe.complete():Qe.next(Je)},0,!0)}),()=>(0,he.T)(it?.return)&&it.return()})}(Ve,Ue);if((0,Se.U)(Ve))return function we(Ve,Ue){return q((0,Se.C)(Ve),Ue)}(Ve,Ue)}throw(0,bt.L)(Ve)}(Ve,Ue):(0,h.Tg)(Ve)}},7412:(Ze,de,b)=>{b.d(de,{Tg:()=>Oe});var h=b(5823),o=b(5271),z=b(4760),X=b(7787),T=b(9533),ge=b(1391),J=b(3985),ye=b(8419),ve=b(8030),oe=b(2097),Q=b(8508),he=b(1852);function Oe(Se){if(Se instanceof X.c)return Se;if(null!=Se){if((0,T.l)(Se))return function q(Se){return new X.c(we=>{const Ge=Se[he.s]();if((0,oe.T)(Ge.subscribe))return Ge.subscribe(we);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Se);if((0,o.X)(Se))return function me(Se){return new X.c(we=>{for(let Ge=0;Ge<Se.length&&!we.closed;Ge++)we.next(Se[Ge]);we.complete()})}(Se);if((0,z.y)(Se))return function He(Se){return new X.c(we=>{Se.then(Ge=>{we.closed||(we.next(Ge),we.complete())},Ge=>we.error(Ge)).then(null,Q.m)})}(Se);if((0,ge.T)(Se))return Ye(Se);if((0,ye.x)(Se))return function Pe(Se){return new X.c(we=>{for(const Ge of Se)if(we.next(Ge),we.closed)return;we.complete()})}(Se);if((0,ve.U)(Se))return function lt(Se){return Ye((0,ve.C)(Se))}(Se)}throw(0,J.L)(Se)}function Ye(Se){return new X.c(we=>{(function bt(Se,we){var Ge,ze,Ve,Ue;return(0,h.sH)(this,void 0,void 0,function*(){try{for(Ge=(0,h.xN)(Se);!(ze=yield Ge.next()).done;)if(we.next(ze.value),we.closed)return}catch(Qe){Ve={error:Qe}}finally{try{ze&&!ze.done&&(Ue=Ge.return)&&(yield Ue.call(Ge))}finally{if(Ve)throw Ve.error}}we.complete()})})(Se,we).catch(Ge=>we.error(Ge))})}},1467:(Ze,de,b)=>{b.d(de,{of:()=>z});var h=b(1315),o=b(4850);function z(...X){const T=(0,h.lI)(X);return(0,o.H)(X,T)}},1968:(Ze,de,b)=>{b.d(de,{$:()=>z});var h=b(7787),o=b(2097);function z(X,T){const ge=(0,o.T)(X)?X:()=>X,J=ye=>ye.error(ge());return new h.c(T?ye=>T.schedule(J,0,ye):J)}},5510:(Ze,de,b)=>{b.d(de,{_:()=>o});var h=b(3173);function o(X,T,ge,J,ye){return new z(X,T,ge,J,ye)}class z extends h.vU{constructor(T,ge,J,ye,ve,oe){super(T),this.onFinalize=ve,this.shouldUnsubscribe=oe,this._next=ge?function(Q){try{ge(Q)}catch(he){T.error(he)}}:super._next,this._error=ye?function(Q){try{ye(Q)}catch(he){T.error(he)}finally{this.unsubscribe()}}:super._error,this._complete=J?function(){try{J()}catch(Q){T.error(Q)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var T;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ge}=this;super.unsubscribe(),!ge&&(null===(T=this.onFinalize)||void 0===T||T.call(this))}}}},8919:(Ze,de,b)=>{b.d(de,{W:()=>X});var h=b(7412),o=b(5510),z=b(1524);function X(T){return(0,z.N)((ge,J)=>{let oe,ye=null,ve=!1;ye=ge.subscribe((0,o._)(J,void 0,void 0,Q=>{oe=(0,h.Tg)(T(Q,X(T)(ge))),ye?(ye.unsubscribe(),ye=null,oe.subscribe(J)):ve=!0})),ve&&(ye.unsubscribe(),ye=null,oe.subscribe(J))})}},6944:(Ze,de,b)=>{b.d(de,{H:()=>z});var h=b(3575),o=b(2097);function z(X,T){return(0,o.T)(T)?(0,h.Z)(X,T,1):(0,h.Z)(X,1)}},4534:(Ze,de,b)=>{b.d(de,{p:()=>z});var h=b(1524),o=b(5510);function z(X,T){return(0,h.N)((ge,J)=>{let ye=0;ge.subscribe((0,o._)(J,ve=>X.call(T,ve,ye++)&&J.next(ve)))})}},1554:(Ze,de,b)=>{b.d(de,{j:()=>o});var h=b(1524);function o(z){return(0,h.N)((X,T)=>{try{X.subscribe(T)}finally{T.add(z)}})}},2816:(Ze,de,b)=>{b.d(de,{T:()=>z});var h=b(1524),o=b(5510);function z(X,T){return(0,h.N)((ge,J)=>{let ye=0;ge.subscribe((0,o._)(J,ve=>{J.next(X.call(T,ve,ye++))}))})}},3575:(Ze,de,b)=>{b.d(de,{Z:()=>ye});var h=b(2816),o=b(7412),z=b(1524),X=b(1203),T=b(5510),J=b(2097);function ye(ve,oe,Q=1/0){return(0,J.T)(oe)?ye((he,Oe)=>(0,h.T)((q,me)=>oe(he,q,Oe,me))((0,o.Tg)(ve(he,Oe))),Q):("number"==typeof oe&&(Q=oe),(0,z.N)((he,Oe)=>function ge(ve,oe,Q,he,Oe,q,me,He){const Pe=[];let Ye=0,lt=0,bt=!1;const Se=()=>{bt&&!Pe.length&&!Ye&&oe.complete()},we=ze=>Ye<he?Ge(ze):Pe.push(ze),Ge=ze=>{q&&oe.next(ze),Ye++;let Ve=!1;(0,o.Tg)(Q(ze,lt++)).subscribe((0,T._)(oe,Ue=>{Oe?.(Ue),q?we(Ue):oe.next(Ue)},()=>{Ve=!0},void 0,()=>{if(Ve)try{for(Ye--;Pe.length&&Ye<he;){const Ue=Pe.shift();me?(0,X.N)(oe,me,()=>Ge(Ue)):Ge(Ue)}Se()}catch(Ue){oe.error(Ue)}}))};return ve.subscribe((0,T._)(oe,we,()=>{bt=!0,Se()})),()=>{He?.()}}(he,Oe,ve,Q)))}},8128:(Ze,de,b)=>{b.d(de,{n:()=>X});var h=b(7412),o=b(1524),z=b(5510);function X(T,ge){return(0,o.N)((J,ye)=>{let ve=null,oe=0,Q=!1;const he=()=>Q&&!ve&&ye.complete();J.subscribe((0,z._)(ye,Oe=>{ve?.unsubscribe();let q=0;const me=oe++;(0,h.Tg)(T(Oe,me)).subscribe(ve=(0,z._)(ye,He=>ye.next(ge?ge(Oe,He,me,q++):He),()=>{ve=null,he()}))},()=>{Q=!0,he()}))})}},5719:(Ze,de,b)=>{b.d(de,{Q:()=>T});var h=b(1524),o=b(5510),z=b(7412),X=b(9405);function T(ge){return(0,h.N)((J,ye)=>{(0,z.Tg)(ge).subscribe((0,o._)(ye,()=>ye.complete(),X.l)),!ye.closed&&J.subscribe(ye)})}},6243:(Ze,de,b)=>{b.d(de,{M:()=>T});var h=b(2097),o=b(1524),z=b(5510),X=b(3867);function T(ge,J,ye){const ve=(0,h.T)(ge)||J||ye?{next:ge,error:J,complete:ye}:ge;return ve?(0,o.N)((oe,Q)=>{var he;null===(he=ve.subscribe)||void 0===he||he.call(ve);let Oe=!0;oe.subscribe((0,z._)(Q,q=>{var me;null===(me=ve.next)||void 0===me||me.call(ve,q),Q.next(q)},()=>{var q;Oe=!1,null===(q=ve.complete)||void 0===q||q.call(ve),Q.complete()},q=>{var me;Oe=!1,null===(me=ve.error)||void 0===me||me.call(ve,q),Q.error(q)},()=>{var q,me;Oe&&(null===(q=ve.unsubscribe)||void 0===q||q.call(ve)),null===(me=ve.finalize)||void 0===me||me.call(ve)}))}):X.D}},7680:(Ze,de,b)=>{b.d(de,{f:()=>h});const h={setTimeout(o,z,...X){const{delegate:T}=h;return T?.setTimeout?T.setTimeout(o,z,...X):setTimeout(o,z,...X)},clearTimeout(o){const{delegate:z}=h;return(z?.clearTimeout||clearTimeout)(o)},delegate:void 0}},979:(Ze,de,b)=>{b.d(de,{l:()=>o});const o=function h(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},1852:(Ze,de,b)=>{b.d(de,{s:()=>h});const h="function"==typeof Symbol&&Symbol.observable||"@@observable"},4392:(Ze,de,b)=>{b.d(de,{G:()=>o});const o=(0,b(1531).L)(z=>function(){z(this),this.name="EmptyError",this.message="no elements in sequence"})},1315:(Ze,de,b)=>{b.d(de,{ms:()=>X,lI:()=>T});var h=b(2097);function z(J){return J[J.length-1]}function X(J){return(0,h.T)(z(J))?J.pop():void 0}function T(J){return function o(J){return J&&(0,h.T)(J.schedule)}(z(J))?J.pop():void 0}},4047:(Ze,de,b)=>{b.d(de,{D:()=>T});const{isArray:h}=Array,{getPrototypeOf:o,prototype:z,keys:X}=Object;function T(J){if(1===J.length){const ye=J[0];if(h(ye))return{args:ye,keys:null};if(function ge(J){return J&&"object"==typeof J&&o(J)===z}(ye)){const ve=X(ye);return{args:ve.map(oe=>ye[oe]),keys:ve}}}return{args:J,keys:null}}},2070:(Ze,de,b)=>{function h(o,z){if(o){const X=o.indexOf(z);0<=X&&o.splice(X,1)}}b.d(de,{o:()=>h})},1531:(Ze,de,b)=>{function h(o){const X=o(T=>{Error.call(T),T.stack=(new Error).stack});return X.prototype=Object.create(Error.prototype),X.prototype.constructor=X,X}b.d(de,{L:()=>h})},8746:(Ze,de,b)=>{function h(o,z){return o.reduce((X,T,ge)=>(X[T]=z[ge],X),{})}b.d(de,{e:()=>h})},7112:(Ze,de,b)=>{b.d(de,{Y:()=>z,l:()=>X});var h=b(2904);let o=null;function z(T){if(h.$.useDeprecatedSynchronousErrorHandling){const ge=!o;if(ge&&(o={errorThrown:!1,error:null}),T(),ge){const{errorThrown:J,error:ye}=o;if(o=null,J)throw ye}}else T()}function X(T){h.$.useDeprecatedSynchronousErrorHandling&&o&&(o.errorThrown=!0,o.error=T)}},1203:(Ze,de,b)=>{function h(o,z,X,T=0,ge=!1){const J=z.schedule(function(){X(),ge?o.add(this.schedule(null,T)):this.unsubscribe()},T);if(o.add(J),!ge)return J}b.d(de,{N:()=>h})},3867:(Ze,de,b)=>{function h(o){return o}b.d(de,{D:()=>h})},5271:(Ze,de,b)=>{b.d(de,{X:()=>h});const h=o=>o&&"number"==typeof o.length&&"function"!=typeof o},1391:(Ze,de,b)=>{b.d(de,{T:()=>o});var h=b(2097);function o(z){return Symbol.asyncIterator&&(0,h.T)(z?.[Symbol.asyncIterator])}},2097:(Ze,de,b)=>{function h(o){return"function"==typeof o}b.d(de,{T:()=>h})},9533:(Ze,de,b)=>{b.d(de,{l:()=>z});var h=b(1852),o=b(2097);function z(X){return(0,o.T)(X[h.s])}},8419:(Ze,de,b)=>{b.d(de,{x:()=>z});var h=b(979),o=b(2097);function z(X){return(0,o.T)(X?.[h.l])}},7624:(Ze,de,b)=>{b.d(de,{A:()=>z});var h=b(7787),o=b(2097);function z(X){return!!X&&(X instanceof h.c||(0,o.T)(X.lift)&&(0,o.T)(X.subscribe))}},4760:(Ze,de,b)=>{b.d(de,{y:()=>o});var h=b(2097);function o(z){return(0,h.T)(z?.then)}},8030:(Ze,de,b)=>{b.d(de,{C:()=>z,U:()=>X});var h=b(5823),o=b(2097);function z(T){return(0,h.AQ)(this,arguments,function*(){const J=T.getReader();try{for(;;){const{value:ye,done:ve}=yield(0,h.N3)(J.read());if(ve)return yield(0,h.N3)(void 0);yield yield(0,h.N3)(ye)}}finally{J.releaseLock()}})}function X(T){return(0,o.T)(T?.getReader)}},1524:(Ze,de,b)=>{b.d(de,{N:()=>z,S:()=>o});var h=b(2097);function o(X){return(0,h.T)(X?.lift)}function z(X){return T=>{if(o(T))return T.lift(function(ge){try{return X(ge,this)}catch(J){this.error(J)}});throw new TypeError("Unable to lift unknown Observable type")}}},7236:(Ze,de,b)=>{b.d(de,{I:()=>X});var h=b(2816);const{isArray:o}=Array;function X(T){return(0,h.T)(ge=>function z(T,ge){return o(ge)?T(...ge):T(ge)}(T,ge))}},9405:(Ze,de,b)=>{function h(){}b.d(de,{l:()=>h})},9493:(Ze,de,b)=>{b.d(de,{F:()=>o,m:()=>z});var h=b(3867);function o(...X){return z(X)}function z(X){return 0===X.length?h.D:1===X.length?X[0]:function(ge){return X.reduce((J,ye)=>ye(J),ge)}}},8508:(Ze,de,b)=>{b.d(de,{m:()=>z});var h=b(2904),o=b(7680);function z(X){o.f.setTimeout(()=>{const{onUnhandledError:T}=h.$;if(!T)throw X;T(X)})}},3985:(Ze,de,b)=>{function h(o){return new TypeError(`You provided ${null!==o&&"object"==typeof o?"an invalid object":`'${o}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}b.d(de,{L:()=>h})},2943:(Ze,de,b)=>{b.d(de,{AJ:()=>Ne,IJ:()=>Bn,MD:()=>W,N0:()=>Ni,QT:()=>z,Qn:()=>Re,Sm:()=>He,Sq:()=>ot,VF:()=>T,Vy:()=>ur,WO:()=>zn,Xr:()=>Nr,YU:()=>ce,ZD:()=>X,_b:()=>V,aZ:()=>Ye,bT:()=>Gt,fw:()=>Pe,hb:()=>q,hj:()=>ve,oe:()=>N,pM:()=>ot,qQ:()=>J,vh:()=>Ar});var h=b(8284);
|
|
6
|
+
*/function $e(N){N||((0,o.Af3)($e),N=(0,o.WQX)(o.abz));const se=new $.c(y=>N.onDestroy(y.next.bind(y)));return y=>y.pipe((0,Ee.Q)(se))}var Tn=b(6852),vr=b(7624),Si=b(7233),ji=b(7412),Sn=b(3575),at=b(5271),Sr=b(2097),yr=b(7236);const Lr=["addListener","removeListener"],Vr=["addEventListener","removeEventListener"],wr=["on","off"];function It(N,se,y,R){if((0,Sr.T)(y)&&(R=y,y=void 0),R)return It(N,se,y).pipe((0,yr.I)(R));const[A,W]=function ar(N){return(0,Sr.T)(N.addEventListener)&&(0,Sr.T)(N.removeEventListener)}(N)?Vr.map(Ne=>rt=>N[Ne](se,rt,y)):function jr(N){return(0,Sr.T)(N.addListener)&&(0,Sr.T)(N.removeListener)}(N)?Lr.map(Zr(N,se)):function _r(N){return(0,Sr.T)(N.on)&&(0,Sr.T)(N.off)}(N)?wr.map(Zr(N,se)):[];if(!A&&(0,at.X)(N))return(0,Sn.Z)(Ne=>It(Ne,se,y))((0,ji.Tg)(N));if(!A)throw new TypeError("Invalid event target");return new $.c(Ne=>{const rt=(...Ot)=>Ne.next(1<Ot.length?Ot:Ot[0]);return A(rt),()=>W(rt)})}function Zr(N,se){return y=>R=>N[y](se,R)}var lr=b(1087);const Ur={now:()=>(Ur.delegate||Date).now(),delegate:void 0};class Br extends lr.B{constructor(se=1/0,y=1/0,R=Ur){super(),this._bufferSize=se,this._windowTime=y,this._timestampProvider=R,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=y===1/0,this._bufferSize=Math.max(1,se),this._windowTime=Math.max(1,y)}next(se){const{isStopped:y,_buffer:R,_infiniteTimeWindow:A,_timestampProvider:W,_windowTime:Ne}=this;y||(R.push(se),!A&&R.push(W.now()+Ne)),this._trimBuffer(),super.next(se)}_subscribe(se){this._throwIfClosed(),this._trimBuffer();const y=this._innerSubscribe(se),{_infiniteTimeWindow:R,_buffer:A}=this,W=A.slice();for(let Ne=0;Ne<W.length&&!se.closed;Ne+=R?1:2)se.next(W[Ne]);return this._checkFinalizedStatuses(se),y}_trimBuffer(){const{_bufferSize:se,_timestampProvider:y,_buffer:R,_infiniteTimeWindow:A}=this,W=(A?1:2)*se;if(se<1/0&&W<R.length&&R.splice(0,R.length-W),!A){const Ne=y.now();let rt=0;for(let Ot=1;Ot<R.length&&R[Ot]<=Ne;Ot+=2)rt=Ot;rt&&R.splice(0,rt+1)}}}var P=b(3173),V=b(1524);function fe(N,se,...y){if(!0===se)return void N();if(!1===se)return;const R=new P.Ms({next:()=>{R.unsubscribe(),N()}});return(0,ji.Tg)(se(...y)).subscribe(R)}class Fe extends Si.yU{constructor(se,y){super()}schedule(se,y=0){return this}}const Le={setInterval(N,se,...y){const{delegate:R}=Le;return R?.setInterval?R.setInterval(N,se,...y):setInterval(N,se,...y)},clearInterval(N){const{delegate:se}=Le;return(se?.clearInterval||clearInterval)(N)},delegate:void 0};var vt=b(2070);class zt{constructor(se,y=zt.now){this.schedulerActionCtor=se,this.now=y}schedule(se,y=0,R){return new this.schedulerActionCtor(this,se).schedule(R,y)}}zt.now=Ur.now;const Gt=new class In extends zt{constructor(se,y=zt.now){super(se,y),this.actions=[],this._active=!1}flush(se){const{actions:y}=this;if(this._active)return void y.push(se);let R;this._active=!0;do{if(R=se.execute(se.state,se.delay))break}while(se=y.shift());if(this._active=!1,R){for(;se=y.shift();)se.unsubscribe();throw R}}}(class ot extends Fe{constructor(se,y){super(se,y),this.scheduler=se,this.work=y,this.pending=!1}schedule(se,y=0){var R;if(this.closed)return this;this.state=se;const A=this.id,W=this.scheduler;return null!=A&&(this.id=this.recycleAsyncId(W,A,y)),this.pending=!0,this.delay=y,this.id=null!==(R=this.id)&&void 0!==R?R:this.requestAsyncId(W,this.id,y),this}requestAsyncId(se,y,R=0){return Le.setInterval(se.flush.bind(se,this),R)}recycleAsyncId(se,y,R=0){if(null!=R&&this.delay===R&&!1===this.pending)return y;null!=y&&Le.clearInterval(y)}execute(se,y){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const R=this._execute(se,y);if(R)return R;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(se,y){let A,R=!1;try{this.work(se)}catch(W){R=!0,A=W||new Error("Scheduled action threw falsy error")}if(R)return this.unsubscribe(),A}unsubscribe(){if(!this.closed){const{id:se,scheduler:y}=this,{actions:R}=y;this.work=this.state=this.scheduler=null,this.pending=!1,(0,vt.o)(R,this),null!=se&&(this.id=this.recycleAsyncId(y,se,null)),this.delay=null,super.unsubscribe()}}});var Un=b(5510);function ct(N,se=Gt){return(0,V.N)((y,R)=>{let A=null,W=null,Ne=null;const rt=()=>{if(A){A.unsubscribe(),A=null;const fn=W;W=null,R.next(fn)}};function Ot(){const fn=Ne+N,Cn=se.now();if(Cn<fn)return A=this.schedule(void 0,fn-Cn),void R.add(A);rt()}y.subscribe((0,Un._)(R,fn=>{W=fn,Ne=se.now(),A||(A=se.schedule(Ot,N),R.add(A))},()=>{rt(),R.complete()},void 0,()=>{W=A=null}))})}const gt=[[["","above-quill-editor-toolbar",""]],[["","quill-editor-toolbar",""]],[["","below-quill-editor-toolbar",""]]],Ft=["[above-quill-editor-toolbar]","[quill-editor-toolbar]","[below-quill-editor-toolbar]"];function tn(N,se){1&N&&o.nrm(0,"div",0)}function dn(N,se){1&N&&o.nrm(0,"div",0)}const Kt=(N,se)=>N||se||"html";let Bn=(()=>{class N{constructor(y,R){var A=this;this.config=R,this.quill$=(0,Tn.v)((0,Se.A)(function*(){if(!A.Quill){const W=A.document.addEventListener;A.document.addEventListener=A.document.__zone_symbol__addEventListener||A.document.addEventListener;const Ne=yield b.e(256).then(b.bind(b,256));A.document.addEventListener=W,A.Quill=Ne.default?.default??Ne.default??Ne}return A.config.customOptions?.forEach(W=>{const Ne=A.Quill.import(W.import);Ne.whitelist=W.whitelist,A.Quill.register(Ne,!0,A.config.suppressGlobalRegisterWarning)}),yield A.registerCustomModules(A.Quill,A.config.customModules,A.config.suppressGlobalRegisterWarning)})).pipe(function ce(N,se,y){let R,A=!1;return N&&"object"==typeof N?({bufferSize:R=1/0,windowTime:se=1/0,refCount:A=!1,scheduler:y}=N):R=N??1/0,function j(N={}){const{connector:se=(()=>new lr.B),resetOnError:y=!0,resetOnComplete:R=!0,resetOnRefCountZero:A=!0}=N;return W=>{let Ne,rt,Ot,fn=0,Cn=!1,ur=!1;const Hn=()=>{rt?.unsubscribe(),rt=void 0},Pn=()=>{Hn(),Ne=Ot=void 0,Cn=ur=!1},Or=()=>{const Nr=Ne;Pn(),Nr?.unsubscribe()};return(0,V.N)((Nr,Fn)=>{fn++,!ur&&!Cn&&Hn();const Gn=Ot=Ot??se();Fn.add(()=>{fn--,0===fn&&!ur&&!Cn&&(rt=fe(Or,A))}),Gn.subscribe(Fn),!Ne&&fn>0&&(Ne=new P.Ms({next:ti=>Gn.next(ti),error:ti=>{ur=!0,Hn(),rt=fe(Pn,y,ti),Gn.error(ti)},complete:()=>{Cn=!0,Hn(),rt=fe(Pn,R),Gn.complete()}}),(0,ji.Tg)(Nr).subscribe(Ne))})(W)}}({connector:()=>new Br(R,se,y),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:A})}({bufferSize:1,refCount:!0})),this.document=y.get(h.qQ),this.config||(this.config={modules:Yr})}getQuill(){return this.quill$}registerCustomModules(y,R,A){return(0,Se.A)(function*(){if(Array.isArray(R))for(let{implementation:W,path:Ne}of R)(0,vr.A)(W)&&(W=yield(0,or._)(W)),y.register(Ne,W,A);return y})()}static{this.\u0275fac=function(R){return new(R||N)(o.KVO(o.zZn),o.KVO(Yn,8))}}static{this.\u0275prov=o.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}}return N})(),zn=(()=>{class N{constructor(){this.format=(0,o.hFB)(void 0),this.theme=(0,o.hFB)(void 0),this.modules=(0,o.hFB)(void 0),this.debug=(0,o.hFB)(!1),this.readOnly=(0,o.hFB)(!1),this.placeholder=(0,o.hFB)(void 0),this.maxLength=(0,o.hFB)(void 0),this.minLength=(0,o.hFB)(void 0),this.required=(0,o.hFB)(!1),this.formats=(0,o.hFB)(void 0),this.customToolbarPosition=(0,o.hFB)("top"),this.sanitize=(0,o.hFB)(!1),this.beforeRender=(0,o.hFB)(void 0),this.styles=(0,o.hFB)(null),this.registry=(0,o.hFB)(void 0),this.bounds=(0,o.hFB)(void 0),this.customOptions=(0,o.hFB)([]),this.customModules=(0,o.hFB)([]),this.trackChanges=(0,o.hFB)(void 0),this.classes=(0,o.hFB)(void 0),this.trimOnValidation=(0,o.hFB)(!1),this.linkPlaceholder=(0,o.hFB)(void 0),this.compareValues=(0,o.hFB)(!1),this.filterNull=(0,o.hFB)(!1),this.debounceTime=(0,o.hFB)(void 0),this.defaultEmptyValue=(0,o.hFB)(null),this.onEditorCreated=new o.bkB,this.onEditorChanged=new o.bkB,this.onContentChanged=new o.bkB,this.onSelectionChanged=new o.bkB,this.onFocus=new o.bkB,this.onBlur=new o.bkB,this.onNativeFocus=new o.bkB,this.onNativeBlur=new o.bkB,this.disabled=!1,this.toolbarPosition=(0,o.vPA)("top"),this.subscription=null,this.quillSubscription=null,this.elementRef=(0,o.WQX)(o.aKT),this.document=(0,o.WQX)(h.qQ),this.cd=(0,o.WQX)(o.gRc),this.domSanitizer=(0,o.WQX)(F.up),this.platformId=(0,o.WQX)(o.Agw),this.renderer=(0,o.WQX)(o.sFG),this.zone=(0,o.WQX)(o.SKi),this.service=(0,o.WQX)(Bn),this.destroyRef=(0,o.WQX)(o.abz),this.valueGetter=(0,o.hFB)(y=>{let R=y.getSemanticHTML();this.isEmptyValue(R)&&(R=this.defaultEmptyValue());let A=R;const W=Kt(this.format(),this.service.config.format);if("text"===W)A=y.getText();else if("object"===W)A=y.getContents();else if("json"===W)try{A=JSON.stringify(y.getContents())}catch{A=y.getText()}return A}),this.valueSetter=(0,o.hFB)((y,R)=>{const A=Kt(this.format(),this.service.config.format);if("html"===A)return([!0,!1].includes(this.sanitize())?this.sanitize():this.service.config.sanitize||!1)&&(R=this.domSanitizer.sanitize(o.WPN.HTML,R)),y.clipboard.convert({html:R});if("json"===A)try{return JSON.parse(R)}catch{return[{insert:R}]}return R}),this.selectionChangeHandler=(y,R,A)=>{const W=this.trackChanges()||this.service.config.trackChanges,Ne=!y&&!!this.onModelTouched&&("user"===A||W&&"all"===W);!this.onBlur.observed&&!this.onFocus.observed&&!this.onSelectionChanged.observed&&!Ne||this.zone.run(()=>{null===y?this.onBlur.emit({editor:this.quillEditor,source:A}):null===R&&this.onFocus.emit({editor:this.quillEditor,source:A}),this.onSelectionChanged.emit({editor:this.quillEditor,oldRange:R,range:y,source:A}),Ne&&this.onModelTouched(),this.cd.markForCheck()})},this.textChangeHandler=(y,R,A)=>{const W=this.quillEditor.getText(),Ne=this.quillEditor.getContents();let rt=this.quillEditor.getSemanticHTML();this.isEmptyValue(rt)&&(rt=this.defaultEmptyValue());const Ot=this.trackChanges()||this.service.config.trackChanges,fn=("user"===A||Ot&&"all"===Ot)&&!!this.onModelChange;!this.onContentChanged.observed&&!fn||this.zone.run(()=>{if(fn){const Cn=this.valueGetter();this.onModelChange(Cn(this.quillEditor))}this.onContentChanged.emit({content:Ne,delta:y,editor:this.quillEditor,html:rt,oldDelta:R,source:A,text:W}),this.cd.markForCheck()})},this.editorChangeHandler=(y,R,A,W)=>{if(this.onEditorChanged.observed)if("text-change"===y){const Ne=this.quillEditor.getText(),rt=this.quillEditor.getContents();let Ot=this.quillEditor.getSemanticHTML();this.isEmptyValue(Ot)&&(Ot=this.defaultEmptyValue()),this.zone.run(()=>{this.onEditorChanged.emit({content:rt,delta:R,editor:this.quillEditor,event:y,html:Ot,oldDelta:A,source:W,text:Ne}),this.cd.markForCheck()})}else this.zone.run(()=>{this.onEditorChanged.emit({editor:this.quillEditor,event:y,oldRange:A,range:R,source:W}),this.cd.markForCheck()})}}static normalizeClassNames(y){return y.trim().split(" ").reduce((A,W)=>{const Ne=W.trim();return Ne&&A.push(Ne),A},[])}ngOnInit(){this.toolbarPosition.set(this.customToolbarPosition())}ngAfterViewInit(){(0,h.Vy)(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe((0,Sn.Z)(y=>{const R=[this.service.registerCustomModules(y,this.customModules())],A=this.beforeRender()??this.service.config.beforeRender;return A&&R.push(A()),Promise.all(R).then(()=>y)})).subscribe(y=>{this.editorElem=this.elementRef.nativeElement.querySelector("[quill-editor-element]");const R=this.elementRef.nativeElement.querySelector("[quill-editor-toolbar]"),A=Object.assign({},this.modules()||this.service.config.modules);R?A.toolbar=R:void 0===A.toolbar&&(A.toolbar=Yr.toolbar);let W=void 0!==this.placeholder()?this.placeholder():this.service.config.placeholder;void 0===W&&(W="Insert text here ...");const Ne=this.styles();Ne&&Object.keys(Ne).forEach(Hn=>{this.renderer.setStyle(this.editorElem,Hn,Ne[Hn])}),this.classes()&&this.addClasses(this.classes()),this.customOptions().forEach(Hn=>{const Pn=y.import(Hn.import);Pn.whitelist=Hn.whitelist,y.register(Pn,!0)});let rt=this.bounds()&&"self"===this.bounds()?this.editorElem:this.bounds();rt||(rt=this.service.config.bounds?this.service.config.bounds:this.document.body);let Ot=this.debug();!Ot&&!1!==Ot&&this.service.config.debug&&(Ot=this.service.config.debug);let fn=this.readOnly();!fn&&!1!==this.readOnly()&&(fn=void 0!==this.service.config.readOnly&&this.service.config.readOnly);let Cn=this.defaultEmptyValue;this.service.config.hasOwnProperty("defaultEmptyValue")&&(Cn=this.service.config.defaultEmptyValue);let ur=this.formats();if(!ur&&void 0===ur&&(ur=this.service.config.formats?[...this.service.config.formats]:null===this.service.config.formats?null:void 0),this.zone.runOutsideAngular(()=>{if(this.quillEditor=new y(this.editorElem,{bounds:rt,debug:Ot,formats:ur,modules:A,placeholder:W,readOnly:fn,defaultEmptyValue:Cn,registry:this.registry(),theme:this.theme()||(this.service.config.theme?this.service.config.theme:"snow")}),this.onNativeBlur.observed&&(this.quillEditor.scroll.domNode.addEventListener("blur",()=>this.onNativeBlur.next({editor:this.quillEditor,source:"dom"})),this.quillEditor.getModule("toolbar").container?.addEventListener("mousedown",Pn=>Pn.preventDefault())),this.onNativeFocus.observed&&this.quillEditor.scroll.domNode.addEventListener("focus",()=>this.onNativeFocus.next({editor:this.quillEditor,source:"dom"})),this.linkPlaceholder()){const Pn=this.quillEditor?.theme?.tooltip?.root?.querySelector("input[data-link]");Pn?.dataset&&(Pn.dataset.link=this.linkPlaceholder())}}),this.content){if("text"===Kt(this.format(),this.service.config.format))this.quillEditor.setText(this.content,"silent");else{const Nr=this.valueSetter()(this.quillEditor,this.content);this.quillEditor.setContents(Nr,"silent")}this.quillEditor.getModule("history").clear()}this.setDisabledState(),this.addQuillEventListeners(),(this.onEditorCreated.observed||this.onValidatorChanged)&&new $.c(N=>{const se=requestAnimationFrame(()=>{N.next(),N.complete()});return()=>cancelAnimationFrame(se)}).pipe($e(this.destroyRef)).subscribe(()=>{this.onValidatorChanged&&this.onValidatorChanged(),this.onEditorCreated.emit(this.quillEditor)})}))}ngOnDestroy(){this.dispose(),this.quillSubscription?.unsubscribe(),this.quillSubscription=null}ngOnChanges(y){if(this.quillEditor){if(y.readOnly&&this.quillEditor.enable(!y.readOnly.currentValue),y.placeholder&&(this.quillEditor.root.dataset.placeholder=y.placeholder.currentValue),y.defaultEmptyValue&&(this.quillEditor.root.dataset.defaultEmptyValue=y.defaultEmptyValue.currentValue),y.styles){const R=y.styles.currentValue,A=y.styles.previousValue;A&&Object.keys(A).forEach(W=>{this.renderer.removeStyle(this.editorElem,W)}),R&&Object.keys(R).forEach(W=>{this.renderer.setStyle(this.editorElem,W,this.styles()[W])})}if(y.classes){const R=y.classes.currentValue,A=y.classes.previousValue;A&&this.removeClasses(A),R&&this.addClasses(R)}y.debounceTime&&this.addQuillEventListeners()}}addClasses(y){N.normalizeClassNames(y).forEach(R=>{this.renderer.addClass(this.editorElem,R)})}removeClasses(y){N.normalizeClassNames(y).forEach(R=>{this.renderer.removeClass(this.editorElem,R)})}writeValue(y){if(this.filterNull()&&null===y||(this.content=y,!this.quillEditor))return;const R=Kt(this.format(),this.service.config.format),W=this.valueSetter()(this.quillEditor,y);if(this.compareValues()){const Ne=this.quillEditor.getContents();if(JSON.stringify(Ne)===JSON.stringify(W))return}y?"text"===R?this.quillEditor.setText(y):this.quillEditor.setContents(W):this.quillEditor.setText("")}setDisabledState(y=this.disabled){this.disabled=y,this.quillEditor&&(y?(this.quillEditor.disable(),this.renderer.setAttribute(this.elementRef.nativeElement,"disabled","disabled")):(this.readOnly()||this.quillEditor.enable(),this.renderer.removeAttribute(this.elementRef.nativeElement,"disabled")))}registerOnChange(y){this.onModelChange=y}registerOnTouched(y){this.onModelTouched=y}registerOnValidatorChange(y){this.onValidatorChanged=y}validate(){if(!this.quillEditor)return null;const y={};let R=!0;const A=this.quillEditor.getText(),W=this.trimOnValidation()?A.trim().length:1===A.length&&0===A.trim().length?0:A.length-1,Ne=this.quillEditor.getContents().ops,rt=!!Ne&&1===Ne.length&&["\n",""].includes(Ne[0].insert?.toString());return this.minLength()&&W&&W<this.minLength()&&(y.minLengthError={given:W,minLength:this.minLength()},R=!1),this.maxLength()&&W>this.maxLength()&&(y.maxLengthError={given:W,maxLength:this.maxLength()},R=!1),this.required()&&!W&&rt&&(y.requiredError={empty:!0},R=!1),R?null:y}addQuillEventListeners(){this.dispose(),this.zone.runOutsideAngular(()=>{this.subscription=new Si.yU,this.subscription.add(It(this.quillEditor,"selection-change").subscribe(([A,W,Ne])=>{this.selectionChangeHandler(A,W,Ne)}));let y=It(this.quillEditor,"text-change"),R=It(this.quillEditor,"editor-change");"number"==typeof this.debounceTime()&&(y=y.pipe(ct(this.debounceTime())),R=R.pipe(ct(this.debounceTime()))),this.subscription.add(y.subscribe(([A,W,Ne])=>{this.textChangeHandler(A,W,Ne)})),this.subscription.add(R.subscribe(([A,W,Ne,rt])=>{this.editorChangeHandler(A,W,Ne,rt)}))})}dispose(){null!==this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}isEmptyValue(y){return"<p></p>"===y||"<div></div>"===y||"<p><br></p>"===y||"<div><br></div>"===y}static{this.\u0275fac=function(R){return new(R||N)}}static{this.\u0275dir=o.FsC({type:N,inputs:{format:[o.Mj6.SignalBased,"format"],theme:[o.Mj6.SignalBased,"theme"],modules:[o.Mj6.SignalBased,"modules"],debug:[o.Mj6.SignalBased,"debug"],readOnly:[o.Mj6.SignalBased,"readOnly"],placeholder:[o.Mj6.SignalBased,"placeholder"],maxLength:[o.Mj6.SignalBased,"maxLength"],minLength:[o.Mj6.SignalBased,"minLength"],required:[o.Mj6.SignalBased,"required"],formats:[o.Mj6.SignalBased,"formats"],customToolbarPosition:[o.Mj6.SignalBased,"customToolbarPosition"],sanitize:[o.Mj6.SignalBased,"sanitize"],beforeRender:[o.Mj6.SignalBased,"beforeRender"],styles:[o.Mj6.SignalBased,"styles"],registry:[o.Mj6.SignalBased,"registry"],bounds:[o.Mj6.SignalBased,"bounds"],customOptions:[o.Mj6.SignalBased,"customOptions"],customModules:[o.Mj6.SignalBased,"customModules"],trackChanges:[o.Mj6.SignalBased,"trackChanges"],classes:[o.Mj6.SignalBased,"classes"],trimOnValidation:[o.Mj6.SignalBased,"trimOnValidation"],linkPlaceholder:[o.Mj6.SignalBased,"linkPlaceholder"],compareValues:[o.Mj6.SignalBased,"compareValues"],filterNull:[o.Mj6.SignalBased,"filterNull"],debounceTime:[o.Mj6.SignalBased,"debounceTime"],defaultEmptyValue:[o.Mj6.SignalBased,"defaultEmptyValue"],valueGetter:[o.Mj6.SignalBased,"valueGetter"],valueSetter:[o.Mj6.SignalBased,"valueSetter"]},outputs:{onEditorCreated:"onEditorCreated",onEditorChanged:"onEditorChanged",onContentChanged:"onContentChanged",onSelectionChanged:"onSelectionChanged",onFocus:"onFocus",onBlur:"onBlur",onNativeFocus:"onNativeFocus",onNativeBlur:"onNativeBlur"},features:[o.OA$]})}}return N})(),ft=(()=>{class N extends zn{static{this.\u0275fac=(()=>{let y;return function(A){return(y||(y=o.xGo(N)))(A||N)}})()}static{this.\u0275cmp=o.VBU({type:N,selectors:[["quill-editor"]],standalone:!0,features:[o.Jv_([{multi:!0,provide:te.kq,useExisting:(0,o.Rfq)(()=>N)},{multi:!0,provide:te.cz,useExisting:(0,o.Rfq)(()=>N)}]),o.Vt3,o.aNF],ngContentSelectors:Ft,decls:5,vars:2,consts:[["quill-editor-element",""]],template:function(R,A){1&R&&(o.NAR(gt),o.DNE(0,tn,1,0,"div",0),o.SdG(1),o.SdG(2,1),o.SdG(3,2),o.DNE(4,dn,1,0,"div",0)),2&R&&(o.vxM(0,"top"!==A.toolbarPosition()?0:-1),o.R7$(4),o.vxM(4,"top"===A.toolbarPosition()?4:-1))},styles:["[_nghost-%COMP%]{display:inline-block}"]})}}return N})(),Cr=(()=>{class N{static forRoot(y){return{ngModule:N,providers:[{provide:Yn,useValue:y}]}}static{this.\u0275fac=function(R){return new(R||N)}}static{this.\u0275mod=o.$C({type:N})}static{this.\u0275inj=o.G2t({})}}return N})();const eo=N=>({"is-danger":N});let to=(()=>{class N{constructor(y){this.formBuilder=y,this.valueChanged=new o.bkB,this.modules={toolbar:[["bold","italic","underline","strike"],["link","blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{header:[1,2,3,4,5,6,!1]}]]}}ngOnInit(){this.form=this.formBuilder.group({editor:[this.value||""]}),this.form.valueChanges.subscribe(y=>{this.valueChanged.emit(y.editor)})}static{this.\u0275fac=function(R){return new(R||N)(o.rXU(te.ok))}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-rich-text-input"]],inputs:{prop:"prop",value:"value",isError:"isError"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.aNF],decls:5,vars:7,consts:[[3,"for"],[3,"formGroup"],[1,"control",3,"ngClass"],["placeholder","","formControlName","editor",3,"modules"]],template:function(R,A){1&R&&(o.j41(0,"label",0),o.EFF(1),o.k0s(),o.j41(2,"form",1)(3,"div",2),o.nrm(4,"quill-editor",3),o.k0s()()),2&R&&(o.Y8G("for",A.prop.name),o.R7$(),o.JRh(A.prop.name),o.R7$(),o.Y8G("formGroup",A.form),o.R7$(),o.Y8G("ngClass",o.eq3(5,eo,A.isError)),o.R7$(),o.Y8G("modules",A.modules))},dependencies:[h.YU,Cr,ft,te.X1,te.qT,te.BC,te.cb,te.j4,te.JD],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";.control[_ngcontent-%COMP%]{min-height:200px}']})}}return N})();function no(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-text-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function mi(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-rich-text-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function kt(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-number-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function vi(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-url-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function Ui(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-textarea-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function $n(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-select-input",7),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("relationship",y.relationship)("value",y.value)("isError",y.isError)}}function yi(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-multi-select-input",7),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("relationship",y.relationship)("value",y.value)("isError",y.isError)}}function ro(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-currency-input",8),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("currency",null==y.prop||null==y.prop.options?null:y.prop.options.currency)("isError",y.isError)}}function Wo(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-boolean-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function Jr(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-email-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function Ar(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-date-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function ei(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-timestamp-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function li(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-password-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function Ai(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-location-input",6),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("value",y.value)("isError",y.isError)}}function rr(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-file-input",9),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("entitySlug",y.entityManifest.slug)("value",y.value)("isError",y.isError)}}function $r(N,se){if(1&N){const y=o.RV6();o.j41(0,"app-image-input",9),o.bIt("valueChanged",function(A){o.eBV(y);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const y=o.XpG();o.Y8G("prop",y.prop)("entitySlug",y.entityManifest.slug)("value",y.value)("isError",y.isError)}}function Dr(N,se){if(1&N&&(o.j41(0,"li",11),o.EFF(1),o.k0s()),2&N){const y=se.$implicit;o.R7$(),o.JRh(y)}}function Oi(N,se){if(1&N&&(o.j41(0,"ul"),o.DNE(1,Dr,2,1,"li",10),o.k0s()),2&N){const y=o.XpG();o.R7$(),o.Y8G("ngForOf",y.errors)}}function Er(N,se){if(1&N&&(o.j41(0,"p",12),o.EFF(1),o.k0s()),2&N){const y=o.XpG();o.R7$(),o.SpI(" ",y.helpText," ")}}let Hr=(()=>{class N{constructor(){this.valueChanged=new o.bkB,this.PropType=z.Kk}onChange(y){this.valueChanged.emit(y)}ngOnChanges(){this.isError=!!this.errors?.length,this.helpText=this.prop?.helpText||this.relationship?.helpText}static{this.\u0275fac=function(R){return new(R||N)}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-input"]],inputs:{prop:"prop",entityManifest:"entityManifest",relationship:"relationship",value:"value",errors:"errors"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.OA$,o.aNF],decls:18,vars:18,consts:[[3,"prop","value","isError","valueChanged",4,"ngIf"],[3,"prop","relationship","value","isError","valueChanged",4,"ngIf"],[3,"prop","value","currency","isError","valueChanged",4,"ngIf"],[3,"prop","entitySlug","value","isError","valueChanged",4,"ngIf"],[4,"ngIf"],["class","help",4,"ngIf"],[3,"valueChanged","prop","value","isError"],[3,"valueChanged","prop","relationship","value","isError"],[3,"valueChanged","prop","value","currency","isError"],[3,"valueChanged","prop","entitySlug","value","isError"],["class","has-text-danger",4,"ngFor","ngForOf"],[1,"has-text-danger"],[1,"help"]],template:function(R,A){1&R&&o.DNE(0,no,1,3,"app-text-input",0)(1,mi,1,3,"app-rich-text-input",0)(2,kt,1,3,"app-number-input",0)(3,vi,1,3,"app-url-input",0)(4,Ui,1,3,"app-textarea-input",0)(5,$n,1,4,"app-select-input",1)(6,yi,1,4,"app-multi-select-input",1)(7,ro,1,4,"app-currency-input",2)(8,Wo,1,3,"app-boolean-input",0)(9,Jr,1,3,"app-email-input",0)(10,Ar,1,3,"app-date-input",0)(11,ei,1,3,"app-timestamp-input",0)(12,li,1,3,"app-password-input",0)(13,Ai,1,3,"app-location-input",0)(14,rr,1,4,"app-file-input",3)(15,$r,1,4,"app-image-input",3)(16,Oi,2,1,"ul",4)(17,Er,2,1,"p",5),2&R&&(o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.String),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.RichText),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Number),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Link),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Text),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Choice||"many-to-one"===(null==A.relationship?null:A.relationship.type)),o.R7$(),o.Y8G("ngIf","many-to-many"===(null==A.relationship?null:A.relationship.type)),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Money),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Boolean),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Email),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Date),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Timestamp),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Password),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Location),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.File),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Image),o.R7$(),o.Y8G("ngIf",null==A.errors?null:A.errors.length),o.R7$(),o.Y8G("ngIf",A.helpText))},dependencies:[h.MD,h.Sq,h.bT,J,oe,Oe,_n,He,sn,Ke,Vn,ue,tt,cn,dt,bt,Yt,ai,to],encapsulation:2})}}return N})()},9e3:(Ze,de,b)=>{b.d(de,{X:()=>o});var h=b(8284);let o=(()=>{class z{transform(T){return typeof T>"u"||null===T||""===T?"":T[0].toUpperCase()+T.substr(1).toLowerCase()}static{this.\u0275fac=function(ge){return new(ge||z)}}static{this.\u0275pipe=h.EJ8({name:"capitalizeFirstLetter",type:z,pure:!0,standalone:!0})}}return z})()},818:(Ze,de,b)=>{b.d(de,{L:()=>z});var h=b(1087),o=b(8284);let z=(()=>{class X{constructor(){this.flashMessageTimeOut=5e3,this.flashMessage=new h.B}success(ge){this.flashMessage.next({message:ge,className:"notification is-success"}),this.clear()}error(ge){this.flashMessage.next({message:ge,className:"notification is-danger"}),this.clear()}warning(ge){this.flashMessage.next({message:ge,className:"notification is-warning"}),this.clear()}info(ge){this.flashMessage.next({message:ge,className:"notification is-info"}),this.clear()}clear(){setTimeout(()=>{this.flashMessage.next(null)},this.flashMessageTimeOut)}static{this.\u0275fac=function(J){return new(J||X)}}static{this.\u0275prov=o.jDH({token:X,factory:X.\u0275fac,providedIn:"root"})}}return X})()},2283:(Ze,de,b)=>{b.d(de,{x:()=>ve});var h=b(7431),o=b(8033),z=b(4534),X=b(8128),T=b(9606),ge=b(8284),J=b(7906),ye=b(5640);let ve=(()=>{class oe{constructor(he,Oe){this.authService=he,this.http=Oe,this.manifestPromise=null}getManifest(){return this.manifestPromise||(this.manifestPromise=(0,o._)(this.authService.currentUser$.pipe((0,z.p)(he=>!!he),(0,X.n)(()=>this.http.get(`${T.c.apiBaseUrl}/manifest`)))).catch(he=>{throw this.manifestPromise=null,he})),this.manifestPromise}getAppName(){var he=this;return(0,h.A)(function*(){return(0,o._)(he.http.get(`${T.c.apiBaseUrl}/manifest/app-name`)).then(Oe=>Oe.name).catch(Oe=>{throw Oe})})()}getEntityManifest(he){var Oe=this;return(0,h.A)(function*({slug:q,className:me}){if(!q&&!me)throw new Error("Either slug or className must be provided");return Oe.manifestPromise?Oe.manifestPromise.then(He=>Object.values(He.entities).find(Pe=>Pe.slug===q||Pe.className===me)):(0,o._)(Oe.http.get(`${T.c.apiBaseUrl}/manifest/entities/${q}`))}).apply(this,arguments)}static{this.\u0275fac=function(Oe){return new(Oe||oe)(ge.KVO(J.u),ge.KVO(ye.Qq))}}static{this.\u0275prov=ge.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"})}}return oe})()},9879:(Ze,de,b)=>{b.d(de,{R:()=>X});var h=b(8284),o=b(2283),z=b(7711);let X=(()=>{class T{constructor(J,ye){this.title=ye,this.appName="Manifest",J.getManifest().then(ve=>{this.appName=ve.name})}setTitle(J){this.title.setTitle(`${J} | ${this.appName}`)}static{this.\u0275fac=function(ye){return new(ye||T)(h.KVO(o.x),h.KVO(z.hE))}}static{this.\u0275prov=h.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})()},8023:(Ze,de,b)=>{b.d(de,{G:()=>ge});var h=b(2943),o=b(5640),z=b(8428),X=b(818),T=b(8284);let ge=(()=>{class J{static{this.\u0275fac=function(oe){return new(oe||J)}}static{this.\u0275mod=T.$C({type:J})}static{this.\u0275inj=T.G2t({providers:[X.L],imports:[h.MD,o.q1,z.S]})}}return J})()},4385:(Ze,de,b)=>{b.d(de,{Fr:()=>z,Xw:()=>o,il:()=>h});const h="manifestToken",o="Admin",z={email:"admin@manifest.build",password:"admin"}},9606:(Ze,de,b)=>{b.d(de,{c:()=>h});const h={production:!0,apiBaseUrl:"/api"}},6543:(Ze,de,b)=>{var h=b(7711),o=b(8284),z=b(2943),X=b(2816),T=b(3575),ge=b(6852),J=b(1467),ye=b(5640);const ve=new o.nKC("JWT_OPTIONS");let oe=(()=>{class Y{constructor(K=null){this.tokenGetter=K&&K.tokenGetter||function(){}}urlBase64Decode(K){let pe=K.replace(/-/g,"+").replace(/_/g,"/");switch(pe.length%4){case 0:break;case 2:pe+="==";break;case 3:pe+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(pe)}b64decode(K){let je="";if((K=String(K).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let nt,pt,Yt=0,Pt=0;pt=K.charAt(Pt++);~pt&&(nt=Yt%4?64*nt+pt:pt,Yt++%4)?je+=String.fromCharCode(255&nt>>(-2*Yt&6)):0)pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(pt);return je}b64DecodeUnicode(K){return decodeURIComponent(Array.prototype.map.call(this.b64decode(K),pe=>"%"+("00"+pe.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(K=this.tokenGetter()){return K instanceof Promise?K.then(pe=>this._decodeToken(pe)):this._decodeToken(K)}_decodeToken(K){if(!K||""===K)return null;const pe=K.split(".");if(3!==pe.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");const je=this.urlBase64Decode(pe[1]);if(!je)throw new Error("Cannot decode the token.");return JSON.parse(je)}getTokenExpirationDate(K=this.tokenGetter()){return K instanceof Promise?K.then(pe=>this._getTokenExpirationDate(pe)):this._getTokenExpirationDate(K)}_getTokenExpirationDate(K){let pe;if(pe=this.decodeToken(K),!pe||!pe.hasOwnProperty("exp"))return null;const je=new Date(0);return je.setUTCSeconds(pe.exp),je}isTokenExpired(K=this.tokenGetter(),pe){return K instanceof Promise?K.then(je=>this._isTokenExpired(je,pe)):this._isTokenExpired(K,pe)}_isTokenExpired(K,pe){if(!K||""===K)return!0;const je=this.getTokenExpirationDate(K);return pe=pe||0,null!==je&&!(je.valueOf()>(new Date).valueOf()+1e3*pe)}getAuthScheme(K,pe){return"function"==typeof K?K(pe):K}}return Y.\u0275fac=function(K){return new(K||Y)(o.KVO(ve))},Y.\u0275prov=o.jDH({token:Y,factory:Y.\u0275fac}),Y})();const Q=Y=>Y instanceof Promise?(0,ge.v)(()=>Y):(0,J.of)(Y);let he=(()=>{class Y{constructor(K,pe,je){this.jwtHelper=pe,this.document=je,this.standardPorts=["80","443"],this.tokenGetter=K.tokenGetter,this.headerName=K.headerName||"Authorization",this.authScheme=K.authScheme||""===K.authScheme?K.authScheme:"Bearer ",this.allowedDomains=K.allowedDomains||[],this.disallowedRoutes=K.disallowedRoutes||[],this.throwNoTokenError=K.throwNoTokenError||!1,this.skipWhenExpired=K.skipWhenExpired}isAllowedDomain(K){const pe=new URL(K.url,this.document.location.origin);if(pe.host===this.document.location.host)return!0;const je=`${pe.hostname}${pe.port&&!this.standardPorts.includes(pe.port)?":"+pe.port:""}`;return this.allowedDomains.findIndex(Yt=>"string"==typeof Yt?Yt===je:Yt instanceof RegExp&&Yt.test(je))>-1}isDisallowedRoute(K){const pe=new URL(K.url,this.document.location.origin);return this.disallowedRoutes.findIndex(je=>{if("string"==typeof je){const Yt=new URL(je,this.document.location.origin);return Yt.hostname===pe.hostname&&Yt.pathname===pe.pathname}return je instanceof RegExp&&je.test(K.url)})>-1}handleInterception(K,pe,je){const Yt=this.jwtHelper.getAuthScheme(this.authScheme,pe);if(!K&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");let nt=(0,J.of)(!1);return this.skipWhenExpired&&(nt=K?Q(this.jwtHelper.isTokenExpired(K)):(0,J.of)(!0)),K?nt.pipe((0,X.T)(pt=>pt&&this.skipWhenExpired?pe.clone():pe.clone({setHeaders:{[this.headerName]:`${Yt}${K}`}})),(0,T.Z)(pt=>je.handle(pt))):je.handle(pe)}intercept(K,pe){if(!this.isAllowedDomain(K)||this.isDisallowedRoute(K))return pe.handle(K);const je=this.tokenGetter(K);return Q(je).pipe((0,T.Z)(Yt=>this.handleInterception(Yt,K,pe)))}}return Y.\u0275fac=function(K){return new(K||Y)(o.KVO(ve),o.KVO(oe),o.KVO(z.qQ))},Y.\u0275prov=o.jDH({token:Y,factory:Y.\u0275fac}),Y})(),Oe=(()=>{class Y{constructor(K){if(K)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")}static forRoot(K){return{ngModule:Y,providers:[{provide:ye.a7,useClass:he,multi:!0},K.jwtOptionsProvider||{provide:ve,useValue:K.config},oe]}}}return Y.\u0275fac=function(K){return new(K||Y)(o.KVO(Y,12))},Y.\u0275mod=o.$C({type:Y}),Y.\u0275inj=o.G2t({}),Y})();var q=b(4385),me=b(183),He=b(818);let Pe=(()=>{class Y{constructor(K,pe){this.router=K,this.flashMessageService=pe}canActivate(){return!!localStorage.getItem(q.il)||(this.router.navigate(["/","auth","login"]),this.flashMessageService.info("You need to be logged in to access this page."),!1)}static{this.\u0275fac=function(pe){return new(pe||Y)(o.KVO(me.Ix),o.KVO(He.L))}}static{this.\u0275prov=o.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}}return Y})();var Ye=b(9879);let lt=(()=>{class Y{constructor(K){K.setTitle("Page not found")}static{this.\u0275fac=function(pe){return new(pe||Y)(o.rXU(Ye.R))}}static{this.\u0275cmp=o.VBU({type:Y,selectors:[["app-error404"]],decls:10,vars:0,consts:[[1,"wrapper--basic"],[1,"title","is-1"],[1,"is-size-5","mb-4"],["routerLink","/",1,"button","is-link","mt-3"]],template:function(pe,je){1&pe&&(o.j41(0,"div",0)(1,"span"),o.EFF(2,"404"),o.k0s(),o.j41(3,"h1",1),o.EFF(4,"Page not found"),o.k0s(),o.j41(5,"p",2),o.EFF(6," The page you are looking for doesn't exist or has been moved "),o.k0s(),o.j41(7,"p")(8,"a",3),o.EFF(9," Back to Homepage "),o.k0s()()())},dependencies:[me.Wk],styles:["span[_ngcontent-%COMP%]{font-size:11rem}"]})}}return Y})();var bt=b(2283),Se=b(9e3);const we=Y=>["/collections",Y],Ge=Y=>["/singles",Y,"edit"];function ze(Y,Dt){1&Y&&(o.j41(0,"div",0),o.nrm(1,"hr"),o.j41(2,"div",7)(3,"p",8),o.EFF(4," Resources "),o.k0s()(),o.j41(5,"div",9)(6,"a",10)(7,"div",11)(8,"div",12)(9,"article",13)(10,"figure",14)(11,"p",15),o.nrm(12,"img",16),o.k0s()(),o.j41(13,"div",17)(14,"div",3)(15,"p",18),o.EFF(16," Documentation "),o.k0s(),o.j41(17,"p"),o.EFF(18,"Find out how how to to play with Manifest"),o.k0s()()(),o.j41(19,"figure",19),o.nrm(20,"i",20),o.k0s()()()()()(),o.j41(21,"div",7)(22,"p",8),o.EFF(23," Feedback & Support "),o.k0s()(),o.j41(24,"div",9)(25,"a",21)(26,"div",11)(27,"div",12)(28,"article",13)(29,"figure",14)(30,"p",15),o.nrm(31,"img",22),o.k0s()(),o.j41(32,"div",17)(33,"div",3)(34,"p",18),o.EFF(35," We need you \u{1f64f} "),o.k0s(),o.j41(36,"p"),o.EFF(37,"Share your feedback and suggestions"),o.k0s()()(),o.j41(38,"figure",19),o.nrm(39,"i",20),o.k0s()()()()()(),o.j41(40,"div",9)(41,"a",23)(42,"div",11)(43,"div",12)(44,"article",13)(45,"figure",14)(46,"p",15),o.nrm(47,"img",24),o.k0s()(),o.j41(48,"div",17)(49,"div",3)(50,"p",18),o.EFF(51," Stuck ? "),o.k0s(),o.j41(52,"p"),o.EFF(53,"Get help from the community on our Discord"),o.k0s()()(),o.j41(54,"figure",19),o.nrm(55,"i",20),o.k0s()()()()()()())}function Ve(Y,Dt){if(1&Y&&(o.j41(0,"div",26)(1,"a",27)(2,"div",28)(3,"div",12)(4,"article",13)(5,"div",17)(6,"div",3)(7,"p",18)(8,"span"),o.EFF(9),o.nI1(10,"capitalizeFirstLetter"),o.k0s()()()(),o.j41(11,"figure",19),o.nrm(12,"i",20),o.k0s()()()()()()),2&Y){const K=Dt.$implicit;o.R7$(),o.Y8G("routerLink",o.eq3(4,we,K.slug)),o.R7$(8),o.JRh(o.bMT(10,2,K.namePlural))}}function Ue(Y,Dt){if(1&Y&&(o.j41(0,"div",0)(1,"div",7),o.nrm(2,"hr"),o.j41(3,"p",8),o.EFF(4," Start navigating through your collections "),o.k0s()(),o.DNE(5,Ve,13,6,"div",25),o.k0s()),2&Y){const K=o.XpG(2);o.R7$(5),o.Y8G("ngForOf",K.collections)}}function Qe(Y,Dt){if(1&Y&&(o.j41(0,"div",26)(1,"a",27)(2,"div",28)(3,"div",12)(4,"article",13)(5,"div",17)(6,"div",3)(7,"p",18)(8,"span"),o.EFF(9),o.nI1(10,"capitalizeFirstLetter"),o.k0s()()()(),o.j41(11,"figure",19),o.nrm(12,"i",20),o.k0s()()()()()()),2&Y){const K=Dt.$implicit;o.R7$(),o.Y8G("routerLink",o.eq3(4,Ge,K.slug)),o.R7$(8),o.JRh(o.bMT(10,2,K.nameSingular))}}function it(Y,Dt){if(1&Y&&(o.j41(0,"div",0)(1,"div",7),o.nrm(2,"hr"),o.j41(3,"p",8),o.EFF(4," Edit your single entities "),o.k0s()(),o.DNE(5,Qe,13,6,"div",25),o.k0s()),2&Y){const K=o.XpG(2);o.R7$(5),o.Y8G("ngForOf",K.singles)}}function Je(Y,Dt){if(1&Y&&(o.j41(0,"div",3)(1,"h1"),o.EFF(2),o.k0s(),o.j41(3,"p",4),o.EFF(4," Proudly built with "),o.j41(5,"a",5),o.EFF(6,"Manifest"),o.k0s(),o.EFF(7,". "),o.k0s(),o.j41(8,"div"),o.DNE(9,ze,56,0,"div",6)(10,Ue,6,1,"div",6)(11,it,6,1,"div",6),o.k0s()()),2&Y){const K=o.XpG();o.R7$(2),o.JRh(K.appManifest.name),o.R7$(7),o.Y8G("ngIf",!K.appManifest.production),o.R7$(),o.Y8G("ngIf",null==K.collections?null:K.collections.length),o.R7$(),o.Y8G("ngIf",null==K.singles?null:K.singles.length)}}const ke=[{path:"",component:(()=>{class Y{constructor(K,pe){this.manifestService=K,this.metaService=pe}ngOnInit(){this.manifestService.getManifest().then(K=>{this.appManifest=K,this.collections=Object.values(K.entities||{}).filter(pe=>pe.className!==q.Xw).filter(pe=>!pe.single).filter(pe=>!pe.nested),this.singles=Object.values(K.entities||{}).filter(pe=>pe.single),this.metaService.setTitle("Admin panel")})}static{this.\u0275fac=function(pe){return new(pe||Y)(o.rXU(bt.x),o.rXU(Ye.R))}}static{this.\u0275cmp=o.VBU({type:Y,selectors:[["app-home"]],decls:3,vars:1,consts:[[1,"columns","is-multiline"],[1,"column","is-10-tablet","is-offset-1-tablet","is-8-widescreen","is-offset-2-widescreen","is-6-fullhd","is-offset-3-fullhd"],["class","content",4,"ngIf"],[1,"content"],[1,"is-size-5"],["href","https://manifest.build","target","_blank"],["class","columns is-multiline",4,"ngIf"],[1,"column","is-12","pb-0"],[1,"is-uppercase","has-text-dark","has-text-weight-medium"],[1,"column","is-12"],["href","https://manifest.build/docs","target","_blank",1,"card-link"],[1,"card","p-0","is-overflow-hidden","is-shadowless","is-bordered"],[1,"card-content","p-0"],[1,"media","is-flex","is-align-items-center"],[1,"media-left","m-0"],[1,"image","is-64x64"],["src","/assets/images/ext-link-01.svg"],[1,"media-content","is-flex","is-align-items-center","is-justify-content-flex-start","pl-4","is-fullheight"],[1,"is-size-5","has-text-weight-bold","mb-0"],[1,"media-right","my-0","ml-1","mr-4","is-inline-flex","is-justify-content-center"],[1,"icon","icon-arrow-right"],["href","https://github.com/mnfst/manifest/discussions/categories/feedback","target","_blank",1,"card-link"],["src","/assets/images/ext-link-gh.svg"],["href","https://discord.com/invite/FepAked3W7","target","_blank",1,"card-link"],["src","/assets/images/ext-link-dc.svg"],["class","column is-6",4,"ngFor","ngForOf"],[1,"column","is-6"],["routerLinkActive","is-active",1,"card-link",3,"routerLink"],[1,"card","p-0","is-overflow-hidden","is-shadowless","is-bordered","is-entity-link"]],template:function(pe,je){1&pe&&(o.j41(0,"div",0)(1,"div",1),o.DNE(2,Je,12,4,"div",2),o.k0s()()),2&pe&&(o.R7$(2),o.Y8G("ngIf",je.appManifest))},dependencies:[z.Sq,z.bT,me.Wk,me.wQ,Se.X],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";.is-entity-link[_ngcontent-%COMP%]{height:64px;display:flex;align-items:center}.card-link[_ngcontent-%COMP%]{border-color:#dddde2;transition:border-color .54s cubic-bezier(.165,.84,.44,1)}.card-link[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{display:none}.card-link[_ngcontent-%COMP%]:hover .card[_ngcontent-%COMP%]{transition:border-color .54s cubic-bezier(.165,.84,.44,1);color:#000;border-color:#39393c}']})}}return Y})(),canActivate:[Pe]},{path:"auth",loadChildren:()=>Promise.resolve().then(b.bind(b,4783)).then(Y=>Y.AuthModule)},{path:"collections",loadChildren:()=>Promise.all([b.e(69),b.e(45)]).then(b.bind(b,4045)).then(Y=>Y.CrudCollectionModule),canActivate:[Pe],data:{mode:"collection"}},{path:"singles",loadChildren:()=>Promise.all([b.e(69),b.e(693)]).then(b.bind(b,8693)).then(Y=>Y.CrudSingleModule),canActivate:[Pe]},{path:"404",component:lt,canActivate:[Pe]},{path:"**",redirectTo:"/404"}];let yn=(()=>{class Y{static{this.\u0275fac=function(pe){return new(pe||Y)}}static{this.\u0275mod=o.$C({type:Y})}static{this.\u0275inj=o.G2t({imports:[me.iI.forRoot(ke),me.iI]})}}return Y})();var be=b(7906);function Ke(Y,Dt){if(1&Y&&(o.j41(0,"div",1)(1,"p",2),o.EFF(2),o.k0s()()),2&Y){const K=o.XpG();o.Y8G("ngClass",K.flashMessage.className),o.R7$(2),o.JRh(K.flashMessage.message)}}let mt=(()=>{class Y{constructor(K){this.flashMessageService=K}ngOnInit(){this.flashMessageService.flashMessage.subscribe(K=>{this.flashMessage=K})}static{this.\u0275fac=function(pe){return new(pe||Y)(o.rXU(He.L))}}static{this.\u0275cmp=o.VBU({type:Y,selectors:[["app-flash-message"]],decls:1,vars:1,consts:[["class","flash-messages notification",3,"ngClass",4,"ngIf"],[1,"flash-messages","notification",3,"ngClass"],[1,"is-size-5"]],template:function(pe,je){1&pe&&o.DNE(0,Ke,3,2,"div",0),2&pe&&o.Y8G("ngIf",je.flashMessage)},dependencies:[z.YU,z.bT]})}}return Y})();var Mt=b(4534);const Vn=Y=>({"is-active":Y});function ne(Y,Dt){if(1&Y&&(o.j41(0,"span",9)(1,"strong"),o.EFF(2),o.k0s()()),2&Y){const K=o.XpG();o.R7$(2),o.JRh(K.currentUser.email)}}let re=(()=>{class Y{constructor(K,pe){this.authService=K,this.elementRef=pe,this.showUserMenu=!1}ngOnInit(){this.authService.currentUser$.pipe((0,Mt.p)(K=>!!K)).subscribe(K=>{this.currentUser=K})}onClick(K){this.elementRef.nativeElement.contains(K)||(this.showUserMenu=!1)}static{this.\u0275fac=function(pe){return new(pe||Y)(o.rXU(be.u),o.rXU(o.aKT))}}static{this.\u0275cmp=o.VBU({type:Y,selectors:[["app-user-menu-item"]],hostBindings:function(pe,je){1&pe&&o.bIt("click",function(nt){return je.onClick(nt.target)},!1,o.EBC)},decls:10,vars:4,consts:[[1,"is-flex","is-align-items-center","is-justify-content-flex-start"],[1,"dropdown","is-up",3,"ngClass"],[1,"dropdown-trigger"],[1,"is-flex","is-align-items-center","is-justify-content-flex-start",3,"click"],["src","/assets/images/avatar-default.svg","title","currentUser.name","alt","currentUser.name",1,"avatar"],["class","dropdown-item pr-0",4,"ngIf"],["role","menu",1,"dropdown-menu","is-small"],[1,"dropdown-content"],["routerLink","/auth/logout",1,"dropdown-item",3,"click"],[1,"dropdown-item","pr-0"]],template:function(pe,je){1&pe&&(o.nrm(0,"div",0),o.j41(1,"div",1)(2,"div",2)(3,"a",3),o.bIt("click",function(){return je.showUserMenu=!je.showUserMenu}),o.nrm(4,"img",4),o.DNE(5,ne,3,1,"span",5),o.k0s()(),o.j41(6,"div",6)(7,"div",7)(8,"a",8),o.bIt("click",function(){return je.showUserMenu=!1}),o.EFF(9," Sign out "),o.k0s()()()()),2&pe&&(o.R7$(),o.Y8G("ngClass",o.eq3(2,Vn,je.showUserMenu)),o.R7$(4),o.Y8G("ngIf",je.currentUser))},dependencies:[z.YU,z.bT,me.Wk],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";.dropdown-trigger[_ngcontent-%COMP%]{max-width:100%;min-width:100%}@media screen and (max-width: 1023px){.dropdown-trigger[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{width:100%;height:100%;display:inline-flex;box-sizing:content-box;align-items:center;justify-content:center;margin-right:32px}}@media screen and (max-width: 767px){.dropdown-trigger[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{margin-right:30px}}.dropdown[_ngcontent-%COMP%]{max-width:100%;min-width:100%}.dropdown-item[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;width:100%;overflow:hidden}.avatar[_ngcontent-%COMP%]{border-radius:6px}']})}}return Y})();const ue=Y=>["/singles",Y],te=Y=>["/collections",Y];function Me(Y,Dt){if(1&Y&&(o.j41(0,"li")(1,"a",13)(2,"span"),o.EFF(3),o.nI1(4,"capitalizeFirstLetter"),o.k0s()()()),2&Y){const K=Dt.$implicit;o.R7$(),o.Y8G("routerLink",o.eq3(4,ue,K.slug)),o.R7$(2),o.JRh(o.bMT(4,2,K.nameSingular))}}function Te(Y,Dt){if(1&Y&&(o.qex(0),o.DNE(1,Me,5,6,"li",12),o.nrm(2,"hr"),o.bVm()),2&Y){const K=o.XpG();o.R7$(),o.Y8G("ngForOf",K.singles)}}function tt(Y,Dt){1&Y&&o.nrm(0,"i",15)}function Rt(Y,Dt){1&Y&&o.nrm(0,"i",16)}function Jt(Y,Dt){if(1&Y&&(o.j41(0,"li")(1,"a",13)(2,"span"),o.EFF(3),o.nI1(4,"capitalizeFirstLetter"),o.k0s()()()),2&Y){const K=Dt.$implicit;o.R7$(),o.Y8G("routerLink",o.eq3(4,te,K.slug)),o.R7$(2),o.JRh(o.bMT(4,2,K.namePlural))}}function dt(Y,Dt){1&Y&&(o.j41(0,"li")(1,"a",17)(2,"span"),o.EFF(3,"No collection yet"),o.k0s()()())}function Ut(Y,Dt){if(1&Y&&(o.j41(0,"ul"),o.DNE(1,Jt,5,6,"li",12)(2,dt,4,0,"li",5),o.k0s()),2&Y){const K=o.XpG(2);o.R7$(),o.Y8G("ngForOf",K.collections),o.R7$(),o.Y8G("ngIf",0===K.collections.length)}}function Xe(Y,Dt){if(1&Y){const K=o.RV6();o.j41(0,"li")(1,"a",6),o.bIt("click",function(){o.eBV(K);const je=o.XpG();return o.Njj(je.isCollectionsOpen=!je.isCollectionsOpen)}),o.j41(2,"span",7),o.nrm(3,"i",14),o.j41(4,"span",9),o.EFF(5,"Collections"),o.k0s()(),o.DNE(6,tt,1,0,"i",10)(7,Rt,1,0,"i",11),o.k0s(),o.DNE(8,Ut,3,2,"ul",5),o.k0s()}if(2&Y){const K=o.XpG();o.R7$(6),o.Y8G("ngIf",!K.isCollectionsOpen),o.R7$(),o.Y8G("ngIf",K.isCollectionsOpen),o.R7$(),o.Y8G("ngIf",K.isCollectionsOpen)}}function cn(Y,Dt){1&Y&&o.nrm(0,"i",15)}function Bt(Y,Dt){1&Y&&o.nrm(0,"i",16)}function xt(Y,Dt){1&Y&&(o.j41(0,"ul")(1,"li")(2,"a",18),o.EFF(3,"Admins"),o.k0s()()())}let sn=(()=>{class Y{constructor(K){this.manifestService=K,this.isCollectionsOpen=!1,this.isSettingsOpen=!1}ngOnInit(){this.manifestService.getManifest().then(K=>{this.collections=Object.values(K.entities||{}).filter(pe=>pe.className!==q.Xw).filter(pe=>!pe.single).filter(pe=>!pe.nested),this.singles=Object.values(K.entities||{}).filter(pe=>pe.single)})}static{this.\u0275fac=function(pe){return new(pe||Y)(o.rXU(bt.x))}}static{this.\u0275cmp=o.VBU({type:Y,selectors:[["app-side-menu"]],decls:18,vars:5,consts:[[1,"side-menu-wrapper","is-flex","is-flex-direction-column","is-justify-content-space-between"],[1,"logo-wrapper","is-hidden-touch"],["routerLink","/",1,"logo"],["src","/assets/images/logo.svg","width","155",1,"logo--image"],[1,"menu-list"],[4,"ngIf"],[1,"has-submenu","is-flex","is-justify-content-space-between",3,"click"],[1,"is-inline-flex","is-align-items-center","is-justify-content-space-between"],[1,"icon","mr-2","icon-sliders","is-size-4"],[1,"pl-1"],["class","icon icon-chevron-down",4,"ngIf"],["class","icon icon-chevron-up",4,"ngIf"],[4,"ngFor","ngForOf"],["routerLinkActive","is-active",3,"routerLink"],[1,"icon","mr-2","icon-database","is-size-4"],[1,"icon","icon-chevron-down"],[1,"icon","icon-chevron-up"],[1,"has-background-white-bis","has-text-grey",2,"pointer-events","none"],["routerLink","/collections/admins"]],template:function(pe,je){1&pe&&(o.j41(0,"div",0)(1,"div",1)(2,"a",2),o.nrm(3,"img",3),o.k0s()(),o.j41(4,"ul",4),o.DNE(5,Te,3,1,"ng-container",5)(6,Xe,9,3,"li",5),o.nrm(7,"hr"),o.j41(8,"li")(9,"a",6),o.bIt("click",function(){return je.isSettingsOpen=!je.isSettingsOpen}),o.j41(10,"span",7),o.nrm(11,"i",8),o.j41(12,"span",9),o.EFF(13,"Settings"),o.k0s()(),o.DNE(14,cn,1,0,"i",10)(15,Bt,1,0,"i",11),o.k0s(),o.DNE(16,xt,4,0,"ul",5),o.k0s()(),o.nrm(17,"app-user-menu-item"),o.k0s()),2&pe&&(o.R7$(5),o.Y8G("ngIf",null==je.singles?null:je.singles.length),o.R7$(),o.Y8G("ngIf",je.collections),o.R7$(8),o.Y8G("ngIf",!je.isSettingsOpen),o.R7$(),o.Y8G("ngIf",je.isSettingsOpen),o.R7$(),o.Y8G("ngIf",je.isSettingsOpen))},dependencies:[z.Sq,z.bT,me.Wk,me.wQ,re,Se.X],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";.menu-list[_ngcontent-%COMP%] a.is-active[_ngcontent-%COMP%], .menu-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:#f5f7f9;color:#000}.menu-list[_ngcontent-%COMP%]{--logo-height: 94px;--footer-height: 54px;--margin: 16px;scrollbar-width:none;padding-top:var(--margin);padding-bottom:var(--margin);margin-bottom:var(--footer-height);overflow-y:overlay;overflow-x:hidden}@media screen and (min-width: 1024px){.menu-list[_ngcontent-%COMP%]{height:calc(100vh - var(--logo-height) - var(--footer-height) + 1px)}}@media screen and (max-width: 1023px){.menu-list[_ngcontent-%COMP%]{height:calc(100vh - 8rem - var(--footer-height) + 1px)}}.menu-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;display:inline-block;width:100%;font-size:1.5rem;padding:1px 8px}.menu-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:5px 0 0;border-left:0;padding-left:0}.menu-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:0}.menu-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-radius:6px;position:relative;color:#303032;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;align-items:center;justify-content:flex-start;width:100%;min-height:36px;line-height:36px;padding:0 16px;transition:color .35s ease,background-color .05s ease-out}.menu-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{transition:color .35s ease,background-color .05s ease-in}.menu-list[_ngcontent-%COMP%] a.is-active[_ngcontent-%COMP%]:before{background-color:#39393c}.menu-list[_ngcontent-%COMP%] a.logo[_ngcontent-%COMP%]{display:flex;align-items:center;height:98px;justify-content:flex-start}.logo-wrapper[_ngcontent-%COMP%]{padding:1.6rem;border-bottom:1px solid #eaeaef}.flex[_ngcontent-%COMP%]{display:flex}app-user-menu-item[_ngcontent-%COMP%]{border-top:1px solid #eaeaef;border-right:1px solid #eaeaef;z-index:99;padding:8px}@media screen and (min-width: 769px),print{app-user-menu-item[_ngcontent-%COMP%]{position:fixed;bottom:0}}.side-menu-wrapper[_ngcontent-%COMP%]{height:100%}']})}}return Y})();const Re=Y=>({"is-open":Y});let _t=(()=>{class Y{constructor(K,pe){this.renderer=K,this.isOpen=!1,pe.events.subscribe(je=>{je instanceof me.wF&&(this.isOpen=!1)})}toggleMenu(){this.isOpen?(this.isOpen=!1,this.renderer.removeClass(document.querySelector("html"),"is-clipped")):(this.isOpen=!0,this.renderer.addClass(document.querySelector("html"),"is-clipped"))}static{this.\u0275fac=function(pe){return new(pe||Y)(o.rXU(o.sFG),o.rXU(me.Ix))}}static{this.\u0275cmp=o.VBU({type:Y,selectors:[["app-touch-menu"]],decls:12,vars:3,consts:[["role","navigation","aria-label","main navigation",1,"navbar",3,"ngClass"],[1,"navbar-wrapper","is-flex","is-align-items-center","is-justify-content-space-between","is-flex-direction-row-reverse","is-fullheight"],["routerLink","/",1,"logo","is-flex","is-align-items-center","is-justify-content-center","px-0"],["src","/assets/images/logo.svg","width","180",1,"logo-image"],["role","button",1,"navbar-burger","burger","ml-0",3,"click"],["aria-hidden","true"],[1,"hiding-layer",3,"click"],["id","create-dropdown",1,"navbar-menu"],[1,"navbar-end"]],template:function(pe,je){1&pe&&(o.j41(0,"nav",0)(1,"div",1)(2,"a",2),o.nrm(3,"img",3),o.k0s(),o.j41(4,"a",4),o.bIt("click",function(){return je.toggleMenu()}),o.nrm(5,"span",5)(6,"span",5)(7,"span",5),o.k0s()(),o.j41(8,"div",6),o.bIt("click",function(){return je.toggleMenu()}),o.k0s(),o.j41(9,"div",7)(10,"div",8),o.nrm(11,"app-side-menu"),o.k0s()()()),2&pe&&o.Y8G("ngClass",o.eq3(1,Re,je.isOpen))},dependencies:[z.YU,me.Wk,sn],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";nav.navbar[_ngcontent-%COMP%]{position:relative;z-index:9;height:8rem;width:100vw;background-color:#fff}nav.navbar[_ngcontent-%COMP%]:before{position:absolute;content:"";top:0;z-index:-1;height:100%;width:100%;border-bottom:1px solid rgba(48,48,50,.1)}@media screen and (min-width: 769px),print{nav.navbar[_ngcontent-%COMP%]:before{left:0;width:100%}}nav.navbar[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{margin-right:8rem}nav.navbar[_ngcontent-%COMP%] .navbar-burger[_ngcontent-%COMP%]{height:8rem;width:8rem;min-width:8rem;color:#303032}@media screen and (min-width: 769px),print{nav.navbar[_ngcontent-%COMP%] .navbar-burger[_ngcontent-%COMP%]{width:8rem}}nav.navbar[_ngcontent-%COMP%] .navbar-burger[_ngcontent-%COMP%]:hover{background-color:transparent;color:#303032}.navbar-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:unset}.buttons[_ngcontent-%COMP%]{padding-right:110px}.dropdown-menu.is-small[_ngcontent-%COMP%]{border:1px solid #eaeaef}.navbar-menu[_ngcontent-%COMP%]{display:block;height:calc(100vh - 8rem);width:260px;position:absolute;top:8rem;left:-261px;z-index:99999;opacity:0;box-shadow:1px 0 #ffffff1a;padding-bottom:0;background-color:#fff;transition:all .16s cubic-bezier(.53,.25,.75,.5)}@media screen and (max-width: 768px){.navbar-menu[_ngcontent-%COMP%]{width:100vw;left:-100vw}}.is-open[_ngcontent-%COMP%] .navbar-menu[_ngcontent-%COMP%]{left:0;opacity:1;transition:all .16s cubic-bezier(.25,.53,.42,.71)}.navbar-end[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;justify-content:space-between}.hiding-layer[_ngcontent-%COMP%]{display:block;position:absolute;top:8rem;left:0;width:100vw;opacity:0;z-index:9999;visibility:hidden;height:calc(100vh - 8rem);background:#303032;transition:opacity .16s ease-in-out,visibility .01s linear .16s}.is-open[_ngcontent-%COMP%] .hiding-layer[_ngcontent-%COMP%]{opacity:.2;visibility:visible;transition:opacity .16s ease-in-out .01s,visibility .01s linear}app-side-menu[_ngcontent-%COMP%]{height:100%}']})}}return Y})();function _n(Y,Dt){1&Y&&(o.qex(0),o.nrm(1,"app-touch-menu",5),o.bVm())}function or(Y,Dt){1&Y&&(o.j41(0,"aside",6),o.nrm(1,"app-side-menu"),o.k0s())}let kr=(()=>{class Y{constructor(K,pe){this.authService=K,this.router=pe,this.isLogin=!0}ngOnInit(){this.router.events.subscribe(K=>{K instanceof me.wF&&(window.scrollTo(0,0),this.isLogin=K.url.includes("/auth/login")||K.url.includes("/auth/welcome"),this.currentUserSubscription=this.authService.currentUser$.subscribe(pe=>{!pe&&localStorage.getItem(q.il)&&this.authService.loadCurrentUser().subscribe()}))})}ngOnDestroy(){this.currentUserSubscription&&this.currentUserSubscription.unsubscribe()}static{this.\u0275fac=function(pe){return new(pe||Y)(o.rXU(be.u),o.rXU(me.Ix))}}static{this.\u0275cmp=o.VBU({type:Y,selectors:[["app-root"]],decls:8,vars:2,consts:[[4,"ngIf"],[1,"wrapper"],[1,"columns"],["class","column aside menu px-0 is-hidden-touch",4,"ngIf"],[1,"column","main"],[1,"is-hidden-desktop"],[1,"column","aside","menu","px-0","is-hidden-touch"]],template:function(pe,je){1&pe&&(o.DNE(0,_n,2,0,"ng-container",0),o.nrm(1,"app-flash-message"),o.j41(2,"div",1)(3,"div",2),o.DNE(4,or,2,0,"aside",3),o.j41(5,"div",4)(6,"main"),o.nrm(7,"router-outlet"),o.k0s()()()()),2&pe&&(o.Y8G("ngIf",!je.isLogin),o.R7$(4),o.Y8G("ngIf",!je.isLogin))},dependencies:[z.bT,me.n3,mt,sn,_t],encapsulation:2})}}return Y})();var mr=b(4783),Nn=b(8023);let ht=(()=>{class Y{static{this.\u0275fac=function(pe){return new(pe||Y)}}static{this.\u0275mod=o.$C({type:Y})}static{this.\u0275inj=o.G2t({imports:[z.MD,me.iI,Nn.G]})}}return Y})(),Ct=(()=>{class Y{static{this.\u0275fac=function(pe){return new(pe||Y)}}static{this.\u0275mod=o.$C({type:Y,bootstrap:[kr]})}static{this.\u0275inj=o.G2t({imports:[h.Bb,Oe.forRoot({config:{tokenGetter:()=>localStorage.getItem(q.il),allowedDomains:["localhost:1111"]}}),yn,Nn.G,ht,mr.AuthModule]})}}return Y})();h.sG().bootstrapModule(Ct).catch(Y=>console.error(Y))},7563:(Ze,de,b)=>{function J(q){if(q.nested)return q.name;if("many-to-one"===q?.type)return q.name+"Id";if("many-to-many"===q?.type)return q.name.endsWith("s")?q.name.slice(0,-1)+"Ids":q.name+"Id";throw new Error("Unknown relationship")}function oe(q){return Object.keys(q).reduce((me,He)=>{const Pe=q?.[He],Ye=q?.[me];return void 0!==Pe?.width&&void 0!==Ye?.width&&Pe.width<Ye.width?He:me})}b.d(de,{yk:()=>J,Gj:()=>oe}),b(5442)},5442:(Ze,de,b)=>{b.d(de,{Kk:()=>h});var h=function(T){return T.String="string",T.Text="text",T.RichText="richText",T.Number="number",T.Link="link",T.Money="money",T.Date="date",T.Timestamp="timestamp",T.Email="email",T.Boolean="boolean",T.Password="password",T.Choice="choice",T.Location="location",T.File="file",T.Image="image",T.Nested="group",T}(h||{})},2410:(Ze,de,b)=>{b.d(de,{t:()=>o});var h=b(1087);class o extends h.B{constructor(X){super(),this._value=X}get value(){return this.getValue()}_subscribe(X){const T=super._subscribe(X);return!T.closed&&X.next(this._value),T}getValue(){const{hasError:X,thrownError:T,_value:ge}=this;if(X)throw T;return this._throwIfClosed(),ge}next(X){super.next(this._value=X)}}},7787:(Ze,de,b)=>{b.d(de,{c:()=>ye});var h=b(3173),o=b(7233),z=b(1852),X=b(9493),T=b(2904),ge=b(2097),J=b(7112);let ye=(()=>{class he{constructor(q){q&&(this._subscribe=q)}lift(q){const me=new he;return me.source=this,me.operator=q,me}subscribe(q,me,He){const Pe=function Q(he){return he&&he instanceof h.vU||function oe(he){return he&&(0,ge.T)(he.next)&&(0,ge.T)(he.error)&&(0,ge.T)(he.complete)}(he)&&(0,o.Uv)(he)}(q)?q:new h.Ms(q,me,He);return(0,J.Y)(()=>{const{operator:Ye,source:lt}=this;Pe.add(Ye?Ye.call(Pe,lt):lt?this._subscribe(Pe):this._trySubscribe(Pe))}),Pe}_trySubscribe(q){try{return this._subscribe(q)}catch(me){q.error(me)}}forEach(q,me){return new(me=ve(me))((He,Pe)=>{const Ye=new h.Ms({next:lt=>{try{q(lt)}catch(bt){Pe(bt),Ye.unsubscribe()}},error:Pe,complete:He});this.subscribe(Ye)})}_subscribe(q){var me;return null===(me=this.source)||void 0===me?void 0:me.subscribe(q)}[z.s](){return this}pipe(...q){return(0,X.m)(q)(this)}toPromise(q){return new(q=ve(q))((me,He)=>{let Pe;this.subscribe(Ye=>Pe=Ye,Ye=>He(Ye),()=>me(Pe))})}}return he.create=Oe=>new he(Oe),he})();function ve(he){var Oe;return null!==(Oe=he??T.$.Promise)&&void 0!==Oe?Oe:Promise}},1087:(Ze,de,b)=>{b.d(de,{B:()=>J});var h=b(7787),o=b(7233);const X=(0,b(1531).L)(ve=>function(){ve(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var T=b(2070),ge=b(7112);let J=(()=>{class ve extends h.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Q){const he=new ye(this,this);return he.operator=Q,he}_throwIfClosed(){if(this.closed)throw new X}next(Q){(0,ge.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const he of this.currentObservers)he.next(Q)}})}error(Q){(0,ge.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Q;const{observers:he}=this;for(;he.length;)he.shift().error(Q)}})}complete(){(0,ge.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Q}=this;for(;Q.length;)Q.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Q;return(null===(Q=this.observers)||void 0===Q?void 0:Q.length)>0}_trySubscribe(Q){return this._throwIfClosed(),super._trySubscribe(Q)}_subscribe(Q){return this._throwIfClosed(),this._checkFinalizedStatuses(Q),this._innerSubscribe(Q)}_innerSubscribe(Q){const{hasError:he,isStopped:Oe,observers:q}=this;return he||Oe?o.Kn:(this.currentObservers=null,q.push(Q),new o.yU(()=>{this.currentObservers=null,(0,T.o)(q,Q)}))}_checkFinalizedStatuses(Q){const{hasError:he,thrownError:Oe,isStopped:q}=this;he?Q.error(Oe):q&&Q.complete()}asObservable(){const Q=new h.c;return Q.source=this,Q}}return ve.create=(oe,Q)=>new ye(oe,Q),ve})();class ye extends J{constructor(oe,Q){super(),this.destination=oe,this.source=Q}next(oe){var Q,he;null===(he=null===(Q=this.destination)||void 0===Q?void 0:Q.next)||void 0===he||he.call(Q,oe)}error(oe){var Q,he;null===(he=null===(Q=this.destination)||void 0===Q?void 0:Q.error)||void 0===he||he.call(Q,oe)}complete(){var oe,Q;null===(Q=null===(oe=this.destination)||void 0===oe?void 0:oe.complete)||void 0===Q||Q.call(oe)}_subscribe(oe){var Q,he;return null!==(he=null===(Q=this.source)||void 0===Q?void 0:Q.subscribe(oe))&&void 0!==he?he:o.Kn}}},3173:(Ze,de,b)=>{b.d(de,{Ms:()=>He,vU:()=>he});var h=b(2097),o=b(7233),z=b(2904),X=b(8508),T=b(9405);const ge=ve("C",void 0,void 0);function ve(Se,we,Ge){return{kind:Se,value:we,error:Ge}}var oe=b(7680),Q=b(7112);class he extends o.yU{constructor(we){super(),this.isStopped=!1,we?(this.destination=we,(0,o.Uv)(we)&&we.add(this)):this.destination=bt}static create(we,Ge,ze){return new He(we,Ge,ze)}next(we){this.isStopped?lt(function ye(Se){return ve("N",Se,void 0)}(we),this):this._next(we)}error(we){this.isStopped?lt(function J(Se){return ve("E",void 0,Se)}(we),this):(this.isStopped=!0,this._error(we))}complete(){this.isStopped?lt(ge,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(we){this.destination.next(we)}_error(we){try{this.destination.error(we)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Oe=Function.prototype.bind;function q(Se,we){return Oe.call(Se,we)}class me{constructor(we){this.partialObserver=we}next(we){const{partialObserver:Ge}=this;if(Ge.next)try{Ge.next(we)}catch(ze){Pe(ze)}}error(we){const{partialObserver:Ge}=this;if(Ge.error)try{Ge.error(we)}catch(ze){Pe(ze)}else Pe(we)}complete(){const{partialObserver:we}=this;if(we.complete)try{we.complete()}catch(Ge){Pe(Ge)}}}class He extends he{constructor(we,Ge,ze){let Ve;if(super(),(0,h.T)(we)||!we)Ve={next:we??void 0,error:Ge??void 0,complete:ze??void 0};else{let Ue;this&&z.$.useDeprecatedNextContext?(Ue=Object.create(we),Ue.unsubscribe=()=>this.unsubscribe(),Ve={next:we.next&&q(we.next,Ue),error:we.error&&q(we.error,Ue),complete:we.complete&&q(we.complete,Ue)}):Ve=we}this.destination=new me(Ve)}}function Pe(Se){z.$.useDeprecatedSynchronousErrorHandling?(0,Q.l)(Se):(0,X.m)(Se)}function lt(Se,we){const{onStoppedNotification:Ge}=z.$;Ge&&oe.f.setTimeout(()=>Ge(Se,we))}const bt={closed:!0,next:T.l,error:function Ye(Se){throw Se},complete:T.l}},7233:(Ze,de,b)=>{b.d(de,{Kn:()=>ge,yU:()=>T,Uv:()=>J});var h=b(2097);const z=(0,b(1531).L)(ve=>function(Q){ve(this),this.message=Q?`${Q.length} errors occurred during unsubscription:\n${Q.map((he,Oe)=>`${Oe+1}) ${he.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Q});var X=b(2070);class T{constructor(oe){this.initialTeardown=oe,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let oe;if(!this.closed){this.closed=!0;const{_parentage:Q}=this;if(Q)if(this._parentage=null,Array.isArray(Q))for(const q of Q)q.remove(this);else Q.remove(this);const{initialTeardown:he}=this;if((0,h.T)(he))try{he()}catch(q){oe=q instanceof z?q.errors:[q]}const{_finalizers:Oe}=this;if(Oe){this._finalizers=null;for(const q of Oe)try{ye(q)}catch(me){oe=oe??[],me instanceof z?oe=[...oe,...me.errors]:oe.push(me)}}if(oe)throw new z(oe)}}add(oe){var Q;if(oe&&oe!==this)if(this.closed)ye(oe);else{if(oe instanceof T){if(oe.closed||oe._hasParent(this))return;oe._addParent(this)}(this._finalizers=null!==(Q=this._finalizers)&&void 0!==Q?Q:[]).push(oe)}}_hasParent(oe){const{_parentage:Q}=this;return Q===oe||Array.isArray(Q)&&Q.includes(oe)}_addParent(oe){const{_parentage:Q}=this;this._parentage=Array.isArray(Q)?(Q.push(oe),Q):Q?[Q,oe]:oe}_removeParent(oe){const{_parentage:Q}=this;Q===oe?this._parentage=null:Array.isArray(Q)&&(0,X.o)(Q,oe)}remove(oe){const{_finalizers:Q}=this;Q&&(0,X.o)(Q,oe),oe instanceof T&&oe._removeParent(this)}}T.EMPTY=(()=>{const ve=new T;return ve.closed=!0,ve})();const ge=T.EMPTY;function J(ve){return ve instanceof T||ve&&"closed"in ve&&(0,h.T)(ve.remove)&&(0,h.T)(ve.add)&&(0,h.T)(ve.unsubscribe)}function ye(ve){(0,h.T)(ve)?ve():ve.unsubscribe()}},2904:(Ze,de,b)=>{b.d(de,{$:()=>h});const h={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},8033:(Ze,de,b)=>{b.d(de,{_:()=>z});var h=b(4392),o=b(3173);function z(X,T){const ge="object"==typeof T;return new Promise((J,ye)=>{const ve=new o.Ms({next:oe=>{J(oe),ve.unsubscribe()},error:ye,complete:()=>{ge?J(T.defaultValue):ye(new h.G)}});X.subscribe(ve)})}},4782:(Ze,de,b)=>{b.d(de,{z:()=>oe});var h=b(7787),o=b(4047),z=b(4850),X=b(3867),T=b(7236),ge=b(1315),J=b(8746),ye=b(5510),ve=b(1203);function oe(...Oe){const q=(0,ge.lI)(Oe),me=(0,ge.ms)(Oe),{args:He,keys:Pe}=(0,o.D)(Oe);if(0===He.length)return(0,z.H)([],q);const Ye=new h.c(function Q(Oe,q,me=X.D){return He=>{he(q,()=>{const{length:Pe}=Oe,Ye=new Array(Pe);let lt=Pe,bt=Pe;for(let Se=0;Se<Pe;Se++)he(q,()=>{const we=(0,z.H)(Oe[Se],q);let Ge=!1;we.subscribe((0,ye._)(He,ze=>{Ye[Se]=ze,Ge||(Ge=!0,bt--),bt||He.next(me(Ye.slice()))},()=>{--lt||He.complete()}))},He)},He)}}(He,q,Pe?lt=>(0,J.e)(Pe,lt):X.D));return me?Ye.pipe((0,T.I)(me)):Ye}function he(Oe,q,me){Oe?(0,ve.N)(me,Oe,q):q()}},6852:(Ze,de,b)=>{b.d(de,{v:()=>z});var h=b(7787),o=b(7412);function z(X){return new h.c(T=>{(0,o.Tg)(X()).subscribe(T)})}},4850:(Ze,de,b)=>{b.d(de,{H:()=>ze});var h=b(7412),o=b(1203),z=b(1524),X=b(5510);function T(Ve,Ue=0){return(0,z.N)((Qe,it)=>{Qe.subscribe((0,X._)(it,Je=>(0,o.N)(it,Ve,()=>it.next(Je),Ue),()=>(0,o.N)(it,Ve,()=>it.complete(),Ue),Je=>(0,o.N)(it,Ve,()=>it.error(Je),Ue)))})}function ge(Ve,Ue=0){return(0,z.N)((Qe,it)=>{it.add(Ve.schedule(()=>Qe.subscribe(it),Ue))})}var ve=b(7787),Q=b(979),he=b(2097);function q(Ve,Ue){if(!Ve)throw new Error("Iterable cannot be null");return new ve.c(Qe=>{(0,o.N)(Qe,Ue,()=>{const it=Ve[Symbol.asyncIterator]();(0,o.N)(Qe,Ue,()=>{it.next().then(Je=>{Je.done?Qe.complete():Qe.next(Je.value)})},0,!0)})})}var me=b(9533),He=b(4760),Pe=b(5271),Ye=b(8419),lt=b(1391),bt=b(3985),Se=b(8030);function ze(Ve,Ue){return Ue?function Ge(Ve,Ue){if(null!=Ve){if((0,me.l)(Ve))return function J(Ve,Ue){return(0,h.Tg)(Ve).pipe(ge(Ue),T(Ue))}(Ve,Ue);if((0,Pe.X)(Ve))return function oe(Ve,Ue){return new ve.c(Qe=>{let it=0;return Ue.schedule(function(){it===Ve.length?Qe.complete():(Qe.next(Ve[it++]),Qe.closed||this.schedule())})})}(Ve,Ue);if((0,He.y)(Ve))return function ye(Ve,Ue){return(0,h.Tg)(Ve).pipe(ge(Ue),T(Ue))}(Ve,Ue);if((0,lt.T)(Ve))return q(Ve,Ue);if((0,Ye.x)(Ve))return function Oe(Ve,Ue){return new ve.c(Qe=>{let it;return(0,o.N)(Qe,Ue,()=>{it=Ve[Q.l](),(0,o.N)(Qe,Ue,()=>{let Je,nn;try{({value:Je,done:nn}=it.next())}catch(ke){return void Qe.error(ke)}nn?Qe.complete():Qe.next(Je)},0,!0)}),()=>(0,he.T)(it?.return)&&it.return()})}(Ve,Ue);if((0,Se.U)(Ve))return function we(Ve,Ue){return q((0,Se.C)(Ve),Ue)}(Ve,Ue)}throw(0,bt.L)(Ve)}(Ve,Ue):(0,h.Tg)(Ve)}},7412:(Ze,de,b)=>{b.d(de,{Tg:()=>Oe});var h=b(5823),o=b(5271),z=b(4760),X=b(7787),T=b(9533),ge=b(1391),J=b(3985),ye=b(8419),ve=b(8030),oe=b(2097),Q=b(8508),he=b(1852);function Oe(Se){if(Se instanceof X.c)return Se;if(null!=Se){if((0,T.l)(Se))return function q(Se){return new X.c(we=>{const Ge=Se[he.s]();if((0,oe.T)(Ge.subscribe))return Ge.subscribe(we);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Se);if((0,o.X)(Se))return function me(Se){return new X.c(we=>{for(let Ge=0;Ge<Se.length&&!we.closed;Ge++)we.next(Se[Ge]);we.complete()})}(Se);if((0,z.y)(Se))return function He(Se){return new X.c(we=>{Se.then(Ge=>{we.closed||(we.next(Ge),we.complete())},Ge=>we.error(Ge)).then(null,Q.m)})}(Se);if((0,ge.T)(Se))return Ye(Se);if((0,ye.x)(Se))return function Pe(Se){return new X.c(we=>{for(const Ge of Se)if(we.next(Ge),we.closed)return;we.complete()})}(Se);if((0,ve.U)(Se))return function lt(Se){return Ye((0,ve.C)(Se))}(Se)}throw(0,J.L)(Se)}function Ye(Se){return new X.c(we=>{(function bt(Se,we){var Ge,ze,Ve,Ue;return(0,h.sH)(this,void 0,void 0,function*(){try{for(Ge=(0,h.xN)(Se);!(ze=yield Ge.next()).done;)if(we.next(ze.value),we.closed)return}catch(Qe){Ve={error:Qe}}finally{try{ze&&!ze.done&&(Ue=Ge.return)&&(yield Ue.call(Ge))}finally{if(Ve)throw Ve.error}}we.complete()})})(Se,we).catch(Ge=>we.error(Ge))})}},1467:(Ze,de,b)=>{b.d(de,{of:()=>z});var h=b(1315),o=b(4850);function z(...X){const T=(0,h.lI)(X);return(0,o.H)(X,T)}},1968:(Ze,de,b)=>{b.d(de,{$:()=>z});var h=b(7787),o=b(2097);function z(X,T){const ge=(0,o.T)(X)?X:()=>X,J=ye=>ye.error(ge());return new h.c(T?ye=>T.schedule(J,0,ye):J)}},5510:(Ze,de,b)=>{b.d(de,{_:()=>o});var h=b(3173);function o(X,T,ge,J,ye){return new z(X,T,ge,J,ye)}class z extends h.vU{constructor(T,ge,J,ye,ve,oe){super(T),this.onFinalize=ve,this.shouldUnsubscribe=oe,this._next=ge?function(Q){try{ge(Q)}catch(he){T.error(he)}}:super._next,this._error=ye?function(Q){try{ye(Q)}catch(he){T.error(he)}finally{this.unsubscribe()}}:super._error,this._complete=J?function(){try{J()}catch(Q){T.error(Q)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var T;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ge}=this;super.unsubscribe(),!ge&&(null===(T=this.onFinalize)||void 0===T||T.call(this))}}}},8919:(Ze,de,b)=>{b.d(de,{W:()=>X});var h=b(7412),o=b(5510),z=b(1524);function X(T){return(0,z.N)((ge,J)=>{let oe,ye=null,ve=!1;ye=ge.subscribe((0,o._)(J,void 0,void 0,Q=>{oe=(0,h.Tg)(T(Q,X(T)(ge))),ye?(ye.unsubscribe(),ye=null,oe.subscribe(J)):ve=!0})),ve&&(ye.unsubscribe(),ye=null,oe.subscribe(J))})}},6944:(Ze,de,b)=>{b.d(de,{H:()=>z});var h=b(3575),o=b(2097);function z(X,T){return(0,o.T)(T)?(0,h.Z)(X,T,1):(0,h.Z)(X,1)}},4534:(Ze,de,b)=>{b.d(de,{p:()=>z});var h=b(1524),o=b(5510);function z(X,T){return(0,h.N)((ge,J)=>{let ye=0;ge.subscribe((0,o._)(J,ve=>X.call(T,ve,ye++)&&J.next(ve)))})}},1554:(Ze,de,b)=>{b.d(de,{j:()=>o});var h=b(1524);function o(z){return(0,h.N)((X,T)=>{try{X.subscribe(T)}finally{T.add(z)}})}},2816:(Ze,de,b)=>{b.d(de,{T:()=>z});var h=b(1524),o=b(5510);function z(X,T){return(0,h.N)((ge,J)=>{let ye=0;ge.subscribe((0,o._)(J,ve=>{J.next(X.call(T,ve,ye++))}))})}},3575:(Ze,de,b)=>{b.d(de,{Z:()=>ye});var h=b(2816),o=b(7412),z=b(1524),X=b(1203),T=b(5510),J=b(2097);function ye(ve,oe,Q=1/0){return(0,J.T)(oe)?ye((he,Oe)=>(0,h.T)((q,me)=>oe(he,q,Oe,me))((0,o.Tg)(ve(he,Oe))),Q):("number"==typeof oe&&(Q=oe),(0,z.N)((he,Oe)=>function ge(ve,oe,Q,he,Oe,q,me,He){const Pe=[];let Ye=0,lt=0,bt=!1;const Se=()=>{bt&&!Pe.length&&!Ye&&oe.complete()},we=ze=>Ye<he?Ge(ze):Pe.push(ze),Ge=ze=>{q&&oe.next(ze),Ye++;let Ve=!1;(0,o.Tg)(Q(ze,lt++)).subscribe((0,T._)(oe,Ue=>{Oe?.(Ue),q?we(Ue):oe.next(Ue)},()=>{Ve=!0},void 0,()=>{if(Ve)try{for(Ye--;Pe.length&&Ye<he;){const Ue=Pe.shift();me?(0,X.N)(oe,me,()=>Ge(Ue)):Ge(Ue)}Se()}catch(Ue){oe.error(Ue)}}))};return ve.subscribe((0,T._)(oe,we,()=>{bt=!0,Se()})),()=>{He?.()}}(he,Oe,ve,Q)))}},8128:(Ze,de,b)=>{b.d(de,{n:()=>X});var h=b(7412),o=b(1524),z=b(5510);function X(T,ge){return(0,o.N)((J,ye)=>{let ve=null,oe=0,Q=!1;const he=()=>Q&&!ve&&ye.complete();J.subscribe((0,z._)(ye,Oe=>{ve?.unsubscribe();let q=0;const me=oe++;(0,h.Tg)(T(Oe,me)).subscribe(ve=(0,z._)(ye,He=>ye.next(ge?ge(Oe,He,me,q++):He),()=>{ve=null,he()}))},()=>{Q=!0,he()}))})}},5719:(Ze,de,b)=>{b.d(de,{Q:()=>T});var h=b(1524),o=b(5510),z=b(7412),X=b(9405);function T(ge){return(0,h.N)((J,ye)=>{(0,z.Tg)(ge).subscribe((0,o._)(ye,()=>ye.complete(),X.l)),!ye.closed&&J.subscribe(ye)})}},6243:(Ze,de,b)=>{b.d(de,{M:()=>T});var h=b(2097),o=b(1524),z=b(5510),X=b(3867);function T(ge,J,ye){const ve=(0,h.T)(ge)||J||ye?{next:ge,error:J,complete:ye}:ge;return ve?(0,o.N)((oe,Q)=>{var he;null===(he=ve.subscribe)||void 0===he||he.call(ve);let Oe=!0;oe.subscribe((0,z._)(Q,q=>{var me;null===(me=ve.next)||void 0===me||me.call(ve,q),Q.next(q)},()=>{var q;Oe=!1,null===(q=ve.complete)||void 0===q||q.call(ve),Q.complete()},q=>{var me;Oe=!1,null===(me=ve.error)||void 0===me||me.call(ve,q),Q.error(q)},()=>{var q,me;Oe&&(null===(q=ve.unsubscribe)||void 0===q||q.call(ve)),null===(me=ve.finalize)||void 0===me||me.call(ve)}))}):X.D}},7680:(Ze,de,b)=>{b.d(de,{f:()=>h});const h={setTimeout(o,z,...X){const{delegate:T}=h;return T?.setTimeout?T.setTimeout(o,z,...X):setTimeout(o,z,...X)},clearTimeout(o){const{delegate:z}=h;return(z?.clearTimeout||clearTimeout)(o)},delegate:void 0}},979:(Ze,de,b)=>{b.d(de,{l:()=>o});const o=function h(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},1852:(Ze,de,b)=>{b.d(de,{s:()=>h});const h="function"==typeof Symbol&&Symbol.observable||"@@observable"},4392:(Ze,de,b)=>{b.d(de,{G:()=>o});const o=(0,b(1531).L)(z=>function(){z(this),this.name="EmptyError",this.message="no elements in sequence"})},1315:(Ze,de,b)=>{b.d(de,{ms:()=>X,lI:()=>T});var h=b(2097);function z(J){return J[J.length-1]}function X(J){return(0,h.T)(z(J))?J.pop():void 0}function T(J){return function o(J){return J&&(0,h.T)(J.schedule)}(z(J))?J.pop():void 0}},4047:(Ze,de,b)=>{b.d(de,{D:()=>T});const{isArray:h}=Array,{getPrototypeOf:o,prototype:z,keys:X}=Object;function T(J){if(1===J.length){const ye=J[0];if(h(ye))return{args:ye,keys:null};if(function ge(J){return J&&"object"==typeof J&&o(J)===z}(ye)){const ve=X(ye);return{args:ve.map(oe=>ye[oe]),keys:ve}}}return{args:J,keys:null}}},2070:(Ze,de,b)=>{function h(o,z){if(o){const X=o.indexOf(z);0<=X&&o.splice(X,1)}}b.d(de,{o:()=>h})},1531:(Ze,de,b)=>{function h(o){const X=o(T=>{Error.call(T),T.stack=(new Error).stack});return X.prototype=Object.create(Error.prototype),X.prototype.constructor=X,X}b.d(de,{L:()=>h})},8746:(Ze,de,b)=>{function h(o,z){return o.reduce((X,T,ge)=>(X[T]=z[ge],X),{})}b.d(de,{e:()=>h})},7112:(Ze,de,b)=>{b.d(de,{Y:()=>z,l:()=>X});var h=b(2904);let o=null;function z(T){if(h.$.useDeprecatedSynchronousErrorHandling){const ge=!o;if(ge&&(o={errorThrown:!1,error:null}),T(),ge){const{errorThrown:J,error:ye}=o;if(o=null,J)throw ye}}else T()}function X(T){h.$.useDeprecatedSynchronousErrorHandling&&o&&(o.errorThrown=!0,o.error=T)}},1203:(Ze,de,b)=>{function h(o,z,X,T=0,ge=!1){const J=z.schedule(function(){X(),ge?o.add(this.schedule(null,T)):this.unsubscribe()},T);if(o.add(J),!ge)return J}b.d(de,{N:()=>h})},3867:(Ze,de,b)=>{function h(o){return o}b.d(de,{D:()=>h})},5271:(Ze,de,b)=>{b.d(de,{X:()=>h});const h=o=>o&&"number"==typeof o.length&&"function"!=typeof o},1391:(Ze,de,b)=>{b.d(de,{T:()=>o});var h=b(2097);function o(z){return Symbol.asyncIterator&&(0,h.T)(z?.[Symbol.asyncIterator])}},2097:(Ze,de,b)=>{function h(o){return"function"==typeof o}b.d(de,{T:()=>h})},9533:(Ze,de,b)=>{b.d(de,{l:()=>z});var h=b(1852),o=b(2097);function z(X){return(0,o.T)(X[h.s])}},8419:(Ze,de,b)=>{b.d(de,{x:()=>z});var h=b(979),o=b(2097);function z(X){return(0,o.T)(X?.[h.l])}},7624:(Ze,de,b)=>{b.d(de,{A:()=>z});var h=b(7787),o=b(2097);function z(X){return!!X&&(X instanceof h.c||(0,o.T)(X.lift)&&(0,o.T)(X.subscribe))}},4760:(Ze,de,b)=>{b.d(de,{y:()=>o});var h=b(2097);function o(z){return(0,h.T)(z?.then)}},8030:(Ze,de,b)=>{b.d(de,{C:()=>z,U:()=>X});var h=b(5823),o=b(2097);function z(T){return(0,h.AQ)(this,arguments,function*(){const J=T.getReader();try{for(;;){const{value:ye,done:ve}=yield(0,h.N3)(J.read());if(ve)return yield(0,h.N3)(void 0);yield yield(0,h.N3)(ye)}}finally{J.releaseLock()}})}function X(T){return(0,o.T)(T?.getReader)}},1524:(Ze,de,b)=>{b.d(de,{N:()=>z,S:()=>o});var h=b(2097);function o(X){return(0,h.T)(X?.lift)}function z(X){return T=>{if(o(T))return T.lift(function(ge){try{return X(ge,this)}catch(J){this.error(J)}});throw new TypeError("Unable to lift unknown Observable type")}}},7236:(Ze,de,b)=>{b.d(de,{I:()=>X});var h=b(2816);const{isArray:o}=Array;function X(T){return(0,h.T)(ge=>function z(T,ge){return o(ge)?T(...ge):T(ge)}(T,ge))}},9405:(Ze,de,b)=>{function h(){}b.d(de,{l:()=>h})},9493:(Ze,de,b)=>{b.d(de,{F:()=>o,m:()=>z});var h=b(3867);function o(...X){return z(X)}function z(X){return 0===X.length?h.D:1===X.length?X[0]:function(ge){return X.reduce((J,ye)=>ye(J),ge)}}},8508:(Ze,de,b)=>{b.d(de,{m:()=>z});var h=b(2904),o=b(7680);function z(X){o.f.setTimeout(()=>{const{onUnhandledError:T}=h.$;if(!T)throw X;T(X)})}},3985:(Ze,de,b)=>{function h(o){return new TypeError(`You provided ${null!==o&&"object"==typeof o?"an invalid object":`'${o}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}b.d(de,{L:()=>h})},2943:(Ze,de,b)=>{b.d(de,{AJ:()=>Ne,IJ:()=>Bn,MD:()=>W,N0:()=>Ni,QT:()=>z,Qn:()=>Re,Sm:()=>He,Sq:()=>ot,VF:()=>T,Vy:()=>ur,WO:()=>zn,Xr:()=>Nr,YU:()=>ce,ZD:()=>X,_b:()=>V,aZ:()=>Ye,bT:()=>Gt,fw:()=>Pe,hb:()=>q,hj:()=>ve,oe:()=>N,pM:()=>ot,qQ:()=>J,vh:()=>Ar});var h=b(8284);
|
|
7
7
|
/**
|
|
8
8
|
* @license Angular v17.3.12
|
|
9
9
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e,v={},m={};function r(e){var f=m[e];if(void 0!==f)return f.exports;var t=m[e]={id:e,loaded:!1,exports:{}};return v[e](t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(f,t,i,o)=>{if(!t){var a=1/0;for(n=0;n<e.length;n++){for(var[t,i,o]=e[n],c=!0,d=0;d<t.length;d++)(!1&o||a>=o)&&Object.keys(r.O).every(b=>r.O[b](t[d]))?t.splice(d--,1):(c=!1,o<a&&(a=o));if(c){e.splice(n--,1);var l=i();void 0!==l&&(f=l)}}return f}o=o||0;for(var n=e.length;n>0&&e[n-1][2]>o;n--)e[n]=e[n-1];e[n]=[t,i,o]},r.d=(e,f)=>{for(var t in f)r.o(f,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:f[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((f,t)=>(r.f[t](e,f),f),[])),r.u=e=>e+"."+{45:"f16207d428e7b8ce",69:"
|
|
1
|
+
(()=>{"use strict";var e,v={},m={};function r(e){var f=m[e];if(void 0!==f)return f.exports;var t=m[e]={id:e,loaded:!1,exports:{}};return v[e](t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(f,t,i,o)=>{if(!t){var a=1/0;for(n=0;n<e.length;n++){for(var[t,i,o]=e[n],c=!0,d=0;d<t.length;d++)(!1&o||a>=o)&&Object.keys(r.O).every(b=>r.O[b](t[d]))?t.splice(d--,1):(c=!1,o<a&&(a=o));if(c){e.splice(n--,1);var l=i();void 0!==l&&(f=l)}}return f}o=o||0;for(var n=e.length;n>0&&e[n-1][2]>o;n--)e[n]=e[n-1];e[n]=[t,i,o]},r.d=(e,f)=>{for(var t in f)r.o(f,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:f[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((f,t)=>(r.f[t](e,f),f),[])),r.u=e=>e+"."+{45:"f16207d428e7b8ce",69:"61801c6817663bee",256:"cf479e10e4de8f41",693:"78d2d5a546c5c39a"}[e]+".js",r.miniCssF=e=>{},r.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),(()=>{var e={},f="admin:";r.l=(t,i,o,n)=>{if(e[t])e[t].push(i);else{var a,c;if(void 0!==o)for(var d=document.getElementsByTagName("script"),l=0;l<d.length;l++){var u=d[l];if(u.getAttribute("src")==t||u.getAttribute("data-webpack")==f+o){a=u;break}}a||(c=!0,(a=document.createElement("script")).type="module",a.charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",f+o),a.src=r.tu(t)),e[t]=[i];var s=(g,b)=>{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(y=>y(b)),g)return g(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:f=>f},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={121:0};r.f.j=(i,o)=>{var n=r.o(e,i)?e[i]:void 0;if(0!==n)if(n)o.push(n[2]);else if(121!=i){var a=new Promise((u,s)=>n=e[i]=[u,s]);o.push(n[2]=a);var c=r.p+r.u(i),d=new Error;r.l(c,u=>{if(r.o(e,i)&&(0!==(n=e[i])&&(e[i]=void 0),n)){var s=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;d.message="Loading chunk "+i+" failed.\n("+s+": "+p+")",d.name="ChunkLoadError",d.type=s,d.request=p,n[1](d)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var f=(i,o)=>{var d,l,[n,a,c]=o,u=0;if(n.some(p=>0!==e[p])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(c)var s=c(r)}for(i&&i(o);u<n.length;u++)r.o(e,l=n[u])&&e[l]&&e[l][0](),e[l]=0;return r.O(s)},t=self.webpackChunkadmin=self.webpackChunkadmin||[];t.forEach(f.bind(null,0)),t.push=f.bind(null,t.push.bind(t))})()})();
|
|
@@ -129,6 +129,7 @@ let EntityManifestService = class EntityManifestService {
|
|
|
129
129
|
: (0, src_1.camelize)(pluralize_1.default.plural(partialEntityManifest.className)),
|
|
130
130
|
mainProp: entitySchema.mainProp ||
|
|
131
131
|
partialEntityManifest.properties.find((prop) => prop.type === types_1.PropType.String)?.name ||
|
|
132
|
+
partialEntityManifest.properties.find((prop) => prop.type === types_1.PropType.Text)?.name ||
|
|
132
133
|
'id',
|
|
133
134
|
seedCount: entitySchema.seedCount || constants_1.DEFAULT_SEED_COUNT,
|
|
134
135
|
relationships: [
|
|
@@ -35,7 +35,8 @@ let UploadService = class UploadService {
|
|
|
35
35
|
throw new common_1.HttpException('Entity name and property should be provided', 400);
|
|
36
36
|
}
|
|
37
37
|
const entityManifest = this.entityManifestService.getEntityManifest({
|
|
38
|
-
slug: entity
|
|
38
|
+
slug: entity,
|
|
39
|
+
includeNested: true
|
|
39
40
|
});
|
|
40
41
|
const propertyManifest = entityManifest.properties.find((prop) => prop.name === property);
|
|
41
42
|
if (!propertyManifest) {
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[69],{4493:(Q,D,d)=>{d.d(D,{B:()=>Y});var h=d(2943),M=d(9911),n=d(8428),t=d(8785),$=d(6631),e=d(183),b=d(8284);let Y=(()=>{class G{static{this.\u0275fac=function(x){return new(x||G)}}static{this.\u0275mod=b.$C({type:G})}static{this.\u0275inj=b.G2t({imports:[h.MD,e.iI,M.X1,$.L,n.S,t.x]})}}return G})()},1424:(Q,D,d)=>{d.d(D,{O:()=>oe});var h=d(7431),M=d(9911),n=d(5442),t=d(4782),$=d(7563),e=d(8284),b=d(6119),Y=d(2283),G=d(183),O=d(9879),I=d(818),x=d(2943),k=d(8428);const j=s=>({"is-loading":s}),N=s=>({"is-bordered p-5":s});function B(s,C){if(1&s&&(e.qex(0),e.EFF(1),e.bVm()),2&s){const o=e.XpG(3);e.R7$(),e.SpI("Edit ",o.entityManifest.nameSingular,"")}}function X(s,C){if(1&s&&(e.qex(0),e.EFF(1),e.bVm()),2&s){const o=e.XpG(3);e.R7$(),e.SpI("Edit an existing ",o.entityManifest.nameSingular,"")}}function S(s,C){if(1&s&&(e.qex(0),e.DNE(1,B,2,1,"ng-container",0)(2,X,2,1,"ng-container",0),e.bVm()),2&s){const o=e.XpG(2);e.R7$(),e.Y8G("ngIf",o.singleMode),e.R7$(),e.Y8G("ngIf",!o.singleMode)}}function w(s,C){if(1&s&&(e.qex(0),e.EFF(1),e.bVm()),2&s){const o=e.XpG(2);e.R7$(),e.SpI(" Create a new ",o.entityManifest.nameSingular," ")}}function U(s,C){if(1&s){const o=e.RV6();e.j41(0,"div",15)(1,"div",16)(2,"app-input",17),e.bIt("valueChanged",function(m){const v=e.eBV(o).$implicit,u=e.XpG(3);return e.Njj(u.onChange({propName:v.name,newValue:m}))}),e.k0s()()()}if(2&s){const o=C.$implicit,l=e.XpG(3);e.R7$(2),e.Y8G("prop",o)("entityManifest",l.entityManifest)("value",l.edit?l.item[o.name]:null)("errors",l.errors[o.name])}}function L(s,C){if(1&s){const o=e.RV6();e.j41(0,"div",16)(1,"app-input",19),e.bIt("valueChanged",function(m){e.eBV(o);const v=e.XpG().$implicit,u=e.XpG(3);return e.Njj(u.onRelationChange({relationship:v,newValue:m}))}),e.k0s()()}if(2&s){const o=e.XpG().$implicit,l=e.XpG(3);e.R7$(),e.Y8G("relationship",o)("value",l.edit?l.item[o.name]:null)("errors",l.errors[o.name])}}function V(s,C){if(1&s&&(e.j41(0,"div",15),e.DNE(1,L,2,3,"div",18),e.k0s()),2&s){const o=C.$implicit;e.R7$(),e.Y8G("ngIf","many-to-one"===o.type||"many-to-many"===o.type&&o.owningSide)}}function A(s,C){if(1&s&&(e.j41(0,"p",25),e.EFF(1),e.k0s()),2&s){const o=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",o.helpText," ")}}function K(s,C){if(1&s){const o=e.RV6();e.j41(0,"button",28),e.bIt("click",function(){e.eBV(o);const m=e.XpG(3).$implicit,v=e.XpG(3);return e.Njj(v.addNestedItem(m))}),e.j41(1,"span",29),e.nrm(2,"i",30),e.EFF(3,"- "),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s()()}if(2&s){const o=e.XpG(3).$implicit;e.R7$(5),e.SpI("Add ",o.entity,"")}}function W(s,C){if(1&s&&(e.j41(0,"div",26),e.DNE(1,K,6,1,"button",27),e.k0s()),2&s){const o=e.XpG(2).$implicit,l=e.XpG(3);e.R7$(),e.Y8G("ngIf","one-to-one"!==o.type||null===l.getSingleRelation(o.name))}}function J(s,C){if(1&s&&(e.j41(0,"div",32)(1,"p",33),e.EFF(2),e.k0s(),e.j41(3,"p",34),e.EFF(4),e.k0s()()),2&s){const o=e.XpG(3).$implicit;e.R7$(2),e.SpI(" No ",o.name," added yet. "),e.R7$(2),e.SpI(' Click on "Add ',o.entity,'" to add the item. ')}}function z(s,C){if(1&s){const o=e.RV6();e.j41(0,"div",15)(1,"div",16)(2,"app-input",17),e.bIt("valueChanged",function(m){const v=e.eBV(o).$implicit,u=e.XpG(4).$implicit,y=e.XpG(3);return e.Njj(y.onNestedItemChange({relationship:u,propName:v.name,newValue:m}))}),e.k0s()()()}if(2&s){let o;const l=C.$implicit,m=e.XpG(4).$implicit,v=e.XpG(3);e.R7$(2),e.Y8G("prop",l)("entityManifest",v.entityManifest)("value",v.edit?null==(o=v.getSingleRelation(m.name).get(l.name))?null:o.value:null)("errors",v.errors[m.name+"."+l.name])}}function H(s,C){if(1&s){const o=e.RV6();e.qex(0),e.j41(1,"a",35),e.bIt("click",function(){e.eBV(o);const m=e.XpG(3).$implicit,v=e.XpG(3);return e.Njj(v.removeSingleNestedItem(m))}),e.nrm(2,"i",36),e.k0s(),e.DNE(3,z,3,4,"div",14),e.bVm()}if(2&s){const o=e.XpG(3).$implicit,l=e.XpG(3);e.R7$(3),e.Y8G("ngForOf",l.nestedEntityManifests[o.name].properties)}}function Z(s,C){if(1&s&&(e.qex(0),e.DNE(1,J,5,2,"div",31)(2,H,4,1,"ng-container",0),e.bVm()),2&s){const o=e.XpG(2).$implicit,l=e.XpG(3);e.R7$(),e.Y8G("ngIf",!l.getSingleRelation(o.name)),e.R7$(),e.Y8G("ngIf",l.getSingleRelation(o.name))}}function p(s,C){if(1&s){const o=e.RV6();e.j41(0,"button",28),e.bIt("click",function(){e.eBV(o);const m=e.XpG(3).$implicit,v=e.XpG(3);return e.Njj(v.addNestedItem(m))}),e.j41(1,"span",29),e.nrm(2,"i",30),e.EFF(3,"- "),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s()()}if(2&s){const o=e.XpG(3).$implicit;e.R7$(5),e.SpI("Add ",o.entity,"")}}function E(s,C){if(1&s&&(e.qex(0),e.j41(1,"div",32),e.DNE(2,p,6,1,"button",27),e.k0s(),e.bVm()),2&s){const o=e.XpG(2).$implicit,l=e.XpG(3);e.R7$(2),e.Y8G("ngIf","one-to-one"===o.type||null===l.getSingleRelation(o.name))}}function r(s,C){if(1&s&&(e.j41(0,"div",32)(1,"p",33),e.EFF(2),e.k0s(),e.j41(3,"p",34),e.EFF(4),e.k0s()()),2&s){const o=e.XpG(3).$implicit;e.R7$(2),e.SpI(" No ",o.name," yet. "),e.R7$(2),e.SpI(' Click on "Add ',o.entity,'" to add the first item. ')}}function f(s,C){if(1&s){const o=e.RV6();e.j41(0,"div",15)(1,"div",16)(2,"app-input",17),e.bIt("valueChanged",function(m){const v=e.eBV(o).$implicit,u=e.XpG().index,y=e.XpG(3).$implicit,F=e.XpG(3);return e.Njj(F.onNestedItemChange({relationship:y,propName:v.name,index:u,newValue:m}))}),e.k0s()()()}if(2&s){let o;const l=C.$implicit,m=e.XpG(),v=m.$implicit,u=m.index,y=e.XpG(3).$implicit,F=e.XpG(3);e.R7$(2),e.Y8G("prop",l)("entityManifest",F.entityManifest)("value",F.edit?null==(o=v.get(l.name))?null:o.value:null)("errors",F.errors[y.name+"["+u+"]."+l.name])}}function R(s,C){if(1&s){const o=e.RV6();e.j41(0,"div",38)(1,"a",35),e.bIt("click",function(){const m=e.eBV(o).index,v=e.XpG(3).$implicit,u=e.XpG(3);return e.Njj(u.removeNestedItem(v,m))}),e.nrm(2,"i",36),e.k0s(),e.DNE(3,f,3,4,"div",14),e.k0s()}if(2&s){const o=e.XpG(3).$implicit,l=e.XpG(3);e.R7$(3),e.Y8G("ngForOf",l.nestedEntityManifests[o.name].properties)}}function T(s,C){if(1&s&&(e.qex(0),e.DNE(1,r,5,2,"div",31)(2,R,4,1,"div",37),e.bVm()),2&s){const o=e.XpG(2).$implicit,l=e.XpG(3);e.R7$(),e.Y8G("ngIf",0===l.getMultipleRelations(o.name).length),e.R7$(),e.Y8G("ngForOf",l.getMultipleRelations(o.name).controls)}}function P(s,C){if(1&s){const o=e.RV6();e.j41(0,"button",28),e.bIt("click",function(){e.eBV(o);const m=e.XpG(3).$implicit,v=e.XpG(3);return e.Njj(v.addNestedItem(m))}),e.j41(1,"span",29),e.nrm(2,"i",30),e.EFF(3,"- "),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s()()}if(2&s){const o=e.XpG(3).$implicit;e.R7$(5),e.SpI("Add ",o.entity,"")}}function q(s,C){if(1&s&&(e.qex(0),e.j41(1,"div",32),e.DNE(2,P,6,1,"button",27),e.k0s(),e.bVm()),2&s){const o=e.XpG(2).$implicit,l=e.XpG(3);e.R7$(2),e.Y8G("ngIf","one-to-one"!==o.type||null===l.getSingleRelation(o.name))}}function ee(s,C){if(1&s&&(e.j41(0,"div",16)(1,"div",20)(2,"div",21)(3,"div")(4,"label"),e.EFF(5),e.k0s(),e.DNE(6,A,2,1,"p",22),e.k0s()(),e.DNE(7,W,2,1,"div",23),e.k0s(),e.j41(8,"div",24),e.DNE(9,Z,3,2,"ng-container",0)(10,E,3,1,"ng-container",0)(11,T,3,2,"ng-container",0)(12,q,3,1,"ng-container",0),e.k0s()()),2&s){const o=e.XpG().$implicit,l=e.XpG(3);e.R7$(5),e.JRh(o.name),e.R7$(),e.Y8G("ngIf",o.helpText),e.R7$(),e.Y8G("ngIf",l.getMultipleRelations(o.name).length>0),e.R7$(),e.Y8G("ngClass",e.eq3(8,N,"one-to-one"===o.type||0===l.getMultipleRelations(o.name).length)),e.R7$(),e.Y8G("ngIf","one-to-one"===o.type),e.R7$(),e.Y8G("ngIf",!l.getSingleRelation(o.name)),e.R7$(),e.Y8G("ngIf","one-to-one"!==o.type),e.R7$(),e.Y8G("ngIf",0===l.getMultipleRelations(o.name).length)}}function te(s,C){if(1&s&&(e.j41(0,"div",15),e.DNE(1,ee,13,10,"div",18),e.k0s()),2&s){const o=C.$implicit;e.R7$(),e.Y8G("ngIf",o.nested)}}function ne(s,C){if(1&s&&(e.j41(0,"form",9)(1,"div",10)(2,"div",11)(3,"div",12)(4,"div",13),e.DNE(5,U,3,4,"div",14)(6,V,2,1,"div",14)(7,te,2,1,"div",14),e.k0s()()()()()),2&s){const o=e.XpG(2);e.Y8G("formGroup",o.form),e.R7$(5),e.Y8G("ngForOf",o.entityManifest.properties),e.R7$(),e.Y8G("ngForOf",o.entityManifest.relationships),e.R7$(),e.Y8G("ngForOf",o.entityManifest.relationships)}}function ie(s,C){if(1&s){const o=e.RV6();e.qex(0),e.j41(1,"section")(2,"div",1)(3,"div",2)(4,"h1",3),e.DNE(5,S,3,2,"ng-container",0)(6,w,2,1,"ng-container",0),e.k0s()(),e.j41(7,"div",4)(8,"button",5),e.bIt("click",function(){e.eBV(o);const m=e.XpG();return e.Njj(m.submit())}),e.EFF(9," Submit "),e.k0s(),e.j41(10,"button",6),e.bIt("click",function(){e.eBV(o);const m=e.XpG();return e.Njj(m.submit())}),e.nrm(11,"i",7),e.k0s()()(),e.DNE(12,ne,8,4,"form",8),e.k0s(),e.bVm()}if(2&s){const o=e.XpG();e.R7$(5),e.Y8G("ngIf",o.edit),e.R7$(),e.Y8G("ngIf",!o.edit),e.R7$(2),e.Y8G("ngClass",e.eq3(5,j,o.loading)),e.R7$(2),e.Y8G("ngClass",e.eq3(7,j,o.loading)),e.R7$(2),e.Y8G("ngIf",o.item||!o.edit)}}let oe=(()=>{class s{constructor(o,l,m,v,u,y,F){this.crudService=o,this.manifestService=l,this.activatedRoute=m,this.router=v,this.formBuilder=u,this.metaService=y,this.flashMessageService=F,this.nestedEntityManifests={},this.errors={},this.form=this.formBuilder.group({}),this.PropType=n.Kk}ngOnInit(){var o=this;return(0,h.A)(function*(){(0,t.z)([o.activatedRoute.params,o.activatedRoute.data]).subscribe(function(){var l=(0,h.A)(function*([m,v]){if(o.edit=v.edit,o.entityManifest=yield o.manifestService.getEntityManifest({slug:m.entitySlug}),o.entityManifest||o.router.navigate(["/404"]),o.singleMode="single"===o.activatedRoute.snapshot.data.mode,o.edit){try{o.item=o.singleMode?yield o.crudService.showSingle(o.entityManifest.slug):yield o.crudService.show(o.entityManifest.slug,m.id,{relations:o.entityManifest.relationships.filter(u=>"one-to-many"!==u.type).filter(u=>"many-to-many"!==u.type||u.owningSide).map(u=>u.name)})}catch{o.router.navigate(["/404"])}o.metaService.setTitle(`Edit ${o.entityManifest.nameSingular}`)}else o.metaService.setTitle(`Create a new ${o.entityManifest.nameSingular}`);o.entityManifest.properties.forEach(u=>{let y=null;o.item?y=o.item[u.name]:u.type===n.Kk.Boolean&&(y=!1),o.form.addControl(u.name,new M.MJ(y))}),o.entityManifest.relationships.filter(u=>"one-to-many"!==u.type&&"one-to-one"!==u.type).filter(u=>"many-to-many"!==u.type||u.owningSide).forEach(u=>{let y=null;"many-to-one"===u.type?y=o.item?o.item[u.name]?.id:null:"many-to-many"===u.type&&(y=o.item?o.item[u.name].map(F=>F.id):[]),o.form.addControl((0,$.yk)(u),new M.MJ(y))}),o.entityManifest.relationships.filter(u=>u.nested).forEach(function(){var u=(0,h.A)(function*(y){const F="one-to-one"!==y.type,ae=yield o.manifestService.getEntityManifest({className:y.entity});o.nestedEntityManifests[y.name]=ae,o.form.addControl(y.name,F?o.formBuilder.array([]):o.formBuilder.group({})),o.edit&&o.item[y.name]&&(Array.isArray(o.item[y.name])?o.item[y.name].forEach(se=>{o.addNestedItem(y,se)}):o.addNestedItem(y,o.item[y.name]))});return function(y){return u.apply(this,arguments)}}())});return function(m){return l.apply(this,arguments)}}())})()}onChange(o){this.form.controls[o.propName].setValue(o.newValue)}onRelationChange(o){return this.onChange({newValue:o.newValue,propName:(0,$.yk)(o.relationship)})}onNestedItemChange(o){let l;l=void 0===o.index?this.form.get(o.relationship.name):this.getMultipleRelations(o.relationship.name).at(o.index),l.controls[o.propName].setValue(o.newValue)}submit(){const o=this.form.value;Object.entries(o).forEach(([l,m])=>{"object"==typeof m&&"{}"===JSON.stringify(m)&&(o[l]=null)}),this.loading=!0,this.edit?(this.singleMode?this.crudService.updateSingle(this.entityManifest.slug,o):this.crudService.update(this.entityManifest.slug,this.item.id,o)).then(()=>{this.loading=!1,this.flashMessageService.success(`The ${this.entityManifest.nameSingular} has been updated`),this.router.navigate([this.singleMode?"/singles":"/collections",this.entityManifest.slug])}).catch(m=>{400===m.status&&(this.errors=this.getErrorMessages(m.error)),this.loading=!1,this.flashMessageService.error(`The ${this.entityManifest.nameSingular} could not be updated`)}):this.crudService.create(this.entityManifest.slug,this.form.value).then(l=>{this.loading=!1,this.flashMessageService.success(`The ${this.entityManifest.nameSingular} has been created successfully`),this.router.navigate(["/collections",this.entityManifest.slug,l.id])}).catch(l=>{400===l.status&&(this.errors=this.getErrorMessages(l.error)),this.loading=!1,this.flashMessageService.error(`Error: the ${this.entityManifest.nameSingular} could not be created:\n ${Object.values(this.errors).join(", ")}\n `)})}addNestedItem(o,l){var m=this;return(0,h.A)(function*(){const v=yield m.createNestedItemFormGroup(o,l);return l&&l.id&&v.addControl("id",new M.MJ(l.id)),"one-to-one"!==o.type?void m.form.get(o.name).push(v):void m.form.setControl(o.name,v)})()}createNestedItemFormGroup(o,l){var m=this;return(0,h.A)(function*(){const v=yield m.manifestService.getEntityManifest({className:o.entity}),u=m.formBuilder.group({});return v.properties.forEach(y=>{u.addControl(y.name,new M.MJ(l?l[y.name]:null))}),u})()}removeNestedItem(o,l){this.form.get(o.name).removeAt(l)}removeSingleNestedItem(o){this.form.setControl(o.name,this.formBuilder.group({}))}getMultipleRelations(o){return this.form.get(o)}getSingleRelation(o){return"{}"===JSON.stringify(this.form.get(o).value)?null:this.form.get(o)}getErrorMessages(o){const l={};return o.forEach(m=>{l[m.property]=Object.values(m.constraints)}),l}static{this.\u0275fac=function(l){return new(l||s)(e.rXU(b.m),e.rXU(Y.x),e.rXU(G.nX),e.rXU(G.Ix),e.rXU(M.ok),e.rXU(O.R),e.rXU(I.L))}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["app-create-edit"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"is-flex","is-justify-content-space-between","is-align-items-center","mb-5"],[1,"left-part"],[1,"title","is-2","has-text-weight-light"],[1,"right-part"],["type","submit",1,"button","is-link","is-hidden-touch",3,"click","ngClass"],["type","submit",1,"button","is-link","is-hidden-desktop","is-circle",3,"click","ngClass"],[1,"icon","icon-save"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"card","is-shadowless","p-4"],[1,"columns"],[1,"column","is-12-touch","is-8-desktop","is-offset-2-desktop","is-6-widescreen","is-offset-3-widescreen","is-6-fullhd","is-offset-3-fullhd"],[1,"form-group"],["class","field mt-2 mb-4",4,"ngFor","ngForOf"],[1,"field","mt-2","mb-4"],[1,"control"],[3,"valueChanged","prop","entityManifest","value","errors"],["class","control",4,"ngIf"],[3,"valueChanged","relationship","value","errors"],[1,"level","mb-0"],[1,"level-left"],["class","help",4,"ngIf"],["class","level-right",4,"ngIf"],[1,"box","is-shadowless","mb-0",3,"ngClass"],[1,"help"],[1,"level-right"],["class","button is-dark is-small has-icon","type","button",3,"click",4,"ngIf"],["type","button",1,"button","is-dark","is-small","has-icon",3,"click"],[1,"icon","is-small"],[1,"icon","icon-plus"],["class","has-text-centered is-fullwidth",4,"ngIf"],[1,"has-text-centered","is-fullwidth"],[1,"is-size-5","has-text-weight-bold"],[1,"mb-4"],[1,"is-inline-flex","is-fullwidth","has-text-dark","is-justify-content-flex-end",3,"click"],[1,"icon","icon-trash-2"],["class","box is-shadowless is-bordered p-5 nested-item",4,"ngFor","ngForOf"],[1,"box","is-shadowless","is-bordered","p-5","nested-item"]],template:function(l,m){1&l&&e.DNE(0,ie,13,9,"ng-container",0),2&l&&e.Y8G("ngIf",m.entityManifest)},dependencies:[x.YU,x.Sq,x.bT,M.qT,M.cb,M.j4,k.S]})}}return s})()},992:(Q,D,d)=>{d.d(D,{R:()=>Z});var h=d(7431),M=d(9e3),n=d(8284),t=d(6119),$=d(2283),e=d(183),b=d(9879),Y=d(2943),G=d(6631),O=d(8785);const I=p=>["/collections",p];function x(p,E){if(1&p&&(n.j41(0,"a",17),n.nrm(1,"i",18),n.k0s()),2&p){const r=n.XpG(2);n.Y8G("routerLink",n.eq3(1,I,r.entityManifest.namePlural))}}function k(p,E){if(1&p&&(n.j41(0,"div",19)(1,"p",20),n.EFF(2),n.k0s(),n.j41(3,"p",21),n.nrm(4,"app-yield",22),n.k0s()()),2&p){const r=E.$implicit,f=n.XpG(2);n.R7$(2),n.SpI(" ",r.name," "),n.R7$(2),n.Y8G("value",f.item[r.name])("prop",r)}}function j(p,E){if(1&p&&n.nrm(0,"app-relation-yield",25),2&p){const r=n.XpG(2).$implicit,f=n.XpG(2);n.Y8G("item",f.item[r.name])("relationship",r)}}function N(p,E){1&p&&(n.qex(0),n.EFF(1,", "),n.bVm())}function B(p,E){if(1&p&&(n.qex(0),n.nrm(1,"app-relation-yield",25),n.DNE(2,N,2,0,"ng-container",0),n.bVm()),2&p){const r=E.$implicit,f=E.last,R=n.XpG(3).$implicit;n.R7$(),n.Y8G("item",r)("relationship",R),n.R7$(),n.Y8G("ngIf",!f)}}function X(p,E){if(1&p&&(n.qex(0),n.DNE(1,B,3,3,"ng-container",26),n.bVm()),2&p){const r=n.XpG(2).$implicit,f=n.XpG(2);n.R7$(),n.Y8G("ngForOf",f.getMultipleRelations(f.item,r))}}function S(p,E){if(1&p&&(n.qex(0),n.j41(1,"p",20),n.EFF(2),n.k0s(),n.j41(3,"p",21),n.DNE(4,j,1,2,"app-relation-yield",24)(5,X,2,1,"ng-container",0),n.k0s(),n.bVm()),2&p){const r=n.XpG().$implicit;n.R7$(2),n.SpI(" ",r.name," "),n.R7$(2),n.Y8G("ngIf","many-to-one"===r.type),n.R7$(),n.Y8G("ngIf","many-to-many"===r.type)}}function w(p,E){1&p&&(n.j41(0,"p"),n.EFF(1,"-"),n.k0s())}function U(p,E){if(1&p&&(n.j41(0,"div",19)(1,"p",20),n.EFF(2),n.k0s(),n.j41(3,"p",21),n.nrm(4,"app-yield",22),n.k0s()()),2&p){const r=E.$implicit,f=n.XpG().$implicit;n.R7$(2),n.SpI(" ",r.name," "),n.R7$(2),n.Y8G("value",f[r.name])("prop",r)}}function L(p,E){if(1&p&&(n.j41(0,"div",29)(1,"div",30),n.DNE(2,U,5,3,"div",15),n.k0s()()),2&p){const r=n.XpG(2).$implicit,f=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",f.nestedEntityManifests[r.name].properties)}}function V(p,E){if(1&p&&(n.qex(0),n.j41(1,"p",20),n.EFF(2),n.k0s(),n.DNE(3,w,2,0,"p",0),n.j41(4,"div",27),n.DNE(5,L,3,1,"div",28),n.k0s(),n.bVm()),2&p){const r=n.XpG().$implicit,f=n.XpG(2);n.R7$(2),n.SpI(" ",r.name," "),n.R7$(),n.Y8G("ngIf",!f.getMultipleRelations(f.item,r).length),n.R7$(2),n.Y8G("ngForOf",f.getMultipleRelations(f.item,r))}}function A(p,E){1&p&&(n.j41(0,"p"),n.EFF(1,"-"),n.k0s())}function K(p,E){if(1&p&&(n.j41(0,"div",19)(1,"p",20),n.EFF(2),n.k0s(),n.j41(3,"p",21),n.nrm(4,"app-yield",22),n.k0s()()),2&p){const r=E.$implicit,f=n.XpG(3).$implicit,R=n.XpG(2);n.R7$(2),n.SpI(" ",r.name," "),n.R7$(2),n.Y8G("value",R.getSingleRelation(R.item,f)[r.name])("prop",r)}}function W(p,E){if(1&p&&(n.j41(0,"div",29)(1,"div",30),n.DNE(2,K,5,3,"div",15),n.k0s()()),2&p){const r=n.XpG(2).$implicit,f=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",f.nestedEntityManifests[r.name].properties)}}function J(p,E){if(1&p&&(n.qex(0),n.j41(1,"p",20),n.EFF(2),n.k0s(),n.DNE(3,A,2,0,"p",0),n.j41(4,"div",27),n.DNE(5,W,3,1,"div",31),n.k0s(),n.bVm()),2&p){const r=n.XpG().$implicit,f=n.XpG(2);n.R7$(2),n.SpI(" ",r.name," "),n.R7$(),n.Y8G("ngIf",!f.item[r.name]),n.R7$(2),n.Y8G("ngIf",f.item[r.name])}}function z(p,E){if(1&p&&(n.j41(0,"div",23),n.DNE(1,S,6,3,"ng-container",0)(2,V,6,3,"ng-container",0)(3,J,6,3,"ng-container",0),n.k0s()),2&p){const r=E.$implicit;n.R7$(),n.Y8G("ngIf","many-to-one"===r.type||"many-to-many"===r.type&&r.owningSide&&!r.nested),n.R7$(),n.Y8G("ngIf",r.nested&&"one-to-many"===r.type),n.R7$(),n.Y8G("ngIf",r.nested&&"one-to-one"===r.type)}}function H(p,E){if(1&p&&(n.j41(0,"section")(1,"div",1)(2,"div",2),n.DNE(3,x,2,3,"a",3),n.j41(4,"h1",4),n.EFF(5),n.k0s()(),n.j41(6,"div",5)(7,"a",6),n.nrm(8,"i",7),n.k0s(),n.j41(9,"a",8),n.EFF(10,"Edit "),n.k0s(),n.j41(11,"a",9),n.nrm(12,"i",10),n.k0s()()(),n.j41(13,"div",11)(14,"div",12)(15,"div",13)(16,"div",14),n.DNE(17,k,5,3,"div",15)(18,z,4,3,"div",16),n.k0s()()()()()),2&p){const r=n.XpG();n.R7$(3),n.Y8G("ngIf",!r.entityManifest.single),n.R7$(2),n.SpI(" ",r.singleMode?r.entityManifest.nameSingular:r.item[r.entityManifest.mainProp]," "),n.R7$(12),n.Y8G("ngForOf",r.entityManifest.properties),n.R7$(),n.Y8G("ngForOf",r.entityManifest.relationships)}}let Z=(()=>{class p{constructor(r,f,R,T,P){this.crudService=r,this.manifestService=f,this.activatedRoute=R,this.metaService=T,this.router=P,this.nestedEntityManifests={}}ngOnInit(){var r=this;this.activatedRoute.params.subscribe(function(){var f=(0,h.A)(function*(R){if(r.entityManifest=yield r.manifestService.getEntityManifest({slug:R.entitySlug}),r.entityManifest.relationships)for(const T of r.entityManifest.relationships)if(T.nested){const P=yield r.manifestService.getEntityManifest({className:T.entity});r.nestedEntityManifests[T.name]=P}r.entityManifest||r.router.navigate(["/404"]),r.singleMode="single"===r.activatedRoute.snapshot.data.mode;try{r.item=r.singleMode?yield r.crudService.showSingle(r.entityManifest.slug):yield r.crudService.show(r.entityManifest.slug,R.id,{relations:r.entityManifest.relationships?.filter(T=>"one-to-many"!==T.type).filter(T=>"many-to-many"!==T.type||T.owningSide).map(T=>T.name)})}catch{r.router.navigate(["/404"])}r.metaService.setTitle((new M.X).transform(r.entityManifest.nameSingular))});return function(R){return f.apply(this,arguments)}}())}getMultipleRelations(r,f){return r[f.name]}getSingleRelation(r,f){return r[f.name]}static{this.\u0275fac=function(f){return new(f||p)(n.rXU(t.m),n.rXU($.x),n.rXU(e.nX),n.rXU(b.R),n.rXU(e.Ix))}}static{this.\u0275cmp=n.VBU({type:p,selectors:[["app-detail"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"is-flex","is-justify-content-space-between","is-align-items-center","mb-5"],[1,"left-part","is-flex","is-flex-wrap-wrap","is-align-items-center"],["class","button is-circle mr-2 button--back",3,"routerLink",4,"ngIf"],[1,"title","is-2","has-text-weight-light"],[1,"right-part","is-flex","is-flex-direction-row"],[1,"button","is-link","is-light","is-hidden-desktop","is-circle"],[1,"icon","icon-trash-2"],["routerLink","edit",1,"button","is-link","ml-2","is-hidden-touch"],["routerLink","edit",1,"button","is-link","ml-2","is-hidden-desktop","is-circle"],[1,"icon","icon-edit"],[1,"card","p-0","mb-6","is-shadowless"],[1,"card-content"],[1,"columns"],[1,"column","is-12-touch","is-8-desktop","is-offset-2-desktop","is-6-widescreen","is-offset-3-widescreen","is-6-fullhd","is-offset-3-fullhd"],["class","properties",4,"ngFor","ngForOf"],["class","relations",4,"ngFor","ngForOf"],[1,"button","is-circle","mr-2","button--back",3,"routerLink"],[1,"icon","icon-arrow-right"],[1,"properties"],[1,"is-property-label","mb-1","is-size-5","has-text-dark","has-text-weight-medium"],[1,"is-property-value"],[3,"value","prop"],[1,"relations"],[3,"item","relationship",4,"ngIf"],[3,"item","relationship"],[4,"ngFor","ngForOf"],[1,"group-wrapper","pl-5"],["class","nested-item",4,"ngFor","ngForOf"],[1,"nested-item"],[1,"box","is-shadowless","is-bordered","p-5","mb-5"],["class","nested-item",4,"ngIf"]],template:function(f,R){1&f&&n.DNE(0,H,19,4,"section",0),2&f&&n.Y8G("ngIf",R.item&&R.entityManifest)},dependencies:[Y.Sq,Y.bT,e.Wk,G.L,O.x],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";.properties[_ngcontent-%COMP%] + div[_ngcontent-%COMP%], .relations[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:16px}@media screen and (min-width: 1000px){.card.is-single-card[_ngcontent-%COMP%]{padding-right:25%!important;padding-left:25%!important}}@media screen and (min-width: 1458px){.card.is-single-card[_ngcontent-%COMP%]{padding-right:33%!important;padding-left:33%!important}}.group-wrapper[_ngcontent-%COMP%]{position:relative;overflow:hidden}.group-wrapper[_ngcontent-%COMP%]:before{position:absolute;left:0;top:-1px;width:2rem;height:2rem;display:inline-block;background-image:url(dot.a0723848e2d7f38a.svg);background-repeat:repeat-y;content:""}.nested-item[_ngcontent-%COMP%]{position:relative}.nested-item[_ngcontent-%COMP%]:before{content:"";position:absolute;left:-2rem;width:2rem;display:inline-block;background-image:url(dot.a0723848e2d7f38a.svg);background-repeat:repeat-y}.nested-item[_ngcontent-%COMP%]:not(:last-child):before{bottom:calc(-4rem - 3px);height:calc(100% + 2rem)}.nested-item[_ngcontent-%COMP%]:after{content:"";position:absolute;top:calc(2rem - 1px);left:-2rem;width:2rem;height:4px;display:inline-block;background-image:url(dot.a0723848e2d7f38a.svg);background-repeat:repeat-x}']})}}return p})()},8785:(Q,D,d)=>{d.d(D,{x:()=>Y});var h=d(2943),M=d(183),n=d(8284),t=d(2283);const $=(G,O)=>["/","collections",G,O];function e(G,O){if(1&G&&(n.j41(0,"a",2)(1,"span"),n.EFF(2),n.k0s()()),2&G){const I=n.XpG();n.Y8G("routerLink",n.l_i(2,$,I.entityManifest.slug,I.item.id)),n.R7$(2),n.JRh(I.item[I.entityManifest.mainProp])}}function b(G,O){1&G&&(n.j41(0,"span"),n.EFF(1,"-"),n.k0s())}let Y=(()=>{class G{constructor(I){this.manifestService=I}ngOnInit(){this.manifestService.getEntityManifest({className:this.relationship.entity}).then(I=>{this.entityManifest=I})}static{this.\u0275fac=function(x){return new(x||G)(n.rXU(t.x))}}static{this.\u0275cmp=n.VBU({type:G,selectors:[["app-relation-yield"]],inputs:{item:"item",relationship:"relationship"},standalone:!0,features:[n.aNF],decls:2,vars:2,consts:[[3,"routerLink",4,"ngIf"],[4,"ngIf"],[3,"routerLink"]],template:function(x,k){1&x&&n.DNE(0,e,3,5,"a",0)(1,b,2,0,"span",1),2&x&&(n.Y8G("ngIf",k.item&&k.entityManifest),n.R7$(),n.Y8G("ngIf",!k.item||!k.entityManifest))},dependencies:[M.iI,M.Wk,h.MD,h.bT]})}}return G})()},6631:(Q,D,d)=>{d.d(D,{L:()=>me});var h=d(2943),M=d(5442),n=function(i){return i[i.Text=0]="Text",i[i.Number=1]="Number",i[i.Link=2]="Link",i[i.Currency=3]="Currency",i[i.Date=4]="Date",i[i.Boolean=5]="Boolean",i[i.Email=6]="Email",i[i.ProgressBar=7]="ProgressBar",i[i.Label=8]="Label",i[i.Location=9]="Location",i}(n||{}),t=d(8284);function $(i,g){1&i&&(t.j41(0,"span"),t.nrm(1,"i",1),t.k0s())}function e(i,g){1&i&&(t.j41(0,"span"),t.EFF(1," - "),t.k0s())}let b=(()=>{class i{static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-boolean-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:3,vars:2,consts:[[4,"ngIf"],[1,"icon","icon-check-circle","has-text-success"]],template:function(_,c){1&_&&(t.j41(0,"div"),t.DNE(1,$,2,0,"span",0)(2,e,2,0,"span",0),t.k0s()),2&_&&(t.R7$(),t.Y8G("ngIf",c.value),t.R7$(),t.Y8G("ngIf",!c.value))},dependencies:[h.MD,h.bT]})}}return i})();function Y(i,g){if(1&i&&(t.j41(0,"span",1),t.EFF(1),t.nI1(2,"currency"),t.k0s()),2&i){const a=t.XpG();t.R7$(),t.SpI(" ",t.i5U(2,1,a.value,a.currency),"")}}function G(i,g){1&i&&(t.j41(0,"span",1),t.EFF(1," - "),t.k0s())}let O=(()=>{class i{static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-currency-yield"]],inputs:{value:"value",currency:"currency"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["class","is-nowrap",4,"ngIf"],[1,"is-nowrap"]],template:function(_,c){1&_&&t.DNE(0,Y,3,4,"span",0)(1,G,2,0,"span",0),2&_&&(t.Y8G("ngIf",c.value),t.R7$(),t.Y8G("ngIf",!c.value))},dependencies:[h.bT,h.oe]})}}return i})();function I(i,g){1&i&&(t.j41(0,"span",0),t.EFF(1," - "),t.k0s())}let x=(()=>{class i{static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-date-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:4,vars:5,consts:[[1,"is-nowrap"],["class","is-nowrap",4,"ngIf"]],template:function(_,c){1&_&&(t.j41(0,"span",0),t.EFF(1),t.nI1(2,"date"),t.k0s(),t.DNE(3,I,2,0,"span",1)),2&_&&(t.R7$(),t.JRh(t.i5U(2,2,c.value,"MM/dd/yy")),t.R7$(2),t.Y8G("ngIf",!c.value))},dependencies:[h.vh,h.bT]})}}return i})(),k=(()=>{class i{static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-email-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:3,vars:1,consts:[[1,"yield"],[1,"yield__value"]],template:function(_,c){1&_&&(t.j41(0,"div",0)(1,"div",1),t.EFF(2),t.k0s()()),2&_&&(t.R7$(2),t.JRh(c.value))}})}}return i})();function j(i,g){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const a=t.XpG();t.ZvI("tag is-rounded is-color-",a.index,""),t.R7$(),t.JRh(a.value)}}function N(i,g){1&i&&(t.j41(0,"span"),t.EFF(1,"-"),t.k0s())}let B=(()=>{class i{ngOnInit(){this.index=this.values.indexOf(this.value)}static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-label-yield"]],inputs:{value:"value",values:"values"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[[3,"class",4,"ngIf"],[4,"ngIf"]],template:function(_,c){1&_&&t.DNE(0,j,2,4,"span",0)(1,N,2,0,"span",1),2&_&&(t.Y8G("ngIf",c.value),t.R7$(),t.Y8G("ngIf",!c.value))},dependencies:[h.MD,h.bT],styles:[".is-color-3[_ngcontent-%COMP%]{background-color:#f50057;color:#fff}.is-color-1[_ngcontent-%COMP%]{background-color:#ff6d00;color:#fff}.is-color-2[_ngcontent-%COMP%]{background-color:#ffd600;color:#000}.is-color-4[_ngcontent-%COMP%]{background-color:#d500f9;color:#fff}.is-color-5[_ngcontent-%COMP%]{background-color:#651fff;color:#fff}.is-color-6[_ngcontent-%COMP%]{background-color:#3d5afe;color:#fff}.is-color-7[_ngcontent-%COMP%]{background-color:#00b0ff;color:#fff}.is-color-8[_ngcontent-%COMP%]{background-color:#00c853;color:#fff}.is-color-9[_ngcontent-%COMP%]{background-color:#64dd17;color:#000}.is-color-10[_ngcontent-%COMP%]{background-color:#a1887f;color:#fff}.is-color-11[_ngcontent-%COMP%]{background-color:#607d8b;color:#fff}.is-color-12[_ngcontent-%COMP%]{background-color:#9e9e9e;color:#fff}"]})}}return i})(),X=(()=>{class i{transform(a,_){return a?.length>_?a.substring(0,_)+"...":a}static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275pipe=t.EJ8({name:"truncate",type:i,pure:!0,standalone:!0})}}return i})();const S=(i,g)=>({"icon-external-link":i,"icon-download":g});function w(i,g){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"truncate"),t.k0s()),2&i){const a=t.XpG(2);t.R7$(),t.JRh(t.i5U(2,1,a.value,44))}}function U(i,g){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const a=t.XpG(2);t.R7$(),t.JRh(a.value)}}function L(i,g){if(1&i&&(t.j41(0,"a",2),t.nrm(1,"i",3),t.DNE(2,w,3,4,"span",4)(3,U,2,1,"span",4),t.k0s()),2&i){const a=t.XpG();t.Y8G("href",a.value,t.B4B)("download",a.isDownload),t.R7$(),t.Y8G("ngClass",t.l_i(5,S,!a.isDownload,a.isDownload)),t.R7$(),t.Y8G("ngIf",a.compact),t.R7$(),t.Y8G("ngIf",!a.compact)}}function V(i,g){1&i&&(t.j41(0,"span",5),t.EFF(1," - "),t.k0s())}let A=(()=>{class i{constructor(){this.compact=!0,this.isDownload=!1}static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-link-yield"]],inputs:{value:"value",compact:"compact",isDownload:"isDownload"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["target","_blank","class","is-inline-flex is-align-items-center",3,"href","download",4,"ngIf"],["class","is-nowrap",4,"ngIf"],["target","_blank",1,"is-inline-flex","is-align-items-center",3,"href","download"],[1,"icon","icon-external-link","mr-1",3,"ngClass"],[4,"ngIf"],[1,"is-nowrap"]],template:function(_,c){1&_&&t.DNE(0,L,4,8,"a",0)(1,V,2,0,"span",1),2&_&&(t.Y8G("ngIf",c.value),t.R7$(),t.Y8G("ngIf",!c.value))},dependencies:[h.bT,h.YU,X]})}}return i})();function K(i,g){if(1&i&&(t.j41(0,"a",2),t.nrm(1,"i",3),t.j41(2,"span"),t.EFF(3,"View on map"),t.k0s()()),2&i){const a=t.XpG();t.FCK("href","https://www.openstreetmap.org/?mlat=",a.value.lat,"&mlon=",a.value.lng,"",t.B4B)}}function W(i,g){1&i&&(t.j41(0,"span"),t.EFF(1,"-"),t.k0s())}let J=(()=>{class i{static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-location-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["target","_blank",3,"href",4,"ngIf"],[4,"ngIf"],["target","_blank",3,"href"],[1,"icon","icon-map-pin","mr-1"]],template:function(_,c){1&_&&t.DNE(0,K,4,3,"a",0)(1,W,2,0,"span",1),2&_&&(t.Y8G("ngIf",(null==c.value?null:c.value.lat)&&(null==c.value?null:c.value.lng)),t.R7$(),t.Y8G("ngIf",!(null!=c.value&&c.value.lat&&null!=c.value&&c.value.lng)))},dependencies:[h.bT]})}}return i})();function z(i,g){if(1&i&&(t.j41(0,"span",1),t.EFF(1),t.k0s()),2&i){const a=t.XpG();t.R7$(),t.SpI(" ",a.value," ")}}function H(i,g){1&i&&(t.j41(0,"span",1),t.EFF(1," - "),t.k0s())}let Z=(()=>{class i{static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-number-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["class","is-nowrap",4,"ngIf"],[1,"is-nowrap"]],template:function(_,c){1&_&&t.DNE(0,z,2,1,"span",0)(1,H,2,0,"span",0),2&_&&(t.Y8G("ngIf",null!==c.value),t.R7$(),t.Y8G("ngIf",null===c.value))},dependencies:[h.bT]})}}return i})();function p(i,g){1&i&&t.nrm(0,"span",4)}function E(i,g){1&i&&t.nrm(0,"span",5)}function r(i,g){if(1&i&&(t.qex(0),t.DNE(1,p,1,0,"span",2)(2,E,1,0,"span",3),t.bVm()),2&i){const a=g.index,_=t.XpG();t.R7$(),t.Y8G("ngIf",_.index>=a),t.R7$(),t.Y8G("ngIf",_.index<a)}}let f=(()=>{class i{constructor(){this.enumAsArray=[]}ngOnInit(){this.index=this.values.indexOf(this.value)}static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-progress-bar-yield"]],inputs:{value:"value",values:"values"},standalone:!0,features:[t.aNF],decls:2,vars:5,consts:[[1,"is-flex","is-align-items-center","is-white-space-nowrap","tooltip","has-tooltip-left"],[4,"ngFor","ngForOf"],["class","bullet",4,"ngIf"],["class","bullet is-grey",4,"ngIf"],[1,"bullet"],[1,"bullet","is-grey"]],template:function(_,c){1&_&&(t.j41(0,"div",0),t.DNE(1,r,3,2,"ng-container",1),t.k0s()),2&_&&(t.ZvI("is-color-",c.index,""),t.BMQ("data-tooltip",c.value||"Unknown"),t.R7$(),t.Y8G("ngForOf",c.values))},dependencies:[h.MD,h.Sq,h.bT]})}}return i})();function R(i,g){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"truncate"),t.k0s()),2&i){const a=t.XpG();t.R7$(),t.JRh(t.i5U(2,1,a.value,44))}}function T(i,g){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const a=t.XpG();t.R7$(),t.JRh(a.value)}}function P(i,g){1&i&&(t.j41(0,"span"),t.EFF(1," - "),t.k0s())}let q=(()=>{class i{constructor(){this.compact=!0}static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-text-yield"]],inputs:{value:"value",compact:"compact"},standalone:!0,features:[t.aNF],decls:3,vars:3,consts:[[4,"ngIf"]],template:function(_,c){1&_&&t.DNE(0,R,3,4,"span",0)(1,T,2,1,"span",0)(2,P,2,0,"span",0),2&_&&(t.Y8G("ngIf",c.compact),t.R7$(),t.Y8G("ngIf",!c.compact),t.R7$(),t.Y8G("ngIf",!c.value))},dependencies:[h.MD,h.bT,X]})}}return i})(),ee=(()=>{class i{static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-timestamp-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:3,vars:4,consts:[[1,"is-nowrap"]],template:function(_,c){1&_&&(t.j41(0,"span",0),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&_&&(t.R7$(),t.JRh(t.i5U(2,1,c.value,"yyyy-MM-dd HH:mm:ss")))},dependencies:[h.vh],encapsulation:2})}}return i})();var te=d(7563);function ne(i,g){if(1&i&&t.nrm(0,"img",2),2&i){const a=t.XpG();t.Y8G("src",a.image,t.B4B)}}function ie(i,g){1&i&&(t.j41(0,"span"),t.EFF(1,"-"),t.k0s())}let oe=(()=>{class i{ngOnInit(){if(this.value){const a=(0,te.Gj)(this.sizes);this.image=this.value[a]}}static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-image-yield"]],inputs:{value:"value",sizes:"sizes",label:"label"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["alt","image","width","36","height","36",3,"src",4,"ngIf"],[4,"ngIf"],["alt","image","width","36","height","36",3,"src"]],template:function(_,c){1&_&&t.DNE(0,ne,1,1,"img",0)(1,ie,2,0,"span",1),2&_&&(t.Y8G("ngIf",c.image),t.R7$(),t.Y8G("ngIf",!c.image))},dependencies:[h.bT],encapsulation:2})}}return i})();function s(i,g){if(1&i&&(t.j41(0,"div",2)(1,"div",3),t.nrm(2,"div",4),t.k0s()()),2&i){const a=t.XpG();t.R7$(2),t.Y8G("innerHTML",a.value,t.npT)}}function C(i,g){1&i&&(t.j41(0,"span"),t.EFF(1,"-"),t.k0s())}let o=(()=>{class i{static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-rich-text-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["class","wrapper",4,"ngIf"],[4,"ngIf"],[1,"wrapper"],[1,"content","is-normal"],[3,"innerHTML"]],template:function(_,c){1&_&&t.DNE(0,s,3,1,"div",0)(1,C,2,0,"span",1),2&_&&(t.Y8G("ngIf",c.value),t.R7$(),t.Y8G("ngIf",!c.value))},dependencies:[h.bT],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";.wrapper[_ngcontent-%COMP%]{border:1px solid #dddde2;background-color:#fff;padding:32px;border-radius:6px}.content[_ngcontent-%COMP%] blockquote[_ngcontent-%COMP%]{border-left:4px solid #39393c;background-color:#fff}']})}}return i})();function l(i,g){if(1&i&&t.nrm(0,"app-text-yield",6),2&i){const a=t.XpG();t.Y8G("value",a.value)("compact",a.compact)}}function m(i,g){if(1&i&&t.nrm(0,"app-rich-text-yield",7),2&i){const a=t.XpG();t.Y8G("value",a.value)}}function v(i,g){if(1&i&&t.nrm(0,"app-number-yield",7),2&i){const a=t.XpG();t.Y8G("value",a.value)}}function u(i,g){if(1&i&&t.nrm(0,"app-link-yield",8),2&i){const a=t.XpG();t.Y8G("value",a.value)("isDownload",a.prop.type===a.PropType.File)("compact",a.compact)}}function y(i,g){if(1&i&&t.nrm(0,"app-boolean-yield",7),2&i){const a=t.XpG();t.Y8G("value",a.value)}}function F(i,g){if(1&i&&t.nrm(0,"app-currency-yield",9),2&i){const a=t.XpG();t.Y8G("currency",null==a.prop.options?null:a.prop.options.currency)("value",a.value)}}function ae(i,g){if(1&i&&t.nrm(0,"app-date-yield",7),2&i){const a=t.XpG();t.Y8G("value",a.value)}}function se(i,g){if(1&i&&t.nrm(0,"app-timestamp-yield",7),2&i){const a=t.XpG();t.Y8G("value",a.value)}}function re(i,g){if(1&i&&t.nrm(0,"app-email-yield",7),2&i){const a=t.XpG();t.Y8G("value",a.value)}}function le(i,g){if(1&i&&t.nrm(0,"app-label-yield",10),2&i){const a=t.XpG();t.Y8G("values",null==a.prop.options?null:a.prop.options.values)("value",a.value)}}function ce(i,g){if(1&i&&t.nrm(0,"app-progress-bar-yield",10),2&i){const a=t.XpG();t.Y8G("values",null==a.prop.options?null:a.prop.options.values)("value",a.value)}}function _e(i,g){if(1&i&&t.nrm(0,"app-location-yield",7),2&i){const a=t.XpG();t.Y8G("value",a.value)}}function pe(i,g){if(1&i&&t.nrm(0,"app-image-yield",11),2&i){const a=t.XpG();t.Y8G("value",a.value)("sizes",null==a.prop.options?null:a.prop.options.sizes)}}let me=(()=>{class i{constructor(){this.compact=!1,this.PropType=M.Kk,this.YieldType=n}static{this.\u0275fac=function(_){return new(_||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-yield"]],inputs:{prop:"prop",value:"value",compact:"compact"},standalone:!0,features:[t.aNF],decls:13,vars:13,consts:[[3,"value","compact",4,"ngIf"],[3,"value",4,"ngIf"],[3,"value","isDownload","compact",4,"ngIf"],[3,"currency","value",4,"ngIf"],[3,"values","value",4,"ngIf"],[3,"value","sizes",4,"ngIf"],[3,"value","compact"],[3,"value"],[3,"value","isDownload","compact"],[3,"currency","value"],[3,"values","value"],[3,"value","sizes"]],template:function(_,c){1&_&&t.DNE(0,l,1,2,"app-text-yield",0)(1,m,1,1,"app-rich-text-yield",1)(2,v,1,1,"app-number-yield",1)(3,u,1,3,"app-link-yield",2)(4,y,1,1,"app-boolean-yield",1)(5,F,1,2,"app-currency-yield",3)(6,ae,1,1,"app-date-yield",1)(7,se,1,1,"app-timestamp-yield",1)(8,re,1,1,"app-email-yield",1)(9,le,1,2,"app-label-yield",4)(10,ce,1,2,"app-progress-bar-yield",4)(11,_e,1,1,"app-location-yield",1)(12,pe,1,2,"app-image-yield",5),2&_&&(t.Y8G("ngIf",c.prop.type===c.PropType.String||c.prop.type===c.PropType.Text),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.RichText),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Number),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Link||c.prop.type===c.PropType.File),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Boolean),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Money),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Date),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Timestamp),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Email),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Choice&&!0!==(null==c.prop.options?null:c.prop.options.sequential)),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Choice&&!0===(null==c.prop.options?null:c.prop.options.sequential)),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Location),t.R7$(),t.Y8G("ngIf",c.prop.type===c.PropType.Image))},dependencies:[h.MD,h.bT,b,O,x,ee,k,Z,A,q,B,f,J,oe,o],encapsulation:2})}}return i})()}}]);
|