webpackJsonp([2],{1:function(e,t,n){"use strict";t.a=function(e,t,n,i,r,o,s,a){var l=typeof(e=e||{}).default;"object"!==l&&"function"!==l||(e=e.default);var u,c="function"==typeof e?e.options:e;t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0);i&&(c.functional=!0);o&&(c._scopeId=o);s?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=u):r&&(u=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r);if(u)if(c.functional){c._injectStyles=u;var f=c.render;c.render=function(e,t){return u.call(t),f(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,u):[u]}return{exports:e,options:c}}},1193:function(e,t,n){var i=n(1194);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);(0,n(3).default)("2b4b15a8",i,!0,{})},1194:function(e,t,n){(e.exports=n(2)(!1)).push([e.i,".fade-enter-active,.fade-leave-active{-webkit-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s}.fade-enter,.fade-leave-to{opacity:0}",""])},1195:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"reveal tiny",attrs:{id:e.MyPerfumeTimelineId,"data-reveal":""}},[n("div",{staticClass:"grid-container"},[n("div",{staticClass:"grid-x grid-margin-x grid-margin-y grid-padding-x"},[n("div",{staticClass:"cell small-12"},[e._v("\n "+e._s(this.language.my_perfume_timeline)+"\n "),e._m(0)]),e._v(" "),n("div",{staticClass:"cell small-12"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.searchingQuery,expression:"searchingQuery"}],attrs:{type:"text",placeholder:this.language.type_to_narrow_list},domProps:{value:e.searchingQuery},on:{input:function(t){t.target.composing||(e.searchingQuery=t.target.value)}}})]),e._v(" "),n("hr")])]),e._v(" "),n("div",{staticClass:"grid-container",staticStyle:{overflow:"auto","max-height":"350px","background-color":"white"}},[e.loader?n("div",{staticClass:"cell small-12 text-center"},[n("img",{attrs:{src:"/ndimg/loader.gif"}})]):e._e(),e._v(" "),e._l(e.filteredMyTimeline,function(t,i){return e.myPerfumeTimeline.length>0?n("div",{key:i,staticClass:"grid-x grid-margin-x grid-margin-y",staticStyle:{"border-bottom":"1px solid #CDEB8B",position:"relative",margin:"0.5rem 0 0","padding-bottom":"0.5rem"}},[n("div",{staticClass:"small-2 cell"},[n("img",{attrs:{src:e.perfumePic(t)}})]),e._v(" "),n("div",{staticClass:"small-6 cell"},[0!==t.id?[n("a",{attrs:{href:t.url}},[e._v("\n "+e._s(t.naslov)),n("br"),e._v(" "),n("span",{staticClass:"brand"},[n("small",[e._v(e._s(t.dizajner))])]),e._v(" "),n("span",{staticClass:"link-span"})]),e._v(" "),n("small",[e._v(e._s(t.comment))])]:[e._v("\n "+e._s(t.naslov)),n("br"),e._v(" "),n("small",[e._v(e._s(t.comment))])]],2),e._v(" "),n("div",{staticClass:"small-4 cell"},[n("small",[n("span",{domProps:{textContent:e._s(e.format_date(t.timestamp))}})]),e._v(" "),n("br"),e._v(" "),n("img",{attrs:{src:e.wearingPeriod(t)}}),e._v(" "),e.canEdit?n("span",{staticStyle:{position:"absolute",top:"1px",right:"0",color:"crimson",cursor:"pointer","z-index":"4"},on:{click:function(n){return e.removePerfume(t)}}},[n("i",{staticClass:"far fa-times-circle"})]):e._e()]),e._v(" "),n("hr")]):e._e()})],2)])},r=[function(){var e=this.$createElement,t=this._self._c||e;return t("button",{staticClass:"close-button",attrs:{"data-close":"","aria-label":"Close modal",type:"button"}},[t("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])])}]},1328:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(1633)),r=o(n(1643));function o(e){return e&&e.__esModule?e:{default:e}}t.default={props:["memberId","type"],name:"MemberShelfs",components:{AddingCustomShelf:r.default,Shelf:i.default},data:function(){return{showLoader:!0,shelfs:[],memberTools:!1,isFirefox:!1,showMembersToolsSwitch:!1}},created:function(){this.isFirefox=navigator.userAgent.toLowerCase().indexOf("firefox")>-1},computed:{shelvesReduce:function(){return this.shelfs.map(function(e){return{name:e.name,value:e.value,field:e.field}})},isCustomShelf:function(){return"custom"===this.type},memberToolsSwitch:function(){return this.memberTools},canAddCustomShelf:function(){return this.$root.isLogged&&this.$root.loggedUserId===this.memberId}},methods:{uniqueShelfKey:function(e){return e.field+e.value+e.type}},mounted:function(){var e=this;localStorage.memberOptionsSwitch?e.memberTools=JSON.parse(localStorage.memberOptionsSwitch):e.memberTools=!1,EventBus.listen("toggle-member-options",function(t){e.memberTools=t,localStorage.memberOptionsSwitch=t}),EventBus.listen("shelves-loaded-"+e.type,function(t){e.shelfs=t,e.showLoader=!1})}}},1329:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(447)),r=o(n(1636));function o(e){return e&&e.__esModule?e:{default:e}}t.default={props:["input_data","memberId","shelves","showSwitch","shelvesInfo"],name:"Shelf",directives:{Sticky:i.default},components:{ShelfsDropDownMenu:r.default,draggable:function(){return n.e(48).then(n.bind(null,446))},"shelf-perfume-search":function(){return n.e(43).then(n.bind(null,1196))}},data:function(){return{shelf:this.input_data,showShelfName:!0,orgShelfName:"",newShelfName:"",showShelf:!1,drag:!1,indexValue:null,limit:24,observer:null}},watch:{shelf:{deep:!0,handler:function(e,t){t.perfumes.length===this.limit&&(this.limit+=24)}}},computed:{shelfRef:function(){return this.shelf.perfumes.length>24&&this.shelf.field+"-"+this.shelf.value+"-"+this.shelf.type},shelfPerfumesChunks:function(){var e=this;return e.shelf.perfumes.filter(function(t,n){return n24},isFeatured:function(){return this.input_data.featured},disabledDragging:function(){return!this.canEdit||!this.$parent.memberToolsSwitch},cancelTitle:function(){return memberProfileLangVar.cancel_title},updateTitle:function(){return memberProfileLangVar.update_title},deleteTitle:function(){return memberProfileLangVar.delete_title},canEdit:function(){return this.$root.isLogged&&this.$root.loggedUserId===this.memberId},shelfId:function(){return this.shelf.field+this.shelf.value},hasPerfumes:function(){return this.shelf.perfumes.length>0},typeOfGroup:function(){return"custom"===this.shelf.type?this.shelf.type:this.shelf.field},dragOptions:function(){return{forceFallback:!this.$parent.isFirefox,group:this.typeOfGroup}}},mounted:function(){var e=this;e.shelf.perfumes.length===e.limit&&(e.limit+=24),e.showShelf=!0,e.orgShelfName=e.shelf.name,e.$nextTick(function(){e.shelfRef&&(e.observer=new IntersectionObserver(function(t){t[0].isIntersecting&&(e.limit+=96)},{root:null,threshold:1}),e.observer.observe(e.$refs[e.shelfRef]))}),EventBus.listen("featured-name-update",function(t){void 0!==e.input_data.featured&&e.input_data.featured&&(e.shelf.name=t)}),EventBus.listen("featured-perfumes-update",function(t){void 0!==e.input_data.featured&&e.input_data.featured&&(e.shelf.perfumes=t)}),EventBus.listen("shelf-perfume-suggestion-"+this.shelfId+"-"+this.shelf.type,function(t){var n={dizajner:t.dizajner,id:parseInt(t.id),naslov:t.naslov,url:t.url[xml_lang][0]},i=!1,r="";if(e.shelves.filter(function(t){return t.field===e.shelf.field}).forEach(function(e){e.perfumes.some(function(e){return e.id===parseInt(t.id)})&&(i=!0,r=e.name)}),void 0!==e.input_data.featured&&e.input_data.featured&&EventBus.fire("featured-perfumes-update",e.shelf.perfumes),i){var o={message:notificationsLangVar.perfume_is_already_on_your_shelf+" "+r};EventBus.fire("voted",o)}else{e.shelf.perfumes.unshift(n),"custom"===e.shelf.type||e.shelf.featured||e.voteFromShelf(n.id,e.shelf.field,e.shelf.value);var s={shelf_name:e.shelf.value,idz:e.shelf.perfumes.map(function(e){return[e.id]}).join(",")};e.updateShelf(s)}}),EventBus.listen("close-dropdown-menu",function(t){e.indexValue=null})},methods:{perfumeRef:function(e){if(e)return"perfume-"+e.id+"-"+this.shelf.field+"-"+this.shelf.value+"-"+this.shelf.type},markAsFeaturedShelf:function(){if(!this.canEdit)return!1;var e=1;this.input_data.featured&&(e=0);var t=new URLSearchParams;t.append("action","customShelf"),t.append("mode","featured"),t.append("featured_value",e),t.append("shelfName",this.shelf.value),this.$axios.post("/ajax.php?"+(new Date).getTime(),t,{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(e){gimmeGoods(e.data).then(function(e){EventBus.fire("shelves-loaded-wardrobe",Object.freeze(e).filter(function(e){return"wardrobe"===e.type})),EventBus.fire("shelves-loaded-custom",Object.freeze(e).filter(function(e){return"custom"===e.type}))})})},checkMove:function(e){return e.to.classList[1]===e.from.classList[1]||!e.relatedContext.list.some(function(t){return t.id===parseInt(e.draggedContext.element.id)})&&void 0},showDropdownShelfsMenu:function(e){var t=e;this.indexValue==e?(t=null,this.indexValue=null):this.indexValue=e,EventBus.fire("show-shelfs-menu-dropdown",t)},toggleMemberToolsSwitch:function(){EventBus.fire("toggle-member-options",!this.$parent.memberTools)},perfumeName:function(e){return e.dizajner+" "+e.naslov},confirmDeletePerfumeFromShelf:function(e){var t=this;n.e(41).then(n.bind(null,989)).then(function(n){n.fire({title:""+memberProfileLangVar.delete_alert_title+"",html:'

'+memberProfileLangVar.delete_alert_question+"

",showCloseButton:!0,showDenyButton:!0,denyButtonColor:"#008B92",confirmButtonColor:"#cc4b37",confirmButtonText:' '+memberProfileLangVar.delete_yes,denyButtonText:' '+memberProfileLangVar.delete_cancel}).then(function(n){if(n.isConfirmed)t.removePerfume(e);else if(n.isDenied)return!1})})},removePerfume:function(e){this.shelf.perfumes.splice(this.shelf.perfumes.indexOf(e),1),"custom"===this.shelf.type||this.shelf.featured||this.voteFromShelf(e.id,this.shelf.field,"none");var t={shelf_name:this.shelf.value,idz:this.shelf.perfumes.map(function(e){return[e.id]}).join(",")};this.updateShelf(t)},cancelEditShelfName:function(){this.shelf.name=this.orgShelfName,this.showShelfName=!0},confirmDeleteCustomShelf:function(){var e=this;n.e(41).then(n.bind(null,989)).then(function(t){t.fire({icon:"warning",title:"Wait wait!",html:"

Do you want to delete?

",showCloseButton:!0,showDenyButton:!0,denyButtonColor:"#008B92",confirmButtonColor:"#cc4b37",confirmButtonText:' Yes, just delete',denyButtonText:' Cancel'}).then(function(t){if(t.isConfirmed)e.deleteCustomShelf();else if(t.isDenied)return!1})})},deleteCustomShelf:function(){var e=this,t=new URLSearchParams;t.append("action","customShelf"),t.append("mode","delete"),t.append("shelfName",this.shelf.value),this.$axios.post("/ajax.php?"+(new Date).getTime(),t,{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(t){gimmeGoods(t.data).then(function(e){EventBus.fire("shelves-loaded-wardrobe",Object.freeze(e).filter(function(e){return"wardrobe"===e.type})),EventBus.fire("shelves-loaded-custom",Object.freeze(e).filter(function(e){return"custom"===e.type}))}),e.showShelfName=!0})},updateShelfName:function(){var e=this;void 0!==this.input_data.featured&&this.input_data.featured&&EventBus.fire("featured-name-update",this.shelf.name);var t=new URLSearchParams;t.append("action","customShelf"),t.append("mode","edit"),t.append("shelfName",this.shelf.value),t.append("newShelfName",this.shelf.name),this.$axios.post("/ajax.php?"+(new Date).getTime(),t,{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(t){e.showShelfName=!0})},showEditableShelfName:function(){this.canEdit&&(this.showShelfName=!1,this.$nextTick(function(){this.$refs.shelfname.focus()}))},voteFromShelf:function(e,t,n){var i=new FormData;i.append("perfume_id",e),i.append("type",t),i.append("vote",n),i.append("action","voteStatus"),this.$axios({method:"post",header:{"Content-Type":"application/x-www-form-urlencoded"},url:"/ajax.php?"+(new Date).getTime(),data:i}).then(function(e){}).catch(function(e){})},onChange:function(e,t){var n={shelf_name:this.shelf.value,idz:this.shelf.perfumes.map(function(e){return[e.id]}).join(",")};if(e.added){var i=e.added.element.id;"custom"===this.shelf.type||this.shelf.featured||this.voteFromShelf(i,t.field,t.value)}void 0!==this.input_data.featured&&this.input_data.featured&&EventBus.fire("featured-perfumes-update",this.shelf.perfumes),this.updateShelf(n)},perfumeThumb:function(e){return"https://fimgs.net/mdimg/perfume/t."+e+".jpg"},updateShelf:function(e){var t=new URLSearchParams;t.append("action","shelf_member"),t.append("update_shelf_data",JSON.stringify(e)),this.$axios.post("/ajax.php?"+(new Date).getTime(),t,{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(e){})}},beforeDestroy:function(){this.observer&&this.observer.disconnect()}}},1330:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:["inputIndex","shelves"],name:"ShelfsDropDownMenu",data:function(){return{index:null,shelfNames:[]}},created:function(){this.shelfNames=this.shelves.map(function(e){return{name:e.name,value:e.value}})},mounted:function(){var e=this;EventBus.listen("show-shelfs-menu-dropdown",function(t){e.index=t})},methods:{onClick:function(){this.index=null,EventBus.fire("close-dropdown-menu",null)},hrefShelfValue:function(e){return"#"+e}}}},1332:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"AddingCustomShelf",data:function(){return{shelfName:"",customShelf:!0}},computed:{customShelfTitle:function(){return memberProfileLangVar.add_custom_shelf}},methods:{addingCustomShelf:function(){var e=this;if(0===this.shelfName.length)return!1;var t=new URLSearchParams;t.append("action","customShelf"),t.append("mode","add"),t.append("shelfName",this.shelfName),this.$axios.post("/ajax.php?"+(new Date).getTime(),t,{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(t){gimmeGoods(t.data).then(function(e){EventBus.fire("shelves-loaded-custom",e.filter(function(e){return"custom"===e.type}))}),e.shelfName=""})}}}},1333:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:["memberId"],name:"MemberFragram",data:function(){return{photos:[]}},created:function(){this.getUserFragramPhotos()},methods:{getUserFragramPhotos:function(){var e=this;if(!1===e_fragram_photos){var t=new URLSearchParams;t.append("action","user_fragram_photos"),t.append("user_id",this.memberId),this.$axios.post("/ajax.php?"+(new Date).getTime(),t,{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(t){gimmeGoods(t.data).then(function(t){e.photos=t.photos})})}else gimmeGoods(e_fragram_photos).then(function(t){e.photos=t.photos})},isLiked:function(e){return this.photos[e].liked?"color-crimson":"color-dark-gray"},isLikedIcon:function(e){return this.photos[e].liked?"fas fa-heart":"far fa-heart"},toggleLike:function(e){var t=this;if(!user_logged)return!1;var n=void 0;t.photos[e].liked?(n="unlike",t.photos[e].liked=!1):(n="like",t.photos[e].liked=!0);var i=new FormData;i.append("action","toggle_fragram_photo_like"),i.append("photo_id",t.photos[e].id),i.append("mode",n),this.$axios({method:"post",header:{"Content-Type":"application/x-www-form-urlencoded"},url:"/ajax.php?"+(new Date).getTime(),data:i}).then(function(n){t.photos[e].likes_count=n.data}).catch(function(e){})},showCount:function(e,t){var n=void 0;if("likes"===t&&(n=this.photos[e].likes_count),"comments"===t&&(n=this.photos[e].comments_count),"reactions"===t&&(n=this.photos[e].reactions_count),n>0)return n}}}},1334:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(1649),o=(i=r)&&i.__esModule?i:{default:i};t.default={props:["title","changeTitle","public","memberId","sendMessageTitle","memberUsername"],name:"FavoritesShelf",components:{MyFavoritesDialog:o.default,draggable:function(){return n.e(48).then(n.bind(null,446))}},data:function(){return{favoritePerfumes:[],drag:!1,memberTools:!0}},computed:{disabledDragging:function(){return!this.canEdit||!this.memberToolsSwitch},memberToolsSwitch:function(){return this.memberTools},noTopTitle:function(){return memberProfileLangVar.no_top},canEdit:function(){return!this.public},dragOptions:function(){return{forceFallback:!(navigator.userAgent.toLowerCase().indexOf("firefox")>-1)}}},mounted:function(){var e=this;gimmeGoods(favorite_shelf).then(function(t){e.favoritePerfumes=t}),localStorage.memberOptionsSwitch?e.memberTools=JSON.parse(localStorage.memberOptionsSwitch):e.memberTools=!1,EventBus.listen("toggle-member-options",function(t){e.memberTools=t})},methods:{privateMessageLink:function(){window.location="/board/misc.php?section=pun_pm&pmpage=compose&receiver_id="+this.memberId},onChange:function(e){var t={idz:this.favoritePerfumes.map(function(e){return[e.id]}).join(",")};this.updateShelf(t)},updateShelf:function(e){var t=new URLSearchParams;t.append("action","setFavoritePerfumes"),t.append("update_shelf_data",JSON.stringify(e)),this.$axios.post("/ajax.php?"+(new Date).getTime(),t,{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(e){})},perfumeThumb:function(e){return"https://fimgs.net/mdimg/perfume/t."+e+".jpg"}}}},1335:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:["memberId","myFavoritePerfumes"],name:"MyFavoritesDialog",components:{"shelf-perfume-search":function(){return n.e(43).then(n.bind(null,1196))}},data:function(){return{myPerfumesFromWardrobe:[],myFavorites:[],section:"favorites"}},computed:{typeForParticularTitle:function(){return memberProfileLangVar.type_for_particular},chooseFromWardrobeTitle:function(){return memberProfileLangVar.choose_from_wardrobe},canEdit:function(){return this.$root.isLogged&&this.$root.loggedUserId===this.memberId}},mounted:function(){var t=this;new Foundation.Reveal(e("#MyFavoritesDialog")),e("#MyFavoritesDialog").on("open.zf.reveal",function(){this.getPerfumeIHaveShelves()}.bind(this)),EventBus.listen("shelf-perfume-suggestion-"+t.section+"-"+t.section,function(e){var n={dizajner:e.dizajner,id:parseInt(e.id),naslov:e.naslov,url:e.url[xml_lang][0]};t.addPerfumeToFavorites(n)}),EventBus.listen("update-i-have-perfumes",function(e){t.myPerfumesFromWardrobe=e})},methods:{getPerfumeIHaveShelves:function(){var e=this;if(!1===e_shelfs){var t=new URLSearchParams;t.append("action","fetchIHavePerfumes"),e.$axios.post("/ajax.php?"+(new Date).getTime(),t,{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(t){gimmeGoods(t.data).then(function(t){e.myPerfumesFromWardrobe=t,e.myFavorites=e.myFavoritePerfumes})})}else e.$nextTick(function(){gimmeGoods(e_shelfs).then(function(t){var n=t.filter(function(e){return"have"===e.value});e.myPerfumesFromWardrobe=n[0].perfumes,e.myFavorites=e.myFavoritePerfumes})})},perfumeMm:function(e){return"https://fimgs.net/mdimg/perfume/mm."+e+".jpg"},perfumeThumb:function(e){return"https://fimgs.net/mdimg/perfume/t."+e+".jpg"},addPerfumeToFavorites:function(e){this.myFavorites.some(function(t){return t.id===e.id})||(this.myFavorites.length>4&&this.myFavorites.splice(-1,1),this.myFavorites.push(e));var t={idz:this.myFavorites.map(function(e){return[e.id]}).join(",")};this.updateShelf(t)},confirmDeletePerfumeFromShelf:function(e){var t=this;n.e(41).then(n.bind(null,989)).then(function(n){n.fire({icon:"warning",title:""+memberProfileLangVar.delete_alert_title+"",html:"

"+memberProfileLangVar.delete_alert_question+"

",showCloseButton:!0,showDenyButton:!0,denyButtonColor:"#008B92",confirmButtonColor:"#cc4b37",confirmButtonText:' '+memberProfileLangVar.delete_yes,denyButtonText:' '+memberProfileLangVar.delete_cancel}).then(function(n){if(n.isConfirmed)t.removePerfume(e);else if(n.isDenied)return!1})})},removePerfume:function(e){this.myFavorites.splice(this.myFavorites.indexOf(e),1);var t={idz:this.myFavorites.map(function(e){return e.id}).join(",")};this.updateShelf(t)},updateShelf:function(e){var t=new URLSearchParams;t.append("action","setFavoritePerfumes"),t.append("update_shelf_data",JSON.stringify(e)),this.$axios.post("/ajax.php?"+(new Date).getTime(),t,{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(e){})}}}}).call(t,n(10))},1336:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(1652),o=(i=r)&&i.__esModule?i:{default:i};t.default={components:{MySignatureDialog:o.default},props:["title","changeTitle","perfume","public","memberId","perfumeTimelineTitle"],name:"SignatureShelf",data:function(){return{signaturePerfume:this.perfume,section:"signature",memberTools:!0,timelineLang:currentlyWearingLanguage}},computed:{memberToolsSwich:function(){return this.memberTools},noSignatureTitle:function(){return memberProfileLangVar.no_signature},canEdit:function(){return!this.public},signaturePerfumeThumbnail:function(){return image_perfumes_path+"mdimg/perfume/m."+this.signaturePerfume.id+".jpg"}},mounted:function(){var e=this;EventBus.listen("shelf-perfume-suggestion-"+e.section+"-"+e.section,function(t){var n={dizajner:t.dizajner,id:parseInt(t.id),naslov:t.naslov,url:t.url[xml_lang][0]};e.signaturePerfume=n}),localStorage.memberOptionsSwitch?e.memberTools=JSON.parse(localStorage.memberOptionsSwitch):e.memberTools=!1,EventBus.listen("toggle-member-options",function(t){e.memberTools=t})},methods:{openMemberPerfumeTimeline:function(){EventBus.fire("loadperfumetimeline-member")},confirmDeletePerfumeFromShelf:function(){var e=this;n.e(41).then(n.bind(null,989)).then(function(t){t.fire({icon:"warning",title:""+memberProfileLangVar.delete_alert_title+"",html:"

"+memberProfileLangVar.delete_alert_question+"

",showCloseButton:!0,showDenyButton:!0,denyButtonColor:"#008B92",confirmButtonColor:"#cc4b37",confirmButtonText:' '+memberProfileLangVar.delete_yes,denyButtonText:' '+memberProfileLangVar.delete_cancel}).then(function(t){if(t.isConfirmed)e.removePerfume();else if(t.isDenied)return!1})})},removePerfume:function(){this.signaturePerfume=null,this.setNewSignature("none")},setNewSignature:function(e){var t=new URLSearchParams;t.append("action","setMyPerfume"),t.append("mySection",this.section),t.append("perfume_id",e),this.$axios.post("/ajax.php?"+(new Date).getTime(),t,{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(e){})}}}},1337:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default={components:{"shelf-perfume-search":function(){return n.e(43).then(n.bind(null,1196))}},props:["memberId"],name:"MySignatureDialog",data:function(){return{myPerfumesFromWardrobe:[],section:"signature"}},computed:{typeForParticularTitle:function(){return memberProfileLangVar.type_for_particular},chooseFromWardrobeTitle:function(){return memberProfileLangVar.choose_from_wardrobe}},mounted:function(){var t=this;new Foundation.Reveal(e("#MySignatureDialog")),e("#MySignatureDialog").on("open.zf.reveal",function(){this.getPerfumeIHaveShelves()}.bind(this)),EventBus.listen("shelf-perfume-suggestion-"+t.section+"-"+t.section,function(e){var n={dizajner:e.dizajner,id:parseInt(e.id),naslov:e.naslov,url:e.url[xml_lang][0]};t.setNewSignature(n)}),EventBus.listen("update-i-have-perfumes",function(e){t.myPerfumesFromWardrobe=e})},methods:{getPerfumeIHaveShelves:function(){var e=this;if(!1===e_shelfs){var t=new URLSearchParams;t.append("action","fetchIHavePerfumes"),e.$axios.post("/ajax.php?"+(new Date).getTime(),t,{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(t){gimmeGoods(t.data).then(function(t){e.myPerfumesFromWardrobe=t})})}else e.$nextTick(function(){gimmeGoods(e_shelfs).then(function(t){var n=t.filter(function(e){return"have"===e.value});e.myPerfumesFromWardrobe=n[0].perfumes})})},perfumeMm:function(e){return"https://fimgs.net/mdimg/perfume/mm."+e+".jpg"},perfumeThumb:function(e){return"https://fimgs.net/mdimg/perfume/t."+e+".jpg"},setNewSignature:function(e){var t=this,n=new URLSearchParams;n.append("action","setMyPerfume"),n.append("mySection",this.section),n.append("perfume_id",e.id),this.$axios.post("/ajax.php?"+(new Date).getTime(),n,{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(n){t.$parent.signaturePerfume=e})}}}}).call(t,n(10))},1338:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(1655),o=(i=r)&&i.__esModule?i:{default:i};t.default={components:{TinyEditor:o.default},props:["inputDescription","memberId"],name:"MemberProfileDescription",data:function(){return{profileDescription:this.inputDescription,showProfileDescription:!0,orgProfileDescription:"",newProfileDescription:""}},computed:{getTinyApiKey:function(){return tinyApiKey},canEdit:function(){return this.$root.isLogged&&this.$root.loggedUserId===this.memberId}},mounted:function(){this.orgProfileDescription=this.profileDescription},methods:{showEditableProfileDescription:function(){this.canEdit&&(this.showProfileDescription=!1,this.$nextTick(function(){this.$refs.profiledescription.$el.focus()}))},cancelProfileDescription:function(){this.profileDescription=this.orgProfileDescription,this.showProfileDescription=!0},updateProfileDescription:function(){var e=this,t=new URLSearchParams;t.append("action","editMemberProfileDescription"),t.append("opis",this.profileDescription),this.$axios.post("/ajax.php?"+(new Date).getTime(),t,{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(t){e.showProfileDescription=!0})}}}},1339:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:["memberId"],name:"MemberToolsSwitch",data:function(){return{checkbox:!1}},computed:{canEdit:function(){return this.$root.isLogged&&this.$root.loggedUserId===this.memberId},memberToolsTitle:function(){return memberProfileLangVar.member_tools},memberToolsTitleOn:function(){return memberProfileLangVar.member_tools_on},memberToolsTitleOff:function(){return memberProfileLangVar.member_tools_off}},mounted:function(){var e=this;localStorage.memberOptionsSwitch?e.checkbox=JSON.parse(localStorage.memberOptionsSwitch):e.checkbox=!1,EventBus.listen("toggle-member-options",function(t){e.checkbox=t,localStorage.memberOptionsSwitch=t})},methods:{onChange:function(){localStorage.memberOptionsSwitch=!this.checkbox,this.checkbox=!this.checkbox,EventBus.fire("toggle-member-options",this.checkbox)}}}},1340:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:["memberId"],name:"ShelvesLoader",created:function(){this.getUserShelves()},methods:{getUserShelves:function(){if(!1===e_shelfs){var e=new URLSearchParams;e.append("action","user_shelves"),e.append("user_id",this.memberId),this.$axios.post("/ajax.php?"+(new Date).getTime(),e,{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(e){gimmeGoods(e.data).then(function(e){var t=e.filter(function(e){return"wardrobe"===e.type});EventBus.fire("shelves-loaded-wardrobe",t);var n=e.filter(function(e){return"myvotes"===e.type});EventBus.fire("shelves-loaded-myvotes",n);var i=e.filter(function(e){return"custom"===e.type});EventBus.fire("shelves-loaded-custom",i)})})}else this.$nextTick(function(){gimmeGoods(e_shelfs).then(function(e){var t=e.filter(function(e){return"wardrobe"===e.type});EventBus.fire("shelves-loaded-wardrobe",t);var n=e.filter(function(e){return"myvotes"===e.type});EventBus.fire("shelves-loaded-myvotes",n);var i=e.filter(function(e){return"custom"===e.type});EventBus.fire("shelves-loaded-custom",i)})})}}}},1633:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1329),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,function(){return i[e]})}(o);var s=n(1642),a=n(1);var l=function(e){n(1634)},u=Object(a.a)(r.a,s.a,s.b,!1,l,null,null);t.default=u.exports},1634:function(e,t,n){var i=n(1635);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);(0,n(3).default)("245eed63",i,!0,{})},1635:function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"[v-cloak]{display:none}",""])},1636:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1330),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,function(){return i[e]})}(o);var s=n(1637),a=n(1),l=Object(a.a)(r.a,s.a,s.b,!1,null,null,null);t.default=l.exports},1637:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.inputIndex===e.index?n("div",{staticStyle:{display:"flex",position:"absolute",right:"0",background:"rgba(255,255,255,0.9)","z-index":"1020"}},[n("ul",{staticStyle:{display:"flex","flex-direction":"column","list-style-type":"none"}},e._l(e.shelfNames,function(t,i){return n("li",{staticStyle:{"flex-grow":"1"}},[n("a",{staticStyle:{display:"block",width:"6rem","text-decoration":"none","text-align":"left","font-size":"small",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},attrs:{href:e.hrefShelfValue(t.value)},on:{click:e.onClick}},[e._v("\n "+e._s(t.name)+"\n ")])])}),0)]):e._e()},r=[]},1642:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.showShelf?n("div",{staticStyle:{background:"white",padding:"5px 0 5px 0",position:"relative"},attrs:{"sticky-container":""}},["custom"!==e.shelf.type?[n("div",{directives:[{name:"sticky",rawName:"v-sticky",value:e.shouldStick,expression:"shouldStick"}],staticClass:"cell small-12 bg-light-gray",staticStyle:{background:"rgba(255,255,255,0.8)",position:"relative"}},[n("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"end","margin-top":"20px"},attrs:{id:e.shelf.value}},[n("h4",[e._v(e._s(e.shelf.name)+" "),e.shelf.featured?n("span",[n("svg",{class:[{"color-crimson":e.isFeatured},"color-dark-gray"],staticStyle:{display:"inline-flex",width:"1.3rem",height:"1.3rem",cursor:"pointer"},attrs:{fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(t){return e.markAsFeaturedShelf()}}},[n("path",{attrs:{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"}})])]):e._e(),e._v(" "),n("small",{staticStyle:{"font-size":"small"}},[e._v("("+e._s(e.shelf.perfumes.length)+")")])]),e._v(" "),n("div",{staticStyle:{display:"flex","align-items":"end","justify-content":"end"}},[n("svg",{class:[{"color-crimson":null!==this.indexValue},"color-dark-gray"],staticStyle:{display:"inline-flex",width:"1.3rem",height:"1.3rem",cursor:"pointer"},attrs:{fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(t){return e.showDropdownShelfsMenu(e.$vnode.key)}}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z","clip-rule":"evenodd"}})]),e._v(" "),e.canEdit?n("svg",{class:[{"color-crimson":e.$parent.memberToolsSwitch},"color-dark-gray"],staticStyle:{display:"inline-flex",width:"1.3rem",height:"1.3rem",cursor:"pointer"},attrs:{fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},on:{click:e.toggleMemberToolsSwitch}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z","clip-rule":"evenodd"}})]):e._e()])]),e._v(" "),n("shelfs-drop-down-menu",{attrs:{"input-index":this.$vnode.key,shelves:e.shelvesInfo}})],1)]:e._e(),e._v(" "),"custom"===e.shelf.type?[e.showShelfName?n("div",{staticClass:"cell small-12",staticStyle:{position:"relative"}},[n("div",{directives:[{name:"sticky",rawName:"v-sticky",value:e.shouldStick,expression:"shouldStick"}],staticClass:"cell small-12 bg-light-gray",staticStyle:{background:"rgba(255,255,255,0.8)","padding-top":"1.6rem",position:"relative"}},[n("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"end","margin-top":"20px"},attrs:{id:e.shelf.value}},[n("h4",[e._v(e._s(e.shelf.name)+" "),n("small",{staticStyle:{"font-size":"small"}},[e._v("("+e._s(e.shelf.perfumes.length)+")")])]),e._v(" "),n("div",{staticStyle:{display:"flex","align-items":"end","justify-content":"end"}},[n("svg",{class:[{"color-crimson":null!==this.indexValue},"color-dark-gray"],staticStyle:{display:"inline-flex",width:"1.3rem",height:"1.3rem",cursor:"pointer"},attrs:{fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(t){return e.showDropdownShelfsMenu(e.$vnode.key)}}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z","clip-rule":"evenodd"}})]),e._v(" "),e.canEdit?n("svg",{class:[{"color-crimson":e.isFeatured},"color-dark-gray"],staticStyle:{display:"inline-flex",width:"1.3rem",height:"1.3rem",cursor:"pointer"},attrs:{fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(t){return e.markAsFeaturedShelf()}}},[n("path",{attrs:{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"}})]):e._e(),e._v(" "),e.canEdit?n("svg",{staticClass:"color-dark-gray",staticStyle:{display:"inline-flex",width:"1.3rem",height:"1.3rem",cursor:"pointer"},attrs:{fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},on:{click:e.showEditableShelfName}},[n("path",{attrs:{d:"M17.414 2.586a2 2 0 00-2.828 0L7 10.172V13h2.828l7.586-7.586a2 2 0 000-2.828z"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd",d:"M2 6a2 2 0 012-2h4a1 1 0 010 2H4v10h10v-4a1 1 0 112 0v4a2 2 0 01-2 2H4a2 2 0 01-2-2V6z","clip-rule":"evenodd"}})]):e._e(),e._v(" "),e.canEdit?n("svg",{class:[{"color-crimson":e.$parent.memberToolsSwitch},"color-dark-gray"],staticStyle:{display:"inline-flex",width:"1.3rem",height:"1.3rem",cursor:"pointer"},attrs:{fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},on:{click:e.toggleMemberToolsSwitch}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z","clip-rule":"evenodd"}})]):e._e()])]),e._v(" "),n("shelfs-drop-down-menu",{attrs:{"input-index":this.$vnode.key,shelves:e.shelves}})],1)]):e._e(),e._v(" "),e.showShelfName?e._e():n("input",{directives:[{name:"model",rawName:"v-model",value:e.shelf.name,expression:"shelf.name"}],ref:"shelfname",staticClass:"bg-medium-gray",attrs:{type:"text",maxlength:"50"},domProps:{value:e.shelf.name},on:{input:function(t){t.target.composing||e.$set(e.shelf,"name",t.target.value)}}}),e._v(" "),!e.showShelfName&&e.canEdit?n("div",{staticStyle:{display:"flex","justify-content":"flex-end","align-items":"center","margin-top":"4px"}},[n("button",{staticClass:"button tiny",staticStyle:{"margin-left":"5px"},on:{click:function(t){return e.cancelEditShelfName()}}},[e._v("\n "+e._s(e.cancelTitle)+"\n ")]),e._v(" "),n("button",{staticClass:"button tiny",staticStyle:{"margin-left":"5px"},on:{click:function(t){return e.updateShelfName()}}},[e._v("\n "+e._s(e.updateTitle)+"\n ")]),e._v(" "),n("button",{staticClass:"button tiny alert",staticStyle:{"margin-left":"5px"},on:{click:function(t){return e.confirmDeleteCustomShelf()}}},[e._v("\n "+e._s(e.deleteTitle)+"\n ")])]):e._e()]:e._e(),e._v(" "),e.canEdit?n("shelf-perfume-search",{attrs:{"shelf-name":e.shelf.name,"shelf-type":e.shelf.type,"shelf-id":e.shelfId}}):e._e(),e._v(" "),n("draggable",e._b({attrs:{"ghost-class":"sortable-ghost",handle:".shelf-element",disabled:e.disabledDragging,move:e.checkMove},on:{change:function(t){return e.onChange(t,e.shelf)}},model:{value:e.shelf.perfumes,callback:function(t){e.$set(e.shelf,"perfumes",t)},expression:"shelf.perfumes"}},"draggable",e.dragOptions,!1),[n("transition-group",{staticClass:"grid-x",class:e.shelf.field+e.shelf.value+e.shelf.type,attrs:{type:"transition",name:e.drag?null:"flip-list",tag:"div"}},e._l(e.shelfPerfumesChunks,function(t,i){return n("div",{key:t.id+e.shelf.field+e.shelf.value+e.shelf.type,staticClass:"cell small-2 medium-1 shelf-element text-center"},[n("a",{attrs:{href:t.url}},[n("img",{staticClass:"perfume-on-shelf",attrs:{loading:"lazy",src:e.perfumeThumb(t.id),alt:e.perfumeName(t),title:e.perfumeName(t)}})]),e._v(" "),e.canEdit&&e.$parent.memberToolsSwitch?n("div",{staticClass:"color-crimson member-tools shelf-delete-perfume",on:{click:function(n){return e.confirmDeletePerfumeFromShelf(t)}}},[n("svg",{attrs:{fill:"currentColor",viewBox:"0 0 20 20"}},[n("path",{attrs:{d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd","fill-rule":"evenodd"}})])]):e._e()])}),0)],1),e._v(" "),n("div",{ref:e.shelfRef,staticClass:"bottom-shelf"})],2):e._e()},r=[]},1643:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1332),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,function(){return i[e]})}(o);var s=n(1644),a=n(1),l=Object(a.a)(r.a,s.a,s.b,!1,null,null,null);t.default=l.exports},1644:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.customShelf?n("div",{staticClass:"grid-x"},[n("div",{staticClass:"cell small-12"},[n("h3",[n("small",[e._v(e._s(e.customShelfTitle))])])]),e._v(" "),n("div",{staticClass:"cell small-12"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.shelfName,expression:"shelfName"}],attrs:{type:"text",placeholder:e.customShelfTitle,maxlength:"50"},domProps:{value:e.shelfName},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addingCustomShelf(t)},input:function(t){t.target.composing||(e.shelfName=t.target.value)}}})])]):e._e()},r=[]},1645:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.showLoader?[e._m(0)]:[e.isCustomShelf&&e.canAddCustomShelf?n("adding-custom-shelf"):e._e(),e._v(" "),e._l(e.shelfs,function(t,i){return n("shelf",{key:e.uniqueShelfKey(t),attrs:{input_data:t,"member-id":e.memberId,shelves:Object.freeze(e.shelfs),"shelves-info":e.shelvesReduce,"show-switch":e.showMembersToolsSwitch}})})]],2)},r=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"grid-x grid-margin-x text-center"},[t("div",{staticClass:"cell"},[t("img",{staticStyle:{width:"3rem",height:"3rem"},attrs:{src:"https://media.giphy.com/media/sSgvbe1m3n93G/giphy.gif"}})])])}]},1646:function(e,t,n){var i=n(1647);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);(0,n(3).default)("7e7be4f3",i,!0,{})},1647:function(e,t,n){(e.exports=n(2)(!1)).push([e.i,"[v-cloak]{display:none}",""])},1648:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"grid-x grid-margin-x grid-margin-y",staticStyle:{"background-color":"#f8fafc"}},e._l(e.photos,function(t,i){return n("div",{key:i,staticClass:"cell small-6 medium-3 bg-white"},[n("div",{staticStyle:{position:"relative","padding-top":"75%"}},[n("a",{attrs:{href:t.photo_url,target:"_blank"}},[n("img",{staticStyle:{position:"absolute",width:"100%",height:"100%","object-fit":"cover",display:"block",top:"0",left:"0",right:"0",bottom:"0",padding:"2px"},attrs:{loading:"lazy",src:t.photo_image_url.thumbnail}})])]),e._v(" "),n("div",{staticStyle:{display:"flex","justify-content":"start","align-items":"center"}},[t.liked?[n("svg",{class:e.isLiked(i),staticStyle:{width:"1.1rem",height:"1.1rem",display:"inline-flex",cursor:"pointer"},attrs:{fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(t){return e.toggleLike(i)}}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M3.172 5.172a4 4 0 015.656 0L10 6.343l1.172-1.171a4 4 0 115.656 5.656L10 17.657l-6.828-6.829a4 4 0 010-5.656z","clip-rule":"evenodd"}})]),e._v(" "),n("span",{staticClass:"color-dark-gray",class:e.isLiked(i)},[e._v(" "+e._s(e.showCount(i,"likes")))])]:[n("svg",{class:e.isLiked(i),staticStyle:{width:"1.1rem",height:"1.1rem",display:"inline-flex",cursor:"pointer"},attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(t){return e.toggleLike(i)}}},[n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"}})]),e._v(" "),n("span",{staticClass:"color-dark-gray",class:e.isLiked(i)},[e._v(" "+e._s(e.showCount(i,"likes")))])],e._v(" "),n("svg",{staticClass:"color-dark-gray",staticStyle:{width:"1.1rem",height:"1.1rem",display:"inline-flex",cursor:"pointer","margin-left":"5px"},attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"}})]),e._v(" "),n("span",{staticClass:"color-dark-gray"},[e._v(" "+e._s(e.showCount(i,"comments")))]),e._v(" "),n("svg",{staticClass:"color-dark-gray",staticStyle:{width:"1.1rem",height:"1.1rem",display:"inline-flex",cursor:"pointer","margin-left":"5px"},attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M14.828 14.828a4 4 0 01-5.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}})]),e._v(" "),n("span",{staticClass:"color-dark-gray"},[e._v(" "+e._s(e.showCount(i,"reactions")))])],2)])}),0)},r=[]},1649:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1335),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,function(){return i[e]})}(o);var s=n(1650),a=n(1),l=Object(a.a)(r.a,s.a,s.b,!1,null,null,null);t.default=l.exports},1650:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"reveal tiny",attrs:{id:"MyFavoritesDialog","data-reveal":""}},[n("div",{staticClass:"grid-container"},[n("div",{staticClass:"grid-x grid-margin-x"},[n("div",{staticClass:"cell small-12"},[n("h4",[e._v(e._s(e.typeForParticularTitle))])]),e._v(" "),n("div",{staticClass:"cell small-12"},[n("div",{staticClass:"grid-x grid-margin-x",staticStyle:{"margin-bottom":"10px",display:"flex","justify-content":"center","align-items":"center"}},e._l(e.myFavorites,function(t,i){return n("div",{key:t.id,staticClass:"cell small-2 medium-2",staticStyle:{position:"relative"}},[n("a",{attrs:{href:t.url}},[n("img",{attrs:{src:e.perfumeThumb(t.id)}})]),e._v(" "),e.canEdit?n("div",{staticClass:"color-crimson",staticStyle:{position:"absolute",top:"0",right:"0",opacity:"0.4"},on:{click:function(n){return e.confirmDeletePerfumeFromShelf(t)}}},[n("svg",{staticStyle:{width:"1rem",height:"1rem"},attrs:{fill:"currentColor",viewBox:"0 0 20 20"}},[n("path",{attrs:{d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd","fill-rule":"evenodd"}})])]):e._e()])}),0)])])]),e._v(" "),n("div",{staticClass:"grid-container"},[n("div",{staticClass:"grid-x grid-margin-x"},[n("div",{staticClass:"cell small-12"},[n("shelf-perfume-search",{attrs:{"shelf-name":e.section,"shelf-id":e.section,"shelf-type":e.section}})],1)])]),e._v(" "),n("div",{staticClass:"grid-container bg-white",staticStyle:{overflow:"auto","min-height":"200px","max-height":"350px"}},[n("div",{staticClass:"grid-x grid-margin-x",staticStyle:{position:"relative",margin:"0.5rem 0 0","padding-bottom":"0.5rem"}},[n("div",{staticClass:"cell small-12 text-center"},[e._v("\n "+e._s(e.chooseFromWardrobeTitle)+"\n ")]),e._v(" "),e._l(e.myPerfumesFromWardrobe,function(t,i){return n("div",{staticClass:"cell small-2",staticStyle:{cursor:"pointer"}},[n("img",{attrs:{src:e.perfumeMm(t.id)},on:{click:function(n){return e.addPerfumeToFavorites(t)}}})])})],2)]),e._v(" "),e._m(0)])},r=[function(){var e=this.$createElement,t=this._self._c||e;return t("button",{staticClass:"close-button",attrs:{"data-close":"","aria-label":"Close modal",type:"button"}},[t("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])])}]},1651:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{display:"flex","flex-direction":"column","justify-content":"space-between"}},[n("div",{staticStyle:{"margin-top":"0rem",padding:"5px 0 5px 0",position:"relative"}},[e.favoritePerfumes.length?e._e():n("span",{staticStyle:{display:"flex","margin-bottom":"5px","justify-content":"center"}},[e._v(e._s(e.noTopTitle))]),e._v(" "),n("draggable",e._b({attrs:{handle:".shelf-element",disabled:e.disabledDragging},on:{change:function(t){return e.onChange(t)}},model:{value:e.favoritePerfumes,callback:function(t){e.favoritePerfumes=t},expression:"favoritePerfumes"}},"draggable",e.dragOptions,!1),[n("transition-group",{staticClass:"grid-x",staticStyle:{display:"flex","justify-content":"center","align-items":"center"},attrs:{type:"transition",name:e.drag?null:"flip-list",tag:"div"}},e._l(e.favoritePerfumes,function(t,i){return n("div",{key:t.id,staticClass:"cell small-2 medium-2 shelf-element"},[n("a",{attrs:{href:t.url}},[n("img",{staticClass:"perfume-on-shelf",staticStyle:{"mix-blend-mode":"multiply"},attrs:{loading:"lazy",src:e.perfumeThumb(t.id)}})])])}),0)],1),e._v(" "),n("div",{staticClass:"bottom-shelf"})],1),e._v(" "),e.canEdit&&!e.public?n("div",[n("span",{attrs:{"data-open":"MyFavoritesDialog"}},[n("button",{staticClass:"button tiny",staticStyle:{cursor:"pointer"}},[e._v(e._s(e.changeTitle))])]),e._v(" "),n("my-favorites-dialog",{attrs:{"member-id":e.memberId,"my-favorite-perfumes":e.favoritePerfumes}})],1):e._e()])},r=[]},1652:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1337),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,function(){return i[e]})}(o);var s=n(1653),a=n(1),l=Object(a.a)(r.a,s.a,s.b,!1,null,null,null);t.default=l.exports},1653:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"reveal tiny",attrs:{id:"MySignatureDialog","data-reveal":""}},[n("div",{staticClass:"grid-container"},[n("div",{staticClass:"grid-x grid-margin-x"},[n("div",{staticClass:"cell small-12"},[n("h4",[e._v(e._s(e.typeForParticularTitle))])]),e._v(" "),n("div",{staticClass:"cell small-12"},[n("shelf-perfume-search",{attrs:{"shelf-name":e.section,"shelf-id":e.section,"shelf-type":e.section}})],1)])]),e._v(" "),n("div",{staticClass:"grid-container",staticStyle:{overflow:"auto","min-height":"200px","max-height":"350px","background-color":"white"}},[n("div",{staticClass:"grid-x grid-margin-x",staticStyle:{position:"relative",margin:"0.5rem 0 0","padding-bottom":"0.5rem"}},[n("div",{staticClass:"cell small-12 text-center"},[e._v("\n "+e._s(e.chooseFromWardrobeTitle)+"\n ")]),e._v(" "),e._l(e.myPerfumesFromWardrobe,function(t,i){return n("div",{staticClass:"cell small-2",staticStyle:{cursor:"pointer"}},[n("img",{attrs:{src:e.perfumeMm(t.id)},on:{click:function(n){return e.setNewSignature(t)}}})])})],2)]),e._v(" "),e._m(0)])},r=[function(){var e=this.$createElement,t=this._self._c||e;return t("button",{staticClass:"close-button",attrs:{"data-close":"","aria-label":"Close modal",type:"button"}},[t("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])])}]},1654:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{display:"flex","flex-direction":"column","justify-content":"space-between"}},[n("div",{staticStyle:{"margin-top":"0",padding:"5px 0 5px 0",position:"relative"}},[n("div",{staticClass:"grid-x"},[null!==this.signaturePerfume&&"0"!==this.signaturePerfume?n("div",{staticClass:"cell small-12 shelf-element"},[n("div",{staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[this.signaturePerfume&&"0"!==this.signaturePerfume?n("a",{attrs:{href:this.signaturePerfume.url}},[n("img",{staticClass:"perfume-on-shelf",staticStyle:{"mix-blend-mode":"multiply"},attrs:{src:e.signaturePerfumeThumbnail}})]):e._e()]),e._v(" "),e.canEdit&&e.memberToolsSwich?n("div",{staticClass:"color-crimson shelf-delete-perfume",on:{click:function(t){return e.confirmDeletePerfumeFromShelf()}}},[n("svg",{staticStyle:{width:"1rem",height:"1rem"},attrs:{fill:"currentColor",viewBox:"0 0 20 20"}},[n("path",{attrs:{d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd","fill-rule":"evenodd"}})])]):e._e()]):n("div",{staticClass:"cell small-12 text-center"},[n("span",[e._v(e._s(e.noSignatureTitle))])])]),e._v(" "),n("div",{staticClass:"bottom-shelf"})]),e._v(" "),e.canEdit&&!e.public?n("div",[n("span",{attrs:{"data-open":"MySignatureDialog"}},[n("button",{staticClass:"button tiny"},[e._v(e._s(e.changeTitle))])]),e._v(" "),n("my-signature-dialog",{attrs:{"member-id":e.memberId}})],1):e._e()])},r=[]},1655:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],o=function(e){return-1!==r.map(function(e){return e.toLowerCase()}).indexOf(e.toLowerCase())},s=function(e,t,n){var i=t.$props.value?t.$props.value:"",r=t.$props.initialValue?t.$props.initialValue:"";n.setContent(i||(t.initialized?t.cache:r)),t.$listeners.input&&function(e,t){var n=e.$props.modelEvents?e.$props.modelEvents:null,i=Array.isArray(n)?n.join(" "):n;e.$watch("value",function(n,i){t&&"string"==typeof n&&n!==i&&n!==t.getContent({format:e.$props.outputFormat})&&t.setContent(n)}),t.on(i||"change input undo redo",function(){e.$emit("input",t.getContent({format:e.$props.outputFormat}))})}(t,n),function(e,t,n){Object.keys(t).filter(o).forEach(function(i){var r=t[i];"function"==typeof r&&("onInit"===i?r(e,n):n.on(i.substring(2),function(e){return r(e,n)}))})}(e,t.$listeners,n),t.initialized=!0},a=0,l=function(e){var t=Date.now();return e+"_"+Math.floor(1e9*Math.random())+ ++a+String(t)},u=function(e){return void 0===e||""===e?[]:Array.isArray(e)?e:e.split(" ")},c=function(){return{listeners:[],scriptId:l("tiny-script"),scriptLoaded:!1}},f=(i=c(),{load:function(e,t,n){i.scriptLoaded?n():(i.listeners.push(n),e.getElementById(i.scriptId)||function(e,t,n,i){var r=t.createElement("script");r.referrerPolicy="origin",r.type="application/javascript",r.id=e,r.src=n;var o=function(){r.removeEventListener("load",o),i()};r.addEventListener("load",o),t.head&&t.head.appendChild(r)}(i.scriptId,e,t,function(){i.listeners.forEach(function(e){return e()}),i.scriptLoaded=!0}))},reinitialize:function(){i=c()}}),d=n(1656),m={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],value:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(e){return"html"===e||"text"===e}}},h=this&&this.__assign||function(){return(h=Object.assign||function(e){for(var t,n=1,i=arguments.length;nn.parts.length&&(i.parts.length=n.parts.length)}else{var s=[];for(r=0;r-1})})),e}},methods:{format_date:function(e){return this.$dayjs.unix(e).format("YYYY-M-DD")},perfumePic:function(e){if("object"===(void 0===e?"undefined":n(e)))return 0===e.id?"https://www.fragrantica.com/ndimg/noimage45x45.jpg":"https://fimgs.net/images/perfume/mm."+e.id+".jpg"},removePerfume:function(e){var t=new URLSearchParams;t.append("action","MyWearingDeleteJSON"),t.append("id2",parseInt(e.perfume_uniqueid));var n=parseInt(e.perfume_uniqueid),i=[].concat(this.myPerfumeTimeline).shift().perfume_uniqueid;this.$axios.post("/ajax.php?",t,{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(t){i===n&&EventBus.fire("clearwearing",e.perfume_uniqueid)}),this.myPerfumeTimeline.splice(this.myPerfumeTimeline.indexOf(e),1)},wearingPeriod:function(e){var t="https://www.fragrantica.com/ndimg/all.png";return e.period===this.language.day&&(t="https://www.fragrantica.com/ndimg/day.png"),e.period===this.language.night&&(t="https://www.fragrantica.com/ndimg/night.png"),t},getMyPerfumeTimeline:function(){var e=this;this.loader=!0,this.$axios.get("/ajax.php?view=MyWearingJSON&id="+this.userid).then(function(t){e.loader=!1,e.myPerfumeTimeline=t.data})}}}}).call(t,n(10))}});