{"version":3,"file":"3483.4da3f83409498cd07e18.js","mappings":"iHAAA,IAAYA,E,yBAAZ,SAAYA,GACV,yBACA,qCACA,uBACA,iBACA,+BACA,6BACA,6CACA,mCACA,uCACA,iCACA,gDACA,6BACD,CAbD,CAAYA,IAAAA,EAAe,KAepB,MAAMC,EAAsBC,GACjCC,EAAkBC,IAAIF,IAAoB,UAEtCC,EAAoB,IAAIE,IAAoB,CAChD,CAACL,EAAgBM,QAAS,WAC1B,CAACN,EAAgBO,cAAe,kBAChC,CAACP,EAAgBQ,OAAQ,WACzB,CAACR,EAAgBS,IAAK,OACtB,CAACT,EAAgBU,WAAY,eAC7B,CAACV,EAAgBW,UAAW,cAC5B,CAACX,EAAgBY,kBAAmB,wBACpC,CAACZ,EAAgBa,aAAc,gBAC/B,CAACb,EAAgBc,eAAgB,mBACjC,CAACd,EAAgBe,YAAa,gBAC9B,CAACf,EAAgBgB,mBAAoB,uBACrC,CAAChB,EAAgBiB,UAAW,e,kBC5B9B,IAAYC,E,sDAAZ,SAAYA,GACV,yBACA,+BACA,gCACA,0BACA,kCACA,yCACA,2BACA,mDACA,+CACA,+CACA,+CACA,yCACA,mCACA,6CACA,8CACA,gDACA,4BACA,8BACA,4CACA,4CACA,4CACA,kDACA,oDACA,oDACA,oDACA,oCACA,kCACA,0DACA,4CACA,4CACA,4CACA,wCACA,wCACA,wCACA,wCACA,4CACA,oCACA,8DACA,wCACA,4CACA,gDACA,8CACA,8CACA,8CACA,kDACA,wDACA,0DACA,gDACA,gDACA,8BACA,kCACA,8CACA,gDACA,0BACA,4CACA,4CACA,4CACA,4CACA,8BACA,wDACA,kCACA,0CACA,8BACA,oCACA,wDACA,gEACA,4BACA,0BACA,kCACA,gDACA,+CACA,mCACA,4CACD,CA1ED,CAAYA,IAAAA,EAAW,KA4EhB,MAAMC,EAAsBC,GAAiCC,EAAejB,IAAIgB,IAAY,UACtFE,EAAsBF,GACjCG,EAAmBnB,IAAIgB,IAAY,UAE/BC,EAA2C,IAAI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AO,GAAMK,GAAiBoD,EAAanD,OAASmD,EAAanD,QACvF,KAAM,GAAI7B,GACZkF,EAAoB,QAChB,WAAc,QAAa,EAAAsB,EAAc,CACxCvG,IAAK,EACL,YAAa,WACbG,MAAO,WACP0B,KAAM,UACNO,KAAM,OACNV,QAAS0D,MAEX,QAAoB,IAAI,GAC3BH,EAAerD,OAASoD,EAAkBpD,QACtC,WAAc,SAAa,QAAyB+C,EAAmB/C,OAAQ,CAC9E5B,IAAK,EACL,cAAc,EACd,eAAgB,CACpBwB,cAAenB,EAAM+C,cACrBoD,gBAAiBnG,EAAM8C,eACvB0C,gBAAiBxF,EAAMgD,aAEnBgC,iBAAkBA,EAClBoB,QAASnF,EAAO,KAAOA,EAAO,GAAMK,GAAiBqD,EAAkBpD,OAAQ,IAC9E,KAAM,GAAI,CAAC,mBACd,QAAoB,IAAI,MAE9BK,EAAG,GACF,EAAG,CAAC,QAAS,YAElB,IE/JA,GAFiC,E,SAAA,GAAgB,EAAQ,CAAC,CAAC,YAAY,oB","sources":["webpack://shipley-du-lib/./common/js/du/appEnum/PricingTypeCode.ts","webpack://shipley-du-lib/./common/js/du/appEnum/ProductCode.ts","webpack://shipley-du-lib/./common/js/du/components/pricing/attributeHtmlContent.vue?2766","webpack://shipley-du-lib/./common/js/du/components/pricing/attributeHtmlContent.vue?d99c","webpack://shipley-du-lib/./common/js/du/components/pricing/attributeHtmlContent.vue","webpack://shipley-du-lib/./common/js/du/components/pricing/attributeTooltipContent.vue?4a8c","webpack://shipley-du-lib/./common/js/du/components/pricing/attributeTooltipContent.vue?be5c","webpack://shipley-du-lib/./common/js/du/components/pricing/attributeTooltipContent.vue","webpack://shipley-du-lib/./common/js/du/components/utility/htmlContent.vue?e95a","webpack://shipley-du-lib/./common/js/du/components/utility/htmlContent.vue","webpack://shipley-du-lib/./common/js/du/components/utility/htmlContent.vue?1964"],"sourcesContent":["export enum PricingTypeCode {\r\n  Unknown = 0,\r\n  VariablePrice = 1,\r\n  PreBuy = 2,\r\n  Cap = 3,\r\n  FixedPrice = 4,\r\n  FirstFill = 5,\r\n  WillCallCashPrice = 6,\r\n  Subscription = 7,\r\n  TemporaryPrice = 8,\r\n  FreeGallons = 9,\r\n  CommercialContract = 10,\r\n  BasePrice = 11,\r\n}\r\n\r\nexport const GetPricingTypeName = (pricingTypeCode: PricingTypeCode): string =>\r\n  PricingTypCodeMap.get(pricingTypeCode) ?? \"Unknown\";\r\n\r\nconst PricingTypCodeMap = new Map<number, string>([\r\n  [PricingTypeCode.Unknown, \"Unknown\"],\r\n  [PricingTypeCode.VariablePrice, \"Variable Price\"],\r\n  [PricingTypeCode.PreBuy, \"Pre Buy\"],\r\n  [PricingTypeCode.Cap, \"Cap\"],\r\n  [PricingTypeCode.FixedPrice, \"Fixed Price\"],\r\n  [PricingTypeCode.FirstFill, \"First Fill\"],\r\n  [PricingTypeCode.WillCallCashPrice, \"Will Call Cash Price\"],\r\n  [PricingTypeCode.Subscription, \"Subscription\"],\r\n  [PricingTypeCode.TemporaryPrice, \"Temporary Price\"],\r\n  [PricingTypeCode.FreeGallons, \"Free Gallons\"],\r\n  [PricingTypeCode.CommercialContract, \"Commercial Contract\"],\r\n  [PricingTypeCode.BasePrice, \"Base Price\"],\r\n]);\r\n","import IKeyValueItem from \"@interfaces/IKeyValueItem\";\r\n\r\nexport enum ProductCode {\r\n  Unknown = 0,\r\n  HeatingOil = 2,\r\n  NaturalGas = 60,\r\n  Propane = 70,\r\n  Electricity = 80,\r\n  ServiceProduct = 200,\r\n  Kerosene = 1,\r\n  UltraLowSulfurDiesel = 3,\r\n  Number4_2_8Percent = 4,\r\n  Number5_2_8Percent = 5,\r\n  Number6_2_8Percent = 6,\r\n  RegularGasoline = 7,\r\n  PlusGasoline = 8,\r\n  Premium93Gasoline = 9,\r\n  Premium92Gasoline = 10,\r\n  HighSulfurKerosene = 11,\r\n  Ultra_94 = 12,\r\n  HS_NON_RD = 13,\r\n  Number4_1Percent = 14,\r\n  Number5_1Percent = 15,\r\n  Number6_1Percent = 16,\r\n  Reformulated_Reg_87 = 17,\r\n  Reformulated_Plus_87 = 18,\r\n  Reformulated_Prem_93 = 19,\r\n  Reformulated_Prem_92 = 20,\r\n  Ultra_Rfg_94 = 21,\r\n  Winterblend = 22,\r\n  LowSulfurDiesel_Premium = 23,\r\n  Number4_2Percent = 24,\r\n  Number5_2Percent = 25,\r\n  Number6_2Percent = 26,\r\n  ConvWEthanol87 = 27,\r\n  ConvWEthanol89 = 28,\r\n  ConvWEthanol93 = 29,\r\n  ConvWEthanol94 = 30,\r\n  Ethanol_Gasoline = 31,\r\n  DyedUltraLSD = 32,\r\n  UltraLowSulfurDyedOffRoad = 33,\r\n  WinterizedULSD = 34,\r\n  ULSD_Winter_Dyed = 35,\r\n  Number6_0_5Percent = 36,\r\n  _87_RFG_w_Ethanol = 37,\r\n  _89_RFG_w_Ethanol = 38,\r\n  _93_RFG_w_Ethanol = 39,\r\n  Winter_Dye_LSD_NRLM = 40,\r\n  Artic_Express_Additive = 41,\r\n  Extreme_Diesel_Additive = 42,\r\n  Power_Blend_Diesel = 43,\r\n  Number4_1_5Percent = 44,\r\n  Ultra_LSD = 45,\r\n  Premium_HSD = 46,\r\n  Ultra_LSD_Premium = 47,\r\n  LocomotiveMotorOil = 48,\r\n  Asphalt = 50,\r\n  Asphalt_PG_64_22 = 51,\r\n  Asphalt_PG_52_28 = 52,\r\n  Asphalt_PG_58_28 = 53,\r\n  Asphalt_PG_76_22 = 54,\r\n  Emulsions = 55,\r\n  CutbackAsphaltEmulsion = 56,\r\n  AviationGas = 61,\r\n  AviationJetFuel = 62,\r\n  BioDiesel = 63,\r\n  BioDieselHSD = 64,\r\n  UltraLowSulferKerosene = 65,\r\n  UltraLowSulferKeroseneDyed = 66,\r\n  Bio_NRLM = 67,\r\n  B2_ULSD = 68,\r\n  HeatingOil2 = 72,\r\n  DieselExhaustFluid = 73,\r\n  PendingServiceReq = 399,\r\n  ServiceCall = 402,\r\n  InstallationOnly = 404,\r\n}\r\n\r\nexport const GetProductFullName = (product: ProductCode): string => productNameMap.get(product) ?? \"Unknown\";\r\nexport const GetProductCodeName = (product: ProductCode): string =>\r\n  productCodeNameMap.get(product) ?? \"Unknown\";\r\n\r\nconst productNameMap: Map<ProductCode, string> = new Map<ProductCode, string>([\r\n  [ProductCode.HeatingOil, \"Heating Oil\"],\r\n  [ProductCode.Propane, \"Propane\"],\r\n  [ProductCode.Electricity, \"Electricity\"],\r\n  [ProductCode.NaturalGas, \"Natural Gas\"],\r\n  [ProductCode.ServiceProduct, \"Service\"],\r\n  [ProductCode.ServiceCall, \"Service Call\"],\r\n  [ProductCode.InstallationOnly, \"Installation Only\"],\r\n]);\r\nconst productCodeNameMap: Map<ProductCode, string> = new Map<ProductCode, string>([\r\n  [ProductCode.HeatingOil, \"HeatingOil\"],\r\n  [ProductCode.Propane, \"Propane\"],\r\n  [ProductCode.Electricity, \"Electricity\"],\r\n  [ProductCode.NaturalGas, \"NaturalGas\"],\r\n  [ProductCode.ServiceProduct, \"ServiceProduct\"],\r\n  [ProductCode.ServiceCall, \"ServiceCall\"],\r\n  [ProductCode.InstallationOnly, \"InstallationOnly\"],\r\n]);\r\n\r\nconst productIconMap: Map<ProductCode, string> = new Map<ProductCode, string>([\r\n  [ProductCode.HeatingOil, \"icon-heating-oil\"],\r\n  [ProductCode.Propane, \"icon-propane\"],\r\n  [ProductCode.Electricity, \"icon-electricity\"],\r\n  [ProductCode.NaturalGas, \"icon-natural-gas\"],\r\n  [ProductCode.ServiceProduct, \"icon-protection-plans\"],\r\n  [ProductCode.ServiceCall, \"icon-installation\"],\r\n]);\r\n\r\nexport const getProductIcon = (product: ProductCode): string => productIconMap.get(product) ?? \"icon-energy\";\r\n\r\nexport const PricingProducts: readonly IKeyValueItem<ProductCode, string>[] = Object.freeze([\r\n  { Key: ProductCode.HeatingOil, Value: \"icon-heating-oil\" },\r\n  { Key: ProductCode.Propane, Value: \"icon-propane\" },\r\n  { Key: ProductCode.NaturalGas, Value: \"icon-natural-gas\" },\r\n  { Key: ProductCode.Electricity, Value: \"icon-electricity\" },\r\n  { Key: ProductCode.ServiceProduct, Value: \"icon-service\" },\r\n]);\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withModifiers as _withModifiers, createElementVNode as _createElementVNode, withCtx as _withCtx, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { key: 0 }\nconst _hoisted_2 = { key: 1 }\nconst _hoisted_3 = {\n  key: 0,\n  class: \"pr10\"\n}\n\nimport { computed, ref } from \"vue\";\r\nimport { TooltipType } from \"@interfaces/utility/Tooltip\";\r\nimport Modal from \"@compUtility/modal.vue\";\r\nimport HtmlContent from \"@compUtility/htmlContent.vue\";\r\nimport Icon from \"@compUtility/icon.vue\";\r\n\r\ninterface Props {\r\n  attribute: any;\r\n  tooltipText?: string;\r\n  tooltipType?: TooltipType;\r\n  contentText?: string;\r\n  PricePlanAttributeRegionIcon?: string;\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'attributeHtmlContent',\n  props: {\n    attribute: { default: undefined },\n    tooltipText: { default: undefined },\n    tooltipType: { default: TooltipType.AnchorTooltip },\n    contentText: { default: undefined },\n    PricePlanAttributeRegionIcon: { default: undefined }\n  },\n  setup(__props: any) {\n\r\nconst showContentModal = ref<boolean>(false);\r\n\r\nconst $props = __props;\r\n\r\nconst contentModalTitle = computed<string>(\r\n  () =>\r\n    `${\r\n      $props.attribute?.PricePlanAttributeRegionIcon\r\n        ? `<i class=\"fa ${$props.attribute.PricePlanAttributeRegionIcon}\"></i>`\r\n        : \"\"\r\n    } ${$props.attribute?.PricePlanAttributeMarketingDescription}`\r\n);\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"span\", null, [\n    ($props.tooltipType === _unref(TooltipType).QuestionTooltipIcon)\n      ? (_openBlock(), _createElementBlock(\"span\", _hoisted_1))\n      : (($props.attribute?.HtmlContentId ?? 0) > 0)\n        ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, [\n            _createElementVNode(\"a\", {\n              href: \"#\",\n              class: \"html-content\",\n              onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (showContentModal.value = true), [\"prevent\"]))\n            }, [\n              ($props.PricePlanAttributeRegionIcon)\n                ? (_openBlock(), _createElementBlock(\"span\", _hoisted_3, [\n                    _createVNode(Icon, {\n                      icon: $props.PricePlanAttributeRegionIcon\n                    }, null, 8, [\"icon\"])\n                  ]))\n                : _createCommentVNode(\"\", true),\n              _createTextVNode(\" \" + _toDisplayString($props.contentText), 1)\n            ])\n          ]))\n        : _createCommentVNode(\"\", true),\n    (showContentModal.value)\n      ? (_openBlock(), _createBlock(Modal, {\n          key: 2,\n          title: contentModalTitle.value,\n          onModalClosed: _cache[1] || (_cache[1] = ($event: any) => (showContentModal.value = false))\n        }, {\n          body: _withCtx(() => [\n            _createVNode(HtmlContent, {\n              \"html-content-id\": $props.attribute.HtmlContentId\n            }, null, 8, [\"html-content-id\"])\n          ]),\n          _: 1\n        }, 8, [\"title\"]))\n      : _createCommentVNode(\"\", true)\n  ]))\n}\n}\n\n})","import script from \"./attributeHtmlContent.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./attributeHtmlContent.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","<template>\r\n  <span>\r\n    <span v-if=\"$props.tooltipType === TooltipType.QuestionTooltipIcon\"></span>\r\n    <span v-else-if=\"($props.attribute?.HtmlContentId ?? 0) > 0\">\r\n      <a\r\n        href=\"#\"\r\n        class=\"html-content\"\r\n        @click.prevent=\"showContentModal = true\"\r\n      >\r\n        <span\r\n          v-if=\"$props.PricePlanAttributeRegionIcon\"\r\n          class=\"pr10\"\r\n        >\r\n          <Icon :icon=\"$props.PricePlanAttributeRegionIcon\" />\r\n        </span>\r\n        {{ $props.contentText }}\r\n      </a>\r\n    </span>\r\n    <Modal\r\n      v-if=\"showContentModal\"\r\n      :title=\"contentModalTitle\"\r\n      @modal-closed=\"showContentModal = false\"\r\n    >\r\n      <template #body>\r\n        <HtmlContent :html-content-id=\"$props.attribute.HtmlContentId\" />\r\n      </template>\r\n    </Modal>\r\n  </span>\r\n</template>\r\n<script lang=\"ts\" setup>\r\nimport { computed, ref } from \"vue\";\r\nimport { TooltipType } from \"@interfaces/utility/Tooltip\";\r\nimport Modal from \"@compUtility/modal.vue\";\r\nimport HtmlContent from \"@compUtility/htmlContent.vue\";\r\nimport Icon from \"@compUtility/icon.vue\";\r\n\r\nconst showContentModal = ref<boolean>(false);\r\n\r\ninterface Props {\r\n  attribute: any;\r\n  tooltipText?: string;\r\n  tooltipType?: TooltipType;\r\n  contentText?: string;\r\n  PricePlanAttributeRegionIcon?: string;\r\n}\r\n\r\nconst $props = withDefaults(defineProps<Props>(), {\r\n  attribute: undefined,\r\n  pricePlan: undefined,\r\n  tooltipText: undefined,\r\n  tooltipType: TooltipType.AnchorTooltip,\r\n  contentText: undefined,\r\n  PricePlanAttributeRegionIcon: undefined,\r\n});\r\n\r\nconst contentModalTitle = computed<string>(\r\n  () =>\r\n    `${\r\n      $props.attribute?.PricePlanAttributeRegionIcon\r\n        ? `<i class=\"fa ${$props.attribute.PricePlanAttributeRegionIcon}\"></i>`\r\n        : \"\"\r\n    } ${$props.attribute?.PricePlanAttributeMarketingDescription}`\r\n);\r\n</script>\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, createVNode as _createVNode, createTextVNode as _createTextVNode, withModifiers as _withModifiers, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode } from \"vue\"\n\nconst _hoisted_1 = [\"id\"]\nconst _hoisted_2 = { key: 1 }\n\nimport { computed } from \"vue\";\r\nimport TooltipComponent from \"@compUtility/tooltip.vue\";\r\nimport { genComponentId } from \"@components/componentHelpers\";\r\nimport { ToolTip, TooltipType } from \"@interfaces/utility/Tooltip\";\r\nimport * as Mustache from \"mustache\";\r\n\r\ninterface Props {\r\n  attribute: any;\r\n  pricePlan: any;\r\n  tooltipText?: string;\r\n  tooltipType: TooltipType;\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'attributeTooltipContent',\n  props: {\n    attribute: { default: undefined },\n    pricePlan: { default: undefined },\n    tooltipText: { default: undefined },\n    tooltipType: { default: TooltipType.AnchorTooltip }\n  },\n  setup(__props: any) {\n\r\nconst $props = __props;\r\n\r\nconst compId = genComponentId(\"attr-tooltip\");\r\n\r\nconst _renderTooltip = (stringValue: string, obj: any): string => {\r\n  return Mustache.to_html(stringValue, obj) ?? \"\";\r\n};\r\n\r\nconst text = computed<string>(() =>\r\n  _renderTooltip($props.attribute?.ToolTipText ?? $props.tooltipText ?? \"\", $props.attribute)\r\n);\r\n\r\nconst tooltipData = computed<ToolTip>(() => {\r\n  return {\r\n    position: \"top\",\r\n    tooltipText: text.value ? text.value : \"\",\r\n    styles: { opacity: 0.9 },\r\n    tooltipType: $props.tooltipType,\r\n    showTrigger: [\"hover\", \"click\"],\r\n    attachToCustomElementId: compId,\r\n  };\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"span\", {\n    class: \"attribute-tooltip-wrapper\",\n    id: _unref(compId)\n  }, [\n    (tooltipData.value.tooltipType === _unref(TooltipType).AnchorTooltip)\n      ? (_openBlock(), _createElementBlock(\"a\", {\n          key: 0,\n          href: \"#\",\n          class: \"attribute-tooltip\",\n          onClick: _cache[0] || (_cache[0] = _withModifiers(() => {}, [\"prevent\"]))\n        }, [\n          _createTextVNode(_toDisplayString($props.tooltipText) + \" \", 1),\n          _createVNode(TooltipComponent, {\n            ref: \"tooltip\",\n            data: tooltipData.value\n          }, null, 8, [\"data\"])\n        ]))\n      : (tooltipData.value.tooltipType === _unref(TooltipType).QuestionTooltipIcon)\n        ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, [\n            _createTextVNode(_toDisplayString($props.tooltipText) + \" \", 1),\n            _cache[1] || (_cache[1] = _createElementVNode(\"i\", { class: \"fa fa-question-circle\" }, null, -1)),\n            _createVNode(TooltipComponent, {\n              ref: \"tooltip\",\n              data: tooltipData.value\n            }, null, 8, [\"data\"])\n          ]))\n        : _createCommentVNode(\"\", true)\n  ], 8, _hoisted_1))\n}\n}\n\n})","import script from \"./attributeTooltipContent.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./attributeTooltipContent.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","<template>\r\n  <span\r\n    class=\"attribute-tooltip-wrapper\"\r\n    :id=\"compId\"\r\n  >\r\n    <a\r\n      v-if=\"tooltipData.tooltipType === TooltipType.AnchorTooltip\"\r\n      href=\"#\"\r\n      class=\"attribute-tooltip\"\r\n      @click.prevent\r\n    >\r\n      {{ $props.tooltipText }}\r\n      <TooltipComponent\r\n        ref=\"tooltip\"\r\n        :data=\"tooltipData\"\r\n      />\r\n    </a>\r\n    <span v-else-if=\"tooltipData.tooltipType === TooltipType.QuestionTooltipIcon\">\r\n      {{ $props.tooltipText }}\r\n      <i class=\"fa fa-question-circle\"></i>\r\n      <TooltipComponent\r\n        ref=\"tooltip\"\r\n        :data=\"tooltipData\"\r\n      />\r\n    </span>\r\n  </span>\r\n</template>\r\n<script lang=\"ts\" setup>\r\nimport { computed } from \"vue\";\r\nimport TooltipComponent from \"@compUtility/tooltip.vue\";\r\nimport { genComponentId } from \"@components/componentHelpers\";\r\nimport { ToolTip, TooltipType } from \"@interfaces/utility/Tooltip\";\r\nimport * as Mustache from \"mustache\";\r\n\r\ninterface Props {\r\n  attribute: any;\r\n  pricePlan: any;\r\n  tooltipText?: string;\r\n  tooltipType: TooltipType;\r\n}\r\n\r\nconst $props = withDefaults(defineProps<Props>(), {\r\n  attribute: undefined,\r\n  pricePlan: undefined,\r\n  tooltipText: undefined,\r\n  tooltipType: TooltipType.AnchorTooltip,\r\n});\r\n\r\nconst compId = genComponentId(\"attr-tooltip\");\r\n\r\nconst _renderTooltip = (stringValue: string, obj: any): string => {\r\n  return Mustache.to_html(stringValue, obj) ?? \"\";\r\n};\r\n\r\nconst text = computed<string>(() =>\r\n  _renderTooltip($props.attribute?.ToolTipText ?? $props.tooltipText ?? \"\", $props.attribute)\r\n);\r\n\r\nconst tooltipData = computed<ToolTip>(() => {\r\n  return {\r\n    position: \"top\",\r\n    tooltipText: text.value ? text.value : \"\",\r\n    styles: { opacity: 0.9 },\r\n    tooltipType: $props.tooltipType,\r\n    showTrigger: [\"hover\", \"click\"],\r\n    attachToCustomElementId: compId,\r\n  };\r\n});\r\n</script>\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx } from \"vue\"\n\nconst _hoisted_1 = [\"innerHTML\"]\n\nimport { onBeforeMount, onMounted, ref, shallowRef, computed } from \"vue\";\r\nimport { boxBool, trueFalseString } from \"@utility/boolUtils\";\r\nimport { useContentStore } from \"@stores/contentStore\";\r\nimport SkeletonBox from \"@compUtility/skeletonBox.vue\";\r\nimport ActionButton from \"@compForm/button.vue\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'htmlContent',\n  props: {\n    brandTypeId: {},\n    htmlContentKey: {},\n    htmlContentId: {},\n    htmlContent: {},\n    pageId: {},\n    renderTemplateData: {},\n    contentClass: {},\n    forceAllowEdit: { type: [Boolean, String] },\n    containerKey: {}\n  },\n  emits: [\"content-loaded\", \"content-not-found\", \"mounted\"],\n  setup(__props: any, { expose: __expose, emit: __emit }) {\n\r\nconst props = __props;\r\n\r\nconst $emits = __emit;\r\n\r\nconst {\r\n  getHtmlContentRenderedTemplate,\r\n  getHtmlContent,\r\n  renderHtmlTemplate,\r\n  isContentEditorSession,\r\n  clearStoreContent,\r\n  getPageContentMaps,\r\n} = useContentStore();\r\nconst editModalComponent = shallowRef<any>(null);\r\nconst renderedHtml = computed(() => {\r\n  return renderHtmlTemplate(injectHtml.value, props.renderTemplateData) ?? \"\";\r\n});\r\nconst injectHtml = ref<string>(props.htmlContent ?? \"\");\r\nconst isLoading = ref<boolean>(\r\n  injectHtml.value === \"\" &&\r\n    (props.htmlContentKey !== undefined ||\r\n      props.htmlContentId !== undefined ||\r\n      props.containerKey !== undefined)\r\n);\r\nconst htmlIsActive = ref<boolean>(false);\r\nconst showContentEditor = ref<boolean>(false);\r\nconst hasEditorTools = ref<boolean>(false);\r\nif (isContentEditorSession() || (props.forceAllowEdit !== undefined && boxBool(props.forceAllowEdit))) {\r\n  import(\"@components/marketing/contentManager/editHtmlContentModal.vue\").then((x) => {\r\n    hasEditorTools.value = true;\r\n    editModalComponent.value = x.default;\r\n  });\r\n}\r\n\r\nconst onEditClick = () => (showContentEditor.value = true);\r\nconst launchEditor = () => onEditClick();\r\nconst onContentUpdated = () => {\r\n  clearStoreContent();\r\n  populateContent();\r\n};\r\n\r\nconst triggerEmit = () => {\r\n  if ((injectHtml.value ?? \"\").trim() !== \"\") {\r\n    $emits(\"content-loaded\", props.htmlContentKey !== undefined ? props.htmlContentKey : props.htmlContentId);\r\n  } else {\r\n    $emits(\r\n      \"content-not-found\",\r\n      props.htmlContentKey !== undefined ? props.htmlContentKey : props.htmlContentId\r\n    );\r\n  }\r\n};\r\n\r\nconst populateContent = async () => {\r\n  if (props.renderTemplateData && (props.htmlContentKey || props.htmlContentId)) {\r\n    const x = await getHtmlContentRenderedTemplate(\r\n      props.renderTemplateData,\r\n      props.brandTypeId ?? 1,\r\n      props.htmlContentKey,\r\n      props.htmlContentId\r\n    );\r\n    injectHtml.value = x;\r\n    triggerEmit();\r\n    isLoading.value = false;\r\n  } else if (props.htmlContentKey || props.htmlContentId) {\r\n    const content = await getHtmlContent(props.brandTypeId ?? 1, [\r\n      { id: props.htmlContentId, contentKey: props.htmlContentKey },\r\n    ]);\r\n    if (content.length >= 1) {\r\n      injectHtml.value = content[0].HtmlContentHtml ?? \"\";\r\n    }\r\n    triggerEmit();\r\n    isLoading.value = false;\r\n  } else {\r\n    isLoading.value = false;\r\n  }\r\n};\r\n\r\nonBeforeMount(async () => await populateContent());\r\n\r\nonMounted(async () => {\r\n  if (props.brandTypeId && props.pageId) {\r\n    const contents = await getPageContentMaps(\r\n      props.pageId,\r\n      props.brandTypeId,\r\n      props.htmlContentKey ? [props.htmlContentKey] : []\r\n    );\r\n    injectHtml.value = props.containerKey\r\n      ? contents?.find((x) => x.PageContainerKey === props.containerKey)?.HtmlContent ?? \"\"\r\n      : (contents?.length ?? 0) > 0\r\n      ? contents?.map((x) => x.HtmlContent).join(\"\") ?? (contents ?? [])[0].HtmlContent\r\n      : \"\";\r\n    triggerEmit();\r\n    isLoading.value = false;\r\n  }\r\n\r\n  $emits(\"mounted\");\r\n});\r\n\r\n__expose({\r\n  launchEditor,\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createBlock(SkeletonBox, {\n    class: _normalizeClass(hasEditorTools.value ? 'content-editor-session' : ''),\n    loading: isLoading.value\n  }, {\n    default: _withCtx(() => [\n      _createElementVNode(\"div\", {\n        innerHTML: renderedHtml.value,\n        class: _normalizeClass([props.contentClass, htmlIsActive.value ? 'active' : '']),\n        onClick: _cache[0] || (_cache[0] = ($event: any) => (htmlIsActive.value = !htmlIsActive.value))\n      }, null, 10, _hoisted_1),\n      (hasEditorTools.value)\n        ? (_openBlock(), _createBlock(ActionButton, {\n            key: 0,\n            \"btn-class\": \"btn-link\",\n            class: \"edit-btn\",\n            icon: \"fa-edit\",\n            text: \"Edit\",\n            onClick: onEditClick\n          }))\n        : _createCommentVNode(\"\", true),\n      (hasEditorTools.value && showContentEditor.value)\n        ? (_openBlock(), _createBlock(_resolveDynamicComponent(editModalComponent.value), {\n            key: 1,\n            \"show-modal\": true,\n            \"html-content\": {\r\n        HtmlContentId: props.htmlContentId,\r\n        HtmlContentName: props.htmlContentKey,\r\n        HtmlContentHtml: props.htmlContent,\r\n      },\n            onContentUpdated: onContentUpdated,\n            onClose: _cache[1] || (_cache[1] = ($event: any) => (showContentEditor.value = false))\n          }, null, 40, [\"html-content\"]))\n        : _createCommentVNode(\"\", true)\n    ]),\n    _: 1\n  }, 8, [\"class\", \"loading\"]))\n}\n}\n\n})","<template>\r\n  <SkeletonBox\r\n    :class=\"hasEditorTools ? 'content-editor-session' : ''\"\r\n    :loading=\"isLoading\"\r\n  >\r\n    <div\r\n      v-html=\"renderedHtml\"\r\n      :class=\"[props.contentClass, htmlIsActive ? 'active' : '']\"\r\n      @click=\"htmlIsActive = !htmlIsActive\"\r\n    />\r\n    <ActionButton\r\n      v-if=\"hasEditorTools\"\r\n      btn-class=\"btn-link\"\r\n      class=\"edit-btn\"\r\n      icon=\"fa-edit\"\r\n      text=\"Edit\"\r\n      @click=\"onEditClick\"\r\n    />\r\n    <component\r\n      v-if=\"hasEditorTools && showContentEditor\"\r\n      :is=\"editModalComponent\"\r\n      :show-modal=\"true\"\r\n      :html-content=\"{\r\n        HtmlContentId: props.htmlContentId,\r\n        HtmlContentName: props.htmlContentKey,\r\n        HtmlContentHtml: props.htmlContent,\r\n      }\"\r\n      @content-updated=\"onContentUpdated\"\r\n      @close=\"showContentEditor = false\"\r\n    />\r\n  </SkeletonBox>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport { onBeforeMount, onMounted, ref, shallowRef, computed } from \"vue\";\r\nimport { boxBool, trueFalseString } from \"@utility/boolUtils\";\r\nimport { useContentStore } from \"@stores/contentStore\";\r\nimport SkeletonBox from \"@compUtility/skeletonBox.vue\";\r\nimport ActionButton from \"@compForm/button.vue\";\r\n\r\nconst props = defineProps<{\r\n  brandTypeId?: number;\r\n  htmlContentKey?: string;\r\n  htmlContentId?: number;\r\n  htmlContent?: string;\r\n  pageId?: number;\r\n  renderTemplateData?: unknown;\r\n  contentClass?: string;\r\n  forceAllowEdit?: trueFalseString;\r\n  containerKey?: string;\r\n}>();\r\n\r\nconst $emits = defineEmits<{\r\n  (e: \"content-loaded\", d: string | number | undefined): void;\r\n  (e: \"content-not-found\", d: string | number | undefined): void;\r\n  (e: \"mounted\"): void;\r\n}>();\r\n\r\nconst {\r\n  getHtmlContentRenderedTemplate,\r\n  getHtmlContent,\r\n  renderHtmlTemplate,\r\n  isContentEditorSession,\r\n  clearStoreContent,\r\n  getPageContentMaps,\r\n} = useContentStore();\r\nconst editModalComponent = shallowRef<any>(null);\r\nconst renderedHtml = computed(() => {\r\n  return renderHtmlTemplate(injectHtml.value, props.renderTemplateData) ?? \"\";\r\n});\r\nconst injectHtml = ref<string>(props.htmlContent ?? \"\");\r\nconst isLoading = ref<boolean>(\r\n  injectHtml.value === \"\" &&\r\n    (props.htmlContentKey !== undefined ||\r\n      props.htmlContentId !== undefined ||\r\n      props.containerKey !== undefined)\r\n);\r\nconst htmlIsActive = ref<boolean>(false);\r\nconst showContentEditor = ref<boolean>(false);\r\nconst hasEditorTools = ref<boolean>(false);\r\nif (isContentEditorSession() || (props.forceAllowEdit !== undefined && boxBool(props.forceAllowEdit))) {\r\n  import(\"@components/marketing/contentManager/editHtmlContentModal.vue\").then((x) => {\r\n    hasEditorTools.value = true;\r\n    editModalComponent.value = x.default;\r\n  });\r\n}\r\n\r\nconst onEditClick = () => (showContentEditor.value = true);\r\nconst launchEditor = () => onEditClick();\r\nconst onContentUpdated = () => {\r\n  clearStoreContent();\r\n  populateContent();\r\n};\r\n\r\nconst triggerEmit = () => {\r\n  if ((injectHtml.value ?? \"\").trim() !== \"\") {\r\n    $emits(\"content-loaded\", props.htmlContentKey !== undefined ? props.htmlContentKey : props.htmlContentId);\r\n  } else {\r\n    $emits(\r\n      \"content-not-found\",\r\n      props.htmlContentKey !== undefined ? props.htmlContentKey : props.htmlContentId\r\n    );\r\n  }\r\n};\r\n\r\nconst populateContent = async () => {\r\n  if (props.renderTemplateData && (props.htmlContentKey || props.htmlContentId)) {\r\n    const x = await getHtmlContentRenderedTemplate(\r\n      props.renderTemplateData,\r\n      props.brandTypeId ?? 1,\r\n      props.htmlContentKey,\r\n      props.htmlContentId\r\n    );\r\n    injectHtml.value = x;\r\n    triggerEmit();\r\n    isLoading.value = false;\r\n  } else if (props.htmlContentKey || props.htmlContentId) {\r\n    const content = await getHtmlContent(props.brandTypeId ?? 1, [\r\n      { id: props.htmlContentId, contentKey: props.htmlContentKey },\r\n    ]);\r\n    if (content.length >= 1) {\r\n      injectHtml.value = content[0].HtmlContentHtml ?? \"\";\r\n    }\r\n    triggerEmit();\r\n    isLoading.value = false;\r\n  } else {\r\n    isLoading.value = false;\r\n  }\r\n};\r\n\r\nonBeforeMount(async () => await populateContent());\r\n\r\nonMounted(async () => {\r\n  if (props.brandTypeId && props.pageId) {\r\n    const contents = await getPageContentMaps(\r\n      props.pageId,\r\n      props.brandTypeId,\r\n      props.htmlContentKey ? [props.htmlContentKey] : []\r\n    );\r\n    injectHtml.value = props.containerKey\r\n      ? contents?.find((x) => x.PageContainerKey === props.containerKey)?.HtmlContent ?? \"\"\r\n      : (contents?.length ?? 0) > 0\r\n      ? contents?.map((x) => x.HtmlContent).join(\"\") ?? (contents ?? [])[0].HtmlContent\r\n      : \"\";\r\n    triggerEmit();\r\n    isLoading.value = false;\r\n  }\r\n\r\n  $emits(\"mounted\");\r\n});\r\n\r\ndefineExpose({\r\n  launchEditor,\r\n});\r\n</script>\r\n<style scoped>\r\n.content-editor-session:hover .edit-btn,\r\n.content-editor-session.active .edit-btn {\r\n  opacity: 0.9;\r\n}\r\n\r\n.edit-btn {\r\n  position: absolute;\r\n  top: 25px;\r\n  right: 15px;\r\n  z-index: 1;\r\n  background-color: #fff;\r\n  border: 1px solid #eee;\r\n  opacity: 0.4;\r\n  transition: opacity 0.3s ease-in-out;\r\n}\r\n</style>\r\n","import script from \"./htmlContent.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./htmlContent.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./htmlContent.vue?vue&type=style&index=0&id=2ddcbb40&scoped=true&lang=css\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-2ddcbb40\"]])\n\nexport default __exports__"],"names":["PricingTypeCode","GetPricingTypeName","pricingTypeCode","PricingTypCodeMap","get","Map","Unknown","VariablePrice","PreBuy","Cap","FixedPrice","FirstFill","WillCallCashPrice","Subscription","TemporaryPrice","FreeGallons","CommercialContract","BasePrice","ProductCode","GetProductFullName","product","productNameMap","GetProductCodeName","productCodeNameMap","HeatingOil","Propane","Electricity","NaturalGas","ServiceProduct","ServiceCall","InstallationOnly","productIconMap","getProductIcon","PricingProducts","Object","freeze","Key","Value","_hoisted_1","key","_hoisted_2","_hoisted_3","class","__name","props","attribute","default","undefined","tooltipText","tooltipType","Tooltip","AnchorTooltip","contentText","PricePlanAttributeRegionIcon","setup","__props","showContentModal","$props","contentModalTitle","PricePlanAttributeMarketingDescription","_ctx","_cache","QuestionTooltipIcon","HtmlContentId","href","onClick","$event","value","icon","title","onModalClosed","body","_","pricePlan","compId","text","_renderTooltip","stringValue","ToolTipText","obj","tooltipData","position","styles","opacity","showTrigger","attachToCustomElementId","id","ref","data","brandTypeId","htmlContentKey","htmlContentId","htmlContent","pageId","renderTemplateData","contentClass","forceAllowEdit","type","Boolean","String","containerKey","emits","expose","__expose","emit","__emit","$emits","getHtmlContentRenderedTemplate","getHtmlContent","renderHtmlTemplate","isContentEditorSession","clearStoreContent","getPageContentMaps","u","editModalComponent","renderedHtml","injectHtml","isLoading","htmlIsActive","showContentEditor","hasEditorTools","then","x","onEditClick","onContentUpdated","populateContent","triggerEmit","trim","async","content","contentKey","length","HtmlContentHtml","contents","find","PageContainerKey","HtmlContent","map","join","launchEditor","loading","innerHTML","A","HtmlContentName","onClose"],"sourceRoot":""}