{"version":3,"sources":["webpack:///./src/components/tab/Tab.vue?cd80","webpack:///src/components/tab/Tab.vue","webpack:///./src/components/tab/Tab.vue?3070","webpack:///./src/components/tab/Tab.vue","webpack:///./src/components/tab/Tabs.vue?4f26","webpack:///./src/services/expiringStorage.js","webpack:///src/components/tab/Tabs.vue","webpack:///./src/components/tab/Tabs.vue?6be9","webpack:///./src/components/tab/Tabs.vue","webpack:///./src/components/tab/CustomTabs.js","webpack:///./node_modules/core-js/modules/es6.array.find-index.js","webpack:///./src/components/common/FileDownload.vue?1aab","webpack:///./src/components/common/FileDownload.vue?578b","webpack:///src/components/common/FileDownload.vue","webpack:///./src/components/common/FileDownload.vue?7754","webpack:///./src/components/common/FileDownload.vue?6e09","webpack:///./src/components/dynamic/AuxiliaryRegister.vue?619b","webpack:///./src/components/address/Address.vue?9467","webpack:///src/components/address/Address.vue","webpack:///./src/components/address/Address.vue?51b1","webpack:///./src/components/address/Address.vue","webpack:///./src/buses/register-bus.js","webpack:///./src/components/otherFields/OtherFields.vue?a2e7","webpack:///src/components/otherFields/OtherFields.vue","webpack:///./src/components/otherFields/OtherFields.vue?ec76","webpack:///./src/components/otherFields/OtherFields.vue","webpack:///./src/components/datepicker/DatePicker.vue?877f","webpack:///src/components/datepicker/DatePicker.vue","webpack:///./src/components/datepicker/DatePicker.vue?5e04","webpack:///./src/components/datepicker/DatePicker.vue","webpack:///./src/components/dynamic/DynamicRegisterDropdown.vue?1db3","webpack:///./src/components/dynamic/DynamicRegisterMultiSelect.vue?d992","webpack:///src/components/dynamic/DynamicRegisterMultiSelect.vue","webpack:///./src/components/dynamic/DynamicRegisterMultiSelect.vue?d03e","webpack:///./src/components/dynamic/DynamicRegisterMultiSelect.vue","webpack:///src/components/dynamic/DynamicRegisterDropdown.vue","webpack:///./src/components/dynamic/DynamicRegisterDropdown.vue?305b","webpack:///./src/components/dynamic/DynamicRegisterDropdown.vue","webpack:///./node_modules/vue-star-rating/dist/star-rating.min.js","webpack:///./src/components/dynamic/Panel.vue?0f3d","webpack:///./src/components/dynamic/Input.vue?18c9","webpack:///src/components/dynamic/Input.vue","webpack:///./src/components/dynamic/Input.vue?dec9","webpack:///./src/components/dynamic/Input.vue","webpack:///./src/components/dynamic/Toggle.vue?3952","webpack:///src/components/dynamic/Toggle.vue","webpack:///./src/components/dynamic/Toggle.vue?0297","webpack:///./src/components/dynamic/Toggle.vue","webpack:///./src/components/dynamic/Datepicker.vue?0101","webpack:///src/components/dynamic/Datepicker.vue","webpack:///./src/components/dynamic/Datepicker.vue?68ee","webpack:///./src/components/dynamic/Datepicker.vue","webpack:///./src/components/dynamic/Dropdown.vue?21ff","webpack:///./src/components/dynamic/NomenclatureDropdown.vue?7c27","webpack:///./src/components/dynamic/NomenclatureMultiSelect.vue?6d7d","webpack:///src/components/dynamic/NomenclatureMultiSelect.vue","webpack:///./src/components/dynamic/NomenclatureMultiSelect.vue?3a4d","webpack:///./src/components/dynamic/NomenclatureMultiSelect.vue","webpack:///src/components/dynamic/NomenclatureDropdown.vue","webpack:///./src/components/dynamic/NomenclatureDropdown.vue?bd71","webpack:///./src/components/dynamic/NomenclatureDropdown.vue","webpack:///./src/components/dynamic/StaticRegisterDropdown.vue?a67b","webpack:///./src/components/dynamic/StaticRegisterMultiSelect.vue?7ffa","webpack:///src/components/dynamic/StaticRegisterMultiSelect.vue","webpack:///./src/components/dynamic/StaticRegisterMultiSelect.vue?8b4b","webpack:///./src/components/dynamic/StaticRegisterMultiSelect.vue","webpack:///src/components/dynamic/StaticRegisterDropdown.vue","webpack:///./src/components/dynamic/StaticRegisterDropdown.vue?1e09","webpack:///./src/components/dynamic/StaticRegisterDropdown.vue","webpack:///src/components/dynamic/Dropdown.vue","webpack:///./src/components/dynamic/Dropdown.vue?7749","webpack:///./src/components/dynamic/Dropdown.vue","webpack:///./src/components/dynamic/FileUpload.vue?129f","webpack:///src/components/dynamic/FileUpload.vue","webpack:///./src/components/dynamic/FileUpload.vue?3d38","webpack:///./src/components/dynamic/FileUpload.vue","webpack:///./src/components/dynamic/Person.vue?760d","webpack:///src/components/dynamic/Person.vue","webpack:///./src/components/dynamic/Person.vue?408a","webpack:///./src/components/dynamic/Person.vue","webpack:///./src/components/dynamic/Address.vue?9ab0","webpack:///src/components/dynamic/Address.vue","webpack:///./src/components/dynamic/Address.vue?fe38","webpack:///./src/components/dynamic/Address.vue","webpack:///./src/components/dynamic/StarRating.vue?af66","webpack:///src/components/dynamic/StarRating.vue","webpack:///./src/components/dynamic/StarRating.vue?3130","webpack:///./src/components/dynamic/StarRating.vue","webpack:///src/components/dynamic/Panel.vue","webpack:///./src/components/dynamic/Panel.vue?6138","webpack:///./src/components/dynamic/Panel.vue","webpack:///./src/components/dynamic/AuxiliaryRegister.vue?190f","webpack:///src/components/dynamic/AuxiliaryRegister.vue","webpack:///./src/components/dynamic/AuxiliaryRegister.vue?e9ce","webpack:///./src/components/dynamic/AuxiliaryRegister.vue","webpack:///./src/views/registers/projects/Project.vue?abe4","webpack:///src/views/registers/projects/Project.vue","webpack:///./src/views/registers/projects/Project.vue?64a0","webpack:///./src/views/registers/projects/Project.vue","webpack:///./src/services/dynamicFieldChangeHandler.service.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","directives","name","rawName","value","expression","staticClass","attrs","isActive","computedId","_t","staticRenderFns","inject","props","id","default","required","prefix","suffix","isDisabled","data","isVisible","computed","header","hash","component","_l","tab","i","key","class","domProps","_s","on","$event","selectTab","ExpiringStorage","cached","JSON","parse","localStorage","getItem","expires","Date","removeItem","lifeTimeInMinutes","currentTime","getTime","setItem","cacheLifetime","options","type","useUrlFragment","defaultTabHash","loadSavedTab","tabs","activeTabHash","activeTabIndex","lastActiveTabHash","storageKey","created","mounted","window","methods","findTab","selectedTabHash","event","expiringStorage","setTabVisible","visible","getTabIndex","getTabHash","index","getActiveTab","getActiveTabIndex","install","Vue","Tab","Tabs","$export","$find","KEY","forced","Array","P","F","findIndex","callbackfn","arguments","length","undefined","loading","showDescription","stopPropagation","download","_v","file","fileName","target","composing","$set","_e","path","baseUrl","responseType","then","link","document","catch","color","title","text","_uid","$t","ref","contriesSort","isAddressDetails","editing","model","address","callback","$$v","errors","has","first","countryId","countries","BG","cityChanged","areaOfAppeal","coordsLoading","addressLoading","getCoords","openForEdit","saving","createOrEdit","cancelEdit","isNew","contactAddressId","allowEdit","loadCurrentUserAddress","showAreaOfAppeal","Boolean","userId","profileData","components","cityDropdownSearch","dropdownSearch","oldValue","isEnVersion","post","response","time","notificationDuration","put","getCurrentUserContactAddress","getAddress2","get","getAddress","params","fullAddress","fillProfileData","console","watch","handler","deep","immediate","RegisterEventBus","otherFields","maxLength","charactersRemainingField1","charactersRemainingField2","uid","staticStyle","customFormat","timeFormat","datepickerStart","datepickerDepth","readonly","dateMinVal","dateMaxVal","fieldName","inputChanged","dateValue","format","showTime","min","max","showOnlyYear","convertToLocalTime","useUtcTime","changedFromPicker","defaultDateMinVal","defaultDateMaxVal","convertFromUtcToLocal","dateUtc","newVal","oldVal","kendo","isMultiDropdown","items","filterPattern","details","isReadOnly","optionLabel","nomDropdownSettings","showFooterTemplate","footerTemplate","height","selectedId","showSettings","fieldValue","isRequired","selectedValues","DropdownSettings","loaded","init","populateStringValueById","ids","stringValues","template","templateArgs","e","btns","tooltip","icon","show","clickHandler","mapGetters","loadDropdownData","t","module","exports","n","r","l","call","m","c","d","o","Object","defineProperty","configurable","enumerable","__esModule","prototype","hasOwnProperty","p","s","btoa","concat","sources","map","sourceRoot","join","unescape","encodeURIComponent","stringify","toString","a","push","u","_scopeId","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","functional","beforeCreate","esModule","refs","parts","createElement","appendChild","querySelector","h","g","parentNode","removeChild","v","f","bind","css","media","sourceMap","styleSheet","cssText","createTextNode","childNodes","insertBefore","setAttribute","firstChild","DEBUG","Error","head","getElementsByTagName","navigator","test","userAgent","toLowerCase","filter","star","prop","increment","Number","rating","roundStartRating","activeColor","String","inactiveColor","maxRating","starPoints","starSize","showRating","readOnly","textClass","inline","borderColor","borderWidth","roundedCorners","padding","rtl","fixedPoints","glow","glowColor","step","currentRating","selectedRating","createStars","setRating","position","toFixed","$emit","ratingSelected","resetRating","shouldRound","round","fillLevel","Math","ceil","formattedRating","margin","fill","points","size","starId","calculatePoints","grad","getRandomId","glowId","starPointsToString","getGradId","getSize","parseInt","border","getFill","getBorderColor","maxSize","reduce","viewBox","mouseMoving","getPosition","offsetX","selected","random","substring","width","mousemove","click","x1","x2","y1","y2","offset","filterUnits","stdDeviation","result","in","stroke","mouseleave","style","locals","panel","labelEn","label","fieldType","tag","allowAnonymous","isEvaluationPanel","deleteSavedFile","labelClasses","inputType","fieldCode","initialValue","isArray","_i","$$a","$$el","$$c","checked","$$i","slice","_q","descriptionEn","description","validations","addValidations","addValidation","validation","addTextValidations","addNumberValidations","addIntValidations","addDecimalValidations","loadInitialValue","stringValueChanged","selectedValue","Toggle","stringValue","datetimeMinValue","datetimeMaxValue","selectedDate","DatetimePicker","setEventDate","date","componentReset","destroyed","dropdownComponent","nomenclatureName","dropdownIsCity","multiSelectValue","showNoDataTemplate","noDataTemplate","showNomCreate","cancelPrompt","nomParentSort","nomParentType","nomEditCancel","nomEditSave","NomenclatureEditCard","url","indexOf","split","parsedValues","templateBtns","NodataTemplate","noDataFound","createQuestion","FooterTemplate","addNomenclature","args","showNewNomenclatureModal","clearFilterAndText","dropdown","selectContextMenu","hasCreateRights","dropdownId","Dropdown","MultiSelect","CityDropdownSearch","StaticRegisterMultiSelect","NomenclatureDropdown","StaticRegisterDropdown","DynamicRegisterDropdown","addProperDropdown","$index","docTypeCode","fileChanged","fileRemoved","files","FileDownload","filesForDownload","activePrompt","originalModel","filePath","content","fileDescription","registerEntityFieldValueId","fileToRemove","getSeparatedFileNames","fileNames","fileId","fileIndex","checkForSavedFiles","person","requiredIdentification","validateUniqueIdNumber","validateEgn","PersonComponent","hasSavedPerson","fieldId","AddressComponent","intMaxValue","intValue","StarRating","setInitialValue","Input","Datepicker","FileUpload","Person","Address","claims","auxiliaryRegister","register","registerId","entryId","registerName","Panel","pageLoaded","isSaved","areObjectsEqual","dynamicFieldChangeHandler","newValue","DynamicFieldChangeHandler","loadEmptyRegisterStructure","loadRegisterStructureWithEntities","getDynamicRegisterModelForSubmit","fieldsValues","fieldValues","registerEntityExtension","handleResize","isBgCulture","preventDefault","onSubmit","backToRegister","project","nomenclature","FundingType","organizer","deleteOrganizer","addPartner","activity","deleteActivity","addActivity","projectActivity","projectActivities","deleteProjectActivity","addProjectActivity","AuxiliaryRegisters","Projects","auxRegisterEntityId","PageTitle","OtherFields","DynamicDropdown","AuxiliaryRegister","create","edit","loadData","beforeRouteLeave","to","from","next","store","getters","appSettings","recalcSubscriptionDates","panels","j","FieldCodes","EventSubscriptionStartDate","datetimeValue","moment","utc","utcStr","toISOString","replace","EventSubscriptionEndDate","AccommodationType","WithourAccommodation","setComponentWithCodeToReadonly","LastDayForBooking","EventAccommodationPlaceName","AccommodationAddress","EventStayFrom","EventStayTo","EventDailyAllowanceFrom","EventDailyAllowanceTo","code","isReadonly","getFieldCode","EventStartDate","eventStartDateChangeHandler","EventEndDate","eventEndDateChangeHandler","eventAccommodationTypeChangeHandler"],"mappings":"2IAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,UAAU,CAACE,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAOT,EAAY,SAAEU,WAAW,aAAaC,YAAY,uBAAuBC,MAAM,CAAC,eAAgBZ,EAAIa,SAAS,GAAKb,EAAIc,WAAW,KAAO,aAAa,CAACd,EAAIe,GAAG,YAAY,IACpUC,EAAkB,GCUtB,G,oBAAA,CACAC,sBACAC,OACAC,IAAAC,cACAb,MAAAc,aACAC,QAAAF,YACAG,QAAAH,YACAI,YAAAJ,aAEAK,gBAAA,OACAZ,YACAa,eAEAC,UACAC,OADA,WAEA,0C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I,MAAQ9I,EAAIsH,GAAG,wBAA0BtH,EAAIsH,GAAG,yBAAyB,sBAAqmCtH,EAAI0G,UACj6T1F,EAAkB,G,sECsLtB,GACAC,sBACAC,OACA6H,kBACAvF,YACApC,WAEAwG,eACAT,aACA6B,WACA5H,WACAoC,cAEAyF,wBACA7H,WACAoC,cAEA0F,kBACAC,gBACA/H,YAEAqG,kBACAjE,aACApC,YAEAgI,QACA5F,YACApC,cAEAC,UACAmC,aACApC,YAEAiI,aACA7F,YACApC,QAFA,WAGA,eAIAkI,YACAC,0BACAC,uBAEA/H,KA5CA,WA6CA,OACA0G,iBACAI,iBACAC,kBACAG,UACAjB,WACA+B,oBACAjC,gCAGAvD,QAvDA,WAwDA,eACA,0BAGAC,oBACA,2CACA,oBAGAvC,UACA+H,YADA,WAEA,iDAEApB,aAJA,WAKA,iCAIA,UACA,iBACA,iCACA,+BAHA,aAIA,wCAPA,IASAQ,MAfA,WAgBA,0CAGA1E,SACAwE,aADA,WACA,WACA,gDACA,IACA,YACA,SACA,WACA,2BAGA,QACAe,KAAA,0BACA7C,MAAA,YACA,cACAK,gBACA,KACA,2BACAyC,kBAEA,KACA,+BAEAxC,oBACAwC,eACAA,qBACAA,qBACAA,UACA1C,gBACA2C,sBACAC,uBAEA,YACA,gBAEA7C,OAAA,YACA,cACAE,WACA,2BACA,+BAEAC,6BACAF,eACA2C,sBACAC,uBAGA,gBAGA,QACAC,IAAA,0BACAjD,MAAA,YACA,cACAK,gBACA,KACA,2BACAyC,kBAEA,KACA,+BAEAxC,oBACAwC,eACAA,qBACAA,qBACAA,UACA1C,gBACA2C,sBACAC,uBAEA,YACA,gBAEA7C,OAAA,YACA,cACAE,WACA,2BACA,+BAEAC,6BACAF,eACA2C,sBACAC,uBAEA,oBAMApB,YA1FA,WA2FA,gBACA,wCAEAG,WA9FA,WA+FA,gBACA,4BAEAmB,6BAlGA,aA6GAC,YA7GA,WA6GA,WACA,WACAC,IADA,uCACA,kBACApD,MAAA,YACA,gCA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AGAkI,YACAqE,yBAEAlM,KA1BA,WA2BA,OACAmM,UACAF,kBACAb,SACAU,gBACAT,mBAGA1I,SACAyJ,KADA,WACA,WACA,WACA3D,IADA,wDAEA,cAFA,qBAEA,WAFA,6CAGA,qHAEApD,MAAA,YACA,eACA,oDACA,KAEA,+CAEAG,OAAA,YACA,cACAE,WACA,2BACA,+BAEAC,6BACAF,eACA2C,gDAGA/C,MAAA,WACA,gBAGA6E,aA7BA,SA6BApH,GACA,iCACA,sBACA,gDAEAuJ,wBAlCA,SAkCAC,GACA,gBAIA,SACA,OACAA,uBAEA,oDACA,eACAC,qBAGA,aACA,iDAGAZ,2BAAA,WACA,OACAa,oDACAC,+BACAC,EADA,CAEAC,MACA,CACA7N,0CACA6G,yCACAiH,4CACAlM,0BACAmM,kBACAC,2CACAC,wBACA,0BAQAhE,OACA8C,yBACA,wBAGA3L,2BACA8M,yCAEAvK,QArHA,WAsHA,iEACA,cC9JmX,I,YCO/WpC,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIa,EAAAA,E,oBCkCA,GACfb,sBACAC,OACAT,sBACAkH,aACAsF,mBACAF,SACAvJ,aACApC,YAEAC,UACAmC,aACApC,YAEAsK,WACAlI,YACAnC,YACAD,mBAEAiM,QACA7J,YACApC,cAGAkI,YACA,kCACAqE,yBAEAlM,KA5BA,WA6BA,OACA6L,0BACAT,SACAe,UACAL,gBACAT,mBAGA1I,SACAsK,iBADA,WACA,WACA,WACAxE,IADA,wDAEA,iCAFA,qBAEA,WAFA,6CAGA,qHAEApD,MAAA,YACA,eACA,2CAEAG,OAAA,YACA,cACAE,WACA,2BACA,+BAEAC,6BACAF,eACA2C,gDAGA/C,MAAA,WACA,gBAGAgH,wBA1BA,SA0BA3M,GAEA,uDACA,gBACA,8CAGAiM,2BAAA,WACA,OACAa,oDACAC,+BACAC,EADA,CAEAC,MACA,CACA7N,uCACA6G,yCACAiH,4CACAlM,0BACAmM,kBACAC,2CACAC,wBACA,0BAQAhE,O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L,MAAWvC,EAAI0G,MAAM,IACx5D,EAAkB,G,yICiEP,GACfxF,OACAT,sBACA+C,YAEAkI,iBACA/D,aACAmB,OACAtF,aACApC,YAEA2L,SACAvJ,aACApC,YAEAiM,QACA7J,YACApC,cAGAkI,YACAyS,4BACApO,yBAEAlM,KAxBA,WAyBA,OACAoL,SACAa,kBACAE,UACA6N,iBACAE,gBACAC,wBACArO,gBACAT,mBAGA1I,SACAyJ,KADA,WACA,WACA,wJACA,WACA3D,IAAA8R,GACAlV,MAAA,YAIA,GAHA,eACA,aAKA,IAFA,6BACA0J,WACAyL,QAAA,KACA,CACA,mCACAzL,WACA0L,MAAA,KACAC,uBACA,sCAGA,sCACA,qBACA,+BAKA,IACA,kBACA,0BACA,QACA,CACA,+BACA3L,WACA0L,MAAA,KACAC,uBACA,iCAIA,+CAEAlV,OAAA,YACA,cACAE,WACA,2BACA,+BAEAC,6BACAF,eACA2C,gDAGA/C,MAAA,WACA,iBAGA6E,aA1DA,SA0DApH,GACA,iCACA,kCACA,sBACA,gDAEAuJ,wBAhEA,SAgEAC,GACA,gBAIA,SACA,OACA,GACAA,uBACA,qDACA,eACAC,qBAIA,aACA,iDAGAoO,aAnFA,SAmFAjO,GACA,OACA,qBACA,CACA5N,uBACA6G,oCACAiH,uCACAlM,0BACAmM,0BACAC,QACAC,mCAEA,KAGAgN,2BACA,iCACA,GACA,CACAvN,gCACAoO,YACAA,QAEAnO,+BACAC,EADA,CAEAmO,gDACAC,uBACA,+BAEAnO,8BAIAhB,2BAAA,WACA,iCACA,GACA,CACAa,gCACAuO,YACAA,QAEAtO,+BACAC,EADA,CAEAC,qDACA,CACA7N,yCACA6G,yCACAiH,4CACAlM,0BACAmM,kBACAC,2CACAC,wBACA,0BAOAiO,gBA9IA,SA8IAC,GACA,sBAKA,kCAEAC,yBAtJA,WAuJA,uBAEAC,mBAzJA,WA0JA,6DACA,IACAC,wBACA,wCACAA,6BAIAhB,cAlKA,WAmKA,0BACA,uBAEAC,YAtKA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ACAH,gBACAT,mBAGA1I,SACAyJ,KADA,WACA,WACA,uJACA,oHACA,WACA3D,IAAA8R,GACAlV,MAAA,YACA,eACA,oDACA,KAEA,4CACA,eAEAG,OAAA,YACA,cACAE,WACA,2BACA,+BAEAC,6BACAF,gBACA2C,iDAIA8B,aA1BA,SA0BApH,GACA,iCACA,sBACA,gDAEAuJ,wBA/BA,SA+BAC,GACA,gBAIA,SACA,OACAA,uBAEA,oDACA,eACAC,qBAGA,aACA,iDAGAZ,2BAAA,WACA,OACAa,oDACAC,+BACAC,EADA,CAEAC,MACA,CACA7N,yCACA6G,yCACAiH,4CACAlM,0BACAmM,kBACAC,2CACAC,wBACA,0BAQA7M,2BACA8M,yCAEAvK,QArGA,WAsGA,iEACA,cC9IkX,MCO9W,GAAY,eACd,GACA,GACA,IACA,EACA,KACA,KACA,MAIa,M,QC6BA,IACfjD,sBACAC,OACAT,sBACAkH,aACAoF,SACAvJ,aACApC,YAEAiM,QACA7J,YACApC,cAGAkI,YACA8T,6BACAzP,yBAEAlM,KAlBA,WAmBA,OACA6L,0BACAT,SACAe,UACA5H,WACAsV,oBACA/N,gBACAT,mBAGA1I,SACAsK,iBADA,WACA,WACA,gBACA,WACAxE,IADA,0DAEA,sBAFA,qBAEA,WAFA,6CAGA,qHAEApD,MAAA,YACA,eACA,2CAEAG,OAAA,YACA,cACAE,WACA,2BACA,+BAEAC,6BACAF,gBACA2C,gDAGA/C,MAAA,WACA,YACA,iBAGAgH,wBA5BA,SA4BA3M,GAEA,uDACA,gBACA,8CAGAiM,2BAAA,WACA,OACAa,oDACAC,+BACAC,EADA,CAEAC,MACA,CACA7N,sCACA6G,yCACAiH,4CACAlM,0BACAmM,kBACAC,2CACAC,wBACA,0BAQAhE,OACA8C,yBACA,sBACA1C,oDACA,kCAGAnK,oBACA,4BACA,wBACA,mCAEA,mBAGA6a,iBAfA,SAeA7O,EAAAC,GACA,oCAGA/K,2BACA8M,uDAEAvK,QA5GA,WA6GA,2BAIA,iBAHA,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mB,GACpFjkB,KAAKgkB,+BAA+B1L,EAAMjP,WAAYga,OAAWa,6BAA6B,GAC9FlkB,KAAKgkB,+BAA+B1L,EAAMjP,WAAYga,OAAWc,sBAAsB,GACvFnkB,KAAKgkB,+BAA+B1L,EAAMjP,WAAYga,OAAWe,eAAe,GAChFpkB,KAAKgkB,+BAA+B1L,EAAMjP,WAAYga,OAAWgB,aAAa,GAC9ErkB,KAAKgkB,+BAA+B1L,EAAMjP,WAAYga,OAAWiB,yBAAyB,GAC1FtkB,KAAKgkB,+BAA+B1L,EAAMjP,WAAYga,OAAWkB,uBAAuB,M,qDAI3Dlb,EAAYmb,EAAMC,GAC1C,IAAI5iB,EAAYwH,EAAW+J,QAAO,SAAAlE,GAAC,OAAIA,EAAE8J,YAAcwL,KAAM,GACzD3iB,IACAA,EAAUkL,WAAa0X,K,sCAIflE,EAAU/W,EAAU9B,EAAOoY,GACvC,IAAM9G,EAAYhZ,KAAK0kB,aAAahd,GACpC,GAAKsR,EAEL,OAAQA,GACJ,KAAKqK,OAAWsB,eACZ3kB,KAAK4kB,4BAA4BrE,EAAU/W,EAAU9B,EAAOoY,GAC5D,MACJ,KAAKuD,OAAWwB,aACZ7kB,KAAK8kB,0BAA0BvE,EAAU/W,EAAU9B,EAAOoY,GAC1D,MACb,KAAKuD,OAAWS,kBACf9jB,KAAK+kB,oCAAoCxE,EAAU/W,EAAU9B,EAAOoY,GACpE,MACQ,QACI,W,KAKD,WAAIU,G","file":"js/chunk-7fcafe68.6d39e591.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isActive),expression:\"isActive\"}],staticClass:\"tabs-component-panel\",attrs:{\"aria-hidden\":! _vm.isActive,\"id\":_vm.computedId,\"role\":\"tabpanel\"}},[_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <section v-show=\"isActive\"\r\n :aria-hidden=\"! isActive\"\r\n class=\"tabs-component-panel\"\r\n :id=\"computedId\"\r\n role=\"tabpanel\">\r\n <slot />\r\n </section>\r\n</template>\r\n\r\n<script>\r\n export default {\r\n inject: ['$validator'],\r\n props: {\r\n id: { default: null },\r\n name: { required: true },\r\n prefix: { default: '' },\r\n suffix: { default: '' },\r\n isDisabled:{ default: false },\r\n },\r\n data: () => ({\r\n isActive: false,\r\n isVisible: true,\r\n }),\r\n computed: {\r\n header() {\r\n return this.prefix + this.name + this.suffix;\r\n },\r\n computedId() {\r\n return this.id ? this.id : this.name.toLowerCase().replace(/ /g, '-');\r\n },\r\n hash() {\r\n if (this.isDisabled) {\r\n return '#';\r\n }\r\n return '#' + this.computedId;\r\n },\r\n },\r\n };\r\n</script>","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Tab.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Tab.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Tab.vue?vue&type=template&id=0c758c23&\"\nimport script from \"./Tab.vue?vue&type=script&lang=js&\"\nexport * from \"./Tab.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"tabs-component\"},[_c('ul',{staticClass:\"tabs-component-tabs\",attrs:{\"role\":\"tablist\"}},_vm._l((_vm.tabs),function(tab,i){return _c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(tab.isVisible),expression:\"tab.isVisible\"}],key:i,staticClass:\"tabs-component-tab\",class:{ 'is-active': tab.isActive, 'is-disabled': tab.isDisabled },attrs:{\"role\":\"presentation\"}},[_c('a',{staticClass:\"tabs-component-tab-a\",attrs:{\"aria-controls\":tab.hash,\"aria-selected\":tab.isActive,\"href\":tab.hash,\"role\":\"tab\"},domProps:{\"innerHTML\":_vm._s(tab.header)},on:{\"click\":function($event){return _vm.selectTab(tab.hash, $event)}}})])}),0),_c('div',{staticClass:\"tabs-component-panels\"},[_vm._t(\"default\")],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","class ExpiringStorage {\r\n get(key) {\r\n const cached = JSON.parse(\r\n localStorage.getItem(key)\r\n );\r\n\r\n if (! cached) {\r\n return null;\r\n }\r\n\r\n const expires = new Date(cached.expires);\r\n\r\n if (expires < new Date()) {\r\n localStorage.removeItem(key);\r\n return null;\r\n }\r\n\r\n return cached.value;\r\n }\r\n\r\n set(key, value, lifeTimeInMinutes) {\r\n const currentTime = new Date().getTime();\r\n\r\n const expires = new Date(currentTime + lifeTimeInMinutes * 60000);\r\n\r\n localStorage.setItem(key, JSON.stringify({ value, expires }));\r\n }\r\n}\r\n\r\nexport default new ExpiringStorage();","<template>\r\n <div class=\"tabs-component\">\r\n <ul role=\"tablist\" class=\"tabs-component-tabs\">\r\n <li\r\n v-for=\"(tab, i) in tabs\"\r\n :key=\"i\"\r\n :class=\"{ 'is-active': tab.isActive, 'is-disabled': tab.isDisabled }\"\r\n class=\"tabs-component-tab\"\r\n role=\"presentation\"\r\n v-show=\"tab.isVisible\">\r\n <a v-html=\"tab.header\"\r\n :aria-controls=\"tab.hash\"\r\n :aria-selected=\"tab.isActive\"\r\n @click=\"selectTab(tab.hash, $event)\"\r\n :href=\"tab.hash\"\r\n class=\"tabs-component-tab-a\"\r\n role=\"tab\"\r\n ></a>\r\n </li>\r\n </ul>\r\n <div class=\"tabs-component-panels\">\r\n <slot/>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import expiringStorage from '../../services/expiringStorage';\r\n export default {\r\n inject: ['$validator'],\r\n props: {\r\n cacheLifetime: {\r\n default: 5,\r\n },\r\n options: {\r\n type: Object,\r\n required: false,\r\n default: () => ({\r\n useUrlFragment: true,\r\n defaultTabHash: null,\r\n loadSavedTab: true\r\n }),\r\n }\r\n },\r\n data: () => ({\r\n tabs: [],\r\n activeTabHash: '',\r\n activeTabIndex: 0,\r\n lastActiveTabHash: '',\r\n }),\r\n computed: {\r\n storageKey() {\r\n return `vue-tabs-component.cache.${window.location.host}${window.location.pathname}`;\r\n },\r\n },\r\n created() {\r\n this.tabs = this.$children;\r\n },\r\n mounted() {\r\n window.addEventListener('hashchange', () => this.selectTab(window.location.hash));\r\n if (this.findTab(window.location.hash)) {\r\n this.selectTab(window.location.hash);\r\n return;\r\n }\r\n\r\n if (this.options.loadSavedTab) {\r\n const previousSelectedTabHash = expiringStorage.get(this.storageKey);\r\n if (this.findTab(previousSelectedTabHash)) {\r\n this.selectTab(previousSelectedTabHash);\r\n return;\r\n }\r\n }\r\n\r\n if(this.options.defaultTabHash !== null && this.findTab(\"#\" + this.options.defaultTabHash)) {\r\n this.selectTab(\"#\" + this.options.defaultTabHash);\r\n return;\r\n }\r\n if (this.tabs.length) {\r\n this.selectTab(this.tabs[0].hash);\r\n }\r\n \r\n },\r\n methods: {\r\n findTab(hash) {\r\n return this.tabs.find(tab => tab.hash === hash);\r\n },\r\n selectTab(selectedTabHash, event) {\r\n // See if we should store the hash in the url fragment.\r\n if (event && !this.options.useUrlFragment) {\r\n event.preventDefault();\r\n }\r\n const selectedTab = this.findTab(selectedTabHash);\r\n if (! selectedTab) {\r\n return;\r\n }\r\n if (selectedTab.isDisabled) {\r\n event.preventDefault();\r\n return;\r\n }\r\n if (this.lastActiveTabHash === selectedTab.hash) {\r\n this.$emit('clicked', { tab: selectedTab });\r\n return;\r\n }\r\n this.tabs.forEach(tab => {\r\n tab.isActive = (tab.hash === selectedTab.hash);\r\n });\r\n this.$emit('changed', { tab: selectedTab });\r\n this.activeTabHash = selectedTab.hash;\r\n this.activeTabIndex = this.getTabIndex(selectedTabHash);\r\n this.lastActiveTabHash = this.activeTabHash = selectedTab.hash;\r\n expiringStorage.set(this.storageKey, selectedTab.hash, this.cacheLifetime);\r\n },\r\n setTabVisible(hash, visible) {\r\n const tab = this.findTab(hash);\r\n if (! tab) {\r\n return;\r\n }\r\n tab.isVisible = visible;\r\n if (tab.isActive) {\r\n // If tab is active, set a different one as active.\r\n tab.isActive = visible;\r\n this.tabs.every((tab, index, array) => {\r\n if (tab.isVisible) {\r\n tab.isActive = true;\r\n return false;\r\n }\r\n return true;\r\n });\r\n }\r\n },\r\n \r\n getTabIndex(hash){\r\n \tconst tab = this.findTab(hash);\r\n \t\r\n \treturn this.tabs.indexOf(tab);\r\n },\r\n \r\n\t\t\tgetTabHash(index){\r\n \tconst tab = this.tabs.find(tab => this.tabs.indexOf(tab) === index);\r\n \t\r\n \tif (!tab) {\r\n\t\t\t\t\treturn;\r\n }\r\n \r\n return tab.hash;\r\n\t\t\t},\r\n \r\n getActiveTab(){\r\n \treturn this.findTab(this.activeTabHash);\r\n },\r\n \r\n\t\t\tgetActiveTabIndex() {\r\n \treturn this.getTabIndex(this.activeTabHash);\r\n },\r\n },\r\n };\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Tabs.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Tabs.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Tabs.vue?vue&type=template&id=5240e0c0&\"\nimport script from \"./Tabs.vue?vue&type=script&lang=js&\"\nexport * from \"./Tabs.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Tab from './Tab';\r\nimport Tabs from './Tabs';\r\n\r\nexport default {\r\n install(Vue) {\r\n Vue.component('tab', Tab);\r\n Vue.component('tabs', Tabs);\r\n },\r\n};\r\n\r\nexport { Tab, Tabs };\r\n","'use strict';\n// 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined)\nvar $export = require('./_export');\nvar $find = require('./_array-methods')(6);\nvar KEY = 'findIndex';\nvar forced = true;\n// Shouldn't skip holes\nif (KEY in []) Array(1)[KEY](function () { forced = false; });\n$export($export.P + $export.F * forced, 'Array', {\n findIndex: function findIndex(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\nrequire('./_add-to-unscopables')(KEY);\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FileDownload.vue?vue&type=style&index=0&id=09099646&prod&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"smallLoader\"}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.loading),expression:\"!loading\"}],staticClass:\"row\",class:!_vm.showDescription ? 'col-lg-6' : ''},[_c('button',{staticClass:\"btn btn-link btn-primary text-left col-6 m-0\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.download($event)}}},[_c('i',{staticClass:\"fas fa-download\"}),_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.file.name || _vm.file.fileName)+\"\\n\\t\\t\")]),(_vm.showDescription)?_c('div',{staticClass:\"col-lg-6\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.file.description),expression:\"file.description\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"readonly\":\"\"},domProps:{\"value\":(_vm.file.description)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.file, \"description\", $event.target.value)}}})]):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n\t<div>\r\n\t\t<div class=\"smallLoader\" v-show=\"loading\"></div>\r\n\t\t<div v-show=\"!loading\" class=\"row\" :class=\"!showDescription ? 'col-lg-6' : ''\">\r\n\t\t\t<button type=\"button\"\r\n\t\t\t\t\tclass=\"btn btn-link btn-primary text-left col-6 m-0\"\r\n\t\t\t\t\t@click.stop=\"download\">\r\n\t\t\t\t<i class=\"fas fa-download\"></i>\r\n\t\t\t\t{{ file.name || file.fileName }}\r\n\t\t\t</button>\r\n\t\t\t<div class=\"col-lg-6\" v-if=\"showDescription\">\r\n\t\t\t\t<input type=\"text\" class=\"form-control\" v-model=\"file.description\" readonly />\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n\tprops: {\r\n\t\tfile: Object,\r\n\t\tshowDescription: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: true\r\n\t\t},\r\n\t\tpath: {\r\n\t\t\ttype: String,\r\n default: 'api/file/download'\r\n\t\t},\r\n type: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: ''\r\n }\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tbaseUrl: this.$store.getters.baseUrl,\r\n\t\t\tloading: false\r\n\t\t};\r\n\t},\r\n methods: {\r\n download() {\r\n this.loading = true;\r\n const downloadUri = `${this.$store.getters.baseUrl}/${this.path}?id=${this.file.id}&type=${this.type}&hash=${this.file.hash}`;\r\n\r\n this.$http.get(downloadUri, { responseType: 'blob' })\r\n\t\t\t\t.then(response => {\r\n\t\t\t\t\tconst blob = new Blob([response.data]);\r\n\t\t\t\t\tconst url = window.URL.createObjectURL(blob);\r\n\t\t\t\t\tconst link = document.createElement('a');\r\n\t\t\t\t\tlink.href = url;\r\n link.target = \"_blank\";\r\n\t\t\t\t\tlink.setAttribute('download', (this.file.name || this.file.fileName)); // or any other extension\r\n\t\t\t\t\tdocument.body.appendChild(link);\r\n\t\t\t\t\tlink.click();\r\n\t\t\t\t\twindow.URL.revokeObjectURL(url);\r\n\t\t\t\t})\r\n\t\t\t\t.catch(err => {\r\n\t\t\t\t\tthis.$vs.notify({\r\n\t\t\t\t\t\tcolor: 'danger',\r\n\t\t\t\t\t\ttitle: this.$t('notifications.error'),\r\n\t\t\t\t\t\ttext: this.$helpers.errorText(err)\r\n\t\t\t\t\t})\r\n\t\t\t\t})\r\n\t\t\t\t.then(() => { this.loading = false; });\r\n }\r\n }\r\n};\r\n</script>\r\n\r\n<style scoped>\r\ninput[readonly] {\r\n\tbackground-color: whitesmoke;\r\n}\r\n\r\ntextarea[readonly] {\r\n\tbackground-color: whitesmoke;\r\n}\r\n\r\n.row {\r\n\tmargin-bottom: 5px;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FileDownload.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FileDownload.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FileDownload.vue?vue&type=template&id=09099646&scoped=true&\"\nimport script from \"./FileDownload.vue?vue&type=script&lang=js&\"\nexport * from \"./FileDownload.vue?vue&type=script&lang=js&\"\nimport style0 from \"./FileDownload.vue?vue&type=style&index=0&id=09099646&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"09099646\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AuxiliaryRegister.vue?vue&type=style&index=0&id=3c735a91&prod&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('h3',[_vm._v(_vm._s(_vm.title))]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"form-group col-md-4\"},[_c('label',{staticClass:\"font-weight-bold required\",attrs:{\"for\":'country' + _vm._uid}},[_vm._v(_vm._s(_vm.$t('address.country')))]),_c('dropdown-search',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],ref:\"countryDropdown\",attrs:{\"loadByParentSort\":true,\"parentSort\":_vm.contriesSort,\"id\":'country' + _vm._uid,\"name\":'country' + _vm._uid,\"data-vv-as\":_vm.$t('address.country'),\"disabled\":_vm.isAddressDetails && !_vm.editing},model:{value:(_vm.address.countryId),callback:function ($$v) {_vm.$set(_vm.address, \"countryId\", $$v)},expression:\"address.countryId\"}}),(_vm.errors.has('country' + _vm._uid))?_c('span',{staticClass:\"text-danger\"},[_vm._v(_vm._s(_vm.errors.first('country' + _vm._uid)))]):_vm._e()],1),_c('div',{staticClass:\"form-group col-md-8\"},[_c('label',{staticClass:\"font-weight-bold required\",attrs:{\"for\":'settlement' + _vm._uid}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('address.settlement'))+\"\\n \")]),(_vm.address.countryId == _vm.countries.BG)?_c('div',[_c('city-dropdown-search',{directives:[{name:\"validate\",rawName:\"v-validate\",value:(_vm.address.countryId == _vm.countries.BG ? 'required' : ''),expression:\"address.countryId == countries.BG ? 'required' : ''\"}],ref:\"settlementDropdown\",attrs:{\"id\":'settlement' + _vm._uid,\"name\":'settlementId' + _vm._uid,\"data-vv-as\":_vm.$t('address.settlement'),\"disabled\":_vm.isAddressDetails && !_vm.editing,\"aria-describedby\":\"SettlementIdHelper\"},on:{\"input\":_vm.cityChanged},model:{value:(_vm.address.settlementId),callback:function ($$v) {_vm.$set(_vm.address, \"settlementId\", $$v)},expression:\"address.settlementId\"}}),_c('small',{staticClass:\"form-text text-muted\",attrs:{\"id\":\"SettlementIdHelper\"}},[_vm._v(_vm._s(_vm.$t('address.settlementIdHelper')))]),(_vm.errors.has('settlementId' + _vm._uid))?_c('span',{staticClass:\"text-danger\"},[_vm._v(_vm._s(_vm.errors.first('settlementId' + _vm._uid)))]):_vm._e()],1):_vm._e(),(_vm.address.countryId != _vm.countries.BG)?_c('div',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.address.settlement),expression:\"address.settlement\"},{name:\"validate\",rawName:\"v-validate\",value:(_vm.address.countryId != _vm.countries.BG ? 'required' : ''),expression:\"address.countryId != countries.BG ? 'required' : ''\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"id\":'settlement' + _vm._uid,\"name\":'settlement' + _vm._uid,\"data-vv-as\":_vm.$t('address.settlement'),\"readonly\":_vm.isAddressDetails && !_vm.editing,\"aria-describedby\":\"SettlementHelper\"},domProps:{\"value\":(_vm.address.settlement)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.address, \"settlement\", $event.target.value)}}}),_c('small',{staticClass:\"form-text text-muted\",attrs:{\"id\":\"SettlementHelper\"}},[_vm._v(_vm._s(_vm.$t('address.settlementHelper')))]),(_vm.errors.has('settlement' + _vm._uid))?_c('span',{staticClass:\"text-danger\"},[_vm._v(_vm._s(_vm.errors.first('settlement' + _vm._uid)))]):_vm._e()]):_vm._e()]),_c('div',{staticClass:\"form-group col-md-4\"},[_c('label',{staticClass:\"font-weight-bold\",attrs:{\"for\":'postCode' + _vm._uid}},[_vm._v(_vm._s(_vm.$t('address.postCode')))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.address.postCode),expression:\"address.postCode\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"id\":'portCode' + _vm._uid,\"readonly\":_vm.isAddressDetails && !_vm.editing},domProps:{\"value\":(_vm.address.postCode)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.address, \"postCode\", $event.target.value)}}})]),_c('div',{staticClass:\"form-group col-md-4\"},[_c('label',{staticClass:\"font-weight-bold\",class:_vm.required?'required':'',attrs:{\"for\":'street' + _vm._uid}},[_vm._v(_vm._s(_vm.$t('address.street')))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.address.street),expression:\"address.street\"},{name:\"validate\",rawName:\"v-validate\",value:(_vm.required?'required':''),expression:\"required?'required':''\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"name\":'street' + _vm._uid,\"data-vv-as\":_vm.$t('address.street'),\"id\":'street' + _vm._uid,\"readonly\":_vm.isAddressDetails && !_vm.editing},domProps:{\"value\":(_vm.address.street)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.address, \"street\", $event.target.value)}}}),(_vm.errors.has('street' + _vm._uid))?_c('span',{staticClass:\"text-danger\"},[_vm._v(_vm._s(_vm.errors.first('street' + _vm._uid)))]):_vm._e()]),_c('div',{staticClass:\"form-group col-md-4\"},[_c('label',{staticClass:\"font-weight-bold\",class:_vm.required?'required':'',attrs:{\"for\":'streetNum' + _vm._uid}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('address.streetNum'))+\"\\n \")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.address.num),expression:\"address.num\"},{name:\"validate\",rawName:\"v-validate\",value:(_vm.required ? 'required' : ''),expression:\"required ? 'required' : ''\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"name\":'streetNum' + _vm._uid,\"data-vv-as\":_vm.$t('address.streetNum'),\"id\":'streetNum' + _vm._uid,\"readonly\":_vm.isAddressDetails && !_vm.editing},domProps:{\"value\":(_vm.address.num)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.address, \"num\", $event.target.value)}}}),(_vm.errors.has('streetNum' + _vm._uid))?_c('span',{staticClass:\"text-danger\"},[_vm._v(_vm._s(_vm.errors.first('streetNum' + _vm._uid)))]):_vm._e()]),(_vm.showAreaOfAppeal)?_c('div',{staticClass:\"form-group col-md-12\"},[_c('label',{staticClass:\"font-weight-bold\",attrs:{\"for\":'areaOfAppeal' + _vm._uid}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('address.areaOfAppeal'))+\"\\n \")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.areaOfAppeal),expression:\"areaOfAppeal\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"name\":'areaOfAppeal' + _vm._uid,\"data-vv-as\":_vm.$t('address.streetNum'),\"id\":'areaOfAppeal' + _vm._uid,\"readonly\":true},domProps:{\"value\":(_vm.areaOfAppeal)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.areaOfAppeal=$event.target.value}}})]):_vm._e(),_c('div',{staticClass:\"form-group col-md-12\"},[_c('label',{staticClass:\"font-weight-bold\",attrs:{\"for\":'coords' + _vm._uid}},[_vm._v(_vm._s(_vm.$t('address.coords')))]),_c('div',{staticClass:\"form-row\",attrs:{\"id\":'coords' + _vm._uid}},[_c('div',{staticClass:\"form-group col-md-4\"},[_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-3 col-form-label\",attrs:{\"for\":'lat' + _vm._uid}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('address.lat'))+\"\\n \")]),_c('div',{staticClass:\"col-sm-9\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.address.lat),expression:\"address.lat\"}],staticClass:\"form-control\",attrs:{\"type\":\"number\",\"id\":'lat' + _vm._uid,\"readonly\":_vm.isAddressDetails && !_vm.editing},domProps:{\"value\":(_vm.address.lat)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.address, \"lat\", $event.target.value)}}})])])]),_c('div',{staticClass:\"form-group col-md-4\"},[_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-3 col-form-label\",attrs:{\"for\":'long' + _vm._uid}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('address.long'))+\"\\n \")]),_c('div',{staticClass:\"col-sm-9\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.address.long),expression:\"address.long\"}],staticClass:\"form-control\",attrs:{\"type\":\"number\",\"id\":'long' + _vm._uid,\"readonly\":_vm.isAddressDetails && !_vm.editing},domProps:{\"value\":(_vm.address.long)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.address, \"long\", $event.target.value)}}})])])]),_c('div',{staticClass:\"form-group col-md-4\"},[(_vm.coordsLoading || _vm.addressLoading)?_c('div',{staticClass:\"loader\"}):_c('div',{staticClass:\"btn-group\",attrs:{\"role\":\"group\",\"aria-label\":\"address-btns\"}},[_c('button',{staticClass:\"btn btn-sm btn-secondary\",attrs:{\"type\":\"button\",\"disabled\":_vm.isAddressDetails && !_vm.editing},on:{\"click\":function($event){$event.stopPropagation();return _vm.getCoords($event)}}},[_vm._v(_vm._s(_vm.$t('address.coordsFromAddress'))+\"\\n \")])])])])]),(_vm.allowEdit)?_c('div',{staticClass:\"form-group col-12\"},[(!_vm.isAddressDetails)?_c('button',{staticClass:\"btn btn-primary btn\",class:_vm.saving ? 'disabled' : '',attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.createOrEdit($event)}}},[(_vm.saving)?_c('i',{staticClass:\"fas fa-spinner fa-spin\"}):_c('i',{staticClass:\"fas fa-save\"}),_vm._v(\"\\n \"+_vm._s(_vm.isNew ? _vm.$t('buttons.save.btnText') : _vm.$t('buttons.edit.btnText'))+\"\\n \")]):_c('div',{staticClass:\"btn-group\"},[(!_vm.editing)?_c('button',{staticClass:\"btn btn-primary btn\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.openForEdit($event)}}},[_c('i',{staticClass:\"fas fa-edit\"}),_vm._v(\"\\n \"+_vm._s(_vm.$t('buttons.edit.btnText'))+\"\\n \")]):_vm._e(),(_vm.editing)?_c('button',{staticClass:\"btn btn-primary btn\",class:_vm.saving ? 'disabled' : '',attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.createOrEdit($event)}}},[(_vm.saving)?_c('i',{staticClass:\"fas fa-spinner fa-spin\"}):_c('i',{staticClass:\"fas fa-save\"}),_vm._v(\"\\n \"+_vm._s(_vm.$t('buttons.save.btnText'))+\"\\n \")]):_vm._e(),(_vm.editing)?_c('button',{staticClass:\"btn btn-danger btn\",class:_vm.saving ? 'disabled' : '',attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.cancelEdit($event)}}},[_c('i',{staticClass:\"fas fa-ban\"}),_vm._v(\"\\n \"+_vm._s(_vm.$t('buttons.cancel'))+\"\\n \")]):_vm._e()])]):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <h3>{{title}}</h3>\r\n <div class=\"row\">\r\n <div class=\"form-group col-md-4\">\r\n <label class=\"font-weight-bold required\" :for=\"'country' + _uid\">{{ $t('address.country') }}</label>\r\n <dropdown-search ref=\"countryDropdown\"\r\n :loadByParentSort=\"true\"\r\n :parentSort=\"contriesSort\"\r\n :id=\"'country' + _uid\"\r\n v-model=\"address.countryId\"\r\n v-validate=\"'required'\"\r\n :name=\"'country' + _uid\"\r\n :data-vv-as=\"$t('address.country')\"\r\n :disabled=\"isAddressDetails && !editing\"></dropdown-search>\r\n <span class=\"text-danger\"\r\n v-if=\"errors.has('country' + _uid)\">{{ errors.first('country' + _uid) }}</span>\r\n </div>\r\n <div class=\"form-group col-md-8\">\r\n <label class=\"font-weight-bold required\" :for=\"'settlement' + _uid\">\r\n {{\r\n $t('address.settlement')\r\n }}\r\n </label>\r\n <div v-if=\"address.countryId == countries.BG\">\r\n <city-dropdown-search ref=\"settlementDropdown\"\r\n :id=\"'settlement' + _uid\"\r\n v-model=\"address.settlementId\"\r\n v-validate=\"address.countryId == countries.BG ? 'required' : ''\"\r\n :name=\"'settlementId' + _uid\"\r\n @input=\"cityChanged\"\r\n :data-vv-as=\"$t('address.settlement')\"\r\n :disabled=\"isAddressDetails && !editing\"\r\n aria-describedby=\"SettlementIdHelper\"></city-dropdown-search>\r\n <small id=\"SettlementIdHelper\"\r\n class=\"form-text text-muted\">{{$t('address.settlementIdHelper')}}</small>\r\n <span class=\"text-danger\" v-if=\"errors.has('settlementId' + _uid)\">{{ errors.first('settlementId' + _uid) }}</span>\r\n </div>\r\n <div v-if=\"address.countryId != countries.BG\">\r\n <input type=\"text\"\r\n class=\"form-control\"\r\n :id=\"'settlement' + _uid\"\r\n v-model=\"address.settlement\"\r\n v-validate=\"address.countryId != countries.BG ? 'required' : ''\"\r\n :name=\"'settlement' + _uid\"\r\n :data-vv-as=\"$t('address.settlement')\"\r\n :readonly=\"isAddressDetails && !editing\"\r\n aria-describedby=\"SettlementHelper\"/>\r\n <small id=\"SettlementHelper\" class=\"form-text text-muted\">{{$t('address.settlementHelper')}}</small>\r\n <span class=\"text-danger\" v-if=\"errors.has('settlement' + _uid)\">{{ errors.first('settlement' + _uid) }}</span>\r\n </div>\r\n </div>\r\n <div class=\"form-group col-md-4\">\r\n <label class=\"font-weight-bold\" :for=\"'postCode' + _uid\">{{$t('address.postCode') }}</label>\r\n <input type=\"text\" class=\"form-control\" v-model=\"address.postCode\" :id=\"'portCode' + _uid\"\r\n :readonly=\"isAddressDetails && !editing\"/>\r\n </div>\r\n <div class=\"form-group col-md-4\">\r\n <label class=\"font-weight-bold\" :class=\"required?'required':''\" :for=\"'street' + _uid\">{{\r\n $t('address.street') }}</label>\r\n <input type=\"text\"\r\n class=\"form-control\"\r\n v-model=\"address.street\"\r\n v-validate=\"required?'required':''\"\r\n :name=\"'street' + _uid\"\r\n :data-vv-as=\"$t('address.street')\"\r\n :id=\"'street' + _uid\"\r\n :readonly=\"isAddressDetails && !editing\"/>\r\n <span class=\"text-danger\" v-if=\"errors.has('street' + _uid)\">{{ errors.first('street' + _uid) }}</span>\r\n </div>\r\n <div class=\"form-group col-md-4\">\r\n <label class=\"font-weight-bold\" :class=\"required?'required':''\" :for=\"'streetNum' + _uid\">\r\n {{\r\n $t('address.streetNum')\r\n }}\r\n </label>\r\n <input type=\"text\"\r\n class=\"form-control\"\r\n v-model=\"address.num\"\r\n v-validate=\"required ? 'required' : ''\"\r\n :name=\"'streetNum' + _uid\"\r\n :data-vv-as=\"$t('address.streetNum')\"\r\n :id=\"'streetNum' + _uid\"\r\n :readonly=\"isAddressDetails && !editing\"/>\r\n <span class=\"text-danger\"\r\n v-if=\"errors.has('streetNum' + _uid)\">{{ errors.first('streetNum' + _uid) }}</span>\r\n </div>\r\n\r\n <div class=\"form-group col-md-12\" v-if=\"showAreaOfAppeal\">\r\n <label class=\"font-weight-bold\" :for=\"'areaOfAppeal' + _uid\">\r\n {{\r\n $t('address.areaOfAppeal')\r\n }}\r\n </label>\r\n <input type=\"text\"\r\n class=\"form-control\"\r\n v-model=\"areaOfAppeal\"\r\n :name=\"'areaOfAppeal' + _uid\"\r\n :data-vv-as=\"$t('address.streetNum')\"\r\n :id=\"'areaOfAppeal' + _uid\"\r\n :readonly=\"true\"/>\r\n </div>\r\n\r\n <div class=\"form-group col-md-12\">\r\n <label class=\"font-weight-bold\" :for=\"'coords' + _uid\">{{ $t('address.coords') }}</label>\r\n\r\n <div class=\"form-row\" :id=\"'coords' + _uid\">\r\n <div class=\"form-group col-md-4\">\r\n <div class=\"form-group row\">\r\n <label class=\"col-sm-3 col-form-label\" :for=\"'lat' + _uid\">\r\n {{\r\n $t('address.lat')\r\n }}\r\n </label>\r\n <div class=\"col-sm-9\">\r\n <input type=\"number\" class=\"form-control\" v-model=\"address.lat\" :id=\"'lat' + _uid\"\r\n :readonly=\"isAddressDetails && !editing\"/>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"form-group col-md-4\">\r\n <div class=\"form-group row\">\r\n <label class=\"col-sm-3 col-form-label\" :for=\"'long' + _uid\">\r\n {{\r\n $t('address.long')\r\n }}\r\n </label>\r\n <div class=\"col-sm-9\">\r\n <input type=\"number\" class=\"form-control\" v-model=\"address.long\" :id=\"'long' + _uid\"\r\n :readonly=\"isAddressDetails && !editing\"/>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-group col-md-4\">\r\n <div class=\"loader\" v-if=\"coordsLoading || addressLoading\"></div>\r\n <div v-else class=\"btn-group\" role=\"group\" aria-label=\"address-btns\">\r\n <button type=\"button\" class=\"btn btn-sm btn-secondary\" @click.stop=\"getCoords\"\r\n :disabled=\"isAddressDetails && !editing\">{{ $t('address.coordsFromAddress') }}\r\n </button>\r\n <!--<button type=\"button\" class=\"btn btn-sm btn-secondary\"\r\n @click.stop=\"getAddress\">\r\n ÐÐ´Ñ€ÐµÑ Ð¾Ñ‚ координати\r\n </button>-->\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"form-group col-12\" v-if=\"allowEdit\">\r\n <button v-if=\"!isAddressDetails\" type=\"button\" class=\"btn btn-primary btn\"\r\n :class=\"saving ? 'disabled' : ''\" @click.stop=\"createOrEdit\">\r\n <i class=\"fas fa-spinner fa-spin\" v-if=\"saving\"></i>\r\n <i class=\"fas fa-save\" v-else></i>\r\n {{ isNew ? $t('buttons.save.btnText') : $t('buttons.edit.btnText') }}\r\n </button>\r\n <div v-else class=\"btn-group\">\r\n <button v-if=\"!editing\" type=\"button\" class=\"btn btn-primary btn\" @click.stop=\"openForEdit\">\r\n <i class=\"fas fa-edit\"></i>\r\n {{ $t('buttons.edit.btnText') }}\r\n </button>\r\n <button v-if=\"editing\" type=\"button\" class=\"btn btn-primary btn\"\r\n :class=\"saving ? 'disabled' : ''\" @click.stop=\"createOrEdit\">\r\n <i class=\"fas fa-spinner fa-spin\" v-if=\"saving\"></i>\r\n <i class=\"fas fa-save\" v-else></i>\r\n {{ $t('buttons.save.btnText') }}\r\n </button>\r\n <button v-if=\"editing\" type=\"button\" class=\"btn btn-danger btn\"\r\n :class=\"saving ? 'disabled' : ''\" @click.stop=\"cancelEdit\">\r\n <i class=\"fas fa-ban\"></i>\r\n {{ $t('buttons.cancel') }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import dropdownSearch from '../dropdown/DropdownSearch';\r\n import cityDropdownSearch from '../dropdown/CityDropdownSearch';\r\n import { Address, AreaOfAppeal } from './../../models/models';\r\n import { Countries, NomenclatureParentBySort } from '../../models/enums';\r\n\r\n export default {\r\n inject: ['$validator'],\r\n props: {\r\n contactAddressId: {\r\n type: Number,\r\n default: 0\r\n },\r\n address: Address,\r\n title: String,\r\n allowEdit: {\r\n default: false,\r\n type: Boolean\r\n },\r\n loadCurrentUserAddress: {\r\n default: false,\r\n type: Boolean\r\n },\r\n showAreaOfAppeal: {\r\n Boolean,\r\n default: false\r\n },\r\n isAddressDetails: {\r\n type: Boolean,\r\n default: false\r\n },\r\n userId: {\r\n type: String,\r\n default: null\r\n },\r\n required: {\r\n type: Boolean,\r\n default: true\r\n },\r\n profileData: {\r\n type: Object,\r\n default() {\r\n return null;\r\n }\r\n }\r\n },\r\n components: {\r\n cityDropdownSearch,\r\n dropdownSearch\r\n },\r\n data() {\r\n return {\r\n countries: Countries,\r\n coordsLoading: false,\r\n addressLoading: false,\r\n saving: false,\r\n editing: false,\r\n oldValue: new Address(),\r\n contriesSort: NomenclatureParentBySort.Countries\r\n };\r\n },\r\n created() {\r\n if (!this.address) {\r\n this.address = new Address();\r\n }\r\n },\r\n mounted: function () {\r\n if (this.loadCurrentUserAddress || this.userId) {\r\n this.getAddress2();\r\n }\r\n },\r\n computed: {\r\n isEnVersion() {\r\n return this.$store.getters.currentCulture === 'en';\r\n },\r\n areaOfAppeal() {\r\n if (!this.address.areaOfAppeal) {\r\n return '';\r\n }\r\n\r\n return `${\r\n this.isEnVersion\r\n ? this.address.areaOfAppeal.nameEn\r\n : this.address.areaOfAppeal.name\r\n } \\ ${this.address.areaOfAppeal.districtCode}`;\r\n },\r\n isNew() {\r\n return !this.address || this.address.id <= 0;\r\n }\r\n },\r\n methods: {\r\n createOrEdit() {\r\n this.$validator.validateAll().then(result => {\r\n if (result) {\r\n this.saving = true;\r\n if (this.isNew) {\r\n if (this.userId) {\r\n this.address.userId = this.userId;\r\n }\r\n\r\n this.$http\r\n .post('/api/Address', this.address)\r\n .then(response => {\r\n this.$vs.notify({\r\n title: response.request\r\n ? this.$t(\r\n 'request.response.status.' +\r\n response.request.status\r\n )\r\n : this.$t(\r\n 'request.response.status.200'\r\n ),\r\n text: response.data.message\r\n ? response.data.message\r\n : response.request.statusText\r\n ? response.request.statusText\r\n : response.message,\r\n color: 'success',\r\n time: this.$store.getters\r\n .notificationDuration\r\n });\r\n this.saving = false;\r\n this.editing = false;\r\n })\r\n .catch(error => {\r\n this.$vs.notify({\r\n title: this.$t(\r\n 'request.response.status.' +\r\n this.$helpers.errorStatusCode(error)\r\n ),\r\n text: this.$helpers.errorText(error),\r\n color: 'danger',\r\n time: this.$store.getters\r\n .notificationDuration\r\n });\r\n\r\n this.saving = false;\r\n });\r\n } else {\r\n this.$http\r\n .put('/api/Address', this.address)\r\n .then(response => {\r\n this.$vs.notify({\r\n title: response.request\r\n ? this.$t(\r\n 'request.response.status.' +\r\n response.request.status\r\n )\r\n : this.$t(\r\n 'request.response.status.200'\r\n ),\r\n text: response.data.message\r\n ? response.data.message\r\n : response.request.statusText\r\n ? response.request.statusText\r\n : response.message,\r\n color: 'success',\r\n time: this.$store.getters\r\n .notificationDuration\r\n });\r\n this.saving = false;\r\n this.editing = false;\r\n })\r\n .catch(error => {\r\n this.$vs.notify({\r\n title: this.$t(\r\n 'request.response.status.' +\r\n this.$helpers.errorStatusCode(error)\r\n ),\r\n text: this.$helpers.errorText(error),\r\n color: 'danger',\r\n time: this.$store.getters\r\n .notificationDuration\r\n });\r\n this.saving = false;\r\n });\r\n }\r\n }\r\n });\r\n },\r\n openForEdit() {\r\n this.editing = true;\r\n this.oldValue = new Address(this.address);\r\n },\r\n cancelEdit() {\r\n this.editing = false;\r\n this.address = this.oldValue;\r\n },\r\n getCurrentUserContactAddress() {\r\n // this.$http.get(`/api/Person/AuthenticatedPersonAddress`).then(result => {\r\n // this.contactAddressId = result.data.contactAddressId;\r\n // }).catch(error => {this.$vs.notify({\r\n // title: this.$t('request.response.status.' + this.$helpers.errorStatusCode(error)),\r\n // text: this.$helpers.errorText(error),\r\n // color: 'danger',\r\n // time: this.$store.getters.notificationDuration\r\n // });\r\n // });\r\n },\r\n getAddress2() {\r\n this.$http\r\n .get(`/api/Address/AddressByUserId/${this.userId || ''}`)\r\n .then(result => {\r\n this.address = new Address(result.data);\r\n })\r\n .catch(error => {\r\n this.$vs.notify({\r\n title: this.$t(\r\n 'request.response.status.' +\r\n this.$helpers.errorStatusCode(error)\r\n ),\r\n text: this.$helpers.errorText(error),\r\n color: 'danger',\r\n time: this.$store.getters.notificationDuration\r\n });\r\n });\r\n },\r\n getAddress() {\r\n if (!this.address.lat || !this.address.long) {\r\n this.$vs.notify({\r\n title:\r\n 'Полето \"Ширина\" и \"Дължина\" Ñа без въведена ÑтойноÑÑ‚!',\r\n text: '',\r\n color: 'warning',\r\n time: this.$store.getters.notificationDuration\r\n });\r\n\r\n return;\r\n }\r\n\r\n this.addressLoading = true;\r\n\r\n this.$http\r\n .get(\r\n '/api/services/getAddressFromCoords/' +\r\n `${this.address.lat},${this.address.long}`\r\n )\r\n .then(response => {\r\n this.$vs.notify({\r\n title: 'Not implemented',\r\n text: '',\r\n color: 'danger',\r\n time: this.$store.getters.notificationDuration\r\n });\r\n\r\n this.addressLoading = false;\r\n })\r\n .catch(error => {\r\n this.$vs.notify({\r\n title: this.$t(\r\n 'request.response.status.' +\r\n this.$helpers.errorStatusCode(error)\r\n ),\r\n text: this.$helpers.errorText(error),\r\n color: 'danger',\r\n time: this.$store.getters.notificationDuration\r\n });\r\n\r\n this.addressLoading = false;\r\n });\r\n },\r\n getCoords() {\r\n if (!this.address.countryId) {\r\n this.$vs.notify({\r\n title: 'Полето \"Държава\" е без избрана ÑтойноÑÑ‚!',\r\n text: '',\r\n color: 'warning',\r\n time: this.$store.getters.notificationDuration\r\n });\r\n\r\n return;\r\n }\r\n\r\n if (\r\n this.address.countryId === this.$store.getters.bulgariaNomId &&\r\n !this.address.settlementId\r\n ) {\r\n this.$vs.notify({\r\n title: 'Полето \"ÐаÑелено мÑÑто\" е без избрана ÑтойноÑÑ‚!',\r\n text: '',\r\n color: 'warning',\r\n time: this.$store.getters.notificationDuration\r\n });\r\n\r\n return;\r\n }\r\n\r\n if (\r\n this.address.countryId !== this.$store.getters.bulgariaNomId &&\r\n !this.address.settlement\r\n ) {\r\n this.$vs.notify({\r\n title: 'Полето \"ÐаÑелено мÑÑто\" е без въвдена ÑтойноÑÑ‚!',\r\n text: '',\r\n color: 'warning',\r\n time: this.$store.getters.notificationDuration\r\n });\r\n\r\n return;\r\n }\r\n\r\n if (!this.address.street) {\r\n this.$vs.notify({\r\n title: 'Полето \"Улица\" е без въвдена ÑтойноÑÑ‚!',\r\n text: '',\r\n color: 'warning',\r\n time: this.$store.getters.notificationDuration\r\n });\r\n\r\n return;\r\n }\r\n\r\n if (!this.address.num) {\r\n this.$vs.notify({\r\n title: 'Полето \"â„–\" е без въвдена ÑтойноÑÑ‚!',\r\n text: '',\r\n color: 'warning',\r\n time: this.$store.getters.notificationDuration\r\n });\r\n\r\n return;\r\n }\r\n\r\n this.coordsLoading = true;\r\n\r\n this.$http\r\n .get(`/api/services/getCoordsFromAddress`, {\r\n params: {\r\n address: this.fullAddress()\r\n }\r\n })\r\n .then(response => {\r\n let searchResult = response.data.searchResult;\r\n\r\n if (searchResult.position.lat) {\r\n this.address.lat = searchResult.position.lat;\r\n }\r\n\r\n if (searchResult.position.lon) {\r\n this.address.long = searchResult.position.lon;\r\n }\r\n\r\n this.coordsLoading = false;\r\n })\r\n .catch(error => {\r\n this.$vs.notify({\r\n title: this.$t(\r\n 'request.response.status.' +\r\n this.$helpers.errorStatusCode(error)\r\n ),\r\n text: this.$helpers.errorText(error),\r\n color: 'danger',\r\n time: this.$store.getters.notificationDuration\r\n });\r\n\r\n this.coordsLoading = false;\r\n });\r\n },\r\n fullAddress() {\r\n let country = this.$refs.countryDropdown.selected.text;\r\n let settlement =\r\n this.address.countryId === this.$store.getters.bulgariaNomId\r\n ? this.$refs.settlementDropdown.selected.text\r\n : this.address.settlement;\r\n let street = this.address.street;\r\n let streetNum = this.address.num;\r\n\r\n return `${country}, ${settlement}, ${street}, ${streetNum}`;\r\n },\r\n cityChanged() {\r\n if (!this.showAreaOfAppeal) {\r\n return;\r\n }\r\n\r\n this.$http\r\n .get(\r\n '/api/cities/getAreaOfAppeal/' +\r\n `${this.address.settlementId}`\r\n )\r\n .then(response => {\r\n this.address.areaOfAppeal = new AreaOfAppeal(\r\n response.data.areaOfAppeal\r\n );\r\n })\r\n .catch(error => {\r\n this.$vs.notify({\r\n title: this.$t(\r\n 'request.response.status.' +\r\n this.$helpers.errorStatusCode(error)\r\n ),\r\n text: this.$helpers.errorText(error),\r\n color: 'danger',\r\n time: this.$store.getters.notificationDuration\r\n });\r\n });\r\n },\r\n fillProfileData(data) {\r\n if (!data) {\r\n return;\r\n }\r\n\r\n console.log(data);\r\n }\r\n },\r\n watch: {\r\n profileData: {\r\n handler: function (newVal, oldVal) {\r\n this.fillProfileData(newVal);\r\n },\r\n deep: true,\r\n immediate: true,\r\n },\r\n }\r\n };\r\n</script>\r\n\r\n<style scoped>\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Address.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Address.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Address.vue?vue&type=template&id=75622781&scoped=true&\"\nimport script from \"./Address.vue?vue&type=script&lang=js&\"\nexport * from \"./Address.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"75622781\",\n null\n \n)\n\nexport default component.exports","import Vue from 'vue';\r\nexport const RegisterEventBus = new Vue();\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"form-group col-lg-6\"},[_c('label',{staticClass:\"font-weight-bold\"},[_vm._v(_vm._s(_vm.$t('otherFields.other1')))]),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.otherFields.other1),expression:\"otherFields.other1\"}],staticClass:\"form-control\",attrs:{\"maxlength\":_vm.maxLength},domProps:{\"value\":(_vm.otherFields.other1)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.otherFields, \"other1\", $event.target.value)}}}),_c('p',[_vm._v(_vm._s(_vm.$t('remainingSymbols'))+\" \"+_vm._s(_vm.charactersRemainingField1))])]),_c('div',{staticClass:\"form-group col-lg-6\"},[_c('label',{staticClass:\"font-weight-bold\"},[_vm._v(_vm._s(_vm.$t('otherFields.other2')))]),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.otherFields.other2),expression:\"otherFields.other2\"}],staticClass:\"form-control\",attrs:{\"maxlength\":_vm.maxLength},domProps:{\"value\":(_vm.otherFields.other2)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.otherFields, \"other2\", $event.target.value)}}}),_c('p',[_vm._v(_vm._s(_vm.$t('remainingSymbols'))+\" \"+_vm._s(_vm.charactersRemainingField2))])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"row\">\r\n <div class=\"form-group col-lg-6\">\r\n <label class=\"font-weight-bold\">{{ $t('otherFields.other1') }}</label>\r\n <textarea class=\"form-control\" v-model=\"otherFields.other1\" :maxlength=\"maxLength\"/>\r\n <p>{{$t('remainingSymbols')}} {{charactersRemainingField1}}</p>\r\n </div>\r\n <div class=\"form-group col-lg-6\">\r\n <label class=\"font-weight-bold\">{{ $t('otherFields.other2') }}</label>\r\n <textarea class=\"form-control\" v-model=\"otherFields.other2\" :maxlength=\"maxLength\"/>\r\n <p>{{$t('remainingSymbols')}} {{charactersRemainingField2}}</p>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n export default {\r\n props: {\r\n otherFields: {\r\n type: Object\r\n },\r\n maxLength: {\r\n type: Number,\r\n default: 500\r\n }\r\n },\r\n computed:{\r\n charactersRemainingField1: function() {\r\n return this.maxLength - this.otherFields.other1.length;\r\n },\r\n charactersRemainingField2: function() {\r\n return this.maxLength - this.otherFields.other2.length;\r\n }\r\n }\r\n }\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OtherFields.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OtherFields.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./OtherFields.vue?vue&type=template&id=5027aacb&\"\nimport script from \"./OtherFields.vue?vue&type=script&lang=js&\"\nexport * from \"./OtherFields.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('kendo-datetimepicker',{directives:[{name:\"validate\",rawName:\"v-validate\",value:(_vm.required ? 'required' : ''),expression:\"required ? 'required' : ''\"}],ref:'datepicker' + _vm.uid,staticStyle:{\"width\":\"100%\"},attrs:{\"format\":_vm.customFormat,\"time-format\":_vm.timeFormat,\"name\":'datetimepicker' + _vm.uid,\"start\":_vm.datepickerStart,\"depth\":_vm.datepickerDepth,\"disabled\":_vm.readonly,\"min\":_vm.dateMinVal,\"max\":_vm.dateMaxVal,\"data-vv-as\":_vm.fieldName,\"interval\":5},on:{\"change\":_vm.inputChanged},model:{value:(_vm.dateValue),callback:function ($$v) {_vm.dateValue=$$v},expression:\"dateValue\"}}),(_vm.errors.has('datetimepicker' + _vm.uid))?_c('span',{staticClass:\"text-danger col-12\"},[_vm._v(_vm._s(_vm.errors.first('datetimepicker' + _vm.uid)))]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <kendo-datetimepicker\r\n :ref=\"'datepicker' + uid\"\r\n v-model=\"dateValue\"\r\n @change=\"inputChanged\"\r\n :format=\"customFormat\"\r\n :time-format=\"timeFormat\"\r\n :name=\"'datetimepicker' + uid\"\r\n v-validate=\"required ? 'required' : ''\"\r\n style=\"width: 100%;\"\r\n :start=\"datepickerStart\"\r\n :depth=\"datepickerDepth\"\r\n :disabled=\"readonly\"\r\n :min=\"dateMinVal\"\r\n :max=\"dateMaxVal\"\r\n :data-vv-as=\"fieldName\"\r\n :interval=\"5\"\r\n ></kendo-datetimepicker>\r\n <span class=\"text-danger col-12\" v-if=\"errors.has('datetimepicker' + uid)\">{{ errors.first('datetimepicker' + uid) }}</span>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n export default {\r\n inject: ['$validator'],\r\n props: {\r\n value: [Date, String],\r\n required: {\r\n type: Boolean,\r\n default: false\r\n },\r\n format: {\r\n type: String\r\n },\r\n timeFormat: {\r\n type: String,\r\n default: 'HH:mm'\r\n },\r\n showTime: {\r\n type: [Boolean, String],\r\n default: true\r\n },\r\n readonly: {\r\n type: Boolean,\r\n default: false\r\n },\r\n min: {\r\n type: [Date, String],\r\n required: false\r\n },\r\n max: {\r\n type: [Date, String],\r\n required: false\r\n },\r\n showOnlyYear: {\r\n type: Boolean,\r\n default: false\r\n },\r\n fieldName: String,\r\n convertToLocalTime: {\r\n type: Boolean,\r\n default: true\r\n },\r\n useUtcTime: {\r\n type: Boolean,\r\n default: true\r\n }\r\n },\r\n data() {\r\n return {\r\n uid: Math.floor(Math.random() * 0x10000).toString(16),\r\n dateValue: '',\r\n changedFromPicker: false,\r\n defaultDateMinVal: new Date(1900, 0, 1),\r\n defaultDateMaxVal: new Date(2159, 0, 1),\r\n customFormat: ''\r\n };\r\n },\r\n methods: {\r\n inputChanged(event) {\r\n this.changedFromPicker = true;\r\n if (event.sender.value()) {\r\n if (this.useUtcTime) {\r\n this.$emit('input', event.sender.value().toUTCString());\r\n } else {\r\n this.$emit('input', event.sender.value());\r\n }\r\n } else {\r\n this.$emit('input', event.sender.value());\r\n }\r\n },\r\n convertFromUtcToLocal() {\r\n if (this.value) {\r\n let dateUtc = new Date(this.value);\r\n if (dateUtc && (dateUtc.getTimezoneOffset() > 0 || dateUtc.getTimezoneOffset() < 0)) {\r\n this.dateValue = new Date(\r\n Date.UTC(\r\n dateUtc.getFullYear(),\r\n dateUtc.getMonth(),\r\n dateUtc.getDate(),\r\n dateUtc.getHours(),\r\n dateUtc.getMinutes(),\r\n dateUtc.getSeconds()\r\n )\r\n );\r\n } else {\r\n this.dateValue = dateUtc;\r\n }\r\n }\r\n }\r\n },\r\n watch: {\r\n value: {\r\n immediate: true,\r\n handler(newVal, oldVal) {\r\n // let dt = this.$refs['' + this.uid];\r\n // if (dt) {\r\n // dt.kendoWidget().trigger(\"change\");\r\n // }\r\n\r\n if (this.changedFromPicker) {\r\n this.changedFromPicker = false;\r\n return;\r\n }\r\n\r\n if (newVal) {\r\n if (this.convertToLocalTime) {\r\n this.convertFromUtcToLocal();\r\n } else {\r\n if (this.value) {\r\n if (this.value instanceof (Date)) {\r\n this.dateValue = this.value;\r\n } else {\r\n this.dateValue = new Date(this.value);\r\n }\r\n }\r\n }\r\n } else {\r\n this.dateValue = this.value;\r\n }\r\n }\r\n }\r\n },\r\n computed: {\r\n // ТрÑбва да Ñе направи така понеже ако подадем new Date() Ñлага ÑÐµÐ³Ð°ÑˆÐ½Ð¸Ñ Ñ‡Ð°Ñ\r\n // и прави интервалите от по 5 минути от него нататък\r\n dateMinVal() {\r\n var d = this.min || this.defaultDateMinVal;\r\n return new Date(d.getFullYear(), d.getMonth(), d.getDate());\r\n },\r\n dateMaxVal() {\r\n var d = this.max || this.defaultDateMaxVal;\r\n return new Date(d.getFullYear(), d.getMonth(), d.getDate());\r\n },\r\n datepickerStart() {\r\n return this.showOnlyYear ? 'decade' : 'month'; // mounth is default value\r\n },\r\n datepickerDepth() {\r\n return this.showOnlyYear ? 'decade' : '';\r\n }\r\n },\r\n mounted() {\r\n kendo.culture('bg-BG');\r\n\r\n // const dp = this.$refs[`datepicker${this.uid}`].kendoWidget();\r\n // if (dp) {\r\n //\tlet options = dp.options;\r\n //\toptions.parseFormats = [\r\n //\t\t...dp.options.parseFormats,\r\n //\t\t'yyyy',\r\n //\t\t'dd.MM.yyyy',\r\n //\t\t'dd.MM.yyyy HH:mm',\r\n //\t\t'dd.MM.yyyy HH:mm:ss',\r\n //\t\t'dd.MM.yyyy tt',\r\n //\t\t'dd.MM.yyyy HH:mm tt',\r\n //\t\t'dd.MM.yyyy HH:mm:ss tt',\r\n //\t\tkendo.culture().calendar.patterns['d']\r\n //\t];\r\n //\tdp.setOptions(options);\r\n\r\n //\toptions = dp.options;\r\n // }\r\n\r\n if (!this.format) {\r\n if (this.showOnlyYear) {\r\n this.customFormat = 'yyyy';\r\n } else {\r\n if (!this.showTime) {\r\n this.customFormat = 'dd.MM.yyyy';\r\n } else {\r\n this.customFormat = 'dd.MM.yyyy HH:mm';\r\n }\r\n }\r\n } else {\r\n this.customFormat = this.format;\r\n }\r\n\r\n if (this.convertToLocalTime) {\r\n this.convertFromUtcToLocal();\r\n } else {\r\n if (this.value) {\r\n if (this.value instanceof (Date)) {\r\n this.dateValue = this.value;\r\n } else {\r\n this.dateValue = new Date(this.value);\r\n }\r\n }\r\n }\r\n }\r\n };\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DatePicker.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DatePicker.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DatePicker.vue?vue&type=template&id=08f58b04&\"\nimport script from \"./DatePicker.vue?vue&type=script&lang=js&\"\nexport * from \"./DatePicker.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!_vm.model.isMultiDropdown)?_c('div',[(_vm.loaded)?_c('kendo-dropdownlist',{directives:[{name:\"validate\",rawName:\"v-validate\",value:(_vm.required ? 'required' : ''),expression:\"required ? 'required' : ''\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"id\":'dropdown' + _vm._uid,\"name\":'dropdown' + _vm._uid,\"data-vv-as\":_vm.fieldName,\"data-source\":_vm.items,\"data-text-field\":'text',\"data-value-field\":'id',\"filter\":_vm.filterPattern,\"disabled\":_vm.details || _vm.model.isReadOnly,\"optionLabel\":_vm.optionLabel ? _vm.optionLabel : _vm.$t('choose'),\"footer-template\":_vm.nomDropdownSettings.showFooterTemplate ? _vm.footerTemplate : '',\"height\":_vm.height},model:{value:(_vm.selectedId),callback:function ($$v) {_vm.selectedId=$$v},expression:\"selectedId\"}}):_vm._e(),(_vm.loaded)?_c('DropdownSettings',{attrs:{\"filterPattern\":_vm.filterPattern,\"show\":_vm.showSettings},on:{\"update:filterPattern\":function($event){_vm.filterPattern=$event},\"update:filter-pattern\":function($event){_vm.filterPattern=$event},\"update:show\":function($event){_vm.showSettings=$event}}}):_vm._e()],1):_vm._e(),(_vm.model.isMultiDropdown)?_c('div',[_c('dynamic-register-multi-select',{attrs:{\"details\":_vm.details,\"model\":_vm.model,\"required\":_vm.required,\"fieldName\":_vm.fieldName,\"height\":_vm.height},model:{value:(_vm.model.fieldValue.textValue),callback:function ($$v) {_vm.$set(_vm.model.fieldValue, \"textValue\", $$v)},expression:\"model.fieldValue.textValue\"}})],1):_vm._e(),(_vm.errors.has('dropdown' + _vm._uid))?_c('span',{staticClass:\"text-danger col-12\"},[_vm._v(_vm._s(_vm.errors.first('dropdown' + _vm._uid)))]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.loaded)?_c('kendo-multiselect',{directives:[{name:\"validate\",rawName:\"v-validate\",value:(_vm.model.isRequired || _vm.required ? 'required' : ''),expression:\"model.isRequired || required ? 'required' : ''\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data-source\":_vm.items,\"data-text-field\":'text',\"data-value-field\":'id',\"disabled\":_vm.details,\"id\":'dropdown' + _vm._uid,\"name\":'dropdown' + _vm._uid,\"data-vv-as\":_vm.fieldName,\"filter\":_vm.filterPattern,\"height\":_vm.height,\"footer-template\":_vm.nomDropdownSettings.showFooterTemplate ? _vm.footerTemplate : ''},on:{\"change\":_vm.inputChanged},model:{value:(_vm.selectedValues),callback:function ($$v) {_vm.selectedValues=$$v},expression:\"selectedValues\"}}):_vm._e(),(_vm.errors.has('dropdown' + _vm._uid))?_c('span',{staticClass:\"text-danger col-12\"},[_vm._v(_vm._s(_vm.errors.first('dropdown' + _vm._uid)))]):_vm._e(),(_vm.loaded)?_c('DropdownSettings',{attrs:{\"filterPattern\":_vm.filterPattern,\"show\":_vm.showSettings},on:{\"update:filterPattern\":function($event){_vm.filterPattern=$event},\"update:filter-pattern\":function($event){_vm.filterPattern=$event},\"update:show\":function($event){_vm.showSettings=$event}}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <kendo-multiselect\r\n v-if=\"loaded\"\r\n v-model=\"selectedValues\"\r\n :data-source=\"items\"\r\n :data-text-field=\"'text'\"\r\n :data-value-field=\"'id'\"\r\n :disabled=\"details\"\r\n @change=\"inputChanged\"\r\n :id=\"'dropdown' + _uid\"\r\n :name=\"'dropdown' + _uid\"\r\n :data-vv-as=\"fieldName\"\r\n :filter=\"filterPattern\"\r\n :height=\"height\"\r\n :footer-template=\"nomDropdownSettings.showFooterTemplate ? footerTemplate : ''\"\r\n v-validate=\"model.isRequired || required ? 'required' : ''\"\r\n style=\"width: 100%;\"\r\n ></kendo-multiselect>\r\n <span\r\n class=\"text-danger col-12\"\r\n v-if=\"errors.has('dropdown' + _uid)\"\r\n >{{ errors.first('dropdown' + _uid) }}</span>\r\n\r\n <DropdownSettings\r\n v-if=\"loaded\"\r\n :filterPattern.sync=\"filterPattern\"\r\n :show.sync=\"showSettings\"\r\n ></DropdownSettings>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport Vue from \"vue\";\r\nimport FooterTemplate from \"../../components/grid/NomenclatureDropdownFooterTemplate\";\r\nimport DropdownSettings from \"../../components/common/DropdownSettings\";\r\nimport { EditorComponentModel } from \"../../models/models\";\r\nimport { mapGetters } from \"vuex\";\r\n\r\nexport default {\r\n inject: [\"$validator\"],\r\n props: {\r\n value: String,\r\n model: EditorComponentModel,\r\n details: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n required: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n fieldName: {\r\n type: String,\r\n required: false,\r\n default: \"Unknown\",\r\n },\r\n height: {\r\n type: Number,\r\n default: 400, // 200 - Default value for Kendo DropdownList\r\n },\r\n },\r\n components: {\r\n DropdownSettings,\r\n },\r\n data() {\r\n return {\r\n loaded: false,\r\n selectedValues: \"\",\r\n items: [],\r\n showSettings: false,\r\n filterPattern: \"\",\r\n };\r\n },\r\n methods: {\r\n init() {\r\n this.$http\r\n .get(\r\n `/api/Dropdown/GetDynamicRegisterItems?fieldId=${this.model.id}&selected=${this.value}\r\n &updateTime=${this.model.fieldValue.updateTime? new Date(this.model.fieldValue.updateTime).toISOString() : new Date().toISOString()}`\r\n )\r\n .then((result) => {\r\n this.items = result.data;\r\n this.selectedValues = this.model.fieldValue.textValue.split(\r\n \"|\"\r\n );\r\n this.populateStringValueById(this.selectedValues);\r\n })\r\n .catch((error) => {\r\n this.$vs.notify({\r\n title: this.$t(\r\n \"request.response.status.\" +\r\n this.$helpers.errorStatusCode(error)\r\n ),\r\n text: this.$helpers.errorText(error),\r\n color: \"danger\",\r\n time: this.$store.getters.notificationDuration,\r\n });\r\n })\r\n .then(() => {\r\n this.loaded = true;\r\n });\r\n },\r\n inputChanged(event) {\r\n let valueToEmit = event.sender.value().join(\"|\");\r\n this.$emit(\"input\", valueToEmit);\r\n this.populateStringValueById(event.sender.value());\r\n },\r\n populateStringValueById(ids) {\r\n if (Array.isArray(ids) === false) {\r\n return;\r\n }\r\n\r\n let stringValues = [];\r\n let vm = this;\r\n ids.forEach((id) => {\r\n // eslint-disable-next-line eqeqeq\r\n const val = vm.items.filter((item) => item.id == id);\r\n if (val && val.length > 0) {\r\n stringValues.push(val[0].text);\r\n }\r\n });\r\n if (stringValues.length > 0) {\r\n this.model.fieldValue.stringValue = stringValues.join(\",\");\r\n }\r\n },\r\n footerTemplate: function (e) {\r\n return {\r\n template: Vue.component(FooterTemplate.name, FooterTemplate),\r\n templateArgs: {\r\n ...e,\r\n btns: [\r\n {\r\n name: \"dynamicRegisterMultiSelectSettings\",\r\n text: this.$t(\"buttons.settings.btnText\"),\r\n tooltip: this.$t(\"buttons.settings.btnText\"),\r\n class: \"btn btn-secondary\",\r\n icon: \"fas fa-cog\",\r\n show: this.nomDropdownSettings.showSettings,\r\n clickHandler: () => {\r\n this.showSettings = true;\r\n },\r\n },\r\n ],\r\n },\r\n };\r\n },\r\n },\r\n watch: {\r\n selectedId: function (newVal, oldVal) {\r\n this.$emit(\"input\", newVal);\r\n },\r\n },\r\n computed: {\r\n ...mapGetters([\"nomDropdownSettings\"]),\r\n },\r\n mounted() {\r\n this.filterPattern = this.nomDropdownSettings.defaultFilterPattern;\r\n this.init();\r\n },\r\n};\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DynamicRegisterMultiSelect.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DynamicRegisterMultiSelect.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DynamicRegisterMultiSelect.vue?vue&type=template&id=dba4b0ac&\"\nimport script from \"./DynamicRegisterMultiSelect.vue?vue&type=script&lang=js&\"\nexport * from \"./DynamicRegisterMultiSelect.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<template>\r\n <div>\r\n <div v-if=\"!model.isMultiDropdown\">\r\n <kendo-dropdownlist\r\n v-if=\"loaded\"\r\n :id=\"'dropdown' + _uid\"\r\n :name=\"'dropdown' + _uid\"\r\n v-model=\"selectedId\"\r\n :data-vv-as=\"fieldName\"\r\n v-validate=\"required ? 'required' : ''\"\r\n :data-source=\"items\"\r\n :data-text-field=\"'text'\"\r\n :data-value-field=\"'id'\"\r\n :filter=\"filterPattern\"\r\n :disabled=\"details || model.isReadOnly\"\r\n :optionLabel=\"optionLabel ? optionLabel : $t('choose')\"\r\n :footer-template=\"nomDropdownSettings.showFooterTemplate ? footerTemplate : ''\"\r\n :height=\"height\"\r\n style=\"width: 100%;\"\r\n ></kendo-dropdownlist>\r\n\r\n <DropdownSettings\r\n v-if=\"loaded\"\r\n :filterPattern.sync=\"filterPattern\"\r\n :show.sync=\"showSettings\"\r\n ></DropdownSettings>\r\n </div>\r\n <div v-if=\"model.isMultiDropdown\">\r\n <dynamic-register-multi-select\r\n v-model=\"model.fieldValue.textValue\"\r\n :details=\"details\"\r\n :model=\"model\"\r\n :required=\"required\"\r\n :fieldName=\"fieldName\"\r\n :height=\"height\"\r\n ></dynamic-register-multi-select>\r\n </div>\r\n <span\r\n class=\"text-danger col-12\"\r\n v-if=\"errors.has('dropdown' + _uid)\"\r\n >{{ errors.first('dropdown' + _uid) }}</span>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport Vue from \"vue\";\r\nimport DynamicRegisterMultiSelect from \"../dynamic/DynamicRegisterMultiSelect\";\r\nimport FooterTemplate from \"../../components/grid/NomenclatureDropdownFooterTemplate\";\r\nimport DropdownSettings from \"../../components/common/DropdownSettings\";\r\nimport { mapGetters } from \"vuex\";\r\nimport { RegisterEventBus } from '@/buses/register-bus.js';\r\n\r\nexport default {\r\n inject: [\"$validator\"],\r\n props: {\r\n value: [String, Number],\r\n model: Object,\r\n optionLabel: Object,\r\n details: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n required: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n fieldName: {\r\n type: String,\r\n required: false,\r\n default: \"Unknown\",\r\n },\r\n height: {\r\n type: Number,\r\n default: 400, // 200 - Default value for Kendo DropdownList\r\n }\r\n },\r\n components: {\r\n \"dynamic-register-multi-select\": DynamicRegisterMultiSelect,\r\n DropdownSettings,\r\n },\r\n data() {\r\n return {\r\n selectedId: this.value || \"\",\r\n items: [],\r\n loaded: false,\r\n showSettings: false,\r\n filterPattern: \"\",\r\n };\r\n },\r\n methods: {\r\n loadDropdownData() {\r\n this.$http\r\n .get(\r\n `/api/Dropdown/GetDynamicRegisterItems?fieldId=${this.model.dropdownDisplayMember}&selected=${this.value}\r\n &updateTime=${this.model.fieldValue.updateTime? new Date(this.model.fieldValue.updateTime).toISOString() : new Date().toISOString()}`\r\n )\r\n .then((result) => {\r\n this.items = result.data;\r\n this.populateStringValueById(this.selectedId);\r\n })\r\n .catch((error) => {\r\n this.$vs.notify({\r\n title: this.$t(\r\n \"request.response.status.\" +\r\n this.$helpers.errorStatusCode(error)\r\n ),\r\n text: this.$helpers.errorText(error),\r\n color: \"danger\",\r\n time: this.$store.getters.notificationDuration,\r\n });\r\n })\r\n .then(() => {\r\n this.loaded = true;\r\n });\r\n },\r\n populateStringValueById(id) {\r\n // eslint-disable-next-line eqeqeq\r\n const val = this.items.filter((item) => item.id == id);\r\n if (val && val.length > 0) {\r\n this.model.fieldValue.stringValue = val[0].text;\r\n }\r\n },\r\n footerTemplate: function (e) {\r\n return {\r\n template: Vue.component(FooterTemplate.name, FooterTemplate),\r\n templateArgs: {\r\n ...e,\r\n btns: [\r\n {\r\n name: \"dynamicRegisterDropdownSettings\",\r\n text: this.$t(\"buttons.settings.btnText\"),\r\n tooltip: this.$t(\"buttons.settings.btnText\"),\r\n class: \"btn btn-secondary\",\r\n icon: \"fas fa-cog\",\r\n show: this.nomDropdownSettings.showSettings,\r\n clickHandler: () => {\r\n this.showSettings = true;\r\n },\r\n },\r\n ],\r\n },\r\n };\r\n },\r\n },\r\n watch: {\r\n selectedId: function (newVal, oldVal) {\r\n this.model.fieldValue.intValue = newVal;\r\n this.$emit(\"input\", newVal);\r\n RegisterEventBus.$emit('dynamic-field-change', newVal, oldVal, this.model);\r\n this.populateStringValueById(newVal);\r\n },\r\n value: function (newVal, oldVal) {\r\n this.selectedId = newVal;\r\n },\r\n required: function (val) {},\r\n },\r\n computed: {\r\n ...mapGetters([\"isEnVersion\", \"nomDropdownSettings\"]),\r\n },\r\n mounted() {\r\n if (!this.model.isMultiDropdown) {\r\n this.filterPattern = this.nomDropdownSettings.defaultFilterPattern;\r\n this.loadDropdownData();\r\n }\r\n },\r\n};\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DynamicRegisterDropdown.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DynamicRegisterDropdown.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DynamicRegisterDropdown.vue?vue&type=template&id=6ca70552&\"\nimport script from \"./DynamicRegisterDropdown.vue?vue&type=script&lang=js&\"\nexport * from \"./DynamicRegisterDropdown.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","!function(t,e){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(\"VueStarRating\",[],e):\"object\"==typeof exports?exports.VueStarRating=e():t.VueStarRating=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,\"a\",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p=\"/dist/\",e(e.s=4)}([function(t,e){function r(t,e){var r=t[1]||\"\",i=t[3];if(!i)return r;if(e&&\"function\"==typeof btoa){var o=n(i);return[r].concat(i.sources.map(function(t){return\"/*# sourceURL=\"+i.sourceRoot+t+\" */\"})).concat([o]).join(\"\\n\")}return[r].join(\"\\n\")}function n(t){return\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,\"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+\" */\"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=r(e,t);return e[2]?\"@media \"+e[2]+\"{\"+n+\"}\":n}).join(\"\")},e.i=function(t,r){\"string\"==typeof t&&(t=[[null,t,\"\"]]);for(var n={},i=0;i<this.length;i++){var o=this[i][0];\"number\"==typeof o&&(n[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];\"number\"==typeof a[0]&&n[a[0]]||(r&&!a[2]?a[2]=r:r&&(a[2]=\"(\"+a[2]+\") and (\"+r+\")\"),e.push(a))}},e}},function(t,e){t.exports=function(t,e,r,n,i){var o,a=t=t||{},s=typeof t.default;\"object\"!==s&&\"function\"!==s||(o=t,a=t.default);var u=\"function\"==typeof a?a.options:a;e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns),n&&(u._scopeId=n);var d;if(i?(d=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=d):r&&(d=r),d){var l=u.functional,c=l?u.render:u.beforeCreate;l?u.render=function(t,e){return d.call(e),c(t,e)}:u.beforeCreate=c?[].concat(c,d):[d]}return{esModule:o,exports:a,options:u}}},function(t,e,r){function n(t){for(var e=0;e<t.length;e++){var r=t[e],n=l[r.id];if(n){n.refs++;for(var i=0;i<n.parts.length;i++)n.parts[i](r.parts[i]);for(;i<r.parts.length;i++)n.parts.push(o(r.parts[i]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{for(var a=[],i=0;i<r.parts.length;i++)a.push(o(r.parts[i]));l[r.id]={id:r.id,refs:1,parts:a}}}}function i(){var t=document.createElement(\"style\");return t.type=\"text/css\",c.appendChild(t),t}function o(t){var e,r,n=document.querySelector('style[data-vue-ssr-id~=\"'+t.id+'\"]');if(n){if(h)return g;n.parentNode.removeChild(n)}if(v){var o=p++;n=f||(f=i()),e=a.bind(null,n,o,!1),r=a.bind(null,n,o,!0)}else n=i(),e=s.bind(null,n),r=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else r()}}function a(t,e,r,n){var i=r?\"\":n.css;if(t.styleSheet)t.styleSheet.cssText=m(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function s(t,e){var r=e.css,n=e.media,i=e.sourceMap;if(n&&t.setAttribute(\"media\",n),i&&(r+=\"\\n/*# sourceURL=\"+i.sources[0]+\" */\",r+=\"\\n/*# sourceMappingURL=data:application/json;base64,\"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+\" */\"),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var u=\"undefined\"!=typeof document;if(\"undefined\"!=typeof DEBUG&&DEBUG&&!u)throw new Error(\"vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\");var d=r(14),l={},c=u&&(document.head||document.getElementsByTagName(\"head\")[0]),f=null,p=0,h=!1,g=function(){},v=\"undefined\"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,r){h=r;var i=d(t,e);return n(i),function(e){for(var r=[],o=0;o<i.length;o++){var a=i[o],s=l[a.id];s.refs--,r.push(s)}e?(i=d(t,e),n(i)):i=[];for(var o=0;o<r.length;o++){var s=r[o];if(0===s.refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete l[s.id]}}}};var m=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join(\"\\n\")}}()},function(t,e,r){function n(t){r(13)}var i=r(1)(r(5),r(11),n,\"data-v-34cbeed1\",null);t.exports=i.exports},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var n=r(3),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=i.default},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var n=r(9),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default={components:{star:i.default},model:{prop:\"rating\",event:\"rating-selected\"},props:{increment:{type:Number,default:1},rating:{type:Number,default:0},roundStartRating:{type:Boolean,default:!0},activeColor:{type:String,default:\"#ffd055\"},inactiveColor:{type:String,default:\"#d8d8d8\"},maxRating:{type:Number,default:5},starPoints:{type:Array,default:function(){return[]}},starSize:{type:Number,default:50},showRating:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},textClass:{type:String,default:\"\"},inline:{type:Boolean,default:!1},borderColor:{type:String,default:\"#999\"},borderWidth:{type:Number,default:0},roundedCorners:{type:Boolean,default:!1},padding:{type:Number,default:0},rtl:{type:Boolean,default:!1},fixedPoints:{type:Number,default:null},glow:{type:Number,default:0},glowColor:{type:String,default:\"#fff\"}},created:function(){this.step=100*this.increment,this.currentRating=this.rating,this.selectedRating=this.currentRating,this.createStars(this.roundStartRating)},methods:{setRating:function(t,e){if(!this.readOnly){var r=this.rtl?(100-t.position)/100:t.position/100;this.currentRating=(t.id+r-1).toFixed(2),this.currentRating=this.currentRating>this.maxRating?this.maxRating:this.currentRating,this.createStars(),e?(this.selectedRating=this.currentRating,this.$emit(\"rating-selected\",this.selectedRating),this.ratingSelected=!0):this.$emit(\"current-rating\",this.currentRating)}},resetRating:function(){this.readOnly||(this.currentRating=this.selectedRating,this.createStars(this.shouldRound))},createStars:function(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&this.round();for(var t=0;t<this.maxRating;t++){var e=0;t<this.currentRating&&(e=this.currentRating-t>1?100:100*(this.currentRating-t)),this.$set(this.fillLevel,t,Math.round(e))}},round:function(){var t=1/this.increment;this.currentRating=Math.min(this.maxRating,Math.ceil(this.currentRating*t)/t)}},computed:{formattedRating:function(){return null===this.fixedPoints?this.currentRating:this.currentRating.toFixed(this.fixedPoints)},shouldRound:function(){return this.ratingSelected||this.roundStartRating},margin:function(){return this.padding+this.borderWidth}},watch:{rating:function(t){this.currentRating=t,this.selectedRating=t,this.createStars(this.shouldRound)}},data:function(){return{step:0,fillLevel:[],currentRating:0,selectedRating:0,ratingSelected:!1}}}},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.default={props:{fill:{type:Number,default:0},points:{type:Array,default:function(){return[]}},size:{type:Number,default:50},starId:{type:Number,required:!0},activeColor:{type:String,required:!0},inactiveColor:{type:String,required:!0},borderColor:{type:String,default:\"#000\"},borderWidth:{type:Number,default:0},roundedCorners:{type:Boolean,default:!1},rtl:{type:Boolean,default:!1},glow:{type:Number,default:0},glowColor:{type:String,required:!1}},created:function(){this.starPoints=this.points.length?this.points:this.starPoints,this.calculatePoints(),this.grad=this.getRandomId(),this.glowId=this.getRandomId()},computed:{starPointsToString:function(){return this.starPoints.join(\",\")},getGradId:function(){return\"url(#\"+this.grad+\")\"},getSize:function(){var t=this.roundedCorners&&this.borderWidth<=0?parseInt(this.size)-parseInt(this.border):this.size;return parseInt(t)+parseInt(this.border)},getFill:function(){return this.rtl?100-this.fill+\"%\":this.fill+\"%\"},border:function(){return this.roundedCorners&&this.borderWidth<=0?6:this.borderWidth},getBorderColor:function(){return this.roundedCorners&&this.borderWidth<=0?this.fill<=0?this.inactiveColor:this.activeColor:this.borderColor},maxSize:function(){return this.starPoints.reduce(function(t,e){return Math.max(t,e)})},viewBox:function(){return\"0 0 \"+this.maxSize+\" \"+this.maxSize}},methods:{mouseMoving:function(t){this.$emit(\"star-mouse-move\",{event:t,position:this.getPosition(t),id:this.starId})},getPosition:function(t){var e=.92*this.size,r=this.rtl?Math.min(t.offsetX,45):Math.max(t.offsetX,1),n=Math.round(100/e*r);return Math.min(n,100)},selected:function(t){this.$emit(\"star-selected\",{id:this.starId,position:this.getPosition(t)})},getRandomId:function(){return Math.random().toString(36).substring(7)},calculatePoints:function(){var t=this;this.starPoints=this.starPoints.map(function(e){return t.size/t.maxSize*e+1.5*t.border})}},data:function(){return{starPoints:[19.8,2.2,6.6,43.56,39.6,17.16,0,17.16,33,43.56],grad:\"\",glowId:\"\"}}}},function(t,e,r){e=t.exports=r(0)(void 0),e.push([t.i,\".vue-star-rating-star[data-v-21f5376e]{overflow:visible!important}\",\"\"])},function(t,e,r){e=t.exports=r(0)(void 0),e.push([t.i,\".vue-star-rating-star[data-v-34cbeed1]{display:inline-block}.vue-star-rating-pointer[data-v-34cbeed1]{cursor:pointer}.vue-star-rating[data-v-34cbeed1]{display:flex;align-items:center}.vue-star-rating-inline[data-v-34cbeed1]{display:inline-flex}.vue-star-rating-rating-text[data-v-34cbeed1]{margin-top:7px;margin-left:7px}.vue-star-rating-rtl[data-v-34cbeed1]{direction:rtl}.vue-star-rating-rtl .vue-star-rating-rating-text[data-v-34cbeed1]{margin-right:10px;direction:rtl}\",\"\"])},function(t,e,r){function n(t){r(12)}var i=r(1)(r(6),r(10),n,\"data-v-21f5376e\",null);t.exports=i.exports},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r(\"svg\",{staticClass:\"vue-star-rating-star\",attrs:{height:t.getSize,width:t.getSize,viewBox:t.viewBox},on:{mousemove:t.mouseMoving,click:t.selected}},[r(\"linearGradient\",{attrs:{id:t.grad,x1:\"0\",x2:\"100%\",y1:\"0\",y2:\"0\"}},[r(\"stop\",{attrs:{offset:t.getFill,\"stop-color\":t.rtl?t.inactiveColor:t.activeColor}}),t._v(\" \"),r(\"stop\",{attrs:{offset:t.getFill,\"stop-color\":t.rtl?t.activeColor:t.inactiveColor}})],1),t._v(\" \"),r(\"filter\",{attrs:{id:t.glowId,height:\"130%\",width:\"130%\",filterUnits:\"userSpaceOnUse\"}},[r(\"feGaussianBlur\",{attrs:{stdDeviation:t.glow,result:\"coloredBlur\"}}),t._v(\" \"),r(\"feMerge\",[r(\"feMergeNode\",{attrs:{in:\"coloredBlur\"}}),t._v(\" \"),r(\"feMergeNode\",{attrs:{in:\"SourceGraphic\"}})],1)],1),t._v(\" \"),r(\"polygon\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.fill>1,expression:\"fill > 1\"}],attrs:{points:t.starPointsToString,fill:t.getGradId,stroke:t.glowColor,filter:\"url(#\"+this.glowId+\")\"}}),t._v(\" \"),r(\"polygon\",{attrs:{points:t.starPointsToString,fill:t.getGradId,stroke:t.getBorderColor,\"stroke-width\":t.border,\"stroke-linejoin\":t.roundedCorners?\"round\":\"miter\"}}),t._v(\" \"),r(\"polygon\",{attrs:{points:t.starPointsToString,fill:t.getGradId}})],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r(\"div\",{class:[\"vue-star-rating\",{\"vue-star-rating-rtl\":t.rtl},{\"vue-star-rating-inline\":t.inline}]},[r(\"div\",{staticClass:\"vue-star-rating\",on:{mouseleave:t.resetRating}},[t._l(t.maxRating,function(e){return r(\"span\",{key:e,class:[{\"vue-star-rating-pointer\":!t.readOnly},\"vue-star-rating-star\"],style:{\"margin-right\":t.margin+\"px\"}},[r(\"star\",{attrs:{fill:t.fillLevel[e-1],size:t.starSize,points:t.starPoints,\"star-id\":e,step:t.step,\"active-color\":t.activeColor,\"inactive-color\":t.inactiveColor,\"border-color\":t.borderColor,\"border-width\":t.borderWidth,\"rounded-corners\":t.roundedCorners,rtl:t.rtl,glow:t.glow,\"glow-color\":t.glowColor},on:{\"star-selected\":function(e){t.setRating(e,!0)},\"star-mouse-move\":t.setRating}})],1)}),t._v(\" \"),t.showRating?r(\"span\",{class:[\"vue-star-rating-rating-text\",t.textClass]},[t._v(\" \"+t._s(t.formattedRating))]):t._e()],2)])},staticRenderFns:[]}},function(t,e,r){var n=r(7);\"string\"==typeof n&&(n=[[t.i,n,\"\"]]),n.locals&&(t.exports=n.locals);r(2)(\"0ab8a16d\",n,!0)},function(t,e,r){var n=r(8);\"string\"==typeof n&&(n=[[t.i,n,\"\"]]),n.locals&&(t.exports=n.locals);r(2)(\"2e648ff1\",n,!0)},function(t,e){t.exports=function(t,e){for(var r=[],n={},i=0;i<e.length;i++){var o=e[i],a=o[0],s=o[1],u=o[2],d=o[3],l={id:t+\":\"+i,css:s,media:u,sourceMap:d};n[a]?n[a].parts.push(l):r.push(n[a]={id:a,parts:[l]})}return r}}])});\n//# sourceMappingURL=star-rating.min.js.map","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card mt-3\"},[_c('div',{staticClass:\"card-header bg-primary text-white\"},[_c('div',{staticClass:\"card-title h5 m-0\"},[_vm._v(\"\\n \"+_vm._s(_vm.isEnVersion ? _vm.panel.labelEn : _vm.panel.label)+\"\\n \")])]),_c('div',{staticClass:\"card-body row\"},_vm._l((_vm.panel.components),function(component,index){return _c(component.fieldType,{key:index,tag:\"component\",attrs:{\"type\":component.type,\"model\":component,\"details\":_vm.details,\"allowAnonymous\":_vm.allowAnonymous,\"requiredIdentification\":false,\"validateUniqueIdNumber\":false,\"validateEgn\":true,\"isNew\":_vm.isNew,\"profile-data\":_vm.profileData,\"is-evaluation-panel\":_vm.panel.isEvaluationPanel},on:{\"deleteSavedFile\":_vm.deleteSavedFile}})}),1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"form-group\",class:_vm.model.size},[_c('label',{staticClass:\"font-weight-bold\",class:_vm.labelClasses,attrs:{\"for\":'input' + _vm._uid}},[_vm._v(\"\\n \"+_vm._s(_vm.isEnVersion ? _vm.model.labelEn : _vm.model.label)+\"\\n \")]),(_vm.model.inputType === 'textarea')?_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.initialValue),expression:\"initialValue\"},{name:\"validate\",rawName:\"v-validate\",value:(_vm.validations),expression:\"validations\"}],staticClass:\"form-control\",class:_vm.model.fieldCode,attrs:{\"id\":'input' + _vm._uid,\"name\":'input' + _vm._uid,\"rows\":\"5\",\"data-vv-as\":_vm.model.label,\"readonly\":_vm.model.isReadOnly || _vm.details,\"aria-describedby\":\"descriptionHelp\"},domProps:{\"value\":(_vm.initialValue)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.initialValue=$event.target.value},_vm.inputChanged]}}):((_vm.model.inputType)==='checkbox')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.initialValue),expression:\"initialValue\"},{name:\"validate\",rawName:\"v-validate\",value:(_vm.validations),expression:\"validations\"}],staticClass:\"form-control\",class:_vm.model.fieldCode,attrs:{\"id\":'input' + _vm._uid,\"name\":'input' + _vm._uid,\"data-vv-as\":_vm.model.label,\"readonly\":_vm.model.isReadOnly || _vm.details,\"aria-describedby\":\"descriptionHelp\",\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.initialValue)?_vm._i(_vm.initialValue,null)>-1:(_vm.initialValue)},on:{\"input\":_vm.inputChanged,\"change\":function($event){var $$a=_vm.initialValue,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.initialValue=$$a.concat([$$v]))}else{$$i>-1&&(_vm.initialValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.initialValue=$$c}}}}):((_vm.model.inputType)==='radio')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.initialValue),expression:\"initialValue\"},{name:\"validate\",rawName:\"v-validate\",value:(_vm.validations),expression:\"validations\"}],staticClass:\"form-control\",class:_vm.model.fieldCode,attrs:{\"id\":'input' + _vm._uid,\"name\":'input' + _vm._uid,\"data-vv-as\":_vm.model.label,\"readonly\":_vm.model.isReadOnly || _vm.details,\"aria-describedby\":\"descriptionHelp\",\"type\":\"radio\"},domProps:{\"checked\":_vm._q(_vm.initialValue,null)},on:{\"input\":_vm.inputChanged,\"change\":function($event){_vm.initialValue=null}}}):_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.initialValue),expression:\"initialValue\"},{name:\"validate\",rawName:\"v-validate\",value:(_vm.validations),expression:\"validations\"}],staticClass:\"form-control\",class:_vm.model.fieldCode,attrs:{\"id\":'input' + _vm._uid,\"name\":'input' + _vm._uid,\"data-vv-as\":_vm.model.label,\"readonly\":_vm.model.isReadOnly || _vm.details,\"aria-describedby\":\"descriptionHelp\",\"type\":_vm.model.inputType},domProps:{\"value\":(_vm.initialValue)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.initialValue=$event.target.value},_vm.inputChanged]}}),(_vm.errors.has('input' + _vm._uid))?_c('div',{staticClass:\"text-danger\"},[_vm._v(_vm._s(_vm.errors.first('input' + _vm._uid)))]):_vm._e(),_c('small',{staticClass:\"form-text text-muted\",attrs:{\"id\":\"descriptionHelp\"}},[_vm._v(_vm._s(_vm.isEnVersion ? _vm.model.descriptionEn : _vm.model.description))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"form-group\" :class=\"model.size\">\r\n <label class=\"font-weight-bold\" :class=\"labelClasses\" :for=\"'input' + _uid\">\r\n {{ isEnVersion ? model.labelEn : model.label }}\r\n </label>\r\n <textarea v-if=\"model.inputType === 'textarea'\"\r\n class=\"form-control\"\r\n :class=\"model.fieldCode\"\r\n v-model=\"initialValue\"\r\n :id=\"'input' + _uid\"\r\n :name=\"'input' + _uid\"\r\n rows=\"5\"\r\n :data-vv-as=\"model.label\"\r\n v-validate=\"validations\"\r\n @input=\"inputChanged\"\r\n :readonly=\"model.isReadOnly || details\"\r\n aria-describedby=\"descriptionHelp\"></textarea>\r\n <input v-else\r\n class=\"form-control\"\r\n :class=\"model.fieldCode\"\r\n :type=\"model.inputType\"\r\n v-model=\"initialValue\"\r\n :id=\"'input' + _uid\"\r\n :name=\"'input' + _uid\"\r\n :data-vv-as=\"model.label\"\r\n v-validate=\"validations\"\r\n @input=\"inputChanged\"\r\n :readonly=\"model.isReadOnly || details\"\r\n aria-describedby=\"descriptionHelp\">\r\n <div class=\"text-danger\" v-if=\"errors.has('input' + _uid)\">{{ errors.first('input' + _uid) }}</div>\r\n <small id=\"descriptionHelp\" class=\"form-text text-muted\">{{ isEnVersion ? model.descriptionEn : model.description }}</small>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import { InputType, NumberType } from '../../models/enums';\r\n import { EditorComponentModel } from '../../models/models';\r\n import { mapGetters } from 'vuex';\r\n import { RegisterEventBus } from '@/buses/register-bus.js';\r\n\r\n export default {\r\n inject: ['$validator'],\r\n props: {\r\n model: {\r\n type: EditorComponentModel\r\n },\r\n value: [String, Number],\r\n details: {\r\n type: Boolean,\r\n default: false\r\n },\r\n allowAnonymous: {\r\n type: Boolean,\r\n default: true\r\n },\r\n profileData: {\r\n type: Object,\r\n default() {\r\n return null;\r\n }\r\n },\r\n isEvaluationPanel: {\r\n type: Boolean,\r\n default: false\r\n }\r\n },\r\n data() {\r\n return {\r\n validations: '',\r\n initialValue: '',\r\n labelClasses: ''\r\n }\r\n },\r\n methods: {\r\n inputChanged(event) {\r\n if (this.model.inputType === InputType.Text || this.model.inputType === InputType.TextArea) {\r\n this.model.fieldValue.textValue = event.target.value;\r\n } else {\r\n if (this.model.numberType === NumberType.Int) {\r\n this.model.fieldValue.intValue = event.target.value;\r\n } else {\r\n this.model.fieldValue.decimalValue = event.target.value;\r\n }\r\n }\r\n this.$emit('input', event.target.value);\r\n RegisterEventBus.$emit('dynamic-field-change', event.target.value, event.target.value, this.model);\r\n this.model.fieldValue.stringValue = event.target.value;\r\n },\r\n addValidations() {\r\n if (this.model.isRequired) {\r\n this.addValidation('required');\r\n this.labelClasses += 'required';\r\n }\r\n\r\n if (this.model.inputType === InputType.Text || this.model.inputType === InputType.TextArea) {\r\n this.addTextValidations();\r\n } else {\r\n this.addNumberValidations();\r\n }\r\n },\r\n addValidation(validation) {\r\n if (this.validations.length > 0) {\r\n this.validations += '|';\r\n }\r\n this.validations += validation;\r\n },\r\n addTextValidations() {\r\n if (this.model.textMinLength && !isNaN(parseInt(this.model.textMinLength))) {\r\n this.addValidation(`min:${this.model.textMinLength}`);\r\n }\r\n if (this.model.textMaxLength && !isNaN(parseInt(this.model.textMaxLength))) {\r\n this.addValidation(`max:${this.model.textMaxLength}`);\r\n }\r\n },\r\n addNumberValidations() {\r\n if (this.model.numberType === NumberType.Int) {\r\n this.addIntValidations();\r\n } else {\r\n this.addDecimalValidations();\r\n }\r\n },\r\n addIntValidations() {\r\n if (this.model.intMinValue && !isNaN(parseInt(this.model.intMinValue))) {\r\n this.addValidation(`min_value:${this.model.intMinValue}`);\r\n }\r\n if (this.model.intMaxValue && !isNaN(parseInt(this.model.intMaxValue))) {\r\n this.addValidation(`max_value:${this.model.intMaxValue}`);\r\n }\r\n },\r\n addDecimalValidations() {\r\n if (this.model.decimalPrecision) {\r\n this.addValidation(`decimal:${this.model.decimalPrecision}`);\r\n }\r\n if (!isNaN(parseInt(this.model.decimalMinValue))) {\r\n this.addValidation(`min_value:${this.model.decimalMinValue}`);\r\n }\r\n if (this.model.decimalMaxValue && !isNaN(parseInt(this.model.decimalMaxValue))) {\r\n this.addValidation(`max_value:${this.model.decimalMaxValue}`);\r\n }\r\n },\r\n loadInitialValue() {\r\n if (this.model.inputType === InputType.Text || this.model.inputType === InputType.TextArea) {\r\n this.initialValue = this.model.fieldValue.textValue ? this.model.fieldValue.textValue : this.model.textDefaultValue;\r\n this.model.fieldValue.textValue = this.initialValue;\r\n this.model.fieldValue.stringValue = this.initialValue;\r\n } else {\r\n if (this.model.numberType === NumberType.Int) {\r\n this.initialValue = this.model.fieldValue.intValue ?\r\n this.model.fieldValue.intValue : this.model.intDefaultValue;\r\n this.model.fieldValue.intValue = this.initialValue;\r\n this.model.fieldValue.stringValue = this.initialValue;\r\n } else {\r\n this.initialValue = this.model.fieldValue.decimalValue ?\r\n this.model.fieldValue.decimalValue : this.model.decimalDefaultValue;\r\n this.model.fieldValue.decimalValue = this.initialValue;\r\n this.model.fieldValue.stringValue = this.initialValue;\r\n }\r\n }\r\n },\r\n fillProfileData(data) {\r\n if (!data) {\r\n return;\r\n }\r\n\r\n const value = this.$helpers.fillProfileDataToDynamicForm(this.model, data);\r\n if (!value) {\r\n this.$emit('input', value);\r\n }\r\n }\r\n },\r\n mounted() {\r\n this.addValidations();\r\n this.loadInitialValue();\r\n\r\n this.model.uid = this._uid;\r\n this.model.isEvaluationPanel = this.isEvaluationPanel;\r\n },\r\n computed: {\r\n ...mapGetters(['isEnVersion']),\r\n },\r\n watch: {\r\n 'model.fieldValue.textValue': function(newVal, oldVal) {\r\n if (newVal !== oldVal) {\r\n this.initialValue = newVal;\r\n }\r\n },\r\n profileData: {\r\n handler: function (newVal, oldVal) {\r\n this.fillProfileData(newVal);\r\n },\r\n deep: true,\r\n immediate: true,\r\n },\r\n }\r\n }\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Input.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Input.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Input.vue?vue&type=template&id=5e30aa8a&\"\nimport script from \"./Input.vue?vue&type=script&lang=js&\"\nexport * from \"./Input.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"form-group\",class:_vm.model.size},[_c('label',{staticClass:\"font-weight-bold\"},[_vm._v(_vm._s(_vm.isEnVersion ? _vm.model.labelEn : _vm.model.label))]),_c('div',{attrs:{\"aria-describedby\":\"descriptionHelp\"}},[_c('toggle',{class:_vm.model.fieldCode,attrs:{\"disabled\":_vm.model.isReadOnly || _vm.details},on:{\"input\":_vm.inputChanged,\"stringValueChanged\":_vm.stringValueChanged},model:{value:(_vm.selectedValue),callback:function ($$v) {_vm.selectedValue=$$v},expression:\"selectedValue\"}})],1),_c('small',{staticClass:\"form-text text-muted\",attrs:{\"id\":\"descriptionHelp\"}},[_vm._v(_vm._s(_vm.isEnVersion ? _vm.model.descriptionEn : _vm.model.description))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"form-group\" :class=\"model.size\">\r\n <label class=\"font-weight-bold\">{{ isEnVersion ? model.labelEn : model.label }}</label>\r\n <div aria-describedby=\"descriptionHelp\">\r\n <toggle v-model=\"selectedValue\"\r\n @input=\"inputChanged\"\r\n @stringValueChanged=\"stringValueChanged\"\r\n :class=\"model.fieldCode\"\r\n :disabled=\"model.isReadOnly || details\"></toggle>\r\n </div>\r\n <small id=\"descriptionHelp\" class=\"form-text text-muted\">{{ isEnVersion ? model.descriptionEn : model.description }}</small>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import Toggle from '@/components/toggle/Toggle';\r\n import { DynamicRegisterFieldValueModel, EditorComponentModel } from '../../models/models';\r\n import { mapGetters } from 'vuex';\r\n import { RegisterEventBus } from '@/buses/register-bus.js';\r\n\r\n export default {\r\n inject: ['$validator'],\r\n props: {\r\n model: EditorComponentModel,\r\n value: DynamicRegisterFieldValueModel,\r\n details: {\r\n type: Boolean,\r\n default: false\r\n },\r\n allowAnonymous: {\r\n type: Boolean,\r\n default: true\r\n },\r\n profileData: {\r\n type: Object,\r\n default() {\r\n return null;\r\n }\r\n },\r\n isEvaluationPanel: {\r\n type: Boolean,\r\n default: false\r\n }\r\n },\r\n components: {\r\n Toggle\r\n },\r\n data() {\r\n return {\r\n selectedValue: this.model.fieldValue.booleanValue\r\n ? this.model.fieldValue.booleanValue : this.model.booleanDefaultValue\r\n }\r\n },\r\n methods: {\r\n inputChanged(event) {\r\n this.model.fieldValue.booleanValue = event;\r\n this.$emit('input', this.model.fieldValue);\r\n RegisterEventBus.$emit('dynamic-field-change', event, event, this.model);\r\n },\r\n stringValueChanged(stringValue) {\r\n this.model.fieldValue.stringValue = stringValue;\r\n },\r\n fillProfileData(data) {\r\n if (!data) {\r\n return;\r\n }\r\n\r\n // Todo\r\n }\r\n },\r\n mounted() {\r\n this.model.fieldValue.booleanValue = this.selectedValue;\r\n this.model.uid = this._uid;\r\n this.model.isEvaluationPanel = this.isEvaluationPanel;\r\n },\r\n computed: {\r\n ...mapGetters(['isEnVersion']),\r\n },\r\n watch: {\r\n profileData: {\r\n handler: function (newVal, oldVal) {\r\n this.fillProfileData(newVal);\r\n },\r\n deep: true,\r\n immediate: true,\r\n },\r\n }\r\n }\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Toggle.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Toggle.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Toggle.vue?vue&type=template&id=f354d6a4&\"\nimport script from \"./Toggle.vue?vue&type=script&lang=js&\"\nexport * from \"./Toggle.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"form-group\",class:_vm.model.size},[_c('label',{staticClass:\"font-weight-bold\",attrs:{\"for\":'datepicker' + _vm._uid}},[_vm._v(\"\\n \"+_vm._s(_vm.isEnVersion ? _vm.model.labelEn : _vm.model.label)+\"\\n \")]),_c('div',{attrs:{\"aria-describedby\":\"descriptionHelp\"}},[_c('datetime-picker',{directives:[{name:\"validate\",rawName:\"v-validate\",value:(_vm.validations),expression:\"validations\"}],class:_vm.model.fieldCode,attrs:{\"min\":_vm.model.datetimeMinValue,\"max\":_vm.model.datetimeMaxValue,\"format\":_vm.format,\"time-format\":_vm.timeFormat,\"name\":'datetimepicker' + _vm._uid,\"data-vv-as\":_vm.model.label,\"showTime\":_vm.showTime,\"readonly\":_vm.model.isReadOnly || _vm.details},model:{value:(_vm.selectedDate),callback:function ($$v) {_vm.selectedDate=$$v},expression:\"selectedDate\"}})],1),_c('small',{staticClass:\"form-text text-muted\",attrs:{\"id\":\"descriptionHelp\"}},[_vm._v(_vm._s(_vm.isEnVersion ? _vm.model.descriptionEn : _vm.model.description))]),(_vm.errors.has('datetimepicker' + _vm._uid))?_c('span',{staticClass:\"text-danger\"},[_vm._v(_vm._s(_vm.errors.first('datetimepicker' + _vm._uid)))]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"form-group\" :class=\"model.size\">\r\n <label class=\"font-weight-bold\" :for=\"'datepicker' + _uid\">\r\n {{ isEnVersion ? model.labelEn : model.label }}\r\n </label>\r\n <div aria-describedby=\"descriptionHelp\">\r\n <datetime-picker v-model=\"selectedDate\"\r\n :min=\"model.datetimeMinValue\"\r\n :max=\"model.datetimeMaxValue\"\r\n :format=\"format\"\r\n :time-format=\"timeFormat\"\r\n :name=\"'datetimepicker' + _uid\"\r\n :data-vv-as=\"model.label\"\r\n :showTime=\"showTime\"\r\n :class=\"model.fieldCode\"\r\n :readonly=\"model.isReadOnly || details\"\r\n v-validate=\"validations\">\r\n </datetime-picker>\r\n </div>\r\n <small id=\"descriptionHelp\" class=\"form-text text-muted\">{{ isEnVersion ? model.descriptionEn : model.description }}</small>\r\n <span class=\"text-danger\" v-if=\"errors.has('datetimepicker' + _uid)\">{{ errors.first('datetimepicker' + _uid) }}</span>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import DatetimePicker from '../../components/datepicker/DatePicker';\r\n import { mapGetters } from 'vuex';\r\n import { RegisterEventBus } from '@/buses/register-bus.js';\r\n\r\n export default {\r\n inject: ['$validator'],\r\n props: {\r\n value: String,\r\n model: Object,\r\n details: {\r\n type: Boolean,\r\n default: false\r\n },\r\n allowAnonymous: {\r\n type: Boolean,\r\n default: true\r\n },\r\n showTime: {\r\n type: Boolean,\r\n default: true\r\n },\r\n profileData: {\r\n type: Object,\r\n default() {\r\n return null;\r\n }\r\n },\r\n isEvaluationPanel: {\r\n type: Boolean,\r\n default: false\r\n }\r\n },\r\n components: {\r\n DatetimePicker\r\n },\r\n data() {\r\n return {\r\n selectedDate: '',\r\n validations: '',\r\n format: 'dd.MM.yyyy HH:mm',\r\n timeFormat: 'HH:mm'\r\n }\r\n },\r\n methods: {\r\n addValidations() {\r\n if (this.model.isRequired) {\r\n this.addValidation('required');\r\n }\r\n\r\n if (this.model.datetimeMinValue && this.model.datetimeMaxValue) {\r\n const rules = `data_format=${this.format}|date_between:${this.model.datetimeMinValue},${this.model.datetimeMaxValue}`;\r\n this.addValidation(rules);\r\n }\r\n },\r\n addValidation(validation) {\r\n if (this.validations.length > 0) {\r\n this.validations += '|';\r\n }\r\n this.validations += validation;\r\n },\r\n loadInitialValue() {\r\n this.selectedDate = this.model.fieldValue.datetimeValue\r\n ? this.model.fieldValue.datetimeValue : this.model.datetimeDefaultValue;\r\n this.model.fieldValue.datetimeValue = this.selectedDate;\r\n this.model.fieldValue.stringValue = this.selectedDate;\r\n this.setEventDate(this.selectedDate);\r\n },\r\n setEventDate(date) {\r\n if (this.model.fieldCode === 'Event_start') {\r\n this.$parent.$parent.$parent.eventDateFrom = date;\r\n } else if (this.model.fieldCode === 'Event_end') {\r\n this.$parent.$parent.$parent.eventDateTo = date;\r\n }\r\n },\r\n componentReset() {\r\n this.loadInitialValue();\r\n },\r\n fillProfileData(data) {\r\n if (!data) {\r\n return;\r\n }\r\n\r\n this.$helpers.fillProfileDataToDynamicForm(this.model, data);\r\n }\r\n },\r\n watch: {\r\n selectedDate: function (newVal, oldVal) {\r\n this.model.fieldValue.datetimeValue = this.selectedDate;\r\n this.setEventDate(newVal);\r\n this.$emit('input', this.selectedDate);\r\n RegisterEventBus.$emit('dynamic-field-change', newVal, oldVal, this.model, this);\r\n this.model.fieldValue.stringValue = this.selectedDate;\r\n },\r\n profileData: {\r\n handler: function (newVal, oldVal) {\r\n this.fillProfileData(newVal);\r\n },\r\n deep: true,\r\n immediate: true,\r\n },\r\n },\r\n mounted() {\r\n this.addValidations();\r\n this.loadInitialValue();\r\n this.model.uid = this._uid;\r\n this.model.isEvaluationPanel = this.isEvaluationPanel;\r\n },\r\n created() {\r\n RegisterEventBus.$on(`component-${this.model.fieldCode}-${this.model.id}-reset`, this.componentReset);\r\n },\r\n destroyed() {\r\n RegisterEventBus.$off(`component-${this.model.fieldCode}-${this.model.id}-reset`, this.componentReset);\r\n },\r\n computed: {\r\n ...mapGetters(['isEnVersion']),\r\n }\r\n }\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Datepicker.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Datepicker.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Datepicker.vue?vue&type=template&id=5eeafc33&\"\nimport script from \"./Datepicker.vue?vue&type=script&lang=js&\"\nexport * from \"./Datepicker.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"form-group\",class:_vm.model.size},[_c('label',{staticClass:\"font-weight-bold\",class:_vm.labelClasses},[_vm._v(\"\\n \"+_vm._s(_vm.isEnVersion ? _vm.model.labelEn : _vm.model.label)+\"\\n \")]),_c(_vm.dropdownComponent,{directives:[{name:\"validate\",rawName:\"v-validate\",value:(_vm.validations),expression:\"validations\"}],tag:\"component\",class:_vm.model.fieldCode,attrs:{\"model\":_vm.model,\"name\":'dropdown' + _vm._uid,\"data-vv-as\":_vm.model.label,\"filter\":'contains',\"details\":_vm.details,\"isNew\":_vm.isNew,\"aria-describedby\":\"descriptionHelp\"},model:{value:(_vm.selectedValue),callback:function ($$v) {_vm.selectedValue=$$v},expression:\"selectedValue\"}}),_c('small',{staticClass:\"form-text text-muted\",attrs:{\"id\":\"descriptionHelp\"}},[_vm._v(_vm._s(_vm.isEnVersion ? _vm.model.descriptionEn : _vm.model.description))]),(_vm.errors.has('dropdown' + _vm._uid))?_c('span',{staticClass:\"text-danger\"},[_vm._v(_vm._s(_vm.errors.first('dropdown' + _vm._uid)))]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.loading)?_c('div',{staticClass:\"loader\"}):_vm._e(),(!_vm.loading)?_c('div',[(!_vm.model.isMultiDropdown)?_c('div',[(_vm.model.dropdownIsCity)?_c('div',[_c('city-dropdown-search',{attrs:{\"disabled\":_vm.details || _vm.model.isReadOnly},model:{value:(_vm.selectedId),callback:function ($$v) {_vm.selectedId=$$v},expression:\"selectedId\"}})],1):_c('div',[_c('dropdown',{attrs:{\"type\":_vm.nomenclatureName,\"isCity\":_vm.model.dropdownIsCity,\"fieldName\":_vm.isEnVersion ? _vm.model.labelEn : _vm.model.label,\"disabled\":_vm.details || _vm.model.isReadOnly},model:{value:(_vm.selectedId),callback:function ($$v) {_vm.selectedId=$$v},expression:\"selectedId\"}})],1)]):_vm._e(),(_vm.model.isMultiDropdown)?_c('div',[_c('multi-select',{attrs:{\"type\":_vm.nomenclatureName,\"model\":_vm.model,\"details\":_vm.details || _vm.model.isReadOnly,\"fieldName\":_vm.isEnVersion ? _vm.model.labelEn : _vm.model.label},model:{value:(_vm.multiSelectValue),callback:function ($$v) {_vm.multiSelectValue=$$v},expression:\"multiSelectValue\"}})],1):_vm._e()]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.loaded)?_c('kendo-multiselect',{directives:[{name:\"validate\",rawName:\"v-validate\",value:(_vm.model.isRequired ? 'required' : ''),expression:\"model.isRequired ? 'required' : ''\"}],ref:'multiNomDropdown' + _vm._uid,staticStyle:{\"width\":\"100%\"},attrs:{\"id\":'multiNomDropdown' + _vm._uid,\"data-source\":_vm.items,\"data-text-field\":_vm.isEnVersion ? 'textEn' : 'text',\"data-value-field\":'id',\"filter\":_vm.filterPattern,\"optionLabel\":_vm.$t('choose'),\"name\":'dropdown' + _vm._uid,\"data-vv-as\":_vm.fieldName,\"no-data-template\":_vm.nomDropdownSettings.showNoDataTemplate ? _vm.noDataTemplate : '',\"footer-template\":_vm.nomDropdownSettings.showFooterTemplate ? _vm.footerTemplate : '',\"disabled\":_vm.details,\"height\":_vm.height},on:{\"change\":_vm.inputChanged},model:{value:(_vm.selectedValues),callback:function ($$v) {_vm.selectedValues=$$v},expression:\"selectedValues\"}}):_vm._e(),(_vm.errors.has('dropdown' + _vm._uid))?_c('span',{staticClass:\"text-danger col-12\"},[_vm._v(_vm._s(_vm.errors.first('dropdown' + _vm._uid)))]):_vm._e(),_c('vs-prompt',{attrs:{\"title\":_vm.$t('registers.nomenclatures.add'),\"active\":_vm.showNomCreate,\"buttons-hidden\":true,\"color\":\"primary\"},on:{\"update:active\":function($event){_vm.showNomCreate=$event},\"cancel\":_vm.cancelPrompt,\"close\":_vm.cancelPrompt}},[_c('div',[_c('NomenclatureEditCard',{key:_vm.nomParentSort,attrs:{\"nomSort\":_vm.nomParentSort,\"nomName\":_vm.nomParentType,\"create\":true},on:{\"nomEditCancel\":_vm.nomEditCancel,\"nomEditSave\":_vm.nomEditSave}}),_c('div',{staticClass:\"clearfix\"})],1)]),(_vm.loaded)?_c('DropdownSettings',{attrs:{\"filterPattern\":_vm.filterPattern,\"show\":_vm.showSettings},on:{\"update:filterPattern\":function($event){_vm.filterPattern=$event},\"update:filter-pattern\":function($event){_vm.filterPattern=$event},\"update:show\":function($event){_vm.showSettings=$event}}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <kendo-multiselect\r\n :ref=\"'multiNomDropdown' + _uid\"\r\n :id=\"'multiNomDropdown' + _uid\"\r\n v-if=\"loaded\"\r\n v-model=\"selectedValues\"\r\n :data-source=\"items\"\r\n :data-text-field=\"isEnVersion ? 'textEn' : 'text'\"\r\n :data-value-field=\"'id'\"\r\n :filter=\"filterPattern\"\r\n :optionLabel=\"$t('choose')\"\r\n @change=\"inputChanged\"\r\n :name=\"'dropdown' + _uid\"\r\n :data-vv-as=\"fieldName\"\r\n :no-data-template=\"nomDropdownSettings.showNoDataTemplate ? noDataTemplate : ''\"\r\n :footer-template=\"nomDropdownSettings.showFooterTemplate ? footerTemplate : ''\"\r\n :disabled=\"details\"\r\n :height=\"height\"\r\n v-validate=\"model.isRequired ? 'required' : ''\"\r\n style=\"width: 100%;\"\r\n >\r\n </kendo-multiselect>\r\n\r\n <span\r\n class=\"text-danger col-12\"\r\n v-if=\"errors.has('dropdown' + _uid)\"\r\n >{{ errors.first('dropdown' + _uid) }}</span>\r\n\r\n <vs-prompt\r\n :title=\"$t('registers.nomenclatures.add')\"\r\n :active.sync=\"showNomCreate\"\r\n :buttons-hidden=\"true\"\r\n @cancel=\"cancelPrompt\"\r\n @close=\"cancelPrompt\"\r\n color=\"primary\"\r\n >\r\n <div>\r\n <NomenclatureEditCard\r\n :nomSort=\"nomParentSort\"\r\n :nomName=\"nomParentType\"\r\n :create=\"true\"\r\n :key=\"nomParentSort\"\r\n @nomEditCancel=\"nomEditCancel\"\r\n @nomEditSave=\"nomEditSave\"\r\n ></NomenclatureEditCard>\r\n <div class=\"clearfix\"></div>\r\n </div>\r\n </vs-prompt>\r\n\r\n <DropdownSettings v-if=\"loaded\"\r\n :filterPattern.sync=\"filterPattern\"\r\n :show.sync=\"showSettings\">\r\n </DropdownSettings>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport Vue from \"vue\";\r\nimport NomenclatureEditCard from \"../dropdown/NomenclatureEditCard\";\r\nimport NodataTemplate from \"../../components/grid/NomenclatureDropdownNodataTemplate\";\r\nimport FooterTemplate from \"../../components/grid/NomenclatureDropdownFooterTemplate\";\r\nimport DropdownSettings from \"../../components/common/DropdownSettings\";\r\nimport { EditorComponentModel } from \"../../models/models\";\r\nimport { mapGetters } from \"vuex\";\r\n\r\nexport default {\r\n props: {\r\n value: [String, Number],\r\n type: String,\r\n // Името което показва vee-validate\r\n fieldName: String,\r\n model: EditorComponentModel,\r\n isNew: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n details: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n height: {\r\n type: Number,\r\n default: 400, // 200 - Default value for Kendo DropdownList\r\n },\r\n },\r\n components: {\r\n NomenclatureEditCard,\r\n DropdownSettings\r\n },\r\n data() {\r\n return {\r\n items: [],\r\n selectedValues: [],\r\n loaded: false,\r\n showNomCreate: false,\r\n nomParentSort: 0,\r\n nomParentType: this.type,\r\n showSettings: false,\r\n filterPattern: '',\r\n };\r\n },\r\n methods: {\r\n init() {\r\n const url = `/api/search/GetNomenclatureItemsById?id=${this.model.dropdownId}&isCity=${this.model.dropdownIsCity}&selected=${this.value}`;\r\n this.$http\r\n .get(url)\r\n .then((result) => {\r\n this.items = result.data;\r\n this.loaded = true;\r\n\r\n if (\r\n this.model.fieldValue.textValue\r\n .toString()\r\n .indexOf(\"|\") !== -1\r\n ) {\r\n const parsedValues = this.model.fieldValue.textValue\r\n .toString()\r\n .split(\"|\");\r\n parsedValues.forEach((value) => {\r\n this.selectedValues.push(parseInt(value));\r\n });\r\n } else {\r\n if (!isNaN(this.model.fieldValue.textValue)) {\r\n this.selectedValues = parseInt(\r\n this.model.fieldValue.textValue\r\n );\r\n }\r\n }\r\n\r\n if (\r\n !this.selectedValues &&\r\n this.model.textDefaultValue &&\r\n this.isNew\r\n ) {\r\n const parsedValues = this.model.textDefaultValue\r\n .toString()\r\n .split(\"|\");\r\n parsedValues.forEach((value) => {\r\n this.selectedValues.push(parseInt(value));\r\n });\r\n }\r\n\r\n this.populateStringValueById(this.selectedValues);\r\n })\r\n .catch((error) => {\r\n this.$vs.notify({\r\n title: this.$t(\r\n \"request.response.status.\" +\r\n this.$helpers.errorStatusCode(error)\r\n ),\r\n text: this.$helpers.errorText(error),\r\n color: \"danger\",\r\n time: this.$store.getters.notificationDuration,\r\n });\r\n })\r\n .then(() => {\r\n this.loading = false;\r\n });\r\n },\r\n inputChanged(event) {\r\n let valueToEmit = event.sender.value().join(\"|\");\r\n this.model.fieldValue.textValue = valueToEmit;\r\n this.$emit(\"input\", valueToEmit);\r\n this.populateStringValueById(event.sender.value());\r\n },\r\n populateStringValueById(ids) {\r\n if (Array.isArray(ids) === false) {\r\n return;\r\n }\r\n\r\n let stringValues = [];\r\n let vm = this;\r\n if (ids) {\r\n ids.forEach((id) => {\r\n const val = vm.items.filter((item) => item.id === id);\r\n if (val && val.length > 0) {\r\n stringValues.push(val[0].text);\r\n }\r\n });\r\n }\r\n if (stringValues.length > 0) {\r\n this.model.fieldValue.stringValue = stringValues.join(\",\");\r\n }\r\n },\r\n templateBtns(e) {\r\n return [\r\n this.hasCreateRights\r\n ? {\r\n name: \"addNomenclature\",\r\n text: this.$t(\"buttons.add.btnText\"),\r\n tooltip: this.$t(\"buttons.add.btnText\"),\r\n class: \"btn btn-secondary\",\r\n icon: \"far fa-plus-square\",\r\n show: true,\r\n clickHandler: this.addNomenclature,\r\n }\r\n : {},\r\n ];\r\n },\r\n noDataTemplate: function (e) {\r\n return this.model.dropdownIsCity\r\n ? {}\r\n : {\r\n template: Vue.component(\r\n NodataTemplate.name,\r\n NodataTemplate\r\n ),\r\n templateArgs: {\r\n ...e,\r\n noDataFound: this.$t(\"dropdownList.noDataFound\"),\r\n createQuestion: this.$t(\r\n \"dropdownList.createQuestion\"\r\n ),\r\n btns: this.templateBtns(e),\r\n },\r\n };\r\n },\r\n footerTemplate: function (e) {\r\n return this.model.dropdownIsCity\r\n ? {}\r\n : {\r\n template: Vue.component(\r\n FooterTemplate.name,\r\n FooterTemplate\r\n ),\r\n templateArgs: {\r\n ...e,\r\n btns: [...this.templateBtns(e),\r\n {\r\n name: \"nomenclatureMultiDropdownSettings\",\r\n text: this.$t(\"buttons.settings.btnText\"),\r\n tooltip: this.$t(\"buttons.settings.btnText\"),\r\n class: \"btn btn-secondary\",\r\n icon: \"fas fa-cog\",\r\n show: this.nomDropdownSettings.showSettings,\r\n clickHandler: () => {\r\n this.showSettings = true;\r\n },\r\n }\r\n ],\r\n },\r\n };\r\n },\r\n addNomenclature(args) {\r\n if (!this.hasCreateRights) {\r\n // Todo: show message\r\n return;\r\n }\r\n\r\n this.showNewNomenclatureModal(args);\r\n },\r\n showNewNomenclatureModal() {\r\n this.showNomCreate = true;\r\n },\r\n clearFilterAndText() {\r\n var dropdown = this.$refs[\"multiNomDropdown\" + this._uid].kendoWidget();\r\n if (dropdown) {\r\n dropdown.dataSource.filter({});\r\n if (dropdown.filterInput && dropdown.filterInput.length > 0) {\r\n dropdown.filterInput[0].value = \"\";\r\n }\r\n }\r\n },\r\n nomEditCancel() {\r\n this.clearFilterAndText();\r\n this.showNomCreate = false;\r\n },\r\n nomEditSave() {\r\n this.clearFilterAndText();\r\n this.showNomCreate = false;\r\n this.loadItems();\r\n },\r\n cancelPrompt() {\r\n this.clearFilterAndText();\r\n this.showNomCreate = false;\r\n },\r\n selectContextMenu(e) {\r\n if (btnId === 'settings') {\r\n this.showSettings = true;\r\n }\r\n },\r\n },\r\n computed: {\r\n ...mapGetters(['isEnVersion', 'claims', 'nomDropdownSettings']),\r\n hasCreateRights() {\r\n return this.claims.nomenclature.create;\r\n },\r\n },\r\n watch: {\r\n value: function (newVal, oldVal) {\r\n this.model.fieldValue.textValue = newVal;\r\n },\r\n },\r\n mounted() {\r\n this.filterPattern = this.nomDropdownSettings.defaultFilterPattern;\r\n this.init();\r\n },\r\n};\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NomenclatureMultiSelect.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NomenclatureMultiSelect.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NomenclatureMultiSelect.vue?vue&type=template&id=0fe1ec32&\"\nimport script from \"./NomenclatureMultiSelect.vue?vue&type=script&lang=js&\"\nexport * from \"./NomenclatureMultiSelect.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<template>\r\n <div>\r\n <div class=\"loader\" v-if=\"loading\"></div>\r\n <div v-if=\"!loading\">\r\n <div v-if=\"!model.isMultiDropdown\">\r\n <div v-if=\"model.dropdownIsCity\">\r\n <city-dropdown-search v-model=\"selectedId\" :disabled=\"details || model.isReadOnly\"></city-dropdown-search>\r\n </div>\r\n <div v-else>\r\n <dropdown :type=\"nomenclatureName\"\r\n :isCity=\"model.dropdownIsCity\"\r\n :fieldName=\"isEnVersion ? model.labelEn : model.label\"\r\n :disabled=\"details || model.isReadOnly\"\r\n v-model=\"selectedId\"></dropdown>\r\n </div>\r\n </div>\r\n <div v-if=\"model.isMultiDropdown\">\r\n <multi-select v-model=\"multiSelectValue\"\r\n :type=\"nomenclatureName\"\r\n :model=\"model\"\r\n :details=\"details || model.isReadOnly\"\r\n :fieldName=\"isEnVersion ? model.labelEn : model.label\"></multi-select>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import Dropdown from '../dropdown/NomenclatureDropdown';\r\n import MultiSelect from './NomenclatureMultiSelect';\r\n import CityDropdownSearch from '../dropdown/CityDropdownSearch';\r\n import { mapGetters } from 'vuex';\r\n import { RegisterEventBus } from '@/buses/register-bus.js';\r\n\r\n export default {\r\n inject: ['$validator'],\r\n props: {\r\n value: [String, Number],\r\n model: Object,\r\n isNew: {\r\n type: Boolean,\r\n default: false\r\n },\r\n dropdownId: Number,\r\n details: {\r\n type: Boolean,\r\n default: false\r\n }\r\n },\r\n components: {\r\n Dropdown,\r\n MultiSelect,\r\n CityDropdownSearch\r\n },\r\n data() {\r\n return {\r\n nomenclatureName: '',\r\n selectedId: '',\r\n loading: true,\r\n multiSelectValue: ''\r\n }\r\n },\r\n methods: {\r\n init() {\r\n this.$http.get(`/api/Dropdown/GetNomenclatureName?nomenclatureId=${this.model.dropdownId ? this.model.dropdownId : 0}`).then(result => {\r\n this.nomenclatureName = result.data;\r\n this.model.fieldValue.stringValue = this.nomenclatureName;\r\n\r\n if (!this.selectedId && this.model.textDefaultValue /* .intDefaultValue) */ && this.isNew) {\r\n this.selectedId = this.model.textDefaultValue; // this.model.intDefaultValue;\r\n }\r\n\r\n this.loading = false;\r\n }).catch(error => {\r\n this.$vs.notify({\r\n title: this.$t('notifications.error'),\r\n text: this.$t('notifications.errorLoadingData'),\r\n color: 'danger'\r\n });\r\n this.loading = false;\r\n });\r\n },\r\n populateStringValueById(id) {\r\n // eslint-disable-next-line eqeqeq\r\n const val = this.items.filter(item => item.id == id);\r\n if (val && val.length > 0) {\r\n this.model.fieldValue.stringValue = val[0].text;\r\n }\r\n }\r\n },\r\n watch: {\r\n selectedId(newVal, oldVal) {\r\n this.$emit('input', newVal);\r\n RegisterEventBus.$emit('dynamic-field-change', newVal, oldVal, this.model);\r\n this.model.fieldValue.intValue = newVal;\r\n this.model.defaultTextValue = '';\r\n },\r\n value: {\r\n immediate: true,\r\n handler(newVal, oldVal) {\r\n if (this.model.isMultiDropdown) {\r\n this.multiSelectValue = newVal;\r\n this.model.fieldValue.textValue = newVal;\r\n } else {\r\n this.selectedId = newVal;\r\n }\r\n }\r\n },\r\n multiSelectValue(newVal, oldVal) {\r\n this.model.fieldValue.textValue = newVal;\r\n this.model.defaultTextValue = '';\r\n }\r\n },\r\n computed: {\r\n ...mapGetters(['isEnVersion']),\r\n },\r\n mounted() {\r\n this.init();\r\n this.model.fieldValue.textValue = this.value;\r\n }\r\n }\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NomenclatureDropdown.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NomenclatureDropdown.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NomenclatureDropdown.vue?vue&type=template&id=dca2e6c6&\"\nimport script from \"./NomenclatureDropdown.vue?vue&type=script&lang=js&\"\nexport * from \"./NomenclatureDropdown.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!_vm.model.isMultiDropdown)?_c('div',[(!_vm.loading)?_c('kendo-dropdownlist',{staticStyle:{\"width\":\"100%\"},attrs:{\"data-source\":_vm.items,\"data-text-field\":'text',\"data-value-field\":'id',\"optionLabel\":_vm.$t('choose'),\"filter\":_vm.filterPattern,\"disabled\":_vm.details || _vm.model.isReadOnly,\"height\":_vm.height,\"footer-template\":_vm.nomDropdownSettings.showFooterTemplate ? _vm.footerTemplate : ''},model:{value:(_vm.selectedId),callback:function ($$v) {_vm.selectedId=$$v},expression:\"selectedId\"}}):_vm._e(),(_vm.loaded)?_c('DropdownSettings',{attrs:{\"filterPattern\":_vm.filterPattern,\"show\":_vm.showSettings},on:{\"update:filterPattern\":function($event){_vm.filterPattern=$event},\"update:filter-pattern\":function($event){_vm.filterPattern=$event},\"update:show\":function($event){_vm.showSettings=$event}}}):_vm._e()],1):_vm._e(),(_vm.model.isMultiDropdown)?_c('div',[_c('static-register-multi-select',{attrs:{\"details\":_vm.details,\"model\":_vm.model,\"field-name\":_vm.isEnVersion ? _vm.model.labelEn : _vm.model.label,\"height\":_vm.height},model:{value:(_vm.model.fieldValue.textValue),callback:function ($$v) {_vm.$set(_vm.model.fieldValue, \"textValue\", $$v)},expression:\"model.fieldValue.textValue\"}})],1):_vm._e(),(_vm.errors.has('dropdown' + _vm._uid))?_c('span',{staticClass:\"text-danger col-12\"},[_vm._v(_vm._s(_vm.errors.first('dropdown' + _vm._uid)))]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.loaded)?_c('kendo-multiselect',{directives:[{name:\"validate\",rawName:\"v-validate\",value:(_vm.model.isRequired ? 'required' : ''),expression:\"model.isRequired ? 'required' : ''\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data-source\":_vm.items,\"data-text-field\":'text',\"disabled\":_vm.details || _vm.model.isReadOnly,\"data-value-field\":'id',\"data-placeholder\":_vm.$t('choose'),\"name\":'dropdown' + _vm._uid,\"filter\":_vm.filterPattern,\"data-vv-as\":_vm.fieldName,\"height\":_vm.height,\"footer-template\":_vm.nomDropdownSettings.showFooterTemplate ? _vm.footerTemplate : ''},on:{\"change\":_vm.inputChanged},model:{value:(_vm.selectedValues),callback:function ($$v) {_vm.selectedValues=$$v},expression:\"selectedValues\"}}):_vm._e(),(_vm.errors.has('dropdown' + _vm._uid))?_c('span',{staticClass:\"text-danger col-12\"},[_vm._v(_vm._s(_vm.errors.first('dropdown' + _vm._uid)))]):_vm._e(),(_vm.loaded)?_c('DropdownSettings',{attrs:{\"filterPattern\":_vm.filterPattern,\"show\":_vm.showSettings},on:{\"update:filterPattern\":function($event){_vm.filterPattern=$event},\"update:filter-pattern\":function($event){_vm.filterPattern=$event},\"update:show\":function($event){_vm.showSettings=$event}}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <kendo-multiselect\r\n v-if=\"loaded\"\r\n v-model=\"selectedValues\"\r\n :data-source=\"items\"\r\n :data-text-field=\"'text'\"\r\n :disabled=\"details || model.isReadOnly\"\r\n :data-value-field=\"'id'\"\r\n :data-placeholder=\"$t('choose')\"\r\n @change=\"inputChanged\"\r\n :name=\"'dropdown' + _uid\"\r\n :filter=\"filterPattern\"\r\n :data-vv-as=\"fieldName\"\r\n v-validate=\"model.isRequired ? 'required' : ''\"\r\n :height=\"height\"\r\n style=\"width: 100%;\"\r\n :footer-template=\"nomDropdownSettings.showFooterTemplate ? footerTemplate : ''\"\r\n ></kendo-multiselect>\r\n <span\r\n class=\"text-danger col-12\"\r\n v-if=\"errors.has('dropdown' + _uid)\"\r\n >{{ errors.first('dropdown' + _uid) }}</span>\r\n\r\n <DropdownSettings\r\n v-if=\"loaded\"\r\n :filterPattern.sync=\"filterPattern\"\r\n :show.sync=\"showSettings\"\r\n ></DropdownSettings>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport Vue from \"vue\";\r\nimport FooterTemplate from \"../../components/grid/NomenclatureDropdownFooterTemplate\";\r\nimport DropdownSettings from \"../../components/common/DropdownSettings\";\r\nimport { EditorComponentModel } from \"../../models/models\";\r\nimport { mapGetters } from \"vuex\";\r\n\r\nexport default {\r\n inject: [\"$validator\"],\r\n props: {\r\n value: [String, Number],\r\n fieldName: String,\r\n model: EditorComponentModel,\r\n details: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n height: {\r\n type: Number,\r\n default: 400, // 200 - Default value for Kendo DropdownList\r\n },\r\n },\r\n components: {\r\n DropdownSettings,\r\n },\r\n data() {\r\n return {\r\n loaded: false,\r\n items: [],\r\n selectedValues: [],\r\n showSettings: false,\r\n filterPattern: \"\",\r\n };\r\n },\r\n methods: {\r\n init() {\r\n const url = `/api/Dropdown/GetStaticRegisterItems?registerId=${this.model.dropdownId}&selected=${this.value}\r\n &updateTime=${this.model.fieldValue.updateTime ? new Date(this.model.fieldValue.updateTime).toISOString() : new Date().toISOString()}`;\r\n this.$http\r\n .get(url)\r\n .then((result) => {\r\n this.items = result.data;\r\n this.selectedValues = this.model.fieldValue.textValue.split(\r\n \"|\"\r\n );\r\n this.populateStringValueById(this.selectedValues);\r\n this.loaded = true;\r\n })\r\n .catch((error) => {\r\n this.$vs.notify({\r\n title: this.$t(\r\n \"request.response.status.\" +\r\n this.$helpers.errorStatusCode(error)\r\n ),\r\n text: this.$helpers.errorText(error),\r\n color: \"warning\",\r\n time: this.$store.getters.notificationDuration,\r\n });\r\n });\r\n },\r\n inputChanged(event) {\r\n let valueToEmit = event.sender.value().join(\"|\");\r\n this.$emit(\"input\", valueToEmit);\r\n this.populateStringValueById(event.sender.value());\r\n },\r\n populateStringValueById(ids) {\r\n if (Array.isArray(ids) === false) {\r\n return;\r\n }\r\n\r\n let stringValues = [];\r\n let vm = this;\r\n ids.forEach((id) => {\r\n // eslint-disable-next-line eqeqeq\r\n const val = vm.items.filter((item) => item.id == id);\r\n if (val && val.length > 0) {\r\n stringValues.push(val[0].text);\r\n }\r\n });\r\n if (stringValues.length > 0) {\r\n this.model.fieldValue.stringValue = stringValues.join(\",\");\r\n }\r\n },\r\n footerTemplate: function (e) {\r\n return {\r\n template: Vue.component(FooterTemplate.name, FooterTemplate),\r\n templateArgs: {\r\n ...e,\r\n btns: [\r\n {\r\n name: \"staticRegisterMultiSelectSettings\",\r\n text: this.$t(\"buttons.settings.btnText\"),\r\n tooltip: this.$t(\"buttons.settings.btnText\"),\r\n class: \"btn btn-secondary\",\r\n icon: \"fas fa-cog\",\r\n show: this.nomDropdownSettings.showSettings,\r\n clickHandler: () => {\r\n this.showSettings = true;\r\n },\r\n },\r\n ],\r\n },\r\n };\r\n },\r\n },\r\n computed: {\r\n ...mapGetters(['nomDropdownSettings']),\r\n },\r\n mounted() {\r\n this.filterPattern = this.nomDropdownSettings.defaultFilterPattern;\r\n this.init();\r\n },\r\n};\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StaticRegisterMultiSelect.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StaticRegisterMultiSelect.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./StaticRegisterMultiSelect.vue?vue&type=template&id=2234257f&\"\nimport script from \"./StaticRegisterMultiSelect.vue?vue&type=script&lang=js&\"\nexport * from \"./StaticRegisterMultiSelect.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<template>\r\n <div>\r\n <div v-if=\"!model.isMultiDropdown\">\r\n <kendo-dropdownlist\r\n v-if=\"!loading\"\r\n v-model=\"selectedId\"\r\n :data-source=\"items\"\r\n :data-text-field=\"'text'\"\r\n :data-value-field=\"'id'\"\r\n :optionLabel=\"$t('choose')\"\r\n :filter=\"filterPattern\"\r\n :disabled=\"details || model.isReadOnly\"\r\n :height=\"height\"\r\n :footer-template=\"nomDropdownSettings.showFooterTemplate ? footerTemplate : ''\"\r\n style=\"width: 100%;\"\r\n ></kendo-dropdownlist>\r\n\r\n <DropdownSettings\r\n v-if=\"loaded\"\r\n :filterPattern.sync=\"filterPattern\"\r\n :show.sync=\"showSettings\"\r\n ></DropdownSettings>\r\n </div>\r\n <div v-if=\"model.isMultiDropdown\">\r\n <static-register-multi-select\r\n v-model=\"model.fieldValue.textValue\"\r\n :details=\"details\"\r\n :model=\"model\"\r\n :field-name=\"isEnVersion ? model.labelEn : model.label\"\r\n :height=\"height\"\r\n ></static-register-multi-select>\r\n </div>\r\n <span\r\n class=\"text-danger col-12\"\r\n v-if=\"errors.has('dropdown' + _uid)\"\r\n >{{ errors.first('dropdown' + _uid) }}</span>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport Vue from \"vue\";\r\nimport StaticRegisterMultiSelect from \"./StaticRegisterMultiSelect\";\r\nimport FooterTemplate from \"../../components/grid/NomenclatureDropdownFooterTemplate\";\r\nimport DropdownSettings from \"../../components/common/DropdownSettings\";\r\nimport { mapGetters } from \"vuex\";\r\nimport { RegisterEventBus } from '@/buses/register-bus.js';\r\n\r\nexport default {\r\n inject: [\"$validator\"],\r\n props: {\r\n value: [String, Number],\r\n model: Object,\r\n details: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n height: {\r\n type: Number,\r\n default: 400, // 200 - Default value for Kendo DropdownList\r\n }\r\n },\r\n components: {\r\n StaticRegisterMultiSelect,\r\n DropdownSettings,\r\n },\r\n data() {\r\n return {\r\n selectedId: this.value || \"\",\r\n items: [],\r\n loaded: false,\r\n loading: true,\r\n multiSelectValue: \"\",\r\n showSettings: false,\r\n filterPattern: \"\",\r\n };\r\n },\r\n methods: {\r\n loadDropdownData() {\r\n this.loading = true;\r\n this.$http\r\n .get(\r\n `/api/Dropdown/GetStaticRegisterItems?registerId=${this.model.dropdownId}&selected=${this.value}\r\n &updateTime=${this.model.fieldValue.updateTime ? new Date(this.model.fieldValue.updateTime).toISOString() : new Date().toISOString()}`\r\n )\r\n .then((result) => {\r\n this.items = result.data;\r\n this.populateStringValueById(this.selectedId);\r\n })\r\n .catch((error) => {\r\n this.$vs.notify({\r\n title: this.$t(\r\n \"request.response.status.\" +\r\n this.$helpers.errorStatusCode(error)\r\n ),\r\n text: this.$helpers.errorText(error),\r\n color: \"warning\",\r\n time: this.$store.getters.notificationDuration,\r\n });\r\n })\r\n .then(() => {\r\n this.loaded = true;\r\n this.loading = false;\r\n });\r\n },\r\n populateStringValueById(id) {\r\n // eslint-disable-next-line eqeqeq\r\n const val = this.items.filter((item) => item.id == id);\r\n if (val && val.length > 0) {\r\n this.model.fieldValue.stringValue = val[0].text;\r\n }\r\n },\r\n footerTemplate: function (e) {\r\n return {\r\n template: Vue.component(FooterTemplate.name, FooterTemplate),\r\n templateArgs: {\r\n ...e,\r\n btns: [\r\n {\r\n name: \"staticRegisterDropdownSettings\",\r\n text: this.$t(\"buttons.settings.btnText\"),\r\n tooltip: this.$t(\"buttons.settings.btnText\"),\r\n class: \"btn btn-secondary\",\r\n icon: \"fas fa-cog\",\r\n show: this.nomDropdownSettings.showSettings,\r\n clickHandler: () => {\r\n this.showSettings = true;\r\n },\r\n },\r\n ],\r\n },\r\n };\r\n },\r\n },\r\n watch: {\r\n selectedId: function (newVal, oldVal) {\r\n this.$emit(\"input\", newVal);\r\n RegisterEventBus.$emit('dynamic-field-change', newVal, oldVal, this.model);\r\n this.model.fieldValue.intValue = newVal;\r\n // this.populateStringValueById(newVal);\r\n },\r\n value: function (newVal, oldVal) {\r\n if (this.model.isMultiDropdown) {\r\n this.multiSelectValue = newVal;\r\n this.model.fieldValue.textValue = newVal;\r\n } else {\r\n this.selectedId = newVal;\r\n }\r\n },\r\n multiSelectValue(newVal, oldVal) {\r\n this.model.fieldValue.textValue = newVal;\r\n },\r\n },\r\n computed: {\r\n ...mapGetters(['isEnVersion', 'nomDropdownSettings']),\r\n },\r\n mounted() {\r\n if (!this.model.isMultiDropdown) {\r\n this.filterPattern = this.nomDropdownSettings.defaultFilterPattern;\r\n this.loadDropdownData();\r\n } else {\r\n this.loading = false;\r\n }\r\n },\r\n};\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StaticRegisterDropdown.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StaticRegisterDropdown.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./StaticRegisterDropdown.vue?vue&type=template&id=78f16df0&\"\nimport script from \"./StaticRegisterDropdown.vue?vue&type=script&lang=js&\"\nexport * from \"./StaticRegisterDropdown.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<template>\r\n <div class=\"form-group\" :class=\"model.size\">\r\n <label class=\"font-weight-bold\" :class=\"labelClasses\">\r\n {{ isEnVersion ? model.labelEn : model.label }}\r\n </label>\r\n <component :is=\"dropdownComponent\"\r\n :model=\"model\"\r\n :name=\"'dropdown' + _uid\"\r\n :data-vv-as=\"model.label\"\r\n v-validate=\"validations\"\r\n :filter=\"'contains'\"\r\n v-model=\"selectedValue\"\r\n :details=\"details\"\r\n :isNew=\"isNew\"\r\n :class=\"model.fieldCode\"\r\n aria-describedby=\"descriptionHelp\">\r\n </component>\r\n <small id=\"descriptionHelp\" class=\"form-text text-muted\">{{ isEnVersion ? model.descriptionEn : model.description }}</small>\r\n <span class=\"text-danger\" v-if=\"errors.has('dropdown' + _uid)\">{{ errors.first('dropdown' + _uid) }}</span>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import NomenclatureDropdown from '../dynamic/NomenclatureDropdown';\r\n import StaticRegisterDropdown from '../dynamic/StaticRegisterDropdown';\r\n import DynamicRegisterDropdown from '../dynamic/DynamicRegisterDropdown';\r\n import { DropdownType } from '../../models/enums';\r\n import { EditorComponentModel } from '../../models/models';\r\n import { mapGetters } from 'vuex';\r\n\r\n export default {\r\n inject: ['$validator'],\r\n props: {\r\n model: EditorComponentModel, // TODO:\r\n isNew: {\r\n type: Boolean,\r\n default: false\r\n },\r\n details: {\r\n type: Boolean,\r\n default: false\r\n },\r\n allowAnonymous: {\r\n type: Boolean,\r\n default: true\r\n },\r\n profileData: {\r\n type: Object,\r\n default() {\r\n return null;\r\n }\r\n },\r\n isEvaluationPanel: {\r\n type: Boolean,\r\n default: false\r\n }\r\n },\r\n components: {\r\n NomenclatureDropdown,\r\n StaticRegisterDropdown,\r\n DynamicRegisterDropdown\r\n },\r\n data() {\r\n return {\r\n dropdownComponent: '',\r\n labelClasses: '',\r\n validations: '',\r\n selectedValue: ''\r\n }\r\n },\r\n methods: {\r\n addProperDropdown() {\r\n switch (this.model.dropdownType) {\r\n case DropdownType.Nomenclature:\r\n this.dropdownComponent = NomenclatureDropdown;\r\n break;\r\n case DropdownType.Register:\r\n this.dropdownComponent = StaticRegisterDropdown;\r\n break;\r\n case DropdownType.DynamicRegister:\r\n this.dropdownComponent = DynamicRegisterDropdown;\r\n break\r\n }\r\n },\r\n addValidations() {\r\n if (this.model.isRequired && !(this.model.dropdownType === DropdownType.Register)) {\r\n this.labelClasses = 'required';\r\n this.addValidation('required');\r\n }\r\n },\r\n addValidation(validation) {\r\n if (this.validations.length > 0) {\r\n this.validations += '|';\r\n }\r\n this.validations += validation;\r\n },\r\n fillProfileData(data) {\r\n if (!data) {\r\n return;\r\n }\r\n\r\n this.$helpers.fillProfileDataToDynamicForm(this.model, data);\r\n }\r\n },\r\n computed: {\r\n ...mapGetters(['isEnVersion']),\r\n },\r\n watch: {\r\n 'model.fieldValue.textValue': function(newVal, oldVal) {\r\n this.selectedValue = newVal;\r\n/* if (this.model.isMultiDropdown) {\r\n this.model.fieldValue.textValue = newVal;\r\n } else {\r\n this.model.fieldValue.intValue = newVal;\r\n } */\r\n },\r\n 'model.fieldValue.intValue': function(newVal, oldVal) {\r\n this.selectedValue = newVal;\r\n if (this.model.isMultiDropdown) {\r\n this.model.fieldValue.textValue = newVal;\r\n }\r\n /* else {\r\n this.model.fieldValue.intValue = newVal;\r\n } */\r\n },\r\n profileData: {\r\n handler: function (newVal, oldVal) {\r\n this.fillProfileData(newVal);\r\n },\r\n deep: true,\r\n immediate: true,\r\n },\r\n },\r\n mounted() {\r\n if (this.model.fieldCode === 'Event_Main_Activity') {\r\n // console.log(this.model);\r\n }\r\n this.selectedValue = this.model.isMultiDropdown ? this.model.fieldValue.textValue : this.model.fieldValue.intValue;\r\n this.addProperDropdown();\r\n this.addValidations();\r\n this.model.uid = this._uid;\r\n this.model.isEvaluationPanel = this.isEvaluationPanel;\r\n }\r\n }\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dropdown.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dropdown.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Dropdown.vue?vue&type=template&id=d47dc520&\"\nimport script from \"./Dropdown.vue?vue&type=script&lang=js&\"\nexport * from \"./Dropdown.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"col-12\"},[_vm._l((_vm.filesForDownload),function(file,$index){return _c('div',{key:$index},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-11\"},[(file.id)?_c('file-download',{attrs:{\"file\":file,\"type\":file.docTypeCode}}):_vm._e()],1),(!_vm.details)?_c('div',{staticClass:\"col-1\"},[_c('i',{staticClass:\"fas fa-trash text-danger pointer\",on:{\"click\":function($event){return _vm.deleteSavedFile(file.id, $index)}}})]):_vm._e()])])}),(!_vm.details)?_c('div',[_c('vs-upload',{ref:\"dynamicFileUploadRef\",attrs:{\"multiple\":\"\",\"text\":_vm.$t('addFile'),\"showUploadButton\":false,\"aria-describedby\":\"descriptionHelp\"},on:{\"change\":_vm.fileChanged,\"on-delete\":_vm.fileRemoved}})],1):_vm._e(),_c('transition-group',{staticClass:\"col-12\",attrs:{\"name\":\"fileDescriptionAnimation\",\"enter-active-class\":\"animated zoomInDown\",\"leave-active-class\":\"animated zoomOutUp\"}},_vm._l((_vm.model.fieldValue.files),function(file){return _c('div',{key:file.fileName,staticClass:\"col-12 mt-2 border border-secondary rounded fileDescription\"},[_c('label',[_vm._v(_vm._s(file.fileName))]),_c('div',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(file.fileDescription),expression:\"file.fileDescription\"}],staticClass:\"form-control\",attrs:{\"placeholder\":_vm.$t('description')},domProps:{\"value\":(file.fileDescription)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(file, \"fileDescription\", $event.target.value)}}})])])}),0),_c('small',{staticClass:\"form-text text-muted\",attrs:{\"id\":\"descriptionHelp\"}},[_vm._v(_vm._s(_vm.isEnVersion ? _vm.model.descriptionEn :\n _vm.model.description))])],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"col-12\">\r\n <div class=\"\" v-for=\"(file, $index) in filesForDownload\" :key=\"$index\">\r\n <div class=\"row\">\r\n <div class=\"col-11\">\r\n <file-download v-if=\"file.id\"\r\n :file=\"file\"\r\n :type=\"file.docTypeCode\">\r\n </file-download>\r\n </div>\r\n <div class=\"col-1\" v-if=\"!details\">\r\n <i class=\"fas fa-trash text-danger pointer\" @click=\"deleteSavedFile(file.id, $index)\"></i>\r\n </div>\r\n </div>\r\n </div>\r\n <div v-if=\"!details\">\r\n <vs-upload ref=\"dynamicFileUploadRef\"\r\n multiple\r\n :text=\"$t('addFile')\"\r\n\r\n :showUploadButton=\"false\"\r\n @change=\"fileChanged\"\r\n @on-delete=\"fileRemoved\"\r\n aria-describedby=\"descriptionHelp\">\r\n </vs-upload>\r\n </div>\r\n <transition-group name=\"fileDescriptionAnimation\" enter-active-class=\"animated zoomInDown\"\r\n leave-active-class=\"animated zoomOutUp\" class=\"col-12\">\r\n <div class=\"col-12 mt-2 border border-secondary rounded fileDescription\"\r\n v-for=\"file in model.fieldValue.files\"\r\n :key=\"file.fileName\">\r\n <label>{{ file.fileName }}</label>\r\n <div><input class=\"form-control\" :placeholder=\"$t('description')\" v-model=\"file.fileDescription\"/></div>\r\n </div>\r\n </transition-group>\r\n <small id=\"descriptionHelp\" class=\"form-text text-muted\">{{ isEnVersion ? model.descriptionEn :\r\n model.description }}</small>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import { EditorComponentModel, File as FileModel, FileDetails } from '../../models/models';\r\n import FileDownload from '../common/FileDownload';\r\n import { mapGetters } from 'vuex';\r\n\r\n export default {\r\n props: {\r\n value: String,\r\n model: {\r\n type: EditorComponentModel\r\n },\r\n files: Array,\r\n details: {\r\n type: Boolean,\r\n default: false\r\n },\r\n allowAnonymous: {\r\n type: Boolean,\r\n default: true\r\n },\r\n isEvaluationPanel: {\r\n type: Boolean,\r\n default: false\r\n }\r\n },\r\n components: {\r\n FileDownload\r\n },\r\n data() {\r\n return {\r\n filesForDownload: [],\r\n activePrompt: false,\r\n originalModel: new EditorComponentModel(),\r\n }\r\n },\r\n methods: {\r\n fileChanged(filePath) {\r\n for (let i = 0; i < this.$refs.dynamicFileUploadRef.$refs.fileInput.files.length; i++) {\r\n let file = this.$refs.dynamicFileUploadRef.$refs.fileInput.files[i];\r\n if (file.added) {\r\n continue;\r\n }\r\n file.added = true;\r\n\r\n this.model.fieldValue.files.push(new FileModel({\r\n fileName: file.name,\r\n content: file,\r\n uid: this._uid,\r\n fileDescription: '',\r\n registerEntityFieldValueId: this.model.fieldValue.id\r\n }));\r\n }\r\n\r\n this.model.fieldValue.textValue = this.getSeparatedFileNames();\r\n },\r\n fileRemoved(fileToRemove) {\r\n const indexToDelete = this.files.findIndex(x => x.name === fileToRemove.name);\r\n this.model.fieldValue.files.splice(indexToDelete, 1);\r\n this.model.fieldValue.textValue = this.getSeparatedFileNames();\r\n },\r\n getSeparatedFileNames() {\r\n let fileNames = [];\r\n this.model.fieldValue.files.forEach(file => {\r\n fileNames.push(file.fileName);\r\n });\r\n\r\n return fileNames.join('|');\r\n },\r\n deleteSavedFile(fileId, fileIndex) {\r\n this.$emit('deleteSavedFile', fileId);\r\n this.filesForDownload.splice(fileIndex, 1);\r\n },\r\n async checkForSavedFiles() {\r\n try {\r\n if (this.model.fieldValue.id && this.model.fieldValue.id > 0) {\r\n const result = await this.$http.get(`/api/DynamicRegisters/GetFilesDetailsForDownload/${this.model.fieldValue.id}`);\r\n if (result) {\r\n result.data.forEach(detailsInfo => {\r\n this.filesForDownload.push(new FileDetails(detailsInfo));\r\n });\r\n }\r\n }\r\n } catch (error) {\r\n console.error(error);\r\n }\r\n }\r\n },\r\n mounted() {\r\n this.model.fieldValue.uid = this._uid;\r\n this.checkForSavedFiles();\r\n this.model.uid = this._uid;\r\n this.model.isEvaluationPanel = this.isEvaluationPanel;\r\n },\r\n computed: {\r\n ...mapGetters(['isEnVersion']),\r\n }\r\n }\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FileUpload.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FileUpload.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FileUpload.vue?vue&type=template&id=eda9d800&\"\nimport script from \"./FileUpload.vue?vue&type=script&lang=js&\"\nexport * from \"./FileUpload.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"px-3\"},[_c('div',{attrs:{\"aria-describedby\":\"descriptionHelp\"}},[_c('person-component',{class:_vm.model.fieldCode,attrs:{\"person\":_vm.person,\"allowAnonymous\":_vm.allowAnonymous,\"requiredIdentification\":_vm.requiredIdentification,\"validateUniqueIdNumber\":_vm.validateUniqueIdNumber,\"validateEgn\":_vm.validateEgn,\"isProfileDetails\":_vm.details,\"profile-data\":_vm.profileData}})],1),_c('small',{staticClass:\"form-text text-muted\",attrs:{\"id\":\"descriptionHelp\"}},[_vm._v(_vm._s(_vm.isEnVersion ? _vm.model.descriptionEn : _vm.model.description))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"px-3\">\r\n <div aria-describedby=\"descriptionHelp\">\r\n <person-component :person=\"person\"\r\n :class=\"model.fieldCode\"\r\n :allowAnonymous=\"allowAnonymous\"\r\n :requiredIdentification=\"requiredIdentification\"\r\n :validateUniqueIdNumber=\"validateUniqueIdNumber\"\r\n :validateEgn=\"validateEgn\"\r\n :isProfileDetails=\"details\"\r\n :profile-data=\"profileData\" />\r\n </div>\r\n <small id=\"descriptionHelp\" class=\"form-text text-muted\">{{ isEnVersion ? model.descriptionEn : model.description }}</small>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import PersonComponent from '../person/Person';\r\n import {\r\n DynamicRegisterPersonModel,\r\n EditorComponentModel,\r\n Person\r\n } from '../../models/models';\r\n import { mapGetters } from 'vuex';\r\n\r\n export default\r\n {\r\n inject: ['$validator'],\r\n props: {\r\n model: {\r\n type: EditorComponentModel\r\n },\r\n details: {\r\n type: Boolean,\r\n default: false\r\n },\r\n allowAnonymous: {\r\n type: Boolean,\r\n default: true\r\n },\r\n requiredIdentification: {\r\n default: true,\r\n type: Boolean\r\n },\r\n validateUniqueIdNumber: {\r\n type: Boolean,\r\n default: true\r\n },\r\n validateEgn: {\r\n type: Boolean,\r\n default: false\r\n },\r\n profileData: {\r\n type: Object,\r\n default() {\r\n return null;\r\n }\r\n },\r\n isEvaluationPanel: {\r\n type: Boolean,\r\n default: false\r\n }\r\n },\r\n components: {\r\n PersonComponent\r\n },\r\n data() {\r\n return {\r\n person: new Person()\r\n };\r\n },\r\n mounted() {\r\n let hasSavedPerson = false;\r\n try {\r\n console.log(this.$parent.$parent.$parent.$parent)\r\n this.$parent.$parent.$parent.$parent.people.forEach(p => {\r\n if (p.fieldId === this.model.id) {\r\n this.person = p.person;\r\n hasSavedPerson = true;\r\n }\r\n });\r\n\r\n if (!hasSavedPerson) {\r\n this.$parent.$parent.$parent.$parent.people.push(\r\n new DynamicRegisterPersonModel({\r\n fieldId: this.model.id,\r\n person: this.person\r\n })\r\n );\r\n }\r\n } catch (error) {\r\n console.error(\r\n '\"this.$parent.$parent.people\" не работи в components/dynamic/Person.vue'\r\n );\r\n }\r\n\r\n this.model.uid = this._uid;\r\n this.model.isEvaluationPanel = this.isEvaluationPanel;\r\n },\r\n computed: {\r\n ...mapGetters(['isEnVersion']),\r\n }\r\n };\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Person.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Person.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Person.vue?vue&type=template&id=7bdb8640&\"\nimport script from \"./Person.vue?vue&type=script&lang=js&\"\nexport * from \"./Person.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"px-3\"},[_c('div',{attrs:{\"aria-describedby\":\"descriptionHelp\"}},[_c('address-component',{class:_vm.model.fieldCode,attrs:{\"address\":_vm.address,\"isAddressDetails\":_vm.details,\"profile-data\":_vm.profileData}})],1),_c('small',{staticClass:\"form-text text-muted\",attrs:{\"id\":\"descriptionHelp\"}},[_vm._v(_vm._s(_vm.isEnVersion ? _vm.model.descriptionEn : _vm.model.description))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"px-3\">\r\n <div aria-describedby=\"descriptionHelp\">\r\n <address-component\r\n :address=\"address\"\r\n :isAddressDetails=\"details\"\r\n :class=\"model.fieldCode\"\r\n :profile-data=\"profileData\"/>\r\n </div>\r\n <small id=\"descriptionHelp\" class=\"form-text text-muted\">{{ isEnVersion ? model.descriptionEn : model.description }}</small>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import AddressComponent from '../address/Address';\r\n import { Address, DynamicRegisterAddressModel, EditorComponentModel } from '../../models/models';\r\n import { mapGetters } from 'vuex';\r\n\r\n export default {\r\n props: {\r\n model: {\r\n type: EditorComponentModel\r\n },\r\n details: {\r\n type: Boolean,\r\n default: false\r\n },\r\n allowAnonymous: {\r\n type: Boolean,\r\n default: true\r\n },\r\n profileData: {\r\n type: Object,\r\n default() {\r\n return null;\r\n }\r\n },\r\n isEvaluationPanel: {\r\n type: Boolean,\r\n default: false\r\n }\r\n },\r\n components: {\r\n AddressComponent,\r\n },\r\n data() {\r\n return {\r\n address: new Address()\r\n }\r\n },\r\n mounted () {\r\n this.$parent.$parent.addresses.push(new DynamicRegisterAddressModel({\r\n fieldId: this.model.id,\r\n address: this.address\r\n }));\r\n\r\n this.model.uid = this._uid;\r\n this.model.isEvaluationPanel = this.isEvaluationPanel;\r\n },\r\n computed: {\r\n ...mapGetters(['isEnVersion']),\r\n }\r\n }\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Address.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Address.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Address.vue?vue&type=template&id=286da6b5&\"\nimport script from \"./Address.vue?vue&type=script&lang=js&\"\nexport * from \"./Address.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"form-group\",class:_vm.model.size},[_c('label',{staticClass:\"font-weight-bold\",class:_vm.labelClasses,attrs:{\"for\":'starRating' + _vm._uid}},[_vm._v(\"\\n \"+_vm._s(_vm.isEnVersion ? _vm.model.labelEn : _vm.model.label)+\"\\n \")]),_c('div',{attrs:{\"aria-describedby\":\"descriptionHelp\"}},[_c('star-rating',{directives:[{name:\"validate\",rawName:\"v-validate\",value:(_vm.validations),expression:\"validations\"}],class:_vm.model.fieldCode,attrs:{\"id\":'starRating' + _vm._uid,\"name\":'starRating' + _vm._uid,\"star-size\":30,\"max-rating\":_vm.model.intMaxValue,\"show-rating\":true,\"increment\":1,\"round-start-rating\":false,\"data-vv-as\":_vm.model.label,\"read-only\":_vm.model.isReadOnly || _vm.details,\"clearable\":true,\"inline\":\"\"},on:{\"rating-selected\":_vm.ratingSelected},model:{value:(_vm.model.fieldValue.intValue),callback:function ($$v) {_vm.$set(_vm.model.fieldValue, \"intValue\", $$v)},expression:\"model.fieldValue.intValue\"}}),(_vm.model.fieldValue.intValue && !_vm.model.isReadOnly && !_vm.details)?_c('button',{staticClass:\"btn btn-link btn-xm my-0 mt-1\",on:{\"click\":function($event){$event.stopPropagation();_vm.model.fieldValue.intValue = null}}},[_c('i',{staticClass:\"fas fa-times text-danger\"})]):_vm._e()],1),_c('small',{staticClass:\"form-text text-muted\",attrs:{\"id\":\"descriptionHelp\"}},[_vm._v(_vm._s(_vm.isEnVersion ? _vm.model.descriptionEn : _vm.model.description))]),(_vm.errors.has('starRating' + _vm._uid))?_c('div',{staticClass:\"text-danger\"},[_vm._v(_vm._s(_vm.errors.first('starRating' + _vm._uid)))]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"form-group\" :class=\"model.size\">\r\n <label class=\"font-weight-bold\" :class=\"labelClasses\" :for=\"'starRating' + _uid\">\r\n {{ isEnVersion ? model.labelEn : model.label }}\r\n </label>\r\n <div aria-describedby=\"descriptionHelp\">\r\n <star-rating v-model=\"model.fieldValue.intValue\"\r\n :id=\"'starRating' + _uid\"\r\n :name=\"'starRating' + _uid\"\r\n :class=\"model.fieldCode\"\r\n :star-size=\"30\"\r\n :max-rating=\"model.intMaxValue\"\r\n :show-rating=\"true\"\r\n :increment=\"1\"\r\n :round-start-rating=\"false\"\r\n :data-vv-as=\"model.label\"\r\n v-validate=\"validations\"\r\n :read-only=\"model.isReadOnly || details\"\r\n :clearable=\"true\"\r\n inline\r\n @rating-selected=\"ratingSelected\">\r\n </star-rating>\r\n <button class=\"btn btn-link btn-xm my-0 mt-1\" v-if=\"model.fieldValue.intValue && !model.isReadOnly && !details\"\r\n @click.stop=\"model.fieldValue.intValue = null\">\r\n <i class=\"fas fa-times text-danger\"></i>\r\n </button>\r\n </div>\r\n <small id=\"descriptionHelp\" class=\"form-text text-muted\">{{ isEnVersion ? model.descriptionEn : model.description }}</small>\r\n <div class=\"text-danger\" v-if=\"errors.has('starRating' + _uid)\">{{ errors.first('starRating' + _uid) }}</div>\r\n\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import { EditorComponentModel } from '../../models/models';\r\n import StarRating from 'vue-star-rating';\r\n import { mapGetters } from 'vuex';\r\n import { RegisterEventBus } from '@/buses/register-bus.js';\r\n\r\n export default {\r\n inject: ['$validator'],\r\n props: {\r\n model: {\r\n type: EditorComponentModel\r\n },\r\n value: [String, Number],\r\n details: {\r\n type: Boolean,\r\n default: false\r\n },\r\n allowAnonymous: {\r\n type: Boolean,\r\n default: true\r\n },\r\n isEvaluationPanel: {\r\n type: Boolean,\r\n default: false\r\n }\r\n },\r\n components: {\r\n StarRating\r\n },\r\n data() {\r\n return {\r\n validations: '',\r\n labelClasses: '',\r\n }\r\n },\r\n methods: {\r\n addValidations() {\r\n if (this.model.isRequired) {\r\n this.addValidation('required');\r\n this.labelClasses += 'required';\r\n }\r\n\r\n this.addNumberValidations();\r\n },\r\n addValidation(validation) {\r\n if (this.validations.length > 0) {\r\n this.validations += '|';\r\n }\r\n this.validations += validation;\r\n },\r\n addNumberValidations() {\r\n this.addIntValidations();\r\n },\r\n addIntValidations() {\r\n // https://mantis.kontrax.bg/view.php?id=12565\r\n // При незадължителни полета не Ñ‚Ñ€Ñбва да Ñе прави Ð²Ð°Ð»Ð¸Ð´Ð°Ñ†Ð¸Ñ Ð½Ð° мин. / макÑ. ÑтойноÑÑ‚;\r\n if (this.model.isRequired) {\r\n if (this.model.intMinValue && !isNaN(parseInt(this.model.intMinValue))) {\r\n this.addValidation(`min_value:${this.model.intMinValue}`);\r\n }\r\n if (this.model.intMaxValue && !isNaN(parseInt(this.model.intMaxValue))) {\r\n this.addValidation(`max_value:${this.model.intMaxValue}`);\r\n }\r\n }\r\n },\r\n setInitialValue() {\r\n // 0012565: Полета тип „оценка“ и незадължителни полета\r\n // При попълване на полета тип „оценка“ не Ñ‚Ñ€Ñбва да Ñе взима дефолтната ÑтойноÑÑ‚ на „int“;\r\n if (this.model.fieldValue.intValue === '') {\r\n this.model.fieldValue.intValue = null;\r\n }\r\n },\r\n ratingSelected(value) {\r\n RegisterEventBus.$emit('dynamic-field-change', value, value, this.model);\r\n if (this.model.fieldValue.intValue < this.model.intMinValue) {\r\n this.model.fieldValue.intValue = this.model.intMinValue;\r\n }\r\n }\r\n },\r\n created() {\r\n this.setInitialValue();\r\n },\r\n mounted() {\r\n this.addValidations();\r\n this.model.uid = this._uid;\r\n this.model.isEvaluationPanel = this.isEvaluationPanel;\r\n },\r\n computed: {\r\n ...mapGetters(['isEnVersion'])\r\n }\r\n }\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StarRating.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StarRating.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./StarRating.vue?vue&type=template&id=3f9af558&\"\nimport script from \"./StarRating.vue?vue&type=script&lang=js&\"\nexport * from \"./StarRating.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<template>\r\n <div class=\"card mt-3\">\r\n <div class=\"card-header bg-primary text-white\">\r\n <div class=\"card-title h5 m-0\">\r\n {{ isEnVersion ? panel.labelEn : panel.label }}\r\n </div>\r\n </div>\r\n <div class=\"card-body row\">\r\n <component v-for=\"(component, index) in panel.components\"\r\n :key=\"index\"\r\n :is=\"component.fieldType\"\r\n :type=\"component.type\"\r\n :model=\"component\"\r\n :details=\"details\"\r\n :allowAnonymous=\"allowAnonymous\"\r\n :requiredIdentification=\"false\"\r\n :validateUniqueIdNumber=\"false\"\r\n :validateEgn=\"true\"\r\n :isNew=\"isNew\"\r\n :profile-data=\"profileData\"\r\n :is-evaluation-panel=\"panel.isEvaluationPanel\"\r\n @deleteSavedFile=\"deleteSavedFile\">\r\n </component>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import Input from '../dynamic/Input';\r\n import Toggle from '../dynamic/Toggle';\r\n import Datepicker from '../dynamic/Datepicker';\r\n import Dropdown from '../dynamic/Dropdown';\r\n import FileUpload from './FileUpload';\r\n import Person from './Person';\r\n import Address from './Address';\r\n import StarRating from './StarRating';\r\n import { DynamicRegisterFieldValueModel } from '@/models/models';\r\n import { mapGetters } from 'vuex';\r\n\r\n export default {\r\n inject: ['$validator'],\r\n props: {\r\n panel: Object, // EditorPanel, // TODO:\r\n value: [], // TODO:\r\n isNew: {\r\n type: Boolean,\r\n default: false\r\n },\r\n details: {\r\n type: Boolean,\r\n default: false\r\n },\r\n allowAnonymous: {\r\n type: Boolean,\r\n default: true\r\n },\r\n profileData: {\r\n type: Object,\r\n default() {\r\n return null;\r\n }\r\n }\r\n },\r\n data() {\r\n return {\r\n fieldValue: new DynamicRegisterFieldValueModel()\r\n }\r\n },\r\n components: {\r\n Input,\r\n Toggle,\r\n Datepicker,\r\n Dropdown,\r\n FileUpload,\r\n Person,\r\n Address,\r\n StarRating\r\n },\r\n computed: {\r\n ...mapGetters(['isEnVersion']),\r\n },\r\n methods: {\r\n deleteSavedFile(fileId) {\r\n this.$emit('deleteSavedFile', fileId);\r\n }\r\n },\r\n mounted () {\r\n this.panel.uid = this._uid;\r\n }\r\n }\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Panel.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Panel.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Panel.vue?vue&type=template&id=70aa4814&\"\nimport script from \"./Panel.vue?vue&type=script&lang=js&\"\nexport * from \"./Panel.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.claims.auxiliaryRegister.read)?_c('div',{staticClass:\"auxiliaryRegisterContainer\"},[(_vm.loading)?_c('div',{staticClass:\"loader mt-5\"}):_vm._e(),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.loading && _vm.register),expression:\"!loading && register\"}]},[(_vm.register)?_c('div',_vm._l((_vm.register.panels),function(panel,index){return _c('panel',{key:'register' + index,attrs:{\"panel\":panel}})}),1):_vm._e()])]):_c('div',{staticClass:\"mt-3\"},[_c('div',{staticClass:\"text-danger radio-message-danger mt-2\"},[_c('i',{staticClass:\"fa fa-exclamation-circle mr-2\"}),_vm._v(\"\\n \"+_vm._s(_vm.$t('auxiliary.notAuthorized'))+\"\\n \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <div v-if=\"claims.auxiliaryRegister.read\" class=\"auxiliaryRegisterContainer\">\r\n <div class=\"loader mt-5\" v-if=\"loading\"></div>\r\n <div v-show=\"!loading && register\">\r\n <div v-if=\"register\">\r\n <panel v-for=\"(panel, index) in register.panels\" :panel=\"panel\" :key=\"'register' + index\"\r\n ></panel> <!-- @deleteSavedFile=\"deleteSavedFile\" -->\r\n </div>\r\n </div>\r\n </div>\r\n <div v-else class=\"mt-3\">\r\n <div class=\"text-danger radio-message-danger mt-2\">\r\n <i class=\"fa fa-exclamation-circle mr-2\"></i>\r\n {{ $t('auxiliary.notAuthorized')}}\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport Vue from 'vue';\r\nimport Panel from '../dynamic/Panel';\r\nimport { DynamicRegisterModel, EditorRegister } from '@/models/models';\r\nimport {\r\n ComponentType,\r\n Culture,\r\n} from '@/models/enums';\r\nimport CustomTabs from '../../components/tab/CustomTabs';\r\nimport DynamicFieldChangeHandler from '@/services/dynamicFieldChangeHandler.service';\r\nimport { mapGetters } from 'vuex';\r\n\r\nVue.use(CustomTabs);\r\n\r\nexport default {\r\n inject: ['$validator'],\r\n props: {\r\n registerId: {\r\n type: [Number, String],\r\n required: true\r\n },\r\n entryId: {\r\n type: [Number, String]\r\n },\r\n registerName: {\r\n type: String,\r\n default: ''\r\n }\r\n },\r\n components: {\r\n Panel\r\n },\r\n data() {\r\n return {\r\n register: null,\r\n loading: false,\r\n // files: [],\r\n // people: [],\r\n // addresses: [],\r\n window: {\r\n width: 0,\r\n height: 0\r\n },\r\n // savedFilesToDelete: [],\r\n pageLoaded: false,\r\n isSaved: false,\r\n areObjectsEqual: false\r\n };\r\n },\r\n created() {\r\n window.addEventListener('resize', this.handleResize);\r\n this.handleResize();\r\n },\r\n destroyed() {\r\n window.removeEventListener('resize', this.handleResize);\r\n this.$store.dispatch('clearCurrentRegisterData', this.register);\r\n },\r\n methods: {\r\n dynamicFieldChangeHandler(newValue, oldValue, model) {\r\n DynamicFieldChangeHandler.onChangeHandler(newValue, oldValue, model, this.register);\r\n },\r\n/* deleteSavedFile(fileId) {\r\n this.savedFilesToDelete.push(fileId);\r\n }, */\r\n loadEmptyRegisterStructure() {\r\n if (!this.claims.auxiliaryRegister.read) {\r\n return;\r\n }\r\n\r\n this.loading = true;\r\n this.$http\r\n .get(`/api/AuxiliaryRegisters/${this.registerId}/structure`)\r\n .then(result => {\r\n this.register = new EditorRegister(result.data);\r\n this.$store.initialModel = _.cloneDeep(this.register);\r\n this.loading = false;\r\n })\r\n .catch(error => {\r\n this.loading = false;\r\n\r\n this.$vs.notify({\r\n title: this.$t('request.response.status.' + this.$helpers.errorStatusCode(error)),\r\n text: this.$helpers.errorText(error),\r\n color: 'danger',\r\n time: this.$store.getters.notificationDuration\r\n });\r\n }).then(() => {\r\n this.$store.dispatch('setCurrentRegisterData', this.register);\r\n });\r\n },\r\n loadRegisterStructureWithEntities() {\r\n if (!this.claims.auxiliaryRegister.read) {\r\n return;\r\n }\r\n\r\n this.loading = true;\r\n const entryId = this.entryId;\r\n\r\n this.$http\r\n .get(`/api/AuxiliaryRegisters/${this.registerId}/values/${entryId}`)\r\n .then(result => {\r\n this.register = new EditorRegister(result.data);\r\n this.$store.initialModel = _.cloneDeep(this.register);\r\n this.loading = false;\r\n\r\n })\r\n .catch(error => {\r\n this.loading = false;\r\n\r\n this.$vs.notify({\r\n title: this.$t('request.response.status.' + this.$helpers.errorStatusCode(error)),\r\n text: this.$helpers.errorText(error),\r\n color: 'danger',\r\n time: this.$store.getters.notificationDuration\r\n });\r\n }).then(() => {\r\n this.$store.dispatch('setCurrentRegisterData', this.register);\r\n });\r\n },\r\n getDynamicRegisterModelForSubmit() {\r\n if (!this.register || !this.register.panels) {\r\n return;\r\n }\r\n\r\n this.loading = true;\r\n this.files = [];\r\n let fieldsValues = [];\r\n\r\n this.register.panels.forEach(panel => {\r\n panel.components.forEach(component => {\r\n component.fieldValue.registerEntryId = this.entryId;\r\n component.fieldValue.id = component.fieldValue.id;\r\n component.fieldValue.registerFieldId = component.id;\r\n component.fieldValue.fieldType = component.fieldType;\r\n component.fieldValue.numberType = component.numberType;\r\n component.fieldValue.label = component.label;\r\n component.fieldValue.labelEn = component.labelEn;\r\n component.fieldValue.name = component.name;\r\n component.fieldValue.nameEn = component.nameEn;\r\n component.fieldValue.isMultiDropdown = component.isMultiDropdown;\r\n if (component.isMultiDropdown) {\r\n component.fieldValue.intValue = '';\r\n }\r\n fieldsValues.push(component.fieldValue);\r\n if (component.fieldType === ComponentType.FileUpload) {\r\n component.fieldValue.files.forEach(file => {\r\n this.files.push(file);\r\n });\r\n }\r\n });\r\n });\r\n\r\n const dynamicRegisterModel = new DynamicRegisterModel({\r\n fieldValues: fieldsValues,\r\n // people: this.people,\r\n // addresses: this.addresses,\r\n registerName: this.registerName,\r\n registerEntityExtension: this.register.registerEntityExtension,\r\n // savedFilesToDeleteIds: this.savedFilesToDelete\r\n });\r\n\r\n return dynamicRegisterModel;\r\n },\r\n/* uploadFiles(registerEntityId, dataToMap) {\r\n if (this.isNew) {\r\n this.files = [];\r\n this.register.panels.forEach(panel => {\r\n panel.components.forEach(component => {\r\n if (component.fieldType === ComponentType.FileUpload) {\r\n component.fieldValue.files.forEach(file => {\r\n this.files.push(file);\r\n });\r\n }\r\n });\r\n });\r\n\r\n if (this.isNew) {\r\n this.mapIdsToFiles(dataToMap);\r\n }\r\n }\r\n let formData = new FormData();\r\n\r\n const descriptionsJson = this.getFilesDescriptionsJson();\r\n this.files.forEach(file => {\r\n formData.append('files', file.content, file.fileName);\r\n });\r\n formData.append('descriptionJson', descriptionsJson);\r\n\r\n this.$http\r\n .post('/api/DynamicRegisters/UploadFiles', formData)\r\n .then(result => {\r\n this.$vs.notify({\r\n title: this.$t('notifications.success'),\r\n text: this.$t('notifications.successUploadingFiles'),\r\n color: 'success',\r\n time: this.$store.getters.notificationDuration\r\n });\r\n\r\n if (this.isNew && registerEntityId > 0) {\r\n this.$router.push(`/registers/events/edit/${registerEntityId}`);\r\n } else {\r\n this.$router.go();\r\n }\r\n })\r\n .catch(error => {\r\n this.$vs.notify({\r\n title: this.$t('notifications.error'),\r\n text: this.$t('notifications.errorUploadingFiles'),\r\n color: 'danger',\r\n time: this.$store.getters.notificationDuration\r\n });\r\n\r\n if (registerEntityId > 0) {\r\n this.$router.push(`/registers/events/edit/${registerEntityId}`);\r\n }\r\n });\r\n },\r\n mapIdsToFiles(ids) {\r\n this.files.forEach(file => {\r\n const uid = file.uid;\r\n const id = ids.resultList.findIndex(x => x.uid === uid);\r\n if (id) {\r\n file.registerEntityFieldValueId = ids.resultList[id].id;\r\n }\r\n });\r\n },\r\n getFilesDescriptionsJson() {\r\n let descriptions = [];\r\n let fileIndex = 0;\r\n this.files.forEach(file => {\r\n fileIndex++;\r\n file.fileName = `${fileIndex}_${file.fileName}`;\r\n descriptions.push({\r\n fileName: file.fileName,\r\n description: `${fileIndex}_${file.fileDescription}`,\r\n length: file.content.size,\r\n registerEntityFieldValueId: file.registerEntityFieldValueId\r\n });\r\n });\r\n\r\n return JSON.stringify(descriptions);\r\n } */\r\n handleResize() {\r\n this.window.width = window.innerWidth;\r\n this.window.height = window.innerHeight;\r\n }\r\n },\r\n mounted() {\r\n this.pageLoaded = true;\r\n\r\n if (this.isNew) {\r\n this.loadEmptyRegisterStructure();\r\n } else {\r\n this.loadRegisterStructureWithEntities();\r\n }\r\n },\r\n watch: {\r\n/* 'register': {\r\n immediate: true,\r\n deep: true,\r\n handler(newVal, oldVal) {\r\n this.areObjectsEqual = _.isEqual(newVal, this.$store.initialModel);\r\n }\r\n } */\r\n },\r\n computed: {\r\n ...mapGetters(['claims']),\r\n isNew() {\r\n return this.entryId === undefined || isNaN(this.entryId) || this.entryId <= 0;\r\n },\r\n isBgCulture() {\r\n return this.$store.getters.currentCulture === Culture.BG;\r\n }\r\n }\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.auxiliaryRegisterContainer {\r\n margin: 48px -15px 0 -15px;\r\n}\r\n\r\n.nav-tabs .nav-link.active {\r\n color: #009688;\r\n border-bottom: 1px solid #009688;\r\n}\r\n\r\n.nav-tabs .nav-link {\r\n color: #212529;\r\n border-bottom: 1px solid lightgrey;\r\n transition: border-color 1s;\r\n\r\n &:hover {\r\n text-decoration: none;\r\n color: #009688;\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AuxiliaryRegister.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AuxiliaryRegister.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AuxiliaryRegister.vue?vue&type=template&id=3c735a91&scoped=true&\"\nimport script from \"./AuxiliaryRegister.vue?vue&type=script&lang=js&\"\nexport * from \"./AuxiliaryRegister.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AuxiliaryRegister.vue?vue&type=style&index=0&id=3c735a91&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3c735a91\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('form',{staticClass:\"col-md-8 mx-auto\",on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit($event)}}},[(_vm.loading)?_c('div',{staticClass:\"loader\"}):_vm._e(),(!_vm.loading)?_c('div',[_c('div',{staticClass:\"btn-group\",attrs:{\"role\":\"group\",\"aria-label\":\"Basic example\"}},[_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.backToRegister}},[_c('i',{staticClass:\"fas fa-th-list\"}),_vm._v(\" \"+_vm._s(_vm.$t('backToList'))+\"\\n \")])]),_c('page-title',{attrs:{\"title\":_vm.$t('project.title'),\"showTitle\":false}}),_c('div',{staticClass:\"card row\"},[_c('div',{staticClass:\"card-header bg-primary text-white\"},[_c('div',{staticClass:\"card-title h5 m-0\"},[_vm._v(_vm._s(_vm.$t('project.information')))])]),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row float-bott\"},[_c('div',{staticClass:\"form-group col-4\"},[_c('label',{staticClass:\"font-weight-bold required\",attrs:{\"for\":'number' + _vm._uid}},[_vm._v(_vm._s(_vm.$t('project.number')))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.project.number),expression:\"project.number\"}],staticClass:\"form-control\",attrs:{\"type\":\"number\",\"id\":'number' + _vm._uid,\"name\":'number' + _vm._uid,\"data-vv-as\":_vm.$t('project.number'),\"readonly\":\"\"},domProps:{\"value\":(_vm.project.number)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.project, \"number\", $event.target.value)}}})]),_c('div',{staticClass:\"form-group col-4\"},[_c('label',{staticClass:\"font-weight-bold required\",attrs:{\"for\":'contract' + _vm._uid}},[_vm._v(_vm._s(_vm.$t('project.contract')))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.project.contract),expression:\"project.contract\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"id\":'contract' + _vm._uid,\"name\":'contract' + _vm._uid,\"data-vv-as\":_vm.$t('project.contract')},domProps:{\"value\":(_vm.project.contract)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.project, \"contract\", $event.target.value)}}}),(_vm.errors.has('contract' + _vm._uid))?_c('span',{staticClass:\"text-danger\"},[_vm._v(_vm._s(_vm.errors.first('contract' + _vm._uid)))]):_vm._e()]),_c('div',{staticClass:\"form-group col-4\"},[_c('label',{staticClass:\"font-weight-bold required\",attrs:{\"for\":'funding' + _vm._uid}},[_vm._v(_vm._s(_vm.$t('project.funding')))]),_c('dropdown',{attrs:{\"load-by-parent-sort\":true,\"parent-sort\":_vm.nomenclature.FundingType,\"required\":true,\"fieldName\":_vm.$t('project.funding')},model:{value:(_vm.project.fundingTypeId),callback:function ($$v) {_vm.$set(_vm.project, \"fundingTypeId\", $$v)},expression:\"project.fundingTypeId\"}}),(_vm.errors.has('fundingType' + _vm._uid))?_c('span',{staticClass:\"text-danger\"},[_vm._v(_vm._s(_vm.errors.first('fundingType' + _vm._uid)))]):_vm._e()],1)]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"form-group col-12\"},[_c('label',{staticClass:\"font-weight-bold required\",attrs:{\"for\":'name' + _vm._uid}},[_vm._v(_vm._s(_vm.$t('project.name')))]),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.project.name),expression:\"project.name\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"id\":'name' + _vm._uid,\"name\":'name' + _vm._uid,\"data-vv-as\":_vm.$t('project.name')},domProps:{\"value\":(_vm.project.name)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.project, \"name\", $event.target.value)}}}),(_vm.errors.has('name' + _vm._uid))?_c('span',{staticClass:\"text-danger\"},[_vm._v(_vm._s(_vm.errors.first('name' + _vm._uid)))]):_vm._e()])])])]),_c('div',{staticClass:\"card row mt-5\"},[_c('div',{staticClass:\"card-header bg-primary text-white\"},[_c('div',{staticClass:\"card-title h5 m-0\"},[_vm._v(_vm._s(_vm.$t('project.partners')))])]),_vm._l((_vm.project.organizers),function(organizer,index){return _c('div',{key:index},[_c('div',{staticClass:\"card-body k-display-flex k-align-items-center\"},[_c('div',{staticClass:\"card-body col-4\"},[_c('label',{staticClass:\"font-weight-bold\",attrs:{\"for\":'name' + _vm._uid}},[_vm._v(_vm._s(_vm.$t('project.name')))]),_c('dynamicDropdown',{attrs:{\"apiUrl\":'/api/organizers/',\"required\":true,\"fieldName\":_vm.$t('project.partners')},model:{value:(organizer.organizerId),callback:function ($$v) {_vm.$set(organizer, \"organizerId\", $$v)},expression:\"organizer.organizerId\"}})],1),_c('div',{staticClass:\"card-body col-8\"},[_c('label',{staticClass:\"font-weight-bold\",attrs:{\"for\":'name' + _vm._uid}},[_vm._v(_vm._s(_vm.$t('project.partnerContract')))]),(organizer.organizerId)?_c('div',[_c('dynamicDropdown',{attrs:{\"apiUrl\":(\"/api/organizers/getOrganizerContracts/\" + (organizer.organizerId)),\"fieldName\":_vm.$t('project.partnerContract'),\"registerName\":_vm.$t('registers.organizers.title')},model:{value:(organizer.organizerContractId),callback:function ($$v) {_vm.$set(organizer, \"organizerContractId\", $$v)},expression:\"organizer.organizerContractId\"}})],1):_vm._e()]),_c('div',[_c('i',{staticClass:\"fas fa-trash-alt btn-danger pointer\",on:{\"click\":function($event){return _vm.deleteOrganizer(index)}}})])])])}),_c('div',{staticClass:\"mt-2 ml-2 mb-1\"},[_c('button',{staticClass:\"btn btn-primary btn-md mr-2\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.addPartner}},[_c('i',{staticClass:\"fas fa-plus mr-2\"}),_vm._v(_vm._s(_vm.$t('project.addPartner'))+\"\\n \")])])],2),_c('div',{staticClass:\"card row mt-5\"},[_c('div',{staticClass:\"card-header bg-primary text-white\"},[_c('div',{staticClass:\"card-title h5 m-0\"},[_vm._v(_vm._s(_vm.$t('project.activities')))])]),_vm._l((_vm.project.activities),function(activity,index){return _c('div',{key:index},[_c('div',{staticClass:\"card-body k-display-flex k-align-items-center\"},[_c('div',{staticClass:\"col-12\"},[_c('dynamicDropdown',{attrs:{\"apiUrl\":\"/api/dropdown/GetActivities\",\"fieldName\":_vm.$t('project.activity'),\"registerName\":_vm.$t('activity.title')},model:{value:(activity.activityId),callback:function ($$v) {_vm.$set(activity, \"activityId\", $$v)},expression:\"activity.activityId\"}})],1),_c('i',{staticClass:\"fas fa-trash-alt float-right btn-danger pointer\",on:{\"click\":function($event){return _vm.deleteActivity(index)}}})])])}),_c('div',{staticClass:\"mt-2 ml-2 mb-1\"},[_c('button',{staticClass:\"btn btn-primary btn-md mr-2\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.addActivity}},[_c('i',{staticClass:\"fas fa-plus mr-2\"}),_vm._v(_vm._s(_vm.$t('project.addActivity'))+\"\\n \")])])],2),_c('div',{staticClass:\"card row mt-5\"},[_c('div',{staticClass:\"card-header bg-primary text-white\"},[_c('div',{staticClass:\"card-title h5 m-0\"},[_vm._v(_vm._s(_vm.$t('project.projectActivities')))])]),_c('div',{staticClass:\"card-body\"},_vm._l((_vm.project.projectActivities),function(projectActivity,index){return _c('div',{key:index,staticClass:\"k-display-flex k-align-items-center\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.project.projectActivities[index]),expression:\"project.projectActivities[index]\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.project.projectActivities[index])},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.project.projectActivities, index, $event.target.value)}}}),_c('i',{staticClass:\"fas fa-trash-alt float-right btn-danger pointer\",on:{\"click\":function($event){return _vm.deleteProjectActivity(index)}}})])}),0),_c('div',{staticClass:\"ml-2 mb-1\"},[_c('button',{staticClass:\"btn btn-primary btn-md mr-2\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.addProjectActivity}},[_c('i',{staticClass:\"fas fa-plus mr-2\"}),_vm._v(_vm._s(_vm.$t('project.projectActivity'))+\"\\n \")])])]),_c('div',{staticClass:\"card row mt-5\"},[_c('div',{staticClass:\"card-header bg-primary text-white\"},[_c('div',{staticClass:\"card-title h5 m-0\"},[_vm._v(_vm._s(_vm.$t('otherFields.otherFields')))])]),_c('div',{staticClass:\"card-body\"},[_c('otherFields',{attrs:{\"otherFields\":_vm.project.otherFields}})],1)]),_c('AuxiliaryRegister',{ref:\"auxiliaryRegisterRef\",attrs:{\"register-id\":_vm.AuxiliaryRegisters.Projects,\"register-name\":\"Projects\",\"entry-id\":_vm.project.auxRegisterEntityId}}),_c('div',{staticClass:\"text-center mt-2 mb-5\"},[_c('button',{staticClass:\"btn btn-primary btn\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.onSubmit}},[_c('i',{staticClass:\"fas fa-save\"}),_vm._v(\"\\n \"+_vm._s(_vm.$t('buttons.save.btnText'))+\"\\n \")])])],1):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <form class=\"col-md-8 mx-auto\" @submit.prevent=\"onSubmit\">\r\n <div class=\"loader\" v-if=\"loading\"></div>\r\n <div v-if=\"!loading\">\r\n <div class=\"btn-group\" role=\"group\" aria-label=\"Basic example\">\r\n <button type=\"button\"\r\n class=\"btn btn-primary\"\r\n @click=\"backToRegister\">\r\n <i class=\"fas fa-th-list\"></i> {{ $t('backToList') }}\r\n </button>\r\n </div>\r\n <page-title :title=\"$t('project.title')\" :showTitle=\"false\"></page-title>\r\n <div class=\"card row\">\r\n <div class=\"card-header bg-primary text-white\">\r\n <div class=\"card-title h5 m-0\">{{ $t('project.information') }}</div>\r\n </div>\r\n <div class=\"card-body\">\r\n <div class=\"row float-bott\">\r\n <div class=\"form-group col-4\">\r\n <label :for=\"'number' + _uid\" class=\"font-weight-bold required\">{{ $t('project.number')\r\n }}</label>\r\n <input type=\"number\"\r\n class=\"form-control\"\r\n :id=\"'number' + _uid\"\r\n :name=\"'number' + _uid\"\r\n v-model=\"project.number\"\r\n :data-vv-as=\"$t('project.number')\"\r\n readonly/>\r\n </div>\r\n <div class=\"form-group col-4\">\r\n <label :for=\"'contract' + _uid\" class=\"font-weight-bold required\">{{ $t('project.contract')\r\n }}</label>\r\n <input type=\"text\"\r\n class=\"form-control\"\r\n :id=\"'contract' + _uid\"\r\n :name=\"'contract' + _uid\"\r\n v-model=\"project.contract\"\r\n v-validate=\"'required'\"\r\n :data-vv-as=\"$t('project.contract')\"/>\r\n <span class=\"text-danger\" v-if=\"errors.has('contract' + _uid)\">{{ errors.first('contract' + _uid) }}</span>\r\n\r\n </div>\r\n <div class=\"form-group col-4\">\r\n <label :for=\"'funding' + _uid\" class=\"font-weight-bold required\">{{ $t('project.funding')\r\n }}</label>\r\n <dropdown :load-by-parent-sort=\"true\"\r\n :parent-sort=\"nomenclature.FundingType\"\r\n v-model=\"project.fundingTypeId\"\r\n :required=\"true\"\r\n :fieldName=\"$t('project.funding')\"></dropdown>\r\n <span class=\"text-danger\" v-if=\"errors.has('fundingType' + _uid)\">{{ errors.first('fundingType' + _uid) }}</span>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"form-group col-12\">\r\n <label :for=\"'name' + _uid\" class=\"font-weight-bold required\">{{ $t('project.name')\r\n }}</label>\r\n <textarea type=\"text\"\r\n class=\"form-control\"\r\n :id=\"'name' + _uid\"\r\n :name=\"'name' + _uid\"\r\n v-model=\"project.name\"\r\n v-validate=\"'required'\"\r\n :data-vv-as=\"$t('project.name')\"/>\r\n <span class=\"text-danger\"\r\n v-if=\"errors.has('name' + _uid)\">{{ errors.first('name' + _uid) }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card row mt-5\">\r\n <div class=\"card-header bg-primary text-white\">\r\n <div class=\"card-title h5 m-0\">{{ $t('project.partners') }}</div>\r\n </div>\r\n <div v-for=\"(organizer,index) in project.organizers\" :key=\"index\">\r\n <div class=\"card-body k-display-flex k-align-items-center\">\r\n <div class=\"card-body col-4\">\r\n <label :for=\"'name' + _uid\" class=\"font-weight-bold\">{{ $t('project.name') }}</label>\r\n <dynamicDropdown :apiUrl=\"'/api/organizers/'\"\r\n v-model=\"organizer.organizerId\"\r\n :required=\"true\"\r\n :fieldName=\"$t('project.partners')\"></dynamicDropdown>\r\n </div>\r\n <div class=\"card-body col-8\">\r\n <label :for=\"'name' + _uid\" class=\"font-weight-bold\">{{ $t('project.partnerContract')\r\n }}</label>\r\n <div v-if=\"organizer.organizerId\">\r\n <dynamicDropdown\r\n :apiUrl=\"`/api/organizers/getOrganizerContracts/${organizer.organizerId}`\"\r\n v-model=\"organizer.organizerContractId\"\r\n :fieldName=\"$t('project.partnerContract')\"\r\n :registerName=\"$t('registers.organizers.title')\"></dynamicDropdown>\r\n </div>\r\n </div>\r\n <div>\r\n <i class=\"fas fa-trash-alt btn-danger pointer\" @click=\"deleteOrganizer(index)\"></i>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mt-2 ml-2 mb-1\">\r\n <button type=\"button\" class=\"btn btn-primary btn-md mr-2\" @click=\"addPartner\"><i\r\n class=\"fas fa-plus mr-2\"></i>{{ $t('project.addPartner') }}\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"card row mt-5\">\r\n <div class=\"card-header bg-primary text-white\">\r\n <div class=\"card-title h5 m-0\">{{ $t('project.activities') }}</div>\r\n </div>\r\n <div v-for=\"(activity,index) in project.activities\" :key=\"index\">\r\n <div class=\"card-body k-display-flex k-align-items-center\">\r\n <div class=\"col-12\">\r\n <dynamicDropdown :apiUrl=\"`/api/dropdown/GetActivities`\"\r\n v-model=\"activity.activityId\"\r\n :fieldName=\"$t('project.activity')\"\r\n :registerName=\"$t('activity.title')\"></dynamicDropdown>\r\n </div>\r\n <i class=\"fas fa-trash-alt float-right btn-danger pointer\"\r\n @click=\"deleteActivity(index)\"></i>\r\n </div>\r\n </div>\r\n <div class=\"mt-2 ml-2 mb-1\">\r\n <button type=\"button\" class=\"btn btn-primary btn-md mr-2\" @click=\"addActivity\"><i\r\n class=\"fas fa-plus mr-2\"></i>{{ $t('project.addActivity') }}\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"card row mt-5\">\r\n <div class=\"card-header bg-primary text-white\">\r\n <div class=\"card-title h5 m-0\">{{ $t('project.projectActivities') }}</div>\r\n </div>\r\n <div class=\"card-body\">\r\n <div v-for=\"(projectActivity,index) in project.projectActivities\" :key=\"index\"\r\n class=\"k-display-flex k-align-items-center\">\r\n <input type=\"text\"\r\n class=\"form-control\"\r\n v-model=\"project.projectActivities[index]\"/>\r\n\r\n <i class=\"fas fa-trash-alt float-right btn-danger pointer\"\r\n @click=\"deleteProjectActivity(index)\"></i>\r\n </div>\r\n </div>\r\n <div class=\"ml-2 mb-1\">\r\n <button type=\"button\" class=\"btn btn-primary btn-md mr-2\" @click=\"addProjectActivity\"><i\r\n class=\"fas fa-plus mr-2\"></i>{{ $t('project.projectActivity') }}\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"card row mt-5\">\r\n <div class=\"card-header bg-primary text-white\">\r\n <div class=\"card-title h5 m-0\">{{ $t('otherFields.otherFields') }}</div>\r\n </div>\r\n <div class=\"card-body\">\r\n <otherFields :otherFields=\"project.otherFields\"></otherFields>\r\n </div>\r\n </div>\r\n\r\n <AuxiliaryRegister ref=\"auxiliaryRegisterRef\"\r\n :register-id=\"AuxiliaryRegisters.Projects\"\r\n register-name=\"Projects\"\r\n :entry-id=\"project.auxRegisterEntityId\"></AuxiliaryRegister>\r\n\r\n <div class=\"text-center mt-2 mb-5\">\r\n <button type=\"button\" class=\"btn btn-primary btn\" @click=\"onSubmit\">\r\n <i class=\"fas fa-save\"></i>\r\n {{ $t('buttons.save.btnText') }}\r\n </button>\r\n </div>\r\n </div>\r\n </form>\r\n</template>\r\n\r\n<script>\r\n import Dropdown from '../../../components/dropdown/NomenclatureDropdown';\r\n import OtherFields from '../../../components/otherFields/OtherFields.vue';\r\n import DynamicDropdown from '../../../components/dropdown/DynamicDropdown';\r\n import PageTitle from '../../../components/common/PageTitle';\r\n import { Project, OrganizerContracts, Activity } from '@/models/models';\r\n import { AuxiliaryRegisters, NomenclatureParentBySort } from '@/models/enums';\r\n import AuxiliaryRegister from '@/components/dynamic/AuxiliaryRegister';\r\n\r\n export default {\r\n components: {\r\n Dropdown,\r\n PageTitle,\r\n OtherFields,\r\n DynamicDropdown,\r\n AuxiliaryRegister,\r\n },\r\n data() {\r\n return {\r\n nomenclature: NomenclatureParentBySort,\r\n id: null,\r\n project: new Project(),\r\n loading: false,\r\n isSaved: false,\r\n AuxiliaryRegisters: AuxiliaryRegisters\r\n }\r\n },\r\n methods: {\r\n onSubmit() {\r\n this.$validator.validateAll().then(result => {\r\n if (result) {\r\n this.project.auxRegisterModel = this.$refs.auxiliaryRegisterRef.getDynamicRegisterModelForSubmit();\r\n if (this.id) {\r\n this.edit();\r\n } else {\r\n this.create();\r\n }\r\n }\r\n })\r\n },\r\n addPartner(event) {\r\n this.project.organizers.push(new OrganizerContracts());\r\n },\r\n addActivity(event) {\r\n this.project.activities.push(new Activity());\r\n },\r\n addProjectActivity(event) {\r\n this.project.projectActivities.push('');\r\n },\r\n deleteActivity: function (m) {\r\n this.project.activities.splice(m, 1);\r\n },\r\n deleteOrganizer: function (m) {\r\n this.project.organizers.splice(m, 1);\r\n },\r\n deleteProjectActivity: function (m) {\r\n this.project.projectActivities.splice(m, 1);\r\n },\r\n backToRegister() {\r\n this.$router.push('/registers/projects');\r\n },\r\n create() {\r\n this.loading = true;\r\n this.$http.post('/api/projects', this.project).then(result => {\r\n this.loading = false;\r\n this.isSaved = true;\r\n this.$vs.notify({\r\n title: this.$t('notifications.success'),\r\n text: this.$t('notifications.successfulSavedData'),\r\n position: 'top-center',\r\n color: 'success'\r\n });\r\n this.backToRegister();\r\n }).catch(error => {\r\n this.loading = false;\r\n this.$vs.notify({\r\n title: this.$t('notifications.error'),\r\n text: this.$helpers.errorText(error),\r\n position: 'top-center',\r\n color: 'danger'\r\n });\r\n });\r\n },\r\n edit() {\r\n this.loading = true;\r\n this.$http.put('/api/projects', this.project).then(result => {\r\n this.loading = false;\r\n this.isSaved = true;\r\n this.$vs.notify({\r\n title: this.$t('notifications.success'), // TODO:\r\n text: this.$t('notifications.successfulSavedData'), // TODO:\r\n position: 'top-center',\r\n color: 'success'\r\n });\r\n this.backToRegister();\r\n }).catch(error => {\r\n this.loading = false;\r\n this.$vs.notify({\r\n title: this.$t('notifications.error'), // TODO:\r\n text: this.$helpers.errorText(error), // TODO:\r\n position: 'top-center',\r\n color: 'danger'\r\n });\r\n });\r\n },\r\n loadData() {\r\n this.loading = true;\r\n this.$http.get(`/api/projects/${this.id}`).then(result => {\r\n this.project = new Project(result.data);\r\n this.$store.initialModel = _.cloneDeep(this.project);\r\n this.loading = false;\r\n }).catch(error => {\r\n // TODO: Notify\r\n this.loading = false;\r\n });\r\n }\r\n },\r\n beforeRouteLeave(to, from, next) {\r\n if (!_.isEqual(this.$store.initialModel, this.project) && !this.isSaved) {\r\n const answer = window.confirm(this.$t('notifications.leavePage'))\r\n if (answer) {\r\n next()\r\n } else {\r\n next(false)\r\n }\r\n } else {\r\n next()\r\n }\r\n },\r\n mounted() {\r\n this.id = this.$route.params.id;\r\n if (this.id) {\r\n this.loadData();\r\n }\r\n this.$store.initialModel = _.cloneDeep(this.project);\r\n }\r\n }\r\n</script>\r\n\r\n<style>\r\n</style>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Project.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Project.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Project.vue?vue&type=template&id=1b3be260&\"\nimport script from \"./Project.vue?vue&type=script&lang=js&\"\nexport * from \"./Project.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import { RegisterEventBus } from '@/buses/register-bus.js';\r\nimport { AccommodationType, FieldCodes } from '@/models/enums';\r\nimport moment from 'moment';\r\nimport store from '@/store/store';\r\n\r\nclass DynamicFieldChangeHandler {\r\n getFieldCode(model) {\r\n return model.fieldCode;\r\n };\r\n\r\n eventStartDateChangeHandler(newValue, oldValue, model, register) {\r\n if (!store.getters.appSettings.recalcSubscriptionDates) return;\r\n\r\n if (!model || !register || !register.panels) return;\r\n\r\n for (var i = 0; i < register.panels.length; i++) {\r\n const panel = register.panels[i];\r\n if (!panel.components) continue;\r\n\r\n for (var j = 0; j < panel.components.length; j++) {\r\n let component = panel.components[j];\r\n\r\n if (component.fieldCode === FieldCodes.EventSubscriptionStartDate) {\r\n if (model.fieldValue.datetimeValue) {\r\n // From Kendo DatePicker comes GMT date\r\n let dateUtc = moment.utc(model.fieldValue.datetimeValue);\r\n const utcStr = dateUtc.add(-30, 'days').toISOString();\r\n if (utcStr) {\r\n // Z index has to be removed\r\n component.fieldValue.datetimeValue = utcStr.replace('Z', '');\r\n }\r\n\r\n if (RegisterEventBus) {\r\n RegisterEventBus.$emit(`component-${component.fieldCode}-${component.id}-reset`)\r\n }\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n eventEndDateChangeHandler(newValue, oldValue, model, register) {\r\n if (!store.getters.appSettings.recalcSubscriptionDates) return;\r\n\r\n if (!model || !register || !register.panels) return;\r\n\r\n for (var i = 0; i < register.panels.length; i++) {\r\n const panel = register.panels[i];\r\n if (!panel.components) continue;\r\n\r\n for (var j = 0; j < panel.components.length; j++) {\r\n let component = panel.components[j];\r\n\r\n if (component.fieldCode === FieldCodes.EventSubscriptionEndDate) {\r\n if (model.fieldValue.datetimeValue) {\r\n // From Kendo DatePicker comes GMT date\r\n let dateUtc = moment.utc(model.fieldValue.datetimeValue);\r\n const utcStr = dateUtc.add(-20, 'days').toISOString();\r\n if (utcStr) {\r\n // Z index has to be removed\r\n component.fieldValue.datetimeValue = utcStr.replace('Z', '');\r\n }\r\n\r\n if (RegisterEventBus) {\r\n RegisterEventBus.$emit(`component-${component.fieldCode}-${component.id}-reset`)\r\n }\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n\teventAccommodationTypeChangeHandler(newValue, oldValue, model, register) {\r\n\t\tif (newValue == AccommodationType.WithourAccommodation) {\r\n\t\t\tconst panel = register.panels.filter(p => p.components.filter(c => c.fieldCode === FieldCodes.AccommodationType).length > 0)[0];\r\n\t\t\tif (panel && panel.components && panel.components.length > 0) {\r\n\t\t\t\tthis.setComponentWithCodeToReadonly(panel.components, FieldCodes.LastDayForBooking, true);\r\n\t\t\t\tthis.setComponentWithCodeToReadonly(panel.components, FieldCodes.EventAccommodationPlaceName, true);\r\n\t\t\t\tthis.setComponentWithCodeToReadonly(panel.components, FieldCodes.AccommodationAddress, true);\r\n\t\t\t\tthis.setComponentWithCodeToReadonly(panel.components, FieldCodes.EventStayFrom, true);\r\n\t\t\t\tthis.setComponentWithCodeToReadonly(panel.components, FieldCodes.EventStayTo, true);\r\n\t\t\t\tthis.setComponentWithCodeToReadonly(panel.components, FieldCodes.EventDailyAllowanceFrom, true);\r\n\t\t\t\tthis.setComponentWithCodeToReadonly(panel.components, FieldCodes.EventDailyAllowanceTo, true);\r\n\t\t\t}\r\n\t\t} else if (oldValue == AccommodationType.WithourAccommodation) {\r\n\t\t\tconst panel = register.panels.filter(p => p.components.filter(c => c.fieldCode === FieldCodes.AccommodationType).length > 0)[0];\r\n\t\t\tthis.setComponentWithCodeToReadonly(panel.components, FieldCodes.LastDayForBooking, false);\r\n\t\t\tthis.setComponentWithCodeToReadonly(panel.components, FieldCodes.EventAccommodationPlaceName, false);\r\n\t\t\tthis.setComponentWithCodeToReadonly(panel.components, FieldCodes.AccommodationAddress, false);\r\n\t\t\tthis.setComponentWithCodeToReadonly(panel.components, FieldCodes.EventStayFrom, false);\r\n\t\t\tthis.setComponentWithCodeToReadonly(panel.components, FieldCodes.EventStayTo, false);\r\n\t\t\tthis.setComponentWithCodeToReadonly(panel.components, FieldCodes.EventDailyAllowanceFrom, false);\r\n\t\t\tthis.setComponentWithCodeToReadonly(panel.components, FieldCodes.EventDailyAllowanceTo, false);\r\n\t\t}\r\n\t}\r\n\r\n\tsetComponentWithCodeToReadonly(components, code, isReadonly) {\r\n let component = components.filter(c => c.fieldCode === code)[0];\r\n if (component) {\r\n component.isReadOnly = isReadonly;\r\n\t\t}\r\n\t}\r\n\r\n onChangeHandler(newValue, oldValue, model, register) {\r\n const fieldCode = this.getFieldCode(model);\r\n if (!fieldCode) return;\r\n\r\n switch (fieldCode) {\r\n case FieldCodes.EventStartDate:\r\n this.eventStartDateChangeHandler(newValue, oldValue, model, register);\r\n break;\r\n case FieldCodes.EventEndDate:\r\n this.eventEndDateChangeHandler(newValue, oldValue, model, register)\r\n break;\r\n\t\t\tcase FieldCodes.AccommodationType:\r\n\t\t\t\tthis.eventAccommodationTypeChangeHandler(newValue, oldValue, model, register)\r\n\t\t\t\tbreak;\r\n default:\r\n break;\r\n }\r\n }\r\n}\r\n\r\nexport default new DynamicFieldChangeHandler();\r\n"],"sourceRoot":""}