(window.webpackJsonp=window.webpackJsonp||[]).push([[32,3,8],{1067:function(t,e,n){"use strict";var r=n(354),o=n(226),c=n(312),l=(n(24),n(27),n(43)),d=n(100),m=n(235),h=n(1097),f={name:"LMenu",components:{LAsset:l.a,LEmoji:d.a,LDivider:m.a,LMemberPicker:h.a},props:{items:{type:Array,default:function(){return[]}},showMembers:{type:Boolean,default:!1},selectedMemberIds:{type:Array,default:function(){return[]}},color:{type:String,default:"primary"}},computed:{memberIds:{get:function(){return this.selectedMemberIds},set:function(t){this.$emit("members",t)}}},methods:{getColor:function(t){return t.color?t.color:t.deleteBtn?"lred":this.color},textColor:function(t){var e=this.getColor(t);return["secondary","white"].includes(e)?"primary":"white"},clickItem:function(t){t.emit&&(this.$emit("emitted",t.emit),this.$emit(t.emit)),t.func&&t.func()}}},v=n(12),component=Object(v.a)(f,(function(){var t=this,e=t._self._c;return e("div",[e(r.a,{staticClass:"rounded-lg white--text py-0",attrs:{dark:"",color:"primary"}},[t._t("default"),t._v(" "),t.showMembers?e("div",{staticClass:"text-left py-1"},[e("div",{staticClass:"mx-3 mb-1 mt-0",staticStyle:{"max-width":"186px"}},[e("LMemberPicker",{attrs:{width:"46",wrap:""},model:{value:t.memberIds,callback:function(e){t.memberIds=e},expression:"memberIds"}})],1),t._v(" "),e("LDivider",{attrs:{color:"white"}})],1):t._e(),t._v(" "),t._l(t.items,(function(n,i){return e("div",{key:"item-".concat(n.content)},[n.hideDivider||!t.showMembers&&0===i?t._e():e("LDivider",{attrs:{color:"white"}}),t._v(" "),e(o.a,{class:"".concat(t.textColor(n),"--text font-weight-bold elevation-0  ").concat(t.getColor(n),"\n          ").concat(i===t.items.length-1?" rounded-b-lg":""," ").concat(0===i?" rounded-t-lg":""," ").concat(n.asset||n.emoji?"justify-start":"justify-center px-10"),attrs:{small:"",block:""},on:{click:function(e){return e.preventDefault(),t.clickItem(n)}}},[!n.loading&&n.asset?e("LAsset",{staticClass:"mr-2",attrs:{file:n.asset,width:"24"}}):t._e(),t._v(" "),!n.loading&&n.emoji?e("LEmoji",{staticClass:"mr-2",attrs:{file:n.emoji,width:"24"}}):t._e(),t._v(" "),n.loading?e(c.a,{staticClass:"mr-2 mb-1",attrs:{size:"24",color:"white",indeterminate:""}}):t._e(),t._v(" "),e("div",{class:"".concat(t.textColor(n),"--text")},[t._v(t._s(n.content))])],1)],1)}))],2)],1)}),[],!1,null,null,null);e.a=component.exports},1068:function(t,e,n){n(24),n(9),n(56),n(6),n(73),n(26);var r=n(5),o=n(547);r.extend(o),e.typeUrl=function(t){return"theme"===t.type?"sign-ups":"".concat(t.type,"s")},e.cardColor=function(t){return t&&t.game_theme&&t.game_theme.color?t.game_theme.color:"primary"},e.cardLink=function(t){return"/a/".concat(t.id)},e.socialImageSlug=function(t,n){return"".concat(n?n.slug+"-":"").concat(e.typeUrl(t),"-").concat(t.slug)},e.socialImage=function(t,n){return"https://res.cloudinary.com/lome/image/upload/social/".concat(e.socialImageSlug(t,n),".jpg")},e.getCardVoteContent=function(t){var e=(t&&t.content?JSON.parse(JSON.stringify(t.content)):[]).find((function(e){return e.type===t.vote_type}));return e||null},e.cardIsLocked=function(t){var n=e.getCardVoteContent(t);return!(!n||!n.locked_at)&&n.locked_at<r.utc().format("YYYY-MM-DD HH:mm:ss")},e.shareTemplateLink=function(t,e,n,r){var o="/create?shared=",c="share-template";return r&&(o="/new-template?id=",c="share-cohost-template"),"".concat(o).concat(t,"&creator=").concat(encodeURIComponent(e)).concat(n?"&email=".concat(encodeURIComponent(n)):"","&utm_source=lome&utm_campaign=").concat(c,"&utm_content=card-").concat(t)},e.webhook=function(t){var n=e.getCardVoteContent(t);return n&&n.webhook&&n.webhook.startsWith("https://hooks.zapier.com/")?n.webhook:null},e.getVoteName=function(t,e){var n=t.name,o="";if(t.group&&(o="".concat(t.group," ")),t.start_time&&r(t.start_time).isValid()&&(n=r.utc(t.start_time).tz(e).format("h:mma"),t.end_time&&r(t.end_time).isValid()&&(n+="-".concat(r.utc(t.end_time).tz(e).format("h:mma")))),n+=t.number&&1!==t.number?" (".concat(t.number,")"):"",!t.date)return"".concat(o).concat(n);var c=t.date;return r(c).isValid()&&(c=r(c).format("MMM D")),"".concat(c," - ").concat(o).concat(n)}},1069:function(t,e,n){"use strict";var r=n(350),o=n(1041),c=n(1065),l=(n(26),n(72),{name:"LConfirmModal",props:{button:{type:String,default:"Delete"},cancel:{type:String,default:"Cancel"},color:{type:String,default:"error"},text:{type:String,default:""},name:{type:String,default:""},custom:{type:String,default:""},open:{type:Boolean,default:!1}},data:function(){return{modal:!1}},watch:{open:function(t){t&&(this.modal=!0)},modal:function(t){var e=this;t?this.$nextTick((function(){e.$refs["confirm-modal-btn"]&&setTimeout((function(){e.$refs["confirm-modal-btn"].$el.focus()}))})):this.$emit("closed")}}}),d=n(12),component=Object(d.a)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center"},[e(c.a,{attrs:{width:"525"},scopedSlots:t._u([{key:"activator",fn:function(n){var r=n.on,o=n.attrs;return[e("div",t._g(t._b({},"div",o,!1),r),[t._t("default")],2)]}}],null,!0),model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[t._v(" "),e(o.a,{staticClass:"white rounded-xl pa-4"},[t.text?e("div",{staticClass:"text-center pb-4"},[e("strong",[t._v(t._s(t.text))])]):t._e(),t._v(" "),t.name?e("div",{staticClass:"text-center pb-5",class:"".concat(t.color,"--text")},[e("strong",[t._v(t._s(t.name))])]):t._e(),t._v(" "),e("div",{staticClass:"d-flex justify-space-around"},[t.custom?e(r.a,{staticClass:"rounded-xl elevation-0 white--text",staticStyle:{width:"30%"},attrs:{"x-large":"",color:"primary"},on:{click:function(e){e.preventDefault(),t.$emit("custom"),t.modal=!1}}},[t._v("\n          "+t._s(t.custom)+"\n        ")]):t._e(),t._v(" "),t.button?e(r.a,{ref:"confirm-modal-btn",staticClass:"rounded-xl elevation-0 white--text",style:"width: ".concat(t.custom?"30":"40","%"),attrs:{"x-large":"",color:t.color},on:{click:function(e){e.preventDefault(),t.$emit("clicked"),t.modal=!1}}},[t._v("\n          "+t._s(t.button)+"\n        ")]):t._e(),t._v(" "),t.cancel?e(r.a,{staticClass:"rounded-xl elevation-0 primary--text",style:"width: ".concat(t.custom?"30":"40","%"),attrs:{"x-large":"",color:"secondary"},on:{click:function(e){e.preventDefault(),t.modal=!1}}},[t._v("\n          "+t._s(t.cancel)+"\n        ")]):t._e()],1)])],1)],1)}),[],!1,null,"96b80d68",null);e.a=component.exports},1070:function(t,e,n){"use strict";var r=n(312),o=n(1058),c=(n(34),n(52),n(9),n(15),n(13),n(6),n(19),n(10),n(20),n(2)),l=(n(26),n(1173),n(18)),d=n(68);function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f={name:"LMember",props:{width:{type:String,default:"60px"},bottom:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},blink:{type:Boolean,default:!0},avatar:{type:String,default:""},member:{type:Object,default:function(){return{}}},label:{type:String,default:null},hideName:{type:Boolean,default:!1}},computed:h(h({},Object(l.c)({board:"boards/activeBoard"})),{},{name:function(){return this.board&&"community"===this.board.type&&this.member?d.a.boardMemberName(this.board.id,this.member):this.member?this.member.name:""},tooltip:function(){return null===this.label&&this.name?this.name:this.label},image:function(){return this.avatar?this.avatar:this.member?!this.blink&&this.member.image?this.member.image.replace(".gif",".png"):this.member.image:null}})},v=(n(1137),n(12)),component=Object(v.a)(f,(function(){var t=this,e=t._self._c;return t.member?e("div",{class:{"position-relative":t.loading}},[t.loading?e(r.a,{staticStyle:{position:"absolute",top:"0",left:"0"},attrs:{color:"primary",size:t.width.replace("px",""),indeterminate:""}}):t._e(),t._v(" "),t.hideName?e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.$emit("clicked")}}},[e("img",{staticClass:"member-img",attrs:{src:t.image,width:t.width}})]):e(o.a,{attrs:{top:!t.bottom,bottom:t.bottom},scopedSlots:t._u([{key:"activator",fn:function(n){var r=n.on,o=n.attrs;return[e("a",t._g(t._b({attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.$emit("clicked")}}},"a",o,!1),r),[e("img",{staticClass:"member-img",attrs:{src:t.image,width:t.width}})])]}}],null,!1,4017131696)},[t._v(" "),e("span",{domProps:{innerHTML:t._s(t.tooltip)}})])],1):t._e()}),[],!1,null,null,null);e.a=component.exports},1071:function(t,e,n){"use strict";var r=n(358),o=n(37),c=(n(36),n(26),n(34),n(52),n(45),n(13),n(6),n(27),n(56),n(119)),l={name:"LAvatar",props:{name:{type:String,default:""},color:{type:String,default:""},size:{type:Number,default:48}},computed:{initials:function(){return this.name?this.getInitials(this.name):""},theColor:function(){return this.color?this.color:this.colorFromName(this.name)},textColor:function(){return this.oppositeColor(this.theColor)}},methods:{isNumeric:function(t){return!isNaN(t)},getInitials:function(t){if(this.isNumeric(t))return t;var e=(t=t.replace("& ","")).split(" "),n=e[0].charAt(0);return e.length>1&&(n+=e[1].charAt(0)),n?n.toUpperCase():""},colorFromName:function(t){var e,n=c.a.map((function(t){return t.name}));if(n=n.filter((function(t){return!["black","white"].includes(t)})),t){var r=Object(o.a)(t).reduce((function(i,s){return s.charCodeAt(0)+i}),0);e=n[r%=n.length]}else e=n[0];return e},oppositeColor:function(t){var e=c.a.find((function(e){return e.name===t}));return e?e.opposite:"white"}}},d=n(12),component=Object(d.a)(l,(function(){var t=this;return(0,t._self._c)(r.a,{class:"".concat(t.textColor,"--text font-weight-bold"),attrs:{color:t.theColor,size:t.size}},[t._v(t._s(t.initials))])}),[],!1,null,null,null);e.a=component.exports},1072:function(t,e,n){"use strict";var main=n(1134),r={name:"LConfetti",props:{cid:{type:String,default:"confetti"}},mounted:function(){this.celebrate()},methods:{celebrate:function(){Object(main.confetti)(document.getElementById(this.cid),{angle:"0",spread:360,startVelocity:"70",elementCount:70,dragFriction:"0.19",duration:3e3,stagger:"3",width:"10px",height:"10px",perspective:"875px",colors:["#179b2d","#A0D1ED","#00cdfc","#2f80ed","#ffb31a","#179b2d","#fb881e","#fbbbe7","#6D4FBC","#eb5757","#fed67b","#25A787","#b9d6a5"]})}}},o=n(12),component=Object(o.a)(r,(function(){return(0,this._self._c)("div",{staticStyle:{position:"fixed",left:"50%",top:"0",width:"2px"},attrs:{id:this.cid}})}),[],!1,null,null,null);e.a=component.exports},1073:function(t,e,n){var content=n(1109);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("224a77d7",content,!0,{sourceMap:!1})},1075:function(t,e,n){var content=n(1113);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("0356e37e",content,!0,{sourceMap:!1})},1076:function(t,e,n){var content=n(1119);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("0e49ddb9",content,!0,{sourceMap:!1})},1078:function(t,e,n){var content=n(1124);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("57b50d12",content,!0,{sourceMap:!1})},1079:function(t,e,n){var content=n(1126);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("193efbc4",content,!0,{sourceMap:!1})},1080:function(t,e,n){"use strict";n(9),n(15),n(13),n(6),n(19),n(10),n(20);var r=n(2),o=(n(26),n(5)),c=n.n(o),l=n(18),d=(n(24),n(310));function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f=n(547),v=n(548);c.a.extend(f),c.a.extend(v);var y={name:"LVoteTime",props:{voteId:{type:String,required:!0},showGroup:{type:Boolean,default:!1}},data:function(){return{}},computed:h(h({},Object(l.c)({getVoteById:"votes/getById",getTimezoneByCardId:"cards/getTimezoneById",getTimeByVoteId:"votes/getTimeByVoteId"})),{},{vote:function(){return this.getVoteById[this.voteId]},timezone:function(){return this.getTimezoneByCardId(this.vote.card_id)},formattedTime:function(){return this.getTimeByVoteId(this.voteId)},fullTime:function(){if(!this.vote||!this.vote.start_time)return null;var t=this.translateTimeToHours(this.vote.start_time);return this.vote.end_time&&(t+=" - ".concat(this.translateTimeToHours(this.vote.end_time))),"".concat(t," ").concat(d.a.niceTimezone(this.timezone))}}),methods:{translateTimeToHours:function(time){return time?c.a.utc(time).tz(this.timezone).format("h:mma"):null}}},_=n(12),k=Object(_.a)(y,(function(){var t=this,e=t._self._c;return t.formattedTime?e("span",{attrs:{title:t.fullTime}},[t._v("\n  "+t._s(t.vote.group&&t.showGroup?"".concat(t.vote.group," "):"")+" "+t._s(t.formattedTime)+"\n")]):t._e()}),[],!1,null,null,null).exports;function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function x(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?w(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var C={name:"LVoteName",props:{voteId:{type:String,required:!0},dateFormat:{type:String,default:null},showGroup:{type:Boolean,default:!1}},components:{LVoteTime:k},data:function(){return{}},computed:x(x({},Object(l.c)({getVoteById:"votes/getById"})),{},{vote:function(){return this.getVoteById[this.voteId]},voteName:function(){return this.vote?this.vote.name:""},voteDate:function(){return this.vote&&this.dateFormat&&this.vote.date?"(".concat(c()(this.vote.date).format(this.dateFormat),")"):null},hasTime:function(){return this.vote&&this.vote.start_time}})},O=Object(_.a)(C,(function(){var t=this,e=t._self._c;return t.vote?e("span",[t.hasTime?e("LVoteTime",{attrs:{"vote-id":t.voteId,"show-group":t.showGroup}}):[t._v(t._s(t.voteName))],t._v(" "),t.voteDate?[t._v(" "+t._s(t.voteDate))]:t._e()],2):t._e()}),[],!1,null,null,null);e.a=O.exports},1081:function(t,e,n){"use strict";var r=n(350),o=n(1044),c=(n(9),n(15),n(13),n(19),n(10),n(20),n(1)),l=n(2),d=(n(33),n(45),n(6),n(57),n(63),n(373),n(240),n(24),n(26),n(27),n(35),n(34),n(52),n(550),n(69),n(168),n(86),n(5)),m=n.n(d),h=n(18),f=n(1068),v=n(43),y=n(1067);function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach((function(e){Object(l.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var w={name:"LCardIcsBtn",components:{LAsset:v.a,LMenu:y.a},props:{cardId:{type:String,required:!0},voteId:{type:String,default:null},icon:{type:Boolean,default:!1},summary:{type:String,default:""},date:{type:String,default:""}},data:function(){return{downloading:!1,showDatesMenu:!1,datesMenuFor:""}},computed:k(k({},Object(h.c)({getCardById:"cards/getById",getVoteById:"votes/getById"})),{},{card:function(){return this.getCardById[this.cardId]},vote:function(){return this.voteId?this.getVoteById[this.voteId]:null},cardDates:function(){return this.date?[]:this.card.dates&&this.card.dates.length>0?this.card.dates:[]},color:function(){return Object(f.cardColor)(this.card)},menu:function(){var t=this;return[{content:"Apple",asset:"icon-apple-white",func:this.downloadIcs},{content:"Google",asset:"icon-chrome-white",func:this.cardDates.length?function(){t.showDatesMenu=!0,t.datesMenuFor="google"}:this.addToGoogleCalendar},{content:"Outlook",asset:"icon-outlook-white",func:this.cardDates.length?function(){t.showDatesMenu=!0,t.datesMenuFor="outlook"}:this.addToOutlook},{content:"ICS File",asset:"icon-blank-calendar-white",func:this.downloadIcs}]},datesMenu:function(){var t=this;return this.cardDates.map((function(e){var n=m()(e).format("dddd, MMMM D, YYYY");return{content:n,func:function(){return t.datePicked(n)}}}))}}),watch:{showDatesMenu:function(t){t||(this.datesMenuFor="")}},methods:k(k({},Object(h.b)({getIcsData:"cards/ics"})),{},{createIcsFileData:function(t){var e=this;return Object(c.a)(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.downloading=!0,r={summary:e.summary,date:t,singleSectionItem:!!t},e.vote&&(r.singleSectionItem=!0,r.votes=[e.vote]),n.next=5,e.getIcsData({id:e.cardId,fields:r});case 5:return o=n.sent,e.downloading=!1,n.abrupt("return",o);case 8:case"end":return n.stop()}}),n)})))()},datePicked:function(t){"google"===this.datesMenuFor&&this.addToGoogleCalendar(t),"outlook"===this.datesMenuFor&&this.addToOutlook(t)},downloadIcs:function(){var t=this;return Object(c.a)(regeneratorRuntime.mark((function e(){var n,r,o,link;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(document){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.createIcsFileData(t.date||"");case 4:n=e.sent,r=new Blob([n],{type:"text/calendar"}),o=window.URL.createObjectURL(r),(link=document.createElement("a")).href=o,link.download="".concat(t.card?"".concat(t.card.name).concat(t.summary?" (".concat(t.summary,")"):""):"Event",".ics"),document.body.appendChild(link),link.click(),document.body.removeChild(link);case 13:case"end":return e.stop()}}),e)})))()},addToGoogleCalendar:function(){var t=arguments,e=this;return Object(c.a)(regeneratorRuntime.mark((function n(){var r,o,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:"",n.next=3,e.createIcsFileData(e.date||r);case 3:o=n.sent,c=e.icsToGoogleCalendarUrl(o),window.open(c,"_blank");case 6:case"end":return n.stop()}}),n)})))()},addToOutlook:function(){var t=arguments,e=this;return Object(c.a)(regeneratorRuntime.mark((function n(){var r,o,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:"",n.next=3,e.createIcsFileData(e.date||r);case 3:o=n.sent,c=e.icsToOutlookCalendarUrl(o),window.open(c,"_blank");case 6:case"end":return n.stop()}}),n)})))()},icsToGoogleCalendarUrl:function(t){var summary=encodeURIComponent(this.getFieldValue("SUMMARY",t)),e=this.getFieldValue("DESCRIPTION",t),n=encodeURIComponent(this.getFieldValue("LOCATION",t)),r=this.getFieldValue("URL",t),o=this.getFieldValue("DTSTART",t),c=this.getFieldValue("DTEND",t),l=o.includes("VALUE=DATE:");r&&(e+="\nMore info: ".concat(r)),e=encodeURIComponent(e),o=l?(o=o.split(":")[1])+"/"+(c=o):(o=o.replace(/(\d{4})(\d{2})(\d{2})T(\d{6})Z/,"$1$2$3T$4Z"))+"/"+(c=c.replace(/(\d{4})(\d{2})(\d{2})T(\d{6})Z/,"$1$2$3T$4Z"));var d="action=TEMPLATE&text=".concat(summary,"&dates=").concat(o,"&details=").concat(e,"&location=").concat(n,"&trp=false");return"".concat("https://www.google.com/calendar/render","?").concat(d)},icsToOutlookCalendarUrl:function(t){var summary=encodeURIComponent(this.getFieldValue("SUMMARY",t)),e=this.getFieldValue("DESCRIPTION",t),n=encodeURIComponent(this.getFieldValue("LOCATION",t)),r=this.getFieldValue("URL",t);r&&(e+=(e?"\n\n":"")+"More Info: "+r),e=encodeURIComponent(e);var o=this.getFieldValue("DTSTART",t),c=this.getFieldValue("DTEND",t),l=o.includes("VALUE=DATE:");l?(o=o.split(":")[1],o=m()(o,"YYYYMMDD").format("YYYY-MM-DD"),c=m()(o).add("day",1).format("YYYY-MM-DD")):(o=m()(this.formatICSDateToISO(o)).toISOString(),c=c?m()(this.formatICSDateToISO(c)).toISOString():o);var d="?path=/calendar/action/compose&rru=addevent&subject=".concat(summary,"&body=").concat(e,"&startdt=").concat(o,"&enddt=").concat(c,"&location=").concat(n,"&allday=").concat(l?"true":"false");return"".concat("https://outlook.live.com/calendar/0/deeplink/compose").concat(d)},formatICSDateToISO:function(t){return t.substring(0,4)+"-"+t.substring(4,6)+"-"+t.substring(6,8)+"T"+t.substring(9,11)+":"+t.substring(11,13)+":"+t.substring(13,15)+"Z"},getFieldValue:function(t,data){var e=new RegExp(t+"[:;](.*)"),n=data.match(e);return n?n[1].trim():""}})},x=w,C=n(12),component=Object(C.a)(x,(function(){var t=this,e=t._self._c;return t.icon?e("div",[e(o.a,{attrs:{"content-class":"rounded-lg"},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e(r.a,t._g(t._b({attrs:{icon:"",loading:t.downloading}},"v-btn",c,!1),o),[e("LAsset",{staticStyle:{"max-width":"24px"},attrs:{file:"icon-blank-calendar-white"}})],1)]}}],null,!1,1288363845)},[t._v(" "),e("LMenu",{attrs:{items:t.menu}})],1)],1):e("div",{staticClass:"my-0 pb-1"},[e(o.a,{attrs:{"content-class":"rounded-lg"},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e("div",t._g(t._b({},"div",c,!1),o),[e(r.a,{attrs:{"x-small":"",color:"secondary ".concat(t.color,"--text rounded-xl elevation-0"),loading:t.downloading}},[t._v("\n          Add to Cal"),t.$vuetify.breakpoint.width>=400?[t._v("endar")]:t._e()],2)],1)]}}])},[t._v(" "),e("LMenu",{attrs:{items:t.menu}})],1),t._v(" "),t.datesMenu.length?e("div",[e(o.a,{attrs:{"content-class":"rounded-lg"},scopedSlots:t._u([{key:"activator",fn:function(n){var r=n.on,o=n.attrs;return[e("div",t._g(t._b({},"div",o,!1),r))]}}],null,!1,4049067549),model:{value:t.showDatesMenu,callback:function(e){t.showDatesMenu=e},expression:"showDatesMenu"}},[t._v(" "),e("LMenu",{attrs:{items:t.datesMenu}})],1)],1):t._e()],1)}),[],!1,null,null,null);e.a=component.exports},1082:function(t,e,n){var content=n(1129);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("1c0cdd46",content,!0,{sourceMap:!1})},1085:function(t,e,n){var content=n(1133);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("4ca52f0d",content,!0,{sourceMap:!1})},1087:function(t,e,n){"use strict";n(9),n(15),n(13),n(19),n(10),n(20);var r=n(2),o=(n(36),n(56),n(6),n(26),n(24),n(163),n(72),n(18)),c=n(119),l=n(1106);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h={name:"LGameTheme",components:{LEmoji:n(100).a},props:{theme:{type:Object,default:function(){return{}}},numTasks:{type:Number,default:0},wrapper:{type:String,default:"v-application--wrap"},posh:{type:Boolean,default:!1},small:{type:Boolean,default:!1}},data:function(){return{colors:c.a,emojiShakeIndex:null,bgEmojis:[],lastW:0,lastH:0}},computed:m(m({},Object(o.c)({votesLastCheckedCardId:"votes/lastCheckedCardId"})),{},{bgColor:function(){return this.gameTheme("bg")},bgEmoji:function(){return this.gameTheme("bg_emoji")},font:function(){return this.gameTheme("font")},fontUrl:function(){return Object(l.getFontUrl)(this.font)}}),watch:{bgColor:function(t){var e=document.getElementsByClassName(this.wrapper);e[0]&&(t&&(e[0].style.backgroundColor=this.getBgColor(t)),t||(e[0].style.backgroundColor="inherit"))},bgEmoji:function(){this.buildBgEmojis()},votesLastCheckedCardId:function(t,e){!e&&t&&this.buildBgEmojis()}},mounted:function(){var t=this;this.$nextTick((function(){if(t.gameTheme("bg")&&document){var e=document.getElementsByClassName(t.wrapper);e[0]&&(e[0].style.backgroundColor=t.getBgColor(t.gameTheme("bg")))}t.buildBgEmojis()}))},beforeDestroy:function(){if(this.gameTheme("bg")&&document){var t=document.getElementsByClassName(this.wrapper);t[0]&&(t[0].style.backgroundColor="")}},methods:{getBgColor:function(t){var e=this.colors.find((function(e){return e.name===t}));return e?(e.name,e.hex+"ff"):""},gameTheme:function(t){return this.theme&&this.theme[t]||null},randInRange:function(t,e){return t+Math.floor(Math.random()*(e-t))},isOverlapping:function(t,e,n){return t>=e-(n=n||9)&&t<=e+n},sizing:function(t){return t*(this.$vuetify.breakpoint.xsOnly?.6:1)},style:function(t){var style="font-size: ".concat(t.size,"px; top: ").concat(t.top,"%; left: ").concat(t.left,"%;");return t.rotate&&(style+="transform: rotate(".concat(t.rotate,"deg)")),style},buildBgEmojis:function(){var t=this;if(this.gameTheme("bg_emoji"))if(this.posh)this.poshBgEmojis();else{for(var e,n,r,o,c=4*this.numTasks,l=[],d=this.sizing(24),m=this.sizing(48),h=4,f=(95-h)/c,i=0;i<c;i++)e=this.randInRange(d,m),n=this.randInRange(h,h+f),r=this.randInRange(1,90),l.forEach((function(e){for(o=0;t.isOverlapping(n,e.top)&&t.isOverlapping(r,e.left)&&o<100;)n=t.randInRange(h,h+f),r=t.randInRange(1,90),o++})),h+=f,l.push({size:e,top:n,left:r,rotate:0});this.bgEmojis=l,this.bgEmojiShake()}},poshBgEmojis:function(){var t=document?document.querySelector(".".concat(this.wrapper)).offsetWidth:this.$vuetify.breakpoint.width,e=document?document.querySelector(".".concat(this.wrapper)).offsetHeight:this.$vuetify.breakpoint.height;if(t!==this.lastW||e!==this.lastH){this.lastW=t,this.lastH=e;for(var n=this.small||this.$vuetify.breakpoint.width<1e3,r=148*(n?.7:1),o=500*(n?.5:1),c=t/o,l=e/o,d=[],m=0;m<l;m++)for(var h=0;h<c;h++){var f=(m*o+(h%2==1?.5*o:0))/e*100+this.randInRange(-5,0);d.push({size:r,top:f,left:h*o/t*100+this.randInRange(-5,0),rotate:this.randInRange(0,10)<7?this.randInRange(-70,70):this.randInRange(0,350)})}this.bgEmojis=d}},gridBgEmojis:function(){var t=document?document.querySelector(".".concat(this.wrapper)).offsetWidth:this.$vuetify.breakpoint.width,e=document?document.querySelector(".".concat(this.wrapper)).offsetHeight:this.$vuetify.breakpoint.height;if(t!==this.lastW||e!==this.lastH){this.lastW=t,this.lastH=e;for(var n=this.small?90:150,r=this.$vuetify.breakpoint.width<1e3?.5*n:this.small?90:n,o=t/r,c=e/r,l=[],d=this.$vuetify.breakpoint.width<1e3?18:24,m=0;m<c;m++)for(var h=0;h<o;h++){var f=(m*r+(h%2==1?.5*r:0))/e*100-2;f>97||l.push({size:d,top:f,left:h*r/t*100-4,rotate:0})}this.bgEmojis=l}},bgEmojiShake:function(){var t=this;this.emojiShakeIndex=this.randInRange(0,2*this.bgEmojis.length),setTimeout((function(){t.bgEmojiShake()}),1e3)}}},f=(n(1118),n(12)),component=Object(f.a)(h,(function(){var t=this,e=t._self._c;return t.gameTheme("bg_emoji")?e("div",{staticClass:"position-absolute game-theme-bg-container"},[t._l(t.bgEmojis,(function(n,b){return e("LEmoji",{key:"bg-emoji-".concat(b),staticClass:"position-absolute",class:{"animation-shake":t.emojiShakeIndex===b},style:t.style(n),attrs:{file:t.gameTheme("bg_emoji")}})})),t._v(" "),t.font&&"Work Sans"!==t.font?e("style",[t._v("\n    @import url("+t._s(t.fontUrl)+");\n    .theme-fonts h1,\n    .theme-fonts h2,\n    .theme-fonts h3,\n    .theme-fonts h4,\n    .theme-fonts h5,\n    .theme-fonts h6,\n    .theme-fonts p,\n    .theme-fonts ul,\n    .theme-fonts ol,\n    .theme-fonts li,\n    .theme-fonts,\n    .theme-h2,\n    .theme-h4,\n    .theme-p {\n      font-family: '"+t._s(t.font)+"', sans-serif;\n    }\n  ")]):t._e()],2):t._e()}),[],!1,null,null,null);e.a=component.exports},1088:function(t,e,n){"use strict";var r=n(350),o=n(1041),c=n(1065),l=n(1045),d=n(354),m=n(226),h=n(357),f=n(85),v=n(312),y=n(1059),_=n(103),k=n(2),w=(n(24),n(26),n(163),n(15),n(77),n(9),n(13),n(6),n(19),n(10),n(20),n(1)),x=(n(33),n(18)),C=n(1071),O=n(1081),j=n(1069),I=n(100),S=n(67),L=n(1067),D=n(1080);function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function M(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){Object(k.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var P={name:"LVote",components:{LAvatar:C.a,LCardIcsBtn:O.a,LConfirmModal:j.a,LEmoji:I.a,LLabel:S.a,LMenu:L.a,LVoteName:D.a},props:{voteId:{type:String,default:""},name:{type:String,default:""},date:{type:String,default:""},locked:{type:Boolean,default:!1},groupView:{type:String,default:""},ics:{type:Boolean,default:!1},timeslots:{type:Boolean,default:!1},cardId:{type:String,default:""},color:{type:String,default:"primary"},tagColor:{type:String,default:null},icon:{type:String,default:"check"},tag:{type:String,default:""},description:{type:String,default:""},voters:{type:Array,default:function(){return[]}},editable:{type:Boolean,default:!1},hideRsvpNo:{type:Boolean,default:!1},colorful:{type:Boolean,default:!1},cardView:{type:Boolean,default:!1},small:{type:Boolean,default:!1},slim:{type:Boolean,default:!1},hideIcon:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},hideVoterNames:{type:Boolean,default:!1},slotView:{type:Boolean,default:!1},empty:{type:String,default:"No one has signed up yet."},voteType:{type:String,default:"signup"},reachedLimit:{type:Boolean,default:!1},votersModal:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{isSaving:!1,previewModal:!1,unvoting:!1,optionsOpen:!1,isPickingFromPlanner:!1,focusVoterId:null}},computed:M(M({},Object(x.c)({anonUser:"anon/user",getCardById:"cards/getById",getVoteById:"votes/getById"})),{},{vote:function(){return this.getVoteById[this.voteId]},card:function(){return this.getCardById[this.cardId]},titleColor:function(){return this.colorful?"white":this.color},descriptionColor:function(){return this.colorful?"white":"black"},actualTagColor:function(){return this.tagColor||this.color},tagClass:function(){var t=this.tag?this.tag.length:2;return 3===t?t-=1:5===t?t+=1:t>5&&(t+=3),"mr-".concat(t)},emojiColWidth:function(){return this.cardView?12:this.slotView?this.$vuetify.breakpoint.smAndDown?2:1:3},textColWidth:function(){return this.hideIcon||this.cardView?12:this.slotView?this.$vuetify.breakpoint.smAndDown?8:10:6},voteCta:function(){switch(this.voteType){case"rsvp":return"RSVP";case"vote":return"Vote"}return"Choose"}}),watch:{votersModal:function(t){t&&(this.optionsOpen=!0)}},methods:M(M({},Object(x.b)({voterUnvote:"votes/unvote"})),{},{isVoter:function(t){return this.$auth.loggedIn&&t.member_id===this.$auth.user.id||this.anonUser&&t.anon_id===this.anonUser.id},unvote:function(t){var e=this;return Object(w.a)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.unvoting=!0,r={},t.anon_id&&(r.anon_id=t.anon_id),t.member_id&&(r.member_id=t.member_id),n.next=6,e.voterUnvote({voteId:t.vote_id,voter:r});case 6:e.unvoting=!1;case 7:case"end":return n.stop()}}),n)})))()},isFocused:function(t){return this.focusVoterId===t.id},toggleFocus:function(t){this.focusVoterId=this.isFocused(t)?null:t.id},voterIsSelf:function(t){return this.$auth.loggedIn&&t.member_id===this.$auth.user.id||this.anonUser&&t.anon_id===this.anonUser.id},voterName:function(t){return this.hideVoterNames?this.voterIsSelf(t)?"(You)":"-":t.name},clickTag:function(){this.disabled?this.$emit("clicked"):this.optionsOpen=!0}})},B=(n(1112),n(12)),component=Object(B.a)(P,(function(){var t=this,e=t._self._c;return e("div",{directives:[{def:_.a,name:"ripple",rawName:"v-ripple"}],class:"rounded-xl d-flex position-relative flex-column cursor-pointer pa-2 ".concat(t.colorful?t.color:"vote-border shadow-outline"),staticStyle:{"z-index":"1"},on:{click:function(e){e.preventDefault(),!t.locked&&t.$emit("clicked")}}},[e("div",{staticClass:"d-flex align-center",class:{"half-opacity":t.muted,"flex-column justify-space-between full-height":t.cardView}},[t.hideIcon?t._e():e("div",{staticClass:"cursor-pointer py-2 px-1",style:"width:".concat(t.emojiColWidth/12*100,"%; ").concat(12!==t.emojiColWidth?"max-width:48px;":""),on:{click:function(e){e.preventDefault(),!t.locked&&t.$emit("clicked")}}},[e("div",{staticClass:"position-relative mx-auto",staticStyle:{"z-index":"1","max-width":"48px"}},[t.colorful?e("div",{staticClass:"position-absolute white full-height full-width",staticStyle:{"z-index":"-1","border-radius":"50%",top:"0",left:"0"}}):t._e(),t._v(" "),t.icon?e("LEmoji",{staticStyle:{"z-index":"2"},attrs:{alt:t.name,title:t.name,full:"",file:t.icon}}):t._e()],1)]),t._v(" "),12===t.emojiColWidth?e(y.a):t._e(),t._v(" "),e("div",{staticClass:"pl-1",class:"".concat(t.slim?"":"py-2"),style:"width:".concat(t.textColWidth/12*100,"%; height: auto")},[e("div",{staticClass:"full-width cursor-pointer",class:"text-".concat(t.cardView?"center":"left"," ").concat(t.colorful?"white--text":""," ").concat(t.groupView?"".concat(t.color,"--text d-flex align-center"):"px-3"),style:"line-height:1.1; font-size: ".concat(t.slotView&&t.$vuetify.breakpoint.mdAndUp?"28":t.small||t.cardView&&t.$vuetify.breakpoint.xsOnly?"20":t.cardView?"24":"40","px"),on:{click:function(e){e.preventDefault(),!t.locked&&t.$emit("clicked")}}},[t.vote&&"Date"===t.groupView&&!t.timeslots?e("div",{staticClass:"d-flex align-center mt-2"},[t.icon?e("LEmoji",{staticStyle:{"z-index":"2"},attrs:{alt:t.name,title:t.name,file:t.icon}}):t._e(),t._v(" "),e("div",{staticClass:"ml-2 font-weight-bold",staticStyle:{"font-size":"18px"}},[t._v("\n            "+t._s(t.vote.group)+"\n          ")])],1):t._e(),t._v(" "),e("strong",{staticClass:"py-2",style:"".concat(t.slim&&"font-size: 20px")},[t.voteId?e("LVoteName",{attrs:{"vote-id":t.voteId}}):[t._v(t._s(t.name)+" ")]],2)]),t._v(" "),t.description?e("div",{class:"smaller-p mb-0 ".concat(t.colorful?"l-description-colorful":"l-vote-description"," ").concat(t.slim?"":"px-3"),staticStyle:{"font-size":"16px"},domProps:{innerHTML:t._s(t.description)}}):t._e()]),t._v(" "),t.tag?e(y.a):t._e(),t._v(" "),t.card&&t.ics?e("div",[e("LCardIcsBtn",{attrs:{"card-id":t.cardId,"vote-id":t.voteId,summary:t.name,date:t.date,icon:""}})],1):t._e(),t._v(" "),t.tag?e("div",{class:Object(k.a)({"pt-1 px-1 pb-2":t.cardView,"pa-1 ":!t.cardView},t.tagClass,!t.cardView&&!t.$vuetify.breakpoint.xsOnly),style:"width:".concat(t.emojiColWidth/12*100,"%; ").concat(12!==t.emojiColWidth?"max-width:62px;":"")},[t.tag&&!t.hideRsvpNo?e("div",{staticClass:"text-center"},[e(c.a,{attrs:{disabled:t.disabled,"content-class":"rounded-xl outlined-card-muted elevation-0","max-width":"420px"},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[t.slim?e(r.a,t._g(t._b({staticClass:"elevation-0 rounded-xl mr-1",class:{"black--text":"secondary"===t.actualTagColor},style:"\n              border-width:0!important;\n              ".concat(t.colorful?"background:white":""),attrs:{outlined:t.colorful,small:"",dark:!t.colorful,color:t.actualTagColor},on:{click:function(e){return e.stopPropagation(),t.clickTag.apply(null,arguments)}}},"v-btn",c,!1),o),[t._v(t._s(t.tag))]):e(r.a,t._g(t._b({staticClass:"btn-circle elevation-0 pa-0",class:{"black--text":"secondary"===t.actualTagColor},style:"border:none; \n              font-size: ".concat(t.tag.length<=3?"20":"16","px; \n              height: 54px; \n              width: 54px;\n              ").concat(t.colorful?"background:white":""),attrs:{outlined:t.colorful,dark:!t.colorful,color:t.actualTagColor},on:{click:function(e){return e.stopPropagation(),t.clickTag.apply(null,arguments)}}},"v-btn",c,!1),o),[t._v(t._s(t.tag))])]}}],null,!1,2425794778),model:{value:t.optionsOpen,callback:function(e){t.optionsOpen=e},expression:"optionsOpen"}},[t._v(" "),e(o.a,{staticClass:"rounded-xl elevation-0"},[e("div",{staticClass:"pl-4 pt-4 pb-2 d-flex align-center"},[e("LEmoji",{staticClass:"pr-4",staticStyle:{"font-size":"35px"},attrs:{alt:t.name,title:t.name,file:t.icon}}),t._v(" "),e("div",[e("div",{staticStyle:{"line-height":"1.2"}},[e("strong",[t.voteId?e("LVoteName",{attrs:{"vote-id":t.voteId}}):[t._v(t._s(t.name))],t._v("\n                    ("+t._s(t.tag)+")")],2)]),t._v(" "),t.date?e("LLabel",{attrs:{color:t.color}},[t._v(t._s(t.date))]):t._e()],1),t._v(" "),e(y.a),t._v(" "),t.locked?t._e():e(r.a,{staticClass:"rounded-xl elevation-0 mx-4",class:{"half-opacity":t.reachedLimit},attrs:{color:"secondary"===t.color?"black":t.color,dark:""},on:{click:function(e){t.optionsOpen=!1,t.$emit("clicked")}}},[t._v(t._s(t.voteCta))])],1),t._v(" "),e(l.a),t._v(" "),t.voters.length?t._e():e("div",{staticClass:"pa-4",staticStyle:{"font-size":"0.9rem",opacity:"60%"},domProps:{textContent:t._s(t.empty)}}),t._v(" "),e(d.a,{attrs:{"three-line":!t.hideVoterNames}},[t._l(t.voters,(function(n,o){return[e(m.a,{key:n.id},[e(h.a,[e("LAvatar",{attrs:{name:t.hideVoterNames?o+1+"":n.name,color:t.hideVoterNames?t.color:"",size:t.hideVoterNames?32:40}})],1),t._v(" "),e(f.b,[e(f.d,[t._v(t._s(t.voterName(n)+(n.number&&1!==n.number?" (".concat(n.number,")"):"")))]),t._v(" "),t.hideVoterNames?t._e():e("div",{staticStyle:{"font-size":"0.9rem",opacity:"60%"},domProps:{innerHTML:t._s(n.description)}})],1),t._v(" "),!t.locked&&t.isVoter(n)?e("LConfirmModal",{attrs:{text:"Are you sure you want to remove your choice?",name:t.name,button:"Remove"},on:{clicked:function(e){return t.unvote(n)}}},[t.unvoting?e(v.a,{attrs:{indeterminate:"",color:"primary",size:"32"}}):e(r.a,{staticClass:"cursor-pointer",staticStyle:{"font-size":"20px","margin-top":"-20px"},attrs:{icon:"",small:""}},[t._v("×")])],1):t._e()],1)]}))],2)],1)],1)],1):t._e()]):t._e()],1)])}),[],!1,null,null,null);e.a=component.exports},1089:function(t,e,n){"use strict";var r=n(350),o=n(354),c=n(226),l=n(355),d=n(1044),m=n(309),h=(n(34),n(27),{name:"LEmailPhoneInput",props:{value:{type:String,default:""},type:{type:String,default:"email"},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},required:{type:Boolean,default:!1},inputmode:{type:String,default:null},pattern:{type:String,default:null},autocomplete:{type:String,default:null},color:{type:String,default:"primary"}},data:function(){return{currentType:"email",phone:"",email:""}},computed:{inputVal:{get:function(){return this.value},set:function(t){this.disabled||1!==t.length||(/\d/.test(t)||["(","+"].includes(t)?(this.currentType="phone",this.$emit("settype",this.currentType)):(this.currentType="email",this.$emit("settype",this.currentType))),"phone"===this.currentType&&(this.phone=t),"email"===this.currentType&&(this.email=t),this.$emit("input",t)}},icon:function(){return"phone"===this.currentType?"https://res.cloudinary.com/lome/image/upload/w_46/v1644249109/assets/icon-phone-".concat(this.dark?"white":"green",".png"):"https://res.cloudinary.com/lome/image/upload/w_46/v1644249263/assets/icon-envelope-".concat(this.dark?"white":"green",".png")},inputType:function(){return"phone"===this.currentType?"tel":"email"},placeholder:function(){return"phone"===this.currentType?"Phone":"Email"}},watch:{type:function(t){this.currentType=t}},mounted:function(){this.currentType=["phone","email"].includes(this.type)?this.type:"phone"},methods:{setType:function(t){this.currentType=t,"phone"===t&&(this.inputVal=this.phone),"email"===t&&(this.inputVal=this.email),this.$emit("settype",t)}}}),f=(n(1108),n(12)),component=Object(f.a)(h,(function(){var t=this,e=t._self._c;return e(m.a,{key:"send-".concat(t.currentType),class:"rounded-xl ".concat(t.dark?"white":t.color,"--text email-phone-input"),attrs:{autofocus:t.autofocus,placeholder:t.placeholder,type:t.inputType,inputmode:t.inputmode,pattern:t.pattern,autocomplete:t.autocomplete,dark:t.dark,required:t.required,outlined:"","hide-details":"",color:t.dark?"":t.color},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.$emit("enter")}},scopedSlots:t._u([t.disabled?null:{key:"append",fn:function(){return[e(d.a,{attrs:{disabled:t.disabled,bottom:"","content-class":"rounded-lg"},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e(r.a,t._g(t._b({attrs:{icon:""}},"v-btn",c,!1),o),[e("img",{staticClass:"mr-2",attrs:{width:"32",src:t.icon}}),t._v(" "),e("img",{directives:[{name:"show",rawName:"v-show",value:!t.disabled,expression:"!disabled"}],attrs:{width:"10",src:"https://res.cloudinary.com/lome/image/upload/v1631334427/assets/icon-down.png"}})])]}}],null,!1,1496809617)},[t._v(" "),e(o.a,{staticClass:"rounded-lg pa-0",attrs:{dark:"",color:t.color}},[e(l.a,{attrs:{color:"accent"},model:{value:t.currentType,callback:function(e){t.currentType=e},expression:"currentType"}},[e(c.a,{attrs:{value:"email"},on:{click:function(e){return e.preventDefault(),t.setType("email")}}},[e("img",{attrs:{width:"24",src:"https://res.cloudinary.com/lome/image/upload/v1644249109/assets/icon-envelope-white.png"}}),t._v(" "),e("div",{staticClass:"ml-1"},[t._v("Email")])]),t._v(" "),e(c.a,{attrs:{value:"phone"},on:{click:function(e){return e.preventDefault(),t.setType("phone")}}},[e("img",{attrs:{width:"23",src:"https://res.cloudinary.com/lome/image/upload/v1644249109/assets/icon-phone-white.png"}}),t._v(" "),e("div",{staticClass:"ml-1"},[t._v("Phone")])])],1)],1)],1)]},proxy:!0}],null,!0),model:{value:t.inputVal,callback:function(e){t.inputVal=e},expression:"inputVal"}})}),[],!1,null,null,null);e.a=component.exports},1090:function(t,e,n){var content=n(1138);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("4f741214",content,!0,{sourceMap:!1})},1091:function(t,e,n){var content=n(1140);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("e2a55334",content,!0,{sourceMap:!1})},1092:function(t,e,n){var content=n(1142);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("6e7b8d58",content,!0,{sourceMap:!1})},1093:function(t,e,n){var content=n(1144);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("e3cf9c78",content,!0,{sourceMap:!1})},1094:function(t,e,n){var content=n(1146);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("3a954f6a",content,!0,{sourceMap:!1})},1095:function(t,e,n){var content=n(1148);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("223809ee",content,!0,{sourceMap:!1})},1096:function(t,e,n){"use strict";var r=n(350),o=n(1809),c=n(354),l=n(1044),d=(n(27),n(35),n(5)),m=n.n(d),h="YYYY-MM-DD",f={name:"LDatePicker",props:{value:{type:String},block:{type:Boolean,default:!1},large:{type:Boolean,default:!1},smallText:{type:Boolean,default:!1},allowedDates:{type:Array,default:function(){return[]}},emptyText:{type:String,default:"Date"},format:{type:String,default:"MMM D"},outlined:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},color:{type:String,default:"primary"},btnColor:{type:String,default:"secondary"},muted:{type:Boolean,default:!1}},data:function(){return{menu:!1}},computed:{theDate:{get:function(){return this.value&&m()(this.value).isValid()?m()(this.value).format(h):null},set:function(t){this.$emit("input",m()(t).format(h))}},formattedDate:function(){if(!this.theDate)return this.emptyText;var t=m()(this.theDate);return"".concat(t.format(this.format))},textColor:function(){return this.muted?this.outlined?"mediumgrey":"white":this.outlined?"black":this.color}},watch:{theDate:function(){this.menu=!1}},methods:{handleAllowedDates:function(t){return!this.allowedDates.length||this.allowedDates.includes(t)}}},v=n(12),component=Object(v.a)(f,(function(){var t=this,e=t._self._c;return e("div",[e(l.a,{attrs:{"close-on-content-click":!1,"content-class":"rounded-lg",disabled:t.disabled,"offset-y":"",bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e(r.a,t._g(t._b({class:"rounded-xl my-1 mr-2 ".concat(t.color,"--text elevation-0"),attrs:{small:!t.large,large:t.large&&!t.$vuetify.breakpoint.xsOnly,"x-large":t.large&&t.$vuetify.breakpoint.xsOnly,color:t.btnColor,outlined:t.outlined,block:t.block},on:{click:function(e){return t.$emit("opened")}}},"v-btn",c,!1),o),[e("span",{class:"".concat(t.textColor,"--text"),style:"".concat(t.smallText&&"font-size: 14px")},[t._v(t._s(t.formattedDate))])])]}}]),model:{value:t.menu,callback:function(e){t.menu=e},expression:"menu"}},[t._v(" "),e(c.a,{staticClass:"pa-2 rounded-lg",attrs:{color:"white"}},[e(o.a,{staticClass:"rounded-lg",attrs:{color:t.color,"allowed-dates":t.handleAllowedDates,"prev-icon":"li-arrow-left","next-icon":"li-arrow-right"},model:{value:t.theDate,callback:function(e){t.theDate=e},expression:"theDate"}},[t._t("default")],2)],1)],1)],1)}),[],!1,null,null,null);e.a=component.exports},1097:function(t,e,n){"use strict";n(27),n(35),n(9),n(15),n(19),n(10),n(20);var r=n(37),o=n(2),c=(n(13),n(6),n(165)),l=n.n(c),d=n(18);function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){Object(o.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f={name:"LMemberPicker",components:{LMember:n(1070).a},props:{value:{type:Array,default:function(){return[]}},title:{type:String,default:null},width:{type:String,default:null},wrap:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},activeOnly:{type:Boolean,default:!1}},data:function(){return{localMemberIds:[]}},computed:h(h({},Object(d.c)({members:"members/members"})),{},{selectedMemberIds:function(){return this.value||[]},selectedMemberIdsTrigger:function(){return JSON.stringify(this.selectedMemberIds)},wrapClass:function(){return this.wrap?"flex-wrap":"flex-nowrap"},widthPx:function(){return this.width?this.width:this.$vuetify.breakpoint.smOnly?"24px":"32px"}}),watch:{selectedMemberIdsTrigger:function(){this.localMemberIds=Object(r.a)(this.selectedMemberIds)}},mounted:function(){this.localMemberIds=Object(r.a)(this.selectedMemberIds)},methods:{toggle:function(t){if(this.editable){var e=Object(r.a)(this.localMemberIds);e.includes(t)?e=e.filter((function(e){return e!==t})):e.push(t),this.localMemberIds=e,this.debounceUpdate()}},debounceUpdate:l()((function(){this.$emit("input",this.localMemberIds)}),1e3)}},v=(n(1171),n(12)),component=Object(v.a)(f,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex flex-column position-relative member-picker"},[t.title?e("div",{staticClass:"member-picker-title primary--text text-center"},[t._v("\n    "+t._s(t.title)+"\n  ")]):t._e(),t._v(" "),e("div",{staticClass:"d-flex justify-left",class:t.wrapClass},t._l(t.members,(function(n){return e("LMember",{directives:[{name:"show",rawName:"v-show",value:!(t.activeOnly&&!t.editable)||t.localMemberIds.includes(n.id),expression:"\n        activeOnly && !editable ? localMemberIds.includes(member.id) : true\n      "}],key:"member-picker-".concat(n.id),class:{"member-picker-avatar":!0,"quarter-opacity":!t.localMemberIds.includes(n.id)},attrs:{member:n,width:t.widthPx,bottom:"",blink:t.localMemberIds.includes(n.id)},on:{clicked:function(e){return t.toggle(n.id)}}})})),1)])}),[],!1,null,null,null);e.a=component.exports},1098:function(t,e,n){var content=n(1157);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("0524c5b0",content,!0,{sourceMap:!1})},1099:function(t,e,n){var content=n(1159);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("576db960",content,!0,{sourceMap:!1})},1100:function(t,e,n){var content=n(1161);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("ecba54ee",content,!0,{sourceMap:!1})},1101:function(t,e,n){var content=n(1163);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("4a8edc17",content,!0,{sourceMap:!1})},1102:function(t,e,n){var content=n(1165);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("52dda21d",content,!0,{sourceMap:!1})},1103:function(t,e,n){var content=n(1167);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("7fc4edf2",content,!0,{sourceMap:!1})},1104:function(t,e,n){var content=n(1169);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("a0b8b29c",content,!0,{sourceMap:!1})},1105:function(t,e,n){"use strict";var r=n(350),o=n(1176),c=(n(9),n(15),n(13),n(6),n(19),n(10),n(20),n(2)),l=n(5),d=n.n(l),m=n(18);function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var v={name:"LTimePicker",components:{LAsset:n(43).a},props:{value:{type:String,default:""},loading:{type:Boolean,default:!1},hideSave:{type:Boolean,default:!1},allowToggle:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},allowDelete:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},label:{type:String,default:""},color:{type:String,default:"primary"},block:{type:Boolean,default:!1},emptyText:{type:String,default:"Time"},clearable:{type:Boolean,default:!1}},data:function(){return{timeH:null,timeM:null,timeA:null,toggle:!1}},computed:{hours:function(){for(var t=[],e=0;e<=11;e++)t.push((0===e?12:e)+"");return this.clearable&&t.push("-"),t},minutes:function(){for(var t=["00","15","30","45","--"],e=0;e<=59;e++)t.push((e<10?"0":"")+e);return t},meridians:function(){return["am","pm"]},time:{get:function(){return this.value?this.getFormat("h:mma"):null},set:function(t){this.$emit("input",t)}},fullTime:function(){return this.timeH+this.timeM+this.timeA||""}},watch:{timeH:function(t,e){if("-"===t)return this.timeH=null,this.timeM=null,this.timeA=null,void(this.time=null);t&&!e&&(this.timeM=this.timeM?this.timeM:"00",this.timeA=this.timeA?this.timeA:12===t||t<7?"pm":"am")},fullTime:function(){this.hideSave&&this.timeH&&this.setTime()},value:function(){this.initTimes()}},mounted:function(){this.initTimes()},methods:f(f({},Object(m.b)({updateCard:"cards/update"})),{},{initTimes:function(){this.timeH=this.time?this.getFormat("h"):null,this.timeM=this.time?this.getFormat("mm"):null,this.timeA=this.time?this.getFormat("a"):null},getFormat:function(t){return d()(d()().format("YYYY-MM-DD")+" "+this.value).format(t)},setTime:function(){this.time=this.getFormattedTime(this.timeH,this.timeM,this.timeA),this.toggle=!1},getFormattedTime:function(t,e,a){if(null===t)return null;var n=parseInt(t,10);return 12===n&&(n-=12),"pm"===a&&(n+=12),(n=(n<10?"0":"")+n)+":"+(e&&"--"!==e?e:"00")},remove:function(){this.toggle=!1,this.$emit("remove")}})},y=(n(1128),n(12)),component=Object(y.a)(v,(function(){var t=this,e=t._self._c;return e("div",[!t.allowToggle||t.toggle||t.value?t._e():e("div",[e(r.a,{staticClass:"rounded-xl my-1 mr-2 primary--text elevation-0",attrs:{small:"",color:"secondary",block:t.block},on:{click:function(e){t.toggle=!0}}},[t._v("\n      "+t._s(t.emptyText)+"\n    ")])],1),t._v(" "),t.allowToggle&&!t.toggle&&t.value?e("div",{staticClass:"cursor-pointer",on:{click:function(e){e.preventDefault(),t.toggle=!0}}},[t._v("\n    "+t._s(t.timeH)+":"+t._s(t.timeM)+t._s(t.timeA)+"\n  ")]):t._e(),t._v(" "),!t.allowToggle||t.toggle?e("div",{staticClass:"d-flex align-center"},[e(o.a,{staticClass:"select-time",class:{"select-time-muted":t.muted,"rounded-xl":t.rounded,"rounded-lg":!t.rounded},attrs:{items:t.hours,label:t.label,color:t.color,"append-icon":"","hide-details":"",outlined:""},model:{value:t.timeH,callback:function(e){t.timeH=e},expression:"timeH"}}),t._v(" "),e("div",{class:{"px-1":!t.muted}},[t._v(":")]),t._v(" "),e(o.a,{staticClass:"select-time",class:{"select-time-muted":t.muted,"rounded-xl":t.rounded,"rounded-lg":!t.rounded,"mr-1":!t.muted},attrs:{items:t.minutes,"menu-props":{auto:!0},color:t.color,"append-icon":"","hide-details":"",outlined:""},model:{value:t.timeM,callback:function(e){t.timeM=e},expression:"timeM"}}),t._v(" "),e(o.a,{staticClass:"select-time select-time-ampm",class:{"select-time-muted":t.muted,"rounded-xl":t.rounded,"rounded-lg":!t.rounded},attrs:{items:t.meridians,color:t.color,"append-icon":"","hide-details":"",outlined:""},model:{value:t.timeA,callback:function(e){t.timeA=e},expression:"timeA"}}),t._v(" "),t.hideSave?t._e():e(r.a,{staticClass:"btn-circle elevation-0 ml-1",attrs:{width:"36",color:t.color,loading:t.loading},on:{click:function(e){return e.preventDefault(),t.setTime.apply(null,arguments)}}},[e("LAsset",{attrs:{width:"16",file:"icon-check-white"}})],1),t._v(" "),t.allowDelete?e(r.a,{class:"btn-circle elevation-0 ml-1 ".concat(t.color,"--text"),attrs:{width:"36",color:"secondary"},on:{click:function(e){return e.preventDefault(),t.remove.apply(null,arguments)}}},[e("span",{staticStyle:{"font-size":"20px"}},[t._v("×")])]):t._e()],1):t._e()])}),[],!1,null,null,null);e.a=component.exports},1106:function(t,e,n){n(34),n(52),n(236);var r=["Work Sans","Roboto","Single Day","Raleway","Merriweather","Quicksand","Protest Strike","Bebas Neue","Source Code Pro","Libre Baskerville","Dosis","Song Myung","EB Garamond","DM Serif Display","Archivo","Dancing Script"];e.getFonts=function(){return r},e.getFontUrl=function(t){return"https://fonts.googleapis.com/css2?family=".concat(t.replaceAll(" ","+"),"&display=swap")}},1107:function(t,e,n){"use strict";var r=n(350),o=n(1054),c=n(1062),l=n(1044),d=n(1053),m=n(1059),h=n(103),f=n(2),v=(n(24),n(163),n(27),n(26),n(73),n(9),n(19),n(20),n(6),n(10),n(112),n(13),n(35),n(15),n(77),n(53),n(102),n(5)),y=n.n(v),_=n(18),k=n(113),w=n(1149),x=n(1127),C=n(100),O=n(138),j=n(1067);function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function S(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var L={name:"LFeatureCard",components:{LCardDate:w.a,LCardView:x.a,LEmoji:C.a,LIcon:O.a,LMenu:j.a},props:{cardId:{type:String,default:""},view:{type:String,default:""},magicCardId:{type:String,default:""},tag:{type:String,default:""},editable:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},narrow:{type:Boolean,default:!1},small:{type:Boolean,default:!1},square:{type:Boolean,default:!1},showDelete:{type:Boolean,default:!1},hideDescription:{type:Boolean,default:!1},showDates:{type:Boolean,default:!1},professional:{type:Boolean,default:!1},menu:{type:Array,default:function(){return[]}},cardObj:{type:Object,default:function(){return{}}}},data:function(){return{isEditing:!1,addDate:null,addDaytime:null,isSaving:!1,previewModal:!1,isPickingMagic:!1,optionsOpen:!1,isPickingFromPlanner:!1}},computed:S(S({},Object(_.c)({home:"home/home",cards:"cards/cards",getCardById:"cards/getById"})),{},{professionalRegular:function(){return this.professional&&!this.narrow},professionalNarrow:function(){return this.professional&&this.narrow},card:function(){return this.cardObj&&this.cardObj.id?this.cardObj:this.getCardById[this.cardId]},optionsMenu:function(){var t=this;if(this.menu.length)return this.menu;var e=[];return this.isPickingFromPlanner?(this.cardsOfTypeThisWeek.forEach((function(n,i){e.push({content:"".concat(y()(n.date).format("dddd"),": ").concat(n.name),emoji:n.icon,asset:n.icon?null:"icon-".concat(n.type,"-white"),func:function(){t.handlePickedCard(n.id)},hideDivider:0===i})})),e.push({content:"Never mind",asset:"icon-delete-white",func:function(){t.optionsOpen=!1}}),e):(e.push({content:"View",asset:"icon-eyes",func:function(){t.$router.push("/a/".concat(t.card.id))},hideDivider:!0}),e.push({content:this.isEditing?"Done":"Edit",asset:"icon-edit-white",func:function(){t.isEditing=!t.isEditing,t.optionsOpen=!1}}),e.push({content:"Replace",asset:"icon-swap-white",func:function(){t.$emit("changed",t.cardId),t.optionsOpen=!1}}),this.cardsOfTypeThisWeek.length&&e.push({content:"Pick from Planner",asset:"icon-planner-white",func:function(){t.isPickingFromPlanner=!0}}),this.showDelete&&e.push({content:"Delete",asset:"icon-delete-white",deleteBtn:!0,hideDivider:!0,func:function(){t.$emit("remove",t.cardId)}}),e)},cardsOfTypeThisWeek:function(){var t=this,e=this.validDates;return e.length?this.cards.filter((function(n){return n.type===t.card.type&&n.date&&n.home_id===t.home.id&&n.id!==t.card.id&&e.includes(n.date)})).sort((function(a,b){return y()(a.date).unix()-y()(b.date).unix()})):[]},weekStart:function(){return this.home.week_start||1},validDates:function(){if(!this.magicCardId)return[];for(var t,e=this.weekStart,n=this.getCardById[this.magicCardId],r=[],i=0;i<7;i++){var o=(t=(t=i+e)>=7?t-7:t)<e?t+7:t;r.push(y()(n.date).day(o).format("YYYY-MM-DD"))}return r},color:function(){return this.card?this.typeField(this.card.type,"dynamicColor")&&this.card.game_theme?this.card.game_theme.color?this.card.game_theme.color:"primary":this.typeField(this.card.type,"color"):"primary"},titleColor:function(){return this.outlined?this.color:"white"},descriptionColor:function(){return this.outlined?"black":"white"},type:function(){return this.card?this.card.type:null},image:function(){return this.card.image?this.card.image:this.card.type?this.typeField(this.card.type,"default"):this.type?this.typeField(this.type,"default"):""},shortDescription:function(){if(!this.card.description)return"";var t=this.card.description.indexOf("<p>"),e=this.card.description.indexOf("</p>")+4,n=this.stripHtml(this.card.description.slice(t,e));!n&&this.card.description&&(n=this.stripHtml(this.card.description));var r=this.getWords(n,15);return r+(r.length<n.length?"...":"")}}),watch:{optionsOpen:function(t){t||(this.isPickingFromPlanner=!1)}},methods:S(S({},Object(_.b)({setSnackbar:"view/setSnackbar"})),{},{typeField:function(t,e){return k.a[t]?k.a[t][e]:""},stripHtml:function(html){return"undefined"==typeof DOMParser?html:(new DOMParser).parseFromString(html,"text/html").body.textContent||""},getWords:function(t,e){return t.split(" ").slice(0,e).join(" ")},handlePickedCard:function(t){this.$emit("pickedcard",t),this.optionsOpen=!1},menuEmit:function(t){this.$emit(t)}})},D=(n(1168),n(12)),component=Object(D.a)(L,(function(){var t=this,e=t._self._c;return t.card?e("div",{class:"rounded-xl d-flex position-relative flex-column ".concat(t.outlined?"shadow-outline":t.color," ").concat("detail"===t.view?"pa-4":"pa-2"," ").concat(t.small?"":"pb-5")},[t.editable&&t.optionsMenu.length&&!t.isEditing?e("div",{staticClass:"position-absolute",class:!t.$vuetify.breakpoint.xsOnly&&"l-card-block-visibility",style:"top: ".concat(t.narrow?15:["emoji","image"].includes(t.view)?-32:12,"px; right: ").concat(t.narrow?32:["emoji","image"].includes(t.view)?6:16,"px")},[e(l.a,{attrs:{"close-on-content-click":!1,"offset-y":"","content-class":"rounded-lg primary l-stack-options-menu"},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e(r.a,t._g(t._b({class:"rounded-xl elevation-0 ".concat(t.titleColor,"--text"),attrs:{color:"transparent","x-small":"",title:"Edit"}},"v-btn",c,!1),o),[e("LIcon",{attrs:{file:"dots",color:t.titleColor,width:"20"}})],1)]}}],null,!1,1768920387),model:{value:t.optionsOpen,callback:function(e){t.optionsOpen=e},expression:"optionsOpen"}},[t._v(" "),e("LMenu",{attrs:{items:t.optionsMenu},on:{emitted:t.menuEmit}})],1)],1):t._e(),t._v(" "),t.view?e("LCardView",{attrs:{"card-id":t.cardId,"in-edit-mode":t.isEditing,view:t.isEditing?"detail":t.view,"show-emoji":"emoji"===t.view},on:{clicked:function(e){return t.$emit("clicked")},toggle:function(e){t.isEditing=!t.isEditing}}}):[t.narrow?e("div",{directives:[{name:"show",rawName:"v-show",value:!(["event","page"].includes(t.type)&&!t.editable),expression:"!(['event', 'page'].includes(type) && !editable)"}],staticClass:"text-center pt-2"},[e(r.a,{staticClass:"rounded-xl elevation-0",class:{"mediumgrey--text uppercase":t.professionalNarrow},style:"min-width: 65px; ".concat(["event","page"].includes(t.type)&&t.editable?"visibility: hidden":["event","page"].includes(t.type)?"display:none":""," ").concat(t.professionalNarrow?"width: 85%;":""," "),attrs:{outlined:!t.outlined,"x-small":"",dark:t.outlined,color:t.professionalNarrow?"secondary":t.titleColor},on:{click:function(e){return e.preventDefault(),t.$emit("clicked-type")}}},[t._v(t._s(t.tag||t.typeField(t.type,"single")))])],1):t._e(),t._v(" "),e(d.a,{class:{"align-stretch":!t.narrow},style:t.narrow?"display:block!important":"",attrs:{dense:""}},[e(o.a,{directives:[{def:h.a,name:"ripple",rawName:"v-ripple"}],staticClass:"cursor-pointer card-magic-image",style:t.square?"max-width:".concat(t.$vuetify.breakpoint.lgAndUp?48:40,"%; margin:0 auto"):"",attrs:{cols:t.narrow?12:t.small?3:t.professionalRegular?5:6,sm:t.professionalRegular?4:null},on:{click:function(e){return e.preventDefault(),t.$emit("clicked")}}},[e("div",{},[!t.card.image&&t.card.icon?e("LEmoji",{attrs:{alt:t.card.name,title:t.card.name,full:"",file:t.card.icon}}):e(c.a,{class:{"rounded-lg":!0},style:t.image&&t.image.startsWith("https://images.unsplash.com/")||t.professionalRegular?"margin:7%":"",attrs:{alt:t.card.name,title:t.card.name,"aspect-ratio":"1",src:t.image}})],1)]),t._v(" "),e(o.a,{staticStyle:{height:"auto"},attrs:{cols:t.narrow?12:t.small?9:t.professionalRegular?7:6}},[e("div",{staticClass:"d-flex flex-column full-height align-start justify-space-between",style:t.narrow?"width:90%; margin:0 auto":""},[t.narrow?t._e():e(r.a,{staticClass:"rounded-xl elevation-0",class:Object(f.a)({"mt-4":!t.small,"mt-1":t.small,"mb-2":t.professionalRegular},t.titleColor+"--text",t.professionalRegular),attrs:{outlined:!t.outlined,"x-small":"",dark:t.outlined,color:t.professionalRegular?"secondary":t.titleColor},on:{click:function(e){return e.preventDefault(),t.$emit("clicked-type")}}},[t._v(t._s(t.tag||t.typeField(t.type,"single")))]),t._v(" "),t.narrow||t.small||t.professionalRegular?t._e():e(m.a),t._v(" "),e("div",{class:"text-".concat(!t.small&&t.square?"center":"left"," cursor-pointer ").concat(t.professionalRegular?"black":t.professionalNarrow?"primary":t.titleColor,"--text  ").concat(t.professional?"mb-1":""),staticStyle:{"font-size":"20px",width:"100%","line-height":"1.1"},on:{click:function(e){return e.preventDefault(),t.$emit("clicked")}}},[e("strong",[t._v(t._s(t.card.name))])]),t._v(" "),t.showDates?e("LCardDate",{staticClass:"tiny-card-date half-opacity",attrs:{"card-id":t.card.id}}):t._e(),t._v(" "),t.small||t.hideDescription?t._e():e("div",{class:"cursor-pointer ".concat(t.descriptionColor,"--text py-2"),staticStyle:{"font-size":"14px","line-height":"1.2"},style:"".concat(t.professional&&!t.$vuetify.breakpoint.xsOnly?"line-height: 1.1; font-size:18px":""),on:{click:function(e){return e.preventDefault(),t.$emit("clicked")}}},[t.shortDescription?e("span",[t._v(t._s(t.shortDescription)),e("br")]):t._e()]),t._v(" "),t.small&&!t.narrow?t._t("default"):t._e(),t._v(" "),e(m.a),t._v(" "),t.small||t.narrow?t._e():t._t("default")],2)])],1),t._v(" "),e(m.a),t._v(" "),e("div",{style:t.narrow?"width:90%; margin:0 auto":""},[t.narrow?t._t("default"):t._e()],2)]],2):t._e()}),[],!1,null,null,null);e.a=component.exports},1108:function(t,e,n){"use strict";n(1073)},1109:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".email-phone-input .v-input__append-inner{margin-right:4px!important;margin-top:10px!important}",""]),r.locals={},t.exports=r},1110:function(t,e,n){"use strict";var r=n(1066),o=n(350),c=n(1041),l=n(1065),d=n(309),m=(n(26),n(15),n(77),n(19),n(20),n(1)),h=n(2),f=(n(33),n(9),n(366),n(166),n(167),n(45),n(13),n(6),n(27),n(35),n(56),n(34),n(52),n(10),n(102),n(24),n(72),n(18)),v=n(5),y=n.n(v),_=n(1071),k=n(376),w=n(1072),x=n(1122),C=n(1089),O=n(100),j=n(67),I=n(1176);function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function L(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?S(Object(n),!0).forEach((function(e){Object(h.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var D={name:"LRemindMeLater",components:{LConfetti:w.a},props:{cardId:{type:String,default:""},color:{type:String,default:"primary"}},data:function(){return{selectedMonth:"",loading:!1,datePicked:!1}},computed:L(L({},Object(f.c)({anonUser:"anon/user"})),{},{months:function(){for(var t=[],e=y()(),n=1;n<=6;n++){var r=e.add(n,"month").format("MMMM YYYY");t.push(r)}return t}}),mounted:function(){this.selectedMonth=this.months[0]},methods:L(L({},Object(f.b)({remindMeLater:"votes/remindMeLater"})),{},{initializeMonths:function(){},dismiss:function(){this.$emit("dismiss")},confirm:function(){var t=this;return Object(m.a)(regeneratorRuntime.mark((function e(){var time;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.selectedMonth&&t.anonUser){e.next=2;break}return e.abrupt("return");case 2:return t.loading=!0,time=y()(t.selectedMonth).add(6,"hours").format("YYYY-MM-DD HH:mm"),e.next=6,t.remindMeLater({time:time,cardId:t.cardId,anon:t.anonUser});case 6:t.datePicked=!0,t.loading=!1,t.$emit("sent");case 9:case"end":return e.stop()}}),e)})))()}})},T=n(12),M=Object(T.a)(D,(function(){var t=this,e=t._self._c;return e("div",[e(I.a,{staticClass:"ma-0 pa-0 font-weight-bold",attrs:{items:t.months,color:t.color,"item-color":t.color,label:"Remind me in..."},model:{value:t.selectedMonth,callback:function(e){t.selectedMonth=e},expression:"selectedMonth"}}),t._v(" "),e("div",{staticClass:"d-flex align-center justify-center"},[e(o.a,{staticClass:"rounded-xl mx-1 elevation-0",staticStyle:{width:"45%"},attrs:{color:t.color,dark:"",loading:t.loading},on:{click:t.confirm}},[t._v("Remind Me")]),t._v(" "),e(o.a,{class:"rounded-xl mx-1 ".concat(t.color,"--text elevation-0"),staticStyle:{width:"45%"},attrs:{color:"secondary"},on:{click:t.dismiss}},[t._v("Dismiss")])],1)],1)}),[],!1,null,null,null).exports,P=n(238),B=n(1080),E=n(368),A=n(68),F=n(1068),z=n.n(F),V=n(38);function $(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function N(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$(Object(n),!0).forEach((function(e){Object(h.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var R={name:"LVoteModal",components:{LAvatar:_.a,LBackIcon:k.a,LConfetti:w.a,LCustomFields:x.a,LEmailPhoneInput:C.a,LEmoji:O.a,LLabel:j.a,LRemindMeLater:M,LToggle:P.a,LVoteName:B.a},props:{value:{type:Boolean,default:!1},voteId:{type:String,required:!0},title:{type:String,default:"Hello there"},subtitle:{type:String,default:""},disclaimer:{type:String,default:null},ignoreContact:{type:Boolean,default:!1},bothContactTypes:{type:Boolean,default:!1},showNumber:{type:Boolean,default:!1},color:{type:String,default:"primary"}},data:function(){return{contactType:"phone",contact:"",phone:"",email:"",name:null,image:null,description:"",customFieldAnswers:{},sending:!1,success:!1,voteOverLimitError:!1,showRemindMeLater:!1,didRemindMeLater:!1,error:!1,multiple:!0,number:1,unvoting:!1,selectedMemberId:null,errorMessage:"",skipEmailSlightlyOff:!1,upsellEvents:[{file:"school-bus",name:"School",color:"lteal"},{file:"stew",name:"Potluck",color:"lpurple",theme:"Potluck"},{file:"wave",name:"Volunteers",color:"lred",theme:"Volunteer Shifts"},{file:"soccer",name:"Sports",color:"ldarkblue",theme:"Soccer Snacks"},{file:"camp",name:"Trips",color:"primary"}],currentTab:"default",tabOptions:[{text:"Contact",value:"default"},{text:"Details",value:"details"}]}},computed:N(N({},Object(f.c)({members:"members/members",anonUser:"anon/user",loggedInOrAnon:"members/loggedInOrAnon",getMemberById:"members/getById",getVoteById:"votes/getById",getCardById:"cards/getById",getBoardById:"boards/getById",invitee:"messages/invitee",hasPlanPermission:"home/hasPlanPermission",getVotesByCardId:"votes/getByCardId",getRecipientsByCardId:"votes/getRecipientsByCardId"})),{},{requireSignup:function(){var t,e=this,content=this.card.content?JSON.parse(JSON.stringify(this.card.content)):[],i=content.findIndex((function(t){return t.type===e.card.vote_type}));return-1!==i&&(content[i].require_signup&&"yes"===(null===(t=this.vote)||void 0===t?void 0:t.slug)&&!this.allMemberVotes.length)},allMemberVotes:function(){var t=this;if(!this.loggedInOrAnon)return[];var e=this.allCardVotes.filter((function(t){return!t.slug})).map((function(t){return t.voters})).flat();if(!e.length)return[];var n=e.filter((function(e){return[e.member_id,e.anon_id].includes(t.loggedInOrAnon.id)}));return n.map((function(t){return t.vote_id}))},memberVoter:function(){var t=this,e=this.getRecipientsByCardId(this.card.id);if(e.length)return e.find((function(e){return e.member_id===t.selectedMemberId||e.anon_id===t.selectedMemberId}))},memberHasVotes:function(){var t;return!!this.memberVoter&&(null===(t=this.memberVoter)||void 0===t||null===(t=t.vote_ids)||void 0===t?void 0:t.length)>0},limitSignups:function(){if(["yes","no"].includes(this.vote.slug))return!1;var content=this.card.content?JSON.parse(JSON.stringify(this.card.content)):[],i=content.findIndex((function(t){return"signup"===t.type||"signup-rsvp"===t.type}));return-1!==i&&(!!content[i].limit_signups&&!!this.allMemberVotes.length)},allCardVotes:function(){return this.getVotesByCardId(this.card.id)},cardNoVote:function(){var t;return"signup-rsvp"!==(null===(t=this.card)||void 0===t?void 0:t.vote_type)?null:this.getVotesByCardId(this.card.id).find((function(t){return"no"===t.slug}))},votedForNo:function(){var t;return!!this.cardNoVote&&(!["yes","no"].includes(this.vote.slug)&&(null===(t=this.cardNoVote.voters)||void 0===t||null===(t=t.filter((function(t){return Boolean(t.member_id)})))||void 0===t||null===(t=t.map((function(t){return t.member_id})))||void 0===t?void 0:t.includes(this.selectedMemberId)))},showNoConfirmMsg:function(){var t;return"signup-rsvp"===(null===(t=this.card)||void 0===t?void 0:t.vote_type)&&("no"===this.vote.slug&&this.memberHasVotes)},exceedLimit:{get:function(){var t=this,content=this.card.content?JSON.parse(JSON.stringify(this.card.content)):[],i=content.findIndex((function(e){return e.type===t.card.vote_type}));return-1!==i&&!!content[i].exceed_limit},set:function(t){var e=this,content=this.card.content?JSON.parse(JSON.stringify(this.card.content)):[],i=content.findIndex((function(t){return t.type===e.card.vote_type}));-1!==i&&(content[i].exceed_limit=t,this.updateField("content",content))}},dialog:{get:function(){return this.value},set:function(t){this.$emit("input",t)}},vote:function(){return this.getVoteById[this.voteId]},voteDescription:function(){var t;return null===(t=this.vote)||void 0===t?void 0:t.description},voteLimit:function(){var t;return null===(t=this.vote)||void 0===t?void 0:t.limit},exceededLimit:function(){return this.voteLimit&&this.numberOfVoters>=this.voteLimit&&!this.didVoteFor()},card:function(){return this.vote?this.getCardById[this.vote.card_id]:null},customFields:function(){if(!this.card)return null;if(this.vote&&"no"===this.vote.slug)return null;var content=this.card.content?JSON.parse(JSON.stringify(this.card.content)):[],i=content.findIndex((function(t){return t.custom_fields}));return-1!==i?content[i].custom_fields.filter((function(t){return!!t.name})):null},cardCustomMessage:function(){if(!this.card)return null;var content=this.card.content?JSON.parse(JSON.stringify(this.card.content)):[],i=content.findIndex((function(t){return t.custom_message}));return-1!==i?content[i].custom_message:"Message"},hideCardCustomMessage:function(){if(!this.card)return null;var content=this.card.content?JSON.parse(JSON.stringify(this.card.content)):[],i=content.findIndex((function(t){return t.hide_custom_message}));return-1!==i&&content[i].hide_custom_message},cardDefaultContact:function(){if(!this.card)return null;var content=this.card.content?JSON.parse(JSON.stringify(this.card.content)):[],i=content.findIndex((function(t){return t.default_contact}));return-1!==i?content[i].default_contact:""},allowExceedLimit:function(){var content=this.card.content?JSON.parse(JSON.stringify(this.card.content)):[],i=content.findIndex((function(t){return"signup"===t.type||"signup-rsvp"===t.type}));return-1===i||!!content[i].exceed_limit},isOwner:function(){var t;return!!this.$auth.loggedIn&&(null===(t=this.card)||void 0===t?void 0:t.home_id)===this.$auth.user.home.id},voters:function(){return this.vote.voters&&this.vote.voters.length?this.vote.voters:[]},contactDisclaimer:function(){return this.disclaimer?this.bothContactTypes?this.disclaimer.includes("email")?this.disclaimer.replace("email","email and phone"):this.disclaimer.replace("phone","phone and email"):"phone"===this.contactType?this.disclaimer.replace("email","phone"):this.disclaimer.replace("phone","email"):null},homeCanSms:function(){return!(!this.card||!this.card.homeCanSms)||!(!this.$auth.loggedIn||this.card.home_id!==this.$auth.user.home.id)&&this.hasPlanPermission("can_sms")},modalColor:function(){return"secondary"===this.color?"black":this.color},numberOfVoters:function(){var t=0;return this.voters.forEach((function(e){t+=e.number||1})),t},currentTotalNumber:function(){var t=this.number?parseInt(this.number,10):1,e=this.getCurrentVoter();return e?t-e.number+this.numberOfVoters:t+this.numberOfVoters},overMaxError:function(){if(this.allowExceedLimit||!this.voteLimit)return!1;var t=parseInt(this.voteLimit,10);return this.currentTotalNumber>t},numberMax:function(){if(!this.overMaxError)return null;var t=this.number?parseInt(this.number,10):1,e=this.voteLimit?parseInt(this.voteLimit,10):1;return t-(this.currentTotalNumber-e)},dateName:function(){return this.vote.date?y()(this.vote.date).isValid()?y()(this.vote.date).format("dddd, MMMM D, YYYY"):this.vote.date:null},hideRsvpNo:function(){if(!this.vote||"no"!==this.vote.slug)return!1;var content=z.a.getCardVoteContent(this.card);return!!content&&!!content.hide_rsvp_no},board:function(){return this.card&&this.card.board_id?this.getBoardById[this.card.board_id]:null},hideBranding:function(){return this.board&&A.a.boardHideBranding(this.board)},hasCustomFields:function(){return this.customFields&&!!this.customFields.length},emptyRequiredCustomFields:function(){var t=this;if(!this.hasCustomFields)return[];var e=this.customFields.filter((function(t){return t.required})).map((function(t){return t.name}));if(!e.length)return[];var n=[];return e.forEach((function(e){t.customFieldAnswers&&t.customFieldAnswers[e]||n.push(e)})),n},needsWiderModal:function(){return"details"===this.currentTab&&!!this.customFields.find((function(t){return"description"===t.type}))}}),watch:{dialog:function(t){t?this.setupUser():(this.sending=!1,this.success=!1,this.showRemindMeLater=!1,this.didRemindMeLater=!1,this.error=!1,this.voteOverLimitError=!1,this.currentTab="default")},anonUser:function(t,e){!t&&e&&(this.resetData(),this.contactType="email")}},mounted:function(){this.homeCanSms||(this.contactType="email"),this.setupUser(),this.cardDefaultContact&&(this.contactType=this.cardDefaultContact)},methods:N(N({},Object(f.b)({createAnon:"anon/create",voterVote:"votes/vote",voterUnvote:"votes/unvote",updateCard:"cards/update",memberAction:"members/takeAction"})),{},{resetData:function(){Object.assign(this.$data,this.$options.data())},openEditView:function(){this.dialog=!1},getCurrentVoter:function(){var t,e=this;if(this.voters.length)if(this.$auth.loggedIn){if(t=this.voters.find((function(t){return t.member_id===e.$auth.user.id})))return t;if(t=this.voters.find((function(t){return e.members.map((function(t){return t.id})).includes(t.member_id)})))return t}else if(this.anonUser&&(t=this.voters.find((function(t){return t.anon_id===e.anonUser.id}))))return t;return null},setupUser:function(){this.currentTab="default",this.description="";var t=this.getCurrentVoter();if(!t)return this.$auth.loggedIn?(this.name=!this.card.board_id||this.selectedMemberId&&this.$auth.user.id!==this.selectedMemberId?this.name?this.name:this.$auth.user.name:A.a.boardMemberName(this.card.board_id,this.$auth.user),this.image=this.image||this.$auth.user.image,this.$auth.user.phone&&(this.contactType="phone",this.contact=this.$auth.user.phone,this.phone=this.$auth.user.phone),this.$auth.user.email&&(this.contactType="email",this.contact=this.$auth.user.email,this.email=this.$auth.user.email),this.cardDefaultContact&&(this.contactType=this.cardDefaultContact,this.contact=this.$auth.user[this.cardDefaultContact]||""),void(this.selectedMemberId=this.$auth.user.id)):this.anonUser?(this.name=this.anonUser.name,this.image=this.anonUser.image,this.anonUser.phone&&(this.contactType="phone",this.contact=this.anonUser.phone,this.phone=this.anonUser.phone),this.anonUser.email&&(this.contactType="email",this.contact=this.anonUser.email,this.email=this.anonUser.email),void(this.cardDefaultContact&&(this.contactType=this.cardDefaultContact,this.contact=this.anonUser[this.cardDefaultContact]||""))):this.invitee?(this.invitee.phone&&(this.contactType="phone",this.contact=this.invitee.phone,this.phone=this.invitee.phone),this.invitee.email&&(this.contactType="email",this.contact=this.invitee.email,this.email=this.invitee.email),void(this.cardDefaultContact&&(this.contactType=this.cardDefaultContact,this.contact=this.invitee[this.cardDefaultContact]||""))):void 0;this.setupBasedOnVoter(t)},setupBasedOnVoter:function(t){var e=this,n=["name","image","description","custom_fields"];this.showNumber&&n.push("number"),n.forEach((function(n){"custom_fields"===n&&t[n]?e.setCustomFieldAnswers(t[n]):e[n]=t[n]})),t.member_id&&this.selectMember(t.member_id),this.$auth.loggedIn?(t.phone&&(this.contactType="phone",this.contact=t.phone,this.phone=t.phone),t.email&&(this.contactType="email",this.contact=t.email,this.email=t.email),this.cardDefaultContact&&(this.contactType=this.cardDefaultContact,this.contact=t[this.cardDefaultContact]||"")):this.anonUser&&(this.anonUser.phone&&(this.contactType="phone",this.contact=this.anonUser.phone,this.phone=this.anonUser.phone),this.anonUser.email&&(this.contactType="email",this.contact=this.anonUser.email,this.email=this.anonUser.email),this.cardDefaultContact&&(this.contactType=this.cardDefaultContact,this.contact=this.anonUser[this.cardDefaultContact]||""))},didVoteFor:function(t){var e,n,r=this;return t=this.selectedMemberId&&!t?this.selectedMemberId:t,this.$auth.loggedIn&&!(null===(e=this.vote)||void 0===e||null===(e=e.voters)||void 0===e||!e.find((function(e){return e.member_id===t})))||this.anonUser&&!(null===(n=this.vote)||void 0===n||null===(n=n.voters)||void 0===n||!n.find((function(t){return t.anon_id===r.anonUser.id})))},selectMember:function(t){this.selectedMemberId=t;var e=this.getMemberById[t];e&&(this.name=this.card.board_id?A.a.boardMemberName(this.card.board_id,e):e.name?e.name:this.name,this.image=e.image||this.image,"sms"===e.channel_pref&&e.phone?(this.contactType="phone",this.contact=e.phone,this.phone=e.phone):"email"===e.channel_pref&&e.email||e.email?(this.contactType="email",this.contact=e.email,this.email=e.email):e.phone&&(this.contactType="phone",this.contact=e.phone,this.phone=e.phone))},send:function(){var t=this;return Object(m.a)(regeneratorRuntime.mark((function e(){var data,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.hasCustomFields||"default"!==t.currentTab){e.next=3;break}return t.currentTab="details",e.abrupt("return");case 3:if(!t.emptyRequiredCustomFields.length){e.next=7;break}return t.errorMessage="Please fill in: ".concat(t.emptyRequiredCustomFields.join(", ")),t.error=!0,e.abrupt("return");case 7:if(t.errorMessage="",t.error=!1,t.bothContactTypes&&(t.contact=t.email),t.name){e.next=14;break}return t.errorMessage="Please enter your name",t.error=!0,e.abrupt("return");case 14:if(t.contact||t.ignoreContact){e.next=18;break}return t.errorMessage="Please enter your ".concat(t.contactType),t.error=!0,e.abrupt("return");case 18:if(t.showNumber||(t.number=1),!t.overMaxError){e.next=23;break}return t.errorMessage="Please enter a maximum of ".concat(parseInt(t.number,10)-(t.currentTotalNumber-t.voteLimit)),t.error=!0,e.abrupt("return");case 23:if(!t.contact||"email"!==t.contactType||!Object(E.emailIsSlightlyOff)(t.contact)||t.skipEmailSlightlyOff){e.next=28;break}return t.skipEmailSlightlyOff=!0,t.errorMessage=Object(E.emailIsSlightlyOff)(t.contact),t.error=!0,e.abrupt("return");case 28:if(t.sending=!0,data={},data={description:t.description,custom_fields:null,number:t.number,name:t.name,image:t.image,ignore_contact:t.ignoreContact},t.hasCustomFields&&(data.custom_fields=t.customFieldAnswers),data[t.contactType]=t.contact,t.bothContactTypes&&(data.phone=t.phone,data.email=t.email),n=null,t.$auth.loggedIn){e.next=47;break}return t.anonUser&&(data.id=t.anonUser.id),e.next=39,t.createAnon(data);case 39:if(n=e.sent){e.next=44;break}return t.error=!0,t.sending=!1,e.abrupt("return");case 44:data.anon_id=n.id,e.next=48;break;case 47:data.member_id=t.selectedMemberId;case 48:return e.next=50,t.voterVote({voteId:t.voteId,voter:data});case 50:if(!e.sent.error){e.next=54;break}return t.voteOverLimitError=!0,e.abrupt("return");case 54:try{t.isOwner||t.memberAction(V.lb)}catch(t){}t.success=!0;case 56:case"end":return e.stop()}}),e)})))()},unvote:function(){var t=this;return Object(m.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.unvoting=!0,n={},t.anonUser&&(n.anon_id=t.anonUser.id),t.selectedMemberId&&(n.member_id=t.selectedMemberId),e.next=6,t.voterUnvote({voteId:t.voteId,voter:n});case 6:t.unvoting=!1,t.dialog=!1;case 8:case"end":return e.stop()}}),e)})))()},setContactType:function(t){if(this.contactType=t,this.selectedMemberId&&this.getMemberById[this.selectedMemberId]){var e=this.getMemberById[this.selectedMemberId];e[t]&&(this.contact=e[t],this[t]=e[t])}},sizing:function(t){return t*(this.$vuetify.breakpoint.xsOnly?.6:1)},updateField:function(t,e){var n={};n[t]=e,this.updateFields(n)},updateFields:function(t){var e=this;return Object(m.a)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r={id:e.card.id,fields:t},n.next=3,e.updateCard(r);case 3:case"end":return n.stop()}}),n)})))()},getEventLink:function(t){return"/create?type=signup".concat(t&&t.theme?"&theme="+t.theme:"").concat(this.email?"&email="+this.email:"email"===this.contactType?"&email="+this.contact:"","&utm_source=lome&utm_campaign=post-vote&utm_content=card-").concat(this.card.id)},sentRemindMeLater:function(){var t=this;this.didRemindMeLater=!0,setTimeout((function(){t.dialog=!1}),3e3)},setCustomFieldAnswers:function(t){this.$set(this,"customFieldAnswers",t)}})},U=(n(1125),Object(T.a)(R,(function(){var t=this,e=t._self._c;return t.vote?e(l.a,{attrs:{"content-class":"rounded-ml outlined-card-muted elevation-0","max-width":t.needsWiderModal?"560px":"420px"},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[e(c.a,{staticClass:"rounded-ml elevation-0 position-relative"},[t.success?e(o.a,{staticClass:"position-absolute",staticStyle:{top:"8px",right:"8px"},attrs:{icon:"","x-small":""},on:{click:function(e){e.preventDefault(),t.dialog=!1}}},[t._v("×")]):t._e(),t._v(" "),e("div",{staticClass:"px-6 pb-6"},[t.success?[e("LConfetti"),t._v(" "),t.$auth.loggedIn||t.hideBranding?[e("h2",{class:"\n              ".concat(t.modalColor,"--text\n              text-center\n              preview-modal-name\n              my-3")},[t._v("\n            Thank you!\n          ")]),t._v(" "),e(o.a,{staticClass:"mt-12",attrs:{color:t.modalColor,"x-large":"",rounded:"",dark:"",type:"submit",elevation:"0",block:""},on:{click:function(e){e.preventDefault(),t.dialog=!1}}},[t._v("\n            Done\n          ")])]:t.didRemindMeLater?[e("LConfetti"),t._v(" "),e("div",{staticClass:"d-flex flex-column full-height align-center text-center"},[e("div",{staticClass:"mt-6"},[e("LEmoji",{staticStyle:{"font-size":"200px"},attrs:{file:"party-popper",block:""}}),t._v(" "),e("h2",{class:"\n              black--text\n              text-center\n              preview-modal-name\n              my-3"},[e("span",{staticClass:"primary--text"},[t._v("Sounds great,")]),e("br"),t._v("we’ll\n                see you then!\n              ")])],1),t._v(" "),e(o.a,{staticClass:"mt-8 primary--text",attrs:{color:"secondary","x-large":"",rounded:"",elevation:"0",block:""},on:{click:function(e){e.preventDefault(),t.dialog=!1}}},[t._v("\n              Done\n            ")])],1)]:[e("h2",{class:"\n              primary--text\n              preview-modal-name\n              mt-3 mb-1"},[t._v("\n            Thank you!\n          ")]),t._v(" "),e("h2",{class:"\n              black--text\n              preview-modal-name\n              mb-0"},[t._v("\n            Get a free sign up on Lome!\n          ")]),t._v(" "),e("ul",{staticClass:"my-3",staticStyle:{"font-size":"14px"}},[e("li",[t._v("Saves time with easy customizations")]),t._v(" "),e("li",[t._v("No annoying ads or spam. Ever!")]),t._v(" "),e("li",[t._v("Makes you look good with delightful templates")])]),t._v(" "),e("div",{staticClass:"align-stretch justify-center d-flex mb-3"},t._l(t.upsellEvents,(function(n,r){return e("a",{key:"ue-".concat(n.file),staticClass:"no-underline text-center d-block sample-event",class:{"mt-7":r%2==1},attrs:{href:t.getEventLink(n)},on:{click:function(e){e.preventDefault(),t.$router.push(t.getEventLink(n))}}},[e("div",{staticStyle:{height:"72px",width:"72px"}},[e("LEmoji",{attrs:{file:n.file,full:""}})],1),t._v(" "),e("div",{class:"primary--text pb-2",staticStyle:{"font-size":"14px"}},[t._v("\n                "+t._s(n.name)+"\n              ")])])})),0),t._v(" "),t.showRemindMeLater?t._e():e("div",{staticClass:"text-center mb-3",staticStyle:{"font-size":"14px"}},[t._v("\n            Lome makes it easy to plan\n            "),t.$vuetify.breakpoint.xsOnly?e("br"):t._e(),t._v("all kinds of events!\n          ")]),t._v(" "),t.showRemindMeLater?t._e():e(o.a,{staticClass:"rounded-xl elevation-0 mb-2",attrs:{"x-large":"",dark:"",block:"",to:t.getEventLink(null),color:"primary"}},[t._v("Create a Free Sign Up")]),t._v(" "),t.showRemindMeLater?e("div",[e("LRemindMeLater",{attrs:{"card-id":t.card.id,color:"primary"},on:{sent:t.sentRemindMeLater,dismiss:function(e){t.showRemindMeLater=!1}}})],1):t.anonUser&&t.anonUser.email?e("div",{staticClass:"text-center",staticStyle:{"font-size":"14px"}},[e("a",{class:"primary--text",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showRemindMeLater=!0}}},[t._v("Remind Me Later")])]):t._e()]]:t.voteOverLimitError?[e("h2",{staticClass:"text-center preview-modal-name my-3"},[t._v("Sorry!")]),t._v(" "),e("p",[t._v("This sign up has reached its limit")]),t._v(" "),e(o.a,{staticClass:"mt-4",attrs:{color:t.modalColor,"x-large":"",rounded:"",dark:"",elevation:"0",block:""},on:{click:function(e){e.preventDefault(),t.dialog=!1}}},[t._v("\n          Pick something else\n        ")])]:[e("div",{staticClass:"d-flex justify-space-between align-center pa-2",staticStyle:{"border-bottom":"solid 1px #b9d6a5",margin:"0 -24px"}},[e("div",[e("a",{class:"".concat(t.modalColor,"--text text-decoration-none font-weight-bold d-flex align-center"),attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.dialog=!1}}},[e("LBackIcon",{staticStyle:{width:"24px"},attrs:{color:t.modalColor}}),t._v(" "),e("div",{staticClass:"ml-2 flex-grow-1",staticStyle:{"line-height":"1.2","font-size":"16px"},attrs:{title:t.title}},[t._v("\n                "+t._s(t.title)+"\n              ")])],1)]),t._v(" "),t.voters.length&&!t.hideRsvpNo?e("div",{staticClass:"flex-shrink-0 ml-1"},[e("small",[e("a",{class:"".concat(t.modalColor,"--text text-decoration-none font-weight-bold"),attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.dialog=!1,t.$emit("voters-modal")}}},[e("div",{class:"".concat(t.color," white--text rounded-circle text-center "),staticStyle:{height:"24px",width:"24px","line-height":"24px",display:"inline-block"}},[t._v("\n                  "+t._s(t.voters.length)+"\n                ")]),t._v("\n                Selected")])])]):t._e()]),t._v(" "),e("div",{staticClass:"d-flex align-center my-3"},[t.vote.icon?e("div",{staticClass:"mr-2",staticStyle:{width:"36px",height:"36px"}},[e("LEmoji",{attrs:{file:t.vote.icon,full:""}})],1):t._e(),t._v(" "),e("div",[e("div",{staticClass:"font-weight-bold",staticStyle:{"font-size":"20px","line-height":"1.2"}},[t.vote.group?e("span",[t._v("\n                "+t._s(t.vote.group)+"\n              ")]):t._e(),t._v(" "),e("LVoteName",{attrs:{"vote-id":t.vote.id}})],1),t._v(" "),t.dateName?e("LLabel",{attrs:{color:t.color}},[t._v(t._s(t.dateName))]):t._e()],1)]),t._v(" "),t.voteDescription?e("div",{class:"".concat(t.color,"--links smaller-p pb-2"),staticStyle:{"font-size":"16px"},domProps:{innerHTML:t._s(t.voteDescription)}}):t._e(),t._v(" "),!t.allowExceedLimit&&t.exceededLimit||t.votedForNo?e("div",[e(r.a,{staticClass:"secondary text-center rounded-lg mt-3"},[t.votedForNo?[t._v('\n              You\'ve already responded "No"\n            ')]:t.isOwner?e("div",{staticStyle:{"font-size":"14px"}},[t._v("\n              This is currently at the limit. As host, you can allow people to\n              still sign up.\n              "),e("a",{class:"".concat(t.modalColor,"--text"),attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.exceedLimit=!0}}},[t._v("Enable this now")])]):[t._v("This is currently full")]],2),t._v(" "),e(o.a,{staticClass:"mt-4",attrs:{color:t.modalColor,"x-large":"",rounded:"",dark:"",elevation:"0",block:""},on:{click:function(e){e.preventDefault(),t.dialog=!1}}},[t.isOwner?[t._v("Close")]:[t._v("Pick something else")]],2)],1):e("form",{on:{submit:function(e){return e.preventDefault(),t.send.apply(null,arguments)}}},[t.hasCustomFields?e("div",{staticClass:"mb-5"},[e("LToggle",{attrs:{color:t.modalColor,options:t.tabOptions},model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}})],1):t._e(),t._v(" "),"default"===t.currentTab?[e(d.a,{key:"vote-modal-name",staticClass:"rounded-xl primary--text mb-5",attrs:{placeholder:"Your Name",outlined:"","hide-details":"",color:"primary"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})]:t._e(),t._v(" "),t.limitSignups?t._e():e("div",["default"===t.currentTab?[t.showNumber?e("div",[e("div",{staticClass:"mx-auto text-center mb-1 half-opacity",staticStyle:{"margin-top":"-12px","font-size":"80%",width:"92%"}},[t._v("\n                  "+t._s("rsvp"===t.card.vote_type?"How many are coming?":"How many?")+"\n                ")]),t._v(" "),e(d.a,{key:"vote-modal-number",staticClass:"rounded-xl primary--text mb-5",attrs:{placeholder:"rsvp"===t.card.vote_type?"How many are coming?":"How many?",outlined:"","hide-details":!t.overMaxError,error:t.overMaxError,"error-messages":t.overMaxError?["Please enter only up to ".concat(t.numberMax)]:[],type:"number",color:"primary"},model:{value:t.number,callback:function(e){t.number=e},expression:"number"}})],1):t._e(),t._v(" "),t.hideCardCustomMessage?t._e():e(d.a,{key:"vote-modal-description",staticClass:"rounded-xl primary--text mb-5",attrs:{placeholder:t.cardCustomMessage,outlined:"","hide-details":"",color:"primary"},model:{value:t.description,callback:function(e){t.description=e},expression:"description"}}),t._v(" "),t.ignoreContact?t._e():[t.bothContactTypes?[e("LEmailPhoneInput",{staticClass:"mb-5",attrs:{type:"phone",disabled:"",autocomplete:"off",required:""},model:{value:t.phone,callback:function(e){t.phone=e},expression:"phone"}}),t._v(" "),e("LEmailPhoneInput",{attrs:{type:"email",disabled:"",autocomplete:"off",required:""},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}})]:[e("LEmailPhoneInput",{attrs:{type:t.contactType,disabled:!t.homeCanSms,autocomplete:"off",required:""},on:{settype:t.setContactType},model:{value:t.contact,callback:function(e){t.contact=e},expression:"contact"}})],t._v(" "),t.contactDisclaimer?e("div",{staticClass:"mx-auto mt-1 half-opacity",staticStyle:{"font-size":"12px",width:"80%"}},[t._v("\n                  "+t._s(t.contactDisclaimer)+"\n                ")]):t._e()]]:t._e(),t._v(" "),t.hasCustomFields&&"details"===t.currentTab?["no"!==t.vote.slug&&t.hasCustomFields?e("LCustomFields",{attrs:{"custom-fields":t.customFields,answers:t.customFieldAnswers},on:{updated:t.setCustomFieldAnswers}}):t._e()]:t._e(),t._v(" "),t.hasCustomFields&&"default"===t.currentTab?[e("div",{staticClass:"d-flex justify-space-around mt-6"},[e(o.a,{key:"vote-modal-continue",staticStyle:{width:"100%"},attrs:{color:t.modalColor,rounded:"",dark:"","x-large":"",elevation:"0",type:"submit"},on:{click:function(e){e.preventDefault(),t.currentTab="details"}}},[t._v("\n                  Continue\n                ")])],1)]:t._e(),t._v(" "),t.hasCustomFields&&"details"!==t.currentTab?t._e():[t.error?e(r.a,{staticClass:"secondary error--text mt-3"},[t.errorMessage?[t._v(t._s(t.errorMessage))]:[t._v("We had some trouble saving that, please double check and\n                  try again")]],2):t._e(),t._v(" "),t.requireSignup?e(r.a,{staticClass:"secondary text-center rounded-lg mt-3"},[t._v("\n                Please sign up for something before you RSVP.\n              ")]):t._e(),t._v(" "),e("div",{staticClass:"mt-6"},[e(o.a,{key:"vote-modal-submit",attrs:{color:t.showNoConfirmMsg?"lred":t.modalColor,rounded:"",block:"",dark:"","x-large":"",type:"submit",elevation:"0",disabled:t.requireSignup,loading:t.sending}},[t._v("\n                  "+t._s(t.didVoteFor()?"Update":t.showNoConfirmMsg?"Delete Other Responses & Send":"Send")+"\n                ")]),t._v(" "),t.didVoteFor()?e(o.a,{key:"vote-modal-remove",staticClass:"error--text mt-3",attrs:{color:"secondary",block:"",rounded:"","x-large":"",dark:"",elevation:"0",loading:t.unvoting},on:{click:function(e){return e.preventDefault(),t.unvote.apply(null,arguments)}}},[t._v("\n                  Remove\n                ")]):t._e()],1)]],2)],2),t._v(" "),t.limitSignups?e(r.a,{staticClass:"secondary text-center rounded-lg mt-3"},[e("div",[t._v("You can only sign up for 1 item")])]):t._e()]],2)],1)],1):t._e()}),[],!1,null,null,null));e.a=U.exports},1111:function(t,e,n){var content=n(1172);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("36f9182d",content,!0,{sourceMap:!1})},1112:function(t,e,n){"use strict";n(1075)},1113:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".vote-border{background:#fff}.l-vote-description{color:#555!important}.l-vote-description p{color:#555!important;margin-bottom:0!important}.l-vote-description a{color:#555!important}.l-vote-description h3{color:#555!important;font-size:18px!important}.l-description-colorful{color:#ddd!important}.l-description-colorful p{color:#ddd!important;margin-bottom:0!important}.l-description-colorful a{color:#ddd!important}.l-description-colorful h3{color:#ddd!important;font-size:18px!important}",""]),r.locals={},t.exports=r},1116:function(t,e,n){"use strict";n(24),n(36);var r={name:"LHeroEmojis",components:{LEmoji:n(100).a},props:{main:{type:String,default:""},back:{type:String,default:""},front:{type:String,default:""},movement:{type:String,default:"floating"},backTop:{type:Number,default:-20},backLeft:{type:Number,default:-10},frontTop:{type:Number,default:10},frontRight:{type:Number,default:0}}},o=(n(1132),n(12)),component=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"hero-emojis"},[e("LEmoji",{staticClass:"hero-emoji hero-emoji-back",style:"top: ".concat(t.backTop,"%; left: ").concat(t.backLeft,"%; animation-name: ").concat(t.movement,"-back;"),attrs:{full:"",file:t.back}}),t._v(" "),e("LEmoji",{staticClass:"hero-emoji-invisible",attrs:{full:"",file:t.main}}),t._v(" "),e("LEmoji",{staticClass:"hero-emoji hero-emoji-main",attrs:{full:"",file:t.main}}),t._v(" "),e("LEmoji",{staticClass:"hero-emoji hero-emoji-front",style:"top: ".concat(t.frontTop,"%; right: ").concat(t.frontRight,"%; animation-name: ").concat(t.movement,"-front;"),attrs:{full:"",file:t.front}})],1)}),[],!1,null,null,null);e.a=component.exports},1118:function(t,e,n){"use strict";n(1076)},1119:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".game-theme-bg-container{height:100%;left:0;overflow:hidden;top:0;width:100%}.theme-fonts h4,.theme-h4{font-size:.875em}.theme-fonts p,.theme-p{font-size:1em}",""]),r.locals={},t.exports=r},1120:function(t,e,n){"use strict";var r=n(1054),o=n(1053),c=n(2),l=(n(163),n(9),n(15),n(13),n(19),n(20),n(1)),d=(n(33),n(6),n(10),n(1077)),m=n.n(d),h=n(18),f=(n(24),n(26),n(45),n(350)),v=n(1041),y=n(1065),_=n(312),k=n(37),w=(n(366),n(27),n(35),n(43)),x=n(1070),C=n(100),O=n(1116);function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function I(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var S={name:"LTaskGameView",components:{draggable:m.a,LAsset:w.a,LMember:x.a,LEmoji:C.a,LHeroEmojis:O.a},props:{taskId:{type:String,required:!0}},data:function(){return{showMemberPicker:!1,memberLoading:null,taskFocusMembers:[]}},computed:I(I({},Object(h.c)({getTaskById:"tasks/getById",getCardById:"cards/getById",getTasksByCardId:"tasks/getByCardId",getMemberById:"members/getById",focusTaskId:"tasks/focusTaskId"})),{},{id:function(){return this.taskId},task:function(){return this.getTaskById[this.taskId]},card:function(){return this.getCardById[this.task.card_id]},cardTasks:function(){return this.getTasksByCardId(this.card.id)},taskIndex:function(){var t=this;return this.cardTasks.findIndex((function(e){return e.id===t.id}))},heroEmoji:function(){var t=this.taskIndex/3%4;return this.gameTheme("hero_emoji_".concat(t+1))},keyArt:function(){for(var t=[],i=1;i<=4;i++)this.gameTheme("art_emoji_".concat(i))&&t.push(this.gameTheme("art_emoji_".concat(i)));return t.length?t[this.taskIndex/3%t.length]:null},isLastTask:function(){return!!this.cardTasks.length&&this.cardTasks[this.cardTasks.length-1].id===this.task.id},members:function(){var t=this;return this.card&&this.card.members?this.card.members.map((function(e){return t.getMemberById[e]})).filter((function(t){return!!t})):[]},membersCompleted:{get:function(){return this.task.members_completed||[]},set:function(t){this.updateField("members_completed",t)}},gameTextColor:function(){return this.gameTheme("color")&&{lbabyblue:"ldarkblue",lpink:"lpurple",white:this.gameTheme("bg")||"primary",secondary:this.gameTheme("bg")||"primary",llightgreen:"primary",lyellow:"primary"}[this.gameTheme("color")]||"white"}}),methods:I(I(I({},Object(h.b)({setMemberActiveTask:"tasks/setMemberActiveTask",updateTask:"tasks/update"})),Object(h.d)({setFocusTaskId:"tasks/setFocusTaskId"})),{},{sizing:function(t){return t*(this.$vuetify.breakpoint.xsOnly?.6:1)},hitEnter:function(t){t.target.blur(),this.$emit("enter")},gameTheme:function(t){return this.card.game_theme&&this.card.game_theme[t]||null},memberHasFocus:function(t){var e=null;return this.cardTasks.forEach((function(n){e||n.members_completed&&n.members_completed.includes(t.id)||(e=n.id)})),e===this.id},memberCompleted:function(t){return this.membersCompleted.includes(t.id)},toggleMemberCompleted:function(t){var e=Object(k.a)(this.membersCompleted);e.includes(t.id)?e=e.filter((function(e){return e!==t.id})):e.push(t.id),this.membersCompleted=e},updateField:function(t,e){var n=this;return Object(l.a)(regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(o={id:n.id,fields:{}}).fields[t]=e,r.next=4,n.updateTask(o);case 4:case"end":return r.stop()}}),r)})))()},clickGameImg:function(){this.members.length&&(1!==this.members.length?this.showMemberPicker=!0:this.memberActiveTask(this.members[0].id))},memberActiveTask:function(t){var e=this;return Object(l.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.memberLoading=t,n.next=3,e.setMemberActiveTask({taskId:e.id,memberId:t});case 3:e.showMemberPicker=!1,e.memberLoading=null;case 5:case"end":return n.stop()}}),n)})))()},draggedMember:function(t){var e=t.item.dataset.id;this.memberActiveTask(e)},successImg:function(t){return this.isLastTask&&this.memberHasFocus(t)?"https://res.cloudinary.com/lome/image/upload/v1646863067/assets/success-star.gif":""}})},L=(n(1139),n(12)),component=Object(L.a)(S,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"task-game-view-inner"},[e("draggable",{staticClass:"task-large-img",attrs:{group:{name:"taskFocusMembers"},sort:!1,"swap-threshold":1,direction:"vertical",handle:".task-member-drag-handle",easing:"cubic-bezier(1, 0, 0, 1)",filter:".no-drag"},on:{add:t.draggedMember},model:{value:t.taskFocusMembers,callback:function(e){t.taskFocusMembers=e},expression:"taskFocusMembers"}},[e("a",{staticClass:"no-underline no-drag",staticStyle:{display:"block"},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.clickGameImg.apply(null,arguments)}}},[t.task.name?e("div",{class:"".concat(t.gameTheme("color")||"primary"," rounded-xl py-1 px-2 ").concat(t.gameTextColor,"--text text-center mb-5"),domProps:{textContent:t._s(t.task.name)}}):t._e(),t._v(" "),e("div",[e("LEmoji",{staticClass:"l-circle",attrs:{file:t.task.icon,full:""}})],1)])]),t._v(" "),e("draggable",{staticClass:"row dense justify-center flex-nowrap position-relative",style:"height: ".concat(t.sizing(72),"px"),attrs:{group:{name:"taskFocusMembers"},sort:!1,handle:".task-member-drag-handle",easing:"cubic-bezier(1, 0, 0, 1)"},on:{add:t.draggedMember},model:{value:t.taskFocusMembers,callback:function(e){t.taskFocusMembers=e},expression:"taskFocusMembers"}},[t.memberLoading?e(_.a,{staticClass:"progress-circle",attrs:{indeterminate:"",color:t.gameTheme("color")||"primary",size:t.sizing(64)}}):t._e(),t._v(" "),t._l(t.members,(function(n){return e(r.a,{key:"t-".concat(t.task.id,"-m-").concat(n.id),class:{"task-member flex-grow-0 py-0 px-1 px-sm-2":!0,"task-member-completed":t.memberCompleted(n),"task-member-focus":t.memberHasFocus(n)},attrs:{"data-id":n.id}},[e(f.a,{staticClass:"position-relative task-member-drag-handle",style:"\n                border-width: 3px !important; \n                width: ".concat(t.sizing(64),"px;\n                height: ").concat(t.sizing(64),"px"),attrs:{icon:"",outlined:"",color:t.gameTheme("color")||"primary","x-large":"",loading:t.memberLoading===n.id},on:{click:function(e){return e.preventDefault(),t.toggleMemberCompleted(n)}}},[t.successImg(n)?e("img",{key:"success-img-".concat(t.task.id+n.id),staticClass:"position-absolute",staticStyle:{top:"-80px",display:"block"},attrs:{width:"100",src:t.successImg(n)}}):t._e(),t._v(" "),t.memberCompleted(n)?e("LEmoji",{staticClass:"position-absolute",style:"font-size: ".concat(t.sizing(56),"px; z-index: 3"),attrs:{file:"check"}}):t._e(),t._v(" "),t.gameTheme("addon_emoji")?e("LEmoji",{staticClass:"position-absolute",style:"font-size: ".concat(t.sizing(t.gameTheme("addon_size")),"px; z-index: ").concat(t.gameTheme("addon_front")?2:1,"; top: ").concat(t.sizing(t.gameTheme("addon_top")),"px; left: ").concat(t.sizing(t.gameTheme("addon_left")),"px"),attrs:{file:t.gameTheme("addon_emoji")}}):t._e(),t._v(" "),e("LMember",{staticClass:"task-member-img",style:"z-index: ".concat(t.gameTheme("addon_front")?1:2),attrs:{width:"".concat(t.sizing(56),"px"),blink:t.memberHasFocus(n),member:n,"hide-name":""}})],1)],1)}))],2),t._v(" "),t.taskIndex%3==0?e("div",{staticClass:"theme-key-art"},[t.heroEmoji?e("LHeroEmojis",{attrs:{main:t.heroEmoji.main,front:t.heroEmoji.front,back:t.heroEmoji.back,"front-top":t.heroEmoji.frontTop,"front-right":t.heroEmoji.frontRight,"back-top":t.heroEmoji.backTop,"back-left":t.heroEmoji.backLeft,movement:t.heroEmoji.movement}}):e("LEmoji",{attrs:{full:"",file:t.keyArt}})],1):t._e(),t._v(" "),e(y.a,{attrs:{"hide-overlay":"",fullscreen:""},model:{value:t.showMemberPicker,callback:function(e){t.showMemberPicker=e},expression:"showMemberPicker"}},[e(v.a,{staticClass:"position-relative",staticStyle:{height:"100%",background:"rgba(255, 255, 255, 0.9)"}},[e(f.a,{staticClass:"close-top-right",attrs:{icon:"",small:""},on:{click:function(e){e.preventDefault(),t.showMemberPicker=!1}}},[e("LAsset",{attrs:{file:"icon-x"}})],1),t._v(" "),e(o.a,{staticClass:"flex-column justify-center align-center",staticStyle:{height:"100%"}},[e(r.a,{staticClass:"flex-grow-0 my-auto"},[e("h2",{staticClass:"primary--text text-center mb-8"},[t._v("Who are you?")]),t._v(" "),e(o.a,{staticClass:"justify-center",attrs:{dense:""}},t._l(t.members,(function(n){return e(r.a,{key:"who-t-".concat(t.task.id,"-m-").concat(n.id),staticClass:"flex-grow-0 my-auto"},[e(f.a,{staticClass:"position-relative mx-2",style:"\n                border-width: 3px !important; \n                width: ".concat(t.sizing(64),"px;\n                height: ").concat(t.sizing(64),"px"),attrs:{icon:"",outlined:"",color:t.gameTheme("color")||"primary","x-large":"",loading:t.memberLoading===n.id},on:{click:function(e){return e.preventDefault(),t.memberActiveTask(n.id)}}},[t.gameTheme("addon_emoji")?e("LEmoji",{staticClass:"position-absolute",style:"font-size: ".concat(t.sizing(t.gameTheme("addon_size")),"px; z-index: ").concat(t.gameTheme("addon_front")?2:1,"; top: ").concat(t.sizing(t.gameTheme("addon_top")),"px; left: ").concat(t.sizing(t.gameTheme("addon_left")),"px"),attrs:{file:t.gameTheme("addon_emoji")}}):t._e(),t._v(" "),e("LMember",{staticClass:"task-member-img",style:"z-index: ".concat(t.gameTheme("addon_front")?1:2),attrs:{width:"".concat(t.sizing(56),"px"),blink:"",member:n}})],1)],1)})),1)],1)],1)],1)],1)],1)}),[],!1,null,null,null),D=component.exports,T=n(1210),M=n(1044),P=n(309),B=(n(86),n(369)),E=n(138),A=n(1067);function F(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?F(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var V={name:"LTaskMember",components:{LMember:x.a,LEmoji:C.a},props:{taskId:{type:String,required:!0},memberId:{type:String,default:""},avatar:{type:String,default:""},small:{type:Boolean,default:!1}},data:function(){return{}},computed:z(z({},Object(h.c)({getTaskById:"tasks/getById",getCardById:"cards/getById",getTasksByCardId:"tasks/getByCardId",getMemberById:"members/getById",focusTaskId:"tasks/focusTaskId"})),{},{id:function(){return this.taskId},task:function(){return this.getTaskById[this.taskId]},member:function(){return this.getMemberById[this.memberId]},card:function(){return this.getCardById[this.task.card_id]},cardTasks:function(){return this.getTasksByCardId(this.card.id)},members:function(){var t=this;return this.card&&this.card.members?this.card.members.map((function(e){return t.getMemberById[e]})).filter((function(t){return!!t})):[]},isNotGameView:function(){return"game"!==this.card.view},membersCompleted:{get:function(){return this.task.members_completed||[]},set:function(t){this.updateField("members_completed",t)}},memberCompleted:function(){var t;return this.membersCompleted.includes(this.memberId)||!!this.task.completed_at&&!this.gameViewType&&!(null!==(t=this.task.members)&&void 0!==t&&t.length)},gameViewType:function(){return"game"===this.card.view},memberHasFocus:function(){var t=this,e=null;return this.cardTasks.forEach((function(n){e||n.members_completed&&n.members_completed.includes(t.memberId)||(e=n.id)})),e===this.id},borderSize:function(){return this.small?2:3}}),methods:z(z(z({},Object(h.b)({updateTask:"tasks/update"})),Object(h.d)({setFocusTaskId:"tasks/setFocusTaskId"})),{},{sizing:function(t){return this.small?.4*t:this.$vuetify.breakpoint.xsOnly?.5*t:this.$vuetify.breakpoint.smOnly?.7*t:t},toggleMemberCompleted:function(){var t=this;return Object(l.a)(regeneratorRuntime.mark((function e(){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.memberId||"")||t.gameViewType){e.next=5;break}return e.next=4,t.updateField("completed_at",t.task.completed_at?null:new Date);case 4:return e.abrupt("return");case 5:r=Object(k.a)(t.membersCompleted),t.gameViewType?r.includes(t.memberId)?r=r.filter((function(e){return e!==t.memberId})):r.push(t.memberId):(null!==(o=t.task.members)&&void 0!==o&&o.length||(r=[]),r.includes(n)?r=r.filter((function(t){return t!==n})):r.push(n)),t.membersCompleted=r;case 8:case"end":return e.stop()}}),e)})))()},updateField:function(t,e){var n=this;return Object(l.a)(regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(o={id:n.id,fields:{}}).fields[t]=e,r.next=4,n.updateTask(o);case 4:case"end":return r.stop()}}),r)})))()}})},$=(n(1141),Object(L.a)(V,(function(){var t=this,e=t._self._c;return e("div",{class:{"task-member":!0,"task-member-completed":t.memberCompleted,"task-member-focus":t.memberHasFocus||!t.gameViewType}},[e(f.a,{staticClass:"position-relative",class:{"mx-1":!t.$vuetify.breakpoint.xsOnly},style:"\n            border-width: ".concat(t.borderSize,"px !important; \n            display: block;\n            width: ").concat(t.sizing(64),"px;\n            height: ").concat(t.sizing(64),"px"),attrs:{icon:"",outlined:"",color:"primary","x-large":""},on:{click:function(e){return e.preventDefault(),t.toggleMemberCompleted.apply(null,arguments)}}},[t.memberCompleted?e("LEmoji",{staticClass:"position-absolute",style:"font-size: ".concat(t.sizing(56),"px; z-index: 2"),attrs:{file:"check"}}):t._e(),t._v(" "),t.member||t.avatar?e("LMember",{staticClass:"task-member-img",attrs:{width:"".concat(t.sizing(56),"px"),bottom:t.small,blink:t.memberHasFocus,member:t.member,avatar:t.avatar,"hide-name":!t.member}}):t._e()],1)],1)}),[],!1,null,null,null)),N=$.exports;function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Y={name:"LTaskEditable",components:{LAsset:w.a,LEmojiPicker:B.a,LIcon:E.a,LMenu:A.a,LTaskMember:N},props:{taskId:{type:String,required:!0},small:{type:Boolean,default:!1}},data:function(){return{name:null,isDeleting:!1}},computed:U(U({},Object(h.c)({getTaskById:"tasks/getById",getCardById:"cards/getById",getTasksByCardId:"tasks/getByCardId",getMemberById:"members/getById",focusTaskId:"tasks/focusTaskId"})),{},{id:function(){return this.taskId},menu:function(){var t=this,e=[];return this.task.linked_card_id?e.push({content:"View card",asset:"icon-eyes",func:function(){return t.$router.push("/a/".concat(t.task.linked_card_id))},hideDivider:!0}):this.task.name&&e.push({content:"Attach a card",asset:"icon-card-white",func:this.attachCard,hideDivider:!this.task.linked_card_id}),e.push.apply(e,[{content:"Copy",asset:"icon-copy-white",func:this.duplicateTask,hideDivider:!this.task.linked_card_id&&!this.task.name},{content:"Delete",asset:"icon-delete-white",func:this.trash,hideDivider:!0,deleteBtn:!0,loading:this.isDeleting}]),e},showSmall:function(){return this.small||this.$vuetify.breakpoint.smAndDown},task:function(){return this.getTaskById[this.taskId]},card:function(){return this.getCardById[this.task.card_id]},isGameView:function(){return"game"===this.card.view},cardTasks:function(){return this.getTasksByCardId(this.card.id)},taskName:function(){return this.task.name},showCardIcon:function(){return this.task.linked_card_id&&"game"!==this.card.view},members:{get:function(){var t=this;return this.isGameView?this.card&&this.card.members?this.card.members.map((function(e){return t.getMemberById[e]})).filter((function(t){return!!t})):[]:this.card&&this.task.members||[]},set:function(t){this.updateFields({members:t,completed_at:null})}},assignedMemberIds:function(){return this.members.map((function(t){return t.id}))},icon:{get:function(){return this.task.icon},set:function(t){var e=this;return Object(l.a)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r={id:e.id,fields:{icon:t}},n.next=3,e.updateTask(r);case 3:case"end":return n.stop()}}),n)})))()}}}),watch:{taskName:function(t){this.name=t}},mounted:function(){this.name=this.task.name},methods:U(U(U({},Object(h.b)({updateTask:"tasks/update",deleteTask:"tasks/delete",createTask:"tasks/create",createCard:"cards/create"})),Object(h.d)({setFocusTaskId:"tasks/setFocusTaskId"})),{},{attachCard:function(){var t=this;return Object(l.a)(regeneratorRuntime.mark((function e(){var data,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return data={name:t.taskName,date:null,type:"task"},e.next=3,t.createCard(data);case 3:return n=e.sent,e.next=6,t.updateField("linked_card_id",n.id);case 6:t.$router.push("/a/".concat(n.id));case 7:case"end":return e.stop()}}),e)})))()},duplicateTask:function(){var t=this;return Object(l.a)(regeneratorRuntime.mark((function e(){var n,r,o,data,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null,!t.task.linked_card_id){e.next=9;break}return delete(r=U({},t.getCardById[t.task.linked_card_id])).id,r.type="task",e.next=7,t.createCard(r);case 7:o=e.sent,n=o.id;case 9:return data={card_id:t.task.card_id,icon:t.task.icon,members:t.task.members,name:t.task.name,order:Math.max.apply(Math,Object(k.a)(t.cardTasks.map((function(t){return t.order}))))+1,set_icon:t.task.set_icon,linked_card_id:n},e.next=12,t.createTask(data);case 12:c=e.sent,t.setFocusTaskId(c.id);case 14:case"end":return e.stop()}}),e)})))()},sizing:function(t){return this.$vuetify.breakpoint.xsOnly?.5*t:this.$vuetify.breakpoint.smOnly?.7*t:t},hitEnter:function(t){t.target.blur(),this.$emit("enter")},updateNameInput:function(){this.updateName(this.name)},updateName:function(t){(t=t?t.trim():null)!==this.task.name&&(this.updateField("name",t),this.setFocusTaskId(null))},updateMembers:function(t){var e=this;this.members=t.map((function(t){return e.getMemberById[t]}))},updateField:function(t,e){var n=this;return Object(l.a)(regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(o={id:n.id,fields:{}}).fields[t]=e,r.next=4,n.updateTask(o);case 4:case"end":return r.stop()}}),r)})))()},updateFields:function(t){var e=this;return Object(l.a)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r={id:e.id,fields:t},n.next=3,e.updateTask(r);case 3:case"end":return n.stop()}}),n)})))()},trash:function(){this.isDeleting=!0,this.deleteTask(this.id)}})},W=(n(1143),Object(L.a)(Y,(function(){var t=this,e=t._self._c;return e(T.a,{scopedSlots:t._u([{key:"default",fn:function(n){var c=n.hover;return[e(o.a,{staticClass:"align-center position-relative",attrs:{dense:""}},[e(r.a,[e(o.a,{staticClass:"align-center",attrs:{dense:""}},[e(r.a,{staticClass:"flex-grow-0 task-icon-col"},[t.small?t._e():e("LEmojiPicker",{attrs:{mediakey:"task-icon-".concat(t.task.id),title:t.taskName,editable:"",size:"".concat(t.sizing(64),"px")},model:{value:t.icon,callback:function(e){t.icon=e},expression:"icon"}}),t._v(" "),t.small?e("div",{staticClass:"d-flex flex-nowrap"},[t.members.length||t.isGameView?t._e():e("div",{key:"t-".concat(t.task.id,"-m-0")},[e("LTaskMember",{attrs:{"task-id":t.taskId,small:t.small}})],1),t._v(" "),t._l(t.members,(function(n){return e("div",{key:"t-".concat(t.task.id,"-m-").concat(n.id)},[e("LTaskMember",{attrs:{"task-id":t.taskId,"member-id":n.id,small:t.small}})],1)}))],2):t._e()],1),t._v(" "),e(r.a,{staticClass:"task-name-col task-name-input-col",attrs:{id:"fake-input-target-".concat(t.task.id)}},[e(P.a,{ref:"task-name-".concat(t.task.id),staticClass:"task-name task-name-input",class:{"font-weight-bold bigger-font":!t.small,"task-strike":t.small&&t.task.completed_at},attrs:{tabindex:t.task.order+10,type:"text","hide-details":"",autofocus:t.task.id===t.focusTaskId,placeholder:t.task.set_icon?"":"New"},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.hitEnter.apply(null,arguments))},blur:t.updateNameInput},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),t._v(" "),!t.showSmall&&t.showCardIcon?e(r.a,{staticClass:"flex-grow-0"},[e("div",{staticClass:"cursor-pointer pt-2",on:{click:function(e){return t.$router.push("/a/".concat(t.task.linked_card_id))}}},[e("LAsset",{attrs:{width:"".concat(t.sizing(42)),file:"icon-card"}})],1)]):t._e(),t._v(" "),t.small?t._e():e(r.a,{staticClass:"flex-grow-0 mr-6"},[e(o.a,{staticClass:"flex-nowrap",attrs:{dense:""}},[t.members.length||t.isGameView?t._e():e(r.a,{key:"t-".concat(t.task.id,"-m-0")},[e("LTaskMember",{attrs:{"task-id":t.taskId}})],1),t._v(" "),t._l(t.members,(function(n){return e(r.a,{key:"t-".concat(t.task.id,"-m-").concat(n.id)},[e("LTaskMember",{attrs:{"task-id":t.taskId,"member-id":n.id,small:t.small}})],1)}))],2)],1)],1)],1),t._v(" "),t.showSmall?t._e():e(r.a,{staticClass:"flex-grow-0 mr-8",staticStyle:{"margin-left":"-32px"}},[e("div",{staticClass:"task-drag-handle cursor-move pt-2 px-3"},[e("LAsset",{attrs:{height:"".concat(t.sizing(28)),file:"icon-move-y"}})],1)]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.small||c,expression:"!small || hover"}],staticClass:"position-absolute",style:"right: ".concat(t.small?0:-6,"px")},[e(M.a,{attrs:{"close-on-content-click":!1,"content-class":"rounded-lg white","offset-y":""},scopedSlots:t._u([{key:"activator",fn:function(n){var r=n.on,o=n.attrs;return[e(f.a,t._g(t._b({staticClass:"rounded-xl elevation-0 primary--text",attrs:{color:"transparent","x-small":"",title:"Edit"}},"v-btn",o,!1),r),[e("LIcon",{attrs:{file:"dots",width:"20"}})],1)]}}],null,!0)},[t._v(" "),e("LMenu",{attrs:{items:t.menu,"show-members":!t.isGameView,"selected-member-ids":t.assignedMemberIds},on:{members:t.updateMembers}})],1)],1)],1)]}}])})}),[],!1,null,null,null));function H(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function G(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?H(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var J={name:"LTask",components:{LTaskGameView:D,LTaskEditable:W.exports,LEmoji:C.a,LTaskMember:N},props:{taskId:{type:String,required:!0},editable:{type:Boolean,default:!1},active:{type:Boolean,default:!1},gameView:{type:Boolean,default:!1},small:{type:Boolean,default:!1}},data:function(){return{}},computed:G(G({},Object(h.c)({getTaskById:"tasks/getById",getCardById:"cards/getById",getTasksByCardId:"tasks/getByCardId",getMemberById:"members/getById",focusTaskId:"tasks/focusTaskId"})),{},{id:function(){return this.taskId},task:function(){return this.getTaskById[this.taskId]},card:function(){return this.getCardById[this.task.card_id]},cardTasks:function(){return this.getTasksByCardId(this.card.id)},isGameView:function(){return"game"===this.card.view},members:function(){var t=this;return this.isGameView?this.editable&&this.card&&this.card.members?this.card.members.map((function(e){return t.getMemberById[e]})).filter((function(t){return!!t})):[]:this.task.members||[]}}),methods:G(G({},Object(h.b)({updateTask:"tasks/update"})),{},{sizing:function(t){return this.$vuetify.breakpoint.xsOnly?.5*t:this.$vuetify.breakpoint.smOnly?.7*t:t},updateField:function(t,e){var n=this;return Object(l.a)(regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(o={id:n.id,fields:{}}).fields[t]=e,r.next=4,n.updateTask(o);case 4:case"end":return r.stop()}}),r)})))()}})},Z=(n(1145),Object(L.a)(J,(function(){var t=this,e=t._self._c;return e("div",{class:{task:!0,"task-is-active":t.active,"task-is-small":t.small}},[t.gameView?e("LTaskGameView",{attrs:{"task-id":t.taskId}}):t.editable&&!t.active?e("LTaskEditable",{attrs:{"task-id":t.taskId,small:t.small},on:{enter:function(e){return t.$emit("enter")}}}):e(o.a,{staticClass:"align-center",class:{"flex-nowrap":!0},attrs:{dense:""}},[e(r.a,{staticClass:"flex-grow-0 task-icon-col"},[t.task.icon?e("LEmoji",{style:"color: #333; font-size: ".concat(t.sizing(52),"px; height: ").concat(t.sizing(52),"px; width: ").concat(t.sizing(52),"px"),attrs:{file:t.task.icon,block:""}}):t._e()],1),t._v(" "),e(r.a,{staticClass:"task-name-col"},[e("h3",{staticClass:"task-name font-weight-bold",staticStyle:{outline:"none",width:"100%","letter-spacing":"0"},domProps:{textContent:t._s(t.task.name)}})]),t._v(" "),e(r.a,{staticClass:"flex-grow-0",class:{"ml-auto":!t.$vuetify.breakpoint.xsOnly}},[t.editable||t.isGameView?e(o.a,{staticClass:"flex-nowrap",attrs:{dense:""}},t._l(t.members,(function(n){return e(r.a,{key:"t-".concat(t.task.id,"-m-").concat(n.id)},[e("LTaskMember",{attrs:{"task-id":t.taskId,"member-id":n.id,avatar:n.image,small:t.small}})],1)})),1):t._e(),t._v(" "),t.isGameView||t.members.length?t._e():e(o.a,{staticClass:"flex-nowrap",attrs:{dense:""}},[e(r.a,{key:"t-".concat(t.task.id,"-m")},[e("LTaskMember",{attrs:{"task-id":t.taskId,small:t.small}})],1)],1)],1)],1)],1)}),[],!1,null,null,null).exports);function K(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function X(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?K(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Q={name:"LTaskAdd",components:{LAsset:w.a},props:{cardId:{type:String,required:!0},value:{type:Boolean,default:!1},small:{type:Boolean,default:!1}},data:function(){return{isAdding:!1}},computed:X(X({},Object(h.c)({getTasksByCardId:"tasks/getByCardId"})),{},{triggerAdd:{get:function(){return this.value},set:function(t){this.$emit("input",t)}},tasks:function(){return this.getTasksByCardId(this.cardId)},nextOrder:function(){var t=-1;return this.tasks.forEach((function(e){e.order>t&&(t=e.order)})),t+1}}),watch:{triggerAdd:function(t,e){!e&&t&&(this.addTask(),this.triggerAdd=!1)}},methods:X(X(X({},Object(h.b)({createTask:"tasks/create"})),Object(h.d)({setFocusTaskId:"tasks/setFocusTaskId"})),{},{addTask:function(){var t=this;return Object(l.a)(regeneratorRuntime.mark((function e(){var data,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.isAdding){e.next=2;break}return e.abrupt("return");case 2:return t.isAdding=!0,data={card_id:t.cardId,icon:"emojis/sparkle",order:t.nextOrder},e.next=6,t.createTask(data);case 6:n=e.sent,t.isAdding=!1,t.setFocusTaskId(n.id);case 9:case"end":return e.stop()}}),e)})))()}})},tt=Object(L.a)(Q,(function(){var t=this,e=t._self._c;return e(f.a,{staticClass:"rounded-xl",attrs:{large:!t.small,"x-small":t.small,elevation:"0",color:"primary",loading:t.isAdding},on:{click:function(e){return e.preventDefault(),t.addTask.apply(null,arguments)}}},[t.small?e("span",{},[t._v("+ Add")]):t._e(),t._v(" "),t.small?t._e():[e("LAsset",{staticClass:"pr-1",attrs:{width:"16",file:"icon-plus-white"}}),t._v(" "),e("span",[t._v("Add")])]],2)}),[],!1,null,null,null),et=tt.exports,at=n(1087);function it(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?it(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ot={name:"LTasks",components:{draggable:m.a,LTask:Z,LTaskAdd:et,LGameTheme:at.a},props:{cardId:{type:String,required:!0},editable:{type:Boolean,default:!1},active:{type:Boolean,default:!1},gameView:{type:Boolean,default:!1},small:{type:Boolean,default:!1}},data:function(){return{triggerAdd:!1}},computed:nt(nt({},Object(h.c)({getTasksByCardId:"tasks/getByCardId",getCardById:"cards/getById",getTaskById:"tasks/getById"})),{},{card:function(){return this.getCardById[this.cardId]},tasks:{get:function(){return this.getTasksByCardId(this.cardId)},set:function(t){var e=this,n=0;t.forEach((function(t){e.updateTask({id:t.id,fields:{order:n}}),n++}))}},isGameView:function(){return this.gameView&&this.active},gameThemeDotsColor:function(){return this.gameTheme("hide_dots")?"transparent--text":this.gameTheme("color")?"".concat(this.gameTheme("color"),"--text"):"primary--text"},theme:function(){return this.isGameView&&this.card.game_theme?this.card.game_theme:null}}),mounted:function(){var t=this;return Object(l.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.indexTasks(t.cardId);case 2:case"end":return e.stop()}}),e)})))()},methods:nt(nt(nt({},Object(h.b)({indexTasks:"tasks/index",updateTask:"tasks/update"})),Object(h.d)({setFocusTaskId:"tasks/setFocusTaskId"})),{},{hitEnter:function(i){i===this.tasks.length-1&&(this.triggerAdd=!0)},gameTheme:function(t){return this.theme&&this.theme[t]||null}})},st=(n(1147),Object(L.a)(ot,(function(){var t=this,e=t._self._c;return e("div",{class:{"is-xs-only":t.$vuetify.breakpoint.xsOnly,"tasks-game-view":t.isGameView}},[e("draggable",{attrs:{group:{name:"tasks"},handle:".task-drag-handle",disabled:!t.editable||t.active},model:{value:t.tasks,callback:function(e){t.tasks=e},expression:"tasks"}},t._l(t.tasks,(function(n,i){return e("LTask",{key:n.id,class:Object(c.a)(Object(c.a)({},"task-game-view ".concat(t.gameThemeDotsColor),t.isGameView),"py-3",!(t.isGameView||t.editable&&!t.active)),attrs:{"task-id":n.id,editable:t.editable,active:t.active,"game-view":t.isGameView,small:t.small},on:{enter:function(e){return t.hitEnter(i)}}})})),1),t._v(" "),t.editable&&!t.active?e(o.a,{staticClass:"mt-4"},[e(r.a,[e("LTaskAdd",{attrs:{small:t.small,"card-id":t.cardId},model:{value:t.triggerAdd,callback:function(e){t.triggerAdd=e},expression:"triggerAdd"}})],1)],1):t._e()],1)}),[],!1,null,null,null));e.a=st.exports},1121:function(t,e,n){"use strict";n(6),n(10);e.a={props:{type:{type:String,required:!0},ids:{type:Array,default:function(){return[]}},id:{type:String,default:""},bustCache:{type:Boolean,default:!1}},data:function(){return{loaded:!1}},created:function(){var t=this,e=this.ids;this.id&&e.push(this.id);var n=[];e.forEach((function(e){!e||t.$store.getters["".concat(t.type,"/getById")][e]&&!t.bustCache||n.push(e)})),n.length?this.$store.dispatch("".concat(this.type,"/search"),{ids:n}).then((function(){t.loaded=!0})):this.loaded=!0},render:function(){var slot=this.$scopedSlots.default({loading:!this.loaded});return Array.isArray(slot)?slot[0]:slot}}},1122:function(t,e,n){"use strict";n(26),n(9);var r=n(1177),o=n(350),c=n(309),l=(n(24),{name:"LCustomField",components:{LIcon:n(138).a},props:{id:{type:String,required:!0},type:{type:String,default:"text"},required:{type:Boolean,default:!0},name:{type:String,default:""},value:{type:String,default:""},options:{type:Array,default:function(){return[]}},color:{type:String,default:"primary"}},data:function(){return{}},computed:{fieldValue:{get:function(){return"checkbox"===this.type?"true"===this.value:this.value},set:function(t){!0===t&&(t="true"),!1===t&&(t=""),this.$emit("input",t)}}},mounted:function(){},methods:{}}),d=(n(1123),n(12)),m={name:"LCustomFields",components:{LCustomField:Object(d.a)(l,(function(){var t=this,e=t._self._c;return e("div",["dropdown"===t.type&&t.options&&t.options.length?e(r.a,{key:"custom-field-dropdown-".concat(t.id),class:"rounded-xl ".concat(t.color,"--text input-label-centered"),attrs:{items:t.options,label:" ".concat(t.name).concat(t.required?"*":""),outlined:"","hide-details":"",color:t.color,required:t.required},scopedSlots:t._u([{key:"append",fn:function(){return[e("div",{staticClass:"pr-1",staticStyle:{"padding-top":"6px"}},[e("img",{staticClass:"d-block",attrs:{width:"12",src:"https://res.cloudinary.com/lome/image/upload/w_12/v1717685428/assets/icon-dropdown.png"}})])]},proxy:!0}],null,!1,2093452345),model:{value:t.fieldValue,callback:function(e){t.fieldValue=e},expression:"fieldValue"}}):t._e(),t._v(" "),"checkbox"===t.type?e("div",{key:"custom-field-checkbox-".concat(t.id),staticClass:"d-flex align-center"},[e(o.a,{staticClass:"dark-outline flex-grow-0 mr-2",attrs:{icon:"",color:t.fieldValue?"primary":"grey"},on:{click:function(e){e.preventDefault(),t.fieldValue=!t.fieldValue}}},[t.fieldValue?e("LIcon",{staticStyle:{"margin-left":"-3px"},attrs:{color:"black",width:"24",file:"check"}}):t._e()],1),t._v(" "),e("div",{staticClass:"cursor-pointer",staticStyle:{"font-size":"85%"},on:{click:function(e){t.fieldValue=!t.fieldValue}}},[t._v("\n      "+t._s(t.name)+t._s(t.required?"*":"")+"\n    ")])],1):t._e(),t._v(" "),"text"===t.type?e(c.a,{key:"custom-field-text-".concat(t.id),class:"rounded-xl black--text input-label-centered",attrs:{label:"".concat(t.name).concat(t.required?"*":""),outlined:"","hide-details":"",color:"black",required:t.required},model:{value:t.fieldValue,callback:function(e){t.fieldValue=e},expression:"fieldValue"}}):t._e(),t._v(" "),"description"===t.type?e("div",{staticClass:"custom-field-styling",staticStyle:{"font-size":"85%","max-height":"222px","overflow-y":"auto"},domProps:{innerHTML:t._s(t.name)}}):t._e()],1)}),[],!1,null,null,null).exports},props:{customFields:{type:Array,default:function(){return[]}},answers:{type:Object,default:function(){return{}}}},data:function(){return{}},computed:{},mounted:function(){},methods:{update:function(t){this.$emit("updated",t)},updateCustomFieldValue:function(t,e){var n=JSON.parse(JSON.stringify(this.answers));n[e]=t,this.update(n)},getCustomFieldValue:function(t){return this.answers&&this.answers[t]?this.answers[t]:null}}},h=Object(d.a)(m,(function(){var t=this,e=t._self._c;return e("div",t._l(t.customFields,(function(n,r){return e("div",{key:"custom-field-".concat(r),staticClass:"mb-5"},[e("LCustomField",{attrs:{value:t.getCustomFieldValue(n.name),id:n.id,type:n.type,name:n.name,options:n.options,required:n.required},on:{input:function(e){return t.updateCustomFieldValue(e,n.name)}}})],1)})),0)}),[],!1,null,null,null);e.a=h.exports},1123:function(t,e,n){"use strict";n(1078)},1124:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".dark-outline{box-shadow:0 0 4px rgba(0,0,0,.95)!important}.custom-field-styling h3{font-size:1.2rem;font-weight:700}",""]),r.locals={},t.exports=r},1125:function(t,e,n){"use strict";n(1079)},1126:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".outlined-card-muted{background:#fff;border:3px solid #efeadc!important}.input-label-centered .v-input__slot label:not(.v-label--active){color:rgba(0,0,0,.38);left:50%!important;transform:translateX(-50%)}.smaller-p p{font-size:14px;line-height:1.3}@media only screen and (max-width:474px){.sample-event:nth-child(n+5){display:none!important}}@media only screen and (max-width:374px){.sample-event:nth-child(n+4){display:none!important}}",""]),r.locals={},t.exports=r},1127:function(t,e,n){"use strict";var r=n(350),o=n(1062),c=n(312),l=n(103),d=n(2),m=(n(24),n(26),n(15),n(77),n(19),n(20),n(1)),h=(n(33),n(36),n(6),n(10),n(13),n(9),n(27),n(35),n(86),n(5)),f=n.n(h),v=n(165),y=n.n(v),_=n(1083),k=n.n(_),w=n(18),x=n(113),C=n(43),O=n(1153),j=n(1154),I=n(1150),S=n(1081),L=n(370),D=n(100),T=n(369),M=n(1120),P=n(1135);function B(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?B(Object(n),!0).forEach((function(e){Object(d.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var A={name:"LCardView",components:{LAsset:C.a,LCardBlockLocation:O.a,LCardBlockTime:j.a,LCardDatePicker:I.a,LCardIcsBtn:S.a,LEditor:L.a,LEmoji:D.a,LEmojiPicker:T.a,LTasks:M.a,LVotes:P.a},props:{cardId:{type:String,required:!0},inEditMode:{type:Boolean,default:!1},date:{type:String,default:""},view:{type:String,default:""},width:{type:Number,default:1},idea:{type:Boolean,default:!1},showEmoji:{type:Boolean,default:!1},showImage:{type:Boolean,default:!1},mdSize:{type:Boolean,default:!1},wide:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},editableName:{type:Boolean,default:!1},color:{type:String,default:""},description:{type:String,default:null}},data:function(){return{editDescription:"",showTypes:!1,isLoadingUrl:!1}},computed:E(E({},Object(w.c)({getCardById:"cards/getById",filterMemberId:"members/filterMemberId",home:"home/home"})),{},{currentView:function(){return this.inEditMode?"detail":this.view},card:function(){return this.getCardById[this.cardId]},cardTypes:function(){var t={};return Object.keys(x.a).filter((function(t){return!x.a[t].hidden})).forEach((function(e){t[e]=x.a[e]})),t},icon:{get:function(){return this.card.icon},set:function(t){this.updateField("icon",t)}},cardDescription:function(){return this.card?this.card.description:""},formattedDate:function(){if(!this.card.date)return"";var t="MMMM D, YYYY",e=f()(this.card.date),n=this.card.end_date?f()(this.card.end_date):null;return n&&e.format(t)!==n.format(t)?n.format("YY-MM")===e.format("YY-MM")?"".concat(e.format("MMMM D"),"-").concat(n.format("D, YYYY")):n.format("YY")===e.format("YY")?"".concat(e.format("MMMM D")," - ").concat(n.format("MMMM D, YYYY")):"".concat(e.format(t)," - ").concat(n.format(t)):e.format(t)},isPast:function(){return f()().startOf("day").isAfter(f()(this.date).startOf("day"))},isHiddenByFilterMember:function(){return!!this.filterMemberId&&!(this.card.members||[]).includes(this.filterMemberId)},cardImage:function(){return this.card?this.card.image?this.card.image:x.a[this.card.type].default:""},cardColor:function(){return this.color?this.color:this.typeField(this.card.type,"dynamicColor")&&this.card.game_theme?this.card.game_theme.color?this.card.game_theme.color:"primary":this.typeField(this.card.type,"color")},classes:function(){var t="stack-card-image-view no-underline rounded-lg text-center";return this.isHiddenByFilterMember&&(t+=" hidden-card"),this.isPast||!this.card.completed_at||this.idea||(t+=" half-opacity"),"emoji"===this.view&&(t+=" stack-card-emoji"),this.idea&&(t+=" stack-ideas-card"),t},isMobile:function(){return this.mobile||this.$vuetify.breakpoint.xsOnly},titleSize:function(){return this.wide&&!this.isMobile?"40px":this.mdSize?"20px":"24px"}}),watch:{editDescription:function(t){this.inEditMode&&t!==this.card.description&&this.updateField("description",t)},cardDescription:function(t){t!==this.editDescription&&(this.editDescription=t)}},mounted:function(){this.editDescription=this.cardDescription},methods:E(E({},Object(w.b)({updateCard:"cards/update",extractUrl:"cards/extractUrl"})),{},{updateType:function(t){this.showTypes=!1,this.updateField("type",t)},updateName:function(t){var e=t.target.textContent.trim();e!==this.card.name&&this.updateField("name",e)},blurName:function(t){t.target.blur()},typeField:function(t,e){return x.a[t]?x.a[t][e]:""},goToCardIfNotInEditMode:function(){this.inEditMode||this.$router.push("/a/".concat(this.card.id))},updateField:function(t,e){var n=this;return Object(m.a)(regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("description"!==t){r.next=4;break}return r.next=3,n.debounceUpdateDescription(e);case 3:return r.abrupt("return");case 4:return(o={id:n.cardId,fields:{}}).fields[t]=e,r.next=8,n.updateCard(o);case 8:case"end":return r.stop()}}),r)})))()},debounceUpdateDescription:y()(function(){var t=Object(m.a)(regeneratorRuntime.mark((function t(e){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n={id:this.cardId,fields:{description:e}},r=this.stripHtml(e),!k.a.isWebUri(r)){t.next=10;break}return this.isLoadingUrl=!0,t.next=6,this.extractUrl({id:this.cardId,url:r});case 6:this.editDescription=this.card.description,this.isLoadingUrl=!1,t.next=12;break;case 10:return t.next=12,this.updateCard(n);case 12:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),1e3),stripHtml:function(html){return(new DOMParser).parseFromString(html,"text/html").body.textContent||""}})},F=A,z=(n(1166),n(12)),component=Object(z.a)(F,(function(){var t=this,e=t._self._c;return"detail"===t.currentView?e("div",[e("div",{class:{"d-flex":t.wide,"flex-column align-center full-width":t.wide&&t.isMobile}},[e("div",{staticClass:"mb-3 d-flex justify-space-between",class:{"pa-4 pr-8":t.wide&&!t.isMobile&&!!t.card.image,"pl-2":t.wide&&!t.isMobile&&!t.card.image},style:t.wide&&t.card.image&&!t.isMobile?"width:33%":""},[e("div",{staticClass:"cursor-pointer",on:{click:t.goToCardIfNotInEditMode}},[(t.wide||t.showImage)&&t.card.image?e(o.a,{staticClass:"rounded-xl",attrs:{width:t.showImage||t.$vuetify.breakpoint.smOnly?104:207,src:t.card.image}}):t._e(),t._v(" "),t.wide||t.showImage?t._e():e("LEmojiPicker",{attrs:{size:t.isMobile?"46px":"36px",editable:t.inEditMode,"card-id":t.cardId,mediakey:"card-".concat(t.cardId,"-icon")},model:{value:t.icon,callback:function(e){t.icon=e},expression:"icon"}})],1),t._v(" "),t.inEditMode?e(r.a,{staticClass:"btn-circle elevation-0 ml-1",attrs:{width:"36",color:"primary"},on:{click:function(e){return e.preventDefault(),t.$emit("toggle")}}},[e("LAsset",{attrs:{width:"16",file:"icon-check-white"}})],1):t._e()],1),t._v(" "),e("div",{class:t.wide&&t.$vuetify.breakpoint.smAndDown?"full-width":""},[e("p",{class:"\n              ".concat(t.cardColor,"--text\n              font-weight-bold\n              ").concat(!t.inEditMode&&"cursor-pointer","\n              ").concat(t.wide&&!t.isMobile&&"mt-2","\n              ").concat(t.wide&&t.isMobile&&"mt-4","\n              mb-1"),style:"outline: none; font-size: ".concat(t.titleSize,"; line-height:1.2"),attrs:{contenteditable:t.inEditMode||t.editableName},on:{blur:t.updateName,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.blurName.apply(null,arguments))},click:t.goToCardIfNotInEditMode}},[t._v("\n        "+t._s(t.card.name)+"\n      ")]),t._v(" "),t.inEditMode?e("div",{staticClass:"d-flex position-relative"},["page"!==t.card.type?e("LCardDatePicker",{attrs:{"card-id":t.card.id,editable:t.inEditMode}}):t._e(),t._v(" "),t.card.type&&"event"!==t.card.type&&"page"!==t.card.type?e(r.a,{staticClass:"rounded-xl my-1 mr-2 elevation-0",class:{"half-opacity":t.showTypes},attrs:{small:"",dark:"",color:t.typeField(t.card.type,"color")},on:{click:function(e){e.preventDefault(),t.showTypes=!t.showTypes}}},[t._v(t._s(t.typeField(t.card.type,"single")))]):t._e(),t._v(" "),e("div",[t.showTypes?e("div",{staticClass:"abs-options white pt-2"},t._l(t.cardTypes,(function(n,o){return e(r.a,{key:"card-type-".concat(o),staticClass:"rounded-xl my-1 mr-1 elevation-0",attrs:{small:"",dark:"",color:n.color,title:n.single},on:{click:function(e){return e.preventDefault(),t.updateType(o)}}},[t._v(t._s(n.single))])})),1):t._e()])],1):e("div",{staticClass:"d-flex align-center cursor-pointer mb-2 mb-sm-0",on:{click:function(e){return e.preventDefault(),t.goToCardIfNotInEditMode.apply(null,arguments)}}},[t.card.date&&!t.mdSize?e("LEmoji",{staticStyle:{"font-size":"20px"},attrs:{file:"calendar",block:""}}):t._e(),t._v(" "),e("span",{class:"font-weight-bold ".concat(t.cardColor,"--text ml-").concat(t.mdSize?"0":"2"),style:"line-height:1.1.;font-size: 16px"},[t._v("\n          "+t._s(t.formattedDate)+"\n        ")]),t._v(" "),t.formattedDate?e("LCardIcsBtn",{class:"rounded-xl mr-2 elevation-0 font-weight-bold ".concat(t.cardColor,"--text ml-").concat(t.mdSize?"0":"2"),attrs:{"card-id":t.cardId}}):t._e()],1),t._v(" "),t.card.start_time||t.inEditMode?e("LCardBlockTime",{class:t.mdSize&&t.inEditMode?"my-2":"",attrs:{"card-id":t.cardId,editable:t.inEditMode,small:"","no-icon":t.mdSize,color:t.cardColor}}):t._e(),t._v(" "),t.card.location||t.inEditMode?e("LCardBlockLocation",{class:t.mdSize&&t.inEditMode?"my-2":"mt-1",attrs:{"card-id":t.cardId,editable:t.inEditMode,small:"","no-icon":t.mdSize}}):t._e(),t._v(" "),!t.inEditMode&&(t.description&&"<p></p>"!==t.description||t.editDescription&&"<p></p>"!==t.editDescription)?e("div",{staticClass:"my-2"},[e("div",{staticClass:"text-wrap pt-3 word-break-links",class:Object(d.a)(Object(d.a)({},"".concat(t.cardColor,"--links"),!0),"text-non-edit-mode",!t.wide),staticStyle:{"font-size":"16px"},domProps:{innerHTML:t._s(t.description||t.editDescription)}})]):t.inEditMode?e("div",{staticClass:"my-1 position-relative"},[t.isLoadingUrl?e(c.a,{staticClass:"url-loader",attrs:{size:"14",color:"primary",indeterminate:""}}):t._e(),t._v(" "),t.inEditMode||t.editDescription?e("LEditor",{class:"".concat(t.cardColor,"--links"),staticStyle:{"font-size":"16px"},attrs:{editable:"",placeholder:"meal"===t.card.type?"Paste a link to your favorite recipe, or write it here...":"task"===t.card.type?"Write anything, paste a link, or":"Write anything (or paste a link)..."},model:{value:t.editDescription,callback:function(e){t.editDescription=e},expression:"editDescription"}}):t._e()],1):t._e()],1)])]):"checklist"===t.currentView?e("LTasks",{attrs:{"card-id":t.card.id,editable:"",small:""}}):"vote"===t.currentView?e("LVotes",{attrs:{"card-id":t.card.id,editable:"",column:1===t.width}}):e("a",{directives:[{def:l.a,name:"ripple",rawName:"v-ripple"}],class:t.classes,attrs:{href:t.idea?"#":"/a/".concat(t.card.id)},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.$emit("clicked")}}},[t.showEmoji?e("LEmoji",{staticClass:"card-image-view-emoji",attrs:{alt:t.card.name,title:t.card.name,full:"",file:t.card.icon}}):e(o.a,{class:{"rounded-lg":!0,"card-image-view-image":!!t.card.icon,"card-image-view-emoji-substitute":!t.card.icon},attrs:{alt:t.card.name,title:t.card.name,"aspect-ratio":"1",src:t.cardImage}}),t._v(" "),e("div",{class:"font-weight-bold stack-card-title pt-3 text-center ".concat(t.cardColor,"--text"),style:"font-size:".concat(t.titleSize,"; line-height:1.2")},[t._v("\n    "+t._s(t.card.name)+"\n  ")])],1)}),[],!1,null,null,null);e.a=component.exports},1128:function(t,e,n){"use strict";n(1082)},1129:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".select-time{max-width:60px!important}.select-time.select-time-muted{max-width:36px!important}.select-time.select-time-muted.select-time-ampm{max-width:42px!important}.select-time.v-text-field--outlined>.v-input__control>.v-input__slot{max-width:60px;min-height:36px}.select-time.select-time-muted.v-text-field--outlined>.v-input__control>.v-input__slot{max-width:36px;padding:0 6px}.select-time.select-time-muted.select-time-ampm.v-text-field--outlined>.v-input__control>.v-input__slot{max-width:42px}.select-time .v-select__selections{padding:0!important}.select-time.theme--light.v-text-field--outlined:not(.v-input--is-focused):not(.v-input--has-state)>.v-input__control>.v-input__slot fieldset{color:#efeadc}.select-time.select-time-muted.theme--light.v-text-field--outlined:not(.v-input--is-focused):not(.v-input--has-state)>.v-input__control>.v-input__slot fieldset{color:#fdfbfc}.select-time.select-time-muted.theme--light.v-text-field--outlined:hover:not(.v-input--is-focused):not(.v-input--has-state)>.v-input__control>.v-input__slot fieldset{color:#efeadc}.select-time.theme--light.v-select .v-select__selection--comma{color:#111;font-weight:700}",""]),r.locals={},t.exports=r},1131:function(t,e,n){var content=n(1179);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("560f98c2",content,!0,{sourceMap:!1})},1132:function(t,e,n){"use strict";n(1085)},1133:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".hero-emojis{position:relative}.hero-emoji{position:absolute}.hero-emoji-back,.hero-emoji-front{width:45%}.hero-emoji-back{z-index:1}.hero-emoji-main{left:0;top:0;width:100%;z-index:2}.hero-emoji-front{z-index:3}.hero-emoji-back{animation-duration:6s;animation-iteration-count:infinite;animation-timing-function:ease-in-out}.hero-emoji-front{animation-duration:4s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes floating-back{0%{transform:translate(0)}50%{transform:translate(12%)}to{transform:translate(0)}}@keyframes floating-front{0%{transform:translate(0)}10%{transform:translate(4%,.8%)}20%{transform:translate(8%)}30%{transform:translate(12%,-.8%)}40%{transform:translate(16%)}50%{transform:translate(20%,.8%)}60%{transform:translate(16%)}70%{transform:translate(12%,-.8%)}80%{transform:translate(8%)}90%{transform:translate(4%,.8%)}to{transform:translate(0)}}@keyframes blasting-back{0%{transform:translate(0)}50%{transform:translate(-12%,-18%)}to{transform:translate(0)}}@keyframes blasting-front{0%{transform:translate(0)}10%{transform:translate(4%,-10%)}20%{transform:translate(8%,-20%) rotate(-5deg)}30%{transform:translate(10%,-30%)}40%{transform:translate(18%,-40%) rotate(10deg)}50%{transform:translate(22%,-50%)}60%{transform:translate(14%,-40%) rotate(-10deg)}70%{transform:translate(11%,-30%) rotate(-5deg)}80%{transform:translate(8%,-20%)}90%{transform:translate(4%,-10%) rotate(5deg)}to{transform:translate(0)}}@keyframes spin-back{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(0deg)}}@keyframes spin-front{0%{transform:rotate(0deg)}25%{transform:rotate(90deg)}50%{transform:rotate(180deg)}75%{transform:rotate(270deg)}to{transform:rotate(1turn)}}@keyframes watering-back{0%{transform:translate(0)}50%{transform:translate(12%)}to{transform:translate(0)}}@keyframes watering-front{0%{transform:translate(0)}50%{transform:translateY(15%)}to{transform:translate(0)}}",""]),r.locals={},t.exports=r},1135:function(t,e,n){"use strict";var r=n(350),o=n(1054),c=n(1053),l=n(1176),d=(n(9),n(26),n(15),n(77),n(24),n(19),n(20),n(53),n(69),n(96),n(34),n(104),n(37)),m=n(2),h=(n(56),n(6),n(13),n(27),n(35),n(45),n(10),n(291),n(57),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(63),n(74),n(366),n(112),n(5)),f=n.n(h),v=n(18),y=n(1068),_=n.n(y),k=n(67),w=n(100),x=n(43),C=n(1067),O=n(1088),j=n(1110),I=n(1096),S=n(1044),L={name:"LMultiFilterOptions",components:{LLabel:k.a,LAsset:x.a},props:{placeholder:{type:String,default:"All Filters"},opened:{type:Boolean,default:!1},title:{type:String,default:""},timeslots:{type:Boolean,default:!1},filters:{type:Array,default:function(){return[]}},color:{type:String,default:"primary"}},computed:{computedPlaceholder:function(){var t=this.filters.filter((function(filter){return filter.active}));return 0===t.length?this.placeholder:1===t.length?t[0].title||t[0].name:"".concat(t.length," ").concat(this.placeholder)},hasActiveFilters:function(){return this.filters.some((function(filter){return filter.active}))},allSelected:function(){return!!this.filters.length&&this.filters.every((function(t){return t.active}))}},methods:{selectAll:function(){this.filters.forEach((function(filter){return filter.active=!0}))},clearAll:function(){this.filters.forEach((function(filter){return filter.active=!1}))},toggleAll:function(){this.allSelected?this.clearAll():this.selectAll()},toggleFilter:function(filter){filter.active=!filter.active}}},D=(n(1160),n(12)),T=Object(D.a)(L,(function(){var t=this,e=t._self._c;return t.opened?e("div",{staticClass:"white text-center pa-3",staticStyle:{"min-width":"256px"}},[e("LLabel",{class:"pa-3 ".concat(t.color,"--text")},[t._v(" "+t._s(t.title)+" ")]),t._v(" "),e("div",{staticClass:"text-left"},[t.allSelected?e("div",{staticClass:"d-flex align-center cursor-pointer",on:{click:t.clearAll}},[e("div",{class:"bank-circle bank-circle-select-all ".concat(t.color),staticStyle:{background:"white !important"}}),t._v(" "),e("LLabel",{class:"pl-2 ".concat(t.color,"--text")},[t._v("Clear All")])],1):e("div",{staticClass:"d-flex align-center cursor-pointer",on:{click:t.selectAll}},[e("div",{class:"bank-circle bank-circle-select-all ".concat(t.color),staticStyle:{background:"white !important"}},[e("div",{class:"bank-circle-check ".concat(t.color,"--text")},[t._v("✓")])]),t._v(" "),e("LLabel",{class:"pl-2  ".concat(t.color,"--text")},[t._v("Select All")])],1)]),t._v(" "),t._l(t.filters,(function(filter){return e("div",{key:filter.name},[e("div",{staticClass:"my-3 d-flex align-center cursor-pointer",on:{click:function(e){return t.toggleFilter(filter)}}},[e("div",{staticClass:"bank-circle cursor-pointer flex-shrink-0",class:filter.active?"".concat(t.color," ").concat(t.color,"--text"):"bank-uncheck-circle"}),t._v(" "),e("LLabel",{class:"pl-2 ".concat(t.color,"--text")},[t._v(t._s(filter.name))])],1)])}))],2):e(S.a,{attrs:{"offset-y":"","content-class":"rounded-xl","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e(r.a,t._g(t._b({staticClass:"rounded-xl my-1 mr-4 elevation-0",attrs:{large:"",color:t.hasActiveFilters?t.color:"grey",outlined:!t.hasActiveFilters,"x-small":""},on:{click:function(e){return t.$emit("opened")}}},"v-btn",c,!1),o),[e("span",{staticClass:"mediumgrey--text px-4",class:{"white--text":t.hasActiveFilters},staticStyle:{"font-size":"14px"}},[t._v(t._s(t.computedPlaceholder))])])]}}],null,!1,3290911142)},[t._v(" "),e("div",{staticClass:"white text-center pa-3",staticStyle:{"min-width":"256px"}},[e("LLabel",{class:"pa-2 ".concat(t.color,"--text")},[t._v(" "+t._s(t.title)+" ")]),t._v(" "),e("div",{staticClass:"text-left"},[t.allSelected?e("div",{staticClass:"d-flex align-center cursor-pointer",on:{click:t.clearAll}},[e("div",{class:"bank-circle bank-circle-select-all ".concat(t.color),staticStyle:{background:"white !important"}}),t._v(" "),e("LLabel",{class:"pl-2 ".concat(t.color,"--text")},[t._v("Clear All")])],1):e("div",{staticClass:"d-flex align-center cursor-pointer",on:{click:t.selectAll}},[e("div",{class:"bank-circle bank-circle-select-all ".concat(t.color),staticStyle:{background:"white !important"}},[e("div",{class:"bank-circle-check ".concat(t.color,"--text")},[t._v("✓")])]),t._v(" "),e("LLabel",{class:"pl-2 ".concat(t.color,"--text")},[t._v("Select All")])],1)]),t._v(" "),t._l(t.filters,(function(filter){return e("div",{key:filter.name},[e("div",{staticClass:"my-3 d-flex align-center cursor-pointer",on:{click:function(e){return t.toggleFilter(filter)}}},[e("div",{staticClass:"bank-circle cursor-pointer flex-shrink-0",class:filter.active?"".concat(t.color," ").concat(t.color,"--text"):"bank-uncheck-circle"}),t._v(" "),e("LLabel",{class:"pl-2 ".concat(t.color,"--text")},[t._v(t._s(filter.name))])],1)])}))],2)])}),[],!1,null,"47476aa3",null).exports,M=n(1809),P=n(1065),B={name:"LVotesFiltersModal",components:{LLabel:k.a,LMultiFilterOptions:T},props:{value:{type:Boolean,default:!1},hideDate:{type:Boolean,default:!1},itemFilters:{type:Array,default:function(){return[]}},timeslotFilters:{type:Array,default:function(){return[]}},allowedDates:{type:Array,default:function(){return[]}},showDate:{type:String,default:""},color:{type:String,default:"primary"}},data:function(){return{dialog:this.value}},computed:{pickedDate:{get:function(){return this.showDate},set:function(t){this.$emit("date",t)}}},watch:{value:function(t){this.dialog=t},dialog:function(t){this.$emit("input",t)}},methods:{handleAllowedDates:function(t){return!this.allowedDates.length||this.allowedDates.includes(t)},resetAll:function(){this.pickedDate="",this.clearAll(),this.dialog=!1},clearAll:function(){this.itemFilters.forEach((function(filter){return filter.active=!1})),this.timeslotFilters.forEach((function(filter){return filter.active=!1}))}}},E=Object(D.a)(B,(function(){var t=this,e=t._self._c;return e(P.a,{attrs:{width:t.$vuetify.breakpoint.xsOnly?"100vw":"620px",height:t.$vuetify.breakpoint.xsOnly?"100vh":"auto"},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[e("div",{staticClass:"white rounded-xl"},[e("div",{staticClass:"pa-5 text-center"},[e("div",{staticClass:"d-flex align-center justify-space-between mb-2"},[e("LLabel",{class:"font-weight-bold text-center ".concat(t.color,"--text")},[t._v("Filters")]),t._v(" "),e(r.a,{staticStyle:{"font-size":"24px"},attrs:{icon:"",color:"grey"},on:{click:function(e){t.dialog=!1}}},[t._v("\n          ×\n        ")])],1),t._v(" "),t.hideDate?t._e():e("div",[e("LLabel",{class:"mb-1 ".concat(t.color,"--text")},[t._v("Date")]),t._v(" "),e(M.a,{staticClass:"rounded-lg",attrs:{"allowed-dates":t.handleAllowedDates,"prev-icon":"li-arrow-left","next-icon":"li-arrow-right"},model:{value:t.pickedDate,callback:function(e){t.pickedDate=e},expression:"pickedDate"}},[e("div",{staticStyle:{width:"100%"}},[t.pickedDate?e(r.a,{staticClass:"rounded-xl elevation-0 lred--text",attrs:{small:"",color:"secondary"},on:{click:function(e){e.preventDefault(),t.pickedDate=""}}},[t._v("\n              Remove Date\n            ")]):t._e()],1)])],1),t._v(" "),t.itemFilters.length?e("div",[e("LMultiFilterOptions",{attrs:{opened:"",filters:t.itemFilters,title:"Items",color:t.color}})],1):t._e(),t._v(" "),t.timeslotFilters.length?e("div",[e("LMultiFilterOptions",{attrs:{opened:"",filters:t.timeslotFilters,title:"Timeslots",color:t.color}})],1):t._e(),t._v(" "),e("div",{staticClass:"d-flex justify-center mt-4"},[e(r.a,{staticClass:"rounded-xl elevation-0 lred--text",attrs:{color:"secondary"},on:{click:t.resetAll}},[t._v("Reset All")])],1)])])])}),[],!1,null,null,null).exports,A={name:"LVoteGroupDescription",props:{description:{type:String,required:!0},customClass:{type:Object,default:function(){return{}}}},data:function(){return{showMore:!1}},computed:{shouldShowButton:function(){return this.description.length>40},shortDescription:function(){return this.description.length>40?this.description.slice(0,40)+"...":this.description}},methods:{toggleShowMore:function(){this.showMore=!this.showMore}}},F=(n(1162),Object(D.a)(A,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"l-vote-group-description mt-2",class:t.customClass,staticStyle:{"font-size":"14px","line-height":"normal"}},[t.$vuetify.breakpoint.xsOnly?e("div",[t.showMore?e("div",[e("span",{domProps:{innerHTML:t._s(t.description)}}),t._v(" "),e(r.a,{staticClass:"ml-2 rounded-xl elevation-0",staticStyle:{"font-size":"12px"},attrs:{small:"",text:""},on:{click:t.toggleShowMore}},[t._v("\n        Show Less\n      ")])],1):e("div",[e("span",{domProps:{innerHTML:t._s(t.shortDescription)}}),t._v(" "),t.shouldShowButton?e(r.a,{staticClass:"ml-2 rounded-xl elevation-0",staticStyle:{"font-size":"12px"},attrs:{small:"",text:""},on:{click:t.toggleShowMore}},[t._v("\n        Show More\n      ")]):t._e()],1)]):e("div",[e("span",{domProps:{innerHTML:t._s(t.description)}})])])}),[],!1,null,null,null).exports),z=n(119);function V(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return $(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function $(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach((function(e){Object(m.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var U=n(547),Y=n(548);f.a.extend(U),f.a.extend(Y);var W={name:"LVotes",components:{LLabel:k.a,LEmoji:w.a,LAsset:x.a,LMenu:C.a,LVote:O.a,LVoteModal:j.a,LDatePicker:I.a,LMultiFilterOptions:T,LVotesFilterModal:E,LVoteGroupDescription:F},props:{cardId:{type:String,required:!0},editable:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},ics:{type:Boolean,default:!1},hideFilters:{type:Boolean,default:!1},column:{type:Boolean,default:!1},question:{type:Boolean,default:!1},memberVotes:{type:Array,default:function(){return[]}},date:{type:String,default:null}},data:function(){return{showDate:"",divHeights:{},selectedVoteId:null,showVotersModalForId:null,voteModal:!1,voteModalTitle:"",voteModalSubtitle:"",voteNoContactNeeded:!1,isVoting:!1,number:1,description:"",showNumber:!1,hiddenDates:[],selectedGroup:"Date",stickyTopPosition:"0px",filters:[],timeslots:[],dialog:!1}},computed:R(R({},Object(v.c)({home:"home/home",getCardById:"cards/getById",getVoteById:"votes/getById",getVotesByCardId:"votes/getByCardId",anonUser:"anon/user",anonUserHasContact:"anon/hasContact",members:"members/members",showMultiDateWarningForCard:"cards/showMultiDateWarningForCard",showTimeSlotWarningForCard:"cards/showTimeSlotWarningForCard",getTimezoneByCardId:"cards/getTimezoneById"})),{},{card:function(){return this.getCardById[this.cardId]},timezone:function(){return this.getTimezoneByCardId(this.cardId)},borderThemeColor:function(){var t,e=this;return(null===(t=z.a.find((function(t){return t.name===e.themeColor})))||void 0===t?void 0:t.hex)||"#179b2d"},cardVoteType:function(){return this.card.vote_type||null},votes:function(){var t=this,e=this.getVotesByCardId(this.cardId);return this.memberVotes.length?e.filter((function(e){return t.memberVotes.includes(e.id)})):e.map((function(t){return R(R({},t),{},{name:t.name||"".concat(f()(t.start_time).format("h:mm a")," - ").concat(f()(t.end_time).format("h:mm a"))})}))},votesWatcher:function(){return JSON.stringify(this.votes)},activeFilterCount:function(){var t=this.filters.filter((function(filter){return filter.active})).length,e=this.timeslots.filter((function(t){return t.active})).length,n=this.showDate?1:0;return t+e+n>0?t+e+n:0},nonSignupRsvpVotes:function(){var t=this.votes;return"signup-rsvp"!==this.cardVoteType?t:t.filter((function(t){return!t.slug}))},groupedVotes:function(){var t=this,e=function(e){var n,r,o=null===(n=t.filters)||void 0===n?void 0:n.filter((function(t){return Boolean(t.active)})),c=null===(r=t.timeslots)||void 0===r?void 0:r.filter((function(t){return Boolean(t.active)}));if(o.length||c.length){var l=o.map((function(t){return t.name.toLowerCase()})),d=c.map((function(t){return t.name}));return e.filter((function(e){var n,r=!l.length||l.includes((null===(n=e.group)||void 0===n?void 0:n.toLowerCase())||""),o=!d.length||d.includes("".concat(t.formatTimeslots(e.start_time)," - ").concat(t.formatTimeslots(e.end_time)));return r&&o}))}return e};if("Categories"===this.selectedGroup){var n=this.nonSignupRsvpVotes.filter((function(e){return t.canShowDate(e.date)})).reduce((function(t,e){var n=e.group||"";return t[n]||(t[n]=[]),t[n].push(e),t}),{});return Object.keys(n).forEach((function(t){n[t]=e(n[t])})),Object.keys(n).forEach((function(t){n[t].length||delete n[t]})),n}if("Date"===this.selectedGroup){var r;if(this.dates.length){var o={};return this.dates.forEach((function(n){if((!t.showDate||t.showDate===n)&&t.canShowDate(n)){var r=f()(n).format("MMMM D, YYYY");o[r]=e(t.votes.filter((function(t){return t.date===n})))}})),o}var c=f()(null===(r=this.votes[0])||void 0===r?void 0:r.start_time).format("MMMM D, YYYY");return Object(m.a)({},c,e(this.votes))}return{}},subGroupedVotes:function(){var t=this,e=this.groupedVotes,n={};return"Date"===this.selectedGroup?Object.keys(e).forEach((function(t){n[t]=e[t].reduce((function(t,e){var n=e.group||"";return t[n]||(t[n]=[]),t[n].push(e),t}),{})})):"Categories"===this.selectedGroup&&Object.keys(e).forEach((function(t){n[t]=e[t].reduce((function(t,e){var n=e.date?f()(e.date).format("MMMM D, YYYY"):"No Date";return t[n]||(t[n]=[]),t[n].push(e),t}),{})})),Object.keys(n).forEach((function(e){Object.keys(n[e]).forEach((function(r){n[e][r].length&&(1!==Object.keys(n[e]).length||t.hasTimeSlots)||delete n[e][r]}))})),n},hasDates:function(){var t;return(null===(t=this.dates)||void 0===t?void 0:t.length)>0},hasGroups:function(){return this.allGroups.length>0},allGroups:function(){var t,e=this,n=this.votes,r={},o=V(n);try{for(o.s();!(t=o.n()).done;){if(!t.value.group)return[]}}catch(t){o.e(t)}finally{o.f()}return n.forEach((function(t){var n="".concat(t.group,"-").concat(e.hasDates&&t.date);r[n]?r[n].limits.add(t.limit):r[n]={set_icon:!0,icon:t.icon,date:t.date||null,name:t.group,limit:t.limit,id:Object.keys(r).length,limits:new Set([t.limit])}})),Object.values(r).forEach((function(t){t.limit=1===t.limits.size?Object(d.a)(t.limits)[0]:1,delete t.limits})),Object.values(r)},groupOptions:function(){var t=[];return this.dates.length&&t.push("Date"),this.filters.length&&t.push("Categories"),t},groupedVotesIcons:function(){var t=this,e=Object.keys(this.groupedVotes),n={};return e.forEach((function(e){var r;n[e]=null===(r=t.groupedVotes[e])||void 0===r||null===(r=r[0])||void 0===r?void 0:r.icon})),n},signupRsvpVotes:function(){return"signup-rsvp"!==this.cardVoteType?[]:this.votes.filter((function(t){return!!t.slug}))},voteDisclaimer:function(){return'We are using your email to keep you updated\n                about "'.concat(this.card.name,'"')},showAsCards:function(){return"rsvp"!==this.cardVoteType},dates:function(){return Object(d.a)(new Set(this.votes.filter((function(t){return!!t.date})).map((function(t){return t.date}))))},hideIcons:function(){return"rsvp"===this.cardVoteType||0===this.votes.filter((function(t){return!!t.icon})).length||this.hasTimeSlots||!!this.dates.length},themeColor:function(){return this.card.game_theme&&this.card.game_theme.color?this.card.game_theme.color:"primary"},voteEmpty:function(){switch(this.card.vote_type){case"rsvp":return"No one has RSVP'd yet.";case"vote":return"No one has voted yet."}return"No one has signed up yet."},isCardOwner:function(){return this.home&&this.home.id===this.card.home_id},cardIsLocked:function(){return _.a.cardIsLocked(this.card)},cardVoteContent:function(){var t=this,content=this.card.content?JSON.parse(JSON.stringify(this.card.content)):[],i=content.findIndex((function(e){return e.type===t.card.vote_type}));return-1!==i?content[i]:null},hasTimeSlots:function(){var t;return!(null===(t=this.cardVoteContent)||void 0===t||!t.use_time_slots)},hideVoterNames:function(){var content=this.cardVoteContent;return content&&content.hide_voter_names||!1},hidePastDates:function(){var content=this.cardVoteContent;return content&&content.hide_past_dates||!1},bothContactTypes:function(){var content=this.cardVoteContent;return!!content&&(!!content.contact&&"both"===content.contact)},voteShowNumber:function(){var content=this.cardVoteContent;return content&&content.show_number||!1},showMultiDateWarning:function(){return this.showMultiDateWarningForCard(this.card)},showTimeSlotWarning:function(){return this.showTimeSlotWarningForCard(this.card)}}),watch:{isEditing:function(t){this.$emit("toggle",t)},selectedVoteId:function(t){t&&(this.showVotersModalForId=null)},votesWatcher:function(){this.initVotesGroups()},selectedGroup:function(){var t=this;this.$nextTick((function(){t.calculateDivHeights()}))}},mounted:function(){var t=this;this.$nextTick((function(){t.calculateDivHeights()})),this.cardVoteType&&this.indexVotes(this.cardId),this.initVotesGroups()},methods:R(R({},Object(v.b)({indexVotes:"votes/index",voterVote:"votes/vote"})),{},{formatTimeslots:function(time){return this.timezone?f()(time).tz(this.timezone).format("h:mm A"):f()(time).format("h:mm A")},getGroupIconByName:function(t){var e;if(null===(e=this.allGroups)||void 0===e||!e.length||null==t||!t.length)return"";var n=t[0];return this.allGroups.find((function(g){return g.name===n.group&&(!n.date||n.date===g.date)})).icon},formatDate:function(t,e){return f()(t).format(e)},calculateDivHeights:function(){for(var t in this.divHeights={},this.$refs)if(this.$refs[t].length){var div=this.$refs[t][0];this.divHeights[t]=div?null==div?void 0:div.clientHeight:0}},initVotesGroups:function(){this.setFilters(),this.dates.length||this.groupOptions.includes("Categories")&&(this.selectedGroup="Categories")},setFilters:function(){var t=this;if(this.allGroups.length){var e=this.allGroups.map((function(g){var t;return{name:null===(t=g.name)||void 0===t?void 0:t.toLowerCase(),title:g.name,active:!1}})),n=e.filter((function(t,n){return n===e.findIndex((function(e){return t.name===e.name}))}));this.filters=n}else this.filters=[];if(this.hasTimeSlots){var r=this.nonSignupRsvpVotes.map((function(i){return{name:"".concat(t.formatTimeslots(i.start_time)," - ").concat(t.formatTimeslots(i.end_time)),start_time:new Date(i.start_time),end_time:new Date(i.end_time),active:!1}})),o=function(t){return 60*t.getHours()+t.getMinutes()};r.sort((function(a,b){var t=o(a.start_time),e=o(b.start_time);return t===e?o(a.end_time)-o(b.end_time):t-e}));var c=r.filter((function(t,e){return e===r.findIndex((function(e){return t.name===e.name}))}));this.timeslots=c}else this.timeslots=[]},toggleFilter:function(filter){filter.active=!filter.active},isSignupRsvp:function(t){return["yes","no"].includes(t.slug)&&"signup-rsvp"===this.card.vote_type},hideRsvpNo:function(t){return["no"].includes(t.slug)&&["rsvp","signup-rsvp"].includes(this.card.vote_type)&&!!this.cardVoteContent.hide_rsvp_no},clickedVote:function(t){if(!this.isVoting){this.isVoting=!0;var e=this.getVoteById[t];this.voteNoContactNeeded="no"===e.slug&&"rsvp"===this.card.vote_type||this.$auth.loggedIn&&"vote"===this.card.vote_type,this.showNumber="yes"===e.slug||this.voteShowNumber,this.openVoteModal(t),this.isVoting=!1}},didVoteFor:function(t){var e,n,r=this,o=this.getVoteById[t];return this.$auth.loggedIn&&"vote"!==this.cardVoteType&&!(null==o||null===(e=o.voters)||void 0===e||!e.find((function(t){return t.member_id===r.$auth.user.id})))||this.anonUser&&!(null==o||null===(n=o.voters)||void 0===n||!n.find((function(t){return t.anon_id===r.anonUser.id})))},openVoteModal:function(t){var e=this.getVoteById[t];this.selectedVoteId=t,this.voteModalTitle=this.card.name,this.voteModalSubtitle=this.getVoteName(e),this.voteModal=!0},getVoteName:function(t){if(!t.date)return t.name;var e=t.date;return f()(e).isValid()&&(e=f()(e).format("MMM D")),"".concat(e," - ").concat(t.name)},voteColor:function(t){var e=this.getVoteById[t];return e?"yes"===e.slug?"primary":"no"===e.slug?"lred":"maybe"===e.slug?"secondary":this.themeColor||"primary":"primary"},reachedLimit:function(t){return!this.isSignupRsvp(t)&&(!!t.limit&&this.getNumberOfVoters(t)>=t.limit)},tagColor:function(t){return"yes"===t.slug?null:this.reachedLimit(t)||!t.limit&&this.didVoteFor(t.id)?"secondary":"lred"},muted:function(t){return!!this.cardIsLocked||!(this.didVoteFor(t.id)||!t.limit)&&this.reachedLimit(t)},getNumberOfVoters:function(t){if(!t||!t.voters||!t.voters.length)return 0;var e=0;return t.voters.forEach((function(t){e+=t.number||1})),e},getDateName:function(t){return t?f()(t).isValid()?f()(t).format("dddd, MMMM D, YYYY"):t:null},toggleDate:function(t){this.simple||(this.isShowingDate(t)?this.hiddenDates.push(t):this.hiddenDates=this.hiddenDates.filter((function(s){return s!==t})))},canShowDate:function(t){return!t||(this.showMultiDateWarning&&!this.editable?this.dates&&this.dates[0]===t:this.date?this.date===t:!this.hidePastDates||!f()(t).isValid()||t===this.showDate||!f()(t).isBefore(f()().startOf("day")))},isShowingDate:function(t){return!this.hiddenDates.includes(t)},setVotersModal:function(t){this.showVotersModalForId=t,this.selectedVoteId=null}})},H=(n(1164),Object(D.a)(W,(function(){var t=this,e=t._self._c;return t.cardVoteType&&!t.showTimeSlotWarning?e("div",[t.dates.length?e("div",[t.dates.length>1&&!t.hideFilters?e("div",{staticClass:"d-flex vote-border justify-space-between shadow-outline pa-2 mb-4 rounded-lg"},[t.groupOptions.length>1?e("div",{staticClass:"d-flex align-center",class:{"mr-4":!t.$vuetify.breakpoint.xsOnly},style:"".concat(t.$vuetify.breakpoint.xsOnly?"font-size: 12px;flex-basis: 65%":"font-size: 14px;flex-basis: 35%")},[e("span",{staticClass:"mr-3 pl-1 font-weight-bold mediumgrey--text",staticStyle:{"font-size":"14px"}},[t._v("Group By:")]),t._v(" "),e(l.a,{class:"".concat(t.themeColor,"--text bolded-dropdown rounded-xl"),staticStyle:{"font-size":"14px"},style:"".concat(t.$vuetify.breakpoint.xsOnly?"max-width: 120px":"max-width: 150px"),attrs:{items:t.groupOptions,dense:"",outlined:"","hide-details":"","menu-props":{contentClass:"bolded-dropdown-menu"},color:t.themeColor},scopedSlots:t._u([{key:"append",fn:function(){return[e("div",[e("LAsset",{staticStyle:{"margin-top":"7px"},attrs:{width:"12",file:"icon-dropdown"}})],1)]},proxy:!0}],null,!1,3958042061),model:{value:t.selectedGroup,callback:function(e){t.selectedGroup=e},expression:"selectedGroup"}})],1):t._e(),t._v(" "),t.$vuetify.breakpoint.xsOnly&&t.hasTimeSlots?e("div",{staticClass:"d-flex align-center"},[e(r.a,{staticClass:"rounded-xl my-1 elevation-0",attrs:{color:t.activeFilterCount?t.themeColor:"grey",outlined:!t.activeFilterCount},on:{click:function(e){e.preventDefault(),t.dialog=!0}}},[e("span",{staticClass:"px-4",class:{"white--text":!!t.activeFilterCount,"mediumgrey--text":!t.activeFilterCount},staticStyle:{"font-size":"12px"}},[t._v(t._s(t.activeFilterCount?t.activeFilterCount:"")+" Filters")])]),t._v(" "),e("LVotesFilterModal",{attrs:{"item-filters":t.filters,"timeslot-filters":t.timeslots,"allowed-dates":t.dates,"show-date":t.showDate,color:t.themeColor},on:{date:function(e){return t.showDate=e}},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}})],1):e("div",{staticClass:"d-flex align-center",class:{"justify-end":t.groupOptions.length>1},staticStyle:{"flex-basis":"65%"}},[e("span",{staticClass:"px-1 font-weight-bold mediumgrey--text",staticStyle:{"font-size":"14px"}},[t._v("Filters:")]),t._v(" "),"Categories"===t.selectedGroup?e("div",{staticClass:"d-flex ml-3",class:{"justify-end":t.groupOptions.length>1},style:"".concat(!(t.groupOptions.length>1)&&"flex-basis: 100%")},[t.filters.length?e("LMultiFilterOptions",{attrs:{placeholder:"Categories",title:"Filter Categories",filters:t.filters,color:t.themeColor}}):t._e(),t._v(" "),t.timeslots.length?e("LMultiFilterOptions",{attrs:{placeholder:"Timeslots",title:"Filter Timeslots",filters:t.timeslots,color:t.themeColor,timeslots:""}}):t._e()],1):t._e(),t._v(" "),"Date"===t.selectedGroup?e("div",{staticClass:"d-flex",class:{"justify-end ":t.groupOptions.length>1,"ml-3":!(t.groupOptions.length>1)},staticStyle:{"flex-basis":"100%"}},[t.filters.length?e("div",{staticStyle:{"flex-basis":"30%"}},[e("LMultiFilterOptions",{attrs:{placeholder:"Categories",title:"Filter Categories",filters:t.filters,color:t.themeColor}})],1):t._e(),t._v(" "),e("div",{staticStyle:{"flex-basis":"30%"}},[e("LDatePicker",{staticClass:"rounded-xl elevation-0 mr-4",attrs:{"btn-color":t.showDate?t.themeColor:"grey",color:t.themeColor,"allowed-dates":t.dates,outlined:!t.showDate,muted:"",large:"","small-text":"",block:"","empty-text":"Dates"},model:{value:t.showDate,callback:function(e){t.showDate=e},expression:"showDate"}},[e("div",{staticStyle:{width:"100%"}},[t.showDate?e(r.a,{staticClass:"rounded-xl elevation-0 lred--text",attrs:{small:"",color:"secondary"},on:{click:function(e){e.preventDefault(),t.showDate=""}}},[t._v("\n                  Clear Filter\n                ")]):t._e()],1)])],1),t._v(" "),t.timeslots.length?e("div",{staticStyle:{"flex-basis":"30%"}},[e("LMultiFilterOptions",{attrs:{placeholder:"Timeslots",title:"Filter Timeslots",filters:t.timeslots,color:t.themeColor,timeslots:""}})],1):t._e()]):t._e()])]):t._e(),t._v(" "),t._l(t.groupedVotes,(function(n,r){return e("div",{key:r,staticClass:"vote-border shadow-outline white rounded-lg mb-4"},[e("div",{ref:r,refInFor:!0,class:{" sticky-header":t.$vuetify.breakpoint.xsOnly},style:t.$vuetify.breakpoint.xsOnly&&"top:0px; z-index:20"},[e("div",{staticClass:"pa-5"},[n.length?e("div",{staticClass:"d-flex align-center",class:{"justify-center ":t.$vuetify.breakpoint.xsOnly}},["Categories"===t.selectedGroup&&t.groupedVotesIcons[r]?e("LEmoji",{staticStyle:{"font-size":"30px"},attrs:{alt:t.groupedVotesIcons[r],title:t.groupedVotesIcons[r],block:"",file:t.groupedVotesIcons[r]}}):t._e(),t._v(" "),e("div",{class:{"text-center":t.$vuetify.breakpoint.xsOnly},staticStyle:{"line-height":"1"}},[e("div",{staticClass:"font-weight-bold black--text",class:{"pl-2":"Categories"===t.selectedGroup&&t.groupedVotesIcons[r]},staticStyle:{"font-size":"24px"}},[t._v("\n                "+t._s(r)+"\n              ")]),t._v(" "),"Date"===t.selectedGroup?e("div",{staticClass:"grey--text text-uppercase font-weight-bold",staticStyle:{display:"block","font-size":"14px"}},[t._v("\n                "+t._s(t.formatDate(r,"dddd"))+"\n              ")]):t._e()])],1):t._e(),t._v(" "),n&&n.length&&n[0].group_description&&"Categories"===t.selectedGroup?e("LVoteGroupDescription",{attrs:{description:n[0].group_description,"custom-class":{"text-center":t.$vuetify.breakpoint.xsOnly}}}):t._e()],1),t._v(" "),n.length?e("hr",{class:"".concat(t.themeColor," hr-thin")}):t._e()]),t._v(" "),Object.keys(t.subGroupedVotes[r]||{}).length>0?e("div",t._l(t.subGroupedVotes[r],(function(n,o){return e("div",{key:o,staticClass:"d-flex flex-column sub-group-border-bottom"},[e("div",{staticClass:"d-flex pb-3",class:{"flex-column":t.$vuetify.breakpoint.xsOnly,"pt-3":!t.$vuetify.breakpoint.xsOnly}},[e("div",{staticClass:"px-3",class:{"d-flex justify-center mb-1 text-center  l-box-shadow-sticky pb-3":t.$vuetify.breakpoint.xsOnly,"pt-2 mt-2":!t.$vuetify.breakpoint.xsOnly,"sticky-header":t.$vuetify.breakpoint.xsOnly&&t.hasGroups},style:t.$vuetify.breakpoint.xsOnly?"top: ".concat(t.divHeights[r]||79,"px;padding-top: 12px;"):"width:30%"},[e("div",["Categories"===t.selectedGroup?e("div",{staticStyle:{"line-height":"1"}},[e("div",{staticClass:"font-weight-bold black--text",staticStyle:{"font-size":"18px"}},[t._v("\n                    "+t._s(o)+"\n                  ")]),t._v(" "),e("div",{staticClass:"grey--text font-weight-bold text-uppercase",staticStyle:{"font-size":"16px"}},[t._v("\n                    "+t._s(t.formatDate(o,"dddd"))+"\n                  ")])]):t._e(),t._v(" "),"Date"===t.selectedGroup?e("div",[e("div",{staticClass:"d-flex align-center",class:{"justify-center":t.$vuetify.breakpoint.xsOnly}},[t.getGroupIconByName(n)?e("LEmoji",{staticStyle:{"font-size":"30px"},attrs:{alt:t.getGroupIconByName(n),title:t.getGroupIconByName(n),block:"",file:t.getGroupIconByName(n)}}):t._e(),t._v(" "),e("div",{staticClass:"font-weight-bold pl-2 black--text",staticStyle:{"font-size":"18px","line-height":"1"}},[t._v("\n                      "+t._s(o)+"\n                    ")])],1)]):t._e(),t._v(" "),n&&n.length&&n[0].group_description&&"Date"===t.selectedGroup?e("LVoteGroupDescription",{attrs:{description:n[0].group_description}}):t._e()],1)]),t._v(" "),e("div",{staticClass:"d-flex flex-column px-2 px-sm-4",style:"".concat(!t.$vuetify.breakpoint.xsOnly&&"width: 70%")},t._l(n,(function(n){return e("div",{key:"vote-".concat(n.id),staticClass:"my-2"},[e("LVote",{attrs:{"vote-id":n.id,name:n.name,description:t.cardVoteContent.show_description?n.description:"",date:t.getDateName(n.date),icon:n.icon,"hide-icon":t.hideIcons,voters:n.voters,tag:n.limit?"".concat(t.getNumberOfVoters(n),"/").concat(n.limit):t.getNumberOfVoters(n)+"",color:t.voteColor(n.id),"tag-color":t.tagColor(n),muted:t.muted(n),empty:t.voteEmpty,locked:t.cardIsLocked,editable:t.editable,"card-view":!1,ics:t.ics,"card-id":t.cardId,"slot-view":"",small:"",slim:"",timeslots:"",colorful:t.didVoteFor(n.id),"hide-voter-names":t.hideVoterNames,"vote-type":t.cardVoteType,"reached-limit":t.reachedLimit(n),"voters-modal":t.showVotersModalForId===n.id,"group-view":t.selectedGroup},on:{clicked:function(e){return t.clickedVote(n.id)}}})],1)})),0)])])})),0):n.length?e("div",[e("div",{staticClass:"d-flex py-3",class:{"flex-column":t.$vuetify.breakpoint.xsOnly}},[e("div",{staticClass:"pl-3",class:{"mb-2":t.$vuetify.breakpoint.xsOnly,"pt-2 mt-2":!t.$vuetify.breakpoint.xsOnly},style:"".concat(!t.$vuetify.breakpoint.xsOnly&&"width: 30%")},["Categories"===t.selectedGroup?e("div",{staticStyle:{"line-height":"1"}},[e("div",{staticClass:"font-weight-bold black--text",staticStyle:{"font-size":"18px"}},[t._v("\n                "+t._s(r)+"\n              ")]),t._v(" "),e("div",{staticClass:"grey--text font-weight-bold",staticStyle:{"font-size":"16px"}},[t._v("\n                "+t._s(t.formatDate(r,"dddd"))+"\n              ")])]):t._e()]),t._v(" "),e("div",{staticClass:"d-flex flex-column px-2 px-sm-4",style:"".concat(!t.$vuetify.breakpoint.xsOnly&&"width: 70%")},t._l(n,(function(n){return e("div",{key:"vote-".concat(n.id)},[e("LVote",{staticClass:"my-2",attrs:{"vote-id":n.id,name:n.name,description:t.cardVoteContent.show_description?n.description:"",date:t.getDateName(n.date),icon:n.icon,"hide-icon":t.hideIcons,voters:n.voters,tag:n.limit?"".concat(t.getNumberOfVoters(n),"/").concat(n.limit):t.getNumberOfVoters(n)+"",color:t.voteColor(n.id),"tag-color":t.tagColor(n),muted:t.muted(n),empty:t.voteEmpty,locked:t.cardIsLocked,editable:t.editable,"card-view":!1,ics:t.ics,"card-id":t.cardId,"slot-view":"",small:"",timeslots:t.hasTimeSlots,slim:"",colorful:t.didVoteFor(n.id),"hide-voter-names":t.hideVoterNames,"vote-type":t.cardVoteType,"reached-limit":t.reachedLimit(n),"voters-modal":t.showVotersModalForId===n.id,"group-view":t.selectedGroup},on:{clicked:function(e){return t.clickedVote(n.id)}}})],1)})),0)])]):t._e()])}))],2):["signup-rsvp"===t.cardVoteType&&t.signupRsvpVotes.length?e("div",{staticClass:"pa-2 rounded-xl shadow-outline white mt-1 mb-2"},[e("div",{staticClass:"ml-6 mt-1 font-weight-bold"},[t._v("RSVP")]),t._v(" "),e(c.a,{attrs:{align:"stretch",dense:t.column}},t._l(t.signupRsvpVotes,(function(n){return e(o.a,{key:"vote-".concat(n.id),class:{"mb-1":t.column},attrs:{cols:12,sm:t.column?12:6}},[e("LVote",{staticClass:"full-height",attrs:{"vote-id":n.id,name:n.name,date:t.getDateName(n.date),icon:n.icon,"hide-icon":t.isSignupRsvp(n),voters:n.voters,tag:n.limit?"".concat(t.getNumberOfVoters(n),"/").concat(n.limit):t.getNumberOfVoters(n)+"","hide-rsvp-no":t.hideRsvpNo(n),color:t.voteColor(n.id),"tag-color":t.tagColor(n),muted:t.muted(n),empty:t.voteEmpty,editable:t.editable,locked:t.cardIsLocked,"card-view":!1,ics:t.ics,"card-id":t.cardId,small:t.column,colorful:t.didVoteFor(n.id),"hide-voter-names":t.hideVoterNames,"vote-type":t.cardVoteType,"reached-limit":t.reachedLimit(n),"voters-modal":t.showVotersModalForId===n.id},on:{clicked:function(e){return t.clickedVote(n.id)}}})],1)})),1)],1):t.hasTimeSlots?e("div",[t.hideFilters?t._e():e("div",{staticClass:"d-flex vote-border justify-space-between shadow-outline pa-2 mb-4 rounded-lg"},[t.groupOptions.length>1?e("div",{staticClass:"d-flex align-center mr-4",style:"".concat(t.$vuetify.breakpoint.xsOnly?"font-size: 12px":"font-size: 14px")},[e("span",{staticClass:"mr-3 pl-1 font-weight-bold mediumgrey--text",staticStyle:{"font-size":"14px"}},[t._v("Group By:")]),t._v(" "),e(l.a,{class:"".concat(t.themeColor,"--text bolded-dropdown rounded-xl"),staticStyle:{"font-size":"14px"},style:"".concat(t.$vuetify.breakpoint.xsOnly?"max-width: 120px":"max-width: 150px"),attrs:{items:t.groupOptions,dense:"",outlined:"","hide-details":"","menu-props":{contentClass:"bolded-dropdown-menu"},color:t.themeColor},scopedSlots:t._u([{key:"append",fn:function(){return[e("div",[e("LAsset",{staticStyle:{"margin-top":"7px"},attrs:{width:"12",file:"icon-dropdown"}})],1)]},proxy:!0}],null,!1,3958042061),model:{value:t.selectedGroup,callback:function(e){t.selectedGroup=e},expression:"selectedGroup"}})],1):t._e(),t._v(" "),t.$vuetify.breakpoint.xsOnly?e("div",{staticClass:"d-flex align-center"},[e(r.a,{staticClass:"rounded-xl my-1 elevation-0",attrs:{color:t.activeFilterCount?t.themeColor:"grey",outlined:!t.activeFilterCount},on:{click:function(e){e.preventDefault(),t.dialog=!0}}},[e("span",{staticClass:"px-4",class:{"white--text":!!t.activeFilterCount,"mediumgrey--text":!t.activeFilterCount},staticStyle:{"font-size":"12px"}},[t._v(t._s(t.activeFilterCount?t.activeFilterCount:"")+" Filters")])]),t._v(" "),e("LVotesFilterModal",{attrs:{"item-filters":t.filters,"timeslot-filters":t.timeslots,color:t.themeColor,"hide-date":""},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}})],1):e("div",{staticClass:"d-flex align-center",class:{"mt-2":t.$vuetify.breakpoint.xsOnly}},[e("span",{staticClass:"px-1 font-weight-bold mr-3 mediumgrey--text",staticStyle:{"font-size":"14px"}},[t._v("Filters:")]),t._v(" "),e("div",{staticClass:"d-flex flex-wrap"},[t.allGroups.length&&"Categories"===t.selectedGroup?e("LMultiFilterOptions",{attrs:{placeholder:"Categories",title:"Filter Categories",filters:t.filters,color:t.themeColor}}):t._e(),t._v(" "),t.hasTimeSlots?e("LMultiFilterOptions",{attrs:{placeholder:"Timeslots",title:"Filter Timeslots",filters:t.timeslots,color:t.themeColor,timeslots:""}}):t._e()],1)])]),t._v(" "),t._l(t.groupedVotes,(function(n,r){return e("div",{key:r,staticClass:"vote-border shadow-outline white rounded-lg mb-4"},[e("div",[n.length?e("div",{staticClass:"pa-5"},[e("div",{staticClass:"d-flex align-center",class:{" justify-center ":t.$vuetify.breakpoint.xsOnly}},[t.hasGroups&&t.groupedVotesIcons[r]?e("LEmoji",{staticStyle:{"font-size":"30px"},attrs:{alt:t.groupedVotesIcons[r],title:t.groupedVotesIcons[r],block:"",file:t.groupedVotesIcons[r]}}):t._e(),t._v(" "),e("div",{class:{"text-center":t.$vuetify.breakpoint.xsOnly},staticStyle:{"line-height":"1"}},[e("div",{staticClass:"font-weight-bold black--text",class:{"pl-2":"Categories"===t.selectedGroup&&t.groupedVotesIcons[r]},staticStyle:{"font-size":"24px"}},[t._v("\n                  "+t._s(r)+"\n                ")]),t._v(" "),"Date"===t.selectedGroup?e("div",{staticClass:"grey--text text-uppercase font-weight-bold",staticStyle:{display:"block","font-size":"14px"}},[t._v("\n                  "+t._s(t.formatDate(r,"dddd"))+"\n                ")]):t._e()])],1),t._v(" "),n&&n.length&&n[0].group_description&&t.hasGroups?e("LVoteGroupDescription",{attrs:{description:n[0].group_description,"custom-class":{"text-center":t.$vuetify.breakpoint.xsOnly}}}):t._e()],1):t._e(),t._v(" "),n.length?e("hr",{class:"".concat(t.themeColor," hr-thin")}):t._e()]),t._v(" "),e("div",{staticClass:"d-flex py-3",class:{"flex-column":t.$vuetify.breakpoint.xsOnly}},[e("div",{style:"".concat(!t.$vuetify.breakpoint.xsOnly&&"width: 30%")}),t._v(" "),e("div",{staticClass:"d-flex flex-column",style:"".concat(!t.$vuetify.breakpoint.xsOnly&&"width: 70%")},t._l(n,(function(n){return e("div",{key:"vote-".concat(n.id),staticClass:"my-2",class:{"mr-4":!t.$vuetify.breakpoint.xsOnly,"mx-2":t.$vuetify.breakpoint.xsOnly}},[e("LVote",{attrs:{"vote-id":n.id,name:n.name,description:t.cardVoteContent.show_description?n.description:"",date:t.getDateName(n.date),icon:n.icon,"hide-icon":t.hideIcons,voters:n.voters,tag:n.limit?"".concat(t.getNumberOfVoters(n),"/").concat(n.limit):t.getNumberOfVoters(n)+"",color:t.voteColor(n.id),"tag-color":t.tagColor(n),muted:t.muted(n),empty:t.voteEmpty,locked:t.cardIsLocked,editable:t.editable,"card-view":!1,ics:t.ics,"card-id":t.cardId,"slot-view":"",small:"",slim:"",colorful:t.didVoteFor(n.id),"hide-voter-names":t.hideVoterNames,"vote-type":t.cardVoteType,"reached-limit":t.reachedLimit(n),"voters-modal":t.showVotersModalForId===n.id,"group-view":t.selectedGroup},on:{clicked:function(e){return t.clickedVote(n.id)}}})],1)})),0)])])}))],2):t._e(),t._v(" "),t.hasTimeSlots?t._e():[t.cardVoteContent.horizontal_view?e("div",t._l(t.nonSignupRsvpVotes,(function(n){return e("LVote",{key:"vote-".concat(n.id),staticClass:"mb-4",attrs:{"vote-id":n.id,name:n.name,description:t.cardVoteContent.show_description?n.description:"",date:t.getDateName(n.date),icon:n.icon,"hide-icon":t.hideIcons,voters:n.voters,tag:n.limit?"".concat(t.getNumberOfVoters(n),"/").concat(n.limit):t.getNumberOfVoters(n)+"",color:t.voteColor(n.id),"tag-color":t.tagColor(n),muted:t.muted(n),empty:t.voteEmpty,locked:t.cardIsLocked,editable:t.editable,"card-view":!1,ics:t.ics,"card-id":t.cardId,"slot-view":"",small:"",colorful:t.didVoteFor(n.id),"hide-voter-names":t.hideVoterNames,"vote-type":t.cardVoteType,"reached-limit":t.reachedLimit(n),"voters-modal":t.showVotersModalForId===n.id},on:{clicked:function(e){return t.clickedVote(n.id)}}})})),1):e(c.a,{attrs:{align:"stretch",dense:t.column}},t._l(t.nonSignupRsvpVotes,(function(n){return e(o.a,{key:"vote-".concat(n.id),class:{"mb-1":t.column},attrs:{cols:t.column?12:t.nonSignupRsvpVotes.length>3||t.showAsCards?6:12,sm:t.column?12:t.nonSignupRsvpVotes.length>3?3:3===t.nonSignupRsvpVotes.length||t.showAsCards?4:6}},[e("LVote",{staticClass:"full-height",attrs:{"vote-id":n.id,name:n.name,date:t.getDateName(n.date),icon:n.icon,"hide-icon":t.hideIcons,voters:n.voters,tag:n.limit?"".concat(t.getNumberOfVoters(n),"/").concat(n.limit):t.getNumberOfVoters(n)+"",color:t.voteColor(n.id),"hide-rsvp-no":t.hideRsvpNo(n),"tag-color":t.tagColor(n),muted:t.muted(n),empty:t.voteEmpty,editable:t.editable,locked:t.cardIsLocked,ics:t.ics,"card-id":t.cardId,"card-view":t.showAsCards&&!t.column,small:t.column,colorful:t.didVoteFor(n.id),"hide-voter-names":t.hideVoterNames,"vote-type":t.cardVoteType,"reached-limit":t.reachedLimit(n),"voters-modal":t.showVotersModalForId===n.id},on:{clicked:function(e){return t.clickedVote(n.id)}}})],1)})),1)]],t._v(" "),t.selectedVoteId?e("LVoteModal",{attrs:{"vote-id":t.selectedVoteId,title:t.voteModalTitle,subtitle:t.voteModalSubtitle,disclaimer:t.voteDisclaimer,"ignore-contact":t.voteNoContactNeeded,"show-number":t.showNumber,"both-contact-types":t.bothContactTypes,color:t.voteColor(t.selectedVoteId)},on:{"voters-modal":function(e){return t.setVotersModal(t.selectedVoteId)}},model:{value:t.voteModal,callback:function(e){t.voteModal=e},expression:"voteModal"}}):t._e()],2):t._e()}),[],!1,null,null,null));e.a=H.exports},1136:function(t,e,n){"use strict";var r=n(1066),o=n(1177),c=n(350),l=n(1065),d=(n(9),n(15),n(13),n(19),n(10),n(20),n(2)),m=(n(26),n(56),n(6),n(73),n(18)),h=n(67),f=n(311);function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){Object(d.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var _={name:"LTimezoneModal",components:{LLabel:h.a},props:{value:{type:String,default:""},showModal:{type:Boolean,default:!1},cardId:{type:String,default:""},name:{type:String,default:""},showEditWarning:{type:Boolean,default:!1}},computed:y(y({},Object(m.c)({getCardById:"cards/getById",getTimezoneByCardId:"cards/getTimezoneById"})),{},{card:function(){return this.cardId?this.getCardById[this.cardId]:null},modalTitle:function(){return this.card?this.card.name:this.name},timezone:{get:function(){if(this.value)return this.value;var t=this.getTimezoneByCardId(this.cardId);return f.a.find((function(e){return e.tzCode.startsWith(t)}))||null},set:function(t){this.card&&this.updateCard({id:this.cardId,fields:{timezone:t.tzCode}}),this.$emit("input",t.tzCode)}},timezonesList:function(){return f.a},modalOpen:{get:function(){return this.showModal},set:function(t){this.$emit("modal",t)}}}),methods:y({},Object(m.b)({updateCard:"cards/update"}))},k=n(12),component=Object(k.a)(_,(function(){var t=this,e=t._self._c;return!t.cardId||t.card?e(l.a,{attrs:{width:"460"},model:{value:t.modalOpen,callback:function(e){t.modalOpen=e},expression:"modalOpen"}},[e("div",{staticClass:"white rounded-xl pa-4 position-relative"},[t.modalTitle?e("h4",{staticClass:"text-center mb-4"},[t._v(t._s(t.modalTitle))]):t._e(),t._v(" "),t.showEditWarning?e(r.a,{attrs:{color:"secondary error--text"}},[e("strong",[t._v("Heads up!")]),e("br"),t._v('\n      This only changes the timezone for viewing. To change the actual event\n      timezone, use "Edit".\n    ')]):t._e(),t._v(" "),e("LLabel",{staticClass:"ml-2 mb-2",attrs:{color:"lblack"}},[t._v("Timezone")]),t._v(" "),e(o.a,{staticClass:"primary--text rounded-xl",attrs:{"item-value":"tzCode","item-text":"label",items:t.timezonesList,placeholder:"What timezone is this event in?",outlined:"",color:"primary","return-object":""},scopedSlots:t._u([{key:"append",fn:function(){return[e("div",{staticClass:"mr-2"},[e("img",{attrs:{width:"20",src:"https://res.cloudinary.com/lome/image/upload/w_40,a_270/v1657173055/assets/icon-back-green.png"}})])]},proxy:!0}],null,!1,4096791881),model:{value:t.timezone,callback:function(e){t.timezone=e},expression:"timezone"}}),t._v(" "),e(c.a,{staticClass:"mt-1 primary",attrs:{"x-large":"",rounded:"",dark:"",type:"submit",elevation:"0",block:""},on:{click:function(e){e.preventDefault(),t.modalOpen=!1}}},[t._v("\n      Done\n    ")])],1)]):t._e()}),[],!1,null,null,null);e.a=component.exports},1137:function(t,e,n){"use strict";n(1090)},1138:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".v-tooltip__content{border-radius:16px!important}.v-tooltip__content.menuable__content__active{box-shadow:0 1px 1px rgba(0,0,0,.267);opacity:1!important}.member-img{display:block}",""]),r.locals={},t.exports=r},1139:function(t,e,n){"use strict";n(1091)},1140:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,'.l-circle{background-color:#efeadc;border-radius:50%;margin:-12px}.task-game-view-inner .task-member{display:none}.task-game-view-inner .task-member-focus{display:block}.close-top-right{position:absolute;right:12px;top:12px}.task-large-img{position:relative}.task-large-img .progress-circle,.task-large-img .task-member{left:20%;position:absolute;top:40%}.task-large-img .progress-circle{z-index:2}.tasks-game-view{padding-bottom:250px}.tasks-game-view>div{display:flex;flex-direction:column}.task-game-view{border:none!important;position:relative;width:20%;z-index:1}.task-game-view:nth-child(3n-1){align-self:flex-end}.task-game-view:nth-child(3n){align-self:center}.task-game-view:nth-child(3n-2):before{border:20px dotted;border-top-right-radius:40px;border-width:20px 20px 0 0;content:" ";height:60%;left:100%;position:absolute;top:calc(50% - 10px);width:calc(350% + 10px);z-index:0}.task-game-view:nth-child(3n-1):before{border:20px dotted;border-bottom-right-radius:40px;border-width:0 20px 20px 0;content:" ";height:50%;position:absolute;right:calc(50% - 10px);top:100%;width:175%;z-index:0}.task-game-view:nth-child(3n):before{border:20px dotted;border-top-left-radius:40px;border-width:20px 0 0 20px;content:" ";height:60%;position:absolute;right:100%;top:calc(50% - 20px);width:calc(150% + 10px);z-index:0}.task-game-view:last-child:before{display:none!important}.theme-key-art{display:block;max-width:140%;position:absolute;right:-215%;top:100%}@media only screen and (max-width:599px){.task-game-view{width:40%}.task-game-view:nth-child(3n-2):before{border:10px dotted;border-top-right-radius:20px;border-width:10px 10px 0 0;top:calc(50% - 5px);width:calc(100% + 5px)}.task-game-view:nth-child(3n-1):before{border:10px dotted;border-bottom-right-radius:20px;border-width:0 10px 10px 0;right:calc(50% - 5px);width:40%}.task-game-view:nth-child(3n):before{border:10px dotted;border-top-left-radius:20px;border-width:10px 0 0 10px;top:calc(50% - 5px);width:calc(30% + 5px)}.theme-key-art{right:0;top:120%}}',""]),r.locals={},t.exports=r},1141:function(t,e,n){"use strict";n(1092)},1142:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".task-member{opacity:.2}.task-member.task-member-completed,.task-member.task-member-focus{opacity:1}.task-member-completed .task-member-img{opacity:.4}",""]),r.locals={},t.exports=r},1143:function(t,e,n){"use strict";n(1093)},1144:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".task-name-input{margin:0!important;outline:none!important;padding:0!important;width:100%}.task-is-small .task-name-input{font-size:18px!important}.task-is-small .task-icon-col{margin-right:0}.task-name-input .v-input__slot:after,.task-name-input .v-input__slot:before{border:none!important}.task-name-input input{line-height:inherit!important;max-height:inherit!important;padding:0!important}.task-name-input-col{min-width:100px}.text-strike{-webkit-text-decoration:line-through;text-decoration:line-through}.bigger-font input{font-size:1.4rem}",""]),r.locals={},t.exports=r},1145:function(t,e,n){"use strict";n(1094)},1146:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".task{border-bottom:2px dotted #179b2d}.task-name{color:#000!important;font-size:1.4rem}.task-icon-col{margin-right:1rem}@media only screen and (max-width:599px){.task-icon-col{margin-right:0}.task-name{font-size:1rem}}.task-is-small .task-name{font-size:16px}",""]),r.locals={},t.exports=r},1147:function(t,e,n){"use strict";n(1095)},1148:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".tasks-emoji-picker{min-height:400px!important}",""]),r.locals={},t.exports=r},1149:function(t,e,n){"use strict";n(9),n(15),n(13),n(6),n(19),n(10),n(20);var r=n(2),o=(n(24),n(5)),c=n.n(o),l=n(18);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h="YYYY-MM-DD",f="MMMM D",v={name:"LCardDate",props:{cardId:{type:String,required:!0},year:{type:Boolean,default:!1}},data:function(){return{}},computed:m(m({},Object(l.c)({getCardById:"cards/getById"})),{},{card:function(){return this.getCardById[this.cardId]},formattedDate:function(){if(!this.card.date)return"";var t=c()(this.card.date),e=this.card.end_date?c()(this.card.end_date):null,n="";return n=e&&t.format(h)!==e.format(h)?e.format("MM")===t.format("MM")?"".concat(t.format(f),"-").concat(e.format("D")):"".concat(t.format(f),"-").concat(e.format(f)):t.format(f),this.year?e&&e.format("YYYY")!==t.format("YYYY")?"".concat(t.format(f+", YYYY"),"-").concat(e.format(f+", YYYY")):n+", ".concat(t.format("YYYY")):n}})},y=n(12),component=Object(y.a)(v,(function(){var t=this,e=t._self._c;return t.card&&t.card.date?e("div",[t._v("\n  "+t._s(t.formattedDate)+"\n")]):t._e()}),[],!1,null,null,null);e.a=component.exports},1150:function(t,e,n){"use strict";var r=n(350),o=n(1809),c=n(354),l=n(1044),d=(n(9),n(15),n(19),n(10),n(20),n(1)),m=n(2),h=(n(33),n(13),n(6),n(24),n(45),n(5)),f=n.n(h),v=n(547),y=n.n(v),_=n(548),k=n.n(_),w=n(18),x=n(100);function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?C(Object(n),!0).forEach((function(e){Object(m.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var j="YYYY-MM-DD",I="MMM D";f.a.extend(y.a),f.a.extend(k.a);var S={name:"LCardDatePicker",components:{LEmoji:x.a},props:{cardId:{type:String,required:!0},editable:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},emoji:{type:Boolean,default:!1}},data:function(){return{menu:!1,hasEndDate:!1,isUpdating:!1}},computed:O(O({},Object(w.c)({getCardById:"cards/getById",getVotesByCardId:"votes/getByCardId"})),{},{card:function(){return this.getCardById[this.cardId]},votes:function(){return this.getVotesByCardId(this.cardId)},votesWithTimeSlots:function(){var t;return null!==(t=this.votes)&&void 0!==t&&t.length?this.votes.filter((function(t){return!!t.start_time&&!!t.end_time})):[]},dates:{get:function(){if(!this.card.date)return f()().format(j);if(this.hasEndDate){var t=[f()(this.card.date).format(j)];return this.card.end_date&&f()(this.card.date).isBefore(f()(this.card.end_date))&&t.push(f()(this.card.end_date).format(j)),t}return f()(this.card.date).format(j)},set:function(t){this.handleSetDates(t)}},formattedDate:function(){if(!this.card.date)return"Date";var t=f()(this.card.date),e=this.hasEndDate&&this.card.end_date?f()(this.card.end_date):null;return e&&t.format(j)!==e.format(j)?e.format("MM")===t.format("MM")?"".concat(t.format(I),"-").concat(e.format("D")):"".concat(t.format(I),"-").concat(e.format(I)):t.format(I)}}),watch:{isUpdating:function(t){this.$emit("updating",t)}},mounted:function(){this.card.end_date&&(this.hasEndDate=!0)},methods:O(O({},Object(w.b)({updateCard:"cards/update",updateMultipleWithDifferentFields:"votes/updateMultipleWithDifferentFields"})),{},{handleSetDates:function(t){var e={};if(this.hasEndDate){if(e.date=f()(t[0]).format(j),2===t.length&&f()(t[0]).isBefore(f()(t[1]))?e.end_date=f()(t[1]).format(j):(e.end_date=f()(t[0]).format(j),e.date=f()(t[1]).format(j)),this.card.start_time&&(e.start_time=f()(this.card.start_time).set("date",f()(t[0]).date()).format()),this.card.end_time){var n=f()(this.card.end_time).set("date",f()(t[1]||t[0]).date());e.start_time&&n.isBefore(f()(e.start_time))&&(n=n.add(1,"day")),e.end_time=n.format()}}else if(e.date=f()(t).format(j),this.card.start_time&&(e.start_time=f()(this.card.start_time).set("date",f()(t).date()).format()),this.card.end_time){var r=f()(this.card.end_time).set("date",f()(t).date());e.start_time&&r.isBefore(f()(e.start_time))&&(r=r.add(1,"day")),e.end_time=r.format()}this.updateVotesWithTimeSlots(t),this.updateFields(e),this.menu=!1},removeDate:function(){this.updateFields({date:null}),this.menu=!1},updateVotesWithTimeSlots:function(t){var e=this;return Object(d.a)(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.votesWithTimeSlots.length){n.next=2;break}return n.abrupt("return");case 2:return r=Array.isArray(t)?t[0]:t,o=e.votesWithTimeSlots.map((function(t){var e=f()(t.start_time).set("year",f()(r).year()).set("month",f()(r).month()).set("date",f()(r).date()).utc().format(),n=f()(t.end_time).set("year",f()(r).year()).set("month",f()(r).month()).set("date",f()(r).date()).utc().format();return{voteId:t.id,data:{start_time:e,end_time:n}}})),n.prev=4,n.next=7,e.updateMultipleWithDifferentFields({cardId:e.cardId,updates:o});case 7:n.next=12;break;case 9:n.prev=9,n.t0=n.catch(4),console.error("Error updating votes with time slots:",n.t0);case 12:case"end":return n.stop()}}),n,null,[[4,9]])})))()},updateFields:function(t){var e=this;return Object(d.a)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.isUpdating=!0,r={id:e.card.id,fields:t},n.next=4,e.updateCard(r);case 4:e.isUpdating=!1;case 5:case"end":return n.stop()}}),n)})))()},toggleEndDate:function(){var t=this;return Object(d.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.hasEndDate=!t.hasEndDate,t.hasEndDate){e.next=5;break}return e.next=4,t.updateFields({end_date:null});case 4:t.handleSetDates(t.dates);case 5:case"end":return e.stop()}}),e)})))()}})},L=n(12),component=Object(L.a)(S,(function(){var t=this,e=t._self._c;return t.editable||t.card.date?e("div",[e(l.a,{attrs:{"close-on-content-click":!1,"content-class":"rounded-lg","offset-y":"",bottom:"",disabled:!t.editable},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e("div",{staticClass:"d-flex align-center"},[t.emoji?e("LEmoji",{staticClass:"pr-4",staticStyle:{"font-size":"26px"},attrs:{block:"",file:"calendar"}}):t._e(),t._v(" "),t.text?e("a",t._g(t._b({staticClass:"primary--text no-underline",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.$emit("opened")}}},"a",c,!1),o),[t._v("\n          "+t._s(t.formattedDate)+"\n        ")]):e(r.a,t._g(t._b({staticClass:"rounded-xl my-1 mr-2 primary--text elevation-0",class:{"btn-tiny-border":t.outlined},attrs:{small:!t.outlined,color:t.outlined?"primary":"secondary",outlined:t.outlined},on:{click:function(e){return t.$emit("opened")}}},"v-btn",c,!1),o),[t._v("\n          "+t._s(t.formattedDate)+"\n        ")])],1)]}}],null,!1,609306735),model:{value:t.menu,callback:function(e){t.menu=e},expression:"menu"}},[t._v(" "),e(c.a,{staticClass:"pa-2 rounded-lg",attrs:{color:"white"}},[e(o.a,{staticClass:"rounded-lg",attrs:{"prev-icon":"li-arrow-left","next-icon":"li-arrow-right",range:t.hasEndDate},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}},[e("div",{staticStyle:{width:"100%"}},[t.hasEndDate?e(r.a,{staticClass:"rounded-xl elevation-0 mb-2",attrs:{small:"",color:"primary",block:""},on:{click:function(e){e.preventDefault(),t.menu=!1}}},[t._v("\n            Save\n          ")]):t._e(),t._v(" "),t.card.date?e(r.a,{staticClass:"rounded-xl elevation-0",class:{"primary--text":!t.hasEndDate,"lred--text":t.hasEndDate},attrs:{small:"",color:"secondary",block:""},on:{click:function(e){return e.preventDefault(),t.toggleEndDate.apply(null,arguments)}}},[t._v("\n            "+t._s(t.hasEndDate?"Remove":"Add")+" End Date\n          ")]):t._e(),t._v(" "),t.card.date&&!t.hasEndDate?e(r.a,{staticClass:"rounded-xl elevation-0 mt-2 lred--text",attrs:{small:"",color:"secondary",block:""},on:{click:function(e){return e.preventDefault(),t.removeDate.apply(null,arguments)}}},[t._v("\n            Remove Date\n          ")]):t._e()],1)])],1)],1)],1):t._e()}),[],!1,null,null,null);e.a=component.exports},1152:function(t,e,n){"use strict";var r=n(350),o=n(1054),c=n(1053),l=n(1059),d=(n(73),n(169)),m=n(43),h={name:"LHeaderLoggedOut",components:{LLogo:d.a,LAsset:m.a},props:{showMagic:{type:Boolean,default:!1},showSignup:{type:Boolean,default:!0},showLearnMore:{type:Boolean,default:!0},logoLink:{type:String,default:"/"}},data:function(){return{showMagicWeekHelp:!1,showMobileMenu:!1}},methods:{clickedLogo:function(){this.logoLink.startsWith("https:")?location&&(location.href=this.logoLink):this.$router.push(this.logoLink)}}},f=(n(1178),n(12)),component=Object(f.a)(h,(function(){var t=this,e=t._self._c;return t.$auth.loggedIn?t._e():e("header",[e("div",{staticClass:"px-md-6"},[e(c.a,{staticClass:"align-center",staticStyle:{width:"100%"},attrs:{dense:t.$vuetify.breakpoint.xsOnly}},[e(o.a,{staticClass:"flex-grow-0"},[e("LLogo",{on:{clicked:t.clickedLogo}})],1),t._v(" "),t._t("left"),t._v(" "),e(l.a,{staticClass:"flex-grow-1"}),t._v(" "),!t.showMagic||t.showMobileMenu&&t.$vuetify.breakpoint.smAndDown?t._e():e(o.a,{staticClass:"site-header-tag shadow-outline px-4 flex-grow-0 mr-sm-4 cursor-pointer",on:{click:function(e){e.preventDefault(),t.showMagicWeekHelp=!t.showMagicWeekHelp}}},[e("div",{staticClass:"d-flex align-center"},[t.$vuetify.breakpoint.xsOnly?t._e():e("div",{staticClass:"mr-4"},[e("img",{staticClass:"d-block",attrs:{src:"https://res.cloudinary.com/lome/image/upload/assets/magic-nudge-hat-off.png",width:"80"}})]),t._v(" "),e("div",{staticClass:"pt-3",style:"font-size: ".concat(t.$vuetify.breakpoint.xsOnly?12:14,"px; white-space: nowrap")},[e("strong",{staticStyle:{"white-space":"nowrap"}},[t._v("What’s a Magic Week?")]),t._v(" "),e("br"),e("a",{attrs:{href:"#"},on:{click:function(t){t.preventDefault()}}},[t._v(t._s(t.showMagicWeekHelp?"Hide":"Show")+" Details")])])])]),t._v(" "),t.showMobileMenu&&t.$vuetify.breakpoint.smAndDown?e(o.a,{staticClass:"d-flex justify-end"},[t.showLearnMore?e("a",{staticClass:"mx-2 mx-md-4 font-weight-bold no-underline",staticStyle:{"white-space":"nowrap"},attrs:{href:"https://withlome.com"}},[t._v("Learn More")]):t._e(),t._v(" "),t.showSignup?e("a",{staticClass:"mx-2 mx-md-4 font-weight-bold no-underline",staticStyle:{"white-space":"nowrap"},attrs:{href:"https://grow.withlome.com"}},[t._v("Sign Up")]):t._e()]):t._e(),t._v(" "),e(o.a,{staticClass:"flex-grow-0 text-right"},[t.showMagic&&t.$vuetify.breakpoint.smAndDown?e(r.a,{attrs:{icon:""},on:{click:function(e){e.preventDefault(),t.showMobileMenu=!t.showMobileMenu}}},[e("LAsset",{attrs:{width:"24",file:"icon-list"}})],1):e("div",{staticClass:"d-flex text-right"},[t._t("right"),t._v(" "),t.showLearnMore?e("a",{staticClass:"mx-2 mx-md-4 font-weight-bold no-underline",staticStyle:{"white-space":"nowrap"},attrs:{href:"https://withlome.com"}},[t._v("Learn More")]):t._e(),t._v(" "),t.showSignup?e("a",{staticClass:"mx-2 mx-md-4 font-weight-bold no-underline",staticStyle:{"white-space":"nowrap"},attrs:{href:"https://grow.withlome.com"}},[t._v("Sign Up")]):t._e()],2)],1)],2)],1),t._v(" "),t.showMagicWeekHelp?e("div",{staticClass:"mx-auto",staticStyle:{"max-width":"940px"}},[e(c.a,{staticClass:"align-center justify-center"},[t.$vuetify.breakpoint.xsOnly?t._e():e(o.a,{staticClass:"text-center text-sm-right",attrs:{cols:"12",sm:"6"}},[e("img",{staticClass:"magic-wk-help-img",attrs:{src:"https://res.cloudinary.com/lome/image/upload/assets/magic-nudge-hat-off.png"}})]),t._v(" "),e(o.a,{attrs:{cols:"12",sm:"6"}},[e("div",{staticClass:"text-right"},[e(r.a,{staticClass:"mr-5 mb-3",attrs:{icon:""},on:{click:function(e){e.preventDefault(),t.showMagicWeekHelp=!1}}},[e("LAsset",{attrs:{width:"36",file:"icon-x"}})],1)],1),t._v(" "),e("h3",{staticClass:"mb-3 font-weight-bold"},[t._v("What is a Magic Week?")]),t._v(" "),t.$vuetify.breakpoint.xsOnly?e("div",{staticClass:"text-center"},[e("img",{staticClass:"magic-wk-help-img",attrs:{src:"https://res.cloudinary.com/lome/image/upload/assets/magic-nudge-hat-off.png"}})]):t._e(),t._v(" "),e("p",{staticClass:"ma-0"},[t._v("\n          A Magic Week is a\n          "),e("strong",{staticClass:"ldarkblue--text"},[t._v("meal plan")]),t._v(" for a family\n          dinner, "),e("strong",{staticClass:"lred--text"},[t._v("conversation topic")]),t._v(" to\n          get everyone sharing, a\n          "),e("strong",{staticClass:"lorange--text"},[t._v("fun activity")]),t._v(" for quality time\n          and a "),e("strong",{staticClass:"lteal--text"},[t._v("relaxation idea")]),t._v(" to rest\n          and recharge. We create a plan for you each week or you can add a\n          few ideas to make your own magic.\n        ")])])],1)],1):t._e()])}),[],!1,null,null,null);e.a=component.exports},1153:function(t,e,n){"use strict";var r=n(350),o=n(1054),c=n(1044),l=n(1053),d=n(309),m=n(1058),h=n(2),f=(n(163),n(9),n(15),n(13),n(6),n(19),n(10),n(20),n(1)),v=(n(33),n(308),n(24),n(34),n(52),n(236),n(1083)),y=n.n(v),_=n(165),k=n.n(_),w=n(18),x=n(100),C=n(43),O=n(1067);function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function I(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){Object(h.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var S={name:"LCardBlockLocation",components:{LEmoji:x.a,LAsset:C.a,LMenu:O.a},props:{cardId:{type:String,required:!0},active:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},small:{type:Boolean,default:!1},noIcon:{type:Boolean,default:!1}},data:function(){return{isEditing:!1,isSaving:!1,tempLocation:null,editingLocation:!1}},computed:I(I({},Object(w.c)({getCardById:"cards/getById"})),{},{menu:function(){return[{content:"Remove Location",asset:"icon-delete-white",func:this.removeLocation,hideDivider:!0,deleteBtn:!0}]},card:function(){return this.getCardById[this.cardId]},color:function(){return"".concat(this.gameTheme("color")||"primary","--text")},location:{get:function(){return this.card.location||null},set:function(t){this.updateField("location",t)}},formattedLocation:function(){if(!this.location)return"";var t=this.stripHtml(this.location);t.toLowerCase().endsWith(", usa")&&(t=t.substring(0,t.length-5));var e=t.indexOf(",");if(-1!==e){var n=t.substring(0,e);t="<strong>".concat(n,"</strong><br>").concat(t.substring(e+1,t.length))}return t},locationIsUrl:function(){return this.location&&y.a.isWebUri(this.location)},mapLink:function(){return this.location?this.locationIsUrl?this.location:"https://www.google.com/maps/search/".concat(this.location.replaceAll(" ","+"),"/"):""}}),watch:{isEditing:function(t){this.$emit("toggle",t)}},mounted:function(){this.isEditing=this.active,this.tempLocation=this.location},methods:I(I({},Object(w.b)({updateCard:"cards/update"})),{},{toggleEdit:function(){!this.location&&this.editable&&(this.isEditing=!this.isEditing)},saveLocation:function(){this.isSaving=!0,this.location=this.tempLocation},updateField:function(t,e){var n={};n[t]=e,this.updateFields(n)},updateFields:function(t){this.debounceUpdate(t)},debounceUpdate:k()(function(){var t=Object(f.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={id:this.card.id,fields:e},t.next=3,this.updateCard(n);case 3:this.isSaving=!1,this.editingLocation=!1;case 5:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),500),removeLocation:function(){this.location=null,this.tempLocation=null,this.isEditing=!1},stripHtml:function(html){return(new DOMParser).parseFromString(html,"text/html").body.textContent||""},clickedEditLocation:function(){this.editingLocation=this.editable,!this.editable&&this.small&&this.mapLink&&(location.href=this.mapLink)},gameTheme:function(t){return this.card&&this.card.game_theme&&this.card.game_theme[t]||null}})},L=S,D=(n(1156),n(12)),component=Object(D.a)(L,(function(){var t=this,e=t._self._c;return e("div",[t.small&&!t.editable?e("div",{staticClass:"d-flex align-center"},[e("LEmoji",{staticStyle:{"font-size":"20px"},attrs:{block:"",file:"map"}}),t._v(" "),e("div",{staticClass:"pl-2 d-flex align-center"},[e("a",{staticClass:"rounded-xl btn-location no-underline",class:Object(h.a)({ellipsis:t.locationIsUrl,"btn-location-sm":t.noIcon},t.color,!0),attrs:{href:"#"},domProps:{innerHTML:t._s(t.location?t.formattedLocation:"Location")},on:{click:function(e){return e.preventDefault(),t.clickedEditLocation.apply(null,arguments)}}})])],1):e(l.a,{staticClass:"align-center"},[t.noIcon?t._e():e(o.a,{staticClass:"flex-grow-0",class:t.small?"pa-0":""},[t.active?e(c.a,{attrs:{"content-class":"rounded-lg","offset-y":""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e(r.a,t._g(t._b({attrs:{icon:"",title:"Location"},on:{click:t.toggleEdit}},"v-btn",c,!1),o),[e("LEmoji",{style:"font-size: ".concat(t.$vuetify.breakpoint.xsOnly?"38px":"32px"),attrs:{block:"",file:"map"}})],1)]}}],null,!1,1877474619)},[t._v(" "),t.editable&&(t.location||t.isEditing)?e("LMenu",{attrs:{items:t.menu}}):t._e()],1):e(m.a,{attrs:{"content-class":"rounded-lg",bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e(r.a,t._g(t._b({attrs:{icon:"",title:"Location"},on:{click:t.toggleEdit}},"v-btn",c,!1),o),[e("LEmoji",{style:"font-size: ".concat(t.$vuetify.breakpoint.xsOnly?"38px":"32px"),attrs:{block:"",file:"map"}})],1)]}}],null,!1,1877474619)},[t._v(" "),e("span",[t._v("Location")])])],1),t._v(" "),t.location||t.isEditing?e(o.a,{class:t.small?"pa-0 ml-2":"pl-0"},[!t.location||t.editingLocation?e("form",{staticClass:"d-flex align-center",staticStyle:{width:"100%","max-width":"600px"},on:{submit:function(e){return e.preventDefault(),t.saveLocation.apply(null,arguments)}}},[e(d.a,{staticClass:"rounded-lg select-location",attrs:{label:t.tempLocation&&t.location?"Location":"",placeholder:"Location",autofocus:"",color:"primary","hide-details":"",outlined:""},model:{value:t.tempLocation,callback:function(e){t.tempLocation=e},expression:"tempLocation"}}),t._v(" "),e(r.a,{staticClass:"btn-circle elevation-0 ml-1",attrs:{width:"36",color:"primary",loading:t.isSaving,type:"submit"},on:{click:function(e){return e.preventDefault(),t.saveLocation.apply(null,arguments)}}},[e("LAsset",{attrs:{width:"16",file:"icon-check-white"}})],1)],1):[e("div",{staticClass:"d-flex align-center"},[e("a",{staticClass:"rounded-xl btn-location no-underline",class:Object(h.a)({ellipsis:t.locationIsUrl,"btn-location-sm":t.small&&t.noIcon},t.color,!0),attrs:{href:"#"},domProps:{innerHTML:t._s(t.location?t.formattedLocation:"Location")},on:{click:function(e){return e.preventDefault(),t.clickedEditLocation.apply(null,arguments)}}}),t._v(" "),t.mapLink&&!t.small?e(r.a,{staticClass:"rounded-xl elevation-0 ml-2",attrs:{color:"primary",target:"_blank",href:t.mapLink}},[t._v(t._s(t.locationIsUrl?"Go":"Map"))]):t._e()],1)]],2):t._e()],1)],1)}),[],!1,null,null,null);e.a=component.exports},1154:function(t,e,n){"use strict";var r=n(350),o=n(1054),c=n(1044),l=n(1053),d=n(1058),m=(n(163),n(9),n(15),n(13),n(6),n(19),n(10),n(20),n(1)),h=n(2),f=(n(33),n(24),n(27),n(35),n(5)),v=n.n(f),y=n(165),_=n.n(y),k=n(18),w=n(310),x=n(1068),C=n(100),O=n(1067),j=n(1105),I=n(1136);function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function L(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?S(Object(n),!0).forEach((function(e){Object(h.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var D=n(547),T=n(548);v.a.extend(D),v.a.extend(T);var M={name:"LCardBlockTime",components:{LEmoji:C.a,LMenu:O.a,LTimePicker:j.a,LTimezoneModal:I.a},props:{cardId:{type:String,required:!0},active:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},small:{type:Boolean,default:!1},noIcon:{type:Boolean,default:!1},color:{type:String,default:"primary"}},data:function(){return{setTime:null,isEditing:!1,editingStart:!1,editingEnd:!1,savingStart:!1,savingEnd:!1,duration:null,timezoneModal:!1,customTimezoneModal:!1}},computed:L(L({},Object(k.c)({getCardById:"cards/getById",getTimezoneByCardId:"cards/getTimezoneById",home:"home/home",getVoteReminderByCardId:"reminders/getByVoteCardId"})),{},{menu:function(){return[{content:"Remove Time",asset:"icon-delete-white",func:this.removeTime,hideDivider:!0,deleteBtn:!0}]},card:function(){return this.getCardById[this.cardId]},end_date:function(){return this.card.end_date?this.card.end_date:this.card.date},cardStartTime:function(){var t;return null===(t=this.card)||void 0===t?void 0:t.start_time},reminder:function(){return this.getVoteReminderByCardId(this.cardId)},start_time:{get:function(){return this.card.start_time?v()(this.card.start_time).tz(this.cardTimezone).format("HH:mm"):null},set:function(t){var e=this.card.date||v()().tz(this.cardTimezone).format("YYYY-MM-DD"),n=v.a.tz("".concat(e," ").concat(t),this.cardTimezone).format(),r=v()(n).add(this.duration,"minute").format();this.savingStart=!0,this.updateFields({start_time:n,end_time:r})}},end_time:{get:function(){return this.card.end_time?v()(this.card.end_time).tz(this.cardTimezone).format("HH:mm"):null},set:function(t){this.savingEnd=!0;var e=v()(this.card.start_time).tz(this.cardTimezone),n=v.a.tz("".concat(this.end_date," ").concat(t),this.cardTimezone);if(n.isBefore(e)){var r=n.add(1,"day");this.updateField("end_time",r.format())}else this.updateField("end_time",n.format());this.setDuration(n.format())}},formattedStart:function(){return this.card.start_time?v()(this.card.start_time).tz(this.cardTimezone).format("h:mma"):null},formattedEnd:function(){return this.card.end_time?v()(this.card.end_time).tz(this.cardTimezone).format("h:mma"):null},cardTimezone:function(){var t=!this.editable;return this.getTimezoneByCardId(this.cardId,t)},customCardTimezone:{get:function(){return this.cardTimezone},set:function(t){this.setCustomCardTimezone({timezone:t,id:this.cardId})}},formattedTimezone:function(){return w.a.niceTimezone(this.cardTimezone)},useTimeSlots:function(){var content=Object(x.getCardVoteContent)(this.card);return content&&!!content.use_time_slots}}),watch:{isEditing:function(t){this.$emit("toggle",t)},cardStartTime:function(t,e){null!=t&&t.includes("Z")&&this.reminder&&t!==e&&this.updateReminder(t)}},mounted:function(){this.start_time||(this.editingStart=!0),this.isEditing=this.active,this.setDuration()},methods:L(L({},Object(k.b)({updateCard:"cards/update",setCustomCardTimezone:"view/setCustomCardTimezone",upsertReminder:"reminders/upsert"})),{},{updateReminder:function(t){if(this.reminder){var e=this.reminder.time_offset_mins,time=v()(t).add(e,"minutes");this.upsertReminder({card_id:this.cardId,time:time,time_type:"vote_offset",time_offset_mins:e})}},toggleEdit:function(){!this.start_time&&this.editable&&(this.isEditing=!this.isEditing)},setDuration:function(time){if(this.start_time&&this.end_time){var t=time||this.card.end_time;this.duration=v()(t).tz(this.cardTimezone).diff(v()(this.card.start_time).tz(this.cardTimezone),"minute")}else this.duration=60},updateField:function(t,e){var n={};n[t]=e,this.updateFields(n)},updateFields:function(t){this.debounceUpdate(t)},debounceUpdate:_()(function(){var t=Object(m.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={id:this.card.id,fields:e},t.next=3,this.updateCard(n);case 3:this.savingStart=!1,this.savingEnd=!1,this.editingStart=!1,this.editingEnd=!1;case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),500),removeTime:function(){this.updateFields({start_time:null,end_time:null}),this.isEditing=!1,this.editingStart=!1,this.editingEnd=!1}})},P=M,B=(n(1158),n(12)),component=Object(B.a)(P,(function(){var t=this,e=t._self._c;return e("div",[t.small&&!t.editable?e("div",{staticClass:"d-flex align-center"},[e("LEmoji",{staticStyle:{"font-size":"20px"},attrs:{block:"",file:"watch"}}),t._v(" "),e("div",{staticClass:"pl-2 d-flex align-center"},[t.start_time?e("div",{class:"font-weight-bold ".concat(t.color,"--text"),staticStyle:{"font-size":"16px"}},[t._v("\n        "+t._s(t.formattedStart)+"\n      ")]):t._e(),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.start_time,expression:"start_time"}],class:"px-1 ".concat(t.color,"--text"),staticStyle:{"font-size":"16px"}},[t._v("\n        -\n      ")]),t._v(" "),t.end_time?e("div",{class:"font-weight-bold ".concat(t.color,"--text"),staticStyle:{"font-size":"16px"}},[t._v("\n        "+t._s(t.formattedEnd)+"\n      ")]):t._e()]),t._v(" "),t.card&&"event"===t.card.type?e("span",{staticClass:"ml-2 grey--text",staticStyle:{"padding-top":"2px","font-size":"12px"}},[t.useTimeSlots?e("a",{staticClass:"grey--text",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.customTimezoneModal=!0}}},[t._v(t._s(t.formattedTimezone))]):[t._v(t._s(t.formattedTimezone))]],2):t._e()],1):e(l.a,{staticClass:"align-center",attrs:{dense:t.small}},[t.noIcon?t._e():e(o.a,{staticClass:"flex-grow-0",class:{"mr-1":t.small}},[t.active?e(c.a,{attrs:{"content-class":"rounded-lg","offset-y":""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e(r.a,t._g(t._b({attrs:{icon:"",title:"Time"},on:{click:t.toggleEdit}},"v-btn",c,!1),o),[e("LEmoji",{style:"font-size: ".concat(t.$vuetify.breakpoint.xsOnly?"38px":"32px"),attrs:{block:"",file:"watch"}})],1)]}}],null,!1,3571051366)},[t._v(" "),t.editable&&(t.start_time||t.isEditing)?e("LMenu",{attrs:{items:t.menu}}):t._e()],1):e(d.a,{attrs:{"content-class":"rounded-lg",bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e(r.a,t._g(t._b({attrs:{icon:"",title:"Time"},on:{click:t.toggleEdit}},"v-btn",c,!1),o),[e("LEmoji",{style:"font-size: ".concat(t.$vuetify.breakpoint.xsOnly?"38px":"32px"),attrs:{block:"",file:"watch"}})],1)]}}],null,!1,3571051366)},[t._v(" "),e("span",[t._v("Time")])])],1),t._v(" "),t.start_time||t.isEditing?e(o.a,{class:t.small&&t.editable?"pa-0":"pl-0"},[e("div",{staticClass:"d-flex align-center"},[t.editingStart?e("LTimePicker",{attrs:{rounded:"",label:t.start_time?"Start":"",loading:t.savingStart},model:{value:t.start_time,callback:function(e){t.start_time=e},expression:"start_time"}}):[t.editable?e(r.a,{staticClass:"rounded-xl btn-tiny-border",class:{"pa-0":!t.editable},attrs:{color:t.color,outlined:t.editable,text:!t.editable,small:t.small},on:{click:function(e){e.preventDefault(),t.editingStart=t.editable}}},[t._v(t._s(t.start_time?t.formattedStart:"Start"))]):t._e(),t._v(" "),t.start_time&&!t.editable?e("div",{class:"pl-1 font-weight-bold ".concat(t.color,"--text"),style:t.small?"font-size:16px":""},[t._v("\n            "+t._s(t.formattedStart)+"\n          ")]):t._e()],t._v(" "),t.editable||t.end_time?e("div",{directives:[{name:"show",rawName:"v-show",value:t.start_time,expression:"start_time"}],class:"px-1 ".concat(t.color,"--text")},[t._v("\n          -\n        ")]):t._e(),t._v(" "),t.editingEnd?e("LTimePicker",{attrs:{rounded:"",label:t.end_time?"End":"",loading:t.savingEnd},model:{value:t.end_time,callback:function(e){t.end_time=e},expression:"end_time"}}):[t.editable?e(r.a,{directives:[{name:"show",rawName:"v-show",value:t.start_time,expression:"start_time"}],staticClass:"rounded-xl btn-tiny-border",class:{"px-0":!t.editable},attrs:{color:t.color,outlined:t.editable,text:!t.editable,small:t.small},on:{click:function(e){e.preventDefault(),t.editingEnd=t.editable}}},[t._v(t._s(t.end_time?t.formattedEnd:"End"))]):t._e(),t._v(" "),t.end_time&&!t.editable?e("div",{class:"font-weight-bold ".concat(t.color,"--text"),style:t.small?"font-size:16px":""},[t._v("\n            "+t._s(t.formattedEnd)+"\n          ")]):t._e()],t._v(" "),e("div",{staticClass:"ml-2",staticStyle:{"font-size":"14px"}},[e("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.timezoneModal=!0}}},[t._v(t._s(t.formattedTimezone))])])],2)]):t._e()],1),t._v(" "),t.editable?e("LTimezoneModal",{attrs:{"card-id":t.cardId,"show-modal":t.timezoneModal},on:{modal:function(e){t.timezoneModal=e}}}):t.useTimeSlots?e("LTimezoneModal",{attrs:{"show-edit-warning":t.home&&t.card.home_id===t.home.id,"show-modal":t.customTimezoneModal},on:{modal:function(e){t.customTimezoneModal=e}},model:{value:t.customCardTimezone,callback:function(e){t.customCardTimezone=e},expression:"customCardTimezone"}}):t._e()],1)}),[],!1,null,null,null);e.a=component.exports},1156:function(t,e,n){"use strict";n(1098)},1157:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".btn-location{border:1px solid;display:block;font-size:16px;line-height:1.2;max-width:236px;padding:8px 16px}.btn-location-sm{padding:4px 8px}.select-location.v-text-field--outlined>.v-input__control>.v-input__slot{min-height:36px}",""]),r.locals={},t.exports=r},1158:function(t,e,n){"use strict";n(1099)},1159:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".btn-tiny-border.v-btn{border-width:1px!important}",""]),r.locals={},t.exports=r},1160:function(t,e,n){"use strict";n(1100)},1161:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".bank-circle[data-v-47476aa3]{border:2px solid #7f7f7f;border-radius:50%;height:18px;width:18px}.bank-uncheck-circle[data-v-47476aa3]{border:2px solid #7f7f7f;color:#7f7f7f}.bank-circle-select-all[data-v-47476aa3]{border-style:dashed}.bank-circle-check[data-v-47476aa3]{font-size:13px;line-height:17px;text-align:center;width:100%}",""]),r.locals={},t.exports=r},1162:function(t,e,n){"use strict";n(1101)},1163:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".l-vote-group-description{color:#333!important}.l-vote-group-description p{color:#333!important;margin-bottom:0!important}.l-vote-group-description a{color:#333!important}.l-vote-group-description h3{color:#333!important;font-size:18px!important}",""]),r.locals={},t.exports=r},1164:function(t,e,n){"use strict";n(1102)},1165:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".sticky-header{background:#fff;position:sticky;z-index:10}.l-box-shadow-sticky{box-shadow:-1px 2px 2px rgba(0,0,0,.1);overflow:hidden}.bolded-dropdown.theme--light.v-select .v-select__selection--comma{color:#7f7f7f;font-weight:700}.bolded-dropdown-menu .v-list .v-list-item--active{caret-color:currentColor!important;color:currentColor!important}.bolded-dropdown-menu .v-list .v-list-item__content .v-list-item__title{font-weight:700!important}.sub-group-border-bottom{border-bottom:1px solid #efeadc;padding-bottom:12px}.sub-group-border-bottom:last-child{border-bottom:none}",""]),r.locals={},t.exports=r},1166:function(t,e,n){"use strict";n(1103)},1167:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".url-loader{left:-22px;position:absolute;top:8px}.hidden-card{opacity:.1!important}.stack-card-image-view{display:block;width:100%}.cards-image-view-emoji .card-image-view-image,.cards-image-view-image .card-image-view-emoji{display:none}.stack-ideas-card .card-image-view-emoji,.stack-ideas-card .card-image-view-image{margin:0 auto;max-width:80%}.abs-options{left:0;position:absolute;top:40px;z-index:3}.text-non-edit-mode{max-height:96px;max-width:100%;overflow:hidden}.half-width{width:50%}",""]),r.locals={},t.exports=r},1168:function(t,e,n){"use strict";n(1104)},1169:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".l-card-block-container .l-card-block-visibility{visibility:hidden}.l-card-block-container:hover .l-card-block-visibility{visibility:visible}.tiny-card-date{font-size:14px}",""]),r.locals={},t.exports=r},1170:function(t,e,n){"use strict";var r=n(350),o=(n(9),n(15),n(19),n(20),n(2)),c=(n(56),n(6),n(26),n(13),n(27),n(10),n(18)),l=n(67),d=n(100),m=n(43),h=n(1088),f=n(1110);function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){Object(o.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var _={name:"LVotesCta",components:{LLabel:l.a,LEmoji:d.a,LAsset:m.a,LVote:h.a,LVoteModal:f.a},props:{cardId:{type:String,required:!0},editable:{type:Boolean,default:!1},detail:{type:Boolean,default:!1}},data:function(){return{}},computed:y(y({},Object(c.c)({getCardById:"cards/getById",getVoteById:"votes/getById",getVotesByCardId:"votes/getByCardId",anonUser:"anon/user",members:"members/members"})),{},{card:function(){return this.getCardById[this.cardId]},cardVoteType:function(){return this.card.vote_type||null},votes:function(){return this.getVotesByCardId(this.cardId)},color:function(){return this.card.game_theme&&this.card.game_theme.color?this.card.game_theme.color:"primary"},hasVotedForCard:function(){var t=this;return!!this.votes.find((function(e){return t.didVoteFor(e.id)}))||"response"===this.card.type},buttonText:function(){var t=this;if(this.hasVotedForCard){switch(this.card.vote_type){case"rsvp":var e=this.votes.find((function(e){return t.didVoteFor(e.id)}));return"yes"===e.slug?"Going":"no"===e.slug?"Not Going":e.name;case"vote":return"Voted"}return"Signed Up"}if(this.allSignupsAreFull)return"Full";switch(this.card.vote_type){case"rsvp":return"RSVP";case"vote":return"Vote"}return"Sign Up"},buttonIcon:function(){var t=this;return this.hasVotedForCard?this.votes.find((function(e){return"no"===e.slug&&t.didVoteFor(e.id)}))?"icon-x-white":"icon-check-white":null},buttonColor:function(){return this.buttonIcon?"icon-x-white"===this.buttonIcon?"lred":this.color:this.allSignupsAreFull?"secondary":this.color},allSignupsAreFull:function(){var t=this;return this.votes.filter((function(e){return t.reachedLimit(e)})).length===this.votes.length}}),mounted:function(){this.cardVoteType&&!this.votes.length&&this.indexVotes(this.cardId)},methods:y(y({},Object(c.b)({indexVotes:"votes/index"})),{},{isSignupRsvp:function(t){return["yes","no"].includes(t.slug)&&"signup-rsvp"===this.card.vote_type},didVoteFor:function(t){var e,n,r=this,o=this.getVoteById[t];return this.$auth.loggedIn&&"vote"!==this.cardVoteType&&!(null==o||null===(e=o.voters)||void 0===e||!e.find((function(t){return t.member_id===r.$auth.user.id})))||this.anonUser&&!(null==o||null===(n=o.voters)||void 0===n||!n.find((function(t){return t.anon_id===r.anonUser.id})))},reachedLimit:function(t){return!this.isSignupRsvp(t)&&(t.limit&&this.getNumberOfVoters(t)>=t.limit)},getNumberOfVoters:function(t){if(!t||!t.voters||!t.voters.length)return 0;var e=0;return t.voters.forEach((function(t){e+=t.number||1})),e}})},k=n(12),component=Object(k.a)(_,(function(){var t=this,e=t._self._c;return t.cardVoteType?e("div",[e(r.a,{staticClass:"rounded-xl elevation-0",class:{"lblack--text":"secondary"===t.buttonColor},attrs:{color:t.buttonColor,block:t.detail,"x-small":!t.detail,dark:"secondary"!==t.buttonColor,to:"/a/".concat(t.cardId)}},[t.buttonIcon?e("LAsset",{staticClass:"mr-1",attrs:{height:"12",file:t.buttonIcon}}):t._e(),t._v(" "),e("span",[t._v(t._s(t.buttonText))])],1)],1):t._e()}),[],!1,null,null,null);e.a=component.exports},1171:function(t,e,n){"use strict";n(1111)},1172:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".member-picker-title{font-size:11px;line-height:1;opacity:0;text-transform:uppercase;transition:all .1s ease-out}.member-picker:hover .member-picker-title{opacity:1;top:-4px}",""]),r.locals={},t.exports=r},1178:function(t,e,n){"use strict";n(1131)},1179:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".site-header-tag{border-radius:0 0 16px 16px;margin-top:-32px}.magic-wk-help-img{height:auto;margin:0 auto;max-width:80px;width:100%}@media only screen and (min-width:600px){.magic-wk-help-img{max-width:365px}.site-header-tag{border-radius:0 0 32px 32px}}",""]),r.locals={},t.exports=r},1181:function(t,e,n){var content=n(1213);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("72ee8baa",content,!0,{sourceMap:!1})},1187:function(t,e,n){var content=n(1234);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("586f4d25",content,!0,{sourceMap:!1})},1188:function(t,e,n){var content=n(1236);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("327067d2",content,!0,{sourceMap:!1})},1189:function(t,e,n){var content=n(1238);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("6e7cada0",content,!0,{sourceMap:!1})},1190:function(t,e,n){"use strict";var r=n(1062),o=n(103),c=(n(26),n(9),n(13),n(6),n(19),n(10),n(20),n(2)),l=(n(36),n(15),n(77),n(53),n(24),n(102),n(73),n(18));function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h={name:"LArticleListing",components:{LEmoji:n(100).a},props:{cardId:{type:String,required:!0},cardObj:{type:Object,default:function(){return{}}},tagObj:{type:Object,default:function(){return{}}},limit:{type:Number,default:20}},computed:m(m({},Object(l.c)({getCardById:"cards/getById",getTagByTypeForCard:"tags/getTagByTypeForCard"})),{},{card:function(){return this.cardObj&&this.cardObj.id?this.cardObj:this.getCardById[this.cardId]},shortDescription:function(){if(!this.card.description)return"";var t=this.card.description.indexOf("<p>"),e=this.card.description.indexOf("</p>")+4,n=this.stripHtml(this.card.description.slice(t,e));!n&&this.card.description&&(n=this.stripHtml(this.card.description));var r=this.getWords(n,this.limit);return r+(r.length<n.length?"...":"")},articleLink:function(){var t=this.card;if(!t)return"";var e=this.tagObj&&this.tagObj.id?this.tagObj:this.getTagByTypeForCard("article",t.id);return"/articles/".concat(e?e.slug:"-","/").concat(t.slug)},color:function(){return this.card&&this.card.game_theme&&this.card.game_theme.color?this.card.game_theme.color:"primary"}}),methods:{stripHtml:function(html){return"undefined"==typeof DOMParser?html:(new DOMParser).parseFromString(html,"text/html").body.textContent||""},getWords:function(t,e){return t.split(" ").slice(0,e).join(" ")},needsMargin:function(image){return image&&image.startsWith("https://images.unsplash.com/")}}},f=n(12),component=Object(f.a)(h,(function(){var t=this,e=t._self._c;return t.card?e("nuxt-link",{directives:[{def:o.a,name:"ripple",rawName:"v-ripple"}],staticClass:"no-underline d-flex align-center rounded-xl pa-3 shadow-outline",attrs:{to:t.articleLink}},[t.card.image?e("div",{staticClass:"mr-2",staticStyle:{width:"25%","max-width":"220px"}},[e(r.a,{class:"rounded-".concat(t.$vuetify.breakpoint.smAndDown?"lg":"xl"),style:t.needsMargin(t.card.image)?"margin:6%":"",attrs:{"max-width":"207",src:t.card.image}})],1):t._e(),t._v(" "),e("div",[e("div",{class:"".concat(t.color,"--text font-weight-bold")},[t._v(t._s(t.card.name))]),t._v(" "),e("div",{staticClass:"lblack--text",staticStyle:{"font-size":"80%"}},[t._v("\n      "+t._s(t.shortDescription)+"\n    ")])])]):t._e()}),[],!1,null,null,null);e.a=component.exports},1194:function(t,e,n){"use strict";var r=n(103),o=(n(26),n(9),n(15),n(13),n(19),n(10),n(20),n(1)),c=n(2),l=(n(33),n(27),n(35),n(56),n(6),n(24),n(5)),d=n.n(l),m=n(18),h=n(113),f=n(350),v=n(1044),y=n(37),_=(n(34),n(52),n(45),n(308),n(236),n(1083)),k=n.n(_),w=n(100);function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var O=n(547),j=n(548);d.a.extend(O),d.a.extend(j);var I={name:"LCardLink",components:{LEmoji:w.a},props:{cardId:{type:String,required:!0},view:{type:String,required:!0}},data:function(){return{}},computed:C(C({},Object(m.c)({getCardById:"cards/getById"})),{},{card:function(){return this.getCardById[this.cardId]},formattedTime:function(){if(!this.card.start_time)return null;var time=d()(this.card.start_time).format("h:mma");return this.card.end_time&&(time+=" - "+d()(this.card.end_time).format("h:mma")),time},formattedLocation:function(){if(!this.card.location)return"";var t=this.stripHtml(this.card.location);t.toLowerCase().endsWith(", usa")&&(t=t.substring(0,t.length-5));var e=t.indexOf(",");if(-1!==e){var n=t.substring(0,e);t="<strong>".concat(n,"</strong><br>").concat(t.substring(e+1,t.length))}return t},locationIsUrl:function(){return this.card.location&&k.a.isWebUri(this.card.location)},mapLink:function(){return this.card.location?this.locationIsUrl?this.card.location:"https://www.google.com/maps/search/".concat(this.card.location.replaceAll(" ","+"),"/"):""}}),methods:{stripHtml:function(html){return(new DOMParser).parseFromString(html,"text/html").body.textContent||""}}},S=(n(1233),n(12)),L=Object(S.a)(I,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"py-2 px-4"},[t.formattedTime?e("div",{staticClass:"d-flex align-center",class:{"pb-1":t.formattedLocation}},[e("LEmoji",{staticStyle:{"font-size":"20px"},attrs:{small:"",block:"",file:"watch"}}),t._v(" "),e("div",{staticClass:"card-tooltip-meta card-tooltip-meta-time ml-1 white--text",domProps:{textContent:t._s(t.formattedTime)}})],1):t._e(),t._v(" "),t.formattedLocation?e("div",{staticClass:"d-flex align-center",class:{ellipsis:t.locationIsUrl}},[e("LEmoji",{staticStyle:{"font-size":"20px"},attrs:{small:"",block:"",file:"v1644425763/assets/icon-map-pin"}}),t._v(" "),e("a",{staticClass:"card-tooltip-meta card-tooltip-meta-location no-underline ml-1 white--text",class:{ellipsis:t.locationIsUrl},attrs:{href:t.mapLink,target:"_blank"},domProps:{innerHTML:t._s(t.formattedLocation)}})],1):t._e()])}),[],!1,null,null,null).exports,D=n(1067),T=n(43),M=n(235),P=n(67);function B(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?B(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var A=n(547),F=n(548);d.a.extend(A),d.a.extend(F);var z={name:"LCardMenu",components:{LCardLinkMeta:L,LMenu:D.a,LAsset:T.a,LDivider:M.a,LLabel:P.a},props:{value:{type:Boolean,default:!1},cardId:{type:String,required:!0},view:{type:String,default:""},hover:{type:Boolean,default:!1},editable:{type:Boolean,default:!1}},data:function(){return{isTogglingMarkCompleted:!1,isDeleting:!1,optionsMenu:!1,isMarkingMaybe:!1}},computed:E(E({},Object(m.c)({getCardById:"cards/getById",filterMemberId:"members/filterMemberId",plannerView:"view/planner",getMemberById:"members/getById",members:"members/members",homeTags:"tags/homeTags",hasPlanPermission:"home/hasPlanPermission"})),{},{menu:function(){var t=[{content:"View",asset:"icon-eyes",func:this.handleEdit,hideDivider:!0},{content:"Rename",asset:"icon-edit-white",func:this.handleRename},{content:"Replace",asset:"icon-swap-white",func:this.handleReplace}];return this.isMaybeCard||t.push({content:"Maybe",asset:"icon-maybe-white",func:this.toggleMaybeTagToCard,loading:this.isMarkingMaybe}),this.hasPlanPermission("unlimited_events")&&t.push({content:"Archive",asset:"icon-poll-white",func:this.handleArchive}),t.push({content:"Delete",asset:"icon-delete-white",func:this.handleDelete,hideDivider:!0,deleteBtn:!0}),t},isEditing:{get:function(){return this.value},set:function(t){this.$emit("input",t)}},card:function(){return this.getCardById[this.cardId]},cardView:function(){return this.view?this.view:this.plannerView},dotsFile:function(){return"button"!==this.cardView||this.isMaybeCard?"https://res.cloudinary.com/lome/image/upload/v1643825056/assets/icon-three-dots.png":"https://res.cloudinary.com/lome/image/upload/v1644421771/assets/icon-three-dots-white.png"},isCardHidden:function(){return"button"!==this.cardView&&this.isHiddenByFilterMember},isHiddenByFilterMember:function(){return!!this.filterMemberId&&!(this.card.members||[]).includes(this.filterMemberId)},time:function(){if(!this.card.start_time)return null;var time=d()(this.card.start_time).format("h:mma");return time=time.replace("m",""),time},timeClasses:function(){var t="card-meta-time cursor-pointer";return t+="button"!==this.cardView?" card-meta-dark":" card-meta-light",t+=this.isCardHidden?" hidden-card":""},showMembers:function(){return"button"!==this.cardView&&!this.card.start_time&&this.cardMembers.length},memberRows:function(){var t=this.cardMembers.length;return 1===t?0:Math.ceil(t/2)},memberIds:{get:function(){var t=this;return this.card.members?this.card.members.filter((function(e){return t.getMemberById[e]})):[]},set:function(t){var e={id:this.cardId,fields:{members:t}};this.updateCard(e)}},cardMembers:function(){var t=this;return this.memberIds.map((function(e){return t.getMemberById[e]}))},maybeTag:function(){var t;return null===(t=this.homeTags)||void 0===t?void 0:t.find((function(t){return"Maybe"===t.name}))},isMaybeCard:function(){var t;return null===(t=this.maybeTag)||void 0===t?void 0:t.cards.includes(this.cardId)}}),methods:E(E({},Object(m.b)({updateCard:"cards/update",deleteCard:"cards/delete",createTag:"tags/create",updateTag:"tags/update"})),{},{handleArchive:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.optionsMenu=!1,n={id:t.cardId,fields:{hidden_on_planner:!0}},e.next=4,t.updateCard(n);case 4:case"end":return e.stop()}}),e)})))()},toggleMaybeTagToCard:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isMarkingMaybe=!0,n=t.isMaybeCard?t.maybeTag.cards.filter((function(e){return e!==t.cardId})):[].concat(Object(y.a)(t.maybeTag.cards),[t.cardId]),e.next=4,t.updateTag({id:t.maybeTag.id,fields:{cards:n}});case 4:t.isMarkingMaybe=!1;case 5:case"end":return e.stop()}}),e)})))()},toggleMarkCompleted:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isTogglingMarkCompleted=!0,t.optionsMenu=!1,n={id:t.cardId,fields:{completed_at:t.card.completed_at?null:new Date}},e.next=5,t.updateCard(n);case 5:t.isTogglingMarkCompleted=!1;case 6:case"end":return e.stop()}}),e)})))()},handleEdit:function(){this.$router.push("/a/".concat(this.cardId,"#edit"))},handleDelete:function(){this.isDeleting=!0,this.optionsMenu=!1,this.deleteCard({id:this.cardId,delete_type:"single"})},handleRename:function(){this.isEditing=!this.isEditing,this.optionsMenu=!1},handleReplace:function(){this.$parent.$emit("replace",{type:this.card.type,id:this.card.id}),this.optionsMenu=!1},typeField:function(t,e){return h.a[t]?h.a[t][e]:""},updateMemberIds:function(t){this.memberIds=t},clickIfNotEditable:function(){this.editable||this.$router.push("/a/".concat(this.cardId))}})},V=(n(1235),Object(S.a)(z,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"cursor-pointer",on:{click:t.clickIfNotEditable}},[e(v.a,{attrs:{"offset-y":"",disabled:!t.editable,"content-class":"rounded-lg pb-0","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(n){var r=n.on,o=n.attrs;return[e("div",t._g(t._b({directives:[{name:"show",rawName:"v-show",value:t.time&&(!t.hover||t.$vuetify.breakpoint.smAndDown),expression:"time && (!hover || $vuetify.breakpoint.smAndDown)"}],class:t.timeClasses,staticStyle:{"z-index":"3"}},"div",o,!1),r),[t._v("\n        "+t._s(t.time)+"\n      ")]),t._v(" "),e("div",t._g(t._b({directives:[{name:"show",rawName:"v-show",value:t.showMembers&&(!t.hover||t.$vuetify.breakpoint.smAndDown),expression:"showMembers && (!hover || $vuetify.breakpoint.smAndDown)"}],class:"card-link-members card-link-members-".concat(t.memberRows," ").concat(t.isCardHidden?"hidden-card":""),staticStyle:{"z-index":"3"}},"div",o,!1),r),t._l(t.cardMembers,(function(n){return e("img",{key:"e-".concat(t.card.id,"-m-").concat(n.id),staticClass:"card-link-member",attrs:{src:n.image}})})),0),t._v(" "),e("a",t._g(t._b({directives:[{name:"show",rawName:"v-show",value:t.hover&&t.$vuetify.breakpoint.mdAndUp||!t.time&&!t.showMembers&&t.$vuetify.breakpoint.smAndDown,expression:"\n          (hover && $vuetify.breakpoint.mdAndUp) ||\n          (!time && !showMembers && $vuetify.breakpoint.smAndDown)\n        "}],staticClass:"quick-actions-link",class:{"px-2":"button"===t.cardView||t.isMaybeCard,"hidden-card":t.isCardHidden},attrs:{href:"#"}},"a",o,!1),r),[e("LAsset",{attrs:{width:"28","file-url":t.dotsFile}})],1)]}}]),model:{value:t.optionsMenu,callback:function(e){t.optionsMenu=e},expression:"optionsMenu"}},[t._v(" "),t.editable?e("LMenu",{attrs:{items:t.menu,"show-members":"","selected-member-ids":t.memberIds},on:{members:t.updateMemberIds}},[e("div",[t.isMaybeCard?e("div",[e("div",{staticClass:"d-flex align-center pb-0 pa-4 mr-3"},[e("LAsset",{staticClass:"mr-3",attrs:{width:"28",file:"icon-maybe-white"}}),t._v(" "),e(f.a,{staticClass:"elevation-0 mr-3 rounded-xl primary--text",staticStyle:{height:"24px",width:"40%"},attrs:{color:"white",loading:t.isMarkingMaybe},on:{click:function(e){return e.preventDefault(),t.toggleMaybeTagToCard.apply(null,arguments)}}},[e("LLabel",[t._v(" Yes")])],1),t._v(" "),e(f.a,{staticClass:"elevation-0 rounded-xl",staticStyle:{height:"24px",width:"40%"},attrs:{color:"lred"},on:{click:function(e){return e.preventDefault(),t.handleDelete.apply(null,arguments)}}},[e("LLabel",{staticClass:"white--text"},[t._v(" No")])],1)],1)]):t._e(),t._v(" "),t.isMaybeCard?e("LDivider",{staticClass:"mt-2",attrs:{color:"white"}}):t._e(),t._v(" "),t.card.start_time||t.card.location?e("div",[e("LCardLinkMeta",{attrs:{"card-id":t.cardId,view:t.cardView}}),t._v(" "),e("LDivider",{attrs:{color:"white"}})],1):t._e()],1)]):t._e()],1)],1)}),[],!1,null,null,null)),$=V.exports,N=n(371),R=n(1170);function U(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?U(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var W={name:"LCardLink",components:{LCardMenu:$,LEmoji:w.a,LTextInput:N.a,LVotesCta:R.a},props:{cardId:{type:String,required:!0},date:{type:String,default:""},view:{type:String,default:""},editable:{type:Boolean,default:!0}},data:function(){return{isEditing:!1,cardName:"",hover:!1}},computed:Y(Y({},Object(m.c)({home:"home/home",getCardById:"cards/getById",getBoardById:"boards/getById",filterMemberId:"members/filterMemberId",plannerView:"view/planner",members:"members/members",homeTags:"tags/homeTags",isAdminForCardId:"permissions/isAdminForCardId"})),{},{card:function(){return this.getCardById[this.cardId]},cardView:function(){return this.view?this.view:this.plannerView},canEdit:function(){return this.card&&this.editable&&this.isAdminForCardId(this.cardId)},isListLike:function(){return"list"===this.cardView||"compressed"===this.cardView||this.isMaybeCard},inputTextColor:function(){return this.isListLike?"".concat(this.typeField(this.card.type,"color"),"--text"):"white--text"},showEmoji:function(){return this.isListLike&&"button"!==this.cardView},isHiddenByFilterMember:function(){return!!this.filterMemberId&&!(this.card.members||[]).includes(this.filterMemberId)},isPast:function(){return d()().startOf("day").isAfter(d()(this.date).startOf("day"))},maybeTag:function(){var t;return null===(t=this.homeTags)||void 0===t?void 0:t.find((function(t){return"Maybe"===t.name}))},isMaybeCard:function(){var t;return null===(t=this.maybeTag)||void 0===t?void 0:t.cards.includes(this.cardId)},color:function(){return this.typeField(this.card.type,"dynamicColor")&&this.card.game_theme?this.card.game_theme.color?this.card.game_theme.color:"primary":this.typeField(this.card.type,"color")},classes:function(){var t="card-link card-link-".concat(this.card.type," card-link-view-").concat(this.cardView);return this.isHiddenByFilterMember&&(t+=" hidden-card"),this.isListLike&&(t+=" ".concat(this.color,"--text")),this.isMaybeCard&&(t+=" card-maybe-border pl-3"),"button"!==this.cardView||this.isMaybeCard||(t+=" pl-3\n          white--text\n          ".concat(this.color)),!this.isPast&&this.card.completed_at&&(t+=" half-opacity"),t}}),watch:{isEditing:function(t){t&&(this.cardName=this.card.name)}},methods:Y(Y({},Object(m.b)({updateCard:"cards/update"})),{},{typeField:function(t,e){return h.a[t]?h.a[t][e]:""},isCommunity:function(t){var e=this.getBoardById[t];return e&&"community"===e.type},isCalendarAdmin:function(t){var e=this.getBoardById[t];return e&&"community"===e.type&&this.home&&e.home_id===this.home.id},updateCardName:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.isEditing=!1,t.cardName){e.next=4;break}return t.cardName=t.card.name,e.abrupt("return");case 4:return n={id:t.cardId,fields:{name:t.cardName}},e.next=7,t.updateCard(n);case 7:case"end":return e.stop()}}),e)})))()}})},H=(n(1237),Object(S.a)(W,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-link-container py-1",attrs:{"data-id":t.card.id},on:{mouseover:function(e){t.hover=!0},mouseleave:function(e){t.hover=!1}}},[e("nuxt-link",{directives:[{def:r.a,name:"ripple",rawName:"v-ripple"}],class:t.classes,attrs:{to:"/a/".concat(t.card.id),event:t.isEditing?"":"click"},on:{click:function(e){e.stopPropagation(),t.isNavigating=!0}}},[e("div",{staticClass:"d-flex justify-start"},[t.showEmoji?e("LEmoji",{staticClass:"card-link-icon",attrs:{padded:"",small:"",file:t.card.icon}}):t._e(),t._v(" "),t.isEditing?e("span",{staticClass:"edit-card-name"},[e("LTextInput",{attrs:{id:t.card.id,"update-value":t.updateCardName,autofocus:"","inherit-color":"","text-color-class":t.inputTextColor},on:{blur:function(e){t.isEditing=!t.isEditing}},model:{value:t.cardName,callback:function(e){t.cardName=e},expression:"cardName"}})],1):e("span",{staticClass:"drag-handle",staticStyle:{"text-overflow":"ellipsis",overflow:"hidden"}},[t._v(t._s(t.card.name))])],1)]),t._v(" "),e("LCardMenu",{attrs:{"card-id":t.cardId,view:t.cardView,hover:t.hover,editable:t.canEdit&&(!t.isCommunity(t.card.board_id)||t.isCalendarAdmin(t.card.board_id))},model:{value:t.isEditing,callback:function(e){t.isEditing=e},expression:"isEditing"}}),t._v(" "),t.isCalendarAdmin(t.card.board_id)||!t.card.vote_type&&"response"!==t.card.type?t._e():e("div",{staticClass:"position-absolute card-link-votes-cta"},[e("LVotesCta",{attrs:{"card-id":t.cardId}})],1)],1)}),[],!1,null,null,null));e.a=H.exports},1195:function(t,e,n){"use strict";var r=n(350),o=(n(27),n(24),n(26),n(9),n(15),n(19),n(20),n(37)),c=n(2),l=(n(203),n(45),n(6),n(63),n(10),n(112),n(56),n(102),n(13),n(53),n(35),n(18)),d=n(43);function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f=["frequency","weekdays","dates","weeks","months"],v={name:"LCardFrequency",components:{LAsset:d.a},props:{cardId:{type:String,required:!0},color:{type:String,default:"white"},defaults:{type:Object,default:function(){return{}}}},data:function(){return{weeksOfMonth:[{id:1,name:"1st"},{id:2,name:"2nd"},{id:3,name:"3rd"},{id:4,name:"4th"}],monthsOfYear:[{id:1,name:"Jan",full:"January"},{id:2,name:"Feb",full:"February"},{id:3,name:"Mar",full:"March"},{id:4,name:"Apr",full:"April"},{id:5,name:"May",full:"May"},{id:6,name:"Jun",full:"June"},{id:7,name:"Jul",full:"July"},{id:8,name:"Aug",full:"August"},{id:9,name:"Sep",full:"September"},{id:10,name:"Oct",full:"October"},{id:11,name:"Nov",full:"November"},{id:12,name:"Dec",full:"December"}],weekdays:[],weeks:[],months:[],dates:[],frequencies:["weekly","monthly","yearly","date"],frequency:"weekly",isEditing:!1}},computed:h(h({},Object(l.c)({getCardById:"cards/getById",members:"members/members",home:"home/home",getRepeatById:"repeats/getById"})),{},{id:function(){return this.cardId},card:function(){return this.getCardById[this.id]},repeat:function(){return this.getRepeatById[this.card.repeat_id]},repeatTrigger:function(){return JSON.stringify(this.repeat)},daysOfWeek:function(){for(var t,e=this.home.week_start||1,n=["S","M","T","W","T","F","S"],r=[],i=0;i<7;i++)t=(t=i+e)>=7?t-7:t,r.push({id:t,name:n[t]});return r},datesOfMonth:function(){return Object(o.a)(Array(31).keys()).map((function(i){return i+1}))},frequencyString:function(){var t=this,e=[];if("date"===this.frequency)return this.months.forEach((function(n){Object(o.a)(t.dates).sort((function(a,b){return a-b})).forEach((function(r,i){e.push("".concat(0===i?t.monthsOfYear.find((function(t){return t.id===n})).full+" ":"").concat(r))}))})),"Yearly on ".concat(e.join(", "));if("yearly"===this.frequency){var n=[];this.months.forEach((function(e,i){n.push(t.monthsOfYear.find((function(t){return t.id===e})).full)})),e.push(this.oxfordStr(n)),e.push("on")}if("yearly"===this.frequency||"monthly"===this.frequency){var r=[];this.weeks.forEach((function(e,i){r.push("".concat(0===i?"the ":"").concat(t.weeksOfMonth.find((function(t){return t.id===e})).name))})),e.push(this.oxfordStr(r))}var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=[];if(this.weekdays.forEach((function(t){return l.push(c[t])})),"weekly"===this.frequency){if(l.length===c.length-1)return"Daily except ".concat(c.filter((function(t){return!l.includes(t)}))[0]);if(l.length===c.length)return"Daily"}return e.push(this.oxfordStr(l)),"".concat(this.capitalize(this.frequency)," ").concat("yearly"===this.frequency?"in":"on"," ").concat(e.join(" "))}}),watch:{repeatTrigger:function(t,e){!e&&t&&this.setupMenu()},isEditing:function(t){t||this.save()}},mounted:function(){this.setupMenu()},methods:{capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},oxfordStr:function(t){var e=t.pop();return t.length?"".concat(t.join(", ")," & ").concat(e):e},setupMenu:function(){var t=this;this.repeat?f.forEach((function(e){t[e]=t.repeat[e]})):(f.forEach((function(e){t.defaults[e]&&(t[e]=t.defaults[e])})),this.isEditing=!0)},isActive:function(t,e){return this[t].includes(e)},toggle:function(t,e){this.isActive(t,e)?this[t]=this[t].filter((function(i){return i!==e})):(this[t].push(e),this[t]=Object(o.a)(this[t]).sort((function(a,b){return a-b})))},toggleAndSave:function(t,e){this.toggle(t,e)},toggleAll:function(t,e){var n=this,r=this[e].map((function(t){return t.id})),o=!0;r.forEach((function(e){n.isActive(t,e)||(o=!1,n.toggle(t,e))})),o&&(this[t]=[])},prevFrequency:function(){this.moveFrequency(-1)},nextFrequency:function(){this.moveFrequency(1)},moveFrequency:function(t){var i=this.frequencies.indexOf(this.frequency);(i+=t)>=this.frequencies.length&&(i=0),i<0&&(i=this.frequencies.length-1),this.frequency=this.frequencies[i]},save:function(){var t=this,e={};f.forEach((function(n){e[n]=t[n]})),this.card.repeat_id||(e.sync_start_date=this.card.date,e.sync_limit=7),this.$emit("updated",e)}}},y=(n(1260),n(12)),component=Object(y.a)(v,(function(){var t=this,e=t._self._c;return e("div",[t.isEditing?[e("div",{staticClass:"d-flex align-center justify-center"},[e(r.a,{attrs:{icon:"","x-small":""},on:{click:function(e){return e.preventDefault(),t.prevFrequency.apply(null,arguments)}}},[e("img",{attrs:{src:"https://res.cloudinary.com/lome/image/upload/c_scale,w_14/assets/arrow-left.png"}})]),t._v(" "),e("div",{staticClass:"text-center mx-2",staticStyle:{"font-size":"16px"}},[t._v("\n        "+t._s(t.frequency.toUpperCase())+"\n      ")]),t._v(" "),e(r.a,{attrs:{icon:"","x-small":""},on:{click:function(e){return e.preventDefault(),t.nextFrequency.apply(null,arguments)}}},[e("img",{attrs:{src:"https://res.cloudinary.com/lome/image/upload/c_scale,w_14/assets/arrow-right.png"}})])],1),t._v(" "),e("div",{staticClass:"d-flex align-center justify-center"},[e("div",[["yearly","date"].includes(t.frequency)?e("div",{staticClass:"px-2 mx-auto",staticStyle:{"max-width":"312px"}},[e("a",{class:"".concat(t.color,"--text"),attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleAll("months","monthsOfYear")}}},[e("small",[t._v("Month:")])]),e("br"),t._v(" "),t._l(t.monthsOfYear,(function(n){return e(r.a,{key:"chore-".concat(t.card.id,"-month-").concat(n.id),class:"elevation-0 sm-outline rounded-xl ".concat("white"===t.color?"primary--text":"","  mr-1"),attrs:{"x-small":"",color:t.color,outlined:!t.isActive("months",n.id)},on:{click:function(e){return e.preventDefault(),t.toggleAndSave("months",n.id)}}},[t._v(t._s(n.name))])}))],2):t._e(),t._v(" "),["monthly","yearly"].includes(t.frequency)?e("div",{staticClass:"px-2"},[e("a",{class:"".concat(t.color,"--text"),attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleAll("weeks","weeksOfMonth")}}},[e("small",[t._v("Week:")])]),t._v(" "),t._l(t.weeksOfMonth,(function(n){return e(r.a,{key:"chore-".concat(t.card.id,"-week-").concat(n.id),class:"elevation-0 sm-outline rounded-xl ".concat("white"===t.color?"primary--text":"","  mr-1"),attrs:{"x-small":"",color:t.color,outlined:!t.isActive("weeks",n.id)},on:{click:function(e){return e.preventDefault(),t.toggleAndSave("weeks",n.id)}}},[t._v(t._s(n.name))])}))],2):t._e(),t._v(" "),["monthly","weekly","yearly"].includes(t.frequency)?e("div",{staticClass:"px-2"},[e("a",{class:"".concat(t.color,"--text"),attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleAll("weekdays","daysOfWeek")}}},[e("small",[t._v("Day:")])]),t._v(" "),t._l(t.daysOfWeek,(function(n){return e(r.a,{key:"chore-".concat(t.card.id,"-day-").concat(n.id),class:"btn-circle-sm sm-outline elevation-0 ".concat("white"===t.color?"primary--text":"","  mx-1"),attrs:{"x-small":"",color:t.color,width:"24",height:"25",outlined:!t.isActive("weekdays",n.id)},on:{click:function(e){return e.preventDefault(),t.toggleAndSave("weekdays",n.id)}}},[t._v(t._s(n.name))])}))],2):t._e(),t._v(" "),["date"].includes(t.frequency)?e("div",{staticClass:"px-2 mx-auto",staticStyle:{"max-width":"250px"}},t._l(t.datesOfMonth,(function(n){return e(r.a,{key:"chore-".concat(t.card.id,"-date-").concat(n),class:"btn-circle-sm sm-outline elevation-0 ".concat("white"===t.color?"primary--text":"","  mx-1"),attrs:{"x-small":"",color:t.color,width:"24",height:"25",outlined:!t.isActive("dates",n)},on:{click:function(e){return e.preventDefault(),t.toggleAndSave("dates",n)}}},[t._v(t._s(n))])})),1):t._e()])]),t._v(" "),e("div",{staticClass:"pt-4 text-center"},[e(r.a,{staticClass:"elevation-0 rounded-xl",attrs:{color:t.color,small:""},on:{click:function(e){e.preventDefault(),t.isEditing=!1}}},[e("LAsset",{attrs:{file:"icon-check".concat("white"===t.color?"":"-white"),width:"16"}}),e("span",{class:{"primary--text":"white"===t.color}},[t._v("\n          Save")])],1)],1)]:e("div",{staticStyle:{"font-size":"1rem"}},[e("a",{class:{"white--text":"white"===t.color,"reverse-underline":!0},attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.isEditing=!0}}},[t._v(t._s(t.frequencyString))])])],2)}),[],!1,null,null,null);e.a=component.exports},1201:function(t,e,n){var content=n(1261);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("687fc2de",content,!0,{sourceMap:!1})},1202:function(t,e,n){var content=n(1263);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("044f7337",content,!0,{sourceMap:!1})},1203:function(t,e,n){var content=n(1265);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("135a1e33",content,!0,{sourceMap:!1})},1204:function(t,e,n){var content=n(1267);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("76278c20",content,!0,{sourceMap:!1})},1205:function(t,e,n){var content=n(1269);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("2cfff044",content,!0,{sourceMap:!1})},1206:function(t,e,n){var content=n(1271);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("05e4a9de",content,!0,{sourceMap:!1})},1207:function(t,e,n){var content=n(1273);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("c118ab02",content,!0,{sourceMap:!1})},1208:function(t,e,n){var content=n(1275);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("1ae76e42",content,!0,{sourceMap:!1})},1212:function(t,e,n){"use strict";n(1181)},1213:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".org-logo-img{filter:grayscale()}",""]),r.locals={},t.exports=r},1218:function(t,e,n){var content=n(1295);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("574ecd42",content,!0,{sourceMap:!1})},1219:function(t,e,n){var content=n(1297);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("035d21ea",content,!0,{sourceMap:!1})},1220:function(t,e,n){var content=n(1300);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("52b53d80",content,!0,{sourceMap:!1})},1221:function(t,e,n){"use strict";var r=n(350),o=n(1054),c=n(1062),l=n(1053),d=n(1059),m=(n(26),n(239),n(56),n(6),n(24),n(1190)),h=n(43),f=n(100),v=n(1107),y=n(379),_={name:"LSeoContent",components:{LArticleListing:m.a,LAsset:h.a,LEmoji:f.a,LFeatureCard:v.a,LSectionTitle:y.a},props:{content:{type:String,default:""},name:{type:String,default:""},type:{type:String,default:"theme"},link:{type:String,default:"/create"},narrow:{type:Boolean,default:!1},smallTitle:{type:Boolean,default:!1},tags:{type:Array,default:function(){return[]}},articleTag:{type:Object,default:function(){return{}}},articleCards:{type:Array,default:function(){return[]}},themeTag:{type:Object,default:function(){return{}}},themeCards:{type:Array,default:function(){return[]}}},data:function(){return{testimonials:[{text:"“We held a weekend event with 75 ladies and offered 18 different\n              activities throughout the event, most with multiple time slots.\n              Lome\n              <strong>kept us organized</strong> and flowing smoothly the entire\n              weekend! The platform was <strong>easy to use</strong>, efficient,\n              and definitely enabled the success of our event! The\n              <strong>customer service</strong> was also first-rate. We will\n              definitely continue using Lome for future events!”",person:"Jennifer",role:"Fundraiser Organizer"},{text:"“I use Lome for Girl Scouts and as a Classroom Mom and\n            <strong>it is WAY easier</strong> than any other system I’ve tried!”",person:"Amy",role:"Mom of 2"},{text:"“Our volunteers really like <strong>the ease Lome provides in signing up</strong> for our events.”",person:"Lou",role:"Theater Group Sales & Front of House Manager"},{text:"“Over the moon I found Lome - <strong>Levels above Sign-Up Genius!!</strong>”",person:"Diane",role:"Non-profit Event Organizer"},{text:"“<strong>I love Lome!!</strong> You guys rock.”",person:"Joan",role:"Retreat Planner"},{text:"“This is an <strong>AWESOME</strong> app!”",person:"Becky",role:"Church Volunteer Organizer"}]}},computed:{testimonial:function(){var path=this.$route.path,t=path.charCodeAt(path.length-1)-97,e=(t=t>0?t:0)%this.testimonials.length;return this.testimonials[e]},tagType:function(){return this.tags&&"theme"===this.tags[0].type?"theme":this.tags&&"board"===this.tags[0].type?"board":"article"}},methods:{tagLink:function(t){return"article"===this.tagType?"/articles/".concat(t.slug):"board"===this.tagType?"/planners/".concat(t.slug):"/sign-ups/".concat(t.slug)},tagIcon:function(t){return t&&t.content&&t.content.icon?t.content.icon:"paint"},goToTag:function(t){this.$router.push(this.tagLink(t))},themeLink:function(t){var e=this.themeCards.find((function(e){return e.id===t}));return e?"/sign-ups/".concat(this.themeTag?this.themeTag.slug:"-","/").concat(e.slug):""},goToTheme:function(t){var link=this.themeLink(t);link&&this.$router.push(link)}}},k=(n(1212),n(12)),component=Object(k.a)(_,(function(){var t=this,e=t._self._c;return e("div",["why"===t.content?e("div",["board"===t.type?["board"===t.type?e("h2",{staticClass:"font-weight-bold"},[t._v("\n        Why use Lome for "+t._s(t.name||"your family")+"?\n      ")]):t._e(),t._v(" "),t._m(0)]:[e("h2",{staticClass:"font-weight-bold"},[t._v("Why use Lome for "+t._s(t.name)+" sign ups?")]),t._v(" "),t._m(1)],t._v(" "),e(l.a,{staticClass:"my-8",attrs:{align:"stretch"}},[e(o.a,{attrs:{cols:"12",sm:"4"}},[e("div",{staticClass:"secondary rounded-xl pa-8"},[e("div",{staticClass:"d-flex flex-column align-center text-center"},[e("LAsset",{attrs:{alt:"Icon depicting a checkmark",file:"icon-check",width:"32"}}),t._v(" "),e("p",{staticClass:"my-4 font-weight-bold"},[t._v("Saves you time")]),t._v(" "),e("p",[t._v("Tons of free templates")]),t._v(" "),e("p",[t._v("Create in minutes")]),t._v(" "),e("p",[t._v("AI that writes for you")]),t._v(" "),e("p",[t._v("Text messaging")])],1)])]),t._v(" "),e(o.a,{attrs:{cols:"12",sm:"4"}},[e("div",{staticClass:"secondary rounded-xl pa-8"},[e("div",{staticClass:"d-flex flex-column align-center text-center"},[e("LAsset",{attrs:{alt:"Icon depicting a checkmark",file:"icon-check",width:"32"}}),t._v(" "),e("p",{staticClass:"my-4 font-weight-bold"},[t._v("Removes Frustration")]),t._v(" "),e("p",[t._v("No ads or spam")]),t._v(" "),e("p",[t._v("Helpful notifications")]),t._v(" "),e("p",[t._v("Transparent pricing")]),t._v(" "),e("p",[t._v("Best price")])],1)])]),t._v(" "),e(o.a,{attrs:{cols:"12",sm:"4"}},[e("div",{staticClass:"secondary rounded-xl pa-8"},[e("div",{staticClass:"d-flex flex-column align-center text-center"},[e("LAsset",{attrs:{alt:"Icon depicting a checkmark",file:"icon-check",width:"32"}}),t._v(" "),e("p",{staticClass:"my-4 font-weight-bold"},[t._v("Makes you look good")]),t._v(" "),e("p",[t._v("Delightful design")]),t._v(" "),e("p",[t._v("Themes and templates")]),t._v(" "),e("p",[t._v("Thousands of images")]),t._v(" "),e("p",[t._v("Custom image editor")])],1)])])],1)],2):t._e(),t._v(" "),"tags"===t.content?e("div",[e("h2",{staticClass:"font-weight-bold mb-4"},[t._v("\n      Explore more\n      "+t._s("theme"===t.tagType?"sign up themes":"board"===t.tagType?"planners":"tips & tricks")+"\n      on Lome\n    ")]),t._v(" "),e("div",{staticClass:"d-flex flex-wrap"},t._l(t.tags,(function(n){return e(r.a,{key:n.id,staticClass:"mr-0 mr-sm-4 mb-4 rounded-xl",attrs:{outlined:"",color:"grey","x-large":t.$vuetify.breakpoint.xsOnly,block:t.$vuetify.breakpoint.xsOnly,to:t.tagLink(n)}},[e("LEmoji",{attrs:{file:t.tagIcon(n)}}),t._v(" "),e("span",{staticClass:"pl-1 primary--text"},[t._v(t._s(n.name)+"\n          "+t._s("board"===t.type?"":"article"===n.type?"Tips":"Sign Ups"))])],1)})),1)]):t._e(),t._v(" "),"articles"===t.content&&t.articleCards.length&&t.articleTag&&t.articleTag.name?e("div",[e("h2",{staticClass:"font-weight-bold mb-4"},[t._v("\n      Recent "+t._s(t.articleTag.name)+" Articles on Lome\n    ")]),t._v(" "),t._l(t.articleCards,(function(n){return e("div",{key:"article-listing-".concat(n.id),staticClass:"my-4"},[e("LArticleListing",{attrs:{"card-id":n.id,"card-obj":n,"tag-obj":t.articleTag}})],1)}))],2):t._e(),t._v(" "),"themes"===t.content&&t.themeCards.length&&t.themeTag&&t.themeTag.name?e("div",[e("h2",{staticClass:"font-weight-bold mb-4",style:"".concat(t.smallTitle?"font-size:1.2rem":"")},[t._v("\n      Here are some "+t._s(t.themeTag.name)+" sign up sheet ideas:\n    ")]),t._v(" "),e(l.a,{attrs:{align:"stretch"}},t._l(t.themeCards,(function(n){return e(o.a,{key:"theme-card-".concat(n.id),attrs:{cols:"12",md:"6"}},[e("nuxt-link",{staticClass:"full-height no-underline",attrs:{to:t.themeLink(n.id)}},[e("LFeatureCard",{staticClass:"full-height",attrs:{"card-id":n.id,"card-obj":n,tag:t.themeTag.name},on:{"clicked-type":function(e){return t.goToTag(t.themeTag)},clicked:function(e){return t.goToTheme(n.id)}}})],1)],1)})),1)],1):t._e(),t._v(" "),"who"===t.content?e("div",["board"===t.type?e("h2",{staticClass:"font-weight-bold"},[t._v("Who uses Lome?")]):e("h2",{staticClass:"font-weight-bold"},[t._v("\n      Who uses Lome to create sign up sheets?\n    ")]),t._v(" "),e("div",[t._v("Thousands of families and people from organizations like these:")]),t._v(" "),e(l.a,{staticClass:"align-center justify-space-between pt-10"},[e(o.a,{attrs:{cols:"4"}},[e("a",{staticClass:"no-underline",attrs:{target:"_blank",href:"https://www.disney.com"}},[e(c.a,{staticClass:"org-logo-img",attrs:{src:"https://uploads-ssl.webflow.com/601b40722ad853f201fdcac0/64c95b01a2bbf27c025afef0_Disney_wordmark.svg",alt:"Disney logo"}})],1)]),t._v(" "),e(o.a,{attrs:{cols:"4"}},[e("a",{staticClass:"no-underline org-logo-link d-flex justify-center",attrs:{target:"_blank",href:"https://www.apple.com"}},[e(c.a,{staticClass:"org-logo-img",attrs:{src:"https://uploads-ssl.webflow.com/601b40722ad853f201fdcac0/64c95b0990ea4d29c3c26fc0_Apple_logo_black.svg",alt:"Apple logo","max-width":t.$vuetify.breakpoint.xsOnly?35:60}})],1)]),t._v(" "),e(o.a,{attrs:{cols:"4"}},[e("a",{staticClass:"no-underline",attrs:{target:"_blank",href:"https://www.harvard.edu"}},[e(c.a,{staticClass:"org-logo-img",attrs:{src:"https://uploads-ssl.webflow.com/601b40722ad853f201fdcac0/64b452a8b9a22c55562b9baf_Harvard_University_logo.svg",alt:"Harvard University Logo"}})],1)]),t._v(" "),e(o.a,{attrs:{cols:"4"}},[e("a",{staticClass:"no-underline",attrs:{target:"_blank",href:"https://www.wish.org"}},[e(c.a,{staticClass:"org-logo-img",attrs:{src:"https://uploads-ssl.webflow.com/601b40722ad853f201fdcac0/64b452a8b9a22c55562b9bac_make-a-wish-vector-logo.svg",alt:"Make A Wish Foundation logo"}})],1)]),t._v(" "),e(o.a,{attrs:{cols:"4"}},[e("a",{staticClass:"no-underline org-logo-link d-flex justify-center",attrs:{target:"_blank",href:"https://www.salvationarmyusa.org/usn/"}},[e(c.a,{staticClass:"org-logo-img",attrs:{src:"https://res.cloudinary.com/lome/image/upload/v1695751812/assets/the-salvation-army.svg",alt:"Salvation Army logo","max-width":t.$vuetify.breakpoint.xsOnly?35:60}})],1)]),t._v(" "),e(o.a,{attrs:{cols:"4"}},[e("a",{staticClass:"no-underline",attrs:{target:"_blank",href:"https://www.younglife.org/"}},[e(c.a,{staticClass:"org-logo-img",attrs:{src:"https://uploads-ssl.webflow.com/601b40722ad853f201fdcac0/64b452a8b9a22c55562b9bad_young-life-5.svg",alt:"Young Life logo"}})],1)])],1)],1):t._e(),t._v(" "),"what"===t.content?e("div",[e("LSectionTitle",[e("div",{staticClass:"d-flex align-center"},[e("div",{staticStyle:{"line-height":"1"}},[e("span",{staticStyle:{display:"block"}},[t._v(" What’s Lome? ")])]),t._v(" "),e(d.a),t._v(" "),e("div",[e(r.a,{staticClass:"primary--text rounded-xl elevation-0",attrs:{color:"white",href:"https://withlome.com?utm_source=lome&utm_campaign=seo",target:"_blank"}},[t._v("Learn More")])],1)],1)]),t._v(" "),"board"===t.type?e("p",[t._v("\n      Lome lets you quickly create beautiful, easy planners for your family.\n      Pick a template, add your family's events, and share it in the time it\n      takes you to make a cup of coffee.\n    ")]):e("p",[t._v("\n      Lome lets you quickly create beautiful, easy sign up sheets and\n      invitations for your events. Pick a design, add your sign up items, and\n      share it in the time it takes you to make a cup of coffee.\n    ")]),t._v(" "),e("div",[e(c.a,{staticClass:"mx-auto",attrs:{"max-width":"400",src:"https://uploads-ssl.webflow.com/601b40722ad853f201fdcac0/6362fe80cab6cf44c0b331f6_Group%202603.png",sizes:"(max-width: 767px) 96vw, (max-width: 991px) 728px, 800px",srcset:"\n          https://uploads-ssl.webflow.com/601b40722ad853f201fdcac0/6362fe80cab6cf44c0b331f6_Group%202603-p-500.png 500w,\n          https://uploads-ssl.webflow.com/601b40722ad853f201fdcac0/6362fe80cab6cf44c0b331f6_Group%202603-p-800.png 800w,\n          https://uploads-ssl.webflow.com/601b40722ad853f201fdcac0/6362fe80cab6cf44c0b331f6_Group%202603.png       813w\n        ",alt:"Mother and daughter walking toward a loving home as shooting stars fly overhead."}}),t._v(" "),e("div",{staticClass:"mx-auto",staticStyle:{"max-width":"200px"}},[e(c.a,{attrs:{src:"https://uploads-ssl.webflow.com/601b40722ad853f201fdcac0/6362fe7f62844c82615c01ce_Group%202597.png",alt:"Lome Logo"}})],1),t._v(" "),e("div",{staticClass:"primary--text text-center",staticStyle:{"font-size":"28px"}},[t._v("\n        Loving Home\n      ")])],1)],1):t._e(),t._v(" "),"testimonial"===t.content?e(l.a,{staticClass:"align-center"},[e(o.a,{attrs:{cols:"12",sm:t.narrow?12:6}},[e("nuxt-link",{attrs:{to:t.link}},[e(c.a,{attrs:{src:"https://res.cloudinary.com/lome/image/upload/v1687883726/assets/lome-sign-ups-planner.png",alt:"Person planning using Lome Sign Up sheets"}})],1)],1),t._v(" "),e(o.a,{attrs:{cols:"12",sm:t.narrow?12:6}},[e("div",{staticClass:"secondary rounded-xl pa-6"},[e("p",{domProps:{innerHTML:t._s(t.testimonial.text)}}),t._v(" "),e("p",{staticClass:"text-right mb-0",staticStyle:{"line-height":"1.1"}},[e("strong",[t._v(t._s(t.testimonial.person))]),e("br"),t._v(" "),e("small",[t._v(t._s(t.testimonial.role))])])])])],1):t._e(),t._v(" "),"ad-free"===t.content?e("section",[e(l.a,{staticClass:"align-center secondary rounded-xl"},[e(o.a,{attrs:{cols:"12",sm:"6"}},[e("img",{staticClass:"d-block",staticStyle:{"max-width":"100%"},attrs:{src:"https://cdn.prod.website-files.com/601b40722ad853f201fdcac0/66daa1a057e13bbe06991e22_NoAds.png",loading:"lazy",sizes:"100vw",alt:"two women who are Lome users who look very at peace because they don't have to deal with frustrating ads and spam that other platforms put on sign up forms. ",srcset:"https://cdn.prod.website-files.com/601b40722ad853f201fdcac0/66daa1a057e13bbe06991e22_NoAds-p-500.png 500w, https://cdn.prod.website-files.com/601b40722ad853f201fdcac0/66daa1a057e13bbe06991e22_NoAds-p-800.png 800w, https://cdn.prod.website-files.com/601b40722ad853f201fdcac0/66daa1a057e13bbe06991e22_NoAds-p-1080.png 1080w, https://cdn.prod.website-files.com/601b40722ad853f201fdcac0/66daa1a057e13bbe06991e22_NoAds.png 1172w"}})]),t._v(" "),e(o.a,{attrs:{cols:"12",sm:"6"}},[e("h3",[t._v("No Ads. Ever.")]),t._v(" "),e("div",{staticClass:"pb-4 pb-sm-0"},[e("strong",[t._v("Support Lome")]),t._v(" by upgrading to a Premium Account and\n          help us make the internet a bit less cluttered."),e("br"),t._v("‍"),e("br"),t._v("Our\n          competitors deal in showing you ads, sending you spam, and selling\n          your data. Respecting your privacy means not resorting to the same\n          old tactics.\n        ")])])],1)],1):t._e()],1)}),[function(){var t=this,e=t._self._c;return e("p",[t._v("\n        Lome replaces\n        "),e("a",{staticClass:"lblack--text no-underline",attrs:{href:"https://www.cozi.com",target:"_blank"}},[t._v("Cozi")]),t._v(",\n        "),e("a",{staticClass:"lblack--text no-underline",attrs:{href:"https://www.signupgenius.com",target:"_blank"}},[t._v("Sign Up Genius")]),t._v(",\n        "),e("a",{staticClass:"lblack--text no-underline",attrs:{href:"https://www.trello.com",target:"_blank"}},[t._v("\n          Trello")]),t._v(",\n        "),e("a",{staticClass:"lblack--text no-underline",attrs:{href:"https://calendar.google.com",target:"_blank"}},[t._v("Google Calendar")]),t._v(", and more!\n      ")])},function(){var t=this,e=t._self._c;return e("p",[t._v("\n        Lome replaces\n        "),e("a",{staticClass:"lblack--text no-underline",attrs:{href:"https://www.evite.com",target:"_blank"}},[t._v("Evite")]),t._v(",\n        "),e("a",{staticClass:"lblack--text no-underline",attrs:{href:"https://www.signupgenius.com",target:"_blank"}},[t._v("Sign Up Genius")]),t._v(",\n        "),e("a",{staticClass:"lblack--text no-underline",attrs:{href:"https://www.mealtrain.com",target:"_blank"}},[t._v("Meal Train")]),t._v(",\n        "),e("a",{staticClass:"lblack--text no-underline",attrs:{href:"https://sheets.google.com",target:"_blank"}},[t._v("Google Sheets")]),t._v(", and more!\n      ")])}],!1,null,null,null);e.a=component.exports},1224:function(t,e,n){"use strict";n(24),n(9),n(15),n(19),n(10),n(20);var r=n(37),o=n(2),c=(n(56),n(6),n(26),n(86),n(34),n(52),n(27),n(35),n(112),n(13),n(291),n(57),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(63),n(166),n(167),n(45),n(5)),l=n.n(c),d=n(18),m=n(119),h=n(67),f=n(100);function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){Object(o.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var _={name:"LStackCountdown",components:{LLabel:h.a,LEmoji:f.a},props:{stackId:{type:String},stackData:{type:Object},small:{type:Boolean,default:!1}},data:function(){return{}},computed:y(y({},Object(d.c)({getStackById:"stacks/getById",getCardById:"cards/getById",editableStackId:"stacks/editableStackId",homeCards:"cards/homeCards"})),{},{allCards:function(){return this.homeCards},stack:function(){return this.stackId?this.getStackById[this.stackId]:this.stackData?this.stackData:null},card:function(){return this.stack&&this.stack.card_id?this.getCardById[this.stack.card_id]:null},color:function(){return this.stack.content&&this.stack.content.color?this.stack.content.color:"primary"},textColor:function(){var t=this,e=m.a.find((function(e){return e.name===t.color}));return e&&"white"!==e.opposite?e.opposite:"secondary"},isAutoCards:function(){return this.stack&&this.stack.content&&this.stack.content.auto&&"cards"===this.stack.content.auto},theDate:function(){return this.card&&this.card.date&&!this.isAutoCards?l()(this.card.date):this.stack&&this.stack.content&&this.stack.content.date?l()(this.stack.content.date):null},daysLeft:function(){if(!this.theDate)return 0;var t=Math.ceil(this.theDate.diff(l()(),"day",!0));return t<0?0:t},dayText:function(){return(1===this.daysLeft?"Day":"Days")+(this.isToday?"!":"")},isEditable:function(){return this.editableStackId===this.stackId},fontSize:function(){var t=this.daysLeft/100>1?3:2,e=this.sizeField(this.stack,"width");return this.$vuetify.breakpoint.smOnly&&(e=2),this.$vuetify.breakpoint.xsOnly&&(e=3),this.$vuetify.breakpoint.xlOnly&&(e=.5*this.sizeField(this.stack,"width")),this.$vuetify.breakpoint.width/(6/e)/t},iconSize:function(){return this.fontSize},iconPos:function(){return-1*this.iconSize*.3+"px"},isToday:function(){return!!this.theDate&&l()().format("YYYY-MM-DD")===this.theDate.format("YYYY-MM-DD")},emoji1:function(){return this.stack&&this.stack.content&&this.stack.content.emoji1?this.stack.content.emoji1:this.emojis[0]},emoji2:function(){return this.stack&&this.stack.content&&this.stack.content.emoji2?this.stack.content.emoji2:this.emojis[1]},emojis:function(){var t=this.stack.name.toLowerCase().replace(/[^a-z0-9]+/g," ").trim();return t.includes("bday")||t.includes("birthday")?["birthday-celebration","cake"]:t.includes("christmas")||t.includes("xmas")||this.theDateIs("12-24")||this.theDateIs("12-25")?["christmas-tree","santa"]:t.includes("easter")?["easter-rabbit","basket-of-eggs"]:t.includes("st patrick")||this.theDateIs("03-17")?["clover","rainbow"]:t.includes("trip")||t.includes("travel")||t.includes("vacation")?["plane","suitcase"]:t.includes("summer")?["cool-shades","water"]:t.includes("spring")?["sun-cloud","sprout"]:t.includes("fall")||t.includes("autumn")?["maple-leaf","fall-leaves"]:t.includes("winter")||t.includes("snow")?["snowflake","snowman"]:this.theDateIs("07-04")?["fireworks","sparkle"]:this.theDateIs("01-01")||this.theDateIs("12-31")?["fireworks","confetti-ball"]:this.theDateIs("02-14")?["love-eyes","candy-hearts"]:["party-popper","birthday-celebration"]}}),mounted:function(){this.isAutoCards&&this.setCardDate()},methods:y(y({},Object(d.b)({updateStack:"stacks/update"})),{},{setCardDate:function(){var t=Object(r.a)(new Set(this.allCards.filter((function(t){return"event"===t.type})).map((function(t){return t.dates?t.dates:[l()(t.date).format("YYYY-MM-DD")]})).flat())).filter((function(t){return!l()(t).isBefore(l()().format("YYYY-MM-DD"))})).sort((function(a,b){return l()(a).unix()<l()(b).unix()?-1:1})),e="",n="Countdown";if(t.length&&(e=t[0])){var o=this.allCards.find((function(t){return t.date===e||t.dates&&t.dates.length&&t.dates.includes(e)}));n=o&&o.name?o.name:"Countdown";var content=this.stack.content?y({},this.stack.content):{};content.date=e;var c={name:n,card_id:o.id,content:content},d={id:this.stackId,fields:c};if(this.stack.card_id===c.card_id&&this.stack.name===c.name&&JSON.stringify(c.content)===JSON.stringify(this.stack.content))return;this.updateStack(d)}},theDateIs:function(t){return this.theDate&&this.theDate.format("MM-DD")===t},sizeField:function(t,e){return this.$vuetify.breakpoint.xlOnly&&null!==t["xl"+e]?t["xl"+e]:t[e]},clicked:function(){this.card&&this.$router.push("/a/".concat(this.card.id))}})},k=(n(1294),n(12)),component=Object(k.a)(_,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"l-stack-countdown pt-3 px-3 pb-5 cursor-pointer",on:{click:function(e){return e.preventDefault(),t.clicked.apply(null,arguments)}}},[e("div",{class:"\n    l-stack-countdown-color\n  full-height \n  position-relative text-center rounded-xl d-flex flex-column justify-center align-center ".concat(t.color," ").concat(t.textColor,"--text"),style:"font-size: ".concat(t.fontSize,"px")},[e("div",{staticClass:"flex-grow-0"},[e("div",{staticStyle:{"line-height":"1"}},[t._v(t._s(t.daysLeft))]),t._v(" "),e("LLabel",{style:"font-size: ".concat(.3*t.fontSize,"px"),attrs:{color:t.textColor}},[t._v(t._s(t.dayText))])],1),t._v(" "),e("LEmoji",{staticClass:"celebrate-icon celebrate-icon-top",style:"width: ".concat(t.iconSize,"px; top: ").concat(t.iconPos,"; left: ").concat(t.iconPos),attrs:{full:"",file:t.emoji1}}),t._v(" "),e("LEmoji",{staticClass:"celebrate-icon celebrate-icon-btm",style:"width: ".concat(t.iconSize,"px; bottom: ").concat(t.iconPos,"; right: ").concat(t.iconPos),attrs:{full:"",file:t.emoji2}})],1)])}),[],!1,null,null,null);e.a=component.exports},1226:function(t,e,n){"use strict";var r=n(350),o=n(226),c=n(1044),l=n(1059),d=(n(27),n(26),n(9),n(15),n(19),n(10),n(20),n(1)),m=n(2),h=(n(33),n(13),n(6),n(24),n(86),n(34),n(52),n(35),n(73),n(56),n(5)),f=n.n(h),v=n(18),y=n(38),_=n(43),k=n(1041),w=n(1054),x=n(1065),C=n(1053),O=n(309),j=n(48),I=n.n(j),S=n(113),L=n(100),D=(n(203),n(1195)),T=n(1229),M=n(369),P=n(67),B=n(1097),E=n(1067),A=n(371);function F(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?F(Object(n),!0).forEach((function(e){Object(m.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var V={name:"LChoreEditRow",components:{LAsset:_.a,LCardFrequency:D.a,LChoreMenu:T.a,LEmoji:L.a,LEmojiPicker:M.a,LLabel:P.a,LMemberPicker:B.a,LMenu:E.a,LTextInput:A.a},props:{cardId:{type:String,required:!0},mobileEdit:{type:Boolean}},data:function(){return{menuOpen:!1,isDeleting:!1,name:""}},computed:z(z({},Object(v.c)({getCardById:"cards/getById",members:"members/members",getRepeatById:"repeats/getById"})),{},{card:function(){return this.getCardById[this.cardId]},repeat:function(){return this.getRepeatById[this.card.repeat_id]},icon:{get:function(){return this.card.icon},set:function(t){this.updateFields({icon:t})}},alternate_members:{get:function(){return this.repeat&&this.repeat.alternate_members},set:function(t){this.updatedFrequency({alternate_members:t})}},menu:function(){var t=[];return t.push({content:"Copy",asset:"icon-copy-white",func:this.handleCopy}),t.push({content:"Delete",asset:"icon-delete-white",func:this.handleDelete,loading:this.isDeleting,hideDivider:!0,deleteBtn:!0}),t},showOnMobile:function(){return this.$vuetify.breakpoint.smAndDown&&this.mobileEdit},cardMembers:{get:function(){return this.card.members},set:function(t){this.updateFields({members:t})}},cardName:function(){return this.card.name}}),watch:{cardName:function(t){t&&(this.name=t)}},mounted:function(){this.name=this.card.name},methods:z(z({},Object(v.b)({createCard:"cards/create",updateCard:"cards/update",deleteCard:"cards/delete",createRepeat:"repeats/create",updateRepeat:"repeats/update"})),{},{updateName:function(){this.name?this.updateFields({name:this.name}):this.name=this.card.name},updateFields:function(t){this.card.repeat_id&&(t.updateRepeatCards=!0),this.updateCard({id:this.card.id,fields:t})},handleCopy:function(){this.createCard(z(z({},this.card),{},{createNewRepeat:!0})),this.menuOpen=!1},handleDelete:function(){var t=this;return Object(d.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isDeleting=!0,e.next=3,t.deleteCard({id:t.cardId,delete_type:"all",wait:!0});case 3:t.menuOpen=!1;case 4:case"end":return e.stop()}}),e)})))()},updatedFrequency:function(t){this.card.repeat_id?this.updateRepeat({id:this.card.repeat_id,fields:t}):this.createRepeat({cardId:this.card.id,fields:t})}})},$=(n(1264),n(12)),N=Object($.a)(V,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex bdr-btm",class:{"is-mobile-view flex-column bdr-highlight rounded-lg":t.showOnMobile,"align-center":!t.showOnMobile,"quarter-opacity":t.isDeleting}},[e("div",{staticClass:"d-flex align-center"},[e("div",{staticClass:"pa-2 flex-grow-0",staticStyle:{width:"52px"}},[e("LEmojiPicker",{staticStyle:{"max-width":"52px"},attrs:{"card-id":t.card.id,mediakey:"chore-edit-".concat(t.card.id,"-icon")},model:{value:t.icon,callback:function(e){t.icon=e},expression:"icon"}})],1),t._v(" "),e("div",{staticClass:"pa-2 ml-2",staticStyle:{"min-width":"260px"},on:{click:function(e){return t.$emit("clicked")}}},[e("LTextInput",{staticClass:"edit-chore-name",attrs:{id:"edit-chore-name-".concat(t.card.id),"update-value":t.updateName},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1)]),t._v(" "),e("div",{staticClass:"pa-2 flex-grow-1 hide-on-mobile"},[e("div",{staticClass:"d-flex"},[e("LCardFrequency",{staticClass:"flex-grow-0",attrs:{"card-id":t.card.id,color:"primary"},on:{updated:t.updatedFrequency}})],1)]),t._v(" "),e("div",{staticClass:"pa-2 flex-grow-0 hide-on-mobile"},[e("LMemberPicker",{attrs:{width:"32px",title:"Assign"},model:{value:t.cardMembers,callback:function(e){t.cardMembers=e},expression:"cardMembers"}}),t._v(" "),t.card.members&&t.card.members.length>1&&t.repeat?e("div",{class:{"primary--text text-center d-flex align-center":!0,"justify-center":!t.showOnMobile,"half-opacity":!t.alternate_members},on:{click:function(e){e.preventDefault(),t.alternate_members=!t.alternate_members}}},[e("LAsset",{staticClass:"mr-2",attrs:{width:"16",file:"icon-repeat"}}),t._v(" "),e("a",{staticClass:"reverse-underline",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.alternate_members=!t.alternate_members}}},[t._v(t._s(t.alternate_members?"Taking":"Take")+" Turns")])],1):t._e()],1),t._v(" "),e("div",{staticClass:"pa-2 flex-grow-0 hide-on-mobile",staticStyle:{width:"52px"}},[e(c.a,{attrs:{"offset-y":"","content-class":"rounded-lg pb-0","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e(r.a,t._g(t._b({attrs:{icon:"",loading:t.isDeleting}},"v-btn",c,!1),o),[e("LAsset",{attrs:{width:"36","file-url":"https://res.cloudinary.com/lome/image/upload/v1643825056/assets/icon-three-dots.png"}})],1)]}}]),model:{value:t.menuOpen,callback:function(e){t.menuOpen=e},expression:"menuOpen"}},[t._v(" "),e("LMenu",{attrs:{items:t.menu}})],1)],1)])}),[],!1,null,null,null).exports;function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R(Object(n),!0).forEach((function(e){Object(m.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Y={name:"LChoresModal",components:{LAsset:_.a,LEmoji:L.a,LChoreEditRow:N},props:{value:{type:Boolean,default:!1},stackId:{type:String}},data:function(){return{selectedType:"chore",newCardName:"",isSaving:!1,mobileEdit:null}},computed:U(U({},Object(v.c)({home:"home/home",getStackById:"stacks/getById",getUniqueRepeatIdByType:"cards/getUniqueRepeatIdByType"})),{},{stack:function(){return this.getStackById[this.stackId]},cards:function(){var t=this;return this.getUniqueRepeatIdByType(this.selectedType).filter((function(e){return e.home_id===t.home.id&&(!t.newCardName||e.name.toLowerCase().includes(t.newCardName.toLowerCase()))}))},dialog:{get:function(){return this.value},set:function(t){t||this.syncRepeatCards({start_date:f()().format("YYYY-MM-DD"),limit:7}),this.$emit("input",t)}}}),methods:U(U({},Object(v.b)({createCard:"cards/create",updateCard:"cards/update",syncRepeatCards:"cards/syncRepeatCards"})),{},{typeField:function(t,e){return I()(S.a,"".concat(t,".").concat(e),"")},addNewCard:function(){if(this.newCardName){var data={name:this.newCardName,type:this.selectedType,date:f()().format("YYYY-MM-DD")};this.createCardAndGo(data)}},createCardAndGo:function(data){var t=this;return Object(d.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isSaving=!0,(n=U({},data)).origin_card_id=n.id?n.id:null,e.next=5,t.createCard(n);case 5:t.isSaving=!1,t.newCardName="";case 7:case"end":return e.stop()}}),e)})))()}})},W=Object($.a)(Y,(function(){var t=this,e=t._self._c;return e("div",[e(x.a,{attrs:{"hide-overlay":"",fullscreen:"","content-class":"l-dialog",transition:"dialog-bottom-transition"},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[e(k.a,{staticClass:"white pb-16"},[e("div",{staticClass:"px-2 px-md-12 py-2 py-md-4"},[e("header",{staticClass:"pb-6"},[e("div",{staticClass:"mb-4 position-relative"},[e(r.a,{staticClass:"back-arrow",attrs:{icon:"",transparent:""},on:{click:function(e){e.preventDefault(),t.dialog=!1}}},[e("LAsset",{attrs:{file:"icon-back"}})],1),t._v(" "),e("div",{staticClass:"text-center primary--text font-weight-bold",staticStyle:{"font-size":"24px"}},[t._v("\n              "+t._s(t.stack.name)+"\n            ")])],1),t._v(" "),e("form",{on:{submit:function(e){return e.preventDefault(),t.addNewCard.apply(null,arguments)}}},[e(C.a,{attrs:{dense:""}},[e(w.a,{attrs:{cols:t.newCardName?8:12}},[e(O.a,{ref:"new-card-name",staticClass:"rounded-xl new-card-name",attrs:{"hide-details":"",type:"text",dense:"",color:t.typeField(t.selectedType,"color"),outlined:"",placeholder:"Search or Add New..."},model:{value:t.newCardName,callback:function(e){t.newCardName=e},expression:"newCardName"}})],1),t._v(" "),t.newCardName?e(w.a,[e(r.a,{attrs:{color:t.typeField(t.selectedType,"color"),rounded:"",dark:"",elevation:"0",block:"",loading:t.isSaving,type:"submit"}},[t._v("Add New")])],1):t._e()],1)],1)]),t._v(" "),e("div",t._l(t.cards,(function(n){return e("LChoreEditRow",{key:"edit-chores-".concat(n.id),staticClass:"cursor-pointer",attrs:{"card-id":n.id,"mobile-edit":t.mobileEdit===n.id},on:{clicked:function(e){t.mobileEdit=t.mobileEdit===n.id?null:n.id}}})})),1)])])],1)],1)}),[],!1,null,null,null),H=W.exports,G=n(1096),J=n(377);function Z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var K={name:"LStackHelp",components:{LAsset:_.a},props:{value:{type:Boolean,default:!1},type:{type:String,default:""}},data:function(){return{help:{intro:'<strong>Our world is getting bigger!</strong><br>Welcome to the brand new way to view <strong class="primary--text">Lome</strong>! We added a few more cards around your planner to give you <strong class="lred--text">ideas</strong>, inspire your <strong class="lpurple--text">routines</strong>, track <strong class="lbrown--text">chores</strong>, <strong class="ldarkblue--text">groceries</strong> and more. Enjoy!',card:'You can pin any card you want to show up on your board. This is great for <strong class="lred--text">convo topics</strong> you\'re having, a <strong class="lpurple--text">list</strong> of core values for your family, an upcoming <strong class="lorange--text">fun activity</strong>, or that <strong class="ldarkblue--text">delicious recipe</strong> you\'re excited to cook.',cards:'You can pin any card you want to show up on your board. This is great for <strong class="lred--text">convo topics</strong> you\'re having, a <strong class="lpurple--text">list</strong> of core values for your family, an upcoming <strong class="lorange--text">fun activity</strong>, or that <strong class="ldarkblue--text">delicious recipe</strong> you\'re excited to cook.',calendar:'Any Ideas you add will show up here, and you can click on any day to add your own family events. Click <strong class="primary--text">View</strong> to get a more detailed 7-day view.',magic:'A magic week is a <strong class="ldarkblue--text">meal plan</strong> for a family dinner, <strong class="lred--text">conversation topic</strong> to get everyone sharing, a <strong class="lorange--text">fun activity</strong> for quality time and a <strong class="lteal--text">relaxation idea</strong> to rest and recharge. We create a plan for you each week or you can add a few ideas to make your own magic.',month:'Zoom out a bit to get a view of the month. Click <strong class="primary--text">any day</strong> to get a daily schedule and easily add or change any activities.',countdown:'Pick a special date and a color, then track the countdown! We like <strong class="lblue--text">birthdays</strong>, <strong class="lred--text">anniversaries</strong>, <strong class="primary--text">school breaks</strong>, <strong class="accent--text">big tests</strong>, <strong class="lpurple--text">holidays</strong>, and anything else you want!',ideas:'Cycle through <strong class="ldarkblue--text">Meal</strong>, <strong class="lorange--text">Fun</strong>, <strong class="lred--text">Convo</strong> ideas. Then click <strong class="primary--text">Pick Again</strong> until you find one you like - or try <strong class="primary--text">Browse</strong> to search and see meals, fun activities or conversation topics.',star:'Every week we pick a new family member to be the <strong>Star</strong>. What does that person get? Maybe they get to <strong class="lorange--text">choose a board game</strong>, or help <strong class="ldarkblue--text">pick a meal</strong>. Find out more about your star by having everyone <strong class="lred--text">ask them a question</strong> at dinner.',text:'Jot down some <strong class="lpurple--text">things to remember</strong>, an <strong class="ldarkblue--text">inspirational quote</strong>, a word of <strong class="lred--text">encouragement</strong>, or that classic <strong class="lorange--text">dad joke</strong>! Set your formatting and add some <strong class="primary--text">colors</strong> to make it pop!',tag:'Pick a tag, then easily show a list of cards. Great for <strong class="ldarkblue--text">recipes</strong>, <strong class="lred--text">special convo topics</strong>, or <strong class="lorange--text">board games</strong>! You can search or choose <strong class="primary--text">shuffle view</strong> to get one picked for you!',note:'Add sticky notes to remember things, offer encouragement, or have fun! You can <strong class="lpurple--text">write text</strong>, <strong class="lorange--text">add stickers</strong> or <strong class="lred--text">draw pictures</strong>.',messages:'Add messages to share details, offer encouragement, or have fun! You can <strong class="lpurple--text">chat</strong> and <strong class="lred--text">add stickers</strong>.',groceries:'Keep track of groceries you need - you can even assign different items. Click <strong class="primary--text">View</strong> to pick a date for your grocery run.',chores:'Share the workload by adding and assigning household duties to different family members, set how often, and even alternate who\'s up with <strong class="primary--text">Take Turns</strong>. Try <strong class="ldarkbrown--text">Person</strong> view to see everyone\'s list or <strong class="ldarkbrown--text">Habit</strong> view to see a streak of completed chores.',weather:"See weather from today or the next few days. If you update your ZIP Code in Settings, we'll show you weather from that location.","meal-today":'We show you the next upcoming <strong class="ldarkblue--text">Meal</strong> for today. If you don\'t have one picked, we show you a list - or you can click <strong>Pick for Me</strong>.',"meal-next":'We show you the next upcoming <strong class="ldarkblue--text">Meal</strong>. If you don\'t have one picked, we show you a list - or you can click <strong>Pick for Me</strong>.',"fun-today":'We show you the next upcoming <strong class="lorange--text">Fun activity</strong> for today. If you don\'t have one picked, we show you a list - or you can click <strong>Pick for Me</strong>.',"fun-next":'We show you the next upcoming <strong class="lorange--text">Fun activity</strong>. If you don\'t have one picked, we show you a list - or you can click <strong>Pick for Me</strong>.',"convo-today":'We show you the next upcoming <strong class="lred--text">Convo topic</strong> for today. If you don\'t have one picked, we show you a list - or you can click <strong>Pick for Me</strong>.',"convo-next":'We show you the next upcoming <strong class="lred--text">Convo topic</strong>. If you don\'t have one picked, we show you a list - or you can click <strong>Pick for Me</strong>.',"morning routine":"Easily walk through the steps to get your crew ready in the morning. Want to customize the steps? Just jump in the routine and click the Edit icon in the top right.","bedtime routine":"Easily walk through the steps to get your crew ready for bed. Want to customize the steps? Just jump in the routine and click the Edit icon in the top right.",board:'You can organize your pins on different boards. Some of our favorite examples are:<br><strong class="lorange--text">Photos</strong><br><strong class="lpurple--text">Big Events / Trips</strong><br><strong class="ldarkblue--text">Recipes</strong><br><strong class="lred--text">Encouragement</strong>',maybe:'This holds events that you haven\'t committed to yet. If you hear about a <strong class="lorange--text">fun plan</strong>, add it here first. Then you can chat about it later, perhaps in your <strong class="lpurple--text">weekly family meeting</strong>. When you decide, simply pick <strong class="primary--text">Yes</strong> to save on your planner or <strong class="lred--text">No</strong> to delete it.',response:'This pin shows you an event you\'ve responded to - keep it as a <strong class="lpurple--text">reminder</strong>, use it to <strong class="ldarkblue--text">change</strong> your response, or check out the <strong class="primary--text">details</strong> of the event when it comes up!',link:'Add a quick link to an <strong class="lorange--text">event</strong>, or maybe a <strong class="lpurple--text">fun website</strong> or <strong class="primary--text">class calendar</strong>. We automatically grab an image and title, or you can pick out your own.'}}},computed:{dialog:{get:function(){return this.value},set:function(t){t||"intro"!==this.type||this.memberAction(y.N),this.$emit("input",t)}},text:function(){return this.help[this.type]||""}},mounted:function(){},methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(n),!0).forEach((function(e){Object(m.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(v.b)({memberAction:"members/takeAction"}))},X=K,Q=(n(1266),Object($.a)(X,(function(){var t=this,e=t._self._c;return e(x.a,{attrs:{"content-class":"rounded-xl outlined-card elevation-0","max-width":"420px"},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[e(k.a,{staticClass:"rounded-xl elevation-0"},[e("div",{staticClass:"pa-4"},[e("div",{staticClass:"mb-4"},[e("div",{staticClass:"penguin-circle"},[e("LAsset",{attrs:{width:"41",file:"penguin-head"}})],1),t._v(" "),e("div",{domProps:{innerHTML:t._s(t.text)}}),t._v(" "),e("div",{staticStyle:{clear:"both"}})]),t._v(" "),e(C.a,[e(w.a,{staticClass:"pb-1",attrs:{sm:"12"}},[e(r.a,{attrs:{color:"primary",rounded:"",elevation:"0",block:""},on:{click:function(e){e.preventDefault(),t.dialog=!1}}},[t._v("\n            Got it!\n          ")])],1)],1)],1)])],1)}),[],!1,null,null,null).exports),tt=n(1228),et=n(235),at=n(1069),it=n(368);function nt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ot(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nt(Object(n),!0).forEach((function(e){Object(m.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var st={name:"LStackMenu",components:{LAsset:_.a,LChoresModal:H,LLabel:P.a,LDatePicker:G.a,LColorPicker:J.a,LEmojiPicker:M.a,LDivider:et.a,LStackHelp:Q,LMenu:E.a,LBoardBox:tt.a,LMemberPicker:B.a,LConfirmModal:at.a},props:{isFiltering:{type:Boolean,default:!1},stackId:{type:String,required:!0},large:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},hideMove:{type:Boolean,default:!1},hideArrows:{type:Boolean,default:!1},undraggable:{type:Boolean,default:!1}},data:function(){return{optionsOpen:!1,helpModal:!1,isDuplicating:!1,choresModal:!1,isDeleting:!1,uploadType:""}},computed:ot(ot({},Object(v.c)({allStacks:"stacks/stacks",getStackById:"stacks/getById",stacksByBoardId:"stacks/getByBoardId",getCardForStackId:"stacks/getCardForId",getTasksByCardId:"tasks/getByCardId",editableStackId:"stacks/editableStackId",boards:"boards/boards",activeBoard:"boards/activeBoard",lastCreatedMediaKey:"media/lastCreatedKey",getCurrentMagicWeek:"cards/getCurrentMagicWeek",imageEditorId:"view/imageEditorId",imageEditorResult:"view/imageEditorResult"})),{},{allBoards:function(){var t=this;return"board"===this.stack.type?this.boards.filter((function(e){return e.id!==t.stack.linked_board_id&&e.id!==t.activeBoard.id&&"gallery"!==e.type})):this.boards.filter((function(e){return e.id!==t.activeBoard.id&&("gallery"!==e.type||"image"===t.stack.type)}))},boardHasStacks:function(){return"board"===this.stack.type&&this.stacksByBoardId(this.stack.linked_board_id).length>0},isCommunity:function(){return this.activeBoard&&"community"===this.activeBoard.type},menu:function(){var t=this,e=[];return"month"!==this.stack.type||this.isCommunity||e.push({content:"Filters",asset:"icon-filter-white",func:function(){t.$emit("filter",!t.isFiltering)},hideDivider:!0}),["card","magic"].includes(this.stack.type)&&e.push({content:"View",asset:"icon-eyes",func:this.handleView,hideDivider:!0}),"note"===this.stack.type&&e.push({content:"New Note",asset:"icon-add-white",func:function(){t.uploadType="note",t.openImageEditor()}}),"card"===this.stack.type&&e.push({content:"Edit",asset:"icon-edit-white",func:function(){t.updateContentField("editing",!0),t.optionsOpen=!1}}),"magic"===this.stack.type&&(e.push({content:"Share",asset:"icon-share-white",func:this.handleMagicShare}),e.push({content:"All Magic Weeks",asset:"icon-list-white",func:function(){return t.$router.push("/magic")}})),"tag"===this.stack.type&&e.push({content:"Pick a Tag",asset:"icon-edit-white",func:function(){t.updateContentField("tag_id",null)}}),"image"===this.stack.type&&(e.push({content:"Add Stickers",asset:"icon-smiley-white",func:function(){t.uploadType="stack",t.openImageEditor()}}),e.push({content:"Caption",asset:"icon-edit-white",func:function(){t.$emit("renaming",!0),t.optionsOpen=!1}})),"star"===this.stack.type&&e.push({content:"Edit Members",asset:"icon-filter-white",func:function(){return t.$router.push("/settings/members")}}),this.showCopy&&e.push({content:"Copy",asset:"icon-copy-white",func:this.duplicate,loading:this.isDuplicating}),this.showChores&&e.push({content:"Edit ".concat(this.stack.name),asset:"icon-list-white",func:function(){t.choresModal=!0,t.optionsOpen=!1}}),this.stack.image&&e.push({content:"Download",asset:"icon-download-white",func:function(){return Object(it.downloadImg)(t.stack.image)}}),this.helpType&&e.push({content:"What's this?",asset:"icon-help-white",func:function(){t.helpModal=!0,t.optionsOpen=!1}}),"link"===this.stack.type&&e.push({content:"Edit Details",asset:"icon-edit-white",func:function(){t.updateContentField("editing",!0),t.optionsOpen=!1}}),!this.stack.show_name&&"board"!==this.stack.type||"tag"===this.stack.type||e.push({content:"Rename",asset:"icon-edit-white",func:function(){t.$emit("renaming",!0),t.optionsOpen=!1}}),e.push({content:"Delete",asset:"icon-delete-white",func:this.remove,loading:this.isDeleting,hideDivider:!0,deleteBtn:!0}),e},stack:function(){return this.getStackById[this.stackId]},card:function(){return this.getCardForStackId(this.stackId)},cardVoteType:function(){return this.card&&this.card.vote_type?this.card.vote_type:null},cardVoteTypeTitle:function(){if(!this.cardVoteType)return null;switch(this.cardVoteType){case"signup":return"Signups";case"signup-rsvp":return"Signups & RSVPs";case"rsvp":return"RSVPs"}return"Votes"},cardVoteTypeIcon:function(){if(!this.cardVoteType)return null;switch(this.cardVoteType){case"signup":case"signup-rsvp":return"icon-signup-white";case"rsvp":return"icon-envelope-white"}return"icon-poll-white"},cardMembers:{get:function(){var t;return null===(t=this.card)||void 0===t?void 0:t.members},set:function(t){this.updateCardField("members",t)}},isEditable:function(){return this.editableStackId===this.stackId||this.$vuetify.breakpoint.smAndDown},showCopy:function(){return!1},helpType:function(){if("image"!==this.stack.type){if(["cards","card"].includes(this.stack.type)){if(["Groceries","Morning Routine","Bedtime Routine"].includes(this.stack.name))return this.stack.name.toLowerCase();if("cards"===this.stack.type)return"".concat(this.stack.filter_type,"-").concat(this.stack.filter_when)}return this.stack.type}},showView:function(){return["cards","card","ideas","calendar","month","tag"].includes(this.stack.type)||this.boardHasStacks},showChores:function(){return"chores"===this.stack.type},showChecklist:function(){return"card"===this.stack.type&&(!!this.card&&!!this.card.view)},showDatePicker:function(){return["calendar","countdown"].includes(this.stack.type)},showThemePicker:function(){return["countdown"].includes(this.stack.type)||"countdown"===this.stack.view},showColorPicker:function(){return["text"].includes(this.stack.type)},datePickerTitle:function(){return"calendar"===this.stack.type?"Start Date":"Date"},datePickerEmptyText:function(){return"calendar"===this.stack.type?"Today":"Date"},mediakeyPrefix:function(){return this.showThemePicker?"countdown-".concat(this.stack.id,"-emoji"):null},view:{get:function(){return this.stack.view},set:function(t){this.updateField("view",t)}},filterType:{get:function(){return this.stack.filter_type},set:function(t){this.updateField("filter_type",t)}},filterWhen:{get:function(){return this.stack.filter_when},set:function(t){this.updateField("filter_when",t)}},contentDate:{get:function(){return this.stack.content&&this.stack.content.date?this.stack.content.date:null},set:function(t){this.updateContentField("date",t)}},contentColor:{get:function(){return this.stack.content&&this.stack.content.color?this.stack.content.color:null},set:function(t){this.updateContentField("color",t)}},contentTextColor:{get:function(){return this.stack.content&&this.stack.content.textColor?this.stack.content.textColor:null},set:function(t){this.updateContentField("textColor",t)}},contentEmoji1:{get:function(){return this.stack.content&&this.stack.content.emoji1?this.stack.content.emoji1:this.defaultCountdownEmojis[0]},set:function(t){this.updateContentField("emoji1",t)}},contentEmoji2:{get:function(){return this.stack.content&&this.stack.content.emoji2?this.stack.content.emoji2:this.defaultCountdownEmojis[1]},set:function(t){this.updateContentField("emoji2",t)}},fontSize:{get:function(){return this.stack.content&&this.stack.content.fontSize?parseInt(this.stack.content.fontSize,10):32},set:function(t){this.updateContentField("fontSize",t)}},defaultCountdownEmojis:function(){var t=this.stack.name.toLowerCase().replace(/[^a-z0-9]+/g," ").trim();return t.includes("bday")||t.includes("birthday")?["birthday-celebration","cake"]:t.includes("christmas")||t.includes("xmas")||this.theCountdownDateIs("12-24")||this.theCountdownDateIs("12-25")?["christmas-tree","santa"]:t.includes("easter")?["easter-rabbit","basket-of-eggs"]:t.includes("st patrick")||this.theCountdownDateIs("03-17")?["clover","rainbow"]:t.includes("trip")||t.includes("travel")||t.includes("vacation")?["plane","suitcase"]:t.includes("summer")?["cool-shades","water"]:t.includes("spring")?["sun-cloud","sprout"]:t.includes("fall")||t.includes("autumn")?["maple-leaf","fall-leaves"]:t.includes("winter")||t.includes("snow")?["snowflake","snowman"]:this.theCountdownDateIs("07-04")?["fireworks","sparkle"]:this.theCountdownDateIs("01-01")||this.theCountdownDateIs("12-31")?["fireworks","confetti-ball"]:this.theCountdownDateIs("02-14")?["love-eyes","candy-hearts"]:["party-popper","birthday-celebration"]}}),watch:{imageEditorId:function(t){t===this.stackId+this.uploadType&&(this.handleCreate(this.imageEditorResult.url),this.setResetImageEditor())}},mounted:function(){this.lastCreatedMediaKey&&this.mediakeyPrefix&&this.lastCreatedMediaKey.startsWith(this.mediakeyPrefix)&&(this.optionsOpen=!0)},methods:ot(ot({},Object(v.b)({createStack:"stacks/create",updateStack:"stacks/update",updateCard:"cards/update",deleteCard:"cards/delete",setEditableStackId:"stacks/setEditableStackId",deleteStack:"stacks/delete",memberAction:"members/takeAction",openImageEditorModal:"view/openImageEditorModal",setResetImageEditor:"view/setResetImageEditor"})),{},{openImageEditor:function(){this.openImageEditorModal({id:this.stackId+this.uploadType,folder:"stack"===this.uploadType?"gallery":"note-".concat(Date.now()),uploadPreset:"stack"===this.uploadType?"galleryuploads":"homeuploads",media:"stack"===this.uploadType?"stack":"img",imgUrl:"stack"===this.uploadType?this.stack.image:""})},handleCreate:function(t){var e=this;return Object(d.a)(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("stack"!==e.uploadType){n.next=4;break}return n.next=3,e.updateStack({id:e.stackId,fields:{image:t}});case 3:return n.abrupt("return");case 4:return r={name:"Note",board_id:e.stack.board_id,image:t,type:"note",view:"image",show_name:!1,width:1,height:1},n.next=7,e.createStack(r);case 7:if(!(o=e.getDefaultNote())){n.next=11;break}return n.next=11,e.deleteStack(o.id);case 11:e.memberAction(y.f);case 12:case"end":return n.stop()}}),n)})))()},getDefaultNote:function(){return this.allStacks.find((function(t){return"note"===t.type&&"https://res.cloudinary.com/lome/image/upload/v1643827604/assets/welcome-note.png"===t.image}))},handleView:function(){if("magic"!==this.stack.type)this.$router.push("/a/".concat(this.stack.card_id,"#edit"));else{var t=this.getCurrentMagicWeek;t&&this.$router.push("/a/".concat(t.id))}},handleAddToBoard:function(t){this.updateField("board_id",t)},handleMagicShare:function(){var t=this;return Object(d.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.getCurrentMagicWeek){e.next=3;break}return e.abrupt("return");case 3:if(n.public){e.next=6;break}return e.next=6,t.updateCard({id:n.id,fields:{public:!0}});case 6:t.$router.push("/a/".concat(n.id));case 7:case"end":return e.stop()}}),e)})))()},remove:function(){var t=this;return Object(d.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.isDeleting=!0,!t.card||"event"!==t.card.type){e.next=5;break}t.$refs.confirmDelete.$el.click(),e.next=7;break;case 5:return e.next=7,t.deleteStack(t.stackId);case 7:t.isDeleting=!1;case 8:case"end":return e.stop()}}),e)})))()},moveMobileStack:function(t){this.$emit("move-mobile",{direction:t,stack:this.stack})},setEdit:function(){this.setEditableStackId(this.stackId)},toggleEdit:function(){this.setEditableStackId(this.isEditable?null:this.stackId)},theCountdownDateIs:function(t){return this.contentDate&&f()(this.contentDate).format("MM-DD")===t},duplicate:function(){var t=this;return Object(d.a)(regeneratorRuntime.mark((function e(){var data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isDuplicating=!0,(data=ot({},t.stack)).top+=64,data.left+=64,e.next=6,t.createStack(data);case 6:t.isDuplicating=!1,t.optionsOpen=!1;case 8:case"end":return e.stop()}}),e)})))()},updateContentField:function(t,e){var content=this.stack.content?ot({},this.stack.content):{};content[t]=e,this.updateField("content",content)},updateField:function(t,e){var n={};n[t]=e;var r={id:this.stackId,fields:n};this.updateStack(r)},updateCardField:function(t,e){var n=this;return Object(d.a)(regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(o={id:n.card.id,fields:{}}).fields[t]=e,r.next=4,n.updateCard(o);case 4:case"end":return r.stop()}}),r)})))()}})},ct=(n(1270),Object($.a)(st,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"l-stack-menu cursor-pointer pa-1 d-flex align-center justify-space-between",class:{"l-stack-menu-is-editable":t.isEditable},on:{click:t.setEdit}},[t.$vuetify.breakpoint.mdAndUp&&!t.undraggable?e("div",{staticClass:"flex-grow-0 l-stack-menu-icon",class:{"show-on-hover":!t.optionsOpen&&!t.visible}},[t.hideMove?t._e():e(r.a,{staticClass:"stack-drag-handle",style:t.large?"":"background-color: #efeadc !important",attrs:{icon:"","x-small":!t.large}},[e("LAsset",{attrs:{width:t.large?"32":"20","file-url":"https://res.cloudinary.com/lome/image/upload/w_".concat(t.large?"64":"40","/v1658914823/assets/icon-move.png")}})],1)],1):t._e(),t._v(" "),e(l.a),t._v(" "),e("div",{staticClass:"flex-grow-0 l-stack-menu-icon",class:{"show-on-hover":!t.optionsOpen&&!t.visible}},[e(c.a,{attrs:{"close-on-content-click":!1,"offset-y":"","content-class":"rounded-lg primary l-stack-options-menu"},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e(r.a,t._g(t._b({style:t.large?"":"background-color: #efeadc !important",attrs:{icon:"","x-small":!t.large}},"v-btn",c,!1),o),[e("LAsset",{attrs:{width:t.large?"32":"20",file:"icon-dots"}})],1)]}}]),model:{value:t.optionsOpen,callback:function(e){t.optionsOpen=e},expression:"optionsOpen"}},[t._v(" "),e("LMenu",{attrs:{items:t.menu}},[e("div",[t.showView?e("div",{staticClass:"text-center py-3"},[e("LLabel",{attrs:{color:"white"}},[t._v("View")]),t._v(" "),["calendar"].includes(t.stack.type)?e(r.a,{class:("compressed"!==t.view?"half-opacity":"")+" ma-1",attrs:{icon:"",title:"Mini List"},on:{click:function(e){e.preventDefault(),t.view="compressed"}}},[e("LAsset",{attrs:{width:"36",file:"icon-list-white"}})],1):t._e(),t._v(" "),["card","cards","ideas","board"].includes(t.stack.type)?t._e():e(r.a,{class:("list"!==t.view?"half-opacity":"")+" ma-1",attrs:{icon:"",title:"List"},on:{click:function(e){e.preventDefault(),t.view="list"}}},[e("LAsset",{attrs:{width:"36",file:"icon-smiley-white"}})],1),t._v(" "),["card","cards","ideas","board"].includes(t.stack.type)?t._e():e(r.a,{class:("button"!==t.view?"half-opacity":"")+" ma-1",attrs:{icon:"",title:"Button"},on:{click:function(e){e.preventDefault(),t.view="button"}}},[e("LAsset",{attrs:{width:"36",file:"icon-pill-white"}})],1),t._v(" "),["card"].includes(t.stack.type)?e(r.a,{class:("detail"!==t.view?"half-opacity":"")+" ma-1",attrs:{icon:"",title:"Detail"},on:{click:function(e){e.preventDefault(),t.view="detail"}}},[e("LAsset",{attrs:{width:"36",file:"icon-list-white"}})],1):t._e(),t._v(" "),["calendar","magic","month"].includes(t.stack.type)?t._e():e(r.a,{class:("emoji"!==t.view?"half-opacity":"")+" ma-1",attrs:{icon:"",title:"Emoji"},on:{click:function(e){e.preventDefault(),t.view="emoji"}}},[e("LAsset",{attrs:{width:"36",file:"icon-apple-white"}})],1),t._v(" "),"tag"!==t.stack.type?e(r.a,{class:("image"!==t.view?"half-opacity":"")+" ma-1",attrs:{icon:"",title:"Image"},on:{click:function(e){e.preventDefault(),t.view="image"}}},[e("LAsset",{attrs:{width:"36",file:"icon-image-view-white"}})],1):t._e(),t._v(" "),t.showChecklist?e(r.a,{class:("checklist"!==t.view?"half-opacity":"")+" ma-1",attrs:{icon:"",title:"Checklist"},on:{click:function(e){e.preventDefault(),t.view="checklist"}}},[e("LAsset",{attrs:{width:"36",file:"icon-check-white"}})],1):t._e(),t._v(" "),"board"===t.stack.type?e(r.a,{class:("thumbnails"!==t.view?"half-opacity":"")+" ma-1",attrs:{icon:"",title:"Thumbs"},on:{click:function(e){e.preventDefault(),t.view="thumbnails"}}},[e("LAsset",{attrs:{width:"36",file:"icon-thumbs-icons-white"}})],1):t._e(),t._v(" "),"tag"===t.stack.type?e(r.a,{class:("shuffle"!==t.view?"half-opacity":"")+" ma-1",attrs:{icon:"",title:"Shuffle"},on:{click:function(e){e.preventDefault(),t.view="shuffle"}}},[e("LAsset",{attrs:{width:"30","file-url":"https://res.cloudinary.com/lome/image/upload/e_colorize:100,co_white,h_60/assets/icon-repeat.png"}})],1):t._e(),t._v(" "),t.cardVoteType?e(r.a,{class:("vote"!==t.view?"half-opacity":"")+" ma-1",attrs:{icon:"",title:t.cardVoteTypeTitle},on:{click:function(e){e.preventDefault(),t.view="vote"}}},[e("LAsset",{attrs:{width:"36",file:t.cardVoteTypeIcon}})],1):t._e(),t._v(" "),t.card&&t.card.date?e(r.a,{class:("countdown"!==t.view?"half-opacity":"")+" ma-1",attrs:{icon:"",title:"Countdown"},on:{click:function(e){e.preventDefault(),t.view="countdown"}}},[e("LAsset",{attrs:{width:"36",file:"icon-smiley-white"}})],1):t._e(),t._v(" "),e("div",{staticClass:"d-flex justify-center"},[e("LMemberPicker",{attrs:{width:"40",editable:t.isEditable},model:{value:t.cardMembers,callback:function(e){t.cardMembers=e},expression:"cardMembers"}})],1)],1):t._e(),t._v(" "),t.showView?e("LDivider",{attrs:{color:"white"}}):t._e(),t._v(" "),t.$vuetify.breakpoint.xs&&!t.hideArrows?e("div",{staticClass:"text-center py-3"},[e("LLabel",{attrs:{color:"white"}},[t._v("Move")]),t._v(" "),e("div",{staticClass:"d-flex justify-center mt-3"},[e(r.a,{staticClass:"mr-6",attrs:{icon:""},on:{click:function(e){e.preventDefault(),t.moveMobileStack("down"),t.optionsOpen=!1}}},[e("LAsset",{attrs:{width:"24","file-url":"https://res.cloudinary.com/lome/image/upload/v1649333843/assets/icon-down-white.png"}})],1),t._v(" "),e(r.a,{attrs:{icon:""},on:{click:function(e){e.preventDefault(),t.moveMobileStack("up"),t.optionsOpen=!1}}},[e("LAsset",{attrs:{width:"24","file-url":"https://res.cloudinary.com/lome/image/upload/v1649333842/assets/icon-up-white.png"}})],1)],1)],1):t._e(),t._v(" "),t.$vuetify.breakpoint.xs&&!t.hideArrows?e("LDivider",{attrs:{color:"white"}}):t._e(),t._v(" "),"image"===t.stack.type?e("div",{staticClass:"text-center py-3"},[e("LLabel",{attrs:{color:"white"}},[t._v("Rotate")]),t._v(" "),e("div",{staticClass:"d-flex justify-center mt-3"},[e(r.a,{staticClass:"mr-6",attrs:{icon:""},on:{click:function(e){return e.preventDefault(),t.$emit("rotate","left")}}},[e("LAsset",{attrs:{width:"24",file:"icon-rotate-left-white"}})],1),t._v(" "),e(r.a,{attrs:{icon:""},on:{click:function(e){return e.preventDefault(),t.$emit("rotate","right")}}},[e("LAsset",{attrs:{width:"24",file:"icon-rotate-right-white"}})],1)],1)],1):t._e(),t._v(" "),"image"===t.stack.type?e("LDivider",{attrs:{color:"white"}}):t._e(),t._v(" "),t.showDatePicker?e("div",{staticClass:"pa-3 text-center"},[e("LLabel",{attrs:{color:"white"}},[t._v(t._s(t.datePickerTitle))]),t._v(" "),e("LDatePicker",{staticClass:"rounded-xl elevation-0",attrs:{color:"primary","empty-text":t.datePickerEmptyText,block:""},model:{value:t.contentDate,callback:function(e){t.contentDate=e},expression:"contentDate"}},["calendar"===t.stack.type?e(r.a,{staticClass:"rounded-xl elevation-0",attrs:{color:"primary",block:""},on:{click:function(e){e.preventDefault(),t.contentDate=null}}},[t._v("Today")]):t._e()],1)],1):t._e(),t._v(" "),t.showDatePicker?e("LDivider",{attrs:{color:"white"}}):t._e(),t._v(" "),t.showThemePicker?e("div",{staticClass:"pa-3 text-center"},[e("LLabel",{attrs:{color:"white"}},[t._v("Theme")]),t._v(" "),e("div",{staticClass:"d-flex align-center justify-center"},[e("LColorPicker",{staticClass:"elevation-2 rounded-lg",model:{value:t.contentColor,callback:function(e){t.contentColor=e},expression:"contentColor"}}),t._v(" "),e("LEmojiPicker",{staticClass:"mx-2 white rounded-lg elevation-2",attrs:{mediakey:"".concat(t.mediakeyPrefix,"1")},model:{value:t.contentEmoji1,callback:function(e){t.contentEmoji1=e},expression:"contentEmoji1"}}),t._v(" "),e("LEmojiPicker",{staticClass:"white rounded-lg elevation-2",attrs:{mediakey:"".concat(t.mediakeyPrefix,"2")},model:{value:t.contentEmoji2,callback:function(e){t.contentEmoji2=e},expression:"contentEmoji2"}})],1)],1):t._e(),t._v(" "),t.showThemePicker?e("LDivider",{attrs:{color:"white"}}):t._e(),t._v(" "),t.showColorPicker?e("div",{staticClass:"pa-3 text-center"},[e("div",{staticClass:"d-flex align-center justify-center"},[e("div",{staticClass:"mx-1"},[e("LLabel",{attrs:{color:"white"}},[t._v("Color")]),t._v(" "),e("LColorPicker",{staticClass:"elevation-2 rounded-lg",model:{value:t.contentColor,callback:function(e){t.contentColor=e},expression:"contentColor"}})],1),t._v(" "),e("div",{staticClass:"mx-1"},[e("LLabel",{attrs:{color:"white"}},[t._v("Text")]),t._v(" "),e("LColorPicker",{staticClass:"elevation-2 rounded-lg",model:{value:t.contentTextColor,callback:function(e){t.contentTextColor=e},expression:"contentTextColor"}})],1)])]):t._e(),t._v(" "),t.showColorPicker?e("LDivider",{attrs:{color:"white"}}):t._e(),t._v(" "),t.allBoards.length&&!t.isCommunity?[e(c.a,{attrs:{"close-on-content-click":!1,rounded:"xl","offset-y":""},scopedSlots:t._u([{key:"activator",fn:function(n){var r=n.on,c=n.attrs;return[e(o.a,t._g(t._b({staticClass:"`white--text font-weight-bold elevation-0 justify-start",attrs:{small:"",block:""}},"v-list-item",c,!1),r),[e("LAsset",{staticClass:"mr-2 mb-1",attrs:{file:"icon-pushpin-white",width:"24"}}),t._v("\n\n                  Pin on Board...\n                ")],1)]}}],null,!1,4252139014)},[t._v(" "),e("div",{staticClass:"d-flex flex-wrap pa-2 white",staticStyle:{"max-width":"340px"}},t._l(t.allBoards,(function(n){return e("LBoardBox",{key:n.id,staticClass:"mx-1 my-2 text-center",staticStyle:{width:"72px"},attrs:{"board-id":n.id},on:{clicked:t.handleAddToBoard}})})),1)]),t._v(" "),e("LDivider",{attrs:{color:"white"}})]:t._e()],2)])],1),t._v(" "),e("LStackHelp",{attrs:{type:t.helpType},model:{value:t.helpModal,callback:function(e){t.helpModal=e},expression:"helpModal"}}),t._v(" "),t.showChores?e("LChoresModal",{attrs:{"stack-id":t.stackId},model:{value:t.choresModal,callback:function(e){t.choresModal=e},expression:"choresModal"}}):t._e(),t._v(" "),t.card?e("LConfirmModal",{attrs:{text:"Are you sure you want to delete this event?",name:t.card.name},on:{clicked:function(e){return t.deleteCard({id:t.card.id})}}},[e(r.a,{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"confirmDelete",staticClass:"elevation-0 rounded-xl",attrs:{color:"error"}},[t._v("Delete")])],1):t._e()],1)],1)}),[],!1,null,null,null));e.a=ct.exports},1228:function(t,e,n){"use strict";n(9),n(15),n(13),n(6),n(19),n(10),n(20);var r=n(2),o=(n(26),n(18)),c=n(100),l=n(67);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h={name:"LBoardBox",components:{LEmoji:c.a,LLabel:l.a},props:{height:{type:String,default:"56"},boardId:{type:String,default:"",required:!0},setBoardActive:{type:Boolean,default:!1}},data:function(){return{}},computed:m(m({},Object(o.c)({getBoardById:"boards/getById",activeBoard:"boards/activeBoard"})),{},{board:function(){return this.getBoardById[this.boardId]},boardName:function(){return"home"===this.boardId?"Home":"planner"===this.boardId?"Planner":"magic"===this.boardId?"Magic Week":"add"===this.boardId?"New...":this.board.name},boardIcon:function(){var t,e;return"planner"===this.boardId?"https://res.cloudinary.com/lome/image/upload/v1643058535/assets/icon-planner.png":"magic"===this.boardId?"https://res.cloudinary.com/lome/image/upload/w_36,h_36/emojis/sparkle.png":"add"===this.boardId?"https://res.cloudinary.com/lome/image/upload/w_36,h_36,c_lpad/assets/icon-plus-green.png":"home"===this.boardId||this.boardId===(null===(t=this.mainBoard)||void 0===t?void 0:t.id)?"https://res.cloudinary.com/lome/image/upload/v1630703843/assets/lome-logo.png":(null===(e=this.board)||void 0===e?void 0:e.icon)||"https://res.cloudinary.com/lome/image/upload/v1643300219/assets/icon-board.png"},isActive:function(){return"planner"===this.boardId?"planner"===this.$route.name:"magic"===this.boardId?"magic"===this.$route.name:"home"===this.boardId?"index"===this.$route.name:"add"!==this.boardId&&(this.boardId===this.activeBoard.id&&"b-id"===this.$route.name)},isBoardActive:function(){return this.setBoardActive||this.isActive}}),methods:{clicked:function(){this.$emit("clicked",this.boardId)}}},f=(n(1268),n(12)),component=Object(f.a)(h,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex flex-column align-center"},[e("div",{staticClass:"stack-box-container d-flex justify-center align-center cursor-pointer position-relative",on:{click:function(e){return e.preventDefault(),t.clicked.apply(null,arguments)}}},["add"===t.boardId?e("div",{staticClass:"primary--text position-absolute",staticStyle:{"font-size":"32px",top:"0",left:"-2px","text-align":"center",width:"100%","font-weight":"bold"}},[t._v("\n      +\n    ")]):e("div",{staticClass:"position-absolute",staticStyle:{height:"36px",width:"36px",top:"6px",left:"6px"}},[e("LEmoji",{attrs:{file:t.boardIcon,full:""}})],1)]),t._v(" "),e("LLabel",{class:{"py-1 px-2 mt-1 primary rounded-xl":t.isBoardActive,"mt-2":!t.isBoardActive},attrs:{color:t.isBoardActive?"white":"primary"}},[t._v("\n    "+t._s(t.boardName)+"\n  ")])],1)}),[],!1,null,null,null);e.a=component.exports},1229:function(t,e,n){"use strict";var r=n(350),o=n(226),c=n(1044),l=(n(26),n(203),n(15),n(13),n(19),n(10),n(20),n(2)),d=(n(9),n(6),n(86),n(18)),m=n(43),h=n(1195),f=n(235),v=n(100),y=n(369),_=n(1097),k=n(1067),w=n(371);function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){Object(l.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var O=["alternate_members"],j={name:"LChoreMenu",components:{LAsset:m.a,LCardFrequency:h.a,LDivider:f.a,LEmoji:v.a,LEmojiPicker:y.a,LMemberPicker:_.a,LMenu:k.a,LTextInput:w.a},props:{value:{type:Boolean,required:!0},cardId:{type:String},cardIds:{type:Array}},data:function(){return{updatedRepeat:{},alternate_members:!1,alreadyOpened:!1,showDeleteOptions:!1,cardIdIndex:0}},computed:C(C({},Object(d.c)({getCardById:"cards/getById",members:"members/members",home:"home/home",getRepeatById:"repeats/getById"})),{},{id:function(){return this.cardId?this.cardId:this.cardIds[this.cardIdIndex]},hasMultipleCards:function(){return this.cardIds&&this.cardIds.length>1},card:function(){return this.getCardById[this.id]},cardTrigger:function(){return JSON.stringify(this.card)},repeat:function(){return this.card?this.getRepeatById[this.card.repeat_id]:null},isOpen:{get:function(){return this.value},set:function(t){this.$emit("input",t)}},menu:function(){var t=this,e=[];return e.push({content:"Edit",asset:"icon-edit-white",func:this.handleEdit}),e.push({content:"Delete this one",asset:"icon-delete-white",func:function(){t.handleDelete("single")},color:"lorange",loading:this.isDeleting}),this.repeat&&e.push({content:"Delete all",asset:"icon-delete-white",func:function(){t.handleDelete("all")},loading:this.isDeleting,hideDivider:!0,deleteBtn:!0}),e},icon:{get:function(){return this.card.icon},set:function(t){this.updateFields({icon:t})}},cardMembers:{get:function(){return this.card.members},set:function(t){this.updateFields({members:t})}}}),watch:{cardTrigger:function(t,e){e&&!t&&(this.cardIdIndex=0)},isOpen:function(t){t&&(this.showDeleteOptions=!1),!t&&Object.keys(this.updatedRepeat).length&&(this.card.repeat_id?this.updateRepeat({id:this.card.repeat_id,fields:this.updatedRepeat}):this.createRepeat({cardId:this.card.id,fields:this.updatedRepeat}),this.updatedRepeat={})},id:function(){this.setupMenu(),this.$emit("idchange",this.id)}},mounted:function(){this.setupMenu()},methods:C(C({},Object(d.b)({updateCard:"cards/update",deleteCard:"cards/delete",createRepeat:"repeats/create",updateRepeat:"repeats/update"})),{},{setupMenu:function(){var t=this;this.repeat&&O.forEach((function(e){t[e]=t.repeat[e]}))},toggleAlternateMembers:function(){this.alternate_members=!this.alternate_members,this.updatedRepeat=C({alternate_members:this.alternate_members},this.updatedRepeat)},prevCardId:function(){this.moveCardId(-1)},nextCardId:function(){this.moveCardId(1)},moveCardId:function(t){var i=this.cardIdIndex;(i+=t)>=this.cardIds.length&&(i=0),i<0&&(i=this.cardIds.length-1),this.cardIdIndex=i},showDelete:function(){this.card.repeat_id?this.showDeleteOptions=!0:this.handleDelete("single")},handleDelete:function(t){this.isOpen=!1,this.showDeleteOptions=!1,this.deleteCard({id:this.id,delete_type:t})},handleEdit:function(){this.$emit("editing"),this.isOpen=!1},blurName:function(t){t.target.blur()},updateName:function(t){var e=t.target.textContent.trim();e!==this.card.name&&this.updateFields({name:e})},updateFields:function(t){this.card.repeat_id&&(t.updateRepeatCards=!0),this.updateCard({id:this.card.id,fields:t})},updatedFrequency:function(t){this.updatedRepeat=C(C({},t),this.updatedRepeat)}})},I=(n(1262),n(12)),component=Object(I.a)(j,(function(){var t=this,e=t._self._c;return e(c.a,{attrs:{"offset-y":"","content-class":"rounded-lg pb-0","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e(r.a,t._g(t._b({attrs:{block:"","x-large":"",icon:""}},"v-btn",c,!1),o),[t._t("default")],2)]}}],null,!0),model:{value:t.isOpen,callback:function(e){t.isOpen=e},expression:"isOpen"}},[t._v(" "),e("LMenu",{attrs:{items:t.menu}},[e("div",{staticClass:"d-flex align-center justify-center"},[t.hasMultipleCards?e(r.a,{staticClass:"mr-1",attrs:{icon:"","x-small":""},on:{click:function(e){return e.preventDefault(),t.prevCardId.apply(null,arguments)}}},[e("img",{attrs:{src:"https://res.cloudinary.com/lome/image/upload/c_scale,w_14/assets/arrow-left.png"}})]):t._e(),t._v(" "),e("div",{staticClass:"text-center pa-1 font-weight-bold",staticStyle:{outline:"none"},attrs:{contenteditable:""},on:{blur:t.updateName,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.blurName.apply(null,arguments))}}},[t._v("\n        "+t._s(t.card.name)+"\n      ")]),t._v(" "),t.hasMultipleCards?e(r.a,{staticClass:"ml-1",attrs:{icon:"","x-small":""},on:{click:function(e){return e.preventDefault(),t.nextCardId.apply(null,arguments)}}},[e("img",{attrs:{src:"https://res.cloudinary.com/lome/image/upload/c_scale,w_14/assets/arrow-right.png"}})]):t._e()],1),t._v(" "),e("LDivider",{attrs:{color:"white"}}),t._v(" "),t.members.length?e("div",{staticClass:"text-left py-1"},[e("LMemberPicker",{staticClass:"mx-3 mb-1 mt-0",staticStyle:{"max-width":"300px"},model:{value:t.cardMembers,callback:function(e){t.cardMembers=e},expression:"cardMembers"}}),t._v(" "),t.card.members&&t.card.members.length>1&&t.repeat?e("div",[e(o.a,{staticClass:"white--text elevation-0 font-weight-bold justify-start",class:{"half-opacity":!t.alternate_members},attrs:{small:"",color:"transparent",block:""},on:{click:function(e){return e.preventDefault(),t.toggleAlternateMembers.apply(null,arguments)}}},[e("LAsset",{staticClass:"mr-2 mb-1",attrs:{width:"24","file-url":"https://res.cloudinary.com/lome/image/upload/v1644243439/assets/icon-swap-white.png"}}),t._v("\n          "+t._s(t.alternate_members?"Taking":"Take")+" Turns\n        ")],1)],1):t._e()],1):t._e(),t._v(" "),e("LDivider",{attrs:{color:"white"}}),t._v(" "),e("LCardFrequency",{staticClass:"pt-2 pb-3 px-3",attrs:{"card-id":t.card.id},on:{updated:t.updatedFrequency}}),t._v(" "),e("LDivider",{attrs:{color:"white"}})],1)],1)}),[],!1,null,null,null);e.a=component.exports},1233:function(t,e,n){"use strict";n(1187)},1234:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".card-tooltip-meta{color:#7f7f7f!important;font-size:16px;line-height:1.2}.card-tooltip-meta-time{font-weight:700}.card-tooltip-meta-location{max-width:180px}",""]),r.locals={},t.exports=r},1235:function(t,e,n){"use strict";n(1188)},1236:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".quick-actions-link{max-height:28px;overflow:hidden;position:absolute;right:0;top:9px;white-space:normal;z-index:3}.card-link-members{height:32px;overflow:hidden!important;position:absolute;right:0;top:6px;width:40px}.card-link-members-0{right:5px;width:24px}.card-link-members-1{right:5px;width:20px}.card-link-members-2{right:5px;width:32px}.card-link-member{left:0;position:absolute;top:0;width:16px}.card-link-members-0 .card-link-member{top:4px!important;width:24px}.card-link-member:nth-child(n+3){left:12px}.card-link-members-2 .card-link-member:nth-child(n+3){left:16px}.card-link-member:nth-child(odd){top:0}.card-link-member:nth-child(2n){top:16px}.card-link-member:nth-child(n+5){left:24px}.card-link-member:nth-child(n+7){left:30px}.card-meta-time{background:#fff;border-radius:20px;color:#7f7f7f;font-size:.7rem;font-weight:700;line-height:1rem;max-width:56px;overflow:hidden;position:absolute;right:0;text-align:right;top:14px}.card-meta-light{background:transparent;color:#fff;padding-right:8px}@media only screen and (max-width:1199px) and (min-width:600px){.card-link-members{top:-1px}}@media only screen and (max-width:1199px) and (min-width:900px){.card-meta-time{top:13px}.quick-actions-link{top:6px}}@media only screen and (max-width:899px) and (min-width:600px){.card-link-members{top:-3px}.quick-actions-link{top:3px}.card-meta-time{top:10px}}@media only screen and (max-width:599px){.card-meta-time{font-size:14px;top:15px}}",""]),r.locals={},t.exports=r},1237:function(t,e,n){"use strict";n(1189)},1238:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".card-link-container{height:50px;position:relative}.card-link{background:#fff;border:0 solid;border-radius:12px;display:block;font-weight:700;letter-spacing:-.01em;overflow:hidden;padding:4px 36px 4px 4px;position:relative;-webkit-text-decoration:none;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.card-link-view-button{border-radius:16px}.hidden-card{opacity:.1!important}.card-link:hover{left:0;overflow:auto;position:absolute;top:4px;white-space:normal;width:100%;z-index:2}.card-link-icon{float:left;margin-top:3px}.card-maybe-border{border:2px dashed;border-radius:16px}.edit-card-name .v-text-field{margin:0;padding:0}.card-link-votes-cta{right:0;top:4px;visibility:hidden;z-index:3}.card-link-container:hover .card-link-votes-cta{visibility:visible}@media only screen and (max-width:899px) and (min-width:600px){.card-link{font-size:12px!important}.card-link-container{height:38px;min-height:38px}}@media only screen and (max-width:599px){.card-link{font-size:20px!important}.card-link-votes-cta{top:10px;visibility:visible}}@media only screen and (max-width:1199px) and (min-width:600px){.card-link-container{height:44px;min-height:44px}}",""]),r.locals={},t.exports=r},1239:function(t,e,n){"use strict";var r=n(350),o=n(1054),c=n(1064),l=n(1065),d=n(312),m=n(1053),h=n(1183),f=(n(24),n(9),n(15),n(19),n(20),n(1)),v=n(2),y=(n(33),n(6),n(34),n(168),n(27),n(35),n(13),n(45),n(10),n(72),n(74),n(165)),_=n.n(y),k=n(1077),w=n.n(k),x=n(18),C=n(78),O=n.n(C),j=n(67),I=n(43),S=n(1255);function L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function D(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?L(Object(n),!0).forEach((function(e){Object(v.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var T={name:"LImageUpload",components:{LLabel:j.a,LAsset:I.a,LGalleryList:S.a,draggable:w.a},props:{value:{type:Boolean,default:!1},folder:{type:String,default:"gallery"},preset:{type:String,default:"galleryuploads"}},data:function(){return{uploading:!1,uploadError:!1,isDeleting:!1,uploadComplete:!1,isCameraOpen:!1,isCameraLoading:!1,isPhotoTaken:!1,isShotPhoto:!1,imageStacks:[],uploadedImgs:[],stepPercentage:null,countDown:0,intervalId:null}},computed:D(D({},Object(x.c)({board:"boards/activeBoard",checkedStackIds:"stacks/getCheckedStackIds"})),{},{homeId:function(){return this.$store.state.auth.user.home_id||null},isMobileDevice:function(){return[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some((function(t){return navigator.userAgent.match(t)}))},loadingPercentage:function(){return this.uploadedImgs.length*this.stepPercentage},allStacksChecked:function(){var t=this;return!!this.imageStacks.length&&this.imageStacks.every((function(e){return t.checkedStackIds.includes(e.id)}))},uploadedCheckedStackIds:function(){var t=this;return this.imageStacks.length&&this.checkedStackIds.length?this.checkedStackIds.filter((function(e){return t.imageStacks.map((function(t){return t.id})).includes(e)})):[]},upload:{get:function(){return this.value},set:function(t){!1===t&&(this.$emit("input",!1),this.clearStatus())}}}),beforeDestroy:function(){this.clearStatus()},methods:D(D(D({},Object(x.b)({createStack:"stacks/create",updateIndividualStacks:"stacks/updateIndividuals",deleteStacks:"stacks/deleteMultiple"})),Object(x.d)({toggleCheckedStack:"stacks/toggleCheckedStackIds"})),{},{deleteMultipleStacks:function(){var t=this;return Object(f.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.uploadedCheckedStackIds.length){e.next=2;break}return e.abrupt("return");case 2:return t.isDeleting=!0,e.next=5,t.deleteStacks(t.uploadedCheckedStackIds);case 5:t.isDeleting=!1;case 6:case"end":return e.stop()}}),e)})))()},handleOpenUpload:function(){this.uploadError=!1,this.uploading||(this.isCameraOpen&&this.toggleCamera(),this.$refs.file.click())},toggleCamera:function(){this.uploadError=!1,this.uploading||(this.uploadComplete&&(this.uploadComplete=!1,this.uploadedImgs=[],this.isPhotoTaken=!1),this.isMobileDevice?this.$refs.mobileCamera.click():this.isCameraOpen?(this.isCameraOpen=!1,this.isPhotoTaken=!1,this.isShotPhoto=!1,this.stopCameraStream()):(this.isCameraOpen=!0,this.createCameraElement()))},createCameraElement:function(){var t=this;this.isCameraLoading=!0;var e=window.constraints={audio:!1,video:!0};navigator.mediaDevices.getUserMedia(e).then((function(e){t.isCameraLoading=!1,t.$refs.camera.srcObject=e})).catch((function(e){t.isLoading=!1,console.error(e)}))},stopCameraStream:function(){this.$refs.camera.srcObject.getTracks().forEach((function(track){track.stop()}))},takePhoto:function(){var t=this;if(!this.isPhotoTaken){this.isShotPhoto=!0;setTimeout((function(){t.isShotPhoto=!1}),50)}this.isPhotoTaken=!this.isPhotoTaken;var e=this.$refs.camera.getBoundingClientRect(),canvas=this.$refs.canvas;canvas.width=e.width,canvas.height=e.height,this.$refs.canvas.getContext("2d").drawImage(this.$refs.camera,0,0,e.width,e.height)},startCountdown:function(){var t=this;this.countDown=3,this.intervalId=setInterval((function(){if(1===t.countDown)return t.takePhoto(),t.countDown=0,void clearInterval(t.intervalId);t.countDown=--t.countDown}),1e3)},usePhoto:function(){this.isCameraOpen&&this.stopCameraStream(),this.isCameraOpen=!1,this.uploading=!0,this.stepPercentage=100;var t=this.$refs.canvas.toDataURL();this.uploadAndCreateStack(t,1)},handleDeleteCleanup:function(t){this.imageStacks=this.imageStacks.filter((function(e){return e.id!==t}))},clearStatus:function(){this.uploadError=!1,this.uploadComplete=!1,this.uploading=!1,this.imageStacks=[],this.uploadedImgs=[],this.stepPercentage=null,this.isCameraOpen&&this.stopCameraStream(),this.isCameraOpen=!1,this.isCameraLoading=!1,this.isPhotoTaken=!1,this.isShotPhoto=!1,clearInterval(this.intervalId)},uploadFile:function(){var t=this.$refs.file.files.length?Object.values(this.$refs.file.files):Object.values(this.$refs.mobileCamera.files);this.handleImagesDrop(null,t)},handleImagesDrop:function(t,e){var n=this;this.uploadComplete&&(this.uploadComplete=!1,this.uploadedImgs=[]),this.uploading=!0;var r=t?Object.values(t.dataTransfer.files):e;r.length?(this.stepPercentage=100/r.length,r.forEach((function(img){var t=new FileReader;t.onloadend=function(){var e=t.result;n.uploadAndCreateStack(e,r.length)},t.readAsDataURL(img)}))):this.uploading=!1},uploadAndCreateStack:function(t,e){var n=this;this.uploadError=!1;var r="homes/".concat(this.homeId,"/").concat(this.folder);O.a.post("https://api.cloudinary.com/v1_1/lome/image/upload",{folder:r,upload_preset:this.preset,file:t}).then(function(){var t=Object(f.a)(regeneratorRuntime.mark((function t(r){var o,c,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=r.data.secure_url,t.prev=1,"gallery"!==n.folder){t.next=11;break}return c={name:"",board_id:n.board.id,image:o,type:"image",view:"image",width:1,height:1},t.next=6,n.createStack(c);case 6:l=t.sent,n.imageStacks.push(l),n.uploadedImgs.push(l),t.next=13;break;case 11:n.uploadedImgs.push(o),n.uploadedImgs.length===e&&(n.$emit("uploaded",n.uploadedImgs),n.clearStatus());case 13:n.uploadedImgs.length===e&&(n.uploading=!1,n.uploadComplete=!0),t.next=21;break;case 16:t.prev=16,t.t0=t.catch(1),console.error(t.t0),n.uploadError=!0,n.uploading=!1;case 21:case"end":return t.stop()}}),t,null,[[1,16]])})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){console.error(t),n.uploadError=!0,n.uploading=!1}))},toggleCheckAllStacks:function(){var t=this;this.imageStacks.length&&(this.allStacksChecked?this.imageStacks.forEach((function(e){t.checkedStackIds.includes(e.id)&&t.toggleCheckedStack(e.id)})):this.imageStacks.forEach((function(e){t.checkedStackIds.includes(e.id)||t.toggleCheckedStack(e.id)})))},updateStackOrder:function(){var t=[];this.imageStacks.forEach((function(e,n){t.push({id:e.id,xsorder:n+1})})),t.length&&this.debounceUpdate(t)},debounceUpdate:_()(function(){var t=Object(f.a)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.updateIndividualStacks(e);case 2:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),500)})},M=T,P=(n(1274),n(12)),component=Object(P.a)(M,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center"},[e(l.a,{scopedSlots:t._u([{key:"activator",fn:function(n){var r=n.on,o=n.attrs;return[e("span",t._g(t._b({attrs:{dark:""}},"span",o,!1),r))]}}]),model:{value:t.upload,callback:function(e){t.upload=e},expression:"upload"}},[t._v(" "),e("div",{staticClass:"d-flex justify-center"},[e("div",{staticClass:"d-flex justify-center",staticStyle:{border:"3px dashed #179b2d","border-radius":"30px"},style:t.$vuetify.breakpoint.xsOnly?"width: 100%":"width: 80%",on:{dragover:function(t){t.preventDefault()},drop:[function(t){t.preventDefault()},function(e){!t.uploading&&t.handleImagesDrop(e)}]}},[e("div",{staticClass:"l-gallery-upload d-flex flex-column align-center",staticStyle:{"border-radius":"30px"}},[t.uploadComplete||t.uploading?e("div",{staticClass:"py-3 pr-4 d-flex align-center justify-end",staticStyle:{"align-self":"flex-start",background:"#179b2d","border-top-left-radius":"25px",transition:"all 0.5s ease"},style:"width:".concat(t.loadingPercentage,"%;border-top-right-radius: ").concat(100===t.loadingPercentage?"25px":"0px")},[e("LLabel",{staticStyle:{"text-align":"right",color:"white !important"},style:t.$vuetify.breakpoint.xsOnly?"font-size: 12px;":"font-size: 16px;"},[t._v("\n              "+t._s(t.uploadComplete?"Upload Complete":t.loadingPercentage>10?"".concat(Math.round(t.loadingPercentage),"% Complete"):"")+"\n            ")])],1):t._e(),t._v(" "),t.uploading||t.uploadComplete?t.uploading?e("div",{staticClass:"d-flex justify-center align-center",staticStyle:{height:"85%"}},[e("LAsset",{attrs:{file:"upload",height:t.$vuetify.breakpoint.xsOnly?"256":"512"}})],1):e("div",{staticClass:"d-flex justify-center",staticStyle:{height:"85%",width:"100%",overflow:"auto"}},[e(h.a,{staticClass:"mt-5 px-2",staticStyle:{width:"100%"},scopedSlots:t._u([{key:"default",fn:function(){return[t.$vuetify.breakpoint.xsOnly?t._e():e("thead",[e("tr",[e(c.a,{staticClass:"gallery-table-container",attrs:{fluid:""}},[e(m.a,{staticClass:"d-flex align-center"},[e(o.a,{attrs:{cols:"2"}},[e("th",[e("div",{staticClass:"d-flex align-center justify-left"},[e("LAsset",{staticClass:"mr-3",attrs:{file:t.allStacksChecked?"icon-check-all-tasks-checked":"icon-check-all-tasks-unchecked",height:"24"},on:{clicked:t.toggleCheckAllStacks}}),t._v(" "),e("LLabel",{staticStyle:{"font-size":"14px","font-weight":"500"}},[t._v("\n                                All\n                              ")])],1)])]),t._v(" "),e(o.a,{attrs:{cols:"2"}},[e("th",{staticClass:"text-left"},[e("LLabel",{staticStyle:{"font-size":"14px","font-weight":"500"}},[t._v("\n                              Image\n                            ")])],1)]),t._v(" "),e(o.a,{attrs:{cols:"7"}},[e("th",{staticClass:"text-left"},[e("LLabel",{staticStyle:{"font-size":"14px","font-weight":"500"}},[t._v("\n                              Title\n                            ")])],1)]),t._v(" "),e(o.a,{staticClass:"d-flex justify-end",attrs:{cols:"1"}},[e("th",{staticClass:"text-right"},[e("LLabel",{staticStyle:{"font-size":"14px","font-weight":"500"}},[t._v("\n                              More\n                            ")])],1)])],1),t._v(" "),e("div",{staticStyle:{height:"1px",background:"#179b2d"}})],1)],1)]),t._v(" "),e("draggable",{attrs:{tag:"tbody",group:{name:"stacks"}},on:{update:t.updateStackOrder},model:{value:t.imageStacks,callback:function(e){t.imageStacks=e},expression:"imageStacks"}},t._l(t.imageStacks,(function(n){return e("LGalleryList",{key:"stack-".concat(n.id),attrs:{"stack-id":n.id,"show-delete-btn":""},on:{delete:t.handleDeleteCleanup}})})),1)]},proxy:!0}])})],1):e("div",{staticClass:"d-flex justify-center align-center",staticStyle:{height:"85%"}},[t.uploadError?e("div",[e("div",{staticClass:"d-flex align-center pa-4"},[e("LLabel",{staticClass:"mr-2",staticStyle:{color:"#333333 !important","font-size":"14px"}},[t._v("\n                  Oops! error uploading your image!\n                ")]),t._v(" "),e("LAsset",{attrs:{"file-url":"https://res.cloudinary.com/lome/image/upload/emojis/sad-relieved-face.png",height:"28"}})],1),t._v(" "),e("div",{staticClass:"d-flex justify-center"},[e(r.a,{staticClass:"rounded-xl elevation-0 default-font mt-4",attrs:{color:"primary","x-large":""},on:{click:function(e){e.preventDefault(),t.uploadError=!1,t.$refs.file.click()}}},[t._v("\n                  Try again\n                ")])],1)]):t.isCameraOpen?e("div",{staticClass:"d-flex flex-column align-center justify-center",staticStyle:{height:"100%"}},[e("div",{staticClass:"d-flex flex-column justify-center",staticStyle:{height:"80%",width:"100%"}},[e("video",{directives:[{name:"show",rawName:"v-show",value:!t.isPhotoTaken,expression:"!isPhotoTaken"}],ref:"camera",staticStyle:{width:"100%"},attrs:{autoplay:""}}),t._v(" "),e("canvas",{directives:[{name:"show",rawName:"v-show",value:t.isPhotoTaken,expression:"isPhotoTaken"}],ref:"canvas",attrs:{id:"photoTaken"}})]),t._v(" "),e("div",{staticClass:"d-flex flex-column justify-center",staticStyle:{height:"10%"}},[t.isPhotoTaken?t._e():e("div",[t.countDown?e("span",{staticClass:"primary--text l-take-photo-timer",staticStyle:{"font-size":"38px"}},[t._v("\n                    "+t._s(t.countDown)+"\n                  ")]):e("div",[e(r.a,{staticClass:"rounded-xl mr-5",attrs:{depressed:"",color:"primary"},on:{click:function(e){return e.preventDefault(),t.takePhoto.apply(null,arguments)}}},[e("LLabel",{staticClass:"white--text",staticStyle:{"font-size":"12px","font-weight":"500"}},[t._v("\n                        Take Photo")])],1),t._v(" "),e(r.a,{staticClass:"rounded-xl",attrs:{depressed:"",color:"primary"},on:{click:function(e){return e.preventDefault(),t.startCountdown.apply(null,arguments)}}},[e("LLabel",{staticClass:"white--text",staticStyle:{"font-size":"12px","font-weight":"500"}},[t._v("\n                        3s")])],1)],1)]),t._v(" "),t.isPhotoTaken?e("div",{staticClass:"d-flex justify-center"},[e(r.a,{staticClass:"rounded-xl mr-5",attrs:{depressed:"",color:"primary"},on:{click:function(e){return e.preventDefault(),t.usePhoto.apply(null,arguments)}}},[e("LLabel",{staticClass:"white--text",staticStyle:{"font-size":"12px","font-weight":"500"}},[t._v("\n                      Use Photo")])],1),t._v(" "),e(r.a,{staticClass:"rounded-xl",attrs:{depressed:"",color:"primary"},on:{click:function(e){return e.preventDefault(),t.takePhoto.apply(null,arguments)}}},[e("LLabel",{staticClass:"white--text",staticStyle:{"font-size":"12px","font-weight":"500"}},[t._v("\n                      Retake")])],1)],1):t._e()])]):e("div",{staticClass:"d-flex align-center"},[e("LLabel",{staticClass:"mr-2",staticStyle:{color:"#333333 !important","font-size":"16px"}},[t._v("\n                Drag images here to add\n              ")]),t._v(" "),e("LAsset",{staticClass:"cursor-pointer",attrs:{"file-url":"https://res.cloudinary.com/lome/image/upload/v1643650788/assets/icon-add-stack.png",height:"32"},on:{clicked:function(e){return t.$refs.file.click()}}})],1)]),t._v(" "),e("div",{staticClass:"l-gallery-bottom-controls d-flex justify-space-between",class:{"half-opacity":t.uploading}},[e("div",{staticClass:"d-flex \\ align-center",staticStyle:{width:"50%"}},[e("div",{staticClass:"d-flex flex-column mx-8",class:{"cursor-pointer":!t.uploading}},[e("LAsset",{attrs:{"file-url":"https://res.cloudinary.com/lome/image/upload/v1631135705/emojis/camera.png",height:"50"},on:{clicked:t.toggleCamera}}),t._v(" "),e("LLabel",{staticClass:"mb-2"},[t._v(" Camera ")])],1),t._v(" "),e("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file",multiple:"",accept:"image/*"},on:{change:t.uploadFile}}),t._v(" "),e("input",{ref:"mobileCamera",staticStyle:{display:"none"},attrs:{type:"file",multiple:"",accept:"image/*",capture:"environment"},on:{change:t.uploadFile}}),t._v(" "),e("div",{staticClass:"d-flex flex-column mx-6",class:{"cursor-pointer":!t.uploading},on:{click:t.handleOpenUpload}},[e("LAsset",{attrs:{"file-url":"https://res.cloudinary.com/lome/image/upload/v1635189079/emojis/upload.png",height:"50"}}),t._v(" "),e("LLabel",{staticClass:"mb-2"},[t._v(" Upload ")])],1),t._v(" "),t.$vuetify.breakpoint.xsOnly?t._e():e("div",{staticClass:"d-flex flex-column mx-6",class:{hidden:!t.uploadedCheckedStackIds.length,"cursor-pointer":t.uploadedCheckedStackIds.length&&!t.uploading},on:{click:t.deleteMultipleStacks}},[t.isDeleting?e("div",{staticClass:"my-2 d-flex justify-center",staticStyle:{height:"34px"}},[e(d.a,{attrs:{size:t.$vuetify.breakpoint.xsOnly?"18":"28",color:"primary",indeterminate:""}})],1):e("LAsset",{attrs:{"file-url":"https://res.cloudinary.com/lome/image/upload/v1631135709/emojis/trash.png",height:"50"}}),t._v(" "),e("LLabel",{staticClass:"mb-2"},[t._v(" Delete ")])],1)]),t._v(" "),e("div",{staticClass:"d-flex justify-end align-center",staticStyle:{width:"50%"}},[e(r.a,{staticClass:"rounded-xl mr-5 elevation-0",staticStyle:{width:"50%"},attrs:{color:"primary",disabled:t.uploading},on:{click:function(e){e.preventDefault(),t.clearStatus(),t.upload=!1}}},[t._v("\n                Done\n              ")])],1)])])])])])],1)}),[],!1,null,null,null);e.a=component.exports},1248:function(t,e,n){var content=n(1336);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("24444412",content,!0,{sourceMap:!1})},1249:function(t,e,n){var content=n(1340);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("6d94fc87",content,!0,{sourceMap:!1})},1250:function(t,e,n){var content=n(1342);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("43738405",content,!0,{sourceMap:!1})},1254:function(t,e,n){"use strict";var r=n(1054),o=n(1062),c=n(1053),l=(n(163),n(26),n(24),n(9),n(19),n(20),n(2)),d=(n(36),n(45),n(13),n(6),n(53),n(15),n(77),n(10),n(27),n(56),n(35),n(102),n(18)),m=n(1087),h=n(1088);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){Object(l.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var y={name:"LThemePreview",components:{LGameTheme:m.a,LVote:h.a},props:{cardId:{type:String,default:""},cardObj:{type:Object,default:function(){return{}}},small:{type:Boolean,default:!1},votesArr:{type:Array,default:function(){return[]}},limit:{type:Number,default:0},column:{type:Boolean,default:!1},date:{type:String,default:""}},data:function(){return{fakeVotes:[{id:1,name:"Salad",icon:"salad",limit:4,color:"lred",tag_color:"lred",voters:[],number:0},{id:2,name:"Drinks",icon:"juice",limit:2,color:"lred",tag_color:"lred",voters:[],number:1},{id:3,name:"Dessert",icon:"cake-slice",limit:3,color:"green",tag_color:"green",voters:[],number:3}]}},computed:v(v({},Object(d.c)({getCardById:"cards/getById",getTagByTypeForCard:"tags/getTagByTypeForCard",cardTags:"tags/cardTags",getVotesByCardId:"votes/getByCardId"})),{},{card:function(){return this.cardId?this.getCardById[this.cardId]:this.cardObj},cardVotes:function(){return this.getVotesByCardId(this.cardId)?this.filterByFirstDate(this.getVotesByCardId(this.cardId)).map((function(t){return v(v({},t),{},{number:0})})):[]},color:function(){return this.card&&this.card.game_theme&&this.card.game_theme.color?this.card.game_theme.color:"primary"},votes:function(){var t;return t=this.votesArr&&this.votesArr.length?this.votesArr:this.cardVotes.length?this.cardVotes:this.fakeVotes,t},rsvpVotes:function(){return this.votes.filter((function(t){return!!t.slug}))},nonRsvpVotes:function(){var t=this.votes.filter((function(t){return!t.slug}));return this.small&&this.$vuetify.breakpoint.mdAndDown?t.slice(0,2):this.limit?t.slice(0,this.limit):t},stackVotes:function(){return this.small?this.$vuetify.breakpoint.smAndDown:this.$vuetify.breakpoint.xsOnly},shortDescription:function(){if(!this.card.description)return"";var t=this.card.description.indexOf("<p>"),e=this.card.description.indexOf("</p>")+4,n=this.stripHtml(this.card.description.slice(t,e));!n&&this.card.description&&(n=this.stripHtml(this.card.description));var r=this.getWords(n,15);return r+(r.length<n.length?"...":"")}}),mounted:function(){this.cardId&&this.indexVotes(this.cardId),this.formatFakeVotes()},methods:v(v({},Object(d.b)({indexVotes:"votes/index"})),{},{filterByFirstDate:function(t){var e=this;if(!t[0]||!t[0].date)return t;var n=t[0].date;return t.filter((function(t){return t.date===n&&("signup-rsvp"!==e.card.vote_type||!t.slug)}))},getNumberOfVoters:function(t){if(!t||!t.voters||!t.voters.length)return 0;var e=0;return t.voters.forEach((function(t){e+=t.number||1})),e},reachedLimit:function(t){return!["yes","no"].includes(t.slug)&&(!!t.limit&&this.getNumberOfVoters(t)>=t.limit)},tagColor:function(t){return t.tag_color?t.tag_color:"yes"===t.slug?null:this.reachedLimit(t)||!t.limit?this.color:"lred"},formatFakeVotes:function(){if(this.cardId){var t=this.getTagByTypeForCard("theme",this.cardId);if(t){var e=this.cardTags.find((function(t){return"Times"===t.name})),n=!1;e&&e.cards&&e.cards.includes(this.cardId)&&(n=!0),(n||"work"===t.slug||"parent-teacher-conferences"===this.card.slug)&&(this.fakeVotes=[{id:1,name:"10:00am",icon:"sparkle",limit:1,color:"lred",tag_color:"lred",voters:[],number:0},{id:2,name:"11:00am",icon:"sparkle",limit:1,color:"lred",tag_color:"lred",voters:[],number:0},{id:3,name:"12:00pm",icon:"sparkle",limit:1,color:"green",tag_color:"green",voters:[],number:1}]),"concessions"===t.slug&&(this.fakeVotes=[{id:1,name:"Popcorn",icon:"popcorn",limit:4,color:"lred",tag_color:"lred",voters:[],number:0},{id:2,name:"Drinks",icon:"juice",limit:2,color:"lred",tag_color:"lred",voters:[],number:1},{id:3,name:"Hot Dogs",icon:"hot-dog",limit:3,color:"green",tag_color:"green",voters:[],number:3}]),"sports"===t.slug&&(this.fakeVotes=[{id:1,name:"Aug 14",icon:"watermelon",limit:1,color:"lred",tag_color:"lred",voters:[],number:0},{id:2,name:"Sep 7",icon:"orange-real",limit:2,color:"lred",tag_color:"lred",voters:[],number:1},{id:3,name:"Oct 10",icon:"juice",limit:2,color:"green",tag_color:"green",voters:[],number:2}])}}},stripHtml:function(html){return"undefined"==typeof DOMParser?html:(new DOMParser).parseFromString(html,"text/html").body.textContent||""},getWords:function(t,e){return t.split(" ").slice(0,e).join(" ")},voteColor:function(t){return t.slug&&"yes"===t.slug?"primary":t.slug&&"no"===t.slug?"lred":t.tag_color||this.color}})},_=n(12),component=Object(_.a)(y,(function(){var t=this,e=t._self._c;return t.card?e("div",{staticClass:"theme-preview position-relative pa-4 pa-sm-12 cursor-pointer",class:"theme-preview-".concat(t.card.id),staticStyle:{overflow:"hidden","z-index":"1"},on:{click:function(e){return e.preventDefault(),t.$emit("clicked")}}},[e("div",{staticClass:"mx-auto",staticStyle:{"max-width":"900px"}},[e("div",{staticClass:"white shadow-outline position-relative rounded-lg pa-4",staticStyle:{"z-index":"2"}},[e(c.a,{attrs:{align:"center"}},[e(r.a,{attrs:{cols:"12",sm:"3"}},[e(o.a,{staticClass:"rounded-lg",class:{"mx-auto":t.$vuetify.breakpoint.xsOnly},attrs:{src:t.card.image,"aspect-ratio":"1","max-width":t.$vuetify.breakpoint.xsOnly?140:null}})],1),t._v(" "),e(r.a,{attrs:{cols:"12",sm:"9"}},[e("div",{class:"".concat(t.color,"--text font-weight-bold"),style:"line-height:1.15; font-size:".concat(t.small?"1.2rem":"32px")},[t._v("\n            "+t._s(t.card.name)+"\n          ")]),t._v(" "),e("div",{staticClass:"my-1"},[t.date?e("div",{staticClass:"font-weight-bold grey--text",staticStyle:{"font-size":"75%"}},[t._v("\n              "+t._s(t.date)+"\n            ")]):t._e(),t._v(" "),t.card.location?e("div",{staticClass:"font-weight-bold grey--text",staticStyle:{"font-size":"75%"}},[t._v("\n              "+t._s(t.card.location)+"\n            ")]):t._e()]),t._v(" "),e("p",{staticClass:"mt-2 mb-0",style:t.small?"font-size:80%":""},[t.shortDescription?[t._v(t._s(t.shortDescription))]:[t._v("Come enjoy our event!"),e("br"),t._v("You can customize your own event\n              description.")]],2)])],1)],1),t._v(" "),t.rsvpVotes&&t.rsvpVotes.length?e("div",{staticClass:"shadow-outline position-relative pa-4 white rounded-lg my-4",staticStyle:{"z-index":"2"}},[t._m(0),t._v(" "),e(c.a,t._l(t.rsvpVotes,(function(n){return e(r.a,{key:"rsvp-vote-".concat(n.id),attrs:{cols:"12",sm:t.small||t.column?12:6}},[e("LVote",{staticClass:"full-height",attrs:{name:n.name,"hide-icon":"",voters:n.voters,tag:n.limit?"".concat(n.number||"0","/").concat(n.limit):"".concat(n.number||"0"),color:n.color,disabled:"","tag-color":t.voteColor(n),small:t.stackVotes||t.column,"vote-type":"rsvp","reached-limit":n.number>=n.limit}})],1)})),1)],1):t._e(),t._v(" "),e(c.a,{attrs:{align:"stretch",dense:t.column}},t._l(t.nonRsvpVotes,(function(n){return e(r.a,{key:"vote-".concat(n.id),class:{"mb-1":t.column},attrs:{cols:t.column?12:t.nonRsvpVotes.length>3&&!t.small?6:12,sm:t.small||t.column?12:t.nonRsvpVotes.length>3?3:3===t.nonRsvpVotes.length?4:6,md:t.column?12:t.nonRsvpVotes.length>3?3:3===t.nonRsvpVotes.length?4:6}},[e("LVote",{staticClass:"full-height",attrs:{name:n.name,icon:n.icon,voters:n.voters,tag:n.limit?"".concat(n.number||"0","/").concat(n.limit):"".concat(n.number||"0"),color:n.color,disabled:"","tag-color":t.voteColor(n),"card-view":!t.stackVotes&&!t.column,small:t.stackVotes||t.column,"slot-view":t.stackVotes,"vote-type":"signup","reached-limit":n.number>=n.limit}})],1)})),1)],1),t._v(" "),e("LGameTheme",{attrs:{theme:t.card.game_theme,"num-tasks":1,wrapper:"theme-preview-".concat(t.card.id),posh:"",small:""}})],1):t._e()}),[function(){var t=this._self._c;return t("div",[t("strong",[this._v("RSVP")])])}],!1,null,null,null);e.a=component.exports},1255:function(t,e,n){"use strict";var r=n(1054),o=n(1064),c=n(1062),l=n(1053),d=(n(24),n(9),n(15),n(13),n(6),n(19),n(10),n(20),n(2)),m=(n(26),n(27),n(35),n(73),n(36),n(202),n(102),n(18)),h=n(235),f=n(43),v=n(371),y=n(1226);function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach((function(e){Object(d.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var w={name:"LGalleryList",components:{LDivider:h.a,LAsset:f.a,LTextInput:v.a,LStackMenu:y.a},props:{stackId:{type:String,default:""}},data:function(){return{stackName:"",optionsOpen:!1,isRenaming:!1,isDeleting:!1}},computed:k(k({},Object(m.c)({getStackById:"stacks/getById",checkedStackIds:"stacks/getCheckedStackIds"})),{},{stack:function(){return this.getStackById[this.stackId]},stackN:function(){var t;return null===(t=this.stack)||void 0===t?void 0:t.name},circleChecked:function(){return this.checkedStackIds.includes(this.stackId)}}),watch:{stackN:function(t){this.stackName=t}},mounted:function(){this.stack&&(this.stackName=this.stack.name)},methods:k(k(k({},Object(m.b)({updateStack:"stacks/update",deleteStack:"stacks/delete"})),Object(m.d)({toggleCheckedStack:"stacks/toggleCheckedStackIds"})),{},{handleImgRotate:function(t){var e=this.stack.image.split("/"),n=e.indexOf("upload")+1;if(e[n].startsWith("a_")){var r=Number(e[n].split("_")[1]);if(270===r&&"right"===t||90===r&&"left"===t)e.splice(n,1);else{var o="a_".concat("right"===t?r+90:r-90);e.splice(n,1,o)}}else"right"===t&&e.splice(n,0,"a_90"),"left"===t&&e.splice(n,0,"a_270");var c=e.join("/");this.updateStack({id:this.stackId,fields:{image:c}})},updateStackName:function(){this.updateStack({id:this.stackId,fields:{name:this.stackName}})},handleCheck:function(){this.toggleCheckedStack(this.stackId)},handleRename:function(){var t=this;this.isRenaming=!1,this.$nextTick((function(){t.isRenaming=!0}))}})},x=(n(1272),n(12)),component=Object(x.a)(w,(function(){var t=this,e=t._self._c;return t.stack?e("tr",[e(o.a,{staticClass:"gallery-table-container",attrs:{fluid:""}},[e(l.a,{staticClass:"d-flex align-center"},[e(r.a,{style:t.$vuetify.breakpoint.xsOnly&&"order:0",attrs:{cols:"2",lg:"1"}},[e("td",[e("div",{staticClass:"d-flex align-center justify-left"},[e("div",{staticClass:"gallery-circle mr-4 cursor-pointer",class:t.circleChecked?"gallery-check-circle":"gallery-uncheck-circle",on:{click:t.handleCheck}}),t._v(" "),t.$vuetify.breakpoint.xsOnly?t._e():e("LAsset",{staticClass:"cursor-pointer",attrs:{file:"icon-move-y",height:"24"}})],1)])]),t._v(" "),e(r.a,{style:t.$vuetify.breakpoint.xsOnly&&"order:1",attrs:{cols:"2",lg:"1"}},[e("td",{staticClass:"cursor-pointer",on:{click:function(e){return t.$router.push("/g/".concat(t.stack.board_id,"?i=").concat(t.stackId))}}},[e(c.a,{attrs:{src:t.stack.image,width:t.$vuetify.breakpoint.xsOnly?40:72}})],1)]),t._v(" "),e(r.a,{staticStyle:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"},style:t.$vuetify.breakpoint.xsOnly&&"order:2",attrs:{cols:"7",lg:"9"}},[e("td",{staticClass:"text-left"},[e("span",{class:{"grey--text text--lighten-1":!t.stackName}},[e("LTextInput",{style:"font-size: ".concat(t.$vuetify.breakpoint.xsOnly?12:18,"px; font-weight: 700"),attrs:{placeholder:"Caption",autofocus:t.isRenaming,"update-value":t.updateStackName},model:{value:t.stackName,callback:function(e){t.stackName=e},expression:"stackName"}})],1)])]),t._v(" "),e(r.a,{staticClass:"d-flex justify-end",style:t.$vuetify.breakpoint.xsOnly&&"order:3",attrs:{cols:"1"}},[e("td",{staticClass:"text-right"},[e("LStackMenu",{attrs:{"stack-id":t.stackId,large:"",visible:""},on:{renaming:t.handleRename,rotate:t.handleImgRotate,"move-mobile":function(e){return t.$emit("move-mobile",e)}}})],1)])],1),t._v(" "),e("LDivider",{class:{"mb-3":t.$vuetify.breakpoint.xsOnly},attrs:{color:"#333333"}})],1)],1):t._e()}),[],!1,null,null,null);e.a=component.exports},1260:function(t,e,n){"use strict";n(1201)},1261:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,"a.reverse-underline{-webkit-text-decoration:none;text-decoration:none}a.reverse-underline:hover{-webkit-text-decoration:underline;text-decoration:underline}",""]),r.locals={},t.exports=r},1262:function(t,e,n){"use strict";n(1202)},1263:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".edit-chore-name .v-input{margin:0!important;padding:0!important}",""]),r.locals={},t.exports=r},1264:function(t,e,n){"use strict";n(1203)},1265:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,"@media only screen and (max-width:768px){.hide-on-mobile{display:none}.is-mobile-view .hide-on-mobile{display:block}}.edit-chore-name .v-input{margin:0!important;padding:0!important}.bdr-btm{border-bottom:1px solid #ddd}.bdr-highlight{border:1px solid #179b2d}",""]),r.locals={},t.exports=r},1266:function(t,e,n){"use strict";n(1204)},1267:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".penguin-circle{background:#fff;border:2px solid #ffb31a;border-radius:50%;display:block;float:left;height:49px;margin-right:12px;padding:2px;position:relative;width:49px}.penguin-circle img{border-radius:50%;left:2px;position:absolute;top:2px;z-index:4}.outlined-card{background:#fff;border:3px solid #efeadc!important}",""]),r.locals={},t.exports=r},1268:function(t,e,n){"use strict";n(1205)},1269:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".stack-box-container{background-image:url(https://res.cloudinary.com/lome/image/upload/v1649849246/assets/icon-stack-box.png);background-size:contain;height:52px;width:52px}",""]),r.locals={},t.exports=r},1270:function(t,e,n){"use strict";n(1206)},1271:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".l-stack-menu{border:2px solid transparent;border-radius:16px;height:32px;line-height:32px;margin:-32px 0 0}.l-stack-menu-icon,.l-stack-menu-icon .v-btn__content{height:20px}.l-stack-menu-icon{line-height:20px;margin-top:-5px}.show-on-hover{visibility:hidden}.l-stack-menu-is-editable .show-on-hover{visibility:visible}",""]),r.locals={},t.exports=r},1272:function(t,e,n){"use strict";n(1207)},1273:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".gallery-circle{border-radius:50%;height:24px;width:24px}.gallery-check-circle{background:#179b2d;border:3px solid #179b2d;color:#179b2d}.gallery-uncheck-circle{border:3px solid #7f7f7f;color:#7f7f7f}",""]),r.locals={},t.exports=r},1274:function(t,e,n){"use strict";n(1208)},1275:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,"@keyframes timer{0%{opacity:0}to{opacity:.8}}.l-take-photo-timer{animation-duration:1s;animation-iteration-count:infinite;animation-name:timer}.l-gallery-upload{background:#fff;height:75vh;width:100%}.l-gallery-bottom-controls{border-top:1px solid #fff;box-shadow:0 -4px 4px -4px rgba(0,0,0,.25);width:100%}",""]),r.locals={},t.exports=r},1284:function(t,e,n){"use strict";var r=n(350),o=n(1041),c=n(1054),l=n(1065),d=n(1053),m=(n(26),n(15),n(77),n(9),n(13),n(6),n(19),n(10),n(20),n(2)),h=(n(24),n(53),n(73),n(27),n(35),n(5)),f=n.n(h),v=n(48),y=n.n(v),_=n(18),k=n(113),w=n(380),x=n(1224),C=n(1120);function O(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?O(Object(n),!0).forEach((function(e){Object(m.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var I={name:"LPreviewModal",components:{LImagePicker:w.a,LStackCountdown:x.a,LTasks:C.a},props:{value:{type:Boolean,default:!1},date:{type:String,default:""},cardId:{type:String,default:""},previewData:{type:Object},submitText:{type:String,default:"Yes!"},linked:{type:Boolean,default:!1}},data:function(){return{}},computed:j(j({},Object(_.c)({getCard:"cards/getById"})),{},{preview:function(){return this.cardId?this.getCard[this.cardId]:this.previewData?this.previewData:void 0},dialog:{get:function(){return this.value},set:function(t){this.$emit("input",t)}},isCountdown:function(){return this.preview.type&&"countdown"===this.preview.type},hideName:function(){return"image"===this.preview.type},image:function(){return this.preview?this.preview.image?this.preview.image:this.preview.icon?this.getIconUrl(this.preview.icon):"image"===this.preview.type?this.preview.name:k.a[this.preview.type]?k.a[this.preview.type].default:"":""},otherDates:function(){for(var t,e=this.date?f()(this.date).day():f()().day(),n=[],r=0;r<7;r++)t=this.date?f()(this.date).day(e+r):f()().day(e+r),n.push({date:t.format("YYYY-MM-DD"),name:t.format("dddd")});return n}}),methods:{getDate:function(t){return f()(t).format("MMM D")},getDayOfWeek:function(t){return f()(t).format("dddd")},typeField:function(t,e){var n="";switch(e){case"color":n="primary";break;case"single":n=this.capitalize(t)}return y()(k.a,"".concat(t,".").concat(e),n)},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},added:function(){this.$emit("added",this.preview),this.dialog=!1},getIconUrl:function(t){return t?t.startsWith("https://")?t:(t.includes("/")||(t="emojis/".concat(t)),"https://res.cloudinary.com/lome/image/upload/".concat(t,".png")):null},clicked:function(){this.linked&&this.preview.id&&this.$router.push("/a/".concat(this.preview.id))}}},S=(n(1296),n(12)),component=Object(S.a)(I,(function(){var t=this,e=t._self._c;return e(l.a,{attrs:{"content-class":"rounded-xl outlined-preview elevation-0","max-width":"420px"},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[t.preview?e(o.a,{staticClass:"rounded-xl elevation-0"},[e("div",{class:{"cursor-pointer":t.linked},on:{click:t.clicked}},[e("LImagePicker",{attrs:{editable:!1},model:{value:t.image,callback:function(e){t.image=e},expression:"image"}})],1),t._v(" "),e("div",{staticClass:"px-6 pt-2 pb-6"},[t.isCountdown?e("div",{staticClass:"pt-4",staticStyle:{width:"100%",height:"320px"}},[e("LStackCountdown",{staticClass:"full-height",staticStyle:{width:"100%"},attrs:{"stack-data":t.preview,small:""}})],1):t._e(),t._v(" "),e("div",{class:{"cursor-pointer":t.linked},on:{click:t.clicked}},[t.hideName?t._e():e("h2",{class:"\n              ".concat(t.typeField(t.preview.type,"color"),"--text\n              preview-modal-name\n              my-3")},[t._v("\n          "+t._s(t.preview.name)+"\n        ")]),t._v(" "),t.preview.type?e(r.a,{staticClass:"rounded-xl mb-3 elevation-0",attrs:{small:"",dark:"",color:t.typeField(t.preview.type,"color")}},[t._v(t._s(t.typeField(t.preview.type,"single")))]):t._e()],1),t._v(" "),e("div",{staticClass:"preview-modal-description mb-3",domProps:{innerHTML:t._s(t.preview.description)}}),t._v(" "),t.cardId?e("LTasks",{key:"tasks-preview-".concat(t.cardId),attrs:{"card-id":t.cardId,small:"",editable:!1}}):t._e(),t._v(" "),t.date?e(d.a,{staticClass:"mt-6"},[e(c.a,{attrs:{sm:"6"}},[e(r.a,{attrs:{color:"primary",rounded:"",dark:"",elevation:"0",block:""},on:{click:function(e){return e.preventDefault(),t.added.apply(null,arguments)}}},[t._v(t._s(t.submitText))])],1),t._v(" "),e(c.a,{attrs:{sm:"6"}},[e(r.a,{class:"primary--text",attrs:{color:"secondary",dark:"",rounded:"",elevation:"0",block:""},on:{click:function(e){e.preventDefault(),t.dialog=!1}}},[t._v("\n            No thanks\n          ")])],1)],1):t._e()],1)]):t._e()],1)}),[],!1,null,null,null);e.a=component.exports},1294:function(t,e,n){"use strict";n(1218)},1295:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".l-stack-countdown{height:90%}@media only screen and (max-width:599px){.l-stack-countdown-color{min-height:256px}}.celebrate-icon{position:absolute}",""]),r.locals={},t.exports=r},1296:function(t,e,n){"use strict";n(1219)},1297:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".back-arrow{cursor:pointer;left:0;position:absolute;top:-3px;z-index:1}.outlined-preview{background:#fff;border:3px solid #179b2d!important}.preview-modal-name{font-size:1.2rem}.preview-modal-description{font-size:.8rem;line-height:1.225}",""]),r.locals={},t.exports=r},1299:function(t,e,n){"use strict";n(1220)},1300:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".outlined-board-preview{border:2px solid #179b2d}",""]),r.locals={},t.exports=r},1301:function(t,e,n){var content=n(1390);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("6ba6b7f7",content,!0,{sourceMap:!1})},1302:function(t,e,n){var content=n(1392);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("0d082b3a",content,!0,{sourceMap:!1})},1303:function(t,e,n){var content=n(1394);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("cff5762a",content,!0,{sourceMap:!1})},1304:function(t,e,n){var content=n(1396);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("4298b7dc",content,!0,{sourceMap:!1})},1308:function(t,e,n){"use strict";var r=n(350),o=n(1054),c=n(1210),l=n(1062),d=n(1053),m=n(126),h=n(1059),f=n(103),v=(n(24),n(163),n(26),n(9),n(13),n(6),n(19),n(10),n(20),n(2)),y=(n(15),n(77),n(53),n(102),n(73),n(18));function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach((function(e){Object(v.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var w={name:"LFeatureBoard",components:{LEmoji:n(100).a},props:{boardId:{type:String,default:""},tag:{type:String,default:""},editable:{type:Boolean,default:!1},small:{type:Boolean,default:!1},square:{type:Boolean,default:!1},hideDescription:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},preview:{type:Boolean,default:!1},button:{type:String,default:"View"},boardObj:{type:Object,default:function(){return{}}}},data:function(){return{addDate:null,addDaytime:null,isSaving:!1,previewModal:!1,hover:!1}},computed:k(k({},Object(y.c)({home:"home/home",boards:"boards/boards",getPlannerById:"planners/getById",getTagByTypeForBoard:"tags/getTagByTypeForBoard"})),{},{board:function(){return this.boardObj&&this.boardObj.id?this.boardObj:this.getPlannerById[this.boardId]},color:function(){return this.board&&this.board.template&&this.board.template.color?this.board.template.color:"primary"},titleColor:function(){return this.outlined?this.color:this.preview?"black":"white"},descriptionColor:function(){return this.preview||this.outlined?"black":"white"},image:function(){return this.preview?this.board.template&&this.board.template.image?this.board.template.image:null:this.board.image?this.board.image:this.board.icon?this.board.icon:""},shortDescription:function(){if(!this.board.template||!this.board.template.description)return"";var t,e=this.board.template.description,n=e.indexOf("<p>"),r=e.indexOf("</p>")+4;t=-1===n&&3===r?this.stripHtml(e):this.stripHtml(e.slice(n,r));var o=this.preview?12:15,c=this.getWords(t,o);return c+(c.length<t.length?"...":"")},theTag:function(){return this.getTagByTypeForBoard(this.boardId)}}),methods:{stripHtml:function(html){return"undefined"==typeof DOMParser?html:(new DOMParser).parseFromString(html,"text/html").body.textContent||""},getWords:function(t,e){return t.split(" ").slice(0,e).join(" ")},needsMargin:function(image){return image&&image.startsWith("https://images.unsplash.com/")}}},x=(n(1299),n(12)),component=Object(x.a)(w,(function(){var t=this,e=t._self._c;return t.board?e("div",{class:"rounded-xl d-flex position-relative flex-column ".concat(t.outlined?"shadow-outline":t.preview?"":t.color+" pa-2"," ").concat(t.small?"":"pb-5")},[e(d.a,{class:{"align-stretch":!t.preview},style:t.preview?"display:block!important":"",attrs:{dense:""}},[e(o.a,{directives:[{def:f.a,name:"ripple",rawName:"v-ripple"}],staticClass:"cursor-pointer board-magic-image",style:t.square?"max-width:".concat(t.$vuetify.breakpoint.lgAndUp?48:40,"%; margin:0 auto"):"",attrs:{cols:t.preview?12:t.small?3:6},on:{click:function(e){return e.preventDefault(),t.$emit("clicked")}}},[t.preview?e("div",{staticClass:"outlined-board-preview rounded-xl pa-2 mb-2"},[e(c.a,{scopedSlots:t._u([{key:"default",fn:function(n){var o=n.hover;return[e("div",[e(l.a,{staticClass:"rounded-xl cursor-pointer mx-auto",attrs:{alt:"".concat(t.board.name," image"),src:t.image},on:{click:function(e){return e.stopPropagation(),t.$emit("clicked")}}},[e(m.g,[o?e("div",{class:"d-flex hoverbg justify-center align-center transition-fast-in-fast-out v-board--reveal",staticStyle:{height:"100%"}},[e("div",{staticStyle:{width:"200px"}},[e(r.a,{attrs:{color:t.color,dark:"",rounded:"",elevation:"0",block:""},on:{click:function(e){return e.stopPropagation(),t.$emit("clicked")}}},[t._v(t._s(t.button))])],1)]):t._e()])],1)],1)]}}],null,!1,2762668001)})],1):e("div",[t.image?e("LEmoji",{style:t.needsMargin(t.image)?"margin:7%":"",attrs:{alt:t.board.name,title:t.board.name,full:"",file:t.image,rounded:t.needsMargin(t.image)?"xl":null}}):t._e()],1)]),t._v(" "),e(o.a,{staticStyle:{height:"auto"},attrs:{cols:t.preview?12:t.small?9:6}},[e("div",{staticClass:"d-flex flex-column full-height align-start justify-space-between"},[t.preview?t._e():e(r.a,{staticClass:"rounded-xl elevation-0",class:{"mt-4":!t.small,"mt-1":t.small},attrs:{outlined:!t.preview&&!t.outlined,"x-small":"",dark:t.preview||t.outlined,color:t.titleColor},on:{click:function(e){return e.preventDefault(),t.$emit("clicked-type")}}},[t._v(t._s(t.theTag&&t.theTag.name?t.theTag.name:"Featured"))]),t._v(" "),t.preview||t.small?t._e():e(h.a),t._v(" "),e("div",{class:"text-".concat(!t.small&&t.square?"center":"left"," cursor-pointer ").concat(t.titleColor,"--text"),staticStyle:{"font-size":"20px",width:"100%"},on:{click:function(e){return e.preventDefault(),t.$emit("clicked")}}},[e("strong",[t._v(t._s(t.board.name))])]),t._v(" "),t.small||t.hideDescription?t._e():e("div",{class:"cursor-pointer ".concat(t.descriptionColor,"--text py-2 pr-2"),staticStyle:{"font-size":"14px"},on:{click:function(e){return e.preventDefault(),t.$emit("clicked")}}},[t.shortDescription?e("span",[t._v(t._s(t.shortDescription)),e("br")]):t._e()]),t._v(" "),t.small&&!t.preview?t._t("default"):t._e(),t._v(" "),e(h.a),t._v(" "),t.small||t.preview?t._e():t._t("default")],2)])],1),t._v(" "),e(h.a),t._v(" "),e("div",{style:t.preview?"width:90%; margin:0 auto":""},[t.preview?t._t("default"):t._e()],2)],1):t._e()}),[],!1,null,null,null);e.a=component.exports},1315:function(t,e,n){"use strict";var r=n(350),o=n(1054),c=n(354),l=n(226),d=n(1044),m=n(312),h=n(1053),f=n(309),v=(n(163),n(24),n(53),n(15),n(19),n(20),n(1)),y=n(2),_=(n(33),n(6),n(10),n(45),n(112),n(13),n(9),n(27),n(35),n(26),n(72),n(5)),k=n.n(_),w=n(113),x=n(18),C=n(1121),O=n(43),j=n(100),I=n(1116),S=n(67),L=n(1107),D=n(1316);function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function M(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){Object(y.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var P={name:"LMagicCardRow",components:{DataProvider:C.a,LAsset:O.a,LEmoji:j.a,LHeroEmojis:I.a,LLabel:S.a,LFeatureCard:L.a,LDiscoverMiniCard:D.a},props:{cardId:{type:String,default:null},editable:{type:Boolean,default:!0},hideDates:{type:Boolean,default:!1},hideChrome:{type:Boolean,default:!1},small:{type:Boolean,default:!1},xs:{type:Boolean,default:!1},short:{type:Boolean,default:!1},colorful:{type:Boolean,default:!1},square:{type:Boolean,default:!1},fullHeight:{type:Boolean,default:!1}},data:function(){return{isSaving:!1,isSavingDate:!1,isSavingCard:!1,newCardName:null,isMakingMagic:!1,isPickingOne:!1,isPickingAll:!1,selectedType:null,magicCards:[]}},computed:M(M({},Object(x.c)({home:"home/home",getCardById:"cards/getById",cards:"cards/cards",getCardsByType:"cards/getByType",getCurrentMagicWeek:"cards/getCurrentMagicWeek"})),{},{weekStart:function(){return this.home.week_start||1},magicWeekCard:function(){return this.getCardById[this.cardId]},typeCards:function(){var t=this;if(!this.magicWeekCard)return{};var e=this.getMagicCardIdsFromCard(this.magicWeekCard);if(!e.length)return{};var n,r={};return e.forEach((function(e){(n=t.getCardById[e])&&(r[n.type]=n)})),r},searchableCards:function(){return this.getCardsByType(this.selectedType)},types:function(){return Object.keys(w.a).filter((function(t){return w.a[t].magic})).sort((function(a,b){return w.a[a].magic-w.a[b].magic})).map((function(t){return M(M({},w.a[t]),{},{type:t})}))},didPickAll:function(){return Object.keys(this.typeCards).length===this.types.length},daysOfWeek:function(){for(var t,e=this.weekStart,n=["S","M","T","W","T","F","S"],r=[],i=0;i<7;i++){var o=(t=(t=i+e)>=7?t-7:t)<e?t+7:t;r.push({id:t,name:n[t],dateFormat:k()(this.magicWeekCard.date).day(o).format("YYYY-MM-DD"),date:k()(this.magicWeekCard.date).day(o).format("dddd, MMMM D")})}return r},color:function(){return this.selectedType?this.typeField(this.selectedType,"color"):"secondary"},textColor:function(){return this.selectedType?"white":"primary"},isCurrentMagicWeek:function(){return this.magicWeekCard&&this.getCurrentMagicWeek&&this.magicWeekCard.id===this.getCurrentMagicWeek.id},isAnythingSaving:function(){return this.isSaving||this.isPickingOne||this.isPickingAll||this.isSavingDate||!!this.isSavingCard},smallCards:function(){return this.short||this.small||this.xs},squareCards:function(){return this.square},defaultCardLimit:function(){return this.smallCards?2:7}}),watch:{selectedType:function(t){this.newCardName=null,t&&this.setMagicCards()}},methods:M(M({},Object(x.b)({createCard:"cards/create",updateCard:"cards/update",deleteCard:"cards/delete",searchCards:"cards/search",setSnackbar:"view/setSnackbar"})),{},{typeField:function(t,e){return w.a[t]?w.a[t][e]:""},shuffleArray:function(t){for(var i=t.length-1;i>0;i--){var e=Math.floor(Math.random()*(i+1)),n=[t[e],t[i]];t[i]=n[0],t[e]=n[1]}},stripHtml:function(html){return(new DOMParser).parseFromString(html,"text/html").body.textContent||""},pickOneCard:function(){var t=this;return Object(v.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isPickingOne=!0,e.next=3,t.searchCards({random:!0,type:t.selectedType,limit:1,includeAdmin:!0});case 3:if(n=e.sent){e.next=7;break}return t.isPickingOne=!1,e.abrupt("return");case 7:return e.next=9,t.addCard(n[0]);case 9:t.isPickingOne=!1;case 10:case"end":return e.stop()}}),e)})))()},setMagicCards:function(t){if(!this.selectedType)return[];var e=this.defaultCardLimit,n=this.searchableCards;this.shuffleArray(n),this.magicCards=n.slice(0,t||e)},isShowingSearchCard:function(t){return t.name.toLowerCase().includes(this.newCardName.toLowerCase())},clickSubmit:function(){this.isSaving||(this.newCardName?this.addNewCard():this.pickOneCard())},addNewCard:function(){var t=this;return Object(v.a)(regeneratorRuntime.mark((function e(){var data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.newCardName&&!t.isSaving){e.next=2;break}return e.abrupt("return");case 2:return t.isSaving=!0,data={name:t.newCardName,type:t.selectedType,public:t.magicWeekCard.public,forcePublic:!0},e.next=6,t.addCard(data);case 6:t.isSaving=!1,t.newCardName="";case 8:case"end":return e.stop()}}),e)})))()},addCard:function(t){var e=this;return Object(v.a)(regeneratorRuntime.mark((function n(){var r,o,c,data,l,d,m;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.isSavingCard){n.next=2;break}return n.abrupt("return");case 2:if(r=t.type,o=e.typeCards[r],(c=o?o.date:null)&&e.updateCard({id:o.id,fields:{date:null}}),e.isSavingCard=t.id,data=JSON.parse(JSON.stringify(t)),c&&(data.date=c),e.isValidDate(data.date)||(data.date=null),data.public=e.magicWeekCard.public,data.forcePublic=!0,data.daytime=null,d="admin"===e.$auth.user.home.key,m=t.id?e.getCardById[t.id]:null,!!(d&&m)){n.next=23;break}return n.next=19,e.createCard(data);case 19:l=n.sent,e.isMakingMagic||e.setSnackbar({type:"card",data:l}),n.next=24;break;case 23:l=m;case 24:return e.selectedType=null,n.next=27,e.linkCardToMagicWeek(l,o);case 27:e.isSavingCard=!1;case 28:case"end":return n.stop()}}),n)})))()},removeCard:function(t){var e=this;return Object(v.a)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.typeCards[t],n.next=3,e.unlinkCardFromMagicWeek(r);case 3:case"end":return n.stop()}}),n)})))()},linkCardToMagicWeek:function(t,e){var n=this;return Object(v.a)(regeneratorRuntime.mark((function r(){var o,content;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n.magicWeekCard){r.next=2;break}return r.abrupt("return");case 2:return o=n.getMagicCardIdsFromCard(n.magicWeekCard),e&&(o=o.filter((function(t){return t!==e.id}))),o.push(t.id),content=n.setMagicCardIdsContentForCard(n.magicWeekCard,o),r.next=8,n.updateCard({id:n.magicWeekCard.id,fields:{content:content}});case 8:case"end":return r.stop()}}),r)})))()},unlinkCardFromMagicWeek:function(t){var e=this;return Object(v.a)(regeneratorRuntime.mark((function n(){var r,content;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.magicWeekCard){n.next=2;break}return n.abrupt("return");case 2:return r=(r=e.getMagicCardIdsFromCard(e.magicWeekCard)).filter((function(e){return e!==t.id})),content=e.setMagicCardIdsContentForCard(e.magicWeekCard,r),n.next=7,e.updateCard({id:e.magicWeekCard.id,fields:{content:content}});case 7:case"end":return n.stop()}}),n)})))()},saveDayForType:function(t,e){var n=this;return Object(v.a)(regeneratorRuntime.mark((function r(){var o,c,l;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!n.isSavingDate){r.next=2;break}return r.abrupt("return");case 2:if(n.isSavingDate=!0,o=t<n.home.week_start?t+7:t,c=k()(n.magicWeekCard.date).day(o).format("YYYY-MM-DD"),l=n.typeCards[e]){r.next=8;break}return r.abrupt("return");case 8:return r.next=10,n.updateCard({id:l.id,fields:{date:c}});case 10:n.isSavingDate=!1;case 11:case"end":return r.stop()}}),r)})))()},replaceWithCardId:function(t,e){var n=this;return Object(v.a)(regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.removeCard(t);case 2:o=n.getCardById[e],n.addedCardFromDiscover(o);case 4:case"end":return r.stop()}}),r)})))()},addedCardFromDiscover:function(t){var e=this;return Object(v.a)(regeneratorRuntime.mark((function n(){var r,o,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.isPickingOne=!0,!(r=e.typeCards[t.type])){n.next=7;break}if(!(o=r.date)||t.date===o||!e.isValidDate(o)){n.next=7;break}return n.next=7,e.updateCard({id:t.id,fields:{date:o}});case 7:if(c={},t.date&&!e.isValidDate(t.date)&&(c.date=null),t.public!==e.magicWeekCard.public&&(c.public=e.magicWeekCard.public,c.forcePublic=!0),!Object.keys(c).length){n.next=13;break}return n.next=13,e.updateCard({id:t.id,fields:c});case 13:return n.next=15,e.linkCardToMagicWeek(t,r);case 15:e.selectedType=null,e.isPickingOne=!1;case 17:case"end":return n.stop()}}),n)})))()},formatDate:function(t){var e=k()(t).format("MMMM").length<=4?"dddd, MMMM D":"dddd, MMM D";return k()(t).format(e)},makeMagic:function(){var t=this;this.isMakingMagic=!0,setTimeout((function(){t.isMakingMagic=!1}),1e3)},typeImage:function(t,e){var n=this.typeCards[t];return n?e&&n.image?n.image:n.icon?n.icon:n.image?n.image:this.typeField(t,e?"default":"image"):this.typeField(t,"image")},getMagicCardIdsFromCard:function(t){if(!t.content||!t.content.length)return[];var e=[];return t.content.forEach((function(content){e.length||"cards"===content.type&&(e=content.card_ids)})),e},setMagicCardIdsContentForCard:function(t,e){var n=this,content=t.content?JSON.parse(JSON.stringify(t.content)):[];if(!content.length)return content.push({type:"cards",card_ids:e}),t;var r=!1;return content.forEach((function(t,i){r||"cards"===t.type&&(n.$set(content,i,{type:"cards",card_ids:e}),r=!0)})),content},setType:function(t){this.isAnythingSaving||(this.selectedType=t)},isValidDate:function(t){return this.daysOfWeek.map((function(t){return t.dateFormat})).includes(t)},go:function(path){this.hideChrome||this.$router.push(path)}})},B=n(12),component=Object(B.a)(P,(function(){var t=this,e=t._self._c;return e("div",[e(h.a,{staticClass:"align-stretch",class:{"full-height":t.fullHeight}},t._l(t.types,(function(n){return e(o.a,{key:"type-btn-".concat(n.type),class:{"cursor-pointer py-2":!0,"py-md-0":!t.smallCards},attrs:{cols:"12",sm:t.xs||t.small?12:6,md:t.xs?12:t.small?6:3}},[t.selectedType===n.type?[t.isPickingOne||t.isSavingCard?e("div",{staticClass:"text-center"},[e(m.a,{staticClass:"mx-auto mt-4",attrs:{size:"48",color:t.color,indeterminate:""}})],1):[e("div",{staticClass:"position-relative"},[e("div",{class:{hidden:!!t.newCardName}},t._l(t.magicCards,(function(n){return e("div",{key:"magic-btn-".concat(n.id),staticClass:"ellipsis"},[e("LDiscoverMiniCard",{staticClass:"ma-1",attrs:{"card-id":n.id,ellipsis:"",loading:t.isSavingCard===n.id},on:{clicked:function(e){return t.addCard(n)}}})],1)})),0),t._v(" "),t.newCardName?e("div",{staticClass:"position-absolute",staticStyle:{top:"0",left:"0",overflow:"hidden",width:"100%",height:"100%"}},t._l(t.searchableCards,(function(n){return e("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowingSearchCard(n),expression:"isShowingSearchCard(card)"}],key:"search-btn-".concat(n.id),staticClass:"ellipsis"},[e("LDiscoverMiniCard",{staticClass:"ma-1",attrs:{"card-id":n.id,ellipsis:"",loading:t.isSavingCard===n.id},on:{clicked:function(e){return t.addCard(n)}}})],1)})),0):t._e()]),t._v(" "),e("form",{staticClass:"pt-2",on:{submit:function(e){return e.preventDefault(),t.addNewCard.apply(null,arguments)}}},[e("div",{},[e(f.a,{ref:"new-card-name",refInFor:!0,staticClass:"new-card-name",staticStyle:{"border-radius":"16px !important","min-width":"150px"},attrs:{"data-id":"new-card-name","hide-details":"",type:"text",dense:"",color:"#7f7f7f",outlined:"",placeholder:"Add your own"},model:{value:t.newCardName,callback:function(e){t.newCardName=e},expression:"newCardName"}})],1),t._v(" "),e(r.a,{staticClass:"rounded-xl elevation-0 my-3",attrs:{"data-id":t.newCardName?"save-new-card":"pick-for-me",color:t.color,dark:"",block:"",type:"submit",loading:t.isSaving},on:{click:function(e){return e.preventDefault(),t.clickSubmit.apply(null,arguments)}}},[t._v(t._s(t.newCardName?"Save":"Pick for me"))]),t._v(" "),e("div",{staticClass:"text-center"},[e("a",{class:"".concat(t.color,"--text d-block pa-1"),staticStyle:{"font-size":"12px"},attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.selectedType=null}}},[t._v("Cancel")])])],1)]]:[t.typeCards[n.type]?e("LFeatureCard",{staticClass:"full-height",staticStyle:{width:"100%"},attrs:{"card-id":t.typeCards[n.type].id,"magic-card-id":t.cardId,editable:t.editable&&!t.hideChrome,square:t.squareCards,narrow:(t.squareCards||!t.smallCards)&&t.$vuetify.breakpoint.mdAndUp,small:t.smallCards||!t.$vuetify.breakpoint.mdAndUp,outlined:!t.isCurrentMagicWeek&&!t.colorful,"hide-description":t.hideDates},on:{"clicked-type":function(e){return t.go("/a/".concat(t.typeCards[n.type].id))},clicked:function(e){return t.go("/a/".concat(t.typeCards[n.type].id))},changed:function(e){return t.setType(n.type)},pickedcard:function(e){return t.replaceWithCardId.apply(t,[n.type].concat(Array.prototype.slice.call(arguments)))}}},[!t.hideDates&&t.editable?e(d.a,{attrs:{"close-on-content-click":!0,"offset-y":"","content-class":"rounded-lg primary l-stack-options-menu"},scopedSlots:t._u([{key:"activator",fn:function(o){var c=o.on,l=o.attrs;return[e("div",{},[e(r.a,t._g(t._b({staticClass:"rounded-xl elevation-0 my-1 mx-auto",staticStyle:{background:"white"},attrs:{outlined:"",block:"",disabled:t.isAnythingSaving,large:!t.smallCards&&t.$vuetify.breakpoint.lgAndUp,color:n.color}},"v-btn",l,!1),c),[t.typeCards[n.type].date?[t._v("\n                    "+t._s(t.formatDate(t.typeCards[n.type].date))+"\n                  ")]:[e("LEmoji",{attrs:{file:"star"}}),t._v("\n                    Pick a date\n                  ")]],2)],1)]}}],null,!0)},[t._v(" "),e(c.a,t._l(t.daysOfWeek,(function(r){return e(l.a,{key:"d-".concat(r.id),attrs:{dark:""},on:{click:function(e){return t.saveDayForType(r.id,n.type)}}},[t._v("\n                "+t._s(r.date)+"\n              ")])})),1)],1):t._e()],1):e("div",{staticClass:"d-flex flex-column align-center justify-center cursor-pointer",on:{click:function(e){return t.setType(n.type)}}},[t.typeCards[n.type]?t._e():e("LEmoji",{staticStyle:{width:"74px"},attrs:{full:"",file:t.typeImage(n.type)}}),t._v(" "),e(r.a,{staticClass:"rounded-xl elevation-0",attrs:{outlined:"",small:"",color:n.color,dark:""},on:{click:function(e){return t.setType(n.type)}}},[t._v(t._s(n.single))])],1)]],2)})),1),t._v(" "),e("DataProvider",{attrs:{type:"cards",ids:t.getMagicCardIdsFromCard(t.magicWeekCard)}},[e("div")])],1)}),[],!1,null,null,null);e.a=component.exports},1316:function(t,e,n){"use strict";var r=n(350),o=n(312),c=n(103),l=(n(26),n(24),n(9),n(15),n(13),n(6),n(19),n(10),n(20),n(2)),d=n(48),m=n.n(d),h=n(18),f=n(113);function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){Object(l.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var _={name:"LDiscoverMiniCard",components:{LEmoji:n(100).a},props:{cardId:{type:String,required:!0},block:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},outlined:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!1}},computed:y(y({},Object(h.c)({getCardById:"cards/getById"})),{},{card:function(){return this.getCardById[this.cardId]}}),methods:{typeField:function(t,e){return m()(f.a,"".concat(t,".").concat(e),"")}}},k=(n(1335),n(12)),component=Object(k.a)(_,(function(){var t=this,e=t._self._c;return t.card&&!t.ellipsis?e(r.a,{class:{"discover-mini-card":!0,"no-outline":!t.outlined},attrs:{rounded:"",outlined:"",color:t.typeField(t.card.type,"color"),title:t.card.name,block:t.block,loading:t.loading},on:{click:function(e){return e.preventDefault(),t.$emit("clicked")}}},[e("LEmoji",{attrs:{padded:"",small:"",file:t.card.icon}}),t._v(t._s(t.card.name))],1):t.card&&t.ellipsis?e("div",{directives:[{def:c.a,name:"ripple",rawName:"v-ripple"}],class:"".concat(t.typeField(t.card.type,"color")," ").concat(t.typeField(t.card.type,"color"),"--text cursor-pointer d-flex align-center rounded-xl px-3 py-1 discover-mini-ellipsis ").concat(t.outlined?"":"no-border"," font-weight-bold ellipsis"),staticStyle:{background:"white !important"},on:{click:function(e){return e.preventDefault(),t.$emit("clicked")}}},[t.loading?[e("div",{staticClass:"text-center"},[e(o.a,{attrs:{indeterminate:"",color:t.typeField(t.card.type,"color"),size:"16",width:"2"}})],1)]:[e("LEmoji",{attrs:{padded:"",small:"",file:t.card.icon}}),e("span",{staticClass:"ellipsis"},[t._v(t._s(t.card.name))])]],2):t._e()}),[],!1,null,null,null);e.a=component.exports},1335:function(t,e,n){"use strict";n(1248)},1336:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".discover-mini-ellipsis{border:2px solid;font-size:16px}.discover-mini-card{border-width:2px}.no-border{border-width:0!important}",""]),r.locals={},t.exports=r},1339:function(t,e,n){"use strict";n(1249)},1340:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".tiny-text{font-size:14px}.tiny-text a{color:#767676;-webkit-text-decoration:none;text-decoration:none;text-transform:uppercase}.avatar-picker-list{width:100%}.avatar-picker-menu{height:400px;width:180px!important}@media only screen and (max-width:599px){.avatar-picker-menu{height:100vh!important;left:0!important;position:fixed!important;top:0!important;width:100vw!important}.avatar-picker-list{height:100%;max-width:100%;width:100%}}",""]),r.locals={},t.exports=r},1341:function(t,e,n){"use strict";n(1250)},1342:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".top-meta{position:absolute;right:0;top:0}.x-btn{font-size:1.2rem!important}",""]),r.locals={},t.exports=r},1343:function(t,e,n){"use strict";var r=n(350),o=n(1054),c=n(1053),l=n(309),d=(n(26),n(9),n(15),n(19),n(10),n(20),n(1)),m=n(2),h=(n(33),n(45),n(13),n(6),n(27),n(35),n(72),n(18)),f=n(165),v=n.n(f),y=n(67),_=n(1089),k=n(1041),w=n(1062),x=n(1044);function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?C(Object(n),!0).forEach((function(e){Object(m.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var j={name:"LAvatarPicker",props:{value:{type:String,default:""},size:{type:String,default:"48px"},editable:{type:Boolean,default:!0},random:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},hideCreate:{type:Boolean,default:!1},posh:{type:Boolean,default:!1},memberId:{type:String,default:null}},data:function(){return{isOpen:!1,selected:""}},computed:O(O({},Object(h.c)({avatars:"media/allAvatars",imageEditorId:"view/imageEditorId",imageEditorResult:"view/imageEditorResult"})),{},{avatarFiles:function(){return this.avatars.map((function(t){return t.file_url}))},avatarNames:function(){return this.avatars.map((function(t){return t.file}))},avatar:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}}),watch:{isOpen:function(t){this.$emit("toggle",t),t&&!this.editable&&(this.isOpen=!1)},imageEditorId:function(t){t===this.memberId+"avatar"&&(this.$emit("input",this.imageEditorResult.url),this.setResetImageEditor())}},mounted:function(){var t=this;this.random&&(this.avatar=this.avatarFiles[Math.floor(Math.random()*Math.floor(this.avatarFiles.length))]),this.$nextTick((function(){t.posh&&!t.avatar&&(t.avatar="https://res.cloudinary.com/lome/image/upload/emojis/silhouette.png")}))},methods:O(O({},Object(h.b)({openImageEditorModal:"view/openImageEditorModal",setResetImageEditor:"view/setResetImageEditor"})),{},{openImageEditor:function(){this.openImageEditorModal({id:this.memberId+"avatar",folder:"avatars",uploadPreset:"homeuploads",media:"avatar",circle:!0})},addFirst:function(){this.avatar=this.avatars[0],this.isOpen=!1},select:function(t){this.avatar=t,this.isOpen=!1},remove:function(){this.avatar="",this.isOpen=!1}})},I=(n(1339),n(12)),component=Object(I.a)(j,(function(){var t=this,e=t._self._c;return e("div",[t.editable?e(x.a,{attrs:{bottom:"","min-width":"200px","content-class":"rounded-xl","offset-y":""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e(r.a,t._g({staticClass:"rounded-xl",attrs:{icon:"","x-large":""}},o),[e("img",{class:{"animation-shake":t.shake},attrs:{src:t.avatar,width:t.size}}),t._v(" "),e("img",{staticClass:"ml-1",attrs:{width:"10",src:"https://res.cloudinary.com/lome/image/upload/v1631334427/assets/icon-down.png"}})])]}}])},[t._v(" "),e(k.a,{staticClass:"rounded-xl elevation-0",staticStyle:{"max-width":"300px"},attrs:{color:"white"}},[e(c.a,{staticClass:"justify-start"},[t.hideCreate?t._e():e("div",{staticClass:"d-flex justify-center",staticStyle:{width:"100%"}},[e(o.a,{attrs:{cols:"10"}},[e(r.a,{staticClass:"rounded-xl elevation-0",attrs:{block:"",color:"primary"},on:{click:function(e){return e.preventDefault(),t.openImageEditor.apply(null,arguments)}}},[t._v("Create")])],1)],1),t._v(" "),t._l(t.avatarFiles,(function(n,a){return e(o.a,{key:"avatar-select-".concat(a),staticClass:"flex-grow-0"},[e(r.a,{staticClass:"rounded-xl",attrs:{icon:"","x-large":""},on:{click:function(e){return e.preventDefault(),t.select(n)}}},[e("img",{attrs:{alt:t.avatarNames[a],width:"48",src:n}})])],1)}))],2)],1)],1):e(w.a,{attrs:{src:t.avatar,position:"center top","max-width":"414","max-height":"414"}})],1)}),[],!1,null,null,null),S=component.exports,L=n(368),D=n(68);function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function M(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){Object(m.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var P={name:"LEditMember",components:{LEmailPhoneInput:_.a,LLabel:y.a,LAvatarPicker:S},props:{memberId:{type:String,default:"",required:!0},showContact:{type:Boolean,default:!1},showEmail:{type:Boolean,default:!1},placeholder:{type:String,default:""},boardId:{type:String,default:""}},data:function(){return{isDeleting:!1,isAddingContact:!1,areYouSure:!1,success:!1,error:!1,sendingInvite:!1,contactType:"phone",contact:"",ageOptions:[{value:"0-2",text:"Itty Bitty (2 or younger)"},{value:"3-5",text:"Walkin' Talkin' (3-5)"},{value:"6-8",text:"Rockin' Rollin' (6-8)"},{value:"9-12",text:"Jumpin' Jivin' (9-12)"},{value:"13-17",text:"Too Cool (13-17)"},{value:"18+",text:"Adult (18-???)"}]}},computed:M(M({},Object(h.c)({getMemberById:"members/getById",getInviteByMemberId:"invites/getByMemberId",avatars:"media/allAvatars"})),{},{avatarFiles:function(){return this.avatars.map((function(t){return t.file_url}))},avatarNames:function(){return this.avatars.map((function(t){return t.file}))},defaultAvatarNames:function(){return this.avatars.filter((function(t){return!t.home_id})).map((function(t){return t.file}))},member:function(){return this.getMemberById[this.memberId]},invite:function(){return this.getInviteByMemberId(this.memberId)},hasContact:function(){return this.member.phone||this.member.email},id:function(){return this.memberId},isMain:function(){return!!this.member.main},age:{get:function(){return this.member.age||""},set:function(t){this.updateField("age",t)}},memberPhone:function(){return this.member.phone||""},phone:{get:function(){return this.member.unverified_phone?this.member.unverified_phone:this.member.phone||""},set:function(t){this.updateField("phone",t)}},email:{get:function(){return this.member.unverified_email?this.member.unverified_email:this.member.email||""},set:function(t){this.updateField("email",t)}},inputmode:function(){return"phone"===this.contactType?"numeric":null},pattern:function(){return"phone"===this.contactType?"[0-9]*":null},name:{get:function(){return this.boardId&&D.a.boardMemberName(this.boardId,this.member)?D.a.boardMemberName(this.boardId,this.member):this.defaultAvatarNames.includes(this.member.name)?"":this.member.name||""},set:function(t){var e;this.boardId?this.updateField("boards_data",this.member.boards_data?M(M({},this.member.boards_data),{},Object(m.a)({},this.boardId,M(M({},null===(e=this.member.boards_data)||void 0===e?void 0:e[this.boardId]),{},{name:t}))):Object(m.a)({},this.boardId,{name:t})):this.updateField("name",t)}},avatar:{get:function(){return this.member.image||""},set:function(t){this.updateField("image",t)}}}),watch:{memberPhone:function(){var t=this;this.isAddingPhone&&(this.success=!0,setTimeout((function(){t.success=!1,t.isAddingPhone=!1}),2e3))},isAddingContact:function(t){t&&!this.contact&&this.member[this.contactType]&&(this.contact=this.member[this.contactType])}},methods:M(M({},Object(h.b)({updateMember:"members/update",deleteMember:"members/delete",createInvite:"invites/create",deleteInvite:"invites/delete"})),{},{setAvatar:function(t){this.member.image=t,this.avatar=t},updateField:function(t,e){var n={};n[t]=e,this.updateFields(n)},updateFields:v()((function(t){var e={id:this.id,fields:t};this.updateMember(e)}),1e3),remove:function(){this.isDeleting=!0,this.deleteMember(this.id)},sendInvite:function(){var t=this;return Object(d.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.sendingInvite=!0,e.next=3,t.createInvite({invite:t.contact,type:t.contactType,member_id:t.id});case 3:e.sent&&(t.isAddingContact=!1),t.sendingInvite=!1;case 6:case"end":return e.stop()}}),e)})))()},prettifyPhone:function(t){return Object(L.prettyPhone)(t)},prettifyEmail:function(t){return Object(L.prettyEmail)(t)},setContactType:function(t){this.contactType=t,this.member[this.contactType]&&(this.contact=this.member[this.contactType])}})},B=(n(1341),Object(I.a)(P,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"position-relative mb-6"},[e("div",{staticClass:"d-flex align-end ml-1"},[e("div",{staticClass:"mr-3 pr-3"},[e("LAvatarPicker",{attrs:{value:t.avatar,size:"64px","member-id":t.id},on:{input:function(e){return t.setAvatar(e)}}})],1),t._v(" "),e("div",{staticClass:"flex-grow-1"},[e("LLabel",{staticClass:"ml-6",attrs:{color:"lblack"}},[t._v("Name")]),t._v(" "),e(l.a,{key:"member-name-".concat(t.id),staticClass:"rounded-xl",attrs:{id:"first-name-".concat(t.id),name:"first-name-".concat(t.id),placeholder:t.placeholder,outlined:"",autocomplete:t.isMain?"given-name":"off","hide-details":""},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1)]),t._v(" "),t.isAddingContact?[e("form",{on:{submit:function(e){e.preventDefault(),t.member[t.contactType]?t.updateField(t.contactType,t.contact):t.sendInvite()}}},[e(c.a,{staticClass:"mt-3",attrs:{align:"center"}},[e(o.a,{attrs:{cols:"12",sm:"6"}},[e("LEmailPhoneInput",{attrs:{type:t.contactType,inputmode:t.inputmode,pattern:t.pattern},on:{settype:t.setContactType},model:{value:t.contact,callback:function(e){t.contact=e},expression:"contact"}})],1),t._v(" "),e(o.a,{attrs:{cols:"12",sm:"6"}},[t.member[t.contactType]?e(r.a,{staticClass:"rounded-xl",attrs:{color:"primary",block:"",type:"submit","x-large":""},on:{click:function(e){return e.preventDefault(),t.updateField(t.contactType,t.contact)}}},[t._v("Send code via\n            "+t._s("phone"===t.contactType?"text":"email"))]):e(r.a,{staticClass:"rounded-xl",attrs:{color:"primary",block:"",type:"submit","x-large":"",loading:t.sendingInvite},on:{click:function(e){return e.preventDefault(),t.sendInvite(t.contactType,t.contact)}}},[t._v("Invite via\n            "+t._s("phone"===t.contactType?"text":"email"))])],1)],1)],1),t._v(" "),t.success?e("div",{staticClass:"title-text"},[t._v("Success!")]):t._e()]:t._e(),t._v(" "),t.showContact?e("div",{staticClass:"text-center"},[e("small",[t.invite&&!t.isAddingContact?[t._v("\n        Invite sent to\n        "+t._s(t.invite.email?t.prettifyEmail(t.invite.email):t.prettifyPhone(t.invite.phone))+"\n        "),e("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.isAddingContact=!0}}},[t._v("Edit")]),t._v(" "),e("a",{staticClass:"error--text",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.deleteInvite(t.invite.id)}}},[t._v("Delete")])]:[!t.email&&!t.phone||t.isAddingContact?t._e():[t._v(t._s(t.email?t.prettifyEmail(t.email):"")+t._s(t.phone?" (".concat(t.prettifyPhone(t.phone),")"):""))],t._v(" "),e("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.isAddingContact=!t.isAddingContact}}},[t._v(t._s(t.isAddingContact?"Cancel":t.hasContact?"":"Invite"))])]],2)]):t._e(),t._v(" "),e("div",{staticClass:"top-meta"},[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.areYouSure,expression:"!areYouSure"}]},[t.isMain?t._e():e(r.a,{staticClass:"x-btn",attrs:{loading:t.isDeleting,color:"accent",icon:""},on:{click:function(e){e.preventDefault(),t.areYouSure=!0}}},[t._v("×")])],1),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.areYouSure,expression:"areYouSure"}]},[t.isMain?t._e():e(r.a,{directives:[{name:"show",rawName:"v-show",value:t.areYouSure,expression:"areYouSure"}],staticClass:"rounded-xl elevation-0",attrs:{loading:t.isDeleting,color:"error","x-small":""},on:{click:function(e){return e.preventDefault(),t.remove()}}},[t._v("Delete "+t._s(t.name)+"?")]),t._v(" "),t.isMain?t._e():e(r.a,{directives:[{name:"show",rawName:"v-show",value:t.areYouSure,expression:"areYouSure"}],staticClass:"rounded-xl elevation-0 primary--text",attrs:{color:"secondary","x-small":""},on:{click:function(e){e.preventDefault(),t.areYouSure=!1}}},[t._v("Keep")])],1)])],2)}),[],!1,null,null,null));e.a=B.exports},1364:function(t,e,n){var content=n(1459);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("6f1dc67e",content,!0,{sourceMap:!1})},1365:function(t,e,n){var content=n(1461);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("1da61bc0",content,!0,{sourceMap:!1})},1366:function(t,e,n){var content=n(1463);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("a27a125c",content,!0,{sourceMap:!1})},1367:function(t,e,n){var content=n(1465);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("6196bd20",content,!0,{sourceMap:!1})},1368:function(t,e,n){var content=n(1467);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("8cacdd6c",content,!0,{sourceMap:!1})},1369:function(t,e,n){var content=n(1469);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("6e2d06c9",content,!0,{sourceMap:!1})},1370:function(t,e,n){var content=n(1471);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("630e685a",content,!0,{sourceMap:!1})},1371:function(t,e,n){var content=n(1473);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("37692a7e",content,!0,{sourceMap:!1})},1372:function(t,e,n){var content=n(1475);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("b78bc1d8",content,!0,{sourceMap:!1})},1373:function(t,e,n){var content=n(1477);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("30664c3c",content,!0,{sourceMap:!1})},1374:function(t,e,n){var content=n(1479);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("a5231f1e",content,!0,{sourceMap:!1})},1389:function(t,e,n){"use strict";n(1301)},1390:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".l-dot{border-radius:50%}",""]),r.locals={},t.exports=r},1391:function(t,e,n){"use strict";n(1302)},1392:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".v-text-field--outlined.text-left input{text-align:left!important}",""]),r.locals={},t.exports=r},1393:function(t,e,n){"use strict";n(1303)},1394:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".message-bubble{border:2px solid #fff!important;z-index:2}.is-to .message-bubble{margin-left:16px}.is-from .message-bubble{margin-right:16px}.message-bubble-arrow{bottom:8px;height:23px;position:absolute;width:19px;z-index:-1}.is-to .message-bubble-arrow{border-radius:18px 3px 23px 1px;left:-4px;transform:rotate(45deg)}.is-from .message-bubble-arrow{border-radius:1px 27px 3px 23px;right:-4px;transform:rotate(-45deg)}.message-bubble-member{bottom:-14px;position:absolute}.is-to .message-bubble-member{left:-64px}.is-from .message-bubble-member{right:-64px}.outlined{border:2px solid #17d}.message-emoji-btn{background:#fff;border:50%;margin-bottom:8px;margin-left:8px;padding:4px}.message-emoji-picker-btn{visibility:hidden}.message-bubble:hover .message-emoji-picker-btn{visibility:visible}",""]),r.locals={},t.exports=r},1395:function(t,e,n){"use strict";n(1304)},1396:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".messages-box{border:solid #efeadc;border-width:0 0 1px;height:auto;margin-left:-16px;margin-right:-16px;overflow-x:hidden;overflow-y:auto}.messages-max-h{max-height:600px}.message-date-stamp{margin-bottom:-20px;margin-top:32px}",""]),r.locals={},t.exports=r},1401:function(t,e,n){"use strict";n(9),n(15),n(13),n(19),n(20);var r=n(2),o=(n(6),n(10),n(27),n(73),n(34),n(52),n(35),n(5)),c=n.n(o),l=n(18),d=n(43),m=(n(24),{name:"LDot",props:{color:{type:String,required:!0},size:{type:String,default:"12px"}}}),h=(n(1389),n(12)),f=Object(h.a)(m,(function(){var t=this;return(0,t._self._c)("div",{staticClass:"l-dot",style:"height: ".concat(t.size,"; width: ").concat(t.size,"; background-color: ").concat(t.color)})}),[],!1,null,null,null).exports,v=n(67),y=n(204),_={name:"LPusherMessages",props:{typeId:{type:String,required:!0}},computed:{channelName:function(){return"messages-".concat(this.typeId)}},watch:{typeId:function(t){t&&this.subscribe()}},mounted:function(){this.subscribe()},methods:{subscribe:function(){for(var t=this,e=y.b.subscribe(this.channelName),n=function(){var n=o[r];e.bind(n,(function(e){var data=e.data;t.$store.commit(n,data)}))},r=0,o=["messages/setMessage","messages/syncMessages"];r<o.length;r++)n()}}},k=Object(h.a)(_,(function(){return(0,this._self._c)("div")}),[],!1,null,null,null).exports,w=n(350),x=n(1041),C=n(1065),O=n(1210),j=n(1044),I=n(1058),S=n(1),L=(n(33),n(26),n(72),n(38)),D=n(1071),T=n(385),M=n(1194),P=n(235),B=n(100),E=n(369),A=n(1067),F=n(309),z=(n(86),n(1343)),V=n(68);function $(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function N(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var R={name:"LMessageAdd",components:{LAsset:d.a,LAvatar:D.a,LDivider:P.a,LEditMember:z.a,LEmoji:B.a,LLabel:v.a,LMenu:A.a},props:{typeId:{type:String,required:!0},messageId:{type:String,default:null},color:{type:String,default:"primary"}},data:function(){return{isPinning:!1,showMembers:!1,isSaving:!1,hover:!1,messageName:"",error:null,searchedName:"",dialogEditMember:!1}},computed:N(N({},Object(l.c)({home:"home/home",members:"members/members",getMessageById:"messages/getById",getMemberById:"members/getById",getCardById:"cards/getById"})),{},{card:function(){return this.getCardById[this.typeId.replace("card-","")]},isSmall:function(){return this.$vuetify.breakpoint.xsOnly},memberId:function(){return this.$auth.loggedIn?this.$auth.user.id:null},member:function(){return this.getMemberById[this.memberId]},name:function(){return V.a.boardMemberName(this.card.board_id,this.member)||this.member.name},message:function(){return this.messageId?this.getMessageById[this.messageId]:null}}),watch:{messageId:function(){this.message&&(this.messageName=this.message.send_name)}},mounted:function(){this.message&&(this.messageName=this.message.send_name)},methods:N(N({},Object(l.b)({createMessage:"messages/create",updateMessage:"messages/update"})),{},{click:function(){this.href&&this.$router.push(this.href)},send:function(){var t=this;if(!this.isSaving){var e=this.messageName.trim();if(this.isSaving=!0,this.error=null,!e)return this.isSaving=!1,void(this.error="Add a message");if(this.message)return this.updateMessage({id:this.messageId,fields:{send_name:e}}),this.isSaving=!1,void this.$emit("sent");var data={from_member_id:this.memberId,from_member_name:this.name,send_name:e,emojis:[],type:"message",type_id:this.typeId,communityId:this.card.board_id,create_notification:!!this.card.board_id};this.createMessage(data).then((function(){t.$emit("sent"),t.reset()})).catch((function(){t.error="Whoops there was an issue, please try again",t.isSaving=!1}))}},reset:function(){this.messageName="",this.isSaving=!1}})},U=(n(1391),Object(h.a)(R,(function(){var t=this,e=t._self._c;return t.memberId?e("div",{staticClass:"mt-4"},[t.error?e("div",{staticClass:"lred--text text-center pa-2"},[e("small",[t._v(t._s(t.error))])]):t._e(),t._v(" "),e("form",{on:{submit:function(e){return e.preventDefault(),t.send.apply(null,arguments)}}},[e("div",{staticClass:"d-flex align-center"},[e(F.a,{staticClass:"rounded-xl text-left",attrs:{color:t.color,placeholder:"".concat(t.name," says..."),name:"message","hide-details":"",type:"text",outlined:""},model:{value:t.messageName,callback:function(e){t.messageName=e},expression:"messageName"}},[e("div",{staticClass:"d-flex align-center mr-2",staticStyle:{"margin-top":"-8px"},attrs:{slot:"prepend-inner"},slot:"prepend-inner"},[e("LAvatar",{key:"message-member-".concat(t.member.id),attrs:{name:t.name,size:40}})],1),t._v(" "),e(w.a,{class:"btn-circle ".concat(t.color),staticStyle:{"margin-top":"-8px"},attrs:{slot:"append",icon:"",type:"submit",dark:"",loading:t.isSaving},on:{click:function(e){return e.preventDefault(),t.send.apply(null,arguments)}},slot:"append"},[e("LAsset",{attrs:{width:"32",file:"icon-send-white"}})],1)],1)],1)]),t._v(" "),t.$auth.user.id?e(C.a,{attrs:{"content-class":"rounded-xl outlined-card-muted elevation-0","max-width":"420px"},model:{value:t.dialogEditMember,callback:function(e){t.dialogEditMember=e},expression:"dialogEditMember"}},[e(x.a,{staticClass:"rounded-xl elevation-0"},[e("div",{staticClass:"pa-4"},[e("LEditMember",{attrs:{"member-id":t.$auth.user.id,"board-id":t.card.board_id}}),t._v(" "),e(w.a,{staticClass:"rounded-xl elevation-0 mt-3",attrs:{color:t.color,dark:"",block:""},on:{click:function(e){e.preventDefault(),t.dialogEditMember=!1}}},[t._v("Done")])],1)])],1):t._e()],1):t._e()}),[],!1,null,null,null)),Y=U.exports,W=n(1284),H=n(1224);function G(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function J(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?G(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Z={name:"LMessage",components:{LAsset:d.a,LAvatar:D.a,LCardBlockCommunity:T.a,LCardLink:M.a,LDivider:P.a,LEmoji:B.a,LEmojiPicker:E.a,LLabel:v.a,LMenu:A.a,LMessageAdd:Y,LPreviewModal:W.a,LStackCountdown:H.a},props:{messageId:{type:String,required:!0},color:{type:String,default:"primary"},canModerate:{type:Boolean,default:!1}},data:function(){return{isPinning:!1,menuOpen:!1,hover:!1,isDeleting:!1,pinError:!1,previewModal:!1,isAddingEmoji:!1,isEditing:!1}},computed:J(J({},Object(l.c)({board:"boards/activeBoard",getMessageById:"messages/getById",getMemberById:"members/getById",members:"members/members"})),{},{sentByName:function(){return this.member?this.board?V.a.boardMemberName(this.board.id,this.member):this.member.name:this.message.from_member_name},message:function(){return this.getMessageById[this.messageId]},member:function(){return this.getMemberById[this.message.from_member_id]},sendingMemberId:function(){return this.$auth.loggedIn?this.messageMemberId||this.members[0].id:null},isFrom:function(){return this.sendingMemberId===this.message.from_member_id},isTo:function(){return!this.isFrom},bgColor:function(){return this.isTo?"secondary":this.color},width:function(){return this.isSmall?85:65},today:function(){return c()().format("YYYY-MM-DD")},menu:function(){var t=[];return["card","stack"].includes(this.message.type)&&t.push({content:this.pinError?"Whoops - that pin is broken":"Pin on Board",asset:"icon-pushpin-white",func:this.pin,loading:this.isPinning,deleteBtn:this.pinError}),t.push({content:"Add Sticker",asset:"icon-smiley-white",func:this.setAddEmoji}),this.isFrom&&t.push({content:"Edit",asset:"icon-edit-white",func:this.toggleEdit}),(this.isFrom||this.canModerate)&&t.push({content:this.isFrom?"Delete":"Delete their message",asset:"icon-delete-white",func:this.remove,loading:this.isDeleting,hideDivider:!0,deleteBtn:!0}),t},timestamp:function(){return c()(this.message.createdAt).format("MMM D h:mma")},emojis:function(){return this.message.emojis||{}},hasEmojis:function(){return!!this.emojis&&Object.keys(this.emojis).length>0},isSmall:function(){return this.$vuetify.breakpoint.xsOnly},emojiSize:function(){return 32},isCountdown:function(){return"stack"===this.message.type&&this.message.type_data&&"countdown"===this.message.type_data.type},canClick:function(){return["stack","card"].includes(this.message.type)},typeDataBoardId:function(){return this.message.type_data&&this.message.type_data.board_id?this.message.type_data.board_id:null},typeDataCardId:function(){return this.message.type_data&&this.message.type_data.card_id?this.message.type_data.card_id:null},typeDataLink:function(){return this.typeDataBoardId?"/b/".concat(this.typeDataBoardId):this.typeDataCardId?"/a/".concat(this.typeDataCardId):null}}),methods:J(J({},Object(l.b)({updateMessage:"messages/update",deleteMessage:"messages/delete",createCard:"cards/create",createStack:"stacks/create",memberAction:"members/takeAction"})),{},{click:function(){this.canClick&&(this.previewModal=!0)},pin:function(){this.isPinning=!0,"card"!==this.message.type?"stack"!==this.message.type||this.pinStack(this.message.type_data):this.pinCard(this.message.type_data,null)},pinStack:function(t){var e=this;if(t){var data=JSON.parse(JSON.stringify(t));data.board_id=this.board.id,data.top=0,data.left=0,"countdown"!==data.type||data.content.date||(data.content={date:c()().add(1,"month").format("YYYY-MM-DD")}),data.content&&data.content.admin&&delete data.content.admin,this.createStack(data).then((function(){e.finished()})),this.memberAction(L.L)}else this.showPinError()},pinCard:function(t,e){var n=this;return Object(S.a)(regeneratorRuntime.mark((function r(){var o,c,data;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t){r.next=3;break}return n.showPinError(),r.abrupt("return");case 3:return r.next=5,n.createCard(t);case 5:if(o=r.sent){r.next=9;break}return n.showPinError(),r.abrupt("return");case 9:c={width:1,height:1,show_name:!1,view:"image"},(data=e?J({},e):c).content&&data.content.admin&&delete data.content.admin,data.name=o.name,data.board_id=n.board.id,data.type="card",data.top=0,data.left=0,data.filter_type=o.type,data.card_id=o.id,n.createStack(data).then((function(){return n.finished()})),n.memberAction(L.K);case 21:case"end":return r.stop()}}),r)})))()},setAddEmoji:function(){this.isAddingEmoji=!0},setAddingEmoji:function(t){this.isAddingEmoji=!!t},finished:function(){this.isPinning=!1,this.menuOpen=!1},setEmoji:function(t){var e=this;this.$auth.loggedIn&&(this.updateMessage({id:this.messageId,fields:{emoji:t}}),this.$nextTick((function(){e.isAddingEmoji=!1})))},toggleEmoji:function(t){this.$auth.loggedIn&&(this.message.emojis[t]&&this.message.emojis[t].includes(this.$auth.user.id)?this.updateMessage({id:this.messageId,fields:{removeEmoji:t}}):this.updateMessage({id:this.messageId,fields:{emoji:t}}))},remove:function(){this.isDeleting=!0,this.deleteMessage(this.message.id)},showPinError:function(){var t=this;this.isPinning=!1,this.pinError=!0,setTimeout((function(){return t.pinError=!1}),2e3)},messageTheme:function(t){return this.theme?this.theme[t]:null},toggleEdit:function(){this.isEditing=!this.isEditing},getMemberName:function(t){if(this.$auth.loggedIn&&t===this.$auth.user.id)return"You";var e=this.getMemberById[t];return e&&this.board?V.a.boardMemberName(this.board.id,e):e?e.name:null},getMemberExtra:function(t){return this.$auth.loggedIn&&t===this.$auth.user.id?"(click to remove)":null}})},K=(n(1393),Object(h.a)(Z,(function(){var t=this,e=t._self._c;return t.message?e("div",{staticClass:"mb-4",class:{"is-from":t.isFrom,"is-to":t.isTo}},[e(O.a,{model:{value:t.hover,callback:function(e){t.hover=e},expression:"hover"}},[e("div",[e("div",{staticClass:"mt-8"}),t._v(" "),t.isTo&&t.sentByName?e("div",{staticClass:"half-opacity",staticStyle:{"font-size":"12px","margin-left":"82px"}},[t._v("\n        "+t._s(t.sentByName)+"\n      ")]):t._e(),t._v(" "),e("div",{staticClass:"d-flex",class:{"justify-end":t.isFrom,"mr-12":t.isFrom,"ml-12":t.isTo}},[e("div",{staticClass:"rounded-xl position-relative message-bubble",class:Object(r.a)(Object(r.a)({},"".concat(t.bgColor," secondary--text"),t.isFrom),"secondary",t.isTo),style:"padding: 8px; border-color:white !important; max-width: ".concat(t.width,"%; ").concat(t.isCountdown?"width:"+t.width+"%":"")},[t.sendingMemberId?e("div",{staticClass:"position-relative"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.hover,expression:"hover"}],staticClass:"position-absolute",style:"top: -12px; right: -".concat(t.isSmall?4:32,"px; z-index: 2")},[e(j.a,{attrs:{"close-on-content-click":!1,"offset-y":"","content-class":"rounded-lg ".concat(t.bgColor," l-stack-options-menu")},scopedSlots:t._u([{key:"activator",fn:function(n){var r=n.on,o=n.attrs;return[e(w.a,t._g(t._b({staticStyle:{"background-color":"#efeadc !important"},attrs:{icon:"","x-small":""}},"v-btn",o,!1),r),[e("LAsset",{attrs:{width:"20",file:"icon-dots"}})],1)]}}],null,!1,796007607),model:{value:t.menuOpen,callback:function(e){t.menuOpen=e},expression:"menuOpen"}},[t._v(" "),e("LMenu",{attrs:{items:t.menu}},[e("div",{staticClass:"text-center py-2 px-8"},[e("LLabel",{attrs:{color:"white"}},[t._v(t._s(t.timestamp))])],1),t._v(" "),t.menu.length?e("LDivider",{attrs:{color:"white"}}):t._e()],1)],1)],1)]):t._e(),t._v(" "),e("div",{class:{"cursor-pointer":t.canClick,"cursor-default":!t.canClick},on:{click:function(e){return e.preventDefault(),t.click.apply(null,arguments)}}},["a note"!==t.message.send_name?e("div",{style:"padding: 8px; min-width: 100px; ".concat(t.message.send_image?"padding-bottom: 0;":"")},[t._v("\n              "+t._s(t.message.send_name)+"\n            ")]):t._e(),t._v(" "),t.typeDataBoardId?e("div",[e("LCardBlockCommunity",{staticClass:"my-2",attrs:{"board-id":t.typeDataBoardId,block:""}})],1):t._e(),t._v(" "),t.typeDataCardId?e("div",[e("LCardLink",{attrs:{"card-id":t.typeDataCardId,editable:!1}})],1):t._e(),t._v(" "),t.isCountdown?e("div",{staticClass:"d-flex align-stretch",staticStyle:{width:"100%",height:"300px"}},[e("LStackCountdown",{staticClass:"full-height",staticStyle:{width:"100%"},attrs:{"stack-data":t.message.type_data,small:""}})],1):t._e()]),t._v(" "),t.sendingMemberId?[e("div",{staticClass:"message-emojis d-flex flex-wrap align-start"},[t._l(t.emojis,(function(n,r){return e("div",{key:"emoji-".concat(t.message.id,"-").concat(r)},[e(w.a,{class:"flex-grow-0 message-emoji-btn position-relative emoji-tt-".concat(t.message.id,"-").concat(r),style:"height: ".concat(t.emojiSize,"px; width: ").concat(t.emojiSize,"px"),attrs:{icon:"",color:t.color},on:{click:function(e){return e.preventDefault(),t.toggleEmoji(r)}}},[e("LEmoji",{style:"height: ".concat(t.emojiSize,"px; width: ").concat(t.emojiSize,"px"),attrs:{file:r,full:"",block:""}}),n.length>1?e("span",{staticClass:"position-absolute",class:{"white--text":t.isFrom},staticStyle:{"font-size":"12px",bottom:"-4px",right:"-4px"}},[t._v(t._s(n.length))]):t._e()],1),t._v(" "),e(I.a,{attrs:{bottom:"",activator:".emoji-tt-".concat(t.message.id,"-").concat(r)}},[e("span",t._l(n,(function(n){return e("div",{key:"e-m-".concat(n),class:"".concat(t.color,"--text")},[e("strong",[t._v(t._s(t.getMemberName(n)))]),t._v(" "),t.getMemberExtra(n)?e("span",[t._v(t._s(t.getMemberExtra(n)))]):t._e()])})),0)])],1)})),t._v(" "),e("div",{staticClass:"position-relative"},[e(w.a,{directives:[{name:"show",rawName:"v-show",value:t.hover&&!t.isAddingEmoji,expression:"hover && !isAddingEmoji"}],staticClass:"rounded-circle elevation-0 position-absolute half-opacity",style:"top: ".concat(t.hasEmojis?"0":"-16","px;left: 4px; height: ").concat(t.emojiSize,"px; width: ").concat(t.emojiSize,"px"),attrs:{icon:""},on:{click:function(e){e.preventDefault(),t.isAddingEmoji=!0}}},[e("span",{class:{"secondary--text":t.isFrom}},[t._v("+")])])],1),t._v(" "),e("LEmojiPicker",{directives:[{name:"show",rawName:"v-show",value:t.isAddingEmoji,expression:"isAddingEmoji"}],staticClass:"message-emoji-btn message-emoji-picker-btn rounded-xl flex-grow-0",style:"height: ".concat(t.emojiSize,"px; width: ").concat(t.emojiSize,"px"),attrs:{mediakey:"message-".concat(t.message.id,"-icon"),open:t.isAddingEmoji,tag:"reaction"},on:{toggle:t.setAddingEmoji,input:t.setEmoji}})],2)]:t._e(),t._v(" "),e("div",{class:"message-bubble-arrow ".concat(t.bgColor)}),t._v(" "),e("div",{staticClass:"message-bubble-member",staticStyle:{"z-index":"1"}},[t.messageTheme("addon_emoji")?e("LEmoji",{staticClass:"position-absolute",style:"font-size: ".concat(t.messageTheme("addon_size"),"px; z-index: ").concat(t.messageTheme("addon_front")?2:-1,"; top: ").concat(t.messageTheme("addon_top"),"px; left: ").concat(t.messageTheme("addon_left"),"px"),attrs:{file:t.messageTheme("addon_emoji")}}):t._e(),t._v(" "),e("div",{staticClass:"pa-1",style:"z-index: ".concat(t.messageTheme("addon_front")?1:2,";")},[e("LAvatar",{attrs:{size:48,title:t.sentByName,name:t.sentByName}})],1)],1)],2)])])]),t._v(" "),e("LPreviewModal",{attrs:{"preview-data":t.message.type_data,date:t.today,"submit-text":"Pin on Board"},on:{added:t.pin},model:{value:t.previewModal,callback:function(e){t.previewModal=e},expression:"previewModal"}}),t._v(" "),t.isFrom?e(C.a,{attrs:{"content-class":"rounded-xl outlined-card-muted elevation-0"},model:{value:t.isEditing,callback:function(e){t.isEditing=e},expression:"isEditing"}},[e(x.a,{staticClass:"rounded-xl elevation-0 position-relative"},[e(w.a,{staticClass:"position-absolute",staticStyle:{top:"8px",right:"8px"},attrs:{small:"",icon:""},on:{click:function(e){e.preventDefault(),t.isEditing=!1}}},[t._v("×")]),t._v(" "),e("div",{staticClass:"pa-4"},[e("LMessageAdd",{attrs:{"type-id":t.message.type_id,"message-id":t.message.id,color:t.color},on:{sent:t.toggleEdit}})],1)],1)],1):t._e()],1):t._e()}),[],!1,null,null,null)),X=K.exports,Q=n(1070);function tt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function et(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tt(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var at={name:"LMessages",components:{LAsset:d.a,LDot:f,LLabel:v.a,LMessage:X,LMessageAdd:Y,LMember:Q.a,LPusherMessages:k},props:{typeId:{type:String,required:!0},color:{type:String,default:"primary"},fullHeight:{type:Boolean,default:!1}},data:function(){return{}},computed:et(et({},Object(l.c)({home:"home/home",members:"members/members",getMemberById:"members/getById",getBoardById:"boards/getById",getCardById:"cards/getById",messagesByTypeId:"messages/byTypeId"})),{},{messages:function(){return this.messagesByTypeId(this.typeId)},sendingMember:function(){return this.$auth.user},scrollId:function(){return"messages-scroll-".concat(this.typeId)},bottomId:function(){return"messages-bottom-".concat(this.typeId)},numMessages:function(){return this.messages.length},messageIdsThatShowDates:function(){var t,e=[],n=[];return this.messages.forEach((function(r){t=c()(r.createdAt).format("YYYY-MM-DD"),e.includes(t)||(e.push(t),n.push(r.id))})),n},isOwner:function(){var t=this.typeId;if(t.startsWith("board-")){t=t.replace("board-","");var e=this.getBoardById[t];if(e&&e.home_id===this.home.id)return!0}if(t.startsWith("card-")){t=t.replace("card-","");var n=this.getCardById[t];if(n&&n.home_id===this.home.id)return!0}return!1},loginLink:function(){return"/login?r=".concat(this.$route.path)}}),watch:{numMessages:function(){var t=this;this.$nextTick((function(){t.scrollToBottom()}))}},mounted:function(){var t=this;this.scrollToBottom(),this.indexMessages(this.typeId).then((function(){t.scrollToBottom(),"#comments"===t.$route.hash&&t.$nextTick((function(){t.$vuetify.goTo("#".concat(t.scrollId),{duration:300})}))}))},methods:et(et({},Object(l.b)({indexMessages:"messages/indexWithTypeId",createMessage:"messages/create",readMessages:"messages/readAt"})),{},{showDate:function(t){return this.messageIdsThatShowDates.includes(t.id)},formatDate:function(t){var e=c()(t).startOf("day"),n=c()().startOf("day").diff(e,"day");return 0===n?"Today":1===n?"Yesterday":n<7?e.format("dddd"):e.format("ddd, MMM D")},scrollToBottom:function(){if(document&&document.getElementById(this.bottomId)){var t=document.getElementById(this.bottomId).offsetTop;document.getElementById(this.scrollId).scrollTop=t}}})},it=(n(1395),Object(h.a)(at,(function(){var t=this,e=t._self._c;return t.messages?e("div",{staticClass:"l-messages full-height"},[e("div",{staticClass:"d-flex flex-column justify-space-between full-height"},[e("div",{staticClass:"messages-box flex-grow-1",class:{"messages-max-h":!t.fullHeight},staticStyle:{"border-color":"#efeadc !important"},attrs:{id:t.scrollId}},[t.messages.length?t._e():e("div",{staticClass:"pa-4 rounded-xl mx-auto my-4 secondary",staticStyle:{"max-width":"80%"}},[t._v("\n        Use this space to leave messages, notes, and encouragement to each\n        other.\n      ")]),t._v(" "),t._l(t.messages,(function(n){return e("div",{key:"message-".concat(n.id)},[t.showDate(n)?e("div",{staticClass:"d-flex justify-center text-center message-date-stamp"},[e("LLabel",{staticClass:"rounded-xl px-3 py-1 white flex-grow-0 d-block",attrs:{color:t.color}},[t._v(t._s(t.formatDate(n.createdAt)))])],1):t._e(),t._v(" "),e("LMessage",{attrs:{"message-id":n.id,color:t.color,"can-moderate":t.isOwner}})],1)})),t._v(" "),e("div",{attrs:{id:t.bottomId}})],2),t._v(" "),e("div",{staticClass:"flex-grow-0 justify-self-end"},[t.$auth.loggedIn?e("LMessageAdd",{attrs:{"type-id":t.typeId,color:t.color},on:{sent:t.scrollToBottom}}):e("div",[e("nuxt-link",{class:"".concat(t.color,"--text font-weight-bold pt-3 text-center d-block"),attrs:{to:t.loginLink}},[t._v("Create a free account to send messages\n        ")])],1)],1)]),t._v(" "),e("LPusherMessages",{attrs:{"type-id":t.typeId}})],1):t._e()}),[],!1,null,null,null));e.a=it.exports},1407:function(t,e,n){"use strict";var r=n(350),o=n(1044),c=(n(9),n(15),n(13),n(6),n(19),n(10),n(20),n(2));n(27),n(26);function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var m=n(1),h=(n(33),n(56),n(45),n(202),n(112),n(1077)),f=n.n(h),v=n(18),y=n(113),_=n(43),k=(n(77),n(36),n(165)),w=n.n(k),x={name:"LCardContentText",components:{LEditor:n(370).a},props:{order:{type:Number,required:!0},text:{type:String,default:""},color:{type:String,default:"primary"},editable:{type:Boolean,default:!1},themed:{type:Boolean,default:!1}},computed:{description:{get:function(){return this.text},set:function(t){t!==this.text&&this.debounceUpdateText(t)}}},methods:{debounceUpdateText:w()((function(text){var t={order:this.order,type:"text",text:text};this.$emit("update",this.order,t)}),2e3)}},C=n(12),O=Object(C.a)(x,(function(){var t=this,e=t._self._c;return e("div",{class:{"white pa-4 rounded-xl position-relative my-3 shadow-outline":t.themed}},[e("LEditor",{class:"".concat(t.color,"--links"),attrs:{placeholder:"Write anything...",editable:t.editable},model:{value:t.description,callback:function(e){t.description=e},expression:"description"}})],1)}),[],!1,null,null,null).exports,j=n(374),I=n(1107);function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function L(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?S(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var D={name:"LCardContentCard",components:{LCardAdd:j.a,LFeatureCard:I.a},props:{order:{type:Number,required:!0},cardId:{type:String,default:""},view:{type:String,default:""},addingCard:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},themed:{type:Boolean,default:!1}},data:function(){return{replacingCard:!1}},computed:L(L({},Object(v.c)({getCard:"cards/getById"})),{},{card:function(){return this.getCard[this.cardId]}}),mounted:function(){this.card&&!this.view&&this.updatedCard(this.cardId)},methods:{navigateToCard:function(){this.$router.push("/a/".concat(this.cardId))},updatedCard:function(t,view){if(!this.cardId||this.replacingCard){var e={order:this.order,type:"card",view:view||"image",card_id:t};this.$emit("update",this.order,e),this.replacingCard=!1}else{var n={order:this.order,type:"cards",view:this.view,card_ids:[this.cardId,t]};this.$emit("update",this.order,n)}},replaceCard:function(){this.replacingCard=!0}}},T=(n(1460),Object(C.a)(D,(function(){var t=this,e=t._self._c;return e("div",[t.replacingCard||t.addingCard||!t.cardId&&t.editable?e("LCardAdd",{staticClass:"global-add-card-add pb-6",attrs:{permanent:"","full-height":t.$vuetify.breakpoint.xsOnly,large:"",reference:"","show-calendar":"","event-type-picker":""},on:{added:t.updatedCard,canceled:function(e){t.$emit("canceled"),t.replacingCard=!1}}}):t._e(),t._v(" "),t.cardId&&!t.replacingCard?e("div",{staticClass:"my-4 mx-auto",staticStyle:{"max-width":"400px"}},[e("LFeatureCard",{class:{white:t.themed},attrs:{"card-id":t.cardId,editable:t.editable,outlined:"",narrow:"",view:t.view},on:{clicked:t.navigateToCard,"clicked-type":t.navigateToCard,changed:t.replaceCard}})],1):t._e()],1)}),[],!1,null,"76f0b706",null).exports),M=n(1409),P=n(309),B=(n(34),n(73),n(52),n(388),n(86),{name:"LCardContentVideo",components:{LAsset:_.a},props:{order:{type:Number,required:!0},videoUrl:{type:String,default:""},editable:{type:Boolean,default:!1}},data:function(){var t=this;return{url:"",result:"",youtubePattern:/^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube(-nocookie)?\.com|youtu.be))(\/(?:[\w-]+\?v=|embed\/|v\/)?)([\w-]+)(\S+)?$/,rules:{required:function(t){return!!t||"Please paste a Youtube or Loom link"},Link:function(e){return!!(t.youtubePattern.test(e)||e&&e.startsWith("https://www.loom.com/share/"))||"Sorry, we need a link from Youtube or Loom"}}}},computed:{validUrl:function(){return!!this.videoSource(this.url)},loomId:function(){return"loom"!==this.videoSource(this.videoUrl)?null:this.videoUrl.replace("https://www.loom.com/share/","")},iframeSrc:function(){return this.loomId?"https://www.loom.com/embed/".concat(this.loomId):this.videoUrl?this.videoUrl:this.result?this.result:""}},methods:{handleChange:function(){this.loadVideoUrl()},videoSource:function(t){return this.youtubePattern.test(t)?"youtube":t.startsWith("https://www.loom.com/share/")?"loom":null},loadVideoUrl:function(){var t,source=this.videoSource(this.url);if(source){if("youtube"===source){var e=this.url.split(/(vi\/|v%3D|v=|\/v\/|youtu\.be\/|\/embed\/)/),n=void 0!==e[2]?e[2].split(/[^0-9a-z_/\\-]/i)[0]:e[0];if(n===e[0])return;t="https://www.youtube.com/embed/".concat(n)}else"loom"===source&&(t=this.url.trim());this.result=t;var r={order:this.order,type:"video",vid_url:t};this.$emit("update",this.order,r),this.url=""}}}}),E=(n(1464),Object(C.a)(B,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-center mb-2"},[t.iframeSrc?e("div",{staticClass:"fluid-width-video-wrapper"},[e("iframe",{attrs:{src:t.iframeSrc,frameborder:"0",allow:t.loomId?"":"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",webkitallowfullscreen:"",mozallowfullscreen:"",allowfullscreen:""}})]):t.editable?e("div",{staticClass:"d-flex justify-center",staticStyle:{width:"100%"}},[e(P.a,{staticClass:"rounded-xl mr-4",attrs:{type:"text",dense:"",small:"",outlined:"",autofocus:"",placeholder:"Paste a link from Youtube or Loom",rules:[t.rules.required,t.rules.Link]},on:{change:t.handleChange},model:{value:t.url,callback:function(e){t.url=e},expression:"url"}}),t._v(" "),t.validUrl?e(r.a,{staticClass:"btn-circle elevation-0 ml-1",attrs:{width:"36",color:"primary"}},[e("LAsset",{attrs:{width:"16",file:"icon-check-white"}})],1):t._e()],1):t._e()])}),[],!1,null,"b02db8d8",null).exports),A=(n(168),{name:"LCardContentAudio",components:{LAsset:_.a},props:{order:{type:Number,required:!0},audioUrl:{type:String,default:""},editable:{type:Boolean,default:!1}},data:function(){var t=this;return{spotifyUrl:"",result:"",pattern:/^(?=.*open\.spotify\.com\b)(?=.*\b(track|album|playlist|episode|show|artist)\b).*$/,rules:{required:function(t){return!!t||"Please paste a Spotify link"},Link:function(e){return t.pattern.test(e)||"Sorry, we need a link from Spotify"}}}},computed:{validUrl:function(){return this.pattern.test(this.spotifyUrl)}},methods:{handleChange:function(){this.loadAudioUrl()},loadAudioUrl:function(){if(/^(?=.*open\.spotify\.com\b)(?=.*\b(track|album|playlist|episode|show|artist)\b).*$/.test(this.spotifyUrl)){var t=this.spotifyUrl.match(/\balbum|track|playlist|episode|show|artist\b/)[0],e=this.spotifyUrl.replace(t,"embed/".concat(t));this.result=e;var n={order:this.order,type:"audio",audio_url:e};this.$emit("update",this.order,n)}}}}),F=(n(1466),Object(C.a)(A,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-center mb-2"},[t.audioUrl||t.result?e("div",{staticClass:"fluid-width-video-wrapper"},[e("iframe",{staticStyle:{"border-radius":"12px"},attrs:{src:t.audioUrl||t.result,frameBorder:"0",allowfullscreen:"",allow:"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture"}})]):t.editable?e("div",{staticClass:"d-flex justify-center",staticStyle:{width:"100%"}},[e(P.a,{staticClass:"rounded-xl mr-4",attrs:{type:"text",dense:"",small:"",outlined:"",autofocus:"",placeholder:"Paste Spotify Link",rules:[t.rules.required,t.rules.Link]},on:{change:t.handleChange},model:{value:t.spotifyUrl,callback:function(e){t.spotifyUrl=e},expression:"spotifyUrl"}}),t._v(" "),t.validUrl?e(r.a,{staticClass:"btn-circle elevation-0 ml-1",attrs:{width:"36",color:"primary"}},[e("LAsset",{attrs:{width:"16",file:"icon-check-white"}})],1):t._e()],1):t._e()])}),[],!1,null,"62682899",null).exports),z=n(1054),V=n(1053),$=n(37),N=(n(24),n(1239)),R=n(1062),U=(n(102),n(366),n(371)),Y=n(235),W=n(67),H=n(1067);function G(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function J(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?G(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Z={name:"LCardBlockImage",components:{LTextInput:U.a,LAsset:_.a,LMenu:H.a,LLabel:W.a,LDivider:Y.a},props:{imgObj:{type:Object,default:function(){}},images:{type:Array,default:function(){return[]}},editable:{type:Boolean,default:!1}},data:function(){return{optionsOpen:!1,isRenaming:!1}},computed:J(J({},Object(v.c)({imageEditorId:"view/imageEditorId",imageEditorResult:"view/imageEditorResult"})),{},{menu:function(){var t=this,e=[];return e.push.apply(e,[{content:"Add Stickers",asset:"icon-smiley-white",func:function(){return t.openImageEditor()}},{content:this.imgObj.full_width?"Standard Width":"Full Width",asset:"icon-full-white",func:function(){return t.updateFullWidth(t.imgObj.order)}},{content:"Rename",asset:"icon-edit-white",func:function(){t.isRenaming=!0,t.optionsOpen=!1}},{content:"Delete",asset:"icon-delete-white",func:this.handleDelete,hideDivider:!0,deleteBtn:!0}]),e}}),watch:{imageEditorId:function(t){t===this.imgObj.image&&(this.handleCreate(this.imageEditorResult.url),this.setResetImageEditor())}},methods:J(J({},Object(v.b)({deleteAsset:"media/deleteCloudinaryAsset",openImageEditorModal:"view/openImageEditorModal",setResetImageEditor:"view/setResetImageEditor"})),{},{openImageEditor:function(){this.openImageEditorModal({id:this.imgObj.image,folder:"cards",uploadPreset:"galleryuploads",imgUrl:this.imgObj.image})},handleImgRotate:function(t){var e=this,n=this.images.filter((function(t){return t.image!==e.imgObj.image})),r=this.imgObj.image.split("/"),o=r.indexOf("upload")+1;if(r[o].startsWith("a_")){var c=Number(r[o].split("_")[1]);if(270===c&&"right"===t||90===c&&"left"===t)r.splice(o,1);else{var l="a_".concat("right"===t?c+90:c-90);r.splice(o,1,l)}}else"right"===t&&r.splice(o,0,"a_90"),"left"===t&&r.splice(o,0,"a_270");var d=J(J({},this.imgObj),{},{image:r.join("/")});n.push(d),n.sort((function(a,b){return a.order-b.order})),this.$emit("updated",n)},moveImg:function(t){var e=this,n=this.images.findIndex((function(img){return img.image===e.imgObj.image}));if(!(1===this.images.length||"up"===t&&0===n||"down"===t&&n===this.images.length-1)){this.optionsOpen=!1;var r=Object($.a)(this.images);"up"===t&&(r[n].order--,r[n-1].order++),"down"===t&&(r[n].order++,r[n+1].order--),r.sort((function(a,b){return a.order-b.order})),this.$emit("updated",r)}},handleDelete:function(){var t=this,e=this.images.filter((function(e){return e.image!==t.imgObj.image})).map((function(t,e){return J(J({},t),{},{order:e+1})}));this.deleteAsset([this.imgObj.image]),this.$emit("updated",e)},handleCreate:function(t){var e=this,n=this.images.map((function(img){return e.imgObj.image===img.image?(e.deleteAsset([img.image]),J(J({},img),{},{image:t})):img}));this.$emit("updated",n)},updateCaption:function(caption,t){var e=this.images.map((function(img){return img.order===t?J(J({},img),{},{caption:caption}):img}));this.$emit("updating",e)},updateFullWidth:function(t){var e=this.images.map((function(img){return img.order===t?J(J({},img),{},{full_width:!img.full_width}):img}));this.$emit("updated",e)}})},K=(n(1468),Object(C.a)(Z,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"l-card-block-image-container"},[e("div",{staticClass:"d-flex justify-end mb-2",class:!t.$vuetify.breakpoint.xsOnly&&"l-card-block-image-visibility"},[t.editable?e(o.a,{attrs:{"close-on-content-click":!1,"offset-y":"","content-class":"rounded-lg primary l-stack-options-menu"},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e(r.a,t._g(t._b({staticStyle:{"background-color":"#efeadc !important"},attrs:{icon:"","x-small":""}},"v-btn",c,!1),o),[e("LAsset",{attrs:{width:"20",file:"icon-dots"}})],1)]}}],null,!1,796007607),model:{value:t.optionsOpen,callback:function(e){t.optionsOpen=e},expression:"optionsOpen"}},[t._v(" "),e("LMenu",{attrs:{items:t.menu}},[t.images.length>1?e("div",{staticClass:"text-center py-3"},[e("LLabel",{attrs:{color:"white"}},[t._v("Move")]),t._v(" "),e("div",{staticClass:"d-flex justify-center mt-3"},[e(r.a,{staticClass:"mr-6",attrs:{icon:""},on:{click:function(e){return e.preventDefault(),t.moveImg("down")}}},[e("LAsset",{attrs:{width:"24","file-url":"https://res.cloudinary.com/lome/image/upload/v1649333843/assets/icon-down-white.png"}})],1),t._v(" "),e(r.a,{attrs:{icon:""},on:{click:function(e){return e.preventDefault(),t.moveImg("up")}}},[e("LAsset",{attrs:{width:"24","file-url":"https://res.cloudinary.com/lome/image/upload/v1649333842/assets/icon-up-white.png"}})],1)],1)],1):t._e(),t._v(" "),t.images.length>1?e("LDivider",{attrs:{color:"white"}}):t._e(),t._v(" "),e("div",{staticClass:"text-center py-3"},[e("LLabel",{attrs:{color:"white"}},[t._v("Rotate")]),t._v(" "),e("div",{staticClass:"d-flex justify-center mt-3"},[e(r.a,{staticClass:"mr-6",attrs:{icon:""},on:{click:function(e){return e.preventDefault(),t.handleImgRotate("left")}}},[e("LAsset",{attrs:{width:"24",file:"icon-rotate-left-white"}})],1),t._v(" "),e(r.a,{attrs:{icon:""},on:{click:function(e){return e.preventDefault(),t.handleImgRotate("right")}}},[e("LAsset",{attrs:{width:"24",file:"icon-rotate-right-white"}})],1)],1)],1),t._v(" "),e("LDivider",{attrs:{color:"white"}})],1)],1):t._e()],1),t._v(" "),e("div",{staticClass:"d-flex flex-column l-card-image-block",staticStyle:{position:"relative"}},[e(R.a,{staticStyle:{"border-radius":"25px"},attrs:{src:t.imgObj.image}}),t._v(" "),t.imgObj.caption||t.isRenaming?e("div",{staticClass:"pa-4"},[t.isRenaming?e("span",[e("LTextInput",{attrs:{id:String(t.imgObj.order),value:t.imgObj.caption,placeholder:"Caption",autofocus:""},on:{input:function(e){return t.updateCaption(e,t.imgObj.order)},blur:function(e){t.isRenaming=!1,t.$emit("updated")}}})],1):e("div",{staticStyle:{"font-weight":"700","line-height":"1.2"}},[t._v("\n        "+t._s(t.imgObj.caption)+"\n      ")])]):t._e()],1)])}),[],!1,null,"0d5523e3",null).exports),X={name:"LCardContentImages",components:{LImageUpload:N.a,LCardBlockImage:K},props:{order:{type:Number,required:!0},images:{type:Array,default:function(){return[]}},editable:{type:Boolean,default:!1},addingImage:{type:Boolean,default:!1}},data:function(){return{upload:!1,updatedImagesData:[]}},watch:{addingImage:function(t){t&&(this.upload=!0)},upload:function(t){t||this.$emit("upload")}},mounted:function(){this.images.length||(this.upload=!0)},methods:{handleImgUpdate:function(t){if(this.updatedImagesData.length||t){t&&(this.updatedImagesData=t);var e={order:this.order,type:"image",images:this.updatedImagesData};this.$emit("update",this.order,e),this.updatedImagesData=[]}},handleImgUpload:function(t){var e=this;this.upload=!1;var n=t.map((function(image,t){return{order:e.images.length+t+1,caption:"",image:image}})),r={order:this.order,type:"image",images:[].concat(Object($.a)(n),Object($.a)(this.images))};this.$emit("update",this.order,r)}}},Q=Object(C.a)(X,(function(){var t=this,e=t._self._c;return e("div",[t.images.length?e(V.a,t._l(t.images,(function(n){return e(z.a,{key:n.order,attrs:{offset:n.full_width?0:1===t.images.length?3:0,cols:n.full_width?12:t.images.length<3?6:3}},[e("LCardBlockImage",{attrs:{"img-obj":n,images:t.images,editable:t.editable},on:{updating:function(data){return t.updatedImagesData=data},updated:t.handleImgUpdate}})],1)})),1):e("div",{staticClass:"d-flex justify-center"},[t.editable?e(r.a,{staticClass:"rounded-xl elevation-0 default-font mb-4",attrs:{color:"primary",outlined:"","x-large":""},on:{click:function(e){e.preventDefault(),t.upload=!0}}},[t._v("\n      Upload Image\n    ")]):t._e()],1),t._v(" "),t.editable?e("LImageUpload",{attrs:{folder:"cards"},on:{uploaded:t.handleImgUpload},model:{value:t.upload,callback:function(e){t.upload=e},expression:"upload"}}):t._e()],1)}),[],!1,null,"111c7c3e",null).exports,tt=n(5),et=n.n(tt),at=n(1071),it=n(1191);et.a.extend(it);var nt={name:"LCardContentStickersVersions",components:{LAsset:_.a,LAvatar:at.a},props:{name:{type:String,default:""},date:{type:String,required:!0},active:{type:Boolean,default:!1},canDelete:{type:Boolean,default:!1},avatar:{type:String,default:""},image:{type:String,default:""},color:{type:String,default:"primary"}},computed:{formattedDate:function(){return et()(this.date).fromNow().replace("minute","min").replace("hours","hrs").replace("a few seconds ago","just now")},avatarImg:function(){return this.active?this.avatar:this.avatar.replace(".gif",".png")}}};n(1470);function ot(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function st(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ot(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ct={name:"LCardContentStickers",components:{LCardContentStickersVersions:Object(C.a)(nt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex flex-column align-center position-relative l-wall-editor-container pb-10",staticStyle:{width:"80px"}},[t.active&&t.canDelete?e("LAsset",{staticClass:"l-delete-version cursor-pointer",attrs:{file:"icon-x",width:"18px"},on:{clicked:function(e){return t.$emit("delete",t.date)}}}):t._e(),t._v(" "),e("a",{staticClass:"cursor-pointer d-block pt-3",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.$emit("clicked",t.date)}}},[e("LAvatar",{attrs:{name:t.name,size:48}})],1),t._v(" "),t.active?e("div",{staticClass:"position-absolute text-center",staticStyle:{bottom:"0",left:"0",width:"100%"}},[e("div",{staticStyle:{"font-size":"14px"},domProps:{textContent:t._s(t.name)}}),t._v(" "),e("div",{staticStyle:{"font-size":"12px"}},[e("a",{class:"".concat(t.color,"--text"),attrs:{href:t.image,target:"_blank"}},[t._v(t._s(t.formattedDate))])])]):t._e()],1)}),[],!1,null,"70bcf646",null).exports,LLabel:W.a},props:{cardId:{type:String,required:!0},order:{type:Number,required:!0},images:{type:Array,default:function(){return[]}},editable:{type:Boolean,default:!1}},data:function(){return{pickedDate:""}},computed:st(st({},Object(v.c)({imageEditorId:"view/imageEditorId",imageEditorResult:"view/imageEditorResult",loggedInOrAnon:"members/loggedInOrAnon",getCard:"cards/getById"})),{},{card:function(){return this.getCard[this.cardId]},isOwner:function(){var t;return this.card.home_id===(null===(t=this.loggedInOrAnon)||void 0===t?void 0:t.home_id)},lastImg:function(){return this.images.length?this.images[this.images.length-1].image:""},currentImg:function(){var t,e=this;return this.images.length?this.pickedDate?null===(t=this.images.find((function(image){return image.date===e.pickedDate})))||void 0===t?void 0:t.image:this.images[this.images.length-1].image:""},color:function(){return this.card&&this.card.game_theme&&this.card.game_theme.color?this.card.game_theme.color:"primary"}}),watch:{imageEditorId:function(t){this.loggedInOrAnon&&t===this.loggedInOrAnon.id&&(this.updateStickerWall(this.imageEditorResult.url),this.setResetImageEditor())}},mounted:function(){this.images.length&&(this.pickedDate=this.images[this.images.length-1].date,this.scrollLeft())},methods:st(st({},Object(v.b)({openImageEditorModal:"view/openImageEditorModal",setResetImageEditor:"view/setResetImageEditor",addCardSticker:"cards/sticker"})),{},{scrollLeft:function(){this.$refs.versions&&this.$refs.versions.scrollBy({left:this.$refs.versions.scrollWidth})},handlePickedVersion:function(t){this.pickedDate=t},handleDeleteVersion:function(t){var e=this.images.filter((function(image){return image.date!==t}));t===this.pickedDate&&(this.pickedDate=e.length?e[e.length-1].date:"",this.scrollLeft());var n={order:this.order,type:"stickers",images:e};this.$emit("update",this.order,n)},openImageEditor:function(){this.loggedInOrAnon?this.openImageEditorModal({id:this.loggedInOrAnon.id,folder:"cards",uploadPreset:"galleryuploads",imgUrl:this.lastImg,hideBackdrop:!!this.lastImg,ratio:.3}):alert("Please ".concat("rsvp"===this.card.vote_type?"RSVP":"sign up for something"," first before adding a sticker"))},updateStickerWall:function(t){var e=et()().format(),n={name:this.loggedInOrAnon.name,avatar:this.loggedInOrAnon.image,image:t,date:e};this.pickedDate=e,this.addCardSticker({id:this.cardId,fields:n}),this.scrollLeft()}})},lt=Object(C.a)(ct,(function(){var t=this,e=t._self._c;return t.card?e("div",[t.images.length?e("div",{staticClass:"white rounded-lg pa-4 mt-5 shadow-outline position-relative"},[e("div",{staticClass:"d-flex align-center justify-center"},[e(r.a,{staticClass:"rounded-xl elevation-0 mt-4",attrs:{color:t.color,dark:""},on:{click:function(e){return e.preventDefault(),t.openImageEditor.apply(null,arguments)}}},[t.loggedInOrAnon?[t._v("Add your own sticker")]:["rsvp"===t.card.vote_type?[t._v("RSVP to add a sticker")]:t._e(),t._v(" "),"signup"===t.card.vote_type||"signup-rsvp"===t.card.vote_type?[t._v("Sign up to add a sticker")]:t._e(),t._v(" "),"vote"===t.card.vote_type?[t._v("Vote to add a sticker")]:t._e()]],2)],1),t._v(" "),e("div",{staticClass:"d-flex flex-column cursor-pointer",staticStyle:{position:"relative"},on:{click:t.openImageEditor}},[e(R.a,{attrs:{src:t.currentImg,"aspect-ratio":1}})],1),t._v(" "),e("div",{staticClass:"mt-3"},[e("LLabel",{staticClass:"text-center",attrs:{color:t.color}},[t._v("Sticker Timeline")]),t._v(" "),e("div",{ref:"versions",staticClass:"mb-2 d-flex align-start",staticStyle:{overflow:"auto","white-space":"nowrap"}},t._l(t.images,(function(image){return e("div",{key:image.date},[e("LCardContentStickersVersions",{class:{"half-opacity":image.date!==t.pickedDate},attrs:{date:image.date,name:image.name,avatar:image.avatar,image:image.image,color:t.color,active:image.date===t.pickedDate,"can-delete":t.isOwner},on:{clicked:t.handlePickedVersion,delete:t.handleDeleteVersion}})],1)})),0)],1)]):e("div",{staticClass:"d-flex justify-center"},[t.editable?e(r.a,{staticClass:"rounded-xl elevation-0 default-font mb-4",attrs:{color:"primary",outlined:"","x-large":""},on:{click:function(e){return e.preventDefault(),t.openImageEditor.apply(null,arguments)}}},[t._v("\n      Decorate the Sticker Wall\n    ")]):t._e()],1)]):t._e()}),[],!1,null,null,null),ut=lt.exports;n(35);function mt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?mt(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ht={name:"LCardContentAdd",components:{LLabel:W.a,LAsset:_.a},props:{cardId:{type:String,required:!0},order:{type:Number,default:0}},computed:pt(pt({},Object(v.c)({home:"home/home",getCard:"cards/getById",getTasksByCardId:"tasks/getByCardId",hasPlanPermission:"home/hasPlanPermission",isAdminForBoardId:"permissions/isAdminForBoardId",mustUpgrade:"home/mustUpgrade"})),{},{isAdmin:function(){return this.home&&"admin"===this.home.key},card:function(){return this.getCard[this.cardId]},hasStickerWall:function(){var t;return!(null===(t=this.card.content)||void 0===t||!t.map((function(content){return content.type})).includes("stickers"))},hasMessages:function(){var t;return!(null===(t=this.card.content)||void 0===t||!t.map((function(content){return content.type})).includes("messages"))},tasks:function(){return this.getTasksByCardId(this.cardId)},canAddMessages:function(){return this.hasPlanPermission("can_add_messages")||this.card&&this.card.board_id&&this.isAdminForBoardId(this.card.board_id)}}),methods:pt(pt(pt({},Object(v.b)({createTask:"tasks/create"})),Object(v.d)({setFocusTaskId:"tasks/setFocusTaskId"})),{},{handleCreateChecklist:function(){var t;this.$emit("add","checklist",this.order+1),null!==(t=this.tasks)&&void 0!==t&&t.length||this.addFirstTask()},addFirstTask:function(){var t=this;return Object(m.a)(regeneratorRuntime.mark((function e(){var data,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return data={card_id:t.cardId,icon:"emojis/sparkle",order:0},e.next=3,t.createTask(data);case 3:n=e.sent,t.setFocusTaskId(n.id);case 5:case"end":return e.stop()}}),e)})))()}})},ft=(n(1472),Object(C.a)(ht,(function(){var t=this,e=t._self._c;return e(o.a,{attrs:{"offset-y":"","content-class":"rounded-lg global-add-menu white"},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e("div",{staticClass:"d-flex justify-center",staticStyle:{position:"relative"}},[e(r.a,t._g(t._b({staticStyle:{"background-color":"#179b2d !important","z-index":"1"},attrs:{color:"secondary",icon:""}},"v-btn",c,!1),o),[e("span",{staticStyle:{"font-size":"28px"}},[t._v("+")])]),t._v(" "),e("div",{staticClass:"l-card-content-add-line",style:t.$vuetify.breakpoint.xsOnly?"width:60vw":"  width: 40vw"})],1)]}}])},[t._v(" "),e("div",{staticClass:"d-flex flex-wrap align-center my-3",class:{"content-max-w":!t.$vuetify.breakpoint.xsOnly}},[e("div",{staticClass:"d-flex flex-column align-center cursor-pointer my-4 content-add-btn",on:{click:function(){return t.$emit("add","text",t.order+1)}}},[e("LAsset",{attrs:{width:"42",file:"icon-sport"}}),t._v(" "),e("LLabel",{staticClass:"ma-auto"},[t._v(" Text ")])],1),t._v(" "),e("div",{staticClass:"d-flex flex-column align-center cursor-pointer my-4 content-add-btn",on:{click:function(){return t.$emit("add","image",t.order+1)}}},[e("LAsset",{attrs:{width:"42",file:"icon-picture"}}),t._v(" "),e("LLabel",{staticClass:"ma-auto"},[t._v(" Images ")])],1),t._v(" "),e("div",{staticClass:"d-flex flex-column align-center cursor-pointer my-4 content-add-btn",on:{click:function(){return t.$emit("add","audio",t.order+1)}}},[e("LAsset",{attrs:{width:"42",file:"icon-audio"}}),t._v(" "),e("LLabel",{staticClass:"ma-auto"},[t._v(" Audio ")])],1),t._v(" "),e("div",{staticClass:"d-flex flex-column align-center cursor-pointer my-4 content-add-btn",on:{click:function(){return t.$emit("add","video",t.order+1)}}},[e("LAsset",{attrs:{width:"42",file:"icon-television"}}),t._v(" "),e("LLabel",{staticClass:"ma-auto"},[t._v(" Video ")])],1),t._v(" "),t.hasPlanPermission("can_upload_files")?e("div",{staticClass:"d-flex flex-column align-center cursor-pointer my-4 content-add-btn",on:{click:function(){return t.$emit("add","file",t.order+1)}}},[e("LAsset",{attrs:{width:"42",file:"icon-file"}}),t._v(" "),e("LLabel",{staticClass:"ma-auto"},[t._v(" File ")])],1):t._e(),t._v(" "),e("div",{staticClass:"d-flex flex-column align-center cursor-pointer my-4 content-add-btn",on:{click:function(){return t.$emit("add","card",t.order+1)}}},[e("LAsset",{attrs:{width:"42",file:"icon-cards"}}),t._v(" "),e("LLabel",{staticClass:"ma-auto"},[t._v(" Card ")])],1),t._v(" "),t.card.vote_type||!["event","theme"].includes(t.card.type)||t.mustUpgrade?t._e():e("div",{staticClass:"d-flex flex-column align-center cursor-pointer my-4 content-add-btn",on:{click:function(){return t.$emit("add","rsvp",t.order+1)}}},[e("LAsset",{attrs:{width:"42",file:"icon-envelope"}}),t._v(" "),e("LLabel",{staticClass:"ma-auto"},[t._v(" RSVPs ")])],1),t._v(" "),t.card.vote_type||!["event","theme"].includes(t.card.type)||t.mustUpgrade?t._e():e("div",{staticClass:"d-flex flex-column align-center cursor-pointer my-4 content-add-btn",on:{click:function(){return t.$emit("add","signup",t.order+1)}}},[e("LAsset",{attrs:{width:"42",file:"icon-signup"}}),t._v(" "),e("LLabel",{staticClass:"ma-auto"},[t._v(" Signups ")])],1),t._v(" "),t.card.vote_type||t.mustUpgrade?t._e():e("div",{staticClass:"d-flex flex-column align-center cursor-pointer my-4 content-add-btn",on:{click:function(){return t.$emit("add","vote",t.order+1)}}},[e("LAsset",{attrs:{width:"42",file:"icon-poll"}}),t._v(" "),e("LLabel",{staticClass:"ma-auto"},[t._v(" Votes ")])],1),t._v(" "),e("div",{staticClass:"d-flex flex-column align-center cursor-pointer my-4 content-add-btn",on:{click:function(){return t.$emit("add","payment",t.order+1)}}},[e("LAsset",{attrs:{width:"42",file:"icon-money"}}),t._v(" "),e("LLabel",{staticClass:"ma-auto"},[t._v(" Payment ")])],1),t._v(" "),t.hasStickerWall?t._e():e("div",{staticClass:"d-flex flex-column align-center cursor-pointer my-4 content-add-btn",on:{click:function(){return t.$emit("add","stickers",t.order+1)}}},[e("LAsset",{attrs:{width:"42",file:"welcome-nudge-board"}}),t._v(" "),e("LLabel",{staticClass:"ma-auto"},[t._v(" Sticker Wall ")])],1),t._v(" "),!t.hasMessages&&t.canAddMessages?e("div",{staticClass:"d-flex flex-column align-center cursor-pointer my-4 content-add-btn",on:{click:function(){return t.$emit("add","messages",t.order+1)}}},[e("LAsset",{attrs:{width:"42",file:"icon-convo"}}),t._v(" "),e("LLabel",{staticClass:"ma-auto"},[t._v(" Discussion ")])],1):t._e(),t._v(" "),t.isAdmin?e("div",{staticClass:"d-flex flex-column align-center cursor-pointer my-4 content-add-btn",on:{click:function(){return t.$emit("add","theme",t.order+1)}}},[e("LAsset",{attrs:{width:"42",file:"icon-view-image"}}),t._v(" "),e("LLabel",{staticClass:"ma-auto"},[t._v(" Theme ")])],1):t._e(),t._v(" "),t.isAdmin?e("div",{staticClass:"d-flex flex-column align-center cursor-pointer my-4 content-add-btn",on:{click:function(){return t.$emit("add","article",t.order+1)}}},[e("LAsset",{attrs:{width:"42",file:"icon-list"}}),t._v(" "),e("LLabel",{staticClass:"ma-auto"},[t._v(" Article ")])],1):t._e(),t._v(" "),t.isAdmin?e("div",{staticClass:"d-flex flex-column align-center cursor-pointer my-4 content-add-btn",on:{click:function(){return t.$emit("add","planner",t.order+1)}}},[e("LAsset",{attrs:{width:"42",file:"icon-planner"}}),t._v(" "),e("LLabel",{staticClass:"ma-auto"},[t._v(" Planner ")])],1):t._e()]),t._v(" "),e("div",{staticClass:"d-flex justify-center"},[t.$vuetify.breakpoint.xsOnly?e(r.a,{staticClass:"rounded-xl elevation-0 default-font mt-4",staticStyle:{width:"40%"},attrs:{color:"primary",outlined:"","x-large":""}},[t._v("\n      Close\n    ")]):t._e()],1)])}),[],!1,null,"82c9e2ec",null).exports),gt=n(312),vt=n(237),bt=n(1135);function yt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _t(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yt(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var kt={name:"LCardContentVotes",components:{LIconBtn:vt.a,LVotes:bt.a},props:{editable:{type:Boolean,default:!1},order:{type:Number,required:!0},cardId:{type:String,required:!0},type:{type:String,required:!0}},computed:_t(_t({},Object(v.c)({getCard:"cards/getById"})),{},{card:function(){return this.getCard[this.cardId]}}),methods:_t(_t({},Object(v.b)({setEventEditViewGlobal:"view/setEventEditViewGlobal"})),{},{setEventEditView:function(view){var t=this;this.setEventEditViewGlobal(null),this.$nextTick((function(){t.setEventEditViewGlobal(view)}))}})},wt=Object(C.a)(kt,(function(){var t=this,e=t._self._c;return e("div",[t.editable?e("div",{staticClass:"shadow-outline pa-4 mb-4 rounded-lg text-center"},[e("div",{staticClass:"font-weight-bold"},["rsvp"===t.card.vote_type?[t._v("RSVP")]:[t._v("Sign Up Items")]],2),t._v(" "),e("div",{staticClass:"mt-3 mb-2 d-flex align-center justify-center"},[e("LIconBtn",{staticClass:"mx-2",attrs:{name:"Edit ".concat("rsvp"===t.card.vote_type?"Responses":"Items"),icon:"list",svg:""},on:{clicked:function(e){return t.setEventEditView("items")}}}),t._v(" "),e("LIconBtn",{staticClass:"mx-2",attrs:{name:"Edit Settings",icon:"gear",svg:""},on:{clicked:function(e){return t.setEventEditView("settings")}}})],1)]):e("LVotes",{attrs:{editable:t.editable,"card-id":t.cardId,question:""}}),t._v(" "),t.card.vote_type?t._e():e("div",{staticClass:"d-flex justify-center"},[e(gt.a,{attrs:{size:"48",color:"primary",indeterminate:""}})],1)],1)}),[],!1,null,null,null).exports,xt=n(1408),Ct=n(1120);function Ot(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function jt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ot(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var It={name:"LCardContentChecklist",components:{LCardBlockChecklist:xt.a,LTasks:Ct.a},props:{editable:{type:Boolean,default:!1},cardId:{type:String,required:!0},themed:{type:Boolean,default:!1}},data:function(){return{isUpdating:!1}},computed:jt(jt({},Object(v.c)({getCard:"cards/getById",getTasksByCardId:"tasks/getByCardId"})),{},{card:function(){return this.getCard[this.cardId]},tasks:function(){return this.getTasksByCardId(this.cardId)},isChecklistType:function(){return"checklist"===this.card.type},isGameView:function(){return"game"===this.card.view}}),mounted:function(){!this.isChecklistType&&this.card.view||this.showChecklist()},methods:jt(jt({},Object(v.b)({updateCard:"cards/update"})),{},{showChecklist:function(){var t=this;return Object(m.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isUpdating=!0,e.next=3,t.setCardView("game"===t.card.view?"game":"list");case 3:t.isUpdating=!1;case 4:case"end":return e.stop()}}),e)})))()},setCardView:function(view){var t=this;return Object(m.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.updateCard({id:t.card.id,fields:{view:view}});case 2:case"end":return e.stop()}}),e)})))()}})},St=Object(C.a)(It,(function(){var t=this,e=t._self._c;return t.isUpdating?e("div",{staticClass:"d-flex justify-center"},[e(gt.a,{attrs:{size:"48",color:"primary",indeterminate:""}})],1):e("div",[t.editable?e("LCardBlockChecklist",{attrs:{editable:t.editable,"card-id":t.cardId,active:""}}):t._e(),t._v(" "),e("LTasks",{key:"tasks-card-".concat(t.cardId),attrs:{"card-id":t.cardId,editable:t.editable,active:t.themed,"game-view":t.themed&&t.isGameView}})],1)}),[],!1,null,"03cbbd5e",null).exports,Lt=(n(239),{name:"LCardContentVenmo",props:{order:{type:Number,required:!0},amount:{type:String,default:""},button:{type:String,default:""},note:{type:String,default:""},username:{type:String,default:""},editable:{type:Boolean,default:!1},themed:{type:Boolean,default:!1}},data:function(){return{isEditing:!1}},computed:{vAmount:{get:function(){return this.amount},set:function(t){t!==this.amount&&this.debounceUpdate("amount",t)}},vButton:{get:function(){return this.button||"Pay on Venmo"},set:function(t){t!==this.button&&this.debounceUpdate("button",t)}},vNote:{get:function(){return this.note},set:function(t){t!==this.note&&this.debounceUpdate("note",t)}},vUsername:{get:function(){return this.username},set:function(t){t!==this.username&&this.debounceUpdate("username",t)}},link:function(){return"https://venmo.com/?txn=pay&audience=private&recipients=".concat(this.vUsername,"&amount=").concat(this.vAmount,"&note=").concat(this.vNote)}},mounted:function(){this.editable&&!this.vUsername&&(this.isEditing=!0)},methods:{debounceUpdate:w()((function(t,e){var n={order:this.order,type:"venmo",amount:this.vAmount,button:this.vButton,note:this.vNote,username:this.vUsername};n[t]=e,this.$emit("update",this.order,n)}),400)}}),Dt=Object(C.a)(Lt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center",class:{"white pa-4 rounded-xl position-relative my-3 shadow-outline":t.themed}},[t.isEditing?t._e():e(r.a,{staticClass:"elevation-0 rounded-xl",attrs:{color:"ldarkblue",dark:"","x-large":"",href:t.link,target:"_blank"}},[t._v(t._s(t.vButton))]),t._v(" "),t.editable?e("div",{staticClass:"my-5 mx-auto",staticStyle:{"max-width":"400px"}},[t.isEditing?e("div",[e(P.a,{key:"venmo-button",staticClass:"rounded-xl primary--text mb-5",attrs:{placeholder:"Button Text",label:"Button Text",outlined:"","hide-details":"",color:"primary"},model:{value:t.vButton,callback:function(e){t.vButton=e},expression:"vButton"}}),t._v(" "),e(P.a,{key:"venmo-username",staticClass:"rounded-xl primary--text mb-5",attrs:{placeholder:"Venmo Username",label:"Venmo Username",outlined:"",required:"","hide-details":"",color:"primary"},model:{value:t.vUsername,callback:function(e){t.vUsername=e},expression:"vUsername"}}),t._v(" "),e(P.a,{key:"venmo-amount",staticClass:"rounded-xl primary--text mb-5",attrs:{placeholder:"Amount (optional)",label:"Amount (optional)",outlined:"","hide-details":"",color:"primary",prefix:"$"},model:{value:t.vAmount,callback:function(e){t.vAmount=e},expression:"vAmount"}}),t._v(" "),e(P.a,{key:"venmo-note",staticClass:"rounded-xl primary--text mb-5",attrs:{placeholder:"Note (optional)",label:"Note (optional)",outlined:"","hide-details":"",color:"primary"},model:{value:t.vNote,callback:function(e){t.vNote=e},expression:"vNote"}})],1):t._e(),t._v(" "),e(r.a,{staticClass:"elevation-0 rounded-xl my-5",attrs:{color:"primary","x-large":t.isEditing,block:t.isEditing,outlined:!t.isEditing},on:{click:function(e){e.preventDefault(),t.isEditing=!t.isEditing}}},[t._v(t._s(t.isEditing?"Done":"Edit"))])],1):t._e()],1)}),[],!1,null,null,null).exports,Tt=n(1041),Mt=n(557),Pt=n(1065),Bt=n(368),Et={name:"LCardContentPayment",components:{LLabel:W.a},props:{order:{type:Number,required:!0},services:{type:Array,default:function(){return[{service:"venmo",button:"Pay on Venmo",username:""}]}},amount:{type:String,default:""},button:{type:String,default:""},note:{type:String,default:""},username:{type:String,default:""},editable:{type:Boolean,default:!1},themed:{type:Boolean,default:!1}},data:function(){return{isEditing:!1,zelleModal:!1,allServices:[{key:"venmo",name:"Venmo",color:"#008cff",usernameLabel:"Venmo Username"},{key:"cash",name:"Cash App",color:"#00d64f",usernameLabel:"Cash App Username"},{key:"zelle",name:"Zelle",color:"#6d1fd4",usernameLabel:"Phone Number (on Zelle)"},{key:"paypal",name:"PayPal",color:"#0070ba",usernameLabel:"PayPal Profile Username"}]}},computed:{pAmount:{get:function(){return this.amount},set:function(t){t!==this.amount&&this.debounceUpdate("amount",t)}},pNote:{get:function(){return this.note},set:function(t){t!==this.note&&this.debounceUpdate("note",t)}},pServices:{get:function(){return this.services},set:function(t){t!==this.services&&this.updateNow("services",t)}},hasZelle:function(){return!!this.pServices.find((function(s){return"zelle"===s.service}))},hasUsername:function(){return!(!this.pServices||!this.pServices.length)&&!!this.pServices.find((function(s){return!!s.username}))}},mounted:function(){this.editable&&!this.hasUsername&&(this.isEditing=!0)},methods:{updateNow:function(t,e){var n={order:this.order,services:this.services,type:"payment",amount:this.pAmount,note:this.pNote};n[t]=e,this.$emit("update",this.order,n)},debounceUpdate:w()((function(t,e){this.updateNow(t,e)}),400),getServiceField:function(t,e){var n=this.allServices.find((function(s){return s.key===t}));return n?n[e]:""},getSelectedServiceField:function(t,e){var n=this.pServices.find((function(s){return s.service===t}));return n?n[e]:""},toggleService:function(t){this.isActiveService(t)?this.removeService(t):this.addService(t)},removeService:function(t){this.pServices=this.pServices.filter((function(s){return s.service!==t}))},addService:function(t){this.pServices.push({service:t,username:this.getServiceField(t,"username"),button:this.getServiceField(t,"button")||"Pay on ".concat(this.getServiceField(t,"name"))})},isActiveService:function(t){return!!this.pServices.find((function(s){return s.service===t}))},link:function(t){var e=t.username;switch(t.service){case"cash":return"https://cash.app/".concat(e).concat(this.pAmount?"/"+this.pAmount:"");case"zelle":return"#";case"paypal":var n=e.replace("@","");return"https://www.paypal.com/paypalme/".concat(n).concat(this.pAmount?"/"+this.pAmount:"")}return"https://account.venmo.com/payment-link?audience=private&recipients=".concat(e,"&amount=").concat(this.pAmount,"&note=").concat(this.pNote)},zelleClick:function(t){"zelle"===t&&(this.zelleModal=!0)},formattedPhone:function(t){return Object(Bt.prettyPhone)(t)}}},At=Object(C.a)(Et,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center",class:{"white pa-4 rounded-xl position-relative my-3 shadow-outline":t.themed}},[t.isEditing?t._e():e("div",{class:{"d-flex align-center justify-center flex-wrap":!t.$vuetify.breakpoint.xsOnly}},t._l(t.pServices,(function(n){return e(r.a,{key:"pay-btn-service-".concat(n.service),staticClass:"elevation-0 rounded-xl mx-0 mx-sm-2 my-4 my-sm-2",attrs:{color:t.getServiceField(n.service,"color"),block:t.$vuetify.breakpoint.xsOnly,dark:"","x-large":"",href:"zelle"===n.service?null:t.link(n),target:"zelle"===n.service?null:"_blank"},on:{click:function(e){return t.zelleClick(n.service)}}},[t._v(t._s(n.button))])})),1),t._v(" "),t.editable?e("div",{staticClass:"my-5 mx-auto",staticStyle:{"max-width":"400px"}},[t.isEditing?e("div",[e("div",{staticClass:"mb-2"},[e("LLabel",[t._v("Choose Services:")]),t._v(" "),e("div",{staticClass:"d-flex align-center justify-center"},t._l(t.allServices,(function(n){return e(Mt.a,{key:"choose-service-".concat(n.key),staticClass:"ma-1",attrs:{color:t.isActiveService(n.key)?n.color:null,dark:t.isActiveService(n.key)},on:{click:function(e){return t.toggleService(n.key)}}},[t._v("\n            "+t._s(n.name)+"\n          ")])})),1)],1),t._v(" "),t._l(t.pServices,(function(n){return e("div",{key:"pay-btn-input-".concat(n.service),staticClass:"shadow-outline pa-4 mb-4 rounded-lg"},[e("LLabel",{staticClass:"mb-1",style:"color: ".concat(t.getServiceField(n.service,"color"),"!important")},[t._v(t._s(t.getServiceField(n.service,"name")))]),t._v(" "),e(P.a,{key:"".concat(t.order,"-").concat(n.service,"-payment-button"),staticClass:"rounded-xl mb-5",attrs:{placeholder:"".concat(t.getServiceField(n.service,"name")," Button Text"),label:"".concat(t.getServiceField(n.service,"name")," Button Text"),outlined:"","hide-details":"",color:t.getServiceField(n.service,"color")},model:{value:n.button,callback:function(e){t.$set(n,"button",e)},expression:"serviceObj.button"}}),t._v(" "),e(P.a,{key:"".concat(t.order,"-").concat(n.service,"-payment-username"),staticClass:"rounded-xl mb-5",attrs:{placeholder:t.getServiceField(n.service,"usernameLabel"),label:t.getServiceField(n.service,"usernameLabel"),outlined:"",required:"","hide-details":"",color:t.getServiceField(n.service,"color")},model:{value:n.username,callback:function(e){t.$set(n,"username",e)},expression:"serviceObj.username"}})],1)})),t._v(" "),e(P.a,{key:"".concat(t.order,"-payment-amount"),staticClass:"rounded-xl primary--text mb-5",attrs:{placeholder:"Amount (optional)",label:"Amount (optional)",outlined:"","hide-details":"",color:"primary",prefix:"$"},model:{value:t.pAmount,callback:function(e){t.pAmount=e},expression:"pAmount"}}),t._v(" "),e(P.a,{key:"".concat(t.order,"-payment-note"),staticClass:"rounded-xl primary--text mb-5",attrs:{placeholder:"Note (optional)",label:"Note (optional)",outlined:"","hide-details":"",color:"primary"},model:{value:t.pNote,callback:function(e){t.pNote=e},expression:"pNote"}})],2):t._e(),t._v(" "),e(r.a,{staticClass:"elevation-0 rounded-xl",attrs:{color:"primary","x-large":t.isEditing,block:t.isEditing,outlined:!t.isEditing},on:{click:function(e){e.preventDefault(),t.isEditing=!t.isEditing}}},[t._v(t._s(t.isEditing?"Done":"Edit"))])],1):t._e(),t._v(" "),t.hasZelle?e(Pt.a,{attrs:{width:"420"},model:{value:t.zelleModal,callback:function(e){t.zelleModal=e},expression:"zelleModal"}},[e(Tt.a,{staticClass:"white rounded-xl pa-4"},[e("div",{staticClass:"text-center pb-4"},[e("strong",{style:"color: ".concat(t.getServiceField("zelle","color"))},[t._v("Pay on Zelle")])]),t._v(" "),e("div",{staticClass:"pb-4"},[e("strong",[t._v("1. Open your Bank App")])]),t._v(" "),e("div",{staticClass:"pb-4"},[e("strong",[t._v('2. Select Zelle and "Send"')])]),t._v(" "),e("div",{staticClass:"pb-4"},[e("strong",[t._v("3. Enter the Recipient Information:")])]),t._v(" "),e("div",{staticClass:"ma-4 pa-4 shadow-outline rounded-lg"},[e("div",[t._v("\n          Phone:\n          "),e("strong",[t._v(t._s(t.formattedPhone(t.getSelectedServiceField("zelle","username"))))])]),t._v(" "),t.pAmount?e("div",[t._v("\n          Amount: $"),e("strong",[t._v(t._s(t.pAmount))])]):t._e(),t._v(" "),t.pNote?e("div",[t._v("\n          Note: "),e("strong",[t._v(t._s(t.pNote))])]):t._e()]),t._v(" "),e("div",{staticClass:"d-flex justify-space-around pt-4"},[e(r.a,{staticClass:"rounded-xl elevation-0 white--text",staticStyle:{width:"40%"},attrs:{"x-large":"",color:t.getServiceField("zelle","color")},on:{click:function(e){e.preventDefault(),t.zelleModal=!1}}},[t._v("\n          Done\n        ")])],1)])],1):t._e()],1)}),[],!1,null,null,null).exports;function Ft(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function zt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ft(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Vt={name:"LCardContentMessages",components:{LMessages:n(1401).a},props:{themed:{type:Boolean,default:!1},cardId:{type:String,required:!0}},data:function(){return{}},computed:zt(zt({},Object(v.c)({getCard:"cards/getById"})),{},{card:function(){return this.getCard[this.cardId]},color:function(){return this.typeField(this.card.type,"dynamicColor")&&this.card.game_theme?this.card.game_theme.color?this.card.game_theme.color:"primary":this.typeField(this.card.type,"color")}}),methods:{typeField:function(t,e){return y.a[t]?y.a[t][e]:""}}},$t=Object(C.a)(Vt,(function(){var t=this,e=t._self._c;return e("div",{class:{"white pa-4 rounded-xl position-relative my-3 shadow-outline":t.themed}},[e("LMessages",{attrs:{"type-id":"card-".concat(t.cardId),color:t.color}})],1)}),[],!1,null,"58ff142c",null).exports,Nt=n(1121),Rt=n(1254);function Ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Yt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ut(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Wt={name:"LCardContentTheme",components:{DataProvider:Nt.a,LCardAdd:j.a,LThemePreview:Rt.a},props:{order:{type:Number,required:!0},cardId:{type:String,default:""},addingCard:{type:Boolean,default:!1},editable:{type:Boolean,default:!1}},data:function(){return{}},computed:Yt(Yt({},Object(v.c)({getCard:"cards/getById"})),{},{card:function(){return this.getCard[this.cardId]},createLink:function(){if(!this.card)return"/create";var data={bg:this.getThemeField("bg"),icon:this.getThemeField("bg_emoji"),color:this.getThemeField("color"),img:this.card.image,name:this.card.name,template:this.card.slug},t="";return Object.keys(data).forEach((function(e){t+="&".concat(e,"=").concat(data[e])})),"/create?type=signup&theme=Other".concat(t)}}),mounted:function(){},methods:{goToCreate:function(){this.$router.push(this.createLink)},updatedCard:function(t){var e={order:this.order,type:"theme",card_id:t};this.$emit("update",this.order,e)},getThemeField:function(t){return this.card&&this.card.game_theme&&this.card.game_theme[t]?this.card.game_theme[t]:null}}},qt=Object(C.a)(Wt,(function(){var t=this,e=t._self._c;return e("div",[t.addingCard||!t.cardId&&t.editable?e("LCardAdd",{staticClass:"global-add-card-add pb-6",attrs:{permanent:"","full-height":t.$vuetify.breakpoint.xsOnly,large:"",reference:"","prevent-add":"",type:"theme"},on:{added:t.updatedCard,canceled:function(e){return t.$emit("canceled")}}}):t._e(),t._v(" "),t.cardId?e("div",{staticClass:"my-4"},[e("DataProvider",{attrs:{type:"cards",ids:[t.cardId]}},[e("LThemePreview",{attrs:{"card-id":t.cardId,editable:t.editable,small:t.$vuetify.breakpoint.smAndDown},on:{clicked:t.goToCreate}})],1)],1):t._e()],1)}),[],!1,null,null,null).exports,Ht=n(1190);function Gt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Jt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Gt(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Zt={name:"LCardContentArticle",components:{DataProvider:Nt.a,LCardAdd:j.a,LArticleListing:Ht.a},props:{order:{type:Number,required:!0},cardId:{type:String,default:""},addingCard:{type:Boolean,default:!1},editable:{type:Boolean,default:!1}},data:function(){return{}},computed:Jt(Jt({},Object(v.c)({getCard:"cards/getById"})),{},{card:function(){return this.getCard[this.cardId]}}),mounted:function(){},methods:{updatedCard:function(t){var e={order:this.order,type:"article",card_id:t};this.$emit("update",this.order,e)}}},Kt=Object(C.a)(Zt,(function(){var t=this,e=t._self._c;return e("div",[t.addingCard||!t.cardId&&t.editable?e("LCardAdd",{staticClass:"global-add-card-add pb-6",attrs:{permanent:"","full-height":t.$vuetify.breakpoint.xsOnly,large:"",reference:"","prevent-add":"",type:"article"},on:{added:t.updatedCard,canceled:function(e){return t.$emit("canceled")}}}):t._e(),t._v(" "),t.cardId?e("div",{staticClass:"my-4"},[e("DataProvider",{attrs:{type:"cards",ids:[t.cardId]}},[e("LArticleListing",{attrs:{"card-id":t.cardId,small:t.$vuetify.breakpoint.smAndDown}})],1)],1):t._e()],1)}),[],!1,null,null,null).exports,Xt=n(1283),Qt=n(226),te=n(355),ee=(n(72),n(38)),ae=n(369);function ie(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ne(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ie(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var re={name:"LBoardAdd",components:{LAsset:_.a,LEmojiPicker:ae.a,LLabel:W.a},props:{height:{type:String,default:"56"},value:{type:Boolean,default:!1},type:{type:String,default:""},preventAdd:{type:Boolean,default:!1}},data:function(){return{boardName:"",setIcon:!1,autofocus:!1,searchedName:"",boardIcon:"https://res.cloudinary.com/lome/image/upload/v1643300219/assets/icon-board.png",isCreatingBoard:!1,chosenPlannerId:""}},computed:ne(ne({},Object(v.c)({allPlanners:"planners/planners",getTagsByBoardId:"tags/getByBoardId"})),{},{planners:function(){var t=this;if(this.boardName){var e=this.boardName.toLowerCase();return this.allPlanners.filter((function(n){var r,o,c,l=null===(r=n.name)||void 0===r?void 0:r.toLowerCase(),d=null===(o=n.template.description)||void 0===o?void 0:o.toLowerCase();return(null==l?void 0:l.includes(e))||(null==d?void 0:d.includes(e))||(null===(c=t.getTagsByBoardId(n.id).map((function(t){var e;return null===(e=t.name)||void 0===e?void 0:e.toLowerCase()})))||void 0===c?void 0:c.some((function(t){return null==t?void 0:t.includes(e)})))}))}return this.allPlanners},isAddingBoard:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}}),watch:{boardName:function(){this.debounceEmojiLookup()}},mounted:function(){var t=this;"gallery"===this.type&&(this.boardIcon="art"),this.indexPlanners(),this.isAddingBoard&&setTimeout((function(){t.$nextTick((function(){t.autofocus=!0}))}),100)},methods:ne(ne({},Object(v.b)({createBoard:"boards/create",indexPlanners:"planners/index",memberActionWithData:"members/takeActionWithData"})),{},{handleCreateBoard:function(){var t=this;return Object(m.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.boardName){e.next=4;break}return t.autofocus=!1,t.$nextTick((function(){t.autofocus=!0})),e.abrupt("return");case 4:if(!t.preventAdd){e.next=6;break}return e.abrupt("return");case 6:return t.isCreatingBoard=!0,e.next=9,t.createBoard({name:t.boardName,icon:t.boardIcon||"board",type:t.type?t.type:"board"});case 9:n=e.sent,t.handleBoardStack(n),t.isCreatingBoard=!1,t.isAddingBoard=!1;case 13:case"end":return e.stop()}}),e)})))()},choosePlanner:function(t){var e=this;return Object(m.a)(regeneratorRuntime.mark((function n(){var r,data,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.chosenPlannerId){n.next=2;break}return n.abrupt("return");case 2:if(r=t.id,e.memberActionWithData({action:ee.q,data:{planner_name:t.name}}),!e.preventAdd){n.next=7;break}return e.$emit("added",r),n.abrupt("return");case 7:return e.chosenPlannerId=r,data={copyBoardId:r},n.next=11,e.createBoard(data);case 11:o=n.sent,e.handleBoardStack(o),e.chosenPlannerId="",e.$router.push("/b/".concat(o.id));case 15:case"end":return n.stop()}}),n)})))()},handleBoardStack:function(t){if(t){var data={name:t.name,linked_board_id:t.id,type:"board",view:"emoji"};this.$emit("create",data)}},debounceEmojiLookup:w()(Object(m.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.emojiLookup();case 2:case"end":return t.stop()}}),t,this)}))),500),emojiLookup:function(){var t=this;return Object(m.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.setIcon&&t.boardName&&t.boardName!==t.searchedName){e.next=2;break}return e.abrupt("return");case 2:return t.searchedName=t.boardName,e.next=5,t.$axios.$post("/media/find/emoji",{name:t.boardName});case 5:(n=e.sent)&&(t.boardIcon=n);case 7:case"end":return e.stop()}}),e)})))()}})},oe=(n(1474),Object(C.a)(re,(function(){var t=this,e=t._self._c;return e("div",[t.isAddingBoard?e("div",[t.preventAdd?t._e():e("div",{staticClass:"d-flex align-center justify-space-between pb-4"},[e("LLabel",[t._v("Create a board")]),t._v(" "),e("LAsset",{staticClass:"cursor-pointer",attrs:{width:"24",file:"icon-x"},on:{clicked:function(e){t.isAddingBoard=!1,t.$emit("cancel")}}})],1),t._v(" "),e(Xt.a,{on:{submit:function(e){return e.preventDefault(),t.handleCreateBoard.apply(null,arguments)}}},[e(P.a,{ref:"new-card-name",staticClass:"new-card-name",staticStyle:{"border-radius":"16px !important"},attrs:{"data-id":"new-card-name","hide-details":"",type:"text",dense:"",autofocus:t.autofocus,color:"primary",outlined:"",placeholder:t.preventAdd?"Search...":"gallery"===t.type?"Name your photo gallery":"Create a board for anything"},model:{value:t.boardName,callback:function(e){t.boardName=e},expression:"boardName"}},[e("div",{staticClass:"board-border-container",attrs:{slot:"prepend-inner"},slot:"prepend-inner"},[e("LAsset",{attrs:{width:"24","file-url":"https://res.cloudinary.com/lome/image/upload/v1650028409/assets/icon-stack-box-board.png"}}),t._v(" "),e("LEmojiPicker",{staticClass:"board-border-img",attrs:{mediakey:"board-add-icon",size:"18px"},on:{input:function(e){t.setIcon=!0}},model:{value:t.boardIcon,callback:function(e){t.boardIcon=e},expression:"boardIcon"}})],1)])],1),t._v(" "),t.planners.length&&"gallery"!==t.type?e("div",[t.boardName||t.preventAdd?t._e():e("div",[e("LLabel",{staticClass:"pb-1 mt-6"},[t._v("Featured Planners")]),t._v(" "),e("hr",{staticClass:"primary hr-thin"})],1),t._v(" "),e(te.a,{staticClass:"mt-3",staticStyle:{"max-height":"190px","overflow-y":"scroll"},attrs:{color:"primary"}},t._l(t.planners,(function(n){return e(Qt.a,{key:n.id,staticClass:"d-flex align-center cursor-pointer",on:{click:function(e){return t.choosePlanner(n)}}},[e("div",{staticClass:"board-border-container-planner"},[e("LAsset",{attrs:{width:"40","file-url":"https://res.cloudinary.com/lome/image/upload/v1650028409/assets/icon-stack-box-board.png"}}),t._v(" "),e("LEmojiPicker",{staticClass:"board-border-img",attrs:{value:n.icon,mediakey:"board-add-icon",size:"32px",editable:!1}})],1),t._v(" "),n.id!==t.chosenPlannerId?e("div",{staticClass:"pl-2 font-weight-bold black--text",staticStyle:{"font-size":"16px"}},[t._v("\n            "+t._s(n.name)+"\n          ")]):e(gt.a,{staticClass:"mb-1 ml-2",attrs:{size:"24",color:"primary",indeterminate:""}})],1)})),1)],1):t._e(),t._v(" "),t.preventAdd?t._e():e("div",{staticClass:"mt-2"},[e(r.a,{staticClass:"rounded-xl elevation-0 mt-3",staticStyle:{width:"100%"},attrs:{color:"primary",disabled:!t.boardName||!!t.chosenPlannerId,loading:t.isCreatingBoard},on:{click:function(e){return e.preventDefault(),t.handleCreateBoard.apply(null,arguments)}}},[t._v(t._s("gallery"===t.type?"Create a Gallery":"Start a Blank Board"))]),t._v(" "),e(r.a,{staticClass:"rounded-xl elevation-0 mt-3",staticStyle:{width:"100%"},attrs:{outlined:"",color:"primary",to:"/planners"}},[t._v("Explore All Planners")])],1)],1):t._e(),t._v(" "),t.isAddingBoard?t._e():e("div",[e(V.a,{staticClass:"justify-start align-start mb-12",attrs:{dense:""}},[e(z.a,{staticClass:"flex-grow-0 mr-2 text-center"},[e("a",{staticClass:"no-underline stack-btn",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.isAddingBoard=!0}}},[e("LLabel",{staticStyle:{"font-size":"14px !important"}},[t._v("Add a Board")]),t._v(" "),e("LAsset",{attrs:{width:"130","file-url":"https://res.cloudinary.com/lome/image/upload/v1643300219/assets/icon-board.png"}})],1)])],1)],1)])}),[],!1,null,null,null)),se=oe.exports,ce=n(1210),le=n(126),de=n(1059),ue=(n(53),n(48),n(1308)),me=n(379);function pe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function he(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pe(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var fe={name:"LDiscoverBoards",components:{LFeatureBoard:ue.a,LSectionTitle:me.a},props:{boardIds:{type:Array,default:function(){return[]}},title:{type:String,default:""},saveText:{type:String,default:"Save"},button:{type:String,default:"View"},selectable:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},moreLink:{type:String,default:null},featured:{type:Boolean,default:!1},preview:{type:Boolean,default:!1}},data:function(){return{isSaving:!1}},computed:he(he({},Object(v.c)({getPlannerById:"planners/getById",getTagByTypeForBoard:"tags/getTagByTypeForBoard"})),{},{boards:function(){var t=this;if(!this.boardIds)return[];var e=this.boardIds.filter((function(e){return!!t.getPlannerById[e]&&(!t.preview||t.getPlannerById[e].template&&t.getPlannerById[e].template.image)})).map((function(e){return t.getPlannerById[e]})).filter((function(t,e,n){return n.findIndex((function(e){return e.name===t.name&&e.type===t.type}))===e}));return this.moreLink&&(e=e.slice(0,6)),e},boardWidth:function(){return this.preview?630:this.featured?414:248},boardHeight:function(){return 248}}),methods:{go:function(t){if(this.$emit("selected",t),!this.selectable){var e=this.getTagByTypeForBoard(t.id);this.$router.push("/planners/".concat(e?e.slug:"-","/").concat(t.slug))}},getImage:function(t){return t.image?t.image:t.icon?this.getIconUrl(t.icon):this.getIconUrl("board")},getIconUrl:function(t){return t?t.startsWith("https://")?t:(t.includes("/")||(t="emojis/".concat(t)),"https://res.cloudinary.com/lome/image/upload/".concat(t,".png")):null},color:function(t){return t&&t.template&&t.template.color?t.template.color:"primary"},shortDescription:function(t){if(!t.template||!t.template.description)return"";var e=t.template.description.indexOf("<p>"),n=t.template.description.indexOf("</p>")+4,r=this.stripHtml(t.template.description.slice(e,n)),o=this.getWords(r,15);return o+(o.length<r.length?"...":"")},stripHtml:function(html){return(new DOMParser).parseFromString(html,"text/html").body.textContent||""},getWords:function(t,e){return t.split(" ").slice(0,e).join(" ")}}},ge=(n(1476),Object(C.a)(fe,(function(){var t=this,e=t._self._c;return e("div",{class:"pb-12 discover-boards-".concat(t.vertical?"vertical":"horizontal")},[t.title&&!t.featured?e("LSectionTitle",{staticClass:"ml-2",staticStyle:{"margin-bottom":"0 !important"}},[e("div",{staticClass:"d-flex align-center"},[e("div",{staticStyle:{"line-height":"1"}},[e("span",{staticStyle:{display:"block"}},[t._v("\n          "+t._s(t.title)+"\n        ")])]),t._v(" "),e(de.a),t._v(" "),t.moreLink?e("div",[e(r.a,{staticClass:"primary--text rounded-xl elevation-0",attrs:{color:"white",to:t.moreLink}},[t._v("More ...")])],1):t._e()],1)]):t._e(),t._v(" "),e("div",{staticClass:"discover-boards-scroll"},[e("div",{staticClass:"discover-boards d-flex align-stretch",style:"\n          width:".concat(t.vertical?"auto":t.boards.length*(t.boardWidth+28)+"px","; \n          ")},[t.featured||t.preview?t._l(t.boards,(function(n){return e("LFeatureBoard",{key:"discover-board-".concat(n.id),staticClass:"ma-3",style:"".concat("width:"+t.boardWidth+"px;","\n         min-height: ").concat(t.boardHeight,"px; height: auto"),attrs:{"board-id":n.id,preview:t.preview},on:{clicked:function(e){return t.go(n)},"clicked-type":function(e){return t.go(n)}}})})):t._l(t.boards,(function(n){return e("div",{key:"discover-board-".concat(n.id),staticClass:"discover-board shadow-outline no-underline ma-3 cursor-pointer",style:"".concat(t.vertical?"":"width:"+t.boardWidth+"px;","\n         min-height: ").concat(t.boardWidth,"px; height: auto"),on:{click:function(e){return e.stopPropagation(),t.go(n)}}},[[e(ce.a,{scopedSlots:t._u([{key:"default",fn:function(o){var c=o.hover;return[e("div",[e(R.a,{staticClass:"rounded-xl cursor-pointer mx-auto",attrs:{alt:"".concat(n.name," image"),"max-width":"200",src:t.getImage(n)},on:{click:function(e){return e.stopPropagation(),t.go(n)}}},[e(le.g,[c?e("div",{class:"d-flex hoverbg justify-center align-center transition-fast-in-fast-out v-board--reveal",staticStyle:{height:"100%"}},[e("div",{staticStyle:{width:"75%"}},[e(r.a,{attrs:{color:t.color(n),dark:"",rounded:"",elevation:"0",block:""},on:{click:function(e){return e.stopPropagation(),t.go(n)}}},[t._v(t._s(t.button))])],1)]):t._e()])],1)],1)]}}],null,!0)}),t._v(" "),e("div",{staticClass:"pr-1 discover-board-title font-weight-bold",attrs:{title:n.name},domProps:{textContent:t._s(n.name)}}),t._v(" "),e("div",{staticClass:"grey--text discover-board-subtitle",domProps:{textContent:t._s(t.shortDescription(n))}})]],2)}))],2)])],1)}),[],!1,null,null,null).exports);function ve(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function be(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ve(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ye={name:"LBoardContentPlanner",components:{DataProvider:Nt.a,LBoardAdd:se,LDiscoverBoards:ge},props:{order:{type:Number,required:!0},boardId:{type:String,default:""},addingBoard:{type:Boolean,default:!1},editable:{type:Boolean,default:!1}},data:function(){return{}},computed:be(be({},Object(v.c)({getPlannerById:"planners/getById"})),{},{board:function(){return this.getPlannerById[this.boardId]},createLink:function(){if(!this.board)return"/create";var data={bg:this.getTemplateField("bg"),icon:this.getTemplateField("bg_emoji"),color:this.getTemplateField("color"),img:this.board.image,name:this.board.name,template:this.board.slug},t="";return Object.keys(data).forEach((function(e){t+="&".concat(e,"=").concat(data[e])})),"/create?type=signup&theme=Other".concat(t)}}),mounted:function(){},methods:{goToCreate:function(){this.$router.push(this.createLink)},updatedBoard:function(t){var e={order:this.order,type:"planner",board_id:t};this.$emit("update",this.order,e)},getTemplateField:function(t){return this.board&&this.board.template&&this.board.template[t]?this.board.template[t]:null}}},_e=Object(C.a)(ye,(function(){var t=this,e=t._self._c;return e("div",[t.addingBoard||!t.boardId&&t.editable?e("LBoardAdd",{staticClass:"pb-6",attrs:{value:!0,"full-height":t.$vuetify.breakpoint.xsOnly,"prevent-add":""},on:{added:t.updatedBoard,canceled:function(e){return t.$emit("canceled")}}}):t._e(),t._v(" "),t.boardId?e("div",{staticClass:"my-4"},[e("DataProvider",{attrs:{type:"planners",ids:[t.boardId]}},[e("LDiscoverBoards",{attrs:{"board-ids":[t.boardId],preview:""},on:{clicked:t.goToCreate}})],1)],1):t._e()],1)}),[],!1,null,null,null).exports,ke=n(1069),we=n(138);function xe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ce(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xe(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Oe={name:"LFileUploadBtn",components:{},data:function(){return{uploading:!1,acceptedTypes:["application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.oasis.opendocument.text","text/plain","text/csv"]}},methods:Ce(Ce({},Object(v.b)({cloudinaryUpload:"media/cloudinaryUploadFile"})),{},{handleOpenUpload:function(){this.$refs.file.click()},handleDrop:function(t){var e=t.dataTransfer.files;e.length>0&&this.handleUploadFile(e[0])},uploadFile:function(){var t=this.$refs.file;if(t&&t.files[0]){var e=t.files[0];this.handleUploadFile(e)}},handleUploadFile:function(t){var e=this;if(t){this.uploading=!0;var n=new FormData;n.append("file",t);var r=n.get("file");r&&this.acceptedTypes.includes(r.type)?(n.append("fileName",t.name.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9.-]/g,"")),this.cloudinaryUpload(n).then((function(t){e.uploading=!1,e.$emit("update",t)})).catch((function(){e.uploading=!1}))):this.uploading=!1}}})},je=Object(C.a)(Oe,(function(){var t=this,e=t._self._c;return e("div",{on:{dragover:function(t){t.preventDefault()},drop:[function(t){t.preventDefault()},function(e){!t.uploading&&t.handleDrop(e)}]}},[e("div",{staticClass:"d-flex justify-center text-center"},[e("div",{staticClass:"mx-auto",staticStyle:{"max-width":"410px"}},[e(r.a,{staticClass:"rounded-xl elevation-0 default-font mb-4",attrs:{color:"primary",outlined:"",block:"","x-large":"",loading:t.uploading},on:{click:function(e){return e.preventDefault(),t.handleOpenUpload.apply(null,arguments)}}},[t._v("\n        Upload File\n      ")]),t._v(" "),e("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file",accept:t.acceptedTypes.join(", ")},on:{change:t.uploadFile}}),t._v(" "),t._m(0)],1)])])}),[function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"font-size":"14px"}},[t._v("\n        Drag and drop a\n        "),e("abbr",{attrs:{title:"pdf, doc(x), xls(x), ppt(x), odt, txt, csv"}},[t._v("file")]),t._v("\n        here, or click the button to upload\n      ")])}],!1,null,"2257727e",null),Ie={name:"LCardContentFile",components:{LFileUploadBtn:je.exports,LAsset:_.a},props:{order:{type:Number,required:!0},fileUrl:{type:String,default:""},editable:{type:Boolean,default:!1},color:{type:String,default:"primary"},name:{type:String,default:""},renaming:{type:Boolean,default:!1}},data:function(){return{rename:""}},computed:{contentName:function(){return this.name?this.name:this.fileName},fileName:function(){return this.fileUrl?this.fileUrl.split("/").pop():""},downloadUrl:function(){if(this.fileUrl){if(this.fileUrl.includes("/fl_attachment/"))return this.fileUrl;var t=this.fileUrl.split("/"),e=t.indexOf("upload")+1;return t.splice(e,0,"fl_attachment:".concat(this.fileNameToDownload(this.fileName))),t.join("/")}}},watch:{renaming:function(t){t&&(this.rename=this.contentName)}},methods:{fileNameToDownload:function(t){var e=t.includes(".")?t.split(".").slice(0,-1).join("."):t;return e=e.replace(/[^a-zA-Z0-9_\-! ]/g,"")},handleUpdate:function(t){var e={order:this.order,type:"file",file_url:t};this.$emit("update",this.order,e)},handleRename:function(){var t={order:this.order,type:"file",file_url:this.fileUrl,name:this.rename};this.$emit("update",this.order,t),this.$emit("renamed")}}},Se=Object(C.a)(Ie,(function(){var t=this,e=t._self._c;return e("div",{class:{"white pa-6 rounded-xl shadow-outline":!t.editable}},[t.editable&&t.renaming?e("div",[e("form",{staticClass:"d-flex align-center py-6",on:{submit:function(e){return e.preventDefault(),t.handleRename.apply(null,arguments)}}},[e(P.a,{staticClass:"rounded-xl",attrs:{type:"text","hide-details":"",dense:"",small:"",outlined:"",autofocus:"",placeholder:t.fileName},model:{value:t.rename,callback:function(e){t.rename=e},expression:"rename"}}),t._v(" "),e(r.a,{staticClass:"btn-circle elevation-0 ml-1",attrs:{width:"36",color:"primary",type:"submit"},on:{click:function(e){return e.preventDefault(),t.handleRename.apply(null,arguments)}}},[e("LAsset",{attrs:{width:"16",file:"icon-check-white"}})],1)],1)]):t.fileUrl?e("div",[e("a",{class:"d-flex align-center no-underline font-weight-bold ".concat(t.color,"--text"),attrs:{href:t.downloadUrl,download:t.fileName}},[e("LAsset",{attrs:{height:"64",file:"file-upload"}}),t._v(" "),e("span",{staticClass:"ml-1"},[t._v(t._s(t.contentName))])],1)]):t.editable?e("div",[e("LFileUploadBtn",{on:{update:t.handleUpdate}})],1):t._e()])}),[],!1,null,null,null),Le=Se.exports;function De(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Te(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?De(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Me={name:"LCardContent",components:{LAsset:_.a,LCardContentText:O,LCardContentCard:T,LCardContentCards:M.a,LCardContentVideo:E,LCardContentAudio:F,LCardContentImages:Q,LCardContentStickers:ut,LCardContentAdd:ft,LCardContentVotes:wt,LCardContentChecklist:St,LCardContentVenmo:Dt,LCardContentPayment:At,LCardContentMessages:$t,LCardContentTheme:qt,LCardContentArticle:Kt,LCardContentPlanner:_e,LConfirmModal:ke.a,LDivider:Y.a,LIcon:we.a,LMenu:H.a,LCardContentFile:Le,draggable:f.a},props:{cardId:{type:String,required:!0},editable:{type:Boolean,default:!1},themed:{type:Boolean,default:!1},hideVotes:{type:Boolean,default:!1}},data:function(){return{addingBoard:!1,addingCard:!1,addingImage:!1,isDeletingOrder:null,renamingFile:!1}},computed:Te(Te({},Object(v.c)({getCard:"cards/getById"})),{},{card:function(){return this.getCard[this.cardId]},cardType:function(){return this.card.type},cardVoteType:function(){return this.card.vote_type},hasChecklistContent:function(){return!!this.cardContents.find((function(t){return"checklist"===t.type}))},hasVoteContent:function(){var t=this;return!!this.cardContents.find((function(e){return e.type===t.card.vote_type}))},cardContents:function(){return this.card.content||[]},confirmDeleteText:function(){return null===this.isDeletingOrder?"":"Are you sure you want to delete this?"},confirmDeleteName:function(){var t=this;if(null===this.isDeletingOrder)return"";var content=this.cardContents.find((function(content){return content.order===t.isDeletingOrder})),e="Yes, delete forever";switch(content?content.type:null){case"messages":e="Yes, delete ALL comments forever";break;case"cards":e="Yes, remove links to cards";break;case"images":e="Yes, delete ALL images"}return e},color:function(){return this.typeField(this.card.type,"dynamicColor")&&this.card.game_theme?this.card.game_theme.color?this.card.game_theme.color:"primary":this.typeField(this.card.type,"color")}}),mounted:function(){"checklist"!==this.cardType||this.hasChecklistContent||this.createMissingChecklistContent(),this.cardVoteType&&!this.hasVoteContent&&"theme"!==this.card.type&&this.createMissingVoteContent()},methods:Te(Te({},Object(v.b)({updateCard:"cards/update",deleteAsset:"media/deleteCloudinaryAsset",deleteAssetFromUrl:"media/deleteCloudinaryAssetFromUrl",deleteAllVotes:"votes/deleteAll"})),{},{createMissingChecklistContent:function(){var t=this;return Object(m.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.addBlock("checklist",t.cardContents.length+1);case 2:case"end":return e.stop()}}),e)})))()},createMissingVoteContent:function(){var t=this;return Object(m.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.addBlock(t.card.vote_type,-1);case 2:t.updateBlockOrder();case 3:case"end":return e.stop()}}),e)})))()},optionsMenu:function(t,e){var n=this,r=[];return["card","cards"].includes(e)&&r.push({content:"Add a Card",asset:"icon-cards-white",func:function(){return n.addingCard=!0}}),"image"===e&&r.push({content:"Add Image",asset:"icon-image-view-white",func:function(){return n.addingImage=!0}}),"file"===e&&r.push({content:"Rename",asset:"icon-edit-white",func:function(){return n.renamingFile=!0}}),r.push({content:"cards"===e||"image"===e?"Delete All":"Delete",asset:"icon-delete-white",func:function(){n.isDeletingOrder=t},hideDivider:!0,deleteBtn:!0}),r},updateBlockOrder:function(){var t=this.cardContents.map((function(content,t){return Te(Te({},content),{},{order:t+1})}));this.updateField("content",t)},addBlock:function(t,e){var n=this;return Object(m.a)(regeneratorRuntime.mark((function r(){var content,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(content=n.card.content?JSON.parse(JSON.stringify(n.card.content)):[]).map((function(t){return t.order>=e&&t.order++,t})),o={order:e,type:t},content.splice(content.findLastIndex((function(t){return(null==t?void 0:t.order)<e}))+1,0,o),content.sort((function(a,b){return(null==a?void 0:a.order)-(null==b?void 0:b.order)})),r.next=7,n.updateField("content",content);case 7:case"end":return r.stop()}}),r)})))()},deleteContent:function(t){var e=this;return Object(m.a)(regeneratorRuntime.mark((function n(){var r,content,o,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return content=JSON.parse(JSON.stringify(e.card.content)),o=content.find((function(content){return content.order===t})),["image","stickers"].includes(o.type)&&null!==(r=o.images)&&void 0!==r&&r.length&&e.deleteAsset(o.images.map((function(img){return img.image}))),"file"===o.type&&o.file_url&&e.deleteAssetFromUrl(o.file_url),c=content.filter((function(content){return content.order!==t})),n.next=7,e.updateField("content",c);case 7:if(!["rsvp","signup","signup-rsvp","vote"].includes(o.type)){n.next=12;break}return n.next=10,e.deleteAllVotes(e.cardId);case 10:return n.next=12,e.updateField("vote_type",null);case 12:if("checklist"!==o.type){n.next=15;break}return n.next=15,e.updateField("view",null);case 15:e.isDeletingOrder=null;case 16:case"end":return n.stop()}}),n)})))()},updateContentField:function(t,e){this.addingCard=!1;var n=(this.card.content?JSON.parse(JSON.stringify(this.card.content)):[]).filter((function(content){return content.order!==t}));n.push(e),n.sort((function(a,b){return(null==a?void 0:a.order)-(null==b?void 0:b.order)})),this.updateField("content",n)},updateField:function(t,e){var n=this;return Object(m.a)(regeneratorRuntime.mark((function r(){var o,c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(o={})[t]=e,c={id:n.cardId,fields:o},r.next=5,n.updateCard(c);case 5:case"end":return r.stop()}}),r)})))()},typeField:function(t,e){return y.a[t]?y.a[t][e]:""}})},Pe=(n(1478),Object(C.a)(Me,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex flex-column"},[t.cardContents.length?e("draggable",{attrs:{handle:".handle",list:t.cardContents,group:{name:"cardContents"}},on:{update:t.updateBlockOrder}},t._l(t.cardContents,(function(content){return e("div",{key:content.order,staticClass:"d-flex flex-column align-center l-card-content-block",class:{"l-card-content-has-hover":!t.$vuetify.breakpoint.xsOnly}},[t.editable?e("div",{staticClass:"d-flex justify-space-between mb-3 l-card-content-tools"},[e("LAsset",{staticClass:"cursor-pointer handle secondary",style:"border-radius: 15px; ".concat(t.$vuetify.breakpoint.xsOnly?"visibility:hidden":""),attrs:{file:"icon-move",width:"20"}}),t._v(" "),"checklist"===t.cardType&&"checklist"===content.type||t.card.vote_type&&t.card.vote_type===content.type?t._e():e(o.a,{attrs:{"content-class":"rounded-lg primary","offset-y":""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e(r.a,t._g(t._b({staticClass:"rounded-xl elevation-0 primary--text",attrs:{color:"transparent","x-small":"",title:"Edit"}},"v-btn",c,!1),o),[e("LIcon",{attrs:{file:"dots",width:"20"}})],1)]}}],null,!0)},[t._v(" "),e("LMenu",{attrs:{items:t.optionsMenu(content.order,content.type)}},[["card","cards"].includes(content.type)?e("div",{staticClass:"text-center pa-3"},[e(r.a,{class:("detail"!==content.view?"half-opacity":"")+" ma-1",attrs:{icon:"",title:"Detail"},on:{click:function(e){return e.preventDefault(),t.updateContentField(content.order,d(d({},content),{},{view:"detail"}))}}},[e("LAsset",{attrs:{width:"36",file:"icon-list-white"}})],1),t._v(" "),e(r.a,{class:("emoji"!==content.view?"half-opacity":"")+" ma-1",attrs:{icon:"",title:"Emoji"},on:{click:function(e){return e.preventDefault(),t.updateContentField(content.order,d(d({},content),{},{view:"emoji"}))}}},[e("LAsset",{attrs:{width:"36",file:"icon-apple-white"}})],1),t._v(" "),e(r.a,{class:("image"!==content.view?"half-opacity":"")+" ma-1",attrs:{icon:"",title:"Image"},on:{click:function(e){return e.preventDefault(),t.updateContentField(content.order,d(d({},content),{},{view:"image"}))}}},[e("LAsset",{attrs:{width:"36",file:"icon-image-view-white"}})],1)],1):t._e(),t._v(" "),["card","cards"].includes(content.type)?e("LDivider",{attrs:{color:"white"}}):t._e()],1)],1)],1):t._e(),t._v(" "),e("div",{staticStyle:{width:"100%"}},["text"===content.type?e("LCardContentText",{attrs:{text:content.text,order:content.order,editable:t.editable,themed:t.themed,color:t.color},on:{update:t.updateContentField}}):t._e(),t._v(" "),"card"===content.type?e("LCardContentCard",{attrs:{order:content.order,"card-id":content.card_id,editable:t.editable,themed:t.themed,view:content.view,"adding-card":t.addingCard},on:{update:t.updateContentField,canceled:function(e){t.addingCard=!1}}}):t._e(),t._v(" "),"cards"===content.type&&"magic"!==t.card.type?e("LCardContentCards",{attrs:{order:content.order,"card-ids":content.card_ids,editable:t.editable,themed:t.themed,view:content.view,"adding-card":t.addingCard},on:{update:t.updateContentField,canceled:function(e){t.addingCard=!1}}}):t._e(),t._v(" "),"video"===content.type?e("LCardContentVideo",{attrs:{editable:t.editable,order:content.order,"video-url":content.vid_url},on:{update:t.updateContentField}}):t._e(),t._v(" "),"audio"===content.type?e("LCardContentAudio",{attrs:{editable:t.editable,order:content.order,"audio-url":content.audio_url},on:{update:t.updateContentField}}):t._e(),t._v(" "),"image"===content.type?e("LCardContentImages",{attrs:{editable:t.editable,order:content.order,images:content.images||[],"adding-image":t.addingImage},on:{update:t.updateContentField,upload:function(e){t.addingImage=!1}}}):t._e(),t._v(" "),"file"===content.type?e("LCardContentFile",{attrs:{order:content.order,editable:t.editable,"file-url":content.file_url,name:content.name,renaming:t.renamingFile,color:t.color},on:{update:t.updateContentField,renamed:function(e){t.renamingFile=!1}}}):t._e(),t._v(" "),"stickers"===content.type?e("LCardContentStickers",{attrs:{editable:t.editable,"card-id":t.card.id,order:content.order,images:content.images||[]},on:{update:t.updateContentField}}):t._e(),t._v(" "),["rsvp","signup","signup-rsvp","vote"].includes(content.type)&&!t.hideVotes?e("LCardContentVotes",{attrs:{editable:t.editable,order:content.order,"card-id":t.cardId,type:content.type}}):t._e(),t._v(" "),"checklist"===content.type?e("LCardContentChecklist",{staticClass:"mb-4",attrs:{editable:t.editable,"card-id":t.cardId,themed:t.themed}}):t._e(),t._v(" "),"venmo"===content.type?e("LCardContentVenmo",{staticClass:"mb-4",attrs:{order:content.order,amount:content.amount,button:content.button,note:content.note,username:content.username,editable:t.editable,"card-id":t.cardId,themed:t.themed},on:{update:t.updateContentField}}):t._e(),t._v(" "),"payment"===content.type?e("LCardContentPayment",{staticClass:"mb-4",attrs:{order:content.order,amount:content.amount,note:content.note,services:content.services,editable:t.editable,"card-id":t.cardId,themed:t.themed},on:{update:t.updateContentField}}):t._e(),t._v(" "),"messages"===content.type?e("LCardContentMessages",{staticClass:"mb-4",attrs:{themed:t.themed,"card-id":t.cardId}}):t._e(),t._v(" "),"theme"===content.type?e("LCardContentTheme",{attrs:{order:content.order,"card-id":content.card_id,editable:t.editable,"adding-card":t.addingCard},on:{update:t.updateContentField,canceled:function(e){t.addingCard=!1}}}):t._e(),t._v(" "),"article"===content.type?e("LCardContentArticle",{attrs:{order:content.order,"card-id":content.card_id,editable:t.editable,"adding-card":t.addingCard},on:{update:t.updateContentField,canceled:function(e){t.addingCard=!1}}}):t._e(),t._v(" "),"planner"===content.type?e("LCardContentPlanner",{attrs:{order:content.order,"board-id":content.board_id,editable:t.editable,"adding-board":t.addingBoard},on:{update:t.updateContentField,canceled:function(e){t.addingBoard=!1}}}):t._e()],1),t._v(" "),t.editable?e("div",{staticClass:"d-flex justify-center l-card-content-add"},[e("LCardContentAdd",{attrs:{order:content.order,"card-id":t.cardId},on:{add:t.addBlock}})],1):t._e()])})),0):e("div",{staticClass:"d-flex justify-center"},[t.editable?e("LCardContentAdd",{attrs:{"card-id":t.cardId},on:{add:t.addBlock}}):t._e()],1),t._v(" "),e("LConfirmModal",{attrs:{open:!!t.confirmDeleteText,text:t.confirmDeleteText,name:t.confirmDeleteName},on:{clicked:function(e){return t.deleteContent(t.isDeletingOrder)},closed:function(e){t.isDeletingOrder=null}}})],1)}),[],!1,null,null,null));e.a=Pe.exports},1408:function(t,e,n){"use strict";var r=n(350),o=n(1054),c=n(1044),l=n(1053),d=n(1058),m=(n(9),n(15),n(19),n(10),n(20),n(1)),h=n(2),f=(n(33),n(13),n(6),n(45),n(18)),v=n(43),y=n(100),_=n(354),k=n(312),w=n(530),x=(n(24),n(112),n(56),n(27),n(160)),C=n.n(x),O=[{bg:"secondary",color:"lred",art_emoji_1:"pirate-ship",art_emoji_2:"https://res.cloudinary.com/lome/image/upload/v1649876160/key-art/pirate-shark-surf.png",art_emoji_3:"https://res.cloudinary.com/lome/image/upload/v1649876160/key-art/pirate-boat.png",art_emoji_4:"treasure",hero_emoji_1:{main:"https://res.cloudinary.com/lome/image/upload/v1649877264/key-art/pirate-ship.png",front:"water",back:"weather-overcast",frontTop:53,backTop:0},hero_emoji_2:{main:"shark",front:"https://res.cloudinary.com/lome/image/upload/v1649878038/key-art/pure-water.png",back:"https://res.cloudinary.com/lome/image/upload/v1649878038/key-art/pirate-surf.png",frontTop:66,frontRight:19,backTop:0,backLeft:20},hero_emoji_3:{main:"https://res.cloudinary.com/lome/image/upload/v1649877261/key-art/pirate-boat.png",front:"waves",back:"parrot",frontTop:51},hero_emoji_4:{main:"treasure",front:"parrot",back:"sun",frontTop:12,frontRight:-10},bg_emoji:"crab",addon_left:-11,addon_top:-32,addon_size:58,addon_front:!0,addon_emoji:"pirate-hat",hide_dots:!1},{bg:"lpurple",color:"lgold",art_emoji_1:"rocket",art_emoji_2:"https://res.cloudinary.com/lome/image/upload/v1649875019/key-art/astronaut-cat.png",art_emoji_3:"solar-system",art_emoji_4:"moon",hero_emoji_1:{main:"earth",front:"rocket",back:"",movement:"blasting"},hero_emoji_2:{main:"https://res.cloudinary.com/lome/image/upload/v1649875019/key-art/astronaut-cat.png",front:"",back:"comet",backTop:-10,backLeft:6},hero_emoji_3:{main:"solar-system",front:"",back:"shooting-star",backTop:-11,backLeft:70},bg_emoji:"star",addon_left:-11,addon_top:-10,addon_size:64,addon_front:!0,addon_emoji:"astronaut-helmet",hide_dots:!1},{bg:"lpink",color:"lpurple",art_emoji_1:"person-wearing-tiara",art_emoji_2:"https://res.cloudinary.com/lome/image/upload/v1649875019/key-art/princess-wolf.png",art_emoji_3:"https://res.cloudinary.com/lome/image/upload/v1649875019/key-art/princess-cat.png",art_emoji_4:"diamond-ring",hero_emoji_1:{main:"https://res.cloudinary.com/lome/image/upload/v1649882900/key-art/singing-princess.png",front:"https://res.cloudinary.com/lome/image/upload/v1649882900/key-art/flying-dove.png",back:"https://res.cloudinary.com/lome/image/upload/v1649883311/key-art/golden-note.png",frontRight:7,frontTop:10},hero_emoji_2:{main:"https://res.cloudinary.com/lome/image/upload/v1649882900/key-art/unicorn-princess.png",front:"sparkle",back:"rainbow",frontTop:51,backTop:-10,backLeft:-7},hero_emoji_3:{main:"https://res.cloudinary.com/lome/image/upload/v1649882900/key-art/magic-fairy.png",front:"jack-o-lantern",back:"",frontTop:51},hero_emoji_4:{main:"https://res.cloudinary.com/lome/image/upload/v1649882900/key-art/princess-castle.png",front:"",back:"sun-cloud",backTop:0},bg_emoji:"sparkle",addon_left:9,addon_top:-5,addon_size:29,addon_front:!0,addon_emoji:"tiara",hide_dots:!1},{bg:"llightgreen",color:"lgreen",art_emoji_1:"soccer",art_emoji_2:"fans",art_emoji_3:"stadium",art_emoji_4:"party-popper",hero_emoji_1:{main:"https://res.cloudinary.com/lome/image/upload/v1650065803/key-art/soccer-wolf.png",front:"https://res.cloudinary.com/lome/image/upload/v1650066429/key-art/soccer-small.png",back:"",frontTop:60,frontRight:44,movement:"spin"},hero_emoji_2:{main:"fans",front:"fan-number",back:"party-popper",frontTop:46,frontRight:-12,backTop:-26,backLeft:20},hero_emoji_3:{main:"stadium",front:"",back:"flag",backTop:-17,backLeft:34},hero_emoji_4:{main:"trophy",front:"fireworks",back:"fireworks",backTop:-11,backLeft:-1,frontTop:-29,frontRight:-1,movement:"spin"},bg_emoji:"soccer",addon_left:-3,addon_top:27,addon_size:58,addon_front:!1,addon_emoji:"running",hide_dots:!1},{bg:"llightgreen",color:"lbrown",art_emoji_1:"cheetah",art_emoji_2:"https://res.cloudinary.com/lome/image/upload/v1649456987/key-art/animal-poker.png",art_emoji_3:"https://res.cloudinary.com/lome/image/upload/v1649456987/key-art/hungry-hippos.png",art_emoji_4:"https://res.cloudinary.com/lome/image/upload/v1649456987/key-art/animal-boxing.png",hero_emoji_1:{main:"https://res.cloudinary.com/lome/image/upload/v1649884641/key-art/cheetah-race.png",front:"snail",back:"horse-full",frontTop:40,frontRight:-2,backTop:10,backLeft:23},hero_emoji_2:{main:"https://res.cloudinary.com/lome/image/upload/v1649885238/key-art/animal-poker-table.png",front:"https://res.cloudinary.com/lome/image/upload/v1649885238/key-art/animal-poker-cub.png",back:"https://res.cloudinary.com/lome/image/upload/v1649885238/key-art/animal-poker-lion.png",frontTop:50,frontRight:56,backTop:13,backLeft:0},hero_emoji_3:{main:"https://res.cloudinary.com/lome/image/upload/v1649884641/key-art/hungry-hippos.png",front:"banana",back:"pineapple",frontTop:57,frontRight:64,backTop:3,backLeft:10},hero_emoji_4:{main:"https://res.cloudinary.com/lome/image/upload/v1649884995/key-art/animal-boxing-ring.png",front:"https://res.cloudinary.com/lome/image/upload/v1649885664/key-art/animal-boxing-ref.png",back:"",backTop:-11,backLeft:-1,frontTop:49},bg_emoji:"tree",addon_left:-27,addon_top:-7,addon_size:94,addon_front:!1,addon_emoji:"jeep",hide_dots:!1},{bg:"white",color:"ldarkbrown",art_emoji_1:"castle",art_emoji_2:"dragon-full",art_emoji_3:"person-wearing-tiara",art_emoji_4:"",bg_emoji:"crossed-swords",addon_left:-2,addon_top:-26,addon_size:47,addon_front:!0,addon_emoji:"crown",hide_dots:!1},{bg:"secondary",color:"ldarkblue",art_emoji_1:"school-bus",art_emoji_2:"teacher",art_emoji_3:"classroom",art_emoji_4:"",bg_emoji:"math",addon_left:8,addon_top:-22,addon_size:52,addon_front:!0,addon_emoji:"graduation-cap",hide_dots:!1},{bg:"lbabyblue",color:"lteal",art_emoji_1:"bed",art_emoji_2:"pajamas",art_emoji_3:"lights-out",art_emoji_4:"",bg_emoji:"zzz",addon_left:37,addon_top:-24,addon_size:24,addon_front:!0,addon_emoji:"zzz",hide_dots:!1},{bg:"lpink",color:"lred",art_emoji_1:"love-letter",art_emoji_2:"love-eyes",art_emoji_3:"candy-hearts",art_emoji_4:"",bg_emoji:"heart",addon_left:0,addon_top:2,addon_size:45,addon_front:!0,addon_emoji:"heart-eyes-only",hide_dots:!1},{bg:"lbabyblue",color:"ldarkblue",art_emoji_1:"crying-laugh",art_emoji_2:"love-eyes",art_emoji_3:"wink-with-tongue-out",art_emoji_4:"",bg_emoji:"glowing-star",addon_left:-5,addon_top:-4,addon_size:54,addon_front:!0,addon_emoji:"lol-face-only",hide_dots:!1},{bg:"lteal",color:"lyellow",art_emoji_1:"groceries",art_emoji_2:"cake-slice",art_emoji_3:"mouse-full",art_emoji_4:"thanksgiving",bg_emoji:"plate",addon_left:-2,addon_top:-28,addon_size:52,addon_front:!0,addon_emoji:"chefs-hat",hide_dots:!1},{bg:"ldarkblue",color:"lgold",art_emoji_1:"dolphin",art_emoji_2:"octopus",art_emoji_3:"squid",art_emoji_4:"blowfish",bg_emoji:"tropical-fish",addon_left:0,addon_top:-13,addon_size:45,addon_front:!0,addon_emoji:"goggles",hide_dots:!1},{bg:"llightgreen",color:"lbrown",art_emoji_1:"t-rex",art_emoji_2:"dinosaur",art_emoji_3:"volcano",art_emoji_4:"",bg_emoji:"desert-island",addon_left:-6,addon_top:-24,addon_size:55,addon_front:!0,addon_emoji:"explorer-hat",hide_dots:!1},{bg:"lblue",color:"white",art_emoji_1:"racing-car",art_emoji_2:"racing-flag",art_emoji_3:"trophy",art_emoji_4:"",bg_emoji:"smoke",addon_left:-9,addon_top:-21,addon_size:58,addon_front:!0,addon_emoji:"racing-helmet",hide_dots:!1},{bg:"lbabyblue",color:"lred",art_emoji_1:"plane",art_emoji_2:"suitcase",art_emoji_3:"earth",art_emoji_4:"",bg_emoji:"weather-overcast",addon_left:-7,addon_top:-25,addon_size:59,addon_front:!0,addon_emoji:"pilot-hat",hide_dots:!1},{bg:"black",color:"white",art_emoji_1:"ghost",art_emoji_2:"cherry",art_emoji_3:"videogames",art_emoji_4:"",bg_emoji:"eyes",addon_left:-10,addon_top:-44,addon_size:62,addon_front:!1,addon_emoji:"pin",hide_dots:!1},{bg:"lyellow",color:"ldarkbrown",art_emoji_1:"history",art_emoji_2:"cactus",art_emoji_3:"scorpion",art_emoji_4:"",bg_emoji:"palm-tree",addon_left:-36,addon_top:24,addon_size:69,addon_front:!1,addon_emoji:"camel",hide_dots:!1},{bg:"llightgreen",color:"lblue",art_emoji_1:"croc-full",art_emoji_2:"snake",art_emoji_3:"lizard",art_emoji_4:"",bg_emoji:"lotus",addon_left:-48,addon_top:-11,addon_size:102,addon_front:!1,addon_emoji:"motor-boat",hide_dots:!1},{bg:"llightgreen",color:"lgreen",art_emoji_1:"football",art_emoji_2:"fans",art_emoji_3:"stadium",art_emoji_4:"trophy",hero_emoji_1:{main:"https://res.cloudinary.com/lome/image/upload/v1649876160/key-art/football-wolf.png",front:"football",back:"",frontTop:30,frontRight:48,movement:"spin"},hero_emoji_2:{main:"fans",front:"fan-number",back:"party-popper",frontTop:46,frontRight:-12,backTop:-26,backLeft:20},hero_emoji_3:{main:"stadium",front:"",back:"flag",backTop:-17,backLeft:34},hero_emoji_4:{main:"trophy",front:"fireworks",back:"fireworks",backTop:-11,backLeft:-1,frontTop:-29,frontRight:-1,movement:"spin"},bg_emoji:"football",addon_left:-11,addon_top:-20,addon_size:67,addon_front:!0,addon_emoji:"football-helmet",hide_dots:!1},{bg:"lpurple",color:"lyellow",art_emoji_1:"cartwheel",art_emoji_2:"trophy",art_emoji_3:"handball",art_emoji_4:"",bg_emoji:"glowing-star",addon_left:-8,addon_top:-55,addon_size:82,addon_front:!1,addon_emoji:"cartwheel",hide_dots:!1},{bg:"llightgreen",color:"lgreen",art_emoji_1:"clover",art_emoji_2:"rainbow",art_emoji_3:"sparkle",art_emoji_4:"footprints",bg_emoji:"clover",addon_left:0,addon_top:-23,addon_size:45,addon_front:!0,addon_emoji:"magicians-hat",hide_dots:!1},Object(h.a)(Object(h.a)(Object(h.a)(Object(h.a)(Object(h.a)({bg:"lyellow",color:"lblue",addon_left:0,addon_top:-9,hide_dots:!1,addon_size:45,art_emoji_1:"rabbit",art_emoji_2:"easter-eggs",art_emoji_3:"basket-of-eggs",art_emoji_4:"",bg_emoji:"carrot"},"addon_left",-31),"addon_top",-32),"addon_size",97),"addon_front",!1),"addon_emoji","bunny-ears"),{bg:"lbabyblue",color:"lgold",art_emoji_1:"sun",art_emoji_2:"surfing",art_emoji_3:"beach",art_emoji_4:"",bg_emoji:"waves",addon_left:0,addon_top:2,addon_size:45,addon_front:!0,addon_emoji:"sunglasses-only",hide_dots:!1},{bg:"lbabyblue",color:"ldarkblue",art_emoji_1:"weather-light-rain",art_emoji_2:"weather-storm",art_emoji_3:"weather-overcast",art_emoji_4:"sun-cloud",bg_emoji:"weather-heavy-rain",addon_left:-3,addon_top:-46,addon_size:64,addon_front:!1,addon_emoji:"umbrella-raindrops",hide_dots:!1},{bg:"white",color:"lblue",art_emoji_1:"snowman",art_emoji_2:"elf",art_emoji_3:"christmas-tree",art_emoji_4:"",bg_emoji:"snowflake",addon_left:0,addon_top:-30,addon_size:45,addon_front:!0,addon_emoji:"santa-cap",hide_dots:!1}],j=n(369),I=n(377),S=n(67),L=n(1070),D={x:null,y:null},T={x:null,y:null},M={mounted:function(){document&&document.addEventListener("dragover",(function(t){D.x=t.clientX,D.y=t.clientY}),!1)},methods:{drag:function(t){null===T.x&&(T.x=D.x,T.y=D.y);var e={top:D.y-T.y,left:D.x-T.x};T.x=D.x,T.y=D.y,Math.abs(e.top)>4||Math.abs(e.left)>4||this.$emit("moved",e)}}},P=n(12),B=Object(P.a)(M,(function(){var t=this,e=t._self._c;return e("div",[e("div",{ref:"ldragchild",attrs:{id:"ldragchild",draggable:"true",unselectable:"on"},on:{drag:t.drag}},[t._t("default")],2)])}),[],!1,null,"7a0b84df",null).exports,E=n(235);function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function F(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){Object(h.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var z={name:"LGameThemePicker",components:{LAsset:v.a,LEmoji:y.a,LEmojiPicker:j.a,LColorPicker:I.a,LLabel:S.a,LMember:L.a,LDragDrop:B,LDivider:E.a},props:{value:{type:Object,default:function(){return{}}},cardId:{type:String},editable:{type:Boolean,default:!0},hideRemove:{type:Boolean,default:!1},limited:{type:Boolean,default:!1},size:{type:String,default:"32px"}},data:function(){return{isOpen:!1,isCreating:!1,isLoading:!1,newTheme:O[0],premadeThemes:O}},computed:F(F({},Object(f.c)({home:"home/home",cards:"cards/cards",getCardById:"cards/getById",members:"members/members",lastCreatedMediaKey:"media/lastCreatedKey",getTasksByCardId:"tasks/getByCardId",hasPlanPermission:"home/hasPlanPermission"})),{},{customThemes:function(){var t=this;return this.limited?[]:C()(this.cards.filter((function(e){return!!e.game_theme&&e.home_id===t.home.id&&!t.isPremadeTheme(e.game_theme)})).sort((function(a,b){return a.updated_at>b.updated_at?-1:1})).map((function(t){return t.game_theme})),(function(e){return t.themeToString(e)}))},customThemeNumbers:function(){var t=this;if(!this.customThemes.length)return[];var e=this.customThemes.map((function(e){return t.getEmoji(e)})),n={};e.forEach((function(t){!1===n[t]?n[t]=!0:n[t]=!1}));var r={};return this.customThemes.map((function(e){var o=t.getEmoji(e);return n[o]?(r[o]?r[o]++:r[o]=1,r[o]):null}))},card:function(){return this.getCardById[this.cardId]},cardTasks:function(){return this.getTasksByCardId(this.cardId)},firstMember:function(){var t=this;return this.card.members&&this.card.members.length?this.members.find((function(e){return e.id===t.card.members[0]})):this.members[0]},newTop:{get:function(){return-1*this.newTheme.addon_top},set:function(t){this.newTheme.addon_top=-1*t}},theme:{get:function(){return this.cardId?this.card.game_theme||null:this.value},set:function(t){this.cardId?this.updateCard({id:this.cardId,fields:{game_theme:t}}):this.$emit("input",t)}},emoji:function(){return this.getEmoji(this.theme)},didCreateMedia:function(){return this.lastCreatedMediaKey&&["newtheme-art-emoji-1","newtheme-art-emoji-2","newtheme-art-emoji-3","newtheme-art-emoji-4","newtheme-bg-emoji","newtheme-addon-emoji"].includes(this.lastCreatedMediaKey)}}),watch:{isOpen:function(t){!t||this.editable?(t||(this.isCreating&&(this.saveNewTheme(),this.isCreating=!1),this.resetLastCreatedMedia()),this.$emit("toggle",t)):this.isOpen=!1},isCreating:function(t){t&&this.card.game_theme&&(this.newTheme=F({},this.card.game_theme))},didCreateMedia:function(t){t&&(this.isOpen=!0,this.isCreating=!0)}},mounted:function(){this.didCreateMedia&&(this.isOpen=!0,this.isCreating=!0),this.limited&&this.limitThemes()},methods:F(F({},Object(f.b)({updateCard:"cards/update",resetLastCreatedMedia:"media/resetLastCreated"})),{},{getEmoji:function(t){return t?t.art_emoji_1?t.art_emoji_1:t.bg_emoji:"sparkle"},limitThemes:function(){this.premadeThemes=this.premadeThemes.filter((function(t,i){return i<5}))},select:function(t){this.theme=t,this.isOpen=!1},remove:function(){this.theme=null,this.isOpen=!1},sizing:function(t){return t},updateArtEmoji:function(i){this.newTheme["hero_emoji_".concat(i)]&&(this.newTheme["hero_emoji_".concat(i)]=void 0),this.saveNewTheme()},saveNewTheme:function(){this.theme=this.newTheme},saveAndClose:function(){this.select(this.newTheme)},themeToString:function(t){if(!t)return"";var e=Object.keys(this.premadeThemes[0]),n="";return e.forEach((function(e){n+=t[e]||""})),n},moveAddon:function(t){var e=t.top,n=t.left;this.newTheme.addon_top+=e,this.newTheme.addon_left+=n},isSelected:function(t){return this.themeToString(this.theme)===this.themeToString(t)},isPremadeTheme:function(t){var e=this;return this.premadeThemes.filter((function(n){return e.themeToString(n)===e.themeToString(t)})).length>0},numTasksWarning:function(a){var t=3*(a-1);return this.cardTasks.length>t?"":" only shows if you have ".concat(t+1,"+ tasks")}})},V=(n(1458),Object(P.a)(z,(function(){var t=this,e=t._self._c;return e("div",[t.editable?e(c.a,{attrs:{"close-on-content-click":!1,"offset-y":"","content-class":"rounded-lg game-theme-picker-menu ".concat(t.limited?"game-theme-picker-limited":""," white")},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e(r.a,t._g(t._b({class:{"almost-hidden-btn rounded-lg":!t.emoji},style:"color: #333; font-size: ".concat(t.size,"; height: ").concat(t.size,"; width: ").concat(t.size),attrs:{color:"secondary",icon:"","x-large":""}},"v-btn",c,!1),o),[t.emoji?e("LEmoji",{attrs:{file:t.emoji,block:""}}):[t._v(" ")]],2)]}}]),model:{value:t.isOpen,callback:function(e){t.isOpen=e},expression:"isOpen"}},[t._v(" "),e(_.a,{staticClass:"white rounded-lg game-theme-picker-list"},[e("div",{staticClass:"white"},[t.isCreating?e("div",{staticClass:"px-2 py-0"},[e(l.a,{staticClass:"mb-1 mx-1",attrs:{dense:""}},[e(o.a,{attrs:{cols:"6"}},[e("LLabel",[t._v("Background")]),t._v(" "),e("div",{staticClass:"d-flex"},[e(d.a,{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var r=n.on,o=n.attrs;return[e("div",t._g(t._b({},"div",o,!1),r),[e("LColorPicker",{on:{input:t.saveNewTheme},model:{value:t.newTheme.bg,callback:function(e){t.$set(t.newTheme,"bg",e)},expression:"newTheme.bg"}})],1)]}}],null,!1,89239593)},[t._v(" "),e("span",[t._v("Background Color")])]),t._v(" "),e(d.a,{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var r=n.on,o=n.attrs;return[e("div",t._g(t._b({},"div",o,!1),r),[e("LEmojiPicker",{key:"newtheme-bg-emoji",staticClass:"ml-1",attrs:{mediakey:"newtheme-bg-emoji",size:"48px"},on:{input:t.saveNewTheme},model:{value:t.newTheme.bg_emoji,callback:function(e){t.$set(t.newTheme,"bg_emoji",e)},expression:"newTheme['bg_emoji']"}})],1)]}}],null,!1,1536658649)},[t._v(" "),e("span",[t._v("Background Emoji")])])],1)],1),t._v(" "),e(o.a,{attrs:{cols:"6"}},[e("LLabel",[t._v("Foreground")]),t._v(" "),e("div",{staticClass:"d-flex"},[e(d.a,{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var r=n.on,o=n.attrs;return[e("div",t._g(t._b({},"div",o,!1),r),[e("LColorPicker",{staticClass:"mr-1",attrs:{"allow-custom":t.hasPlanPermission("can_use_custom_color")},on:{input:t.saveNewTheme},model:{value:t.newTheme.color,callback:function(e){t.$set(t.newTheme,"color",e)},expression:"newTheme.color"}})],1)]}}],null,!1,2271626050)},[t._v(" "),e("span",[t._v("Foreground Color")])]),t._v(" "),e(d.a,{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e(r.a,t._g(t._b({class:"".concat(t.newTheme.color,"--text tooltip-theme-hide-dots"),style:"font-size: 32px; height: 48px; width: 48px",attrs:{icon:"","x-large":""},on:{click:function(e){e.preventDefault(),t.newTheme.hide_dots=!t.newTheme.hide_dots}}},"v-btn",c,!1),o),[t.newTheme.hide_dots?e("LEmoji",{staticClass:"position-absolute",staticStyle:{"font-size":"48px"},attrs:{file:"no-symbol",block:""}}):t._e(),t._v(" "),e("span",[t._v("···")])],1)]}}],null,!1,1216633897)},[t._v(" "),e("span",[t._v("Show / Hide Dotted Lines")])])],1)],1)],1),t._v(" "),e(l.a,{staticClass:"mb-1 mx-1",attrs:{dense:""}},[e(o.a,[e(d.a,{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var r=n.on,o=n.attrs;return[e("div",t._g(t._b({},"div",o,!1),r),[e("LLabel",[t._v("Art")])],1)]}}],null,!1,1327807448)},[t._v(" "),e("span",[t._v("Images that appear in the game")])]),t._v(" "),e("div",{staticClass:"d-flex"},t._l([1,2,3,4],(function(a){return e("div",{key:"newtheme-art-emoji-".concat(a),class:{"half-opacity":!!t.numTasksWarning(a)}},[e(d.a,{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var r=n.on,o=n.attrs;return[e("div",t._g(t._b({},"div",o,!1),r),[e("LEmojiPicker",{class:"mr-3 tooltip-theme-art-".concat(a),attrs:{mediakey:"newtheme-art-emoji-".concat(a),size:"48px"},on:{input:function(e){return t.updateArtEmoji(a)}},model:{value:t.newTheme["art_emoji_".concat(a)],callback:function(e){t.$set(t.newTheme,"art_emoji_".concat(a),e)},expression:"newTheme[`art_emoji_${a}`]"}})],1)]}}],null,!0)},[t._v(" "),e("span",[t._v("Art "+t._s(a)+t._s(t.numTasksWarning(a)))])])],1)})),0)],1)],1),t._v(" "),e(l.a,{staticClass:"mb-1 mx-1",attrs:{dense:""}},[e(o.a,[e(d.a,{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var r=n.on,o=n.attrs;return[e("div",t._g(t._b({},"div",o,!1),r),[e("LLabel",[t._v("Dress up")])],1)]}}],null,!1,753225449)},[t._v(" "),e("span",[t._v("Add something for your avatar and resize it")])]),t._v(" "),e("div",{staticClass:"mb-2 d-flex align-center"},[e(d.a,{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var r=n.on,o=n.attrs;return[e("div",t._g(t._b({},"div",o,!1),r),[e("LEmojiPicker",{staticClass:"tooltip-theme-addon",attrs:{mediakey:"newtheme-addon-emoji",size:"48px"},on:{input:t.saveNewTheme},model:{value:t.newTheme.addon_emoji,callback:function(e){t.$set(t.newTheme,"addon_emoji",e)},expression:"newTheme.addon_emoji"}})],1)]}}],null,!1,2944385837)},[t._v(" "),e("span",[t._v("Something to wear (or ride?)")])]),t._v(" "),t.newTheme.addon_emoji?e(w.a,{staticClass:"tooltip-theme-size",attrs:{min:20,max:140,"hide-details":""},model:{value:t.newTheme.addon_size,callback:function(e){t.$set(t.newTheme,"addon_size",e)},expression:"newTheme.addon_size"}}):t._e(),t._v(" "),e(d.a,{attrs:{bottom:"",activator:".tooltip-theme-size"}},[e("span",[t._v("Resize your avatar item")])]),t._v(" "),e(d.a,{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[t.newTheme.addon_emoji?e(r.a,t._g(t._b({staticClass:"tooltip-theme-addon-front",attrs:{icon:""},on:{click:function(e){e.preventDefault(),t.newTheme.addon_front=!t.newTheme.addon_front}}},"v-btn",c,!1),o),[e("LAsset",{attrs:{width:"48",height:"48",file:t.newTheme.addon_front?"icon-send-back":"icon-bring-front"}})],1):t._e()]}}],null,!1,2025423369)},[t._v(" "),e("span",[t._v("Toggle your avatar in front / back")])])],1),t._v(" "),e(d.a,{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var r=n.on,o=n.attrs;return[e("div",t._g(t._b({},"div",o,!1),r),[e("LLabel",[t._v("Position")])],1)]}}],null,!1,3145447622)},[t._v(" "),e("span",[t._v("Drag around to position your avatar's item")])]),t._v(" "),e("div",{staticClass:"py-16 rounded-lg position-relative d-flex justify-center align-center",class:"".concat(t.newTheme.bg)},[e(r.a,{staticClass:"position-relative mx-2",style:"\n                      border-width: 3px !important; \n                      width: ".concat(t.sizing(64),"px;\n                      height: ").concat(t.sizing(64),"px"),attrs:{icon:"",outlined:"",color:t.newTheme.color||"primary","x-large":""}},[e("LDragDrop",{staticClass:"position-absolute",style:"cursor:move; z-index: ".concat(t.newTheme.addon_front?2:1,"; top:").concat(t.newTheme.addon_top,"px; left:").concat(t.newTheme.addon_left,"px"),on:{moved:t.moveAddon}},[e("LEmoji",{style:"font-size:".concat(t.sizing(t.newTheme.addon_size),"px;"),attrs:{file:t.newTheme.addon_emoji}})],1),t._v(" "),e("LMember",{staticClass:"new-theme-member-img",style:"z-index: ".concat(t.newTheme.addon_front?1:2),attrs:{width:"".concat(t.sizing(56),"px"),blink:"","hide-name":"",member:t.firstMember}})],1)],1)],1)],1),t._v(" "),e("div",[e(r.a,{staticClass:"rounded-xl elevation-0 mb-2",attrs:{block:"",color:"primary"},on:{click:function(e){return e.preventDefault(),t.saveAndClose.apply(null,arguments)}}},[t._v("Save")]),t._v(" "),e(r.a,{staticClass:"rounded-xl elevation-0 primary--text",attrs:{block:"",color:"secondary"},on:{click:function(e){e.preventDefault(),t.isCreating=!1}}},[t._v("Back to List")])],1)],1):t._e(),t._v(" "),!t.isCreating&&(t.cardId||t.theme&&!t.hideRemove)?e(l.a,{staticClass:"mb-1 mx-1",attrs:{align:"center",dense:""}},[t.cardId?e(o.a,{attrs:{cols:t.theme?6:12}},[e(r.a,{staticClass:"rounded-xl elevation-0",attrs:{block:"",color:"primary"},on:{click:function(e){e.preventDefault(),t.isCreating=!0}}},[t._v(t._s(t.theme?"Edit":"Create"))])],1):t._e(),t._v(" "),t.theme&&!t.hideRemove?e(o.a,{staticClass:"text-center tiny-text pr-3"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.remove.apply(null,arguments)}}},[t._v("REMOVE")])]):t._e()],1):t._e(),t._v(" "),t._t("default"),t._v(" "),t.isLoading?e("div",{staticClass:"d-flex justify-center"},[e(k.a,{staticClass:"mx-auto my-2",attrs:{indeterminate:"",color:"primary"}})],1):t._e(),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.isCreating,expression:"!isCreating"}]},[t.customThemes.length?e("LLabel",{staticClass:"pl-2"},[t._v("Your Themes")]):t._e(),t._v(" "),t.customThemes.length?e(l.a,{staticClass:"justify-start pl-2",attrs:{dense:""}},t._l(t.customThemes,(function(n,c){return e(o.a,{key:"theme-".concat(c),staticClass:"flex-grow-0"},[e(r.a,{class:{"btn-circle px-half":t.isSelected(n)},staticStyle:{"font-size":"1.5rem"},attrs:{large:"",color:"primary",icon:"",outlined:t.isSelected(n)},on:{click:function(e){return e.preventDefault(),t.select(n)}}},[t.customThemeNumbers[c]?e("div",{staticClass:"primary--text position-absolute",staticStyle:{"font-size":"10px",bottom:"-16px",right:"-3px"}},[t._v("\n                  "+t._s(t.customThemeNumbers[c])+"\n                ")]):t._e(),t._v(" "),e("LEmoji",{attrs:{width:"32",block:"",file:t.getEmoji(n)}})],1)],1)})),1):t._e(),t._v(" "),t.customThemes.length?e("LDivider",{staticClass:"mt-2 mb-3"}):t._e(),t._v(" "),e(l.a,{staticClass:"justify-start pl-2",attrs:{dense:""}},t._l(t.premadeThemes,(function(n,p){return e(o.a,{key:"theme-".concat(p),staticClass:"flex-grow-0"},[e(r.a,{class:{"btn-circle px-half":t.isSelected(n)},staticStyle:{"font-size":"1.5rem"},attrs:{large:"",color:"primary",icon:"",outlined:t.isSelected(n)},on:{click:function(e){return e.preventDefault(),t.select(n)}}},[e("LEmoji",{attrs:{width:"32",block:"",file:t.getEmoji(n)}})],1)],1)})),1)],1),t._v(" "),t.limited?e("div",{staticClass:"text-center",staticStyle:{"font-size":"12px"}},[e("a",{class:{"no-underline":!!t.theme},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.remove.apply(null,arguments)}}},[t._v("BLANK")])]):t._e()],2)])],1):e(r.a,{class:{"almost-hidden-btn rounded-lg":!t.emoji},style:"color: #333; font-size: ".concat(t.size,"; height: ").concat(t.size,"; width: ").concat(t.size),attrs:{color:"secondary",icon:"","x-large":""}},[t.emoji?e("LEmoji",{attrs:{file:t.emoji,block:""}}):[t._v(" ")]],2)],1)}),[],!1,null,null,null)),$=V.exports,N=n(1067);function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R(Object(n),!0).forEach((function(e){Object(h.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Y={name:"LCardBlockChecklist",components:{LAsset:v.a,LEmoji:y.a,LGameThemePicker:$,LMenu:N.a},props:{cardId:{type:String,required:!0},active:{type:Boolean,default:!1},editable:{type:Boolean,default:!1}},data:function(){return{isUpdating:!1,isResettingCompleted:!1,showConfirmMenu:!1,optionsMenu:!1}},computed:U(U({},Object(f.c)({getCardById:"cards/getById",getTasksByCardId:"tasks/getByCardId",members:"members/members"})),{},{menu:function(){var t=this,e=[];return this.showConfirmMenu?e.push.apply(e,[{content:"Cancel",asset:"icon-back-white",func:function(){return t.showConfirmMenu=!1},hideDivider:!0},{content:"Are you sure?",asset:"icon-delete-white",func:this.deleteAllTasks,hideDivider:!0,deleteBtn:!0}]):(e.push({content:"Launch",asset:"icon-launch-white",func:this.setActive,hideDivider:!0}),this.hasCompletedTasks&&e.push({content:"Uncheck All Tasks",asset:"icon-uncheck-all-white",func:this.resetCompleted,loading:this.isResettingCompleted}),e.push({content:this.isChecklistType?"Delete All Tasks":"Remove Checklist",asset:"icon-delete-all-white",deleteBtn:!0,hideDivider:!0,func:function(){return t.showConfirmMenu=!0}})),e},card:function(){return this.getCardById[this.cardId]},tasks:function(){return this.getTasksByCardId(this.cardId)},showInactiveChecklistBlock:function(){return!this.card.view},isChecklistType:function(){return"checklist"===this.card.type},cardMembers:function(){return this.card.members||[]},hasCompletedTasks:function(){return this.tasks.filter((function(t){return t.members_completed&&t.members_completed.length||t.completed_at})).length>0},isGameView:function(){return"game"===this.card.view},checklistEmoji:function(){return this.active&&this.isGameView?"checklist-game":"checklist-list"},gameView:function(){return"game"===this.card.view}}),methods:U(U(U({},Object(f.b)({updateCard:"cards/update",createTask:"tasks/create",deleteTask:"tasks/delete",deleteTasksForCardId:"tasks/deleteAll",resetCompletedTasks:"tasks/resetCompleted"})),Object(f.d)({setFocusTaskId:"tasks/setFocusTaskId"})),{},{toggleGameView:function(){this.editable&&this.setCardView("game"===this.card.view?"list":"game")},setCardView:function(view){var t=this;return Object(m.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.updateCard({id:t.card.id,fields:{view:view}});case 2:case"end":return e.stop()}}),e)})))()},deleteAllTasks:function(){this.optionsMenu=!1,this.showConfirmMenu=!1,this.setCardView(null),this.deleteTasksForCardId(this.card.id)},addFirstTask:function(){var t=this;return Object(m.a)(regeneratorRuntime.mark((function e(){var data,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return data={card_id:t.cardId,icon:"emojis/sparkle",order:0},e.next=3,t.createTask(data);case 3:n=e.sent,t.setFocusTaskId(n.id);case 5:case"end":return e.stop()}}),e)})))()},showChecklist:function(){var t=this;return Object(m.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.optionsMenu=!1,t.isUpdating=!0,e.next=4,t.setCardView("game"===t.card.view?"game":"list");case 4:if(t.tasks.length){e.next=7;break}return e.next=7,t.addFirstTask();case 7:t.isUpdating=!1;case 8:case"end":return e.stop()}}),e)})))()},resetCompleted:function(){var t=this;return Object(m.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isResettingCompleted=!0,e.next=3,t.resetCompletedTasks(t.card.id);case 3:t.isResettingCompleted=!1;case 4:case"end":return e.stop()}}),e)})))()},setActive:function(){!this.cardMembers.length&&this.isGameView&&this.setDefaultMembers(),this.$router.go()},setDefaultMembers:function(){if(!this.cardMembers.length){var t=this.members&&this.members.length?this.members.filter((function(t){return!t.phone})).map((function(t){return t.id})):[];!t.length&&this.members.length&&(t=[this.members[0]]),this.updateCard({id:this.id,fields:{members:t}})}}})},W=Object(P.a)(Y,(function(){var t=this,e=t._self._c;return t.active||!t.isChecklistType?e("div",[e(l.a,{staticClass:"align-center"},[e(o.a,{staticClass:"flex-grow-0"},[t.active?e(c.a,{attrs:{"min-width":"100","close-on-content-click":!1,"content-class":"rounded-lg","offset-y":""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e("div",{staticClass:"d-flex align-center"},[e(r.a,t._g(t._b({attrs:{icon:"",title:"Checklist",disabled:!t.editable,loading:t.isUpdating}},"v-btn",c,!1),o),[e("LEmoji",{staticStyle:{"font-size":"38px"},attrs:{large:"",block:"",file:t.checklistEmoji}})],1),t._v(" "),e(r.a,{staticClass:"rounded-xl my-1 ml-4 mr-2 primary--text elevation-0",attrs:{dark:"",color:"secondary"},on:{click:function(e){return e.preventDefault(),t.toggleGameView.apply(null,arguments)}}},[t._v(t._s("game"===t.card.view?"Game":"List")+"\n              "),t.editable?e("LAsset",{staticClass:"ml-2",staticStyle:{"margin-bottom":"2px"},attrs:{width:"12",file:"icon-repeat"}}):t._e()],1),t._v(" "),"game"===t.card.view?e(d.a,{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var r=n.on,o=n.attrs;return[e("div",t._g(t._b({},"div",o,!1),r),[e("LGameThemePicker",{staticClass:"mr-2 tooltip-game-theme-picker",attrs:{"card-id":t.cardId,editable:t.editable}})],1)]}}],null,!0)},[t._v(" "),e("span",[t._v("Theme")])]):t._e(),t._v(" "),e(r.a,{staticClass:"rounded-xl my-1 mr-2 elevation-0",attrs:{dark:"",color:"primary"},on:{click:function(e){return e.preventDefault(),t.setActive.apply(null,arguments)}}},[t._v(t._s("game"===t.card.view?"Play":"Launch")+"\n            ")]),t._v(" "),t.editable&&t.isGameView&&t.hasCompletedTasks?e(r.a,{staticClass:"rounded-xl my-1 mr-2 lred--text elevation-0",attrs:{dark:"",color:"secondary",loading:t.isResettingCompleted},on:{click:function(e){return e.preventDefault(),t.resetCompleted.apply(null,arguments)}}},[t._v("Reset\n            ")]):t._e()],1)]}}],null,!1,2719759886),model:{value:t.optionsMenu,callback:function(e){t.optionsMenu=e},expression:"optionsMenu"}},[t._v(" "),e("LMenu",{attrs:{items:t.menu}})],1):e(d.a,{attrs:{"content-class":"rounded-lg",bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on,c=n.attrs;return[e(r.a,t._g(t._b({directives:[{name:"show",rawName:"v-show",value:t.showInactiveChecklistBlock,expression:"showInactiveChecklistBlock"}],attrs:{icon:"",title:"Checklist",loading:t.isUpdating},on:{click:function(e){return e.preventDefault(),t.showChecklist.apply(null,arguments)}}},"v-btn",c,!1),o),[e("LEmoji",{staticStyle:{"font-size":"38px"},attrs:{large:"",block:"",file:"check"}})],1)]}}],null,!1,1349652946)},[t._v(" "),e("span",[t._v("Checklist")])])],1)],1)],1):t._e()}),[],!1,null,null,null);e.a=W.exports},1409:function(t,e,n){"use strict";var r=n(1054),o=n(1053),c=(n(9),n(15),n(19),n(10),n(20),n(37)),l=n(2),d=(n(36),n(112),n(45),n(13),n(6),n(24),n(18)),m=n(113),h=n(1107),f=n(1315),v=n(374);function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){Object(l.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var k={name:"LCardContentCards",components:{LFeatureCard:h.a,LMagicCardRow:f.a,LCardAdd:v.a},props:{cardId:{type:String,default:null},cardIds:{type:Array,default:function(){return[]}},order:{type:Number,default:0},editable:{type:Boolean,default:!1},themed:{type:Boolean,default:!1},addingCard:{type:Boolean,default:!1},view:{type:String,default:""}},data:function(){return{replacingCardId:""}},computed:_(_({},Object(d.c)({getCardById:"cards/getById"})),{},{card:function(){return this.getCardById[this.cardId]},contentCards:function(){var t=this;return this.cardIds.filter((function(e){return!!t.getCardById[e]})).map((function(e){return t.getCardById[e]})).sort((function(a,b){return t.magicOrder(a.type)-t.magicOrder(b.type)}))},showMagicCardRow:function(){var t;return"magic"===(null===(t=this.card)||void 0===t?void 0:t.type)}}),mounted:function(){},methods:{magicOrder:function(t){return m.a[t].magic||1e3},addNewCard:function(t){var e=this,n=[].concat(Object(c.a)(this.cardIds),[t]);this.replacingCardId&&(n=n.filter((function(t){return t!==e.replacingCardId}))),this.updateCardsField(n),this.replacingCardId=""},handleRemove:function(t){this.updateCardsField(this.cardIds.filter((function(e){return e!==t})))},handleReplace:function(t){this.replacingCardId=t},updateCardsField:function(t){var e={order:this.order,type:"cards",view:this.view,card_ids:t};this.$emit("update",this.order,e)}}},w=(n(1462),n(12)),component=Object(w.a)(k,(function(){var t=this,e=t._self._c;return e("div",[t.addingCard||t.replacingCardId?e("LCardAdd",{staticClass:"global-add-card-add pb-6",attrs:{permanent:"","full-height":t.$vuetify.breakpoint.xsOnly,large:"",reference:"","show-calendar":"","show-type-picker":!1,"event-type-picker":""},on:{added:t.addNewCard,canceled:function(e){t.$emit("canceled"),t.replacingCardId=""}}}):t._e(),t._v(" "),e("div",{staticClass:"card-content-extra-wide"},[t.showMagicCardRow?e("LMagicCardRow",{attrs:{"card-id":t.cardId,editable:t.editable,colorful:!t.editable}}):e("div",[e(o.a,{staticClass:"align-stretch py-3 justify-center"},t._l(t.contentCards,(function(n){return e(r.a,{key:"content-card-".concat(n.id),staticClass:"cursor-pointer l-card-block-container",attrs:{cols:"12",sm:"6",md:"3"}},[t.replacingCardId!==n.id?e("LFeatureCard",{class:{"full-height":!0,white:t.themed},staticStyle:{width:"100%"},attrs:{"card-id":n.id,outlined:"",view:t.view,editable:t.editable,"show-delete":""},on:{clicked:function(e){return t.$router.push("/a/".concat(n.id))},changed:t.handleReplace,remove:t.handleRemove}}):t._e()],1)})),1)],1)],1)],1)}),[],!1,null,null,null);e.a=component.exports},1458:function(t,e,n){"use strict";n(1364)},1459:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".almost-hidden-btn{opacity:.2}.almost-hidden-btn:hover{opacity:.8}.tiny-text{font-size:14px}.tiny-text a{color:#767676;-webkit-text-decoration:none;text-decoration:none;text-transform:uppercase}.game-theme-picker-menu{height:550px;width:280px!important}.game-theme-picker-menu.game-theme-picker-limited{height:90px}.px-half{padding-left:2px!important;padding-right:2px!important}@media only screen and (max-width:599px){.game-theme-picker-menu:not(.game-theme-picker-limited){height:100vh!important;left:0!important;position:fixed!important;top:0!important;width:100vw!important}.game-theme-picker-menu:not(.game-theme-picker-limited) .game-theme-picker-list{height:100%;width:100%}}img.emoji-tag-img.inactive{opacity:.4!important}",""]),r.locals={},t.exports=r},1460:function(t,e,n){"use strict";n(1365)},1461:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".l-editor-block-x[data-v-76f0b706]{position:absolute;right:5%;top:0;z-index:1}.l-card-sub-card[data-v-76f0b706]{border-radius:22px;box-shadow:0 0 8.31423px rgba(0,0,0,.25);margin:auto;width:500px}.l-card-sub-card img[data-v-76f0b706]{border-radius:22px;width:100%}.l-card-sub-card-text[data-v-76f0b706]{font-size:18px;margin:auto;width:70%}",""]),r.locals={},t.exports=r},1462:function(t,e,n){"use strict";n(1366)},1463:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,"@media only screen and (min-width:1040px){.card-content-extra-wide{margin:0 -50px}}@media only screen and (min-width:1240px){.card-content-extra-wide{margin:0 -150px}}@media only screen and (min-width:1440px){.card-content-extra-wide{margin:0 -250px}}",""]),r.locals={},t.exports=r},1464:function(t,e,n){"use strict";n(1367)},1465:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".fluid-width-video-wrapper[data-v-b02db8d8]{padding:56.25% 0 0;position:relative;width:100%}.fluid-width-video-wrapper embed[data-v-b02db8d8],.fluid-width-video-wrapper iframe[data-v-b02db8d8],.fluid-width-video-wrapper object[data-v-b02db8d8]{height:100%;left:0;position:absolute;top:0;width:100%}",""]),r.locals={},t.exports=r},1466:function(t,e,n){"use strict";n(1368)},1467:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".fluid-width-video-wrapper[data-v-62682899]{padding:56.25% 0 0;position:relative;width:100%}.fluid-width-video-wrapper embed[data-v-62682899],.fluid-width-video-wrapper iframe[data-v-62682899],.fluid-width-video-wrapper object[data-v-62682899]{height:100%;left:0;position:absolute;top:0;width:100%}",""]),r.locals={},t.exports=r},1468:function(t,e,n){"use strict";n(1369)},1469:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".l-card-block-image-visibility[data-v-0d5523e3]{visibility:hidden}.l-card-image-block[data-v-0d5523e3]{border-radius:25px;box-shadow:0 0 4px rgba(0,0,0,.25)}.l-card-block-image-container:hover .l-card-block-image-visibility[data-v-0d5523e3]{visibility:visible}",""]),r.locals={},t.exports=r},1470:function(t,e,n){"use strict";n(1370)},1471:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".l-wall-editor[data-v-70bcf646]{display:block;padding-top:12px}.l-delete-version[data-v-70bcf646]{position:absolute;right:4px;top:4px;visibility:hidden}.l-wall-editor-container:hover .l-delete-version[data-v-70bcf646]{visibility:visible}",""]),r.locals={},t.exports=r},1472:function(t,e,n){"use strict";n(1371)},1473:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".l-card-content-add-line[data-v-82c9e2ec]{border:1px solid #179b2d;position:absolute;top:50%}.content-add-btn[data-v-82c9e2ec]{width:33%}.content-max-w[data-v-82c9e2ec]{max-width:270px}",""]),r.locals={},t.exports=r},1474:function(t,e,n){"use strict";n(1372)},1475:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".board-border-container{height:25px;margin:0 auto;position:relative;width:25px}.board-border-container-planner{height:45px;position:relative;width:45px}.board-border-name{left:0;position:absolute;top:25px;width:200px}.board-border-img{bottom:22%;left:8%;position:absolute}",""]),r.locals={},t.exports=r},1476:function(t,e,n){"use strict";n(1373)},1477:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".discover-boards-horizontal .discover-boards-scroll{overflow-x:auto}.discover-boards-horizontal .discover-boards{left:0;overflow-x:auto;position:relative;width:calc(100vw - 24px)}.discover-boards-vertical .discover-boards{flex-wrap:wrap}.discover-board-title{font-size:20px;line-height:1.2;padding-bottom:4px}.discover-board-subtitle{font-size:14px;line-height:1.2}.hoverbg{background:hsla(0,0%,100%,.267)}.small-dots{font-size:12px!important;opacity:.8}.discover-board{border-radius:24px;display:block;padding:16px}.discover-board .l-label{color:#7f7f7f!important}.discover-board:hover{box-shadow:0 0 4px #179b2d}.discover-board:hover .l-label{color:#179b2d!important}.discover-boards-vertical .discover-board{width:100%}@media only screen and (min-width:500px){.discover-boards-vertical .discover-board{width:calc(50% - 24px)}}@media only screen and (min-width:1000px){.discover-boards-vertical .discover-board{width:calc(33% - 24px)}}@media only screen and (min-width:1500px){.discover-boards-vertical .discover-board{width:calc(25% - 24px)}}@media only screen and (min-width:2000px){.discover-boards-vertical .discover-board{width:calc(20% - 24px)}}",""]),r.locals={},t.exports=r},1478:function(t,e,n){"use strict";n(1374)},1479:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".l-card-content-add,.l-card-content-tools{width:100%}.l-card-content-has-hover .l-card-content-add,.l-card-content-has-hover .l-card-content-tools{visibility:hidden}.l-card-editor-block{background:#fff;border-radius:32px;box-shadow:0 0 4px rgba(0,0,0,.25);padding:16px}.l-card-content-has-hover:hover .l-card-content-add,.l-card-content-has-hover:hover .l-card-content-tools{visibility:visible}",""]),r.locals={},t.exports=r},1483:function(t,e,n){"use strict";var r=n(1177),o=n(350),c=n(1054),l=n(357),d=n(85),m=(n(34),n(118),n(26),n(9),n(15),n(13),n(6),n(19),n(10),n(20),n(2)),h=(n(112),n(45),n(24),n(18)),f=n(100),v=n(372),y=n(1152),_=n(237);function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?k(Object(n),!0).forEach((function(e){Object(m.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var x={name:"LArticlesContent",components:{LEmoji:f.a,LHeader:v.a,LHeaderLoggedOut:y.a,LIconBtn:_.a},props:{card:{type:Object,default:function(){return{}}},tag:{type:Object,default:function(){return{}}}},data:function(){return{search:"",isSearching:!1}},computed:w(w({},Object(h.c)({home:"home/home",getTagsByType:"tags/getByType",getTagByTypeForCard:"tags/getTagByTypeForCard",getCardsByType:"cards/getByType",getCardById:"cards/getById"})),{},{editable:function(){return this.home&&"admin"===this.home.key},tags:function(){return this.getTagsByType("article").sort((function(a,b){return a.priority>b.priority?-1:1}))},searchCards:function(){var t=this;return this.getCardsByType("article").map((function(e){var n=t.getTagByTypeForCard("article",e.id);return{text:(n?n.name+" > ":"")+e.name,value:t.articleLink(e.id),article:e.name,tag:n?n.name:"",icon:e.icon,color:t.getCardColor(e)}})).sort((function(a,b){return a.text<b.text?-1:1}))}}),methods:{getCardColor:function(t){return t.game_theme&&t.game_theme.color?t.game_theme.color:"lblack"},articleLink:function(t){var e=this.getCardById[t];if(!e)return"";var n=this.getTagByTypeForCard("article",t);return"/articles/".concat(n?n.slug:"-","/").concat(e.slug)},goToArticle:function(link){link&&this.$router.push(link)},tagLink:function(t){return"/articles/".concat(t.slug)},goToTag:function(t){this.$router.push(this.tagLink(t))}}},C=n(12),component=Object(C.a)(x,(function(){var t=this,e=t._self._c;return e("div",[t.$auth.loggedIn?e("LHeader",{attrs:{"show-add":!1,"show-create":!t.$vuetify.breakpoint.xsOnly},scopedSlots:t._u([{key:"left",fn:function(){return[e("div",{staticClass:"d-flex align-center"},[e("LIconBtn",{staticClass:"ml-2 mt-1 mt-sm-0",attrs:{name:"Articles",icon:"","icon-width":"20",color:"primary",small:""},on:{clicked:function(e){return t.$router.push("/articles")}}})],1)]},proxy:!0},{key:"right",fn:function(){return[e("div",{staticClass:"d-flex align-center"},[t.$vuetify.breakpoint.smAndDown?e(o.a,{attrs:{icon:""},on:{click:function(e){e.preventDefault(),t.isSearching=!t.isSearching}}},[e("LEmoji",{staticStyle:{"font-size":"24px",filter:"grayscale()"},attrs:{file:"search"}})],1):t._e(),t._v(" "),t.$vuetify.breakpoint.smAndDown?t._e():e(r.a,{staticClass:"pt-0 mt-0 rounded-xl",attrs:{autofocus:"","hide-details":"",placeholder:"Search",outlined:"",dense:"",items:t.searchCards},on:{change:t.goToArticle},scopedSlots:t._u([{key:"prepend-inner",fn:function(){return[e("div",[e("LEmoji",{staticStyle:{"font-size":"24px",filter:"grayscale()"},attrs:{file:"search"}})],1)]},proxy:!0},{key:"item",fn:function(data){return[e(l.a,[e("LEmoji",{staticStyle:{"font-size":"32px"},attrs:{file:data.item.icon}})],1),t._v(" "),e(d.b,[e(d.d,[e("strong",{class:"".concat(data.item.color,"--text")},[t._v(t._s(data.item.article))])]),t._v(" "),e(d.c,[t._v(t._s(data.item.tag))])],1)]}}],null,!1,4069253800),model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),t._v(" "),t.editable?e("div",{staticClass:"secondary pa-2 rounded-lg"},[e("div",{staticClass:"d-flex align-center"},[e("LIconBtn",{attrs:{name:"Admin",icon:"lome-logo","icon-width":"20"},on:{clicked:function(e){return t.$router.push("/admin/articles?search=".concat(t.card&&t.card.name?t.card.name:""))}}})],1)]):t._e()],1)]},proxy:!0}],null,!1,447797587)}):t._e(),t._v(" "),e("LHeaderLoggedOut",{attrs:{"logo-link":"https://www.withlome.com","show-learn-more":!t.$vuetify.breakpoint.smAndDown},scopedSlots:t._u([{key:"left",fn:function(){return[e(c.a,{staticClass:"flex-grow-0"},[e("LIconBtn",{staticClass:"mt-1 mt-sm-0",attrs:{name:"Articles",icon:"","icon-width":"20",color:"primary",small:""},on:{clicked:function(e){return t.$router.push("/articles")}}})],1)]},proxy:!0}])}),t._v(" "),t.isSearching&&t.$vuetify.breakpoint.smAndDown?e(r.a,{attrs:{autofocus:"",placeholder:"Search","menu-props":"{contentClass:'rounded-lg'}",items:t.searchCards},on:{change:t.goToArticle},scopedSlots:t._u([{key:"item",fn:function(data){return[e(l.a,[e("LEmoji",{staticStyle:{"font-size":"32px"},attrs:{file:data.item.icon}})],1),t._v(" "),e(d.b,[e(d.d,[e("strong",{class:"".concat(data.item.color,"--text")},[t._v(t._s(data.item.article))])]),t._v(" "),e(d.c,[t._v(t._s(data.item.tag))])],1)]}}],null,!1,573189229),model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}):t._e()],1)}),[],!1,null,null,null);e.a=component.exports},1591:function(t,e,n){var content=n(1757);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(17).default)("bd1174ea",content,!0,{sourceMap:!1})},1756:function(t,e,n){"use strict";n(1591)},1757:function(t,e,n){var r=n(16)((function(i){return i[1]}));r.push([t.i,".smaller-article-title{font-size:1.4rem!important}",""]),r.locals={},t.exports=r},1824:function(t,e,n){"use strict";n.r(e);var r=n(350),o=n(1054),c=n(1062),l=n(1053),d=(n(24),n(26),n(15),n(77),n(19),n(20),n(2)),m=n(1),h=(n(33),n(56),n(6),n(34),n(52),n(102),n(53),n(10),n(112),n(45),n(13),n(9),n(86),n(72),n(165)),f=n.n(h),v=n(525),y=n(18),_=n(1121),k=n(1483);n(36),n(73);function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function x(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?w(Object(n),!0).forEach((function(e){Object(d.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var C={name:"LAuthor",props:{authorId:{type:String,required:!0},size:{type:Number,default:28}},computed:x(x({},Object(y.c)({getAuthorById:"authors/getById"})),{},{author:function(){return this.getAuthorById[this.authorId]},image:function(){if(!this.author||!this.author.image)return null;var image=this.author.image;return image.startsWith("https://res.cloudinary.com/lome/image/upload/")&&(image=image.replace("https://res.cloudinary.com/lome/image/upload/","https://res.cloudinary.com/lome/image/upload/c_fill,w_".concat(2*this.size,",h_").concat(2*this.size,"/"))),image}}),mounted:function(){this.author||this.readAuthorId(this.authorId)},methods:x({},Object(y.b)({readAuthorId:"authors/readId"}))},O=n(12),j=Object(O.a)(C,(function(){var t=this,e=t._self._c;return t.author?e("div",{staticClass:"d-flex align-center"},[t.image?e("div",{staticClass:"mr-2"},[e(c.a,{staticClass:"rounded-circle",attrs:{width:t.size,"aspect-ratio":1,src:t.image,alt:"Profile image of ".concat(t.author.name)}})],1):t._e(),t._v(" "),e("div",{staticStyle:{"font-size":"14px"}},[t._v("\n    "+t._s(t.author.name)+"\n  ")])]):t._e()}),[],!1,null,null,null).exports,I=n(1407),S=n(1127),L=n(370),D=n(369),T=n(1190),M=n(372),P=n(1152),B=n(237),E=n(1239),A=n(67),F=n(379),z=n(1221),V=n(119),$=n(1068),N=n.n($);function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R(Object(n),!0).forEach((function(e){Object(d.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Y="https://grow.withlome.com",W={name:"ArticlesSlug",components:{ShareNetwork:v.ShareNetwork,DataProvider:_.a,LArticlesHeader:k.a,LAuthor:j,LCardContent:I.a,LCardView:S.a,LEditor:L.a,LEmojiPicker:D.a,LArticleListing:T.a,LHeader:M.a,LHeaderLoggedOut:P.a,LIconBtn:B.a,LImageUpload:E.a,LLabel:A.a,LSectionTitle:F.a,LSeoContent:z.a},layout:"guest",middleware:["trailingSlash"],asyncData:function(t){return Object(m.a)(regeneratorRuntime.mark((function e(){var n,r,o,c,l,d,m,h,f,v,y,_,k;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.$axios,r=t.params,e.prev=1,e.next=4,n.get("/articles?tag=".concat(r.tag));case 4:return o=e.sent,c=o.data.cards,l=o.data.tags,d=c.find((function(t){return t.slug===r.slug})),m=l.find((function(t){return t.slug===r.tag})),h=o.data.themeTag,f=o.data.themeCards,v="".concat(d.name," |").concat(m?" "+m.name:""," Articles on Lome"),y=d.description?d.description:"",_=(_=y)?(_=_.replace(/(<([^>]+)>)/gi,"")).split(" ").slice(0,30).join(" "):"Explore tons of tips and tricks about ".concat(m?m.name:"easy"," sign ups and RSVPs on Lome!"),k=d.image?N.a.socialImage(d,m):"https://res.cloudinary.com/lome/image/upload/w_1600/assets/online-sign-up-sheets",e.abrupt("return",{metaTitle:v,metaDesc:_,metaImg:k,description:y,card:d,cards:c,tags:l,tag:m,themeCards:f,themeTag:h});case 19:return e.prev=19,e.t0=e.catch(1),e.abrupt("return",{redirectToLogin:!0});case 22:case"end":return e.stop()}}),e,null,[[1,19]])})))()},data:function(){return{redirectToLogin:!1,description:"",card:null,tag:null,didCopy:!1,tags:[],cards:[],themeCards:[],themeTag:null,isSaving:!1,uploadModal:!1,metaTitle:"Sign Ups and Invitation Articles on Lome",metaDesc:"Explore tons of articles for beautiful online sign ups and RSVPs on Lome!",metaImg:"https://res.cloudinary.com/lome/image/upload/w_1600/assets/online-sign-up-sheets"}},head:function(){if(!this.card)return null;var t="".concat(Y).concat(this.$route.path),e=[{"@context":"https://schema.org","@type":"Organization","@id":"".concat(t,"#/schema/organization/lome"),name:"Lome",url:t,sameAs:["https://www.instagram.com/withlome/","https://www.linkedin.com/company/withlome","https://twitter.com/growwithlome"],logo:{"@type":"ImageObject","@id":"".concat(t,"#/schema/image/lome"),url:this.metaImg,width:1200,height:630,caption:this.metaTitle},image:{"@id":"".concat(t,"#/schema/image/lome"),inLanguage:"en-US",url:this.metaImg,width:1200,height:630,caption:this.metaTitle}},{"@context":"https://schema.org","@type":"WebSite","@id":"".concat(t,"#/schema/website/lome"),url:t,name:"Lome",publisher:{"@id":"".concat(t,"#/schema/organization/lome")}},{"@context":"https://schema.org","@type":"WebPage","@id":t,url:t,inLanguage:"en-US",name:"Lome",datePublished:this.card.createdAt,dateModified:this.card.updatedAt,description:this.metaDesc,isPartOf:{"@id":"".concat(t,"#/schema/website/lome")},about:{"@id":"".concat(t,"#/schema/organization/lome")}},{"@context":"https://schema.org","@type":"BreadcrumbList","@id":"".concat(t,"#/schema/breadcrumb/lome"),itemListElement:[{"@type":"ListItem",position:1,item:{"@type":"WebPage","@id":Y,url:Y,name:"Home"}},{"@type":"ListItem",position:2,item:{"@type":"WebPage","@id":"".concat(Y,"/articles"),url:"".concat(Y,"/articles"),name:"Articles"}},{"@type":"ListItem",position:3,item:{"@type":"WebPage","@id":"".concat(Y,"/articles/").concat(this.tag?this.tag.slug:"-"),url:"".concat(Y,"/articles/").concat(this.tag?this.tag.slug:"-"),name:this.tag?this.tag.name:"Category"}},{"@type":"ListItem",position:4,item:{"@type":"WebPage","@id":t,url:t,name:this.metaTitle}}]}],n=[],i=1;return e.forEach((function(t){n.push({hid:"ldjson".concat(i++),type:"application/ld+json",innerHTML:JSON.stringify(t)})})),{title:this.metaTitle,meta:[{hid:"og:type",name:"og:type",content:"article"},{hid:"og:title",name:"og:title",content:this.metaTitle},{hid:"og:description",name:"description",content:this.metaDesc},{hid:"og:image",name:"og:image",content:this.metaImg},{hid:"og:url",name:"og:url",content:t},{hid:"og:image:width",name:"og:image:width",content:"1200"},{hid:"og:image:height",name:"og:image:height",content:"630"},{hid:"og:site_name",name:"og:site_name",content:"Lome"},{hid:"twitter:card",name:"twitter:card",content:"summary_large_image"},{hid:"twitter:site",name:"twitter:site",content:"@growwithlome"},{hid:"twitter:creator",name:"twitter:creator",content:"@growwithlome"},{hid:"twitter:title",name:"twitter:title",content:this.metaTitle},{hid:"twitter:description",name:"twitter:description",content:this.metaDesc},{hid:"twitter:image",name:"twitter:image",content:this.metaImg},{hid:"robots",name:"robots",content:"index, follow"}],link:[{hid:"canonical",rel:"canonical",href:t}],__dangerouslyDisableSanitizers:["script"],script:n}},computed:U(U({},Object(y.c)({home:"home/home",getCardById:"cards/getById"})),{},{pageLink:function(){return"".concat(Y).concat(this.$route.path)},getCard:function(){return this.getCardById[this.card.id]},editable:function(){return this.home&&"admin"===this.home.key},tagCards:function(){var t=this;return this.tag&&this.tag.cards&&this.tag.cards.length?this.tag.cards.filter((function(e){return!!t.getCardById[e]&&e!==t.card.id})).map((function(e){return t.getCardById[e]})).sort((function(a,b){return a.order<b.order?-1:1})):[]},icon:{get:function(){return this.card?this.card.icon:null},set:function(t){this.updateFields({icon:t})}},image:{get:function(){return this.card?this.card.image:null},set:function(image){this.updateFields({image:image})}},color:function(){return this.getArticleField("color")||"primary"},bgColor:function(){var t=this.card;return t&&t.game_theme&&t.game_theme.bg?t.game_theme.bg:"white"},textColor:function(){var t=this,e=V.a.find((function(e){return e.name===t.color}));return e||(e=V.a.find((function(t){return t.default}))),"white"===e.opposite?"white":"lblack"},createLink:function(){var data={lp:this.$route.path},t="";return Object.keys(data).forEach((function(e){t+="&".concat(e,"=").concat(data[e])})),"/create?type=signup".concat(t)}}),watch:{description:function(t){this.editable&&t!==this.card.description&&this.debounceUpdate("description",t)}},mounted:function(){this.redirectToLogin?this.$router.push("/create"):(this.saveUtm(window),this.syncByType({cards:this.cards,tags:this.tags,type:"article"}),this.themeTag&&this.syncByType({cards:this.themeCards,tags:[this.themeTag],type:"theme"}),this.$segment.page("Article: ".concat(this.card.name)))},methods:U(U({},Object(y.b)({saveUtm:"home/saveUtm",indexArticles:"cards/indexArticles",createCard:"cards/create",updateCard:"cards/update",syncByType:"cards/syncByType"})),{},{blurName:function(t){t.target.blur()},updateName:function(t){var e=t.target.textContent.trim();e!==this.card.name&&this.updateFields({name:e})},getArticleField:function(t){return this.card&&this.card.game_theme&&this.card.game_theme[t]?this.card.game_theme[t]:null},updateArticleField:function(t,e){if(this.editable){var n=this.card&&this.card.game_theme?JSON.parse(JSON.stringify(this.card.game_theme)):{};n[t]=e,this.updateFields({game_theme:n})}},debounceUpdate:f()(function(){var t=Object(m.a)(regeneratorRuntime.mark((function t(e,n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.updateFields(Object(d.a)({},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}(),1e3),updateFields:function(t){this.updateCard({id:this.card.id,fields:t})},useArticle:function(){this.$router.push(this.createLink)},articleLink:function(t){var e=this.cards.find((function(e){return e.id===t}));return e||(e=this.getCardById[t])?"/articles/".concat(this.tag?this.tag.slug:"-","/").concat(e.slug):""},goToArticle:function(t){var link=this.articleLink(t);link&&this.$router.push(link)},tagLink:function(t){return"/articles/".concat(t.slug)},goToTag:function(t){this.$router.push(this.tagLink(t))},publish:function(){this.updateFields({public:!0})},copyLink:function(){var t=this;navigator.clipboard.writeText(this.pageLink).then((function(){t.didCopy=!0,setTimeout((function(){t.didCopy=!1}),3e3)}),(function(){}))}})},H=W,G=(n(1756),Object(O.a)(H,(function(){var t=this,e=t._self._c;return t.card?e("div",[e("LArticlesHeader",{attrs:{card:t.card,tag:t.tag}}),t._v(" "),e("div",{class:"".concat(t.color," mb-3 pa-4 pa-sm-12 full-width-in-container")},[e("div",{staticClass:"mx-auto",staticStyle:{"max-width":"1100px"}},[e("p",{class:"".concat(t.textColor,"--links ").concat(t.textColor,"--text"),staticStyle:{"font-size":"14px"},attrs:{id:"breadcrumbs"}},[e("span",[e("span",[e("nuxt-link",{class:"".concat(t.textColor,"--text"),attrs:{to:"/articles"}},[t._v("Articles")])],1),t._v("\n          »\n          "),e("span",[e("nuxt-link",{class:"".concat(t.textColor,"--text"),attrs:{to:"/articles/".concat(t.tag.slug)}},[t._v(t._s(t.tag.name))])],1),t._v("\n          »\n        ")])]),t._v(" "),e("div",{staticClass:"d-flex align-center"},[t.icon?e("div",{staticClass:"mr-3"},[e("LEmojiPicker",{attrs:{mediakey:"card-".concat(t.card.id,"-icon"),size:t.$vuetify.breakpoint.xsOnly?"32px":"45px",editable:t.editable},model:{value:t.icon,callback:function(e){t.icon=e},expression:"icon"}})],1):t._e(),t._v(" "),e("h1",{class:"".concat(t.textColor,"--text ").concat(t.$vuetify.breakpoint.xsOnly?"smaller-article-title":""),staticStyle:{"line-height":"1.1","font-size":"2rem"}},[t._v("\n          "+t._s(t.card.name)+"\n        ")])]),t._v(" "),t.card.author_id?e("LAuthor",{class:"".concat(t.textColor,"--text mt-4"),attrs:{"author-id":t.card.author_id}}):e("div",{staticStyle:{height:"28px"}})],1)]),t._v(" "),t.editable&&!t.card.public?e("div",{staticClass:"secondary pa-3 d-flex rounded-lg align-center justify-center"},[e("div",{staticClass:"mr-2"},[t._v("This is a draft.")]),t._v(" "),e(r.a,{staticClass:"rounded-xl elevation-0",attrs:{color:"primary"},on:{click:function(e){return e.preventDefault(),t.publish.apply(null,arguments)}}},[t._v("Publish")])],1):t._e(),t._v(" "),e("div",{staticClass:"mx-auto mt-8",staticStyle:{"max-width":"1100px"}},[e(l.a,[e(o.a,{staticClass:"pt-0 pt-sm-3",attrs:{cols:"12",sm:"8"}},[t.$vuetify.breakpoint.xsOnly&&t.card.image?e("div",{staticClass:"mb-6"},[e(c.a,{staticClass:"mx-auto rounded-xl",attrs:{"max-width":"207",alt:t.tag?"".concat(t.tag.name):"",src:t.card.image}})],1):t._e(),t._v(" "),t.editable?e("LEditor",{class:"".concat(t.color,"--links"),attrs:{editable:"",placeholder:"Write anything..."},model:{value:t.description,callback:function(e){t.description=e},expression:"description"}}):e("div",{class:"".concat(t.color,"--links ProseMirror"),domProps:{innerHTML:t._s(t.card.description)}}),t._v(" "),t.getCard?e("LCardContent",{attrs:{"card-id":t.getCard.id,editable:t.editable}}):t._e()],1),t._v(" "),e(o.a,{attrs:{cols:"12",sm:"4"}},[!t.$vuetify.breakpoint.xsOnly&&t.card.image?e("div",{staticClass:"mb-8"},[e(c.a,{staticClass:"mx-auto rounded-xl",attrs:{"max-width":"414",alt:t.tag?"".concat(t.tag.name):"",src:t.card.image}})],1):t._e(),t._v(" "),e("div",{staticClass:"shadow-outline text-center rounded-xl pa-4 mb-8"},[e("div",{staticClass:"text-center primary--text mb-4",staticStyle:{"font-size":"16px"}},[t._v("\n            With Lome it's easy to create and share beautiful RSVPs and Sign\n            Ups\n          ")]),t._v(" "),e(r.a,{staticClass:"rounded-xl elevation-0",attrs:{block:t.$vuetify.breakpoint.xsOnly,color:"primary",dark:"",to:t.createLink}},[t._v("Create a Free Event")])],1),t._v(" "),e("div",{staticClass:"shadow-outline text-center rounded-xl pa-4 my-8"},[e("nuxt-link",{staticClass:"no-underline",attrs:{to:t.createLink}},[e(c.a,{staticClass:"mx-auto",attrs:{"max-width":"414",alt:"Illustration of a Lome sign up",src:"https://uploads-ssl.webflow.com/601b40722ad853f201fdcac0/63bcb0703bf2dd2845e2f769_preview-signup.png"}}),t._v(" "),e("div",{staticClass:"text-center font-weight-bold primary--text mb-1",staticStyle:{"font-size":"16px","line-height":"1.1"}},[t._v("\n              Get started for free with Lome today.\n            ")]),t._v(" "),e("div",{staticClass:"text-center primary--text",staticStyle:{"font-size":"14px"}},[t._v("\n              No Credit Card Required.\n            ")])],1)],1)])],1),t._v(" "),e("div",{staticClass:"my-15"},[e("h2",{staticClass:"mb-4",staticStyle:{"font-size":"24px"}},[t._v("\n        Get started planning your next event with Lome\n      ")]),t._v(" "),e(r.a,{staticClass:"rounded-xl mb-4 mb-sm-0 elevation-0",attrs:{block:t.$vuetify.breakpoint.xsOnly,color:t.color,large:"",dark:"",to:t.createLink}},[t._v("Create a Free "+t._s(t.themeTag?t.themeTag.name:"")+" Event")]),t._v(" "),e(r.a,{staticClass:"rounded-xl elevation-0",attrs:{block:t.$vuetify.breakpoint.xsOnly,color:t.color,large:"",outlined:"",to:"/sign-ups"}},[t._v("Explore Templates")])],1),t._v(" "),e("LSeoContent",{staticClass:"my-15",attrs:{content:"themes","small-title":"","theme-tag":t.themeTag,"theme-cards":t.themeCards}}),t._v(" "),t.tag&&t.tag.cards&&t.tag.cards.length>1?e("div",{staticClass:"my-15"},[e("h2",{staticStyle:{"font-size":"24px"}},[t._v("More "+t._s(t.tag.name)+" Articles")]),t._v(" "),e(l.a,t._l(t.tagCards,(function(n){return e(o.a,{key:"tag-card-".concat(n.id),attrs:{cols:"12"}},[e("LArticleListing",{attrs:{"card-id":n.id,"card-obj":n,"tag-obj":t.tag,limit:t.$vuetify.breakpoint.smAndDown?15:32}})],1)})),1)],1):t._e(),t._v(" "),e("div",{staticClass:"my-15"},[e("h2",{staticClass:"mb-3",staticStyle:{"font-size":"24px"}},[t._v("Share")]),t._v(" "),e("div",{staticClass:"d-flex"},[e("ShareNetwork",{attrs:{network:"facebook",url:t.pageLink,title:t.metaTitle,description:t.metaDesc,hashtags:"withlome"}},[e(r.a,{staticClass:"rounded-xl elevation-0 primary--text",attrs:{color:"secondary"}},[t._v("Facebook")])],1),t._v(" "),e("ShareNetwork",{staticClass:"mx-4",attrs:{network:"twitter",url:t.pageLink,title:t.metaTitle,description:t.metaDesc,hashtags:"withlome"}},[e(r.a,{staticClass:"rounded-xl elevation-0 primary--text",attrs:{color:"secondary"}},[t._v("\n            Twitter")])],1),t._v(" "),e("ShareNetwork",{staticClass:"mr-4",attrs:{network:"linkedIn",url:t.pageLink,title:t.metaTitle,description:t.metaDesc,hashtags:"withlome"}},[e(r.a,{staticClass:"rounded-xl elevation-0 primary--text",attrs:{color:"secondary"}},[t._v("\n            LinkedIn")])],1),t._v(" "),e(r.a,{staticClass:"rounded-xl elevation-0 primary--text",attrs:{color:"secondary"},on:{click:function(e){return e.preventDefault(),t.copyLink.apply(null,arguments)}}},[t._v("\n          "+t._s(t.didCopy?"Copied!":"Copy Link"))])],1)]),t._v(" "),e("LSeoContent",{staticClass:"my-15",attrs:{content:"why"}}),t._v(" "),e("div",{staticClass:"my-15 justify-center d-flex"},[e(r.a,{staticClass:"rounded-xl elevation-0",attrs:{"x-large":"",block:t.$vuetify.breakpoint.xsOnly,color:t.color,dark:"",loading:t.isSaving,to:t.createLink}},[t._v("Get started with your own "+t._s(t.themeTag?t.themeTag.name:"")+" sign up\n        page")])],1),t._v(" "),e("LSeoContent",{staticClass:"my-15",attrs:{content:"who"}}),t._v(" "),e("LSeoContent",{staticClass:"my-15",attrs:{content:"testimonial"}}),t._v(" "),e("div",{staticClass:"my-15 justify-center d-flex"},[e(r.a,{staticClass:"rounded-xl elevation-0",attrs:{"x-large":"",color:t.color,dark:"",loading:t.isSaving,to:t.createLink}},[t._v("Plan your "+t._s(t.themeTag?t.themeTag.name:"")+" event on Lome")])],1),t._v(" "),e("LSeoContent",{staticClass:"my-15",attrs:{content:"ad-free"}}),t._v(" "),e("LSeoContent",{staticClass:"my-15",attrs:{content:"what"}})],1)],1):t._e()}),[],!1,null,null,null));e.default=G.exports}}]);