{"version":3,"file":"embedMixins-CnUrvB-y.js","sources":["../../../app/javascript/components/mixins/embedMixins.js"],"sourcesContent":["import INTERNAL_QUERY_PARAMS from \"@/constants/internalQueryParams\";\n\nconst embedMixins = {\n props: {\n id: {\n type: String,\n required: true,\n },\n preview: {\n type: Boolean,\n default: false,\n },\n url: {\n type: String,\n required: true,\n },\n },\n data() {\n return {\n sandboxPermissions:\n \"allow-forms allow-scripts allow-same-origin allow-popups allow-top-navigation allow-storage-access-by-user-activation allow-downloads\",\n };\n },\n computed: {\n surveyUrl() {\n return this.preview\n ? `${this.url}?${INTERNAL_QUERY_PARAMS.preview}=true`\n : this.url + this.queryParams;\n },\n queryParams() {\n const query = new URLSearchParams(window.location.search);\n return `?${query.toString()}`;\n },\n },\n};\n\nexport default embedMixins;\n"],"names":["embedMixins","INTERNAL_QUERY_PARAMS"],"mappings":"oaAEK,MAACA,EAAc,CAClB,MAAO,CACL,GAAI,CACF,KAAM,OACN,SAAU,EACX,EACD,QAAS,CACP,KAAM,QACN,QAAS,EACV,EACD,IAAK,CACH,KAAM,OACN,SAAU,EACX,CACF,EACD,MAAO,CACL,MAAO,CACL,mBACE,uIACR,CACG,EACD,SAAU,CACR,WAAY,CACV,OAAO,KAAK,QACR,GAAG,KAAK,GAAG,IAAIC,EAAsB,OAAO,QAC5C,KAAK,IAAM,KAAK,WACrB,EACD,aAAc,CAEZ,MAAO,IADO,IAAI,gBAAgB,OAAO,SAAS,MAAM,EACvC,SAAQ,CAAE,EAC5B,CACF,CACH"}