{"version":3,"sources":["webpack:///./node_modules/file-saver/dist/FileSaver.min.js","webpack:///./src/components/widgets/Scale.vue","webpack:///src/components/widgets/Scale.vue","webpack:///./src/components/widgets/Scale.vue?76a8","webpack:///./src/components/widgets/Scale.vue?e000","webpack:///./src/components/widgets/Scale.vue?ace0","webpack:///./src/utils/clickAction.js","webpack:///./src/utils/setStyles.js","webpack:///./src/utils/fetchFont.js"],"names":["this","b","a","autoBom","console","warn","test","type","Blob","c","d","XMLHttpRequest","open","responseType","onload","g","response","onerror","error","send","status","e","dispatchEvent","MouseEvent","document","createEvent","initMouseEvent","window","f","self","global","navigator","userAgent","saveAs","HTMLAnchorElement","prototype","h","i","URL","webkitURL","j","createElement","name","download","rel","href","origin","location","target","createObjectURL","setTimeout","revokeObjectURL","msSaveOrOpenBlob","title","body","innerText","HTMLElement","safari","FileReader","k","onloadend","result","replace","readAsDataURL","l","m","module","exports","render","_vm","_c","_self","ref","staticClass","style","itemStyles","_l","range","n","key","class","active","activeScore","on","$event","onClick","_v","_s","staticRenderFns","props","data","computed","widget","orientation","methods","widgetType","widgetName","actionType","actionData","idx","step","updateRespond","mounted","fetchFont","component","async","clickAction","widgetIdx","configs","linkTarget","pageTarget","attachmentId","url","store","dispatch","visible","res","apollo","query","GET_ATTACHMENT","variables","id","attachment","upload_my_attachment","markStep","content","_url","match","click","getters","isValid","onChangePage","stepsLength","currentStep","respond","interactionId","respondId","length","mutate","mutation","UPDATE_RESPOND","device","myInteractionId","then","LOG","userId","action","commit","styles","top","prop","value","v","left","width","height","angle","s","transform","scaleX","scaleY","originX","transformOrigin","originY","shadow","offsetX","offsetY","blur","color","fill","fontSize","fontWeight","fontStyle","lineHeight","textAlign","strokeWidth","w","stroke","underline","strokeDashArray","activeBgColor","bgColor","fontColor","setStyles","setGeneral","stylesObject","param","Object","entries","setTypeStyles","existProp","Array","isArray","forEach","p","avalableFontsList","fontLink","fontName","owner","customFonts","includes","new_font","FontFace","loaded_face","load","fonts","add","Vue","$apollo","G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nB1F,OAAMC,SAAS,gBAAiBmF,GAIpC,IAAKE,EAAY9D,OAAQ,CACvB,MAAM,KAAE/C,SAAeqH,aAAIC,QAAQ1F,MAAM,CACvCA,MAAO2F,OACPzF,UAAW,CACT0F,MAAOZ,KAGXrF,OAAMC,SAAS,oBAAqBxB,EAAKyH,gBACzCZ,EAActF,OAAMgB,QAAQ,eAG9B,IAAImF,GAAW,EACf,GAAIb,EAAY9D,OACd,IAAK,IAAI7G,KAAK2K,EAAa,CACzB,MAAMc,EAAQzL,EAAEc,KAAKoB,QAAQ,eAAgB,IAC7C,GAAIuJ,IAAUhB,EAAU,CACtB,MAAMI,EAAW,IAAIC,SAASL,EAAW,OAAMzK,EAAEiG,YAC3C8E,QAAoBF,EAASG,OACnCpL,SAASqL,MAAMC,IAAIH,GACnB1F,OAAMC,SAAS,gBAAiBmF,GAChCe,GAAW,GAIjB,IAAIA,EAGJ,IACE,MAAM,KAAE1H,SAAeqH,aAAIC,QAAQ1F,MAAM,CACvCA,MAAOgG,OACP9F,UAAW,CACT9E,KAAM2J,KAGJkB,EAAO7H,EAAK6H,KAAK,GACvB,GAAIA,EAAM,CACR,MAAMC,EAAOC,8BACPC,EAAOD,0DACPE,EAAQF,uDAEdF,EAAK1F,QAAQ/D,QAAQ0J,EAAMG,GAAO7J,QAAQ4J,EAAMC,GAEhD,MAAMlB,EAAW,IAAIC,SAASL,EAAW,OAAMkB,EAAK1F,YAC9C8E,QAAoBF,EAASG,OACnCpL,SAASqL,MAAMC,IAAIH,GACnB1F,OAAMC,SAAS,gBAAiBmF,QAC3BjM,QAAQwN,IAAI,sBACnB,MAAO1M,GACPd,QAAQwN,IAAI1M","file":"js/chunk-478833ec.196a04a7.js","sourcesContent":["(function(a,b){if(\"function\"==typeof define&&define.amd)define([],b);else if(\"undefined\"!=typeof exports)b();else{b(),a.FileSaver={exports:{}}.exports}})(this,function(){\"use strict\";function b(a,b){return\"undefined\"==typeof b?b={autoBom:!1}:\"object\"!=typeof b&&(console.warn(\"Deprecated: Expected third argument to be a object\"),b={autoBom:!b}),b.autoBom&&/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(a.type)?new Blob([\"\\uFEFF\",a],{type:a.type}):a}function c(a,b,c){var d=new XMLHttpRequest;d.open(\"GET\",a),d.responseType=\"blob\",d.onload=function(){g(d.response,b,c)},d.onerror=function(){console.error(\"could not download file\")},d.send()}function d(a){var b=new XMLHttpRequest;b.open(\"HEAD\",a,!1);try{b.send()}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent(\"click\"))}catch(c){var b=document.createEvent(\"MouseEvents\");b.initMouseEvent(\"click\",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var f=\"object\"==typeof window&&window.window===window?window:\"object\"==typeof self&&self.self===self?self:\"object\"==typeof global&&global.global===global?global:void 0,a=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=f.saveAs||(\"object\"!=typeof window||window!==f?function(){}:\"download\"in HTMLAnchorElement.prototype&&!a?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement(\"a\");g=g||b.name||\"download\",j.download=g,j.rel=\"noopener\",\"string\"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target=\"_blank\")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href)},4E4),setTimeout(function(){e(j)},0))}:\"msSaveOrOpenBlob\"in navigator?function(f,g,h){if(g=g||f.name||\"download\",\"string\"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else{var i=document.createElement(\"a\");i.href=f,i.target=\"_blank\",setTimeout(function(){e(i)})}}:function(b,d,e,g){if(g=g||open(\"\",\"_blank\"),g&&(g.document.title=g.document.body.innerText=\"downloading...\"),\"string\"==typeof b)return c(b,d,e);var h=\"application/octet-stream\"===b.type,i=/constructor/i.test(f.HTMLElement)||f.safari,j=/CriOS\\/[\\d]+/.test(navigator.userAgent);if((j||h&&i||a)&&\"undefined\"!=typeof FileReader){var k=new FileReader;k.onloadend=function(){var a=k.result;a=j?a:a.replace(/^data:[^;]*;/,\"data:attachment/file;\"),g?g.location.href=a:location=a,g=null},k.readAsDataURL(b)}else{var l=f.URL||f.webkitURL,m=l.createObjectURL(b);g?g.location=m:location.href=m,g=null,setTimeout(function(){l.revokeObjectURL(m)},4E4)}});f.saveAs=g.saveAs=g,\"undefined\"!=typeof module&&(module.exports=g)});\n\n//# sourceMappingURL=FileSaver.min.js.map","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:\"scaleContent\",staticClass:\"scale-widget-container\",style:(_vm.itemStyles)},_vm._l((_vm.range),function(n){return _c('div',{key:n,staticClass:\"scale-content\",class:{ active: n === _vm.activeScore },on:{\"click\":function($event){return _vm.onClick(n)}}},[_vm._v(\" \"+_vm._s(n)+\" \")])}),0)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Scale.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Scale.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Scale.vue?vue&type=template&id=a7aec8c8&scoped=true&\"\nimport script from \"./Scale.vue?vue&type=script&lang=js&\"\nexport * from \"./Scale.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Scale.vue?vue&type=style&index=0&id=a7aec8c8&prod&scoped=true&lang=css&\"\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 \"a7aec8c8\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Scale.vue?vue&type=style&index=0&id=a7aec8c8&prod&scoped=true&lang=css&\"","import { UPDATE_RESPOND, GET_ATTACHMENT, LOG } from \"@/gql/\";\nimport { apolloClient as apollo } from \"@/plugins/vue-apollo\";\nimport store from \"@/store\";\nimport { saveAs } from \"file-saver\";\n\nexport default async function clickAction({\n widget,\n widgetName,\n widgetIdx,\n} = {}) {\n const widgetType = widget.name;\n const actionType = widget.configs.actionType;\n const linkTarget = widget.configs.linkTarget;\n const pageTarget = widget.configs.pageTarget;\n const attachmentId = widget.configs.attachmentId;\n const url = widget.configs.url;\n // const socialNetwork = widget.configs.socialNetwork;\n if (actionType === \"no action\") return;\n else if (actionType === \"upload file\") {\n store.dispatch(\"showPopup\", {\n visible: true,\n type: \"uploadPopup\",\n data: {\n widgetIdx,\n widgetName,\n actionType,\n widgetType,\n },\n });\n // } else if (actionType === \"social sharing\") {\n // await store.dispatch(\"updateSocialNetworkForSharing\", socialNetwork);\n // const socialShareBtn = document.querySelector(\"#social-share-btn\");\n // if (!socialShareBtn) return;\n // socialShareBtn.click();\n } else if (actionType === \"download file\") {\n if (!attachmentId) return;\n const res = await apollo.query({\n query: GET_ATTACHMENT,\n variables: {\n id: attachmentId,\n },\n });\n const attachment = res.data.upload_my_attachment[0];\n if (!attachment) return;\n markStep(widgetType, widgetIdx, widgetName, actionType, { attachment });\n await updateRespond();\n saveAs(attachment.content, attachment.name);\n // const a = document.createElement(\"a\");\n // a.target = \"_blank\";\n // a.href = attachment.content;\n // a.setAttribute(\"download\", \"123.xls\");\n // console.log(a, attachment);\n // a.click();\n } else if (actionType === \"external link\") {\n if (!url) return;\n markStep(widgetType, widgetIdx, widgetName, actionType, { url });\n await updateRespond();\n const a = document.createElement(\"a\");\n const _url = url.match(/(http|https):\\/\\//) ? url : `https://${url}`;\n a.href = _url;\n if (linkTarget === \"open in a new tab\") a.target = \"_blank\";\n a.click();\n } else if (actionType === \"internal link\") {\n if (pageTarget > store.getters[\"step\"]) {\n const isValid = await store.dispatch(\"validate\");\n if (!isValid) return;\n }\n markStep(widgetType, widgetIdx, widgetName, actionType, { pageTarget });\n await updateRespond();\n onChangePage(pageTarget);\n }\n}\n\nfunction onChangePage(pageTarget) {\n const stepsLength = store.getters[\"stepsLength\"];\n const currentStep = store.getters[\"step\"];\n const step = pageTarget < 1 || pageTarget > stepsLength ? 0 : pageTarget - 1;\n if (step === currentStep) return;\n store.dispatch(\"visibleLoading\", true);\n store.dispatch(\"updateStep\", step);\n}\n\nexport async function updateRespond() {\n const respond = store.getters.respond;\n const interactionId = store.getters.interactionId;\n const id = store.getters.respondId;\n if (!respond.length) return;\n await apollo\n .mutate({\n mutation: UPDATE_RESPOND,\n variables: {\n id,\n device: navigator.userAgent,\n content: respond,\n myInteractionId: interactionId,\n },\n })\n .then(() => {\n if (store.getters[\"isSentRespond\"]) return;\n apollo.mutate({\n mutation: LOG,\n variables: {\n userId: store.getters[\"ownerId\"],\n action: \"interaction respond\",\n data: {\n id,\n device: navigator.userAgent,\n myInteractionId: interactionId,\n },\n },\n });\n store.commit(\"isSentRespond\");\n });\n}\n\nfunction markStep(widgetType, widgetIdx, widgetName, actionType, actionData) {\n const respond = store.getters[\"respond\"];\n const step = store.getters[\"step\"];\n if (!respond[step]) respond[step] = [];\n respond[step][widgetIdx] = {\n widgetType,\n widgetName,\n actionType,\n actionData,\n };\n}\n","const styles = {\n \"general-styles\": {\n top: { prop: \"top\", value: (v) => `${v}px` },\n left: { prop: \"left\", value: (v) => `${v}px` },\n width: [\n { prop: \"width\", value: (v) => `${v}px` },\n { prop: \"max-width\", value: (v) => `${v}px` },\n ],\n height: [\n { prop: \"height\", value: (v) => `${v}px` },\n { prop: \"max-height\", value: (v) => `${v}px` },\n ],\n // ? transform\n angle: {\n prop: \"transform\",\n value: (v, s) =>\n s.transform ? `${s.transform} rotate(${v}deg)` : `rotate(${v}deg)`,\n },\n scaleX: {\n prop: \"transform\",\n value: (v, s) =>\n s.transform ? `${s.transform} scaleX(${v})` : `scaleX(${v})`,\n },\n scaleY: {\n prop: \"transform\",\n value: (v, s) =>\n s.transform ? `${s.transform} scaleY(${v})` : `scaleY(${v})`,\n },\n originX: {\n prop: \"transformOrigin\",\n value: (v, s) =>\n s.transformOrigin ? `${v} ${s.transformOrigin}` : `${v}`,\n },\n originY: {\n prop: \"transformOrigin\",\n value: (v, s) =>\n s.transformOrigin ? `${s.transformOrigin} ${v}` : `${v}`,\n },\n },\n \"text-styles\": {\n // ? text\n shadow: {\n prop: \"textShadow\",\n value: (v) =>\n `${v.offsetX || 0}px ${v.offsetY || 0}px ${v.blur}px ${v.color}`,\n },\n fill: { prop: \"color\", value: (v) => v },\n fontSize: { prop: \"fontSize\", value: (v) => `${v}px` },\n fontWeight: { prop: \"fontWeight\", value: (v) => v },\n fontStyle: { prop: \"fontStyle\", value: (v) => v },\n lineHeight: { prop: \"lineHeight\", value: (v) => `${v}` },\n textAlign: { prop: \"textAlign\", value: (v) => v },\n strokeWidth: {\n prop: \"textStrokeWidth\",\n value: (v, s, w) => `${w.stroke && v}px`,\n },\n stroke: { prop: \"textStrokeColor\", value: (v) => v },\n underline: {\n prop: \"textDecoration\",\n value: (v) => (v ? `underline` : \"normal\"),\n },\n },\n \"image-styles\": {\n stroke: { prop: \"--border-color\", value: (v) => v },\n strokeWidth: [\n { prop: \"--border-weight\", value: (v, s, w) => `${v / w.scaleX}px` },\n { prop: \"padding\", value: (v, s, w) => `${v / w.scaleX}px` },\n ],\n strokeDashArray: [\n { prop: \"--dash-size\", value: (v, s, w) => `${v[0] / w.scaleX}px` },\n { prop: \"--gap-size\", value: (v, s, w) => `${v[0] / w.scaleX}px` },\n ],\n },\n \"video-styles\": {\n width: {\n prop: \"width\",\n value: (v, s, w) => `${v - w.configs.strokeWidth}px`,\n },\n height: {\n prop: \"height\",\n value: (v, s, w) => `${v - w.configs.strokeWidth}px`,\n },\n configs: [\n { prop: \"--border-color\", value: (v) => v.stroke },\n { prop: \"--border-weight\", value: (v) => `${v.strokeWidth}px` },\n { prop: \"padding\", value: (v) => `${v.strokeWidth}px` },\n { prop: \"--dash-size\", value: (v) => `${v.strokeDashArray[0] || 300}px` },\n { prop: \"--gap-size\", value: (v) => `${v.strokeDashArray[0] || 300}px` },\n ],\n },\n \"scale-styles\": {\n configs: [\n { prop: \"--active-bg-color\", value: (v) => v.activeBgColor },\n { prop: \"--bg-color\", value: (v) => v.bgColor },\n { prop: \"color\", value: (v) => v.fontColor },\n { prop: \"fontSize\", value: (v) => `${v.fontSize}px` },\n {\n prop: \"flex-direction\",\n value: (v) => (v.orientation === \"vertical\" ? \"column\" : \"row\"),\n },\n ],\n },\n \"stars-styles\": {\n configs: [\n {\n prop: \"flex-direction\",\n value: (v) => (v.orientation === \"vertical\" ? \"column\" : \"row\"),\n },\n ],\n },\n};\n\nexport default function setStyles(widget, { setGeneral = true } = {}) {\n if (!widget) return;\n const stylesObject = {};\n const type = widget.name;\n for (let [param, value] of Object.entries(widget)) {\n // console.log(param, value);\n if (setGeneral)\n setTypeStyles(\"general\", param, value, stylesObject, widget);\n setTypeStyles(type, param, value, stylesObject, widget);\n }\n return stylesObject;\n}\n\nfunction setTypeStyles(type, param, value, stylesObject, widget) {\n const existProp = styles[`${type}-styles`] && styles[`${type}-styles`][param];\n if (existProp && value !== null)\n if (Array.isArray(existProp)) {\n existProp.forEach(\n (p) => (stylesObject[p.prop] = p.value(value, stylesObject, widget))\n );\n } else {\n stylesObject[existProp.prop] = existProp.value(\n value,\n stylesObject,\n widget\n );\n }\n}\n","import store from \"../store\";\nimport Vue from \"@/main\";\nimport { GET_CUSTOM_FONTS_BY_USER_EMAIL, GET_PROD_FONTS } from \"@/gql/\";\n\nconst avalableFontsList = store.getters[\"avalableFontsList\"];\n\nexport default async function fetchFont(fontLink, fontName) {\n const owner = store.getters[\"owner\"];\n let customFonts = store.getters[\"customFonts\"];\n if (avalableFontsList.includes(fontLink)) {\n return;\n }\n if (fontLink){\n const new_font = new FontFace(fontName, `url(${fontLink})`);\n const loaded_face = await new_font.load();\n document.fonts.add(loaded_face);\n store.dispatch(\"addToAvalable\", fontName);\n return\n }\n\n if (!customFonts.length) {\n const { data } = await Vue.$apollo.query({\n query: GET_CUSTOM_FONTS_BY_USER_EMAIL,\n variables: {\n email: owner\n }\n });\n store.dispatch(\"updateCustomFonts\", data.upload_my_font);\n customFonts = store.getters[\"customFonts\"];\n }\n // user fonts\n let isMyFont = false;\n if (customFonts.length) {\n for (let f of customFonts) {\n const _name = f.name.replace(/\\.(ttf|otf)/g, \"\")\n if (_name === fontName) {\n const new_font = new FontFace(fontName, `url(${f.content})`);\n const loaded_face = await new_font.load();\n document.fonts.add(loaded_face);\n store.dispatch(\"addToAvalable\", fontName);\n isMyFont = true;\n }\n }\n }\n if (isMyFont) return;\n\n // prod fonts\n try {\n const { data } = await Vue.$apollo.query({\n query: GET_PROD_FONTS,\n variables: {\n name: fontName\n }\n });\n const font = data.font[0];\n if (font) {\n const cdn1 = process.env.VUE_APP_CDN_SPACES_ULR;\n const cdn2 = process.env.VUE_APP_SPACES_URL;\n const space = process.env.VUE_APP_DEFAULT_CDN_SPACES_URL;\n\n font.content.replace(cdn1, space).replace(cdn2, space);\n\n const new_font = new FontFace(fontName, `url(${font.content})`);\n const loaded_face = await new_font.load();\n document.fonts.add(loaded_face);\n store.dispatch(\"addToAvalable\", fontName);\n } else console.log(\"font is not found!\");\n } catch (error) {\n console.log(error);\n }\n}\n"],"sourceRoot":""}