{"version":3,"sources":["jsdelivr-header.js","/npm/dsurvey-editor@0.1.26/survey-creator.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNO,UAAW,qBACX,cAAe,oCACf,YAAa,kCACb,eAAgB,4CAChB,YAAa,sCACb,cAAe,sBACf,SAAU,sBACV,YAAa,mBACb,mDACA,wCACA,MAAO,mBAOF,WAAY,wBACjB,eAAgB,iCAChB,gCAkBP,SAAS,iBAAkB,EAAW,CAAC,GACrC,MAAM,EAAgB,KAAK,UAAY,CAAC,EACxC,IAAK,MAAM,KAAK,EAAU,CACxB,MAAM,EAAU,EAAE,MAAM,EAAc,GAAI,EAAS,IACnD,KAAK,iBAAiB,EAAG,EAC3B,CACF,CApBA,WAAW,QAGX,UAAU,MAAQ,MAClB,QAAQ,MAAQ,MAIhB,QAAQ,KAAO,KACf,UAAU,KAAO,KAajB,MAAM,QAAU,SAAU,EAAK,GAC7B,MAAM,SAAE,EAAQ,OAAE,GAAW,GAAQ,CAAC,EACtC,iBAAiB,GACjB,KAAK,OAAS,GAAU,QACxB,EAAI,UAAU,YAAa,WAC3B,EAAI,UAAU,gBAAiB,WAC/B,EAAI,UAAU,iBAAkB,SAChC,EAAI,UAAU,qBAAsB,YACpC,EAAI,UAAU,iBAAkB,SAChC,EAAI,IAAI,SACR,OAAO,iBAAiB,EAAI,UAAW,CACrC,YAAa,CACX,IAAI,IACK,KAAK,OAEd,GAAA,CAAK,GACH,KAAK,OAAS,CAChB,GAEF,QAAS,CACP,IAAI,IACK,SAIf,EAEsB,oBAAX,QAA0B,OAAO,KAC1C,QAAQ,OAAO,mBAGF,CACb,gBACA,oBACA","file":"/npm/dsurvey-editor@0.1.26/survey-creator.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/dsurvey-editor@0.1.26/survey-creator.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import store from './src/store'\nimport EditorBox from './src/components/EditorBox'\nimport ToolBox from './src/components/ToolBox'\nimport JsonEditor from './src/components/editor/JsonEditor'\nimport Preview from './src/components/Preview.vue'\nimport draggable from 'vuedraggable'\nimport i18n from './src/locale'\nimport Element from 'element-ui'\nimport './src/assets/styles/element-variables.scss'\nimport './src/assets/styles/index.scss'\nimport _ from 'lodash'\n\n/**\n * @description Survey 全局引入\n * @date 20201026\n * */\n// import * as widgets from 'surveyjs-widgets'\nimport * as Survey from 'survey-library'\nimport sortablejs from './src/plugins/sortablejs'\nimport 'survey-library/survey.min.css'\n// import 'bootstrap-datepicker' // bootstrap 日期选择器\n// import 'bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css'\n// widgets.bootstrapdatepicker(Survey); // 使Survey具有日期控件题\nsortablejs(Survey) // 使Survey具有排序题\n\n\nEditorBox.store = store\nToolBox.store = store\n// DesignerBox.store = store\n// Creator.store = store\n\nToolBox.i18n = i18n\nEditorBox.i18n = i18n\n// DesignerBox.i18n = i18n\n// Creator.i18n = i18n\n\n// 设置语言\nfunction setLocaleMessage (messages = {}) {\n  const localMessages = i18n.messages || {}\n  for (const k in messages) {\n    const message = _.merge(localMessages[k], messages[k])\n    i18n.setLocaleMessage(k, message)\n  }\n}\n\nconst install = function (Vue, opts) {\n  const { messages, locale } = opts || {}\n  setLocaleMessage(messages)\n  i18n.locale = locale || 'zh_cn'\n  Vue.component('draggable', draggable)\n  Vue.component('survey-editor', EditorBox)\n  Vue.component('survey-toolbox', ToolBox)\n  Vue.component('survey-json-editor', JsonEditor)\n  Vue.component('survey-preview', Preview)\n  Vue.use(Element)\n  Object.defineProperties(Vue.prototype, {\n    $editorLang: {\n      get () {\n        return i18n.locale\n      },\n      set (localVal) {\n        i18n.locale = localVal\n      }\n    },\n    _survey: {\n      get () {\n        return Survey\n      }\n    }\n  })\n}\n\nif (typeof window !== 'undefined' && window.Vue) {\n  install(window.Vue)\n}\n\nexport default {\n  install,\n  EditorBox,\n  ToolBox\n}\n"]}