{"version":3,"file":"src_components_configure-modals_configure-from-existing-questions_index_tsx.35a6da9d4f80c74c9a37.js","mappings":";;;;;;;;;;;;;;;;;AAAA;AACyH;AACjB;AACxG,8BAA8B,mFAA2B,CAAC,4FAAqC;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,OAAO,sLAAsL,UAAU,UAAU,WAAW,UAAU,KAAK,KAAK,WAAW,WAAW,KAAK,KAAK,UAAU,WAAW,KAAK,KAAK,UAAU,WAAW,WAAW,KAAK,KAAK,UAAU,KAAK,KAAK,WAAW,KAAK,KAAK,WAAW,WAAW,UAAU,KAAK,KAAK,UAAU,WAAW,WAAW,KAAK,KAAK,WAAW,KAAK,KAAK,WAAW,UAAU,UAAU,UAAU,UAAU,WAAW,WAAW,UAAU,WAAW,WAAW,KAAK,KAAK,UAAU,KAAK,KAAK,UAAU,WAAW,mEAAmE,mBAAmB,kBAAkB,oBAAoB,2BAA2B,iBAAiB,sBAAsB,yBAAyB,uBAAuB,KAAK,0BAA0B,cAAc,mCAAmC,KAAK,4BAA4B,oBAAoB,0BAA0B,0BAA0B,gBAAgB,wBAAwB,OAAO,aAAa,iCAAiC,OAAO,KAAK,eAAe,gCAAgC,uBAAuB,qBAAqB,KAAK,eAAe,oBAAoB,0BAA0B,0BAA0B,wBAAwB,yBAAyB,OAAO,qBAAqB,0BAA0B,oBAAoB,wBAAwB,qBAAqB,qBAAqB,2BAA2B,kCAAkC,sBAAsB,4BAA4B,gCAAgC,eAAe,uBAAuB,SAAS,OAAO,KAAK,wBAAwB,sBAAsB,yBAAyB,KAAK,GAAG,qBAAqB;AAC1zD;AACA,iEAAe,uBAAuB,EAAC;;;;;;;;;;;;;;;;;;;AC/DvC;AACsH;AACjB;AACrG,8BAA8B,mFAA2B,CAAC,4FAAqC;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,OAAO,uNAAuN,WAAW,WAAW,UAAU,WAAW,UAAU,KAAK,KAAK,WAAW,KAAK,KAAK,WAAW,WAAW,KAAK,KAAK,WAAW,UAAU,KAAK,KAAK,UAAU,KAAK,KAAK,WAAW,KAAK,KAAK,WAAW,UAAU,UAAU,UAAU,UAAU,WAAW,WAAW,KAAK,KAAK,UAAU,WAAW,WAAW,UAAU,KAAK,KAAK,WAAW,WAAW,UAAU,MAAM,KAAK,WAAW,WAAW,UAAU,UAAU,WAAW,UAAU,WAAW,KAAK,KAAK,YAAY,MAAM,KAAK,YAAY,MAAM,KAAK,UAAU,KAAK,KAAK,WAAW,MAAM,MAAM,UAAU,KAAK,MAAM,UAAU,WAAW,WAAW,WAAW,UAAU,WAAW,MAAM,MAAM,WAAW,WAAW,WAAW,WAAW,UAAU,WAAW,MAAM,MAAM,WAAW,WAAW,MAAM,MAAM,WAAW,UAAU,UAAU,UAAU,UAAU,WAAW,WAA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CAAC;QAED,UAAU,CAAC,0BAA0B,CAAC,CAAC;IACzC,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAErB,OAAO;QACL,OAAO;QACP,MAAM;QACN,MAAM;QACN,SAAS;QACT,SAAS;KACV,CAAC;AACJ,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;AC5C+B;AAC2B;AAC4E;AAEM;AAYvI,MAAM,8BAA8B,GAAG,CAAC,EAC7C,kBAAkB,EAClB,iBAAiB,EACjB,QAAQ,EACR,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,wBAAwB,GACY,EAAE,EAAE;IACxC,OAAO,CACL,iEAAK,SAAS,EAAC,iBAAiB,aAC9B,iEAAK,SAAS,EAAC,uBAAuB,aACpC,iEAAK,SAAS,EAAC,yBAAyB,aACtC,gEAAK,SAAS,EAAC,+BAA+B,GAAG,sCAE7C,EAEL,gBAAgB,IAAI,CACnB,iEAAK,SAAS,EAAC,4BAA4B,aACzC,gEAAK,SAAS,EAAC,mCAAmC,gCAE5C,EACN,uDAAC,wJAAgB,IAAC,IAAI,EAAE,gBAAgB,GAAI,IACxC,CACP,EACD,iEAAK,SAAS,EAAC,yBAAyB,aACtC,gEAAK,SAAS,EAAC,+BAA+B,+CAExC,EACN,uDAAC,sDAAM,IACL,EAAE,EAAC,cAAc,EACjB,SAAS,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAC/B,OAAO,EAAE,kBAAkB,6BAGpB,IACL,IACF,EACN,gEAAK,SAAS,EAAC,wBAAwB,YACrC,uDAAC,kJAAiB,IAChB,UAAU,EAAE,UAAU,EACtB,iBAAiB,EAAE,iBAAiB,EACpC,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,QAAQ,EAClB,gBAAgB,EAAE,gBAAgB,EAClC,wBAAwB,EAAE,wBAAwB,GAClD,GACE,IACF,CACP,CAAC;AACJ,CAAC,CAAC","sources":["webpack://question-ui/./src/components/configure-modals/configure-from-existing-questions/existing-questions/answers-list/answers-list.scss","webpack://question-ui/./src/components/configure-modals/configure-from-existing-questions/existing-questions/existing-questions.scss","webpack://question-ui/./src/components/configure-modals/configure-from-existing-questions/existing-questions/answers-list/answers-list.scss?e826","webpack://question-ui/./src/components/configure-modals/configure-from-existing-questions/existing-questions/existing-questions.scss?9908","webpack://question-ui/./src/components/configure-modals/configure-from-existing-questions/existing-questions/answers-list/answers-list.tsx","webpack://question-ui/./src/components/configure-modals/configure-from-existing-questions/existing-questions/existing-questions.tsx","webpack://question-ui/./src/components/configure-modals/configure-from-existing-questions/existing-questions/question/ExistingQuestion.tsx","webpack://question-ui/./src/components/configure-modals/configure-from-existing-questions/existing-questions/useSearchAndFilter.ts","webpack://question-ui/./src/components/configure-modals/configure-from-existing-questions/index.tsx"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.answers-list {\n display: flex;\n padding: 0 20px;\n flex-direction: column;\n height: 100%;\n}\n.answers-list .c-icon-button {\n margin-right: 10px;\n margin-top: -5px;\n}\n.answers-list .existing-question {\n flex: 1;\n max-width: calc(100% - 44px);\n}\n.answers-list__selected-question {\n display: flex;\n margin-bottom: 20px;\n align-items: center;\n}\n.answers-list__selected-question button {\n min-width: 44px;\n}\n.answers-list__selected-question svg {\n transform: rotate(90deg);\n}\n.answers-list__list {\n padding: 0 10px 40px 10px;\n overflow-y: auto;\n flex: 0 1 auto;\n}\n.answers-list__item {\n display: flex;\n align-items: center;\n margin-bottom: 15px;\n}\n.answers-list__item:last-of-type {\n margin-bottom: 0;\n}\n.answers-list__item .c-svg-icon {\n margin-right: 7px;\n width: 19px;\n min-width: 19px;\n height: 19px;\n color: white;\n border-radius: 50%;\n background-color: #a0a0a0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.answers-list__item .c-svg-icon svg {\n height: 12px;\n}\n.answers-list__not-available {\n padding: 30px 0;\n text-align: center;\n}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/configure-modals/configure-from-existing-questions/existing-questions/answers-list/answers-list.scss\"],\"names\":[],\"mappings\":\"AAEA;EACE,aAAA;EACA,eAAA;EACA,sBAAA;EACA,YAAA;AADF;AAGE;EACE,kBAAA;EACA,gBAAA;AADJ;AAIE;EACE,OAAA;EACA,4BAAA;AAFJ;AAKE;EACE,aAAA;EACA,mBAAA;EACA,mBAAA;AAHJ;AAKI;EACE,eAAA;AAHN;AAMI;EACE,wBAAA;AAJN;AAQE;EACE,yBAAA;EACA,gBAAA;EACA,cAAA;AANJ;AASE;EACE,aAAA;EACA,mBAAA;EACA,mBAAA;AAPJ;AASI;EACE,gBAAA;AAPN;AAUI;EACE,iBAAA;EACA,WAAA;EACA,eAAA;EACA,YAAA;EACA,YAAA;EACA,kBAAA;EACA,yBAAA;EACA,aAAA;EACA,mBAAA;EACA,uBAAA;AARN;AAUM;EACE,YAAA;AARR;AAaE;EACE,eAAA;EACA,kBAAA;AAXJ\",\"sourcesContent\":[\"@import '../../../../../styles/variables';\\n\\n.answers-list {\\n display: flex;\\n padding: 0 20px;\\n flex-direction: column;\\n height: 100%;\\n\\n .c-icon-button {\\n margin-right: 10px;\\n margin-top: -5px;\\n }\\n\\n .existing-question {\\n flex: 1;\\n max-width: calc(100% - 44px);\\n }\\n\\n &__selected-question {\\n display: flex;\\n margin-bottom: 20px;\\n align-items: center;\\n\\n button {\\n min-width: 44px;\\n }\\n\\n svg {\\n transform: rotate(90deg);\\n }\\n }\\n\\n &__list {\\n padding: 0 10px 40px 10px;\\n overflow-y: auto;\\n flex: 0 1 auto;\\n }\\n\\n &__item {\\n display: flex;\\n align-items: center;\\n margin-bottom: 15px;\\n\\n &:last-of-type {\\n margin-bottom: 0;\\n }\\n\\n .c-svg-icon {\\n margin-right: 7px;\\n width: 19px;\\n min-width: 19px;\\n height: 19px;\\n color: white;\\n border-radius: 50%;\\n background-color: #a0a0a0;\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n\\n svg {\\n height: 12px;\\n }\\n }\\n }\\n\\n &__not-available {\\n padding: 30px 0;\\n text-align: center;\\n }\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.existing-questions {\n padding: 25px 0 100px;\n position: relative;\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n.existing-questions .c-input-text__container {\n margin-bottom: 0;\n}\n.existing-questions .o-input.c-input-text__entry {\n background-color: #eee;\n padding-left: 3em;\n}\n.existing-questions__search {\n margin-bottom: 20px;\n padding: 0 30px;\n}\n.existing-questions__sorting {\n padding: 0 30px;\n}\n.existing-questions__sorting > div {\n padding-bottom: 7px;\n}\n.existing-questions__footer {\n position: absolute;\n bottom: 0;\n left: 0;\n height: 100px;\n right: 0;\n background-color: #fff;\n box-shadow: 0px -45px 44px 1px rgba(255, 255, 255, 0.9);\n}\n.existing-questions__footer > div {\n display: flex;\n justify-content: space-between;\n margin-top: 26px;\n padding: 0 30px;\n}\n.existing-questions__list {\n padding: 0 30px 40px 30px;\n overflow-y: auto;\n flex: 0 1 auto;\n}\n\n.existing-question {\n border-bottom: 1px solid #e9e9e9;\n padding: 13px 30px 13px 0;\n height: 78px;\n display: flex;\n justify-content: space-between;\n cursor: pointer;\n position: relative;\n}\n.existing-question:hover {\n background-color: #f8f8f8;\n}\n.existing-question.selected .existing-question__right-arrow {\n background-color: #ed3293;\n}\n.existing-question.selected .existing-question__right-arrow .c-svg-icon {\n color: white;\n}\n.existing-question.selected .existing-question__name {\n color: #ed3293;\n}\n.existing-question__info {\n max-width: 100%;\n}\n.existing-question__name {\n font-size: 16px;\n margin-bottom: 3px;\n white-space: nowrap;\n overflow: hidden;\n max-width: 100%;\n text-overflow: ellipsis;\n}\n.existing-question__description {\n font-family: \"graphik-reg\", sans-serif;\n margin-bottom: 3px;\n white-space: nowrap;\n overflow: hidden;\n max-width: 100%;\n text-overflow: ellipsis;\n}\n.existing-question__additional-info {\n font-family: \"graphik-reg\", sans-serif;\n color: #a0a0a0;\n}\n.existing-question__right-arrow {\n position: absolute;\n right: 2px;\n top: 17px;\n width: 20px;\n height: 20px;\n border-radius: 50%;\n border: 2px solid #ed3293;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.existing-question__right-arrow .c-svg-icon {\n color: #292929;\n}\n.existing-question__right-arrow .c-svg-icon svg {\n height: 8px;\n margin-left: 1px;\n}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/configure-modals/configure-from-existing-questions/existing-questions/existing-questions.scss\",\"webpack://./src/styles/variables.scss\"],\"names\":[],\"mappings\":\"AAEA;EACE,qBAAA;EACA,kBAAA;EACA,aAAA;EACA,sBAAA;EACA,YAAA;AADF;AAGE;EACE,gBAAA;AADJ;AAIE;EACE,sBCGM;EDFN,iBAAA;AAFJ;AAKE;EACE,mBAAA;EACA,eAAA;AAHJ;AAME;EACE,eAAA;AAJJ;AAMI;EACE,mBAAA;AAJN;AAQE;EACE,kBAAA;EACA,SAAA;EACA,OAAA;EACA,aAAA;EACA,QAAA;EACA,sBAAA;EACA,uDAAA;AANJ;AAQI;EACE,aAAA;EACA,8BAAA;EACA,gBAAA;EACA,eAAA;AANN;AAUE;EACE,yBAAA;EACA,gBAAA;EACA,cAAA;AARJ;;AAYA;EACE,gCAAA;EACA,yBAAA;EACA,YAAA;EACA,aAAA;EACA,8BAAA;EACA,eAAA;EACA,kBAAA;AATF;AAWE;EACE,yBCvDM;AD8CV;AAaI;EACE,yBC9CC;ADmCP;AAaM;EACE,YAAA;AAXR;AAeI;EACE,cCtDC;ADyCP;AAiBE;EACE,eAAA;AAfJ;AAkBE;EACE,eAAA;EACA,kBAAA;EACA,mBAAA;EACA,gBAAA;EACA,eAAA;EACA,uBAAA;AAhBJ;AAmBE;EACE,sCAAA;EACA,kBAAA;EACA,mBAAA;EACA,gBAAA;EACA,eAAA;EACA,uBAAA;AAjBJ;AAoBE;EACE,sCAAA;EACA,cCtFM;ADoEV;AAqBE;EACE,kBAAA;EACA,UAAA;EACA,SAAA;EACA,WAAA;EACA,YAAA;EACA,kBAAA;EACA,yBAAA;EACA,aAAA;EACA,uBAAA;EACA,mBAAA;AAnBJ;AAqBI;EACE,cCrFK;ADkEX;AAqBM;EACE,WAAA;EACA,gBAAA;AAnBR\",\"sourcesContent\":[\"@import '../../../../styles/variables';\\n\\n.existing-questions {\\n padding: 25px 0 100px;\\n position: relative;\\n display: flex;\\n flex-direction: column;\\n height: 100%;\\n\\n .c-input-text__container {\\n margin-bottom: 0;\\n }\\n\\n .o-input.c-input-text__entry {\\n background-color: $grey-ee;\\n padding-left: 3em;\\n }\\n\\n &__search {\\n margin-bottom: 20px;\\n padding: 0 30px;\\n }\\n\\n &__sorting {\\n padding: 0 30px;\\n\\n & > div {\\n padding-bottom: 7px;\\n }\\n }\\n\\n &__footer {\\n position: absolute;\\n bottom: 0;\\n left: 0;\\n height: 100px;\\n right: 0;\\n background-color: #fff;\\n box-shadow: 0px -45px 44px 1px rgba(255, 255, 255, 0.9);\\n\\n & > div {\\n display: flex;\\n justify-content: space-between;\\n margin-top: 26px;\\n padding: 0 30px;\\n }\\n }\\n\\n &__list {\\n padding: 0 30px 40px 30px;\\n overflow-y: auto;\\n flex: 0 1 auto;\\n }\\n}\\n\\n.existing-question {\\n border-bottom: 1px solid $grey-e9;\\n padding: 13px 30px 13px 0;\\n height: 78px;\\n display: flex;\\n justify-content: space-between;\\n cursor: pointer;\\n position: relative;\\n\\n &:hover {\\n background-color: $grey-f8;\\n }\\n\\n &.selected {\\n .existing-question__right-arrow {\\n background-color: $pink;\\n\\n .c-svg-icon {\\n color: white;\\n }\\n }\\n\\n .existing-question__name {\\n color: $pink;\\n }\\n }\\n\\n &__info {\\n max-width: 100%;\\n }\\n\\n &__name {\\n font-size: 16px;\\n margin-bottom: 3px;\\n white-space: nowrap;\\n overflow: hidden;\\n max-width: 100%;\\n text-overflow: ellipsis;\\n }\\n\\n &__description {\\n font-family: \\\"graphik-reg\\\", sans-serif;\\n margin-bottom: 3px;\\n white-space: nowrap;\\n overflow: hidden;\\n max-width: 100%;\\n text-overflow: ellipsis;\\n }\\n\\n &__additional-info {\\n font-family: \\\"graphik-reg\\\", sans-serif;\\n color: $grey-a0;\\n }\\n\\n &__right-arrow {\\n position: absolute;\\n right: 2px;\\n top: 17px;\\n width: 20px;\\n height: 20px;\\n border-radius: 50%;\\n border: 2px solid $pink;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n\\n .c-svg-icon {\\n color: $black-29;\\n\\n svg {\\n height: 8px;\\n margin-left: 1px;\\n }\\n }\\n }\\n}\\n\",\"$gutter: 24px;\\n$page-max-width: 934px;\\n$content-max-width: 1540px;\\n\\n$formLabelWidth: 14rem;\\n\\n$grey: #7f7f7f;\\n$grey-dk: #555;\\n$grey-lt: #eaeaea;\\n\\n$grey-f8: #f8f8f8;\\n$grey-f5: #f5f5f5;\\n$grey-f4: #f4f4f4;\\n$grey-f2: #f2f2f2;\\n$grey-e9: #e9e9e9;\\n$grey-e8: #e8e8e8;\\n$grey-ed: #ededed;\\n$grey-ee: #eee;\\n$grey-d: #ddd;\\n$grey-cd: #cdcdcd;\\n$grey-a0: #a0a0a0;\\n$grey-d4: #d4d4d4;\\n$grey-b: #bbb;\\n\\n$pink: #ed3293;\\n$pink-gradient-bottom: #c42b7a;\\n$pink-semi-transparent: rgba(237, 50, 147, 0.1);\\n$red: #e95456;\\n$orange: #fbb820;\\n$orange-dk: #ef8123;\\n$yellow: #fcc600;\\n$green: #98c33f;\\n$green-dk: #0c9947;\\n\\n$base: rgba(41, 41, 41, 0.2);\\n$black: #222;\\n$white: #fff;\\n$black-29: #292929;\\n\\n$mobile: 'max-width:1024px';\\n$desktop: 'min-width:1025px';\\n\\n$xsm-dn: 'max-width:480px';\\n$xsm-up: 'min-width:481px';\\n\\n$sm-dn: 'max-width:720px';\\n$sm-up: 'min-width:721px';\\n\\n$md-dn: 'max-width:967px';\\n$md-up: 'min-width:968px';\\n\\n$md2-dn: 'max-width:1099px';\\n$md2-up: 'min-width:1100px';\\n\\n$lg-dn: 'max-width:1399px';\\n$lg-up: 'min-width:1400px';\\n\\n$xl-dn: 'max-width:1540px';\\n$xl-up: 'min-width:1541px';\\n\\n$short-dn: 'max-height:719px';\\n$short-up: 'min-height:720px';\\n\\n$tall-dn: 'max-height:919px';\\n$tall-up: 'min-height:920px';\\n\\n$editorial-margin-top: 40px;\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\n import API from \"!../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../../../../../node_modules/postcss-loader/dist/cjs.js!../../../../../../node_modules/sass-loader/dist/cjs.js!./answers-list.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../../../../../node_modules/postcss-loader/dist/cjs.js!../../../../../../node_modules/sass-loader/dist/cjs.js!./answers-list.scss\";\n export default content && content.locals ? content.locals : undefined;\n","\n import API from \"!../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../../../../node_modules/postcss-loader/dist/cjs.js!../../../../../node_modules/sass-loader/dist/cjs.js!./existing-questions.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../../../../node_modules/postcss-loader/dist/cjs.js!../../../../../node_modules/sass-loader/dist/cjs.js!./existing-questions.scss\";\n export default content && content.locals ? content.locals : undefined;\n","import './answers-list.scss';\nimport { Dispatch, ReactElement, SetStateAction } from 'react';\nimport { IconButton, SVGIcon } from '@system1/lib-react';\nimport {\n AnswerInstance,\n ExistingQuestion,\n} from 'components/configure-modals/configure-from-existing-questions/types';\n\ninterface AnswersListProps {\n selectedQuestion: ExistingQuestion;\n setSelectedQuestion: Dispatch>;\n answers: AnswerInstance[];\n}\n\nexport const AnswersList = ({\n selectedQuestion,\n setSelectedQuestion,\n answers,\n}: AnswersListProps): ReactElement => {\n return (\n
\n
\n setSelectedQuestion(null)}\n type=\"extend\"\n id=\"back-btn\"\n />\n
\n
\n \n {selectedQuestion.questionName}\n
\n \n {selectedQuestion.questionText}\n
\n
\n
\n \n {answers.length > 0 ? (\n
\n {answers.map((question) => (\n
\n \n {question.text}\n
\n ))}\n
\n ) : (\n
\n No values available for this question.\n
\n )}\n \n );\n};\n","import './existing-questions.scss';\nimport {\n Button,\n InputText,\n InputSelectV2,\n DataOptionType,\n} from '@system1/lib-react';\nimport { Fragment, useState } from 'react';\nimport {\n AnswerInstance,\n ExistingQuestion as ExistingQuestionType,\n} from 'components/configure-modals/configure-from-existing-questions/types';\nimport { ExistingQuestion } from 'components/configure-modals/configure-from-existing-questions/existing-questions/question/ExistingQuestion';\nimport { AnswersList } from 'components/configure-modals/configure-from-existing-questions/existing-questions/answers-list/answers-list';\nimport { useSearchAndFilter } from 'components/configure-modals/configure-from-existing-questions/existing-questions/useSearchAndFilter';\nimport ModalLoader from 'components/modal-loader';\n\ninterface TestedAdsProps {\n existingQuestions: ExistingQuestionType[];\n closeModal: () => void;\n onSelect: (ad: ExistingQuestionType) => void;\n getAnswersById: (id: number) => Promise;\n selectedQuestion: ExistingQuestionType;\n questionTemplatesOptions: DataOptionType[];\n}\n\nexport const ExistingQuestions = ({\n existingQuestions,\n closeModal,\n onSelect,\n getAnswersById,\n selectedQuestion,\n questionTemplatesOptions,\n}: TestedAdsProps) => {\n const [currentSelectedQuestion, setCurrentSelectedQuestion] =\n useState(null);\n const [answers, setAnswers] = useState([]);\n const [loading, setLoading] = useState(false);\n const { filter, search, results, setFilter, setSearch } =\n useSearchAndFilter(existingQuestions);\n\n const handleSelectQuestion = (question: ExistingQuestionType) => {\n setCurrentSelectedQuestion(question);\n setLoading(true);\n getAnswersById(question.questionInstanceId).then((res) => {\n setAnswers(res);\n setLoading(false);\n });\n };\n\n return (\n
\n {currentSelectedQuestion ? (\n !loading ? (\n \n ) : (\n \n )\n ) : (\n \n
\n setSearch(value)}\n leftIcon={{\n src: 'search',\n }}\n placeholder=\"Type and press enter to search..\"\n />\n
\n
\n setFilter(value as number)}\n options={questionTemplatesOptions}\n value={filter}\n />\n
\n
\n {results.map((item) => (\n \n \n \n ))}\n
\n
\n )}\n
\n
\n \n Cancel\n \n onSelect(currentSelectedQuestion)}\n >\n Select\n \n
\n
\n
\n );\n};\n","import { SVGIcon } from '@system1/lib-react';\nimport classNames from 'classnames';\nimport { ExistingQuestion as ExistingQuestionType } from 'components/configure-modals/configure-from-existing-questions/types';\n\ninterface ExistingQuestionProps {\n item: ExistingQuestionType;\n onSelect?: (ad: ExistingQuestionType) => void;\n isSelected?: boolean;\n}\n\nexport const ExistingQuestion = ({\n item,\n onSelect,\n isSelected = false,\n}: ExistingQuestionProps) => {\n return (\n {\n if (onSelect) {\n onSelect(item);\n }\n }}\n >\n
\n
\n {item.questionName}\n
\n \n {item.questionText}\n
\n
\n {item.questionTemplateName} - {item.questionValueCount} responses\n
\n \n
\n \n
\n \n );\n};\n","import { Dispatch, SetStateAction, useEffect, useState } from 'react';\nimport { ExistingQuestion } from 'components/configure-modals/configure-from-existing-questions/types';\nimport { FILTER_VALUES } from 'components/configure-modals/configure-from-existing-questions/existing-questions/existing-questions.constants';\n\ninterface UseSearchAndSortReturn {\n results: ExistingQuestion[];\n search: string;\n setSearch: Dispatch>;\n filter: FILTER_VALUES | null;\n setFilter: Dispatch>;\n}\n\nexport const useSearchAndFilter = (\n existingQuestions: ExistingQuestion[]\n): UseSearchAndSortReturn => {\n const [search, setSearch] = useState('');\n const [filter, setFilter] = useState(null);\n const [results, setResults] = useState(existingQuestions);\n\n useEffect(() => {\n let processedExistingQuestions: ExistingQuestion[] = existingQuestions;\n\n if (filter) {\n processedExistingQuestions = processedExistingQuestions.filter(\n (item) => item.questionTemplateId === filter\n );\n }\n\n if (search) {\n processedExistingQuestions = processedExistingQuestions.filter((item) =>\n item.questionName.toLowerCase().includes(search.toLowerCase())\n );\n }\n\n setResults(processedExistingQuestions);\n }, [search, filter]);\n\n return {\n results,\n search,\n filter,\n setFilter,\n setSearch,\n };\n};\n","import '../configure-tests.scss';\nimport { Button, DataOptionType } from '@system1/lib-react';\nimport { ExistingQuestions } from 'components/configure-modals/configure-from-existing-questions/existing-questions/existing-questions';\nimport { ExistingQuestion as ExistingQuestionType } from 'components/configure-modals/configure-from-existing-questions/types';\nimport { ExistingQuestion } from 'components/configure-modals/configure-from-existing-questions/existing-questions/question/ExistingQuestion';\n\ninterface ConfigureFromExistingQuestionsProps {\n onClickNewQuestion: () => void;\n existingQuestions: ExistingQuestionType[];\n onSelect: () => void;\n closeModal: () => void;\n getAnswersById: (id: number) => Promise;\n selectedQuestion: ExistingQuestionType;\n questionTemplatesOptions: DataOptionType[];\n}\n\nexport const ConfigureFromExistingQuestions = ({\n onClickNewQuestion,\n existingQuestions,\n onSelect,\n closeModal,\n getAnswersById,\n selectedQuestion,\n questionTemplatesOptions,\n}: ConfigureFromExistingQuestionsProps) => {\n return (\n
\n
\n
\n
\n Select from previous questions\n
\n\n {selectedQuestion && (\n
\n
\n Your selection:\n
\n \n
\n )}\n
\n
\n Define a new question instead?\n
\n \n New Question\n \n
\n
\n
\n \n
\n
\n );\n};\n"],"names":[],"sourceRoot":""}