{"version":3,"file":"main-BXSFdR-E.js","sources":["../../../app/javascript/apps/customer_page/components/wishlist/product.vue","../../../app/javascript/apps/customer_page/icons/whatsapp.svg?raw","../../../app/javascript/apps/customer_page/services/share_wishlist.js","../../../app/javascript/apps/customer_page/components/wishlist/multilist_dropdown_line.vue","../../../app/javascript/apps/customer_page/components/wishlist/actions.vue","../../../app/javascript/apps/customer_page/components/wishlist/main.vue"],"sourcesContent":["\n\n\n","export default \"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n\"","import '@CustomerPage/css/wishlist_share.scss'\nimport facebook from '@SocialLogins/icons/color/facebook.svg?raw'\nimport twitter from '@SocialLogins/icons/color/twitter.svg?raw'\nimport whatsapp from '@CustomerPage/icons/whatsapp.svg?raw'\nimport copy from '@CustomerPage/icons/copy.svg?raw'\nimport fetchWrapper from '@CustomerPage/services/fetch_wrapper'\nimport socialShare from '@CustomerPage/services/social_share.js'\n\nconst SHARE_WISHLIST = `\n mutation shareWishlist($input: ShareWishlistInput!) {\n shareWishlist(input: $input) {\n error\n slug\n }\n }\n`\n\nconst APP_PROXI_URL = `${window.frcp.appProxy}/api/graphql`\nconst APP_URL = `${window.frcp.httpsUrl}/api/graphql`\nexport default class ShareModal {\n constructor({\n title = 'Share Wishlist',\n socialMediaTitle = 'Share on Social Media',\n copyUrlTitle = 'Copy shareable link',\n copySuccess = 'Copy',\n shareWishlistText = 'Check my wishlist',\n customerId = window.frcp.wishlist.profile.id,\n froonzeToken = window.frcp.wishlist.profile.froonzeToken,\n reshareText = \"You're sharing the list of another user\",\n reshareBtnText = 'Share yours',\n onSharePage = false,\n sameCustomer = false,\n settings = {},\n appIds = window.frcp.wishlist.socialAppIds,\n handleError = function (e) { console.log(e) },\n fetchSharedUrlCB = function (url) { console.log(url) }\n } = {}) {\n this.title = title\n this.socialMediaTitle = socialMediaTitle\n this.copyUrlTitle = copyUrlTitle\n this.customerId = customerId\n this.froonzeToken = froonzeToken\n this.handleError = handleError\n this.fetchSharedUrlCB = fetchSharedUrlCB\n this.copySuccess = copySuccess\n this.settings = settings\n this.appIds = appIds\n this.shareWishlistText = shareWishlistText\n this.reshareText = reshareText\n this.reshareBtnText = reshareBtnText\n this.onSharePage = onSharePage\n this.sameCustomer = sameCustomer\n }\n\n open({\n items = window.frcp.wishlist.items,\n sharedUrl = '',\n list = ''\n }) {\n this.items = items\n this.sharedUrl = sharedUrl\n this.list = list\n this.appendHtml()\n this.showPopup()\n this.fetchUrl()\n }\n\n showPopup() {\n document.body.classList.add('frcp-popup-open')\n document.body.classList.add('frcp-popup-open--swall')\n document.querySelector('.frcp-share-wishlist').parentElement.classList.add('frcp-popup-wrapper--open')\n }\n\n popupClose() {\n document.body.classList.remove('frcp-popup-open')\n document.body.classList.remove('frcp-popup-open--swall')\n document.querySelector('.frcp-popup-wrapper--open').classList.remove('frcp-popup-wrapper--open')\n }\n\n fetchUrl() {\n const sharePopupElement = document.querySelector('.frcp-share-wishlist')\n if (this.sharedUrl) {\n sharePopupElement.querySelector('.frcp-share-wishlist__copy-url').innerText = this.sharedUrl\n return;\n }\n\n sharePopupElement.classList.add('frcp-share-wishlist--loading')\n\n const url = window.frcp.useAppProxi ? APP_PROXI_URL : APP_URL\n const input = {\n customerExternalId: this.customerId,\n froonzeToken: this.froonzeToken,\n items: this.items,\n list: this.list,\n }\n\n const body = {\n query: SHARE_WISHLIST,\n variables: { input: input },\n }\n\n return fetchWrapper.jsonClient(url, {\n method: 'POST',\n body: body,\n headers: {\n 'x-shop-domain': window.frcp.shopDomain,\n 'x-shop-token': window.frcp.shopToken,\n },\n })\n .then(response => {\n if (response.data.shareWishlist.error) {\n this.handleError(response.data.shareWishlist.error)\n return\n }\n\n const url = `${window.location.origin}${window.frcp.appProxy}/wishlist/${response.data.shareWishlist.slug}`\n sharePopupElement.querySelector('.frcp-share-wishlist__copy-url').innerText = url\n this.sharedUrl = url\n this.fetchSharedUrlCB(url)\n\n sharePopupElement.classList.remove('frcp-share-wishlist--loading')\n }).catch(error => {\n this.handleError('Something went wrong. Please reload the page and try again.')\n })\n }\n\n setupEvents() {\n const popupCloseElement = document.querySelector('.frcp-popup__close')\n const copyElement = document.querySelector('.frcp-share-wishlist__copy')\n\n popupCloseElement.addEventListener(\"click\", this.popupClose)\n copyElement.addEventListener(\"click\", this.copy.bind(this))\n document.addEventListener('click', this.share.bind(this))\n }\n\n copy() {\n navigator.clipboard.writeText(this.sharedUrl)\n\n const copySuccess = document.querySelector('.frcp-share-wishlist__copy-success')\n copySuccess.classList.add('frcp-share-wishlist__copy-success--show')\n\n setTimeout(() => {\n copySuccess.classList.remove('frcp-share-wishlist__copy-success--show')\n }, 2000)\n }\n\n appendHtml() {\n const exisitngModal = document.querySelector('.frcp-share-wishlist')\n if (exisitngModal) return;\n\n let wrapper = document.createElement('div')\n wrapper.className = 'frcp-popup-wrapper frcp-popup-wrapper--swall'\n\n let popup = `\n
\n
\n
${this.title}
\n
×
\n
\n
\n ${this.reshareElement()}\n
\n
\n
\n ${this.socialMediaSection()}\n
\n
${this.copyUrlTitle}
\n
\n
${this.sharedUrl}
\n
\n \n ${copy}\n \n \n ${this.copySuccess}\n
\n
\n
\n
\n
\n `\n\n wrapper.innerHTML = popup\n document.body.append(wrapper)\n this.setupEvents()\n }\n\n reshareElement() {\n if (!this.onSharePage || this.sameCustomer) return '';\n const reshareLink = this.customerId ? `${this.reshareBtnText}` : ''\n return `
${this.reshareText} ${reshareLink}
`\n }\n\n socialMediaSection() {\n const socialMediaEnabled = this.settings.facebook || this.settings.twitter || this.settings.whatsapp\n if (!socialMediaEnabled) return ''\n\n const extraClass = (!this.settings.facebook && !this.settings.twitter) ? 'frcp-share-wishlist__section--mobile-only' : ''\n return `\n
\n
${this.socialMediaTitle}
\n
\n ${this.shareButtonsHtml()}\n
\n
\n `\n }\n shareButtonsHtml() {\n let html = ''\n\n if (this.settings.facebook) {\n html += ``\n }\n if (this.settings.twitter) {\n html += ``\n }\n if (this.settings.whatsapp) {\n html += `
${whatsapp}
`\n }\n\n return html\n }\n\n share(event) {\n const shareElement = event.target.closest('.frcp-share-wishlist__icon')\n if (!shareElement || !this.sharedUrl) return;\n\n socialShare.share({\n socialName: shareElement.dataset.type,\n url: this.sharedUrl,\n textContent: this.shareWishlistText,\n })\n }\n}\n","\n\n\n","\n\n\n","\n\n\n\n"],"names":["_sfc_main","ProductCard","mapState","state","quantity","selectedVariant","body","response","e","customMethod","input","requester","error","self","objectUtils","result","newCount","elem","_createBlock","_component_product_card","$props","$data","_ctx","$options","whatsapp","SHARE_WISHLIST","APP_PROXI_URL","APP_URL","ShareModal","title","socialMediaTitle","copyUrlTitle","copySuccess","shareWishlistText","customerId","froonzeToken","reshareText","reshareBtnText","onSharePage","sameCustomer","settings","appIds","handleError","fetchSharedUrlCB","url","items","sharedUrl","list","sharePopupElement","fetchWrapper","popupCloseElement","copyElement","wrapper","popup","copy","reshareLink","html","facebook","twitter","event","shareElement","socialShare","Icon","SmartButton","wishlistStorage","_hoisted_1","_hoisted_2","_hoisted_3","_openBlock","_createElementBlock","_createElementVNode","_toDisplayString","_createVNode","_component_smart_button","_cache","$event","_withCtx","_component_icon","_normalizeClass","MultilistDropdownLine","enabled","_hoisted_6","args","_createCommentVNode","_hoisted_4","_Fragment","_renderList","_component_multilist_dropdown_line","_hoisted_5","_createTextVNode","PER_PAGE","EmptyView","Product","Pagination","LoadingSpinner","Actions","item","loginLink","page","scrollIntoView","productLoader","product","handle","startIndex","endIndex","eventDispatcher","_component_actions","_component_empty_view","_hoisted_7","_component_loading_spinner","_hoisted_8","_component_product","_component_pagination"],"mappings":"4tBAwBE,MAAKA,EAAU,CACb,WAAY,CAAE,YAAAC,CAAa,EAC3B,SAAU,CACR,GAAGC,EAAS,CACV,SAAUC,GAASA,EAAM,SAAS,QACpC,CAAC,CACF,EACD,MAAO,CACL,QAAS,OACT,UAAW,OACX,Q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