@sprig-technologies/sprig-bundled 2.42.0 → 2.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./view-DC9Y1r07.cjs"),Y=require("./index-CgIYh4S0.cjs"),E=require("./getAttributedUrl-5fGQLMl5.cjs"),re="https://cdn.sprig.com",_={document:void 0,videojs:void 0},xe=n=>n+"-loading-spiner",Z="hidden",je=".m3u8",me="questionId",ve="ul-video-recorder-camera-off-button",ge="ul-recording-in-session",Ye=[{type:"link",content:`${re}/dependencies/videojs-record-4.5.0.min.css`},{type:"script",content:`${re}/dependencies/RecordRTC-5.6.2.js`},{type:"script",content:`${re}/dependencies/adapter.8.0.0.min.js`},{type:"script",content:`${re}/dependencies/videojs-record-4.5.0.min.js`},{type:"script",content:`${re}/userleap-web-upchunk-v2.2.2.js`}],Le=[{type:"link",content:`${re}/dependencies/video-js-7.18.0.min.css`},{type:"script",content:`${re}/dependencies/video-js-7.18.0.min.js`},{type:"style",content:`/* progress control styles */
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./view-s39eJCD9.cjs"),Y=require("./index-B2lKZafM.cjs"),E=require("./getAttributedUrl-CkFVhnm0.cjs"),re="https://cdn.sprig.com",_={document:void 0,videojs:void 0},xe=n=>n+"-loading-spiner",Z="hidden",je=".m3u8",me="questionId",ve="ul-video-recorder-camera-off-button",ge="ul-recording-in-session",Ye=[{type:"link",content:`${re}/dependencies/videojs-record-4.5.0.min.css`},{type:"script",content:`${re}/dependencies/RecordRTC-5.6.2.js`},{type:"script",content:`${re}/dependencies/adapter.8.0.0.min.js`},{type:"script",content:`${re}/dependencies/videojs-record-4.5.0.min.js`},{type:"script",content:`${re}/userleap-web-upchunk-v2.2.2.js`}],Le=[{type:"link",content:`${re}/dependencies/video-js-7.18.0.min.css`},{type:"script",content:`${re}/dependencies/video-js-7.18.0.min.js`},{type:"style",content:`/* progress control styles */
2
2
  .video-js .vjs-control {
3
3
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
4
4
  }
@@ -1,6 +1,6 @@
1
- import { u as G, a as e, h as Q, c as O, g as K, b as re, d as Be, p as ue, F as fe, _ as se, T as be, A as Cn, e as Ee, f as xn, i as kn, j as ze, k as wn, l as En, S as jn, w as nn, m as In } from "./view-D1SzHpEx.js";
2
- import { v as Tn, E as Te, h as qe, A as Ue, j as _n, i as tn } from "./index-AmryOSUY.js";
3
- import { B as oe, M as ie, Q as le, O as Oe, a as de, b as Ce, S as Dn, L as Sn, u as Pn, H as ye, c as Ae, g as Ln, P as Rn } from "./getAttributedUrl-kWGm9GHO.js";
1
+ import { u as G, a as e, h as Q, c as O, b as K, e as re, g as Be, p as ue, F as fe, _ as se, T as be, A as Cn, d as Ee, f as xn, l as kn, m as ze, n as wn, o as En, S as jn, w as nn, t as In } from "./view-CHBo6RQ4.js";
2
+ import { v as Tn, E as Te, h as qe, A as Ue, j as _n, i as tn } from "./index-Bbp8h_Ls.js";
3
+ import { B as oe, M as ie, b as le, O as Oe, Q as de, c as Ce, S as Dn, L as Sn, u as Pn, a as ye, H as Ae, g as Ln, P as Rn } from "./getAttributedUrl-CMu77L08.js";
4
4
  const pe = "https://cdn.sprig.com", I = { document: void 0, videojs: void 0 }, $e = (n) => n + "-loading-spiner", W = "hidden", Ge = ".m3u8", _e = "questionId", De = "ul-video-recorder-camera-off-button", Se = "ul-recording-in-session", Nn = [{ type: "link", content: `${pe}/dependencies/videojs-record-4.5.0.min.css` }, { type: "script", content: `${pe}/dependencies/RecordRTC-5.6.2.js` }, { type: "script", content: `${pe}/dependencies/adapter.8.0.0.min.js` }, { type: "script", content: `${pe}/dependencies/videojs-record-4.5.0.min.js` }, { type: "script", content: `${pe}/userleap-web-upchunk-v2.2.2.js` }], rn = [{ type: "link", content: `${pe}/dependencies/video-js-7.18.0.min.css` }, { type: "script", content: `${pe}/dependencies/video-js-7.18.0.min.js` }, { type: "style", content: `/* progress control styles */
5
5
  .video-js .vjs-control {
6
6
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default='html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}button,input,select,textarea{margin:0}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}ol,ul{padding-inline-start:1em}.ul-card-text__button{background-color:var(--theme);border-radius:8px;padding:11px 16px;gap:5px;border:none;color:#fff;cursor:pointer;font-size:15px;font-weight:500;line-height:18px}.ul-card-text__button:disabled,.ul-card-text__button.sprig-button-disabled{background-color:#0000001a;color:#0003}.ul-card-text__button:disabled>svg path,.ul-card-text__button.sprig-button-disabled>svg path{stroke:#0003}.ul-card-text__button.ul-button-inactive{background-color:#fff;color:#5d696f}.ul-card-skip__button{color:#00000080;background:none;border:none;font-size:15px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;cursor:pointer}.ul-card-button-group{align-items:center;display:flex;gap:15px;justify-content:center}.sprig-question-footer-container{padding:0;align-items:center}.ul-card__button-checkmark{display:flex;align-items:center;font-size:15px;gap:5px;padding:11px 16px;border-radius:8px;background-color:var(--theme);color:#fff}.ul-card__button-checkmark:disabled{background-color:var(--theme);opacity:.5;color:#fff}.ul-card__button-checkmark:disabled>svg path{stroke:#fff}.ul-conversational-ui{width:100%;height:100%;display:flex;flex-direction:column;min-height:500px;font-size:15px;position:relative}.ul-card__button-wrapper{margin-top:4px;display:flex;gap:16px;justify-content:right;align-self:stretch}.conversational-close-btn{position:fixed;top:16px;right:16px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;cursor:pointer;z-index:1000}.conversational-close-btn:hover{background:#ffffff80}.chat-container{flex:1;display:flex;flex-direction:column;align-items:center}.chat-messages{flex:1;display:flex;flex-direction:column;max-width:600px;width:100%;padding:36px 16px 44px;gap:8px;box-sizing:border-box}.chat-message-no-response{font-style:italic;color:#666}.chat-card .choice{margin-bottom:0;background-color:unset;padding:0;line-height:2;border:none;min-height:28px}.chat-card .choice.ul-select-active-dynamic-style{border:none}.chat-bubble-container{display:flex;flex-direction:row;align-items:flex-start;width:100%;animation:fadeInUp .3s ease-out}.chat-bubble-container img{display:none}.chat-left{align-self:flex-start;width:auto;justify-content:flex-start}.chat-container .chat-bubble-container.chat-left.chat-no-avatar .chat-bubble{margin-left:0}.chat-right{align-self:flex-end;width:100%;justify-content:flex-end;margin-top:8px}.sprig-question-body{word-wrap:break-word;position:relative;border-radius:8px;box-sizing:border-box;max-width:448px;gap:8px;padding:0;overflow:unset}.chat-bubble-text-only{width:auto;max-width:286px}.chat-bubble.chat-bubble-right .chat-message-text{border-radius:8px;word-wrap:break-word;position:relative;padding:16px;color:#333;background:#e8e7e6}.chat-bubble-left{border-radius:8px;word-wrap:break-word;position:relative;padding:16px;color:#333;background:#f7f6f5}.chat-bubble.chat-bubble-right:has(.answered-card) .sprig-question-body{border-radius:8px;word-wrap:break-word;position:relative;padding:16px;color:#333;background:#e8e7e6}.chat-bubble.chat-bubble-right:not(:has(.chat-bubble-text-only)) .sprig-question-body{border-radius:8px;word-wrap:break-word;position:relative;padding:16px;color:#333;background:#e8e7e6}.chat-message-text{line-height:1.4;margin:0;text-align:left;color:#141312;font-size:14px;font-weight:400;word-wrap:break-word}.chat-card-container{padding:0;background:transparent}@media (max-width: 600px){.conversational-ui .long-form-question-footer-container-logo{position:unset}}.chat-card-container .chat-card{display:flex;flex-direction:column;gap:8px}.chat-thanks-card{background:transparent;box-shadow:none;text-align:center}.end-of-survey-text{text-align:center;color:#999;font-size:14px;margin-top:8px;font-weight:400}.answered-card{pointer-events:none;opacity:.7;position:relative}.footer{width:100%;margin-top:12px;font-size:12px;font-weight:400;line-height:12px;color:#000000b3}.answered-card:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:#ffffff4d;pointer-events:none;border-radius:inherit}.answered-card button,.answered-card input,.answered-card textarea,.answered-card select{pointer-events:none}.answered-card:not(.ul-card__consent-legal):not(.ul-card__text-url-prompt) .ul-card-button-group *{display:none}.sprig-question-footer-container{padding:0;align-items:end}.chat-card.ul-card--video .sprig-question-footer-container{flex-direction:row;justify-content:flex-end;align-items:center}.ul-card-text__button{font-size:13px}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.chat-bubble-container.chat-left.chat-no-avatar .chat-bubble{margin-left:42px}.ul-card-vertical__button-wrapper{align-items:end}.ul-card-skip__button{padding:0 16px}.sprig-stretch{padding:16px;display:flex;flex-direction:column;gap:8px;border-radius:8px;background:#e8e7e6}.sprig-stretch input{background-color:#fff}.ul-card--likert__numbers{background-color:#fff;display:flex;width:100%;box-sizing:border-box;flex-wrap:nowrap;justify-content:space-between;align-items:center}.ul-card--likert__numbers:has(.likert-star,.likert-smiley){background-color:transparent}.likert-smiley>svg{scale:1.176}.ul-card--likert__numbers .likert-star,.ul-card--likert__numbers .likert-smiley{min-width:24px;min-height:24px;max-width:38px;max-height:38px;flex:0 1 auto;transition:height .2s,width .2s}.ul-card--likert__labels{font-weight:400;color:#2f2e2c;text-align:center;word-break:break-word;font-size:.95rem}.likert-number{height:8vw;width:8vw;min-height:32px;max-width:54px;max-height:54px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;transition:height .2s,width .2s,font-size .2s}.sprig-question-body:has(.likert-number){max-width:100%;padding:0 .5rem}.chat-card-container:has(.ul-card__matrix),.chat-card-container:has([class*=matrix]){min-width:280px;max-width:700px}@media (min-width: 1200px){.chat-card-container:has(.ul-card__matrix),.chat-card-container:has([class*=matrix]){min-width:280px;max-width:900px}}@media (max-width: 768px){.chat-card-container:has(.ul-card__matrix),.chat-card-container:has([class*=matrix]){min-width:280px;max-width:100%;width:100%;padding:0 4px}}.chat-card-container .ul-card--matrix_container{max-width:100%;overflow-x:auto}.chat-card-container .ul-card--matrix_grid{min-width:100%}.chat-card-container .ul-card__matrix{width:100%}.chat-card-container .choice-label-container{gap:8px}@media (max-width: 768px){.sprig-header-label-container,.sprig-header-label,.choice{font-size:14px}.chat-card-container:has(.ul-card__matrix),.chat-card-container:has([class*=matrix]){min-width:280px;max-width:100%;width:100%}.chat-card-container .ul-card--matrix_container{overflow-x:auto;-webkit-overflow-scrolling:touch}}.select-label{cursor:pointer;flex:1;overflow-wrap:anywhere;text-align:start}.ul-conversational-ui .chat-card-container .chat-card.ul-card--nps{width:100%;min-width:262px;max-width:500px;box-sizing:border-box}.ul-conversational-ui .ul-card--nps__numbers{background-color:#fff}.ul-conversational-ui .nps-number{color:#2f2e2c}@media (max-width: 768px){.ul-conversational-ui .nps-number{font-size:16px;height:35px}.ul-conversational-ui .ul-card--nps__labels{font-size:12px;font-weight:400;color:#2f2e2c}}@media (min-width: 769px){.ul-conversational-ui .nps-number{font-size:20px;height:40px}.ul-conversational-ui .ul-card--nps__labels{font-size:14px;font-weight:400;color:#2f2e2c}}.ul-card-rank__option{text-align:left;background:#0000000d;margin-bottom:8px}.ul-card-rank__option.is-dragging{background-color:#0000000d;border:none}.ul-card-rank__labels{font-weight:400;color:#2f2e2c}@media (min-width: 1200px){.ul-card--rank__question-inner-container{max-width:900px}}@media (max-width: 768px){.ul-card--rank__question-inner-container{min-width:0;max-width:100%;width:100%;font-size:14px}.ul-card-rank__labels{font-size:14px}.ul-card-rank__option>span{font-size:14px}.ul-card-rank__option>select{font-size:14px}}.select-button{align-items:center;background-color:#fff;border-radius:8px;border:1px solid #E8E7E6;cursor:pointer;display:flex;font-size:15px;justify-content:space-between;margin-bottom:8px;padding:4px 8px 4px 16px;width:100%}.select-button:hover{background-color:#f3f3f3}.select-button:active{background-color:#eee}.select-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-button.select-button-placeholder{color:#b0b5b7}.select-button svg{flex-shrink:0}.select-list{position:relative;height:fit-content;padding:4px 0;z-index:100;background-color:#fff;border:1px solid #E2E3E1;box-shadow:0 16px 24px #0b23300d,0 4px 12px #0b233008;border-radius:8px;overflow-y:scroll;width:100%}.select-option{align-items:center;cursor:pointer;display:flex;font-size:15px;gap:8px;line-height:20px;padding:8px 16px}.select-option:hover{background-color:#f3f3f3}.chat-card .select-checkbox{border:1px solid #323232;background-color:#fff}.chat-card .select-radio{box-shadow:unset;border:1px solid #323232;background-color:#f3f3f3}.chat-card .select-radio.ul-select-active-dynamic-style{border:1px solid #323232;background-color:#000;box-shadow:inset 0 0 1px 3px #fff}.ul-card-text{margin-top:2px;margin-bottom:3px;gap:8px;display:flex;flex-direction:column;justify-content:center;padding:0;width:100%}.ul-card-text__container{align-items:center;box-sizing:border-box;display:flex;justify-content:center;margin-bottom:12px;flex:1 1 auto;flex-direction:row;border-radius:8px;gap:0;width:auto;min-width:180px;max-width:100%}@media (max-width: 768px){.ul-card-text__container{max-width:100%;width:100%;margin-bottom:8px}}.ul-card-text__container textarea{border-radius:8px;width:60vw;box-sizing:border-box}.ul-card-text__container textarea:focus{border:1px solid #0B2330}.ul-card-text__input--mobile{border:2px solid #e6e6e6;max-height:63px}.ul-card-text__input--desktop{border:1px solid #e6e6e6;max-height:150px}.ul-card-text__input{background:#fff;box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;min-height:63px;overflow:auto;padding:8px;resize:none;width:100%;border-radius:3px;line-height:20px;overflow-wrap:break-word;min-width:180px;max-width:100%}@media (max-width: 768px){.ul-card-text__input{min-width:0;max-width:100%;width:100%;font-size:14px}}.ul-card-text__input::placeholder{color:#6c6c6e80}.ul-card-text__input:focus{outline:none;background:#fff}.ul-card-text__input--desktop:hover:not(:focus){background-color:#fff}@media (max-width: 768px){.ul-card-text__input{font-size:14px}}.ul-card__text-url-prompt .sprig-question-body{padding:0}.ul-card__text-url-prompt .ul-card-button-group{padding:10px}.chat-card.ul-card__text-url-prompt .ul-card-button-group{align-items:flex-end;padding:0}@keyframes flashingDot{0%{background-color:#262136}50%,to{background-color:#f8f9fa}}.thinking-dots-container{display:flex;justify-content:center;align-items:flex-end;position:relative;width:18px;margin-top:.5em}.thinking-dot{position:relative;width:3px;height:3px;border-radius:5px;background-color:#262136;color:#262136;animation:flashingDot 1s infinite linear alternate;animation-delay:.5s}.thinking-dot:before,.thinking-dot:after{content:"";display:inline-block;position:absolute;top:0;width:3px;height:3px;border-radius:5px;background-color:#262136;color:#262136;animation:flashingDot 1s infinite alternate}.thinking-dot:before{left:-5px;animation-delay:0s}.thinking-dot:after{left:5px;animation-delay:1s}[id^=ul-card-video__player_recorder],[id^=ul-card-video__question_player]{width:100%;width:-moz-available;width:-webkit-fill-available;width:fill-available}.answered-card [id^=ul-card-video__player_recorder] .ul-control-panel{display:none!important}';
@@ -0,0 +1,4 @@
1
+ const t = 'html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}button,input,select,textarea{margin:0}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}ol,ul{padding-inline-start:1em}.ul-card-text__button{background-color:var(--theme);border-radius:8px;padding:11px 16px;gap:5px;border:none;color:#fff;cursor:pointer;font-size:15px;font-weight:500;line-height:18px}.ul-card-text__button:disabled,.ul-card-text__button.sprig-button-disabled{background-color:#0000001a;color:#0003}.ul-card-text__button:disabled>svg path,.ul-card-text__button.sprig-button-disabled>svg path{stroke:#0003}.ul-card-text__button.ul-button-inactive{background-color:#fff;color:#5d696f}.ul-card-skip__button{color:#00000080;background:none;border:none;font-size:15px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;cursor:pointer}.ul-card-button-group{align-items:center;display:flex;gap:15px;justify-content:center}.sprig-question-footer-container{padding:0;align-items:center}.ul-card__button-checkmark{display:flex;align-items:center;font-size:15px;gap:5px;padding:11px 16px;border-radius:8px;background-color:var(--theme);color:#fff}.ul-card__button-checkmark:disabled{background-color:var(--theme);opacity:.5;color:#fff}.ul-card__button-checkmark:disabled>svg path{stroke:#fff}.ul-conversational-ui{width:100%;height:100%;display:flex;flex-direction:column;min-height:500px;font-size:15px;position:relative}.ul-card__button-wrapper{margin-top:4px;display:flex;gap:16px;justify-content:right;align-self:stretch}.conversational-close-btn{position:fixed;top:16px;right:16px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;cursor:pointer;z-index:1000}.conversational-close-btn:hover{background:#ffffff80}.chat-container{flex:1;display:flex;flex-direction:column;align-items:center}.chat-messages{flex:1;display:flex;flex-direction:column;max-width:600px;width:100%;padding:36px 16px 44px;gap:8px;box-sizing:border-box}.chat-message-no-response{font-style:italic;color:#666}.chat-card .choice{margin-bottom:0;background-color:unset;padding:0;line-height:2;border:none;min-height:28px}.chat-card .choice.ul-select-active-dynamic-style{border:none}.chat-bubble-container{display:flex;flex-direction:row;align-items:flex-start;width:100%;animation:fadeInUp .3s ease-out}.chat-bubble-container img{display:none}.chat-left{align-self:flex-start;width:auto;justify-content:flex-start}.chat-container .chat-bubble-container.chat-left.chat-no-avatar .chat-bubble{margin-left:0}.chat-right{align-self:flex-end;width:100%;justify-content:flex-end;margin-top:8px}.sprig-question-body{word-wrap:break-word;position:relative;border-radius:8px;box-sizing:border-box;max-width:448px;gap:8px;padding:0;overflow:unset}.chat-bubble-text-only{width:auto;max-width:286px}.chat-bubble.chat-bubble-right .chat-message-text{border-radius:8px;word-wrap:break-word;position:relative;padding:16px;color:#333;background:#e8e7e6}.chat-bubble-left{border-radius:8px;word-wrap:break-word;position:relative;padding:16px;color:#333;background:#f7f6f5}.chat-bubble.chat-bubble-right:has(.answered-card) .sprig-question-body{border-radius:8px;word-wrap:break-word;position:relative;padding:16px;color:#333;background:#e8e7e6}.chat-bubble.chat-bubble-right:not(:has(.chat-bubble-text-only)) .sprig-question-body{border-radius:8px;word-wrap:break-word;position:relative;padding:16px;color:#333;background:#e8e7e6}.chat-message-text{line-height:1.4;margin:0;text-align:left;color:#141312;font-size:14px;font-weight:400;word-wrap:break-word}.chat-card-container{padding:0;background:transparent}@media (max-width: 600px){.conversational-ui .long-form-question-footer-container-logo{position:unset}}.chat-card-container .chat-card{display:flex;flex-direction:column;gap:8px}.chat-thanks-card{background:transparent;box-shadow:none;text-align:center}.end-of-survey-text{text-align:center;color:#999;font-size:14px;margin-top:8px;font-weight:400}.answered-card{pointer-events:none;opacity:.7;position:relative}.footer{width:100%;margin-top:12px;font-size:12px;font-weight:400;line-height:12px;color:#000000b3}.answered-card:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:#ffffff4d;pointer-events:none;border-radius:inherit}.answered-card button,.answered-card input,.answered-card textarea,.answered-card select{pointer-events:none}.answered-card:not(.ul-card__consent-legal):not(.ul-card__text-url-prompt) .ul-card-button-group *{display:none}.sprig-question-footer-container{padding:0;align-items:end}.chat-card.ul-card--video .sprig-question-footer-container{flex-direction:row;justify-content:flex-end;align-items:center}.ul-card-text__button{font-size:13px}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.chat-bubble-container.chat-left.chat-no-avatar .chat-bubble{margin-left:42px}.ul-card-vertical__button-wrapper{align-items:end}.ul-card-skip__button{padding:0 16px}.sprig-stretch{padding:16px;display:flex;flex-direction:column;gap:8px;border-radius:8px;background:#e8e7e6}.sprig-stretch input{background-color:#fff}.ul-card--likert__numbers{background-color:#fff;display:flex;width:100%;box-sizing:border-box;flex-wrap:nowrap;justify-content:space-between;align-items:center}.ul-card--likert__numbers:has(.likert-star,.likert-smiley){background-color:transparent}.likert-smiley>svg{scale:1.176}.ul-card--likert__numbers .likert-star,.ul-card--likert__numbers .likert-smiley{min-width:24px;min-height:24px;max-width:38px;max-height:38px;flex:0 1 auto;transition:height .2s,width .2s}.ul-card--likert__labels{font-weight:400;color:#2f2e2c;text-align:center;word-break:break-word;font-size:.95rem}.likert-number{height:8vw;width:8vw;min-height:32px;max-width:54px;max-height:54px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;transition:height .2s,width .2s,font-size .2s}.sprig-question-body:has(.likert-number){max-width:100%;padding:0 .5rem}.chat-card-container:has(.ul-card__matrix),.chat-card-container:has([class*=matrix]){min-width:280px;max-width:700px}@media (min-width: 1200px){.chat-card-container:has(.ul-card__matrix),.chat-card-container:has([class*=matrix]){min-width:280px;max-width:900px}}@media (max-width: 768px){.chat-card-container:has(.ul-card__matrix),.chat-card-container:has([class*=matrix]){min-width:280px;max-width:100%;width:100%;padding:0 4px}}.chat-card-container .ul-card--matrix_container{max-width:100%;overflow-x:auto}.chat-card-container .ul-card--matrix_grid{min-width:100%}.chat-card-container .ul-card__matrix{width:100%}.chat-card-container .choice-label-container{gap:8px}@media (max-width: 768px){.sprig-header-label-container,.sprig-header-label,.choice{font-size:14px}.chat-card-container:has(.ul-card__matrix),.chat-card-container:has([class*=matrix]){min-width:280px;max-width:100%;width:100%}.chat-card-container .ul-card--matrix_container{overflow-x:auto;-webkit-overflow-scrolling:touch}}.select-label{cursor:pointer;flex:1;overflow-wrap:anywhere;text-align:start}.ul-conversational-ui .chat-card-container .chat-card.ul-card--nps{width:100%;min-width:262px;max-width:500px;box-sizing:border-box}.ul-conversational-ui .ul-card--nps__numbers{background-color:#fff}.ul-conversational-ui .nps-number{color:#2f2e2c}@media (max-width: 768px){.ul-conversational-ui .nps-number{font-size:16px;height:35px}.ul-conversational-ui .ul-card--nps__labels{font-size:12px;font-weight:400;color:#2f2e2c}}@media (min-width: 769px){.ul-conversational-ui .nps-number{font-size:20px;height:40px}.ul-conversational-ui .ul-card--nps__labels{font-size:14px;font-weight:400;color:#2f2e2c}}.ul-card-rank__option{text-align:left;background:#0000000d;margin-bottom:8px}.ul-card-rank__option.is-dragging{background-color:#0000000d;border:none}.ul-card-rank__labels{font-weight:400;color:#2f2e2c}@media (min-width: 1200px){.ul-card--rank__question-inner-container{max-width:900px}}@media (max-width: 768px){.ul-card--rank__question-inner-container{min-width:0;max-width:100%;width:100%;font-size:14px}.ul-card-rank__labels{font-size:14px}.ul-card-rank__option>span{font-size:14px}.ul-card-rank__option>select{font-size:14px}}.select-button{align-items:center;background-color:#fff;border-radius:8px;border:1px solid #E8E7E6;cursor:pointer;display:flex;font-size:15px;justify-content:space-between;margin-bottom:8px;padding:4px 8px 4px 16px;width:100%}.select-button:hover{background-color:#f3f3f3}.select-button:active{background-color:#eee}.select-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-button.select-button-placeholder{color:#b0b5b7}.select-button svg{flex-shrink:0}.select-list{position:relative;height:fit-content;padding:4px 0;z-index:100;background-color:#fff;border:1px solid #E2E3E1;box-shadow:0 16px 24px #0b23300d,0 4px 12px #0b233008;border-radius:8px;overflow-y:scroll;width:100%}.select-option{align-items:center;cursor:pointer;display:flex;font-size:15px;gap:8px;line-height:20px;padding:8px 16px}.select-option:hover{background-color:#f3f3f3}.chat-card .select-checkbox{border:1px solid #323232;background-color:#fff}.chat-card .select-radio{box-shadow:unset;border:1px solid #323232;background-color:#f3f3f3}.chat-card .select-radio.ul-select-active-dynamic-style{border:1px solid #323232;background-color:#000;box-shadow:inset 0 0 1px 3px #fff}.ul-card-text{margin-top:2px;margin-bottom:3px;gap:8px;display:flex;flex-direction:column;justify-content:center;padding:0;width:100%}.ul-card-text__container{align-items:center;box-sizing:border-box;display:flex;justify-content:center;margin-bottom:12px;flex:1 1 auto;flex-direction:row;border-radius:8px;gap:0;width:auto;min-width:180px;max-width:100%}@media (max-width: 768px){.ul-card-text__container{max-width:100%;width:100%;margin-bottom:8px}}.ul-card-text__container textarea{border-radius:8px;width:60vw;box-sizing:border-box}.ul-card-text__container textarea:focus{border:1px solid #0B2330}.ul-card-text__input--mobile{border:2px solid #e6e6e6;max-height:63px}.ul-card-text__input--desktop{border:1px solid #e6e6e6;max-height:150px}.ul-card-text__input{background:#fff;box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;min-height:63px;overflow:auto;padding:8px;resize:none;width:100%;border-radius:3px;line-height:20px;overflow-wrap:break-word;min-width:180px;max-width:100%}@media (max-width: 768px){.ul-card-text__input{min-width:0;max-width:100%;width:100%;font-size:14px}}.ul-card-text__input::placeholder{color:#6c6c6e80}.ul-card-text__input:focus{outline:none;background:#fff}.ul-card-text__input--desktop:hover:not(:focus){background-color:#fff}@media (max-width: 768px){.ul-card-text__input{font-size:14px}}.ul-card__text-url-prompt .sprig-question-body{padding:0}.ul-card__text-url-prompt .ul-card-button-group{padding:10px}.chat-card.ul-card__text-url-prompt .ul-card-button-group{align-items:flex-end;padding:0}@keyframes flashingDot{0%{background-color:#262136}50%,to{background-color:#f8f9fa}}.thinking-dots-container{display:flex;justify-content:center;align-items:flex-end;position:relative;width:18px;margin-top:.5em}.thinking-dot{position:relative;width:3px;height:3px;border-radius:5px;background-color:#262136;color:#262136;animation:flashingDot 1s infinite linear alternate;animation-delay:.5s}.thinking-dot:before,.thinking-dot:after{content:"";display:inline-block;position:absolute;top:0;width:3px;height:3px;border-radius:5px;background-color:#262136;color:#262136;animation:flashingDot 1s infinite alternate}.thinking-dot:before{left:-5px;animation-delay:0s}.thinking-dot:after{left:5px;animation-delay:1s}[id^=ul-card-video__player_recorder],[id^=ul-card-video__question_player]{width:100%;width:-moz-available;width:-webkit-fill-available;width:fill-available}.answered-card [id^=ul-card-video__player_recorder] .ul-control-panel{display:none!important}';
2
+ export {
3
+ t as default
4
+ };
@@ -0,0 +1,197 @@
1
+ import { a as s, c as C, u as T, F as X, h as q, p as S, _ as L, d as H, v as Z, b as P, y as _, x as Q } from "./view-CHBo6RQ4.js";
2
+ import { j as G, k as J, l as Y, m as ee, E as M } from "./index-Bbp8h_Ls.js";
3
+ const te = (e) => s("button", { ...e, className: C("ul-card-text__button", e.className), id: "ul-card-text__button" }), oe = ({ html: e, ...t }) => {
4
+ const { enableCspTrustedTypes: i } = T((n) => ({ enableCspTrustedTypes: n.enableCspTrustedTypes })), o = X(() => G(e, i), [i, e]);
5
+ return s("div", { ...t, dangerouslySetInnerHTML: { __html: o } });
6
+ }, V = () => {
7
+ const { viewDocument: e } = T((o) => ({ viewDocument: o.viewDocument })), [t, i] = q(!1);
8
+ return S(() => {
9
+ const o = e.querySelector(".sprig-question-body"), n = new ResizeObserver(() => {
10
+ window.requestAnimationFrame(() => {
11
+ i(!!(o && J(o) && o.scrollHeight > o.offsetHeight));
12
+ });
13
+ });
14
+ return o && n.observe(o), () => {
15
+ o && n.disconnect();
16
+ };
17
+ }, [e]), t;
18
+ }, F = ({ plainText: e, richText: t, id: i, className: o, isHeader: n, showAsterisk: l }) => t ? s(oe, { className: o, html: t, id: i }) : e ? n ? s("h1", { className: o, id: i, children: [e, l && "*"] }) : s("p", { className: o, id: i, children: e }) : null, me = ({ message: e, properties: t, isRequired: i }) => {
19
+ const o = L(null), n = t == null ? void 0 : t.captionText, l = V();
20
+ return s("div", { className: C("question-header-container", "sprig-header-container", l ? "sprig-border-bottom" : null), ref: o, children: [s("div", { className: "question-header-button-container", children: s(F, { className: "ul-question", id: "ul-question", isHeader: !0, plainText: e, richText: t == null ? void 0 : t.questionHtml, showAsterisk: i }) }), s(F, { className: "ul-caption", id: "ul-caption", plainText: n, richText: t == null ? void 0 : t.captionHtml })] });
21
+ }, ne = () => s("svg", { fill: "none", height: "10", viewBox: "0 0 13 10", width: "13", xmlns: "http://www.w3.org/2000/svg", children: s("path", { d: "M11.5 1.5L4.5 8.5L1 5", stroke: "#FFFFFF", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5" }) }), be = ({ isSubmitDisabled: e, handleSubmit: t }) => s("div", { className: "ul-card-longform__submit-button-container", children: s(te, { className: "ul-card-longform__submit-button", disabled: e, onClick: t, children: ["OK ", s(ne, {})] }) }), ie = (e, t) => {
22
+ const i = L(0);
23
+ return () => {
24
+ if (e.current) {
25
+ const o = e.current;
26
+ o.style.height = "1px";
27
+ const n = o.scrollHeight + (o.offsetHeight - o.clientHeight), l = parseInt(window.getComputedStyle(o).getPropertyValue("max-height")), r = n <= l ? n : l;
28
+ i.current !== r && requestAnimationFrame(() => {
29
+ t();
30
+ }), i.current = r, o.style.height = `${r}px`;
31
+ }
32
+ };
33
+ }, R = ({ buttonText: e = "View Prototype", handleClick: t }) => s("button", { className: "prototype-button", onClick: t, children: e }, "prototype-btn"), ve = ({ embeddedType: e = "prototype", properties: t, children: i }) => {
34
+ var g;
35
+ const { handleClickEmbedButton: o, hasViewedEmbed: n, headers: l, useDesktopPrototype: r } = T((p) => ({ handleClickEmbedButton: p.handleClickEmbedButton, hasViewedEmbed: p.hasViewedEmbed, headers: p.headers, useDesktopPrototype: p.useDesktopPrototype })), c = (t == null ? void 0 : t.conceptUrl) || ((g = t == null ? void 0 : t.consentDocument) == null ? void 0 : g.url), a = window.innerWidth < ee, h = l["userleap-platform"], u = (p, f) => {
36
+ p.preventDefault(), o(f);
37
+ };
38
+ if ((() => {
39
+ const { update: p, index: f, isConversationalUI: v, viewDocument: k } = T(({ update: b, index: m, isConversationalUI: x, viewDocument: y }) => ({ update: b, index: m, isConversationalUI: x, viewDocument: y })), d = Y(p, 100);
40
+ S(() => {
41
+ if (v) return;
42
+ const b = new ResizeObserver(d), m = k.querySelector(".ul-card__container");
43
+ return m && b.observe(m, { box: "border-box" }), () => {
44
+ b.disconnect();
45
+ };
46
+ }, [d, p, f, v, k]);
47
+ })(), !r && a && !n && c && ["email", "link"].includes(h)) {
48
+ if (e === "prototype") return s(R, { handleClick: (p) => {
49
+ u(p, "question.prototype.click");
50
+ } });
51
+ if (e === "pdf") return s(R, { buttonText: (t == null ? void 0 : t.viewDocumentText) || "View Document", handleClick: (p) => {
52
+ u(p, "question.agreement.click");
53
+ } });
54
+ }
55
+ return s(H, { children: i });
56
+ }, j = ({ isSelected: e, id: t, divId: i, themeColor: o, disabled: n = !1 }) => s("div", { "aria-checked": e, "aria-disabled": n, "aria-labelledby": `label-${t}`, className: "select-checkbox", id: i, role: "checkbox", style: { ...e ? { backgroundColor: o, borderColor: o, boxShadow: "none" } : {}, ...n ? { opacity: 0.5 } : {} }, tabIndex: n ? -1 : 0, children: e && s(Z, {}) }), xe = ({ ariaLabel: e, border: t, choiceStyle: i = {}, label: o, isSelected: n, value: l, text: r, id: c, isRadio: a, useMobileStyling: h, error: u, allowTextEntry: g, noneOfTheAbove: p, promptText: f, disabled: v = !1, onUserInputChanged: k }) => {
57
+ const { styleNonce: d, viewDocument: b } = T((w) => ({ styleNonce: w.styleNonce, viewDocument: w.viewDocument })), [m, x] = q(!1);
58
+ re(b, t, d);
59
+ const y = ({ isSelected: w, userText: I }) => {
60
+ k && k({ id: c, selected: w, value: l, userText: I, noneOfTheAbove: p });
61
+ }, E = (w) => {
62
+ v || (w.stopPropagation(), y({ isSelected: a || !n, userText: r }), x(!1));
63
+ }, z = () => {
64
+ m || x(!0);
65
+ }, D = () => {
66
+ m && x(!1);
67
+ }, N = { onClick: (w) => E(w), onKeyPress: (w) => ((I) => {
68
+ v || I.key !== "Enter" && I.key !== " " || E(I);
69
+ })(w) };
70
+ "ontouchstart" in b.documentElement ? (N.onTouchStart = D, N.onTouchCancel = D, N.onTouchEnd = D) : (N.onMouseDown = z, N.onMouseLeave = D);
71
+ const $ = a ? `radio-${c}` : `checkbox-${c}`, U = n || m ? [O] : [], K = [...u ? [B] : [], ...U, ...v ? ["ul-choice-disabled"] : []], W = o ? { "aria-labelledby": `label-${c}` } : { "aria-label": e };
72
+ return s("div", { className: C(P("choice", h), ...K), id: `choice-div-${c}`, style: { ...i, ...u ? { borderColor: M } : {}, ...v ? { opacity: 0.5, cursor: "not-allowed" } : {} }, ...v ? {} : N, "aria-disabled": v, children: [s("div", { className: C("choice-label-container"), children: [a ? s("div", { ...W, className: C("select-radio", ...U), id: $, role: "radio", tabIndex: 0 }) : s(j, { disabled: v, divId: $, id: c, isSelected: n, themeColor: t }), o && s("label", { className: C(P("select-label", h)), htmlFor: $, id: `label-${c}`, children: o })] }), g && n && s("div", { className: C("choice-text-entry-container", ...U), children: s(se, { onTextChange: (w) => y({ isSelected: n, userText: w }), promptText: f || "Please specify", textValue: r, useMobileStyling: h }) })] });
73
+ }, se = ({ promptText: e, textValue: t, onTextChange: i, useMobileStyling: o }) => {
74
+ const n = L(null), { update: l } = T((c) => ({ update: c.update })), r = ie(n, () => l());
75
+ return S(() => (r(), n.current && n.current.focus(), () => {
76
+ l();
77
+ }), []), s("textarea", { "aria-label": e, "aria-multiline": "true", "aria-placeholder": e, className: C(P("choice-text-input", o)), "data-gramm": "false", maxLength: 5e3, name: "text", onChange: (c) => {
78
+ r(), c.stopPropagation(), i(c.currentTarget.value);
79
+ }, onClick: (c) => {
80
+ c.stopPropagation();
81
+ }, onKeyPress: (c) => {
82
+ c.stopPropagation();
83
+ }, placeholder: e, ref: n, role: "textbox", rows: 1, value: t });
84
+ }, A = "ul-select-style-element", O = "ul-select-active-dynamic-style", B = "ul-select-error-dynamic-style", re = (e, t, i) => {
85
+ let o = e.getElementById(A), n = !1;
86
+ o || (o = e.createElement("style"), n = !0), o.tagName.toLowerCase() === "style" && (o.id = A, i && (o.nonce = i), o.textContent = ae(t), n && e.head.appendChild(o));
87
+ }, ae = (e) => `
88
+ .${O} {
89
+ border-color: ${e};
90
+ }
91
+ .${O} .select-radio, .${O}.select-radio {
92
+ border: 6px solid ${e};
93
+ box-shadow: none;
94
+ }
95
+ .${B} {
96
+ border-color: ${M};
97
+ }
98
+ `, we = ({ children: e }) => s("div", { className: "sprig-question-body", children: e }), ge = ({ children: e }) => {
99
+ const t = V(), { isConversationalUI: i } = T((o) => ({ isConversationalUI: o.isConversationalUI }));
100
+ return s("div", { className: C("sprig-question-footer-container", t && !i ? "sprig-border-top" : null), children: e });
101
+ };
102
+ var le = ((e) => (e.CONTINUE = "CONTINUE", e.EXTERNAL = "EXTERNAL", e.NO_BUTTON = "NO_BUTTON", e))(le || {}), ce = ((e) => (e.Unlimited = "Unlimited", e.Maximum = "Maximum", e.Range = "Range", e))(ce || {});
103
+ function ye(e) {
104
+ const t = e.props;
105
+ if (t === null || typeof t != "object") return !1;
106
+ const i = Reflect.get(t, "properties");
107
+ return typeof i == "object" && i !== null && "required" in i;
108
+ }
109
+ const de = ({ options: e, selectItem: t, selectedOptions: i, showCheckbox: o, disabledOptions: n, dropdownFooter: l, panelRef: r }) => {
110
+ const { themeColor: c } = T((a) => ({ doc: a.viewDocument, themeColor: a.border }));
111
+ return s("div", { className: "select-list", ref: r, children: [e.map((a) => {
112
+ return s("div", { "aria-disabled": n == null ? void 0 : n.includes(a), className: C("select-option", n != null && n.includes(a) ? "ul-choice-disabled" : ""), onClick: (u) => {
113
+ n != null && n.includes(a) || (t(a), u.stopPropagation());
114
+ }, role: "option", style: { ...n != null && n.includes(a) ? { opacity: 0.5, cursor: "not-allowed" } : {} }, children: [o && s(j, { divId: (h = a.id, `checkbox-div-${h}`), id: a.id, isSelected: i.includes(a), themeColor: c }), a.label] }, a.id);
115
+ var h;
116
+ }), l] });
117
+ }, Ce = ({ isMultiSelect: e = !1, multiselectText: t = "choices selected", onChange: i, options: o, placeholderText: n, value: l, disabledOptions: r = [], dropdownFooter: c }) => {
118
+ const [a, h] = q(!1), u = L(null), { viewDocument: g, update: p, isConversationalUI: f } = T((d) => ({ viewDocument: d.viewDocument, update: d.update, isConversationalUI: d.isConversationalUI })), v = () => {
119
+ h(!a);
120
+ };
121
+ _(() => {
122
+ f || p();
123
+ }, [a, f, p]), _(() => {
124
+ a && u.current && u.current.scrollIntoView({ behavior: "smooth", block: "nearest" });
125
+ }, [a]), S(() => {
126
+ var b;
127
+ const d = (m) => {
128
+ const x = m.target;
129
+ (x == null ? void 0 : x.closest(".select-option.ul-choice-disabled")) || h(!1);
130
+ };
131
+ g.addEventListener("click", d);
132
+ try {
133
+ (b = window.parent) == null || b.addEventListener("click", d);
134
+ } catch {
135
+ window.addEventListener("click", d);
136
+ }
137
+ return () => {
138
+ var m;
139
+ g.removeEventListener("click", d);
140
+ try {
141
+ (m = window.parent) == null || m.removeEventListener("click", d);
142
+ } catch {
143
+ window.removeEventListener("click", d);
144
+ }
145
+ };
146
+ }, [g]);
147
+ const k = l.length === 0 ? ["select-button-placeholder"] : [];
148
+ return s(H, { children: [s("button", { "aria-label": "choice dropdown button", className: C("select-button", ...k), onClick: (d) => {
149
+ d.stopPropagation(), v();
150
+ }, type: "button", children: [s("span", { children: l.length === 0 ? n : l.length === 1 ? l[0].label : `${l.length} ${t}` }), s(Q, {})] }), a && s(de, { disabledOptions: r, dropdownFooter: c, options: o, panelRef: u, selectedOptions: l, selectItem: (d) => {
151
+ var x;
152
+ const b = l.some((y) => y.id === d.id), m = l.some((y) => {
153
+ var E;
154
+ return (E = y.optionProperties) == null ? void 0 : E.noneOfTheAbove;
155
+ });
156
+ (x = d.optionProperties) != null && x.noneOfTheAbove && !b ? i([d]) : e ? i(b ? l.filter((y) => y.id !== d.id) : m ? [d] : [...l, d]) : b || i([d]), e || v();
157
+ }, showCheckbox: e })] });
158
+ }, ue = { "{{user_id}}": "externalUserId", "{{email}}": "email" }, Te = (e = void 0, t = {}) => {
159
+ if (!e) return e;
160
+ const i = ["http:", "https:", "itms-apps:", "market:"], o = ((r) => /^[a-zA-Z][a-zA-Z0-9+\-.]*:\/\//.test(r) ? r : `http://${r}`)(e);
161
+ if (!o) return;
162
+ try {
163
+ const r = new URL(o);
164
+ if (!r.protocol || !i.includes(r.protocol)) return;
165
+ } catch {
166
+ return;
167
+ }
168
+ const n = [], l = ((r, c, a) => {
169
+ let h = r;
170
+ for (const [u, g] of Object.entries(ue)) if (h.toLowerCase().includes(u)) if (c[g]) {
171
+ const p = new RegExp(u, "gi");
172
+ h = h.replace(p, c[g]);
173
+ } else a.push(u);
174
+ return h;
175
+ })(o, t, n);
176
+ return n.length === 0 ? l : ((r, c) => {
177
+ if (!r.includes("?")) return r;
178
+ const a = r.slice(0, r.indexOf("?")), h = r.slice(r.indexOf("?") + 1).split("&").map((u) => u.split("=")).filter((u) => !c.includes(u[1]));
179
+ return h.length === 0 ? a : `${a}?${h.map((u) => u.join("=")).join("&")}`;
180
+ })(l, n);
181
+ };
182
+ export {
183
+ te as B,
184
+ me as H,
185
+ be as L,
186
+ ve as M,
187
+ xe as O,
188
+ le as P,
189
+ we as Q,
190
+ Ce as S,
191
+ oe as a,
192
+ ge as b,
193
+ ce as c,
194
+ ye as d,
195
+ Te as g,
196
+ ie as u
197
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";const e=require("./view-s39eJCD9.cjs"),k=require("./index-B2lKZafM.cjs"),S=t=>e.u("button",{...t,className:e.cc("ul-card-text__button",t.className),id:"ul-card-text__button"}),q=({html:t,...o})=>{const{enableCspTrustedTypes:l}=e.useConfig(i=>({enableCspTrustedTypes:i.enableCspTrustedTypes})),n=e.F(()=>k.getHtml(t,l),[l,t]);return e.u("div",{...o,dangerouslySetInnerHTML:{__html:n}})},_=()=>{const{viewDocument:t}=e.useConfig(n=>({viewDocument:n.viewDocument})),[o,l]=e.h(!1);return e.p(()=>{const n=t.querySelector(".sprig-question-body"),i=new ResizeObserver(()=>{window.requestAnimationFrame(()=>{l(!!(n&&k.isHTMLElement(n)&&n.scrollHeight>n.offsetHeight))})});return n&&i.observe(n),()=>{n&&i.disconnect()}},[t]),o},L=({plainText:t,richText:o,id:l,className:n,isHeader:i,showAsterisk:c})=>o?e.u(q,{className:n,html:o,id:l}):t?i?e.u("h1",{className:n,id:l,children:[t,c&&"*"]}):e.u("p",{className:n,id:l,children:t}):null,z=()=>e.u("svg",{fill:"none",height:"10",viewBox:"0 0 13 10",width:"13",xmlns:"http://www.w3.org/2000/svg",children:e.u("path",{d:"M11.5 1.5L4.5 8.5L1 5",stroke:"#FFFFFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})}),P=(t,o)=>{const l=e._(0);return()=>{if(t.current){const n=t.current;n.style.height="1px";const i=n.scrollHeight+(n.offsetHeight-n.clientHeight),c=parseInt(window.getComputedStyle(n).getPropertyValue("max-height")),r=i<=c?i:c;l.current!==r&&requestAnimationFrame(()=>{o()}),l.current=r,n.style.height=`${r}px`}}},U=({buttonText:t="View Prototype",handleClick:o})=>e.u("button",{className:"prototype-button",onClick:o,children:t},"prototype-btn"),M=({isSelected:t,id:o,divId:l,themeColor:n,disabled:i=!1})=>e.u("div",{"aria-checked":t,"aria-disabled":i,"aria-labelledby":`label-${o}`,className:"select-checkbox",id:l,role:"checkbox",style:{...t?{backgroundColor:n,borderColor:n,boxShadow:"none"}:{},...i?{opacity:.5}:{}},tabIndex:i?-1:0,children:t&&e.u(e.SvgCheckmark,{})}),W=({promptText:t,textValue:o,onTextChange:l,useMobileStyling:n})=>{const i=e._(null),{update:c}=e.useConfig(a=>({update:a.update})),r=P(i,()=>c());return e.p(()=>(r(),i.current&&i.current.focus(),()=>{c()}),[]),e.u("textarea",{"aria-label":t,"aria-multiline":"true","aria-placeholder":t,className:e.cc(e.getClasses("choice-text-input",n)),"data-gramm":"false",maxLength:5e3,name:"text",onChange:a=>{r(),a.stopPropagation(),l(a.currentTarget.value)},onClick:a=>{a.stopPropagation()},onKeyPress:a=>{a.stopPropagation()},placeholder:t,ref:i,role:"textbox",rows:1,value:o})},$="ul-select-style-element",D="ul-select-active-dynamic-style",A="ul-select-error-dynamic-style",K=(t,o,l)=>{let n=t.getElementById($),i=!1;n||(n=t.createElement("style"),i=!0),n.tagName.toLowerCase()==="style"&&(n.id=$,l&&(n.nonce=l),n.textContent=X(o),i&&t.head.appendChild(n))},X=t=>`
2
+ .${D} {
3
+ border-color: ${t};
4
+ }
5
+ .${D} .select-radio, .${D}.select-radio {
6
+ border: 6px solid ${t};
7
+ box-shadow: none;
8
+ }
9
+ .${A} {
10
+ border-color: ${k.ERROR_BORDER_COLOR};
11
+ }
12
+ `;var H=(t=>(t.CONTINUE="CONTINUE",t.EXTERNAL="EXTERNAL",t.NO_BUTTON="NO_BUTTON",t))(H||{}),B=(t=>(t.Unlimited="Unlimited",t.Maximum="Maximum",t.Range="Range",t))(B||{});const Q=({options:t,selectItem:o,selectedOptions:l,showCheckbox:n,disabledOptions:i,dropdownFooter:c,panelRef:r})=>{const{themeColor:a}=e.useConfig(s=>({doc:s.viewDocument,themeColor:s.border}));return e.u("div",{className:"select-list",ref:r,children:[t.map(s=>{return e.u("div",{"aria-disabled":i==null?void 0:i.includes(s),className:e.cc("select-option",i!=null&&i.includes(s)?"ul-choice-disabled":""),onClick:u=>{i!=null&&i.includes(s)||(o(s),u.stopPropagation())},role:"option",style:{...i!=null&&i.includes(s)?{opacity:.5,cursor:"not-allowed"}:{}},children:[n&&e.u(M,{divId:(h=s.id,`checkbox-div-${h}`),id:s.id,isSelected:l.includes(s),themeColor:a}),s.label]},s.id);var h}),c]})},Z={"{{user_id}}":"externalUserId","{{email}}":"email"};exports.Button=S,exports.Header=({message:t,properties:o,isRequired:l})=>{const n=e._(null),i=o==null?void 0:o.captionText,c=_();return e.u("div",{className:e.cc("question-header-container","sprig-header-container",c?"sprig-border-bottom":null),ref:n,children:[e.u("div",{className:"question-header-button-container",children:e.u(L,{className:"ul-question",id:"ul-question",isHeader:!0,plainText:t,richText:o==null?void 0:o.questionHtml,showAsterisk:l})}),e.u(L,{className:"ul-caption",id:"ul-caption",plainText:i,richText:o==null?void 0:o.captionHtml})]})},exports.Html=q,exports.LongformSubmitButton=({isSubmitDisabled:t,handleSubmit:o})=>e.u("div",{className:"ul-card-longform__submit-button-container",children:e.u(S,{className:"ul-card-longform__submit-button",disabled:t,onClick:o,children:["OK ",e.u(z,{})]})}),exports.MaxSelectModes=B,exports.MobileEmbedView=({embeddedType:t="prototype",properties:o,children:l})=>{var x;const{handleClickEmbedButton:n,hasViewedEmbed:i,headers:c,useDesktopPrototype:r}=e.useConfig(p=>({handleClickEmbedButton:p.handleClickEmbedButton,hasViewedEmbed:p.hasViewedEmbed,headers:p.headers,useDesktopPrototype:p.useDesktopPrototype})),a=(o==null?void 0:o.conceptUrl)||((x=o==null?void 0:o.consentDocument)==null?void 0:x.url),s=window.innerWidth<k.EMBED_MOBILE_MAX_WIDTH,h=c["userleap-platform"],u=(p,y)=>{p.preventDefault(),n(y)};if((()=>{const{update:p,index:y,isConversationalUI:g,viewDocument:f}=e.useConfig(({update:b,index:m,isConversationalUI:v,viewDocument:w})=>({update:b,index:m,isConversationalUI:v,viewDocument:w})),d=k.debounce(p,100);e.p(()=>{if(g)return;const b=new ResizeObserver(d),m=f.querySelector(".ul-card__container");return m&&b.observe(m,{box:"border-box"}),()=>{b.disconnect()}},[d,p,y,g,f])})(),!r&&s&&!i&&a&&["email","link"].includes(h)){if(t==="prototype")return e.u(U,{handleClick:p=>{u(p,"question.prototype.click")}});if(t==="pdf")return e.u(U,{buttonText:(o==null?void 0:o.viewDocumentText)||"View Document",handleClick:p=>{u(p,"question.agreement.click")}})}return e.u(e.g,{children:l})},exports.Option=({ariaLabel:t,border:o,choiceStyle:l={},label:n,isSelected:i,value:c,text:r,id:a,isRadio:s,useMobileStyling:h,error:u,allowTextEntry:x,noneOfTheAbove:p,promptText:y,disabled:g=!1,onUserInputChanged:f})=>{const{styleNonce:d,viewDocument:b}=e.useConfig(C=>({styleNonce:C.styleNonce,viewDocument:C.viewDocument})),[m,v]=e.h(!1);K(b,o,d);const w=({isSelected:C,userText:E})=>{f&&f({id:a,selected:C,value:c,userText:E,noneOfTheAbove:p})},N=C=>{g||(C.stopPropagation(),w({isSelected:s||!i,userText:r}),v(!1))},F=()=>{m||v(!0)},O=()=>{m&&v(!1)},T={onClick:C=>N(C),onKeyPress:C=>(E=>{g||E.key!=="Enter"&&E.key!==" "||N(E)})(C)};"ontouchstart"in b.documentElement?(T.onTouchStart=O,T.onTouchCancel=O,T.onTouchEnd=O):(T.onMouseDown=F,T.onMouseLeave=O);const I=s?`radio-${a}`:`checkbox-${a}`,R=i||m?[D]:[],V=[...u?[A]:[],...R,...g?["ul-choice-disabled"]:[]],j=n?{"aria-labelledby":`label-${a}`}:{"aria-label":t};return e.u("div",{className:e.cc(e.getClasses("choice",h),...V),id:`choice-div-${a}`,style:{...l,...u?{borderColor:k.ERROR_BORDER_COLOR}:{},...g?{opacity:.5,cursor:"not-allowed"}:{}},...g?{}:T,"aria-disabled":g,children:[e.u("div",{className:e.cc("choice-label-container"),children:[s?e.u("div",{...j,className:e.cc("select-radio",...R),id:I,role:"radio",tabIndex:0}):e.u(M,{disabled:g,divId:I,id:a,isSelected:i,themeColor:o}),n&&e.u("label",{className:e.cc(e.getClasses("select-label",h)),htmlFor:I,id:`label-${a}`,children:n})]}),x&&i&&e.u("div",{className:e.cc("choice-text-entry-container",...R),children:e.u(W,{onTextChange:C=>w({isSelected:i,userText:C}),promptText:y||"Please specify",textValue:r,useMobileStyling:h})})]})},exports.PromptActionTypeEnum=H,exports.QuestionBodyFooterContainer=({children:t})=>{const o=_(),{isConversationalUI:l}=e.useConfig(n=>({isConversationalUI:n.isConversationalUI}));return e.u("div",{className:e.cc("sprig-question-footer-container",o&&!l?"sprig-border-top":null),children:t})},exports.QuestionBodyWrapper=({children:t})=>e.u("div",{className:"sprig-question-body",children:t}),exports.Select=({isMultiSelect:t=!1,multiselectText:o="choices selected",onChange:l,options:n,placeholderText:i,value:c,disabledOptions:r=[],dropdownFooter:a})=>{const[s,h]=e.h(!1),u=e._(null),{viewDocument:x,update:p,isConversationalUI:y}=e.useConfig(d=>({viewDocument:d.viewDocument,update:d.update,isConversationalUI:d.isConversationalUI})),g=()=>{h(!s)};e.y(()=>{y||p()},[s,y,p]),e.y(()=>{s&&u.current&&u.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[s]),e.p(()=>{var b;const d=m=>{const v=m.target;(v==null?void 0:v.closest(".select-option.ul-choice-disabled"))||h(!1)};x.addEventListener("click",d);try{(b=window.parent)==null||b.addEventListener("click",d)}catch{window.addEventListener("click",d)}return()=>{var m;x.removeEventListener("click",d);try{(m=window.parent)==null||m.removeEventListener("click",d)}catch{window.removeEventListener("click",d)}}},[x]);const f=c.length===0?["select-button-placeholder"]:[];return e.u(e.g,{children:[e.u("button",{"aria-label":"choice dropdown button",className:e.cc("select-button",...f),onClick:d=>{d.stopPropagation(),g()},type:"button",children:[e.u("span",{children:c.length===0?i:c.length===1?c[0].label:`${c.length} ${o}`}),e.u(e.SvgCaret,{})]}),s&&e.u(Q,{disabledOptions:r,dropdownFooter:a,options:n,panelRef:u,selectedOptions:c,selectItem:d=>{var v;const b=c.some(w=>w.id===d.id),m=c.some(w=>{var N;return(N=w.optionProperties)==null?void 0:N.noneOfTheAbove});(v=d.optionProperties)!=null&&v.noneOfTheAbove&&!b?l([d]):t?l(b?c.filter(w=>w.id!==d.id):m?[d]:[...c,d]):b||l([d]),t||g()},showCheckbox:t})]})},exports.appCardHasPropertiesWithRequired=function(t){const o=t.props;if(o===null||typeof o!="object")return!1;const l=Reflect.get(o,"properties");return typeof l=="object"&&l!==null&&"required"in l},exports.getAttributedUrl=(t=void 0,o={})=>{if(!t)return t;const l=["http:","https:","itms-apps:","market:"],n=(r=>/^[a-zA-Z][a-zA-Z0-9+\-.]*:\/\//.test(r)?r:`http://${r}`)(t);if(!n)return;try{const r=new URL(n);if(!r.protocol||!l.includes(r.protocol))return}catch{return}const i=[],c=((r,a,s)=>{let h=r;for(const[u,x]of Object.entries(Z))if(h.toLowerCase().includes(u))if(a[x]){const p=new RegExp(u,"gi");h=h.replace(p,a[x])}else s.push(u);return h})(n,o,i);return i.length===0?c:((r,a)=>{if(!r.includes("?"))return r;const s=r.slice(0,r.indexOf("?")),h=r.slice(r.indexOf("?")+1).split("&").map(u=>u.split("=")).filter(u=>!a.includes(u[1]));return h.length===0?s:`${s}?${h.map(u=>u.join("=")).join("&")}`})(c,i)},exports.useAutoSize=P;