{"version":3,"sources":["webpack:///./src/components/notifications/notification.vue","webpack:///./src/components/notifications/notification.vue?5300","webpack:///./src/components/notifications/notification.vue?be4c","webpack:///./src/components/notifications/notification.vue?adcd","webpack:///../../../src/components/VGrid/VRow.ts","webpack:///../../../src/components/VDialog/VDialog.ts","webpack:///../../../src/components/VOverlay/index.ts","webpack:///../../../src/components/VSnackbar/VSnackbar.ts","webpack:///../../../src/components/VGrid/VSpacer.ts","webpack:///../../../src/components/VForm/VForm.ts","webpack:///../../../src/components/VGrid/VCol.ts","webpack:///./src/modules/public/models/validationRules.ts","webpack:///./src/components/notifications/notification.vue?4752","webpack:///./src/components/modals/authoriseSocialChannelsModal.vue?30bc","webpack:///./src/mixins/sidebarMixin.ts","webpack:///../../../src/components/VGrid/grid.ts","webpack:///../../../src/components/VGrid/VContainer.ts","webpack:///../../../src/components/VOverlay/VOverlay.ts","webpack:///./src/components/base/loggedInComponentBase.ts","webpack:///./src/components/modals/authoriseSocialChannelsModal.vue","webpack:///./src/components/modals/authoriseSocialChannelsModal.vue?7919","webpack:///./src/components/modals/authoriseSocialChannelsModal.vue?b6dd","webpack:///./src/components/modals/authoriseSocialChannelsModal.vue?ea1d","webpack:///../../../src/mixins/overlayable/index.ts","webpack:///./src/modules/settings/views/index.vue","webpack:///./src/components/modals/changePasswordModal.vue","webpack:///./src/components/modals/changePasswordModal.vue?8875","webpack:///./src/components/modals/changePasswordModal.vue?9794","webpack:///./src/components/modals/changePasswordModal.vue?9ca5","webpack:///./src/modules/settings/views/index.vue?cda1","webpack:///./src/modules/settings/views/index.vue?37f7","webpack:///./src/modules/settings/views/index.vue?dbb0"],"names":["_setup","_vm","attrs","colour","timeout","scopedSlots","key","on","expression","staticClass","staticRenderFns","render","timeouts","success","error","Notification","LoggedInComponentBase","constructor","show","message","hide","this","resetNotification","successTimeout","showError","errorTimeout","showSuccess","__decorate","Prop","Component","component","breakpoints","ALIGNMENT","makeProps","prefix","def","reduce","props","val","upperFirst","alignValidator","str","includes","alignProps","type","String","default","validator","justifyValidator","justifyProps","alignContentValidator","alignContentProps","propMap","align","Object","keys","justify","alignContent","classMap","breakpointClass","prop","className","breakpoint","replace","toLowerCase","cache","Map","Vue","extend","name","functional","tag","dense","Boolean","noGutters","h","data","children","cacheKey","classList","get","forEach","value","push","set","mergeData","class","baseMixins","mixins","Dependent","Detachable","Overlayable","Returnable","Stackable","Activatable","directives","ClickOutside","dark","disabled","fullscreen","light","maxWidth","Number","noClickAnimation","origin","persistent","retainFocus","scrollable","transition","width","activatedBy","animate","animateTimeout","stackMinZIndex","previousActiveElement","computed","classes","contentClass","trim","isActive","contentClasses","hasActivator","$slots","activator","$scopedSlots","watch","hideScroll","removeOverlay","unbind","_a","focus","showScroll","genOverlay","created","$attrs","hasOwnProperty","removed","beforeMount","$nextTick","isBooted","beforeDestroy","window","methods","animateClick","clearTimeout","setTimeout","closeConditional","e","target","_isDestroyed","$refs","content","contains","overlay","$el","activeZIndex","getMaxZIndex","document","documentElement","add","options","call","hideOverlay","dialog","activeElement","_b","bind","addEventListener","onFocusin","removeEventListener","onClickOutside","$emit","onKeydown","keyCode","keyCodes","esc","getOpenDependents","length","getActivator","getOpenDependentElements","some","el","focusable","querySelectorAll","find","hasAttribute","matches","genContent","showLazyContent","$createElement","VThemeProvider","root","role","undefined","getScopeIdAttrs","keydown","style","zIndex","ref","genTransition","genInnerContent","appear","tabindex","handler","include","transformOrigin","convertToUnit","getContentSlot","attach","genActivator","VOverlay","VSheet","Colorable","Toggleable","PositionableFactory","app","centered","multiLine","text","v","vertical","activeTimeout","absolute","bottom","top","hasBackground","left","right","outlined","isDark","Themeable","styles","bar","footer","insetFooter","$vuetify","application","paddingBottom","paddingLeft","paddingRight","paddingTop","mounted","deprecate","genActions","getSlot","genWrapper","setColor","setBackgroundColor","setTextColor","color","pointerenter","pointerleave","createSimpleFunctional","BindsAttrs","RegistrableProvide","provide","form","inheritAttrs","lazyValidation","readonly","inputs","watchers","errorBag","errors","values","deep","immediate","watchInput","input","watcher","$watch","$set","_uid","valid","shouldValidate","validate","filter","reset","resetErrorBag","resetValidation","register","unregister","found","i","unwatch","$delete","novalidate","attrs$","submit","breakpointProps","offsetProps","orderProps","col","offset","order","cols","alignSelf","parent","hasColClasses","startsWith","ValidationRules","required","usernameLength","passwordLength","passwordComplexity","pattern","test","email","phoneNumber","patterns","strong","loose","matchBE","SidebarMixin","routeName","$route","updateSidebarStates","closeMainNav","uiModule","mainNavigationDrawerOpen","setNavigationDrawer","mdAndDown","toggleAltDrawer","drawerType","AltDrawerType","CampaignSidebar","open","UpcomingPostsSidebar","VGrid","id","join","domProps","Grid","fluid","Array","concat","opacity","__scrim","computedOpacity","themeClasses","$listeners","assetModalModule","getModule","AssetModalModule","newAssetModalModule","NewAssetModalModule","postModalModule","PostModalModule","stickerModalModule","StickerModalModule","storesModule","StoresModule","UiModule","userModule","UserModule","createModule","CreateModule","createAssetModule","CreateAssetModule","createPostModule","CreatePostModule","currentStore","campaignSidebarOpen","isLoading","upcomingPostsSidebarOpen","user","Promise","resolve","isViewingSingleStore","getStoreChannels","storeChannels","toggleAuthoriseSocialChannelsModal","model","callback","_c","authoriseSocialChannels","_v","storesServiceClient","StoresServiceClient","AuthoriseSocialChannelsModal","modalIsLoading","showAuthoriseSocialChannelsModal","channelsNotAuthorised","SocialChannels","channel","notification","response","getAdapterSSOLink","ssoLink","ssoWindow","loop","setInterval","async","closed","clearInterval","updateSocialChannels","notificationInstance","components","overlayColor","overlayOpacity","animationFrame","createOverlay","propsData","$mount","parentNode","querySelector","insertBefore","firstChild","requestAnimationFrame","getZIndex","addOnceEventListener","removeChild","$destroy","cancelAnimationFrame","scrollListener","tagName","isContentEditable","up","pageup","down","pagedown","deltaY","body","checkPath","preventDefault","hasScrollbar","nodeType","Node","ELEMENT_NODE","getComputedStyle","overflowY","scrollHeight","clientHeight","overflowX","scrollWidth","clientWidth","shouldScroll","dir","shiftKey","deltaX","delta","alreadyAtStart","alreadyAtEnd","scrollTop","scrollLeft","scrollingUp","scrollingDown","isInside","path","composedPath","selected","getSelection","anchorNode","index","smAndDown","addPassiveEventListener","passive","remove","_e","$event","storeTitle","storePhone","storeEmail","addressLine1","$$v","suburb","storePostcode","displayName","userEmail","changePassword","fn","showNotification","existingPassword","notificationMessage","userServiceClient","UserServiceClient","ChangePasswordModal","newPassword","confirmPassword","rules","notificationColour","notificationTimeout","dialogClosed","changePasswordForm","HTMLFormElement","changePasswordModalVisible","showChangePasswordModal","updateProfile","oldPassword","parseInt","err","SettingsIndex","states","hideStoreDetails","storeDetails","changeStoreDetails","addressLine2","currentUser","setDisplayName","phone","postcode","state","title","getStoreDetails","showAuthoriseSocialModal","updateStoreDetails","updateUserProfile","Watch"],"mappings":"+JAA4DA,EAAOC,WAAsB,MAAU,KAAcC,EAAK,EAAC,SAAQ,EAACD,MAAIE,Y,OAAO,SAAcC,CAAO,MAAC,CAACC,MAAW,EAACJ,OAASK,QAAI,EAAQ,S,YAAeJ,OAAM,IAAE,S,GAAC,UAAW,M,UAA+C,GAAM,OAAC,MAAE,YAAC,YAACK,MAAG,CAAC,KAAO,I,GAAkC,CAAC,kBAAG,EAAO,MAAM,KAAwC,sC,MAA8C,CAAS,MAAC,OAACC,SAAU,SAAC,GAAM,UAAcC,WAAY,SACze,UACGC,qCAEJ,GAASC,OAAQD,gBAAe,U,yCCAhC,MAAME,EAAW,CACfC,QAAS,OACTC,MAAO,SAIT,IAAqBC,EAArB,cAA0CC,OAA1CC,c,oBAOS,KAAAC,MAAgB,EAChB,KAAAf,OAAiB,UACjB,KAAAC,QAAkBQ,EAASC,QAC3B,KAAAM,QAAkB,GAElBC,OACLC,KAAKH,MAAO,EAGPI,oBAAiB,MACtBD,KAAKjB,QAA6B,QAAtB,EAAGiB,KAAKE,sBAAc,QAAIX,EAASC,QAC/CQ,KAAKF,QAAU,GACfE,KAAKlB,OAAS,UAGTqB,UAAUL,GAAe,MAC9BE,KAAKjB,QAA2B,QAApB,EAAGiB,KAAKI,oBAAY,QAAIb,EA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KACA,MAIa,e","file":"js/chunk-798f1f81.50ffdd4c.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('v-snackbar',{attrs:{\"color\":_vm.colour,\"timeout\":_vm.timeout},scopedSlots:_vm._u([{key:\"action\",fn:function({ attrs }){return [_c('v-btn',_vm._b({staticClass:\"btn-close\",attrs:{\"text\":\"\"},on:{\"click\":function($event){_vm.show = false}}},'v-btn',attrs,false),[_vm._v(\" Close \")])]}}]),model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('div',{staticClass:\"snackbar-message-text\"},[_vm._v(\" \"+_vm._s(_vm.message)+\" \")])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { Component, Prop } from 'vue-property-decorator';\r\nimport { LoggedInComponentBase } from '@/components/base/loggedInComponentBase';\r\n\r\nconst timeouts = {\r\n success: '4000',\r\n error: '10000'\r\n};\r\n\r\n@Component\r\nexport default class Notification extends LoggedInComponentBase {\r\n /**\r\n * Use these optional props to override default timeouts.\r\n */\r\n @Prop() successTimeout: string | undefined;\r\n @Prop() errorTimeout: string | undefined;\r\n\r\n public show: boolean = false;\r\n public colour: string = 'success';\r\n public timeout: string = timeouts.success;\r\n public message: string = '';\r\n\r\n public hide() {\r\n this.show = false;\r\n }\r\n\r\n public resetNotification() {\r\n this.timeout = this.successTimeout ?? timeouts.success;\r\n this.message = '';\r\n this.colour = 'success';\r\n }\r\n\r\n public showError(message: string): void {\r\n this.timeout = this.errorTimeout ?? timeouts.error;\r\n this.message = message;\r\n this.colour = 'error';\r\n this.show = true;\r\n }\r\n\r\n public showSuccess(message: string): void {\r\n this.resetNotification();\r\n this.message = message;\r\n this.show = true;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./notification.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./notification.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./notification.vue?vue&type=template&id=e708a696&scoped=true&\"\nimport script from \"./notification.vue?vue&type=script&lang=ts&\"\nexport * from \"./notification.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./notification.vue?vue&type=style&index=0&id=e708a696&prod&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"e708a696\",\n null\n \n)\n\nexport default component.exports","import './VGrid.sass'\n\nimport Vue, { PropOptions } from 'vue'\nimport mergeData from '../../util/mergeData'\nimport { upperFirst } from '../../util/helpers'\n\n// no xs\nconst breakpoints = ['sm', 'md', 'lg', 'xl']\n\nconst ALIGNMENT = ['start', 'end', 'center']\n\nfunction makeProps (prefix: string, def: () => PropOptions) {\n return breakpoints.reduce((props, val) => {\n props[prefix + upperFirst(val)] = def()\n return props\n }, {} as Dictionary)\n}\n\nconst alignValidator = (str: any) => [...ALIGNMENT, 'baseline', 'stretch'].includes(str)\nconst alignProps = makeProps('align', () => ({\n type: String,\n default: null,\n validator: alignValidator,\n}))\n\nconst justifyValidator = (str: any) => [...ALIGNMENT, 'space-between', 'space-around'].includes(str)\nconst justifyProps = makeProps('justify', () => ({\n type: String,\n default: null,\n validator: justifyValidator,\n}))\n\nconst alignContentValidator = (str: any) => [...ALIGNMENT, 'space-between', 'space-around', 'stretch'].includes(str)\nconst alignContentProps = makeProps('alignContent', () => ({\n type: String,\n default: null,\n validator: alignContentValidator,\n}))\n\nconst propMap = {\n align: Object.keys(alignProps),\n justify: Object.keys(justifyProps),\n alignContent: Object.keys(alignContentProps),\n}\n\nconst classMap = {\n align: 'align',\n justify: 'justify',\n alignContent: 'align-content',\n}\n\nfunction breakpointClass (type: keyof typeof propMap, prop: string, val: string) {\n let className = classMap[type]\n if (val == null) {\n return undefined\n }\n if (prop) {\n // alignSm -> Sm\n const breakpoint = prop.replace(type, '')\n className += `-${breakpoint}`\n }\n // .align-items-sm-center\n className += `-${val}`\n return className.toLowerCase()\n}\n\nconst cache = new Map()\n\nexport default Vue.extend({\n name: 'v-row',\n functional: true,\n props: {\n tag: {\n type: String,\n default: 'div',\n },\n dense: Boolean,\n noGutters: Boolean,\n align: {\n type: String,\n default: null,\n validator: alignValidator,\n },\n ...alignProps,\n justify: {\n type: String,\n default: null,\n validator: justifyValidator,\n },\n ...justifyProps,\n alignContent: {\n type: String,\n default: null,\n validator: alignContentValidator,\n },\n ...alignContentProps,\n },\n render (h, { props, data, children }) {\n // Super-fast memoization based on props, 5x faster than JSON.stringify\n let cacheKey = ''\n for (const prop in props) {\n cacheKey += String((props as any)[prop])\n }\n let classList = cache.get(cacheKey)\n\n if (!classList) {\n classList = []\n // Loop through `align`, `justify`, `alignContent` breakpoint props\n let type: keyof typeof propMap\n for (type in propMap) {\n propMap[type].forEach(prop => {\n const value: string = (props as any)[prop]\n const className = breakpointClass(type, prop, value)\n if (className) classList!.push(className)\n })\n }\n\n classList.push({\n 'no-gutters': props.noGutters,\n 'row--dense': props.dense,\n [`align-${props.align}`]: props.align,\n [`justify-${props.justify}`]: props.justify,\n [`align-content-${props.alignContent}`]: props.alignContent,\n })\n\n cache.set(cacheKey, classList)\n }\n\n return h(\n props.tag,\n mergeData(data, {\n staticClass: 'row',\n class: classList,\n }),\n children\n )\n },\n})\n","// Styles\nimport './VDialog.sass'\n\n// Components\nimport { VThemeProvider } from '../VThemeProvider'\n\n// Mixins\nimport Activatable from '../../mixins/activatable'\nimport Dependent from '../../mixins/dependent'\nimport Detachable from '../../mixins/detachable'\nimport Overlayable from '../../mixins/overlayable'\nimport Returnable from '../../mixins/returnable'\nimport Stackable from '../../mixins/stackable'\n\n// Directives\nimport ClickOutside from '../../directives/click-outside'\n\n// Helpers\nimport mixins from '../../util/mixins'\nimport { removed } from '../../util/console'\nimport {\n convertToUnit,\n keyCodes,\n} from '../../util/helpers'\n\n// Types\nimport { VNode, VNodeData } from 'vue'\n\nconst baseMixins = mixins(\n Dependent,\n Detachable,\n Overlayable,\n Returnable,\n Stackable,\n Activatable,\n)\n\n/* @vue/component */\nexport default baseMixins.extend({\n name: 'v-dialog',\n\n directives: { ClickOutside },\n\n props: {\n dark: Boolean,\n disabled: Boolean,\n fullscreen: Boolean,\n light: Boolean,\n maxWidth: [String, Number],\n noClickAnimation: Boolean,\n origin: {\n type: String,\n default: 'center center',\n },\n persistent: Boolean,\n retainFocus: {\n type: Boolean,\n default: true,\n },\n scrollable: Boolean,\n transition: {\n type: [String, Boolean],\n default: 'dialog-transition',\n },\n width: [String, Number],\n },\n\n data () {\n return {\n activatedBy: null as EventTarget | null,\n animate: false,\n animateTimeout: -1,\n stackMinZIndex: 200,\n previousActiveElement: null as HTMLElement | null,\n }\n },\n\n computed: {\n classes (): object {\n return {\n [(`v-dialog ${this.contentClass}`).trim()]: true,\n 'v-dialog--active': this.isActive,\n 'v-dialog--persistent': this.persistent,\n 'v-dialog--fullscreen': this.fullscreen,\n 'v-dialog--scrollable': this.scrollable,\n 'v-dialog--animated': this.animate,\n }\n },\n contentClasses (): object {\n return {\n 'v-dialog__content': true,\n 'v-dialog__content--active': this.isActive,\n }\n },\n hasActivator (): boolean {\n return Boolean(\n !!this.$slots.activator ||\n !!this.$scopedSlots.activator\n )\n },\n },\n\n watch: {\n isActive (val) {\n if (val) {\n this.show()\n this.hideScroll()\n } else {\n this.removeOverlay()\n this.unbind()\n this.previousActiveElement?.focus()\n }\n },\n fullscreen (val) {\n if (!this.isActive) return\n\n if (val) {\n this.hideScroll()\n this.removeOverlay(false)\n } else {\n this.showScroll()\n this.genOverlay()\n }\n },\n },\n\n created () {\n /* istanbul ignore next */\n if (this.$attrs.hasOwnProperty('full-width')) {\n removed('full-width', this)\n }\n },\n\n beforeMount () {\n this.$nextTick(() => {\n this.isBooted = this.isActive\n this.isActive && this.show()\n })\n },\n\n beforeDestroy () {\n if (typeof window !== 'undefined') this.unbind()\n },\n\n methods: {\n animateClick () {\n this.animate = false\n // Needed for when clicking very fast\n // outside of the dialog\n this.$nextTick(() => {\n this.animate = true\n window.clearTimeout(this.animateTimeout)\n this.animateTimeout = window.setTimeout(() => (this.animate = false), 150)\n })\n },\n closeConditional (e: Event) {\n const target = e.target as HTMLElement\n // Ignore the click if the dialog is closed or destroyed,\n // if it was on an element inside the content,\n // if it was dragged onto the overlay (#6969),\n // or if this isn't the topmost dialog (#9907)\n return !(\n this._isDestroyed ||\n !this.isActive ||\n this.$refs.content.contains(target) ||\n (this.overlay && target && !this.overlay.$el.contains(target))\n ) && this.activeZIndex >= this.getMaxZIndex()\n },\n hideScroll () {\n if (this.fullscreen) {\n document.documentElement.classList.add('overflow-y-hidden')\n } else {\n Overlayable.options.methods.hideScroll.call(this)\n }\n },\n show () {\n !this.fullscreen && !this.hideOverlay && this.genOverlay()\n // Double nextTick to wait for lazy content to be generated\n this.$nextTick(() => {\n this.$nextTick(() => {\n if (!this.$refs.dialog?.contains(document.activeElement)) {\n this.previousActiveElement = document.activeElement as HTMLElement\n this.$refs.dialog?.focus()\n }\n this.bind()\n })\n })\n },\n bind () {\n window.addEventListener('focusin', this.onFocusin)\n },\n unbind () {\n window.removeEventListener('focusin', this.onFocusin)\n },\n onClickOutside (e: Event) {\n this.$emit('click:outside', e)\n\n if (this.persistent) {\n this.noClickAnimation || this.animateClick()\n } else {\n this.isActive = false\n }\n },\n onKeydown (e: KeyboardEvent) {\n if (e.keyCode === keyCodes.esc && !this.getOpenDependents().length) {\n if (!this.persistent) {\n this.isActive = false\n const activator = this.getActivator()\n this.$nextTick(() => activator && (activator as HTMLElement).focus())\n } else if (!this.noClickAnimation) {\n this.animateClick()\n }\n }\n this.$emit('keydown', e)\n },\n // On focus change, wrap focus to stay inside the dialog\n // https://github.com/vuetifyjs/vuetify/issues/6892\n onFocusin (e: Event) {\n if (!e || !this.retainFocus) return\n\n const target = e.target as HTMLElement\n\n if (\n !!target &&\n this.$refs.dialog &&\n // It isn't the document or the dialog body\n ![document, this.$refs.dialog].includes(target) &&\n // It isn't inside the dialog body\n !this.$refs.dialog.contains(target) &&\n // We're the topmost dialog\n this.activeZIndex >= this.getMaxZIndex() &&\n // It isn't inside a dependent element (like a menu)\n !this.getOpenDependentElements().some(el => el.contains(target))\n // So we must have focused something outside the dialog and its children\n ) {\n // Find and focus the first available element inside the dialog\n const focusable = this.$refs.dialog.querySelectorAll('button, [href], input:not([type=\"hidden\"]), select, textarea, [tabindex]:not([tabindex=\"-1\"])')\n const el = [...focusable].find(el => !el.hasAttribute('disabled') && !el.matches('[tabindex=\"-1\"]')) as HTMLElement | undefined\n el && el.focus()\n }\n },\n genContent () {\n return this.showLazyContent(() => [\n this.$createElement(VThemeProvider, {\n props: {\n root: true,\n light: this.light,\n dark: this.dark,\n },\n }, [\n this.$createElement('div', {\n class: this.contentClasses,\n attrs: {\n role: 'dialog',\n 'aria-modal': this.hideOverlay ? undefined : 'true',\n ...this.getScopeIdAttrs(),\n },\n on: { keydown: this.onKeydown },\n style: { zIndex: this.activeZIndex },\n ref: 'content',\n }, [this.genTransition()]),\n ]),\n ])\n },\n genTransition () {\n const content = this.genInnerContent()\n\n if (!this.transition) return content\n\n return this.$createElement('transition', {\n props: {\n name: this.transition,\n origin: this.origin,\n appear: true,\n },\n }, [content])\n },\n genInnerContent () {\n const data: VNodeData = {\n class: this.classes,\n attrs: {\n tabindex: this.isActive ? 0 : undefined,\n },\n ref: 'dialog',\n directives: [\n {\n name: 'click-outside',\n value: {\n handler: this.onClickOutside,\n closeConditional: this.closeConditional,\n include: this.getOpenDependentElements,\n },\n },\n { name: 'show', value: this.isActive },\n ],\n style: {\n transformOrigin: this.origin,\n },\n }\n\n if (!this.fullscreen) {\n data.style = {\n ...data.style as object,\n maxWidth: convertToUnit(this.maxWidth),\n width: convertToUnit(this.width),\n }\n }\n\n return this.$createElement('div', data, this.getContentSlot())\n },\n },\n\n render (h): VNode {\n return h('div', {\n staticClass: 'v-dialog__container',\n class: {\n 'v-dialog__container--attached':\n this.attach === '' ||\n this.attach === true ||\n this.attach === 'attach',\n },\n }, [\n this.genActivator(),\n this.genContent(),\n ])\n },\n})\n","import VOverlay from './VOverlay'\n\nexport { VOverlay }\n\nexport default VOverlay\n","// Styles\nimport './VSnackbar.sass'\n\n// Components\nimport VSheet from '../VSheet/VSheet'\n\n// Mixins\nimport Colorable from '../../mixins/colorable'\nimport Themeable from '../../mixins/themeable'\nimport Toggleable from '../../mixins/toggleable'\nimport { factory as PositionableFactory } from '../../mixins/positionable'\n\n// Utilities\nimport mixins from '../../util/mixins'\nimport { convertToUnit, getSlot } from '../../util/helpers'\nimport { deprecate, removed } from '../../util/console'\n\n// Types\nimport { PropType, VNode } from 'vue'\n\nexport default mixins(\n VSheet,\n Colorable,\n Toggleable,\n PositionableFactory([\n 'absolute',\n 'bottom',\n 'left',\n 'right',\n 'top',\n ])\n/* @vue/component */\n).extend({\n name: 'v-snackbar',\n\n props: {\n app: Boolean,\n centered: Boolean,\n contentClass: {\n type: String,\n default: '',\n },\n multiLine: Boolean,\n text: Boolean,\n timeout: {\n type: [Number, String],\n default: 5000,\n },\n transition: {\n type: [Boolean, String] as PropType,\n default: 'v-snack-transition',\n validator: v => typeof v === 'string' || v === false,\n },\n vertical: Boolean,\n },\n\n data: () => ({\n activeTimeout: -1,\n }),\n\n computed: {\n classes (): object {\n return {\n 'v-snack--absolute': this.absolute,\n 'v-snack--active': this.isActive,\n 'v-snack--bottom': this.bottom || !this.top,\n 'v-snack--centered': this.centered,\n 'v-snack--has-background': this.hasBackground,\n 'v-snack--left': this.left,\n 'v-snack--multi-line': this.multiLine && !this.vertical,\n 'v-snack--right': this.right,\n 'v-snack--text': this.text,\n 'v-snack--top': this.top,\n 'v-snack--vertical': this.vertical,\n }\n },\n // Text and outlined styles both\n // use transparent backgrounds\n hasBackground (): boolean {\n return (\n !this.text &&\n !this.outlined\n )\n },\n // Snackbar is dark by default\n // override themeable logic.\n isDark (): boolean {\n return this.hasBackground\n ? !this.light\n : Themeable.options.computed.isDark.call(this)\n },\n styles (): object {\n if (this.absolute || !this.app) return {}\n\n const {\n bar,\n bottom,\n footer,\n insetFooter,\n left,\n right,\n top,\n } = this.$vuetify.application\n\n return {\n paddingBottom: convertToUnit(bottom + footer + insetFooter),\n paddingLeft: convertToUnit(left),\n paddingRight: convertToUnit(right),\n paddingTop: convertToUnit(bar + top),\n }\n },\n },\n\n watch: {\n isActive: 'setTimeout',\n timeout: 'setTimeout',\n },\n\n mounted () {\n if (this.isActive) this.setTimeout()\n },\n\n created () {\n /* istanbul ignore next */\n if (this.$attrs.hasOwnProperty('auto-height')) {\n removed('auto-height', this)\n }\n\n /* istanbul ignore next */\n // eslint-disable-next-line eqeqeq\n if (this.timeout == 0) {\n deprecate('timeout=\"0\"', '-1', this)\n }\n },\n\n methods: {\n genActions () {\n return this.$createElement('div', {\n staticClass: 'v-snack__action ',\n }, [\n getSlot(this, 'action', {\n attrs: { class: 'v-snack__btn' },\n }),\n ])\n },\n genContent () {\n return this.$createElement('div', {\n staticClass: 'v-snack__content',\n class: {\n [this.contentClass]: true,\n },\n attrs: {\n role: 'status',\n 'aria-live': 'polite',\n },\n }, [getSlot(this)])\n },\n genWrapper () {\n const setColor = this.hasBackground\n ? this.setBackgroundColor\n : this.setTextColor\n\n const data = setColor(this.color, {\n staticClass: 'v-snack__wrapper',\n class: VSheet.options.computed.classes.call(this),\n style: VSheet.options.computed.styles.call(this),\n directives: [{\n name: 'show',\n value: this.isActive,\n }],\n on: {\n pointerenter: () => window.clearTimeout(this.activeTimeout),\n pointerleave: this.setTimeout,\n },\n })\n\n return this.$createElement('div', data, [\n this.genContent(),\n this.genActions(),\n ])\n },\n genTransition () {\n return this.$createElement('transition', {\n props: { name: this.transition },\n }, [this.genWrapper()])\n },\n setTimeout () {\n window.clearTimeout(this.activeTimeout)\n\n const timeout = Number(this.timeout)\n\n if (\n !this.isActive ||\n // TODO: remove 0 in v3\n [0, -1].includes(timeout)\n ) {\n return\n }\n\n this.activeTimeout = window.setTimeout(() => {\n this.isActive = false\n }, timeout)\n },\n },\n\n render (h): VNode {\n return h('div', {\n staticClass: 'v-snack',\n class: this.classes,\n style: this.styles,\n }, [\n this.transition !== false\n ? this.genTransition()\n : this.genWrapper(),\n ])\n },\n})\n","import './_grid.sass'\nimport { createSimpleFunctional } from '../../util/helpers'\n\nexport default createSimpleFunctional('spacer', 'div', 'v-spacer')\n","// Components\nimport VInput from '../VInput/VInput'\n\n// Mixins\nimport mixins from '../../util/mixins'\nimport BindsAttrs from '../../mixins/binds-attrs'\nimport { provide as RegistrableProvide } from '../../mixins/registrable'\n\n// Helpers\nimport { VNode } from 'vue'\n\ntype ErrorBag = Record\ntype VInputInstance = InstanceType\ntype Watchers = {\n _uid: number\n valid: () => void\n shouldValidate: () => void\n}\n\n/* @vue/component */\nexport default mixins(\n BindsAttrs,\n RegistrableProvide('form')\n /* @vue/component */\n).extend({\n name: 'v-form',\n\n provide (): object {\n return { form: this }\n },\n\n inheritAttrs: false,\n\n props: {\n disabled: Boolean,\n lazyValidation: Boolean,\n readonly: Boolean,\n value: Boolean,\n },\n\n data: () => ({\n inputs: [] as VInputInstance[],\n watchers: [] as Watchers[],\n errorBag: {} as ErrorBag,\n }),\n\n watch: {\n errorBag: {\n handler (val) {\n const errors = Object.values(val).includes(true)\n\n this.$emit('input', !errors)\n },\n deep: true,\n immediate: true,\n },\n },\n\n methods: {\n watchInput (input: any): Watchers {\n const watcher = (input: any): (() => void) => {\n return input.$watch('hasError', (val: boolean) => {\n this.$set(this.errorBag, input._uid, val)\n }, { immediate: true })\n }\n\n const watchers: Watchers = {\n _uid: input._uid,\n valid: () => {},\n shouldValidate: () => {},\n }\n\n if (this.lazyValidation) {\n // Only start watching inputs if we need to\n watchers.shouldValidate = input.$watch('shouldValidate', (val: boolean) => {\n if (!val) return\n\n // Only watch if we're not already doing it\n if (this.errorBag.hasOwnProperty(input._uid)) return\n\n watchers.valid = watcher(input)\n })\n } else {\n watchers.valid = watcher(input)\n }\n\n return watchers\n },\n /** @public */\n validate (): boolean {\n return this.inputs.filter(input => !input.validate(true)).length === 0\n },\n /** @public */\n reset (): void {\n this.inputs.forEach(input => input.reset())\n this.resetErrorBag()\n },\n resetErrorBag () {\n if (this.lazyValidation) {\n // Account for timeout in validatable\n setTimeout(() => {\n this.errorBag = {}\n }, 0)\n }\n },\n /** @public */\n resetValidation () {\n this.inputs.forEach(input => input.resetValidation())\n this.resetErrorBag()\n },\n register (input: VInputInstance) {\n this.inputs.push(input)\n this.watchers.push(this.watchInput(input))\n },\n unregister (input: VInputInstance) {\n const found = this.inputs.find(i => i._uid === input._uid)\n\n if (!found) return\n\n const unwatch = this.watchers.find(i => i._uid === found._uid)\n if (unwatch) {\n unwatch.valid()\n unwatch.shouldValidate()\n }\n\n this.watchers = this.watchers.filter(i => i._uid !== found._uid)\n this.inputs = this.inputs.filter(i => i._uid !== found._uid)\n this.$delete(this.errorBag, found._uid)\n },\n },\n\n render (h): VNode {\n return h('form', {\n staticClass: 'v-form',\n attrs: {\n novalidate: true,\n ...this.attrs$,\n },\n on: {\n submit: (e: Event) => this.$emit('submit', e),\n },\n }, this.$slots.default)\n },\n})\n","import './VGrid.sass'\n\nimport Vue, { VNode, PropOptions } from 'vue'\nimport mergeData from '../../util/mergeData'\nimport { upperFirst } from '../../util/helpers'\n\n// no xs\nconst breakpoints = ['sm', 'md', 'lg', 'xl']\n\nconst breakpointProps = (() => {\n return breakpoints.reduce((props, val) => {\n props[val] = {\n type: [Boolean, String, Number],\n default: false,\n }\n return props\n }, {} as Dictionary)\n})()\n\nconst offsetProps = (() => {\n return breakpoints.reduce((props, val) => {\n props['offset' + upperFirst(val)] = {\n type: [String, Number],\n default: null,\n }\n return props\n }, {} as Dictionary)\n})()\n\nconst orderProps = (() => {\n return breakpoints.reduce((props, val) => {\n props['order' + upperFirst(val)] = {\n type: [String, Number],\n default: null,\n }\n return props\n }, {} as Dictionary)\n})()\n\nconst propMap = {\n col: Object.keys(breakpointProps),\n offset: Object.keys(offsetProps),\n order: Object.keys(orderProps),\n}\n\nfunction breakpointClass (type: keyof typeof propMap, prop: string, val: boolean | string | number) {\n let className = type\n if (val == null || val === false) {\n return undefined\n }\n if (prop) {\n const breakpoint = prop.replace(type, '')\n className += `-${breakpoint}`\n }\n // Handling the boolean style prop when accepting [Boolean, String, Number]\n // means Vue will not convert to sm: true for us.\n // Since the default is false, an empty string indicates the prop's presence.\n if (type === 'col' && (val === '' || val === true)) {\n // .col-md\n return className.toLowerCase()\n }\n // .order-md-6\n className += `-${val}`\n return className.toLowerCase()\n}\n\nconst cache = new Map()\n\nexport default Vue.extend({\n name: 'v-col',\n functional: true,\n props: {\n cols: {\n type: [Boolean, String, Number],\n default: false,\n },\n ...breakpointProps,\n offset: {\n type: [String, Number],\n default: null,\n },\n ...offsetProps,\n order: {\n type: [String, Number],\n default: null,\n },\n ...orderProps,\n alignSelf: {\n type: String,\n default: null,\n validator: (str: any) => ['auto', 'start', 'end', 'center', 'baseline', 'stretch'].includes(str),\n },\n tag: {\n type: String,\n default: 'div',\n },\n },\n render (h, { props, data, children, parent }): VNode {\n // Super-fast memoization based on props, 5x faster than JSON.stringify\n let cacheKey = ''\n for (const prop in props) {\n cacheKey += String((props as any)[prop])\n }\n let classList = cache.get(cacheKey)\n\n if (!classList) {\n classList = []\n // Loop through `col`, `offset`, `order` breakpoint props\n let type: keyof typeof propMap\n for (type in propMap) {\n propMap[type].forEach(prop => {\n const value: string | number | boolean = (props as any)[prop]\n const className = breakpointClass(type, prop, value)\n if (className) classList!.push(className)\n })\n }\n\n const hasColClasses = classList.some(className => className.startsWith('col-'))\n\n classList.push({\n // Default to .col if no other col-{bp}-* classes generated nor `cols` specified.\n col: !hasColClasses || !props.cols,\n [`col-${props.cols}`]: props.cols,\n [`offset-${props.offset}`]: props.offset,\n [`order-${props.order}`]: props.order,\n [`align-self-${props.alignSelf}`]: props.alignSelf,\n })\n\n cache.set(cacheKey, classList)\n }\n\n return h(props.tag, mergeData(data, { class: classList }), children)\n },\n})\n","export class ValidationRules {\r\n public required: ValidationRule = value => !!value || 'Required.';\r\n\r\n public usernameLength: ValidationRule = value =>\r\n (value.length >= 3 && value.length <= 50) ||\r\n 'Required between 3-50 characters';\r\n\r\n public passwordLength: ValidationRule = value =>\r\n (value.length >= 8 && value.length <= 255) ||\r\n 'Required between 8-255 characters';\r\n\r\n public passwordComplexity: ValidationRule = value => {\r\n const pattern = /^(?=.*[\\d])(?=.*[A-Z])(?=.*[a-z])[\\w!@#:,<>;$%\\\\|^&?/*)(=+_{}[\\]]{8,}$/;\r\n const test = pattern.test(value);\r\n return test\r\n ? test\r\n : 'Must be at least 8 characters. Min 1 lowercase letter, min 1 uppercase letter, min 1 digit. Special characters permitted.';\r\n };\r\n\r\n public email: ValidationRule = value => {\r\n const pattern = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n return pattern.test(value) || 'Invalid e-mail.';\r\n };\r\n\r\n public phoneNumber: ValidationRule = value => {\r\n const patterns = {\r\n strong: /^0[0-8]\\d{8}$/g,\r\n loose: /^[0-9\\s]*$/,\r\n matchBE: /^(?=.*[0-9])[- +()0-9]+$/\r\n }\r\n return patterns.matchBE.test(value) || 'Invalid phone number';\r\n };\r\n}\r\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./notification.vue?vue&type=style&index=0&id=e708a696&prod&scoped=true&lang=scss&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./authoriseSocialChannelsModal.vue?vue&type=style&index=0&id=4b47e40b&prod&scoped=true&lang=scss&\"","import { Component } from 'vue-property-decorator';\r\nimport { LoggedInComponentBase } from '@/components/base/loggedInComponentBase';\r\nimport { AltDrawerType } from '@/constants';\r\n\r\n@Component\r\nexport class SidebarMixin extends LoggedInComponentBase {\r\n private routeName = this.$route.name;\r\n\r\n mounted() {\r\n this.updateSidebarStates();\r\n }\r\n\r\n private closeMainNav() {\r\n /**\r\n * Vuetify will emit an `input` event whenever a navigation drawer changes state,\r\n * and this can interfere with our own commands, so use a timeout to wait a tick.\r\n */\r\n setTimeout(() => {\r\n if (this.uiModule.mainNavigationDrawerOpen) {\r\n this.uiModule.setNavigationDrawer(false);\r\n }\r\n });\r\n }\r\n\r\n public updateSidebarStates() {\r\n if (\r\n this.routeName?.toLowerCase().includes('helpandfaqs') ||\r\n this.routeName?.toLowerCase().includes('settings') ||\r\n this.routeName?.toLowerCase().includes('home')\r\n ) {\r\n if (this.$vuetify.breakpoint.mdAndDown) {\r\n this.closeMainNav();\r\n } else {\r\n this.uiModule.setNavigationDrawer(true);\r\n }\r\n } else if (this.routeName?.toLowerCase().includes('assetlibrary')) {\r\n if (this.$vuetify.breakpoint.mdAndDown) {\r\n this.uiModule.toggleAltDrawer({\r\n drawerType: AltDrawerType.CampaignSidebar,\r\n open: false\r\n });\r\n\r\n this.closeMainNav();\r\n } else {\r\n this.uiModule.toggleAltDrawer({\r\n drawerType: AltDrawerType.CampaignSidebar,\r\n open: true\r\n });\r\n this.uiModule.setNavigationDrawer(true);\r\n }\r\n } else if (\r\n this.routeName?.toLowerCase().includes('calendar') ||\r\n this.routeName?.toLowerCase().includes('creativecentre')\r\n ) {\r\n if (this.$vuetify.breakpoint.mdAndDown) {\r\n this.uiModule.toggleAltDrawer({\r\n drawerType: AltDrawerType.UpcomingPostsSidebar,\r\n open: false\r\n });\r\n\r\n this.closeMainNav();\r\n } else {\r\n this.uiModule.toggleAltDrawer({\r\n drawerType: AltDrawerType.UpcomingPostsSidebar,\r\n open: true\r\n });\r\n this.uiModule.setNavigationDrawer(true);\r\n }\r\n }\r\n }\r\n}\r\n","// Types\nimport Vue, { VNode } from 'vue'\n\nexport default function VGrid (name: string) {\n /* @vue/component */\n return Vue.extend({\n name: `v-${name}`,\n\n functional: true,\n\n props: {\n id: String,\n tag: {\n type: String,\n default: 'div',\n },\n },\n\n render (h, { props, data, children }): VNode {\n data.staticClass = (`${name} ${data.staticClass || ''}`).trim()\n\n const { attrs } = data\n if (attrs) {\n // reset attrs to extract utility clases like pa-3\n data.attrs = {}\n const classes = Object.keys(attrs).filter(key => {\n // TODO: Remove once resolved\n // https://github.com/vuejs/vue/issues/7841\n if (key === 'slot') return false\n\n const value = attrs[key]\n\n // add back data attributes like data-test=\"foo\" but do not\n // add them as classes\n if (key.startsWith('data-')) {\n data.attrs![key] = value\n return false\n }\n\n return value || typeof value === 'string'\n })\n\n if (classes.length) data.staticClass += ` ${classes.join(' ')}`\n }\n\n if (props.id) {\n data.domProps = data.domProps || {}\n data.domProps.id = props.id\n }\n\n return h(props.tag, data, children)\n },\n })\n}\n","import './_grid.sass'\nimport './VGrid.sass'\n\nimport Grid from './grid'\n\nimport mergeData from '../../util/mergeData'\n\n/* @vue/component */\nexport default Grid('container').extend({\n name: 'v-container',\n functional: true,\n props: {\n id: String,\n tag: {\n type: String,\n default: 'div',\n },\n fluid: {\n type: Boolean,\n default: false,\n },\n },\n render (h, { props, data, children }) {\n let classes\n const { attrs } = data\n if (attrs) {\n // reset attrs to extract utility clases like pa-3\n data.attrs = {}\n classes = Object.keys(attrs).filter(key => {\n // TODO: Remove once resolved\n // https://github.com/vuejs/vue/issues/7841\n if (key === 'slot') return false\n\n const value = attrs[key]\n\n // add back data attributes like data-test=\"foo\" but do not\n // add them as classes\n if (key.startsWith('data-')) {\n data.attrs![key] = value\n return false\n }\n\n return value || typeof value === 'string'\n })\n }\n\n if (props.id) {\n data.domProps = data.domProps || {}\n data.domProps.id = props.id\n }\n\n return h(\n props.tag,\n mergeData(data, {\n staticClass: 'container',\n class: Array({\n 'container--fluid': props.fluid,\n }).concat(classes || []),\n }),\n children\n )\n },\n})\n","// Styles\nimport './VOverlay.sass'\n\n// Mixins\nimport Colorable from './../../mixins/colorable'\nimport Themeable from '../../mixins/themeable'\nimport Toggleable from './../../mixins/toggleable'\n\n// Utilities\nimport mixins from '../../util/mixins'\n\n// Types\nimport { VNode } from 'vue'\n\n/* @vue/component */\nexport default mixins(\n Colorable,\n Themeable,\n Toggleable\n).extend({\n name: 'v-overlay',\n\n props: {\n absolute: Boolean,\n color: {\n type: String,\n default: '#212121',\n },\n dark: {\n type: Boolean,\n default: true,\n },\n opacity: {\n type: [Number, String],\n default: 0.46,\n },\n value: {\n default: true,\n },\n zIndex: {\n type: [Number, String],\n default: 5,\n },\n },\n\n computed: {\n __scrim (): VNode {\n const data = this.setBackgroundColor(this.color, {\n staticClass: 'v-overlay__scrim',\n style: {\n opacity: this.computedOpacity,\n },\n })\n\n return this.$createElement('div', data)\n },\n classes (): object {\n return {\n 'v-overlay--absolute': this.absolute,\n 'v-overlay--active': this.isActive,\n ...this.themeClasses,\n }\n },\n computedOpacity (): number {\n return Number(this.isActive ? this.opacity : 0)\n },\n styles (): object {\n return {\n zIndex: this.zIndex,\n }\n },\n },\n\n methods: {\n genContent () {\n return this.$createElement('div', {\n staticClass: 'v-overlay__content',\n }, this.$slots.default)\n },\n },\n\n render (h): VNode {\n const children = [this.__scrim]\n\n if (this.isActive) children.push(this.genContent())\n\n return h('div', {\n staticClass: 'v-overlay',\n on: this.$listeners,\n class: this.classes,\n style: this.styles,\n }, children)\n },\n})\n","import Vue from 'vue';\r\nimport { getModule } from 'vuex-module-decorators';\r\nimport ApplicationUser from '@/models/auth/applicationUser';\r\nimport {\r\n AssetModalModule,\r\n NewAssetModalModule,\r\n PostModalModule,\r\n StickerModalModule,\r\n StoresModule,\r\n UiModule,\r\n CreateModule,\r\n CreatePostModule,\r\n CreateAssetModule,\r\n} from '@/store';\r\nimport { UserModule } from '@/store/userModule';\r\nimport { AltDrawerType } from '@/constants';\r\nimport { UserStore } from '@/models/users/userStore';\r\n\r\nexport abstract class LoggedInComponentBase extends Vue {\r\n protected assetModalModule = getModule(AssetModalModule);\r\n protected newAssetModalModule = getModule(NewAssetModalModule);\r\n protected postModalModule = getModule(PostModalModule);\r\n protected stickerModalModule = getModule(StickerModalModule);\r\n protected storesModule = getModule(StoresModule);\r\n protected uiModule = getModule(UiModule);\r\n protected userModule = getModule(UserModule);\r\n protected createModule = getModule(CreateModule);\r\n protected createAssetModule = getModule(CreateAssetModule);\r\n protected createPostModule = getModule(CreatePostModule);\r\n\r\n public get currentStore(): UserStore {\r\n return this.userModule.currentStore;\r\n }\r\n\r\n public get campaignSidebarOpen(): boolean {\r\n return this.uiModule.campaignSidebarOpen;\r\n }\r\n\r\n public set campaignSidebarOpen(value: boolean) {\r\n this.uiModule.toggleAltDrawer({\r\n drawerType: AltDrawerType.CampaignSidebar,\r\n open: value,\r\n });\r\n }\r\n\r\n public get isLoading(): boolean {\r\n return this.uiModule.isLoading;\r\n }\r\n\r\n public get mainNavigationDrawer(): boolean | null {\r\n return this.uiModule.mainNavigationDrawerOpen;\r\n }\r\n\r\n public get upcomingPostsSidebarOpen(): boolean | null {\r\n return this.uiModule.upcomingPostsSidebarOpen;\r\n }\r\n\r\n public get user(): ApplicationUser | null {\r\n return this.user;\r\n }\r\n\r\n /*\r\n * Check if the current store has authorised their social accounts.\r\n * If not, prompt them with a modal.\r\n * Pass if current user is an MSO and is not viewing a paricular store.\r\n */\r\n protected async checkSocialChannelsAuthorised() {\r\n /*\r\n this wait is a hack to resolve a race condition on page load where this.userModule.isViewingSingleStore is incorrect (stores haven't loaded yet?).\r\n this results in the below getStoreChannels() not being called which in turn disables buttons on recommended posts because store channels [] is empty\r\n @ 1 second the problem persists\r\n */\r\n if (this.userModule.currentStore.id === '') {\r\n await new Promise((resolve) => setTimeout(resolve, 2000));\r\n }\r\n\r\n if (!this.userModule.isViewingSingleStore) {\r\n return;\r\n }\r\n\r\n await this.storesModule.getStoreChannels(this.userModule.currentStore.id);\r\n\r\n if (\r\n this.storesModule.storeChannels.length === 0 &&\r\n this.$route.name !== 'settings.root'\r\n ) {\r\n this.storesModule.toggleAuthoriseSocialChannelsModal(true);\r\n }\r\n }\r\n}\r\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('v-dialog',{attrs:{\"overlay-color\":\"white\",\"overlay-opacity\":\"0.85\",\"transition\":\"dialog-bottom-transition\",\"max-width\":_vm.$vuetify.breakpoint.mobile ? '100%' : '600px'},model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c('v-progress-linear',{attrs:{\"color\":\"primary\",\"active\":_vm.modalIsLoading,\"indeterminate\":true,\"height\":\"10\"}}),_c('v-card',{staticClass:\"content-card pa-5\",class:_vm.$vuetify.breakpoint.xs ? 'xs' : '',attrs:{\"flat\":\"\"}},[_c('v-card-title',[_c('v-spacer'),_c('v-btn',{staticClass:\"btn-close\",attrs:{\"text\":\"\"},on:{\"click\":function($event){_vm.dialog = false}}},[_vm._v(\" Close \")])],1),_c('v-card-title',{staticClass:\"pt-0\"},[_vm._v(\" \"+_vm._s(_vm.title)+\" \")]),_c('v-card-text',[_c('p',{domProps:{\"innerHTML\":_vm._s(_vm.currentlyAuthorisedText)}}),_vm._v(\" You can click on the button below to authorise or unlink your accounts. You'll be taken to a new page to do this. After you're done you'll be returned to this page. \")]),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{staticClass:\"primary\",on:{\"click\":_vm.authoriseSocialChannels}},[_vm._v(\" Authorise accounts \")])],1)],1),_c('notification',{ref:\"notification\",attrs:{\"success-timeout\":\"8000\",\"error-timeout\":\"8000\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { Component } from 'vue-property-decorator';\r\nimport Notification from '@/components/notifications/notification.vue';\r\nimport { NotificationType } from '@/types/notificationType';\r\nimport { StoresServiceClient } from '@/api/clients/storesServiceClient';\r\nimport { StoresModule } from '@/store';\r\nimport { getModule } from 'vuex-module-decorators';\r\nimport { LoggedInComponentBase } from '@/components/base/loggedInComponentBase';\r\nimport { SocialChannels } from '@/models/posts/socialChannels';\r\n\r\nconst storesModule = getModule(StoresModule);\r\nconst storesServiceClient = new StoresServiceClient();\r\n\r\n@Component({\r\n components: { Notification },\r\n})\r\nexport default class AuthoriseSocialChannelsModal extends LoggedInComponentBase {\r\n private modalIsLoading: boolean = false;\r\n public get dialog(): boolean {\r\n return this.storesModule.showAuthoriseSocialChannelsModal;\r\n }\r\n\r\n public set dialog(val: boolean) {\r\n this.storesModule.toggleAuthoriseSocialChannelsModal(val);\r\n }\r\n\r\n public get currentlyAuthorisedText(): string {\r\n const channelsNotAuthorised = SocialChannels.filter(\r\n (channel) => !this.storeChannels.includes(channel)\r\n );\r\n\r\n if (\r\n this.storeChannels.length > 0 &&\r\n this.storeChannels.length === SocialChannels.length\r\n ) {\r\n return `

Your store is currently authorised for: ${this.storeChannels}

`;\r\n } else if (\r\n this.storeChannels.length > 0 &&\r\n this.storeChannels.length < SocialChannels.length\r\n ) {\r\n return `

Your store is currently authorised for: ${this.storeChannels}

You are not yet authorised for: ${channelsNotAuthorised}`;\r\n } else {\r\n return 'Your store has not authorised any social channels yet.';\r\n }\r\n }\r\n\r\n public get currentStore() {\r\n return this.userModule.currentStore;\r\n }\r\n\r\n private get notificationInstance(): NotificationType {\r\n return this.$refs.notification as NotificationType;\r\n }\r\n\r\n public get storeChannels(): string[] {\r\n return storesModule.storeChannels;\r\n }\r\n\r\n public get title(): string {\r\n return this.storeChannels.length < SocialChannels.length\r\n ? 'Not all of your social channel accounts have been authorised'\r\n : 'All social accounts are authorised';\r\n }\r\n\r\n public async authoriseSocialChannels() {\r\n this.modalIsLoading = true;\r\n // Get a link generated by Ayrshare that will let the user authenticate social channels for their store.\r\n const response = await storesServiceClient.getAdapterSSOLink();\r\n const ssoLink = response.data;\r\n const ssoWindow = window.open(ssoLink, '_blank');\r\n\r\n // Check at intervals if the Ayrshare window has been closed yet, if so we check their social channels again.\r\n const loop = setInterval(async () => {\r\n if (ssoWindow?.closed) {\r\n clearInterval(loop);\r\n // This will get the latest list of social channels that this store is authorised for.\r\n await storesModule.updateSocialChannels(this.currentStore!.id);\r\n this.modalIsLoading = false;\r\n\r\n if (this.storeChannels.length > 0) {\r\n this.notificationInstance.showSuccess(\r\n `These social channels are now authorised: ${this.storeChannels}`\r\n );\r\n\r\n setTimeout(() => {\r\n this.dialog = false;\r\n }, 4000);\r\n } else {\r\n this.notificationInstance.showError(\r\n 'No social channels have been authorised yet, you need at least one to be able to post.'\r\n );\r\n }\r\n }\r\n }, 1000);\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./authoriseSocialChannelsModal.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./authoriseSocialChannelsModal.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./authoriseSocialChannelsModal.vue?vue&type=template&id=4b47e40b&scoped=true&\"\nimport script from \"./authoriseSocialChannelsModal.vue?vue&type=script&lang=ts&\"\nexport * from \"./authoriseSocialChannelsModal.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./authoriseSocialChannelsModal.vue?vue&type=style&index=0&id=4b47e40b&prod&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4b47e40b\",\n null\n \n)\n\nexport default component.exports","// Components\nimport VOverlay from '../../components/VOverlay'\n\n// Utilities\nimport {\n keyCodes,\n addOnceEventListener,\n addPassiveEventListener,\n getZIndex,\n composedPath,\n} from '../../util/helpers'\n\n// Types\nimport Vue from 'vue'\n\ninterface Toggleable extends Vue {\n isActive?: boolean\n}\n\ninterface Stackable extends Vue {\n activeZIndex: number\n}\n\ninterface options {\n absolute?: boolean\n $refs: {\n dialog?: HTMLElement\n content?: HTMLElement\n }\n}\n\n/* @vue/component */\nexport default Vue.extend().extend({\n name: 'overlayable',\n\n props: {\n hideOverlay: Boolean,\n overlayColor: String,\n overlayOpacity: [Number, String],\n },\n\n data () {\n return {\n animationFrame: 0,\n overlay: null as InstanceType | null,\n }\n },\n\n watch: {\n hideOverlay (value) {\n if (!this.isActive) return\n\n if (value) this.removeOverlay()\n else this.genOverlay()\n },\n },\n\n beforeDestroy () {\n this.removeOverlay()\n },\n\n methods: {\n createOverlay () {\n const overlay = new VOverlay({\n propsData: {\n absolute: this.absolute,\n value: false,\n color: this.overlayColor,\n opacity: this.overlayOpacity,\n },\n })\n\n overlay.$mount()\n\n const parent = this.absolute\n ? this.$el.parentNode\n : document.querySelector('[data-app]')\n\n parent && parent.insertBefore(overlay.$el, parent.firstChild)\n\n this.overlay = overlay\n },\n genOverlay () {\n this.hideScroll()\n\n if (this.hideOverlay) return\n\n if (!this.overlay) this.createOverlay()\n\n this.animationFrame = requestAnimationFrame(() => {\n if (!this.overlay) return\n\n if (this.activeZIndex !== undefined) {\n this.overlay.zIndex = String(this.activeZIndex - 1)\n } else if (this.$el) {\n this.overlay.zIndex = getZIndex(this.$el)\n }\n\n this.overlay.value = true\n })\n\n return true\n },\n /** removeOverlay(false) will not restore the scollbar afterwards */\n removeOverlay (showScroll = true) {\n if (this.overlay) {\n addOnceEventListener(this.overlay.$el, 'transitionend', () => {\n if (\n !this.overlay ||\n !this.overlay.$el ||\n !this.overlay.$el.parentNode ||\n this.overlay.value ||\n this.isActive\n ) return\n\n this.overlay.$el.parentNode.removeChild(this.overlay.$el)\n this.overlay.$destroy()\n this.overlay = null\n })\n\n // Cancel animation frame in case\n // overlay is removed before it\n // has finished its animation\n cancelAnimationFrame(this.animationFrame)\n\n this.overlay.value = false\n }\n\n showScroll && this.showScroll()\n },\n scrollListener (e: WheelEvent | KeyboardEvent) {\n if ('key' in e) {\n if (\n ['INPUT', 'TEXTAREA', 'SELECT'].includes((e.target as Element).tagName) ||\n // https://github.com/vuetifyjs/vuetify/issues/4715\n (e.target as HTMLElement).isContentEditable\n ) return\n\n const up = [keyCodes.up, keyCodes.pageup]\n const down = [keyCodes.down, keyCodes.pagedown]\n\n if (up.includes(e.keyCode)) {\n (e as any).deltaY = -1\n } else if (down.includes(e.keyCode)) {\n (e as any).deltaY = 1\n } else {\n return\n }\n }\n\n if (e.target === this.overlay ||\n (e.type !== 'keydown' && e.target === document.body) ||\n this.checkPath(e as WheelEvent)) e.preventDefault()\n },\n hasScrollbar (el?: Element) {\n if (!el || el.nodeType !== Node.ELEMENT_NODE) return false\n\n const style = window.getComputedStyle(el)\n return ((['auto', 'scroll'].includes(style.overflowY!) || el.tagName === 'SELECT') && el.scrollHeight > el.clientHeight) ||\n ((['auto', 'scroll'].includes(style.overflowX!)) && el.scrollWidth > el.clientWidth)\n },\n shouldScroll (el: Element, e: WheelEvent): boolean {\n if (el.hasAttribute('data-app')) return false\n\n const dir = e.shiftKey || e.deltaX ? 'x' : 'y'\n const delta = dir === 'y' ? e.deltaY : e.deltaX || e.deltaY\n\n let alreadyAtStart: boolean\n let alreadyAtEnd: boolean\n if (dir === 'y') {\n alreadyAtStart = el.scrollTop === 0\n alreadyAtEnd = el.scrollTop + el.clientHeight === el.scrollHeight\n } else {\n alreadyAtStart = el.scrollLeft === 0\n alreadyAtEnd = el.scrollLeft + el.clientWidth === el.scrollWidth\n }\n\n const scrollingUp = delta < 0\n const scrollingDown = delta > 0\n\n if (!alreadyAtStart && scrollingUp) return true\n if (!alreadyAtEnd && scrollingDown) return true\n if ((alreadyAtStart || alreadyAtEnd)) {\n return this.shouldScroll(el.parentNode as Element, e)\n }\n\n return false\n },\n isInside (el: Element, parent: Element): boolean {\n if (el === parent) {\n return true\n } else if (el === null || el === document.body) {\n return false\n } else {\n return this.isInside(el.parentNode as Element, parent)\n }\n },\n checkPath (e: WheelEvent) {\n const path = composedPath(e)\n\n if (e.type === 'keydown' && path[0] === document.body) {\n const dialog = this.$refs.dialog\n // getSelection returns null in firefox in some edge cases, can be ignored\n const selected = window.getSelection()!.anchorNode as Element\n if (dialog && this.hasScrollbar(dialog) && this.isInside(selected, dialog)) {\n return !this.shouldScroll(dialog, e)\n }\n return true\n }\n\n for (let index = 0; index < path.length; index++) {\n const el = path[index]\n\n if (el === document) return true\n if (el === document.documentElement) return true\n if (el === this.$refs.content) return true\n\n if (this.hasScrollbar(el as Element)) return !this.shouldScroll(el as Element, e)\n }\n\n return true\n },\n hideScroll () {\n if (this.$vuetify.breakpoint.smAndDown) {\n document.documentElement!.classList.add('overflow-y-hidden')\n } else {\n addPassiveEventListener(window, 'wheel', this.scrollListener, { passive: false })\n window.addEventListener('keydown', this.scrollListener)\n }\n },\n showScroll () {\n document.documentElement!.classList.remove('overflow-y-hidden')\n window.removeEventListener('wheel', this.scrollListener)\n window.removeEventListener('keydown', this.scrollListener)\n },\n },\n})\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"l-gutters\"},[_c('div',{staticClass:\"l-container\",class:_vm.$vuetify.breakpoint.xs ? 'mt-4' : ''},[(!_vm.$vuetify.breakpoint.xs)?[_c('h1',{staticClass:\"mt-11\"},[_vm._v(\"Settings\")]),_c('v-divider',{staticClass:\"mb-10\"})]:_vm._e(),(!_vm.hideStoreDetails)?[_c('h2',{staticClass:\"title mb-2\"},[_vm._v(\"Store Details\")]),_c('v-form',{ref:\"storeDetailsForm\",staticClass:\"mb-10\",on:{\"submit\":function($event){$event.preventDefault();return _vm.formStoreDetailsSubmit(_vm.$refs.storeDetailsForm)}}},[_c('v-row',[_c('v-col',[_c('v-text-field',{attrs:{\"type\":\"text\",\"label\":\"Store name*\",\"name\":\"storeName\",\"rules\":[_vm.rules.required],\"filled\":\"\"},model:{value:(_vm.storeTitle),callback:function ($$v) {_vm.storeTitle=$$v},expression:\"storeTitle\"}})],1)],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"6\"}},[_c('v-text-field',{attrs:{\"type\":\"text\",\"label\":\"Phone (including area code)*\",\"name\":\"storePhone\",\"rules\":[_vm.rules.required, _vm.rules.phoneNumber],\"filled\":\"\"},model:{value:(_vm.storePhone),callback:function ($$v) {_vm.storePhone=$$v},expression:\"storePhone\"}})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"6\"}},[_c('v-text-field',{attrs:{\"type\":\"text\",\"label\":\"Contact Email*\",\"name\":\"storeEmail\",\"rules\":[_vm.rules.required, _vm.rules.email],\"filled\":\"\"},model:{value:(_vm.storeEmail),callback:function ($$v) {_vm.storeEmail=$$v},expression:\"storeEmail\"}})],1)],1),_c('v-row',[_c('v-col',[_c('v-btn',{staticClass:\"font-weight-medium primary\",attrs:{\"type\":\"submit\",\"x-large\":\"\"}},[_vm._v(\" Save \")])],1)],1)],1),_c('h2',{staticClass:\"title mb-2\"},[_vm._v(\"Store Address\")]),_c('v-form',{ref:\"storeAddressForm\",staticClass:\"mb-10\",on:{\"submit\":function($event){$event.preventDefault();return _vm.formStoreDetailsSubmit(_vm.$refs.storeAddressForm)}}},[_c('v-row',[_c('v-col',[_c('v-text-field',{attrs:{\"type\":\"text\",\"label\":\"Address Line 1*\",\"name\":\"addressLine1\",\"rules\":[_vm.rules.required],\"filled\":\"\"},model:{value:(_vm.addressLine1),callback:function ($$v) {_vm.addressLine1=$$v},expression:\"addressLine1\"}})],1)],1),_c('v-row',[_c('v-col',[_c('v-text-field',{attrs:{\"type\":\"text\",\"label\":\"Address Line 2\",\"name\":\"addressLine2\",\"filled\":\"\"},model:{value:(_vm.addressLine2),callback:function ($$v) {_vm.addressLine2=$$v},expression:\"addressLine2\"}})],1)],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"6\"}},[_c('v-text-field',{attrs:{\"type\":\"text\",\"label\":\"Suburb*\",\"name\":\"suburb\",\"rules\":[_vm.rules.required],\"filled\":\"\"},model:{value:(_vm.suburb),callback:function ($$v) {_vm.suburb=$$v},expression:\"suburb\"}})],1),_c('v-col',[_c('v-select',{attrs:{\"filled\":\"\",\"items\":_vm.states},model:{value:(_vm.storeState),callback:function ($$v) {_vm.storeState=$$v},expression:\"storeState\"}})],1),_c('v-col',[_c('v-text-field',{attrs:{\"type\":\"text\",\"label\":\"Postcode*\",\"name\":\"postcode\",\"rules\":[_vm.rules.required],\"filled\":\"\"},model:{value:(_vm.storePostcode),callback:function ($$v) {_vm.storePostcode=$$v},expression:\"storePostcode\"}})],1)],1),_c('v-row',[_c('v-col',[_c('v-btn',{staticClass:\"font-weight-medium primary\",attrs:{\"type\":\"submit\",\"x-large\":\"\"}},[_vm._v(\" Save \")])],1)],1)],1)]:_vm._e(),_c('h2',{staticClass:\"title mb-2\"},[_vm._v(\"My Profile Details\")]),_c('v-form',{ref:\"profileDetailsForm\",staticClass:\"mb-10\",on:{\"submit\":function($event){$event.preventDefault();return _vm.formProfileDetailsSubmit(_vm.$refs.profileDetailsForm)}}},[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"6\"}},[_c('v-text-field',{attrs:{\"type\":\"text\",\"label\":\"Name*\",\"name\":\"displayName\",\"rules\":[_vm.rules.required],\"filled\":\"\"},model:{value:(_vm.displayName),callback:function ($$v) {_vm.displayName=$$v},expression:\"displayName\"}})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"6\"}},[_c('v-text-field',{attrs:{\"type\":\"text\",\"label\":\"Direct Email\",\"name\":\"userEmail\",\"disabled\":\"\",\"filled\":\"\"},model:{value:(_vm.userEmail),callback:function ($$v) {_vm.userEmail=$$v},expression:\"userEmail\"}})],1)],1),_c('v-row',[_c('v-col',[_c('v-btn',{staticClass:\"font-weight-medium primary\",attrs:{\"type\":\"submit\",\"x-large\":\"\"}},[_vm._v(\" Save \")])],1)],1)],1),_c('h2',{staticClass:\"title mb-2\"},[_vm._v(\"Profile Password\")]),_c('p',[_vm._v(\" Want to change your password? Simply click on the button below to start. \")]),_c('v-btn',{staticClass:\"font-weight-medium primary\",attrs:{\"color\":\"mt-3\",\"depressed\":\"\",\"dark\":\"\",\"x-large\":\"\"},on:{\"click\":_vm.changePassword}},[_vm._v(\"Change Password \")]),(!_vm.hideStoreDetails)?[_c('h2',{staticClass:\"title mb-2 mt-10\"},[_vm._v(\"Social Accounts\")]),_c('p',{domProps:{\"innerHTML\":_vm._s(_vm.currentlyAuthorisedText)}}),_c('p',{staticClass:\"mb-6\"},[_vm._v(\"Authorise your stores social accounts here:\")]),_c('v-btn',{staticClass:\"primary font-weight-medium mb-10\",attrs:{\"x-large\":\"\"},on:{\"click\":_vm.showAuthoriseSocialModal}},[_vm._v(\" Authorise accounts \")]),_c('v-snackbar',{attrs:{\"color\":_vm.notificationColour,\"timeout\":_vm.notificationTimeout},scopedSlots:_vm._u([{key:\"action\",fn:function({ attrs }){return [_c('v-btn',_vm._b({staticClass:\"font-weight-medium primary\",attrs:{\"text\":\"\",\"x-large\":\"\"},on:{\"click\":function($event){_vm.showNotification = false}}},'v-btn',attrs,false),[_vm._v(\" Close \")])]}}],null,false,1222835118),model:{value:(_vm.showNotification),callback:function ($$v) {_vm.showNotification=$$v},expression:\"showNotification\"}},[_vm._v(\" \"+_vm._s(_vm.notificationMessage)+\" \")])]:_vm._e(),_c('change-password-modal')],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('v-dialog',{attrs:{\"overlay-color\":\"white\",\"overlay-opacity\":\"0.5\",\"max-width\":\"400px\"},on:{\"input\":v => v || _vm.dialogClosed()},model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c('v-form',{ref:\"changePasswordForm\",attrs:{\"lazy-validation\":true},on:{\"submit\":function($event){$event.preventDefault();return _vm.formSubmit(_vm.$refs.changePasswordForm)}}},[_c('v-card',[_c('v-card-title',{staticClass:\"justify-center\"},[_c('h1',{staticClass:\"headline\"},[_vm._v(\"Change your password\")])]),_c('v-card-text',[_c('v-container',[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-text-field',{attrs:{\"autofocus\":\"\",\"type\":\"password\",\"label\":\"Existing password\",\"rules\":[_vm.rules.required]},model:{value:(_vm.existingPassword),callback:function ($$v) {_vm.existingPassword=$$v},expression:\"existingPassword\"}})],1)],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-text-field',{attrs:{\"type\":\"password\",\"label\":\"New password\",\"rules\":[_vm.rules.required, _vm.rules.passwordLength, _vm.rules.passwordComplexity]},model:{value:(_vm.newPassword),callback:function ($$v) {_vm.newPassword=$$v},expression:\"newPassword\"}})],1)],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-text-field',{attrs:{\"type\":\"password\",\"label\":\"Confirm new password\",\"rules\":[_vm.rules.required, _vm.passwordConfirmationRule]},model:{value:(_vm.confirmPassword),callback:function ($$v) {_vm.confirmPassword=$$v},expression:\"confirmPassword\"}})],1)],1)],1)],1),_c('v-card-actions',[_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":function($event){_vm.dialog = false}}},[_vm._v(\" Close \")]),_c('v-spacer'),_c('v-btn',{staticClass:\"font-weight-medium\",attrs:{\"type\":\"submit\",\"color\":\"red darken-1 mt-3\",\"depressed\":\"\",\"dark\":\"\",\"x-large\":\"\",\"outlined\":\"\"}},[_vm._v(\" Confirm \")])],1)],1)],1),_c('v-snackbar',{attrs:{\"color\":_vm.notificationColour,\"timeout\":_vm.notificationTimeout},scopedSlots:_vm._u([{key:\"action\",fn:function({ attrs }){return [_c('v-btn',_vm._b({attrs:{\"text\":\"\"},on:{\"click\":function($event){_vm.showNotification = false}}},'v-btn',attrs,false),[_vm._v(\" Close \")])]}}]),model:{value:(_vm.showNotification),callback:function ($$v) {_vm.showNotification=$$v},expression:\"showNotification\"}},[_vm._v(\" \"+_vm._s(_vm.notificationMessage)+\" \")])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport Component from 'vue-class-component';\r\nimport { LoggedInComponentBase } from '../base/loggedInComponentBase';\r\nimport { UserModule } from '@/store';\r\nimport { getModule } from 'vuex-module-decorators';\r\nimport { UserServiceClient } from '@/api/clients/userServiceClient';\r\nimport { ValidationRules } from '@/modules/public/models/validationRules';\r\n\r\nconst userModule = getModule(UserModule);\r\nconst userServiceClient = new UserServiceClient();\r\n\r\n@Component\r\nexport default class ChangePasswordModal extends LoggedInComponentBase {\r\n public existingPassword: string = '';\r\n public newPassword: string = '';\r\n public confirmPassword: string = '';\r\n public rules: ValidationRules = new ValidationRules();\r\n\r\n // Notification\r\n public showNotification: boolean = false;\r\n public notificationMessage: string = '';\r\n public notificationColour: string = 'green';\r\n public notificationTimeout: string = '2500';\r\n\r\n public dialogClosed() {\r\n if (this.$refs.changePasswordForm instanceof HTMLFormElement) {\r\n this.$refs.changePasswordForm.reset();\r\n }\r\n }\r\n\r\n public get passwordConfirmationRule() {\r\n return () =>\r\n this.newPassword === this.confirmPassword || 'Passwords must match';\r\n }\r\n\r\n public get dialog(): boolean {\r\n return userModule.changePasswordModalVisible;\r\n }\r\n\r\n public set dialog(value) {\r\n userModule.showChangePasswordModal(value);\r\n }\r\n\r\n async formSubmit(form: VForm) {\r\n try {\r\n // Reset time to show notification\r\n this.notificationTimeout = '2500';\r\n this.showNotification = false;\r\n\r\n if (form.validate()) {\r\n await userServiceClient.updateProfile({\r\n oldPassword: this.existingPassword,\r\n newPassword: this.newPassword\r\n });\r\n\r\n this.notificationMessage = 'Your password has been updated.';\r\n this.notificationColour = 'success';\r\n this.showNotification = true;\r\n\r\n setTimeout(() => {\r\n this.userModule.showChangePasswordModal(false);\r\n }, parseInt(this.notificationTimeout));\r\n }\r\n } catch (err) {\r\n if (\r\n err.response &&\r\n err.response.data &&\r\n err.response.data.message !== ''\r\n ) {\r\n this.notificationMessage = err.response.data.message;\r\n } else {\r\n this.notificationMessage = 'There was an error updating your password.';\r\n }\r\n\r\n this.notificationTimeout = '10000';\r\n this.notificationColour = 'error';\r\n this.showNotification = true;\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./changePasswordModal.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./changePasswordModal.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./changePasswordModal.vue?vue&type=template&id=df78b384&\"\nimport script from \"./changePasswordModal.vue?vue&type=script&lang=ts&\"\nexport * from \"./changePasswordModal.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\r\nimport { Component, Watch } from 'vue-property-decorator';\r\nimport { LoggedInComponentBase } from '@/components/base/loggedInComponentBase';\r\nimport { ValidationRules } from '../../public/models/validationRules';\r\nimport { StoresModule } from '@/store';\r\nimport { getModule } from 'vuex-module-decorators';\r\nimport ChangePasswordModal from '@/components/modals/changePasswordModal.vue';\r\nimport { SidebarMixin } from '@/mixins/sidebarMixin';\r\nimport AuthoriseSocialChannelsModal from '@/components/modals/authoriseSocialChannelsModal.vue';\r\nimport { SocialChannels } from '@/models/posts/socialChannels';\r\n\r\nconst storesModule = getModule(StoresModule);\r\n\r\n@Component({\r\n components: { ChangePasswordModal, AuthoriseSocialChannelsModal },\r\n mixins: [SidebarMixin],\r\n})\r\nexport default class SettingsIndex extends LoggedInComponentBase {\r\n public rules: ValidationRules = new ValidationRules();\r\n public states: string[] = ['ACT', 'NSW', 'NT', 'QLD', 'TAS', 'VIC', 'WA'];\r\n\r\n // Notification\r\n public showNotification: boolean = false;\r\n public notificationMessage: string = '';\r\n public notificationColour: string = 'green';\r\n public notificationTimeout: string = '2500';\r\n public ssoLink: string = '';\r\n public hideStoreDetails: boolean = !this.userModule.isViewingSingleStore;\r\n\r\n public get currentStore() {\r\n return this.userModule.currentStore;\r\n }\r\n\r\n public get addressLine1() {\r\n return storesModule.storeDetails?.addressLine1 ?? '';\r\n }\r\n\r\n public set addressLine1(addressLine1: string) {\r\n storesModule.changeStoreDetails({\r\n key: 'addressLine1',\r\n value: addressLine1,\r\n });\r\n }\r\n\r\n public get addressLine2() {\r\n return storesModule.storeDetails?.addressLine2 ?? '';\r\n }\r\n\r\n public set addressLine2(addressLine2: string) {\r\n storesModule.changeStoreDetails({\r\n key: 'addressLine2',\r\n value: addressLine2,\r\n });\r\n }\r\n\r\n public get currentlyAuthorisedText(): string {\r\n const channelsNotAuthorised = SocialChannels.filter(\r\n (channel) => !this.storeChannels.includes(channel)\r\n );\r\n\r\n if (this.storeChannels.length > 0) {\r\n return `

Your store is currently authorised for: ${this.storeChannels}

You are not yet authorised for: ${channelsNotAuthorised}`;\r\n } else {\r\n return 'Your store has not authorised any social channels yet.';\r\n }\r\n }\r\n\r\n public get storeChannels(): string[] {\r\n return storesModule.storeChannels;\r\n }\r\n\r\n public get displayName() {\r\n return this.userModule.currentUser\r\n ? this.userModule.currentUser.displayName\r\n : '';\r\n }\r\n\r\n public set displayName(name: string) {\r\n this.userModule.setDisplayName(name);\r\n }\r\n\r\n public get storeDetails() {\r\n return storesModule.storeDetails;\r\n }\r\n\r\n public get storeEmail() {\r\n return storesModule.storeDetails?.email ?? '';\r\n }\r\n\r\n public set storeEmail(email: string) {\r\n storesModule.changeStoreDetails({\r\n key: 'email',\r\n value: email,\r\n });\r\n }\r\n\r\n public get storePhone() {\r\n return storesModule.storeDetails?.phone ?? '';\r\n }\r\n\r\n public set storePhone(phone: string) {\r\n storesModule.changeStoreDetails({\r\n key: 'phone',\r\n value: phone,\r\n });\r\n }\r\n\r\n public get storePostcode() {\r\n return storesModule.storeDetails ? storesModule.storeDetails.postcode : '';\r\n }\r\n\r\n public set storePostcode(postcode: string) {\r\n storesModule.changeStoreDetails({\r\n key: 'postcode',\r\n value: postcode,\r\n });\r\n }\r\n\r\n public get storeState() {\r\n return storesModule.storeDetails ? storesModule.storeDetails.state : '';\r\n }\r\n\r\n public set storeState(state: string) {\r\n storesModule.changeStoreDetails({\r\n key: 'state',\r\n value: state,\r\n });\r\n }\r\n\r\n public get storeTitle() {\r\n return storesModule.storeDetails ? storesModule.storeDetails.title : '';\r\n }\r\n\r\n public set storeTitle(title: string) {\r\n storesModule.changeStoreDetails({\r\n key: 'title',\r\n value: title,\r\n });\r\n }\r\n\r\n public get suburb() {\r\n return storesModule.storeDetails?.suburb ?? '';\r\n }\r\n\r\n public set suburb(suburb: string) {\r\n storesModule.changeStoreDetails({\r\n key: 'suburb',\r\n value: suburb,\r\n });\r\n }\r\n\r\n public get userEmail() {\r\n return this.userModule.currentUser?.email;\r\n }\r\n\r\n async created() {\r\n if (this.userModule.isViewingSingleStore) {\r\n await storesModule.getStoreDetails(this.userModule.currentStore.id);\r\n await storesModule.updateSocialChannels(this.userModule.currentStore.id);\r\n }\r\n }\r\n\r\n public changePassword() {\r\n this.userModule.showChangePasswordModal(true);\r\n }\r\n\r\n public resetNotification() {\r\n this.notificationTimeout = '2500';\r\n this.showNotification = false;\r\n this.notificationColour = 'success';\r\n }\r\n\r\n public showAuthoriseSocialModal() {\r\n this.storesModule.toggleAuthoriseSocialChannelsModal(true);\r\n }\r\n\r\n public async formStoreDetailsSubmit(form: VForm) {\r\n try {\r\n this.resetNotification();\r\n\r\n if (form.validate()) {\r\n if (this.storeDetails) {\r\n await storesModule.updateStoreDetails(this.storeDetails);\r\n\r\n this.notificationMessage = 'Store has been updated.';\r\n this.showNotification = true;\r\n }\r\n }\r\n } catch (err) {\r\n this.notificationMessage = 'There was an error updating the store.';\r\n this.notificationTimeout = '10000';\r\n this.notificationColour = 'error';\r\n this.showNotification = true;\r\n }\r\n }\r\n\r\n public async formProfileDetailsSubmit(form: VForm) {\r\n try {\r\n this.resetNotification();\r\n\r\n if (form.validate()) {\r\n await this.userModule.updateUserProfile({\r\n displayName: this.displayName,\r\n });\r\n\r\n this.notificationMessage = 'Your details have been updated.';\r\n this.showNotification = true;\r\n }\r\n } catch (err) {\r\n this.notificationMessage = 'There was an error updating your profile.';\r\n this.notificationTimeout = '10000';\r\n this.notificationColour = 'error';\r\n this.showNotification = true;\r\n }\r\n }\r\n\r\n @Watch('currentStore')\r\n public async onStoreChanged() {\r\n if (this.userModule.isViewingSingleStore) {\r\n await storesModule.getStoreDetails(this.userModule.currentStore.id);\r\n this.hideStoreDetails = false;\r\n } else {\r\n this.hideStoreDetails = true;\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=a44e92e4&\"\nimport script from \"./index.vue?vue&type=script&lang=ts&\"\nexport * from \"./index.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}