PageSourceSearch

https://www.dubrovnikpass.com/459.13b6dd5ecd1a8072.js

js dubrovnikpass.com collected 2026-10-02 10:52:06 UTC 10,533 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcity_pass=self.webpackChunkcity_pass||[]).push([[459],{8459:(k,d,n)=>{n.r(d),n.d(d,{NoticeRoutingModule:()=>F});var f=n(9352),s=n(4006),h=n(7579),u=n(2722),c=n(2801),t=n(4650),v=n(2952),Z=n(4383),y=n(1539),m=n(6895),p=n(1576),x=n(5829),g=n(9549),A=n(7392),C=n(4144),L=n(4385),N=n(3238),w=n(1572),M=n(4859),_=n(3081);function T(o,a){1&o&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&o&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"notice.tillBeforeFrom")," "))}function U(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"div",4)(1,"div",19),t._UZ(2,"div",8),t.TgZ(3,"div",20)(4,"div",21),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"button",22),t.NdJ("click",function(){const l=t.CHM(e).index,P=t.oxw(2);return t.KtG(P.removeNotice(l))}),t.TgZ(8,"mat-icon"),t._uU(9,"delete"),t.qZA()()(),t._UZ(10,"div",8),t.qZA(),t.TgZ(11,"div",7),t._UZ(12,"div",8),t.TgZ(13,"div",9)(14,"div",7)(15,"mat-form-field",23)(16,"mat-label"),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"mat-select",24)(20,"mat-option",25),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.TgZ(23,"mat-option",26),t._uU(24),t.ALo(25,"translate"),t.qZA(),t.TgZ(26,"mat-option",27),t._uU(27),t.ALo(28,"translate"),t.qZA()()(),t.TgZ(29,"mat-form-field",23)(30,"mat-label"),t._uU(31),t.ALo(32,"translate"),t.qZA(),t._UZ(33,"input",28),t.qZA(),t.TgZ(34,"mat-form-field",23)(35,"mat-label"),t._uU(36),t.ALo(37,"translate"),t.qZA(),t._UZ(38,"input",29),t.YNc(39,T,3,3,"mat-error",30),t.qZA()()(),t._UZ(40,"div",8),t.qZA(),t.TgZ(41,"div",7),t._UZ(42,"div",8),t.TgZ(43,"div",9)(44,"mat-form-field",31)(45,"mat-label"),t._uU(46),t.ALo(47,"translate"),t.qZA(),t._UZ(48,"input",32),t.qZA()(),t._UZ(49,"div",8),t.qZA(),t.TgZ(50,"div",7),t._UZ(51,"div",8),t.TgZ(52,"div",9)(53,"mat-form-field",33)(54,"mat-label"),t._uU(55),t.ALo(56,"translate"),t.qZA(),t._UZ(57,"textarea",34),t.qZA()(),t.TgZ(58,"div",9)(59,"mat-form-field",33)(60,"mat-label"),t._uU(61),t.ALo(62,"translate"),t.qZA(),t._UZ(63,"textarea",35),t.qZA()(),t._UZ(64,"div",8),t.qZA(),t._UZ(65,"div",36),t.qZA()}if(2&o){const e=a.$implicit,i=a.index;let r;t.Q6J("formGroup",e),t.xp6(5),t.AsE(" ",t.lcZ(6,13,"notice.label")," ",i+1," "),t.xp6(12),t.Oqu(t.lcZ(18,15,"notice.type")),t.xp6(4),t.Oqu(t.lcZ(22,17,"notice.typeEnum.info")),t.xp6(3),t.Oqu(t.lcZ(25,19,"notice.typeEnum.warning")),t.xp6(3),t.Oqu(t.lcZ(28,21,"notice.typeEnum.danger")),t.xp6(4),t.Oqu(t.lcZ(32,23,"notice.from")),t.xp6(5),t.Oqu(t.lcZ(37,25,"notice.till")),t.xp6(3),t.Q6J("ngIf",(null==(r=e.get("till"))?null:r.hasError("tillBeforeFrom"))&&((null==(r=e.get("till"))?null:r.touched)||(null==(r=e.get("till"))?null:r.dirty))),t.xp6(7),t.Oqu(t.lcZ(47,27,"notice.fontSize")),t.xp6(9),t.Oqu(t.lcZ(56,29,"notice.message.hr")),t.xp6(6),t.Oqu(t.lcZ(62,31,"notice.message.en"))}}function O(o,a){1&o&&(t.TgZ(0,"div",37),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&o&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"notice.none.configured")," "))}function b(o,a){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",7),t._UZ(2,"div",8),t.TgZ(3,"div",9),t._UZ(4,"div",8),t.TgZ(5,"div",10)(6,"div",11)(7,"button",12),t.NdJ("click",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.addNotice())}),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t.TgZ(10,"div",13)(11,"button",14),t.NdJ("click",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.onSave())}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()(),t._UZ(14,"div",8),t.qZA(),t._UZ(15,"div",15)(16,"div",16),t.YNc(17,U,66,33,"div",17),t.YNc(18,O,3,3,"div",18),t.BQk()}if(2&o){const e=t.oxw();
1t.xp6(8),t.hij(" ",t.lcZ(9,5,"notice.addNew")," "),t.xp6(3),t.Q6J("disabled",e.formGroup.invalid||e.loading),t.xp6(1),t.hij(" ",t.lcZ(13,7,"header.institution.admin.save")," "),t.xp6(5),t.Q6J("ngForOf",e.noticeFormGroups),t.xp6(1),t.Q6J("ngIf",!e.noticeFormGroups.length)}}function G(o,a){1&o&&(t.TgZ(0,"div",38),t._UZ(1,"mat-spinner",39),t.qZA()),2&o&&(t.xp6(1),t.Q6J("strokeWidth",2)("diameter",30))}const S=function(o){return{"background-image":o}};let q=(()=>{class o{constructor(e,i,r,l){this.formBuilder=e,this.noticeService=i,this.toastr=r,this.appConfigService=l,this.loading=!1,this.noticesLoaded=!1,this.destroy$=new h.x,this.formGroup=this.formBuilder.group({notices:this.formBuilder.array([])})}get noticesArray(){return this.formGroup.get("notices")}get noticeFormGroups(){return this.noticesArray.controls}ngOnInit(){this.loadNotices()}ngOnDestroy(){this.destroy$.next(void 0),this.destroy$.complete()}loadNotices(){this.loading=!0,c.o.showSpinner(),this.noticeService.getAllNotices().pipe((0,u.R)(this.destroy$)).subscribe({next:e=>{this.noticesArray.clear(),(e||[]).forEach(i=>this.noticesArray.push(this.createNoticeGroup(i))),this.noticesLoaded=!0},error:e=>{this.showErrorMessage(e?.message||"Gre\u0161ka pri dohva\u0107anju obavijesti")},complete:()=>{this.loading=!1,c.o.hideSpinner()}})}createNoticeGroup(e){const i=this.formBuilder.group({messageHR:[e?.messageHR||"",s.kI.required],messageEN:[e?.messageEN||"",s.kI.required],type:[e?.type||"danger",s.kI.required],from:[e?.from||"",s.kI.required],till:[e?.till||"",[s.kI.required,I]],fontSize:[e?.fontSize||null]}),r=i.get("from"),l=i.get("till");return r?.valueChanges.pipe((0,u.R)(this.destroy$)).subscribe(()=>{l?.updateValueAndValidity({onlySelf:!0})}),i}addNotice(){this.noticesArray.push(this.createNoticeGroup())}removeNotice(e){this.noticesArray.removeAt(e)}onSave(){if(this.formGroup.invalid)return void this.formGroup.markAllAsTouched();const e=this.noticesArray.value;c.o.showSpinner(),this.noticeService.saveNotices(e).pipe((0,u.R)(this.destroy$)).subscribe({next:()=>{this.showSuccessMessage("Obavijesti su spremljene"),this.loadNotices()},error:i=>{this.showErrorMessage(i?.message||"Gre\u0161ka pri spremanju obavijesti"),c.o.hideSpinner()}})}showSuccessMessage(e){this.toastr.success(e,"Success")}showErrorMessage(e){this.toastr.error(e,"Error")}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(s.QS),t.Y36(v.g),t.Y36(Z._W),t.Y36(y._))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-notices-manage"]],decls:11,vars:9,consts:[[1,"wrapper",3,"ngStyle"],[1,"section-main-title"],[1,"main-title"],["fxLayout","column",1,"checkout-section-wrapper"],[3,"formGroup"],[4,"ngIf","ngIfElse"],["spinner",""],["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutGap","20px","fxLayoutAlign","start"],["fxShow","true","fxHide.xs","true","fxHide.sm","true","fxFlex","5%"],["fxLayout","column",1,"form-input-wrapper"],["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutGap","20px","fxLayoutAlign","space-between"],["fxLayout","row","fxLayoutGap","20px","fxLayoutAlign","start center"],["mat-stroked-button","",1,"btn","button-new-notice",2,"min-width","150px","max-height","60px","min-height","60px",3,"click"],["fxLayout","row","fxLayoutGap","20px","fxLayoutAlign","end center"],["mat-stroked-button","",1,"btn","button-save-notice",2,"min-width","150px","max-height","60px","min-height","60px","background-color","#28a745",3,"disabled","click"],[1,"red-separator",2,"width","86%"],[1,"white-separator"],[3,"formGroup",4,"ngFor","ngForOf"],["style","text-align: center; margin-top: 24px; font-style: italic;",4,"ngIf"],["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutGap","20px","fxLayoutAlign","start",2,"margin-top","20px"],["fxLayout","row","fxLayoutAlign","space-between center",1,"form-input-wrapper"],[2,"font-weight","600"],["mat-icon-button","","color","warn",3,"click"],["appearance","fill","fxFlex",""],["formControlName","type"],["value","info"],["value","warning"],["value","danger"],["matInput","","type","date","formControlName","from"],["matInput","","type","date","formControlName","till"],[4,"ngIf"],["appearance","fill","fxFlex","25"],["matInput","","formControlName","fontSize"],["appearance","fill"],["matInput","","formControlName","messageHR","rows","4"],["matInput","","formControlName","messageEN","rows","4"],[1,"red-separator",2,"width","86%","margin-top","20px"],[2,"text-align","center","margin-top","24px","font-style","
1italic"],["fxLayout","column","fxLayout.sm","column","fxLayout.xs","column","fxLayoutGap","40px",2,"margin-top","50px","margin-bottom","50px","min-width","100px","align-self","center"],["fxLayout","row",2,"align-self","center",3,"strokeWidth","diameter"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"br"),t.TgZ(3,"div",2),t._uU(4),t.ALo(5,"translate"),t.qZA()(),t.TgZ(6,"div",3)(7,"form",4),t.YNc(8,b,19,9,"ng-container",5),t.qZA()()(),t.YNc(9,G,2,2,"ng-template",null,6,t.W1O)),2&e){const r=t.MAs(10);t.Q6J("ngStyle",t.VKq(7,S,"url("+i.appConfigService.images().header+")")),t.xp6(4),t.Oqu(t.lcZ(5,5,"notice.management.title")),t.xp6(3),t.Q6J("formGroup",i.formGroup),t.xp6(1),t.Q6J("ngIf",i.noticesLoaded)("ngIfElse",r)}},dependencies:[m.sg,m.O5,m.PC,p.xw,p.SQ,p.Wh,p.yH,x.b8,x.Zl,g.TO,g.KE,g.hX,A.Hw,C.Nt,L.gD,N.ey,w.Ou,M.lW,s._Y,s.Fj,s.JJ,s.JL,s.sg,s.u,_.X$],styles:[".wrapper[_ngcontent-%COMP%]{z-index:100;background-position:center;background-repeat:no-repeat;background-size:cover;height:700px;position:relative;padding-top:160px;margin-top:-200px}.form[_ngcontent-%COMP%]{margin-bottom:150px!important}.checkout-section-wrapper[_ngcontent-%COMP%]{background:white;position:relative;margin-left:10%;margin-right:10%;height:auto;z-index:2;margin-top:40px;padding:50px}.form-input-wrapper[_ngcontent-%COMP%]{width:100%!important}.container[_ngcontent-%COMP%]{padding:2px 16px}.mat-form-field[_ngcontent-%COMP%]{width:100%!important}table[_ngcontent-%COMP%]{width:100%}.btn-reset[_ngcontent-%COMP%], .btn-delete[_ngcontent-%COMP%]{width:auto}.button-new-notice[_ngcontent-%COMP%], .button-save-notice[_ngcontent-%COMP%]{width:auto!important}@media only screen and (max-width: 960px){.wrapper[_ngcontent-%COMP%]{z-index:0;padding-top:200px}.form-input-wrapper[_ngcontent-%COMP%]{width:100%!important}.checkout-section-wrapper[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important;padding:20px!important}.button-wrapper[_ngcontent-%COMP%]{justify-content:center!important;flex-direction:column!important;margin-top:15px!important}.button-new-notice[_ngcontent-%COMP%]{width:auto!important}.button-save-notice[_ngcontent-%COMP%]{width:auto!important;margin-top:10px!important}}"]}),o})();const I=o=>{if(!o.parent)return null;const a=o.value,e=o.parent.get("from")?.value;return e&&a&&a<e?{tillBeforeFrom:!0}:null},E=[{path:"",component:q}];let F=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[f.Bz.forChild(E),f.Bz]}),o})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.