{"version":3,"sources":["jsdelivr-header.js","/npm/powerbi-client-vue-js@1.1.2/dist/powerbi-client-vue-js.es.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,0BCN4B,OAAQ,WAAY,MAAS,wBACrC,eAAgB,WAAY,YAAa,SAAU,UAAW,eAAgB,YAAa,MAAS,iBACxH,MAAM,EAAI,wBAAyB,EAAI,QAAS,EAAI,2CAA4C,EAAI,CAClG,QACC,EAAI,qCAAsC,EAAI,sCAAuC,EAAI,mCAAoC,EAAI,CAClI,IAAK,OACL,MAAO,4DACP,QAAS,eACT,KAAM,yBACN,KAAM,WACN,KAAM,yBACN,eAAgB,0BACf,EAAI,CACL,YACA,UACA,WACA,UACC,EAAI,CACL,KAAM,MACN,IAAK,sDACJ,EAAI,MAAO,EAAI,CAChB,IAAK,QACJ,EAAI,CACL,iBAAkB,UAClB,2BAA4B,SAC5B,IAAK,WACJ,EAAI,CACL,cAAe,UACf,mCAAoC,SACpC,4BAA6B,SAC7B,qBAAsB,SACtB,kBAAmB,SACnB,OAAQ,UACR,oBAAqB,UACrB,KAAM,UACN,UAAW,UACX,WAAY,SACZ,KAAM,SACN,UAAW,WACV,EAAI,CACL,KAAM,EACN,QAAS,EACT,YAAa,EACb,MAAO,EACP,KAAM,EACN,OAAQ,EACR,MAAO,EACP,QAAS,EACT,SAAU,EACV,WAAY,EACZ,QAAS,EACT,cAAe,EACf,aAAc,EACd,gBAAiB,GAEnB,SAAS,EAAE,EAAG,GACZ,GAAI,EAAE,OAAS,EAAE,KACf,OAAO,EACT,IAAK,MAAO,EAAG,KAAM,EAAG,CACtB,IAAK,EAAE,IAAI,GACT,OAAO,EACT,MAAM,EAAI,EAAE,IAAI,GAChB,GAAI,KAAK,UAAU,KAAO,KAAK,UAAU,GACvC,OAAO,CACX,CACA,OAAO,CACT,CACA,MAAM,EAAI,wBAAyB,EAAI,EAAE,QAAS,EAAI,EAAE,CACtD,KAAM,cACN,MAAO,CAEL,aAAc,CACZ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GACE,KAAK,MAAM,cAAgB,KAAK,oBAAqB,KAAK,sBAC5D,EACA,QAAS,CAMP,iBAAA,GACO,KAAK,MAAM,aAIhB,KAAK,MAAQ,KAAK,QAAQ,aAAa,KAAK,MAAM,aAAc,KAAK,QAHnE,QAAQ,MAAM,8CAIlB,EACA,oBAAA,GACE,KAAK,eAAiB,KAAK,OAAS,KAAK,iBAAiB,KAAK,MAAO,KAAK,cAC7E,EACA,YAAA,GACE,OAAO,KAAK,KACd,YAIF,yBACA,2BACA,iCACA,qBACA,wBACA,sBACA","file":"/npm/powerbi-client-vue-js@1.1.2/dist/powerbi-client-vue-js.es.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/powerbi-client-vue-js@1.1.2/dist/powerbi-client-vue-js.es.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 { defineComponent as i, h as r, toRaw as n } from \"vue\";\nimport { service as f, factories as l, Embed as b, Visual as p, Qna as u, Tile as v, Dashboard as g, Report as w } from \"powerbi-client\";\nconst H = \"powerbi-client-vue-js\", E = \"1.1.2\", R = \"VueJS wrapper for powerbi-client library\", C = [\n  \"dist\"\n], y = \"./dist/powerbi-client-vue-js.es.js\", B = \"./dist/powerbi-client-vue-js.umd.js\", S = \"./dist/types/src/public-api.d.ts\", $ = {\n  dev: \"vite\",\n  build: \"vite build && vue-tsc --declaration --emitDeclarationOnly\",\n  preview: \"vite preview\",\n  lint: \"eslint ./src --ext .ts\",\n  test: \"jest src\",\n  demo: \"cd demo && npm run dev\",\n  \"install:demo\": \"cd demo && npm install\"\n}, O = [\n  \"microsoft\",\n  \"powerbi\",\n  \"embedded\",\n  \"vue-js\"\n], j = {\n  type: \"git\",\n  url: \"https://github.com/microsoft/powerbi-client-vue-js\"\n}, P = \"MIT\", T = {\n  tag: \"beta\"\n}, I = {\n  \"powerbi-client\": \"^2.23.1\",\n  \"powerbi-report-authoring\": \"^1.1.3\",\n  vue: \"^3.4.21\"\n}, k = {\n  \"@types/jest\": \"^28.1.3\",\n  \"@typescript-eslint/eslint-plugin\": \"^7.5.0\",\n  \"@typescript-eslint/parser\": \"^7.5.0\",\n  \"@vitejs/plugin-vue\": \"^5.0.4\",\n  \"@vue/test-utils\": \"^2.0.0\",\n  eslint: \"^8.57.0\",\n  \"eslint-plugin-vue\": \"^9.22.0\",\n  jest: \"^26.6.3\",\n  \"ts-jest\": \"^26.5.6\",\n  typescript: \"^4.5.4\",\n  vite: \"^5.1.5\",\n  \"vue-tsc\": \"^0.34.7\"\n}, M = {\n  name: H,\n  version: E,\n  description: R,\n  files: C,\n  main: y,\n  module: B,\n  types: S,\n  scripts: $,\n  keywords: O,\n  repository: j,\n  license: P,\n  publishConfig: T,\n  dependencies: I,\n  devDependencies: k\n};\nfunction q(t, e) {\n  if (t.size !== e.size)\n    return !1;\n  for (const [s, d] of t) {\n    if (!e.has(s))\n      return !1;\n    const a = e.get(s);\n    if (JSON.stringify(a) !== JSON.stringify(d))\n      return !1;\n  }\n  return !0;\n}\nconst V = \"powerbi-client-vue-js\", x = M.version, o = i({\n  name: \"PowerBIBase\",\n  props: {\n    // CSS class to be set on the embedding container (Optional)\n    cssClassName: {\n      type: String\n    },\n    // Provide a custom implementation of Power BI service (Optional)\n    service: {\n      type: f.Service\n    }\n  },\n  data() {\n    const t = this.service ? this.service : new f.Service(l.hpmFactory, l.wpmpFactory, l.routerFactory);\n    return t.setSdkInfo(V, x), {\n      powerbi: t,\n      prevEventHandlerMap: /* @__PURE__ */ new Map([]),\n      embed: void 0\n    };\n  },\n  methods: {\n    /**\n     * Sets all event handlers from the input on the embedded entity\n     *\n     * @param embed Embedded object\n     * @param eventHandlerMap Array of event handlers to be set on the embedded entity\n     * @returns void\n     */\n    setEventHandlers(t, e) {\n      if (q(this.prevEventHandlerMap, e))\n        return;\n      this.prevEventHandlerMap = e;\n      let s = b.allowedEvents;\n      const d = t.embedtype;\n      switch (d) {\n        case \"create\":\n          break;\n        case \"report\":\n          s = [...s, ...w.allowedEvents];\n          break;\n        case \"dashboard\":\n          s = [...s, ...g.allowedEvents];\n          break;\n        case \"tile\":\n          s = [...s, ...v.allowedEvents];\n          break;\n        case \"qna\":\n          s = [...s, ...u.allowedEvents];\n          break;\n        case \"visual\":\n          s = [...s, ...p.allowedEvents];\n          break;\n        default:\n          console.error(`Invalid embed type ${d}`);\n      }\n      const a = [];\n      e.forEach((h, c) => {\n        s.includes(c) ? (t.off(c), h && t.on(c, (m) => {\n          h(m, t);\n        })) : a.push(c);\n      }), a.length && console.error(`Following events are invalid: ${a.join(\",\")}`);\n    }\n  }\n}), N = i({\n  name: \"PowerBIReportEmbed\",\n  emits: [\"report-obj\"],\n  props: {\n    // Configuration for embedding the PowerBI Report (Required)\n    embedConfig: {\n      type: Object,\n      required: !0\n    },\n    // Phased embedding flag (Optional)\n    phasedEmbedding: {\n      type: Boolean,\n      default: !1\n    },\n    // Map of event name and handler methods pairs to be triggered on the event (Optional)\n    eventHandlers: {\n      type: Map\n    }\n  },\n  mixins: [o],\n  render() {\n    return r(\"div\", { ref: \"containerRef\", class: this.cssClassName, id: \"reportContainer\" });\n  },\n  watch: {\n    embedConfig: function(t, e) {\n      e && (this.embedOrBootstrap(), this.callSetEventHandlers());\n    },\n    eventHandlers: function() {\n      this.callSetEventHandlers();\n    }\n  },\n  computed: {\n    config() {\n      return n(this.embedConfig);\n    }\n  },\n  mounted() {\n    this.$refs.containerRef && this.embedOrBootstrap(), this.callSetEventHandlers();\n  },\n  methods: {\n    /**\n     * Function to decide to embed, load or bootstrap\n     *\n     * @returns void\n     */\n    embedOrBootstrap() {\n      var t, e;\n      (t = this.config) != null && t.accessToken && ((e = this.config) != null && e.embedUrl) ? this.embedReport() : this.embed = this.powerbi.bootstrap(this.$refs.containerRef, this.config);\n    },\n    /**\n     * Embed or load the PowerBI Report based on phasedEmbedding flag\n     *\n     * @returns void\n     */\n    embedReport() {\n      if (!this.$refs.containerRef) {\n        console.error(\"HTML container is not rendered or available\");\n        return;\n      }\n      this.embed = this.phasedEmbedding ? this.powerbi.load(this.$refs.containerRef, this.config) : this.powerbi.embed(this.$refs.containerRef, this.config), this.$emit(\"report-obj\", this.getReport());\n    },\n    /**\n     * Set event handlers if available\n     *\n     * @returns void\n     */\n    callSetEventHandlers() {\n      this.eventHandlers && this.embed && this.setEventHandlers(this.embed, this.eventHandlers);\n    },\n    // Returns embed object to calling function\n    getReport() {\n      return this.embed;\n    }\n  }\n}), Q = i({\n  name: \"PowerBIDashboardEmbed\",\n  props: {\n    // Configuration for embedding the PowerBI Report (Required)\n    embedConfig: {\n      type: Object,\n      required: !0\n    },\n    // Map of event name and handler methods pairs to be triggered on the event (Optional)\n    eventHandlers: {\n      type: Map\n    }\n  },\n  mixins: [o],\n  render() {\n    return r(\"div\", { ref: \"containerRef\", class: this.cssClassName, id: \"dashboardContainer\" });\n  },\n  watch: {\n    embedConfig: function(t, e) {\n      e && (this.embedOrBootstrap(), this.callSetEventHandlers());\n    },\n    eventHandlers: function() {\n      this.callSetEventHandlers();\n    }\n  },\n  computed: {\n    config() {\n      return n(this.embedConfig);\n    }\n  },\n  mounted() {\n    this.$refs.containerRef && this.embedOrBootstrap(), this.callSetEventHandlers();\n  },\n  methods: {\n    /**\n     * Function to decide to embed or bootstrap\n     *\n     * @returns void\n     */\n    embedOrBootstrap() {\n      var t, e;\n      (t = this.config) != null && t.accessToken && ((e = this.config) != null && e.embedUrl) ? this.embedDashboard() : this.embed = this.powerbi.bootstrap(this.$refs.containerRef, this.config);\n    },\n    /**\n     * Embed the PowerBI Dashboard\n     *\n     * @returns void\n     */\n    embedDashboard() {\n      if (!this.$refs.containerRef) {\n        console.error(\"HTML container is not rendered or available\");\n        return;\n      }\n      this.embed = this.powerbi.embed(this.$refs.containerRef, this.config);\n    },\n    /**\n     * Set event handlers if available\n     *\n     * @returns void\n     */\n    callSetEventHandlers() {\n      this.eventHandlers && this.embed && this.setEventHandlers(this.embed, this.eventHandlers);\n    },\n    // Returns embed object to calling function\n    getDashboard() {\n      return this.embed;\n    }\n  }\n}), U = i({\n  name: \"PowerBITileEmbed\",\n  props: {\n    // Configuration for embedding the PowerBI Report (Required)\n    embedConfig: {\n      type: Object,\n      required: !0\n    },\n    // Map of event name and handler methods pairs to be triggered on the event (Optional)\n    eventHandlers: {\n      type: Map,\n      required: !1\n    }\n  },\n  mixins: [o],\n  render() {\n    return r(\"div\", { ref: \"containerRef\", class: this.cssClassName, id: \"tileContainer\" });\n  },\n  watch: {\n    embedConfig: function(t, e) {\n      e && (this.embedOrBootstrap(), this.callSetEventHandlers());\n    },\n    eventHandlers: function() {\n      this.callSetEventHandlers();\n    }\n  },\n  computed: {\n    config() {\n      return n(this.embedConfig);\n    }\n  },\n  mounted() {\n    this.$refs.containerRef && this.embedOrBootstrap(), this.callSetEventHandlers();\n  },\n  methods: {\n    /**\n     * Function to decide to embed or bootstrap\n     *\n     * @returns void\n     */\n    embedOrBootstrap() {\n      var t, e;\n      (t = this.embedConfig) != null && t.accessToken && ((e = this.embedConfig) != null && e.embedUrl) ? this.embedTile() : this.embed = this.powerbi.bootstrap(this.$refs.containerRef, this.embedConfig);\n    },\n    /**\n     * Embed the PowerBI Tile\n     *\n     * @returns void\n     */\n    embedTile() {\n      if (!this.$refs.containerRef) {\n        console.error(\"HTML container is not rendered or available\");\n        return;\n      }\n      this.embed = this.powerbi.embed(this.$refs.containerRef, this.embedConfig);\n    },\n    /**\n     * Set event handlers if available\n     *\n     * @returns void\n     */\n    callSetEventHandlers() {\n      this.eventHandlers && this.embed && this.setEventHandlers(this.embed, this.eventHandlers);\n    },\n    // Returns embed object to calling function\n    getTile() {\n      return this.embed;\n    }\n  }\n}), F = i({\n  name: \"PowerBIPaginatedReportEmbed\",\n  props: {\n    // Configuration for embedding the PowerBI Paginated report (Required)\n    embedConfig: {\n      type: Object,\n      required: !0\n    }\n  },\n  mixins: [o],\n  render() {\n    return r(\"div\", { ref: \"containerRef\", class: this.cssClassName, id: \"paginatedReportContainer\" });\n  },\n  watch: {\n    embedConfig: function(t, e) {\n      e && this.embedPaginatedReport();\n    }\n  },\n  computed: {\n    config() {\n      return n(this.embedConfig);\n    }\n  },\n  mounted() {\n    this.$refs.containerRef && this.embedPaginatedReport();\n  },\n  methods: {\n    /**\n     * Embed the PowerBI Paginated report\n     *\n     * @returns void\n     */\n    embedPaginatedReport() {\n      if (!this.$refs.containerRef) {\n        console.error(\"HTML container is not rendered or available\");\n        return;\n      }\n      this.embed = this.powerbi.embed(this.$refs.containerRef, this.config);\n    }\n  }\n}), J = i({\n  name: \"PowerBIVisualEmbed\",\n  props: {\n    // Configuration for embedding the PowerBI Visual (Required)\n    embedConfig: {\n      type: Object,\n      required: !0\n    },\n    // Map of event name and handler methods pairs to be triggered on the event (Optional)\n    eventHandlers: {\n      type: Map\n    }\n  },\n  mixins: [o],\n  render() {\n    return r(\"div\", { ref: \"containerRef\", class: this.cssClassName, id: \"visualContainer\" });\n  },\n  watch: {\n    embedConfig: function(t, e) {\n      e && (this.embedOrBootstrap(), this.callSetEventHandlers());\n    },\n    eventHandlers: function() {\n      this.callSetEventHandlers();\n    }\n  },\n  computed: {\n    config() {\n      return n(this.embedConfig);\n    }\n  },\n  mounted() {\n    this.$refs.containerRef && this.embedOrBootstrap(), this.callSetEventHandlers();\n  },\n  methods: {\n    /**\n     * Function to decide to embed or bootstrap\n     *\n     * @returns void\n     */\n    embedOrBootstrap() {\n      var t, e;\n      (t = this.config) != null && t.accessToken && ((e = this.config) != null && e.embedUrl) ? this.embedVisual() : this.embed = this.powerbi.bootstrap(this.$refs.containerRef, this.config);\n    },\n    /**\n     * Embed the PowerBI Visual\n     *\n     * @returns void\n     */\n    embedVisual() {\n      if (!this.$refs.containerRef) {\n        console.error(\"HTML container is not rendered or available\");\n        return;\n      }\n      this.embed = this.powerbi.embed(this.$refs.containerRef, this.config);\n    },\n    /**\n     * Set event handlers if available\n     *\n     * @returns void\n     */\n    callSetEventHandlers() {\n      this.eventHandlers && this.embed && this.setEventHandlers(this.embed, this.eventHandlers);\n    },\n    // Returns embed object to calling function\n    getVisual() {\n      return this.embed;\n    }\n  }\n}), z = i({\n  name: \"PowerBIQnaEmbed\",\n  props: {\n    // Configuration for embedding the PowerBI Qna visual (Required)\n    embedConfig: {\n      type: Object,\n      required: !0\n    },\n    // Map of event name and handler methods pairs to be triggered on the event (Optional)\n    eventHandlers: {\n      type: Map\n    }\n  },\n  mixins: [o],\n  render() {\n    return r(\"div\", { ref: \"containerRef\", class: this.cssClassName, id: \"qnaContainer\" });\n  },\n  watch: {\n    embedConfig: function(t, e) {\n      e && (this.embedOrBootstrap(), this.callSetEventHandlers());\n    },\n    eventHandlers: function() {\n      this.callSetEventHandlers();\n    }\n  },\n  computed: {\n    config() {\n      return n(this.embedConfig);\n    }\n  },\n  mounted() {\n    this.$refs.containerRef && this.embedOrBootstrap(), this.callSetEventHandlers();\n  },\n  methods: {\n    /**\n     * Function to decide to embed or bootstrap\n     *\n     * @returns void\n     */\n    embedOrBootstrap() {\n      var t, e;\n      (t = this.config) != null && t.accessToken && ((e = this.config) != null && e.embedUrl) ? this.embedQna() : this.embed = this.powerbi.bootstrap(this.$refs.containerRef, this.config);\n    },\n    /**\n     * Embed  the PowerBI Qna visual\n     *\n     * @returns void\n     */\n    embedQna() {\n      if (!this.$refs.containerRef) {\n        console.error(\"HTML container is not rendered or available\");\n        return;\n      }\n      this.embed = this.powerbi.embed(this.$refs.containerRef, this.config);\n    },\n    /**\n     * Set event handlers if available\n     *\n     * @returns void\n     */\n    callSetEventHandlers() {\n      this.eventHandlers && this.embed && this.setEventHandlers(this.embed, this.eventHandlers);\n    },\n    // Returns embed object to calling function\n    getQna() {\n      return this.embed;\n    }\n  }\n}), W = i({\n  name: \"PowerBICreateReport\",\n  props: {\n    // Configuration for creating the PowerBI Report (Required)\n    embedConfig: {\n      type: Object,\n      required: !0\n    },\n    eventHandlers: {\n      type: Map\n    }\n  },\n  mixins: [o],\n  render() {\n    return r(\"div\", { ref: \"containerRef\", class: this.cssClassName, id: \"createReportContainer\" });\n  },\n  watch: {\n    embedConfig: function(t, e) {\n      e && (this.createEmbedReport(), this.callSetEventHandlers());\n    },\n    eventHandlers: function() {\n      this.callSetEventHandlers();\n    }\n  },\n  computed: {\n    config() {\n      return n(this.embedConfig);\n    }\n  },\n  mounted() {\n    this.$refs.containerRef && this.createEmbedReport(), this.callSetEventHandlers();\n  },\n  methods: {\n    /**\n     * Create the report\n     *\n     * @returns void\n     */\n    createEmbedReport() {\n      if (!this.$refs.containerRef) {\n        console.error(\"HTML container is not rendered or available\");\n        return;\n      }\n      this.embed = this.powerbi.createReport(this.$refs.containerRef, this.config);\n    },\n    callSetEventHandlers() {\n      this.eventHandlers && this.embed && this.setEventHandlers(this.embed, this.eventHandlers);\n    },\n    getCreateObj() {\n      return this.embed;\n    }\n  }\n});\nexport {\n  W as PowerBICreateReport,\n  Q as PowerBIDashboardEmbed,\n  F as PowerBIPaginatedReportEmbed,\n  z as PowerBIQnaEmbed,\n  N as PowerBIReportEmbed,\n  U as PowerBITileEmbed,\n  J as PowerBIVisualEmbed\n};\n"]}