{"version":3,"sources":["webpack:///./src/components/Navigation/StepBack/StepBack.vue?dd19","webpack:///./src/components/Navigation/StepBack/StepBack.vue?5b5e","webpack:///./src/components/Navigation/StepBack/StepBack.vue?07d8","webpack:///src/components/uikit/Buttons/UiButtonIcon/UiButtonIcon.vue","webpack:///./src/components/uikit/Buttons/UiButtonIcon/UiButtonIcon.vue?938c","webpack:///./src/components/uikit/Buttons/UiButtonIcon/props.js","webpack:///./src/components/uikit/Buttons/UiButtonIcon/useButtonIcon.js","webpack:///./src/components/uikit/Buttons/UiButtonIcon/index.js","webpack:///./src/components/uikit/Buttons/UiButtonIcon/UiButtonIcon.vue","webpack:///./src/components/uikit/Buttons/UiButtonIcon/UiButtonIcon.vue?9812","webpack:///./src/components/Navigation/StepBack/props.js","webpack:///src/components/Navigation/StepBack/StepBack.vue","webpack:///./src/components/Navigation/StepBack/StepBack.vue?0640","webpack:///./src/components/Navigation/StepBack/useStepBack.js","webpack:///./src/components/Navigation/StepBack/StepBack.vue","webpack:///./src/components/Navigation/StepBack/index.js","webpack:///./src/common/page/usePage.js"],"names":["module","exports","props","icon","type","String","default","setup","emit","click","UiButtonIcon","_h","this","$createElement","_c","_self","attrs","on","_v","_s","preTitle","title","routeLink","isTranslateTitleOff","Boolean","components","UiText","router","useRouter","isPreTitle","computed","length","isIcon","handleClickBack","link","helpers","checkString","push","name","go","_vm","class","$style","Container","Content","_e","Text","$t","context","locals","StepBack","usePage","state","useStore","route","useRoute","tt","useLanguage","screenSets","app","screensets","screenSetItem","value","find","i","query","code","startsWith","getPageTitle","pageTitle","getSectionIcon"],"mappings":"4GAAA,oE,qBCCAA,EAAOC,QAAU,CAAC,UAAY,6BAA6B,QAAU,2BAA2B,KAAO,0B,kCCDvG,I,YCIA,ICJmY,EDInY,CACEC,MELa,CACbC,KAAM,CACJC,KAAMC,OACNC,QAAS,KFGXC,MAFF,SAEA,KACI,IGP4CC,EHW5C,MAAO,CACLN,MAAN,EACMO,OGb0CD,EHShD,EGTgDA,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A5B,iBAAyCgB,SAAzC,UAAyCA,EAAOW,aAAhD,aAAyC,EAAc7D,OAGzD4D,EAAEE,QAASZ,aAAX,EAAWA,EAAOhB,YAiB7B,MAAO,CACLuB,gBACAO,aATmB,SAACC,GACpB,OAAIR,WAAeC,MACVN,EAAGK,aAAD,EAACA,EAAeC,MAAO,QAE3BO,UAAa,IAMpBC,eAdqB,WAAM,QAC3B,iBAAOT,SAAP,UAAOA,EAAeC,aAAtB,aAAO,EAAsB3D,YAA7B,QAAqC","file":"js/chunk-1b6277ea.98797d88.js","sourcesContent":["export { default } from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-0-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StepBack.vue?vue&type=style&index=0&lang=scss&module=true&\"; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-0-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StepBack.vue?vue&type=style&index=0&lang=scss&module=true&\"","// extracted by mini-css-extract-plugin\nmodule.exports = {\"Container\":\"StepBack__Container__3UwFa\",\"Content\":\"StepBack__Content__1gD2Z\",\"Text\":\"StepBack__Text__3X5-h\"};","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.$style.Container},[_c('UiButtonIcon',{attrs:{\"icon\":\"mdi-chevron-left\"},on:{\"on-click\":_vm.handleClickBack}}),_c('div',{class:_vm.$style.Content},[(_vm.isIcon)?_c('div',[_c('VIcon',[_vm._v(_vm._s(_vm.icon))])],1):_vm._e(),_c('div',{class:_vm.$style.Text},[(_vm.isPreTitle)?_c('UiText',{attrs:{\"size\":\"h5\",\"no-margin\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.props.isTranslateTitleOff ? _vm.props.preTitle : _vm.$t(_vm.props.preTitle))+\" \")]):_vm._e(),_c('UiText',{attrs:{\"size\":\"h5\",\"no-margin\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.props.isTranslateTitleOff ? _vm.props.title : _vm.$t(_vm.props.title))+\" \")])],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n {{ props.icon }}\n \n\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UiButtonIcon.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UiButtonIcon.vue?vue&type=script&lang=js&\"","export default {\n icon: {\n type: String,\n default: '',\n },\n};\n","export default function useButtonIcon (props, { emit }) {\n const click = () => {\n emit('on-click')\n }\n\n return {\n click,\n }\n}\n","import UiButtonIcon from './UiButtonIcon.vue';\n\nexport default UiButtonIcon;\n","import { render, staticRenderFns } from \"./UiButtonIcon.vue?vue&type=template&id=2b4bf02a&\"\nimport script from \"./UiButtonIcon.vue?vue&type=script&lang=js&\"\nexport * from \"./UiButtonIcon.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\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('VBtn',{attrs:{\"icon\":\"\"},on:{\"click\":_vm.click}},[_c('VIcon',[_vm._v(_vm._s(_vm.props.icon))])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\n preTitle: {\n type: String,\n default: '',\n },\n title: {\n type: String,\n default: '',\n },\n icon: {\n type: String,\n default: '',\n },\n routeLink: {\n type: String,\n default: '',\n },\n isTranslateTitleOff: {\n type: Boolean,\n default: false,\n },\n};\n","\n\n\n \n \n \n \n {{ icon }}\n \n \n \n {{ props.isTranslateTitleOff ? props.preTitle : $t(props.preTitle) }}\n \n \n {{ props.isTranslateTitleOff ? props.title : $t(props.title) }}\n \n \n \n \n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StepBack.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StepBack.vue?vue&type=script&lang=js&\"","import { computed } from '@vue/composition-api';\nimport { useRouter } from 'vue2-helpers/vue-router';\nimport helpers from '@/common/helpers'\n\nexport default function useStepBack (props) {\n const router = useRouter()\n\n const isPreTitle = computed(() => !!props?.preTitle?.length)\n const isIcon = computed(() => !!props?.icon?.length)\n\n const handleClickBack = () => {\n const { routeLink: link = '' } = props ?? {}\n\n if (\n helpers.checkString(link) &&\n link?.length\n ) {\n router.push({ name: link })\n return\n }\n\n router.go(-1)\n }\n\n return {\n isIcon,\n isPreTitle,\n handleClickBack,\n };\n}\n","import { render, staticRenderFns } from \"./StepBack.vue?vue&type=template&id=2b9336f2&\"\nimport script from \"./StepBack.vue?vue&type=script&lang=js&\"\nexport * from \"./StepBack.vue?vue&type=script&lang=js&\"\nimport style0 from \"./StepBack.vue?vue&type=style&index=0&lang=scss&module=true&\"\n\n\n\n\nfunction injectStyles (context) {\n \n this[\"$style\"] = (style0.locals || style0)\n\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 injectStyles,\n null,\n null\n \n)\n\nexport default component.exports","import StepBack from './StepBack.vue';\n\nexport default StepBack;\n","import { useStore } from '@vueblocks/vue-use-vuex';\nimport { computed } from '@vue/composition-api';\nimport { useRoute } from 'vue2-helpers/vue-router';\n\nimport useLanguage from '@/common/locale/useLanguage'\n\nexport default function usePage () {\n const { state } = useStore();\n const route = useRoute();\n const { tt } = useLanguage()\n\n const screenSets = computed(() => state.app.screensets);\n\n const screenSetItem = computed(() => {\n const item = screenSets.value.find((i) => {\n // Если есть тип документа, то выбрать роут с ним\n if (route?.query?.type) {\n return i.code.startsWith(`${route?.name}?type=${route?.query?.type}`);\n }\n\n return i.code === route?.name;\n });\n\n return item;\n });\n\n const getSectionIcon = () => {\n return screenSetItem?.value?.icon ?? null\n };\n\n const getPageTitle = (pageTitle) => {\n if (screenSetItem?.value) {\n return tt(screenSetItem?.value, 'name');\n }\n return pageTitle ?? '';\n };\n\n return {\n screenSetItem,\n getPageTitle,\n getSectionIcon,\n };\n}\n"],"sourceRoot":""}