{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.math.hypot.js","webpack:///./resources/js/src/app/components/item/EngravingImage.vue?f2c4","webpack:///resources/js/src/app/components/item/EngravingImage.vue","webpack:///./resources/js/src/app/components/item/EngravingImage.vue?6f8f","webpack:///./resources/js/src/app/components/item/EngravingImage.vue"],"names":["$","$hypot","Math","hypot","abs","sqrt","target","stat","forced","Infinity","NaN","value1","value2","arg","div","sum","i","aLen","arguments","length","larg","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","id","currentVariationId","viewBox","svgViewBox","width","svgWidth","height","svgHeight","xmlns","_l","configuratorImage","config","type","key","d","path","_e","_v","pathFrontend","getEngravingSettingByKey","values","x","y","image","url","staticStyle","opacity","href","getImageValuesById","filter","pathMobileEdit","on","touchstart","$event","touchHandler","pinchStart","touchmove","pinchMove","touchend","pinchEnd","class","font","split","join","getDefaultFont","style","fontSize","textSize","textAlign","startOffset","hasTextAlignLeft","fill","color","textColor","getSystemFontName","getFontStyle","getFontWeight","domProps","innerHTML","_f","value","_withStripped","component","options","__file"],"mappings":"8EAAA,IAAIA,EAAI,EAAQ,GAEZC,EAASC,KAAKC,MACdC,EAAMF,KAAKE,IACXC,EAAOH,KAAKG,KAQhBL,EAAE,CAAEM,OAAQ,OAAQC,MAAM,EAAMC,SAJlBP,GAAUA,EAAOQ,IAAUC,OAASD,KAID,CAC/CN,MAAO,SAAeQ,EAAQC,GAM5B,IALA,IAIIC,EAAKC,EAJLC,EAAM,EACNC,EAAI,EACJC,EAAOC,UAAUC,OACjBC,EAAO,EAEJJ,EAAIC,GAELG,GADJP,EAAMT,EAAIc,UAAUF,QAGlBD,EAAMA,GADND,EAAMM,EAAOP,GACKC,EAAM,EACxBM,EAAOP,GAGPE,GAFSF,EAAM,GACfC,EAAMD,EAAMO,GACCN,EACDD,EAEhB,OAAOO,IAASX,IAAWA,IAAWW,EAAOf,EAAKU,O,wCC9BtD,IAAIM,EAAS,WACX,IAAIC,EAAMC,KACNC,EAAK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OAAS,0DACZ,UAAAF,E","file":"chunks/ceres-client-13.min.js","sourcesContent":["var $ = require('../internals/export');\n\nvar $hypot = Math.hypot;\nvar abs = Math.abs;\nvar sqrt = Math.sqrt;\n\n// Chrome 77 bug\n// https://bugs.chromium.org/p/v8/issues/detail?id=9546\nvar BUGGY = !!$hypot && $hypot(Infinity, NaN) !== Infinity;\n\n// `Math.hypot` method\n// https://tc39.github.io/ecma262/#sec-math.hypot\n$({ target: 'Math', stat: true, forced: BUGGY }, {\n hypot: function hypot(value1, value2) { // eslint-disable-line no-unused-vars\n var sum = 0;\n var i = 0;\n var aLen = arguments.length;\n var larg = 0;\n var arg, div;\n while (i < aLen) {\n arg = abs(arguments[i++]);\n if (larg < arg) {\n div = larg / arg;\n sum = sum * div * div + 1;\n larg = arg;\n } else if (arg > 0) {\n div = arg / larg;\n sum += div * div;\n } else sum += arg;\n }\n return larg === Infinity ? Infinity : larg * sqrt(sum);\n }\n});\n","var render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"svg\",\n {\n staticClass: \"engraving__svg\",\n attrs: {\n id: \"engraving__svg--\" + _vm.currentVariationId,\n viewBox: _vm.svgViewBox,\n width: _vm.svgWidth,\n height: _vm.svgHeight,\n xmlns: \"http://www.w3.org/2000/svg\",\n \"xmlns:xlink\": \"http://www.w3.org/1999/xlink\"\n }\n },\n [\n _c(\n \"defs\",\n [\n _vm._l(_vm.configuratorImage, function(config) {\n return [\n config.type === \"text\"\n ? _c(\"path\", {\n attrs: {\n id: \"engraving__text-path--\" + config.key,\n d: config.path\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n config.type === \"image\"\n ? _c(\n \"clipPath\",\n {\n attrs: {\n id: \"engraving__image-path--\" + _vm.currentVariationId\n }\n },\n [\n _c(\"path\", {\n attrs: {\n d: config.pathFrontend\n ? config.pathFrontend\n : config.path\n }\n })\n ]\n )\n : _vm._e()\n ]\n }),\n _vm._v(\" \"),\n !_vm.getEngravingSettingByKey(\"plotter\") ||\n _vm.getEngravingSettingByKey(\"plotterGrayImage\")\n ? _c(\n \"filter\",\n {\n attrs: { id: \"engraving__filter--\" + _vm.currentVariationId }\n },\n [\n _c(\"feColorMatrix\", {\n attrs: {\n type: \"matrix\",\n values:\n \"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\"\n }\n })\n ],\n 1\n )\n : _vm._e()\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\"image\", {\n staticClass: \"engraving__image\",\n attrs: {\n x: \"0\",\n y: \"0\",\n width: _vm.svgWidth,\n height: _vm.svgHeight,\n \"xlink:href\": _vm.image.url\n }\n }),\n _vm._v(\" \"),\n _vm._l(_vm.configuratorImage, function(config) {\n return config.type === \"image\"\n ? [\n _c(\"image\", {\n staticClass: \"engraving__image--transition\",\n staticStyle: { opacity: \"0\" },\n attrs: {\n id: \"engraving__image-ghost--\" + _vm.currentVariationId,\n href: _vm.getImageValuesById(config.id).image.url,\n x: _vm.getImageValuesById(config.id).image.x,\n y: _vm.getImageValuesById(config.id).image.y,\n width: _vm.getImageValuesById(config.id).image.width,\n height: _vm.getImageValuesById(config.id).image.height\n }\n }),\n _vm._v(\" \"),\n _c(\"image\", {\n attrs: {\n id: \"engraving__image-display--\" + _vm.currentVariationId,\n \"clip-path\":\n \"url(#\" +\n \"engraving__image-path--\" +\n _vm.currentVariationId +\n \")\",\n filter:\n !_vm.getEngravingSettingByKey(\"plotter\") ||\n _vm.getEngravingSettingByKey(\"plotterGrayImage\")\n ? \"url(#\" +\n \"engraving__filter--\" +\n _vm.currentVariationId +\n \")\"\n : \"\",\n href: _vm.getImageValuesById(config.id).image.url,\n x: _vm.getImageValuesById(config.id).image.x,\n y: _vm.getImageValuesById(config.id).image.y,\n width: _vm.getImageValuesById(config.id).image.width,\n height: _vm.getImageValuesById(config.id).image.height\n }\n }),\n _vm._v(\" \"),\n _c(\"path\", {\n staticClass: \"engraving__move d-lg-none\",\n attrs: {\n d: config.pathMobileEdit\n ? config.pathMobileEdit\n : config.path,\n \"fill-opacity\": \"0\"\n },\n on: {\n touchstart: function($event) {\n _vm.touchHandler[0]($event)\n _vm.pinchStart($event)\n },\n touchmove: function($event) {\n _vm.touchHandler[1]($event)\n _vm.pinchMove($event)\n },\n touchend: function($event) {\n _vm.touchHandler[2]($event)\n _vm.pinchEnd()\n }\n }\n })\n ]\n : _vm._e()\n }),\n _vm._v(\" \"),\n _vm._l(_vm.configuratorImage, function(config) {\n return config.type === \"text\"\n ? _c(\"text\", [\n _c(\"textPath\", {\n staticClass: \"engraving__text\",\n class:\n _vm.getImageValuesById(config.id)[config.key] &&\n _vm.getImageValuesById(config.id)[config.key].font\n ? _vm\n .getImageValuesById(config.id)\n [config.key].font.split(\" \")\n .join(\"\")\n : _vm.getDefaultFont(),\n style: [{ fontSize: config.textSize + \"px\" }, _vm.textAlign],\n attrs: {\n \"xlink:href\": \"#\" + \"engraving__text-path--\" + config.key,\n \"xml:space\": \"preserve\",\n id: \"engraving__text-input--\" + config.key,\n startOffset: _vm.hasTextAlignLeft ? \"0\" : \"50%\",\n fill:\n _vm.getImageValuesById(config.id)[config.key] &&\n _vm.getImageValuesById(config.id)[config.key].color\n ? _vm.getImageValuesById(config.id)[config.key].color\n : config.textColor,\n \"font-family\": _vm.getSystemFontName(config),\n \"font-style\": _vm.getFontStyle(config),\n \"font-weight\": _vm.getFontWeight(config),\n \"text-anchor\": _vm.hasTextAlignLeft ? \"left\" : \"middle\"\n },\n domProps: {\n innerHTML: _vm._f(\"blancSpaces\")(\n _vm.getImageValuesById(config.id)[config.key] &&\n _vm.getImageValuesById(config.id)[config.key].value\n ? _vm.getImageValuesById(config.id)[config.key].value\n : \"\"\n )\n }\n })\n ])\n : _vm._e()\n })\n ],\n 2\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EngravingImage.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EngravingImage.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EngravingImage.vue?vue&type=template&id=ead0ae08&\"\nimport script from \"./EngravingImage.vue?vue&type=script&lang=js&\"\nexport * from \"./EngravingImage.vue?vue&type=script&lang=js&\"\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\n/* hot reload */\nif (module.hot) {\n var api = require(\"/Users/fhartwig/Sites/pp-heySilvity/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('ead0ae08')) {\n api.createRecord('ead0ae08', component.options)\n } else {\n api.reload('ead0ae08', component.options)\n }\n module.hot.accept(\"./EngravingImage.vue?vue&type=template&id=ead0ae08&\", function () {\n api.rerender('ead0ae08', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"resources/js/src/app/components/item/EngravingImage.vue\"\nexport default component.exports"],"sourceRoot":""}