{"version":3,"sources":["Assets/pc/scripts/GSS.widget.js"],"names":["GSS","widget","getElementByGssName","name","$","attributeNames","gssElementName","getElementByGssTextVariantId","textVariantId","getElementByGssPendingUserId","pendingUserId","getElementByGssUserId","userId","getWidgetContainer","dashboardWidgetId","getWidgetContentElement","find","first","getWidgetName","attr","widgetCodeName","getWidgetTitleElement","setWidgetProperties","notifyWidgetErrorUrl","subjectParamName","errorParamName","widgetErrorSettings","url","clientId","componentId","ContentVersionIdName","dashboardId","navigationState","dashboardWidgetHeight","dashboardWidgetWidth","omsClientCodeName","omsClientId","pageNumber","projectId","ReadOnlyName","widgetStatus","menuItemAction","instrumentContentId","participationId","strengthsReportId","memberId","sourceUrl","notifyUrl","uniqueWidgetIdName"],"mappings":"AAKA,GAAIA,MACJ,SAAWA,GACP,GAAIC,IACJ,SAAWA,GAqCP,QAASC,GAAoBC,GAGzB,MAAOC,GAAE,IAAMH,EAAOI,eAAeC,eAAiB,KAAOH,EAAO,MAGxE,QAASI,GAA6BC,GAGlC,MAAOJ,GAAE,IAAMH,EAAOI,eAAeG,cAAgB,KAAOA,EAAgB,MAGhF,QAASC,GAA6BC,GAGlC,MAAON,GAAE,IAAMH,EAAOI,eAAeK,cAAgB,KAAOA,EAAgB,MAGhF,QAASC,GAAsBC,GAG3B,MAAOR,GAAE,IAAMH,EAAOI,eAAeO,OAAS,KAAOA,EAAS,MAGlE,QAASC,GAAmBC,GAGxB,MAAOV,GAAE,IAAMH,EAAOI,eAAeS,kBAAoB,KAAOA,EAAoB,MAAQb,EAAOI,eAAeC,eAAiB,iBAGvI,QAASS,GAAwBD,GAG7B,MAAOD,GAAmBC,GACrBE,KAAK,IAAMf,EAAOI,eAAeC,eAAiB,wBAAwBW,QAGnF,QAASC,GAAcJ,GAGnB,MAAOD,GAAmBC,GAAmBK,KAAKlB,EAAOI,eAAee,gBAG5E,QAASC,GAAsBP,GAG3B,MAAOD,GAAmBC,GACrBE,KAAK,IAAMf,EAAOI,eAAeC,eAAiB,uBAAuBW,QAGlF,QAASK,GAAoBC,EAAsBC,EAAkBC,GAKjExB,EAAOyB,oBAAoBD,eAAiBA,EAC5CxB,EAAOyB,oBAAoBF,iBAAmBA,EAC9CvB,EAAOyB,oBAAoBC,IAAMJ,EA7FrCtB,EAAOI,gBAEHuB,SAAU,oBACVC,YAAa,uBACbvB,eAAgB,gBAChBwB,qBAAsB,qBACtBC,YAAa,wBACbjB,kBAAmB,2BACnBkB,gBAAiB,qBACjBC,sBAAuB,yBACvBC,qBAAsB,wBACtBC,kBAAmB,8BACnBC,YAAa,wBACbC,WAAY,oBACZ3B,cAAe,2BACf4B,UAAW,qBACXC,aAAc,oBACd/B,cAAe,2BACfI,OAAQ,kBACRQ,eAAgB,4BAChBoB,aAAc,yBACdC,eAAgB,uBAChBC,oBAAqB,uBACrBC,gBAAiB,2BACjBC,kBAAmB,6BACnBC,SAAU,qBAEd5C,EAAOyB,qBAEHD,eAAgB,GAChBD,iBAAkB,GAClBsB,UAAW,GACXC,UAAW,8BACXpB,IAAK,IAET1B,EAAO+C,mBAAqB,oBAM5B/C,EAAOC,oBAAsBA,EAM7BD,EAAOM,6BAA+BA,EAMtCN,EAAOQ,6BAA+BA,EAMtCR,EAAOU,sBAAwBA,EAM/BV,EAAOY,mBAAqBA,EAO5BZ,EAAOc,wBAA0BA,EAMjCd,EAAOiB,cAAgBA,EAOvBjB,EAAOoB,sBAAwBA,EAU/BpB,EAAOqB,oBAAsBA,GAC9BrB,EAASD,EAAIC,SAAWD,EAAIC,aAChCD,MAAQA","file":"Assets/pc/scripts/GSS.widget.min.js","sourcesContent":["/*!--------------------------------------------------------------------------\n// \n// Copyright (c) The Gallup Organization. All rights reserved.\n// \n//--------------------------------------------------------------------------*/\nvar GSS;\n(function (GSS) {\n var widget;\n (function (widget) {\n widget.attributeNames = {\n // The gss specific data attribute names.\n clientId: 'data-gss-clientid',\n componentId: 'data-gss-componentId',\n gssElementName: 'data-gss-name',\n ContentVersionIdName: 'data-gss-contverid',\n dashboardId: 'data-gss-dashboard-id',\n dashboardWidgetId: 'data-dashboard-widget-id',\n navigationState: 'data-gss-nav-state',\n dashboardWidgetHeight: \"data-gss-widget-height\",\n dashboardWidgetWidth: \"data-gss-widget-width\",\n omsClientCodeName: 'data-gss-oms-clientcodename',\n omsClientId: 'data-gss-oms-clientid',\n pageNumber: 'data-gss-page-num',\n pendingUserId: \"data-gss-pending-user-id\",\n projectId: \"data-gss-projectId\",\n ReadOnlyName: \"data-gss-readonly\",\n textVariantId: \"data-gss-text-variant-id\",\n userId: 'data-gss-userid',\n widgetCodeName: 'data-gss-widget-code-name',\n widgetStatus: 'data-gss-widget-status',\n menuItemAction: 'data-gss-menu-action',\n instrumentContentId: 'data-gss-instrcontid',\n participationId: 'data-gss-participationid',\n strengthsReportId: 'data-gss-strengthsreportid',\n memberId: 'data-gss-memberid'\n };\n widget.widgetErrorSettings = {\n // The settings for sending a widget error notification.\n errorParamName: '',\n subjectParamName: '',\n sourceUrl: '',\n notifyUrl: '../_Error/NotifyWidgetError',\n url: ''\n };\n widget.uniqueWidgetIdName = 'dashboardWidgetId';\n function getElementByGssName(name) {\n // Wraps a jQuery selector for getting an element based on a specific gss name data attribute value.\n // The attribute value to select on.\n return $('[' + widget.attributeNames.gssElementName + '=\"' + name + '\"]');\n }\n widget.getElementByGssName = getElementByGssName;\n function getElementByGssTextVariantId(textVariantId) {\n // Wraps a jQuery selector for getting an element based on a specific gss text variant id data attribute value.\n // The attribute value to select on.\n return $('[' + widget.attributeNames.textVariantId + '=\"' + textVariantId + '\"]');\n }\n widget.getElementByGssTextVariantId = getElementByGssTextVariantId;\n function getElementByGssPendingUserId(pendingUserId) {\n // Wraps a jQuery selector for getting an element based on a specific gss pending user id data attribute value.\n // The attribute value to select on.\n return $('[' + widget.attributeNames.pendingUserId + '=\"' + pendingUserId + '\"]');\n }\n widget.getElementByGssPendingUserId = getElementByGssPendingUserId;\n function getElementByGssUserId(userId) {\n // Wraps a jQuery selector for getting an element based on a specific gss user id data attribute value.\n // The attribute value to select on.\n return $('[' + widget.attributeNames.userId + '=\"' + userId + '\"]');\n }\n widget.getElementByGssUserId = getElementByGssUserId;\n function getWidgetContainer(dashboardWidgetId) {\n // Gets the widget container element for the specified unique widget identifier value.\n // The unique widget instance identifier.\n return $('[' + widget.attributeNames.dashboardWidgetId + '=\"' + dashboardWidgetId + '\"][' + widget.attributeNames.gssElementName + '=\"divWidget\"]');\n }\n widget.getWidgetContainer = getWidgetContainer;\n function getWidgetContentElement(dashboardWidgetId) {\n // Gets the widget element that contains the main widget content.\n // The unique widget instance identifier.\n return getWidgetContainer(dashboardWidgetId)\n .find('[' + widget.attributeNames.gssElementName + '=\"divWidgetContent\"]').first();\n }\n widget.getWidgetContentElement = getWidgetContentElement;\n function getWidgetName(dashboardWidgetId) {\n // Gets the widget name based on the dashboard widget id value.\n // The unique widget instance identifier.\n return getWidgetContainer(dashboardWidgetId).attr(widget.attributeNames.widgetCodeName);\n }\n widget.getWidgetName = getWidgetName;\n function getWidgetTitleElement(dashboardWidgetId) {\n // Gets the widget element that contains the title content.\n // The unique widget instance identifier.\n return getWidgetContainer(dashboardWidgetId)\n .find('[' + widget.attributeNames.gssElementName + '=\"divWidgetHeader\"]').first();\n }\n widget.getWidgetTitleElement = getWidgetTitleElement;\n function setWidgetProperties(notifyWidgetErrorUrl, subjectParamName, errorParamName) {\n // Sets the properties for the widget JavaScript library.\n // The server action that is responsible for sending the error notification.\n // The parameter name of the subject when notifying for a widget error.\n // The error parameter name for the error message when notifying for a widget error.\n widget.widgetErrorSettings.errorParamName = errorParamName;\n widget.widgetErrorSettings.subjectParamName = subjectParamName;\n widget.widgetErrorSettings.url = notifyWidgetErrorUrl;\n }\n widget.setWidgetProperties = setWidgetProperties;\n })(widget = GSS.widget || (GSS.widget = {}));\n})(GSS || (GSS = {}));\n//# sourceMappingURL=GSS.widget.js.map"],"sourceRoot":"/source/"}