{"version":3,"file":"index-d323508a.js","sources":["../../../Client/src/modules/broadcast-portal/endpoints.ts","../../../Client/src/modules/broadcast-portal-post-login/endpoints.ts","../../../Client/node_modules/js-cookie/dist/js.cookie.mjs","../../../Client/src/modules/broadcast-portal-post-login/app.constants.ts","../../../Client/node_modules/object-to-formdata/src/index.js","../../../Client/src/modules/broadcast-portal-post-login/store/auth.ts","../../../Client/src/modules/broadcast-portal-post-login/store/common-data.ts","../../../Client/src/modules/broadcast-portal-post-login/store/services.ts","../../../Client/src/modules/broadcast-portal-post-login/types/services.ts","../../../Client/src/modules/broadcast-portal-post-login/store/service.ts","../../../Client/src/modules/broadcast-portal-post-login/store/portfolios.ts","../../../Client/src/modules/broadcast-portal-post-login/store/portfolio.ts","../../../Client/src/modules/broadcast-portal-post-login/store/advertisements.ts","../../../Client/src/modules/broadcast-portal-post-login/store/advertisement.ts","../../../Client/src/modules/broadcast-portal-post-login/store/index.ts"],"sourcesContent":["export const API_BASE_URL_V1 = '/api/v1';\r\n\r\nexport default {\r\n ANALYTICS: `${API_BASE_URL_V1}/analytics`,\r\n SERVICE: `${API_BASE_URL_V1}/service-offerings`,\r\n MEMBERS: `${API_BASE_URL_V1}/members`,\r\n}\r\n","export const API_BASE_URL_V1 = '/api/v1';\r\n\r\nexport default {\r\n ANALYTICS: `${API_BASE_URL_V1}/analytics`,\r\n PROD_HOUSE: `${API_BASE_URL_V1}/production-houses`,\r\n FREELANCER: `${API_BASE_URL_V1}/freelancers`,\r\n MEMBERS: `${API_BASE_URL_V1}/members`,\r\n}\r\n","/*! js-cookie v3.0.1 | MIT */\n/* eslint-disable no-var */\nfunction assign (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n target[key] = source[key];\n }\n }\n return target\n}\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\nvar defaultConverter = {\n read: function (value) {\n if (value[0] === '\"') {\n value = value.slice(1, -1);\n }\n return value.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent)\n },\n write: function (value) {\n return encodeURIComponent(value).replace(\n /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,\n decodeURIComponent\n )\n }\n};\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\n\nfunction init (converter, defaultAttributes) {\n function set (key, value, attributes) {\n if (typeof document === 'undefined') {\n return\n }\n\n attributes = assign({}, defaultAttributes, attributes);\n\n if (typeof attributes.expires === 'number') {\n attributes.expires = new Date(Date.now() + attributes.expires * 864e5);\n }\n if (attributes.expires) {\n attributes.expires = attributes.expires.toUTCString();\n }\n\n key = encodeURIComponent(key)\n .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n .replace(/[()]/g, escape);\n\n var stringifiedAttributes = '';\n for (var attributeName in attributes) {\n if (!attributes[attributeName]) {\n continue\n }\n\n stringifiedAttributes += '; ' + attributeName;\n\n if (attributes[attributeName] === true) {\n continue\n }\n\n // Considers RFC 6265 section 5.2:\n // ...\n // 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n // character:\n // Consume the characters of the unparsed-attributes up to,\n // not including, the first %x3B (\";\") character.\n // ...\n stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n }\n\n return (document.cookie =\n key + '=' + converter.write(value, key) + stringifiedAttributes)\n }\n\n function get (key) {\n if (typeof document === 'undefined' || (arguments.length && !key)) {\n return\n }\n\n // To prevent the for loop in the first place assign an empty array\n // in case there are no cookies at all.\n var cookies = document.cookie ? document.cookie.split('; ') : [];\n var jar = {};\n for (var i = 0; i < cookies.length; i++) {\n var parts = cookies[i].split('=');\n var value = parts.slice(1).join('=');\n\n try {\n var foundKey = decodeURIComponent(parts[0]);\n jar[foundKey] = converter.read(value, foundKey);\n\n if (key === foundKey) {\n break\n }\n } catch (e) {}\n }\n\n return key ? jar[key] : jar\n }\n\n return Object.create(\n {\n set: set,\n get: get,\n remove: function (key, attributes) {\n set(\n key,\n '',\n assign({}, attributes, {\n expires: -1\n })\n );\n },\n withAttributes: function (attributes) {\n return init(this.converter, assign({}, this.attributes, attributes))\n },\n withConverter: function (converter) {\n return init(assign({}, this.converter, converter), this.attributes)\n }\n },\n {\n attributes: { value: Object.freeze(defaultAttributes) },\n converter: { value: Object.freeze(converter) }\n }\n )\n}\n\nvar api = init(defaultConverter, { path: '/' });\n/* eslint-enable no-var */\n\nexport default api;\n","import { getMetaTagValue } from \"@/modules/core/utilities/dom\";\r\n\r\nexport default {\r\n AUTH_STORAGE_KEY_NAME: '',\r\n AUTH_TOKEN_COOKIE_NAME: 'AITI.Broadcast.Member.AccessToken',\r\n AUTH_TOKEN_HTTP_HEADER_NAME: 'x-member-authorization',\r\n AUTH_INTERCEPTOR_WHITELIST: [\r\n '/api/v1/production-houses/sign-ins',\r\n '/api/v1/freelancers/sign-ins',\r\n ],\r\n\r\n SIGNIN_PAGE_URL: '/post-login/#/sign-in',\r\n AUTH_METHOD_KEY_EMAIL_PASSWORD: '4071f652-f80a-41f1-b165-7ac6dc98663f',\r\n AUTH_METHOD_KEY_GOOGLE: '735f41bd-6168-4298-beca-4c23878b4cfe',\r\n AUTH_METHOD_KEY_LINKEDIN: '9e9f0c4c-84cf-48e3-8c83-3749a52f40fe',\r\n\r\n GOOGLE_CLIENT_ID: getMetaTagValue('google-client-id'),\r\n}","function isUndefined(value) {\n return value === undefined;\n}\n\nfunction isNull(value) {\n return value === null;\n}\n\nfunction isBoolean(value) {\n return typeof value === 'boolean';\n}\n\nfunction isObject(value) {\n return value === Object(value);\n}\n\nfunction isArray(value) {\n return Array.isArray(value);\n}\n\nfunction isDate(value) {\n return value instanceof Date;\n}\n\nfunction isBlob(value, isReactNative) {\n return isReactNative\n ? isObject(value) && !isUndefined(value.uri)\n : isObject(value) &&\n typeof value.size === 'number' &&\n typeof value.type === 'string' &&\n typeof value.slice === 'function';\n}\n\nfunction isFile(value, isReactNative) {\n return (\n isBlob(value, isReactNative) &&\n typeof value.name === 'string' &&\n (isObject(value.lastModifiedDate) || typeof value.lastModified === 'number')\n );\n}\n\nfunction initCfg(value) {\n return isUndefined(value) ? false : value;\n}\n\nfunction serialize(obj, cfg, fd, pre) {\n cfg = cfg || {};\n fd = fd || new FormData();\n\n cfg.indices = initCfg(cfg.indices);\n cfg.nullsAsUndefineds = initCfg(cfg.nullsAsUndefineds);\n cfg.booleansAsIntegers = initCfg(cfg.booleansAsIntegers);\n cfg.allowEmptyArrays = initCfg(cfg.allowEmptyArrays);\n cfg.noAttributesWithArrayNotation = initCfg(\n cfg.noAttributesWithArrayNotation,\n );\n cfg.noFilesWithArrayNotation = initCfg(cfg.noFilesWithArrayNotation);\n cfg.dotsForObjectNotation = initCfg(cfg.dotsForObjectNotation);\n\n const isReactNative = typeof fd.getParts === 'function';\n\n if (isUndefined(obj)) {\n return fd;\n } else if (isNull(obj)) {\n if (!cfg.nullsAsUndefineds) {\n fd.append(pre, '');\n }\n } else if (isBoolean(obj)) {\n if (cfg.booleansAsIntegers) {\n fd.append(pre, obj ? 1 : 0);\n } else {\n fd.append(pre, obj);\n }\n } else if (isArray(obj)) {\n if (obj.length) {\n obj.forEach((value, index) => {\n let key = pre + '[' + (cfg.indices ? index : '') + ']';\n\n if (\n cfg.noAttributesWithArrayNotation ||\n (cfg.noFilesWithArrayNotation && isFile(value, isReactNative))\n ) {\n key = pre;\n }\n\n serialize(value, cfg, fd, key);\n });\n } else if (cfg.allowEmptyArrays) {\n fd.append(cfg.noAttributesWithArrayNotation ? pre : pre + '[]', '');\n }\n } else if (isDate(obj)) {\n fd.append(pre, obj.toISOString());\n } else if (isObject(obj) && !isBlob(obj, isReactNative)) {\n Object.keys(obj).forEach((prop) => {\n const value = obj[prop];\n\n if (isArray(value)) {\n while (prop.length > 2 && prop.lastIndexOf('[]') === prop.length - 2) {\n prop = prop.substring(0, prop.length - 2);\n }\n }\n\n const key = pre\n ? cfg.dotsForObjectNotation\n ? pre + '.' + prop\n : pre + '[' + prop + ']'\n : prop;\n\n serialize(value, cfg, fd, key);\n });\n } else {\n fd.append(pre, obj);\n }\n\n return fd;\n}\n\nmodule.exports = {\n serialize,\n};\n","import { defineStore } from \"pinia\";\r\nimport endpoints from \"@/modules/broadcast-portal-post-login/endpoints\";\r\nimport { useErrorHandling } from \"@/modules/core/composables\";\r\nimport { useLocalStorage } from \"@vueuse/core\";\r\nimport { APIResponse } from \"@/modules/core/types\";\r\nimport axios from \"axios\";\r\nimport Cookies from 'js-cookie';\r\nimport appConstants from \"../app.constants\";\r\nimport { ResetPasswordRequest, EmailVerificationRequest, FreelancerMember, FreelancerMemberAuthResponse, PrivacySettingsForm, ProductionHouseMember, ProductionHouseMemberAuthResponse, SignInRequest, SignUpRequest, UpdateCurrentPassword } from \"../types\";\r\nimport { FreelancerProfileDetailsFormFields, ProductionHouseProfileDetailsFormFields } from \"../components/registration/types\";\r\nimport { serialize } from 'object-to-formdata';\r\n\r\nconst storageKey = 'broadcast-portal.auth';\r\nconst rememberKey = 'broadcast-portal.auth.rememberMe';\r\n\r\nconst emptyAtsAuthState = () => ({\r\n productionHouseMember: null as ProductionHouseMember|null,\r\n freelanceMember: null as FreelancerMember|null,\r\n accessToken: '',\r\n})\r\n\r\nexport const useBroadcastPortalAuthStore = defineStore('auth', {\r\n state: () => {\r\n const rememberMe = useLocalStorage(\r\n rememberKey,\r\n true,\r\n { listenToStorageChanges: false }\r\n );\r\n const auth = useLocalStorage(\r\n storageKey,\r\n emptyAtsAuthState(),\r\n { listenToStorageChanges: false }\r\n );\r\n\r\n return {\r\n rememberMe,\r\n auth,\r\n isBusy: false\r\n }\r\n },\r\n getters: {\r\n member: state => state.auth.productionHouseMember || state.auth.freelanceMember,\r\n hasCompletedRegistration (): boolean {\r\n return this.member?.hasCompletedRegistration ?? false;\r\n },\r\n hasAccessToken (): string {\r\n return this.auth.accessToken ?? '';\r\n }\r\n },\r\n actions:{\r\n async logout (shouldReload = false, shouldClearParams = false) {\r\n this.$patch({\r\n auth: {\r\n accessToken: '',\r\n freelanceMember: null,\r\n productionHouseMember: null\r\n }\r\n });\r\n\r\n if (shouldReload) {\r\n if (shouldClearParams) {\r\n const url = new URL(window.location.href);\r\n url.search = \"\";\r\n return window.location.href = url.toString();\r\n }\r\n window.location.reload()\r\n }\r\n },\r\n async signInAsProductionHouse(payload: SignInRequest) {\r\n const request = axios.post>(\r\n `${endpoints.PROD_HOUSE}/sign-ins/username-pwd`,\r\n { email: payload.email, password: payload.password }\r\n )\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n auth: response.data.data\r\n })\r\n },\r\n async signInAsFreelancer(payload: SignInRequest) {\r\n const request = axios.post>(\r\n `${endpoints.FREELANCER}/sign-ins/username-pwd`,\r\n { email: payload.email, password: payload.password }\r\n )\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n auth: response.data.data\r\n })\r\n },\r\n async linkedinSignInAsProductionHouse (accessToken: string) {\r\n const memberType = 'productionHouseMember'\r\n\r\n const request = axios.post>(\r\n `/api/v1/${memberType}/sign-ins/linkedin`,\r\n { accessToken },\r\n );\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n auth: response.data.data\r\n })\r\n },\r\n async linkedinSignInAsFreelancer (accessToken: string) {\r\n const memberType = 'freelanceMember'\r\n\r\n const request = axios.post>(\r\n `/api/v1/${memberType}/sign-ins/linkedin`,\r\n { accessToken },\r\n );\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n auth: response.data.data\r\n })\r\n },\r\n async googleSignInAsProductionHouse (googleCredentials: string) {\r\n const memberType = 'productionHouseMember'\r\n\r\n const request = axios.post>(\r\n `/api/v1/${memberType}/sign-ins/google`,\r\n { googleCredentials },\r\n );\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n auth: response.data.data\r\n })\r\n },\r\n async googleSignInAsFreelancer (googleCredentials: string) {\r\n const memberType = 'freelanceMember'\r\n\r\n const request = axios.post>(\r\n `/api/v1/${memberType}/sign-ins/google`,\r\n { googleCredentials },\r\n );\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n auth: response.data.data\r\n })\r\n },\r\n async signUpEmailPwdAsProductionHouse ( payload: SignUpRequest ) {\r\n \r\n const request = axios.post>(\r\n `${endpoints.PROD_HOUSE}/sign-ups/username-pwd`,\r\n { \r\n name: payload.name,\r\n email: payload.email,\r\n password: payload.password,\r\n }\r\n )\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n auth: response.data.data\r\n });\r\n },\r\n async signUpEmailPwdAsFreelancer ( payload: SignUpRequest ) {\r\n \r\n const request = axios.post>(\r\n `${endpoints.FREELANCER}/sign-ups/username-pwd`,\r\n { \r\n name: payload.name,\r\n email: payload.email,\r\n password: payload.password,\r\n }\r\n )\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n auth: response.data.data\r\n });\r\n },\r\n async googleSignUpAsProductionHouse ( googleCredentials: string ) {\r\n \r\n const request = axios.post>(\r\n `${endpoints.PROD_HOUSE}/sign-ups/google`,\r\n { googleCredentials }\r\n )\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n auth: response.data.data\r\n });\r\n\r\n return response.data.data\r\n },\r\n async googleSignUpAsFreelancer ( googleCredentials: string ) {\r\n \r\n const request = axios.post>(\r\n `${endpoints.FREELANCER}/sign-ups/google`,\r\n { googleCredentials }\r\n )\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n auth: response.data.data\r\n });\r\n\r\n return response.data.data\r\n },\r\n async linkedinSignUpAsProductionHouse ( accessToken: string ) {\r\n \r\n const request = axios.post>(\r\n `${endpoints.PROD_HOUSE}/sign-ups/linkedin`,\r\n { accessToken }\r\n )\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n auth: response.data.data\r\n });\r\n\r\n return response.data.data\r\n },\r\n async linkedinSignUpAsFreelancer ( accessToken: string ) {\r\n \r\n const request = axios.post>(\r\n `${endpoints.FREELANCER}/sign-ups/linkedin`,\r\n { accessToken }\r\n )\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n auth: response.data.data\r\n });\r\n\r\n return response.data.data\r\n },\r\n async editProductionHouseProfileDetails (data: ProductionHouseProfileDetailsFormFields) {\r\n const formData = serialize(data);\r\n\r\n const request = axios.put>(\r\n `${endpoints.PROD_HOUSE}/profile-details`,\r\n formData,\r\n )\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n auth: {\r\n productionHouseMember: response.data.data\r\n }\r\n });\r\n },\r\n async editFreelancerProfileDetails (data: FreelancerProfileDetailsFormFields) {\r\n const formData = serialize(data);\r\n\r\n const request = axios.put>(\r\n `${endpoints.FREELANCER}/sign-ups/profile-details`,\r\n formData,\r\n )\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n auth: {\r\n freelanceMember: response.data.data\r\n }\r\n });\r\n },\r\n async loadMemberApprovalStatus() {\r\n this.isBusy = true;\r\n\r\n const request = axios.get>(\r\n `${endpoints.MEMBERS}`\r\n )\r\n\r\n const response = await useErrorHandling(request)\r\n\r\n this.member!.approvalStatus = response.data.data.approvalStatus\r\n \r\n if (response.data.data.approvalStatus?.name !== 'Rejected') {\r\n this.member!.approverRemarks = ''\r\n }\r\n else {\r\n this.member!.approverRemarks = response.data.data.approverRemarks\r\n }\r\n },\r\n async verifyEmailAdress(payload: EmailVerificationRequest) {\r\n const request = axios.post>(\r\n `${endpoints.MEMBERS}/verification-code`,\r\n { \r\n emailAddress: payload.emailAddress, \r\n verificationCode: payload.verificationCode \r\n }\r\n )\r\n\r\n const response = await useErrorHandling(request)\r\n\r\n return response.data.isSuccess.valueOf()\r\n },\r\n async productionHouseResetPasswordRequest (productionHouseMember: string) {\r\n const request = axios.post>(\r\n `${endpoints.PROD_HOUSE}/reset-password-request`,\r\n undefined,\r\n {params: { productionHouseMember }}\r\n )\r\n await useErrorHandling(request);\r\n },\r\n async freelancerResetPasswordRequest (freelanceEmail: string) {\r\n const request = axios.post>(\r\n `${endpoints.FREELANCER}/reset-password-request`,\r\n undefined,\r\n {params: { freelanceEmail }}\r\n )\r\n await useErrorHandling(request);\r\n },\r\n async resetOldPassword(payload: ResetPasswordRequest) {\r\n const request = axios.post>(\r\n `${endpoints.MEMBERS}/password-resets`,\r\n {\r\n email: payload.email,\r\n resetToken: payload.resetToken,\r\n newPassword: payload.newPassword\r\n }\r\n )\r\n await useErrorHandling(request)\r\n },\r\n async updateCurrentPassword (payload: UpdateCurrentPassword) {\r\n this.isBusy = false;\r\n const request = axios.put>(\r\n `/api/v1/password-change`,\r\n {\r\n currentPassword: payload.currentPassword,\r\n newPassword: payload.newPassword\r\n },\r\n { suppressAuthCheckRedirect: true }\r\n )\r\n\r\n await useErrorHandling(request)\r\n },\r\n saveToStorage() {\r\n localStorage.removeItem(storageKey);\r\n sessionStorage.removeItem(storageKey);\r\n Cookies.remove(appConstants.AUTH_TOKEN_COOKIE_NAME);\r\n\r\n const authJson = JSON.stringify(this.auth);\r\n if (this.rememberMe) {\r\n localStorage.setItem(storageKey, authJson);\r\n } else {\r\n sessionStorage.setItem(storageKey, authJson);\r\n }\r\n Cookies.set(appConstants.AUTH_TOKEN_COOKIE_NAME, this.auth.accessToken);\r\n },\r\n }\r\n})\r\n\r\nexport async function portalAuthPlugin() {\r\n const store = useBroadcastPortalAuthStore();\r\n \r\n // const cookieAccessToken = Cookies.get(appConstants.AUTH_TOKEN_COOKIE_NAME);\r\n // const storageAccessToken = store.auth.accessToken;\r\n\r\n // // No cookie and no storage access token\r\n // if (!cookieAccessToken && !storageAccessToken) return;\r\n\r\n // // Got cookie but no storage access token\r\n // if (cookieAccessToken && !storageAccessToken) {\r\n // console.log(cookieAccessToken, storageAccessToken)\r\n // // Try to restore auth data from cookie\r\n // // await store.checkCookieWithServer()\r\n // }\r\n\r\n store.$subscribe(() => {\r\n store.saveToStorage();\r\n })\r\n}","import { defineStore } from \"pinia\";\r\nimport { Country, Gender, IdentityType, Nationality, BusinessType, DurationOfWorkMeasurement, ApprovalStatus } from '@/modules/broadcast-portal-post-login/types';\r\n\r\nexport const useCommonDataStore = defineStore('common-data', {\r\n state: () => ({\r\n countries: [] as Array,\r\n genders: [] as Array,\r\n identityTypes: [] as Array,\r\n nationalities: [] as Array,\r\n businessTypes: [] as Array,\r\n durationOfWorkMeasurements: [] as Array,\r\n approvalStatuses: [] as Array,\r\n }),\r\n})","import { APIResponse, PaginatedData } from \"@/modules/core/types\";\r\nimport { defineStore } from \"pinia\";\r\nimport { IndividualService, PackagedService } from \"../types/services\";\r\nimport axios from \"axios\";\r\nimport endpoints from \"../endpoints\";\r\nimport { useErrorHandling } from \"@/modules/core/composables\";\r\n\r\nexport const useServicesStore = defineStore('services', {\r\n state: () => ({\r\n filters: {\r\n searchTerm: '',\r\n pageNumber: 1,\r\n pageSize: 9,\r\n },\r\n paginatedResults: null as PaginatedData|null,\r\n\r\n isBusy: false\r\n }),\r\n actions: {\r\n async getServicesResult (suppressAuthToast = false) {\r\n this.isBusy = true;\r\n let params: any = { ...this.filters }\r\n\r\n try{\r\n const request = axios.get>>(\r\n `${endpoints.MEMBERS}/service-offerings`,\r\n { params }\r\n )\r\n const response = await (!suppressAuthToast ? useErrorHandling(request) : request);\r\n\r\n this.$patch({\r\n paginatedResults: response.data.data\r\n })\r\n }\r\n catch (error) {\r\n console.log(error);\r\n }\r\n finally {\r\n this.isBusy = false;\r\n }\r\n },\r\n }\r\n}) ","import { BaseContent } from \"@/modules/core/types\";\r\nimport { ApprovalStatus } from \"./auth\";\r\n\r\nexport const isPackageService = (service: any): service is PackagedService => {\r\n return 'ncContentTypeAlias' in service && service.ncContentTypeAlias === 'packageServiceOffering';\r\n}\r\n\r\nexport const isIndividualService = (service: any): service is IndividualService => {\r\n return 'ncContentTypeAlias' in service && service.ncContentTypeAlias === 'individualServiceOffering';\r\n}\r\n\r\nexport interface ServiceOffering {\r\n key: string;\r\n ncContentTypeAlias: string;\r\n createDateTime: string;\r\n lastUpdateDateTime: string;\r\n isDeleted: boolean;\r\n showPriceInPortal: boolean;\r\n showOfferingInPortal: boolean;\r\n approvalStatus: ApprovalStatus;\r\n approverUserAccountId: number;\r\n price: number;\r\n description: string;\r\n durationOfWork: number;\r\n durationOfWorkMeasurement: DurationOfWorkMeasurement;\r\n durationIsDependentOnProject: boolean;\r\n}\r\n\r\nexport interface PackagedService extends ServiceOffering {\r\n packageName: string;\r\n services: Array;\r\n ncContentTypeAlias: 'packageServiceOffering';\r\n}\r\n\r\nexport interface IndividualService extends ServiceOffering {\r\n service: ProductionService;\r\n serviceOfferingKey: string; \r\n ncContentTypeAlias: 'individualServiceOffering';\r\n}\r\n\r\nexport interface DurationOfWorkMeasurement extends BaseContent {}\r\n\r\nexport interface ProductionService extends BaseContent {}\r\n\r\nexport interface UpdatePackageServiceRequest {\r\n serviceOfferingKey: string;\r\n price: number;\r\n durationOfWork: number;\r\n durationOfWorkMeasurementKey: string;\r\n durationIsProjectDependent: boolean;\r\n packageName: string;\r\n productionServiceKeys: Array;\r\n description: string;\r\n}\r\n\r\nexport interface UpdateIndividualServiceRequest {\r\n serviceOfferingKey: string;\r\n price: number;\r\n durationOfWork: number;\r\n durationOfWorkMeasurementKey: string;\r\n durationIsProjectDependent: boolean;\r\n productionServiceKey: string;\r\n}\r\n\r\nexport interface CreatePackageServiceRequest {\r\n price: number;\r\n durationOfWork: number;\r\n durationOfWorkMeasurementKey: string;\r\n durationIsProjectDependent: boolean;\r\n packageName: string;\r\n productionServiceKeys: Array;\r\n description: string;\r\n}\r\n\r\nexport interface CreateIndividualServiceRequest {\r\n price: number;\r\n durationOfWork: number;\r\n durationOfWorkMeasurementKey: string;\r\n durationIsProjectDependent: boolean;\r\n productionServiceKey: string;\r\n description: string;\r\n}\r\n","import { defineStore } from \"pinia\";\r\nimport { CreatePackageServiceRequest, CreateIndividualServiceRequest, IndividualService, PackagedService, ProductionService, UpdatePackageServiceRequest, UpdateIndividualServiceRequest, isPackageService, isIndividualService } from \"../types/services\";\r\nimport { useServicesStore } from \"./services\";\r\nimport axios from \"axios\";\r\nimport { APIResponse } from \"@/modules/core/types\";\r\nimport endpoints from \"../endpoints\";\r\nimport { useErrorHandling } from \"@/modules/core/composables\";\r\n\r\nexport const useServiceStore = defineStore('service', {\r\n state: () => ({\r\n serviceId: '',\r\n service: null as PackagedService|IndividualService|null,\r\n productionService: null as ProductionService|null,\r\n isBusy: false\r\n }),\r\n getters: {\r\n packageService: state => isPackageService(state.service) ? state.service : null,\r\n individualService: state => isIndividualService(state.service) ? state.service : null,\r\n },\r\n actions: {\r\n async getProductionServices () {\r\n const request = axios.get>(\r\n `${endpoints.MEMBERS}/production-services`\r\n )\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch ({\r\n productionService: response.data.data\r\n })\r\n },\r\n async loadById (serviceId: string) {\r\n this.$patch({\r\n serviceId: '',\r\n service: null,\r\n isBusy: true\r\n })\r\n\r\n const request = axios.get>(\r\n `${endpoints.MEMBERS}/service-offerings/${serviceId}`,\r\n )\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n // const service = servicesStore.paginatedResults.items.find(x => x.key === serviceId);\r\n\r\n this.$patch({\r\n serviceId,\r\n service: response.data.data,\r\n isBusy: false\r\n })\r\n },\r\n async updatePackageService (data: UpdatePackageServiceRequest) {\r\n this.isBusy = true;\r\n\r\n const request = axios.put>(\r\n `${endpoints.MEMBERS}/service-offerings/package`,\r\n data\r\n )\r\n\r\n const response = await useErrorHandling(request)\r\n\r\n this.$patch({\r\n service: response.data.data,\r\n isBusy: false\r\n })\r\n },\r\n async updateIndividualService (data: UpdateIndividualServiceRequest) {\r\n this.isBusy = true;\r\n\r\n const request = axios.put>(\r\n `${endpoints.MEMBERS}/service-offerings/individual`,\r\n data\r\n )\r\n\r\n const response = await useErrorHandling(request)\r\n\r\n this.$patch({\r\n service: response.data.data,\r\n isBusy: false\r\n })\r\n },\r\n async createPackageService (data: CreatePackageServiceRequest) {\r\n const request = axios.post>(\r\n `${endpoints.MEMBERS}/service-offerings/package`,\r\n data\r\n )\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n service: response.data.data\r\n })\r\n\r\n return response.data.data\r\n },\r\n async createIndividualService (data: CreateIndividualServiceRequest) {\r\n const request = axios.post>(\r\n `${endpoints.MEMBERS}/service-offerings/individual`,\r\n data\r\n )\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n service: response.data.data\r\n })\r\n\r\n return response.data.data\r\n }\r\n }\r\n})","import { APIResponse, PaginatedData } from \"@/modules/core/types\";\r\nimport { defineStore } from \"pinia\";\r\nimport { Portfolio, PortfolioListing } from \"../types/portfolio\";\r\nimport axios from \"axios\";\r\nimport { useErrorHandling } from \"@/modules/core/composables\";\r\nimport endpoints from \"../endpoints\";\r\n\r\nexport const usePortfoliosStore = defineStore('portfolios', {\r\n state: () => ({\r\n portfolioFilters: {\r\n searchTerms: '',\r\n pageNumber: 1,\r\n pageSize: 9,\r\n },\r\n portfolioPaginatedResults: null as PaginatedData|null,\r\n isBusy: false\r\n }),\r\n actions: {\r\n async getPortfolioResult (suppressAuthToast = false) {\r\n this.isBusy = true;\r\n let params: any = { ...this.portfolioFilters }\r\n\r\n try{\r\n const request = axios.get>>(\r\n `${endpoints.MEMBERS}/portfolio-showcases`,\r\n { params }\r\n )\r\n const response = await (!suppressAuthToast ? useErrorHandling(request) : request);\r\n\r\n this.$patch({\r\n portfolioPaginatedResults: response.data.data\r\n })\r\n }\r\n catch (error) {\r\n console.log(error);\r\n }\r\n finally {\r\n this.isBusy = false;\r\n }\r\n }\r\n }\r\n})","import { APIResponse, PaginatedData } from \"@/modules/core/types\";\r\nimport { defineStore } from \"pinia\";\r\nimport { Portfolio, CreatePortfolioRequest, UpdatePortfolioRequest, PortfolioListing } from \"../types/portfolio\";\r\nimport axios from \"axios\";\r\nimport { useErrorHandling } from \"@/modules/core/composables\";\r\nimport endpoints from \"../endpoints\";\r\nimport { serialize } from \"object-to-formdata\";\r\nimport { usePortfoliosStore } from \"./portfolios\";\r\nimport { Video } from \"../types\";\r\n\r\nexport const usePortfolioStore = defineStore('portfolio', {\r\n state: () => ({\r\n portfolioKey: '',\r\n portfolio: null as Portfolio|null,\r\n videoDuration: 0,\r\n isBusy: false,\r\n isLoadingVideo: false\r\n }),\r\n actions: {\r\n async loadPortfolioById (portfolioKey: string) {\r\n this.$patch({\r\n portfolioKey: '',\r\n portfolio: null,\r\n isBusy: true\r\n })\r\n\r\n const request = axios.get>(\r\n `${endpoints.MEMBERS}/portfolio-showcases/${portfolioKey}`,\r\n )\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n portfolioKey,\r\n portfolio: response.data.data.portfolioShowcase,\r\n videoDuration: response.data.data.videoDurationInSeconds,\r\n isBusy: false\r\n })\r\n\r\n return response.data.data.portfolioShowcase\r\n \r\n },\r\n async createNewPortfolio (data: CreatePortfolioRequest) {\r\n this.isBusy = true;\r\n const formData = serialize(data);\r\n\r\n const request = axios.post>(\r\n `${endpoints.MEMBERS}/portfolio-showcases`,\r\n formData\r\n )\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n portfolio: response.data.data,\r\n isBusy: false\r\n })\r\n },\r\n async updateCurrentPortfolio (data: UpdatePortfolioRequest) {\r\n this.isBusy = true;\r\n const formData = serialize(data);\r\n\r\n const request = axios.put>(\r\n `${endpoints.MEMBERS}/portfolio-showcases`,\r\n formData\r\n )\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n portfolio: response.data.data,\r\n isBusy: false\r\n })\r\n },\r\n async getPortfolioVideoTrailer (videoId: string) {\r\n this.isLoadingVideo = true\r\n const request = axios.get>(\r\n `${endpoints.MEMBERS}/portfolio-showcases/video-uploads/signed-tokens?videoId=${videoId}`,\r\n )\r\n\r\n const response = await useErrorHandling(request)\r\n\r\n this.isLoadingVideo = false\r\n return response.data.data\r\n },\r\n async getPortfolioVideoTrailerDetails (videoUrl: string) {\r\n this.isLoadingVideo = true\r\n const request = axios.get>(\r\n `/api/v1/video-uploads/details?videoUrl=${videoUrl}`\r\n )\r\n\r\n const response = await useErrorHandling(request)\r\n\r\n this.isLoadingVideo = false\r\n return response.data.data.result[0]\r\n }\r\n }\r\n})","import { APIResponse, PaginatedData } from \"@/modules/core/types\";\r\nimport { defineStore } from \"pinia\";\r\nimport { AdvertisementListing } from \"../types\";\r\nimport axios from \"axios\";\r\nimport endpoints from \"@/modules/broadcast-portal/endpoints\";\r\nimport { useErrorHandling } from \"@/modules/core/composables\";\r\n\r\nexport const useAdvertisementsStore = defineStore('advertisementsStore', {\r\n state: () => ({\r\n advertisementFilters: {\r\n searchTerms: '',\r\n pageNumber: 1,\r\n pageSize: 9,\r\n },\r\n advertisementPaginatedResults: null as PaginatedData|null,\r\n isBusy: false\r\n }),\r\n actions: {\r\n async loadAdvertisement (suppressAuthToast = false) {\r\n this.isBusy = true;\r\n let params: any = { ...this.advertisementFilters }\r\n\r\n try{\r\n const request = axios.get>>(\r\n `${endpoints.MEMBERS}/advertisements `,\r\n { params }\r\n )\r\n const response = await (!suppressAuthToast ? useErrorHandling(request) : request);\r\n\r\n this.$patch({\r\n advertisementPaginatedResults: response.data.data\r\n })\r\n }\r\n catch (error) {\r\n console.log(error);\r\n }\r\n finally {\r\n this.isBusy = false;\r\n }\r\n }\r\n }\r\n})","import { defineStore } from \"pinia\";\r\nimport { AdvertisementListing, UpdateAdvertisenentResponse } from \"../types\";\r\nimport { APIResponse } from \"@/modules/core/types\";\r\nimport axios from \"axios\";\r\nimport endpoints from \"@/modules/broadcast-portal/endpoints\";\r\nimport { useErrorHandling } from \"@/modules/core/composables\";\r\nimport { serialize } from \"object-to-formdata\";\r\n\r\nexport const useAdvertisementStore = defineStore('advertisementStore', {\r\n state: () => ({\r\n advertisementKey: '',\r\n advertisement: null as AdvertisementListing|null,\r\n isBusy: false,\r\n }),\r\n actions: {\r\n async loadById (advertisementKey: string) {\r\n this.$patch({\r\n advertisementKey: '',\r\n advertisement: null,\r\n isBusy: true,\r\n })\r\n\r\n const request = axios.get>(\r\n `${endpoints.MEMBERS}/advertisements/${advertisementKey}`\r\n )\r\n\r\n const response = await useErrorHandling(request)\r\n\r\n this.$patch({\r\n advertisementKey,\r\n advertisement: response.data.data,\r\n isBusy: false\r\n })\r\n\r\n return response.data.data\r\n },\r\n async updateCurrentAdvertisement (data: UpdateAdvertisenentResponse) {\r\n this.isBusy = true;\r\n const formData = serialize(data, {noFilesWithArrayNotation: true});\r\n\r\n const request = axios.put>(\r\n `${endpoints.MEMBERS}/advertisements`,\r\n formData\r\n )\r\n\r\n const response = await useErrorHandling(request);\r\n\r\n this.$patch({\r\n advertisement: response.data.data,\r\n isBusy: false\r\n })\r\n }\r\n }\r\n})","import { createPinia } from 'pinia';\r\nimport { portalAuthPlugin } from './auth';\r\n\r\nconst pinia = createPinia()\r\n\r\npinia.use(portalAuthPlugin)\r\n\r\nexport default pinia;\r\n\r\nexport * from './auth';\r\nexport * from './common-data';\r\nexport * from './services';\r\nexport * from './service';\r\nexport * from './portfolios';\r\nexport * from './portfolio';\r\nexport * from './advertisements';\r\nexport * from './advertisement';\r\n"],"names":["API_BASE_URL_V1","endpoints$1","endpoints","assign","target","i","source","key","defaultConverter","value","init","converter","defaultAttributes","set","attributes","stringifiedAttributes","attributeName","get","cookies","jar","parts","foundKey","api","appConstants","getMetaTagValue","isUndefined","isNull","isBoolean","isObject","isArray","isDate","isBlob","isReactNative","isFile","initCfg","serialize","obj","cfg","fd","pre","index","prop","src","storageKey","rememberKey","emptyAtsAuthState","useBroadcastPortalAuthStore","defineStore","rememberMe","useLocalStorage","auth","state","_a","shouldReload","shouldClearParams","url","payload","request","axios","response","useErrorHandling","accessToken","memberType","googleCredentials","data","formData","productionHouseMember","freelanceEmail","Cookies","authJson","portalAuthPlugin","store","useCommonDataStore","useServicesStore","suppressAuthToast","params","error","isPackageService","service","isIndividualService","useServiceStore","serviceId","usePortfoliosStore","usePortfolioStore","portfolioKey","videoId","videoUrl","useAdvertisementsStore","useAdvertisementStore","advertisement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