PageSourceSearch

https://vynoteka.lt/build/658.bbd79668.js

js vynoteka.lt collected 2026-10-07 04:42:53 UTC 13,360 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[542,658,2923,5304],{20658:(t,e,o)=>{o.r(e),o.d(e,{default:()=>z});var r=o(41425),s={class:"icon"},a=["alt"],n={class:"card__body"},i={class:"row justify-content-center"},l={class:"col-12 col-md-6"},d={key:0,class:"form-group"},c={class:"alert alert--success alert--bordered"},u={class:"row align-items-center no-gutters"},p=(0,r.Lk)("div",{class:"col col-auto"},[(0,r.Lk)("span",{class:"icon icon--left"},[(0,r.Lk)("svg",null,[(0,r.Lk)("use",{href:"/build/assets/images/icons/base/sprite.svg#check-circle"})])])],-1),f={class:"col"},m={class:"alert__message"},h={key:1,class:"form-group"},w={class:"text-left"},v={class:"form-group"},b={class:"form-explanation"},_={for:"new-password",class:"form-group__label"},y={class:"input-group"},g=["placeholder"],k={key:0,class:"caption caption--error"},L={for:"repeat-password",class:"form-group__label"},C={class:"input-group"},$=["placeholder"],S={key:0,class:"caption caption--error"},P={key:4,class:"form-group"},M={class:"text-right"},O={type:"submit",class:"btn primary"};o(52675),o(89463),o(2259),o(45700),o(2008),o(51629),o(23418),o(64346),o(23792),o(34782),o(89572),o(23288),o(62010),o(2892),o(67945),o(84185),o(5506),o(83851),o(81278),o(79432),o(26099),o(3362),o(27495),o(38781),o(47764),o(23500),o(62953),o(76031);var j=o(72505),D=o.n(j),E=o(43140),U=o(75304),A=o(82124);function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var r,s,a,n,i=[],l=!0,d=!1;try{if(a=(o=o.call(t)).next,0===e){if(Object(o)!==o)return;l=!1}else for(;!(l=(r=a.call(o)).done)&&(i.push(r.value),i.length!==e);l=!0);}catch(t){d=!0,s=t}finally{try{if(!l&&null!=o.return&&(n=o.return(),Object(n)!==n))return}finally{if(d)throw s}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return B(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?B(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,r=Array(e);o<e;o++)r[o]=t[o];return r}function I(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)}return o}function T(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?I(Object(o),!0).forEach(function(e){X(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):I(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function X(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=R(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!=R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==R(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var Q=null;const F={name:"Password",components:{VueModal:U.default},props:{path:"",isActive:!1},data:function(){return{errors:{},showConfirmation:!1,contactDataUpdated:!1,promotionalDataUpdated:!1,passwordUpdated:!1,csrf_token:document.querySelectorAll("meta[name=_csrf_token]")[0].attributes.content.value,authData:{currentPassword:"",password:"",passwordRepeat:""}}},computed:T({},(0,A.L8)({getUser:"user/getUser",isAuthenticated:"user/isAuthenticated"})),watch:{promotionalDataUpdated:function(t){var e=this;t&&(clearTimeout(Q),Q=window.setTimeout(function(){e.promotionalDataUpdated=!1},3e3))}},methods:T(T({},(0,A.i0)({autoLogin:"user/autoLogin",fetchUser:"user/fetchUser"})),{},{validatePassword:function(){(0,E.validatePassword)(this.authData.password)?this.errors.password=!1:this.errors.password=this.$root.trans("[create_account__error_password_1digit_min10length]")}
1,validatePasswordRepeat:function(){this.authData.password.length>0&&!1===this.errors.password&&(this.authData.password!==this.authData.passwordRepeat?this.errors.passwordRepeat=this.$root.trans("[create_account__error_passwordrepeat_dont_match]"):this.errors.passwordRepeat=!1)},validateForm:function(){this.validatePassword(),this.validatePasswordRepeat()},updatePassword:function(){var t=this,e=!0;this.validateForm();for(var o=0,r=Object.entries(this.errors);o<r.length;o++){var s=x(r[o],2);s[0];!1!==s[1]&&(e=!1)}if(e){var a=new FormData;a.append("_token",this.csrf_token),a.append("userId",document.getElementById("userId").value),a.append("newPassword",this.authData.password),a.append("newPasswordRepeat",this.authData.passwordRepeat),D()({method:"post",headers:{"content-type":"application/x-www-form-urlencoded"},url:this.$root.generate_url("__user_update_password"),data:a}).then(function(e){e.data.status===E.STATUS_SUCCESS?(t.passwordUpdated=!0,t.errors.currentPassword=!1):"repeat_password"===e.data.type&&(t.errors.currentPassword=t.$root.trans("[profile__error_passwordrepeat_dont_match]"))})}},autoLoginAction:function(){var t=this;Promise.all([this.autoLogin({username:document.getElementById("username").value,password:this.authData.password,_token:this.csrf_token})]).then(function(){window.location.href=t.$root.generate_url("__client_profile")+"#personal-data"})}})};const z=(0,o(66262).A)(F,[["render",function(t,e,o,j,D,E){return(0,r.uX)(),(0,r.CE)("div",{class:(0,r.C4)({"card card--large":!t.$root.windowTablet})},[(0,r.Lk)("div",{class:(0,r.C4)([t.$root.windowTablet?"mobile-page-header":"card__header card__header--large"])},[(0,r.Lk)("button",{class:"btn btn--sm transparent mobile-page-header__return-button",onClick:e[0]||(e[0]=function(e){return t.$parent.setActiveTab("")})},[(0,r.Lk)("span",s,[(0,r.Lk)("img",{src:"/build/assets/images/icons/angle-left_primary.svg",width:"24",alt:t.$root.trans("[return]")},null,8,a)])]),(0,r.Lk)("h3",null,(0,r.v_)(t.$root.trans("[user__change_password]")),1)],2),(0,r.Lk)("div",n,[(0,r.Lk)("form",{method:"post",onSubmit:e[6]||(e[6]=(0,r.D$)(function(){return E.updatePassword&&E.updatePassword.apply(E,arguments)},["prevent"])),novalidate:"true"},[(0,r.Lk)("div",i,[(0,r.Lk)("div",l,[D.passwordUpdated?((0,r.uX)(),(0,r.CE)("div",d,[(0,r.Lk)("div",c,[(0,r.Lk)("div",u,[p,(0,r.Lk)("div",f,[(0,r.Lk)("div",m,(0,r.v_)(t.$root.trans("[profile__update_password_success]")),1)])])])])):(0,r.Q3)("v-if",!0),D.passwordUpdated?((0,r.uX)(),(0,r.CE)("div",h,[(0,r.Lk)("div",w,[(0,r.Lk)("button",{type:"button",class:"btn btn--sm secondary",onClick:e[1]||(e[1]=function(){return E.autoLoginAction&&E.autoLoginAction.apply(E,arguments)})},(0,r.v_)(t.$root.trans("[profile__user_autologin]")),1)])])):(0,r.Q3)("v-if",!0),D.passwordUpdated?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)("div",{key:2,class:(0,r.C4)(["form-group",{"status-error":D.errors.password}])},[(0,r.Lk)("div",v,[(0,r.Lk)("div",b,(0,r.v_)(t.$root.trans("[create_account__password_valid_rule_notice]")),1)]),(0,r.Lk)("label",_,(0,r.v_)(t.$root.trans("[create_account__new_password]")),1),(0,r.Lk)("div",y,[(0,r.bo)((0,r.Lk)("input",{onKeyup:e[2]||(e[2]=function(){return E.validatePassword&&E.validatePassword.apply(E,arguments)}),"onUpdate:modelValue":e[3]||(e[3]=function(t){return D.authData.password=t}),class:"form-control",type:"password",placeholder:t.$root.trans("[profile__enter_new_password]"),id:"new-password"},null,40,g),[[r.Jo,D.authData.password]])]),D.errors.password?((0,r.uX)(),(0,r.CE)("div",k,(0,r.v_)(D.errors.password),1)):(0,r.Q3)("v-if",!0)],2)),D.passwordUpdated?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)("div",{key:3,class:(0,r.C4)(["form-group",{"status-error":D.errors.passwordRepeat}])},[(0,r.Lk)("label",L,(0,r.v_)(t.$root.trans("[create_account__new_repeat_password]")),1),(0,r.Lk)("div",C,[(0,r.bo)((0,r.Lk)("input",{onKeyup:e[4]||(e[4]=function(){return E.validatePasswordRepeat&&E.validatePasswordRepeat.apply(E,arguments)}),"onUpdate:modelValue":e[5]||(e[5]=function(t){return D.authData.passwordRepeat=t}),class:"form-control",type:"password",placeholder:t.$root.trans("[profile__enter_new_repeat_password]"),id:"repeat-password"},null,40,$),[[r.Jo,D.authData.passwordRepeat]])]),D.errors.passwordRepeat?((0,r.uX)(),(0,r.CE)("div",S,(0,r.v_)(D.errors.passwordRepeat),1)):(0,r.Q3)("v-if",!0)],2)),D.passwordUpdated?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)("div",P,[(0,r.Lk)("div",M,[(0,r.Lk)("button",O,(0,r.v_)(t.$root.trans("[profile__update_button]")),1)])]))])])],32)])],2)}]])},75304:(t,e,o)=>{o.r(e),o.d(e,{default:()=>d});var r=o(41425),s=["aria-label"],a=(0,r.Lk)("span",{class:"icon icon--sm"},[(0,r.Lk)("svg",null,[(0,r.Lk)("use",{href:"/build/assets/images/icons/base/sprite.svg#times2"})])],-1);o(52675),o(89463),o(2259),o(51629),o(23792),o(26099),o(16034),o(47764),o(23500),o(62953),o(76031);function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var i=(0,o(43217).Ub)().getWindowTablet;const l={name:"vue-modal",props:{show:Boolean,allowClose:{type:Boolean,default:!0},modifier:{type:[String,Array],default:""},contentModifier:{type:[String,Array],default:""},theme:{type:String,default:"default"},disabled:Boolean,disableFocusCloseButton:Boolean},emits:["update:show","change","close","open"],data:function(){return{zIndex:100,controlsShow:!1}},computed:{getWindowTablet:function(){return i.value},modifierClass:function(){if("string"==typeof this.modifier)return"modal--"+this.modifier;if("object"===n(this.modifier)){var t="";return Object.values(this.modifier).forEach(function(e){t+="modal--".concat(e," ")}),t}return""},contentModifierClass:function(){if("string"==typeof this.contentModifier)return"modal__content--"+this.contentModifier;if("object"===n(this.contentModifier)){var t="";return Object.values(this.contentModifier).forEach(function(e){t+="modal__content--".concat(e," ")}),t}return""},container:function(){return this.$refs.container},modal:function(){return this.$refs.modal},showModal:function(){return this.show||this.controlsShow||!1}},watch:{show:function(t){t||this.emitClose()},showModal:{handler:function(t,e){var o=this;if(t!==e)if(t){var r=this.$root.getModalZindex+1;r<this.zIndex&&(r=this.zIndex),this.zIndex={zIndex:r},this.$root.setModalZindex(r),document.documentElement.classList.add("overflow-hidden"),document.body.classList.add("overflow-hidden"),this.getWindowTablet||setTimeout(function(){o.$refs.closeButton&&!o.disableFocusCloseButton&&o.$refs.closeButton.focus()},1),void 0!==e&&this.emitOpen()}else void 0!==e&&this.emitClose(),document.documentElement.classList.remove("overflow-hidden"),document.body.classList.remove("overflow-hidden"),document.documentElement.classList.remove("fixed-height"),document.body.classList.remove("fixed-height")},immediate:!0}},methods:{closeModal:function(){this.allowClose&&this.emitClose()},closeModalButton:function(){this.emitClose()},emitClose:function(){this.controlsShow=!1,this.$emit("update:show",!1),this.$emit("change",!1),this.$emit("close",!0)},emitOpen:function(){this.controlsShow=!0,this.$emit("update:show",!0),this.$emit("change",!0),this.$emit("open",!0)}},unmounted:function(){document.documentElement.classList.remove("overflow-hidden"),document.body.classList.remove("overflow-hidden"),document.documentElement.classList.remove("fixed-height"),document.body.classList.remove("fixed-height")}};const d=(0,o(66262).A)(l,[["render",function(t,e,o,n,i,l){return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.RG)(t.$slots,"trigger",{emitOpen:l.emitOpen,showModal:l.showModal}),((0,r.uX)(),(0,r.Wv)(r.Im,{to:"#app",disabled:o.disabled},[(0,r.bF)(r.eB,{name:"fade"},{default:(0,r.k6)(function(){return[(0,r.Lk)("div",{class:(0,r.C4)(["modal",["modal--"+o.theme,l.modifierClass]]),onKeyup:e[2]||(e[2]=(0,r.jR)((0,r.D$)(function(t){return l.closeModal()},["stop"]),["esc"]))},[(0,r.bo)((0,r.Lk)("div",{class:"modal__container",ref:"container",style:(0,r.Tr)(i.zIndex)},[(0,r.Lk)("div",{class:"modal__inner",onMousedown:e[1]||(e[1]=(0,r.D$)(function(){return l.closeModal&&l.closeModal.apply(l,arguments)},["self"])),tabindex:"0"},[(0,r.Lk)("div",{class:(0,r.C4)(["modal__content",[l.contentModifierClass]]),ref:"modal"}
1,[o.allowClose?((0,r.uX)(),(0,r.CE)("button",{key:0,class:"btn transparent modal__close-button",ref:"closeButton",onClick:e[0]||(e[0]=function(){return l.closeModalButton&&l.closeModalButton.apply(l,arguments)}),"aria-label":t.$root.trans("[close]")},[(0,r.RG)(t.$slots,"closebuttonicon",{},function(){return[a]})],8,s)):(0,r.Q3)("v-if",!0),(0,r.RG)(t.$slots,"default",{showModal:l.showModal,closeModal:l.closeModal})],2)],32)],4),[[r.aG,l.showModal]])],34)]}),_:3})],8,["disabled"]))],64)}]])}}]);

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